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,OAlDA,UAAU,EAmDV,OAAO,WA3CP,aAAa,EAAU,CAAC,CACtB,IAAK,SACL,MAAO,WACL,IAAI,EAAS,KAAK,MACd,EAAW,EAAO,SAClB,EAAY,EAAO,UACnB,EAAc,EAAO,KAGrB,EAAU,cAFa,IAAhB,EAA4B,SAAW,GAGlD,OAAO,QAAQ,QAAQ,cACrB,MACA,CAAE,UAAW,YAAc,EAAS,MAAO,GAC3C,QAAQ,QAAQ,cACd,KACA,CAAE,UAAW,mBACb,EAAS,KAAI,SAAU,EAAM,GAC3B,IAAI,EAAyB,IAAV,EAAc,QAAU,IAAU,EAAS,OAAS,EAAI,MAAQ,MACnF,OAAO,QAAQ,QAAQ,cACrB,KACA,CAAE,eAAgB,cAAsE,mBAAoB,KAAM,IAAK,EAAO,UAAW,iCAAmC,EAAe,mBAAqB,EAAK,QACrN,QAAQ,QAAQ,cAAc,OAAQ,CAAE,UAAW,qBACnD,QAAQ,QAAQ,cACd,MACA,CAAE,UAAW,qBACb,QAAQ,QAAQ,cACd,MACA,CAAE,UAAW,sBACb,QAAQ,QAAQ,cACd,OACA,CAAE,UAAW,yBACb,EAAK,QAKf,KAGN,KAGK,CACT,CApDe,GAsDf,OAAO,QAAU","file":"/npm/@beisen/workflow@0.1.3/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@beisen/workflow@0.1.3/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nrequire('../src/styles/all.scss');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                * version: 0.1.1\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                */\n\n\nvar WorkFlow = function (_Component) {\n  _inherits(WorkFlow, _Component);\n\n  function WorkFlow() {\n    _classCallCheck(this, WorkFlow);\n\n    return _possibleConstructorReturn(this, (WorkFlow.__proto__ || Object.getPrototypeOf(WorkFlow)).apply(this, arguments));\n  }\n\n  _createClass(WorkFlow, [{\n    key: 'render',\n    value: function render() {\n      var _props = this.props,\n          children = _props.children,\n          wrapStyle = _props.wrapStyle,\n          _props$type = _props.type,\n          type = _props$type === undefined ? 'static' : _props$type;\n\n      var wrapCls = 'type_' + type;\n      return _react2.default.createElement(\n        'div',\n        { className: \"workflow \" + wrapCls, style: wrapStyle },\n        _react2.default.createElement(\n          'ul',\n          { className: 'workflow__list ' },\n          children.map(function (item, index) {\n            var nodePosition = index === 0 ? \"start\" : index === children.length - 1 ? \"end\" : \"mid\";\n            return _react2.default.createElement(\n              'li',\n              { 'data-balloon': '\\u8282\\u70B9\\u540D\\u79F0\\uFF1A\\u8282\\u70B9\\u540D\\u79F0\\u5168\\u79F0', 'data-balloon-pos': 'up', key: index, className: \"workflow__item workflow__item_\" + nodePosition + \" workflow__item_\" + item.status },\n              _react2.default.createElement('span', { className: 'workflow__corner' }),\n              _react2.default.createElement(\n                'div',\n                { className: 'workflow__content' },\n                _react2.default.createElement(\n                  'div',\n                  { className: 'workflow__assignee' },\n                  _react2.default.createElement(\n                    'span',\n                    { className: 'assignee__description' },\n                    item.name\n                  )\n                )\n              )\n            );\n          })\n        )\n      );\n    }\n  }]);\n\n  return WorkFlow;\n}(_react.Component);\n\nmodule.exports = WorkFlow;"]}