(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"./src/module/dragDrop/DragDropModeling.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=_(t("./node_modules/antd/es/modal/index.js")),d=_(t("./node_modules/babel-runtime/helpers/jsx.js")),r=_(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=_(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/modal/style/index.js");var l=t("./node_modules/react/index.js"),i=(_(l),_(t("./node_modules/prop-types/index.js")),_(t("./node_modules/react-dnd-html5-backend/lib/index.js"))),u=t("./node_modules/react-dnd/lib/index.js"),c=_(t("./src/module/dragDrop/node_selector/index.js")),p=_(t("./src/module/dragDrop/flow_arrange/index.js")),f=t("./src/module/dragDrop/style.jsx"),m=t("./src/components/exception/index.js"),g=_(t("./src/utils/history.js"));function _(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.handleCollapsed=function(){n.setState({collapsed:!n.state.collapsed})},n.handleClose=function(){g.default.goBack()},n.state={collapsed:!1},n}return(0,a.default)(o,e),o.prototype.renderPage=function(){return(0,d.default)(f.DragDropModelingStyle,{},void 0,"view"!==this.props.mode&&(0,d.default)(m.ErrorBoundary,{},void 0,(0,d.default)(c.default,{onCollapsed:this.handleCollapsed,collapsed:this.state.collapsed,loadData:"create"!==this.props.mode,isPredict:this.props.isPredict})),(0,d.default)("div",{className:"flow-arrange-wrapper"},void 0,(0,d.default)(m.ErrorBoundary,{},void 0,(0,d.default)(p.default,{mode:this.props.mode,isPredict:this.props.isPredict,openType:this.props.openType}))))},o.prototype.render=function(){return this.props.isPredict?(0,d.default)(n.default,{title:"\u53d1\u5e03\u9884\u6d4b\u6d41\u7a0b",visible:!0,footer:null,width:"95%",style:{top:20},bodyStyle:{display:"flex",padding:0},maskClosable:!1,onCancel:this.handleClose},void 0,this.renderPage()):this.renderPage()},o}(l.PureComponent);h.defaultProps={mode:"create",isPredict:!1,openType:"blank"},o.default=(0,u.DragDropContext)(i.default)(h)},"./src/module/dragDrop/context_menu_config.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.CONTEXT_MENU_CONFIG=void 0;var n=t("./src/module/dragDrop/constant.js");o.CONTEXT_MENU_CONFIG=[{id:"removeNode",target:["node"],title:"\u5220\u9664\u8282\u70b9",icon:"delete2",group:"operate",rules:[{status:[n.FLOW_NODE_STATUS.CONF_ERR,n.FLOW_NODE_STATUS.CONF_OK,n.FLOW_NODE_STATUS.CONF_WAIT]},{status:[n.FLOW_NODE_STATUS.EXEC_ERR,n.FLOW_NODE_STATUS.EXEC_OK],inRunningFlow:!1}]},{id:"execNode",target:["node"],title:"\u6267\u884c\u5230\u8be5\u8282\u70b9",icon:"execute2",group:"operate",scope:[n.PICK_NODE_TYPE.DATA_SOURCE,n.PICK_NODE_TYPE.FEATURE,n.PICK_NODE_TYPE.ARITH,n.PICK_NODE_TYPE.COMPONENT,n.PICK_NODE_TYPE.ESTIMATE],rules:[{status:[n.FLOW_NODE_STATUS.CONF_OK,n.FLOW_NODE_STATUS.EXEC_ERR,n.FLOW_NODE_STATUS.EXEC_OK],running:!1}]},{id:"deleteNodeLink",target:["link"],title:"\u5220\u9664\u8fde\u7ebf",icon:"delete2",group:"operate",rules:[{inRunningFlow:!1}]},{id:"revertCanvas",target:["canvas"],title:"\u8fd8\u539f\u753b\u5e03",icon:"canvas_revert",group:"operate"},{id:"clearCanvas",target:["canvas"],title:"\u6e05\u7a7a\u753b\u5e03",icon:"canvas_clear",group:"operate",rules:[{running:!1}]},{id:"viewNodeExecResult",target:["node"],scope:["data_review",n.PICK_NODE_TYPE.ESTIMATE,n.PICK_NODE_TYPE.ARITH,"info_entropy","pearson_correlation"],title:"\u67e5\u770b\u7ed3\u679c",icon:"data",group:"view",view:!0,rules:[{status:[n.FLOW_NODE_STATUS.EXEC_OK]}]},{id:"viewNodeExecData",target:["node"],scope:[n.PICK_NODE_TYPE.DATA_SOURCE,"feature_transform","data_split","data_sampling","feature_filtrate","predict_data","auto_feature","python_script","tensorFlow_script"],title:"\u67e5\u770b\u6570\u636e",icon:"data",group:"view",view:!0,rules:[{status:[n.FLOW_NODE_STATUS.EXEC_OK]}]},{id:"viewNodeExecLog",target:["node"],title:"\u67e5\u770b\u65e5\u5fd7",scope:[n.PICK_NODE_TYPE.DATA_SOURCE,n.PICK_NODE_TYPE.FEATURE,n.PICK_NODE_TYPE.ARITH,n.PICK_NODE_TYPE.COMPONENT,n.PICK_NODE_TYPE.ESTIMATE,n.PICK_NODE_TYPE.MODEL],icon:"log",group:"view",view:!0,rules:[{status:[n.FLOW_NODE_STATUS.EXEC_RUNNING,n.FLOW_NODE_STATUS.EXEC_OK,n.FLOW_NODE_STATUS.EXEC_ERR]}]},{id:"saveModelResult",target:["node"],scope:[n.PICK_NODE_TYPE.ARITH],title:"\u4fdd\u5b58\u6a21\u578b",icon:"save",group:"operate",view:!1,rules:[{status:[n.FLOW_NODE_STATUS.EXEC_OK]}]}]},"./src/module/dragDrop/flow_arrange/ConfigPanel.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=m(t("./node_modules/antd/es/drawer/index.js")),d=m(t("./node_modules/babel-runtime/helpers/jsx.js")),r=m(t("./node_modules/babel-runtime/helpers/extends.js")),s="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\ConfigPanel.jsx";t("./node_modules/antd/es/drawer/style/index.js");var a=m(t("./node_modules/react/index.js")),l=(m(t("./node_modules/prop-types/index.js")),m(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),m(t("./src/module/dragDrop/flow_arrange/node_config/index.js"))),i=t("./src/module/dragDrop/config.jsx"),u=t("./node_modules/react-redux/es/index.js"),c=t("./node_modules/immutable3/dist/immutable.js"),p=m(t("./src/redux/selectors/dragDrop/index.js")),f=t("./src/redux/reducers/dragDrop/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var g={padding:0,height:"100%"},_=function(e){var o=e.viewMode,t=e.configPanelSetting,u=e.doCloseConfigPanel,p=e.doToggleLockConfigPanel,f=c.Map.isMap(t)&&t.get("show"),m={viewMode:o,show:!0,onLockPanel:p};return!0===(c.Map.isMap(t)&&t.get("lock"))?a.default.createElement(l.default,(0,r.default)({},m,{locked:!0,__source:{fileName:s,lineNumber:22}})):(0,d.default)(n.default,{title:null,bodyStyle:g,mask:!1,maskClosable:!0,width:i.styleVar.node_config_size.drawer,placement:"right",closable:!1,onClose:u,visible:f},void 0,f&&a.default.createElement(l.default,(0,r.default)({},m,{locked:!1,__source:{fileName:s,lineNumber:35}})))};_.defaultProps={};o.default=(0,u.connect)((function(e){return{configPanelSetting:p.default.flow.selectConfigPanelSetting(e)}}),(function(e){return{doCloseConfigPanel:function(){return e(f.flowDiagramActions.updateCompSetting({comp:"configPanel",setting:{show:!1}}))},doToggleLockConfigPanel:function(o){return e(f.flowDiagramActions.updateCompSetting({comp:"configPanel",setting:{lock:o}}))}}}))(_)},"./src/module/dragDrop/flow_arrange/DiagramPanel.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=m(t("./node_modules/babel-runtime/helpers/jsx.js")),d=(m(t("./node_modules/react/index.js")),m(t("./node_modules/prop-types/index.js")),m(t("./node_modules/react-split-pane/dist/index.esm.js"))),r=t("./src/module/dragDrop/flow_arrange/style.jsx"),s=m(t("./src/module/dragDrop/flow_arrange/toolbar/index.js")),a=m(t("./src/module/dragDrop/flow_arrange/canvas/index.js")),l=m(t("./src/module/dragDrop/flow_arrange/console/index.js")),i=t("./src/module/dragDrop/config.jsx"),u=t("./node_modules/react-redux/es/index.js"),c=t("./node_modules/immutable3/dist/immutable.js"),p=(m(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),m(t("./src/redux/selectors/dragDrop/index.js"))),f=t("./src/redux/reducers/dragDrop/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){var o=e.viewMode,t=e.isPredict,u=e.consolePanelSetting,p=e.doChangeConsoleHeight,f=e.doToggleConsoleExpand,m=e.onOpenModelInfoModal,g=c.Map.isMap(u)&&u.get("expand"),_=c.Map.isMap(u)&&u.get("height")||30,h=c.Map.isMap(u)&&u.get("show");return(0,n.default)(d.default,{split:"horizontal",minSize:i.styleVar.diagram_console_size.min,maxSize:i.styleVar.diagram_console_size.max,size:g?_:30,primary:"second",className:"t-split-p",onDragFinished:p},void 0,(0,n.default)(r.FlowDiagramStyle,{},void 0,(0,n.default)(s.default,{isPredict:t,viewMode:o,onOpenModelInfoModal:m}),(0,n.default)(a.default,{isPredict:t,viewMode:o})),h&&(0,n.default)(l.default,{expand:g,isPredict:t,viewMode:o,onToggleExpand:f}))};g.defaultProps={};o.default=(0,u.connect)((function(e){return{consolePanelSetting:p.default.flow.selectConsolePanelSetting(e)}}),(function(e){return{doChangeConsoleHeight:function(o){return e(f.flowDiagramActions.updateCompSetting({comp:"consolePanel",setting:{height:o}}))},doToggleConsoleExpand:function(o){return e(f.flowDiagramActions.updateCompSetting({comp:"consolePanel",setting:{expand:o}}))}}}))(g)},"./src/module/dragDrop/flow_arrange/FlowArrangePage.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=P(t("./node_modules/antd/es/spin/index.js")),d=P(t("./node_modules/antd/es/button/index.js")),r=P(t("./node_modules/antd/es/result/index.js")),s=P(t("./node_modules/babel-runtime/helpers/jsx.js")),a=P(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=P(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=P(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/spin/style/index.js"),t("./node_modules/antd/es/button/style/index.js"),t("./node_modules/antd/es/result/style/index.js");var u=t("./node_modules/react/index.js"),c=P(u),p=(P(t("./node_modules/prop-types/index.js")),P(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),t("./node_modules/@ant-design/icons/es/index.js")),f=t("./node_modules/immutable3/dist/immutable.js"),m=t("./node_modules/react-redux/es/index.js"),g=t("./node_modules/react-router-dom/esm/react-router-dom.js"),h=t("./src/components/index.js"),x=P(t("./src/redux/selectors/dragDrop/index.js")),v=P(t("./node_modules/react-split-pane/dist/index.esm.js")),b=t("./src/module/dragDrop/config.jsx"),j=P(t("./src/module/dragDrop/flow_arrange/ConfigPanel.jsx")),y=P(t("./src/module/dragDrop/flow_arrange/DiagramPanel.jsx")),w=P(t("./src/module/dragDrop/flow_arrange/model_info/index.js")),C=P(t("./src/module/dragDrop/flow_arrange/ModalFuncHandler.jsx")),M=t("./src/module/dragDrop/undo/index.js"),D=P(t("./src/module/dragDrop/flow_arrange/jupyterConnect.jsx")),N=t("./src/redux/reducers/dragDrop/index.js"),E=t("./src/module/dragDrop/flow_arrange/style.jsx"),k=t("./src/routes/routeHelper.jsx"),I=t("./src/utils/history.js"),T=P(I),S=P(t("./src/module/dragDrop/events.js"));function P(e){return e&&e.__esModule?e:{default:e}}var L=(0,s.default)(p.FrownTwoTone,{twoToneColor:"#F05E6E"}),O=(0,s.default)(h.LoadingIndicator,{}),R=(0,s.default)(E.SpinStyle,{},void 0,(0,s.default)("div",{className:"spin-box"},void 0,(0,s.default)(n.default,{}),(0,s.default)("span",{},void 0,"\u6267\u884c\u4e2d ..."))),A=(0,s.default)(E.SpinStyle,{},void 0,(0,s.default)("div",{className:"spin-box"},void 0,(0,s.default)(n.default,{}),(0,s.default)("span",{},void 0,"\u53d1\u5e03\u81f3\u6a21\u578b\u5e93\u4e2d ..."))),F=function(e){function o(t){(0,a.default)(this,o);var n=(0,l.default)(this,e.call(this,t));return n.gotoModelRepo=function(){(0,I.navigateTo)(k.modelRepoUrl.viewModel(n.state.showPublishResult.modelId))},n.handleCloseModal=function(){n.setState({showCreateModal:!1})},n.handleOpenModifyModal=function(){n.setState({showCreateModal:!0})},n.renderResult=function(e){return(0,s.default)(r.default,{icon:L,title:e})},n.state={showCreateModal:"create"===t.mode,showPublishResult:null},n}return(0,i.default)(o,e),o.prototype.componentDidMount=function(){var e=this;"view"===this.props.mode&&this.props.doFetchPickNodes(),"create"!==this.props.mode&&(_.isNil(this.props.modelId)||""===_.trim(this.props.modelId)||this.props.doGetModelInfo(this.props.modelId)),S.default.addListener("DRAGDROP:PUBLISH_MODEL_REPO",(function(o){var t=o.modelId,n=o.version;return e.setState({showPublishResult:{modelId:t,version:n}})}))},o.prototype.componentWillUnmount=function(){this.props.doClearStore(),this.props.doClearDragModel(),S.default.removeAllListeners("DRAGDROP:PUBLISH_MODEL_REPO")},o.prototype.render=function(){if(null!==this.state.showPublishResult)return(0,s.default)(r.default,{status:"success",title:"\u53d1\u5e03\u6a21\u578b\u81f3\u6a21\u578b\u5e93\u6210\u529f!",subTitle:"\u6a21\u578b\u7248\u672c\u53f7 \uff1a v"+this.state.showPublishResult.version,style:{flex:"1 auto",height:"calc(100vh - 80px)"},extra:[(0,s.default)(d.default,{onClick:function(){return T.default.goBack()}},"return_train","\u8fd4\u56de\u6a21\u578b\u8bad\u7ec3"),(0,s.default)(d.default,{type:"primary",onClick:this.gotoModelRepo},"goto_repo","\u8df3\u8f6c\u81f3\u6a21\u5757\u5e93\u67e5\u770b")]});var e=this.props,o=e.isLockConfigPanel,t=e.mode,n=e.modelInfo,a=e.getModelInfoError,l=e.getModelInfoLoading,i=e.modelId,u=!_.isNil(a),p=f.Map.isMap(n)&&n.get("modelId");return"create"===this.props.mode||!_.isNil(this.props.modelId)&&""!==_.trim(this.props.modelId)?!0===l||!0===this.props.getPickNodesloading?O:!1===l&&u?this.renderResult((0,s.default)("div",{},void 0,(0,s.default)("p",{},void 0,"\u52a0\u8f7d\u6a21\u578b\u914d\u7f6e\u4fe1\u606f\u51fa\u9519"),(0,s.default)("p",{},void 0,"\u9519\u8bef\u4fe1\u606f:"+a))):!1===l&&!u&&"create"!==t&&_.isNil(p)?this.renderResult("\u6a21\u578b\u7f16\u7801\u4e3a[ "+i+" ]\u7684\u6a21\u578b\u914d\u7f6e\u4fe1\u606f\u4e0d\u5b58\u5728\uff01"):"create"!==this.props.mode&&!1===this.props.pickNodesLoaded?this.renderResult("\u672a\u83b7\u53d6\u5230\u9009\u62e9\u8282\u70b9\u6570\u636e"):(0,s.default)(c.default.Fragment,{},void 0,(0,s.default)(v.default,{split:"vertical",minSize:b.styleVar.node_config_size.min,size:o?b.styleVar.node_config_size.default:0,maxSize:b.styleVar.node_config_size.max,className:"r-split-p",primary:"second"},void 0,(0,s.default)(y.default,{isPredict:this.props.isPredict,viewMode:"view"===t,onOpenModelInfoModal:this.handleOpenModifyModal}),(0,s.default)(j.default,{viewMode:"view"===t})),!0===this.props.exec_loading&&R,!0===this.props.publish_loading&&A,this.state.showCreateModal&&(0,s.default)(w.default,{openType:this.props.openType,onCloseModal:this.handleCloseModal}),(0,s.default)(C.default,{isPredict:this.props.isPredict})):this.renderResult("\u6a21\u578b\u7f16\u7801\u53c2\u6570\u4e0d\u5b58\u5728")},o}(u.Component);o.default=(0,g.withRouter)((0,m.connect)((function(e,o){return{isLockConfigPanel:x.default.flow.selectIsLockConfigPanel(e),pickNodesLoaded:x.default.pickNode.hasPickNodesLoaded(e),modelInfo:x.default.model.selectModelInfo(e),getPickNodesloading:x.default.pickNode.selectLoading(e,"GET_PICK_NODES"),getModelInfoLoading:x.default.model.selectLoading(e,"GET_DRAG_MODEL"),getModelInfoError:x.default.model.selectError(e,"GET_DRAG_MODEL"),modelId:_.get(o.match.params,"modelId"),mode:_.get(o.match.params,"action"),selected:x.default.flow.selectSelected(e),exec_loading:x.default.model.selectLoading(e,"EXECUTE_DRAG_MODEL"),publish_loading:x.default.model.selectLoading(e,"PUBLISH_MODEL_TO_REPO"),publish_to_repo_error:x.default.model.selectError(e,"PUBLISH_MODEL_TO_REPO")}}),(function(e,o){return{doFetchPickNodes:function(){return e(N.pickNodesActions.getPickNodesRequest())},doGetModelInfo:function(t){return e(N.dragDropModelActions.getDragModelRequest({modelId:t,isPredict:o.isPredict}))},doClearStore:function(){e(N.flowDiagramActions.resetDiagram()),e(M.ActionCreators.clearHistory())},doClearDragModel:function(){return e(N.dragDropModelActions.resetDragDropModel())}}}))((0,D.default)(F)))},"./src/module/dragDrop/flow_arrange/ModalFuncHandler.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=c(t("./node_modules/babel-runtime/helpers/jsx.js")),d=c(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=c(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=c(t("./node_modules/babel-runtime/helpers/inherits.js")),a=t("./node_modules/react/index.js"),l=(c(a),c(t("./node_modules/prop-types/index.js")),c(t("./src/module/dragDrop/events.js"))),i=t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/index.js"),u=t("./src/components/exception/index.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=["VIEW_NODE_LOG","VIEW_NODE_RESULT","VIEW_NODE_DATA","SAVE_MODEL_RESULT"],f=i.modals.SaveModelResultModal,m=i.modals.ViewNodeExecLogModal,g=i.modals.ViewNodeExecResultModal,_=i.modals.ViewNodeExecDataModal,h=function(e){function o(t){(0,d.default)(this,o);var n=(0,r.default)(this,e.call(this,t));return n.setModalType=function(e,o){n.setState({modalType:e,modalData:o})},n.closeModal=function(){n.setState({modalType:null,modalData:null})},n.state={modalType:null,modalData:null},n}return(0,s.default)(o,e),o.prototype.componentDidMount=function(){var e=this;p.map((function(o){l.default.addListener("CONTEXT_MENU:"+o,(function(t){return e.setModalType(o,t)}))}))},o.prototype.componentWillUnmount=function(){p.map((function(e){l.default.removeAllListeners("CONTEXT_MENU:"+e)}))},o.prototype.render=function(){var e=this.state,o=e.modalType,t=e.modalData,d=this.props.isPredict;return(0,n.default)(u.ErrorBoundary,{},void 0,"VIEW_NODE_LOG"===o&&(0,n.default)(m,{data:t,onCloseModal:this.closeModal,isPredict:d}),"VIEW_NODE_RESULT"===o&&(0,n.default)(g,{data:t,onCloseModal:this.closeModal,isPredict:d}),"VIEW_NODE_DATA"===o&&(0,n.default)(_,{data:t,onCloseModal:this.closeModal,isPredict:d}),"SAVE_MODEL_RESULT"===o&&(0,n.default)(f,{data:t,onCloseModal:this.closeModal,isPredict:d}))},o}(a.PureComponent);o.default=h},"./src/module/dragDrop/flow_arrange/canvas/CanvasContainer.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=b(t("./node_modules/babel-runtime/helpers/jsx.js")),d=b(t("./node_modules/antd/es/modal/index.js")),r=b(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=b(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=b(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/modal/style/index.js");var l=t("./node_modules/react/index.js"),i=b(l),u=(b(t("./node_modules/prop-types/index.js")),t("./node_modules/react-dnd/lib/index.js")),c=t("./src/module/dragDrop/flow_arrange/canvas/utils/index.js"),p=t("./src/module/dragDrop/config.jsx"),f=b(t("./src/module/dragDrop/flow_arrange/canvas/DraggableCanvas.jsx")),m=t("./node_modules/react-redux/es/index.js"),g=t("./node_modules/immutable3/dist/immutable.js"),h=(b(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),t("./src/redux/reducers/dragDrop/index.js")),x=b(t("./src/redux/selectors/dragDrop/index.js")),v=t("./src/module/dragDrop/constant.js");function b(e){return e&&e.__esModule?e:{default:e}}var j=c.dropTargetFunc.spec,y=c.dropTargetFunc.collect,w=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.addFlowNode=function(e){var o=e.flowNode,t=e.position;if(o.type===v.PICK_NODE_TYPE.MODEL){o.status=v.FLOW_NODE_STATUS.CONF_OK;var r=_.replace(_.get(o,"properties.modelId"),v.PICK_NODE_TYPE.MODEL+"_","");d.default.confirm({title:"\u662f\u5426\u6dfb\u52a0\u7279\u5f81\u5de5\u7a0b\u5904\u7406\u6d41\u7a0b\uff1f",content:"\u5982\u786e\u8ba4\u6dfb\u52a0\uff0c\u5c06\u4f1a\u628a\u6a21\u578b\u8bad\u7ec3\u914d\u7f6e\u7684\u76f8\u5173\u7279\u5f81\u5de5\u7a0b\u6d41\u7a0b\u6dfb\u52a0\u5230\u753b\u5e03",okText:"\u6dfb\u52a0",cancelText:"\u53d6\u6d88",onOk:function(){n.props.addModelFlow({flowNode:o,modelId:r,position:t})},onCancel:function(){n.props.addModelFlow({flowNode:o,modelId:r,position:t,onlyModelNode:!0})}})}else n.props.addFlowNode({flowNode:o,position:t})},n.containerRef=i.default.createRef(),n}return(0,a.default)(o,e),o.prototype.render=function(){var e=this.props,o=e.viewMode,t=e.isPredict,d=e.connectDropTarget,r=e.canvasEnv,s=e.updateCanvasRect,a=e.onCanvasDrag,l=e.onCanvasClick,u=e.onCanvasContextMenu;return d((0,n.default)("div",{className:"canvas-outer"},void 0,i.default.createElement(f.default,{isPredict:t,viewMode:o,canvasRect:g.Map.isMap(r)?r.get("rect"):(0,g.Map)(),updateCanvasRect:s,zoomScale:g.Map.isMap(r)?r.get("zoomScale"):1,position:g.Map.isMap(r)?r.get("position"):(0,g.Map)({x:0,y:0}),onCanvasDrag:a,onCanvasClick:l,onCanvasContextMenu:u,ref:this.containerRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\canvas\\CanvasContainer.jsx",lineNumber:64}})))},o}(l.Component);w.defaultProps={};o.default=(0,m.connect)((function(e){return{canvasEnv:x.default.flow.selectCanvasEnv(e),zoomScale:x.default.flow.selectZoomScale(e)}}),(function(e){return{addFlowNode:function(o){var t=o.flowNode,n=o.position;return e(h.flowDiagramActions.addNode({flowNode:t,position:n}))},addModelFlow:function(o){var t=o.flowNode,n=o.modelId,d=o.position,r=o.onlyModelNode;return e(h.dragDropModelActions.addModelFlow({flowNode:t,modelId:n,position:d,onlyModelNode:r}))},updateCanvasRect:function(o){return e(h.flowDiagramActions.updateCanvasRect({rect:o}))},onCanvasDrag:function(o){var t=o.position;return e(h.flowDiagramActions.updateCanvasPosition({position:t}))},onCanvasClick:function(){return e(h.flowDiagramActions.updateSelected({selected:null}))},onCanvasContextMenu:function(o){var t=o.position;return e(h.flowDiagramActions.updateContextMenu({contextMenu:{type:"canvas",data:{},position:t}}))}}}))((0,u.DropTarget)([p.itemType.PICK_NODE],j,y)(w))},"./src/module/dragDrop/flow_arrange/canvas/CanvasSvg.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=r(t("./node_modules/babel-runtime/helpers/jsx.js")),d=(r(t("./node_modules/react/index.js")),r(t("./node_modules/prop-types/index.js")),t("./src/module/dragDrop/config.jsx"));function r(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("defs",{},void 0,(0,n.default)("marker",{id:"marker-arrow",markerWidth:"10",markerHeight:"10",refX:"4",refY:"3",orient:"auto",markerUnits:"strokeWidth"},void 0,(0,n.default)("path",{d:"M0,0 L0,6 L4,3 z",style:d.svg_arrow_style})),(0,n.default)("marker",{id:"marker-arrow-hover",markerWidth:"10",markerHeight:"10",refX:"4",refY:"3",orient:"auto",markerUnits:"strokeWidth"},void 0,(0,n.default)("path",{d:"M0,0 L0,6 L4,3 z",style:d.svg_arrow_style_hover})));o.default=function(e){var o=e.children;return(0,n.default)("svg",{style:d.svg_line_style},void 0,s,o)}},"./src/module/dragDrop/flow_arrange/canvas/DraggableCanvas.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=h(t("./node_modules/babel-runtime/helpers/jsx.js")),d=h(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=h(t("./node_modules/babel-runtime/helpers/inherits.js")),a=t("./node_modules/react/index.js"),l=h(a),i=(h(t("./node_modules/prop-types/index.js")),t("./src/module/dragDrop/flow_arrange/canvas/style.jsx")),u=h(t("./src/module/dragDrop/flow_arrange/canvas/CanvasSvg.jsx")),c=h(t("./src/module/dragDrop/flow_arrange/canvas/toolbar/index.js")),p=t("./src/module/dragDrop/flow_arrange/canvas/utils/index.js"),f=h(t("./src/module/dragDrop/flow_arrange/canvas/node_link/index.js")),m=h(t("./src/module/dragDrop/flow_arrange/canvas/flow_node/index.js")),g=h(t("./src/containers/toJS.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var x=function(e){function o(t){(0,d.default)(this,o);var s=(0,r.default)(this,e.call(this,t));return s.updateCanvasRect=function(){var e=s.container&&s.container.current;if(e){var o=_.get(s.props,"canvasRect"),t=e.getBoundingClientRect(),n=document.documentElement||document.body.parentNode,d=(n="number"==typeof n.scrollLeft?n:document.body).scrollLeft,r=n.scrollTop;e.offsetWidth===o.width&&e.offsetHeight===o.height&&d+t.x===o.left&&r+t.y===o.top||s.props.updateCanvasRect({width:e.offsetWidth,height:e.offsetHeight,left:d+t.x,top:r+t.y})}},s.handleMouseDown=function(e){0===e.button&&(s.setState({dragging:!0}),s.moveDuration=0,s.beginCoord={x:e.clientX-s.props.canvasRect.left,y:e.clientY-s.props.canvasRect.top})},s.handleMouseMove=function(e){var o=s.props.onCanvasDrag;if(!0===s.state.dragging){s.moveDuration++;var t=e.clientX-s.props.canvasRect.left-s.beginCoord.x,n=e.clientY-s.props.canvasRect.top-s.beginCoord.y;o({position:{x:t+s.lastCoord.x,y:n+s.lastCoord.y}})}},s.handleMouseUp=function(e){0===e.button&&(s.lastCoord=s.props.position,s.setState({dragging:!1}))},s.handleCanvasContextMenu=function(e){e.preventDefault(),e.stopPropagation(),s.props.onCanvasContextMenu({position:{x:e.clientX,y:e.clientY}})},s.handleCanvasClick=function(e){s.moveDuration<10&&s.props.onCanvasClick(e)},s.renderToolBar=function(){var e=s.props.viewMode;return(0,n.default)(c.default,{viewMode:e})},s.container=l.default.createRef(),s.beginCoord={x:0,y:0},s.lastCoord={x:t.position.x,y:t.position.y},s.state={dragging:!1},s}return(0,s.default)(o,e),o.prototype.componentDidMount=function(){this.updateCanvasRect()},o.prototype.componentDidUpdate=function(){this.updateCanvasRect()},o.prototype.render=function(){var e=this.props,o=e.viewMode,t=e.position,d=e.zoomScale,r=e.isPredict,s=this.state.dragging;return l.default.createElement(i.ContainerWrapper,{className:s?"canvas-dragging":"canvas-draggable",onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,onClick:this.handleCanvasClick,onContextMenu:this.handleCanvasContextMenu,isPredict:r,ref:this.container,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\canvas\\DraggableCanvas.jsx",lineNumber:92}},this.renderToolBar(),(0,n.default)(i.CanvasWrapper,{className:"canvas-diagram",style:{left:t.x,top:t.y,transform:"scale("+d+")"}},void 0,(0,n.default)(m.default,{viewMode:o,isPredict:r}),(0,n.default)(u.default,{},void 0,(0,n.default)(f.default,{viewMode:o,isPredict:r}))))},o}(a.PureComponent);x.defaultProps={position:{x:0,y:0}},o.default=(0,g.default)((0,p.enableContextMenu)(x))},"./src/module/dragDrop/flow_arrange/canvas/flow_node/FlowNode.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=v(t("./node_modules/antd/es/popover/index.js")),d=v(t("./node_modules/babel-runtime/helpers/jsx.js")),r=v(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=v(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/popover/style/index.js");var l=t("./node_modules/react/index.js"),i=v(l),u=(v(t("./node_modules/prop-types/index.js")),v(t("./node_modules/react-draggable/dist/react-draggable.js"))),c=v(t("./node_modules/lodash/lodash.js")),p=(t("./src/module/dragDrop/flow_arrange/canvas/types/index.js"),t("./src/components/Icon/index.js")),f=t("./src/module/dragDrop/config.jsx"),m=t("./src/module/dragDrop/constant.js"),g=t("./src/module/dragDrop/flow_arrange/canvas/flow_node/style.jsx"),_=v(t("./src/module/dragDrop/flow_arrange/canvas/tips_panel/index.js")),h=v(t("./src/module/dragDrop/flow_arrange/canvas/node_port/index.js")),x=v(t("./src/containers/toJS.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.handleDragStart=function(e){n.startPos={x:e.clientX,y:e.clientY},e.preventDefault(),e.stopPropagation()},n.handleDraging=function(e,o){e.preventDefault(),e.stopPropagation(),n.props.onFlowNodeDrag({nodeId:n.props.data.id,position:{x:o.x,y:o.y},isTemp:!0})},n.handleDragStop=function(e,o){e.preventDefault(),e.stopPropagation(),c.default.delay((function(){n.props.onFlowNodeDrag({nodeId:n.props.data.id,position:{x:o.x,y:o.y},isTemp:!1}),n.startPos=null}),50)},n.handleClickNode=function(e){e.preventDefault(),e.stopPropagation(),!n.startPos||Math.abs(n.startPos.x-e.clientX)>10||Math.abs(n.startPos.y-e.clientY)>10||n.props.onFlowNodeSelect({flowNode:n.props.data})},n.handleOnContextMenu=function(e){e.preventDefault(),e.stopPropagation(),n.props.onFlowNodeContextMenu({flowNode:n.props.data,position:{x:e.clientX,y:e.clientY}})},n}return(0,a.default)(o,e),o.prototype.render=function(){var e=this.props,o=e.viewMode,t=e.data,r=e.selected,s=e.helper,a=s.getNodeMainType(t.type),l=s.getRecursionNodeTypeNames(t.type),c=t.status===m.FLOW_NODE_STATUS.EXEC_RUNNING;return(0,d.default)(u.default,{onStart:this.handleDragStart,onDrag:this.handleDraging,onStop:this.handleDragStop,defaultClassName:"node-draggable",defaultClassNameDragging:"node-dragging",defaultPosition:t.position},void 0,(0,d.default)("div",{},void 0,(0,d.default)(n.default,{content:(0,d.default)(_.default,{data:t,nodeTypes:l}),title:null,mouseEnterDelay:.8,placement:"right"},void 0,(0,d.default)(g.FlowNodeWrapper,{viewMode:o,className:["flow-node-"+a.type,r&&"flow-node-selected",c&&"flow-node-blink"].filter(Boolean).join(" "),onClick:this.handleClickNode,"data-node-id":t.id,onContextMenu:this.handleOnContextMenu},void 0,(0,d.default)("span",{className:"flow-node-icon"},void 0,(0,d.default)(p.IconSvg,{type:a.ico,color:f.styleVar.flow_node_icon_color,size:24})),(0,d.default)("span",{className:"flow-node-title"},void 0,t.title),f.NODE_STATUS[t.status]&&i.default.cloneElement(f.NODE_STATUS[t.status].icon,{className:"flow-node-status"}),(0,d.default)(h.default,{viewMode:o,nodeId:t.id})))))},o}(l.PureComponent);b.defaultProps={onFlowNodeDrag:c.default.noop,onFlowNodeSelect:c.default.noop,onFlowNodeContextMenu:c.default.noop,selected:!1},o.default=(0,x.default)(b)},"./src/module/dragDrop/flow_arrange/canvas/flow_node/FlowNodeConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=u(t("./node_modules/babel-runtime/helpers/extends.js")),d=u(t("./node_modules/react/index.js")),r=(u(t("./node_modules/prop-types/index.js")),t("./node_modules/react-redux/es/index.js")),s=t("./node_modules/immutable3/dist/immutable.js"),a=(u(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),u(t("./src/redux/selectors/dragDrop/index.js"))),l=t("./src/redux/reducers/dragDrop/index.js"),i=u(t("./src/module/dragDrop/flow_arrange/canvas/flow_node/FlowNode.jsx"));function u(e){return e&&e.__esModule?e:{default:e}}o.default=(0,r.connect)((function(e,o){var t=a.default.flow.selectSelected(e),n=o.data.get("id");return{selected:s.Map.isMap(t)&&"node"===t.get("type")&&n===t.getIn(["data","id"]),helper:a.default.pickNode.getFuncHelper(e)}}),(function(e){return{onFlowNodeSelect:function(o){var t=o.flowNode;return e(l.flowDiagramActions.updateSelected({selected:{type:"node",data:t}}))},onFlowNodeContextMenu:function(o){var t=o.flowNode,n=o.position;return e(l.flowDiagramActions.updateContextMenu({contextMenu:{type:"node",data:{id:t.id,title:t.title,type:t.type,status:t.status},position:n}}))},onFlowNodeDrag:function(o){var t=o.nodeId,n=o.position,d=o.isTemp;return e(l.flowDiagramActions.updateNodePosition({id:t,position:n,isTemp:d}))}}}))((function(e){return d.default.createElement(i.default,(0,n.default)({},e,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\canvas\\flow_node\\FlowNodeConnect.jsx",lineNumber:10}}))}))},"./src/module/dragDrop/flow_arrange/canvas/flow_node/FlowNodes.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=l(t("./node_modules/babel-runtime/helpers/jsx.js")),d=(l(t("./node_modules/react/index.js")),l(t("./node_modules/prop-types/index.js")),l(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),t("./node_modules/immutable3/dist/immutable.js")),r=t("./node_modules/react-redux/es/index.js"),s=l(t("./src/redux/selectors/dragDrop/index.js")),a=l(t("./src/module/dragDrop/flow_arrange/canvas/flow_node/FlowNodeConnect.jsx"));function l(e){return e&&e.__esModule?e:{default:e}}o.default=(0,r.connect)((function(e){return{flowNodes:s.default.flow.selectFlowNodes(e)}}))((function(e){var o=e.flowNodes,t=e.viewMode,r=[];return d.Map.isMap(o)&&!o.isEmpty()&&o.forEach((function(e,o){return r.push((0,n.default)(a.default,{viewMode:t,data:e},o))})),r}))},"./src/module/dragDrop/flow_arrange/canvas/flow_node/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/canvas/flow_node/FlowNodes.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/canvas/flow_node/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.FlowNodeWrapper=void 0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n},s=t("./node_modules/polished/dist/polished.es.js"),a=t("./src/module/dragDrop/config.jsx");var l=(0,d.keyframes)(["from{opacity:1.0;}50%{opacity:0.4;}to{opacity:1.0;}"]);o.FlowNodeWrapper=r.default.div.withConfig({displayName:"style__FlowNodeWrapper",componentId:"ql1hjt-0"})(["position:absolute;width:","px;height:","px;line-height:","px;background:#ffffff;border-radius:4px;display:flex;box-sizing:inherit;flex-direction:row;justify-content:space-between;align-items:middle;cursor:pointer;user-select:none;",";&.flow-node-selected{box-shadow:0 1px 6px rgba(76,89,110,0.5);}&.flow-node-selected:after{position:absolute;z-index:888;width:100%;height:100%;left:0;top:0;content:'';opacity:0.3;}.flow-node-icon{display:flex;align-items:center;justify-content:center;width:","px;}.flow-node-title{flex:1 1 auto;line-height:","px;padding-left:10px;",";}.flow-node-status{width:30px;line-height:","px;font-size:16px;}&.flow-node-blink{.flow-node-icon{animation:"," 600ms infinite;}}&:hover{.node-port{visibility:",";}box-shadow:0 1px 6px rgba(76,89,110,0.5);}"],a.styleVar.flow_node_width,a.styleVar.flow_node_height,a.styleVar.flow_node_height,Object.keys(a.NODE_TYPE_CONFIG).map((function(e){var o=a.NODE_TYPE_CONFIG[e]||a.NODE_TYPE_CONFIG.default;return(0,d.css)(["&.flow-node-","{box-sizing:content-box;border:1px solid ",";&.flow-node-selected:after{background:",";}.flow-node-icon{background:",";}.node-port{border:1px solid ",";&:hover,&.node-port-active{box-shadow:0 0 0 6px ",";}&.node-port-infinite:after{border:1px solid ",";}}}"],e,o.borderColor,o.color,o.color,o.borderColor,o.shadowColor,o.borderColor)})),a.styleVar.flow_node_icon_width,a.styleVar.flow_node_height,(0,s.ellipsis)(),a.styleVar.flow_node_height,l,(function(e){return!0===e.viewMode?"hidden":"visible"}))},"./src/module/dragDrop/flow_arrange/canvas/index.js":function(e,o,t){"use strict";o.__esModule=!0,o.CanvasTool=void 0;var n=t("./src/module/dragDrop/flow_arrange/canvas/toolbar/index.js");Object.defineProperty(o,"CanvasTool",{enumerable:!0,get:function(){return r(n).default}});var d=r(t("./src/module/dragDrop/flow_arrange/canvas/CanvasContainer.jsx"));function r(e){return e&&e.__esModule?e:{default:e}}o.default=d.default},"./src/module/dragDrop/flow_arrange/canvas/node_link/NodeLink.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=l(t("./node_modules/babel-runtime/helpers/jsx.js")),d=(l(t("./node_modules/react/index.js")),l(t("./node_modules/prop-types/index.js")),t("./src/module/dragDrop/flow_arrange/canvas/utils/index.js")),r=(t("./src/module/dragDrop/flow_arrange/canvas/types/index.js"),t("./src/module/dragDrop/flow_arrange/canvas/node_link/style.jsx")),s=t("./src/module/dragDrop/constant.js"),a=l(t("./src/containers/toJS.jsx"));function l(e){return e&&e.__esModule?e:{default:e}}var i=d.svgUtils.generateBezierCurvePath,u=function(e,o){var t=e.ports,n=_.find(t,{id:o});return{x:e.position.x+_.get(n,"position.x",0),y:e.position.y+_.get(n,"position.y",0)}},c=function(e){var o=e.data,t=e.fromNode,d=e.toNode,a=e.onNodeLinkMouseEnter,l=e.onNodeLinkMouseLeave,c=e.onNodeLinkClick,p=e.onNodeLinkContextMenu,f=e.hovered;if(!t)return null;var m=u(t,o.from.portId),g=d&&o.to.portId?u(d,o.to.portId):o.to.position;if(!g)return null;var h=i(m,g);return(0,n.default)(r.LinkGroup,{"data-from-node":o.from.nodeId,"data-from-port":o.from.portId,"data-to-node":o.to.nodeId,"data-to-port":o.to.portId,linking:!o.to.portId,onContextMenu:function(e){e.preventDefault(),e.stopPropagation(),p({link:o,position:{x:e.clientX,y:e.clientY}})},className:[_.get(d,"status")===s.FLOW_NODE_STATUS.EXEC_RUNNING&&"node-link-running",_.get(d,"status")===s.FLOW_NODE_STATUS.EXEC_WAIT&&"node-link-exec",f&&"node-link-hover"].filter(Boolean).join(" ")},void 0,(0,n.default)("path",{pointerEvents:"all",d:h,className:"link-line"}),(0,n.default)("path",{d:h,className:"link-outline",onMouseEnter:function(){return a({link:o})},onMouseLeave:function(){return l({link:o})},onClick:function(e){c({link:o}),e.stopPropagation()}}))};c.defaultProps={onNodeLinkMouseEnter:_.noop,onNodeLinkMouseLeave:_.noop,onNodeLinkClick:_.noop,onNodeLinkContextMenu:_.noop,hovered:!1,selected:!1},o.default=(0,a.default)(c)},"./src/module/dragDrop/flow_arrange/canvas/node_link/NodeLinkConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=u(t("./node_modules/babel-runtime/helpers/extends.js")),d=u(t("./node_modules/react/index.js")),r=(u(t("./node_modules/prop-types/index.js")),t("./node_modules/immutable3/dist/immutable.js")),s=t("./node_modules/react-redux/es/index.js"),a=(u(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),u(t("./src/redux/selectors/dragDrop/index.js"))),l=t("./src/redux/reducers/dragDrop/index.js"),i=u(t("./src/module/dragDrop/flow_arrange/canvas/node_link/NodeLink.jsx"));function u(e){return e&&e.__esModule?e:{default:e}}o.default=(0,s.connect)((function(e,o){var t=o.data,n=void 0===t?(0,r.Map)():t,d=n.getIn(["from","nodeId"]),s=n.getIn(["to","nodeId"]),l=a.default.flow.getFlowNodeById(e,d),i=s?a.default.flow.getFlowNodeById(e,s):null,u=o.data.get("id"),c=a.default.flow.selectHovered(e),p=r.Map.isMap(c)&&"link"===c.get("type")&&u===c.getIn(["data","id"]),f=a.default.flow.selectNodeTempPosition(e,d);if(l&&f&&(l=l.set("position",f)),i){var m=a.default.flow.selectNodeTempPosition(e,s);m&&(i=i.set("position",m))}return{hovered:p,fromNode:l,toNode:i}}),(function(e){return{onNodeLinkMouseEnter:function(o){var t=o.link;return e(l.flowDiagramActions.updateHovered({hovered:{type:"link",data:t}}))},onNodeLinkMouseLeave:function(){return e(l.flowDiagramActions.updateHovered({hovered:null}))},onNodeLinkClick:function(o){var t=o.link;return e(l.flowDiagramActions.updateSelected({selected:{type:"link",data:t}}))},onNodeLinkContextMenu:function(o){var t=o.link,n=o.position;return e(l.flowDiagramActions.updateContextMenu({contextMenu:{type:"link",data:{id:t.id},position:n}}))}}}))((function(e){return d.default.createElement(i.default,(0,n.default)({},e,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\canvas\\node_link\\NodeLinkConnect.jsx",lineNumber:10}}))}))},"./src/module/dragDrop/flow_arrange/canvas/node_link/NodeLinks.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=p(t("./node_modules/babel-runtime/helpers/extends.js")),d=p(t("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=p(t("./node_modules/react/index.js")),s=t("./node_modules/react-redux/es/index.js"),a=p(t("./src/redux/selectors/dragDrop/index.js")),l=p(t("./node_modules/prop-types/index.js")),i=t("./node_modules/immutable3/dist/immutable.js"),u=p(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),c=p(t("./src/module/dragDrop/flow_arrange/canvas/node_link/NodeLinkConnect.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var o=e.key,t=e.link,s=(0,d.default)(e,["key","link"]);return r.default.createElement(c.default,(0,n.default)({key:o,data:t},s,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\canvas\\node_link\\NodeLinks.jsx",lineNumber:10}}))},m=function(e){var o=e.flowLinks,t=e.tmpLink,r=(0,d.default)(e,["flowLinks","tmpLink"]),s=[];return i.Map.isMap(o)&&!o.isEmpty()&&o.forEach((function(e,o){s.push(f((0,n.default)({key:o,link:e},r)))})),i.Map.isMap(t)&&!t.isEmpty()&&s.push(f((0,n.default)({key:"tmp_"+t.get("id"),link:t},r))),s};m.propTypes={viewMode:l.default.bool,flowLinks:u.default.map,tmpLink:u.default.map};o.default=(0,s.connect)((function(e){return{flowLinks:a.default.flow.selectFlowLinks(e),tmpLink:a.default.flow.selectTmpLink(e)}}))(m)},"./src/module/dragDrop/flow_arrange/canvas/node_link/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/canvas/node_link/NodeLinks.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/canvas/node_link/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.LinkGroup=void 0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n};var s=(0,d.keyframes)(["from{stroke-dashoffset:10}to{stroke-dashoffset:0}"]);o.LinkGroup=r.default.g.withConfig({displayName:"style__LinkGroup",componentId:"sc-1oehv75-0"})([".link-outline{stroke:rgba(25,156,250,1);stroke-width:10;fill:none;stroke-linecap:round;stroke-opacity:0;pointer-events:all;}.link-line{stroke-width:2;fill:none;marker-end:url('#marker-arrow');stroke-dasharray:",";stroke:",";pointer-events:all;","}&.node-link-select,&.node-link-hover{.link-line{stroke:rgba(25,156,250,1);stroke-dasharray:5;animation:"," 1s linear 0s infinite normal none running;marker-end:url('#marker-arrow-hover');}.link-outline{stroke-opacity:0.1;}}&.node-link-exec{.link-line{stroke:rgba(25,156,250,1);animation:none;marker-end:url('#marker-arrow-hover');}}&.node-link-running{.link-line{stroke:rgba(25,156,250,1);stroke-dasharray:5;animation:"," 1s linear 0s infinite normal none running;marker-end:url('#marker-arrow-hover');}}"],(function(e){return e.linking?5:0}),(function(e){return e.linking?"rgba(25, 156, 250, 1)":"rgba(170, 183, 195, 1)"}),(function(e){return e.linking&&(0,d.css)(["animation:"," 1s linear 0s infinite normal none running;marker-end:url('#marker-arrow-hover');"],s)}),s,s)},"./src/module/dragDrop/flow_arrange/canvas/node_port/NodePort.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=c(t("./node_modules/antd/es/tooltip/index.js")),d=c(t("./node_modules/babel-runtime/helpers/jsx.js")),r=c(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=c(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/tooltip/style/index.js");var l=t("./node_modules/react/index.js"),i=(c(l),c(t("./node_modules/prop-types/index.js")),t("./src/module/dragDrop/flow_arrange/utils/commonUtil.js")),u=(t("./src/module/dragDrop/flow_arrange/canvas/types/index.js"),c(t("./src/containers/toJS.jsx")));function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.handleMouseDown=function(e){if(n.props.viewMode)return e.preventDefault(),void e.stopPropagation();var o=n.props,t=o.flowNode,d=o.data,r=(0,i.generateId)("link"),s={nodeId:t.id,portId:d.id},a=document.documentElement||document.body.parentNode,l=(a="number"==typeof a.scrollLeft?a:document.body).scrollLeft,u=a.scrollTop,c=function(e){n.props.onNodeLinking({id:r,from:s,position:{x:e.clientX+l,y:e.clientY+u}})},p=n.props.onNodeLinkStart({id:r,from:s,position:{x:e.clientX+l,y:e.clientY+u}});_.isPlainObject(p)&&(s=p),!1!==p&&(document.addEventListener("mouseup",(function e(o){var t=function(e){for(var o=null,t=null;e&&null===o;)o=e.getAttribute("data-node-id"),t=e.getAttribute("data-port-id"),(e=e.parentElement)&&e.classList.contains("canvas-diagram")&&(e=null);return{nodeId:o,portId:t}}(o.target);document.removeEventListener("mouseup",e,!1),document.removeEventListener("mousemove",c,!1),t&&t.nodeId?n.props.onNodeLinkEnd({id:r,from:s,to:{nodeId:t.nodeId,portId:t.portId}}):n.props.onNodeLinkCancel({id:r})}),!1),document.addEventListener("mousemove",c,!1)),e.preventDefault(),e.stopPropagation()},n.handleClick=function(e){e.preventDefault(),e.stopPropagation()},n.renderPort=function(e){var o=e.port,t=e.flowNode,r=e.selected,s=e.actived;return(0,d.default)("div",{className:["node-port",!0===_.get(o,"properties.infinite",!1)&&"node-port-infinite",r&&"node-port-select",s&&"node-port-active"].filter(Boolean).join(" "),"data-node-id":t.id,"data-port-id":o.id,onClick:n.handleClick,onMouseDown:n.handleMouseDown})},n}return(0,a.default)(o,e),o.prototype.render=function(){var e=this.props,o=e.selected,t=e.actived,r=e.flowNode,s=e.data;return(0,d.default)(n.default,{placement:"input"===s.type?"top":"bottom",title:s.name,"data-node-id":r.id,"data-port-id":s.id},void 0,this.renderPort({port:s,flowNode:r,selected:o,actived:t}))},o}(l.PureComponent);p.defaultProps={data:{},flowNode:{},onNodeLinkStart:_.noop,onNodeLinking:_.noop,onNodeLinkEnd:_.noop,onNodeLinkCancel:_.noop},o.default=(0,u.default)(p)},"./src/module/dragDrop/flow_arrange/canvas/node_port/NodePortGroup.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n},s=t("./src/module/dragDrop/config.jsx");var a=(0,d.keyframes)(["from{opacity:1;transform:scale(0.8);}to{opacity:0.3;transform:scale(1.3);}"]),l=r.default.div.withConfig({displayName:"NodePortGroup",componentId:"sc-33fdw7-0"})(["position:absolute;z-index:999;display:flex;justify-content:space-between;&:before,&:after{content:'';display:block;}"," .node-port{width:","px;height:","px;border-radius:50%;background:#fff;cursor:",";visibility:hidden;&:hover,&.node-port-select{animation:none;transition:border-color 0.3s,box-shadow 0.6s,transform 0.3s cubic-bezier(0.18,0.89,0.32,1.28);}&.node-port-active{visibility:visible;animation:"," 1.5s ease-in 0s infinite;&:hover{animation:none;}}&.node-port-infinite{transform:scale(1.3);&:after{content:'';position:absolute;transform:translate(1px,1px);border-radius:50%;width:","px;height:","px;}}}"],(function(e){return"top"===e.side?(0,d.css)(["width:100%;left:0;top:","px;flex-direction:row;"],-s.styleVar.flow_node_port_size/2):"right"===e.side?(0,d.css)(["height:100%;top:0;right:","px;flex-direction:column;"],-s.styleVar.flow_node_port_size/2):"bottom"===e.side?(0,d.css)(["width:100%;left:0;bottom:","px;flex-direction:row;"],-s.styleVar.flow_node_port_size/2):"left"===e.side?(0,d.css)(["height:100%;top:0;left:","px;flex-direction:column;"],-s.styleVar.flow_node_port_size/2):void 0}),s.styleVar.flow_node_port_size,s.styleVar.flow_node_port_size,(function(e){return!0===e.viewMode?"inherit":"crosshair"}),a,s.styleVar.flow_node_port_size-4,s.styleVar.flow_node_port_size-4);o.default=l},"./src/module/dragDrop/flow_arrange/canvas/node_port/NodePorts.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=g(t("./node_modules/babel-runtime/helpers/jsx.js")),d=g(t("./node_modules/babel-runtime/helpers/objectDestructuringEmpty.js")),r=g(t("./node_modules/antd/es/message/index.js")),s=g(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),a=g(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/message/style/index.js");var i=t("./node_modules/react/index.js"),u=(g(i),g(t("./node_modules/prop-types/index.js")),g(t("./src/module/dragDrop/flow_arrange/canvas/node_port/NodePortGroup.jsx"))),c=g(t("./src/module/dragDrop/flow_arrange/canvas/node_port/NodePort.jsx")),p=(g(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),t("./node_modules/immutable3/dist/immutable.js")),f=t("./src/redux/reducers/dragDrop/index.js"),m=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}(t("./src/module/dragDrop/flow_arrange/utils/diagramUtil.js"));function g(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function o(t){(0,s.default)(this,o);var n=(0,a.default)(this,e.call(this,t));return n.handleNodeLinkStart=function(e){var o=e.id,t=e.from,d=e.position,s=n.props,a=s.dispatch,l=s.flowLinks,i=s.flowNodes,u=s.helper,c=t.nodeId,p=t.portId,g=m.getNodePort({nodes:i,nodeId:c,portId:p});if(g){if("input"===g.get("type")){var h=m.hasLinkForInputPort({nodeId:c,portId:p,links:l,nodes:i});if(_.isNil(h))return r.default.info("\u4e0d\u5141\u8bb8\u4ece\u8282\u70b9\u8f93\u5165\u7aef\u70b9\u5f00\u59cb\u8fde\u7ebf"),!1;a(f.flowDiagramActions.removeLink({id:h.get("id")})),a(f.flowDiagramActions.setTmpLink({id:o,from:h.get("from").toJS(),to:{position:d}}));var x=m.getAvailablePorts({from:t,nodes:i,links:l,helper:u});return a(f.flowDiagramActions.setNodePortActive({portIds:x})),h.get("from").toJS()}a(f.flowDiagramActions.setTmpLink({id:o,from:t,to:{position:d}}));var v=m.getAvailablePorts({from:t,nodes:i,links:l,helper:u});a(f.flowDiagramActions.setNodePortActive({portIds:v}))}},n.handleNodeLinking=function(e){var o=e.id,t=e.position;(0,n.props.dispatch)(f.flowDiagramActions.setTmpLink({id:o,to:{position:t}}))},n.handleNodeLinkEnd=function(e){var o=e.id,t=e.from,d=e.to,s=n.props,a=s.dispatch,l=s.flowLinks,i=s.flowNodes,u=s.helper;if(p.Map.isMap(i)){var c=i.get(d.nodeId),g=i.get(t.nodeId);if(o&&g&&c){var h=g.get("ports").find((function(e){return e.get("id")===t.portId})),x=(c.get("ports")||(0,p.List)()).filter((function(e){return"input"===e.get("type")})),v=u.validateNodeLinking(t,d,i,l);if(a(f.flowDiagramActions.clearNodePortActive()),c&&!0===v){var b=void 0;if(d.portId){b=(c.get("ports")||(0,p.List)()).find((function(e){return e.get("id")===d.portId}));var j=l.valueSeq().find((function(e){return e.getIn(["to","nodeId"])===d.nodeId&&e.getIn(["to","portId"])===d.portId}));_.isNil(j)||j.get("id")===o||(r.default.info("\u9009\u62e9\u7684\u8282\u70b9\u8f93\u5165\u7aef\u70b9\u5df2\u8fde\u7ebf"),b=null),p.Map.isMap(b)&&"input"!==b.get("type")&&(r.default.info("\u4e0d\u80fd\u8fde\u63a5\u5230\u8282\u70b9\u7684\u8f93\u51fa\u7aef\u70b9\u4e0a"),b=null)}else{var y=m.getAvailableInputPort({nodes:i,links:l,fromNode:g,fromNodePort:h,toNode:c,toInputPorts:x}),w=y._port,C=y._message;w?b=w:r.default.info(C)}a(f.flowDiagramActions.removeTmpLink()),b&&a(f.flowDiagramActions.addLink({id:o,from:t,to:{nodeId:d.nodeId,portId:b.get("id")}}))}else a(f.flowDiagramActions.removeTmpLink())}}},n.handleNodeLinkCancel=function(e){(0,d.default)(e);var o=n.props.dispatch;o(f.flowDiagramActions.removeTmpLink()),o(f.flowDiagramActions.clearNodePortActive())},n}return(0,l.default)(o,e),o.prototype.render=function(){var e=this,o=this.props,t=o.viewMode,d=o.data,r=o.type,s=o.flowNode,a=o.zoomScale,l=o.canvasOffset,i=o.offset,f=o.activePorts,m="input"===r?"top":"bottom";return(0,n.default)(u.default,{side:m,viewMode:t},void 0,p.List.isList(d)&&!d.isEmpty()&&d.map((function(o){return(0,n.default)(c.default,{viewMode:t,data:o,zoomScale:a,flowNode:s,canvasOffset:l,offset:i,actived:p.List.isList(f)&&f.includes(o.get("id")),onNodeLinkStart:e.handleNodeLinkStart,onNodeLinking:e.handleNodeLinking,onNodeLinkEnd:e.handleNodeLinkEnd,onNodeLinkCancel:e.handleNodeLinkCancel},o.get("id"))})))},o}(i.PureComponent);o.default=h},"./src/module/dragDrop/flow_arrange/canvas/node_port/NodePortsConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=_(t("./node_modules/babel-runtime/helpers/jsx.js")),d=_(t("./node_modules/babel-runtime/helpers/extends.js")),r=_(t("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),s=_(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),a=_(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=_(t("./node_modules/babel-runtime/helpers/inherits.js")),i="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\canvas\\node_port\\NodePortsConnect.jsx",u=t("./node_modules/react/index.js"),c=_(u),p=t("./node_modules/react-redux/es/index.js"),f=_(t("./src/module/dragDrop/flow_arrange/canvas/node_port/NodePorts.jsx")),m=_(t("./src/redux/selectors/dragDrop/index.js")),g=(t("./node_modules/prop-types/index.js"),_(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),t("./node_modules/immutable3/dist/immutable.js"));function _(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function o(){var t,n,l;(0,s.default)(this,o);for(var u=arguments.length,p=Array(u),m=0;m=t?t:Math.round(10*(o+d))/10;n.setState({zoomScale:r}),e.preventDefault(),e.stopPropagation(),n.props.onCanvasZoom(r)},n.handleZoomRevert=function(e){n.setState({zoomScale:1}),e.preventDefault(),e.stopPropagation(),n.props.onCanvasZoom(1)},n.handleChangeSlider=function(e){n.setState({zoomScale:e}),n.props.onCanvasZoom(e)},n.state={zoomScale:t.zoomScale},n}return(0,i.default)(o,e),o.prototype.render=function(){var e=this.props,o=e.onClearCanvas,t=e.onAdjustBestView,n=e.viewMode,a=this.state.zoomScale,l=m.zoomSliderConfig.min,i=m.zoomSliderConfig.max,u=m.zoomSliderConfig.step;return(0,s.default)(p.ToolBarWrapper,{},void 0,(0,s.default)(r.default,{title:"\u8fd8\u539f\u7f29\u653e",placement:"top",onClick:this.handleZoomRevert},void 0,(0,s.default)("i",{},void 0,(0,s.default)(f.IconSvg,{type:"zoom_revert",size:16,color:m.styleVar.node_icon_color}))),(0,s.default)("div",{className:"scale-slider"},void 0,(0,s.default)(r.default,{title:"\u7f29\u5c0f",placement:"top",onClick:this.handleZoomIn},void 0,b),(0,s.default)(d.default,{value:a,min:l,max:i,step:u,onChange:this.handleChangeSlider}),(0,s.default)(r.default,{title:"\u653e\u5927",placement:"top",onClick:this.handleZoomOut},void 0,j)),(0,s.default)(r.default,{title:"\u8c03\u6574\u753b\u5e03",placement:"top",onClick:t},void 0,(0,s.default)("i",{},void 0,(0,s.default)(f.IconSvg,{type:"canvas_revert",size:16,color:m.styleVar.node_icon_color}))),!0!==n&&(0,s.default)(r.default,{title:"\u6e05\u7a7a\u753b\u5e03",placement:"top",onClick:o},void 0,(0,s.default)("i",{},void 0,(0,s.default)(f.IconSvg,{type:"canvas_clear",size:16,color:m.styleVar.node_icon_color}))))},o}(u.PureComponent);y.defaultProps={zoomScale:m.zoomSliderConfig.default,onCanvasZoom:_.noop,onClearCanvas:_.noop,onAdjustBestView:_.noop};o.default=(0,g.connect)((function(e){return{zoomScale:h.default.flow.selectZoomScale(e)}}),(function(e){return{onClearCanvas:function(o){o.preventDefault(),o.stopPropagation(),n.default.confirm({title:"\u786e\u8ba4\u8981\u6e05\u7a7a\u753b\u5e03\u5417?",content:"\u6e05\u7a7a\u753b\u5e03\uff0c\u5c06\u5220\u9664\u6240\u6709\u7684\u8fde\u7ebf\u3001\u8282\u70b9\u53ca\u8282\u70b9\u914d\u7f6e",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){e(x.flowDiagramActions.clearFlowDiagram())}})},onCanvasZoom:function(o){return e(x.flowDiagramActions.updateCanvasZoomScale({zoomScale:o}))},onAdjustBestView:function(o){o.preventDefault(),o.stopPropagation(),e(x.flowDiagramActions.updateCanvasBestView())}}}))(y)},"./src/module/dragDrop/flow_arrange/canvas/toolbar/components/TimeTravelTool.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=u(t("./node_modules/antd/es/tooltip/index.js")),d=u(t("./node_modules/babel-runtime/helpers/jsx.js"));t("./node_modules/antd/es/tooltip/style/index.js");u(t("./node_modules/react/index.js")),u(t("./node_modules/prop-types/index.js"));var r=t("./node_modules/react-redux/es/index.js"),s=u(t("./src/redux/selectors/dragDrop/index.js")),a=t("./node_modules/@ant-design/icons/es/index.js"),l=t("./src/module/dragDrop/flow_arrange/canvas/toolbar/components/style.jsx"),i=t("./src/module/dragDrop/undo/index.js");function u(e){return e&&e.__esModule?e:{default:e}}o.default=(0,r.connect)((function(e){return{allowUndoCount:s.default.flow.selectAllowUndoCount(e),allowRedoCount:s.default.flow.selectAllowRedoCount(e)}}),(function(e){return{onUndo:function(){return e(i.ActionCreators.undo())},onRedo:function(){return e(i.ActionCreators.redo())}}}))((function(e){var o=e.onUndo,t=void 0===o?_.noop:o,r=e.onRedo,s=void 0===r?_.noop:r,i=e.allowUndoCount,u=void 0===i?0:i,c=e.allowRedoCount,p=void 0===c?0:c,f=u>0,m=p>0;return(0,d.default)(l.TimeTrave,{},void 0,(0,d.default)("div",{className:"travel-icon "+(!1===f?"travel-icon-disable":""),onClick:function(e){e.preventDefault(),e.stopPropagation(),!0===f&&t()}},void 0,(0,d.default)(n.default,{title:u>0?"\u53ef\u64a4\u9500 ("+u+") \u6b21":"\u64a4\u9500",placement:"top"},void 0,(0,d.default)(a.UndoOutlined,{style:{fontSize:"20px"}}))),(0,d.default)("div",{className:"travel-icon "+(!0!==m?"travel-icon-disable":""),onClick:function(e){e.preventDefault(),e.stopPropagation(),!0===m&&s()}},void 0,(0,d.default)(n.default,{title:p>0?"\u53ef\u6062\u590d ("+p+") \u6b21":"\u6062\u590d",placement:"top"},void 0,(0,d.default)(a.UndoOutlined,{style:{fontSize:"20px"}}))))}))},"./src/module/dragDrop/flow_arrange/canvas/toolbar/components/index.js":function(e,o,t){"use strict";o.__esModule=!0,o.TimeTravelTool=o.CanvasToolbar=o.BulbTipIcon=void 0;var n=s(t("./src/module/dragDrop/flow_arrange/canvas/toolbar/components/BulbTipIcon.jsx")),d=s(t("./src/module/dragDrop/flow_arrange/canvas/toolbar/components/CanvasToolbar.jsx")),r=s(t("./src/module/dragDrop/flow_arrange/canvas/toolbar/components/TimeTravelTool.jsx"));function s(e){return e&&e.__esModule?e:{default:e}}o.BulbTipIcon=n.default,o.CanvasToolbar=d.default,o.TimeTravelTool=r.default},"./src/module/dragDrop/flow_arrange/canvas/toolbar/components/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.TimeTrave=o.ToolBarWrapper=o.BulbIcon=void 0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n},s=t("./src/module/dragDrop/config.jsx");o.BulbIcon=r.default.div.withConfig({displayName:"style__BulbIcon",componentId:"sc-3bgf80-0"})(["position:absolute;right:10px;top:10px;cursor:pointer;z-index:999;&:hover{.svg-icon{fill:",";}}"],s.styleVar.icon_hover_color),o.ToolBarWrapper=r.default.div.withConfig({displayName:"style__ToolBarWrapper",componentId:"sc-3bgf80-1"})(["position:absolute;bottom:10px;left:5px;background:rgba(255,255,255,0.8);padding:0 10px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;z-index:999;i{cursor:pointer;padding:0 5px;&:hover{.svg-icon{fill:",";}}}.anticon{cursor:pointer;font-size:16px;color:#9e9e9e;&:hover{color:",";}}.scale-slider{display:flex;flex-direction:row;align-items:center;margin-right:5px;> .anticon{margin-left:0;}}.clear-canvas:hover{fill:",";}.ant-slider{width:120px;}.ant-slider-track{background-color:#9e9e9e;}.ant-slider-handle{border-color:#9e9e9e;}.ant-slider-handle:focus{box-shadow:0 0 0 5px rgb(189,189,189,0.2);}.ant-slider:hover .ant-slider-track{background-color:#757575;}.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open){border-color:#757575;}"],s.styleVar.icon_hover_color,s.styleVar.icon_hover_color,s.styleVar.icon_hover_color),o.TimeTrave=r.default.div.withConfig({displayName:"style__TimeTrave",componentId:"sc-3bgf80-2"})(["position:absolute;right:15px;bottom:15px;display:flex;flex-direction:row;z-index:999;.travel-icon{border-radius:25px;width:50px;height:50px;box-shadow:0px 3px 5px -1px rgba(0,0,0,0.2);border:1px solid #e0e0e0;cursor:pointer;margin-right:15px;display:flex;align-items:center;justify-content:center;transition:border-color 0.3s,box-shadow 0.6s,transform 0.3s cubic-bezier(0.18,0.89,0.32,1.28),-webkit-box-shadow 0.6s,-webkit-transform 0.3s cubic-bezier(0.18,0.89,0.32,1.28);color:",";&:not(.travel-icon-disable):hover{border-color:",";box-shadow:0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12);.anticon{color:",";}}&.travel-icon-disable{cursor:not-allowed;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;.anticon{color:rgba(0,0,0,0.25);pointer-events:none;}}}"],s.styleVar.node_icon_color,s.styleVar.icon_hover_color,s.styleVar.icon_hover_color)},"./src/module/dragDrop/flow_arrange/canvas/toolbar/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/canvas/toolbar/DiagramToolbar.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/canvas/types/FlowNodeType.js":function(e,o,t){"use strict";o.__esModule=!0,o.FlowNodeType=o.NodePortType=void 0;var n,d=t("./node_modules/prop-types/index.js"),r=(n=d)&&n.__esModule?n:{default:n};var s=o.NodePortType=r.default.shape({id:r.default.string,type:r.default.oneOf(["input","output"]).isRequired});o.FlowNodeType=r.default.shape({id:r.default.string.isRequired,title:r.default.string,memo:r.default.string,type:r.default.string,position:r.default.shape({x:r.default.number,y:r.default.number}),ports:r.default.arrayOf(s),config:r.default.object,properties:r.default.object})},"./src/module/dragDrop/flow_arrange/canvas/types/NodeLinkType.js":function(e,o,t){"use strict";o.__esModule=!0,o.NodeLinkType=void 0;var n,d=t("./node_modules/prop-types/index.js"),r=(n=d)&&n.__esModule?n:{default:n};o.NodeLinkType=r.default.shape({id:r.default.string.isRequired,from:r.default.shape({nodeId:r.default.string.isRequired,portId:r.default.string.isRequired}),to:r.default.shape({nodeId:r.default.string,portId:r.default.string,position:r.default.shape({x:r.default.number,y:r.default.number})})})},"./src/module/dragDrop/flow_arrange/canvas/types/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n=t("./src/module/dragDrop/flow_arrange/canvas/types/FlowNodeType.js");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(o,e,{enumerable:!0,get:function(){return n[e]}})}));var d=t("./src/module/dragDrop/flow_arrange/canvas/types/NodeLinkType.js");Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(o,e,{enumerable:!0,get:function(){return d[e]}})}))},"./src/module/dragDrop/flow_arrange/canvas/utils/dropTargetFunc.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=t("./src/module/dragDrop/config.jsx"),d=t("./src/module/dragDrop/constant.js"),r=t("./src/module/dragDrop/flow_arrange/utils/commonUtil.js"),s=t("./node_modules/immutable3/dist/immutable.js"),a={canDrop:function(){return!0},drop:function(e,o,t){var a=t.props.canvasEnv,l=t.addFlowNode,i=(s.Map.isMap(a)?a.toJS():a)||{},u=i.rect,c=void 0===u?{left:0,top:0}:u,p=i.position,f=void 0===p?{x:0,y:0}:p;if(o.getItemType()===n.itemType.PICK_NODE){var m=o.getItem(),g=m.key,h=m.title,x=m.desc,v=o.getClientOffset(),b={x:o.getInitialClientOffset().x-o.getInitialSourceClientOffset().x,y:o.getInitialClientOffset().y-o.getInitialSourceClientOffset().y},j=document.documentElement||document.body.parentNode,y=(j="number"==typeof j.scrollLeft?j:document.body).scrollLeft,w=j.scrollTop;l({flowNode:{id:(0,r.generateId)("node"),type:_.startsWith(g,d.PICK_NODE_TYPE.MODEL+"_")?d.PICK_NODE_TYPE.MODEL:g,properties:{modelId:g},title:h,memo:x,status:d.FLOW_NODE_STATUS.CONF_WAIT},position:{x:Math.round(v.x+y-c.left-b.x-f.x),y:Math.round(v.y+w-c.top-b.y-f.y)}})}}};o.default={spec:a,collect:function(e,o){var t;return(t={connectDropTarget:e.dropTarget(),isOver:o.isOver(),canDrop:o.canDrop()}).isOver=o.isOver(),t}}},"./src/module/dragDrop/flow_arrange/canvas/utils/enableContextMenu.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=p(t("./node_modules/babel-runtime/helpers/extends.js")),d=p(t("./node_modules/babel-runtime/helpers/jsx.js")),r=p(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=p(t("./node_modules/babel-runtime/helpers/inherits.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\canvas\\utils\\enableContextMenu.jsx",i=p(t("./node_modules/react/index.js")),u=(p(t("./node_modules/prop-types/index.js")),t("./node_modules/react-dom/index.js")),c=p(t("./src/module/dragDrop/flow_arrange/context_menu/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}o.default=function(e){var o=function(o){function t(e){return(0,r.default)(this,t),(0,s.default)(this,o.call(this,e))}return(0,a.default)(t,o),t.prototype.render=function(){var o=this.props,t=o.forwardRef,r=o.viewMode;return(0,d.default)(i.default.Fragment,{},void 0,i.default.createElement(e,(0,n.default)({ref:t},this.props,{__source:{fileName:l,lineNumber:15}})),(0,u.createPortal)((0,d.default)(c.default,{viewMode:r}),document.body))},t}(i.default.PureComponent),t=i.default.forwardRef((function(e,t){return i.default.createElement(o,(0,n.default)({},e,{forwardRef:t,__source:{fileName:l,lineNumber:25}}))}));return t.displayName="Forward-ContextMenuComp",t}},"./src/module/dragDrop/flow_arrange/canvas/utils/index.js":function(e,o,t){"use strict";o.__esModule=!0,o.svgUtils=o.dropTargetFunc=o.enableContextMenu=void 0;var n=s(t("./src/module/dragDrop/flow_arrange/canvas/utils/enableContextMenu.jsx")),d=s(t("./src/module/dragDrop/flow_arrange/canvas/utils/dropTargetFunc.jsx")),r=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o}(t("./src/module/dragDrop/flow_arrange/canvas/utils/svgUtils.jsx"));function s(e){return e&&e.__esModule?e:{default:e}}o.enableContextMenu=n.default,o.dropTargetFunc=d.default,o.svgUtils=r},"./src/module/dragDrop/flow_arrange/canvas/utils/svgUtils.jsx":function(e,o,t){"use strict";o.__esModule=!0;o.generateBezierCurvePath=function(e,o){var t;return t=Math.max(Math.min(Math.abs(o.y-e.y),100),50),"M"+e.x+","+e.y+" C "+(e.x+0)+","+(e.y+t)+" "+(o.x+0)+","+(o.y-t)+" "+o.x+","+o.y}},"./src/module/dragDrop/flow_arrange/console/ConfigErrorConsole.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=a(t("./node_modules/babel-runtime/helpers/jsx.js")),d=(a(t("./node_modules/react/index.js")),a(t("./node_modules/prop-types/index.js")),a(t("./node_modules/lodash/lodash.js"))),r=t("./src/module/dragDrop/flow_arrange/console/style.jsx"),s=a(t("./src/containers/toJS.jsx"));function a(e){return e&&e.__esModule?e:{default:e}}o.default=(0,s.default)((function(e){var o=e.data;return(0,n.default)(r.ConsoleLogStyle,{},void 0,(0,n.default)("ul",{style:{padding:0,margin:0}},void 0,d.default.isArray(o)&&o.map((function(e,o){return(0,n.default)("li",{},o,(0,n.default)("span",{className:"label-error"},void 0,"\u8282\u70b9",(0,n.default)("a",{href:"javascript:;",className:"label-link"},void 0,e.nodeTitle),"\u914d\u7f6e\u9519\u8bef :"),(0,n.default)("span",{className:"log-info"},void 0,e.msg))}))))}))},"./src/module/dragDrop/flow_arrange/console/ConsoleConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=i(t("./node_modules/babel-runtime/helpers/jsx.js")),d=(i(t("./node_modules/react/index.js")),t("./node_modules/react-redux/es/index.js")),r=t("./node_modules/immutable3/dist/immutable.js"),s=(i(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),i(t("./src/module/dragDrop/flow_arrange/console/ConfigErrorConsole.jsx"))),a=i(t("./src/module/dragDrop/flow_arrange/console/ExecuteLogConsole.jsx")),l=i(t("./src/redux/selectors/dragDrop/index.js"));function i(e){return e&&e.__esModule?e:{default:e}}o.default=(0,d.connect)((function(e){return{configError:l.default.flow.selectConfigError(e),execLog:l.default.model.selectExecLogs(e)}}))((function(e){var o=e.configError,t=void 0===o?(0,r.List)():o,d=e.execLog,l=void 0===d?(0,r.List)():d;return r.List.isList(t)&&!t.isEmpty()?(0,n.default)(s.default,{data:t}):(0,n.default)(a.default,{data:l})}))},"./src/module/dragDrop/flow_arrange/console/ExecuteLogConsole.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=c(t("./node_modules/babel-runtime/helpers/jsx.js")),d=c(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=c(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=c(t("./node_modules/babel-runtime/helpers/inherits.js")),a=t("./node_modules/react/index.js"),l=c(a),i=(c(t("./node_modules/prop-types/index.js")),t("./src/module/dragDrop/flow_arrange/console/style.jsx")),u=c(t("./src/containers/toJS.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function o(t){(0,d.default)(this,o);var n=(0,r.default)(this,e.call(this,t));return n.ref=l.default.createRef(),n}return(0,s.default)(o,e),o.prototype.componentDidUpdate=function(){this.ref&&this.ref.current&&this.ref.current.childNodes&&_.last(this.ref.current.childNodes).scrollIntoView({block:"end",behavior:"smooth"})},o.prototype.render=function(){return l.default.createElement(i.ConsoleLogStyle,{ref:this.ref,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\console\\ExecuteLogConsole.jsx",lineNumber:19}},_.isArray(this.props.data)&&this.props.data.map((function(e,o){return(0,n.default)(i.ExecLogStyle,{className:"log-level-"+e.type},o,(0,n.default)("div",{className:"log-item-info"},void 0,(0,n.default)("span",{className:"log-info-time"},void 0,e.logTime),(0,n.default)("span",{className:"log-info-msg"},void 0,e.message)),"error"===e.type&&(0,n.default)("pre",{className:"log-item-result"},void 0,_.isArray(e.trace)&&e.trace.map((function(e,o){return(0,n.default)("pre",{},"trace-"+o,e)}))),"result"===e.type&&(0,n.default)("pre",{className:"log-item-result"},void 0,e.result),"code"===e.type&&(0,n.default)("pre",{className:"log-item-result"},void 0,e.code))})))},o}(a.PureComponent);o.default=(0,u.default)(p)},"./src/module/dragDrop/flow_arrange/console/FlowProcessConsole.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=l(t("./node_modules/babel-runtime/helpers/jsx.js")),d=(l(t("./node_modules/react/index.js")),l(t("./node_modules/prop-types/index.js")),l(t("./node_modules/lodash/lodash.js"))),r=l(t("./src/module/dragDrop/flow_arrange/console/StatusBarConnect.jsx")),s=t("./src/module/dragDrop/flow_arrange/console/style.jsx"),a=l(t("./src/module/dragDrop/flow_arrange/console/ConsoleConnect.jsx"));function l(e){return e&&e.__esModule?e:{default:e}}var i=(0,n.default)(a.default,{});o.default=function(e){var o=e.expand,t=void 0!==o&&o,a=e.onToggleExpand,l=void 0===a?d.default.noop:a,u=e.viewMode;return(0,n.default)(s.ConsoleStyle,{onContextMenu:function(e){e.preventDefault()}},void 0,(0,n.default)(s.ConsoleStatus,{onClick:function(){return l(!t)}},void 0,(0,n.default)("div",{style:{lineHeight:"30px"}},void 0,!0!==u&&(0,n.default)(r.default,{viewMode:u})),(0,n.default)("i",{className:"arrow-toggle "+(t?"arrow-toggle-open":"")})),t&&i)}},"./src/module/dragDrop/flow_arrange/console/StatusBar.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=i(t("./node_modules/babel-runtime/helpers/jsx.js")),d=(i(t("./node_modules/react/index.js")),t("./node_modules/@ant-design/compatible/es/index.js")),r=t("./node_modules/@ant-design/icons/es/index.js"),s=(i(t("./node_modules/prop-types/index.js")),t("./src/module/dragDrop/flow_arrange/console/style.jsx")),a=t("./src/module/dragDrop/config.jsx"),l=i(t("./src/containers/toJS.jsx"));function i(e){return e&&e.__esModule?e:{default:e}}var u={color:"#1890ff"},c={color:"#e53935"},p={color:"#66bb6a"},f=(0,n.default)("li",{},void 0,(0,n.default)(d.Icon,{type:"save",spin:!0,style:u}),(0,n.default)("span",{style:u},void 0,"\u4fdd\u5b58\u4e2d")),m=(0,n.default)("li",{},void 0,(0,n.default)(d.Icon,{type:"clock-circle"}),(0,n.default)("span",{},void 0,a.AUTO_SAVE_DELAY/1e3,"s\u81ea\u52a8\u4fdd\u5b58")),g=(0,n.default)(d.Icon,{type:"reload",spin:!0,style:u}),h=(0,n.default)("li",{},void 0,(0,n.default)(r.ExclamationCircleOutlined,{style:c}),(0,n.default)("span",{style:c},void 0,"\u914d\u7f6e\u9519\u8bef"));o.default=(0,l.default)((function(e){var o=e.connected,t=void 0===o||o,r=e.saving,a=void 0!==r&&r,l=e.running,i=void 0!==l&&l,x=e.error,v=void 0===x?[]:x,b=e.currentRunningNode,j=void 0===b?{}:b;return(0,n.default)(s.StatusBarWrapper,{},void 0,(0,n.default)("li",{},void 0,(0,n.default)(d.Icon,{type:t?"link":"disconnect",style:t?p:c}),(0,n.default)("span",{},void 0,t?"\u5df2\u8fde\u63a5":"\u5df2\u65ad\u5f00")),!0===a&&f,!0!==a&&m,!0===i&&(0,n.default)("li",{},void 0,g,(0,n.default)("span",{style:u},void 0,"\u8282\u70b9\u3010 ",_.get(j,"title",_.get(j,"id",""))," \u3011\u6267\u884c\u4e2d ......")),_.isArray(v)&&_.size(v)>0&&h)}))},"./src/module/dragDrop/flow_arrange/console/StatusBarConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=l(t("./node_modules/babel-runtime/helpers/extends.js")),d=l(t("./node_modules/react/index.js")),r=t("./node_modules/react-redux/es/index.js"),s=(l(t("./node_modules/prop-types/index.js")),l(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),l(t("./src/redux/selectors/dragDrop/index.js"))),a=l(t("./src/module/dragDrop/flow_arrange/console/StatusBar.jsx"));function l(e){return e&&e.__esModule?e:{default:e}}o.default=(0,r.connect)((function(e){return{connected:s.default.model.selectSessionConnected(e),saving:s.default.model.selectLoading(e,"AUTO_SAVE_DRAG_MODEL_JSON"),running:null!==s.default.flow.selectRunningNode(e),currentRunningNode:s.default.flow.selectRunningNode(e),error:s.default.flow.selectFlowError(e)}}))((function(e){return d.default.createElement(a.default,(0,n.default)({},e,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\console\\StatusBarConnect.jsx",lineNumber:8}}))}))},"./src/module/dragDrop/flow_arrange/console/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/console/FlowProcessConsole.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/console/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.ExecLogStyle=o.ConsoleLogStyle=o.StatusBarWrapper=o.ConsoleStyle=o.ConsoleStatus=void 0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n},s=t("./src/module/dragDrop/config.jsx");o.ConsoleStatus=r.default.div.withConfig({displayName:"style__ConsoleStatus",componentId:"sc-1pzku97-0"})(["width:100%;background:",";position:relative;padding:0 16px 4px;height:30px;user-select:none;cursor:pointer;&:hover{background:",";}.arrow-toggle{transform:translateY(-2px);position:absolute;top:50%;right:16px;width:10px;transition:transform 0.3s cubic-bezier(0.645,0.045,0.355,1),-webkit-transform 0.3s cubic-bezier(0.645,0.045,0.355,1);&:after,&:before{background:#fff;background-image:linear-gradient(to right,rgba(0,0,0,0.65),rgba(0,0,0,0.65));width:6px;height:1.5px;border-radius:2px;transition:background 0.3s cubic-bezier(0.645,0.045,0.355,1),transform 0.3s cubic-bezier(0.645,0.045,0.355,1),top 0.3s cubic-bezier(0.645,0.045,0.355,1),-webkit-transform 0.3s cubic-bezier(0.645,0.045,0.355,1);content:'';position:absolute;}&:before{transform:rotate(-45deg) translateX(2px);}&:after{transform:rotate(45deg) translateX(-2px);}}.arrow-toggle-open{&:before{transform:rotate(45deg) translateX(2px);}&:after{transform:rotate(-45deg) translateX(-2px);}}"],s.styleVar.panel_title_bg,s.styleVar.panel_title_hover_bg),o.ConsoleStyle=r.default.div.withConfig({displayName:"style__ConsoleStyle",componentId:"sc-1pzku97-1"})(["display:flex;width:100%;flex-direction:column;"]),o.StatusBarWrapper=r.default.ul.withConfig({displayName:"style__StatusBarWrapper",componentId:"sc-1pzku97-2"})(["margin:0;padding:0;li{list-style:none;padding-right:20px;float:left;color:RGBA(117,123,135,1);.anticon{margin-right:5px;color:RGBA(117,123,135,1);}.svg-icon{fill:RGBA(117,123,135,1);margin-top:-3px;}}"]),o.ConsoleLogStyle=r.default.div.withConfig({displayName:"style__ConsoleLogStyle",componentId:"sc-1pzku97-3"})(["flex:1 1 auto;padding:10px;color:",";word-break:break-all;background:",";overflow:auto;border-radius:2px;& > ul > li{line-height:20px;}.label-error{color:rgb(223,64,64);}.label-link{color:#03a9f4;padding:0 3px;text-decoration:underline;}.log-info{color:RGB(216,216,216);margin-left:5px;}"],s.styleVar.console_color,s.styleVar.console_bg),o.ExecLogStyle=r.default.div.withConfig({displayName:"style__ExecLogStyle",componentId:"sc-1pzku97-4"})(["display:flex;flex-direction:column;&.log-level-info{color:RGB(216,216,216);}&.log-level-error{color:rgb(223,64,64);}.log-item-info{display:flex;line-height:20px;flex-direction:flex-start;.log-info-time{width:130px;}}.log-item-result{padding:5px 10px;margin:0;background:rgba(36,36,36,0.5);pre{margin:0;}}"])},"./src/module/dragDrop/flow_arrange/context_menu/ContextMenu.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=p(t("./node_modules/antd/es/divider/index.js")),d=p(t("./node_modules/babel-runtime/helpers/extends.js")),r=p(t("./node_modules/babel-runtime/helpers/jsx.js"));t("./node_modules/antd/es/divider/style/index.js");var s=p(t("./node_modules/react/index.js")),a=(p(t("./node_modules/prop-types/index.js")),p(t("./node_modules/lodash/lodash.js"))),l=t("./src/module/dragDrop/flow_arrange/context_menu/style.jsx"),i=t("./src/module/dragDrop/context_menu_config.jsx"),u=t("./src/components/Icon/index.js"),c=p(t("./src/containers/toJS.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e,o,t,n,d){return e.map((function(e){var r=e.rules||[],s=!0;if(0===a.default.size(r))s=!1;else for(var l=0;l0)||a.default.size(a.default.intersection(e.scope,l))>0)}));return e?a.default.filter(i,(function(e){return e.mode&&!0===e.view})):f(i,t,n,r,s)}(o,t,i,c,p,_,h),v=a.default.groupBy(x,"group"),b=document.documentElement||document.body.parentNode,j=(b="number"==typeof b.scrollLeft?b:document.body).scrollLeft,y=b.scrollTop;return(0,r.default)(l.ContextMenuStyle,{style:{left:(n.x||0)+j+"px",top:(n.y||0)+y+"px"}},void 0,Object.keys(v).map((function(e,o){var t=(v[e]||[]).map((function(e){return s.default.createElement("li",(0,d.default)({key:e.id,className:e.disable?"menu-item-disable":""},!e.disable&&{onClick:function(){g({menuId:e.id,type:i,data:c,helper:p})}},{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\context_menu\\ContextMenu.jsx",lineNumber:86}}),(0,r.default)(u.IconSvg,{type:e.icon}),e.title)}));return o i{margin-right:8px;}}"])},"./src/module/dragDrop/flow_arrange/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/FlowArrangePage.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/jupyterConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n,d=x(t("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=x(t("./node_modules/babel-runtime/helpers/extends.js")),s=x(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),a=x(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(t("./node_modules/babel-runtime/helpers/inherits.js")),i=x(t("./node_modules/react/index.js")),u=(x(t("./node_modules/prop-types/index.js")),x(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),x(t("./node_modules/dayjs/dayjs.min.js"))),c=t("./node_modules/immutable3/dist/immutable.js"),p=t("./node_modules/react-redux/es/index.js"),f=t("./node_modules/@jupyterlab/services/lib/index.js"),m=x(t("./src/redux/selectors/dragDrop/index.js")),g=t("./src/redux/reducers/dragDrop/index.js"),h=t("./src/module/dragDrop/constant.js");function x(e){return e&&e.__esModule?e:{default:e}}var v=((n={})[""+h.FLOW_NODE_STATUS.EXEC_RUNNING]=":::::::::::::::::::: \u5f00\u59cb\u6267\u884c\u8282\u70b9 \u3010 @NODE_ID@ \u3011 :::::::::::::::::::: ",n[""+h.FLOW_NODE_STATUS.EXEC_OK]="\u8282\u70b9\u3010 @NODE_ID@ \u3011\u6267\u884c\u5b8c\u6210",n[""+h.FLOW_NODE_STATUS.EXEC_ERR]="\u8282\u70b9\u3010 @NODE_ID@ \u3011\u6267\u884c\u51fa\u9519",n);o.default=function(e){var o=function(o){function t(e){(0,s.default)(this,t);var n=(0,a.default)(this,o.call(this,e));return n.registerMessageHook=function(){f.Session.connectTo(n.props.sessionId,n.jupyterSettings).then((function(e){n.jupyterSession=e,console.debug(":::::: register jupyter message hook"),n.jupyterSession.iopubMessage.connect(n.handleMessage),n.props.doUpdateSessionStatus(!0),f.Kernel.connectTo(_.get(e,"kernel.id"),n.jupyterSettings).then((function(e){n.jupyterKernel=e}))})).catch((function(e){console.error(e,n.props.sessionId),n.unRegisterMessageHook(),n.props.doUpdateSessionStatus(!1)}))},n.unRegisterMessageHook=function(){n.jupyterSession&&(console.debug(":::::: unregister jupyter message hook"),n.jupyterSession.iopubMessage.disconnect(n.handleMessage),n.jupyterSession=null,n.jupyterKernel=null)},n.initJupyterSettings=function(){c.Map.isMap(n.props.jupyter_info)&&(n.jupyterSettings={baseUrl:n.props.jupyter_info.get("baseUrl"),token:n.props.jupyter_info.get("ai_token")})},n.handleMessage=function(e,o){var t=o.msg_type,d=o.header,s=o.content,a=d.date,l=t||_.get(d,"msg_type"),i={logTime:(0,u.default)(a).format("YYYY-MM-DD HH:mm:ss")};if("status"!==l){if("node_exec_info"!==l||_.isNil(_.get(s,"status")))if("error"===l){var c=s.traceback,p=s.ename;i=(0,r.default)({},i,{type:"error",message:"\u6267\u884c\u9519\u8bef\uff0c\u9519\u8bef\u4fe1\u606f:"+p,trace:c})}else{if("execute_input"===l&&""!==_.trim(_.get(s,"code")))return;if("execute_result"===l||"stream"===l){var f=_.get(s,"text");if(_.startsWith(f,"__@EXEC_LOG@")){var m=JSON.parse(_.trim(f).substring("__@EXEC_LOG@".length));i=(0,r.default)({},i,{nodeId:m.nodeId,type:"info",message:v[""+m.status]}),"init"!==m.nodeId&&n.props.doUpdateNodeStatus(m.nodeId,parseInt(m.status))}else i=(0,r.default)({},i,{type:"result",message:"\u8f93\u51fa\u7ed3\u679c",result:_.get(s,"text")})}else console.warn(":::::: unhandle message type:",l)}else i=(0,r.default)({},i,{type:"info",message:v[""+status]});n.props.doAddJupyterExecLogs(i)}},n.jupyterSettings=null,n.jupyterSession=null,n.jupyterKernel=null,n}return(0,l.default)(t,o),t.prototype.componentDidMount=function(){"view"!==this.props.viewMode&&this.props.doGetJupyterInfo()},t.prototype.componentDidUpdate=function(e){_.isNil(e.jupyter_info)&&c.Map.isMap(this.props.jupyter_info)&&(this.initJupyterSettings(),this.props.sessionId&&this.registerMessageHook()),!this.jupyterSettings||e.kernelId===this.props.kernelId&&e.sessionId===this.props.sessionId||(console.debug(":::::: jupyter session changed, register message hook"),this.unRegisterMessageHook(),this.props.sessionId&&this.registerMessageHook())},t.prototype.componentWillUnmount=function(){this.unRegisterMessageHook()},t.prototype.render=function(){var o=this.props,t=(o.jupyter_info,o.sessionId,o.kernelId,o.doGetJupyterInfo,o.doAddJupyterExecLogs,o.doUpdateSessionStatus,(0,d.default)(o,["jupyter_info","sessionId","kernelId","doGetJupyterInfo","doAddJupyterExecLogs","doUpdateSessionStatus"]));return i.default.createElement(e,(0,r.default)({},t,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\jupyterConnect.jsx",lineNumber:124}}))},t}(i.default.PureComponent);o.displayName="jupyterConnect("+function(e){return e.displayName||e.name||"Component"}(e)+")";return(0,p.connect)((function(e){return{jupyter_info:m.default.model.selectJupyterInfo(e),sessionId:m.default.model.selectSessionId(e),kernelId:m.default.model.selectKernelId(e)}}),(function(e){return{doGetJupyterInfo:function(){return e(g.dragDropModelActions.getJupyterInfoRequest())},doAddJupyterExecLogs:function(o){return e(g.dragDropModelActions.addJupyterExecLog({log:o}))},doUpdateSessionStatus:function(o){return e(g.dragDropModelActions.updateSessionStatus({isConnected:o}))},doUpdateNodeStatus:function(o,t){return e(g.flowDiagramActions.updateNodeStatus({nodeId:o,status:t}))}}}))(o)}},"./src/module/dragDrop/flow_arrange/model_info/ModelInfoModal.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=v(t("./node_modules/antd/es/modal/index.js")),d=v(t("./node_modules/babel-runtime/helpers/extends.js")),r=v(t("./node_modules/babel-runtime/helpers/jsx.js")),s=v(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),a=v(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(t("./node_modules/babel-runtime/helpers/inherits.js")),i=v(t("./node_modules/antd/es/input/index.js")),u=v(t("./node_modules/antd/es/select/index.js")),c="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\model_info\\ModelInfoModal.jsx";t("./node_modules/antd/es/modal/style/index.js"),t("./node_modules/antd/es/input/style/index.js"),t("./node_modules/antd/es/select/style/index.js");var p=t("./node_modules/react/index.js"),f=v(p),m=(v(t("./node_modules/prop-types/index.js")),t("./node_modules/@ant-design/compatible/es/index.js"));t("./node_modules/@ant-design/compatible/assets/index.css");var g=v(t("./src/containers/toJS.jsx")),h=v(t("./src/utils/history.js")),x=t("./src/components/auth/optionAuth.jsx");function v(e){return e&&e.__esModule?e:{default:e}}var b=u.default.Option,j=m.Form.Item,y=i.default.TextArea,w={labelCol:{span:6},wrapperCol:{span:18}},C=(0,r.default)(i.default,{placeholder:"\u8bf7\u8f93\u5165\u6a21\u578b\u540d\u79f0"}),M=function(e){function o(t){(0,s.default)(this,o);var n=(0,a.default)(this,e.call(this,t));return n.handleSaveModelInfo=function(e){e.preventDefault(),n.props.form.validateFields((function(e,o){e||n.props.onSaveModelInfo(o)}))},n.handleCancelSave=function(){var e=_.isNil(_.get(n.props.modelInfo,"modelId"))?"create":"edit";"edit"===e&&n.props.onCloseModal(),"create"===e&&("blank"===n.props.openType?(window.close(),window.close()):h.default.goBack())},n.validateNameRepeat=function(e,o,t){var d=n.props.onCheckRepeat;_.isFunction(d)&&d(o,t)},n}return(0,l.default)(o,e),o.prototype.componentWillUnmount=function(){this.props.form.resetFields()},o.prototype.render=function(){var e=_.isNil(_.get(this.props.modelInfo,"modelId"))?"create":"edit",o=this.props,t=o.form,s=o.busiTypeData,a=o.engineData,l=o.modelInfo,i=void 0===l?{}:l,p=t.getFieldDecorator,g=a.list?a.list():[];return f.default.createElement(n.default,(0,d.default)({title:("create"===e?"\u8bf7\u586b\u5199":"\u7f16\u8f91")+"\u6a21\u578b\u57fa\u7840\u4fe1\u606f",visible:!0,maskClosable:!1,closable:!1},"view"===e&&{footer:null},{onOk:this.handleSaveModelInfo,onCancel:this.handleCancelSave,okText:"\u786e\u8ba4"+("create"===e?"\u521b\u5efa":"\u4fee\u6539"),cancelText:"\u53d6\u6d88"+("create"===e?"\u521b\u5efa":"\u4fee\u6539"),__source:{fileName:c,lineNumber:66}}),f.default.createElement(m.Form,(0,d.default)({},w,{__source:{fileName:c,lineNumber:77}}),(0,r.default)(j,{label:"\u6a21\u578b\u540d\u79f0",hasFeedback:!0},void 0,p("modelName",{initialValue:i.modelName,validateTrigger:"onBlur",rules:[{required:!0,message:"\u8bf7\u586b\u5199\u6a21\u578b\u540d\u79f0"},{max:30,message:"\u6a21\u578b\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc730\u4e2a\u5b57\u7b26"},{validator:this.validateNameRepeat,message:"\u6a21\u578b\u540d\u79f0\u4e0d\u80fd\u91cd\u590d"}]})(C)),(0,r.default)(j,{label:"\u4e1a\u52a1\u7c7b\u578b"},void 0,p("businessType",{initialValue:i.businessType,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4e1a\u52a1\u5206\u7c7b"}]})((0,r.default)(u.default,{placeholder:"\u8bf7\u9009\u62e9\u4e1a\u52a1\u5206\u7c7b"},void 0,_.isArray(s)&&s.map((function(e){return(0,r.default)(b,{value:e.id},e.id,e.name)}))))),(0,r.default)(j,{label:"\u8ba1\u7b97\u5f15\u64ce"},void 0,p("engine",{initialValue:i.engine,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8ba1\u7b97\u5f15\u64ce"}]})((0,r.default)(u.default,{placeholder:"\u8bf7\u9009\u62e9\u8ba1\u7b97\u5f15\u64ce"},void 0,_.isArray(g)&&g.map((function(e){return(0,x.hasOption)("root.modelTrain.codeRunEngine",e.value)&&(0,r.default)(b,{title:e.txt,value:e.value},e.value+_.uniqueId(),e.txt)}))))),(0,r.default)(j,{label:"\u6a21\u578b\u63cf\u8ff0",hasFeedback:!0},void 0,p("modelDesc",{initialValue:i.modelDesc,rules:[{max:200,message:"\u6a21\u578b\u63cf\u8ff0\u4e0d\u80fd\u8d85\u8fc7200\u4e2a\u5b57\u7b26"}]})((0,r.default)(y,{placeholder:"\u8bf7\u8f93\u5165\u6a21\u578b\u63cf\u8ff0",autosize:{minRows:3,maxRows:5}})))))},o}(p.PureComponent);M.defaultProps={openType:"blank"},o.default=m.Form.create({name:"modelInfoForm"})((0,g.default)(M))},"./src/module/dragDrop/flow_arrange/model_info/ModelInfoModalPage.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=y(t("./node_modules/babel-runtime/helpers/jsx.js")),d=y(t("./node_modules/antd/es/message/index.js")),r=y(t("./node_modules/babel-runtime/helpers/extends.js")),s=y(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),a=y(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=y(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/message/style/index.js");var i=t("./node_modules/react/index.js"),u=(y(i),y(t("./node_modules/prop-types/index.js")),y(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),y(t("./node_modules/lodash/lodash.js"))),c=t("./node_modules/immutable3/dist/immutable.js"),p=t("./node_modules/react-redux/es/index.js"),f=y(t("./src/utils/history.js")),m=t("./src/routes/routeHelper.jsx"),g=y(t("./src/module/dragDrop/flow_arrange/model_info/ModelInfoModal.jsx")),_=t("./src/redux/reducers/dragDrop/index.js"),h=y(t("./src/redux/selectors/dragDrop/index.js")),x=t("./src/redux/selectors/enumDic.js"),v=t("./src/redux/reducers/busiTypes.js"),b=t("./src/redux/selectors/busiTypes.js"),j=y(t("./src/redux/services/modelManage.js"));function y(e){return e&&e.__esModule?e:{default:e}}var w=function(e){function o(){var t,n,d;(0,s.default)(this,o);for(var l=arguments.length,i=Array(l),p=0;p1&&void 0!==arguments[1]&&arguments[1];n._saveAndExecute({nodeId:e,isSessionExpire:o})},n.handleExecuteTrain=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n._saveAndExecute({nodeId:null,isSessionExpire:e})},n._saveAndExecute=function(e){var o=e.nodeId,t=e.isSessionExpire;if(!0!==n.props.isRunning){var r=n.props,s=r.modelInfo,a=r.position,i=r.flowNodes,u=r.flowLinks,p=r.helper;if(c.Map.isMap(i)&&c.Map.isMap(u)&&i.isEmpty()&&u.isEmpty())l.default.info("\u5c1a\u672a\u914d\u7f6e\u6a21\u578b\u6d41\u7a0b,\u8bf7\u914d\u7f6e\u540e\u70b9\u51fb\u6267\u884c");else{var f=s.get("modelId");n.saveModelJson(!0);var m=_.validateFlowConfig({nodeId:o,flowNodes:i,flowLinks:u,helper:p}),g=m.validate,h=m.result;if(console.log("::::::\u6d41\u7a0b\u9a8c\u8bc1\u7ed3\u679c",{validate:g,result:h}),!0===g){var x={modelId:f,modelJson:_.buildDragModelJson({position:a,modelId:f,flowNodes:!0!==t?h.flowNodes:h.flowNodes.map((function(e){return e.get("status")===b.FLOW_NODE_STATUS.EXEC_OK?e.set("status",b.FLOW_NODE_STATUS.CONF_OK):e})),flowLinks:h.flowLinks})};n.props.doExecuteTrain(x,o)}else n.props.doSetConfigError(h),d.default.error({title:"\u6d41\u7a0b\u914d\u7f6e\u9519\u8bef",content:"\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f\uff0c\u8bf7\u67e5\u770b\u63a7\u5236\u53f0\u65e5\u5fd7"})}}else l.default.warn("\u6a21\u578b\u6b63\u5728\u6267\u884c\u4e2d,\u7981\u6b62\u91cd\u590d\u6267\u884c")},n.handlePauseTrain=function(){var e=n.props.modelInfo.get("modelId");!0===n.props.isRunning?n.props.doPauseExecuteTrain({modelId:e}):l.default.warn("\u6a21\u578b\u672a\u5904\u4e8e\u6267\u884c\u4e2d,\u65e0\u9700\u505c\u6b62")},n.handlePublishModel=function(){var e=n.props.modelInfo;(0,x.navigateTo)("/modelTrain/"+e.get("modelId")+"/edit/dragDrop_predict?__title="+e.get("modelName"))},n.handleViewByNotebook=function(){},n.handlePublishModelToRepo=function(){if(!0===n.props.runFinished){var e=n.props.modelInfo.get("modelId"),o=n.getModelJson();o&&n.props.doPublishToRepo({modelId:e,modelJson:o})}else l.default.info("\u6a21\u578b\u9884\u6d4b\u6d41\u7a0b\u6240\u6709\u8282\u70b9\u5168\u90e8\u6267\u884c\u901a\u8fc7\u540e\uff0c\u624d\u53ef\u53d1\u5e03\u81f3\u6a21\u578b\u5e93")},n.handleDownloadIpynb=function(){var e=n.props,o=e.modelInfo,t=e.isPredict,d=o.get("modelId"),r=n.getModelJson();r&&n.props.doDownloadIpynb({modelId:d,modelJson:r,isPredict:t})},n.haveUpdate=!1,n}return(0,a.default)(o,e),o.prototype.componentDidMount=function(){var e=this;if(h.default.addListener("CONTEXT_MENU:EXECUTE_NODE_FLOW",(function(o){return e.handleNodeFlowExecute(u.default.get(o,"id"))})),console.log(":::::: start auto save dragdrop "+(this.props.isPredict?"predict":"")+" model, delay interval "+v.AUTO_SAVE_DELAY+"s ::::::"),c.Map.isMap(this.props.modelInfo)&&!u.default.isNil(this.props.modelInfo.get("modelId"))&&"view"!==this.props.viewMode){var o=this.props.modelInfo.get("modelId");this.delayId=u.default.delay((function(){return e.saveModelJson(!0)}),v.AUTO_SAVE_DELAY),!0===this.props.isRunning&&(this.updateDelayId=u.default.delay((function(){console.log(":::::: update execute status"),e.props.doUpdateExecStatus({modelId:o,_SYNC_INTERVAL:v.UPDATE_STATUS_DELAY})}),v.UPDATE_STATUS_DELAY))}},o.prototype.componentDidUpdate=function(e){var o=this;e.position===this.props.position&&e.flowNodes===this.props.flowNodes&&e.flowLinks===this.props.flowLinks&&e.savedModels===this.props.savedModels||(this.haveUpdate=!0),this.operateMessage("save","\u4fdd\u5b58\u6a21\u578b\u6d41\u7a0b\u753b\u5e03\u914d\u7f6e",e),this.operateMessage("exec","\u6267\u884c\u6a21\u578b\u8bad\u7ec3",e,(function(){o.updateDelayId&&clearTimeout(o.updateDelayId);var e=o.props.modelInfo.get("modelId");o.updateDelayId=u.default.delay((function(){console.log(":::::: update execute status"),o.props.doUpdateExecStatus({modelId:e,_SYNC_INTERVAL:v.UPDATE_STATUS_DELAY})}),v.UPDATE_STATUS_DELAY)})),this.operateMessage("pause_exec","\u505c\u6b62\u6a21\u578b\u8bad\u7ec3\u6267\u884c",e),this.operateMessage("downloadIpynb","\u4e0b\u8f7d\u6a21\u578bipynb\u4ee3\u7801",e),this.operateMessage("publish_to_repo","\u53d1\u5e03\u81f3\u6a21\u578b\u5e93",e)},o.prototype.componentWillUnmount=function(){h.default.removeAllListeners("CONTEXT_MENU:EXECUTE_NODE_FLOW"),this.delayId&&(console.log(":::::: stop auto save dragdrop model ::::::"),clearTimeout(this.delayId)),this.updateDelayId&&(console.log(":::::: stop auto update execute status ::::::"),clearTimeout(this.updateDelayId)),!0!==this.props.isRunning&&this.updateDelayId&&(console.log(":::::: flow execute over, Stop auto update execute status ::::::"),clearTimeout(this.updateDelayId))},o.prototype.render=function(){var e=this.props,o=e.viewMode,t=e.isPredict,d=e.onOpenModelInfoModal,r=e.modelInfo,s=e.isRunning,a=e.runFinished,l=e.flowStatus,i=e.savedModels;return(0,n.default)(f.default,{viewMode:o,isPredict:t,modelInfo:r,isRunning:s,runFinished:a,flowStatus:l,canPublish:c.List.isList(i)&&!i.isEmpty(),onOpenModelInfoModal:d,onSaveModel:this.handleSaveDrageModelJson,onExecuteTrain:this.handleExecuteTrain,onPauseTrain:this.handlePauseTrain,onPublishModel:this.handlePublishModel,onPublishModelToRepo:this.handlePublishModelToRepo,onViewByNotebook:this.handleViewByNotebook,onDownloadIpynb:this.handleDownloadIpynb})},o}(i.PureComponent);o.default=(0,p.connect)((function(e){return{position:m.default.flow.selectCanvasPosition(e),modelInfo:m.default.model.selectModelInfo(e),flowNodes:m.default.flow.selectFlowNodes(e),flowLinks:m.default.flow.selectFlowLinks(e),helper:m.default.pickNode.getFuncHelper(e),isRunning:m.default.flow.selectHaveNodeRunning(e),runFinished:m.default.flow.selectRunFinished(e),flowStatus:m.default.flow.selectFlowStatus(e),save_loading:m.default.model.selectLoading(e,"SAVE_DRAG_MODEL_JSON"),save_error:m.default.model.selectError(e,"SAVE_DRAG_MODEL_JSON"),exec_loading:m.default.model.selectLoading(e,"EXECUTE_DRAG_MODEL"),exec_error:m.default.model.selectError(e,"EXECUTE_DRAG_MODEL"),pause_exec_loading:m.default.model.selectLoading(e,"PAUSE_EXECUTE_DRAG_MODEL"),pause_exec_error:m.default.model.selectError(e,"PAUSE_EXECUTE_DRAG_MODEL"),publish_to_repo_loading:m.default.model.selectLoading(e,"PUBLISH_MODEL_TO_REPO"),publish_to_repo_error:m.default.model.selectError(e,"PUBLISH_MODEL_TO_REPO"),savedModels:m.default.model.selectSaveModels(e),downloadIpynb_error:m.default.model.selectError(e,"DOWNLOAD_IPYNB")}}),(function(e,o){return{doSaveModel:function(t){var n=t.modelId,d=t.modelJson,r=t._SYNC_INTERVAL;return e(g.dragDropModelActions.saveDragModelJsonRequest({modelId:n,modelJson:d,_SYNC_INTERVAL:r,isPredict:o.isPredict}))},doExecuteTrain:function(t,n){var d=t.modelId,r=t.modelJson;e(g.flowDiagramActions.setConfigErrLog({configError:[]})),e(g.dragDropModelActions.executeDragModelRequest({modelId:d,modelJson:r,isPredict:o.isPredict,execToNode:n})),e(g.flowDiagramActions.toggleConsole())},doPauseExecuteTrain:function(t){var n=t.modelId;return e(g.dragDropModelActions.pauseExecuteDragModelRequest({modelId:n,isPredict:o.isPredict}))},doUpdateExecStatus:function(t){var n=t.modelId,d=t._SYNC_INTERVAL;return e(g.dragDropModelActions.updateExecStatusRequest({modelId:n,isPredict:o.isPredict,_SYNC_INTERVAL:d}))},doDownloadIpynb:function(o){var t=o.modelId,n=o.modelJson;return e(g.dragDropModelActions.downloadIpynbRequest({modelId:t,modelJson:n}))},doSetConfigError:function(o){return e(g.flowDiagramActions.setConfigErrLog({configError:o}))},doPublishToRepo:function(o){var t=o.modelId,n=o.modelJson;return e(g.dragDropModelActions.publishModelToRepoRequest({modelId:t,modelJson:n}))}}}))(y)},"./src/module/dragDrop/flow_arrange/toolbar/ToolBarFunc.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=f(t("./node_modules/antd/es/divider/index.js")),d=f(t("./node_modules/antd/es/tooltip/index.js")),r=f(t("./node_modules/babel-runtime/helpers/jsx.js")),s=f(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),a=f(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=f(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/divider/style/index.js"),t("./node_modules/antd/es/tooltip/style/index.js");var i=t("./node_modules/react/index.js"),u=f(i),c=(f(t("./node_modules/prop-types/index.js")),t("./src/module/dragDrop/flow_arrange/toolbar/style.jsx")),p=t("./src/module/dragDrop/config.jsx");function f(e){return e&&e.__esModule?e:{default:e}}var m=(0,r.default)(n.default,{type:"vertical"}),g=function(e){function o(t){(0,s.default)(this,o);var n=(0,a.default)(this,e.call(this,t));return n.handelFuncClick=function(e){e&&(_.has(n.props,e.handler)&&_.isFunction(n.props[e.handler])?n.props[e.handler]():console.warn("\u5904\u7406\u51fd\u6570["+e.name+"]\u672a\u5b9a\u4e49"))},n.renderTips=function(e,o){return(0,r.default)(d.default,{title:o,placement:"bottom"},void 0,e.icon," ",e.name)},n}return(0,l.default)(o,e),o.prototype.render=function(){var e=this,o=p.DIAGRAM_TOOLBAR_CONFIG.filter((function(o){return!0===e.props.viewMode?!0===o.view:(!0!==e.props.isRunning||"run"!==o.id)&&((!0===e.props.isRunning||"pause"!==o.id)&&((!0!==e.props.isPredict||"publish"!==o.id)&&(!0===e.props.isPredict||"publishToRepo"!==o.id)))}));return(0,r.default)(c.FuncStyle,{},void 0,o.map((function(t,n){return(0,r.default)(u.default.Fragment,{},t.id,(0,r.default)("span",{className:["func-item","publish"===t.id&&!0!==e.props.canPublish&&"func-item-disable","publishToRepo"===t.id&&!0!==e.props.canPublishToRepo&&"func-item-disable"].filter(Boolean).join(" "),onClick:function(){"publish"===t.id&&!0!==e.props.canPublish||"publishToRepo"===t.id&&!0!==e.props.canPublishToRepo||e.handelFuncClick(t)}},void 0,"publish"===t.id&&e.renderTips(t,!0!==e.props.canPublish?"\u6a21\u578b\u6267\u884c\u5b8c\u6210\u540e\u624d\u53ef\u53d1\u5e03":t.desc),"publishToRepo"===t.id&&e.renderTips(t,!0!==e.props.canPublishToRepo?"\u9884\u6d4b\u6d41\u7a0b\u6267\u884c\u5b8c\u6210\u540e, \u624d\u53ef\u53d1\u5e03\u81f3\u6a21\u578b\u5e93":t.desc),"publish"!==t.id&&"publishToRepo"!==t.id&&e.renderTips(t,t.desc)),n!==o.length-1&&m)})))},o}(i.PureComponent);g.defaultProps={},o.default=g},"./src/module/dragDrop/flow_arrange/toolbar/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/toolbar/FlowArrangeToolBarConnect.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/toolbar/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.FuncStyle=o.ToolBarStyle=void 0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n},s=t("./src/module/dragDrop/config.jsx");o.ToolBarStyle=r.default.div.withConfig({displayName:"style__ToolBarStyle",componentId:"sc-17eki4j-0"})(["display:flex;flex-direction:row;justify-content:space-between;border-bottom:1px solid ",";background-color:",";height:40px;line-height:40px;position:relative;user-select:none;padding-left:10px;color:rgba(0,0,0,0.8);.model-name-box{display:flex;align-items:center;color:rgba(0,0,0,0.8);.anticon:hover{color:",";}}.model-name{background-color:",";font-size:1.2em;max-width:250px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;padding-right:10px;color:#1f2d3d;}.model-status{.anticon{margin-right:5px;}padding-right:20px;}"],s.styleVar.border_color,s.styleVar.panel_title_bg,s.styleVar.icon_hover_color,s.styleVar.panel_title_bg),o.FuncStyle=r.default.div.withConfig({displayName:"style__FuncStyle",componentId:"sc-17eki4j-1"})(["padding:0 50px;margin:0;list-style:none;position:absolute;top:0;left:50%;transform:translateX(-50%);overflow:hidden;user-select:none;.func-item{display:inline-block;padding:0 10px;line-height:40px;cursor:pointer;color:#1f2d3d;transition:all 0.2s ease-in-out;.svg-icon{fill:#1f2d3d;}.anticon{font-size:16px;}&:hover{transform:scale(1.2);color:#1890ff;.svg-icon,.anticon{fill:#1890ff;color:#1890ff;}}&.func-item-disable{cursor:not-allowed;color:rgba(0,0,0,0.25);transform:none;.svg-icon{fill:rgba(0,0,0,0.25);}.anticon{color:rgba(0,0,0,0.25);}}}.ant-divider{background:",";height:1.5em;}"],s.styleVar.border_color)},"./src/module/dragDrop/node_selector/NodeSelectorPage.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=p(t("./node_modules/babel-runtime/helpers/jsx.js")),d=p(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=p(t("./node_modules/babel-runtime/helpers/inherits.js")),a=t("./node_modules/react/index.js"),l=(p(a),p(t("./node_modules/prop-types/index.js")),p(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),t("./node_modules/react-redux/es/index.js")),i=p(t("./src/module/dragDrop/node_selector/components/NodeSelector.jsx")),u=t("./src/redux/reducers/dragDrop/index.js"),c=p(t("./src/redux/selectors/dragDrop/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function o(t){(0,d.default)(this,o);var n=(0,r.default)(this,e.call(this,t));return n.handelSearch=function(e){""!==_.trim(e)&&(n.expandAll=!0),n.props.doFilterPickNodes({name:e})},n.expandAll=!1,n}return(0,s.default)(o,e),o.prototype.componentDidMount=function(){!0===this.props.loadData&&this.props.doFetchPickNodes()},o.prototype.componentDidUpdate=function(e){!0!==e.loadData&&!0===this.props.loadData&&this.props.doFetchPickNodes()},o.prototype.componentWillUnmount=function(){this.props.doClearStore()},o.prototype.render=function(){var e=this.props,o=e.data,t=e.isPredict,d=e.models,r=e.loading,s=e.onCollapsed,a=e.collapsed;return(0,n.default)(i.default,{data:o,isPredict:t,models:d,expandAll:this.expandAll,onCollapsed:s,onSearch:this.handelSearch,collapsed:a,loading:r})},o}(a.PureComponent);o.default=(0,l.connect)((function(e){return{data:c.default.pickNode.selectPickNodeTreeWithFilter(e),loading:c.default.pickNode.selectLoading(e,"GET_PICK_NODES"),error:c.default.pickNode.selectError(e,"GET_PICK_NODES"),models:c.default.model.selectSaveModels(e)}}),(function(e){return{doFetchPickNodes:function(){return e(u.pickNodesActions.getPickNodesRequest())},doFilterPickNodes:function(o){return e(u.pickNodesActions.filterPickNodes(o))},doClearStore:function(){return e(u.pickNodesActions.resetPickNodes())}}}))(f)},"./src/module/dragDrop/node_selector/components/DraggableItem.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=u(t("./node_modules/babel-runtime/helpers/jsx.js")),d=u(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=u(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=u(t("./node_modules/babel-runtime/helpers/inherits.js")),a=t("./node_modules/react/index.js"),l=(u(a),u(t("./node_modules/prop-types/index.js")),t("./node_modules/react-dnd/lib/index.js")),i=t("./src/module/dragDrop/config.jsx");function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function o(t){return(0,d.default)(this,o),(0,r.default)(this,e.call(this,t))}return(0,s.default)(o,e),o.prototype.render=function(){var e=this.props,o=e.connectDragSource,t=e.isDragging,d=e.data;return o((0,n.default)("div",{className:"draggable-item",style:{opacity:t?.5:1,cursor:t?"move":"cursor"}},void 0,d.title),{dropEffect:"copy"})},o}(a.PureComponent);o.default=(0,l.DragSource)(i.itemType.PICK_NODE,{beginDrag:function(e){return e.data}},(function(e,o){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:o.isDragging()}}))(c)},"./src/module/dragDrop/node_selector/components/NodeSearch.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=a(t("./node_modules/babel-runtime/helpers/jsx.js")),d=a(t("./node_modules/antd/es/input/index.js"));t("./node_modules/antd/es/input/style/index.js");a(t("./node_modules/react/index.js")),a(t("./node_modules/prop-types/index.js"));var r=t("./node_modules/@ant-design/icons/es/index.js"),s=t("./src/module/dragDrop/node_selector/components/style.jsx");function a(e){return e&&e.__esModule?e:{default:e}}var l=d.default.Search,i={width:150};o.default=function(e){var o=e.onCollapsed,t=e.collapsed,d=e.onSearch;return(0,n.default)(s.SearchStyle,{},void 0,(0,n.default)("span",{className:"fold-icon"},void 0,(0,n.default)(r.MenuUnfoldOutlined,{onClick:o})),!t&&(0,n.default)(l,{placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u540d\u79f0",size:"small",onSearch:d,allowClear:!0,style:i}))}},"./src/module/dragDrop/node_selector/components/NodeSelector.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=g(t("./node_modules/antd/es/result/index.js")),d=g(t("./node_modules/antd/es/spin/index.js")),r=g(t("./node_modules/babel-runtime/helpers/jsx.js")),s=g(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),a=g(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/result/style/index.js"),t("./node_modules/antd/es/spin/style/index.js");var i=t("./node_modules/react/index.js"),u=(g(i),g(t("./node_modules/prop-types/index.js")),t("./node_modules/@ant-design/icons/es/index.js")),c=t("./src/module/dragDrop/node_selector/components/style.jsx"),p=g(t("./src/module/dragDrop/node_selector/components/NodeSearch.jsx")),f=g(t("./src/module/dragDrop/node_selector/components/NodeSelectorTree.jsx")),m=g(t("./src/containers/toJS.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var h=(0,r.default)(d.default,{style:{marginTop:"100px"},tip:"\u8282\u70b9\u6570\u636e\u52a0\u8f7d\u4e2d..."}),x=(0,r.default)(n.default,{icon:(0,r.default)(u.FrownTwoTone,{twoToneColor:"#F05E6E"}),title:"\u8282\u70b9\u6570\u636e\u52a0\u8f7d\u51fa\u9519"}),v=function(e){function o(){return(0,s.default)(this,o),(0,a.default)(this,e.apply(this,arguments))}return(0,l.default)(o,e),o.prototype.render=function(){var e=this.props,o=e.isPredict,t=e.loading,n=e.error,d=e.data,s=e.models,a=e.onCollapsed,l=e.collapsed,i=e.onSearch,u=e.expandAll,m=""!==_.trim(n||""),g=null;if(_.isArray(s)&&_.size(s)>0){g={key:"model",title:"\u4fdd\u5b58\u7684\u6a21\u578b",desc:"\u6d41\u7a0b\u4e2d\u4fdd\u5b58\u7684\u7b97\u6cd5\u6a21\u578b"};var v=s.map((function(e){return{key:"model_"+e.nodeModelId,title:e.nodeModelName,desc:e.nodeModelDesc}}));g.children=v}return(0,r.default)(c.NodeSelectorContainer,{},void 0,(0,r.default)(p.default,{onCollapsed:a,collapsed:l,onSearch:i}),!0===t&&h,!0===m&&x,!0!==t&&!0!==m&&(0,r.default)(f.default,{collapsed:l,data:null!==g?!0===o?[g].concat(d):[].concat(d,[g]):d,isPredict:o,modelData:g,expandAll:u}))},o}(i.PureComponent);v.defaultProps={doSearchNodes:_.noop,collapsed:!1},o.default=(0,m.default)(v)},"./src/module/dragDrop/node_selector/components/NodeSelectorTree.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=g(t("./node_modules/antd/es/empty/index.js")),d=g(t("./node_modules/babel-runtime/helpers/jsx.js")),r=g(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=g(t("./node_modules/babel-runtime/helpers/inherits.js")),l=g(t("./node_modules/antd/es/menu/index.js"));t("./node_modules/antd/es/empty/style/index.js"),t("./node_modules/antd/es/menu/style/index.js");var i=t("./node_modules/react/index.js"),u=(g(i),g(t("./node_modules/prop-types/index.js")),g(t("./node_modules/lodash/lodash.js"))),c=t("./src/components/Icon/index.js"),p=t("./src/module/dragDrop/config.jsx"),f=g(t("./src/module/dragDrop/node_selector/components/DraggableItem.jsx")),m=t("./src/module/dragDrop/constant.js");function g(e){return e&&e.__esModule?e:{default:e}}var _=l.default.SubMenu,h=l.default.Item,x={marginTop:"100px"},v=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.renderSubMenu=function(e,o,t){return(0,d.default)(_,{title:n.renderGroup(e,o,t)},e.key,e.children.map((function(e){var o=u.default.defaultTo(u.default.get(p.NODE_TYPE_CONFIG[e.key],"ico"),u.default.get(p.NODE_TYPE_CONFIG.default,"ico"));return u.default.isArray(e.children)&&u.default.size(e.children)>0?n.renderSubMenu(e,o,++t):(0,d.default)(h,{},e.key,(0,d.default)(f.default,{data:e}))})))},n.renderMenu=function(e){return(u.default.isArray(e)?e:[]).map((function(e){var o=u.default.defaultTo(u.default.get(p.NODE_TYPE_CONFIG[e.key],"ico"),u.default.get(p.NODE_TYPE_CONFIG.default,"ico"));return u.default.isArray(e.children)&&u.default.size(e.children)>0?n.renderSubMenu(e,o,1):(0,d.default)(h,{},e.key,(0,d.default)(c.IconSvg,{type:"drag-move",color:p.styleVar.node_icon_color}),(0,d.default)(f.default,{data:e}))}))},n.renderGroup=function(e,o,t){return(0,d.default)("span",{},void 0,1===t&&(0,d.default)(c.IconSvg,{type:o,size:16,color:p.styleVar.node_icon_color}),(0,d.default)("span",{},void 0,e.title))},n.handleOpenSubMenu=function(e){n.setState({openKeys:e})},n.handlePreventContextMenu=function(e){e.preventDefault()},n.state={openKeys:[],prevProps:{collapsed:t.collapsed,expandAll:t.expandAll}},n}return(0,a.default)(o,e),o.getDerivedStateFromProps=function(e,t){return e.collapsed!==t.prevProps.collapsed?{openKeys:[]}:e.expandAll!==t.prevProps.expandAll?!0===e.expandAll?{openKeys:o.getSubMenuKey(e.data,"all"),prePros:{expandAll:e.expandAll,collapsed:e.collapsed}}:{openKeys:o.getSubMenuKey(e.data,"root"),prePros:{expandAll:e.expandAll,collapsed:e.collapsed}}:t},o.getSubMenuId=function(e){return(e||[]).reduce((function(e,t){return e.push(t.key),t.children&&u.default.size(t.children||[])>0&&(e=[].concat(e,o.getSubMenuId(t.children))),e}),[])},o.getSubMenuKey=function(e,t){return"all"===t?o.getSubMenuId(e):"root"===t?(e||[]).map((function(e){return e.key})):[]},o.prototype.render=function(){if(0===u.default.size(this.props.data))return(0,d.default)(n.default,{style:x,description:"\u6682\u65e0\u8282\u70b9\u6570\u636e",image:n.default.PRESENTED_IMAGE_SIMPLE});var e=this.props.data;return this.props.isPredict&&(e=this.props.data.filter((function(e){return e.key!==m.PICK_NODE_TYPE.ARITH}))),(0,d.default)(l.default,{getPopupContainer:function(e){return e.parentNode},className:"node-pick-menu",mode:"inline",inlineIndent:15,openKeys:this.state.openKeys,onOpenChange:this.handleOpenSubMenu,inlineCollapsed:this.props.collapsed,onContextMenu:this.handlePreventContextMenu},void 0,this.renderMenu(e))},o}(i.PureComponent);v.defaultProps={data:[],collapsed:!1},o.default=v},"./src/module/dragDrop/node_selector/components/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.NodeSelectorContainer=o.SearchStyle=void 0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n},s=t("./src/module/dragDrop/config.jsx");o.SearchStyle=r.default.div.withConfig({displayName:"style__SearchStyle",componentId:"sc-11rbtvv-0"})(["display:flex;flex-direction:row;background:",";justify-content:space-between;align-items:center;height:40px;border-bottom:1px solid rgba(0,0,0,0.1);.ant-input-search{margin-right:5px;}.fold-icon{width:40px;height:40px;line-height:40px;text-align:center;cursor:pointer;&:hover{.anticon{color:",";}}}"],s.styleVar.panel_title_bg,s.styleVar.node_hover_bg),o.NodeSelectorContainer=r.default.div.withConfig({displayName:"style__NodeSelectorContainer",componentId:"sc-11rbtvv-1"})(["display:flex;user-select:none;background-color:",";flex-direction:column;height:calc(100vh - 80px);border-right:1px solid rgba(0,0,0,0.1);overflow-y:auto;padding-bottom:30px;.node-pick-menu{border-right:none;.svg-icon{margin-right:10px;}background-color:",";.ant-menu-item{padding-bottom:5px;padding-right:10px;background-color:",";&::after{border-right:none;}}.ant-menu-item-selected{color:rgba(0,0,0,0.65);&::after{border-right:none;}}.ant-menu-submenu{margin:0;background-color:",";.ant-menu-submenu-title{margin:0;}}&.ant-menu-inline-collapsed{width:40px;height:100%;.ant-menu-submenu-title{padding:0 12px !important;}.ant-menu-submenu-title > span > span{opacity:0;}.ant-menu-submenu{&:hover{background:",";.svg-icon{fill:#ffffff;}}}}.ant-menu-submenu-popup{.ant-menu-submenu-title{&:hover > span > span{color:",";}& > span > span{opacity:1;}}.ant-menu-submenu{&:hover{background:none;.svg-icon{fill:none;}}}}& > li.ant-menu-submenu{background-color:",";.ant-menu-submenu-title{font-size:14px;}}.ant-menu-sub > li.ant-menu-submenu{.ant-menu-submenu-title{font-size:12px;color:#1f2d3d;}}.ant-menu-sub{padding-top:5px;background-color:",";}.ant-menu-submenu-open{.ant-menu-item{margin:0;}.ant-menu-item:not(.ant-menu-submenu){background-color:",";}}.draggable-item{border-radius:3px;position:relative;background:",";width:100%;padding:0 10px;height:35px;line-height:35px;cursor:move;&:after,&:before{height:15px;line-height:15px;width:15px;content:'...';position:absolute;top:50%;right:0;transform:translate(0,-50%) rotate(90deg);font-size:15px;letter-spacing:1px;color:#9e9e9e;}&:after{right:4px;}&:hover{background-color:",";color:#fff;&:after,&:before{color:#fff;}}}}"],s.styleVar.panel_body_bg,s.styleVar.panel_body_bg,s.styleVar.panel_body_bg,s.styleVar.node_open_bg,s.styleVar.node_hover_bg,s.styleVar.node_hover_bg,s.styleVar.panel_body_bg,s.styleVar.node_open_bg,s.styleVar.node_open_bg,s.styleVar.node_bg,s.styleVar.node_hover_bg)},"./src/module/dragDrop/node_selector/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/node_selector/NodeSelectorPage.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.DragDropModelingStyle=void 0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n},s=t("./src/module/dragDrop/config.jsx");o.DragDropModelingStyle=r.default.div.withConfig({displayName:"style__DragDropModelingStyle",componentId:"sc-16c77wx-0"})(["display:flex;flex-direction:row;width:100%;.flow-arrange-wrapper{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:100%;.ant-result-title{font-size:16px;}}.l-split-p,.r-split-p{.Resizer.vertical{cursor:col-resize;height:auto;width:1px;z-index:1;position:relative;border-right:1px solid ",";border-left:none;background:transparent;&:after{content:'';width:3px;height:20px;right:3px;top:50%;position:absolute;border-left:1px solid ",";border-right:1px solid ",";}}}.t-split-p{display:flex;flex:1 1 0%;height:100%;flex-direction:column;.Resizer.horizontal{cursor:row-resize;height:1px;width:auto;z-index:1;position:relative;border-bottom:1px solid ",";border-top:none;background:transparent;&:after{content:'';width:20px;height:3px;right:50%;top:5px;position:absolute;border-top:1px solid ",";border-bottom:1px solid ",";}}}.r-split-p{.Resizer.vertical{border-left:1px solid ",";border-right:none;&:after{right:0;left:3px;}}}"],s.styleVar.border_color,s.styleVar.border_color,s.styleVar.border_color,s.styleVar.border_color,s.styleVar.border_color,s.styleVar.border_color,s.styleVar.border_color)},12:function(e,o){},13:function(e,o){}}]);