3.aa4cd40f762ee881c88e.chunk.js 186 KB

1
  1. (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<u;m++)p[m]=arguments[m];return t=n=(0,a.default)(this,e.call.apply(e,[this].concat(p))),n.renderPorts=function(e,o,t){var s=n.props,a=s.dispatch,l=s.helper,u=(0,r.default)(s,["dispatch","helper"]);return g.List.isList(o)&&!o.isEmpty()&&c.default.createElement(f.default,(0,d.default)({data:o,type:e,flowNode:t,dispatch:a,helper:l},u,{__source:{fileName:i,lineNumber:15}}))},l=t,(0,a.default)(n,l)}return(0,l.default)(o,e),o.prototype.render=function(){var e=this.props,o=e.flowNodes,t=e.nodeId,d=g.Map.isMap(o)&&o.get(t)||(0,g.Map)(),r=(d.get("ports")||(0,g.List)()).groupBy((function(e){return e.get("type")}));return(0,n.default)(c.default.Fragment,{},void 0,this.renderPorts("input",r.get("input"),d),!0!==r.getIn(["output",0,"properties","dynamic"],!1)&&this.renderPorts("output",r.get("output"),d))},o}(u.Component);o.default=(0,p.connect)((function(e){return{flowLinks:m.default.flow.selectFlowLinks(e),flowNodes:m.default.flow.selectFlowNodes(e),helper:m.default.pickNode.getFuncHelper(e),activePorts:m.default.flow.selectActiveNodePorts(e)}}))(h)},"./src/module/dragDrop/flow_arrange/canvas/node_port/index.js":function(e,o,t){"use strict";o.__esModule=!0,o.NodePortGroup=o.NodePort=o.NodePorts=void 0;var n=a(t("./src/module/dragDrop/flow_arrange/canvas/node_port/NodePortsConnect.jsx")),d=a(t("./src/module/dragDrop/flow_arrange/canvas/node_port/NodePorts.jsx")),r=a(t("./src/module/dragDrop/flow_arrange/canvas/node_port/NodePort.jsx")),s=a(t("./src/module/dragDrop/flow_arrange/canvas/node_port/NodePortGroup.jsx"));function a(e){return e&&e.__esModule?e:{default:e}}o.NodePorts=d.default,o.NodePort=r.default,o.NodePortGroup=s.default,o.default=n.default},"./src/module/dragDrop/flow_arrange/canvas/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.CanvasWrapper=o.ContainerWrapper=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.ContainerWrapper=r.default.div.withConfig({displayName:"style__ContainerWrapper",componentId:"jxu13d-0"})(["flex:1 1 auto;background:",";position:relative;overflow:hidden;&.canvas-draggable{cursor:grab;}&.canvas-dragging{cursor:grabbing;background:#fffefa;}"],s.styleVar.canvas_body_bg),o.CanvasWrapper=r.default.div.withConfig({displayName:"style__CanvasWrapper",componentId:"jxu13d-1"})(["left:0;top:0;position:absolute;width:auto;transition:transform 0.3s ease-in-out,opacity 0.4s ease 0s;.node-draggable{position:absolute;z-index:888;cursor:grab;}.node-dragging{cursor:grabbing;}"])},"./src/module/dragDrop/flow_arrange/canvas/tips_panel/FlowNodeTips.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/types/index.js"),t("./src/module/dragDrop/flow_arrange/canvas/tips_panel/style.jsx")),r=t("./src/module/dragDrop/config.jsx"),s=t("./src/utils/dateUtil.js"),a=l(t("./node_modules/dayjs/dayjs.min.js"));function l(e){return e&&e.__esModule?e:{default:e}}var i=(0,n.default)("hr",{className:"divider-line"}),u=(0,n.default)("span",{className:"prop-label"},void 0,"\u540d\u79f0\uff1a"),c=(0,n.default)("span",{className:"prop-label"},void 0,"\u7c7b\u578b\uff1a"),p=(0,n.default)("span",{className:"prop-label"},void 0,"\u5907\u6ce8\uff1a"),f=function(e,o){return(0,n.default)("ul",{className:"base-info"},void 0,(0,n.default)("li",{},void 0,u,e&&e.title),(0,n.default)("li",{},void 0,c," ",_.isArray(o)&&o.join("-")),e&&e.memo&&(0,n.default)("li",{},void 0,p,e&&e.memo))},m=(0,n.default)("span",{className:"prop-label"},void 0,"\u8282\u70b9\u72b6\u6001\uff1a"),g=(0,n.default)("span",{className:"prop-label"},void 0,"\u5f00\u59cb\u65f6\u95f4\uff1a"),h=(0,n.default)("span",{className:"prop-label"},void 0,"\u7ed3\u675f\u65f6\u95f4\uff1a"),x=(0,n.default)("span",{className:"prop-label"},void 0,"\u8fd0\u884c\u65f6\u957f\uff1a"),v=(0,n.default)("span",{className:"prop-label"},void 0,"\u9519\u8bef\u4fe1\u606f\uff1a"),b=function(e,o){var t=(0,a.default)(o.beginTime),d=(0,a.default)(o.endTime),l=null;return t.isValid()&&d.isValid()&&(l=(0,s.calcRelativeTime)(t,d)),(0,n.default)("ul",{className:"execute-info"},void 0,(0,n.default)("li",{},void 0,m,(0,n.default)("span",{className:"prop-value"},void 0,r.NODE_STATUS[e.status]&&r.NODE_STATUS[e.status].desc)),t.isValid()&&(0,n.default)("li",{},void 0,g,(0,n.default)("span",{className:"prop-value"},void 0,t.format("YYYY-MM-DD HH:mm:ss"))),d.isValid()&&(0,n.default)("li",{},void 0,h,(0,n.default)("span",{className:"prop-value"},void 0,d.format("YYYY-MM-DD HH:mm:ss"))),l&&(0,n.default)("li",{},void 0,x,(0,n.default)("span",{className:"prop-value"},void 0,l)),""!==_.trim(o.message)&&(0,n.default)("li",{},void 0,v,(0,n.default)("span",{className:"prop-value"},void 0,_.trim(o.message))))};o.default=function(e){var o=e.data,t=e.nodeTypes,r=e.nodeLog;return(0,n.default)(d.TipsWrapper,{},void 0,f(o,t),i,b(o,r))}},"./src/module/dragDrop/flow_arrange/canvas/tips_panel/FlowNodeTipsConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=c(t("./node_modules/babel-runtime/helpers/extends.js")),d=c(t("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=c(t("./node_modules/react/index.js")),s=c(t("./node_modules/lodash/lodash.js")),a=(c(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),t("./node_modules/immutable3/dist/immutable.js")),l=t("./node_modules/react-redux/es/index.js"),i=c(t("./src/module/dragDrop/flow_arrange/canvas/tips_panel/FlowNodeTips.jsx")),u=c(t("./src/redux/selectors/dragDrop/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}o.default=(0,l.connect)((function(e,o){return{nodeLog:u.default.flow.selectNodeExecInfo(e,s.default.get(o,"data.id"))}}))((function(e){var o=e.nodeLog,t=(0,d.default)(e,["nodeLog"]);return r.default.createElement(i.default,(0,n.default)({},t,{nodeLog:a.Map.isMap(o)?o.toJS():{},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\canvas\\tips_panel\\FlowNodeTipsConnect.jsx",lineNumber:10}}))}))},"./src/module/dragDrop/flow_arrange/canvas/tips_panel/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/canvas/tips_panel/FlowNodeTipsConnect.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/canvas/tips_panel/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.TipsWrapper=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.TipsWrapper=r.default.div.withConfig({displayName:"style__TipsWrapper",componentId:"sc-14ckilb-0"})(["display:flex;flex-direction:column;.prop-label{padding-right:5px;text-align-last:justify;font-weight:600;display:inline-block;vertical-align:middle;}.base-info{width:250px;margin:0;padding:5px 10px;list-style:none;}.divider-line{width:100%;border:none;border-bottom:1px dashed ",";}.execute-info{margin:0;padding:5px 10px;list-style:none;li{.prop-value{display:inline-block;vertical-align:middle;max-width:300px;max-height:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;}}}"],s.styleVar.border_color)},"./src/module/dragDrop/flow_arrange/canvas/toolbar/DiagramToolbar.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),i=(u(t("./node_modules/prop-types/index.js")),t("./src/module/dragDrop/flow_arrange/canvas/toolbar/components/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,n.default)(i.TimeTravelTool,{}),p=function(e){function o(){return(0,d.default)(this,o),(0,r.default)(this,e.apply(this,arguments))}return(0,s.default)(o,e),o.prototype.render=function(){return(0,n.default)(l.default.Fragment,{},void 0,(0,n.default)(i.BulbTipIcon,{viewMode:this.props.viewMode}),!this.props.viewMode&&c,(0,n.default)(i.CanvasToolbar,{viewMode:this.props.viewMode}))},o}(a.PureComponent);o.default=p},"./src/module/dragDrop/flow_arrange/canvas/toolbar/components/BulbTipIcon.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")),t("./src/components/Icon/index.js")),r=t("./src/module/dragDrop/flow_arrange/canvas/toolbar/components/style.jsx"),s=t("./src/module/dragDrop/config.jsx");function a(e){return e&&e.__esModule?e:{default:e}}o.default=function(e){var o=e.onShowTips,t=void 0===o?_.noop:o;return(0,n.default)(r.BulbIcon,{onClick:t},void 0,(0,n.default)(d.IconSvg,{type:"bulb",size:24,color:s.styleVar.bulb_icon_bg}))}},"./src/module/dragDrop/flow_arrange/canvas/toolbar/components/CanvasToolbar.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/antd/es/slider/index.js")),r=v(t("./node_modules/antd/es/tooltip/index.js")),s=v(t("./node_modules/babel-runtime/helpers/jsx.js")),a=v(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=v(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/modal/style/index.js"),t("./node_modules/antd/es/slider/style/index.js"),t("./node_modules/antd/es/tooltip/style/index.js");var u=t("./node_modules/react/index.js"),c=(v(u),v(t("./node_modules/prop-types/index.js")),t("./node_modules/@ant-design/icons/es/index.js")),p=t("./src/module/dragDrop/flow_arrange/canvas/toolbar/components/style.jsx"),f=t("./src/components/Icon/index.js"),m=t("./src/module/dragDrop/config.jsx"),g=t("./node_modules/react-redux/es/index.js"),h=v(t("./src/redux/selectors/dragDrop/index.js")),x=t("./src/redux/reducers/dragDrop/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var b=(0,s.default)(c.MinusCircleOutlined,{}),j=(0,s.default)(c.PlusCircleOutlined,{}),y=function(e){function o(t){(0,a.default)(this,o);var n=(0,l.default)(this,e.call(this,t));return n.handleZoomIn=function(e){var o=n.state.zoomScale,t=m.zoomSliderConfig.min,d=m.zoomSliderConfig.step,r=o<=t?t:Math.round(10*(o-d))/10;n.setState({zoomScale:r}),e.preventDefault(),e.stopPropagation(),n.props.onCanvasZoom(r)},n.handleZoomOut=function(e){var o=n.state.zoomScale,t=m.zoomSliderConfig.max,d=m.zoomSliderConfig.step,r=o>=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;l<r.length;l++){var i=r[l];if(a.default.has(i,"running")&&a.default.has(i,"status")&&"node"===o){var u=(a.default.isArray(i.status)?i.status:[i.status]).filter((function(e){return!a.default.isNil(e)}));s=d!==a.default.get(i,"running")||!a.default.includes(u,t.status)}else if(a.default.has(i,"inRunningFlow")&&a.default.has(i,"status")&&"node"===o){var c=(a.default.isArray(i.status)?i.status:[i.status]).filter((function(e){return!a.default.isNil(e)}));s=n!==a.default.get(i,"inRunningFlow")||!a.default.includes(c,t.status)}else if(a.default.has(i,"status")&&"node"===o){var p=(a.default.isArray(i.status)?i.status:[i.status]).filter((function(e){return!a.default.isNil(e)}));s=!a.default.includes(p,t.status)}else a.default.has(i,"running")?s=d!==a.default.get(i,"running"):a.default.has(i,"inRunningFlow")&&(s=n!==a.default.get(i,"inRunningFlow"));if(!s)break}return e.disable=!0===s,e}))},m=(0,r.default)(n.default,{}),g=function(e){var o=e.viewMode,t=e.menuItems,n=e.position,i=e.targetType,c=e.targetData,p=e.helper,g=e.handleMenuClick,_=e.inRunningFlow,h=e.isRunning,x=function(e,o,t,n,d,r,s){if(!a.default.isArray(o))return[];var l="node"===t&&n&&d.getRecursionNodeTypeIds(n.type),i=a.default.filter(o,(function(e){return!!a.default.includes(e.target,t)&&(!(a.default.isArray(e.scope)&&a.default.size(e.scope)>0)||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<a.default.size(Object.keys(v))-1&&t.push((0,r.default)("li",{className:"divide-line"},"divider-"+o,m)),t})))};g.defaultProps={menuItems:i.CONTEXT_MENU_CONFIG},o.default=(0,c.default)(g)},"./src/module/dragDrop/flow_arrange/context_menu/ContextMenuConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=f(t("./node_modules/babel-runtime/helpers/jsx.js")),d=f(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=f(t("./node_modules/babel-runtime/helpers/inherits.js")),a=t("./node_modules/react/index.js"),l=(f(a),f(t("./node_modules/prop-types/index.js")),f(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),t("./node_modules/immutable3/dist/immutable.js")),i=t("./node_modules/react-redux/es/index.js"),u=t("./src/redux/reducers/dragDrop/index.js"),c=f(t("./src/redux/selectors/dragDrop/index.js")),p=f(t("./src/module/dragDrop/flow_arrange/context_menu/ContextMenuHandler.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function o(t){(0,d.default)(this,o);var n=(0,r.default)(this,e.call(this,t));return n.handleCloseContextMenu=function(){var e=n.props.contextMenu;l.Map.isMap(e)&&e.get("type")&&e.get("position")&&n.props.onCloseContextMenu()},n}return(0,s.default)(o,e),o.prototype.componentDidMount=function(){document.addEventListener("click",this.handleCloseContextMenu)},o.prototype.componentWillUnmount=function(){document.removeEventListener("click",this.handleCloseContextMenu)},o.prototype.render=function(){var e=this.props,o=e.contextMenu,t=e.viewMode;return l.Map.isMap(o)&&o.get("type")&&o.get("position")?(0,n.default)(p.default,{viewMode:t,targetType:o.get("type"),targetData:o.get("data")||(0,l.Map)(),position:o.get("position")||(0,l.Map)()}):null},o}(a.Component);o.default=(0,i.connect)((function(e){return{contextMenu:c.default.flow.selectContextMenu(e)}}),(function(e){return{onCloseContextMenu:function(){return e(u.flowDiagramActions.updateContextMenu({contextMenu:null}))}}}))(m)},"./src/module/dragDrop/flow_arrange/context_menu/ContextMenuHandler.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=p(t("./node_modules/lodash/lodash.js")),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")),l=p(t("./src/module/dragDrop/flow_arrange/context_menu/ContextMenu.jsx")),i=t("./src/module/dragDrop/context_menu_config.jsx"),u=p(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/index.js")),c=p(t("./src/redux/selectors/dragDrop/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}o.default=(0,a.connect)((function(e){var o=c.default.model.selectModelInfo(e);return{modelId:o&&o.get("modelId"),flowLinks:c.default.flow.selectFlowLinks(e),flowNodes:c.default.flow.selectFlowNodes(e),helper:c.default.pickNode.getFuncHelper(e),canvasPosition:c.default.flow.selectCanvasPosition(e),isRunning:c.default.flow.selectHaveNodeRunning(e),inRunningFlow:c.default.flow.selectIsInRunningFlowForContextMenu(e)}}))((function(e){var o=e.dispatch,t=e.flowLinks,a=e.flowNodes,c=e.canvasPosition,p=e.helper,f=e.modelId,m=(0,d.default)(e,["dispatch","flowLinks","flowNodes","canvasPosition","helper","modelId"]);return r.default.createElement(l.default,(0,n.default)({},m,{helper:p,handleMenuClick:function(e){return function(e){var o=e.menuId,t=e.type,n=e.data,d=e.dispatch,r=e.nodes,a=e.links,l=e.helper,c=e.modelId,p=e.canvasPosition,f=s.default.find(i.CONTEXT_MENU_CONFIG,{id:o});s.default.has(u.default,o)&&s.default.isFunction(u.default[o])?u.default[o]({menuId:o,type:t,data:n,dispatch:d,nodes:r,links:a,helper:l,modelId:c,canvasPosition:p}):console.warn("\u53f3\u952e\u83dc\u5355[ "+o+":"+f.title+" ]\u5904\u7406\u51fd\u6570\u672a\u5b9a\u4e49")}({menuId:e.menuId,type:e.type,data:e.data,dispatch:o,helper:p,links:t,nodes:a,canvasPosition:c,modelId:f})},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\context_menu\\ContextMenuHandler.jsx",lineNumber:22}}))}))},"./src/module/dragDrop/flow_arrange/context_menu/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/context_menu/ContextMenuConnect.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/NodeExecLog.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=s(t("./node_modules/babel-runtime/helpers/jsx.js")),d=(s(t("./node_modules/react/index.js")),s(t("./node_modules/prop-types/index.js")),s(t("./node_modules/lodash/lodash.js"))),r=s(t("./src/containers/toJS.jsx"));function s(e){return e&&e.__esModule?e:{default:e}}o.default=(0,r.default)((function(e){var o=e.data;return d.default.isArray(o)&&o.map((function(e,o){return"error"===d.default.get(e,"type")?(0,n.default)("div",{style:{color:"rgb(239, 89, 111)"}},void 0,(0,n.default)("p",{},o,d.default.get(e,"output")),d.default.get(e,"trace")&&(0,n.default)("pre",{},"log-trace-"+o,d.default.get(e,"trace",[]).map((function(e,o){return(0,n.default)("pre",{},"trace-"+o,e)})))):(0,n.default)("p",{},o,d.default.get(e,"output"))}))}))},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/NodeExecResult.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/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"));t("./node_modules/antd/es/result/style/index.js");var l=t("./node_modules/react/index.js"),i=(g(l),g(t("./node_modules/prop-types/index.js")),g(t("./node_modules/lodash/lodash.js"))),u=t("./src/components/exception/index.js"),c=g(t("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=g(t("./src/module/modelTrain/trainReport/section/index.js")),f=g(t("./src/module/modelTrain/trainReport/layout/index.js")),m=g(t("./src/containers/toJS.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var _=c.default.div.withConfig({displayName:"NodeExecResult__TrainReportWrapper",componentId:"sc-182ler7-0"})(["display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden;.report-tabs{display:flex;flex-direction:column;flex:1 1 auto;.ant-tabs-content{flex:1 1 auto;}.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-tab{font-size:12px;color:#1f2d3d;letter-spacing:1px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.ant-tabs-tab-disabled{pointer-events:none;color:rgba(0,0,0,0.25);}.ant-tabs-tabpane{padding:0;}}"]),h=c.default.div.withConfig({displayName:"NodeExecResult__TrainReportBody",componentId:"sc-182ler7-1"})(["background:#fff;flex:1 1 auto;display:flex;flex-direction:column;.report-title{font-size:14px;line-height:50px;height:50px;background:#f5f6f9;border-radius:4px;padding:0 30px;span{float:right;}}"]),x=(0,d.default)(n.default,{status:"warning",title:"\u672a\u67e5\u8be2\u5230\u6570\u636e\u7ed3\u679c\uff01"}),v=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.handleChangeTab=function(e){n.setState({activeTab:e})},n.state={activeTab:"tab-0"},n}return(0,a.default)(o,e),o.prototype.renderTabs=function(){var e=this,o=this.props.reportData;return(0,d.default)("div",{className:"report-tabs"},void 0,0===o.length&&x,o&&o.map((function(o,t){return(0,d.default)(u.ErrorBoundary,{},t,i.default.get(o,"sections",[]).map((function(o,t){var n=o.title,r=o.desc,s=o.uiType,a=o.result,l=o.subSections,u=o.layout,c=p.default.comp[s],m=null;return i.default.isEmpty(l)?c||console.error("["+n+"] The uiType property configured error"):(m=f.default[u])||console.error("["+n+"] The layout property configured error"),(0,d.default)(p.default,{title:n,desc:r},"section-"+t,!i.default.isEmpty(l)&&(0,d.default)(m,{sections:l}),i.default.isEmpty(l)&&(0,d.default)(c,{data:a,extraData:e.props.extraData}))})))})))},o.prototype.render=function(){return(0,d.default)(_,{},void 0,(0,d.default)(h,{},void 0,this.renderTabs()))},o}(l.Component);o.default=(0,m.default)(v)},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/SaveModelResultModal.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=j(t("./node_modules/antd/es/modal/index.js")),d=j(t("./node_modules/babel-runtime/helpers/jsx.js")),r=j(t("./node_modules/babel-runtime/helpers/extends.js")),s=j(t("./node_modules/antd/es/message/index.js")),a=j(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=j(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=j(t("./node_modules/babel-runtime/helpers/inherits.js")),u=j(t("./node_modules/antd/es/input/index.js"));t("./node_modules/antd/es/modal/style/index.js"),t("./node_modules/antd/es/message/style/index.js"),t("./node_modules/antd/es/input/style/index.js");var c=t("./node_modules/react/index.js"),p=j(c),f=t("./node_modules/react-redux/es/index.js"),m=(j(t("./node_modules/prop-types/index.js")),t("./node_modules/immutable3/dist/immutable.js")),g=(j(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),t("./node_modules/@ant-design/compatible/es/index.js"));t("./node_modules/@ant-design/compatible/assets/index.css");var h=j(t("./src/redux/selectors/dragDrop/index.js")),x=t("./src/redux/reducers/dragDrop/index.js"),v=j(t("./src/redux/services/dragDropModel.js")),b=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 j(e){return e&&e.__esModule?e:{default:e}}var y=g.Form.Item,w=u.default.TextArea,C={labelCol:{span:5},wrapperCol:{span:18}},M=(0,d.default)(u.default,{placeholder:"\u8bf7\u8f93\u5165\u6a21\u578b\u540d\u79f0"}),D=(0,d.default)(w,{rows:2}),N=function(e){function o(t){(0,a.default)(this,o);var n=(0,l.default)(this,e.call(this,t));return n.handleCancel=function(){n.props.onCloseModal()},n.handleSave=function(){var e=n.props,o=e.modelId,t=e.flowNodes,d=e.flowLinks,a=e.helper,l=e.position,i=e.nodeModelFile,u=_.get(n.props.data,"id"),c=b.validateFlowConfig({nodeId:u,flowNodes:t,flowLinks:d,helper:a}),p=c.validate,f=c.result;if(!1===p)return s.default.error("\u7b97\u6cd5\u8f93\u51fa\u6a21\u578b\u6d41\u7a0b\u914d\u7f6e\u9519\u8bef"),void console.error("\u7b97\u6cd5\u8f93\u51fa\u6a21\u578b\u6d41\u7a0b\u914d\u7f6e\u9519\u8bef",f);var g=(f.flowNodes||(0,m.Map)()).updateIn([u,"properties"],(function(e){return(e||(0,m.Map)()).merge({isModelSrc:!0})})),h=b.getNodesInRearFlowByNodeId({nodeId:u,flowLinks:d});_.isArray(h)&&!_.isEmpty(h)&&(g=g.withMutations((function(e){h.map((function(o){return o!==u&&e.delete(o)}))})));var x=b.buildDragModelJson({position:l,modelId:o,flowNodes:g,flowLinks:f.flowLinks});x?n.props.form.validateFields((function(e,t){_.isNil(e)&&(n.hasSave=!0,n.props.doSaveModelResult((0,r.default)({},t,{modelId:o,nodeModelFile:i,modelConf:x,arithId:_.get(n.props.data,"type")})))})):s.default.error("\u6784\u5efa\u7b97\u6cd5\u8f93\u51fa\u6a21\u578b\u6d41\u7a0bjson\u9519\u8bef")},n.validateNameRepeat=function(e,o,t){""!==_.trim(o)?v.default.checkNodeModelName({modelId:n.props.modelId,nodeModelName:_.trim(o)}).then((function(e){1===e.code?t():t("\u6a21\u578b\u540d\u79f0\u91cd\u590d")})).catch((function(){t("\u6a21\u578b\u540d\u79f0\u91cd\u590d")})):t()},n.hasSave=!1,n}return(0,i.default)(o,e),o.prototype.componentDidUpdate=function(e){this.hasSave&&""!==_.trim(this.props.saveError)&&s.default.error("\u4fdd\u5b58\u8bad\u7ec3\u6a21\u578b\u51fa\u9519,\u9519\u8bef\u4fe1\u606f:"+this.props.saveError,3),!0!==e.saveLoading||!1!==this.props.saveLoading||this.props.saveError||(s.default.info("\u4fdd\u5b58\u8bad\u7ec3\u6a21\u578b\u6210\u529f\uff01"),this.props.onCloseModal())},o.prototype.render=function(){var e=this.props.saveLoading,o=this.props.form.getFieldDecorator;return(0,d.default)(n.default,{title:"\u4fdd\u5b58\u6a21\u578b",visible:!0,onOk:this.handleSave,okText:"\u4fdd\u5b58",cancelText:"\u53d6\u6d88",onCancel:this.handleCancel,confirmLoading:e},void 0,p.default.createElement(g.Form,(0,r.default)({},C,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\context_menu\\menu_handler\\SaveModelResultModal.jsx",lineNumber:113}}),(0,d.default)(y,{label:"\u6a21\u578b\u540d\u79f0"},void 0,o("nodeModelName",{validateTrigger:"onBlur",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6a21\u578b\u540d\u79f0"},{max:50,message:"\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26"},{validator:this.validateNameRepeat,message:"\u6a21\u578b\u540d\u79f0\u4e0d\u80fd\u91cd\u590d"}]})(M)),(0,d.default)(y,{label:"\u6a21\u578b\u63cf\u8ff0"},void 0,o("nodeModelDesc",{rules:[{max:200,message:"\u63cf\u8ff0\u4fe1\u606f\u4e0d\u80fd\u8d85\u8fc7200\u4e2a\u5b57\u7b26"}]})(D))))},o}(c.Component);o.default=(0,f.connect)((function(e,o){var t=h.default.model.selectModelInfo(e),n=t&&t.get("modelId"),d=_.get(o.data,"id");return{modelId:n,saveLoading:h.default.model.selectLoading(e,"SAVE_MODEL_RESULT"),saveError:h.default.model.selectError(e,"SAVE_MODEL_RESULT"),nodeModelFile:h.default.flow.selectSaveModelPath(e,d)||"",position:h.default.flow.selectCanvasPosition(e),flowNodes:h.default.flow.selectFlowNodes(e),flowLinks:h.default.flow.selectFlowLinks(e),helper:h.default.pickNode.getFuncHelper(e)}}),(function(e,o){return{doSaveModelResult:function(t){var n=t.modelId,d=t.nodeModelName,r=t.nodeModelDesc,s=t.nodeModelFile,a=t.arithId,l=t.modelConf;return e(x.dragDropModelActions.saveModelResultRequest({modelId:n,nodeModelName:d,nodeModelDesc:r,nodeModelFile:s,arithId:a,modelConf:l,isPredict:o.isPredict}))}}}))(g.Form.create()(N))},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/ViewNodeExecDataModal.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=x(t("./node_modules/antd/es/result/index.js")),d=x(t("./node_modules/antd/es/modal/index.js")),r=x(t("./node_modules/babel-runtime/helpers/jsx.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"));t("./node_modules/antd/es/result/style/index.js"),t("./node_modules/antd/es/modal/style/index.js");var i=t("./node_modules/react/index.js"),u=(x(i),t("./node_modules/react-redux/es/index.js")),c=(x(t("./node_modules/prop-types/index.js")),t("./node_modules/immutable3/dist/immutable.js")),p=t("./node_modules/@ant-design/icons/es/index.js"),f=t("./src/components/index.js"),m=x(t("./src/redux/selectors/dragDrop/index.js")),g=t("./src/redux/reducers/dragDrop/index.js"),h=x(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/components/TabResult.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var v={top:50},b={height:"calc(100vh - 150px)",overflow:"auto"},j=(0,r.default)(f.LoadingIndicator,{}),y=(0,r.default)(p.FrownTwoTone,{twoToneColor:"#F05E6E"}),w=function(e){function o(t){(0,s.default)(this,o);var n=(0,a.default)(this,e.call(this,t));return n.handleCancel=function(){n.props.onCloseModal()},n}return(0,l.default)(o,e),o.prototype.componentDidMount=function(){var e=this.props,o=e.modelId,t=e.data;this.props.doFetchNodeExecResult({modelId:o,nodeId:_.get(t,"id")})},o.prototype.componentWillUnmount=function(){this.props.doResetNodeResult()},o.prototype.render=function(){var e=_.get(this.props.data,"title");return(0,r.default)(d.default,{title:"\u6d41\u7a0b\u8282\u70b9\u3010"+e+"\u3011\u6267\u884c\u8f93\u51fa\u6570\u636e",visible:!0,footer:null,width:"90%",style:v,bodyStyle:b,maskClosable:!0,onCancel:this.handleCancel},void 0,!0===this.props.getLoading&&j,!0!==this.props.getLoading&&""!==_.trim(this.props.getError)&&(0,r.default)(n.default,{icon:y,title:this.props.getError}),!0!==this.props.getLoading&&c.Map.isMap(this.props.resultData)&&(0,r.default)(h.default,{data:this.props.resultData,dsMap:_.get(this.props.data,"dsMap")}))},o}(i.Component);o.default=(0,u.connect)((function(e,o){var t=m.default.model.selectModelInfo(e),n=t&&t.get("modelId"),d=_.get(o.data,"id");return{modelId:n,getLoading:m.default.model.selectLoading(e,"GET_NODE_EXEC_RESULT"),getError:m.default.model.selectError(e,"GET_NODE_EXEC_RESULT"),resultData:m.default.flow.selectNodeResult(e,d)||(0,c.Map)(),extIds:m.default.flow.selectNodeResultExtIds(e,d)||(0,c.Map)()}}),(function(e,o){return{doFetchNodeExecResult:function(t){var n=t.modelId,d=t.nodeId;return e(g.dragDropModelActions.getNodeExecResultRequest({modelId:n,nodeId:d,type:"GET_DATA",isPredict:o.isPredict}))},doResetNodeResult:function(){return e(g.flowDiagramActions.resetNodeResult())}}}))(w)},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/ViewNodeExecLogModal.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=x(t("./node_modules/antd/es/result/index.js")),d=x(t("./node_modules/antd/es/modal/index.js")),r=x(t("./node_modules/babel-runtime/helpers/jsx.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"));t("./node_modules/antd/es/result/style/index.js"),t("./node_modules/antd/es/modal/style/index.js");var i=t("./node_modules/react/index.js"),u=(x(i),t("./node_modules/react-redux/es/index.js")),c=(x(t("./node_modules/prop-types/index.js")),t("./node_modules/@ant-design/icons/es/index.js")),p=t("./src/components/index.js"),f=x(t("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=x(t("./src/redux/selectors/dragDrop/index.js")),g=t("./src/redux/reducers/dragDrop/index.js"),h=(x(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),x(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/NodeExecLog.jsx")));function x(e){return e&&e.__esModule?e:{default:e}}var v=f.default.div.withConfig({displayName:"ViewNodeExecLogModal__LogBox",componentId:"sc-1q4roa7-0"})(["padding:10px;color:RGBA(206,207,207,1);background:RGBA(62,65,66,1);min-height:300px;overflow:auto;border-radius:2px;word-break:break-all;"]),b=(0,r.default)(p.LoadingIndicator,{}),j=(0,r.default)(c.FrownTwoTone,{twoToneColor:"#F05E6E"}),y=function(e){function o(){var t,n,d;(0,s.default)(this,o);for(var r=arguments.length,l=Array(r),i=0;i<r;i++)l[i]=arguments[i];return t=n=(0,a.default)(this,e.call.apply(e,[this].concat(l))),n.handleCancel=function(){n.props.onCloseModal()},d=t,(0,a.default)(n,d)}return(0,l.default)(o,e),o.prototype.componentDidMount=function(){var e=this.props,o=e.modelId,t=e.data;this.props.doFetchNodeExecLog({modelId:o,nodeId:_.get(t,"id")})},o.prototype.componentWillUnmount=function(){this.props.doClearNodeExecLog()},o.prototype.render=function(){var e=_.get(this.props.data,"title");return(0,r.default)(d.default,{title:"\u6d41\u7a0b\u8282\u70b9\u3010"+e+"\u3011\u6267\u884c\u65e5\u5fd7",visible:!0,footer:null,width:"60%",maskClosable:!0,onCancel:this.handleCancel},void 0,(0,r.default)(v,{},void 0,!0===this.props.getLoading&&b,!0!==this.props.getLoading&&""!==_.trim(this.props.getError)&&(0,r.default)(n.default,{icon:j,title:this.props.getError}),!0!==this.props.getLoading&&""===_.trim(this.props.getError||"")&&(0,r.default)(h.default,{data:this.props.nodeLogs})))},o}(i.Component);o.default=(0,u.connect)((function(e,o){var t=m.default.model.selectModelInfo(e),n=t&&t.get("modelId"),d=_.get(o.data,"id");return{modelId:n,getLoading:m.default.model.selectLoading(e,"GET_NODE_EXEC_LOG"),getError:m.default.model.selectError(e,"GET_NODE_EXEC_LOG"),nodeLogs:m.default.flow.selectNodeExecLog(e,d)}}),(function(e,o){return{doClearNodeExecLog:function(){return e(g.dragDropModelActions.clearNodeExecLog())},doFetchNodeExecLog:function(t){var n=t.modelId,d=t.nodeId;return e(g.dragDropModelActions.getNodeExecLogRequest({modelId:n,nodeId:d,isPredict:o.isPredict}))}}}))(y)},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/ViewNodeExecResultModal.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=v(t("./node_modules/antd/es/result/index.js")),d=v(t("./node_modules/antd/es/modal/index.js")),r=v(t("./node_modules/babel-runtime/helpers/jsx.js")),s=v(t("./node_modules/babel-runtime/helpers/extends.js")),a=v(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=v(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/result/style/index.js"),t("./node_modules/antd/es/modal/style/index.js");var u=t("./node_modules/react/index.js"),c=(v(u),t("./node_modules/react-redux/es/index.js")),p=(v(t("./node_modules/prop-types/index.js")),t("./node_modules/immutable3/dist/immutable.js")),f=t("./node_modules/@ant-design/icons/es/index.js"),m=t("./src/components/index.js"),g=v(t("./src/redux/selectors/dragDrop/index.js")),h=t("./src/redux/reducers/dragDrop/index.js"),x=v(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/NodeExecResult.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var b={top:50},j={height:"calc(100vh - 150px)",overflow:"auto"},y=(0,r.default)(m.LoadingIndicator,{}),w=(0,r.default)(f.FrownTwoTone,{twoToneColor:"#F05E6E"}),C=function(e){function o(t){(0,a.default)(this,o);var n=(0,l.default)(this,e.call(this,t));return n.handleCancel=function(){n.props.onCloseModal()},n}return(0,i.default)(o,e),o.prototype.componentDidMount=function(){var e=this.props,o=e.modelId,t=e.data;this.props.doFetchNodeExecResult((0,s.default)({modelId:o,nodeId:_.get(t,"id")},this.props.extIds))},o.prototype.componentWillUnmount=function(){this.props.doResetNodeResult()},o.prototype.render=function(){var e=_.get(this.props.data,"title");return(0,r.default)(d.default,{title:"\u6d41\u7a0b\u8282\u70b9\u3010"+e+"\u3011\u6267\u884c\u7ed3\u679c",visible:!0,footer:null,width:"90%",style:b,bodyStyle:j,maskClosable:!0,onCancel:this.handleCancel},void 0,!0===this.props.getLoading&&y,!0!==this.props.getLoading&&""!==_.trim(this.props.getError)&&(0,r.default)(n.default,{icon:w,title:this.props.getError}),!0!==this.props.getLoading&&p.List.isList(this.props.resultData)&&(0,r.default)(x.default,{reportData:this.props.resultData}))},o}(u.Component);o.default=(0,c.connect)((function(e,o){var t=g.default.model.selectModelInfo(e),n=t&&t.get("modelId"),d=_.get(o.data,"id");return{modelId:n,getLoading:g.default.model.selectLoading(e,"GET_NODE_EXEC_RESULT"),getError:g.default.model.selectError(e,"GET_NODE_EXEC_RESULT"),resultData:g.default.flow.selectNodeResult(e,d)||(0,p.List)(),extIds:g.default.flow.selectNodeResultExtIds(e,d)||(0,p.Map)()}}),(function(e,o){return{doFetchNodeExecResult:function(t){var n=t.modelId,d=t.nodeId,r=t.airthNodeId,s=t.predictNodeId;return e(h.dragDropModelActions.getNodeExecResultRequest({modelId:n,nodeId:d,isPredict:o.isPredict,airthNodeId:r,predictNodeId:s}))},doResetNodeResult:function(){return e(h.flowDiagramActions.resetNodeResult())}}}))(C)},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/components/TabResult.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=p(t("./node_modules/antd/es/tabs/index.js"));t("./node_modules/antd/es/tabs/style/index.js");var l=p(t("./node_modules/react/index.js")),i=(p(t("./node_modules/prop-types/index.js")),p(t("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=p(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/components/TabTable.jsx")),c=p(t("./src/containers/toJS.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=a.default.TabPane,m=i.default.div.withConfig({displayName:"TabResult__TabResultDom",componentId:"jspncx-0"})(["width:100%;"]),g=function(e){function o(t){(0,d.default)(this,o);var n=(0,r.default)(this,e.call(this,t));return n.getTabUrl=function(e){var o=0,t="";return Object.keys(e).map((function(e){0===o&&(t=e),o++})),t},n.onChange=function(e){n.setState({tabKey:e})},n.state={tabKey:n.getTabUrl(t.data)},n}return(0,s.default)(o,e),o.prototype.render=function(){var e=this.props,o=e.data,t=e.dsMap;return(0,n.default)(m,{},void 0,(0,n.default)(a.default,{type:"card",defaultActiveKey:this.state.tabKey,activeKey:this.state.tabKey,onChange:this.onChange},void 0,Object.keys(o).map((function(e){return(0,n.default)(f,{tab:t&&"{}"!==JSON.stringify(t)?t[e]:e},e,(0,n.default)(u.default,{data:o[e]}))}))))},o}(l.default.Component);o.default=(0,c.default)(g)},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/components/TabTable.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=m(t("./node_modules/antd/es/table/index.js")),d=m(t("./node_modules/antd/es/col/index.js")),r=m(t("./node_modules/antd/es/row/index.js")),s=m(t("./node_modules/babel-runtime/helpers/jsx.js")),a=m(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=m(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=m(t("./node_modules/babel-runtime/helpers/inherits.js"));t("./node_modules/antd/es/table/style/index.js"),t("./node_modules/antd/es/col/style/index.js"),t("./node_modules/antd/es/row/style/index.js");var u=m(t("./node_modules/react/index.js")),c=(m(t("./node_modules/prop-types/index.js")),m(t("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=m(t("./node_modules/lodash/lodash.js")),f=t("./src/components/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var g=c.default.div.withConfig({displayName:"TabTable__TableDom",componentId:"sc-1rlwwoi-0"})(["width:100%;"]),_=(0,s.default)("span",{},void 0,"\u603b\u884c\u6570\uff1a"),h=(0,s.default)("span",{},void 0,"\u603b\u5217\u6570\uff1a"),x=function(e){function o(t){(0,a.default)(this,o);var n=(0,l.default)(this,e.call(this,t));return n.getColumns=function(e,o){var t=[];if(e)for(var n=0;n<e.length;n++){var d=e[n].name;0===n||1===n?t.push({title:o?o[d]:d,width:100,dataIndex:d,key:d,fixed:"left"}):t.push({title:o?o[d]:d,dataIndex:d,key:n})}return t},n.state={},n}return(0,i.default)(o,e),o.prototype.render=function(){var e={width:"100%"},o=this.props.data;return(0,s.default)(g,{},void 0,(0,s.default)(f.ModelConfigPanel,{title:"\u6570\u636e\u7edf\u8ba1\u4fe1\u606f",style:e},void 0,(0,s.default)(r.default,{style:{marginBottom:10},gutter:16},void 0,(0,s.default)(d.default,{span:2},void 0,_,(0,s.default)("span",{style:{fontWeight:700,fontSize:14}},void 0,o.rows)," \u884c"),(0,s.default)(d.default,{span:2},void 0,h,(0,s.default)("span",{style:{fontWeight:700,fontSize:14}},void 0,o.columns)," \u5217")),(0,s.default)(n.default,{columns:this.getColumns(p.default.get(o,"stat.schema.fields",[]),{index:"\u5b57\u6bb5\u5217",min:"\u6700\u5c0f\u503c",max:"\u6700\u5927\u503c",range:"\u6781\u5dee",var:"\u65b9\u5dee",std:"\u6807\u51c6\u5dee",mean:"\u5e73\u5747\u503c",median:"\u4e2d\u4f4d\u6570",mode:"\u4f17\u6570"}),dataSource:p.default.get(o,"stat.data",[]),scroll:{x:1300}})),(0,s.default)(f.ModelConfigPanel,{title:"\u524d\u5341\u6761\u6570\u636e\u9884\u89c8",style:e},void 0,(0,s.default)(n.default,{pagination:!1,columns:this.getColumns(p.default.get(o,"top.schema.fields",[])),dataSource:p.default.get(o,"top.data",[]),scroll:{x:1300}})))},o}(u.default.Component);o.default=x},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/flowDiagram.js":function(e,o,t){"use strict";o.__esModule=!0,o.revertCanvas=o.clearCanvas=void 0;var n,d=t("./node_modules/antd/es/message/index.js"),r=(n=d)&&n.__esModule?n:{default:n};t("./node_modules/antd/es/message/style/index.js");var s=t("./src/module/dragDrop/flow_arrange/utils/diagramUtil.js"),a=t("./src/redux/reducers/dragDrop/index.js");o.clearCanvas=function(e){var o=e.dispatch,t=e.nodes;(0,s.haveExecuteNode)(t)?r.default.info("\u6a21\u578b\u6267\u884c\u8bad\u7ec3\u4e2d\u65f6\uff0c\u7981\u6b62\u6e05\u7a7a\u753b\u5e03\uff01"):(0,s.confirmExt)({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",okCallback:function(){o(a.flowDiagramActions.clearFlowDiagram())}})},o.revertCanvas=function(e){(0,e.dispatch)(a.flowDiagramActions.updateCanvasBestView())}},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/flowLink.js":function(e,o,t){"use strict";o.__esModule=!0,o.deleteNodeLink=void 0;var n=t("./src/module/dragDrop/flow_arrange/utils/diagramUtil.js"),d=t("./src/redux/reducers/dragDrop/index.js");o.deleteNodeLink=function(e){var o=e.type,t=e.dispatch,r=e.data,s=e.nodes,a=e.links;if("link"===o&&!_.isNil(_.get(r,"id"))){var l=_.get(r,"id");(0,n.isInRunFlow)({type:o,id:l,nodes:s,links:a})?message.info("\u6267\u884c\u4e2d\u7684\u6d41\u7a0b,\u8fde\u7ebf\u4e0d\u5141\u8bb8\u5220\u9664; \u8bf7\u505c\u6b62\u6267\u884c\u540e\u518d\u5220\u9664"):(0,n.confirmExt)({title:"\u786e\u8ba4\u5220\u9664\u8be5\u8282\u70b9\u95f4\u8fde\u7ebf?",okCallback:function(){t(d.flowDiagramActions.removeLink({id:l}))}})}}},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/flowNode.js":function(e,o,t){"use strict";o.__esModule=!0,o.saveModelResult=o.viewNodeExecData=o.viewNodeExecResult=o.viewNodeExecLog=o.execNode=o.removeNode=void 0;var n=l(t("./node_modules/babel-runtime/helpers/extends.js")),d=l(t("./node_modules/antd/es/message/index.js"));t("./node_modules/antd/es/message/style/index.js");var 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/utils/diagramUtil.js")),s=t("./src/redux/reducers/dragDrop/index.js"),a=l(t("./src/module/dragDrop/events.js"));function l(e){return e&&e.__esModule?e:{default:e}}o.removeNode=function(e){var o=e.type,t=e.data,n=e.dispatch,a=e.nodes,l=e.links;if("node"===o&&!_.isNil(_.get(t,"id"))){var i=_.get(t,"id");if(r.isRunNode({id:i,nodes:a,links:l}))d.default.info("\u8282\u70b9\u5904\u4e8e\u6267\u884c\u7b49\u5f85\u6216\u6267\u884c\u4e2d\u65f6\uff0c\u7981\u6b62\u5220\u9664\uff0c\u8bf7\u505c\u6b62\u6267\u884c\u540e\u518d\u5220\u9664");else if(r.isInRunFlow({type:o,id:i,nodes:a,links:l}))d.default.info("\u6267\u884c\u4e2d\u7684\u6d41\u7a0b\u4f9d\u8d56\u6b64\u8282\u70b9\u65f6\uff0c\u7981\u6b62\u5220\u9664\uff0c\u8bf7\u505c\u6b62\u6267\u884c\u6d41\u7a0b\u540e\u518d\u5220\u9664");else{var u=r.getNeedDeleteLinks({nodeId:i,links:l});r.confirmExt({title:"\u786e\u8ba4\u5220\u9664\u8be5\u8282\u70b9?",content:"\u5220\u9664\u8282\u70b9\uff0c\u5c06\u5220\u9664\u4e0e\u6b64\u8282\u70b9\u76f8\u5173\u7684\u8fde\u7ebf",okCallback:function(){n(s.flowDiagramActions.removeElement({nodeIds:[i],linkIds:u}))}})}}},o.execNode=function(e){var o=e.data;a.default.emit("CONTEXT_MENU:EXECUTE_NODE_FLOW",o)},o.viewNodeExecLog=function(e){var o=e.data;a.default.emit("CONTEXT_MENU:VIEW_NODE_LOG",o)},o.viewNodeExecResult=function(e){var o=e.data;a.default.emit("CONTEXT_MENU:VIEW_NODE_RESULT",o)},o.viewNodeExecData=function(e){var o=e.data,t=e.nodes.getIn([o.id,"ports"]).filter((function(e){return"output"===e.get("type")})).reduce((function(e,o){return e["dataset_"+o.get("id")]=o.get("name"),e}),{});a.default.emit("CONTEXT_MENU:VIEW_NODE_DATA",(0,n.default)({},o,{dsMap:t}))},o.saveModelResult=function(e){var o=e.data;a.default.emit("CONTEXT_MENU:SAVE_MODEL_RESULT",o)}},"./src/module/dragDrop/flow_arrange/context_menu/menu_handler/index.js":function(e,o,t){"use strict";o.__esModule=!0,o.modals=void 0;var n=p(t("./node_modules/babel-runtime/helpers/extends.js")),d=c(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/flowDiagram.js")),r=c(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/flowNode.js")),s=c(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/flowLink.js")),a=p(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/SaveModelResultModal.jsx")),l=p(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/ViewNodeExecLogModal.jsx")),i=p(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/ViewNodeExecResultModal.jsx")),u=p(t("./src/module/dragDrop/flow_arrange/context_menu/menu_handler/ViewNodeExecDataModal.jsx"));function c(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}function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,n.default)({},d,r,s);o.modals={SaveModelResultModal:a.default,ViewNodeExecLogModal:l.default,ViewNodeExecResultModal:i.default,ViewNodeExecDataModal:u.default};o.default=f},"./src/module/dragDrop/flow_arrange/context_menu/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.ContextMenuStyle=void 0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n};(0,d.keyframes)(["0%{transform:translateY(-25%);}50%{transform:translateY(4%);}65%{transform:translateY(-2%);}80%{transform:translateY(2%);}95%{transform:translateY(-1%);}100%{transform:translateY(0%);}"]),o.ContextMenuStyle=r.default.ul.withConfig({displayName:"style__ContextMenuStyle",componentId:"jgckjh-0"})(["animation-duration:0.4s;background-clip:padding-box;background-color:#fff;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,0.15);left:0px;list-style-type:none;margin:0;outline:none;padding:0;position:absolute;text-align:left;top:0px;overflow:hidden;z-index:1100;li{clear:both;color:rgba(0,0,0,0.65);cursor:pointer;font-size:12px;font-weight:normal;min-width:100px;line-height:22px;margin:0;padding:5px 12px;transition:all 0.3s;white-space:nowrap;&.menu-item-disable{color:rgba(0,0,0,0.25) !important;background:none;border-color:transparent !important;cursor:not-allowed;.svg-icon{fill:rgba(0,0,0,0.25) !important;}}.svg-icon{fill:rgba(0,0,0,0.65);}&:not(.divide-line):not(.menu-item-disable):hover{color:#fff;background-color:#1890ff;.svg-icon{fill:#fff;}}.ant-divider-horizontal{margin:0;cursor:normal;}& > 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;p<l;p++)i[p]=arguments[p];return t=n=(0,a.default)(this,e.call.apply(e,[this].concat(i))),n.handleCheckRepeat=function(e,o){if(""!==u.default.trim(e)){var t=c.Map.isMap(n.props.modelInfo)&&n.props.modelInfo.get("modelId");if((c.Map.isMap(n.props.modelInfo)&&n.props.modelInfo.get("modelName"))!==u.default.trim(e))(u.default.isNil(t)?j.default.checkCodeName:j.default.checkModelName)({modelId:t,modelName:u.default.trim(e)}).then((function(e){1===e.code?o():o("\u6a21\u578b\u540d\u79f0\u91cd\u590d")})).catch((function(){o("\u6a21\u578b\u540d\u79f0\u91cd\u590d")}));else o()}else o()},n.handleSaveModelInfo=function(e){u.default.isNil(n.props.modelInfo.get("modelId"))?n.props.doCreateModel({modelInfo:e}):n.props.doUpdateModelInfo({modelInfo:(0,r.default)({},e,{modelId:n.props.modelInfo.get("modelId")})})},d=t,(0,a.default)(n,d)}return(0,l.default)(o,e),o.prototype.componentDidMount=function(){this.props.doGetBusiTypeData()},o.prototype.componentDidUpdate=function(e){if(""!==u.default.trim(this.props.saveError)&&d.default.error("\u4fdd\u5b58\u51fa\u9519,\u9519\u8bef\u4fe1\u606f:"+this.props.saveError,3),!0===e.saveLoading&&!1===this.props.saveLoading&&!this.props.saveError){d.default.info("\u4fdd\u5b58\u6a21\u578b\u57fa\u7840\u4fe1\u606f\u6210\u529f\uff01"),u.default.isFunction(this.props.onCloseModal)&&this.props.onCloseModal();var o=this.props.modelInfo;f.default.replace(m.dragDropUrl.editModel(c.Map.isMap(o)&&o.get("modelId"),c.Map.isMap(o)&&o.get("modelName")))}},o.prototype.render=function(){var e=this.props,o=e.openType,t=e.saveLoading,d=e.onCloseModal,r=e.saveError,s=e.engineData,a=e.busiTypeData,l=e.modelInfo;return(0,n.default)(g.default,{modelInfo:l,openType:o,saveError:r,saveLoading:t,busiTypeData:a,engineData:s,confirmLoading:t,onSaveModelInfo:this.handleSaveModelInfo,onCloseModal:d,onCheckRepeat:this.handleCheckRepeat})},o}(i.PureComponent);o.default=(0,p.connect)((function(e){var o=h.default.model.selectError(e,"CREATE_MODEL"),t=h.default.model.selectError(e,"UPDATE_MODEL_INFO");return{modelInfo:h.default.model.selectModelInfo(e),saveLoading:!0===h.default.model.selectLoading(e,"CREATE_MODEL")||!0===h.default.model.selectLoading(e,"UPDATE_MODEL_INFO"),saveError:""===u.default.trim(o)?t:o,busiTypeData:(0,b.selectGetBusinessTypeData)(e),engineData:(0,x.dicGroupHelper)(e,"MODEL_ENGINE")}}),(function(e){return{doCreateModel:function(o){var t=o.modelInfo;return e(_.dragDropModelActions.createModelRequest({modelInfo:t}))},doUpdateModelInfo:function(o){var t=o.modelInfo;return e(_.dragDropModelActions.updateModelInfoRequest({modelInfo:t}))},doGetBusiTypeData:function(){return e(v.busiTypesActions.getBusinessTypeDataRequest())}}}))(w)},"./src/module/dragDrop/flow_arrange/model_info/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/model_info/ModelInfoModalPage.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/node_config/FlowNodeConfig.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=p(t("./node_modules/antd/es/alert/index.js")),d=p(t("./node_modules/babel-runtime/helpers/jsx.js"));t("./node_modules/antd/es/alert/style/index.js");p(t("./node_modules/react/index.js")),p(t("./node_modules/prop-types/index.js"));var r=p(t("./node_modules/lodash/lodash.js")),s=t("./node_modules/@ant-design/compatible/es/index.js"),a=p(t("./src/module/dragDrop/flow_arrange/node_config/common/ModelInfo.jsx")),l=t("./src/module/dragDrop/flow_arrange/node_config/style.jsx"),i=p(t("./src/module/dragDrop/flow_arrange/node_config/common/NodeConfig.jsx")),u=p(t("./src/containers/toJS.jsx")),c=t("./src/components/exception/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var o=e.locked,t=void 0!==o&&o,u=e.onLockPanel,p=void 0===u?r.default.noop:u,f=e.selected,m=void 0===f?null:f,g=e.viewMode,_=void 0===g||g,h=e.onChangeConfig,x=void 0===h?r.default.noop:h,v=e.helper,b=void 0===v?{}:v,j=e.modelInfo,y=void 0===j?{}:j,w=e.input,C=void 0===w?[]:w,M=e.inRunningFlow,D=void 0!==M&&M;return(0,d.default)(l.FlowNodeConfigStyle,{},void 0,(0,d.default)("div",{className:"lock-toggle "+(t?"lock-toggle-locked":""),onClick:function(){return p(!t)}},void 0,(0,d.default)(s.Icon,{type:t?"lock":"unlock",theme:"filled"})),(0,d.default)(c.ErrorBoundary,{},void 0,!0===D&&(0,d.default)(n.default,{message:"\u8282\u70b9\u5904\u4e8e\u6b63\u5728\u6267\u884c\u7684\u6d41\u7a0b\u4e2d\u65f6\uff0c\u7981\u6b62\u4fee\u6539\u914d\u7f6e",type:"info",style:{margin:5}}),!r.default.isNil(r.default.get(m,"data"))&&"node"===r.default.get(m,"type")&&(0,d.default)(i.default,{data:m.data,viewMode:!!D||_,onChangeConfig:x,input:C,helper:b}),(r.default.isNil(r.default.get(m,"data"))||"node"!==r.default.get(m,"type"))&&(0,d.default)(a.default,{data:y,viewMode:_})))};f.defaultProps={selected:{},locked:!0,onLockPanel:r.default.noop,onChangeConfig:r.default.noop},o.default=(0,u.default)(f)},"./src/module/dragDrop/flow_arrange/node_config/FlowNodeConfigConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=f(t("./node_modules/babel-runtime/helpers/extends.js")),d=f(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=f(t("./node_modules/babel-runtime/helpers/inherits.js")),a=t("./node_modules/react/index.js"),l=f(a),i=t("./node_modules/react-redux/es/index.js"),u=(f(t("./node_modules/prop-types/index.js")),f(t("./src/module/dragDrop/flow_arrange/node_config/FlowNodeConfig.jsx"))),c=f(t("./src/redux/selectors/dragDrop/index.js")),p=t("./src/redux/reducers/dragDrop/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function o(){return(0,d.default)(this,o),(0,r.default)(this,e.apply(this,arguments))}return(0,s.default)(o,e),o.prototype.shouldComponentUpdate=function(e){return e.locked!==this.props.locked||e.viewMode!==this.props.viewMode||e.selected!==this.props.selected},o.prototype.render=function(){return l.default.createElement(u.default,(0,n.default)({},this.props,{input:this.props.nodeInput,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\node_config\\FlowNodeConfigConnect.jsx",lineNumber:19}}))},o}(a.Component);o.default=(0,i.connect)((function(e){return{modelInfo:c.default.model.selectModelInfo(e),selected:c.default.flow.selectSelected(e),nodeInput:c.default.flow.selectNodeInput(e),helper:c.default.pickNode.getFuncHelper(e),inRunningFlow:c.default.flow.selectIsInRunningFlowForSelected(e)}}),(function(e){return{onChangeConfig:function(o,t,n){var d=o.id,r=o.data;console.log("::::::\u8282\u70b9\u914d\u7f6e\u4fee\u6539::::::"),t&&console.log("\u8282\u70b9\u914d\u7f6e\u53d8\u66f4\uff0c\u9700\u8981\u91cd\u65b0\u6821\u9a8c\u5b50\u8282\u70b9\u914d\u7f6e"),n&&console.log("\u8282\u70b9\u914d\u7f6e\u53d8\u66f4,\u9700\u8981\u66f4\u65b0\u6574\u4e2a\u8282\u70b9\u6d41\u7a0b\u7684\u8282\u70b9\u72b6\u6001"),console.log(r),e(p.flowDiagramActions.updateNodeConf({id:d,data:r,validateSub:t,updateFlow:n}))}}}))(m)},"./src/module/dragDrop/flow_arrange/node_config/common/ModelInfo.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/flow_arrange/node_config/style.jsx"));function r(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("h4",{},void 0,"\u6a21\u578b\u540d\u79f0:"),a=(0,n.default)("h4",{},void 0,"\u4e1a\u52a1\u5206\u7c7b"),l=(0,n.default)("h4",{},void 0,"\u6a21\u578b\u63cf\u8ff0:");o.default=function(e){var o=e.data;return(0,n.default)(d.ModelInfoStyle,{},void 0,(0,n.default)("section",{},void 0,s,(0,n.default)("p",{},void 0,o.modelName)),(0,n.default)("section",{},void 0,a,(0,n.default)("p",{},void 0,o.businessTypeName)),(0,n.default)("section",{},void 0,l,(0,n.default)("p",{},void 0,o.modelDesc)))}},"./src/module/dragDrop/flow_arrange/node_config/common/NodeConfig.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/extends.js")),r=h(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=h(t("./node_modules/babel-runtime/helpers/inherits.js")),l=h(t("./node_modules/antd/es/modal/index.js"));t("./node_modules/antd/es/modal/style/index.js");var i=t("./node_modules/react/index.js"),u=h(i),c=(h(t("./node_modules/prop-types/index.js")),h(t("./node_modules/lodash/lodash.js"))),p=h(t("./src/module/dragDrop/flow_arrange/node_config/common/NodeInfo.jsx")),f=h(t("./src/module/dragDrop/flow_arrange/node_config/node_tips/index.js")),m=t("./src/module/dragDrop/flow_arrange/node_config/comp_config/index.js"),g=h(m),_=t("./src/module/dragDrop/constant.js");function h(e){return e&&e.__esModule?e:{default:e}}var x=l.default.confirm,v=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.validateSaveConfig=function(){if(n.ref.current&&c.default.has(n.ref.current,"validateNodeConfigStatus")&&c.default.isFunction(n.ref.current.validateNodeConfigStatus)){var e=n.ref.current.validateNodeConfigStatus();if(!c.default.isEmpty(n.data)){var o=!!n.data.title&&n.data.title===c.default.get(n.props.data,"title")||!!n.data.memo&&n.data.memo===c.default.get(n.props.data,"memo"),t=!c.default.isEqual(c.default.get(n.data,"config",{}),c.default.get(n.props.data,"config",{}))||c.default.get(n.props.data,"status")<=_.FLOW_NODE_STATUS.CONF_OK&&c.default.get(n.props.data,"status")!==e;if(t||!o){if(t){var r=c.default.get(n.props.data,"status"),s={id:c.default.get(n.props,"data.id"),data:(0,d.default)({},n.data,{status:e})};r===_.FLOW_NODE_STATUS.EXEC_OK?x({title:"\u8282\u70b9\u914d\u7f6e\u4fee\u6539\u786e\u8ba4",content:"\u8282\u70b9\u5df2\u6267\u884c\u5b8c\u6210,\u4fee\u6539\u914d\u7f6e\u540e\u8be5\u8282\u70b9\u53ca\u540e\u7eed\u8282\u70b9\u9700\u8981\u91cd\u65b0\u6267\u884c\uff0c\u786e\u8ba4\u8981\u4fee\u6539\u8be5\u8282\u70b9\u914d\u7f6e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.props.onChangeConfig(s,!0,!0)},onCancel:function(){o&&n.props.onChangeConfig({id:c.default.get(n.props,"data.id"),data:(0,d.default)({},n.data)})}}):n.props.onChangeConfig(s,!0)}n.data={}}else n.props.onChangeConfig({id:c.default.get(n.props,"data.id"),data:(0,d.default)({},n.data)})}}},n.handleChangeNodeInfo=function(e){Object.assign(n.data,e)},n.handleChangeNodeConfig=function(e){Object.assign(n.data,{config:e})},n.handleChangeNodeStatus=function(e){Object.assign(n.data,{status:e})},n.data={},n.ref=u.default.createRef(),n}return(0,a.default)(o,e),o.prototype.shouldComponentUpdate=function(e){return(!c.default.isEqual(this.props.data,e.data)||this.props.locked!==e.locked)&&(!this.props.viewMode&&this.validateSaveConfig(),!0)},o.prototype.componentWillUnmount=function(){!this.props.viewMode&&this.validateSaveConfig()},o.prototype.render=function(){var e=this.props,o=e.data,t=e.helper,d=e.viewMode,r=e.input,s=o&&t.getNodeTips(o.type)||[],a=o&&t.getNodeSetting(o.type)||{},l=o&&t.getConfigComp(o.type),i=o&&(0,m.NodeConfigHoc)(g.default[l]);return o&&!i&&console.warn("\u7ec4\u4ef6\u7c7b\u578b\u4e3a["+o.type+"]\u7684\u914d\u7f6e\u7ec4\u4ef6["+(l||"")+"]\u672a\u5b9a\u4e49"),(0,n.default)(u.default.Fragment,{},void 0,(0,n.default)(p.default,{data:o,onChange:this.handleChangeNodeInfo,viewMode:d,helper:t}),i&&u.default.createElement(i,{ref:this.ref,viewMode:d,data:o,onChangeConfig:this.handleChangeNodeConfig,onChangeStatus:this.handleChangeNodeStatus,input:r,setting:a,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\node_config\\common\\NodeConfig.jsx",lineNumber:106}}),(0,n.default)(f.default,{data:s,expand:!1}))},o}(i.Component);v.defaultProps={data:{},locked:!0,onLockPanel:c.default.noop,onChangeConfig:c.default.noop},o.default=v},"./src/module/dragDrop/flow_arrange/node_config/common/NodeInfo.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=f(t("./node_modules/babel-runtime/helpers/jsx.js")),d=f(t("./node_modules/babel-runtime/helpers/extends.js")),r=f(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=f(t("./node_modules/babel-runtime/helpers/inherits.js")),l=f(t("./node_modules/antd/es/input/index.js"));t("./node_modules/antd/es/input/style/index.js");var i=t("./node_modules/react/index.js"),u=(f(i),f(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 c=t("./src/module/dragDrop/flow_arrange/node_config/style.jsx"),p=f(t("./src/module/dragDrop/flow_arrange/node_config/common/NodeTitleInput.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=l.default.TextArea,g=(0,n.default)("span",{},void 0,"\u6570\u636e\u8d44\u6e90-\u7ed3\u6784\u5316\u6570\u636e"),h=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.handleChangeMemo=function(e){n.setState({memo:e.target.value})},n.handleSaveMemo=function(){n.state.memo!==_.get(n.props,"data.memo")&&n.props.onChange((0,d.default)({},n.state))},n.handleChangeTitle=function(e){n.setState({title:e},(function(){n.props.onChange((0,d.default)({},n.state))}))},n.state={title:_.get(t,"data.title"),memo:_.get(t,"data.memo")},n}return(0,a.default)(o,e),o.getDerivedStateFromProps=function(e,o){return o.memo!==_.get(e,"data.memo")||o.title!==_.get(e,"data.title")?{memo:_.get(e,"data.memo"),title:_.get(e,"data.title")}:null},o.prototype.render=function(){var e=this.props,o=e.data,t=e.viewMode;if(o)return(0,n.default)(c.NodeInfoStyle,{type:"default"},void 0,(0,n.default)(u.Form,{},void 0,(0,n.default)(p.default,{value:this.state.title,onChange:this.handleChangeTitle,viewMode:t}),(0,n.default)("div",{className:"node-type-info"},void 0,(0,n.default)("span",{style:{paddingRight:5}},void 0,"\u8282\u70b9\u7c7b\u578b:"),g),!0===t&&""!==_.trim(this.state.memo)&&(0,n.default)("div",{className:"node-memo"},void 0,this.state.memo),!0!==t&&(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u5907\u6ce8",value:this.state.memo,onChange:this.handleChangeMemo,onPressEnter:this.handleSaveMemo,autosize:{minRows:1,maxRows:2},onBlur:this.handleSaveMemo})))},o}(i.PureComponent);o.default=h},"./src/module/dragDrop/flow_arrange/node_config/common/NodeTitleInput.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=m(t("./node_modules/babel-runtime/helpers/extends.js")),d=m(t("./node_modules/babel-runtime/helpers/jsx.js")),r=m(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=m(t("./node_modules/babel-runtime/helpers/inherits.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\node_config\\common\\NodeTitleInput.jsx",i=t("./node_modules/react/index.js"),u=m(i),c=(m(t("./node_modules/prop-types/index.js")),t("./node_modules/@ant-design/icons/es/index.js")),p=t("./src/module/dragDrop/flow_arrange/node_config/style.jsx"),f=m(t("./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js"));function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.handleClickOutside=function(){n.setState({editable:!1})},n.handelInputEditable=function(){n.setState({editable:!0}),_.delay((function(){n.inputRef.current&&n.inputRef.current.focus()}),200)},n.handleOnChange=function(e){n.props.onChange(e.target.value)},n.inputRef=u.default.createRef(),n.state={editable:!1},n}return(0,a.default)(o,e),o.prototype.render=function(){var e=this.state.editable,o=this.props.viewMode;return(0,d.default)(p.NodeTitleStyle,{},void 0,u.default.createElement("div",(0,n.default)({className:"input-name "+(e?"input-name-edit":"")},!0!==o&&{onDoubleClick:this.handelInputEditable},{title:"\u53cc\u51fb\u53ef\u7f16\u8f91\u540d\u79f0",__source:{fileName:l,lineNumber:33}}),!e&&(0,d.default)("span",{className:"input-name-view"},void 0,this.props.value),e&&u.default.createElement("input",{type:"text",placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u540d\u79f0",value:this.props.value,onChange:this.handleOnChange,maxLength:20,ref:this.inputRef,__source:{fileName:l,lineNumber:40}})),!0!==o&&(0,d.default)(c.FormOutlined,{onClick:this.handelInputEditable,title:"\u70b9\u51fb\u7f16\u8f91\u540d\u79f0"}))},o}(i.Component);g.defaultProps={value:"",onChange:_.noop},o.default=(0,f.default)(g)},"./src/module/dragDrop/flow_arrange/node_config/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/node_config/FlowNodeConfigConnect.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/node_config/node_tips/NodeConfigTips.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=c(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=c(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(t("./node_modules/babel-runtime/helpers/inherits.js")),s=c(t("./node_modules/babel-runtime/helpers/jsx.js")),a=t("./node_modules/react/index.js"),l=(c(a),c(t("./node_modules/prop-types/index.js")),t("./node_modules/@ant-design/icons/es/index.js")),i=c(t("./node_modules/lodash/lodash.js")),u=t("./src/module/dragDrop/flow_arrange/node_config/node_tips/style.jsx");function c(e){return e&&e.__esModule?e:{default:e}}var p=(0,s.default)(l.QuestionCircleOutlined,{className:"help-icon"}),f=function(e){var o=e.title,t=void 0===o?"":o,n=e.expand,d=void 0!==n&&n,r=e.toggleExpand,a=void 0===r?i.default.noop:r;return(0,s.default)("div",{className:"tips-title",onClick:a},void 0,(0,s.default)("span",{},void 0,p,(0,s.default)("span",{},void 0,t)),(0,s.default)("i",{className:"arrow-toggle "+(d?"arrow-toggle-open":"")}))},m=function(e){var o=e.content,t=void 0===o?"":o,n=e.list,d=void 0===n?[]:n;return(0,s.default)("div",{className:"tips-content"},void 0,t&&(0,s.default)("span",{},void 0,t),!i.default.isEmpty(d)&&(0,s.default)("ul",{},void 0,i.default.map(d,(function(e,o){return(0,s.default)("li",{},o,e)}))))},g=function(e){function o(t){(0,n.default)(this,o);var r=(0,d.default)(this,e.call(this,t));return r.handleToggleExpand=function(){r.setState({expand:!r.state.expand})},r.state={expand:r.props.expand},r}return(0,r.default)(o,e),o.prototype.render=function(){var e=this.props.data,o=this.state.expand;return(0,s.default)(u.NodeTipStyle,{},void 0,(0,s.default)(f,{expand:o,title:"\u8282\u70b9\u914d\u7f6e\u8bf4\u660e",toggleExpand:this.handleToggleExpand}),o&&(0,s.default)(m,{list:e}))},o}(a.PureComponent);g.defaultProps={expand:!0,data:[]},o.default=g},"./src/module/dragDrop/flow_arrange/node_config/node_tips/index.js":function(e,o,t){"use strict";o.__esModule=!0;var n,d=t("./src/module/dragDrop/flow_arrange/node_config/node_tips/NodeConfigTips.jsx"),r=(n=d)&&n.__esModule?n:{default:n};o.default=r.default},"./src/module/dragDrop/flow_arrange/node_config/node_tips/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.NodeTipStyle=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.NodeTipStyle=r.default.div.withConfig({displayName:"style__NodeTipStyle",componentId:"sc-1tvfzfs-0"})([".tips-title{background:",";cursor:pointer;display:flex;height:30px;line-height:30px;padding:0 5px;flex-direction:row;justify-content:space-between;position:relative;user-select:none;.help-icon{margin-right:5px;}&: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);}}}.tips-content{padding:10px 8px;background:#fff;ul{padding-inline-start:20px;}max-height:400px;overflow-y:auto;}"],s.styleVar.panel_title_bg,s.styleVar.panel_title_hover_bg)},"./src/module/dragDrop/flow_arrange/node_config/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.ModelInfoStyle=o.NodeTitleStyle=o.NodeInfoStyle=o.FlowNodeConfigStyle=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.FlowNodeConfigStyle=r.default.div.withConfig({displayName:"style__FlowNodeConfigStyle",componentId:"sc-1h60kxm-0"})(["background-color:#fff;position:relative;display:flex;overflow:hidden;height:100%;flex-direction:column;.node-config{flex:1 1 auto;overflow-y:auto;padding:10px;}.lock-toggle{position:absolute;top:0;right:0;border-width:25px;border-color:"," "," transparent transparent;border-style:solid;z-index:9;cursor:pointer;.anticon{position:absolute;top:-15px;right:-15px;}&:hover,&.lock-toggle-locked{.anticon{color:",";}}}"],s.styleVar.lock_bg,s.styleVar.lock_bg,s.styleVar.icon_hover_color),o.NodeInfoStyle=r.default.div.withConfig({displayName:"style__NodeInfoStyle",componentId:"sc-1h60kxm-1"})(["padding:10px;color:#1f2d3d;background:#e3e5eb;h4{font-weight:600;font-size:14px;}span{font-size:12px;}.node-type-info{padding:5px 0 10px 0;color:rgba(0,0,0,0.35);}"]),o.NodeTitleStyle=r.default.div.withConfig({displayName:"style__NodeTitleStyle",componentId:"sc-1h60kxm-2"})(["font-weight:600;display:flex;flex-direction:row;align-items:center;i.anticon{margin-left:10px;cursor:pointer;&:hover{color:",";}}.input-name-view{max-width:250px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;word-wrap:normal;}.input-name{line-height:30px;position:relative;height:100%;transition:width 0.15s linear;overflow:hidden;font-size:1em;&:after{position:absolute;content:'';bottom:0;left:0;height:2px;width:0;background:",";display:block;transition:width 0.15s linear;}input[type='text']{text-indent:10px;user-select:none;cursor:text;outline:none;width:100%;font-size:14px;height:100%;background:none;border:none;}}.input-name-edit{background:#fff;width:250px;&:after{width:100%;}}"],s.styleVar.icon_hover_color,s.styleVar.node_hover_bg),o.ModelInfoStyle=r.default.div.withConfig({displayName:"style__ModelInfoStyle",componentId:"sc-1h60kxm-3"})(["padding:20px 10px;color:rgba(0,0,0,0.8);h4{font-weight:600;line-height:25px;color:rgba(0,0,0,0.65);border-bottom:1px solid rgba(0,0,0,0.1);&:not(:first-child){margin-top:20px;}}p{padding:5px 0;}"])},"./src/module/dragDrop/flow_arrange/style.jsx":function(e,o,t){"use strict";o.__esModule=!0,o.SpinStyle=o.FlowDiagramStyle=void 0;var n,d=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),r=(n=d)&&n.__esModule?n:{default:n};o.FlowDiagramStyle=r.default.div.withConfig({displayName:"style__FlowDiagramStyle",componentId:"sc-17mjuop-0"})(["display:flex;flex-direction:column;flex:1 1 auto;height:100%;.canvas-outer{display:flex;flex:1 1 auto;}"]),o.SpinStyle=r.default.div.withConfig({displayName:"style__SpinStyle",componentId:"sc-17mjuop-1"})(["position:absolute;left:0;top:0;width:100%;height:100%;z-index:12000;display:flex;align-items:center;justify-content:center;opacity:0.5;background:rgba(0,0,0,0.5);.spin-box{background:#fff;opacity:1;padding:5px 10px;border-radius:8px;user-select:none;span{margin-left:10px;}}"])},"./src/module/dragDrop/flow_arrange/toolbar/FlowArrangeToolBar.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=_(t("./node_modules/babel-runtime/helpers/extends.js")),d=_(t("./node_modules/babel-runtime/helpers/jsx.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=t("./node_modules/react/index.js"),u=_(i),c=(_(t("./node_modules/prop-types/index.js")),t("./node_modules/@ant-design/icons/es/index.js")),p=t("./src/module/dragDrop/flow_arrange/toolbar/style.jsx"),f=_(t("./src/module/dragDrop/flow_arrange/toolbar/ToolBarFunc.jsx")),m=t("./src/module/dragDrop/config.jsx"),g=_(t("./src/containers/toJS.jsx"));function _(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function o(t){return(0,s.default)(this,o),(0,a.default)(this,e.call(this,t))}return(0,l.default)(o,e),o.prototype.render=function(){var e=this.props,o=e.viewMode,t=e.modelInfo,s=e.onOpenModelInfoModal,a=e.flowStatus,l=(0,r.default)(e,["viewMode","modelInfo","onOpenModelInfoModal","flowStatus"]),i=m.MODEL_STATUS_CONF[a]||{};return(0,d.default)(p.ToolBarStyle,{},void 0,(0,d.default)("div",{className:"model-name-box"},void 0,(0,d.default)("span",{className:"model-name"},void 0,t&&t.modelName,this.props.isPredict&&" - \u9884\u6d4b\u6d41\u7a0b"),!o&&!0!==this.props.isPredict&&(0,d.default)(c.FormOutlined,{onClick:s})),u.default.createElement(f.default,(0,n.default)({viewMode:o},l,{canPublishToRepo:!0===this.props.runFinished,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\toolbar\\FlowArrangeToolBar.jsx",lineNumber:24}})),(0,d.default)("span",{className:"model-status"},void 0,i.icon,i.desc))},o}(i.PureComponent);h.defaultProps={},o.default=(0,g.default)(h)},"./src/module/dragDrop/flow_arrange/toolbar/FlowArrangeToolBarConnect.jsx":function(e,o,t){"use strict";o.__esModule=!0;var n=j(t("./node_modules/babel-runtime/helpers/jsx.js")),d=j(t("./node_modules/antd/es/modal/index.js")),r=j(t("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=j(t("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=j(t("./node_modules/babel-runtime/helpers/inherits.js")),l=j(t("./node_modules/antd/es/message/index.js"));t("./node_modules/antd/es/modal/style/index.js"),t("./node_modules/antd/es/message/style/index.js");var i=t("./node_modules/react/index.js"),u=(j(i),j(t("./node_modules/prop-types/index.js")),j(t("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),j(t("./node_modules/lodash/lodash.js"))),c=t("./node_modules/immutable3/dist/immutable.js"),p=t("./node_modules/react-redux/es/index.js"),f=j(t("./src/module/dragDrop/flow_arrange/toolbar/FlowArrangeToolBar.jsx")),m=j(t("./src/redux/selectors/dragDrop/index.js")),g=t("./src/redux/reducers/dragDrop/index.js"),_=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")),h=j(t("./src/module/dragDrop/events.js")),x=t("./src/utils/history.js"),v=t("./src/module/dragDrop/config.jsx"),b=t("./src/module/dragDrop/constant.js");function j(e){return e&&e.__esModule?e:{default:e}}l.default.config({maxCount:1,top:100});var y=function(e){function o(t){(0,r.default)(this,o);var n=(0,s.default)(this,e.call(this,t));return n.saveModelJson=function(e){var o=n.props.modelInfo.get("modelId"),t=n.getModelJson(e);t&&(e?!0===n.haveUpdate&&(n.props.doSaveModel({modelId:o,modelJson:t,_SYNC_INTERVAL:v.AUTO_SAVE_DELAY}),n.haveUpdate,console.log(":::::: save dragDrop model config")):n.props.doSaveModel({modelId:o,modelJson:t}))},n.getModelJson=function(e){var o=n.props,t=o.modelInfo,d=o.position,r=o.flowNodes,s=o.flowLinks,a=t.get("modelId");if(!(c.Map.isMap(r)&&c.Map.isMap(s)&&r.isEmpty()&&s.isEmpty()))return _.buildDragModelJson({position:d,modelId:a,flowNodes:r,flowLinks:s});!e&&l.default.info("\u5c1a\u672a\u914d\u7f6e\u6a21\u578b\u6d41\u7a0b\uff0c\u8bf7\u914d\u7f6e\u540e\u518d\u4fdd\u5b58")},n.operateMessage=function(e,o,t,r){var s=u.default.trim(n.props[e+"_error"]);""!==s&&t[e+"_error"]!==s&&(u.default.startsWith(s,"@KERNEL_SESSION_EXPIRE@")?d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u6267\u884c\u5f15\u64ce\u4f1a\u8bdd\u5df2\u8d85\u65f6,\u6267\u884c\u6d41\u7a0b\u5df2\u6267\u884c\u7684\u8282\u70b9\u9700\u91cd\u65b0\u6267\u884c",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){if("@KERNEL_SESSION_EXPIRE@"===s)n.handleExecuteTrain(!0);else{var e=s.substr("@KERNEL_SESSION_EXPIRE@".length);n.handleNodeFlowExecute(e,!0)}}}):l.default.error(o+"\u51fa\u9519,\u9519\u8bef\u4fe1\u606f:"+n.props[e+"_error"])),!0!==t[e+"_loading"]||!1!==n.props[e+"_loading"]||n.props[e+"_error"]||(l.default.info(o+"\u6210\u529f\uff01"),u.default.isFunction(r)&&r())},n.handleSaveDrageModelJson=function(){n.saveModelJson(!1)},n.handleNodeFlowExecute=function(e){var o=arguments.length>1&&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){}}]);