1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"./node_modules/codemirror/mode lazy recursive ^\\.\\/.*\\.js$":function(e,t,a){var n={"./apl/apl.js":["./node_modules/codemirror/mode/apl/apl.js",0],"./asciiarmor/asciiarmor.js":["./node_modules/codemirror/mode/asciiarmor/asciiarmor.js",0],"./asn.1/asn.1.js":["./node_modules/codemirror/mode/asn.1/asn.1.js",0],"./asterisk/asterisk.js":["./node_modules/codemirror/mode/asterisk/asterisk.js",0],"./brainfuck/brainfuck.js":["./node_modules/codemirror/mode/brainfuck/brainfuck.js",0],"./clike/clike.js":["./node_modules/codemirror/mode/clike/clike.js",0],"./clojure/clojure.js":["./node_modules/codemirror/mode/clojure/clojure.js",0],"./cmake/cmake.js":["./node_modules/codemirror/mode/cmake/cmake.js",0],"./cobol/cobol.js":["./node_modules/codemirror/mode/cobol/cobol.js",0],"./coffeescript/coffeescript.js":["./node_modules/codemirror/mode/coffeescript/coffeescript.js",0],"./commonlisp/commonlisp.js":["./node_modules/codemirror/mode/commonlisp/commonlisp.js",0],"./crystal/crystal.js":["./node_modules/codemirror/mode/crystal/crystal.js",0],"./css/css.js":["./node_modules/codemirror/mode/css/css.js",0],"./cypher/cypher.js":["./node_modules/codemirror/mode/cypher/cypher.js",0],"./d/d.js":["./node_modules/codemirror/mode/d/d.js",0],"./dart/dart.js":["./node_modules/codemirror/mode/dart/dart.js",0],"./diff/diff.js":["./node_modules/codemirror/mode/diff/diff.js",0],"./django/django.js":["./node_modules/codemirror/mode/django/django.js",0],"./dockerfile/dockerfile.js":["./node_modules/codemirror/mode/dockerfile/dockerfile.js",0],"./dtd/dtd.js":["./node_modules/codemirror/mode/dtd/dtd.js",0],"./dylan/dylan.js":["./node_modules/codemirror/mode/dylan/dylan.js",0],"./ebnf/ebnf.js":["./node_modules/codemirror/mode/ebnf/ebnf.js",0],"./ecl/ecl.js":["./node_modules/codemirror/mode/ecl/ecl.js",0],"./eiffel/eiffel.js":["./node_modules/codemirror/mode/eiffel/eiffel.js",0],"./elm/elm.js":["./node_modules/codemirror/mode/elm/elm.js",0],"./erlang/erlang.js":["./node_modules/codemirror/mode/erlang/erlang.js",0],"./factor/factor.js":["./node_modules/codemirror/mode/factor/factor.js",0],"./fcl/fcl.js":["./node_modules/codemirror/mode/fcl/fcl.js",0],"./forth/forth.js":["./node_modules/codemirror/mode/forth/forth.js",0],"./fortran/fortran.js":["./node_modules/codemirror/mode/fortran/fortran.js",0],"./gas/gas.js":["./node_modules/codemirror/mode/gas/gas.js",0],"./gfm/gfm.js":["./node_modules/codemirror/mode/gfm/gfm.js",0],"./gherkin/gherkin.js":["./node_modules/codemirror/mode/gherkin/gherkin.js",0],"./go/go.js":["./node_modules/codemirror/mode/go/go.js",0],"./groovy/groovy.js":["./node_modules/codemirror/mode/groovy/groovy.js",0],"./haml/haml.js":["./node_modules/codemirror/mode/haml/haml.js",0],"./handlebars/handlebars.js":["./node_modules/codemirror/mode/handlebars/handlebars.js",0],"./haskell-literate/haskell-literate.js":["./node_modules/codemirror/mode/haskell-literate/haskell-literate.js",0],"./haskell/haskell.js":["./node_modules/codemirror/mode/haskell/haskell.js",0],"./haxe/haxe.js":["./node_modules/codemirror/mode/haxe/haxe.js",0],"./htmlembedded/htmlembedded.js":["./node_modules/codemirror/mode/htmlembedded/htmlembedded.js",0],"./htmlmixed/htmlmixed.js":["./node_modules/codemirror/mode/htmlmixed/htmlmixed.js",0],"./http/http.js":["./node_modules/codemirror/mode/http/http.js",0],"./idl/idl.js":["./node_modules/codemirror/mode/idl/idl.js",0],"./javascript/javascript.js":["./node_modules/codemirror/mode/javascript/javascript.js",0],"./jinja2/jinja2.js":["./node_modules/codemirror/mode/jinja2/jinja2.js",0],"./jsx/jsx.js":["./node_modules/codemirror/mode/jsx/jsx.js",0],"./julia/julia.js":["./node_modules/codemirror/mode/julia/julia.js",0],"./livescript/livescript.js":["./node_modules/codemirror/mode/livescript/livescript.js",0],"./lua/lua.js":["./node_modules/codemirror/mode/lua/lua.js",0],"./markdown/markdown.js":["./node_modules/codemirror/mode/markdown/markdown.js",0],"./mathematica/mathematica.js":["./node_modules/codemirror/mode/mathematica/mathematica.js",0],"./mbox/mbox.js":["./node_modules/codemirror/mode/mbox/mbox.js",0],"./meta.js":["./node_modules/codemirror/mode/meta.js"],"./mirc/mirc.js":["./node_modules/codemirror/mode/mirc/mirc.js",0],"./mllike/mllike.js":["./node_modules/codemirror/mode/mllike/mllike.js",0],"./modelica/modelica.js":["./node_modules/codemirror/mode/modelica/modelica.js",0],"./mscgen/mscgen.js":["./node_modules/codemirror/mode/mscgen/mscgen.js",0],"./mumps/mumps.js":["./node_modules/codemirror/mode/mumps/mumps.js",0],"./nginx/nginx.js":["./node_modules/codemirror/mode/nginx/nginx.js",0],"./nsis/nsis.js":["./node_modules/codemirror/mode/nsis/nsis.js",0],"./ntriples/ntriples.js":["./node_modules/codemirror/mode/ntriples/ntriples.js",0],"./octave/octave.js":["./node_modules/codemirror/mode/octave/octave.js",0],"./oz/oz.js":["./node_modules/codemirror/mode/oz/oz.js",0],"./pascal/pascal.js":["./node_modules/codemirror/mode/pascal/pascal.js",0],"./pegjs/pegjs.js":["./node_modules/codemirror/mode/pegjs/pegjs.js",0],"./perl/perl.js":["./node_modules/codemirror/mode/perl/perl.js",0],"./php/php.js":["./node_modules/codemirror/mode/php/php.js",0],"./pig/pig.js":["./node_modules/codemirror/mode/pig/pig.js",0],"./powershell/powershell.js":["./node_modules/codemirror/mode/powershell/powershell.js",0],"./properties/properties.js":["./node_modules/codemirror/mode/properties/properties.js",0],"./protobuf/protobuf.js":["./node_modules/codemirror/mode/protobuf/protobuf.js",0],"./pug/pug.js":["./node_modules/codemirror/mode/pug/pug.js",0],"./puppet/puppet.js":["./node_modules/codemirror/mode/puppet/puppet.js",0],"./python/python.js":["./node_modules/codemirror/mode/python/python.js",0],"./q/q.js":["./node_modules/codemirror/mode/q/q.js",0],"./r/r.js":["./node_modules/codemirror/mode/r/r.js",0],"./rpm/rpm.js":["./node_modules/codemirror/mode/rpm/rpm.js",0],"./rst/rst.js":["./node_modules/codemirror/mode/rst/rst.js",0],"./ruby/ruby.js":["./node_modules/codemirror/mode/ruby/ruby.js",0],"./rust/rust.js":["./node_modules/codemirror/mode/rust/rust.js",0],"./sas/sas.js":["./node_modules/codemirror/mode/sas/sas.js",0],"./sass/sass.js":["./node_modules/codemirror/mode/sass/sass.js",0],"./scheme/scheme.js":["./node_modules/codemirror/mode/scheme/scheme.js",0],"./shell/shell.js":["./node_modules/codemirror/mode/shell/shell.js",0],"./sieve/sieve.js":["./node_modules/codemirror/mode/sieve/sieve.js",0],"./slim/slim.js":["./node_modules/codemirror/mode/slim/slim.js",0],"./smalltalk/smalltalk.js":["./node_modules/codemirror/mode/smalltalk/smalltalk.js",0],"./smarty/smarty.js":["./node_modules/codemirror/mode/smarty/smarty.js",0],"./solr/solr.js":["./node_modules/codemirror/mode/solr/solr.js",0],"./soy/soy.js":["./node_modules/codemirror/mode/soy/soy.js",0],"./sparql/sparql.js":["./node_modules/codemirror/mode/sparql/sparql.js",0],"./spreadsheet/spreadsheet.js":["./node_modules/codemirror/mode/spreadsheet/spreadsheet.js",0],"./sql/sql.js":["./node_modules/codemirror/mode/sql/sql.js",0],"./stex/stex.js":["./node_modules/codemirror/mode/stex/stex.js",0],"./stylus/stylus.js":["./node_modules/codemirror/mode/stylus/stylus.js",0],"./swift/swift.js":["./node_modules/codemirror/mode/swift/swift.js",0],"./tcl/tcl.js":["./node_modules/codemirror/mode/tcl/tcl.js",0],"./textile/textile.js":["./node_modules/codemirror/mode/textile/textile.js",0],"./tiddlywiki/tiddlywiki.js":["./node_modules/codemirror/mode/tiddlywiki/tiddlywiki.js",0],"./tiki/tiki.js":["./node_modules/codemirror/mode/tiki/tiki.js",0],"./toml/toml.js":["./node_modules/codemirror/mode/toml/toml.js",0],"./tornado/tornado.js":["./node_modules/codemirror/mode/tornado/tornado.js",0],"./troff/troff.js":["./node_modules/codemirror/mode/troff/troff.js",0],"./ttcn-cfg/ttcn-cfg.js":["./node_modules/codemirror/mode/ttcn-cfg/ttcn-cfg.js",0],"./ttcn/ttcn.js":["./node_modules/codemirror/mode/ttcn/ttcn.js",0],"./turtle/turtle.js":["./node_modules/codemirror/mode/turtle/turtle.js",0],"./twig/twig.js":["./node_modules/codemirror/mode/twig/twig.js",0],"./vb/vb.js":["./node_modules/codemirror/mode/vb/vb.js",0],"./vbscript/vbscript.js":["./node_modules/codemirror/mode/vbscript/vbscript.js",0],"./velocity/velocity.js":["./node_modules/codemirror/mode/velocity/velocity.js",0],"./verilog/verilog.js":["./node_modules/codemirror/mode/verilog/verilog.js",0],"./vhdl/vhdl.js":["./node_modules/codemirror/mode/vhdl/vhdl.js",0],"./vue/vue.js":["./node_modules/codemirror/mode/vue/vue.js",0],"./wast/wast.js":["./node_modules/codemirror/mode/wast/wast.js",0],"./webidl/webidl.js":["./node_modules/codemirror/mode/webidl/webidl.js",0],"./xml/xml.js":["./node_modules/codemirror/mode/xml/xml.js",0],"./xquery/xquery.js":["./node_modules/codemirror/mode/xquery/xquery.js",0],"./yacas/yacas.js":["./node_modules/codemirror/mode/yacas/yacas.js",0],"./yaml-frontmatter/yaml-frontmatter.js":["./node_modules/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js",0],"./yaml/yaml.js":["./node_modules/codemirror/mode/yaml/yaml.js",0],"./z80/z80.js":["./node_modules/codemirror/mode/z80/z80.js",0]};function o(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],o=t[0];return Promise.all(t.slice(1).map(a.e)).then((function(){return a.t(o,7)}))}o.keys=function(){return Object.keys(n)},o.id="./node_modules/codemirror/mode lazy recursive ^\\.\\/.*\\.js$",e.exports=o},"./node_modules/moment/locale sync recursive en-gb|zh-cn":function(e,t,a){var n={"./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js"};function o(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="./node_modules/moment/locale sync recursive en-gb|zh-cn"},"./src/components/AppClassify/SelectAppClassify.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.HeaderDom=t.UserDom=void 0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/extends.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-redux/es/index.js"),p=f(a("./src/redux/services/sysManager/appClassification.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=(t.UserDom=u.default.div.withConfig({displayName:"SelectAppClassify__UserDom",componentId:"sc-1mykayx-0"})(["width:400px;"]),t.HeaderDom=u.default.div.withConfig({displayName:"SelectAppClassify__HeaderDom",componentId:"sc-1mykayx-1"})(["h1{font-size:20px;}span{margin-top:16px;}margin-bottom:16px;"]),(0,n.default)("span",{},void 0,"\u9009\u62e9\u5e94\u7528\uff1a")),g=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData()},n.fetchData=function(){p.default.getAppClassificationList().then((function(e){var t=n.state.moduleData;t.appBig=_.get(n.props.moduleData,"appBig")?_.get(n.props.moduleData,"appBig"):_.get(e,"data[0].parentApplicationTypeId",""),n.setState({applicationClassifyOptions:e.data,loading:!1}),n.handleAppClassChange(t.appBig,_.get(n.props.moduleData,"appSmall"))}))},n.handleAppClassChange=function(e,t){var a=_.find(n.state.applicationClassifyOptions,{parentApplicationTypeId:e}),s=n.state.moduleData;n.props.keyBig&&(s[n.props.keyBig]=e),n.props.keySmall&&(s[n.props.keySmall]=e),s.appBig=e,s.appSmall=t||_.get(a,"applicationTypes.[0].applicationTypeId",""),n.setState({moduleData:(0,o.default)({},s),applicationSubClassifyOptions:_.get(a,"applicationTypes",[])}),n.props.setAppClassify(s)},n.getValBlur=function(e,t){var a=n.state.moduleData;a[t]=e,n.props.keySmall&&(a[n.props.keySmall]=e),n.setState({moduleData:(0,o.default)({},a)}),n.props.setAppClassify(a)},n.state={applicationClassifyOptions:[],applicationSubClassifyOptions:[],moduleData:a.moduleData?a.moduleData:{appBig:"",appSmall:""}},n}return(0,i.default)(t,e),t.prototype.componentDidUpdate=function(e){var t=_.get(this.props.moduleData,"appBig"),a=_.get(this.props.moduleData,"appSmall");t!==_.get(e.moduleData,"appBig")&&t!==_.get(this.state.moduleData,"appBig")&&(this.setState((function(e){return{moduleData:(0,o.default)({},e.moduleData,{appBig:t})}})),this.handleAppClassChange(t)),a!==_.get(e.moduleData,"appSmall")&&a!==_.get(this.state.moduleData,"appSmall")&&this.setState((function(e){return{moduleData:(0,o.default)({},e.moduleData,{appSmall:a})}}))},t.prototype.render=function(){var e=this,t=this.state.moduleData;return(0,n.default)("div",{},void 0,h,(0,n.default)(d.default,{placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u5927\u7c7b",onChange:function(t){return e.handleAppClassChange(t)},style:{width:"200px"},showSearch:!0,value:t.appBig,disabled:this.props.disabledAppType,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(this.state.applicationClassifyOptions)&&this.state.applicationClassifyOptions.map((function(e){return(0,n.default)(m,{value:e.parentApplicationTypeId,label:e.parentApplicationTypeName},e.parentApplicationTypeId,e.parentApplicationTypeName)}))),(0,n.default)(d.default,{placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u5c0f\u7c7b",onChange:function(t){return e.getValBlur(t,"appSmall")},style:{width:"200px",marginLeft:20},value:t.appSmall,showSearch:!0,disabled:this.props.disabledAppType,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(this.state.applicationSubClassifyOptions)&&this.state.applicationSubClassifyOptions.map((function(e){return(0,n.default)(m,{value:e.applicationTypeId,label:e.applicationTypeName},e.applicationTypeId,e.applicationTypeName)}))))},t}(l.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(g)},"./src/components/Footer/Footer.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(s(a("./node_modules/react/index.js")),s(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")));s(a("./node_modules/prop-types/index.js"));function s(e){return e&&e.__esModule?e:{default:e}}var r=o.default.footer.withConfig({displayName:"Footer__FooterWrap",componentId:"sc-11e0pci-0"})(["background:rgb(245,246,249);border-top:1px solid #d3d7cf;color:",";width:100%;height:35px;display:grid;align-items:center;flex:0 0 auto;p{text-align:center;padding:0;margin:0 auto;}"],(function(e){return e.theme.color.comment}));t.default=function(e){var t=e.copyright,a=void 0===t?"":t;return(0,n.default)(r,{},void 0,(0,n.default)("p",{},void 0,a))}},"./src/components/IFrame/IFrame.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/extends.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=(u(a("./node_modules/prop-types/index.js")),u(a("./node_modules/lodash/lodash.js"))),l=u(a("./src/components/IFrame/iframeResizer.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){var a,n,r;(0,o.default)(this,t);for(var i=arguments.length,d=Array(i),u=0;u<i;u++)d[u]=arguments[u];return a=n=(0,s.default)(this,e.call.apply(e,[this].concat(d))),n.onLoad=function(e){e.target.height=document.documentElement.clientHeight-50},n.setFrameRef=function(e){n.frameRef=e},n.injectIframeResizerUrl=function(){if(n.props.iframeResizerUrl&&n.frameRef){var e=n.frameRef.contentDocument;if(e){var t=null;if(["head","HEAD","body","BODY","div","DIV"].forEach((function(a){if(!t){var n=e.getElementsByTagName(a);n&&n.length&&(t=n[0])}})),t){var a=document.createElement("script");a.type="text/javascript",a.src=n.props.iframeResizerUrl,t.appendChild(a)}else console.error("Unable to inject iframe resizer script")}}},n.resizeIframe=function(e){var t=n.frameRef;if(t&&e.iframeResizerEnable){var a=(0,l.default)(e.iframeResizerOptions,t);n.iframeResizer=a[0].iFrameResizer}},r=a,(0,s.default)(n,r)}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.frameRef.addEventListener("load",this.props.onLoad),this.resizeIframe(this.props)},t.prototype.componentWillUnmount=function(){this.frameRef.removeEventListener("load",this.props.onLoad),this.iframeResizer&&this.iframeResizer.unSetupEventListeners()},t.prototype.render=function(){var e=this,t=this.props,a=t.src,o=t.id,s=t.frameBorder,r=t.className,d=t.isShow,l=(0,n.default)({},this.props.style);return d||Object.assign(l,{visibility:"hidden"}),i.default.createElement("iframe",{title:this.props.title,ref:this.setFrameRef,src:a,id:o,frameBorder:s,className:r,style:l,onLoad:function(t){return e.onLoad(t)},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\IFrame\\IFrame.jsx",lineNumber:86}})},t}(i.default.Component);c.defaultProps={iframeResizerEnable:!0,onLoad:d.default.noop,iframeResizerOptions:{log:!1,autoResize:!0,checkOrigin:!1,resizeFrom:"parent",heightCalculationMethod:"bodyScroll"},iframeResizerUrl:"/assets/js/iframeResizer.contentWindow.min.js",frameBorder:0,isShow:!0,style:{width:"100%",minHeight:600}},t.default=c},"./src/components/IFrame/iframeResizer.js":function(e,t,a){"use strict";var n,o,s,r,i=a("./node_modules/babel-runtime/helpers/typeof.js"),d=(r=i)&&r.__esModule?r:{default:r};!function(){if("undefined"!==typeof window){var a,r=0,i=!1,l=!1,u="message".length,c="[iFrameSizer]",p=c.length,f=null,m=window.requestAnimationFrame,h={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},v=null,_={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){T("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},y={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,a){V(a,e)})).end()}):I("","Unable to bind to jQuery, it is not fully loaded.")),o=[],void 0===(s="function"===typeof(n=function(){function e(e,a){a&&(H(),b(window,"message",E),b(window,"resize",q),b(document,"visibilitychange",G),b(document,"-webkit-visibilitychange",G),b(window,"focusin",K),b(window,"focus",K),function(){if(!a.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==a.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+a.tagName+">")}(),V(a,e),t.push(a))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!m;e+=1)m=window[t[e]+"RequestAnimationFrame"];m||S("setup","RequestAnimationFrame not supported")}(),function(a,n){switch(t=[],function(e){e&&e.enablePublicMethods&&T("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(a),"undefined"===typeof n?"undefined":(0,d.default)(n)){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(n||"iframe"),e.bind(void 0,a));break;case"object":e(a,n);break;default:throw new TypeError("Unexpected data type ("+("undefined"===typeof n?"undefined":(0,d.default)(n))+")")}return t}})?n.apply(t,o):n)||(e.exports=s)}function b(e,t,a){"addEventListener"in window?e.addEventListener(t,a,!1):"attachEvent"in window&&e.attachEvent("on"+t,a)}function x(e,t,a){"removeEventListener"in window?e.removeEventListener(t,a,!1):"detachEvent"in window&&e.detachEvent("on"+t,a)}function C(e){return c+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function j(e){return g[e]?g[e].log:i}function S(e,t){w("log",e,t,j(e))}function I(e,t){w("info",e,t,j(e))}function T(e,t){w("warn",e,t,!0)}function w(e,t,a,n){!0===n&&"object"===(0,d.default)(window.console)&&console[e](C(t),a)}function E(e){function t(){a("Height"),a("Width"),R((function(){A(m),P(h),d("resizedCallback",m)}),m,"init")}function a(e){var t=Number(g[h]["max"+e]),a=Number(g[h]["min"+e]),n=e.toLowerCase(),o=Number(m[n]);S(h,"Checking "+n+" is in range "+a+"-"+t),o<a&&(o=a,S(h,"Set "+n+" to min value")),o>t&&(o=t,S(h,"Set "+n+" to max value")),m[n]=""+o}function n(e){return l.substr(l.indexOf(":")+u+e)}function o(e,t){var a,n,o;a=function(){F("Send Page Info","pageInfo:"+function(){var e=document.body.getBoundingClientRect(),t=m.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})}(),e,t)},n=32,y[o=t]||(y[o]=setTimeout((function(){y[o]=null,a()}),n))}function s(e){var t=e.getBoundingClientRect();return k(h),{x:Math.floor(Number(t.left)+Number(f.x)),y:Math.floor(Number(t.top)+Number(f.y))}}function r(e){var t=e?s(m.iframe):{x:0,y:0},a={x:Number(m.width)+t.x,y:Number(m.height)+t.y};S(h,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](a.x,a.y):T(h,"Unable to scroll to requested position, window.parentIFrame not found"):(f=a,i(),S(h,"--"))}function i(){!1!==d("scrollCallback",f)?P(h):L()}function d(e,t){return D(h,e,t)}var l=e.data,m={},h=null;"[iFrameResizerChild]Ready"===l?function(){for(var e in g)F("iFrame requested init",O(e),document.getElementById(e),e)}():c===(""+l).substr(0,p)&&l.substr(p).split(":")[0]in g?(m=function(){var e=l.substr(p).split(":");return{iframe:g[e[0]]&&g[e[0]].iframe,id:e[0],height:e[1],width:e[2],type:e[3]}}(),h=m.id,g[h]&&(g[h].loaded=!0),!function(){var e=m.type in{true:1,false:1,undefined:1};return e&&S(h,"Ignoring init message from meta parent page"),e}()&&function(e){var t=!0;return g[e]||(t=!1,T(m.type+" No settings for "+e+". Message was: "+l)),t}(h)&&(S(h,"Received: "+l),function(){var e=!0;return null===m.iframe&&(T(h,"IFrame ("+m.id+") not found"),e=!1),e}()&&function(){var t=e.origin,a=g[h]&&g[h].checkOrigin;if(a&&""+t!=="null"&&!(a.constructor===Array?function(){var e=0,n=!1;for(S(h,"Checking connection is from allowed list of origins: "+a);e<a.length;e++)if(a[e]===t){n=!0;break}return n}():function(){var e=g[h]&&g[h].remoteHost;return S(h,"Checking connection is from: "+e),t===e}()))throw new Error("Unexpected message received from: "+t+" for "+m.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(g[h]&&g[h].firstRun&&g[h]&&(g[h].firstRun=!1),m.type){case"close":g[h].closeRequestCallback?D(h,"closeRequestCallback",g[h].iframe):M(m.iframe);break;case"message":e=n(6),S(h,"MessageCallback passed: {iframe: "+m.iframe.id+", message: "+e+"}"),d("messageCallback",{iframe:m.iframe,message:JSON.parse(e)}),S(h,"--");break;case"scrollTo":r(!1);break;case"scrollToOffset":r(!0);break;case"pageInfo":o(g[h]&&g[h].iframe,h),function(){function e(e,n){function s(){g[a]?o(g[a].iframe,a):t()}["scroll","resize"].forEach((function(t){S(a,e+t+" listener for sendPageInfo"),n(window,t,s)}))}function t(){e("Remove ",x)}var a=h;e("Add ",b),g[a]&&(g[a].stopPageInfo=t)}();break;case"pageInfoStop":g[h]&&g[h].stopPageInfo&&(g[h].stopPageInfo(),delete g[h].stopPageInfo);break;case"inPageLink":!function(e){var t=e.split("#")[1]||"",a=decodeURIComponent(t),n=document.getElementById(a)||document.getElementsByName(a)[0];n?function(){var e=s(n);S(h,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),f={x:e.x,y:e.y},i(),S(h,"--")}():window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(t):S(h,"In page link #"+t+" not found and window.parentIFrame not found"):S(h,"In page link #"+t+" not found")}(n(9));break;case"reset":N(m);break;case"init":t(),d("initCallback",m.iframe);break;default:t()}var e}())):I(h,"Ignored: "+l)}function D(e,t,a){var n=null,o=null;if(g[e]){if("function"!==typeof(n=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=n(a)}return o}function M(e){var t=e.id;S(t,"Removing iFrame: "+t),e.parentNode&&e.parentNode.removeChild(e),D(t,"closedCallback",t),S(t,"--"),delete g[t]}function k(e){null===f&&S(e,"Get page position: "+(f={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}).x+","+f.y)}function P(e){null!==f&&(window.scrollTo(f.x,f.y),S(e,"Set page position: "+f.x+","+f.y),L())}function L(){f=null}function N(e){S(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),k(e.id),R((function(){A(e),F("reset","reset",e.iframe,e.id)}),e,"reset")}function A(e){function t(t){l||"0"!==e[t]||(l=!0,S(n,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}g[e]&&null!==g[e].iframe.offsetParent&&(t("height")||t("width"))&&F("Visibility change","resize",g[e].iframe,e)}for(var t in g)e(t)}function t(t){S("window","Mutation observed: "+t[0].target+" "+t[0].type),U(e,16)}var a=window.MutationObserver||window.WebKitMutationObserver;a&&function(){var e=document.querySelector("body");new a(t).observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0})}()}())}function a(a){!function(t){e.iframe.style[t]=e[t]+"px",S(e.id,"IFrame ("+n+") "+t+" set to "+e[t]+"px")}(a),t(a)}var n=e.iframe.id;g[n]&&(g[n].sizeHeight&&a("height"),g[n].sizeWidth&&a("width"))}function R(e,t,a){a!==t.type&&m?(S(t.id,"Requesting animation frame"),m(e)):e()}function F(e,t,a,n,o){var s=!1;n=n||a.id,g[n]&&(a&&"contentWindow"in a&&null!==a.contentWindow?function(){var o=g[n]&&g[n].targetOrigin;S(n,"["+e+"] Sending msg to iframe["+n+"] ("+t+") targetOrigin: "+o),a.contentWindow.postMessage(c+t,o)}():T(n,"["+e+"] IFrame("+n+") not found"),o&&g[n]&&g[n].warningTimeout&&(g[n].msgTimeout=setTimeout((function(){!g[n]||g[n].loaded||s||(s=!0,T(n,"IFrame has not responded within "+g[n].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),g[n].warningTimeout)))}function O(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod}function V(e,t){var a,n=function(a){return a,""===a&&(e.id=a=function(){var e=t&&t.id||_.id+r++;return null!==document.getElementById(e)&&(e+=r++),e}(),i=(t||{}).log,a,S(a,"Added missing iframe ID: "+a+" ("+e.src+")")),a}(e.id);n in g&&"iFrameResizer"in e?T(n,"Ignored iFrame, already setup."):(!function(t){var a;t=t||{},g[n]={firstRun:!0,iframe:e,remoteHost:e.src.split("/").slice(0,3).join("/")},function(e){if("object"!==("undefined"===typeof e?"undefined":(0,d.default)(e)))throw new TypeError("Options is not an object")}(t),function(e){for(var t in _)_.hasOwnProperty(t)&&(g[n][t]=e.hasOwnProperty(t)?e[t]:_[t])}(t),g[n]&&(g[n].targetOrigin=!0===g[n].checkOrigin?""===(a=g[n].remoteHost)||"file://"===a?"*":a:"*")}(t),function(){switch(S(n,"IFrame scrolling "+(g[n]&&g[n].scrolling?"enabled":"disabled")+" for "+n),e.style.overflow=!1===(g[n]&&g[n].scrolling)?"hidden":"auto",g[n]&&g[n].scrolling){case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[n]?g[n].scrolling:"no"}}(),function(){function t(t){1/0!==g[n][t]&&0!==g[n][t]&&(e.style[t]=g[n][t]+"px",S(n,"Set "+t+" = "+g[n][t]+"px"))}function a(e){if(g[n]["min"+e]>g[n]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}a("Height"),a("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!==typeof(g[n]&&g[n].bodyMargin)&&"0"!==(g[n]&&g[n].bodyMargin)||(g[n].bodyMarginV1=g[n].bodyMargin,g[n].bodyMargin=g[n].bodyMargin+"px"),a=O(n),b(e,"load",(function(){F("iFrame.onload",a,e,void 0,!0),function(){var t=g[n]&&g[n].firstRun,a=g[n]&&g[n].heightCalculationMethod in h;!t&&a&&N({iframe:e,height:0,width:0,type:"init"})}()})),F("init",a,e,void 0,!0),Function.prototype.bind&&g[n]&&(g[n].iframe.iFrameResizer={close:M.bind(null,g[n].iframe),unSetupEventListeners:H.bind(null),resize:F.bind(null,"Window resize","resize",g[n].iframe),moveToAnchor:function(e){F("Move to anchor","moveToAnchor:"+e,g[n].iframe,n)},sendMessage:function(e){F("Send Message","message:"+(e=JSON.stringify(e)),g[n].iframe,n)}}))}function U(e,t){null===v&&(v=setTimeout((function(){v=null,e()}),t))}function B(e){S("window","Trigger event: "+e),U((function(){z("Window "+e,"resize")}),16)}function G(){"hidden"!==document.visibilityState&&(S("document","Trigger event: Visiblity change"),U((function(){z("Tab Visable","resize")}),16))}function z(e,t){function a(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun}for(var n in g)a(n)&&F(e,t,document.getElementById(n),n)}function q(){B("resize")}function K(){B("focus")}function H(){x(window,"message",E),x(window,"resize",q),x(document,"visibilitychange",G),x(document,"-webkit-visibilitychange",G),x(window,"focusin",K),x(window,"focus",K)}}()},"./src/components/Icon/IconFont.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),o(a("./node_modules/prop-types/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.i.withConfig({displayName:"IconFont__IconFontWrapper",componentId:"hctyep-0"})(["font-family:'iconfont' !important;font-size:","+ 'px';font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;.help:before{content:'e602';}"],(function(e){var t=e.theme;return e.size||t.icon.size}));t.default=function(e){var t=e.size,a=e.type,o=e.color;return(0,n.default)(s,{size:t,color:o,className:a})}},"./src/components/Icon/IconSvg.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/extends.js")),o=i(a("./node_modules/babel-runtime/helpers/jsx.js")),s=i(a("./node_modules/react/index.js")),r=(i(a("./node_modules/prop-types/index.js")),i(a("./node_modules/lodash/lodash.js")));function i(e){return e&&e.__esModule?e:{default:e}}var d=i(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.svg.withConfig({displayName:"IconSvg__SvgWrap",componentId:"sc-1gntt88-0"})(["fill:",";width:","px;height:","px;vertical-align:middle;overflow:hidden;margin-right:","px;"],(function(e){var t=e.theme,a=e.color;return r.default.startsWith(a,"#")?a:t.icon.color[a||"primary"]}),(function(e){var t=e.theme;return e.size||t.icon.size}),(function(e){var t=e.theme;return e.size||t.icon.size}),(function(e){var t=e.theme,a=e.marginRight;return r.default.isUndefined(a)?t.icon.marginRight:a}));t.default=function(e){return s.default.createElement(d,(0,n.default)({style:{filter:e.color&&"drop-shadow("+e.color+" 80px 0)",transform:e.color&&"translateX(-80px)"},className:"svg-icon","aria-hidden":"true"},e,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\Icon\\IconSvg.jsx",lineNumber:21}}),(0,o.default)("use",{xlinkHref:"#icon-"+e.type}))}},"./src/components/Icon/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/Icon/IconSvg.jsx");Object.defineProperty(t,"IconSvg",{enumerable:!0,get:function(){return s(n).default}});var o=a("./src/components/Icon/IconFont.jsx");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"IconFont",{enumerable:!0,get:function(){return s(o).default}})},"./src/components/LineWrap/LineWrap.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/antd/es/tooltip/index.js")),o=u(a("./node_modules/babel-runtime/helpers/jsx.js")),s=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=u(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/tooltip/style/index.js");var d=u(a("./node_modules/react/index.js")),l=(u(a("./node_modules/prop-types/index.js")),u(a("./node_modules/react-lines-ellipsis/lib/index.js")));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(a){return(0,s.default)(this,t),(0,r.default)(this,e.call(this,a))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.title,a=e.lineClampNum,s=e.placement,r=t?String(t).replace(/[\r\n]/g,""):"--";return(0,o.default)(n.default,{placement:s||"topLeft",title:r||"--"},void 0,(0,o.default)(l.default,{text:r||"--",maxLine:a,ellipsis:"..."}))},t}(d.default.PureComponent);t.default=c},"./src/components/LineWrap/TableTitleEllipsis.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/antd/es/tooltip/index.js")),o=l(a("./node_modules/babel-runtime/helpers/jsx.js")),s=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=l(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/tooltip/style/index.js");var d=l(a("./node_modules/react/index.js"));l(a("./node_modules/prop-types/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(a){return(0,s.default)(this,t),(0,r.default)(this,e.call(this,a))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props.title;return(0,o.default)(n.default,{placement:"topLeft",title:e},void 0,e)},t}(d.default.PureComponent);t.default=u},"./src/components/LoadingIndicator/CircleLoading.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/extends.js")),o=r(a("./node_modules/babel-runtime/helpers/jsx.js")),s=(r(a("./node_modules/react/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")));r(a("./node_modules/prop-types/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=s.default.div.withConfig({displayName:"CircleLoading__LoadingWrapper",componentId:"sc-1smxt9g-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;.loading-text{font-size:14px;margin-top:24px;color:#147bd1;}@keyframes circle-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"]),d=s.default.div.withConfig({displayName:"CircleLoading__LoadingDiv",componentId:"sc-1smxt9g-1"})(["width:80px;height:80px;border:6px solid #fff;border-top:6px solid #147bd1;border-radius:50%;animation:circle-spin 2s linear infinite;"]),l=(0,o.default)(d,{}),u=(0,o.default)("div",{className:"loading-text"},void 0,"\u52a0\u8f7d\u4e2d...");t.default=function(e){var t=e.position,a=e.style;return(0,o.default)(i,{style:(0,n.default)({},a,{position:void 0!==t?"relative":"absolute"})},void 0,l,u)}},"./src/components/LoadingIndicator/ContentLoading.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/extends.js")),o="C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\LoadingIndicator\\ContentLoading.jsx",s=i(a("./node_modules/react/index.js")),r=(a("./node_modules/prop-types/index.js"),a("./node_modules/react-content-loader/dist/react-content-loader.es.js"));function i(e){return e&&e.__esModule?e:{default:e}}var d={primaryColor:"#f3f3f3",secondaryColor:"#ecebeb",style:{width:"100%",height:"200px"}};t.default=function(e){var t=e.type,a=void 0===t?"Section":t;return"Section"===a?s.default.createElement(r.Code,(0,n.default)({},d,{__source:{fileName:o,lineNumber:14}})):"BulletList"===a?s.default.createElement(r.BulletList,(0,n.default)({},d,{__source:{fileName:o,lineNumber:16}})):"List"===a?s.default.createElement(r.List,(0,n.default)({},d,{__source:{fileName:o,lineNumber:18}})):void 0}},"./src/components/LoadingIndicator/DivEle.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),s=r(o);r(a("./node_modules/prop-types/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=(0,o.keyframes)(["0%{transform:scale(1,0.3);}100%{transform:scale(1,1);}"]);t.default=function(e){var t=s.default.div.withConfig({displayName:"DivEle__DivAniEle",componentId:"sc-964b91-0"})(["animation:"," 0.5s ","s linear infinite;width:5px;height:35px;margin:0 3px;background:#2196f3;border-radius:2px;display:inline-block;"],i,e.second);return(0,n.default)(t,{})}},"./src/components/LoadingIndicator/LoadingIndicator.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/extends.js")),o=i(a("./node_modules/babel-runtime/helpers/jsx.js")),s=(i(a("./node_modules/react/index.js")),i(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),r=i(a("./src/components/LoadingIndicator/DivEle.jsx"));i(a("./node_modules/prop-types/index.js"));function i(e){return e&&e.__esModule?e:{default:e}}var d=s.default.div.withConfig({displayName:"LoadingIndicator__LoadingWrapper",componentId:"sc-1q205su-0"})(["display:flex;justify-content:center;align-items:center;left:50%;top:50%;transform:translate(-50%,-50%);"]),l=s.default.div.withConfig({displayName:"LoadingIndicator__LoadingDiv",componentId:"sc-1q205su-1"})(["float:left;justify-content:center;display:flex;align-items:center;"]),u=(0,o.default)(l,{},void 0,(0,o.default)(r.default,{second:-.3}),(0,o.default)(r.default,{second:-.25}),(0,o.default)(r.default,{second:-.2}),(0,o.default)(r.default,{second:-.1}),(0,o.default)(r.default,{second:0}));t.default=function(e){var t=e.position,a=e.style;return(0,o.default)(d,{style:(0,n.default)({},a,{position:void 0!==t?"relative":"absolute"})},void 0,u)}},"./src/components/Logo/Logo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.LogoWrap=void 0;var n=d(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(d(a("./node_modules/react/index.js")),d(a("./node_modules/prop-types/index.js")),d(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=d(a("./node_modules/lodash/lodash.js")),r=d(a("./node_modules/react-image/es/index.js")),i=d(a("./src/components/auth/switchAuth.jsx"));function d(e){return e&&e.__esModule?e:{default:e}}var l=t.LogoWrap=o.default.div.withConfig({displayName:"Logo__LogoWrap",componentId:"tj8n21-0"})(["height:100%;float:left;display:flex;justify-content:flex-start;align-items:center;padding:6px 29px 0 10px;img{}.divide-line{width:1px;background-color:#fff;margin:0 10px;height:20px;}.app-name{cursor:pointer;font-family:'Arial',sans-serif;height:30px;margin-bottom:18px;color:#fff;font-size:14px;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}"]),u=(0,n.default)("span",{className:"divide-line"});t.default=function(e){var t=e.imgWidth,a=e.imgHeight,o=e.img,d=e.appName,c=e.onClick,p=void 0===c?s.default.noop:c,f=e.noImg,m=e.appTitle;return(0,n.default)(l,{style:{marginRight:m&&""!==m?20:115,whiteSpace:"nowrap"},imgWidth:t,imgHeight:a,onClick:p},void 0,(0,n.default)(r.default,{src:[o,f],alt:d+"-logo"}),m&&""!==m&&(0,n.default)("span",{style:{marginLeft:10,fontSize:14,marginTop:-4,color:"#ddd"}},void 0,m),""!==d&&u,(0,n.default)(i.default,{optionId:"root.app.enableViewProductPage",onClickBolean:!0},void 0,(0,n.default)("span",{title:"\u70b9\u51fb\u8fd4\u56deAI\u95e8\u6237",className:"app-name"},void 0,d)))}},"./src/components/MainNav/AbilityMenuPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.AbilityMenuDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=p(a("./src/components/MainNav/AbilityNav.jsx")),c=p(a("./src/components/MainNav/ProductNav.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=t.AbilityMenuDom=d.default.div.withConfig({displayName:"AbilityMenuPage__AbilityMenuDom",componentId:"ei83n-0"})(["position:fixed;padding-top:10px;left:0;right:0;border:1px solid #dfdfdf;border-top:0;overflow:hidden;min-height:310px;max-height:768px;background:#fbfbfb;box-shadow:0 5px 6px -2px rgba(0,0,0,0.19);z-index:999;display:flex;flex-direction:row;"]),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setAbilityNavById=function(e){if(e){var t=_.get(n.props.data,"abilityNav",{});for(var a in t)if(a===e){n.setState({abilityNavData:t[a],vocationId:a});break}}},n.state={vocationId:_.get(a.data,"productNav.vocation[0].id",null),abilityNavData:null},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.setAbilityNavById(_.get(this.props.data,"productNav.vocation[0].id",null))},t.prototype.render=function(){var e=this.props.data;return(0,n.default)(f,{},void 0,(0,n.default)(c.default,{data:_.get(e,"productNav.vocation",null),vocationId:this.state.vocationId,setAbilityNavById:this.setAbilityNavById}),this.state.abilityNavData&&(0,n.default)(u.default,{abilityNavData:this.state.abilityNavData}))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(m)},"./src/components/MainNav/AbilityNav.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataConfig=t.AbilityNavDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=c(a("./node_modules/babel-runtime/helpers/inherits.js")),r=c(a("./node_modules/babel-runtime/helpers/jsx.js")),i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-router-dom/esm/react-router-dom.js")),u=a("./node_modules/react-redux/es/index.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=t.AbilityNavDom=d.default.div.withConfig({displayName:"AbilityNav__AbilityNavDom",componentId:"sc-1jpxn1l-0"})(["flex:auto;padding-left:5%;padding-right:5%;"]),f=t.DataConfig=d.default.div.withConfig({displayName:"AbilityNav__DataConfig",componentId:"sc-1jpxn1l-1"})(["width:33%;float:left;margin-bottom:20px;a{color:#615a5a;}.titleStyle{width:70%;margin-bottom:10px;cursor:'';font-size:14px;font-weight:700;border-bottom:0.5px solid #dadcdf;height:30px;}.textName{margin-bottom:10px;cursor:pointer;font-size:14px;width:70%;line-height:30px;span{font-size:11px;}}.linkDiv{width:72%;font-size:14px;}.linkDiv:hover{background:rgba(243,243,243,0.85);margin-left:-2%;padding-left:2%;color:#1a73e8;}"]),m={hot:(0,r.default)("span",{style:{marginLeft:10,fontSize:10,color:"red"}},void 0,"\u70ed\u95e8"),new:(0,r.default)("span",{style:{marginLeft:10,fontSize:10,color:"#4285f4"}},void 0,"\u65b0\u54c1"),invite:(0,r.default)("span",{style:{marginLeft:10,fontSize:10,color:"#12da12"}},void 0,"\u9080\u6d4b"),ing:(0,r.default)("span",{style:{marginLeft:10,fontSize:10,color:"#dadcdf"}},void 0,"\u5f00\u53d1\u4e2d...")},h=function(e){function t(a){return(0,n.default)(this,t),(0,o.default)(this,e.call(this,a))}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.props.abilityNavData;return(0,r.default)(p,{},void 0,e.map((function(e,t){return(0,r.default)(f,{},t,(0,r.default)("div",{className:"titleStyle"},void 0,e.name),_.get(e,"items",{}).map((function(e,t){return"ing"===_.get(e,"tags[0]","")?(0,r.default)("div",{style:{lineHeight:"30px",width:"72%"}},t,(0,r.default)("span",{style:{color:"#dadcdf"}},void 0,e.name),m[_.get(e,"tags[0]","")]):(0,r.default)(l.Link,{to:{pathname:e.href},className:"textName",target:"_blank"},t,(0,r.default)("div",{className:"linkDiv"},void 0,(0,r.default)("span",{},void 0,e.name),m[_.get(e,"tags[0]","")]))})))})))},t}(i.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(h)},"./src/components/MainNav/BreadcrumbPanel.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/antd/es/breadcrumb/index.js"));a("./node_modules/antd/es/breadcrumb/style/index.js");c(a("./node_modules/react/index.js")),c(a("./node_modules/prop-types/index.js"));var s=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),r=c(a("./node_modules/lodash/lodash.js")),i=a("./node_modules/react-router/esm/react-router.js"),d=a("./node_modules/react-router-dom/esm/react-router-dom.js"),l=c(a("./src/components/MainNav/breadcrumbData.js")),u=a("./src/components/auth/switchAuth.jsx");function c(e){return e&&e.__esModule?e:{default:e}}var p=s.default.div.withConfig({displayName:"BreadcrumbPanel__BreadcrumbPanelWrapper",componentId:"sx4at4-0"})(["width:100%;background:#f0f2f5;display:flex;.bread-text{height:56px;display:flex;align-items:center;background:#fff;padding-left:24px;opacity:0.85;font-size:16px;color:#000000;}.bread-header{margin-bottom:16px;height:40px;display:flex;align-items:center;padding-left:24px;opacity:0.85;font-size:16px;color:rgb(0,0,0);background:rgb(255,255,255);padding-right:24px;flex-grow:1;}.bread-header2{margin:8px 24px;}.ant-breadcrumb-link{font-size:14px;}.help-wrapper{height:40px;background:#fff;line-height:40px;width:80px;font-size:14px;}}a.link{color:rgb(20,123,209);}"]),f=o.default.Item;t.default=(0,i.withRouter)((function(e){var t=e.location,a=e.menuTree,s=function e(t,a){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=0;o<a.length;o++){var s=a[o],i=r.default.get(s,"addition.url");s.parentMenus=s.extraMenu?s.parentMenus:[].concat(n),!s.extraMenu&&s.parentMenus.push({name:s.name,path:i});var l=(0,d.matchPath)(t,{path:i,exact:!0})||{};if(r.default.get(l,"path"))return s;if(Array.isArray(s.children)){var u=e(t,s.children,s.parentMenus);if(u)return u}}}(t.pathname,[].concat(a,l.default)),i=r.default.get(s,"parentMenus",[]),c=(0,u.hasFeatureAuths)("root.app.hiddenNavigation"),m=r.default.get(s,"addition.help_link");return(0,n.default)(p,{},void 0,!c&&(0,n.default)("div",{className:"bread-text"},void 0,r.default.get(i,"["+(i.length-1)+".name]")),(0,n.default)(o.default,{className:c?"bread-header":"bread-header2"},void 0,i.map((function(e,t){return e.path&&i.length-1!==t?(0,n.default)(f,{},t,"back"===e.path?(0,n.default)("a",{onClick:function(){window.history.back(-1)}},void 0,e.name):(0,n.default)(d.Link,{to:e.path},void 0,e.name)):(0,n.default)(f,{},t,(0,n.default)("span",{style:{color:i.length===t+1?"#000000":"#00000073"}},void 0,e.name))}))),(0,n.default)("div",{className:"help-wrapper"},void 0,m&&(0,n.default)("a",{href:m,target:"_blank",className:"link"},void 0,"\u64cd\u4f5c\u6307\u5357")))}))},"./src/components/MainNav/MainNavTest.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=D(a("./node_modules/antd/es/divider/index.js")),r=D(a("./node_modules/babel-runtime/helpers/jsx.js")),i=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=D(a("./node_modules/babel-runtime/helpers/inherits.js")),u=D(a("./node_modules/antd/es/tree-select/index.js")),c=D(a("./node_modules/antd/es/menu/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/tree-select/style/index.js"),a("./node_modules/antd/es/menu/style/index.js");var p=D(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=D(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./node_modules/immutable3/dist/immutable.js"),g=a("./src/utils/authPermit.js"),v=a("./node_modules/react-router-dom/esm/react-router-dom.js"),y=(a("./node_modules/prop-types/index.js"),a("./node_modules/@ant-design/icons/es/index.js")),b=a("./src/components/Icon/index.js"),x=a("./src/utils/request.js"),C=a("./src/utils/history.js"),j=a("./src/redux/selectors/auth.js"),S=a("./src/redux/selectors/sysManager/userManager.js"),I=a("./src/routes/routeHelper.jsx"),T=D(a("./src/components/menuDrawer/MenuDrawer.jsx")),w=a("./src/module/sysManage/projectManager/modelEnums.js"),E=a("./src/utils/requestForOcr.js");function D(e){return e&&e.__esModule?e:{default:e}}var M=c.default.SubMenu,k=c.default.Item,P=u.default.TreeNode,L=m.default.div.withConfig({displayName:"MainNavTest__MenuNavWrap",componentId:"sc-15icwej-0"})(["float:left;height:100%;width:100%;margin-right:30px;.ant-select-selection--single{position:relative;height:32px;cursor:pointer;background:#ffffff1f;}.ant-select-selection{border:1px solid #ffffff33;}.ant-select-selection-selected-value{float:left;max-width:100%;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;color:#ffff;}.ant-select-arrow .ant-select-arrow-icon svg{color:#ffff;}.ant-select-selection__placeholder,.ant-select-search__field__placeholder{position:absolute;top:50%;right:9px;left:0;max-width:100%;height:20px;margin-top:-10px;overflow:hidden;color:#fff;}.navLink{width:50px;text-align:center;height:61px;}.navLink-active{border-bottom:3px solid #147bd1;width:50px;height:61px;text-align:center;}.ant-menu.ant-menu-dark .ant-menu-item-selected,.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected{background-color:#191919;border-bottom:3px solid #147bd1;}.ant-menu-horizontal{line-height:60px;}.menu-item{&:hover{.icon-active{display:inline-block;}.icon-no_active{display:none;}}}.ant-menu-dark.ant-menu-horizontal > .ant-menu-item,.ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu{font-size:14px;height:60px;}.ant-menu-submenu-selected{border-bottom:3px solid rgb(20,123,209);}.ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu-selected{top:0;margin-top:0;border-color:'';border-bottom:3px solid rgb(20,123,209);}.ant-select:not(.ant-select-customize-input) .ant-select-selector{background-color:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.2);color:#fff;}.ant-select-arrow{color:#fff;top:38%;}"]),N=(n=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return o.call(n),n.url=window.location.href,n.state={selectedKeys:localStorage.getItem("AI.currentContext"),projects:a.userJoinedProjects||[],current:n.findTarget(a.data,n.url,a.menuLayout),showDrawer:!1},n.setMenuUrl(a,n.url),n.pMenuData=null,n.drawerItem={},n}return(0,l.default)(t,e),t.getDerivedStateFromProps=function(e){return{projects:e.userJoinedProjects||[]}},t.prototype.render=function(){var e=this,t=null,a=_.get((0,g.getUserAdditionalInfo)(),"isPlatformAdmin"),n=_.get((0,g.getUserAdditionalInfo)(),"isTenantAdmin"),o=this.state,i=o.projects,d=o.current;this.props.isAuthenticated&&!a||(i=[]),"topLeft"!==this.props.menuLayout&&(t=this.findTarget(this.props.data,window.location.href,this.props.menuLayout)),i=h.Iterable.isIterable(i)?i.toJS():i;var l=(0,g.getUser)().orgType;return(0,r.default)(L,{},void 0,(0,r.default)(T.default,{visible:this.state.showDrawer,drawerItem:this.drawerItem,hideDrawer:function(){e.setState({showDrawer:!1})}}),(0,r.default)("div",{style:{height:60,width:"100%",display:"flex"}},void 0,(0,r.default)(p.default.Fragment,{},void 0,Array.isArray(i)&&i.length>0&&(0,r.default)(u.default,{showSearch:!0,style:{marginLeft:"8px",width:200,marginTop:15},value:this.state.selectedKeys,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee",treeDefaultExpandAll:!0,filterOption:function(e,t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0},onChange:this.handleSelectedChange,dropdownRender:function(t){return(0,r.default)("div",{className:"project-tree-select__wrapper"},void 0,t,!n&&[(0,r.default)(s.default,{style:{margin:"4px 0"}},"Divider"),(0,r.default)("div",{style:{padding:"4px 8px",paddingBottom:10,cursor:"pointer"},onMouseDown:function(e){return e.preventDefault()},onClick:e.addProject},"addProject",(0,r.default)(y.PlusOutlined,{style:{marginRight:5}}),"\u65b0\u589e\u9879\u76ee\u7533\u8bf7")])}},void 0,i.map((function(e){return(0,r.default)(P,{className:"project-group-select__wrapper",value:"PROJECT@"+e.projectId,title:e.projectName,disabled:e.projectType===w.PROJECT_TYPE.PROJECT_GROUP},"PROJECT@"+e.projectId,Array.isArray(e.subProjects)&&e.subProjects.length>0&&e.projectType===w.PROJECT_TYPE.PROJECT_GROUP&&e.subProjects.map((function(e){return(0,r.default)(P,{className:"project-select__wrapper",value:"PROJECT@"+e.projectId,title:e.projectName},"PROJECT@"+e.projectId)})))}))),!a&&(0,g.isAuth)()&&1===l&&(0,r.default)(b.IconSvg,{style:{marginTop:20,marginLeft:10,cursor:"pointer"},title:"\u65b0\u5efa\u9879\u76ee",onClick:this.saveProject,type:"addProject",size:20})),(0,r.default)("div",{style:{textAlign:"right",height:60,width:"100%"}},void 0,(0,r.default)(c.default,{style:{textAlign:"right",lineHeight:"60px"},onClick:this.handleAdminClick,selectedKeys:[t&&d!==t?t:d],mode:"horizontal",theme:"dark"},void 0,this.renderMenuItemGroup(this.props.data)))))},t}(p.default.Component),o=function(){var e=this;this.findTarget=function(t,a,n){if(t)for(var o=0;o<t.length;o++){if("topLeft"===n&&"ROOT"===t[o].pid&&(e.pMenuData=t[o]),""!==t[o].addition.url&&a.indexOf(t[o].addition.url)>-1)return"topLeft"===n&&e.props.setTopCurrent(e.pMenuData,_.get(e.pMenuData,"addition.sonMenuLayout")),"topLeft"===n&&"top"!==_.get(e.pMenuData,"addition.sonMenuLayout")?_.get(e.pMenuData,"id"):t[o].id;if(t[o].children){var s=e.findTarget(t[o].children,a,n);if(s)return s}}},this.setMenuUrl=function(e,t){for(var a=e.data,n=0;n<a.length;n++)if(""!==a[n].addition.url&&t.indexOf(a[n].addition.url)>-1){""!==a[n].addition.iframeUrl&&e.setIFrameKey(!0);break}},this.handleSelectedChange=function(t){var a=t.split("@"),n={scopeType:a[0],scopeId:a[1]};localStorage.setItem("AI.currentContext",t),e.setState({selectedKeys:t}),(0,E.getRoleId)(n.scopeId),(0,x.refreshToken)(n.scopeType,n.scopeId).then((function(){return location.reload()}))},this.handleClick=function(t,a){_.get(a,"addition.menuType","").indexOf("drawer:")>-1?(e.drawerItem=a,e.setState({showDrawer:!0})):""!==a.addition.iframeUrl?"new"===a.addition.iFrameOpenType?(t.preventDefault(),window.open(a.addition.iframeUrl)):e.props.setIFrameKey(!0,a):e.props.setIFrameKey(!1)},this.handleAdminClick=function(t){if(e.setState({current:t.key}),!e.props.isAuthenticated)for(var a=0;a<e.props.data.length;a++)if(e.props.data[a].id===t.key){""===e.props.data[a].addition.iframeUrl&&e.props.setTopCurrent(e.props.data[a]);break}if("topLeft"===e.props.menuLayout)for(var n=0;n<e.props.data.length;n++)if(e.props.data[n].id===t.key){""===e.props.data[n].addition.iframeUrl&&"SYS_HELP"!==t.key&&e.props.setTopCurrent(e.props.data[n],"onClick");break}},this.renderMenuItemGroup=function(t,a){return t.map((function(t){return!t.children||"top"!==a&&"top"!==e.props.menuLayout&&"top"!==t.addition.sonMenuLayout?e.renderMenuItem(t):(0,r.default)(M,{title:t.name},t.id,e.renderMenuItemGroup(t.children,"top"))}))},this.renderMenuItem=function(t){return(0,r.default)(k,{className:"menu-item"},t.id,_.get(t,"addition.menuType","").indexOf("drawer:")>-1?(0,r.default)("div",{style:{width:"100%",height:"100%"},onClick:function(a){a.preventDefault(),e.handleClick(a,t)}},void 0,t.name):(0,r.default)(v.NavLink,{to:{pathname:t.addition.url,state:{iframeUrl:_.get(t,"addition.iframeUrl")}},onClick:function(a){e.handleClick(a,t)}},void 0,t.name))},this.addProject=function(){var e=I.operationUrl.applyProjectReq();(0,C.navigateTo)(e)},this.saveProject=function(){var e=I.operationUrl.projectTenementCreate();_.get((0,g.getUserAdditionalInfo)(),"isTenantAdmin",!1)&&(e=I.operationUrl.projectCreate()),(0,C.navigateTo)(e)}},n);N.defaultProps={homePath:"/"};t.default=(0,f.connect)((function(e){return{isAuthenticated:(0,j.selectIsAuthenticated)(e),userJoinedProjects:(0,S.selectUserJoinedProjects)(e)}}))(N)},"./src/components/MainNav/ProductNav.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ProductNavDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),u=a("./node_modules/react-redux/es/index.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=t.ProductNavDom=d.default.div.withConfig({displayName:"ProductNav__ProductNavDom",componentId:"sc-16k7cul-0"})(["width:250px;border-right:0.5px solid #dadcdf;padding-right:5px;padding-bottom:50px;ul{text-align:center;width:100%;height:100%;margin-bottom:0px;float:left;list-style-type:none;padding:0;li{float:left;height:40px;padding-left:90px;width:100%;line-height:40px;text-align:left;&.hover{background:rgba(243,243,243,0.85);span{font-size:12px;color:#1a73e8;}}.textDiv{cursor:pointer;span{cursor:pointer;font-size:12px;}}.iconStyle{float:right;margin-right:10%;line-height:40px;color:#1a73e8;}.titleStyle{cursor:'';font-size:14px;font-weight:700;}}}"]),f=(0,n.default)("span",{className:"titleStyle"},void 0,"AI\u901a\u7528\u80fd\u529b"),m=(0,n.default)(l.RightOutlined,{className:"iconStyle"}),h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.data,o=t.vocationId;return(0,n.default)(p,{},void 0,(0,n.default)("ul",{},void 0,(0,n.default)("li",{style:{paddingTop:0}},void 0,f),a.map((function(t,a){return(0,n.default)("li",{className:t.id===o?"hover":""},a,(0,n.default)("div",{onMouseOver:function(){e.props.setAbilityNavById(t.id)},onFocus:function(){},onBlur:function(){},onMouseOut:function(){e.props.setAbilityNavById("")},className:"textDiv"},void 0,(0,n.default)("span",{},void 0,t.name),t.id===o&&m))}))))},t}(i.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(h)},"./src/components/MainNav/breadcrumbData.js":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./src/routes/modelBase.js")),o=i(a("./src/routes/modelVersion.js")),s=i(a("./src/routes/modelMirror.js")),r=i(a("./src/routes/modelLearn.js"));function i(e){return e&&e.__esModule?e:{default:e}}var d,l=function(e){return{name:"\u5b66\u4ef6\u6784\u5efa",extraMenu:!0,parentMenus:[{name:"\u5b66\u4ef6",path:""},{name:"\u5b66\u4ef6\u5f00\u53d1",path:"/modelLearn/learnBased"},{name:"\u5b66\u4ef6\u6784\u5efa",path:""}],addition:{url:e}}};t.default=[l(r.default[2].path),l(r.default[3].path),l(r.default[4].path),l(r.default[5].path),l(r.default[6].path),l(r.default[7].path),l(r.default[8].path),l(r.default[9].path),(d=r.default[11].path,{name:"\u5b66\u4ef6\u80fd\u529b\u8bf4\u660e",extraMenu:!0,parentMenus:[{name:"\u5b66\u4ef6",path:""},{name:"\u5b66\u4ef6\u80fd\u529b",path:"/modelLearn/learnAbility"},{name:"\u5b66\u4ef6\u80fd\u529b\u8bf4\u660e",path:""}],addition:{url:d}}),{name:"\u65b0\u589e\u7f16\u7801\u5f0f\u5efa\u6a21",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21",path:"/modelService/codeService"},{name:"\u65b0\u589e\u7f16\u7801\u5f0f\u5efa\u6a21",path:""}],addition:{url:"/modelService/codeService/create"}},{name:"\u65b0\u589e\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",path:"/inference/offline"},{name:"\u65b0\u589e\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/inference/offline/create/:env"}},{name:"\u65b0\u589e\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",path:"/inference/offline"},{name:"\u65b0\u589e\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/inference/offline/create/:env/:modelId/:packageId/:applicationId"}},{name:"\u4fee\u6539\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",path:"/inference/offline"},{name:"\u4fee\u6539\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/inference/offline/:taskId/edit/:env"}},{name:"\u67e5\u770b\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",path:"/inference/offline"},{name:"\u67e5\u770b\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/inference/offline/:taskId/:action/:activeTab"}},{name:"\u4fee\u6539\u7f16\u7801\u5f0f\u5efa\u6a21",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21",path:"/modelService/codeService"},{name:"\u4fee\u6539\u7f16\u7801\u5f0f\u5efa\u6a21",path:""}],addition:{url:"/modelService/codeService/edit/:id"}},{name:"\u67e5\u770b\u5728\u7ebf\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u67e5\u770b\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/:businessId?/detail/:tab/:serviceId?"}},{name:"\u67e5\u770b\u5728\u7ebf\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u67e5\u770b\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/businessId/:businessId/detail/:tab/:rapidServiceId?"}},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/:mirrorId?/:action(create)/:versionId?"}},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/publish/:env?/:mirrorId?/:versionId?/:codeId?"}},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/model/:action(publish)/:env/:modelId/:versionId"}},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/code/:action(publish)/:env/:codeId/:versionId?"}},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u65b0\u589e\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/code/publish/:env?/:codeId?"}},{name:"\u4fee\u6539\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u4fee\u6539\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/edit/:serviceId"}},{name:"\u4fee\u6539\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u4fee\u6539\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/view/:serviceId"}},{name:"\u4fee\u6539\u63a8\u7406\u670d\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u63a8\u7406\u670d\u52a1",path:""},{name:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",path:"/modelService"},{name:"\u4fee\u6539\u63a8\u7406\u670d\u52a1",path:""}],addition:{url:"/modelService/:action/:serviceId"}},{name:"\u6784\u5efa\u670d\u52a1\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u63a8\u7406\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/service"},{name:"\u6784\u5efa\u670d\u52a1\u955c\u50cf",path:""}],addition:{url:"/modelMirror/service/:modelId?/:action(build)/:versionId?"}},{name:"\u6784\u5efa\u670d\u52a1\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u63a8\u7406\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/service"},{name:"\u6784\u5efa\u670d\u52a1\u955c\u50cf",path:""}],addition:{url:"/modelMirror/service/code/:codeId?/:action(build|import)/:versionId?"}},{name:"\u5bfc\u5165\u670d\u52a1\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u63a8\u7406\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/service"},{name:"\u5bfc\u5165\u670d\u52a1\u955c\u50cf",path:""}],addition:{url:"/modelMirror/service/:modelId?/:action(import)/:versionId?"}},{name:"\u4fee\u6539\u63a8\u7406\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u63a8\u7406\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/service"},{name:"\u4fee\u6539\u63a8\u7406\u955c\u50cf",path:""}],addition:{url:"/modelMirror/service/edit/:mirrorId"}},{name:"\u5bfc\u5165\u8bad\u7ec3\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u8bad\u7ec3\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/train"},{name:"\u5bfc\u5165\u8bad\u7ec3\u955c\u50cf",path:""}],addition:{url:"/modelMirror/train/import"}},{name:"\u4fee\u6539\u8bad\u7ec3\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u8bad\u7ec3\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/train"},{name:"\u4fee\u6539\u8bad\u7ec3\u955c\u50cf",path:""}],addition:{url:"/modelMirror/train/edit/:mirrorId"}},{name:"\u65b0\u589e\u81ea\u5b9a\u4e49\u57fa\u7840\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u57fa\u7840\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/modelMirror"},{name:"\u65b0\u589e\u81ea\u5b9a\u4e49\u57fa\u7840\u955c\u50cf",path:""}],addition:{url:"/modelMirror/modelMirror/create/define"}},{name:"\u7248\u672c\u5217\u8868",extraMenu:!0,parentMenus:[{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u57fa\u7840\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/modelMirror"},{name:"\u7248\u672c\u5217\u8868",path:""}],addition:{url:"/modelMirror/modelMirror/:versionId/versions"}},{name:"\u7f16\u8f91\u81ea\u5b9a\u4e49\u6784\u5efa\u57fa\u7840\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u57fa\u7840\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/modelMirror"},{name:"\u7f16\u8f91\u81ea\u5b9a\u4e49\u6784\u5efa\u57fa\u7840\u955c\u50cf",path:""}],addition:{url:"/modelMirror/modelMirror/edit/define/:mirrorId/:versionName"}},{name:"\u67e5\u770b\u81ea\u5b9a\u4e49\u6784\u5efa\u57fa\u7840\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u57fa\u7840\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/modelMirror"},{name:"\u67e5\u770b\u81ea\u5b9a\u4e49\u6784\u5efa\u57fa\u7840\u955c\u50cf",path:""}],addition:{url:"/modelMirror/modelMirror/view/define/:mirrorId/:versionName"}},{name:"\u5bfc\u5165\u57fa\u7840\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u57fa\u7840\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/modelMirror"},{name:"\u5bfc\u5165\u57fa\u7840\u955c\u50cf",path:""}],addition:{url:"/modelMirror/modelMirror/create/import"}},{name:"\u4fee\u6539\u57fa\u7840\u955c\u50cf",extraMenu:!0,parentMenus:[{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u57fa\u7840\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/modelMirror"},{name:"\u4fee\u6539\u57fa\u7840\u955c\u50cf",path:""}],addition:{url:"/modelMirror/modelMirror/edit/:mirrorId"}},{name:"\u67e5\u770b\u57fa\u7840\u955c\u50cf\u4fe1\u606f",extraMenu:!0,parentMenus:[{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u57fa\u7840\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/modelMirror"},{name:"\u67e5\u770b\u57fa\u7840\u955c\u50cf\u4fe1\u606f",path:""}],addition:{url:"/modelMirror/modelMirror/detail/:mirrorId/:versionId?"}},{name:"\u670d\u52a1\u955c\u50cf\u57fa\u7840\u4fe1\u606f",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u63a8\u7406\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/service"},{name:"\u670d\u52a1\u955c\u50cf\u57fa\u7840\u4fe1\u606f",path:""}],addition:{url:s.default[2].path}},{name:"\u7248\u672c\u4fe1\u606f",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u8bad\u7ec3\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/train"},{name:"\u7248\u672c\u5217\u8868",path:""}],addition:{url:"/modelMirror/train/:mirrorId/versions"}},{name:"\u7248\u672c\u4fe1\u606f",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u63a8\u7406\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/service"},{name:"\u7248\u672c\u5217\u8868",path:""}],addition:{url:"/modelMirror/service/:mirrorId/versions"}},{name:"\u4fee\u6539\u63a8\u7406\u955c\u50cf\u7248\u672c",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u7248\u672c\u5217\u8868",path:"back"},{name:"\u4fee\u6539\u63a8\u7406\u955c\u50cf\u7248\u672c",path:""}],addition:{url:"/modelMirror/service/:mirrorId/:action(edit)/:versionId"}},{name:"\u4fee\u6539\u8bad\u7ec3\u955c\u50cf\u7248\u672c",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u7248\u672c\u5217\u8868",path:"back"},{name:"\u4fee\u6539\u8bad\u7ec3\u955c\u50cf\u7248\u672c",path:""}],addition:{url:"/modelMirror/train/:mirrorId/:action(edit)/:versionId"}},{name:"\u670d\u52a1\u955c\u50cf\u7ba1\u7406",extraMenu:!0,parentMenus:[{name:"\u63a8\u7406",path:""},,{name:"\u670d\u52a1\u955c\u50cf\u7ba1\u7406",path:""}],addition:{url:s.default[1].path}},{name:"\u63a5\u53e3\u5b9a\u4e49\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u670d\u52a1\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/service"},{name:"\u63a5\u53e3\u5b9a\u4e49\u4fee\u6539",path:""}],addition:{url:"/modelMirror/service/:mirrorId/editApi/:versionId"}},{name:"\u7248\u672c\u8be6\u60c5",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u8bad\u7ec3\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/train"},{name:"\u67e5\u770b\u8bad\u7ec3\u955c\u50cf\u7248\u672c",path:""}],addition:{url:"/modelMirror/train/:mirrorId/:tab"}},{name:"\u7248\u672c\u8be6\u60c5",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u8bad\u7ec3\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/train"},{name:"\u67e5\u770b\u8bad\u7ec3\u955c\u50cf\u7248\u672c",path:""}],addition:{url:"/modelMirror/train/:mirrorId/:tab/:versionId"}},{name:"\u7248\u672c\u8be6\u60c5",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u955c\u50cf\u7ba1\u7406",path:""},{name:"\u63a8\u7406\u955c\u50cf\u7ba1\u7406",path:"/modelMirror/service"},{name:"\u67e5\u770b\u63a8\u7406\u955c\u50cf\u7248\u672c",path:""}],addition:{url:"/modelMirror/service/:mirrorId/:versionId?/:tab"}},{name:"\u5bfc\u5165\u6a21\u578b",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u7ba1\u7406",path:n.default[0].path},{name:"\u5bfc\u5165\u6a21\u578b",path:""}],addition:{url:n.default[1].path}},{name:"\u7248\u672c\u5217\u8868",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u7ba1\u7406",path:""},{name:"\u6a21\u578b\u7ba1\u7406",path:n.default[0].path},{name:"\u7248\u672c\u5217\u8868",path:""}],addition:{url:o.default[0].path}},{name:"\u67e5\u770b\u7248\u672c\u8be6\u60c5",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u7ba1\u7406",path:""},{name:"\u7248\u672c\u5217\u8868",path:"back"},{name:"\u67e5\u770b\u7248\u672c\u8be6\u60c5",path:""}],addition:{url:o.default[1].path}},{name:"\u67e5\u770b\u6a21\u578b\u7ba1\u7406\u4fe1\u606f",extraMenu:!0,parentMenus:[{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u7ba1\u7406",path:n.default[0].path},{name:"\u67e5\u770b\u6a21\u578b\u7ba1\u7406\u4fe1\u606f",path:""}],addition:{url:n.default[2].path}},{name:"\u4fee\u6539\u6a21\u578b\u7ba1\u7406",extraMenu:!0,parentMenus:[{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u7ba1\u7406",path:n.default[0].path},{name:"\u4fee\u6539\u6a21\u578b\u7ba1\u7406",path:""}],addition:{url:n.default[3].path}},{name:"\u9879\u76ee\u65b0\u589e",extraMenu:!0,parentMenus:[{name:"\u7528\u6237\u4e2d\u5fc3",path:""},{name:"\u9879\u76ee\u7ba1\u7406",path:"/operation-manage/project"},{name:"\u9879\u76ee\u65b0\u589e",path:""}],addition:{url:"/operation-manage/project/list/create"}},{name:"\u9879\u76ee\u65b0\u589e",extraMenu:!0,parentMenus:[{name:"\u9879\u76ee\u65b0\u589e",path:""}],addition:{url:"/operation-manage/project/tenement/create"}},{name:"\u9879\u76ee\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7ba1\u7406",path:"/operation-manage/project"},{name:"\u9879\u76ee\u4fee\u6539",path:""}],addition:{url:"/operation-manage/project/:id/edit/:tab"}},{name:"\u9879\u76ee\u67e5\u770b",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7ba1\u7406",path:"/operation-manage/project"},{name:"\u9879\u76ee\u67e5\u770b",path:""}],addition:{url:"/operation-manage/project/:id/view/:action"}},{name:"\u6807\u6ce8\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"\u7cfb\u7edf\u7ba1\u7406",path:""},{name:"\u5f00\u53d1\u4efb\u52a1",path:"/sysmgr/task"},{name:"\u6807\u6ce8\u4fee\u6539",path:""}],addition:{url:"/sysmgr/task/labelTask/edit/:id"}},{name:"\u65b0\u589e\u6807\u6ce8\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u5f00\u53d1\u4efb\u52a1\u7ba1\u7406",path:"/sysmgr/task"},{name:"\u65b0\u589e\u6807\u6ce8\u4efb\u52a1",path:""}],addition:{url:"/sysmgr/task/labelTask/create"}},{name:"\u67e5\u770b\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u5f00\u53d1\u4efb\u52a1\u7ba1\u7406",path:"/sysmgr/task"},{name:"\u67e5\u770b\u4efb\u52a1",path:""}],addition:{url:"/sysmgr/task/labelTask/view/:id/:taskScene"}},{name:"\u6807\u6ce8\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"\u7cfb\u7edf\u7ba1\u7406",path:""},{name:"\u5f00\u53d1\u4efb\u52a1",path:"/sysmgr/task"},{name:"\u6807\u6ce8\u65b0\u589e",path:""}],addition:{url:"/sysmgr/task/labelTask/create/:inputDsId/:inputDsName/:inputDsCycle/:excludeDataType/:taskScene"}},{name:"\u65b0\u589e\u7f16\u7801\u5f0f\u5efa\u6a21",extraMenu:!0,parentMenus:[{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21",path:"/modelService/codeService"},{name:"\u65b0\u589e\u7f16\u7801\u5f0f\u5efa\u6a21",path:""}],addition:{url:"/modelService/codeService/:action(create)/:engine?/:mirrorId?/:versionId?"}},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21",path:"/modelService/codeService"},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21\u4fee\u6539",path:""}],addition:{url:"/modelService/codeService/edit/:id"}},{name:"\u67e5\u770b\u7f16\u7801\u5f0f\u5efa\u6a21",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21",path:"/modelService/codeService"},{name:"\u67e5\u770b\u7f16\u7801\u5f0f\u5efa\u6a21",path:""}],addition:{url:"/modelService/codeServiceDetail/:serviceId/:tab"}},{name:"\u65b0\u589e\u7f16\u7801\u5f0f\u5efa\u6a21",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21",path:"/modelService/codeService"},{name:"\u65b0\u589e\u7f16\u7801\u5f0f\u5efa\u6a21",path:""}],addition:{url:"/modelService/codeService/:action(create)/:engine?/:mirrorId?/:versionId?"}},{name:"\u65b0\u589e\u7f16\u7801\u5f0f\u5efa\u6a21",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21",path:"/modelService/codeService"},{name:"\u65b0\u589e\u7f16\u7801\u5f0f\u5efa\u6a21",path:""}],addition:{url:"/modelService/codeService/:action(create)/:engine?/:mirrorId?/:versionId?/:type"}},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21",path:"/modelService/codeService"},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21\u4fee\u6539",path:""}],addition:{url:"/modelService/codeService/edit/:id"}},{name:"\u65b0\u589e\u9879\u76ee\u7533\u8bf7",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7533\u8bf7",path:"/operation-manage/apply-project/req"},{name:"\u65b0\u589e\u9879\u76ee\u7533\u8bf7",path:""}],addition:{url:"/operation-manage/apply-project/create"}},{name:"\u9879\u76ee\u7533\u8bf7\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7533\u8bf7",path:"/operation-manage/apply-project"},{name:"\u9879\u76ee\u7533\u8bf7\u4fee\u6539",path:""}],addition:{url:"/operation-manage/apply-project/:applyId/edit"}},{name:"\u67e5\u770b\u9879\u76ee\u7533\u8bf7",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7533\u8bf7",path:"/operation-manage/apply-project"},{name:"\u67e5\u770b\u9879\u76ee\u7533\u8bf7",path:""}],addition:{url:"/operation-manage/apply-project/:applyId/view"}},{name:"\u65b0\u589e\u9879\u76ee\u5ba1\u6279",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7ba1\u7406",path:""},{name:"\u5ba1\u6279\u7533\u8bf7",path:"/operation-manage/approve-project"},{name:"\u65b0\u589e\u9879\u76ee\u5ba1\u6279",path:""}],addition:{url:"/operation-manage/approve-project/create"}},{name:"\u67e5\u770b\u9879\u76ee\u5ba1\u6279",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7ba1\u7406",path:""},{name:"\u5ba1\u6279\u7533\u8bf7",path:"/operation-manage/approve-project"},{name:"\u67e5\u770b\u9879\u76ee\u5ba1\u6279",path:""}],addition:{url:"/operation-manage/approve-project/:applyId/view"}},{name:"\u65b0\u589e\u670d\u52a1\u6743\u9650\u7533\u8bf7",extraMenu:!0,parentMenus:[{name:"AI\u4f7f\u7528",path:""},{name:"\u670d\u52a1\u6743\u9650\u7533\u8bf7",path:"/operation-manage/service-api"},{name:"\u65b0\u589e\u670d\u52a1\u6743\u9650\u7533\u8bf7",path:""}],addition:{url:"/operation-manage/service-api/create/:apiUserId?"}},{name:"\u65b0\u589e\u670d\u52a1\u6743\u9650\u7533\u8bf7",extraMenu:!0,parentMenus:[{name:"AI\u4f7f\u7528",path:""},{name:"\u670d\u52a1\u6743\u9650\u7533\u8bf7",path:"/operation-manage/service-api"},{name:"\u65b0\u589e\u670d\u52a1\u6743\u9650\u7533\u8bf7",path:""}],addition:{url:"/operation-manage/service-api/apply"}},{name:"\u4fee\u6539\u670d\u52a1\u6743\u9650\u7533\u8bf7",extraMenu:!0,parentMenus:[{name:"AI\u4f7f\u7528",path:""},{name:"\u670d\u52a1\u6743\u9650\u7533\u8bf7",path:"/operation-manage/service-api"},{name:"\u4fee\u6539\u670d\u52a1\u6743\u9650\u7533\u8bf7",path:""}],addition:{url:"/operation-manage/service-api/:applyId/edit"}},{name:"\u67e5\u770b\u670d\u52a1\u6743\u9650\u7533\u8bf7",extraMenu:!0,parentMenus:[{name:"AI\u4f7f\u7528",path:""},{name:"\u670d\u52a1\u6743\u9650\u7533\u8bf7",path:"/operation-manage/service-api"},{name:"\u67e5\u770b\u670d\u52a1\u6743\u9650\u7533\u8bf7",path:""}],addition:{url:"/operation-manage/service-api/:applyId/view"}},{name:"\u67e5\u770bapi\u7528\u6237",extraMenu:!0,parentMenus:[{name:"AI\u4f7f\u7528",path:""},{name:"api\u7528\u6237\u7ba1\u7406",path:"/operation-manage/apiUser"},{name:"\u67e5\u770bapi\u7528\u6237",path:""}],addition:{url:"/operation-manage/apiUser/:apiUserId"}},{name:"\u5f00\u53d1\u4efb\u52a1\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"\u7cfb\u7edf\u7ba1\u7406",path:""},{name:"\u5f00\u53d1\u4efb\u52a1",path:"/sysmgr/task"},{name:"\u5f00\u53d1\u4efb\u52a1\u4fee\u6539",path:""}],addition:{url:"/sysmgr/task/developTask/edit/:id"}},{name:"\u65b0\u589e\u5f00\u53d1\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u5f00\u53d1\u4efb\u52a1\u7ba1\u7406",path:"/sysmgr/task"},{name:"\u65b0\u589e\u5f00\u53d1\u4efb\u52a1",path:""}],addition:{url:"/sysmgr/task/developTask/create"}},{name:"\u4efb\u52a1\u67e5\u770b",extraMenu:!0,parentMenus:[{name:"\u7cfb\u7edf\u7ba1\u7406",path:""},{name:"\u5f00\u53d1\u4efb\u52a1",path:"/sysmgr/task"},{name:"\u5f00\u53d1\u4efb\u52a1\u67e5\u770b",path:""}],addition:{url:"/sysmgr/task/developTask/view/:id/:taskScene"}},{name:"\u65b0\u589e\u5f00\u53d1\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u5f00\u53d1\u4efb\u52a1\u7ba1\u7406",path:"/sysmgr/task"},{name:"\u65b0\u589e\u5f00\u53d1\u4efb\u52a1",path:""}],addition:{url:"/sysmgr/task/developTask/create/:inputDsId/:inputDsName/:inputDsCycle/:excludeDataType"}},{name:"NLP\u5e94\u7528\u590d\u5236",extraMenu:!0,parentMenus:[{name:"NLP\u5e94\u7528\u590d\u5236",path:""}],addition:{url:"/applications/second-dev"}},{name:"\u9879\u76ee\u7533\u8bf7",extraMenu:!0,parentMenus:[{name:"\u9879\u76ee\u7533\u8bf7",path:""}],addition:{url:"/operation-manage/apply-project/req"}},{name:"\u65b0\u589e\u7ed3\u6784\u5316",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u96c6\u7ba1\u7406",path:"/datamgr/dataSource"},{name:"\u65b0\u589e\u7ed3\u6784\u5316",path:""}],addition:{url:"/datamgr/dataSource/structure/add/:appId?"}},{name:"\u4fee\u6539\u7ed3\u6784\u5316",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u96c6\u7ba1\u7406",path:"/datamgr/dataSource"},{name:"\u4fee\u6539\u7ed3\u6784\u5316",path:""}],addition:{url:"/datamgr/dataSource/structure/edit/:dsId/:appId"}},{name:"\u65b0\u589e\u975e\u7ed3\u6784\u5316",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u96c6\u7ba1\u7406",path:"/datamgr/dataSource"},{name:"\u65b0\u589e\u975e\u7ed3\u6784\u5316",path:""}],addition:{url:"/datamgr/dataSource/nostructure/add/:appId?"}},{name:"\u4fee\u6539\u975e\u7ed3\u6784\u5316",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u96c6\u7ba1\u7406",path:"/datamgr/dataSource"},{name:"\u4fee\u6539\u975e\u7ed3\u6784\u5316",path:""}],addition:{url:"/datamgr/dataSource/nostructure/edit/:dsId/:appId"}},{name:"\u5bfc\u5165\u4ee3\u7801\u5305",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u4ee3\u7801\u5305\u7ba1\u7406",path:"/serviceCode"},{name:"\u5bfc\u5165\u4ee3\u7801\u5305",path:""}],addition:{url:"/serviceCode/import"}},{name:"\u4fee\u6539\u4ee3\u7801\u5305",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u4ee3\u7801\u5305\u7ba1\u7406",path:"/serviceCode"},{name:"\u4fee\u6539\u4ee3\u7801\u5305",path:""}],addition:{url:"/serviceCode/edit/:codeId"}},{name:"\u67e5\u770b\u4ee3\u7801\u5305",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u4ee3\u7801\u5305\u7ba1\u7406",path:"/serviceCode"},{name:"\u67e5\u770b\u4ee3\u7801\u5305",path:""}],addition:{url:"/serviceCode/:codeId/detail"}},{name:"\u9879\u76ee\u5217\u8868\u67e5\u770b",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u8fd0\u7ef4\u76d1\u63a7",path:"/sysmgr/devOps/index"},{name:"\u9879\u76ee\u5217\u8868\u67e5\u770b",path:""}],addition:{url:"/sysmgr/devOps/project"}},{name:"\u670d\u52a1\u5217\u8868\u67e5\u770b",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u8fd0\u7ef4\u76d1\u63a7",path:"/sysmgr/devOps/index"},{name:"\u670d\u52a1\u5217\u8868\u67e5\u770b",path:""}],addition:{url:"/sysmgr/devOps/services"}},{name:"\u65b0\u589e\u79df\u6237",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u7cfb\u7edf\u7ba1\u7406",path:""},{name:"\u79df\u6237\u7ba1\u7406",path:"/sysmgr/tenants"},{name:"\u65b0\u589e\u79df\u6237",path:""}],addition:{url:"/sysmgr/tenants/create"}},{name:"\u79df\u6237\u67e5\u770b",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u7cfb\u7edf\u7ba1\u7406",path:""},{name:"\u79df\u6237\u7ba1\u7406",path:"/sysmgr/tenants"},{name:"\u79df\u6237\u67e5\u770b",path:""}],addition:{url:"/sysmgr/tenants/:tenantId/view/:tab(info|user|docs|apply)"}},{name:"\u79df\u6237\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u7cfb\u7edf\u7ba1\u7406",path:""},{name:"\u79df\u6237\u7ba1\u7406",path:"/sysmgr/tenants"},{name:"\u79df\u6237\u4fee\u6539",path:""}],addition:{url:"/sysmgr/tenants/:tenantId/edit/:tab(info|user|docs|apply)"}},{name:"\u53d1\u5e03\u5411\u5bfc\u5f0f\u8bad\u7ec3\u6a21\u677f",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u6a21\u677f\u7ba1\u7406",path:"/trainTemplate"},{name:"\u53d1\u5e03\u5411\u5bfc\u5f0f\u8bad\u7ec3\u6a21\u677f",path:""}],addition:{url:"/trainTemplate/create/:source"}},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u6a21\u677f\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u6a21\u677f\u7ba1\u7406",path:"/trainTemplate"},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u6a21\u677f\u4fee\u6539",path:""}],addition:{url:"/trainTemplate/edit/:templateId"}},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u6a21\u677f\u8be6\u60c5",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u6a21\u677f\u7ba1\u7406",path:"/trainTemplate"},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u6a21\u677f\u8be6\u60c5",path:""}],addition:{url:"/trainTemplate/detail/:templateId/:versionId?"}},{name:"\u65b0\u589e\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u5efa\u6a21",path:"/trainTask"},{name:"\u65b0\u589e\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1",path:""}],addition:{url:"/trainTask/:action(create)/:templateId/:versionsId/:appId?"}},{name:"\u65b0\u589e\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u5efa\u6a21",path:"/trainTask"},{name:"\u65b0\u589e\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1",path:""}],addition:{url:"/trainTask/:type/:action(create)/:templateId/:versionsId/:appId?"}},{name:"\u4fee\u6539\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u5efa\u6a21",path:"/trainTask"},{name:"\u65b0\u589e\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1",path:""}],addition:{url:"/trainTask/edit/:id"}},{name:"\u4fee\u6539\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u5efa\u6a21",path:"/trainTask"},{name:"\u65b0\u589e\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1",path:""}],addition:{url:"/trainTask/init-tmp/:type/:action(edit)/:taskId"}},{name:"\u5411\u5bfc\u5f0f\u5efa\u6a21",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u5efa\u6a21",path:""}],addition:{url:"/trainTask/:param?"}},{name:"\u67e5\u770b\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u5efa\u6a21",path:"/trainTask"},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1\u8be6\u60c5",path:""}],addition:{url:"/trainTask/:taskId/:action/:activeTab"}},{name:"\u6267\u884c\u4efb\u52a1\u8be6\u60c5",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u5efa\u6a21",path:"/trainTask"},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1\u8be6\u60c5",path:"back"},{name:"\u6267\u884c\u4efb\u52a1\u8be6\u60c5",path:""}],addition:{url:"/trainTask/:taskId/invocation/:jobId/:activeTab(config|process|result)/:taskType?"}},{name:"\u6a21\u578b\u8bc4\u4f30\u62a5\u544a",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u5411\u5bfc\u5f0f\u5efa\u6a21",path:"/trainTask"},{name:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1\u8be6\u60c5",path:"back"},{name:"\u6267\u884c\u4efb\u52a1\u8be6\u60c5",path:"back"},{name:"\u6a21\u578b\u8bc4\u4f30\u62a5\u544a",path:""}],addition:{url:"/trainTask/:taskId/invocation/:jobId/result/:algorithm/report"}},{name:"\u9879\u76ee\u7ec4\u65b0\u589e",extraMenu:!0,parentMenus:[{name:"\u7528\u6237\u4e2d\u5fc3",path:""},{name:"\u9879\u76ee\u7ec4\u7ba1\u7406",path:"/operation-manage/items-group"},{name:"\u9879\u76ee\u7ec4\u65b0\u589e",path:""}],addition:{url:"/operation-manage/items-group/create"}},{name:"\u9879\u76ee\u7ec4\u4fee\u6539",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7ec4\u7ba1\u7406",path:"/operation-manage/items-group"},{name:"\u9879\u76ee\u7ec4\u4fee\u6539",path:""}],addition:{url:"/operation-manage/items-group/:id/edit"}},{name:"\u9879\u76ee\u7ec4\u67e5\u770b",extraMenu:!0,parentMenus:[{name:"\u8fd0\u8425\u7ba1\u7406",path:""},{name:"\u9879\u76ee\u7ec4\u7ba1\u7406",path:"/operation-manage/items-group"},{name:"\u9879\u76ee\u7ec4\u67e5\u770b",path:""}],addition:{url:"/operation-manage/items-group/:id/view"}},{name:"\u53d1\u5e03\u63a8\u7406\u63a5\u53e3",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u7f16\u7801\u5f0f\u5efa\u6a21",path:"/modelService/codeService"},{name:"\u53d1\u5e03\u63a8\u7406\u63a5\u53e3",path:""}],addition:{url:"/modelService/codeService/code/publish"}},{name:"\u5e94\u7528\u4ee3\u7801\u4ed3\u5e93",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u5e94\u7528\u7ba1\u7406",path:"/home/applications"},{name:"\u5e94\u7528\u4ee3\u7801\u4ed3\u5e93",path:""}],addition:{url:"/nb-view/projects/:projectId/apps/:appId/:filepath?"}},{name:"\u65b0\u589e\u7070\u5ea6\u53d1\u5e03",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u670d\u52a1\u90e8\u7f72",path:""},{name:"\u7070\u5ea6\u53d1\u5e03",path:"/grayTask"},{name:"\u65b0\u589e\u7070\u5ea6\u53d1\u5e03",path:""}],addition:{url:"/grayTask/:action(create|edit|view)/:env(product|test)/taskId/:taskId?/step/:step/:serviceId?"}},{name:"\u65b0\u589e\u6807\u6ce8\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6807\u6ce8\u4efb\u52a1\u7ba1\u7406",path:"/son-app/mark-tool"},{name:"\u65b0\u589e\u6807\u6ce8\u4efb\u52a1",path:""}],addition:{url:"/son-app/mark-tool/add"}},{name:"\u65b0\u589e\u6807\u6ce8\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6807\u6ce8\u4efb\u52a1\u7ba1\u7406",path:"/son-app/mark-tool"},{name:"\u65b0\u589e\u6807\u6ce8\u4efb\u52a1",path:""}],addition:{url:"/son-app/mark-tool/add/:dsId/:dsCycle/:dataType"}},{name:"\u4fee\u6539\u6807\u6ce8\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6807\u6ce8\u4efb\u52a1\u7ba1\u7406",path:"/son-app/mark-tool"},{name:"\u4fee\u6539\u6807\u6ce8\u4efb\u52a1",path:""}],addition:{url:"/son-app/mark-tool/edit/:id"}},{name:"\u6570\u636e\u6807\u6ce8\u4efb\u52a1\u8be6\u60c5",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6807\u6ce8\u4efb\u52a1\u7ba1\u7406",path:"/son-app/mark-tool"},{name:"\u6570\u636e\u6807\u6ce8\u4efb\u52a1\u8be6\u60c5",path:""}],addition:{url:"/son-app/mark-tool/view/:id"}},{name:"\u6807\u6ce8\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6807\u6ce8\u4efb\u52a1\u7ba1\u7406",path:"/son-app/mark-tool"},{name:"\u6807\u6ce8\u4efb\u52a1",path:""}],addition:{url:"/son-app/mark-tool/jobs/:taskId"}},{name:"\u64cd\u4f5c\u6807\u6ce8\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6807\u6ce8\u4efb\u52a1\u7ba1\u7406",path:"/son-app/mark-tool"},{name:"\u6807\u6ce8\u4efb\u52a1",path:"back"},{name:"\u64cd\u4f5c\u6807\u6ce8\u4efb\u52a1",path:"back"}],addition:{url:"/son-app/mark-tool/markTool/:action/:taskId/:jobId"}},{name:"\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u90e8\u7f72",path:""},{name:"\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",path:""}],addition:{url:"/flowTask/:env?"}},{name:"\u65b0\u589e\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u90e8\u7f72",path:""},{name:"\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",path:"/flowTask"},{name:"\u65b0\u589e\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",path:""}],addition:{url:"/flowTask/create/:env"}},{name:"\u65b0\u589e\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u90e8\u7f72",path:""},{name:"\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",path:"/flowTask"},{name:"\u65b0\u589e\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",path:""}],addition:{url:"/flowTask/create/:env/:modelId/:packageId/:applicationId"}},{name:"\u4fee\u6539\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u90e8\u7f72",path:""},{name:"\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",path:"/flowTask"},{name:"\u4fee\u6539\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",path:""}],addition:{url:"/flowTask/:taskId/edit/:env"}},{name:"\u67e5\u770b\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6a21\u578b\u90e8\u7f72",path:""},{name:"\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",path:"/flowTask"},{name:"\u67e5\u770b\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1",path:""}],addition:{url:"/flowTask/:taskId/:action/:activeTab"}},{name:"\u65b0\u589e\u9884\u5904\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u9884\u5904\u7406",path:"/datamgr/pre-task"},{name:"\u65b0\u589e\u9884\u5904\u7406\u4efb\u52a1",path:""}],addition:{url:"/datamgr/pre-task/create"}},{name:"\u65b0\u589e\u9884\u5904\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u9884\u5904\u7406",path:"/datamgr/pre-task"},{name:"\u65b0\u589e\u9884\u5904\u7406\u4efb\u52a1",path:""}],addition:{url:"/datamgr/pre-task/create/:dsId/:dsCycle"}},{name:"\u65b0\u589e\u9884\u5904\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u9884\u5904\u7406",path:"/datamgr/pre-task"},{name:"\u65b0\u589e\u9884\u5904\u7406\u4efb\u52a1",path:""}],addition:{url:"/datamgr/pre-task/create/:dsId/:dsCycle/:dataType"}},{name:"\u4fee\u6539\u9884\u5904\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u9884\u5904\u7406",path:"/datamgr/pre-task"},{name:"\u4fee\u6539\u9884\u5904\u7406\u4efb\u52a1",path:""}],addition:{url:"/datamgr/pre-task/:action/:taskId"}},{name:"\u67e5\u770b\u9884\u5904\u7406\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u9884\u5904\u7406",path:"/datamgr/pre-task"},{name:"\u67e5\u770b\u9884\u5904\u7406\u4efb\u52a1",path:""}],addition:{url:"/datamgr/pre-task/:taskId/detail/:activeTab"}},{name:"\u65b0\u589e\u540c\u6b65\u914d\u7f6e",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u6e90\u5f00\u53d1",path:"/datamgr/dataSourceDev"},{name:"\u65b0\u589e\u540c\u6b65\u914d\u7f6e",path:""}],addition:{url:"/datamgr/dataSourceDev/syncCreate"}},{name:"\u7f16\u8f91\u540c\u6b65\u914d\u7f6e",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u6e90\u5f00\u53d1",path:"/datamgr/dataSourceDev"},{name:"\u65b0\u589e\u540c\u6b65\u914d\u7f6e",path:""}],addition:{url:"/datamgr/dataSourceDev/editSync"}},{name:"\u67e5\u770b\u65e5\u5fd7",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u6570\u636e\u51c6\u5907",path:""},{name:"\u6570\u636e\u6e90\u5f00\u53d1",path:"/datamgr/dataSourceDev"},{name:"\u67e5\u770b\u65e5\u5fd7",path:""}],addition:{url:"/datamgr/dataSourceDev/logWatcher/:id"}},{name:"\u521b\u5efa\u4f5c\u4e1a",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u4efb\u52a1\u7f16\u6392",path:""},{name:"\u4f5c\u4e1a\u7ba1\u7406",path:"/task/jobManage"},{name:"\u521b\u5efa\u4f5c\u4e1a",path:""}],addition:{url:"/task/jobManage/create"}},{name:"\u7f16\u8f91\u4f5c\u4e1a",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u4efb\u52a1\u7f16\u6392",path:""},{name:"\u4f5c\u4e1a\u7ba1\u7406",path:"/task/jobManage"},{name:"\u7f16\u8f91\u4f5c\u4e1a",path:""}],addition:{url:"/task/jobManage/:id/edit"}},{name:"\u4efb\u52a1\u65e5\u5fd7",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u4efb\u52a1\u7f16\u6392",path:""},{name:"\u4efb\u52a1\u65e5\u5fd7",path:""}],addition:{url:"/task/taskLog/:taskId/currentLogList"}},{name:"\u67e5\u770b\u65e5\u5fd7",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u4efb\u52a1\u7f16\u6392",path:""},{name:"\u4efb\u52a1\u65e5\u5fd7",path:"/task/taskLog"},{name:"\u67e5\u770b\u65e5\u5fd7",path:""}],addition:{url:"/task/taskLog/:logId/log"}},{name:"\u65b0\u5efa\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u4efb\u52a1\u7f16\u6392",path:""},{name:"\u4efb\u52a1\u7ba1\u7406",path:"/task/taskManage"},{name:"\u65b0\u5efa\u4efb\u52a1",path:""}],addition:{url:"/task/taskManage/create"}},{name:"\u7f16\u8f91\u4efb\u52a1",extraMenu:!0,parentMenus:[{name:"AI\u5f00\u53d1",path:""},{name:"\u4efb\u52a1\u7f16\u6392",path:""},{name:"\u4efb\u52a1\u7ba1\u7406",path:"/task/taskManage"},{name:"\u7f16\u8f91\u4efb\u52a1",path:""}],addition:{url:"/task/taskManage/:id/edit"}}]},"./src/components/Modal/ModalFooter.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/antd/es/button/index.js")),o=s(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/button/style/index.js");s(a("./node_modules/react/index.js")),s(a("./node_modules/prop-types/index.js"));function s(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.confirmLoading,a=e.onOk,s=e.onCancel,r=e.okText,i=e.cancelText;return(0,o.default)("div",{className:"ant-modal-footer"},void 0,(0,o.default)("div",{},void 0,(0,o.default)(n.default,{onClick:s},void 0,i),(0,o.default)(n.default,{onClick:a,loading:t,type:"primary"},void 0,r)))}r.defaultProps={okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88"},t.default=r},"./src/components/Modal/ModalView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/antd/es/spin/index.js")),o=u(a("./node_modules/antd/es/modal/index.js")),s=u(a("./node_modules/babel-runtime/helpers/jsx.js")),r=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=u(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var l=u(a("./node_modules/react/index.js"));u(a("./node_modules/prop-types/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,s.default)(n.default,{tip:"Loading..."}),p=(0,s.default)(n.default,{tip:"Loading..."}),f=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.handleCancel=function(){n.props.onCancelType&&n.setState({visible:!1}),n.props.callVisible()},n.state={visible:a.modalVisible,title:a.modalTitle,comp:a.comp,height:void 0!==a.height?a.height:"auto",width:void 0!==a.width?a.width:"auto",closable:void 0===a.closable||a.closable},n}return(0,d.default)(t,e),t.getDerivedStateFromProps=function(e){return{visible:e.modalVisible,title:void 0===e.modalTitle?e.renderTitle:e.modalTitle,width:e.width,height:e.height}},t.prototype.render=function(){return this.props.submitModalOk&&"view"!==this.props.viewType?(0,s.default)(o.default,{keyboard:!1,style:{top:this.props.top,padding:"20px"},confirmLoading:this.props.confirmLoading,bodyStyle:{height:void 0!==this.state.height?this.state.height:""},title:void 0!==this.state.title?this.state.title:"",onCancel:this.handleCancel,visible:this.state.visible,width:this.state.width,destroyOnClose:!0,cancelText:"\u53d6 \u6d88",okText:this.props.okText?this.props.okText:"\u786e \u5b9a",onOk:this.props.submitModalOk,closable:this.state.closable,maskClosable:"view"===this.props.viewType},void 0,this.props.loading?c:this.props.comp):(0,s.default)(o.default,{keyboard:!1,style:{top:this.props.top?this.props.top:20,padding:"20px"},confirmLoading:this.props.confirmLoading,bodyStyle:{height:void 0!==this.state.height?this.state.height:""},title:void 0!==this.state.title?this.state.title:"",onCancel:this.handleCancel,visible:this.state.visible,width:this.state.width,destroyOnClose:!0,footer:null,closable:this.state.closable,maskClosable:"view"===this.props.viewType},void 0,this.props.loading?p:this.props.comp)},t}(l.default.PureComponent);t.default=f},"./src/components/Notification/NoticeIcon.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/popover/index.js")),o=_(a("./node_modules/antd/es/badge/index.js")),s=_(a("./node_modules/antd/es/spin/index.js")),r=_(a("./node_modules/babel-runtime/helpers/extends.js")),i=_(a("./node_modules/babel-runtime/helpers/jsx.js")),d=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=_(a("./node_modules/babel-runtime/helpers/inherits.js")),c=_(a("./node_modules/antd/es/tabs/index.js")),p="C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\Notification\\NoticeIcon.jsx";a("./node_modules/antd/es/popover/style/index.js"),a("./node_modules/antd/es/badge/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var f=a("./node_modules/react/index.js"),m=_(f),h=(_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),g=a("./node_modules/@ant-design/icons/es/index.js"),v=_(a("./src/components/Notification/NoticeList.js"));function _(e){return e&&e.__esModule?e:{default:e}}var y=h.default.div.withConfig({displayName:"NoticeIcon__Wrapper",componentId:"q4q0uq-0"})([".noticeButton{cursor:pointer;display:inline-block;transition:all 0.3s;}.icon{font-size:16px;padding:4px;}.notice-icon-wrapper{height:60px;display:inline-block;line-height:60px;}"]),b=c.default.TabPane,x=(0,i.default)(g.BellOutlined,{className:"icon"}),C=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.onItemClick=function(e,t){(0,n.props.onItemClick)(e,t)},n.onTabChange=function(e){n.setState({tabType:e}),n.props.onTabChange(e)},n.state={},a.children&&a.children[0]&&(n.state.tabType=a.children[0].props.title),n}return(0,u.default)(t,e),t.prototype.getNotificationBox=function(){var e=this,t=this.props,a=t.children,n=t.loading;if(!a)return null;var o=m.default.Children.map(a,(function(t){if(t){var a=t.props.list&&t.props.list.length>0?t.props.title+" ("+t.props.list.length+")":t.props.title;return(0,i.default)(b,{tab:a},t.props.title,m.default.createElement(v.default,(0,r.default)({},t.props,{data:t.props.list,onClick:function(a){return e.onItemClick(a,t.props)},onClear:function(){return e.props.onClear(t.props.type)},title:t.props.title,__source:{fileName:p,lineNumber:56}})))}}));return(0,i.default)(s.default,{spinning:n,delay:0},void 0,(0,i.default)(c.default,{className:"tabs",onChange:this.onTabChange},void 0,o))},t.prototype.render=function(){var e=this.props,t=e.count,a=e.popupAlign,s=e.onPopupVisibleChange,d=this.getNotificationBox(),l=(0,i.default)("span",{className:"noticeButton"},void 0,(0,i.default)(o.default,{count:t,offset:[15,5]},void 0,x));if(!d)return l;var u={};return"popupVisible"in this.props&&(u.visible=this.props.popupVisible),(0,i.default)(y,{},void 0,m.default.createElement(n.default,(0,r.default)({placement:"bottomRight",content:d,popupClassName:"popover",popupStyle:{width:400},trigger:"click",arrowPointAtCenter:!0,popupAlign:a,onVisibleChange:s},u,{__source:{fileName:p,lineNumber:93}}),l))},t}(f.PureComponent);t.default=C},"./src/components/Notification/NoticeList.js":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/antd/es/avatar/index.js")),o=i(a("./node_modules/babel-runtime/helpers/jsx.js")),s=i(a("./node_modules/antd/es/list/index.js"));a("./node_modules/antd/es/avatar/style/index.js"),a("./node_modules/antd/es/list/style/index.js");i(a("./node_modules/react/index.js")),i(a("./node_modules/prop-types/index.js"));var r=i(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function i(e){return e&&e.__esModule?e:{default:e}}var d=s.default.Item,l=s.default.Item.Meta,u=r.default.div.withConfig({displayName:"NoticeList__Wrapper",componentId:"mjmr49-0"})([".list{min-height:300px;max-height:400px;overflow:auto;.item{transition:all 0.3s;overflow:hidden;cursor:pointer;padding-left:24px;padding-right:24px;.meta{width:100%;}.avatar{background:#fff;margin-top:4px;}&.read{opacity:0.4;}&:last-child{border-bottom:0;}&:hover{background:@primary-1;}.title{font-weight:normal;margin-bottom:8px;}.description{font-size:12px;line-height:@line-height-base;}.datetime{font-size:12px;margin-top:4px;line-height:@line-height-base;}.extra{float:right;color:@text-color-secondary;font-weight:normal;margin-right:0;margin-top:-1.5px;}}}.notFound{display:flex;flex-direction:column;align-items:center;text-align:center;padding:73px 0 88px 0;color:@text-color-secondary;img{display:inline-block;margin-bottom:16px;height:76px;}}.clear{height:46px;line-height:46px;text-align:center;color:@text-color;border-radius:0 0 4px 4px;border-top:1px solid #eee;transition:all 0.3s;cursor:pointer;border:1px solid #eee;&:hover{color:@rgb (20,123,209);}}"]);t.default=function(e){var t=e.type,a=e.data,r=void 0===a?[]:a,i=e.onClick,c=e.onClear,p=e.emptyText,f=e.emptyImage;return 0===r.length?(0,o.default)(u,{},void 0,(0,o.default)("div",{className:"notFound"},void 0,f?(0,o.default)("img",{src:f,alt:"not found"}):null,(0,o.default)("div",{},void 0,p||"\u6682\u65e0\u6570\u636e"))):(0,o.default)(u,{},void 0,(0,o.default)(s.default,{className:"list"},void 0,r.map((function(e,t){return(0,o.default)(d,{className:"item",onClick:function(){return i(e)}},e.key||t,(0,o.default)(l,{className:"meta",avatar:e.avatar?(0,o.default)(n.default,{className:"avatar",src:e.avatar}):null,title:(0,o.default)("div",{className:"title"},void 0,e.messageContent),description:(0,o.default)("div",{},void 0,(0,o.default)("div",{className:"description",title:e.description},void 0,e.description),(0,o.default)("div",{className:"datetime"},void 0,e.createAt))}))}))),"upcomingList"!==t&&(0,o.default)("div",{className:"clear",onClick:c},void 0,"\u5168\u90e8\u5df2\u8bfb"))}},"./src/components/Notification/Notification.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=I(a("./node_modules/antd/es/tag/index.js")),r=I(a("./node_modules/babel-runtime/helpers/jsx.js")),i=I(a("./node_modules/babel-runtime/helpers/extends.js")),d=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=I(a("./node_modules/babel-runtime/helpers/inherits.js")),c=I(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tag/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var p=a("./node_modules/react/index.js"),f=(I(p),I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=(I(a("./node_modules/prop-types/index.js")),I(a("./node_modules/dayjs/dayjs.min.js"))),h=I(a("./node_modules/dayjs/plugin/relativeTime.js")),g=I(a("./node_modules/lodash/groupBy.js")),v=I(a("./src/components/Notification/NoticeIcon.jsx")),y=a("./src/redux/services/sysManager/noticeMessage.js"),b=I(a("./src/styles/images/icon/notice-im.svg")),x=I(a("./src/styles/images/icon/notice-msg.svg")),C=I(a("./src/styles/images/icon/notice-todo.svg")),j=a("./src/routes/routeHelper.jsx"),S=a("./src/utils/history.js");function I(e){return e&&e.__esModule?e:{default:e}}m.default.extend(h.default);var T=f.default.div.withConfig({displayName:"Notification__Wrapper",componentId:"h8tfos-0"})([".action{cursor:pointer;padding:0 12px;display:inline-block;transition:all 0.3s;height:100%;> i{font-size:16px;vertical-align:middle;}&:hover{background:red;}}"]),w=c.default.TabPane,E=(n=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return o.call(n),n.state={notices:[],newNoticeCount:0,loading:!1,noticeData:{}},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this;this.fetchingNotices(),this.timer=setTimeout((function(){e.fetchingNotices()}),3e4)},t.prototype.componentWillUnmount=function(){this.timer&&clearTimeout(this.timer)},t.prototype.getNoticeData=function(){var e=this.state.notices,t=void 0===e?[]:e;if(0===t.length)return{};var a=t.map((function(e){var t=(0,i.default)({},e);if(t.datetime&&(t.datetime=(0,m.default)(e.datetime).fromNow()),t.id&&(t.key=t.id),t.extra&&t.status){var a={todo:"",processing:"blue",urgent:"red",doing:"gold"}[t.status];t.extra=(0,r.default)(s.default,{color:a,style:{marginRight:0}},void 0,t.extra)}return t}));return(0,g.default)(a,"type")},t.prototype.render=function(){var e=this.state,t=e.newNoticeCount,a=e.noticeData,n=e.loading;return(0,r.default)(T,{},void 0,(0,r.default)(v.default,{count:t,onItemClick:this.handleClick,onClear:this.handleNoticeClear,onPopupVisibleChange:this.handleNoticeVisibleChange,onTabChange:this.handleTabChange,loading:n,popupAlign:{offset:[20,-16]}},void 0,(0,r.default)(w,{type:"noticeList",list:a.noticeList||[],title:"\u901a\u77e5",emptyText:"\u4f60\u5df2\u67e5\u770b\u6240\u6709\u901a\u77e5",emptyImage:b.default}),(0,r.default)(w,{type:"messageList",list:a.messageList||[],title:"\u6d88\u606f",emptyText:"\u60a8\u5df2\u8bfb\u5b8c\u6240\u6709\u6d88\u606f",emptyImage:x.default}),(0,r.default)(w,{type:"upcomingList",list:a.upcomingList||[],title:"\u5f85\u529e",emptyText:"\u4f60\u5df2\u5b8c\u6210\u6240\u6709\u5f85\u529e",emptyImage:C.default})))},t}(p.PureComponent),o=function(){var e=this;this.fetchingNotices=function(){(0,y.getNoticeMessage)({status:1}).then((function(t){var a=_.get(t,"data");e.setState({noticeData:a,newNoticeCount:a.total})}))},this.handleNoticeClear=function(t){var a=(e.state.noticeData[t]||[]).map((function(e){return e.messageId}));e.setRead(a)},this.handleNoticeVisibleChange=function(e){},this.handleTabChange=function(){},this.handleClick=function(t,a){"upcomingList"===_.get(a,"type")?e.navTo(t):e.setRead([t.messageId])},this.navTo=function(e){var t=e.resources,a=e.events;"QUOTA"===t&&"APPLIED"===a&&(0,S.navigateTo)(j.operationUrl.applyQuota())},this.setRead=function(t){(0,y.setReadNotice)(t).then((function(){e.fetchingNotices()}))}},n);t.default=E},"./src/components/Notification/NotificationWithIcon.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/antd/es/notification/index.js"));a("./node_modules/antd/es/notification/style/index.js");var o=s(a("./node_modules/prop-types/index.js"));function s(e){return e&&e.__esModule?e:{default:e}}var r={success:"\u6210\u529f",info:"\u4fe1\u606f",warning:"\u8b66\u544a",error:"\u9519\u8bef"},i=function(e,t){n.default[e]({message:r[e],description:t,style:{width:240,marginLeft:"35%"}})};i.propTypes={type:o.default.string,description:o.default.string},t.default=i},"./src/components/Pagination/TabPagination.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TabPaginationDom=void 0;var n=c(a("./node_modules/antd/es/pagination/index.js")),o=c(a("./node_modules/babel-runtime/helpers/jsx.js")),s=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=c(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/pagination/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=t.TabPaginationDom=u.default.div.withConfig({displayName:"TabPagination__TabPaginationDom",componentId:"sc-1xoqtrq-0"})(["text-align:right;right:0;bottom:30px;margin:1.5%;margin-right:0;"]),f=function(e){function t(a){return(0,s.default)(this,t),(0,r.default)(this,e.call(this,a))}return(0,i.default)(t,e),t.prototype.render=function(){return(0,o.default)(p,{},void 0,(0,o.default)(n.default,{showSizeChanger:!1,current:this.props.currentPage,pageSize:this.props.pageSize,total:this.props.total,onChange:this.props.onChange}))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/components/ResourceConfig/ResourceQuota.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ResourceQuotaDom=void 0;var n=g(a("./node_modules/antd/es/row/index.js")),o=g(a("./node_modules/antd/es/input-number/index.js")),s=g(a("./node_modules/antd/es/tooltip/index.js")),r=g(a("./node_modules/antd/es/col/index.js")),i=g(a("./node_modules/babel-runtime/helpers/jsx.js")),d=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=g(a("./node_modules/babel-runtime/helpers/inherits.js")),c=g(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var p=g(a("./node_modules/react/index.js")),f=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./node_modules/react-redux/es/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=c.default.Group,y=m.Form.Item,b=c.default.Button,x=t.ResourceQuotaDom=f.default.div.withConfig({displayName:"ResourceQuota__ResourceQuotaDom",componentId:"sc-15nv65o-0"})(["padding-left:13px;.ant-advanced-search-form .ant-form-item{display:flex;}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:#fff;background:#147bd1;border-color:#147bd1;}.ant-radio-button-wrapper:hover{position:relative;color:#147bd1;}.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{color:#fff;background:#147bd1;border-color:#147bd1;}.resource_data{margin-top:24px;}.ant-col-4{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:16.833333%;}"]),C=(0,i.default)(r.default,{span:3},-1,(0,i.default)(y,{label:"\u914d\u7f6e\u8d44\u6e90"})),j=(0,i.default)(b,{value:"gpu_card"},void 0,"GPU(\u5361)"),S=(0,i.default)(b,{value:"gpu_storage"},void 0,"GPU(\u663e\u5b58)"),I=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.setResourceData=function(e){for(var t=[],a=0;e&&a<e.length;a++){var o=e[a];o.resQuotaConf.gpuType=0===o.resQuotaConf.gpu_card?"gpu_storage":"gpu_card",t.push(o)}e&&0!==e.length||(t=[{profile:"DEV",resQuotaConf:{cpu:0,gpu_card:0,gpu_storage:0,memory:0,storage:0,gpuType:"gpu_card"}},{profile:"PRODUCT",resQuotaConf:{cpu:0,gpu_card:0,gpu_storage:0,memory:0,storage:0,gpuType:"gpu_card"}},{profile:"TEST",resQuotaConf:{cpu:0,gpu_card:0,gpu_storage:0,memory:0,storage:0,gpuType:"gpu_card"}}]);for(var s=function(e){var a=_.findIndex(n.props.availableQuota,(function(a){return a.quotaType==t[e].profile}));t[e].resQuotaConf.max_cpu=n.props.availableQuota[a].quota.cpu+t[e].resQuotaConf.cpu,t[e].resQuotaConf.max_gpu_card=n.props.availableQuota[a].quota.gpu_card+t[e].resQuotaConf.gpu_card,t[e].resQuotaConf.max_gpu_storage=n.props.availableQuota[a].quota.gpu_storage+t[e].resQuotaConf.gpu_storage,t[e].resQuotaConf.max_memory=n.props.availableQuota[a].quota.memory+t[e].resQuotaConf.memory,t[e].resQuotaConf.max_storage=n.props.availableQuota[a].quota.storage+t[e].resQuotaConf.storage},r=0;r<t.length;r++)s(r);return t},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.state.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u8d44\u6e90\u914d\u989d\u4fe1\u606f"}},n.getValBlur=function(e,t,a){for(var o=n.state.modelData,s=0;s<o.length;s++)if(o[s].profile===t){o[s].resQuotaConf[a]=e;break}n.setState({modelData:[].concat(o)})},n.handleAvailableResChange=function(){n.setState((function(e){return{showAvailableRes:!e.showAvailableRes}}))},n.setRadioButtons=function(e){for(var t={},a={DEV:"\u8bad\u7ec3\u73af\u5883",PRODUCT:"\u63a8\u7406\u73af\u5883",TEST:"\u6d4b\u8bd5\u73af\u5883"},n=0;e&&n<e.length;n++)a[e[n].profile]&&(t[e[n].profile]=a[e[n].profile]);return t},n.onChangeRadio=function(e){n.setState({radioValue:e.target.value})},n.getFields=function(e,t,a,d){for(var l={},u=0;n.props.availableQuota&&u<n.props.availableQuota.length;u++)if(n.props.availableQuota[u].quotaType===e){l=n.props.availableQuota[u].quota;break}var c=[{label:"CPU(core)",value:"cpu"},{label:"\u5185\u5b58(GB)",value:"memory"},{label:"\u50a8\u5b58(GB)",value:"storage"},{label:"GPU(\u663e\u5b58)",value:"gpu_storage"},{label:"GPU(\u5361)",value:"gpu_card"}],p=n.props.form.getFieldDecorator,f=[];"all"===d?f.push((0,i.default)(r.default,{span:3},-1,(0,i.default)(y,{label:t}))):f.push(C);for(var m=function(t){var d="create"===n.props.viewType?l[c[t].value]:a["max_"+c[t].value];"gpu_storage"!==c[t].value&&"gpu_card"!==c[t].value&&f.push((0,i.default)(r.default,{style:{paddingLeft:0,marginLeft:0===t?-40:0},span:4},t,(0,i.default)(y,{label:""+c[t].label},void 0,(0,i.default)(s.default,{title:c[t].label+"\u5269\u4f59\u8d44\u6e90"+d},void 0,p(c[t].value+"-"+_.uniqueId(),{rules:[{required:n.props.required,message:"\u586b\u5199"+c[t]}],initialValue:a[c[t].value]})((0,i.default)(o.default,{style:{width:60},disabled:"view"===n.props.viewType,min:0,max:d,onChange:function(a){n.getValBlur(a,e,c[t].value)}}))))))},h=0;h<c.length;h++)m(h);var g="gpu_storage"===a.gpuType?3:4,b="create"===n.props.viewType?l[c[g].value]:a["max_"+c[g].value];return f.push((0,i.default)(r.default,{style:{display:"flex",paddingLeft:0},span:7},void 0,(0,i.default)(y,{},void 0,(0,i.default)(v,{value:a.gpuType,onChange:function(t){n.getValBlur(t.target.value,e,"gpuType")}},void 0,j,S)),(0,i.default)(y,{},void 0,(0,i.default)(s.default,{title:c[g].label+"\u5269\u4f59\u8d44\u6e90"+b},void 0,p(c[g].value+"-"+_.uniqueId(),{rules:[{required:n.props.required,message:"\u586b\u5199"+c[g]}],initialValue:a[c[g].value]})((0,i.default)(o.default,{style:{marginLeft:16,width:60},disabled:"view"===n.props.viewType,min:0,max:b,onChange:function(t){n.getValBlur(t,e,c[g].value)}})))))),f};var u=n.props.setValidateFunc;return _.isFunction(u)&&u("resourceQuota",n.validateFun),n.resourceData=n.setResourceData(a.applicationSetting),n.state={radioValue:"all",radioButtons:[],modelData:n.resourceData},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.radioValue,a=this.setRadioButtons(this.resourceData);return(0,i.default)(x,{},void 0,(0,i.default)("div",{},void 0,(0,i.default)("span",{style:{marginRight:8,color:"rgba(0, 0, 0, 0.85)"}},void 0,"\u8d44\u6e90\u73af\u5883:"),(0,i.default)(v,{value:t,buttonStyle:"solid",onChange:this.onChangeRadio},void 0,(0,i.default)(b,{style:{width:150,textAlign:"center"},value:"all"},void 0,"\u5168\u90e8"),Object.keys(a).map((function(e){return(0,i.default)(b,{style:{width:150,textAlign:"center"},value:e},e,a[e])})))),(0,i.default)(m.Form,{className:"ant-advanced-search-form resource_data"},void 0,this.state.modelData&&this.state.modelData.map((function(o,s){return"all"!==t?t===o.profile?(0,i.default)(n.default,{gutter:24},s,e.getFields(o.profile,a[o.profile],o.resQuotaConf,t)):null:(0,i.default)(n.default,{gutter:24},s,e.getFields(o.profile,a[o.profile],o.resQuotaConf,t))}))))},t}(p.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(m.Form.create()(I))},"./src/components/Row/RowTitle.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.RowTitleDom=void 0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=(u(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),l=u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.RowTitleDom=l.default.div.withConfig({displayName:"RowTitle__RowTitleDom",componentId:"sc-6yy9j3-0"})(["text-align:center;.titleVal{width:100%;display:inline-block;font-size:12px;color:#1f2d3d;}.titleLabel{display:inline-block;font-size:12px;color:#b8b8b8;line-height:16px;}"]),p=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(c,{},void 0,(0,n.default)("span",{style:void 0!==this.props.titleLabel?{padding:"0px"}:{},className:"titleVal"},void 0,this.props.titleVal),(0,n.default)("span",{style:void 0!==this.props.titleLabel?{padding:"0px"}:{},className:this.props.LabelColour?"titleVal":"titleLabel"},void 0,""===this.props.titleLabel||void 0===this.props.titleLabel||null===this.props.titleLabel?"-":this.props.titleLabel))},t}(i.default.Component);t.default=(0,d.connect)((function(){return{}}))(p)},"./src/components/Slider/SliderRatio.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.SliderPanel=void 0;var n=p(a("./node_modules/antd/es/slider/index.js")),o=p(a("./node_modules/babel-runtime/helpers/extends.js")),s=p(a("./node_modules/babel-runtime/helpers/jsx.js")),r=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/slider/style/index.js");var l=p(a("./node_modules/react/index.js")),u=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=t.SliderPanel=u.default.div.withConfig({displayName:"SliderRatio__SliderPanel",componentId:"sc-1vrrb3m-0"})(["height:auto;max-height:216px;width:auto;h1{font-size:12px;color:#475669;padding-bottom:30px;}.titleLaterStyle{font-size:12px;color:#a2b0c4;margin-top:-35px;width:100px;text-align:left;margin-left:30%;}.titleBeforeStyle{font-size:12px;color:#475669;margin-top:16.5px;}"]),m=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.handleChange=function(e){n.props.onChange(e,n.props.moduleType)},n.state={};var o=void 0!==n.props.max?n.props.max:100,d=void 0!==n.props.min?n.props.min:0,l=void 0!==n.props.sliderTitleLater?n.props.sliderTitleLater:d,u=void 0!==n.props.sliderTitleBefore?n.props.sliderTitleBefore:o;return n.marks={0:{style:{color:"#f50"},label:(0,s.default)("div",{},void 0,(0,s.default)("div",{className:"titleLaterStyle"},void 0,l),(0,s.default)("div",{className:"titleBeforeStyle"},void 0,d))},10:"10",20:"20",30:"30",40:"40",50:"50",60:"60",70:"70",80:"80",90:"90",100:{style:{color:"#f50"},label:(0,s.default)("div",{},void 0,(0,s.default)("div",{className:"titleLaterStyle"},void 0,u),(0,s.default)("div",{className:"titleBeforeStyle"},void 0,o))}},n}return(0,d.default)(t,e),t.prototype.render=function(){return(0,s.default)(f,{style:(0,o.default)({},this.props.bodyStyle)},void 0,(0,s.default)("h1",{},void 0,this.props.title),(0,s.default)(n.default,{disabled:this.props.disabled,onChange:this.handleChange,marks:void 0!==this.props.marks?this.props.marks:this.marks,defaultValue:this.props.defaultValue,max:void 0!==this.props.max?this.props.max:100,min:void 0!==this.props.min?this.props.min:0}))},t}(l.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(m)},"./src/components/ToolBar/GlobalBadge.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.BadgeDom=void 0;var n=x(a("./node_modules/antd/es/badge/index.js")),o=x(a("./node_modules/antd/es/popover/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/antd/es/modal/index.js")),i=x(a("./node_modules/antd/es/message/index.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/badge/style/index.js"),a("./node_modules/antd/es/popover/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=x(a("./node_modules/react/index.js")),p=x(a("./node_modules/lodash/lodash.js")),f=a("./node_modules/react-redux/es/index.js"),m=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./src/components/Icon/index.js"),g=a("./src/routes/routeHelper.jsx"),v=a("./src/utils/history.js"),_=(x(a("./node_modules/prop-types/index.js")),a("./src/components/ToolBar/ToolBar.jsx")),y=a("./src/redux/selectors/affiche.js"),b=a("./src/redux/reducers/affiche.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=m.default.div.withConfig({displayName:"GlobalBadge__NoDataWrapper",componentId:"sc-160z3ku-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:200px;height:80px;span{font-size:12px;color:#a2b0c4;}"]),j=m.default.div.withConfig({displayName:"GlobalBadge__DetailsDom",componentId:"sc-160z3ku-1"})(["display:flex;text-align:right;align-items:center;margin-bottom:2.7%;"]),S=t.BadgeDom=m.default.div.withConfig({displayName:"GlobalBadge__BadgeDom",componentId:"sc-160z3ku-2"})(["width:250px;min-height:200px;max-height:350px;.clear{float:left;margin-left:6%;}.queryAll{float:right;margin-right:6%;}ul{overflow-y:auto;height:-webkit-fill-available;width:265px;padding-left:1px;margin-bottom:20px;list-style:none;padding-top:10px;li{span{display:inline-block;}}span{font-size:12px;color:#475669;letter-spacing:0.43px;line-height:18px;}}.headline{border-bottom:0.5px solid #ccd5e0;width:113%;float:left;text-align:center;background:#f5f6f9;margin-left:-6.3%;margin-top:-4.8%;padding:9px 0px 0px 0px;height:35px;p{cursor:pointer;font-size:12px;color:#475669;letter-spacing:0.88px;text-align:center;&:hover{font-size:14px;color:#1f2d3d;font-weight:600;letter-spacing:0.88px;text-align:center;}&.active{font-size:14px;color:#1f2d3d;font-weight:600;letter-spacing:0.88px;text-align:center;}}}.bottomline{border:0.5px solid #ccd5e0;width:100%;position:absolute;bottom:0px;text-align:center;background:#f5f6f9;margin-left:-5.7%;margin-top:-4.8%;padding:9px 0px 0px 0px;height:35px;p{cursor:pointer;font-size:12px;color:#475669;letter-spacing:0.88px;text-align:center;&:hover{font-size:12px;color:#475669;letter-spacing:0.88px;text-align:center;color:#52b3f5;}}}"]),I=(0,s.default)(C,{},void 0,(0,s.default)(h.IconSvg,{type:"find",size:60}),(0,s.default)("span",{},void 0,"\u6682\u65e0\u6570\u636e")),T=(0,s.default)(h.IconSvg,{type:"belle"}),w=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.queryAfficheMessageData=function(){},n.onClickHead=function(e){n.setState({type:e})},n.onClickMes=function(e){n.setState({data:e,modalVisible:!0}),n.props.dispatch(b.afficheActions.patchMarkReadRequest({afficheId:e.remindId}))},n.handleCancel=function(){n.setState({modalVisible:!1})},n.onClickQuery=function(){(0,v.navigateTo)(g.sysManageUrl.messageAffiche(n.state.type))},n.onClickClear=function(){"affiche"===n.state.type?n.props.dispatch(b.afficheActions.patchMarkAllReadRequest()):i.default.warning("\u6b63\u5728\u5f00\u4e2d\uff0c\u5c3d\u8bf7\u671f\u5f85\uff01")},n.getIsReadData=function(e){for(var t=[],a=0;a<e.length;a++)-1===e[a].isRead&&t.push(e[a]);return t},n.callVisible=function(){n.setState({modalVisible:!1})},n.state={type:"affiche",_this:n,data:null,modalVisible:!1},n.queryAfficheMessageData(),n}return(0,u.default)(t,e),t.prototype.componentWillUnmount=function(){this.props.dispatch(b.afficheActions.stopAfficheMessageData())},t.getDerivedStateFromProps=function(e,t){return 0!==e.markAllReadCode&&(1===e.markAllReadCode?(e.dispatch(b.afficheActions.resetPatchMarkAllRead()),t._this.queryAfficheMessageData()):r.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u6e05\u7a7a\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"})),0!==e.markReadCode&&1===e.markReadCode&&(e.dispatch(b.afficheActions.resetPatchMarkRead()),t._this.queryAfficheMessageData()),null},t.prototype.render=function(){var e=this,t=0!==this.props.afficheMesData.size?this.props.afficheMesData.toJS():null,a=p.default.get(t,"affiche.unread")+p.default.get(t,"message.unread"),i=null===t?[]:"affiche"===this.state.type?this.getIsReadData(t.affiche.list):this.getIsReadData(t.message.list),d=(0,s.default)(S,{},void 0,(0,s.default)("div",{className:"headline"},void 0,(0,s.default)("p",{onClick:function(){return e.onClickHead("affiche")},className:"affiche"===this.state.type?"titles active":"titles",style:{float:"left",width:"49%"}},void 0,"\u516c\u544a(",p.default.get(t,"affiche.unread"),")"),(0,s.default)("div",{style:{marginTop:5,float:"left",width:1,height:10,background:"#A2B0C4"}}),(0,s.default)("span",{style:{disabled:"disabled"}},void 0,"\u6d88\u606f")),(0,s.default)("ul",{},void 0,i.map((function(t){return(0,s.default)("li",{style:{display:-1===t.isRead?"":"none"}},t.remindId,(0,s.default)("span",{style:{cursor:"pointer",width:"100%"},onClick:function(){return e.onClickMes(t)},title:t.remindMsg},void 0,t.remindMsg.length>30?t.remindMsg.substring(0,30)+"....":t.remindMsg),(0,s.default)("span",{style:{color:"#A2B0C4",marginTop:5,marginBottom:10}},void 0,t.remindTime))})),0===i.length&&(0,s.default)("div",{style:{fontSize:14,paddingBottom:"5%",textAlign:"center"}},void 0,I)),(0,s.default)("div",{className:"bottomline"},void 0,(0,s.default)("p",{className:"clear",onClick:this.onClickClear},void 0,"\u6e05\u7a7a"),(0,s.default)("p",{onClick:this.onClickQuery,className:"queryAll"},void 0,"\u67e5\u770b\u5168\u90e8","affiche"===this.state.type?"\u516c\u544a":"\u6d88\u606f")));return(0,s.default)(_.ToolBarItem,{title:"\u7cfb\u7edf\u516c\u544a",style:{marginRight:15}},void 0,null!==this.state.data?(0,s.default)(r.default,{keyboard:!1,style:{padding:"0px",height:""},title:null!==this.state.data?this.state.data.afficheTitle:"",onCancel:this.handleCancel,visible:this.state.modalVisible,width:1e3,destroyOnClose:!0,footer:null,closable:!0,maskClosable:!0},void 0,(0,s.default)(j,{className:"search-bar"},void 0,(0,s.default)("div",{style:{width:"100%",textAlign:"left"},dangerouslySetInnerHTML:{__html:this.state.data.afficheContent}}))):"",(0,s.default)(o.default,{placement:"bottomRight",trigger:"hover",content:d},void 0,(0,s.default)(n.default,{count:null!==t?a:0,offset:[15,0],overflowCount:99},void 0,T)))},t}(c.default.PureComponent);t.default=(0,f.connect)((function(e){return{afficheMesData:(0,y.selectAfficheMesData)(e),markAllReadCode:(0,y.selectMarkAllReadCode)(e),markReadCode:(0,y.selectMarkReadCode)(e)}}))(w)},"./src/components/ToolBar/GlobalHelp.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),a("./src/components/Icon/index.js")),s=a("./src/components/ToolBar/ToolBar.jsx");function r(e){return e&&e.__esModule?e:{default:e}}var i=(0,n.default)(s.ToolBarItem,{title:"\u7cfb\u7edf\u5e2e\u52a9(3.0.0)"},void 0,(0,n.default)(o.IconSvg,{type:"help1"}));t.default=function(){return i}},"./src/components/ToolBar/GlobalNotice.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=a("./src/components/ToolBar/ToolBar.jsx"),l=u(a("./src/components/Notification/Notification.jsx"));function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,n.default)(d.ToolBarItem,{title:"\u7cfb\u7edf\u6d88\u606f\u63d0\u9192"},void 0,(0,n.default)(l.default,{})),p=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){return c},t}(i.default.PureComponent);p.defaultProps={},t.default=p},"./src/components/ToolBar/GlobalSearch.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./src/components/Icon/index.js"),u=p(a("./node_modules/lodash/lodash.js")),c=a("./src/components/ToolBar/ToolBar.jsx");function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,d.default)(c.ToolBarItem).withConfig({displayName:"GlobalSearch__ToolBarItemSearch",componentId:"rafqgd-0"})(["transition:all 0.3s;input{display:inline-block;vertical-align:middle;width:1px;height:30px;border:none;transition:width 0.2s,padding 0.2s;cursor:pointer;background-color:transparent;outline:0;overflow:visible;box-sizing:border-box;box-shadow:none;color:#fff;&.show{padding-left:10px;background-color:rgb(255,255,255,0.1);cursor:text;border-radius:0.25rem;margin-left:5px;width:200px;}}"]),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.show=function(){n.state.show||n.setState({show:!0})},n.handleFocuss=function(e){e.target.select()},n.handleBlurs=function(e){var t=u.default.trim(e.target.value);t.length>0?n.props.onSearch(t):n.setState({show:!1})},n.state={show:!1},n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(f,{title:"\u7cfb\u7edf\u5168\u5c40\u641c\u7d22"},void 0,(0,n.default)(l.IconSvg,{type:"search",onClick:this.show,color:"primary"}),i.default.createElement("input",{type:"text",ref:function(e){return e},className:this.state.show?"show":"",placeholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",onFocus:this.handleFocuss,onBlur:this.handleBlurs,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\ToolBar\\GlobalSearch.jsx",lineNumber:69}}))},t}(i.default.Component);m.defaultProps={onSearch:u.default.noop},t.default=m},"./src/components/ToolBar/LoginInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o=y(a("./node_modules/antd/es/avatar/index.js")),s=y(a("./node_modules/antd/es/badge/index.js")),r=y(a("./node_modules/antd/es/dropdown/index.js")),i=y(a("./node_modules/babel-runtime/helpers/jsx.js")),d=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=y(a("./node_modules/babel-runtime/helpers/inherits.js")),c=y(a("./node_modules/antd/es/menu/index.js"));a("./node_modules/antd/es/avatar/style/index.js"),a("./node_modules/antd/es/badge/style/index.js"),a("./node_modules/antd/es/dropdown/style/index.js"),a("./node_modules/antd/es/menu/style/index.js");var p=y(a("./node_modules/react/index.js")),f=a("./src/components/Icon/index.js"),m=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./src/utils/authPermit.js"),g=y(a("./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js")),v=y(a("./src/styles/images/user.png")),_=a("./node_modules/@ant-design/icons/es/index.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=c.default.Item,x=c.default.Divider,C=(0,i.default)(x,{}),j=(0,i.default)(x,{}),S=(0,g.default)(n=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.toggleDetailPanel=function(){n.setState({showDetail:!n.state.showDetail})},n.handleClickOutside=function(){n.setState({showDetail:!1})},n.state={showDetail:!1},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=(0,i.default)(c.default,{style:{marginTop:19},mode:"vertical",selectedKeys:this.state.selectedKeys},void 0,(0,i.default)(b,{style:{lineHeight:"30px",padding:"0px 10px",width:"100%"}},"0",(0,i.default)("a",{style:{padding:"5px 12px"},href:"javascript:;"},void 0,(0,i.default)(f.IconSvg,{style:{marginBottom:3},type:"user"}),(0,h.getUser)().userName)),C,(0,i.default)(b,{style:{lineHeight:"30px",padding:"0px 10px",width:"100%"}},"1",(0,i.default)("a",{style:{padding:"5px 12px"},onClick:this.props.updatePawClick,href:"javascript:;"},void 0,(0,i.default)(f.IconSvg,{style:{marginBottom:3},type:"updatePws"}),"\u4fee\u6539\u5bc6\u7801")),(0,i.default)(b,{style:{lineHeight:"30px",padding:"0px 10px",width:"100%"}},"1",(0,i.default)("a",{style:{padding:"5px 12px"},onClick:this.props.bangdingGit,href:"javascript:;"},void 0,(0,i.default)(_.GithubOutlined,{style:{marginBottom:3,marginRight:8,fontSize:14}}),"\u7ed1\u5b9aGit")),j,(0,i.default)(b,{style:{lineHeight:"30px",padding:"0px 10px",width:"100%"}},"3",(0,i.default)("a",{href:"javascript:;",onClick:this.props.logout,style:{padding:"5px 12px"}},void 0,(0,i.default)(f.IconSvg,{style:{marginBottom:3},type:"signout"}),"\u9000\u51fa\u767b\u5f55")));return(0,i.default)(r.default,{className:"dropdown-wrapper",placement:"bottomLeft",trigger:["click"],overlay:e},void 0,(0,i.default)("a",{style:{display:"flex",height:60,justifyContent:"flex-end",alignItems:"center"},className:"ant-dropdown-link",onClick:function(e){return e.preventDefault()}},void 0,(0,i.default)(s.default,{},void 0,(0,i.default)(o.default,{src:v.default,style:{backgroundColor:"#b0b0b0"},size:32}))))},t}(p.default.PureComponent))||n;t.default=(0,m.connect)((function(){return{}}))(S)},"./src/components/ToolBar/ToolBar.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ToolBarItem=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=s.default.ul.withConfig({displayName:"ToolBar",componentId:"sc-1euuzpl-0"})(["float:right;margin:0;padding:0 15px 0 0;list-style:none;"]);t.ToolBarItem=s.default.li.withConfig({displayName:"ToolBar__ToolBarItem",componentId:"sc-1euuzpl-1"})([".ant-badge-count{position:absolute;transform:translateX(-50%);top:-10px;height:15px;margin-left:5px;border-radius:10px;min-width:15px;background:#f5222d;color:#fff;line-height:15px;text-align:center;padding:0 3px;font-size:px;font-weight:normal;white-space:nowrap;transform-origin:-10% center;box-shadow:0 0 0 1px #fff;}.ant-badge{font-family:'Microsoft Yahei','STXihei','sans-serif';font-size:15px;line-height:1.5;color:#a2b0c4;box-sizing:border-box;margin:0;padding:0;list-style:none;position:relative;display:inline-block;line-height:1;vertical-align:middle;}float:left;padding:0 16px;cursor:pointer;position:relative;line-height:60px;&:hover{background:",";.svg-icon{fill:#fff;}}"],(function(e){return e.theme.comp.mainnav.active_bg}));t.default=r},"./src/components/ToolBar/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./src/components/ToolBar/GlobalSearch.jsx")),o=l(a("./src/components/ToolBar/GlobalNotice.jsx")),s=l(a("./src/components/ToolBar/GlobalHelp.jsx")),r=l(a("./src/components/ToolBar/GlobalBadge.jsx")),i=l(a("./src/components/ToolBar/LoginInfo.jsx")),d=l(a("./src/components/ToolBar/ToolBar.jsx"));function l(e){return e&&e.__esModule?e:{default:e}}d.default.GlobalSearch=n.default,d.default.GlobalNotice=o.default,d.default.GlobalHelp=s.default,d.default.GlobalBadge=r.default,d.default.LoginInfo=i.default,t.default=d.default},"./src/components/Transfer/TransferView.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=void 0;var n=c(a("./node_modules/antd/es/button/index.js")),o=c(a("./node_modules/antd/es/transfer/index.js")),s=c(a("./node_modules/babel-runtime/helpers/jsx.js")),r=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=c(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/transfer/style/index.js");var l=c(a("./node_modules/react/index.js")),u=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")));function c(e){return e&&e.__esModule?e:{default:e}}var p=u.default.div.withConfig({displayName:"TransferView__TransferDom",componentId:"sc-1f3veqe-0"})([".ant-btn.ant-btn-sm{padding:0px;}"]),f=t.ButtonDom=u.default.div.withConfig({displayName:"TransferView__ButtonDom",componentId:"sc-1f3veqe-1"})(["margin-top:10px;height:28px;text-align:right;margin-right:2%;"]),m=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.filterOption=function(e,t){return t.description.indexOf(e)>-1},n.handleChange=function(e){n.props.handleChange(e,"select")},n.renderData=function(e){return e.userName?e[n.props.title]+"("+e.userId+")":e[n.props.title]},n}return(0,d.default)(t,e),t.prototype.render=function(){for(var e=this,t=this.props.dataSource,a=0;a<t.length;a++)t[a].key=t[a][this.props.dataKey],t[a].description="description of content"+t[a][this.props.title];return(0,s.default)(p,{style:void 0===this.props.pstyle?{marginLeft:"3%"}:this.props.pstyle},void 0,(0,s.default)(o.default,{listStyle:this.props.listStyle,notFoundContent:"\u5217\u8868\u4e3a\u7a7a",searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",titles:["\u6e90\u5217\u8868","\u76ee\u7684\u5217\u8868"],dataSource:t,showSearch:!0,filterOption:this.filterOption,targetKeys:this.props.targetKeys,onChange:this.handleChange,render:function(t){return e.renderData(t)}}),(0,s.default)(f,{style:{display:void 0===this.props.confirmLoading?"none":""}},void 0,(0,s.default)(n.default,{onClick:function(){return e.props.handleChange(e.props.targetKeys,"submit")},loading:this.props.confirmLoading,style:{display:"view"===this.props.viewType?"none":"",marginLeft:"3.1%"},type:"primary"},void 0,"\u786e\u5b9a\u4fdd\u5b58")))},t}(l.default.PureComponent);t.default=m},"./src/components/User/SelectUser.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.HeaderDom=t.UserDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=p(a("./src/redux/services/sysManager/userManager.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=i.default.Option,m=t.UserDom=l.default.div.withConfig({displayName:"SelectUser__UserDom",componentId:"sc-1y3er84-0"})(["width:400px;"]),h=t.HeaderDom=l.default.div.withConfig({displayName:"SelectUser__HeaderDom",componentId:"sc-1y3er84-1"})(["h1{font-size:20px;}span{margin-top:16px;}margin-bottom:16px;"]),g=(0,n.default)(h,{},void 0,(0,n.default)("h1",{},void 0,"\u6dfb\u52a0\u7528\u6237\u6210\u5458"),(0,n.default)("span",{},void 0,"\u53ef\u4ee5\u9009\u62e9\u5355\u4e2a\u6216\u591a\u4e2a\u7528\u6237\u6210\u5458\u4fe1\u606f\u3002\u4e5f\u53ef\u4ee5\u6e05\u9664\u6240\u6709\u7528\u6237\u6210\u5458\u7684\u9009\u62e9\uff0c\u4e0d\u5bf9\u9009\u62e9\u7528\u6237\u6210\u5458\u6570\u91cf\u505a\u9650\u5236\uff01")),v=(0,n.default)("span",{},void 0,"\u9009\u62e9\u6210\u5458\uff1a"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.onRef(n),n.fetchData()},n.fetchData=function(){c.default.getUsersByTenant({userName:"",sortField:"CREATETIME",filterPlatformAdmin:!0,filterTenantAdmin:!0}).then((function(e){n.setState({userList:e.data})})).catch((function(e){n.setState({userList:[]}),message.error(e.message)}))},n.onChangeRole=function(e){n.selectUserIds=e},n.submitModalOk=function(){n.props.setUserIds(n.selectUserIds,n.state.userList)},n.state={userList:[]},n.selectUserIds=[],n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.userList;return(0,n.default)(m,{},void 0,g,(0,n.default)("div",{},void 0,v,(0,n.default)(i.default,{defaultValue:this.props.userIds,mode:"multiple",placeholder:"\u6279\u91cf\u9009\u62e9\u7528\u6237\u6210\u5458",optionFilterProp:"children",style:{width:"340px"},filterOption:function(e,t){return(_.get(t,"props.title","")||"").includes(e)||(_.get(t,"key","")||"").includes(e)},onChange:function(t){e.onChangeRole(t)}},void 0,t.map((function(e){return(0,n.default)(f,{title:e.userName,value:e.userId},e.userId,e.userName," ( ",e.userId," )( ",e.orgName?e.orgName:"\u65e0"," )")})))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(y)},"./src/components/auth/AuthWrapper.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=d(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=d(a("./node_modules/babel-runtime/helpers/inherits.js"));t.isAuth=function(e){return(0,i.getButtonPermits)().includes(e)};var r=d(a("./node_modules/react/index.js")),i=(d(a("./node_modules/prop-types/index.js")),a("./src/utils/authPermit.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(a){return(0,n.default)(this,t),(0,o.default)(this,e.call(this,a))}return(0,s.default)(t,e),t.prototype.render=function(){var e=(0,i.getButtonPermits)(),t=this.props,a=t.permissionId,n=t.children;return e.includes(a)?r.default.Children.only(n):null},t}(r.default.PureComponent);t.default=l},"./src/components/auth/funAuth.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=d(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=d(a("./node_modules/babel-runtime/helpers/inherits.js")),r=d(a("./node_modules/react/index.js")),i=(d(a("./node_modules/prop-types/index.js")),a("./src/utils/authPermit.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(a){(0,n.default)(this,t);var s=(0,o.default)(this,e.call(this,a));return s.hasDataPermissions=function(){var e=2,t=s.props.ownership,a={_auth:"authScope",_group:"groupScope",_tenant:"tenantScope"};if(t&&t._owner){if(1!==t._owner){var n=[],o={};_.forOwn(t,(function(e,t){1===e&&"_owner"!==t&&(o[t]=e)})),_.forOwn(o,(function(e,t){n.push(dataScope[a[t]])})),e=(e=Math.max.apply(Math,n))>=parseInt(s.permiScope)?1:-1}}else e=s.permiScope;return e},s.hasPermissions=function(){var e=s,t=!1,a=(0,i.getPermits)(),n=s.props.permissions;return a&&a.find((function(a){_.forEach(n,(function(n){-1!==a.indexOf(n)&&(t=!0,e.permiScope=a.split(":")[2])}))})),t},s.permiScope=0,s}return(0,s.default)(t,e),t.prototype.render=function(){return r.default.Children.map(this.props.children,(function(e){return e&&r.default.cloneElement(e)}))},t}(r.default.PureComponent);t.default=l},"./src/components/auth/optionAuth.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.hasOption=t.getOneOption=void 0;var n=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=l(a("./node_modules/babel-runtime/helpers/inherits.js")),r=l(a("./node_modules/react/index.js")),i=(l(a("./node_modules/prop-types/index.js")),a("./src/utils/authPermit.js")),d=l(a("./node_modules/lodash/lodash.js"));function l(e){return e&&e.__esModule?e:{default:e}}t.getOneOption=function(e,t){var a="",n=(0,i.getSwitchInfo)(),o=d.default.sortBy(t,(function(e){return e.enumSortIndex}));return n&&d.default.forOwn(n,(function(t,n){if(n===e&&t.length>0){var s=d.default.sortBy(t,(function(e){return e}));if(o&&o.length){for(var r=0;r<o.length;r++)if(o[r].value+""===s[0]){a=o[r].code;break}}else a=t[0]}})),a},t.hasOption=function(e,t){var a=!1,n=(0,i.getSwitchInfo)();return n?d.default.forOwn(n,(function(n,o){if(o===e)for(var s=0;s<n.length;s++)t+""===n[s]&&(a=!0)})):a=!0,a};var u=function(e){function t(a){(0,n.default)(this,t);var s=(0,o.default)(this,e.call(this,a));return s.hasFeatureAuths=function(){var e=!1,t=(0,i.getSwitchInfo)(),a=s.props.optionId,n=s.props.code;return t?d.default.forOwn(t,(function(t,o){if(o===a)for(var s=0;s<t.length;s++)n===t[s]&&(e=!0)})):e=!0,e},s}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.hasFeatureAuths();return e?r.default.Children.map(this.props.children,(function(t){return r.default.cloneElement(t,{onClick:function(){t.props.onClick&&e&&t.props.onClick()},style:t.props.style})})):null},t}(r.default.PureComponent);t.default=u},"./src/components/auth/switchAuth.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.hasFeatureAuths=void 0;var n=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=l(a("./node_modules/babel-runtime/helpers/inherits.js")),r=l(a("./node_modules/react/index.js")),i=(l(a("./node_modules/prop-types/index.js")),l(a("./node_modules/lodash/lodash.js"))),d=a("./src/utils/authPermit.js");function l(e){return e&&e.__esModule?e:{default:e}}var u=t.hasFeatureAuths=function(e){var t=!0,a=(0,d.getSwitchInfo)();return a&&i.default.forOwn(a,(function(a,n){n===e&&"-1"===a&&(t=!1)})),t},c=function(e){function t(a){return(0,n.default)(this,t),(0,o.default)(this,e.call(this,a))}return(0,s.default)(t,e),t.prototype.render=function(){var e=u(this.props.optionId),t=this.props.onClickBolean;return e||t?r.default.Children.map(this.props.children,(function(t){return r.default.cloneElement(t,{onClick:function(){t.props.onClick&&e&&t.props.onClick()},style:t.props.style})})):null},t}(r.default.PureComponent);t.default=c},"./src/components/auth/textAuth.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.hasText=void 0;var n=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=l(a("./node_modules/babel-runtime/helpers/inherits.js")),r=l(a("./node_modules/react/index.js")),i=(l(a("./node_modules/prop-types/index.js")),l(a("./node_modules/lodash/lodash.js"))),d=a("./src/utils/authPermit.js");function l(e){return e&&e.__esModule?e:{default:e}}t.hasText=function(e){var t="",a=(0,d.getSwitchInfo)();return a&&i.default.forOwn(a,(function(a,n){n===e&&""!==a&&(t=a)})),t};var u=function(e){function t(a){(0,n.default)(this,t);var s=(0,o.default)(this,e.call(this,a));return s.hasFeatureAuths=function(){var e="",t=(0,d.getSwitchInfo)(),a=s.props.optionId;return t&&i.default.forOwn(t,(function(t,n){n===a&&""!==t&&(e=t)})),e},s}return(0,s.default)(t,e),t.prototype.render=function(){if(this.hasFeatureAuths())return"text"!==this.props.textType?r.default.Children.map(this.props.children,(function(e){return r.default.cloneElement(e,{style:e.props.style})})):""},t}(r.default.PureComponent);t.default=u},"./src/components/auth/viewModule.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/jsx.js")),o=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=l(a("./node_modules/babel-runtime/helpers/inherits.js")),i=l(a("./node_modules/react/index.js")),d=(l(a("./node_modules/prop-types/index.js")),l(a("./node_modules/lodash/lodash.js")));function l(e){return e&&e.__esModule?e:{default:e}}var u=l(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"viewModule__ViewModuleBody",componentId:"ylail-0"})(["padding:10px;padding-left:0px;.titleSpan{font-size:13px;margin-right:5px;display:inline-block;min-width:60px;font-weight:700;}.paramTitle{font-size:13px;margin-right:5px;display:inline-block;min-width:60px;font-weight:700;}"]),c=function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));return r.showSpan=function(e,t,a,o,s,r,i,l){var c="--";if(t&&t.length>0)if(a&&o){var p=d.default.findIndex(t,(function(t){return t[a]?t[a]==e:-1}));c=p>=0?t[p][o]:e}else{var f=d.default.findIndex(t,(function(t){return t?t==e:-1}));c=f>=0?t[f]:e}else c=e;return(0,n.default)(u,{},void 0,s&&(0,n.default)("span",{className:"titleSpan"},void 0,s,"\uff1a"),(0,n.default)("span",{},void 0,"undefined"===c?"--":c,!i&&(0,n.default)("span",{style:{marginLeft:5}},void 0,r)),i&&(0,n.default)("span",{className:"paramTitle",style:{marginLeft:l||20}},void 0,i,"\uff1a"),i&&r&&(0,n.default)("span",{},void 0,"undefined"===r?"--":r))},r}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.viewMode,a=e.data,n=e.selectArray,o=e.arrayIdKey,s=e.arrayIdValue,r=e.title,d=e.param,l=e.paramTitle,u=e.paramLeft;return t?this.showSpan(a,n,o,s,r,d,l,u):i.default.Children.map(this.props.children,(function(e){return i.default.cloneElement(e)}))},t}(i.default.PureComponent);t.default=c},"./src/components/button/GhostButton.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/extends.js")),o=c(a("./node_modules/babel-runtime/helpers/jsx.js")),s=c(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=c(a("./node_modules/antd/es/button/index.js"));a("./node_modules/antd/es/button/style/index.js");var i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=c(a("./node_modules/lodash/lodash.js")),u=(a("./node_modules/prop-types/index.js"),a("./src/components/Icon/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p={SHARES:"#147BD1",LOOK:"#8D9AAD",CLOESE:"#fa7278",STOP:"#fa7278",DELETE:"#fa7278",CANCELEXEC:"#fa7278",EXECUTE:"#00CF9B",EDIT:"#52B3F6",COPY:"#52B3F6",VIEW:"#878B96",SELECT:"#47B2FB",EXPORT:"#47B2FB",OUT:"#47B2FB",START:"#147BD1",REASSIGN:"#00D2A9",EXTEND:"#00D2A9",IMPOWER:"#147BD1",PUBLISH:"#00CF9B",RESTART:"#47B2FB",UPGRADE:"#47B2FB",CONFIG:"#47B2FB",UPONLINE:"#47B2FB"},f=(0,d.default)(r.default).withConfig({displayName:"GhostButton__ButtonGhost",componentId:"sc-1stavy1-0"})(["border-color:"," !important;background:#fff !important;height:","px !important;color:"," !important;padding:"," !important;font-size:"," !important;display:flex;align-items:center;justify-content:center;.svg-icon{fill:"," !important;}&:hover:not(:disabled){color:#fff !important;background:"," !important;.svg-icon{fill:#fff !important;}}"],(function(e){var t=e.disabled,a=e.action;return t?"rgb(160, 160, 160)":p[a]}),(function(e){return"small"===e.btnType?24:32}),(function(e){var t=e.disabled,a=e.action;return t?"rgb(160, 160, 160)":p[a]}),(function(e){return"small"===e.btnType?"0 8px":"0 16px"}),(function(e){return"small"===e.btnType?"12px":"14px"}),(function(e){var t=e.disabled,a=e.action;return t?"rgb(160, 160, 160)":p[a]}),(function(e){var t=e.disabled,a=e.action;return t?"rgba(0, 0, 0, 0.1)":p[a]}));t.default=function(e){var t=e.disabled,a=e.action,r=e.txt,d=e.btnType,c=e.onClick,p=e.color,m=(0,s.default)(e,["disabled","action","txt","btnType","onClick","color"]);return i.default.createElement(f,(0,n.default)({disabled:void 0!==t?t:"",ghost:!0,type:"primary",action:a,btnType:d,onClick:c},m,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\button\\GhostButton.jsx",lineNumber:53}}),(0,o.default)(u.IconSvg,{color:p,type:l.default.toLower(a),size:"small"===d?12:14,marginRight:4}),r)}},"./src/components/button/IconButton.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/extends.js")),o=c(a("./node_modules/babel-runtime/helpers/jsx.js")),s=c(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=c(a("./node_modules/antd/es/button/index.js"));a("./node_modules/antd/es/button/style/index.js");var i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=c(a("./node_modules/lodash/lodash.js")),u=(a("./node_modules/prop-types/index.js"),a("./src/components/Icon/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p={SHARES:"#147BD1",LOOK:"#8D9AAD",CLOESE:"#fa7278",STOP:"#fa7278",DELETE:"#fa7278",CANCELEXEC:"#fa7278",EXECUTE:"#00CF9B",EDIT:"#52B3F6",VIEW:"#878B96",SELECT:"#47B2FB",COPY:"#52B3F6",IMPOWER:"#147BD1"},f=(0,d.default)(r.default).withConfig({displayName:"IconButton__ButtonIcon",componentId:"sc-1152lr2-0"})(["border-color:"," !important;background:"," !important;height:","px !important;padding:"," !important;font-size:"," !important;opacity:1;color:#f5f5f5 !important;.svg-icon{fill:#f5f5f5 !important;}&.ant-btn-background-ghost{background:#ffffff !important;}&:hover{color:#fff !important;background:"," !important;.svg-icon{fill:#fff !important;}opacity:0.7;}"],(function(e){var t=e.action;return p[t]}),(function(e){var t=e.action;return p[t]}),(function(e){return"small"===e.btnType?24:32}),(function(e){return"small"===e.btnType?"0 8px":"0 16px"}),(function(e){return"small"===e.btnType?"12px":"14px"}),(function(e){var t=e.action;return p[t]}));t.default=function(e){var t=e.disabled,a=e.action,r=e.txt,d=e.allcolor,c=e.btnType,p=e.onClick,m=(0,s.default)(e,["disabled","action","txt","allcolor","btnType","onClick"]);return i.default.createElement(f,(0,n.default)({disabled:void 0!==t?t:"",type:"primary",allcolor:d,action:a,btnType:c,height:"small"===c?24:32,onClick:p},m,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\button\\IconButton.jsx",lineNumber:45}}),(0,o.default)(u.IconSvg,{type:l.default.toLower(a),size:"small"===c?12:14,marginRight:4}),r)}},"./src/components/button/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./src/components/button/GhostButton.jsx")),o=s(a("./src/components/button/IconButton.jsx"));function s(e){return e&&e.__esModule?e:{default:e}}t.default={GhostButton:n.default,IconButton:o.default}},"./src/components/charts/RadialBars.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=c(a("./node_modules/babel-runtime/helpers/inherits.js")),d=c(a("./node_modules/babel-runtime/helpers/jsx.js")),l=c(a("./node_modules/react/index.js")),u=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/recharts/es6/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=(o=n=function(e){function t(){return(0,s.default)(this,t),(0,r.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t}(u.RadialBar),n.getComposedData=function(){var e=u.RadialBar.getComposedData.apply(u.RadialBar,arguments);return _.map(e.data,(function(e){e.endAngle=e.uv/e.uv2*360})),e},o),f=(0,d.default)(p,{background:!0,clockWise:!0,dataKey:"uv"},void 0,(0,d.default)(u.LabelList,{dataKey:"name",position:"insideTop",content:function(e){var t=e.viewBox,a=(e.position,e.value),n=(e.children,e.content,e.className,e.index),o=Math.PI/180,s=t.cx,r=t.cy,i=(t.innerRadius,t.outerRadius),l=t.startAngle,u=t.endAngle,c=(Math.min(Math.abs(u-l),360),2*n*45+45),p=Math.sin(-o*c),f=Math.cos(-o*c),m=s+(i+4)*f,h=r+(i-10)*p,g=s+(i+20*(5-n))*f,v=r+(i+20*(5-n))*p,_=g+22*(f>=0?1:-1),y=v,b=a.split(","),x=b[0],C=b[1],j=b[2],S=b[3],I=f>=0?"start":"end",T=_+12*(f>=0?1:-1)>400?_+12*(f>=0?1:-1)+20:_+12*(f>=0?1:-1)-10,w=_+12*(f>=0?1:-1)>400?_+12*(f>=0?1:-1)+40:_+12*(f>=0?1:-1)-20;return(0,d.default)("g",{},void 0,(0,d.default)("path",{d:"M"+m+","+h+"L"+g+","+v+"L"+_+","+y,stroke:"#989696",fill:"none",strokeDasharray:"1,2,2,2"}),(0,d.default)("circle",{cx:m,cy:h,r:2,fill:"#989696",stroke:"none"}),(0,d.default)("text",{x:_+12*(f>=0?1:-1),y:y,textAnchor:I,fill:"#395377",fontWeight:"700",fontSize:"12"},void 0,x),(0,d.default)("text",{x:T,y:y+20,textAnchor:I,fill:"#A2B0C4",fontSize:"12"},void 0,C+"/"+j),(0,d.default)("text",{x:w,y:y+40,textAnchor:I,fill:"#A2B0C4",fontSize:"12"},void 0,S+"%"))}})),m=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.state={data:n.getData(a.classifyArray)},n}return(0,i.default)(t,e),t.prototype.getData=function(e){for(var t=[],a=["#47D4FD","#98D4FD","#47B2FB","#00CF9B"],n=0;n<e.length;n++){var o={name:e[n].classifyName+","+e[n].conf.core+","+e[n].conf.capacity+","+e[n].conf.useCapacity,uv:e[n].conf.useCapacity,uv2:100,fill:a[n]};t.push(o)}return t},t.prototype.render=function(){return(0,d.default)(u.RadialBarChart,{width:this.props.width,height:this.props.height,cx:this.props.width/2,cy:this.props.height/2-25,innerRadius:55,outerRadius:130,barSize:8,startAngle:90,endAngle:450,data:this.state.data},void 0,f)},t}(l.default.PureComponent);m.defaultProps={width:600,height:500},t.default=m},"./src/components/charts/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/components/charts/RadialBars.jsx"),s=(n=o)&&n.__esModule?n:{default:n};t.default={RadialBars:s.default}},"./src/components/common/CheckName.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/tooltip/index.js")),o=_(a("./node_modules/antd/es/input/index.js")),s=_(a("./node_modules/babel-runtime/helpers/extends.js")),r=_(a("./node_modules/babel-runtime/helpers/jsx.js")),i=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=_(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var u=_(a("./node_modules/react/index.js")),c=_(a("./node_modules/lodash/lodash.js")),p=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=a("./node_modules/react-redux/es/index.js"),m=(_(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),h=a("./src/redux/reducers/checkName.js"),g=a("./src/redux/selectors/checkName.js"),v=_(a("./src/components/common/checkNameTypes.js"));function _(e){return e&&e.__esModule?e:{default:e}}var y=p.default.span.withConfig({displayName:"CheckName__CheckNameWrapper",componentId:"sc-137nu3j-0"})(["display:inline-block;position:relative;input{padding-right:40px;}.ant-input-affix-wrapper .ant-input-suffix{right:30px;}.verify-status{position:absolute;top:50%;right:0;z-index:1;width:32px;height:20px;margin-top:-10px;font-size:14px;line-height:20px;text-align:center;visibility:visible;}"]),b=(0,r.default)(m.CheckCircleTwoTone,{twoToneColor:"#52c41a"}),x=(0,r.default)(m.CloseCircleTwoTone,{twoToneColor:"#d11429"}),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.getNameBlur=function(e){var t=n.props.source;if(n._checkEmpty(e,v.default[t].max)){var a,o,s={};n.props.fId?((a={})[v.default[t].fId]=n.props.fId,a[v.default[t].id]=n.props.modelId,a[v.default[t].name]=e,s=a):((o={})[v.default[t].id]=n.props.modelId,o[v.default[t].name]=e,s=o),"deploymentId"===v.default[t].id&&v.default[t].custom&&(s={paramjson:s}),n.props.dispatch(h.checkNameActions.checkNameAvailableRequest({params:s,url:v.default[t].url,basePath:v.default[t].basePath})),c.default.isFunction(n.props.getNameBlurCallback)&&n.props.getNameBlurCallback(e)}},n.onChange=function(e){e.stopPropagation();var t=e.target?e.target.value:e.nativeEvent.target.value;c.default.isFunction(n.props.updateNameCallback)&&n.props.updateNameCallback(t)},n._checkEmpty=function(e,t){return c.default.trim(e)?!(e.length>t)||(n.props.dispatch(h.checkNameActions.setNameAvailableStatus({verifyStatus:-1,verifyMsg:"\u540d\u79f0\u957f\u5ea6\u4e0d\u80fd\u5927\u4e8e"+t})),!1):(n.props.dispatch(h.checkNameActions.setNameAvailableStatus({verifyStatus:-1,verifyMsg:"\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"})),!1)},n.state={verifyStatus:"",verifyMsg:""},n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.initVerify&&this.props.initVerify!==e.initVerify&&this.getNameBlur(this.props.value),!c.default.isEqual(this.props.verifyInfo,e.verifyInfo)){var t=this.props.verifyInfo.toJS(),a=t.verifyStatus,n=t.verifyMsg;this.setState({verifyStatus:a,verifyMsg:n})}},t.prototype.componentDidMount=function(){this.props.initVerify&&this.getNameBlur(this.props.value)},t.prototype.componentWillUnmount=function(){this.props.dispatch(h.checkNameActions.setNameAvailableStatus({verifyStatus:0,verifyMsg:""}))},t.prototype.render=function(){var e=this,t=c.default.omit(this.props,["dispatch","verifyInfo","modelId","checkNameLoading","source","updateNameCallback","getNameBlurCallback","initVerify","fId"]),a=this.state,i=a.verifyStatus,d=a.verifyMsg;return(0,r.default)(y,{bgColor:1===i?"":"#d11429"},void 0,u.default.createElement(o.default,(0,s.default)({},t,{onBlur:function(t){return e.getNameBlur(t.target.value)},allowClear:!0,onChange:this.onChange,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\common\\CheckName.jsx",lineNumber:142}})),(0,r.default)("span",{className:"verify-status"},void 0,this.props.checkNameLoading?(0,r.default)(m.LoadingOutlined,{title:"\u9a8c\u8bc1\u4e2d\u8bf7\u7a0d\u540e...",style:{color:"#1890ff"}}):0===i?null:1===i?(0,r.default)(n.default,{placement:"top",title:d},void 0,b):""!==i&&(0,r.default)(n.default,{placement:"top",trigger:"hover",overlayClassName:"tooltip-error",title:d},void 0,x)))},t}(u.default.PureComponent);t.default=(0,f.connect)((function(e){return{verifyInfo:(0,g.selectVerifyInfo)(e),checkNameLoading:(0,g.selectCheckNameLoading)(e)}}),null,null,{withRef:!0})(C)},"./src/components/common/Empty.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/prop-types/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=a("./src/components/Icon/index.js");function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"Empty__EmptyWrapper",componentId:"sc-14kbjbp-0"})(["display:flex;flex-direction:column;align-items:center;span{font-size:14px;color:#a2b0c4;margin-top:16px;word-break:break-all;}"]),d=(0,n.default)(s.IconSvg,{type:"noData",size:60}),l=(0,n.default)("span",{className:"no-data-text"},void 0,"\u6682\u65e0\u6570\u636e");t.default=function(e){var t=e.style;return(0,n.default)(i,{className:"empty-wrapper",style:t||{}},void 0,d,l)}},"./src/components/common/NoData.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=a("./src/components/Icon/index.js");function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"NoData__NoDataWrapper",componentId:"sc-1vf2r7i-0"})(["left:50%;top:50%;transform:translate(-50%,-50%);width:200px;height:80px;span{font-size:16px;color:#a2b0c4;margin-top:12px;margin-left:67px;line-height:55px;word-break:break-all;}"]),d=(0,n.default)("span",{},void 0,"\u6682\u65e0\u6570\u636e");t.default=function(e){return(0,n.default)(i,{style:{position:e.position?"relative":"absolute"}},void 0,(0,n.default)(s.IconSvg,{style:{width:"100%"},type:"noData",size:120}),d)}},"./src/components/common/NoDataCreate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/antd/es/dropdown/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=b(a("./node_modules/babel-runtime/helpers/inherits.js")),l=b(a("./node_modules/antd/es/menu/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/dropdown/style/index.js"),a("./node_modules/antd/es/menu/style/index.js");var u=b(a("./node_modules/react/index.js")),c=b(a("./node_modules/lodash/lodash.js")),p=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./src/styles/GlobalStyle.js"),h=a("./node_modules/react-router-dom/esm/react-router-dom.js"),g=a("./src/utils/history.js"),v=b(a("./src/styles/images/NoBusinessData.png")),_=a("./src/components/auth/textAuth.jsx"),y=a("./src/routes/routeHelper.jsx");function b(e){return e&&e.__esModule?e:{default:e}}var x=p.default.div.withConfig({displayName:"NoDataCreate__ContentWrapper",componentId:"sc-1wanhts-0"})(["display:flex;flex-direction:column;flex-grow:1;min-height:500px;padding-bottom:32px;.image-container{background:url(",");height:50%;background-repeat:no-repeat;background-size:contain;width:80%;background-position:center;min-height:200px;}.nodata-title{font-size:20px;color:#303133;margin-top:32px;margin-left:calc(40% - 250px);width:610px;}.nodata-sub-title{margin-left:calc(40% - 250px);opacity:0.75;font-size:14px;color:#303133;margin-top:10px;width:610px;}.action-wrapper{margin-top:24px;margin-left:-100px;margin-left:calc(40% - 250px);}.link-container{margin-top:16px;font-size:14px;color:#147bd1;letter-spacing:1.5px;margin-left:-100px;margin-left:calc(40% - 250px);}"],v.default),C=l.default.Item,j=(0,s.default)("div",{className:"image-container"}),S=(0,s.default)(n.default,{icon:(0,s.default)(f.PlusOutlined,{}),type:"primary"},void 0,"\u521b\u5efa",(0,s.default)(f.DownOutlined,{})),I=(0,s.default)(f.PlusOutlined,{}),T=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.handleNav=function(e){"codeService"!==n.props.from?(0,g.navigateTo)(e):n.props.onCreate&&n.props.onCreate()},n.renderMenu=function(e){return(0,s.default)(l.default,{},void 0,e.map((function(e){return(0,s.default)(C,{},e.title,(0,s.default)(h.Link,{to:e.link},void 0,e.title))})))},n.state={},n.DATA_MAP={dataSource:{title:"\u5f53\u524d\u65e0\u6570\u636e\uff0c\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u96c6\uff0c\u5f00\u59cb\u8fdb\u884c\u6570\u636e\u96c6\u63a5\u5165\u3002",subTitle:"\u4f7f\u7528\u6570\u636e\u96c6\u7ba1\u7406\uff0c\u5bf9\u9700\u8bad\u7ec3/\u63a8\u7406\u7684\u6570\u636e\u8fdb\u884c\u96c6\u4e2d\u5316\u7ba1\u7406\uff1b\u65b0\u589e\u8868\u6570\u636e\uff0c\u53ef\u9009\u62e9\u7ed3\u6784\u5316\u6570\u636e\uff1b\u65b0\u589e\u56fe\u50cf\u3001\u6587\u672c\u7c7b\u6570\u636e\uff0c\u53ef\u9009\u62e9\u975e\u7ed3\u6784\u5316\u6570\u636e\u3002",actions:[{title:"\u7ed3\u6784\u5316\u6570\u636e",link:y.dataMgrUrl.structureCreate(a.appId)},{title:"\u975e\u7ed3\u6784\u5316\u6570\u636e",link:y.dataMgrUrl.noStructureCreate(a.appId)}],help:{target:"_blank",link:(0,_.hasText)("root.datasource.docLink"),text:"\u67e5\u770b\u6570\u636e\u96c6\u8be6\u7ec6\u6587\u6863"}},codeService:{title:"\u5f53\u524d\u65e0\u5efa\u6a21\u670d\u52a1\uff0c\u521b\u5efa\u4e00\u4e2a\u5efa\u6a21\u670d\u52a1\uff08\u7f16\u7801\u5efa\u6a21\uff09\uff0c\u5f00\u59cb\u8fdb\u884c\u6a21\u578b\u8bad\u7ec3\u3002",subTitle:"\u501f\u52a9Jupyter Notebook\uff0c\u7528\u6237\u53ef\u9009\u62e9Python\u3001R\u7b49\u8bed\u8a00\u8fdb\u884c\u7f16\u7801\u5efa\u6a21\uff0c\u5f00\u59cb\u7f16\u7801\u5f0f\u5efa\u6a21\u524d\uff0c\u7528\u6237\u81f3\u5c11\u9700\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684\u7f16\u7801\u5efa\u6a21\u670d\u52a1\u3002 ",actions:[{title:"\u65b0\u5efa\u7f16\u7801\u5f0f\u670d\u52a1",link:{pathname:y.modelServiceUrl.createCodeService(),state:{applicationId:a.appId}}}],help:{target:"_blank",link:(0,_.hasText)("root.modelTrain.docLink"),text:"\u67e5\u770b\u5efa\u6a21\u670d\u52a1\u7684\u8be6\u7ec6\u6587\u6863"}},reasonService:{title:"\u5f53\u524d\u65e0\u63a8\u7406\u670d\u52a1\uff0c\u521b\u5efa\u4e00\u4e2a\u63a8\u7406\u670d\u52a1\uff08\u5728\u7ebf\u63a8\u7406\u670d\u52a1\uff09\uff0c\u5f00\u59cb\u8fdb\u884c\u670d\u52a1\u90e8\u7f72\u3002",subTitle:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1\u652f\u6301\u5c06\u6a21\u578b/\u4ee3\u7801\u5305/\u63a8\u7406\u955c\u50cf\u90e8\u7f72\u6210\u53ef\u7528\u7684\u5728\u7ebf\u63a8\u7406\u670d\u52a1\uff0c\u542f\u52a8\u6210\u529f\u7684\u670d\u52a1\u52a0\u4e0a\u6709\u6548token\uff0c\u53ef\u63d0\u4f9b\u5728\u7ebf\u63a8\u7406\u80fd\u529b\u3002",actions:[{title:"\u65b0\u5efa\u5728\u7ebf\u63a8\u7406\u670d\u52a1",link:{pathname:y.modelServiceUrl.publish("test"),state:{applicationId:a.appId}}}],help:{target:"_blank",link:(0,_.hasText)("root.reaService.docLink"),text:"\u67e5\u770b\u63a8\u7406\u670d\u52a1\u7684\u8be6\u7ec6\u6587\u6863"}},offlineService:{title:"\u5f53\u524d\u65e0\u63a8\u7406\u4efb\u52a1\uff0c\u521b\u5efa\u4e00\u4e2a\u63a8\u7406\u4efb\u52a1\uff08\u79bb\u7ebf\u63a8\u7406\u4efb\u52a1\uff09\uff0c\u5f00\u59cb\u8fdb\u884c\u4efb\u52a1\u914d\u7f6e\u3002",subTitle:"\u79bb\u7ebf\u63a8\u7406\u4efb\u52a1\u652f\u6301\u5c06\u6a21\u578b/\u4ee3\u7801\u5305/\u63a8\u7406\u955c\u50cf\u6ce8\u518c\u6210\u4e00\u4e2a\u79bb\u7ebf\u4efb\u52a1\u914d\u7f6e\uff0cjob\u4efb\u52a1\u4e0a\u7ebf\u540e\uff0c\u53ef\u8fdb\u884c\u63a8\u7406\u4efb\u52a1\u6267\u884c\uff0c\u751f\u6210\u7684\u7ed3\u679c\u53ef\u5728\u4efb\u52a1\u6267\u884c\u4e2d\u67e5\u770b\u5217\u8868\u548c\u8be6\u60c5\u3002",actions:[{title:"\u65b0\u5efa\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",link:{pathname:y.inferenceUrl.offlineCreate("test")}}],help:{target:"_blank",link:(0,_.hasText)("root.offService.docLink"),text:"\u67e5\u770b\u79bb\u7ebf\u63a8\u7406\u670d\u52a1\u7684\u8be6\u7ec6\u6587\u6863"}}},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this,t=this.props.from,a=this.DATA_MAP[t],r=c.default.get(a,"actions");return(0,s.default)(m.PageWrapper,{style:{padding:"0 16px"}},void 0,(0,s.default)(x,{style:this.props.style},void 0,j,(0,s.default)("span",{className:"nodata-title"},void 0,c.default.get(a,"title")),(0,s.default)("span",{className:"nodata-sub-title"},void 0,c.default.get(a,"subTitle")),(0,s.default)("div",{className:"action-wrapper"},void 0,Array.isArray(r)&&r.length>1&&(0,s.default)(o.default,{overlay:this.renderMenu(r),placement:"bottomCenter"},void 0,S),Array.isArray(r)&&1===r.length&&(0,s.default)(n.default,{icon:I,type:"primary",onClick:function(){return e.handleNav(c.default.get(r,"[0].link"))}},void 0,c.default.get(r,"[0].title"))),(0,s.default)("div",{className:"link link-container"},void 0,c.default.get(a,"help.link")&&(0,s.default)("a",{href:c.default.get(a,"help.link"),className:"textName",target:c.default.get(a,"help.target")},void 0,c.default.get(a,"help.text")))))},t}(u.default.Component);t.default=T},"./src/components/common/RefreshButton.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/alert/index.js")),o=m(a("./node_modules/antd/es/tooltip/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var l=m(a("./node_modules/react/index.js")),u=m(a("./node_modules/lodash/lodash.js")),c=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./src/utils/commonUtil.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=c.default.div.withConfig({displayName:"RefreshButton__RefreshWrapper",componentId:"c6mrbk-0"})(["display:flex;align-items:center;.refresh-icon{cursor:pointer;margin-left:16px;font-size:14px;display:none;&.loading{display:block;}}.ant-alert{line-height:12px;}"]),g=(0,s.default)(n.default,{type:"info",size:"small",message:"\u81ea\u52a8\u66f4\u65b0\u4e2d..."}),v=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.startInterval=function(){var e=n.props.intervalTime||3e4,t=n.props.timerName||"default";f.Interval.start(n.handleRefresh,e,t)},n.handleRefresh=function(e){var t="clickRefresh";e||(t="intervalRefresh",n.setState({loading:!0}),setTimeout((function(){return n.setState({loading:!1})}),1e3)),u.default.isFunction(n.props.onRefresh)&&n.props.onRefresh("refresh",t)},n.state={loading:!1,doStart:!1,doStop:!1},n.refreshRef=l.default.createRef(),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.startInterval()},t.prototype.componentDidUpdate=function(){this.props.doStart!==this.state.doStart&&this.doStart&&this.startInterval(),this.props.doStop!==this.state.doStop&&this.doStop&&f.Interval.clear()},t.prototype.componentWillUnmount=function(){f.Interval.clear()},t.prototype.render=function(){return(0,s.default)(h,{style:this.props.style},void 0,this.state.loading?g:(0,s.default)(o.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,l.default.createElement(p.RedoOutlined,{ref:this.refreshRef,className:"refresh-icon",onClick:this.handleRefresh,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\common\\RefreshButton.jsx",lineNumber:81}})))},t}(l.default.Component);t.default=v},"./src/components/common/ScrollToTop.js":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=l(a("./node_modules/babel-runtime/helpers/inherits.js")),r=l(a("./node_modules/react/index.js")),i=l(a("./node_modules/lodash/lodash.js")),d=(l(a("./node_modules/prop-types/index.js")),a("./node_modules/react-router-dom/esm/react-router-dom.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,s.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.location.pathname===e.location.pathname||i.default.get(this.props.location,"state.unScrollToTop")||window.scrollTo(0,0)},t.prototype.render=function(){return this.props.children},t}(r.default.Component);t.default=(0,d.withRouter)(u)},"./src/components/common/checkNameTypes.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/utils/constants.js");t.default={preTask:{id:"taskId",name:"taskName",basePath:n.ServicePath.DATA_PRE,url:"/data-pre-tasks/operations/check-name-repeat",max:30},trainTask:{id:"taskId",name:"taskName",basePath:n.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/operations/check-name-repeat",max:30},dispatchTask:{id:"dispatchTaskId",name:"dispatchTaskName",basePath:n.ServicePath.SC_SERVICE,url:"/dispatchTasks/operations/checkRepeat",max:30},codeServiceInfo:{id:"modelId",name:"bzTaskName",basePath:n.ServicePath.CODE_MODEL,url:"/codeModels/operates/valiName",max:30},annotation:{id:"taskId",name:"taskName",basePath:n.ServicePath.SC_SERVICE,url:"/data-dev-tasks/operations/checkRepeat",max:30},projectApplication:{id:"projectApplicationId",fId:"projectId",name:"applicationName",basePath:n.ServicePath.USER_CENTER_SERVICE,url:"/projects/applications/operations/checkNameRepeat",max:30},obsInfo:{id:"dbId",name:"dbName",basePath:n.ServicePath.DSEM_SERVICE,url:"/obs/operates/valiName",max:30},userGroup:{id:"groupId",name:"groupName",basePath:n.ServicePath.USER_CENTER_SERVICE,url:"/user-groups/operations/check-repeat",max:30},role:{id:"roleId",name:"roleName",basePath:n.ServicePath.USER_CENTER_SERVICE,url:"/roles/operations/check-repeat",max:30},users:{id:"userId",name:"userId",basePath:n.ServicePath.USER_CENTER_SERVICE,url:"/users/operations/check-repeat",max:30},tagGroups:{id:"tagGroupId",name:"tagGroupName",basePath:n.ServicePath.MODELING_SERVICE,url:"/tagGroups/actions/checkRepeat",max:30},annotationTask:{id:"markTaskId",name:"markTaskName",basePath:n.ServicePath.MODELING_SERVICE,url:"/markTasks/actions/checkRepeat",max:30},dataSource:{id:"dsId",name:"dsName",basePath:n.ServicePath.MODELING_SERVICE,url:"/datasources/actions/checkRepeat",max:30},modelInfo:{id:"modelId",name:"modelName",basePath:n.ServicePath.MODELING_SERVICE,url:"/models/actions/checkRepeat",max:30},indiSet:{id:"kpisetId",name:"kpisetName",basePath:n.ServicePath.MODELING_SERVICE,url:"/kpisets/actions/checkRepeat",max:30},appTopicBases:{id:"applicationTypeId",name:"applicationTypeName",basePath:n.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationType/checkNameRepeat",max:30},accessPaths:{id:"projectId",name:"accessPaths",basePath:n.ServicePath.USER_CENTER_SERVICE,url:"/projects/operations/check-path-repeat",max:40},project:{id:"projectId",name:"projectName",basePath:n.ServicePath.USER_CENTER_SERVICE,url:"/projects/operations/check-repeat",max:40},modelBase:{id:"modelId",name:"modelName",basePath:n.ServicePath.REPO_SERVICE,url:"/repositories/default/models/modelId/operations/checkRepeat",max:50},modelMirror:{id:"mirrorId",name:"mirrorShowName",url:"/mirror/checkMirrorName",basePath:n.ServicePath.SIC_SERVICE,max:30},ftpName:{id:"id",name:"storageName",basePath:n.ServicePath.DSEM_SERVICE,url:"/storages/operates/valiName",max:30},dataDispose:{id:"taskId",name:"taskName",url:"/dataDisposeTasks/actions/checkRepeat",max:30},dataBases:{id:"id",name:"dbName",basePath:n.ServicePath.DSEM_SERVICE,url:"/dataBases/operates/valiName",max:30},ocrTemplateName:{id:"templateId",name:"templateName",url:"/ocrTemplates/operates/checkRepeat",max:64,basePath:n.ServicePath.OCR_SERVICE},labelsManage:{id:"labelId",name:"labelName",url:"/labels/operations/checkName",max:30,basePath:n.ServicePath.RES_SERVICE},serviceCode:{id:"resId",name:"resName",url:"/resources/checkResourcesName",max:30,basePath:n.ServicePath.SIC_SERVICE},serviceName:{custom:!0,id:"deploymentId",name:"deploymentShowName",url:"/deploy/checkDeployParameterRepetition",max:30,basePath:n.ServicePath.SIC_SERVICE},apiUser:{custom:!0,id:"apiUserId",name:"apiUserName",url:"/api-users/operations/check-repeat",max:30,basePath:n.ServicePath.USER_CENTER_SERVICE},tenant:{id:"tenantId",name:"tenantName",basePath:n.ServicePath.USER_CENTER_SERVICE,url:"/tenants/operations/check-repeat",max:40}}},"./src/components/cronSelect/CronSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/antd/es/input/index.js")),o=u(a("./node_modules/antd/es/space/index.js")),s=u(a("./node_modules/babel-runtime/helpers/jsx.js")),r=u(a("./node_modules/antd/es/select/index.js")),i=u(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var d=a("./node_modules/react/index.js"),l=(u(d),u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")));u(a("./node_modules/prop-types/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=l.default.div.withConfig({displayName:"CronSelect__CronWrapper",componentId:"sc-5mtooj-0"})([".time_wrapper{margin-top:10px;}.time_select{width:58px;}.cron_input{width:60%;margin-right:10px;}.cron_format{display:block;margin:10px 0;}"]),p=i.default.Group,f=r.default.Option,m=(0,s.default)("span",{},void 0,"\u6bcf\u9694"),h=(0,s.default)(f,{value:"min"},void 0,"\u5206\u949f"),g=(0,s.default)(f,{value:"hour"},void 0,"\u5c0f\u65f6"),v=(0,s.default)("span",{},void 0,"\u6267\u884c\u4e00\u6b21"),_=(0,s.default)("span",{},void 0,"\u6bcf\u5929"),y=(0,s.default)("span",{},void 0,"\u65f6"),b=(0,s.default)("span",{},void 0,"\u5206"),x=(0,s.default)("span",{},void 0,"\u6267\u884c\u4e00\u6b21"),C=(0,s.default)("span",{},void 0,"\u6bcf\u5468"),j=(0,s.default)(f,{value:"1"},void 0,"\u4e00"),S=(0,s.default)(f,{value:"2"},void 0,"\u4e8c"),I=(0,s.default)(f,{value:"3"},void 0,"\u4e09"),T=(0,s.default)(f,{value:"4"},void 0,"\u56db"),w=(0,s.default)(f,{value:"5"},void 0,"\u4e94"),E=(0,s.default)(f,{value:"6"},void 0,"\u516d"),D=(0,s.default)(f,{value:"7"},void 0,"\u4e03"),M=(0,s.default)("span",{},void 0,"\uff0c"),k=(0,s.default)("span",{},void 0,"\u65f6"),P=(0,s.default)("span",{},void 0,"\u5206"),L=(0,s.default)("span",{},void 0,"\u6267\u884c\u4e00\u6b21"),N=(0,s.default)("span",{},void 0,"\u6bcf\u9694"),A=(0,s.default)("span",{},void 0,"\u4e2a\u6708\uff0c"),R=(0,s.default)("span",{},void 0,"\u65e5\uff0c"),F=(0,s.default)("span",{},void 0,"\u65f6"),O=(0,s.default)("span",{},void 0,"\u5206"),V=(0,s.default)("span",{},void 0,"\u6267\u884c\u4e00\u6b21"),U=(0,s.default)(f,{value:"0 * * * *"},void 0,(0,s.default)("span",{},void 0,"0 * * * * (\u6bcf\u5c0f\u65f6)")),B=(0,s.default)(f,{value:"0 0 * * 1"},void 0,(0,s.default)("span",{},void 0,"0 0 * * 1(\u6bcf\u5468)")),G=(0,s.default)(f,{value:"0 0 1 * *"},void 0,(0,s.default)("span",{},void 0,"0 0 1 * *(\u6bcf\u6708)")),z=(0,s.default)(f,{value:"*/15 * * * *"},void 0,(0,s.default)("span",{},void 0,"*/15 * * * *(\u6bcf\u969415\u5206\u949f\u6267\u884c\u4e00\u6b21)")),q=(0,s.default)(f,{value:"* */12 * * *"},void 0,(0,s.default)("span",{},void 0,"* */12 * * *(\u6bcf\u969412\u5c0f\u65f6\u6267\u884c\u4e00\u6b21)")),K=(0,s.default)(f,{value:"15 10 16 * *"},void 0,(0,s.default)("span",{},void 0,"15 10 16 * *(\u6bcf\u670816\u65e510:15\u5206\u8fd0\u884c)")),H=(0,s.default)("span",{className:"cron_format"},void 0,"\u683c\u5f0f\uff1a\u5206 \u65f6 \u5929 \u6708 \u5468"),Y=(0,s.default)(i.default,{value:"0"},void 0,"\u6309\u5c0f\u65f6"),W=(0,s.default)(i.default,{value:"1"},void 0,"\u6309\u5929"),J=(0,s.default)(i.default,{value:"2"},void 0,"\u6309\u661f\u671f"),Q=(0,s.default)(i.default,{value:"3"},void 0,"\u6309\u6708"),Z=(0,s.default)(i.default,{value:"4"},void 0,"Cron\u8868\u8fbe\u5f0f"),X=(0,d.forwardRef)((function(e,t){var a=e.cron_data,i=(0,d.useState)("0"),l=i[0],u=i[1],X=(0,d.useState)("hour"),$=X[0],ee=X[1],te=(0,d.useState)(24),ae=te[0],ne=te[1],oe=(0,d.useState)(""),se=oe[0],re=oe[1],ie=(0,d.useState)(""),de=ie[0],le=ie[1],ue=(0,d.useState)(""),ce=ue[0],pe=ue[1],fe=(0,d.useState)(""),me=fe[0],he=fe[1],ge=(0,d.useState)(""),ve=ge[0],_e=ge[1],ye=(0,d.useState)(""),be=ye[0],xe=ye[1],Ce=(0,d.useState)(!1),je=Ce[0],Se=Ce[1];(0,d.useImperativeHandle)(t,(function(){return{getCronData:Ie()}})),(0,d.useEffect)((function(){var e=a&&a.cron_select_type,t=[];switch([null,void 0].includes(e)||(t=Object.keys(a)),u(String(e)),e){case 0:t.includes("hour")?(le(a.hour),Te("hour")):(le(a.minute),Te("min"));break;case 1:le(a.hour),re(a.minute);break;case 2:he(a.week),le(a.hour),re(a.minute);break;case 3:_e(a.month),pe(a.day),le(a.hour),re(a.minute);break;case 4:xe(a.cron_expression)}}),[a]);var Ie=function(){var e={};switch(l){case"0":e="hour"===$?{cron_select_type:Number(l),hour:de}:{cron_select_type:Number(l),minute:de};break;case"1":e={cron_select_type:Number(l),hour:de,minute:se};break;case"2":e={cron_select_type:Number(l),week:me,hour:de,minute:se};break;case"3":e={cron_select_type:Number(l),month:ve,day:ce,hour:de,minute:se};break;case"4":e={cron_select_type:Number(l),cron_expression:be}}return e},Te=function(e){ee(e),ne("hour"===e?24:60)},we=function(e){le(e)},Ee=function(e){re(e)},De=function(e,t){for(var a=[],n=e;n<t;n++)a.push((0,s.default)(f,{value:n},n,n));return a},Me=(0,s.default)(o.default,{},void 0,m,(0,s.default)(r.default,{onChange:we,value:de,className:"time_select"},void 0,De(1,ae)),(0,s.default)(r.default,{onChange:Te,value:$},void 0,h,g),v),ke=(0,s.default)(o.default,{},void 0,_,(0,s.default)(r.default,{onChange:we,value:de,className:"time_select"},void 0,De(0,24)),y,(0,s.default)(r.default,{onChange:Ee,value:se,className:"time_select"},void 0,De(0,60)),b,x),Pe=(0,s.default)(o.default,{},void 0,C,(0,s.default)(r.default,{onChange:function(e){he(e)},value:me,className:"time_select"},void 0,j,S,I,T,w,E,D),M,(0,s.default)(r.default,{onChange:we,value:de,className:"time_select"},void 0,De(0,24)),k,(0,s.default)(r.default,{onChange:Ee,value:se,className:"time_select"},void 0,De(0,60)),P,L),Le=(0,s.default)(o.default,{},void 0,N,(0,s.default)(r.default,{onChange:function(e){_e(e)},value:ve,className:"time_select"},void 0,De(1,13)),A,(0,s.default)(r.default,{onChange:function(e){pe(e)},value:ce,className:"time_select"},void 0,De(1,32)),R,(0,s.default)(r.default,{onChange:we,value:de,className:"time_select"},void 0,De(0,24)),F,(0,s.default)(r.default,{onChange:Ee,value:se,className:"time_select"},void 0,De(0,60)),O,V),Ne=(0,s.default)(r.default,{allowClear:!0,onChange:function(e){xe(e)},placeholder:"\u67e5\u770b\u793a\u4f8b"},void 0,U,B,G,z,q,K),Ae=(0,s.default)("div",{},void 0,(0,s.default)(n.default,{className:"cron_input",placeholder:"* * * * *",value:be,onChange:function(e){xe(e.target.value)}}),!je&&(0,s.default)("span",{onClick:function(){return Se(!0)}},void 0,"\u793a\u4f8b"),je&&(0,s.default)("span",{onClick:function(){return Se(!1)}},void 0,"\u9690\u85cf"),(0,s.default)("div",{},void 0,H,je&&Ne));return(0,s.default)(c,{},void 0,(0,s.default)(p,{onChange:function(e){switch(u(e.target.value),e.target.value){case"0":le(1);break;case"1":re(0),le(0);break;case"2":he("1"),re(0),le(0);break;case"3":re(0),le(0),pe(1),_e(1)}},value:l},void 0,Y,W,J,Q,Z),(0,s.default)("div",{className:"time_wrapper",onClick:function(e){e.preventDefault(),e.stopPropagation()}},void 0,"0"===l&&Me,"1"===l&&ke,"2"===l&&Pe,"3"===l&&Le,"4"===l&&Ae))}));t.default=X},"./src/components/dashboard/DashboardPanel.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PanelWrapper=void 0;var n=d(a("./node_modules/babel-runtime/helpers/extends.js")),o=d(a("./node_modules/babel-runtime/helpers/jsx.js")),s=d(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=d(a("./node_modules/react/index.js")),i=d(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));d(a("./node_modules/prop-types/index.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=t.PanelWrapper=i.default.div.withConfig({displayName:"DashboardPanel__PanelWrapper",componentId:"tfiskl-0"})(["flex-basis:auto;.panel-head-wrapper{font-size:14px;color:",";font-weight:800;padding:10px 0;border-bottom:0.5px solid #dfe0e1;}.panel-head{text-indent:20px;line-height:20px;border-left:4px solid ",";}.panel-body{padding:30px 0 10px 0;position:relative;}"],(function(e){return e.theme.color.primary}),(function(e){return e.theme.bgcolor.blue}));t.default=function(e){var t=e.title,a=void 0===t?"":t,i=e.children,d=e.bodyStyle,u=(0,s.default)(e,["title","children","bodyStyle"]);return r.default.createElement(l,(0,n.default)({},u,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\dashboard\\DashboardPanel.jsx",lineNumber:25}}),(0,o.default)("div",{className:"panel-head-wrapper"},void 0,(0,o.default)("div",{className:"panel-head"},void 0,a)),(0,o.default)("div",{className:"panel-body",style:(0,n.default)({},d)},void 0,i))}},"./src/components/dashboard/FeatureIcon.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=(r(a("./node_modules/prop-types/index.js")),r(a("./node_modules/lodash/lodash.js")));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"FeatureIcon__FeatureItem",componentId:"sc-12nz3cb-0"})(["",";float:left;font-size:",";color:",";&:hover{color:",";}.cartoon-icon{height:80px;}.feature-title{letter-spacing:1px;height:25px;line-height:25px;text-align:center;color:",";}"],(function(e){return e.style}),(function(e){return e.theme.font.size.base}),(function(e){return e.theme.color.primary}),(function(e){return e.theme.bgcolor.blue}),(function(e){return e.theme.font.size.primary}));t.default=function(e){var t=e.feature,a=void 0===t?{}:t,o=e.onClick,r=void 0===o?s.default.noop:o,d=e.style,l=void 0===d?{}:d;return(0,n.default)(i,{style:l},void 0,(0,n.default)("div",{className:" cartoon-icon "+a.icon,onClick:function(e){r(e,a.id)}}),(0,n.default)("div",{className:"feature-title"},void 0,a.name))}},"./src/components/dashboard/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/dashboard/DashboardPanel.jsx");Object.defineProperty(t,"DashboardPanel",{enumerable:!0,get:function(){return s(n).default}});var o=a("./src/components/dashboard/FeatureIcon.jsx");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"FeatureIcon",{enumerable:!0,get:function(){return s(o).default}})},"./src/components/decorator/WithInjectIntl.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/extends.js")),o=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=l(a("./node_modules/babel-runtime/helpers/inherits.js")),i=l(a("./node_modules/react/index.js")),d=a("./node_modules/react-intl/lib/index.es.js");function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(t){function a(){return(0,o.default)(this,a),(0,s.default)(this,t.apply(this,arguments))}return(0,r.default)(a,t),a.prototype.render=function(){return(0,d.injectIntl)(i.default.createElement(e,(0,n.default)({},this.props,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\decorator\\WithInjectIntl.jsx",lineNumber:12}})))},a}(i.default.Component)}},"./src/components/decorator/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/decorator/WithInjectIntl.jsx");Object.defineProperty(t,"WithInjectIntl",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}})},"./src/components/defineTable/DefineTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/divider/index.js")),o=g(a("./node_modules/antd/es/table/index.js")),s=g(a("./node_modules/antd/es/button/index.js")),r=g(a("./node_modules/antd/es/modal/index.js")),i=g(a("./node_modules/antd/es/tooltip/index.js")),d=g(a("./node_modules/babel-runtime/helpers/jsx.js")),l=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var p=g(a("./node_modules/react/index.js")),f=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./src/components/defineTable/modelEnums.js"),h=g(a("./node_modules/form-render/lib/antd.js"));g(a("./src/components/defineTable/schema.json"));function g(e){return e&&e.__esModule?e:{default:e}}var v=f.default.div.withConfig({displayName:"DefineTable__DefineTableDom",componentId:"moh1m7-0"})([""]),y=f.default.div.withConfig({displayName:"DefineTable__PageHeader",componentId:"moh1m7-1"})(["position:relative;width:100%;z-index:20;justify-content:space-between;display:flex;&.right{justify-content:flex-end;}padding:20px 0px;"]),b=f.default.div.withConfig({displayName:"DefineTable__BottomDiv",componentId:"moh1m7-2"})(["float:right;z-index:20;justify-content:space-between;display:flex;&.right{justify-content:flex-end;}padding:20px 0px;"]),x=(0,d.default)(n.default,{type:"vertical"}),C=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.editData=function(e,t,a){n.setState({viewType:e,formData:"create"!==e?t:{},modalVisible:!0}),n.index=a},n.callModalVisible=function(){n.setState({modalVisible:!1})},n.onChange=function(e){n.setState({formData:e})},n.submitModalOk=function(){"create"===n.state.viewType?n.props.saveData(n.state.formData):n.props.updateData(n.state.formData,n.index),n.setState({modalVisible:!1})},n.index=0,n.state={formData:{},viewType:"",modalVisible:!1,columns:a.columns?a.columns:[{title:"\u4e1a\u52a1\u7801",dataIndex:"code",ellipsis:!0,render:function(e,t){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5b57\u6bb5\u540d",dataIndex:"field",ellipsis:!0,render:function(e,t){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8fd0\u7b97\u7b26",dataIndex:"sign",ellipsis:!0,render:function(e,t){return(0,d.default)(i.default,{placement:"topLeft",title:m.SIGN.getDescFromValue(e)},void 0,m.SIGN.getDescFromValue(e))}},{title:"\u8fd0\u7b97\u503c",dataIndex:"value",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u4e1a\u52a1\u63cf\u8ff0",dataIndex:"codeDesc",ellipsis:!0,render:function(e,t){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:"120px",render:function(e,t,a){return(0,d.default)("span",{},void 0,(0,d.default)("div",{},void 0,(0,d.default)("a",{href:"javascript:;",onClick:function(){return n.editData("edit",t,a)}},void 0,"\u4fee\u6539"),x,(0,d.default)("a",{href:"javascript:;",onClick:function(){return n.props.deleteData(a)}},void 0,"\u5220\u9664")))}}],rowKey:a.rowKey?a.rowKey:_.uniqueId(),uiSchema:a.uiSchema?a.uiSchema:{codeDesc:{"ui:width":"100%","ui:labelWidth":65,"ui:options":{}}},propSchema:a.schema?a.schema:{type:"object",properties:{code:{title:"\u4e1a\u52a1\u7801",type:"string"},field:{title:"\u5b57\u6bb5\u540d",type:"string"},sign:{title:"\u8fd0\u7b97\u7b26",type:"string",enum:[">","<","==","!=",">=","<="],enumNames:["\u5927\u4e8e","\u5c0f\u4e8e","\u7b49\u4e8e","\u4e0d\u7b49\u4e8e","\u5927\u4e8e\u7b49\u4e8e","\u5c0f\u4e8e\u7b49\u4e8e"]},value:{title:"\u8fd0\u7b97\u503c",type:"string"},codeDesc:{title:"\u63cf\u8ff0",type:"string",format:"textarea"}},displayType:"row",showDescIcon:!0,column:2,labelWidth:65}},n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.data,n=t.submitText,i=this.state,l=i.columns,u=i.rowKey,c=i.modalVisible,p=i.viewType,f=i.formData,m=i.propSchema,g=i.uiSchema;return(0,d.default)(v,{},void 0,(0,d.default)(r.default,{title:"create"===p?"\u65b0\u589e\u81ea\u5b9a\u4e49":"\u4fee\u6539\u81ea\u5b9a\u4e49",width:800,onCancel:this.callModalVisible,visible:c,onOk:this.submitModalOk},void 0,(0,d.default)(h.default,{propsSchema:m,formData:f,uiSchema:g,onChange:this.onChange,displayType:"row",showDescIcon:!0,column:2,labelWidth:65})),(0,d.default)(y,{},void 0,(0,d.default)(s.default,{onClick:function(){e.editData("create")},type:"primary"},void 0,"\u65b0\u589e\u81ea\u5b9a\u4e49")),(0,d.default)(o.default,{rowKey:u,pagination:!1,columns:l,dataSource:a,scroll:{y:300}}),(0,d.default)(b,{},void 0,(0,d.default)(s.default,{onClick:function(){e.props.submitData()},type:"primary"},void 0,n||"\u786e\u5b9a\u4fdd\u5b58")))},t}(p.default.PureComponent);t.default=C},"./src/components/defineTable/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.SIGN=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.SIGN=(0,s.default)({">":[">","\u5927\u4e8e"],"<":["<","\u5c0f\u4e8e"],"==":["==","\u7b49\u4e8e"],"!=":["!=","\u4e0d\u7b49\u4e8e"],">=":[">=","\u5927\u4e8e\u7b49\u4e8e"],"<=":["<=","\u5c0f\u4e8e\u7b49\u4e8e"]});t.default={SIGN:r}},"./src/components/defineTable/schema.json":function(e){e.exports=JSON.parse('{"schema":{"type":"object","properties":{"code":{"title":"\u4e1a\u52a1\u7801","type":"string","ui:options":{}},"fieId":{"title":"\u5b57\u6bb5\u540d","type":"string","ui:options":{}},"sign":{"title":"\u8fd0\u7b97\u7b26","type":"string","enum":[">","<","=","<>",">=","<="],"enumNames":["\u5927\u4e8e","\u5c0f\u4e8e","\u7b49\u4e8e","\u4e0d\u7b49\u4e8e","\u5927\u4e8e\u7b49\u4e8e","\u5c0f\u4e8e\u7b49\u4e8e"]},"value":{"title":"\u8fd0\u7b97\u503c","type":"string"},"codeDesc":{"title":"\u63cf\u8ff0","type":"string","format":"textarea","ui:width":"100%","ui:labelWidth":65,"ui:options":{}}},"ui:column":2,"ui:displayType":"row","ui:showDescIcon":true},"displayType":"row","showDescIcon":true,"column":2,"labelWidth":65}')},"./src/components/dockerFile/DockerfileContainer.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DockerfileDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=a("./node_modules/react-redux/es/index.js"),l=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/@uiw/react-codemirror/esm/index.js")));function c(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/codemirror/keymap/sublime.js"),a("./node_modules/codemirror/theme/monokai.css");var p=t.DockerfileDom=l.default.div.withConfig({displayName:"DockerfileContainer__DockerfileDom",componentId:"sc-436x3z-0"})(["margin-top:15px;width:90%;padding:0px 0px 16px 40px;.CodeMirror-code{outline:none;background:#000000;pre span{color:#ffffff;}}.CodeMirror{font-family:'source-code-pro',Menlo,'Courier New',Consolas,monospace;font-size:14px;z-index:0;border-radius:0px;height:auto;background:#000000;}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3;display:none;}.from-div{background:#000000;width:100%;padding:20px;color:#ff8f20;font-weight:800;}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding-left:20px;}.CodeMirror-linenumber{color:#d0d0d0;display:none;}.cm-s-monokai.CodeMirror{background:#000000;color:#f8f8f2;}.conceal{height:100%;width:100%;position:absolute;z-index:999;}"]),f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setCode=function(e){var t="";if(e.doc.children)for(var a=0;a<e.doc.children.length;a++){for(var o=e.doc.children[a],s=0;s<o.lines.length;s++)o.lines[s].text&&(t+=o.lines[s].text+"\n");t=t.substring(0,t.lastIndexOf("\n"))}n.props.setDockerFile(t)},n.state={},n.codeMirrorRef=i.default.createRef(),n}return(0,r.default)(t,e),t.prototype.componentDidUpdate=function(){_.isFunction(this.codeMirrorRef.current.editor.setValue)&&this.codeMirrorRef.current.editor.setValue(this.props.dockerFiles?this.props.dockerFiles:"")},t.prototype.render=function(){var e=this,t=this.props,a=t.dockerFiles,o=t.style,s=t.disabled,r=a||"";return(0,n.default)(p,{style:o||{paddingLeft:40},className:"dockerfile-wrapper"},void 0,i.default.createElement(u.default,{disabled:s,ref:this.codeMirrorRef,onBlur:function(t){return e.setCode(t)},style:{marginTop:10},value:r,options:{theme:"monokai",tabSize:2,keyMap:"sublime",mode:"text/x-dockerfile",extraKeys:{Ctrl:"autocomplete"},viewportMargin:20,readOnly:!1,value:r},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\dockerFile\\DockerfileContainer.jsx",lineNumber:94}}))},t}(i.default.PureComponent);t.default=(0,d.connect)((function(){return{}}))(f)},"./src/components/eventProcess/EventProcess.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/babel-runtime/helpers/extends.js")),o=v(a("./node_modules/antd/es/tooltip/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/antd/es/message/index.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var u=a("./node_modules/react/index.js"),c=(v(u),v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/polished/dist/polished.es.js"),f=v(a("./src/components/common/NoData.jsx")),m=a("./src/utils/authPermit.js"),h=a("./node_modules/event-source-polyfill/src/eventsource.js"),g=a("./node_modules/react-virtualized/dist/es/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=c.default.div.withConfig({displayName:"EventProcess__ProcessWrapper",componentId:"sc-5wmqd1-0"})(["li{padding-left:20px;list-style:none;&.process-name{width:30%;}&.process-message{width:40%;}&.process-duration,&.process-status,&.process-operate{width:10%;text-align:left;}}.content-wrapper{ul{padding-inline-start:5px;}li{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:30px;padding-left:0;.LinesEllipsis{text-overflow:ellipsis;overflow:hidden;}}}.ReactVirtualized__Grid{&:focus{border:none;}}"]),y=c.default.ul.withConfig({displayName:"EventProcess__TimelineHeader",componentId:"sc-5wmqd1-1"})(["",";background:#f5f6f9;border-radius:4px;list-style:none;margin:0;padding:0;display:flex;flex-direction:row;li{height:40px;line-height:40px;float:left;font-size:14px;color:#1f2d3d;letter-spacing:1px;}"],(0,p.clearFix)()),b=(0,s.default)(f.default,{}),x=function(e){function t(a){(0,i.default)(this,t);var l=(0,d.default)(this,e.call(this,a));return l.fetchData=function(){l.props.eventUrl&&(l.setState({processData:[]}),l.evtSource=new h.EventSourcePolyfill(l.props.eventUrl,{headers:{Authorization:(0,m.getToken)()}}),l.evtSource.addEventListener("open",(function(){l.setState({processData:[]})})),l.evtSource.addEventListener("error",(function(){l.evtSource.close()})),l.evtSource.addEventListener("message",(function(e){l.setState((function(t){var a=t.processData;return a.push(e.data),{processData:a}}))})),l.evtSource.addEventListener("failure",(function(e){r.default.error(e.data),l.evtSource.close()})),l.evtSource.addEventListener("finish",(function(){l.evtSource.close()})))},l.measureCache=new g.CellMeasurerCache({defaultHeight:32,fixedWidth:!0,keyMapper:function(){return 1}}),l.renderItem=function(e){var t=e.index,a=e.key,r=e.style,i=e.parent,d=e.processData[t];return(0,s.default)(g.CellMeasurer,{cache:l.measureCache,columnIndex:0,parent:i,rowIndex:t},a,(0,s.default)(o.default,{placement:"topLeft",title:d||"--",overlayStyle:{maxWidth:800}},void 0,(0,s.default)("span",{style:(0,n.default)({},r,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%",display:"block"})},void 0,d)))},l.state={modalVisible:!1,loading:!1,processData:[]},l.modalData={modalType:"",modalTitle:"",modalContent:""},l.evtSource=null,l}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.eventUrl!==e.eventUrl&&this.fetchData()},t.prototype.componentWillUnmount=function(){this.evtSource&&this.evtSource.close()},t.prototype.render=function(){var e=this,t=this.state.processData,a=this.props.tableHeader;return a=a||["\u4e8b\u4ef6\u65f6\u95f4","\u8be6\u7ec6\u8fc7\u7a0b"],(0,s.default)(_,{},void 0,(0,s.default)(y,{},void 0,Array.isArray(a)&&a.map((function(e){return(0,s.default)("li",{className:"process-name"},e,e)}))),t&&t.length>0?(0,s.default)("div",{className:"content-wrapper"},void 0,(0,s.default)("div",{style:{height:500}},void 0,(0,s.default)(g.AutoSizer,{},void 0,(function(a){var n=a.width,o=a.height;return(0,s.default)(g.List,{width:n,height:o,overscanRowCount:10,rowCount:t.length,rowHeight:e.measureCache.rowHeight,rowRenderer:function(a){var n=a.index,o=a.key,s=a.style,r=a.parent;return e.renderItem({index:n,key:o,style:s,parent:r,processData:t})},deferredMeasurementCache:e.measureCache})})))):b)},t}(u.Component);t.default=x},"./src/components/exception/ErrorBoundary.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.withErrorBoundary=void 0;var n=u(a("./node_modules/babel-runtime/helpers/extends.js")),o=u(a("./node_modules/babel-runtime/helpers/jsx.js")),s=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=u(a("./node_modules/babel-runtime/helpers/inherits.js")),d=u(a("./node_modules/react/index.js")),l=(u(a("./node_modules/prop-types/index.js")),u(a("./src/components/exception/ErrorBoundaryView.jsx")));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.state={error:null,info:null},n}return(0,i.default)(t,e),t.prototype.componentDidCatch=function(e,t){var a=this.props.onError;if("function"===typeof a)try{a.call(this,e,t?t.componentStack:"")}catch(e){}this.setState({error:e,info:t})},t.prototype.render=function(){var e=this.props,t=e.children,a=e.ErrorBoundaryViewComp||l.default,n=this.state,s=n.error,r=n.info;return null!==s?(0,o.default)(a,{componentStack:r?r.componentStack:"",error:s}):t},t}(d.default.Component);t.withErrorBoundary=function(e,t,a){return function(t){return(0,o.default)(c,{ErrorBoundaryViewComp:l.default,onError:a},void 0,d.default.createElement(e,(0,n.default)({},t,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\exception\\ErrorBoundary.jsx",lineNumber:44}})))}};t.default=c},"./src/components/exception/ErrorBoundaryView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),o(a("./node_modules/prop-types/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"ErrorBoundaryView__ErrorWrapper",componentId:"sc-1ywyvb2-0"})(["margin:20px;padding:20px;border:1px solid #ffa39e;background-color:#fff1f0;border-radius:4px;color:rgba(0,0,0,0.65);line-height:1.5;width:100%;h2{color:#f96a54;font-weight:600;font-size:20px;}.message{color:#f96a54;font-weight:600;font-size:16px;margin:10px 0;}summary{cursor:pointer;outline:none;font-size:14px;user-select:none;}.trace{font-size:12px;max-height:300px;}"]),r=(0,n.default)("h2",{},void 0,"\u7cfb\u7edf\u53d1\u751f\u9519\u8bef"),i=(0,n.default)("summary",{},void 0,"\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f");t.default=function(e){var t=e.componentStack,a=e.error;return(0,n.default)(s,{},void 0,r,(0,n.default)("p",{className:"message"},void 0,a&&a.toString()),(0,n.default)("details",{},void 0,i,(0,n.default)("pre",{className:"trace"},void 0,(0,n.default)("code",{},void 0,t))))}},"./src/components/exception/ForbiddenAccessPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("div",{className:"container"},void 0,(0,n.default)("h1",{},void 0,"403"),(0,n.default)("p",{},void 0,"\u7981\u6b62\u8bbf\u95ee"));t.default=function(){return s}},"./src/components/exception/InternalErrorPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("div",{className:"container"},void 0,(0,n.default)("h1",{},void 0,"500"),(0,n.default)("p",{},void 0,"\u670d\u52a1\u5f02\u5e38"));t.default=function(){return s}},"./src/components/exception/NotFoundPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.Error404=void 0;var n=d(a("./node_modules/antd/es/button/index.js")),o=d(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/button/style/index.js");d(a("./node_modules/react/index.js"));var s=d(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),r=a("./src/components/Icon/index.js"),i=a("./src/utils/history.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=t.Error404=s.default.div.withConfig({displayName:"NotFoundPage__Error404",componentId:"sc-1tniy2f-0"})(["display:flex;flex-grow:1;justify-content:center;align-items:center;width:100%;color:#fafafa;.error-wrapper{display:flex;height:400px;}.error-content{margin-left:16px;display:flex;flex-direction:column;justify-content:center;}.error-code{font-family:PingFangSC-Regular;font-size:80px;color:rgba(0,0,0,0.45);line-height:120px;}.error-title{opacity:0.45;font-family:PingFangSC-Regular;font-size:14px;color:#000000;line-height:22px;}.error-link{margin-top:25px;}"]),u=(0,o.default)(l,{},void 0,(0,o.default)("div",{className:"error-wrapper"},void 0,(0,o.default)(r.IconSvg,{type:"404",size:400,marginRight:0}),(0,o.default)("div",{className:"error-content"},void 0,(0,o.default)("div",{className:"error-code"},void 0,"404"),(0,o.default)("div",{className:"error-title"},void 0,"\u62b1\u6b49\u4f60\u8bbf\u95ee\u7684\u9875\u9762\u4e0d\u5b58\u5728"),(0,o.default)("div",{className:"error-link"},void 0,(0,o.default)(n.default,{type:"primary",onClick:i.goHomePage},void 0,"\u8fd4\u56de\u9996\u9875")))));t.default=function(){return u}},"./src/components/exception/NotPermissionPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.Error404=void 0;var n=d(a("./node_modules/antd/es/button/index.js")),o=d(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/button/style/index.js");d(a("./node_modules/react/index.js"));var s=d(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),r=a("./src/components/Icon/index.js"),i=a("./src/utils/history.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=t.Error404=s.default.div.withConfig({displayName:"NotPermissionPage__Error404",componentId:"ok3hgz-0"})(["display:flex;flex-grow:1;justify-content:center;align-items:center;width:100%;color:#fafafa;.error-wrapper{display:flex;height:400px;}.error-content{margin-left:16px;display:flex;flex-direction:column;justify-content:center;}.error-code{font-family:PingFangSC-Regular;font-size:80px;color:rgba(0,0,0,0.45);line-height:120px;}.error-title{opacity:0.45;font-family:PingFangSC-Regular;font-size:14px;color:#000000;line-height:22px;}.error-link{margin-top:25px;}"]),u=(0,o.default)(l,{},void 0,(0,o.default)("div",{className:"error-wrapper"},void 0,(0,o.default)(r.IconSvg,{type:"403",size:400,marginRight:0}),(0,o.default)("div",{className:"error-content"},void 0,(0,o.default)("div",{className:"error-code"},void 0,"403"),(0,o.default)("div",{className:"error-title"},void 0,"\u62b1\u6b49\uff0c\u4f60\u65e0\u6743\u8bbf\u95ee\u8be5\u9875\u9762"),(0,o.default)("div",{className:"error-link"},void 0,(0,o.default)(n.default,{type:"primary",onClick:i.goHomePage},void 0,"\u8fd4\u56de\u9996\u9875")))));t.default=function(){return u}},"./src/components/exception/TimeoutPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TimeoutConfig=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=a("./src/utils/history.js"),u=a("./src/utils/authPermit.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=t.TimeoutConfig=d.default.div.withConfig({displayName:"TimeoutPage__TimeoutConfig",componentId:"sc-10e3yey-0"})(["display:block;width:100%;text-align:center;color:#979797;.timeOut-wrapper{position:relative;}p{clear:both;padding:0;font-size:16px;&:first-child{margin-top:0;}}.timeOut-content{overflow:hidden;margin:0 auto;width:650px;height:300px;padding:0;.timeOut-code,.timeOut-title{text-transform:uppercase;}.timeOut-code{font-family:Georgia,'Times New Roman',Times,serif;font-size:200px;float:left;}.timeOut-title{font-size:60px;float:right;font-family:Georgia,'Times New Roman',Times,serif;padding-top:100px;p{&.strong{font-size:60px;}font-size:30px;}}}.timeOut-msg{margin-top:10px;color:#ef5350;font-size:12px;}.timeOut-link{margin-top:10px;a{color:#666;}}"]),f=(0,n.default)(p,{},void 0,(0,n.default)("div",{className:"timeOut-wrapper"},void 0,(0,n.default)("div",{className:"timeOut-content"},void 0,(0,n.default)("div",{className:"timeOut-code"},void 0,"408"),(0,n.default)("div",{className:"timeOut-title"},void 0,(0,n.default)("p",{className:"strong"},void 0,"Error !"),(0,n.default)("p",{},void 0,"\u767b\u5f55\u8d85\u65f6")))),(0,n.default)("p",{},void 0,"\u8bbf\u95ee\u8d85\u65f6\u30025\u79d2\u540e\u5c06\u8df3\u8f6c\u767b\u5f55\u754c\u9762\uff01"),(0,n.default)("p",{className:"timeOut-link"},void 0,(0,n.default)("a",{href:"/login"},void 0,"\xab \u8df3\u8f6c\u767b\u5f55\u754c\u9762"))),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return(0,u.removeLoginData)(),n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){setTimeout((function(){(0,l.navigateTo)("/login")}),5e3)},t.prototype.render=function(){return f},t}(i.default.Component);t.default=m},"./src/components/exception/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/NotFoundPage.jsx");Object.defineProperty(t,"NotFoundPage",{enumerable:!0,get:function(){return l(n).default}});var o=a("./src/components/exception/NotPermissionPage.jsx");Object.defineProperty(t,"NotPermissionPage",{enumerable:!0,get:function(){return l(o).default}});var s=a("./src/components/exception/ForbiddenAccessPage.jsx");Object.defineProperty(t,"ForbiddenAccessPage",{enumerable:!0,get:function(){return l(s).default}});var r=a("./src/components/exception/InternalErrorPage.jsx");Object.defineProperty(t,"InternalErrorPage",{enumerable:!0,get:function(){return l(r).default}});var i=a("./src/components/exception/ErrorBoundary.jsx");Object.defineProperty(t,"ErrorBoundary",{enumerable:!0,get:function(){return l(i).default}}),Object.defineProperty(t,"withErrorBoundary",{enumerable:!0,get:function(){return i.withErrorBoundary}});var d=a("./src/components/exception/TimeoutPage.jsx");function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"TimeoutPage",{enumerable:!0,get:function(){return l(d).default}})},"./src/components/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/Logo/Logo.jsx");Object.defineProperty(t,"Logo",{enumerable:!0,get:function(){return X(n).default}});var o=a("./src/components/MainNav/MainNavTest.jsx");Object.defineProperty(t,"MainNavTest",{enumerable:!0,get:function(){return X(o).default}});var s=a("./src/components/MainNav/AbilityMenuPage.jsx");Object.defineProperty(t,"AbilityMenuPage",{enumerable:!0,get:function(){return X(s).default}});var r=a("./src/components/ToolBar/index.js");Object.defineProperty(t,"ToolBar",{enumerable:!0,get:function(){return X(r).default}});var i=a("./src/components/jsonEditor/SchemaEditor.jsx");Object.defineProperty(t,"SchemaEditor",{enumerable:!0,get:function(){return X(i).default}});var d=a("./src/components/jsonEditor/JSONEditorReact.jsx");Object.defineProperty(t,"JSONEditorReact",{enumerable:!0,get:function(){return X(d).default}});var l=a("./src/components/LineWrap/LineWrap.jsx");Object.defineProperty(t,"LineWrap",{enumerable:!0,get:function(){return X(l).default}});var u=a("./src/components/ResourceConfig/ResourceQuota.jsx");Object.defineProperty(t,"ResourceQuota",{enumerable:!0,get:function(){return X(u).default}});var c=a("./src/components/LineWrap/TableTitleEllipsis.jsx");Object.defineProperty(t,"TableTitleEllipsis",{enumerable:!0,get:function(){return X(c).default}});var p=a("./src/components/listButtons/ListButtons.jsx");Object.defineProperty(t,"ListButtons",{enumerable:!0,get:function(){return X(p).default}});var f=a("./src/components/Footer/Footer.jsx");Object.defineProperty(t,"Footer",{enumerable:!0,get:function(){return X(f).default}});var m=a("./src/components/Modal/ModalView.jsx");Object.defineProperty(t,"ModalView",{enumerable:!0,get:function(){return X(m).default}});var h=a("./src/components/layoutGrid/LayoutGrid.jsx");Object.defineProperty(t,"LayoutGrid",{enumerable:!0,get:function(){return X(h).default}});var g=a("./src/components/LoadingIndicator/LoadingIndicator.jsx");Object.defineProperty(t,"LoadingIndicator",{enumerable:!0,get:function(){return X(g).default}});var v=a("./src/components/LoadingIndicator/ContentLoading.jsx");Object.defineProperty(t,"ContentLoading",{enumerable:!0,get:function(){return X(v).default}});var _=a("./src/components/LoadingIndicator/CircleLoading.jsx");Object.defineProperty(t,"CircleLoading",{enumerable:!0,get:function(){return X(_).default}});var y=a("./src/components/IFrame/IFrame.jsx");Object.defineProperty(t,"IFrame",{enumerable:!0,get:function(){return X(y).default}});var b=a("./src/components/Icon/index.js");Object.defineProperty(t,"IconSvg",{enumerable:!0,get:function(){return b.IconSvg}}),Object.defineProperty(t,"IconFont",{enumerable:!0,get:function(){return b.IconFont}});var x=a("./src/components/decorator/index.js");Object.defineProperty(t,"WithInjectIntl",{enumerable:!0,get:function(){return x.WithInjectIntl}});var C=a("./src/components/charts/index.js");Object.defineProperty(t,"charts",{enumerable:!0,get:function(){return X(C).default}});var j=a("./src/components/button/index.js");Object.defineProperty(t,"button",{enumerable:!0,get:function(){return X(j).default}});var S=a("./src/components/selector/index.js");Object.defineProperty(t,"selector",{enumerable:!0,get:function(){return X(S).default}});var I=a("./src/components/modelConfig/modelConfigPanel.jsx");Object.defineProperty(t,"ModelConfigPanel",{enumerable:!0,get:function(){return X(I).default}});var T=a("./src/components/Row/RowTitle.jsx");Object.defineProperty(t,"RowTitle",{enumerable:!0,get:function(){return X(T).default}});var w=a("./src/components/Pagination/TabPagination.jsx");Object.defineProperty(t,"TabPagination",{enumerable:!0,get:function(){return X(w).default}});var E=a("./src/components/modelConfig/mainParamPanel.jsx");Object.defineProperty(t,"MainParamPanel",{enumerable:!0,get:function(){return X(E).default}});var D=a("./src/components/modelConfig/IndiSetCondSetting.jsx");Object.defineProperty(t,"IndiSetCondSetting",{enumerable:!0,get:function(){return X(D).default}});var M=a("./src/components/modelConfig/GradeSetCondSetting.jsx");Object.defineProperty(t,"GradeSetCondSetting",{enumerable:!0,get:function(){return X(M).default}});var k=a("./src/components/Slider/SliderRatio.jsx");Object.defineProperty(t,"SliderRatio",{enumerable:!0,get:function(){return X(k).default}});var P=a("./src/components/common/NoData.jsx");Object.defineProperty(t,"NoData",{enumerable:!0,get:function(){return X(P).default}});var L=a("./src/components/common/Empty.jsx");Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return X(L).default}});var N=a("./src/components/Transfer/TransferView.jsx");Object.defineProperty(t,"TransferView",{enumerable:!0,get:function(){return X(N).default}});var A=a("./src/components/Notification/NotificationWithIcon.jsx");Object.defineProperty(t,"NotificationWithIcon",{enumerable:!0,get:function(){return X(A).default}});var R=a("./src/components/siderLeft/BaseSider.js");Object.defineProperty(t,"BaseSider",{enumerable:!0,get:function(){return X(R).default}});var F=a("./src/components/stateLabel/StateLabel.jsx");Object.defineProperty(t,"StateLabel",{enumerable:!0,get:function(){return X(F).default}});var O=a("./src/components/User/SelectUser.jsx");Object.defineProperty(t,"SelectUser",{enumerable:!0,get:function(){return X(O).default}});var V=a("./src/components/common/RefreshButton.jsx");Object.defineProperty(t,"RefreshButton",{enumerable:!0,get:function(){return X(V).default}});var U=a("./src/components/common/NoDataCreate.jsx");Object.defineProperty(t,"NoDataCreate",{enumerable:!0,get:function(){return X(U).default}});var B=a("./src/components/treeTable/TreeTableView.jsx");Object.defineProperty(t,"TreeTableView",{enumerable:!0,get:function(){return X(B).default}});var G=a("./src/components/treeTable/NewTreeTableView.jsx");Object.defineProperty(t,"NewTreeTableView",{enumerable:!0,get:function(){return X(G).default}});var z=a("./src/components/Notification/Notification.jsx");Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return X(z).default}});var q=a("./src/components/defineTable/DefineTable.jsx");Object.defineProperty(t,"DefineTable",{enumerable:!0,get:function(){return X(q).default}});var K=a("./src/components/resizableTable/ResizableTable.jsx");Object.defineProperty(t,"ResizableTable",{enumerable:!0,get:function(){return X(K).default}});var H=a("./src/components/eventProcess/EventProcess.jsx");Object.defineProperty(t,"EventProcess",{enumerable:!0,get:function(){return X(H).default}});var Y=a("./src/components/AppClassify/SelectAppClassify.jsx");Object.defineProperty(t,"SelectAppClassify",{enumerable:!0,get:function(){return X(Y).default}});var W=a("./src/components/jsonEditor/schema/SchemaForm.jsx");Object.defineProperty(t,"SchemaForm",{enumerable:!0,get:function(){return X(W).default}});var J=a("./src/components/jsonEditor/schema/customWidget/DataSourceSelect.jsx");Object.defineProperty(t,"DataSourceSelect",{enumerable:!0,get:function(){return X(J).default}});var Q=a("./src/components/dockerFile/DockerfileContainer.jsx");Object.defineProperty(t,"DockerfileContainer",{enumerable:!0,get:function(){return X(Q).default}});var Z=a("./src/components/auth/AuthWrapper.jsx");function X(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"AuthWrapper",{enumerable:!0,get:function(){return X(Z).default}})},"./src/components/jsonEditor/JSONEditorReact.css":function(e,t,a){},"./src/components/jsonEditor/JSONEditorReact.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.default=void 0;var n=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=c(a("./node_modules/babel-runtime/helpers/inherits.js")),r=a("./node_modules/react/index.js"),i=c(r),d=c(a("./node_modules/lodash/isEqual.js")),l=c(a("./node_modules/lodash/cloneDeep.js")),u=c(a("./node_modules/jsoneditor/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/jsoneditor/dist/jsoneditor.css"),a("./src/components/jsonEditor/JSONEditorReact.css");var p=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,s.default)(t,e),t.prototype.componentDidMount=function(){var e=Object.assign({},this.props);delete e.json,delete e.text,this.jsoneditor=new u.default(this.container,e),"json"in this.props&&this.jsoneditor.set(this.props.json),"text"in this.props&&this.jsoneditor.setText(this.props.text),this.schema=(0,l.default)(this.props.schema),this.schemaRefs=(0,l.default)(this.props.schemaRefs)},t.prototype.componentDidUpdate=function(){"json"in this.props&&this.jsoneditor.update(this.props.json),"text"in this.props&&this.jsoneditor.updateText(this.props.text),"mode"in this.props&&this.jsoneditor.setMode(this.props.mode);var e=!(0,d.default)(this.props.schema,this.schema),t=!(0,d.default)(this.props.schemaRefs,this.schemaRefs);(e||t)&&(this.schema=(0,l.default)(this.props.schema),this.schemaRefs=(0,l.default)(this.props.schemaRefs),this.jsoneditor.setSchema(this.props.schema,this.props.schemaRefs))},t.prototype.componentWillUnmount=function(){this.jsoneditor&&this.jsoneditor.destroy()},t.prototype.render=function(){var e=this;return i.default.createElement("div",{className:"jsoneditor-react-container",ref:function(t){return e.container=t},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\jsonEditor\\JSONEditorReact.jsx",lineNumber:62}})},t}(r.Component);t.default=p},"./src/components/jsonEditor/SchemaEditor.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/extends.js")),o=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=l(a("./node_modules/babel-runtime/helpers/inherits.js")),i=l(a("./node_modules/react/index.js")),d=(a("./node_modules/prop-types/index.js"),l(a("./src/components/jsonEditor/schema/lib/schema.js")));function l(e){return e&&e.__esModule?e:{default:e}}a("./src/components/jsonEditor/schema/lib/main.css");var u=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={},n.SchemaEditorInstance=(0,d.default)(a.options),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.SchemaEditorInstance;return i.default.createElement(e,(0,n.default)({},this.props,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\jsonEditor\\SchemaEditor.jsx",lineNumber:20}}))},t}(i.default.Component);t.default=u},"./src/components/jsonEditor/schema/SchemaForm.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.combineSchema=void 0;var n=u(a("./node_modules/babel-runtime/helpers/extends.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=(a("./node_modules/prop-types/index.js"),a("./src/components/jsonEditor/schema/lib/schema.js")),l=u(d);function u(e){return e&&e.__esModule?e:{default:e}}a("./src/components/jsonEditor/schema/lib/main.css");var c=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={},n.SchemaFormInstance=(0,l.default)(a.options),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.SchemaFormInstance;return i.default.createElement(e,(0,n.default)({},this.props,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\jsonEditor\\schema\\SchemaForm.jsx",lineNumber:17}}))},t}(i.default.Component);t.default=c;t.combineSchema=d.combineUiSchema},"./src/components/jsonEditor/schema/customWidget/DataSourceSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=h(a("./node_modules/babel-runtime/helpers/extends.js")),r=h(a("./node_modules/babel-runtime/helpers/jsx.js")),i=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=h(a("./node_modules/babel-runtime/helpers/inherits.js")),u=h(a("./node_modules/antd/es/form/index.js")),c=h(a("./node_modules/antd/es/select/index.js")),p="C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\jsonEditor\\schema\\customWidget\\DataSourceSelect.jsx";a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=h(a("./node_modules/react/index.js")),m=(a("./node_modules/prop-types/index.js"),h(a("./src/redux/services/dataSource.js")));function h(e){return e&&e.__esModule?e:{default:e}}var g=c.default.Option,v=u.default.Item,y={labelCol:{span:5},wrapperCol:{span:10}},b=(0,r.default)(g,{value:""},void 0,"\u8bf7\u9009\u62e9\u6570\u636e\u96c6"),x=(0,r.default)(g,{value:""},void 0,"\u8bf7\u9009\u62e9\u5173\u8054\u5468\u671f"),C=(n=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));o.call(n);var s=a.value;return n.state={data:{dsId:_.get(s,"dsId"),dsCycle:_.get(s,"dsCycle")},sourceData:[],cyclesData:[]},n.formRef=f.default.createRef(),n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.queryDataSource(),this.queryCycle(_.get(this.state,"data.dsId"))},t.prototype.componentDidUpdate=function(e){var t=this;if(!_.isEqual(e.value,this.props.value)){var a=this.props.value;this.setState({data:{dsId:_.get(a,"dsId"),dsCycle:_.get(a,"dsCycle")}},(function(){t.queryCycle(_.get(a,"dsId"))}))}},t.prototype.render=function(){var e=this,t=this.state,a=t.data,n=t.sourceData,o=t.cyclesData,i=this.props.readOnly||this.props.disabled;return f.default.createElement(u.default,{className:"data-source__form",ref:this.formRef,name:"dynamic_rule",initialValues:{dsId:a.dsId,dsCycle:a.dsCycle},style:{marginLeft:20},layout:"inline",__source:{fileName:p,lineNumber:95}},f.default.createElement(v,(0,s.default)({className:"data-source__dsId"},y,{name:"dsId",label:"\u6570\u636e\u96c6",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u96c6"}],__source:{fileName:p,lineNumber:106}}),(0,r.default)(c.default,{showSearch:!0,disabled:i,onChange:function(t){return e.handleValueChange("dsId",t)},getPopupContainer:function(e){return e.parentNode},style:{marginLeft:"8px",width:"250px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,b,n.map((function(e){return(0,r.default)(g,{title:e.name,value:e.dsId},e.dsId,e.name)})))),f.default.createElement(v,(0,s.default)({className:"data-source__dsCycle"},y,{name:"dsCycle",label:"\u6570\u636e\u5468\u671f",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u5173\u8054\u5468\u671f"}],__source:{fileName:p,lineNumber:134}}),(0,r.default)(c.default,{disabled:i,onChange:function(t){return e.handleValueChange("dsCycle",t)},getPopupContainer:function(e){return e.parentNode},style:{marginLeft:"8px",width:"250px"}},void 0,x,o.map((function(e){return(0,r.default)(g,{title:e.dsCycle,value:e.dsCycle},e.id,null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")})))))},t}(f.default.Component),o=function(){var e=this;this.queryDataSource=function(t,a){m.default.getDataSourceListSummary({status:10,dataType:[t],appId:a}).then((function(t){t&&e.setState({sourceData:t.data})}))},this.queryCycle=function(t){t&&m.default.getDataCyclesList({dsId:t,status:10}).then((function(t){e.setState({cyclesData:t.data?t.data:[]})})),e.setState({cyclesData:[]})},this.handleValueChange=function(t,a){var n=e.state.data;n[t]!==a&&(n[t]=a,"dsId"===t&&(n.dsCycle="",e.formRef.current.setFieldsValue({dsCycle:""}),e.queryCycle(a)),e.setState({data:n}),e.handleChange(n))},this.handleChange=function(t){var a=e.props;(0,a.onChange)(a.name,t)}},n);t.default=C},"./src/components/jsonEditor/schema/lib/main.css":function(e,t,a){},"./src/components/jsonEditor/schema/lib/schema.js":function(e,t,a){"use strict";(function(e){var n,o,s,r=c(a("./node_modules/babel-runtime/helpers/extends.js")),i=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=c(a("./node_modules/babel-runtime/helpers/inherits.js")),u=c(a("./node_modules/babel-runtime/helpers/typeof.js"));function c(e){return e&&e.__esModule?e:{default:e}}!function(r,i){"object"==(0,u.default)(t)&&"object"==(0,u.default)(e)?e.exports=i(a("./node_modules/@ant-design/compatible/assets/index.css"),a("./node_modules/@ant-design/icons/es/index.js"),a("./node_modules/copy-to-clipboard/index.js"),a("./node_modules/form-render/lib/antd.js"),a("./node_modules/antd/es/index.js"),a("./node_modules/brace/index.js"),a("./node_modules/brace/mode/json.js"),a("./node_modules/lodash/lodash.js"),a("./node_modules/moox/lib/index.js"),a("./node_modules/prop-types/index.js"),a("./node_modules/react/index.js"),a("./node_modules/react-redux/es/index.js")):(o=[a("./node_modules/@ant-design/compatible/assets/index.css"),a("./node_modules/@ant-design/icons/es/index.js"),a("./node_modules/copy-to-clipboard/index.js"),a("./node_modules/form-render/lib/antd.js"),a("./node_modules/antd/es/index.js"),a("./node_modules/brace/index.js"),a("./node_modules/brace/mode/json.js"),a("./node_modules/lodash/lodash.js"),a("./node_modules/moox/lib/index.js"),a("./node_modules/prop-types/index.js"),a("./node_modules/react/index.js"),a("./node_modules/react-redux/es/index.js")],void 0===(s="function"===typeof(n=i)?n.apply(t,o):n)||(e.exports=s))}(globalThis,(function(e,t,a,n,o,s,c,p,f,m,h,g){return function(){var v={809:function(e,t,a){var n=a(334);function o(e){return"date"===n.string(e).toLowerCase()?"date-time":null}function s(e){return"date"===(e=n.string(e).toLowerCase())||"regexp"===e||"function"===e?"string":e}function r(e,t,a){var d,l,u;a&&t?t={items:t}:((t=t||{}).type=s(e),t.items=t.items||{},u=t.items.type||null);for(var c=0,p=e.length;c<p;c++){var f=s(e[c]),m=o(e[c]);if(u&&f!==u){t.items.oneOf=[],l=!0;break}u=f,d=m}if(!l&&u?(t.items.type=u,d&&(t.items.format=d)):l&&"object"!==u&&(t.items={oneOf:[{type:u}],required:t.items.required}),void 0!==t.items.oneOf||"object"===u)for(var h=0,g=e.length;h<g;h++){var v,_=e[h],y=s(_),b=o(_);"object"===y?(t.items.properties&&(t.items.required=function(e,t,a){var n,o,s;e=Object.keys(e),a=a||[];for(var r=0,i=(t=Object.keys(t)).length;r<i;r++)n=t[r],s=e.indexOf(n),o=a.indexOf(n),-1===s?-1!==o&&a.splice(o,1):-1===o&&a.push(n);return a}(t.items.properties,_,t.items.required)),v=i(_,l?{}:t.items.properties,!0)):"array"===y?v=r(_,l?{}:t.items.properties,!0):((v={}).type=y,b&&(v.format=b)),l?(b=n.string(_).toLowerCase(),_={},v.type||"object"!==b||(_.properties=v,_.type="object",v=_),t.items.oneOf.push(v)):"object"===t.items.type&&(t.items.properties=v)}return a?t.items:t}function i(e,t,a){for(var n in a&&t?t={properties:t}:((t=t||{}).type=s(e),t.properties=t.properties||{}),e){var d,l,u=e[n],c=s(u),p=o(u);"object"!==(c="undefined"===c?"null":c)?"array"!==c?t.properties[n]?(d=t.properties[n],(l=Array.isArray(d.type))&&d.type.indexOf(c)<0&&d.type.push(c),l||d.type===c||(d.type=[d.type,c])):(t.properties[n]={},t.properties[n].type=c,p&&(t.properties[n].format=p)):t.properties[n]=r(u,t.properties[n]):t.properties[n]=i(u,t.properties[n])}return a?t.properties:t}e.exports=function(e,t){var a,o={$schema:"http://json-schema.org/draft-04/schema#"};return"string"!=typeof e?(t=e,e=void 0):o.title=e,o.type=n.string(t).toLowerCase(),"object"===o.type&&(a=i(t),o.type=a.type,o.properties=a.properties),"array"===o.type&&(a=r(t),o.type=a.type,o.items=a.items,o.title&&(o.items.title=o.title,o.title+=" Set")),o}},334:function(e){function t(e){return null==e?e:e.constructor}function a(e,a){return(t(a)===String?r:t)(e)===a}function n(e,t){return e instanceof t}function o(e,t){if(!a(t,Array))throw"Second argument to .any() should be array";for(var n=0;n<t.length;n++)if(a(e,t[n]))return!0;return!1}var s,r;e.exports=(s=function(){var e=[Object,Function,Array,String,Boolean,Number,Date,RegExp,Error],t=e.length;return function(a){for(var n=0;n<t;n++)if(e[n]===a)return!0;return!1}}(),r=function(){var e={}.toString;return function(a){var n=e.call(a).slice(8,-1);return null==a?n.toLowerCase():(a=t(a))&&!s(a)?a.name:n}}(),(e=function(e,n){return 1==arguments.length?t(e):(a(n,Array)?o:a)(e,n)}).instance=n,e.string=r,e.of=t,e.is=a,e.any=o,e.extension=function(e,t){return n(e.prototype,t)},e)},486:function(t){t.exports=e},372:function(e){e.exports=t},929:function(e){e.exports=a},686:function(e){e.exports=n},710:function(e){e.exports=o},374:function(e){e.exports=s},768:function(e){e.exports=c},51:function(e){e.exports=p},676:function(e){e.exports=f},347:function(e){e.exports=m},525:function(e){e.exports=h},92:function(e){e.exports=g}},_={};function y(e){var t=_[e];return void 0!==t||(t=_[e]={exports:{}},v[e](t,t.exports,y)),t.exports}y.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(t,{a:t}),t},y.d=function(e,t){for(var a in t)y.o(t,a)&&!y.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},y.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var b={};return function(){y.r(b),y.d(b,{combineUiSchema:function(){return Ae},default:function(){return Ne}});var e=y(525),t=y.n(e),a=y(92),n=y(51),o=y.n(n),s=y(372),c=(y(486),y(710)),p=y(374);y(768);n=y(347);var f=y.n(n),m={javascript:"ace/mode/javascript",json:"ace/mode/json",text:"ace/mode/text",xml:"ace/mode/xml",html:"ace/mode/html"};function h(e,t){try{return e=JSON.parse(e),t=JSON.parse(t),!o().isEqual(e,t)}catch(e){return 1}}function g(e){return m[e]||m.text}var v=function(e){function a(){return(0,i.default)(this,a),(0,d.default)(this,e.apply(this,arguments))}return(0,l.default)(a,e),a.prototype.componentDidMount=function(){this.editor=function(e){var t,a,n,o;function s(e){var t=a.curData;try{t.text=e;var n=JSON.parse(e);t.format=!0,t.jsonData=n}catch(e){t.format=e.message}}function r(e){return"string"==typeof(e=e||"")?e:"object"==("undefined"===typeof e?"undefined":(0,u.default)(e))?JSON.stringify(e,null," "):void 0}return n=(e=e||{}).container||"mock-editor",e.wordList&&"object"==(0,u.default)(e.wordList)&&e.wordList.name&&e.wordList.mock&&[].push(e.wordList),o=e.data||"",e.readOnly=e.readOnly||!1,e.fullScreen=e.fullScreen||!1,(t=p.edit(n)).$blockScrolling=1/0,t.getSession().setMode("ace/mode/json"),!0===e.readOnly&&(t.setReadOnly(!0),t.renderer.$cursorLayer.element.style.display="none"),t.setOptions({useWorker:!0}),t._fullscreen_yapi=e.fullScreen,(a={curData:{},getValue:function(){return a.curData.text},setValue:function(e){t.setValue(r(e))},editor:t,options:e,insertCode:function(e){var a=t.selection.getCursor();t.session.insert(a,e)}}).setValue(r(o)),s(t.getValue()),t.clearSelection(),t.getSession().on("change",(function(){s(t.getValue()),"function"==typeof e.onChange&&e.onChange.call(a,a.curData),t.clearSelection()})),a}({container:this.editorElement,data:this.props.data,onChange:this.props.onChange,readOnly:this.props.readOnly,fullScreen:this.props.fullScreen});var e=this.props.mode||"javascript";this.editor.editor.getSession().setMode(g(e)),"function"==typeof this.props.callback&&this.props.callback(this.editor.editor)},a.prototype.componentWillReceiveProps=function(e){this.editor&&h(e.data,this.props.data)&&h(this.editor.getValue(),e.data)&&(this.editor.setValue(e.data),e=e.mode||"javascript",this.editor.editor.getSession().setMode(g(e)),this.editor.editor.clearSelection())},a.prototype.render=function(){var e=this;return t().createElement("div",{className:this.props.className,style:this.props.className?void 0:this.props.style||{width:"100%",height:"200px"},ref:function(t){e.editorElement=t}})},a}(t().PureComponent);v.propTypes={data:f().string,onChange:f().func,className:f().string,mode:f().string,readOnly:f().bool,callback:f().func,style:f().object,fullScreen:f().bool,insertCode:f().func};var _=v;function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a,n=arguments[t];for(a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function C(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var j=function(e){function a(t){var n;return(0,i.default)(this,a),C(n=(0,d.default)(this,e.call(this,t)),"handleChange",(function(e){e=e.target.value,n.setState({value:e})})),C(n,"onKeyup",(function(e){if(13===e.keyCode&&e.target.value!==n.props.value)return n.props.onChange(e)})),C(n,"handleBlur",(function(e){if(e.target.value!==n.props.value)return n.props.onChange(e)})),n.state={value:t.value},n}return(0,l.default)(a,e),a.prototype.componentWillReceiveProps=function(e){e.value!==this.props.value&&this.setState({value:e.value})},a.prototype.render=function(){var e=this.state.value;return t().createElement(c.Input,x({},this.props,{value:e,onKeyUp:this.onKeyup,onBlur:this.handleBlur,onChange:this.handleChange}))},a}(e.PureComponent);C(j,"propTypes",{onChange:f().func,value:f().string});var S,I,T,w="zh_CN",E=function(e){try{if("object"==(0,u.default)(JSON.parse(e)))return!0}catch(e){}return!1},D=[{name:"date-time"},{name:"date"},{name:"email"},{name:"hostname"},{name:"ipv4"},{name:"ipv6"},{name:"uri"}],M=["string","number","array","object","boolean","integer"],k={string:{type:"string"},number:{type:"number"},array:{type:"array",items:{type:"string"}},object:{type:"object",properties:{}},boolean:{type:"boolean"},integer:{type:"integer"}};function P(e,t){for(var a=e,n=0;n<t.length;n++)a=a[t[n]];return a}function L(e,t,a){for(var n=e,o=0;o<t.length-1;o++)n=n[t[o]];n[t[t.length-1]]=a}function N(e,t){for(var a=e,n=0;n<t.length-1;n++)a=a[t[n]];delete a[t[t.length-1]]}function A(e){if(1===e.length)return[];var t=[].concat(e);return t.splice(e.length-1,1),t}function R(e){if("object"!=("undefined"===typeof e?"undefined":(0,u.default)(e)))return e;if(Array.isArray(e)){var t=[];return e.forEach((function(e,a){t[a]=R(e)})),t}var a,n={};for(a in e)n[a]=R(e[a]);return n}var F=[{label:"\u8f93\u5165\u6846",value:"input",uiKey:"string-input",type:["string"]},{label:"\u6570\u5b57\u8f93\u5165\u6846",value:"number",uiKey:"string-number",type:["number","integer"]},{label:"\u6ed1\u52a8\u6761",value:"slider",uiKey:"string-slider",type:["number","integer"]},{label:"\u6587\u672c\u57df",value:"textarea",uiKey:"string-textarea",type:["string"]},{label:"\u989c\u8272\u9009\u62e9",value:"color",uiKey:"string-color",type:["string"]},{label:"\u65e5\u671f\u9009\u62e9",value:"date",format:"date",uiKey:"string-date",type:["string"]},{label:"\u5355\u9009\u6846",value:"radio",uiKey:"string-radio",type:["string"]},{label:"\u4e0b\u62c9\u5355\u9009",value:"select",uiKey:"string-select"},{label:"\u4e0b\u62c9\u591a\u9009",value:"multiSelect",uiKey:"string-multiSelect",type:["string"]},{label:"\u6587\u4ef6\u4e0a\u4f20",value:"upload",uiKey:"string-upload",type:["string"]},{label:"\u662f\u5426\u9009\u62e9",value:"checkbox",uiKey:"boolean-checkbox",type:["boolean"]},{label:"\u5f00\u5173",value:"switch",uiKey:"boolean-switch",type:["boolean"]},{label:"\u7ec4",value:"object",uiKey:"object",type:["object"]},{label:"\u5217\u8868",value:"array",uiKey:"array",type:["array"]}],O=o().clone(F);function V(e,t){return O.filter((function(a){return t?-1<o().findIndex(a.type,(function(t){return t===e}))&&a.format===t:-1<o().findIndex(a.type,(function(t){return t===e}))}))}function U(e,t){return V(e)&&V(e)[0]&&V(e)[0]?{uiKey:V(e,t)[0].uiKey,uiValue:V(e,t)[0].value,uiFormat:V(e,t)[0].format}:{}}function B(e){return o().find(O,{uiKey:e})}function G(e,t,a,n){var o=e;if(0===t.length)o=Object.assign(n?{}:o,a);else{for(var s=0;s<t.length-1;s++)o=o?o[t[s]]:{};o&&(o[t[t.length-1]]=a)}}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=function(e){if(!e)return[];var t=e.properties,a=e.items;e=e.type;if(!t&&!a)return[];var n="array"===e?a:"object"===e?t:{};return Object.keys(n).map((function(e){return{schema:n[e],name:e}}))}(e),n=a.map((function(e){var a=e.name,n=e.schema,o=n.type,s=n.enum,i=n.properties,d=n.items;i="object"===o&&i;return(a=a&&t[e.name])?"array"===o&&d&&!s?(d=z(d,a.items||{}),(0,r.default)({},e,{schema:(0,r.default)({},e.schema,a,{items:d})})):i?(i=z(e.schema,a),(0,r.default)({},e,{schema:i})):(0,r.default)({},e,{schema:(0,r.default)({},e.schema,a)}):e})),o={};n.forEach((function(e){o[e.name]=e.schema}));var s,i={};return Object.keys(t).forEach((function(e){"string"==typeof e&&"ui:"===e.substring(0,3)&&(i[e]=t[e])})),s=o,0===Object.keys(s).length?(0,r.default)({},e,i):(0,r.default)({},e,i,{properties:o})}var q=function e(t){var a=t.items,n={},s=(0,r.default)({},a,{type:a.type,uiKey:a.uiKey||"string-input"});return a["ui:widget"]&&(s["ui:widget"]=a["ui:widget"]),"object"!==a.type||o().isEmpty(a.properties)?"array"===a.type&&a.hasOwnProperty("items")&&!o().isEmpty(a.items)&&(s=(0,r.default)({},e(a),{type:a.type,uiKey:["object","array"].includes(a.type)?a.type:"string-input"})):s=(0,r.default)({},K(a),{type:a.type,uiKey:"object"}),n=Object.assign(n,{items:s,type:t.type,uiKey:t.uiKey||["object","array"].includes(t.type)?t.type:"string-input","ui:widget":t["ui:widget"]}),console.log("subUiData",n),n},K=function e(t){var a,n=t.properties,s={};for(a in n){var i,d=n[a],l=(0,r.default)({},d,{type:d.type,uiKey:d.uiKey||"string-input"});d["ui:widget"]&&(l["ui:widget"]=d["ui:widget"]),"object"!==d.type||o().isEmpty(d.properties)?"array"===d.type&&d.hasOwnProperty("items")&&!o().isEmpty(d.items)&&(l=(0,r.default)({},q(d),{type:d.type,uiKey:["object","array"].includes(d.type)?d.type:"string-input"})):l=(0,r.default)({},e(d),{type:d.type,uiKey:"object"}),s=Object.assign(s,((i={})[a]=l,i.type=d.type,i.uiKey=d.uiKey||["object","array"].includes(d.type)?d.type:"string-input",i))}return s},H=w,Y={en_US:{title:"Title",import_json:"Import JSON",base_setting:"Base Setting",all_setting:"Source Code",default:"Default",description:"Description",adv_setting:"Advanced Settings",add_child_node:"Add child node",add_sibling_node:"Add sibling nodes",add_node:"Add sibling/child nodes",child_node:"Child node",sibling_node:"Sibling node",ok:"OK",cancel:"Cancel",minLength:"Min length",maxLength:"Max length",pattern:"MUST be a string and SHOULD be a valid regular expression.",exclusiveMinimum:"Value strictly less than",exclusiveMaximum:"Value strictly more than",minimum:"Min",maximum:"Max",unique_items:"Unique Items",min_items:"MinItems",max_items:"MaxItems",checked_all:"Checked All",valid_json:"Not valid json",enum:"Enum",enum_name:"Enum Name",enum_msg:"One value per line",enum_desc:"desc",enum_desc_msg:"enum description",required:"required",mock:"mock",mockLink:"Help",group:"group",ui:"display",preview:"preview",import:"Import",import_json_schema:"Import jsonSchema"},zh_CN:{title:"\u6807\u9898",import_json:"\u5bfc\u5165 json",base_setting:"\u57fa\u7840\u8bbe\u7f6e",all_setting:"\u7f16\u8f91\u6e90\u7801",default:"\u9ed8\u8ba4\u503c",description:"\u5907\u6ce8",adv_setting:"\u9ad8\u7ea7\u8bbe\u7f6e",add_child_node:"\u6dfb\u52a0\u5b50\u8282\u70b9",add_sibling_node:"\u6dfb\u52a0\u5144\u5f1f\u8282\u70b9",add_node:"\u6dfb\u52a0\u5144\u5f1f/\u5b50\u8282\u70b9",child_node:"\u5b50\u8282\u70b9",sibling_node:"\u5144\u5f1f\u8282\u70b9",ok:"\u786e\u5b9a",cancel:"\u53d6\u6d88",minLength:"\u6700\u5c0f\u957f\u5ea6",maxLength:"\u6700\u5927\u957f\u5ea6",pattern:"\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7ea6\u675f\u5b57\u7b26\u4e32",exclusiveMinimum:"\u5f00\u542f\u540e\uff0c\u6570\u636e\u5fc5\u987b\u5927\u4e8e\u6700\u5c0f\u503c",exclusiveMaximum:"\u5f00\u542f\u540e\uff0c\u6570\u636e\u5fc5\u987b\u5c0f\u4e8e\u6700\u5927\u503c",minimum:"\u6700\u5c0f\u503c",maximum:"\u6700\u5927\u503c",unique_items:"\u5f00\u542f\u540e\uff0c\u6bcf\u4e2a\u5143\u7d20\u90fd\u4e0d\u76f8\u540c",min_items:"\u6700\u5c0f\u5143\u7d20\u4e2a\u6570",max_items:"\u6700\u5927\u5143\u7d20\u4e2a\u6570",checked_all:"\u5168\u9009",valid_json:"\u4e0d\u662f\u5408\u6cd5\u7684json\u5b57\u7b26\u4e32",enum:"\u679a\u4e3e",enum_name:"\u679a\u4e3e\u540d\u79f0",enum_msg:"\u6bcf\u884c\u53ea\u80fd\u5199\u4e00\u4e2a\u503c",enum_desc:"\u5907\u6ce8",enum_desc_msg:"\u5907\u6ce8\u63cf\u8ff0\u4fe1\u606f",required:"\u662f\u5426\u5fc5\u987b",mock:"mock",mockLink:"\u67e5\u770b\u6587\u6863",group:"\u5206\u7ec4",ui:"\u5c55\u793a",preview:"\u9884\u89c8",import:"\u5bfc\u5165",import_json_schema:"\u5bfc\u5165 jsonSchema"}},W=function(e){return Y[H][e]},J=c.AutoComplete.Option,Q=function(e){function a(t,n){var o;return(0,i.default)(this,a),(o=(0,d.default)(this,e.call(this,t))).state={mock:""},o.mock=n.Model.__jsonSchemaMock||[],o}return(0,l.default)(a,e),a.prototype.render=function(){var e=this,a=this.props.schema,n=this.mock.map((function(e){return t().createElement(J,{key:e.mock},e.mock)}));return t().createElement("div",null,t().createElement(c.AutoComplete,{className:"certain-category-search",dropdownMatchSelectWidth:!1,dataSource:n,placeholder:W("mock"),optionLabelProp:"value",filterOption:!0,value:a.mock?a.mock.mock:"",onChange:this.props.onChange,disabled:"object"===a.type||"array"===a.type},t().createElement(c.Input,{addonAfter:t().createElement(s.EditOutlined,{onClick:function(t){t.stopPropagation(),e.props.showEdit()}})})))},a}(t().Component);function Z(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}S=Q,I="propTypes",T={schema:f().object,showEdit:f().func,onChange:f().func},I in S?Object.defineProperty(S,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):S[I]=T,Q.contextTypes={Model:f().object};var X=c.Select.Option,$=function(e,a,n,o,s,r){var i=R(r);switch(console.log("newUiPrefixMap",i),a.type){case"array":var d;return Array.isArray(e)&&1<e.length&&Array.isArray(i)&&(d=e[e.length-1],i.push({key:d,type:a.type})),t().createElement(ee,{prefix:e,data:a,showEdit:n,showAdv:o,uiSchema:s,uiPrefixMap:i});case"object":Array.isArray(e)&&1<e.length&&Array.isArray(i)&&(l=e[e.length-1],i.push({key:l,type:a.type}));var l=[].concat(e,"properties");return t().createElement(ne,{prefix:l,data:a,showEdit:n,showAdv:o,uiSchema:s,uiPrefixMap:i});default:return null}},ee=function(e){function a(t,n){var o;return(0,i.default)(this,a),Z(o=(0,d.default)(this,e.call(this,t)),"handleChangeType",(function(e){var t=o.getPrefix(),a=[].concat(t,"type");o.Model.changeTypeAction({key:a,value:e});var n=o.getUiPrefix(),s=U(e);t=s.uiKey,a=s.uiValue;o.UiModel.changeUiAction({prefix:n,uiKey:t,value:a,type:e})})),Z(o,"handleChangeDesc",(function(e){var t=o.getPrefix();t=[].concat(t,"description"),e=e.target.value;o.Model.changeValueAction({key:t,value:e})})),Z(o,"handleChangeMock",(function(e){var t=o.getPrefix();t=[].concat(t,"mock");o.Model.changeValueAction({key:t,value:e?{mock:e}:""})})),Z(o,"handleChangeTitle",(function(e){var t=o.getPrefix();t=[].concat(t,"title"),e=e.target.value;o.Model.changeValueAction({key:t,value:e})})),Z(o,"handleAddChildField",(function(){var e=o.getPrefix();e=[].concat(e,"properties");o.Model.addChildFieldAction({key:e}),o.Model.setOpenValueAction({key:e,value:!0}),e=o.getUiPrefix(),o.UiModel.addFieldUiAction({uiPrefixMap:e})})),Z(o,"handleClickIcon",(function(){var e=o.getPrefix();e=[].concat(e,"properties");o.Model.setOpenValueAction({key:e})})),Z(o,"handleShowEdit",(function(e,t){var a=o.getPrefix();o.props.showEdit(a,e,o.props.data.items[e],t)})),Z(o,"handleShowAdv",(function(){o.props.showAdv(o.getPrefix(),o.props.data.items)})),Z(o,"handleChangeUiWidget",(function(e){var t=o.getUiPrefix(),a=U(e),n=a.uiKey;e=a.uiValue;o.UiModel.changeUiAction({prefix:t,key:"items",uiKey:n,value:e,type:o.props.data.type})})),Z(o,"handleChangeGroup",(function(e){var t=o.getPrefix();t=[].concat(t,"group"),e=e.target.value;o.Model.changeValueAction({key:t,value:e})})),o._tagPaddingLeftStyle={},o.Model=n.Model.schema,o.UiModel=n.Model.uiSchema,o}return(0,l.default)(a,e),a.prototype.componentWillMount=function(){var e=this.props.prefix.filter((function(e){return"properties"!==e})).length;this.__tagPaddingLeftStyle={paddingLeft:20*(e+1)+"px"}},a.prototype.getPrefix=function(){return[].concat(this.props.prefix,"items")},a.prototype.getUiPrefix=function(){return[].concat(this.props.uiPrefixMap,{key:"items",type:"string"})},a.prototype.render=function(){var e=this;console.log("xxxx",this.context);var a=this.props,n=a.data,r=a.prefix,i=a.showEdit,d=a.showAdv,l=a.uiSchema,u=a.uiPrefixMap,p=n.items,f=[].concat(r,"items"),m=(r=[].concat(f,"properties").join("."),r=this.context.getOpenValue([r]),""),h=R(l),g=this.getUiPrefix();return g.forEach((function(e,t){h=o().get(h,""+o().get(e,"key"))||{},t===g.length-1&&(m=h&&h.uiKey)})),!o().isUndefined(n.items)&&t().createElement("div",{className:"array-type"},t().createElement(c.Row,{className:"array-item-type",type:"flex",justify:"space-around",align:"middle"},t().createElement(c.Col,{span:this.context.columnWidths.name,className:"col-item name-item col-item-name",style:this.__tagPaddingLeftStyle},t().createElement(c.Row,{type:"flex",justify:"space-around",align:"middle"},t().createElement(c.Col,{span:2,className:"down-style-col"},"object"===p.type?t().createElement("span",{className:"down-style",onClick:this.handleClickIcon},r?t().createElement(s.CaretDownOutlined,{className:"icon-object"}):t().createElement(s.CaretRightOutlined,{className:"icon-object"})):null),t().createElement(c.Col,{span:22},t().createElement(c.Input,{addonAfter:t().createElement(c.Checkbox,{disabled:!0}),disabled:!0,value:"Items"})))),t().createElement(c.Col,{span:this.context.columnWidths.type,className:"col-item col-item-type"},t().createElement(c.Select,{name:"itemtype",className:"type-select-style",onChange:this.handleChangeType,value:p.type},M.map((function(e,a){return t().createElement(X,{value:e,key:a},e)})))),this.context.isMock&&t().createElement(c.Col,{span:this.context.columnWidths.mock,className:"col-item col-item-mock"},t().createElement(Q,{schema:p,showEdit:function(){return e.handleShowEdit("mock",p.type)},onChange:this.handleChangeMock})),t().createElement(c.Col,{span:this.context.columnWidths.title,className:"col-item col-item-mock"},t().createElement(c.Input,{addonAfter:t().createElement(s.EditOutlined,{onClick:function(){return e.handleShowEdit("title")}}),placeholder:W("title"),value:p.title,onChange:this.handleChangeTitle})),t().createElement(c.Col,{span:this.context.columnWidths.desc,className:"col-item col-item-desc"},t().createElement(c.Input,{addonAfter:t().createElement(s.EditOutlined,{onClick:function(){return e.handleShowEdit("description")}}),placeholder:W("description"),value:p.description,onChange:this.handleChangeDesc})),this.context.showGroup&&t().createElement(c.Col,{span:this.context.columnWidths.group,className:"col-item col-item-group"},t().createElement(c.Input,{placeholder:W("group"),value:p.group,onChange:this.handleChangeGroup})),this.context.showUiSelect&&t().createElement(c.Col,{span:this.context.columnWidths.ui,className:"col-item col-item-ui"},t().createElement(c.Select,{className:"type-select-style",onChange:this.handleChangeUiWidget,value:m},V(p.type,p.format).map((function(e,a){return t().createElement(X,{value:e.uiKey,key:a},e.label)})))),t().createElement(c.Col,{span:2,className:"col-item col-item-setting"},t().createElement("span",{className:"adv-set",onClick:this.handleShowAdv},t().createElement(c.Tooltip,{placement:"top",title:W("adv_setting")},t().createElement(s.SettingOutlined,null))),"object"===p.type?t().createElement("span",{onClick:function(){return e.handleAddChildField(p)}},t().createElement(c.Tooltip,{placement:"top",title:W("add_child_node")},t().createElement(s.PlusOutlined,{className:"plus"}))):null)),t().createElement("div",{className:"option-formStyle"},$(f,p,i,d,l,u)))},a}(e.PureComponent);ee.contextTypes={getOpenValue:f().func,Model:f().object,UiModel:f().object,isMock:f().bool,showGroup:f().bool,showUiSelect:f().bool,columnWidths:f().object};var te=function(e){function a(t,n){var s;return(0,i.default)(this,a),Z(s=(0,d.default)(this,e.call(this,t)),"handleChangeName",(function(e){var t=s.props,a=t.data,n=t.prefix,o=t.name;e=e.target.value;if(a.properties[e]&&"object"==(0,u.default)(a.properties[e]))return c.message.error('The field "'+e+'" already exists.');s.Model.changeNameAction({value:e,prefix:n,name:o})})),Z(s,"handleChangeDesc",(function(e){var t=s.getPrefix();t=[].concat(t,"description"),e=e.target.value;s.Model.changeValueAction({key:t,value:e})})),Z(s,"handleChangeMock",(function(e){var t=s.getPrefix();t=[].concat(t,"mock");s.Model.changeValueAction({key:t,value:e?{mock:e}:""})})),Z(s,"handleChangeTitle",(function(e){var t=s.getPrefix();t=[].concat(t,"title"),e=e.target.value;s.Model.changeValueAction({key:t,value:e})})),Z(s,"handleChangeType",(function(e){var t=s.getPrefix(),a=[].concat(t,"type");s.Model.changeTypeAction({key:a,value:e});var n=s.getUiPrefix(),o=U(e);t=o.uiKey,a=o.uiValue;s.UiModel.changeUiAction({prefix:n,uiKey:t,value:a,type:e})})),Z(s,"handleDeleteItem",(function(){var e=s.props,t=e.prefix,a=e.name,n=s.getPrefix();s.Model.deleteItemAction({key:n}),s.Model.enableRequireAction({prefix:t,name:a,required:!1}),a=s.getUiPrefix(),s.UiModel.deleteItemUiAction({prefix:a})})),Z(s,"handleShowEdit",(function(e,t){var a=s.props,n=a.data,o=a.name;(0,a.showEdit)(s.getPrefix(),e,n.properties[o][e],t)})),Z(s,"handleShowAdv",(function(){var e=s.props,t=e.data,a=e.name;(0,e.showAdv)(s.getPrefix(),t.properties[a])})),Z(s,"handleAddField",(function(){var e=s.props,t=e.prefix,a=e.name,n=e.uiPrefixMap;s.Model.addFieldAction({prefix:t,name:a}),s.UiModel.addFieldUiAction({uiPrefixMap:n,name:a})})),Z(s,"handleClickIcon",(function(){var e=s.getPrefix();e=[].concat(e,"properties");s.Model.setOpenValueAction({key:e})})),Z(s,"handleEnableRequire",(function(e){var t=s.props,a=t.prefix,n=t.name;e=e.target.checked;s.Model.enableRequireAction({prefix:a,name:n,required:e})})),Z(s,"handleChangeUiWidget",(function(e,t){var a=s.getUiPrefix(),n=B(e);s.UiModel.changeUiAction({prefix:a,uiKey:e,value:o().get(n,"value"),type:t})})),Z(s,"handleChangeGroup",(function(e){var t=s.getPrefix();t=[].concat(t,"group"),e=e.target.value;s.Model.changeValueAction({key:t,value:e})})),s._tagPaddingLeftStyle={},s.Model=n.Model.schema,s.UiModel=n.Model.uiSchema,s}return(0,l.default)(a,e),a.prototype.componentWillMount=function(){var e=this.props.prefix.filter((function(e){return"properties"!==e})).length;this.__tagPaddingLeftStyle={paddingLeft:20*(e+1)+"px"}},a.prototype.getPrefix=function(){return[].concat(this.props.prefix,this.props.name)},a.prototype.getUiPrefix=function(){var e=this.props,t=e.name,a=e.data;return[].concat(this.props.uiPrefixMap,{key:t,type:a.type})},a.prototype.render=function(){var e=this;console.log("dddd-xxxx",this.context);var a=this.props,n=a.name,r=a.data,i=a.prefix,d=a.showEdit,l=a.showAdv,u=a.uiSchema,p=a.uiPrefixMap,f=r.properties[n],m=[].concat(i,n),h=[].concat(p,[{key:n,type:"string"}]),g=i.join("."),v=[].concat(m,"properties").join("."),_=(g=this.context.getOpenValue([g]),v=this.context.getOpenValue([v]),R(u)),y="";return h.forEach((function(e,t){_=o().get(_,e.key),t===h.length-1&&(y=o().get(_,"uiKey"))})),g?t().createElement("div",null,t().createElement(c.Row,{type:"flex",justify:"space-around",align:"middle"},t().createElement(c.Col,{span:this.context.columnWidths.name,className:"col-item name-item col-item-name",style:this.__tagPaddingLeftStyle},t().createElement(c.Row,{type:"flex",justify:"space-around",align:"middle"},t().createElement(c.Col,{span:2,className:"down-style-col"},"object"===f.type?t().createElement("span",{className:"down-style",onClick:this.handleClickIcon},v?t().createElement(s.CaretDownOutlined,{className:"icon-object"}):t().createElement(s.CaretRightOutlined,{className:"icon-object"})):null),t().createElement(c.Col,{span:22},t().createElement(j,{addonAfter:t().createElement(c.Tooltip,{placement:"top",title:W("required")},t().createElement(c.Checkbox,{onChange:this.handleEnableRequire,checked:!o().isUndefined(r.required)&&-1!==r.required.indexOf(n)})),onChange:this.handleChangeName,value:n})))),t().createElement(c.Col,{span:this.context.columnWidths.type,className:"col-item col-item-type"},t().createElement(c.Select,{className:"type-select-style",onChange:this.handleChangeType,value:f.type},M.map((function(e,a){return t().createElement(X,{value:e,key:a},e)})))),this.context.isMock&&t().createElement(c.Col,{span:this.context.columnWidths.mock,className:"col-item col-item-mock"},t().createElement(Q,{schema:f,showEdit:function(){return e.handleShowEdit("mock",f.type)},onChange:this.handleChangeMock})),t().createElement(c.Col,{span:this.context.columnWidths.title,className:"col-item col-item-mock"},t().createElement(c.Input,{addonAfter:t().createElement(s.EditOutlined,{onClick:function(){return e.handleShowEdit("title")}}),placeholder:W("title"),value:f.title,onChange:this.handleChangeTitle})),t().createElement(c.Col,{span:this.context.columnWidths.desc,className:"col-item col-item-desc"},t().createElement(c.Input,{addonAfter:t().createElement(s.EditOutlined,{onClick:function(){return e.handleShowEdit("description")}}),placeholder:W("description"),value:f.description,onChange:this.handleChangeDesc})),this.context.showGroup&&t().createElement(c.Col,{span:this.context.columnWidths.group,className:"col-item col-item-group"},t().createElement(c.Input,{placeholder:W("group"),value:f.group,onChange:this.handleChangeGroup})),this.context.showUiSelect&&t().createElement(c.Col,{span:this.context.columnWidths.ui,className:"col-item col-item-ui"},t().createElement(c.Select,{className:"type-select-style",onChange:function(t){return e.handleChangeUiWidget(t,f.type)},value:y},V(f.type,f.format).map((function(e,a){return t().createElement(X,{value:e.uiKey,key:a},e.label)})))),t().createElement(c.Col,{span:2,className:"col-item col-item-setting"},t().createElement("span",{className:"adv-set",onClick:this.handleShowAdv},t().createElement(c.Tooltip,{placement:"top",title:W("adv_setting")},t().createElement(s.SettingOutlined,null))),t().createElement("span",{className:"delete-item",onClick:this.handleDeleteItem},t().createElement(s.CloseOutlined,{className:"close"})),"object"===f.type?t().createElement(oe,{prefix:i,name:n,uiPrefixMap:p}):t().createElement("span",{onClick:this.handleAddField},t().createElement(c.Tooltip,{placement:"top",title:W("add_sibling_node")},t().createElement(s.PlusOutlined,{className:"plus"}))))),t().createElement("div",{className:"option-formStyle"},$(m,f,d,l,u,p))):null},a}(e.PureComponent);te.contextTypes={getOpenValue:f().func,Model:f().object,UiModel:f().object,isMock:f().bool,showGroup:f().bool,showUiSelect:f().bool,columnWidths:f().object};var ae=function(e){function a(){return(0,i.default)(this,a),(0,d.default)(this,e.apply(this,arguments))}return(0,l.default)(a,e),a.prototype.shouldComponentUpdate=function(e){return!(o().isEqual(e.data,this.props.data)&&o().isEqual(e.prefix,this.props.prefix)&&o().isEqual(e.open,this.props.open)&&o().isEqual(e.uiSchema,this.props.uiSchema)&&o().isEqual(e.uiPrefixMap,this.props.uiPrefixMap))},a.prototype.render=function(){var e=this,a=this.props,n=a.data,o=a.prefix,s=a.showEdit,r=a.showAdv,i=a.uiSchema,d=a.uiPrefixMap;return t().createElement("div",{className:"object-style"},Object.keys(n.properties).map((function(a,n){return t().createElement(te,{key:n,data:e.props.data,name:a,prefix:o,showEdit:s,showAdv:r,uiSchema:i,uiPrefixMap:d})})))},a}(e.Component),ne=(0,a.connect)((function(e){return{open:e.schema.open}}))(ae),oe=function(e,a){var n=e.prefix,o=e.name,r=e.uiPrefixMap,i=a.Model.schema,d=a.Model.uiSchema;return a=t().createElement(c.Menu,null,t().createElement(c.Menu.Item,null,t().createElement("span",{onClick:function(){i.addFieldAction({prefix:n,name:o}),d.addFieldUiAction({uiPrefixMap:r})}},W("sibling_node"))),t().createElement(c.Menu.Item,null,t().createElement("span",{onClick:function(){i.setOpenValueAction({key:[].concat(n,o,"properties"),value:!0}),i.addChildFieldAction({key:[].concat(n,o,"properties")}),d.addChildFieldUiAction({uiPrefixMap:[].concat(r,[{key:o,type:"string"}])})}},W("child_node")))),t().createElement(c.Tooltip,{placement:"top",title:W("add_node")},t().createElement(c.Dropdown,{overlay:a},t().createElement(s.PlusOutlined,{className:"plus"})))};oe.contextTypes={Model:f().object,UiModel:f().object};var se=function(e){return e=$([],e.data,e.showEdit,e.showAdv,e.uiSchema,[]),t().createElement("div",{className:"schema-content"},e)};function re(e){!e.type&&e.properties&&"object"==(0,u.default)(e.properties)&&(e.type="object")}var ie=function e(t){if(!t||t.type||t.properties||(t.type="string"),re(t),"object"===t.type)t.properties||(t.properties={}),function(t){for(var a in t)re(t[a]),"array"!==t[a].type&&"object"!==t[a].type||e(t[a])}(t.properties);else{if("array"!==t.type)return t;t.items||(t.items={type:"string"}),e(t.items)}};function de(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var le=c.Select.Option,ue=c.Input.TextArea,ce=function(e,t,a,n){["integer","number"].includes(a.type)&&"default"===t&&!isNaN(e)&&(e=Number(e)),a[t]=e,n(a)},pe=function(e){function a(t,n){var s;return(0,i.default)(this,a),de(s=(0,d.default)(this,e.call(this,t)),"changeOtherValue",(function(e,t,a){a[t]=e,s.context.changeCustomValue(a)})),de(s,"changeEnumOtherValue",(function(e,t){0===(e=e.split("\n")).length||1===e.length&&!e[0]?delete t.enum:t.enum=e,s.context.changeCustomValue(t)})),de(s,"changeEnumOtherName",(function(e,t){0===(e=e.split("\n")).length||1===e.length&&!e[0]?delete t.enumNames:t.enumNames=e,s.context.changeCustomValue(t)})),de(s,"changeEnumDescOtherValue",(function(e,t){t.enumDesc=e,s.context.changeCustomValue(t)})),de(s,"onChangeCheckBox",(function(e,t){s.setState({checked:e}),e||(delete t.enum,s.context.changeCustomValue(t))})),s.state={checked:!o().isUndefined(t.data.enum)},s.format=n.Model.__jsonSchemaFormat,s}return(0,l.default)(a,e),a.prototype.componentWillReceiveProps=function(e){this.props.data.enum!==e.data.enum&&this.setState({checked:!o().isUndefined(e.data.enum)})},a.prototype.render=function(){var e=this,a=this.props.data;return console.log("data",a),t().createElement("div",null,t().createElement("div",{className:"default-setting"},W("base_setting")),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},W("default"),"\uff1a"),t().createElement(c.Col,{span:20},t().createElement(c.Input,{value:a.default,placeholder:W("default"),onChange:function(t){return e.changeOtherValue(t.target.value,"default",a)}}))),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:12},t().createElement(c.Row,{type:"flex",align:"middle"},t().createElement(c.Col,{span:8,className:"other-label"},W("minLength"),"\uff1a"),t().createElement(c.Col,{span:16},t().createElement(c.InputNumber,{value:a.minLength,placeholder:"min.length",onChange:function(t){return e.changeOtherValue(t,"minLength",a)}})))),t().createElement(c.Col,{span:12},t().createElement(c.Row,{type:"flex",align:"middle"},t().createElement(c.Col,{span:8,className:"other-label"},W("maxLength"),"\uff1a"),t().createElement(c.Col,{span:16},t().createElement(c.InputNumber,{value:a.maxLength,placeholder:"max.length",onChange:function(t){return e.changeOtherValue(t,"maxLength",a)}}))))),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},t().createElement("span",null,"Pattern\xa0",t().createElement(c.Tooltip,{title:W("pattern")},t().createElement(s.QuestionCircleOutlined,{style:{width:"10px"}})),"\xa0 :")),t().createElement(c.Col,{span:20},t().createElement(c.Input,{value:a.pattern,placeholder:"Pattern",onChange:function(t){return e.changeOtherValue(t.target.value,"pattern",a)}}))),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},t().createElement("span",null,W("enum"),t().createElement(c.Checkbox,{checked:this.state.checked,onChange:function(t){return e.onChangeCheckBox(t.target.checked,a)}})," ",":")),t().createElement(c.Col,{span:20},t().createElement(ue,{value:a.enum&&a.enum.length&&a.enum.join("\n"),disabled:!this.state.checked,placeholder:W("enum_msg"),autosize:{minRows:2,maxRows:6},onChange:function(t){e.changeEnumOtherValue(t.target.value,a)}}))),this.state.checked&&t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},t().createElement("span",null,W("enum_name"))),t().createElement(c.Col,{span:20},t().createElement(ue,{value:a.enumNames&&a.enumNames.length&&a.enumNames.join("\n"),disabled:!this.state.checked,placeholder:W("enum_msg"),autosize:{minRows:2,maxRows:6},onChange:function(t){e.changeEnumOtherName(t.target.value,a)}}))),this.state.checked&&t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},t().createElement("span",null,W("enum_desc"))),t().createElement(c.Col,{span:20},t().createElement(ue,{value:a.enumDesc,disabled:!this.state.checked,placeholder:W("enum_desc_msg"),autosize:{minRows:2,maxRows:6},onChange:function(t){e.changeEnumDescOtherValue(t.target.value,a)}}))),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},t().createElement("span",null,"format :")),t().createElement(c.Col,{span:20},t().createElement(c.Select,{showSearch:!0,style:{width:150},value:a.format,dropdownClassName:"json-schema-react-editor-adv-modal-select",placeholder:"Select a format",optionFilterProp:"children",optionLabelProp:"value",onChange:function(t){return e.changeOtherValue(t,"format",a)},filterOption:function(e,t){return 0<=t.props.value.toLowerCase().indexOf(e.toLowerCase())}},this.format.map((function(e){return t().createElement(le,{value:e.name,key:e.name},e.name," ",t().createElement("span",{className:"format-items-title"},e.title))}))))))},a}(e.PureComponent);pe.contextTypes={changeCustomValue:f().func,Model:f().object};var fe=function(e){function a(t){var n;return(0,i.default)(this,a),de(n=(0,d.default)(this,e.call(this,t)),"onChangeCheckBox",(function(e,t){n.setState({checked:e}),e||(delete t.enum,delete t.enumNames,n.setState({enum:"",enumNames:""}),n.context.changeCustomValue(t))})),de(n,"changeEnumOtherValue",(function(e,t){n.setState({enum:e}),0===(e=e.split("\n")).length||1===e.length&&!e[0]?delete t.enum:t.enum=e.map((function(e){return+e})),n.context.changeCustomValue(t)})),de(n,"onEnterEnumOtherValue",(function(e,t){e=e.split("\n").map((function(e){return+e})),t.enum=e,n.context.changeCustomValue(t)})),de(n,"changeEnumDescOtherValue",(function(e,t){n.setState({enumNames:e}),0===(e=e.split("\n")).length||1===e.length&&!e[0]?delete t.enumNames:t.enumNames=e.map((function(e){return+e})),n.context.changeCustomValue(t)})),n.state={checked:!o().isUndefined(t.data.enum),enum:o().isUndefined(t.data.enum)?"":t.data.enum.join("\n"),enumNames:o().isUndefined(t.data.enumNames)?"":t.data.enumNames.join("\n")},n}return(0,l.default)(a,e),a.prototype.componentWillReceiveProps=function(e){var t=o().isUndefined(this.props.data.enum)?"":this.props.data.enum.join("\n"),a=o().isUndefined(e.data.enum)?"":e.data.enum.join("\n");t!==a&&this.setState({enum:a}),(a=o().isUndefined(this.props.data.enumNames)?"":this.props.data.enumNames.join("\n"))!==(e=o().isUndefined(e.data.enumNames)?"":e.data.enumNames.join("\n"))&&this.setState({enumNames:e})},a.prototype.render=function(){var e=this,a=this.props.data;return t().createElement("div",null,t().createElement("div",{className:"default-setting"},W("base_setting")),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},W("default"),"\uff1a"),t().createElement(c.Col,{span:20},t().createElement(c.InputNumber,{value:a.default,placeholder:W("default"),onChange:function(t){return ce(t,"default",a,e.context.changeCustomValue)}}))),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:12},t().createElement(c.Row,{type:"flex",align:"middle"},t().createElement(c.Col,{span:13,className:"other-label"},t().createElement("span",null,"exclusiveMinimum\xa0",t().createElement(c.Tooltip,{title:W("exclusiveMinimum")},t().createElement(s.QuestionCircleOutlined,{style:{width:"10px"}})),"\xa0 :")),t().createElement(c.Col,{span:11},t().createElement(c.Switch,{checked:a.exclusiveMinimum,placeholder:"exclusiveMinimum",onChange:function(t){return ce(t,"exclusiveMinimum",a,e.context.changeCustomValue)}})))),t().createElement(c.Col,{span:12},t().createElement(c.Row,{type:"flex",align:"middle"},t().createElement(c.Col,{span:13,className:"other-label"},t().createElement("span",null,"exclusiveMaximum\xa0",t().createElement(c.Tooltip,{title:W("exclusiveMaximum")},t().createElement(s.QuestionCircleOutlined,{style:{width:"10px"}})),"\xa0 :")),t().createElement(c.Col,{span:11},t().createElement(c.Switch,{checked:a.exclusiveMaximum,placeholder:"exclusiveMaximum",onChange:function(t){return ce(t,"exclusiveMaximum",a,e.context.changeCustomValue)}}))))),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:12},t().createElement(c.Row,{type:"flex",align:"middle"},t().createElement(c.Col,{span:8,className:"other-label"},W("minimum"),"\uff1a"),t().createElement(c.Col,{span:16},t().createElement(c.InputNumber,{value:a.minimum,placeholder:W("minimum"),onChange:function(t){return ce(t,"minimum",a,e.context.changeCustomValue)}})))),t().createElement(c.Col,{span:12},t().createElement(c.Row,{type:"flex",align:"middle"},t().createElement(c.Col,{span:8,className:"other-label"},W("maximum"),"\uff1a"),t().createElement(c.Col,{span:16},t().createElement(c.InputNumber,{value:a.maximum,placeholder:W("maximum"),onChange:function(t){return ce(t,"maximum",a,e.context.changeCustomValue)}}))))),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},t().createElement("span",null,W("enum"),t().createElement(c.Checkbox,{checked:this.state.checked,onChange:function(t){return e.onChangeCheckBox(t.target.checked,a)}})," ",":")),t().createElement(c.Col,{span:20},t().createElement(ue,{value:this.state.enum,disabled:!this.state.checked,placeholder:W("enum_msg"),autosize:{minRows:2,maxRows:6},onChange:function(t){e.changeEnumOtherValue(t.target.value,a)}}))),this.state.checked&&t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},t().createElement("span",null,W("enum_desc")," \uff1a")),t().createElement(c.Col,{span:20},t().createElement(ue,{value:this.state.enumNames,disabled:!this.state.checked,placeholder:W("enum_desc_msg"),autosize:{minRows:2,maxRows:6},onChange:function(t){e.changeEnumDescOtherValue(t.target.value,a)}}))))},a}(e.PureComponent);fe.contextTypes={changeCustomValue:f().func};var me=function(e,a){var n=e.data;return e=o().isUndefined(n.default)?"":n.default?"true":"false",t().createElement("div",null,t().createElement("div",{className:"default-setting"},W("base_setting")),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:4,className:"other-label"},W("default"),"\uff1a"),t().createElement(c.Col,{span:20},t().createElement(c.Select,{value:e,onChange:function(e){return ce("true"===e,"default",n,a.changeCustomValue)},style:{width:200}},t().createElement(le,{value:"true"},"true"),t().createElement(le,{value:"false"},"false")))))};me.contextTypes={changeCustomValue:f().func};var he=function(e,a){var n=e.data;return t().createElement("div",null,t().createElement("div",{className:"default-setting"},W("base_setting")),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:6,className:"other-label"},t().createElement("span",null,"uniqueItems\xa0",t().createElement(c.Tooltip,{title:W("unique_items")},t().createElement(s.QuestionCircleOutlined,{style:{width:"10px"}})),"\xa0 :")),t().createElement(c.Col,{span:18},t().createElement(c.Switch,{checked:n.uniqueItems,placeholder:"uniqueItems",onChange:function(e){return ce(e,"uniqueItems",n,a.changeCustomValue)}}))),t().createElement(c.Row,{className:"other-row",type:"flex",align:"middle"},t().createElement(c.Col,{span:12},t().createElement(c.Row,{type:"flex",align:"middle"},t().createElement(c.Col,{span:12,className:"other-label"},W("min_items"),"\uff1a"),t().createElement(c.Col,{span:12},t().createElement(c.InputNumber,{value:n.minItems,placeholder:"minItems",onChange:function(e){return ce(e,"minItems",n,a.changeCustomValue)}})))),t().createElement(c.Col,{span:12},t().createElement(c.Row,{type:"flex",align:"middle"},t().createElement(c.Col,{span:12,className:"other-label"},W("max_items"),"\uff1a"),t().createElement(c.Col,{span:12},t().createElement(c.InputNumber,{value:n.maxItems,placeholder:"maxItems",onChange:function(e){return ce(e,"maxItems",n,a.changeCustomValue)}}))))))};he.contextTypes={changeCustomValue:f().func},(n=function(e,a){var n=e.data;e=JSON.parse(n),e={string:t().createElement(pe,{data:e}),number:t().createElement(fe,{data:e}),boolean:t().createElement(me,{data:e}),integer:t().createElement(fe,{data:e}),array:t().createElement(he,{data:e})}[e.type];return t().createElement("div",null,t().createElement("div",null,e),t().createElement("div",{className:"default-setting"},W("all_setting")),t().createElement(_,{data:n,mode:"json",onChange:function(e){return function(e,t){e.text&&t(e.jsonData)}(e,a.changeCustomValue)}}))}).contextTypes={changeCustomValue:f().func};var ge=n,ve=(n=y(686),y.n(n)),_e=(n=y(929),y.n(n)),ye=function(a){var n=a.schema,o=a.uiSchema,s=a.widgets,r=(0,e.useState)({}),i=r[0],d=r[1],l=(0,e.useState)([]),u=l[0],p=l[1];return console.log("valid",u),console.log("SchemaRenderForm",s),t().createElement("div",{style:{maxWidth:600}},t().createElement(ve(),{schema:n,uiSchema:o,formData:i,onChange:d,onValidate:p,displayType:"row",showDescIcon:!0,widgets:s}),t().createElement("button",{onClick:function(){var e=z(E(n)?JSON.parse(n):n,E(o)?JSON.parse(o):o);_e()(JSON.stringify(e)),c.message.success("\u590d\u5236\u6210\u529f")}},"\u590d\u5236"))};function be(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var xe=y(809),Ce=c.Select.Option,je=c.Input.TextArea,Se=c.Tabs.TabPane,Ie=function(e){function a(t){var n;return(0,i.default)(this,a),be(n=(0,d.default)(this,e.call(this,t)),"getColumnWidths",(function(){var e=n.props,t=e.isMock,a=e.showGroup,o=e.showUiSelect;return{name:6,type:3,mock:o=Math.floor(11/(5-(t?0:1)-(a?0:1)-(o?0:1))),title:o+1,desc:o+1,group:o,ui:o,setting:3}})),be(n,"showModal",(function(){n.setState({visible:!0})})),be(n,"handleOk",(function(){if("schema"!==n.importJsonType){if(!n.jsonData)return c.message.error("json \u6570\u636e\u683c\u5f0f\u6709\u8bef");var e=xe(n.jsonData);n.Model.changeEditorSchemaAction({value:e})}else{if(!n.jsonSchemaData)return c.message.error("json \u6570\u636e\u683c\u5f0f\u6709\u8bef");n.Model.changeEditorSchemaAction({value:n.jsonSchemaData})}n.setState({visible:!1})})),be(n,"handleCancel",(function(){n.setState({visible:!1})})),be(n,"showPreviewModal",(function(){n.setState({previewVisible:!0})})),be(n,"cancelPreviewModal",(function(){n.setState({previewVisible:!1})})),be(n,"alterMsg",(function(){})),be(n,"handleParams",(function(e){if(e.text){if(!0!==e.format)return n.alterMsg();ie(e.jsonData),n.Model.changeEditorSchemaAction({value:e.jsonData})}})),be(n,"changeType",(function(e,t){n.Model.changeTypeAction({key:[e],value:t});var a=U(t),o=a.uiKey;e=a.uiValue;n.UiModel.changeUiAction({prefix:[],uiKey:o,value:e,type:t})})),be(n,"handleImportJson",(function(e){return e.text&&!0===e.format?void(n.jsonData=e.jsonData):n.jsonData=null})),be(n,"handleImportJsonSchema",(function(e){return e.text&&!0===e.format?void(n.jsonSchemaData=e.jsonData):n.jsonSchemaData=null})),be(n,"showUiModal",(function(){n.setState({importUiSchemaVisible:!0})})),be(n,"cancelUiModal",(function(){n.setState({importUiSchemaVisible:!1})})),be(n,"handleImportUiSchema",(function(e){return e.text&&!0===e.format?void(n.jsonUiSchemaData=e.jsonData):n.jsonUiSchemaData=null})),be(n,"handleUiSchemaOk",(function(){var e=function(e){var t={};return e&&("object"===e.type&&e.hasOwnProperty("properties")&&!o().isEmpty(e.properties)?t=(0,r.default)({},K(e)):"array"===e.type&&e.hasOwnProperty("items")&&!o().isEmpty(e.items)&&(t=q(e)),console.log("xxxx",t)),t}(n.uiSchemaData);n.UiModel.changeEditorUiSchemaAction({value:e,isInit:!0})})),be(n,"addChildField",(function(e){n.Model.addChildFieldAction({key:[e]}),n.UiModel.addChildFieldUiAction({uiPrefixMap:[]}),n.setState({show:!0})})),be(n,"clickIcon",(function(){n.setState({show:!n.state.show})})),be(n,"changeValue",(function(e,t){"mock"===e[0]&&(t=t?{mock:t}:""),n.Model.changeValueAction({key:e,value:t})})),be(n,"changeUiWidget",(function(e,t){var a=B(t);n.UiModel.changeUiAction({prefix:[],type:n.props.schema.type,uiKey:t,value:o().get(a,"value")})})),be(n,"handleEditOk",(function(e){n.setState({editVisible:!1});var t=n.state[e];"mock"===e&&(t=t?{mock:t}:""),n.Model.changeValueAction({key:n.state.descriptionKey,value:t})})),be(n,"handleEditCancel",(function(){n.setState({editVisible:!1})})),be(n,"showEdit",(function(e,t,a,o){var s;"object"!==o&&"array"!==o&&(e=[].concat(e,t),a="mock"===t?a?a.mock:"":a,n.setState(((s={editVisible:!0})[t]=a,s.descriptionKey=e,s.editorModalName=t,s)))})),be(n,"changeDesc",(function(e,t){var a;n.setState(((a={})[t]=e,a))})),be(n,"handleAdvOk",(function(){0===n.state.itemKey.length?(n.Model.changeEditorSchemaAction({value:n.state.curItemCustomValue}),n.UiModel.changeEditorUiSchemaAction({value:n.state.curItemCustomValue})):(n.Model.changeValueAction({key:n.state.itemKey,value:n.state.curItemCustomValue}),n.UiModel.changeUiValueAction({key:n.state.uiItemKey,value:n.state.curItemCustomValue})),n.setState({advVisible:!1})})),be(n,"handleAdvCancel",(function(){n.setState({advVisible:!1})})),be(n,"showAdv",(function(e,t){n.setState({advVisible:!0,itemKey:e,curItemCustomValue:t})})),be(n,"setCurUiItem",(function(e,t){n.setState({uiItemKey:e})})),be(n,"changeCustomValue",(function(e){n.setState({curItemCustomValue:e})})),be(n,"changeCustomName",(function(e){n.setState({curItemCustomValue:e})})),be(n,"changeCheckBox",(function(e){n.setState({checked:e}),n.Model.requireAllAction({required:e,value:n.props.schema})})),n.alterMsg=function(e,t){var a=void 0;return function(){clearTimeout(a),a=setTimeout(e,2e3)}}(n.alterMsg),(t=t=t.customWidgets)&&Array.isArray(t)&&(O=F.concat(t)),n.state={visible:!1,show:!0,editVisible:!1,description:"",descriptionKey:null,advVisible:!1,itemKey:[],curItemCustomValue:null,checked:!1,editorModalName:"",mock:"",previewVisible:!1,importUiSchemaVisible:!1,uiItemKey:[]},n.Model=n.props.Model.schema,n.UiModel=n.props.Model.uiSchema,n.jsonSchemaData=null,n.jsonUiSchemaData=null,n.jsonData=null,n.columnWidths=n.getColumnWidths(),n}return(0,l.default)(a,e),a.prototype.componentWillReceiveProps=function(e){if("function"==typeof this.props.onChange&&(this.props.schema!==e.schema||this.props.uiSchema!==e.uiSchema)){var t=JSON.stringify(this.props.schema||""),a=JSON.stringify(e.schema||""),n=JSON.stringify(this.props.uiSchema||""),o=JSON.stringify(e.uiSchema||"");if(t!==a||n!==o)return this.props.onChange(a,o)}this.props.data&&this.props.data!==e.data&&this.Model.changeEditorSchemaAction({value:JSON.parse(e.data)}),this.props.uiData&&this.props.uiData!==e.uiData&&this.UiModel.changeEditorUiSchemaAction({value:JSON.parse(e.uiData),isInit:!0})},a.prototype.componentWillMount=function(){var e=this.props.data;e=e||'{\n "type": "object",\n "title": "",\n "properties":{}\n }',this.Model.changeEditorSchemaAction({value:JSON.parse(e)});var t=this.props.uiData;t=t||"{}",this.UiModel.changeEditorUiSchemaAction({value:JSON.parse(t),isInit:!0})},a.prototype.getChildContext=function(){var e=this;return{getOpenValue:function(t){return P(e.props.open,t)},changeCustomValue:this.changeCustomValue,Model:this.props.Model,UiModel:this.props.UiModel,isMock:this.props.isMock,showGroup:this.props.showGroup,showUiSelect:this.props.showUiSelect,columnWidths:this.columnWidths}},a.prototype.render=function(){var e=this,a=this.state,n=a.visible,o=a.editVisible,r=a.advVisible,i=a.checked,d=a.editorModalName,l=a.previewVisible,u=a.importUiSchemaVisible,p=this.props,f=p.schema,m=p.uiSchema,h=p.widgets,g="object"!==this.props.schema.type&&"array"!==this.props.schema.type;return t().createElement("div",{className:"json-schema-react-editor"},!this.props.hideImportBtn&&t().createElement(c.Button,{className:"import-json-button",type:"primary",onClick:this.showModal},W("import_json")),this.props.showImportSchemaBtn&&t().createElement(c.Button,{className:"import-json-button",type:"primary",onClick:this.showUiModal},W("import")),this.props.showPreviewBtn&&t().createElement(c.Button,{className:"import-json-button",type:"primary",onClick:this.showPreviewModal},W("preview")),t().createElement(c.Modal,{maskClosable:!1,visible:n,title:W("import_json"),onOk:this.handleOk,onCancel:this.handleCancel,className:"json-schema-react-editor-import-modal",okText:"ok",cancelText:W("cancel"),footer:[t().createElement(c.Button,{key:"back",onClick:this.handleCancel},W("cancel")),t().createElement(c.Button,{key:"submit",type:"primary",onClick:this.handleOk},W("ok"))]},t().createElement(c.Tabs,{defaultActiveKey:"json",onChange:function(t){e.importJsonType=t}},t().createElement(Se,{tab:"JSON",key:"json"},t().createElement(_,{data:"",mode:"json",onChange:this.handleImportJson})),t().createElement(Se,{tab:"JSON-SCHEMA",key:"schema"},t().createElement(_,{data:"",mode:"json",onChange:this.handleImportJsonSchema})))),t().createElement(c.Modal,{maskClosable:!1,visible:u,title:W("import_json_schema"),onOk:this.handleOk,onCancel:this.cancelUiModal,className:"json-schema-react-editor-import-modal",okText:"ok",cancelText:W("cancel"),footer:[t().createElement(c.Button,{key:"back",onClick:this.cancelUiModal},W("cancel")),t().createElement(c.Button,{key:"submit",type:"primary",onClick:this.handleUiSchemaOk},W("ok"))]},t().createElement(_,{data:"",mode:"json",onChange:this.handleImportUiSchema})),t().createElement(c.Modal,{title:t().createElement("div",null,W(d),"\xa0","mock"===d&&t().createElement(c.Tooltip,{title:W("mockLink")},t().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/YMFE/json-schema-editor-visual/issues/38"},t().createElement(s.QuestionCircleOutlined,null)))),maskClosable:!1,visible:o,onOk:function(){return e.handleEditOk(d)},onCancel:this.handleEditCancel,okText:W("ok"),cancelText:W("cancel")},t().createElement(je,{value:this.state[d],placeholder:W(d),onChange:function(t){return e.changeDesc(t.target.value,d)},autosize:{minRows:6,maxRows:10}})),t().createElement(c.Modal,{maskClosable:!1,visible:l,title:W("preview"),onOk:this.handleOk,onCancel:this.cancelPreviewModal,className:"json-schema-react-editor-import-modal",okText:"ok",cancelText:W("cancel"),footer:[t().createElement(c.Button,{key:"back",onClick:this.cancelPreviewModal},W("cancel")),t().createElement(c.Button,{key:"submit",type:"primary",onClick:this.cancelPreviewModal},W("ok"))]},t().createElement(ye,{schema:f,uiSchema:m,widgets:h})),r&&t().createElement(c.Modal,{title:W("adv_setting"),maskClosable:!1,visible:r,onOk:this.handleAdvOk,onCancel:this.handleAdvCancel,okText:W("ok"),width:780,cancelText:W("cancel"),className:"json-schema-react-editor-adv-modal"},t().createElement(ge,{data:JSON.stringify(this.state.curItemCustomValue,null,2)})),this.props.showHeader&&t().createElement(c.Row,null,this.props.showEditor&&t().createElement(c.Col,{span:6,className:"wrapper object-style"},t().createElement(c.Row,{type:"flex",align:"middle",style:{background:"rgba(0,0,0,.02)"},className:"root-header-wrapper"},"JSON Schema")),t().createElement(c.Col,{span:this.props.showEditor?18:24,className:"wrapper object-style"},t().createElement(c.Row,{type:"flex",justify:"space-around",align:"middle",style:{background:"rgba(0,0,0,.02)",flexWrap:"nowrap"},className:"root-header-wrapper"},t().createElement(c.Col,{span:this.columnWidths.name,className:"col-item name-item col-item-name"},t().createElement(c.Row,{type:"flex",justify:"space-around",align:"middle",style:{flexWrap:"nowrap"}},t().createElement(c.Col,{span:2,className:"down-style-col"}),t().createElement(c.Col,{span:20},"\u540d\u79f0"),t().createElement(c.Col,{className:"textAlignLeft",span:2,style:{minWidth:35}},"\u5fc5\u987b"))),t().createElement(c.Col,{span:this.columnWidths.type,style:{display:"flex",justifyContent:"center"},className:"textAlignLeft"},t().createElement("span",{style:{width:"90%"}},"\u7c7b\u578b")),this.props.isMock&&t().createElement(c.Col,{span:this.columnWidths.mock,className:"textAlignLeft"},"mock"),t().createElement(c.Col,{span:this.columnWidths.title,className:"textAlignLeft"},"\u6807\u9898"),t().createElement(c.Col,{span:this.columnWidths.desc,className:"textAlignLeft"},"\u63cf\u8ff0"),this.props.showGroup&&t().createElement(c.Col,{span:this.columnWidths.group,className:"textAlignLeft group-header"},"\u5206\u7ec4"),this.props.showUiSelect&&t().createElement(c.Col,{span:this.columnWidths.ui,className:"textAlignLeft ui-display-header"},"\u5c55\u793a"),t().createElement(c.Col,{span:2,className:"textAlignLeft"},"\u8bbe\u7f6e",this.props.hideRoot&&"object"===f.type&&t().createElement("span",{onClick:function(){return e.addChildField("properties")},style:{marginLeft:20}},t().createElement(c.Tooltip,{placement:"top",title:W("add_child_node")},t().createElement(s.PlusOutlined,{className:"plus"}))))))),t().createElement(c.Row,null,this.props.showEditor&&t().createElement(c.Col,{span:6},t().createElement(_,{className:"pretty-editor",mode:"json",data:JSON.stringify(f,null,2),onChange:this.handleParams})),t().createElement(c.Col,{span:this.props.showEditor?18:24,className:"wrapper object-style",style:{marginTop:this.props.showHeader?0:8}},!this.props.hideRoot&&t().createElement(c.Row,{type:"flex",align:"middle",justify:"space-around"},t().createElement(c.Col,{span:this.columnWidths.name,className:"col-item name-item col-item-name"},t().createElement(c.Row,{type:"flex",justify:"space-around",align:"middle"},t().createElement(c.Col,{span:2,className:"down-style-col"},"object"===f.type?t().createElement("span",{className:"down-style",onClick:this.clickIcon},this.state.show?t().createElement(s.CaretDownOutlined,{className:"icon-object"}):t().createElement(s.CaretRightOutlined,{className:"icon-object"})):null),t().createElement(c.Col,{span:22},t().createElement(c.Input,{addonAfter:t().createElement(c.Tooltip,{placement:"top",title:"checked_all"},t().createElement(c.Checkbox,{checked:i,disabled:g,onChange:function(t){return e.changeCheckBox(t.target.checked)}})),disabled:!0,value:"root"})))),t().createElement(c.Col,{span:this.columnWidths.type,className:"col-item col-item-type"},t().createElement(c.Select,{className:"type-select-style",onChange:function(t){return e.changeType("type",t)},value:f.type},M.map((function(e,a){return t().createElement(Ce,{value:e,key:a},e)})))),this.props.isMock&&t().createElement(c.Col,{span:this.columnWidths.mock,className:"col-item col-item-mock"},t().createElement(Q,{schema:f,showEdit:function(){return e.showEdit([],"mock",f.mock,f.type)},onChange:function(t){return e.changeValue(["mock"],t)}})),t().createElement(c.Col,{span:this.columnWidths.title,className:"col-item col-item-mock"},t().createElement(c.Input,{addonAfter:t().createElement(s.EditOutlined,{onClick:function(){return e.showEdit([],"title",f.title)}}),placeholder:W("title"),value:f.title,onChange:function(t){return e.changeValue(["title"],t.target.value)}})),t().createElement(c.Col,{span:this.columnWidths.desc,className:"col-item col-item-desc"},t().createElement(c.Input,{addonAfter:t().createElement(s.EditOutlined,{onClick:function(){return e.showEdit([],"description",e.props.schema.description)}}),placeholder:W("description"),value:f.description,onChange:function(t){return e.changeValue(["description"],t.target.value)}})),this.props.showGroup&&t().createElement(c.Col,{span:this.columnWidths.group,className:"col-item col-item-group"},t().createElement(c.Input,{placeholder:W("group"),value:f.group,onChange:function(t){return e.changeValue(["group"],t.target.value)}})),this.props.showUiSelect&&t().createElement(c.Col,{span:this.columnWidths.ui,className:"col-item col-item-ui"},t().createElement(c.Select,{className:"type-select-style",onChange:function(t){return e.changeUiWidget(null,t)},value:m.uiKey,disabled:"object"===f.type},V(f.type).map((function(e,a){return t().createElement(Ce,{value:e.uiKey,key:a},e.label)})))),t().createElement(c.Col,{span:2,className:"col-item col-item-setting"},t().createElement("span",{className:"adv-set",onClick:function(){e.showAdv([],e.props.schema),e.setCurUiItem([],e.props.uiSchema)}},t().createElement(c.Tooltip,{placement:"top",title:W("adv_setting")},t().createElement(s.SettingOutlined,null))),"object"===f.type?t().createElement("span",{onClick:function(){return e.addChildField("properties")}},t().createElement(c.Tooltip,{placement:"top",title:W("add_child_node")},t().createElement(s.PlusOutlined,{className:"plus"}))):null)),this.state.show&&t().createElement(se,{data:f,uiSchema:m,showEdit:this.showEdit,showAdv:this.showAdv}))))},a}(t().Component);Ie.childContextTypes={getOpenValue:f().func,changeCustomValue:f().func,Model:f().object,UiModel:f().object,isMock:f().bool,showGroup:f().bool,showUiSelect:f().bool,columnWidths:f().object},Ie.propTypes={data:f().string,onChange:f().func,showEditor:f().bool,isMock:f().bool,showGroup:f().bool,showUiSelect:f().bool,Model:f().object,UiModel:f().object,widgets:f().object,customWidgets:f().array};var Te=(0,a.connect)((function(e){return{schema:e.schema.data,uiSchema:e.uiSchema.data,open:e.schema.open}}))(Ie),we=(n=y(676),y.n(n)),Ee=function(){var e=new Map;return{getCache:function(t){return e[t]},setCache:function(t,a){return e[t]=a,this},removeCache:function(t){return delete e[t],this}}}(),De=y(51),Me=1,ke={state:{message:null,data:{title:"",type:"object",properties:{},required:[]},open:{properties:!0}},changeEditorSchemaAction:function(e,t){ie(t.value),e.data=t.value},changeNameAction:function(e,t,a){var n=t.prefix,o=t.name,s=t.value,r=a.data,i=A(n);t=P(r,i);var d=[].concat(t.required||[]),l=P(r,n),c={};if(a=l[o],t=[].concat(n,s,"properties").join("."),r=[].concat(n,o,"properties").join("."),a.properties&&(delete e.open[r],e.open[t]=!0),!l[s]||"object"!=(0,u.default)(l[s])){for(var p in d=d.map((function(e){return e===o?s:e})),i.push("required"),L(e.data,i,d),l)p===o?c[s]=l[p]:c[p]=l[p];L(e.data,n,c)}},changeValueAction:function(e,t){var a=t.key;t.value?L(e.data,a,t.value):N(e.data,a)},changeTypeAction:function(e,t,a){var n=t.key;t=t.value,n=A(n);(a=P(a.data,n)).type!==t&&(t=k[t],a=a.description?{description:a.description}:{},a=Object.assign({},t,a),L(e,[].concat("data",n),a))},enableRequireAction:function(e,t,a){var n=A(t.prefix);a=P(a.data,n);var o=[].concat(a.required||[]);a=o.indexOf(t.name),!t.required&&0<=a?(o.splice(a,1),n.push("required"),0===o.length?N(e.data,n):L(e.data,n,o)):t.required&&-1===a&&(o.push(t.name),n.push("required"),L(e.data,n,o))},requireAllAction:function(e,t,a){var n=R(t.value);(function e(t,a){if("object"===t.type){var n=function(e){var t=[];return Object.keys(e).map((function(e){return t.push(e)})),t}(t.properties);a?t.required=[].concat(n):delete t.required,function(t,a){for(var n in t)"array"!==t[n].type&&"object"!==t[n].type||e(t[n],a)}(t.properties,a)}else{if("array"!==t.type)return t;e(t.items,a)}})(n,t.required),e.data=n},deleteItemAction:function(e,t,a){var n,o=(t=t.key)[t.length-1],s=P(a=a.data,t=A(t)),r={};for(n in s)n!==o&&(r[n]=s[n]);L(e.data,t,r)},addFieldAction:function(e,t,a){var n=t.prefix,o=(a=a.data,t.name),s=P(a,n),r={},i=A(n);a=P(a,i);var d=[].concat(a.required||[]),l="";if(o)for(var u in s)r[u]=s[u],u===o&&(r[l="field_"+Me++]=k.string,d.push(l));else(r=Object.assign({},s))[l="field_"+Me++]=k.string,d.push(l);Ee.setCache("newNodeName",l),L(e.data,n,r),i.push("required"),L(e.data,i,d)},addChildFieldAction:function(e,t,a){var n=t.key,o=(a=P(t=a.data,n),{});(o=Object.assign({},a))[a="field_"+Me++]=k.string,Ee.setCache("newNodeName",a),L(e.data,n,o);var s=A(n);t=P(t,s);var r=[].concat(t.required||[]);r.push(a),s.push("required"),L(e.data,s,r)},setOpenValueAction:function(e,t,a){var n,o=t.key.join(".");n=De.isUndefined(t.value)?!P(a.open,[o]):t.value,L(e.open,[o],n)}},Pe={state:{message:null,data:{}},changeEditorUiSchemaAction:function(e,t){var a,n=t.value;t.isInit?e.data=n:"string"===o().get(n,"type")&&(t=(a=U("string",o().get(n,"format"))).uiKey,n=a.uiFormat,e.data={type:"string",uiKey:t,format:n})},changeUiValueAction:function(e,t){var a=t.key;t.value?G(e.data,a,t.value):e.data},changeUiAction:function(e,t){var a=t.prefix,n=t.uiKey,o=t.value,s=t.type,r=(t=a.map((function(e){return e.key})),{type:s,uiKey:n});switch(o){case"textarea":case"date":case"image":r.format=o;break;case"range":r.type=o,r.format="dateTime";break;case"number":r.type=o;break;case"object":case"input":break;case"array":r.items={type:"string",uiKey:"string-input"};break;default:r["ui:widget"]=o}n=r,G(e.data,t,n)},deleteItemUiAction:function(e,t,a){var n,o=(t=t.prefix.map((function(e){return e.key})))[t.length-1],s=(t=A(t),P(a.data,t)),r={};for(n in s)n!==o&&(r[n]=s[n]);G(e.data,t,r,!0)},addFieldUiAction:function(e,t){var a=Ee.getCache("newNodeName"),n=R(t.uiPrefixMap);n.push({key:a,type:"string"}),a=n.map((function(e){return e.key})),G(e.data,a,{type:"string",uiKey:"string-input"})},addChildFieldUiAction:function(e,t){var a=Ee.getCache("newNodeName"),n=R(t.uiPrefixMap);n.push({key:a,type:"string"}),a=n.map((function(e){return e.key})),G(e.data,a,{type:"string",uiKey:"string-input"})}};function Le(){return(Le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a,n=arguments[t];for(a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ne=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.lang&&(e=n.lang,w=e);var o=we()({schema:ke,uiSchema:Pe});n.format?o.__jsonSchemaFormat=n.format:o.__jsonSchemaFormat=D,n.mock&&(o.__jsonSchemaMock=n.mock);var s=o.getStore();return(n=function(e){return t().createElement(a.Provider,{store:s,className:"wrapper"},t().createElement(Te,Le({Model:o},e)))}).propTypes={data:f().string,onChange:f().func,showEditor:f().bool,isMock:f().bool,showHeader:f().bool,hideRoot:f().bool,hideImportBtn:f().bool,showPreviewBtn:f().bool,showImportSchemaBtn:f().bool,showGroup:f().bool,showUiSelect:f().bool,options:f().object,customWidgets:f().array,widgets:f().object},n},Ae=z}(),b}()}))}).call(this,a("./node_modules/webpack/buildin/module.js")(e))},"./src/components/layout/ContentLayout.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),a("./node_modules/prop-types/index.js");function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"ContentLayout__ContentWrapper",componentId:"sc-175sdhl-0"})(["width:100%;position:relative;display:flex;background:#fff;flex-direction:column;padding:0 50px;.content-title{display:flex;flex-direction:row;font-size:24px;color:#1f2d3d;letter-spacing:2px;padding:20px 0 10px 0;position:relative;}.content-body{display:flex;flex:1 auto;flex-direction:column;background-color:#ffff;margin-bottom:20px;}"]);t.default=function(e){var t=e.title,a=void 0===t?"":t,o=e.toolbar,r=e.children,i=e.className;return(0,n.default)(s,{className:i},void 0,(0,n.default)("div",{className:"content-title"},void 0,(0,n.default)("span",{},void 0,a),o&&(0,n.default)("div",{},void 0,o)),(0,n.default)("div",{className:"content-body"},void 0,r))}},"./src/components/layout/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/layout/ContentLayout.jsx");Object.defineProperty(t,"ContentLayout",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}})},"./src/components/layoutGrid/App.css":function(e,t,a){},"./src/components/layoutGrid/CardItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),a("./node_modules/react-dom/index.js")),l=p(a("./node_modules/react-image/es/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-dnd/lib/index.js")),c=p(a("./node_modules/lodash.flow/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f="CARD",m={hover:function(e,t,a){if(!a)return null;var n=t.getItem().index,o=e.index;if(n===e.lastIndex||o===e.lastIndex)return null;if(n===o)return null;var s=(0,d.findDOMNode)(a).getBoundingClientRect(),r=(s.right-s.left)/2,i=t.getClientOffset().x-s.left;return n<o&&i<r||n>o&&i>r?null:(e.onDND(n,o),void(t.getItem().index=o))}};var h=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.connectDragSource,a=e.connectDropTarget,o=e.item,s=e.num,r=e.maxNum,i=s>=r?r:s;return t(a((0,n.default)("div",{style:{width:"-webkit-calc(100% /"+i+" - 20px)",margin:10}},void 0,(0,n.default)(l.default,{style:{cursor:"pointer",width:"100%",height:300},src:o.url}))))},t}(i.Component);t.default=(0,c.default)((0,u.DragSource)(f,{beginDrag:function(e){return{index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})),(0,u.DropTarget)(f,m,(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver(),isOverCurrent:t.isOver({shallow:!0}),canDrop:t.canDrop(),itemType:t.getItemType()}})))(h)},"./src/components/layoutGrid/LayoutGrid.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(c(i),c(a("./src/components/layoutGrid/CardItem.jsx"))),l=a("./node_modules/react-dnd/lib/index.js"),u=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/react-dnd-html5-backend/lib/index.js")));function c(e){return e&&e.__esModule?e:{default:e}}a("./src/components/layoutGrid/App.css");var p=[{title:"first Card",id:1,content:"this is first Card",url:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1582888096522&di=2a921bd2e6b6bc0528a9867cefaa62f9&imgtype=0&src=http%3A%2F%2Fa4.att.hudong.com%2F21%2F09%2F01200000026352136359091694357.jpg"},{title:"second Card",id:2,content:"this is second Card",url:"http://a3.att.hudong.com/68/61/300000839764127060614318218_950.jpg"},{title:"Third Card",id:3,content:"this is Third Card",url:"http://img4.imgtn.bdimg.com/it/u=2601494423,3716174643&fm=26&gp=0.jpg"},{title:"Third Card",id:4,content:"this is Third Card",url:"http://img4.imgtn.bdimg.com/it/u=2382173205,2602855535&fm=26&gp=0.jpg"}],f=function(e){function t(){var a,n,r;(0,o.default)(this,t);for(var i=arguments.length,d=Array(i),l=0;l<i;l++)d[l]=arguments[l];return a=n=(0,s.default)(this,e.call.apply(e,[this].concat(d))),n.state={CardList:p},n.handleDND=function(e,t){var a=n.state.CardList,o=a[e];a.splice(e,1),a.splice(t,0,o),n.setState({CardList:a})},r=a,(0,s.default)(n,r)}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)("div",{className:"card"},void 0,this.state.CardList.map((function(t,a){return(0,n.default)(d.default,{style:{width:"100%"},item:t,maxNum:e.props.maxNum?e.props.maxNum:"3",index:a,num:e.state.CardList.length,onDND:e.handleDND},a)})))},t}(i.Component);t.default=(0,l.DragDropContext)(u.default)(f)},"./src/components/listButtons/ListButtons.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/divider/index.js")),o=m(a("./node_modules/babel-runtime/helpers/extends.js")),s=m(a("./node_modules/antd/es/dropdown/index.js")),r=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js")),u=m(a("./node_modules/antd/es/menu/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/dropdown/style/index.js"),a("./node_modules/antd/es/menu/style/index.js");var c=m(a("./node_modules/react/index.js")),p=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),f=a("./node_modules/react-router-dom/esm/react-router-dom.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=u.default.Item,g={color:"rgba(0, 0, 0, 0.25)"},v={color:"rgba(0, 0, 0, 0.65)"},_=(0,r.default)(n.default,{type:"vertical"}),y=(0,r.default)(p.DownOutlined,{}),b=(0,r.default)(n.default,{type:"vertical"}),x=(0,r.default)(n.default,{type:"vertical"}),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.getLocationState=function(e){var t={states:null};if(e.state)for(var a in t={},e.state)t[a]=e.state[a];return t},n.disabledFun=function(){return!1},n.getDropdown=function(e,t,a){return(0,r.default)(s.default,{overlay:(0,r.default)(u.default,{},void 0,e.map((function(e,s){return s>=t&&(e.handleType&&"link"===e.handleType?(0,r.default)(h,{},a+"-"+s,(0,r.default)(f.Link,{disabled:e.disabled,style:e.disabled?(0,o.default)({},g,e.style):e.style,target:e.isTargetBlank?"_blank":"",to:{pathname:e.handleAction,state:n.getLocationState(e)}},void 0,e.handleName)):(0,r.default)(h,{onClick:e.disabled?n.disabledFun:e.handleAction},a+"-"+s,(0,r.default)("a",{style:e.disabled?g:v,disabled:e.disabled,href:null},void 0,e.handleName)))})))},a,(0,r.default)("a",{href:null,onClick:function(e){return e.preventDefault()}},void 0,_,"\u66f4\u591a",y))},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.buttons,n=t.maxShowNum,o=n||999;return(0,r.default)("div",{style:{display:"flex"}},void 0,a.map((function(t,s){return s===o&&a.length>n+1?e.getDropdown(a,o,s):s<=o?t.handleType&&"link"===t.handleType?(0,r.default)(f.Link,{disabled:t.disabled,style:t.style,target:t.isTargetBlank?"_blank":"",to:{pathname:t.handleAction,state:e.getLocationState(t)}},s,0!==s&&b,t.handleName):t.handleAction?(0,r.default)("a",{style:t.style,href:null,disabled:t.disabled,onClick:t.disabled?e.disabledFun:t.handleAction},s,0!==s&&x,t.handleName):(0,r.default)("span",{},void 0,t.handleName):void 0})))},t}(c.default.PureComponent);t.default=C},"./src/components/markdown/MarkdownView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/antd/es/notification/index.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/notification/style/index.js");var d=f(a("./node_modules/react/index.js")),l=(f(a("./node_modules/prop-types/index.js")),f(a("./src/utils/request.js"))),u=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=f(a("./src/utils/constants.js")),p=f(a("./node_modules/react-markdown/lib/react-markdown.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=u.default.div.withConfig({displayName:"MarkdownView__MarkdownStyles",componentId:"sc-1urtp7x-0"})(["width:100%;background:#fff;padding:20px 50px;ul,ol{margin-bottom:0.83999rem;padding-top:0.16001rem;color:#333;}li{font-feature-settings:'kern' 1,'onum' 1,'liga' 1;margin-left:1rem;line-height:28px;}li > ul,li > ol{margin-bottom:0;}p{padding-top:0.66001rem;font-feature-settings:'kern' 1,'onum' 1,'liga' 1;margin-top:0;color:#333;}p,pre{margin-bottom:1.33999rem;}pre{display:block;margin:0 0 10px;word-break:break-all;word-wrap:break-word;color:#333;border:1px solid #ccc;border-radius:4px;font-size:1rem;padding:0.66001rem 9.5px 9.5px;line-height:2rem;background:linear-gradient( to bottom,#fff 0,#fff 0.75rem,#f5f7fa 0.75rem,#f5f7fa 2.75rem,#fff 2.75rem,#fff 4rem );background-size:100% 4rem;border-color:#d3daea;}blockquote{margin:0;}blockquote p{font-size:1rem;margin-bottom:0.33999rem;font-style:italic;padding:0.66001rem 1rem 1rem;border-left:3px solid #a0aabf;}th,td{padding:12px;}h1,h2,h3,h4,h5,h6{font-feature-settings:'dlig' 1,'liga' 1,'lnum' 1,'kern' 1;font-style:normal;font-weight:600;margin-top:0;color:#333;}h1{line-height:3rem;font-size:1.6rem;margin-bottom:0.21999rem;}h2{font-size:1.4rem;margin-bottom:0.1835837rem;}h2,h3{line-height:3rem;}h3{font-size:1.35rem;margin-bottom:0.07599rem;}h4{font-size:1.25rem;margin-bottom:0.546865rem;}h5{font-size:1.15rem;margin-bottom:-0.56251rem;}h6{font-size:1rem;margin-bottom:-0.65001rem;}a{cursor:pointer;color:#35d7bb;text-decoration:none;}a:hover,a:focus{border-bottom-color:#35d7bb;color:#dff9f4;}img{height:auto;max-width:100%;}code{color:#c7254e;background-color:#f9f2f4;border-radius:4px;}code,kbd{padding:2px 4px;}kbd{color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,0.25);}kbd kbd{padding:0;font-size:100%;box-shadow:none;}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0;}table{width:100%;max-width:100%;margin-bottom:20px;background-color:#fff;thead > tr{th{padding:8px;text-align:left;line-height:1.4285714;border-top:1px solid #ddd;vertical-align:bottom;border-bottom:2px solid #ddd;}&:first-child >th{border-top:0;border:1px solid #ddd;}}tbody > tr{td{padding:8px;line-height:1.4285714;vertical-align:top;border:1px solid #ddd;}&:nth-child(odd) > td{background-color:#f9f9f9;}&:hover > td{background-color:#f5f5f5;}}}"]),h=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.componentDidMount=function(){var e=n;(0,l.default)({basePath:"relative",url:n.props.markdownUrl,method:"get"}).then((function(t){return e.setState({markdown:t.data.replace("@#$",c.default.SERVER_URL+"/aiSquare/openApi")})})).catch((function(t){o.default.error({key:"SYSTEM_ERROR",message:"\u52a0\u8f7d\u7cfb\u7edf\u4fe1\u606f["+e.props.title+"]\u5931\u8d25",description:"\u6587\u4ef6\u4e0d\u5b58\u5728:"+e.props.markdownUrl})}))},n.state={markdown:""},n}return(0,i.default)(t,e),t.prototype.render=function(){return(0,n.default)(m,{},void 0,(0,n.default)(p.default,{source:this.state.markdown}))},t}(d.default.PureComponent);t.default=h},"./src/components/menuDrawer/MenuDrawer.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/antd/es/drawer/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/drawer/style/index.js");var l=v(a("./node_modules/react/index.js")),u=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=v(a("./src/components/modelConfig/modelConfigPanel.jsx")),p=v(a("./src/components/Modal/ModalView.jsx")),f=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-router-dom/esm/react-router-dom.js")),m=a("./src/components/auth/textAuth.jsx"),h=a("./src/utils/commonUtil.js"),g=v(a("./src/module/sysManage/helpPage/component/GuidePage.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var y=u.default.div.withConfig({displayName:"MenuDrawer__Wrapper",componentId:"sc-1e0wbl3-0"})([".item-title{font-size:14px;color:#222121;font-weight:550;}.item-btn{margin-top:16px;border-radius:4px;}.ant-btn-primary{background:#167cd1;}.btn-item-container{margin-bottom:32px;}.desc-item-container{display:flex;font-size:14px;color:#222121;line-height:32px;}.item-name{width:120px;text-align:right;font-weight:500;}.item-desc{opacity:0.7;}"]),b=[{title:"\u5e2e\u52a9\u624b\u518c",type:"btn",items:[{title:"1. \u672c\u6587\u6863\u5e2e\u52a9\u7528\u6237\u5f00\u5c55\u4e00\u4e2a\u52a8\u6001\u7684\u9ad8\u4eae\u56fe\u6807\uff0c\u4fbf\u4e8e\u4e86\u89e3\u7cfb\u7edf\u7684\u64cd\u4f5c\u3002",action:{type:"btn-dialog",text:"\u52a8\u6001\u6307\u793a",target:"_blank",path:""}},{title:"2. \u672c\u6587\u6863\u5e2e\u52a9\u7528\u6237\u8fdb\u884c\u64cd\u4f5c\u7c7b\u7684\u6587\u6863\u8bf4\u660e\u3002",action:{type:"btn",text:"\u64cd\u4f5c\u6307\u5357",target:"_blank",path:""}},{title:"3. \u672c\u6587\u6863\u5e2e\u52a9\u7528\u6237\u67e5\u770b\u5f00\u53d1\u7c7b\u7684\u6848\u4f8b\u3002",action:{type:"btn",text:"\u793a\u4f8b",target:"_blank",path:""}},{title:"4. \u672c\u6587\u6863\u5e2e\u52a9\u7528\u6237\u67e5\u770b\u4e00\u4e9b\u5e38\u89c1\u8fd0\u884c\u95ee\u9898\u3002",action:{type:"btn",text:"\u5e38\u89c1\u95ee\u9898",target:"_blank",path:""}}]},{title:"\u5e38\u7528\u540d\u79f0\u89e3\u91ca",type:"desc",items:[{title:"\u5e73\u53f0\u8bf4\u660e\uff1a",desc:"\u6570\u636e\u667a\u80fd\u5e73\u53f0\u878d\u5408\u6570\u636e-\u6a21\u578b-\u670d\u52a1\u4e3a\u4e00\u4f53\uff0c\u5b9e\u73b0\u8d44\u6e90\u903b\u8f91\u9694\u79bb\u7684\u4e00\u7ad9\u5f0f\u5f00\u53d1\u3002"},{title:"\u9879\u76ee\uff1a",desc:"\u8d44\u6e90\u903b\u8f91\u9694\u79bb\u5b9e\u4f53\u3002"},{title:"\u9879\u76ee\u6210\u5458\uff1a",desc:"\u9879\u76ee\u4e0b\u7684\u56e2\u961f\u6210\u5458\u3002"},{title:"\u9879\u76ee\u8d44\u6e90\uff1a",desc:"\u9879\u76ee\u4e0b\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u751f\u4ea7\u7684\u7269\u7406\u8d44\u6e90\u3002"},{title:"\u6570\u636e\u96c6\uff1a",desc:"\u80fd\u7528\u4e8e\u6a21\u578b\u5f00\u53d1\u548c\u63a8\u7406\u7684\u6570\u636e\u3002"},{title:"\u7ed3\u6784\u5316\u6570\u636e\u96c6\uff1a",desc:"\u4ee5\u8868\u4e3a\u4e3b\u7684\u6570\u636e\u3002"},{title:"\u975e\u7ed3\u6784\u5316\u6570\u636e\u96c6\uff1a",desc:"\u4ee5\u56fe\u7247\u3001\u6587\u672c\u4e3a\u4e3b\u7684\u6570\u636e\u3002"},{title:"\u6570\u636e\u5f00\u53d1\u4efb\u52a1\uff1a",desc:"\u7ed3\u6784\u5316/\u975e\u7ed3\u6784\u5316\u6570\u636e\u7684\u5f00\u53d1\u548c\u6807\u6ce8\u4efb\u52a1\u3002"},{title:"\u7f16\u7801\u8bad\u7ec3\uff1a",desc:"\u7f16\u7801\u4e3a\u6838\u5fc3\u7684\u6a21\u578b\u8bad\u7ec3\uff0c\u9002\u5408\u7a0b\u5e8f\u5458\u3002"},{title:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\uff1a",desc:"\u5c01\u88c5\u6a21\u578b\uff0c\u63d0\u4f9b\u53ef\u89c6\u5316\u5411\u5bfc\u6d41\u7a0b\u7684\u6a21\u578b\u8bad\u7ec3\uff0c\u9002\u5408\u4e1a\u52a1\u4eba\u5458\u3002"},{title:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1\uff1a",desc:"\u6a21\u578b\u53d1\u5e03\u6210\u5728\u7ebfAPI\u670d\u52a1\u3002"},{title:"\u79bb\u7ebf\u63a8\u7406\u4efb\u52a1\uff1a",desc:"\u6a21\u578b\u53d1\u5e03\u6210\u79bb\u7ebfAPI\u4efb\u52a1\u3002"},{title:"\u57fa\u7840\u955c\u50cf\uff1a",desc:"\u63d0\u4f9b\u73af\u5883\u548c\u7b97\u6cd5\u5305\u7684\u955c\u50cf\uff0c\u4e0d\u5177\u5907\u4e1a\u52a1\u80fd\u529b\u3002"},{title:"\u8bad\u7ec3\u955c\u50cf\uff1a",desc:"\u63d0\u4f9b\u73af\u5883\u548c\u7b97\u6cd5\u5305\u7684\u955c\u50cf\uff0c\u5177\u5907\u7f16\u7801\u5efa\u6a21\u8bad\u7ec3\u80fd\u529b\u3002"},{title:"\u63a8\u7406\u955c\u50cf\uff1a",desc:"\u63d0\u4f9b\u73af\u5883\u548c\u7b97\u6cd5\u5305\u7684\u955c\u50cf\uff0c\u5177\u5907\u542f\u52a8API\u670d\u52a1\u3002"}]}],x=(0,s.default)(g.default,{}),C=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.onClose=function(){n.props.hideDrawer()},n.operationModalVisible=function(e){n.setState({modalVisible:e})},n.handleAction=function(e){"btn-dialog"===_.get(e,"action.type")&&(n.props.hideDrawer(),n.operationModalVisible(!0))};var o=_.get(a.drawerItem,"addition.menuType"),s=(0,m.hasText)("root.app."+o),d=s&&(0,h.isJsonString)(s)?JSON.parse(s):b;return n.state={configJson:d},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.configJson,a=this.props.drawerItem,r=_.get(a,"addition.menuType");return t=(0,m.hasText)("root.app."+r)?(0,m.hasText)("root.app."+r):"",t=(0,h.isJsonString)(t)?JSON.parse(t):b,(0,s.default)(o.default,{title:a.name,width:620,closable:!1,onClose:this.onClose,visible:this.props.visible},void 0,(0,s.default)(p.default,{viewType:"view",onCancelType:!1,width:1064,callVisible:function(){return e.operationModalVisible(!1)},modalVisible:this.state.modalVisible,comp:x}),(0,s.default)(y,{},void 0,Array.isArray(t)&&t.map((function(t){return(0,s.default)(c.default,{title:t.title,bodyStyle:{padding:"16px 0 0 16px"}},t.title,Array.isArray(t.items)&&t.items.map((function(a,o){return"btn"===t.type?(0,s.default)("div",{className:"btn-item-container"},o,(0,s.default)("div",{className:"item-title"},void 0,a.title),(0,s.default)(n.default,{className:"item-btn",type:"primary",size:"small",onClick:function(){return e.handleAction(a)}},void 0,"link"===_.get(a,"action.type","link")?(0,s.default)(f.Link,{to:_.get(a,"action.path"),target:_.get(a,"action.target")},void 0,_.get(a,"action.text")):"href"===_.get(a,"action.type","link")?(0,s.default)("a",{href:_.get(a,"action.path"),target:_.get(a,"action.target")},void 0,_.get(a,"action.text")):(0,s.default)("span",{},void 0,_.get(a,"action.text")))):(0,s.default)("div",{className:"desc-item-container"},o,(0,s.default)("div",{className:"item-name"},void 0,a.title),(0,s.default)("div",{className:"item-desc"},void 0,a.desc))})))}))))},t}(l.default.Component);t.default=C},"./src/components/modelConfig/GradeItemCondSetting.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.GradeItemCondSettingDom=void 0;var n=h(a("./node_modules/antd/es/input-number/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input-number/style/index.js");var d=h(a("./node_modules/react/index.js")),l=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=h(a("./node_modules/lodash/lodash.js")),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/redux/selectors/enumDic.js"),m=h(a("./src/module/indiset/IndiSetSelector.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var g=p.Form.Item,v=t.GradeItemCondSettingDom=l.default.li.withConfig({displayName:"GradeItemCondSetting__GradeItemCondSettingDom",componentId:"j3qy8t-0"})(["margin-bottom:10px;float:left;width:32%;.delButton{color:#ff0000;padding-left:10px;cursor:pointer;}.forbidButton{color:#ff0000;padding-left:10px;cursor:not-allowed;}"]),_=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.delClick=function(){n.props.delClick(n.props.index)},n.handleChange=function(e){n.data.operator=e,n.props.onChange(n.props.index,n.data)},n.handiBlur=function(e,t){"paramKey"===t?n.data.paramKey=c.default.get(e,"val"):n.data.paramValue=c.default.toString(c.default.toInteger(e.substring(0,e.length-1))/100),n.props.onChange(n.props.index,n.data)},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.data}:{validate:!1}},n.data=n.props.data;var o=n.props,i=o.setValidateFunc,d=o.index;return c.default.isFunction(i)&&i("gradeItem"+d,n.validateFun),n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,o.default)(p.Form,{layout:"inline"},this.props.index,(0,o.default)(v,{},void 0,(0,o.default)(g,{},void 0,t("paramKey"+this.props.index,{rules:[{required:!0}],initialValue:this.data.paramKey})((0,o.default)(m.default,{onChange:function(t){return e.handiBlur(t,"paramKey")},disabled:this.props.disabled,selectedField:this.data.paramKey,indiIds:this.props.selectedIndiIds}))),(0,o.default)(g,{},void 0,t("paramValue"+this.props.index,{rules:[{required:!0}],initialValue:Math.round(100*this.data.paramValue)})((0,o.default)(n.default,{disabled:this.props.disabled,min:0,max:100,formatter:function(e){return e+"%"},onBlur:function(t){return e.handiBlur(t.target.value,"paramValue")}})),(0,o.default)("span",{className:this.props.disabled?"forbidButton":"delButton",onClick:function(){!e.props.disabled&&e.delClick()}},void 0,"\u5220\u9664"))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{relationSignData:(0,f.dicGroupHelper)(e,"RELATION_SIGN")}}))(p.Form.create()(_))},"./src/components/modelConfig/GradeSetCondSetting.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.GradeConfigDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=c(a("./src/components/modelConfig/GradeItemCondSetting.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var p=t.GradeConfigDom=d.default.ul.withConfig({displayName:"GradeSetCondSetting__GradeConfigDom",componentId:"txcitj-0"})(["padding-left:0px;float:left;width:100%;list-style-type:none;margin-top:20px;height:auto;max-height:150px;overflow-y:auto;"]),f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.delClick=function(e){for(var t=[],a=0;a<e;a++)t.push(n.state.datas[a]);for(var o=e+1;o<n.state.datas.length;o++)t.push(n.state.datas[o]);n.setState({datas:t}),n.props.onChange(t,e),n.props.deleteValiFuncs()},n.onChange=function(e,t){var a=n.state.datas;a[e]=t,n.setState({datas:a.concat([])})},n.state={datas:n.props.datas},n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(e){return{datas:e.datas}},t.prototype.render=function(){var e=this;return(0,n.default)(p,{style:{display:"Auto"===this.state.gradeType?"none":""}},void 0,this.state.datas.map((function(t,a){return(0,n.default)(u.default,{selectedIndiIds:e.props.selectedIndiIds,setValidateFunc:e.props.setValidateFunc,disabled:e.props.disabled,moduleWidth:e.props.moduleWidth,delClick:e.delClick,onChange:e.onChange,index:a,data:t},_.uniqueId())})))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/components/modelConfig/IndiItemCondSetting.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.IndiItemCondSettingDom=void 0;var n=y(a("./node_modules/antd/es/input/index.js")),o=y(a("./node_modules/antd/es/tooltip/index.js")),s=y(a("./node_modules/babel-runtime/helpers/extends.js")),r=y(a("./node_modules/babel-runtime/helpers/jsx.js")),i=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=y(a("./node_modules/babel-runtime/helpers/inherits.js")),u=y(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=y(a("./node_modules/react/index.js")),p=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=y(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./src/redux/selectors/enumDic.js"),v=y(a("./src/module/indiset/IndiSetSelector.jsx")),_=a("./src/redux/selectors/dataSource.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=u.default.Option,x=h.Form.Item,C={marginRight:5},j=t.IndiItemCondSettingDom=p.default.li.withConfig({displayName:"IndiItemCondSetting__IndiItemCondSettingDom",componentId:"sc-1xwv7e1-0"})([".delButton{color:#ff0000;cursor:pointer;margin-right:1px;}.disabledButton{color:#ff0000;cursor:not-allowed;margin-right:1px;}"]),S=(0,r.default)(b,{value:""},void 0,"\u8bf7\u9009\u62e9"),I=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.restoreDatas=function(e){return e.fieldFilterRule=e.fieldEnName+e.operator+e.val,delete e.operator,delete e.val,n.data=e,e},n.delClick=function(){n.props.delClick(n.props.index)},n.handleChange=function(e){n.data.operator=e,n.props.onChange(n.props.index,n.data)},n.handleSampleBlur=function(e){var t=n.data;t.fieldEnName=m.default.get(e,"val"),t.fieldCnName=m.default.get(e,"text"),t.fieldId=m.default.get(e,"id"),n.props.onChange(n.props.index,t)},n.handleValueBlur=function(e){var t=n.data;t.val=e.target.value,n.props.onChange(n.props.index,t)},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.data}:{validate:!1}},n.data=n.props.data;var o=n.props,s=o.setValidateFunc,r=o.index;return m.default.isFunction(s)&&s("indiItem"+r,n.validateFun),n.state={rangeVal:""},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.relationSignData.list();return(0,r.default)(h.Form,{style:void 0===this.props.liStyle?{height:"45px"}:{},layout:"inline"},this.props.index,(0,r.default)(j,{style:(0,s.default)({},this.props.liStyle)},void 0,(0,r.default)(x,{help:null,style:C},void 0,t("fieldEnName",{rules:[{required:!0}],initialValue:this.data.fieldEnName})((0,r.default)(v.default,{onChange:this.handleSampleBlur,disabled:this.props.disabled,selectedId:this.data.fieldId,selectedEnName:this.data.fieldEnName}))),(0,r.default)(x,{help:null,style:C},void 0,t("operator",{rules:[{required:!0}],initialValue:this.data.operator})((0,r.default)(u.default,{disabled:this.props.disabled,onChange:this.handleChange,style:{width:this.props.moduleWidth+"px"}},void 0,S,a.map((function(e,t){return(0,r.default)(b,{value:e.value},t,e.txt)}))))),(0,r.default)(x,{style:{marginRight:"1px"}},void 0,(0,r.default)(o.default,{placement:"topLeft",title:null!=this.props.getFieldData?this.props.getFieldData.get("fieldSimple"):"--",arrowPointAtCenter:!0},void 0,t("val",{rules:[{required:!0}],initialValue:this.data.val})((0,r.default)(n.default,{disabled:this.props.disabled,onBlur:this.handleValueBlur,placeholder:"\u586b\u5199\u5173\u7cfb\u503c",style:{width:this.props.moduleWidth+"px"}})))),(0,r.default)(x,{style:{marginRight:"1px"}},void 0,(0,r.default)("span",{style:{display:0===this.props.index?"openOne"===this.props.type?"":"none":""},className:this.props.disabled?"disabledButton":"delButton",onClick:this.props.disabled?null:function(){e.delClick()}},void 0,"\u5220\u9664"))))},t}(c.default.PureComponent);t.default=(0,f.connect)((function(e,t){return{relationSignData:(0,g.dicGroupHelper)(e,"RELATION_SIGN"),getFieldData:(0,_.getFieldSimpleById)(e,t.data)}}))(h.Form.create()(I))},"./src/components/modelConfig/IndiSetCondSetting.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.IndiSetCondSettingDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js")),d=p(a("./node_modules/react/index.js")),l=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=p(a("./src/components/modelConfig/IndiItemCondSetting.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=t.IndiSetCondSettingDom=l.default.ul.withConfig({displayName:"IndiSetCondSetting__IndiSetCondSettingDom",componentId:"sc-3p2iy9-0"})(["width:100%;height:auto;max-height:216px;overflow-y:auto;list-style-type:none;padding:1.4% 0px 0px 0px;"]),m=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.delClick=function(e){for(var t=[],a=0;a<e;a++)t.push(n.state.datas[a]);for(var o=e+1;o<n.state.datas.length;o++)t.push(n.state.datas[o]);n.setState({datas:t}),n.props.onChange(t,"del"),n.props.deleteValiFuncs()},n.onChange=function(e,t){var a=n.state.datas;a[e]=t,n.setState({datas:a.concat([])}),n.props.onChange(n.state.datas)},n.state={datas:n.props.datas},n}return(0,i.default)(t,e),t.getDerivedStateFromProps=function(e){return{datas:e.datas}},t.prototype.render=function(){var e=this;return(0,o.default)(f,{style:(0,n.default)({},this.props.ulStyle)},void 0,this.state.datas.map((function(t,a){return(0,o.default)(c.default,{type:e.props.type,setValidateFunc:e.props.setValidateFunc,disabled:e.props.disabled,moduleWidth:e.props.moduleWidth,delClick:e.delClick,onChange:e.onChange,index:a,data:t,liStyle:e.props.liStyle},_.uniqueId())})))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(m)},"./src/components/modelConfig/mainParamPanel.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PanelWrapper=void 0;var n=l(a("./node_modules/babel-runtime/helpers/jsx.js")),o=l(a("./node_modules/babel-runtime/helpers/extends.js")),s=l(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=l(a("./node_modules/react/index.js")),i=l(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),d=(l(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.PanelWrapper=i.default.div.withConfig({displayName:"mainParamPanel__PanelWrapper",componentId:"ks3uqq-0"})(["float:left;width:49.5%;border-radius:4px;margin-left:1%;border:1px solid #ccd5e0;.titleDiv{margin:2% 0px 2% 0.8%;font-size:12px;color:#475669;letter-spacing:0.86px;}.panel-bodys{position:relative;}"]);t.default=function(e){var t=e.bodyStyle,a=e.panelBodyStyle,i=e.children,l=(0,s.default)(e,["bodyStyle","panelBodyStyle","children"]);return r.default.createElement(u,(0,o.default)({},l,{style:(0,o.default)({},t),__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\modelConfig\\mainParamPanel.jsx",lineNumber:23}}),(0,n.default)("div",{className:"titleDiv"},void 0,(0,n.default)(d.SettingOutlined,{style:{fontSize:"10px",color:"#475669",margin:"0px 0.8% 0px 0.8%"}}),"\u914d\u7f6e\u5173\u952e\u53c2\u6570"),(0,n.default)("div",{className:"panel-bodys",style:(0,o.default)({},a,{width:"100%"})},void 0,i))}},"./src/components/modelConfig/modelConfigPanel.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PanelWrapper=void 0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=p(a("./node_modules/antd/es/checkbox/index.js")),s=p(a("./node_modules/babel-runtime/helpers/jsx.js")),r=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/checkbox/style/index.js");var l=p(a("./node_modules/react/index.js")),u=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=t.PanelWrapper=u.default.div.withConfig({displayName:"modelConfigPanel__PanelWrapper",componentId:"sc-1iwsun2-0"})([".icon{font-size:12px;color:#a2b0c4;cursor:pointer;}flex-basis:auto;.panel-head-wrapper{color:",";font-size:14px;font-weight:800;padding-top:10px;}.panel-head{text-indent:12px;line-height:16px;border-left:3px solid ",";}.panel-body{padding:16px 0px 16px 32px;position:relative;}.collapse-icon{color:#147bd1;cursor:pointer;font-size:12px;}.expand{animation:expand 0.1s linear 0s 1;transform-origin:75% 50%;transform:rotate(90deg);}.hidden-children{visibility:hidden;height:0;transition:width 2s;}.hidden-children{display:none;}@keyframes expand{from{transform:rotate(0);}to{transform:rotate(90deg);}}@keyframes hideBody{from{height:auto;}to{height:0;}}"],(function(e){return e.theme.color.title}),(function(e){return e.theme.bgcolor.blue})),m=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.onChange=function(){n.props.onChange(!n.state.checkbox),n.setState({checkbox:!n.state.checkbox})},n.toggleExpand=function(){var e=!n.state.collapse;n.props.onToggleExpand&&n.props.onToggleExpand(e),n.setState({collapse:e})},n.state={checkbox:a.checkbox,collapse:a.collapse},n}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.collapse!==e.collapse&&this.props.collapse!==this.state.collapse&&this.setState({collapse:this.props.collapse})},t.prototype.render=function(){var e=this.props,t=e.title,a=e.sign,r=e.titleColour,i=e.children,d=e.checkbox,l=e.explain,u=e.bodyStyle,p=e.checkboxTitle,m=e.style,h=e.hintMsg,g=this.state.collapse,v=(void 0===g||!0===g)&&void 0===d;return(0,s.default)(f,{style:m,showCollapse:v},void 0,(0,s.default)("div",{className:"panel-head-wrapper"},void 0,(0,s.default)("div",{className:"false"===r?"":"panel-head"},void 0,a?(0,s.default)("span",{style:{marginRight:"5px",color:"red"}},void 0,"*"):"",t,h&&(0,s.default)("span",{style:{marginLeft:40,color:"red",fontSize:12}},void 0,h),(0,s.default)(o.default,{checked:d,style:{marginLeft:15,display:void 0===d?"none":""},onChange:this.onChange},void 0,p||""),void 0!==l?(0,s.default)(c.QuestionCircleOutlined,{className:"icon",title:l}):"",void 0!==g&&(0,s.default)(c.RightOutlined,{className:"collapse-icon "+(g?"expand":"un-expand"),onClick:this.toggleExpand}))),(0,s.default)("div",{className:"panel-body",style:(0,n.default)({},u)},void 0,(void 0===d||!0===d)&&void 0===g&&i,void 0!==g&&(0,s.default)("div",{className:v?"":"hidden-children"},void 0,i)))},t}(l.default.Component);t.default=m},"./src/components/resizableTable/ResizableTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=h(a("./node_modules/antd/es/table/index.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js")),l=h(a("./node_modules/babel-runtime/helpers/jsx.js")),u=h(a("./node_modules/babel-runtime/helpers/extends.js")),c=h(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),p="C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\resizableTable\\ResizableTable.jsx";a("./node_modules/antd/es/table/style/index.js");var f=h(a("./node_modules/react/index.js")),m=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-resizable/index.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"ResizableTable__TableWrapper",componentId:"w8oyx4-0"})([".react-resizable{position:relative;background-clip:padding-box;}.react-resizable-handle{position:absolute;width:10px;height:100%;bottom:0;right:-5px;cursor:col-resize;z-index:1;}.ant-table-empty .ant-table-body{overflow-x:hidden !important;}"]),v=(n=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return o.call(n),n.state={columns:a.columns},n}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e){_.isEqual(e.columns,this.props.columns)||this.setState({columns:this.props.columns})},t.prototype.render=function(){var e=this,t=this.state.columns.map((function(t,a){return(0,u.default)({},t,{onHeaderCell:function(t){return{width:t.width,onResize:e.handleResize(a)}}})})),a=(0,u.default)({},this.props,{columns:t,components:this.components});return(0,l.default)(g,{className:"resizable__table-wrapper"},void 0,f.default.createElement(s.default,(0,u.default)({},a,{__source:{fileName:p,lineNumber:85}})))},t}(f.default.PureComponent),o=function(){var e=this;this.components={header:{cell:function(e){return function(e){var t=e.onResize,a=e.width,n=(0,c.default)(e,["onResize","width"]);return a?(0,l.default)(m.Resizable,{width:a,height:0,onResize:t,draggableOpts:{enableUserSelectHack:!1}},void 0,f.default.createElement("th",(0,u.default)({},n,{__source:{fileName:p,lineNumber:38}}))):f.default.createElement("th",(0,u.default)({},n,{__source:{fileName:p,lineNumber:33}}))}(e)}}},this.handleResize=function(t){return function(a,n){var o=n.size;e.setState((function(e){var a=e.columns,n=[].concat(a);return n[t]=(0,u.default)({},n[t],{width:o.width}),{columns:n}}))}}},n);t.default=v},"./src/components/selector/BusiTypesSelector.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(u(i),u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=(u(a("./node_modules/prop-types/index.js")),u(a("./node_modules/lodash/lodash.js")));function u(e){return e&&e.__esModule?e:{default:e}}var c=d.default.dl.withConfig({displayName:"BusiTypesSelector__DimSelectorWrapper",componentId:"sc-1xfekxa-0"})(["margin-bottom:60px;dl,dt{padding-left:25px;}dt{line-height:18px;height:18px;margin-bottom:20px;font-size:14px;font-weight:500;border-left:5px solid #52b3f5;}dl{line-height:30px;height:30px;margin-bottom:10px;cursor:pointer;}dl:hover,dl.selected{background:#e0e6ed;border-radius:4px;}"]),p=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.selectItem=function(e){e.id!==n.state.selectItem&&(n.setState({selectItem:e.id}),n.props.onChange(e.id,e.name,e.key))},n.state={selectItem:a.selectItem},n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(e){return{selectItem:e.selectItem}},t.prototype.render=function(){var e=this,t=this.props,a=t.title,o=t.dimDic,s=t.showAll,r=t.renderItem,i=t.allTxt,d={id:t.allValue,name:i,key:"ALL"},u=this.state.selectItem,p=[].concat(o);return s&&p.unshift(d),this.state.selectItem||(u=l.default.get(p[0],"id")),(0,n.default)(c,{},void 0,(0,n.default)("dt",{},void 0,a),p.map((function(t){return(0,n.default)("dl",{className:u===t.id?"selected":"",onClick:function(){e.selectItem(t)}},t.id,l.default.isFunction(r)?r(t):t.name)})))},t}(i.Component);t.default=p},"./src/components/selector/DimSelector.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(u(i),u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=(u(a("./node_modules/prop-types/index.js")),u(a("./node_modules/lodash/lodash.js")));function u(e){return e&&e.__esModule?e:{default:e}}var c=d.default.dl.withConfig({displayName:"DimSelector__DimSelectorWrapper",componentId:"iwgksl-0"})(["margin-bottom:60px;dl,dt{padding-left:25px;}dt{line-height:18px;height:18px;margin-bottom:20px;font-size:14px;font-weight:500;border-left:5px solid #52b3f5;}dl{line-height:30px;height:30px;margin-bottom:10px;cursor:pointer;}dl:hover,dl.selected{background:#e0e6ed;border-radius:4px;}"]),p=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.selectItem=function(e){e.value!==n.state.selectItem&&(n.setState({selectItem:e.value}),n.props.onChange(e.value,e.txt,e.key))},n.state={selectItem:a.selectItem},n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(e){return{selectItem:e.selectItem}},t.prototype.render=function(){var e=this,t=this.props,a=t.title,o=t.dimDic,s=t.showAll,r=t.renderItem,i=t.allTxt,d={value:t.allValue,txt:i,key:"ALL"},u=this.state.selectItem,p=[].concat(o);return s&&p.unshift(d),this.state.selectItem||(u=l.default.get(p[0],"value")),(0,n.default)(c,{},void 0,(0,n.default)("dt",{},void 0,a),p.map((function(t){return(0,n.default)("dl",{className:u===t.value?"selected":"",onClick:function(){e.selectItem(t)}},t.value,l.default.isFunction(r)?r(t):t.txt)})))},t}(i.Component);p.defaultProps={onChange:function(){},dimDic:[],title:"title",showAll:!0,allValue:"-1",allTxt:"\u5168\u90e8"},t.default=p},"./src/components/selector/ToggleSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/divider/index.js")),o=m(a("./node_modules/antd/es/tooltip/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var l=m(a("./node_modules/react/index.js")),u=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/lodash/lodash.js"))),c=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./node_modules/polished/dist/polished.es.js"),f=a("./src/components/Icon/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=c.default.ul.withConfig({displayName:"ToggleSelect__ToggleWrapper",componentId:"sc-2d0nfz-0"})(["",";list-style:none;margin:0;padding:0;float:left;li{float:left;cursor:pointer;padding:5px;color:#a7b4c5;user-select:none;&:first-child{border-left:none;}&:hover{color:#54b2f5;.svg-icon{fill:#54b2f5;}}&.selected{color:#303643;.svg-icon{fill:#303643;}}.ant-divider,.ant-divider-vertical{margin:0 4px;}.ant-tooltip-open,.svg-icon{margin-right:0;}}"],(0,p.clearFix)()),g=(0,s.default)(n.default,{type:"vertical"}),v=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.selectItem=function(e){n.setState({selectItem:e.value}),n.props.onChange(e.value,e.txt)},n.state={selectItem:a.selectItem||a.ds&&a.ds[0]},n}return(0,d.default)(t,e),t.getDerivedStateFromProps=function(e){return{selectItem:e.selectItem}},t.prototype.render=function(){var e=this;return!0===this.props.enableCard&&(0,s.default)(h,{},void 0,this.props.ds.map((function(t,a){return[a>0&&(0,s.default)("li",{style:{display:void 0===e.props.enableCard||"CARD"!==t.value||e.props.enableCard?"":"none",padding:"5px 0"}},"d-"+t.key,(void 0===e.props.enableCard||"LIST"===t.value&&e.props.enableCard)&&g),(0,s.default)("li",{style:{display:void 0===e.props.enableCard||"CARD"!==t.value||e.props.enableCard?"":"none"},className:e.state.selectItem===t.value?"selected":"",onClick:function(){e.selectItem(t)}},t.value,u.default.isFunction(e.props.renderItem)?renderItem(t):[t.icon&&(t.tooltip?(0,s.default)(o.default,{title:t.tooltip},"i-"+t.key,(0,s.default)(f.IconSvg,{type:t.icon})):(0,s.default)(f.IconSvg,{type:t.icon},"i-"+t.key))].filter(Boolean))]})).filter(Boolean))},t}(l.default.PureComponent);v.defaultProps={onChange:u.default.noop},t.default=v},"./src/components/selector/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./src/components/selector/DimSelector.jsx")),o=i(a("./src/components/selector/BusiTypesSelector.jsx")),s=i(a("./src/components/selector/ToggleSelect.jsx")),r=i(a("./src/components/selector/indi-selector/IndiSelector.jsx"));function i(e){return e&&e.__esModule?e:{default:e}}t.default={DimSelector:n.default,ToggleSelect:s.default,IndiSelector:r.default,BusiTypesSelector:o.default}},"./src/components/selector/indi-selector/IndiSelector.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/extends.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js")),d=f(a("./node_modules/react/index.js")),l=(a("./node_modules/prop-types/index.js"),a("./node_modules/@ant-design/icons/es/index.js")),u=a("./src/components/selector/indi-selector/IndiSelector.style.jsx"),c=f(a("./src/components/selector/indi-selector/IndiSelectorDropDown.jsx")),p=a("./node_modules/react-transition-group/esm/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=(0,o.default)("div",{className:"selector-txt __placeholder"},void 0,"\u8bf7\u9009\u62e9\u6307\u6807"),h=(0,o.default)(l.DownOutlined,{}),g=(0,o.default)(l.UpOutlined,{}),v=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.togglePanel=function(e){n.state.showPanel?n.closePanel():n.showPanel(e)},n.closePanel=function(){n.setState({showPanel:!1}),_.isFunction(n.props.onClose)&&n.props.onClose()},n.showPanel=function(e){var t=e.currentTarget.getBoundingClientRect(),a=document.body.clientWidth,o=document.documentElement.scrollLeft,s=document.documentElement.scrollTop;n.setState({showPanel:!0,left:t.left+450>a?t.left+o-150:t.left+o,top:t.top+t.height+s+5}),_.isFunction(n.props.onClose)&&n.props.onOpen()},n.selectIndi=function(e){_.get(n.state.selected,"id")!==_.get(e,"id")&&(_.isFunction(n.props.onChange)&&n.props.onChange(e),n.setState({selected:e})),_.isFunction(n.props.onSelect)&&n.props.onSelect(e),n.closePanel()},n.handleKeyDown=function(e){40===e.keyCode&&n.showPanel(e)};var o=a.selectedItem,i=a.selectedId,d=a.selectedEnName,l=a.indiData;return n.state={showPanel:!1,selected:o||_.find(l,d?{val:d}:{id:i})||null,position:{left:0,top:0}},n}return(0,i.default)(t,e),t.getDerivedStateFromProps=function(e){var t=e.selectedItem,a=e.selectedId,n=e.selectedEnName,o=e.indiData;return t||a?{selected:t||_.find(o,n?{val:n}:{id:a})}:null},t.prototype.renderSelector=function(){return d.default.createElement(u.SelectorWrapper,(0,n.default)({className:" "+(!0===this.props.disabled?"disabled":"")+" "+(!0===this.props.hasError?"has-error":"")},!0!==this.props.disabled&&{onClick:this.togglePanel,onKeyDown:this.handleKeyDown},{tabIndex:"0",__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\selector\\indi-selector\\IndiSelector.jsx",lineNumber:62}}),this.state.selected?(0,o.default)("div",{className:"selector-txt",title:_.get(this.state.selected,"text")},void 0,null===this.props.selectedId||void 0===this.props.selectedId||null===this.props.selectedId?"":_.get(this.state.selected,"text")):m,(0,o.default)("span",{className:"selector-arrow "},void 0,this.state.showPanel?g:h))},t.prototype.renderDropDownPanel=function(){return(0,o.default)(p.CSSTransition,{in:this.state.showPanel,unmountOnExit:!0,timeout:300,classNames:"slide"},void 0,(0,o.default)(c.default,{style:{left:this.state.left,top:this.state.top},closeCallback:this.closePanel,stopPropagation:!0,indiData:this.props.indiData,classifyData:this.props.classifyData,onSelect:this.selectIndi,onSearch:this.props.onSearch,onFilter:this.props.onFilter,selected:_.get(this.state.selected,"id")}))},t.prototype.render=function(){return(0,o.default)(d.default.Fragment,{},void 0,this.renderSelector(),!this.props.disabled&&this.renderDropDownPanel())},t}(d.default.PureComponent);v.defaultProps={onChange:_.noop,indiData:[],classifyData:[],onFilter:_.noop,onSearch:_.noop,onSelect:_.noop,onClose:_.noop,onOpen:_.noop,hasError:!1,disabled:!1},t.default=v},"./src/components/selector/indi-selector/IndiSelector.style.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.SelectorDropDown=t.SelectorWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./node_modules/polished/dist/polished.es.js");t.SelectorWrapper=s.default.div.withConfig({displayName:"IndiSelectorstyle__SelectorWrapper",componentId:"sc-163x4ja-0"})(["outline:none;user-select:none;box-sizing:border-box;background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;width:120px;cursor:pointer;padding:0 10px;line-height:32;height:32px;margin-top:4.3px;position:relative;display:inline-block;transition:all 0.3s cubic-bezier(0.645,0.045,0.355,1);&.has-error{border-color:#f5222d;}&.disabled{color:rgba(0,0,0,0.25);background:#f5f5f5;cursor:not-allowed;}&:hover:not(.disabled){border-color:#40a9ff;border-right-width:1px !important;}&:focus:not(.disabled){border-color:#40a9ff;outline:0;box-shadow:0 0 0 2px rgba(24,144,255,0.2);border-right-width:1px !important;}.selector-txt{",";display:block;padding-right:15px;line-height:30px;height:30px;width:100%;text-align:left;outline:0;&.__placeholder{color:#bfbfbf;}}.selector-arrow{vertical-align:baseline;text-align:center;text-transform:none;position:absolute;top:50%;right:11px;line-height:1;margin-top:-6px;transform-origin:50% 50%;color:#000000d9;font-size:12px;}"],(0,r.ellipsis)()),t.SelectorDropDown=s.default.div.withConfig({displayName:"IndiSelectorstyle__SelectorDropDown",componentId:"sc-163x4ja-1"})(["background-color:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;box-sizing:border-box;z-index:1050;width:450px;position:absolute;outline:none;user-select:none;font-size:12px;display:flex;flex-direction:column;justify-content:space-between;&.slide-enter{opacity:0;max-height:0;}&.slide-enter-active{opacity:1;max-height:400px;transition:all 300ms ease-out;}&.slide-exit{opacity:1;max-height:400px;}&.slide-exit-active{opacity:0;max-height:0;transition:all 300ms ease-out;}.search-input{flex:0 0 auto;padding:10px;}.indi-items{flex:1 1 auto;padding:5px;list-style:none;max-height:200px;overflow-y:auto;& > li{",";height:24px;line-height:24px;float:left;width:100px;padding:0 5px;cursor:pointer;margin:3px;&:hover,&.selected{background:#98d4fd;border-radius:4px;color:#fff;}}}.filter-panel{flex:1 0 auto;padding:10px;border-top:1px solid #d9d9d9;display:flex;flex-direction:row;position:relative;.filter-title{width:60px;padding:3px 0;flex:0 0 auto;}.btn-expand{position:absolute;right:10px;top:20px;cursor:pointer;&:hover{font-weight:600;}}.indi-types{flex:1 1 auto;margin:0;padding:0;list-style:none;overflow:hidden;li{float:left;margin:0 5px 5px 5px;padding:3px 5px;border:1px solid transparent;border-radius:3px;cursor:pointer;&:hover{border-color:#e0e6ed;border-radius:3px;}&.selected{border-color:#98d4fd;border-radius:3px;}}}}"],(0,r.ellipsis)())},"./src/components/selector/indi-selector/IndiSelectorDropDown.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/extends.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js")),d=h(a("./node_modules/antd/es/input/index.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\selector\\indi-selector\\IndiSelectorDropDown.jsx";a("./node_modules/antd/es/input/style/index.js");var u=h(a("./node_modules/react/index.js")),c=(a("./node_modules/prop-types/index.js"),a("./node_modules/react-dom/index.js")),p=a("./node_modules/@ant-design/compatible/es/index.js"),f=a("./src/components/selector/indi-selector/IndiSelector.style.jsx"),m=h(a("./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=d.default.Search,v=(0,o.default)("div",{className:"filter-title"},void 0,"\u5206\u7c7b\u8fc7\u6ee4\uff1a"),y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.selectClassify=function(e){var t=_.get(_.isPlainObject(e)&&e,"id","-1");n.state.indiClassify!==t&&(n.setState({indiClassify:t}),n.props.onFilter(t)),n.searchInputRef.current.focus()},n.handleClickOutside=function(){n.props.closeCallback()},n.expandFilter=function(){n.setState({hiddenFilterPanel:!1})},n.shrinkFilter=function(){n.setState({hiddenFilterPanel:!0})},n.changeSearchTxt=function(e){n.setState({indiClassify:"-1"}),n.props.onSearch(e.target.value)},n.handleKeyDown=function(e){switch(e.keyCode){case 13:event.preventDefault(),n.selectIndi();break;case 27:event.preventDefault(),n.props.closeCallback(),event.stopPropagation();break;case 37:event.preventDefault(),n.focusIndi("left");break;case 38:event.preventDefault(),n.focusIndi("up");break;case 39:event.preventDefault(),n.focusIndi("right");break;case 40:event.preventDefault(),n.focusIndi("down")}},n.focusIndi=function(e){var t=n.state.focusIndex,a=n.props.indiData.length;if("left"===e){if(null===t)return;t=0===t?0:t-1}else if("right"===e){if(null===t)return;t=t===a-1?a-1:t+1}else if("up"===e){if(null===t)return;t=t-4<=0?0:t-4}else"down"===e&&(t=null===t?0:t+4>=a?t:t+4);n.setState({focusIndex:t})},n.selectIndi=function(){null!==n.state.focusIndex&&_.isFunction(n.props.onSelect)&&n.props.onSelect(n.props.indiData[n.state.focusIndex])},n.state={indiClassify:"-1",hiddenFilterPanel:null,focusIndex:null},n.typesRef=u.default.createRef(),n.indiListRef=u.default.createRef(),n.dropDownPanel=document.createElement("div"),n.searchInputRef=u.default.createRef(),n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){document.body.appendChild(this.dropDownPanel),this.searchInputRef.current.focus(),this.typesRef.current.clientHeight>=35?this.setState({hiddenFilterPanel:!0}):this.setState({hiddenFilterPanel:null})},t.prototype.componentDidUpdate=function(){var e=this.indiListRef.current.childNodes[this.state.focusIndex];e&&e.scrollIntoView({block:"end",behavior:"smooth"})},t.prototype.componentWillUnmount=function(){document.body.removeChild(this.dropDownPanel)},t.prototype.renderIndi=function(){var e=this;return u.default.createElement("ul",{className:"indi-items",ref:this.indiListRef,__source:{fileName:l,lineNumber:116}},this.props.indiData.map((function(t,a){return u.default.createElement(b,{key:t.id,ref:e.indiLisRef,selected:null!==e.state.focusIndex?a===e.state.focusIndex:t.id===e.props.selected,item:t,onSelect:e.props.onSelect,__source:{fileName:l,lineNumber:118}})})))},t.prototype.renderClassifyFilter=function(){var e=this;return(0,o.default)("div",{className:"filter-panel"},void 0,v,u.default.createElement("ul",{className:"indi-types",ref:this.typesRef,style:this.state.hiddenFilterPanel?{height:"30px"}:{height:"auto"},__source:{fileName:l,lineNumber:135}},u.default.createElement("li",(0,n.default)({},"-1"===this.state.indiClassify&&{className:"selected"},{onClick:this.selectClassify,__source:{fileName:l,lineNumber:140}}),"\u5168\u90e8"),this.props.classifyData.map((function(t){return(0,o.default)(b,{selected:t.id===e.state.indiClassify,item:t,onSelect:e.selectClassify},t.id)}))),null!==this.state.hiddenFilterPanel&&(0,o.default)(p.Icon,{className:"btn-expand",type:this.state.hiddenFilterPanel?"down":"up",onClick:this.state.hiddenFilterPanel?this.expandFilter:this.shrinkFilter}))},t.prototype.render=function(){return(0,c.createPortal)((0,o.default)(f.SelectorDropDown,{style:(0,n.default)({},this.props.style),onClick:this.handleClickPanel,tabIndex:0,onKeyDown:this.handleKeyDown},void 0,(0,o.default)("div",{className:"search-input"},void 0,u.default.createElement(g,{size:"small",onKeyDown:this.handleKeyDown,placeholder:"\u8bf7\u8f93\u5165\u6307\u6807\u540d\u79f0",ref:this.searchInputRef,onChange:this.changeSearchTxt,__source:{fileName:l,lineNumber:171}})),this.renderIndi(),this.renderClassifyFilter()),this.dropDownPanel)},t}(u.default.Component);t.default=(0,m.default)(y);var b=function(e){var t=e.item,a=e.onSelect,o=void 0===a?_.noop:a,s=e.selected,r=void 0!==s&&s;return u.default.createElement("li",(0,n.default)({key:t.id,title:t.text,onClick:function(){return o(t)}},r&&{className:"selected"},{__source:{fileName:l,lineNumber:201}}),t.text)}},"./src/components/siderLeft/BaseSider.js":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/menu/index.js")),d=f(a("./node_modules/antd/es/layout/index.js"));a("./node_modules/antd/es/menu/style/index.js"),a("./node_modules/antd/es/layout/style/index.js");var l=a("./node_modules/react/index.js"),u=(f(l),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/@ant-design/compatible/es/index.js"),p=a("./src/utils/history.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Sider,h=i.default.SubMenu,g=i.default.Item,v=u.default.div.withConfig({displayName:"BaseSider__SiderWrapper",componentId:"sc-13tdi70-0"})(["display:flex;background:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,0.15);z-index:1;box-sizing:border-box;.ant-layout-sider{background:#fff;color:#000;}.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right:none;}.ant-layout-sider-trigger{background:#fff;border:1px solid #eee;color:#000;}"]),_=[{icon:"deployment-unit",name:"\u6a21\u578b\u63a8\u7406",key:"modelService",path:"/modelService",children:[{icon:"deployment-unit",name:"\u63a8\u7406\u670d\u52a1\u7ba1\u7406",key:"modelService/manage",path:"/modelService",children:[{icon:"deployment-unit",name:"\u521b\u5efa\u63a8\u7406\u670d\u52a1",key:"modelService/create",path:"/modelService/create"}]}]}],y=function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));return r.onCollapse=function(e){r.setState({collapsed:e})},r._linkTo=function(e){r.setState({selectedKeys:[e.key]});var t=e.key.split("@")[1];(0,p.navigateTo)(t)},r._renderSubMenu=function(e){return e.map((function(e){return Array.isArray(e.children)&&e.children.length>0?(0,n.default)(h,{onTitleClick:r._linkTo,title:(0,n.default)("span",{},void 0,(0,n.default)(c.Icon,{type:e.icon}),(0,n.default)("span",{},void 0,e.name))},e.key+"@"+e.path,r._renderSubMenu(e.children)):(0,n.default)(g,{},e.key+"@"+e.path,(0,n.default)("span",{},void 0,(0,n.default)(c.Icon,{type:e.icon}),(0,n.default)("span",{},void 0,e.name)))}))},r.state={collapsed:!1,text:"Enjoy",selectedKeys:[],menuData:_},r}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(v,{},void 0,(0,n.default)(m,{collapsedWidth:60,collapsible:!0,collapsed:this.state.collapsed,onCollapse:this.onCollapse},void 0,(0,n.default)(i.default,{style:{width:this.state.collapsed?"60px":""},defaultSelectedKeys:["1"],mode:"inline",selectedKeys:this.state.selectedKeys,onClick:this._linkTo},void 0,this._renderSubMenu(this.state.menuData))))},t}(l.Component);t.default=y},"./src/components/stateLabel/StateLabel.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/prop-types/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=r(a("./src/components/stateLabel/statusConfig.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"StateLabel__Wrapper",componentId:"sc-1eitfvv-0"})(["border-radius:16px;height:24px;text-align:center;padding-top:2px;line-height:24px;display:flex;justify-content:space-around;align-items:center;padding:0 12px;.circle{width:5px;margin-right:8px;height:5px;border-radius:50%;display:flex;}span{word-break:break-all;white-space:nowrap;}"]);t.default=function(e){var t=e.source,a=e.code,o=_.get(s.default,t+"."+a+".background",""),r=_.get(s.default,t+"."+a+".color",""),d=_.get(s.default,t+"."+a+".name","");return(0,n.default)("div",{style:{display:"flex"}},void 0,(0,n.default)(i,{style:{background:o,color:r}},void 0,(0,n.default)("i",{style:{backgroundColor:r},className:"circle"}),(0,n.default)("span",{},void 0,d)))}},"./src/components/stateLabel/statusConfig.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/styles/GlobalStyle.js");t.default={dataStatus:{0:{name:"\u672a\u5904\u7406",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},1:{name:"\u5df2\u5904\u7406",color:n.colorMap.success,background:n.colorMap.sub_success(.1)}},preTask:{processing:{name:"\u5904\u7406\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},building:{name:"\u521b\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},wait_released:{name:"\u5f85\u53d1\u5e03",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},releasing:{name:"\u53d1\u5e03\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},failure:{name:"\u6267\u884c\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},stopped:{name:"\u5df2\u505c\u6b62",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},completed:{name:"\u5df2\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},error:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},trainTaskInvocation:{waiting:{name:"\u7b49\u5f85\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},running:{name:"\u6267\u884c\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},failure:{name:"\u6267\u884c\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},success:{name:"\u5df2\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},error:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},trainTaskSonInvocation:{deploy_waiting:{name:"\u7b49\u5f85\u90e8\u7f72\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},deploying:{name:"\u90e8\u7f72\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},queuing:{name:"\u6392\u961f\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},running:{name:"\u6267\u884c\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},killed:{name:"\u6267\u884c\u88ab\u7ec8\u6b62",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},canceled:{name:"\u4f5c\u4e1a\u88ab\u53d6\u6d88",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},failure:{name:"\u6267\u884c\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},timeout:{name:"\u6267\u884c\u8d85\u65f6",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},success:{name:"\u6267\u884c\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},deploy_error:{name:"job\u90e8\u7f72\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},command_error:{name:"job\u6267\u884c\u547d\u4ee4\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.invalid_info(.1)}},codePackage:{created:{name:"\u5df2\u521b\u5efa",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},failed:{name:"\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},creating:{name:"\u521b\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},"":{name:"\u5176\u4ed6",color:n.colorMap.info,background:n.colorMap.sub_info(.1)}},trainTask:{SUCCESS:{name:"\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},ERROR:{name:"\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},CREATING:{name:"\u521b\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)}},dispatchTask:{online:{name:"\u5df2\u4e0a\u7ebf",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},created:{name:"\u5df2\u521b\u5efa",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},offline:{name:"\u5df2\u4e0b\u7ebf",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)}},approveState:{APPROVED:{name:"\u901a\u8fc7",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},WAIT_APPROVE:{name:"\u5f85\u5ba1\u6279",color:n.colorMap.info,background:n.colorMap.sub_info(.2)},FAILED:{name:"\u672a\u901a\u8fc7",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},ERROR:{name:"\u5206\u914d\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},codeService:{1:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.2)},2:{name:"\u6b63\u5e38\u8fd0\u884c",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},3:{name:"\u505c\u6b62\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},4:{name:"\u5df2\u505c\u6b62",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)},5:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},6:{name:"\u6784\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)}},annotationTask:{1:{name:"\u521b\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},2:{name:"\u53ef\u5f00\u53d1",color:n.colorMap.success,background:n.colorMap.sub_success(.2)},"-1":{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},"-2":{name:"\u53d1\u5e03\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},3:{name:"\u5f00\u53d1\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},4:{name:"\u5df2\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)}},dataSource:{0:{name:"\u51c6\u5907\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},1:{name:"\u62bd\u53d6\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},3:{name:"\u5ba1\u67e5\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},5:{name:"\u6e05\u6d17\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},7:{name:"\u9884\u5904\u7406\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},2:{name:"\u62bd\u53d6\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},4:{name:"\u5ba1\u67e5\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},6:{name:"\u6e05\u6d17\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},10:{name:"\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},11:{name:"\u5df2\u6e05\u7406",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},8:{name:"\u505c\u6b62",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},9:{name:"\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},modelVersion:{1:{name:"\u521b\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},2:{name:"\u521b\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},4:{name:"\u5df2\u4e0b\u7ebf",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)},3:{name:"\u5df2\u521b\u5efa",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},5:{name:"\u5df2\u521b\u5efa",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},6:{name:"\u521b\u5efa\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},modelTask:{2:{name:"\u6267\u884c\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.2)},3:{name:"\u5f85\u6267\u884c",color:n.colorMap.info,background:n.colorMap.sub_info(.3)},4:{name:"\u5df2\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},5:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},modelService:{1:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},2:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},9:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},3:{name:"\u6b63\u5e38\u8fd0\u884c",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},8:{name:"\u5df2\u505c\u6b62",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)},CREATE:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},STARTING:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},ERROR:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},RUNNING:{name:"\u6b63\u5e38\u8fd0\u884c",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},STOP:{name:"\u5df2\u505c\u6b62",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)}},modelLearn:{1:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},2:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},9:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},3:{name:"\u6b63\u5e38\u8fd0\u884c",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},8:{name:"\u5df2\u505c\u6b62",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)},4:{name:"\u6ce8\u518c\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},CREATE:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},STARTING:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},ERROR:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},RUNNING:{name:"\u6b63\u5e38\u8fd0\u884c",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},STOP:{name:"\u5df2\u505c\u6b62",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)},REGISTERING:{name:"\u6ce8\u518c\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)}},modelTrain:{1:{name:"\u7f16\u8f91\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},2:{name:"\u7f16\u8f91\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},3:{name:"\u7f16\u8f91\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},4:{name:"\u7b49\u5f85\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.2)},5:{name:"\u5f85\u6267\u884c",color:n.colorMap.info,background:n.colorMap.sub_info(.3)},6:{name:"\u5df2\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},7:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},8:{name:"\u5df2\u53d1\u5e03",color:n.colorMap.success,background:n.colorMap.sub_success(.2)}},modelMirror:{WAITTING:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},INIT:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},BUILD:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},LOAD:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},PUSH:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},FAILURE:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},SUCCESS:{name:"\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)}},serviceCode:{WAITTING:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},INIT:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},BUILD:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},LOAD:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},PUSH:{name:"\u5bfc\u5165\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},FAILURE:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},SUCCESS:{name:"\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)}},serviceInvocation:{0:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},1:{name:"\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)}},serviceMirrorVersion:{WAITTING:{name:"\u6784\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},INIT:{name:"\u6784\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},BUILD:{name:"\u6784\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},LOAD:{name:"\u6784\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},PUSH:{name:"\u6784\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},FAILURE:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},SUCCESS:{name:"\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)}},newModelService:{BUILD:{name:"\u6784\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},PROCESSING:{name:"\u542f\u52a8\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},ERROR:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},SUCCESS:{name:"\u6b63\u5e38\u8fd0\u884c",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},STOPED:{name:"\u5df2\u505c\u6b62",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)}},offlineModelService:{BUILDING:{name:"\u6784\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},SCALE_UPDATING:{name:"\u6269\u7f29\u5bb9\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},ERROR:{name:"\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},SUCCESS:{name:"\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},OFFLINE:{name:"\u5df2\u4e0b\u7ebf",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)}},offlineInvocation:{waiting:{name:"\u7b49\u5f85\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},running:{name:"\u6267\u884c\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},failure:{name:"\u6267\u884c\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},success:{name:"\u5df2\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},error:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},offlineSonInvocation:{deploy_waiting:{name:"\u7b49\u5f85\u90e8\u7f72\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},deploying:{name:"\u90e8\u7f72\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},queuing:{name:"\u6392\u961f\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},running:{name:"\u6267\u884c\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},killed:{name:"\u6267\u884c\u88ab\u7ec8\u6b62",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},canceled:{name:"\u4f5c\u4e1a\u88ab\u53d6\u6d88",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},failure:{name:"\u6267\u884c\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},timeout:{name:"\u6267\u884c\u8d85\u65f6",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},success:{name:"\u6267\u884c\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},deploy_error:{name:"job\u90e8\u7f72\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},command_error:{name:"job\u6267\u884c\u547d\u4ee4\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.invalid_info(.1)}},processLogs:{SUCCESS:{name:"\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},ERROR:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},FAILURE:{name:"\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},trainTemplate:{CREATING:{name:"\u521b\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},SUCCESS:{name:"\u521b\u5efa\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},ONLINE:{name:"\u5df2\u4e0a\u7ebf",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},OFFLINE:{name:"\u5df2\u4e0b\u7ebf",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)},ERROR:{name:"\u521b\u5efa\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},logTaskDownload:{queuing:{name:"\u6392\u961f\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},processing:{name:"\u5904\u7406\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},uploading:{name:"\u4e0a\u4f20\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},cleared:{name:"\u5df2\u6e05\u7406",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)},canceled:{name:"\u5df2\u53d6\u6d88",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)},downloadable:{name:"\u5df2\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},complete:{name:"\u5df2\u5b8c\u6210",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},error:{name:"\u53d1\u751f\u9519\u8bef",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},timeout:{name:"\u5bfc\u51fa\u8d85\u65f6",color:n.colorMap.error,background:n.colorMap.sub_error(.1)}},grayTask:{WAIT_DEPLOY:{name:"\u5f85\u90e8\u7f72",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},WAIT_PUBLISH:{name:"\u5f85\u53d1\u5e03",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},PUBLISHING:{name:"\u7070\u5ea6\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},PUBLISHED:{name:"\u5df2\u53d1\u5e03",color:n.colorMap.success,background:n.colorMap.sub_success(.1)},CANCELED:{name:"\u5df2\u53d6\u6d88",color:n.colorMap.invalid,background:n.colorMap.invalid_info(.1)}},flowTask:{BUILDING:{name:"\u521b\u5efa\u4e2d",color:n.colorMap.info,background:n.colorMap.sub_info(.1)},ERROR:{name:"\u521b\u5efa\u5931\u8d25",color:n.colorMap.error,background:n.colorMap.sub_error(.1)},SUCCESS:{name:"\u521b\u5efa\u6210\u529f",color:n.colorMap.success,background:n.colorMap.sub_success(.1)}}}},"./src/components/table/ColumnRender.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/antd/es/tooltip/index.js")),o=r(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/tooltip/style/index.js");r(a("./node_modules/react/index.js"));var s=r(a("./node_modules/dayjs/dayjs.min.js"));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text",a={text:e,date:e?(0,s.default)(e).format("YYYY-MM-DD HH:mm:ss"):""};return(0,o.default)(n.default,{placement:"topLeft",title:a[t]},void 0,(0,o.default)("span",{},void 0,a[t]))}},"./src/components/table/EditableTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/table/index.js")),o=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=y(a("./node_modules/babel-runtime/helpers/inherits.js")),i=y(a("./node_modules/antd/es/input/index.js")),d=y(a("./node_modules/babel-runtime/regenerator/index.js")),l=y(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=y(a("./node_modules/babel-runtime/helpers/extends.js")),c=y(a("./node_modules/babel-runtime/helpers/jsx.js")),p=y(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),f=y(a("./node_modules/antd/es/form/index.js")),m="C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\table\\EditableTable.jsx";a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var h=a("./node_modules/react/index.js"),g=y(h),v=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js"));function y(e){return e&&e.__esModule?e:{default:e}}var b=g.default.createContext(null),x=f.default.Item,C=function(e){var t=(0,p.default)(e,[]),a=f.default.useForm()[0];return(0,c.default)(f.default,{form:a,component:!1},void 0,(0,c.default)(b.Provider,{value:a},void 0,g.default.createElement("tr",(0,u.default)({},t,{__source:{fileName:m,lineNumber:14}}))))},j=function(e){var t=e.editable,a=e.validator,n=e.children,o=e.dataIndex,s=e.record,r=e.handleSave,f=(0,p.default)(e,["editable","validator","children","dataIndex","record","handleSave"]),_=(0,h.useState)(!1),y=_[0],C=_[1],j=(0,h.useRef)(null),S=(0,h.useContext)(b);(0,h.useEffect)((function(){y&&j.current.focus()}),[y]);var I=function(){var e;C(!y),S.setFieldsValue(((e={})[o]=s[o],e))},T=function(){var e=(0,l.default)(d.default.mark((function e(){var t;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,S.validateFields();case 3:t=e.sent,I(),r((0,u.default)({},s,t)),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),r((0,u.default)({},s),!0),e.t0;case 12:case"end":return e.stop()}}),e,void 0,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),w=n;return t&&(w=y?(0,c.default)(x,{style:{margin:0},name:o,rules:a},void 0,g.default.createElement(i.default,{ref:j,onPressEnter:T,onBlur:T,__source:{fileName:m,lineNumber:64}})):(0,c.default)("div",{className:"editable-cell-value-wrap",style:{paddingRight:24,display:"flex",justifyContent:"space-between"}},void 0,n,(0,c.default)(v.EditOutlined,{onClick:I}))),g.default.createElement("td",(0,u.default)({},f,{__source:{fileName:m,lineNumber:81}}),w)},S=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.handleSave=function(e,t){var a=[].concat(n.state.dataSource),o=a.findIndex((function(t){return e[n.props.rowKey]===t[n.props.rowKey]})),s=a[o];a.splice(o,1,(0,u.default)({},s,e,{validateError:t})),n.setState({dataSource:a}),n.props.onDataChange&&n.props.onDataChange(a)},n.state={dataSource:a.dataSource},n}return(0,r.default)(t,e),t.prototype.componentDidUpdate=function(e){_.isEqual(e.dataSource,this.props.dataSource)||this.setState({dataSource:this.props.dataSource})},t.prototype.render=function(){var e=this,t=this.state.dataSource,a={body:{row:C,cell:j}},o=this.props.columns.map((function(t){return t.editable?(0,u.default)({},t,{onCell:function(a){return{record:a,editable:_.isFunction(t.editable)?t.editable(a):t.editable,validator:_.isFunction(t.validator)?t.validator(a):t.validator,dataIndex:t.dataIndex,title:t.title,handleSave:e.handleSave}}}):t}));return(0,c.default)("div",{},void 0,g.default.createElement(n.default,(0,u.default)({},this.props,{components:a,rowClassName:function(){return"editable-row"},bordered:!0,dataSource:t,columns:o,__source:{fileName:m,lineNumber:146}})))},t}(g.default.Component);t.default=S},"./src/components/toJS.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/extends.js")),o=r(a("./node_modules/react/index.js")),s=a("./node_modules/immutable3/dist/immutable.js");function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(t){var a=Object.entries(t).reduce((function(e,t){return e[t[0]]=s.Iterable.isIterable(t[1])?t[1].toJS():t[1],e}),{});return o.default.createElement(e,(0,n.default)({},a,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\components\\toJS.jsx",lineNumber:13}}))}}},"./src/components/treeTable/NewTreeTableView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/antd/es/table/index.js")),o=l(a("./node_modules/babel-runtime/helpers/jsx.js")),s=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=l(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var d=l(a("./node_modules/react/index.js"));l(a("./node_modules/prop-types/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=l(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"NewTreeTableView__TreeTableDom",componentId:"sc-17um72v-0"})([".ant-table-thead > tr > th .ant-table-column-sorter{display:table-cell;vertical-align:middle;display:none;}"]),c=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.validateFun=function(){var e={};return n.treePathFlagMap(n.props.data,[],e),{validate:!0,moduleData:n.getPathAndParentPath(e,n.state.selectedRowKeyList)}},n.treeFindPath=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var o=e,s=Array.isArray(o),r=0;for(o=s?o:o[Symbol.iterator]();;){var i;if(s){if(r>=o.length)break;i=o[r++]}else{if((r=o.next()).done)break;i=r.value}var d=i;if(a.push(d.path),t(d))return a;if(d.children){var l=n.treeFindPath(d.children,t,a);if(l.length)return l}a.pop()}return[]},n.tableClick=function(e,t){return{style:{cursor:"pointer"},on:{click:function(){n.expandRowByClick=!n.expandRowByClick}}}},n.state={selectedRowKeyList:a.checkedIds};var o=n.props.setTreeTableViewValidateFunc;return _.isFunction(o)&&o("treeTableView",n.validateFun),n}return(0,i.default)(t,e),t.prototype.componentDidUpdate=function(e){_.isEqual(e.checkedIds,this.props.checkedIds)||(this.setState({selectedRowKeyList:this.props.checkedIds}),this.props.onSelectedKeysChange&&this.props.onSelectedKeysChange(this.props.checkedIds))},t.prototype.treePathFlagMap=function(e,t){var a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(e)&&e.map((function(e){var o=e.children,s=e.path,r=t.concat(s);n[s]=r,Array.isArray(o)&&a.treePathFlagMap(o,r,n)}))},t.prototype.getPathAndParentPath=function(e,t){return Array.from(new Set(t.reduce((function(t,a){return t.concat(e[a])}),[])))},t.prototype.render=function(){var e=this,t=this.props,a=t.columns,s=t.data,r=t.rowKey,i=t.rowSelectionShow,d={checkStrictly:!1,selectedRowKeys:this.state.selectedRowKeyList,onChange:function(t,a){e.setState({selectedRowKeyList:[].concat(t)}),e.props.onSelectedKeysChange&&e.props.onSelectedKeysChange(t)}};return(0,o.default)(u,{},void 0,(0,o.default)(n.default,{rowKey:r,pagination:!1,columns:a,rowSelection:!1===i?null:d,dataSource:s}))},t}(d.default.Component);t.default=c},"./src/components/treeTable/TreeTableView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/antd/es/table/index.js")),o=l(a("./node_modules/babel-runtime/helpers/jsx.js")),s=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=l(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var d=l(a("./node_modules/react/index.js"));l(a("./node_modules/prop-types/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=l(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"TreeTableView__TreeTableDom",componentId:"sc-15kpas9-0"})([".ant-table-thead > tr > th .ant-table-column-sorter{display:table-cell;vertical-align:middle;display:none;}"]),c=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.validateFun=function(){return{validate:!0,moduleData:n.selectedRowKeyList}},n.treeFindPath=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var o=e,s=Array.isArray(o),r=0;for(o=s?o:o[Symbol.iterator]();;){var i;if(s){if(r>=o.length)break;i=o[r++]}else{if((r=o.next()).done)break;i=r.value}var d=i;if(a.push(d.path),t(d))return a;if(d.children){var l=n.treeFindPath(d.children,t,a);if(l.length)return l}a.pop()}return[]},n.tableClick=function(e,t){return{style:{cursor:"pointer"},on:{click:function(){n.expandRowByClick=!n.expandRowByClick}}}},n.selectedRowKeyList=a.checkedIds;var o=n.props.setTreeTableViewValidateFunc;return _.isFunction(o)&&o("treeTableView",n.validateFun),n}return(0,i.default)(t,e),t.prototype.componentDidUpdate=function(e){_.isEqual(e.checkedIds,this.props.checkedIds)||(this.selectedRowKeyList=this.props.checkedIds)},t.prototype.render=function(){var e=this.props,t=e.columns,a=e.data,s=e.rowKey,r=e.checkedIds,i=(e.setRowSelection,e.rowSelectionShow),d=this,l={columnTitle:" ",selectedRowKeys:r,getCheckboxProps:function(e){return{defaultChecked:-1!==_.indexOf(r,e[s])}},onSelectAll:function(e){if(e){var t=[];!function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t.forEach((function(t){a.push(t.path),t.children&&e(t.children,a)}))}(a,t),this.selectedRowKeys=t}else this.selectedRowKeys=[];d.selectedRowKeyList=this.selectedRowKeys},onSelect:function(e,t){this.selectedRowKeys=d.selectedRowKeyList;var n=new Set(this.selectedRowKeys),o=a,s=e.path;function r(e){for(var t=0;t<o.length;t++)if(o[t].path===e)return null;return function t(a){for(var n=void 0,o=!1,s=0;s<a.length;s++)if(n=a[s].children){if(n.forEach((function(t){t.path===e&&(o=!0)})),o)return a[s];if(t(n))return t(n)}}(o)}t?(n.add(s),e.children&&function e(t){t.forEach((function(t){n.add(t.path),t.children&&e(t.children)}))}(e.children),function e(t){var a=r(t);a&&(n.add(a.path),e(a.path))}(s)):(n.delete(s),e.children&&function e(t){t.forEach((function(t){n.delete(t.path),t.children&&e(t.children)}))}(e.children),function e(t){var a=!1,o=r(t);if(o){o.children.forEach((function(e){n.has(e.path)&&(a=!0)})),a||(n.delete(o.path),e(o.path))}}(s)),this.selectedRowKeys=Array.from(n),d.selectedRowKeyList=this.selectedRowKeys}};return(0,o.default)(u,{},void 0,(0,o.default)(n.default,{rowKey:s,pagination:!1,columns:t,rowSelection:!1===i?null:l,dataSource:a}))},t}(d.default.PureComponent);t.default=c},"./src/config/app-config.js":function(e,t,a){"use strict";t.__esModule=!0,t.default={DEFAULT_LOCALE:"zh-CN",DEFAULT_THEME:"default",CONTEXT_PATH:"aiSquare",SERVER_URL:"",TOKEN_REMAIN_TIMEOUT:300,GATEWAY_URL:"",API_BASE_PATH:"aiSquare/openApi/",API_ROOT:"api",HOMEPATH:"/home/project"}},"./src/config/app-feature-config.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=window._MLP_ENVS;t.default={featureOn:s.default.get(r,"FEATURE_ALL_ON",!0),supports:{modelTrain:{deepStudyOn:s.default.get(r,"TRAIN_DEEP_STUDY_ALL_ON",!1)},modelApply:{ftpConfigOn:s.default.get(r,"APPLY_DEEP_STUDY_ALL_ON",!0),modelProcedureOn:s.default.get(r,"MODEL_PROCEDURE_ON",!0),VIEW_API_DOC_ON:s.default.get(r,"VIEW_API_DOC_ON",!0)},dataSource:{imgConfigOn:s.default.get(r,"IMG_CONFIG_ON",!0),fileConfigOn:s.default.get(r,"FILE_CONFIG_ON",!0)},SYSTEM:{ALLOW_MODIFY_PASSWORD:s.default.get(r,"ALLOW_MODIFY_PASSWORD",!1),AI_INTRO_PAGE_ON:s.default.get(r,"AI_INTRO_PAGE_ON",!0)}}}},"./src/config/dataJson.js":function(e,t,a){"use strict";t.__esModule=!0;t.CASE_CONFIG=[{caseName:"\u7528\u6237\u6e20\u9053\u504f\u597d\u8bc6\u522b\u6a21\u578b",caseIcon:"FLYC",caseDesc:"\u4f7f\u7528PCA/C50/SVM/NNET\u7b49\u7b97\u6cd5\uff0c\u5bf9\u5168\u6e20\u9053\u3001\u5927\u6837\u672c\u91cf\u7528\u6237\u6570\u636e\u8fdb\u884c\u5efa\u6a21\u548c\u8bad\u7ec3\uff0c\u9884\u6d4b\u7528\u6237\u6e20\u9053\u504f\u597d\u3002"},{caseName:"\u5927\u738b\u5361\u6f5c\u5728\u6613\u611f\u67d3\u7528\u6237\u8bc6\u522b\u6a21\u578b",caseIcon:"JLFX",caseDesc:"\u6839\u636e\u6570\u636e\u7279\u5f81\u5c06\u5df2\u611f\u67d3\u5927\u738b\u5361\u7684\u7528\u6237\u5206\u4e3a\u4e0d\u540c\u7fa4\u4f53\uff0c\u5206\u6790\u7528\u6237\u7fa4\u7684\u7279\u5f81\uff0c\u9884\u6d4b\u6613\u611f\u67d3\u7684\u7528\u6237\uff0c\u63d0\u524d\u5f00\u5c55\u7ef4\u633d\u6d3b\u52a8\u3002"},{caseName:"\u8bc8\u9a97\u7535\u8bdd\u8bc6\u522b\u6a21\u578b",caseIcon:"FLYC",caseDesc:"\u4f9d\u636e\u7528\u6237\u8fd1\u671f\u7684\u884c\u4e3a\u4fe1\u606f\uff0c\u8fd1\u671f\u53ef\u80fd\u6709\u8bc8\u9a97\u884c\u4e3a\u7684\u7528\u6237\uff0c\u53ca\u65f6\u5904\u7406\u6709\u8bc8\u9a97\u884c\u4e3a\u7684\u7528\u6237\uff0c\u51cf\u5c11\u8bc8\u9a97\u884c\u4e3a\u7684\u53d1\u751f\u3002"}]},"./src/config/scene-advanced-config.js":function(e,t,a){"use strict";t.__esModule=!0;t.SCENE_ADVANCED_CONFIG={1:{SceneName:"\u5206\u7c7b\u9884\u6d4b",AdvancedModule:"ClassIfyForecast",subModulesData:["ModelInfo","LimitSampleData","ChooseKpi","DataFilter","SampleData","DivideData","DivideDataVerify","ArithmeticParam","AutoOptimize"]},2:{SceneName:"\u805a\u7c7b\u5206\u6790",AdvancedModule:"GatherAnalysis",subModulesData:["ModelInfo","LimitSampleData","ChooseKpi","DataFilter","ArithmeticParam"]},4:{SceneName:"\u5173\u8054\u5206\u6790",AdvancedModule:"RelevanceAnalysis",subModulesData:["ModelInfo","LimitSampleData","UserItemTime","DataFilter","ArithmeticManualParam"]},5:{SceneName:"\u65f6\u95f4\u5e8f\u5217",AdvancedModule:"TimeSequence",subModulesData:["ModelInfo","LimitSampleData","TimeForecast","ForecastPoint","DivideDataVerify","ArithmeticParam"]},6:{SceneName:"\u534f\u540c\u8fc7\u6ee4",AdvancedModule:"SynergyFilter",subModulesData:["ModelInfo","LimitSampleData","ChooseKpi","DataFilter","UserItem","GradeParam","ArithmeticParam"]},11:{SceneName:"\u56fe\u50cf\u5206\u7c7b",AdvancedModule:"",subModulesData:["ModelInfo","ModelParams","DivideDataVerify"]},12:{SceneName:"\u8d8b\u52bf\u9884\u6d4b",AdvancedModule:"",subModulesData:["ModelInfo","ModelParams","DivideDataVerify"]}}},"./src/config/scene-join-engine.js":function(e,t,a){"use strict";t.__esModule=!0;t.SCENE_JOIN_ENGINE=[{scenes:"1",engine:["1","2"]},{scenes:"2",engine:["1","2"]},{scenes:"4",engine:["1","2"]},{scenes:"5",engine:["1","2"]},{scenes:"6",engine:["1","2"]}],t.dataDispose=[[{id:"1",taskName:"\u9488\u5bf9\u6570\u636e\u5b57\u6bb5\u56de\u586b\u4f17\u6570",dataName:"4G\u6d41\u5931\u6570\u636e\u6e90",operate:"\u56de\u586b",schedule:"100%",state:"\u5df2\u5b8c\u6210",createTime:"2015-04-23 14:34",updateTime:"2015-04-24 15:34",nextTime:"2015-04-29 09:34",time:"28min",user:"admin"}],[{id:"1",taskName:"\u9488\u5bf9\u6570\u636e\u5b57\u6bb5\u56de\u586b\u4f17\u6570",dataName:"4G\u6d41\u5931\u6570\u636e\u6e90",operate:"\u56de\u586b",schedule:"100%",state:"\u5df2\u5b8c\u6210",createTime:"2015-04-23 14:34",updateTime:"2015-04-24 15:34",nextTime:"2015-04-29 09:34",time:"28min",user:"admin"}],[{id:"1",taskName:"\u9488\u5bf9\u6570\u636e\u5b57\u6bb5\u56de\u586b\u4f17\u6570",dataName:"4G\u6d41\u5931\u6570\u636e\u6e90",operate:"\u56de\u586b",schedule:"100%",state:"\u5df2\u5b8c\u6210",createTime:"2015-04-23 14:34",updateTime:"2015-04-24 15:34",nextTime:"2015-04-29 09:34",time:"28min",user:"admin"},{id:"2",taskName:"\u9488\u5bf9\u6570\u636e\u5b57\u6bb5\u56de\u586b\u4f17\u6570",dataName:"\u8425\u9500\u6570\u636e\u6e90",operate:"\u56de\u586b",schedule:"20%",state:"\u8fdb\u884c\u4e2d",createTime:"2015-05-23 14:34",updateTime:"2015-05-24 15:34",nextTime:"2015-05-29 09:34",time:"38min",user:"admin"},{id:"3",taskName:"\u9488\u5bf9\u7528\u6237\u5b57\u6bb5\u56de\u586b\u4f17\u6570",dataName:"4G\u6d41\u5931\u6570\u636e\u7528\u6237",operate:"\u56de\u586b",schedule:"30%",state:"\u5df2\u5b8c\u6210",createTime:"2015-02-23 14:34",updateTime:"2015-02-24 15:34",nextTime:"2015-02-29 09:34",time:"58min",user:"admin"}]]},"./src/config/ui-config.js":function(e,t,a){"use strict";t.__esModule=!0,t.PRE_TASK_STATUS_COLOR_MAP=t.GRAY_TASK_STATUS_COLOR_MAP=t.MODEL_MGR_VIEW_MODE=t.TRAIN_TEMPLATE_STATUS_COLOR_MAP=t.MODEL_SERVICE_PROCESS_STATUS_COLOR_MAP=t.TRAIN_TASK_STATUS_COLOR_MAP=t.MODEL_SERVICE_OFFLINE_STATUS_COLOR_MAP=t.MODEL_SERVICE_STATUS_COLOR_MAP=t.MODEL_BASE_STATUS_COLOR_MAP=t.MODEL_INFERENCE_STATUS_COLOR_MAP=t.MODEL_STATUS_COLOR_MAP=t.CODE_SERVICE_STATUS=t.APPROVAL_STATE_COLOR_MAP=void 0;var n=a("./src/styles/GlobalStyle.js");t.APPROVAL_STATE_COLOR_MAP={APPROVED:n.colorMap.success,FAILED:n.colorMap.error,WAIT_APPROVE:n.colorMap.info},t.CODE_SERVICE_STATUS={1:n.colorMap.info,2:n.colorMap.success,3:n.colorMap.info,4:n.colorMap.invalid,5:n.colorMap.error},t.MODEL_STATUS_COLOR_MAP={8:"#00CF9B",6:"#00CF9B",7:"#FB6362",1:"#8D9AAD",2:"#8D9AAD",3:"#8D9AAD",4:"#98D4FD",5:"#47B2FB"},t.MODEL_INFERENCE_STATUS_COLOR_MAP={1:"#8D9AAD",2:"#98D4FD",3:"#47B2FB ",4:"#00CF9B",5:"#FB6362"},t.MODEL_BASE_STATUS_COLOR_MAP={2:"#47B2FB",1:"#8D9AAD",3:"#00CF9B"},t.MODEL_SERVICE_STATUS_COLOR_MAP={2:"#47B2FB",3:"#00CF9B",9:"#FB6362",8:"#395377"},t.MODEL_SERVICE_OFFLINE_STATUS_COLOR_MAP={BUILDING:"#47B2FB",SCALE_UPDATING:"#47B2FB",SUCCESS:"#00CF9B",ERROR:"#FB6362",OFFLINE:"#395377"},t.TRAIN_TASK_STATUS_COLOR_MAP={CREATING:"#47B2FB",SUCCESS:"#00CF9B",ERROR:"#FB6362"},t.MODEL_SERVICE_PROCESS_STATUS_COLOR_MAP={BUILD:"#47B2FB",PROCESSING:"#47B2FB",SUCCESS:"#00CF9B",RUNNING:"#00CF9B",ERROR:"#FB6362",STOPED:"#395377"},t.TRAIN_TEMPLATE_STATUS_COLOR_MAP={CREATING:"#47B2FB",SUCCESS:"#00CF9B",ONLINE:"#00CF9B",ERROR:"#FB6362",OFFLINE:"#395377"},t.MODEL_MGR_VIEW_MODE=[{value:"CARD",txt:"",icon:"card",tooltip:"\u5361\u7247\u89c6\u56fe"},{value:"LIST",txt:"",icon:"list",tooltip:"\u5217\u8868\u89c6\u56fe"}],t.GRAY_TASK_STATUS_COLOR_MAP={WAIT_DEPLOY:n.colorMap.info,WAIT_PUBLISH:n.colorMap.info,PUBLISHING:n.colorMap.info,PUBLISHED:n.colorMap.success,CANCELED:n.colorMap.invalid},t.PRE_TASK_STATUS_COLOR_MAP={processing:"#47B2FB",wait_released:"#47B2FB",releasing:n.colorMap.info,building:"#47B2FB",failure:"#FB6362",error:"#FB6362",completed:"#00CF9B",stopped:"#395377"}},"./src/constant/constantConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.modelConstant=t.MODEL_MANNER_NAVIGATION=t.MODEL_MANNER_CODE=t.MODEL_TYPE_RELEASE=t.MODEL_TYPE_ERROR=t.MODEL_TYPE_RESOLVE=t.MODEL_TYPE_TRAIN=t.MODEL_TYPE_COMIT=t.MODEL_TYPE_PROCESS=t.MODEL_TYPE_PREPARE=t.MODEL_TYPE_EXTRACTION=t.NEGATIVE_TYPE=t.POSITIVE_TYPE=void 0;var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.POSITIVE_TYPE=1,i=t.NEGATIVE_TYPE=0,d=t.MODEL_TYPE_EXTRACTION=1,l=t.MODEL_TYPE_PREPARE=2,u=t.MODEL_TYPE_PROCESS=3,c=t.MODEL_TYPE_COMIT=4,p=t.MODEL_TYPE_TRAIN=5,f=t.MODEL_TYPE_RESOLVE=6,m=t.MODEL_TYPE_ERROR=7,h=t.MODEL_TYPE_RELEASE=8,g=t.MODEL_MANNER_CODE=7,v=t.MODEL_MANNER_NAVIGATION=1;t.modelConstant={getPositiveType:function(){return s.default.toString(""+r)},getNegativeType:function(){return s.default.toString(""+i)},getModelTypeExtraction:function(){return s.default.toString(""+d)},getModelTypePrepare:function(){return s.default.toString(""+l)},getModelTypeProcess:function(){return s.default.toString(""+u)},getModelTypeComit:function(){return s.default.toString(""+c)},getModelTypeTrain:function(){return s.default.toString(""+p)},getModelTypeResolve:function(){return s.default.toString(""+f)},getModelTypeError:function(){return s.default.toString(""+m)},getModelTypeRelease:function(){return s.default.toString(""+h)},getModelMannerCode:function(){return s.default.toString(""+g)},getModelMannerNavigation:function(){return s.default.toString(""+v)}}},"./src/containers/App/App.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=T(a("./node_modules/babel-runtime/helpers/jsx.js")),o=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=T(a("./node_modules/babel-runtime/helpers/inherits.js")),i=T(a("./node_modules/react/index.js")),d=a("./node_modules/react-redux/es/index.js"),l=(T(a("./node_modules/prop-types/index.js")),a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/react-router-dom/esm/react-router-dom.js"),c=T(a("./node_modules/react-helmet/lib/Helmet.js")),p=a("./src/components/auth/textAuth.jsx"),f=a("./node_modules/react-intl/lib/index.es.js"),m=a("./src/utils/constants.js"),h=T(m),g=a("./src/styles/index.js"),v=T(a("./src/containers/App/MainPage.jsx")),y=a("./src/redux/reducers/app.js"),b=a("./src/redux/reducers/auth.js"),x=a("./src/utils/history.js"),C=a("./src/module/sysManage/index.js"),j=a("./src/routes/platform.js"),S=T(a("./src/components/common/ScrollToTop.js")),I=a("./src/containers/index.js");function T(e){return e&&e.__esModule?e:{default:e}}a("./src/styles/ant-default.less");var w=h.default.DEFAULT_THEME,E=(0,n.default)(u.Route,{path:"/",component:v.default}),D=(0,n.default)(u.Route,{exact:!0,path:"/test/doc",component:C.AiDocPage}),M=(0,n.default)(u.Route,{exact:!0,path:"/index",component:C.RegisterPage}),k=(0,n.default)(u.Route,{exact:!0,path:"/platform/features/:dataId",component:j.PlatFeature}),P=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.state={theme:w};var r=(0,x.parseParms)(n.props.location);return(_.has(r,"__embed")||_.has(r,"sso"))&&(n.props.dispatch(y.appActions.settingIntegration(r)),n.props.dispatch(b.authActions.verifyLoginRequest({search:n.props.location.search?n.props.location.search:""}))),_.has(r,"__hm__")&&n.props.dispatch(y.appActions.settingHiddenMenu(r)),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=(0,g.getTheme)(this.state.theme),t=(0,x.parseParms)(this.props.location);return(0,n.default)(l.ThemeProvider,{theme:e},void 0,(0,n.default)(i.default.Fragment,{},void 0,(0,n.default)(c.default,{},void 0,(0,n.default)("title",{},void 0,""+_.get(t,"__title",(0,p.hasText)("root.app.appTitle"))),(0,n.default)("meta",{name:"description",content:(0,p.hasText)("root.app.appDiscription")}),(0,n.default)("link",{rel:"icon",type:"image/png",href:(0,m.buildPublicResUrl)("/images/favicon/"+_.toLower((0,p.hasText)("root.app.enterpriseAbbr"))+".ico"),sizes:"16x16"})),(0,n.default)(S.default,{},void 0,(0,n.default)(u.Switch,{},void 0,E,(0,n.default)(u.Route,{exact:!0,path:"/login",component:I.AIDevelopment}),D,M,k)),(0,n.default)(g.GlobalStyle,{theme:e})))},t}(i.default.PureComponent);t.default=(0,u.withRouter)((0,d.connect)()((0,f.injectIntl)(P)))},"./src/containers/App/BingDingGitConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.CreateDisposeConfigPage=void 0;var n=y(a("./node_modules/antd/es/button/index.js")),o=y(a("./node_modules/antd/es/col/index.js")),s=y(a("./node_modules/antd/es/row/index.js")),r=y(a("./node_modules/babel-runtime/helpers/jsx.js")),i=y(a("./node_modules/antd/es/message/index.js")),d=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=y(a("./node_modules/babel-runtime/helpers/inherits.js")),c=y(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=y(a("./node_modules/react/index.js")),f=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/utils/authPermit.js"),v=y(a("./src/redux/services/sysManager/gitManager.js"));function y(e){return e&&e.__esModule?e:{default:e}}var b=m.Form.Item,x=c.default.Password,C=t.CreateDisposeConfigPage=h.default.div.withConfig({displayName:"BingDingGitConfig__CreateDisposeConfigPage",componentId:"sc-1hzv8bo-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),j=t.ButtonDom=h.default.div.withConfig({displayName:"BingDingGitConfig__ButtonDom",componentId:"sc-1hzv8bo-1"})(["top:86%;margin-top:10px;height:28px;text-align:right;margin-left:-6%;bottom:0px;padding-top:12px;position:absolute;bottom:0;clear:both;width:100%;"]),S=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.updateGit=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&(n.setState({confirmLoading:!0}),v.default.testGitLink(n.gitData).then((function(e){e.data?"update"===n.state.type?v.default.updateGit([n.gitData]).then((function(e){e.success&&(n.setState({confirmLoading:!1}),i.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),n.props.closeGitClick())})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)})):v.default.saveGit([n.gitData]).then((function(e){e.success&&(n.setState({confirmLoading:!1}),i.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),n.props.closeGitClick())})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)})):(n.setState({confirmLoading:!1}),i.default.info("\u6d4b\u8bd5\u8fde\u63a5Git\u8d26\u53f7\u5931\u8d25\uff01,\u4e0d\u80fd\u4fdd\u5b58\uff01"))})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)})))},n.getUserBlur=function(e,t){n.gitData[t]=e},n.closeGitClick=function(){n.props.form.setFieldsValue({username:"",password:""}),n.props.closeGitClick()},n.testConnect=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?(n.setState({confirmLoading:!0}),v.default.testGitLink(n.gitData).then((function(e){n.setState({confirmLoading:!1}),e.data?i.default.success("\u8fde\u63a5\u6210\u529f\uff01"):i.default.info("\u8fde\u63a5\u5931\u8d25\uff01")})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)}))):i.default.info("\u8bf7\u6b63\u786e\u586b\u5199\u8d26\u6237\u3001\u5bc6\u7801\uff01")},n.state={confirmLoading:!1,type:""},n.gitData={userId:(0,g.getUser)().userId,username:"",password:""},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this;v.default.getGitByUserId((0,g.getUser)().userId).then((function(t){t.data?(e.props.form.setFieldsValue({username:_.get(t,"data.username",""),password:_.get(t,"data.password","")}),e.gitData.username=_.get(t,"data.username",""),e.gitData.password=_.get(t,"data.password",""),e.setState({type:"update"})):e.setState({type:"create"})})).catch((function(t){e.props.form.setFieldsValue({username:"",password:""}),i.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(C,{},void 0,(0,r.default)(m.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(b,{label:"Git\u8d26\u6237"},void 0,t("username",{rules:[{required:!0,min:4,max:20,message:"\u957f\u5ea6\u5fc5\u987b4\u4f4d\u62164\u4f4d\u4ee5\u4e0a20\u4f4d\u4ee5\u5185\u5b57\u7b26"},{pattern:/^[^@]*$/,message:"\u7528\u6237\u540d\u4e2d\u4e0d\u5f97\u5305\u542b@\u7b26\u53f7"}],initialValue:this.gitData.username})((0,r.default)(c.default,{style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165Git\u8d26\u6237",onBlur:function(t){return e.getUserBlur(t.target.value,"username")}}))))),(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(b,{label:"Git\u5bc6\u7801"},void 0,t("password",{rules:[{required:!0,min:8,max:16,message:"\u5bc6\u7801\u5fc5\u987b8\u4f4d\u62168\u4f4d\u4ee5\u4e0a16\u4f4d\u4ee5\u5185\u5b57\u7b26"},{pattern:/^[^@]*$/,message:"\u5bc6\u7801\u4e0d\u5f97\u5305\u542b@\u7b26\u53f7"}],initialValue:this.gitData.password})((0,r.default)(x,{autoComplete:"new-password",style:{width:"250px"},placeholder:"\u8bf7\u8f93\u5165Git\u5bc6\u7801",onBlur:function(t){return e.getUserBlur(t.target.value,"password")}})),(0,r.default)(n.default,{loading:this.state.confirmLoading,style:{marginLeft:"8px"},type:"primary",onClick:this.testConnect},void 0,"\u6d4b\u8bd5\u8fde\u63a5"))))),(0,r.default)(j,{style:{marginBottom:50}},void 0,(0,r.default)(n.default,{style:{width:100,height:28},loading:this.state.confirmLoading,onClick:this.closeGitClick},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{loading:this.state.confirmLoading,style:{width:100,height:28,marginLeft:"3.1%"},onClick:this.updateGit,type:"primary"},void 0,"\u4fdd\u5b58")))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(m.Form.create()(S))},"./src/containers/App/HeaderNav.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ToolItemWrap=t.HeaderWrap=void 0;var n=T(a("./node_modules/antd/es/drawer/index.js")),o=T(a("./node_modules/babel-runtime/helpers/jsx.js")),s=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=T(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/drawer/style/index.js");var d=T(a("./node_modules/react/index.js")),l=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/icons/es/index.js"),c=a("./node_modules/reselect/lib/index.js"),p=a("./src/components/index.js"),f=a("./node_modules/react-redux/es/index.js"),m=a("./node_modules/react-router-dom/esm/react-router-dom.js"),h=a("./src/components/auth/switchAuth.jsx"),g=(T(a("./node_modules/prop-types/index.js")),a("./src/utils/constants.js")),v=a("./src/redux/reducers/auth.js"),y=T(a("./src/containers/LoginPage/iframeLoginWrapper/IframeLoginWrapper.jsx")),b=a("./src/redux/selectors/auth.js"),x=a("./src/components/auth/textAuth.jsx"),C=a("./src/utils/history.js"),j=a("./src/routes/routeHelper.jsx"),S=T(a("./src/containers/App/UpdatePwsConfig.jsx")),I=T(a("./src/containers/App/BingDingGitConfig.jsx"));function T(e){return e&&e.__esModule?e:{default:e}}var w=t.HeaderWrap=l.default.header.withConfig({displayName:"HeaderNav__HeaderWrap",componentId:"sc-16wsnpa-0"})(["background-color:",";color:",";width:100%;height:60px;display:flex;padding:0 12px 0 0;box-shadow:0 1px 4px rgba(0,21,41,0.08);position:relative;.logout-wrapper{background:#324315;cursor:pointer;padding:6px;}.toolBar-div{text-align:right;margin:0;list-style:none;}"],(function(e){return e.theme.bgcolor.header}),(function(e){return e.theme.comp.mainnav.color})),E=(t.ToolItemWrap=l.default.a.withConfig({displayName:"HeaderNav__ToolItemWrap",componentId:"sc-16wsnpa-1"})([".dropdown-caret{display:inline-block;width:0;height:0;vertical-align:middle;content:'';margin-left:5px;border:4px solid ",";border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}"],(function(e){var t=e.theme,a=e.fill;return t.icon.color[a||"primary"]})),"/images/logo/logo-"+_.toLower((0,x.hasText)("root.app.enterpriseAbbr")?(0,x.hasText)("root.app.enterpriseAbbr"):"cmcc")),D=(0,h.hasFeatureAuths)("root.app.colorLogo")?E+"-colorful":E,M=(0,o.default)(p.ToolBar.GlobalNotice,{}),k=(0,o.default)(y.default,{}),P=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleShowLogin=function(e){e.stopPropagation(),(0,C.navigateTo)(j.sysManageUrl.login()),n.props.dispatch(v.authActions.showLogin())},n.logout=function(){localStorage.setItem("AI-logout","true"),n.props.dispatch(v.authActions.logoutRequest())},n.updatePawClick=function(){n.setState({showUpdatePws:!0})},n.closePawClick=function(){n.setState({showUpdatePws:!1})},n.bangdingGit=function(){n.props.dispatch(v.authActions.showBindGit())},n.closeGitClick=function(){n.props.dispatch(v.authActions.hideBindGit())},n.state={showUpdatePws:!1},n}return(0,i.default)(t,e),t.prototype.render=function(){return(0,o.default)(w,{},void 0,(0,o.default)(n.default,{style:{padding:"0px"},title:"\u4fee\u6539\u5bc6\u7801",width:500,maskClosable:!0,visible:this.state.showUpdatePws,onClose:this.closePawClick,closable:!1,keyboard:!0},void 0,(0,o.default)(S.default,{closePawClick:this.closePawClick})),(0,o.default)(n.default,{style:{padding:"0px"},title:"\u7ed1\u5b9aGit",width:500,maskClosable:!0,visible:this.props.showBindGitModal,closable:!1,onClose:this.closeGitClick,keyboard:!0,destroyOnClose:!0},void 0,(0,o.default)(I.default,{closeGitClick:this.closeGitClick})),(0,o.default)(p.Logo,{img:(0,g.buildPublicResUrl)(D+".svg"),noImg:(0,g.buildPublicResUrl)(E+".svg"),appName:"",imgWidth:130,imgHeight:50,appTitle:(0,x.hasText)("root.app.enterpriseAbbrTitle")}),("top"===this.props.menuLayout||"topLeft"===this.props.menuLayout)&&(0,o.default)(p.MainNavTest,{setIFrameKey:this.props.setIFrameKey,setTopCurrent:this.props.setTopCurrent,menuLayout:this.props.menuLayout,data:this.props.datas}),(0,o.default)("div",{className:"toolBar-div",style:{width:"top"===this.props.menuLayout||"topLeft"===this.props.menuLayout?140:"100%"}},void 0,this.props.isAuthenticated&&M,this.props.isAuthenticated?(0,o.default)(p.ToolBar.LoginInfo,{logout:this.logout,updatePawClick:this.updatePawClick,bangdingGit:this.bangdingGit}):(0,o.default)("span",{className:"logout-wrapper",onClick:this.handleShowLogin},void 0,(0,o.default)(u.UserOutlined,{style:{marginRight:4}}),"\u767b\u5f55"),this.props.showLogin&&k))},t}(d.default.PureComponent),L=(0,c.createStructuredSelector)({showLogin:b.selectShowLoginModal,showBindGitModal:b.selectShowBindGitModal,isAuthenticated:b.selectIsAuthenticated});t.default=(0,m.withRouter)((0,f.connect)(L)(P))},"./src/containers/App/LeftMenu.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/affix/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js")),d=g(a("./node_modules/antd/es/menu/index.js")),l=g(a("./node_modules/antd/es/layout/index.js"));a("./node_modules/antd/es/affix/style/index.js"),a("./node_modules/antd/es/menu/style/index.js"),a("./node_modules/antd/es/layout/style/index.js");var u=g(a("./node_modules/react/index.js")),c=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./node_modules/react-router-dom/esm/react-router-dom.js"),f=a("./node_modules/react-redux/es/index.js"),m=(g(a("./node_modules/prop-types/index.js")),a("./src/components/Icon/index.js")),h=a("./node_modules/@ant-design/compatible/es/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=l.default.Sider,y=c.default.div.withConfig({displayName:"LeftMenu__LeftMenuPage",componentId:"sc-19dkee3-0"})(["left:0px;right:0px;bottom:0px;overflow-y:auto;overflow-x:hidden;.ant-menu-inline-collapsed > .ant-menu-item,.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item,.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title,.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title{left:0;padding:-1px 22px !important;text-overflow:clip;}.ant-menu-inline-collapsed{width:60px;}.ant-menu-submenu-selected{color:#147bd1;}.ant-menu-item-active{color:#147bd1 !important;.svg-icon{fill:#147bd1 !important;}}.ant-menu-vertical .ant-menu-item::after,.ant-menu-vertical-left .ant-menu-item::after,.ant-menu-vertical-right .ant-menu-item::after,.ant-menu-inline .ant-menu-item::after{position:absolute;top:0;right:0;bottom:0;border-right:3px solid #147bd1;}.ant-menu-sub.ant-menu-inline > .ant-menu-item,.ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title{font-size:12px;}"]),b=d.default.SubMenu,x=d.default.Item,C={background:"#F4F4F4",height:"30px",textAlign:"center",paddingTop:6},j=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.toggleCollapsed=function(){n.setState({collapsed:!n.state.collapsed,openKeys:""})},n.renderMenuItemGroup=function(e){return e.map((function(e){return e.children?(e.addition.icon&&n.rootSubmenuKeys.push("sub"+e.id),(0,o.default)(b,{onMouseOver:function(){!n.state.collapsed&&n.setLeftCurrent(e.id,e.fid)},onFocus:function(){},onBlur:function(){},onMouseOut:function(){!n.state.collapsed&&n.setLeftCurrent("","")},title:(0,o.default)("span",{},void 0,e.addition.icon&&(0,o.default)(m.IconSvg,{size:n.state.collapsed?20:16,style:{marginLeft:n.state.collapsed?0:-10,marginTop:-5,marginRight:n.state.collapsed?20:10},type:e.addition.icon,color:n.props.leftIcon===e.id||n.state.leftIcon===e.id?"#147BD1":""}),(0,o.default)("span",{style:{fontSize:(e.addition.icon,"14px")}},void 0,e.name))},"sub"+e.id,n.renderMenuItemGroup(e.children,"children"))):n.renderMenuItem(e)}))},n.setLeftCurrent=function(e,t){var a;n.setState(((a={leftIcon:e}).leftIcon=t,a))},n.renderMenuItem=function(e,t){var a=e;return(0,o.default)(x,{},e.id,e.addition.url?(0,o.default)(p.NavLink,{onClick:function(e){n.handleClick(e,a)},onMouseOver:function(){!n.state.collapsed&&n.setLeftCurrent(e.id,e.fid)},onFocus:function(){},onBlur:function(){},onMouseOut:function(){!n.state.collapsed&&n.setLeftCurrent("","")},to:{pathname:e.addition.url,state:{iframeUrl:_.get(e,"addition.iframeUrl")}}},void 0,e.addition.icon&&""!==e.addition.icon&&(0,o.default)(m.IconSvg,{size:n.state.collapsed?20:16,style:{marginLeft:n.state.collapsed?0:-10,marginTop:-5,marginRight:n.state.collapsed?20:10},type:e.addition.icon,color:n.props.leftIcon===e.id||n.state.leftIcon===e.id?"#147BD1":""}),(0,o.default)("span",{style:{fontSize:14}},void 0,e.name)):(0,o.default)("div",{onMouseOver:function(){!n.state.collapsed&&n.setLeftCurrent(e.id,e.fid)},onFocus:function(){},onBlur:function(){},onMouseOut:function(){!n.state.collapsed&&n.setLeftCurrent("","")}},void 0,(0,o.default)(u.default.Fragment,{},void 0,a.addition.icon&&""!==a.addition.icon&&(0,o.default)("div",{},void 0,(0,o.default)(m.IconSvg,{size:n.state.collapsed?20:16,style:{marginLeft:-10,marginTop:-5,marginRight:n.state.collapsed?20:10},type:a.addition.icon,color:n.props.leftIcon===a.id||n.state.item===e.id?"#147BD1":""}),e.name,(0,o.default)("span",{style:{fontSize:"10px"}},void 0,"(\u5f00\u53d1\u4e2d)")))))},n.handleClick=function(e,t){t.addition.iframeUrl&&""!==t.addition.iframeUrl&&"new"===t.addition.iFrameOpenType&&(e.preventDefault(),window.open(t.addition.iframeUrl)),n.props.setIFrameKey(!1,t),n.props.setLeftCurrent(t.id,t.fid)},n.onOpenChange=function(e){var t=e.find((function(e){return-1===n.state.openKeys.indexOf(e)}));-1===n.rootSubmenuKeys.indexOf(t)?n.setState({openKeys:e}):n.setState({openKeys:t?[t]:[]})},n.getMenu2LeftTop=function(){var e=60,t=document.documentElement.scrollTop;return t<40?e=60-t:t>40&&(e=20),e+40},n.state={collapsed:!1,leftCurrent:a.leftCurrent,leftIcon:a.leftIcon,openKeys:""},n.rootSubmenuKeys=[],n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.data,a=e.leftCurrent,s=e.width,r=this.getMenu2LeftTop();return t&&(0,o.default)(v,{collapsedWidth:60,width:s,trigger:null,collapsible:!0,collapsed:this.state.collapsed,className:"site-layout-background"},void 0,(0,o.default)(n.default,{offsetTop:20},void 0,(0,o.default)("div",{onClick:this.toggleCollapsed,style:C},void 0,(0,o.default)(h.Icon,{className:"trigger",type:this.state.collapsed?"menu-unfold":"menu-fold",onClick:this.toggleCollapsed})),(0,o.default)(y,{style:{height:document.documentElement.clientHeight-r,marginLeft:this.state.collapsed?-3:0}},void 0,(0,o.default)(d.default,{selectedKeys:[a],mode:this.state.collapsed?"vertical":"inline",theme:"light",onOpenChange:this.onOpenChange,openKeys:this.state.openKeys,style:{height:"100%",borderRight:0,marginTop:"-4px"},inlineCollapsed:this.state.collapsed},void 0,this.renderMenuItemGroup(t)))))},t}(u.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(j)},"./src/containers/App/MainPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=z(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),o=z(a("./node_modules/babel-runtime/helpers/extends.js")),s=z(a("./node_modules/antd/es/modal/index.js")),r=z(a("./node_modules/babel-runtime/helpers/jsx.js")),i=z(a("./node_modules/antd/es/message/index.js")),d=z(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=z(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=z(a("./node_modules/babel-runtime/helpers/inherits.js")),c=z(a("./node_modules/antd/es/layout/index.js")),p="C:\\Users\\leo\\workspace\\aihub-web\\src\\containers\\App\\MainPage.jsx";a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/layout/style/index.js");var f=z(a("./node_modules/react/index.js")),m=(z(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./src/containers/enhancers/index.js"),g=a("./node_modules/reselect/lib/index.js"),v=a("./node_modules/react-intl/lib/index.es.js"),y=a("./node_modules/react-router-dom/esm/react-router-dom.js"),b=a("./src/components/index.js"),x=z(a("./src/components/MainNav/BreadcrumbPanel.jsx")),C=z(a("./src/routes/index.js")),j=z(a("./src/containers/App/HeaderNav.jsx")),S=z(a("./src/containers/App/LeftMenu.jsx")),I=a("./src/redux/reducers/app.js"),T=a("./src/utils/history.js"),w=a("./src/components/exception/index.js"),E=z(a("./src/utils/menuData.js")),D=z(a("./src/redux/services/sysManager/sysManager.js")),M=a("./src/routes/routeHelper.jsx"),k=a("./src/module/modelLearn/index.js"),P=a("./src/containers/index.js"),L=a("./src/redux/selectors/app.js"),N=a("./src/redux/selectors/auth.js"),A=a("./src/redux/selectors/sysManager/userManager.js"),R=a("./src/components/auth/textAuth.jsx"),F=a("./src/utils/authPermit.js"),O=z(a("./src/module/sysManage/helpPage/component/GuideDetailsPage.jsx")),V=a("./src/redux/reducers/auth.js"),U=a("./src/containers/App/styled.jsx"),B=z(a("./src/containers/App/UserInfoCompletion.jsx")),G=a("./src/module/ocr/index.js");function z(e){return e&&e.__esModule?e:{default:e}}var q=["nlp_zone"],K=c.default.Header,H=c.default.Footer,Y=c.default.Content,W=(0,r.default)(O.default,{}),J=(0,r.default)(B.default,{}),Q=(0,r.default)(y.Route,{exact:!0,path:"/login",component:P.AIDevelopment}),Z=(0,r.default)(y.Route,{exact:!0,path:"/ocr",component:G.OcrManage}),X=(0,r.default)(y.Route,{exact:!0,path:"/ocr/config/:templateId",component:G.OcrConfig}),$=(0,r.default)(y.Route,{exact:!0,path:"/introduce/ai-development",component:P.AIDevelopment}),ee=(0,r.default)(y.Route,{exact:!0,path:"/introduce/learnAbility",component:k.LearnAbility}),te=(0,r.default)(y.Route,{exact:!0,path:"/introduce/learnAbility/:id/detail/:taskId",component:k.LearnAbilityDetail}),ae=(0,r.default)(y.Route,{exact:!0,path:"/nlp/home",component:P.IFrameContainer}),ne=(0,r.default)(y.Route,{path:"/notFound",component:w.NotFoundPage}),oe=(0,r.default)(b.LoadingIndicator,{}),se=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.setIsIFrame=function(){return-1!==window.location.pathname.indexOf("/iframe_load/")},n.initData=function(){n.props.isAuthenticated?n.props.isReadyLaunch?(n.setState({menuLayout:(0,R.hasText)("root.app.menuLayout")?(0,R.hasText)("root.app.menuLayout"):"top"}),n.fetchData()):n.props.dispatch(I.appActions.initialize()):(n.props.dispatch(I.appActions.initialize()),n.fetchData(),n.setState({redirectUrlSet:!0,firstMenuUrl:""+M.introduceUrl.index()+n.search}))},n.fetchData=function(){n.setState({menuLoaded:!1}),D.default.loadMenuTree().then((function(e){E.default.setMenuData(e.data),n.setState({menuTree:e.data,menuLoaded:!0,leftMenuData:"left"===n.state.menuLayout?e.data:null})})).catch((function(e){n.setState({menuLoaded:!1}),i.default.error(e.message)}))},n.leftLoadMeun=function(e){if(e&&e.length>0){(0,T.setParentMenu)();var t=(0,T.getMenuByUrl)(e);null===t?n.setState({leftMenuData:null}):n.setState({leftCurrent:_.get(t,"id",""),leftIcon:_.get(t,"fid",""),iFrameOpenType:_.get(t,"menu.iFrameOpenType","")})}},n.getViewType=function(){var e=window.location.pathname;if(-1!==e.indexOf("/platform")||-1!==e.indexOf("/dragDrop")||-1!==e.indexOf("/ocr/config")||-1!==e.indexOf("/integrate")||!n.props.isAuthenticated||!(0,F.isAuth)())return"max"},n.setLeftCurrent=function(e,t){n.setState({leftCurrent:e,leftIcon:t})},n.setTopCurrent=function(e,t){n.props.isAuthenticated?(n.setState({leftMenuData:e.children?[].concat(e.children):[],sonMenuLayout:"top"===t?t:""}),"onClick"===t&&e.children&&e.children.length>0&&(0,T.navigateTo)(e.children[0].addition.url)):"AI_USE"===e.id?(localStorage.setItem("AI.topCurrent","AI_USE"),(0,F.redirectLogin)(M.operationUrl.apiUsers())):"AI_DEVELOP"===e.id?(0,T.navigateTo)(M.introduceUrl.index()):"LEARNING_PIECE"===e.id&&(0,T.navigateTo)(M.introduceUrl.learnAbility())},n.setIFrameKey=function(e,t){n.setState({isIFrame:e,iFrameOpenType:_.get(t,"addition.iFrameOpenType",!1)})},n.isShowLeftMenu=function(){var e=!1;return("left"===n.state.menuLayout||"topLeft"===n.state.menuLayout&&"top"!==n.state.sonMenuLayout&&n.state.leftMenuData&&n.state.leftMenuData.length>0&&"all"!==n.state.iFrameOpenType&&n.props.isAuthenticated&&-1===window.location.pathname.indexOf("/nlp/home"))&&(e=!0),e};var o=(0,T.parseParms)(n.props.location);return n.search=_.get(n.props,"location.search",""),n.authCode=_.get(o,"code"),n.state={location:"",leftMenuData:null,leftCurrent:"",menuTree:[],leftIcon:"",leftWidth:240,menuLoaded:!1,firstMenuUrl:""+M.introduceUrl.index()+n.search,isIFrame:!1,iFrameOpenType:!1,redirectUrlSet:!1,sonMenuLayout:"",menuLayout:(0,R.hasText)("root.app.menuLayout")?(0,R.hasText)("root.app.menuLayout"):"top",isModelLearn:window.location.pathname.indexOf("/modelLearn")>-1},n}return(0,u.default)(t,e),t.getDerivedStateFromProps=function(e){var t=(0,T.parseParms)(e.location),a=_.get(t,"from",null);return window.top!=window.self&&a&&-1!==_.indexOf(q,a)&&(window.top.location.href=e.location.pathname+e.location.search),null},t.prototype.componentDidMount=function(){this.initData()},t.prototype.componentDidUpdate=function(e){e.isAuthenticated===this.props.isAuthenticated&&this.props.isReadyLaunch===e.isReadyLaunch||this.initData();var t=_.get((0,F.getUserAdditionalInfo)(),"isPlatformAdmin"),a=this.props,n=a.userJoinedProjects,o=a.currentProjectApplications,s=a.isAuthenticated,r=a.isReadyLaunch;!t&&s&&r&&r!==e.isReadyLaunch&&(n&&0!==n.size&&o&&0!==o.size||(this.props.dispatch(V.authActions.setGuideDetailsKey({key:"1"})),this.props.dispatch(V.authActions.openGuideDetails(!0))))},t.prototype.componentWillUnmount=function(){this.props.dispatch(I.appActions.readyLaunchFalse())},t.prototype.render=function(){var e=this,t=this.state,a=t.menuTree,i=t.leftWidth,d=t.menuLayout,l=t.leftMenuData,u=this.props,m=u.openGuideDetails,g=u.showUserInfoCompletionModal,v=this.getViewType();return!g&&m?W:("top"!==d&&this.leftLoadMeun("left"===d?a:l),this.authCode?(0,r.default)(P.LoginAuthRedirect,{code:this.authCode}):this.props.isAuthenticated&&this.props.isReadyLaunch&&this.state.menuLoaded||!this.props.isAuthenticated?(0,r.default)(c.default,{},void 0,(0,r.default)(s.default,{title:"\u4fe1\u606f\u8865\u5168",centered:!0,visible:g,width:1e3,closable:!1,footer:!1,maskStyle:{background:"#eee"}},void 0,J),!this.state.isModelLearn&&(0,r.default)(K,{style:{height:60,padding:0,borderBottom:"1px solid rgb(81,92,101)",boxSizing:"content-box"}},void 0,(0,r.default)(j.default,{menuLayout:d,setTopCurrent:this.setTopCurrent,setIFrameKey:this.setIFrameKey,datas:[].concat(a)})),(0,r.default)(c.default,{style:this.state.isModelLearn?{background:"#fff"}:{}},void 0,this.isShowLeftMenu()&&(0,r.default)(U.LeftWrapper,{},void 0,(0,r.default)(S.default,{setIFrameKey:this.setIFrameKey,setLeftCurrent:this.setLeftCurrent,leftCurrent:this.state.leftCurrent,leftIcon:this.state.leftIcon,data:l,width:i}),(0,r.default)(U.DragbarDom,{onMouseDown:this.mousedown})),(0,r.default)(Y,{style:{display:"flex",flexDirection:"column"}},void 0,!this.state.isIFrame&&"max"!==v&&-1===window.location.pathname.indexOf("/iframe_load/")&&!this.state.isModelLearn&&(0,r.default)(x.default,{menuTree:a}),(0,r.default)(U.ContentWrapper,{viewType:v,isIFrame:this.state.isIFrame,url:window.location.pathname,style:window.location.pathname.indexOf("/introduce/learnAbility")>-1?{padding:"0 24px",marginTop:"16px"}:{}},void 0,(0,r.default)(w.ErrorBoundary,{},void 0,(0,r.default)(y.Switch,{},void 0,Q,Z,X,$,ee,te,ae,ne,(0,r.default)(y.Route,{exact:!0,path:"/",render:function(t){return f.default.createElement(y.Redirect,(0,o.default)({to:e.state.firstMenuUrl},t,{__source:{fileName:p,lineNumber:324}}))}}),C.default.map((function(e){var t=e.component,a=(0,n.default)(e,["component"]);return f.default.createElement(h.AuthRoute,(0,o.default)({Component:t},a,{key:e,__source:{fileName:p,lineNumber:327}}))}))))),!this.state.isModelLearn&&(0,r.default)(H,{},void 0,(0,r.default)("div",{style:{textAlign:"center"}},void 0,"NONE"!==(0,R.hasText)("root.app.appCopyright")&&(0,R.hasText)("root.app.appCopyright")))))):oe)},t}(f.default.PureComponent);se.defaultProps={isReadyLaunch:!1,integration:null};var re=(0,g.createStructuredSelector)({isReadyLaunch:L.selectReadyLaunch,integration:L.selectIntegrationSetting,isAuthenticated:N.selectIsAuthenticated,openGuideDetails:N.selectOpenGuideDetails,showUserInfoCompletionModal:L.selectShowUserInfoCompletionModal,userJoinedProjects:A.selectUserJoinedProjects,currentProjectApplications:A.selectProjectApplications});t.default=(0,m.connect)(re)((0,v.injectIntl)(se))},"./src/containers/App/UpdatePwsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.CreateDisposeConfigPage=void 0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/antd/es/col/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/antd/es/message/index.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=b(a("./node_modules/react/index.js")),f=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/utils/authPermit.js"),v=a("./src/redux/reducers/auth.js"),_=a("./src/redux/reducers/sysManager/userManager.js"),y=a("./src/redux/selectors/sysManager/userManager.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=c.default.Password,C=m.Form.Item,j=t.CreateDisposeConfigPage=h.default.div.withConfig({displayName:"UpdatePwsConfig__CreateDisposeConfigPage",componentId:"sc-1q4fyjx-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.ant-col .ant-legacy-form-item-label{width:85px;}.ant-legacy-form-explain{width:350px;}.error-border{border:1px solid\xa0red;}"]),S=t.ButtonDom=h.default.div.withConfig({displayName:"UpdatePwsConfig__ButtonDom",componentId:"sc-1q4fyjx-1"})(["top:86%;margin-top:10px;height:28px;text-align:right;margin-left:-6%;bottom:0px;padding-top:12px;position:absolute;bottom:0;clear:both;width:100%;"]),I=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.updatePws=function(){var e=!1;if(n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e){void 0===n.userData.ensurePws&&n.ensurePws&&(n.userData.ensurePws=n.ensurePws),n.ensurePws=n.userData.ensurePws,delete n.userData.ensurePws;var t=(0,g.encryptByDES)(n.userData.newPwd,"1234567890"),a=(0,g.encryptByDES)(n.userData.oldPwd,"1234567890");n.userData.newPwd=t,n.userData.oldPwd=a,n.props.dispatch(_.userActions.updatePassRequest(n.userData))}},n.getUserBlur=function(e,t){"ensurePws"===t&&(n.ensurePws=e),n.userData[t]=e},n.closePawClick=function(){n.props.form.setFieldsValue({oldPwd:"",newPwd:"",ensurePws:""}),n.props.closePawClick()},n.compareToFirstPassword=function(e,t,a){var o=n.props.form;t&&t!==o.getFieldValue("newPwd")?a("\u8ddf\u65b0\u5bc6\u7801\u4e0d\u4e00\u81f4"):a()},n.userData={userId:(0,g.getUser)().userId,oldPwd:"",newPwd:"",ensurePws:""},n.ensurePws="",n}return(0,u.default)(t,e),t.getDerivedStateFromProps=function(e){e.updatePawData.size>0&&("0000"===e.updatePawData.toJS().code&&(i.default.success("\u4fee\u6539\u6210\u529f,\u8bf7\u91cd\u65b0\u767b\u9646\uff01"),e.closePawClick&&e.closePawClick(),setTimeout((function(){e.dispatch(v.authActions.logoutRequest())}),2e3)),e.dispatch(_.userActions.resetUpdatePass()))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(j,{},void 0,(0,r.default)(m.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(C,{label:"\u539f\u59cb\u5bc6\u7801"},void 0,t("oldPwd",{rules:[{required:!0,min:8,max:50,pattern:/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,message:"\u5bc6\u7801\u81f3\u5c118\u4f4d\u5b57\u7b26\uff0c\u5305\u542b\u6570\u5b57\u3001\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u7279\u6b8a\u5b57\u7b26\u4e2d\u7684\u81f3\u5c113\u79cd"}],initialValue:this.userData.oldPwd})((0,r.default)(x,{visibilityToggle:!0,style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u539f\u59cb\u5bc6\u7801",onBlur:function(t){return e.getUserBlur(t.target.value,"oldPwd")}}))))),(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(C,{label:"\u65b0 \u5bc6 \u7801"},void 0,t("newPwd",{rules:[{required:!0,min:8,max:50,pattern:/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,message:"\u5bc6\u7801\u81f3\u5c118\u4f4d\u5b57\u7b26\uff0c\u5305\u542b\u6570\u5b57\u3001\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u7279\u6b8a\u5b57\u7b26\u4e2d\u7684\u81f3\u5c113\u79cd"}],initialValue:this.userData.newPwd})((0,r.default)(x,{visibilityToggle:!0,style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u65b0\u5bc6\u7801",onBlur:function(t){return e.getUserBlur(t.target.value,"newPwd")}}))))),(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(C,{label:"\u786e\u8ba4\u5bc6\u7801"},void 0,t("ensurePws",{rules:[{required:!0,min:8,max:50,pattern:/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,message:"\u5bc6\u7801\u81f3\u5c118\u4f4d\u5b57\u7b26\uff0c\u5305\u542b\u6570\u5b57\u3001\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u7279\u6b8a\u5b57\u7b26\u4e2d\u7684\u81f3\u5c113\u79cd"},{validator:this.compareToFirstPassword}],initialValue:this.userData.ensurePws})((0,r.default)(x,{visibilityToggle:!0,style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u786e\u8ba4\u5bc6\u7801",onBlur:function(t){return e.getUserBlur(t.target.value,"ensurePws")}})))))),(0,r.default)(S,{style:{marginBottom:50}},void 0,(0,r.default)(n.default,{style:{width:100,height:28},onClick:this.closePawClick},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{style:{width:100,height:28,marginLeft:"3.1%"},onClick:this.updatePws,type:"primary"},void 0,"\u4fee\u6539")))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(e){return{updatePawData:(0,y.selectUpdatePawData)(e)}}))(m.Form.create()(I))},"./src/containers/App/UserInfoCompletion.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/antd/es/col/index.js")),s=S(a("./node_modules/antd/es/row/index.js")),r=S(a("./node_modules/babel-runtime/helpers/jsx.js")),i=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=S(a("./node_modules/babel-runtime/helpers/inherits.js")),u=S(a("./node_modules/antd/es/radio/index.js")),c=S(a("./node_modules/antd/es/form/index.js")),p=S(a("./node_modules/antd/es/input/index.js")),f=S(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=S(a("./node_modules/react/index.js")),h=a("./node_modules/react-redux/es/index.js"),g=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=(S(a("./node_modules/prop-types/index.js")),a("./src/redux/reducers/app.js")),y=a("./src/components/index.js"),b=S(a("./src/redux/services/sysManager/tenantManager.js")),x=S(a("./src/redux/services/sysManager/userManager.js")),C=a("./src/utils/authPermit.js"),j=a("./src/module/sysManage/userActionManager/userManager/modelEnums.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=f.default.Option,T=p.default.TextArea,w=c.default.Item,E=u.default.Group,D=g.default.div.withConfig({displayName:"UserInfoCompletion__CreateUserConfigPage",componentId:"sc-1fkbntl-0"})(["overflow-x:hidden;height:auto;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.ant-form-item-label{width:90px;}"]),M=g.default.div.withConfig({displayName:"UserInfoCompletion__ConfigButtonDom",componentId:"sc-1fkbntl-1"})(["text-align:right;line-height:70px;padding-right:30px;"]),k={width:"100%"},P=(0,r.default)(u.default,{value:-1},void 0,"\u4e0d\u8be6"),L=(0,r.default)(I,{value:""},void 0,"\u8bf7\u9009\u79df\u6237"),N=(0,r.default)(I,{value:""},void 0,"\u8bf7\u9009\u7ec4\u7ec7\u673a\u6784"),A=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.handleParamsChange=function(e,t){if(n.userData[t]=e,"orgId"===t){var a=_.find(n.state.orgList,{orgId:e});n.setState({orgType:_.get(a,"orgType")})}},n.getSysTenants=function(){b.default.getTenantList({filterDisabledTenant:"1"}).then((function(e){var t=e.data;!_.find(t,{tenantId:n.userData.tenantId})&&(n.userData.tenantId=""),n.setState({sysQuotaTenantDown:e.data})}))},n.getSysOrgList=function(){x.default.getSysOrgList().then((function(e){n.setState({orgList:e.data})}))},n.handleSubmit=function(){event.preventDefault(),n.formRef.current.validateFields().then((function(){n.updateUserInfo()}))},n.updateUserInfo=function(){n.userData.userId&&(n.setState({confirmLoading:!0}),x.default.updatePutUser(n.userData).then((function(){n.setState({confirmLoading:!1}),n.props.dispatch(v.appActions.hideUserInfoCompletion())})).catch((function(e){throw n.setState({confirmLoading:!1}),e})))},n.formRef=m.default.createRef();var o=(0,C.getUser)();return n.state={sysQuotaTenantDown:[],orgList:[],orgType:o.orgType,confirmLoading:!1},n.userData={email:o.email,gender:o.gender,identityCard:o.identityCard,phone:o.phone,tenantId:o.tenantId,userId:o.userId,userName:o.userName,orgId:o.orgId,memo:o.memo},n.editDisabledTenant=o.tenantId,n.editDisabledOrg=o.orgId,n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.getSysTenants(),this.getSysOrgList()},t.prototype.render=function(){var e=this,t=this.state,a=t.sysQuotaTenantDown,i=t.orgList,d=t.orgType;return(0,r.default)(D,{},void 0,m.default.createElement(c.default,{layout:"horizontal",name:"basic",ref:this.formRef,initialValues:this.userData,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\containers\\App\\UserInfoCompletion.jsx",lineNumber:118}},(0,r.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:k},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(w,{name:"userId",label:"\u7528\u6237\u767b\u5f55\u540d"},void 0,(0,r.default)("span",{},void 0,this.userData.userId))),(0,r.default)(s.default,{},void 0,(0,r.default)(w,{name:"userName",label:"\u7528\u6237\u4e2d\u6587\u540d",rules:[{required:!0,min:0,max:15,message:"\u7528\u6237\u4e2d\u6587\u540d\u4e0d\u80fd\u4e3a\u7a7a\u3001\u5c0f\u4e8e15\u4f4d"}]},void 0,(0,r.default)(p.default,{style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u8981\u521b\u5efa\u7684\u7528\u6237\u4e2d\u6587\u540d",onBlur:function(t){return e.handleParamsChange(t.target.value,"userName")}}))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:10},void 0,(0,r.default)(w,{name:"email",label:"\u90ae \u7bb1",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740"},{pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"\u90ae\u7bb1\u5730\u5740\u683c\u5f0f\u4e0d\u6b63\u786e"}]},void 0,(0,r.default)(p.default,{style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740",onBlur:function(t){return e.handleParamsChange(t.target.value,"email")}}))),(0,r.default)(w,{name:"phone",label:"\u8054\u7cfb\u7535\u8bdd",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8054\u7cfb\u7535\u8bdd"},{pattern:/^((?:(?:\+|00)86)?1\d{10}|([0-9]{3,4}-)?[0-9]{7,8})*$/,message:"\u8054\u7cfb\u7535\u8bdd\u683c\u5f0f\u4e0d\u6b63\u786e"}]},void 0,(0,r.default)(p.default,{style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u8054\u7cfb\u7535\u8bdd",onBlur:function(t){return e.handleParamsChange(t.target.value,"phone")}}))),(0,r.default)(s.default,{},void 0,(0,r.default)(w,{name:"identityCard",label:"\u8eab\u4efd\u8bc1",rules:[{pattern:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,message:"\u8eab\u4efd\u8bc1\u683c\u5f0f\u4e0d\u6b63\u786e"}]},void 0,(0,r.default)(p.default,{style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u8eab\u4efd\u8bc1",onBlur:function(t){return e.handleParamsChange(t.target.value,"identityCard")}}))),(0,r.default)(s.default,{},void 0,(0,r.default)(w,{name:"gender",label:"\u7528\u6237\u6027\u522b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6027\u522b"}]},void 0,(0,r.default)(E,{onChange:function(t){return e.handleParamsChange(t.target.value,"gender")}},void 0,P,(0,r.default)(u.default,{style:{marginLeft:"20px"},value:1},void 0,"\u7537"),(0,r.default)(u.default,{style:{marginLeft:"20px"},value:2},void 0,"\u5973")))),(0,r.default)(s.default,{},void 0,(0,r.default)(w,{name:"memo",label:"\u7528\u6237\u5907\u6ce8",rules:[{max:100,message:"\u5907\u6ce8\u4fe1\u606f\u4e0d\u5f97\u8d85\u8fc7100\u4e2a\u5b57\u7b26"}]},void 0,(0,r.default)(T,{autosize:{minRows:2,maxRows:2},style:{width:530,min:0,max:100},onBlur:function(t){return e.handleParamsChange(t.target.value,"memo")},rows:2})))),(0,r.default)(y.ModelConfigPanel,{title:"\u7ec4\u7ec7\u4fe1\u606f",style:k},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(w,{name:"tenantId",label:"\u79df\u6237",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u79df\u6237"}]},void 0,(0,r.default)(f.default,{disabled:this.editDisabledTenant,onChange:function(t){return e.handleParamsChange(t,"tenantId")},getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u79df\u6237",style:{width:200}},void 0,L,a.map((function(e){return(0,r.default)(I,{title:e.tenantName,value:e.tenantId},e.tenantId,e.tenantName)}))))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:10},void 0,(0,r.default)(w,{name:"orgId",label:"\u7ec4\u7ec7",rules:[{required:!0,message:"\u8bf7\u9009\u7ec4\u7ec7\u673a\u6784"}]},void 0,(0,r.default)(f.default,{disabled:this.editDisabledOrg,onChange:function(t){return e.handleParamsChange(t,"orgId")},getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u7ec4\u7ec7\u673a\u6784",style:{width:200}},void 0,N,i.map((function(e){return(0,r.default)(I,{value:e.orgId},e.orgId,e.orgName)}))))),d&&(0,r.default)(w,{},void 0,(0,r.default)("span",{style:{marginLeft:20}},void 0,"\u7ec4\u7ec7\u7c7b\u578b\uff1a",j.ORG_TYPES.getDescFromValue(d)))))),(0,r.default)(M,{},void 0,(0,r.default)(n.default,{onClick:this.handleSubmit,type:"primary",style:{borderRadius:4,width:110},loading:this.state.confirmLoading},void 0,"\u4fdd \u5b58")))},t}(m.default.PureComponent);t.default=(0,h.connect)()(A)},"./src/containers/App/styled.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.LeftWrapper=t.DragbarDom=t.ContentWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.ContentWrapper=s.default.div.withConfig({displayName:"styled__ContentWrapper",componentId:"yytivw-0"})(["display:flex;flex-direction:column;position:relative;width:100%;flex:auto;padding:",";margin:0px auto;background:",";margin-bottom:",";.ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:0px 16px;overflow-wrap:break-word;}.ant-form-inline .ant-form-item-with-help{margin-bottom:0px;}"],(function(e){return"max"===e.viewType||e.isIFrame||-1!==e.url.indexOf("/iframe_load/")||-1!==e.url.indexOf("/modelLearn/")?0:"0 24px"}),(function(e){return-1===e.url.indexOf("/modelLearn/")?"#f0f2f5":"#fafafa"}),(function(e){return-1===e.url.indexOf("/modelLearn/")?"0":"20px"})),t.DragbarDom=s.default.div.withConfig({displayName:"styled__DragbarDom",componentId:"yytivw-1"})(["position:absolute;z-index:202;top:0;bottom:0;right:0;width:5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:ew-resize;&:before{content:'';position:absolute;top:0;bottom:0;right:0;width:5px;background-color:#fafafa;-webkit-transition:all\xa00.2s\xa0ease-in-out;transition:all\xa00.2s\xa0ease-in-out;}"]),t.LeftWrapper=s.default.div.withConfig({displayName:"styled__LeftWrapper",componentId:"yytivw-2"})(["box-shadow:2px 0 3px -1px #cfcfcf;margin-right:4px;background:#fff;position:relative;overflow:hidden;zoom:1;display:flex;flex-shrink:0;.site-layout-background{background:#fff;}.ant-layout-sider-children{& > div{height:100%;}}"])},"./src/containers/Dashboard/Dashboard.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PanelWrapper=t.DashboardWraper=void 0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/react/index.js")),d=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./node_modules/reselect/lib/index.js"),c=g(a("./src/containers/Dashboard/PlatFormFeature.jsx")),p=g(a("./src/containers/Dashboard/PlatFormBusiness.jsx")),f=g(a("./src/containers/Dashboard/PlatFormCapacity.jsx")),m=g(a("./src/containers/Dashboard/PlatFormCase.jsx")),h=a("./src/redux/selectors/app.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=t.DashboardWraper=d.default.div.withConfig({displayName:"Dashboard__DashboardWraper",componentId:"sc-1qks817-0"})(["background:",";width:100%;display:flex;flex-direction:column;justify-content:stretch;flex:1 1 auto;"],(function(e){return e.theme.bgcolor.grey})),_=t.PanelWrapper=d.default.div.withConfig({displayName:"Dashboard__PanelWrapper",componentId:"sc-1qks817-1"})(["overflow:hidden;width:100%;&:after{clear:both;}display:flex;flex-direction:row;justify-content:space-between;"]),y=(0,n.default)(_,{},void 0,(0,n.default)(p.default,{}),(0,n.default)(f.default,{})),b=(0,n.default)(m.default,{}),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={integration:a.integration},n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(v,{},void 0,(0,n.default)(c.default,{integration:this.state.integration}),y,b)},t}(i.default.PureComponent),C=(0,u.createStructuredSelector)({isReadyLaunch:h.selectReadyLaunch,integration:h.selectIntegrationSetting});t.default=(0,l.connect)(C)(x)},"./src/containers/Dashboard/PlatFormBusiness.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.RatioBottom=t.RatioTop=t.RatioLocation=t.DetailList=t.BusinessWrapper=void 0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/react/index.js")),d=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=a("./node_modules/react-redux/es/index.js"),u=g(a("./node_modules/lodash/lodash.js")),c=(g(a("./node_modules/prop-types/index.js")),a("./src/redux/reducers/dashboard.js")),p=g(a("./src/containers/Dashboard/component/RatioStripIcon.jsx")),f=g(a("./src/containers/Dashboard/component/ApplicationUse.jsx")),m=a("./src/redux/selectors/dashboard.js"),h=a("./src/components/dashboard/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=t.BusinessWrapper=d.default.div.withConfig({displayName:"PlatFormBusiness__BusinessWrapper",componentId:"dvri1x-0"})(["min-height:172px;"]),_=t.DetailList=d.default.ul.withConfig({displayName:"PlatFormBusiness__DetailList",componentId:"dvri1x-1"})(["list-style:none;margin:0;padding:0;overflow:hidden;"]),y=t.RatioLocation=d.default.div.withConfig({displayName:"PlatFormBusiness__RatioLocation",componentId:"dvri1x-2"})(["padding-top:4.8%;float:left;width:100%;display:block;min-height:106px;"]),b=t.RatioTop=d.default.div.withConfig({displayName:"PlatFormBusiness__RatioTop",componentId:"dvri1x-3"})(["float:left;width:46%;margin-left:18px;margin-bottom:24px;"]),x=t.RatioBottom=d.default.div.withConfig({displayName:"PlatFormBusiness__RatioBottom",componentId:"dvri1x-4"})(["margin-left:4%;float:left;width:45%;margin-bottom:24px;"]),C={width:"49%"},j=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.percent=function(e,t){var a=parseFloat(t),n=parseFloat(e),o=n<=0?"0":""+Math.round(a/n*1e4)/100;return o>100?"100%":o+"%"},n.state={},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(c.dashboardActions.getBusinessRequest())},t.prototype.render=function(){if(null!==this.props.businessData){var e=this.props.businessData.toJS(),t=e.count,a=this.percent(u.default.get(e,"count.modelCount"),u.default.get(e,"count.useCount")),o=this.percent(u.default.get(e,"count.dataCount"),1024*u.default.get(e,"count.capacityCount"));return(0,n.default)(h.DashboardPanel,{title:"\u4e1a\u52a1 \xb7 \u4f7f\u7528",style:C},void 0,(0,n.default)(v,{},void 0,(0,n.default)(_,{},void 0,e.business.map((function(e){return(0,n.default)(f.default,{busiName:e.busiName,count:e.count},e.busiId)}))),(0,n.default)(y,{},void 0,(0,n.default)(b,{},void 0,(0,n.default)(p.default,{percent:o,total:t.dataCount,useNum:""+t.capacityCount,title:"\u7ba1\u7406\u6570\u636e"})),(0,n.default)(x,{},void 0,(0,n.default)(p.default,{percent:a,total:t.useCount,useNum:t.modelCount,title:"\u4f7f\u7528\u4e2a\u6570 / \u6a21\u578b\u4e2a\u6570"})))))}return(0,n.default)(h.DashboardPanel,{title:"\u4e1a\u52a1 \xb7 \u4f7f\u7528"})},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{businessData:(0,m.selectBusinessData)(e)}}))(j)},"./src/containers/Dashboard/PlatFormCapacity.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CanvasDiv=void 0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/react/index.js")),d=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=a("./node_modules/react-redux/es/index.js"),u=(m(a("./node_modules/prop-types/index.js")),a("./src/redux/reducers/dashboard.js")),c=a("./src/components/index.js"),p=a("./src/redux/selectors/dashboard.js"),f=a("./src/components/dashboard/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=c.charts.RadialBars,g={width:"49%"},v=t.CanvasDiv=d.default.div.withConfig({displayName:"PlatFormCapacity__CanvasDiv",componentId:"sc-1wesx4z-0"})(["width:100%;display:flex;align-items:center;justify-content:center;min-height:300px;"]),_=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={capacityData:{}},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(u.dashboardActions.getCapacityRequest())},t.getDerivedStateFromProps=function(e){return e.capacityData?{capacityData:e.capacityData.toJS()}:null},t.prototype.render=function(){return(0,n.default)(f.DashboardPanel,{title:"\u8ba1\u7b97\u80fd\u529b \xb7 \u5bb9\u91cf",style:g},void 0,"{}"!==JSON.stringify(this.state.capacityData)&&(0,n.default)(v,{},void 0,(0,n.default)(h,{classifyArray:this.state.capacityData,width:550,height:300})))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{capacityData:(0,p.selectCapacityData)(e)}}))(_)},"./src/containers/Dashboard/PlatFormCase.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.HealthStateWrapper=t.HealthStateItem=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=a("./node_modules/react-redux/es/index.js"),u=(p(a("./node_modules/prop-types/index.js")),a("./src/components/dashboard/index.js")),c=a("./src/config/dataJson.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=t.HealthStateItem=d.default.div.withConfig({displayName:"PlatFormCase__HealthStateItem",componentId:"ik0z3t-0"})(["float:left;height:80px;background:#f5f6f9;border-radius:4px;width:32%;flex-basis:auto;cursor:pointer;border:0.5px solid transparent;&:hover{border:0.5px solid #47b2fb;background:#ffff;}.imgDiv{float:left;height:51px;width:25%;padding:13px;}.configDiv{padding:10px;width:75%;float:left;color:#475669;.title{text-align:left;font-weight:600;padding-bottom:8px;color:#475669;}.details{font-size:10px;color:#475669;}}"]),m=t.HealthStateWrapper=d.default.div.withConfig({displayName:"PlatFormCase__HealthStateWrapper",componentId:"ik0z3t-1"})(["min-height:120px;justify-content:space-between;display:flex;"]),h=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(u.DashboardPanel,{title:"\u6587\u6863 \xb7 \u6848\u4f8b"},void 0,c.CASE_CONFIG.length>0&&(0,n.default)(m,{},void 0,c.CASE_CONFIG.map((function(e,t){return(0,n.default)(f,{},t,(0,n.default)("div",{className:"imgDiv"},void 0,(0,n.default)("img",{src:a("./src/styles/images/modelConfig sync recursive ^\\.\\/.*\\.png$")("./"+e.caseIcon+".png")})),(0,n.default)("div",{className:"configDiv"},void 0,(0,n.default)("div",{className:"title"},void 0,e.caseName),(0,n.default)("div",{className:"details"},void 0,e.caseDesc)))}))))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(h)},"./src/containers/Dashboard/PlatFormFeature.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FeatureReferralDiv=t.FeatureIconWrapper=void 0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/antd/es/message/index.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var d=h(a("./node_modules/react/index.js")),l=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/react-redux/es/index.js"),c=(h(a("./node_modules/prop-types/index.js")),a("./src/redux/reducers/dashboard.js")),p=a("./src/utils/history.js"),f=a("./src/redux/selectors/dashboard.js"),m=a("./src/components/dashboard/index.js");function h(e){return e&&e.__esModule?e:{default:e}}a("./src/containers/Dashboard/style/cartoon.scss");var g=t.FeatureIconWrapper=l.default.div.withConfig({displayName:"PlatFormFeature__FeatureIconWrapper",componentId:"c64hl9-0"})(["min-height:120px;justify-content:space-between;display:flex;"]),v=t.FeatureReferralDiv=l.default.div.withConfig({displayName:"PlatFormFeature__FeatureReferralDiv",componentId:"c64hl9-1"})(["font-size:",";color:",";letter-spacing:1px;width:300px;text-align:center;text-align:left;a{cursor:pointer;color:",";font-weight:bolder;&:hover{color:",";font-weight:bolder;}}"],(function(e){return e.theme.font.size.base}),(function(e){return e.theme.color.thinGrey}),(function(e){return e.theme.color.blue}),(function(e){return e.theme.color.blue})),_=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.openNavigate=function(){null===n.state.integration?""!==n.state.selectFeature.featureUrl&&null!==n.state.selectFeature.featureUrl?(0,p.navigateTo)(n.state.selectFeature.featureUrl):o.default.warning("\u529f\u80fd\u5f00\u53d1\u4e2d.........."):window.open(n.state.selectFeature.featureUrl,"_blank").focus()},n.closeDetail=function(){n.setState({displayState:"close"})},n.showDetail=function(e,t){for(var a={},o=0;o<n.state.featureArray.length;o++)if(t===n.state.featureArray[o].featureId){a=n.state.featureArray[o];break}var s=document.documentElement.scrollWidth,r=e.target.offsetLeft;r-=r+300>s?230:r+100<300?0:110,n.setState({selectFeature:a,displayState:"show",referralDiv:{offsetTop:5,offsetLeft:r}})},n.state={featureArray:[],selectFeature:{},displayState:"close",referralDiv:{offsetTop:0,offsetLeft:0},integration:a.integration},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(c.dashboardActions.getFeatureRequest())},t.getDerivedStateFromProps=function(e){return e.featureData?{featureArray:e.featureData.toJS()}:null},t.prototype.render=function(){var e=this;return(0,n.default)(m.DashboardPanel,{title:"\u5e73\u53f0 \xb7 \u670d\u52a1",bodyStyle:{padding:"10px 0"}},void 0,(0,n.default)(g,{},void 0,this.state.featureArray.map((function(t){return(0,n.default)(m.FeatureIcon,{feature:{id:t.featureId,name:t.featureName,icon:t.featureIcon},onClick:e.showDetail},t.featureId)}))),(0,n.default)("div",{onClick:this.closeDetail},void 0,(0,n.default)(v,{style:{marginLeft:this.state.referralDiv.offsetLeft,marginTop:this.state.referralDiv.offsetTop,display:"show"===this.state.displayState?"block":"none"}},void 0,this.state.selectFeature.detail,(0,n.default)("a",{onClick:this.openNavigate},void 0,this.state.selectFeature.featureName))))},t}(d.default.Component);t.default=(0,u.connect)((function(e){return{featureData:(0,f.selectFeatureData)(e)}}))(_)},"./src/containers/Dashboard/component/ApplicationUse.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.Div2=t.Div1=t.LI=void 0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=(u(a("./node_modules/prop-types/index.js")),u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=u(a("./src/styles/images/dashboard/IconOverview.png"));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.LI=d.default.li.withConfig({displayName:"ApplicationUse__LI",componentId:"sc-1t0vewr-0"})(["width:50%;margin-bottom:25px;float:left;"]),p=t.Div1=d.default.div.withConfig({displayName:"ApplicationUse__Div1",componentId:"sc-1t0vewr-1"})(["width:94px;float:left;height:51px;text-align:center;padding:3px;opacity:0.8;background-image:linear-gradient(90deg,rgba(71,178,251,0.3) 0%,rgba(71,178,251,0.6) 100%);border-radius:2px 0 0 2px;"]),f=t.Div2=d.default.div.withConfig({displayName:"ApplicationUse__Div2",componentId:"sc-1t0vewr-2"})(["background:#fff;float:left;width:155px;height:51px;text-align:center;span{display:block;}.span1{font-size:",";color:#395377;letter-spacing:0;padding-top:4px;}.span2{font-family:",";font-size:20px;color:",";letter-spacing:0;}"],(function(e){return e.theme.font.size.primary}),(function(e){return e.theme.font.family.light}),(function(e){return e.theme.bgcolor.blue})),m=(0,n.default)(p,{},void 0,(0,n.default)("img",{src:l.default})),h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.numAutoPlusAnimation=function(e,t){var a=e,n=(t=t||{}).num,o=t.regulator||100,s=n/(3e3/o),r=0,i=0,d=setInterval((function(){(r+=s)>=n&&(clearInterval(d),r=n);var e=Math.floor(r);e!=i&&(i=e,a.innerHTML=i)}),30)},n.state={count:a.count,busiName:a.busiName},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.numAutoPlusAnimation(this.refs.spanCount,{time:3e3,num:this.state.count,regulator:50})},t.prototype.render=function(){return(0,n.default)(c,{},void 0,m,(0,n.default)(f,{},void 0,(0,n.default)("span",{className:"span1"},void 0,this.state.busiName),i.default.createElement("span",{ref:"spanCount",className:"span2",__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\containers\\Dashboard\\component\\ApplicationUse.jsx",lineNumber:97}},"0")))},t}(i.default.PureComponent);t.default=h},"./src/containers/Dashboard/component/RatioStripIcon.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.RatioStripWrapper=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i="C:\\Users\\leo\\workspace\\aihub-web\\src\\containers\\Dashboard\\component\\RatioStripIcon.jsx",d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=p(a("./src/styles/images/dashboard/IconDataManagement.png")),c=p(a("./src/styles/images/dashboard/IconModelUsed.png"));function p(e){return e&&e.__esModule?e:{default:e}}var f=t.RatioStripWrapper=l.default.div.withConfig({displayName:"RatioStripIcon__RatioStripWrapper",componentId:"eaorg7-0"})([".ratio-title{font-weight:600;font-size:14px;font-family:MicrosoftYaHei;color:#395377;letter-spacing:1px;padding-left:20px;}.ratio-txt{padding-left:20px;margin-right:5px;display:-webkit-box;line-height:auto;font-family:ArialMT;font-size:18px;color:#395377;letter-spacing:0;margin-top:20px;}"]),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.numAutoPlusAnimation=function(e,t){var a=e,n=(t=t||{}).time,o=t.num,s=t.regulator||100,r=o/(n/s),i=0,d=0,l=setInterval((function(){(i+=r)>=o&&(clearInterval(l),i=o);var e=Math.floor(i);e!=d&&(d=e,a.innerHTML=d.toString().length>=5?i.toString().substring(0,3)+","+i.toString().substring(3,i.length):d)}),30)},n.state={},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.numAutoPlusAnimation(this.refs.total,{time:3e3,num:this.props.total,regulator:50}),this.numAutoPlusAnimation(this.refs.useNum,{time:3e3,num:this.props.useNum,regulator:50})},t.prototype.render=function(){return(0,n.default)(f,{},void 0,(0,n.default)("div",{style:{float:"left"}},void 0,(0,n.default)("img",{alt:"this.props.title",src:"\u7ba1\u7406\u6570\u636e"===this.props.title?u.default:c.default})),(0,n.default)("span",{className:"ratio-title"},void 0,this.props.title),(0,n.default)("div",{className:"ratio-txt"},void 0,d.default.createElement("span",{ref:"total",__source:{fileName:i,lineNumber:90}},"0"),"\u7ba1\u7406\u6570\u636e"===this.props.title?(0,n.default)("span",{style:{fontSize:12}},void 0,"\xa0\u4e07\u6761"):"","\xa0/\xa0",d.default.createElement("span",{ref:"useNum",__source:{fileName:i,lineNumber:92}},"0"),"\u7ba1\u7406\u6570\u636e"===this.props.title?(0,n.default)("span",{style:{fontSize:12}},void 0,"\xa0TB"):""))},t}(d.default.PureComponent);t.default=m},"./src/containers/Dashboard/style/cartoon.scss":function(e,t,a){},"./src/containers/DownLoad/DownloadTool.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=N(a("./node_modules/antd/es/table/index.js")),o=N(a("./node_modules/antd/es/input/index.js")),s=N(a("./node_modules/antd/es/col/index.js")),r=N(a("./node_modules/antd/es/row/index.js")),i=N(a("./node_modules/antd/es/spin/index.js")),d=N(a("./node_modules/antd/es/button/index.js")),l=N(a("./node_modules/antd/es/progress/index.js")),u=N(a("./node_modules/antd/es/result/index.js")),c=N(a("./node_modules/antd/es/tooltip/index.js")),p=N(a("./node_modules/babel-runtime/helpers/jsx.js")),f=N(a("./node_modules/antd/es/message/index.js")),m=N(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),h=N(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),g=N(a("./node_modules/babel-runtime/helpers/inherits.js")),v=N(a("./node_modules/antd/es/select/index.js")),_=N(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/progress/style/index.js"),a("./node_modules/antd/es/result/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var y=N(a("./node_modules/react/index.js")),b=a("./node_modules/@ant-design/icons/es/index.js"),x=N(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),C=(a("./node_modules/prop-types/index.js"),a("./node_modules/@ant-design/compatible/es/index.js")),j=a("./src/components/index.js"),S=a("./src/containers/DownLoad/modelEnums.js"),I=a("./src/utils/commonUtil.js"),T=a("./src/utils/authPermit.js"),w=N(a("./src/redux/services/modelBase.js")),E=N(a("./node_modules/copy-to-clipboard/index.js")),D=a("./node_modules/event-source-polyfill/src/eventsource.js"),M=a("./src/redux/services/modelService.js"),k=a("./src/utils/publicPath.js"),P=a("./src/utils/constants.js"),L=N(a("./node_modules/lodash/lodash.js"));function N(e){return e&&e.__esModule?e:{default:e}}var A=_.default.Group,R=C.Form.Item,F=v.default.Option,O=x.default.div.withConfig({displayName:"DownloadTool__Wrapper",componentId:"rmdhzp-0"})(["display:flex;flex-direction:column;.ant-form{margin-left:32px;margin-bottom:20px;}.ant-radio-wrapper{width:200px;}.model-buttons{text-align:right;margin-top:15px;}"]),V={limit:10,offset:1,total:0},U=(0,p.default)(b.CloudDownloadOutlined,{}),B=(0,p.default)(b.FileExcelOutlined,{}),G=(0,p.default)(F,{value:""},void 0,"\u8bf7\u9009\u62e9FTP"),z=function(e){function t(a){(0,m.default)(this,t);var n=(0,h.default)(this,e.call(this,a));return n.fetchFtp=function(){w.default.getFtpDropDown().then((function(e){e&&n.setState({ftpDatas:e.data.concat([])})})).catch((function(e){f.default.error(e.message)}))},n.fetchDownloadTask=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.pagination,t=arguments[1],a={limit:e.limit,offset:e.offset};Object.assign(a,n.props.tableParams),t||n.setState({refreshing:!0}),(0,M.getLogDownloadTaskList)(n.props.requestUrl?n.props.requestUrl:"/export-tasks/"+n.props.taskType+"/jobs",a,n.props.env).then((function(e){n.setState({taskList:e.data,refreshing:!1,pagination:L.default.get(e,"pagination",V)})})).catch((function(e){throw n.setState({refreshing:!1}),e}))},n.handleRefresh=function(){n.fetchDownloadTask()},n.onChangePage=function(e,t){n.fetchDownloadTask({offset:e,limit:t})},n.renderColumn=function(e){return(0,p.default)(c.default,{placement:"topLeft",title:e?""+e:"--"},void 0,e?""+e:"--")},n.progressResule=function(e){var t=(0,k.urlFormat)("/export-tasks/"+n.props.taskType+"/jobs/"+e+"/progress",P.ServicePath.MC_SERVICE);n.evtSource=new D.EventSourcePolyfill(t,{headers:{Authorization:(0,T.getToken)()}}),n.evtSource.addEventListener("open",(function(){n.setState({downResult:{status:"",message:"\u6210\u529f\u5efa\u7acb\u4e0b\u8f7d\u8fde\u63a5.....",percent:0}})})),n.evtSource.addEventListener("error",(function(e){var t=(0,I.isJsonString)(e.data)?JSON.parse(e.data):[];n.setState((function(e){var a=e.downResult;return a.status=L.default.get(t,"[0].status"),a.message=L.default.get(t,"[0].message")?L.default.get(t,"[0].message"):"\u4e0b\u8f7d\u51fa\u9519\uff0c\u8bf7\u5237\u65b0\u5217\u8868\u67e5\u770b\u9519\u8bef\u6d88\u606f",a.percent=0,{downResult:a}})),n.evtSource.close()})),n.evtSource.addEventListener("message",(function(e){n.setState((function(t){var a=(0,I.isJsonString)(e.data)?JSON.parse(e.data):[],o=t.downResult;if(o.status=L.default.get(a,"[0].status"),o.percent=L.default.get(a,"[0].percent"),"complete"===L.default.get(a,"[0].status")){if(o.message="FTP"!==n.state.downType?"\u5bfc\u51fa\u5b8c\u6210\uff0c\u6d4f\u89c8\u5668\u6b63\u5728\u4e0b\u8f7d\u5df2\u5bfc\u51fa\u6587\u4ef6....":"\u5bfc\u51fa\u5b8c\u6210\uff0c\u8bf7\u53bb\u5bf9\u5e94\u8def\u5f84\u5bfc\u51fa\u6587\u4ef6....",L.default.get(a,"[0].fileUrl")){var s=L.default.get(a,"[0].fileUrl")+"?token="+(0,T.getToken)();"FTP"!==n.state.downType&&(window.location.href=s)}else o.message="\u5bfc\u51fa\u5b8c\u6210\uff0c\u4f46\u662f\u8fd4\u56de\u4e0b\u8f7d\u8def\u5f84\u4e3a\u7a7a\uff0c\u8bf7\u627e\u7ba1\u7406\u5458\uff01";n.fetchDownloadTask(n.state.pagination,!1),n.evtSource.close()}else o.message=L.default.get(a,"[0].message")+"...";return{downResult:o}}))})),n.evtSource.addEventListener("failure",(function(e){var t=(0,I.isJsonString)(e.data)?JSON.parse(e.data):[];n.setState((function(e){var a=e.downResult;return a.status=L.default.get(t,"[0].status"),a.message=L.default.get(t,"[0].message")?L.default.get(t,"[0].message"):"\u4e0b\u8f7d\u51fa\u9519\uff0c\u8bf7\u5237\u65b0\u5217\u8868\u67e5\u770b\u9519\u8bef\u6d88\u606f",a.percent=0,n.fetchDownloadTask(n.state.pagination,!1),{downResult:a}})),n.evtSource.close()})),n.evtSource.addEventListener("finish",(function(){n.evtSource.close()}))},n.submit=function(){var e=!0;if("FTP"===n.downInfo.type&&n.props.form.validateFieldsAndScroll((function(t){null!==t&&(e=!1)})),e){n.setState({confirmLoading:!0});var t={type:n.downInfo.type,storageId:n.downInfo.storageId,storagePath:n.downInfo.ftpTopPath+n.downInfo.storagePath,storageName:""};(0,M.createTask)(n.props.taskType,{resourceId:L.default.get(n.props,"saveParams.resourceId",""),params:n.props.saveParams,taskConfigParams:t},n.props.env).then((function(e){"0000"===e.code?(n.setState({downResult:{status:"ing",message:"\u8bf7\u7a0d\u7b49\u6b63\u5728\u5bfc\u51fa"},resultShow:!0,confirmLoading:!1}),n.progressResule(L.default.get(e,"data.taskId"))):(n.setState({refreshing:!1,confirmLoading:!1}),f.default.info(e.message)),n.fetchDownloadTask(n.state.pagination,!1)})).catch((function(e){throw n.setState({refreshing:!1,confirmLoading:!1}),e}))}},n.getValBlur=function(e,t){if("sourceId"===t){for(var a=n.state.ftpDatas,o=0;o<a.length;o++)if(a[o].id===e){n.setState({ftpTopPath:a[o].storagePath}),n.downInfo.storageId=e,n.downInfo.storageName=a[o].storageName,n.downInfo.ftpTopPath=a[o].storagePath;break}}else"storagePath"===t&&(n.downInfo.storagePath=e.target.value)},n.state={validateStatus:"",taskList:[],refreshing:!0,pagination:V,downTypelist:a.downTypeArray?a.downTypeArray:["LOCAL","FTP"],downType:L.default.get(a,"downTypeArray[0]","LOCAL"),ftpDatas:[],ftpTopPath:"--",confirmLoading:!1,spinning:!1,resultShow:!1,downResult:{status:"",message:"",percent:0},canDownload:"true"==localStorage.getItem("canDownload")},n.evtSource=null,n.downInfo={storageId:"",ftpTopPath:"",storagePath:"",storageName:"",type:L.default.get(a,"downTypeArray[0]","LOCAL")},n.columns=[{title:"\u5bfc\u51fa\u65b9\u5f0f",dataIndex:"uploadType",key:"uploadType",ellipsis:{showTitle:!0},render:function(e){var t={FTP:"FTP",LOCAL:"\u672c\u5730\u4e0b\u8f7d",null:"--","":"--"}[e];return(0,p.default)(c.default,{placement:"topLeft",title:t?""+t:"--"},void 0,t?""+t:"--")}},{title:"\u6587\u4ef6\u540d\u79f0",dataIndex:"fileName",key:"fileName",ellipsis:{showTitle:!0},render:function(e){var t=e;return(0,p.default)(c.default,{placement:"topLeft",title:t?""+t:"--"},void 0,t?""+t:"--")}},{title:"\u6587\u4ef6\u5927\u5c0f",dataIndex:"totalSize",key:"totalSize",ellipsis:{showTitle:!0},render:function(e){var t=(0,I.bytesToSize)(e);return(0,p.default)(c.default,{placement:"topLeft",title:t?""+t:"--"},void 0,t?""+t:"--")}},{title:"\u63cf\u8ff0",dataIndex:"description",key:"description",ellipsis:{showTitle:!0},render:function(e){var t=e;return(0,p.default)(c.default,{placement:"topLeft",title:t?""+t:"--"},void 0,t?""+t:"--")}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",key:"createBy",ellipsis:{showTitle:!0},render:function(e){return n.renderColumn(e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",key:"createAt",ellipsis:{showTitle:!0},render:function(e){return n.renderColumn(e)}},{title:"\u5f53\u524d\u8fdb\u5ea6",dataIndex:"progress",key:"progress",ellipsis:{showTitle:!0},render:function(e){var t=e;return(0,p.default)(c.default,{placement:"topLeft",title:t?t+"%":"--"},void 0,t?t+"%":"--")}},{title:"\u72b6\u6001",dataIndex:"taskStatus",key:"taskStatus",render:function(e,t){return e!==S.LOG_DOWNLOAD_TASK_STATUS.downloadable?(0,p.default)(c.default,{placement:"topLeft",title:t.message},void 0,(0,p.default)("div",{},void 0,(0,p.default)(j.StateLabel,{source:"logTaskDownload",code:e}))):(0,p.default)(j.StateLabel,{source:"logTaskDownload",code:e})}},{title:"\u64cd\u4f5c",render:function(e,t){var a=[];return-1!==L.default.indexOf([S.LOG_DOWNLOAD_TASK_STATUS.complete,S.LOG_DOWNLOAD_TASK_STATUS.downloadable],t.taskStatus)&&t.fileUrl&&(a.push({handleName:"\u4e0b\u8f7d",handleAction:function(){var e=t.fileUrl+"?token="+(0,T.getToken)();window.open(e)}}),"FTP"!==t.uploadType&&a.push({handleName:"\u590d\u5236\u5730\u5740",handleAction:function(){var e=t.fileUrl+"?token="+(0,T.getToken)();(0,E.default)(e),f.default.success("\u590d\u5236\u6210\u529f!")}})),-1!==L.default.indexOf([S.LOG_DOWNLOAD_TASK_STATUS.queuing,S.LOG_DOWNLOAD_TASK_STATUS.processing,S.LOG_DOWNLOAD_TASK_STATUS.uploading],t.taskStatus)&&a.push({handleName:"\u53d6\u6d88",handleAction:function(){n.setState({spinning:!0}),(0,M.cancelTask)(n.props.taskType,t.taskId,n.props.env).then((function(){n.setState({spinning:!1}),n.fetchDownloadTask(n.state.pagination,!1)})).catch((function(e){throw n.fetchDownloadTask(n.state.pagination,!1),n.setState({spinning:!1}),e}))}}),-1!==L.default.indexOf([S.LOG_DOWNLOAD_TASK_STATUS.error,S.LOG_DOWNLOAD_TASK_STATUS.timeout,S.LOG_DOWNLOAD_TASK_STATUS.canceled],t.taskStatus)&&a.push({handleName:"\u91cd\u65b0\u521b\u5efa",handleAction:function(){n.setState({spinning:!0}),(0,M.rerunTask)(n.props.taskType,t.taskId,n.props.env).then((function(e){L.default.get(e,"data.success")&&(n.setState({downResult:{status:"ing",message:"\u8bf7\u7a0d\u7b49\u6b63\u5728\u5bfc\u51fa"},resultShow:!0,confirmLoading:!1,spinning:!1}),n.progressResule(L.default.get(t,"taskId")),n.fetchDownloadTask(n.state.pagination,!1))})).catch((function(e){throw n.fetchDownloadTask(n.state.pagination,!1),n.setState({spinning:!1}),e}))}}),(0,p.default)(j.ListButtons,{buttons:a,maxShowNum:3})}}],n}return(0,g.default)(t,e),t.prototype.componentDidMount=function(){this.fetchDownloadTask(),this.fetchFtp()},t.prototype.componentWillUnmount=function(){this.evtSource&&this.evtSource.close()},t.prototype.render=function(){var e=this,t=this.state,a=t.taskList,f=t.refreshing,m=t.spinning,h=t.pagination,g=t.downType,y=t.downTypelist,x=t.ftpDatas,S=t.ftpTopPath,I=t.resultShow,T=t.downResult,w=t.confirmLoading,E=this.props,D=E.columns,M=E.dataKey,k=E.exportHintMsg,P={LOCAL:"\u4e00\u952e\u4e0b\u8f7d\u81f3\u672c\u5730",FTP:"FTP\u670d\u52a1\u5668\u8f6c\u5b58"},L=this.props.form.getFieldDecorator;return(0,p.default)(O,{},void 0,I?(0,p.default)(u.default,{icon:"error"!==T.status?U:B,title:T.message,subTitle:(0,p.default)("div",{style:{marginLeft:15}},void 0,(0,p.default)(l.default,{percent:T.percent,steps:20})),extra:this.props.onCancel&&[(0,p.default)(d.default,{type:"primary",onClick:function(){return e.props.onCancel()}},"console","\u5173\u95ed\u754c\u9762")]}):(0,p.default)(i.default,{tip:"\u52a0\u8f7d\u4e2d.....",spinning:w},void 0,(0,p.default)(j.ModelConfigPanel,{title:"\u5bfc\u51fa\u65b9\u5f0f",hintMsg:k||null},void 0,(0,p.default)(A,{onChange:function(t){e.downInfo.type=t.target.value,"LOCAL"===t.target.value&&(e.downInfo.storageId="",e.downInfo.storageName="",e.downInfo.storagePath="",e.downInfo.ftpTopPath=""),e.setState({downType:t.target.value})},value:g},void 0,y.map((function(e){return(0,p.default)(_.default,{value:e},void 0,P[e])}))),"FTP"===g&&(0,p.default)(C.Form,{style:{marginTop:15},layout:"inline"},void 0,(0,p.default)(r.default,{},void 0,(0,p.default)(s.default,{span:5},void 0,(0,p.default)(R,{},void 0,L("storageId",{rules:[{required:"FTP"===g,message:"\u8bf7\u9009\u62e9\u4e0b\u8f7d\u5230\u90a3\u4e2a\u5bf9\u5e94\u7684FTP"}],initialValue:this.downInfo.storageId})((0,p.default)(v.default,{style:{width:200},onChange:function(t){return e.getValBlur(t,"sourceId")}},void 0,G,x.map((function(e,t){return(0,p.default)(F,{value:e.id},t,e.storageName)})))))),(0,p.default)(s.default,{},void 0,(0,p.default)(R,{},void 0,L("storagePath",{initialValue:this.downInfo.storagePath,validateTrigger:"onBlur"})((0,p.default)(o.default,{addonBefore:S,onChange:function(t){return e.getValBlur(t,"storagePath")}})))))),(0,p.default)("div",{className:"model-buttons"},void 0,!this.state.canDownload&&(0,p.default)("span",{style:{marginLeft:40,color:"red",fontSize:12}},void 0,"\u7528\u6237\u6743\u9650\u4e0d\u591f\uff0c\u65e0\u6cd5\u4f7f\u7528\u5bfc\u51fa\u529f\u80fd"),(0,p.default)(d.default,{onClick:function(){return e.submit()},type:"primary",disabled:!this.state.canDownload,loading:this.state.confirmLoading,style:{marginLeft:16,borderRadius:4}},void 0,"\u5bfc \u51fa")))),(0,p.default)(j.ModelConfigPanel,{title:"\u4e0b\u8f7d\u8bf7\u6c42\u5217\u8868",hintMsg:"\u7cfb\u7edf\u4f1a\u5b9a\u671f\u6e05\u7406\u5df2\u5b8c\u6210\u7684\u5bfc\u51fa\u5386\u53f2\u8bb0\u5f55"},void 0,(0,p.default)("div",{style:{display:"flex",justifyContent:"flex-end",height:20,lineHeight:"20px",marginBottom:10}},void 0,f?(0,p.default)(b.LoadingOutlined,{className:"refresh-icon",style:{fontSize:20}}):(0,p.default)(c.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,p.default)(b.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer",fontSize:20},onClick:this.handleRefresh}))),(0,p.default)(i.default,{tip:"\u52a0\u8f7d\u4e2d.....",spinning:m},void 0,(0,p.default)(n.default,{size:"small",rowKey:M||"taskId",dataSource:a,columns:D||this.columns,pagination:!1,scroll:{y:240}}),(0,p.default)(j.TabPagination,{currentPage:h.offset,pageSize:h.limit,total:h.total,onChange:this.onChangePage}))))},t}(y.default.Component);t.default=C.Form.create()(z)},"./src/containers/DownLoad/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.LOG_DOWNLOAD_TASK_STATUS=void 0;var n,o=a("./src/utils/enums.js");var s=(0,((n=o)&&n.__esModule?n:{default:n}).default)({queuing:["queuing","\u6392\u961f\u4e2d"],uploading:["uploading","\u4e0a\u4f20\u4e2d"],processing:["processing","\u521b\u5efa\u4e2d"],cleared:["cleared","\u5df2\u6e05\u7406"],canceled:["canceled","\u5df2\u53d6\u6d88"],complete:["complete","\u5df2\u5b8c\u6210"],downloadable:["downloadable","\u5df2\u5b8c\u6210"],error:["error","\u521b\u5efa\u5931\u8d25"],timeout:["timeout","\u6267\u884c\u8d85\u65f6"]});t.LOG_DOWNLOAD_TASK_STATUS=s},"./src/containers/IFrameContent/IFrameContainer.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./src/components/exception/index.js"),u=f(a("./src/utils/menuData.js")),c=a("./src/components/index.js"),p=a("./src/utils/history.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.div.withConfig({displayName:"IFrameContainer__IFrameWrapper",componentId:"sc-1e4uirz-0"})(["min-height:550px;width:100%;height:100%;background:#fff;position:relative;iframe{position:absolute;top:0;left:0;width:100%;height:100%;}"]),h=(0,n.default)(c.LoadingIndicator,{}),g=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setIframeUrl=function(e,t){for(var a=0;a<e.length;a++){var o=e[a];if(_.get(o,"addition.url")===t)return void(n.iframeUrl=_.get(o,"addition.iframeUrl"));Array.isArray(o.children)&&n.setIframeUrl(o.children,t)}},n.onload=function(){n.setState({iFrameLoading:!1})},n.setPojectId=function(e){var t=e;if(e&&-1!==e.indexOf("{projectId}")){var a=localStorage.getItem("AI.currentContext");if(a&&a.split("@").length>1){var n=a.split("@");t=t.substring(0,e.indexOf("{projectId}"))+n[1]}}return t},n.params=(0,p.parseParms)(a.location),n.iframeUrl=_.get(n.params,"url",null)?_.get(n.params,"url"):_.get(a.location,"state.iframeUrl"),n.iframeUrl||n.setIframeUrl(u.default.getMenuData(),_.get(a.location,"pathname")),n.state={iFrameLoading:!0,iframeUrl:n.iframeUrl},n.iframeRef=i.default.createRef(),n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(e){return{iframeUrl:_.get((0,p.parseParms)(e.location),"url",null)?_.get((0,p.parseParms)(e.location),"url"):_.get(e.location,"state.iframeUrl")}},t.prototype.render=function(){var e=this.state.iframeUrl;return e||(console.log("cacheMenuData.getMenuData()",u.default.getMenuData()),this.setIframeUrl(u.default.getMenuData(),_.get(this.props.location,"pathname")),e=this.iframeUrl),e=this.setPojectId(e),(0,n.default)(m,{},void 0,e?(0,n.default)(i.default.Fragment,{},void 0,(0,n.default)("div",{style:{display:this.state.iFrameLoading?"block":"none"}},void 0,h),i.default.createElement("iframe",{ref:this.iframeRef,onLoad:this.onload,frameBorder:"0",scrolling:"yes",src:e,height:"100%",style:{width:"100%",height:"100%",visibility:this.state.iFrameLoading?"hidden":"visible",overflowY:"hidden"},title:"Some Content",__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\containers\\IFrameContent\\IFrameContainer.jsx",lineNumber:110}})):(0,n.default)(l.NotFoundPage,{message:"\u8bf7\u6c42\u5730\u5740["+this.props.location+"]\u4e0d\u5b8c\u6574!"}))},t}(i.default.Component);t.default=g},"./src/containers/IFrameContent/IFrameContent.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/lodash/lodash.js")),l=p(a("./node_modules/prop-types/index.js")),u=a("./src/components/index.js"),c=a("./src/components/exception/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,n.default)(u.LoadingIndicator,{}),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setLoaded=function(){d.default.delay((function(){n.setState({isLoading:!1})}),300)},n.state={isLoading:!0},n}return(0,r.default)(t,e),t.prototype.render=function(){return this.props.url?(0,n.default)(i.default.Fragment,{},void 0,this.state.isLoading&&f,(0,n.default)(u.IFrame,{src:this.props.url,onLoad:this.setLoaded,isShow:!this.state.isLoading})):(0,n.default)(c.InternalErrorPage,{message:"\u8bf7\u6c42\u5730\u5740["+this.props.location+"]\u4e0d\u5b8c\u6574!"})},t}(i.default.Component);m.propsType={url:l.default.string},t.default=m},"./src/containers/IntroducePage/IntroducePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=(f(a("./node_modules/prop-types/index.js")),f(a("./src/containers/IntroducePage/components/index.js"))),l=a("./src/containers/IntroducePage/components/style.jsx"),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/redux/reducers/sysManager/sysManager.js"),p=a("./src/redux/selectors/sysManager/sysManager.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.ContactInfo,h=d.default.DocsInfo,g=d.default.ProductFeature,v={SYS_INTRO:d.default.ProductIntroduce,FEATURES:g,DOCS:h,CONTACT:m,PUBLISH_LOG:d.default.ReleaseLogPage,CASES:d.default.ApplicationCases},y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={},n.props.dispatch(c.sysManagerActions.getSysHelpListRequest()),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.sysHelpList.size>0?this.props.sysHelpList.toJS():[];return(0,n.default)(l.IntroduceContainer,{},void 0,e.map((function(e){var t=e.confCode,a=e.confTitle,o=e.confJson,s=v[_.toUpper(t)];return s||console.error("\u7ec4\u4ef6"+t+"\u672a\u5b9a\u4e49"),_.isPlainObject(o)||_.isArray(o)||console.error("\u7ec4\u4ef6"+t+"\u914d\u7f6eJSON\u4e0d\u6b63\u786e"),(0,n.default)(i.default.Fragment,{},t,a&&a.length>0&&(0,n.default)("h2",{className:"section-title"},void 0,a),(0,n.default)(s,{data:o},t))})))},t}(i.default.PureComponent);t.default=(0,u.connect)((function(e){return{sysHelpList:(0,p.selectSysHelpList)(e)}}))(y)},"./src/containers/IntroducePage/aiDevelopment/AIDevelopment.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=v(a("./node_modules/react/index.js")),d=a("./node_modules/immutable3/dist/immutable.js"),l=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/redux/reducers/auth.js"),p=(v(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/auth.js")),f=a("./src/redux/selectors/sysManager/userManager.js"),m=a("./src/utils/history.js"),h=a("./src/utils/authPermit.js"),g=a("./src/routes/routeHelper.jsx");function v(e){return e&&e.__esModule?e:{default:e}}var y=l.default.div.withConfig({displayName:"AIDevelopment__PageWrapper",componentId:"sc-1kc9ft7-0"})(["background:#fff;display:flex;width:100%;.page__content-wrapper{width:100%;flex-direction:column;display:flex;align-items:center;}.page__body-container{max-width:1200px;width:100%;height:500px;background-size:contain;background-repeat:no-repeat;}"]),b=l.default.div.withConfig({displayName:"AIDevelopment__BannerWrapper",componentId:"sc-1kc9ft7-1"})(["position:relative;height:390px;width:100%;display:block;background-size:cover;background-repeat:no-repeat;background-image:",";.banner-text{padding-left:240px;padding-top:78px;}.banner-title{font-size:46px;color:#f9f9f9;letter-spacing:4px;line-height:46px;}.banner-desc{margin-top:32px;font-size:18px;color:#f9f9f9;letter-spacing:1px;line-height:32px;width:552px !important;}.banner-link{display:flex;justify-content:center;align-items:center;margin-top:16px;width:120px;height:36px;background-image:linear-gradient(-63deg,#73b3ff 0%,#0565d6 84%);border-radius:4px;font-size:14px;color:#ffffff;letter-spacing:0;line-height:14px;cursor:pointer;}"],(function(e){return"url("+e.url+")"})),x=(0,n.default)("div",{className:"banner-title"},void 0,"\u4e00\u7ad9\u5f0f\u5f00\u53d1\u5e73\u53f0"),C=(0,n.default)("div",{className:"banner-desc"},void 0,"\u652f\u6491\u4f01\u4e1a\u667a\u6167\u4e2d\u53f0\u642d\u5efa\uff0c\u652f\u6301\u6570\u636e\u79d1\u5b66\u5bb6\u6316\u6398\u6570\u636e\u8d44\u4ea7\u4ef7\u503c\uff0c\u4e3a\u5168\u57df\u4e1a\u52a1\u5e94\u7528\u63d0\u4f9b\u6ce8\u667a\u670d\u52a1\uff0c\u52a9\u529b\u4f01\u4e1a\u5b8c\u6210\u667a\u80fd\u5316\u8f6c\u578b\u3002"),j=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.showLogin=function(e){e.stopPropagation();var t=_.get(n.props,"location.pathname");n.props.isAuthenticated&&(0,h.isAuth)()?(0,m.navigateTo)("/"):t.indexOf("/login")>-1?n.props.dispatch(c.authActions.showLogin()):(0,h.redirectLogin)()},n.state={homePageConfig:null},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){!(_.get(this.props,"location.pathname").indexOf("/login")>-1)||this.props.isAuthenticated&&(0,h.isAuth)()||this.props.dispatch(c.authActions.showLogin())},t.prototype.componentDidUpdate=function(e){var t=_.get(this.props,"location.pathname");_.get(e,"location.pathname")!==t&&(!(t.indexOf("/login")>-1)||this.props.isAuthenticated&&(0,h.isAuth)()||this.props.dispatch(c.authActions.showLogin()))},t.prototype.render=function(){var e=this.props.userJoinedProjects;e=d.Iterable.isIterable(e)?e.toJS():e;var t=localStorage.getItem("AI.isAppliedProject"),o="/";return _.get((0,h.getUserAdditionalInfo)(),"isPlatformAdmin")?(o=g.sysManageUrl.tenants(),(0,m.navigateTo)(o),null):this.props.isAuthenticated&&(0,h.isAuth)()?(o=g.homeUrl.projectOverview(),Array.isArray(e)&&0!==e.length||(o=g.operationUrl.joinProject(),t&&(o=g.operationUrl.applyProjectReq())),(0,m.navigateTo)(o),null):(0,n.default)(y,{},void 0,(0,n.default)("div",{className:"page__content-wrapper"},void 0,(0,n.default)(b,{url:a("./src/styles/images/introduce/banner.png")},void 0,(0,n.default)("div",{className:"banner-text"},void 0,x,C,(0,n.default)("div",{className:"banner-link",onClick:this.showLogin},void 0,"\u7acb\u5373\u4f7f\u7528"))),(0,n.default)("div",{className:"page__body-container",style:{backgroundImage:"url("+a("./src/styles/images/introduce/yili-development.jpeg")+")"}})))},t}(i.default.Component);t.default=(0,u.connect)((function(e){return{isAuthenticated:(0,p.selectIsAuthenticated)(e),userJoinedProjects:(0,f.selectUserJoinedProjects)(e)}}))(j)},"./src/containers/IntroducePage/components/ApplicationCases.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/lodash/lodash.js"))),s=a("./src/containers/IntroducePage/components/style.jsx");r(a("./node_modules/prop-types/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.data;return(0,n.default)(s.CasesWrapper,{},void 0,o.default.isArray(t)&&t.map((function(e){return(0,n.default)(s.CasesContextWrap,{className:e.position},e.id,(0,n.default)(s.CasesWrap,{},void 0,(0,n.default)("img",{src:a("./src/styles/images sync recursive ^\\.\\/.*$")("./"+e.img),alt:e.imgAlt})),(0,n.default)("section",{},void 0,(0,n.default)("h2",{},void 0,e.head),(0,n.default)("p",{dangerouslySetInnerHTML:{__html:e.detail}})))})))}},"./src/containers/IntroducePage/components/ContactInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TitleDom=t.ContactInfoDom=void 0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(u(a("./node_modules/prop-types/index.js")),a("./src/components/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.ContactInfoDom=d.default.div.withConfig({displayName:"ContactInfo__ContactInfoDom",componentId:"sc-8hgoao-0"})(["display:flex;flex-direction:row;justify-content:space-between;width:100%;span{font-size:16;font-weight:600;}.docsTit{font-size:12px;padding-top:15px;color:#6e6e6e;}.group-div{width:24%;padding-left:8%;&:not(:last-child){border-right:1px solid #cac7c7;}}"]),p=(t.TitleDom=d.default.div.withConfig({displayName:"ContactInfo__TitleDom",componentId:"sc-8hgoao-1"})(["margin-left:43%;font-size:27px;height:60px;"]),function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));return r.renderValue=function(e){var t=e.split(",");return t instanceof Array?t.map((function(e,t){return(0,n.default)("div",{className:"docsTit"},t,(0,n.default)(l.LineWrap,{title:e,lineClampNum:1}))})):(0,n.default)("div",{className:"docsTit"},void 0,e)},r.state={},r}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t={phone:"\u7535\u8bdd",wechat:"\u5fae\u4fe1",qq:"QQ",email:"\u90ae\u7bb1"};return(0,n.default)(c,{},void 0,Object.keys(t).map((function(a){return(0,n.default)("div",{className:"group-div"},a,(0,n.default)("span",{},void 0,t[a]),(0,n.default)("div",{className:"docsTit"},void 0,e.renderValue(e.props.data[a])))})))},t}(i.default.PureComponent));t.default=p},"./src/containers/IntroducePage/components/DocsInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TitleDom=t.DocsInfoDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/utils/history.js"),c=a("./src/utils/constants.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=t.DocsInfoDom=d.default.div.withConfig({displayName:"DocsInfo__DocsInfoDom",componentId:"sc-1fxyny7-0"})(["width:100%;display:flex;flex-direction:row;justify-content:space-between;.group-div{width:24%;padding-left:8%;&:not(:last-child){border-right:1px solid #cac7c7;}> span{font-size:16px;font-weight:600;}.docsTit{cursor:pointer;padding-top:15px;color:#6e6e6e;> span{font-size:12px;color:#6e6e6e;}&:hover{color:#ffff;}}}"]),m=(t.TitleDom=d.default.div.withConfig({displayName:"DocsInfo__TitleDom",componentId:"sc-1fxyny7-1"})(["margin-left:43%;font-size:27px;height:60px;"]),function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onClickLink=function(e){"python,R\u7b97\u6cd5\u5305"===e.name?(0,u.navigateTo)("/sysmgr/arithmeticExplain"):window.open((0,c.wrapServiceUrl)(c.ServicePath.MODELING_SERVICE,e.path.substring(1,e.path.length)))},n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(f,{},void 0,this.props.data.map((function(t){return(0,n.default)("div",{className:"group-div"},t.group,(0,n.default)("span",{},void 0,t.group),t.items.map((function(t){return(0,n.default)("div",{className:"docsTit"},t.name,(0,n.default)("span",{onClick:function(){return e.onClickLink(t)}},t.name,t.name))})))})))},t}(i.default.PureComponent));t.default=(0,l.connect)((function(){return{}}))(m)},"./src/containers/IntroducePage/components/ProductFeature.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/lodash/lodash.js"))),s=a("./src/containers/IntroducePage/components/style.jsx");r(a("./node_modules/prop-types/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.data;return(0,n.default)(s.FeatureWrapper,{},void 0,o.default.isArray(t)&&t.map((function(e){return(0,n.default)(s.FeatureItemWrap,{},e.id,(0,n.default)("img",{src:a("./src/styles/images sync recursive ^\\.\\/.*$")("./"+e.img),alt:e.imgAlt}),(0,n.default)("h2",{},void 0,e.name),(0,n.default)("p",{},void 0,e.desc))})))}},"./src/containers/IntroducePage/components/ProductIntroduce.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(i(a("./node_modules/react/index.js")),i(a("./node_modules/prop-types/index.js")),a("./src/containers/IntroducePage/components/style.jsx")),s=i(a("./src/styles/media/prd_intro_bg.mp4")),r=i(a("./src/styles/images/prd_intro_bg.jpg"));function i(e){return e&&e.__esModule?e:{default:e}}var d=(0,n.default)("video",{poster:r.default,loop:!0,autoPlay:!0,muted:!0},void 0,(0,n.default)("source",{type:"video/mp4",src:s.default})),l=(0,n.default)(o.IntroduceBottomWrap,{});t.default=function(e){var t=e.data;return(0,n.default)(o.IntroduceWrap,{},void 0,(0,n.default)(o.IntroduceContextWrap,{},void 0,(0,n.default)(o.IntroduceItemWrap,{},void 0,d,(0,n.default)(o.DescriptionWrap,{},void 0,(0,n.default)("h1",{},void 0,t&&t.title||"AISWare AI\xb2\u7b80\u4ecb"),(0,n.default)("p",{},void 0,t&&t.desc||"")))),l)}},"./src/containers/IntroducePage/components/ReleaseLog.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/timeline/index.js"));a("./node_modules/antd/es/timeline/style/index.js");var d=a("./node_modules/react/index.js"),l=(p(d),p(a("./node_modules/prop-types/index.js")),p(a("./src/components/toJS.jsx"))),u=a("./src/components/index.js"),c=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=i.default.Item,m=c.default.div.withConfig({displayName:"ReleaseLog__ReleaseStyle",componentId:"opd1ql-0"})(["padding:20px 50px;width:100%;background:#fff;h2.release-title{margin-top:0;padding-top:4px;}p.release-time{code{margin:0 1px;padding:0.2em 0.4em;font-size:0.9em;background:#f2f4f5;border:1px solid #eee;border-radius:3px;}}div.release-content{font-size:14px;}"]),h=(0,n.default)(u.LoadingIndicator,{}),g=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,a=e.data,o=e.limit;return(0,n.default)(m,{},void 0,(0,n.default)(i.default,{},void 0,t&&h,!t&&_.isArray(a)&&_.take(a,o||3).map((function(e){return(0,n.default)(f,{},e.afficheId,(0,n.default)("h2",{className:"release-title"},void 0,e.afficheTitle),(0,n.default)("p",{className:"release-time"},void 0,(0,n.default)("code",{},void 0,"\u53d1\u5e03\u65f6\u95f4\uff1a",e.publishTime)),(0,n.default)("div",{className:"release-content",dangerouslySetInnerHTML:{__html:e.afficheContent}}))}))),(0,n.default)("a",{href:"javascript:void(0)",onClick:this.props.onShowAll},void 0,"\u67e5\u770b\u66f4\u591a"))},t}(d.PureComponent);t.default=(0,l.default)(g)},"./src/containers/IntroducePage/components/ReleaseLogPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/modal/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js");var d=a("./node_modules/react/index.js"),l=h(d),u=(h(a("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/redux/reducers/affiche.js"),p=a("./src/redux/selectors/affiche.js"),f=h(a("./src/containers/IntroducePage/components/ReleaseLog.jsx")),m=h(a("./src/module/sysManage/messageAffiche/component/AfficheConfigPage.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var g=(0,o.default)(m.default,{onlyReleaseLog:!0}),v=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleShowAll=function(){n.setState({modalVisible:!0})},n.handleCloseModal=function(){n.setState({modalVisible:!1})},n.state={modelVisible:!1},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(c.afficheActions.getAfficheListUserRequest({userId:"LOGIN_USER",keyword:"",efficient:"",level:"",sortField:"publishTime",affichType:2,offset:1,limit:_.defaultTo(_.get(this.props.data,"limit"),3)}))},t.prototype.render=function(){return(0,o.default)(l.default.Fragment,{},void 0,(0,o.default)(f.default,{data:this.props.afficheListByUser,loading:this.props.loading,onShowAll:this.handleShowAll,limit:this.props.data.limit}),(0,o.default)(n.default,{width:"60%",visible:this.state.modalVisible,title:"\u67e5\u770b\u53d1\u5e03\u516c\u544a",maskClosable:!0,onCancel:this.handleCloseModal,footer:null},void 0,g))},t}(d.PureComponent);t.default=(0,u.connect)((function(e){return{afficheListByUser:(0,p.selectAfficheListByUser)(e).get("data"),loading:!1}}))(v)},"./src/containers/IntroducePage/components/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./src/containers/IntroducePage/components/ContactInfo.jsx")),o=l(a("./src/containers/IntroducePage/components/DocsInfo.jsx")),s=l(a("./src/containers/IntroducePage/components/ProductFeature.jsx")),r=l(a("./src/containers/IntroducePage/components/ProductIntroduce.jsx")),i=l(a("./src/containers/IntroducePage/components/ReleaseLogPage.jsx")),d=l(a("./src/containers/IntroducePage/components/ApplicationCases.jsx"));function l(e){return e&&e.__esModule?e:{default:e}}t.default={ContactInfo:n.default,DocsInfo:o.default,ProductFeature:s.default,ProductIntroduce:r.default,ReleaseLogPage:i.default,ApplicationCases:d.default}},"./src/containers/IntroducePage/components/style.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CasesWrap=t.CasesContextWrap=t.CasesWrapper=t.FeatureDividerHr=t.FeatureItemWrap=t.FeatureWrapper=t.IntroduceBottomWrap=t.DescriptionWrap=t.IntroduceDescWrap=t.IntroduceItemWrap=t.IntroduceContextWrap=t.IntroduceWrap=t.IntroduceContainer=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.IntroduceContainer=s.default.div.withConfig({displayName:"style__IntroduceContainer",componentId:"sc-1jkevyu-0"})(["color:",";padding-bottom:40px;background-color:#f5f6f9;font-size:14px;line-height:20px;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;width:100%;.section-title{text-align:center;font-size:30px;width:100%;font-weight:normal;line-height:80px;margin:15px 0;letter-spacing:4px;text-rendering:optimizelegibility;color:#395377;}"],(function(e){return e.theme.color.primary})),t.IntroduceWrap=s.default.div.withConfig({displayName:"style__IntroduceWrap",componentId:"sc-1jkevyu-1"})(["position:relative;line-height:1;"]),t.IntroduceContextWrap=s.default.div.withConfig({displayName:"style__IntroduceContextWrap",componentId:"sc-1jkevyu-2"})(["position:relative;width:100%;overflow:hidden;"]),t.IntroduceItemWrap=s.default.div.withConfig({displayName:"style__IntroduceItemWrap",componentId:"sc-1jkevyu-3"})(["height:500px;left:0;position:relative;transition:0.6s ease-in-out left;video{display:inline-block;z-index:-1;width:100%;object-fit:contain;}"]),t.IntroduceDescWrap=s.default.div.withConfig({displayName:"style__IntroduceDescWrap",componentId:"sc-1jkevyu-4"})(["position:absolute;left:0;top:0;right:0;margin-right:auto;margin-left:auto;"]),t.DescriptionWrap=s.default.div.withConfig({displayName:"style__DescriptionWrap",componentId:"sc-1jkevyu-5"})(["background-color:transparent;position:absolute;left:220px;top:100px;max-width:580px;z-index:99;h1{font-size:38.5px;margin:0;line-height:1.5;padding-bottom:20px;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,0.4);font-weight:normal;letter-spacing:1px;}p{font-size:20px;margin:0;line-height:1.5;padding-bottom:20px;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,0.4);display:block;}a{cursor:pointer;background-color:#168dde;font-size:16px;color:#fff;padding:6px 16px 6px 16px;margin-top:40px;text-decoration:none;border-radius:4px;border:2px;box-shadow:0 2px 10px rgba(0,0,0,0.25);&:hover{color:#fff;background-color:#47b2fb;}}"]),t.IntroduceBottomWrap=s.default.div.withConfig({displayName:"style__IntroduceBottomWrap",componentId:"sc-1jkevyu-6"})(["width:100%;height:6px;background-color:#395377;"]),t.FeatureWrapper=s.default.div.withConfig({displayName:"style__FeatureWrapper",componentId:"sc-1jkevyu-7"})(["width:100%;display:flex;flex-direction:row;justify-content:space-between;h2{text-align:center;font-size:30px;font-weight:normal;letter-spacing:15px;line-height:40px;font-family:inherit;color:inherit;text-rendering:optimizelegibility;}.feature{margin:50px 0 60px 0;}"]),t.FeatureItemWrap=s.default.div.withConfig({displayName:"style__FeatureItemWrap",componentId:"sc-1jkevyu-8"})(["text-align:center;width:270px;float:left;min-height:1px;margin-left:30px;img{width:100px;height:100px;border-radius:500px;max-width:100%;vertical-align:middle;border:0;}h2{text-align:center;font-size:14px;font-weight:bold;letter-spacing:2px;padding-top:20px;line-height:40px;display:block;text-rendering:optimizelegibility;}p{font-size:0.85rem;text-align:justify;font-weight:normal;margin-left:15px;margin-right:15px;}"]),t.FeatureDividerHr=s.default.hr.withConfig({displayName:"style__FeatureDividerHr",componentId:"sc-1jkevyu-9"})(["margin:30px 0;border:0;border-top:1px solid #eeeeee;border-bottom:1px solid #ffffff;display:block;overflow:hidden;"]),t.CasesWrapper=s.default.div.withConfig({displayName:"style__CasesWrapper",componentId:"sc-1jkevyu-10"})(["display:flex;flex-direction:column;width:100%;"]),t.CasesContextWrap=s.default.div.withConfig({displayName:"style__CasesContextWrap",componentId:"sc-1jkevyu-11"})(["width:100%;background-color:#fff;opacity:1;overflow:hidden;position:relative;transition:all 0.5s ease-in-out;display:flex;&.pull-left{flex-direction:row;}&.pull-right{flex-direction:row-reverse;}section{width:50%;padding:80px;display:block;h2{font-size:28px;color:rgb(57,83,119);font-weight:normal;letter-spacing:4px;line-height:40px;text-align:left;text-rendering:optimizelegibility;}p{font-size:14px;font-weight:lighter;line-height:1.5;color:#6b7e99;margin:0 0 10px;}}"]),t.CasesWrap=s.default.div.withConfig({displayName:"style__CasesWrap",componentId:"sc-1jkevyu-12"})(["width:50%;overflow:hidden;img{transition:all 1s ease-in-out;height:auto;max-width:100%;vertical-align:middle;border:0;&:hover{transform:scale(1.1);}}"])},"./src/containers/LocaleProvider/LocaleProvider.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/config-provider/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/config-provider/style/index.js");var d=h(a("./node_modules/react/index.js")),l=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./node_modules/reselect/lib/index.js"),c=a("./node_modules/react-intl/lib/index.es.js"),p=a("./src/components/index.js"),f=h(a("./node_modules/antd/es/locale/zh_CN.js")),m=a("./src/containers/LocaleProvider/selectors.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,s.default)(this,t),(0,r.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){return(0,o.default)(c.IntlProvider,{locale:this.props.locale,messages:this.props.messages[this.props.locale]},this.props.locale,(0,o.default)(n.default,{locale:f.default,renderEmpty:p.Empty},void 0,d.default.Children.only(this.props.children)))},t}(d.default.PureComponent),v=(0,u.createSelector)((0,m.makeSelectLocale)(),(function(e){return{locale:e}}));t.default=(0,l.connect)(v)(g)},"./src/containers/LocaleProvider/selectors.js":function(e,t,a){"use strict";t.__esModule=!0,t.makeSelectLocale=t.selectLocale=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=function(e){return e.get("locale")};t.selectLocale=o,t.makeSelectLocale=function(){return(0,n.createSelector)(o,(function(e){return e.get("locale")}))}},"./src/containers/LoginPage/Loadable.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./node_modules/react-loadable/lib/index.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/components/index.js");t.default=(0,s.default)({loader:function(){return a.e(5).then(a.t.bind(null,"./src/containers/LoginPage/LoginPage.jsx",7))},loading:r.LoadingIndicator,delay:300})},"./src/containers/LoginPage/iframeLoginWrapper/IframeLoginWrapper.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/react/index.js")),d=g(a("./node_modules/lodash/lodash.js")),l=a("./node_modules/react-redux/es/index.js"),u=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(g(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),p=g(a("./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js")),f=a("./src/redux/reducers/auth.js"),m=a("./src/utils/history.js"),h=a("./src/utils/authPermit.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.div.withConfig({displayName:"IframeLoginWrapper__LoginModelWrapper",componentId:"sc-1r5hirj-0"})(["position:absolute;width:400px;background:#fff;border:1px solid #eee;top:65px;right:28px;animation:showLogin 0.5s;background-color:#fff;background-clip:padding-box;border-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,0.15);pointer-events:auto;z-index:1;height:400px;.switch-login-wrapper{padding:0;display:flex;list-style:none;justify-content:space-around;}.switch-login-item{display:flex;justify-content:center;width:50%;height:40px;line-height:40px;background:#d2d8d8;cursor:pointer;&.active{background:#fff;}}@keyframes showLogin{from{right:-500px;}to{right:28px;}}"]),_=(0,n.default)(c.LoadingIndicator,{}),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.hideSpinner=function(){n.setState({iframeLoaded:!0})},n.handleClickOutside=function(){n.props.dispatch(f.authActions.hideLogin())},n.state={iframeLoaded:!1};var r=(0,m.parseParms)(window.location),i=d.default.get(r,"referUrl");return i&&(n.referURL=i),(0,h.removeLoginData)(),n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e="/aiSquare/openApi/uc/oauth/zj4a/login"+(this.referURL?"?referURL="+this.referURL:"");return(0,n.default)(v,{},void 0,!this.state.iframeLoaded&&_,(0,n.default)("iframe",{onLoad:this.hideSpinner,style:{width:"100%",height:"400px",border:0},src:e}))},t}(i.default.Component);y.defaultProps={error:null};t.default=(0,l.connect)((function(e,t){return{referURL:d.default.get(t,"location.state.referrer.pathname","")}}))((0,p.default)(y))},"./src/containers/LoginPage/loginAuthRedirect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/antd/es/modal/index.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js");var d=g(a("./node_modules/react/index.js")),l=a("./node_modules/react-redux/es/index.js"),u=a("./node_modules/reselect/lib/index.js"),c=a("./src/redux/reducers/auth.js"),p=a("./src/components/index.js"),f=(g(a("./node_modules/prop-types/index.js")),a("./src/utils/authPermit.js")),m=a("./src/utils/history.js"),h=a("./src/redux/selectors/auth.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=(0,n.default)(p.LoadingIndicator,{}),_=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleRedirectLogin=function(){var e=5,t=n.props.errorMsg||"\u6388\u6743\u5931\u8d25";n.props.dispatch(c.authActions.logoutRequest());var a=o.default.warn({title:t,content:t+","+e+" \u79d2\u540e\u81ea\u52a8\u8df3\u8f6c\u81f3\u767b\u5f55\u9875\u9762\uff01",okText:"\u7acb\u5373\u8df3\u8f6c\u81f3\u767b\u5f55\u9875\u9762",onOk:function(){clearInterval(s),(0,f.removeLoginData)(),a.destroy();var e=(0,m.urlParamDel)("code");window.top.location.href=e}}),s=setInterval((function(){e-=1,a.update&&a.update({content:t+","+e+" \u79d2\u540e\u81ea\u52a8\u8df3\u8f6c\u81f3\u767b\u5f55\u9875\u9762\uff01"})}),1e3);return setTimeout((function(){clearInterval(s),(0,f.removeLoginData)(),a.destroy();var e=(0,m.urlParamDel)("code");window.top.location.href=e}),1e3*e),a},n.state={},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){if(this.props.code)if(this.props.isAuthenticated){var e=(0,m.urlParamDel)("code");window.top.location.href=e}else this.props.dispatch(c.authActions.loginRequest({code:this.props.code,scopeType:"PROJECT"}))},t.prototype.componentDidUpdate=function(e){this.props.loginErrorState&&this.props.loginErrorState!==e.loginErrorState&&this.handleRedirectLogin()},t.prototype.render=function(){return v},t}(d.default.PureComponent),y=(0,u.createStructuredSelector)({errorMsg:h.selectError,loginErrorState:h.selectLoginErrorState,isAuthenticated:h.selectIsAuthenticated});t.default=(0,l.connect)(y)(_)},"./src/containers/Menu/MenuTittle.jsx":function(e,t,a){},"./src/containers/Root.jsx":function(e,t,a){"use strict";(function(e){t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(p(a("./node_modules/react/index.js")),a("./node_modules/react-hot-loader/index.js")),s=a("./node_modules/react-router-dom/esm/react-router-dom.js"),r=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),i=p(a("./src/redux/configureStore.js")),d=p(a("./src/utils/history.js")),l=p(a("./src/utils/constants.js")),u=p(a("./src/containers/LocaleProvider/LocaleProvider.jsx")),c=p(a("./src/containers/App/App.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.DEFAULT_LOCALE,m=(0,i.default)({},d.default),h=(0,n.default)(s.Router,{history:d.default},void 0,(0,n.default)(c.default,{}));t.default=(0,o.hot)(e)((function(e){var t=e.messages;return(0,n.default)(r.Provider,{store:m},void 0,(0,n.default)(u.default,{messages:t,locale:f},void 0,h))}))}).call(this,a("./node_modules/webpack/buildin/module.js")(e))},"./src/containers/actions.js":function(e,t,a){"use strict";t.__esModule=!0;var n=(0,a("./node_modules/qiankun/es/index.js").initGlobalState)({test:{param:"11"}});t.default=n},"./src/containers/enhancers/AuthRoute.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.withAuthentication=void 0;var n=x(a("./node_modules/babel-runtime/helpers/extends.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=x(a("./node_modules/babel-runtime/helpers/inherits.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\containers\\enhancers\\AuthRoute.jsx",u=x(a("./node_modules/react/index.js")),c=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-router-dom/esm/react-router-dom.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./node_modules/reselect/lib/index.js"),m=a("./src/redux/selectors/auth.js"),h=a("./src/redux/selectors/app.js"),g=a("./src/components/index.js"),v=a("./src/utils/history.js"),y=a("./src/routes/routeHelper.jsx"),b=a("./src/utils/authPermit.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=(0,o.default)(g.LoadingIndicator,{}),j=function(e){function t(){return(0,r.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.isAuthenticated,a=e.integration,r=e.Component,i=e.redirect,d=(0,s.default)(e,["isAuthenticated","integration","Component","redirect"]),p=(0,b.getToken)();if(!t||!p){if(localStorage.getItem("AI-logout"))return(0,v.navigateTo)(y.introduceUrl.index()),localStorage.removeItem("AI-logout"),null;var f=window.location.search,m=_.get(this.props,"location.pathname","");f=f?f+"&referUrl="+m:m?"referUrl="+m:"";var h=y.sysManageUrl.login(),g=f?h+"?"+f:h;return(0,v.navigateTo)(g),null}return u.default.createElement(c.Route,(0,n.default)({},d,{render:function(e){return t?u.default.createElement(r,(0,n.default)({},e,{__source:{fileName:l,lineNumber:57}})):a?C:(0,o.default)(c.Redirect,{to:{pathname:i,state:{referrer:e.location||"/"}}})},__source:{fileName:l,lineNumber:41}}))},t}(u.default.PureComponent);j.defaultProps={integration:null};var S=(0,f.createStructuredSelector)({isAuthenticated:m.selectIsAuthenticated,integration:h.selectIntegrationSetting});t.withAuthentication=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/login";return function(a){return a.isAuthenticated?u.default.createElement(e,(0,n.default)({},a,{__source:{fileName:l,lineNumber:101}})):(0,o.default)(c.Redirect,{to:{redirect:t,state:{from:a.location||"/"}}})}};t.default=(0,p.connect)(S)(j)},"./src/containers/enhancers/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/containers/enhancers/AuthRoute.jsx");Object.defineProperty(t,"AuthRoute",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}}),Object.defineProperty(t,"withAuthentication",{enumerable:!0,get:function(){return n.withAuthentication}})},"./src/containers/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/containers/Dashboard/Dashboard.jsx");Object.defineProperty(t,"Dashboard",{enumerable:!0,get:function(){return c(n).default}});var o=a("./src/containers/IFrameContent/IFrameContent.jsx");Object.defineProperty(t,"IFrameContent",{enumerable:!0,get:function(){return c(o).default}});var s=a("./src/containers/IntroducePage/IntroducePage.jsx");Object.defineProperty(t,"IntroducePage",{enumerable:!0,get:function(){return c(s).default}});var r=a("./src/containers/LocaleProvider/LocaleProvider.jsx");Object.defineProperty(t,"LocaleProvider",{enumerable:!0,get:function(){return c(r).default}});var i=a("./src/containers/LoginPage/Loadable.js");Object.defineProperty(t,"LoginPage",{enumerable:!0,get:function(){return c(i).default}});var d=a("./src/containers/IFrameContent/IFrameContainer.jsx");Object.defineProperty(t,"IFrameContainer",{enumerable:!0,get:function(){return c(d).default}});var l=a("./src/containers/IntroducePage/aiDevelopment/AIDevelopment.jsx");Object.defineProperty(t,"AIDevelopment",{enumerable:!0,get:function(){return c(l).default}});var u=a("./src/containers/LoginPage/loginAuthRedirect.jsx");function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"LoginAuthRedirect",{enumerable:!0,get:function(){return c(u).default}})},"./src/containers/toJS.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.toJS2=void 0;var n=i(a("./node_modules/babel-runtime/helpers/extends.js")),o="C:\\Users\\leo\\workspace\\aihub-web\\src\\containers\\toJS.jsx",s=i(a("./node_modules/react/index.js")),r=a("./node_modules/immutable3/dist/immutable.js");function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(t){var a=Object.entries(t).reduce((function(e,t){return e[t[0]]=r.Iterable.isIterable(t[1])?t[1].toJS():t[1],e}),{});return s.default.createElement(e,(0,n.default)({},a,{__source:{fileName:o,lineNumber:13}}))}};t.toJS2=function(e){var t=s.default.forwardRef((function(t,a){var i=Object.entries(t).reduce((function(e,t){return e[t[0]]=r.Iterable.isIterable(t[1])?t[1].toJS():t[1],e}),{});return s.default.createElement(e,(0,n.default)({ref:a},i,{__source:{fileName:o,lineNumber:26}}))}));return t.displayName="Forward-toJS",t}},"./src/i18n/i18n.js":function(e,t,a){"use strict";t.__esModule=!0,t.translationMessages=t.formatTranslationMessages=t.appLocales=void 0;var n=a("./node_modules/react-intl/lib/index.es.js"),o=l(a("./node_modules/constants-browserify/constants.json")),s=l(a("./node_modules/react-intl/locale-data/en.js")),r=l(a("./node_modules/react-intl/locale-data/zh.js")),i=l(a("./src/i18n/locale/zh_CN.json")),d=l(a("./src/i18n/locale/en_US.json"));function l(e){return e&&e.__esModule?e:{default:e}}var u=o.default.DEFAULT_LOCALE;(0,n.addLocaleData)([].concat(r.default,s.default));t.appLocales=["zh-CN","en"];var c=t.formatTranslationMessages=function e(t,a){var n=t!==u?e(u,i.default):{};return Object.keys(a).reduce((function(e,o){var s,r=a[o]||t===u?a[o]:n[o];return Object.assign(e,((s={})[o]=r,s))}),{})};t.translationMessages={en:c("en",d.default),"zh-CN":c("zh-CN",i.default)}},"./src/i18n/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/i18n/i18n.js");Object.defineProperty(t,"translationMessages",{enumerable:!0,get:function(){return n.translationMessages}}),Object.defineProperty(t,"formatTranslationMessages",{enumerable:!0,get:function(){return n.formatTranslationMessages}}),Object.defineProperty(t,"appLocales",{enumerable:!0,get:function(){return n.appLocales}})},"./src/i18n/locale/en_US.json":function(e){e.exports=JSON.parse('{"ai-mdp.containers.home.title":"","ai-mdp.components.Footer.license":"Copyright \xa9 2017 All Rights Reserved."}')},"./src/i18n/locale/zh_CN.json":function(e){e.exports=JSON.parse('{"ai-mdp.title":"\u673a\u5668\u5b66\u4e60\u5e73\u53f0","ai-mdp.desc":"\u4eba\u5de5\u667a\u80fd-\u673a\u5668\u5b66\u4e60\u5e73\u53f0","ai-mdp.components.Footer.license":"Copyright \xa9 2018 All Rights Reserved."}')},"./src/index.js":function(e,t,a){"use strict";var n=d(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/core-js/modules/es6.typed.array-buffer.js"),a("./node_modules/core-js/modules/es6.typed.data-view.js"),a("./node_modules/core-js/modules/es6.typed.int8-array.js"),a("./node_modules/core-js/modules/es6.typed.uint8-array.js"),a("./node_modules/core-js/modules/es6.typed.uint8-clamped-array.js"),a("./node_modules/core-js/modules/es6.typed.int16-array.js"),a("./node_modules/core-js/modules/es6.typed.uint16-array.js"),a("./node_modules/core-js/modules/es6.typed.int32-array.js"),a("./node_modules/core-js/modules/es6.typed.uint32-array.js"),a("./node_modules/core-js/modules/es6.typed.float32-array.js"),a("./node_modules/core-js/modules/es6.typed.float64-array.js"),a("./node_modules/core-js/modules/es6.map.js"),a("./node_modules/core-js/modules/es6.set.js"),a("./node_modules/core-js/modules/es6.weak-map.js"),a("./node_modules/core-js/modules/es6.weak-set.js"),a("./node_modules/core-js/modules/es6.reflect.apply.js"),a("./node_modules/core-js/modules/es6.reflect.construct.js"),a("./node_modules/core-js/modules/es6.reflect.define-property.js"),a("./node_modules/core-js/modules/es6.reflect.delete-property.js"),a("./node_modules/core-js/modules/es6.reflect.get.js"),a("./node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js"),a("./node_modules/core-js/modules/es6.reflect.get-prototype-of.js"),a("./node_modules/core-js/modules/es6.reflect.has.js"),a("./node_modules/core-js/modules/es6.reflect.is-extensible.js"),a("./node_modules/core-js/modules/es6.reflect.own-keys.js"),a("./node_modules/core-js/modules/es6.reflect.prevent-extensions.js"),a("./node_modules/core-js/modules/es6.reflect.set.js"),a("./node_modules/core-js/modules/es6.reflect.set-prototype-of.js"),a("./node_modules/core-js/modules/es6.promise.js"),a("./node_modules/core-js/modules/es6.symbol.js"),a("./node_modules/core-js/modules/es6.object.freeze.js"),a("./node_modules/core-js/modules/es6.object.seal.js"),a("./node_modules/core-js/modules/es6.object.prevent-extensions.js"),a("./node_modules/core-js/modules/es6.object.is-frozen.js"),a("./node_modules/core-js/modules/es6.object.is-sealed.js"),a("./node_modules/core-js/modules/es6.object.is-extensible.js"),a("./node_modules/core-js/modules/es6.object.get-own-property-descriptor.js"),a("./node_modules/core-js/modules/es6.object.get-prototype-of.js"),a("./node_modules/core-js/modules/es6.object.keys.js"),a("./node_modules/core-js/modules/es6.object.get-own-property-names.js"),a("./node_modules/core-js/modules/es6.object.assign.js"),a("./node_modules/core-js/modules/es6.object.is.js"),a("./node_modules/core-js/modules/es6.object.set-prototype-of.js"),a("./node_modules/core-js/modules/es6.function.name.js"),a("./node_modules/core-js/modules/es6.string.raw.js"),a("./node_modules/core-js/modules/es6.string.from-code-point.js"),a("./node_modules/core-js/modules/es6.string.code-point-at.js"),a("./node_modules/core-js/modules/es6.string.repeat.js"),a("./node_modules/core-js/modules/es6.string.starts-with.js"),a("./node_modules/core-js/modules/es6.string.ends-with.js"),a("./node_modules/core-js/modules/es6.string.includes.js"),a("./node_modules/core-js/modules/es6.regexp.flags.js"),a("./node_modules/core-js/modules/es6.regexp.match.js"),a("./node_modules/core-js/modules/es6.regexp.replace.js"),a("./node_modules/core-js/modules/es6.regexp.split.js"),a("./node_modules/core-js/modules/es6.regexp.search.js"),a("./node_modules/core-js/modules/es6.array.from.js"),a("./node_modules/core-js/modules/es6.array.of.js"),a("./node_modules/core-js/modules/es6.array.copy-within.js"),a("./node_modules/core-js/modules/es6.array.find.js"),a("./node_modules/core-js/modules/es6.array.find-index.js"),a("./node_modules/core-js/modules/es6.array.fill.js"),a("./node_modules/core-js/modules/es6.array.iterator.js"),a("./node_modules/core-js/modules/es6.number.is-finite.js"),a("./node_modules/core-js/modules/es6.number.is-integer.js"),a("./node_modules/core-js/modules/es6.number.is-safe-integer.js"),a("./node_modules/core-js/modules/es6.number.is-nan.js"),a("./node_modules/core-js/modules/es6.number.epsilon.js"),a("./node_modules/core-js/modules/es6.number.min-safe-integer.js"),a("./node_modules/core-js/modules/es6.number.max-safe-integer.js"),a("./node_modules/core-js/modules/es6.math.acosh.js"),a("./node_modules/core-js/modules/es6.math.asinh.js"),a("./node_modules/core-js/modules/es6.math.atanh.js"),a("./node_modules/core-js/modules/es6.math.cbrt.js"),a("./node_modules/core-js/modules/es6.math.clz32.js"),a("./node_modules/core-js/modules/es6.math.cosh.js"),a("./node_modules/core-js/modules/es6.math.expm1.js"),a("./node_modules/core-js/modules/es6.math.fround.js"),a("./node_modules/core-js/modules/es6.math.hypot.js"),a("./node_modules/core-js/modules/es6.math.imul.js"),a("./node_modules/core-js/modules/es6.math.log1p.js"),a("./node_modules/core-js/modules/es6.math.log10.js"),a("./node_modules/core-js/modules/es6.math.log2.js"),a("./node_modules/core-js/modules/es6.math.sign.js"),a("./node_modules/core-js/modules/es6.math.sinh.js"),a("./node_modules/core-js/modules/es6.math.tanh.js"),a("./node_modules/core-js/modules/es6.math.trunc.js"),a("./node_modules/core-js/modules/es7.array.includes.js"),a("./node_modules/core-js/modules/es7.object.values.js"),a("./node_modules/core-js/modules/es7.object.entries.js"),a("./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js"),a("./node_modules/core-js/modules/es7.string.pad-start.js"),a("./node_modules/core-js/modules/es7.string.pad-end.js"),a("./node_modules/core-js/modules/web.timers.js"),a("./node_modules/core-js/modules/web.immediate.js"),a("./node_modules/core-js/modules/web.dom.iterable.js"),a("./node_modules/regenerator-runtime/runtime.js");d(a("./node_modules/react/index.js"));var o=d(a("./node_modules/react-dom/index.js")),s=a("./src/i18n/index.js"),r=d(a("./src/containers/Root.jsx")),i=a("./src/styles/index.js");function d(e){return e&&e.__esModule?e:{default:e}}a("./src/styles/animate.css"),a("./src/styles/audioPlayer/styles.css"),a("./src/styles/labelStudio/css/main.css"),a("./src/styles/labelStudio/css/styled.css"),a("./node_modules/offline-plugin/runtime.js").install(),(0,i.loadSvgIcons)();var l=document.getElementById("ai-mdp-app"),u=function(e){o.default.render((0,n.default)(e,{messages:s.translationMessages}),l)};window.Intl?u(r.default):new Promise((function(e){e(Promise.all([a.e(0),a.e(7)]).then(a.t.bind(null,"./node_modules/intl/index.js",7)))})).then((function(){return Promise.all([a.e(0).then(a.t.bind(null,"./node_modules/intl/locale-data/jsonp/en.js",7)),a.e(0).then(a.t.bind(null,"./node_modules/intl/locale-data/jsonp/zh.js",7))])})).then((function(){return u(r.default)})).catch((function(e){throw e})),a("./node_modules/offline-plugin/runtime.js").install()},"./src/module/dataLabel/tagGroupsManage/component/EditTagGroups.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.EditTagGroupsDom=void 0;var n=g(a("./node_modules/antd/es/col/index.js")),o=g(a("./node_modules/antd/es/row/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=g(a("./node_modules/babel-runtime/helpers/inherits.js")),l=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=g(a("./node_modules/react/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(g(a("./node_modules/prop-types/index.js")),g(a("./src/components/common/CheckName.jsx"))),h=a("./src/redux/selectors/checkName.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=p.Form.Item,y=l.default.Option,b=(t.EditTagGroupsDom=f.default.div.withConfig({displayName:"EditTagGroups__EditTagGroupsDom",componentId:"ez9bgh-0"})([""]),t.ButtonDom=f.default.div.withConfig({displayName:"EditTagGroups__ButtonDom",componentId:"ez9bgh-1"})(["margin-top:10px;height:28px;text-align:right;margin-right:2%;"]),(0,s.default)(y,{value:""},void 0,"\u8bf7\u9009\u62e9\u6807\u6ce8\u7c7b\u578b")),x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.setDataBlur=function(e,t){n.tagGroupsInfo[t]=_.trim(e)},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:n.tagGroupsInfo}},n.updateName=function(e){n.tagGroupsInfo.tagGroupName=e?e.trim():e,n.props.form.setFieldsValue({tagGroupName:e})};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("editTagGroups",n.validateFun),n.checkNameRef=u.default.createRef(),n.tagGroupsInfo=a.tagGroupsInfo?a.tagGroupsInfo:{tagGroupName:"",markType:""},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.form,r=t.dicMarkTypeData,i=a.getFieldDecorator;return(0,s.default)(p.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)(v,{label:"\u6807\u7b7e\u7ec4\u540d\u79f0"},void 0,i("tagGroupName",{rules:[{required:!0,message:"\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e100\uff01",min:0,max:100},{validator:this.handleCheckNameValidate}],initialValue:this.tagGroupsInfo.tagGroupName})(u.default.createElement(m.default,{ref:this.checkNameRef,source:"tagGroups",style:{width:"150px"},placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:this.tagGroupsInfo.tagGroupsId||"",updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataLabel\\tagGroupsManage\\component\\EditTagGroups.jsx",lineNumber:77}})))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)(v,{label:"\u6807\u6ce8\u7c7b\u578b"},void 0,i("markType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6807\u6ce8\u7c7b\u578b"}],initialValue:this.tagGroupsInfo.markType})((0,s.default)(l.default,{style:{width:150},onChange:function(t){return e.setDataBlur(t,"markType")},getPopupContainer:function(e){return e.parentNode}},void 0,b,r.map((function(e,t){return(0,s.default)(y,{value:e.value},t,e.txt)}))))))))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(e){return{checkNameVerifyInfo:(0,h.selectVerifyInfo)(e)}}))(p.Form.create()(x))},"./src/module/dataLabel/tagGroupsManage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h={width:130,marginRight:16},g=(0,n.default)(f,{value:"create_time"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),v=(0,n.default)(f,{value:"new_time"},void 0,"\u6309\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("tagGroupName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:h,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField},void 0,g,v)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",style:{width:200},onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)()(y)},"./src/module/dataLabel/tagGroupsManage/component/TagGroupsList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/table/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/components/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.div.withConfig({displayName:"TagGroupsList__TagGroupsPage",componentId:"sc-1f2ic6d-0"})(["width:100%;display:flow-root;"]),m=l.default.div.withConfig({displayName:"TagGroupsList__TableDom",componentId:"sc-1f2ic6d-1"})(["display:block;min-height:200px;flex-direction:row;flex-wrap:nowrap;"]),h=(0,o.default)(c.LoadingIndicator,{}),g=function(e){function t(a){return(0,s.default)(this,t),(0,r.default)(this,e.call(this,a))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.tagGroupsList,a=e.tagGroupsListLoading,s=e.columns,r=t.data,i=t.pagination;return(0,o.default)(f,{},void 0,(0,o.default)(m,{},void 0,a&&h,!a&&(0,o.default)(n.default,{dataSource:r,rowKey:"tagGroupId",bordered:!0,pagination:!1,columns:s})),(0,o.default)(c.TabPagination,{currentPage:i.offset,pageSize:10,total:i.total,onChange:this.props.onChangePage}))},t}(d.default.Component);t.default=(0,u.connect)()(g)},"./src/module/dataLabel/tagGroupsManage/component/UploadConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/upload/index.js")),o=C(a("./node_modules/babel-runtime/helpers/extends.js")),s=C(a("./node_modules/antd/es/button/index.js")),r=C(a("./node_modules/antd/es/col/index.js")),i=C(a("./node_modules/antd/es/row/index.js")),d=C(a("./node_modules/babel-runtime/helpers/jsx.js")),l=C(a("./node_modules/antd/es/message/index.js")),u=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var f=C(a("./node_modules/react/index.js")),m=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(C(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),g=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var y=a("./src/components/index.js"),b=a("./src/utils/publicPath.js"),x=a("./src/utils/authPermit.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=v.Form.Item,S=m.default.div.withConfig({displayName:"UploadConfig__UploadWrapper",componentId:"sc-11ubr1q-0"})(["width:100%;position:relative;"]),I=(0,d.default)(g.UploadOutlined,{}),T=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),""===n.data.fileJson.fileId&&(e=!1,l.default.info("\u8bf7\u4e0a\u4f20\u6587\u4ef6\uff01")),{validate:e,moduleData:n.data}},n.keyTabPathUpload=function(e){var t=!0,a=e.name.substring(e.name.lastIndexOf(".")+1,e.name.length);return"txt"==a||"csv"==a?t=!0:(t=!1,(0,y.NotificationWithIcon)("error","\u53ea\u652f\u6301txt\u3001csv\u683c\u5f0f\u6587\u4ef6\uff01")),t},n.state={uploadfileProps:n.props.tagGroupsInfo&&n.props.tagGroupsInfo.fileJson?[{uid:"-1",name:n.props.tagGroupsInfo.fileJson.fileName,type:"text/plain"}]:[]},n.data={fileJson:n.props.tagGroupsInfo?n.props.tagGroupsInfo.fileJson:{fileId:"",fileName:""}};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("fileJson",n.validateFun),n}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props.form.getFieldDecorator,t=this,a=(0,x.getToken)(),l={name:"file",action:(0,b.urlFormat)("/api/commons/actions/uploadFiles?filesType='tagGroup'"),data:{filesType:"dataBase"},headers:{Authorization:a},onChange:function(e){var a=e.fileList;a.length>1&&(a=a.slice(-1));var n=t.keyTabPathUpload(e.file);t.setState({uploadfileProps:n?a:[]}),n&&"uploading"===e.file.status&&0===t.state.uploadfileProps.length&&(0,y.NotificationWithIcon)("info",e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status?e.file.response.data?(t.data.fileJson.fileId=e.file.response.data,t.data.fileJson.fileName=e.file.name,(0,y.NotificationWithIcon)("success",e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01")):(0,y.NotificationWithIcon)("error",e.file.response.message+" \u4e0a\u4f20\u51fa\u9519\uff01"):"error"===e.file.status?(0,y.NotificationWithIcon)("error",e.file.name+" \u4e0a\u4f20\u51fa\u9519\uff01"):"removed"===e.file.status&&(t.data.fileJson.fileId="",t.data.fileJson.fileName="",t.props.form.validateFields(["fileName"],{force:!0}),(0,y.NotificationWithIcon)("info",e.file.name+" \u5220\u9664\u6210\u529f\uff01"))}};return(0,d.default)(S,{},void 0,(0,d.default)(v.Form,{layout:"inline"},void 0,(0,d.default)(i.default,{},void 0,(0,d.default)(r.default,{span:12},void 0,(0,d.default)(j,{label:"\u4f20\u6807\u7b7e\u6587\u4ef6"},void 0,e("fileName",{rules:[{required:!0,message:"\u8bf7\u4e0a\u4f20txt\u6216csv\u683c\u5f0f\u6587\u4ef6\uff01"}],initialValue:this.data.fileJson.fileName})(f.default.createElement(n.default,(0,o.default)({fileList:this.state.uploadfileProps},l,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataLabel\\tagGroupsManage\\component\\UploadConfig.jsx",lineNumber:111}}),(0,d.default)(s.default,{style:{width:150}},void 0,I,"\u4e0a\u4f20\u6807\u7b7e"))))))))},t}(f.default.Component);t.default=(0,h.connect)((function(){return{}}))(v.Form.create()(T))},"./src/module/dataLabel/tagGroupsManage/component/ViewTagGroups.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/col/index.js")),o=p(a("./node_modules/antd/es/row/index.js")),s=p(a("./node_modules/babel-runtime/helpers/jsx.js")),r=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var l=p(a("./node_modules/react/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));p(a("./node_modules/prop-types/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=c.default.div.withConfig({displayName:"ViewTagGroups__ViewTagGroupsDom",componentId:"ey65oq-0"})(["width:100%;.ant-row{padding:0 0 20px 10px;}"]),m=function(e){function t(a){return(0,r.default)(this,t),(0,i.default)(this,e.call(this,a))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props.tagGroupsInfo;return(0,s.default)(f,{},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u6807\u7b7e\u7ec4\u540d\u79f0\uff1a",_.get(e,"tagGroupName","--"))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u6807\u6ce8\u7c7b\u578b\uff1a",_.get(e,"markTypeTxt","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u6807\u7b7e\u4e2a\u6570\uff1a",_.get(e,"tagNum","--"))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u6587\u4ef6\u540d\u79f0\uff1a",_.get(e,"fileJson.fileName","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u521b\u5efa\u4eba\uff1a",_.get(e,"createBy","--"))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u521b\u5efa\u65f6\u95f4\uff1a",_.get(e,"createTime","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u4fee\u6539\u4eba\uff1a",_.get(e,"updateBy","--"))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u4fee\u6539\u65f6\u95f4\uff1a",_.get(e,"updateTime","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u6587\u4ef6\u540d\u79f0\uff1a",_.get(e,"fileJson.fileName","--")))))},t}(l.default.PureComponent);t.default=(0,u.connect)()(m)},"./src/module/dataLabel/tagGroupsManage/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/dataLabel/tagGroupsManage/page/TagGroupsPage.jsx");Object.defineProperty(t,"TagGroupsPage",{enumerable:!0,get:function(){return s(n).default}});var o=a("./src/module/dataLabel/tagGroupsManage/page/TagGroupsInfoPage.jsx");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"TagGroupsInfoPage",{enumerable:!0,get:function(){return s(o).default}})},"./src/module/dataLabel/tagGroupsManage/page/TagGroupsInfoPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.EditTagGroupsDom=void 0;var n=x(a("./node_modules/babel-runtime/helpers/jsx.js")),o=x(a("./node_modules/antd/es/message/index.js")),s=x(a("./node_modules/antd/es/modal/index.js")),r=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var l=x(a("./node_modules/react/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=x(a("./src/containers/toJS.jsx")),p=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(x(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/enumDic.js")),m=a("./src/components/index.js"),h=a("./src/redux/selectors/sysManager/tagGroupsManager.js"),g=a("./src/redux/reducers/sysManager/tagGroupsManager.js"),v=x(a("./src/module/dataLabel/tagGroupsManage/component/EditTagGroups.jsx")),y=x(a("./src/module/dataLabel/tagGroupsManage/component/ViewTagGroups.jsx")),b=x(a("./src/module/dataLabel/tagGroupsManage/component/UploadConfig.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=(0,c.default)(b.default),j=(0,c.default)(v.default),S=(0,c.default)(y.default),I=t.EditTagGroupsDom=p.default.div.withConfig({displayName:"TagGroupsInfoPage__EditTagGroupsDom",componentId:"y1eeid-0"})([""]),T={width:"100%",display:"inline"},w=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.submitModalCancel=function(){var e=n,t=!1,a={};Object.keys(n.validateFuncs).map((function(e){var o=n.validateFuncs[e];if(_.isFunction(o)){var s=o.call();a=_.assign(a,s.moduleData),t=s.validate}})),t&&s.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return e.props.dispatch(g.tagGroupsActions.submitTagGroupsRequest({subType:e.props.viewType,tagGroupsInfo:a})),new Promise((function(t){_.defer((function(){var a=setInterval((function(){if(e.props.tagGroupsSubmit.size>0){clearInterval(a);var n=e.props.tagGroupsSubmit.toJS();n.code>0?(e.props.closeModal("submit"),o.default.success(n.message)):o.default.error(n.message),t()}}),500)}))}))},onCancel:function(){}})},n.validateFuncs={},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.prototype.render=function(){var e=this.props,t=e.viewType,a=e.dicMarkType,o=e.tagGroupsInfo,s=a.list();return(0,n.default)(I,{},void 0,(0,n.default)(m.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:T},void 0,"view"!==t?(0,n.default)(j,{dicMarkTypeData:s,tagGroupsInfo:o,setValidateFunc:this.setValidateFunc}):(0,n.default)(S,{tagGroupsInfo:o})),"view"!==t&&(0,n.default)(m.ModelConfigPanel,{title:"\u5bfc\u5165\u6807\u7b7e",sign:!0,style:T},void 0,(0,n.default)(C,{tagGroupsInfo:o,setValidateFunc:this.setValidateFunc})))},t}(l.default.PureComponent);t.default=(0,u.connect)((function(e){return{dicMarkType:(0,f.dicGroupHelper)(e,"TAG_GROUPS_MARK_TYPE"),tagGroupsSubmit:(0,h.selectTagGroupsSubmit)(e)}}))(w)},"./src/module/dataLabel/tagGroupsManage/page/TagGroupsPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/divider/index.js")),o=S(a("./node_modules/antd/es/button/index.js")),s=S(a("./node_modules/antd/es/tooltip/index.js")),r=S(a("./node_modules/babel-runtime/helpers/jsx.js")),i=S(a("./node_modules/antd/es/message/index.js")),d=S(a("./node_modules/antd/es/modal/index.js")),l=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=S(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=S(a("./node_modules/react/index.js")),f=(S(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=S(a("./src/module/dataLabel/tagGroupsManage/component/SearchBar.jsx")),g=S(a("./src/containers/toJS.jsx")),v=S(a("./node_modules/lodash/lodash.js")),_=S(a("./src/module/dataLabel/tagGroupsManage/component/TagGroupsList.jsx")),y=S(a("./src/module/dataLabel/tagGroupsManage/page/TagGroupsInfoPage.jsx")),b=a("./src/components/index.js"),x=a("./src/redux/selectors/sysManager/tagGroupsManager.js"),C=a("./src/redux/reducers/sysManager/tagGroupsManager.js"),j=a("./src/styles/GlobalStyle.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=(0,g.default)(_.default),T=(0,r.default)(n.default,{type:"vertical"}),w=(0,r.default)(n.default,{type:"vertical"}),E=(0,r.default)(m.PlusOutlined,{}),D=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.deleteTagGroups=function(e){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u6807\u7b7e\u7ec4?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(C.tagGroupsActions.deleteTagGroupsRequest(e.tagGroupId)),new Promise((function(e){v.default.defer((function(){var t=setInterval((function(){if(!n.props.deleteLoading){clearInterval(t);var a=n.props.tagGroupsDelete.toJS();a.code>0?i.default.success(a.message):i.default.error(a.message),n.fetchData(n.searchCond),n.props.dispatch(C.tagGroupsActions.resetDeleteTagGroups()),e()}}),500)}))}))}})},n.openModalVisible=function(e,t){"create"!==t&&n.props.dispatch(C.tagGroupsActions.getTagGroupsInfoRequest(e.tagGroupId)),n.setState({modalVisible:!0,viewType:t})},n.closeModal=function(e){var t=n;"submit"===e?(n.setState({modalVisible:!1}),n.fetchData(n.searchCond)):d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1})}})},n.fetchData=function(e){n.props.dispatch(C.tagGroupsActions.getTagGroupsListRequest(e))},n.changeSearchCond=function(e,t){n.searchCond[e]=v.default.trim(t),delete n.searchCond.offset,delete n.searchCond.limit,n.fetchData(n.searchCond)},n.onChangePage=function(e,t){n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.callRelationModalVisible=function(){var e=n;"view"!==n.state.viewType?d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){e.setState({modalVisible:!1})}}):n.setState({modalVisible:!1})},n.submitModalOk=function(){n.tagGroupsInfoPage.submitModalCancel()},n.state={modalVisible:!1,viewType:""},n.searchCond={offset:1,limit:10,tagGroupName:"",sortField:"create_time"},n.columns=[{title:"\u5e8f\u53f7",dataIndex:"tagGroupId",width:80,render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u6807\u7b7e\u7ec4\u540d\u79f0",dataIndex:"tagGroupName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6807\u6ce8\u7c7b\u578b",dataIndex:"markTypeTxt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6807\u7b7e\u4e2a\u6570",dataIndex:"tagNum",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",widht:170,render:function(e){return(0,r.default)("div",{},void 0,(0,r.default)("a",{href:"javascript:;"},void 0,(0,r.default)("span",{onClick:function(){return n.openModalVisible(e,"view")}},void 0,"\u67e5\u770b")),T,(0,r.default)("a",{href:"javascript:;"},void 0,(0,r.default)("span",{onClick:function(){return n.openModalVisible(e,"edit")}},void 0,"\u4fee\u6539")),w,(0,r.default)("a",{href:"javascript:;"},void 0,(0,r.default)("span",{onClick:function(){n.deleteTagGroups(e)}},void 0,"\u5220\u9664")))}}],n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.componentWillUnmount=function(){this.props.dispatch(C.tagGroupsActions.resetAllDestroy())},t.prototype.render=function(){var e=this,t=this.props,a=t.tagGroupsList,n=t.tagGroupsListLoading,s=t.tagGroupsInfo,i=t.tagGroupsInfoLoading;return(0,r.default)(j.PageWrapper,{},void 0,(0,r.default)(b.ModalView,{modalTitle:"edit"===this.state.viewType?"\u7f16\u8f91\u6807\u7b7e\u7ec4":"\u521b\u5efa\u6807\u7b7e\u7ec4",onCancelType:!1,width:880,okText:"\u4fdd\u5b58",viewType:this.state.viewType,submitModalOk:this.submitModalOk,callVisible:this.callRelationModalVisible,modalVisible:this.state.modalVisible,loading:i,comp:"create"===this.state.viewType?(0,r.default)(y.default,{onRef:function(t){e.tagGroupsInfoPage=t},viewType:this.state.viewType,closeModal:this.closeModal}):(0,r.default)(y.default,{onRef:function(t){e.tagGroupsInfoPage=t},viewType:this.state.viewType,tagGroupsInfo:s,closeModal:this.closeModal})}),(0,r.default)(j.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){e.openModalVisible(null,"create")},type:"primary",icon:E},void 0,"\u521b\u5efa\u6807\u7b7e\u7ec4"),(0,r.default)(h.default,{openModalVisible:function(){e.openModalVisible(null,"create")},sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,r.default)(j.PageBody,{},void 0,(0,r.default)(j.TableWrapper,{},void 0,(0,r.default)(I,{tagGroupsList:a,tagGroupsListLoading:n,columns:this.columns,onChangePage:this.onChangePage}))))},t}(p.default.Component);t.default=(0,f.connect)((function(e){return{tagGroupsList:(0,x.selectTagGroupsList)(e),tagGroupsDelete:(0,x.selectTagGroupsDelete)(e),tagGroupsInfo:(0,x.selectTagGroupsInfo)(e),tagGroupsInfoLoading:(0,x.selectTagGroupsInfoLoading)(e),tagGroupsListLoading:(0,x.selectTagGroupsListLoading)(e),deleteLoading:(0,x.selectDeleteLoading)(e)}}))(D)},"./src/module/dataMgr/dataDispose/DataDisposePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataDisposeDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./src/redux/reducers/dataSource.js")),u=a("./node_modules/react-redux/es/index.js"),c=p(a("./src/module/dataMgr/dataDispose/component/DataDisposeConfigPage.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=t.DataDisposeDom=d.default.div.withConfig({displayName:"DataDisposePage__DataDisposeDom",componentId:"sc-1ixyudj-0"})(["width:100%;float:left;background:#fff;padding:20px;max-height:800px;height:auto;margin-bottom:20px;"]),m=(0,n.default)(f,{},void 0,(0,n.default)(c.default,{})),h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.dispatch(l.dataSourceActions.getDataSourceListRequest({name:"",status:10,excludeDataType:["img","text"]}))},n.state={tabKey:""},n.resetKpiTypeFuncs={},n}return(0,r.default)(t,e),t.prototype.render=function(){return m},t}(i.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(h)},"./src/module/dataMgr/dataDispose/component/CreateDisposeConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.CreateDisposeConfigPage=void 0;var n=T(a("./node_modules/antd/es/modal/index.js")),o=T(a("./node_modules/antd/es/message/index.js")),s=T(a("./node_modules/babel-runtime/helpers/jsx.js")),r=T(a("./node_modules/antd/es/notification/index.js")),i=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=T(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js");var u=T(a("./node_modules/react/index.js")),c=(T(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./src/redux/reducers/indiSet.js"),m=a("./src/module/dataMgr/dataDispose/util/formatModelData.js"),h=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/redux/selectors/dataSource.js"),v=a("./src/components/index.js"),y=a("./src/redux/reducers/dataSource.js"),b=T(a("./src/module/dataMgr/dataDispose/component/TaskInfo.jsx")),x=T(a("./src/module/dataMgr/dataDispose/component/DataSourceInfo.jsx")),C=T(a("./src/module/dataMgr/dataDispose/component/DisposeInfo.jsx")),j=T(a("./src/module/dataMgr/dataDispose/component/CycleInfo.jsx")),S=a("./src/redux/reducers/dataDispose.js"),I=a("./src/redux/selectors/dataDispose.js");function T(e){return e&&e.__esModule?e:{default:e}}var w=t.CreateDisposeConfigPage=h.default.div.withConfig({displayName:"CreateDisposeConfig__CreateDisposeConfigPage",componentId:"sc-1j5g4pf-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;height:300px;overflow-x:auto;.error-border{border:1px solid\xa0red;}"]),E=t.ErrorUl=h.default.ul.withConfig({displayName:"CreateDisposeConfig__ErrorUl",componentId:"sc-1j5g4pf-1"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),D={width:"100%"},M=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.savaOrSubmit=function(){var e={},t={};if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(_.isFunction(o)){var s=o.call();s.validate?e[a]=s.moduleData:t[a]=s.errorMsg}})),"{}"!==JSON.stringify(t)){var a=n.errorDom(t);r.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:a,icon:(0,s.default)(p.FrownOutlined,{style:{color:"#f5222d"}})})}else{for(var o in e)"dataSourceInfo"===o&&"create"!==n.props.viewType&&(e.dataSourceInfo.dsCycle=e.dataSourceInfo.dsCycles,delete e.dataSourceInfo.dsCycles),n.moduleData=_.assign(n.moduleData,e[o]);n.setState({confirmLoading:!1,modalVisible:!0})}},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),"edit"===n.props.viewType&&(n.moduleData.taskId=n.props.dataDispose.get("taskId")),n.moduleData.rewriteArry=(0,m.delFieldFormat)(n.moduleData.rewriteArry),n.props.dispatch(S.dataDisposeActions.submitDataDisposeRequest({subType:n.props.viewType,modelConfig:n.moduleData}))},n.errorDom=function(e){return(0,s.default)(E,{},void 0,Object.keys(e).map((function(t){return(0,s.default)("li",{},t,e[t])})))},n.maxSize=function(e){return _.reduce(e,(function(e,t){return e>t?e:t}))},n.getModelData=function(e,t){if("cycleInfo"===t){if(1===e){for(var a=n.props.cyclesData.toJS(),o=[],s=0;s<a.length;s++)o.push(a[s].dsCycle);var r=n.maxSize(o);n.props.dispatch(y.dataSourceActions.getDataSourceAuditListRequest({dsId:n.props.dsId,dsCycle:r,kpiClass:null,kpiName:null})),n.props.dispatch(f.indiSetActions.loadIndiListRequest({dsId:n.props.dsId,dsCycle:r}))}n.setState({callType:e})}},n.state={modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,moduleDisabled:"view"===a.viewType,callType:"create"===a.viewType?0:parseInt(a.dataDispose.toJS().callType)},n.validateFuncs={},a.dispatch(y.dataSourceActions.getDataCyclesListRequest({dsId:a.dsId,status:10})),n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.getDerivedStateFromProps=function(e){if("{}"!==JSON.stringify(e.submitDataDispose)){if(-1!==_.get(e.submitDataDispose,"code")&&void 0!==e.submitDataDispose)return o.default.success("create"===e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(S.dataDisposeActions.resetSubmitDataDispose()),e.closeKpiConfig("close"),e.fetchData(e.searchCond),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"};n.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"})}return null},t.prototype.render=function(){var e=void 0!==this.props.dataDispose?this.props.dataDispose.toJS():void 0;return(0,s.default)(w,{},void 0,(0,s.default)(n.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",confirmLoading:this.state.confirmLoading,cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,onCancel:this.submitModalCancel},void 0,(0,s.default)("p",{},void 0,this.state.modalTxt)),(0,s.default)(v.ModelConfigPanel,{title:"\u4efb\u52a1\u540d\u79f0",sign:!0,style:D},void 0,(0,s.default)(b.default,{dataDispose:e,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc,viewType:this.props.viewType})),(0,s.default)(v.ModelConfigPanel,{title:"\u914d\u7f6e\u6267\u884c\u5468\u671f",sign:!0,style:D},void 0,(0,s.default)(j.default,{dataDispose:e,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc,viewType:this.props.viewType})),(0,s.default)(v.ModelConfigPanel,{title:"\u6570\u636e\u96c6\u5468\u671f",sign:!0,style:D},void 0,(0,s.default)(x.default,{callType:this.state.callType,dataDispose:e,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc,dsId:this.props.dsId,viewType:this.props.viewType})),(0,s.default)(v.ModelConfigPanel,{title:"\u9884\u5904\u7406\u7b56\u7565",sign:!0,style:D},void 0,(0,s.default)(C.default,{dataDispose:e,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc,viewType:this.props.viewType})))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(e){return{submitDataDispose:(0,I.selectSubmitDataDispose)(e),cyclesData:(0,g.selectCyclesData)(e)}}))(M)},"./src/module/dataMgr/dataDispose/component/CycleInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CycleInfoDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/radio/style/index.js");var d=p(a("./node_modules/react/index.js")),l=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./node_modules/@ant-design/icons/es/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=i.default.Group,m=t.CycleInfoDom=l.default.div.withConfig({displayName:"CycleInfo__CycleInfoDom",componentId:"sc-6wxtb3-0"})([".icon{font-size:14px;color:#a2b0c4;cursor:pointer;margin-left:1%;}label{margin-right:90px;}"]),h=(0,n.default)(i.default,{value:0},void 0,"\u53ea\u6267\u884c\u4e00\u6b21\uff0c\u4e0b\u6b21\u624b\u52a8\u6267\u884c"),g=(0,n.default)(i.default,{value:1},void 0,"\u6570\u636e\u96c6\u66f4\u65b0\u540e\uff0c\u81ea\u52a8\u5bf9\u6700\u65b0\u5468\u671f\u6570\u636e\u6267\u884c"," ",(0,n.default)(c.QuestionCircleOutlined,{className:"icon",title:"\u9009\u62e9\u81ea\u52a8\u5bf9\u6700\u65b0\u5468\u671f\u6570\u636e\u6267\u884c\u540e\uff0c\u65e0\u9700\u9009\u62e9\u6570\u636e\u5468\u671f\uff0c\u9ed8\u8ba4\u4f7f\u7528\u6700\u65b0\u5468\u671f\u6570\u636e"})),v=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.componentDidMount=function(){"create"!==n.props.viewType&&(n.setState({callType:parseInt(n.props.dataDispose.callType)}),n.modelData.callType=parseInt(n.props.dataDispose.callType))},n.validateFun=function(){return n.modelData.callType=n.modelData.callType+"",{validate:!0,moduleData:n.modelData}},n.onChangeRadio=function(e){n.setState({callType:e.target.value}),n.modelData.callType=e.target.value,n.props.onChange(e.target.value,"cycleInfo")},n.state={callType:0};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("cycleInfo",n.validateFun),n.modelData={callType:0},n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(m,{},void 0,(0,n.default)(f,{disabled:"view"===this.props.viewType,onChange:this.onChangeRadio,value:this.state.callType},void 0,h,g))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(v)},"./src/module/dataMgr/dataDispose/component/DataDisposeConfigPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.IndiConfigTable=t.DataDisposeConfigDom=void 0;var n=j(a("./node_modules/antd/es/table/index.js")),o=j(a("./node_modules/antd/es/tooltip/index.js")),s=j(a("./node_modules/babel-runtime/helpers/jsx.js")),r=j(a("./node_modules/antd/es/message/index.js")),i=j(a("./node_modules/antd/es/modal/index.js")),d=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=j(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=j(a("./node_modules/react/index.js")),p=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(j(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/redux/selectors/dataSource.js"),h=j(a("./src/module/dataMgr/dataDispose/component/IndiTree.jsx")),g=j(a("./src/module/dataMgr/dataDispose/component/SearchBar.jsx")),v=a("./src/components/index.js"),y=j(a("./src/module/dataMgr/dataDispose/component/CreateDisposeConfig.jsx")),b=a("./src/redux/reducers/dataDispose.js"),x=a("./src/redux/selectors/dataDispose.js"),C=j(a("./src/module/dataMgr/dataDispose/component/TableInfo.jsx"));function j(e){return e&&e.__esModule?e:{default:e}}var S=t.DataDisposeConfigDom=p.default.div.withConfig({displayName:"DataDisposeConfigPage__DataDisposeConfigDom",componentId:"sc-1947hl8-0"})(["width:100%;float:left;height:100%;display:flex;overflow:auto;"]),I=t.IndiConfigTable=p.default.div.withConfig({displayName:"DataDisposeConfigPage__IndiConfigTable",componentId:"sc-1947hl8-1"})(["max-height:500px;height:300px;overflow:auto;width:100%;padding:24px;float:left;background:#ffffff;"]),T=(0,s.default)("div",{}),w=(0,s.default)(v.NoData,{}),E=(0,s.default)(v.LoadingIndicator,{}),D=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.openKpiConfig=function(){n.setState({modalVisible:!0,viewType:"create"})},n.callVisible=function(e){if(void 0!==e||"view"===n.state.viewType)n.setState({modalVisible:!1});else{var t=n;i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1})}})}},n.fetchData=function(e){n.props.dispatch(b.dataDisposeActions.getDataDisposeListRequest(e))},n.changeSearchCond=function(e,t){if("dsId"===e&&""!==n.searchCond.dsId&&n.searchCond.dsId!==t)return n.searchCond={dsId:t,qt:"",sort:"update_time"},n.setState({empty:!0}),void n.fetchData(n.searchCond);"dsName"===e?n.setState({dsName:t}):(n.setState({empty:!1}),n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond))},n.updateDispose=function(e){n.props.dispatch(b.dataDisposeActions.resetGetDataDispose()),n.props.dispatch(b.dataDisposeActions.getDataDisposeRequest({taskId:e.taskId})),n.setState({modalVisible:!0,viewType:"edit"})},n.viewDispose=function(e){n.props.dispatch(b.dataDisposeActions.resetGetDataDispose()),n.props.dispatch(b.dataDisposeActions.getDataDisposeRequest({taskId:e.taskId})),n.setState({modalVisible:!0,viewType:"view"})},n.cancelDispose=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u505c\u6b62[ "+e.taskName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(b.dataDisposeActions.cancelExecuteRequest({taskId:e.taskId})),new Promise((function(e){_.defer((function(){var t=setInterval((function(){if(n.props.cancelExecute.size>0){clearInterval(t);var a=n.props.cancelExecute.toJS();a.code>0?r.default.success(a.message):r.default.error(a.message),n.fetchData(n.searchCond),n.props.dispatch(b.dataDisposeActions.resetCancelExecute()),e()}}),500)}))}))}})},n.exeDispose=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u6267\u884c[ "+e.taskName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.props.dispatch(b.dataDisposeActions.executeDataDisposeRequest({taskId:e.taskId}))}})},n.delDispose=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664[ "+e.taskName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.props.dispatch(b.dataDisposeActions.deleteDataDisposeRequest({taskId:e.taskId}))}})},n.showSource=function(){n.setState({queryModalVisible:!0})},n.queryCallVisible=function(){n.setState({queryModalVisible:!1})},n.submitModalOk=function(){n.createDisposeConfig.savaOrSubmit()},n.state={kpiTreeName:"",modalVisible:!1,_this:n,viewType:"",queryModalVisible:!1,dsName:"",empty:!1},n.searchCond={dsId:"",qt:"",sort:"update_time"},n.columns=[{title:"\u6307\u6807\u5206\u7c7b",dataIndex:"fieldClassCnName",render:function(e){return(0,s.default)(v.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6307\u6807\u540d\u79f0",dataIndex:"fieldCnName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5355\u4f4d",dataIndex:"fieldUnit",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6570\u636e\u7279\u5f81",dataIndex:"fieldDataFeature",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:"0"===e?"\u540d\u79f0":"\u5206\u7c7b"},void 0,"0"===e?"\u540d\u79f0":"\u5206\u7c7b")}},{title:"\u503c\u57df/\u6837\u4f8b",dataIndex:"fieldSimple",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5e73\u5747\u503c",dataIndex:"meanValue",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u79bb\u7fa4\u503c",dataIndex:"outlierValue",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u79bb\u7fa4\u503c\u4e2a\u6570",dataIndex:"outlierCount",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7f3a\u5931\u503c\uff08\u4e2a\u6570\uff09",dataIndex:"lostValue",width:"15%",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}}],n}return(0,u.default)(t,e),t.getDerivedStateFromProps=function(e,t){return 1===e.delDataDispose&&(e.dispatch(b.dataDisposeActions.resetDeleteDataDispose()),t._this.fetchData(t._this.searchCond),r.default.success("\u5220\u9664\u6210\u529f!")),0!==e.exeDataDispose&&(r.default.success("\u6267\u884c\u6210\u529f!"),1===e.exeDataDispose?(t._this.fetchData(t._this.searchCond),r.default.success("\u6267\u884c\u6210\u529f!")):-1===e.exeDataDispose&&r.default.success("\u6267\u884c\u5931\u8d25!"),e.dispatch(b.dataDisposeActions.resetExecuteDataDispose())),null},t.prototype.showTitle=function(){var e="view"===this.state.viewType?"\u67e5\u770b\u6570\u636e\u9884\u5904\u7406 - ":"\u7f16\u8f91\u6570\u636e\u9884\u5904\u7406 - ";return e+=this.state.dsName},t.prototype.render=function(){var e=this,t=this.props.dataDisposeList.length>0?this.props.dataDisposeList:[],a=0!==this.props.sourcesAudit.size?this.props.sourcesAudit.toJS():[];t=_.values(_.groupBy(t,"dsCycle"));var o=this.props.loading;return(0,s.default)(S,{},void 0,(0,s.default)(v.ModalView,{closable:!0,onCancelType:!1,viewType:"view",modalTitle:"\u67e5\u770b\u6307\u6807",width:1e3,callVisible:this.queryCallVisible,modalVisible:this.state.queryModalVisible,comp:(0,s.default)(n.default,{rowKey:_.uniqueId(),bordered:!0,pagination:!1,columns:this.columns,dataSource:a})}),(0,s.default)(v.ModalView,{modalTitle:this.showTitle(),width:1200,closable:!0,onCancelType:!1,okText:"\u63d0\u4ea4\u4efb\u52a1",submitModalOk:this.submitModalOk,viewType:this.state.viewType,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:"create"===this.state.viewType?(0,s.default)(y.default,{onRef:function(t){e.createDisposeConfig=t},searchCond:this.searchCond,fetchData:this.fetchData,dsId:this.searchCond.dsId,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):this.props.dataDispose.size>0?(0,s.default)(y.default,{onRef:function(t){e.createDisposeConfig=t},searchCond:this.searchCond,fetchData:this.fetchData,dataDispose:this.props.dataDispose,dsId:this.searchCond.dsId,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):T}),(0,s.default)(h.default,{onChange:this.changeSearchCond}),(0,s.default)(I,{},void 0,(0,s.default)(g.default,{empty:this.state.empty,dsName:this.state.dsName,openModalonClick:this.openKpiConfig,onChange:this.changeSearchCond}),!o&&0===t.length&&w,o&&E,!o&&t.map((function(t,a){return(0,s.default)(C.default,{dsName:e.state.dsName,showSource:e.showSource,updateDispose:e.updateDispose,viewDispose:e.viewDispose,exeDispose:e.exeDispose,cancelDispose:e.cancelDispose,delDispose:e.delDispose,index:a,datas:t},_.uniqueId())}))))},t}(c.default.PureComponent);t.default=(0,f.connect)((function(e){return{dataDisposeList:(0,x.selectDataDisposeList)(e),loading:(0,x.selectDataDisposeListLoading)(e),delDataDispose:(0,x.selectDeldataDispose)(e),exeDataDispose:(0,x.selectExedataDispose)(e),dataDispose:(0,x.selectDataDispose)(e),sourcesAudit:(0,m.selectDatasSourcesAudit)(e),cancelExecute:(0,x.selectCancelExecute)(e)}}))(D)},"./src/module/dataMgr/dataDispose/component/DataSourceInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/table/index.js")),o=y(a("./node_modules/antd/es/tooltip/index.js")),s=y(a("./node_modules/babel-runtime/helpers/jsx.js")),r=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=y(a("./node_modules/babel-runtime/helpers/inherits.js")),l=y(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=y(a("./node_modules/react/index.js")),c=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/lodash/lodash.js"))),p=a("./src/components/index.js"),f=a("./src/redux/selectors/dataSource.js"),m=a("./node_modules/react-redux/es/index.js"),h=a("./src/redux/reducers/indiSet.js"),g=a("./src/redux/reducers/dataSource.js"),v=a("./node_modules/@ant-design/icons/es/index.js"),_=a("./node_modules/@ant-design/compatible/es/index.js");function y(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var b=y(a("./src/components/button/index.js")).default.GhostButton,x=_.Form.Item,C=l.default.Option,j=l.default.OptGroup,S=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.componentDidMount=function(){"create"!==n.props.viewType&&(n.setState({dsCycle:n.props.dataDispose.dsCycle}),n.modelData.dsCycles=n.props.dataDispose.dsCycle,n.props.dispatch(g.dataSourceActions.getDataSourceAuditListRequest({dsId:n.props.dsId,dsCycle:n.props.dataDispose.dsCycle,kpiClass:null,kpiName:null})))},n.showSource=function(){n.setState({modalVisible:!0})},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u6570\u636e\u96c6\u5468\u671f"}},n.handleCycleChange=function(e){if(e.length>0){n.modelData.dsCycles=e,n.setState({dsCycle:e});var t="create"===n.props.viewType?n.maxSize(e):e;n.props.dispatch(g.dataSourceActions.getDataSourceAuditListRequest({dsId:n.modelData.dsId,dsCycle:t,kpiClass:null,kpiName:null})),n.props.dispatch(h.indiSetActions.loadIndiListRequest({dsId:n.modelData.dsId,dsCycle:t}))}else n.modelData.dsCycles=e,n.setState({dsCycle:e})},n.callVisible=function(){n.setState({modalVisible:!1})},n.maxSize=function(e){return c.default.reduce(e,(function(e,t){return e>t?e:t}))},n.state={modalVisible:!1,dsId:a.dsId,dsCycle:[],_this:n};var d=n.props.setValidateFunc;return c.default.isFunction(d)&&d("dataSourceInfo",n.validateFun),n.modelData={dsCycles:[],dsId:a.dsId},n.columns=[{title:"\u6307\u6807\u5206\u7c7b",dataIndex:"fieldClassCnName",render:function(e){return(0,s.default)(p.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6307\u6807\u540d\u79f0",dataIndex:"fieldCnName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5355\u4f4d",dataIndex:"fieldUnit",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6570\u636e\u7279\u5f81",dataIndex:"fieldDataFeature",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:"0"===e?"\u540d\u79f0":"\u5206\u7c7b"},void 0,"0"===e?"\u540d\u79f0":"\u5206\u7c7b")}},{title:"\u503c\u57df/\u6837\u4f8b",dataIndex:"fieldSimple",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5e73\u5747\u503c",dataIndex:"meanValue",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u79bb\u7fa4\u503c",dataIndex:"outlierValue",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u79bb\u7fa4\u503c\u4e2a\u6570",dataIndex:"outlierCount",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7f3a\u5931\u503c\uff08\u4e2a\u6570\uff09",dataIndex:"lostValue",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}}],n}return(0,d.default)(t,e),t.getDerivedStateFromProps=function(e,t){if(1===e.callType){for(var a=e.cyclesData.toJS(),n=[],o=0;o<a.length;o++)n.push(a[o].dsCycle);var s=[t._this.maxSize(n)];return t._this.modelData.dsCycles[0]!==s[0]&&(e.form.setFieldsValue({dsCycle:s}),t._this.modelData.dsCycles=s),{dsCycle:s}}return null},t.prototype.render=function(){var e=this,t=this.props.cyclesData.toJS(),a=0!==this.props.sourcesAudit.size?this.props.sourcesAudit.toJS():[],o=this.props.form.getFieldDecorator;return(0,s.default)(_.Form,{layout:"inline"},void 0,(0,s.default)(p.ModalView,{viewType:"view",modalTitle:"\u6570\u636e\u96c6\u6307\u6807",closable:!1,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,s.default)(n.default,{rowKey:"paramId",bordered:!0,pagination:!1,columns:this.columns,dataSource:a})}),(0,s.default)(x,{},void 0,o("dsCycle",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u5468\u671f"}],initialValue:this.state.dsCycle})((0,s.default)(l.default,{getPopupContainer:function(e){return e.parentNode},mode:"create"!==this.props.viewType?"":"multiple",disabled:!(!this.props.moduleDisabled&&1!==this.props.callType),onChange:this.handleCycleChange,style:{width:"260px"}},void 0,"create"===this.props.viewType?(0,s.default)(j,{label:"\u5168\u90e8\u6570\u636e\u96c6\u5468\u671f"},void 0,t.map((function(e){return(0,s.default)(C,{disabled:9===e.status,value:e.dsCycle,title:e.dsCycle+(9===e.status?"(\u5931\u8d25)":"")},e.id+c.default.uniqueId(),null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")}))):t.map((function(e){return(0,s.default)(C,{value:e.dsCycle},e.id+c.default.uniqueId(),null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")})))),(0,s.default)(v.QuestionCircleOutlined,{style:{fontSize:14,color:"#a2b0c4",cursor:"pointer",marginLeft:"16px"},title:"\u53ea\u663e\u793a\u6570\u636e\u96c6\u4e0b\uff0c\u53ef\u4ee5\u505a\u6570\u636e\u9884\u5904\u7406\u7684\u5468\u671f"})),(0,s.default)(x,{},void 0,(0,s.default)(b,{disabled:""===this.state.dsCycle||0===this.state.dsCycle.length,style:{width:120},action:"VIEW",txt:"\u67e5\u770b\u6570\u636e\u96c6",onClick:function(){return e.showSource()}})))},t}(u.default.PureComponent);t.default=(0,m.connect)((function(e){return{sourcesAudit:(0,f.selectDatasSourcesAudit)(e),cyclesData:(0,f.selectCyclesData)(e)}}))(_.Form.create()(S))},"./src/module/dataMgr/dataDispose/component/DisposeCondSetting.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.IndiItemCondSettingDom=void 0;var n=b(a("./node_modules/antd/es/tooltip/index.js")),o=b(a("./node_modules/antd/es/input/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/babel-runtime/helpers/extends.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js")),u=b(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=b(a("./node_modules/react/index.js")),p=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(b(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/enumDic.js")),m=a("./node_modules/react-redux/es/index.js"),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=b(a("./src/module/indiset/IndiSetSelector.jsx")),y=b(a("./src/module/dataMgr/dataDispose/component/TooltipInfo.jsx"));function b(e){return e&&e.__esModule?e:{default:e}}var x=u.default.Option,C=g.Form.Item,j={marginRight:5},S=t.IndiItemCondSettingDom=p.default.li.withConfig({displayName:"DisposeCondSetting__IndiItemCondSettingDom",componentId:"hcjc8q-0"})([".delButton{color:#47b2fb;cursor:pointer;}.iconClass{color:#a2b0c4;font-weight:700;margin-right:10px;font-size:16px;cursor:pointer;}.iconClass:hover,.iconClass:focus{color:#40a9ff;}"]),I=(0,s.default)(x,{value:""},void 0,"\u8bf7\u9009\u62e9"),T=(0,s.default)(x,{value:"0"},void 0,"\u7f3a\u5931\u503c"),w=(0,s.default)(x,{value:"1"},void 0,"\u79bb\u7fa4\u503c"),E=(0,s.default)(x,{value:""},void 0,"\u8bf7\u9009\u62e9"),D=(0,s.default)(x,{value:"0"},void 0,"\u56de\u586b"),M=(0,s.default)(x,{value:"1"},void 0,"\u5220\u9664"),k=(0,s.default)(x,{value:""},void 0,"\u8bf7\u9009\u62e9"),P=(0,s.default)(x,{value:"0"},void 0,"\u6307\u5b9a\u7684\u503c"),L=(0,s.default)(x,{value:"1"},void 0,"\u4f17\u6570"),N=(0,s.default)(x,{value:"2"},void 0,"\u4e2d\u4f4d\u6570"),A=(0,s.default)(x,{value:"3"},void 0,"\u5747\u503c"),R=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.onOperate=function(){n.props.operateDisposeData("del",n.props.index)},n.setValueBlur=function(e,t){if(n.data[t]=e,"filterType"===t)if("0"===e||"1"===e){for(var a=0!==n.props.sourcesAudit.size?n.props.sourcesAudit.toJS():[],o=n.data.rewriteFieldId.split(","),s=0;s<o.length;s++)for(var r=0;r<a.length;r++)if(o[s]===a[r].fieldId){n.data.filterTypeVal="0"===e?"":a[r].outlierValue;break}}else n.data.filterTypeVal="";"rewriteType"===t&&(n.data.rewriteAlg="",n.data.rewriteValue=""),"rewriteAlg"===t&&(n.data.rewriteValue=""),n.props.operateDisposeData("update",n.props.index,n.data)},n.getContent=function(){for(var e=0!==n.props.sourcesAudit.size?n.props.sourcesAudit.toJS():[],t=n.data.rewriteFieldId.split(","),a=[],o=0;o<t.length;o++)for(var s=0;s<e.length;s++)t[o]===e[s].fieldId&&a.push(e[s]);return[].concat(a)},n.handleSampleBlur=function(e){n.setState({indiIds:_.get(e,"id")}),n.data.rewriteFieldId=_.get(e,"id"),n.data.rewriteFieldName=_.get(e,"val"),n.data.tooltipData=n.getContent(),n.props.operateDisposeData("update",n.props.index,n.data)},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0}:{validate:!1}},n.data=a.data,n.indiIds="";var o=n.props,s=o.setValidateFunc,r=o.index;return _.isFunction(s)&&s("indiItem"+r,n.validateFun),n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.relationSignData.list(),i=(0,r.default)({},this.props.data);return(0,s.default)(g.Form,{style:{height:"45px"},layout:"inline"},void 0,(0,s.default)(S,{},void 0,(0,s.default)(C,{help:null,style:j},void 0,t("rewriteFieldId",{rules:[{required:!0}],initialValue:i.rewriteFieldId})((0,s.default)(v.default,{onChange:this.handleSampleBlur,disabled:this.props.moduleDisabled,selectedId:i.rewriteFieldId}))),(0,s.default)(C,{help:null,style:j},void 0,t("filterType",{rules:[{required:!0}],initialValue:i.filterType})((0,s.default)(u.default,{disabled:this.props.moduleDisabled,getPopupContainer:function(e){return e.parentNode},onChange:function(t){e.setValueBlur(t,"filterType")},style:{marginLeft:"20px",width:"150px"}},void 0,I,T,w,a.map((function(e,t){return(0,s.default)(x,{value:e.value},t,e.txt)}))))),"0"===i.filterType||"1"===i.filterType?(0,s.default)(C,{help:null,style:j},void 0,t("filterTypeVal",{initialValue:i.filterTypeVal})((0,s.default)(o.default,{disabled:!(!this.props.moduleDisabled&&"0"!==i.filterType&&"1"!==i.filterType),style:{width:"110px"},onBlur:function(t){e.setValueBlur(t.target.value,"filterTypeVal")}}))):(0,s.default)(C,{help:null,style:j},void 0,t("filterTypeVal",{rules:[{required:!0}],initialValue:i.filterTypeVal})((0,s.default)(o.default,{disabled:!!this.props.moduleDisabled,style:{width:"110px"},placeholder:"\u8bf7\u586b\u5199\u5173\u7cfb\u503c",onBlur:function(t){e.setValueBlur(t.target.value,"filterTypeVal")}}))),(0,s.default)(C,{help:null},void 0,t("rewriteType",{rules:[{required:!0}],initialValue:i.rewriteType})((0,s.default)(u.default,{disabled:this.props.moduleDisabled,getPopupContainer:function(e){return e.parentNode},onChange:function(t){e.setValueBlur(t,"rewriteType")},style:{marginLeft:"20px",width:"150px"}},void 0,E,D,M))),"1"===i.rewriteType?(0,s.default)(C,{help:null,style:j},void 0,t("rewriteValue",{initialValue:i.rewriteValue})((0,s.default)(o.default,{disabled:!0,style:{marginLeft:"20px",width:"265px"},placeholder:"\u7a7a\u503c\u6240\u5728\u884c",onBlur:function(t){e.setValueBlur(t.target.value,"rewriteValue")}}))):(0,s.default)("div",{style:{display:"inline-block"}},void 0,(0,s.default)(C,{help:null,style:j},void 0,t("rewriteAlg",{rules:[{required:!0}],initialValue:i.rewriteAlg})((0,s.default)(u.default,{disabled:this.props.moduleDisabled,getPopupContainer:function(e){return e.parentNode},onChange:function(t){e.setValueBlur(t,"rewriteAlg")},style:{marginLeft:"20px",width:"150px"}},void 0,k,P,L,N,A))),"0"===i.rewriteAlg?(0,s.default)(C,{help:null,style:j},void 0,t("rewriteValue",{rules:[{required:!0}],initialValue:i.rewriteValue})((0,s.default)(o.default,{disabled:!(!this.props.moduleDisabled&&"0"===i.rewriteAlg),style:{width:"110px"},placeholder:"\u8f93\u5165\u6307\u5b9a\u6570\u503c",onBlur:function(t){e.setValueBlur(t.target.value,"rewriteValue")}}))):(0,s.default)(C,{help:null,style:j},void 0,t("rewriteValue",{initialValue:i.rewriteValue})((0,s.default)(n.default,{placement:"topLeft",title:(0,s.default)(y.default,{arry:i.tooltipData,rewriteAlg:i.rewriteAlg})},_.uniqueId(),(0,s.default)(o.default,{disabled:!(!this.props.moduleDisabled&&"0"===i.rewriteAlg),style:{width:"110px"},placeholder:"\u9884\u5b9a\u4e49\u6570\u503c",onBlur:function(t){e.setValueBlur(t.target.value,"rewriteValue")}}))))),(0,s.default)(C,{style:{marginRight:"5px"}},void 0,0!==this.props.index&&(0,s.default)(h.ArrowUpOutlined,{disabled:!!this.props.moduleDisabled,onClick:function(){e.props.upLocation(e.props.index)},title:"\u5411\u4e0a\u6392\u5e8f",className:"iconClass"}),(0,s.default)("span",{disabled:!!this.props.moduleDisabled,style:{marginLeft:0===this.props.index?"36px":"10px",display:"view"===this.props.viewType||0===this.props.index?"none":""},className:"delButton",onClick:function(){e.onOperate()}},void 0,"\u5220\u9664"))))},t}(c.default.PureComponent);t.default=(0,m.connect)((function(e){return{relationSignData:(0,f.dicGroupHelper)(e,"RELATION_SIGN")}}))(g.Form.create()(R))},"./src/module/dataMgr/dataDispose/component/DisposeInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.HeaderDom=void 0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=g(a("./node_modules/react/index.js")),l=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=g(a("./node_modules/lodash/lodash.js")),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./src/redux/selectors/dataSource.js"),f=a("./src/module/dataMgr/dataDispose/util/formatModelData.js"),m=a("./node_modules/react-redux/es/index.js"),h=g(a("./src/module/dataMgr/dataDispose/component/DisposeCondSetting.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=t.HeaderDom=l.default.li.withConfig({displayName:"DisposeInfo__HeaderDom",componentId:"sc-1iy2zw1-0"})(["span{font-size:12px;color:#a2b0c4;letter-spacing:0;line-height:30px;}"]),_=(0,o.default)(c.PlusOutlined,{}),y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.setDisValidateFunc=function(e,t){n.validateDisFuncs[e]=t},n.validateFun=function(){var e=[];Object.keys(n.validateDisFuncs).map((function(t){var a=n.validateDisFuncs[t];if(u.default.isFunction(a)){var o=a.call();e.push(o)}}));for(var t=0;t<e.length;t++)if(!e[t].validate)return{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u9884\u5904\u7406\u7b56\u7565\u6570\u636e"};return 0===e.length?{validate:!1,errorMsg:"\u8bf7\u6dfb\u52a0\u9884\u5904\u7406\u7b56\u7565\u6570\u636e"}:{validate:!0,moduleData:{rewriteArry:(0,f.fieldTaskArryFormat)(n.state.fieldTaskArry)}}},n.operateDisposeData=function(e,t,a){var o=n.state.fieldTaskArry;if("save"===e){var s={tooltipData:[],rewriteFieldName:"",filterTypeVal:"",rewriteFieldId:"",rewriteType:"",rewriteAlg:"",rewriteValue:"",filterType:"",sort:n.state.fieldTaskArry.length};o.push(s),n.setState({fieldTaskArry:o.concat([])})}else"del"===e?(o.splice(t,1),o=n.sortFieldTaskArry(o),n.setState({fieldTaskArry:o.concat([])})):(o[t]=a,n.setState({fieldTaskArry:o.concat([])}))},n.sortFieldTaskArry=function(e){for(var t=0;t<e.length;t++)e[t].sort=t;return e},n.upLocation=function(e){var t=n.state.fieldTaskArry;t[e]=t.splice(e-1,1,t[e])[0],n.setState({fieldTaskArry:t.concat([])})},n.state={fieldTaskArry:[]};var o=n.props.setValidateFunc;return u.default.isFunction(o)&&o("disposeInfo",n.validateFun),n.validateDisFuncs={},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){if("create"===this.props.viewType){var e=[];e.push({tooltipData:[],rewriteFieldName:"",rewriteFieldId:"",rewriteType:"",rewriteAlg:"",rewriteValue:"",filterType:"",filterTypeVal:"",sort:0}),this.setState({fieldTaskArry:e})}else this.setState({fieldTaskArry:(0,f.updateFieldTaskArryFormat)(this.props.dataDispose.rewriteArry,this.props.sourcesAudit)})},t.prototype.render=function(){var e=this;return(0,o.default)("div",{},void 0,(0,o.default)(v,{},void 0,(0,o.default)("span",{style:{marginLeft:0}},void 0,"\u5b57\u6bb5\u540d\u79f0"),(0,o.default)("span",{style:{marginLeft:"11.5%"}},void 0,"\u8fc7\u6ee4\u6761\u4ef6"),(0,o.default)("span",{style:{marginLeft:"22%"}},void 0,"\u64cd\u4f5c"),(0,o.default)("span",{style:{marginLeft:"14.5%"}},void 0,"\u5185\u5bb9")),this.state.fieldTaskArry.map((function(t,a){return(0,o.default)(h.default,{sourcesAudit:e.props.sourcesAudit,setValidateFunc:e.setDisValidateFunc,upLocation:e.upLocation,viewType:e.props.viewType,operateDisposeData:e.operateDisposeData,moduleDisabled:e.props.moduleDisabled,data:t,index:a},u.default.uniqueId())})),(0,o.default)(n.default,{disabled:"view"===this.props.viewType,ghost:!0,style:{marginBottom:"50px",marginTop:"10px",float:"left",height:"26px"},onClick:function(){e.operateDisposeData("save")},type:"primary",icon:_},void 0,"\u6dfb\u52a0\u7b56\u7565"))},t}(d.default.PureComponent);t.default=(0,m.connect)((function(e){return{sourcesAudit:(0,p.selectDatasSourcesAudit)(e)}}))(y)},"./src/module/dataMgr/dataDispose/component/IndiTree.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.KpiButtonDom=t.IndiTreeDom=void 0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=v(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=v(a("./node_modules/react/index.js")),l=a("./node_modules/polished/dist/polished.es.js"),u=a("./src/components/index.js"),c=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./src/redux/reducers/dataSource.js"),f=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./src/redux/reducers/dataDispose.js"),g=a("./src/redux/selectors/dataSource.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=i.default.Search,y=t.IndiTreeDom=c.default.div.withConfig({displayName:"IndiTree__IndiTreeDom",componentId:"sxjyvc-0"})(["overflow:auto;overflow-x:hidden;height:auto;background:#f5f6f9;margin-right:20px;float:left;ul{width:200px;padding-left:15px;li{width:100%;",";font-size:12px;list-style-type:none;padding-bottom:5px;cursor:pointer;&:hover{color:#47b2fb;}&.active{font-weight:600;color:#47b2fb;font-size:14px;}}}"],(0,l.ellipsis)()),b=(t.KpiButtonDom=c.default.div.withConfig({displayName:"IndiTree__KpiButtonDom",componentId:"sxjyvc-1"})(["text-align:center;height:32px;"]),(0,n.default)(u.LoadingIndicator,{position:"relative"})),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onClickTree=function(e){n.setState({dsId:e.dsId}),n.props.dispatch(h.dataDisposeActions.resetDataDisposeList()),n.props.onChange("dsId",e.dsId),n.props.onChange("dsName",e.name)},n.doSearch=function(e){n.props.dispatch(p.dataSourceActions.getDataSourceListRequest({name:e,status:10,excludeDataType:["img","text"]}))},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={dsId:""},n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.sourceData.size>0&&""===t.dsId?(e.onChange("dsId",e.sourceData.toJS()[0].dsId),e.onChange("dsName",e.sourceData.toJS()[0].name),{dsId:e.sourceData.toJS()[0].dsId}):null},t.prototype.render=function(){var e=this,t=this.props.sourceData.size>0?this.props.sourceData.toJS():[];return(0,n.default)(y,{},void 0,(0,n.default)("div",{style:{margin:"8% 6% 10% 10px"}},void 0,(0,n.default)(_,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",size:"small",onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})),this.props.loading&&b,(0,n.default)("ul",{},void 0,!this.props.loading&&t.map((function(t,a){return(0,n.default)("li",{title:t.name,className:t.dsId===e.state.dsId?"active":"",onClick:function(){return e.onClickTree(t)}},a,t.name,t.dsId===e.state.dsId&&(0,n.default)(m.CaretRightOutlined,{style:{paddingLeft:"8px",color:"#47b2fb"}}))}))))},t}(d.default.PureComponent);t.default=(0,f.connect)((function(e){return{sourceData:(0,g.selectSourceData)(e),loading:(0,g.selectSourceDataLoading)(e)}}))(x)},"./src/module/dataMgr/dataDispose/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js")),d=g(a("./node_modules/antd/es/input/index.js")),l=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=g(a("./node_modules/react/index.js")),c=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=(a("./node_modules/immutable3/dist/immutable.js"),a("./src/redux/selectors/dataSource.js")),h=g(a("./src/components/auth/funAuth.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=l.default.Option,y=d.default.Search,b=p.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-1er7rl6-0"})(["align-items:center;display:inline;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}.search-div{border-bottom:1px solid #dfe0e1;height:51px;width:100%;border-radius:2px 2px 0 0;text-align:right;}"]),x=(0,o.default)(f.PlusOutlined,{}),C=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){"sort"===e&&n.setState({sort:t}),_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.doSearch=function(e){n.setState({queryName:e}),n.props.onChange("qt",e)},n.handleKeyPress=function(e){n.setState({queryName:e.target.value}),13===e.keyCode&&n.doSearch(e.target.value)},n.onChangeName=function(e){n.setState({queryName:e.target.value})},n.state={queryName:"",sort:"update_time"},n.changeSortField=n.changeSelect("sort"),n}return(0,i.default)(t,e),t.getDerivedStateFromProps=function(e){return e.empty?{queryName:"",sort:"update_time"}:null},t.prototype.render=function(){var e=this;return(0,o.default)(b,{className:"search-bar"},void 0,(0,o.default)("div",{className:"search-div"},void 0,(0,o.default)(h.default,{permissions:["DATA_DISPOSE:CREATE"],displayType:"hide"},void 0,(0,o.default)(n.default,{disabled:""===this.props.dsName,style:{float:"left"},onClick:function(){e.props.openModalonClick()},type:"primary",icon:x},void 0,"\u65b0\u5efa\u9884\u5904\u7406\u4efb\u52a1")),(0,o.default)(l.default,{onChange:this.changeSortField,style:{width:"160px"},placeholder:"\u6392\u5e8f\u6761\u4ef6",className:"sort-cond",value:this.state.sort},void 0,(0,o.default)(v,{value:"update_time"},_.uniqueId(),"\u66f4\u65b0\u65f6\u95f4"),(0,o.default)(v,{value:"task_name"},_.uniqueId(),"\u4efb\u52a1\u540d\u79f0")),(0,o.default)(y,{style:{marginTop:"0.5px",width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onChange:this.onChangeName,value:this.state.queryName,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(u.default.Component);t.default=(0,c.connect)((function(e){return{kpiType:(0,m.selectDatasKpiType)(e)}}))(C)},"./src/module/dataMgr/dataDispose/component/TableInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.HeaderDom=t.TableInfoDom=void 0;var n=g(a("./node_modules/antd/es/table/index.js")),o=g(a("./node_modules/antd/es/button/index.js")),s=g(a("./node_modules/antd/es/tooltip/index.js")),r=g(a("./node_modules/babel-runtime/helpers/jsx.js")),i=g(a("./node_modules/antd/es/message/index.js")),d=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=g(a("./node_modules/react/index.js")),p=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),f=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=a("./src/redux/reducers/dataSource.js"),h=g(a("./src/components/auth/funAuth.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=t.TableInfoDom=f.default.div.withConfig({displayName:"TableInfo__TableInfoDom",componentId:"sc-1owngz0-0"})(["margin-bottom:2.2%;padding-top:1px;.ant-table table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;border-radius:0;}.ant-table-thead{th{background:#f5f6f9;}}.ant-table table{border-collapse:none;}.ant-table-tbody > tr > td{padding:10px 10px;}.anticon{cursor:pointer;margin-left:10px;}.editable-cell-icon{float:right;padding-top:3px;}.ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:9px 9px;word-break:break-word;}.ant-table-thead > tr:first-child > th:last-child{border-top-right-radius:4px;}.ant-table-thead > tr:first-child > th:first-child{border-top-left-radius:0px;}.handle-a{padding-top:3px;margin-right:5%;}.handle-button{margin-right:5px;height:20px;float:right;}"]),_=t.HeaderDom=f.default.div.withConfig({displayName:"TableInfo__HeaderDom",componentId:"sc-1owngz0-1"})(["background:#e5e9f2;height:40px;padding-top:10px;padding-left:1.4%;.ant-btn:hover,.ant-btn:focus{color:#40a9ff;background-color:#fff;border-color:#40a9ff;span{color:#1890ff;}}.preview-button{float:right;height:20px;margin-right:15px;background:#475669;span{color:#ffffff;}}.titleVal{font-weight:600;font-size:14px;color:#475669;letter-spacing:0;margin-right:2.1%;}.timeVal{font-weight:600;font-size:12px;color:#475669;letter-spacing:0;margin-right:10px;}"]),y=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.showPreview=function(){i.default.warning("\u6b63\u5728\u5f00\u4e2d\uff0c\u5c3d\u8bf7\u671f\u5f85\uff01")},n.showSources=function(){n.props.dispatch(m.dataSourceActions.getDataSourceAuditListRequest({dsId:n.props.datas[0].dsId,dsCycle:n.props.datas[0].dsCycle,kpiClass:null,kpiName:null})),n.props.showSource()},n.state={modalVisible:!1},n.columns=[{title:"\u5e8f\u53f7",dataIndex:"numIndex",width:"80px",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"taskName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8c03\u5ea6\u7c7b\u578b",dataIndex:"callType",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:0===e?"\u4e00\u6b21\u4efb\u52a1":"\u5468\u671f\u4efb\u52a1"},void 0,0===e?"\u4e00\u6b21\u4efb\u52a1":"\u5468\u671f\u4efb\u52a1")}},{title:"\u8fdb\u5ea6",dataIndex:"taskBar",width:"80px",render:function(e){var t=e;return(0,r.default)("span",{},void 0,100*t,"%")}},{title:"\u72b6\u6001",dataIndex:"statusTxt",width:"80px",render:function(e,t){return"\u5931\u8d25"===e?(0,r.default)("span",{title:t.message,style:{color:"red"}},void 0,e):(0,r.default)("span",{},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8017\u65f6",dataIndex:"stageDuration",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createUser",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",dataIndex:"fieldCaliber",width:"15%",render:function(e,t){return(0,r.default)("span",{},void 0,("7"===t.status||"10"===t.status)&&(0,r.default)("a",{className:"handle-a",href:"javascript:void(0)",onClick:function(){n.props.viewDispose(t)}},void 0,"\u67e5\u770b"),("0"===t.status||"9"===t.status)&&(0,r.default)(h.default,{permissions:["DATA_DISPOSE:UPDATE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,r.default)("a",{className:"handle-a",onClick:function(){n.props.updateDispose(t)},href:"javascript:void(0)"},void 0,"\u4fee\u6539")),("7"===t.status||"0"===t.status)&&(0,r.default)(h.default,{permissions:["DATA_DISPOSE:EXECUTE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,r.default)("a",{onClick:function(){n.props.cancelDispose(t)},className:"handle-a",href:"javascript:void(0)"},void 0,"\u505c\u6b62")),("0"===t.status||"9"===t.status)&&(0,r.default)(h.default,{permissions:["DATA_DISPOSE:DELETE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,r.default)("a",{onClick:function(){n.props.delDispose(t)},className:"handle-a",href:"javascript:void(0)"},void 0,"\u5220\u9664")))}}],n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this;return(0,r.default)(v,{},void 0,(0,r.default)(_,{},void 0,(0,r.default)("span",{className:"titleVal"},void 0,this.props.dsName),(0,r.default)("span",{className:"timeVal"},void 0,"\u5468\u671f\u65f6\u95f4\uff1a",this.props.datas[0].dsCycle),(0,r.default)("span",{style:{color:"#475669"}},void 0,0===this.props.index?"\uff08\u6700\u65b0\uff09":""),(0,r.default)(o.default,{onClick:function(){e.showSources()},className:"handle-button"},void 0,"\u67e5\u770b\u7ed3\u679c")),(0,r.default)(n.default,{dataSource:this.props.datas,rowKey:"taskId",bordered:!0,pagination:!1,columns:this.columns}))},t}(c.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(y)},"./src/module/dataMgr/dataDispose/component/TaskInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var l=a("./node_modules/react-redux/es/index.js"),u=(f(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/checkName.js")),c=a("./src/redux/selectors/dataDispose.js"),p=f(a("./src/components/common/CheckName.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=d.Form.Item,h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.componentDidMount=function(){"create"!==n.props.viewType&&(n.setState({taskName:n.props.dataDispose.taskName}),n.modelData.taskName=n.props.dataDispose.taskName)},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u4efb\u52a1\u540d\u79f0"}},n.getKpiNameBlur=function(e){var t=e.replace(/(^\s*)|(\s*$)/g,"");n.setState({taskName:e}),n.modelData.taskName=t},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.state={taskName:"",modelNameVerify:null},n.checkNameRef=i.default.createRef();var r=n.props.setValidateFunc;return _.isFunction(r)&&r("taskInfo",n.validateFun),n.modelData={taskName:""},n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(e){return{modelNameVerify:!1===e.checkNameCode||(3===e.checkNameCode?3:0===e.checkNameCode&&null)}},t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,n.default)(d.Form,{layout:"inline"},void 0,(0,n.default)(m,{},void 0,e("kpisetName ",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0"},{validator:this.handleCheckNameValidate}],initialValue:this.state.taskName})(i.default.createElement(p.default,{ref:this.checkNameRef,source:"dataDispose",style:{width:"400px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0",modelId:void 0===this.props.dataDispose?"":this.props.dataDispose.taskId,updateNameCallback:this.getKpiNameBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\dataDispose\\component\\TaskInfo.jsx",lineNumber:103}}))))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{checkNameCode:(0,c.selectCheckNameCode)(e),checkNameVerifyInfo:(0,u.selectVerifyInfo)(e)}}))(d.Form.create()(h))},"./src/module/dataMgr/dataDispose/component/TooltipInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TooltipInfoDom=void 0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(u(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.TooltipInfoDom=d.default.div.withConfig({displayName:"TooltipInfo__TooltipInfoDom",componentId:"sc-10c6rqw-0"})(["span{display:block;margin:10px 10px 10px 5px;font-size:12px;color:#ffffff;}"]),p=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.arry,a=e.rewriteAlg;return(0,n.default)(c,{},void 0,t.map((function(e,t){return(0,n.default)("span",{},_.uniqueId()+t,e.fieldCnName," :"," ","1"===a?e.modeValue:"2"===a?e.medianValue:e.meanValue)})))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(p)},"./src/module/dataMgr/dataDispose/util/formatModelData.js":function(e,t,a){"use strict";t.__esModule=!0,t.delFieldFormat=function(e){return function(e){for(var t=0;t<e.length;t++)delete e[t].tooltipData,delete e[t].rewriteFieldName,delete e[t].filterTypeVal,delete e[t].filterType,delete e[t].sort;return e}(e)},t.fieldTaskArryFormat=function(e){for(var t=[],a=0;a<e.length;a++){var n=e[a].rewriteFieldId.split(",");if(n.length>1)for(var o=0;o<n.length;o++)e[a].rewriteFieldId=n[o],e[a].filterJson=JSON.stringify(r(e[a],o)),e[a].fieldIndex=a+"",e[a].fieldGroup=a,t.push(e[a]);else e[a].filterJson=JSON.stringify(r(e[a])),e[a].fieldIndex=a+"",e[a].fieldGroup="",t.push(e[a])}return t},t.updateFieldTaskArryFormat=function(e,t){var a=[],n=s.default.filter(e,(function(e){if(""!==e.fieldGroup&&null!==e.fieldGroup)return e})),o=s.default.filter(e,(function(e){if(""===e.fieldGroup||null===e.fieldGroup)return e}));n.length>0&&function(e,t,a){var n=s.default.groupBy(a,"fieldGroup");for(var o in n){for(var r=void 0,d="",l="",u="",c=0;c<n[o].length;c++){var p=JSON.parse(n[o][c].filterJson);d+=p.name+",",l+=n[o][c].rewriteFieldId,u=p.symbol,n[o].length-1===c&&((r=n[o][c]).filterType=u,r.tooltipData=i(e,l),r.rewriteFieldName=d.substring(0,d.length-1),r.rewriteFieldId=l.substring(0,l.length-1),r.sort=parseInt(r.fieldIndex))}t.splice(void 0,0,r)}}(t,a,n);o.length>0&&function(e,t,a){for(var n=0;n<a.length;n++){var o=JSON.parse(a[n].filterJson);a[n].tooltipData=i(e,a[n].rewriteFieldId),a[n].rewriteFieldName=o.name,a[n].sort=parseInt(a[n].fieldIndex),a[n].filterType=o.symbol,a[n].filterTypeVal="0"===o.symbol||"1"===o.symbol?"":o.value,t.splice(a.sort,0,a[n])}}(t,a,o);return a};var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n};function r(e,t){return"1"===e.filterType?void 0!==t?{name:e.rewriteFieldName,when:null!==e.filterTypeVal&&void 0!==e.filterTypeVal&&""!==e.filterTypeVal&&e.filterTypeVal.split("|")[t].split(",").length>1?e.rewriteFieldName+" < "+e.filterTypeVal.split("|")[t].split(",")[0]+" or "+e.rewriteFieldName+" > "+e.filterTypeVal.split("|")[t].split(",")[1]:"",symbol:e.filterType,value:null!==e.filterTypeVal&&void 0!==e.filterTypeVal&&""!==e.filterTypeVal?e.filterTypeVal.split("|")[t]:""}:{name:e.rewriteFieldName,when:null!==e.filterTypeVal&&void 0!==e.filterTypeVal&&""!==e.filterTypeVal&&e.filterTypeVal.split(",").length>1?e.rewriteFieldName+" < "+e.filterTypeVal.split(",")[0]+" or "+e.rewriteFieldName+" > "+e.filterTypeVal.split(",")[1]:"",symbol:e.filterType,value:e.filterTypeVal}:"0"===e.filterType?{name:e.rewriteFieldName,when:"",symbol:e.filterType,value:"is null"}:{name:e.rewriteFieldName,when:e.rewriteFieldName+" "+e.filterType+" "+e.filterTypeVal,symbol:e.filterType,value:e.filterTypeVal}}function i(e,t){for(var a=0!==e.size?e.toJS():[],n=t.split(","),o=[],s=0;s<n.length;s++)for(var r=0;r<a.length;r++)n[s]===a[r].fieldId&&o.push(a[r]);return[].concat(o)}t.default=[]},"./src/module/dataMgr/dataExplore/DataExplorePage2.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataExploreDom=void 0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=v(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=v(a("./node_modules/react/index.js")),l=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/utils/history.js"),p=a("./src/redux/reducers/dataSource.js"),f=a("./node_modules/@ant-design/compatible/es/index.js"),m=a("./src/redux/selectors/indiSet.js"),h=a("./src/redux/reducers/indiSet.js"),g=v(a("./src/module/dataMgr/dataExplore/component/KpiConfigPage.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var y=i.default.TabPane,b=t.DataExploreDom=l.default.div.withConfig({displayName:"DataExplorePage2__DataExploreDom",componentId:"wurrvg-0"})(["width:100%;float:left;height:100%;margin:0px;padding:0px;background:#fff;.ant-tabs-bar{display:none;}.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-nav-wrap{float:left;}"]),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onChangeCallback=function(e){n.setState({tabKey:e}),n.props.dispatch(h.indiSetActions.getKpiDataListRequest({typeId:e,kpisetName:"",dsId:"",excludeDataType:"2"===e?["img","text"]:[]})),e!==n.state.tabKey&&(n.setState({urlSearchCond:void 0}),n.props.dispatch(h.indiSetActions.resetReviewResult()),Object.keys(n.resetKpiTypeFuncs).map((function(e){n.resetKpiTypeFuncs[e].call()})))},n.resetKpiType=function(e,t){n.resetKpiTypeFuncs[e]=t},n.reseturlSearchCond=function(){n.setState({urlSearchCond:void 0})},n.state={tabKey:"2",urlSearchCond:void 0,_this:n},n.resetKpiTypeFuncs={},a.dispatch(p.dataSourceActions.resetDataCyclesList()),a.dispatch(p.dataSourceActions.clearDataKpiTypeList()),a.dispatch(h.indiSetActions.resetReviewResult()),n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){var e=(0,c.parseParms)(this.props.location),t=_.get(e,"dsId"),a=_.get(e,"dsCycle"),n=_.get(e,"kpiTypeId");void 0!==t&&void 0!==a&&void 0!==n?(this.urlSearchCond={dsId:t,dsCycle:a,kpiTypeId:n},this.setState({tabKey:n,urlSearchCond:this.urlSearchCond})):this.setState({urlSearchCond:void 0}),this.props.dispatch(h.indiSetActions.getKpiTypesListRequest())},t.prototype.render=function(){var e=this,t=null!==this.props.kpiTypes?this.props.kpiTypes.toJS():[],a={1:"area-chart",2:"appstore",3:"codepen-circle",4:"star"};return(0,n.default)(b,{},void 0,(0,n.default)(i.default,{type:"card",activeKey:this.state.tabKey,onChange:this.onChangeCallback},void 0,t.map((function(t){if("9999"!==t.id&&"1"!==t.id)return(0,n.default)(y,{tab:(0,n.default)("span",{},void 0,(0,n.default)(f.Icon,{type:a[t.id]}),t.name)},t.id,(0,n.default)(g.default,{reseturlSearchCond:e.reseturlSearchCond,urlSearchCond:e.state.urlSearchCond,resetFunc:e.resetKpiType,selectedTypeId:e.state.tabKey,kpiTypeId:t.id},e.state.tabKey))}))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{kpiTypes:(0,m.selectKpiTypesList)(e)}}))(x)},"./src/module/dataMgr/dataExplore/DataExplorePage3.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataExploreDom=void 0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=v(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=v(a("./node_modules/react/index.js")),l=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/utils/history.js"),p=a("./src/redux/reducers/dataSource.js"),f=a("./node_modules/@ant-design/compatible/es/index.js"),m=a("./src/redux/selectors/indiSet.js"),h=a("./src/redux/reducers/indiSet.js"),g=v(a("./src/module/dataMgr/dataExplore/component/KpiConfigPage.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var y=i.default.TabPane,b=t.DataExploreDom=l.default.div.withConfig({displayName:"DataExplorePage3__DataExploreDom",componentId:"sc-1jtp052-0"})(["width:100%;height:100%;margin:0px;padding:0px;float:left;background:#fff;.ant-tabs-bar{display:none;}.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-nav-wrap{float:left;}"]),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onChangeCallback=function(e){n.setState({tabKey:e}),n.props.dispatch(h.indiSetActions.getKpiDataListRequest({typeId:e,kpisetName:"",dsId:"",excludeDataType:"2"===e?["img","text"]:[]})),e!==n.state.tabKey&&(n.setState({urlSearchCond:void 0}),n.props.dispatch(h.indiSetActions.resetReviewResult()),Object.keys(n.resetKpiTypeFuncs).map((function(e){n.resetKpiTypeFuncs[e].call()})))},n.resetKpiType=function(e,t){n.resetKpiTypeFuncs[e]=t},n.reseturlSearchCond=function(){n.setState({urlSearchCond:void 0})},n.state={tabKey:"3",urlSearchCond:void 0,_this:n},n.resetKpiTypeFuncs={},a.dispatch(p.dataSourceActions.resetDataCyclesList()),a.dispatch(p.dataSourceActions.clearDataKpiTypeList()),a.dispatch(h.indiSetActions.resetReviewResult()),n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){var e=(0,c.parseParms)(this.props.location),t=_.get(e,"dsId"),a=_.get(e,"dsCycle"),n=_.get(e,"kpiTypeId");void 0!==t&&void 0!==a&&void 0!==n?(this.urlSearchCond={dsId:t,dsCycle:a,kpiTypeId:n},this.setState({tabKey:n,urlSearchCond:this.urlSearchCond})):this.setState({urlSearchCond:void 0}),this.props.dispatch(h.indiSetActions.getKpiTypesListRequest())},t.prototype.render=function(){var e=this,t=null!==this.props.kpiTypes?this.props.kpiTypes.toJS():[],a={1:"area-chart",2:"appstore",3:"codepen-circle",4:"star"};return(0,n.default)(b,{},void 0,(0,n.default)(i.default,{type:"card",activeKey:this.state.tabKey,onChange:this.onChangeCallback},void 0,t.map((function(t){if("9999"!==t.id&&"1"!==t.id)return(0,n.default)(y,{tab:(0,n.default)("span",{},void 0,(0,n.default)(f.Icon,{type:a[t.id]}),t.name)},t.id,(0,n.default)(g.default,{reseturlSearchCond:e.reseturlSearchCond,urlSearchCond:e.state.urlSearchCond,resetFunc:e.resetKpiType,selectedTypeId:e.state.tabKey,kpiTypeId:t.id},e.state.tabKey))}))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{kpiTypes:(0,m.selectKpiTypesList)(e)}}))(x)},"./src/module/dataMgr/dataExplore/DataExplorePage4.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataExploreDom=void 0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=v(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=v(a("./node_modules/react/index.js")),l=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/utils/history.js"),p=a("./src/redux/reducers/dataSource.js"),f=a("./node_modules/@ant-design/compatible/es/index.js"),m=a("./src/redux/selectors/indiSet.js"),h=a("./src/redux/reducers/indiSet.js"),g=v(a("./src/module/dataMgr/dataExplore/component/KpiConfigPage.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var y=i.default.TabPane,b=t.DataExploreDom=l.default.div.withConfig({displayName:"DataExplorePage4__DataExploreDom",componentId:"gmjybd-0"})(["width:100%;height:100%;margin:0px;padding:0px;float:left;background:#fff;.ant-tabs-bar{display:none;}.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-nav-wrap{float:left;}"]),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onChangeCallback=function(e){n.setState({tabKey:e}),n.props.dispatch(h.indiSetActions.getKpiDataListRequest({typeId:e,kpisetName:"",dsId:"",excludeDataType:"2"===e?["img","text"]:[]})),e!==n.state.tabKey&&(n.setState({urlSearchCond:void 0}),n.props.dispatch(h.indiSetActions.resetReviewResult()),Object.keys(n.resetKpiTypeFuncs).map((function(e){n.resetKpiTypeFuncs[e].call()})))},n.resetKpiType=function(e,t){n.resetKpiTypeFuncs[e]=t},n.reseturlSearchCond=function(){n.setState({urlSearchCond:void 0})},n.state={tabKey:"4",urlSearchCond:void 0,_this:n},n.resetKpiTypeFuncs={},a.dispatch(p.dataSourceActions.resetDataCyclesList()),a.dispatch(p.dataSourceActions.clearDataKpiTypeList()),a.dispatch(h.indiSetActions.resetReviewResult()),n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){var e=(0,c.parseParms)(this.props.location),t=_.get(e,"dsId"),a=_.get(e,"dsCycle"),n=_.get(e,"kpiTypeId");void 0!==t&&void 0!==a&&void 0!==n?(this.urlSearchCond={dsId:t,dsCycle:a,kpiTypeId:n},this.setState({tabKey:n,urlSearchCond:this.urlSearchCond})):this.setState({urlSearchCond:void 0}),this.props.dispatch(h.indiSetActions.getKpiTypesListRequest())},t.prototype.render=function(){var e=this,t=null!==this.props.kpiTypes?this.props.kpiTypes.toJS():[],a={1:"area-chart",2:"appstore",3:"codepen-circle",4:"star"};return(0,n.default)(b,{},void 0,(0,n.default)(i.default,{type:"card",activeKey:this.state.tabKey,onChange:this.onChangeCallback},void 0,t.map((function(t){if("9999"!==t.id&&"1"!==t.id)return(0,n.default)(y,{tab:(0,n.default)("span",{},void 0,(0,n.default)(f.Icon,{type:a[t.id]}),t.name)},t.id,(0,n.default)(g.default,{reseturlSearchCond:e.reseturlSearchCond,urlSearchCond:e.state.urlSearchCond,resetFunc:e.resetKpiType,selectedTypeId:e.state.tabKey,kpiTypeId:t.id},e.state.tabKey))}))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{kpiTypes:(0,m.selectKpiTypesList)(e)}}))(x)},"./src/module/dataMgr/dataExplore/component/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=h(a("./node_modules/react/index.js")),l=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var u=a("./node_modules/react-redux/es/index.js"),c=a("./src/redux/reducers/dataSource.js"),p=a("./src/redux/selectors/dataSource.js"),f=h(a("./src/components/common/CheckName.jsx")),m=a("./src/redux/selectors/checkName.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=i.default.Option,v=l.Form.Item,y=(0,n.default)(g,{value:""},void 0,"\u8bf7\u9009\u62e9\u6570\u636e\u96c6"),b=(0,n.default)(g,{value:""},void 0,"\u8bf7\u9009\u62e9\u5173\u8054\u5468\u671f"),x=function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));r.showVerifyError=function(e,t){return null!==e&&(0,n.default)("div",{style:{wordWrap:"break-word",marginTop:"1 px"}},void 0,!e&&3!==e&&(0,n.default)("span",{style:{fontSize:"10px",marginLeft:"5px",color:"#FB6362"}},void 0,t),3===e&&(0,n.default)("span",{style:{fontSize:"10px",marginLeft:"5px",color:"#FB6362"}},void 0,t))},r.validateFun=function(){var e=!1;return r.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,kpiData:r.kpiData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u57fa\u7840\u4fe1\u606f"}},r.getKpiTypeChange=function(e){r.kpiData.dsCycle=e,r.selectKpiAudit(r.kpiData.dsId,e)},r.emitEmpty=function(){r.userNameInput.focus(),r.props.form.setFieldsValue({kpisetName:""}),r.setState({kpisetName:""})},r.handleSourceChange=function(e){r.kpiData.dsId=e,r.props.dispatch(c.dataSourceActions.getDataCyclesListRequest({dsId:e,status:10}))},r.selectKpiAudit=function(e,t){r.props.dispatch(c.dataSourceActions.getDataKpiTypeListRequest({dsId:e,dsCycle:t})),r.props.dispatch(c.dataSourceActions.getDataSourceAuditListRequest({dsId:e,dsCycle:t,kpiClass:null,kpiName:null}))},r.updateName=function(e){r.setState({kpisetName:e}),r.kpiData.kpisetName=e?e.trim():e,r.props.form.setFieldsValue({kpisetName:e})},r.handleCheckNameValidate=function(e,t,a){var n=r.props.checkNameVerifyInfo.toJS(),o=n.verifyStatus,s=n.verifyMsg;-1===o&&a(s),a()},r.state={kpisetName:void 0!==a.kpiUpdateData.kpisetName?a.kpiUpdateData.kpisetName:"",_this:r},r.kpiData={dsCycle:void 0!==a.kpiUpdateData.dsCycle?a.kpiUpdateData.dsCycle:"",kpisetName:void 0!==a.kpiUpdateData.kpisetName?a.kpiUpdateData.kpisetName:"",typeId:void 0!==a.kpiUpdateData.typeId?a.kpiUpdateData.typeId:a.kpiTypeId,dsId:void 0!==a.kpiUpdateData.dsId?a.kpiUpdateData.dsId:""};var i=r.props.setValidateFunc;return _.isFunction(i)&&i("baseInfo",r.validateFun),r.checkNameRef=d.default.createRef(),r}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(c.dataSourceActions.getDataSourceListRequest({status:10})),void 0!==this.props.kpiUpdateData.dsId&&(this.selectKpiAudit(this.props.kpiUpdateData.dsId,this.props.kpiUpdateData.dsCycle),this.props.dispatch(c.dataSourceActions.getDataCyclesListRequest({dsId:this.props.kpiUpdateData.dsId,status:10})))},t.prototype.render=function(){var e=this.props.form.getFieldDecorator,t=null!==this.props.cyclesData?this.props.cyclesData.toJS():[],a=null!==this.props.sourceData?this.props.sourceData.toJS():[];return(0,n.default)(l.Form,{layout:"inline"},void 0,(0,n.default)(v,{},void 0,e("kpisetName ",{rules:[{required:!0,min:0,max:30,message:"\u8bf7\u8f93\u5165\u540d\u79f0"},{validator:this.handleCheckNameValidate}],initialValue:this.state.kpisetName})(d.default.createElement(f.default,{ref:this.checkNameRef,source:"indiSet",style:{width:"320px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:this.props.kpisetId||"",updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\dataExplore\\component\\BaseInfo.jsx",lineNumber:148}}))),(0,n.default)(v,{},void 0,e("dsId ",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u96c6"}],initialValue:this.kpiData.dsId})((0,n.default)(i.default,{onChange:this.handleSourceChange,getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u62e9\u6570\u636e\u96c6",style:{marginLeft:"20px",width:200}},void 0,y,a.map((function(e){return(0,n.default)(g,{value:e.dsId},e.dsId+_.uniqueId(),e.name)}))))),(0,n.default)(v,{},void 0,e("dsCycle ",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5173\u8054\u5468\u671f"}],initialValue:this.kpiData.dsCycle})((0,n.default)(i.default,{onChange:this.getKpiTypeChange,getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u62e9\u5173\u8054\u5468\u671f",style:{marginLeft:"20px",width:200}},void 0,b,t.map((function(e){return(0,n.default)(g,{value:e.dsCycle},e.id+_.uniqueId(),e.dsCycleDisplay)}))))),this.showVerifyError(this.state.nameVerify,this.state.verifyMsg))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{sourceData:(0,p.selectSourceData)(e),cyclesData:(0,p.selectCyclesData)(e),checkNameVerifyInfo:(0,m.selectVerifyInfo)(e)}}))(l.Form.create()(x))},"./src/module/dataMgr/dataExplore/component/CheckboxTable.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CheckboxTableDom=t.Tablebottom=void 0;var n=f(a("./node_modules/antd/es/table/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var d=f(a("./node_modules/react/index.js")),l=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=a("./src/components/index.js"),p=f(a("./node_modules/lodash/lodash.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=t.Tablebottom=u.default.div.withConfig({displayName:"CheckboxTable__Tablebottom",componentId:"vya948-0"})(["padding-left:2.3%;height:30px;background:#e5e9f2;span{font-family:MicrosoftYaHei;font-size:12px;color:#475669;letter-spacing:0;line-height:29px;}"]),h=t.CheckboxTableDom=u.default.div.withConfig({displayName:"CheckboxTable__CheckboxTableDom",componentId:"vya948-1"})(["padding-right:1%;overflow:auto;label{margin-right:0px;}.ant-table-thead{th{background:#e0e6ed;}}"]),g=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.columns=[{title:"\u6307\u6807\u5206\u7c7b",dataIndex:"fieldClassCnName",width:"9%",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6307\u6807\u540d\u79f0",dataIndex:"fieldCnName",width:"8%",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u82f1\u6587\u540d\u79f0",dataIndex:"fieldEnName",width:"8%",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u5355\u4f4d",dataIndex:"fieldUnit",width:"6%"},{title:"\u6570\u636e\u7279\u5f81",dataIndex:"fieldDataFeature",width:"8%",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u503c\u57df/\u6837\u4f8b",dataIndex:"fieldSimple",width:"9.5%",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u5e73\u5747\u503c",dataIndex:"meanValue",width:"8%",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u79bb\u7fa4\u503c",dataIndex:"outlierValue",width:"10%"},{title:"\u7f3a\u5931\u503c\uff08\u4e2a\u6570\uff09",dataIndex:"lostValue",width:"11.5%"},{title:"\u6807\u51c6\u5dee",dataIndex:"standardValue",width:"8%"},{title:"\u6307\u6807\u53e3\u5f84",dataIndex:"fieldCaliber",width:"8%"},{title:"\u63cf\u8ff0",dataIndex:"fieldDesc",width:"8%",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},,],n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this,a=[];if(this.props.disabled)for(var s=function(n){a.push(p.default.filter(e.props.dataSource,(function(e){if(t.props.selectedIndiData[n].fieldId===e.fieldId)return e}))[0])},r=0;r<this.props.selectedIndiData.length;r++)s(r);else for(r=0;r<this.props.selectedIndiData.length;r++)a.push(this.props.selectedIndiData[r].fieldId);var i={fixed:!0,disabled:!1,selectedRowKeys:a,getCheckboxProps:function(e){return{disabled:p.default.indexOf(t.props.disabledindiSelected,e.fieldId)>-1}},onChange:function(e,a){var n=t.props.selectedIndiData,o=t.props.dataSource;if(0!==n.length){for(var s=0;s<o.length;s++)for(var r=0;r<n.length;r++)if(n[r].fieldId===o[s].fieldId){n.splice(r--,1);break}if(0!==a.length)for(var i=0;i<a.length;i++)n.push({fieldClassCnName:a[i].fieldClassCnName,fieldId:a[i].fieldId,fieldCnName:a[i].fieldCnName})}else for(var d=0;d<a.length;d++)n.push({fieldClassCnName:a[d].fieldClassCnName,fieldId:a[d].fieldId,fieldCnName:a[d].fieldCnName});t.props.onChange(n,"add")}};return(0,o.default)(h,{dis:this.props.disabled,style:{maxHeight:p.default.get(document,"body.clientHeight",680)-300}},void 0,(0,o.default)(n.default,{rowKey:"fieldId",bordered:!0,rowSelection:this.props.disabled?null:i,pagination:this.props.pagination,dataSource:this.props.disabled?a:this.props.dataSource,columns:this.columns}),(0,o.default)(m,{},void 0,(0,o.default)("span",{},void 0,"\u5171 ",this.props.dataSource.length," \u6761\u6307\u6807\uff0c\u5df2\u9009 ",this.props.selectedIndiData.length," \u6761")))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(g)},"./src/module/dataMgr/dataExplore/component/CreateKpiConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateKpiConfigPage=void 0;var n=b(a("./node_modules/babel-runtime/helpers/jsx.js")),o=b(a("./node_modules/antd/es/modal/index.js")),s=b(a("./node_modules/antd/es/message/index.js")),r=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var l=b(a("./node_modules/react/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=(a("./node_modules/immutable3/dist/immutable.js"),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=(b(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),f=a("./src/redux/reducers/indiSet.js"),m=a("./src/redux/selectors/dataSource.js"),h=a("./src/redux/selectors/indiSet.js"),g=b(a("./src/module/dataMgr/dataExplore/component/CheckboxTable.jsx")),v=b(a("./src/module/dataMgr/dataExplore/component/SelectedIndi.jsx")),y=b(a("./src/module/dataMgr/dataExplore/component/BaseInfo.jsx"));function b(e){return e&&e.__esModule?e:{default:e}}var x=t.CreateKpiConfigPage=c.default.div.withConfig({displayName:"CreateKpiConfig__CreateKpiConfigPage",componentId:"np8zu8-0"})(["height:400px;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),C={width:"100%"},j=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.editSelectedIndiData=function(e,t){var a=n.state.selectedIndiData;if("add"===t)a=e;else for(var o=0;o<a.length;o++)if(a[o].fieldId===e){a.splice(o,1);break}n.setState({selectedIndiData:a.concat([])})},n.closeModal=function(){n.props.closeKpiConfig()},n.saveKpi=function(){var e=null,t=!0;Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(_.isFunction(o)&&(e=o.call(),t=e.validate),e.validate)if(0===n.state.selectedIndiData.length)s.default.error("\u8bf7\u9009\u62e9\u6307\u6807!"),t=!1;else{for(var r=[],i=0;i<n.state.selectedIndiData.length;i++){var d={fieldId:n.state.selectedIndiData[i].fieldId,fieldEnName:n.state.selectedIndiData[i].fieldId};r.push(d)}e.kpiData.fields=r}})),t&&(n.kpiData=e.kpiData,n.setState({modalVisible:!0}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(f.indiSetActions.submitKpiDataRequest({subType:n.props.viewType,kpisetParam:n.kpiData}))},n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",selectedIndiData:[],confirmLoading:!1,modalVisible:!1,_this:n},n.kpiData={},n.validateFuncs={},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.getDerivedStateFromProps=function(e,t){if("{}"===JSON.stringify(e.submitKpiMsg)&&"edit"===e.viewType&&0!==e.sourcesAudit.size){for(var a=[],n=e.sourcesAudit.toJS(),r=e.kpiUpdateData.kpiIds.split(","),i=0;i<r.length;i++)for(var d=0;d<n.length;d++)if(r[i]===n[d].fieldId){var l={fieldClassCnName:n[d].fieldClassCnName,fieldCnName:n[d].fieldCnName,fieldId:n[d].fieldId};a.push(l);break}return{selectedIndiData:a}}return"{}"!==JSON.stringify(e.submitKpiMsg)?-1!==_.get(e.submitKpiMsg,"code")?(s.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),t._this.props.dispatch(f.indiSetActions.resetSubmitKpiData()),t._this.props.closeKpiConfig("close"),t._this.props.fetchData(),t._this.props.dispatch(f.indiSetActions.getKpiDataListRequest({typeId:e.kpiTypeId,kpisetName:"",dsId:""})),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(o.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalVisible:!1}):null},t.prototype.render=function(){var e=0!==this.props.sourcesAudit.size?this.props.sourcesAudit.toJS():[];return(0,n.default)(x,{},void 0,(0,n.default)(o.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,n.default)("p",{},void 0,this.state.modalTxt)),(0,n.default)(p.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:C},void 0,(0,n.default)(y.default,{kpiTypeId:this.props.kpiTypeId,setValidateFunc:this.setValidateFunc,kpisetId:this.props.kpisetId,viewType:this.props.viewType,kpiUpdateData:this.props.kpiUpdateData})),(0,n.default)(p.ModelConfigPanel,{title:"\u9009\u62e9\u6307\u6807",sign:!0,style:C},void 0,(0,n.default)(g.default,{disabled:!1,pagination:!1,selectedIndiData:this.state.selectedIndiData,onChange:this.editSelectedIndiData,dataSource:e}),(0,n.default)(v.default,{kpiType:this.props.kpiType,disabled:!1,onChange:this.editSelectedIndiData,selectedIndiData:this.state.selectedIndiData})))},t}(l.default.PureComponent);t.default=(0,u.connect)((function(e){return{sourcesAudit:(0,m.selectDatasSourcesAudit)(e),kpiType:(0,m.selectDatasKpiType)(e),submitKpiMsg:(0,h.selectSubmitKpiMsg)(e)}}))(j)},"./src/module/dataMgr/dataExplore/component/DefineKpiConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DefineKpiConfigPage=void 0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/antd/es/message/index.js")),s=v(a("./node_modules/antd/es/modal/index.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var l=v(a("./node_modules/react/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var p=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(v(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/indiSet.js")),m=a("./src/redux/reducers/indiSet.js"),h=v(a("./src/components/common/CheckName.jsx")),g=a("./src/redux/selectors/checkName.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=c.Form.Item,b=t.DefineKpiConfigPage=p.default.div.withConfig({displayName:"DefineKpiConfig__DefineKpiConfigPage",componentId:"sc-12si92i-0"})(["padding-left:10px;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.closeModal=function(){n.props.closeKpiConfig()},n.saveDefine=function(){var e=!1;if(n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e){var t=n.props.reviewResult.toJS();t.length>0?(n.param.kpisetName=n.state.kpisetName,n.param.dsId=n.props.dsId,n.param.dsCycle=n.props.dsCycle,n.param.typeId="4",n.param.fields=t,n.param.kpisetId=n.props.kpisetId,n.setState({modalVisible:!0,nameVerify:!0})):s.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u6ca1\u6709\u9700\u8981\u4fdd\u5b58\u7684\u6570\u636e!"})}},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});for(var e=n.param,t=0;t<n.param.length;t++)delete e[t].dsCycle,delete e[t].dsId,delete e[t].isUpdata,delete e[t].lostValue,delete e[t].meanValue,delete e[t].outlierValue,delete e[t].reviewId,delete e[t].standardValue,delete e[t].varianceValue,delete e[t].fieldClassCnName,delete e[t].fieldClassEnName,delete e[t].fieldDataFeature,delete e[t].fieldIndex,delete e[t].fieldSimple;n.props.dispatch(m.indiSetActions.submitKpiDataRequest({subType:n.props.viewType,kpisetParam:e}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.getKpiNameBlur=function(e){n.setState({kpisetName:e}),n.props.form.setFieldsValue({kpisetName:e})},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",selectedIndiData:[],confirmLoading:!1,modalVisible:!1,_this:n,verifyMsg:"",kpisetName:""},n.param={},n.checkNameRef=l.default.createRef(),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.getDerivedStateFromProps=function(e,t){return"{}"!==JSON.stringify(e.submitKpiMsg)?-1!==_.get(e.submitKpiMsg,"code")?(o.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),t._this.props.dispatch(m.indiSetActions.resetSubmitKpiData()),t._this.props.closeKpiConfig("close"),t._this.props.fetchData(),t._this.props.dispatch(m.indiSetActions.getKpiDataListRequest({typeId:e.kpiTypeId,kpisetName:"",dsId:""})),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(s.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalVisible:!1}):null},t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,n.default)(b,{},void 0,(0,n.default)(s.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,n.default)("p",{},void 0,this.state.modalTxt)),(0,n.default)(c.Form,{layout:"inline"},void 0,(0,n.default)(y,{},void 0,e("kpisetName ",{rules:[{required:!0,min:0,max:30,message:"\u8bf7\u8f93\u5165\u9884\u5b9a\u4e49\u6307\u6807\u96c6\u540d\u79f0"},{validator:this.handleCheckNameValidate}],initialValue:this.state.kpisetName})(l.default.createElement(h.default,{ref:this.checkNameRef,source:"indiSet",style:{width:"370px"},placeholder:"\u8bf7\u8f93\u5165\u9884\u5b9a\u4e49\u6307\u6807\u96c6\u540d\u79f0",modelId:this.props.kpisetId||"",updateNameCallback:this.getKpiNameBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\dataExplore\\component\\DefineKpiConfig.jsx",lineNumber:185}})))))},t}(l.default.PureComponent);t.default=(0,u.connect)((function(e){return{submitKpiMsg:(0,f.selectSubmitKpiMsg)(e),reviewResult:(0,f.selectReviewResult)(e),checkNameVerifyInfo:(0,g.selectVerifyInfo)(e)}}))(c.Form.create()(x))},"./src/module/dataMgr/dataExplore/component/DownUpConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DownConfigDom=t.UpConfigDom=t.DownUpConfigDom=void 0;var n=y(a("./node_modules/antd/es/upload/index.js")),o=y(a("./node_modules/babel-runtime/helpers/extends.js")),s=y(a("./node_modules/antd/es/button/index.js")),r=y(a("./node_modules/babel-runtime/helpers/jsx.js")),i=y(a("./node_modules/antd/es/message/index.js")),d=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=y(a("./node_modules/react/index.js")),p=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./src/utils/authPermit.js"),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/utils/publicPath.js"),v=a("./src/redux/reducers/dataSource.js"),_=a("./src/module/dataMgr/dataExplore/util/formatData.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=t.DownUpConfigDom=p.default.div.withConfig({displayName:"DownUpConfig__DownUpConfigDom",componentId:"sc-1fy2phk-0"})(["float:left;display:contents;"]),x=t.UpConfigDom=p.default.div.withConfig({displayName:"DownUpConfig__UpConfigDom",componentId:"sc-1fy2phk-1"})(["display:flex;margin-left:2%;width:100%;margin-top:1.8%;span{margin-left:2%;font-size:12px;letter-spacing:0;line-height:14px;}.ant-upload-list{display:none;font-family:'Microsoft Yahei','STXihei','sans-serif';font-size:12px;line-height:1.5;color:rgba(0,0,0,0.65);-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;list-style:none;zoom:1;margin-left:20%;width:100%;}"]),C=t.DownConfigDom=p.default.div.withConfig({displayName:"DownUpConfig__DownConfigDom",componentId:"sc-1fy2phk-2"})(["margin-left:2%;width:100%;display:inline-flex;.fileDiv{background:#e5e9f2;padding-top:0.3%;margin-left:4.2%;width:30%;.down-name{margin-left:1.5%;font-size:12px;color:#475669;letter-spacing:0;line-height:14px;}}"]),j=(0,r.default)(f.DownloadOutlined,{}),S=(0,r.default)(f.DownloadOutlined,{}),I=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.downTemplate=function(){n.props.dispatch(v.dataSourceActions.downMetaDataTemplateRequest())},n.downDataFile=function(){n.props.dispatch(v.dataSourceActions.downMetaDataFieldsRequest(n.props.dsId,n.props.cycleId))},n.uploadFile=function(){n.props.dispatch(v.dataSourceActions.uploadMetaDataRequest(n.props.dsId,n.props.cycleId))},n.downFile=function(e){if("data"===e){var t=n.props,a=t.dsId,o=t.cycleId;window.location.href=(0,g.urlFormat)("/api/datasources/"+a+"/dsCycles/"+o+"/metadata/actions/download?token="+encodeURI((0,m.getToken)()))}else window.location.href=(0,g.urlFormat)("/api/datasources/dsCycles/metadata/actions/downloadTpl?token="+encodeURI((0,m.getToken)()))},n.state={upFiedName:""},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this,a=(0,m.getToken)(),d={name:"file",action:(0,g.urlFormat)("/api/datasources/"+this.props.dsId+"/dsCycles/"+this.props.cycleId+"/metadata/actions/upload"),headers:{Authorization:a},onChange:function(e){if("uploading"!==e.file.status&&i.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status)if(t.setState({upFiedName:e.file.name}),e.file.response.data.length>0){var a=(0,_.serviceDataFormat)(e.file.response.data,t.props.reviewResult);t.props.onChange(a),i.default.success(e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01")}else i.default.success(e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01\u4f46\u662f\u672a\u5339\u914d\u5230\u4efb\u4f55\u6570\u636e!")}};return(0,r.default)(b,{},void 0,(0,r.default)(C,{},void 0,(0,r.default)(s.default,{onClick:function(){e.downFile("template")},icon:j,size:"small"},void 0,"\u4e0b\u8f7d\u9ed8\u8ba4\u6570\u636e\u6a21\u677f"),(0,r.default)("div",{className:"fileDiv"},void 0,""!==this.state.upFiedName?(0,r.default)(f.PaperClipOutlined,{style:{marginLeft:"1%",color:"#B1BECF"}}):"",(0,r.default)("span",{className:"down-name"},void 0,""!==this.state.upFiedName?this.state.upFiedName:"\u53ea\u80fd\u4e0a\u4f20.xlsx\u7ed3\u5c3e\u6587\u4ef6,\u4e0d\u80fd\u8d85\u8fc710M"))),(0,r.default)(x,{},void 0,(0,r.default)(s.default,{onClick:function(){e.downFile("data")},icon:S,size:"small"},void 0,"\u4e0b\u8f7d\u5f53\u524d\u6570\u636e\u63cf\u8ff0"),c.default.createElement(n.default,(0,o.default)({},d,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\dataExplore\\component\\DownUpConfig.jsx",lineNumber:163}}),(0,r.default)(s.default,{style:{marginLeft:"20%"},type:"primary",size:"small"},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6570\u636e\u63cf\u8ff0")),(0,r.default)("span",{style:{color:"#a2b0c4",margin:"0.4% 0 0 28%",position:"absolute"}},void 0,"\u53ea\u80fd\u4e0a\u4f20(\u6307\u5b9a\u7c7b\u578b)\u7c7b\u578b\u6587\u4ef6\uff0c\u4e14\u4e0d\u8d85\u8fc7(\u6b64\u5904\u6307\u5b9a\u6587\u4ef6\u5927\u5c0f)")))},t}(c.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(I)},"./src/module/dataMgr/dataExplore/component/EditDescTemplate.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateKpiConfigPage=void 0;var n=y(a("./node_modules/babel-runtime/helpers/jsx.js")),o=y(a("./node_modules/antd/es/message/index.js")),s=y(a("./node_modules/antd/es/modal/index.js")),r=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var l=y(a("./node_modules/react/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(y(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),f=a("./src/redux/reducers/indiSet.js"),m=a("./src/redux/selectors/indiSet.js"),h=y(a("./src/module/dataMgr/dataExplore/component/DownUpConfig.jsx")),g=y(a("./src/module/dataMgr/dataExplore/component/EditTable.jsx")),v=a("./src/redux/selectors/dataSource.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=t.CreateKpiConfigPage=c.default.div.withConfig({displayName:"EditDescTemplate__CreateKpiConfigPage",componentId:"qv4vv9-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),x={width:"100%"},C=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.closeModal=function(){n.props.closeKpiConfig()},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.setReviewResult=function(e,t){var a=n.state.reviewResult;a[e]=t,n.setState({reviewResult:a})},n.saveKpi=function(){n.state.reviewResult.length>0?(n.param.kpisetName=n.props.kpisetName,n.param.dsId=n.props.dsId,n.param.dsCycle=n.props.dsCycle,n.param.typeId=n.props.kpiTypeId,n.param.fields=n.state.reviewResult,n.param.kpisetId=n.props.kpisetId,n.setState({modalVisible:!0})):s.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u6ca1\u6709\u9700\u8981\u4fdd\u5b58\u7684\u6570\u636e!"})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});for(var e=n.param,t=0;t<n.param.length;t++)delete e[t].dsCycle,delete e[t].dsId,delete e[t].isUpdata,delete e[t].lostValue,delete e[t].meanValue,delete e[t].outlierValue,delete e[t].reviewId,delete e[t].standardValue,delete e[t].varianceValue,delete e[t].fieldClassCnName,delete e[t].fieldClassEnName,delete e[t].fieldDataFeature,delete e[t].fieldIndex,delete e[t].fieldSimple;n.props.dispatch(f.indiSetActions.submitKpiDataRequest({subType:n.props.viewType,kpisetParam:e}))},n.setAllReviewResult=function(e){n.setState({reviewResult:e})},n.state={confirmLoading:!1,modalVisible:!1,reviewResult:[],_this:n,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"},n.param={},n.kpiData={},n.validateFuncs={},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this),this.props.dispatch(f.indiSetActions.getReviewResultRequest({kpisetId:this.props.kpisetId,dsCycle:this.props.dsCycle}))},t.getDerivedStateFromProps=function(e,t){return"{}"!==JSON.stringify(e.submitKpiMsg)?(-1!==_.get(e.submitKpiMsg,"code")?(o.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),t._this.props.dispatch(f.indiSetActions.resetSubmitKpiData()),t._this.props.fetchData(),e.dispatch(f.indiSetActions.getReviewResultRequest({kpisetId:t._this.props.kpisetId,dsCycle:t._this.props.dsCycle}))):s.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),t._this.props.closeKpiConfig("close"),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1}):e.reviewResult.size>0?{reviewResult:e.reviewResult.toJS()}:null},t.prototype.render=function(){return(0,n.default)(b,{},void 0,(0,n.default)(s.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,n.default)("p",{},void 0,this.state.modalTxt)),(0,n.default)(p.ModelConfigPanel,{title:"\u81ea\u5b9a\u4e49\u6570\u636e\u6a21\u677f\uff08\u53ef\u9009\uff09",style:x},void 0,(0,n.default)(h.default,{reviewResult:this.state.reviewResult,onChange:this.setAllReviewResult,dsId:this.props.dsId,cycleId:this.props.dsCycle,kpisetId:this.props.kpisetId})),(0,n.default)(p.ModelConfigPanel,{title:"\u6307\u6807\u63cf\u8ff0\u4fee\u6539",style:x},void 0,(0,n.default)(g.default,{onChange:this.setReviewResult,reviewResult:this.state.reviewResult,kpisetId:this.props.kpisetId,dsCycle:this.props.dsCycle},_.uniqueId())))},t}(l.default.PureComponent);t.default=(0,u.connect)((function(e){return{reviewResult:(0,m.selectReviewResult)(e),metaDatas:(0,v.saveSourceMetaDatas)(e),submitKpiMsg:(0,m.selectSubmitKpiMsg)(e)}}))(C)},"./src/module/dataMgr/dataExplore/component/EditKpiConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateKpiConfigPage=void 0;var n=b(a("./node_modules/babel-runtime/helpers/jsx.js")),o=b(a("./node_modules/antd/es/modal/index.js")),s=b(a("./node_modules/antd/es/message/index.js")),r=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=b(a("./node_modules/babel-runtime/helpers/inherits.js")),l=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var u=b(a("./node_modules/react/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=(a("./node_modules/immutable3/dist/immutable.js"),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=(b(a("./node_modules/prop-types/index.js")),a("./src/redux/reducers/dataSource.js")),h=a("./src/redux/reducers/indiSet.js"),g=a("./src/redux/selectors/dataSource.js"),v=a("./src/redux/selectors/indiSet.js"),y=b(a("./src/module/dataMgr/dataExplore/component/CheckboxTable.jsx"));function b(e){return e&&e.__esModule?e:{default:e}}var x=l.default.Search,C=t.CreateKpiConfigPage=f.default.div.withConfig({displayName:"EditKpiConfig__CreateKpiConfigPage",componentId:"sc-18m1kvc-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),j=(0,n.default)(p.LoadingIndicator,{position:"relative"}),S=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.editSelectedIndiData=function(e,t){var a=n.state.selectedIndiData;if("add"===t)a=e;else for(var o=0;o<a.length;o++)if(a[o].fieldId===e){a.splice(o,1);break}n.setState({selectedIndiData:a.concat([])})},n.closeModal=function(){n.props.closeKpiConfig()},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.saveKpi=function(){n.kpiData=n.props.kpiUpdateData;var e=!0;if(0===n.state.selectedIndiData.length)s.default.error("\u8bf7\u9009\u62e9\u6307\u6807!"),e=!1;else{for(var t=[],a=n.props.sourcesAudit.toJS(),o=0;o<a.length;o++)for(var r=0;r<n.state.selectedIndiData.length;r++)if(n.state.selectedIndiData[r].fieldId===a[o].fieldId){var i={fieldEnName:a[o].fieldEnName,fieldCnName:a[o].fieldCnName,fieldId:a[o].fieldId,fieldDesc:a[o].fieldDesc,fieldClassCnName:a[o].fieldClassCnName,fieldUnit:a[o].fieldUnit,fieldCaliber:a[o].fieldCaliber};t.push(i);break}n.kpiData.fields=t}e&&(n.kpiData.kpisetId=n.props.kpisetId,n.setState({modalVisible:!0}))},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(h.indiSetActions.submitKpiDataRequest({subType:n.props.viewType,kpisetParam:n.kpiData}))},n.doSearch=function(e){n.props.dispatch(m.dataSourceActions.getDataSourceAuditListRequest({dsId:n.props.kpiUpdateData.dsId,dsCycle:n.props.kpiUpdateData.dsCycle,kpiClass:null,kpiName:e}))},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",selectedIndiData:[],confirmLoading:!1,modalVisible:!1,_this:n},n.kpiData={},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this),this.props.dispatch(m.dataSourceActions.getDataSourceAuditListRequest({dsId:this.props.kpiUpdateData.dsId,dsCycle:this.props.kpiUpdateData.dsCycle,kpiClass:null,kpiName:null}))},t.getDerivedStateFromProps=function(e,t){if("{}"===JSON.stringify(e.submitKpiMsg)&&"edit"===e.viewType&&0!==e.sourcesAudit.size){for(var a=[],n=e.sourcesAudit.toJS(),r=e.kpiUpdateData.fields,i=0;i<r.length;i++)for(var d=0;d<n.length;d++)if(r[i].fieldId===n[d].fieldId){var l={fieldId:n[d].fieldId};a.push(l);break}return{selectedIndiData:a}}return"{}"!==JSON.stringify(e.submitKpiMsg)?-1!==_.get(e.submitKpiMsg,"code")?(s.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),t._this.props.dispatch(h.indiSetActions.resetSubmitKpiData()),t._this.props.closeKpiConfig("close"),t._this.props.fetchData(),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(o.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalVisible:!1}):null},t.prototype.componentWillUnmount=function(){this.props.dispatch(m.dataSourceActions.getDataSourceAuditListRequest({dsId:this.props.kpiUpdateData.dsId,dsCycle:this.props.kpiUpdateData.dsCycle,kpiClass:null,kpiName:null}))},t.prototype.render=function(){var e=this,t=0!==this.props.sourcesAudit.size?this.props.sourcesAudit.toJS():[];return(0,n.default)(C,{},void 0,(0,n.default)(o.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,n.default)("p",{},void 0,this.state.modalTxt)),(0,n.default)("div",{style:{margin:"0% 0% 1% 0%"}},void 0,(0,n.default)(x,{style:{width:"30%"},placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",size:"small",onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})),this.props.loading&&j,!this.props.loading&&(0,n.default)(y.default,{disabled:!1,pagination:!1,selectedIndiData:this.state.selectedIndiData,onChange:this.editSelectedIndiData,dataSource:t}))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(e){return{sourcesAudit:(0,g.selectDatasSourcesAudit)(e),kpiType:(0,g.selectDatasKpiType)(e),submitKpiMsg:(0,v.selectSubmitKpiMsg)(e),loading:(0,g.selectDataSourceAuditListLoading)(e)}}))(S)},"./src/module/dataMgr/dataExplore/component/EditTable.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.EditTableDom=void 0;var n=f(a("./node_modules/antd/es/table/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var d=f(a("./node_modules/react/index.js")),l=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=a("./src/components/index.js"),p=f(a("./src/module/dataMgr/dataExplore/component/EditTableCell.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=t.EditTableDom=u.default.div.withConfig({displayName:"EditTable__EditTableDom",componentId:"sc-9ok9mc-0"})(["label{margin-right:0px;}.ant-table-thead{th{background:#e0e6ed;padding:",";}span{padding:5px;}}.ant-table-thead > tr:first-child > th:first-child{border-top-left-radius:4px;}width:98%;.ant-table-fixed-left{width:50px;display:none;}.ant-table-bordered .ant-table-tbody > tr > td{padding:10px 10px;}.ant-table table{border-collapse:none;}.ant-table-selection-column > span{width:5px;margin-right:10px;}.ant-table-fixed-header > .ant-table-content > .ant-table-scroll > .ant-table-body{position:relative;background:#fff;}"],(function(e){return e.dis?"":"0px 0px 0px 5px"})),h=(0,o.default)(c.RowTitle,{titleVal:"\u5e8f\u53f7"}),g=(0,o.default)(c.RowTitle,{titleVal:"\u6307\u6807\u5206\u7c7b",titleLabel:"\uff08\u53ef\u4fee\u6539\uff09"}),v=(0,o.default)(c.RowTitle,{titleVal:"\u6307\u6807\u540d\u79f0",titleLabel:"\uff08\u53ef\u4fee\u6539\uff09"}),_=(0,o.default)(c.RowTitle,{titleVal:"\u82f1\u6587\u540d\u79f0"}),y=(0,o.default)(c.RowTitle,{titleVal:"\u5355\u4f4d",titleLabel:"\uff08\u53ef\u4fee\u6539\uff09"}),b=(0,o.default)(c.RowTitle,{titleVal:"\u6570\u636e\u7279\u5f81"}),x=(0,o.default)(c.RowTitle,{titleVal:"\u503c\u57df/\u6837\u4f8b"}),C=(0,o.default)(c.RowTitle,{titleVal:"\u5e73\u5747\u503c"}),j=(0,o.default)(c.RowTitle,{titleVal:"\u79bb\u7fa4\u503c"}),S=(0,o.default)(c.RowTitle,{titleVal:"\u7f3a\u5931\u503c\uff08\u4e2a\u6570\uff09"}),I=(0,o.default)(c.RowTitle,{titleVal:"\u6807\u51c6\u5dee"}),T=(0,o.default)(c.RowTitle,{titleVal:"\u6307\u6807\u53e3\u5f84",titleLabel:"\uff08\u53ef\u4fee\u6539\uff09"}),w=(0,o.default)(c.RowTitle,{titleVal:"\u63cf\u8ff0",titleLabel:"\uff08\u53ef\u4fee\u6539\uff09"}),E=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.onCellChange=function(e,t){n.props.onChange(e,t)},n.validateFun=function(){return{validate:!0,moduleData:n.reviewResults}},n.columns=[{title:h,dataIndex:"numIndex",width:"4%",render:function(e,t,a){return(0,o.default)("span",{},void 0,a+1)}},{title:g,dataIndex:"fieldClassCnName",width:"8%",render:function(e,t,a){return(0,o.default)(p.default,{keyName:"fieldClassCnName",indexNum:a,value:e,record:t,onChange:function(e,t){n.onCellChange(e,t)}})}},{title:v,dataIndex:"fieldCnName",width:"8%",render:function(e,t,a){return(0,o.default)(p.default,{keyName:"fieldCnName",indexNum:a,value:e,record:t,onChange:function(e,t){n.onCellChange(e,t)}})}},{title:_,dataIndex:"fieldEnName",width:"7%",render:function(e){var t=e;return void 0!==e&&e.length>4?(t=e.substring(0,4)+"...",(0,o.default)("span",{title:e},void 0,t)):(0,o.default)("span",{},void 0,t)}},{title:y,dataIndex:"fieldUnit",width:"8%",render:function(e,t,a){return(0,o.default)(p.default,{keyName:"fieldUnit",indexNum:a,value:e,record:t,onChange:function(e,t){n.onCellChange(e,t)}})}},{title:b,dataIndex:"fieldDataFeature",width:"8%"},{title:x,dataIndex:"fieldSimple",width:"8%",render:function(e){var t=e;return void 0!==e&&null!==t&&e.length>5?(t=e.substring(0,5)+"...",(0,o.default)("span",{title:e},void 0,t)):(0,o.default)("span",{},void 0,t)}},{title:C,dataIndex:"meanValue",width:"7%",render:function(e){var t=e;return null!==t&&void 0!==t&&e.length>3?(t=e.substring(0,3)+"...",(0,o.default)("span",{title:e},void 0,t)):(0,o.default)("span",{},void 0,t)}},{title:j,dataIndex:"outlierValue",width:"10%",render:function(e){var t=e;return null!==t&&void 0!==t&&e.length>3?(t=e.substring(0,3)+"...",(0,o.default)("span",{title:e},void 0,t)):(0,o.default)("span",{},void 0,t)}},{title:S,dataIndex:"lostValue",width:"10%"},{title:I,dataIndex:"standardValue",width:"6%",render:function(e){var t=e;return null!==t&&void 0!==t&&e.length>3?(t=e.substring(0,3)+"...",(0,o.default)("span",{title:e},void 0,t)):(0,o.default)("span",{},void 0,t)}},{title:T,dataIndex:"fieldCaliber",width:"8%",render:function(e,t,a){return(0,o.default)(p.default,{keyName:"fieldCaliber",indexNum:a,value:e,record:t,onChange:function(e,t){n.onCellChange(e,t)}})}},{title:w,dataIndex:"fieldDesc",width:"8%",render:function(e,t,a){return(0,o.default)(p.default,{keyName:"fieldDesc",index:a,value:e,record:t,onChange:function(e,t){n.onCellChange(e,t)}})}},,],n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props.reviewResult;return(0,o.default)(m,{},void 0,(0,o.default)(n.default,{pagination:!1,dataSource:e,scroll:{y:300},rowKey:"fieldId",bordered:!0,columns:this.columns}))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(E)},"./src/module/dataMgr/dataExplore/component/EditTableCell.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/antd/es/input/index.js")),o=u(a("./node_modules/babel-runtime/helpers/jsx.js")),s=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=u(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input/style/index.js");var d=u(a("./node_modules/react/index.js")),l=(u(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(a){(0,s.default)(this,t);var i=(0,r.default)(this,e.call(this,a));return i.edit=function(){i.setState({editable:!0})},i.save=function(e){if(i.setState({editable:!1,value:e}),i.props.onChange){var t=i.props,a=t.indexNum,n=t.record;n[i.props.keyName]=e,i.props.onChange(a,n)}},i.renderCell=function(){var e=i.state,t=e.value,a=e.editable,s=e.record;return(0,o.default)("div",{className:"editable-cell"},void 0,a?(0,o.default)("div",{},void 0,d.default.createElement(n.default,{autoFocus:!0,size:"small",defaultValue:t,ref:i.inputRef,onBlur:function(e){return i.save(e.target.value)},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\dataExplore\\component\\EditTableCell.jsx",lineNumber:43}})):(0,o.default)("div",{onClick:i.edit},void 0,(0,o.default)("span",{style:{color:void 0===s.isUpdata?"":-1!==s.isUpdata.indexOf(i.props.keyName)?"#F8A900":""},title:t},void 0,t&&t.length>4?t.substring(0,4)+"...":t)))},i.inputRef=d.default.createRef(),i.state={value:a.value,editable:!1,record:a.record},i}return(0,i.default)(t,e),t.prototype.render=function(){return(0,o.default)("div",{},void 0,this.renderCell())},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(c)},"./src/module/dataMgr/dataExplore/component/IndiTree.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.KpiButtonDom=t.KpiDataDom=t.IndiTreeDom=void 0;var n=y(a("./node_modules/antd/es/button/index.js")),o=y(a("./node_modules/babel-runtime/helpers/jsx.js")),s=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=y(a("./node_modules/babel-runtime/helpers/inherits.js")),d=y(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var l=y(a("./node_modules/react/index.js")),u=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(y(a("./node_modules/prop-types/index.js")),a("./src/redux/reducers/indiSet.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./src/redux/selectors/indiSet.js"),h=a("./src/redux/reducers/dataSource.js"),g=a("./src/components/index.js"),v=y(a("./src/components/auth/funAuth.jsx"));function y(e){return e&&e.__esModule?e:{default:e}}var b=d.default.Search,x=t.IndiTreeDom=u.default.div.withConfig({displayName:"IndiTree__IndiTreeDom",componentId:"sc-13fcd9l-0"})(["width:200px;float:left;max-height:650px;overflow:auto;margin-bottom:22px;"]),C=t.KpiDataDom=u.default.ul.withConfig({displayName:"IndiTree__KpiDataDom",componentId:"sc-13fcd9l-1"})(["padding-left:21px;overflow:auto;overflow-x:hidden;.titleName{margin-left:-3px;border-left:3px solid #147bd1;font-size:14px;color:#1f2d3d;padding-left:16px;margin-bottom:16px;}"]),j=t.KpiButtonDom=u.default.div.withConfig({displayName:"IndiTree__KpiButtonDom",componentId:"sc-13fcd9l-2"})(["margin-top:18%;text-align:center;height:32px;"]),S=(0,o.default)(f.PlusOutlined,{}),I=(0,o.default)(g.LoadingIndicator,{}),T=(0,o.default)("div",{className:"titleName"},void 0,"\u6307\u6807\u7c7b"),w=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.kpiTreeReset=function(){n.setState({kpisetId:""}),n.props.dispatch(h.dataSourceActions.resetDataCyclesList()),n.props.dispatch(h.dataSourceActions.clearDataKpiTypeList())},n.onClickTree=function(e,t){n.props.dispatch(h.dataSourceActions.resetDataCyclesList()),n.props.reseturlSearchCond(),n.props.setKpiTreeName(e.kpisetName),-1!==_.indexOf(["2","3"],n.props.kpiTypeId)?(n.props.onChange("kpisetId,dsCycle,dsId",[e.kpisetId,e.dsCycle,e.dsId]),n.props.dispatch(h.dataSourceActions.getDataCyclesListRequest({dsId:e.dsId,status:10}))):n.props.onChange("kpisetId,dsId",[e.kpisetId,e.dsId]),n.props.dispatch(h.dataSourceActions.getDataKpiTypeListRequest({dsId:e.dsId,dsCycle:""}));var a=10;t>0&&(a+=30*t),n.setState({kpisetId:e.kpisetId,linkTop:a})},n.sortKpiData=function(e){var t=n.props.dsId,a=_.findIndex(e,(function(e){return e.dsId===t})),o=e[a];if(0==a)return e;for(var s=0;s<e.length;s++)if(e[s]===e[a]){e.splice(s,1);break}return e.unshift(o),e},n.doSearch=function(e){n.props.dispatch(c.indiSetActions.getKpiDataListRequest({typeId:n.props.kpiTypeId,kpisetName:e,dsId:"",excludeDataType:["img","text"]}))},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={kpisetId:"",linkTop:null};var o=n.props.resetFunc;return _.isFunction(o)&&o("kpiTreeReset",n.kpiTreeReset),n}return(0,i.default)(t,e),t.getDerivedStateFromProps=function(e){if(void 0!==e.dsId&&null!==e.kpiData){for(var t=e.kpiData.toJS(),a="",n=0;n<t.length;n++)t[n].dsId===e.dsId&&(e.setKpiTreeName(void 0===t[n].kpisetName?"":t[n].kpisetName),e.onChange("kpisetId,dsCycle,dsId",[t[n].kpisetId,e.dsCycle,e.dsId]),a=t[n].kpisetId);return{kpisetId:a}}return null},t.prototype.render=function(){var e=this,t=null!==this.props.kpiData&&void 0!=this.props.kpiData?void 0!==this.props.urlSearchCond?this.sortKpiData(this.props.kpiData.toJS()):this.props.kpiData.toJS():[];return(0,o.default)(x,{},void 0,-1!==_.indexOf(["1","4"],this.props.kpiTypeId)&&(0,o.default)(v.default,{permissions:["DATA_EXPLORER:CREATE"],displayType:"hide"},void 0,(0,o.default)(j,{},void 0,(0,o.default)(n.default,{onClick:function(){e.props.openModalonClick("create")},type:"primary",icon:S},void 0,"\u521b\u5efa\u65b0\u6307\u6807\u96c6")),-1!==_.indexOf(["1","4"],this.props.kpiTypeId)&&(0,o.default)("div",{style:{width:"75%",margin:"16px 0px 16px 13%",borderBottom:"1px solid #DFE0E1"}})),(0,o.default)("div",{style:{margin:-1!==_.indexOf(["1","4"],this.props.kpiTypeId)?"0% 12% 10% 12%":"18% 12% 10% 12%"}},void 0,(0,o.default)(b,{style:{width:122},placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})),(0,o.default)(C,{},void 0,this.props.loading&&I,!this.props.loading&&(0,o.default)("div",{},void 0,T,(0,o.default)("div",{className:"ant-anchor-wrapper"},void 0,(0,o.default)("div",{className:"ant-anchor"},void 0,(0,o.default)("div",{className:"ant-anchor-ink"},void 0,this.state.kpisetId&&(0,o.default)("span",{className:"ant-anchor-ink-ball visible",style:{top:this.state.linkTop}})),t.map((function(t,a){return(0,o.default)("div",{className:t.kpisetId===e.state.kpisetId?"ant-anchor-link ant-anchor-link-active":"ant-anchor-link "},a,(0,o.default)("a",{style:{fontSize:14},onClick:function(){return e.onClickTree(t,a)},className:"ant-anchor-link-title ant-anchor-link-title-active"},void 0,void 0===t.kpisetName?"":t.kpisetName))})))))))},t}(l.default.PureComponent);t.default=(0,p.connect)((function(e){return{kpiData:(0,m.selectKpiDataList)(e),loading:(0,m.selectKpiDataLoading)(e)}}))(w)},"./src/module/dataMgr/dataExplore/component/KpiConfigPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.IndiConfigTable=t.TableDom=t.KpiConfigDom=void 0;var n=P(a("./node_modules/antd/es/table/index.js")),o=P(a("./node_modules/antd/es/button/index.js")),s=P(a("./node_modules/antd/es/tooltip/index.js")),r=P(a("./node_modules/babel-runtime/helpers/jsx.js")),i=P(a("./node_modules/antd/es/message/index.js")),d=P(a("./node_modules/antd/es/modal/index.js")),l=P(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=P(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=P(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=P(a("./node_modules/react/index.js")),f=P(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(P(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./src/components/index.js"),v=P(a("./src/module/dataMgr/dataExplore/component/DefineKpiConfig.jsx")),y=a("./src/utils/constants.js"),b=P(a("./src/module/dataMgr/dataExplore/component/EditDescTemplate.jsx")),x=P(a("./src/module/dataMgr/dataExplore/component/CreateKpiConfig.jsx")),C=P(a("./src/module/dataMgr/dataExplore/component/EditKpiConfig.jsx")),j=P(a("./src/styles/images/nopic.png")),S=P(a("./node_modules/react-image/es/index.js")),I=P(a("./src/components/auth/funAuth.jsx")),T=a("./src/redux/reducers/dataSource.js"),w=a("./src/redux/selectors/indiSet.js"),E=a("./src/redux/reducers/indiSet.js"),D=a("./src/redux/selectors/dataSource.js"),M=P(a("./src/module/dataMgr/dataExplore/component/IndiTree.jsx")),k=P(a("./src/module/dataMgr/dataExplore/component/SearchBar.jsx"));function P(e){return e&&e.__esModule?e:{default:e}}var L=t.KpiConfigDom=f.default.div.withConfig({displayName:"KpiConfigPage__KpiConfigDom",componentId:"sc-13442yu-0"})(["width:100%;position:relative;float:left;background:#fff;height:100%;display:flex;"]),N=t.TableDom=f.default.div.withConfig({displayName:"KpiConfigPage__TableDom",componentId:"sc-13442yu-1"})(["position:relative;padding-top:1px;max-height:650px;overflow:auto;"]),A=t.IndiConfigTable=f.default.div.withConfig({displayName:"KpiConfigPage__IndiConfigTable",componentId:"sc-13442yu-2"})(["height:auto;width:100%;padding:20px;background:#ffffff;float:left;margin:0px 16px 0px 16px;.kpiNameClass{position:absolute;margin-top:9px;.icon{font-size:12px;color:#a2b0c4;cursor:pointer;float:right;padding-top:9px;margin-left:10px;}}"]),R=(0,r.default)(g.TableTitleEllipsis,{title:"\u6307\u6807\u5206\u7c7b"}),F=(0,r.default)(g.TableTitleEllipsis,{title:"\u6307\u6807\u540d\u79f0"}),O=(0,r.default)(g.TableTitleEllipsis,{title:"\u5355\u4f4d"}),V=(0,r.default)(g.TableTitleEllipsis,{title:"\u6570\u636e\u7279\u5f81"}),U=(0,r.default)(g.TableTitleEllipsis,{title:"\u503c\u57df/\u6837\u4f8b"}),B=(0,r.default)(g.TableTitleEllipsis,{title:"\u5e73\u5747\u503c"}),G=(0,r.default)(g.TableTitleEllipsis,{title:"\u79bb\u7fa4\u503c"}),z=(0,r.default)(g.TableTitleEllipsis,{title:"\u79bb\u7fa4\u503c\u4e2a\u6570/\u5360\u6bd4"}),q=(0,r.default)(g.TableTitleEllipsis,{title:"\u7f3a\u5931\u503c/\u5360\u6bd4"}),K=(0,r.default)(g.TableTitleEllipsis,{title:"\u65b9\u5dee"}),H=(0,r.default)(g.RowTitle,{titleVal:"\u76f4\u65b9\u56fe",titleLabel:"\u76f4\u65b9\u9891\u7387\u56fe",LabelColour:!0}),Y=(0,r.default)(g.TableTitleEllipsis,{title:"\u6807\u51c6\u5dee"}),W=(0,r.default)(g.TableTitleEllipsis,{title:"\u6307\u6807\u53e3\u5f84"}),J=(0,r.default)(g.LoadingIndicator,{position:"relative"}),Q=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.onClickMap=function(e){var t=n;n.props.dispatch(E.indiSetActions.getDiagramMapRequest({dsId:t.searchCond.dsId,dsCycle:""===t.searchCond.dsCycle?e.dsCycle:t.searchCond.dsCycle,fieldEnName:e.fieldEnName})),n.setState({mapVisible:!0,modalTitle:"\u5206\u7c7b"===e.fieldDataFeature?"\u76f4\u65b9\u9891\u7387\u56fe":"\u76f4\u65b9\u56fe"})},n.kpiTypeReset=function(){n.props.dispatch(E.indiSetActions.resetKpiSetList()),n.props.dispatch(E.indiSetActions.resetReviewResult()),n.setState({kpiTreeName:"",_this:n}),n.searchCond={kpisetId:"",dsCycle:"",kpiClass:"",kpiName:"",dsId:""}},n.fetchData=function(e){void 0!==e&&""!==e.kpisetId&&n.props.dispatch(E.indiSetActions.getReviewResultRequest(e))},n.changeSearchCond=function(e,t){var a="",o="";if(-1!==e.indexOf(","))for(var s=e.split(","),r=0;r<s.length;r++)"kpisetId"===s[r]&&(o=n.searchCond.dsId,a="tree"),n.searchCond[s[r]]=_.trim(t[r]);else n.searchCond[e]=_.trim(t);""!==a&&n.searchCond.kpisetId!==o&&(n.searchCond.kpiClass="",n.searchCond.kpiName="",n.searchCond.dsCycle="",n.setState({empty:!0})),n.fetchData(n.searchCond)},n.setKpiTreeName=function(e){n.setState({kpiTreeName:e})},n.callMapVisible=function(){n.setState({mapVisible:!1})},n.callVisible=function(e){if(void 0!==e||"view"===n.state.viewType)n.setState({modalVisible:!1,viewType:""});else{var t=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1,viewType:""})}})}},n.openKpiConfig=function(e){n.props.dispatch(E.indiSetActions.resetUpdateKpiData()),n.props.dispatch(T.dataSourceActions.clearDataSourceAuditListRequest()),n.props.dispatch(T.dataSourceActions.clearDataKpiTypeList()),n.props.dispatch(T.dataSourceActions.resetDataCyclesList()),n.setState({modalVisible:!0,viewType:e})},n.defineKpiSet=function(){n.setState({modalVisible:!0,viewType:"true"})},n.editDescTemp=function(){n.setState({modalVisible:!0,viewType:"edit"})},n.editKpiConfig=function(){n.props.dispatch(E.indiSetActions.updateKpiDataRequest(n.searchCond.kpisetId)),n.setState({viewType:"edit"})},n.delKpiSet=function(){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+n.state.kpiTreeName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(E.indiSetActions.deleteKpiSetRequest(n.searchCond.kpisetId)),new Promise((function(e){_.defer((function(){var t=setInterval((function(){n.props.deleteKpiSet.size>0&&(clearInterval(t),i.default.success("\u5220\u9664\u6210\u529f\uff01"),n.props.dispatch(E.indiSetActions.resetDeleteKpiSet()),n.props.dispatch(E.indiSetActions.getKpiDataListRequest({typeId:n.props.kpiTypeId,kpisetName:"",dsId:"",excludeDataType:"2"===n.props.selectedTypeId?["img","text"]:[]})),n.searchCond.kpisetId="",n.props.dispatch(T.dataSourceActions.clearDataKpiTypeList()),n.setState({kpiTreeName:""})),e()}),300)}))}))}})},n.setReviewStatus=function(e,t){n.setState({reviewStatus:e,reviewMessage:t})},n.submitModalOk=function(){"3"===n.props.kpiTypeId?n.defineKpiConfig.saveDefine():"2"===n.props.kpiTypeId&&"edit"===n.state.viewType?n.editDescTemplate.saveKpi():"edit"!==n.state.viewType?n.createKpiConfig.saveKpi():n.editKpiConfig.saveKpi()},n.state={kpiTreeName:"",modalVisible:!1,mapVisible:!1,viewType:"",_this:n,empty:!1,reviewStatus:"",reviewMessage:"",modalTitle:"\u76f4\u65b9\u56fe"},n.columns=[{title:R,dataIndex:"fieldClassCnName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:F,dataIndex:"fieldCnName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:O,dataIndex:"fieldUnit",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:V,dataIndex:"fieldDataFeature",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:U,dataIndex:"fieldSimple",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:B,dataIndex:"meanValue",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:G,dataIndex:"outlierValue",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:z,dataIndex:"outlierCount",ellipsis:!0,render:function(e,t){var a=(parseInt(e)/t.dataSize*100).toFixed(2)+"%";return(0,r.default)("span",{},void 0,null===e||""===e?"-":e,"/",null===e||""===e||""===t.dataSize||null===t.dataSize?"-":a)}},{title:q,dataIndex:"lostValue",ellipsis:!0,render:function(e,t){var a=(parseInt(e)/t.dataSize*100).toFixed(2)+"%";return(0,r.default)("span",{},void 0,null===e||""===e?"-":e,"/",null===e||""===e||""===t.dataSize||null===t.dataSize?"-":a)}},{title:K,dataIndex:"varianceValue",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:H,dataIndex:"lostValue2",width:"11%",render:function(e,t){return(0,r.default)("span",{style:{marginLeft:"\u540d\u79f0"!==t.fieldDataFeature?"18%":"35%"}},void 0,"\u540d\u79f0"!==t.fieldDataFeature?(0,r.default)(h.AreaChartOutlined,{onClick:function(){return n.onClickMap(t)}}):"-")}},{title:Y,dataIndex:"standardValue",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:W,dataIndex:"fieldCaliber",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}}];var o=n.props.resetFunc;return _.isFunction(o)&&o("kpiTypeReset",n.kpiTypeReset),n.searchCond={dsCycle:void 0!==a.urlSearchCond?a.urlSearchCond.dsCycle:"",kpiClass:"",kpiName:"",kpisetId:"",dsId:""},void 0!==a.urlSearchCond&&(n.props.dispatch(T.dataSourceActions.getDataCyclesListRequest({dsId:a.urlSearchCond.dsId,status:10})),n.props.dispatch(T.dataSourceActions.getDataKpiTypeListRequest({dsId:a.urlSearchCond.dsId,dsCycle:""}))),n}return(0,c.default)(t,e),t.getDerivedStateFromProps=function(e,t){return"edit"===t.viewType&&e.kpiUpdateData.size>0?{modalVisible:!0}:null},t.prototype.componentDidMount=function(){var e=""!==this.props.selectedTypeId?this.props.selectedTypeId:this.props.kpiTypeId;this.props.dispatch(E.indiSetActions.getKpiDataListRequest({typeId:e,kpisetName:"",dsId:"",excludeDataType:"2"===this.props.selectedTypeId?["img","text"]:[]}))},t.prototype.render=function(){var e=this,t=""!==this.props.diagramUrl&&null!==this.props.diagramUrl&&void 0!==this.props.diagramUrl?(0,y.wrapServiceUrl)(y.ServicePath.MODELING_SERVICE,this.props.diagramUrl):null,a=this.props.reviewResult?this.props.reviewResult.toJS():[];return(0,r.default)(L,{},void 0,(0,r.default)(g.ModalView,{modalTitle:this.state.modalTitle,closable:!0,width:"75%",centered:!0,callVisible:this.callMapVisible,modalVisible:this.state.mapVisible,comp:(0,r.default)("div",{style:{textAlign:"center"}},void 0,(0,r.default)(S.default,{src:[t,j.default]}))}),(0,r.default)(g.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?this.state.kpiTreeName:"3"===this.props.kpiTypeId?"":"\u65b0\u5efa\u6307\u6807\u96c6",submitModalOk:this.submitModalOk,onCancelType:!1,top:20,width:"3"===this.props.kpiTypeId?500:1200,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:"3"===this.props.kpiTypeId?(0,r.default)(v.default,{onRef:function(t){e.defineKpiConfig=t},fetchData:this.fetchData,kpisetName:this.state.kpiTreeName,viewType:this.state.viewType,closeKpiConfig:this.callVisible,kpiTypeId:this.props.kpiTypeId,kpisetId:this.searchCond.kpisetId,dsCycle:this.searchCond.dsCycle,dsId:this.searchCond.dsId}):"2"===this.props.kpiTypeId&&"edit"===this.state.viewType?(0,r.default)(b.default,{onRef:function(t){e.editDescTemplate=t},fetchData:this.fetchData,kpisetName:this.state.kpiTreeName,viewType:this.state.viewType,closeKpiConfig:this.callVisible,kpiTypeId:this.props.kpiTypeId,kpisetId:this.searchCond.kpisetId,dsCycle:this.searchCond.dsCycle,dsId:this.searchCond.dsId}):"edit"!==this.state.viewType?(0,r.default)(x.default,{onRef:function(t){e.createKpiConfig=t},fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible,kpiTypeId:this.props.kpiTypeId,kpisetId:this.searchCond.kpisetId,kpiUpdateData:this.props.kpiUpdateData.toJS()}):(0,r.default)(C.default,{onRef:function(t){e.editKpiConfig=t},fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible,kpiTypeId:this.props.kpiTypeId,kpisetId:this.searchCond.kpisetId,kpiUpdateData:this.props.kpiUpdateData.toJS()})},this.state.viewType),(0,r.default)(M.default,{urlSearchCond:this.props.urlSearchCond,reseturlSearchCond:this.props.reseturlSearchCond,dsId:void 0!==this.props.urlSearchCond?this.props.urlSearchCond.dsId:void 0,dsCycle:void 0!==this.props.urlSearchCond?this.props.urlSearchCond.dsCycle:void 0,openModalonClick:this.openKpiConfig,kpiTypeId:this.props.kpiTypeId,resetFunc:this.props.resetFunc,onChange:this.changeSearchCond,setKpiTreeName:this.setKpiTreeName}),(0,r.default)(A,{},void 0,(0,r.default)("div",{className:"kpiNameClass"},void 0,"1"!==this.props.kpiTypeId&&(0,r.default)(h.QuestionCircleOutlined,{className:"icon",title:"2"===this.props.kpiTypeId?"\u53ef\u5728\u7ebf\u4fee\u6539\u6216\u8005\u6279\u91cf\u66f4\u65b0\u6570\u636e\u7684\u63cf\u8ff0\u4fe1\u606f\uff0c\u5305\u62ec\u6307\u6807\u5206\u7c7b\u3001\u6307\u6807\u540d\u79f0\u3001\u5355\u4f4d\u3001\u6307\u6807\u53e3\u5f84\u4ee5\u53ca\u63cf\u8ff0":"3"===this.props.kpiTypeId?"\u5c06\u6a21\u578b\u6700\u7ec8\u4f7f\u7528\u7684\u6307\u6807\u4fdd\u5b58\u4e3a\u9884\u5b9a\u4e49\u6307\u6807\u96c6\uff0c\u7528\u4e8e\u540e\u7eed\u8bad\u7ec3\u65f6\u76f4\u63a5\u9009\u62e9":"\u5220\u9664\u3001\u7f16\u8f91\u6307\u6807\u96c6\u4e2d\u7684\u6307\u6807"}),-1!==_.indexOf(["1","4"],this.props.kpiTypeId)&&(0,r.default)(I.default,{permissions:["DATA_EXPLORER:UPDATE"],displayType:"hide"},void 0,(0,r.default)(o.default,{onClick:this.editKpiConfig,disabled:""===this.searchCond.kpisetId,width:"80",type:"primary"},void 0,"\u4fee\u6539")),-1!==_.indexOf(["1","4"],this.props.kpiTypeId)&&(0,r.default)(I.default,{permissions:["DATA_EXPLORER:DELETE"],displayType:"hide"},void 0,(0,r.default)(o.default,{type:"primary",onClick:this.delKpiSet,disabled:""===this.searchCond.kpisetId,width:"110",style:{marginLeft:16}},void 0,"\u5220 \u9664")),-1!==_.indexOf(["3"],this.props.kpiTypeId)&&(0,r.default)(o.default,{type:"primary",onClick:this.defineKpiSet,disabled:""===this.searchCond.kpisetId,width:"110"},void 0,"\u4fdd\u5b58\u4e3a\u9884\u5b9a\u4e49\u6307\u6807\u96c6"),-1!==_.indexOf(["2"],this.props.kpiTypeId)&&(0,r.default)(o.default,{type:"primary",onClick:this.editDescTemp,disabled:""===this.searchCond.kpisetId,width:"110"},void 0,"\u4fee\u6539\u6570\u636e\u63cf\u8ff0\u6a21\u677f")),(0,r.default)(k.default,{empty:this.state.empty,cyclesData:this.props.cyclesData,kpiTypeId:this.props.kpiTypeId,onChange:this.changeSearchCond,setReviewStatus:this.setReviewStatus}),(0,r.default)(N,{},void 0,0===this.state.reviewStatus?(0,r.default)("div",{style:{textAlign:"center",fontSize:12,margintop:10,height:440}},void 0,"\u6570\u636e\u5ba1\u67e5\u6267\u884c\u4e2d......."," "):9===this.state.reviewStatus?(0,r.default)("div",{style:{textAlign:"center",fontSize:12,margintop:10,height:440,marginTop:10}},void 0,""===this.state.reviewMessage||null===this.state.reviewMessage?"\u6570\u636e\u5ba1\u67e5\u5931\u8d25":this.state.reviewMessage):(0,r.default)("div",{style:{marginTop:this.props.loading?50:0}},void 0,this.props.loading&&J,!this.props.loading&&(0,r.default)(n.default,{dataSource:a,rowKey:"fieldId",bordered:!0,pagination:!1,columns:this.columns})))))},t}(p.default.PureComponent);t.default=(0,m.connect)((function(e){return{reviewResult:(0,w.selectReviewResult)(e),kpiUpdateData:(0,w.selectUpdateKpiData)(e),deleteKpiSet:(0,w.selectDeleteKpiSet)(e),cyclesData:(0,D.selectCyclesData)(e),loading:(0,w.selectReviewLoading)(e),diagramUrl:(0,w.selectDiagramMap)(e)}}))(Q)},"./src/module/dataMgr/dataExplore/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/input/index.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(a("./node_modules/immutable3/dist/immutable.js"),a("./src/redux/selectors/dataSource.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=i.default.Search,g=c.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"ceq3n9-0"})(["align-items:center;display:inline;.ant-input-search{width:130px !important;}.search-div{text-align:right;padding:8px 0px;height:60px;width:100%;border-radius:2px 2px 0 0;}"]),v=(0,n.default)("span",{},void 0,"\u5468\u671f\uff1a"),y=(0,n.default)("span",{},void 0,"\u6307\u6807\u5206\u7c7b\uff1a"),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){"kpiClass"===e&&n.setState({sortField:t}),_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.changeCyclesField=function(e,t){n.setState({dsCycle:e}),""!==e&&n.props.setReviewStatus(t.props.dsCycle.reviewStatus,t.props.dsCycle.reviewMessage),n.props.onChange("dsCycle",e)},n.doSearch=function(e){n.setState({queryName:e}),n.props.onChange("kpiName,dsCycle",[e,n.state.dsCycle])},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.onChangeName=function(e){n.setState({queryName:e.target.value})},n.state={_this:n,dsCycle:"",queryName:"",sortField:"",cyclesDatas:[]},n.changeSortField=n.changeSelect("kpiClass"),n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(e,t){if(e.empty&&0===e.cyclesData.size)return{queryName:"",sortField:"",dsCycle:""};if(e.cyclesData.size>0){var a=e.cyclesData.toJS();return JSON.stringify(t.cyclesDatas.sort())!==JSON.stringify(e.cyclesData.toJS().sort())&&(t._this.props.setReviewStatus(a[0].reviewStatus,a[0].reviewMessage),t._this.props.onChange("dsCycle",a[0].dsCycle)),{dsCycle:a[0].dsCycle,cyclesDatas:a}}return{dsCycle:""}},t.prototype.render=function(){var e=this,t=this.props.cyclesData.size>0?this.props.cyclesData.toJS():[],a=void 0!==this.props.kpiType?this.props.kpiType.toJS():[];return(0,n.default)(g,{className:"search-bar"},void 0,(0,n.default)("div",{className:"search-div"},void 0,-1!=_.indexOf(["2","3"],this.props.kpiTypeId)&&v,-1!=_.indexOf(["2","3"],this.props.kpiTypeId)&&(0,n.default)(d.default,{onChange:function(t,a){e.changeCyclesField(t,a)},getPopupContainer:function(e){return e.parentNode},style:{width:"130px",marginRight:"16px"},placeholder:"\u9009\u62e9\u6307\u6807\u5468\u671f",className:"sort-cond",value:this.state.dsCycle},void 0,t.map((function(e){return(0,n.default)(m,{title:e.dsCycle,dsCycle:e,value:e.dsCycle},e.id+_.uniqueId(),null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")}))),y,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:{width:"130px",marginRight:"16px"},placeholder:"\u9009\u62e9\u6307\u6807\u5206\u7c7b",value:this.state.sortField},void 0,(0,n.default)(m,{value:"",style:{textAlign:"left"}},void 0,"\u9009\u62e9\u6307\u6807\u5206\u7c7b"),a.map((function(e){return e&&(0,n.default)(m,{style:{textAlign:"left"},title:e.dsCycle,value:e},_.uniqueId(),e)}))),(0,n.default)(h,{onChange:this.onChangeName,style:{width:"200px"},value:this.state.queryName,placeholder:"\u8bf7\u8f93\u5165\u6307\u6807\u540d\u79f0",onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(e){return{kpiType:(0,p.selectDatasKpiType)(e)}}))(b)},"./src/module/dataMgr/dataExplore/component/SelectedIndi.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.IndiConfig=t.SelectedIndiDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),l=a("./node_modules/@ant-design/icons/es/index.js"),u=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=t.SelectedIndiDom=u.default.div.withConfig({displayName:"SelectedIndi__SelectedIndiDom",componentId:"moe7ij-0"})(["margin-top:20px;padding-left:2.3%;width:95%;display:inline-table;max-height:400px;overflow-y:auto;min-height:50px;h1{font-weight:600;font-size:14px;color:#475669;letter-spacing:0;}h2{font-size:14px;color:#a2b0c4;text-align:center;}"]),f=t.IndiConfig=u.default.div.withConfig({displayName:"SelectedIndi__IndiConfig",componentId:"moe7ij-1"})(["display:grid;margin-top:20px;width:100%;.fieldName{float:left;min-width:48px;}ul{padding-left:10px;float:left;width:90%;list-style-type:none;li{&:hover{background:#a2b0c4;.icon{float:right;margin-top:4px;margin-right:3px;font-size:11px;color:#fff;cursor:pointer;}}text-align:center;background:#e5e9f2;border-radius:4px;width:80px;height:20px;margin:0px 0px 10px 15px;float:left;span{font-size:11px;color:#395377;letter-spacing:1px;}&.icon{float:right;margin-top:4px;margin-right:3px;font-size:11px;color:#395377;cursor:pointer;}}}"]),m=(0,n.default)("div",{},void 0,(0,n.default)("h2",{},void 0,"\u672a\u9009\u62e9\u6307\u6807")),h=(0,n.default)("h1",{},void 0,"\u5df2\u9009\u6307\u6807"),g=function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));return r.delSelectedIndi=function(e){r.props.onChange(e,"del")},r.renderSelectedIndi=function(){for(var e=[],t={},a=r.props.selectedIndiData,o=r.props.kpiType.toJS(),s=0;s<o.length;s++)for(var i=0;i<a.length;i++)if(o[s]===a[i].fieldClassCnName){t={fieldClassCnName:a[i].fieldClassCnName,indiData:[]},e.push(t);break}for(var d=0;d<a.length;d++){for(var u=!1,c=0;c<e.length;c++)if(e[c].fieldClassCnName===a[d].fieldClassCnName){t={fieldId:a[d].fieldId,fieldCnName:a[d].fieldCnName},e[c].indiData.push(t),u=!0;break}u||(t={fieldClassCnName:a[d].fieldClassCnName,indiData:[{fieldId:a[d].fieldId,fieldCnName:a[d].fieldCnName}]},e.push(t))}return e.length>0?(0,n.default)(f,{},void 0,e.map((function(e,t){return(0,n.default)("div",{style:{height:"auto",width:"auto"}},t,(0,n.default)("div",{className:"fieldName"},void 0,r.substringTxt(e.fieldClassCnName)),(0,n.default)("ul",{},void 0,e.indiData.map((function(e,t){return(0,n.default)("li",{},t,(0,n.default)("span",{title:e.fieldCnName},void 0,e.fieldCnName.length>4?e.fieldCnName.substring(0,4)+"..":e.fieldCnName),(0,n.default)(l.CloseOutlined,{style:r.props.disabled?{cursor:"not-allowed"}:{},onClick:function(){return r.props.disabled?"":r.delSelectedIndi(e.fieldId)},title:"\u5220\u9664",className:"icon"}))}))))}))):m},r.state={},r}return(0,r.default)(t,e),t.prototype.substringTxt=function(e){if(e&&e.length>5){var t=e.substring(0,4)+"..";return(0,n.default)("span",{title:e},void 0,t)}return(0,n.default)("span",{},void 0,e)},t.prototype.render=function(){return(0,n.default)(p,{},void 0,h,this.renderSelectedIndi())},t}(i.default.Component);t.default=(0,d.connect)((function(){return{}}))(g)},"./src/module/dataMgr/dataExplore/util/formatData.js":function(e,t,a){"use strict";t.__esModule=!0,t.serviceDataFormat=function(e,t){for(var a=["fieldClassCnName","fieldCnName","fieldUnit","fieldCaliber","fieldDesc"],n=[],o=0;o<t.length;o++){for(var s=t[o],r=0;r<e.length;r++)if(t[o].fieldId===e[r].fieldId||t[o].fieldEnName===e[r].fieldEnName){for(var i="",d=0;d<a.length;d++)t[o][a[d]]!==e[r][a[d]]&&(s[a[d]]=e[r][a[d]],i+=a[d]+"");s.isUpdata=i;break}n.push(s)}return n};t.default=[]},"./src/module/dataMgr/dataSource/dataSourceEdit/CreateDataSourcePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.CreateDataSourceConfigPage=void 0;var n=T(a("./node_modules/antd/es/button/index.js")),o=T(a("./node_modules/antd/es/message/index.js")),s=T(a("./node_modules/babel-runtime/helpers/jsx.js")),r=T(a("./node_modules/antd/es/notification/index.js")),i=T(a("./node_modules/antd/es/modal/index.js")),d=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=T(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=T(a("./node_modules/react/index.js")),p=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=a("./src/redux/reducers/indiSet.js"),m=T(a("./node_modules/lodash/lodash.js")),h=(T(a("./node_modules/prop-types/index.js")),a("./src/components/auth/textAuth.jsx")),g=a("./src/utils/history.js"),v=a("./src/components/index.js"),_=a("./src/routes/routeHelper.jsx"),y=a("./src/redux/reducers/dataSource.js"),b=a("./src/redux/selectors/dataSource.js"),x=a("./src/module/dataMgr/dataSource/util/formatData.js"),C=a("./node_modules/@ant-design/icons/es/index.js"),j=a("./node_modules/react-redux/es/index.js"),S=a("./src/module/dataMgr/dataSource/dataSourceEdit/components/index.js"),I=T(a("./src/module/dataMgr/dataSource/dataSourceEditAdvanced/AdvancedConfig.jsx"));function T(e){return e&&e.__esModule?e:{default:e}}var w=t.CreateDataSourceConfigPage=p.default.div.withConfig({displayName:"CreateDataSourcePage__CreateDataSourceConfigPage",componentId:"sc-1jf6yql-0"})(["overflow-x:hidden;display:flex;flex-direction:column;background-color:#ffff;margin:0 auto;border:0px;height:auto;width:100%;"]),E=t.ConfigButtonDom=p.default.div.withConfig({displayName:"CreateDataSourcePage__ConfigButtonDom",componentId:"sc-1jf6yql-1"})(["text-align:right;width:79%;margin-left:0;padding-top:9px;padding-bottom:34px;margin-top:5px;padding-right:16px;height:50px;position:fixed;bottom:50px;right:32px;"]),D=t.ErrorUl=p.default.ul.withConfig({displayName:"CreateDataSourcePage__ErrorUl",componentId:"sc-1jf6yql-2"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),M={width:"100%"},k=(0,s.default)(v.LoadingIndicator,{position:"relative"}),P=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.formatInt=function(e){try{return parseInt(e)}catch(e){return 0}},n.clearValidateAdvancedFuncs=function(e){"db"===e?(delete n.validateFuncs.fileConfig,delete n.validateFuncs.ftpConfig):"file"===e?(delete n.validateFuncs.dataBaseConfig,delete n.validateFuncs.ftpConfig):"ftp"===e&&(delete n.validateFuncs.dataBaseConfig,delete n.validateFuncs.fileConfig)},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.setPreviewFunc=function(e,t){n.previewFuncs[e]=t},n.cancel=function(){(0,g.navigateTo)(_.dataMgrUrl.datasourceMgr())},n.getModelData=function(e,t){"defineInfo"===e?n.moduleData.metaDataTemplate=t:"cycleInfo"===e?n.setState({cycleInfoRadioValue:t}):"dsType"===e?n.setState({dsType:t}):"dataType"===e?n.dataType=t:"dacp"===e&&n.setState({dbType:t})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.getDataTitleView=function(e){for(var t="",a=1===n.moduleData.dsConf.fileHeaderFlag||"db"===n.moduleData.dataType?e.headers:e.headersByIndex,o=0;o<a.length;o++)for(var s in a[o])t+=a[o][s]+",";return t.substring(0,t.length-1)},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),"add"===n.viewType&&n.appId&&""!==n.appId&&(n.moduleData.appId=n.appId),n.props.dispatch(y.dataSourceActions.saveDataSourceRequest({subType:n.viewType,modelConfig:JSON.stringify(n.moduleData)}))},n.save=function(){n.moduleData.dataTitleView=n.getDataTitleView(n.props.dbPreviewData.toJS()),n.setState({confirmLoading:!1,modalVisible:!0})},n.seletcPreviewData=function(){Object.keys(n.previewFuncs).map((function(e){if(e===n.dataType){var t=n.previewFuncs[e];m.default.isFunction(t)&&t.call()}}))},n.getPreviewData=function(e,t){if("db"===n.moduleData.dataType){var a=n.moduleData.dsConf.tableName;n.moduleData.dsConf.cycleMask&&(0,x.validatCycleTable)(n.moduleData.dsConf.tableName,n.moduleData.dsConf.cycleMask)&&(a=(0,x.getCycleTable)(n.moduleData.dsConf.tableName,n.moduleData.dsConf.cycleMask));var o=(0,x.getCycleTable)(n.moduleData.dsConf.sqlSentence,n.moduleData.dsConf.cycleMask),s=m.default.defaultTo(m.default.get(n.moduleData,"dsConf.cycleMask"),"");n.props.dispatch(y.dataSourceActions.getDbPreviewDataRequest({dataTitleView:t,type:n.moduleData.dsConf.type,dbId:n.moduleData.dsConf.dbId,tableName:a,cycleMask:s.split("@").length>1?s.split("@")[0]:s,sqlSentence:o,descFlag:"dacp"===n.state.dbType?"1":"",metaTplPath:1!==n.state.step&&void 0!==n.moduleData.metaDataTemplate&&void 0!==e?n.moduleData.metaDataTemplate.templatePath:""}))}else"file"===n.moduleData.dataType?n.props.dispatch(y.dataSourceActions.getFilePreviewDataRequest(t?{dataTitleView:t||"",type:t?n.moduleData.dsConf.type:"",filePath:n.moduleData.dsConf.filePath,fileSplitChar:n.moduleData.dsConf.fileSplitChar,fileheaderFlag:n.moduleData.dsConf.fileHeaderFlag,metaTplPath:1!==n.state.step&&void 0!==n.moduleData.metaDataTemplate?n.moduleData.metaDataTemplate.templatePath:""}:{type:t?n.moduleData.dsConf.type:"",filePath:n.moduleData.dsConf.filePath,fileSplitChar:n.moduleData.dsConf.fileSplitChar,fileheaderFlag:n.moduleData.dsConf.fileHeaderFlag,metaTplPath:1!==n.state.step&&void 0!==n.moduleData.metaDataTemplate?n.moduleData.metaDataTemplate.templatePath:""})):"ftp"===n.moduleData.dataType&&n.props.dispatch(y.dataSourceActions.getFtpPreviewDataRequest({dataTitleView:t,type:n.moduleData.dsConf.type,ftpFileName:n.moduleData.dsConf.ftpFileName,ftpId:n.moduleData.dsConf.ftpId,filePath:n.moduleData.dsConf.filePath,fileSplitChar:n.moduleData.dsConf.fileSplitChar,fileheaderFlag:n.moduleData.dsConf.fileHeaderFlag,metaTplPath:1!==n.state.step&&void 0!==n.moduleData.metaDataTemplate?n.moduleData.metaDataTemplate.templatePath:""}))},n.back=function(){n.setState({step:1},n.getPreviewData)},n.next=function(){return n.seletcPreviewData(),new Promise((function(e){m.default.defer((function(){var t=setInterval((function(){if(!1===n.props.dbPreviewLoading){clearInterval(t);var a=n.props.dbPreviewData.toJS();if(a.data&&a.data.length>0){var d=["dataBaseConfig","fileConfig","ftpConfig"],l={},u={},c="";if(Object.keys(n.validateFuncs).map((function(e){var t=n.validateFuncs[e];if(m.default.isFunction(t)){var a=t.call();if(a.validate?l[e]=a.moduleData:a.validate||-1!==m.default.indexOf(d,e)||(u[e]=a.errorMsg),-1!==m.default.indexOf(d,e))if(a.validate)l[e]=a.moduleData,c=a.moduleData.extractRows;else for(var o in a.moduleData.errorMsg)u[o]=a.moduleData.errorMsg[o]}})),(0,h.hasText)("root.datasource.extractRow")+""!=="-1"&&parseInt(c)>=n.formatInt((0,h.hasText)("root.datasource.extractRow"))&&parseInt(c)<n.formatInt((0,h.hasText)("root.datasource.maxExtractRow"))){var p=n;i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:n.formatInt((0,h.hasText)("root.datasource.extractRow"))>9999?"\u5efa\u8bae\u6570\u636e\u6761\u6570\u63a7\u5236\u5728"+Math.floor(n.formatInt((0,h.hasText)("root.datasource.extractRow"))/1e4)+"\u4e07\u6761\u4ee5\u5185":"\u5efa\u8bae\u6570\u636e\u6761\u6570\u63a7\u5236\u5728"+n.formatInt((0,h.hasText)("root.datasource.extractRow"))+"\u6761\u4ee5\u5185",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){if("{}"!==JSON.stringify(u)){var e=p.errorDom(u);r.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:e,icon:(0,s.default)(C.FrownOutlined,{style:{color:"#f5222d"}})})}else p.moduleData=(0,x.serviceDataFormat)(l),"add"!==p.viewType&&(p.moduleData.dsId=p.props.dataSourceInfo.dsId),p.setState({step:2})},onCancel:function(){}})}else if("{}"!==JSON.stringify(u)){var f=n.errorDom(u);r.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:f,icon:(0,s.default)(C.FrownOutlined,{style:{color:"#f5222d"}})})}else n.moduleData=(0,x.serviceDataFormat)(l),"add"!==n.viewType&&(n.moduleData.dsId=n.props.dataSourceInfo.dsId),n.setState({step:2})}else"db"===n.dataType&&o.default.error(a.message?a.message:"\u672a\u67e5\u8be2\u5230\u6765\u6e90\u6570\u636e");e()}}),300)}))}))},n.errorDom=function(e){return(0,s.default)(D,{},void 0,Object.keys(e).map((function(t){return(0,s.default)("li",{},t,e[t])})))},n.params=(0,g.parseParms)(a.location),n.viewType=m.default.get(a.match,"params.action","add"),n.appId=m.default.get(a.match,"params.appId",null),n.dsId=m.default.get(a.match,"params.dsId",null),n.dataType="db",n.validateFuncs={},n.previewFuncs={},n.moduleData={},n.state={cycleInfoRadioValue:0,modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,moduleDisabled:"view"===n.viewType,step:1,dbType:"",dsType:"train",dataSourceInfo:null},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(y.dataSourceActions.getDataSourceInfoRequest({dsId:this.dsId}))},t.getDerivedStateFromProps=function(e,t){if(0===e.saveDataSourceData.size&&e.dataSourceInfo&&!m.default.isEqual(e.dataSourceInfo,t.dataSourceInfo))return{dataSourceInfo:e.dataSourceInfo,dsType:void 0!==e.dataSourceInfo?e.dataSourceInfo.dsType:"train",cycleInfoRadioValue:""!==e.dataSourceInfo.cronType?2:1};if(0!==e.saveDataSourceData.size){var a=e.saveDataSourceData.toJS();if("{}"!==JSON.stringify(a)&&-1!==a.code){e.dispatch(y.dataSourceActions.resetSaveDataSource());var n="add"===m.default.get(e.match,"params.action","add")?"\u521b\u5efa\u6210\u529f!":"\u4fee\u6539\u6210\u529f!";o.default.success(n),e.dispatch(f.indiSetActions.resetUpdateKpiData()),(0,g.navigateTo)(_.dataMgrUrl.datasourceMgr())}else e.dispatch(y.dataSourceActions.resetSaveDataSource()),i.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"});return{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1}}return null},t.prototype.render=function(){var e,t=this;return(0,s.default)(w,{},void 0,(0,s.default)(i.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",confirmLoading:this.state.confirmLoading,cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,onCancel:this.submitModalCancel},void 0,(0,s.default)("p",{},void 0,this.state.modalTxt)),this.props.datasSourcesInfoLoading&&"add"!==this.viewType&&(0,s.default)("div",{style:{height:600}},void 0,k),(!this.props.datasSourcesInfoLoading&&this.props.dataSourceInfo||"add"===this.viewType)&&(0,s.default)("div",{},void 0,(0,s.default)("div",{style:{margin:16,overflow:"auto",display:1!==this.state.step?"none":""}},void 0,(0,s.default)(v.ModelConfigPanel,{title:"\u6570\u636e\u96c6\u540d\u79f0",sign:!0,style:M},void 0,(0,s.default)(S.DataSourceInfo,{dataSourceInfo:this.props.dataSourceInfo?this.props.dataSourceInfo:void 0,viewType:this.viewType,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc})),(0,s.default)(v.ModelConfigPanel,{title:"\u9009\u62e9\u6765\u6e90",style:M},void 0,(0,s.default)(I.default,{dsType:this.state.dsType,clearValidateAdvancedFuncs:this.clearValidateAdvancedFuncs,dataSourceInfo:this.props.dataSourceInfo?this.props.dataSourceInfo:void 0,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,viewType:this.viewType,setValidateFunc:this.setValidateFunc,setPreviewFunc:this.setPreviewFunc})),(0,s.default)(v.ModelConfigPanel,{title:"\u6267\u884c\u5468\u671f",style:M},void 0,(0,s.default)(S.CycleInfo,{dataSourceInfo:this.props.dataSourceInfo?this.props.dataSourceInfo:void 0,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,viewType:this.viewType,setValidateFunc:this.setValidateFunc}))),1===this.state.step?"":(0,s.default)("div",{style:{margin:16,overflow:"auto"}},void 0,(0,s.default)(v.ModelConfigPanel,{title:"\u81ea\u5b9a\u4e49\u6570\u636e\u63cf\u8ff0\u6a21\u677f",style:M},void 0,(0,s.default)(S.DefineInfo,{dbType:this.state.dbType,getPreviewData:this.getPreviewData,modelData:this.moduleData,dataSourceInfo:this.props.dataSourceInfo?this.props.dataSourceInfo:void 0,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,viewType:this.viewType,setValidateFunc:this.setValidateFunc}))),(0,s.default)(E,{},void 0,(0,s.default)(n.default,{onClick:function(){return t.cancel()}},void 0,"\u53d6\u6d88"),(0,s.default)(n.default,{onClick:function(){return t.back()},style:{display:1===this.state.step?"none":"",marginLeft:"10px"}},void 0,"\u4e0a\u4e00\u6b65"),(0,s.default)(n.default,{onClick:function(){return t.seletcPreviewData()},style:(e={display:1!==this.state.step?"none":"",marginLeft:"10px"},e.display="none",e)},void 0,"\u9884\u89c8"),(0,s.default)(n.default,{type:"primary",onClick:function(){return 1===t.state.step?t.next():t.save()},style:{marginLeft:"10px"}},void 0,1===this.state.step?"\u4e0b\u4e00\u6b65":"\u4fdd\u5b58"))))},t}(c.default.PureComponent);t.default=(0,j.connect)((function(e){return{dbPreviewError:(0,b.selectDbPreviewError)(e),dbPreviewData:(0,b.selectDbPreviewDataList)(e),saveDataSourceData:(0,b.selectSaveDataSource)(e),dbPreviewLoading:(0,b.selectDbPreviewDataListLoading)(e),dataSourceInfo:(0,b.selectDatasSourcesInfo)(e),datasSourcesInfoLoading:(0,b.selectDatasSourcesInfoLoading)(e)}}))(P)},"./src/module/dataMgr/dataSource/dataSourceEdit/CreateFileSourcePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.CreateDataSourceConfigPage=void 0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/antd/es/modal/index.js")),s=I(a("./node_modules/antd/es/list/index.js")),r=I(a("./node_modules/antd/es/message/index.js")),i=I(a("./node_modules/babel-runtime/helpers/jsx.js")),d=I(a("./node_modules/antd/es/notification/index.js")),l=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=I(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/list/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js");var p=I(a("./node_modules/react/index.js")),f=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=I(a("./node_modules/lodash/lodash.js")),h=(I(a("./node_modules/prop-types/index.js")),a("./src/utils/history.js")),g=a("./src/routes/routeHelper.jsx"),v=a("./src/redux/reducers/dataSource.js"),_=a("./src/redux/selectors/dataSource.js"),y=a("./src/module/dataMgr/dataSource/util/formatData.js"),b=a("./node_modules/@ant-design/icons/es/index.js"),x=a("./node_modules/react-redux/es/index.js"),C=a("./src/components/index.js"),j=a("./src/module/dataMgr/dataSource/dataSourceEdit/components/index.js"),S=I(a("./src/module/dataMgr/dataSource/picPreview/PicturePreviewPage.jsx"));function I(e){return e&&e.__esModule?e:{default:e}}var T=t.CreateDataSourceConfigPage=f.default.div.withConfig({displayName:"CreateFileSourcePage__CreateDataSourceConfigPage",componentId:"sc-1lkf547-0"})(["overflow-x:hidden;display:flex;flex-direction:column;background-color:#ffff;margin:auto;border:0px;height:105%;width:100%;"]),w=t.ConfigButtonDom=f.default.div.withConfig({displayName:"CreateFileSourcePage__ConfigButtonDom",componentId:"sc-1lkf547-1"})(["text-align:right;width:79%;margin-left:0;padding-top:9px;padding-bottom:34px;margin-top:5px;padding-right:16px;height:50px;position:fixed;bottom:75px;right:32px;"]),E=t.ErrorUl=f.default.ul.withConfig({displayName:"CreateFileSourcePage__ErrorUl",componentId:"sc-1lkf547-2"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),D={width:"100%"},M=(0,i.default)(C.LoadingIndicator,{}),k=(0,i.default)(C.NoData,{}),P=(0,i.default)(C.LoadingIndicator,{position:"relative"}),L=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.handelPreviewPic=function(e,t){n.setState({previewPic:!0,ftpId:e,filePath:t})},n.handelCancelPreview=function(){n.setState({previewPic:!1})},n.openTextDir=function(e,t){n.props.dispatch(v.dataSourceActions.getFileContentDataRequest({filePath:e,ftpId:t})),n.setState({openTextVisible:!0})},n.closeTextDir=function(){n.props.dispatch(v.dataSourceActions.resetFileContentData()),n.setState({openTextVisible:!1})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.setPreviewFunc=function(e,t){n.previewFuncs[e]=t},n.cancel=function(){(0,h.navigateTo)(g.dataMgrUrl.datasourceMgr())},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),"add"===n.viewType&&n.appId&&""!==n.appId&&(n.moduleData.appId=n.appId),n.props.dispatch(v.dataSourceActions.saveDataSourceRequest({subType:n.viewType,modelConfig:JSON.stringify(n.moduleData)}))},n.save=function(){var e=["dataBaseConfig","fileConfig","ftpConfig"],t={},a={};if(Object.keys(n.validateFuncs).map((function(o){var s=n.validateFuncs[o];if(m.default.isFunction(s)){var r=s.call();if(r.validate?t[o]=r.moduleData:r.validate||-1!==m.default.indexOf(e,o)||(a[o]=r.errorMsg),-1!==m.default.indexOf(e,o))if(r.validate)t[o]=r.moduleData;else for(var i in r.moduleData.errorMsg)a[i]=r.moduleData.errorMsg[i]}})),"{}"!==JSON.stringify(a)){var o=n.errorDom(a);d.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:o,icon:(0,i.default)(b.FrownOutlined,{style:{color:"#f5222d"}})})}else"img"===n.state.nsType?n.moduleData=(0,y.serviceFtpImgDataFormat)(t):"text"===n.state.nsType?n.moduleData=(0,y.serviceFtpFileDataFormat)(t):"audio"!==n.state.nsType&&"video"!==n.state.nsType||(n.moduleData=(0,y.serviceFtpAudioDataFormat)(t,n.state.nsType)),"add"!==n.viewType&&(n.moduleData.dsId=n.props.dataSourceInfo.dsId),n.setState({confirmLoading:!1,modalVisible:!0})},n.errorDom=function(e){return(0,i.default)(E,{},void 0,Object.keys(e).map((function(t){return(0,i.default)("li",{},t,e[t])})))},n.onChangeNsType=function(e){n.setState({nsType:e})},n.params=(0,h.parseParms)(a.location),n.viewType=m.default.get(a.match,"params.action","add"),n.appId=m.default.get(a.match,"params.appId",null),n.dsId=m.default.get(a.match,"params.dsId",null),n.state={cycleInfoRadioValue:0,modalVisible:!1,openTextVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,moduleDisabled:"view"===a.viewType,previewPic:!1,ftpId:"",filePath:"",nsType:"text",dataSourceInfo:null},n.ftpImgInfo={},n.validateFuncs={},n.previewFuncs={},n.moduleData={},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(v.dataSourceActions.getDataSourceInfoRequest({dsId:this.dsId}))},t.getDerivedStateFromProps=function(e,t){if(0===e.saveDataSourceData.size&&e.dataSourceInfo&&!m.default.isEqual(e.dataSourceInfo,t.dataSourceInfo))return{dataSourceInfo:e.dataSourceInfo,nsType:e.dataSourceInfo&&e.dataSourceInfo.dataType?e.dataSourceInfo.dataType:"text",cycleInfoRadioValue:""!==e.dataSourceInfo.cronType?2:1};if(0!==e.saveDataSourceData.size){var a=e.saveDataSourceData.toJS();if("{}"!==JSON.stringify(a)&&-1!==a.code){e.dispatch(v.dataSourceActions.resetSaveDataSource());var n="add"===m.default.get(e.match,"params.action","add")?"\u521b\u5efa\u6210\u529f!":"\u4fee\u6539\u6210\u529f!";r.default.success(n),(0,h.navigateTo)(g.dataMgrUrl.datasourceMgr())}return{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1}}return null},t.prototype.render=function(){var e=this,t=this.props.fileContentData.size>0?this.props.fileContentData.toJS():[];return(0,i.default)(T,{},void 0,(0,i.default)(C.ModalView,{viewType:"view",closable:!1,onCancelType:!1,width:500,callVisible:this.closeTextDir,modalVisible:this.state.openTextVisible,comp:(0,i.default)("div",{style:{height:200,overflowX:"auto"}},void 0,this.props.loading&&M,!this.props.loading&&m.default.isEmpty(t)&&k,!this.props.loading&&(0,i.default)(s.default,{size:"small",dataSource:t,renderItem:function(e){return(0,i.default)(List.Item,{},void 0,e)}}))}),(0,i.default)(o.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",confirmLoading:this.state.confirmLoading,cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,onCancel:this.submitModalCancel},void 0,(0,i.default)("p",{},void 0,this.state.modalTxt)),this.props.datasSourcesInfoLoading&&"add"!==this.viewType&&(0,i.default)("div",{style:{height:600}},void 0,P),(!this.props.datasSourcesInfoLoading&&this.props.dataSourceInfo||"add"===this.viewType)&&(0,i.default)("div",{},void 0,(0,i.default)("div",{style:{margin:16}},void 0,(0,i.default)(C.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:D},void 0,(0,i.default)(j.DataSourceInfo,{dataSourceInfo:this.props.dataSourceInfo,viewType:this.viewType,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc,type:"nsAll",onChangeNsType:this.onChangeNsType})),(0,i.default)(C.ModelConfigPanel,{title:"\u9009\u62e9\u6765\u6e90",style:D},void 0,(0,i.default)(j.FtpFileInfo,{dataSourceInfo:this.props.dataSourceInfo,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,viewType:this.viewType,setValidateFunc:this.setValidateFunc,onPreviewPic:this.handelPreviewPic,type:this.state.nsType})),(0,i.default)(C.ModelConfigPanel,{title:"\u6267\u884c\u5468\u671f",style:D},void 0,(0,i.default)(j.NsCycleInfo,{dataSourceInfo:this.props.dataSourceInfo,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,viewType:this.viewType,setValidateFunc:this.setValidateFunc}))),(0,i.default)(w,{},void 0,(0,i.default)(n.default,{onClick:function(){return e.cancel()}},void 0,"\u53d6\u6d88"),(0,i.default)(n.default,{style:{marginLeft:"10px"},onClick:this.save,type:"primary"},void 0,"\u4fdd\u5b58")),this.state.previewPic&&(0,i.default)(S.default,{openTextDir:function(t,a){return e.openTextDir(t,a)},fileType:2,ftpId:this.state.ftpId,filePath:this.state.filePath,onClosePreview:this.handelCancelPreview})))},t}(p.default.PureComponent);t.default=(0,x.connect)((function(e){return{dbPreviewError:(0,_.selectDbPreviewError)(e),dbPreviewData:(0,_.selectDbPreviewDataList)(e),saveDataSourceData:(0,_.selectSaveDataSource)(e),dbPreviewLoading:(0,_.selectDbPreviewDataListLoading)(e),fileContentData:(0,_.selectFileContentData)(e),loading:(0,_.selectFileContentDataLoading)(e),dataSourceInfo:(0,_.selectDatasSourcesInfo)(e),datasSourcesInfoLoading:(0,_.selectDatasSourcesInfoLoading)(e)}}))(L)},"./src/module/dataMgr/dataSource/dataSourceEdit/components/CycleInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CycleInfoPage=void 0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/select/index.js")),d=m(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var l=m(a("./node_modules/react/index.js")),u=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var p=a("./node_modules/react-redux/es/index.js"),f=a("./src/utils/dateUtil.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=c.Form.Item,g=d.default.Group,v=i.default.Option,y=(t.CycleInfoPage=u.default.div.withConfig({displayName:"CycleInfo__CycleInfoPage",componentId:"qjj10h-0"})([""]),(0,n.default)(d.default,{value:""},void 0,"\u53ea\u6267\u884c\u4e00\u6b21\uff0c\u4e0b\u6b21\u624b\u52a8\u6267\u884c")),b=(0,n.default)(v,{value:""},void 0,"\u8bf7\u9009\u62e9"),x=(0,n.default)(v,{value:"2"},void 0,"\u6bcf\u6708"),C=(0,n.default)(v,{value:"3"},void 0,"\u6bcf\u5468"),j=(0,n.default)(v,{value:"4"},void 0,"\u6bcf\u5929"),S=(0,n.default)(v,{value:""},void 0,"\u8bf7\u9009\u62e9"),I=(0,n.default)(v,{value:""},void 0,"\u8bf7\u9009\u62e9\u5c0f\u65f6"),T=(0,n.default)(v,{value:""},void 0,"\u8bf7\u9009\u62e9\u5206\u949f"),w=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.componentDidMount=function(){if(void 0===n.props.dataSourceInfo)n.setState({radioValue:"",cycle:"",data:"",time:"",minute:"",dateArray:[],timeArry:[],minuteArry:[],check:!1});else if("add"!==n.props.viewType){var e=(0,f.cronFormatData)(n.props.dataSourceInfo.cronType,n.props.dataSourceInfo.cronTrigger),t=n.getCycleData(n.props.dataSourceInfo.cronType),a=n.getTimeData(),o=n.getMinuteArry(),s=n.props.dataSourceInfo.cronType;n.modelData.cronType=s,n.modelData.cronTrigger=n.props.dataSourceInfo.cronTrigger,"4"===n.props.dataSourceInfo.cronType?n.setState({minuteArry:o,timeArry:a,cycle:null===s||""===s?"":s,data:void 0!==e.data?e.data:"",time:void 0!==e.time?e.time:"",minute:void 0!==e.minute?e.minute:"",check:""!==s,radioValue:""!==s?2:""}):n.setState({minuteArry:o,dateArray:t,timeArry:a,cycle:null===s||""===s?"":s,data:void 0!==e.data?e.data:"",time:void 0!==e.time?e.time:"",minute:void 0!==e.minute?e.minute:"",check:!!s,radioValue:""!==s?2:""})}},n.timeChange=function(e){var t=n.getMinuteArry();n.setState({time:e,minuteArry:t})},n.minuteChange=function(e){n.setState({minute:e})},n.dataChange=function(e){var t=n.getTimeData(),a=n.getMinuteArry();n.setState({timeArry:t,minuteArry:a,data:e})},n.getMinuteArry=function(){for(var e=[],t=0;t<=59;t++)e.push({id:t.toString(),val:0===t?"00\u5206":t>9?t+"\u5206":"0"+t+"\u5206"});return e},n.getTimeData=function(){for(var e=[],t=0;t<=23;t++)e.push({id:t.toString(),val:0===t?"00\u65f6":t>9?t+"\u65f6":"0"+t+"\u65f6"});return e},n.getCycleData=function(e){for(var t="1"===e?12:"2"===e?31:"3"===e?7:24,a=[],o=0;o<t;o++){var s=o+1;a.push({id:s.toString(),val:"3"===e?"\u661f\u671f"+n.sectionToChinese(s):s+("1"===e?"\u6708":"2"===e?"\u53f7":" : 00")})}if("3"===e){var r=a[0];delete a[0],a.push(r)}return a},n.handleChange=function(e){if(n.modelData.cronType=e,"4"===e){var t=n.getTimeData();n.setState({timeArry:t,cycle:e,data:"",time:"",minute:""}),n.props.form.setFieldsValue({data:"",time:"",minute:""})}else{var a=n.getCycleData(e);n.setState({timeArry:[],dateArray:a,cycle:e,data:"",time:"",minute:""}),n.props.form.setFieldsValue({data:"",time:"",minute:""})}},n.sectionToChinese=function(e){return{2:"\u4e00",3:"\u4e8c",4:"\u4e09",5:"\u56db",6:"\u4e94",7:"\u516d",1:"\u5929"}[e]},n.onChangeRadio=function(e){var t=e.target.value;""!==t&&3!==t||(n.setState({cycle:"",data:"",time:"",minute:"",dateArray:[],timeArry:[]}),n.props.form.resetFields(["cycle","minute","data","time"]),n.modelData.cronType="",n.modelData.cronTrigger=""),3!==t&&n.props.form.resetFields(["cronTrigger"]),n.setState({radioValue:t,check:""!==t}),n.props.onChange&&n.props.onChange("cycleInfo",t)},n.validateFun=function(){var e=!1;return n.setState({},(function(){""===n.modelData.cronTrigger?n.props.form.validateFields(["cronTrigger"],{force:!0}):2===n.state.radioValue&&(""===n.state.cycle&&n.props.form.validateFields(["cycle"],{force:!0}),""===n.state.data&&"4"!==n.state.cycle&&n.props.form.validateFields(["data"],{force:!0}),""===n.state.time&&n.props.form.validateFields(["time"],{force:!0}),""===n.state.minute&&n.props.form.validateFields(["minute"],{force:!0}))})),n.props.form.validateFieldsAndScroll((function(t){""!==n.state.radioValue&&null!==t||(e=!0)})),e?(""===n.state.radioValue?(n.modelData.cronType="",n.modelData.cronTrigger=""):3===n.state.radioValue?n.modelData.cronType="":2===n.state.radioValue&&(n.modelData.cronTrigger=(0,f.dataFormatCron)(n.state.cycle,n.state.data,n.state.time,n.state.minute)),{validate:!0,moduleData:n.modelData}):{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u5468\u671f\u6a21\u5757\u6570\u636e"}},n.state={radioValue:"",cycle:"",data:"",time:"",minute:"",dateArray:[],timeArry:[],minuteArry:[],check:!1};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("cycleInfo",n.validateFun),n.modelData={cronType:"",cronTrigger:""},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,n.default)(c.Form,{layout:"inline"},void 0,(0,n.default)(g,{disabled:this.state.moduleDisabled,onChange:this.onChangeRadio,value:this.state.radioValue},void 0,y,(0,n.default)(d.default,{value:2,style:{marginLeft:"20px",marginTop:8}}),(0,n.default)(h,{},void 0,"\u5468\u671f\u6267\u884c",e("cycle",{rules:[{required:this.state.check,message:"\u8bf7\u9009\u62e9\u6267\u884c\u5468\u671f"}],initialValue:this.state.cycle})((0,n.default)(i.default,{getPopupContainer:function(e){return e.parentNode},disabled:!(2===this.state.radioValue&&!this.state.moduleDisabled),onChange:this.handleChange,style:{marginLeft:"16px",width:"100px"}},void 0,b,x,C,j))),(0,n.default)(h,{},void 0,e("data",{rules:[{required:"4"!==this.state.cycle&&this.state.check,message:"\u8bf7\u9009\u62e9"}],initialValue:this.state.data})((0,n.default)(i.default,{getPopupContainer:function(e){return e.parentNode},disabled:!(2===this.state.radioValue&&!this.state.moduleDisabled),onChange:this.dataChange,style:{display:"4"===this.state.cycle?"none":"",width:"100px"}},void 0,S,this.state.dateArray.map((function(e){return(0,n.default)(v,{value:e.id},e.id+_.uniqueId(),e.val)}))))),(0,n.default)(h,{},void 0,e("time",{rules:[{required:this.state.check,message:"\u8bf7\u9009\u62e9"}],initialValue:this.state.time})((0,n.default)(i.default,{getPopupContainer:function(e){return e.parentNode},disabled:!(2===this.state.radioValue&&!this.state.moduleDisabled),onChange:this.timeChange,style:{width:"100px"}},void 0,I,this.state.timeArry.map((function(e){return(0,n.default)(v,{value:e.id},e.id+_.uniqueId(),e.val)}))))),(0,n.default)(h,{},void 0,e("minute",{rules:[{required:this.state.check,message:"\u8bf7\u9009\u62e9"}],initialValue:this.state.minute})((0,n.default)(i.default,{showSearch:!0,disabled:!(2===this.state.radioValue&&!this.state.moduleDisabled),onChange:this.minuteChange,style:{width:"100px"}},void 0,T,this.state.minuteArry.map((function(e){return(0,n.default)(v,{value:e.id},e.id+_.uniqueId(),e.val)})))))))},t}(l.default.Component);t.default=(0,p.connect)((function(){return{}}))(c.Form.create()(w))},"./src/module/dataMgr/dataSource/dataSourceEdit/components/DataSourceInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=g(a("./node_modules/react/index.js")),l=(g(a("./node_modules/prop-types/index.js")),g(a("./src/redux/selectors/enumDic.js"))),u=a("./node_modules/@ant-design/icons/es/index.js"),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var p=a("./node_modules/react-redux/es/index.js"),f=g(a("./src/components/common/CheckName.jsx")),m=a("./src/redux/selectors/checkName.js"),h=a("./src/components/auth/optionAuth.jsx");function g(e){return e&&e.__esModule?e:{default:e}}var v=c.Form.Item,y=i.default.Option,b=(0,n.default)(y,{value:""},void 0,"\u8bf7\u9009\u62e9\u975e\u7ed3\u6784\u5206\u7c7b"),x=(0,n.default)(y,{value:"text"},void 0,"\u6587\u672c"),C=(0,n.default)(y,{value:"img"},void 0,"\u56fe\u7247"),j=(0,n.default)(y,{value:"audio"},void 0,"\u97f3\u9891"),S=(0,n.default)(y,{value:"video"},void 0,"\u89c6\u9891"),I=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.onChangePurpose=function(e){n.setState({dsType:e}),n.modelData.dsType=e,n.props.onChange&&n.props.onChange("dsType",e)},n.onChangeNsType=function(e){n.setState({nsType:e}),n.props.onChangeNsType(e)},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.getModelNameBlur=function(e){n.setState({name:e}),n.modelData.name=e?e.trim():e,n.props.form.setFieldsValue({name:e})},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u57fa\u7840\u4fe1\u606f"}},n.emitEmpty=function(){n.userNameInput.focus(),n.props.form.setFieldsValue({name:""}),n.setState({name:""})},n.state={name:void 0!==n.props.dataSourceInfo?_.get(a.dataSourceInfo,"name"):"",dsType:void 0!==n.props.dataSourceInfo?n.props.dataSourceInfo.dsType:"all",nsType:n.props.type&&n.props.dataSourceInfo?n.props.dataSourceInfo.dataType:"text"};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("dataSourceInfo",n.validateFun),n.modelData={dsType:void 0!==n.props.dataSourceInfo?n.props.dataSourceInfo.dsType:"all",name:void 0!==a.dataSourceInfo?_.get(a.dataSourceInfo,"name"):""},n.checkNameRef=d.default.createRef(),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.dicHelper("DS_PURPOSE").list(),t=this.props.form.getFieldDecorator;return(0,n.default)(c.Form,{layout:"inline"},void 0,(0,n.default)(v,{label:"\u540d\u79f0"},void 0,t("name",{rules:[{required:!0,min:0,max:100,message:"\u8bf7\u8f93\u5165\u6570\u636e\u96c6\u540d\u79f0"},{validator:this.handleCheckNameValidate}],initialValue:this.state.name})(d.default.createElement(f.default,{ref:this.checkNameRef,source:"dataSource",style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u6570\u636e\u96c6\u540d\u79f0",modelId:void 0!==this.props.dataSourceInfo?this.props.dataSourceInfo.dsId:"",updateNameCallback:this.getModelNameBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\dataSource\\dataSourceEdit\\components\\DataSourceInfo.jsx",lineNumber:106}}))),(0,n.default)(v,{label:"\u6570\u636e\u96c6\u7528\u9014"},void 0,t("dsType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u96c6\u7528\u9014"}],initialValue:this.state.dsType})((0,n.default)(i.default,{value:this.state.dsType,getPopupContainer:function(e){return e.parentNode},onChange:this.onChangePurpose,style:{width:150}},void 0,e.map((function(e){return(0,n.default)(y,{title:e.txt,value:e.value},e.code,e.txt)}))))),this.props.type&&(0,n.default)(v,{label:"\u975e\u7ed3\u6784\u5206\u7c7b"},void 0,t("nsType",{rules:[{required:!!this.props.type,message:"\u8bf7\u9009\u62e9\u975e\u7ed3\u6784\u5206\u7c7b"}],initialValue:this.state.nsType})((0,n.default)(i.default,{disabled:"add"!==this.props.viewType,onChange:this.onChangeNsType,style:{width:150}},void 0,b,(0,h.hasOption)("root.datasource.dsType","3")&&x,(0,h.hasOption)("root.datasource.dsType","2")&&C,j,S))),this.props.type&&(0,n.default)(v,{},void 0,(0,n.default)(u.QuestionCircleOutlined,{style:{fontSize:16,color:"#a2b0c4",cursor:"pointer",marginLeft:"2%"},title:"excel\u548ccsv\u53c2\u8003\u683c\u5f0f\uff1atext,label 'Terrible customer service.','negative Really great transaction.','positive'\u3001'Great price','positive'"})))},t}(d.default.PureComponent);t.default=(0,p.connect)((function(e){return{dicHelper:(0,l.default)(e),checkNameVerifyInfo:(0,m.selectVerifyInfo)(e)}}))(c.Form.create()(I))},"./src/module/dataMgr/dataSource/dataSourceEdit/components/DefineInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TabDom=t.TableTail=t.FieldMatchDom=t.DownConfigDom=t.UpConfigDom=t.DownUpConfigDom=void 0;var n=j(a("./node_modules/antd/es/table/index.js")),o=j(a("./node_modules/antd/es/upload/index.js")),s=j(a("./node_modules/antd/es/button/index.js")),r=j(a("./node_modules/babel-runtime/helpers/extends.js")),i=j(a("./node_modules/antd/es/message/index.js")),d=j(a("./node_modules/babel-runtime/helpers/jsx.js")),l=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=j(a("./node_modules/babel-runtime/helpers/inherits.js")),p=j(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var f=j(a("./node_modules/react/index.js")),m=(j(a("./node_modules/prop-types/index.js")),j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./src/components/index.js"),g=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./src/utils/authPermit.js"),y=a("./src/utils/publicPath.js"),b=a("./node_modules/react-redux/es/index.js"),x=a("./src/redux/reducers/dataSource.js"),C=a("./src/redux/selectors/dataSource.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=p.default.Group,I=t.DownUpConfigDom=m.default.div.withConfig({displayName:"DefineInfo__DownUpConfigDom",componentId:"sc-5ubl3d-0"})(["float:left;display:contents;"]),T=t.UpConfigDom=m.default.div.withConfig({displayName:"DefineInfo__UpConfigDom",componentId:"sc-5ubl3d-1"})(["display:flex;width:100%;span{font-size:12px;letter-spacing:0;line-height:14px;}.ant-upload-list-item{margin-top:8px;font-size:12px;position:relative;height:22px;display:none;}.ant-upload-list-item-name{padding-top:2.5px;}.ant-upload-list-item-info{margin-right:10px;height:100%;padding:0 12px 0 4px;transition:background-color 0.3s;}.ant-upload-list{position:absolute;margin-top:-6%;display:flex;font-size:12px;line-height:1.5;color:rgba(0,0,0,0.65);-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;list-style:none;zoom:1;width:100%;}"]),w=t.DownConfigDom=m.default.div.withConfig({displayName:"DefineInfo__DownConfigDom",componentId:"sc-5ubl3d-2"})(["width:100%;display:inline-flex;.fileDiv{padding-top:2px;background:#e5e9f2;width:40%;margin-top:1.5%;.down-name{margin-left:5px;font-size:12px;color:#475669;letter-spacing:0;line-height:14px;}}"]),E=t.FieldMatchDom=m.default.div.withConfig({displayName:"DefineInfo__FieldMatchDom",componentId:"sc-5ubl3d-3"})(["width:100%;display:inline-flex;margin-top:2%;"]),D=t.TableTail=m.default.div.withConfig({displayName:"DefineInfo__TableTail",componentId:"sc-5ubl3d-4"})(["background:#e5e9f2;padding-top:0.5%;padding-left:1%;height:30px;span{font-family:MicrosoftYaHei;font-size:12px;color:#475669;letter-spacing:0;}"]),M=t.TabDom=m.default.div.withConfig({displayName:"DefineInfo__TabDom",componentId:"sc-5ubl3d-5"})(["width:100%;padding-right:1%;margin-top:2%;.ant-table-bordered .ant-table-thead > tr > th,.ant-table-bordered .ant-table-tbody > tr > td{text-align:center;}.ant-table-fixed-header > .ant-table-content > .ant-table-scroll > .ant-table-body{overflow:-webkit-paged-y;overflow-y:hidden;position:relative;background:#fff;}.ant-table-fixed-header .ant-table-scroll .ant-table-header{overflow:hidden;padding-bottom:20px;margin-bottom:-20px;}"]),k=(0,d.default)(p.default,{value:"1"},void 0,"\u4f7f\u7528\u9ed8\u8ba4\u5b57\u6bb5"),P=(0,d.default)(g.DownloadOutlined,{}),L=(0,d.default)(s.default,{type:"primary"},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6570\u636e\u63cf\u8ff0\u6587\u4ef6"),N=(0,d.default)(g.DownloadOutlined,{}),A=(0,d.default)(p.default,{value:"1"},void 0,"\u5b57\u6bb5\u540d\u79f0\u5339\u914d"),R=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.componentDidMount=function(){if("add"!==n.props.viewType){var e=n.props.dataSourceInfo;if(n.modelData.metaDataType=e.metaDataTemplate.metaDataType,n.modelData.templatePath=e.metaDataTemplate.templatePath,n.modelData.matchType=e.metaDataTemplate.matchType,n.setState({metaDataType:e.metaDataTemplate.metaDataType,templatePath:e.metaDataTemplate.templatePath?e.metaDataTemplate.templatePath.substring(e.metaDataTemplate.templatePath.lastIndexOf("/")+1,e.metaDataTemplate.templatePath.length):"",matchType:e.metaDataTemplate.matchType}),"db"!==n.props.modelData.dataType)n.props.getPreviewData("1"===e.metaDataTemplate.metaDataType?void 0:e.metaDataTemplate.templatePath,n.getDataTitleView(n.props.dbPreviewData.toJS()));else if("1"!==e.metaDataTemplate.metaDataType){var t=n.props.dbPreviewData.toJS(),a=n.getDataTitleView(n.props.dbPreviewData.toJS());n.props.dispatch(x.dataSourceActions.getDbHeaderDataRequest({metaTplPath:e.metaDataTemplate.templatePath,dataTitleView:a,headers:t.headers}))}n.props.onChange("defineInfo",n.modelData)}},n.getDataTitleView=function(e){for(var t="",a=1===n.props.modelData.dsConf.fileHeaderFlag||"db"===n.props.modelData.dataType?e.headers:e.headersByIndex,o=0;o<a.length;o++)for(var s in a[o])t+=a[o][s]+",";return t.substring(0,t.length-1)},n.downFile=function(e){if("default"===e){var t=n.getDataTitleView(n.props.dbPreviewData.toJS());window.location.href=(0,y.urlFormat)("/api/datasources/metadata/actions/download?dataSourceName="+n.props.modelData.name+"&dataTitleView="+t+"&token="+encodeURI((0,v.getToken)()))}else window.location.href=(0,y.urlFormat)("/api/datasources/metadata/actions/downloadTpl?token="+encodeURI((0,v.getToken)()))},n.onChangeRadio=function(e){var t=e.target.value;n.setState({metaDataType:t}),n.modelData.metaDataType=t,"3"===t&&n.props.getPreviewData(void 0,n.getDataTitleView(n.props.dbPreviewData.toJS())),n.props.onChange("defineInfo",n.modelData)},n.onMatchTypeChangeRadio=function(e){var t=e.target.value;n.setState({matchType:t}),n.modelData.matchType=t,n.props.onChange("defineInfo",n.modelData)},n.getColumns=function(){var e=0!==n.props.dbPreviewData.size?n.props.dbPreviewData.toJS():[],t=[],a=[],o=[],s=0!==n.props.dbHeaderData.size?n.props.dbHeaderData.toJS():[];o=void 0===n.props.modelData.dsConf.fileHeaderFlag?e.headers:1!==n.props.modelData.dsConf.fileHeaderFlag?e.headersByIndex:e.headers,n.modelData.templatePath&&("db"===n.props.modelData.dataType?"2"===n.state.metaDataType&&"1"===n.modelData.matchType&&s.headersByName?a=s.headersByName:"2"===n.state.metaDataType&&"2"===n.modelData.matchType&&s.headersByOrder&&(a=s.headersByOrder):"2"===n.state.metaDataType&&"1"===n.modelData.matchType?a=e.headersByName:"2"===n.state.metaDataType&&"2"===n.modelData.matchType&&(a=e.headersByOrder));var r=0;if("1"===n.state.matchType)for(var i=0;i<a.length;i++)for(c in a[i])"-"===a[i][c]&&r++;if(void 0!==o&&o.length>0){for(var l=0;l<o.length;l++){var u={};for(var c in o[l])u.title=(0,d.default)(h.RowTitle,{titleVal:o[l]?o[l][c]:"",titleLabel:_.get(a,[l,c],"")}),u.dataIndex=""+c,u.width="150px",u.key=_.uniqueId();t.push(u)}return n.setState({indexNum:e.headers.length,notMatching:r}),t}},n.beforeUpload=function(e){var t=e.name,a=!0;return-1!==t.indexOf(".xlsx")&&-1!==t.indexOf(".xls")||(a=!1,i.default.error("\u53ea\u652f\u6301xlsx/xls\uff0c\u683c\u5f0f\u6587\u4ef6")),a},n.state={metaDataType:"1",templatePath:"",matchType:"1",indexNum:0,notMatching:0},n.modelData={metaDataType:"1",templatePath:"",matchType:"1"},a.onChange("defineInfo",n.modelData),n}return(0,c.default)(t,e),t.prototype.setHeaders=function(){var e=this.props.dbPreviewData.toJS();if("db"!==this.props.modelData.dataType){for(var t=e.headers,a=new Object,n=0;n<t.length;n++)for(var o in t[n])a[o]=t[n][o];e.data&&e.data.unshift(a)}return e},t.prototype.render=function(){var e=this,t=0!==this.props.dbPreviewData.size?1===this.props.modelData.dsConf.fileHeaderFlag?(0,r.default)({},this.props.dbPreviewData.toJS()):this.setHeaders():[],a=this,l=(0,v.getToken)(),u={name:"file",action:(0,y.urlFormat)("/api/datasources/metadata/actions/upload"),headers:{Authorization:l},onChange:function(e){if("uploading"!==e.file.status&&i.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status)if(void 0!==e.file.response.data&&""!==e.file.response.data){var t=a.props.dbPreviewData.toJS(),n=a.getDataTitleView(a.props.dbPreviewData.toJS());"db"===a.props.modelData.dataType?a.props.dispatch(x.dataSourceActions.getDbHeaderDataRequest({metaTplPath:e.file.response.data,dataTitleView:n,headers:t.headers})):"file"===a.props.modelData.dataType?a.props.dispatch(x.dataSourceActions.getFilePreviewDataRequest({type:a.props.modelData.dsConf.type,filePath:a.props.modelData.dsConf.filePath,fileSplitChar:a.props.modelData.dsConf.fileSplitChar,fileheaderFlag:a.props.modelData.dsConf.fileHeaderFlag,metaTplPath:e.file.response.data,dataTitleView:n})):"ftp"===a.props.modelData.dataType&&a.props.dispatch(x.dataSourceActions.getFtpPreviewDataRequest({type:a.props.modelData.dsConf.type,ftpFileName:a.props.modelData.dsConf.ftpFileName,ftpId:a.props.modelData.dsConf.ftpId,filePath:a.props.modelData.dsConf.filePath,fileSplitChar:a.props.modelData.dsConf.fileSplitChar,fileheaderFlag:a.props.modelData.dsConf.fileHeaderFlag,metaTplPath:e.file.response.data,dataTitleView:n})),a.modelData.templatePath=e.file.response.data,a.setState({templatePath:e.file.response.data?e.file.response.data.substring(e.file.response.data.lastIndexOf("/")+1,e.file.response.data.length):""}),a.props.onChange("defineInfo",a.modelData),i.default.success(e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01")}else i.default.success(e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01\u4f46\u662f\u672a\u5339\u914d\u5230\u4efb\u4f55\u6570\u636e!")}};return(0,d.default)(I,{},void 0,(0,d.default)(w,{},void 0,(0,d.default)(S,{disabled:this.state.moduleDisabled,onChange:this.onChangeRadio,value:this.state.metaDataType},void 0,k,"dacp"===this.props.dbType&&(0,d.default)(p.default,{style:{marginLeft:"20px"},value:"3"},void 0,"\u4f7f\u7528DACP\u63a5\u53e3\u5b57\u6bb5"),(0,d.default)(p.default,{style:{marginLeft:"20px"},value:"2"},void 0,"\u4e0a\u4f20\u63cf\u8ff0\u6a21\u677f"))),(0,d.default)(w,{style:{height:38}},void 0,"2"===this.state.metaDataType&&(0,d.default)("div",{className:"fileDiv"},void 0,(0,d.default)(g.PaperClipOutlined,{style:{marginLeft:"1%",color:"#B1BECF"}}),(0,d.default)("span",{className:"down-name"},void 0,""!==this.state.templatePath?this.state.templatePath:"\u53ea\u80fd\u4e0a\u4f20(\u6307\u5b9a\u7c7b\u578b)\u7c7b\u578b\u6587\u4ef6"))),(0,d.default)(T,{},void 0,(0,d.default)(s.default,{style:{marginTop:"0.8%",display:"1"===this.state.metaDataType?"":"none"},onClick:function(){e.downFile("default")},icon:P},void 0,"\u4e0b\u8f7d\u6570\u636e\u63cf\u8ff0\u6837\u4f8b"),(0,d.default)("div",{style:{display:"2"!==this.state.metaDataType?"none":"flex",marginTop:"1.5%",width:"100%"}},void 0,f.default.createElement(o.default,(0,r.default)({beforeUpload:this.beforeUpload},u,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\dataSource\\dataSourceEdit\\components\\DefineInfo.jsx",lineNumber:438}}),L),(0,d.default)(s.default,{style:{marginLeft:"0.7%"},onClick:function(){e.downFile("default")},icon:N},void 0,"\u4e0b\u8f7d\u6570\u636e\u63cf\u8ff0\u6837\u4f8b"))),(0,d.default)(E,{style:{display:"2"!==this.state.metaDataType?"none":"flex"}},void 0,(0,d.default)(S,{disabled:this.state.moduleDisabled,onChange:this.onMatchTypeChangeRadio,value:this.state.matchType},void 0,A,(0,d.default)(p.default,{style:{marginLeft:"20px"},value:"2"},void 0,"\u5b57\u6bb5\u987a\u5e8f\u5339\u914d")),0!==this.state.notMatching&&(0,d.default)("span",{style:{color:"red"}},void 0,"\u6709",this.state.notMatching,"\u4e2a\u5b57\u6bb5\u672a\u5339\u914d\u4e0a")),(0,d.default)(M,{},void 0,0!==t.length&&(0,d.default)(n.default,{dataSource:t.data,rowKey:_.uniqueId(),scroll:{x:150*this.state.indexNum,y:void 0},bordered:!0,pagination:!1,columns:this.getColumns()}),(0,d.default)(D,{},void 0,(0,d.default)("span",{},void 0,"\u5171 ",void 0!==t.data?t.data.length:0," \u6761"))))},t}(f.default.PureComponent);t.default=(0,b.connect)((function(e){return{dbHeaderData:(0,C.selectDbHeaderData)(e),dbPreviewData:(0,C.selectDbPreviewDataList)(e)}}))(R)},"./src/module/dataMgr/dataSource/dataSourceEdit/components/FtpFileInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DownConfigDom=t.UpConfigDom=t.FtpInfoPage=void 0;var n=j(a("./node_modules/antd/es/input/index.js")),o=j(a("./node_modules/antd/es/upload/index.js")),s=j(a("./node_modules/babel-runtime/helpers/extends.js")),r=j(a("./node_modules/antd/es/button/index.js")),i=j(a("./node_modules/babel-runtime/helpers/jsx.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=j(a("./node_modules/babel-runtime/helpers/inherits.js")),p=j(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=j(a("./node_modules/react/index.js")),m=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(j(a("./node_modules/prop-types/index.js")),a("./src/utils/constants.js")),g=a("./src/utils/publicPath.js"),v=a("./src/redux/selectors/sysManager/ftpBasesManager.js"),y=a("./src/redux/reducers/sysManager/ftpBasesManager.js"),b=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var x=a("./node_modules/react-redux/es/index.js"),C=a("./src/utils/authPermit.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=b.Form.Item,I=p.default.Option,T=t.FtpInfoPage=m.default.div.withConfig({displayName:"FtpFileInfo__FtpInfoPage",componentId:"b163u1-0"})(["margin-left:-3%;margin-bottom:-2%;.ant-upload-list-item .anticon-close{top:4px;right:-2px;}.ant-upload-list{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:-37px;}"]),w=(t.UpConfigDom=m.default.div.withConfig({displayName:"FtpFileInfo__UpConfigDom",componentId:"b163u1-1"})(["margin:1.8% 0 2.2% 3%;display:flex;width:100%;span{font-size:12px;letter-spacing:0;line-height:14px;}.ant-upload-list{display:none;font-family:'Microsoft Yahei','STXihei','sans-serif';font-size:12px;line-height:1.5;color:rgba(0,0,0,0.65);box-sizing:border-box;margin:0;padding:0;list-style:none;zoom:1;width:100%;}"]),t.DownConfigDom=m.default.div.withConfig({displayName:"FtpFileInfo__DownConfigDom",componentId:"b163u1-2"})(["width:100%;display:inline-flex;margin:0 0 0 3%;.fileDiv{background:#e5e9f2;padding:0.3% 0 0.3% 0;width:40%;.down-name{margin-left:5px;font-size:12px;color:#475669;letter-spacing:0;line-height:14px;}}"]),(0,i.default)(I,{value:"ns_ftp"},void 0,"FTP\u6587\u4ef6\u6307\u5b9a\u4e0a\u4f20")),E=(0,i.default)(I,{value:"ns_local"},void 0,"\u672c\u5730\u6587\u4ef6\u4e0a\u4f20"),D=(0,i.default)(I,{value:""},void 0,"\u8bf7\u9009\u62e9FTP\u670d\u52a1\u5668"),M=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.componentDidMount=function(){n.props.dispatch(y.ftpBasesActions.getFtpArrayRequest()),"add"!==n.props.viewType&&(n.modelData.ftpId=n.props.dataSourceInfo.dsConf.ftpId?n.props.dataSourceInfo.dsConf.ftpId:"",n.modelData.filePath=n.props.dataSourceInfo.dsConf.filePath,n.modelData.type=n.props.dataSourceInfo.dsConf.fileTransferFlag,n.setState({ftpId:n.props.dataSourceInfo.dsConf.ftpId?n.props.dataSourceInfo.dsConf.ftpId:"",filePath:n.props.dataSourceInfo.dsConf.filePath,uploadType:n.props.dataSourceInfo.dsConf.fileTransferFlag,fileList:"ns_local"===n.props.dataSourceInfo.dsConf.fileTransferFlag?[{uid:"-1",name:_.get(n.props,"dataSourceInfo.dsConf.filePath"),type:"text/plain"}]:[]}))},n.uploadTypeChange=function(e){n.setState({uploadType:e,ftpId:"",filePath:""}),n.modelData.ftpId="",n.modelData.filePath="",n.modelData.type=e},n.ftpIdChange=function(e){var t=n.props.datasFtps.toJS();n.modelData.ftpId=e;for(var a=0;a<t.length;a++)if(t[a].ftpId===e){n.modelData.filePath=t[a].ftpFilepath,n.props.form.setFieldsValue({filePath:t[a].ftpFilepath,ftpId:e});break}n.setState({ftpId:n.modelData.ftpId,filePath:n.modelData.filePath})},n.filePathChange=function(e){n.modelData.filePath=e.target.value,n.props.form.setFieldsValue({filePath:e.target.value}),n.setState({filePath:n.modelData.filePath})},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),"ns_local"!==n.state.uploadType||""!==n.modelData.ftpId&&""!==n.modelData.filePath?e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u9009\u62e9\u6765\u6e90\u4fe1\u606f"}:{validate:!1,errorMsg:"\u8bf7\u9009\u62e9\u4e0a\u4f20\u6587\u4ef6"}},n.state={ftpId:"",filePath:"",preview:!1,uploadType:"ns_ftp",fileList:[]},n.token=(0,C.getToken)();var o=n.props.setValidateFunc;return _.isFunction(o)&&o("ftpImgInfo",n.validateFun),n.modelData={ftpId:"",filePath:"",type:"ns_ftp"},n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.datasFtps.toJS(),l=this,u={name:"file",action:(0,g.urlFormat)("/dataSources/uploadFiles",h.ServicePath.DSEM_SERVICE),headers:{Authorization:l.token},onChange:function(e){var t=[].concat(e.fileList);if(t=(t=t.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),l.setState({fileList:t}),"uploading"===e.file.status&&d.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status){if(void 0!==e.file.response.data&&""!==e.file.response.data){var a=_.get(e.file.response,"data","");l.modelData.filePath=e.file.name,l.modelData.ftpId=a}}else"error"===e.file.status?d.default.error(_.get(e.file.response,"message")):"removed"===e.file.status&&(l.modelData.filePath="",l.modelData.ftpId="",l.setState({fileList:[]}))}};return(0,i.default)(T,{},void 0,(0,i.default)(b.Form,{style:{marginLeft:"3%",marginBottom:"2%"},layout:"inline"},void 0,(0,i.default)(S,{help:""},void 0,"img"===this.props.type?"\u56fe\u7247\u50a8\u5b58\u6587\u4ef6\u5939":"\u5b58\u50a8\u5730\u5740",t("uploadType",{rules:[{required:!0}],initialValue:this.state.uploadType})((0,i.default)(p.default,{disabled:this.state.moduleDisabled||"add"!==this.props.viewType,onChange:this.uploadTypeChange,style:{marginLeft:"10px",width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u6587\u4ef6\u4e0a\u4f20\u65b9\u5f0f"},void 0,w,E))),"ns_local"===this.state.uploadType&&(0,i.default)(S,{help:""},void 0,f.default.createElement(o.default,(0,s.default)({beforeUpload:this.beforeUpload,fileList:this.state.fileList},u,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\dataSource\\dataSourceEdit\\components\\FtpFileInfo.jsx",lineNumber:267}}),(0,i.default)(r.default,{disabled:this.state.moduleDisabled||"add"!==this.props.viewType},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"))),"ns_ftp"===this.state.uploadType&&(0,i.default)("div",{style:{display:"-webkit-inline-box"}},void 0,(0,i.default)(S,{help:""},void 0,t("ftpId",{rules:[{required:!0}],initialValue:this.state.ftpId})((0,i.default)(p.default,{showSearch:!0,getPopupContainer:function(e){return e.parentNode},disabled:this.state.moduleDisabled,onChange:this.ftpIdChange,style:{marginLeft:"10px",width:"200px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,D,a.map((function(e,t){return(0,i.default)(I,{title:e.ftpName,value:e.ftpId},t,e.ftpName)}))))),(0,i.default)(S,{help:""},void 0,t("filePath",{rules:[{required:!0}],initialValue:this.state.filePath})((0,i.default)(n.default,{disabled:this.props.moduleDisabled,onChange:this.filePathChange,placeholder:"FTP\u6587\u4ef6\u8def\u5f84,\u4e0d\u586b\u4e3a\u9ed8\u8ba4\u8def\u5f84",style:{marginRight:"16px",width:"270px"}})),(0,i.default)(r.default,{disabled:""===this.state.filePath||""===this.state.ftpId,style:{width:60,display:"none"},type:"primary",onClick:function(){e.props.onPreviewPic(e.state.ftpId,e.state.filePath)}},void 0,"\u9884\u89c8"))),(0,i.default)("div",{style:{marginTop:25,fontSize:"11px",color:"#cccccc",width:"55%"}},void 0,_.get({text:{ns_ftp:"\u6587\u672c\u683c\u5f0f\u652f\u6301txt\uff0c\u76ee\u5f55\u7ed3\u6784\u8981\u6c42\uff1a\u6587\u4ef6\u8def\u5f84/\u6587\u672c\u6587\u4ef6\uff0c\u6216\uff0c\u6587\u4ef6\u8def\u5f84/\u6587\u672c\u5206\u7c7b\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u5206\u7c7b\u6807\u8bc6\uff09/\u6587\u672c\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a\u6587\u4ef6\u8def\u5f84\u4e0b\u5305\u62ec\u4f53\u80b2\u3001\u5a31\u4e50\u3001\u8d22\u7ecf\u4e09\u4e2a\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u662f\u5bf9\u5e94\u7684\u6587\u672c",ns_local:"\u6587\u672c\u683c\u5f0f\u652f\u6301txt\uff0c\u591a\u6587\u672c\u65f6\u8bf7\u4e0a\u4f20zip\u3001tar\u3001gz\u683c\u5f0f\u538b\u7f29\u5305\uff0c\u538b\u7f29\u5305\u76ee\u5f55\u7ed3\u6784\u8981\u6c42\uff1a\u538b\u7f29\u5305/\u6587\u672c\u6587\u4ef6\uff0c\u6216\uff0c\u538b\u7f29\u5305/\u6587\u672c\u5206\u7c7b\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u5206\u7c7b\u6807\u8bc6\uff09/\u6587\u672c\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a\u538b\u7f29\u5305\u4e0b\u5305\u62ec\u4f53\u80b2\u3001\u5a31\u4e50\u3001\u8d22\u7ecf\u4e09\u4e2a\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u662f\u5bf9\u5e94\u7684\u6587\u672c"},img:{ns_ftp:"\u56fe\u7247\u683c\u5f0f\u652f\u6301jpg\u3001png\u3001gif\u3001bmp\u3001svg\u3001webp\uff0c \u76ee\u5f55\u7ed3\u6784\u8981\u6c42\uff1a\u6587\u4ef6\u8def\u5f84/\u56fe\u7247\u6587\u4ef6\uff0c\u6216\uff0c\u6587\u4ef6\u8def\u5f84/\u56fe\u7247\u5206\u7c7b\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u5206\u7c7b\u6807\u8bc6\uff09/\u56fe\u7247\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a\u6587\u4ef6\u8def\u5f84\u4e0b\u5305\u62ec\u72d7\u3001\u732b\u3001\u732a\u4e09\u4e2a\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u662f\u5bf9\u5e94\u7684\u56fe\u7247",ns_local:"\u56fe\u7247\u683c\u5f0f\u652f\u6301jpg\u3001png\u3001gif\u3001bmp\u3001svg\u3001webp\uff0c \u591a\u56fe\u7247\u65f6\u8bf7\u4e0a\u4f20zip\u3001tar\u3001gz\u683c\u5f0f\u538b\u7f29\u5305\uff0c\u538b\u7f29\u5305\u76ee\u5f55\u7ed3\u6784\u8981\u6c42\uff1a\u538b\u7f29\u5305/\u56fe\u7247\u6587\u4ef6\uff0c\u6216\uff0c\u538b\u7f29\u5305/\u56fe\u7247\u5206\u7c7b\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u5206\u7c7b\u6807\u8bc6\uff09/\u56fe\u7247\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a\u538b\u7f29\u5305\u4e0b\u5305\u62ec\u72d7\u3001\u732b\u3001\u732a\u4e09\u4e2a\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u662f\u5bf9\u5e94\u7684\u56fe\u7247"},audio:{ns_ftp:"\u97f3\u9891\u683c\u5f0f\u652f\u6301wav\u3001aiff\u3001mp3\u3001au\u3001flac\u3001m4a\u3001ogg\uff0c \u76ee\u5f55\u7ed3\u6784\u8981\u6c42\uff1a\u6587\u4ef6\u8def\u5f84/\u97f3\u9891\u6587\u4ef6\uff0c\u6216\uff0c\u6587\u4ef6\u8def\u5f84/\u97f3\u9891\u5206\u7c7b\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u5206\u7c7b\u6807\u8bc6\uff09/\u97f3\u9891\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a\u6587\u4ef6\u8def\u5f84\u4e0b\u5305\u62ec\u7537\u58f0\u3001\u5973\u58f0\u4e24\u4e2a\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u662f\u5bf9\u5e94\u7684\u97f3\u9891",ns_local:"\u97f3\u9891\u683c\u5f0f\u652f\u6301wav\u3001aiff\u3001mp3\u3001au\u3001flac\u3001m4a\u3001ogg\uff0c\u591a\u97f3\u9891\u65f6\u8bf7\u4e0a\u4f20zip\u3001tar\u3001gz\u683c\u5f0f\u538b\u7f29\u5305\uff0c\u538b\u7f29\u5305\u76ee\u5f55\u7ed3\u6784\u8981\u6c42\uff1a\u538b\u7f29\u5305/\u97f3\u9891\u6587\u4ef6\uff0c\u6216\uff0c\u538b\u7f29\u5305/\u97f3\u9891\u5206\u7c7b\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u5206\u7c7b\u6807\u8bc6\uff09/\u6587\u672c\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a\u538b\u7f29\u5305\u4e0b\u5305\u62ec\u7537\u58f0\u3001\u5973\u58f0\u4e24\u4e2a\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u662f\u5bf9\u5e94\u7684\u97f3\u9891"},video:{ns_ftp:"\u89c6\u9891\u683c\u5f0f\u652f\u6301mp4\uff0c\u76ee\u5f55\u7ed3\u6784\u8981\u6c42\uff1a\u6587\u4ef6\u8def\u5f84/\u89c6\u9891\u6587\u4ef6\uff0c\u6216\uff0c\u6587\u4ef6\u8def\u5f84/\u89c6\u9891\u5206\u7c7b\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u5206\u7c7b\u6807\u8bc6\uff09/\u89c6\u9891\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a\u6587\u4ef6\u8def\u5f84\u4e0b\u5305\u62ec\u706b\u7130\u3001\u6d53\u70df\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u662f\u5bf9\u5e94\u7684\u89c6\u9891",ns_local:"\u89c6\u9891\u683c\u5f0f\u652f\u6301mp4\uff0c\u591a\u89c6\u9891\u65f6\u8bf7\u4e0a\u4f20zip\u3001tar\u3001gz\u683c\u5f0f\u538b\u7f29\u5305\uff0c\u538b\u7f29\u5305\u76ee\u5f55\u7ed3\u6784\u8981\u6c42\uff1a\u538b\u7f29\u5305/\u89c6\u9891\u6587\u4ef6\uff0c\u6216\uff0c\u538b\u7f29\u5305/\u89c6\u9891\u5206\u7c7b\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u5206\u7c7b\u6807\u8bc6\uff09/\u89c6\u9891\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a\u538b\u7f29\u5305\u4e0b\u5305\u62ec\u706b\u7130\u3001\u6d53\u70df\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u662f\u5bf9\u5e94\u7684\u89c6\u9891"}},this.props.type+"."+this.state.uploadType))))},t}(f.default.PureComponent);t.default=(0,x.connect)((function(e){return{datasFtps:(0,v.selectFtpBasesArray)(e)}}))(b.Form.create()(M))},"./src/module/dataMgr/dataSource/dataSourceEdit/components/FtpImgInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DownConfigDom=t.UpConfigDom=t.FtpInfoPage=void 0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/antd/es/input/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=g(a("./node_modules/babel-runtime/helpers/inherits.js")),l=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=g(a("./node_modules/react/index.js")),c=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(g(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/sysManager/ftpBasesManager.js")),f=a("./src/redux/reducers/sysManager/ftpBasesManager.js"),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./node_modules/react-redux/es/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=m.Form.Item,y=l.default.Option,b=t.FtpInfoPage=c.default.div.withConfig({displayName:"FtpImgInfo__FtpInfoPage",componentId:"xx7ezi-0"})(["margin-left:-3%;margin-bottom:-2%;"]),x=(t.UpConfigDom=c.default.div.withConfig({displayName:"FtpImgInfo__UpConfigDom",componentId:"xx7ezi-1"})(["margin:1.8% 0 2.2% 3%;display:flex;width:100%;span{font-size:12px;letter-spacing:0;line-height:14px;}.ant-upload-list{display:none;font-family:'Microsoft Yahei','STXihei','sans-serif';font-size:12px;line-height:1.5;color:rgba(0,0,0,0.65);box-sizing:border-box;margin:0;padding:0;list-style:none;zoom:1;width:100%;}"]),t.DownConfigDom=c.default.div.withConfig({displayName:"FtpImgInfo__DownConfigDom",componentId:"xx7ezi-2"})(["width:100%;display:inline-flex;margin:0 0 0 3%;.fileDiv{background:#e5e9f2;padding:0.3% 0 0.3% 0;width:40%;.down-name{margin-left:5px;font-size:12px;color:#475669;letter-spacing:0;line-height:14px;}}"]),(0,s.default)(y,{value:""},void 0,"\u8bf7\u9009\u62e9FTP\u670d\u52a1\u5668")),C=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.componentDidMount=function(){n.props.dispatch(f.ftpBasesActions.getFtpArrayRequest()),"add"!==n.props.viewType&&(n.modelData.ftpId=n.props.dataSourceInfo.dsConf.ftpId,n.modelData.filePath=n.props.dataSourceInfo.dsConf.filePath,n.setState({ftpId:n.props.dataSourceInfo.dsConf.ftpId,filePath:n.props.dataSourceInfo.dsConf.filePath}))},n.ftpIdChange=function(e){var t=n.props.datasFtps.toJS();n.modelData.ftpId=e;for(var a=0;a<t.length;a++)if(t[a].ftpId===e){n.modelData.filePath=t[a].ftpFilepath,n.props.form.setFieldsValue({filePath:t[a].ftpFilepath,ftpId:e});break}n.setState({ftpId:n.modelData.ftpId,filePath:n.modelData.filePath})},n.filePathChange=function(e){n.modelData.filePath=e.target.value,n.props.form.setFieldsValue({filePath:e.target.value}),n.setState({filePath:n.modelData.filePath})},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u9009\u62e9\u6765\u6e90\u4fe1\u606f"}},n.state={ftpId:"",filePath:"",preview:!1};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("ftpImgInfo",n.validateFun),n.modelData={ftpId:"",filePath:""},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.datasFtps.toJS();return(0,s.default)(b,{},void 0,(0,s.default)(m.Form,{style:{marginLeft:"3%",marginBottom:"2%"},layout:"inline"},void 0,(0,s.default)(v,{help:""},void 0,"\u56fe\u7247\u50a8\u5b58\u6587\u4ef6\u5939",t("ftpId",{rules:[{required:!0}],initialValue:this.state.ftpId})((0,s.default)(l.default,{showSearch:!0,getPopupContainer:function(e){return e.parentNode},disabled:this.state.moduleDisabled,onChange:this.ftpIdChange,style:{marginLeft:"16px",width:"200px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,x,a.map((function(e,t){return(0,s.default)(y,{title:e.ftpName,value:e.ftpId},t,e.ftpName)}))))),(0,s.default)(v,{help:""},void 0,t("filePath",{rules:[{required:!0}],initialValue:this.state.filePath})((0,s.default)(o.default,{disabled:this.props.moduleDisabled,onChange:this.filePathChange,placeholder:"FTP\u6587\u4ef6\u8def\u5f84,\u4e0d\u586b\u4e3a\u9ed8\u8ba4\u8def\u5f84",style:{marginRight:"16px",width:"270px"}})),(0,s.default)(n.default,{disabled:""===this.state.filePath||""===this.state.ftpId,style:{width:60,display:"none"},type:"primary",onClick:function(){e.props.onPreviewPic(e.state.ftpId,e.state.filePath)}},void 0,"\u9884\u89c8")),(0,s.default)("div",{style:{marginTop:10,fontSize:"11px",color:"#cccccc",width:"55%"}},void 0,"\u56fe\u7247\u683c\u5f0f\u652f\u6301jpg\u3001png\u3001jpeg\u3001bmp\uff0c \u76ee\u5f55\u7ed3\u6784\u8981\u6c42\uff1a\u76ee\u6807\u6587\u4ef6\u5939/\u56fe\u7247\u5206\u7c7b\u6587\u4ef6\u5939\uff08\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u5206\u7c7b\u6807\u8bc6\uff09/\u56fe\u7247 \u4f8b\u5982\uff1a\u8bad\u7ec3\u6570\u636e\u6587\u4ef6\u5939\u4e0b\u5305\u62ec\u72d7\u3001\u732b\u3001\u732a\u4e09\u4e2a\u6587\u4ef6\u5939\uff0c\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u662f\u5bf9\u5e94\u7684\u56fe\u7247")))},t}(u.default.PureComponent);t.default=(0,h.connect)((function(e){return{datasFtps:(0,p.selectFtpBasesArray)(e)}}))(m.Form.create()(C))},"./src/module/dataMgr/dataSource/dataSourceEdit/components/NsCycleInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CycleInfoPage=void 0;var n=h(a("./node_modules/antd/es/input/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js")),d=h(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var l=h(a("./node_modules/react/index.js")),u=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/moment/moment.js"))),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./node_modules/react-redux/es/index.js"),m=a("./src/utils/dateUtil.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=p.Form.Item,v=d.default.Group,y=(t.CycleInfoPage=u.default.div.withConfig({displayName:"NsCycleInfo__CycleInfoPage",componentId:"ntw1ne-0"})([""]),(0,o.default)(d.default,{value:""},void 0,"\u53ea\u6267\u884c\u4e00\u6b21\uff0c\u4e0b\u6b21\u624b\u52a8\u6267\u884c")),b=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.componentDidMount=function(){if(void 0===n.props.dataSourceInfo)n.setState({radioValue:"",cycle:"",data:"",time:"",minute:"",dateArray:[],timeArry:[],minuteArry:[],check:!1});else if("add"!==n.props.viewType){var e=(0,m.cronFormatData)(n.props.dataSourceInfo.cronType,n.props.dataSourceInfo.cronTrigger),t=n.getCycleData(n.props.dataSourceInfo.cronType),a=n.getTimeData(),o=n.getMinuteArry(),s=n.props.dataSourceInfo.cronType;n.modelData.cronType=s,n.modelData.cronTrigger=n.props.dataSourceInfo.cronTrigger,"4"===n.props.dataSourceInfo.cronType?n.setState({minuteArry:o,timeArry:a,cycle:null===s||""===s?"":s,data:void 0!==e.data?e.data:"",time:void 0!==e.time?e.time:"",minute:void 0!==e.minute?e.minute:"",check:""!==s,radioValue:""!==s?2:n.validateData(n.modelData.cronTrigger)?3:""}):n.setState({minuteArry:o,dateArray:t,timeArry:a,cycle:null===s||""===s?"":s,data:void 0!==e.data?e.data:"",time:void 0!==e.time?e.time:"",minute:void 0!==e.minute?e.minute:"",check:!!s,radioValue:""!==s?2:n.validateData(n.modelData.cronTrigger)?3:""})}},n.timeChange=function(e){var t=n.getMinuteArry();n.setState({time:e,minuteArry:t})},n.minuteChange=function(e){n.setState({minute:e})},n.dataChange=function(e){var t=n.getTimeData(),a=n.getMinuteArry();n.setState({timeArry:t,minuteArry:a,data:e})},n.getMinuteArry=function(){for(var e=[],t=0;t<=59;t++)e.push({id:t.toString(),val:0===t?"00\u5206":t>9?t+"\u5206":"0"+t+"\u5206"});return e},n.getTimeData=function(){for(var e=[],t=0;t<=23;t++)e.push({id:t.toString(),val:0===t?"00\u65f6":t>9?t+"\u65f6":"0"+t+"\u65f6"});return e},n.getCycleData=function(e){for(var t="1"===e?12:"2"===e?31:"3"===e?7:24,a=[],o=0;o<t;o++){var s=o+1;a.push({id:s.toString(),val:"3"===e?"\u661f\u671f"+n.sectionToChinese(s):s+("1"===e?"\u6708":"2"===e?"\u53f7":" : 00")})}if("3"===e){var r=a[0];delete a[0],a.push(r)}return a},n.handleChange=function(e){if(n.modelData.cronType=e,"4"===e){var t=n.getTimeData();n.setState({timeArry:t,cycle:e,data:"",time:"",minute:""}),n.props.form.setFieldsValue({data:"",time:"",minute:""})}else{var a=n.getCycleData(e);n.setState({timeArry:[],dateArray:a,cycle:e,data:"",time:"",minute:""}),n.props.form.setFieldsValue({data:"",time:"",minute:""})}},n.sectionToChinese=function(e){return{2:"\u4e00",3:"\u4e8c",4:"\u4e09",5:"\u56db",6:"\u4e94",7:"\u516d",1:"\u5929"}[e]},n.onChangeRadio=function(e){var t=e.target.value;n.setState({},(function(){2===t?(""===n.state.cycle&&n.props.form.validateFields(["cycle"],{force:!0}),""===n.state.data&&"4"!==n.state.cycle&&n.props.form.validateFields(["data"],{force:!0}),""===n.state.time&&n.props.form.validateFields(["time"],{force:!0}),""===n.state.minute&&n.props.form.validateFields(["minute"],{force:!0})):3===t&&n.props.form.validateFields(["cronTrigger"],{force:!0})})),""!==t&&3!==t||(n.setState({cycle:"",data:"",time:"",minute:"",dateArray:[],timeArry:[]}),n.props.form.resetFields(["cycle","minute","data","time"]),n.modelData.cronType="",n.modelData.cronTrigger=""),3!==t&&n.props.form.resetFields(["cronTrigger"]),n.setState({radioValue:t,check:""!==t&&3!==t}),n.props.onChange&&n.props.onChange("cycleInfo",t)},n.validateFun=function(){var e=!1;return n.setState({},(function(){""===n.modelData.cronTrigger?n.props.form.validateFields(["cronTrigger"],{force:!0}):2===n.state.radioValue?(""===n.state.cycle&&n.props.form.validateFields(["cycle"],{force:!0}),""===n.state.data&&"4"!==n.state.cycle&&n.props.form.validateFields(["data"],{force:!0}),""===n.state.time&&n.props.form.validateFields(["time"],{force:!0}),""===n.state.minute&&n.props.form.validateFields(["minute"],{force:!0})):3===n.state.radioValue&&n.props.form.validateFields(["cronTrigger"],{force:!0})})),n.props.form.validateFieldsAndScroll((function(t){""!==n.state.radioValue&&null!==t||(e=!0)})),e?(""===n.state.radioValue?(n.modelData.cronType="",n.modelData.cronTrigger=""):3===n.state.radioValue?n.modelData.cronType="":2===n.state.radioValue&&(n.modelData.cronTrigger=(0,m.dataFormatCron)(n.state.cycle,n.state.data,n.state.time,n.state.minute)),{validate:!0,moduleData:n.modelData}):{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u5468\u671f\u6a21\u5757\u6570\u636e"}},n.validateData=function(e){var t=!1;return new RegExp(/^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/).test(e)&&(t=!0),t},n.defineDataChange=function(e,t){n.props.form.setFieldsValue({cronTrigger:t}),n.modelData.cronTrigger=t},n.state={radioValue:"",cycle:"",data:"",time:"",minute:"",dateArray:[],timeArry:[],minuteArry:[],check:!1};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("cycleInfo",n.validateFun),n.modelData={cronType:"",cronTrigger:""},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,o.default)(p.Form,{layout:"inline"},void 0,(0,o.default)(v,{disabled:this.state.moduleDisabled,onChange:this.onChangeRadio,value:this.state.radioValue},void 0,y,(0,o.default)(d.default,{value:3,style:{lineHeight:"35px"}},void 0,(0,o.default)(g,{help:""},void 0,"\u81ea\u5b9a\u4e49\u5468\u671f",e("cronTrigger",{rules:[{required:3===this.state.radioValue}],initialValue:""!==this.modelData.cronTrigger?(0,c.default)(this.modelData.cronTrigger,"YYYY-MM-DD HH:mm:ss"):this.modelData.cronTrigger})((0,o.default)(n.default,{disabled:3!==this.state.radioValue,onChange:this.defineDataChange,placeholder:"2018-0911-150125",style:{marginLeft:"16px",width:"170px"}}))))))},t}(l.default.Component);t.default=(0,f.connect)((function(){return{}}))(p.Form.create()(b))},"./src/module/dataMgr/dataSource/dataSourceEdit/components/StrategyInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/auto-complete/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/auto-complete/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=u.Form.Item,m=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.updateGetVal=function(e){if(e){var t={3:"3",6:"6",12:"12",24:"24"};return t[e]?t[e]:e}return"\u5168\u90e8"},n.getCycleData=function(){for(var e=["\u5168\u90e8"],t=[3,6,12,24],a=0;a<24;a++){var n=a+1;-1!==t.indexOf(n)&&e.push(n+"")}return e},n.componentDidMount=function(){n.props.viewType},n.handleChange=function(e){var t={3:"3",6:"6",12:"12",24:"24"};"\u5168\u90e8"===e?n.modelData.dataSaveCycle="":t[e]?n.modelData.dataSaveCycle=t[e]:t[e]||(n.modelData.dataSaveCycle=e),n.setState({dataSaveCycle:n.modelData.dataSaveCycle})},n.validateFun=function(){var e=!1;if("\u5168\u90e8"!==n.modelData.dataSaveCycle&&""!==n.modelData.dataSaveCycle){var t=Number(n.modelData.dataSaveCycle);if(NaN!==t){new RegExp(/^([1-9][0-9]{0,1}|100)$/).test(t)&&(e=!0)}}else e=!0;return e?("\u5168\u90e8"!==n.modelData.dataSaveCycle&&""!==n.modelData.dataSaveCycle||(n.modelData.dataSaveCycle=""),{validate:!0,moduleData:n.modelData}):{validate:!1,errorMsg:"\u5468\u671f\u7684\u6570\u636e\u53ea\u80fd\u662f\u5168\u90e8\u6216\u80051-100\u6574\u6570"}},n.state={dataSaveCycle:"add"!==n.props.viewType?n.updateGetVal(n.props.dataSourceInfo.dataSaveCycle):"\u5168\u90e8",cycleData:n.getCycleData()};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("strategyInfo",n.validateFun),n.modelData={dataSaveCycle:"add"!==n.props.viewType?n.updateGetVal(n.props.dataSourceInfo.dataSaveCycle):"\u5168\u90e8"},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,o.default)(u.Form,{layout:"inline"},void 0,(0,o.default)(f,{help:""},void 0,"\u4fdd\u5b58",t("dataSaveCycle",{rules:[{required:!0,min:1,max:3}],initialValue:this.state.dataSaveCycle})((0,o.default)(n.default,{dataSource:this.state.cycleData,onBlur:function(t){return e.handleChange(t.target.value)},style:{marginRight:"10px",marginLeft:"10px",width:"110px"},filterOption:function(e,t){return-1!==t.props.children.toUpperCase().indexOf(e.toUpperCase())},placeholder:"\u8bf7\u9009\u62e9"})),"\u5468\u671f\u7684\u6570\u636e"),(0,o.default)(f,{help:""},void 0,(0,o.default)(l.QuestionCircleOutlined,{style:{fontSize:"16px",color:"#a2b0c4",cursor:"pointer",marginleft:"2%"},className:"icon",title:"\u914d\u7f6e\u7ef4\u62a4\u5468\u671f\u540e\u5c06\u5b9a\u65f6\u5220\u9664\u7b26\u5408\u6761\u4ef6\u7684\u5386\u53f2\u5468\u671f\u6570\u636e\u3002\u4f8b\u5982\uff1a\u6bcf\u6708\u66f4\u65b0\u7684\u6570\u636e\u96c6\uff0c\u914d\u7f6e\u7ef4\u62a4\u7b56\u7565\u201c\u4ec5\u4fdd\u5b586\u7684\u6570\u636e\u201d\uff0c\u5219\u5728\u5f00\u59cb\u7b2c\u4e03\u62bd\u53d6\u524d\uff0c\u5220\u9664\u6700\u65e9\u7684\u4e00\u3002(\u652f\u6301\u586b\u51991-100\u7684\u6b63\u6574\u6570\uff0c\u4e5f\u53ef\u4ece\u4e0b\u62c9\u63d0\u793a\u4e2d\u9009\u62e9)"})))},t}(d.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(m))},"./src/module/dataMgr/dataSource/dataSourceEdit/components/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/dataMgr/dataSource/dataSourceEdit/components/DataSourceInfo.jsx");Object.defineProperty(t,"DataSourceInfo",{enumerable:!0,get:function(){return u(n).default}});var o=a("./src/module/dataMgr/dataSource/dataSourceEdit/components/CycleInfo.jsx");Object.defineProperty(t,"CycleInfo",{enumerable:!0,get:function(){return u(o).default}});var s=a("./src/module/dataMgr/dataSource/dataSourceEdit/components/NsCycleInfo.jsx");Object.defineProperty(t,"NsCycleInfo",{enumerable:!0,get:function(){return u(s).default}});var r=a("./src/module/dataMgr/dataSource/dataSourceEdit/components/StrategyInfo.jsx");Object.defineProperty(t,"StrategyInfo",{enumerable:!0,get:function(){return u(r).default}});var i=a("./src/module/dataMgr/dataSource/dataSourceEdit/components/DefineInfo.jsx");Object.defineProperty(t,"DefineInfo",{enumerable:!0,get:function(){return u(i).default}});var d=a("./src/module/dataMgr/dataSource/dataSourceEdit/components/FtpImgInfo.jsx");Object.defineProperty(t,"FtpImgInfo",{enumerable:!0,get:function(){return u(d).default}});var l=a("./src/module/dataMgr/dataSource/dataSourceEdit/components/FtpFileInfo.jsx");function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"FtpFileInfo",{enumerable:!0,get:function(){return u(l).default}})},"./src/module/dataMgr/dataSource/dataSourceEditAdvanced/AdvancedConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.AdvancedConfigDom=t.AdvancedConfigPage=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/radio/style/index.js");var d=p(a("./node_modules/react/index.js")),l=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/redux/reducers/dataSource.js");p(a("./node_modules/prop-types/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=i.default.Group,m=t.AdvancedConfigPage=l.default.div.withConfig({displayName:"AdvancedConfig__AdvancedConfigPage",componentId:"sc-1c8sjt0-0"})(["margin-bottom:10px;"]),h=t.AdvancedConfigDom=l.default.div.withConfig({displayName:"AdvancedConfig__AdvancedConfigDom",componentId:"sc-1c8sjt0-1"})(["width:100%;padding-left:10px;margin-top:2%;margin-bottom:10px;"]),g=(0,n.default)(i.default,{value:"db"},void 0,"\u6570\u636e\u5e93"),v=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.validateFun=function(){return{validate:!0,moduleData:{dataType:n.state.dataType,reviewFlag:n.state.reviewFlag}}},n.componentDidMount=function(){n.advancedConfigRender(n.state.dataType)},n.getModulesData=function(e,t){"dacp"===e&&n.props.onChange(e,t)},n.onChangeRadio=function(e){var t=e.target.value;n.setState({dataType:t}),n.props.onChange("dataType",t),n.props.clearValidateAdvancedFuncs(t),n.advancedConfigRender(t)},n.onSwitchChange=function(e){n.setState({reviewFlag:e?"1":"0"})},n.state={reviewFlag:void 0!==n.props.dataSourceInfo&&n.props.dataSourceInfo.reviewFlag?n.props.dataSourceInfo.reviewFlag:"0",showPanel:!1,dataType:void 0!==n.props.dataSourceInfo&&n.props.dataSourceInfo.dataType?n.props.dataSourceInfo.dataType:"db"};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("advancedConfig",n.validateFun),n}return(0,r.default)(t,e),t.prototype.advancedConfigRender=function(e){var t=this;this.props.dispatch(c.dataSourceActions.resetDbPreviewData());var o={db:"DataBaseConfig",file:"FileConfig",ftp:"FtpConfig"}[e]+".jsx";""!==o&&a.e(4).then(function(e){var s=a("./src/module/dataMgr/dataSource/dataSourceEditAdvanced/sourceAdvanced sync recursive ^\\.\\/.*$")("./"+o);t.setState({currentComponent:(0,n.default)(s,{disabled:t.props.moduleDisabled,viewType:t.props.viewType,setValidateFunc:function(e,a){t.props.setValidateFunc(e,a)},setPreviewFunc:function(e,a){t.props.setPreviewFunc(e,a)},dataSourceInfo:t.props.dataSourceInfo,onChange:function(e,a){t.getModulesData(e,a)}})})}.bind(null,a)).catch(a.oe)},t.prototype.render=function(){return(0,n.default)(m,{},void 0,(0,n.default)(f,{disabled:this.state.moduleDisabled,onChange:this.onChangeRadio,value:this.state.dataType},void 0,g,(0,n.default)(i.default,{style:{marginLeft:"20px"},value:"file"},void 0,"\u672c\u5730\u6587\u4ef6"),(0,n.default)(i.default,{style:{marginLeft:"20px"},value:"ftp"},void 0,"FTP\u6587\u4ef6")),(0,n.default)(h,{},void 0,this.state.currentComponent))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(v)},"./src/module/dataMgr/dataSource/dataSourceHome/DataSourceListView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=M(a("./node_modules/antd/es/divider/index.js")),o=M(a("./node_modules/antd/es/message/index.js")),s=M(a("./node_modules/antd/es/modal/index.js")),r=M(a("./node_modules/antd/es/table/index.js")),i=M(a("./node_modules/antd/es/tooltip/index.js")),d=M(a("./node_modules/babel-runtime/helpers/jsx.js")),l=M(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=M(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=M(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var p=M(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(M(a("./node_modules/prop-types/index.js")),a("./node_modules/react/index.js")),m=(M(f),a("./node_modules/immutable3/dist/immutable.js"),a("./node_modules/@ant-design/icons/es/index.js")),h=a("./src/redux/reducers/indiSet.js"),g=M(a("./src/module/dataMgr/dataSource/dataSourceHome/components/TooltipInfo.jsx")),v=a("./src/utils/constants.js"),y=a("./src/utils/history.js"),b=a("./src/routes/routeHelper.jsx"),x=a("./src/redux/selectors/indiSet.js"),C=a("./src/redux/reducers/dataSource.js"),j=a("./node_modules/react-redux/es/index.js"),S=M(a("./src/redux/selectors/enumDic.js")),I=a("./src/components/index.js"),T=a("./src/components/exception/index.js"),w=M(a("./src/module/dataMgr/dataSource/dataSourceHome/components/ErrorConfig.jsx")),E=a("./src/redux/selectors/dataSource.js"),D=M(a("./src/components/auth/funAuth.jsx"));function M(e){return e&&e.__esModule?e:{default:e}}var k=p.default.div.withConfig({displayName:"DataSourceListView__DataSourceListViewWrapper",componentId:"sc-1jkq1cb-0"})(["display:grid;overflow:hidden;flex-direction:column;align-content:flex-start;flex-wrap:wrap;transition:opacity 0.5s ease-in;flex:1 1 auto;overflow:hidden;.ReactVirtualized__Grid__innerScrollContainer{overflow:visible !important;margin-bottom:50px;}.bnoZcJ .ant-table-expanded-row td > .ant-table-wrapper{margin-left:-16px;margin-right:-16px;}.ant-table-body > table{border-right:0;border-bottom:0;}tr.ant-table-expanded-row,tr.ant-table-expanded-row:hover{background:#fff;}"]),P=(0,d.default)(n.default,{type:"vertical"}),L=(0,d.default)(n.default,{type:"vertical"}),N=(0,d.default)(g.default,{}),A=(0,d.default)(n.default,{type:"vertical"}),R=(0,d.default)(I.LoadingIndicator,{position:"relative"}),F=(0,d.default)(n.default,{type:"vertical"}),O=(0,d.default)(n.default,{type:"vertical"}),V=(0,d.default)(I.LoadingIndicator,{position:"relative"}),U=(0,d.default)(I.NoData,{}),B=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.onExpand=function(e,t){n.name=t.name,e?(n.setState({expandedRowKeys:[t.dsId],dsId:t.dsId}),n.openDeploy(t.dsId)):n.setState({expandedRowKeys:[],dsId:""})},n.expandedRowRender=function(){var e=[{title:"\u6570\u636e\u96c6\u5468\u671f",dataIndex:"dsCycle",width:110,ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u7c7b\u578b",dataIndex:"dataType",width:80,render:function(e){var t={db:"\u6570\u636e\u5e93",ftp:"FTP",file:"\u672c\u5730\u6587\u4ef6",local:"local",img:"\u56fe\u7247\u6587\u4ef6",text:"\u6587\u672c\u6587\u4ef6\u5939",audio:"\u97f3\u9891\u6587\u4ef6",video:"\u89c6\u9891\u6587\u4ef6",11:"\u7ed3\u6784\u5316\u6570\u636e",21:"\u6587\u672c\u5206\u7c7b",22:"\u547d\u540d\u5b9e\u4f53",23:"\u8bed\u4e49\u5206\u6790",31:"\u56fe\u50cf\u5206\u7c7b"};return(0,d.default)("span",{},void 0,t[e.toLowerCase()]?t[e.toLowerCase()]:"--")}},{title:"\u6765\u6e90\u8be6\u60c5",dataIndex:"dataSourceName",width:90,ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u6570\u636e\u6761\u6570",dataIndex:"dsDataSize",width:70,render:function(e){return(0,d.default)(I.LineWrap,{title:e||"--",lineClampNum:1})}},{title:"\u8868\u540d",dataIndex:"targetTableName",width:80,ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u72b6\u6001",dataIndex:"status",width:60,render:function(e,t){var a={0:"\u51c6\u5907\u4e2d",1:"\u62bd\u53d6\u4e2d",2:"\u62bd\u53d6\u6210\u529f",3:"\u5ba1\u67e5\u4e2d",4:"\u5ba1\u67e5\u5b8c\u6210",5:"\u6e05\u6d17\u4e2d",6:"\u6e05\u6d17\u5b8c\u6210",7:"\u9884\u5904\u7406\u4e2d",8:"\u505c\u6b62",9:"\u5931\u8d25",10:"\u6210\u529f",11:"\u5df2\u6e05\u7406"};return(0,d.default)("span",{onClick:"\u5931\u8d25"===a[e]?function(){return n.openError(t)}:null,style:{cursor:"\u5931\u8d25"===a[e]?"pointer":""}},void 0,(0,d.default)(I.StateLabel,{source:"dataSource",code:e}))}},{title:"\u64cd\u4f5c",dataIndex:"id",width:150,render:function(e,t){return(0,d.default)("div",{},void 0,10===t.status&&(0,d.default)("span",{style:{color:"#147BD1",cursor:"pointer",margin:"-2px 0 0 0"},onClick:function(){return n.onTaskChange(t)}},void 0,"text"!==t.dataType&&"img"!==t.dataType&&"audio"!==t.dataType&&"video"!==t.dataType?"\u521b\u5efa\u5f00\u53d1\u4efb\u52a1":"\u521b\u5efa\u6807\u6ce8\u4efb\u52a1",P),10===t.status&&"img"===t.dataType&&(0,d.default)("span",{style:{color:"#147BD1",cursor:"pointer",margin:"-2px 0 0 0"},onClick:function(){return(0,y.navigateTo)(b.preTaksUrl.create(t.dsId,t.dsCycle))}},void 0,"\u521b\u5efa\u9884\u5904\u7406",L),(0,d.default)("span",{style:{cursor:"-1"!==t.inUse?"":"pointer",color:"-1"!==t.inUse?"#A2B0C4":"#147BD1"},onClick:"-1"!==t.inUse?null:function(){return n.deleteDsCycles(t)}},void 0,"-1"!==t.inUse?"":"\u5220\u9664","-1"!==t.inUse?(0,d.default)(i.default,{placement:"leftTop",visible:!(!n.state.tooltipVisible||n.state.id!==t.id),title:N},_.uniqueId(),(0,d.default)(m.QuestionCircleOutlined,{onClick:function(){return n.opToolTipMsg(t)},className:"icon",title:"\u6570\u636e\u96c6\u5df2\u88ab\u4f7f\u7528\uff0c\u70b9\u51fb\u67e5\u770b\u8be6\u60c5"})):""),(0,d.default)("span",{style:{cursor:"pointer",color:"red",display:1===t.status?"":"none"},onClick:function(){return n.stopDsCycles(t)}},void 0,A,"\u505c\u6b62"))}}],t=n.props.cyclesData.size>0?n.props.cyclesData.toJS():[];return n.props.cyclesDataloading?(0,d.default)("div",{style:{marginTop:15,paddingTop:20}},void 0,R):(0,d.default)("div",{style:{padding:"16px 0px"}},void 0,(0,d.default)(r.default,{bordered:!1,columns:e,rowKey:"id",dataSource:t,pagination:!1}))},n.callVisible=function(){n.setState({modalVisible:!1})},n.openError=function(e){n.props.dispatch(C.dataSourceActions.getDataSourceErrorLogsRequest({dsId:e.dsId,cycleId:e.dsCycle})),n.setState({modalVisible:!0})},n.stopDsCycles=function(e){s.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u505c\u6b62\u6570\u636e\u96c6["+e.dsCycle+"]",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(C.dataSourceActions.cancelExecuteRequest({cycleId:e.dsCycle,dsId:e.dsId})),new Promise((function(t){_.defer((function(){var a=setInterval((function(){if(n.props.cancelExecute.size>0){clearInterval(a);var s=n.props.cancelExecute.toJS();s.code>0?o.default.success(s.message):o.default.error(s.message),n.openDeploy(e.dsId),n.props.dispatch(C.dataSourceActions.resetCancelExecute()),t()}}),500)}))}))}})},n.onTaskChange=function(e){var t="text"!==e.dataType&&"img"!==e.dataType&&"audio"!==e.dataType&&"video"!==e.dataType?"db":e.dataType;if("db"===t)(0,y.navigateTo)(b.taskAUrl.editBTaskByDataSource("create",e.dsId,n.name,e.dsCycle,e.dataType));else if("audio"===t||"video"===t||"img"===t||"text"===t){var a=_.findIndex(n.state.sourceData,(function(t){return t.dsId==e.dsId}));(0,y.navigateTo)(b.taskAUrl.editMarkTool(e.dsId,_.get(n.state.sourceData[a],"name"),e.dsCycle,t))}else(0,y.navigateTo)(b.taskAUrl.editATaskByDataSource("create",e.dsId,n.name,e.dsCycle,t,e.dataType))},n.onReviewChange=function(e){var t=n;s.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5ba1\u67e5\u6570\u636e\u96c6["+e.dsCycle+"]",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.props.dispatch(C.dataSourceActions.getCyclesReviewRequest({dsCycle:e.dsCycle,dsId:e.dsId}))}})},n.opToolTipMsg=function(e){n.props.dispatch(C.dataSourceActions.resetGetDataSourceQuote()),n.state.tooltipVisible?n.setState({tooltipVisible:!1,id:e.id}):(n.props.dispatch(C.dataSourceActions.getDataSourceQuoteRequest({dsCycle:e.dsCycle,dsId:e.dsId})),n.setState({tooltipVisible:!0,id:e.id}))},n.deleteDsCycles=function(e){s.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u6570\u636e\u96c6["+e.dsCycle+"]",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(C.dataSourceActions.deleteCyclesBySourcesIdRequest({dsCycle:e.dsCycle,dsId:e.dsId})),new Promise((function(e){_.defer((function(){var t=setInterval((function(){n.props.deleteDsCyclesCode.size>0&&(clearInterval(t),n.props.deleteDsCyclesCode.toJS().code>0?(o.default.success("\u5220\u9664\u6570\u636e\u96c6\u5468\u671f\u6210\u529f!"),n.props.dispatch(C.dataSourceActions.resetDeleteCyclesBySourcesId())):(o.default.error("\u5220\u9664\u6570\u636e\u96c6\u5468\u671f\u5931\u8d25!"),n.props.dispatch(C.dataSourceActions.resetDeleteCyclesBySourcesId()))),e()}),300)}))}))}})},n.sectionToChinese=function(e){return{2:"\u4e00",3:"\u4e8c",4:"\u4e09",5:"\u56db",6:"\u4e94",7:"\u516d",1:"\u5929"}[e]},n.modalClick=function(e){n.props.dispatch(h.indiSetActions.getKpiDataListRequest({typeId:"2",kpisetName:"",dsId:""})),new Promise((function(t){_.defer((function(){var a=setInterval((function(){if(!1===n.props.kpiDataLoading){if(clearInterval(a),n.props.kpiData.size>0){var s=n.props.kpiData.toJS();if(-1===_.findIndex(s,(function(t){return t.dsId==e.dsId})))o.default.warning(e.name+"\u6570\u636e\uff0c\u5728\u6570\u636e\u63a2\u7d22\u6a21\u5757\u65e0\u67e5\u770b\u6743\u9650\uff01");else{var r=window.open(),i="/datamgr/dataExplorer?dsId="+e.dsId+"&dsCycle="+(void 0===e.dsCycle?null:e.dsCycle)+"&kpiTypeId=2";r.location.href=(0,v.buildWebUrl)(i)}}t()}}),300)}))}))},n.cleanDsCycles=function(e){s.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u6e05\u9664\u6570\u636e\u96c6\u5468\u671f["+e.dsCycle+"]",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(C.dataSourceActions.cleanDataSourceCyclesRequest({cycleId:e.dsCycle,dsId:e.dsId})),new Promise((function(t){_.defer((function(){var a=setInterval((function(){n.props.cleanDataCode>0&&(clearInterval(a),n.props.cleanDataCode>0?(o.default.success("\u6e05\u9664\u6570\u636e\u96c6\u5468\u671f\u6210\u529f!"),n.openDeploy(e.dsId)):o.default.error("\u6e05\u9664\u6570\u636e\u96c6\u5468\u671f\u5931\u8d25!"),n.props.dispatch(C.dataSourceActions.resetClean())),t()}),300)}))}))}})},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.props.onChange("offset,limit",[parseInt(e),parseInt(t)])},n.state={sourceData:[],expandedRowKeys:[],currentPage:1,id:"",dsId:"",tooltipVisible:!1},n.pageSize=10,n.initLoad=!0,n.searchCond={},n.name="",n.columns=[{title:"\u6570\u636e\u96c6\u540d\u79f0",dataIndex:"name",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7c7b\u578b",dataIndex:"dsClass",ellipsis:!0,width:"120px",render:function(e){var t={1:"\u7ed3\u6784\u5316",2:"\u56fe\u7247",3:"\u6587\u672c",4:"\u97f3\u9891",5:"\u89c6\u9891"}[e];return(0,d.default)(i.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u6765\u6e90",dataIndex:"dataType",ellipsis:!0,width:"120px",render:function(e,t){var a={db:"\u6570\u636e\u5e93",ftp:"FTP",file:"\u672c\u5730\u6587\u4ef6",ns_local:"\u672c\u5730\u6587\u4ef6",ns_ftp:"FTP"},n="1"===t.dsClass?a[e]:a[t.fileTransferFlag];return(0,d.default)(i.default,{placement:"topLeft",title:n},void 0,n)}},{title:"\u6765\u6e90\u8be6\u60c5",dataIndex:"dataSourceName",ellipsis:!0,width:"150px",render:function(e,t){return(0,d.default)(i.default,{placement:"topLeft",title:t.sqlSentence?t.sqlSentence:e},void 0,t.sqlSentence?t.sqlSentence:e)}},{title:"\u6570\u636e\u96c6\u7528\u9014",dataIndex:"dsType",width:110,render:function(e){for(var t=n.props.dicHelper("DS_PURPOSE").list(),a="",o=0;o<t.length;o++)if(e===t[o].value){a=t[o].txt;break}return(0,d.default)(I.LineWrap,{title:a||"--",lineClampNum:1})}},{title:"\u5468\u671f",dataIndex:"cronTrigger",width:100,render:function(e,t){var a="\u6267\u884c\u4e00\u6b21";return e&&""!==e&&("2"===t.cronType?a="\u6bcf\u6708"+parseInt(e.split(" ")[3])+"\u53f7 "+parseInt(e.split(" ")[2])+"\u70b9"+("?"!==e.split(" ")[1]?parseInt(e.split(" ")[1])+"\u5206":"0\u5206"):"3"===t.cronType?a="\u6bcf\u5468\u661f\u671f"+n.sectionToChinese(e.split(" ")[5])+" "+parseInt(e.split(" ")[2])+"\u70b9"+("?"!==e.split(" ")[1]?parseInt(e.split(" ")[1])+"\u5206":"0\u5206"):"4"===t.cronType&&(a="\u6bcf\u5929"+parseInt(e.split(" ")[2])+"\u70b9"+("?"!==e.split(" ")[1]?parseInt(e.split(" ")[1])+"\u5206":"0\u5206"))),(0,d.default)(I.LineWrap,{title:a,lineClampNum:1})}},{title:"\u64cd\u4f5c",width:220,render:function(e,t){return(0,d.default)("div",{},void 0,-1!==_.indexOf([0,9,10,8,11],t.status)&&(0,d.default)(D.default,{permissions:["DATA_SOURCE:UPDATE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,d.default)("a",{href:"javascript:;",onClick:function(){n.props.openCreateDataSourcePage(t.dsId,"edit",t.dsClass)}},void 0,"\u4fee\u6539",F)),(0,d.default)(D.default,{permissions:["DATA_SOURCE:EXPLORE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,-1===_.indexOf(["img","text"],t.dataType)&&(0,d.default)("a",{href:"javascript:;",style:{display:"none"},onClick:function(){n.modalClick(t)}},void 0,O,"\u6570\u636e\u63a2\u7d22")),-1!==_.indexOf(["-1"],t.inUse)&&(0,d.default)(D.default,{permissions:["DATA_SOURCE:DELETE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,d.default)("a",{href:"javascript:;",onClick:function(){n.deleteSource(t)},style:{color:"#147BD1"}},void 0,"\u5220\u9664")))}}],n}return(0,c.default)(t,e),t.prototype.componentWillUnmount=function(){this.props.dispatch(C.dataSourceActions.stopIntervalGetCycles())},t.prototype.openDeploy=function(e){this.props.dispatch(C.dataSourceActions.resetDataCyclesList()),this.props.dispatch(C.dataSourceActions.refreshDataCyclesListRequest({dsId:e,status:"",_SYNC:!0,_SYNC_INTERVAL:1e4}))},t.prototype.cleanSource=function(e){var t=this,a=this;s.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u6e05\u9664\u6570\u636e\u96c6["+e.name+"]",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return a.props.dispatch(C.dataSourceActions.cleanDataSourceRequest({dsId:e.dsId})),new Promise((function(n){_.defer((function(){var s=setInterval((function(){!1===t.props.opreateLoading&&(clearInterval(s),0===_.size(t.props.operateError)?o.default.success("\u6e05\u9664[ "+e.name+" ]\u6210\u529f!"):o.default.error("\u6e05\u9664[ "+e.name+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+t.props.operateError.join(",")),a.props.dispatch(C.dataSourceActions.resetClean()),a.props.fetchDataSource(),n())}),300)}))}))}})},t.prototype.deleteSource=function(e){var t=this,a=this;s.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u6570\u636e\u96c6["+e.name+"]",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return a.props.dispatch(C.dataSourceActions.deleteDataSourceInfoRequest(e.dsId)),new Promise((function(a){_.defer((function(){var n=setInterval((function(){!1===t.props.opreateLoading&&(clearInterval(n),0===_.size(t.props.operateError)?o.default.success("\u5220\u9664[ "+e.name+" ]\u6210\u529f!"):o.default.error("\u5220\u9664[ "+e.name+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+t.props.operateError.join(",")),a())}),300)}))}))}})},t.getDerivedStateFromProps=function(e,t){return 1===e.cyclesReviewCode&&(e.dispatch(C.dataSourceActions.resetGetCyclesReview()),1===e.cyclesReviewCode?(o.default.success("\u5ba1\u67e5\u6210\u529f!"),e.dispatch(C.dataSourceActions.refreshDataCyclesListRequest({dsId:t.dsId,status:"",_SYNC:!0,_SYNC_INTERVAL:1e4}))):o.default.error("\u5ba1\u67e5\u5931\u8d25!")),{sourceData:e.sourceData.toJS()}},t.prototype.render=function(){var e=this.props.sourcesPagination?this.props.sourcesPagination.toJS():{};return(0,d.default)("div",{style:{width:"100%"}},void 0,(0,d.default)(I.ModalView,{modalTitle:"\u9519\u8bef\u65e5\u5fd7",closable:!0,width:1e3,centered:!0,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,d.default)(w.default,{closeKpiConfig:this.callVisible})}),(0,d.default)(k,{className:"animated fadeIn"},void 0,this.props.loading&&(0,d.default)("div",{style:{height:600}},void 0,V),!this.props.loading&&(0,d.default)(r.default,{bordered:!0,pagination:!1,expandedRowRender:this.expandedRowRender,onExpand:this.onExpand,expandedRowKeys:this.state.expandedRowKeys,rowKey:"dsId",columns:this.columns,dataSource:this.state.sourceData}),!this.props.loading&&0===this.state.sourceData.size&&U),(0,d.default)("div",{style:{margin:"1.5%",textAlign:"right"}},void 0,(0,d.default)(I.TabPagination,{currentPage:e.offset,pageSize:10,total:e.total,onChange:this.onChangePage})))},t}(f.Component);t.default=(0,j.connect)((function(e){return{operateError:(0,E.selectOperateError)(e),dicHelper:(0,S.default)(e),sourcesPagination:(0,E.selectSourcesPagination)(e),opreateLoading:(0,E.selectOperateLoading)(e),sourceData:(0,E.selectSourceData)(e),loading:(0,E.selectSourceDataLoading)(e),kpiData:(0,x.selectKpiDataList)(e),kpiDataLoading:(0,x.selectKpiDataLoading)(e),deleteDsCyclesCode:(0,E.deleteCyclesBySourcesIdCode)(e),cleanDataCode:(0,E.selectCleanDataCode)(e),cancelExecute:(0,E.selectCancelExecute)(e),cyclesData:(0,E.selectCyclesData)(e),cyclesDataloading:(0,E.selectCyclesDataLoading)(e),cyclesReviewCode:(0,E.selectCyclesReviewCode)(e)}}))((0,T.withErrorBoundary)(B))},"./src/module/dataMgr/dataSource/dataSourceHome/DataSourcePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=L(a("./node_modules/antd/es/button/index.js")),o=L(a("./node_modules/babel-runtime/helpers/jsx.js")),s=L(a("./node_modules/antd/es/message/index.js")),r=L(a("./node_modules/babel-runtime/helpers/extends.js")),i=L(a("./node_modules/antd/es/modal/index.js")),d=L(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=L(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=L(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=a("./node_modules/react/index.js"),p=(L(c),L(a("./node_modules/prop-types/index.js")),L(a("./node_modules/lodash/lodash.js"))),f=(a("./node_modules/immutable3/dist/immutable.js"),L(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./node_modules/react-redux/es/index.js"),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./src/config/ui-config.js"),v=a("./src/redux/reducers/indiSet.js"),_=a("./src/redux/reducers/dataSource.js"),y=a("./src/components/auth/optionAuth.jsx"),b=a("./node_modules/react-sticky/lib/index.js"),x=a("./src/redux/reducers/dataBases.js"),C=a("./src/redux/selectors/modelManage.js"),j=a("./src/redux/selectors/dataSource.js"),S=L(a("./src/module/dataMgr/dataSource/dataSourceHome/SearchBar.jsx")),I=L(a("./src/module/dataMgr/dataSource/dataSourceHome/DataSourceListView.jsx")),T=a("./src/utils/history.js"),w=L(a("./src/redux/selectors/enumDic.js")),E=a("./src/routes/routeHelper.jsx"),D=L(a("./src/components/auth/funAuth.jsx")),M=a("./src/styles/GlobalStyle.js"),k=a("./src/components/index.js"),P=L(a("./src/redux/services/dataSource.js"));function L(e){return e&&e.__esModule?e:{default:e}}var N=f.default.div.withConfig({displayName:"DataSourcePage__DropdownButtonWrapper",componentId:"sc-1hiacxt-0"})([".ant-dropdown-menu{position:relative;margin-left:10px;padding:4px 0;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:4px;outline:none;box-shadow:0 2px 8px rgba(0,0,0,0.15);}"]),A=(0,o.default)(h.PlusOutlined,{}),R=(0,o.default)(h.PlusOutlined,{}),F=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.updateStep=function(e){n.setState({step:e})},n.componentDidMount=function(){n.props.dispatch(_.dataSourceActions.resetDataSourceList()),n.props.dispatch(v.indiSetActions.getKpiDataListRequest({typeId:"2",kpisetName:"",dsId:""})),n.props.dispatch(x.dataBasesActions.getDataBasesDownRequest({dbType:null})),n.props.dispatch(_.dataSourceActions.getDataSourceListRequest(n.searchCond)),P.default.getDataSourceList({offset:1,limit:1}).then((function(e){var t=!1;e.data&&Array.isArray(e.data)&&e.data.length>0&&(t=!0),n.setState({hasData:t})}))},n.changeSearchConds=function(e,t){if(-1!==e.indexOf(","))for(var a=e.split(","),o=0;o<a.length;o++)n.searchCond[a[o]]=t[o];else n.searchCond[e]=p.default.trim(t),delete n.searchCond.offset,delete n.searchCond.limit;n.fetchDataSource(n.searchCond)},n.fetchDataSource=function(e){n.props.dispatch(_.dataSourceActions.getDataSourceListRequest(void 0===e?n.searchCond:e))},n.handleAction=function(e,t){var a=p.default.get(n,p.default.camelCase("handle_"+e+"_action"));a&&p.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.handleEditAction=function(){},n.handleDeleteAction=function(){},n.handleMaintainAction=function(){},n.handleExploreAction=function(){},n._handleAction=function(e,t,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a+"[ "+e.modelName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(t((0,r.default)({modelInfo:e},o))),new Promise((function(t){p.default.defer((function(){var o=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(o),0===p.default.size(n.props.operateError)?s.default.success(a+"[ "+e.modelName+" ]\u6210\u529f!"):s.default.error(a+"[ "+e.modelName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.openCreateDataSourcePage=function(e,t,a){void 0!==e&&(n.props.dispatch(_.dataSourceActions.resetSaveDataSource()),"3"===a||"2"===a||"4"===a?(0,T.navigateTo)(E.dataMgrUrl.noStructureEdit(e,null)):(0,T.navigateTo)(E.dataMgrUrl.structureEdit(e,null)))},n.openSourceType=function(e){var t=e.key;n.props.dispatch(_.dataSourceActions.resetSaveDataSource()),"1"===t?(0,T.navigateTo)(E.dataMgrUrl.structureCreate(n.appId)):(0,T.navigateTo)(E.dataMgrUrl.noStructureCreate(n.appId))},n.state={modalVisible:!1,step:1,sourceType:"",hasData:!0},n.appId=p.default.get(a.location,"state.applicationId",null),n.searchCond={type:"paging",name:"",dsType:null,dataType:null,status:null,offset:1,limit:10,sortField:"create_time",appId:n.appId},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this;return this.props.loading||this.state.hasData?(0,o.default)(M.PageWrapper,{},void 0,(0,o.default)(b.StickyContainer,{},void 0,!this.props.loading&&(0,o.default)(M.PageHeader,{},void 0,(0,o.default)(N,{},void 0,(0,y.hasOption)("root.datasource.dsType","1")&&(0,o.default)(n.default,{style:{marginRight:20},type:"primary",onClick:function(){e.openSourceType({key:"1"})},className:"saveButton"},void 0,A,"\u65b0\u589e\u7ed3\u6784\u5316"),(0,o.default)(D.default,{permissions:["DATA_SOURCE:CREATE"],displayType:"hide"},void 0,(0,o.default)(n.default,{type:"primary",onClick:function(){e.openSourceType({key:"3"})},className:"saveButton"},void 0,R,"\u65b0\u589e\u975e\u7ed3\u6784\u5316"))),(0,o.default)(S.default,{viewMode:this.state.viewMode,name:this.searchCond.name,sortField:this.searchCond.sortField,onChange:this.changeSearchConds,appId:this.appId})),(0,o.default)(M.PageBody,{},void 0,(0,o.default)(I.default,{fetchDataSource:this.fetchDataSource,openCreateDataSourcePage:this.openCreateDataSourcePage,onChange:this.changeSearchConds,statusColorMap:g.MODEL_STATUS_COLOR_MAP,onHandleAction:this.handleAction})))):(0,o.default)(k.NoDataCreate,{from:"dataSource",appId:this.appId})},t}(c.Component);F.defaultProps={opreateLoading:!1};t.default=(0,m.connect)((function(e){return{operateError:(0,C.selectOperateError)(e),opreateLoading:(0,C.selectOperateLoading)(e),loading:(0,j.selectSourceDataLoading)(e),dicHelper:(0,w.default)(e),sourceData:(0,j.selectSourceData)(e)}}))(F)},"./src/module/dataMgr/dataSource/dataSourceHome/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/alert/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js")),d=p(a("./node_modules/antd/es/input/index.js")),l=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=p(a("./node_modules/react/index.js")),c=(p(a("./node_modules/prop-types/index.js")),a("./src/styles/GlobalStyle.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.Option,m=d.default.Search,h={width:"120px"},g=(0,o.default)(f,{value:"create_time"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),v=(0,o.default)(f,{value:"name"},void 0,"\u6309\u7167\u540d\u79f0\u6392\u5e8f"),y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("name",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,i.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,o.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,this.props.appId&&(0,o.default)(n.default,{style:{padding:"6px 15px"},message:"\u5df2\u6709\u56fa\u5b9a\u5e94\u7528\u7b5b\u9009\u4fe1\u606f",type:"warning"}),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(l.default,{onChange:this.changeSortField,style:h,getPopupContainer:function(e){return e.parentNode},placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,g,v)),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",defaultValue:this.props.name,onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(u.default.Component);t.default=y},"./src/module/dataMgr/dataSource/dataSourceHome/components/ErrorConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.ErrorConfigPage=void 0;var n=p(a("./node_modules/antd/es/button/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/dataSource.js")),u=a("./node_modules/react-redux/es/index.js"),c=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=t.ErrorConfigPage=c.default.div.withConfig({displayName:"ErrorConfig__ErrorConfigPage",componentId:"cpnos-0"})(["margin:-16px;display:flex;flex-direction:column;margin-bottom:10px;border:0px;height:480px;.content{border-bottom:1px solid\xa0#00CF9B;background:#f9fafc;height:90%;}"]),m=c.default.div.withConfig({displayName:"ErrorConfig__Logs",componentId:"cpnos-1"})(["padding:10px;color:RGBA(206,207,207,1);background:RGBA(62,65,66,1);overflow:auto;border-radius:2px;word-break:break-all;height:500px;overflow:auto;p{margin:0;overflow:hidden;span{padding:5px;&.log-time{width:130px;padding-left:0;color:RGBA(0,137,2,1);}&.log-level{width:35px;color:RGBA(83,135,208,1);}&.log-message{color:RGBA(225,229,230,1);word-wrap:break-all;}&.log-ERROR{&.log-message,&.log-level{color:RGBA(246,124,113,1);}}&.log-WARN{&.log-message,&.log-level{color:RGBA(193,176,30,1);}}}}"]),h=t.ButtonDom=c.default.div.withConfig({displayName:"ErrorConfig__ButtonDom",componentId:"cpnos-2"})(["height:28px;text-align:right;margin-right:4.3%;"]),g=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.closeModal=function(){n.props.closeKpiConfig()},n.state={},n}return(0,i.default)(t,e),t.prototype.render=function(){return(0,o.default)(f,{},void 0,(0,o.default)(m,{},void 0,(0,o.default)("p",{className:"log-message"},void 0,(0,o.default)("span",{className:"log-msg"},void 0," ",this.props.errLogs))),(0,o.default)(h,{},void 0,(0,o.default)(n.default,{size:"small",style:{top:"80%",marginLeft:"3.1%"},onClick:this.closeModal},void 0,"\u5173\u95ed")))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{errLogs:(0,l.selectDatasSourcesErrLogs)(e)}}))(g)},"./src/module/dataMgr/dataSource/dataSourceHome/components/TooltipInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TooltipInfoDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/redux/selectors/dataSource.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=t.TooltipInfoDom=d.default.div.withConfig({displayName:"TooltipInfo__TooltipInfoDom",componentId:"sc-1qtvtgg-0"})(["width:200px;span{display:block;margin:10px 10px 10px 5px;font-size:12px;color:#ffffff;}.contentDiv{display:flex;}.head{text-align:center;min-width:177px;min-height:25px;border-bottom:1px solid #e8e8e8;color:rgba(0,0,0,0.85);font-weight:500;span{margin:0;}}"]),f=(0,n.default)("span",{},void 0,"\u4f7f\u7528\u60c5\u51b5"),m=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.dataSourceQuote.size>0?this.props.dataSourceQuote.toJS():{},t={appTopicList:"\u6a21 \u578b \u5e94 \u7528",dsFieldTaskList:"\u6570\u636e\u9884\u5904\u7406",modelList:"\u6a21 \u578b \u8bad \u7ec3"};return(0,n.default)(p,{},void 0,(0,n.default)("div",{className:"head",style:{display:void 0===e.appTopicList?"none":""}},void 0,f),this.props.loading&&(0,n.default)("span",{style:{fontSize:10}},void 0,"\u6570\u636e\u52a0\u8f7d\u4e2d......"),void 0!==e.appTopicList&&Object.keys(e).map((function(a){return(0,n.default)("div",{className:"contentDiv",style:{display:0===e[a].length?"none":""}},a,(0,n.default)("span",{style:{fontSize:11}},a,t[a],"\uff1a"),(0,n.default)("div",{},a,e[a].length>0&&e[a].map((function(t,o){return(0,n.default)("span",{style:{fontSize:10},title:t},_.uniqueId()+o,t.length>10?t.substring(0,10)+"..":t,e[a].length-1===o?"":", ")}))))})))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{dataSourceQuote:(0,u.selectDataSourceQuote)(e),loading:(0,u.selectDataSourceQuoteLoading)(e)}}))(m)},"./src/module/dataMgr/dataSource/picPreview/PicturePreviewPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),a("./node_modules/react-redux/es/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./src/module/dataMgr/dataSource/picPreview/components/PicturePreview.jsx"))),u=a("./src/redux/reducers/dataSource.js"),c=a("./src/redux/selectors/dataSource.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var a,n,r;(0,o.default)(this,t);for(var i=arguments.length,d=Array(i),l=0;l<i;l++)d[l]=arguments[l];return a=n=(0,s.default)(this,e.call.apply(e,[this].concat(d))),n.onChangePath=function(e){n.props.dispatch(u.dataSourceActions.getPicPreviewDataRequest({isCache:"1",fileType:n.props.fileType,ftpId:n.props.ftpId,filePath:n.props.filePath+(_.endsWith(n.props.filePath,"/")?"":"/")+e}))},r=a,(0,s.default)(n,r)}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(u.dataSourceActions.getPicPreviewDataRequest({isCache:"1",fileType:this.props.fileType,ftpId:this.props.ftpId,filePath:this.props.filePath}))},t.prototype.componentWillUnmount=function(){this.props.dispatch(u.dataSourceActions.resetPicPreviewData())},t.prototype.render=function(){var e=this.props,t=e.resultData,a=e.loading,o=t&&t.toJS&&t.toJS();return(0,n.default)(l.default,{fileType:this.props.fileType,loading:a,data:o,openTextDir:this.props.openTextDir,ftpId:this.props.ftpId,onChangePath:this.onChangePath,onClosePreview:this.props.onClosePreview})},t}(i.Component);t.default=(0,d.connect)((function(e){return{resultData:(0,c.selectPicPreviewData)(e),loading:(0,c.selectPicPreviewLoading)(e)}}))(f)},"./src/module/dataMgr/dataSource/picPreview/components/PicturePreview.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/divider/index.js")),o=_(a("./node_modules/antd/es/button/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=_(a("./node_modules/babel-runtime/helpers/inherits.js")),l=_(a("./node_modules/antd/es/breadcrumb/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/breadcrumb/style/index.js");var u=a("./node_modules/react/index.js"),c=(_(u),_(a("./node_modules/lodash/lodash.js"))),p=a("./src/components/index.js"),f=_(a("./node_modules/react-image/es/index.js")),m=(_(a("./node_modules/prop-types/index.js")),a("./node_modules/polished/dist/polished.es.js")),h=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/utils/constants.js"),v=_(a("./src/styles/images/nopic.png"));function _(e){return e&&e.__esModule?e:{default:e}}var y=l.default.Item,b=h.default.div.withConfig({displayName:"PicturePreview__PreviewOverlay",componentId:"sc-90bikn-0"})(["position:absolute;z-index:9999;background:rgba(0,0,0,0.6);top:0px;bottom:0px;left:0px;right:0px;border-radius:4px;.preview-box{margin:30px;border-radius:4px;height:480px;background:#fff;.ant-divider,.ant-divider-vertical{margin:0;}.preview-button{display:flex;justify-content:flex-end;button{margin-right:30px;}}}"]),x=(0,h.default)(l.default).withConfig({displayName:"PicturePreview__BreadcrumbDiv",componentId:"sc-90bikn-1"})(["padding:20px 0 10px 20px !important;.crumb-nav{color:rgba(0,0,0,0.65);&:hover{color:#1890ff;cursor:pointer;}}.crumb-nav-disable{color:#a2b0c4;}"]),C=h.default.div.withConfig({displayName:"PicturePreview__PictureList",componentId:"sc-90bikn-2"})(["padding:20px;display:flex;flex-direction:row;align-items:flex-start;height:350px;overflow:auto;flex-wrap:wrap;"]),j=h.default.div.withConfig({displayName:"PicturePreview__PictureFolder",componentId:"sc-90bikn-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;margin-right:35px;margin-bottom:35px;.file-box{display:flex;flex-direction:column;justify-content:center;align-items:center;width:120px;height:90px;transition:all 0.2s ease-in-out;}.file-info{margin-top:15px;display:flext;justify-content:center;span{width:120px;text-align:center;",";}}.folder-text{position:relative;padding-top:12px;width:64px;.folder-text-rect1{position:absolute;top:0px;left:0px;width:60px;height:25px;z-index:3;background:#f4f4f4;border-radius:4px 4px 0 0;}.folder-text-rect2{width:68px;height:60px;background:#f4f4f4;border-radius:0 2px 4px 4px;}}.folder-icon{position:relative;padding-top:12px;width:64px;.folder-icon-rect1{position:absolute;top:0px;left:0px;width:32px;height:25px;z-index:3;background:#ffcf5c;border-radius:4px 4px 0 0;}.folder-icon-line{position:absolute;z-index:2;top:5px;left:30px;width:25px;background:#f9b552;height:1.5px;border-radius:2px 2px 0 0;}.folder-icon-rect2{width:68px;height:45px;background:#ffcf5c;border-radius:0 2px 4px 4px;}}&:hover{cursor:pointer;.file-box{transform:scale(1.4);&.pictrue{background:rgba(162,176,196,0.5);border:1px solid #ccd5e0;transform:scale(1.2);}}.file-info{color:#1890ff;}}"],(0,m.ellipsis)()),S=(0,h.default)(j).withConfig({displayName:"PicturePreview__Picture",componentId:"sc-90bikn-4"})([".pictrue{background:rgba(162,176,196,0.1);border:1px solid #ccd5e0;width:120px;height:90px;padding:3px;overflow:hidden;a,img{max-width:112px;max-height:75px;}}"]),I=h.default.div.withConfig({displayName:"PicturePreview__SummaryInfo",componentId:"sc-90bikn-5"})(["padding:10px 20px;strong{color:#1890ff;}"]),T=(0,s.default)(n.default,{}),w=(0,s.default)(p.LoadingIndicator,{}),E=(0,s.default)(p.NoData,{position:"relative"}),D=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-icon"},void 0,(0,s.default)("div",{className:"folder-icon-rect1"}),(0,s.default)("div",{className:"folder-icon-line"}),(0,s.default)("div",{className:"folder-icon-rect2"}))),M=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-text"},void 0,(0,s.default)("div",{className:"folder-text-rect1"}),(0,s.default)("div",{className:"folder-text-rect2"}))),k=(0,s.default)(n.default,{}),P=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.openDir=function(e){var t=[].concat(n.state.crumbs,[e]);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.openTextDir=function(e){n.props.openTextDir(e,n.props.ftpId)},n.changePath=function(e){var t=n.state.crumbs.slice(0,e+1);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.state={crumbs:[]},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data;return(0,s.default)(b,{className:"animated fadeIn",onClick:this.props.onClosePreview},void 0,(0,s.default)("div",{className:"preview-box",onClick:function(e){return e.stopPropagation()}},void 0,(0,s.default)(x,{},void 0,(0,s.default)(y,{className:"crumb-nav",onClick:function(){return e.changePath(-1,"\u6839\u76ee\u5f55")}},void 0,"\u6839\u76ee\u5f55"),this.state.crumbs.map((function(t,a){return(0,s.default)(y,{className:a<e.state.crumbs.length-1?"crumb-nav":"crumb-nav-disable",onClick:function(){return e.changePath(a,t)}},t,t)}))),T,(0,s.default)(C,{},void 0,this.props.loading&&w,!this.props.loading&&c.default.isEmpty(t.items)&&E,!this.props.loading&&t.items&&c.default.isArray(t.items)&&c.default.orderBy(t.items,["isDir"],["desc"]).map((function(t,a){return!0===t.isDir?(0,s.default)(j,{onClick:function(){return e.openDir(t.fileName)}},a,D,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName))):1===e.props.fileType?(0,s.default)(S,{},a,(0,s.default)("div",{className:"file-box pictrue"},void 0,(0,s.default)("a",{href:(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),target:"_blank",rel:"noreferrer"},void 0,c.default.startsWith(t.thumbnail,"data:image")?(0,s.default)("img",{"data-imgurl":(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),src:t.thumbnail}):(0,s.default)(f.default,{"data-imgurl":(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),src:[(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.thumbnail),v.default],alt:t.fileName}))),(0,s.default)("div",{className:"file-info"},void 0,(0,s.default)("span",{},void 0,t.fileName))):(0,s.default)(j,{onClick:function(){return e.openTextDir(t.ftpFilePath)}},a,M,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName)))}))),k,(0,s.default)(I,{},void 0,"\u603b\u5171",(0,s.default)("strong",{},void 0,c.default.isNumber(t.subDirCount)?t.subDirCount:"--"),"\u4e2a\u76ee\u5f55\uff0c",(0,s.default)("strong",{},void 0,c.default.isNumber(t.imageCount)?t.imageCount:"--"),1===this.props.fileType?"\u5f20\u56fe\u7247":"\u4e2a\u6587\u4ef6","\uff0c \u9ed8\u8ba4\u9884\u89c8\u5c55\u793a\u6700\u591a 10 \u4e2a\u76ee\u5f55\uff0c\u76ee\u5f55\u4e0b\u6700\u591a\u5c55\u793a 10"," ",1===this.props.fileType?"\u5f20\u56fe\u7247":"\u4e2a\u6587\u4ef6"),(0,s.default)("div",{className:"preview-button"},void 0,(0,s.default)(o.default,{onClick:this.props.onClosePreview},void 0,"\u5173\u95ed\u9884\u89c8"))))},t}(u.PureComponent);P.defaultProps={onChangePath:c.default.noop,onClosePreview:c.default.noop,data:{}},t.default=P},"./src/module/dataMgr/dataSource/util/formatData.js":function(e,t,a){"use strict";t.__esModule=!0,t.serviceFtpAudioDataFormat=function(e,t){var a={},n={name:e.dataSourceInfo.name,dsClass:"audio"===t?"4":"5",dsType:e.dataSourceInfo.dsType,identifyField:"",dataSaveCycle:void 0===e.strategyInfo?"":e.strategyInfo.dataSaveCycle,cronType:e.cycleInfo.cronType,cronTrigger:e.cycleInfo.cronTrigger};return a.fileTransferFlag=e.ftpImgInfo.type,a.type="ftp",n.dataType=t,a.filePath=e.ftpImgInfo.filePath,a.ftpId=e.ftpImgInfo.ftpId,n.dsConf=a,n},t.serviceFtpImgDataFormat=function(e){var t={},a={name:e.dataSourceInfo.name,dsClass:"2",dsType:e.dataSourceInfo.dsType,identifyField:"",dataSaveCycle:void 0===e.strategyInfo?"":e.strategyInfo.dataSaveCycle,cronType:e.cycleInfo.cronType,cronTrigger:e.cycleInfo.cronTrigger};return t.fileTransferFlag=e.ftpImgInfo.type,t.type="ftp",a.dataType="img",t.filePath=e.ftpImgInfo.filePath,t.ftpId=e.ftpImgInfo.ftpId,a.dsConf=t,a},t.serviceFtpFileDataFormat=function(e){var t={},a={name:e.dataSourceInfo.name,dsClass:"3",dsType:e.dataSourceInfo.dsType,identifyField:"",dataSaveCycle:void 0===e.strategyInfo?"":e.strategyInfo.dataSaveCycle,cronType:e.cycleInfo.cronType,cronTrigger:e.cycleInfo.cronTrigger};return t.fileTransferFlag=e.ftpImgInfo.type,t.type="ftp",a.dataType="text",t.filePath=e.ftpImgInfo.filePath,t.ftpId=e.ftpImgInfo.ftpId,a.dsConf=t,a},t.serviceDataFormat=function(e){var t={},a=e.defineInfo,n={name:e.dataSourceInfo.name,dsType:e.dataSourceInfo.dsType,identifyField:"",dsClass:"1",dataSaveCycle:void 0===e.strategyInfo||"\u5168\u90e8"===e.strategyInfo.dataSaveCycle?"":e.strategyInfo.dataSaveCycle,cronType:e.cycleInfo.cronType,cronTrigger:e.cycleInfo.cronTrigger,reviewFlag:-1===_.indexOf(["all","train"],e.dataSourceInfo.dsType)?"0":e.advancedConfig.reviewFlag};if("db"===e.advancedConfig.dataType&&void 0!==e.dataBaseConfig){var o=e.dataBaseConfig.resultArrays.dataBaseInfo?e.dataBaseConfig.resultArrays.dataBaseInfo.cycleMask:"",s=e.dataBaseConfig.resultArrays.dataBaseInfo?e.dataBaseConfig.resultArrays.dataBaseInfo.tableName:"";n.extractType=e.dataBaseConfig.resultArrays.dataBasePreview.extractType,n.extractRows=e.dataBaseConfig.resultArrays.dataBasePreview.extractRows.toString(),t.type="db",n.dataType="db",t.dbId=e.dataBaseConfig.resultArrays.dataBaseInfo.dbId,t.tableName=s,t.cycleMask=o,t.sqlSentence=e.dataBaseConfig.resultArrays.dataBaseInfo.sqlSentence,n.identifyField=e.dataBaseConfig.resultArrays.dataBasePreview.identifyField}else if("file"===e.advancedConfig.dataType&&void 0!==e.fileConfig)t.type="file",n.dataType="file",n.extractType=e.fileConfig.resultArrays.filePreview.extractType,n.extractRows=e.fileConfig.resultArrays.filePreview.extractRows.toString(),t.filePath=e.fileConfig.resultArrays.fileInfo.filePath,t.fileSplitChar=e.fileConfig.resultArrays.filePreview.fileSplitChar,t.fileHeaderFlag=e.fileConfig.resultArrays.filePreview.fileHeaderFlag,n.identifyField=e.fileConfig.resultArrays.filePreview.identifyField;else if("ftp"===e.advancedConfig.dataType&&void 0!==e.ftpConfig){t.type="ftp",n.dataType="ftp",n.extractType=e.ftpConfig.resultArrays.ftpPreview.extractType,n.extractRows=e.ftpConfig.resultArrays.ftpPreview.extractRows.toString();var r=e.ftpConfig.resultArrays.ftpInfo.filePath.substr(e.ftpConfig.resultArrays.ftpInfo.filePath.length-1,1);t.filePath="/"!==r?e.ftpConfig.resultArrays.ftpInfo.filePath+"/":e.ftpConfig.resultArrays.ftpInfo.filePath,t.ftpId=e.ftpConfig.resultArrays.ftpInfo.ftpId,t.ftpFileName=e.ftpConfig.resultArrays.ftpInfo.ftpFileName,t.ftpName=e.ftpConfig.resultArrays.ftpInfo.ftpName,t.fileSplitChar=e.ftpConfig.resultArrays.ftpPreview.fileSplitChar,t.fileHeaderFlag=e.ftpConfig.resultArrays.ftpPreview.fileHeaderFlag,n.identifyField=e.ftpConfig.resultArrays.ftpPreview.identifyField}return n.dsConf=t,n.metaDataTemplate=a,n},t.getCycleTable=function(e,t){if(e){var a=e,n=[];if(null!==t){for(var o=t.split("@").length>1?t.split("@")[0]:t,s=0;s<o.split("-").length;s++)n.push(o.split("-")[s]);for(var r=0,i=n.length,d=0;d<i;d++){var l=a.indexOf("{",r),u=a.indexOf("}",l+1);if(!(l>=0&&u>0))break;r=l+1,a=a.substring(0,l+1)+n[d]+a.substring(u)}}var c=a.replace(/{/g,"");return c=c.replace(/}/g,"")}return""},t.validatCycleTable=function(e,t){if(e&&t){for(var a=e.split(""),n=0,o=0,s=0;s<a.length;s++)"{"===a[s]?n=s:"}"===a[s]&&(o=s);var r=(t=t||"").split("@").length>1?t.split("@")[0]:t;if(e.substring(n+1,o).length!==r.length)return!1}return!0};t.default=[]},"./src/module/dataMgr/datasourceDev/DatasourceDevView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/input/index.js")),o=w(a("./node_modules/antd/es/button/index.js")),s=w(a("./node_modules/antd/es/select/index.js")),r=w(a("./node_modules/babel-runtime/helpers/extends.js")),i=w(a("./node_modules/antd/es/space/index.js")),d=w(a("./node_modules/antd/es/modal/index.js")),l=w(a("./node_modules/babel-runtime/helpers/jsx.js")),u=w(a("./node_modules/babel-runtime/regenerator/index.js")),c=w(a("./node_modules/antd/es/message/index.js")),p=w(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),f=w(a("./node_modules/antd/es/form/index.js")),m=w(a("./node_modules/antd/es/tabs/index.js")),h="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\datasourceDev\\DatasourceDevView.jsx";t.default=function(){var e=this,t=(0,C.useHistory)(),a=(0,C.useParams)(),n=a.key,j=a.logId,w=a.page,U=a.pageSize,B=x.default.useRef(),G=x.default.useRef(),z=(0,b.useState)("1"),q=z[0],K=z[1],H=(0,b.useState)(null),Y=H[0],W=H[1],J=(0,b.useState)(1),Q=J[0],Z=J[1],X=(0,b.useState)(10),$=X[0],ee=X[1],te=(0,b.useState)(1),ae=te[0],ne=te[1],oe=(0,b.useState)(10),se=oe[0],re=oe[1],ie=(0,b.useState)(!1),de=ie[0],le=ie[1],ue=(0,b.useState)(!1),ce=ue[0],pe=ue[1],fe=f.default.useForm()[0],me=f.default.useForm()[0],he=(0,b.useState)("ailab"),ge=he[0],ve=he[1];(0,b.useEffect)((function(){n&&(K(n),"2"===n?(Z(w),ee(U)):"3"===n&&(ne(w),re(U),W(j)))}),[n]),(0,b.useEffect)((function(){_e("ailab")}),[]);var _e=function(e){ve(e)},ye=(0,l.default)(d.default,{title:"\u5bfc\u5165\u6570\u636e\u8868",visible:de,onOk:function(){fe.validateFields().then((0,p.default)(u.default.mark((function t(){var a,n,o,s,r,i;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=fe.getFieldValue(),n=a.database_name,o=a.datatable_name,s=a.datatable_path,e.next=3,(0,S.importDatalake)({database_name:n,table_name:o,table_path:s});case 3:r=e.sent,200===(i=r.data).code?(c.default.success("\u5bfc\u5165\u6210\u529f"),fe.resetFields(),le(!1),B.current&&B.current.updateLakeList()):c.default.error(i.msg);case 6:case"end":return e.stop()}}),t,e)})))).catch((function(e){c.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))},okText:"\u786e\u8ba4\u5bfc\u5165",onCancel:function(){fe.resetFields(),le(!1)}},void 0,(0,l.default)(f.default,{form:fe},void 0,(0,l.default)(M,{name:"database_name",label:"\u6570\u636e\u5e93\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u5e93\u540d\u79f0!"}]},void 0,P),(0,l.default)(M,{name:"datatable_name",label:"\u6570\u636e\u8868\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u8868\u540d\u79f0!"}]},void 0,L),(0,l.default)(M,{name:"datatable_path",label:"\u6570\u636e\u8868\u8def\u5f84",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u8868\u8def\u5f84!"}]},void 0,N))),be={labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:18}}},xe={wrapperCol:{xs:{span:24,offset:0},sm:{span:18,offset:6}}},Ce=(0,l.default)(d.default,{title:"\u521b\u5efa\u6570\u636e\u8868",visible:ce,onOk:function(){me.validateFields().then((0,p.default)(u.default.mark((function t(){var a,n,o,s,r,i,d;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=me.getFieldsValue(),n=a.database_field,o=a.table_name,s=a.partition_column,n.find((function(e){return e.column_name===s}))){e.next=10;break}return r={table_name:o,partition_column:s,columns:n},e.next=5,(0,S.craeteAilab)(r);case 5:i=e.sent,200===(d=i.data).code?(c.default.success("\u521b\u5efa\u6210\u529f"),me.resetFields(),pe(!1),B.current&&B.current.updateAilabList()):c.default.error(d.msg),e.next=11;break;case 10:c.default.error("\u5206\u533a\u5b57\u6bb5\u4e0e\u8868\u5b57\u6bb5\u91cd\u590d");case 11:case"end":return e.stop()}}),t,e)})))).catch((function(e){c.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))},okText:"\u786e\u8ba4\u521b\u5efa",onCancel:function(){me.resetFields(),pe(!1)}},void 0,x.default.createElement(f.default,(0,r.default)({form:me},be,{initialValues:{database_field:[{column_name:null,Column_type:null}]},__source:{fileName:h,lineNumber:217}}),(0,l.default)(M,{name:"table_name",label:"\u6570\u636e\u8868\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u8868\u540d\u79f0!"}]},void 0,A),(0,l.default)(k,{name:"database_field",rules:[{validator:function(){var t=(0,p.default)(u.default.mark((function t(a,n){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n&&!(n.length<1)){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("\u6700\u5c11\u5b58\u5728\u4e00\u4e2a\u5b57\u6bb5")));case 2:case"end":return e.stop()}}),t,e)})));return function(e,a){return t.apply(this,arguments)}}()}]},void 0,(function(e,t,a){var n=t.add,d=t.remove;a.errors;return(0,l.default)("div",{style:{maxHeight:"400px",overflow:"auto"}},void 0,e.map((function(t,a){return x.default.createElement(f.default.Item,(0,r.default)({},0===a?be:xe,{label:0===a?"\u8868\u5b57\u6bb5\u8bbe\u7f6e":"",required:!0,key:t.key,__source:{fileName:h,lineNumber:251}}),(0,l.default)(i.default,{},void 0,x.default.createElement(f.default.Item,(0,r.default)({},t,{key:"filed_"+t.key,name:[t.name,"column_name"],validateTrigger:["onChange","onBlur"],rules:[{required:!0,whitespace:!0,message:"\u8bf7\u8f93\u5165\u8868\u5b57\u6bb5"}],noStyle:!0,__source:{fileName:h,lineNumber:258}}),R),x.default.createElement(f.default.Item,(0,r.default)({},t,{key:"type_"+t.key,name:[t.name,"Column_type"],validateTrigger:["onChange","onBlur"],rules:[{required:!0,whitespace:!0,message:"\u8bf7\u9009\u62e9\u8868\u7c7b\u578b"}],noStyle:!0,__source:{fileName:h,lineNumber:274}}),(0,l.default)(s.default,{style:{minWidth:"100px"},placeholder:"\u9009\u62e9\u8868\u7c7b\u578b",options:[{value:"tinyint",label:"tinyint"},{value:"smallint",label:"smallint"},{value:"int",label:"int"},{value:"bigint",label:"bigint"},{value:"boolean",label:"boolean"},{value:"float",label:"float"},{value:"double",label:"double"},{value:"string",label:"string"},{value:"binary",label:"binary"},{value:"timestamp",label:"timestamp"},{value:"decimal",label:"decimal"},{value:"char",label:"char"},{value:"varchar",label:"varchar"},{value:"date",label:"date"}]})),e.length>1?(0,l.default)(I.MinusCircleOutlined,{className:"dynamic-delete-button",onClick:function(){return d(t.name)}}):null))})),x.default.createElement(f.default.Item,(0,r.default)({},xe,{__source:{fileName:h,lineNumber:315}}),(0,l.default)(o.default,{type:"dashed",onClick:function(){return n()},block:!0,icon:F},void 0,"\u7ee7\u7eed\u6dfb\u52a0")))})),O)),je=(0,l.default)(v.default,{updateDataSource:function(){B.current&&B.current.updateSourceList()}});return(0,l.default)(E,{},void 0,(0,l.default)(m.default,{type:"card",tabBarExtraContent:function(){switch(q){case"1":return(0,l.default)(i.default,{},void 0,(0,l.default)(s.default,{value:ge,onChange:_e,options:["1","2","3"].includes(localStorage.getItem("AI.user_role_id"))?[{value:"datasource",label:"\u81ea\u6dfb\u52a0\u6570\u636e\u6e90"},{value:"ailab",label:"AIlab"},{value:"datalake",label:"\u6570\u636e\u6e56"}]:[{value:"ailab",label:"AIlab"}]}),"datasource"===ge&&"1"===localStorage.getItem("AI.user_role_id")&&je,"ailab"===ge&&(0,l.default)(o.default,{type:"primary",onClick:function(){pe(!0)}},void 0,"\u521b\u5efa\u6570\u636e\u8868"),"datalake"===ge&&"1"===localStorage.getItem("AI.user_role_id")&&(0,l.default)(o.default,{type:"primary",onClick:function(){le(!0)}},void 0,"\u5bfc\u5165\u6570\u636e\u8868"));case"2":return(0,l.default)(C.Link,{to:T.datasourceDevUrl.createSync},void 0,V);default:return}}(),activeKey:q,onTabClick:function(e){"3"===e&&G.current&&G.current.updateLogList(),t.push(T.datasourceDevUrl.list({key:e}))},onChange:function(e){K(e),W(null)}},void 0,(0,l.default)(D,{tab:"\u6570\u636e\u6e90\u7ba1\u7406"},"1",x.default.createElement(g.default,{ref:B,dataType:ge,__source:{fileName:h,lineNumber:403}})),(0,l.default)(D,{tab:"\u540c\u6b65\u914d\u7f6e"},"2",(0,l.default)(_.default,{selectLog:function(e){return function(e){W(e),K("3")}(e)},page:Q,page_size:$})),(0,l.default)(D,{tab:"\u65e5\u5fd7\u7ba1\u7406"},"3",(0,l.default)(y.default,{onRef:G,logId:Y,page:ae,page_size:se}))),ye,Ce)},a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var g=w(a("./src/module/dataMgr/datasourceDev/component/DatasourceManage.jsx")),v=w(a("./src/module/dataMgr/datasourceDev/component/DatasourceAdd.jsx")),_=w(a("./src/module/dataMgr/datasourceDev/component/DatasourceSyncView.jsx")),y=w(a("./src/module/dataMgr/datasourceDev/component/DatasourceLog.jsx")),b=a("./node_modules/react/index.js"),x=w(b),C=a("./node_modules/react-router-dom/esm/react-router-dom.js"),j=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),S=a("./src/module/dataMgr/datasourceDev/services/index.js"),I=a("./node_modules/@ant-design/icons/es/index.js"),T=a("./src/routes/routeHelper.jsx");function w(e){return e&&e.__esModule?e:{default:e}}var E=j.default.div.withConfig({displayName:"DatasourceDevView__Datasource",componentId:"sc-11ybmgr-0"})(["padding:20px;"]),D=m.default.TabPane,M=f.default.Item,k=f.default.List,P=(0,l.default)(n.default,{placeholder:"\u8f93\u5165\u6570\u636e\u5e93\u540d\u79f0"}),L=(0,l.default)(n.default,{placeholder:"\u8f93\u5165\u6570\u636e\u8868\u540d\u79f0"}),N=(0,l.default)(n.default,{placeholder:"\u8f93\u5165\u6570\u636e\u8868\u8def\u5f84"}),A=(0,l.default)(n.default,{placeholder:"\u8f93\u5165\u6570\u636e\u8868\u540d\u79f0"}),R=(0,l.default)(n.default,{placeholder:"\u8f93\u5165\u8868\u5b57\u6bb5"}),F=(0,l.default)(I.PlusOutlined,{}),O=(0,l.default)(M,{name:"partition_column",label:"\u5206\u533a\u5b57\u6bb5"},void 0,(0,l.default)(n.default,{placeholder:"\u8f93\u5165\u5206\u533a\u5b57\u6bb5"})),V=(0,l.default)(o.default,{type:"primary"},void 0,"\u6dfb\u52a0\u540c\u6b65\u4efb\u52a1")},"./src/module/dataMgr/datasourceDev/component/DataTableStruct.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/antd/es/table/index.js")),o=d(a("./node_modules/babel-runtime/helpers/jsx.js"));t.default=function(e){var t=e.currentStep,a=e.tableData,r=e.datax,d=e.onRef,u=(0,s.useRef)();(0,s.useImperativeHandle)(d,(function(){return{jsonValue:u.current?u.current.jsonValue:{}}}));var c=(0,o.default)(n.default,{columns:[{title:"\u5e8f\u53f7",dataIndex:"id",key:"id"},{title:"\u5b57\u6bb5",dataIndex:"field",key:"field"},{title:"\u7c7b\u578b",dataIndex:"type",key:"type"}],dataSource:a,className:"table-style"});3===t&&(c=(0,o.default)(i.default,{code:JSON.stringify(r),onRef:u}));return(0,o.default)(l,{},void 0,c)},a("./node_modules/antd/es/table/style/index.js");var s=a("./node_modules/react/index.js"),r=(d(s),d(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),i=d(a("./src/module/dataMgr/datasourceDev/component/utils/JsonEditor.jsx"));d(a("./node_modules/prop-types/index.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=r.default.div.withConfig({displayName:"DataTableStruct__DataTable",componentId:"sc-1dqi2yf-0"})(["height:100%;.table-style{.ant-table-thead{> tr{> th{background:#e3eefd !important;}}}}"])},"./src/module/dataMgr/datasourceDev/component/DatasourceAdd.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/col/index.js")),o=h(a("./node_modules/antd/es/button/index.js")),s=h(a("./node_modules/babel-runtime/helpers/jsx.js")),r=h(a("./node_modules/babel-runtime/regenerator/index.js")),i=h(a("./node_modules/antd/es/message/index.js")),d=h(a("./node_modules/babel-runtime/helpers/extends.js")),l=h(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=h(a("./node_modules/antd/es/form/index.js"));t.default=function(e){var t=this,a=e.updateDataSource,h=(0,p.useState)("mysql"),w=h[0],E=h[1],D=(0,p.useState)(!1),M=D[0],k=D[1],P=(0,p.useState)(""),L=P[0],N=P[1],A=(0,p.useState)(""),R=A[0],F=A[1],O=(0,p.useState)(!1),V=O[0],U=O[1],B=(0,p.useState)([]),G=B[0],z=B[1],q=(0,p.useState)([]),K=q[0],H=q[1],Y=(0,p.useState)(!1),W=Y[0],J=Y[1],Q=u.default.useForm()[0],Z=function(){var e=(0,l.default)(r.default.mark((function e(){var a,n,o,s,l,u,c,p,h;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=["datasource_name","datasource","database_name","jdbc_username","jdbc_password","jdbc_url","comments","tag"],e.prev=1,e.next=4,Q.validateFields(a);case 4:if(U(!0),n=Q.getFieldsValue(a),(o=(0,d.default)({},n,{tag:Q.getFieldValue("tag").join("/")})).jdbc_password&&(o.jdbc_password=m.default.encode(o.jdbc_password)),o.use_ssl=W?1:0,o.kerberos=M?1:0,!M){e.next=33;break}if(s="",l="",!G||!G.length){e.next=17;break}return e.next=16,ee(G);case 16:s=e.sent;case 17:if(!K||!K.length){e.next=21;break}return e.next=20,ee(K);case 20:l=e.sent;case 21:if(o.keytab=s,o.krb5config=l,o.kerberos_service_name=L,o.principal=R,!$(s,l,L,R)){e.next=31;break}return e.next=28,(0,f.testDataSourceConnection)(o);case 28:u=e.sent,200===(c=u.data).code?c.data?i.default.success("\u8fde\u63a5\u6210\u529f"):i.default.error("\u8fde\u63a5\u5931\u8d25"):i.default.error(c.msg);case 31:e.next=38;break;case 33:return e.next=35,(0,f.testDataSourceConnection)(o);case 35:p=e.sent,200===(h=p.data).code?h.data?i.default.success("\u8fde\u63a5\u6210\u529f"):i.default.error("\u8fde\u63a5\u5931\u8d25"):i.default.error(h.msg);case 38:e.next=43;break;case 40:e.prev=40,e.t0=e.catch(1),i.default.error("\u8868\u5355\u9a8c\u8bc1\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u8868\u5355\u4fe1\u606f\u662f\u5426\u5b8c\u6574");case 43:U(!1);case 44:case"end":return e.stop()}}),e,t,[[1,40]])})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=(0,l.default)(r.default.mark((function e(){var n,o,s,l,u,c,p,h;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=["datasource_name","datasource","database_name","jdbc_username","jdbc_password","jdbc_url","comments","tag"],(o=(0,d.default)({},Q.getFieldsValue(n),{tag:Q.getFieldValue("tag").join("/")})).jdbc_password&&(o.jdbc_password=m.default.encode(o.jdbc_password)),o.use_ssl=W?1:0,o.kerberos=M?1:0,!M){e.next=35;break}if(s="",l="",!G||!G.length){e.next=12;break}return e.next=11,ee(G);case 11:s=e.sent;case 12:if(!K||!K.length){e.next=16;break}return e.next=15,ee(K);case 15:l=e.sent;case 16:if(o.keytab=s,o.krb5config=l,o.kerberos_service_name=L,o.principal=R,!$(s,l,L,R)){e.next=33;break}return e.next=23,(0,f.createDataSource)(o);case 23:if(u=e.sent,!(c=u.data).data){e.next=31;break}return i.default.success("\u6dfb\u52a0\u6210\u529f"),a(),e.abrupt("return",!0);case 31:return i.default.error(c.msg),e.abrupt("return",!1);case 33:e.next=47;break;case 35:return e.next=37,(0,f.createDataSource)(o);case 37:if(p=e.sent,!(h=p.data).data){e.next=45;break}return i.default.success("\u6dfb\u52a0\u6210\u529f"),a(),e.abrupt("return",!0);case 45:return i.default.error(h.msg),e.abrupt("return",!1);case 47:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),$=function(e,t,a,n){return e?t?a?!!n||(i.default.error("\u7f3a\u5c11principal"),!1):(i.default.error("\u7f3a\u5c11kerberos_service_name"),!1):(i.default.error("\u7f3a\u5c11krb5config"),!1):(i.default.error("\u7f3a\u5c11keytab"),!1)},ee=function(){var e=(0,l.default)(r.default.mark((function e(a){var n,o,s,d;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new FormData,a.forEach((function(e){n.append("file",e)})),n.append("project_id","test"),n.append("file_type","kerberos"),e.next=6,(0,f.uploadFile)(n);case 6:return o=e.sent,s=o.data,d="",200===s.code?d=s.data:i.default.error(s.msg),e.abrupt("return",d);case 11:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}(),te=(0,s.default)(o.default,{onClick:Z,loading:V},void 0,"\u6d4b\u8bd5\u8fde\u63a5"),ae={onRemove:function(e){var t=G.indexOf(e),a=G.slice();a.splice(t,1),z(a)},beforeUpload:function(e){return z([].concat(G,[e])),!1},keytabFile:G},ne={onRemove:function(e){var t=K.indexOf(e),a=K.slice();a.splice(t,1),H(a)},beforeUpload:function(e){return H([].concat(K,[e])),!1},krb5File:K};return(0,s.default)(c.ModalForm,{form:Q,trigger:y,onFinish:X,initialValues:{datasource:"mysql",kerbsValid:!1,use_ssl:!1,comments:""},title:"\u6dfb\u52a0\u6570\u636e\u6e90",modalProps:{destroyOnClose:!0,width:"70%",afterClose:function(){E("mysql"),k(!1),J(!1),Q.resetFields()},okText:"\u786e\u8ba4\u6dfb\u52a0"},layout:"horizontal",grid:!0,labelCol:{span:8},colProps:{span:12},rowProps:{gutter:[45,0]}},void 0,(0,s.default)(c.ProFormSelect,{label:"\u9009\u62e9\u6570\u636e\u6e90",name:"datasource",fieldProps:{onChange:function(e){return E(e)}},valueEnum:{mysql:"mysql",hive:"hive"},rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90!"}]}),b,(0,s.default)(c.ProFormText,{label:"\u6570\u636e\u6e90\u540d\u79f0",name:"datasource_name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u6e90\u540d\u79f0!"}]}),(0,s.default)(c.ProFormSelect,{label:"\u6570\u636e\u6e90\u6807\u7b7e",name:"tag",fieldProps:{mode:"tags"},valueEnum:{"\u7ebf\u4e0a":"\u7ebf\u4e0a","\u6d4b\u8bd5":"\u6d4b\u8bd5","\u5f00\u53d1":"\u5f00\u53d1"},rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90\u6807\u7b7e!"}]}),(0,s.default)(c.ProFormText,{label:"\u6570\u636e\u5e93\u5730\u5740",name:"jdbc_url",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u5e93\u5730\u5740!"}]}),(0,s.default)(c.ProFormText,{label:"\u6570\u636e\u5e93\u540d\u79f0",name:"database_name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u5e93\u540d\u79f0!"}]}),!M&&(0,s.default)(c.ProFormText,{label:"\u7528\u6237\u540d",name:"jdbc_username",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7528\u6237\u540d!"}]}),M&&x,!M&&(0,s.default)(v,{label:"\u5bc6\u7801",name:"jdbc_password",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801!"}]}),M&&C,(0,s.default)(c.ProFormTextArea,{label:"\u8be6\u60c5",name:"comments",fieldProps:{autoSize:!0}}),"mysql"===w&&(0,s.default)(_,{label:"use SSL",name:"use_ssl",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u662f\u5426\u4f7f\u7528SSL!"}],fieldProps:{onChange:function(e){J(e.target.value)},value:W},options:[{label:"\u662f",value:!0},{label:"\u5426",value:!1}]}),"hive"===w&&(0,s.default)(_,{label:"kerberos\u9a8c\u8bc1",name:"kerberosValid",fieldProps:{onChange:function(e){return k(e.target.value)},value:M},options:[{label:"\u662f",value:!0},{label:"\u5426",value:!1}]}),(0,s.default)(n.default,{span:12,style:{paddingLeft:"22.5px",paddingRight:"22.5px"}},void 0,(0,s.default)(g,{label:"\u6d4b\u8bd5\u8fde\u63a5",name:"success"},void 0,te)),"hive"===w&&M?(0,s.default)(p.Fragment,{},void 0,(0,s.default)(c.ProFormUploadButton,{label:"keytab\u6587\u4ef6",name:"keytab",title:"\u4e0a\u4f20keyTabPath",fieldProps:(0,d.default)({},ae),max:1}),j,(0,s.default)(c.ProFormUploadButton,{label:"krb5config\u6587\u4ef6",name:"krb5config",title:"\u4e0a\u4f20krb5config",fieldProps:(0,d.default)({},ne),max:1}),S,(0,s.default)(c.ProFormText,{label:"kerberos_service_name",name:"kerberos_service_name",placeholder:"\u8f93\u5165kerberos_service_name",fieldProps:{onChange:function(e){return N(e.target.value)}}}),I,(0,s.default)(c.ProFormText,{label:"Principal",name:"principal",placeholder:"ylaiuser@EMR-56L6ZNTS",fieldProps:{onChange:function(e){return F(e.target.value)}}})):T)},a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var c=a("./node_modules/@ant-design/pro-components/es/index.js"),p=a("./node_modules/react/index.js"),f=(h(p),a("./src/module/dataMgr/datasourceDev/services/index.js")),m=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/base-64/base64.js")));function h(e){return e&&e.__esModule?e:{default:e}}var g=c.ProForm.Item,v=c.ProFormText.Password,_=c.ProFormRadio.Group,y=(0,s.default)(o.default,{type:"primary"},void 0,"\u6dfb\u52a0\u6570\u636e\u6e90"),b=(0,s.default)(n.default,{span:12}),x=(0,s.default)(c.ProFormText,{label:"\u7528\u6237\u540d",name:"jdbc_username"}),C=(0,s.default)(v,{label:"\u5bc6\u7801",name:"jdbc_password"}),j=(0,s.default)(n.default,{span:12}),S=(0,s.default)(n.default,{span:12}),I=(0,s.default)(n.default,{span:12}),T=(0,s.default)(p.Fragment,{})},"./src/module/dataMgr/datasourceDev/component/DatasourceData.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/table/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/regenerator/index.js")),r=f(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),i=f(a("./node_modules/antd/es/input/index.js")),d=f(a("./node_modules/antd/es/tabs/index.js")),l=f(a("./node_modules/antd/es/tree/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js"),a("./node_modules/antd/es/tree/style/index.js");var u=a("./node_modules/react/index.js"),c=(f(u),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./src/module/dataMgr/datasourceDev/services/index.js");f(a("./node_modules/prop-types/index.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=l.default.DirectoryTree,h=d.default.TabPane,g=c.default.div.withConfig({displayName:"DatasourceData__DatasourceWrapper",componentId:"go90uq-0"})(["display:flex;width:100%;height:700px;.datasource__tree{width:30%;overflow:auto;background:#f3f3f3;padding-top:20px;}.datasource__table{flex:1;height:100%;margin-left:15px;overflow:auto;}"]),v=i.default.Search;t.default=function(e){var t=e.data,a=e.datasourceId,i=(0,u.useState)([]),l=i[0],c=i[1],f=(0,u.useState)([]),_=f[0],y=f[1],b=(0,u.useState)(!1),x=b[0],C=b[1],j=(0,u.useState)([]),S=j[0],I=j[1],T=(0,u.useState)([]),w=T[0],E=T[1],D=(0,u.useState)(!1),M=D[0],k=D[1],P=(0,u.useState)([]),L=P[0],N=P[1],A=(0,u.useState)([]),R=A[0],F=A[1];(0,u.useMemo)((function(){var e=t.map((function(e){return{key:e,title:e,isLeaf:!0}}));N(e),F(e)}),[t]),(0,u.useEffect)((function(){L[0]&&O(L[0].key)}),[L]);var O=function(e){var t={id:a,table_name:e};V(t),U(t)},V=function(){var e=(0,r.default)(s.default.mark((function e(t){var a,n;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.next=3,(0,p.getTableData)(t);case 3:a=e.sent,(n=a.data).code&&B(n.data),C(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),U=function(){var e=(0,r.default)(s.default.mark((function e(t){var a,n;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),e.next=3,(0,p.getTableSchema)(t);case 3:a=e.sent,(n=a.data).code&&G(n.data),k(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),B=function(e){if(e){var t=e.header&&e.header.map((function(e){return{title:e,dataIndex:e,key:e}})),a=e.content&&e.content.map((function(t,a){var n={};return n.key=a+1,t.forEach((function(t,a){var o=e.header[a];n[o]=t})),n}));c(t),y(a)}},G=function(e){var t=e&&e.map((function(e,t){var a={};a.key=t+1;var n=e.split(":"),o=n[0],s=n[1],r=n[2];return a.order=o,a.field=s,a.attribute=r,a}));I([{title:"\u5e8f\u53f7",dataIndex:"order",key:"order"},{title:"\u5b57\u6bb5",dataIndex:"field",key:"field"},{title:"\u5c5e\u6027",dataIndex:"attribute",key:"attribute"}]),E(t)},z=(0,o.default)("div",{className:"datasource__tree"},void 0,(0,o.default)(v,{style:{marginBottom:8},placeholder:"Search",onSearch:function(e){var t=[].concat(R).filter((function(t){return t.title.indexOf(e)>-1}));N(t)}}),(0,o.default)(m,{treeData:L,style:{background:"#f3f3f3"},height:600,defaultSelectedKeys:[L[0]&&L[0].key],onSelect:O}));return(0,o.default)(g,{},void 0,z,(0,o.default)(d.default,{className:"datasource__table",size:"small"},void 0,(0,o.default)(h,{tab:"\u9884\u89c8\u8868\u5185\u5bb9"},"content",(0,o.default)(n.default,{columns:l,dataSource:_,bordered:!0,loading:x})),(0,o.default)(h,{tab:"\u9884\u89c8\u8868\u7ed3\u6784"},"schema",(0,o.default)(n.default,{columns:S,dataSource:w,bordered:!0,loading:M}))))}},"./src/module/dataMgr/datasourceDev/component/DatasourceEdit.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/col/index.js")),o=g(a("./node_modules/antd/es/space/index.js")),s=g(a("./node_modules/antd/es/button/index.js")),r=g(a("./node_modules/babel-runtime/helpers/jsx.js")),i=g(a("./node_modules/babel-runtime/regenerator/index.js")),d=g(a("./node_modules/antd/es/message/index.js")),l=g(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=g(a("./node_modules/babel-runtime/helpers/extends.js")),c=g(a("./node_modules/antd/es/form/index.js"));t.default=function(e){var t=this,a=e.ds_id,g=e.ds_info,w=e.setDsModalVisible,E=e.updateDataSource,D=(0,f.useState)("mysql"),M=D[0],k=D[1],P=(0,f.useState)(!1),L=P[0],N=P[1],A=(0,f.useState)(""),R=A[0],F=A[1],O=(0,f.useState)(""),V=O[0],U=O[1],B=(0,f.useState)(!1),G=B[0],z=B[1],q=(0,f.useState)([]),K=q[0],H=q[1],Y=(0,f.useState)([]),W=Y[0],J=Y[1],Q=(0,f.useState)(null),Z=Q[0],X=Q[1],$=(0,f.useState)(null),ee=$[0],te=$[1],ae=(0,f.useState)(!1),ne=ae[0],oe=ae[1],se=c.default.useForm()[0];(0,f.useEffect)((function(){re(g)}),[a,g]);var re=function(e){se.setFieldsValue((0,u.default)({},e,{tag:e.tag.split("/"),jdbc_password:e.jdbc_password&&h.default.decode(e.jdbc_password)})),k(e.datasource),N(1===e.kerberos),oe(1===e.use_ssl),H([]),J([]),X(e.keytab),te(e.krb5config),F(e.kerberos_service_name),U(e.principal)},ie=function(){var e=(0,l.default)(i.default.mark((function e(){var a,n,o,s,r,l,c,p,f;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=["datasource_name","datasource","database_name","jdbc_username","jdbc_password","jdbc_url","comments","tag"],e.prev=1,e.next=4,se.validateFields(a);case 4:if(z(!0),n=se.getFieldsValue(),(o=(0,u.default)({},n,{tag:se.getFieldValue("tag").join("/")})).jdbc_password&&(o.jdbc_password=h.default.encode(o.jdbc_password)),o.use_ssl=ne?1:0,o.kerberos=L?1:0,!L){e.next=33;break}if(s=Z,r=ee,!K||!K.length){e.next=17;break}return e.next=16,le(K);case 16:s=e.sent;case 17:if(!W||!W.length){e.next=21;break}return e.next=20,le(W);case 20:r=e.sent;case 21:if(o.keytab=s,o.krb5config=r,o.kerberos_service_name=R,o.principal=V,!de(s,r,R,V)){e.next=31;break}return e.next=28,(0,m.testDataSourceConnection)(o);case 28:l=e.sent,200===(c=l.data).code?c.data?d.default.success("\u8fde\u63a5\u6210\u529f"):d.default.error("\u8fde\u63a5\u5931\u8d25"):d.default.error(c.msg);case 31:e.next=38;break;case 33:return e.next=35,(0,m.testDataSourceConnection)(o);case 35:p=e.sent,200===(f=p.data).code?f.data?d.default.success("\u8fde\u63a5\u6210\u529f"):d.default.error("\u8fde\u63a5\u5931\u8d25"):d.default.error(f.msg);case 38:e.next=43;break;case 40:e.prev=40,e.t0=e.catch(1),d.default.error("\u8868\u5355\u9a8c\u8bc1\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u8868\u5355\u4fe1\u606f\u662f\u5426\u5b8c\u6574");case 43:z(!1);case 44:case"end":return e.stop()}}),e,t,[[1,40]])})));return function(){return e.apply(this,arguments)}}(),de=function(e,t,a,n){return e?t?a?!!n||(d.default.error("\u7f3a\u5c11principal"),!1):(d.default.error("\u7f3a\u5c11kerberos_service_name"),!1):(d.default.error("\u7f3a\u5c11krb5config"),!1):(d.default.error("\u7f3a\u5c11keytab"),!1)},le=function(){var e=(0,l.default)(i.default.mark((function e(a){var n,o,s,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new FormData,a.forEach((function(e){n.append("file",e)})),n.append("project_id","test"),n.append("file_type","kerberos"),e.next=6,(0,m.uploadFile)(n);case 6:return o=e.sent,s=o.data,r="",200===s.code?r=s.data:d.default.error(s.msg),e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}(),ue=(0,r.default)(s.default,{onClick:ie,loading:G},void 0,"\u6d4b\u8bd5\u8fde\u63a5"),ce={onRemove:function(e){var t=K.indexOf(e),a=K.slice();a.splice(t,1),H(a)},beforeUpload:function(e){return H([].concat(K,[e])),!1},keytabFile:K},pe={onRemove:function(e){var t=W.indexOf(e),a=W.slice();a.splice(t,1),J(a)},beforeUpload:function(e){return J([].concat(W,[e])),!1},krb5File:W};return(0,r.default)(p.ProForm,{form:se,initialValues:{datasource:"mysql",kerbsValid:!1,comments:""},layout:"horizontal",grid:!0,labelCol:{span:7},colProps:{span:12},rowProps:{gutter:[45,0]},submitter:{render:function(e){return[(0,r.default)("div",{style:{display:"flex",justifyContent:"flex-end"}},"form_btn",(0,r.default)(o.default,{},void 0,(0,r.default)(s.default,{type:"button",onClick:function(){return e.form.resetFields()}},"rest","\u91cd\u7f6e"),(0,r.default)(s.default,{type:"primary",onClick:function(){se.validateFields().then((0,l.default)(i.default.mark((function e(){var n,o,s,r,l,c,p;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=(0,u.default)({},se.getFieldsValue(),{tag:se.getFieldValue("tag").join("/")})).jdbc_password&&(n.jdbc_password=h.default.encode(n.jdbc_password)),n.use_ssl=ne?1:0,n.kerberos=L?1:0,!L){e.next=27;break}if(o=Z,s=ee,!K||!K.length){e.next=11;break}return e.next=10,le(K);case 10:o=e.sent;case 11:if(!W||!W.length){e.next=15;break}return e.next=14,le(W);case 14:s=e.sent;case 15:if(n.keytab=o,n.krb5config=s,n.kerberos_service_name=R,n.principal=V,!de(o,s,R,V)){e.next=25;break}return e.next=22,(0,m.updateDataSourceInfo)(a,n);case 22:r=e.sent,200===(l=r.data).code?(d.default.success("\u4fee\u6539\u6210\u529f"),w(!1),E()):d.default.error(l.msg);case 25:e.next=32;break;case 27:return e.next=29,(0,m.updateDataSourceInfo)(a,n);case 29:c=e.sent,200===(p=c.data).code?(d.default.success("\u4fee\u6539\u6210\u529f"),w(!1),E()):d.default.error(p.msg);case 32:case"end":return e.stop()}}),e,t)})))).catch((function(e){d.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))}},"submit","\u4fee\u6539")))]}}},void 0,(0,r.default)(p.ProFormSelect,{label:"\u9009\u62e9\u6570\u636e\u6e90",name:"datasource",fieldProps:{onChange:function(e){return k(e)}},valueEnum:{mysql:"mysql",hive:"hive"},rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90!"}]}),b,(0,r.default)(p.ProFormText,{label:"\u6570\u636e\u6e90\u540d\u79f0",name:"datasource_name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u6e90\u540d\u79f0!"}]}),(0,r.default)(p.ProFormSelect,{label:"\u6570\u636e\u6e90\u6807\u7b7e",name:"tag",fieldProps:{mode:"tags"},valueEnum:{"\u7ebf\u4e0a":"\u7ebf\u4e0a","\u6d4b\u8bd5":"\u6d4b\u8bd5","\u5f00\u53d1":"\u5f00\u53d1"},rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90\u6807\u7b7e!"}]}),(0,r.default)(p.ProFormText,{label:"\u6570\u636e\u5e93\u5730\u5740",name:"jdbc_url",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u5e93\u5730\u5740!"}]}),(0,r.default)(p.ProFormText,{label:"\u6570\u636e\u5e93\u540d\u79f0",name:"database_name",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u5e93\u540d\u79f0!"}]}),!L&&(0,r.default)(p.ProFormText,{label:"\u7528\u6237\u540d",name:"jdbc_username",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7528\u6237\u540d!"}]}),L&&x,!L&&(0,r.default)(_,{label:"\u5bc6\u7801",name:"jdbc_password",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801!"}]}),L&&C,(0,r.default)(p.ProFormTextArea,{label:"\u8be6\u60c5",name:"comments",fieldProps:{autoSize:!0}}),"mysql"===M&&(0,r.default)(y,{label:"use SSL",name:"use_ssl",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u662f\u5426\u4f7f\u7528SSL!"}],fieldProps:{onChange:function(e){return oe(e.target.value)},value:ne},options:[{label:"\u662f",value:!0},{label:"\u5426",value:!1}]}),"hive"===M&&(0,r.default)(y,{label:"kerberos\u9a8c\u8bc1",name:"kerberosValid",fieldProps:{onChange:function(e){return N(e.target.value)},value:L},options:[{label:"\u662f",value:!0},{label:"\u5426",value:!1}]}),(0,r.default)(n.default,{span:12,style:{paddingLeft:"22.5px",paddingRight:"22.5px"}},void 0,(0,r.default)(v,{label:"\u6d4b\u8bd5\u8fde\u63a5",name:"success"},void 0,ue)),"hive"===M&&L?(0,r.default)(f.Fragment,{},void 0,(0,r.default)(p.ProFormUploadButton,{label:"keytab\u6587\u4ef6",title:se.getFieldValue("keytab")?"\u91cd\u65b0\u4e0a\u4f20keyTabPath":"\u4e0a\u4f20keyTabPath",fieldProps:(0,u.default)({},ce),max:1,accept:".keytab"}),j,(0,r.default)(p.ProFormUploadButton,{label:"krb5config\u6587\u4ef6",title:se.getFieldValue("krb5config")?"\u91cd\u65b0\u4e0a\u4f20krb5config":"\u4e0a\u4f20krb5config",fieldProps:(0,u.default)({},pe),max:1,accept:".conf"}),S,(0,r.default)(p.ProFormText,{label:"kerberos_service_name",name:"kerberos_service_name",placeholder:"\u8f93\u5165kerberos_service_name",fieldProps:{onChange:function(e){return F(e.target.value)}}}),I,(0,r.default)(p.ProFormText,{label:"Principal",name:"principal",placeholder:"ylaiuser@EMR-56L6ZNTS",fieldProps:{onChange:function(e){return U(e.target.value)}}})):T)},a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var p=a("./node_modules/@ant-design/pro-components/es/index.js"),f=a("./node_modules/react/index.js"),m=(g(f),a("./src/module/dataMgr/datasourceDev/services/index.js")),h=g(a("./node_modules/base-64/base64.js"));g(a("./node_modules/prop-types/index.js"));function g(e){return e&&e.__esModule?e:{default:e}}var v=p.ProForm.Item,_=p.ProFormText.Password,y=p.ProFormRadio.Group,b=(0,r.default)(n.default,{span:12}),x=(0,r.default)(p.ProFormText,{label:"\u7528\u6237\u540d",name:"jdbc_username"}),C=(0,r.default)(_,{label:"\u5bc6\u7801",name:"jdbc_password"}),j=(0,r.default)(n.default,{span:12}),S=(0,r.default)(n.default,{span:12}),I=(0,r.default)(n.default,{span:12}),T=(0,r.default)(f.Fragment,{})},"./src/module/dataMgr/datasourceDev/component/DatasourceLog.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/table/index.js")),o=m(a("./node_modules/babel-runtime/regenerator/index.js")),s=m(a("./node_modules/antd/es/message/index.js")),r=m(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),i=m(a("./node_modules/antd/es/space/index.js")),d=m(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/space/style/index.js");var l=a("./node_modules/react/index.js"),u=(m(l),a("./src/module/dataMgr/datasourceDev/services/index.js")),c=m(a("./node_modules/moment/moment.js")),p=a("./node_modules/react-router-dom/esm/react-router-dom.js"),f=a("./src/routes/routeHelper.jsx");m(a("./node_modules/prop-types/index.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=null;t.default=function(e){var t=e.onRef,a=e.logId,m=e.page,g=e.page_size,v=(0,l.useState)([]),_=v[0],y=v[1],b=(0,l.useState)(!1),x=b[0],C=b[1],j=(0,l.useState)(1),S=j[0],I=j[1],T=(0,l.useState)(10),w=T[0],E=T[1],D=(0,l.useState)(0),M=D[0],k=D[1],P=(0,p.useHistory)();(0,l.useImperativeHandle)(t,(function(){return{updateLogList:N}}));var L=[{title:"\u540c\u6b65ID",dataIndex:"jobId",key:"jobId"},{title:"\u4efb\u52a1\u63cf\u8ff0",dataIndex:"jobDesc",key:"jobDesc"},{title:"\u5f00\u59cb\u65f6\u95f4",dataIndex:"startTime",key:"startTime"},{title:"\u540c\u6b65\u72b6\u6001",dataIndex:"handleResult",key:"handleResult",render:function(e){return(0,d.default)("span",{style:{color:3===e?"#FF4D4F":2===e?"#52C41A":"#4A4A4A"}},void 0,3===e?"\u5931\u8d25":2===e?"\u6210\u529f":1===e?"\u8fd0\u884c\u4e2d":0===e?"\u961f\u5217\u4e2d":"\u6682\u65e0")}},{title:"\u64cd\u4f5c",key:"operation",render:function(e,t){return(0,d.default)(i.default,{size:"middle"},void 0,(0,d.default)("span",{onClick:function(){var e;e=t.key,P.push(f.datasourceDevUrl.logWatcher(e,a,S,w))},style:{color:"#1890ff",cursor:"pointer"}},void 0,"\u67e5\u770b"))}}],N=function(){var e=(0,r.default)(o.default.mark((function e(){var t,n,r,i,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.next=3,(0,u.getJoblog)({page:d,size:l,id:a});case 3:t=e.sent,200===(n=t.data).code?(k(n.data.extra_data.total),I(n.data.extra_data.page),E(n.data.extra_data.size),r=[],i=n.data.item.map((function(e){return[0,1].includes(e.execute_result)&&r.push(e.id),{key:e.id,jobId:e.job_id,jobDesc:e.job_desc,afJobId:e.af_job_id,runId:e.run_id,startTime:e.start_time?(0,c.default)(1e3*Math.round(e.start_time)).format("YYYY.MM.DD HH:mm:ss"):"\u65e0",handleResult:e.result}})),y(i),A(r)):s.default.error(n.msg),C(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=(0,r.default)(o.default.mark((function e(t){var a,n,r,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===t.length){e.next=6;break}return e.next=3,(0,u.refreshLogsStatus)(t.toString());case 3:a=e.sent,200===(n=a.data).code?(r=[],i=[],Object.keys(n.data).forEach((function(e){[2,3].includes(n.data[e])?i=_.map((function(t){return t.id===e&&(t.execute_result=n.data[e]),t})):r.push(e)})),0!==i.length&&y(i),clearTimeout(h),h=setTimeout((function(){A(r)}),1e4)):s.default.error(n.msg);case 6:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){N(m,g)}),[a,m,g]),(0,l.useEffect)((function(){return function(){clearTimeout(h)}}),[]),(0,d.default)(n.default,{columns:L,dataSource:_,bordered:!0,loading:x,pagination:{current:S,total:M,pageSize:w,onChange:function(e,t){N(e,t)}}})}},"./src/module/dataMgr/datasourceDev/component/DatasourceManage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/input/index.js")),o=C(a("./node_modules/antd/es/table/index.js")),s=C(a("./node_modules/antd/es/modal/index.js")),r=C(a("./node_modules/antd/es/popconfirm/index.js")),i=C(a("./node_modules/antd/es/button/index.js")),d=C(a("./node_modules/antd/es/space/index.js")),l=C(a("./node_modules/babel-runtime/helpers/jsx.js")),u=C(a("./node_modules/babel-runtime/regenerator/index.js")),c=C(a("./node_modules/antd/es/message/index.js")),p=C(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),f=C(a("./node_modules/antd/es/form/index.js")),m=C(a("./node_modules/antd/es/tabs/index.js")),h=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/popconfirm/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var g=a("./node_modules/react/index.js"),v=(C(g),a("./node_modules/@ant-design/icons/es/index.js")),_=C(a("./src/module/dataMgr/datasourceDev/component/DatasourceData.jsx")),y=C(a("./src/module/dataMgr/datasourceDev/component/DatasourceEdit.jsx")),b=a("./src/module/dataMgr/datasourceDev/services/index.js"),x=C(a("./node_modules/moment/moment.js"));C(a("./node_modules/prop-types/index.js"));function C(e){return e&&e.__esModule?e:{default:e}}var j=h.default.Option,S=m.default.TabPane,I=f.default.Item,T=(0,l.default)(i.default,{type:"link"},void 0,"\u5220\u9664"),w=(0,l.default)(i.default,{type:"link"},void 0,"\u5220\u9664"),E=(0,l.default)(v.SearchOutlined,{}),D=(0,l.default)("span",{},void 0,"\u9009\u62e9\u5206\u4eab\u81f3\uff1a"),M=(0,l.default)(n.default,{placeholder:"\u8f93\u5165\u6570\u636e\u5e93\u540d\u79f0"}),k=(0,l.default)(n.default,{placeholder:"\u8f93\u5165\u6570\u636e\u8868\u540d\u79f0"}),P=(0,l.default)(n.default,{placeholder:"\u8f93\u5165\u6570\u636e\u8868\u8def\u5f84"}),L=(0,g.forwardRef)((function(e,t){var a=e.dataType,v=(0,g.useState)(!1),C=v[0],L=v[1],N=(0,g.useState)(!1),A=N[0],R=N[1],F=(0,g.useState)(!1),O=F[0],V=F[1],U=(0,g.useState)([]),B=U[0],G=U[1],z=(0,g.useState)([]),q=z[0],K=z[1],H=(0,g.useState)([]),Y=H[0],W=H[1],J=(0,g.useState)([]),Q=J[0],Z=J[1],X=(0,g.useState)(!1),$=X[0],ee=X[1],te=(0,g.useState)([]),ae=te[0],ne=te[1],oe=(0,g.useState)(null),se=oe[0],re=oe[1],ie=(0,g.useState)(!1),de=ie[0],le=ie[1],ue=(0,g.useState)(null),ce=ue[0],pe=ue[1],fe=(0,g.useState)(null),me=fe[0],he=fe[1],ge=(0,g.useState)(!1),ve=ge[0],_e=ge[1],ye=(0,g.useState)([]),be=ye[0],xe=ye[1],Ce=(0,g.useState)([]),je=Ce[0],Se=Ce[1],Ie=(0,g.useState)([]),Te=Ie[0],we=Ie[1],Ee=(0,g.useState)([]),De=Ee[0],Me=Ee[1],ke=(0,g.useState)([]),Pe=ke[0],Le=ke[1],Ne=(0,g.useState)([]),Ae=Ne[0],Re=Ne[1],Fe=(0,g.useState)(!1),Oe=Fe[0],Ve=Fe[1],Ue=(0,g.useState)([]),Be=Ue[0],Ge=Ue[1],ze=(0,g.useState)([]),qe=ze[0],Ke=ze[1],He=(0,g.useState)(!1),Ye=He[0],We=He[1],Je=(0,g.useState)(!1),Qe=Je[0],Ze=Je[1],Xe=(0,g.useState)(null),$e=Xe[0],et=Xe[1],tt=f.default.useForm()[0],at=function(){var e=(0,p.default)(u.default.mark((function e(){var t,a,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee(!0),e.next=3,(0,b.getDataSourceList)();case 3:t=e.sent,200===(a=t.data).code?(n=a.data.items.map((function(e){return{key:e.id,datasource_name:e.datasource_name,datasource:e.datasource,tag:e.tag,comments:e.comments,create_time:e.create_time,update_time:e.update_time}})),G(n)):c.default.error(a.msg),ee(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),nt=function(){var e=(0,p.default)(u.default.mark((function e(){var t,a,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee(!0),e.next=3,(0,b.getAilabList)();case 3:t=e.sent,200===(a=t.data).code?(n=a.data.table_list.map((function(e){return{key:e,datatable_name:e}})),K(n),W(n)):c.default.error(a.msg),ee(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),ot=function(){var e=(0,p.default)(u.default.mark((function e(){var t,a,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee(!0),e.next=3,(0,b.getLakeTable)();case 3:t=e.sent,200===(a=t.data).code?(n=a.data.map((function(e){return{key:e.id,database_name:e.database_name,datatable_name:e.table_name,create_time:(0,x.default)(1e3*e.create_time).format("YYYY.MM.DD HH:mm:ss")}})),Z(n)):c.default.error(a.msg),ee(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}();(0,g.useImperativeHandle)(t,(function(){return{updateSourceList:at,updateAilabList:nt,updateLakeList:ot}}));var st=function(){var e=(0,p.default)(u.default.mark((function e(t){var a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.delDataSource)(t);case 2:a=e.sent,200===a.data.code?(c.default.success("\u5220\u9664\u6210\u529f"),at()):c.default.error("\u5220\u9664\u5931\u8d25");case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),rt=function(){var e=(0,p.default)(u.default.mark((function e(t){var a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.deleteDataLake)(t);case 2:a=e.sent,200===a.data.code?(c.default.success("\u5220\u9664\u6210\u529f"),ot()):c.default.error("\u5220\u9664\u5931\u8d25");case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),it=function(){var e=(0,p.default)(u.default.mark((function e(t){var a,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(!0),e.next=3,(0,b.getTableNamesList)(t);case 3:a=e.sent,200===(n=a.data).code?(re(t),ne(n.data),L(!0)):c.default.error(n.msg),le(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),dt=function(e){if(e){var t=e.header&&e.header.map((function(e){return{title:e,dataIndex:e,key:e}})),a=e.content&&e.content.map((function(t,a){var n={};return n.key=a+1,t.forEach((function(t,a){var o=e.header[a];n[o]=t})),n}));Le(t),Re(a)}},lt=function(e){var t=e.map((function(e,t){var a={};a.key=t+1;var n=e.split(":"),o=n[0],s=n[1],r=n[2];return a.order=o,a.field=s,a.attribute=r,a}));Ge([{title:"\u5e8f\u53f7",dataIndex:"order",key:"order"},{title:"\u5b57\u6bb5",dataIndex:"field",key:"field"},{title:"\u5c5e\u6027",dataIndex:"attribute",key:"attribute"}]),Ke(t)},ut=function(){var e=(0,p.default)(u.default.mark((function e(t,a){var n,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ve(!0),"ailab"!==a){e.next=7;break}return e.next=4,(0,b.ailabTablePreview)(t);case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,(0,b.lakeTablePreview)(t);case 9:e.t0=e.sent;case 10:n=e.t0,200===(o=n.data).code?dt(o.data):c.default.error(o.msg),Ve(!1);case 14:case"end":return e.stop()}}),e,void 0)})));return function(t,a){return e.apply(this,arguments)}}(),ct=function(){var e=(0,p.default)(u.default.mark((function e(t,a){var n,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(We(!0),"ailab"!==a){e.next=7;break}return e.next=4,(0,b.ailabSchema)(t);case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,(0,b.lakeSchema)(t);case 9:e.t0=e.sent;case 10:n=e.t0,200===(o=n.data).code?lt(o.data):c.default.error(o.msg),We(!1);case 14:case"end":return e.stop()}}),e,void 0)})));return function(t,a){return e.apply(this,arguments)}}(),pt=function(){var e=(0,p.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ut(t,"ailab"),ct(t,"ailab"),R(!0);case 3:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),ft=function(){var e=(0,p.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ut(t,"lake"),ct(t,"lake"),R(!0);case 3:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}();(0,g.useEffect)((function(){switch(a){case"datasource":at();break;case"ailab":nt();break;case"datalake":ot()}}),[a]),(0,g.useEffect)((function(){ve&&mt()}),[ve]);var mt=function(){var e=(0,p.default)(u.default.mark((function e(){var t,a,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.getAllShareProject)();case 2:t=e.sent,200===(a=t.data).code?(n=a.data.map((function(e){return{label:e.name,value:e.id}})),we(n)):c.default.error(a.msg);case 5:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),ht=function(e){var t=new Date(1e3*Number(e));return t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate())+" "+(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())},gt=function(){var e=(0,p.default)(u.default.mark((function e(t){var a,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.getDataSourceInfo)(t);case 2:a=e.sent,200===(n=a.data).code?(pe(t),he(n.data),V(!0)):c.default.error(n.msg);case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),vt=[{title:"\u6570\u636e\u6e90\u540d\u79f0",dataIndex:"datasource_name",key:"datasource_name"},{title:"\u6570\u636e\u6e90\u7c7b\u578b",dataIndex:"datasource",key:"datasource"},{title:"\u6807\u7b7e",dataIndex:"tag",key:"tag",render:function(e){return(0,l.default)("span",{style:{color:"#1890ff"}},void 0,e)}},{title:"\u8be6\u60c5",key:"comments",dataIndex:"comments"},{title:"\u521b\u5efa\u65f6\u95f4",key:"create_time",dataIndex:"create_time",render:function(e){return ht(e)}},{title:"\u66f4\u65b0\u65f6\u95f4",key:"update_time",dataIndex:"update_time",render:function(e){return ht(e)}},{title:"\u64cd\u4f5c",key:"operation",render:function(e,t){return(0,l.default)(d.default,{size:"middle"},void 0,(0,l.default)(i.default,{onClick:function(){it(t.key)},type:"link",disabled:de},void 0,"\u67e5\u770b"),"1"===localStorage.getItem("AI.user_role_id")&&(0,l.default)(i.default,{type:"link",onClick:function(){gt(t.key)}},void 0,"\u7f16\u8f91"),"1"===localStorage.getItem("AI.user_role_id")&&(0,l.default)(r.default,{title:"\u786e\u8ba4\u5220\u9664\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onConfirm:function(){return st(t.key)}},void 0,T))}}],_t=[{title:"\u6570\u636e\u8868\u540d\u79f0",dataIndex:"datatable_name",key:"datatable_name",align:"center"},{title:"\u64cd\u4f5c",key:"operation",align:"center",width:"25%",render:function(e,t){return(0,l.default)(d.default,{size:"middle"},void 0,["1","2","3"].includes(localStorage.getItem("AI.user_role_id"))&&(0,l.default)(i.default,{type:"link",onClick:function(){_e(!0),Se([t.key])}},void 0,"\u5206\u4eab"),(0,l.default)(i.default,{onClick:function(){pt(t.key)},type:"link"},void 0,"\u67e5\u770b"))}}],yt=[{title:"\u6570\u636e\u5e93\u540d\u79f0",dataIndex:"database_name",key:"database_name",align:"center"},{title:"\u6570\u636e\u8868\u540d\u79f0",dataIndex:"datatable_name",key:"datatable_name",align:"center"},{title:"\u5bfc\u5165\u65f6\u95f4",dataIndex:"create_time",key:"create_time",align:"center"},{title:"\u64cd\u4f5c",key:"operation",align:"center",width:"25%",render:function(e,t){return(0,l.default)(d.default,{size:"middle"},void 0,(0,l.default)(i.default,{onClick:function(){ft(t.datatable_name)},type:"link"},void 0,"\u67e5\u770b"),"1"===localStorage.getItem("AI.user_role_id")&&(0,l.default)(i.default,{type:"link",onClick:function(){wt(t.key)}},void 0,"\u7f16\u8f91"),"1"===localStorage.getItem("AI.user_role_id")&&(0,l.default)(r.default,{title:"\u786e\u8ba4\u5220\u9664\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onConfirm:function(){return rt(t.key)}},void 0,w))}}],bt=(0,l.default)(s.default,{title:"\u6570\u636e\u8868\u9884\u89c8",visible:C,onCancel:function(){L(!1)},footer:null,destroyOnClose:!0,width:"80%",bodyStyle:{paddingTop:0}},void 0,(0,l.default)(_.default,{data:ae,datasourceId:se})),xt=(0,l.default)(s.default,{title:"\u6570\u636e\u8868\u9884\u89c8",visible:A,onCancel:function(){R(!1)},footer:null,destroyOnClose:!0,width:"80%",bodyStyle:{paddingTop:0}},void 0,(0,l.default)(m.default,{size:"small"},void 0,(0,l.default)(S,{tab:"\u9884\u89c8\u8868\u5185\u5bb9",style:{height:"700px",overflow:"auto"}},"content",(0,l.default)(o.default,{columns:Pe,dataSource:Ae,bordered:!0,loading:Oe})),(0,l.default)(S,{tab:"\u9884\u89c8\u8868\u7ed3\u6784",style:{height:"700px",overflow:"auto"}},"schema",(0,l.default)(o.default,{columns:Be,dataSource:qe,bordered:!0,loading:Ye})))),Ct=(0,l.default)(s.default,{title:"\u7f16\u8f91\u6570\u636e\u6e90",visible:O,onCancel:function(){V(!1)},footer:null,destroyOnClose:!0,width:"60%"},void 0,(0,l.default)(y.default,{ds_id:ce,ds_info:me,updateDataSource:at,setDsModalVisible:function(e){return V(e)}})),jt={selectedRowKeys:be,onChange:function(e){xe(e)},columnWidth:"100px",selections:[o.default.SELECTION_ALL,o.default.SELECTION_INVERT,o.default.SELECTION_NONE]},St=function(e){var t=q.filter((function(t){return t.datatable_name.includes(e.target.value)}));W(t)},It=function(){var e=(0,p.default)(u.default.mark((function e(){var t,a,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!De.length){e.next=9;break}return t={table_names:je,project_ids:De},e.next=4,(0,b.shareAilab)(t);case 4:a=e.sent,200===(n=a.data).code?(c.default.success("\u5206\u4eab\u6210\u529f"),_e(!1),Me([])):c.default.error(n.msg),e.next=10;break;case 9:c.default.error("\u8bf7\u9009\u62e9\u9879\u76ee");case 10:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),Tt=(0,l.default)(s.default,{title:"\u5206\u4eab\u6570\u636e\u8868",visible:ve,onOk:It,okText:"\u786e\u8ba4\u5206\u4eab",onCancel:function(){_e(!1),Me([])}},void 0,(0,l.default)(d.default,{style:{padding:"10px 20px 30px"}},void 0,D,(0,l.default)(h.default,{mode:"multiple",value:De,onChange:function(e){return Me(e)},style:{width:"300px"},showArrow:!0,showSearch:!0,optionFilterProp:"label",placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee"},void 0,Te.map((function(e){return(0,l.default)(j,{value:e.value,label:e.label},e.value,e.label)}))))),wt=function(){var e=(0,p.default)(u.default.mark((function e(t){var a,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return et(t),e.next=3,(0,b.getDataLakeInfo)(t);case 3:a=e.sent,200===(n=a.data).code?(Ze(!0),tt.setFieldsValue({database_name:n.data.database_name,datatable_name:n.data.table_name,datatable_path:n.data.table_path})):c.default.error(n.msg);case 6:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),Et=function(){var e=(0,p.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:tt.validateFields().then((0,p.default)(u.default.mark((function e(){var t,a,n,o,s,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=tt.getFieldValue(),a=t.database_name,n=t.datatable_name,o=t.datatable_path,e.next=3,(0,b.editDataLake)($e,{database_name:a,table_name:n,table_path:o});case 3:s=e.sent,200===(r=s.data).code?(c.default.success("\u4fee\u6539\u6210\u529f"),tt.resetFields(),Ze(!1),ot()):c.default.error(r.msg);case 6:case"end":return e.stop()}}),e,void 0)})))).catch((function(e){c.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}));case 1:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),Dt=(0,l.default)(s.default,{title:"\u4fee\u6539\u6570\u636e\u8868",visible:Qe,onOk:Et,okText:"\u786e\u8ba4\u4fee\u6539",onCancel:function(){tt.resetFields(),Ze(!1)}},void 0,(0,l.default)(f.default,{form:tt},void 0,(0,l.default)(I,{name:"database_name",label:"\u6570\u636e\u5e93\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u5e93\u540d\u79f0!"}]},void 0,M),(0,l.default)(I,{name:"datatable_name",label:"\u6570\u636e\u8868\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u8868\u540d\u79f0!"}]},void 0,k),(0,l.default)(I,{name:"datatable_path",label:"\u6570\u636e\u8868\u8def\u5f84",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u8868\u8def\u5f84!"}]},void 0,P)));return(0,l.default)("div",{},void 0,"datasource"===a&&(0,l.default)(o.default,{columns:vt,dataSource:B,bordered:!0,loading:$}),"ailab"===a&&(0,l.default)(o.default,{rowSelection:["1","2","3"].includes(localStorage.getItem("AI.user_role_id"))?jt:null,columns:_t,dataSource:Y,bordered:!0,loading:$,footer:["1","2","3"].includes(localStorage.getItem("AI.user_role_id"))?function(){return(0,l.default)(i.default,{type:"link",disabled:!be.length,onClick:function(){Se(be),_e(!0)}},void 0,"\u6279\u91cf\u5206\u4eab")}:null,title:function(){return(0,l.default)(n.default,{type:"link",style:{width:"210px"},onChange:St,suffix:E})}}),"datalake"===a&&(0,l.default)(o.default,{columns:yt,dataSource:Q,bordered:!0,loading:$}),bt,xt,Ct,Tt,Dt)}));t.default=L},"./src/module/dataMgr/datasourceDev/component/DatasourceSyncView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/table/index.js")),o=g(a("./node_modules/antd/es/popconfirm/index.js")),s=g(a("./node_modules/antd/es/switch/index.js")),r=g(a("./node_modules/antd/es/space/index.js")),i=g(a("./node_modules/babel-runtime/helpers/jsx.js")),d=g(a("./node_modules/antd/es/message/index.js")),l=g(a("./node_modules/babel-runtime/regenerator/index.js")),u=g(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js"));t.default=function(e){var t=this,a=e.selectLog,g=e.page,v=e.page_size,_=(0,p.useHistory)(),y=(0,c.useState)([]),b=y[0],x=y[1],C=(0,c.useState)([]),j=C[0],S=C[1],I=(0,c.useState)(!1),T=I[0],w=I[1],E=(0,c.useState)(!1),D=E[0],M=E[1],k=(0,c.useState)(1),P=k[0],L=k[1],N=(0,c.useState)(10),A=N[0],R=N[1],F=(0,c.useState)(0),O=F[0],V=F[1],U=(0,c.useState)(!1),B=U[0],G=U[1],z=function(){var e=(0,u.default)(l.default.mark((function e(){var a,n,o,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(!0),e.next=3,(0,f.getJobList)({page:s,size:r});case 3:a=e.sent,200===(n=a.data).code&&(V(n.data.extra_data.total),L(n.data.extra_data.page),R(n.data.extra_data.size),o=n.data.item.map((function(e){return{key:e.id,id:e.id,job_cron:e.job_cron,jsb_desc:e.job_desc,trigger_status:e.trigger_status,update_time:(0,m.default)(1e3*e.update_time).format("YYYY.MM.DD HH:mm:ss")}})),x(o),S(n.data.item)),M(!1);case 7:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=(0,u.default)(l.default.mark((function e(a){var n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.delJob)(a);case 2:n=e.sent,200===n.data.code?(d.default.success("\u5220\u9664\u6210\u529f"),z(P,A)):d.default.error("\u5220\u9664\u5931\u8d25");case 5:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}(),K=function(){var e=(0,u.default)(l.default.mark((function e(a){var n,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B){e.next=8;break}return G(!0),e.next=4,(0,f.executeOnce)(a);case 4:n=e.sent,200===(o=n.data).code?d.default.success("\u5f00\u59cb\u6267\u884c"):d.default.error(o.msg),G(!1);case 8:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){L(g),R(v),z(g||1,v||10)}),[g,v]);var H=[{title:"\u4efb\u52a1ID",dataIndex:"id",key:"id"},{title:"\u4efb\u52a1\u63cf\u8ff0",dataIndex:"jsb_desc",key:"jsb_desc"},{title:"\u5b9a\u65f6\u89c4\u5219",dataIndex:"job_cron",key:"job_cron"},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"update_time",key:"update_time"},{title:"\u72b6\u6001",key:"trigger_status",render:function(e,a){return(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{checkedChildren:"\u5f00",unCheckedChildren:"\u5173",checked:1===a.trigger_status,loading:T,onClick:function(){var e=(0,u.default)(l.default.mark((function e(){var n,o,s;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),n=j.find((function(e){return e.id===a.key})),o=1===n.trigger_status?0:1,e.next=5,(0,f.updateJobStatus)({id:a.key,trigger_status:o});case 5:s=e.sent,200===s.data.code?(d.default.success(1===a.trigger_status?"\u5173\u95ed\u6210\u529f":"\u5f00\u542f\u6210\u529f"),z(P,A)):d.default.error(1===a.trigger_status?"\u5173\u95ed\u5931\u8d25":"\u5f00\u542f\u5931\u8d25"),w(!1);case 9:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}()}))}},{title:"\u64cd\u4f5c",key:"operation",render:function(e,t){return(0,i.default)(r.default,{size:"middle"},void 0,(0,i.default)("span",{onClick:function(){K(t.id)},style:B?{color:"#bfbfbf",cursor:"no-drop"}:{color:"#1890ff",cursor:"pointer"}},void 0,"\u6267\u884c\u4e00\u6b21"),(0,i.default)("span",{onClick:function(){a(t.id)},style:{color:"#1890ff",cursor:"pointer"}},void 0,"\u67e5\u770b\u65e5\u5fd7"),(0,i.default)("span",{onClick:function(){var e;e=t.id,_.push(h.datasourceDevUrl.editSync(e,P,A))},style:{color:"#1890ff",cursor:"pointer"}},void 0,"\u7f16\u8f91"),(0,i.default)(o.default,{title:"\u786e\u8ba4\u5220\u9664\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onConfirm:function(){return q(t.id)}},void 0,(0,i.default)("span",{style:{color:"#1890ff",cursor:"pointer"}},void 0,"\u5220\u9664")))}}];return(0,i.default)(n.default,{columns:H,dataSource:b,bordered:!0,loading:D,pagination:{current:P,total:O,pageSize:A,onChange:function(e,t){z(e,t)}}})},a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/popconfirm/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=a("./node_modules/react/index.js"),p=(g(c),a("./node_modules/react-router-dom/esm/react-router-dom.js")),f=a("./src/module/dataMgr/datasourceDev/services/index.js"),m=g(a("./node_modules/moment/moment.js")),h=(g(a("./node_modules/prop-types/index.js")),a("./src/routes/routeHelper.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}},"./src/module/dataMgr/datasourceDev/component/EditSyncView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/drawer/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/antd/es/space/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/babel-runtime/helpers/extends.js")),d=C(a("./node_modules/babel-runtime/regenerator/index.js")),l=C(a("./node_modules/antd/es/message/index.js")),u=C(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),c=C(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var p=a("./node_modules/react/index.js"),f=C(p),m=C(a("./src/module/dataMgr/datasourceDev/component/StepFour.jsx")),h=C(a("./src/module/dataMgr/datasourceDev/component/DataTableStruct.jsx")),g=a("./node_modules/react-router-dom/esm/react-router-dom.js"),v=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),_=a("./node_modules/@ant-design/icons/es/index.js"),y=a("./src/module/dataMgr/datasourceDev/services/index.js"),b=C(a("./node_modules/moment/moment.js")),x=a("./src/routes/routeHelper.jsx");function C(e){return e&&e.__esModule?e:{default:e}}var j=v.default.div.withConfig({displayName:"EditSyncView__EditView",componentId:"oxaxf8-0"})(["padding:20px;.check__btn{position:absolute;right:0;top:20%;border-radius:0;}"]),S=(0,r.default)(_.MenuFoldOutlined,{});t.default=function(){var e=(0,g.useHistory)(),t=(0,g.useParams)(),a=t.id,v=t.page,C=t.pageSize,I=(0,p.useRef)(),T=f.default.createRef(),w=c.default.useForm()[0],E=(0,p.useState)(0),D=E[0],M=E[1],k=(0,p.useState)(!1),P=k[0],L=k[1],N=(0,p.useState)(null),A=N[0],R=N[1],F=(0,p.useState)(null),O=F[0],V=F[1],U=(0,p.useState)(!1),B=U[0],G=U[1],z=function(){var e=(0,u.default)(d.default.mark((function e(t){var a,n;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.getJobInfo)(t);case 2:a=e.sent,200===(n=a.data).code?(w.setFieldsValue({job_desc:n.data.job_desc,executor_route_strategy:n.data.executor_route_strategy,executor_block_strategy:n.data.executor_block_strategy,cron_expression:n.data.cron_expression_dict,executor_timeout:n.data.executor_timeout,executor_fail_retry_count:n.data.executor_fail_retry_count,inc_start_time:n.data.inc_start_time&&(0,b.default)(1e3*n.data.inc_start_time),last_time:n.data.last_time,current_time:n.data.current_time,partition_info:n.data.partition_info,partition_time:n.data.partition_time,jvm_param:n.data.jvm_param}),M(n.data.partition_num||0),G(n.data.trigger_status),V(n.data.cron_expression_dict),R(JSON.parse(n.data.job_json))):l.default.error(n.msg);case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),q=function(){var t=(0,u.default)(d.default.mark((function t(n){var o,s,r,u;return d.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=w.getFieldValue(),(s=(0,i.default)({},o,{trigger_status:B,job_json:n,inc_start_time:(0,b.default)(o.inc_start_time).unix()})).partition_num=D,t.next=5,(0,y.updateJobList)(a,s);case 5:r=t.sent,200===(u=r.data).code?(l.default.success("\u63d0\u4ea4\u6210\u529f"),e.push(x.datasourceDevUrl.list({key:"2",page:v,pageSize:C}))):l.default.error(u.msg);case 8:case"end":return t.stop()}}),t,void 0)})));return function(e){return t.apply(this,arguments)}}();return(0,p.useEffect)((function(){a&&z(a)}),[a]),(0,r.default)(j,{},void 0,(0,r.default)(m.default,{onRef:I,syncDataForm:w,cron_data:O,partitionNumHandle:{num:D,func:function(e){return M(e)}}}),(0,r.default)(s.default,{style:{margin:"20px"}},void 0,(0,r.default)(o.default,{onClick:function(){e.push(x.datasourceDevUrl.list({key:"2",page:v,pageSize:C}))}},void 0,"\u53d6\u6d88"),(0,r.default)(o.default,{type:"primary",onClick:function(){T.current&&T.current.jsonValue&&T.current.jsonValue.editor&&R(JSON.parse(T.current.jsonValue.editor.getValue()));try{var e=JSON.stringify(A);T.current&&(e=JSON.stringify(JSON.parse(T.current.jsonValue.editor.getValue()))),0!==Object.keys(I.current.getCronData).length&&w.setFieldValue("cron_expression",I.current.getCronData),w.validateFields().then((function(){q(e)})).catch((function(e){l.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))}catch(e){l.default.info("\u6b63\u5728\u8f6c\u6362JSON\u5b57\u7b26\u4e32")}}},void 0,"\u63d0\u4ea4")),(0,r.default)(o.default,{type:"primary",onClick:function(){L(!0)},className:"check__btn",size:"large",icon:S},void 0,"\u6784\u5efa"),(0,r.default)(n.default,{title:"\u6784\u5efa",placement:"right",onClose:function(){T.current&&T.current.jsonValue&&T.current.jsonValue.editor&&R(JSON.parse(T.current.jsonValue.editor.getValue())),L(!1)},visible:P,width:600,mask:!1,destroyOnClose:!0,closeIcon:(0,r.default)(_.MenuUnfoldOutlined,{style:{color:"#1890ff"}})},void 0,(0,r.default)(h.default,{currentStep:3,tableData:{},datax:A,onRef:T})))}},"./src/module/dataMgr/datasourceDev/component/LogWatcher.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/antd/es/checkbox/index.js")),s=v(a("./node_modules/antd/es/input/index.js")),r=v(a("./node_modules/antd/es/space/index.js")),i=v(a("./node_modules/babel-runtime/helpers/jsx.js")),d=v(a("./node_modules/babel-runtime/regenerator/index.js")),l=v(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/checkbox/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/space/style/index.js");var u=a("./node_modules/react/index.js"),c=(v(u),a("./node_modules/react-router-dom/esm/react-router-dom.js")),p=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=a("./src/module/dataMgr/datasourceDev/services/index.js"),m=a("./node_modules/@ant-design/icons/es/index.js"),h=v(a("./node_modules/mark.js/dist/mark.js")),g=a("./src/routes/routeHelper.jsx");function v(e){return e&&e.__esModule?e:{default:e}}var _=p.default.div.withConfig({displayName:"LogWatcher__LogWrapper",componentId:"sc-1xz4kau-0"})(["margin:20px;padding:30px;background-color:#fff;.log{background-color:#012b36;height:calc(100vh - 200px);overflow-y:scroll;color:#638691;padding:8px 10px;::-webkit-scrollbar{display:none;}}.return{display:flex;justify-content:space-between;padding-bottom:10px;}"]),y=null;t.default=function(){var e=(0,c.useHistory)(),t=(0,c.useParams)(),a=t.id,p=t.logId,v=t.page,b=t.pageSize,x=(0,u.useState)(null),C=x[0],j=x[1],S=(0,u.useState)(!1),I=S[0],T=S[1],w=(0,u.useState)(null),E=w[0],D=w[1],M=(0,u.useState)([]),k=M[0],P=M[1],L=(0,u.useState)(0),N=L[0],A=L[1],R=function(){var e=(0,l.default)(d.default.mark((function e(){var t,n;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.getOnceJoblog)(a);case 2:t=e.sent,200===(n=t.data).code&&(j(n.data.log),![2,3].includes(n.data.status)&&I&&(clearTimeout(y),y=setTimeout((function(){R()}),5e3)));case 5:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){R()}),[a]),(0,u.useEffect)((function(){I?R():clearTimeout(y)}),[I]);var F=(0,i.default)(r.default,{},void 0,(0,i.default)("span",{},void 0,N,"/",k.length),(0,i.default)(m.UpOutlined,{onClick:function(){if(k.length){var e=document.getElementById("log");k[N-1].style.backgroundColor="#fffd38",N-1>0?(A(N-1),k[N-2].style.backgroundColor="#fd9640",e.scrollTop=k[N-2].offsetTop-250,e.scrollLeft=k[N-2].offsetLeft-e.clientWidth+150):(A(k.length),k[k.length-1].style.backgroundColor="#fd9640",e.scrollTop=k[k.length-1].offsetTop-250,e.scrollLeft=k[k.length-1].offsetLeft-e.clientWidth+150)}}}),(0,i.default)(m.DownOutlined,{onClick:function(){if(k.length){var e=document.getElementById("log");k[N-1].style.backgroundColor="#fffd38",N+1<=k.length?(A(N+1),k[N].style.backgroundColor="#fd9640",e.scrollTop=k[N].offsetTop-250,e.scrollLeft=k[N].offsetLeft-e.clientWidth+150):(A(1),k[0].style.backgroundColor="#fd9640",e.scrollTop=k[0].offsetTop-250,e.scrollLeft=k[0].offsetLeft-e.clientWidth+150)}}}));return(0,i.default)(_,{},void 0,(0,i.default)("div",{className:"return"},void 0,(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{value:E,onChange:function(e){D(e.target.value),A(0);var t=new h.default(document.querySelector("#log"));t.unmark({done:function(){var a=[];if(t.mark(e.target.value,{each:function(e){e.style.backgroundColor="#fffd38",e.style.padding=0,a.push(e)}}),a.length>0){A(1);var n=document.getElementById("log");a[0].style.backgroundColor="#fd9640",n.scrollTop=a[0].offsetTop-250,n.scrollLeft=a[0].offsetLeft-n.clientWidth+150}P(a)}})},addonAfter:F,placeholder:"\u8f93\u5165\u5173\u952e\u8bcd"})),(0,i.default)(r.default,{},void 0,(0,i.default)(o.default,{onChange:function(e){T(e.target.checked)},checked:I},void 0,"\u81ea\u52a8\u5237\u65b0"),(0,i.default)(n.default,{onClick:function(){R()}},void 0,"\u5237\u65b0"),(0,i.default)(n.default,{type:"primary",onClick:function(){e.push(g.datasourceDevUrl.list({key:"3",logId:p,page:v,pageSize:b}))}},void 0,"\u8fd4\u56de\u4e0a\u4e00\u7ea7"))),(0,i.default)("pre",{className:"log",id:"log"},void 0,C))}},"./src/module/dataMgr/datasourceDev/component/StepFour.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/date-picker/index.js")),o=m(a("./node_modules/antd/es/input-number/index.js")),s=m(a("./node_modules/antd/es/input/index.js")),r=m(a("./node_modules/antd/es/col/index.js")),i=m(a("./node_modules/antd/es/row/index.js")),d=m(a("./node_modules/antd/es/select/index.js")),l=m(a("./node_modules/babel-runtime/helpers/jsx.js")),u=m(a("./node_modules/antd/es/form/index.js"));t.default=function(e){var t=e.onRef,a=e.syncDataForm,n=e.partitionNumHandle,m=e.cron_data,j=(0,c.useState)(!1),S=j[0],I=j[1],T=(0,c.useState)(null),w=T[0],E=T[1],D=(0,c.useState)(0),M=D[0],k=D[1];(0,c.useState)((function(){E(a.getFieldValue("cron_expression")),a.getFieldValue("partition_info")&&I(!0)}),[]),(0,c.useMemo)((function(){E(m),a.getFieldValue("partition_info")&&I(!0),null!==n.num&&k(n.num)}),[m]),(0,c.useState)((function(){null!==n.num&&k(n.num)}),[n.num]);return(0,l.default)("div",{},void 0,(0,l.default)("p",{style:{fontWeight:600,borderLeft:"3px solid #1881DA",paddingLeft:"12px"}},void 0,"\u8bbe\u7f6e\u540c\u6b65\u53c2\u6570"),(0,l.default)(u.default,{name:"syncForm",form:a,labelCol:{span:2},wrapperCol:{span:8},initialValues:{partition_info:"",executor_timeout:0,executor_fail_retry_count:0,inc_start_time:""}},void 0,(0,l.default)(h,{label:"\u540c\u6b65\u4efb\u52a1\u540d\u79f0",name:"job_desc",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u540c\u6b65\u4efb\u52a1\u540d"}]},void 0,g),(0,l.default)(h,{label:"\u8def\u7531\u7b56\u7565",name:"executor_route_strategy",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8def\u7531\u7b56\u7565"}]},void 0,(0,l.default)(d.default,{options:[{label:"\u7b2c\u4e00\u4e2a",value:"FIRST"},{label:"\u6700\u540e\u4e00\u4e2a",value:"LAST"}],allowClear:!0,placeholder:"\u8bf7\u9009\u62e9\u8def\u7531\u7b56\u7565"})),(0,l.default)(h,{label:"\u963b\u585e\u5904\u7406\u65b9\u5f0f",name:"executor_block_strategy",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u963b\u585e\u5904\u7406\u65b9\u5f0f"}]},void 0,(0,l.default)(d.default,{options:[{label:"\u5355\u673a\u4e32\u884c",value:"SERIAL_EXECUTION"},{label:"\u4e22\u5f03\u540e\u7eed\u8c03\u5ea6",value:"SERIAL_EXECUTION1"},{label:"\u8986\u76d6\u4e4b\u524d\u8c03\u5ea6",value:"SERIAL_EXECUTION2"}],allowClear:!0,placeholder:"\u8bf7\u9009\u62e9\u963b\u585e\u5904\u7406\u65b9\u5f0f"})),(0,l.default)(h,{label:"\u5b9a\u65f6\u89c4\u5219",name:"cron_expression",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5b9a\u65f6\u89c4\u5219"}]},void 0,p.default.createElement(f.default,{cron_data:w,ref:t,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\datasourceDev\\component\\StepFour.jsx",lineNumber:125}})),(0,l.default)(h,{label:"\u8d85\u65f6\u65f6\u95f4",name:"executor_timeout",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8d85\u65f6\u65f6\u95f4"}]},void 0,v),(0,l.default)(h,{label:"\u5931\u8d25\u91cd\u8bd5\u6b21\u6570",name:"executor_fail_retry_count",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5931\u8d25\u91cd\u8bd5\u6b21\u6570"}]},void 0,_),y,b,x,(0,l.default)(i.default,{span:24},void 0,(0,l.default)(r.default,{span:8},void 0,(0,l.default)(h,{label:"\u5206\u533a\u5b57\u6bb5",name:"partition_info",labelCol:{span:6},wrapperCol:{span:12}},void 0,(0,l.default)(s.default,{onChange:function(e){e.target.value&&!S?I(!0):!e.target.value&&S&&I(!1)},placeholder:"\u8bf7\u8f93\u5165\u5206\u533a\u5b57\u6bb5"}))),S?(0,l.default)("div",{},void 0,(0,l.default)(r.default,{span:4},void 0,(0,l.default)(h,{label:"\u5206\u533a\u65f6\u95f4",name:"partition_time",labelCol:{span:12},wrapperCol:{span:12}},void 0,(0,l.default)(d.default,{options:[{label:"%Y-%m-%d",value:"%Y-%m-%d"},{label:"%Y%m%d",value:"%Y%m%d"},{label:"%Y/%m/%d",value:"%Y/%m/%d"}],allowClear:!0,onSelect:function(e){return a.setFieldValue("partition_time",e)}}))),(0,l.default)(r.default,{},void 0,(0,l.default)(o.default,{value:M,onChange:function(e){k(e),n.func(e)},style:{marginLeft:"10px"},max:0,min:-20}))):""),C))},a("./node_modules/antd/es/date-picker/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var c=a("./node_modules/react/index.js"),p=m(c),f=m(a("./src/components/cronSelect/CronSelect.jsx"));m(a("./node_modules/prop-types/index.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=u.default.Item,g=(0,l.default)(s.default,{placeholder:"\u8bf7\u8f93\u5165\u540c\u6b65\u4efb\u52a1\u540d\u79f0"}),v=(0,l.default)(o.default,{min:0,addonAfter:"\u5206\u949f"}),_=(0,l.default)(o.default,{min:0,addonAfter:"\u6b21"}),y=(0,l.default)(h,{label:"\u589e\u91cf\u5f00\u59cb\u65f6\u95f4",name:"inc_start_time"},void 0,(0,l.default)(n.default,{showTime:!0,placeholder:"\u8bf7\u9009\u62e9\u589e\u91cf\u5f00\u59cb\u65f6\u95f4"})),b=(0,l.default)(h,{label:"\u4e0a\u6b21\u6267\u884c\u65f6\u95f4",name:"last_time"},void 0,(0,l.default)(s.default,{placeholder:"lastTime"})),x=(0,l.default)(h,{label:"\u672c\u6b21\u6267\u884c\u65f6\u95f4",name:"current_time"},void 0,(0,l.default)(s.default,{placeholder:"currentTime"})),C=(0,l.default)(h,{label:"JVM\u542f\u52a8\u53c2\u6570",name:"jvm_param"},void 0,(0,l.default)(s.default,{placeholder:"-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError"}))},"./src/module/dataMgr/datasourceDev/component/StepOne.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/select/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/regenerator/index.js")),r=p(a("./node_modules/antd/es/message/index.js")),i=p(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),d=p(a("./node_modules/antd/es/form/index.js")),l=p(a("./node_modules/antd/es/input/index.js"));t.default=function(e){var t=this,a=e.drawDataForm,l=e.dataSourceList,p=e.updateTableStruct,f=e.updateDrawAilabStruct,x=e.updateDrawLakeStruct,C=(0,u.useState)(null),j=C[0],S=C[1],I=(0,u.useState)(),T=I[0],w=I[1],E=(0,u.useState)([]),D=E[0],M=E[1],k=(0,u.useState)(null),P=k[0],L=k[1];(0,u.useEffect)((function(){0!==l.length&&w(l.map((function(e){return{label:e.datasource_name,value:e.key}})))}),[l]),(0,u.useEffect)((function(){var e=a.getFieldValue("datasource_name"),t=a.getFieldValue("datasource_table"),n=a.getFieldValue("datasource_type");if(F(n),e){var o=l.find((function(t){return t.key===e})).datasource;S(o),N(e),a.setFieldValue("datasource_table",t)}}),[]);var N=function(){var e=(0,i.default)(s.default.mark((function e(n){var o,i,d,u;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.setFieldValue("datasource_table",null),o=l.find((function(e){return e.key===n}))&&l.find((function(e){return e.key===n})).datasource,S(o),e.next=5,(0,c.getTableNamesList)(n);case 5:i=e.sent,200===(d=i.data).code?(u=d.data.map((function(e){return{label:e,value:e}})),M(u)):r.default.error("\u6570\u636e\u8868\u52a0\u8f7d\u5931\u8d25");case 8:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}(),A=function(){var e=(0,i.default)(s.default.mark((function e(){var a,n,o;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.getAilabList)();case 2:a=e.sent,200===(n=a.data).code?(o=n.data.table_list.map((function(e,t){return{key:t,label:e,value:e}})),M(o)):r.default.error(n.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=(0,i.default)(s.default.mark((function e(){var a,n,o;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.getLakeTable)();case 2:a=e.sent,200===(n=a.data).code?(o=n.data.map((function(e,t){return{key:t,label:e.table_name,value:e.table_name,table_path:e.table_path}})),M(o)):r.default.error(n.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),F=function(e){switch(L(e),e){case"datasource":var t=a.getFieldValue("datasource_name");t&&N(t);break;case"datalake":S("hive"),R();break;default:S("hive"),A()}};return(0,o.default)("div",{},void 0,(0,o.default)("p",{style:{fontWeight:600,borderLeft:"3px solid #1890ff",paddingLeft:"12px"}},void 0,"\u914d\u7f6e\u63d0\u53d6\u6e90"),(0,o.default)(d.default,{name:"drawForm",form:a,labelCol:{span:2},wrapperCol:{span:6},initialValues:{query_sql:"",where_param:"",reader_split_pk:"",delimiter:""}},void 0,(0,o.default)(m,{label:"\u6570\u636e\u6e90\u5206\u7c7b",name:"datasource_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90\u5206\u7c7b!"}]},void 0,(0,o.default)(n.default,{allowClear:!0,options:"1"===localStorage.getItem("AI.user_role_id")?[{label:"\u81ea\u6dfb\u52a0\u6570\u636e\u6e90",value:"datasource"},{label:"AIlab",value:"ailab"},{label:"\u6570\u636e\u6e56",value:"datalake"}]:[{label:"AIlab",value:"ailab"}],onSelect:function(e){a.setFieldsValue({datasource_name:null,datasource_table:null,reader_path:null}),F(e)},placeholder:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90\u5206\u7c7b"})),"datasource"===P&&(0,o.default)(m,{label:"\u9009\u62e9\u6570\u636e\u6e90",name:"datasource_name",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90!"}]},void 0,(0,o.default)(n.default,{showSearch:!0,optionFilterProp:"label",allowClear:!0,options:T,onSelect:N,placeholder:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90"})),(0,o.default)(m,{label:"\u9009\u62e9\u8868",name:"datasource_table",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8868"}]},void 0,(0,o.default)(n.default,{showSearch:!0,optionFilterProp:"label",options:D,allowClear:!0,onSelect:function(e){var t=a.getFieldValue("datasource_table");switch(P){case"datasource":var n=a.getFieldValue("datasource_name");p(n,e);break;case"datalake":a.setFieldValue("reader_path",D.find((function(e){return e.value===t})).table_path),x(t);break;default:f(t)}},placeholder:"\u8bf7\u9009\u62e9\u6570\u636e\u8868"})),"mysql"===j?(0,o.default)("div",{},void 0,(0,o.default)(m,{label:"query sql",name:"query_sql",wrapperCol:{span:10}},void 0,h),g,(0,o.default)(m,{label:"\u6761\u4ef6\u8bed\u53e5",name:"where_param",wrapperCol:{span:10}},void 0,v)):(0,o.default)("div",{},void 0,(0,o.default)(m,{label:"\u9009\u62e9\u8def\u5f84",name:"reader_path",wrapperCol:{span:10},rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8def\u5f84!"}]},void 0,_),"datasource"===P&&(0,o.default)(m,{label:"HDFS",name:"reader_default_fs",rules:[{required:!0,message:"\u8bf7\u8f93\u5165HDFS"}]},void 0,y),(0,o.default)(m,{label:"\u6587\u4ef6\u7c7b\u578b",name:"reader_file_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"}]},void 0,(0,o.default)(n.default,{options:[{label:"text",value:"text"},{label:"csv",value:"csv"},{label:"orc",value:"orc"}],allowClear:!0,placeholder:"\u6587\u4ef6\u7684\u7c7b\u578b"})),(0,o.default)(m,{label:"\u5206\u9694\u7b26",name:"reader_field_delimiter",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5206\u9694\u7b26!"}]},void 0,b))))},a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var u=a("./node_modules/react/index.js"),c=(p(u),a("./src/module/dataMgr/datasourceDev/services/index.js"));p(a("./node_modules/prop-types/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.TextArea,m=d.default.Item,h=(0,o.default)(f,{rows:5,placeholder:"sql\u67e5\u8be2\uff0c\u4e00\u822c\u7528\u4e8e\u591a\u8868\u5173\u8054\u67e5\u8be2\u65f6\u624d\u7528"}),g=(0,o.default)(m,{label:"\u5207\u5206\u4e3b\u952e",name:"reader_split_pk"},void 0,(0,o.default)(l.default,{placeholder:"\u5207\u5206\u4e3b\u952e"})),v=(0,o.default)(f,{rows:5,placeholder:"where\u6761\u4ef6"}),_=(0,o.default)(f,{rows:5}),y=(0,o.default)(l.default,{placeholder:"Hadoop hdfs\u6587\u4ef6\u7cfb\u7edfnamenode\u8282\u70b9\u5730\u5740"}),b=(0,o.default)(l.default,{placeholder:"\u8bfb\u53d6\u5b57\u6bb5\u7684\u5206\u9694\u7b26"})},"./src/module/dataMgr/datasourceDev/component/StepThree.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/tooltip/index.js")),o=v(a("./node_modules/antd/es/button/index.js")),s=v(a("./node_modules/antd/es/space/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/babel-runtime/regenerator/index.js")),d=v(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js"));t.default=function(e){var t=this,a=e.onRef,u=e.drawDataForm,v=e.loadDataForm,C=e.syncMapSaving,j=(0,l.useState)([]),S=j[0],I=j[1],T=(0,l.useState)([]),w=T[0],E=T[1],D=(0,l.useState)([]),M=D[0],k=D[1];(0,l.useImperativeHandle)(a,(function(){return{syncMappings:M}}));var P=function(){var e=(0,d.default)(i.default.mark((function e(a,n,o){var s,r,d;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("datasource"!==o){e.next=6;break}return e.next=3,(0,g.getTableSchema)({id:a,table_name:n});case 3:e.t0=e.sent,e.next=16;break;case 6:if("datalake"!==o){e.next=12;break}return e.next=9,(0,g.lakeSchema)(n);case 9:e.t1=e.sent,e.next=15;break;case 12:return e.next=14,(0,g.ailabSchema)(n);case 14:e.t1=e.sent;case 15:e.t0=e.t1;case 16:s=e.t0,200===(r=s.data).code&&(d=N(r.data),I(d));case 19:case"end":return e.stop()}}),e,t)})));return function(t,a,n){return e.apply(this,arguments)}}(),L=function(){var e=(0,d.default)(i.default.mark((function e(a,n,o){var s,r,d;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("datasource"!==o){e.next=6;break}return e.next=3,(0,g.getTableSchema)({id:a,table_name:n});case 3:e.t0=e.sent,e.next=16;break;case 6:if("datalake"!==o){e.next=12;break}return e.next=9,(0,g.lakeSchema)(n);case 9:e.t1=e.sent,e.next=15;break;case 12:return e.next=14,(0,g.ailabSchema)(n);case 14:e.t1=e.sent;case 15:e.t0=e.t1;case 16:s=e.t0,200===(r=s.data).code&&(d=N(r.data),E([].concat(d)));case 19:case"end":return e.stop()}}),e,t)})));return function(t,a,n){return e.apply(this,arguments)}}(),N=function(e){return e.map((function(e){var t=e.split(":");return{key:e,id:t[0],value:t[1],type:t[2]}}))};(0,l.useEffect)((function(){var e=u.getFieldValue("datasource_name"),t=u.getFieldValue("datasource_table"),a=u.getFieldValue("datasource_type");t&&a&&P(e,t,a)}),[u]),(0,l.useEffect)((function(){var e=v.getFieldValue("datasource_name"),t=v.getFieldValue("datasource_table"),a=v.getFieldValue("datasource_type");t&&a&&L(e,t,a)}),[v]),(0,l.useEffect)((function(){k(C)}),[C]);var A=function(e){return["varchar","string"].includes(e)};return(0,r.default)(_,{},void 0,y,b,(0,r.default)("div",{className:"table__wrapper"},void 0,(0,r.default)("div",{className:"table__source"},void 0,(0,r.default)("div",{className:"table__title"},void 0,(0,r.default)("span",{},void 0,"\u63d0\u53d6\u6e90\uff1a",u.getFieldValue("datasource_table")),(0,r.default)(s.default,{},void 0,(0,r.default)("span",{},void 0,"\u52a0\u8f7d\u6e90\uff1a",v.getFieldValue("datasource_table")),(0,r.default)(o.default,{type:"link",onClick:function(){var e=[];S.forEach((function(t,a){var n=S[a]&&S[a].type.split("(")[0],o=w[a]&&w[a].type.split("(")[0],s=S[a]&&S[a].value,r=w[a]&&w[a].value,i=!(a>w.length-1)&&(n===o||A(n)&&A(o));s===r&&i&&e.push(a)}));var t=e.map((function(e){return{datasourceField:S[e].value+": "+S[e].type,syncField:w[e].value+": "+w[e].type,key:{drawData:S[e].key,loadData:w[e].key}}}));k([].concat(t))},style:{padding:0}},void 0,"\u5168\u9009"))),(0,r.default)("div",{className:"table__content"},void 0,(0,r.default)(c.ReactSortable,{list:S,setList:I},void 0,S.map((function(e){return(0,r.default)(n.default,{title:(e&&e.value)+": "+(e&&e.type)},e&&e.key,(0,r.default)("p",{className:"field__wrapper field__sync"},void 0,e&&e.value,": ",e&&e.type))}))),(0,r.default)("div",{},void 0,S.map((function(e,t){var a=S[t]&&S[t].type.split("(")[0],n=w[t]&&w[t].type.split("(")[0],o=S[t]&&S[t].value,s=w[t]&&w[t].value,i=!(t>w.length-1)&&(a===n||A(a)&&A(n));return(0,r.default)("div",{className:"sync__img"},e&&e.key,(0,r.default)("img",{src:o===s&&i?f.default:m.default,alt:"",onClick:function(){o===s&&i&&function(e){var t=S[e].value+": "+S[e].type,a=w[e].value+": "+w[e].type,n=M.filter((function(e){return e.datasourceField!==t||e.syncField!==a}));k([].concat(n,[{datasourceField:t,syncField:a,key:{drawData:S[e].key,loadData:w[e].key}}]))}(t)},style:{width:"20px",height:"20px",cursor:o===s&&i?"pointer":"no-drop"}}))}))),(0,r.default)(c.ReactSortable,{list:w,setList:E},void 0,w.map((function(e){return(0,r.default)(n.default,{title:(e&&e.value)+": "+(e&&e.type)},e&&e.key,(0,r.default)("p",{className:"field__wrapper"},void 0,e&&e.value,": ",e&&e.type))}))))),(0,r.default)("div",{className:"arrow"},void 0,(0,r.default)("img",{src:p.default,alt:"",style:{width:"20px",height:"20px"}})),(0,r.default)("div",{className:"table__source"},void 0,(0,r.default)("div",{className:"table__title"},void 0,x,(0,r.default)("span",{onClick:function(){k([])},style:{color:"#7D7D7D",cursor:"pointer"}},void 0,"\u6e05\u7a7a")),(0,r.default)("div",{className:"mapping__content"},void 0,M.map((function(e,t){return(0,r.default)("div",{className:"mapping__item"},t,(0,r.default)("span",{style:{width:"30px"}},void 0,t+1),(0,r.default)(n.default,{title:e&&e.datasourceField},void 0,(0,r.default)("span",{className:"field__wrapper"},void 0,e&&e.datasourceField)),(0,r.default)("img",{src:f.default,alt:"",style:{width:"20px",height:"20px"}}),(0,r.default)(n.default,{title:e&&e.syncField},void 0,(0,r.default)("span",{className:"field__wrapper"},void 0,e&&e.syncField)),(0,r.default)("img",{src:h.default,alt:"",onClick:function(){return t=e,void k(M.filter((function(e){return e!==t})));var t},style:{width:"15px",height:"15px",cursor:"pointer"}}))}))))))},a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/space/style/index.js");var l=a("./node_modules/react/index.js"),u=(v(l),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-sortablejs/dist/index.js"),p=v(a("./src/module/dataMgr/datasourceDev/style/img/arrow.png")),f=v(a("./src/module/dataMgr/datasourceDev/style/img/sync.png")),m=v(a("./src/module/dataMgr/datasourceDev/style/img/warning.png")),h=v(a("./src/module/dataMgr/datasourceDev/style/img/delete.png")),g=a("./src/module/dataMgr/datasourceDev/services/index.js");v(a("./node_modules/prop-types/index.js"));function v(e){return e&&e.__esModule?e:{default:e}}var _=u.default.div.withConfig({displayName:"StepThree__StepThreeDiv",componentId:"uj0xr7-0"})([".title{font-weight:600;border-left:3px solid #1890ff;padding-left:12px;}.tip{font-size:12px;font-weight:400;color:#bbbbbb;line-height:17px;padding-left:80px;margin:30px 0 30px;}.table__wrapper{padding-left:80px;margin-bottom:30px;display:flex;}.table__source{border-radius:2px;border:1px solid #c8d3e9;width:400px;}.table__title{border-bottom:1px solid #c8d3e9;height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;}.table__content{height:500px;display:felx;justify-content:space-between;padding:10px 20px;overflow-y:scroll;}.field__wrapper{background:#ebeff3;padding:8px 10px;width:140px;font-size:12px;font-weight:400;line-height:17px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.field__sync{background:#eef5fe;}.arrow{padding:0 20px;display:flex;align-items:center;}.sync__img{display:flex;align-items:center;height:33px;font-size:12px;margin-bottom:1em;}.mapping__content{height:500px;padding:10px 20px;overflow-y:scroll;}.mapping__item{display:flex;justify-content:space-between;align-items:center;margin-bottom:1em;}"]),y=(0,r.default)("p",{className:"title"},void 0,"\u914d\u7f6e\u8f6c\u6362\u89c4\u5219"),b=(0,r.default)("p",{className:"tip"},void 0,"\u62d6\u62fd\u63d0\u53d6\u6e90\u6570\u636e\u8868\u4e2d\u7684\u5b57\u6bb5\uff0c\u4e0e\u52a0\u8f7d\u6e90\u6570\u636e\u8868"),x=(0,r.default)("span",{},void 0,"\u6620\u5c04\u7ba1\u7406")},"./src/module/dataMgr/datasourceDev/component/StepTwo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/tooltip/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/regenerator/index.js")),r=f(a("./node_modules/antd/es/message/index.js")),i=f(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),d=f(a("./node_modules/antd/es/input/index.js")),l=f(a("./node_modules/antd/es/form/index.js")),u=f(a("./node_modules/antd/es/select/index.js"));t.default=function(e){var t=this,a=e.loadDataForm,n=e.dataSourceList,d=e.updateTableStruct,f=e.updateLoadAilabStruct,m=(0,c.useState)(null),g=m[0],S=m[1],I=(0,c.useState)(),T=I[0],w=I[1],E=(0,c.useState)([]),D=E[0],M=E[1],k=(0,c.useState)(null),P=k[0],L=k[1];(0,c.useEffect)((function(){0!==n.length&&w(n.map((function(e){return{label:e.datasource_name,value:e.key}})))}),[n]),(0,c.useEffect)((function(){var e=a.getFieldValue("datasource_name"),t=a.getFieldValue("datasource_table"),o=a.getFieldValue("datasource_type");if(R(o),e){var s=n.find((function(t){return t.key===e})).datasource;S(s),N(e),a.setFieldValue("datasource_table",t)}}),[]);var N=function(){var e=(0,i.default)(s.default.mark((function e(o){var i,d,l,u;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.setFieldValue("datasource_table",null),i=n.find((function(e){return e.key===o})).datasource,S(i),e.next=5,(0,p.getTableNamesList)(o);case 5:d=e.sent,200===(l=d.data).code?(u=l.data.map((function(e){return{label:e,value:e}})),M(u)):r.default.error("\u6570\u636e\u8868\u52a0\u8f7d\u5931\u8d25");case 8:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}(),A=function(){var e=(0,i.default)(s.default.mark((function e(){var a,n,o;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.getAilabList)();case 2:a=e.sent,200===(n=a.data).code?(o=n.data.table_list.map((function(e,t){return{key:t,label:e,value:e}})),M(o)):r.default.error(n.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),R=function(e){switch(L(e),e){case"datasource":var t=a.getFieldValue("datasource_name");t&&N(t);break;default:S("hive"),A()}};return(0,o.default)("div",{},void 0,(0,o.default)("p",{style:{fontWeight:600,borderLeft:"3px solid #1890ff",paddingLeft:"12px"}},void 0,"\u914d\u7f6e\u52a0\u8f7d\u6e90"),(0,o.default)(l.default,{name:"drawForm",form:a,labelCol:{span:2},wrapperCol:{span:6},initialValues:{pre_sql:"",post_sql:"",writer_field_delimiter:""}},void 0,(0,o.default)(h,{label:"\u6570\u636e\u6e90\u5206\u7c7b",name:"datasource_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90\u5206\u7c7b!"}]},void 0,(0,o.default)(u.default,{allowClear:!0,options:"1"===localStorage.getItem("AI.user_role_id")?[{label:"\u81ea\u6dfb\u52a0\u6570\u636e\u6e90",value:"datasource"},{label:"AIlab",value:"ailab"}]:[{label:"AIlab",value:"ailab"}],onSelect:function(e){a.setFieldsValue({datasource_name:null,datasource_table:null}),R(e)},placeholder:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90\u5206\u7c7b"})),"datasource"===P&&(0,o.default)(h,{label:"\u9009\u62e9\u6570\u636e\u6e90",name:"datasource_name",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90!"}]},void 0,(0,o.default)(u.default,{showSearch:!0,optionFilterProp:"label",options:T,onSelect:N,placeholder:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90",allowClear:!0})),(0,o.default)(h,{label:"\u9009\u62e9\u8868",name:"datasource_table",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8868"}]},void 0,(0,o.default)(u.default,{showSearch:!0,optionFilterProp:"label",options:D,allowClear:!0,onSelect:function(e){var t=a.getFieldValue("datasource_table");switch(P){case"datasource":var n=a.getFieldValue("datasource_name");d(n,e);break;default:f(t)}},placeholder:"\u8bf7\u9009\u62e9\u6570\u636e\u8868"})),"mysql"===g?(0,o.default)("div",{},void 0,(0,o.default)(h,{label:"pre_sql",name:"pre_sql",wrapperCol:{span:10}},void 0,v),(0,o.default)(h,{label:"post_sql",name:"post_sql",wrapperCol:{span:10}},void 0,_)):(0,o.default)("div",{},void 0,(0,o.default)(h,{label:"\u9009\u62e9\u8def\u5f84",name:"writer_path",wrapperCol:{span:10},rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8def\u5f84!"}]},void 0,y),"datasource"===P&&(0,o.default)(h,{label:"HDFS",name:"writer_default_fs",rules:[{required:!0,message:"\u8bf7\u8f93\u5165HDFS"}]},void 0,b),(0,o.default)(h,{label:"\u5199\u5165\u6587\u4ef6\u540d",name:"writer_filename",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6587\u4ef6\u540d\u79f0"}]},void 0,x),(0,o.default)(h,{label:"\u6587\u4ef6\u7c7b\u578b",name:"writer_file_type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"}]},void 0,(0,o.default)(u.default,{options:[{label:"text",value:"text"},{label:"csv",value:"csv"},{label:"orc",value:"orc"}],allowClear:!0,placeholder:"\u6587\u4ef6\u7684\u7c7b\u578b"})),(0,o.default)(h,{label:"\u5199\u5165\u6a21\u5f0f",name:"writer_mode",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5199\u5165\u6a21\u5f0f"}]},void 0,C),(0,o.default)(h,{label:"\u5206\u9694\u7b26",name:"writer_field_delimiter",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5206\u9694\u7b26!"}]},void 0,j))))},a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=a("./node_modules/react/index.js"),p=(f(c),a("./src/module/dataMgr/datasourceDev/services/index.js"));f(a("./node_modules/prop-types/index.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=u.default.Option,h=l.default.Item,g=d.default.TextArea,v=(0,o.default)(g,{rows:5,placeholder:"\u8bf7\u8f93\u5165pre_sql\u8bed\u53e5"}),_=(0,o.default)(g,{rows:5,placeholder:"\u8bf7\u8f93\u5165post_sql\u8bed\u53e5"}),y=(0,o.default)(g,{rows:5,placeholder:"\u8981\u8bfb\u53d6\u7684\u6587\u4ef6\u8def\u5f84"}),b=(0,o.default)(d.default,{placeholder:"Hadoop hdfs\u6587\u4ef6\u7cfb\u7edfnamenode\u8282\u70b9\u5730\u5740"}),x=(0,o.default)(d.default,{placeholder:"\u8bf7\u8f93\u5165\u6587\u4ef6\u540d\u79f0"}),C=(0,o.default)(u.default,{allowClear:!0,placeholder:"\u5199\u5165\u6a21\u5f0f",optionLabelProp:"label"},void 0,(0,o.default)(m,{label:"append",value:"append"},void 0,(0,o.default)(n.default,{title:"append\uff1a\u5199\u5165\u524d\u4e0d\u505a\u4efb\u4f55\u5904\u7406\uff0c\u6570\u636e\u96c6\u6210HDFS Writer\u76f4\u63a5\u4f7f\u7528filename\u5199\u5165\uff0c\u5e76\u4fdd\u8bc1\u6587\u4ef6\u540d\u4e0d\u51b2\u7a81\u3002"},void 0,(0,o.default)("div",{},void 0,"append"))),(0,o.default)(m,{label:"nonConflict",value:"nonConflict"},void 0,(0,o.default)(n.default,{title:"nonConflict\uff1a\u5982\u679c\u76ee\u5f55\u4e0b\u6709fileName\u524d\u7f00\u7684\u6587\u4ef6\uff0c\u76f4\u63a5\u62a5\u9519\u3002"},void 0,(0,o.default)("div",{},void 0,"nonConflict"))),(0,o.default)(m,{label:"truncate",value:"truncate"},void 0,(0,o.default)(n.default,{title:"truncate\uff1a\u5199\u5165\u524d\u6e05\u7406fileName\u540d\u79f0\u524d\u7f00\u5339\u914d\u7684\u6240\u6709\u6587\u4ef6\u3002\u4f8b\u5982\uff0c'fileName': 'abc'\uff0c\u5c06\u6e05\u7406\u5bf9\u5e94\u76ee\u5f55\u6240\u6709abc\u5f00\u5934\u7684\u6587\u4ef6\u3002"},void 0,(0,o.default)("div",{},void 0,"truncate")))),j=(0,o.default)(d.default,{placeholder:"\u8bfb\u53d6\u5b57\u6bb5\u7684\u5206\u9694\u7b26"})},"./src/module/dataMgr/datasourceDev/component/SyncTaskAdd.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/space/index.js")),o=I(a("./node_modules/antd/es/drawer/index.js")),s=I(a("./node_modules/antd/es/button/index.js")),r=I(a("./node_modules/babel-runtime/helpers/jsx.js")),i=I(a("./node_modules/babel-runtime/helpers/extends.js")),d=I(a("./node_modules/antd/es/form/index.js")),l=I(a("./node_modules/antd/es/message/index.js")),u=I(a("./node_modules/babel-runtime/regenerator/index.js")),c=I(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),p=I(a("./node_modules/antd/es/steps/index.js"));t.default=function(){var e=this,t=(0,j.useHistory)(),a=_.default.createRef(),b=_.default.createRef(),I=(0,v.useRef)(),T=(0,v.useState)(0),L=T[0],N=T[1],A=(0,v.useState)([]),R=A[0],F=A[1],O=(0,v.useState)(!1),V=O[0],U=O[1],B=(0,v.useState)(!1),G=B[0],z=B[1],q=(0,v.useState)(!1),K=q[0],H=q[1],Y=(0,v.useState)(null),W=Y[0],J=Y[1],Q=(0,v.useState)(0),Z=Q[0],X=Q[1],$=(0,v.useState)(null),ee=$[0],te=$[1],ae=(0,v.useState)([]),ne=ae[0],oe=ae[1],se=function(){var t=(0,c.default)(u.default.mark((function t(a,n){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe(a,n,oe);case 2:case"end":return e.stop()}}),t,e)})));return function(e,a){return t.apply(this,arguments)}}(),re=function(){var t=(0,c.default)(u.default.mark((function t(a){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,me(a,oe);case 2:case"end":return e.stop()}}),t,e)})));return function(e){return t.apply(this,arguments)}}(),ie=function(){var t=(0,c.default)(u.default.mark((function t(a){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,he(a,oe);case 2:case"end":return e.stop()}}),t,e)})));return function(e){return t.apply(this,arguments)}}(),de=(0,v.useState)([]),le=de[0],ue=de[1],ce=function(){var t=(0,c.default)(u.default.mark((function t(a,n){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe(a,n,ue);case 2:case"end":return e.stop()}}),t,e)})));return function(e,a){return t.apply(this,arguments)}}(),pe=function(){var t=(0,c.default)(u.default.mark((function t(a){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,me(a,ue);case 2:case"end":return e.stop()}}),t,e)})));return function(e){return t.apply(this,arguments)}}(),fe=function(){var t=(0,c.default)(u.default.mark((function t(a,n,o){var s,r,i;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.getTableSchema)({id:a,table_name:n});case 2:s=e.sent,200===(r=s.data).code?(i=r.data.map((function(e){var t=e.split(":");return{key:t[0],id:t[0],field:t[1],type:t[2]}})),o(i)):l.default.error("\u8868\u7ed3\u6784\u6570\u636e\u52a0\u8f7d\u5931\u8d25");case 5:case"end":return e.stop()}}),t,e)})));return function(e,a,n){return t.apply(this,arguments)}}(),me=function(){var t=(0,c.default)(u.default.mark((function t(a,n){var o,s,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.ailabSchema)(a);case 2:o=e.sent,200===(s=o.data).code?(r=s.data.map((function(e){var t=e.split(":");return{key:t[0],id:t[0],field:t[1],type:t[2]}})),n(r)):l.default.error("\u8868\u7ed3\u6784\u6570\u636e\u52a0\u8f7d\u5931\u8d25");case 5:case"end":return e.stop()}}),t,e)})));return function(e,a){return t.apply(this,arguments)}}(),he=function(){var t=(0,c.default)(u.default.mark((function t(a,n){var o,s,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.lakeSchema)(a);case 2:o=e.sent,200===(s=o.data).code?(r=s.data.map((function(e){var t=e.split(":");return{key:t[0],id:t[0],field:t[1],type:t[2]}})),n(r)):l.default.error("\u8868\u7ed3\u6784\u6570\u636e\u52a0\u8f7d\u5931\u8d25");case 5:case"end":return e.stop()}}),t,e)})));return function(e,a){return t.apply(this,arguments)}}(),ge=d.default.useForm()[0],ve=d.default.useForm()[0],_e=d.default.useForm()[0],ye=(0,v.useState)(ge),be=ye[0],xe=ye[1],Ce=function(e){-1===e&&H(!1),N(L+e)},je=function(){0!==Object.keys(I.current.getCronData).length&&te(I.current.getCronData)};(0,v.useEffect)((function(){switch(L){case 0:xe(ge);break;case 1:xe(ve);break;case 3:xe(_e)}}),[L]);var Se=(0,v.useState)(!1),Ie=Se[0],Te=Se[1],we=function(){Te(!0)},Ee=function(){var t=(0,c.default)(u.default.mark((function t(){var a,n,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.getDataSourceList)();case 2:a=e.sent,200===(n=a.data).code&&(o=n.data.items.map((function(e){return{key:e.id,datasource_name:e.datasource_name,datasource:e.datasource}})),F(o));case 5:case"end":return e.stop()}}),t,e)})));return function(){return t.apply(this,arguments)}}();(0,v.useEffect)((function(){"1"===localStorage.getItem("AI.user_role_id")&&Ee()}),[]);var De=(0,v.useState)([]),Me=De[0],ke=De[1],Pe=(0,v.useState)([]),Le=Pe[0],Ne=Pe[1],Ae=(0,v.useState)([]),Re=Ae[0],Fe=Ae[1],Oe=function(){var e=ge.getFieldValue(),t=ve.getFieldValue(),a=e.datasource_name,n=[e.datasource_table],o=t.datasource_name,s=[t.datasource_table],r=t.writer_filename,d=e.datasource_type,l=e.datasource_type,u={reader_datasource_id:a,reader_tables:n,reader_columns:Le,writer_datasource_id:o,writer_tables:s,writer_columns:Re,reader_type:d,writer_type:l},c="datasource"===d?R.find((function(e){return e.key===a})).datasource:"hive",p="datasource"===l?R.find((function(e){return e.key===o})).datasource:"hive",f=e.reader_split_pk,m=e.where_param,h=e.query_sql,g=e.reader_default_fs,v=e.reader_file_type,_=e.reader_path,y=e.reader_field_delimiter,b=t.pre_sql,x=t.post_sql,C=t.writer_default_fs,j=t.writer_file_type,S=t.writer_path,I=t.writer_mode,T=t.writer_field_delimiter;switch(c+"2"+p){case"mysql2mysql":return(0,i.default)({},u,{rdbms_reader:{reader_split_pk:f,where_param:m,query_sql:h},rdbms_writer:{pre_sql:b,post_sql:x}});case"mysql2hive":return(0,i.default)({},u,{rdbms_reader:{reader_split_pk:f,where_param:m,query_sql:h},hive_writer:{writer_default_fs:C,writer_file_type:j,writer_path:S,writer_mode:I,writer_field_delimiter:T,writer_filename:r}});case"hive2mysql":return(0,i.default)({},u,{hive_reader:{reader_default_fs:g,reader_file_type:v,reader_path:_,reader_field_delimiter:y},rdbms_writer:{pre_sql:b,post_sql:x}});case"hive2hive":return(0,i.default)({},u,{hive_reader:{reader_default_fs:g,reader_file_type:v,reader_path:_,reader_field_delimiter:y},hive_writer:{writer_default_fs:C,writer_file_type:j,writer_path:S,writer_mode:I,writer_field_delimiter:T,writer_filename:r}})}return null},Ve=function(){var t=(0,c.default)(u.default.mark((function t(){var a,n,o,s;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(je(),a=Oe()){e.next=5;break}return l.default.error("\u83b7\u53d6\u8868\u5355\u53c2\u6570\u5931\u8d25"),e.abrupt("return");case 5:return U(!0),e.next=8,(0,C.buildJsonData)(a);case 8:n=e.sent,200===(o=n.data).code?(l.default.success("\u6784\u5efa\u6210\u529f"),s=o.data.json,J(s),we(),H(!0)):l.default.error("\u6784\u5efa\u5931\u8d25,\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e"),U(!1);case 12:case"end":return e.stop()}}),t,e)})));return function(){return t.apply(this,arguments)}}(),Ue=function(){var a=(0,c.default)(u.default.mark((function a(n){var o,s,r,d;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=be.getFieldValue(),(s=(0,i.default)({},o,{job_json:n,inc_start_time:(0,S.default)(o.inc_start_time).unix()})).partition_num=Z,e.next=5,(0,C.createJob)(s);case 5:r=e.sent,200===(d=r.data).code?(l.default.success("\u63d0\u4ea4\u6210\u529f"),t.goBack()):l.default.error(d.msg),z(!1);case 9:case"end":return e.stop()}}),a,e)})));return function(e){return a.apply(this,arguments)}}();return(0,r.default)(w,{},void 0,(0,r.default)(p.default,{current:L,labelPlacement:"vertical",size:"small"},void 0,E,D,M,k),0===L&&(0,r.default)(f.default,{drawDataForm:ge,dataSourceList:R,updateTableStruct:se,updateDrawAilabStruct:re,updateDrawLakeStruct:ie}),1===L&&(0,r.default)(m.default,{loadDataForm:ve,dataSourceList:R,updateTableStruct:ce,updateLoadAilabStruct:pe}),2===L&&(0,r.default)(h.default,{onRef:a,drawDataForm:ge,loadDataForm:ve,syncMapSaving:Me}),3===L&&(0,r.default)(g.default,{onRef:I,syncDataForm:_e,cron_data:ee,partitionNumHandle:{num:Z,func:function(e){return X(e)}}}),(0===L||1===L||3===L)&&(0,r.default)("div",{},void 0,null!==W||3!==L&&(0,r.default)(s.default,{type:"primary",onClick:we,className:"check__btn",size:"large",icon:P},void 0,3!==L?"\u8868\u7ed3\u6784\u9884\u89c8":"\u6784\u5efa"),(0,r.default)(o.default,{title:3===L?"\u6784\u5efa":"\u8868\u7ed3\u6784\u9884\u89c8",placement:"right",onClose:function(){3===L&&(je(),b.current&&b.current.jsonValue&&b.current.jsonValue.editor&&J(JSON.parse(b.current.jsonValue.editor.getValue()))),Te(!1)},visible:Ie,width:600,mask:!1,destroyOnClose:!0,closeIcon:(0,r.default)(x.MenuUnfoldOutlined,{style:{color:"#1890ff"}})},void 0,(0,r.default)(y.default,{currentStep:L,tableData:0===L?ne:le,datax:W,onRef:b}))),(0,r.default)(n.default,{style:{margin:"20px"}},void 0,0===L&&(0,r.default)(s.default,{onClick:function(){t.goBack()}},void 0,"\u8fd4\u56de\u4e0a\u4e00\u7ea7"),0!==L&&(0,r.default)(s.default,{onClick:function(){Ce(-1)},disabled:V},void 0,"\u4e0a\u4e00\u6b65"),3===L?(0,r.default)(s.default,{type:"primary",onClick:K?function(){b.current&&b.current.jsonValue&&b.current.jsonValue.editor&&J(JSON.parse(b.current.jsonValue.editor.getValue()));try{var e=JSON.stringify(W);b.current&&b.current.jsonValue&&b.current.jsonValue.editor&&(e=JSON.stringify(JSON.parse(b.current.jsonValue.editor.getValue()))),0!==Object.keys(I.current.getCronData).length&&be.setFieldValue("cron_expression",I.current.getCronData),be.validateFields().then((function(){Ue(e)})).catch((function(e){l.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))}catch(e){l.default.info("\u6b63\u5728\u8f6c\u6362JSON\u5b57\u7b26\u4e32")}}:Ve,loading:K?G:V},void 0,K?"\u63d0\u4ea4":"\u6784\u5efa"):(0,r.default)(s.default,{type:"primary",onClick:function(){2===L&&(ke(a.current.syncMappings),Ne(a.current.syncMappings.map((function(e){return e.key.drawData}))),Fe(a.current.syncMappings.map((function(e){return e.key.loadData})))),2===L?a.current&&a.current.syncMappings.length?Ce(1):l.default.error("\u7f3a\u5c11\u540c\u6b65\u5b57\u6bb5"):be.validateFields().then((function(){Ce(1)})).catch((function(e){console.log(e),l.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))}},void 0,"\u4e0b\u4e00\u6b65")))},a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/steps/style/index.js");var f=I(a("./src/module/dataMgr/datasourceDev/component/StepOne.jsx")),m=I(a("./src/module/dataMgr/datasourceDev/component/StepTwo.jsx")),h=I(a("./src/module/dataMgr/datasourceDev/component/StepThree.jsx")),g=I(a("./src/module/dataMgr/datasourceDev/component/StepFour.jsx")),v=a("./node_modules/react/index.js"),_=I(v),y=I(a("./src/module/dataMgr/datasourceDev/component/DataTableStruct.jsx")),b=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),x=a("./node_modules/@ant-design/icons/es/index.js"),C=a("./src/module/dataMgr/datasourceDev/services/index.js"),j=a("./node_modules/react-router/esm/react-router.js"),S=I(a("./node_modules/moment/moment.js"));function I(e){return e&&e.__esModule?e:{default:e}}var T=p.default.Step,w=b.default.div.withConfig({displayName:"SyncTaskAdd__SyncTask",componentId:"doacm6-0"})(["padding:20px;.check__btn{position:absolute;right:0;top:20%;border-radius:0;}"]),E=(0,r.default)(T,{title:"\u6b65\u9aa41: \u914d\u7f6e\u63d0\u53d6\u6e90"}),D=(0,r.default)(T,{title:"\u6b65\u9aa42: \u914d\u7f6e\u52a0\u8f7d\u6e90"}),M=(0,r.default)(T,{title:"\u6b65\u9aa43: \u914d\u7f6e\u8f6c\u6362\u89c4\u5219"}),k=(0,r.default)(T,{title:"\u6b65\u9aa44: \u8bbe\u7f6e\u540c\u6b65\u53c2\u6570"}),P=(0,r.default)(x.MenuFoldOutlined,{})},"./src/module/dataMgr/datasourceDev/component/utils/JsonEditor.jsx":function(e,t,a){"use strict";t.__esModule=!0;t.default=function(e){var t=e.code,a=e.onRef,r=(0,n.useRef)();return(0,n.useImperativeHandle)(a,(function(){return{jsonValue:r.current}})),o.default.createElement(s.default,{ref:function(e){return r.current=e},value:JSON.stringify(JSON.parse(t),null,2),options:{theme:"monokai",keyMap:"sublime",mode:"json"},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\datasourceDev\\component\\utils\\JsonEditor.jsx",lineNumber:13}})};var n=a("./node_modules/react/index.js"),o=r(n),s=r(a("./node_modules/@uiw/react-codemirror/esm/index.js"));a("./node_modules/codemirror/keymap/sublime.js"),a("./node_modules/codemirror/theme/monokai.css");r(a("./node_modules/prop-types/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}},"./src/module/dataMgr/datasourceDev/services/index.js":function(e,t,a){"use strict";t.__esModule=!0,t.getDataLakeInfo=t.editDataLake=t.deleteDataLake=t.getAllShareProject=t.lakeSchema=t.lakeTablePreview=t.ailabSchema=t.ailabTablePreview=t.craeteAilab=t.getLakeTable=t.importDatalake=t.shareAilab=t.getUserProjects=t.getAilabList=t.updateDataSourceInfo=t.getDataSourceInfo=t.uploadFile=t.refreshLogsStatus=t.executeOnce=t.createJob=t.buildJsonData=t.getOnceJoblog=t.getJoblog=t.getTableSchema=t.getTableData=t.getTableNamesList=t.getJobInfo=t.delJob=t.updateJobStatus=t.updateJobList=t.getJobList=t.createDataSource=t.testDataSourceConnection=t.delDataSource=t.getDataSourceList=void 0;var n=s(a("./node_modules/babel-runtime/helpers/extends.js")),o=s(a("./src/utils/requestForOcr.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.getDataSourceList=function(){return(0,o.default)({url:"/jpt/datasource/",method:"get"})},t.delDataSource=function(e){return(0,o.default)({url:"/jpt/datasource/"+e,method:"delete"})},t.testDataSourceConnection=function(e){return(0,o.default)({url:"/jpt/datasource/test",method:"post",data:(0,n.default)({},e)})},t.createDataSource=function(e){return(0,o.default)({url:"/jpt/datasource/",method:"post",data:(0,n.default)({},e)})},t.getJobList=function(e){return(0,o.default)({url:"jpt/jobinfo/?page="+e.page+"&size="+e.size,method:"get"})},t.updateJobList=function(e,t){return(0,o.default)({url:"jpt/jobinfo/"+e,method:"put",data:(0,n.default)({},t)})},t.updateJobStatus=function(e){return(0,o.default)({url:"jpt/jobinfo/update_trigger_status/",method:"put",data:e})},t.delJob=function(e){return(0,o.default)({url:"jpt/jobinfo/"+e,method:"delete"})},t.getJobInfo=function(e){return(0,o.default)({url:"jpt/jobinfo/info?job_id="+e,method:"get"})},t.getTableNamesList=function(e){return(0,o.default)({url:"/jpt/datasource/table_names?ds_id="+e,method:"post"})},t.getTableData=function(e){return(0,o.default)({url:"/jpt/datasource/preview?ds_id="+e.id+"&table_name="+e.table_name,method:"post"})},t.getTableSchema=function(e){return(0,o.default)({url:"/jpt/datasource/table_schema?ds_id="+e.id+"&table_name="+e.table_name,method:"post"})},t.getJoblog=function(e){return(0,o.default)({url:"/jpt/joblog/?page="+e.page+"&size="+e.size+("null"!==e.id?"&job_id="+e.id:""),method:"get"})},t.getOnceJoblog=function(e){return(0,o.default)({url:"/jpt/joblog/getOnce?run_id="+e,method:"get"})},t.buildJsonData=function(e){return(0,o.default)({url:"/jpt/datax",method:"post",data:(0,n.default)({},e)})},t.createJob=function(e){return(0,o.default)({url:"jpt/jobinfo/",method:"post",data:(0,n.default)({},e)})},t.executeOnce=function(e){return(0,o.default)({url:"jpt/jobinfo/execute?job_id="+e,method:"post"})},t.refreshLogsStatus=function(e){return(0,o.default)({url:"/jpt/joblog/logs_status/"+e,method:"get"})},t.uploadFile=function(e){return(0,o.default)({url:"/jpt/files/upload_file",method:"post",data:e})},t.getDataSourceInfo=function(e){return(0,o.default)({url:"/jpt/datasource/info?ds_id="+e,method:"get"})},t.updateDataSourceInfo=function(e,t){return(0,o.default)({url:"/jpt/datasource/"+e,method:"put",data:t})},t.getAilabList=function(){return(0,o.default)({url:"jpt/datasource/ailab_table",method:"get"})},t.getUserProjects=function(){return(0,o.default)({url:"/jpt/project",method:"get"})},t.shareAilab=function(e){return(0,o.default)({url:"/jpt/datasource/share_ailab",method:"post",data:e})},t.importDatalake=function(e){return(0,o.default)({url:"/jpt/datasource/import_datalake",method:"post",data:e})},t.getLakeTable=function(){return(0,o.default)({url:"jpt/datasource/lake_table",method:"get"})},t.craeteAilab=function(e){return(0,o.default)({url:"jpt/datasource/create_table",method:"post",data:e})},t.ailabTablePreview=function(e){return(0,o.default)({url:"jpt/datasource/preview_ailab_table?table_name="+e,method:"get"})},t.ailabSchema=function(e){return(0,o.default)({url:"jpt/datasource/ailab_table_schema?table_name="+e,method:"get"})},t.lakeTablePreview=function(e){return(0,o.default)({url:"jpt/datasource/preview_lake_table?table_name="+e,method:"get"})},t.lakeSchema=function(e){return(0,o.default)({url:"jpt/datasource/lake_table_schema?table_name="+e,method:"get"})},t.getAllShareProject=function(){return(0,o.default)({url:"jpt/project/share_projects",method:"get"})},t.deleteDataLake=function(e){return(0,o.default)({url:"jpt/datasource/delete_datalake/"+e,method:"delete"})},t.editDataLake=function(e,t){return(0,o.default)({url:"jpt/datasource/update_datalake/"+e,method:"put",data:t})},t.getDataLakeInfo=function(e){return(0,o.default)({url:"jpt/datasource/lake_table_info?dl_id="+e,method:"get"})}},"./src/module/dataMgr/datasourceDev/style/img/arrow.png":function(e,t,a){e.exports=a.p+"assets/images/arrow.7820bf5.png"},"./src/module/dataMgr/datasourceDev/style/img/delete.png":function(e,t,a){e.exports=a.p+"assets/images/delete.ff49695.png"},"./src/module/dataMgr/datasourceDev/style/img/sync.png":function(e,t,a){e.exports=a.p+"assets/images/sync.5e704dd.png"},"./src/module/dataMgr/datasourceDev/style/img/warning.png":function(e,t,a){e.exports=a.p+"assets/images/warning.b1dc057.png"},"./src/module/dataMgr/preTaskManager/PreTaskManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/antd/es/tooltip/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/antd/es/modal/index.js")),d=C(a("./node_modules/antd/es/message/index.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=C(a("./node_modules/react/index.js")),f=(C(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/components/index.js"),h=C(a("./src/redux/services/sysManager/preTasksManager.js")),g=C(a("./src/module/dataMgr/preTaskManager/component/SearchBar.jsx")),v=a("./src/styles/GlobalStyle.js"),y=a("./src/routes/routeHelper.jsx"),b=a("./node_modules/@ant-design/icons/es/index.js"),x=a("./src/utils/history.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=(0,r.default)(b.ExclamationCircleOutlined,{}),S=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),I=(0,r.default)(m.LoadingIndicator,{position:"relative"}),T=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.fetchData=function(e){n.setState({loading:!0}),h.default.getPreTaskList(e||n.searchCond).then((function(e){n.setState({preTasksLIst:e.data&&e.data?e.data:[],preTaskPagination:e.data?{total:e.pagination.total,limit:e.pagination.limit,offset:e.pagination.offset}:{total:0,limit:0,offset:0},loading:!1}),console.log(e),window.localStorage.setItem("projectId",e.data[0].projectId)})).catch((function(e){n.setState({preTasksLIst:[],loading:!1}),d.default.error(e.message)}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.delPreTask=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.taskName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){h.default.deletePreTask(e.taskId).then((function(){n.fetchData(n.searchCond),d.default.success("\u5220\u9664\u6210\u529f\uff01"),t()})).catch((function(e){a(),d.default.error(e.message)}))}))}})},n.executePreTask=function(e){i.default.confirm({title:"\u786e\u5b9a\u53d1\u5e03\u8be5\u6570\u636e\u9884\u5904\u7406\u7ed3\u679c?",icon:j,content:"\u6570\u636e\u9884\u5904\u7406\u7ed3\u679c\u5c06\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u96c6\u5468\u671f,\u53d1\u5e03\u540e\u53ef\u5728\u4efb\u52a1\u8be6\u60c5\u4e2d\u67e5\u770b\u751f\u6210\u7684\u8f93\u51fa\u6570\u636e\u5468\u671fID",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){h.default.publishPreTask(e.taskId).then((function(){n.fetchData(n.searchCond),d.default.success("\u53d1\u5e03\u6210\u529f\uff01"),t()})).catch((function(e){a(),d.default.error(e.message)}))}))}})},n.stopPreTask=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u505c\u6b62\uff1a"+e.taskName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){h.default.stopPreTask(e.taskId).then((function(){n.fetchData(n.searchCond),d.default.success("\u505c\u6b62\u6210\u529f\uff01"),t()})).catch((function(e){a(),d.default.error(e.message)}))}))}})},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.state={modalVisible:!1,viewType:"",currentPage:1,confirmLoading:!1,loading:!1,preTasksLIst:[],preTaskPagination:{total:0,limit:0,offset:0},preTaskInfo:{}},n.columns=[{title:S,width:"7%",dataIndex:"id",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"taskName",ellipsis:!0,width:"130px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u9884\u5904\u7406\u5bf9\u8c61",dataIndex:"preTaskObject",ellipsis:!0,width:"100px",render:function(e){var t={2:"\u56fe\u7247"};return(0,r.default)(s.default,{placement:"topLeft",title:t[e]},void 0,t[e])}},{title:"\u6570\u636e\u96c6",dataIndex:"inputDsId_name",ellipsis:!0,width:"100px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6570\u636e\u5468\u671f",dataIndex:"inputDsCycle",ellipsis:!0,width:"130px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,width:"90px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,width:"150px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8fdb\u5ea6",dataIndex:"plannedSpeed",ellipsis:!0,width:"80px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u72b6\u6001",dataIndex:"status",width:110,render:function(e,t){return"error"!==e?(0,r.default)(m.StateLabel,{source:"preTask",code:e}):(0,r.default)(s.default,{placement:"topLeft",title:t.message},void 0,(0,r.default)("div",{},void 0,(0,r.default)(m.StateLabel,{source:"preTask",code:e})))}},{title:"\u64cd\u4f5c",width:"15%",render:function(e,t){var a=[{handleName:"\u67e5\u770b",handleAction:function(){(0,x.navigateTo)(y.preTaksUrl.detail(t.taskId,"config"))}}];return"error"!==t.status&&"stopped"!==t.status||a.push({handleName:"\u4fee\u6539",handleAction:function(){(0,x.navigateTo)(y.preTaksUrl.edit(t.taskId))}}),"processing"!==t.status&&"building"!==t.status&&a.push({handleName:"\u5220\u9664",handleAction:function(){n.delPreTask(t)}}),"processing"===t.status&&a.push({handleName:"\u505c\u6b62",handleAction:function(){n.stopPreTask(t)}}),"wait_released"===t.status&&a.push({handleName:"\u53d1\u5e03",handleAction:function(){n.executePreTask(t)}}),(0,r.default)(m.ListButtons,{buttons:a,maxShowNum:3})}}],n.searchCond={status:"",taskName:"",offset:1,limit:10},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.render=function(){var e=this.state,t=e.loading,a=e.preTasksLIst,s=e.preTaskPagination;return(0,r.default)(v.PageWrapper,{},void 0,(0,r.default)(v.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){(0,x.navigateTo)(y.preTaksUrl.create(null,null))},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u9884\u5904\u7406\u4efb\u52a1"),(0,r.default)(g.default,{onChange:this.changeSearchCond,status:this.searchCond.status})),(0,r.default)(v.PageBody,{},void 0,(0,r.default)(v.TableWrapper,{},void 0,t&&I,!t&&(0,r.default)(n.default,{dataSource:a,rowKey:"taskId",bordered:!0,pagination:!1,columns:this.columns}),(0,r.default)(m.TabPagination,{currentPage:s.offset,pageSize:10,total:s.total,onChange:this.onChangePage}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(T)},"./src/module/dataMgr/preTaskManager/component/AvailableQuota.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.renderGpu=void 0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),o(a("./node_modules/prop-types/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"AvailableQuota__PageWrapper",componentId:"sc-1eav78-0"})(["display:flex;margin-bottom:8px;border-bottom:1px solid #e8e8e8;color:#147bd1;.page-title{margin:0 16px 0 36px;}.span__wrapper{display:flex;&:not(:last-child){margin-right:24px;}&.last-child{margin-right:0;}}"]),r=t.renderGpu=function(e){return!Array.isArray(e)||0===e.length||_.every(e,{gpuNumber:0})?0:e.map((function(e){return e.gpuModelId&&e.gpuNumber>0&&(0,n.default)("span",{style:{marginRight:16}},e.gpuModelId,e.gpuNumber,"*",e.gpuModelName)}))},i=(0,n.default)("span",{className:"page-title"},void 0,"\u5269\u4f59:"),d=(0,n.default)("span",{className:"span__label"},void 0,"CPU\uff1a"),l=(0,n.default)("span",{className:"span__label"},void 0,"\u5185\u5b58\uff1a"),u=(0,n.default)("span",{className:"span__label"},void 0,"GPU\uff1a");t.default=function(e){var t=e.quotaInfo,a=_.get(t,"gpu",[])||[];return(0,n.default)(s,{},void 0,i,(0,n.default)("span",{className:"span__wrapper"},void 0,d,(0,n.default)("span",{className:"span__item"},void 0,_.get(t,"cpu",0),"C")),(0,n.default)("span",{className:"span__wrapper"},void 0,l,(0,n.default)("span",{className:"span__item"},void 0,_.get(t,"memory",0),"GB")),(0,n.default)("span",{className:"span__wrapper last-child"},void 0,u,(0,n.default)("span",{className:"span__item",style:{display:"flex",flexWrap:"wrap"}},void 0,r(a))))}},"./src/module/dataMgr/preTaskManager/component/ComputingResource.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/input-number/index.js")),o=x(a("./node_modules/antd/es/row/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/babel-runtime/helpers/extends.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js")),u=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=x(a("./node_modules/react/index.js")),p=x(a("./node_modules/lodash/lodash.js")),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(x(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),g=x(a("./src/module/dataMgr/preTaskManager/component/AvailableQuota.jsx")),v=a("./src/utils/authPermit.js"),_=x(a("./src/redux/services/sysManager/projectManage.js")),y=a("./src/redux/services/modelService.js"),b=a("./src/redux/services/sysManager/flinkClusterService.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=f.Form.Item,j=m.default.div.withConfig({displayName:"ComputingResource__ComputingResourceWrapper",componentId:"sc-1tb67tu-0"})([".ant-divider-horizontal{display:block;clear:both;width:100%;min-width:100%;height:1px;margin:20px 0;}.icon{font-size:16px;color:#a2b0c4;cursor:pointer;margin-left:16px;}.span__label{margin-right:2px;}"]),S={marginTop:"16px"},I={width:"140px"},T={width:"100%",position:"relative"},w=u.default.Option,E=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.fetFlinkClusterList=function(){(0,b.getFlinkClusterList)({}).then((function(e){n.setState({flinkClusterList:e.data})}))},n.fetchAvailableQuota=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.pubEnvType;e&&_.default.getProjectAvailableQuota(e,n.projectId).then((function(e){var t=n.state.requestQuota,a=p.default.get(e.data,"[0].quotaSetting",{cpu:0,memory:0,gpu:[]});n.setState({requestQuota:t,availableQuota:a,surplusQuota:p.default.cloneDeep(a),loadedAvaQuota:!0},(function(){n.props.isEdit&&!p.default.isEmpty(t)&&n.setAvailableRes(a,t)}))}))},n.fetchResourceSpecs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.pubEnvType;if(e){var t={resSpecDesc:"\u81ea\u5b9a\u4e49\u8d44\u6e90",resSpecId:"custom_computing_resource_specs",resSpecName:"\u81ea\u5b9a\u4e49\u8d44\u6e90"};(0,y.getResourceSpecs)({resQuotaType:e,resSpecTypes:n.props.source}).then((function(e){var a=e.data||[];Array.isArray(a)&&a.push(t),n.setState({sysResourceSpecs:a,loadedSysSpecs:!0})})).catch((function(e){throw n.setState({sysResourceSpecs:[t],selectedSpecs:"custom_computing_resource_specs",loadedSysSpecs:!0}),e}))}},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=n.state,a=t.requestQuota,o=t.selectedSpecs,s=t.sysResourceSpecs,r={};return e?(o&&"custom_computing_resource_specs"!==o&&(a=p.default.get(p.default.find(s,{resSpecId:o}),"specSetting")),r={cpu:a.cpu,memory:a.memory,instances_min:a.instances_min,gpu:a.gpuNumber>0?[{gpuNumber:a.gpuNumber,gpuModelId:a.gpuModelId,gpuModelName:a.gpuModelName}]:[]},{validate:e,moduleData:r}):{validate:e,moduleData:a,errorMsg:"\u8bf7\u9009\u62e9\u8ba1\u7b97\u8d44\u6e90\u4fe1\u606f"}},n.handleQuotaAssignChange=function(e,t,a){var o=n.state.requestQuota;if(o[e]=t,"instances_min"===e&&(t>1?(console.log("\u591a\u4f8b"),n.setState({issinglecase:!1,replicas:t}),console.log(n.state.replicas),n.fetchAvailableQuota()):(console.log("\u5355\u4f8b"),n.setState({issinglecase:!0,replicas:t}),console.log(n.state.replicas),n.fetchAvailableQuota())),"cpu"===e&&n.state.issinglecase){var s={profile:"dev",replicas:n.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:t,ram:"0"}]};_.default.memoryCheck(s).then((function(e){var a=JSON.parse(e.data);n.setState({AddCheckout:a,cpuvalue:t}),console.log(n.state.AddCheckout),n.props.setValidateFunc("computingResource",n.validateFun,a.data.result)}))}if("memory"===e)if(n.state.issinglecase){n.setState({memoryNumber:t});var r={profile:"dev",replicas:n.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:n.state.cpuvalue,ram:t}]};_.default.memoryCheck(r).then((function(e){var t=JSON.parse(e.data);n.setState({AddCheckout:t}),console.log(t.data.result),n.props.setValidateFunc("computingResource",n.validateFun,t.data.result)}))}else{var i={profile:"dev",replicas:n.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:n.state.cpuvalue,ram:t}]};_.default.memoryCheck(i).then((function(e){var t=JSON.parse(e.data);n.setState({AddCheckout:t}),console.log(t.data.result),n.props.setValidateFunc("computingResource",n.validateFun,t.data.result)}))}if("gpuModelId"===e){o.gpuModelName=p.default.get(a,"props.label",t);var d={profile:"dev",replicas:n.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:n.state.cpuvalue,ram:n.state.memoryNumber,gpuCardType:t,gpu:n.state.gpunumber}]};_.default.memoryCheck(d).then((function(e){var t=JSON.parse(e.data);n.setState({AddCheckout:t}),console.log(t.data.result),n.props.setValidateFunc("computingResource",n.validateFun,t.data.result)}))}if("gpuNumber"===e){n.setState({gpunumber:t});var l=p.default.find(n.state.availableQuota.gpu,{gpuModelId:o.gpuModelId});p.default.get(l,"gpuNumber")<t&&!n.props.disabledGpuType&&(o.gpuModelId="",o.gpuModelName,n.props.form.setFieldsValue({gpuModelId:""}))}n.setState({requestQuota:o})},n.setAvailableRes=function(e,t){n.setState((function(a){var n=Number(p.default.get(a,"availableQuota.cpu",0)||0),o=Number(p.default.get(t,"cpu",0)||0),s=Number(p.default.get(a,"availableQuota.memory",0)||0),i=Number(p.default.get(t,"memory",0)||0),d=p.default.get(a,"availableQuota.gpu",[])||[],l=t.instances_min,u={gpuModelId:p.default.get(t,"gpuModelId",""),gpuNumber:Number(p.default.get(t,"gpuNumber",0)||0),gpuModelName:p.default.get(t,"gpuModelId","")};if(u.gpuModelId){var c=p.default.findIndex(e.gpu,{gpuModelId:u.gpuModelId});c>-1?d[c]=(0,r.default)({},e.gpu[c],{gpuNumber:parseFloat(e.gpu[c].gpuNumber)+parseFloat(u.gpuNumber)*l}):d.push({gpuModelId:u.gpuModelId,gpuNumber:u.gpuNumber,gpuModelName:u.gpuModelName})}return{availableQuota:{cpu:n+o*l,memory:s+i*l,gpu:d}}}))},n.handleAvailableResChange=function(){n.setState((function(e){return{showAvailableRes:!e.showAvailableRes}}))},n.handleMinValidator=function(e,t,a,o,s){var r=n.state,i=r.availableQuota,d=r.requestQuota,l=i.cpu,u=i.memory,c=i.gpu,f=d.cpu,m=d.memory,h=d.gpuNumber,g=d.instances_min,v=c?c.reduce((function(e,t){return e<t.gpuNumber?t.gpuNumber:e}),0):0,_=p.default.find(p.default.get(i,"gpu"),{gpuModelId:d.gpuModelId});n.props.disabledGpuType&&(v=p.default.get(_,"gpuNumber"));var y=p.default.get(_,"gpuNumber")||v,b=parseFloat((l/(g||1)).toFixed(2)),x=parseFloat((u/(g||1)).toFixed(2)),C=Math.floor(v/(g||1));Math.floor(Math.min(l/(f||1),u/(m||1),y&&h&&h>0?y/h:1/0));if(n.props.verifyMemoryNum&&"\u5185\u5b58"==o?t<n.props.verifyMemoryNum&&a(o+"\u4e0d\u5f97\u5c0f\u4e8e"+n.props.verifyMemoryNum):n.props.verifyCpuNum&&"CPU"==o?t<n.props.verifyCpuNum&&a(o+"\u4e0d\u5f97\u5c0f\u4e8e"+n.props.verifyCpuNum):!isNaN(t)&&t<=0&&"gpuNumber"!==s&&a(o+"\u4e0d\u5f97\u5c0f\u4e8e\u6216\u7b49\u4e8e\u96f6"),"\u5185\u5b58"===o)if(n.state.issinglecase){console.log("\u5355\u4f8b\u6821\u9a8c");var j=n.state.AddCheckout.data.ramMax?n.state.AddCheckout.data.ramMax:0;console.log(j+"\u6570\u636e"),console.log(n.state.replicas),t>=j&&a(o+"\u4e0d\u80fd\u8d85\u8fc7\u4e34\u754c\u503c"+j)}else console.log("\u591a\u4f8b\u6821\u9a8c");"instances_min"!==s||/^[0-9]\d*$/.test(t)||a(o+"\u5fc5\u987b\u4e3a\u6b63\u6574\u6570"),"gpuNumber"!==s||/^[0-9]\d*$/.test(t)||a(o+"\u5fc5\u987b\u4e3a\u81ea\u7136\u6570"),n.props.noResidueCheck||("cpu"===s&&t>b&&a("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+b),"memory"===s&&t>x&&a("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+x),"gpuNumber"===s&&t>C&&a("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+C)),n.props.noAllowGpu2Zero&&"gpuNumber"===s&&0===t&&a("\u5df2\u5206\u914dgpu\u7684\u670d\u52a1\uff0cgpu\u4e0d\u80fd\u8c03\u6574\u4e3a0"),a()},n.limitDecimals=function(e){var t=/^(\-)*(\d+)\.(\d\d).*$/;return"string"===typeof e?isNaN(Number(e))?"":e.replace(t,"$1$2.$3"):"number"===typeof e?isNaN(e)?"":String(e).replace(t,"$1$2.$3"):""},n.handleSpecsChange=function(e){n.setState({selectedSpecs:e})},n.setSysResourceSpecs=function(e,t,a,o){if(p.default.isEmpty(a)||!n.state.loadedSysSpecs||!n.state.loadedAvaQuota)return t;var s=t.filter((function(t){var n=t.specSetting,o=p.default.get(e,"instances_min",1)||1,s=p.default.get(a,"gpu",[])||[],r=p.default.get(n,"gpu[0].gpuNumber",0)||0,i=0===r||s.some((function(e){return e.gpuModelId===p.default.get(n,"gpu[0].gpuModelId")&&e.gpuNumber>=r*o}));return"custom_computing_resource_specs"===t.resSpecId||a.cpu>=n.cpu*o&&a.memory>=n.memory*o&&i})),r=p.default.find(s,{resSpecId:o})?o:p.default.isEmpty(n.props.requestQuota)?p.default.get(s,"[0].resSpecId"):"custom_computing_resource_specs";return n.setState({selectedSpecs:r}),{newSysResourceSpecs:s,newSelectedSpecs:r}};var o=a.requestQuota||{};n.state={showAvailableRes:!a.hideAvailableRes,availableQuota:{},surplusQuota:{},sysResourceSpecs:[],selectedSpecs:o.specsId,requestQuota:{instances_min:o.instances_min||1,cpu:o.cpu,memory:o.memory,gpuNumber:p.default.get(o,"gpu[0].gpuNumber",0),gpuModelId:p.default.get(o,"gpu[0].gpuModelId"),gpuModelName:p.default.get(o,"gpu[0].gpuModelName")},loadedSysSpecs:!1,loadedAvaQuota:!1,flinkClusterList:[],issinglecase:!0,AddCheckout:{data:{result:!0,ramMax:0}},replicas:1,cpuvalue:1,Add:!1,memoryNumber:0,gpunumber:0};var s=(0,v.getCurrentContext)(),l=s.role,u=s.id;"PROJECT"===l&&(n.projectId=u,window.localStorage.setItem("projectId",n.projectId)),n.checkNameRef=c.default.createRef();var f=n.props.setValidateFunc;return p.default.isFunction(f)&&f("computingResource",n.validateFun,n.state.AddCheckout.data.result),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){if(!p.default.isEqual(this.props.requestQuota,e.requestQuota)&&!p.default.isEmpty(this.props.requestQuota)){var t=this.props.requestQuota||{},a={instances_min:t.instances_min,cpu:t.cpu,memory:t.memory,gpuNumber:p.default.get(t,"gpu[0].gpuNumber",0),gpuModelId:p.default.get(t,"gpu[0].gpuModelId"),gpuModelName:p.default.get(t,"gpu[0].gpuModelName")};this.setState({requestQuota:a,selectedSpecs:t.specsId}),!p.default.isEmpty(this.state.availableQuota)&&this.props.isEdit&&this.setAvailableRes(this.state.availableQuota,a)}e.pubEnvType!==this.props.pubEnvType&&(this.fetchAvailableQuota(),this.fetchResourceSpecs())},t.prototype.componentDidMount=function(){this.fetchAvailableQuota(),this.fetchResourceSpecs()},t.prototype.render=function(){var e=this,t=this.state,a=t.requestQuota,r=t.surplusQuota,i=t.sysResourceSpecs,d=t.selectedSpecs,l=this.setSysResourceSpecs(a,i,r,d),c=l.newSysResourceSpecs,m=l.newSelectedSpecs,v=this.props.title,_=this.props.form.getFieldDecorator;return(0,s.default)(j,{},void 0,(0,s.default)(h.ModelConfigPanel,{hintMsg:this.props.hintMsg&&this.props.hintMsg,title:v||"\u8ba1\u7b97\u8d44\u6e90",style:T},void 0,this.state.showAvailableRes&&(0,s.default)("div",{className:"available__resource"},void 0,(0,s.default)(g.default,{quotaInfo:r})),(0,s.default)(f.Form,{layout:"inline"},void 0,!1!==this.props.instancesMinShow&&(0,s.default)(o.default,{style:S},void 0,(0,s.default)(C,{label:"\u5b9e\u4f8b\u4e2a\u6570"},void 0,_("instances_min",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5b9e\u4f8b\u4e2a\u6570"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"\u5b9e\u4f8b\u4e2a\u6570","instances_min")}}],initialValue:a.instances_min})((0,s.default)(n.default,{disabled:!this.props.canModify||this.props.disabledInstances,style:I,min:0,onChange:function(t){return e.handleQuotaAssignChange("instances_min",t)}})))),(0,s.default)(o.default,{style:S},void 0,(0,s.default)(C,{label:"\u8d44\u6e90\u9009\u62e9",className:"lang-label-wrapper"},void 0,(0,s.default)(u.default,{showSearch:!0,style:{width:200,marginLeft:10},placeholder:"\u8bf7\u9009\u62e9\u89c4\u683c",optionFilterProp:"children",onChange:this.handleSpecsChange,value:m,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(c)&&c.map((function(e){return(0,s.default)(w,{value:e.resSpecId},e.resSpecId,e.resSpecName)}))))),"custom_computing_resource_specs"===m&&(0,s.default)(o.default,{style:S},void 0,(0,s.default)(C,{style:{marginLeft:-16},label:"CPU (core)",className:"lang-label-wrapper"},void 0,_("cpu",{rules:[{required:this.props.canModify,message:"\u8bf7\u8f93\u5165CPU"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"CPU","cpu")}}],initialValue:a.cpu})((0,s.default)(n.default,{formatter:this.limitDecimals,parser:this.limitDecimals,disabled:!this.props.canModify,style:I,min:0,onChange:function(t){return e.handleQuotaAssignChange("cpu",t)}}))),(0,s.default)(C,{label:"\u5185\u5b58 (GB)"},void 0,_("memory",{rules:[{required:this.props.canModify,message:"\u8bf7\u8f93\u5165\u5185\u5b58"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"\u5185\u5b58","memory")}}],initialValue:a.memory})((0,s.default)(n.default,{formatter:this.limitDecimals,parser:this.limitDecimals,disabled:!this.props.canModify,style:I,min:0,onFocus:function(){return e.setState({Add:!e.state.Add})},onBlur:function(){return e.setState({Add:!e.state.Add})},onChange:function(t){return e.handleQuotaAssignChange("memory",t)}}))),(0,s.default)(C,{label:"GPU\u6570\u91cf"},void 0,_("gpuNumber",{rules:[{required:!1,message:"\u8bf7\u8f93\u5165GPU\u6570\u91cf"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"GPU","gpuNumber")}}],initialValue:a.gpuNumber})((0,s.default)(n.default,{disabled:!this.props.canModify||this.props.disabledGpu,style:I,min:0,onChange:function(t){return e.handleQuotaAssignChange("gpuNumber",t)}}))),a.gpuNumber>0&&(0,s.default)(C,{label:"GPU\u578b\u53f7"},void 0,_("gpuModelId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9GPU\u578b\u53f7"}],initialValue:a.gpuModelId})((0,s.default)(u.default,{style:{minWidth:140},placeholder:"\u8bf7\u9009\u62e9GPU\u578b\u53f7",disabled:!this.props.canModify||this.props.disabledGpuType,onChange:function(t,a){return e.handleQuotaAssignChange("gpuModelId",t,a)}},void 0,Array.isArray(p.default.get(this.state.availableQuota,"gpu"))&&this.state.availableQuota.gpu.map((function(e){return a.gpuNumber*a.instances_min<=e.gpuNumber&&(0,s.default)(w,{value:e.gpuModelId,label:e.gpuModelName,number:e.gpuNumber},e.gpuModelId,e.gpuModelName)})))))),!this.state.AddCheckout.data.result&&(0,s.default)(C,{style:{position:"absolute",top:"212px",left:"334px",cursor:"pointer",fontSize:"14px",color:"#ff4d4f"}},void 0,"\u540e\u53f0\u8d44\u6e90\u4e0d\u8db3"),this.state.Add&&this.state.memoryNumber<this.state.AddCheckout.data.ramMax&&this.state.memoryNumber>0&&(0,s.default)(C,{style:{position:"absolute",top:"187px",left:"356px",cursor:"pointer",fontSize:"14px",color:"#147bd1"}},void 0,"\u5185\u5b58\u6700\u5927\u503c\u4e3a",this.state.AddCheckout.data.ramMax)),(0,s.default)("div",{style:{position:"absolute",top:"-18px",left:"110px",cursor:"pointer",fontSize:"14px",color:" #47B2FB",display:"none"},onClick:this.handleAvailableResChange},void 0,"\u67e5\u770b\u5269\u4f59\u53ef\u7528\u8d44\u6e90")))},t}(c.default.PureComponent);E.defaultProps={requestQuota:{},source:"ONLINE_REASONING"},t.default=f.Form.create()(E)},"./src/module/dataMgr/preTaskManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/input/index.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./src/module/dataMgr/preTaskManager/modelEnums.js"),p=a("./src/config/ui-config.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=i.default.Search,g=u.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-3dxkp8-0"})(["display:flex;.search__item-wrapper{margin-left:16px;}"]),v=u.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"sc-3dxkp8-1"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;"],(function(e){return e.color})),y={width:"130px"},b=c.PRE_TASK_STATUS.getCodeAndDescList(),x=(0,n.default)(m,{value:""},void 0,"\u5168\u90e8\u72b6\u6001"),C=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("taskName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={serviceTypeOptions:[]},n.changeStatusField=n.changeSelect("status"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(g,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{allowClear:!0,onChange:this.changeStatusField,style:y,placeholder:"\u72b6\u6001",value:this.props.status,className:"search-cond"},void 0,x,b.map((function(e,t){return(0,n.default)(m,{value:e.code},e.code+"-"+t,(0,n.default)(v,{color:p.PRE_TASK_STATUS_COLOR_MAP[e.code]}),e.desc)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(h,{style:{width:200},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=C},"./src/module/dataMgr/preTaskManager/detailPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/progress/index.js")),o=f(a("./node_modules/antd/es/tooltip/index.js")),s=f(a("./node_modules/babel-runtime/helpers/jsx.js")),r=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/progress/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./src/components/index.js"),p=a("./node_modules/@ant-design/icons/es/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=u.default.div.withConfig({displayName:"BaseInfo__DetailBaseInfoWrapper",componentId:"sc-1j1ce0a-0"})(["display:flex;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:80%;margin-right:24px;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{min-width:160px;display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}"]),h=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.handleOperation=function(e){switch(e.key){case"start":case"edit":n.handleTestClick(e.key)}},n.handleTestClick=function(e){n.setState({visible:!0,optBtnKey:e})},n.onClose=function(e){n.setState({visible:!1}),"refresh"===e&&n.handleRefresh()},n.handleRefresh=function(){n.props.onRefresh(!0)},n.state={baseInfoLoading:!1,refreshing:!1,optBtnKey:""},n.items=[{key:"inputDsId_name",name:"\u6570\u636e\u96c6",type:"text"},{key:"inputDsCycle",name:"\u8f93\u5165\u6570\u636e\u5468\u671f",type:"text"},{key:"outputDsCycle",name:"\u8f93\u51fa\u6570\u636e\u5468\u671f",type:"text"},{key:"createBy",name:"\u521b\u5efa\u4eba",type:"text"},{key:"createAt",name:"\u521b\u5efa\u65f6\u95f4",type:"text"},{key:"completeAt",name:"\u5b8c\u6210\u65f6\u95f4",type:"text"}],n}return(0,d.default)(t,e),t.getDerivedStateFromProps=function(e){return{baseInfo:_.get(e,"baseInfo"),baseInfoLoading:_.get(e,"baseInfoLoading"),refreshing:_.get(e,"refreshing")}},t.prototype.render=function(){var e=this.state.baseInfo;return(0,s.default)(m,{},void 0,(0,s.default)("div",{className:"left__content-wrapper"},void 0,(0,s.default)("div",{className:"left__top-wrapper"},void 0,(0,s.default)("div",{className:"left__top-line1"},void 0,(0,s.default)("div",{className:"base__info-name top__line1-section"},void 0,e.taskName),(0,s.default)("div",{className:"base__info-status top__line1-section"},void 0,(0,s.default)("span",{},void 0,"error"!==e.status?(0,s.default)("span",{style:{display:"flex"}},void 0,(0,s.default)(c.StateLabel,{source:"preTask",code:e.status})):(0,s.default)(o.default,{placement:"topLeft",title:e.message},void 0,(0,s.default)("div",{style:{display:"flex"}},void 0,(0,s.default)(c.StateLabel,{source:"preTask",code:e.status})))))),(0,s.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",e.taskDesc," ")),(0,s.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(t){return"text"===t.type?(0,s.default)("div",{className:"item__wrapper"},t.key,(0,s.default)("span",{style:{width:"120px"}},void 0,t.name,"\uff1a"),(0,s.default)("span",{},void 0,"gpu"===t.key?_.get(e,"usageRate.gpuMemory")||_.get(e,"usageRate.gpuCard",0):_.get(e,t.key))):(0,s.default)("div",{className:"item__wrapper"},t.key,(0,s.default)("span",{style:{width:"120px",whiteSpace:"nowrap",flexShrink:0}},void 0,t.name,"\uff1a"),(0,s.default)("span",{style:{marginRight:20,width:"25px"}},void 0,_.isNumber(_.get(e,t.key))?_.get(e,t.key):0,"%"),(0,s.default)("div",{className:"item__progress-wrapper"},void 0,(0,s.default)(n.default,{percent:_.get(e,t.key)||0,showInfo:!1})))})))),(0,s.default)("div",{className:"right__content-wrapper"},void 0,(0,s.default)(o.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,s.default)(p.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh}))))},t}(l.default.Component);t.default=h},"./src/module/dataMgr/preTaskManager/detailPage/ConfigInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/extends.js")),o=h(a("./node_modules/antd/es/row/index.js")),s=h(a("./node_modules/babel-runtime/helpers/jsx.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\preTaskManager\\detailPage\\ConfigInfo.jsx";a("./node_modules/antd/es/row/style/index.js");var u=h(a("./node_modules/react/index.js")),c=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/components/index.js"),m=a("./src/module/dataMgr/preTaskManager/component/AvailableQuota.jsx");function h(e){return e&&e.__esModule?e:{default:e}}var g=p.Form.Item,v=c.default.div.withConfig({displayName:"ConfigInfo__DetailInfoWrapper",componentId:"sc-19uaxdz-0"})(["display:flex;flex-wrap:wrap;"]),y={0:"\u56fe\u50cf\u6821\u9a8c",1:"\u56fe\u50cf\u901a\u9053\u8f6c\u6362",2:"\u56fe\u50cf\u65e0\u635f\u653e\u5927",3:"\u56fe\u50cf\u8272\u5f69\u589e\u5f3a",4:"\u56fe\u50cf\u4e2d\u5fc3\u526a\u88c1",5:"\u56fe\u50cf\u53bb\u96fe",6:"\u56fe\u50cf\u5bf9\u6bd4\u5ea6\u589e\u5f3a",7:"\u56fe\u50cf\u6e05\u6670\u5ea6\u8fc7\u6ee4"},b=(0,s.default)("span",{},void 0,"\u56fe\u7247"),x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.getRunEnvParamByKey=function(e,t){if(e){if("AI_JOB_DATA_PATH"===t||"AI_JOB_LOG_PATH"===t){var a=_.findIndex(e,(function(e){return e.envName===t}));return _.get(e[a],"envValue","--")}for(var n="",o=0;o<e.length;o++)"AI_JOB_DATA_PATH"!==e[o].envName&&"AI_JOB_LOG_PATH"!==e[o].envName&&(n+=e[o].envName+"="+e[o].envValue+"\u3001");return""===n?"--":1===n.split("\u3001").length?n:n.substring(0,n.length-1)}return"--"},n.getPreTaskSettings=function(e){for(var t={types:"",datas:[]},a=0;a<e.length;a++)-1===t.types.indexOf(y[e[a].preType])?(t.types+=y[e[a].preType]+"\uff0c",t.datas.push(e[a])):t.datas.push(e[a]);for(var n=[],o=function(e){var a=_.findIndex(n,(function(a){return a.key===t.datas[e].preType}));-1===a?n.push({key:t.datas[e].preType,list:[t.datas[e]]}):n[a].list.push(t.datas[e])},s=0;s<t.datas.length;s++)o(s);return t.datas=n,t},n}return(0,d.default)(t,e),t.prototype.render=function(){var e={layout:"inline",labelAlign:"left"},t={marginBottom:0},a={width:"50%"},r=this.props.baseInfo,i=_.get(r,"resQuotaConf",{}),d=this.getPreTaskSettings(_.get(r,"preTaskSettings"));return(0,s.default)(v,{},void 0,(0,s.default)(f.ModelConfigPanel,{title:"\u4efb\u52a1\u914d\u7f6e",style:a},void 0,u.default.createElement(p.Form,(0,n.default)({},e,{__source:{fileName:l,lineNumber:88}}),(0,s.default)(o.default,{},void 0,(0,s.default)(g,{label:"\u9884\u5904\u7406\u5bf9\u8c61",style:t},void 0,b)),(0,s.default)(o.default,{},void 0,(0,s.default)(g,{label:"\u9884\u5904\u7406\u7c7b\u578b",style:t},void 0,_.get(d,"types").substring(0,_.get(d,"types").length-1))),_.get(d,"datas").map((function(e,a){return(4===e.key||7===e.key)&&(0,s.default)(o.default,{},a,(0,s.default)(g,{label:y[e.key],style:t},a,_.get(e,"list").map((function(t,a){return t.name+" = "+t.value+(a+1!==_.get(e,"list").length?"\uff0c":"")}))))})))),(0,s.default)(f.ModelConfigPanel,{title:"\u8d44\u6e90\u914d\u7f6e",style:a},void 0,u.default.createElement(p.Form,(0,n.default)({},e,{__source:{fileName:l,lineNumber:117}}),(0,s.default)(o.default,{},void 0,(0,s.default)(g,{label:"CPU",style:t},void 0,_.get(i,"cpu")||0)),(0,s.default)(o.default,{},void 0,(0,s.default)(g,{style:t,label:"\u5185\u5b58"},void 0,i.memory)),(0,s.default)(o.default,{},void 0,(0,s.default)(g,{style:t,label:"gpu"},void 0,(0,m.renderGpu)(i.gpu))),(0,s.default)(o.default,{},void 0,(0,s.default)(g,{style:t,label:"\u5b9e\u4f8b\u4e2a\u6570"},void 0,_.get(r,"replicaCnt","--"))))))},t}(u.default.Component);x.defaultProps={baseInfo:{}},t.default=x},"./src/module/dataMgr/preTaskManager/detailPage/ViewPreTaskPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/antd/es/table/index.js")),o=j(a("./node_modules/antd/es/image/index.js")),s=j(a("./node_modules/antd/es/tooltip/index.js")),r=j(a("./node_modules/babel-runtime/helpers/jsx.js")),i=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=j(a("./node_modules/babel-runtime/helpers/inherits.js")),u=j(a("./node_modules/antd/es/select/index.js")),c=j(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/image/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var p=j(a("./node_modules/react/index.js")),f=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(j(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./src/utils/history.js"),g=j(a("./src/module/dataMgr/preTaskManager/detailPage/BaseInfo.jsx")),v=a("./src/components/index.js"),y=j(a("./src/module/dataMgr/preTaskManager/detailPage/ConfigInfo.jsx")),b=a("./src/routes/routeHelper.jsx"),x=j(a("./src/redux/services/sysManager/preTasksManager.js")),C=a("./src/utils/authPermit.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=c.default.TabPane,I=u.default.Option,T={width:"130px"},w=f.default.div.withConfig({displayName:"ViewPreTaskPage__ViewPreTaskPagelWrapper",componentId:"g20fxn-0"})(["width:100%;min-height:500px;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-nav-scroll{display:flex;}.ant-tabs-tab{font-size:16px;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);}}.service__tabs-wrapper{margin-top:20px;}.ant-tabs-content{margin-top:24px;}"]),E=f.default.div.withConfig({displayName:"ViewPreTaskPage__TabContent",componentId:"g20fxn-1"})(["background:#fff;width:100%;"]),D=(0,r.default)("span",{},void 0,"--"),M=(0,r.default)(v.LoadingIndicator,{}),k=(0,r.default)(I,{value:""},void 0,"\u5168\u90e8\u72b6\u6001"),P=(0,r.default)(I,{value:1},void 0,"\u5df2\u5904\u7406"),L=(0,r.default)(I,{value:0},void 0,"\u672a\u5904\u7406"),N=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.getDataPreTaskResults=function(e){x.default.getDataPreTaskResults(e||n.searchCond).then((function(e){var t=e.data||[];n.setState({dataPreTaskResults:t,preTaskPagination:e.data?{total:e.pagination.total,limit:e.pagination.limit,offset:e.pagination.offset}:{total:0,limit:0,offset:0}})})).catch((function(e){throw e}))},n.fetchData=function(){n.fetBasicInfo()},n.onChangePage=function(e,t){n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.getDataPreTaskResults(n.searchCond)},n.fetBasicInfo=function(){n.setState({baseInfoLoading:!0}),x.default.getPreTaskInfo(n.state.taskId).then((function(e){var t=e.data||[];n.setState({baseInfo:t,baseInfoLoading:!1})})).catch((function(e){throw n.setState({baseInfoLoading:!1}),e}))},n.onChange=function(e){var t=n.state.baseInfo;(0,h.navigateTo)({pathname:b.preTaksUrl.detail(t.taskId,e),state:{unScrollToTop:!0}}),n.setState({activeTab:e})},n.handleRefresh=function(e){e&&n.setState({refreshing:!0}),n.fetchData()},n.changeStatusField=function(e){n.searchCond.status=e,n.getDataPreTaskResults(n.searchCond)},n.params=(0,h.parseParms)(a.location),n.state={baseInfoLoading:!1,refreshing:!1,currentPage:1,taskId:_.get(a.match.params,"taskId",""),activeTab:_.get(a.match.params,"activeTab","config"),baseInfo:null,status:"",dataPreTaskResults:[],preTaskPagination:{total:0,limit:0,offset:0}},n.columns=[{title:"\u6570\u636eID",dataIndex:"dataId",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u539f\u56fe",dataIndex:"originImage",ellipsis:!0,render:function(e){return(0,r.default)(o.default,{width:100,src:e+"?token="+encodeURI((0,C.getToken)())})}},{title:"\u9884\u5904\u7406\u56fe",dataIndex:"handledImage",ellipsis:!0,render:function(e,t){return"1"===t.dataStatus&&e?(0,r.default)(o.default,{width:100,src:e+"?token="+encodeURI((0,C.getToken)())}):D}},{title:"\u72b6\u6001",dataIndex:"dataStatus",ellipsis:!0,render:function(e){return(0,r.default)(v.StateLabel,{source:"dataStatus",code:e})}}],n.searchCond={status:"",taskId:n.state.taskId,offset:1,limit:10},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(),this.getDataPreTaskResults()},t.prototype.render=function(){var e=this.state,t=e.activeTab,a=e.baseInfo,o=e.baseInfoLoading,s=e.refreshing,i=e.preTaskPagination;return(0,r.default)(w,{},void 0,o&&M,!o&&a&&(0,r.default)("div",{},void 0,(0,r.default)(g.default,{baseInfo:a,baseInfoLoading:o,refreshing:s,onRefresh:this.handleRefresh}),(0,r.default)("div",{className:"service__tabs-wrapper"},void 0,(0,r.default)(c.default,{onChange:this.onChange,activeKey:t,className:"modelApply-tabs"},void 0,(0,r.default)(S,{tab:"\u914d\u7f6e\u4fe1\u606f"},"config",(0,r.default)(E,{},void 0,(0,r.default)(E,{},void 0,"config"===t&&(0,r.default)(y.default,{baseInfo:a})))),(0,r.default)(S,{tab:"\u6570\u636e\u4fe1\u606f"},"data",(0,r.default)("div",{style:{float:"right",marginBottom:15}},void 0,(0,r.default)(u.default,{defaultValue:"",allowClear:!0,onChange:this.changeStatusField,style:T,placeholder:"\u72b6\u6001",className:"search-cond"},void 0,k,P,L)),(0,r.default)(E,{},void 0,"data"===t&&(0,r.default)("div",{},void 0,(0,r.default)(n.default,{dataSource:this.state.dataPreTaskResults,rowKey:"dataId",bordered:!0,pagination:!1,columns:this.columns}),(0,r.default)(v.TabPagination,{currentPage:i.offset,pageSize:10,total:i.total,onChange:this.onChangePage}))))))))},t}(p.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(N)},"./src/module/dataMgr/preTaskManager/editPage/PreTaskConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelBaseInfoDom=void 0;var n=v(a("./node_modules/babel-runtime/helpers/extends.js")),o=v(a("./node_modules/antd/es/col/index.js")),s=v(a("./node_modules/antd/es/row/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js")),u=v(a("./node_modules/antd/es/checkbox/index.js")),c=v(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/checkbox/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var p=v(a("./node_modules/react/index.js")),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=a("./src/module/dataMgr/preTaskManager/modelEnums.js"),h=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(v(a("./node_modules/prop-types/index.js")),v(a("./src/module/dataMgr/preTaskManager/editPage/SettingsListPage.jsx")));function v(e){return e&&e.__esModule?e:{default:e}}var y=f.Form.Item,b=c.default.Group,x=u.default.Group,C=m.PRE_TYPE.getCodeAndDescList(),j=t.ModelBaseInfoDom=h.default.div.withConfig({displayName:"PreTaskConfig__ModelBaseInfoDom",componentId:"sc-8olws6-0"})([".ant-row{line-height:60px;display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:60px;}.ant-row{line-height:60px;}"]),S=(0,r.default)(c.default,{disabled:!0,value:0},void 0,"\u975e\u7ed3\u6784"),I=(0,r.default)(c.default,{disabled:!0,value:1},void 0,"\u6587\u672c"),T=(0,r.default)(c.default,{value:2},void 0,"\u56fe\u7247"),w=(0,r.default)(c.default,{disabled:!0,value:3},void 0,"\u97f3\u9891"),E=(0,r.default)(c.default,{disabled:!0,value:4},void 0,"\u89c6\u9891"),D=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.setSettingsValidateFunc=function(e,t){n.validateSettingsFuncs[e]=t},n.setPreTypes=function(e){for(var t=[0],a=0;e&&a<e.length;a++)-1===_.indexOf(t,e[a].preType)&&t.push(e[a].preType);return t},n.validateFun=function(){var e=!0;return Object.keys(n.validateSettingsFuncs).map((function(t){var a=n.validateSettingsFuncs[t];if(_.isFunction(a)){var o=a.call();!o.validate&&e&&(e=o.validate)}})),{validate:e,moduleData:{modelInfo:n.modelBaseInfo}}},n.getValueBlur=function(e,t){n.taskInfo[t]=e,n.props.form.setFieldsValue({type:e}),"inputDsId"===t&&(e&&""!==e&&n.queryCycle(e),n.props.form.setFieldsValue({inputDsCycle:""}))},n.updateName=function(e){n.taskInfo.taskName=e?e.trim():e,n.props.form.setFieldsValue({taskName:e})},n.onChangeCheck=function(e){for(var t=[],a={0:1,1:1,2:1,3:1,4:2,5:1,6:1,7:1},o=function(o){if(-1===_.findIndex(n.state.preTaskSettingsState,(function(t){return parseInt(e[o])==t.preType})))for(var s=0;s<a[parseInt(e[o])];s++){t.push({preType:parseInt(e[o]),name:7===e[o]?"clarity_threshold":4===e[o]?{0:"target_height",1:"target_width"}[s]:"",value:4===parseInt(e[o])?"600":0===parseInt(e[o])||7===parseInt(e[o])?"0":""})}else for(var r=0;r<n.state.preTaskSettingsState.length;r++)parseInt(e[o])===n.state.preTaskSettingsState[r].preType&&t.push(n.state.preTaskSettingsState[r])},s=0;s<e.length;s++)o(s);n.setState({preTaskSettingsState:[].concat(t),preTypes:e}),n.props.form.setFieldsValue({preTypes:e}),n.modelBaseInfo.preTaskSettings=t},n.updateSettings=function(e,t){var a=n.modelBaseInfo.preTaskSettings;a[e]=t,n.setState({preTaskSettingsState:a.concat([])}),n.modelBaseInfo.preTaskSettings=a.concat([])};var o=_.get(a.modelBaseInfo,"preTaskSettings",[{preType:0,name:"",value:""},{preType:1,name:"",value:""}]),s=Array.isArray(o)?o.map((function(e){return e.preType})):[0,1];n.state={preTaskSettingsState:o,preTypes:s};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("config",n.validateFun),n.modelBaseInfo={preTaskObject:_.get(a.modelBaseInfo,"preTaskObject",2),preTaskSettings:o,preTypes:s},n.validateSettingsFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.modelBaseInfo,i=this.state.preTaskSettingsState;return(0,r.default)(j,{},void 0,(0,r.default)(f.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:24},void 0,(0,r.default)(y,{label:"\u9884\u5904\u7406\u5bf9\u8c61"},void 0,t("preTaskObject",{rules:[{required:!0}],initialValue:a.preTaskObject})((0,r.default)(b,{onChange:function(t){e.getValueBlur(t.target.value,"preTaskObject")},value:2},void 0,S,I,T,w,E))))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:24},void 0,(0,r.default)(y,{label:"\u9884\u5904\u7406\u7c7b\u578b"},void 0,t("preTypes",{rules:[{required:!0,message:"\u8bf7\u9009\u9884\u5904\u7406\u7c7b\u578b"}],initialValue:a.preTypes})((0,r.default)(x,{style:{width:"100%",marginTop:"-15px"},onChange:this.onChangeCheck},void 0,(0,r.default)(s.default,{},void 0,C.map((function(e,t){return(0,r.default)(o.default,{span:6},t,(0,r.default)(u.default,{disabled:0===parseInt(e.code)||1===parseInt(e.code),value:parseInt(e.code)},void 0,e.desc))})))))))),(0,r.default)(s.default,{},void 0,(0,r.default)("div",{className:"package-list"},void 0,i.map((function(t,a){return(4===_.get(t,"preType")||7===_.get(t,"preType"))&&(0,r.default)(g.default,{setSettingsValidateFunc:e.setSettingsValidateFunc,index:a,item:(0,n.default)({},t),viewType:e.props.viewType,updateSettings:e.updateSettings},t.key)}))))))},t}(p.default.PureComponent);t.default=f.Form.create()(D)},"./src/module/dataMgr/preTaskManager/editPage/PreTaskInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelBaseInfoDom=void 0;var n=v(a("./node_modules/antd/es/col/index.js")),o=v(a("./node_modules/antd/es/row/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/antd/es/message/index.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js")),u=v(a("./node_modules/antd/es/input/index.js")),c=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=v(a("./node_modules/react/index.js")),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(v(a("./node_modules/prop-types/index.js")),v(a("./src/components/common/CheckName.jsx"))),g=v(a("./src/redux/services/dataSource.js"));function v(e){return e&&e.__esModule?e:{default:e}}var y=c.default.Option,b=u.default.TextArea,x=f.Form.Item,C=t.ModelBaseInfoDom=m.default.div.withConfig({displayName:"PreTaskInfo__ModelBaseInfoDom",componentId:"sc-1prd8fs-0"})([".ant-row{line-height:60px;display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:60px;}.ant-row{line-height:60px;}"]),j=(0,s.default)(y,{value:""},void 0,"\u9009\u62e9\u6570\u636e\u96c6"),S=(0,s.default)(y,{value:""},void 0,"\u8bf7\u9009\u62e9\u5468\u671f"),I=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.queryDataSource=function(e){g.default.getDataSourceListSummary({status:10,dataType:[e]}).then((function(e){e&&n.setState({dataSourceList:e.data})})).catch((function(e){r.default.error(e.message)}))},n.queryCycle=function(e){e&&g.default.getDataCyclesList({dsId:e,status:10}).then((function(e){n.setState({cycleList:e.data?e.data:[]})})).catch((function(e){r.default.error(e.message)})),n.setState({cycleList:[]})},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:{modelInfo:n.modelBaseInfo}}},n.getValueBlur=function(e,t){n.modelBaseInfo[t]=e,n.props.form.setFieldsValue({type:e}),"inputDsId"===t&&(e&&""!==e&&n.queryCycle(e),n.props.form.setFieldsValue({inputDsCycle:""}))},n.updateName=function(e){n.modelBaseInfo.taskName=e?e.trim():e,n.props.form.setFieldsValue({taskName:e})},n.state={dataSourceList:[],cycleList:[]},n.checkNameRef=p.default.createRef();var o=n.props.setValidateFunc;return _.isFunction(o)&&o("taskPreInfo",n.validateFun),n.modelBaseInfo={taskId:_.get(a.modelBaseInfo,"taskId",""),taskName:_.get(a.modelBaseInfo,"taskName",""),inputDsId:_.get(a.modelBaseInfo,"inputDsId",n.props.dsId||""),inputDsCycle:_.get(a.modelBaseInfo,"inputDsCycle",n.props.dsCycle||""),taskDesc:_.get(a.modelBaseInfo,"taskDesc","")},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.queryDataSource("img"),"edit"===this.props.viewType&&this.queryCycle(_.get(this.props.modelBaseInfo,"inputDsId",""))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.modelBaseInfo,r=this.state,i=r.dataSourceList,d=r.cycleList;return(0,s.default)(C,{},void 0,(0,s.default)(f.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:20},void 0,(0,s.default)(x,{label:"\u4efb\u52a1\u540d\u79f0"},void 0,t("taskName",{rules:[{required:"view"!==this.viewType,min:0,max:30,message:"\u8bf7\u8f93\u5165\u540d\u79f0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc730"},{validator:this.handleCheckNameValidate}],initialValue:a.taskName})(p.default.createElement(h.default,{ref:this.checkNameRef,source:"preTask",style:{width:"300px"},disabled:"view"===this.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:a.taskId||"",updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dataMgr\\preTaskManager\\editPage\\PreTaskInfo.jsx",lineNumber:143}}))))),(0,s.default)(o.default,{style:{marginTop:15}},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)(x,{label:"\u6570\u636e\u96c6"},void 0,t("inputDsId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u96c6"}],initialValue:a.inputDsId})((0,s.default)(c.default,{disabled:!("view"!==this.viewType&&!this.props.dsId),showSearch:!0,onChange:function(t){return e.getValueBlur(t,"inputDsId")},style:{width:300,marginLeft:11},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,j,i.map((function(e,t){return(0,s.default)(y,{value:e.dsId},t,e.name)})))))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)(x,{label:"\u6570\u636e\u5468\u671f"},void 0,t("inputDsCycle",{rules:[{required:!0,min:0,max:30,message:"\u8bf7\u9009\u62e9\u6570\u636e\u5468\u671f"}],initialValue:a.inputDsCycle})((0,s.default)(c.default,{disabled:!("view"!==this.viewType&&!this.props.dsId),onChange:function(t){return e.getValueBlur(t,"inputDsCycle")},style:{width:300}},void 0,S,d.map((function(e){return(0,s.default)(y,{value:e.dsCycle},e.id,null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")}))))))),(0,s.default)(o.default,{style:{marginTop:15}},void 0,(0,s.default)(n.default,{style:{marginLeft:10},span:22},void 0,(0,s.default)(x,{label:"\u4efb\u52a1\u63cf\u8ff0"},void 0,t("taskDesc ",{rules:[{min:0,max:150,message:"\u6807\u6ce8\u63cf\u8ff0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7150"}],initialValue:a.taskDesc})((0,s.default)(b,{disabled:"view"===this.viewType,autosize:{minRows:2,maxRows:2},style:{width:750,marginRight:10,min:0,max:200},onBlur:function(t){return e.getValueBlur(t.target.value,"taskDesc")},rows:8})))))))},t}(p.default.PureComponent);t.default=f.Form.create()(I)},"./src/module/dataMgr/preTaskManager/editPage/PreTaskInfoPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PreTaskInfoPageDom=void 0;var n=x(a("./node_modules/antd/es/button/index.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/antd/es/message/index.js")),r=x(a("./node_modules/antd/es/modal/index.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=x(a("./node_modules/react/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(x(a("./node_modules/prop-types/index.js")),a("./src/utils/history.js")),m=a("./src/components/index.js"),h=x(a("./src/module/dataMgr/preTaskManager/editPage/PreTaskInfo.jsx")),g=x(a("./src/module/dataMgr/preTaskManager/editPage/PreTaskConfig.jsx")),v=x(a("./src/redux/services/sysManager/preTasksManager.js")),y=x(a("./src/module/dataMgr/preTaskManager/component/ComputingResource.jsx")),b=a("./src/routes/routeHelper.jsx");function x(e){return e&&e.__esModule?e:{default:e}}var C={width:"100%",display:"inline"},j=t.PreTaskInfoPageDom=p.default.div.withConfig({displayName:"PreTaskInfoPage__PreTaskInfoPageDom",componentId:"lo1eec-0"})(["width:100%;background:#fff;padding:16px;.ant-col-2{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:6%;}.ant-steps{width:50%;margin-left:25%;}.steps-content{padding-top:20px;margin:20px 50px 50px 50px;border:0.5px solid #e5e9f2;}.model-buttons{text-align:right;line-height:70px;padding-right:50px;}"]),S=(0,o.default)(m.LoadingIndicator,{position:"relative"}),I=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){n.taskId&&(n.setState({loading:!0}),v.default.getPreTaskInfo(n.taskId).then((function(e){var t=e.data||[];n.setState({dataInfo:t,loading:!1})})).catch((function(e){throw n.setState({loading:!1}),e})))},n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.submitModalCancel=function(){var e={},t=n,a=!0;Object.keys(n.validateFuncs).map((function(t){var o=n.validateFuncs[t];if(_.isFunction(o)){var s=o.call();"computingResource"===t?e.resQuotaConf=s.moduleData:e=_.merge(e,s.moduleData.modelInfo),a&&(a=s.validate)}})),a&&r.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.saveData(e)},onCancel:function(){}})},n.saveData=function(e){n.setState({confirmLoading:!0}),delete e.preTypes,v.default.saveOrUpdatePreTask(e,n.action).then((function(e){e&&(s.default.success("create"!==n.action?"\u4fee\u6539\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01":"\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,f.navigateTo)(b.preTaksUrl.list())}),2e3))})).catch((function(){n.setState({confirmLoading:!1})}))},n.closePage=function(){r.default.confirm({title:"\u63d0\u793a\u4fe1\u606f",content:"\u786e\u5b9a\u8fd4\u56de\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,f.navigateTo)(b.preTaksUrl.list())},onCancel:function(){}})},n.params=(0,f.parseParms)(a.location),n.action=_.get(a.match,"params.action",null),n.taskId=_.get(a.match,"params.taskId",null),n.dsId=_.get(n,"params.dsId",null),n.dsCycle=_.get(n,"params.dsCycle",null),n.state={loading:!1,confirmLoading:!1,dataInfo:{},result:!1},n.taskInfo={},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){"create"!==this.action&&this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.loading,s=t.from,r=t.dataInfo;return(0,o.default)(j,{},void 0,a&&S,!a&&(0,o.default)("div",{},void 0,(0,o.default)(m.ModelConfigPanel,{title:"\u57fa\u672c\u4fe1\u606f",style:C},void 0,(0,o.default)(h.default,{viewType:this.action,from:s,modelBaseInfo:r,setValidateFunc:this.setValidateFunc,dsId:this.dsId,dsCycle:this.dsCycle})),(0,o.default)(m.ModelConfigPanel,{title:"\u4efb\u52a1\u914d\u7f6e",style:C},void 0,(0,o.default)(g.default,{viewType:this.action,modelBaseInfo:r,setValidateFunc:this.setValidateFunc})),(0,o.default)(y.default,{instancesMinShow:!1,pubEnvType:"DEV",requestQuota:{},canModify:!0,noResidueCheck:!0,setValidateFunc:this.setValidateFunc,source:"DATA_PRE"})),(0,o.default)("div",{className:"model-buttons"},void 0,(0,o.default)(n.default,{onClick:function(){e.closePage()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:this.submitModalCancel,type:"primary",disabled:!this.state.result,loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(I)},"./src/module/dataMgr/preTaskManager/editPage/SettingsListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.SettingsListPageDom=void 0;var n=v(a("./node_modules/antd/es/tooltip/index.js")),o=v(a("./node_modules/antd/es/input-number/index.js")),s=v(a("./node_modules/antd/es/input/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js")),u=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=v(a("./node_modules/react/index.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/lodash/lodash.js"),g=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));v(a("./node_modules/prop-types/index.js"));function v(e){return e&&e.__esModule?e:{default:e}}var y=u.default.Option,b=t.SettingsListPageDom=g.default.div.withConfig({displayName:"SettingsListPage__SettingsListPageDom",componentId:"cvoydv-0"})(["height:50px;padding-top:5px;width:800px;.ant-row{line-height:60px;display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:300px;}.ant-row{line-height:60px;}"]),x=f.Form.Item,C={0:"\u56fe \u50cf \u6821 \u9a8c",1:"\u56fe\u50cf\u901a\u9053\u8f6c\u6362",2:"\u56fe\u50cf\u65e0\u635f\u653e\u5927",3:"\u56fe\u50cf\u8272\u5f69\u589e\u5f3a",4:"\u56fe \u50cf \u4e2d \u5fc3 \u526a \u88c1",5:"\u56fe \u50cf \u53bb \u96fe",6:"\u56fe\u50cf\u5bf9\u6bd4\u5ea6\u589e\u5f3a",7:"\u56fe\u50cf\u6e05\u6670\u5ea6\u8fc7\u6ee4 "},j=(0,r.default)(y,{value:"0"},void 0,"0"),S=(0,r.default)(y,{value:"1"},void 0,"1"),I=(0,r.default)(y,{value:"2"},void 0,"2"),T=(0,r.default)(y,{value:"3"},void 0,"3"),w=(0,r.default)(y,{value:"4"},void 0,"4"),E=(0,r.default)(y,{value:"5"},void 0,"5"),D=(0,r.default)(y,{value:"6"},void 0,"6"),M=(0,r.default)(y,{value:"7"},void 0,"7"),k=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:n.setting}},n.getValBlur=function(e,t){n.setting[t]=e,n.props.updateSettings(n.props.index,n.setting)},n.getText=function(e){var t={target_height:"\u88c1\u526a\u540e\u56fe\u50cf\u9ad8\u5ea6",target_width:"\u88c1\u526a\u540e\u56fe\u50cf\u5bbd\u5ea6",clarity_threshold:"\u6e05\u6670\u5ea6\u9608\u503c,\u6570\u503c\u8d8a\u5927\u8d8a\u6e05\u6670,\u6839\u636erankiqa\u7b97\u6cd5\u8ba1\u7b97\u56fe\u50cf\u6e05\u6670\u5ea6,\u56fe\u50cf\u6e05 \u6670\u5ea6\u4f4e\u4e8e\u9600\u503c\u7684\u5c06\u88ab\u8fc7\u6f53"};return t[e]?t[e]:"--"},n.state={};var o=n.props,s=o.setSettingsValidateFunc,r=o.index;return _.isFunction(s)&&s("packageArray"+r,n.validateFun),n.setting=a.item,n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(b,{style:{marginTop:0===this.props.index?0:10}},void 0,(0,r.default)(f.Form,{style:{display:"flex"},layout:"inline"},void 0,(0,r.default)(x,{label:C[(0,h.get)(this,"setting.preType")]},void 0,t("name",{rules:[{required:!0,message:"\u8bf7\u586b\u5199\u53c2\u6570\u540d\u79f0"}],initialValue:this.setting.name})((0,r.default)(s.default,{disabled:"view"===this.props.viewType||4===this.setting.preType||7===this.setting.preType,onBlur:function(t){return e.getValBlur(t.target.value,"name")},placeholder:"\u53c2\u6570\u540d\u79f0",style:{width:200,borderRadius:0,height:32,marginLeft:5}}))),(0,r.default)("div",{style:{display:"-webkit-inline-box",marginTop:10,fontWeight:800}},void 0,"=="),7===this.setting.preType&&(0,r.default)(x,{},void 0,t("value",{rules:[{required:!0}],initialValue:this.setting.value})((0,r.default)(u.default,{onChange:function(t){e.getValBlur(t,"value")},style:{width:200,borderRadius:0,height:32,marginLeft:20},className:"search-cond"},void 0,j,S,I,T,w,E,D,M))),4===this.setting.preType&&(0,r.default)(x,{},void 0,t("value",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u53c2\u6570\u503c"},{pattern:/^[1-9]\d*$/,message:"\u8bf7\u8f93\u5165\u6b63\u6574\u6570"}],initialValue:this.setting.value})((0,r.default)(o.default,{disabled:"view"===this.props.viewType,onBlur:function(t){return e.getValBlur(t.target.value,"value")},placeholder:"\u53c2\u6570\u503c",min:0,style:{width:200,borderRadius:0,height:32,marginLeft:20}}))),(0,r.default)(n.default,{placement:"topLeft",title:this.getText(this.setting.name)},void 0,(0,r.default)(m.QuestionCircleOutlined,{style:{fontSize:16,marginTop:10,color:"#a2b0c4",cursor:"pointer",marginLeft:"10px"}}))))},t}(c.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(f.Form.create()(k))},"./src/module/dataMgr/preTaskManager/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.PRE_TYPE=t.PRE_TASK_STATUS=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({processing:["processing","\u5904\u7406\u4e2d"],building:["building","\u521b\u5efa\u4e2d"],wait_released:["wait_released","\u5f85\u53d1\u5e03"],releasing:["releasing","\u53d1\u5e03\u4e2d"],stopped:["stopped","\u5df2\u505c\u6b62"],completed:["completed","\u5df2\u5b8c\u6210"],error:["error","\u53d1\u751f\u9519\u8bef"]}),i=(0,s.default)({0:[0,"\u56fe\u50cf\u6821\u9a8c"],1:[1,"\u56fe\u50cf\u901a\u9053\u8f6c\u6362"],2:[2,"\u56fe\u50cf\u65e0\u635f\u653e\u5927"],3:[3,"\u56fe\u50cf\u8272\u5f69\u589e\u5f3a"],4:[4,"\u56fe\u50cf\u4e2d\u5fc3\u526a\u88c1"],5:[5,"\u56fe\u50cf\u53bb\u96fe"],6:[6,"\u56fe\u50cf\u5bf9\u6bd4\u5ea6\u589e\u5f3a"],7:[7,"\u56fe\u50cf\u6e05\u6670\u5ea6\u8fc7\u6ee4"]});t.PRE_TASK_STATUS=r,t.PRE_TYPE=i},"./src/module/devCenter/Loadable.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./node_modules/react-loadable/lib/index.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/components/index.js");t.default=(0,s.default)({loader:function(){return a.e(6).then(a.t.bind(null,"./src/module/devCenter/DevCenterTabPage.jsx",7))},loading:r.LoadingIndicator})},"./src/module/devCenter/apiDoc/ApiDocPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ApiContainer=void 0;var n=S(a("./node_modules/antd/es/tooltip/index.js")),o=S(a("./node_modules/antd/es/drawer/index.js")),s=S(a("./node_modules/babel-runtime/helpers/jsx.js")),r=S(a("./node_modules/antd/es/message/index.js")),i=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=S(a("./node_modules/babel-runtime/helpers/inherits.js")),u=S(a("./node_modules/antd/es/anchor/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/anchor/style/index.js");var c=S(a("./node_modules/react/index.js")),p=(S(a("./node_modules/prop-types/index.js")),S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/icons/es/index.js"),m=S(a("./node_modules/copy-to-clipboard/index.js")),h=a("./src/components/index.js"),g=a("./src/redux/services/modelService.js"),v=S(a("./src/module/devCenter/apiDoc/SchemaTable.jsx")),_=S(a("./src/module/devCenter/components/ApiDoc.jsx")),y=S(a("./src/redux/services/devCenter.js")),b=a("./src/utils/constants.js"),x=a("./src/utils/commonUtil.js"),C=a("./src/module/devCenter/components/IoSchema/utils.js"),j=S(a("./src/module/devCenter/apiDoc/ParseRules.jsx"));function S(e){return e&&e.__esModule?e:{default:e}}var I=u.default.Link,T=p.default.div.withConfig({displayName:"ApiDocPage__ApiDocWrapper",componentId:"d1x1ni-0"})(["display:flex;background:#fff;width:100%;padding:0 30px 50px 0;margin-top:-10px;.api__content-wrapper{display:flex;flex-direction:column;flex-grow:1;.panel-head-wrapper{padding:10px 0 0;}.panel-body{padding:0px 0px 30px 30px;position:relative;}}.api__section{margin-top:16px;padding-right:20px;&.api__name{margin-top:30px;}&.api__request,&.api__desc,h3{font-size:14px;color:#1f2d3d;}& > span{display:block;font-size:12px;color:#475669;letter-spacing:0;line-height:24px;i{margin-left:10px;}}}"]),w=t.ApiContainer=p.default.div.withConfig({displayName:"ApiDocPage__ApiContainer",componentId:"d1x1ni-1"})(["display:flex;.swagger-ui{.information-container{display:none;}h4.opblock-tag{display:none;}}.swagger-ui .servers > label select{width:520px;}"]),E=(0,s.default)(h.LoadingIndicator,{}),D=(0,s.default)(h.NoData,{}),M=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.copy2clipboard=function(e){(0,m.default)(e),r.default.success("\u590d\u5236\u6210\u529f\uff01")},n.fetchData=function(){n.props.serviceId&&n.props.profile&&(0,g.getModelApiInfo)(n.props.serviceId,n.props.profile).then((function(e){return n.setState({apiList:e.data})}))},n.handleClick=function(e){e.preventDefault()},n.handleTest=function(e,t){n.setState({visible:!0}),n.apiId=e,n.fetchApiJson(e,t)},n.onClose=function(){n.setState({visible:!1})},n.fetchApiJson=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.apiId,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"IN_NETWORK";n.setState({loadingApiJson:!0}),y.default.getApiJsonInfo(e,n.props.profile,t,n.props.serviceId).then((function(e){n.setState({apiJson:e.data,loadingApiJson:!1})})).catch((function(){n.setState({loadingApiJson:!1})}))},n.openModal=function(e){n.setState({modalVisible:!0,currentApiKey:e})},n.callVisible=function(){n.setState({modalVisible:!1})},n.state={apiList:[],visible:!1,loadingApiList:!1,apiRules:[]},n.apiId="",n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){(this.props.serviceId!==e.serviceId||this.props.profile!==e.profile||this.props.refreshing&&this.props.refreshing!==e.refreshing)&&this.fetchData()},t.prototype.render=function(){var e=this,t=this.state.apiList,a=this.state,r=a.loadingApiJson,i=a.apiJson,d=a.modalVisible;return(0,s.default)(T,{style:this.props.style},void 0,(0,s.default)(h.ModalView,{modalTitle:"\u4e1a\u52a1\u89e3\u6790\u89c4\u5219\u914d\u7f6e",closable:!0,width:1e3,height:450,centered:!0,callVisible:this.callVisible,modalVisible:d,comp:(0,s.default)(j.default,{apiId:this.state.currentApiKey,onClose:this.callVisible})}),(0,s.default)(o.default,{title:"API \u6d4b\u8bd5",width:800,onClose:this.onClose,visible:this.state.visible,drawerStyle:{overFlow:"hidden"},bodyStyle:{paddingBottom:80}},void 0,r?E:(0,s.default)(w,{},void 0,(0,s.default)(_.default,{apiJson:i}))),(0,s.default)("div",{className:"api__content-wrapper"},void 0,Array.isArray(t)&&t.length>0?t.map((function(t,a){return(0,s.default)("div",{style:{display:e.props.appId?t.apiId===e.props.appId?"block":"none":"block"},id:"api-title"+a},a,(0,s.default)("h2",{},void 0," ",t.apiName),(0,s.default)("div",{className:"api__content-container",style:{paddingLeft:16}},a,(0,s.default)(h.ModelConfigPanel,{title:"\u63a5\u53e3\u8bf4\u660e"},void 0,(0,s.default)("div",{id:"api-desc"+a,className:"api__desc api__section"},void 0,(0,s.default)("span",{},void 0,"\u8bf7\u6c42\u65b9\u5f0f\uff1a",t.httpMethod),["IN_NETWORK","ALL"].includes(t.apiBelonging)&&(0,s.default)("span",{},void 0,"\u8bf7\u6c42url\uff1a",t.url||(0,b.wrapServiceUrl)(t.basePath,t.path),(0,s.default)(f.CopyOutlined,{onClick:function(){return e.copy2clipboard(t.url||(0,b.wrapServiceUrl)(t.basePath,t.path))}}),e.props.showTest&&(0,s.default)("a",{href:"javascript:;",style:{marginLeft:6}},void 0,(0,s.default)("span",{onClick:function(){return e.handleTest(t.apiId,"IN_NETWORK")}},void 0,"\u8bd5\u4e00\u8bd5")),e.props.showCodeRule&&(0,s.default)(n.default,{title:"\u914d\u7f6e\u4e1a\u52a1\u89e3\u6790\u89c4\u5219"},void 0,(0,s.default)("span",{className:"link",style:{marginLeft:24},onClick:function(){return e.openModal(t.apiId)}},void 0,"\u4e1a\u52a1\u89e3\u6790\u89c4\u5219"))),["OUT_NETWORK","ALL"].includes(t.apiBelonging)&&t.externalUrl&&(0,s.default)("span",{},void 0,"Ingress\u5730\u5740\uff1a",t.externalUrl,(0,s.default)(f.CopyOutlined,{onClick:function(){return e.copy2clipboard(t.externalUrl)}}),e.props.showTest&&!1),(0,s.default)("span",{},void 0,"\u8bf7\u6c42\u63cf\u8ff0\uff1a",t.apiDesc),["IN_NETWORK","ALL"].includes(t.apiBelonging)&&(0,s.default)(c.default.Fragment,{},void 0,(0,s.default)("span",{},void 0,"\u6700\u5927\u5e76\u53d1\u8def\u6570\uff1a",t.maxConcurrentCount||"\u65e0\u9650\u5236"),(0,s.default)("span",{},void 0,"\u6700\u5927\u8c03\u7528\u6b21\u6570\uff1a",t.maxVisitCount||"\u65e0\u9650\u5236")))),(0,s.default)(h.ModelConfigPanel,{title:"\u8bf7\u6c42\u6570\u636e"},void 0,(0,s.default)("div",{id:"api-request"+a,className:"api__request api__section"},void 0,(0,s.default)(v.default,{data:t.requestSchema&&(0,x.isJsonString)(t.requestSchema)?(0,C.schemaConvertTable)(JSON.parse(t.requestSchema),!0):[],action:"view",noImageCol:!!e.props.noImageCol&&e.props.noImageCol,noCacheCol:!!e.props.noCacheCol&&e.props.noCacheCol}))),(0,s.default)(h.ModelConfigPanel,{title:"\u8fd4\u56de\u6570\u636e"},void 0,(0,s.default)("div",{id:"api-response"+a,className:"api__response api__section"},void 0,(0,s.default)(v.default,{data:t.responseSchema&&(0,x.isJsonString)(t.responseSchema)?(0,C.schemaConvertTable)(JSON.parse(t.responseSchema),!0):[],action:"view",noImageCol:!!e.props.noImageCol&&e.props.noImageCol,noCacheCol:!!e.props.noCacheCol&&e.props.noCacheCol})))))})):D),!this.props.hideAnchor&&(0,s.default)(u.default,{targetOffset:window.innerHeight/2,onClick:this.handleClick,style:{marginTop:"50px"}},void 0,Array.isArray(t)&&t.map((function(e,t){return(0,s.default)(I,{href:"#api-title"+t,title:e.apiName},t,(0,s.default)(I,{href:"#api-desc"+t,title:"\u63a5\u53e3\u8bf4\u660e"}),(0,s.default)(I,{href:"#api-request"+t,title:"\u8bf7\u6c42\u53c2\u6570"}),(0,s.default)(I,{href:"#api-response"+t,title:"\u8fd4\u56de\u6570\u636e"}))}))))},t}(c.default.Component);t.default=M},"./src/module/devCenter/apiDoc/ParseRules.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/antd/es/col/index.js")),s=S(a("./node_modules/antd/es/input/index.js")),r=S(a("./node_modules/antd/es/row/index.js")),i=S(a("./node_modules/babel-runtime/helpers/jsx.js")),d=S(a("./node_modules/babel-runtime/regenerator/index.js")),l=S(a("./node_modules/antd/es/message/index.js")),u=S(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),c=S(a("./node_modules/babel-runtime/helpers/extends.js")),p=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=S(a("./node_modules/babel-runtime/helpers/inherits.js")),h=S(a("./node_modules/antd/es/form/index.js")),g=S(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var v=S(a("./node_modules/react/index.js")),_=S(a("./node_modules/lodash/lodash.js")),y=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),b=(S(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),x=S(a("./src/module/devCenter/apiDoc/RuleItem.jsx")),C=S(a("./src/redux/services/devCenter.js")),j=a("./src/module/devCenter/modelEnums.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=y.default.div.withConfig({displayName:"ParseRules__ConfigButtonDom",componentId:"sc-1329ge3-0"})(["text-align:right;line-height:70px;padding-right:20px;"]),T=j.OPERATE_TYPES.getCodeAndDescList(),w=g.default.Group,E=h.default.Item,D={padding:"8px 0"},M=(0,i.default)(o.default,{className:"gutter-row",span:4},void 0,(0,i.default)("div",{style:D},void 0,"\u4e1a\u52a1\u7801")),k=(0,i.default)(o.default,{className:"gutter-row",span:4},void 0,(0,i.default)("div",{style:D},void 0,"\u4e1a\u52a1\u63cf\u8ff0")),P=(0,i.default)(o.default,{className:"gutter-row",span:4},void 0,(0,i.default)("div",{style:D},void 0,"\u8868\u8fbe\u5f0f")),L=(0,i.default)(o.default,{className:"gutter-row",span:4},void 0,(0,i.default)("div",{style:D})),N=(0,i.default)(o.default,{className:"gutter-row",span:4},void 0,(0,i.default)("div",{style:D})),A=(0,i.default)(b.PlusOutlined,{}),R=function(e){function t(a){var n,o=this;(0,p.default)(this,t);var s=(0,f.default)(this,e.call(this,a));return s.fetchApiRulesInfo=function(){s.props.apiId&&C.default.getApiRulesInfo(s.props.apiId).then((function(e){var t=_.default.get(e,"data.bizCodeRules",[])||[];t=t.map((function(e){return(0,c.default)({},e,{key:_.default.uniqueId()})}));var a=_.default.get(e,"data.operateType",T[0].code)||T[0].code;s.setState({bizCodeRules:t,operateType:a}),a===T[0].code&&s.formRef.current.setFieldsValue({code:_.default.get(t,"[0].code"),codeDesc:_.default.get(t,"[0].codeDesc")})})).catch((function(e){throw s.setState({bizCodeRules:[]}),e}))},s.handleSubmitRulesData=(0,u.default)(d.default.mark((function e(){var t,a,n,r,i;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s.state.operateType!==T[0].code){e.next=3;break}return s.formRef.current.validateFields().then((function(){s.handleSaveData()})),e.abrupt("return");case 3:Array.isArray(s.state.bizCodeRules)&&0!==s.state.bizCodeRules||l.default.error("\u8bf7\u914d\u7f6e\u89e3\u6790\u89c4\u5219"),t=!0,a=Object.keys(s.validateFuncs),n=0;case 7:if(!(n<a.length)){e.next=17;break}if(r=s.validateFuncs[a[n]],!_.default.isFunction(r)){e.next=14;break}return e.next=12,r.call();case 12:i=e.sent,t&&(t=i);case 14:n++,e.next=7;break;case 17:t&&s.handleSaveData();case 18:case"end":return e.stop()}}),e,o)}))),s.handleSaveData=function(){var e=s.state,t=e.bizCodeRules,a=e.operateType,n=s.props.apiId,o={apiId:n,operateType:a,bizCodeRules:t};s.setState({confirmLoading:!0}),C.default.saveApiRulesInfo(n,o).then((function(){s.setState({confirmLoading:!1}),l.default.success("\u4e1a\u52a1\u89e3\u6790\u89c4\u5219\u4fdd\u5b58\u6210\u529f"),s.props.onClose&&s.props.onClose()})).catch((function(e){throw s.setState({confirmLoading:!1}),e}))},s.onTypeChange=function(e){var t=e.target.value,a=[].concat(s.state.bizCodeRules),n=[];t===T[0].code?(n=s.oldDataRules[T[0].code],s.oldDataRules[T[1].code]=a):(n=s.oldDataRules[T[1].code],s.oldDataRules[T[0].code]=a),s.setState({operateType:t,bizCodeRules:n})},s.handleRuleAdd=function(e){s.setState((function(t){var a=_.default.clone(t.bizCodeRules),n=_.default.findIndex(a,{key:e})||a.length-1;return a.splice(n+1,0,{key:_.default.uniqueId(),code:"",field:"",sign:"==",value:"",codeDesc:""}),{bizCodeRules:a}}))},s.handleRuleMinus=function(e){s.setState((function(t){return{bizCodeRules:t.bizCodeRules.filter((function(t){return t.key!==e}))}})),delete s.validateFuncs["ParseRules-"+e]},s.handleRuleChange=function(e){var t=_.default.clone(s.state.bizCodeRules);t[_.default.findIndex(t,{key:e.key})]=e,s.setState({bizCodeRules:t})},s.handleRulesChange=function(e,t){var a,n,o=_.default.clone(s.state.bizCodeRules);o[0]=o[0]?(0,c.default)({},o[0],((a={})[t]=e,a)):((n={})[t]=e,n),s.setState({bizCodeRules:o})},s.setValidateFunc=function(e,t){s.validateFuncs[e]=t},s.state={operateType:T[0].code,bizCodeRules:[]},s.formRef=v.default.createRef(),s.validateFuncs={},s.oldDataRules=((n={})[T[0].code]=[],n[T[1].code]=[],n),s}return(0,m.default)(t,e),t.prototype.componentDidMount=function(){this.fetchApiRulesInfo()},t.prototype.componentDidUpdate=function(e){this.props.apiId!==e.apiId&&this.fetchApiRulesInfo()},t.prototype.render=function(){var e=this,t=this.state,a=t.operateType,d=t.bizCodeRules;return(0,i.default)("div",{},void 0,(0,i.default)(w,{onChange:this.onTypeChange,value:a,style:{marginBottom:40}},void 0,T.map((function(e){return(0,i.default)(g.default,{value:e.code,style:{marginRight:40}},e.code,e.desc)}))),"extract"===a?(0,i.default)("div",{style:{height:290}},void 0,v.default.createElement(h.default,{name:"basic",requiredMark:!1,ref:this.formRef,initialValues:{code:_.default.get(d,"[0].code"),codeDesc:_.default.get(d,"[0].codeDesc")},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\devCenter\\apiDoc\\ParseRules.jsx",lineNumber:194}},(0,i.default)(r.default,{},void 0,(0,i.default)(E,{label:"\u4e1a\u52a1\u7801",name:"code",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4e1a\u52a1\u7801"}]},void 0,(0,i.default)(s.default,{onChange:function(t){return e.handleRulesChange(t.target.value,"code")}})),(0,i.default)(E,{label:"\u4e1a\u52a1\u63cf\u8ff0",name:"codeDesc",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4e1a\u52a1\u63cf\u8ff0"}],style:{marginLeft:40}},void 0,(0,i.default)(s.default,{onChange:function(t){return e.handleRulesChange(t.target.value,"codeDesc")}}))))):(0,i.default)(v.default.Fragment,{},void 0,(0,i.default)(r.default,{gutter:16,style:{marginTop:-12}},void 0,M,k,P,L,N,(0,i.default)(o.default,{className:"gutter-row",span:4},void 0,!Array.isArray(d)||0===d.length&&(0,i.default)("div",{},void 0,(0,i.default)(n.default,{icon:A,onClick:this.handleRuleAdd})))),(0,i.default)("div",{style:{height:250,overflowY:"auto",overflowX:"hidden",marginTop:10}},void 0,Array.isArray(d)&&d.length>0&&d.map((function(t){return(0,i.default)(x.default,{rule:t,onRuleChange:e.handleRuleChange,onRuleAdd:e.handleRuleAdd,onRuleMinus:e.handleRuleMinus,setValidateFunc:e.setValidateFunc},t.key)})))),(0,i.default)(I,{},void 0,(0,i.default)(n.default,{onClick:function(){return e.props.onClose()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,i.default)(n.default,{onClick:function(){return e.handleSubmitRulesData()},type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd\u5b58")))},t}(v.default.Component);t.default=R},"./src/module/devCenter/apiDoc/RuleItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=x(a("./node_modules/babel-runtime/regenerator/index.js")),r=x(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),i=x(a("./node_modules/antd/es/button/index.js")),d=x(a("./node_modules/antd/es/input/index.js")),l=x(a("./node_modules/antd/es/col/index.js")),u=x(a("./node_modules/antd/es/row/index.js")),c=x(a("./node_modules/babel-runtime/helpers/jsx.js")),p=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=x(a("./node_modules/babel-runtime/helpers/inherits.js")),h=x(a("./node_modules/antd/es/form/index.js")),g=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var v=x(a("./node_modules/react/index.js")),_=x(a("./node_modules/lodash/lodash.js")),y=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),b=a("./src/module/devCenter/modelEnums.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=g.default.Option,j=h.default.Item,S={padding:0},I=b.OPERATE_SIGN.getCodeAndDescList(),T=(0,c.default)(y.PlusOutlined,{}),w=(0,c.default)(y.MinusOutlined,{}),E=(n=function(e){function t(a){(0,p.default)(this,t);var n=(0,f.default)(this,e.call(this,a));o.call(n),n.state={},n.formRef=v.default.createRef();var s=a.setValidateFunc,r=a.rule;return _.default.isFunction(s)&&s("ParseRules-"+r.key,n.validateFun),n}return(0,m.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.rule;return v.default.createElement(h.default,{name:"basic",initialValues:t,requiredMark:!1,ref:this.formRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\devCenter\\apiDoc\\RuleItem.jsx",lineNumber:61}},(0,c.default)(u.default,{gutter:16},void 0,(0,c.default)(l.default,{className:"gutter-row",span:4},void 0,(0,c.default)("div",{style:S},void 0,(0,c.default)(j,{label:"",name:"code",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4e1a\u52a1\u7801"}]},void 0,(0,c.default)(d.default,{onChange:function(t){return e.handleRulesChange("edit",t.target.value,"code")},placeholder:"\u8bf7\u8f93\u5165\u4e1a\u52a1\u7801"})))),(0,c.default)(l.default,{className:"gutter-row",span:4},void 0,(0,c.default)("div",{style:S},void 0,(0,c.default)(j,{label:"",name:"codeDesc",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4e1a\u52a1\u63cf\u8ff0"}]},void 0,(0,c.default)(d.default,{onChange:function(t){return e.handleRulesChange("edit",t.target.value,"codeDesc")},placeholder:"\u8bf7\u8f93\u5165\u4e1a\u52a1\u63cf\u8ff0"})))),(0,c.default)(l.default,{className:"gutter-row",span:4},void 0,(0,c.default)("div",{style:S},void 0,(0,c.default)(j,{label:"",name:"field",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8868\u8fbe\u5f0f\u5b57\u6bb5"}]},void 0,(0,c.default)(d.default,{onChange:function(t){return e.handleRulesChange("edit",t.target.value,"field")},placeholder:"\u8bf7\u8f93\u5165\u8868\u8fbe\u5f0f\u5b57\u6bb5"})))),(0,c.default)(l.default,{className:"gutter-row",span:4},void 0,(0,c.default)("div",{style:S},void 0,(0,c.default)(j,{label:"",name:"sign",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8868\u8fbe\u5f0f\u7b26\u53f7"}]},void 0,(0,c.default)(g.default,{placeholder:"\u8bf7\u9009\u62e9\u8868\u8fbe\u5f0f\u7b26\u53f7",onChange:function(t){return e.handleRulesChange("edit",t,"sign")}},void 0,I.map((function(e){return(0,c.default)(C,{value:e.code},e.code,e.code)})))))),(0,c.default)(l.default,{className:"gutter-row",span:4},void 0,(0,c.default)("div",{style:S},void 0,(0,c.default)(j,{label:"",name:"value",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8868\u8fbe\u5f0f\u503c"}]},void 0,(0,c.default)(d.default,{onChange:function(t){return e.handleRulesChange("edit",t.target.value,"value")},placeholder:"\u8bf7\u8f93\u5165\u8868\u8fbe\u5f0f\u503c"})))),(0,c.default)(l.default,{className:"gutter-row",span:4},void 0,(0,c.default)("div",{style:S},void 0,(0,c.default)(i.default,{icon:T,onClick:function(){return e.handleRulesChange("add")}}),(0,c.default)(i.default,{style:{marginLeft:10},icon:w,onClick:function(){return e.handleRulesChange("minus")}})))))},t}(v.default.Component),o=function(){var e=this;this.handleRulesChange=function(t,a,n){var o=_.default.clone(e.props.rule);switch(t){case"edit":o[n]=a,e.props.onRuleChange&&e.props.onRuleChange(o);break;case"add":e.props.onRuleAdd&&e.props.onRuleAdd(o.key);break;case"minus":e.props.onRuleMinus&&e.props.onRuleMinus(o.key)}},this.validateFun=(0,r.default)(s.default.mark((function t(){var a;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){e.formRef.current.validateFields().then((function(){t(!0)})).catch((function(e){throw t(!1),e}))}));case 2:return a=t.sent,t.abrupt("return",a);case 4:case"end":return t.stop()}}),t,e)})))},n);t.default=E},"./src/module/devCenter/apiDoc/SchemaTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/antd/es/table/index.js")),o=u(a("./node_modules/antd/es/checkbox/index.js")),s=u(a("./node_modules/babel-runtime/helpers/jsx.js")),r=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=u(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/checkbox/style/index.js");var l=a("./node_modules/react/index.js");u(l),u(a("./node_modules/prop-types/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"SchemaTable__ModelsBox",componentId:"tm85fb-0"})(["margin-top:5px;margin-left:10px;flex:1 1 auto;"]),p=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.handleCheckClick=function(e,t,a){n.props.onCheckedChange&&n.props.onCheckedChange(e.target.checked,t,a)},n.columns=[{title:"\u5b57\u6bb5\u503c",dataIndex:"name"},{title:"\u540d\u79f0",dataIndex:"title"},{title:"\u7c7b\u578b",dataIndex:"type"},{title:"\u9ed8\u8ba4\u503c",dataIndex:"default"},{title:"\u662f\u5426\u5fc5\u987b",dataIndex:"required",render:function(e){return e?"\u662f":"\u5426"}},{title:"\u63cf\u8ff0",dataIndex:"description"}],a.noImageCol||n.columns.push({title:"\u56fe\u7247\u6807\u8bc6",dataIndex:"isImage",render:function(e,t){return"view"===a.action?e?"\u662f":"\u5426":(0,s.default)("span",{},void 0,(0,s.default)(o.default,{disabled:"string"!==t.type,checked:e,onChange:function(e){return n.handleCheckClick(e,t,"isImage")}}))}}),a.noCacheCol||n.columns.push({title:"\u662f\u5426\u7559\u5b58",dataIndex:"isCache",render:function(e,t){return"view"===a.action?e?"\u662f":"\u5426":(0,s.default)("span",{},void 0,(0,s.default)(o.default,{checked:e,onChange:function(e){return n.handleCheckClick(e,t,"isCache")}}))}}),n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.data,a=e.wrapperStyle;return(0,s.default)(c,{style:a},void 0,(0,s.default)(n.default,{rowKey:"key",bordered:!0,indentSize:20,pagination:!1,columns:this.columns,dataSource:t}))},t}(l.Component);t.default=p},"./src/module/devCenter/components/ApiDoc.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/swagger-ui-react/index.js")));a("./node_modules/swagger-ui/dist/swagger-ui.css");var l=p(a("./src/containers/toJS.jsx")),u=a("./src/utils/authPermit.js"),c=a("./src/module/devCenter/components/styled.jsx");function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,l.default)(d.default),m=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(c.ApiDocWrapper,{},void 0,(0,n.default)(f,{spec:this.props.apiJson,docExpansion:"full",onComplete:function(e){e.preauthorizeApiKey("Bearer",(0,u.getToken)())},requestInterceptor:function(e){return e.headers.Authorization=""+(0,u.getToken)(),e}}))},t}(i.PureComponent);t.default=m},"./src/module/devCenter/components/IoSchema/ApiBasicInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/input-number/index.js")),o=f(a("./node_modules/antd/es/row/index.js")),s=f(a("./node_modules/babel-runtime/helpers/jsx.js")),r=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=f(a("./node_modules/babel-runtime/helpers/inherits.js")),l=f(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var u=f(a("./node_modules/react/index.js")),c=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var p=a("./src/module/devCenter/components/IoSchema/utils.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=c.Form.Item,h=l.default.TextArea,g={width:"400px"},v={width:"190px"},y={marginBottom:"10px"},b={OnPredict:"\u5728\u7ebf\u63a8\u7406\u63a5\u53e3",OffPredict:"\u79bb\u7ebf\u63a8\u7406\u63a5\u53e3"},x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e},n.handleChangeSchema=function(e,t){n.props.onApiConfigChange(e,t)};var o=n.props,s=o.item,d=o.setValidateFunc;return _.isFunction(d)&&d(s.operation+"-Api",n.validateFun),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){_.isFunction(this.props.onRef)&&this.props.onRef(this);var e=this.props,t=e.item;e.isCustomApi&&!t.apiName&&t.operation&&this.handleChangeSchema("apiName",b[t.operation])},t.prototype.render=function(){var e=this,t=this.props.item,a=this.props.form.getFieldDecorator,r=[{required:!t.default,message:"\u8bf7\u8f93\u5165\u63a5\u53e3url"}];return t.default||r.push({pattern:/^[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/,message:"url\u8def\u5f84\u4e0d\u6b63\u786e"}),(0,s.default)(c.Form,{layout:"inline",hideRequiredMark:!0},void 0,(0,s.default)(o.default,{style:y},void 0,(0,s.default)(m,{label:"\u63a5\u53e3\u64cd\u4f5c"},void 0,a("operation",{rules:[{required:!0,message:"\u63a5\u53e3\u64cd\u4f5c"},{max:30,message:"\u63a5\u53e3\u64cd\u4f5c\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"},{pattern:/^([a-zA-Z_][a-zA-Z0-9_]*)+$/,message:"\u7531\u82f1\u6587\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e0b\u5212\u7ebf\u7ec4\u6210\uff0c\u4e0d\u80fd\u4ee5\u6570\u5b57\u5f00\u5934"}],initialValue:t.operation})((0,s.default)(l.default,{disabled:t.default,style:v,onChange:function(t){return e.handleChangeSchema("operation",t.target.value)}}))),(0,s.default)(m,{label:"\u63a5\u53e3\u540d\u79f0"},void 0,a("apiName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u63a5\u53e3\u540d\u79f0"},{max:30,message:"\u63a5\u53e3\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:t.apiName})((0,s.default)(l.default,{style:v,onChange:function(t){return e.handleChangeSchema("apiName",t.target.value)}})))),(0,s.default)(m,{label:"\u63a5\u53e3\u8def\u5f84"},void 0,(0,s.default)(o.default,{style:y},void 0,a("apiUrl",{rules:r,initialValue:t.apiUrl})((0,s.default)(l.default,{disabled:t.default,style:g,onChange:function(t){return e.handleChangeSchema("apiUrl",t.target.value)}})))),(0,s.default)(o.default,{style:y},void 0,(0,s.default)(m,{label:"\u63a5\u53e3\u8bf4\u660e"},void 0,a("apiDesc",{initialValue:t.apiDesc})((0,s.default)(h,{autoSize:{minRows:3,maxRows:3},onChange:function(t){return e.handleChangeSchema("apiDesc",t.target.value)},style:{width:"600px"}})))),this.props.showFlowControl&&(0,s.default)(o.default,{style:y},void 0,(0,s.default)(m,{label:"\u6700\u5927\u5e76\u53d1\u8def\u6570",className:"lg-label"},void 0,a("maxConcurrentCount",{initialValue:Number(t.maxConcurrentCount),rules:[{validator:function(e,t,a){(0,p.validatorInteger)(e,t,a,"\u6700\u5927\u5e76\u53d1\u8def\u6570")}}]})((0,s.default)(n.default,{onChange:function(t){return e.handleChangeSchema("maxConcurrentCount",t)},placeholder:"\u65e0\u9650\u5236",style:{width:200}}))),(0,s.default)(m,{label:"\u6700\u5927\u8c03\u7528\u6b21\u6570",className:"lg-label"},void 0,a("maxVisitCount",{initialValue:Number(t.maxVisitCount),rules:[{validator:function(e,t,a){(0,p.validatorInteger)(e,t,a,"\u6700\u5927\u8c03\u7528\u6b21\u6570")}}]})((0,s.default)(n.default,{onChange:function(t){return e.handleChangeSchema("maxVisitCount",t)},placeholder:"\u65e0\u9650\u5236",style:{width:200}})))))},t}(u.default.Component);t.default=c.Form.create()(x)},"./src/module/devCenter/components/IoSchema/ApiSchema.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/tooltip/index.js")),o=x(a("./node_modules/antd/es/card/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/babel-runtime/helpers/extends.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js")),u=x(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/card/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var c=x(a("./node_modules/react/index.js")),p=x(a("./node_modules/lodash/lodash.js")),f=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),m=x(a("./src/module/devCenter/components/IoSchema/SchemaItem.jsx")),h=x(a("./src/module/devCenter/apiDoc/SchemaTable.jsx")),g=a("./src/components/index.js"),v=a("./src/module/devCenter/components/IoSchema/style.js"),_=x(a("./src/module/devCenter/components/IoSchema/ApiBasicInfo.jsx")),y=a("./src/module/devCenter/components/IoSchema/utils.js"),b=a("./src/utils/commonUtil.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=u.default.TabPane,j=(0,s.default)("div",{className:"item_header-desc"},void 0,"\u5bf9\u5916\u63d0\u4f9b\u5728\u7ebf\u63a8\u7406\u670d\u52a1\u6240\u9700\u7684\u63a5\u53e3url\uff0c\u5c06\u76f4\u63a5\u4f7f\u7528\u7cfb\u7edf\u9884\u7f6e\u7684url"),S=(0,s.default)("div",{className:"item_header-desc"},void 0,"\u914d\u7f6e\u8bf7\u6c42\u62a5\u6587\u7528\u4e8e\u81ea\u52a8\u751f\u6210\u63a5\u53e3\u8bf4\u660e\uff0c\u63d0\u4f9b\u5728\u7ebf\u63a5\u53e3\u6d4b\u8bd5\uff0c\u5e76\u63d0\u4f9b\u53c2\u6570\u4e00\u81f4\u6027\u6821\u9a8c\u670d\u52a1"),I=(0,s.default)(f.DeleteOutlined,{}),T=(0,s.default)(f.DownOutlined,{}),w=(0,s.default)("span",{},void 0,"\u663e\u793aschema\u914d\u7f6e"),E=(0,s.default)(f.SettingOutlined,{className:"table-setting"}),D=(0,s.default)("div",{},void 0,"\u8bf7\u6c42\u62a5\u6587\uff1a\u7528\u4e8e\u81ea\u52a8\u751f\u6210\u63a5\u53e3\u8bf4\u660e\uff0c\u63d0\u4f9b\u5728\u7ebf\u63a5\u53e3\u6d4b\u8bd5\uff0c\u5e76\u63d0\u4f9b\u53c2\u6570\u4e00\u81f4\u6027\u6821\u9a8c\u670d\u52a1"),M=(0,s.default)("div",{},void 0,"\u6570\u636eSchema\uff1a\u7528\u4e8e\u81ea\u52a8\u751f\u6210\u63a5\u53e3\u8bf4\u660e\uff0c\u5e76\u4e14\u5728\u79bb\u7ebf\u63a8\u7406\u65f6\u63d0\u4f9b\u6570\u636e\u6a21\u578b\u4e00\u81f4\u6027\u6821\u9a8c\u670d\u52a1\u3002"),k=(0,s.default)(f.UpOutlined,{}),P=(0,s.default)("span",{},void 0,"\u9690\u85cfschema\u914d\u7f6e"),L=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleChangeSchema=function(e,t,a){var o=t;["requestSchema","responseSchema"].includes(e)&&(o=n.setRootChecked("isCache",t,!0)),n.props.onApiConfigChange(e,o,a)},n.setRootChecked=function(e,t,a){var n=(0,b.isJsonString)(t)?JSON.parse(t):{};return p.default.set(n,e,!0),(0,y.setChildField)(n,e,a),n=JSON.stringify(n)},n.handleRemoveApi=function(e){n.props.onRemoveApi(e)},n.openModal=function(e,t,a){n.setState({modalVisible:!0,currentSchemaKey:e,currentApiIndex:t,modalType:a})},n.callVisible=function(){n.setState({modalVisible:!1})},n.handleConfigJsonClick=function(e,t){n.setState({showJsonConfigIndex:e,showJsonConfig:t})},n.handleCheckedChange=function(e,t,a,o,s){var i=t.key,d=(0,r.default)({},n.props.apiList)[s],l=p.default.get(d,""+o);l=(0,b.isJsonString)(l)?JSON.parse(l):{},p.default.set(l,(i?i+".":"")+a,e);var u=p.default.get(l,i)||l;e||(0,y.setParentField)(l,i,a,e),(0,y.setChildField)(u,a,e),l=JSON.stringify(l),n.props.onApiConfigChange(o,l,s)},n.state={modalVisible:!1,modalType:"schema",currentSchemaKey:"requestSchema",currentApiIndex:0,showJsonConfig:!1,showJsonConfigIndex:-1},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.apiList,r=t.isCustomApi,i=t.showDataSchema,d=this.state,l=d.modalVisible,c=d.currentApiIndex,b=d.currentSchemaKey,x=d.showJsonConfig,L=d.showJsonConfigIndex,N=i?[{key:"requestSchema",title:"\u8bf7\u6c42\u62a5\u6587"},{key:"responseSchema",title:"\u54cd\u5e94\u62a5\u6587"},{key:"inputDataSchema",title:"\u6570\u636e\u8f93\u5165Schema"},{key:"outputDataSchema",title:"\u6570\u636e\u8f93\u51faSchema"}]:[{key:"requestSchema",title:"\u8bf7\u6c42\u62a5\u6587"},{key:"responseSchema",title:"\u54cd\u5e94\u62a5\u6587"}];return(0,s.default)(v.ApiSchemaWrapper,{},void 0,(0,s.default)(g.ModalView,{modalTitle:"Schema\u914d\u7f6e",closable:!0,width:1e3,height:470,centered:!0,callVisible:this.callVisible,modalVisible:l,comp:(0,s.default)(m.default,{closeModal:this.callVisible,jsonData:p.default.get(a,"["+c+"]."+b,"{}"),onSchemaConfigChange:function(t){return e.handleChangeSchema(b,t,c)}})}),a.map((function(t,a){return(0,s.default)("div",{className:"item__wrapper"},a,(0,s.default)(o.default,{title:(0,s.default)("div",{},void 0,(0,s.default)("div",{className:"item_header-title"},void 0,(0,s.default)("span",{style:{minWidth:150,display:"inline-block"}},void 0,t.apiName),(0,s.default)(n.default,{title:"\u5f53\u524d\u9636\u6bb5\u53ea\u5f00\u653e\u5728\u7ebf\u63a8\u7406\u63a5\u53e3\uff0c\u6a21\u578b\u521d\u59cb\u5316/\u6a21\u578b\u6ce8\u9500\u7b49\u63a5\u53e3\u6682\u4e0d\u5f00\u653e"},void 0,(0,s.default)(f.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"}))),j,S),extra:!e.props.disabled&&(0,s.default)("div",{className:"remove__api-btn",onClick:function(){return e.handleRemoveApi(a)}},void 0,I)},void 0,(0,s.default)("div",{className:"add__content-wrapper"},void 0,(0,s.default)(_.default,{onRef:e.props.onRef,isCustomApi:r||!r&&!t.default,disabled:e.props.disabled,item:t,setValidateFunc:e.props.setValidateFunc,onApiConfigChange:function(t,n){return e.handleChangeSchema(t,n,a)},showFlowControl:e.props.showFlowControl})),!(x&&L===a)&&(0,s.default)("div",{className:"toggle-config-btn",onClick:function(){return e.handleConfigJsonClick(a,!0)}},void 0,T,w)),x&&L===a&&(0,s.default)("div",{className:"api__body-wrapper"},void 0,(0,s.default)(u.default,{defaultActiveKey:N[0].key},void 0,N.map((function(o){return(0,s.default)(C,{tab:o.title,style:{position:"relative"}},o.key,(0,s.default)("div",{className:"section__content"},void 0,(0,s.default)("div",{className:"api-setting-container"},void 0,(0,s.default)(n.default,{title:"\u914d\u7f6e\u63a5\u53e3Schema"},void 0,(0,s.default)("span",{className:"link",onClick:function(){return e.openModal(o.key,a,"schema")}},void 0,E,(0,s.default)("span",{style:{color:"#1F2D3D"}},void 0,"\u914d\u7f6e\u63a5\u53e3")))),(0,s.default)(h.default,{wrapperStyle:{marginRight:20,flex:"0 1 auto"},data:t[o.key]?(0,y.schemaConvertTable)(JSON.parse(t[o.key]),!0):[],onCheckedChange:function(t,n,s){return e.handleCheckedChange(t,n,s,o.key,a)}})))})),(0,s.default)("div",{className:"api__line-wrapper",tab:" ",active:"false"},""+a,(0,s.default)(n.default,{title:(0,s.default)("div",{},void 0,D," ",i&&M)},void 0,(0,s.default)(f.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),(0,s.default)("div",{className:"toggle-config-btn",onClick:function(){return e.handleConfigJsonClick(a,!1)}},void 0,k,P)))})))},t}(c.default.Component);t.default=L},"./src/module/devCenter/components/IoSchema/IoSchemaPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/button/index.js")),o=y(a("./node_modules/antd/es/dropdown/index.js")),s=y(a("./node_modules/babel-runtime/helpers/jsx.js")),r=y(a("./node_modules/antd/es/message/index.js")),i=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=y(a("./node_modules/babel-runtime/helpers/inherits.js")),u=y(a("./node_modules/antd/es/menu/index.js")),c=y(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/dropdown/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/menu/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=y(a("./node_modules/react/index.js")),f=y(a("./node_modules/lodash/lodash.js")),m=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),h=y(a("./src/module/devCenter/components/IoSchema/ApiSchema.jsx")),g=a("./src/components/index.js"),v=a("./src/module/devCenter/components/IoSchema/style.js"),_=a("./src/module/devCenter/components/IoSchema/utils.js");function y(e){return e&&e.__esModule?e:{default:e}}var b={width:"100%",display:"inline"},x=c.default.confirm,C=u.default.Item,j='{ "type": "object", "properties": {}, "isCache": true }',S=j,I=j,T=j,w=j,E=(0,s.default)(n.default,{type:"dashed",icon:(0,s.default)(m.PlusOutlined,{}),className:"add-btn",block:!0},void 0,"\u6dfb\u52a0\u63a5\u53e3"),D=(0,s.default)(m.PlusOutlined,{}),M=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.handleApiRemove=function(e){n.setState((function(t){var a=t.apiList;return a.splice(e,1),{apiList:a}}))},n.handleApiChange=function(e,t,a){var o=n.state.apiList;if(o[a][e]=t,"OFFLINE"===n.props.mirrorType)if(t){var s=f.default.get(o[a],"inputDataSchemaTemp"),r=f.default.get(o[a],"outputDataSchemaTemp");o[a]=f.default.omit(o[a],["inputDataSchemaTemp","outputDataSchemaTemp"]),o[a].inputDataSchema=s||j,o[a].outputDataSchema=r||j}else{var i=f.default.get(o[a],"inputDataSchema"),d=f.default.get(o[a],"outputDataSchema");o[a]=f.default.omit(o[a],["inputDataSchema","outputDataSchema"]),o[a].inputDataSchemaTemp=i,o[a].outputDataSchemaTemp=d}n.setState({apiList:o})},n.cancel=function(){x({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u5b9a\u5173\u95ed\u6b64\u754c\u9762\u4e48\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){window.close()}})},n.checkValidate=function(){var e=!0;return Object.keys(n.checkFuncs).map((function(t){var a=n.checkFuncs[t];if(f.default.isFunction(a)){var o=a.call();e&&(e=o)}})),e},n.handleApiAddClick=function(e){if(n.checkValidate()){var t={apiName:"",operation:"",apiUrl:"",requestSchema:S,responseSchema:I,inputDataSchema:T,outputDataSchema:w},a=n.state.apiList;if(e.key){var o=f.default.find(n.props.avaInterface,{operation:e.key},{})||{};t={apiName:o.operationName||o.operation,operation:o.operation,apiUrl:o.originUrl,requestSchema:o.requestSchema||S,responseSchema:o.responseSchema||I,inputDataSchema:o.inputDataSchema||T,outputDataSchema:o.outputDataSchema||w,default:!0}}a.push(t),n.setState({apiList:a})}},n.omitUnValidParams=function(e){for(var t=[],a=0;a<e.length;a++){var o=e[a];"OFFLINE"!==n.props.mirrorType&&(o=f.default.omit(o,["inputDataSchemaTemp","outputDataSchemaTemp"])),n.props.showFlowControl||(o=f.default.omit(o,["maxConcurrentCount","maxVisitCount"])),t.push(o)}return t},n.validateFun=function(){var e=n.state.apiList,t=n.checkValidate();return t?(f.default.isEmpty(e)&&(t=!1,r.default.error("\u8bf7\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3"),n.setState({panelCollapse:!0})),(0,_.checkAttrIsRepeat)(e,"operation")&&(t=!1,r.default.error("\u5b58\u5728\u91cd\u590d\u7684\u63a5\u53e3\u64cd\u4f5c"),n.setState({panelCollapse:!0})),{validate:t,moduleData:{apiSchema:n.omitUnValidParams(e)}}):(n.setState({panelCollapse:!0}),{validate:t,moduleData:{apiSchema:n.omitUnValidParams(e)}})},n.onRef=function(e){n.apiSchemaRef=e},n.setCheckValidateFunc=function(e,t){n.checkFuncs[e]=t},n.state={apiList:f.default.get(a,"schemas",[]),panelCollapse:a.collapse};var o=n.props.setValidateFunc;return f.default.isFunction(o)&&o("ioSchemaPage",n.validateFun),n.checkFuncs={},n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){if(!f.default.isEqual(e.schemas,this.props.schemas)){var t=f.default.get(this.props,"schemas",[]);this.setState({apiList:t})}},t.prototype.render=function(){var e=this,t=this.state.apiList,a=this.props,r=a.isCustomApi,i=a.mirrorType,d=a.avaInterface,l=!r&&Array.isArray(d)&&d.length>0?d.filter((function(e){return!Boolean(f.default.find(t,{operation:e.operation})&&e.operation)})):[];return(0,s.default)(v.IoSchemaWrapper,{},void 0,(0,s.default)(g.ModelConfigPanel,{title:"\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3",style:b,collapse:this.state.panelCollapse,onToggleExpand:function(t){e.setState({panelCollapse:t})}},void 0,Array.isArray(t)&&t.length>0&&(0,s.default)("div",{className:"api__container"},void 0,(0,s.default)(h.default,{onRef:this.onRef,showDataSchema:"OFFLINE"===i,isCustomApi:r,apiList:t,setValidateFunc:this.setCheckValidateFunc,onApiConfigChange:this.handleApiChange,onRemoveApi:this.handleApiRemove,showFlowControl:this.props.showFlowControl})),(0,s.default)("div",{className:"select__container"},void 0,l.length>0?(0,s.default)(o.default,{overlayClassName:"select__dropdown",disabled:0===l.length,overlay:(0,s.default)(u.default,{onClick:this.handleApiAddClick},void 0,l.map((function(e){return(0,s.default)(C,{},e.operation,(0,s.default)("span",{},void 0,e.operationName||e.operation))}))),placement:"bottomLeft"},void 0,E):(0,s.default)(n.default,{type:"dashed",icon:D,className:"add-btn",block:!0,onClick:this.handleApiAddClick},void 0,"\u6dfb\u52a0\u63a5\u53e3"))))},t}(p.default.Component);t.default=M},"./src/module/devCenter/components/IoSchema/SchemaItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/button/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/antd/es/message/index.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js")),l=h(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var u=h(a("./node_modules/react/index.js")),c=(h(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),p=h(a("./src/module/devCenter/components/IoSchema/jsonschema.json")),f=a("./src/utils/commonUtil.js"),m=a("./src/module/devCenter/components/IoSchema/style.js");function h(e){return e&&e.__esModule?e:{default:e}}var g={lang:"zh_CN"},v=l.default.TabPane,_=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.handleJsonChange=function(e){event.preventDefault(),n.setState({jsonData:e})},n.handleActiveKeyChange=function(e){(0,f.isJsonString)(n.state.jsonData)?n.setState({activeKey:e}):s.default.error("Json\u683c\u5f0f\u4e0d\u6b63\u786e")},n.updateJson=function(){(0,f.isJsonString)(n.state.jsonData)?(n.props.onSchemaConfigChange(n.state.jsonData),n.props.closeModal()):s.default.error("Json\u683c\u5f0f\u4e0d\u6b63\u786e")},n.state={activeKey:"1",jsonData:a.jsonData},n}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e){e.jsonData!==this.props.jsonData&&this.setState({jsonData:this.state.jsonData})},t.prototype.render=function(){var e=this,t=this.state.jsonData,a=(0,f.isJsonString)(t)?JSON.stringify(JSON.parse(t),null,2):t;return(0,o.default)(m.SchemaItemWrapper,{},void 0,(0,o.default)(l.default,{activeKey:this.state.activeKey,onChange:this.handleActiveKeyChange},void 0,(0,o.default)(v,{tab:"\u8868\u5355\u914d\u7f6e"},"1",(0,o.default)("div",{className:"schema-wrapper"},void 0,"1"===this.state.activeKey&&(0,o.default)(c.SchemaEditor,{options:g,showEditor:!1,isMock:!1,showHeader:!0,hideRoot:!1,showImportSchemaBtn:!1,showPreviewBtn:!1,showGroup:!1,showUiSelect:!1,data:t,onChange:this.handleJsonChange}))),(0,o.default)(v,{tab:"Json-Schema\u914d\u7f6e"},"2",(0,o.default)("div",{className:"schema-wrapper"},void 0,(0,o.default)(c.JSONEditorReact,{schema:p.default,text:a,mode:"code",indentation:4,disabled:!0,onChangeText:this.handleJsonChange})))),(0,o.default)(m.ButtonDom,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,o.default)(n.default,{onClick:this.updateJson,style:{marginLeft:"3.1%"},type:"primary"},void 0,"\u786e\u5b9a")))},t}(u.default.Component);t.default=_},"./src/module/devCenter/components/IoSchema/jsonschema.json":function(e){e.exports=JSON.parse('{"type":"object","properties":{"type":{"oneOf":[{"type":"number"},{"type":"integer","properties":{"title":{"type":"string"},"description":{"type":"string"}}},{"type":"string","properties":{"title":{"type":"string"},"description":{"type":"string"}}},{"type":"boolean","properties":{"title":{"type":"string"},"description":{"type":"string"}}},{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}},{"type":"array","properties":{"title":{"type":"string"},"description":{"type":"string"}}}]},"title":{"type":"string"},"description":{"type":"string"},"properties":{"type":"object"},"items":{"type":"array"},"required":{"type":"array"}},"required":["type"],"additionalProperties":true}')},"./src/module/devCenter/components/IoSchema/style.js":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.SchemaItemWrapper=t.IoSchemaWrapper=t.ApiSchemaWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=s.default.div.withConfig({displayName:"style__ApiSchemaWrapper",componentId:"m81q4v-0"})(["display:flex;flex-direction:column;background:#fff;width:100%;.ant-tabs-bar{margin:0;}.api__line-wrapper{position:absolute;height:30px;line-height:30px;top:10px;right:30px;text-align:right;span{margin-right:10px;}}.help{margin-left:5px;width:14px;height:14px;border:1px solid #a2b0c4;display:inline-block;border-radius:50%;text-align:center;line-height:1;cursor:pointer;}.section__wrapper{display:flex;flex-direction:column;}.section__title{width:120px;margin-top:24px;font-size:14px;font-weight:600;}.ant-tabs-nav-scroll{display:flex;}.remove__api-btn{cursor:pointer;&:hover{color:#1890ff;}}.api__header{margin-left:20px;}.api__url{margin-left:10px;}.ant-tabs-bar.ant-tabs-top-bar{margin-bottom:16px;}.ant-collapse-header{display:flex;align-items:center;justify-content:space-around;}.section__content{display:flex;flex-direction:column;min-height:200px;margin-left:-10px;}.api-setting-container{align-self:flex-end;margin-right:20px;}.table-setting{margin:24px 8px;color:#147bd1;font-size:16px;&:hover{color:#54b2f5;}}.add__content-wrapper{display:flex;justify-content:space-between;align-items:center;flex-grow:1;margin:0 24px;}.api__body-wrapper{margin-top:15px;padding-left:24px;}.ant-card-body{padding:24px 0 0;}.ant-card-head,.ant-card-head-wrapper{background:#f5f5f5;border-radius:2px 2px 0 0;min-height:40px;line-height:1;border-radius:2px 2px 0 0;}.item_header-title{font-size:14px;height:20px;line-height:20px;color:#555555;}.item_header-desc{height:22px;line-height:22px;color:#555;opacity:0.5;}.ant-card-bordered{border:none;box-shadow:0px 1px 3px rgba(0,0,0,0.05);}.item__wrapper{border:1px solid #e0e6ed;margin-bottom:20px;}.toggle-config-btn{display:flex;justify-content:center;align-items:center;height:40px;width:100%;border-top:1px solid #eaeefb;box-sizing:border-box;text-align:center;color:#1989fa;opacity:0.8;line-height:40px;transition:0.2s;span{display:none;margin-left:5px;}&:hover{background-color:#f9fafc;cursor:pointer;color:#1890ff;opacity:1;& > span{display:inline-block;}}}.add__content-wrapper .ant-legacy-form-item-label{width:85px;}"]),i=s.default.div.withConfig({displayName:"style__IoSchemaWrapper",componentId:"m81q4v-1"})(["display:flex;flex-direction:column;background:#fff;width:100%;padding:16px 0 0;.add__container{width:100%;}.api__container,.ant-btn-block{width:100%;}.ant-form-inline .ant-form-item-with-help{margin-bottom:5px;}.add-btn{margin-top:10px;}.ant-dropdown-menu-item{text-align:center;}"]),d=s.default.div.withConfig({displayName:"style__SchemaItemWrapper",componentId:"m81q4v-2"})(["display:flex;flex-direction:column;background:#fff;width:100%;.ant-legacy-form-item-label{width:60px;}.panel-body{padding-top:0;}.api__container{width:100%;border:1px solid #eee;margin-top:20px;}.api__top-wrapper{background:#eaecec;width:100%;height:40px;line-height:40px;padding:0 20px;}.ant-tabs-bar{margin:0;}.section__wrapper{padding:0 60px;}.schema-wrapper{height:310px;border:1px solid #e0e6ed;border-radius:2px;position:relative;overflow:auto;}.jsoneditor-menu{display:none;}div.jsoneditor-outer.has-main-menu-bar{margin-top:0;padding-top:0;}.modelApply-tabs .ant-tabs-tabpane-active{min-height:auto;}.ace_scrollbar-h{overflow-x:hidden;}textarea.jsoneditor-text,.ace-jsoneditor{min-height:300px;}.jsoneditor-outer{min-height:300px;}.jsoneditor,.jsoneditor-statusbar{border:none;}"]),l=s.default.div.withConfig({displayName:"style__ButtonDom",componentId:"m81q4v-3"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:20px;"]);t.ApiSchemaWrapper=r,t.IoSchemaWrapper=i,t.SchemaItemWrapper=d,t.ButtonDom=l},"./src/module/devCenter/components/IoSchema/utils.js":function(e,t,a){"use strict";t.__esModule=!0,t.validatorInteger=t.checkAttrIsRepeat=t.setChildField=t.setParentField=t.schemaConvertTable=void 0;var n=s(a("./node_modules/babel-runtime/helpers/extends.js")),o=s(a("./node_modules/lodash/lodash.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.schemaConvertTable=function(e,t,a){if(!e)return[];var s={};return s=(0,n.default)({},e,{key:"",name:"root"}),"object"===e.type&&e.hasOwnProperty("properties")&&!o.default.isEmpty(e.properties)?(t&&(s.required=e.required&&e.required.length>0,[].push(s)),s.children=i(e,s.key)):"array"===e.type&&e.hasOwnProperty("items")&&!o.default.isEmpty(e.items)&&(s.children=r(e,s.key)),a?o.default.get(s,"children",[])||[]:[s]};var r=function e(t,a){var s=t.items,r=[],d=(0,n.default)({},s,{key:(a?a+".":"")+"items",required:s.required&&s.required.length>0});return"object"!==s.type||o.default.isEmpty(s.properties)?"array"===s.type&&s.hasOwnProperty("items")&&!o.default.isEmpty(s.items)&&(d.children=e(s,d.key)):d.children=i(s,d.key),r.push(d),r},i=function e(t,a){var s=t.properties,i=[];for(var d in s){var l=s[d],u=(0,n.default)({},l,{key:(a?a+".":"")+"properties."+d,name:d,required:t.required&&t.required.includes(d)});"object"!==l.type||o.default.isEmpty(l.properties)?"array"===l.type&&l.hasOwnProperty("items")&&!o.default.isEmpty(l.items)&&(u.children=r(l,u.key)):u.children=e(l,u.key),i.push(u)}return i};t.setParentField=function(e,t,a,n){for(var s=function(e,t){var a=[],n=e.indexOf(t);for(;-1!==n;)a.push(n),n=e.indexOf(t,n+1);return a}(t,"."),r=0;r<s.length;r++){var i=t.slice(0,s[r]);o.default.endsWith(i,"properties")||o.default.set(e,i+"."+a,n)}o.default.set(e,""+a,n)},t.setChildField=function e(t,a,n){if(o.default.isObject(t)&&"object"!==o.default.get(t,"type")&&(t[a]=n),"object"!==o.default.get(t,"type")||o.default.isEmpty(t.properties))"array"===o.default.get(t,"type")&&t.hasOwnProperty("items")&&!o.default.isEmpty(t.items)&&e(t.items,a,n);else for(var s in t[a]=n,t.properties){e(t.properties[s],a,n)}};t.checkAttrIsRepeat=function(e,t){for(var a=0;a<e.length-1;a++)for(var n=a+1;n<e.length;n++)if(o.default.get(e,"["+a+"."+t+"]")===o.default.get(e,"["+n+"."+t+"]"))return!0;return!1},t.validatorInteger=function(e,t,a,n){if(t||0===t){try{if(isNaN(t)||!o.default.isInteger(t)||t<1)throw new Error(n+"\u4e3a\u6b63\u6574\u6570")}catch(e){a(e)}a()}else a()}},"./src/module/devCenter/components/styled.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ApiDocWrapper=t.ApiCategoryWrapper=t.ApiNavWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.ApiNavWrapper=s.default.div.withConfig({displayName:"styled__ApiNavWrapper",componentId:"sc-1bwddnk-0"})(["position:relative;border-right:1px solid rgba(0,0,0,0.07);user-select:none;overflow:hidden;width:300px;.navTitle{height:50px;font-size:14px;display:flex;flex-flow:row;justify-content:space-between;padding:5px 10px;padding-left:20px;align-items:center;background-color:#eee;border-bottom:1px solid rgba(0,0,0,0.07);.btn-toggle{cursor:pointer;}}.curCategory{user-select:none;font-size:14px;height:40px;display:flex;flex-flow:row;cursor:pointer;justify-content:space-between;background-color:#eee;align-items:center;line-height:40px;padding-left:20px;padding-right:10px;border-bottom:1px solid rgba(0,0,0,0.07);}.api-items{min-height:450px;padding-bottom:30px;ul{list-style:none;margin:0;padding:0;}.api-item{cursor:pointer;padding:15px 10px;border-left:4px solid transparent;border-bottom:1px solid #eaeaea;background:#fff;&:hover,&.api-item-active{background:#eff7ff;}&.api-item-active{border-left-color:#1890ff;}.api-title{font-size:14px;color:#333;font-weight:500;margin-bottom:10px;word-break:break-all;max-height:40px;overflow:hidden;text-overflow:ellipsis;}.api-desc{font-size:10px;color:#828a92;max-height:35px;word-break:break-word;overflow:hidden;text-overflow:ellipsis;}}}"]),t.ApiCategoryWrapper=s.default.div.withConfig({displayName:"styled__ApiCategoryWrapper",componentId:"sc-1bwddnk-1"})(["position:absolute;top:90px;left:0;width:100%;background:#f6f6f6;box-sizing:border-box;border-left:1px solid rgba(0,0,0,0.07);border-bottom:1px solid rgba(0,0,0,0.07);&.slide-enter{opacity:0;max-height:0;}&.slide-enter-active{opacity:1;max-height:400px;transition:all 300ms ease-out;}&.slide-exit{opacity:1;max-height:400px;}&.slide-exit-active{opacity:0;max-height:0;transition:all 300ms ease-out;}.catagory-ul{list-style:none;margin:0;padding:0;padding-bottom:10px;max-height:400px;overflow-y:auto;li{height:40px;padding-left:40px;line-height:40px;cursor:pointer;&:hover,&.actived-item{background-color:#269bff;color:#fff;}}}"]),t.ApiDocWrapper=s.default.div.withConfig({displayName:"styled__ApiDocWrapper",componentId:"sc-1bwddnk-2"})([".responses-inner{width:730px;}"])},"./src/module/devCenter/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.OPERATE_SIGN=t.OPERATE_TYPES=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({extract:["extract","\u63d0\u53d6\u4e1a\u52a1\u7801"],parse:["parse","\u89e3\u6790\u4e1a\u52a1\u7801"]}),i=(0,s.default)({">":[">",">"],"<":["<","<"],"==":["==","=="],"!=":["!=","!="],">=":[">=",">="],"<=":["<=","<="]});t.OPERATE_TYPES=r,t.OPERATE_SIGN=i},"./src/module/devOpsMonitor/DevOpsMonitorIndexPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DevOpsMonitorIndexPageDom=void 0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/react/index.js")),d=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/components/index.js"),c=h(a("./src/module/devOpsMonitor/containers/PlatformInfo.jsx")),p=h(a("./src/module/devOpsMonitor/containers/ResourceInfo.jsx")),f=h(a("./src/module/devOpsMonitor/containers/BusinessInfo.jsx")),m=h(a("./src/module/devOpsMonitor/containers/ServiceInfo.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var g=t.DevOpsMonitorIndexPageDom=d.default.div.withConfig({displayName:"DevOpsMonitorIndexPage__DevOpsMonitorIndexPageDom",componentId:"mih827-0"})(["width:100%;padding:16px;flex-direction:column;background:#f0f2f5;display:flex;"]),v=(0,n.default)(c.default,{}),_=(0,n.default)(p.default,{}),y=(0,n.default)(f.default,{}),b=(0,n.default)(m.default,{}),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(g,{},void 0,(0,n.default)(u.ModelConfigPanel,{style:{padding:"14px 16px 0px 16px",background:"#ffffff",marginBottom:20},title:"\u5e73\u53f0\u57fa\u672c\u4fe1\u606f"},void 0,v),(0,n.default)(u.ModelConfigPanel,{style:{padding:"14px 0px 0px 16px",background:"#ffffff",marginBottom:20},title:"\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5"},void 0,_),(0,n.default)(u.ModelConfigPanel,{style:{padding:"14px 0px 0px 16px",background:"#ffffff",marginBottom:20},title:"\u4e1a\u52a1\u8c03\u7528\u60c5\u51b5"},void 0,y),(0,n.default)(u.ModelConfigPanel,{style:{padding:"14px 0px 0px 16px",background:"#ffffff",marginBottom:20,position:"relative"},title:"\u670d\u52a1\u60c5\u51b5"},void 0,b))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(x)},"./src/module/devOpsMonitor/components/BarChartInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.UlDom=t.ResourceInfoDom=void 0;var n=m(a("./node_modules/antd/es/spin/index.js")),o=m(a("./node_modules/babel-runtime/helpers/jsx.js")),s=m(a("./node_modules/antd/es/message/index.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var l=m(a("./node_modules/react/index.js")),u=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=a("./node_modules/react-redux/es/index.js"),p=(m(a("./node_modules/prop-types/index.js")),m(a("./src/redux/services/sysManager/devOpsMonitorManager.js"))),f=a("./node_modules/recharts/es6/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=t.ResourceInfoDom=u.default.div.withConfig({displayName:"BarChartInfo__ResourceInfoDom",componentId:"sc-1qyxitt-0"})(["width:100%;display:block;.ant-spin-nested-loading{width:100%;}.search__item-wrapper{width:100%;margin-top:16px;}.color-div{margin-top:4px;width:10px;height:10px;border-radius:2px;margin-right:10px;}"]),g=(t.UlDom=u.default.ul.withConfig({displayName:"BarChartInfo__UlDom",componentId:"sc-1qyxitt-1"})(["opacity:0.77;background:#f7f8fa;list-style-type:none;height:121px;margin:29px 50px 20px 0px;text-align:center;padding-top:30px;li{border-right:1px solid #e4dfdf;width:18.5%;float:left;.title-span{font-size:14px;color:#303133;}.ant-statistic-content-value-int{font-weight:800;}}"]),(0,o.default)("span",{},void 0,"\u8c03\u7528\u91cf")),v=(0,o.default)(f.CartesianGrid,{strokeDasharray:"3 3"}),y=(0,o.default)(f.XAxis,{dataKey:"waveDate"}),b=(0,o.default)(f.YAxis,{}),x=(0,o.default)(f.Bar,{type:"monotone",dataKey:"presentCalls",fill:"#F57F5A"}),C=(0,o.default)(f.Bar,{type:"monotone",dataKey:"historyCalls",fill:"#2296F3"}),j=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData()},n.fetchData=function(){n.setState({loading:!0}),p.default.getFluctuate(n.props.serviceId).then((function(e){e&&n.setState({fluctuateInfo:e.data,loading:!1})})).catch((function(e){n.setState({loading:!1}),s.default.error(e.message)}))},n.customTooltip=function(e){var t=e.active,a=e.payload,n=e.label,s={presentCalls:"\u5f53\u524d",historyCalls:"\u5386\u53f2",null:"--","--":"--"};return t?(0,o.default)("div",{className:"custom-tooltip"},void 0,(0,o.default)("p",{className:"label"},void 0,"\u65e5\u671f\uff1a "+n),(0,o.default)("p",{className:"intro"},void 0,s[a[0]?a[0].dataKey:"--"]+"\uff1a"+_.get(a,"[0].value","")),(0,o.default)("p",{className:"intro"},void 0,s[a[1]?a[1].dataKey:"--"]+"\uff1a"+_.get(a,"[1].value",""))):null},n.state={loading:!1,fluctuateInfo:[{hours:"1",historyCalls:4e3,presentCalls:2400,amt:2400},{hours:"2",historyCalls:3e3,presentCalls:1398,amt:2210},{hours:"3",historyCalls:2e3,presentCalls:1800,amt:2290},{hours:"4",historyCalls:2780,presentCalls:908,amt:2e3}]},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.fluctuateInfo,s=t.loading;return(0,o.default)(h,{},void 0,(0,o.default)(n.default,{style:{width:"100%"},tip:"\u52a0\u8f7d\u4e2d...",spinning:s},void 0,(0,o.default)("div",{},void 0,(0,o.default)("div",{style:{display:"flex"}},void 0,(0,o.default)("div",{style:{marginLeft:"3%"}},void 0,g),(0,o.default)("div",{style:{width:"90%"}},void 0,(0,o.default)("ul",{style:{float:"right",marginRight:"6%",listStyleType:"none",display:"flex"}},void 0,(0,o.default)("li",{style:{width:80,display:"flex"}},void 0,(0,o.default)("div",{className:"color-div",style:{background:"#2296F3"}}),"\u5386\u53f2"),(0,o.default)("li",{style:{width:80,display:"flex"}},void 0,(0,o.default)("div",{style:{background:"#F57F5A"},className:"color-div"}),"\u5f53\u524d")))),(0,o.default)(f.BarChart,{width:670,height:300,data:a,margin:{top:5,right:30,left:20,bottom:5}},void 0,v,y,b,(0,o.default)(f.Tooltip,{content:function(t){var a=t.active,n=t.payload,o=t.label;return e.customTooltip({active:a,payload:n,label:o})}}),x,C))))},t}(l.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(j)},"./src/module/devOpsMonitor/components/InfoDetails.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.InfoDetailsDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/components/Icon/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=t.InfoDetailsDom=d.default.div.withConfig({displayName:"InfoDetails__InfoDetailsDom",componentId:"sc-1ixvzyb-0"})(["&:hover{cursor:pointer;-webkit-box-shadow:#ccc 0px 5px 5px;-moz-box-shadow:#ccc 0px 5px 5px;box-shadow:#ccc 0px 5px 5px;}border-radius:4px;position:relative;width:100%;padding:16px 16px 0px 16px;height:160px;background-color:#f0f2f5;.top-div{display:flex;margin-bottom:23px;.name-title{font-size:16px;color:#303133;width:100%;text-align:right;padding-top:18px;}}.bottom-div{position:absolute;bottom:0px;width:85%;.title-name{opacity:0.8;font-family:MicrosoftYaHei;font-size:14px;color:#303133;}.div-right{width:100%;text-align:right;line-height:20px;}}"]),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.data;return(0,n.default)(f,{},void 0,(0,n.default)("div",{className:"top-div"},void 0,(0,n.default)("div",{},void 0,(0,n.default)(c.IconSvg,{type:_.toLower(e.svgName),size:60,marginRight:4})),(0,n.default)("div",{className:"name-title"},void 0,e.name)),(0,n.default)("div",{className:"bottom-div"},void 0,e.datas.map((function(e,t){return(0,n.default)("div",{style:{display:"flex",marginBottom:13}},t,(0,n.default)("div",{style:{width:"100%"}},void 0,(0,n.default)("span",{className:"title-name"},void 0,e.title?e.title:""),e.title&&e.nodeNumError>0&&(0,n.default)(l.InfoCircleOutlined,{style:{color:"red",marginLeft:6}})),(0,n.default)("div",{className:"div-right"},void 0,(0,n.default)("span",{style:{fontSize:18,fontWeight:"800"}},void 0,e.nodeNum),void 0!==e.nodeNumError&&(0,n.default)("span",{style:{fontSize:18}},void 0,"/"),void 0!==e.nodeNumError&&(0,n.default)("span",{style:{fontSize:18,color:"red"}},void 0,e.nodeNumError)))}))))},t}(i.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(m)},"./src/module/devOpsMonitor/components/ProgressDetails.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ProgressDetailsDom=void 0;var n=c(a("./node_modules/antd/es/progress/index.js")),o=c(a("./node_modules/babel-runtime/helpers/jsx.js")),s=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=c(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/progress/style/index.js");var d=c(a("./node_modules/react/index.js")),l=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=t.ProgressDetailsDom=l.default.div.withConfig({displayName:"ProgressDetails__ProgressDetailsDom",componentId:"sc-10vodao-0"})(["background:#ffffff;position:relative;width:100%;padding:16px 16px 0px 16px;height:100%;.top-div{height:43px;background:#f2f9fe;margin-bottom:23px;.name-title{font-size:16px;color:#303133;padding:11px;}}.bottom-div{padding:0px 12px;width:100%;}"]),f=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.toPercent=function(e,t){return Math.round(t/e*1e4)/100},n.state={},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.data,s=t.keyName,r=t.max,i={logicalTotal:"\u903b\u8f91\u603b\u989d",actualTotal:"\u5b9e\u9645\u603b\u989d",allocatedQuantity:"\u5df2\u5206\u914d",usedQuantity:"\u5df2\u4f7f\u7528",utilization:"\u5229\u7528\u60c5\u51b5"};return(0,o.default)(p,{},void 0,(0,o.default)("div",{className:"top-div"},void 0,(0,o.default)("div",{className:"name-title"},void 0,{cpu:"CPU\u4f7f\u7528\u60c5\u51b5\uff08C\uff09",memory:"\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\uff08G\uff09",gpu:"GPU\u4f7f\u7528\u60c5\u51b5",disk:"\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5\uff08G\uff09"}[s])),(0,o.default)("div",{className:"bottom-div"},void 0,Object.keys(a).map((function(t){return(0,o.default)("div",{style:{display:"flex",height:30}},t,(0,o.default)("span",{style:{width:100,fontSize:14,color:"#303133"}},void 0,i[t]),(0,o.default)(n.default,{strokeColor:"#2296F3",percent:e.toPercent(r,a[t]),showInfo:!1}),(0,o.default)("span",{style:{width:100,fontSize:14,color:"#303133",textAlign:"right"}},void 0,a[t]))}))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(f)},"./src/module/devOpsMonitor/components/TableInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TableInfoDom=void 0;var n=f(a("./node_modules/antd/es/table/index.js")),o=f(a("./node_modules/antd/es/spin/index.js")),s=f(a("./node_modules/babel-runtime/helpers/jsx.js")),r=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/spin/style/index.js");var l=f(a("./node_modules/react/index.js")),u=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=f(a("./src/redux/services/sysManager/devOpsMonitorManager.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=t.TableInfoDom=u.default.div.withConfig({displayName:"TableInfo__TableInfoDom",componentId:"sc-14xdeg2-0"})([""]),h=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData(),window.localStorage.setItem("projectId",n.props.projectId)},n.fetchData=function(){p.default.getAllTopTen(n.props.data,n.props.projectId).then((function(e){if(e){var t=[];if(e.data.length>5)for(var a=0;a<5;a++)t.push(e.data[a]);else t=e.data;n.setState({dataInfo:t,allDataInfo:e.data,loading:!1})}})).catch((function(e){throw n.setState({loading:!1}),e}))},n.state={loading:!1,dataInfo:[],allDataInfo:[]},n}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.projectId!==e.projectId&&this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.loading,r=t.dataInfo,i=t.allDataInfo,d=this.props.data;return(0,s.default)(m,{},void 0,(0,s.default)("div",{style:{display:"flex",marginBottom:12,fontSize:14,color:"#303133"}},void 0,(0,s.default)("div",{style:{width:r&&r.length>5?"20%":"100%"}},void 0,d.title),i&&i.length>5&&(0,s.default)("div",{style:{fontSize:14,textAlign:"right",width:"80%"}},void 0,(0,s.default)("a",{href:"javascript:;",onClick:function(){e.props.openModalVisible(i,d)}},void 0,"\u66f4\u591a"))),(0,s.default)(o.default,{style:{width:"100%"},tip:"\u52a0\u8f7d\u4e2d...",spinning:a},void 0,(0,s.default)(n.default,{loading:a,dataSource:r,rowKey:_.get(d,"rowKey"),bordered:!0,pagination:!1,columns:_.get(d,"columns")})))},t}(l.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(h)},"./src/module/devOpsMonitor/containers/BusinessInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.UlDom=t.ResourceInfoDom=void 0;var n=v(a("./node_modules/antd/es/statistic/index.js")),o=v(a("./node_modules/antd/es/spin/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/antd/es/message/index.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js")),u=v(a("./node_modules/antd/es/date-picker/index.js"));a("./node_modules/antd/es/statistic/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/date-picker/style/index.js");var c=v(a("./node_modules/react/index.js")),p=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=v(a("./node_modules/dayjs/dayjs.min.js")),m=a("./node_modules/react-redux/es/index.js"),h=v(a("./src/redux/services/sysManager/devOpsMonitorManager.js")),g=a("./node_modules/recharts/es6/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=u.default.RangePicker,b=t.ResourceInfoDom=p.default.div.withConfig({displayName:"BusinessInfo__ResourceInfoDom",componentId:"uqqtgh-0"})(["width:100%;display:block;.ant-spin-nested-loading{width:100%;}.search__item-wrapper{width:100%;margin-top:16px;}.color-div{margin-top:4px;width:10px;height:10px;border-radius:2px;margin-right:10px;}"]),x=t.UlDom=p.default.ul.withConfig({displayName:"BusinessInfo__UlDom",componentId:"uqqtgh-1"})(["opacity:0.77;background:#f7f8fa;list-style-type:none;height:121px;margin:29px 50px 20px 0px;text-align:center;padding-top:30px;li{border-right:1px solid #e4dfdf;width:18.5%;float:left;.title-span{font-size:14px;color:#303133;}.ant-statistic-content-value-int{font-weight:800;}}"]),C=(0,s.default)("span",{className:"title-span"},void 0,"\u603b\u8c03\u7528\u91cf"),j=(0,s.default)("span",{className:"title-span"},void 0,"\u8c03\u7528\u6210\u529f\u91cf"),S=(0,s.default)("span",{className:"title-span"},void 0,"\u4e1a\u52a1\u5f02\u5e38\u91cf"),I=(0,s.default)("span",{className:"title-span"},void 0,"\u5e73\u5747\u54cd\u5e94\u65f6\u957f(ms)"),T=(0,s.default)("span",{className:"title-span"},void 0,"\u54cd\u5e94\u65f6\u957f\u5927\u4e8e5\u79d2\u8bf7\u6c42\u6570"),w=(0,s.default)("span",{},void 0,"\u8c03\u7528\u60c5\u51b5"),E=(0,s.default)(g.CartesianGrid,{strokeDasharray:"3 3"}),D=(0,s.default)(g.XAxis,{dataKey:"summaryDate"}),M=(0,s.default)(g.YAxis,{}),k=(0,s.default)(g.Line,{type:"monotone",dataKey:"count",stroke:"#2296F3"}),P=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData()},n.fetchData=function(){n.setState({loading:!0}),h.default.getOverviewInfo(n.searchCond).then((function(e){e&&n.setState({businessInfos:e.data,loading:!1})})).catch((function(e){n.setState({loading:!1}),r.default.error(e.message)}))},n.changeSearchCond=function(e,t){"dates"===e&&(n.searchCond.startDate=t[0]?(0,f.default)(t[0]).format("YYYY-MM-DD"):void 0,n.searchCond.endDate=t[1]?(0,f.default)(t[1]).format("YYYY-MM-DD"):void 0),n.fetchData()},n.customTooltip=function(e){var t=e.active,a=e.payload,n=e.label,o={success:"\u6210\u529f\u6b21\u6570",count:"\u8c03\u7528\u6b21\u6570"};return t&&a&&a.length>0?(0,s.default)("div",{className:"custom-tooltip"},void 0,(0,s.default)("p",{className:"label"},void 0,"\u65e5\u671f\uff1a "+n),(0,s.default)("p",{className:"intro"},void 0,o[a[0].dataKey]+"\uff1a"+a[0].value),a.length>1&&(0,s.default)("p",{className:"intro"},void 0,o[a[1].dataKey]+"\uff1a"+a[1].value)):null},n.state={loading:!1,businessInfos:{totalCalls:"0",callSuccess:"0",abnormalVolume:"0",averageResponseTime:"0",timeGreater:"0",chartData:[]}},n.searchCond={startDate:"",endDate:"",statType:"dayAdd",env:"product"},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.businessInfos,r=t.loading,i=document.body.clientWidth;return(0,s.default)(b,{},void 0,(0,s.default)("div",{className:"search__item-wrapper"},void 0,"\u65f6\u95f4\uff1a",(0,s.default)(y,{style:{width:240},onOk:function(t){return e.changeSearchCond("dates",t)},onChange:function(t){return 0===t.length?e.changeSearchCond("dates",t):null},showTime:!0,format:"YYYY-MM-DD"})),(0,s.default)(o.default,{style:{width:"100%"},tip:"\u52a0\u8f7d\u4e2d...",spinning:r},void 0,(0,s.default)("div",{},void 0,(0,s.default)(x,{},void 0,(0,s.default)("li",{},void 0,(0,s.default)(n.default,{value:a.totalCalls}),C),(0,s.default)("li",{},void 0,(0,s.default)(n.default,{value:a.callSuccess}),j),(0,s.default)("li",{},void 0,(0,s.default)(n.default,{value:a.abnormalVolume}),S),(0,s.default)("li",{},void 0,(0,s.default)(n.default,{value:a.averageResponseTime}),I),(0,s.default)("li",{style:{borderRight:"0px solid #e4dfdf"}},void 0,(0,s.default)(n.default,{value:a.timeGreater}),T))),(0,s.default)("div",{},void 0,(0,s.default)("div",{style:{display:"flex"}},void 0,(0,s.default)("div",{style:{marginLeft:"3%"}},void 0,w),(0,s.default)("div",{style:{width:"90%"}},void 0,(0,s.default)("ul",{style:{float:"right",marginRight:"6%",listStyleType:"none",display:"flex"}},void 0,(0,s.default)("li",{style:{width:80,display:"flex"}},void 0,(0,s.default)("div",{className:"color-div",style:{background:"#2296F3"}}),"\u8c03\u7528\u6b21\u6570"),(0,s.default)("li",{style:{width:80,display:"flex"}},void 0,(0,s.default)("div",{style:{background:"#F57F5A"},className:"color-div"}),"\u6210\u529f\u6b21\u6570")))),(0,s.default)(g.LineChart,{width:i-200,height:300,data:_.get(a,"chartData",[]),margin:{top:5,right:30,left:20,bottom:5}},void 0,E,D,M,(0,s.default)(g.Tooltip,{content:function(t){var a=t.active,n=t.payload,o=t.label;return e.customTooltip({active:a,payload:n,label:o})}}),(0,s.default)(g.Line,{type:"monotone",dataKey:"success",stroke:"#F57F5A",activeDot:{r:8}}),k))))},t}(c.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(P)},"./src/module/devOpsMonitor/containers/PlatformInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.InfoUl=t.PlatformInfoDom=void 0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/antd/es/message/index.js")),s=v(a("./node_modules/babel-runtime/helpers/extends.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js")),l=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=v(a("./node_modules/react/index.js")),c=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./src/utils/history.js"),m=a("./src/components/auth/textAuth.jsx"),h=v(a("./src/module/devOpsMonitor/components/InfoDetails.jsx")),g=v(a("./src/redux/services/sysManager/devOpsMonitorManager.js"));function v(e){return e&&e.__esModule?e:{default:e}}var y=l.default.Option,b=t.PlatformInfoDom=c.default.div.withConfig({displayName:"PlatformInfo__PlatformInfoDom",componentId:"sc-1nlwdnu-0"})(["width:100%;.top-divName{position:absolute;margin-top:-40px;margin-left:150px;}"]),x=t.InfoUl=c.default.ul.withConfig({displayName:"PlatformInfo__InfoUl",componentId:"sc-1nlwdnu-1"})(["display:flex;float:left;width:100%;list-style-type:none;padding-top:16px;margin-bottom:30px;padding-left:0px;h1{font-size:14px;margin-top:7px;}li{width:100%;margin-right:2%;float:left;span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),C=(0,n.default)(y,{value:"pro"},void 0,"\u63a8\u7406\u8d44\u6e90\u6c60"),j=(0,n.default)(y,{value:"dev"},void 0,"\u5f00\u53d1\u8d44\u6e90\u6c60"),S=(0,n.default)(y,{value:"test"},void 0,"\u6d4b\u8bd5\u8d44\u6e90\u6c60"),I=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData("pro")},n.fetchData=function(e){g.default.getPromethus(e).then((function(e){if(e){var t=_.cloneDeep(n.state.platformArray);t.node.datas[0].nodeNum=_.get(e,"data.computeNode"),t.node.datas[0].nodeNumError=_.get(e,"data.errorComputeNode"),t.node.datas[1].nodeNum=_.get(e,"data.managerNode"),t.node.datas[1].nodeNumError=_.get(e,"data.errorManagerNode"),t.module.datas[0].nodeNum=_.get(e,"data.components"),t.module.datas[0].nodeNumError=_.get(e,"data.errorComponents"),t.project.datas[0].nodeNum=_.get(e,"data.projects"),t.code.datas[0].nodeNum=_.get(e,"data.codeingServcies"),t.code.datas[0].nodeNumError=_.get(e,"data.errorCodeingServcies"),t.service.datas[0].nodeNum=_.get(e,"data.reasoningServcies"),t.service.datas[0].nodeNumError=_.get(e,"data.errorReasoningServcies"),n.setState({platformArray:(0,s.default)({},t)})}})).catch((function(e){o.default.error(e.message)})),n.setState({resourceType:e})},n.navTo=function(e,t){if(e)(0,f.navigateTo)(e);else{var a="pro"===n.state.resourceType?"product":n.state.resourceType;window.open(t+"?resourceType="+a)}},n.state={loading:!1,resourceType:"pro",platformArray:{node:{svgName:"jiedian",name:"\u8282\u70b9\u6570",opneUrl:(0,m.hasText)("root.app.nodeUrl")?(0,m.hasText)("root.app.nodeUrl"):"http://10.13.6.103:8066/ps/index.html#/source",datas:[{title:"\u8ba1\u7b97\u8282\u70b9",nodeNum:0,nodeNumError:0},{title:"\u7ba1\u7406\u8282\u70b9",nodeNum:0,nodeNumError:0}]},module:{svgName:"zujian",name:"\u7ec4\u4ef6\u6570",opneUrl:(0,m.hasText)("root.app.moduleUrl")?(0,m.hasText)("root.app.moduleUrl"):"http://10.13.6.103:8066/ps/index.html#/module",datas:[{nodeNum:0,nodeNumError:0}]},project:{svgName:"xiangmu",name:"\u9879\u76ee\u6570",url:"/sysmgr/devOps/project",datas:[{nodeNum:0}]},code:{svgName:"bianma",name:"\u7f16\u7801\u670d\u52a1\u6570",url:"/sysmgr/devOps/services/2",hide:"pro,test",datas:[{nodeNum:0,nodeNumError:0}]},service:{svgName:"tuili",name:"\u63a8\u7406\u670d\u52a1\u6570",hide:"dev",url:"/sysmgr/devOps/services/1",datas:[{nodeNum:0,nodeNumError:0}]}}},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.platformArray,o=t.resourceType;return(0,n.default)(b,{},void 0,(0,n.default)("div",{className:"top-divName"},void 0,(0,n.default)("span",{style:{marginRight:15}},void 0,"\u8d44\u6e90\u6c60"),(0,n.default)(l.default,{defaultValue:"pro",onChange:function(t){return e.fetchData(t)},placeholder:"\u8bf7\u9009\u62e9\u8d44\u6e90\u6c60",style:{width:150}},void 0,C,j,S)),(0,n.default)(x,{},void 0,Object.keys(a).map((function(t){return(0,n.default)("li",{di:!0,onClick:function(){e.navTo(a[t].url,a[t].opneUrl)},style:{display:a[t].hide&&-1!==a[t].hide.indexOf(o)?"none":"",cursor:a[t].url?"pointer":""}},t,(0,n.default)(h.default,{data:a[t]},t))}))))},t}(u.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(I)},"./src/module/devOpsMonitor/containers/ProjectList.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ServiceInfoDom=void 0;var n=v(a("./node_modules/antd/es/table/index.js")),o=v(a("./node_modules/babel-runtime/helpers/jsx.js")),s=v(a("./node_modules/antd/es/message/index.js")),r=v(a("./node_modules/antd/es/modal/index.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js")),u=v(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var c=v(a("./node_modules/react/index.js")),p=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=a("./node_modules/react-redux/es/index.js"),m=a("./src/components/index.js"),h=v(a("./src/redux/services/sysManager/devOpsMonitorManager.js")),g=a("./src/utils/request.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=u.default.Search,b=t.ServiceInfoDom=p.default.div.withConfig({displayName:"ProjectList__ServiceInfoDom",componentId:"sc-17kicp9-0"})(["width:100%;display:block;.top-div{height:117px;display:grid;background:#ffffff;padding:28px 0px 0px 40px;margin-bottom:10px;}.bottom-div{background:#ffffff;padding:16px;}"]),x=p.default.div.withConfig({displayName:"ProjectList__PageHeader",componentId:"sc-17kicp9-1"})(["position:relative;width:100%;background:#ffffff;z-index:20;border-bottom:1px solid #e8e8e8;height:57px;.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}"]),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleSelectedChange=function(e,t){r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u5b9a\u5207\u6362["+t+"]\u9879\u76ee\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){var t=e.split("@"),a={scopeType:t[0],scopeId:t[1]};localStorage.setItem("AI.currentContext",e),(0,g.refreshToken)(a.scopeType,a.scopeId).then((function(){return location.reload()}))}})},n.componentDidMount=function(){n.fetchData()},n.fetchData=function(){h.default.getProjectList(n.searchCond).then((function(e){e&&n.setState({projectDatas:e.data,loading:!1,pagination:{limit:e.data.pageData.pageSize,offset:e.data.pageData.pageNum,total:e.data.pageData.total}})})).catch((function(e){n.setState({loading:!1}),s.default.error(e.message)}))},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.searchCond.projectName=e,n.fetchData()},n.handleKeyPress=function(e){13===e.keyCode&&(n.searchCond.projectName=e.target.value,n.fetchData())},n.onChangePage=function(e,t){n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.state={projectDatas:[],pagination:{limit:10,offset:0,total:0}},n.data=[],n.columns=[{title:"\u9879\u76ee\u540d\u79f0",width:100,dataIndex:"projectName",key:"projectName",fixed:"left"},{title:"\u9879\u76eeID",width:100,dataIndex:"projectId",key:"projectId",fixed:"left"},{title:"\u9879\u76ee\u63cf\u8ff0",dataIndex:"projectdes",key:"projectdes",width:150},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime",width:160},{title:"\u521b\u5efa\u4eba",dataIndex:"creater",key:"creater",width:150},{title:"CPU\uff08C\uff09\u5df2\u5206\u914d/\u603b\u91cf",dataIndex:"cpuSum",key:"cpuSum",width:160,render:function(e,t){return(0,o.default)("span",{},void 0,t.cpuAllocated,"/",e)}},{title:"CPU\u5b9e\u65f6\u4f7f\u7528\u7387",dataIndex:"cpuRealUsage",key:"cpuRealUsage",width:160},{title:"\u5185\u5b58\uff08G\uff09\u5df2\u5206\u914d/\u603b\u91cf",dataIndex:"memorySum",key:"memorySum",width:160,render:function(e,t){return(0,o.default)("span",{},void 0,t.memoryAllocated,"/",e)}},{title:"\u5185\u5b58\u5b9e\u65f6\u4f7f\u7528\u7387",dataIndex:"memoryRealUsage",key:"memoryRealUsage",width:160},{title:"GPU\uff08\u5f20\uff09\u5df2\u5206\u914d/\u603b\u91cf",dataIndex:"memorySum",key:"memorySum",width:160,render:function(e,t){return(0,o.default)("span",{},void 0,t.gpuAllocated,"/",e)}},{title:"GPU\u5b9e\u65f6\u5229\u7528\u7387",dataIndex:"gpuRealUsage",key:"gpuRealUsage",width:150},{title:"\u663e\u5b58\u5229\u7528\u7387",dataIndex:"videoMemory",key:"videoMemory",width:150},{title:"\u63a8\u7406\u670d\u52a1\u91cf\uff08\u5f02\u5e38/\u603b\u91cf\uff09",dataIndex:"reasoningException",key:"reasoningException",width:170,render:function(e,t){return(0,o.default)("span",{},void 0,e,"/",t.reasoningSum)}}],n.searchCond={offset:1,limit:10,projectName:""},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.projectDatas,s=t.pagination;return(0,o.default)(b,{},void 0,(0,o.default)("div",{className:"top-div"},void 0,(0,o.default)("span",{style:{fontSize:14,color:"#303133"}},void 0,"\u57fa\u672c\u4fe1\u606f"),(0,o.default)("span",{style:{fontSize:14,color:"rgba(0, 0, 0, 0.65)"}},void 0,"\u9879\u76ee\u603b\u6570\uff1a",_.get(a,"projectNumber",0))),(0,o.default)("div",{className:"bottom-div"},void 0,(0,o.default)(x,{},void 0,(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(y,{style:{width:200},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}}))),(0,o.default)(n.default,{pagination:!1,columns:this.columns,dataSource:_.get(a,"pageData.list",[]),scroll:{x:1500,y:300}}),(0,o.default)(m.TabPagination,{currentPage:s.offset,pageSize:10,total:s.total,onChange:this.onChangePage})))},t}(c.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(C)},"./src/module/devOpsMonitor/containers/ResourceInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ResourceInfoDom=void 0;var n=h(a("./node_modules/antd/es/spin/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/antd/es/message/index.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js")),l=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=h(a("./node_modules/react/index.js")),c=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./node_modules/react-redux/es/index.js"),f=h(a("./src/module/devOpsMonitor/components/ProgressDetails.jsx")),m=h(a("./src/redux/services/sysManager/devOpsMonitorManager.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=l.default.Option,v=t.ResourceInfoDom=c.default.div.withConfig({displayName:"ResourceInfo__ResourceInfoDom",componentId:"wufx1i-0"})(["width:100%;display:flex;.ant-spin-nested-loading{width:100%;}.info-div{background:'#ffffff';margin-right:5%;float:left;width:45%;margin-bottom:13;}.top-divName{position:absolute;margin-top:-40px;margin-left:150px;}"]),_=(0,o.default)(g,{value:"pro"},void 0,"\u63a8\u7406\u8d44\u6e90\u6c60"),y=(0,o.default)(g,{value:"dev"},void 0,"\u5f00\u53d1\u8d44\u6e90\u6c60"),b=(0,o.default)(g,{value:"test"},void 0,"\u6d4b\u8bd5\u8d44\u6e90\u6c60"),x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData("pro")},n.fetchData=function(e){n.setState({loading:!0}),m.default.getResourceInfo(e).then((function(e){e&&n.setState({resourceInfos:e.data,loading:!1})})).catch((function(e){n.setState({loading:!1}),s.default.error(e.message)}))},n.getMaxNum=function(e){var t=[];for(var a in e)e[a]&&t.push(parseInt(e[a]));for(var n=0;n<t.length-1;n++)for(var o=0;o<t.length-1-n;o++)if(t[o]>t[o+1]){var s=t[o];t[o]=t[o+1],t[o+1]=s}return t[0!==t.length?t.length-1:0]},n.state={loading:!1,resourceInfos:{cpu:[{logicalTotal:"2000",actualTotal:"300",allocatedQuantity:"1200",usedQuantity:"400",utilization:"800"}],memory:[{logicalTotal:"2000",actualTotal:"300",allocatedQuantity:"1200",usedQuantity:"400",utilization:"800"}],gpu:[{actualTotal:"300",allocatedQuantity:"1200",usedQuantity:"400",utilization:"800"}],disk:[{logicalTotal:"2000",usedQuantity:"300"}]}},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.resourceInfos,s=t.loading;return(0,o.default)(v,{},void 0,(0,o.default)("div",{className:"top-divName"},void 0,(0,o.default)("span",{style:{marginRight:15}},void 0,"\u8d44\u6e90\u6c60"),(0,o.default)(l.default,{defaultValue:"pro",onChange:function(t){return e.fetchData(t)},placeholder:"\u8bf7\u9009\u62e9\u8d44\u6e90\u6c60",style:{width:150}},void 0,_,y,b)),(0,o.default)(n.default,{style:{width:"100%"},tip:"\u52a0\u8f7d\u4e2d...",spinning:s},void 0,Object.keys(a).map((function(t){return(0,o.default)("div",{className:"info-div"},t,(0,o.default)(f.default,{data:a[t][0],keyName:t,max:e.getMaxNum(a[t][0])}))}))))},t}(u.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(x)},"./src/module/devOpsMonitor/containers/ServiceInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ServiceInfoDom=void 0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/tooltip/index.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/babel-runtime/helpers/extends.js")),i=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=C(a("./node_modules/babel-runtime/helpers/inherits.js")),u=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=C(a("./node_modules/react/index.js")),p=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=a("./node_modules/react-redux/es/index.js"),m=a("./node_modules/react-router-dom/esm/react-router-dom.js"),h=C(a("./src/module/devOpsMonitor/components/TableInfo.jsx")),g=a("./src/components/index.js"),v=C(a("./src/module/devOpsMonitor/components/BarChartInfo.jsx")),y=a("./src/routes/routeHelper.jsx"),b=C(a("./src/redux/services/sysManager/projectManage.js")),x=a("./src/module/sysManage/projectManager/modelEnums.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=u.default.Option,S=t.ServiceInfoDom=p.default.div.withConfig({displayName:"ServiceInfo__ServiceInfoDom",componentId:"sc-1bchxl9-0"})(["width:100%;display:block;.service-invoke__project-select__wrapper{position:absolute;top:-25px;left:100px;}"]),I=(0,s.default)("span",{},void 0,"\u5e8f\u53f7"),T=(0,s.default)("span",{},void 0,"\u5e8f\u53f7"),w=(0,s.default)("span",{},void 0,"\u5e8f\u53f7"),E=(0,s.default)("span",{},void 0,"\u5e8f\u53f7"),D=(0,s.default)("span",{},void 0,"\u5e8f\u53f7"),M=(0,s.default)(j,{value:""},void 0,"\u5168\u90e8"),k=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.queryFluctuate=function(e){n.id=e.id,n.setState({failModalVisible:!0,modalVisible:!1})},n.openModalVisible=function(e,t){n.setState({modalVisible:!0,allDataInfo:[].concat(e),configData:(0,r.default)({},t)})},n.callModalVisible=function(){n.setState({modalVisible:!1,failModalVisible:!1})},n.onChange=function(e){n.setState({selectProjectId:e})},n.fetchProjectList=function(){n.setState({projectListLoading:!0}),b.default.getProjectList(n.searchParams).then((function(e){n.setState({projectList:_.get(e,"data",[]),projectListLoading:!1})})).catch((function(e){throw n.setState({projectListLoading:!1}),e}))},n.state={allDataInfo:[],configData:{},modalVisible:!1,serviceConfig:{delay:{url:"/platform/statistics/delay/svc-invoke-top",title:"\u8c03\u7528\u91cf\u65f6\u5ef6TOP10",params:{top:10,env:"product",statType:"dayAdd",statPeriod:""},width:45,onClick:null,marginRight:5,rowKey:"id",columns:[{title:I,ellipsis:!0,dataIndex:"id",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u63a8\u7406\u670d\u52a1\u540d\u79f0",dataIndex:"reasoningName",ellipsis:!0,render:function(e,t){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,(0,s.default)(m.Link,{to:{pathname:y.modelServiceUrl.detail(_.get(t,"id"),"monitoring")},target:"_blank"},void 0,(0,s.default)("a",{},void 0,e)))}},{title:"\u8c03\u7528\u5e73\u5747\u5ef6\u8fdf",dataIndex:"averageDelay"},{title:"\u8c03\u7528\u6b21\u6570",dataIndex:"calls"}]},fail:{url:"/platform/statistics/fail/svc-invoke-top",title:"\u8c03\u7528\u5931\u8d25\u91cf\u670d\u52a1TOP10",params:{top:10,env:"product",statType:"dayAdd",statPeriod:""},width:45,onClick:null,rowKey:"id",columns:[{title:T,ellipsis:!0,dataIndex:"id",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u63a8\u7406\u670d\u52a1\u540d\u79f0",dataIndex:"reasoningName",ellipsis:!0,render:function(e,t){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,(0,s.default)(m.Link,{to:{pathname:y.modelServiceUrl.detail(_.get(t,"id"),"monitoring")},target:"_blank"},void 0,(0,s.default)("a",{},void 0,e)))}},{title:"\u8c03\u7528\u91cf",dataIndex:"calls",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5931\u8d25\u91cf",dataIndex:"errors"},{title:"\u4e1a\u52a1\u5f02\u5e38\u91cf",dataIndex:"exception"}]},fluctuate:{url:"/platform/statistics/wave",title:"\u8c03\u7528\u6ce2\u52a8\u670d\u52a1\uff08\u5c0f\u65f6\u7ea7\uff09",params:{env:"product"},width:95,onClick:null,rowKey:"id",columns:[{title:w,ellipsis:!0,dataIndex:"id",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u63a8\u7406\u670d\u52a1\u540d\u79f0",dataIndex:"reasoningName",ellipsis:!0,render:function(e,t){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,(0,s.default)(m.Link,{to:{pathname:y.modelServiceUrl.detail(_.get(t,"id"),"monitoring")},target:"_blank"},void 0,(0,s.default)("a",{},void 0,e)))}},{title:"\u5386\u53f2\u5f53\u524d\u65f6\u6bb5\u8c03\u7528\u91cf",dataIndex:"historyCalls",ellipsis:!0},{title:"\u5f53\u524d\u65f6\u6bb5\u8c03\u7528\u91cf",dataIndex:"presentCalls"},{title:"\u8c03\u7528\u60c5\u51b5",width:"100px",render:function(e,t){var a=[{handleName:"\u67e5\u770b",handleAction:function(){n.queryFluctuate(t)}}];return(0,s.default)(g.ListButtons,{buttons:a,maxShowNum:3})}}]},memoryException:{url:"/services/stats/memoryException",title:"\u5185\u5b58\u5f02\u5e38\u4f7f\u7528\u7387\u670d\u52a1",params:{},width:45,onClick:null,marginRight:5,rowKey:"id",columns:[{title:E,ellipsis:!0,dataIndex:"id",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u63a8\u7406\u670d\u52a1\u540d\u79f0",dataIndex:"reasoningName",ellipsis:!0,render:function(e,t){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,(0,s.default)(m.Link,{to:{pathname:y.modelServiceUrl.detail(_.get(t,"id"),"monitoring")},target:"_blank"},void 0,(0,s.default)("a",{},void 0,e)))}},{title:"\u5f53\u524d\u5185\u5b58\u4f7f\u7528\u7387",dataIndex:"currentUsage"},{title:"\u5e73\u5747\u5185\u5b58\u4f7f\u7528\u7387",dataIndex:"averageUsage"}]},cpuException:{url:"/services/stats/cpuException",title:"CPU\u5f02\u5e38\u4f7f\u7528\u7387\u670d\u52a1",params:{},width:45,onClick:null,rowKey:"id",columns:[{title:D,ellipsis:!0,dataIndex:"id",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u63a8\u7406\u670d\u52a1\u540d\u79f0",dataIndex:"reasoningName",ellipsis:!0,render:function(e,t){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,(0,s.default)(m.Link,{to:{pathname:y.modelServiceUrl.detail(_.get(t,"id"),"monitoring")},target:"_blank"},void 0,(0,s.default)("a",{},void 0,e)))}},{title:"\u5f53\u524dCPU\u4f7f\u7528\u7387",dataIndex:"currentUsage"},{title:"\u5e73\u5747CPU\u4f7f\u7528\u7387",dataIndex:"averageUsage"}]}},projectList:[],selectProjectId:"",projectListLoading:!1},n.id="",n.searchParams={projectType:x.PROJECT_TYPE.PROJECT},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchProjectList()},t.prototype.render=function(){var e=this,t=this.state,a=t.serviceConfig,o=t.allDataInfo,r=t.configData,i=t.modalVisible,d=t.failModalVisible,l=t.projectList,c=t.selectProjectId,p=t.projectListLoading;return(0,s.default)(S,{},void 0,(0,s.default)("div",{className:"service-invoke__project-select__wrapper"},void 0,(0,s.default)(u.default,{showSearch:!0,style:{width:200},placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee",optionFilterProp:"children",defaultValue:c,onChange:this.onChange,loading:p,filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,M,Array.isArray(l)&&l.map((function(e){return(0,s.default)(j,{value:e.projectId},e.projectId,e.projectName)})))),(0,s.default)(g.ModalView,{viewType:"view",modalTitle:"\u8c03\u7528\u60c5\u51b5",onCancelType:!1,width:800,callVisible:this.callModalVisible,modalVisible:d,comp:(0,s.default)(v.default,{serviceId:this.id})}),(0,s.default)(g.ModalView,{viewType:"view",modalTitle:"\u66f4\u591a\u6570\u636e",onCancelType:!1,width:800,callVisible:this.callModalVisible,modalVisible:i,comp:(0,s.default)(n.default,{dataSource:o,rowKey:_.get(r,"rowKey"),bordered:!0,pagination:!1,columns:_.get(r,"columns")})}),Object.keys(a).map((function(t){return(0,s.default)("div",{style:{float:"left",marginRight:_.get(a[t],"marginRight",0)+"%",width:_.get(a[t],"width",100)+"%",marginBottom:35}},t,(0,s.default)(h.default,{openModalVisible:e.openModalVisible,data:a[t],projectId:c},t))})))},t}(c.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(k)},"./src/module/devOpsMonitor/containers/ServicesList.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ServiceInfoDom=void 0;var n=b(a("./node_modules/antd/es/table/index.js")),o=b(a("./node_modules/antd/es/tooltip/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/antd/es/message/index.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js")),u=b(a("./node_modules/antd/es/select/index.js")),c=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=b(a("./node_modules/react/index.js")),f=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=a("./node_modules/react-redux/es/index.js"),h=(b(a("./node_modules/prop-types/index.js")),a("./src/routes/routeHelper.jsx")),g=a("./node_modules/react-router-dom/esm/react-router-dom.js"),v=a("./src/components/index.js"),y=b(a("./src/redux/services/sysManager/devOpsMonitorManager.js"));function b(e){return e&&e.__esModule?e:{default:e}}var x=c.default.Search,C=u.default.Option,j=t.ServiceInfoDom=f.default.div.withConfig({displayName:"ServicesList__ServiceInfoDom",componentId:"sc-1penbqe-0"})(["width:100%;display:block;.top-div{height:117px;display:grid;background:#ffffff;padding:28px 0px 0px 40px;margin-bottom:10px;}.bottom-div{background:#ffffff;padding:16px;}"]),S=f.default.div.withConfig({displayName:"ServicesList__PageHeader",componentId:"sc-1penbqe-1"})(["position:relative;width:100%;background:#ffffff;z-index:20;border-bottom:1px solid #e8e8e8;height:57px;.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}"]),I=(0,s.default)(C,{value:""},void 0,"\u5168\u90e8"),T=(0,s.default)(C,{value:"1"},void 0,"\u8fd0\u884c\u4e2d"),w=(0,s.default)(C,{value:"2"},void 0,"\u5f02\u5e38"),E=(0,s.default)(C,{value:"3"},void 0,"\u5f00\u59cb"),D=(0,s.default)(C,{value:"4"},void 0,"\u7ed3\u675f"),M=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData()},n.fetchData=function(){y.default.getServicesList(n.searchCond).then((function(e){e&&n.setState({projectDatas:e.data,loading:!1,pagination:{limit:e.data.pageData.pageSize,offset:e.data.pageData.pageNum,total:e.data.pageData.total}})})).catch((function(e){n.setState({loading:!1}),r.default.error(e.message)}))},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.searchCond.keyword=e,n.fetchData()},n.changeSelect=function(e,t){n.searchCond[t]=e,n.fetchData()},n.handleKeyPress=function(e){13===e.keyCode&&(n.searchCond.keyword=e.target.value,n.fetchData())},n.onChangePage=function(e,t){n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.type=_.get(a.match,"params.type",null),n.state={projectDatas:[],pagination:{limit:10,offset:0,total:0}},n.data=[],n.columns=[{title:"\u670d\u52a1\u540d\u79f0",width:100,dataIndex:"serviceName",key:"serviceName",fixed:"left",render:function(e,t){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,(0,s.default)(g.Link,{to:{pathname:h.modelServiceUrl.detail(_.get(t,"serviceId"),"monitoring")},target:"_blank"},void 0,(0,s.default)("a",{},void 0,e)))}},{title:"\u670d\u52a1ID",width:100,dataIndex:"serviceId",key:"serviceId",fixed:"left"},{title:"\u670d\u52a1\u7c7b\u578b",dataIndex:"serviceType",key:"serviceType",width:150},{title:"\u670d\u52a1\u72b6\u6001",dataIndex:"serviceSatus",key:"serviceSatus",width:150},{title:"\u670d\u52a1\u526f\u672c\u6570",dataIndex:"serviceCopies",key:"serviceCopies",width:150},{title:"\u8d44\u6e90",dataIndex:"resource",key:"resource",width:150},{title:"CPU\u4f7f\u7528\u7387",dataIndex:"cpuUtilizationRate",key:"cpuUtilizationRate",width:150},{title:"\u5185\u5b58\u4f7f\u7528\u7387",dataIndex:"memoryUtilizationRate",key:"memoryUtilizationRate",width:150},{title:"GPU\u4f7f\u7528\u7387",dataIndex:"gpuUtilizationRate",key:"gpuUtilizationRate",width:150},{title:"\u8fd0\u884c\u65f6\u957f",dataIndex:"runTime",key:"runTime",width:150},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime",width:150},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",key:"updateTime",width:150},{title:"\u5e73\u5747\u54cd\u5e94\u65f6\u957f",dataIndex:"averageResponseTime",key:"averageResponseTime",width:150},{title:"\u8c03\u7528\u603b\u91cf",dataIndex:"calls",key:"calls",width:150},{title:"\u8c03\u7528\u5931\u8d25",dataIndex:"failCalls",key:"failCalls",width:150}],n.searchCond={offset:1,limit:10,keyword:"",status:"",type:n.type},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.projectDatas,o=t.pagination;return(0,s.default)(j,{},void 0,(0,s.default)("div",{className:"top-div"},void 0,(0,s.default)("span",{style:{fontSize:14,color:"#303133"}},void 0,"\u57fa\u672c\u4fe1\u606f"),(0,s.default)("div",{},void 0,"1"===this.type&&(0,s.default)("span",{style:{marginRight:150,fontSize:14,color:"rgba(0, 0, 0, 0.65)"}},void 0,"\u63a8\u7406\u670d\u52a1\u91cf\uff1a",_.get(a,"resoningServiceNumber",0)),"1"===this.type&&(0,s.default)("span",{style:{marginRight:150,fontSize:14,color:"rgba(0, 0, 0, 0.65)"}},void 0,"\u5f53\u524d\u5f02\u5e38\u670d\u52a1\u6570\uff1a",_.get(a,"resoningExceptionNumber",0)),"2"===this.type&&(0,s.default)("span",{style:{marginRight:150,fontSize:14,color:"rgba(0, 0, 0, 0.65)"}},void 0,"\u8bad\u7ec3\u670d\u52a1\u91cf\uff1a",_.get(a,"exerciseServiceNumber",0)),"2"===this.type&&(0,s.default)("span",{style:{fontSize:14,color:"rgba(0, 0, 0, 0.65)"}},void 0,"\u5f53\u524d\u5f02\u5e38\u670d\u52a1\u6570\uff1a",_.get(a,"exerciseExceptionNumber",0)))),(0,s.default)("div",{className:"bottom-div"},void 0,(0,s.default)(S,{},void 0,(0,s.default)("span",{className:"search__item-wrapper"},void 0,"\u72b6\u6001\uff1a",(0,s.default)(u.default,{onChange:function(t){return e.changeSelect(t,"status")},getPopupContainer:function(e){return e.parentNode},style:{width:200,marginRight:20},defaultValue:"",className:"sort-cond"},void 0,I,T,w,E,D)),(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(x,{style:{width:200},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}}))),(0,s.default)(n.default,{columns:this.columns,pagination:!1,dataSource:_.get(a,"pageData.list",[]),scroll:{x:1500,y:300}}),(0,s.default)(v.TabPagination,{currentPage:o.offset,pageSize:10,total:o.total,onChange:this.onChangePage})))},t}(p.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(M)},"./src/module/devOpsMonitor/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/devOpsMonitor/DevOpsMonitorIndexPage.jsx");Object.defineProperty(t,"DevOpsMonitorIndexPage",{enumerable:!0,get:function(){return r(n).default}});var o=a("./src/module/devOpsMonitor/containers/ProjectList.jsx");Object.defineProperty(t,"ProjectList",{enumerable:!0,get:function(){return r(o).default}});var s=a("./src/module/devOpsMonitor/containers/ServicesList.jsx");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ServicesList",{enumerable:!0,get:function(){return r(s).default}})},"./src/module/dispatch/dispatchTask/CreateTaskConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateUserConfigPage=void 0;var n=x(a("./node_modules/antd/es/col/index.js")),o=x(a("./node_modules/antd/es/row/index.js")),s=x(a("./node_modules/antd/es/modal/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/antd/es/message/index.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js")),c=x(a("./node_modules/antd/es/input/index.js")),p=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=x(a("./node_modules/react/index.js")),m=a("./node_modules/react-redux/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=x(a("./src/redux/services/sysManager/dispatchTaskManager.js")),_=(x(a("./node_modules/prop-types/index.js")),x(a("./src/components/common/CheckName.jsx"))),y=a("./src/redux/selectors/checkName.js"),b=a("./src/components/index.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=a("./src/module/dispatch/modelEnums.js").CYCLE.getValueAndDescList(),j=p.default.Option,S=c.default.TextArea,I=h.Form.Item,T=t.CreateUserConfigPage=g.default.div.withConfig({displayName:"CreateTaskConfig__CreateUserConfigPage",componentId:"sc-1sarxnh-0"})(["overflow-x:hidden;height:auto;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}.ant-form-inline .ant-form-item-with-help{margin-bottom:0px;}.ant-row{line-height:60px;display:flex;}"]),w={width:"100%"},E=(0,r.default)(b.LoadingIndicator,{}),D=(0,r.default)(j,{value:""},void 0,"\u8bf7\u9009\u4efb\u52a1\u5468\u671f"),M=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.onRef(n),"edit"===n.props.viewType&&(n.setState({loading:!0}),v.default.getDispatchTaskInfo(n.props.dispatchTaskId).then((function(e){e&&(n.taskData=e.data),n.setState({loading:!1})})).catch((function(e){n.setState({loading:!1}),i.default.error(e.message)})))},n.closeModal=function(){n.props.closeKpiConfig()},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&n.setState({modalVisible:!0})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),"edit"===n.props.viewType?v.default.updateDispatchTask(n.taskData).then((function(){i.default.success("\u4fee\u6539\u6210\u529f!"),n.props.closeKpiConfig("edit"),n.setState({modalVisible:!1,confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"})})).catch((function(e){n.setState({modalVisible:!1,confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}),i.default.error(e.message)})):v.default.createDispatchTask(n.taskData).then((function(){i.default.success("\u4fdd\u5b58\u6210\u529f!"),n.props.closeKpiConfig("edit"),n.setState({modalVisible:!1,confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"})})).catch((function(e){n.setState({modalVisible:!1,confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}),i.default.error(e.message)}))},n.getUserBlur=function(e,t){n.taskData[t]=e},n.updateName=function(e){n.taskData.dispatchTaskName=e,n.props.form.setFieldsValue({dispatchTaskName:e})},n.checkNameRef=f.default.createRef(),n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1,loading:!1},n.taskData={cycle:"",dispatchTaskDesc:"",dispatchTaskId:a.dispatchTaskId,dispatchTaskName:""},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(T,{},void 0,(0,r.default)(s.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,r.default)("p",{},void 0,this.state.modalTxt)),(0,r.default)(b.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:w},void 0,this.state.loading&&E,!this.state.loading&&(0,r.default)(h.Form,{style:{paddingLeft:16},layout:"inline"},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(I,{label:"\u4efb\u52a1\u540d\u79f0"},void 0,t("dispatchTaskName",{rules:[{required:!0,min:0,max:100,message:"\u4efb\u52a1\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a\u3001\u5c0f\u4e8e100\u4f4d"},{validator:this.handleCheckNameValidate}],initialValue:this.taskData.dispatchTaskName})(f.default.createElement(_.default,{disabled:"view"===this.props.viewType,ref:this.checkNameRef,source:"dispatchTask",style:{marginLeft:"20px",width:"300px"},placeholder:"\u8bf7\u8f93\u5165\u8981\u521b\u5efa\u7684\u8c03\u5ea6\u4efb\u52a1\u540d\u79f0",modelId:this.taskData.dispatchTaskId,updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dispatch\\dispatchTask\\CreateTaskConfig.jsx",lineNumber:204}}))))),(0,r.default)(o.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(I,{label:"\u4efb\u52a1\u5468\u671f"},void 0,t("cycle",{rules:[{required:!0,message:"\u8bf7\u586b\u5199\u4efb\u52a1\u5468\u671f"},{validator:this.handleCheckNameValidate}],initialValue:this.taskData.cycle})((0,r.default)(p.default,{allowClear:!0,disabled:"edit"===this.props.viewType,onChange:function(t){return e.getUserBlur(t,"cycle")},getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u4efb\u52a1\u5468\u671f",style:{marginLeft:"20px",width:"300px"}},void 0,D,C.map((function(e,t){return(0,r.default)(j,{value:e.code},t,e.desc)}))))))),(0,r.default)(o.default,{},void 0,(0,r.default)(n.default,{style:{paddingLeft:10},span:24},void 0,(0,r.default)(I,{label:"\u4efb\u52a1\u63cf\u8ff0"},void 0,t("memo",{rules:[{max:100}],initialValue:this.taskData.dispatchTaskDesc})((0,r.default)(S,{disabled:"view"===this.props.viewType,autosize:{minRows:2,maxRows:2},style:{marginLeft:"20px",width:530,marginRight:10,min:0,max:450},onBlur:function(t){return e.getUserBlur(t.target.value,"dispatchTaskDesc")},rows:8}))))))))},t}(f.default.PureComponent);t.default=(0,m.connect)((function(e){return{checkNameVerifyInfo:(0,y.selectVerifyInfo)(e)}}))(h.Form.create()(M))},"./src/module/dispatch/dispatchTask/DispatchTaskList.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ServiceInfoDom=void 0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/antd/es/modal/index.js")),i=C(a("./node_modules/antd/es/message/index.js")),d=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=C(a("./node_modules/babel-runtime/helpers/inherits.js")),c=C(a("./node_modules/antd/es/select/index.js")),p=C(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var f=C(a("./node_modules/react/index.js")),m=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/utils/history.js"),v=a("./src/components/auth/textAuth.jsx"),_=a("./src/components/index.js"),y=C(a("./src/redux/services/sysManager/dispatchTaskManager.js")),b=C(a("./src/module/dispatch/dispatchTask/CreateTaskConfig.jsx")),x=a("./src/module/dispatch/modelEnums.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=p.default.Search,S=c.default.Option,I=t.ServiceInfoDom=m.default.div.withConfig({displayName:"DispatchTaskList__ServiceInfoDom",componentId:"d372i4-0"})(["width:100%;display:block;.top-div{height:117px;display:grid;background:#ffffff;padding:28px 0px 0px 40px;margin-bottom:10px;}.bottom-div{background:#ffffff;padding:16px;min-height:500px;display:grid;}.saveButton{margin-right:16px;}"]),T=m.default.div.withConfig({displayName:"DispatchTaskList__PageHeader",componentId:"d372i4-1"})(["position:relative;width:100%;background:#ffffff;z-index:20;border-bottom:1px solid #e8e8e8;height:57px;.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}"]),w=(0,s.default)(S,{value:"UPDATE_AT"},void 0,"\u6309\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),E=(0,s.default)(S,{value:"CREATE_AT"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),D=(0,s.default)(_.LoadingIndicator,{position:"relative"}),M=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData()},n.arrange=function(e){(0,g.navigateTo)("/sysmgr/task/iframe_load/dacpDevelop?url="+(0,v.hasText)("root.app.dacpPath")+"/open/procDetailEdit/"+e.dispatchTaskId+"/some/"+e.projectId)},n.fetchData=function(){n.setState({loading:!0}),y.default.getDispatchTaskList(n.searchCond).then((function(e){e&&n.setState({dispatchTaskDatas:e.data,loading:!1,pagination:{limit:e.pagination.limit,offset:e.pagination.offset,total:e.pagination.total}})})).catch((function(e){n.setState({loading:!1}),i.default.error(e.message)}))},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.searchCond.search=e,n.fetchData()},n.handleKeyPress=function(e){13===e.keyCode&&(n.searchCond.search=e.target.value,n.fetchData())},n.onChangePage=function(e,t){n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.changeSortField=function(e){n.searchCond.sortBy=[e],n.fetchData(n.searchCond)},n.openKpiConfig=function(e){n.setState({modalVisible:!0,viewType:e})},n.callModalVisible=function(e){n.setState({modalVisible:!1}),e&&n.fetchData(n.searchCond)},n.handleDelete=function(e){var t;r.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u8c03\u5ea6\u4efb\u52a1?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t){y.default.deleteDispatchTaskInfo(e).then((function(){t(),i.default.success("\u5220\u9664\u6210\u529f"),n.fetchData()}))}))},t))},n.handleOnline=function(e){var t;r.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4e0a\u7ebf?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t){y.default.onlineDispatchTask(e).then((function(){t(),i.default.success("\u4e0a\u7ebf\u6210\u529f"),n.fetchData()}))}))},t))},n.handleOffline=function(e){var t;r.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4e0b\u7ebf?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t){y.default.offlineDispatchTask(e).then((function(){t(),i.default.success("\u4e0b\u7ebf\u6210\u529f"),n.fetchData()}))}))},t))},n.state={dispatchTaskDatas:[],pagination:{limit:10,offset:0,total:0},modalVisible:!1,viewType:""},n.dispatchTaskId="",n.data=[],n.columns=[{title:"\u8c03\u5ea6\u4efb\u52a1\u540d\u79f0",dataIndex:"dispatchTaskName",key:"dispatchTaskName",width:150},{title:"\u8c03\u5ea6\u5468\u671f",dataIndex:"cycle",key:"cycle",width:100,render:function(e){return x.CYCLE.getDescFromValue(e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",key:"createAt",width:170},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",key:"createBy",width:150},{title:"\u4efb\u52a1\u72b6\u6001",dataIndex:"dispatchTaskState",key:"dispatchTaskState",render:function(e){return(0,s.default)(_.StateLabel,{source:"dispatchTask",code:e})}},{title:"\u64cd\u4f5c",width:"230px",render:function(e,t){var a=[];return"created"!==t.dispatchTaskState&&"offline"!==t.dispatchTaskState||(a.push({handleName:"\u4fee\u6539",handleAction:function(){n.dispatchTaskId=t.dispatchTaskId,n.openKpiConfig("edit")}}),a.push({handleName:"\u5220\u9664",handleAction:function(){n.handleDelete(t.dispatchTaskId)}}),a.push({handleName:"\u8c03\u5ea6\u7f16\u6392",handleAction:function(){n.arrange(t)}}),a.push({handleName:"\u4e0a\u7ebf",handleAction:function(){n.handleOnline(t.dispatchTaskId)}})),"online"===t.dispatchTaskState&&(a.push({handleName:"\u4fee\u6539",handleAction:function(){n.dispatchTaskId=t.dispatchTaskId,n.openKpiConfig("edit")}}),a.push({handleName:"\u4e0b\u7ebf",handleAction:function(){n.handleOffline(t.dispatchTaskId)}})),(0,s.default)(_.ListButtons,{buttons:a,maxShowNum:3})}}],n.searchCond={offset:1,limit:10,search:"",sortBy:["UPDATE_AT"]},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.dispatchTaskDatas,r=t.pagination;return(0,s.default)(I,{},void 0,(0,s.default)(_.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u65b0\u589e\u8c03\u5ea6\u4efb\u52a1":"\u7f16\u8f91\u8c03\u5ea6\u4efb\u52a1",onCancelType:!1,width:800,callVisible:this.callModalVisible,modalVisible:this.state.modalVisible,okText:"\u63d0 \u4ea4",submitModalOk:function(){e.createTaskConfig.saveKpi()},comp:(0,s.default)(b.default,{onRef:function(t){e.createTaskConfig=t},viewType:this.state.viewType,dispatchTaskId:this.dispatchTaskId,closeKpiConfig:this.callModalVisible})}),(0,s.default)("div",{className:"bottom-div"},void 0,(0,s.default)(T,{},void 0,(0,s.default)(o.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u8c03\u5ea6\u4efb\u52a1"),(0,s.default)("div",{style:{float:"right"}},void 0,(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(c.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:{width:200,marginRight:16},placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.searchCond.sortBy,className:"sort-cond"},void 0,w,E)),(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(j,{style:{width:200},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))),this.state.loading&&D,!this.state.loading&&(0,s.default)(n.default,{bordered:!0,pagination:!1,columns:this.columns,dataSource:a}),(0,s.default)(_.TabPagination,{currentPage:r.offset,pageSize:10,total:r.total,onChange:this.onChangePage})))},t}(f.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(M)},"./src/module/dispatch/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/dispatch/dispatchTask/DispatchTaskList.jsx");Object.defineProperty(t,"DispatchTaskList",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}})},"./src/module/dispatch/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.CYCLE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};t.CYCLE=(0,s.default)({year:["year","\u5e74"],month:["month","\u6708"],week:["week","\u5468"],day:["day","\u5929"],hour:["hour","\u5c0f\u65f6"],minute:["minute","\u5206\u949f"],once:["once","\u4e00\u6b21"]})},"./src/module/dragDrop/config.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.exec_log_count=t.svg_arrow_style_hover=t.svg_arrow_style=t.svg_line_style=t.zoomSliderConfig=t.DIAGRAM_TOOLBAR_CONFIG=t.itemType=t.MODEL_STATUS_CONF=t.NODE_STATUS=t.NODE_TYPE_CONFIG=t.styleVar=t.UPDATE_STATUS_DELAY=t.AUTO_SAVE_DELAY=void 0;var n,o,s,r=u(a("./node_modules/babel-runtime/helpers/jsx.js")),i=(u(a("./node_modules/react/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),d=a("./src/module/dragDrop/constant.js"),l=a("./src/components/Icon/index.js");function u(e){return e&&e.__esModule?e:{default:e}}t.AUTO_SAVE_DELAY=3e4,t.UPDATE_STATUS_DELAY=1e4,t.styleVar={panel_title_bg:"#E3E5EB",panel_title_hover_bg:"rgba(227, 229, 235, 0.5)",panel_body_bg:"#F6F9FE",canvas_title_bg:"#D4D7E0",canvas_body_bg:"#fff",node_bg:"#fff",node_type_color:"#1f2d3d",node_hover_bg:"#1890ff",node_open_bg:"rgba(231, 234, 240, 1)",border_color:"rgba(0, 0, 0, 0.1)",lock_bg:"#d4d7e0",icon_hover_color:"#52b3f6",console_color:"rgb(206, 207, 207)",console_bg:"rgb(62, 65, 66)",node_icon_color:"#787878",flow_node_border_color:"#d8e2f5",flow_node_icon_width:50,flow_node_port_size:10,flow_node_width:220,flow_node_height:40,flow_node_icon_color:"#fff",flow_node_selected_bg:"#1890ff",flow_node_port_color:"#7db4ff",bulb_icon_bg:"#9e9e9e",node_selector_size:{default:250,min:200,max:300},diagram_console_size:{default:80,min:50,max:500},node_config_size:{default:300,min:250,max:600,drawer:400}},t.NODE_TYPE_CONFIG=((n={})[d.PICK_NODE_TYPE.DATA_SOURCE]={ico:"node-res",color:"rgba(68, 68, 68,1)",borderColor:"rgba(68, 68, 68,0.7)",shadowColor:"rgb(145, 212, 249, 0.5)"},n[d.PICK_NODE_TYPE.FEATURE]={ico:"node-db",color:"rgba(60, 76, 119,1)",borderColor:"rgba(60, 76, 119,0.7)",shadowColor:"rgb(145, 212, 249, 0.5)"},n[d.PICK_NODE_TYPE.ARITH]={ico:"node-arith",color:"rgba(67, 106, 97,1)",borderColor:"rgba(67, 106, 97,0.7)",shadowColor:"rgb(145, 212, 249, 0.5)"},n[d.PICK_NODE_TYPE.ESTIMATE]={ico:"node-eval",color:"rgba(121, 121, 121,1)",borderColor:"rgba(121, 121, 121,0.7)",shadowColor:"rgb(145, 212, 249, 0.5)"},n[d.PICK_NODE_TYPE.COMPONENT]={ico:"node-code",color:"rgba(0, 135, 203,1)",borderColor:"rgba(0, 135, 203,0.7)",shadowColor:"rgba(0, 135, 203,0.5)"},n[d.PICK_NODE_TYPE.MODEL]={ico:"model",color:"rgba(21, 101, 192, 1)",borderColor:"rgba(21, 101, 192, 0.7)",shadowColor:"rgba(21, 101, 192, 0.5)"},n[d.PICK_NODE_TYPE.DEFAULT]={ico:"node-default",color:"rgba(0, 177, 122,1)",borderColor:"rgba(0, 177, 122,0.7)",shadowColor:"rgba(0, 177, 122,0.5)"},n),t.NODE_STATUS=((o={})[d.FLOW_NODE_STATUS.CONF_WAIT]={desc:"\u672a\u914d\u7f6e",icon:(0,r.default)(i.InfoCircleTwoTone,{twoToneColor:"#FED231",title:"\u672a\u914d\u7f6e",size:20})},o[d.FLOW_NODE_STATUS.CONF_ERR]={desc:"\u914d\u7f6e\u9519\u8bef",icon:(0,r.default)(i.InfoCircleTwoTone,{twoToneColor:"#F05E6E",title:"\u914d\u7f6e\u9519\u8bef"})},o[d.FLOW_NODE_STATUS.CONF_OK]={desc:"\u914d\u7f6e\u6210\u529f",icon:(0,r.default)(i.InfoCircleTwoTone,{twoToneColor:"#9ADD55",title:"\u914d\u7f6e\u6210\u529f"})},o[d.FLOW_NODE_STATUS.EXEC_WAIT]={desc:"\u7b49\u5f85\u6267\u884c",icon:(0,r.default)(i.ClockCircleTwoTone,{title:"\u7b49\u5f85\u6267\u884c"})},o[d.FLOW_NODE_STATUS.EXEC_RUNNING]={desc:"\u6267\u884c\u4e2d",icon:(0,r.default)(i.ReloadOutlined,{spin:!0,style:{color:"#1890ff"},title:"\u6267\u884c\u4e2d"})},o[d.FLOW_NODE_STATUS.EXEC_OK]={desc:"\u6267\u884c\u6210\u529f",icon:(0,r.default)(i.CheckCircleTwoTone,{twoToneColor:"#52c41a",title:"\u6267\u884c\u6210\u529f"})},o[d.FLOW_NODE_STATUS.EXEC_ERR]={desc:"\u6267\u884c\u9519\u8bef",icon:(0,r.default)(i.ExclamationCircleTwoTone,{twoToneColor:"#eb2f96",title:"\u6267\u884c\u9519\u8bef"})},o),t.MODEL_STATUS_CONF=((s={})[d.MODEL_STATUS.CONF_WAIT]={desc:"\u7f16\u8f91\u4e2d",icon:(0,r.default)(i.InfoCircleTwoTone,{twoToneColor:"#FED231",title:"\u7f16\u8f91\u4e2d"})},s[d.MODEL_STATUS.EXEC_WAIT]={desc:"\u7b49\u5f85\u4e2d",icon:(0,r.default)(i.ClockCircleTwoTone,{title:"\u7b49\u5f85\u4e2d"})},s[d.MODEL_STATUS.EXEC_RUNNING]={desc:"\u8bad\u7ec3\u4e2d",icon:(0,r.default)(i.SyncOutlined,{spin:!0,style:{color:"#1890ff"},title:"\u8bad\u7ec3\u4e2d"})},s[d.MODEL_STATUS.EXEC_OK]={desc:"\u5df2\u5b8c\u6210",icon:(0,r.default)(i.CheckCircleTwoTone,{twoToneColor:"#52c41a",title:"\u5df2\u5b8c\u6210"})},s[d.MODEL_STATUS.EXEC_ERROR]={desc:"\u53d1\u751f\u9519\u8bef",icon:(0,r.default)(i.ExclamationCircleTwoTone,{twoToneColor:"#F05E6E",title:"\u53d1\u751f\u9519\u8bef"})},s[d.MODEL_STATUS.PUBLISHED]={desc:"\u5df2\u53d1\u5e03",icon:(0,r.default)(i.CheckCircleTwoTone,{twoToneColor:"#1890ff",title:"\u5df2\u53d1\u5e03"})},s),t.itemType={PICK_NODE:"PICK_NODE",FLOW_NODE:"FLOW_NODE"},t.DIAGRAM_TOOLBAR_CONFIG=[{name:"\u4fdd\u5b58",id:"save",icon:(0,r.default)(i.SaveOutlined,{}),desc:"\u4fdd\u5b58\u6a21\u578b",handler:"onSaveModel"},{name:"\u8fd0\u884c",id:"run",icon:(0,r.default)(i.PlayCircleFilled,{}),desc:"\u5f00\u59cb\u6a21\u578b\u8bad\u7ec3",handler:"onExecuteTrain"},{name:"\u505c\u6b62",id:"pause",icon:(0,r.default)(i.PauseCircleFilled,{}),desc:"\u505c\u6b62\u6a21\u578b\u8bad\u7ec3",handler:"onPauseTrain"},{name:"\u53d1\u5e03",id:"publish",icon:(0,r.default)(l.IconSvg,{type:"publish"}),desc:"\u6a21\u578b\u53d1\u5e03",handler:"onPublishModel"},{name:"\u53d1\u5e03\u81f3\u6a21\u578b\u5e93",id:"publishToRepo",icon:(0,r.default)(l.IconSvg,{type:"publish"}),desc:"\u6a21\u578b\u53d1\u5e03\u81f3\u6a21\u578b\u5e93",handler:"onPublishModelToRepo"},{name:"\u4e0b\u8f7d\u4ee3\u7801",id:"downloadIpynb",icon:(0,r.default)(i.CloudDownloadOutlined,{}),desc:"\u4e0b\u8f7dipynb\u4ee3\u7801",handler:"onDownloadIpynb"}],t.zoomSliderConfig={default:1,min:.7,max:1.3,step:.1},t.svg_line_style={overflow:"visible",position:"absolute",cursor:"pointer",left:0,right:0},t.svg_arrow_style={stroke:"rgba(170, 183, 195, 1)",fill:"rgba(170, 183, 195, 1)"},t.svg_arrow_style_hover={stroke:"rgba(25, 156, 250, 1)",fill:"rgba(25, 156, 250, 1)"},t.exec_log_count=100},"./src/module/dragDrop/constant.js":function(e,t,a){"use strict";t.__esModule=!0;t.MODEL_STATUS={CONF_WAIT:3,EXEC_WAIT:4,EXEC_RUNNING:5,EXEC_OK:6,EXEC_ERROR:7,PUBLISHED:8},t.FLOW_NODE_STATUS={CONF_WAIT:10,CONF_OK:11,CONF_ERR:-1,EXEC_WAIT:20,EXEC_RUNNING:21,EXEC_OK:22,EXEC_ERR:-2},t.PICK_NODE_TYPE={DATA_SOURCE:"datasource",FEATURE:"feature",ARITH:"algorithm",ESTIMATE:"estimate",COMPONENT:"component",MODEL:"model",DEFAULT:"default"},t.EXEC_PREDICT_NODE_ID="predict_data"},"./src/module/dragDrop/events.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./node_modules/node-libs-browser/node_modules/events/events.js");t.default=new n.EventEmitter},"./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.UlDom=void 0;var n=g(a("./node_modules/antd/es/badge/index.js")),o=g(a("./node_modules/antd/es/switch/index.js")),s=g(a("./node_modules/antd/es/button/index.js")),r=g(a("./node_modules/babel-runtime/helpers/jsx.js")),i=g(a("./node_modules/babel-runtime/helpers/extends.js")),d=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/badge/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/button/style/index.js");var c=a("./node_modules/react/index.js"),p=(g(c),g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/lodash/lodash.js"))),f=a("./node_modules/@ant-design/icons/es/index.js"),m=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./node_modules/react-redux/es/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=t.UlDom=m.default.ul.withConfig({displayName:"KpiModalSelect__UlDom",componentId:"wvo99m-0"})(["padding-left:0px;float:left;width:100%;list-style-type:none;.badge{cursor:pointer;display:inline;float:left;padding:10px 15px 10px 10px;text-align:center;background:#e5e9f2;border-radius:5px;margin:0px 10px 10px 0px;&:hover{background:#a2b0c4;cursor:pointer;}.icon{margin-right:3px;font-size:11px;color:#395377;cursor:pointer;margin-left:5px;&:hover{color:red;cursor:pointer;}}}"]),_=(0,r.default)(f.PlusCircleOutlined,{}),y=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.setSelectedIds=function(e){for(var t=[],a=0;a<e.length;a++)t.push(e[a].replace(n.suffix,""));return t},n.delSelectedIndi=function(e){var t=n.props.modelData,a=n.setSelectedIds(n.props.selectedIds);a.splice(p.default.indexOf(a,e),1);var o=n;t.output.splice(p.default.findIndex(t.output,(function(t){return t.field==e+o.suffix})),1),t.field.splice(p.default.indexOf(t.field,e),1),n.props.onChange((0,i.default)({},t),[].concat(a))},n.state={},n.suffix=a.suffix?a.suffix:"",n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.inputKpiData,i=t.buttonName,d=t.viewMode,l=t.isReplace,u=this.setSelectedIds(this.props.selectedIds);return(0,r.default)("div",{style:{overflow:"hidden"}},void 0,!d&&(0,r.default)("ul",{style:{listStyleType:"none",padding:0,display:"inline-flex"}},void 0,(0,r.default)("li",{},void 0,(0,r.default)(s.default,{style:{marginBottom:20},size:"small",icon:_,onClick:this.props.addIndiClick},void 0,i||"\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5")),this.suffix&&(0,r.default)("li",{style:{marginLeft:15}},void 0,(0,r.default)(o.default,{checkedChildren:"\u662f",unCheckedChildren:"\u5426",checked:"1"===l,onChange:this.props.onChangeSwitch}),(0,r.default)(f.QuestionCircleOutlined,{style:{marginLeft:10,fontSize:14},title:"\u662f\u5426\u8986\u76d6\u539f\u5b57\u6bb5"}))),u.length>0?(0,r.default)(v,{},void 0,p.default.map(a,(function(t){return-1!==p.default.indexOf(e.props.modelData.field,t.field)&&(0,r.default)(n.default,{className:"badge"},t.field,(0,r.default)("span",{style:{cursor:"pointer"}},void 0,t.name),!d&&(0,r.default)(f.CloseOutlined,{onClick:function(){return e.delSelectedIndi(t.field)},title:"\u5220\u9664",className:"icon"}))}))):(0,r.default)(v,{style:{textAlign:"center",fontSize:14}},void 0,"\u672a\u9009\u62e9\u5b57\u6bb5"))},t}(c.PureComponent);t.default=(0,h.connect)((function(){return{}}))(y)},"./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelectInput.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.UlDom=void 0;var n=v(a("./node_modules/antd/es/input-number/index.js")),o=v(a("./node_modules/antd/es/switch/index.js")),s=v(a("./node_modules/antd/es/button/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/babel-runtime/helpers/extends.js")),d=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/button/style/index.js");var c=a("./node_modules/react/index.js"),p=(v(c),v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/lodash/lodash.js"))),f=v(a("./src/components/auth/viewModule.jsx")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./node_modules/react-redux/es/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=t.UlDom=h.default.ul.withConfig({displayName:"KpiModalSelectInput__UlDom",componentId:"sc-182pmy6-0"})(["padding-left:0px;float:left;width:100%;list-style-type:none;.badge{width:200px;cursor:pointer;display:inline;float:left;padding:7px;background:#e5e9f2;border-radius:5px;margin:0px 10px 10px 0px;}"]),y=(0,r.default)(m.PlusCircleOutlined,{}),b=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.setSelectedIds=function(e){for(var t=[],a=0;a<e.length;a++)t.push(e[a].replace(n.suffix,""));return t},n.delSelectedIndi=function(e){var t=n.props.modelData,a=n,o=n.setSelectedIds(n.props.selectedIds);o.splice(p.default.indexOf(o,e),1),t.output.splice(p.default.findIndex(t.output,(function(t){return t.field==e+a.suffix})),1),delete t.discrete[e],t.field.splice(p.default.indexOf(t.field,e),1),n.props.onChange((0,i.default)({},t),[].concat(o))},n.getNameBlur=function(e,t){var a=n.props.modelData,o=n.setSelectedIds(n.props.selectedIds);a.discrete[t]=e,n.props.onChange((0,i.default)({},a),[].concat(o))},n.suffix=n.props.suffix?n.props.suffix:"",n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.inputKpiData,i=t.viewMode,d=t.isReplace,l=this.setSelectedIds(this.props.selectedIds);return(0,r.default)("div",{},void 0,!i&&(0,r.default)("ul",{style:{listStyleType:"none",padding:0,display:"inline-flex"}},void 0,(0,r.default)("li",{},void 0,(0,r.default)(s.default,{style:{marginBottom:20},size:"small",icon:y,onClick:this.props.addIndiClick},void 0,"\u9009\u62e9\u7b97\u6cd5\u5b57\u6bb5")),this.suffix&&(0,r.default)("li",{style:{marginLeft:15}},void 0,(0,r.default)(o.default,{checkedChildren:"\u662f",unCheckedChildren:"\u5426",checked:"1"===d,onChange:this.props.onChangeSwitch}),(0,r.default)(m.QuestionCircleOutlined,{style:{marginLeft:10,fontSize:14},title:"\u662f\u5426\u8986\u76d6\u539f\u5b57\u6bb5"}))),l.length>0?(0,r.default)(_,{},void 0,p.default.map(a,(function(t,a){return-1!==p.default.indexOf(e.props.modelData.field,t.field)&&(0,r.default)("div",{style:{marginBottom:10}},t.field,(0,r.default)(f.default,{data:t.name,title:"\u8ba1\u7b97\u5b57\u6bb5"+(a+1),viewMode:e.props.viewMode,param:e.props.modelData&&e.props.modelData.discrete[t.field]+"",paramTitle:"\u5206\u7bb1\u4e2a\u6570"},void 0,(0,r.default)("span",{title:t.name,className:"badge"},void 0,t.name.length>25?t.name.substring(0,25)+"...":t.name),(0,r.default)(n.default,{title:"\u5206\u7bb1\u4e2a\u6570\uff08\u7528\u4e8e\u5c06\u8fde\u7eed\u6570\u636e\u5206\u6210\u4e0d\u540c\u7684\u6bb5\uff0c\u53ef\u8f93\u5165\u6b63\u6574\u6570\uff09",min:1,value:e.props.modelData&&e.props.modelData.discrete[t.field],style:{width:"80px"},placeholder:"\u8f93\u5165\u5206\u7bb1\u4e2a\u6570",onChange:function(a){return e.getNameBlur(a,t.field)}})),!i&&(0,r.default)("span",{style:{cursor:"pointer",marginLeft:10,color:"red"},onClick:function(){return e.delSelectedIndi(t.field)}},void 0,"\u5220\u9664"))}))):(0,r.default)(_,{style:{textAlign:"center",fontSize:14}},void 0,"\u672a\u9009\u62e9\u5b57\u6bb5"))},t}(c.PureComponent);t.default=(0,g.connect)((function(){return{}}))(b)},"./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.UlDom=t.KpiModalViewDom=void 0;var n=g(a("./node_modules/antd/es/badge/index.js")),o=g(a("./node_modules/antd/es/checkbox/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/babel-runtime/helpers/extends.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/badge/style/index.js"),a("./node_modules/antd/es/checkbox/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var c=a("./node_modules/react/index.js"),p=(g(c),g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/lodash/lodash.js"))),f=a("./node_modules/@ant-design/compatible/es/index.js"),m=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./node_modules/react-redux/es/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.Search,_=t.KpiModalViewDom=m.default.div.withConfig({displayName:"KpiModalView__KpiModalViewDom",componentId:"sc-1uwm1k5-0"})(["padding-bottom:20px;overflow:auto;"]),y=m.default.div.withConfig({displayName:"KpiModalView__SearchBarWrapper",componentId:"sc-1uwm1k5-1"})(["display:flex;float:right;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),b=t.UlDom=m.default.ul.withConfig({displayName:"KpiModalView__UlDom",componentId:"sc-1uwm1k5-2"})(["margin-top:20px;padding-left:10px;float:left;width:100%;list-style-type:none;.badge{cursor:pointer;display:inline;float:left;padding:10px 15px 10px 10px;text-align:center;background:#e5e9f2;border-radius:5px;margin:0px 10px 10px 0px;&:hover{background:#a2b0c4;cursor:pointer;}}.noBadge{display:inline;float:left;padding:10px 15px 10px 10px;text-align:center;background:#f4f4f4;border-radius:5px;margin:0px 10px 10px 0px;}"]),x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.setSelectedIds=function(e){for(var t=[],a=0;a<e.length;a++)t.push(e[a].replace(n.suffix,""));return t},n.doSearch=function(e){var t=[],a=n.props,o=a.dataType,s=a.inputKpiData;if(e)for(var r=o&&o.length>0?n.filtrateData(n.state.kpiData,"yes"):n.state.kpiData,i=0;i<r.length;i++){r[i].name.toUpperCase().split(e.toUpperCase()).length>1&&t.push(r[i])}else t=o&&o.length>0?n.filtrateData(s,"yes"):s;n.setState({kpiData:t})},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.selectKpiClick=function(e){var t=n.props,a=t.dataType,o=t.inputKpiData,s=n.state.selectedIds;-1!==p.default.indexOf(s,e.field)?s.splice(p.default.indexOf(s,e.field),1):s.push(e.field);var r=a&&a.length>0?n.filtrateData(o,"yes"):o;n.setState({selectedIds:[].concat(s),checkAll:r.length===s.length,indeterminate:!!s.length&&s.length<r.length});var i=p.default.filter(n.props.inputKpiData,(function(e){return-1!==p.default.indexOf(s,e.field)}));n.setOnChange([].concat(i),s)},n.checkboxOnChange=function(e){var t=[],a=n.props,o=a.dataType,s=a.inputKpiData,r=o&&o.length>0?n.filtrateData(s,"yes"):s;if(e.target.checked){for(var i=0;i<r.length;i++)t.push(r[i].field);n.setState({selectedIds:[].concat(t),checkAll:e.target.checked,indeterminate:!1}),n.setOnChange([].concat(r),t)}else n.setState({selectedIds:[].concat(t),checkAll:e.target.checked,indeterminate:!1}),n.setOnChange([],t)},n.setOnChange=function(e,t){var a={};a.output=n.suffix?[].concat(n.props.inputKpiData):[],a.field=[];for(var o=0;o<e.length;o++){var s=(0,r.default)({},e[o]);a.field.push(s.field),s.field=s.field+n.suffix,s.name=s.name+n.suffix,s.type=n.suffix?"2":s.type,a.output.push(s)}n.props.onChange(a,[].concat(t))},n.filtrateData=function(e,t){var a=[],o=n.props.dataType,s=[];if(o)for(var r=0;r<o.length;r++)s.push(o[r].toUpperCase());for(var i=0;i<e.length;i++)""!==p.default.get(e[i],"dataType","")&&("yes"===t?-1!==p.default.indexOf(s,p.default.get(e[i],"dataType","").toUpperCase())&&a.push(e[i]):-1===p.default.indexOf(s,p.default.get(e[i],"dataType","").toUpperCase())&&a.push(e[i]));return a};var o=a.dataType&&a.dataType.length>0?n.filtrateData(a.inputKpiData,"yes"):a.inputKpiData;return n.suffix=a.suffix?a.suffix:"",n.state={selectedIds:a.selectedIds?n.setSelectedIds(a.selectedIds):[],kpiData:o,noKpiData:a.dataType&&a.dataType.length>0?n.filtrateData(a.inputKpiData,"no"):[],indeterminate:!!a.selectedIds.length&&a.selectedIds.length<o.length,checkAll:o.length===a.selectedIds.length&&0!==o.length},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.kpiData,r=t.selectedIds,i=t.noKpiData,d=this.props.dataType,l=[];if(d)for(var u=0;u<d.length;u++)l.push(d[u].toUpperCase());return(0,s.default)(_,{},void 0,(0,s.default)(o.default,{checked:this.state.checkAll,indeterminate:this.state.indeterminate,style:{marginLeft:10},onChange:this.checkboxOnChange},void 0,"\u5168\u9009"),(0,s.default)(y,{className:"search-bar"},void 0,(0,s.default)(v,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",size:"small",onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})),(0,s.default)("div",{style:{marginTop:l&&20}},void 0,l&&l.length>0&&(0,s.default)("span",{style:{marginLeft:10}},void 0,"\u53ef\u7528\u5b57\u6bb5"),a.length>0?(0,s.default)(b,{},void 0,p.default.map(a,(function(t,a){return t.name&&t.field&&(0,s.default)(n.default,{className:"badge",onClick:function(){return e.selectKpiClick(t)},count:(0,s.default)(f.Icon,{style:{marginRight:5,fontSize:14},type:-1!==p.default.indexOf(r,t.field)?"check-circle":"",theme:"twoTone",twoToneColor:"#52c41a"})},a,(0,s.default)("div",{style:{cursor:"pointer"}},void 0,t.name))}))):(0,s.default)(b,{style:{textAlign:"center",fontSize:14}},void 0,"\u672a\u67e5\u8be2\u5230\u6570\u636e")),l&&l.length>0&&(0,s.default)("div",{style:{marginTop:20}},void 0,(0,s.default)("span",{style:{marginLeft:10}},void 0,"\u4e0d\u53ef\u7528\u5b57\u6bb5"),i.length>0?(0,s.default)(b,{},void 0,p.default.map(i,(function(e,t){return(0,s.default)(n.default,{className:"noBadge"},t,(0,s.default)("span",{},void 0,e.name))}))):(0,s.default)(b,{style:{textAlign:"center",fontSize:14}},void 0,"\u672a\u67e5\u8be2\u5230\u6570\u636e")))},t}(c.PureComponent);t.default=(0,h.connect)((function(){return{}}))(x)},"./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.Panel=void 0;var n=i(a("./node_modules/babel-runtime/helpers/jsx.js")),o=i(a("./node_modules/antd/es/collapse/index.js"));a("./node_modules/antd/es/collapse/style/index.js");i(a("./node_modules/react/index.js")),i(a("./node_modules/prop-types/index.js"));var s=i(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),r=a("./node_modules/@ant-design/icons/es/index.js");function i(e){return e&&e.__esModule?e:{default:e}}t.Panel=o.default.Panel;var d=(0,s.default)(o.default).withConfig({displayName:"CollapsePanel__CollapseStyle",componentId:"sc-15u9anh-0"})([".ant-collapse-header{cursor:pointer !important;user-select:none;font-size:14px !important;}> .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow{left:5px !important;}> .ant-collapse-item > .ant-collapse-header{padding-left:30px !important;}.ant-form-item{margin-bottom:10px;}"]);t.default=function(e){var t=e.children;return(0,n.default)(d,{bordered:!1,expandIconPosition:"left",defaultActiveKey:_.map(_.isArray(t)?t:[t],(function(e){return e&&e.key})),expandIcon:function(e){var t=e.isActive;return(0,n.default)(r.CaretRightOutlined,{rotate:t?90:0})}},void 0,t)}},"./src/module/dragDrop/flow_arrange/node_config/comp_config/NodeConfigHoc.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),s=m(a("./node_modules/babel-runtime/helpers/extends.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js")),l=a("./node_modules/react/index.js"),u=m(l),c=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/lodash/lodash.js"))),p=a("./src/components/exception/index.js"),f=a("./src/module/dragDrop/constant.js");function m(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(!e)return null;var t=function(t){function a(e){(0,r.default)(this,a);var n=(0,i.default)(this,t.call(this,e));return n.handleWrappedRef=function(e){n.comp=e},n.handleCompConfigChange=function(e){n.props.onChangeConfig((0,s.default)({},e))},n.validateNodeConfigStatus=function(){var e=n.comp||n.ref.current,t=!0;c.default.has(e,"validate")&&c.default.isFunction(e.validate)?t=e.validate().validate:console.warn("\u672a\u5b9a\u4e49\u7ec4\u4ef6\u7684validate\u51fd\u6570");return!1===t?f.FLOW_NODE_STATUS.CONF_ERR:f.FLOW_NODE_STATUS.CONF_OK},n.ref=u.default.createRef(),n}return(0,d.default)(a,t),a.prototype.componentDidMount=function(){c.default.isEmpty(c.default.get(this.props,"data.config"))||this.validateNodeConfigStatus()},a.prototype.render=function(){var t=this.props,a=t.data,r=t.input,i=t.setting,d=(0,o.default)(t,["data","input","setting"]);return console.log("::::::\u4f20\u5165\u914d\u7f6e\u8282\u70b9\u53c2\u6570::::::"),console.log({nodeType:a.type,input:r||[],configData:a.config||{},inputVariable:a.input||[],outputVariable:a.output||[],setting:i||{}}),(0,n.default)("div",{className:"node-config"},void 0,(0,n.default)(p.ErrorBoundary,{},void 0,u.default.createElement(e,(0,s.default)({},d,{ref:this.ref,wrappedComponentRef:this.handleWrappedRef,nodeType:a.type,inputVariable:a.input||[],outputVariable:a.output||[],input:r||[],configData:c.default.cloneDeep(a.config)||{},onChange:this.handleCompConfigChange,setting:i,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\dragDrop\\flow_arrange\\node_config\\comp_config\\NodeConfigHoc.jsx",lineNumber:51}}))))},a}(l.Component);return t.defaultProps={data:{}},t}},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/AprioriConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/@ant-design/icons/es/index.js"),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),f=_(p),m=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/AprioriDataParam.jsx")),h=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArithmeticParm.jsx")),g=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/style.jsx"),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=(0,n.default)(l.QuestionCircleOutlined,{className:"icon",title:"Apriori\u7b97\u6cd5 MinSupport\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a(0,1)\u7684\u6d6e\u70b9\u6570\u3001\r\n MinConfidence\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a(0,1)\u7684\u6d6e\u70b9\u6570\u3001\r\n MinLift\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>=1\u7684\u5c0f\u6570\u3001\r\n MaxLength\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a\u5927\u4e8e1\u6574\u6570"}),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e={},t=!0;return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(d.default.isFunction(o)){var s=o.call();if(n.moduleData=Object.assign(n.moduleData,s.moduleData),!0===!s.validate)return t=!1,void(e[a]=s.errorMsg)}})),n.props.onChange(n.moduleData),{validate:t,errorMsg:""}},n.genExtra=function(){return y},n.state={whetherLook:"true"===a.viewMode},n.mapArray=[],n.modelData="{}"===JSON.stringify(a.configData)?{itemField:"",userField:"",algParam:{},output:[]}:(0,v.clearConfigData)(d.default.get(a.input[0],"params",[]),a.configData,["itemField","userField"]),n.moduleData={},n.validateFuncs={},n.input=d.default.get(a.input[0],"params",[]),n}return(0,r.default)(t,e),t.validateConfig=function(e,t){return""===d.default.get(t,"itemField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u7269\u54c1\u5b57\u6bb5"}:""===d.default.get(t,"userField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u7528\u6237\u5b57\u6bb5"}:(0,v.verificationParms)(d.default.get(e[0],"params",[]),t,["itemField","userField"])?{validate:!0}:{validate:!1,message:"\u8282\u70b9\u8f93\u5165\u6709\u53d8\u5316\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e"}},t.prototype.render=function(){return(0,n.default)(g.PanelIconStyle,{},void 0,(0,n.default)(f.default,{},void 0,(0,n.default)(p.Panel,{header:"\u6570\u636e\u53c2\u6570"},"dataParm",(0,n.default)(m.default,{viewMode:this.props.viewMode,modelData:this.modelData,input:this.input,setValidateFunc:this.setValidateFunc})),(0,n.default)(p.Panel,{header:"\u7b97\u6cd5\u53c2\u6570",extra:this.genExtra()},"Apriori",(0,n.default)(h.default,{viewMode:this.props.viewMode,arithmeticId:this.props.nodeType,algParam:this.modelData.algParam,setValidateFunc:this.setValidateFunc}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/ArimaConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/@ant-design/icons/es/index.js"),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),f=_(p),m=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArimaDataParam.jsx")),h=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArithmeticParm.jsx")),g=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/style.jsx"),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=(0,n.default)(l.QuestionCircleOutlined,{className:"icon",title:"Arima\u7b97\u6cd5 p:\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>=0\u7684\u6574\u6570\u3001\r\n d\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>=0\u7684\u6574\u6570\u3001\r\n q\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>=0\u7684\u6574\u6570"}),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e={},t=!0;return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(d.default.isFunction(o)){var s=o.call();if(n.moduleData=Object.assign(n.moduleData,s.moduleData),!0===!s.validate)return t=!1,void(e[a]=s.errorMsg)}})),n.props.onChange(n.moduleData),{validate:t,errorMsg:""}},n.genExtra=function(){return y},n.state={whetherLook:"true"===a.viewMode},n.mapArray=[],n.modelData="{}"===JSON.stringify(a.configData)?{timeField:"",predictField:"",algParam:{},output:[]}:(0,v.clearConfigData)(d.default.get(a.input[0],"params",[]),a.configData,["timeField","predictField"]),n.moduleData={},n.validateFuncs={},n.input=d.default.get(a.input[0],"params",[]),n}return(0,r.default)(t,e),t.validateConfig=function(e,t){return""===d.default.get(t,"timeField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u65f6\u95f4\u5b57\u6bb5"}:""===d.default.get(t,"predictField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u9884\u6d4b\u5b57\u6bb5"}:(0,v.verificationParms)(d.default.get(e[0],"params",[]),t,["timeField","predictField"])?{validate:!0}:{validate:!1,message:"\u8282\u70b9\u8f93\u5165\u6709\u53d8\u5316\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e"}},t.prototype.render=function(){return(0,n.default)(g.PanelIconStyle,{},void 0,(0,n.default)(f.default,{},void 0,(0,n.default)(p.Panel,{header:"\u6570\u636e\u53c2\u6570"},"dataParm",(0,n.default)(m.default,{viewMode:this.props.viewMode,modelData:this.modelData,input:this.input,setValidateFunc:this.setValidateFunc})),(0,n.default)(p.Panel,{header:"\u7b97\u6cd5\u53c2\u6570",extra:this.genExtra()},"Arima",(0,n.default)(h.default,{viewMode:this.props.viewMode,arithmeticId:this.props.nodeType,algParam:this.modelData.algParam,setValidateFunc:this.setValidateFunc}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/C5.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/@ant-design/icons/es/index.js"),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),f=_(p),m=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/DataParm.jsx")),h=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArithmeticParm.jsx")),g=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/style.jsx"),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=(0,n.default)(l.QuestionCircleOutlined,{className:"icon",title:"\u51b3\u7b56\u6811\u7b97\u6cd5 SplitCrit\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4: 'Gini' | 'Entropy'\u3001\r\n TreeMaxDepth\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>=1\u7684\u6574\u6570\u3001\r\n TreeLeafMin\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>=1\u7684\u6574\u6570"}),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e={},t=!0;return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(d.default.isFunction(o)){var s=o.call();if(n.moduleData=Object.assign(n.moduleData,s.moduleData),!0===!s.validate)return t=!1,void(e[a]=s.errorMsg)}})),n.props.onChange(n.moduleData),{validate:t,errorMsg:""}},n.genExtra=function(){return y},n.state={},n.modelData="{}"===JSON.stringify(a.configData)?{sampleField:"",positiveValue:"",sampleRatio:"",algParam:{},output:[]}:(0,v.clearConfigData)(d.default.get(a.input[0],"params",[]),a.configData,["sampleField"]),n.input=a.input,n.moduleData={},n.validateFuncs={},n}return(0,r.default)(t,e),t.validateConfig=function(e,t){return""===d.default.get(t,"sampleField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u6807\u7b7e\u5b57\u6bb5"}:""===d.default.get(t,"positiveValue","")?{validate:!1,message:"\u8bf7\u586b\u5199\u6b63\u6837\u672c\u7684\u503c"}:(0,v.verificationParms)(d.default.get(e[0],"params",[]),t,["sampleField"])?{validate:!0}:{validate:!1,message:"\u8282\u70b9\u8f93\u5165\u6709\u53d8\u5316\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e"}},t.prototype.render=function(){return(0,n.default)(g.PanelIconStyle,{},void 0,(0,n.default)(f.default,{},void 0,(0,n.default)(p.Panel,{header:"\u6570\u636e\u53c2\u6570"},"dataParm",(0,n.default)(m.default,{viewMode:this.props.viewMode,modelData:this.modelData,input:this.input,onChange:this.getModelData,setValidateFunc:this.setValidateFunc,disabled:!1,whetherLook:this.state.whetherLook})),(0,n.default)(p.Panel,{header:"\u7b97\u6cd5\u53c2\u6570",extra:this.genExtra()},"AiParm",(0,n.default)(h.default,{viewMode:this.props.viewMode,arithmeticId:this.props.nodeType,algParam:this.modelData.algParam,setValidateFunc:this.setValidateFunc}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/DbscanConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(g(i),g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/@ant-design/icons/es/index.js"),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),f=g(p),m=g(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArithmeticParm.jsx")),h=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/style.jsx");function g(e){return e&&e.__esModule?e:{default:e}}var v=(0,n.default)(l.QuestionCircleOutlined,{className:"icon",title:"DBSCAN\u7b97\u6cd5 Radius\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>0\u7684\u6570\r\n MinNeighNum\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>1\u7684\u6574\u6570\r\n CompDistType\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a'Euclidean'|'Cosine'"}),_=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e={},t=!0;return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(d.default.isFunction(o)){var s=o.call();s.validate?n.moduleData=d.default.assign(n.moduleData,s.moduleData):(t=!1,e[a]=s.errorMsg)}})),n.props.onChange(n.moduleData),{validate:t,errorMsg:""}},n.genExtra=function(){return v},n.state={},n.mapArray=[],n.modelData="{}"===JSON.stringify(a.configData)?{algParam:{},output:[]}:a.configData,n.moduleData={},n.validateFuncs={},n.input=d.default.get(a.input[0],"params",[]),n}return(0,r.default)(t,e),t.validateConfig=function(e,t){return{validate:!0,configData:t}},t.prototype.render=function(){return(0,n.default)(h.PanelIconStyle,{},void 0,(0,n.default)(f.default,{},void 0,(0,n.default)(p.Panel,{header:"\u7b97\u6cd5\u53c2\u6570",extra:this.genExtra()},"AiParm",(0,n.default)(m.default,{viewMode:this.props.viewMode,arithmeticId:this.props.nodeType,algParam:this.modelData.algParam,setValidateFunc:this.setValidateFunc}))))},t}(i.PureComponent);_.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(_))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/Kmeans.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(g(i),g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/@ant-design/icons/es/index.js"),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),f=g(p),m=g(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArithmeticParm.jsx")),h=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/style.jsx");function g(e){return e&&e.__esModule?e:{default:e}}var v=(0,n.default)(l.QuestionCircleOutlined,{className:"icon",title:"Kmeans\u7b97\u6cd5 ClusterNum\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4: \u53d6\u503c\u5927\u4e8e1\u7684\u6574\u6570"}),_=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e={},t=!0;return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(d.default.isFunction(o)){var s=o.call();s.validate?n.moduleData=d.default.assign(n.moduleData,s.moduleData):(t=!1,e[a]=s.errorMsg)}})),n.props.onChange(n.moduleData),{validate:t,errorMsg:""}},n.genExtra=function(){return v},n.state={},n.mapArray=[],n.modelData="{}"===JSON.stringify(a.configData)?{algParam:{},output:[]}:a.configData,n.moduleData={},n.validateFuncs={},n.input=d.default.get(a.input[0],"params",[]),n}return(0,r.default)(t,e),t.validateConfig=function(e,t){return{validate:!0,configData:t}},t.prototype.render=function(){return(0,n.default)(h.PanelIconStyle,{},void 0,(0,n.default)(f.default,{},void 0,(0,n.default)(p.Panel,{header:"\u7b97\u6cd5\u53c2\u6570",extra:this.genExtra()},"AiParm",(0,n.default)(m.default,{viewMode:this.props.viewMode,arithmeticId:this.props.nodeType,algParam:this.modelData.algParam,setValidateFunc:this.setValidateFunc}))))},t}(i.PureComponent);_.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(_))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/LstmConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/@ant-design/icons/es/index.js"),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),f=_(p),m=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArimaDataParam.jsx")),h=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArithmeticParm.jsx")),g=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/style.jsx"),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=(0,n.default)(l.QuestionCircleOutlined,{className:"icon",title:"LSTM\u7b97\u6cd5 LookBack\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>1\u7684\u6574\u6570\u3001\r\n EpochCnt\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>0\u7684\u6574\u6570\u3001\r\n NeuronCnt\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>0\u7684\u6574\u6570(\u5efa\u8bae2\u7684\u500d\u6570)\u3001\r\n BatchSize\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a>0\u7684\u6574\u6570(\u5efa\u8bae2\u7684\u500d\u6570)\u3001\r\n Dropout\uff1a\u53c2\u6570\u53d6\u503c\u8303\u56f4\uff1a(0,1)\u7684\u6d6e\u70b9\u6570\u3001\r\n "}),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e={},t=!0;return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(d.default.isFunction(o)){var s=o.call();if(n.moduleData=Object.assign(n.moduleData,s.moduleData),!0===!s.validate)return t=!1,void(e[a]=s.errorMsg)}})),n.props.onChange(n.moduleData),{validate:t,errorMsg:""}},n.genExtra=function(){return y},n.state={whetherLook:"true"===a.viewMode},n.mapArray=[],n.modelData="{}"===JSON.stringify(a.configData)?{timeField:"",predictField:"",algParam:{},output:[]}:(0,v.clearConfigData)(d.default.get(a.input[0],"params",[]),a.configData,["timeField","predictField"]),n.moduleData={},n.validateFuncs={},n.input=d.default.get(a.input[0],"params",[]),n}return(0,r.default)(t,e),t.validateConfig=function(e,t){return""===d.default.get(t,"timeField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u65f6\u95f4\u5b57\u6bb5"}:""===d.default.get(t,"predictField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u9884\u6d4b\u5b57\u6bb5"}:(0,v.verificationParms)(d.default.get(e[0],"params",[]),t,["timeField","predictField"])?{validate:!0}:{validate:!1,message:"\u8282\u70b9\u8f93\u5165\u6709\u53d8\u5316\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e"}},t.prototype.render=function(){return(0,n.default)(g.PanelIconStyle,{},void 0,(0,n.default)(f.default,{},void 0,(0,n.default)(p.Panel,{header:"\u6570\u636e\u53c2\u6570"},"dataParm",(0,n.default)(m.default,{viewMode:this.props.viewMode,modelData:this.modelData,input:this.input,setValidateFunc:this.setValidateFunc})),(0,n.default)(p.Panel,{header:"\u7b97\u6cd5\u53c2\u6570",extra:this.genExtra()},"Arima",(0,n.default)(h.default,{viewMode:this.props.viewMode,arithmeticId:this.props.nodeType,algParam:this.modelData.algParam,setValidateFunc:this.setValidateFunc}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/RandomForest.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(v(i),v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var u=a("./node_modules/react-redux/es/index.js"),c=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),p=v(c),f=v(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/DataParm.jsx")),m=v(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArithmeticParm.jsx")),h=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/style.jsx"),g=a("./src/utils/dragDropUtil.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e={},t=!0;return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(d.default.isFunction(o)){var s=o.call();if(n.moduleData=Object.assign(n.moduleData,s.moduleData),!0===!s.validate)return t=!1,void(e[a]=s.errorMsg)}})),n.props.onChange(n.moduleData),{validate:t,errorMsg:""}},n.state={whetherLook:"true"===a.viewMode},n.mapArray=[],n.modelData="{}"===JSON.stringify(a.configData)?{sampleField:"",positiveValue:"",sampleRatio:"",algParam:{},output:[]}:(0,g.clearConfigData)(d.default.get(a.input[0],"params",[]),a.configData,["sampleField"]),n.input=a.input,n.moduleData={},n.validateFuncs={},n}return(0,r.default)(t,e),t.validateConfig=function(e,t){return""===d.default.get(t,"sampleField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u6807\u7b7e\u5b57\u6bb5"}:""===d.default.get(t,"positiveValue","")?{validate:!1,message:"\u8bf7\u586b\u5199\u6b63\u6837\u672c\u7684\u503c"}:(0,g.verificationParms)(d.default.get(e[0],"params",[]),t,["sampleField"])?{validate:!0}:{validate:!1,message:"\u8282\u70b9\u8f93\u5165\u6709\u53d8\u5316\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e"}},t.prototype.render=function(){return(0,n.default)(h.PanelIconStyle,{},void 0,(0,n.default)(p.default,{},void 0,(0,n.default)(c.Panel,{header:"\u6570\u636e\u53c2\u6570"},"dataParm",(0,n.default)(f.default,{viewMode:this.props.viewMode,modelData:this.modelData,input:this.input,onChange:this.getModelData,setValidateFunc:this.setValidateFunc,disabled:!1,whetherLook:this.state.whetherLook})),(0,n.default)(c.Panel,{header:"\u7b97\u6cd5\u53c2\u6570"},"RandomForest",(0,n.default)(m.default,{viewMode:this.props.viewMode,arithmeticId:this.props.nodeType,algParam:this.modelData.algParam,setValidateFunc:this.setValidateFunc}))))},t}(i.PureComponent);_.defaultProps={onChange:d.default.noop};t.default=(0,u.connect)((function(){return{}}))(l.Form.create()(_))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/XGBOOST.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(v(i),v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var u=a("./node_modules/react-redux/es/index.js"),c=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),p=v(c),f=v(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/DataParm.jsx")),m=v(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArithmeticParm.jsx")),h=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/style.jsx"),g=a("./src/utils/dragDropUtil.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e={},t=!0;return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(d.default.isFunction(o)){var s=o.call();if(n.moduleData=Object.assign(n.moduleData,s.moduleData),!0===!s.validate)return t=!1,void(e[a]=s.errorMsg)}})),n.props.onChange(n.moduleData),{validate:t,errorMsg:""}},n.state={whetherLook:"true"===a.viewMode},n.mapArray=[],n.modelData="{}"===JSON.stringify(a.configData)?{sampleField:"",positiveValue:"",sampleRatio:"",algParam:{},output:[]}:(0,g.clearConfigData)(d.default.get(a.input[0],"params",[]),a.configData,["sampleField"]),n.input=a.input,n.moduleData={},n.validateFuncs={},n}return(0,r.default)(t,e),t.validateConfig=function(e,t){return""===d.default.get(t,"sampleField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u6807\u7b7e\u5b57\u6bb5"}:""===d.default.get(t,"positiveValue","")?{validate:!1,message:"\u8bf7\u586b\u5199\u6b63\u6837\u672c\u7684\u503c"}:(0,g.verificationParms)(d.default.get(e[0],"params",[]),t,["sampleField"])?{validate:!0}:{validate:!1,message:"\u8282\u70b9\u8f93\u5165\u6709\u53d8\u5316\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e"}},t.prototype.render=function(){return(0,n.default)(h.PanelIconStyle,{},void 0,(0,n.default)(p.default,{},void 0,(0,n.default)(c.Panel,{header:"\u6570\u636e\u53c2\u6570"},"dataParm",(0,n.default)(f.default,{viewMode:this.props.viewMode,modelData:this.modelData,input:this.input,onChange:this.getModelData,setValidateFunc:this.setValidateFunc,disabled:!1,whetherLook:this.state.whetherLook})),(0,n.default)(c.Panel,{header:"\u7b97\u6cd5\u53c2\u6570"},"XGBOOST",(0,n.default)(m.default,{viewMode:this.props.viewMode,arithmeticId:this.props.nodeType,algParam:this.modelData.algParam,setValidateFunc:this.setValidateFunc}))))},t}(i.PureComponent);_.defaultProps={onChange:d.default.noop};t.default=(0,u.connect)((function(){return{}}))(l.Form.create()(_))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/AprioriDataParam.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=a("./node_modules/react/index.js"),l=(p(d),p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/lodash/lodash.js"))),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=p(a("./src/components/auth/viewModule.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=u.Form.Item,m=i.default.Option,h=(0,n.default)(m,{value:""},void 0,"\u8bf7\u9009\u62e9\u7269\u54c1\u5b57\u6bb5"),g=(0,n.default)(m,{value:""},void 0,"\u8bf7\u9009\u62e9\u7528\u6237\u5b57\u6bb5"),v=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.selectChange=function(e,t){n.modelData[e]=t,n.props.form.setFieldsValue({key:t})},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199"}},n.modelData=a.modelData;var r=n.props.setValidateFunc;return l.default.isFunction(r)&&r("arimaDataParam",n.validateFun),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.input;return(0,n.default)(u.Form,{layout:"vertical"},void 0,(0,n.default)(c.default,{data:this.modelData.itemField,selectArray:a,arrayIdKey:"field",arrayIdValue:"name",title:"\u7269\u54c1\u5b57\u6bb5",viewMode:this.props.viewMode},void 0,(0,n.default)(f,{label:"\u9009\u62e9\u7269\u54c1\u5b57\u6bb5"},void 0,t("itemField",{initialValue:this.modelData.itemField,rules:[{required:!0,message:"\u9009\u62e9\u7269\u54c1\u5b57\u6bb5"}]})((0,n.default)(i.default,{onChange:function(t){e.selectChange("itemField",t)},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,h,a.map((function(e){return"1"===e.type&&(0,n.default)(m,{title:e.name,value:e.field},e.field+l.default.uniqueId(),e.name)})))))),(0,n.default)(c.default,{data:this.modelData.userField,selectArray:a,arrayIdKey:"field",arrayIdValue:"name",title:"\u7528\u6237\u5b57\u6bb5",viewMode:this.props.viewMode},void 0,(0,n.default)(f,{label:"\u9009\u62e9\u7528\u6237\u5b57\u6bb5"},void 0,t("userField",{initialValue:this.modelData.userField,rules:[{required:!0,message:"\u9009\u62e9\u7528\u6237\u5b57\u6bb5"}]})((0,n.default)(i.default,{onChange:function(t){e.selectChange("userField",t)},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,g,a.map((function(e){return"1"===e.type&&(0,n.default)(m,{title:e.name,value:e.field},e.field+l.default.uniqueId(),e.name)})))))))},t}(d.PureComponent);t.default=u.Form.create({name:"dsForm"})(v)},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArimaDataParam.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=a("./node_modules/react/index.js"),l=(p(d),p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/lodash/lodash.js"))),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=p(a("./src/components/auth/viewModule.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=u.Form.Item,m=i.default.Option,h=(0,n.default)(m,{value:""},void 0,"\u8bf7\u9009\u62e9\u6807\u7b7e\u5b57\u6bb5"),g=(0,n.default)(m,{value:""},void 0,"\u8bf7\u9009\u62e9\u6807\u7b7e\u5b57\u6bb5"),v=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.selectChange=function(e,t){n.modelData[e]=t,n.props.form.setFieldsValue({key:t})},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199"}},n.modelData=a.modelData;var r=n.props.setValidateFunc;return l.default.isFunction(r)&&r("arimaDataParam",n.validateFun),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.input;return(0,n.default)(u.Form,{layout:"vertical"},void 0,(0,n.default)(c.default,{data:this.modelData.timeField,selectArray:a,arrayIdKey:"field",arrayIdValue:"name",title:"\u65f6\u95f4\u5b57\u6bb5",viewMode:this.props.viewMode},void 0,(0,n.default)(f,{label:"\u9009\u62e9\u65f6\u95f4\u5b57\u6bb5"},void 0,t("timeField",{initialValue:this.modelData.timeField,rules:[{required:!0,message:"\u9009\u62e9\u65f6\u95f4\u5b57\u6bb5"}]})((0,n.default)(i.default,{onChange:function(t){e.selectChange("timeField",t)},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,h,a.map((function(e){return"1"===e.type&&(0,n.default)(m,{title:e.name,value:e.field},e.field+l.default.uniqueId(),e.name)})))))),(0,n.default)(c.default,{data:this.modelData.predictField,selectArray:a,arrayIdKey:"field",arrayIdValue:"name",title:"\u5f85\u9884\u6d4b\u5b57\u6bb5",viewMode:this.props.viewMode},void 0,(0,n.default)(f,{label:"\u9009\u62e9\u5f85\u9884\u6d4b\u5b57\u6bb5"},void 0,t("predictField",{initialValue:this.modelData.predictField,rules:[{required:!0,message:"\u9009\u62e9\u5f85\u9884\u6d4b\u5b57\u6bb5"}]})((0,n.default)(i.default,{onChange:function(t){e.selectChange("predictField",t)},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,g,a.map((function(e){return"1"===e.type&&(0,n.default)(m,{title:e.name,value:e.field},e.field+l.default.uniqueId(),e.name)})))))))},t}(d.PureComponent);t.default=u.Form.create({name:"dsForm"})(v)},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/ArithmeticParm.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/input/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js")),d=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=a("./node_modules/react/index.js"),u=(g(l),g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/lodash/lodash.js"))),c=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/redux/selectors/dataSource.js"),m=a("./src/redux/reducers/dataSource.js"),h=g(a("./src/components/auth/viewModule.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=p.Form.Item,_=d.default.Option,y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.setArithmeticArray=function(e,t){for(var a=[],o=e.size>0?[].concat(e.toJS()):[],s=0;s<o.length;s++){var r={paramKey:o[s].paramKey,defValue:t&&"{}"!==JSON.stringify(n.props.algParam)?t[o[s].paramKey]:o[s].defValue,validValue:o[s].validValue};a.push(r)}return a},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));for(var t={algParam:{}},a=0;a<n.arithmeticArray.length;a++)n.selectArithmeticArray[n.arithmeticArray[a].paramKey]?t.algParam[n.arithmeticArray[a].paramKey]=n.selectArithmeticArray[n.arithmeticArray[a].paramKey]:t.algParam[n.arithmeticArray[a].paramKey]=n.arithmeticArray[a].defValue;return e?{validate:!0,moduleData:t}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u7b97\u6cd5\u53c2\u6570",moduleData:t}},n.onChange=function(e,t){n.selectArithmeticArray[t]=e};var o=a.setValidateFunc;return u.default.isFunction(o)&&o("arithmeticParm",n.validateFun),n.selectArithmeticArray={},n.arithmeticArray=[],a.dispatch(m.dataSourceActions.resetDataParamArithmeticList()),a.dispatch(m.dataSourceActions.getDataParamArithmeticListRequest({viewType:"CREATE",workFlag:null,isUpdate:"",modelId:null,arithmeticId:a.arithmeticId})),n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.form,s=t.algParam,r=t.arithmeticData,i=a.getFieldDecorator;return this.arithmeticArray=this.setArithmeticArray(r,s),(0,o.default)(p.Form,{layout:"vertical"},void 0,this.arithmeticArray.map((function(t,a){return!t.validValue||u.default.includes(t.validValue,"-")?(0,o.default)(h.default,{data:t.defValue,title:t.paramKey,viewMode:e.props.viewMode},a,(0,o.default)(v,{label:t.paramKey},a,i(t.paramKey,{initialValue:t.defValue,rules:[{required:!0,message:t.paramKey+"\u4e0d\u80fd\u4e3a\u7a7a"}]})((0,o.default)(n.default,{onChange:function(a){return e.onChange(a.target.value,t.paramKey)},name:t.paramKey})))):(0,o.default)(h.default,{data:t.defValue,selectArray:u.default.split(t.validValue,","),arrayIdKey:"",arrayIdValue:"",title:t.paramKey,viewMode:e.props.viewMode},a,(0,o.default)(v,{label:t.paramKey},a,i(t.paramKey,{initialValue:t.defValue,rules:[{required:!0,message:"\u8bf7\u9009\u62e9"+t.paramKey}]})((0,o.default)(d.default,{onChange:function(a){return e.onChange(a,t.paramKey)},getPopupContainer:function(e){return e.parentNode},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,u.default.split(t.validValue,",").map((function(e){return(0,o.default)(_,{title:e,value:e},e+u.default.uniqueId(),e)}))))))})))},t}(l.PureComponent);t.default=(0,c.connect)((function(e){return{arithmeticData:(0,f.selectDatasParam)(e)}}))(p.Form.create()(y))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/component/DataParm.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/input-number/index.js")),o=v(a("./node_modules/antd/es/switch/index.js")),s=v(a("./node_modules/antd/es/input/index.js")),r=v(a("./node_modules/babel-runtime/helpers/extends.js")),i=v(a("./node_modules/babel-runtime/helpers/jsx.js")),d=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=v(a("./node_modules/babel-runtime/helpers/inherits.js")),c=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=a("./node_modules/react/index.js"),f=(v(p),v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/lodash/lodash.js"))),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=v(a("./src/components/auth/viewModule.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var _=h.Form.Item,y=c.default.Option,b={marginLeft:"10px"},x={width:"89%"},C={fontSize:"14px",fontWeight:"500"},j=(0,i.default)("span",{style:{display:"inline-block",marginRight:"4px",color:"#f5222d",fontSize:"12px",lineHeight:"1"}},void 0,"*"),S=(0,i.default)(y,{value:""},void 0,"\u8bf7\u9009\u62e9\u6807\u7b7e\u5b57\u6bb5"),I=(0,i.default)(s.default,{placeholder:"\u539f\u59cb\u6570\u636e\u96c6\u6b63\u8d1f\u6837\u672c\u6bd4\u4f8b",allowClear:!0,disabled:!0,style:x}),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.swithChange=function(e){!0===e?n.setState({whetherDisabled:e,whetherInputnumber:"block",whetherInput:"none"}):n.setState({whetherDisabled:e,whetherInputnumber:"none",whetherInput:"block"})},n.selectChange=function(e){n.modelData.sampleField=e,n.props.form.setFieldsValue({sampleField:e})},n.inputChange=function(e,t){"samp"===t?n.modelData.positiveValue=e:n.modelData.sampleRatio=e},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),"block"===n.state.whetherInput&&(n.modelData.sampleRatio=""),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199",moduleData:n.modelData}},n.modelData={sampleField:a.modelData.sampleField?a.modelData.sampleField:"",positiveValue:a.modelData.positiveValue?a.modelData.positiveValue:"",sampleRatio:""!==a.modelData.sampleRatio?a.modelData.sampleRatio:""},n.state={whetherDisabled:""!==n.modelData.sampleRatio,whetherInputnumber:""===n.modelData.sampleRatio?"none":"block",whetherInput:""===n.modelData.sampleRatio?"block":"none"};var o=n.props.setValidateFunc;return f.default.isFunction(o)&&o("DataParm",n.validateFun),n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.input,a=this.props.form.getFieldDecorator,d=t.length>0?t[0].params:[];return(0,i.default)(h.Form,{layout:"vertical"},void 0,(0,i.default)(g.default,{data:this.modelData.sampleField+"",selectArray:d,arrayIdKey:"field",arrayIdValue:"name",title:"\u6807\u7b7e\u5b57\u6bb5",viewMode:this.props.viewMode},void 0,(0,i.default)(_,{},void 0,(0,i.default)("span",{style:{display:"block",marginBottom:9,fontSize:12}},void 0,j,(0,i.default)("span",{style:{color:"#262626"}},void 0,"\u9009\u62e9\u6807\u7b7e\u5b57\u6bb5"),(0,i.default)(m.QuestionCircleOutlined,{style:(0,r.default)({marginLeft:5},C),title:"\u4ece\u6570\u636e\u6e90\u4e2d\u9009\u62e9\u7528\u4e8e\u533a\u5206\u6b63\u8d1f\u6837\u672c\u7684\u5b57\u6bb5\uff0c\u9ed8\u8ba4\u5269\u4f59\u4e3a\u8d1f\u6837\u672c"})),a("sampleField",{initialValue:this.modelData.sampleField,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6807\u7b7e\u5b57\u6bb5"}]})((0,i.default)(c.default,{showSearch:!0,onChange:this.selectChange,style:x,disabled:this.props.disabled,getPopupContainer:function(e){return e.parentNode},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,S,d.map((function(e){return"1"===e.type&&(0,i.default)(y,{title:e.name,value:e.field},e.field+f.default.uniqueId(),e.name)})))))),(0,i.default)(g.default,{data:this.modelData.positiveValue+"",title:"\u6b63\u6837\u672c",viewMode:this.props.viewMode},void 0,(0,i.default)(_,{label:"\u6b63\u6837\u672c\u7684\u503c"},void 0,a("positiveValue",{initialValue:this.modelData.positiveValue,rules:[{required:!0,message:"\u6b63\u6837\u672c\u7684\u503c\u4e0d\u80fd\u4e3a\u7a7a"}]})((0,i.default)(s.default,{onChange:function(t){return e.inputChange(t.target.value,"samp")},allowClear:!0,style:x,disabled:this.props.disabled})))),(0,i.default)(o.default,{disabled:this.props.viewMode,onChange:this.swithChange,style:{marginBottom:"10px"},checkedChildren:"\u5f00",unCheckedChildren:"\u5173",checked:this.state.whetherDisabled}),(0,i.default)(_,{label:"\u8c03\u6574\u6b63\u8d1f\u6837\u4f8b\u6bd4\u4f8b(\u53ef\u9009)",style:{display:this.state.whetherInput}},void 0,I,(0,i.default)(m.QuestionCircleOutlined,{className:"icon",title:"\u53ef\u6839\u636e\u6570\u636e\u4e2d\u5b9e\u9645\u6b63\u6837\u672c\u7684\u6570\u91cf\u8c03\u6574\u8fdb\u5165\u7b97\u6cd5\u7684\u8d1f\u6837\u672c\u6570\u91cf\uff0c\u9ed8\u8ba4\u4e3a\u6570\u636e\u4e2d\u7684\u539f\u59cb\u6bd4\u4f8b",style:(0,r.default)({},b,C)})),(0,i.default)(g.default,{data:this.modelData.sampleRatio?this.modelData.sampleRatio+"":"0",title:"\u8c03\u6574\u6b63\u8d1f\u6837\u4f8b\u6bd4\u4f8b",viewMode:this.props.viewMode},void 0,(0,i.default)(_,{label:"\u8c03\u6574\u6b63\u8d1f\u6837\u4f8b\u6bd4\u4f8b(\u53ef\u9009)",style:{display:this.state.whetherInputnumber}},void 0,a("sampleRatio",{initialValue:this.modelData.sampleRatio?this.modelData.sampleRatio:0,rules:[{required:!1,message:""}]})((0,i.default)(n.default,{style:x,min:0,max:.9,step:.1,onChange:function(t){return e.inputChange(t,"bill")},disabled:this.props.disabled})),(0,i.default)(m.QuestionCircleOutlined,{className:"icon",title:"\u53ef\u6839\u636e\u6570\u636e\u4e2d\u5b9e\u9645\u6b63\u6837\u672c\u7684\u6570\u91cf\u8c03\u6574\u8fdb\u5165\u7b97\u6cd5\u7684\u8d1f\u6837\u672c\u6570\u91cf\uff0c\u9ed8\u8ba4\u4e3a\u6570\u636e\u4e2d\u7684\u539f\u59cb\u6bd4\u4f8b",style:(0,r.default)({},b,C)}))))},t}(p.PureComponent);T.defaultProps={onChange:f.default.noop},t.default=h.Form.create({name:"dsForm"})(T)},"./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/style.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PanelIconStyle=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.PanelIconStyle=s.default.div.withConfig({displayName:"style__PanelIconStyle",componentId:"iwwpqa-0"})([".ant-collapse-extra{float:none !important;display:inline-block;margin-left:20px;}"])},"./src/module/dragDrop/flow_arrange/node_config/comp_config/assessment/ConfusionMatrixConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/react-redux/es/index.js"),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=p(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/assessment/component/AssessmentPublic.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e=!0,t="",a=n.validateFuncs.AssessmentPublic;if(d.default.isFunction(a)){var o=a.call();o.validate?n.moduleData=o.moduleData:(e=!1,t=o.errorMsg)}return n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.modelData="{}"===JSON.stringify(a.configData)?{confField:"",resField:"",threshold:.1}:a.configData,n.state={display:"block"},n.validateFuncs={},n}return(0,r.default)(t,e),t.validateConfig=function(e,t){var a=[];if(e.length>0){for(var n=0;n<e[0].params.length;n++)a.push(e[0].params[n].field);if(-1===d.default.indexOf(a,t.resField))return{validate:!1,message:"\u8282\u70b9\u8f93\u5165\u65e0\u8f93\u51fa"}}return""===d.default.get(t,"resField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u771f\u5b9e\u7ed3\u679c\u5b57\u6bb5"}:d.default.get(t,"threshold","")?{validate:!0}:{validate:!1,message:"\u8bf7\u586b\u5199\u7f6e\u4fe1\u5ea6\u9608\u503c"}},t.prototype.render=function(){return(0,n.default)(c.default,{modelData:this.modelData,display:this.state.display,setValidateFunc:this.setValidateFunc,input:this.props.input})},t}(i.PureComponent);f.defaultProps={onChange:d.default.noop};t.default=(0,l.connect)((function(){return{}}))(u.Form.create()(f))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/assessment/LeftConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/lodash/lodash.js"))),l=a("./node_modules/react-redux/es/index.js"),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=p(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/assessment/component/AssessmentPublic.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e=!0,t="",a=n.validateFuncs.AssessmentPublic;if(d.default.isFunction(a)){var o=a.call();o.validate?n.moduleData=o.moduleData:(e=!1,t=o.errorMsg)}return n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.modelData="{}"===JSON.stringify(a.configData)?{confField:"",resField:""}:a.configData,n.moduleData={},n.validateFuncs={},n}return(0,r.default)(t,e),t.validateConfig=function(e,t){var a=[];if(e.length>0){for(var n=0;n<e[0].params.length;n++)a.push(e[0].params[n].field);if(-1===d.default.indexOf(a,t.resField))return{validate:!1,message:"\u8282\u70b9\u8f93\u5165\u65e0\u8f93\u51fa"}}return""===d.default.get(t,"resField","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u771f\u5b9e\u7ed3\u679c\u5b57\u6bb5"}:{validate:!0}},t.prototype.render=function(){return(0,n.default)(c.default,{modelData:this.modelData,display:"none",setValidateFunc:this.setValidateFunc,input:this.props.input})},t}(i.PureComponent);f.defaultProps={onChange:d.default.noop};t.default=(0,l.connect)((function(){return{}}))(u.Form.create()(f))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/assessment/component/AssessmentPublic.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/input-number/index.js")),o=m(a("./node_modules/antd/es/switch/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js")),l=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=a("./node_modules/react/index.js"),c=(m(u),m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/lodash/lodash.js"))),p=a("./node_modules/react-redux/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");function m(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var h={width:"100%"},g=f.Form.Item,v=l.default.Option,_=(0,s.default)(v,{value:""},void 0,"\u8bf7\u9009\u62e9\u9884\u6d4b\u7ed3\u679c\u5b57\u6bb5"),y=(0,s.default)(v,{value:""},void 0,"\u8bf7\u9009\u62e9\u771f\u5b9e\u7ed3\u679c\u5b57\u6bb5"),b=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.swithChange=function(e){n.setState({whetherDisabled:e})},n.forecastChange=function(e){n.modelData.confField=e},n.realChange=function(e){n.modelData.resField=e},n.numChange=function(e){n.modelData.threshold=e},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),n.state.whetherDisabled||(n.modelData.confField=""),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199"}},n.modelData=a.modelData,n.state={whetherDisabled:""!==n.modelData.confField};var o=n.props.setValidateFunc;return c.default.isFunction(o)&&o("AssessmentPublic",n.validateFun),n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.form,a=e.input,r=t.getFieldDecorator,i=a.length>0?a[0].params:[];return(0,s.default)(f.Form,{layout:"vertical",style:{padding:"10px"}},void 0,(0,s.default)(o.default,{onChange:this.swithChange,style:{marginBottom:"10px"},checkedChildren:"\u5f00",unCheckedChildren:"\u5173",checked:this.state.whetherDisabled}),(0,s.default)(g,{label:"\u9009\u62e9\u9884\u6d4b\u7ed3\u679c\u5b57\u6bb5"},void 0,r("confField",{initialValue:this.modelData.confField,rules:[{required:!!this.state.whetherDisabled,message:"\u8bf7\u9009\u62e9\u9884\u6d4b\u7ed3\u679c\u5b57\u6bb5"}]})((0,s.default)(l.default,{showSearch:!0,onChange:this.forecastChange,disabled:!this.state.whetherDisabled,getPopupContainer:function(e){return e.parentNode},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,_,i.map((function(e){return(0,s.default)(v,{title:e.name,value:e.field},e.field+c.default.uniqueId(),e.name)}))))),(0,s.default)(g,{label:"\u9009\u62e9\u771f\u5b9e\u7ed3\u679c\u5b57\u6bb5"},void 0,r("resField",{initialValue:this.modelData.resField,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u771f\u5b9e\u7ed3\u679c\u5b57\u6bb5"}]})((0,s.default)(l.default,{showSearch:!0,onChange:this.realChange,getPopupContainer:function(e){return e.parentNode},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,y,i.map((function(e){return(0,s.default)(v,{title:e.name,value:e.field},e.field+c.default.uniqueId(),e.name)}))))),(0,s.default)(g,{label:"\u7f6e\u4fe1\u5ea6\u9608\u503c",style:{display:this.props.display}},void 0,r("threshold",{initialValue:this.modelData.threshold,rules:[{required:"block"===this.props.display,message:"\u8bf7\u586b\u5199\u7f6e\u4fe1\u5ea6\u9608\u503c"}]})((0,s.default)(n.default,{style:h,min:.1,max:1,step:.1,onChange:this.numChange,disabled:this.props.disabled}))))},t}(u.PureComponent);b.defaultProps={onChange:c.default.noop};t.default=(0,p.connect)((function(){return{}}))(f.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/dataSource/DataSourceNodeConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataSourceNodeConfigDom=void 0;var n=C(a("./node_modules/babel-runtime/helpers/jsx.js")),o=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=C(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(C(i),C(a("./node_modules/prop-types/index.js")),C(a("./node_modules/lodash/lodash.js"))),l=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=a("./src/redux/reducers/indiSet.js"),m=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),h=C(m),g=a("./src/redux/selectors/dataSource.js"),v=a("./src/redux/selectors/indiSet.js"),_=a("./src/redux/reducers/dataSource.js"),y=C(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/dataSource/component/DataSourcePreview.jsx")),b=C(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/dataSource/component/FilterData.jsx")),x=C(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/dataSource/component/DataSourceConfig.jsx"));function C(e){return e&&e.__esModule?e:{default:e}}var j=t.DataSourceNodeConfigDom=l.default.div.withConfig({displayName:"DataSourceNodeConfig__DataSourceNodeConfigDom",componentId:"ympvqb-0"})([""]),S=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.componentDidMount=function(){"{}"!==JSON.stringify(n.props.configData)&&n.getDatas(),n.props.dispatch(_.dataSourceActions.getSourceDropDownRequest({dsType:"train"}))},n.getDatas=function(){n.modelData.dataSource&&n.modelData.cycle&&(n.props.dispatch(f.indiSetActions.loadIndiListRequest({dsId:n.modelData.dataSource,dsCycle:n.modelData.cycle})),n.props.dispatch(_.dataSourceActions.getDataCyclesListRequest({dsId:n.modelData.dataSource,status:10})))},n.validate=function(){var e=!0,t="";return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(d.default.isFunction(o)){var s=o.call();if(n.moduleData=Object.assign(n.modelData,s.moduleData),!0===!s.validate)return e=!1,void(t=s.errorMsg)}})),"structed_data"!==n.props.nodeType&&(n.modelData.filters=[]),n.modelData.output=n.setOutPut(),n.modelData.output&&0!==n.modelData.output.length||(e=!1,t="\u6ca1\u6709\u8f93\u51fa\u5b57\u6bb5"),n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.clearIndiDataFunc=function(){var e=n.clearFuncs.clearIndiDataFunc;d.default.isFunction(e)&&e.call()},n.setClearIndiDataFunc=function(e,t){n.clearFuncs[e]=t},n.showSource=function(){n.setState({modalVisible:!0})},n.callVisible=function(){n.setState({modalVisible:!1})},n.setDataSource=function(e){var t={};if(e.dataSource&&e.cycle)for(var a=n.props.sourceData.toJS(),o=0;o<a.length;o++)if(a[o].dsId===e.dataSource){t=a[o];break}return t},n.getSourceData=function(e){n.modelData.filters=[];for(var t=0;t<e.length;t++){var a={field:e[t].fieldEnName,sign:e[t].operator,value:e[t].val};n.modelData.filters.push(a)}},n.setModelData=function(e){n.modelData.dataType=e.dataType,n.modelData.dataSource=e.dataSource,n.modelData.cycle=e.cycle},n.setOutPut=function(){for(var e=[],t=n.props.allIndi&&n.props.allIndi.size>0?n.props.allIndi.toJS():[],a=0;a<t.length;a++){var o={field:t[a].val,name:t[a].text,type:"1",dataType:t[a].dataType};e.push(o)}return e},n.formatFilters=function(e,t){var a=[];if(t)for(var n=function(n){var o={fieldId:e[n]&&e[n].field,fieldEnName:e[n]&&e[n].field,fieldCnName:d.default.get(t[d.default.findIndex(t,(function(t){return t.field==e[n].field}))],"name",""),operator:e[n]&&e[n].sign,val:e[n]&&e[n].value};a.push(o)},o=0;o<e.length;o++)n(o);return a},n.state={modalVisible:!1},n.dataSource={},n.validateFuncs={},n.modelData="{}"===JSON.stringify(a.configData)?{dataType:"",dataSource:"",cycle:"",filters:[],output:[]}:a.configData,n.clearFuncs={},n}return(0,r.default)(t,e),t.validateConfig=function(e,t){return""===d.default.get(t,"dataSource","")&&""===d.default.get(t,"cycle","")?{validate:!1,message:"\u6570\u636e\u6e90\u548c\u6570\u636e\u5468\u671f\u672a\u586b\u5199"}:""===d.default.get(t,"output","")?{validate:!1,message:"\u6ca1\u6709\u8f93\u51fa\u5b57\u6bb5"}:{validate:!0}},t.prototype.render=function(){var e=this.props.sourceData.size>0?this.props.sourceData.toJS():[];this.dataSource=e.length>0?this.setDataSource(this.modelData):{};var t={dataType:this.modelData.dataType,dataSource:this.modelData.dataSource,cycle:this.modelData.cycle};return(0,n.default)(j,{},void 0,(0,n.default)(p.ModalView,{viewType:"view",modalTitle:"\u6570\u636e\u6e90\u9884\u89c8",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:this.dataSource.dsId&&(0,n.default)(y.default,{modalVisible:this.state.modalVisible,sourceData:this.dataSource})}),(0,n.default)(h.default,{},void 0,(0,n.default)(m.Panel,{header:"\u6570\u636e\u6e90\u8bbe\u7f6e"},"selectDS",(0,n.default)(x.default,{modelData:t,showSource:this.showSource,nodeType:this.props.nodeType,setValidateFunc:this.setValidateFunc,viewMode:this.props.viewMode,onChange:this.setModelData,clearIndiDataFunc:this.clearIndiDataFunc})),"structed_data"===this.props.nodeType&&(0,n.default)(m.Panel,{header:"\u914d\u7f6e\u6570\u636e\u7b5b\u9009\u89c4\u5219"},"selectIndi",(0,n.default)(b.default,{viewMode:this.props.viewMode,setClearIndiDataFunc:this.setClearIndiDataFunc,onChange:this.getSourceData,filters:this.formatFilters(this.modelData.filters,this.props.configData.output),disabled:!1}))))},t}(i.PureComponent);S.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(e){return{sourceData:(0,g.selectSourceDropDown)(e),allIndi:(0,v.selectAllIndi)(e)}}))(u.Form.create()(S))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/dataSource/component/DataSourceConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataSourceConfigDom=void 0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=a("./node_modules/react/index.js"),l=(v(d),v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/lodash/lodash.js"))),u=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var p=a("./src/redux/reducers/indiSet.js"),f=a("./node_modules/react-redux/es/index.js"),m=v(a("./src/components/auth/viewModule.jsx")),h=a("./src/redux/reducers/dataSource.js"),g=a("./src/redux/selectors/dataSource.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=v(a("./src/components/button/index.js")).default.GhostButton,y=c.Form.Item,b=i.default.Option,x=t.DataSourceConfigDom=u.default.div.withConfig({displayName:"DataSourceConfig__DataSourceConfigDom",componentId:"sc-1fqfnza-0"})([""]),C=(0,n.default)(b,{value:""},void 0,"\u8bf7\u9009\u62e9\u6570\u636e\u6e90"),j=(0,n.default)(b,{value:""},void 0,"\u8bf7\u9009\u62e9\u5173\u8054\u5468\u671f"),S=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u57fa\u7840\u4fe1\u606f"}},n.handleSourceChange=function(e){n.modelData.dataSource=e,n.modelData.cycle="",n.props.form.setFieldsValue({cycle:""});for(var t=n.props.sourceData.toJS(),a=0;a<t.length;a++)if(t[a].dsId===e){n.modelData.dataType=n.props.nodeType;break}n.props.dispatch(p.indiSetActions.resetAll()),e&&n.props.dispatch(h.dataSourceActions.getDataCyclesListRequest({dsId:e,status:10})),n.props.clearIndiDataFunc(),n.props.onChange(n.modelData)},n.handleCycleChange=function(e){n.modelData.cycle=e,n.props.dispatch(p.indiSetActions.loadIndiListRequest({dsId:n.modelData.dataSource,dsCycle:n.modelData.cycle})),n.props.clearIndiDataFunc(),n.props.onChange(n.modelData)},n.showSource=function(){""!==n.modelData.dataSource&&""!==n.modelData.cycle?(n.props.dispatch(h.dataSourceActions.resetDbPreviewData()),n.props.showSource()):message.info("\u8bf7\u9009\u62e9\u6570\u636e\u6e90\u548c\u5468\u671f\uff01")},n.state={},n.modelData=a.modelData;var r=n.props.setValidateFunc;return l.default.isFunction(r)&&r("dataSourceConfig",n.validateFun),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.sourceData.size>0?this.props.sourceData.toJS():[],a=this.props.cyclesData.size>0?this.props.cyclesData.toJS():[],o=this.props.form.getFieldDecorator;return(0,n.default)(x,{},void 0,(0,n.default)(c.Form,{layout:"vertical"},void 0,(0,n.default)(m.default,{data:this.modelData.dataSource,selectArray:t,arrayIdKey:"dsId",arrayIdValue:"name",title:"\u6570\u636e\u6e90",viewMode:this.props.viewMode},void 0,(0,n.default)(y,{label:"\u9009\u62e9\u6570\u636e\u6e90"},void 0,o("dataSource",{initialValue:this.modelData.dataSource,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90"}]})((0,n.default)(i.default,{showSearch:!0,onChange:this.handleSourceChange,getPopupContainer:function(e){return e.parentNode},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,C,t.map((function(e){return(0,n.default)(b,{title:e.name,value:e.dsId},e.dsId+l.default.uniqueId(),e.name)})))))),(0,n.default)(m.default,{data:this.modelData.cycle,selectArray:a,arrayIdKey:"dsCycle",arrayIdValue:"dsCycleDisplay",title:"\u5468 \u671f",viewMode:this.props.viewMode},void 0,(0,n.default)(y,{label:"\u9009\u62e9\u5468\u671f"},void 0,o("cycle",{initialValue:this.modelData.cycle,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u5468\u671f"}]})((0,n.default)(i.default,{onChange:this.handleCycleChange,getPopupContainer:function(e){return e.parentNode}},void 0,j,a.map((function(e){return(0,n.default)(b,{title:e.dsCycleDisplay,value:e.dsCycle},e.id+l.default.uniqueId(),null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")})))))),(0,n.default)(_,{style:{marginTop:10,width:80},action:"VIEW",txt:"\u9884\u89c8",onClick:function(){return e.showSource()}})))},t}(d.PureComponent);t.default=(0,f.connect)((function(e){return{sourceData:(0,g.selectSourceDropDown)(e),cyclesData:(0,g.selectCyclesData)(e)}}))(c.Form.create()(S))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/dataSource/component/DataSourcePreview.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TableTail=t.BottomPreview=void 0;var n=g(a("./node_modules/antd/es/table/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var d=g(a("./node_modules/react/index.js")),l=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=g(a("./node_modules/lodash/lodash.js")),c=a("./src/module/dataMgr/dataSource/util/formatData.js"),p=a("./src/components/index.js"),f=a("./src/redux/selectors/dataSource.js"),m=a("./node_modules/react-redux/es/index.js"),h=a("./src/redux/reducers/dataSource.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=t.BottomPreview=l.default.div.withConfig({displayName:"DataSourcePreview__BottomPreview",componentId:"sc-1re2nrz-0"})(["margin-top:1.1%;.ant-table-thead{th{background:#e0e6ed;}}.ant-table-thead > tr:first-child > th:first-child{border-top-left-radius:4px;}.ant-table table{border-collapse:none;}.ant-table-tbody > tr > td{padding:10px 10px;}.anticon{cursor:pointer;margin-left:10px;}.editable-cell-icon{float:right;padding-top:3px;}.ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:9px 9px;word-break:break-word;}"]),_=t.TableTail=l.default.div.withConfig({displayName:"DataSourcePreview__TableTail",componentId:"sc-1re2nrz-1"})(["background:#e5e9f2;padding-top:0.5%;padding-left:1%;height:30px;span{font-family:MicrosoftYaHei;font-size:12px;color:#475669;letter-spacing:0;}"]),y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.selectPreviewData=function(){var e=n.props.sourceData;if("db"===e.type){e.tableName=(0,c.getCycleTable)(e.sqlSentence?e.sqlSentence:e.tableName,e.cycleMask);var t=u.default.defaultTo(u.default.get(e,"cycleMask"),"");e.cycleMask=t.split("@").length>1?t.split("@")[0]:t,n.props.dispatch(h.dataSourceActions.getDbPreviewDataRequest(e))}else"file"===e.type?n.props.dispatch(h.dataSourceActions.getFilePreviewDataRequest(e)):"ftp"===e.type&&n.props.dispatch(h.dataSourceActions.getFtpPreviewDataRequest(e))},n.getDbColumns=function(){var e=0!==n.props.dbPreviewData.size?n.props.dbPreviewData.toJS():{headers:[]},t=[];if(e.headers.length>0){for(var a=0;a<e.headers.length;a++){var o={};for(var s in e.headers[a])o.title=""===e.headers[a][s]?""+s:""+e.headers[a][s],o.dataIndex=""+s,o.width="150px";t.push(o)}return n.setState({indexNum:e.headers.length}),t}},n.getColumns=function(){var e=0!==n.props.dbPreviewData.size?n.props.dbPreviewData.toJS():[],t=[];if(e.headers.length>0||e.headersByIndex.length>0){for(var a=e.headers.length>0?e.headers:e.headersByIndex,o=0;o<a.length;o++){var s={};for(var r in a[o])s.title=""===a[o][r]?""+r:""+a[o][r],s.dataIndex=""+r,s.width="150px",s.key=u.default.uniqueId();t.push(s)}return n.setState({indexNum:e.headers.length}),t}},n.state={_this:n},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.selectPreviewData()},t.prototype.render=function(){var e=0!==this.props.dbPreviewData.size?this.props.dbPreviewData.toJS():{headers:[]},t="";for(var a in e.headers[0]){t=a;break}return(0,o.default)("div",{},void 0,this.props.loading&&(0,o.default)(p.LoadingIndicator,{style:{marginTop:50},position:"relative"}),t&&void 0!==e.data&&e.data.length>0?(0,o.default)(v,{},void 0,(0,o.default)(n.default,{dataSource:e.data,rowKey:t,scroll:{x:150*this.state.indexNum,y:240},bordered:!0,pagination:!1,columns:"db"===this.props.sourceData.type?this.getDbColumns():this.getColumns()}),(0,o.default)(_,{},void 0,(0,o.default)("span",{},void 0,"\u5171 ",e.headers.length," \u6761\u6307\u6807"))):this.props.loading?"":(0,o.default)("div",{style:{textAlign:"center"}},void 0,"\u6682\u65e0\u6570\u636e"))},t}(d.default.PureComponent);t.default=(0,m.connect)((function(e){return{dbPreviewError:(0,f.selectDbPreviewError)(e),dbPreviewData:(0,f.selectDbPreviewDataList)(e),loading:(0,f.selectDbPreviewDataListLoading)(e)}}))(y)},"./src/module/dragDrop/flow_arrange/node_config/comp_config/dataSource/component/FilterData.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FilterDataDom=void 0;var n=g(a("./node_modules/antd/es/table/index.js")),o=g(a("./node_modules/antd/es/button/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/antd/es/modal/index.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=g(a("./node_modules/react/index.js")),c=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),f=a("./src/components/index.js"),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");function g(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var v=t.FilterDataDom=c.default.div.withConfig({displayName:"FilterData__FilterDataDom",componentId:"y4thvg-0"})(["float:left;width:100%;margin-bottom:30px;"]),y=(0,s.default)(m.PlusCircleOutlined,{}),b=(0,s.default)(m.PlusCircleOutlined,{}),x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.setValidateFunc=function(e,t){n.validateNegFuncs[e]=t},n.clearIndiDataFunc=function(){n.setState({indiDatas:[]})},n.addIndiClick=function(){var e=n.state.indiDatas;n.setState({indiDatas:[].concat(e,[{fieldEnName:"",fieldCnName:"",operator:"",val:""}])})},n.getIndiData=function(e){n.setState({indiDatas:e.concat([])})},n.deleteValiFuncs=function(){n.validateNegFuncs={}},n.validateFun=function(){var e=[],t=[],a=[];Object.keys(n.validateNegFuncs).map((function(t){var a=n.validateNegFuncs[t];if(_.isFunction(a)){var o=a.call();e.push(o)}}));for(var o=0;o<e.length;o++)e[o].validate?t.push(e[o].moduleData):a.push(e[o].moduleData);return{moduleData:t,errorData:a}},n.callVisible=function(){var e=n.validateFun(),t=n;e.errorData.length>0?r.default.confirm({title:"\u8b66\u544a\u63d0\u793a",content:"\u6709\u672a\u586b\u5199\u5b8c\u5168\u7684\u7b5b\u9009\u6570\u636e\uff0c\u662f\u5426\u5ffd\u7565\uff1f",okText:"\u5ffd\u7565",cancelText:"\u53d6\u6d88",onOk:function(){t.props.onChange(e.moduleData),t.setState({modalVisible:!1,indiDatas:e.moduleData})}}):(n.props.onChange(e.moduleData),n.setState({modalVisible:!1}))},n.openVisible=function(){n.setState({modalVisible:!0})},n.state={modalVisible:!1,indiDatas:a.filters.length>0?a.filters:[]},n.columns=[{title:"\u6307\u6807\u540d\u79f0",dataIndex:"fieldCnName",width:"28%",render:function(e){return(0,s.default)(f.LineWrap,{title:e,lineClampNum:1})}},{title:"\u64cd\u4f5c\u7b26",dataIndex:"operator",width:"12%",render:function(e){return(0,s.default)(f.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6307\u6807\u503c",dataIndex:"val",width:"15%",render:function(e){return(0,s.default)(f.LineWrap,{title:e,lineClampNum:1})}}];var o=n.props.setClearIndiDataFunc;return _.isFunction(o)&&o("clearIndiDataFunc",n.clearIndiDataFunc),n.validateNegFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){return(0,s.default)(v,{},void 0,(0,s.default)(f.ModalView,{viewType:"view",modalTitle:"\u7b5b\u9009\u6570\u636e",closable:!0,width:1e3,top:20,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,s.default)("div",{},void 0,(0,s.default)(o.default,{size:"small",style:{width:"120px"},icon:y,onClick:this.addIndiClick},void 0,"\u65b0\u589e\u7b5b\u9009\u6570\u636e"),(0,s.default)(f.IndiSetCondSetting,{type:"openOne",onChange:this.getIndiData,moduleWidth:80,deleteValiFuncs:this.deleteValiFuncs,setValidateFunc:this.setValidateFunc,ulStyle:{display:"block",paddingLeft:"0px",float:"left",width:"100%"},liStyle:{float:"left",width:"50%"},datas:this.state.indiDatas}),(0,s.default)("div",{style:{clear:"both",height:0,fontSize:1,lineHeight:0}}))}),(0,s.default)(o.default,{size:"small",style:{display:this.props.viewMode?"none":"",width:"120px",marginBottom:10},icon:b,onClick:this.openVisible},void 0,"\u6dfb\u52a0\u7b5b\u9009\u6570\u636e"),this.state.indiDatas.length>0&&(0,s.default)(n.default,{dataSource:this.state.indiDatas,rowKey:"fieldCnName",bordered:!0,pagination:!1,columns:this.columns}))},t}(u.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(h.Form.create()(x))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/index.js":function(e,t,a){"use strict";t.__esModule=!0,t.NodeConfigHoc=void 0;var n=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/dataSource/DataSourceNodeConfig.jsx")),o=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataDiscretizeConfig.jsx")),s=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/publicEmpty/EmptyConfig.jsx")),r=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/publicEmpty/EmptyAssessConfig.jsx")),i=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataDistributionConfig.jsx")),d=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataDumbConfig.jsx")),l=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataUnificationConfig.jsx")),u=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataStandardConfig.jsx")),c=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitProject/DataCheckConfig.jsx")),p=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitSelect/TraitSelectConfig.jsx")),f=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitSelect/MessagConfig.jsx")),m=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitSelect/PccConfig.jsx")),h=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitProject/DataSplitIpt.jsx")),g=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitProject/DataSamp.jsx")),v=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/C5.jsx")),_=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/RandomForest.jsx")),y=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/XGBOOST.jsx")),b=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/DbscanConfig.jsx")),x=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/LstmConfig.jsx")),C=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/Kmeans.jsx")),j=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/AprioriConfig.jsx")),S=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/arithmetic/ArimaConfig.jsx")),I=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/ExeForecastConfig.jsx")),T=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/TensorConfig.jsx")),w=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/PythonConfig.jsx")),E=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/assessment/ConfusionMatrixConfig.jsx")),D=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/assessment/LeftConfig.jsx")),M=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/traitDerive/AutoFeatureConfig.jsx")),k=P(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/NodeConfigHoc.jsx"));function P(e){return e&&e.__esModule?e:{default:e}}t.NodeConfigHoc=k.default;var L={EmptyConfig:s.default,LstmConfig:x.default,RandomForest:_.default,XGBOOST:y.default,Kmeans:C.default,DbscanConfig:b.default,TensorConfig:T.default,PythonConfig:w.default,ExeForecastConfig:I.default,MessagConfig:f.default,PccConfig:m.default,DataDumbConfig:d.default,DataStandardConfig:u.default,DataUnificationConfig:l.default,TraitSelectConfig:p.default,DataCheckConfig:c.default,DataSourceNodeConfig:n.default,DataSplitIpt:h.default,DataDiscretizeConfig:o.default,DataSamp:g.default,DataDistributionConfig:i.default,C5:v.default,AprioriConfig:j.default,ArimaConfig:S.default,ConfusionMatrixConfig:E.default,LeftConfig:D.default,EmptyAssessConfig:r.default,AutoFeatureConfig:M.default};t.default=L},"./src/module/dragDrop/flow_arrange/node_config/comp_config/module/ExeForecastConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataStandardConfigDom=void 0;var n=b(a("./node_modules/antd/es/input-number/index.js")),o=b(a("./node_modules/babel-runtime/helpers/jsx.js")),s=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input-number/style/index.js");var d=a("./node_modules/react/index.js"),l=(b(d),b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/lodash/lodash.js"))),u=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var p=a("./node_modules/react-redux/es/index.js"),f=a("./src/components/index.js"),m=b(a("./src/components/auth/viewModule.jsx")),h=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),g=b(h),v=b(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),_=b(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),y=a("./src/utils/dragDropUtil.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=t.DataStandardConfigDom=u.default.div.withConfig({displayName:"ExeForecastConfig__DataStandardConfigDom",componentId:"sc-1jl811o-0"})([""]),C=c.Form.Item,j=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.getUpNodeType=function(){var e="";if(n.props.inputVariable.length>0){var t=n.props.inputVariable.filter((function(e){return"model"===e.type}));t&&t.length>0&&(e=t[0].nodeType)}return e},n.validate=function(){var e=!0,t="";if(-1!==n.props.nodeType.indexOf("_data"))if(0===n.modelData.field.length)e=!1,t="\u8bf7\u9009\u62e9\u8f93\u51fa\u5b57\u6bb5";else{for(var a=[],o=0;o<n.modelData.output.length;o++)-1!==l.default.indexOf(n.modelData.field,n.modelData.output[o].field)&&a.push(n.modelData.output[o]);n.modelData.output=a}return n.props.form.validateFieldsAndScroll((function(t){null!==t&&(e=!1)})),n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){var a=n.modelData.cycleNum;n.modelData.field=e.field,n.modelData.output=e.output,n.modelData.cycleNum=a,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData=e,n.setState({selectedIds:[].concat(t)})},n.cycleNumChange=function(e){n.modelData.cycleNum=e},n.thresholdChange=function(e){n.modelData.threshold=e},n.inputs=l.default.get(a.input[l.default.findIndex(a.input,(function(e){return"dataset"==e.type}))],"params",[]),n.state={modalVisible:!1,inputKpiData:n.inputs.filter((function(e){return"1"===e.type})),selectedIds:a.configData.field?(0,y.setFormatConfigData)(n.inputs,a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{field:[],output:[],cycleNum:0,threshold:0}:(0,y.setFormatConfigData)(n.inputs,a.configData),n.upNodeType=n.getUpNodeType(),n}return(0,i.default)(t,e),t.validateConfig=function(e,t,a){if(-1!==a.indexOf("_data")){if(0===l.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u62e9\u8f93\u51fa\u5b57\u6bb5"};var n=(0,y.verifyArray)(l.default.get(e[l.default.findIndex(e,(function(e){return"dataset"==e.type}))],"params",[]),t.output);return n.validate?{validate:!0}:{validate:!1,message:n.error}}return""===l.default.get(t,"cycleNum","")?{validate:!1,message:"\u672a\u586b\u5199\u9884\u6d4b\u5468\u671f\u4e2a\u6570"}:{validate:!0}},t.prototype.render=function(){var e=this,t=this.state,a=t.inputKpiData,s=t.selectedIds,r=this.props.form.getFieldDecorator;return(0,o.default)(x,{},void 0,(0,o.default)(f.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u9700\u8981\u8f93\u51fa\u7684\u5b57\u6bb5",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,o.default)(v.default,{inputKpiData:a,selectedIds:s,onChange:this.setFieldData})}),(0,o.default)(g.default,{},void 0,-1!==this.props.nodeType.indexOf("_data")&&(0,o.default)(h.Panel,{header:"\u5df2\u9009\u8f93\u51fa\u5b57\u6bb5"},"fieldData",(0,o.default)(_.default,{viewMode:this.props.viewMode,buttonName:"\u9009\u62e9\u8f93\u51fa\u5b57\u6bb5",onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:s,inputKpiData:a,modelData:this.modelData}))),-1!==l.default.indexOf(["arima_python","lstm_python","c5_python","randomforest_python","xgboost_python"],this.upNodeType)&&(0,o.default)(g.default,{},void 0,(0,o.default)(h.Panel,{header:"\u53c2\u6570\u8bbe\u7f6e"},"parameter",(0,o.default)(c.Form,{layout:"vertical"},void 0,-1!==l.default.indexOf(["arima_python","lstm_python"],this.upNodeType)&&(0,o.default)(m.default,{data:this.modelData.cycleNum+"",title:"\u9884\u6d4b\u5468\u671f\u4e2a\u6570",viewMode:this.props.viewMode},void 0,(0,o.default)(C,{label:"\u9884\u6d4b\u5468\u671f\u4e2a\u6570",help:""},void 0,r("cycleNum",{initialValue:this.modelData.cycleNum,rules:[{required:!0}]})((0,o.default)(n.default,{style:{display:"block",width:280},min:1,max:99,onChange:function(t){return e.cycleNumChange(t)}})))),-1!==l.default.indexOf(["c5_python","randomforest_python","xgboost_python"],this.upNodeType)&&(0,o.default)(m.default,{data:this.modelData.threshold+"",title:"\u9608\u503c",viewMode:this.props.viewMode},void 0,(0,o.default)(C,{label:"\u9608\u503c",help:""},void 0,r("threshold",{initialValue:this.modelData.threshold,rules:[{required:!0}]})((0,o.default)(n.default,{style:{display:"block",width:280},min:0,max:1,step:.1,onChange:function(t){return e.thresholdChange(t)}}))))))))},t}(d.PureComponent);j.defaultProps={onChange:l.default.noop};t.default=(0,p.connect)((function(){return{}}))(c.Form.create()(j))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/module/PythonConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PythonConfigDom=void 0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/extends.js")),s=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=_(a("./node_modules/babel-runtime/helpers/inherits.js")),d=a("./node_modules/react/index.js"),l=(_(d),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),u=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=a("./node_modules/react-redux/es/index.js"),p=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),f=_(p),m=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/PythonEnv.jsx")),h=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/DefineCode.jsx")),g=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/OutPutData.jsx")),v=a("./node_modules/@ant-design/compatible/es/index.js");function _(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var y=t.PythonConfigDom=u.default.div.withConfig({displayName:"PythonConfig__PythonConfigDom",componentId:"sc-1onwmlk-0"})(["div.CodeMirror-lines{cursor:text;background:#e7e7e7;min-height:1px;}div.release-content{font-size:14px;}"]),b=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e=!0,t="";return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(l.default.isFunction(o)){var s=o.call();"defineCode"===a?n.modelData.code=s.moduleData:n.modelData.output=l.default.keyBy(s.moduleData,"variable"),!0!==s.validate&&(e=s.validate,t=s.errorMsg)}})),n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.setModelData=function(e){n.modelData=(0,o.default)({},e)},n.state={},n.modelData="{}"===JSON.stringify(a.configData)?{python:"3.4",output:[],code:""}:a.configData,n.modelData.output=l.default.values(n.modelData.output),n.validateFuncs={},n}return(0,i.default)(t,e),t.validateConfig=function(e,t){return 0===l.default.get(t,"code","").length?{validate:!1,message:"\u8bf7\u586b\u5199\u81ea\u5b9a\u4e49\u4ee3\u7801"}:e&&0===e.length?{validate:!1,message:"\u672a\u4f20\u5165\u8fdb\u53c2\u6570"}:{validate:!0}},t.prototype.render=function(){var e=this.props.viewMode;return(0,n.default)(y,{},void 0,(0,n.default)(f.default,{},void 0,(0,n.default)(p.Panel,{header:"\u81ea\u5b9a\u4e49\u4ee3\u7801"},"code",(0,n.default)(h.default,{viewMode:e,setValidateFunc:this.setValidateFunc,inputVariable:this.props.inputVariable,modelData:(0,o.default)({},this.modelData)})),(0,n.default)(p.Panel,{header:"\u8fd0\u884c\u73af\u5883"},"fieldData",(0,n.default)(m.default,{viewMode:e,onChange:this.setModelData,modelData:(0,o.default)({},this.modelData)})),(0,n.default)(p.Panel,{header:"\u8f93\u51fa\u7ed3\u679c"},"outPutData",(0,n.default)(g.default,{viewMode:e,setValidateFunc:this.setValidateFunc,setting:this.props.setting,output:this.modelData.output}))))},t}(d.PureComponent);b.defaultProps={onChange:l.default.noop};t.default=(0,c.connect)((function(){return{}}))(v.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/module/TensorConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TensorConfigDom=void 0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/extends.js")),s=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=_(a("./node_modules/babel-runtime/helpers/inherits.js")),d=a("./node_modules/react/index.js"),l=(_(d),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),u=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=a("./node_modules/react-redux/es/index.js"),p=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),f=_(p),m=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/TensorFlowEnv.jsx")),h=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/DefineCode.jsx")),g=_(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/OutPutData.jsx")),v=a("./node_modules/@ant-design/compatible/es/index.js");function _(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var y=t.TensorConfigDom=u.default.div.withConfig({displayName:"TensorConfig__TensorConfigDom",componentId:"hrx5ui-0"})(["div.CodeMirror-lines{cursor:text;background:#e7e7e7;min-height:1px;}div.release-content{font-size:14px;}"]),b=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validate=function(){var e=!0,t="";return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(l.default.isFunction(o)){var s=o.call();"defineCode"===a?n.modelData.code=s.moduleData:n.modelData.output=l.default.keyBy(s.moduleData,"variable"),!0!==s.validate&&(e=s.validate,t=s.errorMsg)}})),n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.setModelData=function(e){n.modelData=(0,o.default)({},e)},n.state={},n.modelData="{}"===JSON.stringify(a.configData)?{env:"",tensorflow:"1.4",python:"3.4",code:"",output:[]}:a.configData,n.modelData.output=l.default.values(n.modelData.output),n.validateFuncs={},n}return(0,i.default)(t,e),t.validateConfig=function(e,t){return 0===l.default.get(t,"code","").length?{validate:!1,message:"\u8bf7\u586b\u5199\u81ea\u5b9a\u4e49\u4ee3\u7801"}:e&&0===e.length?{validate:!1,message:"\u672a\u4f20\u5165\u8fdb\u53c2\u6570"}:{validate:!0}},t.prototype.render=function(){var e=this.props.viewMode;return(0,n.default)(y,{},void 0,(0,n.default)(f.default,{},void 0,(0,n.default)(p.Panel,{header:"\u81ea\u5b9a\u4e49\u4ee3\u7801"},"code",(0,n.default)(h.default,{viewMode:e,setValidateFunc:this.setValidateFunc,inputVariable:this.props.inputVariable,modelData:(0,o.default)({},this.modelData)})),(0,n.default)(p.Panel,{header:"\u8fd0\u884c\u73af\u5883"},"fieldData",(0,n.default)(m.default,{viewMode:e,onChange:this.setModelData,modelData:(0,o.default)({},this.modelData)})),(0,n.default)(p.Panel,{header:"\u8f93\u51fa\u7ed3\u679c"},"outPutData",(0,n.default)(g.default,{viewMode:e,setValidateFunc:this.setValidateFunc,setting:this.props.setting,output:this.modelData.output}))))},t}(d.PureComponent);b.defaultProps={onChange:l.default.noop};t.default=(0,c.connect)((function(){return{}}))(v.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/CodeMirrorConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.UlDom=t.CodeMirrorConfigDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=p(a("./node_modules/@uiw/react-codemirror/esm/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/codemirror/keymap/sublime.js"),a("./node_modules/codemirror/theme/eclipse.css");var f=t.CodeMirrorConfigDom=d.default.div.withConfig({displayName:"CodeMirrorConfig__CodeMirrorConfigDom",componentId:"sc-1bgxby7-0"})(["div.CodeMirror-lines{cursor:text;background:#e7e7e7;min-height:1px;}div.release-content{font-size:14px;}"]),m=t.UlDom=d.default.ul.withConfig({displayName:"CodeMirrorConfig__UlDom",componentId:"sc-1bgxby7-1"})(["padding-left:0px;float:left;width:100%;list-style-type:none;.badge{display:inline;float:left;padding:10px 15px 10px 10px;text-align:center;background:#e5e9f2;border-radius:5px;margin:0px 10px 5px 0px;}"]),h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setCode=function(e){var t="";if(e.doc.children)for(var a=0;a<e.doc.children.length;a++)for(var o=e.doc.children[a],s=0;s<o.children.length;s++){for(var r=o.children[s],i=0;i<r.lines.length;i++)r.lines[i].text&&(t+=r.lines[i].text+"\n");t.substring(0,t.length-2)}n.props.onChange(t)},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.code,o=t.inputVariable;return(0,n.default)(f,{},void 0,(0,n.default)(m,{},void 0,(0,n.default)("span",{style:{marginLeft:5,float:"left",marginTop:10,fontSize:14}},void 0,"\u5165\u53c2\uff1a"),_.map(o,(function(e){return(0,n.default)("li",{className:"badge"},e.variable,(0,n.default)("span",{},void 0,e.variable))}))),(0,n.default)("div",{style:{maxHeight:400,height:400}},void 0,(0,n.default)(c.default,{value:a,options:{theme:"eclipse",tabSize:2,keyMap:"sublime",mode:"text/x-mysql",extraKeys:{Ctrl:"autocomplete"},viewportMargin:20},onBlur:function(t){return e.setCode(t)}})))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(u.Form.create()(h))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/DefineCode.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DefineCodeDom=void 0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./src/components/index.js"),p=f(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/CodeMirrorConfig.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=u.Form.Item,h=t.DefineCodeDom=d.default.div.withConfig({displayName:"DefineCode__DefineCodeDom",componentId:"sc-1k40ble-0"})([""]),g=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.setCodeData=function(e){n.setState({codeData:e})},n.onClickInput=function(){n.props.viewMode||n.setState({modalVisible:!0})},n.callVisible=function(){n.setState({modalVisible:!1})},n.validateFun=function(){var e=!0;n.setState({modalVisible:!1});var t=_.get(n.state,"codeData","");t=(t=t.replace(/\ +/g,"")).replace(/[\r\n]/g,"");for(var a=0;a<n.props.inputVariable.length;a++)if(-1===t.indexOf(n.props.inputVariable[a].variable)){e=!1;break}return e?{validate:!0,moduleData:n.state.codeData}:{validate:!1,errorMsg:"\u81ea\u5b9a\u4e49\u4ee3\u7801\u6ca1\u5305\u542b\u5165\u53c2",moduleData:n.state.codeData}},n.state={modalVisible:!1,codeData:a.modelData.code};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("defineCode",n.validateFun),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,n.default)(h,{},void 0,(0,n.default)(c.ModalView,{viewType:"view",modalTitle:"\u81ea\u5b9a\u4e49\u4ee3\u7801",closable:!0,width:1e3,height:500,top:15,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(p.default,{code:this.state.codeData,inputVariable:this.props.inputVariable,onChange:this.setCodeData})}),(0,n.default)(u.Form,{layout:"vertical"},void 0,(0,n.default)(m,{},void 0,e("code",{initialValue:this.state.codeData,rules:[{required:!0}]})((0,n.default)("div",{title:"\u70b9\u51fb\u7f16\u8f91\u4ee3\u7801",style:{textAlign:this.state.codeData?"":"center",maxHeight:150}},void 0,this.state.codeData?(0,n.default)("pre",{onClick:this.onClickInput,className:"release-content",style:{background:"RGB(231, 231, 231)",padding:"10px"},dangerouslySetInnerHTML:{__html:this.state.codeData}}):(0,n.default)("span",{onClick:this.onClickInput,style:{cursor:"pointer",fontSize:14}},void 0,"\u70b9\u51fb\u7f16\u8f91\u4ee3\u7801"))))))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(u.Form.create()(g))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/OutPutData.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.OutPutDataDom=void 0;var n=C(a("./node_modules/antd/es/input/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/babel-runtime/helpers/typeof.js")),i=C(a("./node_modules/babel-runtime/helpers/extends.js")),d=C(a("./node_modules/antd/es/message/index.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js")),p=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=C(a("./node_modules/react/index.js")),m=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(C(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),g=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var y=a("./src/redux/selectors/enumDic.js"),b=C(a("./node_modules/@uiw/react-codemirror/esm/index.js")),x=C(a("./src/components/auth/viewModule.jsx"));function C(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/codemirror/keymap/sublime.js"),a("./node_modules/codemirror/theme/eclipse.css");var j=p.default.Option,S=v.Form.Item,I=t.OutPutDataDom=m.default.div.withConfig({displayName:"OutPutData__OutPutDataDom",componentId:"sc-1pj2jl-0"})(["float:left;width:100%;margin-bottom:30;.ant-advanced-search-form{padding:24px;background:#fbfbfb;border:1px solid #d9d9d9;border-radius:6px;}.ant-advanced-search-form .ant-form-item{display:flex;}.ant-advanced-search-form .ant-form-item-control-wrapper{flex:1;}"]),T=(0,s.default)(g.PlusCircleOutlined,{}),w=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.setPropsOutput=function(e){for(var t=e?[].concat(e):[],a=0;a<t.length;a++)"string"!==typeof t[a].output?t[a].output=JSON.stringify(t[a].output):t[a].output=t[a].output.toString();return t},n.addOutClick=function(){var e=n.props.setting,t=[].concat(n.outPutData);if(n.outPutData.length===e.outNum)d.default.error("\u6700\u591a\u6dfb\u52a0"+e.outNum+"\u6761\u8f93\u51fa\u7ed3\u679c");else{t.push({type:"model",variable:"",output:""}),n.outPutData=t,n.setState({outPutData:t})}},n.delOutClick=function(e){var t=[].concat(n.state.outPutData);t.splice(e,1),n.outPutData=t,n.setState({outPutData:t})},n.handleChange=function(e,t,a){var o=(0,i.default)({},n.outPutData[a]),s=[].concat(n.outPutData);o[t]="output"===t?n.setOutPut(e):e,s[a]=o,n.outPutData=s,"variable"!==t&&"type"!==t||n.setState({outPutData:s})},n.setOutPut=function(e){var t="";if(e.doc.children)for(var a=0;a<e.doc.children.length;a++)for(var n=e.doc.children[a],o=0;o<n.children.length;o++){for(var s=n.children[o],r=0;r<s.lines.length;r++)s.lines[r].text&&(t+=s.lines[r].text+"\n");t.substring(0,t.length-2)}return t},n.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,r.default)(t))||!t)}catch(e){return!1}},n.validateFun=function(){for(var e=!0,t="",a=[].concat(n.outPutData),o=0;o<a.length;o++){if("model"!==a[o].type){a[o].output&&0!==a[o].output.length?n.isJSON(a[o].output)?function(){var e=[];a[o].output=JSON.parse(a[o].output),a[o].output.map((function(t){e.push(Object.assign({},t,{type:"1",name:t.name||t.field}))})),a[o].output=e}():a[o].output=a[o].output:(t="\u8bf7\u586b\u5199\u8f93\u51fa"+o+"\u6570\u636e",e=!1);break}if(!a[o].variable){t="\u8bf7\u586b\u5199\u8f93\u51fa"+o+"\u6a21\u578b\u8def\u5f84",e=!1;break}a[o].output=""}return e?{validate:e,moduleData:a}:{validate:e,errorMsg:t,moduleData:a}},n.state={outPutData:n.setPropsOutput(a.output)},n.outPutData=n.setPropsOutput(a.output);var o=n.props.setValidateFunc;return _.isFunction(o)&&o("output",n.validateFun),n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.outPutData,a=this.props,r=a.outType,i=a.viewMode,d=r.list(),l=JSON.stringify([{field:"\u5b57\u6bb5\u540d1",name:"\u5b57\u6bb5\u63cf\u8ff01",dataType:"\u6570\u636e\u7c7b\u578b:string|int|decimal"},{field:"\u5b57\u6bb5\u540d2",name:"\u5b57\u6bb5\u63cf\u8ff02",dataType:"\u6570\u636e\u7c7b\u578b:string|int|decimal"}],null,4);return(0,s.default)(I,{},void 0,!i&&(0,s.default)(o.default,{style:{marginBottom:10},size:"small",icon:T,onClick:this.addOutClick},void 0,"\u65b0\u589e\u8f93\u51fa\u5b57\u6bb5"),(0,s.default)(v.Form,{style:{marginTop:10},layout:"vertical"},void 0,t.map((function(t,a){return(0,s.default)(S,{},a,(0,s.default)(x.default,{data:t.type,selectArray:d,arrayIdKey:"value",arrayIdValue:"txt",title:"\u8f93\u51fa"+(a+1),viewMode:e.props.viewMode,param:" "+t.variable},void 0,(0,s.default)("span",{style:{fontSize:14,marginRight:20}},void 0,"\u8f93\u51fa",a+1,":"),(0,s.default)(p.default,{value:t.type,size:"small",style:{width:"model"===t.type?230:100,marginBottom:10},onChange:function(t){e.handleChange(t,"type",a)},getPopupContainer:function(e){return e.parentNode}},void 0,d.map((function(e,t){return(0,s.default)(j,{value:e.value},t,e.txt)})))),"dataset"===t.type&&!i&&(0,s.default)(n.default,{style:{marginLeft:5,width:130},value:t.variable,onChange:function(t){e.handleChange(t.target.value,"variable",a)},size:"small",placeholder:"\u8bf7\u586b\u5199\u6570\u636e\u53d8\u91cf\u540d"}),!i&&(0,s.default)(g.CloseCircleOutlined,{title:"\u5220\u9664",style:{marginLeft:10,fontSize:14,color:"red"},onClick:function(){return e.delOutClick(a)}}),"model"===t.type&&!i&&(0,s.default)(n.default,{value:t.variable,onChange:function(t){e.handleChange(t.target.value,"variable",a)},size:"small",placeholder:"\u8bf7\u586b\u5199\u6a21\u578b\u53d8\u91cf\u540d"}),"dataset"===t.type&&(0,s.default)(x.default,{data:t.output,viewMode:e.props.viewMode},void 0,(0,s.default)(b.default,{onBlur:function(t){var n=t;e.handleChange(n,"output",a)},style:{marginTop:20},value:t.output?_.isArray(t.output)?JSON.stringify(t.output,null,4):t.output:l,options:{theme:"eclipse",tabSize:2,keyMap:"sublime",mode:"text/x-mysql",extraKeys:{Ctrl:"autocomplete"},viewportMargin:20}})))}))))},t}(f.default.PureComponent);t.default=(0,h.connect)((function(e){return{outType:(0,y.dicGroupHelper)(e,"OUT_TYPE")}}))(v.Form.create()(w))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/PythonEnv.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PythonEnvDom=void 0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=m(a("./node_modules/react/index.js")),l=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=m(a("./src/components/auth/viewModule.jsx")),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/redux/selectors/enumDic.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=i.default.Option,g=p.Form.Item,v=t.PythonEnvDom=l.default.div.withConfig({displayName:"PythonEnv__PythonEnvDom",componentId:"sc-1fd7hvd-0"})(["float:left;width:100%;margin-bottom:30px;ul{padding:0;list-style-type:none;li{padding:10px;span{margin-right:10px;}}}"]),_=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setValue=function(e,t){n.modelData[t]=e,n.props.onChange(n.modelData)},n.state={},n.modelData=n.props.modelData,n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.pythonV,o=t.form,s=a.list(),r=o.getFieldDecorator;return(0,n.default)(v,{},void 0,(0,n.default)(p.Form,{layout:"vertical"},void 0,(0,n.default)(c.default,{data:this.modelData.python,selectArray:s,arrayIdKey:"value",arrayIdValue:"txt",title:"Python\u7248\u672c",viewMode:this.props.viewMode},void 0,(0,n.default)(g,{label:"Python\u7248\u672c"},void 0,r("python",{initialValue:this.modelData.python,rules:[{required:!0,message:"Python\u7248\u672c"}]})((0,n.default)(i.default,{style:{width:250},onChange:function(t){e.setValue(t,"python")}},void 0,s.map((function(e,t){return(0,n.default)(h,{value:e.value},t,e.txt)}))))))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{pythonV:(0,f.dicGroupHelper)(e,"PYTHON_VERSION")}}))(p.Form.create()(_))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/module/component/TensorFlowEnv.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TensorFlowEnvDom=void 0;var n=h(a("./node_modules/antd/es/switch/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js")),d=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=h(a("./node_modules/react/index.js")),u=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/redux/selectors/enumDic.js"),m=h(a("./src/components/auth/viewModule.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var g=d.default.Option,v=p.Form.Item,_=t.TensorFlowEnvDom=u.default.div.withConfig({displayName:"TensorFlowEnv__TensorFlowEnvDom",componentId:"a33per-0"})(["float:left;width:100%;margin-bottom:30px;"]),y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.onSwitchChange=function(e){n.setState({checked:e}),n.modelData.env=e?"GPU":"",n.props.onChange(n.modelData)},n.setValue=function(e,t){n.modelData[t]=e,n.props.onChange(n.modelData)},n.state={checked:!!a.modelData.env},n.modelData=a.modelData,n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.tensorFlowV,s=t.pythonV,r=t.form,i=t.viewMode,l=r.getFieldDecorator,u=a.list(),c=s.list();return(0,o.default)(_,{},void 0,(0,o.default)(p.Form,{layout:"vertical"},void 0,(0,o.default)(v,{},void 0,(0,o.default)("span",{style:{marginRight:10}},void 0,"GPU"),(0,o.default)(n.default,{disabled:i,checked:this.state.checked,onChange:this.onSwitchChange})),(0,o.default)(m.default,{data:this.modelData.tensorflow,selectArray:u,arrayIdKey:"value",arrayIdValue:"txt",title:"TensorFlow\u7248\u672c",viewMode:this.props.viewMode},void 0,(0,o.default)(v,{label:"TensorFlow\u7248\u672c"},void 0,l("tensorflow",{initialValue:this.modelData.tensorflow,rules:[{required:!0,message:"TensorFlow\u7248\u672c"}]})((0,o.default)(d.default,{style:{width:250},onChange:function(t){e.setValue(t,"tensorflow")}},void 0,u.map((function(e,t){return(0,o.default)(g,{value:e.value},t,e.txt)})))))),(0,o.default)(m.default,{data:this.modelData.python,selectArray:c,arrayIdKey:"value",arrayIdValue:"txt",title:"Python\u7248\u672c",viewMode:this.props.viewMode},void 0,(0,o.default)(v,{label:"Python\u7248\u672c"},void 0,l("python",{initialValue:this.modelData.python,rules:[{required:!0,message:"Python\u7248\u672c"}]})((0,o.default)(d.default,{style:{width:250},onChange:function(t){e.setValue(t,"python")}},void 0,c.map((function(e,t){return(0,o.default)(g,{value:e.value},t,e.txt)}))))))))},t}(l.default.PureComponent);t.default=(0,c.connect)((function(e){return{tensorFlowV:(0,f.dicGroupHelper)(e,"TENSORFLOW_VERSION"),pythonV:(0,f.dicGroupHelper)(e,"PYTHON_VERSION")}}))(p.Form.create()(y))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/publicEmpty/EmptyAssessConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.EmptyAssessConfigDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/lodash/lodash.js"))),l=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=t.EmptyAssessConfigDom=l.default.div.withConfig({displayName:"EmptyAssessConfig__EmptyAssessConfigDom",componentId:"sc-1n6ykwn-0"})([""]),m=(0,n.default)(f,{}),h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.validate=function(){var e=!0;return 0===n.props.input.length&&(e=!1),n.props.onChange(),{validate:e,errorMsg:""}},n.state={},n}return(0,r.default)(t,e),t.validateConfig=function(){return{validate:!0}},t.prototype.render=function(){return m},t}(i.PureComponent);h.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(h))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/publicEmpty/EmptyConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.EmptyConfigDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/lodash/lodash.js"))),l=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=t.EmptyConfigDom=l.default.div.withConfig({displayName:"EmptyConfig__EmptyConfigDom",componentId:"j7yd0b-0"})([""]),m=(0,n.default)(f,{}),h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.validate=function(){return{validate:!0,errorMsg:""}},n.state={},n}return(0,r.default)(t,e),t.validateConfig=function(){return{validate:!0}},t.prototype.render=function(){return m},t}(i.PureComponent);h.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(h))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataDiscretizeConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataDiscretizeConfigDom=void 0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),m=_(f),h=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),g=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelectInput.jsx")),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=t.DataDiscretizeConfigDom=l.default.div.withConfig({displayName:"DataDiscretizeConfig__DataDiscretizeConfigDom",componentId:"sc-13wer5p-0"})([""]),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setConfigData=function(e){return e.field=[],Object.keys(e.discrete).forEach((function(t){e.field.push(t)})),e},n.validate=function(){var e=!0,t="";return"{}"===JSON.stringify(n.modelData.discrete)&&(e=!1,t="\u8bf7\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5"),n.modelData.suffix=n.props.setting.suffix,n.modelData.output=(0,v.contrastInput)(n.state.inputKpiData,n.modelData.output,n.props.setting.suffix),n.setOutPutBySwitch(),"{}"===JSON.stringify(n.props.configData)&&delete n.modelData.field,n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.setOutPutBySwitch=function(){var e=n;if("1"===n.modelData.isReplace){var t=n.modelData.output.filter((function(t){return-1===d.default.indexOf(e.modelData.field,t.field)}));n.modelData.output=t}else for(var a=function(t){-1===d.default.findIndex(n.modelData.output,(function(a){return a.field===e.modelData.field[t]}))&&n.modelData.output.push(n.state.inputKpiData[d.default.findIndex(n.state.inputKpiData,(function(a){return a.field===e.modelData.field[t]}))])},o=0;o<n.modelData.field.length;o++)a(o)},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){e.discrete={};for(var a=0;a<e.field.length;a++)e.discrete[e.field[a]]=n.modelData.discrete[e.field[a]]?n.modelData.discrete[e.field[a]]:1;n.modelData.discrete=e.discrete,n.modelData.field=e.field,n.modelData.output=e.output,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData=e,t&&n.setState({selectedIds:[].concat(t)})},n.onChangeSwitch=function(e){n.modelData.isReplace=e?"1":"0",n.setState({isReplace:n.modelData.isReplace})},n.state={isReplace:"{}"===JSON.stringify(a.configData)?"1":a.configData.isReplace,modalVisible:!1,inputKpiData:d.default.get(a.input[0],"params",[]),selectedIds:"{}"===JSON.stringify(a.configData)?[]:(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),n.setConfigData(a.configData)).field},n.modelData="{}"===JSON.stringify(a.configData)?{discrete:{},isReplace:"1",suffix:a.setting.suffix,output:[]}:(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),n.setConfigData(a.configData),a.setting.suffix),n}return(0,r.default)(t,e),t.validateConfig=function(e,t,a,n){if("{}"===JSON.stringify(d.default.get(t,"discrete",{})))return{validate:!1,message:"\u672a\u9009\u8ba1\u7b97\u5b57\u6bb5"};var o=(0,v.verifyArray)(d.default.get(e[0],"params",[]),t.output,n.suffix);return o.validate?{validate:!0}:{validate:!1,message:o.error}},t.prototype.render=function(){var e=this.state,t=e.inputKpiData,a=e.selectedIds,o=e.isReplace;return(0,n.default)(y,{},void 0,(0,n.default)(p.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(h.default,{dataType:this.props.setting.dataType,suffix:this.props.setting.suffix,inputKpiData:t,selectedIds:a,onChange:this.setFieldData})}),(0,n.default)(m.default,{},void 0,(0,n.default)(f.Panel,{header:"\u5df2\u9009\u8ba1\u7b97\u5b57\u6bb5"},"fieldData",(0,n.default)(g.default,{viewMode:this.props.viewMode,suffix:this.props.setting.suffix,onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:a,inputKpiData:t,modelData:this.modelData,isReplace:o,onChangeSwitch:this.onChangeSwitch}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataDistributionConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataStandardConfigDom=void 0;var n=x(a("./node_modules/babel-runtime/helpers/jsx.js")),o=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=x(a("./node_modules/babel-runtime/helpers/inherits.js")),i=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=a("./node_modules/react/index.js"),l=(x(d),x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/lodash/lodash.js"))),u=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=x(a("./src/redux/selectors/enumDic.js")),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./node_modules/react-redux/es/index.js"),m=x(a("./src/components/auth/viewModule.jsx")),h=a("./src/components/index.js"),g=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),v=x(g),_=x(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),y=x(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),b=a("./src/utils/dragDropUtil.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=i.default.Option,j=p.Form.Item,S=t.DataStandardConfigDom=u.default.div.withConfig({displayName:"DataDistributionConfig__DataStandardConfigDom",componentId:"sc-1xpqxe1-0"})([""]),I=(0,n.default)(C,{value:""},void 0,"\u8bf7\u9009\u62e9\u53d8\u6362\u7b97\u6cd5"),T=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.validate=function(){var e=!0,t="";return 0===n.modelData.field.length&&(e=!1,t="\u8bf7\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5"),n.props.form.validateFieldsAndScroll((function(a){null!==a&&(e=!1,t="\u8bf7\u9009\u62e9\u53d8\u6362\u7b97\u6cd5")})),n.modelData.suffix=n.props.setting.suffix,n.modelData.output=(0,b.contrastInput)(n.state.inputKpiData,n.modelData.output,n.props.setting.suffix),n.setOutPutBySwitch(),n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.setOutPutBySwitch=function(){var e=n;if("1"===n.modelData.isReplace){var t=n.modelData.output.filter((function(t){return-1===l.default.indexOf(e.modelData.field,t.field)}));n.modelData.output=t}else for(var a=function(t){-1===l.default.findIndex(n.modelData.output,(function(a){return a.field===e.modelData.field[t]}))&&n.modelData.output.push(n.state.inputKpiData[l.default.findIndex(n.state.inputKpiData,(function(a){return a.field===e.modelData.field[t]}))])},o=0;o<n.modelData.field.length;o++)a(o)},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){n.modelData.field=e.field,n.modelData.output=e.output,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData.field=e.field,n.modelData.output=e.output,n.setState({selectedIds:[].concat(t)})},n.handleChange=function(e){n.modelData.type=e},n.onChangeSwitch=function(e){n.modelData.isReplace=e?"1":"0",n.setState({isReplace:n.modelData.isReplace})},n.state={isReplace:"{}"===JSON.stringify(a.configData)?"1":a.configData.isReplace,modalVisible:!1,inputKpiData:l.default.get(a.input[0],"params",[]),selectedIds:a.configData.field?(0,b.setFormatConfigData)(l.default.get(a.input[0],"params",[]),a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{field:[],isReplace:"1",type:"",suffix:a.setting.suffix,output:[]}:(0,b.setFormatConfigData)(l.default.get(a.input[0],"params",[]),a.configData,a.setting.suffix),n}return(0,r.default)(t,e),t.validateConfig=function(e,t,a,n){if(0===l.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u8ba1\u7b97\u5b57\u6bb5"};var o=(0,b.verifyArray)(l.default.get(e[0],"params",[]),t.output,n.suffix);return o.validate?{validate:!0}:{validate:!1,message:o.error}},t.prototype.render=function(){var e=this.state,t=e.inputKpiData,a=e.selectedIds,o=e.isReplace,s=this.props.form.getFieldDecorator,r=this.props.dicHelper("CHANGE_ARITHMETIC").list();return(0,n.default)(S,{},void 0,(0,n.default)(h.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(_.default,{dataType:this.props.setting.dataType,suffix:this.props.setting.suffix,inputKpiData:t,selectedIds:a,onChange:this.setFieldData})}),(0,n.default)(v.default,{},void 0,(0,n.default)(g.Panel,{header:"\u5df2\u9009\u8ba1\u7b97\u5b57\u6bb5"},"fieldData",(0,n.default)(y.default,{viewMode:this.props.viewMode,suffix:this.props.setting.suffix,onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:a,inputKpiData:t,modelData:this.modelData,isReplace:o,onChangeSwitch:this.onChangeSwitch}),(0,n.default)(p.Form,{},void 0,(0,n.default)(m.default,{data:this.modelData.type,selectArray:r,arrayIdKey:"code",arrayIdValue:"txt",title:"\u53d8\u6362\u7b97\u6cd5",viewMode:this.props.viewMode},void 0,(0,n.default)(j,{help:""},void 0,(0,n.default)("span",{style:{display:"block"}},void 0,"\u9009\u62e9\u53d8\u6362\u7b97\u6cd5"),s("minute",{rules:[{required:!0}],initialValue:this.modelData.type})((0,n.default)(i.default,{getPopupContainer:function(e){return e.parentNode},onChange:this.handleChange,style:{width:"150px"}},void 0,I,r.map((function(e){return(0,n.default)(C,{title:e.txt,value:e.code},e.code,e.txt)}))))))))))},t}(d.PureComponent);T.defaultProps={onChange:l.default.noop};t.default=(0,f.connect)((function(e){return{dicHelper:(0,c.default)(e)}}))(p.Form.create()(T))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataDumbConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataStandardConfigDom=void 0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),m=_(f),h=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),g=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=t.DataStandardConfigDom=l.default.div.withConfig({displayName:"DataDumbConfig__DataStandardConfigDom",componentId:"rn10um-0"})([""]),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.validate=function(){var e=!0,t="";return 0===n.modelData.field.length&&(e=!1,t="\u8bf7\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5"),n.modelData.suffix=n.props.setting.suffix,n.modelData.output=(0,v.contrastInput)(n.state.inputKpiData,n.modelData.output,n.props.setting.suffix),n.setOutPutBySwitch(),n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.setOutPutBySwitch=function(){var e=n;if("1"===n.modelData.isReplace){var t=n.modelData.output.filter((function(t){return-1===d.default.indexOf(e.modelData.field,t.field)}));n.modelData.output=t}else for(var a=function(t){-1===d.default.findIndex(n.modelData.output,(function(a){return a.field===e.modelData.field[t]}))&&n.modelData.output.push(n.state.inputKpiData[d.default.findIndex(n.state.inputKpiData,(function(a){return a.field===e.modelData.field[t]}))])},o=0;o<n.modelData.field.length;o++)a(o)},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){n.modelData.field=e.field,n.modelData.output=e.output,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData=e,n.setState({selectedIds:[].concat(t)})},n.onChangeSwitch=function(e){n.modelData.isReplace=e?"1":"0",n.setState({isReplace:n.modelData.isReplace})},n.state={isReplace:"{}"===JSON.stringify(a.configData)?"1":a.configData.isReplace,modalVisible:!1,inputKpiData:d.default.get(a.input[0],"params",[]),selectedIds:a.configData.field?(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{isReplace:"1",suffix:a.setting.suffix,field:[],output:[]}:(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData,a.setting.suffix),n}return(0,r.default)(t,e),t.validateConfig=function(e,t,a,n){if(0===d.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u8ba1\u7b97\u5b57\u6bb5"};var o=(0,v.verifyArray)(d.default.get(e[0],"params",[]),t.output,n.suffix);return o.validate?{validate:!0}:{validate:!1,message:o.error}},t.prototype.render=function(){var e=this.state,t=e.inputKpiData,a=e.selectedIds,o=e.isReplace;return(0,n.default)(y,{},void 0,(0,n.default)(p.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(h.default,{dataType:this.props.setting.dataType,suffix:this.props.setting.suffix,inputKpiData:t,selectedIds:a,onChange:this.setFieldData})}),(0,n.default)(m.default,{},void 0,(0,n.default)(f.Panel,{header:"\u5df2\u9009\u8ba1\u7b97\u5b57\u6bb5"},"fieldData",(0,n.default)(g.default,{viewMode:this.props.viewMode,suffix:this.props.setting.suffix,onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:a,inputKpiData:t,modelData:this.modelData,isReplace:o,onChangeSwitch:this.onChangeSwitch}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataStandardConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataStandardConfigDom=void 0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),m=_(f),h=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),g=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=t.DataStandardConfigDom=l.default.div.withConfig({displayName:"DataStandardConfig__DataStandardConfigDom",componentId:"sc-1jhal5z-0"})([""]),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setOutPutBySwitch=function(){var e=n;if("1"===n.modelData.isReplace){var t=n.modelData.output.filter((function(t){return-1===d.default.indexOf(e.modelData.field,t.field)}));n.modelData.output=t}else for(var a=function(t){-1===d.default.findIndex(n.modelData.output,(function(a){return a.field===e.modelData.field[t]}))&&n.modelData.output.push(n.state.inputKpiData[d.default.findIndex(n.state.inputKpiData,(function(a){return a.field===e.modelData.field[t]}))])},o=0;o<n.modelData.field.length;o++)a(o)},n.validate=function(){var e=!0,t="";return 0===n.modelData.field.length&&(e=!1,t="\u8bf7\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5"),n.modelData.suffix=n.props.setting.suffix,n.modelData.output=(0,v.contrastInput)(n.state.inputKpiData,n.modelData.output,n.props.setting.suffix),n.setOutPutBySwitch(),n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){n.modelData.field=e.field,n.modelData.output=e.output,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData=e,n.setState({selectedIds:[].concat(t)})},n.onChangeSwitch=function(e){n.modelData.isReplace=e?"1":"0",n.setState({isReplace:n.modelData.isReplace})},n.state={isReplace:"{}"===JSON.stringify(a.configData)?"1":a.configData.isReplace,modalVisible:!1,inputKpiData:d.default.get(a.input[0],"params",[]),selectedIds:a.configData.field?(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{isReplace:"1",field:[],suffix:a.setting.suffix,output:[]}:(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData,a.setting.suffix),n}return(0,r.default)(t,e),t.validateConfig=function(e,t,a,n){if(0===d.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u8ba1\u7b97\u5b57\u6bb5"};var o=(0,v.verifyArray)(d.default.get(e[0],"params",[]),t.output,n.suffix);return o.validate?{validate:!0}:{validate:!1,message:o.error}},t.prototype.render=function(){var e=this.state,t=e.inputKpiData,a=e.selectedIds,o=e.isReplace;return(0,n.default)(y,{},void 0,(0,n.default)(p.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(h.default,{dataType:this.props.setting.dataType,suffix:this.props.setting.suffix,inputKpiData:t,selectedIds:a,onChange:this.setFieldData})}),(0,n.default)(m.default,{},void 0,(0,n.default)(f.Panel,{header:"\u5df2\u9009\u8ba1\u7b97\u5b57\u6bb5"},"fieldData",(0,n.default)(g.default,{viewMode:this.props.viewMode,suffix:this.props.setting.suffix,onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:a,inputKpiData:t,modelData:this.modelData,isReplace:o,onChangeSwitch:this.onChangeSwitch}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitConversion/DataUnificationConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataStandardConfigDom=void 0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),m=_(f),h=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),g=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=t.DataStandardConfigDom=l.default.div.withConfig({displayName:"DataUnificationConfig__DataStandardConfigDom",componentId:"sc-121zfm-0"})([""]),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.validate=function(){var e=!0,t="";return 0===n.modelData.field.length&&(e=!1,t="\u8bf7\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5"),n.modelData.suffix=n.props.setting.suffix,n.modelData.output=(0,v.contrastInput)(n.state.inputKpiData,n.modelData.output,n.props.setting.suffix),n.setOutPutBySwitch(),n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.setOutPutBySwitch=function(){var e=n;if("1"===n.modelData.isReplace){var t=n.modelData.output.filter((function(t){return-1===d.default.indexOf(e.modelData.field,t.field)}));n.modelData.output=t}else for(var a=function(t){-1===d.default.findIndex(n.modelData.output,(function(a){return a.field===e.modelData.field[t]}))&&n.modelData.output.push(n.state.inputKpiData[d.default.findIndex(n.state.inputKpiData,(function(a){return a.field===e.modelData.field[t]}))])},o=0;o<n.modelData.field.length;o++)a(o)},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){n.modelData.field=e.field,n.modelData.output=e.output,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData=e,n.setState({selectedIds:[].concat(t)})},n.onChangeSwitch=function(e){n.modelData.isReplace=e?"1":"0",n.setState({isReplace:n.modelData.isReplace})},n.state={isReplace:"{}"===JSON.stringify(a.configData)?"1":a.configData.isReplace,modalVisible:!1,inputKpiData:d.default.get(a.input[0],"params",[]),selectedIds:a.configData.field?(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{isReplace:"1",suffix:a.setting.suffix,field:[],output:[]}:(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData,a.setting.suffix),n}return(0,r.default)(t,e),t.validateConfig=function(e,t,a,n){if(0===d.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u8ba1\u7b97\u5b57\u6bb5"};var o=(0,v.verifyArray)(d.default.get(e[0],"params",[]),t.output,n.suffix);return o.validate?{validate:!0}:{validate:!1,message:o.error}},t.prototype.render=function(){var e=this.state,t=e.inputKpiData,a=e.selectedIds,o=e.isReplace;return(0,n.default)(y,{},void 0,(0,n.default)(p.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(h.default,{dataType:this.props.setting.dataType,suffix:this.props.setting.suffix,inputKpiData:t,selectedIds:a,onChange:this.setFieldData})}),(0,n.default)(m.default,{},void 0,(0,n.default)(f.Panel,{header:"\u5df2\u9009\u8ba1\u7b97\u5b57\u6bb5"},"fieldData",(0,n.default)(g.default,{viewMode:this.props.viewMode,suffix:this.props.setting.suffix,onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:a,inputKpiData:t,modelData:this.modelData,isReplace:o,onChangeSwitch:this.onChangeSwitch}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitDerive/AutoFeatureConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.AutoFeatureConfigDom=void 0;var n=b(a("./node_modules/antd/es/input-number/index.js")),o=b(a("./node_modules/antd/es/switch/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/switch/style/index.js");var l=a("./node_modules/react/index.js"),u=(b(l),b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/lodash/lodash.js"))),c=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./node_modules/react-redux/es/index.js"),m=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),h=b(m),g=b(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),v=b(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),_=a("./src/utils/dragDropUtil.js"),y=a("./src/components/index.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=t.AutoFeatureConfigDom=c.default.div.withConfig({displayName:"AutoFeatureConfig__AutoFeatureConfigDom",componentId:"sc-1xsh8ud-0"})([""]),C=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.validate=function(){var e=!0,t="";return 0===u.default.get(n.modelData,"isAuto",0)?(0===n.modelData.field.length?(e=!1,t="\u8bf7\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5"):n.modelData.output=n.state.inputKpiData,0===u.default.get(n.modelData,"featureNum",0)&&(e=!1,t="\u8bf7\u586b\u5199\u7279\u5f81\u6700\u5927\u6570")):n.modelData={isAuto:-1,featureNum:1e3,field:[],output:[]},n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){n.modelData.field=e.field,n.modelData.output=e.output,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData=e,n.setState({selectedIds:[].concat(t)})},n.swithChange=function(e){n.setState({whetherDisabled:e}),n.modelData.isAuto=e?-1:0},n.featureNumChange=function(e){n.modelData.featureNum=e},n.state={modalVisible:!1,whetherDisabled:"{}"===JSON.stringify(a.configData)||-1===a.configData.isAuto,inputKpiData:u.default.get(a.input[0],"params",[]),selectedIds:a.configData.field?(0,_.setFormatConfigData)(u.default.get(a.input[0],"params",[]),a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{isAuto:-1,featureNum:1e3,field:[],output:[]}:(0,_.setFormatConfigData)(u.default.get(a.input[0],"params",[]),a.configData),n}return(0,d.default)(t,e),t.validateConfig=function(e,t){if(0===u.default.get(t,"isAuto",0)){if(0===u.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u5b57\u6bb5"};var a=(0,_.verifyArray)(u.default.get(e[0],"params",[]),t.output);if(!a.validate)return{validate:!1,message:a.error}}return{validate:!0}},t.prototype.render=function(){var e=this,t=this.state,a=t.inputKpiData,r=t.selectedIds,i=t.whetherDisabled;return(0,s.default)(x,{},void 0,(0,s.default)(y.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u4fdd\u7559\u7684\u7279\u5f81",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,s.default)(g.default,{inputKpiData:a,selectedIds:r,onChange:this.setFieldData})}),(0,s.default)("div",{style:{marginBottom:5,marginLeft:5}},void 0,(0,s.default)(o.default,{onChange:this.swithChange,style:{marginBottom:"2px"},checkedChildren:"\u5f00",unCheckedChildren:"\u5173",checked:this.state.whetherDisabled}),(0,s.default)("span",{style:{marginLeft:10,fontSize:14}},void 0,"\u81ea\u52a8\u6a21\u5f0f")),!i&&(0,s.default)(h.default,{},void 0,(0,s.default)(m.Panel,{header:"\u4fdd\u7559\u7279\u5f81\u5b57\u6bb5"},"fieldData",(0,s.default)(v.default,{viewMode:this.props.viewMode,buttonName:"\u65b0\u589e\u7279\u5f81\u5b57\u6bb5",onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:r,inputKpiData:a,modelData:this.modelData}),(0,s.default)("div",{style:{display:"inline-flex"}},void 0,(0,s.default)("span",{style:{paddingTop:5,marginRight:5}},void 0,"\u7279\u5f81\u6700\u5927\u6570\uff1a"),(0,s.default)(n.default,{style:{display:"block",width:180},min:1e3,defaultValue:this.modelData.featureNum,onChange:function(t){return e.featureNumChange(t)}})))))},t}(l.PureComponent);C.defaultProps={onChange:u.default.noop};t.default=(0,f.connect)((function(){return{}}))(p.Form.create()(C))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitProject/DataCheckConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataStandardConfigDom=void 0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),m=_(f),h=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),g=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=t.DataStandardConfigDom=l.default.div.withConfig({displayName:"DataCheckConfig__DataStandardConfigDom",componentId:"sc-8lijiz-0"})([""]),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.validate=function(){var e=!0,t="";return 0===n.modelData.field.length?(e=!1,t="\u8bf7\u9009\u62e9\u5ba1\u67e5\u5b57\u6bb5"):n.modelData.output=n.state.inputKpiData,n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){n.modelData=e,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData=e,n.setState({selectedIds:[].concat(t)})},n.state={modalVisible:!1,inputKpiData:d.default.get(a.input[0],"params",[]),selectedIds:a.configData.field?(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{field:[],output:[]}:(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData),n}return(0,r.default)(t,e),t.validateConfig=function(e,t){if(0===d.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u62e9\u5ba1\u67e5\u5b57\u6bb5"};var a=(0,v.verifyArray)(d.default.get(e[0],"params",[]),t.output);return a.validate?{validate:!0}:{validate:!1,message:a.error}},t.prototype.render=function(){var e=this.state,t=e.inputKpiData,a=e.selectedIds;return(0,n.default)(y,{},void 0,(0,n.default)(p.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u5ba1\u67e5\u5b57\u6bb5",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(h.default,{inputKpiData:t,selectedIds:a,onChange:this.setFieldData})}),(0,n.default)(m.default,{},void 0,(0,n.default)(f.Panel,{header:"\u5df2\u9009\u5ba1\u67e5\u5b57\u6bb5"},"fieldData",(0,n.default)(g.default,{viewMode:this.props.viewMode,onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:a,inputKpiData:t,modelData:this.modelData}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitProject/DataSamp.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataSampStyle=void 0;var n=b(a("./node_modules/antd/es/input/index.js")),o=b(a("./node_modules/antd/es/input-number/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/babel-runtime/helpers/extends.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js")),u=b(a("./node_modules/antd/es/radio/index.js")),c=b(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=a("./node_modules/react/index.js"),f=(b(p),b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=b(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/react-redux/es/index.js"),g=b(a("./src/components/auth/viewModule.jsx")),v=a("./src/redux/selectors/enumDic.js"),_=a("./node_modules/@ant-design/icons/es/index.js"),y=a("./node_modules/@ant-design/compatible/es/index.js");function b(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var x={marginLeft:"10px"},C={width:"76%"},j={marginTop:"-10px"},S=c.default.Option,I=y.Form.Item,T=u.default.Group,w=t.DataSampStyle=f.default.div.withConfig({displayName:"DataSamp__DataSampStyle",componentId:"sc-1t10o9r-0"})(["padding:20px 0 0 10px;"]),E={display:"block",height:"30px",lineHeight:"30px"},D={marginTop:"40px"},M=(0,s.default)(_.QuestionCircleOutlined,{className:"icon",title:"\u968f\u673a\uff1a\u6309\u6bd4\u4f8b\u968f\u673a\u63d0\u53d6\r\n \u5206\u5c42\u62bd\u6837\uff1a\u6309\u6307\u5b9a\u7684\u5b57\u6bb5\u5206\u5c42\u62bd\u6837\u63d0\u53d6\r\n \u6309\u65f6\u95f4\uff1a\u6309\u6307\u5b9a\u7684\u65f6\u95f4\u5b57\u6bb5\u5148\u540e\u63d0\u53d6",style:x}),k=(0,s.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u5206\u5c42\u5b57\u6bb5"),P=(0,s.default)(_.QuestionCircleOutlined,{className:"icon",title:"\u8bbe\u7f6e\u6570\u636e\u96c6\u4e2d\u6570\u636e\u91cf\u7684\u5360\u6bd4\uff0c\u53d6\u503c\u8303\u56f40.1-1",style:x}),L=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setFormatConfigData=function(e,t){for(var a="",n=(0,r.default)({},t),o=0;o<e.length;o++)e[o].field===t.sampleConf.field&&(a=e[o].field);return n.sampleConf.field=a,n},n.suanFaSelectChange=function(e){n.modelData.sampleType=e,"2"===n.modelData.sampleType?n.setState({selectWhetherShow:"block"}):n.setState({selectWhetherShow:"none"})},n.fenCengSelectChange=function(e){n.modelData.sampleConf.field=e},n.radioChange=function(e){n.setState({radioValue:e.target.value})},n.iptChange=function(e,t){"bill"===t?n.modelData.sampleConf.scale=e:n.modelData.sampleConf.count=e},n.validate=function(){var e=!0,t="";return"1"===n.state.radioValue?n.modelData.sampleConf.count="":"2"===n.state.radioValue&&(n.modelData.sampleConf.scale=""),"2"===n.modelData.sampleType&&""===n.modelData.sampleConf.field&&(e=!1,t="\u8bf7\u9009\u62e9\u5206\u5c42\u5b57\u6bb5"),"1"!==n.state.radioValue||n.modelData.sampleConf.scale||(e=!1,t="\u5df2\u9009\u62e9\u4e86\u6309\u6bd4\u4f8b\uff0c\u8bf7\u586b\u5199\u6bd4\u4f8b"),"2"!==n.state.radioValue||n.modelData.sampleConf.count||(e=!1,t="\u5df2\u9009\u62e9\u4e86\u6309\u6761\u6570\uff0c\u8bf7\u586b\u5199\u6761\u6570"),n.modelData.output=n.props.input.length>0?n.props.input[0].params:[],n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.modelData="{}"===JSON.stringify(a.configData)?{sampleType:"1",sampleConf:{field:"",scale:"0.1",count:""},output:a.input.length>0?a.input[0].params:[]}:n.setFormatConfigData(m.default.get(a.input[0],"params",[]),a.configData),n.state={radioValue:n.modelData.sampleConf&&n.modelData.sampleConf.count?"2":"1",selectWhetherShow:"2"===n.modelData.sampleType?"block":"none",countWhetherShow:""!==n.modelData.sampleConf.count?"block":"none",scaleWhetherShow:""!==n.modelData.sampleConf.scale?"block":"none"},n}return(0,l.default)(t,e),t.validateConfig=function(e,t){var a=[];if(e.length>0&&""!==t.sampleConf.field){for(var n=0;n<e[0].params.length;n++)a.push(e[0].params[n].field);if(-1===m.default.indexOf(a,t.sampleConf.field))return{validate:!1,message:"\u8282\u70b9\u8f93\u5165\u6709\u53d8\u5316\uff0c\u8bf7\u91cd\u65b0\u914d\u7f6e"}}return""===m.default.get(t.sampleConf,"scale","")&&""===m.default.get(t.sampleConf,"count","")?{validate:!1,message:"\u8bf7\u586b\u5199\u62bd\u6837\u6570\u636e\u91cf\u6bd4\u4f8b\u6216\u6761\u6570"}:"2"===t.sampleType&&""===m.default.get(t.sampleConf,"field","")?{validate:!1,message:"\u8bf7\u9009\u62e9\u5206\u5c42\u5b57\u6bb5"}:{validate:!0}},t.prototype.render=function(){var e=this,t=this.props,a=t.form,i=t.input,d=t.sampleType,l=a.getFieldDecorator,p=i.length>0?i[0].params:[],f=d.list();return(0,s.default)(w,{},void 0,(0,s.default)(y.Form,{layout:"vertical"},void 0,(0,s.default)(g.default,{data:this.modelData.sampleType,selectArray:f,arrayIdKey:"value",arrayIdValue:"txt",title:"\u62bd\u6837\u7b97\u6cd5",viewMode:this.props.viewMode},void 0,(0,s.default)(I,{label:"\u62bd\u6837\u7b97\u6cd5"},void 0,l("sampleType",{initialValue:this.modelData.sampleType,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u62bd\u6837\u7b97\u6cd5"}]})((0,s.default)(c.default,{showSearch:!0,style:C,onChange:this.suanFaSelectChange,getPopupContainer:function(e){return e.parentNode},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,f.map((function(e,t){return(0,s.default)(S,{value:e.value},t,e.txt)})))),M)),"block"===this.state.selectWhetherShow&&(0,s.default)(g.default,{data:this.modelData.sampleConf.field,selectArray:p,arrayIdKey:"field",arrayIdValue:"name",title:"\u9009\u62e9\u5206\u5c42\u5b57\u6bb5",viewMode:this.props.viewMode},void 0,(0,s.default)(I,{label:"\u9009\u62e9\u5206\u5c42\u5b57\u6bb5",style:(0,r.default)({display:this.state.selectWhetherShow},j)},void 0,l("field",{initialValue:this.modelData.sampleConf.field,rules:[{required:"2"===this.modelData.sampleType,message:"\u8bf7\u9009\u62e9\u5206\u5c42\u5b57\u6bb5"}]})((0,s.default)(c.default,{showSearch:!0,style:C,onChange:this.fenCengSelectChange,placeholder:"\u8bf7\u9009\u62e9",getPopupContainer:function(e){return e.parentNode},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,k,p.map((function(e){return"1"===e.type&&(0,s.default)(S,{title:e.name,value:e.field},e.field+m.default.uniqueId(),e.name)})))))),(0,s.default)(g.default,{data:"1"===this.state.radioValue?this.modelData.sampleConf.scale+"":this.modelData.sampleConf.count+"",title:"1"===this.state.radioValue?"\u6309\u6bd4\u4f8b":"\u6309\u6761\u6570",viewMode:this.props.viewMode},void 0,(0,s.default)(I,{label:"\u62bd\u6837\u6570\u636e\u91cf",style:j},void 0,(0,s.default)(T,{onChange:this.radioChange,value:this.state.radioValue},void 0,(0,s.default)(u.default,{style:E,value:"1"},void 0,"\u6309\u6bd4\u4f8b",P,(0,s.default)(o.default,{style:{display:"block",width:280},defaultValue:this.modelData.sampleConf.scale,min:0,max:1,step:.1,onChange:function(t){return e.iptChange(t,"bill")}})),(0,s.default)(u.default,{style:(0,r.default)({},E,D),value:"2"},void 0,"\u6309\u6761\u6570")),(0,s.default)(n.default,{style:C,defaultValue:this.modelData.sampleConf.count,allowClear:!0,onChange:function(t){return e.iptChange(t.target.value,"num")}})))))},t}(p.PureComponent);L.defaultProps={onChange:m.default.noop};t.default=(0,h.connect)((function(e){return{sampleType:(0,v.dicGroupHelper)(e,"SAMPLE_TYPE")}}))(y.Form.create()(L))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitProject/DataSplitIpt.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/input-number/index.js")),o=m(a("./node_modules/babel-runtime/helpers/jsx.js")),s=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input-number/style/index.js");var d=a("./node_modules/react/index.js"),l=(m(d),m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/lodash/lodash.js"))),u=m(a("./src/components/auth/viewModule.jsx")),c=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");function m(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var h=f.Form.Item,g={width:"100%"},v={display:"block",marginBottom:9},_=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.numChange=function(e,t){"dataset1"===t?n.modelData.dataset1=e:n.modelData.dataset2=e},n.validate=function(){var e=!0,t="";return n.modelData.dataset1||(e=!1,t="\u8bf7\u586b\u5199\u6570\u636e\u96c61"),n.modelData.dataset2||(e=!1,t="\u8bf7\u586b\u5199\u6570\u636e\u96c62"),n.modelData.output=n.props.input.length>0?n.props.input[0].params:[],n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.modelData="{}"===JSON.stringify(a.configData)?{dataset1:.1,dataset2:.1,output:a.input.length>0?a.input[0].params:[]}:a.configData,n}return(0,i.default)(t,e),t.validateConfig=function(e,t){return""===l.default.get(t,"dataset1","")?{validate:!1,message:"\u6570\u636e\u96c61\u672a\u586b\u5199"}:""===l.default.get(t,"dataset2","")?{validate:!1,message:"\u6570\u636e\u96c62\u672a\u586b\u5199"}:{validate:!0}},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,o.default)(f.Form,{layout:"vertical"},void 0,(0,o.default)(u.default,{data:this.modelData.dataset1+"",title:"\u6570\u636e\u96c61",viewMode:this.props.viewMode},void 0,(0,o.default)(h,{},void 0,(0,o.default)("span",{style:v},void 0,"\u6570\u636e\u96c61",(0,o.default)(p.QuestionCircleOutlined,{style:{marginLeft:5},title:"\u8bbe\u7f6e\u6570\u636e\u96c6\u4e2d\u6570\u636e\u91cf\u7684\u5360\u6bd4\uff0c\u53d6\u503c\u8303\u56f40.1-1\uff0c\u53ef\u90fd\u4e3a1"})),t("dataset1",{initialValue:this.modelData.dataset1,rules:[{required:!0,message:"\u6700\u5927\u6570\u5b57\u4e0d\u80fd\u8d85\u8fc71"}]})((0,o.default)(n.default,{style:g,min:.1,max:1,step:.1,onChange:function(t){return e.numChange(t,"dataset1")}})))),(0,o.default)(u.default,{data:this.modelData.dataset2+"",title:"\u6570\u636e\u96c62",viewMode:this.props.viewMode},void 0,(0,o.default)(h,{},void 0,(0,o.default)("span",{style:{display:"block",marginBottom:9}},void 0,"\u6570\u636e\u96c62"),t("dataset2",{initialValue:this.modelData.dataset2,rules:[{required:!0,message:"\u6700\u5927\u6570\u5b57\u4e0d\u80fd\u8d85\u8fc71"}]})((0,o.default)(n.default,{style:g,min:.1,max:1,step:.1,onChange:function(t){return e.numChange(t,"dataset2")}})))))},t}(d.PureComponent);_.defaultProps={onChange:l.default.noop};t.default=(0,c.connect)((function(){return{}}))(f.Form.create()(_))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitSelect/MessagConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataStandardConfigDom=void 0;var n=y(a("./node_modules/babel-runtime/helpers/jsx.js")),o=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=y(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(y(i),y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/lodash/lodash.js"))),l=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=a("./src/redux/selectors/enumDic.js"),m=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),h=y(m),g=y(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),v=y(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),_=a("./src/utils/dragDropUtil.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=t.DataStandardConfigDom=l.default.div.withConfig({displayName:"MessagConfig__DataStandardConfigDom",componentId:"sc-126oy9g-0"})([""]),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.validate=function(){var e=!0,t="";return 0===n.modelData.field.length?(e=!1,t="\u8bf7\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5"):n.modelData.output=n.state.inputKpiData,n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){n.modelData.field=e.field,n.modelData.output=e.output,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData.field=e.field,n.modelData.output=e.output,n.setState({selectedIds:[].concat(t)})},n.state={modalVisible:!1,inputKpiData:d.default.get(a.input[0],"params",[]),selectedIds:a.configData.field?(0,_.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{field:[],targetField:"",config:{sign:"",value:.1},output:[]}:a.configData,n}return(0,r.default)(t,e),t.validateConfig=function(e,t){if(0===d.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u8ba1\u7b97\u5b57\u6bb5"};var a=(0,_.verifyArray)(d.default.get(e[0],"params",[]),t.output);return a.validate?{validate:!0}:{validate:!1,message:a.error}},t.prototype.render=function(){var e=this.state,t=e.inputKpiData,a=e.selectedIds;return(0,n.default)(b,{},void 0,(0,n.default)(p.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(g.default,{inputKpiData:t,selectedIds:a,onChange:this.setFieldData})}),(0,n.default)(h.default,{},void 0,(0,n.default)(m.Panel,{header:"\u5df2\u9009\u8ba1\u7b97\u5b57\u6bb5"},"fieldData",(0,n.default)(v.default,{viewMode:this.props.viewMode,onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:a,inputKpiData:t,modelData:this.modelData}))))},t}(i.PureComponent);x.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(e){return{relationSignData:(0,f.dicGroupHelper)(e,"RELATION_SIGN")}}))(u.Form.create()(x))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitSelect/PccConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataStandardConfigDom=void 0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),m=_(f),h=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),g=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=t.DataStandardConfigDom=l.default.div.withConfig({displayName:"PccConfig__DataStandardConfigDom",componentId:"sc-1wzfmp7-0"})([""]),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.validate=function(){var e=!0,t="";return 0===n.modelData.field.length?(e=!1,t="\u8bf7\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5"):n.modelData.output=n.state.inputKpiData,n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){n.modelData=e,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData=e,n.setState({selectedIds:[].concat(t)})},n.state={modalVisible:!1,inputKpiData:d.default.get(a.input[0],"params",[]),selectedIds:a.configData.field?(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{field:[],output:[]}:(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData),n}return(0,r.default)(t,e),t.validateConfig=function(e,t){if(0===d.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u7279\u5f81\u5b57\u6bb5"};var a=(0,v.verifyArray)(d.default.get(e[0],"params",[]),t.output);return a.validate?{validate:!0}:{validate:!1,message:a.error}},t.prototype.render=function(){var e=this.state,t=e.inputKpiData,a=e.selectedIds;return(0,n.default)(y,{},void 0,(0,n.default)(p.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u4fdd\u7559\u7684\u7279\u5f81",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(h.default,{dataType:this.props.setting.dataType,inputKpiData:t,selectedIds:a,onChange:this.setFieldData})}),(0,n.default)(m.default,{},void 0,(0,n.default)(f.Panel,{header:"\u4fdd\u7559\u7279\u5f81\u5b57\u6bb5"},"fieldData",(0,n.default)(g.default,{viewMode:this.props.viewMode,buttonName:"\u65b0\u589e\u7279\u5f81\u5b57\u6bb5",onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:a,inputKpiData:t,modelData:this.modelData}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/node_config/comp_config/traitSelect/TraitSelectConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataStandardConfigDom=void 0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=_(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(_(i),_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),l=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js"),f=a("./src/module/dragDrop/flow_arrange/node_config/comp_config/CollapsePanel.jsx"),m=_(f),h=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalView.jsx")),g=_(a("./src/module/dragDrop/flow_arrange/node_config/common/KpiModalSelect.jsx")),v=a("./src/utils/dragDropUtil.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=t.DataStandardConfigDom=l.default.div.withConfig({displayName:"TraitSelectConfig__DataStandardConfigDom",componentId:"ev0adz-0"})([""]),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.validate=function(){var e=!0,t="";return 0===n.modelData.field.length?(e=!1,t="\u8bf7\u9009\u62e9\u8ba1\u7b97\u5b57\u6bb5"):n.modelData.output=n.state.inputKpiData,n.props.onChange(n.modelData),{validate:e,errorMsg:t}},n.callVisible=function(){n.setState({modalVisible:!1})},n.setFieldData=function(e,t){n.modelData=e,n.setState({selectedIds:t})},n.addIndiClick=function(){n.setState({modalVisible:!0})},n.onChangeKpiSelect=function(e,t){n.modelData=e,n.setState({selectedIds:[].concat(t)})},n.state={modalVisible:!1,inputKpiData:d.default.get(a.input[0],"params",[]),selectedIds:a.configData.field?(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData).field:[]},n.modelData="{}"===JSON.stringify(a.configData)?{field:[],output:[]}:(0,v.setFormatConfigData)(d.default.get(a.input[0],"params",[]),a.configData),n}return(0,r.default)(t,e),t.validateConfig=function(e,t){if(0===d.default.get(t,"field",[]).length)return{validate:!1,message:"\u672a\u9009\u7279\u5f81\u5b57\u6bb5"};var a=(0,v.verifyArray)(d.default.get(e[0],"params",[]),t.output);return a.validate?{validate:!0}:{validate:!1,message:a.error}},t.prototype.render=function(){var e=this.state,t=e.inputKpiData,a=e.selectedIds;return(0,n.default)(y,{},void 0,(0,n.default)(p.ModalView,{viewType:"view",modalTitle:"\u9009\u62e9\u4fdd\u7559\u7684\u7279\u5f81",closable:!0,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,n.default)(h.default,{inputKpiData:t,selectedIds:a,onChange:this.setFieldData})}),(0,n.default)(m.default,{},void 0,(0,n.default)(f.Panel,{header:"\u4fdd\u7559\u7279\u5f81\u5b57\u6bb5"},"fieldData",(0,n.default)(g.default,{viewMode:this.props.viewMode,buttonName:"\u65b0\u589e\u7279\u5f81\u5b57\u6bb5",onChange:this.onChangeKpiSelect,addIndiClick:this.addIndiClick,selectedIds:a,inputKpiData:t,modelData:this.modelData}))))},t}(i.PureComponent);b.defaultProps={onChange:d.default.noop};t.default=(0,c.connect)((function(){return{}}))(u.Form.create()(b))},"./src/module/dragDrop/flow_arrange/utils/commonUtil.js":function(e,t,a){"use strict";t.__esModule=!0,t.generateId=void 0;var n,o=a("./node_modules/shortid/index.js"),s=(n=o)&&n.__esModule?n:{default:n};t.generateId=function(){return _.replace(s.default.generate(),"-","_")}},"./src/module/dragDrop/flow_arrange/utils/diagramUtil.js":function(e,t,a){"use strict";t.__esModule=!0,t.getNodeInputParams=t.validateNodeLinking=t.validateNodeLinKRule=t.getExecuteFlowJson=t.validateFlowLinkConstraint=t.isIsolateNode=t.isDataSourceIsolateNode=t.getInputLinkedCount=t.getNodeInputCount=t.validateNodesConfig=t.validateFlowConfig=t.getNodesInRearFlowByNodeId=t.getNodesInPreFlowByNodeId=t.buildDragModelJson=t.getAvailableInputPort=t.getAvailablePorts=t.hasLinkForInputPort=t.confirmExt=t.getNeedDeleteLinks=t.isInRunFlow=t.isRunNode=t.haveExecuteNode=t.isCycleLink=t.isSelfLinked=t.isAvailablePort=t.existLinkPort=t.existLink=t.initLinkMap=t.initLinkedPortArray=t.initLinkeLineArray=t.getNodePort=void 0;var n=u(a("./node_modules/antd/es/modal/index.js")),o=u(a("./node_modules/antd/es/message/index.js")),s=a("./src/module/dragDrop/flow_arrange/utils/commonUtil.js");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})})),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var r=a("./node_modules/immutable3/dist/immutable.js"),i=a("./src/module/dragDrop/constant.js"),d=a("./src/module/dragDrop/flow_arrange/utils/pickNodeUtil.js"),l=u(a("./src/module/dragDrop/flow_arrange/node_config/comp_config/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}o.default.config({maxCount:1,top:100});var c=n.default.confirm,p=(t.getNodePort=function(e){var t=e.nodes,a=e.nodeId,n=e.portId;return r.Map.isMap(t)?(t.getIn([a,"ports"])||(0,r.List)()).find((function(e){return e.get("id")===n})):_.get(t,"nodeId.ports",[]).find((function(e){return e.id===n}))},t.initLinkeLineArray=function(e){return r.Map.isMap(e)?e.valueSeq().toArray().map((function(e){return e.getIn(["from","nodeId"])+"@"+e.getIn(["to","nodeId"])})):Object.values(e).map((function(e){return e.from.nodeId+"@"+e.to.nodeId}))}),f=(t.initLinkedPortArray=function(e){return r.Map.isMap(e)?e.valueSeq().toArray().map((function(e){return e.getIn(["from","nodeId"])+":"+e.getIn(["from","portId"])+"@"+e.getIn(["to","nodeId"])+":"+e.getIn(["to","portId"])})):Object.values(e).map((function(e){return e.from.nodeId+":"+e.from.portId+"@"+e.to.nodeId+":"+e.to.portId}))},t.initLinkMap=function(e){return r.Map.isMap(e)?e.valueSeq().reduce((function(e,t){return t.get("from")&&t.get("to")&&(e[t.getIn(["from","nodeId"])]=t.getIn(["to","nodeId"])),e}),{}):Object.values(e).reduce((function(e,t){return t.from&&t.to&&(e[t.from.nodeId]=t.to.nodeId),e}),{})}),m=t.existLink=function(e,t,a){return _.includes(a,e+"@"+t)||_.includes(a,t+"@"+e)},h=(t.existLinkPort=function(e,t,a,n,o){return _.includes(o,e+":"+t+"@"+a+":"+n)||_.includes(o,a+":"+n+"@"+e+":"+t)},t.isAvailablePort=function(e,t,a){var n=r.Map.isMap(e)?e.getIn(["properties","infinite"]):e.properties.infinite,o=r.Map.isMap(e)?e.get("id"):e.id;if(r.Map.isMap(a)){var s=!_.isNil(a.valueSeq().find((function(e){return e.getIn(["to","portId"])===o})));return!s||s&&!0===n}var i=!_.isNil(Object.values(a).find((function(e){return e.to.portId===o})));return!i||i&&!0===n}),g=t.isSelfLinked=function(e,t){return e.find((function(e){return e.getIn(["from","nodeId"])===t&&e.getIn(["to","nodeId"])===t}))},v=t.isCycleLink=function(e,t,a){return y(e,t,a)},y=function e(t,a,n){var o=r.Map.isMap(n)?n.get(a):n[a];return!!o&&(o===t||e(t,o,n))},b=(t.haveExecuteNode=function(e){if(!r.Map.isMap(e)||e.isEmpty())return!1;var t=e.find((function(e){var t=e.get("status");return t===i.FLOW_NODE_STATUS.EXEC_RUNNING||t===i.FLOW_NODE_STATUS.EXEC_WAIT}));return!_.isNil(t)},t.isRunNode=function(e){var t=e.id,a=e.nodes;if(!r.Map.isMap(a)||a.isEmpty())return!1;var n=a.getIn([t,"status"]);return n===i.FLOW_NODE_STATUS.EXEC_RUNNING||n===i.FLOW_NODE_STATUS.EXEC_WAIT}),x=(t.isInRunFlow=function e(t){var a=t.type,n=t.id,o=t.nodes,s=t.links;if(!r.Map.isMap(o)||o.isEmpty())return!1;if("node"===a){if(b({id:n,nodes:o}))return!0;var i=s.find((function(e){return e.getIn(["from","nodeId"])===n}));return!_.isNil(i)&&e({type:"linke",id:i.get("id"),nodes:o,links:s})}var d=s.get(n).getIn(["to","nodeId"]);return!_.isNil(d)&&e({type:"node",nodeId:d,nodes:o,links:s})},t.getNeedDeleteLinks=function(e){var t=e.nodeId,a=e.links;if(!r.Map.isMap(a)||a.isEmpty())return[];var n=[];return a.forEach((function(e,a){e.getIn(["from","nodeId"])!==t&&e.getIn(["to","nodeId"])!==t||n.push(a)})),n},t.confirmExt=function(e){var t=e.title,a=e.content,n=e.okCallback;return c({title:t,content:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(e){n(),e()}})},t.hasLinkForInputPort=function(e){var t=e.nodeId,a=e.portId,n=e.links;return r.Map.isMap(n)&&n.find((function(e){return e.getIn(["to","nodeId"])===t&&e.getIn(["to","portId"])===a}))},t.getAvailablePorts=function(e){var t=e.from,a=e.nodes,n=e.links,o=e.helper;if(!r.Map.isMap(a))return[];var s=[],i=function(e){var r=e.get("ports");if(!r||r.isEmpty())return"continue";r.map((function(r){if("input"===r.get("type")){if(!0!==o.validateNodeLinking(t,{nodeId:e.get("id"),portId:r.get("id")},a,n,!1))return;h(r,e.get("id"),n)&&s.push(r.get("id"))}}))},d=a.values(),l=Array.isArray(d),u=0;for(d=l?d:d[Symbol.iterator]();;){var c;if(l){if(u>=d.length)break;c=d[u++]}else{if((u=d.next()).done)break;c=u.value}i(c)}return s},t.getAvailableInputPort=function(e){var t=e.links,a=e.fromNode,n=e.fromNodePort,o=e.toInputPorts;if(r.List.isList(o)&&o.isEmpty())return{_message:"\u76ee\u6807\u8282\u70b9\u4e0d\u5141\u8bb8\u4f5c\u4e3a\u8f93\u5165\u8282\u70b9"};if(o.filter((function(e){return h(e,a.get("id"),t)})).isEmpty())return{_message:"\u76ee\u6807\u8282\u70b9\u7684\u8f93\u5165\u7aef\u70b9\u5df2\u5168\u90e8\u8fde\u7ebf\uff0c\u65e0\u53ef\u7528\u8f93\u5165\u7aef\u70b9"};var s=n.getIn(["properties","outputType"]),i=o.filter((function(e){return e.getIn(["properties","inputType"]).includes(s)}));if(i.isEmpty())return{_message:"\u6e90\u8282\u70b9\u7684\u8f93\u51fa\u7aef\u70b9\u7684\u8f93\u51fa\u7c7b\u578b\u4e3a[ "+s+" ], \u76ee\u6807\u8282\u70b9\u7684\u8f93\u5165\u7aef\u70b9\u65e0\u5339\u914d\u7684\u8f93\u5165\u7c7b\u578b"};var d=i.filter((function(e){return h(e,a.get("id"),t)}));return d.isEmpty()?{_message:"\u76ee\u6807\u8282\u70b9\u7684\u8f93\u5165\u7c7b\u578b\u4e3a["+s+"]\u7684\u7aef\u70b9\u5df2\u8fde\u7ebf\uff0c\u65e0\u53ef\u7528\u8f93\u5165\u7aef\u70b9"}:{_port:d.first()}},t.buildDragModelJson=function(e){var t=e.position,a=void 0===t?(0,r.Map)():t,n=e.modelId,o=e.flowNodes,s=void 0===o?(0,r.Map)():o,i=e.flowLinks,d=void 0===i?(0,r.Map)():i,l={modelId:n},u=s.toJS();return r.Map.isMap(a)&&!a.isEmpty(a)&&(l.position=a.toJS()),l.nodes=_.values(_.mapValues(u,(function(e){return _.omit(e,["execInfo"])}))),l.links=_.values(d.toJS()),l},t.getNodesInPreFlowByNodeId=function e(t){var a=t.nodeId,n=t.flowLinks;if(!a)return[];var o=[a];return r.Map.isMap(n)&&n.isEmpty()?o:((r.Map.isMap(n)&&n.filter((function(e){return e.getIn(["to","nodeId"])===a}))).map((function(t){var a=t.getIn(["from","nodeId"]);if(!_.isNil(a)){o.push(a);var s=e({nodeId:a,flowLinks:n});o=[].concat(o,s)}})),_.uniq(o))}),C=(t.getNodesInRearFlowByNodeId=function e(t){var a=t.nodeId,n=t.flowLinks;if(!a)return[];var o=[a];return r.Map.isMap(n)&&n.isEmpty()?o:(n.filter((function(e){return e.getIn(["from","nodeId"])===a})).map((function(t){var a=t.getIn(["to","nodeId"]);if(!_.isNil(a)){o.push(a);var s=e({nodeId:a,flowLinks:n});o=[].concat(o,s)}})),_.uniq(o))},t.validateFlowConfig=function(e){var t=e.nodeId,a=e.flowNodes,n=e.flowLinks,o=e.helper,s=_.isNil(t)?a.keySeq().toJS():x({nodeId:t,flowLinks:n}),r=a.filter((function(e){return e.get("status")===i.FLOW_NODE_STATUS.EXEC_RUNNING||e.get("status")===i.FLOW_NODE_STATUS.EXEC_ERR})).keySeq().toJS()||[];s=s.concat(r);var d=[],l=w(s,a,n);_.size(l)>0&&(d=d.concat(l));var u=C(s,a,n,o);return _.size(u)>0&&(d=d.concat(u)),_.size(d)>0?{validate:!1,result:d}:{validate:!0,result:E(s,a,n)}},t.validateNodesConfig=function(e,t,a,n){var o=[];return e.map((function(e){var s=t.get(e),i=s.get("type"),d=(s.get("config")||(0,r.Map)()).toJS(),u=k(t,a,e)||[],c=n.getNodeSetting(i),p=n.getConfigComp(i);if(p){var f=l.default[p];if(f)if(_.has(f,"validateConfig")){var m=f.validateConfig(u,d,i,c),h=m.validate,g=m.message;!1===h&&o.push({nodeId:e,msg:g})}else o.push({nodeId:e,msg:"\u8282\u70b9\u914d\u7f6e\u7ec4\u4ef6"+p+"\u672a\u5b9e\u73b0\u914d\u7f6e\u6821\u9a8c\u9759\u6001\u65b9\u6cd5"});else o.push({nodeId:e,msg:"\u8282\u70b9\u914d\u7f6e\u7ec4\u4ef6"+p+"\u672a\u5b9e\u73b0"})}else o.push({nodeId:e,msg:"\u8282\u70b9\u914d\u7f6e\u7ec4\u4ef6[ "+i+" ]\u672a\u914d\u7f6e"})})),o}),j=t.getNodeInputCount=function(e,t){return(e.get(t).get("ports")||(0,r.List)()).filter((function(e){return"input"===e.get("type")})).count()},S=t.getInputLinkedCount=function(e,t){return e.valueSeq().filter((function(e){return e.getIn(["to","nodeId"])===t})).count()},I=t.isDataSourceIsolateNode=function(e,t){var a=!1,n=e.get(t);return-1!==_.indexOf(["structed_data","txt_data","picture_data"],n.get("type"))&&(a=!0),a},T=t.isIsolateNode=function(e,t,a){if(!I(e,a))return!t.isEmpty()&&_.isNil(t.valueSeq().find((function(e){return e.getIn(["from","nodeId"])===a||e.getIn(["to","nodeId"])===a})))},w=t.validateFlowLinkConstraint=function(e,t,a){var n=[];return _.isArray(e)&&e.map((function(e){var o=j(t,e),s=S(a,e)||0;o!==s&&n.push({nodeId:e,msg:"\u8282\u70b9\u8f93\u5165\u914d\u7f6e\u4e0d\u5b8c\u6574,\u9700\u8981"+o+"\u4e2a\u8f93\u5165\uff0c\u5b9e\u9645\u53ea\u914d\u7f6e"+s+"\u4e2a\u8f93\u5165\u8282\u70b9"}),T(t,a,e)&&n.push({nodeId:e,msg:"\u8282\u70b9\u672a\u914d\u7f6e\u8f93\u5165\u548c\u8f93\u51fa"}),g(a,e)&&n.push({nodeId:e,msg:"\u7981\u6b62\u8282\u70b9\u8f93\u5165\u8f93\u51fa\u81ea\u8fde\u63a5"})})),n},E=t.getExecuteFlowJson=function(e,t,a){var n=t.valueSeq().filter((function(e){return e.get("status")===i.FLOW_NODE_STATUS.EXEC_OK||e.get("status")===i.FLOW_NODE_STATUS.EXEC_ERR})).map((function(e){return e.get("id")})).toJS(),o=_.uniq(_.concat(e,n));return{flowNodes:t.filter((function(e,t){return _.includes(o,t)})),flowLinks:a.filter((function(e){return _.includes(o,e.getIn(["from","nodeId"]))||_.includes(o,e.getIn(["to","nodeId"]))}))}},D=t.validateNodeLinKRule=function(e){var t=e.pickNodeMap,a=e.fromNode,n=e.toNode,o=e.fromPort,s=e.toPort;if(r.Map.isMap(a)&&r.Map.isMap(n)&&r.Map.isMap(o)){var i=(0,d.getPickNode)(t,a.get("type")),l=(0,d.getPickNode)(t,n.get("type"));if(i)if(l){var u=void 0,c=void 0;if(s)u=s.getIn(["properties","inputType"]).toJS(),c=s.getIn(["properties","inputScope"]).toJS();else{var p=M(n);u=p.types,c=p.scopes}var f=o.getIn(["properties","outputType"]),m=(0,d.getNodeTypeIds)(t,a.get("type"));if(_.isArray(u))if(_.isArray(c))if(_.isString(f)){var h,g;if(!_.includes(u,f))return(h={})[a.get("id")+"@"+n.get("id")]="\u6e90\u8282\u70b9\u8f93\u51fa\u7c7b\u578b["+f+"]\u4e0e\u76ee\u6807\u8282\u70b9\u8f93\u5165\u7c7b\u578b["+_.join(u,",")+"]\u4e0d\u5339\u914d",h;if(0===_.size(_.intersection(m,c)))return(g={})[a.get("id")+"@"+n.get("id")]="\u6e90\u8282\u70b9\u4e0e\u76ee\u6807\u8282\u70b9\u4e0d\u6ee1\u8db3\u8282\u70b9\u7c7b\u578b\u8fde\u63a5\u7ea6\u675f\u89c4\u5219",g}else console.warn("\u8282\u70b9\u7c7b\u578b["+o.get("type")+"]\u7684output type\u914d\u7f6e["+f+"]\u6709\u8bef");else console.warn("\u8282\u70b9\u7c7b\u578b["+n.get("type")+"]\u7684input scope\u914d\u7f6e["+c+"]\u6709\u8bef");else console.warn("\u8282\u70b9\u7c7b\u578b["+n.get("type")+"]\u7684input type\u914d\u7f6e["+u+"]\u6709\u8bef")}else console.warn(n.get("type")+"\u7c7b\u578b\u7684\u8282\u70b9\u914d\u7f6e\u4e0d\u5b58\u5728");else console.warn(a.get("type")+"\u7c7b\u578b\u7684\u8282\u70b9\u914d\u7f6e\u4e0d\u5b58\u5728")}},M=(t.validateNodeLinking=function(e,t,a,n,s){var i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],d=t.nodeId,l=a.nodeId,u=r.Map.isMap(n)?n.get(d):n[d],c=r.Map.isMap(n)?n.get(l):n[l],h=p(s),g=f(s);if(!u||!c)return!1;if(d===l)return i&&o.default.info("\u7981\u6b62\u8282\u70b9\u81ea\u8fde\u63a5"),!1;if(m(d,l,h))return i&&o.default.info("\u4e24\u4e2a\u8282\u70b9\u5df2\u8fde\u63a5\uff0c\u4e0d\u5141\u8bb8\u91cd\u590d\u8fde\u7ebf"),!1;if(v(d,l,g))return i&&o.default.info("\u8282\u70b9\u8fde\u7ebf\u51fa\u73b0\u5faa\u73af\uff0c\u4e0d\u5141\u8bb8\u51fa\u73b0\u5faa\u73af\u8fde\u63a5"),!1;if(c.get("ports").filter((function(e){return"input"===e.get("type")})).isEmpty())return i&&o.default.info("\u76ee\u6807\u8282\u70b9\u4e0d\u5141\u8bb8\u4f5c\u4e3a\u8f93\u5165\u8282\u70b9"),!1;var y=D({pickNodeMap:e,fromNode:u,toNode:c,fromPort:u.get("ports").find((function(e){return e.get("id")===t.portId})),toPort:a.portId?c.get("ports").find((function(e){return e.get("id")===a.portId})):null});return!_.isPlainObject(y)||(i&&o.default.info("\u8282\u70b9\u8fde\u63a5\u4e0d\u6ee1\u8db3\u7ea6\u675f\u89c4\u5219: "+_.join(_.values(y),",")),!1)},function(e){var t=[],a=[];return(e.get("ports").filter((function(e){return"input"===e.get("type")}))||(0,r.List)()).map((function(e){t=_.concat(t,e.getIn(["properties","inputType"]).toJS()),a=_.concat(a,e.getIn(["properties","inputScope"]).toJS())})),{types:t,scopes:a}}),k=t.getNodeInputParams=function(e,t,a){var n=t.valueSeq().filter((function(e){return e.getIn(["to","nodeId"])===a}));if(n.isEmpty())return[];var o=e.get(a);if(!o)return[];var s=o.get("ports").groupBy((function(e){return e.get("id")}));return n.map((function(t){var a=t.getIn(["to","portId"]),n=t.getIn(["from","nodeId"]),o=t.getIn(["from","portId"]),i=e.get(n)||(0,r.Map)(),d=(i.get("ports").find((function(e){return e.get("id")===o}))||(0,r.Map)()).getIn(["properties","outputType"]),l=(s.get(a)||(0,r.Map)()).get("name")||a,u=(i.get("output").find((function(e){return e.get("id")===o}))||(0,r.Map)()).get("variable"),c=i.getIn(["config","output"],(0,r.List)()).toJS();return{portId:a,portName:l,params:c=_.isPlainObject(c)?_.get(c,o+".output")||_.get(c,u+".output")||[]:c,type:d}})).toJS()}},"./src/module/dragDrop/flow_arrange/utils/pickNodeUtil.js":function(e,t,a){"use strict";t.__esModule=!0,t.getNodeTypeNames=t.getNodeTypeIds=t.getNodeMainType=t.buildNodePorts=t.buildOutputPorts=t.buildInputPorts=t.getPickNode=void 0;var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/module/dragDrop/config.jsx"),i=a("./src/module/dragDrop/flow_arrange/utils/commonUtil.js");var d=t.getPickNode=function(e,t){var a=e[t];return a||console.warn("\u8282\u70b9[ "+t+" ]\u914d\u7f6e\u4e0d\u5b58\u5728\uff01"),a},l=t.buildInputPorts=function(e){var t=[],a=r.styleVar.flow_node_width;if(s.default.isArray(e))for(var n=a/(s.default.size(e)+1),o=0;o<s.default.size(e);o++)t.push({id:(0,i.generateId)("port"),name:s.default.get(e[o],"name","\u8f93\u5165"+o),type:"input",position:{x:n*(o+1),y:0},properties:{inputType:s.default.get(e[o],"type",[]),inputScope:s.default.get(e[o],"scope",[])}});else t.push({id:(0,i.generateId)("port"),type:"input",name:s.default.get(e,"name","\u8f93\u5165"),position:{x:a/2,y:0},properties:{inputType:s.default.get(e,"type",[]),inputScope:s.default.get(e,"scope",[]),infinite:!0}});return t},u=t.buildOutputPorts=function(e){if(!s.default.isArray(e))return[];var t=[],a=r.styleVar.flow_node_width,n=r.styleVar.flow_node_height;if(s.default.isArray(e))for(var o=a/(s.default.size(e)+1),d=0;d<s.default.size(e);d++){if("dynamic"===s.default.get(e[d],"type")){t.push({type:"output",properties:{dynamic:!0}});break}t.push({id:(0,i.generateId)("port"),variable:s.default.get(e[d],"variable",null),name:s.default.get(e[d],"name","\u8f93\u51fa"+d),type:"output",position:{x:o*(d+1),y:n},properties:{outputType:s.default.get(e[d],"type","dataset")}})}return t};t.buildNodePorts=function(e,t){var a=d(e,t);if(!a)return[];if(!s.default.isPlainObject(a.bindRule))return console.error("\u8282\u70b9["+t+"]\u672a\u914d\u7f6ebindRule"),[];var n=a.bindRule,o=n.input,r=void 0===o?[]:o,i=n.output,c=void 0===i?[]:i;return s.default.concat(l(s.default.size(r)>0&&!0===r[0].infinite?r[0]:r),u(c))},t.getNodeMainType=function(e,t){var a=d(e,t),n="default";return a&&a.typeIds&&a.typeIds[0]&&(n=a.typeIds[0]),{type:n,ico:r.NODE_TYPE_CONFIG[n].ico||r.NODE_TYPE_CONFIG.default.ico}},t.getNodeTypeIds=function(e,t){return s.default.get(d(e,t),"typeIds",[])},t.getNodeTypeNames=function(e,t){return s.default.get(d(e,t),"typeNames",[])}},"./src/module/dragDrop/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./node_modules/react-loadable/lib/index.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/components/index.js");t.default=(0,s.default)({loader:function(){return Promise.all([a.e(2),a.e(0),a.e(3)]).then(a.t.bind(null,"./src/module/dragDrop/DragDropModeling.jsx",7))},loading:r.LoadingIndicator})},"./src/module/dragDrop/undo/actions.js":function(e,t,a){"use strict";t.__esModule=!0;var n=t.ActionTypes={UNDO:"@@redux-undo/UNDO",REDO:"@@redux-undo/REDO",JUMP_TO_FUTURE:"@@redux-undo/JUMP_TO_FUTURE",JUMP_TO_PAST:"@@redux-undo/JUMP_TO_PAST",JUMP:"@@redux-undo/JUMP",CLEAR_HISTORY:"@@redux-undo/CLEAR_HISTORY"};t.ActionCreators={undo:function(){return{type:n.UNDO}},redo:function(){return{type:n.REDO}},jumpToFuture:function(e){return{type:n.JUMP_TO_FUTURE,index:e}},jumpToPast:function(e){return{type:n.JUMP_TO_PAST,index:e}},jump:function(e){return{type:n.JUMP,index:e}},clearHistory:function(){return{type:n.CLEAR_HISTORY}}}},"./src/module/dragDrop/undo/debug.js":function(e,t,a){"use strict";t.__esModule=!0;var n=void 0,o=void 0,s="#9E9E9E",r="#03A9F4",i="#4CAF50";function d(e,t,a){return["%c"+e,"color: "+t+"; font-weight: bold",a]}t.set=function(e){n=e},t.start=function(e,t){o={header:[],prev:[],action:[],next:[],msgs:[]},n&&(console.group?(o.header=["%credux-undo","font-style: italic","action",e.type],o.action=d("action",r,e),o.prev=d("prev history",s,t)):(o.header=["redux-undo action",e.type],o.action=["action",e],o.prev=["prev history",t]))},t.end=function(e){n&&(console.group?o.next=d("next history",i,e):o.next=["next history",e],function(){var e,t,a,n,s,r,i,d,l,u,c=o,p=c.header,f=c.prev,m=c.next,h=c.action,g=c.msgs;console.group?((e=console).groupCollapsed.apply(e,p),(t=console).log.apply(t,f),(a=console).log.apply(a,h),(n=console).log.apply(n,m),(s=console).log.apply(s,g),console.groupEnd()):((r=console).log.apply(r,p),(i=console).log.apply(i,f),(d=console).log.apply(d,h),(l=console).log.apply(l,m),(u=console).log.apply(u,g))}())},t.log=function(){if(n){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];o.msgs=o.msgs.concat([].concat(t,["\n"]))}}},"./src/module/dragDrop/undo/helpers.js":function(e,t,a){"use strict";t.__esModule=!0,t.parseActions=o,t.isHistory=function(e){return n.Map.isMap(e)?"undefined"!==typeof e.get("present")&&"undefined"!==typeof e.get("future")&&"undefined"!==typeof e.get("past")&&n.List.isList(e.get("future"))&&n.List.isList(e.get("past")):"undefined"!==typeof e.present&&"undefined"!==typeof e.future&&"undefined"!==typeof e.past&&Array.isArray(e.future)&&Array.isArray(e.past)},t.distinctState=function(){return console.warn("distinctState is deprecated in beta4 and newer. The distinctState behavior is now default, which means only actions resulting in a new state are recorded. See https://github.com/omnidan/redux-undo#filtering-actions for more details."),function(){return!0}},t.includeAction=function(e){var t=o(e);return function(e){return t.indexOf(e.type)>=0}},t.excludeAction=function(e){var t=o(e);return function(e){return t.indexOf(e.type)<0}},t.combineFilters=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.reduce((function(e,t){return function(a,n,o){return e(a,n,o)&&t(a,n,o)}}),(function(){return!0}))},t.groupByActionTypes=function(e){var t=o(e);return function(e){return t.indexOf(e.type)>=0?e.type:null}},t.newHistory=function(e,t,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.fromJS)({past:e,present:t,future:a,group:o,_latestUnfiltered:t,index:e.size,limit:e.size+a.size+1})};var n=a("./node_modules/immutable3/dist/immutable.js");function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Array.isArray(e)?e:"string"===typeof e?[e]:t}},"./src/module/dragDrop/undo/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/dragDrop/undo/actions.js");Object.defineProperty(t,"ActionTypes",{enumerable:!0,get:function(){return n.ActionTypes}}),Object.defineProperty(t,"ActionCreators",{enumerable:!0,get:function(){return n.ActionCreators}});var o=a("./src/module/dragDrop/undo/helpers.js");Object.defineProperty(t,"parseActions",{enumerable:!0,get:function(){return o.parseActions}}),Object.defineProperty(t,"isHistory",{enumerable:!0,get:function(){return o.isHistory}}),Object.defineProperty(t,"distinctState",{enumerable:!0,get:function(){return o.distinctState}}),Object.defineProperty(t,"includeAction",{enumerable:!0,get:function(){return o.includeAction}}),Object.defineProperty(t,"excludeAction",{enumerable:!0,get:function(){return o.excludeAction}}),Object.defineProperty(t,"combineFilters",{enumerable:!0,get:function(){return o.combineFilters}}),Object.defineProperty(t,"groupByActionTypes",{enumerable:!0,get:function(){return o.groupByActionTypes}}),Object.defineProperty(t,"newHistory",{enumerable:!0,get:function(){return o.newHistory}});var s=a("./src/module/dragDrop/undo/reducer.js");Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=s,e&&e.__esModule?e:{default:e}).default;var e}})},"./src/module/dragDrop/undo/reducer.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./node_modules/babel-runtime/helpers/extends.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.set(t.debug);var a={initTypes:(0,d.parseActions)(t.initTypes,["@@redux-undo/INIT"]),limit:t.limit,filter:t.filter||function(){return!0},groupBy:t.groupBy||function(){return null},undoType:t.undoType||i.ActionTypes.UNDO,redoType:t.redoType||i.ActionTypes.REDO,jumpToPastType:t.jumpToPastType||i.ActionTypes.JUMP_TO_PAST,jumpToFutureType:t.jumpToFutureType||i.ActionTypes.JUMP_TO_FUTURE,jumpType:t.jumpType||i.ActionTypes.JUMP,clearHistoryType:Array.isArray(t.clearHistoryType)?t.clearHistoryType:[t.clearHistoryType||i.ActionTypes.CLEAR_HISTORY],neverSkipReducer:t.neverSkipReducer||!1,ignoreInitialState:t.ignoreInitialState||!1,syncFilter:t.syncFilter||!1},n=a.history;return function(t,o){for(var c=arguments.length,v=Array(c>2?c-2:0),_=2;_<c;_++)v[_-2]=arguments[_];t||(t=n),r.start(o,t);var y=t;if(!n)if(r.log("history is uninitialized"),void 0===t||l.Map.isMap(t)&&t.isEmpty()){var b={type:i.ActionTypes.CLEAR_HISTORY},x=e.apply(void 0,[t,b].concat(v));y=u(x,a.ignoreInitialState),r.log("do not set initialState on probe actions")}else(0,d.isHistory)(t)?(y=n=a.ignoreInitialState?t:(0,d.newHistory)(t.get("past"),t.get("present"),t.get("future")),r.log("initialHistory initialized: initialState is a history",n)):(y=n=u(t,a.ignoreInitialState),r.log("initialHistory initialized: initialState is not a history",n));var C=function(t){return a.neverSkipReducer?(0,s.default)({},t,{present:e.apply(void 0,[t.present,o].concat(v))}):t},j=void 0;switch(o.type){case void 0:return y;case a.undoType:return j=h(y,-1),r.log("perform undo"),r.end(j),C(j);case a.redoType:return j=h(y,1),r.log("perform redo"),r.end(j),C(j);case a.jumpToPastType:return j=m(y,o.index),r.log("perform jumpToPast to "+o.index),r.end(j),C(j);case a.jumpToFutureType:return j=f(y,o.index),r.log("perform jumpToFuture to "+o.index),r.end(j),C(j);case a.jumpType:return j=h(y,o.index),r.log("perform jump to "+o.index),r.end(j),C(j);case g(o.type,a.clearHistoryType):return j=u(y.get("present"),a.ignoreInitialState),r.log("perform clearHistory"),r.end(j),C(j);default:if(j=e.apply(void 0,[y.get("present"),o].concat(v)),a.initTypes.some((function(e){return e===o.type})))return r.log("reset history due to init action"),r.end(n),n;if(y.get("_latestUnfiltered")===j)return y;var S="function"===typeof a.filter&&!a.filter(o,j,y);if(S){var I=(0,d.newHistory)(y.get("past"),j,y.get("future"),y.get("group"));return a.syncFilter||I.set("_latestUnfiltered",y.get("_latestUnfiltered")),r.log("filter ignored action, not storing it in past"),r.end(I),I}var T=a.groupBy(o,j,y);if(null!=T&&T===y.get(T)){var w=(0,d.newHistory)(y.get("past"),j,y.get("future"),y.get("group"));return r.log("groupBy grouped the action with the previous action"),r.end(w),w}return y=p(y,j,a.limit,T),r.log("inserted new state into history"),r.end(y),y}}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a("./src/module/dragDrop/undo/debug.js")),i=a("./src/module/dragDrop/undo/actions.js"),d=a("./src/module/dragDrop/undo/helpers.js"),l=a("./node_modules/immutable3/dist/immutable.js");function u(e,t){var a=(0,d.newHistory)((0,l.List)(),e,(0,l.List)());return t?a.set("_latestUnfiltered",null):a}function c(e){return(e.get("past")||(0,l.List)()).size+1}function p(e,t,a,n){r.log("inserting",t),r.log("new free: ",a-c(e));var o=e.get("past")||(0,l.List)(),s=e.get("_latestUnfiltered"),i=a&&c(e)>=a,u=o.slice(i?1:0),p=s?u.push(s):u;return(0,d.newHistory)(p,t,(0,l.List)(),n)}function f(e,t){if(t<0||t>=(e.get("future")||(0,l.List)()).size)return e;var a=e.get("past")||(0,l.List)(),n=e.get("future")||(0,l.List)(),o=e.get("_latestUnfiltered"),s=a.push(o).concat(n.slice(0,t)),r=n.get(t),i=n.slice(t+1);return(0,d.newHistory)(s,r,i)}function m(e,t){if(t<0||t>=(e.get("past")||(0,l.List)()).size)return e;var a=e.get("past")||(0,l.List)(),n=e.get("future")||(0,l.List)(),o=e.get("_latestUnfiltered"),s=a.slice(0,t),r=a.slice(t+1).push(o).concat(n),i=a.get(t);return(0,d.newHistory)(s,i,r)}function h(e,t){return t>0?f(e,t-1):t<0?m(e,e.get("past").size+t):e}function g(e,t){return t.indexOf(e)>-1?e:!e}},"./src/module/explain/ArithmeticExplain.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(s(a("./node_modules/react/index.js")),s(a("./src/components/markdown/MarkdownView.jsx")));function s(e){return e&&e.__esModule?e:{default:e}}var r=(0,n.default)(o.default,{title:"\u7b97\u6cd5\u53ca\u8ba1\u7b97\u6846\u67b6",markdownUrl:"docs/about-arith.md"});t.default=function(){return r}},"./src/module/explain/SystemExplain.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(s(a("./node_modules/react/index.js")),s(a("./src/components/markdown/MarkdownView.jsx")));function s(e){return e&&e.__esModule?e:{default:e}}var r=(0,n.default)(o.default,{title:"\u7b97\u6cd5\u53ca\u8ba1\u7b97\u6846\u67b6",markdownUrl:"docs/about-release.md"});t.default=function(){return r}},"./src/module/explain/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/explain/ArithmeticExplain.jsx");Object.defineProperty(t,"ArithmeticExplain",{enumerable:!0,get:function(){return s(n).default}});var o=a("./src/module/explain/SystemExplain.jsx");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"SystemExplain",{enumerable:!0,get:function(){return s(o).default}})},"./src/module/externalModel/ExternalModelPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/babel-runtime/helpers/jsx.js")),o=j(a("./node_modules/antd/es/message/index.js")),s=j(a("./node_modules/babel-runtime/helpers/extends.js")),r=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=j(a("./node_modules/babel-runtime/helpers/inherits.js")),l=j(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=a("./node_modules/react/index.js"),c=(j(u),j(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=j(a("./src/containers/toJS.jsx")),f=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(a("./node_modules/immutable3/dist/immutable.js"),j(a("./src/module/externalModel/component/ToolBar.jsx"))),h=a("./src/utils/publicPath.js"),g=j(a("./src/module/externalModel/component/ExtenalModelList.jsx")),v=j(a("./src/module/externalModel/component/CreateExternalModel.jsx")),_=j(a("./src/module/externalModel/component/DeployExternalModel.jsx")),y=a("./src/redux/reducers/externalModel.js"),b=a("./src/redux/selectors/sysManager/ftpBasesManager.js"),x=a("./src/redux/reducers/sysManager/ftpBasesManager.js"),C=a("./src/redux/selectors/externalModel.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=l.default.confirm,I=(0,p.default)(g.default),T=(0,p.default)(v.default),w=(0,p.default)(_.default),E=f.default.div.withConfig({displayName:"ExternalModelPage__ContentWrapper",componentId:"z37nrh-0"})(["width:100%;display:block;padding:20px 50px 0px;margin-bottom:20px;background-color:rgb(255,255,255);"]),D=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.handleQuery=function(e){n.fetchList((0,s.default)({modelName:n.state.keyword},e))},n.fetchList=function(e){n.props.dispatch(y.externalModelActions.getExternalModelListRequest(e))},n.showCreateModal=function(){n.setState({createModalVisible:!0,currentItem:null})},n.hideCreateModal=function(){n.setState({createModalVisible:!1})},n.showDeployModal=function(e){n.setState({deployModalVisible:!0,currentItem:e})},n.hideDeployModal=function(){n.setState({deployModalVisible:!1})},n.showModifyModal=function(e){n.setState({createModalVisible:!0,currentItem:e})},n.handleChangeKeyword=function(e){n.setState({keyword:e.target.value})},n.handleSaveModel=function(e){n.props.dispatch(y.externalModelActions.saveExternalModelRequest({model:e}))},n.handleDeployModel=function(e){n.props.dispatch(y.externalModelActions.deployExternalModelRequest(e))},n.handleCommitTrain=function(e){var t=n;S({title:"\u64cd\u4f5c\u786e\u8ba4?",content:"\u786e\u5b9a\u8981\u542f\u52a8\u6a21\u578b\u8bad\u7ec3\u5417\uff1f",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){t.props.dispatch(y.externalModelActions.commitTrainRequest({modelId:e}))}})},n.handleStopTrain=function(e){var t=n;S({title:"\u64cd\u4f5c\u786e\u8ba4?",content:"\u786e\u5b9a\u8981\u505c\u6b62\u8bad\u7ec3\u4e2d\u7684\u6a21\u578b\u5417\uff1f",okText:"\u786e\u5b9a",okType:"danger",cancelText:"\u53d6\u6d88",onOk:function(){t.props.dispatch(y.externalModelActions.stopTrainRequest({modelId:e}))}})},n.handleDownloadLog=function(e){window.location.href=(0,h.urlFormat)("/api/externalModels/"+e+"/actions/getLogFile")},n.validateRepeat=function(e,t){n.props.dispatch(y.externalModelActions.validateRepeatRequest({modelId:e,modelName:t}))},n.deleteExtenalModel=function(e){var t=n;S({title:"\u64cd\u4f5c\u786e\u8ba4?",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6a21\u578b\u5417\uff1f",okText:"\u786e\u5b9a",okType:"danger",cancelText:"\u53d6\u6d88",onOk:function(){t.props.dispatch(y.externalModelActions.deleteExternalModelRequest({modelId:e}))}})},n.state={keyword:"",currentItem:null,createModalVisible:!1,deployModalVisible:!1},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){var e=this.props.pagination,t=e&&e.get("limit")||10,a=e&&e.get("offset")||1;this.fetchList({limit:t,offset:a}),this.props.dispatch(x.ftpBasesActions.getFtpArrayRequest())},t.prototype.componentDidUpdate=function(e){!0===e.saveLoading&&!1===this.props.saveLoading&&(o.default.info("\u4fdd\u5b58\u6a21\u578b\u6210\u529f\uff01"),this.hideCreateModal(),this.handleQuery()),!0===e.deployLoading&&!1===this.props.deployLoading&&(o.default.info("\u53d1\u5e03\u6a21\u578b\u6210\u529f\uff01"),this.hideDeployModal(),this.handleQuery()),!0===e.deleteLoading&&!1===this.props.deleteLoading&&(o.default.info("\u5220\u9664\u6a21\u578b\u6210\u529f\uff01"),this.handleQuery()),!0===e.commitTrainLoading&&!1===this.props.commitTrainLoading&&(o.default.info("\u63d0\u4ea4\u6a21\u578b\u8bad\u7ec3\u6210\u529f\uff01"),this.handleQuery()),!0===e.stopTrainLoading&&!1===this.props.stopTrainLoading&&(o.default.info("\u505c\u6b62\u6a21\u578b\u8bad\u7ec3\u6210\u529f\uff01"),this.handleQuery())},t.prototype.componentWillUnmount=function(){this.props.dispatch(y.externalModelActions.resetExternalModel())},t.prototype.render=function(){var e=this,t=this.props,a=t.data,o=t.pagination,s=t.isLoading,r=a&&a.find((function(t){return t.get("modelId")==e.state.currentItem}));return(0,n.default)(E,{},void 0,(0,n.default)(m.default,{showCreateModal:this.showCreateModal,handleQuery:this.handleQuery,handleChangeKeyword:this.handleChangeKeyword,keyword:this.state.keyword}),(0,n.default)(I,{data:a,pagination:o,isLoading:s,handleQuery:this.handleQuery,showModifyModal:this.showModifyModal,showDeployModal:this.showDeployModal,deleteExtenalModel:this.deleteExtenalModel,stopTrain:this.handleStopTrain,commitTrain:this.handleCommitTrain,downloadLogFile:this.handleDownloadLog}),this.state.createModalVisible&&(0,n.default)(T,{modelId:this.state.currentItem,hideCreateModal:this.hideCreateModal,handleSaveModel:this.handleSaveModel,validateRepeat:this.validateRepeat,modelInfo:r,ftpDs:this.props.ftpDs}),this.state.deployModalVisible&&(0,n.default)(w,{modelId:this.state.currentItem,modelInfo:r,hideDeployModal:this.hideDeployModal,handleDeployModel:this.handleDeployModel,ftpDs:this.props.ftpDs}))},t}(u.Component);D.defaultProps={isLoading:!0};t.default=(0,c.connect)((function(e){return{isLoading:(0,C.selectFetchListLoading)(e),data:(0,C.selectExternalModelList)(e),pagination:(0,C.selectExternalModelPagination)(e),saveLoading:(0,C.selectSaveModelLoading)(e),validateLoading:(0,C.selectValidateRepeatLoading)(e),deployLoading:(0,C.selectDeployModelLoading)(e),deleteLoading:(0,C.selectDeleteModelLoading)(e),commitTrainLoading:(0,C.selectCommitTrainLoading)(e),stopTrainLoading:(0,C.selectStopTrainLoading)(e),ftpDs:(0,b.selectFtpBasesArray)(e)}}))(D)},"./src/module/externalModel/component/CreateExternalModel.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/antd/es/alert/index.js")),s=S(a("./node_modules/antd/es/upload/index.js")),r=S(a("./node_modules/babel-runtime/helpers/extends.js")),i=S(a("./node_modules/antd/es/modal/index.js")),d=S(a("./node_modules/babel-runtime/helpers/jsx.js")),l=S(a("./node_modules/antd/es/message/index.js")),u=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=S(a("./node_modules/babel-runtime/helpers/inherits.js")),f=S(a("./node_modules/antd/es/select/index.js")),m=S(a("./node_modules/antd/es/input/index.js")),h="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\externalModel\\component\\CreateExternalModel.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var g=a("./node_modules/react/index.js"),v=S(g),y=(S(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),b=a("./src/utils/publicPath.js"),x=a("./node_modules/@ant-design/icons/es/index.js"),C=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var j=a("./src/redux/selectors/externalModel.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=C.Form.Item,T=m.default.TextArea,w=f.default.Option,E=(0,d.default)(n.default,{},void 0,(0,d.default)(x.UploadOutlined,{})," \u9009\u62e9\u6a21\u578b\u6587\u4ef6"),D=(0,d.default)(m.default,{placeholder:"\u6a21\u578b\u8bad\u7ec3\u547d\u4ee4"}),M=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.handleSaveModel=function(e){e.preventDefault();var t=n;n.props.form.validateFields((function(e,a){if(!e){var o=!0;_.isArray(a.uploadPath)&&(a.uploadPath=JSON.stringify(_.map(a.uploadPath,(function(e){return"uploading"===e.status?(t.setState({upload_status:"\u6587\u4ef6\u4e0a\u4f20\u4e2d,\u8bf7\u7a0d\u540e\u4fdd\u5b58"}),void(o=!1)):"error"===e.status?(t.setState({upload_status:"\u6587\u4ef6\u4e0a\u4f20\u51fa\u9519\uff0c\u8bf7\u91cd\u65b0\u4e0a\u4f20\u540e\u4fdd\u5b58"}),void(o=!1)):{uid:t.deployFileMap[e.uid]||e.uid,name:e.name}})))),t.props.modelId&&(a.modelId=t.props.modelId),o&&n.props.handleSaveModel(a)}}))},n.handleCheckRepeat=function(){var e=n;e.props.form.validateFields(["modelName"],{},(function(t){if(!t){var a=e.props.modelId,n=_.trim(e.props.form.getFieldValue("modelName"));e.setState({validateingNameRepeat:"validating"}),e.props.validateRepeat(a,n)}}))},n.normFile=function(e){return Array.isArray(e)?e:e&&e.fileList},n.deployFileMap={},n.state={validateingNameRepeat:null,upload_status:null},n}return(0,p.default)(t,e),t.getDerivedStateFromProps=function(e){return null===e.modelNameIsRepeat||e.validateLoading?null:{validateingNameRepeat:e.modelNameIsRepeat?"error":"success"}},t.prototype.render=function(){var e=this,t=this.props.form,a=t.getFieldDecorator,n=t.getFieldValue,u={action:(0,b.urlFormat)("/api/commons/actions/uploadFiles"),headers:{authorization:"authorization-text"},data:{filesType:"externalModel"},beforeUpload:function(e){var t=n("uploadPath");if(_.isArray(t)&&_.filter(t,{name:e.name}).length>0)return l.default.error("\u6587\u4ef6"+e.name+"\u5df2\u5b58\u5728\uff0c\u6587\u4ef6\u540d\u4e0d\u80fd\u91cd\u590d!"),e.status="error",!1},onChange:function(t){var a=t.file,n="done"===a.status&&a.response.data;n&&(e.deployFileMap[a.uid]=n)},multiple:!0},c=this.props.modelInfo||{},p={labelCol:{span:6},wrapperCol:{span:18}},g=this.props.ftpDs||[],y=_.find(g,{ftpId:this.props.form.getFieldValue("shellFtp")}),x=null,j=null;return y&&(x=y.ftpFilepath,j=y.ftpHost),(0,d.default)(i.default,{visible:!0,title:"\u4e0a\u4f20\u6a21\u578b",maskClosable:!1,okText:"\u4fdd\u5b58",confirmLoading:this.props.saveLoading,onOk:this.handleSaveModel,cancelText:"\u53d6\u6d88",onCancel:this.props.hideCreateModal},void 0,(0,d.default)(C.Form,{},void 0,v.default.createElement(I,(0,r.default)({label:"\u6a21\u578b\u540d\u79f0"},p,{hasFeedback:!0},null!==this.state.validateingNameRepeat&&{validateStatus:this.state.validateingNameRepeat},"error"===this.state.validateingNameRepeat&&{help:"\u6a21\u578b\u540d\u79f0\u91cd\u590d"},{__source:{fileName:h,lineNumber:136}}),a("modelName",{initialValue:c.modelName||"",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6a21\u578b\u540d\u79f0"},{max:50,message:"\u6a21\u578b\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26"},{pattern:"^[\u4e00-\u9fa5_a-zA-Z0-9]+$",message:"\u6a21\u578b\u540d\u79f0\u4ec5\u80fd\u5305\u542b\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e0b\u5212\u7ebf\uff0c\u5305\u62ec\u4e2d\u6587"}]})((0,d.default)(m.default,{placeholder:"\u6a21\u578b\u540d\u79f0",maxLength:80,onBlur:this.handleCheckRepeat}))),v.default.createElement(I,(0,r.default)({label:"\u6a21\u578b\u6587\u4ef6"},p,null!==this.state.upload_status&&{validateStatus:"error",help:this.state.upload_status},{__source:{fileName:h,lineNumber:161}}),a("uploadPath",{valuePropName:"fileList",getValueFromEvent:this.normFile,initialValue:c.uploadPath,rules:[{required:!0,message:"\u672a\u4e0a\u4f20\u6a21\u578b\u6587\u4ef6"}]})(v.default.createElement(s.default,(0,r.default)({},u,{__source:{fileName:h,lineNumber:177}}),E))),v.default.createElement(I,(0,r.default)({label:"\u6a21\u578b\u8bad\u7ec3\u4e3b\u673aFTP"},p,{__source:{fileName:h,lineNumber:184}}),a("shellFtp",{initialValue:c.shellFtp,rules:[{required:!0,message:"\u8bf7\u9009\u62e9ftp"}]})((0,d.default)(f.default,{showSearch:!0,placeholder:"\u8bf7\u9009\u62e9FTP"},void 0,g.map((function(e,t){return(0,d.default)(w,{value:e.ftpId},t,e.ftpName)})))),x&&(0,d.default)(o.default,{message:(0,d.default)("div",{},void 0,(0,d.default)("p",{},void 0,"FTP\u4e3b\u673a : ",j),(0,d.default)("p",{},void 0,"\u5b58\u50a8\u8def\u5f84 : ",x)),type:"info"})),v.default.createElement(I,(0,r.default)({label:"\u6a21\u578b\u8bad\u7ec3\u547d\u4ee4"},p,{__source:{fileName:h,lineNumber:214}}),a("shellCommand",{initialValue:c.shellCommand||"start.sh",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6a21\u578b\u8bad\u7ec3\u6267\u884c\u547d\u4ee4"},{max:200,message:"\u6a21\u578b\u5907\u6ce8\u4e0d\u80fd\u8d85\u8fc7200\u4e2a\u5b57\u7b26"}]})(D),(0,d.default)(o.default,{message:(0,d.default)("div",{},void 0,"\u63d0\u793a\u4fe1\u606f: \u8f93\u5165start.sh,start.sh \u5185\u5bb9\u5fc5\u987b\u4e3a\u540e\u53f0\u8dd1\u7684\u547d\u4ee4, \u4f8b\u5982:",(0,d.default)("pre",{style:{width:300,wordBreak:"break-all",whiteSpace:"pre-wrap"}},void 0,"model_num=$1 nohup sh run.sh $model_num >> log/${model_num}.log 2>&1 &")),type:"info"})),v.default.createElement(I,(0,r.default)({label:"\u5907\u6ce8"},p,{__source:{fileName:h,lineNumber:240}}),a("modelDesc",{initialValue:c.modelDesc||"",rules:[{max:300,message:"\u6a21\u578b\u5907\u6ce8\u4e0d\u80fd\u8d85\u8fc7300\u4e2a\u5b57\u7b26"}]})((0,d.default)(T,{autosize:{minRows:2,maxRows:5},placeholder:"\u5907\u6ce8"})))))},t}(g.PureComponent);M.defaultProps={};t.default=(0,y.connect)((function(e){return{modelNameIsRepeat:(0,j.selectValidateRepeat)(e),validateLoading:(0,j.selectValidateRepeatLoading)(e),saveLoading:(0,j.selectSaveModelLoading)(e)}}))(C.Form.create()(M))},"./src/module/externalModel/component/DeployExternalModel.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/alert/index.js")),o=g(a("./node_modules/antd/es/modal/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/babel-runtime/helpers/extends.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=g(a("./node_modules/react/index.js")),p=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),f=g(a("./node_modules/lodash/lodash.js")),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./src/redux/selectors/externalModel.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=m.Form.Item,_=u.default.Option,y=(0,s.default)(n.default,{message:"\u90e8\u7f72\u53d1\u5e03\u65f6,\u4f1a\u5728ftp\u8def\u5f84\u4e0b\u6309\u6a21\u578b\u540d\u79f0\u521b\u5efa\u6587\u4ef6\u5939\uff0c\u4fdd\u5b58\u6a21\u578b\u6587\u4ef6",type:"info",showIcon:!0}),b=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.deployModel=function(e){e.preventDefault(),n.props.form.validateFields((function(e,t){return!e&&n.props.handleDeployModel((0,r.default)({},t,{modelId:n.props.modelId}))}))},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.hideDeployModal,a=void 0===t?f.default.noop:t,n=e.modelInfo,r=void 0===n?{}:n,i=e.form,d=e.ftpDs,l=void 0===d?[]:d,c=i.getFieldDecorator,p=f.default.find(l,{ftpId:i.getFieldValue("deployFtp")}),h=null;return p&&(h=p.ftpFilepath),(0,s.default)(o.default,{visible:!0,title:"\u90e8\u7f72\u53d1\u5e03\u6a21\u578b",maskClosable:!1,okText:"\u53d1\u5e03",onOk:this.deployModel,cancelText:"\u53d6\u6d88",onCancel:a,confirmLoading:this.props.deployLoading},void 0,(0,s.default)(m.Form,{},void 0,(0,s.default)(v,{label:"\u90e8\u7f72FTP",labelCol:{span:4},wrapperCol:{span:20}},void 0,c("deployFtp",{initialValue:r.deployFtp,rules:[{required:!0,message:"\u8bf7\u9009\u62e9ftp"}]})((0,s.default)(u.default,{showSearch:!0,placeholder:"\u8bf7\u9009\u62e9FTP"},void 0,l.map((function(e,t){return(0,s.default)(_,{value:e.ftpId},t,e.ftpName)}))))),h&&(0,s.default)(v,{label:"FTP\u8def\u5f84",labelCol:{span:4},wrapperCol:{span:20}},void 0,h),y))},t}(c.default.PureComponent);b.defaultProps={};t.default=(0,p.connect)((function(e){return{deployLoading:(0,h.selectDeployModelLoading)(e)}}))(m.Form.create()(b))},"./src/module/externalModel/component/ExtenalModelList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/antd/es/divider/index.js")),o=u(a("./node_modules/antd/es/table/index.js")),s=u(a("./node_modules/antd/es/tag/index.js")),r=u(a("./node_modules/antd/es/tooltip/index.js")),i=u(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tag/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var d=u(a("./node_modules/react/index.js")),l=(u(a("./node_modules/prop-types/index.js")),a("./src/utils/dateUtil.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c={1:"\u672a\u53d1\u5e03",2:"\u5df2\u53d1\u5e03",3:"\u5f85\u91cd\u65b0\u53d1\u5e03"},p={0:"\u672a\u542f\u52a8",1:"\u8fd0\u884c\u4e2d",2:"\u6210\u529f",3:"\u5df2\u505c\u6b62","-1":"\u5931\u8d25\u672a\u9000\u51fa","-2":"\u5931\u8d25\u9000\u51fa"},f={0:"#8D9AAD",1:"#98D4FD",2:"#00CF9B",3:"#00CF9B","-1":"#FB6362","-2":"#FB6362"},m={1:"#8D9AAD",2:"#00CF9B",3:"orange"},h=(0,i.default)(n.default,{type:"vertical"}),g=(0,i.default)(n.default,{type:"vertical"}),v=(0,i.default)(n.default,{type:"vertical"}),y=(0,i.default)(n.default,{type:"vertical"});t.default=function(e){var t=e.data,a=void 0===t?[]:t,n=e.pagination,u=void 0===n?{}:n,b=e.isLoading,x=e.handleQuery,C=void 0===x?_.noop:x,j=e.showModifyModal,S=void 0===j?_.noop:j,I=e.showDeployModal,T=void 0===I?_.noop:I,w=e.deleteExtenalModel,E=void 0===w?_.noop:w,D=e.stopTrain,M=void 0===D?_.noop:D,k=e.commitTrain,P=void 0===k?_.noop:k,L=e.downloadLogFile,N=void 0===L?_.noop:L,A=[{title:"\u5e8f\u53f7",dataIndex:"number",width:60,render:function(e,t,a){return a+1}},{title:"\u6a21\u578b\u540d\u79f0",dataIndex:"modelName",align:"left",render:function(e,t){return(0,i.default)(r.default,{placement:"top",title:t.modelDesc||e},void 0,e)}},{title:"\u8bad\u7ec3\u72b6\u6001",dataIndex:"trainStatus",align:"left",width:100,render:function(e){return(0,i.default)(s.default,{color:f[_.toString(e)]},void 0,p[_.toString(e)])}},{title:"\u53d1\u5e03\u72b6\u6001",dataIndex:"deployStatus",width:100,align:"left",render:function(e){return(0,i.default)("font",{color:m[_.toString(e)]},void 0,c[_.toString(e)])}},{title:"\u8bad\u7ec3\u6b21\u6570",dataIndex:"trainTimes",width:80,align:"right"},{title:"\u8fd0\u884c\u65f6\u957f",dataIndex:"trainDuration",width:150,render:function(e,t){return"0"!==_.toString(t.trainStatus)&&(0,i.default)(r.default,{placement:"top",title:(0,i.default)("div",{},void 0,(0,i.default)("p",{},void 0,"\u5f00\u59cb\u65f6\u95f4: ",t.startTime," "),(0,i.default)("p",{},void 0,"\u7ed3\u675f\u65f6\u95f4: ","1"===_.toString(t.trainStatus)?"\u672a\u7ed3\u675f":t.endTime))},void 0,(0,l.calcRelativeTime)(t.startTime,t.endTime))}},{title:"\u4e0a\u4f20\u7528\u6237",dataIndex:"updateBy",width:120,render:function(e,t){return t.updateBy||t.createBy}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",width:150,render:function(e,t){return t.updateTime||t.createTime}},{title:"\u64cd\u4f5c",dataIndex:"operate",width:220,render:function(e,t){return(0,i.default)(d.default.Fragment,{},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return S(t.modelId)}},void 0,"\u4fee\u6539"),h,"1"===_.toString(t.trainStatus)?(0,i.default)("a",{href:"javascript:;",onClick:function(){return M(t.modelId)}},void 0,"\u505c\u6b62"):(0,i.default)("a",{href:"javascript:;",onClick:function(){return P(t.modelId)}},void 0,"\u8bad\u7ec3"),"0"!==_.toString(t.trainStatus)&&(0,i.default)(d.default.Fragment,{},void 0,g,(0,i.default)("a",{href:"javascript:;",onClick:function(){return N(t.modelId)}},void 0,"\u4e0b\u8f7d\u65e5\u5fd7")),v,(0,i.default)("a",{href:"javascript:;",onClick:function(){return T(t.modelId)}},void 0,"\u53d1\u5e03"),"0"===_.toString(t.trainStatus)&&(0,i.default)(d.default.Fragment,{},void 0,y,(0,i.default)("a",{href:"javascript:;",onClick:function(){return E(t.modelId)}},void 0,"\u5220\u9664")))}}];return(0,i.default)(o.default,{loading:b,rowKey:"modelId",columns:A,dataSource:a,onChange:function(e){C({limit:e.pageSize,offset:e.current})},pagination:{current:u.offset,pageSize:u.limit,total:u.total}})}},"./src/module/externalModel/component/ToolBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/antd/es/button/index.js")),o=l(a("./node_modules/babel-runtime/helpers/jsx.js")),s=l(a("./node_modules/antd/es/input/index.js"));t.default=function(e){var t=e.showCreateModal,a=void 0===t?i.noop:t,s=e.keyword,r=void 0===s?"":s,d=e.handleQuery,l=void 0===d?i.noop:d,f=e.handleChangeKeyword,m=void 0===f?i.noop:f;return(0,o.default)(c,{},void 0,(0,o.default)("h1",{},void 0,"\u7b2c\u4e09\u65b9\u6a21\u578b\u7ba1\u7406"," ",(0,o.default)(n.default,{onClick:a,type:"primary",icon:p},void 0,"\u4e0a\u4f20\u6a21\u578b")),(0,o.default)(u,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onSearch:l,style:{width:200},value:r,onChange:m}))},a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js");l(a("./node_modules/react/index.js"));var r=a("./node_modules/@ant-design/icons/es/index.js"),i=(l(a("./node_modules/prop-types/index.js")),a("./node_modules/lodash/lodash.js")),d=l(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=s.default.Search,c=d.default.div.withConfig({displayName:"ToolBar__TopBarWrapper",componentId:"sc-1t9v70q-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:10;h1{display:flex;align-items:center;}h1 > button{margin-left:20px;}"]),p=(0,o.default)(r.PlusOutlined,{})},"./src/module/flowReasonTask/editPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.BseInfoDom=void 0;var n=j(a("./node_modules/antd/es/col/index.js")),o=j(a("./node_modules/antd/es/row/index.js")),s=j(a("./node_modules/babel-runtime/helpers/jsx.js")),r=j(a("./node_modules/babel-runtime/regenerator/index.js")),i=j(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),d=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=j(a("./node_modules/babel-runtime/helpers/inherits.js")),c=j(a("./node_modules/antd/es/input/index.js")),p=j(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=j(a("./node_modules/react/index.js")),m=(j(a("./node_modules/prop-types/index.js")),j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./node_modules/react-redux/es/index.js"),v=a("./src/utils/commonUtil.js"),y=a("./src/components/index.js"),b=a("./src/module/flowReasonTask/utils.js"),x=j(a("./src/redux/services/flowTaskService.js")),C=a("./src/module/flowReasonTask/modelEnums.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=t.BseInfoDom=m.default.div.withConfig({displayName:"BaseInfo__BseInfoDom",componentId:"sc-1p8mw9z-0"})([".ant-row{display:flex;}.ant-legacy-form-item-label{width:70px;text-align:right;}"]),I={width:"100%",minWidth:"550px"},T={marginTop:"16px"},w=p.default.Option,E=h.Form.Item,D=c.default.TextArea,M=C.ENVIRONMENT.getCodeAndDescList(),k=function(e){function t(a){var n=this;(0,d.default)(this,t);var o=(0,l.default)(this,e.call(this,a));o.setTaskIdentify=function(e){x.default.generateTaskIdentify(e).then((function(e){o.moduleData.taskIdentify=e.data,o.props.form.setFieldsValue({taskIdentify:e.data})}))},o.validateFun=function(){var e=!1;return o.isSubmit=!0,o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:o.moduleData}},o.handleChangeModuleInfo=function(e,t,a){if(o.moduleData[e]=t,"applicationId"===e&&t){if("edit"!==o.props.actionType||o.props.disabledApplication){var n=a?_.get(a,"props.label"):_.get(_.find(o.props.applicationsList,{projectApplicationId:t}),"applicationName"),s=(0,v.createModuleNameByApply)(n,"flowTask");o.moduleData.taskName=s,o.setTaskIdentify(s),o.props.form.setFieldsValue({taskName:s})}o.props.onApplicationChange&&o.props.onApplicationChange(t),"taskName"===e&&t&&"edit"!==o.props.actionType&&o.setTaskIdentify(t)}},o.handleNameValidator=function(){var e=(0,i.default)(r.default.mark((function e(t,a,s){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a&&_.trim(a)){e.next=3;break}return s(""),e.abrupt("return");case 3:if(!o.isSubmit){e.next=7;break}e.t0="",e.next=10;break;case 7:return e.next=9,(0,b.checkTaskNameIsRepeat)(o.moduleData.taskId,a,o.props.deployEnv);case 9:e.t0=e.sent;case 10:e.t0&&s("\u4efb\u52a1\u540d\u79f0\u91cd\u590d"),s();case 13:case"end":return e.stop()}}),e,n)})));return function(t,a,n){return e.apply(this,arguments)}}(),o.handleTaskIdentifyValidator=function(){var e=(0,i.default)(r.default.mark((function e(t,a,s){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a&&_.trim(a)){e.next=3;break}return s(""),e.abrupt("return");case 3:if(!o.isSubmit){e.next=7;break}e.t0="",e.next=10;break;case 7:return e.next=9,(0,b.checkTaskIdentifyIsRepeat)(a);case 9:e.t0=e.sent;case 10:e.t0&&s("\u4efb\u52a1\u6807\u8bc6\u91cd\u590d"),s();case 13:case"end":return e.stop()}}),e,n)})));return function(t,a,n){return e.apply(this,arguments)}}(),o.moduleData={taskId:_.get(a,"moduleData.taskId",""),taskName:_.get(a,"moduleData.taskName",""),taskDesc:_.get(a,"moduleData.taskDesc",""),applicationId:_.get(a,"moduleData.applicationId",""),deployEnv:_.get(a,"moduleData.deployEnv",""),taskIdentify:_.get(a,"moduleData.taskIdentify","")},o.isSubmit=!1;var s=o.props.setValidateFunc;return _.isFunction(s)&&s("baseInfo",o.validateFun),o}return(0,u.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.applicationId!==e.applicationId&&Array.isArray(this.props.applicationsList)&&this.props.applicationsList.length>0&&this.handleChangeModuleInfo("applicationId",this.props.applicationId),!_.isEqual(e.applicationsList,this.props.applicationsList)&&this.props.applicationId&&this.handleChangeModuleInfo("applicationId",this.props.applicationId)},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.applicationsList;return(0,s.default)(S,{},void 0,(0,s.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,s.default)(h.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(E,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,t("applicationId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:this.moduleData.applicationId||void 0})((0,s.default)(p.default,{disabled:"edit"===this.props.actionType||this.props.disabledApplication,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e",showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},onChange:function(t,a){return e.handleChangeModuleInfo("applicationId",t,a)},style:{width:"250px"}},void 0,Array.isArray(a)&&a.map((function(e){return(0,s.default)(w,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)})))))),(0,s.default)(o.default,{style:T},void 0,(0,s.default)(n.default,{style:{marginRight:40}},void 0,(0,s.default)(E,{label:"\u540d\u79f0",className:"sm-label"},void 0,t("taskName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0"},{validator:this.handleNameValidator},{max:50,message:"\u4efb\u52a1\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc750\u4e2a\u5b57\u7b26"}],validateTrigger:"onBlur",initialValue:this.moduleData.taskName})((0,s.default)(c.default,{style:{width:"250px"},placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0",onBlur:function(t){return e.handleChangeModuleInfo("taskName",t.target.value)}})))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)(E,{label:"\u4efb\u52a1\u6807\u8bc6",className:"sm-label"},void 0,t("taskIdentify",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4efb\u52a1\u6807\u8bc6"},{validator:this.handleTaskIdentifyValidator},{max:30,message:"\u4efb\u52a1\u6807\u8bc6\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],validateTrigger:"onBlur",initialValue:this.moduleData.taskIdentify})((0,s.default)(c.default,{disabled:Boolean("edit"===this.props.actionType),style:{width:"250px"},placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u6807\u8bc6",onChange:function(t){return e.handleChangeModuleInfo("taskIdentify",t.target.value)}}))))),(0,s.default)(o.default,{style:T},void 0,(0,s.default)(E,{label:"\u63cf\u8ff0",className:"sm-label"},void 0,t("taskDesc",{rules:[{max:300,message:"\u63cf\u8ff0\u5185\u5bb9\u4e0d\u5f97\u8d85\u8fc7300\u4e2a\u5b57\u7b26"}],initialValue:this.moduleData.taskDesc})((0,s.default)(D,{autoSize:{minRows:3,maxRows:5},style:I,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.handleChangeModuleInfo("taskDesc",t.target.value)}})))),(0,s.default)(o.default,{style:T},void 0,(0,s.default)(E,{label:"\u53d1\u5e03\u73af\u5883"},void 0,t("deployEnv",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:this.moduleData.deployEnv||"TEST"})((0,s.default)(p.default,{disabled:!0,style:{width:"350px"}},void 0,M.map((function(e){return(0,s.default)(w,{value:e.code,label:e.desc},e.code,e.desc)})))))))))},t}(f.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(h.Form.create()(k))},"./src/module/flowReasonTask/editPage/DataSourceSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/antd/es/row/index.js")),o=l(a("./node_modules/babel-runtime/helpers/jsx.js")),s=l(a("./node_modules/antd/es/select/index.js")),r=l(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var i=a("./node_modules/react/index.js"),d=(l(i),l(a("./node_modules/prop-types/index.js")),a("./src/redux/services/sysManager/kafkaService.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=r.default.Item,c=s.default.Option,p=(0,o.default)(c,{value:"kafka"},void 0,"kafka");t.default=function(e){var t=e.field,a=e.disabled,r=(0,i.useState)([]),l=r[0],f=r[1];return(0,i.useEffect)((function(){(0,d.getKafkaList)().then((function(e){f(_.get(e,"data.kafkaInfoList",[])||[])}))}),[]),(0,o.default)(n.default,{},void 0,(0,o.default)(u,{label:"\u6570\u636e\u6e90\u7c7b\u578b",name:[t,"dataSourcetype"],rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90\u7c7b\u578b"}]},void 0,(0,o.default)(s.default,{style:{width:220,marginRight:32},disabled:a},void 0,p)),(0,o.default)(u,{label:"\u6570\u636e\u6e90",name:[t,"dataSourceId"],rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90"}]},void 0,(0,o.default)(s.default,{style:{width:220},disabled:a},void 0,l.map((function(e){return(0,o.default)(c,{value:e.kafkaId},e.kafkaId,e.kafkaName)})))))}},"./src/module/flowReasonTask/editPage/EditFlowTaskPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/button/index.js")),o=w(a("./node_modules/babel-runtime/helpers/jsx.js")),s=w(a("./node_modules/babel-runtime/regenerator/index.js")),r=w(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),i=w(a("./node_modules/antd/es/message/index.js")),d=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=w(a("./node_modules/babel-runtime/helpers/inherits.js")),c=w(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=w(a("./node_modules/react/index.js")),f=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=w(a("./node_modules/lodash/lodash.js")),h=(w(a("./node_modules/prop-types/index.js")),a("./src/utils/history.js")),g=a("./src/routes/routeHelper.jsx"),v=a("./src/utils/commonUtil.js"),_=w(a("./src/module/flowReasonTask/editPage/BaseInfo.jsx")),y=a("./src/components/index.js"),b=w(a("./src/module/flowReasonTask/editPage/StartParamsConfig.jsx")),x=w(a("./src/module/modelService/createPage/ComputingResource.jsx")),C=w(a("./src/module/flowReasonTask/editPage/TaskParamsConfig.jsx")),j=a("./src/module/modelService/utils.js"),S=a("./src/module/flowReasonTask/utils.js"),I=w(a("./src/redux/services/sysManager/projectManage.js")),T=w(a("./src/redux/services/flowTaskService.js"));function w(e){return e&&e.__esModule?e:{default:e}}var E=c.default.confirm,D=f.default.div.withConfig({displayName:"EditFlowTaskPage__EditFlowTaskPageDom",componentId:"sc-1jydpal-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.ant-legacy-form-item-label{width:100px;}.lang-label-wrapper{& > .ant-legacy-form-item-label{width:100px;margin-left:-12px;}}"]),M=f.default.div.withConfig({displayName:"EditFlowTaskPage__ConfigButtonDom",componentId:"sc-1jydpal-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),k=(0,o.default)(y.LoadingIndicator,{}),P=function(e){function t(a){var n=this;(0,d.default)(this,t);var o=(0,l.default)(this,e.call(this,a));return o.componentDidMount=function(){o.fetchServiceInfo(),o.fetchApplications()},o.setValidateFunc=function(e,t,a){o.validateFuncs[e]=t;var n=a||!1;console.log(n+"\u56de\u8c03"),o.setState({result:n})},o.fetchApplications=function(){I.default.getApplicationsDropDown().then((function(e){e&&o.setState({applicationsList:e.data})})).catch((function(e){i.default.error(e.message)}))},o.setDeployArtifact=function(e){o.setState({deployArtifact:e})},o.fetchServiceInfo=function(){o.taskId&&(o.setState({loading:!0}),T.default.getFlowTaskInfo(o.taskId).then((function(e){o.setState({applicationId:m.default.get(e,"data.applicationId",""),moduleData:o.updateFormatData(e.data),loading:!1})})).catch((function(){o.setState({loading:!1})})))},o.updateFormatData=function(e){return e.runEnvParam=o.setEnvVariables(m.default.get(e,"runEnvParam")),e.envVars=e.runEnvParam,e.runParam=(0,v.isJsonString)(e.runParam)?JSON.parse(e.runParam):e.runParam,e},o.setEnvVariables=function(e){var t=[{name:"",value:"",index:"-1"}];if(e&&e.length>0){t=[];for(var a=0;a<e.length;a++)"AI_JOB_LOG_PATH"!==e[a].envName&&"AI_JOB_DATA_PATH"!==e[a].envName&&"AI_JOB_WORK_PATH"!==e[a].envName&&t.push({name:e[a].envName,value:e[a].envValue,index:a+""})}return 0===t.length&&(t=[{name:"",value:"",index:"-1"}]),t},o.savaOrSubmit=(0,r.default)(s.default.mark((function e(){var t,a,r,d,l,u,p;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={},a=!0,r={},e.t0=s.default.keys(o.validateFuncs);case 4:if((e.t1=e.t0()).done){e.next=15;break}if(d=e.t1.value,l=o.validateFuncs[d],!m.default.isFunction(l)){e.next=13;break}return e.next=10,l.call();case 10:(u=e.sent).validate&&("computingResource"===d?t.resQuotaConf=u.moduleData:t=m.default.assign(t,u.moduleData),"baseInfo"===d&&(r=u.moduleData)),a&&(a=u.validate);case 13:e.next=4;break;case 15:"create"===o.actionType&&(t.deployEnv=o.state.profile),(0,j.getArrayByKeyIsRedo)(t.runEnvParam,"name")&&(a=!1,i.default.error("\u73af\u5883\u53d8\u91cf\u540d\u79f0\u91cd\u590d\uff01")),t=m.default.assign(t,r),p=o,a&&c.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){p.submitModalOk(t)},onCancel:function(){}});case 20:case"end":return e.stop()}}),e,n)}))),o.submitModalOk=function(e){var t=o;o.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+o.actionType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var a=(0,S.formatFlowTaskData)(e);("create"===o.actionType?T.default.createFlowTaskInfo:T.default.editFlowTaskInfo).call(o,a).then((function(){i.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,h.navigateTo)(g.flowTaskUrl.list(t.state.profile))}),2e3)}))},o.submitModalCancel=function(){o.setState({modalVisible:!1})},o.cancel=function(){var e=o;E({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,h.navigateTo)(g.flowTaskUrl.list(e.state.profile))}})},o.handleStructureTypeChange=function(e){var t=o.state.isCustomApi;t="CODE"===e||"MIRRORVERSION"===e,o.setState({isCustomApi:t})},o.handleApplicationChange=function(e){o.setState({applicationId:e})},o.actionType=m.default.get(a.match,"params.action",null),o.taskId=m.default.get(a.match,"params.taskId",null),o.env=m.default.upperCase(m.default.get(a.match,"params.env","")),o.modelId=m.default.get(a.match,"params.modelId",null),o.packageId=m.default.get(a.match,"params.packageId",null),o.state={moduleData:{applicationId:m.default.get(a.match,"params.applicationId",""),artifactId:o.modelId,packageId:o.packageId,deployEnv:o.env,runParam:{reasoningInputSetting:{dataSourcetype:"kafka"},reasoningOutputSetting:{dataSourcetype:"kafka"}}},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1,applicationsList:[],profile:o.env,applicationId:m.default.get(a.match,"params.applicationId",""),deployArtifact:"MODEL",result:!1},o.validateFuncs={},o}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,s=t.moduleData,r=t.applicationId,i=t.modalTxt,d=t.loading,l=t.confirmLoading,u=t.applicationsList;return(0,o.default)(D,{},void 0,(0,o.default)(c.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:l,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,i)),d&&k,("create"===this.actionType||!d&&s)&&(0,o.default)("div",{},void 0,(0,o.default)(_.default,{disabledApplication:Boolean(this.modelId||this.packageId),applicationId:r,actionType:this.actionType,moduleData:s,applicationsList:u,onApplicationChange:this.handleApplicationChange,setValidateFunc:this.setValidateFunc,deployEnv:this.env}),(0,o.default)(b.default,{disabledApplication:Boolean(this.modelId||this.packageId),applicationId:r,actionType:this.actionType,moduleData:s,modelId:this.modelId,packageId:this.packageId,onStructureTypeChange:this.handleStructureTypeChange,setValidateFunc:this.setValidateFunc,applicationsList:u,onApplicationChange:this.handleApplicationChange,setDeployArtifact:this.setDeployArtifact}),(0,o.default)(x.default,{instancesMinShow:!1,noResidueCheck:!0,showFlinkCluster:!0,pubEnvType:this.state.profile,requestQuota:{instances_min:m.default.get(s,"replicaCnt",1),cpu:m.default.get(s,"resQuotaConf.cpu",1),gpu:m.default.get(s,"resQuotaConf.gpu",0),memory:m.default.get(s,"resQuotaConf.memory",1),flinkClusterId:m.default.get(s,"resQuotaConf.flinkClusterId")},canModify:!0,setValidateFunc:this.setValidateFunc,source:"OFFLINE_REASONING"}),(0,o.default)(C.default,{setValidateFunc:this.setValidateFunc,moduleData:{reasoningInputSetting:m.default.get(s,"runParam.reasoningInputSetting"),reasoningOutputSetting:m.default.get(s,"runParam.reasoningOutputSetting")}})),(0,o.default)(M,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.savaOrSubmit()},type:"primary",loading:this.state.confirmLoading,disabled:!this.state.result,style:{borderRadius:4,width:110}},void 0,"\u4fdd\u5b58")))},t}(p.default.PureComponent);t.default=P},"./src/module/flowReasonTask/editPage/ModeVersionSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/divider/index.js")),o=S(a("./node_modules/antd/es/row/index.js")),s=S(a("./node_modules/babel-runtime/helpers/jsx.js")),r=S(a("./node_modules/babel-runtime/helpers/extends.js")),i=S(a("./node_modules/babel-runtime/regenerator/index.js")),d=S(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),l=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=S(a("./node_modules/babel-runtime/helpers/inherits.js")),p=S(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=S(a("./node_modules/react/index.js")),m=S(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");S(a("./node_modules/prop-types/index.js"));var v=a("./node_modules/react-router-dom/esm/react-router-dom.js"),_=S(a("./src/redux/services/modelBase.js")),y=a("./src/routes/routeHelper.jsx"),b=a("./src/utils/commonUtil.js"),x=a("./src/module/modelBase/modelEnums.js"),C=a("./src/module/modelGuide/modelEnums.js"),j=a("./src/module/modelMirror/util.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=g.Form.Item,T=p.default.Option,w=(0,s.default)(h.PlusOutlined,{}),E=function(e){function t(a){var n=this;(0,l.default)(this,t);var o=(0,u.default)(this,e.call(this,a));o.validateFun=function(){var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=o.state.moduleData,a=m.default.find(o.state.codePackages,{packageId:t.packageId});return t.modelVersionId=m.default.get(a,"modelVid"),t.mirrorVersionId=m.default.get(a,"mirrorId"),t.baseId=m.default.get(a,"mirrorId"),{validate:e,moduleData:t}},o.updateFormData=function(e,t){o.setState((function(a){var n=a.moduleData;return n[e]=t,{moduleData:n}}),(function(){o.props.form.setFieldsValue(o.state.moduleData)}))},o.fetchData=function(){if(o.fetchModelBases(),o.props.modelId){"up"!==o.props.actionType&&o.handleModelIdChange(o.props.modelId,"fetchData"),o.props.form.setFieldsValue({modelId:o.props.modelId,packageId:o.props.packageId});var e=["create","publish","import","build"].includes(o.props.actionType);o.handleParamsChange("packageId",o.props.packageId,e)}},o.fetchModelBases=function(){o.setState({modelLoading:!0}),_.default.getModelBaseList({repoId:"default",sortType:"CREATE_AT.DESC",busiType:o.props.applicationId||""}).then((function(e){o.setState({modelBases:e.data,modelLoading:!1}),o.props.modelId&&o.changeModelUpdateApplication(o.props.modelId,e.data,!0)})).catch((function(e){console.error(e),o.setState({modelLoading:!1})}))},o.fetchVersionsByModelId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props.modelId,t=arguments[1];if(e){o.setState({versionLoading:!0});var a=o.props.reasonType+"_REASONING";_.default.getModelPackages(e,{predictType:a,status:x.PACKAGES_STATUS.CREATED}).then((function(a){var n=a.data,s=e!==o.props.modelId&&t?"":o.props.packageId;s?o.updateFormData("packageId",s):(s=m.default.get(n,"[0].packageId"),o.updateFormData("packageId",s,!0)),o.props.actionType&&"reset"!==o.props.actionType&&o.handleModelVersionChange(s,n),o.setState({codePackages:n,versionLoading:!1})})).catch((function(e){console.error(e),o.setState({codePackages:[],versionLoading:!1})}))}else o.setState({codePackages:[]})},o.handleModelVersionChange=function(){var e=(0,d.default)(i.default.mark((function e(t){var a,s,r,d,l,u,c,p,f,h,g,v,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.state.codePackages;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return o.props.onApiInterfacesChange&&o.props.onApiInterfacesChange([]),e.abrupt("return");case 3:for(a=x.DEPLOY_TYPE.NORMAL,s=x.PACKAGE_USE_TYPE.ONLINE_REASONING,r="",d=0;d<y.length;d++)t===y[d].packageId&&(o.props.setModelVersionDockerfile({mirrorId:y[d].mirrorId,modelVersionId:y[d].modelVid,packageId:t,modelId:o.props.modelId,baseMirrorVersionId:y[d].mirrorId}),r=y[d].modelVid,a=y[d].modelDeployType,s=y[d].predictType);return e.next=9,_.default.getPackageSchema(t);case 9:if(l=e.sent,u=m.default.get(l,"data.schemaJson"),u=(0,b.isJsonString)(u)?JSON.parse(u):[],o.props.onApiInterfacesChange&&o.props.onApiInterfacesChange(u),o.props.onModelDeployTypeChange&&o.props.onModelDeployTypeChange(a),a!==x.DEPLOY_TYPE.NORMAL&&(c=u.map((function(e){return{apiName:e.operationName,apiUrl:e.originUrl,operation:e.operation,requestSchema:e.requestSchema,responseSchema:e.responseSchema}})),o.props.onApiSchemaChange&&o.props.onApiSchemaChange(c)),![x.PACKAGE_USE_TYPE.OFFLINE_REASONING,x.PACKAGE_USE_TYPE.FLOW_REASONING].includes(s)){e.next=24;break}return p=o.state.moduleData.modelId,e.next=19,_.default.getPackageInterfaceFile(p,r,t,s);case 19:f=e.sent,h=m.default.get(f,"data.fileStruct",[]),g=(0,j.getPredictFilePath)(h,C.FILE_TYPE.INTERFACE),v=[x.PACKAGE_USE_TYPE.FLOW_REASONING].includes(s)?"flink run -d -py":"python",g&&o.props.setOfflineMirrorStartCommand&&o.props.setOfflineMirrorStartCommand(v+" .."+g);case 24:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),o.handleModelIdChange=function(e,t){["upgrade"].includes(o.props.actionType)&&!t&&o.props.setParams(e),o.handleParamsChange("modelId",e),o.fetchVersionsByModelId(e,!0),o.changeModelUpdateApplication(e,o.state.modelBases,!1)},o.changeModelUpdateApplication=function(e,t,a){var n=m.default.find(t,(function(t){return t.modelId===e})),s=m.default.get(n,"busiType","");s&&o.props.applicationId!==s&&o.props.onApplicationChange(s,a)},o.handleParamsChange=function(e,t,a){"packageId"==e&&a&&o.handleModelVersionChange(t),o.setState((function(a){var n=(0,r.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},o.state={modelBases:[],codePackages:[],moduleData:{},versionLoading:!1,modelLoading:!1},o.fileFuncs={};var s=o.props.setValidateFunc;return m.default.isFunction(s)&&s("ModeVersionSelect",o.validateFun),o}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){e.modelId!==this.props.modelId&&(this.updateFormData("modelId",this.props.modelId),this.fetchVersionsByModelId(this.props.modelId,!0,this.props.actionType)),e.packageId!==this.props.packageId&&this.updateFormData("packageId",this.props.packageId),e.applicationId!==this.props.applicationId&&this.fetchModelBases()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.moduleData,i=a.codePackages,d=a.modelBases,l=a.modelLoading,u=a.versionLoading,c={width:150},f={padding:"4px 8px 8px",cursor:"pointer"};return(0,s.default)(o.default,{style:{marginTop:6}},void 0,(0,s.default)(I,{label:"\u6a21\u578b\u540d\u79f0",className:"sm-label"},void 0,t("modelId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6a21\u578b"}],initialValue:l?void 0:r.modelId})((0,s.default)(p.default,{showSearch:!0,disabled:this.props.disabled,placeholder:"\u8bf7\u9009\u62e9\u6a21\u578b",onChange:function(t){return e.handleModelIdChange(t)},style:c,loading:l,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},dropdownRender:function(t){return(0,s.default)("div",{},void 0,t,(0,s.default)(n.default,{style:{margin:"4px 0"}}),(0,s.default)("div",{style:f,onMouseDown:function(e){return e.preventDefault()}},void 0,(0,s.default)(v.Link,{to:{pathname:y.modelBaseUrl.createModelBaseModel("default"),state:{applicationId:e.props.applicationId}},target:"_blank"},void 0,w," \u65b0\u589e\u6a21\u578b")))}},void 0,Array.isArray(d)&&d.map((function(e){return(0,s.default)(T,{value:e.modelId},e.modelId,e.modelName)}))))),(0,s.default)(I,{label:"\u7248\u672c",className:"sm-label",style:{marginLeft:40}},void 0,t("packageId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],initialValue:u?void 0:r.packageId})((0,s.default)(p.default,{showSearch:!0,optionFilterProp:"children",filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:u,onChange:function(t){return e.handleParamsChange("packageId",t,!0)},style:c,disabled:this.props.disabled},void 0,Array.isArray(i)&&i.map((function(e){return(0,s.default)(T,{value:e.packageId},e.packageId,e.packageName)}))))))},t}(f.default.PureComponent);E.defaultProps={},t.default=g.Form.create()(E)},"./src/module/flowReasonTask/editPage/StartParamsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/spin/index.js")),o=I(a("./node_modules/antd/es/tooltip/index.js")),s=I(a("./node_modules/antd/es/row/index.js")),r=I(a("./node_modules/babel-runtime/helpers/jsx.js")),i=I(a("./node_modules/antd/es/message/index.js")),d=I(a("./node_modules/babel-runtime/regenerator/index.js")),l=I(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=I(a("./node_modules/babel-runtime/helpers/extends.js")),c=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=I(a("./node_modules/babel-runtime/helpers/inherits.js")),m=I(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var h=I(a("./node_modules/react/index.js")),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=a("./src/components/index.js"),y=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),b=(I(a("./node_modules/prop-types/index.js")),a("./src/redux/services/modelMirror.js")),x=a("./node_modules/@ant-design/icons/es/index.js"),C=I(a("./src/module/modelMirror/components/EnvVariables.jsx")),j=I(a("./src/module/flowReasonTask/editPage/ModeVersionSelect.jsx")),S=a("./src/utils/dockerFileUtil.js");function I(e){return e&&e.__esModule?e:{default:e}}var T=m.default.TextArea,w={width:"100%",minWidth:"550px"},E=g.Form.Item,D=y.default.div.withConfig({displayName:"StartParamsConfig__StartParamsConfigDom",componentId:"sc-1ri2x64-0"})([".ant-row{display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:0;line-height:40px;width:100px;text-align:right;}.ant-form-item{margin-bottom:16px;}.dockerfile-wrapper{padding-left:0px;.ant-form-item{width:100%;}.ant-form-item-control-wrapper{width:80%;}.docker-file-container{padding-left:0;}.ant-legacy-form-item-label{width:108px;margin-left:-38px;}.from-div{line-height:22px;}.CodeMirror-code > div{line-height:18px;}}"]),M={marginTop:16},k={width:"100%"},P=function(e){function t(a){var n=this;(0,c.default)(this,t);var o=(0,p.default)(this,e.call(this,a));o.updateSetDockerFile=function(e){o.setState({dockerFilesLoading:!0}),(0,S.updateSetDockerFileSort)(e,{runCommand:"startcommond",model:"model"}).then((function(e){o.dockerFileSort=e,o.setState({dockerFilesLoading:!1})}))},o.setPackageValidateFunc=function(e,t){o.fileFuncs[e]=t},o.validateFun=function(){var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t?e=!0:o.setState({panelCollapse:!0})}));var t=o.state.moduleData;return Object.keys(o.fileFuncs).map((function(a){var n=o.fileFuncs[a];if(_.isFunction(n)){var s=n.call();e&&(e=s.validate),t=(0,u.default)({},t,s.moduleData)}})),{validate:e,moduleData:(0,u.default)({},t)}},o.handleParamsChange=function(e,t){o.setState((function(a){var n=(0,u.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},o.handleEnvsChange=function(){var e=(0,l.default)(d.default.mark((function e(t,a,s,r){var i;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i="minus"!==a?t[s]:r).name.trim()&&i.value.trim()&&"add"!==a&&(i.key=i.name?i.name:"",i.type="env",o.getDockerfileContent(i,s,a,t));case 2:case"end":return e.stop()}}),e,n)})));return function(t,a,n,o){return e.apply(this,arguments)}}(),o.getDockerfileContent=function(e,t,a,n){o.setState({dockerFilesLoading:!0});var s=void 0;(0,b.getDockerfileContent)({paramjson:e}).then((function(r){if("00000"===r.code){var d=r.data;if(d){d=d?d.replace(/\\n/g,"\n"):"",s=(0,S.editDockerFileByAuto)(o.dockerFileSort,d,t,a,n,e.type),o.dockerFileSort=s.dockerFileSort;var l=(0,S.transitionDockerFileSort)(o.dockerFileSort);o.handleParamsChange("dockerFile",l),o.setState({dockerFile:l,dockerFilesLoading:!1})}else o.setState({dockerFilesLoading:!1})}else(r.code="99999")&&(i.default.error(r.message),o.setState({dockerFilesLoading:!1}));"env"===e.type&&o.handleParamsChange("envVars",s.array)})).catch((function(e){o.setState({dockerFilesLoading:!1}),i.default.error(e.message)}))},o.setStartParams=function(e,t){if(t){var a={key:"",value:t,type:{runCommand:"startcommond"}[e]};o.getDockerfileContent(a)}o.handleParamsChange(e,t)},o.setModelVersionDockerfile=function(e,t){if(e){var a={key:"",value:e,type:"model"};"edit"===o.props.actionType?(0,b.getDockerfileContent)({paramjson:a}).then((function(e){if("00000"===e.code){var t=e.data,a=o.state.moduleData;t&&(t=t?t.replace(/\\n/g,"\n"):"",a.dockerFile=t,o.updateSetDockerFile(a,o.props.actionType))}})).catch((function(){o.setState({dockerFilesLoading:!1})})):o.getDockerfileContent(a,null,null,null,t||o.props.actionType)}},o.handleMirrorInfoChange=function(e){o.setState((function(t){return{moduleData:(0,u.default)({},t.moduleData,e)}}),(function(){o.props.form.setFieldsValue(e)}))},o.setDockerFile=function(e){o.dockerFileSort=(0,S.editDockerFileByHand)(o.dockerFileSort,e);var t=(0,S.transitionDockerFileSort)(o.dockerFileSort);o.setState({dockerFile:t}),o.handleParamsChange("dockerFile",t)},o.state={modalVisible:!1,moduleData:a.moduleData&&"edit"===a.actionType?a.moduleData:{artifactId:a.modelId?a.modelId:"",packageId:a.packageId?a.packageId:"",runEnvParam:[{name:"",value:"",index:"-1"}],dockerFile:"ENTRYPOINT python ../predict_code/predict_main.py",runCommand:"python ../predict_code/predict_main.py",deployArtifact:"MODEL"},panelCollapse:!0,dockerFile:a.moduleData&&"edit"===a.actionType?a.moduleData.dockerFile:"ENTRYPOINT python ../predict_code/predict_main.py",dockerFilesLoading:!1},o.dockerFileSort="edit"===a.actionType?[]:[{type:"startcommond",data:"ENTRYPOINT python ../predict_code/predict_main.py",sort:321}],o.fileFuncs={};var s=o.props.setValidateFunc;return _.isFunction(s)&&s("startParamsConfig",o.validateFun),o}return(0,f.default)(t,e),t.prototype.componentDidMount=function(){var e=(0,u.default)({},this.state.moduleData);this.props.moduleData&&("edit"===this.props.actionType&&this.updateSetDockerFile(e),this.setState({dockerFile:e.dockerFile,moduleData:e}))},t.prototype.render=function(){var e=this,t=this.state,a=t.moduleData,i=t.panelCollapse,d=t.dockerFile,l=t.dockerFilesLoading,u=this.props.form.getFieldDecorator;return(0,r.default)(D,{},void 0,(0,r.default)(v.ModelConfigPanel,{title:"\u9009\u62e9\u5185\u5bb9",style:k},void 0,(0,r.default)(g.Form,{labelAlign:"right"},void 0,(0,r.default)(j.default,{actionType:this.props.actionType,modelId:_.get(a,"artifactId",""),modelVersionId:_.get(a,"artifactVersionId",""),packageId:_.get(a,"packageId",""),reasonType:"STREAMING",applicationId:this.props.applicationId,setValidateFunc:this.setPackageValidateFunc,disabled:Boolean(this.props.modelId),onApplicationChange:this.props.onApplicationChange,setModelVersionDockerfile:this.setModelVersionDockerfile,setOfflineMirrorStartCommand:function(t){return e.setStartParams("runCommand",t)}}))),(0,r.default)(v.ModelConfigPanel,{title:"\u542f\u52a8\u53c2\u6570",style:k,collapse:i,onToggleExpand:function(t){e.setState({panelCollapse:t})}},void 0,(0,r.default)(g.Form,{layout:"inline",labelAlign:"right"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(E,{label:"\u6267\u884c\u547d\u4ee4"},void 0,u("runCommand",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6267\u884c\u547d\u4ee4"}],initialValue:a.runCommand||""})((0,r.default)(T,{autoSize:{minRows:3,maxRows:5},style:w,placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u6267\u884c\u547d\u4ee4",onBlur:function(t){return e.setStartParams("runCommand",t.target.value)}}))),(0,r.default)(E,{help:""},void 0,(0,r.default)(o.default,{title:"\u591a\u547d\u4ee4\u8bf7\u7528\u201c;\u201d\u9694\u79bb"},void 0,(0,r.default)(x.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),(0,r.default)(n.default,{spinning:l,tip:"\u547d\u4ee4\u751f\u6210\u4e2d\u8bf7\u7a0d\u540e...."},void 0,(0,r.default)(C.default,{getFieldDecorator:u,wrapStyle:M,labelText:"\u73af\u5883\u53d8\u91cf",envVariables:_.get(a,"runEnvParam"),onMirrorChange:function(t,a,n,o){e.handleEnvsChange(t,a,n,o)}}),(0,r.default)(v.DockerfileContainer,{style:{paddingLeft:10},dockerFiles:d,setDockerFile:function(t){e.setDockerFile(t)}})))))},t}(h.default.PureComponent);t.default=g.Form.create()(P)},"./src/module/flowReasonTask/editPage/TaskParamsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/jsx.js")),o=l(a("./node_modules/babel-runtime/regenerator/index.js")),s=l(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),r=l(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/form/style/index.js");l(a("./node_modules/react/index.js")),l(a("./node_modules/prop-types/index.js"));var i=a("./src/components/index.js"),d=l(a("./src/module/flowReasonTask/editPage/DataSourceSelect.jsx"));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.moduleData,a=e.setValidateFunc,l=e.disabled,u=r.default.useForm()[0],c=function(){var e=(0,s.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.validateFields();case 3:return t=e.sent,e.abrupt("return",{validate:!0,moduleData:{runParam:t}});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{validate:!1,moduleData:{}});case 10:case"end":return e.stop()}}),e,void 0,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return _.isFunction(a)&&a("taskParamsConfig",c),(0,n.default)(r.default,{name:"dataSource",initialValues:t,form:u},void 0,(0,n.default)(i.ModelConfigPanel,{title:"\u63a8\u7406\u8f93\u5165"},void 0,(0,n.default)(d.default,{field:"reasoningInputSetting",disabled:l})),(0,n.default)(i.ModelConfigPanel,{title:"\u63a8\u7406\u8f93\u51fa"},void 0,(0,n.default)(d.default,{field:"reasoningOutputSetting",disabled:l})))};u.defaultProps={moduleData:{reasoningInputSetting:{dataSourcetype:"kafka"},reasoningOutputSetting:{dataSourcetype:"kafka"}}},t.default=u},"./src/module/flowReasonTask/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/flowReasonTask/listPage/FlowReasonTaskListPage.jsx");Object.defineProperty(t,"FlowReasonTaskListPage",{enumerable:!0,get:function(){return r(n).default}});var o=a("./src/module/flowReasonTask/editPage/EditFlowTaskPage.jsx");Object.defineProperty(t,"EditFlowTaskPage",{enumerable:!0,get:function(){return r(o).default}});var s=a("./src/module/flowReasonTask/viewPage/ViewTaskPage.jsx");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ViewTaskPage",{enumerable:!0,get:function(){return r(s).default}})},"./src/module/flowReasonTask/listPage/FlowReasonTaskListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=D(a("./node_modules/antd/es/button/index.js")),o=D(a("./node_modules/antd/es/table/index.js")),s=D(a("./node_modules/antd/es/tooltip/index.js")),r=D(a("./node_modules/babel-runtime/helpers/jsx.js")),i=D(a("./node_modules/antd/es/modal/index.js")),d=D(a("./node_modules/antd/es/message/index.js")),l=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=D(a("./node_modules/babel-runtime/helpers/inherits.js")),p=D(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var f=a("./node_modules/react/index.js"),m=D(f),h=(D(a("./node_modules/prop-types/index.js")),a("./node_modules/react-router-dom/esm/react-router-dom.js")),g=D(a("./node_modules/lodash/lodash.js")),v=D(a("./src/redux/services/sysManager/projectManage.js")),_=D(a("./src/module/flowReasonTask/listPage/SearchBar.jsx")),y=a("./src/styles/GlobalStyle.js"),b=a("./src/components/index.js"),x=D(a("./src/redux/services/flowTaskService.js")),C=D(a("./src/components/table/ColumnRender.jsx")),j=a("./src/utils/history.js"),S=a("./src/routes/routeHelper.jsx"),I=a("./src/module/flowReasonTask/modelEnums.js"),T=a("./src/module/flowReasonTask/utils.js"),w=a("./src/utils/commonUtil.js"),E=a("./src/redux/services/sysManager/flinkClusterService.js");function D(e){return e&&e.__esModule?e:{default:e}}var M=p.default.TabPane,k=(0,r.default)(M,{tab:"\u6d4b\u8bd5\u96c6\u7fa4"},"TEST"),P=(0,r.default)(M,{tab:"\u751f\u4ea7\u96c6\u7fa4"},"PRODUCT"),L=(0,r.default)(n.default,{className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1"),N=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData(),n.fetchFlinkCLuster(),v.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsData:e.data})})).catch((function(e){d.default.error(e.message)}))},n.handleDelete=function(e){var t;i.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1\u5417\uff1f",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t,a){x.default.deleteFlowTaskById(e).then((function(){t(),d.default.success("\u5220\u9664\u6210\u529f"),n.fetchData()})).catch((function(){a()}))}))},t))},n.changeSearchCond=function(e,t){"refresh"!==e?(n.searchCond[e]=g.default.trim(t),n.fetchData()):n.fetchData(t)},n.fetchData=function(e){var t="intervalRefresh"===e;n.setState({listLoading:!t}),x.default.getFlowTaskList(n.searchCond).then((function(e){n.setState((function(a){return{modelData:e.data,listLoading:!!t&&a.listLoading,pagination:e.pagination}}))})).catch((function(){n.setState({listLoading:!1})}))},n.fetchFlinkCLuster=function(){(0,E.getFlinkClusterList)({}).then((function(e){for(var t=g.default.get(e,"data.flinkInfoList"),a={},o=0;o<t.length;o++)a[t[o].flinkId]=t[o].flinkName;n.setState({flinkClusterMap:a})}))},n.handleAction=function(e,t){var a=g.default.get(n,g.default.camelCase("handle_"+e+"_action"));a&&g.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.handleDeleteAction=function(e){n._handleAction(e,"delete","\u5220\u9664\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1")},n.handleTestAction=function(e){n._handleAction(e,"test","\u505c\u6b62\u5728\u7ebf\u63a8\u7406\u670d\u52a1")},n._handleAction=function(e,t,a){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a+"[ "+e.taskName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(o,s){"delete"===t?x.default.deleteFlowTaskById(e.taskId).then((function(){d.default.success(a+"[ "+e.taskName+" ]\u6267\u884c\u6210\u529f!"),n.fetchData(),o()})).catch((function(t){s(t),d.default.error(a+"[ "+e.taskName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+t)})):alert("\u8bd5\u4e00\u8bd5")}))}})},n.setShareLoading=function(e){n.setState({shareLoading:e})},n.handleEnvChange=function(e){n.setState({activeEnv:e}),(0,j.navigateTo)(S.flowTaskUrl.list(e)),n.changeSearchCond("profile",e)},n.handlePageChange=function(e){n.searchCond.offset=Number(e),n.fetchData()},n.handleAction=function(e,t){var a=g.default.get(n,g.default.camelCase("handle_"+e+"_action"));a&&g.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.pubEnvType=g.default.get(a.match,"params.env","TEST"),n.state={modelData:[],listLoading:!1,applicationsData:[],activeEnv:n.pubEnvType||"TEST",pagination:{limit:10,offset:0,total:0},noData:!0,flinkClusterMap:{}},n.hasFetchData=!1,n.searchCond={offset:1,limit:10,taskName:"",taskIds:[],applicationIds:"",status:"",sortBy:"UPDATEAT",profile:n.pubEnvType||"TEST"},n.columns=[{title:"\u5e8f\u53f7",width:60,dataIndex:"index",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"taskName",ellipsis:!0,render:function(e){return(0,C.default)(e)}},{title:"\u5e94\u7528",dataIndex:"applicationId_name",ellipsis:!0,render:function(e){return(0,C.default)(e)}},{title:"\u8d44\u6e90",dataIndex:"resQuotaConf",ellipsis:!0,render:function(e){var t="";if(e){var a=(0,w.isJsonString)(e)?JSON.parse(e):e;t=(0,T.serviceQuotaFormat)(a,n.state.flinkClusterMap)}return(0,r.default)(s.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,C.default)(e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,C.default)(e,"date")}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateAt",ellipsis:!0,render:function(e){return(0,C.default)(e,"date")}},{title:"\u6267\u884c\u6b21\u6570",dataIndex:"currentExecCount",ellipsis:!0,render:function(e){return(0,C.default)(e||0)}},{title:"\u72b6\u6001",width:110,dataIndex:"status",ellipsis:!0,render:function(e,t){return[I.FLOW_TASK_STATUS.ERROR].includes(e)&&t.message?(0,r.default)(s.default,{placement:"topLeft",title:t.message},void 0,(0,r.default)("div",{},void 0,(0,r.default)(b.StateLabel,{source:"flowTask",code:e}))):(0,r.default)(b.StateLabel,{source:"flowTask",code:e})}},{title:"\u64cd\u4f5c",width:220,render:function(e){var t=[],a=(0,T.getOptPermission)(e.status);return t.push({handleName:"\u67e5\u770b",style:{display:"inline-block"},handleType:"link",handleAction:S.flowTaskUrl.view(e.taskId,"invocation")}),g.default.get(e,"mirrorId")&&g.default.get(e,"mirrorVersionId")&&t.push({handleName:"\u67e5\u770b\u955c\u50cf",style:{display:"inline-block"},handleAction:S.modelMirrorUrl.versionDetail("service",g.default.get(e,"mirrorId"),"process",g.default.get(e,"mirrorVersionId")),handleType:"link"}),a.edit&&t.push({handleName:"\u4fee\u6539",style:{display:"inline-block"},handleType:"link",handleAction:S.flowTaskUrl.edit(e.taskId,e.deployEnv)}),a.delete&&t.push({handleName:"\u5220\u9664",handleAction:function(){n.handleDelete(e.taskId)}}),(0,r.default)(b.ListButtons,{buttons:t,maxShowNum:2})}}],n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this.state,t=e.modelData,a=e.pagination,n=e.listLoading;return(0,r.default)(y.PageWrapper,{},void 0,(0,r.default)(p.default,{defaultActiveKey:this.state.activeEnv,onChange:this.handleEnvChange},void 0,k,P),(0,r.default)(y.PageHeader,{},void 0,(0,r.default)(h.Link,{to:{pathname:S.flowTaskUrl.create(this.state.activeEnv)}},void 0,L),(0,r.default)(_.default,{applicationsData:this.state.applicationsData,onChange:this.changeSearchCond,searchCond:this.searchCond})),(0,r.default)(y.PageBody,{},void 0,(0,r.default)(y.TableWrapper,{},void 0,(0,r.default)(m.default.Fragment,{},void 0,(0,r.default)(o.default,{loading:n,bordered:!0,columns:this.columns,dataSource:t,rowKey:"taskId",pagination:!1}),(0,r.default)(b.TabPagination,{currentPage:a.offset,pageSize:10,total:a.total,onChange:this.handlePageChange})))))},t}(f.Component);t.default=N},"./src/module/flowReasonTask/listPage/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/input/index.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./src/module/flowReasonTask/modelEnums.js"),p=a("./src/components/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=i.default.Search,g=u.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-1odiq46-0"})(["display:flex;.search__item-wrapper{margin-left:16px;}"]),v={width:"130px"},y=c.FLOW_TASK_STATUS.getCodeAndDescList(),b=(0,n.default)(m,{value:""},void 0,"\u5168\u90e8\u5e94\u7528"),x=(0,n.default)(m,{value:"TASKNAME"},void 0,"\u4efb\u52a1\u540d\u79f0\u6392\u5e8f"),C=(0,n.default)(m,{value:"UPDATEAT"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),j=(0,n.default)(m,{value:""},void 0,"\u5168\u90e8\u72b6\u6001"),S=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("taskName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeBusiType=n.changeSelect("applicationId"),n.changeSortField=n.changeSelect("sortBy"),n.changeStatusField=n.changeSelect("status"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(g,{className:"search-bar"},void 0,(0,n.default)(p.RefreshButton,{onRefresh:this.props.onChange,style:{marginRight:16}}),(0,n.default)(d.default,{showSearch:!0,onChange:this.changeBusiType,style:v,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528",className:"sortType-cond",defaultValue:_.get(this.props,"searchCond.applicationIds",""),filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,b,this.props.applicationsData.map((function(e){return(0,n.default)(m,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)}))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,style:v,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:"TASKNAME",className:"search-cond",value:_.get(this.props,"searchCond.sortBy","TASKNAME")},void 0,x,C)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{allowClear:!0,onChange:this.changeStatusField,style:v,placeholder:"\u72b6\u6001",className:"search-cond",value:_.get(this.props,"searchCond.status","")},void 0,j,y.map((function(e,t){return(0,n.default)(m,{value:e.code},e.code+"-"+t,e.desc)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(h,{style:{width:200},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,defaultValue:_.get(this.props,"searchCond.taskName",""),onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=S},"./src/module/flowReasonTask/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.FLOW_TASK_STATUS=t.SERVICE_INVOCATION_STATUS=t.ENVIRONMENT=t.REASONING_MODE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({ONLINE:[1,"\u5728\u7ebf\u63a8\u7406"],OFFLINE:[2,"\u79bb\u7ebf\u63a8\u7406"]}),i=(0,s.default)({BUILDING:["BUILDING","\u521b\u5efa\u4e2d"],SUCCESS:["SUCCESS","\u521b\u5efa\u6210\u529f"],ERROR:["ERROR","\u521b\u5efa\u5931\u8d25"]}),d=(0,s.default)({PRODUCT:["PRODUCT","\u751f\u4ea7\u73af\u5883"],TEST:["TEST","\u6d4b\u8bd5\u73af\u5883"],DEV:["DEV","\u5f00\u53d1\u73af\u5883"]}),l=(0,s.default)({waiting:["waiting","\u7b49\u5f85\u4e2d"],running:["running","\u6267\u884c\u4e2d"],failure:["failure","\u6267\u884c\u5931\u8d25"],success:["success","\u5df2\u5b8c\u6210"],error:["error","\u53d1\u751f\u9519\u8bef"]});t.REASONING_MODE=r,t.ENVIRONMENT=d,t.SERVICE_INVOCATION_STATUS=l,t.FLOW_TASK_STATUS=i},"./src/module/flowReasonTask/utils.js":function(e,t,a){"use strict";t.__esModule=!0,t.getOptPermission=t.checkTaskNameIsRepeat=t.checkTaskIdentifyIsRepeat=t.formatFlowTaskData=t.serviceQuotaFormat=void 0;var n=i(a("./node_modules/babel-runtime/regenerator/index.js")),o=i(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),s=i(a("./src/redux/services/flowTaskService.js")),r=a("./src/module/flowReasonTask/modelEnums.js");function i(e){return e&&e.__esModule?e:{default:e}}t.serviceQuotaFormat=function(e,t){var a="",n="";if(e){var o=_.get(e,"instances_min",1),s=_.get(e,"cpu",0),r=_.get(e,"memory",0);n=_.get(e,"flinkClusterId");var i="";if(e.gpu&&Array.isArray(e.gpu))for(var d=0;d<e.gpu.length;d++){var l=e.gpu[d];i=i+(i?" ":"")+o*(l.gpuNumber||0)+"\u5f20 "+(l.gpuNumber>0?l.gpuModelName:"")}a=s*o+"C/"+r*o+"GB"+(i?"/"+i:"")}return n?a+","+(t[n]||n):a},t.formatFlowTaskData=function(e){var t=_.cloneDeep(e);t.replicaCnt=_.get(t,"resQuotaConf.instances_min"),delete t.logPath,delete t.dataPath,delete t.workPath,delete t.envVars,"MODEL"===t.deployArtifact?(t.artifactId=_.get(t,"modelId"),t.artifactVersionId=_.get(t,"modelVersionId"),t.baseMirrorVersionId=_.get(t,"baseId"),t.packageId=_.get(t,"packageId"),delete t.codeId,delete t.codeId,delete t.modelId,delete t.modelVersionId):"CODE"===t.deployArtifact?(t.artifactId=_.get(t,"codeId"),t.artifactVersionId=_.get(t,"codeVersionId"),t.baseMirrorVersionId=_.get(t,"baseId"),delete t.codeId,delete t.codeVersionId,delete t.baseId,delete t.baseMirrorId,delete t.language,delete t.frame,delete t.engine,t.dockerFile=t.from+"\n"+t.dockerFile,delete t.from):"MIRRORVERSION"===t.deployArtifact&&delete t.dockerFile;for(var a=[],n=0;n<t.runEnvParam.length;n++)""!==t.runEnvParam[n].name&&""!==t.runEnvParam[n].value&&(t.runEnvParam[n].name?a.push({envName:t.runEnvParam[n].name,envValue:t.runEnvParam[n].value}):a.push(t.runEnvParam[n]));return t.runEnvParam=a,t},t.checkTaskIdentifyIsRepeat=function(){var e=(0,o.default)(n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.default.checkTaskIdentifyRepeat(t);case 2:return a=e.sent,e.abrupt("return",_.get(a,"data.isRepeat"));case 4:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),t.checkTaskNameIsRepeat=function(){var e=(0,o.default)(n.default.mark((function e(t,a,o){var r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.default.checkNameRepeat(t,a,o);case 2:return r=e.sent,e.abrupt("return",_.get(r,"data.isRepeat"));case 4:case"end":return e.stop()}}),e,void 0)})));return function(t,a,n){return e.apply(this,arguments)}}(),t.getOptPermission=function(e){return{start:[r.FLOW_TASK_STATUS.SUCCESS].includes(e),config:[r.FLOW_TASK_STATUS.SUCCESS].includes(e),edit:[r.FLOW_TASK_STATUS.ERROR].includes(e),delete:[r.FLOW_TASK_STATUS.SUCCESS,r.FLOW_TASK_STATUS.ERROR].includes(e)}}},"./src/module/flowReasonTask/viewPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=D(a("./node_modules/antd/es/progress/index.js")),o=D(a("./node_modules/antd/es/tooltip/index.js")),s=D(a("./node_modules/babel-runtime/helpers/jsx.js")),r=D(a("./node_modules/babel-runtime/regenerator/index.js")),i=D(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),d=D(a("./node_modules/antd/es/message/index.js")),l=D(a("./node_modules/antd/es/modal/index.js")),u=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=D(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/progress/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=D(a("./node_modules/react/index.js")),m=(D(a("./node_modules/prop-types/index.js")),D(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./src/components/index.js"),v=a("./src/utils/history.js"),y=D(a("./src/redux/services/flowTaskService.js")),b=a("./src/routes/routeHelper.jsx"),x=D(a("./src/components/button/index.js")),C=a("./src/module/flowReasonTask/utils.js"),j=D(a("./src/redux/services/sysManager/projectManage.js")),S=D(a("./src/module/flowReasonTask/editPage/TaskParamsConfig.jsx")),I=D(a("./src/components/Modal/ModalFooter.jsx")),T=a("./src/module/flowReasonTask/modelEnums.js"),w=D(a("./src/module/modelService/createPage/ComputingResource.jsx")),E=a("./src/utils/commonUtil.js");function D(e){return e&&e.__esModule?e:{default:e}}var M=x.default.GhostButton,k=m.default.div.withConfig({displayName:"BaseInfo__DetailBaseInfoWrapper",componentId:"y9u9kl-0"})(["display:flex;border:1px solid #eee;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:80%;margin-right:24px;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{min-width:160px;display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}"]),P=(0,s.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),L=(0,s.default)(h.LoadingOutlined,{className:"refresh-icon"}),N=function(e){function t(a){var n=this;(0,u.default)(this,t);var o=(0,c.default)(this,e.call(this,a));return o.setValidateFunc=function(e,t){o.validateFuncs[e]=t},o.handleOperation=function(e){switch(e.key){case"start":case"config":o.handleShowModal(e.key);break;case"edit":(0,v.navigateTo)(b.flowTaskUrl.edit(o.props.baseInfo.taskId,o.props.baseInfo.deployEnv));break;case"delete":o._handleAction(e)}},o.handleShowModal=function(e){o.setState({modalVisible:!0,modalType:e})},o._handleAction=function(e){var t=o.state.baseInfo;l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+e.text+"\u4efb\u52a1[ "+_.get(t,"taskName")+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){var n=o.state.baseInfo;y.default.deleteFlowTaskById(n.taskId).then((function(){"delete"===e.key&&(d.default.success(e.text+"[ "+n.taskName+" ]\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,v.navigateTo)(b.flowTaskUrl.list())}),2e3)),t()})).catch((function(e){a(e)}))}))}})},o.callVisible=function(e){o.setState({modalVisible:!1}),e&&o.props.onRefresh()},o.getApplicationsName=function(e){var t=e||"--";if(e&&o.state.applicationsList&&o.state.applicationsList.length>0)for(var a=0;a<o.state.applicationsList.length;a++)if(o.state.applicationsList[a].projectApplicationId===e){t=o.state.applicationsList[a].applicationName;break}return t},o.handleRefresh=function(){o.props.onRefresh(!0)},o.handleSubmit=(0,i.default)(r.default.mark((function e(){var t,a,s,i,d;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("start"!==o.state.modalType){e.next=8;break}return t=o.validateFuncs.taskParamsConfig,e.next=4,t.call();case 4:(a=e.sent).validate&&(o.setState({confirmLoading:!0}),y.default.handleJob(o.props.baseInfo.taskId,a.moduleData).then((function(){o.callVisible(),o.handleRefresh(),o.setState({confirmLoading:!1})})).catch((function(e){throw o.setState({confirmLoading:!1}),e}))),e.next=13;break;case 8:return s=o.validateFuncs.computingResource,e.next=11,s.call();case 11:(i=e.sent).validate&&(d={replicaCnt:i.moduleData.instances_min,resQuotaConf:i.moduleData},y.default.updateSpec(o.props.baseInfo.taskId,d).then((function(){o.callVisible(),o.handleRefresh()})));case 13:case"end":return e.stop()}}),e,n)}))),o.state={baseInfoLoading:!1,refreshing:!1,optPermission:(0,C.getOptPermission)(),applicationsList:[],modalVisible:!1,modalType:"",confirmLoading:!1},o.items=[{key:"taskId",name:"\u4efb\u52a1ID",type:"text"},{key:"createBy",name:"\u521b\u5efa\u4eba",type:"text"},{key:"createAt",name:"\u521b\u5efa\u65f6\u95f4",type:"text"},{key:"applicationId_name",name:"\u5f52\u5c5e\u5e94\u7528",type:"text"}],o.optsBtn=[{key:"start",text:"\u7acb\u5373\u6267\u884c",action:"start"},{key:"config",text:"\u53d8\u66f4\u914d\u7f6e",action:"edit"},{key:"edit",text:"\u4fee\u6539",action:"edit"},{key:"delete",text:"\u5220\u9664",action:"delete"}],o.validateFuncs={},o}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){var e=this;j.default.getApplicationsDropDown().then((function(t){t&&e.setState({applicationsList:t.data})})).catch((function(e){d.default.error(e.message)}))},t.getDerivedStateFromProps=function(e){return{optPermission:(0,C.getOptPermission)(_.get(e.baseInfo,"status")),baseInfo:_.get(e,"baseInfo"),baseInfoLoading:_.get(e,"baseInfoLoading"),refreshing:_.get(e,"refreshing")}},t.prototype.render=function(){var e=this,t=this.state,a=t.baseInfo,r=t.optPermission,i=t.refreshing,d=t.baseInfoLoading,u=t.modalVisible,c=t.confirmLoading,p=t.modalType,f=(0,E.isJsonString)(_.get(a,"runParam"))?JSON.parse(_.get(a,"runParam")):{},m={instances_min:_.get(a,"replicaCnt",1),cpu:_.get(a,"resQuotaConf.cpu",1),gpu:_.get(a,"resQuotaConf.gpu",[]),memory:_.get(a,"resQuotaConf.memory",1),specsId:_.get(a,"resQuotaConf.specsId"),flinkClusterId:_.get(a,"resQuotaConf.flinkClusterId")};return(0,s.default)(k,{},void 0,(0,s.default)(l.default,{visible:u,footer:null,title:"start"===p?"\u7acb\u5373\u6267\u884c":"\u53d8\u66f4\u914d\u7f6e",wrapClassName:"modal",width:800,onCancel:this.callVisible},void 0,(0,s.default)("div",{},void 0,"start"===p?(0,s.default)(S.default,{setValidateFunc:this.setValidateFunc,moduleData:f}):(0,s.default)(w.default,{instancesMinShow:!1,noResidueCheck:!0,showFlinkCluster:!0,pubEnvType:_.get(a,"deployEnv"),requestQuota:m,canModify:!0,setValidateFunc:this.setValidateFunc,source:"OFFLINE_REASONING"}),(0,s.default)(I.default,{onOk:this.handleSubmit,onCancel:this.callVisible,confirmLoading:c}))),(0,s.default)("div",{className:"left__content-wrapper"},void 0,(0,s.default)("div",{className:"left__top-wrapper"},void 0,(0,s.default)("div",{className:"left__top-line1"},void 0,(0,s.default)("div",{className:"base__info-name top__line1-section"},void 0,a.taskName),(0,s.default)("div",{className:"base__info-status top__line1-section"},void 0,(0,s.default)("span",{},void 0,"ERROR"!==a.status?(0,s.default)("span",{style:{display:"flex"}},void 0,(0,s.default)(g.StateLabel,{source:"offlineModelService",code:a.status})):(0,s.default)(o.default,{placement:"topLeft",title:a.message},void 0,(0,s.default)("div",{style:{display:"flex"}},void 0,(0,s.default)(g.StateLabel,{source:"offlineModelService",code:a.status})))))),(0,s.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",a.taskDesc," ")),(0,s.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(e){return"text"===e.type?(0,s.default)("div",{className:"item__wrapper"},e.key,(0,s.default)("span",{style:{width:"80px"}},void 0,e.name,"\uff1a"),(0,s.default)("span",{},void 0,"gpu"===e.key?_.get(a,"usageRate.gpuMemory")||_.get(a,"usageRate.gpuCard",0):_.get(a,e.key))):"resQuotaType"===e.type?(0,s.default)("div",{className:"item__wrapper"},e.key,(0,s.default)("span",{style:{width:"80px",whiteSpace:"nowrap"}},void 0,e.name,"\uff1a"),(0,s.default)("span",{},void 0,T.ENVIRONMENT.getDescFromValue(a[e.key]))):(0,s.default)("div",{className:"item__wrapper"},e.key,(0,s.default)("span",{style:{width:"80px",whiteSpace:"nowrap",flexShrink:0}},void 0,e.name,"\uff1a"),(0,s.default)("span",{style:{marginRight:20,width:"25px"}},void 0,_.isNumber(_.get(a,e.key))?_.get(a,e.key):0,"%"),(0,s.default)("div",{className:"item__progress-wrapper"},void 0,(0,s.default)(n.default,{percent:_.get(a,e.key)||0,showInfo:!1})))})))),(0,s.default)("div",{className:"right__content-wrapper"},void 0,P,i&&d?L:(0,s.default)(o.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,s.default)(h.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})),(0,s.default)("div",{className:"right__bottom-wrapper"},void 0,this.optsBtn.map((function(t){return r[t.key]&&(0,s.default)(M,{action:_.upperCase(t.action,""),width:"20",txt:t.text,onClick:function(){return e.handleOperation(t)},className:"fn-left opt-btn"},t.key)})))))},t}(f.default.Component);t.default=N},"./src/module/flowReasonTask/viewPage/ServiceConfigInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/col/index.js")),o=y(a("./node_modules/babel-runtime/helpers/extends.js")),s=y(a("./node_modules/antd/es/row/index.js")),r=y(a("./node_modules/babel-runtime/helpers/jsx.js")),i=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=y(a("./node_modules/babel-runtime/helpers/inherits.js")),u="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\flowReasonTask\\viewPage\\ServiceConfigInfo.jsx";a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var c=y(a("./node_modules/react/index.js")),p=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=a("./src/components/index.js"),h=a("./src/module/modelBase/modelEnums.js"),g=a("./src/module/modelService/components/AvailableQuota.jsx"),v=a("./src/redux/services/modelMirror.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=f.Form.Item,x=p.default.div.withConfig({displayName:"ServiceConfigInfo__DetailInfoWrapper",componentId:"f581k5-0"})(["display:flex;flex-wrap:wrap;"]),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.getRunEnvParamByKey=function(e,t){if(e){if("AI_JOB_DATA_PATH"===t||"AI_JOB_LOG_PATH"===t||"AI_JOB_WORK_PATH"===t){var a=_.findIndex(e,(function(e){return e.envName===t}));return _.get(e[a],"envValue","--")}for(var n="",o=0;o<e.length;o++)"AI_JOB_DATA_PATH"!==e[o].envName&&"AI_JOB_LOG_PATH"!==e[o].envName&&"AI_JOB_WORK_PATH"!==e[o].envName&&(n+=e[o].envName+"="+e[o].envValue+"\u3001");return""===n?"--":1===n.split("\u3001").length?n:n.substring(0,n.length-1)}return"--"},n.handleDownload=function(){var e=_.get(n.props.baseInfo,"mirrorInfo.versionId");e&&(0,v.downLoadMirrorVersionDockerFile)(e)},n}return(0,l.default)(t,e),t.prototype.render=function(){var e={layout:"inline",labelAlign:"left"},t={marginBottom:0},a={width:"50%"},i=this.props.baseInfo,d=_.get(i,"resQuotaConf",{});return(0,r.default)(x,{},void 0,(0,r.default)(m.ModelConfigPanel,{title:"\u6a21\u578b\u4fe1\u606f",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:67}}),(0,r.default)(s.default,{},void 0,(0,r.default)(b,{label:"\u6a21\u578bID",style:t},void 0,_.get(i,"modelInfo.modelInfo.modelId")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(b,{label:"\u6a21\u578b\u540d\u79f0",style:t},void 0,_.get(i,"modelInfo.modelInfo.modelName")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(b,{label:"\u7248\u672c",style:t},void 0,_.get(i,"modelInfo.versionInfo.versionName")||"--")),(0,r.default)(b,{label:"\u6765\u6e90",style:t},void 0,h.PUBLISH_FROM.getDescFromValue(_.get(i,"modelInfo.versionInfo.publishFrom"))||"--"))),(0,r.default)(m.ModelConfigPanel,{title:"\u6267\u884c\u53c2\u6570",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:90}}),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(b,{label:"\u6267\u884c\u547d\u4ee4",style:t},void 0,i.runCommand))),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(b,{label:"\u73af\u5883\u53d8\u91cf",style:t},void 0,this.getRunEnvParamByKey(i.runEnvParam,"AI_JOB_LOG_PATH")))),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(b,{style:t,label:"dockfile"},void 0,(0,r.default)("span",{className:"link",onClick:this.handleDownload},void 0,".dockifle")))))),(0,r.default)(m.ModelConfigPanel,{title:"\u8d44\u6e90\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:118}}),(0,r.default)(s.default,{},void 0,(0,r.default)(b,{label:"CPU",style:t},void 0,d.cpu||0)),(0,r.default)(s.default,{},void 0,(0,r.default)(b,{style:t,label:"\u5185\u5b58"},void 0,d.memory)),(0,r.default)(s.default,{},void 0,(0,r.default)(b,{style:t,label:"gpu"},void 0,(0,g.renderGpu)(d.gpu))),(0,r.default)(s.default,{},void 0,(0,r.default)(b,{style:t,label:"\u5b9e\u4f8b\u4e2a\u6570"},void 0,_.get(i,"replicaCnt","--"))))))},t}(c.default.Component);C.defaultProps={baseInfo:{}},t.default=C},"./src/module/flowReasonTask/viewPage/ServiceInvocations.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/antd/es/table/index.js")),o=j(a("./node_modules/antd/es/tooltip/index.js")),s=j(a("./node_modules/babel-runtime/helpers/jsx.js")),r=j(a("./node_modules/babel-runtime/regenerator/index.js")),i=j(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),d=j(a("./node_modules/babel-runtime/helpers/extends.js")),l=j(a("./node_modules/antd/es/message/index.js")),u=j(a("./node_modules/antd/es/modal/index.js")),c=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=j(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var m=j(a("./node_modules/react/index.js")),h=(j(a("./node_modules/prop-types/index.js")),j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),g=a("./src/components/index.js"),v=j(a("./src/module/flowReasonTask/editPage/TaskParamsConfig.jsx")),y=j(a("./src/module/flowReasonTask/viewPage/components/SearchBar.jsx")),b=j(a("./src/redux/services/flowTaskService.js")),x=j(a("./src/components/table/ColumnRender.jsx")),C=a("./src/utils/commonUtil.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=h.default.div.withConfig({displayName:"ServiceInvocations__ManagePageDom",componentId:"sc-1d5jt9z-0"})(["display:flex;flex-direction:column;flex:1 1 auto;"]),I=h.default.div.withConfig({displayName:"ServiceInvocations__TabsDiv",componentId:"sc-1d5jt9z-1"})(["width:100%;position:relative;background-color:#ffff;padding:20px;padding-top:0;margin-bottom:20px;"]),T=h.default.div.withConfig({displayName:"ServiceInvocations__PageHeader",componentId:"sc-1d5jt9z-2"})(["width:100%;display:flex;.search__item-wrapper{display:flex;margin-right:16px;height:32px;line-height:32px;margin-left:0;}.item-cond{width:120px;}"]),w=h.default.div.withConfig({displayName:"ServiceInvocations__PageBody",componentId:"sc-1d5jt9z-3"})(["display:table;min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),E=h.default.div.withConfig({displayName:"ServiceInvocations__ModelsBox",componentId:"sc-1d5jt9z-4"})(["margin-top:10px;flex:1 1 auto;"]),D=function(e){function t(a){var n=this;(0,c.default)(this,t);var f=(0,p.default)(this,e.call(this,a));return f.cancel=function(e,t){var a={cancel:"\u53d6\u6d88"};u.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a[t]+"\u6b64\u4efb\u52a1?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(n,o){b.default.cancelJobByWaiting(e,f.props.deployEnv).then((function(){l.default.success(a[t]+"\u6210\u529f!"),f.fetchData(),n()})).catch((function(e){o(e),l.default.error(a[t]+"\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+e)}))}))}})},f.startOrStop=function(e,t){var a={retry:"\u91cd\u65b0\u6267\u884c",stop:"\u505c\u6b62"};u.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a[t]+"\u6b64\u4efb\u52a1?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(n,o){b.default.jobStartOrStop(e,t).then((function(){l.default.success(a[t]+"\u6210\u529f!"),f.fetchData(),n()})).catch((function(e){o(e),l.default.error(a[t]+"\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+e)}))}))}})},f.fetchData=function(){f.setState({listLoading:!0}),b.default.getJobList(f.searchCond).then((function(e){f.setState({invocationInfo:e.data,listLoading:!1})})).catch((function(){f.setState({listLoading:!1})})),b.default.getJobStats(f.searchCond.taskId,f.searchCond.deployEnv).then((function(e){f.setState({executeCount:_.get(e,"data[0].executeCount",0),executeErrorCount:_.get(e,"data[0].executeErrorCount",0),listLoading:!1})})).catch((function(){f.setState({listLoading:!1})}))},f.changeSearchCond=function(e){f.searchCond=(0,d.default)({},f.searchCond,e),f.fetchData()},f.viewDetail=function(){var e=(0,i.default)(r.default.mark((function e(t){var a,o;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.default.getJobInfoById(t);case 2:a=e.sent,o=(0,C.isJsonString)(_.get(a,"data.runParam"))?JSON.parse(_.get(a,"data.runParam")):{},f.setState({visible:!0,currentLogId:t,jobRunParams:o});case 5:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),f.onClose=function(){f.setState({visible:!1})},f.state={invocationInfo:[],listLoading:!1,currentLogId:"",executeCount:0,executeErrorCount:0,visible:!1,jobRunParams:{}},f.searchCond={taskId:a.taskId,runBeginAt:"",runEndAt:"",runStatus:"",limit:99,offset:1},f.columns=[{title:"\u4efb\u52a1ID",width:70,dataIndex:"taskActionId",ellipsis:!0,render:function(e){return(0,x.default)(e)}},{title:"\u8bf7\u6c42\u65f6\u95f4",dataIndex:"requestAt",width:100,ellipsis:!0,render:function(e){return(0,x.default)(e,"date")}},{title:"\u6267\u884c\u5f00\u59cb\u65f6\u95f4",dataIndex:"createAt",width:130,ellipsis:!0,render:function(e){return(0,x.default)(e,"date")}},{title:"\u6267\u884c\u7ed3\u675f\u65f6\u95f4",dataIndex:"endAt",width:130,ellipsis:!0,render:function(e){return(0,x.default)(e,"date")}},{title:"\u8017\u65f6",width:85,ellipsis:!0,dataIndex:"duration",render:function(e){return(0,x.default)(e)}},{title:"\u4efb\u52a1\u72b6\u6001",width:110,dataIndex:"status",render:function(e){return(0,s.default)(g.StateLabel,{source:"offlineInvocation",code:e})}},{title:"\u4efb\u52a1\u5b50\u72b6\u6001",width:120,dataIndex:"childStatus",render:function(e,t){return(0,s.default)(o.default,{placement:"topLeft",title:t.message},void 0,(0,s.default)("div",{},void 0,(0,s.default)(g.StateLabel,{source:"offlineSonInvocation",code:e})))}},{title:"\u64cd\u4f5c",width:180,render:function(e){var t=[];return t.push({handleName:"\u67e5\u770b\u914d\u7f6e",style:{display:"inline-block"},handleAction:function(){f.viewDetail(e.taskActionId)}}),["failure","error"].includes(e.status)&&t.push({handleName:"\u91cd\u65b0\u6267\u884c",handleAction:function(){f.startOrStop(e.taskActionId,"retry")}}),["waiting","running"].includes(e.status)&&!["deploying"].includes(e.childStatus)&&t.push({handleName:"\u505c\u6b62",handleAction:function(){f.startOrStop(e.taskActionId,"stop")}}),["success"].includes(e.status)&&t.push({handleName:"\u67e5\u770bFlink\u4efb\u52a1",handleAction:function(){window.open(e.flinkRequestUrl,"_blank")}}),(0,s.default)(g.ListButtons,{buttons:t,maxShowNum:2})}}],f}return(0,f.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.invocationInfo,a=e.listLoading,o=e.executeCount,r=e.executeErrorCount;return(0,s.default)(S,{},void 0,(0,s.default)(u.default,{title:"\u67e5\u770b\u914d\u7f6e",visible:this.state.visible,wrapClassName:"modal",width:800,onCancel:this.onClose,onOk:this.onClose,destroyOnClose:!0},void 0,(0,s.default)(v.default,{disabled:!0,moduleData:this.state.jobRunParams})),(0,s.default)(I,{},void 0,(0,s.default)(T,{},void 0,(0,s.default)("div",{style:{width:470,display:"flex",paddingTop:20}},void 0,(0,s.default)("div",{},void 0,(0,s.default)("p",{},void 0,"\u53d1\u751f\u8bf7\u6c42\u6b21\u6570\uff1a",o)),(0,s.default)("div",{style:{marginLeft:32}},void 0,(0,s.default)("p",{},void 0,"\u53d1\u751f\u9519\u8bef\u6b21\u6570\uff1a",r))),(0,s.default)(y.default,{searchCond:this.searchCond,onChange:this.changeSearchCond})),(0,s.default)(w,{},void 0,(0,s.default)(E,{},void 0,(0,s.default)(n.default,{dataSource:t,rowKey:"jobId",bordered:!0,columns:this.columns,loading:a})))))},t}(m.default.Component);t.default=D},"./src/module/flowReasonTask/viewPage/ViewTaskPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/babel-runtime/helpers/jsx.js")),o=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=y(a("./node_modules/babel-runtime/helpers/inherits.js")),i=y(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=y(a("./node_modules/react/index.js")),l=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/utils/history.js"),p=y(a("./src/module/flowReasonTask/viewPage/BaseInfo.jsx")),f=y(a("./src/module/flowReasonTask/viewPage/ServiceConfigInfo.jsx")),m=a("./src/components/index.js"),h=y(a("./src/module/flowReasonTask/viewPage/ServiceInvocations.jsx")),g=a("./src/routes/routeHelper.jsx"),v=y(a("./src/redux/services/flowTaskService.js"));function y(e){return e&&e.__esModule?e:{default:e}}var b=i.default.TabPane,x=l.default.div.withConfig({displayName:"ViewTaskPage__ModelServiceDetailWrapper",componentId:"sc-1jpyuw2-0"})(["width:100%;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-nav-scroll{display:flex;}.ant-tabs-tab{font-size:16px;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-active{min-height:400px;}}.service__tabs-wrapper{margin-top:20px;}.ant-tabs-content{margin-top:24px;}"]),C=l.default.div.withConfig({displayName:"ViewTaskPage__TabContent",componentId:"sc-1jpyuw2-1"})(["background:#fff;min-height:500px;width:100%;"]),j=(0,n.default)(m.LoadingIndicator,{}),S=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){n.fetBasicInfo()},n.fetBasicInfo=function(){n.setState({baseInfoLoading:!0}),v.default.getFlowTaskInfo(n.state.taskId).then((function(e){n.setState({baseInfo:e.data,refreshing:!1,baseInfoLoading:!1})})).catch((function(){n.setState({refreshing:!1,baseInfoLoading:!1})}))},n.onChange=function(e){var t=n.state.baseInfo;(0,c.navigateTo)({pathname:g.flowTaskUrl.view(t.taskId,e),state:{unScrollToTop:!0}}),n.setState({activeTab:e})},n.handleRefresh=function(e){e&&n.setState({refreshing:!0}),n.fetchData()},n.state={baseInfoLoading:!1,refreshing:!1,taskId:_.get(a.match.params,"taskId",""),activeTab:_.get(a.match.params,"activeTab","invocation"),baseInfo:null},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.activeTab,a=e.baseInfo,o=e.baseInfoLoading,s=e.refreshing;return(0,n.default)(x,{},void 0,o&&j,!o&&a&&(0,n.default)("div",{},void 0,(0,n.default)(p.default,{baseInfo:a,baseInfoLoading:o,refreshing:s,onRefresh:this.handleRefresh}),(0,n.default)("div",{className:"service__tabs-wrapper"},void 0,(0,n.default)(i.default,{onChange:this.onChange,activeKey:t,className:"modelApply-tabs"},void 0,(0,n.default)(b,{tab:"\u4efb\u52a1\u6267\u884c"},"invocation",(0,n.default)(C,{},void 0,"invocation"===t&&(0,n.default)(h.default,{deployEnv:a.deployEnv,taskId:a.taskId,refreshing:s}))),(0,n.default)(b,{tab:"\u914d\u7f6e\u4fe1\u606f"},"config",(0,n.default)(C,{},void 0,"config"===t&&(0,n.default)(f.default,{baseInfo:a})))))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(S)},"./src/module/flowReasonTask/viewPage/components/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/date-picker/index.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/date-picker/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=f(a("./node_modules/react/index.js")),u=f(a("./node_modules/moment/moment.js")),c=(f(a("./node_modules/prop-types/index.js")),a("./src/module/flowReasonTask/modelEnums.js")),p=a("./src/styles/GlobalStyle.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=i.default.RangePicker,g=c.SERVICE_INVOCATION_STATUS.getValueAndDescList(),v=(0,n.default)(m,{value:""},void 0,"\u5168\u90e8\u72b6\u6001"),_=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSearchCond=function(e,t){var a={};"dates"===e?(a.runBeginAt=t[0]?(0,u.default)(t[0]).format("YYYY-MM-DD HH:mm:ss"):void 0,a.runEndAt=t[1]?(0,u.default)(t[1]).format("YYYY-MM-DD HH:mm:ss"):void 0):a[e]=t,n.props.onChange(a)},n.disabledDate=function(e){return e-1>(0,u.default)().endOf("day")},n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(p.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,"\u65f6\u95f4\u8303\u56f4\uff1a",(0,n.default)(h,{style:{width:240},onOk:function(t){return e.changeSearchCond("dates",t)},onChange:function(t){return 0===t.length?e.changeSearchCond("dates",t):null},disabledDate:this.disabledDate,showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})),(0,n.default)("span",{},void 0,(0,n.default)(d.default,{defaultValue:this.props.searchCond.runStatus,onChange:function(t){return e.changeSearchCond("runStatus",t)},placeholder:"\u72b6\u6001",className:"item-cond",style:{width:100}},void 0,v,g.map((function(e){return(0,n.default)(m,{value:e.code},e.code,e.desc)})))))},t}(l.default.Component);t.default=_},"./src/module/grayTask/components/AvailableQuota.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.renderGpu=void 0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),o(a("./node_modules/prop-types/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"AvailableQuota__PageWrapper",componentId:"hl8cz-0"})(["display:flex;margin-bottom:8px;border-bottom:1px solid #e8e8e8;color:#147bd1;.page-title{margin:0 16px 0 36px;}.span__wrapper{display:flex;&:not(:last-child){margin-right:24px;}&.last-child{margin-right:0;}}"]),r=t.renderGpu=function(e){return!Array.isArray(e)||0===e.length||_.every(e,{gpuNumber:0})?0:e.map((function(e){return e.gpuModelId&&e.gpuNumber>0&&(0,n.default)("span",{style:{marginRight:16}},e.gpuModelId,e.gpuNumber,"*",e.gpuModelName)}))},i=(0,n.default)("span",{className:"page-title"},void 0,"\u5269\u4f59:"),d=(0,n.default)("span",{className:"span__label"},void 0,"CPU\uff1a"),l=(0,n.default)("span",{className:"span__label"},void 0,"\u5185\u5b58\uff1a"),u=(0,n.default)("span",{className:"span__label"},void 0,"GPU\uff1a");t.default=function(e){var t=e.quotaInfo,a=_.get(t,"gpu",[])||[];return(0,n.default)(s,{},void 0,i,(0,n.default)("span",{className:"span__wrapper"},void 0,d,(0,n.default)("span",{className:"span__item"},void 0,_.get(t,"cpu",0),"C")),(0,n.default)("span",{className:"span__wrapper"},void 0,l,(0,n.default)("span",{className:"span__item"},void 0,_.get(t,"memory",0),"GB")),(0,n.default)("span",{className:"span__wrapper last-child"},void 0,u,(0,n.default)("span",{className:"span__item",style:{display:"flex",flexWrap:"wrap"}},void 0,r(a))))}},"./src/module/grayTask/components/ComputingResource.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=C(a("./node_modules/babel-runtime/helpers/extends.js")),r=C(a("./node_modules/antd/es/input-number/index.js")),i=C(a("./node_modules/antd/es/row/index.js")),d=C(a("./node_modules/babel-runtime/helpers/jsx.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js")),p=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=C(a("./node_modules/react/index.js")),m=C(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=(C(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),_=C(a("./src/module/grayTask/components/AvailableQuota.jsx")),y=a("./src/utils/authPermit.js"),b=C(a("./src/redux/services/sysManager/projectManage.js")),x=a("./src/redux/services/modelService.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=h.Form.Item,S=g.default.div.withConfig({displayName:"ComputingResource__ComputingResourceWrapper",componentId:"d49bsk-0"})([".ant-divider-horizontal{display:block;clear:both;width:100%;min-width:100%;height:1px;margin:20px 0;}.icon{font-size:16px;color:#a2b0c4;cursor:pointer;margin-left:16px;}.span__label{margin-right:2px;}"]),I={marginTop:"16px"},T={width:"140px"},w={width:"100%",position:"relative"},E=p.default.Option,D=(n=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));o.call(n);var s=a.requestQuota||{};n.state={showAvailableRes:!a.hideAvailableRes,availableQuota:{},surplusQuota:{},sysResourceSpecs:[],selectedSpecs:s.specsId,requestQuota:{instances_min:s.instances_min||1,cpu:s.cpu,memory:s.memory,gpuNumber:m.default.get(s,"gpu[0].gpuNumber",0),gpuModelId:m.default.get(s,"gpu[0].gpuModelId"),gpuModelName:m.default.get(s,"gpu[0].gpuModelName")},loadedSysSpecs:!1,loadedAvaQuota:!1,issinglecase:!0,AddCheckout:{data:{result:!0,ramMax:0}},replicas:1,cpuvalue:1,Add:!1,memoryNumber:0,gpunumber:0};var r=(0,y.getCurrentContext)(),i=r.role,d=r.id;"PROJECT"===i&&(n.projectId=d),n.checkNameRef=f.default.createRef();var c=n.props.setValidateFunc;return m.default.isFunction(c)&&c("computingResource",n.validateFun),n}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){if(!m.default.isEqual(this.props.requestQuota,e.requestQuota)&&!m.default.isEmpty(this.props.requestQuota)){var t=this.props.requestQuota||{},a={instances_min:t.instances_min,cpu:t.cpu,memory:t.memory,gpuNumber:m.default.get(t,"gpu[0].gpuNumber",0),gpuModelId:m.default.get(t,"gpu[0].gpuModelId"),gpuModelName:m.default.get(t,"gpu[0].gpuModelName")};this.setState({requestQuota:a,selectedSpecs:t.specsId}),!m.default.isEmpty(this.state.availableQuota)&&this.props.isEdit&&this.setAvailableRes(this.state.availableQuota,a)}e.pubEnvType!==this.props.pubEnvType&&(this.fetchAvailableQuota(),this.fetchResourceSpecs())},t.prototype.componentDidMount=function(){this.fetchAvailableQuota(),this.fetchResourceSpecs()},t.prototype.render=function(){var e=this,t=this.state,a=t.requestQuota,n=t.surplusQuota,o=t.sysResourceSpecs,s=t.selectedSpecs,l=this.setSysResourceSpecs(a,o,n,s),u=l.newSysResourceSpecs,c=l.newSelectedSpecs,f=this.props.title,g=this.props.form.getFieldDecorator;return(0,d.default)(S,{},void 0,(0,d.default)(v.ModelConfigPanel,{hintMsg:this.props.hintMsg&&this.props.hintMsg,title:f||"\u8ba1\u7b97\u8d44\u6e90",style:w},void 0,this.state.showAvailableRes&&(0,d.default)("div",{className:"available__resource"},void 0,(0,d.default)(_.default,{quotaInfo:n})),(0,d.default)(h.Form,{layout:"inline"},void 0,!1!==this.props.instancesMinShow&&(0,d.default)(i.default,{style:I},void 0,(0,d.default)(j,{label:"\u5b9e\u4f8b\u4e2a\u6570"},void 0,g("instances_min",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5b9e\u4f8b\u4e2a\u6570"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"\u5b9e\u4f8b\u4e2a\u6570","instances_min")}}],initialValue:a.instances_min})((0,d.default)(r.default,{disabled:!this.props.canModify||this.props.disabledInstances,style:T,min:0,onChange:function(t){return e.handleQuotaAssignChange("instances_min",t)}})))),(0,d.default)(i.default,{style:I},void 0,(0,d.default)(j,{label:"\u8d44\u6e90\u9009\u62e9",className:"lang-label-wrapper"},void 0,(0,d.default)(p.default,{showSearch:!0,style:{width:200},placeholder:"\u8bf7\u9009\u62e9\u89c4\u683c",optionFilterProp:"children",onChange:this.handleSpecsChange,disabled:!this.props.canModify,value:c,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(u)&&u.map((function(e){return(0,d.default)(E,{value:e.resSpecId},e.resSpecId,e.resSpecName)}))))),"custom_computing_resource_specs"===c&&(0,d.default)(i.default,{style:I},void 0,(0,d.default)(j,{label:"CPU (core)",className:"lang-label-wrapper"},void 0,g("cpu",{rules:[{required:this.props.canModify,message:"\u8bf7\u8f93\u5165CPU"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"CPU","cpu")}}],initialValue:a.cpu})((0,d.default)(r.default,{formatter:this.limitDecimals,parser:this.limitDecimals,disabled:!this.props.canModify,style:T,min:0,onChange:function(t){return e.handleQuotaAssignChange("cpu",t)}}))),(0,d.default)(j,{label:"\u5185\u5b58 (GB)"},void 0,g("memory",{rules:[{required:this.props.canModify,message:"\u8bf7\u8f93\u5165\u5185\u5b58"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"\u5185\u5b58","memory")}}],initialValue:a.memory})((0,d.default)(r.default,{formatter:this.limitDecimals,parser:this.limitDecimals,disabled:!this.props.canModify,style:T,min:0,onFocus:function(){return e.setState({Add:!e.state.Add})},onBlur:function(){return e.setState({Add:!e.state.Add})},onChange:function(t){return e.handleQuotaAssignChange("memory",t)}}))),(0,d.default)(j,{label:"GPU\u6570\u91cf"},void 0,g("gpuNumber",{rules:[{required:!1,message:"\u8bf7\u8f93\u5165GPU\u6570\u91cf"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"GPU","gpuNumber")}}],initialValue:a.gpuNumber})((0,d.default)(r.default,{disabled:!this.props.canModify||this.props.disabledGpu,style:T,min:0,onChange:function(t){return e.handleQuotaAssignChange("gpuNumber",t)}}))),a.gpuNumber>0&&(0,d.default)(j,{label:"GPU\u578b\u53f7"},void 0,g("gpuModelId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9GPU\u578b\u53f7"}],initialValue:a.gpuModelId})((0,d.default)(p.default,{style:{minWidth:140},placeholder:"\u8bf7\u9009\u62e9GPU\u578b\u53f7",disabled:!this.props.canModify||this.props.disabledGpuType,onChange:function(t,a){return e.handleQuotaAssignChange("gpuModelId",t,a)}},void 0,Array.isArray(m.default.get(this.state.availableQuota,"gpu"))&&this.state.availableQuota.gpu.map((function(e){return a.gpuNumber*a.instances_min<=e.gpuNumber&&(0,d.default)(E,{value:e.gpuModelId,label:e.gpuModelName,number:e.gpuNumber},e.gpuModelId,e.gpuModelName)})))))),!this.state.AddCheckout.data.result&&(0,d.default)(j,{style:{position:"absolute",top:"212px",left:"334px",cursor:"pointer",fontSize:"14px",color:"#ff4d4f"}},void 0,"\u540e\u53f0\u8d44\u6e90\u4e0d\u8db3"),this.state.Add&&this.state.memoryNumber<this.state.AddCheckout.data.ramMax&&this.state.memoryNumber>0&&(0,d.default)(j,{style:{position:"absolute",top:"187px",left:"356px",cursor:"pointer",fontSize:"14px",color:"#147bd1"}},void 0,"\u5185\u5b58\u6700\u5927\u503c\u4e3a",this.state.AddCheckout.data.ramMax)),(0,d.default)("div",{style:{position:"absolute",top:"-18px",left:"110px",cursor:"pointer",fontSize:"14px",color:" #47B2FB",display:"none"},onClick:this.handleAvailableResChange},void 0,"\u67e5\u770b\u5269\u4f59\u53ef\u7528\u8d44\u6e90")))},t}(f.default.PureComponent),o=function(){var e=this;this.fetchAvailableQuota=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.pubEnvType;t&&b.default.getProjectAvailableQuota(t,e.projectId).then((function(t){var a=e.state.requestQuota,n=m.default.get(t.data,"[0].quotaSetting",{cpu:0,memory:0,gpu:[]});e.setState({requestQuota:a,availableQuota:n,surplusQuota:m.default.cloneDeep(n),loadedAvaQuota:!0},(function(){e.props.isEdit&&!m.default.isEmpty(a)&&e.setAvailableRes(n,a)}))}))},this.fetchResourceSpecs=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.pubEnvType;if(t){var a={resSpecDesc:"\u81ea\u5b9a\u4e49\u8d44\u6e90",resSpecId:"custom_computing_resource_specs",resSpecName:"\u81ea\u5b9a\u4e49\u8d44\u6e90"};(0,x.getResourceSpecs)({resQuotaType:t,resSpecTypes:e.props.source}).then((function(t){var n=t.data||[];Array.isArray(n)&&n.push(a),e.setState({sysResourceSpecs:n,loadedSysSpecs:!0})})).catch((function(t){throw e.setState({sysResourceSpecs:[a],selectedSpecs:"custom_computing_resource_specs",loadedSysSpecs:!0}),t}))}},this.validateFun=function(){var t=!1;e.props.form.validateFieldsAndScroll((function(e){null===e&&(t=!0)}));var a=e.state,n=a.requestQuota,o=a.selectedSpecs,r=a.sysResourceSpecs,i={};return t?(o&&"custom_computing_resource_specs"!==o&&(n=(0,s.default)({},m.default.get(m.default.find(r,{resSpecId:o}),"specSetting"),{instances_min:n.instances_min})),i={specsId:o,cpu:n.cpu,memory:n.memory,instances_min:n.instances_min,gpu:n.gpuNumber>0?[{gpuNumber:n.gpuNumber,gpuModelId:n.gpuModelId,gpuModelName:n.gpuModelName}]:[]},{validate:t,moduleData:i}):{validate:t,moduleData:n,errorMsg:"\u8bf7\u9009\u62e9\u8ba1\u7b97\u8d44\u6e90\u4fe1\u606f"}},this.handleQuotaAssignChange=function(t,a,n){var o=e.state.requestQuota;if(o[t]=a,"instances_min"===t&&(a>1?(console.log("\u591a\u4f8b"),e.setState({issinglecase:!1,replicas:a}),console.log(e.state.replicas),e.fetchAvailableQuota()):(console.log("\u5355\u4f8b"),e.setState({issinglecase:!0,replicas:a}),console.log(e.state.replicas),e.fetchAvailableQuota())),"cpu"===t&&e.state.issinglecase){var s={profile:"dev",replicas:e.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:a,ram:"0"}]};b.default.memoryCheck(s).then((function(t){var n=JSON.parse(t.data);e.setState({AddCheckout:n,cpuvalue:a}),console.log(e.state.AddCheckout),e.props.setValidateFunc("computingResource",e.validateFun,n.data.result)}))}if("memory"===t)if(e.state.issinglecase){e.setState({memoryNumber:a});var r={profile:"dev",replicas:e.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:e.state.cpuvalue,ram:a}]};b.default.memoryCheck(r).then((function(t){var a=JSON.parse(t.data);e.setState({AddCheckout:a}),console.log(a.data.result),e.props.setValidateFunc("computingResource",e.validateFun,a.data.result)}))}else{var i={profile:"dev",replicas:e.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:e.state.cpuvalue,ram:a}]};b.default.memoryCheck(i).then((function(t){var a=JSON.parse(t.data);e.setState({AddCheckout:a}),console.log(a.data.result),e.props.setValidateFunc("computingResource",e.validateFun,a.data.result)}))}if("gpuModelId"===t){o.gpuModelName=m.default.get(n,"props.label",a);var d={profile:"dev",replicas:e.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:e.state.cpuvalue,ram:e.state.memoryNumber,gpuCardType:a,gpu:e.state.gpunumber}]};b.default.memoryCheck(d).then((function(t){var a=JSON.parse(t.data);e.setState({AddCheckout:a}),console.log(a.data.result),e.props.setValidateFunc("computingResource",e.validateFun,a.data.result)}))}if("gpuNumber"===t){e.setState({gpunumber:a});var l=m.default.find(e.state.availableQuota.gpu,{gpuModelId:o.gpuModelId});m.default.get(l,"gpuNumber")<a&&!e.props.disabledGpuType&&(o.gpuModelId="",o.gpuModelName,e.props.form.setFieldsValue({gpuModelId:""}))}e.setState({requestQuota:o})},this.setAvailableRes=function(t,a){e.setState((function(e){var n=Number(m.default.get(e,"availableQuota.cpu",0)||0),o=Number(m.default.get(a,"cpu",0)||0),r=Number(m.default.get(e,"availableQuota.memory",0)||0),i=Number(m.default.get(a,"memory",0)||0),d=m.default.get(e,"availableQuota.gpu",[])||[],l=a.instances_min,u={gpuModelId:m.default.get(a,"gpuModelId",""),gpuNumber:Number(m.default.get(a,"gpuNumber",0)||0),gpuModelName:m.default.get(a,"gpuModelId","")};if(u.gpuModelId){var c=m.default.findIndex(t.gpu,{gpuModelId:u.gpuModelId});c>-1?d[c]=(0,s.default)({},t.gpu[c],{gpuNumber:parseFloat(t.gpu[c].gpuNumber)+parseFloat(u.gpuNumber)*l}):d.push({gpuModelId:u.gpuModelId,gpuNumber:u.gpuNumber,gpuModelName:u.gpuModelName})}return{availableQuota:{cpu:n+o*l,memory:r+i*l,gpu:d}}}))},this.handleAvailableResChange=function(){e.setState((function(e){return{showAvailableRes:!e.showAvailableRes}}))},this.handleMinValidator=function(t,a,n,o,s){"instances_min"!==s&&e.props.form.validateFields(["instances_min"]);var r=e.state,i=r.availableQuota,d=r.requestQuota,l=i.cpu,u=i.memory,c=i.gpu,p=d.cpu,f=d.memory,h=d.gpuNumber,g=d.instances_min,v=c?c.reduce((function(e,t){return e<t.gpuNumber?t.gpuNumber:e}),0):0,_=m.default.find(m.default.get(i,"gpu"),{gpuModelId:d.gpuModelId});e.props.disabledGpuType&&(v=m.default.get(_,"gpuNumber"));var y=m.default.get(_,"gpuNumber")||v,b=parseFloat((l/(g||1)).toFixed(2)),x=parseFloat((u/(g||1)).toFixed(2)),C=Math.floor(v/(g||1));Math.floor(Math.min(l/(p||1),u/(f||1),y&&h&&h>0?y/h:1/0));if(e.props.verifyMemoryNum&&"\u5185\u5b58"==o?a<e.props.verifyMemoryNum&&n(o+"\u4e0d\u5f97\u5c0f\u4e8e"+e.props.verifyMemoryNum):e.props.verifyCpuNum&&"CPU"==o?a<e.props.verifyCpuNum&&n(o+"\u4e0d\u5f97\u5c0f\u4e8e"+e.props.verifyCpuNum):!isNaN(a)&&a<=0&&"gpuNumber"!==s&&n(o+"\u4e0d\u5f97\u5c0f\u4e8e\u6216\u7b49\u4e8e\u96f6"),"\u5185\u5b58"===o){if(e.state.issinglecase){console.log("\u5355\u4f8b\u6821\u9a8c");var j=e.state.AddCheckout.data.ramMax?e.state.AddCheckout.data.ramMax:0;console.log(j+"\u6570\u636e"),console.log(e.state.replicas),a>=j&&n(o+"\u4e0d\u80fd\u8d85\u8fc7\u4e34\u754c\u503c"+j)}else console.log("\u591a\u4f8b\u6821\u9a8c");"instances_min"!==s||/^[0-9]\d*$/.test(a)||n(o+"\u5fc5\u987b\u4e3a\u6b63\u6574\u6570"),"gpuNumber"!==s||/^[0-9]\d*$/.test(a)||n(o+"\u5fc5\u987b\u4e3a\u81ea\u7136\u6570"),e.props.noResidueCheck||("cpu"===s&&a>b&&n("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+b),"memory"===s&&a>x&&n("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+x),"gpuNumber"===s&&a>C&&n("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+C)),e.props.noAllowGpu2Zero&&"gpuNumber"===s&&0===a&&n("\u5df2\u5206\u914dgpu\u7684\u670d\u52a1\uff0cgpu\u4e0d\u80fd\u8c03\u6574\u4e3a0"),n()}},this.limitDecimals=function(e){var t=/^(\-)*(\d+)\.(\d\d).*$/;return"string"===typeof e?isNaN(Number(e))?"":e.replace(t,"$1$2.$3"):"number"===typeof e?isNaN(e)?"":String(e).replace(t,"$1$2.$3"):""},this.handleSpecsChange=function(t){var a=e.state.requestQuota;if("custom_computing_resource_specs"!==t){var n=m.default.get(m.default.find(e.state.sysResourceSpecs,{resSpecId:t}),"specSetting");a={instances_min:Number(a.instances_min||1),cpu:Number(m.default.get(n,"cpu",0)),memory:Number(m.default.get(n,"memory",0)),gpuNumber:m.default.get(n,"gpu[0].gpuNumber",0),gpuModelId:m.default.get(n,"gpu[0].gpuModelId"),gpuModelName:m.default.get(n,"gpu[0].gpuModelName")}}e.setState({selectedSpecs:t,requestQuota:a},(function(){"custom_computing_resource_specs"!==t&&e.props.form.setFieldsValue({instances_min:a.instances_min})}))},this.setSysResourceSpecs=function(t,a,n,o){if(m.default.isEmpty(n)||!e.state.loadedSysSpecs||!e.state.loadedAvaQuota)return a;var s=a.filter((function(e){var a=e.specSetting,o=m.default.get(t,"instances_min",1)||1,s=m.default.get(n,"gpu",[])||[],r=m.default.get(a,"gpu[0].gpuNumber",0)||0,i=0===r||s.some((function(e){return e.gpuModelId===m.default.get(a,"gpu[0].gpuModelId")&&e.gpuNumber>=r*o}));return"custom_computing_resource_specs"===e.resSpecId||n.cpu>=a.cpu*o&&n.memory>=a.memory*o&&i})),r=m.default.find(s,{resSpecId:o})?o:m.default.isEmpty(e.props.requestQuota)?m.default.get(s,"[0].resSpecId"):"custom_computing_resource_specs";return e.setState({selectedSpecs:r}),{newSysResourceSpecs:s,newSelectedSpecs:r}}},n);D.defaultProps={requestQuota:{},source:"ONLINE_REASONING"},t.default=h.Form.create()(D)},"./src/module/grayTask/components/EnvVariables.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/button/index.js")),o=m(a("./node_modules/antd/es/input/index.js")),s=m(a("./node_modules/antd/es/row/index.js")),r=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js")),u=m(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var c=m(a("./node_modules/react/index.js")),p=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/icons/es/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=u.default.Item,g=p.default.div.withConfig({displayName:"EnvVariables__EnvVariablesWrapper",componentId:"sc-17tqzx0-0"})(["margin-top:16px;.ant-row{line-height:40px;display:flex;}"]),v=(0,r.default)(f.PlusOutlined,{}),y=(0,r.default)(f.MinusOutlined,{}),b=(0,r.default)(f.PlusOutlined,{}),x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleEnvVariablesChange=function(e,t,a,o){var s=n.props.envVariables,r=_.findIndex(s,{index:t}),i=s[r];"add"===e?(r=s.length,s.push({name:"",value:"",index:(new Date).getTime()})):"minus"===e?s.splice(r,1):"edit"===e&&(s[r][a]=o),n.props.onMirrorChange(s,e,r,i)},n.state={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.envVariables,i=t.labelText,d=t.wrapStyle,l=t.disabled;return(0,r.default)(g,{style:d,className:"env-var-wrapper"},void 0,Array.isArray(a)&&a.length>0?a.map((function(t,a){return(0,r.default)(s.default,{style:{marginTop:0===a?0:16}},t.index||-1,(0,r.default)(h,{label:0===a?i:i?" ":"",className:"sm-label",colon:0===a,name:"envKey"+t.index,initialValue:t.name,rules:[{pattern:/^[a-zA-Z_]+$/,message:"\u4ec5\u652f\u6301\u82f1\u6587\u5b57\u6bcd\u4e0b\u5212\u7ebf"}]},void 0,(0,r.default)(o.default,{disabled:l,placeholder:"\u540d\u79f0",style:{width:200},onBlur:function(a){return e.handleEnvVariablesChange("edit",t.index,"name",a.target.value)}})),(0,r.default)(h,{style:{marginLeft:10},name:"envValue"+t.index,initialValue:t.value},void 0,(0,r.default)(o.default,{placeholder:"\u503c",style:{width:200,margin:0},disabled:l,onBlur:function(a){return e.handleEnvVariablesChange("edit",t.index,"value",a.target.value)}})),(0,r.default)(h,{style:{marginLeft:10}},void 0,(0,r.default)(n.default,{icon:v,disabled:l,onClick:function(){return e.handleEnvVariablesChange("add",t.index)}}),(0,r.default)(n.default,{style:{marginLeft:10},icon:y,disabled:l,onClick:function(){return e.handleEnvVariablesChange("minus",t.index)}})))})):(0,r.default)(h,{label:i,className:"sm-label",colon:!0},void 0,(0,r.default)(n.default,{icon:b,disabled:l,onClick:function(){return e.handleEnvVariablesChange("add",0)}})))},t}(c.default.Component);x.defaultProps={envVariables:[]},t.default=x},"./src/module/grayTask/createPage/BasicInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/antd/es/row/index.js")),s=j(a("./node_modules/babel-runtime/helpers/jsx.js")),r=j(a("./node_modules/antd/es/message/index.js")),i=j(a("./node_modules/babel-runtime/regenerator/index.js")),d=j(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),l=j(a("./node_modules/babel-runtime/helpers/extends.js")),u=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=j(a("./node_modules/babel-runtime/helpers/inherits.js")),f=j(a("./node_modules/antd/es/select/index.js")),m=j(a("./node_modules/antd/es/input/index.js")),h=j(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var g=j(a("./node_modules/react/index.js")),v=j(a("./node_modules/lodash/lodash.js")),_=(j(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),y=a("./src/redux/services/modelService.js"),b=a("./src/redux/services/grayTaskService.js"),x=a("./src/module/grayTask/styled.jsx"),C=a("./src/module/grayTask/modelEnums.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=h.default.Item,I=m.default.TextArea,T=f.default.Option,w=C.ENVIRONMENT.getCodeAndDescList(),E=function(e){function t(a){var n=this;(0,u.default)(this,t);var o=(0,c.default)(this,e.call(this,a));return o.formRef=g.default.createRef(),o.fetchServiceListByBusinessId=function(){(0,y.getServiceVersionList)(o.props.taskInfo.businessId).then((function(e){var t=e.data;o.setState({serviceList:t},(function(){o.getValBlur(o.props.serviceId,"serviceId")}))}))},o.fetchServiceList=function(){o.setState({serviceListLoading:!0}),(0,y.getModelServiceSummaryList)({envType:v.default.upperCase(o.props.env),successFlag:"SUCCESS"}).then((function(e){var t=(e.data||[]).filter((function(e){return"IN_NETWORK"===e.deploymentLinkType}));o.setState({serviceList:t,serviceListLoading:!1},(function(){o.props.serviceId&&o.getValBlur(o.props.serviceId,"serviceId")}))})).catch((function(e){throw o.setState({serviceListLoading:!1}),e}))},o.getValBlur=function(e,t){var a=v.default.get(o.state.taskInfo,"businessId"),n=v.default.get(o.state.taskInfo,"appId"),s=v.default.get(o.state.taskInfo,"serviceName");if("serviceId"===t){var r=v.default.find(o.state.serviceList,{serviceId:e});r&&(a=r.businessId,n=r.appId,s=r.serviceName,o.setState({serviceVersion:r.version}))}o.setState((function(o){var r;return{taskInfo:(0,l.default)({},o.taskInfo,(r={businessId:a,appId:n,serviceName:s},r[t]=e,r))}}))},o.taskNameValid=function(){var e=(0,d.default)(i.default.mark((function e(t,a){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a&&a.trim()){e.next=2;break}throw new Error("\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0");case 2:if(!(a.length>50)){e.next=4;break}throw new Error("\u4efb\u52a1\u540d\u79f0\u4e0d\u8d85\u8fc750\u4e2a\u5b57\u7b26");case 4:return e.next=6,(0,b.checkGrayTaskNameRepeat)({taskId:"",taskName:a,deployEnv:v.default.upperCase(o.props.env)});case 6:if(!e.sent.data.isRepeat){e.next=9;break}throw new Error("\u4efb\u52a1\u540d\u79f0\u91cd\u590d");case 9:case"end":return e.stop()}}),e,n)})));return function(t,a){return e.apply(this,arguments)}}(),o.setValidateFunc=function(e,t){o.validateFuncs[e]=t},o.saveTask=function(){event.preventDefault(),o.formRef.current.validateFields().then((function(){o.setState({saveLoading:!0}),(0,b.createGrayTask)(o.state.taskInfo).then((function(e){o.setState({saveLoading:!1}),r.default.success("\u4fdd\u5b58\u6210\u529f!"),o.props.onSave&&o.props.onSave(C.TASK_STEP_STATUS.FINISH),o.props.setTaskInfo&&o.props.setTaskInfo(e.data)})).catch((function(e){throw o.setState({saveLoading:!1}),e}))}))},o.cancel=function(){o.props.onCancel&&o.props.onCancel()},o.state={taskInfo:a.taskInfo,serviceListLoading:!1,serviceList:[],serviceVersion:"v1"},o}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){"create"===this.props.action?this.fetchServiceList():this.formRef.current.setFieldsValue({serviceId:this.props.taskInfo.serviceName})},t.prototype.componentDidUpdate=function(e){v.default.isEqual(this.props.taskInfo,e.taskInfo)||(this.setState({taskInfo:this.props.taskInfo}),this.formRef.current.setFieldsValue((0,l.default)({},this.props.taskInfo))),this.props.serviceId&&this.props.serviceId!==e.serviceId&&this.getValBlur(this.props.serviceId,"serviceId")},t.prototype.render=function(){var e=this,t=this.state,a=t.taskInfo,r=t.serviceList,i=t.serviceListLoading,d=t.saveLoading,u=t.serviceVersion,c=this.props,p=c.action,v=c.status,y={width:250},b="view"===p||v===C.TASK_STEP_STATUS.FINISH;return(0,s.default)(x.PageWrapper,{},void 0,(0,s.default)(_.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,g.default.createElement(h.default,{ref:this.formRef,initialValues:"create"===this.props.action?a:(0,l.default)({},a,{serviceId:a.serviceName}),__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\grayTask\\createPage\\BasicInfo.jsx",lineNumber:148}},(0,s.default)(o.default,{},void 0,(0,s.default)(S,{label:"\u4efb\u52a1\u540d\u79f0",name:"taskName",validateTrigger:"onBlur",required:!0,rules:[{validator:this.taskNameValid}]},void 0,(0,s.default)(m.default,{disabled:b,placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0",onChange:function(t){return e.getValBlur(t.target.value,"taskName")},style:y}))),(0,s.default)(o.default,{},void 0,(0,s.default)(S,{label:"\u53d1\u5e03\u73af\u5883",name:"deployEnv",disabled:!0,required:!0},void 0,(0,s.default)(f.default,{disabled:!0,placeholder:"\u8bf7\u9009\u62e9\u53d1\u5e03\u73af\u5883",optionFilterProp:"children",onChange:function(t){return e.getValBlur(t,"deployEnv")},style:y},void 0,Array.isArray(w)&&w.map((function(e){return(0,s.default)(T,{value:e.code,label:e.desc},e.code,e.desc)}))))),(0,s.default)(o.default,{},void 0,(0,s.default)(S,{label:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",name:"serviceId",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5728\u7ebf\u63a8\u7406\u670d\u52a1\uff01"}]},void 0,(0,s.default)(f.default,{loading:i,showSearch:!0,disabled:b||this.props.serviceId,placeholder:"\u8bf7\u9009\u62e9\u5728\u7ebf\u63a8\u7406\u670d\u52a1",optionFilterProp:"children",filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},onChange:function(t,a){return e.getValBlur(t,"serviceId",a)},style:y},void 0,Array.isArray(r)&&r.map((function(e){return(0,s.default)(T,{value:e.serviceId,label:e.serviceName},e.serviceId,e.serviceName)})))),(0,s.default)(S,{label:"\u8fd0\u884c\u7248\u672c",name:"taskName"},void 0,(0,s.default)("span",{},void 0,a.version||u))),(0,s.default)(o.default,{},void 0,(0,s.default)(S,{label:"\u63cf\u8ff0",name:"desc",rules:[{max:100,type:"string",message:"\u63cf\u8ff0\u5185\u5bb9\u4e0d\u5f97\u8d85\u8fc7100\u4e2a\u5b57\u7b26\uff01"}]},void 0,(0,s.default)(I,{disabled:b,autoSize:{minRows:4,maxRows:6},style:{width:"500px"},maxLength:300,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.getValBlur(t.target.value,"desc")}}))))),"view"!==p&&(0,s.default)(x.ButtonDom,{},void 0,(0,s.default)(n.default,{onClick:this.cancel,disabled:d||b},void 0,"\u53d6\u6d88"),(0,s.default)(n.default,{onClick:this.saveTask,style:{marginLeft:"10px"},type:"primary",loading:d,disabled:b},void 0,"\u4fdd\u5b58")))},t}(g.default.PureComponent);E.defaultProps={taskInfo:{}},t.default=E},"./src/module/grayTask/createPage/CreateGrayTaskPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/babel-runtime/helpers/jsx.js")),o=x(a("./node_modules/babel-runtime/helpers/extends.js")),s=x(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/modal/style/index.js");var r=a("./node_modules/react/index.js"),i=(x(r),x(a("./node_modules/lodash/lodash.js"))),d=(x(a("./node_modules/prop-types/index.js")),a("./src/module/grayTask/styled.jsx")),l=x(a("./src/module/grayTask/createPage/BasicInfo.jsx")),u=x(a("./src/module/grayTask/createPage/deploy/DeployInfo.jsx")),c=x(a("./src/module/grayTask/createPage/configPolicy/ConfigGrayPolicy.jsx")),p=x(a("./src/module/grayTask/createPage/grayMonitor/GrayMonitor.jsx")),f=x(a("./src/module/grayTask/createPage/Result.jsx")),m=x(a("./src/module/grayTask/createPage/TaskSteps.jsx")),h=a("./src/redux/services/grayTaskService.js"),g=a("./src/utils/history.js"),v=a("./src/module/grayTask/modelEnums.js"),_=a("./src/routes/routeHelper.jsx"),y=a("./src/components/index.js"),b=a("./src/module/grayTask/utils.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=s.default.confirm,j=(0,b.getStepIndexMap)(),S=(0,n.default)(y.LoadingIndicator,{}),I=function(e){var t=i.default.get(e.match,"params.action",""),a=i.default.upperCase(i.default.get(e.match,"params.env","")),s=i.default.get(e.match,"params.serviceId",""),y=i.default.get(e.match,"params.taskId",""),x=i.default.get(e.match,"params.step",v.TASK_STEP.CREATE)||v.TASK_STEP.CREATE,I=(0,r.useState)(!1),T=I[0],w=I[1],E=(0,r.useState)(b.DEFAULT_STEP_STATE),D=E[0],M=E[1],k=(0,r.useState)(x),P=k[0],L=k[1],N=(0,r.useState)({deployEnv:a,serviceId:s}),A=N[0],R=N[1],F=(0,r.useState)({}),O=F[0],V=F[1],U=(0,r.useState)(!1),B=U[0],G=U[1];(0,r.useEffect)((function(){q(),z()}),[A.taskId,y]),(0,r.useEffect)((function(){z(),(0,g.navigateTo)(_.grayTaskUrl.create({action:t,profile:i.default.lowerCase(a),taskId:y||A.taskId,step:P,serviceId:s}))}),[P]);var z=function(){var e=y||A.taskId;e&&(!B&&w(!0),(0,h.getGrayTaskInfo)(e).then((function(e){var a=e.data,n=(0,b.getStepStatus)(a.stage,t,j[a.processPhase]);M(n),R(a),w(!1),G(!0)})).catch((function(e){throw w(!1),e})))},q=function(){var e=y||A.taskId;e&&(0,h.getStrategy)(e).then((function(e){V(e.data)}))},K=function(e,t,a){var n;a&&R(a);var s=(0,o.default)({},D,((n={})[e]=t,n));M(s),t===v.TASK_STEP_STATUS.FINISH&&setTimeout((function(){Y(e,s)}),500)},H=function(e){C({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u53d6\u6d88"+(e===v.TASK_STEP.CREATE?"\u521b\u5efa\u7070\u5ea6\u53d1\u5e03":"\u53d1\u5e03")+"?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,n){e===v.TASK_STEP.CREATE?(t(),(0,g.navigateTo)({pathname:_.grayTaskUrl.list(),state:{activeEnv:a}})):A.taskId&&(0,h.cancelGrayVersion)(A.taskId,{processPhase:j[e]}).then((function(){var a,n=(0,o.default)({},D,((a={})[e]=v.TASK_STEP_STATUS.WAIT,a[v.TASK_STEP.PUBLISHED]=v.TASK_STEP_STATUS.ERROR,a));M(n),L(v.TASK_STEP.PUBLISHED),t()})).catch((function(e){n(e)}))}))}})},Y=function(e,t){var a=Object.keys(D),n=a.indexOf(e)+1;if(n<a.length){var s,r=a[n],i=v.TASK_STEP.MONITOR===e?v.TASK_STEP_STATUS.FINISH:v.TASK_STEP_STATUS.PROCESS;M((0,o.default)({},t,((s={})[r]=i,s))),L(r)}};return(0,n.default)(d.PageWrapper,{},void 0,(0,n.default)("div",{className:"page-step__wrapper"},void 0,(0,n.default)(m.default,{stepStatus:D,curStep:P,setCurStep:L})),T?S:(0,n.default)("div",{},void 0,D[v.TASK_STEP.CREATE]!==v.TASK_STEP_STATUS.WAIT&&(0,n.default)("div",{style:{display:P===v.TASK_STEP.CREATE?"block":"none"}},void 0,(0,n.default)(l.default,{taskId:y||A.taskId,env:a,serviceId:A.serviceId,status:D[P],taskInfo:A,setTaskInfo:R,action:t,onCancel:function(){return H(v.TASK_STEP.CREATE)},onSave:function(e){return K(v.TASK_STEP.CREATE,e)}})),D[v.TASK_STEP.DEPLOY]!==v.TASK_STEP_STATUS.WAIT&&(0,n.default)("div",{style:{display:P===v.TASK_STEP.DEPLOY?"block":"none"}},void 0,(0,n.default)(u.default,{env:a,serviceId:A.serviceId,taskId:y||A.taskId,businessId:A.businessId,targetId:A.targetId,status:D[P],action:t,onCancel:function(){return H(v.TASK_STEP.DEPLOY)},onSave:function(e){return K(v.TASK_STEP.DEPLOY,e)}})),D[v.TASK_STEP.CONFIG]!==v.TASK_STEP_STATUS.WAIT&&(0,n.default)("div",{style:{display:P===v.TASK_STEP.CONFIG?"block":"none"}},void 0,(0,n.default)(c.default,{env:a,isAuth:A.auth,serviceId:A.serviceId,taskId:y||A.taskId,businessId:A.businessId,strategy:O,status:D[P],action:t,onCancel:function(){return H(v.TASK_STEP.CONFIG)},onSave:function(e){return K(v.TASK_STEP.CONFIG,e)},setStrategy:V})),D[v.TASK_STEP.MONITOR]!==v.TASK_STEP_STATUS.WAIT&&(0,n.default)("div",{style:{display:P===v.TASK_STEP.MONITOR?"block":"none"}},void 0,(0,n.default)(p.default,{env:a,serviceId:A.serviceId,taskId:y||A.taskId,businessId:A.businessId,strategy:O,status:D[P],action:t,onCancel:function(){return H(v.TASK_STEP.MONITOR)},onSave:function(e){return K(v.TASK_STEP.MONITOR,e)},setStrategy:V,startAt:A.runAt,endAt:[v.TASK_STAGE.PUBLISHED,v.TASK_STAGE.CANCELED].includes(A.stage)?A.updateAt:void 0})),D[v.TASK_STEP.PUBLISHED]!==v.TASK_STEP_STATUS.WAIT&&(0,n.default)("div",{style:{display:P===v.TASK_STEP.PUBLISHED?"block":"none"}},void 0,(0,n.default)(f.default,{status:D[P]}))))};I.defaultProps={templateInfo:{}},t.default=I},"./src/module/grayTask/createPage/Result.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(s(a("./node_modules/react/index.js")),s(a("./node_modules/prop-types/index.js")),a("./src/components/Icon/index.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.status;return(0,n.default)("div",{style:{minHeight:500,width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},void 0,(0,n.default)(o.IconSvg,{style:{width:"100%"},type:"finish"===t?"publishSuccess":"publishCancel",size:500}))}},"./src/module/grayTask/createPage/TaskSteps.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=r(a("./node_modules/antd/es/steps/index.js"));a("./node_modules/antd/es/steps/style/index.js");r(a("./node_modules/react/index.js")),r(a("./node_modules/prop-types/index.js"));var s=a("./src/module/grayTask/modelEnums.js");function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.Step,d=s.TASK_STEP.getValueAndDescList();t.default=function(e){var t=e.stepStatus,a=e.curStep,r=e.setCurStep;return(0,n.default)(o.default,{current:a},void 0,d.map((function(e){return(0,n.default)(i,{style:{cursor:t[e.code]===s.TASK_STEP_STATUS.WAIT?"default":"pointer"},title:s.TASK_STEP_STATUS.getDescFromValue(t[e.code]),description:t[e.code]===s.TASK_STEP_STATUS.ERROR&&e.code===s.TASK_STEP.PUBLISHED?"\u53d1\u5e03\u53d6\u6d88":e.desc,status:t[e.code],onClick:function(){var a;a=e.code,t[a]!==s.TASK_STEP_STATUS.WAIT&&(event.preventDefault(),r&&r(a))}},e.code)})))}},"./src/module/grayTask/createPage/configPolicy/ConfigGrayPolicy.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/button/index.js")),o=C(a("./node_modules/babel-runtime/helpers/extends.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/antd/es/message/index.js")),i=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=C(a("./node_modules/babel-runtime/helpers/inherits.js")),u=C(a("./node_modules/antd/es/form/index.js")),c=C(a("./node_modules/antd/es/radio/index.js")),p="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\grayTask\\createPage\\configPolicy\\ConfigGrayPolicy.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var f=C(a("./node_modules/react/index.js")),m=(C(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),h=C(a("./src/module/grayTask/createPage/configPolicy/FlowConfig.jsx")),g=C(a("./src/module/grayTask/createPage/configPolicy/TargetConfig.jsx")),v=C(a("./src/module/grayTask/createPage/configPolicy/ReqBodyConfig.jsx")),y=a("./src/module/grayTask/styled.jsx"),b=a("./src/redux/services/grayTaskService.js"),x=a("./src/module/grayTask/modelEnums.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=x.DIVERSION_STRATEGY.getValueAndDescList(),S=c.default.Group,I=u.default.Item,T=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handlePolicyChange=function(e){n.setState({curPolicy:e.target.value})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.confirm=function(){n.setState({saveLoading:!0});var e=n.validateFuncs[n.state.curPolicy].call();(0,b.configGrayPolicy)(n.props.taskId,e).then((function(){r.default.success("\u542f\u52a8\u64cd\u4f5c\u6210\u529f"),n.props.onSave&&n.props.onSave(x.TASK_STEP_STATUS.FINISH),n.props.setStrategy&&n.props.setStrategy(e),n.setState({saveLoading:!1})})).catch((function(e){throw n.setState({saveLoading:!1}),e}))},n.cancel=function(){n.props.onCancel&&n.props.onCancel()},n.state={curPolicy:_.get(a.strategy,"strategyType",j[0].code)||j[0].code,saveLoading:!1},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.curPolicy,r=t.saveLoading,i=this.props,d=i.status,l=i.action,_=i.strategy,b=x.TASK_STEP_STATUS.FINISH===d||"view"===l;return(0,s.default)(y.PageWrapper,{},void 0,(0,s.default)(m.ModelConfigPanel,{title:"\u7070\u5ea6\u7b56\u7565"},void 0,(0,s.default)(u.default,{initialValues:{policy:a}},void 0,(0,s.default)(I,{name:"policy",label:"\u5206\u6d41\u7b56\u7565",rules:[{required:!0}]},void 0,(0,s.default)(S,{onChange:this.handlePolicyChange,disabled:b},void 0,j.map((function(t){return(0,s.default)(c.default,{value:t.code,style:{marginRight:32},disabled:!e.props.isAuth&&t.code===x.DIVERSION_STRATEGY.USER},t.code,t.desc)}))))),function(t){switch(t){case x.DIVERSION_STRATEGY.RATIO:return f.default.createElement(h.default,(0,o.default)({},e.props,{curPercent:_.grayRatio,disabled:b,setValidateFunc:e.setValidateFunc,__source:{fileName:p,lineNumber:83}}));case x.DIVERSION_STRATEGY.USER:return f.default.createElement(g.default,(0,o.default)({},e.props,{serviceApis:_.serviceApis,grayApis:_.grayApis,disabled:b,setValidateFunc:e.setValidateFunc,__source:{fileName:p,lineNumber:92}}));case x.DIVERSION_STRATEGY.CONTENT:return f.default.createElement(v.default,(0,o.default)({},e.props,{headKey:_.headKey,headValue:_.headValue,disabled:b,setValidateFunc:e.setValidateFunc,__source:{fileName:p,lineNumber:102}}))}}(a),"view"!==l&&(0,s.default)(y.ButtonDom,{},void 0,(0,s.default)(n.default,{onClick:this.cancel,disabled:r||b},void 0,"\u53d6\u6d88\u53d1\u5e03"),(0,s.default)(n.default,{onClick:this.confirm,style:{marginLeft:"10px"},type:"primary",loading:r,disabled:b},void 0,"\u542f\u52a8\u7070\u5ea6\u53d1\u5e03"))))},t}(f.default.PureComponent);T.defaultProps={},t.default=T},"./src/module/grayTask/createPage/configPolicy/FlowConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/tooltip/index.js")),o=g(a("./node_modules/antd/es/slider/index.js")),s=g(a("./node_modules/antd/es/space/index.js")),r=g(a("./node_modules/babel-runtime/helpers/jsx.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/slider/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var c=g(a("./node_modules/react/index.js")),p=a("./node_modules/@ant-design/icons/es/index.js"),f=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./src/module/grayTask/styled.jsx"),h=a("./src/module/grayTask/modelEnums.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=(0,f.default)(m.PageWrapper).withConfig({displayName:"FlowConfig__ConfigPageWrapper",componentId:"zmjl0v-0"})([".ant-form-horizontal .ant-form-item-label{width:130px;}.ant-slider-rail,.ant-slider-track,.ant-slider-step{height:12px;}.ant-slider-handle{width:24px;height:24px;}.ant-slider-rail,.ant-slider-track{border-radius:6px;}.ant-slider{margin-top:4px;}"]),y=u.default.Item,b=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.formRef=c.default.createRef(),n.handleFlowPercentChange=function(e){n.setState({curPercent:e})},n.confirm=function(){return{strategyType:h.DIVERSION_STRATEGY.RATIO,grayRatio:n.state.curPercent,serviceRatio:100-n.state.curPercent}},n.state={curPercent:a.curPercent||0};var o=n.props.setValidateFunc;return _.isFunction(o)&&o(h.DIVERSION_STRATEGY.RATIO,n.confirm),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.curPercent!==e.curPercent&&(this.setState({curPercent:this.props.curPercent}),this.formRef.current.setFieldsValue({flowPercent:this.props.curPercent}))},t.prototype.render=function(){var e=this.state.curPercent;return(0,r.default)(v,{},void 0,c.default.createElement(u.default,{name:"basic",ref:this.formRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\grayTask\\createPage\\configPolicy\\FlowConfig.jsx",lineNumber:69}},(0,r.default)(y,{label:"\u7070\u5ea6\u7248\u672c\u5206\u6d41\u6bd4\u4f8b"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(y,{name:"flowPercent",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7070\u5ea6\u5206\u6d41\u6bd4\u4f8b\uff01"}],initialValue:e},void 0,(0,r.default)(o.default,{min:0,max:100,size:"large",onChange:this.handleFlowPercentChange,disabled:this.props.disabled,style:{width:"20%",minWidth:200}})),(0,r.default)("div",{style:{margin:"-20px 0 0 -5px"}},void 0,(0,r.default)("span",{},void 0,e+"%"),(0,r.default)(n.default,{title:"\u8c03\u7528\u670d\u52a1API\u65f6\uff0c\u5c06\u6839\u636e\u5206\u6d41\u6bd4\u4f8b\u5c06\u8c03\u7528\u968f\u673a\u5206\u6d41\u5230\u7070\u5ea6\u7248\u672c\u6216\u8fd0\u884c\u7248\u672c\u4e0a"},void 0,(0,r.default)(p.QuestionCircleOutlined,{style:{marginLeft:12,fontSize:"14px"},className:"icon"})))))))},t}(c.default.PureComponent);b.defaultProps={},t.default=b},"./src/module/grayTask/createPage/configPolicy/ReqBodyConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/tooltip/index.js")),o=g(a("./node_modules/antd/es/input/index.js")),s=g(a("./node_modules/antd/es/row/index.js")),r=g(a("./node_modules/babel-runtime/helpers/jsx.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var c=g(a("./node_modules/react/index.js")),p=a("./node_modules/@ant-design/icons/es/index.js"),f=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./src/module/grayTask/styled.jsx"),h=a("./src/module/grayTask/modelEnums.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=(0,f.default)(m.PageWrapper).withConfig({displayName:"ReqBodyConfig__ConfigPageWrapper",componentId:"nwa0ca-0"})([".ant-form-horizontal .ant-form-item-label{width:125px;}"]),y=u.default.Item,b=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.formRef=c.default.createRef(),n.handleInputChange=function(e,t){var a;n.setState(((a={})[t]=e,a))},n.confirm=function(){return{strategyType:h.DIVERSION_STRATEGY.CONTENT,headKey:n.state.headKey,headValue:n.state.headValue}},n.state={headKey:a.headKey,headValue:a.headValue};var o=n.props.setValidateFunc;return _.isFunction(o)&&o(h.DIVERSION_STRATEGY.CONTENT,n.confirm),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.headKey===e.headKey&&this.props.headValue===e.headValue||(this.setState({headKey:this.props.headKey,headValue:this.props.headValue}),this.formRef.current.setFieldsValue({headKey:this.props.headKey,headValue:this.props.headValue}))},t.prototype.render=function(){var e=this;return(0,r.default)(v,{},void 0,c.default.createElement(u.default,{name:"basic",ref:this.formRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\grayTask\\createPage\\configPolicy\\ReqBodyConfig.jsx",lineNumber:53}},(0,r.default)(s.default,{},void 0,(0,r.default)(y,{name:"headKey",label:"\u7070\u5ea6\u7248\u672cHeader",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7070\u5ea6\u7248\u672cHeader"},{max:50,type:"string",message:"headKey\u4e0d\u5f97\u8d85\u8fc750\u4e2a\u5b57\u7b26\uff01"}],initialValue:this.state.headKey},void 0,(0,r.default)(o.default,{placeholder:"\u8bf7\u8f93\u5165Key",disabled:this.props.disabled,onChange:function(t){return e.handleInputChange(t.target.value,"headKey")}})),(0,r.default)("span",{style:{height:32,lineHeight:"32px",width:32,textAlign:"center"}},void 0,"="),(0,r.default)(y,{name:"headValue",label:"",rules:[{required:!0,message:"\u8bf7\u8f93\u5165Value"},{max:50,type:"string",message:"headValue\u4e0d\u5f97\u8d85\u8fc750\u4e2a\u5b57\u7b26\uff01"}],initialValue:this.state.headValue},void 0,(0,r.default)(o.default,{placeholder:"\u8bf7\u8f93\u5165Value",disabled:this.props.disabled,onChange:function(t){return e.handleInputChange(t.target.value,"headValue")}})),(0,r.default)(n.default,{title:"\u8c03\u7528\u670d\u52a1API\u65f6\u8bf7\u6c42\u62a5\u6587\u4e2dHeader\u7684key value\u6ee1\u8db3\u89c4\u5219\u65f6\u8be5\u8c03\u7528\u5206\u6d41\u7ed9\u7070\u5ea6\u7248\u672c"},void 0,(0,r.default)(p.QuestionCircleOutlined,{style:{marginLeft:12,fontSize:"14px",marginTop:6},className:"icon"})))))},t}(c.default.PureComponent);b.defaultProps={},t.default=b},"./src/module/grayTask/createPage/configPolicy/TargetConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/babel-runtime/helpers/extends.js")),o=C(a("./node_modules/antd/es/table/index.js")),s=C(a("./node_modules/antd/es/button/index.js")),r=C(a("./node_modules/antd/es/modal/index.js")),i=C(a("./node_modules/antd/es/tooltip/index.js")),d=C(a("./node_modules/babel-runtime/helpers/jsx.js")),l=C(a("./node_modules/antd/es/message/index.js")),u=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=C(a("./node_modules/babel-runtime/helpers/inherits.js")),f=C(a("./node_modules/antd/es/radio/index.js")),m=C(a("./node_modules/antd/es/input/index.js")),h=C(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var g=C(a("./node_modules/react/index.js")),v=a("./node_modules/@ant-design/icons/es/index.js"),y=(C(a("./node_modules/prop-types/index.js")),a("./src/module/grayTask/styled.jsx")),b=a("./src/module/grayTask/modelEnums.js"),x=a("./src/redux/services/grayTaskService.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=h.default.Item,S=m.default.Search,I=f.default.Group,T=(0,d.default)(f.default,{value:"grayVersion"},void 0,"\u7070\u5ea6\u7248\u672c"),w=(0,d.default)(f.default,{value:"grayVersion"},void 0,"\u7070\u5ea6\u7248\u672c"),E=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));n.fetchData=function(){n.setState({listLoading:!0}),(0,x.getServiceApiUsers)(n.props.businessId,{userName:n.state.searchText}).then((function(e){n.setState({apiUserList:e.data,listLoading:!1})})).catch((function(e){throw n.setState({listLoading:!1}),e}))},n.handleRowPubVersionChange=function(e,t,a){n.setState((function(n){var o,s=[].concat(n[t]),r=s.indexOf(a);return r>-1&&s.splice(r,1),(o={})[e]=[].concat(n[e],[a]),o[t]=[].concat(s),o}))},n.handleSearchChange=function(e){n.setState({searchText:e},n.fetchData)},n.handleBatchPub=function(){0!==n.state.selectedRowKeys.length?n.setState({isModalVisible:!0}):l.default.info("\u8bf7\u9009\u62e9API\u7528\u6237")},n.handleCancel=function(){n.setState({isModalVisible:!1})},n.handlePubVersionChange=function(e){n.setState({pubVersionType:e.target.value})},n.handleOk=function(){var e=n.state,t=e.serviceApis,a=e.grayApis,o=e.pubVersionType,s=e.selectedRowKeys;"runVersion"===o?n.handleBatchSelect(s,t,a):n.handleBatchSelect(s,a,t),t=Array.from(new Set(t)),a=Array.from(new Set(a)),n.setState({isModalVisible:!1,serviceApis:t,grayApis:a})},n.handleBatchSelect=function(e,t,a){for(var n=0;n<e.length;n++){var o=e[n],s=a.indexOf(o);s>-1&&a.splice(s,1),t.push(o)}},n.confirm=function(){var e=n.state,t=e.apiUserList,a=e.serviceApis,o=e.grayApis;return{strategyType:b.DIVERSION_STRATEGY.USER,serviceApis:a.filter((function(e){return _.find(t,{apiUserId:e})})),grayApis:o.filter((function(e){return _.find(t,{apiUserId:e})}))}},n.state={searchText:"",listLoading:!1,apiUserList:[],isModalVisible:!1,pubVersionType:"runVersion",serviceApis:a.serviceApis||[],grayApis:a.grayApis||[],selectedRowKeys:[]},n.columns=[{title:"API\u7528\u6237",dataIndex:"apiUserName",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u63cf\u8ff0",dataIndex:"apiUserDesc",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u53d1\u5e03\u7248\u672c",dataIndex:"pubVersionType",ellipsis:!0,render:function(e,t){return(0,d.default)(I,{onChange:function(e){var a="runVersion"===e.target.value?"serviceApis":"grayApis",o="runVersion"===e.target.value?"grayApis":"serviceApis";n.handleRowPubVersionChange(a,o,t.apiUserId)},value:n.state.grayApis.includes(t.apiUserId)?"grayVersion":"runVersion",disabled:n.props.disabled},void 0,(0,d.default)(f.default,{value:"runVersion",style:{marginRight:32}},void 0,"\u8fd0\u884c\u7248\u672c"),T)}}];var o=n.props.setValidateFunc;return _.isFunction(o)&&o(b.DIVERSION_STRATEGY.USER,n.confirm),n.rowSelection={onChange:function(e){n.setState({selectedRowKeys:e})},getCheckboxProps:function(){return{disabled:n.props.disabled}}},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){_.isEqual(this.props.serviceApis,e.serviceApis)||this.setState({serviceApis:this.props.serviceApis}),_.isEqual(this.props.grayApis,e.grayApis)||this.setState({grayApis:this.props.grayApis})},t.prototype.render=function(){var e=this.state,t=e.apiUserList,a=e.isModalVisible,l=e.pubVersionType,u=e.listLoading;return(0,d.default)(y.PageWrapper,{},void 0,(0,d.default)(r.default,{title:"\u6279\u91cf\u9009\u62e9\u53d1\u5e03\u7248\u672c",visible:a,onOk:this.handleOk,onCancel:this.handleCancel},void 0,(0,d.default)(h.default,{name:"modal",initialValues:{pubVersionType:l}},void 0,(0,d.default)(j,{name:"pubVersionType",label:"\u53d1\u5e03\u7248\u672c",rules:[{required:!0}]},void 0,(0,d.default)(I,{onChange:this.handlePubVersionChange},void 0,(0,d.default)(f.default,{value:"runVersion",style:{marginRight:32}},void 0,"\u8fd0\u884c\u7248\u672c"),w)))),(0,d.default)(h.default,{name:"basic"},void 0,(0,d.default)("div",{style:{display:"flex",justifyContent:"space-between"}},void 0,(0,d.default)(j,{name:"flowPercent",label:"\u53d1\u5e03\u5bf9\u8c61"},void 0,(0,d.default)("div",{style:{display:"flex",alignItems:"center"}},void 0,(0,d.default)(S,{placeholder:"API\u7528\u6237\u540d\u79f0",onSearch:this.handleSearchChange,style:{width:300},allowClear:!0}),(0,d.default)(i.default,{title:"\u8c03\u7528\u670d\u52a1API\u65f6\uff0c\u67d0\u4e00API\u7528\u6237\u7684\u8c03\u7528\u5c06\u5168\u90e8\u5206\u6d41\u5230\u8be5API\u7528\u6237\u5bf9\u5e94\u7684\u53d1\u5e03\u7248\u672c\u4e0a"},void 0,(0,d.default)(v.QuestionCircleOutlined,{style:{marginLeft:12,fontSize:"14px"},className:"icon"})))),(0,d.default)(s.default,{type:"link",onClick:this.handleBatchPub,disabled:this.props.disabled},void 0,"\u6279\u91cf\u9009\u62e9\u53d1\u5e03\u7248\u672c")),(0,d.default)(o.default,{rowSelection:(0,n.default)({type:"checkbox"},this.rowSelection),rowKey:"apiUserId",loading:u,columns:this.columns,dataSource:t})))},t}(g.default.Component);E.defaultProps={},t.default=E},"./src/module/grayTask/createPage/deploy/CreateGrayVersion.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/antd/es/row/index.js")),s=j(a("./node_modules/babel-runtime/helpers/jsx.js")),r=j(a("./node_modules/antd/es/message/index.js")),i=j(a("./node_modules/babel-runtime/helpers/extends.js")),d=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=j(a("./node_modules/babel-runtime/helpers/inherits.js")),c=j(a("./node_modules/antd/es/input/index.js")),p=j(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var f=j(a("./node_modules/react/index.js")),m=(j(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),h=a("./src/redux/services/modelService.js"),g=a("./src/redux/services/grayTaskService.js"),v=j(a("./src/module/grayTask/createPage/deploy/MirrorBuildInfo.jsx")),y=j(a("./src/module/grayTask/components/ComputingResource.jsx")),b=a("./src/module/grayTask/styled.jsx"),x=a("./src/module/modelService/utils.js"),C=a("./src/module/grayTask/modelEnums.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=p.default.Item,I=c.default.TextArea,T=(0,s.default)(m.LoadingIndicator,{position:"relative"}),w=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.formRef=f.default.createRef(),n.fetchData=function(){n.setState({baseInfoLoading:!0}),(0,h.getServiceInfo)(n.props.serviceId).then((function(e){if(e){var t=(0,x.getParseData)(e.data).allModuleData,a=_.get(t,"startParamsConfig",{})||{},o=_.get(t,"computingResource",{})||{},s=_.get(t,"baseInfo",{})||{};n.setState({moduleData:(0,i.default)({},n.state.moduleData,{serviceBusinessTpe:s.serviceBusinessTpe,mirror:a,quota:o}),baseInfoLoading:!1})}})).catch((function(e){throw n.setState({baseInfoLoading:!1}),e}))},n.handleParamsChange=function(e,t){n.setState((function(a){var n=(0,i.default)({},a.moduleData);return n[t]=e,{moduleData:n}}))},n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.cancel=function(){n.props.onCancel&&n.props.onCancel()},n.saveTask=function(){var e={},t=!0;Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(_.isFunction(o)){var s=o.call();s.validate&&(e[a]=s.moduleData),t&&(t=s.validate)}})),t&&n.formRef.current.validateFields().then((function(){var t=(0,i.default)({},n.state.moduleData,{quota:e.computingResource,mirror:(0,i.default)({},e.mirrorInfo,{envVars:_.get(e,"mirrorInfo.envVars",[]).map((function(e){return{name:e.name,value:e.value}}))})});n.setState({saveLoading:!0}),(0,g.deployGrayVersion)(n.props.taskId,t).then((function(){r.default.success("\u4fdd\u5b58\u6210\u529f"),n.setState({saveLoading:!1}),n.props.onSave&&n.props.onSave(C.TASK_STEP_STATUS.FINISH)})).catch((function(e){throw n.setState({saveLoading:!1}),e}))}))};var o=a.lastVersion?Number(a.lastVersion.replace("v","")):1,s="v"+(isNaN(o)?1:o+1);return n.state={moduleData:{serviceId:a.serviceId,serviceBusinessTpe:"",mirror:{envVars:[{name:"",value:"",index:(new Date).getTime()}]},quota:{}},serviceVersion:s,saveLoading:!1,result:!1},n.validateFuncs={},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){if(this.props.lastVersion!==e.lastVersion){var t=this.props.lastVersion?Number(this.props.lastVersion.replace("v","")):1,a="v"+(isNaN(t)?1:t+1);this.setState({serviceVersion:a})}},t.prototype.render=function(){var e=this,t=this.state,a=t.baseInfoLoading,r=t.saveLoading,d=t.moduleData,l=t.serviceVersion,u=this.props.disabled;return a?(0,s.default)(b.PageWrapper,{style:{minHeight:400}},void 0,T):(0,s.default)(b.PageWrapper,{},void 0,f.default.createElement(p.default,{ref:this.formRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\grayTask\\createPage\\deploy\\CreateGrayVersion.jsx",lineNumber:153}},(0,s.default)(m.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(S,{label:"\u7248\u672c\u53f7",name:"versionName",required:!0},void 0,(0,s.default)("span",{},void 0,l))),(0,s.default)(o.default,{},void 0,(0,s.default)(S,{label:"\u63cf\u8ff0",name:"desc"},void 0,(0,s.default)(I,{disabled:u,autoSize:{minRows:4,maxRows:6},style:{width:"700px"},maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.handleParamsChange(t.target.value,"serviceDesc")}})))),(0,s.default)(v.default,{disabled:u,formRef:this.formRef,env:this.props.env,setValidateFunc:this.setValidateFunc,applicationId:d.serviceBusinessTpe,moduleData:(0,i.default)({},d.mirror)}),(0,s.default)(y.default,{canModify:!u,pubEnvType:this.props.env,requestQuota:(0,i.default)({},d.quota),setValidateFunc:this.setValidateFunc,source:"ONLINE_REASONING"})),(0,s.default)(b.ButtonDom,{},void 0,(0,s.default)(n.default,{onClick:this.cancel,disabled:r||u},void 0,"\u53d6\u6d88\u53d1\u5e03"),(0,s.default)(n.default,{onClick:this.saveTask,style:{marginLeft:"10px"},type:"primary",loading:r,disabled:u&&!this.state.result},void 0,"\u4fdd\u5b58")))},t}(f.default.Component);t.default=w},"./src/module/grayTask/createPage/deploy/DeployInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/extends.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js")),d=h(a("./node_modules/antd/es/tabs/index.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\grayTask\\createPage\\deploy\\DeployInfo.jsx";a("./node_modules/antd/es/tabs/style/index.js");var u=h(a("./node_modules/react/index.js")),c=(h(a("./node_modules/prop-types/index.js")),h(a("./src/module/grayTask/createPage/deploy/CreateGrayVersion.jsx"))),p=h(a("./src/module/grayTask/createPage/deploy/SelectGrayVersion.jsx")),f=a("./src/module/grayTask/styled.jsx"),m=a("./src/module/grayTask/modelEnums.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=d.default.TabPane,v=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleOptTypeChange=function(e){n.setState({optType:e})},n.onLastVersion=function(e){n.setState({lastVersion:e})},n.state={optType:"create",lastVersion:""},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.state,t=e.optType,a=e.lastVersion,s=this.props,r=s.status,i=s.action,h=m.TASK_STEP_STATUS.FINISH===r;return"view"===i||"edit"===i&&m.TASK_STEP_STATUS.FINISH===r?(0,o.default)(f.PageWrapper,{},void 0,u.default.createElement(p.default,(0,n.default)({},this.props,{disabled:h,action:i,__source:{fileName:l,lineNumber:35}}))):(0,o.default)(f.PageWrapper,{},void 0,(0,o.default)(d.default,{defaultActiveKey:t,onChange:this.handleOptTypeChange},void 0,(0,o.default)(g,{tab:"\u521b\u5efa\u7070\u5ea6\u4efb\u52a1",disabled:h},"create"),(0,o.default)(g,{tab:"\u9009\u62e9\u5386\u53f2\u7248\u672c",disabled:h},"select")),(0,o.default)("div",{style:{display:"create"===t?"flex":"none"}},void 0,u.default.createElement(c.default,(0,n.default)({},this.props,{disabled:h,lastVersion:a,__source:{fileName:l,lineNumber:47}}))),(0,o.default)("div",{style:{display:"select"===t?"flex":"none"}},void 0,u.default.createElement(p.default,(0,n.default)({},this.props,{disabled:h,onLastVersion:this.onLastVersion,__source:{fileName:l,lineNumber:50}}))))},t}(u.default.PureComponent);v.defaultProps={},t.default=v},"./src/module/grayTask/createPage/deploy/MirrorBuildInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=T(a("./node_modules/antd/es/spin/index.js")),o=T(a("./node_modules/antd/es/input-number/index.js")),s=T(a("./node_modules/antd/es/tooltip/index.js")),r=T(a("./node_modules/antd/es/row/index.js")),i=T(a("./node_modules/babel-runtime/helpers/jsx.js")),d=T(a("./node_modules/antd/es/message/index.js")),l=T(a("./node_modules/babel-runtime/helpers/extends.js")),u=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=T(a("./node_modules/babel-runtime/helpers/inherits.js")),f=T(a("./node_modules/antd/es/radio/index.js")),m=T(a("./node_modules/antd/es/input/index.js")),h=T(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var g=T(a("./node_modules/react/index.js")),v=a("./node_modules/@ant-design/icons/es/index.js"),y=(T(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),b=T(a("./src/module/grayTask/createPage/deploy/ModeVersionSelect.jsx")),x=T(a("./src/module/grayTask/createPage/deploy/MirrorVersionSelect.jsx")),C=a("./src/utils/dockerFileUtil.js"),j=a("./src/redux/services/modelMirror.js"),S=T(a("./src/module/grayTask/components/EnvVariables.jsx")),I=a("./src/module/grayTask/modelEnums.js");function T(e){return e&&e.__esModule?e:{default:e}}var w=h.default.Item,E=m.default.TextArea,D=f.default.Group,M={marginTop:16},k={width:"100%"},P={width:"100%",minWidth:"600px",marginTop:6},L=I.MODEL_TYPE.getCodeAndDescList(),N=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));n.updateSetDockerFile=function(e){n.setState({dockerFilesLoading:!0}),(0,C.updateSetDockerFileSort)(e,{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:"logpath",model:"model"}).then((function(e){for(var t=[],a=0;a<e.length;a++){var o=e[a];"hand"===e[a].type&&(o.type="model"),t.push(o)}n.dockerFileSort=t,n.setState({dockerFilesLoading:!1})}))},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.validateFun=function(){var e=!0,t=n.state.moduleData;return"MODEL"===t.sourceType?n.validateFuncs=_.omit(n.validateFuncs,["MirrorVersionSelect"]):n.validateFuncs=_.omit(n.validateFuncs,["ModeVersionSelect"]),Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(_.isFunction(o)){var s=o.call();e&&(e=s.validate),t=(0,l.default)({},t,s.moduleData)}})),t=n.getOmitModuleData(t),{validate:e,moduleData:(0,l.default)({},t)}},n.getOmitModuleData=function(e){return"MODEL"===e.sourceType?e=(0,l.default)({},e,{mirrorId:"",mirrorVersionId:""}):"MIRRORVERSION"===e.sourceType&&(e=(0,l.default)({},e,{modelId:"",modelVersionId:"",packageId:"",workDir:"",dockerFile:""})),e},n.handleSourceTypeChange=function(e){n.handleParamsChange("sourceType",e)},n.handleParamsChange=function(e,t){n.setState((function(a){var n=(0,l.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},n.handleMirrorInfoChange=function(e){n.setState((function(t){return{moduleData:(0,l.default)({},t.moduleData,e)}}),(function(){n.props.formRef.current.setFieldsValue(e)}))},n.validateMirrorPort=function(e,t,a){t&&(!/^[0-9]\d*$/.test(t)||t<1||t>65534)&&a("\u8bf7\u8f93\u51651-65534\u4e4b\u95f4\u7684\u6b63\u6574\u6570"),a()},n.setModelVersionDockerfile=function(e,t){if(e){var a={key:"",value:e,type:"model"};n.getDockerfileContent(a,null,null,null,t)}},n.setStartParams=function(e,t,a){if(t){var o={key:"",value:t,type:{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:"logpath"}[e]};n.getDockerfileContent(o)}n.handleParamsChange(e,t,a)},n.handleEnvsChange=function(e,t,a,o){n.handleParamsChange("envVars",_.cloneDeep(e));var s="minus"!==t?e[a]:o;s.name.trim()&&s.value.trim()&&"add"!==t&&(s.key=s.name?s.name:"",s.type="env",n.getDockerfileContent(s,a,t,e))},n.getDockerfileContent=function(e,t,a,o,s){n.setState({dockerFilesLoading:!0});var r=void 0;(0,j.getDockerfileContent)({paramjson:e}).then((function(i){if("00000"===i.code){var l=s?n.state.dockerFile:i.data;if(l)if(l=l?l.replace(/\\n/g,"\n"):"",r=(0,C.editDockerFileByAuto)(n.dockerFileSort,l,t,a,o,e.type),n.dockerFileSort=r.dockerFileSort,s)n.setState({dockerFilesLoading:!1});else{var u=(0,C.transitionDockerFileSort)(n.dockerFileSort);n.handleParamsChange("dockerFile",u),n.setState({dockerFile:u,dockerFilesLoading:!1})}else n.setState({dockerFilesLoading:!1})}else(i.code="99999")&&(d.default.error(i.message),n.setState({dockerFilesLoading:!1}))})).catch((function(){n.setState({dockerFilesLoading:!1})}))},n.setDockerFile=function(e){n.dockerFileSort=(0,C.editDockerFileByHand)(n.dockerFileSort,e);var t=(0,C.transitionDockerFileSort)(n.dockerFileSort);n.setState({dockerFile:t}),n.handleParamsChange("dockerFile",t)},n.state={moduleData:(0,l.default)({},a.moduleData,{mirrorId:"",mirrorVersionId:"",modelId:"",modelVersionId:""}),dockerFile:a.moduleData.dockerFile?a.moduleData.dockerFile:"",dockerFilesLoading:!1},n.validateFuncs={};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("mirrorInfo",n.validateFun),n.dockerFileSort=[],n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.updateSetDockerFile(this.props.moduleData)},t.prototype.render=function(){var e=this,t=this.state,a=t.moduleData,d=t.dockerFile,l=t.dockerFilesLoading,u=this.props.disabled;return(0,i.default)(g.default.Fragment,{},void 0,(0,i.default)(y.ModelConfigPanel,{title:"\u9009\u62e9\u5185\u5bb9",style:k},void 0,(0,i.default)(r.default,{style:{marginBottom:6}},void 0,(0,i.default)(D,{disabled:u,onChange:function(t){return e.handleSourceTypeChange(t.target.value)},value:a.sourceType},void 0,L.map((function(e){return(0,i.default)(f.default,{value:e.code,style:{marginRight:180}},e.code,e.desc)})))),(0,i.default)("div",{style:{display:"MODEL"===a.sourceType?"block":"none"}},void 0,(0,i.default)(b.default,{isShow:"MODEL"===a.sourceType,formRef:this.props.formRef,modelId:a.modelId,packageId:a.packageId,applicationId:this.props.applicationId,setValidateFunc:this.setValidateFunc,setModelVersionDockerfile:this.setModelVersionDockerfile,reasonType:"ONLINE",disabled:u})),(0,i.default)("div",{style:{display:"MIRRORVERSION"===a.sourceType?"block":"none"}},void 0,(0,i.default)(x.default,{isShow:"MIRRORVERSION"===a.sourceType,formRef:this.props.formRef,mirrorId:a.mirrorId,mirrorVersionId:a.mirrorVersionId,applicationId:this.props.applicationId,setValidateFunc:this.setValidateFunc,onMirrorInfoChangeInfo:this.handleMirrorInfoChange,mirrorType:"ONLINE",disabled:u}))),(0,i.default)(y.ModelConfigPanel,{title:"\u914d\u7f6e\u542f\u52a8\u53c2\u6570",style:k},void 0,(0,i.default)(r.default,{style:M},void 0,(0,i.default)(w,{label:"\u542f\u52a8\u547d\u4ee4",className:"sm-label",name:"startCommand",initialValue:a.startCommand},void 0,(0,i.default)(E,{disabled:u,autoSize:{minRows:3,maxRows:5},style:P,placeholder:"\u8bf7\u8f93\u5165\u542f\u52a8\u547d\u4ee4",onBlur:function(t){return e.setStartParams("startCommand",t.target.value)}})),(0,i.default)(w,{help:""},void 0,(0,i.default)(s.default,{title:"\u591a\u547d\u4ee4\u8bf7\u7528\u201c;\u201d\u9694\u79bb"},void 0,(0,i.default)(v.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),(0,i.default)(r.default,{style:M},void 0,(0,i.default)(w,{label:"\u670d\u52a1\u7aef\u53e3",name:"mirrorPort",className:"sm-label",initialValue:a.mirrorPort,rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u7aef\u53e3"},{validator:this.validateMirrorPort}]},void 0,(0,i.default)(o.default,{disabled:u,placeholder:"\u670d\u52a1\u7aef\u53e3",onBlur:function(t){return e.setStartParams("mirrorPort",t.target.value)}}))),"MODEL"===a.sourceType&&(0,i.default)(r.default,{style:M},void 0,(0,i.default)(w,{label:"\u5de5\u4f5c\u76ee\u5f55",name:"workDir",initialValue:a.workDir,className:"sm-label"},void 0,(0,i.default)(m.default,{disabled:u,style:{width:200},placeholder:"\u8bf7\u8f93\u5165\u5de5\u4f5c\u76ee\u5f55",onBlur:function(t){return e.setStartParams("workDir",t.target.value)}}))),(0,i.default)(r.default,{style:M},void 0,(0,i.default)(w,{label:"\u65e5\u5fd7\u8def\u5f84",name:"logInnerPath",initialValue:a.logInnerPath,className:"sm-label"},void 0,(0,i.default)(m.default,{disabled:u,style:{width:200},placeholder:"\u8bf7\u8f93\u5165\u65e5\u5fd7\u8def\u5f84",onBlur:function(t){return e.setStartParams("logInnerPath",t.target.value)}}))),(0,i.default)(n.default,{spinning:l,tip:"\u547d\u4ee4\u751f\u6210\u4e2d\u8bf7\u7a0d\u540e...."},void 0,(0,i.default)(S.default,{disabled:u,formRef:this.props.formRef,wrapStyle:M,labelText:"\u73af\u5883\u53d8\u91cf",envVariables:a.envVars,onMirrorChange:this.handleEnvsChange}),"MODEL"===a.sourceType&&(0,i.default)(y.DockerfileContainer,{disabled:u,style:{paddingLeft:10},dockerFiles:d,setDockerFile:function(t){e.setDockerFile(t)}}))))},t}(g.default.Component);N.defaultProps={moduleData:{}},t.default=N},"./src/module/grayTask/createPage/deploy/MirrorVersionSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/divider/index.js")),o=_(a("./node_modules/antd/es/row/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/extends.js")),i=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=_(a("./node_modules/babel-runtime/helpers/inherits.js")),u=_(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=_(a("./node_modules/react/index.js")),p=_(a("./node_modules/lodash/lodash.js")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");_(a("./node_modules/prop-types/index.js"));var h=a("./node_modules/react-router-dom/esm/react-router-dom.js"),g=a("./src/redux/services/modelMirror.js"),v=a("./src/routes/routeHelper.jsx");function _(e){return e&&e.__esModule?e:{default:e}}var y=m.Form.Item,b=u.default.Option,x=(0,s.default)(f.PlusOutlined,{}),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.validateFun=function(){return{validate:!0,moduleData:n.state.moduleData}},n.updateFormData=function(e,t){n.setState((function(a){var n=a.moduleData;return n[e]=t,{moduleData:n}}))},n.fetchData=function(){n.fetchMirrorList(),n.props.mirrorId&&(n.updateFormData("mirrorId",n.props.mirrorId),n.fetchVersionsByMirrorId())},n.fetchMirrorList=function(e){var t={isPage:"N",baseType:"REASONING",state:"SUCCESS",businessType:e||n.props.applicationId||"",mirrorType:n.props.mirrorType};n.setState({mirrorListLoading:!0}),(0,g.getModelMirrorList)({paramjson:t}).then((function(e){n.setState({mirrorList:e.data,mirrorListLoading:!1})})).catch((function(){return n.setState({mirrorListLoading:!1})}))},n.fetchVersionsByMirrorId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.mirrorId;e?(n.setState({versionLoading:!0}),(0,g.getMirrorVersionList)({paramsJson:{mirrorId:e,versionState:"SUCCESS"}}).then((function(t){var a=t.data;n.setState({mirrorVersions:a,versionLoading:!1});var o=e===n.props.mirrorId?n.props.mirrorVersionId:"",s=["create","publish","import","build"].includes(n.props.actionType);o?n.handleParamsChange("mirrorVersionId",o,"type",s):(o=p.default.get(a,"[0].versionId"),n.handleParamsChange("mirrorVersionId",o,"type",!0))})).catch((function(){return n.setState({versionLoading:!1})}))):n.setState({mirrorVersions:[]})},n.fetchMirrorVersionInfo=function(e,t){e&&(0,g.getMirrorVersionInfo)(e).then((function(e){var a=p.default.get(e.data,"envVars",[])||[],o=p.default.get(e.data,"startCommand",""),s=p.default.get(e.data,"workDir",""),r=p.default.get(e.data,"logInnerPath",""),i=p.default.get(e.data,"port",""),d=p.default.get(e.data,"apiSchema","");0===(a=a.map((function(e){return{name:e.envKey,value:e.envValue,index:p.default.uniqueId()}}))).length&&(a=[{name:"",value:"",index:p.default.uniqueId()}]),n.props.formRef.current.setFieldsValue({startCommand:o}),t&&(n.props.onMirrorInfoChangeInfo&&n.props.onMirrorInfoChangeInfo({startCommand:o,envVars:a,logInnerPath:r,workDir:s,mirrorPort:i}),n.props.onApiSchemaChange&&n.props.onApiSchemaChange(d))}))},n.handleParamsChange=function(e,t,a,o){"mirrorId"===e&&n.fetchVersionsByMirrorId(t),"mirrorVersionId"===e&&(n.fetchMirrorVersionInfo(t,o),a||n.props.onChangeMirrorVersionId&&n.props.onChangeMirrorVersionId(t)),n.setState((function(a){var n=(0,r.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},n.state={mirrorList:[],mirrorVersions:[],moduleData:{},versionLoading:!1,mirrorListLoading:!0},n.fileFuncs={};var o=n.props.setValidateFunc;return p.default.isFunction(o)&&o("MirrorVersionSelect",n.validateFun),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){e.mirrorId!==this.props.mirrorId&&(this.updateFormData("mirrorId",this.props.mirrorId),this.fetchVersionsByMirrorId()),e.mirrorVersionId!==this.props.mirrorVersionId&&this.updateFormData("mirrorVersionId",this.props.mirrorVersionId),e.applicationId!==this.props.applicationId&&this.fetchMirrorList()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.moduleData,r=t.mirrorList,i=t.mirrorVersions,d=t.mirrorListLoading,l=t.versionLoading,c={padding:"4px 8px 8px",cursor:"pointer"};return(0,s.default)(o.default,{style:{marginTop:6}},void 0,(0,s.default)(y,{label:"\u63a8\u7406\u955c\u50cf",name:"mirrorId",initialValue:a.mirrorId,rules:[{required:this.props.isShow,message:"\u8bf7\u9009\u62e9\u63a8\u7406\u955c\u50cf"}],required:!0},void 0,(0,s.default)(u.default,{disabled:this.props.disabled,showSearch:!0,placeholder:"\u8bf7\u9009\u62e9\u63a8\u7406\u955c\u50cf",onChange:function(t){return e.handleParamsChange("mirrorId",t)},style:{width:"200px"},loading:d,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},dropdownRender:function(t){return(0,s.default)("div",{},void 0,t,(0,s.default)(n.default,{style:{margin:"4px 0"}}),(0,s.default)("div",{style:c,onMouseDown:function(e){return e.preventDefault()}},void 0,(0,s.default)(h.Link,{to:{pathname:v.modelMirrorUrl.create("import"),state:{applicationId:e.props.applicationId}},target:"_blank"},void 0,x," \u65b0\u589e\u63a8\u7406\u955c\u50cf")))}},void 0,Array.isArray(r)&&r.map((function(e){return(0,s.default)(b,{value:e.mirrorId},e.mirrorId,e.mirrorShowName)})))),(0,s.default)(y,{label:"\u7248\u672c",className:"sm-label",name:"mirrorVersionId",initialValue:a.mirrorVersionId,rules:[{required:this.props.isShow,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],required:!0},void 0,(0,s.default)(u.default,{placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:l,disabled:this.props.disabled,onChange:function(t){return e.handleParamsChange("mirrorVersionId",t,null,!0)},style:{width:"200px"}},void 0,Array.isArray(i)&&i.map((function(e){return(0,s.default)(b,{value:e.versionId},e.versionId,e.versionName)})))))},t}(c.default.PureComponent);C.defaultProps={},t.default=C},"./src/module/grayTask/createPage/deploy/ModeVersionSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/divider/index.js")),o=x(a("./node_modules/antd/es/row/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/babel-runtime/helpers/extends.js")),i=x(a("./node_modules/babel-runtime/regenerator/index.js")),d=x(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),l=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=x(a("./node_modules/babel-runtime/helpers/inherits.js")),p=x(a("./node_modules/antd/es/select/index.js")),f=x(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var m=x(a("./node_modules/react/index.js")),h=x(a("./node_modules/lodash/lodash.js")),g=a("./node_modules/@ant-design/icons/es/index.js"),v=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-router-dom/esm/react-router-dom.js")),_=x(a("./src/redux/services/modelBase.js")),y=a("./src/routes/routeHelper.jsx"),b=a("./src/module/modelBase/modelEnums.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=f.default.Item,j=p.default.Option,S=(0,s.default)(g.PlusOutlined,{}),I=function(e){function t(a){var n=this;(0,l.default)(this,t);var o=(0,u.default)(this,e.call(this,a));o.validateFun=function(){var e=o.state.moduleData,t=h.default.find(o.state.codePackages,{packageId:e.packageId});return e.modelVersionId=h.default.get(t,"modelVid"),e.mirrorVersionId=h.default.get(t,"mirrorId"),e.baseId=h.default.get(t,"mirrorId"),{validate:!0,moduleData:e}},o.updateFormData=function(e,t){o.setState((function(a){var n=a.moduleData;return n[e]=t,{moduleData:n}}),(function(){o.props.formRef.current.setFieldsValue(o.state.moduleData)}))},o.fetchData=function(){if(o.fetchModelBases(),o.props.modelId){"up"!==o.props.actionType&&o.handleModelIdChange(o.props.modelId,"fetchData"),o.props.formRef.current.setFieldsValue({modelId:o.props.modelId,packageId:o.props.packageId});var e=["create","publish","import","build"].includes(o.props.actionType);o.handleParamsChange("packageId",o.props.packageId,e)}},o.fetchModelBases=function(){o.setState({modelLoading:!0}),_.default.getModelBaseList({repoId:"default",sortType:"CREATE_AT.DESC",busiType:o.props.applicationId||""}).then((function(e){o.setState({modelBases:e.data,modelLoading:!1}),o.props.modelId&&o.changeModelUpdateApplication(o.props.modelId,e.data,!0)})).catch((function(e){console.error(e),o.setState({modelLoading:!1})}))},o.fetchVersionsByModelId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props.modelId;if(e){o.setState({versionLoading:!0});var t=o.props.reasonType+"_REASONING";_.default.getModelPackages(e,{predictType:t,status:b.PACKAGES_STATUS.CREATED}).then((function(e){var t=e.data,a=h.default.get(t,"[0].packageId");o.updateFormData("packageId",a),o.handleModelVersionChange(a,t),o.setState({codePackages:t,versionLoading:!1})})).catch((function(e){console.error(e),o.setState({codePackages:[],versionLoading:!1})}))}else o.setState({codePackages:[]})},o.handleModelVersionChange=function(){var e=(0,d.default)(i.default.mark((function e(t){var a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.state.codePackages;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a=0;a<s.length;a++)t===s[a].packageId&&o.props.setModelVersionDockerfile&&o.props.setModelVersionDockerfile({mirrorId:s[a].mirrorId,modelVersionId:s[a].modelVid,packageId:t,modelId:o.props.modelId,baseMirrorVersionId:s[a].mirrorId});case 1:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),o.handleModelIdChange=function(e,t){["upgrade"].includes(o.props.actionType)&&!t&&o.props.setParams(e),o.handleParamsChange("modelId",e),o.fetchVersionsByModelId(e)},o.handleParamsChange=function(e,t,a){"packageId"==e&&a&&o.handleModelVersionChange(t),o.setState((function(a){var n=(0,r.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},o.state={modelBases:[],codePackages:[],moduleData:{},versionLoading:!1,modelLoading:!1},o.fileFuncs={};var s=o.props.setValidateFunc;return h.default.isFunction(s)&&s("ModeVersionSelect",o.validateFun),o}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){e.applicationId!==this.props.applicationId&&this.fetchModelBases()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.moduleData,r=t.codePackages,i=t.modelBases,d=t.modelLoading,l=t.versionLoading,u={width:150},c={padding:"4px 8px 8px",cursor:"pointer"};return(0,s.default)(o.default,{style:{marginTop:6}},void 0,(0,s.default)(C,{label:"\u6a21\u578b\u540d\u79f0",name:"modelId",initialValue:a.modelId,rules:[{required:this.props.isShow,message:"\u8bf7\u9009\u62e9\u6a21\u578b"}],className:"sm-label",required:!0},void 0,(0,s.default)(p.default,{showSearch:!0,disabled:this.props.disabled,placeholder:"\u8bf7\u9009\u62e9\u6a21\u578b",onChange:function(t){return e.handleModelIdChange(t)},style:u,loading:d,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},dropdownRender:function(t){return(0,s.default)("div",{},void 0,t,(0,s.default)(n.default,{style:{margin:"4px 0"}}),(0,s.default)("div",{style:c,onMouseDown:function(e){return e.preventDefault()}},void 0,(0,s.default)(v.Link,{to:{pathname:y.modelBaseUrl.createModelBaseModel("default"),state:{applicationId:e.props.applicationId}},target:"_blank"},void 0,S," \u65b0\u589e\u6a21\u578b")))}},void 0,Array.isArray(i)&&i.map((function(e){return(0,s.default)(j,{value:e.modelId},e.modelId,e.modelName)})))),(0,s.default)(C,{label:"\u7248\u672c",className:"sm-label",name:"packageId",initialValue:a.packageId,rules:[{required:this.props.isShow,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],style:{marginLeft:40},required:!0},void 0,(0,s.default)(p.default,{showSearch:!0,optionFilterProp:"children",filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:l,disabled:this.props.disabled,onChange:function(t){return e.handleParamsChange("packageId",t,!0)},style:u},void 0,Array.isArray(r)&&r.map((function(e){return(0,s.default)(j,{value:e.packageId},e.packageId,e.packageName)})))))},t}(m.default.PureComponent);I.defaultProps={},t.default=I},"./src/module/grayTask/createPage/deploy/SelectGrayVersion.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/antd/es/table/index.js")),s=I(a("./node_modules/babel-runtime/helpers/extends.js")),r=I(a("./node_modules/antd/es/tooltip/index.js")),i=I(a("./node_modules/babel-runtime/helpers/jsx.js")),d=I(a("./node_modules/antd/es/message/index.js")),l=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=I(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=I(a("./node_modules/react/index.js")),f=(I(a("./node_modules/prop-types/index.js")),I(a("./node_modules/dayjs/dayjs.min.js"))),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./src/routes/routeHelper.jsx"),g=a("./src/components/index.js"),v=a("./src/redux/services/grayTaskService.js"),y=a("./src/redux/services/modelService.js"),b=a("./src/module/modelService/utils.js"),x=a("./src/utils/commonUtil.js"),C=a("./src/module/modelService/modelEnums.js"),j=a("./src/module/grayTask/modelEnums.js"),S=a("./src/module/grayTask/styled.jsx");function I(e){return e&&e.__esModule?e:{default:e}}var T=(0,i.default)(m.LoadingOutlined,{className:"refresh-icon"}),w=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.fetchData=function(e){var t;n.setState(((t={})[e]=!0,t)),(0,y.getServiceVersionList)(n.props.businessId).then((function(t){var a,o=t.data,s=_.get(o,"[0].version","v1");n.props.onLastVersion&&n.props.onLastVersion(s),o=o.filter((function(e){return e.deploymentLinkType===C.SERVICE_ADDRESS_TYPE.ai&&e.serviceId!==n.props.serviceId})),n.setState(((a={versionList:o})[e]=!1,a))})).catch((function(t){var a;throw n.setState(((a={})[e]=!1,a)),t}))},n.handleRefresh=function(){n.fetchData("refreshing")},n.confirm=function(){n.setState({saveLoading:!0}),(0,v.selectGrayVersion)(n.props.taskId,{serviceId:n.props.serviceId,targetId:n.state.selectedRowKeys[0]}).then((function(){d.default.success("\u4fdd\u5b58\u6210\u529f"),n.setState({saveLoading:!1}),n.props.onSave&&n.props.onSave(j.TASK_STEP_STATUS.FINISH)})).catch((function(e){throw n.setState({saveLoading:!1}),e}))},n.cancel=function(){n.props.onCancel&&n.props.onCancel()},n.state={listLoading:!1,saveLoading:!1,refreshing:!1,versionList:[],selectedRowKeys:[a.targetId]},n.runVersionServiceId="",n.columns=[{title:"\u7248\u672c\u53f7",dataIndex:"version",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u63cf\u8ff0",dataIndex:"serviceDesc",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8ba1\u7b97\u8d44\u6e90",dataIndex:"quota",ellipsis:!0,render:function(e,t){var a="--";if([C.REASONING_PROCESS.READY,C.REASONING_PROCESS.MIRROR].includes(t.stage)||!e){var n=_.get(t,"webQuota"),o=(0,x.isJsonString)(n)?JSON.parse(n):{};a=(0,b.serviceQuotaFormat)(o)}else{var d=(0,x.isJsonString)(e)?JSON.parse(e):[],l=_.get(d,"[0]");l=(0,x.isJsonString)(l)?JSON.parse(l):_.isObject(l)?l:{};var u=_.get(t,"deploymentReplicas",1),c=(0,s.default)({},l,{instances_min:u});a=(0,b.serviceQuotaFormat)(c)}return(0,i.default)(r.default,{placement:"topLeft",title:a},void 0,a)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateAt",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u8fd0\u884c\u65f6\u957f",dataIndex:"runTime",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e||"-")}},{title:"\u72b6\u6001",dataIndex:"status",ellipsis:!0,width:130,render:function(e,t){return t.stage===C.REASONING_PROCESS.MIRROR&&e===C.REASONING_PROCESS_STATUS.PROCESSING&&(e="BUILD"),[C.REASONING_PROCESS_STATUS.ERROR,C.REASONING_PROCESS_STATUS.PROCESSING].includes(e)&&t.message?(0,i.default)(r.default,{placement:"topLeft",title:t.message},void 0,(0,i.default)("div",{},void 0,(0,i.default)(g.StateLabel,{source:"newModelService",code:e}))):(0,i.default)(g.StateLabel,{source:"newModelService",code:e})}},{title:"\u64cd\u4f5c",width:80,render:function(e){var t=[];return t.push({handleName:"\u67e5\u770b",style:{display:"inline-block"},handleType:"link",isTargetBlank:!0,handleAction:_.get(e,"deploymentId")?h.modelServiceUrl.detail(_.get(e,"deploymentId"),"monitoring",_.get(e,"businessId")):h.modelServiceUrl.serviceDetail(_.get(e,"serviceId"),"monitoring",_.get(e,"businessId"))}),(0,i.default)(g.ListButtons,{buttons:t,maxShowNum:2})}}],n.rowSelection={defaultSelectedRowKeys:n.state.selectedRowKeys,onChange:function(e){n.setState({selectedRowKeys:e})},getCheckboxProps:function(){return{disabled:n.props.disabled}}},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData("listLoading")},t.prototype.render=function(){var e=this.state.selectedRowKeys.length>0,t=this.state,a=t.saveLoading,d=t.versionList,l=t.listLoading,u=t.refreshing,c=this.props,p=c.disabled,f=c.action;return(0,i.default)(S.PageWrapper,{},void 0,(0,i.default)(g.ModelConfigPanel,{title:"\u5386\u53f2\u7248\u672c"},void 0,(0,i.default)("div",{style:{height:25}},void 0,u?T:(0,i.default)(r.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,i.default)(m.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh}))),(0,i.default)(o.default,{rowSelection:(0,s.default)({type:"radio"},this.rowSelection),rowKey:"serviceId",loading:l,columns:this.columns,dataSource:d})),"view"!==f&&(0,i.default)(S.ButtonDom,{},void 0,(0,i.default)(n.default,{onClick:this.cancel,disabled:a||!e||p},void 0,"\u53d6\u6d88\u53d1\u5e03"),(0,i.default)(n.default,{onClick:this.confirm,style:{marginLeft:"10px"},type:"primary",loading:a,disabled:!e||p},void 0,"\u4fdd\u5b58")))},t}(p.default.PureComponent);t.default=w},"./src/module/grayTask/createPage/grayMonitor/GrayMonitor.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/extends.js")),o=m(a("./node_modules/babel-runtime/helpers/jsx.js")),s=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=m(a("./node_modules/babel-runtime/helpers/inherits.js")),d="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\grayTask\\createPage\\grayMonitor\\GrayMonitor.jsx",l=m(a("./node_modules/react/index.js")),u=(m(a("./node_modules/prop-types/index.js")),a("./src/module/grayTask/styled.jsx")),c=m(a("./src/module/grayTask/createPage/grayMonitor/ServiceVersion.jsx")),p=m(a("./src/module/grayTask/createPage/grayMonitor/RunMonitor.jsx")),f=m(a("./src/module/grayTask/createPage/grayMonitor/GrayPolicy.jsx"));function m(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(){return(0,s.default)(this,t),(0,r.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){return(0,o.default)(u.PageWrapper,{},void 0,l.default.createElement(c.default,(0,n.default)({},this.props,{__source:{fileName:d,lineNumber:12}})),l.default.createElement(p.default,(0,n.default)({},this.props,{__source:{fileName:d,lineNumber:13}})),l.default.createElement(f.default,(0,n.default)({},this.props,{__source:{fileName:d,lineNumber:14}})))},t}(l.default.PureComponent);h.defaultProps={},t.default=h},"./src/module/grayTask/createPage/grayMonitor/GrayPolicy.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/babel-runtime/helpers/extends.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/antd/es/message/index.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js")),u="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\grayTask\\createPage\\grayMonitor\\GrayPolicy.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=b(a("./node_modules/react/index.js")),p=(b(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),f=b(a("./src/module/grayTask/createPage/configPolicy/FlowConfig.jsx")),m=b(a("./src/module/grayTask/createPage/configPolicy/TargetConfig.jsx")),h=b(a("./src/module/grayTask/createPage/configPolicy/ReqBodyConfig.jsx")),g=a("./src/module/grayTask/styled.jsx"),v=a("./src/redux/services/grayTaskService.js"),y=a("./src/module/grayTask/modelEnums.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=y.DIVERSION_STRATEGY.getValueAndDescList(),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.confirm=function(){n.setState({saveLoading:!0});var e=n.validateFuncs[n.state.curPolicy].call();(0,v.configGrayPolicy)(n.props.taskId,e).then((function(){n.props.setStrategy&&n.props.setStrategy(e),n.setState({saveLoading:!1})})).catch((function(e){throw n.setState({saveLoading:!1}),e}))},n.publish=function(){n.setState({publishLoading:!0}),(0,v.publishGrayTask)(n.props.taskId).then((function(){r.default.success("\u53d1\u5e03\u64cd\u4f5c\u6210\u529f"),n.setState({publishLoading:!1}),n.props.onSave&&n.props.onSave(y.TASK_STEP_STATUS.FINISH)})).catch((function(e){throw n.setState({publishLoading:!1}),e}))},n.cancel=function(){n.props.onCancel&&n.props.onCancel()},n.state={curPolicy:_.get(a.strategy,"strategyType",x[0].code)||x[0].code,saveLoading:!1,publishLoading:!1},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.curPolicy,r=t.saveLoading,i=t.publishLoading,d=this.props,l=d.status,v=d.action,_=d.strategy,b=y.TASK_STEP_STATUS.FINISH===l||"view"===v;return(0,s.default)(g.PageWrapper,{},void 0,(0,s.default)(p.ModelConfigPanel,{title:"\u7070\u5ea6\u7b56\u7565"},void 0,function(t){switch(t){case y.DIVERSION_STRATEGY.RATIO:return c.default.createElement(f.default,(0,o.default)({},e.props,{curPercent:_.grayRatio,disabled:b,setValidateFunc:e.setValidateFunc,__source:{fileName:u,lineNumber:74}}));case y.DIVERSION_STRATEGY.USER:return c.default.createElement(m.default,(0,o.default)({},e.props,{serviceApis:_.serviceApis,grayApis:_.grayApis,disabled:b,setValidateFunc:e.setValidateFunc,__source:{fileName:u,lineNumber:83}}));case y.DIVERSION_STRATEGY.CONTENT:return c.default.createElement(h.default,(0,o.default)({},e.props,{headKey:_.headKey,headValue:_.headValue,disabled:b,setValidateFunc:e.setValidateFunc,__source:{fileName:u,lineNumber:93}}))}}(a),"view"!==v&&(0,s.default)(g.ButtonDom,{},void 0,(0,s.default)(n.default,{onClick:this.cancel,disabled:r||i||b},void 0,"\u53d6\u6d88\u53d1\u5e03"),(0,s.default)(n.default,{onClick:this.confirm,style:{marginLeft:"10px"},type:"primary",disabled:i||b,loading:r},void 0,"\u66f4\u65b0\u7070\u5ea6\u7b56\u7565"),(0,s.default)(n.default,{onClick:this.publish,disabled:r||b,style:{marginLeft:"10px"},type:"primary",loading:i},void 0,"\u786e\u8ba4\u53d1\u5e03"))))},t}(c.default.PureComponent);C.defaultProps={},t.default=C},"./src/module/grayTask/createPage/grayMonitor/RunMonitor.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/extends.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js")),d=g(a("./node_modules/react/index.js")),l=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=g(a("./node_modules/moment/moment.js")),c=a("./node_modules/recharts/es6/index.js"),p=(g(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),f=a("./src/module/grayTask/styled.jsx"),m=a("./src/redux/services/grayTaskService.js"),h=g(a("./src/module/grayTask/createPage/grayMonitor/SelectDate.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=l.default.div.withConfig({displayName:"RunMonitor__MonitoringChartsWrapper",componentId:"zwdux6-0"})(["display:flex;flex-direction:column;width:50%;margin:10px 20px 20px 0;.monitor__title{font-weight:600;color:#1f2d3d;}"]),y="YYYY-MM-DD HH:mm",b=(0,o.default)(c.CartesianGrid,{strokeDasharray:"3 3"}),x=(0,o.default)(c.XAxis,{dataKey:"periodDate"}),C=(0,o.default)(c.YAxis,{unit:"\u6b21"}),j=(0,o.default)(c.Tooltip,{}),S=(0,o.default)(c.Legend,{}),I=(0,o.default)(c.Line,{type:"monotone",dataKey:"graying_count",label:"\u7070\u5ea6\u7248\u672c",name:"\u7070\u5ea6\u7248\u672c",stroke:"#82ca9d"}),T=(0,o.default)(c.CartesianGrid,{strokeDasharray:"3 3"}),w=(0,o.default)(c.XAxis,{dataKey:"periodDate"}),E=(0,o.default)(c.Tooltip,{}),D=(0,o.default)(c.Legend,{}),M=(0,o.default)(c.Line,{type:"monotone",dataKey:"graying_successRate",label:"\u7070\u5ea6\u7248\u672c",name:"\u7070\u5ea6\u7248\u672c",stroke:"#82ca9d"}),k=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.fetchData=function(){if(n.props.taskId){var e=n.state,t=e.dateType,a=e.curDate,o={hour:12,day:24,month:(0,u.default)(a).daysInMonth()}[t];(0,m.getTaskServiceMonitor)(n.props.taskId,{statType:t,limit:o,date:a,env:n.props.env}).then((function(e){var a=e.data||[];a=a.map((function(e){return{periodDate:e.periodDate?(0,u.default)(e.periodDate).format("month"===t?"YYYY-MM-DD":y):"",running_count:_.get(e,"running.count",0),running_successRate:_.get(e,"running.successRate",0),graying_count:_.get(e,"graying.count",0),graying_successRate:_.get(e,"graying.successRate",0)}})),n.setState({chartData:a})}))}},n.handleDateTypeChange=function(e){n.setState({dateType:e.target.value,curDate:(0,u.default)(new Date).format(y)},n.fetchData)},n.handleDateChange=function(e){"pre"===e?n.setState((function(e){return{curDate:(0,u.default)(e.curDate).subtract(1,e.dateType+"s").format(y)}}),n.fetchData):n.setState((function(e){return{curDate:(0,u.default)(e.curDate).add(1,e.dateType+"s").format(y)}}),n.fetchData)},n.state={chartData:[],dateType:"hour",curDate:(0,u.default)(new Date).format(y)},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.chartData,a=e.dateType,s=e.curDate;return(0,o.default)(f.PageWrapper,{},void 0,(0,o.default)(p.ModelConfigPanel,{title:"\u670d\u52a1\u8fd0\u884c"},void 0,d.default.createElement(h.default,(0,n.default)({value:a,curDate:s,onDateTypeChange:this.handleDateTypeChange,onDateChange:this.handleDateChange},this.props,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\grayTask\\createPage\\grayMonitor\\RunMonitor.jsx",lineNumber:97}})),(0,o.default)("div",{style:{display:"flex",minHeight:400}},void 0,(0,o.default)(v,{},void 0,(0,o.default)("div",{className:"monitor__title",style:{marginBottom:24}},void 0,"\u8c03\u7528\u6b21\u6570"),(0,o.default)(c.ResponsiveContainer,{width:"100%",height:"100%"},void 0,(0,o.default)(c.LineChart,{width:500,height:300,data:t,margin:{top:5,right:30,left:20,bottom:5}},void 0,b,x,C,j,S,(0,o.default)(c.Line,{type:"monotone",dataKey:"running_count",label:"\u8fd0\u884c\u7248\u672c",name:"\u8fd0\u884c\u7248\u672c",stroke:"#8884d8",activeDot:{r:8}}),I))),(0,o.default)(v,{},void 0,(0,o.default)("div",{className:"monitor__title",style:{marginBottom:24}},void 0,"\u8c03\u7528\u6210\u529f\u7387"),(0,o.default)(c.ResponsiveContainer,{width:"100%",height:"100%"},void 0,(0,o.default)(c.LineChart,{width:500,height:300,data:t,margin:{top:5,right:30,left:20,bottom:5}},void 0,T,w,(0,o.default)(c.YAxis,{domain:[0,100],unit:"%"}),E,D,(0,o.default)(c.Line,{type:"monotone",dataKey:"running_successRate",label:"\u8fd0\u884c\u7248\u672c",name:"\u8fd0\u884c\u7248\u672c",stroke:"#8884d8",activeDot:{r:8}}),M))))))},t}(d.default.PureComponent);k.defaultProps={},t.default=k},"./src/module/grayTask/createPage/grayMonitor/SelectDate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/antd/es/button/index.js")),o=i(a("./node_modules/babel-runtime/helpers/jsx.js")),s=i(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");i(a("./node_modules/react/index.js")),i(a("./node_modules/prop-types/index.js"));var r=i(a("./node_modules/moment/moment.js"));function i(e){return e&&e.__esModule?e:{default:e}}var d=s.default.Group;t.default=function(e){var t=e.value,a=e.curDate,s=e.onDateTypeChange,i=e.onDateChange,l=e.startAt,u=e.endAt,c=void 0===u?new Date:u,p={hour:"\u5c0f\u65f6",day:"\u5929",month:"\u6708"};return(0,o.default)("div",{style:{position:"absolute",top:"-20px",left:90}},void 0,(0,o.default)("div",{style:{display:"flex"}},void 0,(0,o.default)(d,{options:[{label:"\u5f53\u524d\u5c0f\u65f6",value:"hour"},{label:"\u5f53\u524d\u5929",value:"day"},{label:"\u5f53\u524d\u6708",value:"month"}],onChange:s,value:t,optionType:"button",size:"small"}),(0,o.default)("div",{style:{marginTop:-5}},void 0,(0,o.default)(n.default,{type:"link",onClick:function(){return i("pre")},disabled:(0,r.default)(l).isSame(a,t)},void 0,"\u4e0a\u4e00",p[t]),(0,o.default)(n.default,{type:"link",onClick:function(){return i("next")},disabled:(0,r.default)(c).isSame(a,t)||(0,r.default)(c).isBefore(a,t)},void 0,"\u4e0b\u4e00",p[t]))))}},"./src/module/grayTask/createPage/grayMonitor/ServiceVersion.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/table/index.js")),o=b(a("./node_modules/babel-runtime/helpers/extends.js")),s=b(a("./node_modules/antd/es/tooltip/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var u=b(a("./node_modules/react/index.js")),c=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/dayjs/dayjs.min.js"))),p=a("./src/components/index.js"),f=a("./src/module/grayTask/styled.jsx"),m=a("./src/redux/services/grayTaskService.js"),h=a("./src/utils/commonUtil.js"),g=a("./src/module/modelService/utils.js"),v=a("./src/routes/routeHelper.jsx"),y=a("./src/module/modelService/modelEnums.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){(0,m.getServiceVersions)(n.props.taskId).then((function(e){n.setState({serviceVersionList:e.data})}))},n.handlePolicyChange=function(e){n.setState({curPolicy:e.target.value})},n.state={serviceVersionList:[]},n.columns=[{title:"\u7248\u672c",dataIndex:"currentFlag",ellipsis:!0,render:function(e){var t=1===e?"\u8fd0\u884c\u7248\u672c":"\u7070\u5ea6\u7248\u672c";return(0,r.default)(s.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u7248\u672c\u53f7",dataIndex:"version",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8ba1\u7b97\u8d44\u6e90",dataIndex:"quota",ellipsis:!0,render:function(e,t){var a="--";if([y.REASONING_PROCESS.READY,y.REASONING_PROCESS.MIRROR].includes(t.stage)||!e){var n=_.get(t,"webQuota"),i=(0,h.isJsonString)(n)?JSON.parse(n):{};a=(0,g.serviceQuotaFormat)(i)}else{var d=(0,h.isJsonString)(e)?JSON.parse(e):[],l=_.get(d,"[0]");l=(0,h.isJsonString)(l)?JSON.parse(l):_.isObject(l)?l:{};var u=_.get(t,"deploymentReplicas",1),c=(0,o.default)({},l,{instances_min:u});a=(0,g.serviceQuotaFormat)(c)}return(0,r.default)(s.default,{placement:"topLeft",title:a},void 0,a)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,c.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,c.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,c.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,c.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u8fd0\u884c\u65f6\u957f",dataIndex:"runTime",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"-")}},{title:"\u72b6\u6001",width:130,dataIndex:"status",ellipsis:!0,render:function(e,t){return t.stage===y.REASONING_PROCESS.MIRROR&&e===y.REASONING_PROCESS_STATUS.PROCESSING&&(e="BUILD"),[y.REASONING_PROCESS_STATUS.ERROR,y.REASONING_PROCESS_STATUS.PROCESSING].includes(e)&&t.message?(0,r.default)(s.default,{placement:"topLeft",title:t.message},void 0,(0,r.default)("div",{},void 0,(0,r.default)(p.StateLabel,{source:"newModelService",code:e}))):(0,r.default)(p.StateLabel,{source:"newModelService",code:e})}},{title:"\u64cd\u4f5c",width:80,render:function(e){var t=[];return t.push({handleName:"\u67e5\u770b",style:{display:"inline-block"},handleType:"link",isTargetBlank:!0,handleAction:_.get(e,"deploymentId")?v.modelServiceUrl.detail(_.get(e,"deploymentId"),"monitoring",_.get(e,"businessId")):v.modelServiceUrl.serviceDetail(_.get(e,"serviceId"),"monitoring",_.get(e,"businessId"))}),(0,r.default)(p.ListButtons,{buttons:t,maxShowNum:2})}}],n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state.serviceVersionList;return(0,r.default)(f.PageWrapper,{},void 0,(0,r.default)(p.ModelConfigPanel,{title:"\u670d\u52a1\u7248\u672c"},void 0,(0,r.default)(n.default,{rowKey:"serviceId",columns:this.columns,dataSource:e})))},t}(u.default.PureComponent);x.defaultProps={},t.default=x},"./src/module/grayTask/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/grayTask/listPage/GrayTaskList.jsx");Object.defineProperty(t,"GrayTaskListPage",{enumerable:!0,get:function(){return s(n).default}});var o=a("./src/module/grayTask/createPage/CreateGrayTaskPage.jsx");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"CreateGrayTaskPage",{enumerable:!0,get:function(){return s(o).default}})},"./src/module/grayTask/listPage/GrayTaskList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=E(a("./node_modules/babel-runtime/helpers/extends.js")),r=E(a("./node_modules/antd/es/message/index.js")),i=E(a("./node_modules/antd/es/modal/index.js")),d=E(a("./node_modules/antd/es/table/index.js")),l=E(a("./node_modules/antd/es/button/index.js")),u=E(a("./node_modules/antd/es/tooltip/index.js")),c=E(a("./node_modules/babel-runtime/helpers/jsx.js")),p=E(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=E(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=E(a("./node_modules/babel-runtime/helpers/inherits.js")),h=E(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var g=E(a("./node_modules/react/index.js")),v=E(a("./node_modules/lodash/lodash.js")),_=E(a("./node_modules/dayjs/dayjs.min.js")),y=a("./src/components/index.js"),b=E(a("./src/module/grayTask/listPage/SearchBar.jsx")),x=a("./src/routes/routeHelper.jsx"),C=a("./src/redux/services/grayTaskService.js"),j=a("./src/styles/GlobalStyle.js"),S=a("./src/module/grayTask/modelEnums.js"),I=a("./node_modules/react-router-dom/esm/react-router-dom.js"),T=a("./src/module/grayTask/utils.js"),w=E(a("./src/components/auth/AuthWrapper.jsx"));function E(e){return e&&e.__esModule?e:{default:e}}var D=h.default.TabPane,M=S.ENVIRONMENT.getValueAndDescList(),k=(0,c.default)(y.LoadingIndicator,{position:"relative"}),P=(n=function(e){function t(a){(0,p.default)(this,t);var n=(0,f.default)(this,e.call(this,a));o.call(n);var s=v.default.get(a,"location.state.activeEnv",S.ENVIRONMENT.TEST)||S.ENVIRONMENT.TEST;return n.state={activeEnv:s,modalVisible:!1,viewType:"",grayTaskList:[],listLoading:!1,pagination:{offset:1,limit:10,total:0}},n.applicationId=v.default.get(a,"location.state.applicationId",""),n.searchCond={offset:1,limit:10},n.columns=[{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"taskName",ellipsis:!0,render:function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",dataIndex:"serviceName",ellipsis:!0,render:function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u63cf\u8ff0",dataIndex:"description",ellipsis:!0,render:function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e?(0,_.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,_.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateAt",ellipsis:!0,render:function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e?(0,_.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,_.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u7070\u5ea6\u65f6\u957f",dataIndex:"runTime",ellipsis:!0,render:function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u72b6\u6001",width:100,dataIndex:"stage",ellipsis:!0,render:function(e){return(0,c.default)(y.StateLabel,{source:"grayTask",code:e})}},{title:"\u64cd\u4f5c",width:220,render:function(e){var t=(0,T.getOptPermission)(e.stage),a=[];return a.push({handleName:"\u67e5\u770b",style:{display:"inline-block"},handleType:"link",handleAction:x.grayTaskUrl.create({action:"view",profile:v.default.lowerCase(n.state.activeEnv),step:S.TASK_STEP.CREATE,taskId:e.taskId})}),t.deploy&&a.push({handleName:"\u90e8\u7f72\u7070\u5ea6\u7248\u672c",handleType:"link",handleAction:x.grayTaskUrl.create({action:"edit",profile:v.default.lowerCase(n.state.activeEnv),step:S.TASK_STEP.DEPLOY,taskId:e.taskId})}),t.configPolicy&&a.push({handleName:"\u914d\u7f6e\u7070\u5ea6\u7b56\u7565",handleType:"link",handleAction:x.grayTaskUrl.create({action:"edit",profile:v.default.lowerCase(n.state.activeEnv),step:S.TASK_STEP.CONFIG,taskId:e.taskId})}),t.grayMonitor&&a.push({handleName:"\u7070\u5ea6\u53d1\u5e03\u76d1\u63a7",handleType:"link",handleAction:x.grayTaskUrl.create({action:"edit",profile:v.default.lowerCase(n.state.activeEnv),step:S.TASK_STEP.MONITOR,taskId:e.taskId})}),t.delete&&a.push({handleName:"\u5220\u9664",handleAction:function(){n.handleDelete(e.taskId)}}),(0,c.default)(y.ListButtons,{buttons:a,maxShowNum:2})}}],n}return(0,m.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.grayTaskList,a=e.listLoading,n=e.pagination;return(0,c.default)(j.PageWrapper,{},void 0,(0,c.default)(h.default,{defaultActiveKey:this.state.activeEnv,onChange:this.handleEnvChange},void 0,M.map((function(e){return(0,c.default)(D,{tab:e.desc},e.code)}))),(0,c.default)(j.PageHeader,{},void 0,(0,c.default)(w.default,{permissionId:"GRAY_TASK.ADD_GRAY_TASK"},void 0,(0,c.default)(l.default,{className:"import__btn",type:"primary"},void 0,(0,c.default)(I.Link,{to:x.grayTaskUrl.create({action:"create",profile:v.default.lowerCase(this.state.activeEnv),step:S.TASK_STEP.CREATE})},void 0,"\u65b0\u589e\u7070\u5ea6\u53d1\u5e03\u4efb\u52a1"))),(0,c.default)(b.default,{onChange:this.changeSearchCond})),(0,c.default)(j.PageBody,{},void 0,(0,c.default)(j.TableWrapper,{},void 0,a?k:(0,c.default)(g.default.Fragment,{},void 0,(0,c.default)(d.default,{loading:this.state.listLoading,bordered:!0,columns:this.columns,dataSource:t,rowKey:"taskId",pagination:!1}),(0,c.default)(y.TabPagination,{currentPage:n.offset,pageSize:10,total:n.total,onChange:this.handlePageChange})))))},t}(g.default.Component),o=function(){var e=this;this.handleDelete=function(t){var a;i.default.confirm(((a={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u7070\u5ea6\u4efb\u52a1?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",a.cancelText="\u53d6\u6d88",a.onOk=function(){return new Promise((function(a,n){(0,C.deleteGrayTask)(t).then((function(){a(),r.default.success("\u5220\u9664\u6210\u529f"),e.fetchData()})).catch((function(){n()}))}))},a))},this.fetchData=function(t){e.setState({listLoading:"intervalRefresh"!==t}),(0,C.getGrayTaskList)((0,s.default)({},e.searchCond,{envType:e.state.activeEnv})).then((function(t){e.setState((function(e){return{grayTaskList:v.default.get(t,"data"),listLoading:!1,pagination:(0,s.default)({},e.pagination,{offset:v.default.get(t,"pagination.offset"),total:v.default.get(t,"pagination.total")})}}))})).catch((function(){return e.setState({listLoading:!1,intervalRefreshLoading:!1})}))},this.changeSearchCond=function(t,a){"refresh"!==t?(e.searchCond[t]=v.default.trim(a),e.searchCond.offset=1,e.fetchData()):e.fetchData(a)},this.handlePageChange=function(t){e.searchCond.offset=Number(t),e.fetchData()},this.handleEnvChange=function(t){e.setState({activeEnv:t},e.fetchData)}},n);t.default=P},"./src/module/grayTask/listPage/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/input/index.js")),d=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=m(a("./node_modules/react/index.js")),u=(m(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),c=a("./src/styles/GlobalStyle.js"),p=a("./src/module/grayTask/modelEnums.js"),f=a("./src/config/ui-config.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=d.default.Option,g=i.default.Search,v={width:"130px"},y=p.TASK_STAGE.getValueAndDescList(),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("keyword",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeStatusField=n.changeSelect("status"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)(u.RefreshButton,{onRefresh:this.props.onChange}),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{allowClear:!0,onChange:this.changeStatusField,style:v,placeholder:"\u72b6\u6001",className:"search-cond"},void 0,y.map((function(e,t){return(0,n.default)(h,{value:e.code},e.code+"-"+t,(0,n.default)(c.StatusIcon,{color:f.GRAY_TASK_STATUS_COLOR_MAP[e.code]}),e.desc)}))))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(g,{allowClear:!0,placeholder:"\u4efb\u52a1\u540d\u79f0/\u670d\u52a1\u540d\u79f0",style:{width:"200px"},onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=b},"./src/module/grayTask/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.DIVERSION_STRATEGY=t.MODEL_TYPE=t.TASK_STEP_STATUS=t.ENVIRONMENT=t.TASK_STEP=t.TASK_STAGE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({WAIT_DEPLOY:["WAIT_DEPLOY","\u5f85\u90e8\u7f72"],WAIT_PUBLISH:["WAIT_PUBLISH","\u5f85\u53d1\u5e03"],PUBLISHING:["PUBLISHING","\u7070\u5ea6\u4e2d"],PUBLISHED:["PUBLISHED","\u5df2\u53d1\u5e03"],CANCELED:["CANCELED","\u5df2\u53d6\u6d88"]}),i=(0,s.default)({CREATE:["create","\u521b\u5efa\u7070\u5ea6\u53d1\u5e03"],DEPLOY:["deploy","\u90e8\u7f72\u7070\u5ea6\u53d1\u5e03"],CONFIG:["config","\u914d\u7f6e\u7070\u5ea6\u7b56\u7565"],MONITOR:["monitor","\u7070\u5ea6\u53d1\u5e03\u76d1\u63a7"],PUBLISHED:["published","\u53d1\u5e03\u6210\u529f"]}),d=(0,s.default)({WAIT:["wait","\u5f85\u5b8c\u6210"],PROCESS:["process","\u8fdb\u884c\u4e2d"],FINISH:["finish","\u5df2\u5b8c\u6210"],ERROR:["error","\u5df2\u5b8c\u6210"]}),l=(0,s.default)({TEST:["test","\u6d4b\u8bd5\u73af\u5883"],PRODUCT:["product","\u751f\u4ea7\u73af\u5883"]}),u=(0,s.default)({MODEL:["MODEL","\u6a21\u578b"],MIRRORVERSION:["MIRRORVERSION","\u63a8\u7406\u955c\u50cf"]}),c=(0,s.default)({RATIO:["RATIO","\u6309\u6d41\u91cf\u6bd4\u4f8b"],USER:["USER","\u6309\u53d1\u5e03\u5bf9\u8c61"],CONTENT:["CONTENT","\u6309\u8bf7\u6c42\u5185\u5bb9"]});t.TASK_STAGE=r,t.TASK_STEP=i,t.ENVIRONMENT=l,t.TASK_STEP_STATUS=d,t.MODEL_TYPE=u,t.DIVERSION_STRATEGY=c},"./src/module/grayTask/styled.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.PageWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.PageWrapper=s.default.div.withConfig({displayName:"styled__PageWrapper",componentId:"sc-9jog5z-0"})(["display:flex;flex-direction:column;flex:1 1 auto;background:#fff;padding:23 px 16 px;width:100%;padding:16px;.ant-input[disabled],.ant-input[disabled]:hover{z-index:10;}.ant-form-inline .ant-form-item{margin-right:0;}.ant-form-item-label{width:110px;}.ant-legacy-form-item-label{width:80px;}.mirror-build .ant-legacy-form-item-label{width:70px;}.page-step__wrapper{display:flex;min-height:160px;align-items:center;border-bottom:12px solid #eee;padding:0 24 px;}"]),t.ButtonDom=s.default.div.withConfig({displayName:"styled__ButtonDom",componentId:"sc-9jog5z-1"})(["height:42px;text-align:right;padding-top:10px;margin-top:30px;margin-left:-16px;margin-right:-16px;padding-right:16px;"])},"./src/module/grayTask/utils.js":function(e,t,a){"use strict";t.__esModule=!0,t.getStepIndexMap=t.getStepStatus=t.getOptPermission=t.DEFAULT_STEP_STATE=void 0;var n=a("./src/module/grayTask/modelEnums.js"),o=a("./src/components/auth/AuthWrapper.jsx"),s=t.DEFAULT_STEP_STATE={create:n.TASK_STEP_STATUS.PROCESS,deploy:n.TASK_STEP_STATUS.WAIT,config:n.TASK_STEP_STATUS.WAIT,monitor:n.TASK_STEP_STATUS.WAIT,published:n.TASK_STEP_STATUS.WAIT};t.getOptPermission=function(e){return{view:!0,deploy:[n.TASK_STAGE.WAIT_DEPLOY].includes(e)&&(0,o.isAuth)("GRAY_TASK.DEPLOY_GRAY_TASK"),configPolicy:[n.TASK_STAGE.WAIT_PUBLISH].includes(e)&&(0,o.isAuth)("GRAY_TASK.SET_GRAY_TASK"),grayMonitor:[n.TASK_STAGE.PUBLISHING].includes(e)&&(0,o.isAuth)("GRAY_TASK.MONITOR_GRAY_TASK"),delete:[n.TASK_STAGE.WAIT_DEPLOY,n.TASK_STAGE.WAIT_PUBLISH,n.TASK_STAGE.PUBLISHED,n.TASK_STAGE.CANCELED].includes(e)&&(0,o.isAuth)("GRAY_TASK.DELETE_GRAY_TASK")}},t.getStepStatus=function(e,t,a){switch(e){case n.TASK_STAGE.WAIT_DEPLOY:return{create:n.TASK_STEP_STATUS.FINISH,deploy:"view"==t?n.TASK_STEP_STATUS.WAIT:n.TASK_STEP_STATUS.PROCESS,config:n.TASK_STEP_STATUS.WAIT,monitor:n.TASK_STEP_STATUS.WAIT,published:n.TASK_STEP_STATUS.WAIT};case n.TASK_STAGE.WAIT_PUBLISH:return{create:n.TASK_STEP_STATUS.FINISH,deploy:n.TASK_STEP_STATUS.FINISH,config:"view"==t?n.TASK_STEP_STATUS.WAIT:n.TASK_STEP_STATUS.PROCESS,monitor:n.TASK_STEP_STATUS.WAIT,published:n.TASK_STEP_STATUS.WAIT};case n.TASK_STAGE.PUBLISHING:return{create:n.TASK_STEP_STATUS.FINISH,deploy:n.TASK_STEP_STATUS.FINISH,config:n.TASK_STEP_STATUS.FINISH,monitor:"view"==t?n.TASK_STEP_STATUS.WAIT:n.TASK_STEP_STATUS.PROCESS,published:n.TASK_STEP_STATUS.WAIT};case n.TASK_STAGE.PUBLISHED:return{create:n.TASK_STEP_STATUS.FINISH,deploy:n.TASK_STEP_STATUS.FINISH,config:n.TASK_STEP_STATUS.FINISH,monitor:n.TASK_STEP_STATUS.FINISH,published:n.TASK_STEP_STATUS.FINISH};case n.TASK_STAGE.CANCELED:return function(e){switch(e){case n.TASK_STEP.DEPLOY:return{create:n.TASK_STEP_STATUS.FINISH,deploy:n.TASK_STEP_STATUS.WAIT,config:n.TASK_STEP_STATUS.WAIT,monitor:n.TASK_STEP_STATUS.WAIT,published:n.TASK_STEP_STATUS.ERROR};case n.TASK_STEP.CONFIG:return{create:n.TASK_STEP_STATUS.FINISH,deploy:n.TASK_STEP_STATUS.FINISH,config:n.TASK_STEP_STATUS.WAIT,monitor:n.TASK_STEP_STATUS.WAIT,published:n.TASK_STEP_STATUS.ERROR};case n.TASK_STEP.MONITOR:return{create:n.TASK_STEP_STATUS.FINISH,deploy:n.TASK_STEP_STATUS.FINISH,config:n.TASK_STEP_STATUS.FINISH,monitor:n.TASK_STEP_STATUS.WAIT,published:n.TASK_STEP_STATUS.ERROR};default:return{create:n.TASK_STEP_STATUS.FINISH,deploy:n.TASK_STEP_STATUS.WAIT,config:n.TASK_STEP_STATUS.WAIT,monitor:n.TASK_STEP_STATUS.WAIT,published:n.TASK_STEP_STATUS.ERROR}}}(a);default:return s}},t.getStepIndexMap=function(){for(var e={},t=n.TASK_STEP.getValueAndDescList(),a=0;a<t.length;a++){var o=t[a];e[a]=o.code,e[o.code]=a}return e}},"./src/module/homePage/ApplicationManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/babel-runtime/helpers/jsx.js")),o=_(a("./node_modules/antd/es/modal/index.js")),s=_(a("./node_modules/antd/es/message/index.js")),r=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=_(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var l=_(a("./node_modules/react/index.js")),u=(a("./node_modules/prop-types/index.js"),_(a("./src/module/homePage/components/developmentProgress/DevelopmentProgress.jsx"))),c=_(a("./src/module/homePage/components/applicationClass/ApplicationClass.jsx")),p=_(a("./src/module/homePage/components/LogInfo.jsx")),f=a("./src/utils/authPermit.js"),m=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./src/components/index.js"),g=_(a("./src/redux/services/sysManager/projectManage.js")),v=_(a("./src/module/sysManage/projectManager/editPage/component/ApplyInfoPage.jsx"));function _(e){return e&&e.__esModule?e:{default:e}}var y=m.default.div.withConfig({displayName:"ApplicationManagePage__PageWrapper",componentId:"sc-12otd2n-0"})(["background:#f0f2f5;"]),b=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.openVisible=function(){n.setState({modalVisible:!0,viewType:"create"})},n.callVisible=function(){n.setState({modalVisible:!1})},n.callVisible2=function(){n.setState({modalVisible2:!1})},n.submitModalOk=function(e){n.setState({submitLoading:!0,refresh:!1}),g.default.editApplication(e,{projectId:n.projectId},n.state.viewType).then((function(){s.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),n.setState({submitLoading:!1,modalVisible:!1,refresh:!0})})).catch((function(e){n.setState({submitLoading:!1}),s.default.error(e.message)}))},n.handelApplicationDelete=function(e){var t=n;n.setState({refresh:!1}),o.default.confirm({title:"\u63d0\u793a\u4fe1\u606f",content:"\u786e\u5b9a\u5220\u9664\u6b64\u5e94\u7528\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",okType:"danger",onOk:function(){return new Promise((function(a,o){g.default.deleteApplication2(e,n.projectId).then((function(e){"000000"==e.code?s.default.success(e.message||"\u5220\u9664\u6210\u529f"):s.default.error(e.message||error.message),t.setState({refresh:!0}),a()})).catch((function(e){o(),s.default.error(e.message)}))}))}})},n.handleApplicationEdit=function(e){n.setState({modalVisible:!0,viewType:"edit"}),n.projectApplicationId=e},n.handleShowDeleteMsg=function(e){n.setState({itemSelected:e}),g.default.getDeleteApplicationMessage(e.projectApplicationId,n.projectId).then((function(e){console.log("getDeleteApplicationMessage",e),n.setState({logList:e.data||[],modalVisible2:!0})})).catch((function(e){s.default.error(e.message)}))},n.onClassTypeAdd=function(e){var t=e.viewType,a=e.classTypeId,o=e.parentClassTypeId;n.setState({modalVisible:!0,viewType:t}),n.classTypeId=a,n.parentClassTypeId=o},n.handleClassTypeChange=function(e){n.setState({currentClassTypeId:e})};var d=(0,f.getCurrentContext)(),l=d.role,u=d.id;return n.props.projectId?n.projectId=n.props.projectId:"PROJECT"===l&&(n.projectId=u),n.classTypeId="",n.state={currentClassTypeId:"",refresh:!1,itemSelected:{},modalVisible2:!1,logList:[]},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this,t=this.state.itemSelected;return(0,n.default)(y,{},void 0,(0,n.default)(h.ModalView,{modalTitle:"edit"===this.state.viewType?"\u5e94\u7528\u4fee\u6539":"\u5e94\u7528\u65b0\u5efa",onCancelType:!1,confirmLoading:this.state.submitLoading,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,okText:"\u4fdd \u5b58",submitModalOk:function(){e.applyInfoPage.savaOrSubmit()},comp:(0,n.default)(v.default,{viewType:this.state.viewType,onRef:function(t){e.applyInfoPage=t},classTypeId:this.classTypeId,parentClassTypeId:this.parentClassTypeId,projectInfo:{projectId:this.projectId},projectApplicationId:this.projectApplicationId,submitModalOk:this.submitModalOk})}),(0,n.default)(h.ModalView,{modalTitle:t.title,onCancelType:!1,width:1e3,callVisible:this.callVisible2,modalVisible:this.state.modalVisible2,okText:"\u786e\u5b9a",submitModalOk:this.callVisible2,comp:(0,n.default)(p.default,{logList:this.state.logList,item:this.state.itemSelected})}),(0,n.default)("section",{},void 0,(0,n.default)(c.default,{projectId:this.projectId,refresh:this.state.refresh,onClassTypeChange:this.handleClassTypeChange,onClassTypeAdd:this.onClassTypeAdd})),(0,n.default)("section",{style:{marginTop:20}},void 0,(0,n.default)(u.default,{refresh:this.state.refresh,classTypeId:this.state.currentClassTypeId,projectId:this.projectId,onApplicationEdit:this.handleApplicationEdit,onApplicationDelete:this.handelApplicationDelete,onShowDeleteMsg:this.handleShowDeleteMsg})))},t}(l.default.Component);t.default=b},"./src/module/homePage/HomeIndexRedirectPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=l(a("./node_modules/babel-runtime/helpers/inherits.js")),r=l(a("./node_modules/react/index.js")),i=a("./src/utils/history.js"),d=(l(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(a){return(0,n.default)(this,t),(0,o.default)(this,e.call(this,a))}return(0,s.default)(t,e),t.prototype.componentDidMount=function(){(0,i.navigateTo)("/")},t.prototype.render=function(){return null},t}(r.default.Component);u.defaultProps={},t.default=(0,d.connect)()(u)},"./src/module/homePage/ProjectOverviewPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/babel-runtime/helpers/jsx.js")),o=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=b(a("./node_modules/babel-runtime/helpers/inherits.js")),i=b(a("./node_modules/react/index.js")),d=a("./node_modules/immutable3/dist/immutable.js"),l=(a("./node_modules/prop-types/index.js"),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/utils/authPermit.js"),p=b(a("./src/module/homePage/components/projectSituation/ProjectSituationCards.jsx")),f=b(a("./src/module/homePage/components/resourceUsage/ResourceUsageCards.jsx")),m=b(a("./src/module/homePage/components/serviceInvocations/ServiceInvocations.jsx")),h=a("./src/redux/selectors/auth.js"),g=a("./src/redux/selectors/sysManager/userManager.js"),v=a("./src/routes/routeHelper.jsx"),y=a("./src/utils/history.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=l.default.div.withConfig({displayName:"ProjectOverviewPage__PageWrapper",componentId:"sc-10yzb7r-0"})(["display:flex;flex:1 0 auto;flex-direction:column;width:100%;background:#f0f2f5;section{background:#fff;padding:16px;margin-bottom:24px;}.section__title-wrapper{display:flex;}.section__item-env{margin-left:32px;margin-top:-4px;transform:scale(0.9);}.section__item-title{margin:0 0 16px;border-left:3px solid #147bd1;padding-left:8px;font-size:12px;line-height:12px;color:#000;}"]),C=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a)),r=(0,c.getCurrentContext)(),i=r.role,d=r.id;return n.projectId="","PROJECT"===i&&(n.projectId=d),n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this.props.userJoinedProjects;e=d.Iterable.isIterable(e)?e.toJS():e;var t=localStorage.getItem("AI.isAppliedProject"),a="/";return this.props.isAuthenticated?_.get((0,c.getUserAdditionalInfo)(),"isPlatformAdmin")?(a=v.sysManageUrl.tenants(),(0,y.navigateTo)(a),null):Array.isArray(e)&&0!==e.length?(0,n.default)(x,{},void 0,(0,n.default)(p.default,{projectId:this.projectId}),(0,n.default)(f.default,{projectId:this.projectId}),(0,n.default)(m.default,{projectId:this.projectId})):(a=v.operationUrl.joinProject(),t&&!(0,c.isUserAdmin)()&&(a=v.operationUrl.applyProjectReq()),(0,y.navigateTo)(a),null):((0,y.navigateTo)(v.introduceUrl.index()),null)},t}(i.default.Component);t.default=(0,u.connect)((function(e){return{isAuthenticated:(0,h.selectIsAuthenticated)(e),userJoinedProjects:(0,g.selectUserJoinedProjects)(e)}}))(C)},"./src/module/homePage/components/LogInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/timeline/index.js"));a("./node_modules/antd/es/timeline/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/lodash/lodash.js")),a("./node_modules/prop-types/index.js"),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/@ant-design/compatible/es/index.js");function c(e){return e&&e.__esModule?e:{default:e}}var p={padding:"20px 0 0 20px"},f=i.default.Item,m=l.default.div.withConfig({displayName:"LogInfo__LogWrapper",componentId:"sc-16c6nfd-0"})(["position:relative;width:100%;.log-title{color:#303133;font-size:16px;font-weight:600;margin-bottom:10px;}.log-title > span{margin-left:8px;font-size:14px;color:rgba(0,0,0,0.4);margin-bottom:10px;}.gray{color:rgba(0,0,0,0.4);}.list-th{background:rgb(245,246,249);display:flex;font-size:15px;padding:10px 0px 10px 46px;}.list-tr{display:flex;font-size:15px;padding-bottom:5px;}.list-tr2{display:flex;font-size:13px;padding-bottom:2px;}"]),h=function(e){function t(){(0,o.default)(this,t);var a=(0,s.default)(this,e.call(this));return a.state={},a}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.logList,a=e.item,o=[],s=[];return t.map((function(e){e.parentId?s[1].push(e):((s=[])[0]=e,s[1]=[],o.push(s))})),(0,n.default)(m,{},void 0,(0,n.default)("div",{className:"log-title"},void 0,"\u5e94\u7528\u5220\u9664\uff1a",a.applicationName,(0,n.default)("span",{},void 0,"\u5e94\u7528ID\uff1a",a.applicationId)),(0,n.default)("div",{className:"list-th"},void 0,(0,n.default)("div",{style:{flex:4}},void 0,"\u91cc\u7a0b\u7891\u8fc7\u7a0b"),(0,n.default)("div",{style:{flex:2}},void 0,"\u5f00\u59cb\u65f6\u95f4"),(0,n.default)("div",{style:{flex:1}},void 0,"\u8017\u65f6(\u6beb\u79d2)")),(0,n.default)(i.default,{style:p},void 0,o.map((function(e,t){return(0,n.default)(f,{dot:(0,n.default)(u.Icon,{type:"check-circle",style:{fontSize:"24px"}})},t,(0,n.default)("div",{className:"list-tr"},void 0,(0,n.default)("div",{style:{flex:4}},void 0,e[0].message," (",e[0].successFlag?"\u5df2\u5b8c\u6210":"\u672a\u5b8c\u6210",")"),(0,n.default)("div",{className:"gray",style:{flex:2}},void 0,e[0].createTime),(0,n.default)("div",{className:"gray",style:{flex:1}},void 0,"\xa0")),(0,n.default)("div",{},void 0,e[1]&&e[1].map((function(e,t){return(0,n.default)("div",{className:"list-tr2"},t,(0,n.default)("div",{style:{flex:4,paddingLeft:"10px"}},void 0,e.message),(0,n.default)("div",{className:"gray",style:{flex:2}},void 0,e.createTime),(0,n.default)("div",{className:"gray",style:{flex:1}},void 0,e.consumeTime))}))))}))))},t}(d.default.Component);t.default=h},"./src/module/homePage/components/applicationClass/ApplicationClass.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/carousel/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/carousel/style/index.js");var d=f(a("./node_modules/react/index.js")),l=(a("./node_modules/prop-types/index.js"),a("./node_modules/@ant-design/icons/es/index.js")),u=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=f(a("./src/module/homePage/components/applicationClass/ItemCard.jsx")),p=a("./src/redux/services/homePage.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=u.default.div.withConfig({displayName:"ApplicationClass__ApplicationClassWrapper",componentId:"sc-18am4xu-0"})(["background:#fff;height:200px;width:100%;padding:16px;.section__title{font-size:12px;line-height:12px;padding-left:8px;border-left:2px solid #2296f3;font-weight:500;}.section__body{margin-top:24px;display:flex;height:120px;align-items:center;width:100%;position:relative;}.arrow-text{display:flex;align-items:center;color:#2396f3;font-size:16px;width:32px;height:40px;position:absolute;cursor:pointer;}.main__left-arrow{left:0;justify-content:flex-start;&.disabled{color:#bbb;cursor:default;}}.main__right-arrow{right:0;justify-content:flex-end;&.disabled{color:#bbb;cursor:default;}}.main__content-wrapper{width:100%;padding:0 24px;}.item__card-wrapper{display:flex;}.ant-carousel .slick-dots-bottom{top:134px;li.slick-active{button{background:#2396f3;}}li{button{height:4px;background:#bbb;}}}"]),h=(0,o.default)("div",{className:"section__title"},void 0,"\u5e94\u7528\u7c7b\u578b"),g=(0,o.default)(l.DoubleLeftOutlined,{}),v=(0,o.default)(l.DoubleRightOutlined,{}),y=function(e){function t(){(0,s.default)(this,t);var a=(0,r.default)(this,e.call(this));return a.fetchData=function(e){(0,p.getApplicationClass)(a.props.projectId).then((function(t){a.setState({classList:t.data});var n={};e&&!_.isEmpty(a.state.classInfo)&&(n=a.state.classInfo),a.handleClassTypeChange(n)}))},a.handleClassTypeChange=function(e){var t=_.get(e,"applicationTypeId","");a.state.activeId===t?(a.setState({activeId:""}),a.props.onClassTypeChange("")):(a.setState({activeId:t}),a.props.onClassTypeChange(t))},a.renderCard=function(){for(var e=a.state.classList,t=Math.ceil(e.length/4),n=[],s=0;s<t;s++){for(var r=[],i=0;i<4;i++){var d=4*s+i;r.push((0,o.default)(c.default,{active:_.get(e,"["+d+"].applicationTypeId")===a.state.activeId,onClassTypeChange:a.handleClassTypeChange,onClassTypeAdd:a.props.onClassTypeAdd,classInfo:e[d]},d))}n.push((0,o.default)("div",{},s,(0,o.default)("div",{className:"item__card-wrapper"},void 0,r)))}return n},a.handlePreChange=function(){a.setState((function(e){return{currentPage:e.currentPage-1}})),a.carouselRef.current.prev&&a.carouselRef.current.prev()},a.handleNextChange=function(){a.setState((function(e){return{currentPage:e.currentPage+1}})),a.carouselRef.current.next&&a.carouselRef.current.next()},a.handleChange=function(e){a.setState({currentPage:e})},a.state={currentPage:0,activeId:"",classList:[]},a.carouselRef=d.default.createRef(),a}return(0,i.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.refresh&&e.refresh!==this.props.refresh&&this.fetchData(!0)},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.currentPage,a=e.classList,s=Math.ceil(a.length/4);return(0,o.default)(m,{},void 0,h,(0,o.default)("div",{className:"section__body"},void 0,(0,o.default)("div",{className:"main__left-arrow arrow-text "+(0===t?"disabled":""),onClick:0!==t?this.handlePreChange:null},void 0,g),(0,o.default)("div",{className:"main__right-arrow arrow-text "+(t===s-1?"disabled":""),onClick:t!==s-1?this.handleNextChange:null},void 0,v),(0,o.default)("div",{className:"main__content-wrapper"},void 0,this.state.classList.length>0&&d.default.createElement(n.default,{ref:this.carouselRef,dots:!0,afterChange:this.handleChange,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\homePage\\components\\applicationClass\\ApplicationClass.jsx",lineNumber:187}},this.renderCard()))))},t}(d.default.Component);t.default=y},"./src/module/homePage/components/applicationClass/ItemCard.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/antd/es/tooltip/index.js")),o=c(a("./node_modules/babel-runtime/helpers/jsx.js")),s=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=c(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/tooltip/style/index.js");var d=c(a("./node_modules/react/index.js")),l=c(a("./node_modules/lodash/lodash.js")),u=a("./node_modules/@ant-design/icons/es/index.js");a("./node_modules/prop-types/index.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"ItemCard__ItemCardWrapper",componentId:"sc-41mgua-0"})(["display:flex;flex-direction:column;background:#f7f8fa;height:120px;width:calc((100% - 96px) / 4);border-radius:4px;margin:0 12px;padding:12px 10px;cursor:pointer;&.hidden{border:none;cursor:default;background:#fff;&:hover{border:none;}&.active{background:#fff;border:none;box-shadow:none;}}&:hover{border:1px solid #1890ff;}&.active{background:rgba(255,255,255,0.08);border:1px solid #1890ff;box-shadow:0 8px 22px 0 rgba(0,0,0,0.11);& .item__total-text{color:#2396f3;}}.item__title{display:flex;justify-content:space-between;font-size:14px;color:#000000;font-weight:500;}.item__title-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}.item__add-wrapper{color:rgba(34,150,243,0.85);cursor:pointer;}.item__body{display:flex;align-items:center;flex-grow:1;}.item__total-text{font-size:30px;color:#2b3844;line-height:38px;}.item__total-unit{opacity:0.85;font-size:16px;color:rgba(0,0,0,0.85);line-height:38px;margin-left:3px;}.item__footer{font-size:14px;width:100%;display:flex;justify-content:space-between;}.item__title-wrapper{display:flex;align-items:center;width:calc(100% - 50px);}.item__label{white-space:nowrap;background:#2396F3;font-size:12px;color:#fff;padding:0px 8px;border-radius:8px;margin-right:4px;text-overflow:ellipsis;max-width:100px;&.AI{background:#ff8e72;}&.NORMAL{background:#1BB6AC;},}"]),f=(0,o.default)(p,{className:"hidden"}),m=(0,o.default)(u.PlusOutlined,{}),h=(0,o.default)("span",{className:"item__total-unit"},void 0,"\u4e2a"),g=(0,o.default)("span",{},void 0,"\u5f00\u53d1\u4e2d"),v=(0,o.default)("span",{},void 0,"\u5df2\u5b8c\u6210"),_=function(e){function t(){(0,s.default)(this,t);var a=(0,r.default)(this,e.call(this));return a.handleTypeChange=function(){a.props.onClassTypeChange(l.default.get(a.props,"classInfo"))},a.handleAddClass=function(e){e.stopPropagation(),a.props.onClassTypeAdd({viewType:"create",classTypeId:l.default.get(a.props,"classInfo.applicationTypeId"),parentClassTypeId:l.default.get(a.props,"classInfo.parentApplicationTypeId")})},a.state={},a}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.classInfo;return t?(0,o.default)(p,{className:this.props.active?"active":"",onClick:this.handleTypeChange},void 0,(0,o.default)("div",{className:"item__title"},void 0,(0,o.default)("span",{className:"item__title-wrapper"},void 0,t.parentApplicationTypeName&&(0,o.default)("span",{className:"item__label "+t.source},void 0,(0,o.default)(n.default,{placement:"topLeft",title:t.parentApplicationTypeName},void 0,t.parentApplicationTypeName)),(0,o.default)("span",{className:"item__title-text"},void 0,(0,o.default)(n.default,{placement:"topLeft",title:t.applicationTypeName},void 0,t.applicationTypeName))),(0,o.default)("span",{className:"item__add-wrapper"},void 0,m,(0,o.default)("span",{style:{marginLeft:5},onClick:function(t){return e.handleAddClass(t)}},void 0,"\u6dfb\u52a0"))),(0,o.default)("div",{className:"item__body"},void 0,(0,o.default)("div",{},void 0,(0,o.default)("span",{className:"item__total-text"},void 0,t.appTotal),h)),(0,o.default)("div",{className:"item__footer"},void 0,(0,o.default)("span",{},void 0,g,(0,o.default)("span",{style:{marginLeft:12,color:"#DA615D",fontSize:16}},void 0,t.appDevCount)),(0,o.default)("span",{},void 0,v,(0,o.default)("span",{style:{marginLeft:12,color:"#0CBFA0",fontSize:16}},void 0,t.appComCount)))):f},t}(d.default.Component);t.default=_},"./src/module/homePage/components/developmentProgress/BindDataSet.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/transfer/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/extends.js")),r=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/transfer/style/index.js");var l=f(a("./node_modules/react/index.js")),u=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(a("./node_modules/prop-types/index.js"),f(a("./src/redux/services/dataSource.js"))),p=f(a("./src/redux/services/sysManager/appClassification.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=u.default.div.withConfig({displayName:"BindDataSet__PageWrapper",componentId:"sc-1okqpqy-0"})([".ant-transfer{display:flex;align-items:center;}.ant-transfer-list{width:46%;}"]),h=function(e){function t(){var a,n,o;(0,r.default)(this,t);for(var s=arguments.length,d=Array(s),l=0;l<s;l++)d[l]=arguments[l];return a=n=(0,i.default)(this,e.call.apply(e,[this].concat(d))),n.state={targetKeys:[],sourceData:[],disabled:!1},n.fetchAppDataSource=function(){n.setState({targetKeys:[]}),p.default.getDatasourceByApplicationId(n.props.applicationId).then((function(e){for(var t=[],a=0;a<e.data.length;a++)t.push(e.data[a].dsId);n.setState({targetKeys:t})}))},n.handleChange=function(e){var t=[];if(n.setState({targetKeys:e}),e.length>0)for(var a=0;a<n.state.sourceData.length;a++)-1!==_.indexOf(e,n.state.sourceData[a].dsId)&&t.push({dsId:n.state.sourceData[a].dsId,dsName:n.state.sourceData[a].name});n.props.onDataSetChange(t)},o=a,(0,i.default)(n,o)}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){var e=this;c.default.getDataSourceListSummary({}).then((function(t){var a=_.get(t,"data",[]).map((function(e){return(0,s.default)({key:e.dsId,title:e.name},e)}));e.setState({sourceData:a})})),this.fetchAppDataSource()},t.prototype.componentDidUpdate=function(e){this.props.applicationId!==e.applicationId&&this.fetchAppDataSource()},t.prototype.render=function(){var e=this.state,t=e.sourceData,a=e.targetKeys,s=e.disabled;return(0,o.default)(m,{},void 0,(0,o.default)(n.default,{showSearch:!0,listStyle:{width:260,height:300},dataSource:t,titles:["\u672a\u7ed1\u5b9a\u6570\u636e\u96c6","\u5df2\u7ed1\u5b9a\u6570\u636e\u96c6"],targetKeys:a,onChange:this.handleChange,render:function(e){return e.title},disabled:s}))},t}(l.default.Component);t.default=h},"./src/module/homePage/components/developmentProgress/DevelopmentProgress.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/modal/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/antd/es/message/index.js")),r=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var l=g(a("./node_modules/react/index.js")),u=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(a("./node_modules/prop-types/index.js"),g(a("./src/module/homePage/components/developmentProgress/ProgressTable.jsx"))),p=a("./src/components/index.js"),f=a("./src/redux/services/homePage.js"),m=g(a("./src/redux/services/sysManager/appClassification.js")),h=g(a("./src/module/homePage/components/developmentProgress/BindDataSet.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.div.withConfig({displayName:"DevelopmentProgress__PageWrapper",componentId:"wpijgz-0"})(["background:#fff;width:100%;padding:16px;.no-data__wrapper{background:#fff;height:300px;}.section__title{font-size:12px;line-height:12px;padding-left:8px;border-left:2px solid #2296f3;font-weight:500;}.section__title-desc{margin-left:8px;opacity:0.4;color:#303133;}"]),_=(0,o.default)("div",{className:"section__title"},void 0,"\u5e94\u7528\u6d41\u6c34\u7ebf"),y=(0,o.default)("div",{className:"no-data__wrapper"},void 0,(0,o.default)(p.LoadingIndicator,{position:"relative"})),b=(0,o.default)("div",{className:"no-data__wrapper"},void 0,(0,o.default)(p.NoData,{position:"relative"})),x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fetchData=function(){n.props.projectId?(n.setState({listLoading:!0}),(0,f.getAppPipeline)(n.props.projectId,n.props.classTypeId||"all").then((function(e){n.setState({dataSource:e.data,listLoading:!1})})).catch((function(){n.setState({listLoading:!1,dataSource:[]})}))):n.setState({dataSource:[]})},n.handleBindDataSet=function(e){n.setState({modalVisible:!0,applicationId:e})},n.handleCancel=function(){n.setState({modalVisible:!1})},n.handleOk=function(){0===n.bindDataSet.length?s.default.info("\u8bf7\u9009\u62e9\u6570\u636e\u96c6\uff01"):(n.setState({submitLoading:!0}),m.default.bindingDatasource(n.state.applicationId,n.bindDataSet).then((function(){n.setState({submitLoading:!1,modalVisible:!1}),n.fetchData(),s.default.success("\u4fdd\u5b58\u6210\u529f\uff01")})).catch((function(e){n.setState({submitLoading:!1,modalVisible:!1}),s.default.error(e.message)})))},n.handleDataSetChange=function(e){n.bindDataSet=e},n.state={listLoading:!1,dataSource:[],applicationId:""},n.bindDataSet=[],n}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e){(e.classTypeId!==this.props.classTypeId||this.props.refresh&&e.refresh!==this.props.refresh)&&this.fetchData()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.dataSource,a=e.listLoading,s=e.applicationId;return(0,o.default)(v,{},void 0,(0,o.default)(n.default,{style:{top:50},width:600,title:"\u6570\u636e\u96c6\u7ed1\u5b9a",visible:this.state.modalVisible,onOk:this.handleOk,confirmLoading:this.state.submitLoading,onCancel:this.handleCancel},void 0,(0,o.default)(h.default,{applicationId:s,onDataSetChange:this.handleDataSetChange})),_,a?y:Array.isArray(t)&&0!==t.length?(0,o.default)(c.default,{dataSource:t,loading:a,projectId:this.props.projectId,onApplicationEdit:this.props.onApplicationEdit,onApplicationDelete:this.props.onApplicationDelete,onShowDeleteMsg:this.props.onShowDeleteMsg,onBindDataSet:this.handleBindDataSet}):b)},t}(l.default.PureComponent);t.default=x},"./src/module/homePage/components/developmentProgress/ProgressTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;i(a("./node_modules/antd/es/pagination/index.js"));var n=i(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/pagination/style/index.js");i(a("./node_modules/react/index.js"));var o=i(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),s=(a("./node_modules/prop-types/index.js"),i(a("./src/module/homePage/components/developmentProgress/TableRow.jsx"))),r=a("./src/components/index.js");function i(e){return e&&e.__esModule?e:{default:e}}var d=o.default.div.withConfig({displayName:"ProgressTable__PageWrapper",componentId:"sc-1ux8lwr-0"})(["width:100%;display:flex;flex-direction:column;.ant-pagination{margin-top:24px;display:flex;justify-content:flex-end;}"]);t.default=function(e){var t=e.dataSource,a=e.onApplicationEdit,o=e.onApplicationDelete,i=e.onShowDeleteMsg,l=e.loading,u=(e.onPageChange,e.onBindDataSet),c=e.projectId;return(0,n.default)(d,{},void 0,l?(0,n.default)(r.LoadingIndicator,{style:{marginTop:50}}):t.map((function(e,t){return(0,n.default)(s.default,{item:e,projectId:c,onBindDataSet:u,onApplicationEdit:a,onApplicationDelete:o,onShowDeleteMsg:i},t)})),!1)}},"./src/module/homePage/components/developmentProgress/RowItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/spin/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/spin/style/index.js");var d=g(a("./node_modules/react/index.js")),l=g(a("./node_modules/lodash/lodash.js")),u=g(a("./src/redux/services/codeService.js")),c=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(a("./node_modules/prop-types/index.js"),a("./src/routes/routeHelper.jsx")),f=a("./src/utils/history.js"),m=a("./src/module/homePage/components/developmentProgress/step/VerticalStep.jsx"),h=g(m);function g(e){return e&&e.__esModule?e:{default:e}}var v={DATAPRE_DATASETACC:"\u6570\u636e\u96c6\u63a5\u5165",DATAPRE_DATASET_BIND:"\u6570\u636e\u96c6\u7ed1\u5b9a",DATAPRE_DATADEVTASK:"\u6570\u636e\u5f00\u53d1\u4efb\u52a1",MODEDEV_MODELTRA:"\u7f16\u7801\u5f0f\u5efa\u6a21",GUIDEDEV_MODELTRA:"\u5411\u5bfc\u5f0f\u5efa\u6a21",MODEDEV_REASONINGPRE:"\u63a8\u7406\u9884\u6d4b",MODEDEV_MODELPRE:"\u6a21\u578b\u4fdd\u5b58",MODEDEV_CODEPACKAGE:"\u6a21\u578b\u5bfc\u5165",SERVICEDEP_IMAGECON:"\u63a8\u7406\u955c\u50cf\u6784\u5efa",SERVICEDEP_SERVICETEST:"\u63a8\u7406\u670d\u52a1\u6d4b\u8bd5\u90e8\u7f72",SERVICEDEP_SERVICEPRO:"\u63a8\u7406\u670d\u52a1\u751f\u4ea7\u90e8\u7f72"},_={NOTSTARTED:"wait",PROGRESSING:"process",COMPLETED:"finish"},y={data:{text:"\u6570\u636e\u51c6\u5907"},train:{text:"\u6a21\u578b\u5f00\u53d1"},service:{text:"\u670d\u52a1\u90e8\u7f72"},codePackage:{text:"\u6a21\u578b\u51c6\u5907"}},b=c.default.div.withConfig({displayName:"RowItem__PageWrapper",componentId:"thf6a-0"})(["display:flex;width:40%;&:last-child{width:20%;}.title-text{font-weight:600;font-size:14px;color:#303133;&.completed{color:#1890ff;}&.no-data{opacity:0.5;}}.title-desc{margin-top:4px;opacity:0.35;font-size:12px;color:#303133;}.item__process-wrapper{margin-top:16px;display:flex;}.bind__data-set{margin-left:16px;color:#ffbbaa;cursor:pointer;}.item-node-link{text-decoration:none;background-color:transparent;outline:none;cursor:pointer;transition:color 0.3s;margin:0 2px;&:hover{color:rgb(20,123,209);}}"]),x=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.navTo=function(e){var t=e.item,a=e.index,o=e.arr,s=e.applicationId,r=e.applicationType,i=e.onBindDataSet,d=e.rowData,c="";switch(t.nodeType){case"DATAPRE_DATASETACC":c=p.dataMgrUrl.datasourceMgr();break;case"DATAPRE_DATASET_BIND":i();break;case"DATAPRE_DATADEVTASK":c=p.taskAUrl.taskManage();break;case"MODEDEV_MODELTRA":c="NOTSTARTED"===t.nodeState?p.modelServiceUrl.createCodeService():(t.nodeState,p.modelServiceUrl.codeServiceList());break;case"GUIDEDEV_MODELTRA":c="NOTSTARTED"!==t.nodeState?p.trainTaskUrl.trainTaskManage():p.trainTaskUrl.trainTaskManage("default");break;case"MODEDEV_REASONINGPRE":c=(l.default.get(o,"["+(a-1)+"].nodeState"),p.modelBaseUrl.modelBaseManage());break;case"MODEDEV_MODELPRE":c="NOTSTARTED"!==t.nodeState?p.modelBaseUrl.modelBaseManage():p.modelBaseUrl.createModelBaseModel("default");break;case"MODEDEV_CODEPACKAGE":c=p.modelBaseUrl.createModelBaseModel("default");break;case"SERVICEDEP_IMAGECON":c="NOTSTARTED"!==t.nodeState?p.modelMirrorUrl.list("service"):p.modelMirrorUrl.create("build");break;case"SERVICEDEP_SERVICETEST":case"SERVICEDEP_SERVICEPRO":if("NOTSTARTED"!==t.nodeState)c=p.modelServiceUrl.list();else{var m="SERVICEDEP_SERVICETEST"===t.nodeType?"test":"product";c=p.modelServiceUrl.publish(m)}}var h={pathname:c,state:{applicationId:s,appBig:l.default.get(d,"parentApplicationTypeId"),appSmall:l.default.get(d,"applicationClass")}};if("SERVICEDEP_SERVICETEST"===t.nodeType&&(h.state.pubEnvType="TEST"),"SERVICEDEP_SERVICEPRO"===t.nodeType&&(h.state.pubEnvType="PRODUCT"),"SERVICEDEP_IMAGECON"===t.nodeType&&(h.state.buildType="NORMAL"===r?"CODE":"MODEL"),["MODEDEV_MODELTRA"].includes(t.nodeType)&&"COMPLETED"===t.nodeState){var g=l.default.get(t,"node[0].nodeId");n.setState({jumpCodeLoading:!0,currentNodeId:g,currentNodeType:t.nodeType});var v="MODEDEV_MODELTRA"===t.nodeType?0:1;u.default.jumpCodeModelById(g,v).then((function(e){var t=l.default.get(e,"data");n.setState({jumpCodeLoading:!1,currentNodeId:"",currentNodeType:""}),window.open(t)})).catch((function(e){throw setTimeout((function(){(0,f.navigateTo)(h)}),1e3),n.setState({jumpCodeLoading:!1,currentNodeId:"",currentNodeType:""}),e}))}else(0,f.navigateTo)(h)},n.renderNavTitle=function(e,t,a,s,r,i,l){return(0,o.default)("span",{},void 0,(0,o.default)("span",{className:"item-node-link",onClick:function(){return n.navTo({item:e,index:t,arr:a,applicationId:s,applicationType:r})}},void 0,v[e.nodeType]),e.subNode&&Array.isArray(e.subNode)&&e.subNode.map((function(e,t){return(0,o.default)(d.default.Fragment,{},t,(0,o.default)("span",{style:{margin:5}},void 0,"/"),(0,o.default)("span",{className:"item-node-link",onClick:function(){return n.navTo({item:e,index:t,arr:a,applicationId:s,applicationType:r,onBindDataSet:i,rowData:l})}},void 0,v[e.nodeType]))})))},n.state={jumpCodeLoading:!1,currentNodeId:"",currentNodeType:""},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.rowItem,s=t.type,r=t.onBindDataSet,i=t.applicationId,d=t.rowState,u=t.rowItemName,c=t.applicationType;return(0,o.default)(b,{},void 0,(0,o.default)("div",{className:"item__container"},void 0,(0,o.default)("div",{className:"item__title-wrapper"},void 0,(0,o.default)("div",{className:"title-text "+("COMPLETED"===d?"completed":"")+" "+("NOTSTARTED"===d?"no-data":"")},void 0,y[s].text),(0,o.default)("div",{className:"title-desc"},void 0,u||"\u672a\u83b7\u53d6")),(0,o.default)("div",{className:"item__process-wrapper"},void 0,(0,o.default)(h.default,{},void 0,a.map((function(t,u,p){return(0,o.default)(n.default,{tip:"Loading...",spinning:e.state.jumpCodeLoading&&l.default.get(t,"node[0].nodeId")===e.state.currentNodeId&&t.nodeType===e.state.currentNodeType},u,(0,o.default)("div",{className:u!==a.length-1?"step-container not-last-child":"step-container"},void 0,(0,o.default)(m.VStep,{title:e.renderNavTitle(t,u,p,i,c,r,e.props.rowData),status:_["data"===s?d:t.nodeState]},u)))}))))))},t}(d.default.PureComponent);t.default=x},"./src/module/homePage/components/developmentProgress/TableRow.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/babel-runtime/helpers/extends.js")),o=_(a("./node_modules/antd/es/tooltip/index.js")),s=_(a("./node_modules/antd/es/col/index.js")),r=_(a("./node_modules/antd/es/row/index.js")),i=_(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var d=_(a("./node_modules/react/index.js")),l=_(a("./node_modules/lodash/lodash.js")),u=a("./node_modules/@ant-design/icons/es/index.js"),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var p=a("./node_modules/react-router-dom/esm/react-router-dom.js"),f=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(a("./node_modules/prop-types/index.js"),_(a("./src/module/homePage/components/developmentProgress/RowItem.jsx"))),h=_(a("./src/module/homePage/components/developmentProgress/step/HorizontalStep.jsx")),g=a("./src/components/auth/textAuth.jsx"),v=a("./src/routes/routeHelper.jsx");function _(e){return e&&e.__esModule?e:{default:e}}var y=c.Form.Item,b=f.default.div.withConfig({displayName:"TableRow__PageWrapper",componentId:"fp10bj-0"})(["margin-top:20px;width:100%;border:1px solid rgba(151,151,151,0.18);border-radius:2px;display:flex;flex-direction:column;padding:16px 20px;.row__title-wrapper{display:flex;justify-content:space-between;align-items:center;width:100%;}.row-left{align-items:center;display:flex;color:#303133;font-size:14px;font-weight:600;}.row-right{display:flex;justify-content:center;align-items:center;}.row__application-info{margin-top:16px;width:100%;padding:8px 24px;background:#f7f8fa;.ant-legacy-form-item-control-wrapper{width:calc(100% - 65px);}.ant-legacy-form-item-children{overflow:hidden;text-overflow:ellipsis;width:100%;display:block;white-space:nowrap;}}.row__step-wrapper{width:100%;height:32px;margin:16px 0 0;}.row__item-step{width:40%;&:last-child{width:20%;}}.ant-legacy-form-item{width:100%;}.ant-legacy-form-inline .ant-legacy-form-item{display:flex;}.row__item-wrapper{display:flex;width:100%;}.step__no-data{.ant-steps-item-icon{background:#eee;}}"]),x=(0,i.default)("span",{},void 0,"* ");t.default=function(e){var t,a=e.item,f=e.onApplicationEdit,_=e.onApplicationDelete,C=e.onBindDataSet,j=e.projectId,S=e.onShowDeleteMsg,I=l.default.get(a,"nodeInfo",[]),T="PROGRESSING",w="PROGRESSING",E="PROGRESSING",D="",M="",k="",P="",L=[],N=l.default.groupBy(I,"nodeType"),A=l.default.get(N,"DATAPRE_DATASETACC[0].nodeState","NOTSTARTED"),R=l.default.get(N,"DATAPRE_DATADEVTASK[0].nodeState","NOTSTARTED"),F=l.default.get(N,"MODEDEV_MODELTRA[0].nodeState","NOTSTARTED"),O=l.default.get(N,"GUIDEDEV_MODELTRA[0].nodeState","NOTSTARTED"),V=l.default.get(N,"MODEDEV_MODELPRE[0].nodeState","NOTSTARTED"),U=l.default.get(N,"MODEDEV_CODEPACKAGE[0].nodeState","NOTSTARTED"),B=l.default.get(N,"SERVICEDEP_IMAGECON[0].nodeState","NOTSTARTED"),G=l.default.get(N,"SERVICEDEP_SERVICETEST[0].nodeState","NOTSTARTED"),z=l.default.get(N,"SERVICEDEP_SERVICEPRO[0].nodeState","NOTSTARTED"),q=l.default.get(N,"DATAPRE_DATASETACC[0]",{}),K=l.default.get(N,"DATAPRE_DATADEVTASK[0]",{}),H=l.default.get(N,"MODEDEV_MODELTRA[0]",{}),Y=l.default.get(N,"GUIDEDEV_MODELTRA[0]",{}),W=l.default.get(N,"MODEDEV_CODEPACKAGE[0]",{}),J=l.default.get(N,"SERVICEDEP_SERVICETEST[0]",{}),Q=l.default.get(N,"SERVICEDEP_SERVICEPRO[0]",{}),Z=l.default.get(N,"DATAPRE_DATASETACC[0].node",[]),X=l.default.get(N,"DATAPRE_DATADEVTASK[0].node",[]),$=l.default.get(N,"MODEDEV_MODELTRA[0].node",[]),ee=l.default.get(N,"MODEDEV_REASONINGPRE[0].node",[]),te=l.default.get(N,"MODEDEV_MODELPRE[0].node",[]),ae=l.default.get(N,"MODEDEV_CODEPACKAGE[0].node",[]),ne=l.default.get(N,"SERVICEDEP_SERVICETEST[0].node",[]),oe=l.default.get(N,"SERVICEDEP_SERVICEPRO[0].node",[]);"NOTSTARTED"!==R?D=l.default.get(X,"["+(X.length-1)+"].nodeName"):"NOTSTARTED"!==A&&(D=l.default.get(Z,"["+(Z.length-1)+"].nodeName")),t=A,"NOTSTARTED"!==V?M=l.default.get(te,"["+(te.length-1)+"].nodeName"):"NOTSTARTED"!==O?M=l.default.get(ee,"["+(ee.length-1)+"].nodeName"):"NOTSTARTED"!==F&&(M=l.default.get($,"["+($.length-1)+"].nodeName")),"COMPLETED"===V?T="COMPLETED":"NOTSTARTED"===V&&"NOTSTARTED"===O&&"NOTSTARTED"===F&&(T="NOTSTARTED"),"NOTSTARTED"!==U&&(P=l.default.get(ae,"["+(ae.length-1)+"].nodeName")),"COMPLETED"===U?E="COMPLETED":"NOTSTARTED"===U&&(E="NOTSTARTED"),"NOTSTARTED"!==z?k=l.default.get(oe,"["+(oe.length-1)+"].nodeName"):"NOTSTARTED"!==G&&(k=l.default.get(ne,"["+(ne.length-1)+"].nodeName")),"COMPLETED"===z?w="COMPLETED":("NOTSTARTED"===z&&"NOTSTARTED"===G||"NOTSTARTED"===B)&&(w="NOTSTARTED"),L="AI"===a.source?[{id:"dataSetId",state:t},{id:"trainTaskId",state:T},{id:"reasonServiceId",state:w}]:"NORMAL"===a.source?[{id:"codePackageId",state:E},{id:"reasonServiceId",state:w}]:[{id:"reasonServiceId",state:w}];var se=l.default.trimEnd((0,g.hasText)("root.app.appGit"),"/"),re=a.predictGitRepo?a.predictGitRepo:se+"/"+j+"/"+a.applicationId,ie="NOTSTARTED"===t&&"NOTSTARTED"===T&&"NOTSTARTED"===w;return(0,i.default)(b,{},void 0,(0,i.default)("div",{className:"row__title-wrapper"},void 0,(0,i.default)("div",{className:"row-left"},void 0,a.applicationName,(0,i.default)("span",{style:{marginLeft:8,color:"rgba(0,0,0,0.2)"}},void 0,"(",a.applicationId,")")),(0,i.default)("div",{className:"row-right"},void 0,a.haveDeleteMessage&&(0,i.default)("a",{href:"javascript:;",style:{marginRight:8,color:"#f5222d"}},void 0,(0,i.default)("span",{onClick:function(){return S(a)}},void 0,x,"\u5220\u9664\u5931\u8d25")),(0,i.default)("a",{href:"javascript:;",style:{marginRight:8}},void 0,(0,i.default)("span",{onClick:function(){return f(a.projectApplicationId)}},void 0,(0,i.default)(u.FormOutlined,{style:{marginRight:4}}),"\u4fee\u6539")),(0,i.default)("a",{href:"javascript:;",style:{display:a.isAdmin?"inline":"none"}},void 0,(0,i.default)(u.DeleteOutlined,{style:{marginRight:4}}),(0,i.default)("span",{onClick:function(){return _(a.projectApplicationId)}},void 0,"\u5220\u9664")))),(0,i.default)("div",{className:"row__application-info"},void 0,(0,i.default)(c.Form,{layout:"inline"},void 0,(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:6},void 0,(0,i.default)(y,{label:"\u5e94\u7528\u5927\u7c7b"},void 0,(0,i.default)(o.default,{placement:"topLeft",title:a.parentApplicationTypeName},void 0,a.parentApplicationTypeName))),(0,i.default)(s.default,{span:6},void 0,(0,i.default)(y,{label:"\u5e94\u7528\u5c0f\u7c7b"},void 0,(0,i.default)(o.default,{placement:"topLeft",title:a.applicationClassName},void 0,a.applicationClassName))),(0,i.default)(s.default,{span:12,style:{position:"relative"}},void 0,(0,i.default)(y,{label:"\u5e94\u7528\u63cf\u8ff0",style:{width:"100%"},className:"app__desc-item"},void 0,(0,i.default)(o.default,{placement:"topLeft",title:a.applicationDesc},void 0,(0,i.default)("span",{style:{width:"100%",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}},void 0,a.applicationDesc))))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:6},void 0,(0,i.default)(y,{label:"\u521b\u5efa\u4eba"},void 0,(0,i.default)(o.default,{placement:"topLeft",title:a.createBy},void 0,a.createBy))),(0,i.default)(s.default,{span:6},void 0,(0,i.default)(y,{label:"\u521b\u5efa\u65f6\u95f4"},void 0,(0,i.default)(o.default,{placement:"topLeft",title:a.createAt},void 0,a.createAt))),(0,i.default)(s.default,{span:12},void 0,(0,i.default)(y,{label:"git\u4ed3\u5e93"},void 0,(0,i.default)(p.Link,{to:{pathname:v.notebookViewUrl.view(j,a.applicationId,"/",!1)},target:"_blank"},void 0,(0,i.default)(o.default,{title:re},void 0,j+"/"+a.applicationId))))))),(0,i.default)(d.default.Fragment,{},void 0,(0,i.default)("div",{className:"row__step-wrapper"},void 0,(0,i.default)(h.default,{stepItems:L})),(0,i.default)("div",{className:"row__item-wrapper"},void 0,"AI"===a.source&&(0,i.default)(d.default.Fragment,{},void 0,(0,i.default)(m.default,{notStart:ie,type:"data",rowItemName:D,applicationId:a.projectApplicationId,rowItem:[(0,n.default)({},q,{subNode:[{nodeType:"DATAPRE_DATASET_BIND"}]}),K],rowState:t,onBindDataSet:function(){return C(a.projectApplicationId)}}),(0,i.default)(m.default,{applicationId:a.projectApplicationId,rowData:a,type:"train",rowState:T,rowItemName:M,rowItem:[(0,n.default)({},H,{nodeState:"COMPLETED"===T?T:H.nodeState,subNode:[Y,{nodeType:"MODEDEV_CODEPACKAGE"}]})]})),"NORMAL"===a.source&&(0,i.default)(m.default,{applicationId:a.projectApplicationId,type:"codePackage",rowState:E,rowItemName:P,rowItem:[W]}),(0,i.default)(m.default,{applicationId:a.projectApplicationId,type:"service",rowState:w,rowItemName:k,applicationType:a.source,rowItem:[J,Q]}))))}},"./src/module/homePage/components/developmentProgress/step/HorizontalStep.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(s(a("./node_modules/react/index.js")),a("./node_modules/@ant-design/icons/es/index.js"));s(a("./node_modules/prop-types/index.js"));function s(e){return e&&e.__esModule?e:{default:e}}var r=s(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"HorizontalStep__Wrapper",componentId:"peni01-0"})(["ul{list-style:none;padding-left:0;}.steps{display:flex;width:100%;flex:1 0 auto;font-size:12px;.steps-marker{align-items:center;display:flex;border-radius:50%;font-weight:700;justify-content:center;position:relative;z-index:10;}li{display:block;position:relative;width:40%;&:last-child{width:20%;}}.steps-segment{flex-basis:auto !important;}.steps-segment:not(:last-child){flex-shrink:1;}.steps-marker{background-color:#2396f3;color:#fff;&.NOTSTARTED{background:#cececf;}&.PROGRESSING{background:#2396f3;}&.COMPLETED{background-color:#2396f3;}}.steps-marker{height:20px;width:20px;}.steps-line-wrapper{position:absolute;left:0;top:10px;right:0;height:2px;background:#cececf;&.COMPLETED{background:#2396f3;}}.steps-line-left{width:50%;display:block;height:2px;&.PROGRESSING{background:#2396f3;}}.steps-segment:last-child{.steps-line-wrapper,.steps-line-left{height:0;}}.steps-content{margin-top:16px;}.steps-title{font-size:14px;font-weight:600;}}"]),i=(0,n.default)(o.CheckOutlined,{width:12,height:12}),d=(0,n.default)("div",{className:"steps-content"},void 0,(0,n.default)("div",{className:"steps-title"}),(0,n.default)("span",{className:"steps-desc"}));t.default=function(e){var t=e.stepItems;return(0,n.default)(r,{},void 0,(0,n.default)("ul",{className:"steps is-balanced "},void 0,t.map((function(e,t){return(0,n.default)("li",{className:"steps-segment "+e.state},e.id,(0,n.default)("span",{className:"steps-marker "+e.state},void 0,"COMPLETED"===e.state?i:t+1),d,(0,n.default)("span",{className:"steps-line-wrapper "+e.state},void 0,(0,n.default)("span",{className:"steps-line-left "+e.state})))}))))}},"./src/module/homePage/components/developmentProgress/step/VerticalStep.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.VStep=t.Wrapper=void 0;var n=s(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(s(a("./node_modules/react/index.js")),s(a("./node_modules/prop-types/index.js")),s(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")));function s(e){return e&&e.__esModule?e:{default:e}}var r=t.Wrapper=o.default.div.withConfig({displayName:"VerticalStep__Wrapper",componentId:"sc-1v65jmx-0"})(["height:100%;ul{list-style:none;padding-left:0;}position:relative;.steps-segment{flex-basis:auto !important;}.steps-segment:not(:last-child){flex-grow:1;flex-shrink:1;}.steps-title{margin:-14px 0 0 12px;font-size:12px;color:#303133;line-height:20px;cursor:pointer;&.wait{color:rgba(0,0,0,0.45);}}.steps-marker{height:6px;width:6px;background-color:#cececf;color:#fff;align-items:center;display:flex;border-radius:50%;font-weight:700;justify-content:center;position:relative;z-index:10;&.wait{background:#cececf;}&.process{background:#0cbfa0;}&.finish{background-color:#0cbfa0;}}.step-container.not-last-child{li.steps-segment:after{content:' ';display:block;position:absolute;width:1px;left:2px;right:0;top:0;bottom:0;}.steps-segment:after{background-color:#0cbfa0;}.steps-segment{&.wait:after{background:#cececf;}&.process:after{background:#0cbfa0;}&.finish:after{background-color:#0cbfa0;}}}.steps{display:flex;flex-direction:column;height:100%;flex:1 0 auto;font-size:12px;li{display:block;position:relative;height:32px;}}"]);t.default=function(e){var t=e.children;return(0,n.default)(r,{},void 0,(0,n.default)("ul",{className:"steps"},void 0,t))};t.VStep=function(e){var t=e.status,a=e.title;return(0,n.default)("li",{className:"steps-segment "+t},void 0,(0,n.default)("span",{className:"steps-marker "+t}),(0,n.default)("div",{className:"steps-content"},void 0,(0,n.default)("div",{className:"steps-title "+t},void 0,a)))}},"./src/module/homePage/components/projectSituation/CardItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=(a("./node_modules/prop-types/index.js"),a("./src/components/Icon/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"CardItem__CardWrapper",componentId:"ccqp55-0"})(["width:calc((100% - 48px) / 4);background:rgba(240,242,245,0.51);display:flex;border-radius:4px;flex-wrap:wrap;cursor:",";.card-header{font-weight:500;margin:2px;font-size:14px;display:flex;align-items:center;color:rgba(48,49,51,0.8);}&:not(:nth-child(4n)){margin-right:16px;height:55px;}&:nth-child(n + 5){margin-top:16px;}.card-content{display:flex;justify-content:space-between;flex-grow:1;padding-right:6px;}.card__count-text{display:flex;align-items:center;font-size:24px;color:#000000;line-height:24px;}"],(function(e){return e.link?"pointer":"not-allowed"}));t.default=function(e){var t=e.uiData,a=e.dataSource,o=e.navTo;return(0,n.default)(i,{link:t.link,onClick:function(){return t.link?o(t.link):null}},void 0,(0,n.default)(s.IconSvg,{className:"card-icon",type:t.icon,size:55}),(0,n.default)("div",{className:"card-content"},void 0,(0,n.default)("div",{className:"card-header"},void 0,t.title),(0,n.default)("div",{className:"card__count-text"},void 0,a[t.key])))}},"./src/module/homePage/components/projectSituation/ProjectSituationCards.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(a("./node_modules/prop-types/index.js"),f(a("./src/module/homePage/components/projectSituation/CardItem.jsx"))),u=a("./src/redux/services/homePage.js"),c=a("./src/utils/history.js"),p=a("./src/routes/routeHelper.jsx");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.div.withConfig({displayName:"ProjectSituationCards__CardsWrapper",componentId:"sc-1cx5paw-0"})(["width:100%;display:flex;flex-wrap:wrap;box-sizing:border-box;}"]),h=(0,n.default)("div",{className:"section__item-title"},void 0,"\u9879\u76ee\u603b\u4f53\u60c5\u51b5"),g=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){(0,u.getProjectOverview)(n.props.projectId).then((function(e){n.setState({dataSource:e.data})}))},n.navTo=function(e){(0,c.navigateTo)(e)},n.state={dataSource:{}},n.items=[{title:"\u9879\u76ee\u6570",key:"projectCount",icon:"projectCount",show:!1},{title:"\u9879\u76ee\u6210\u5458\u6570",key:"memberCount",icon:"projectMember",show:!0,link:p.homeUrl.projectMember()},{title:"\u6570\u636e\u96c6\u6570",key:"datesetCount",icon:"datesetCount",show:!0,link:p.dataMgrUrl.datasourceMgr()},{title:"\u5e94\u7528\u6570",key:"appCount",icon:"applications",show:!0,link:p.homeUrl.applications()},{title:"\u6a21\u578b\u6570",key:"modelCount",icon:"modelCount",show:!0,link:p.modelBaseUrl.modelBaseManage()},{title:"\u7f16\u7801\u5f0f\u8bad\u7ec3\u670d\u52a1\u6570",key:"notebookTrainCount",icon:"notebookTrain",show:!0,link:p.modelServiceUrl.codeServiceList()},{title:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1\u6570",key:"wizardTrainCount",icon:"wizardTrain",show:!0,link:p.trainTaskUrl.trainTaskManage()},{title:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1\u6570",key:"onlineReasoningSrvCount",icon:"onlineService",show:!0,link:p.modelServiceUrl.list()},{title:"\u7528\u6237\u6570",key:"userCount",icon:"userCount",show:!1},{title:"\u8fd0\u884c\u7684\u5b9e\u4f8b\u6570",key:"instancesCount",icon:"runInstances",show:!1}],n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state.dataSource;return(0,n.default)("section",{},void 0,h,(0,n.default)("div",{className:"section__item-container"},void 0,(0,n.default)(m,{},void 0,this.items.map((function(a){return a.show?(0,n.default)(l.default,{uiData:a,dataSource:t,navTo:e.navTo},a.key):null})))))},t}(i.default.PureComponent);t.default=g},"./src/module/homePage/components/resourceUsage/ItemCard.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=(a("./node_modules/prop-types/index.js"),r(a("./src/module/homePage/components/resourceUsage/ResourceItem.jsx")));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"ItemCard__CardWrapper",componentId:"sc-5v4vqn-0"})(["width:calc((100% - 24px) / 2);background:#ffffff;border-radius:4px;border-radius:4px;&:nth-child(2n + 1){margin-right:24px;}&:nth-child(n + 3){margin-top:16px;}.card-header{padding:0 20px;height:42px;font-size:14px;background:rgba(34,150,243,0.06);display:flex;align-items:center;font-weight:500;font-size:16px;color:#303133;}.card-content{display:flex;flex-direction:column;align-items:center;padding:0 20px 24px;}"]),d=[{title:"CPU (core\uff09",used:"cpuUsed",total:"cpu"},{title:"\u5185\u5b58 (GB\uff09",used:"memUsed",total:"mem"},{title:"GPU (\u5361\uff09",used:"gpuUsed",total:"gpu"}];t.default=function(e){var t=e.title,a=e.dataSource;return(0,n.default)(i,{},void 0,(0,n.default)("div",{className:"card-header"},void 0,(0,n.default)("span",{},void 0,t)),(0,n.default)("div",{className:"card-content"},void 0,d.map((function(e){return(0,n.default)(s.default,{item:e,dataSource:a},e.title)}))))}},"./src/module/homePage/components/resourceUsage/ResourceItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/antd/es/progress/index.js")),o=r(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/progress/style/index.js");r(a("./node_modules/react/index.js"));var s=r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));a("./node_modules/prop-types/index.js");function r(e){return e&&e.__esModule?e:{default:e}}var i=s.default.div.withConfig({displayName:"ResourceItem__ItemWrapper",componentId:"sc-1ot0l89-0"})(["width:100%;margin-top:16px;.item-top{font-size:14px;color:rgba(0,0,0,0.45);line-height:22px;display:flex;justify-content:space-between;}.item-used{font-size:16px;font-weight:500;color:#000;}.item-total{font-size:12px;font-weight:600;}"]);t.default=function(e){var t=e.item,a=e.dataSource,s=_.get(a,t.used,0)||0,r=_.get(a,t.total,0)||0,d=isNaN(s)||isNaN(r)||0===r?0:Math.round(s/r*100);return(0,o.default)(i,{},void 0,(0,o.default)("div",{className:"item-top"},void 0,(0,o.default)("div",{className:"item-left"},void 0,t.title),(0,o.default)("div",{className:"item-right"},void 0,(0,o.default)("span",{className:"item-used"},void 0,s?_.round(s,2):s),(0,o.default)("span",{className:"item-total"},void 0,"/",r))),(0,o.default)("div",{className:"item-bottom"},void 0,(0,o.default)(n.default,{percent:d,strokeColor:"#1890ff",format:function(e){return(0,o.default)("span",{style:{color:"rgba(0,0,0,.45)"}},void 0,e+"%")}})))}},"./src/module/homePage/components/resourceUsage/ResourceUsageCards.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/radio/style/index.js");var d=m(a("./node_modules/react/index.js")),l=a("./node_modules/lodash/lodash.js"),u=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(a("./node_modules/prop-types/index.js"),m(a("./src/module/homePage/components/resourceUsage/ItemCard.jsx"))),p=a("./src/redux/services/homePage.js"),f=a("./src/components/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=i.default.Group,g=u.default.div.withConfig({displayName:"ResourceUsageCards__CardsWrapper",componentId:"eznwbh-0"})(["width:100%;display:flex;flex-wrap:wrap;"]),v=(0,n.default)("div",{className:"section__item-title"},void 0,"\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5"),y=(0,n.default)(i.default,{value:"dev"},void 0,"\u5f00\u53d1"),b=(0,n.default)(i.default,{value:"product"},void 0,"\u751f\u4ea7"),x=(0,n.default)(i.default,{value:"test"},void 0,"\u6d4b\u8bd5"),C=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.checkedValue;(0,p.getProjectResUsage)(n.props.projectId).then((function(t){var a=_.get(t,"data",[]);a=n.formatUsRate(a);var o=_.groupBy(a,"profile");n.setState({resourcesRateMap:o,resourcesRate:_.get(o,e+"[0]",{})})})),(0,p.getProjectResAssign)(n.props.projectId).then((function(t){var a=_.get(t,"data",[]);a=n.formatAssignData(a);var o=_.groupBy(a,"profile");n.setState({resourcesAssignMap:o,resourcesAssign:_.get(o,e+"[0]",{})})}))},n.formatUsRate=function(e){return Array.isArray(e)?e.map((function(e){return{profile:e.profile,cpu:(0,l.get)(e,"cpu",0),mem:(0,l.get)(e,"mem",0),gpu:(0,l.get)(e,"gpu",0),gpuMem:(0,l.get)(e,"gpuMem",0),cpuUsed:Math.max(Number((0,l.get)(e,"cpu",0))-Number((0,l.get)(e,"cpuUsable",0)),0),memUsed:Math.max(Number((0,l.get)(e,"mem",0))-Number((0,l.get)(e,"memUsable",0)),0),gpuUsed:Math.max(Number((0,l.get)(e,"gpu",0))-Number((0,l.get)(e,"gpuUsable",0)),0),gpuMemUsed:Math.max(Number((0,l.get)(e,"gpuMem",0))-Number((0,l.get)(e,"gpuMemUsable",0)),0)}})):[]},n.formatAssignData=function(e){return Array.isArray(e)?e.map((function(e){return{profile:e.profile,cpu:(0,l.get)(e,"totalResource.cpu",0),mem:(0,l.get)(e,"totalResource.memory",0),gpu:(0,l.get)(e,"totalResource.gpu",0),gpuMem:(0,l.get)(e,"totalResource.gpuMem",0),cpuUsed:(0,l.get)(e,"assignedResource.cpu",0),memUsed:(0,l.get)(e,"assignedResource.memory",0),gpuUsed:(0,l.get)(e,"assignedResource.gpu",0),gpuMemUsed:(0,l.get)(e,"assignedResource.gpuMem",0)}})):[]},n.handleEnvChange=function(e){var t=e.target.value,a=n.state,o=a.resourcesRateMap,s=a.resourcesAssignMap;n.setState({checkedValue:t,resourcesRate:_.get(o,t+"[0]",{}),resourcesAssign:_.get(s,t+"[0]",{})})},n.state={checkedValue:"dev",resourcesAssign:{},resourcesRate:{},resourcesRateMap:{},resourcesAssignMap:{}},n.items=[{title:"\u8d44\u6e90\u5206\u914d\u60c5\u51b5",key:"resourcesAssign",type:"Assign"},{title:"\u8d44\u6e90\u5229\u7528\u7387",key:"resourcesRate",type:"Rate"}],n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this;return(0,n.default)("section",{},void 0,(0,n.default)(f.RefreshButton,{intervalTime:6e4,timerName:"resourceUsageTimer",onRefresh:function(){return e.fetchData()},style:{display:"none"}}),(0,n.default)("div",{className:"section__title-wrapper"},void 0,v,(0,n.default)(h,{className:"section__item-env",value:this.state.checkedValue,onChange:this.handleEnvChange},void 0,y,b,x)),(0,n.default)("div",{className:"section__item-container"},void 0,(0,n.default)(g,{},void 0,(0,n.default)(c.default,{title:"\u8d44\u6e90\u5206\u914d\u60c5\u51b5",dataSource:this.state.resourcesAssign}),(0,n.default)(c.default,{title:"\u8d44\u6e90\u5229\u7528\u7387",dataSource:this.state.resourcesRate}))))},t}(d.default.PureComponent);t.default=C},"./src/module/homePage/components/serviceInvocations/MonitoringCharts.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=c(a("./node_modules/dayjs/dayjs.min.js")),u=a("./node_modules/recharts/es6/index.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.div.withConfig({displayName:"MonitoringCharts__MonitoringChartsWrapper",componentId:"sc-15840a7-0"})(["display:flex;flex-direction:column;width:100%;margin:0 100px 20px 0;.customized-tooltip-content{min-width:200px;background:#f5f5f5;padding:16px 24px;.tooltip-label{color:#000;font-size:14px;}ul{margin-inline-start:0;padding-inline-start:0;}li{font-size:14px;list-style-type:none;}.tooltip-value{color:#000;}}"]),f={calls:{unit:"\u6b21",domain:["auto",function(e){return 10*e/9}]},successRate:{unit:"%",domain:[0,100]},averageDelay:{unit:"ms",domain:["auto","auto"]}},m={1:"preserveEnd",2:"preserveEnd",3:3,4:"preserveEnd",5:4,6:"preserveEnd",7:1},h=["#2296F3","#31C971"," #9DDF53","#907EEC","#FFC107"," #F34871","#F09A77","#8BB09C","#E9E3BC","#8F99AC"],g=(0,n.default)(u.CartesianGrid,{strokeDasharray:"3 3"}),v=function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));return r.checkResize=function(e){var t=e[0].target,a=t.clientWidth,n=t.clientHeight;if(e.map((function(e){return""+e.oldValue})).some((function(e){return-1===e.indexOf("width: "+a+"px")||-1===e.indexOf("height: "+n+"px")}))){var o=new CustomEvent("resize",{detail:{width:a,height:n}});t.dispatchEvent(o)}},r.customTooltip=function(e){var t=e.payload,a=e.label;return(0,n.default)("div",{className:"customized-tooltip-content"},void 0,(0,n.default)("ul",{className:"list"},void 0,(0,n.default)("li",{className:"tooltip-label"},void 0,"\u65f6\u95f4\uff1a"+a),Array.isArray(t)&&t.map((function(e,t){return(0,n.default)("li",{style:{color:e.color}},"item-"+t,e.name+"\uff1a",(0,n.default)("span",{className:"tooltip-value"},void 0,""+e.value+f[r.props.currentQuota].unit))}))))},r.resize=function(){r.setState({chartsWidth:_.get(r.wrapperRef,"current.clientWidth",400)})},r.state={chartsWidth:400,chartsData:[],areaInfo:[]},r.wrapperRef=i.default.createRef(),r}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){var e=this;this.observer=new ResizeObserver(this.resize),this.observer.observe(this.wrapperRef.current),setTimeout((function(){e.setState({chartsWidth:_.get(e.wrapperRef,"current.clientWidth",400)})}))},t.prototype.componentWillUnmount=function(){this.observer.disconnect()},t.getDerivedStateFromProps=function(e){for(var t=e.dataSource,a=e.currentQuota,n=e.selectedInterval,o=[],s=Array.isArray(t)?t.map((function(e,t){return{name:e.reasoningName,color:h[t]}})):[],r=_.get(t,"[0].weekDetailList",[]).map((function(e){return e.beginDate})),i=0;i<r.length;i++){for(var d=r[i],u={name:(0,l.default)(d).format(n.dateFormat)},c=0;c<t.length;c++){var p=t[c],f=_.find(_.get(p,"weekDetailList",[]),{beginDate:d});u[p.reasoningName]=_.get(f,""+a)}o.push(u)}return{areaInfo:s,chartsData:o}},t.prototype.render=function(){var e=this.props,t=e.selectedInterval,a=e.currentQuota,o=this.state,s=o.chartsData,r=o.chartsWidth,d=o.areaInfo;return i.default.createElement(p,{ref:this.wrapperRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\homePage\\components\\serviceInvocations\\MonitoringCharts.jsx",lineNumber:151}},(0,n.default)(u.AreaChart,{width:r,height:350,data:s,margin:{top:10,right:18,left:16,bottom:0}},void 0,g,(0,n.default)(u.XAxis,{allowDecimals:!1,dataKey:"name",mirror:!1,domain:[0,t.timePeriod],interval:m[t.key],unit:"year"===t.key?"\u6708":""}),(0,n.default)(u.YAxis,{allowDecimals:!1,mirror:!0,width:60,unit:f[a].unit,domain:f[a].domain,allowDataOverflow:!0,orientation:"left"}),(0,n.default)(u.Tooltip,{content:this.customTooltip,active:!0}),d.map((function(e){return(0,n.default)(u.Area,{type:"monotone",name:e.name,dataKey:e.name,stroke:e.color,fill:"none"},e.name)}))))},t}(i.default.Component);t.default=v},"./src/module/homePage/components/serviceInvocations/ServiceInvocations.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/table/index.js")),o=v(a("./node_modules/antd/es/tooltip/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js")),l=v(a("./node_modules/antd/es/radio/index.js")),u=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=v(a("./node_modules/react/index.js")),p=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./src/redux/services/homePage.js"),m=a("./src/module/homePage/modelEnums.js"),h=v(a("./src/module/homePage/components/serviceInvocations/MonitoringCharts.jsx")),g=a("./src/components/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=m.INVOCATION_INTERVAL.getCodeAndDescList(),b=m.TIME_INTERVAL.getCodeAndDescList(),x=m.QUOTA.getCodeAndDescList(),C={hour:{statType:"hour",timePeriod:b[0].code,key:"hour",dateFormat:"HH:mm"},day:{statType:"day",timePeriod:b[3].code,key:"day",dateFormat:"HH:mm"},month:{statType:"month",timePeriod:b[4].code,key:"month",dateFormat:"MM/DD"},year:{statType:"year",timePeriod:b[5].code,key:"year",dateFormat:"MM"}},j={calls:{unit:"\u6b21",domain:["auto",function(e){return 10*e/9}]},successRate:{unit:"%",domain:[0,100]},averageDelay:{unit:"ms",domain:["auto","auto"]}},S=u.default.Option,I=l.default.Group,T=l.default.Button,w=p.default.div.withConfig({displayName:"ServiceInvocations__ManagePageDom",componentId:"sc-1w0mbf2-0"})(["display:flex;flex-direction:column;flex:1 1 auto;.table-wrapper{display:flex;flex-direction:column;width:calc(50% - 12px);}.charts-wrapper{width:calc(50% - 12px);}.charts-header{padding-right:15px;display:flex;height:32px;justify-content:space-between;align-items:center;}.monitor__title{color:rgba(0,0,0,0.45);margin-left:6px;}"]),E=p.default.div.withConfig({displayName:"ServiceInvocations__TabsDiv",componentId:"sc-1w0mbf2-1"})(["width:100%;position:relative;background-color:#ffff;padding-top:0;"]),D=p.default.div.withConfig({displayName:"ServiceInvocations__PageBody",componentId:"sc-1w0mbf2-2"})(["display:flex;position:relative;"]),M=p.default.div.withConfig({displayName:"ServiceInvocations__ModelsBox",componentId:"sc-1w0mbf2-3"})(["display:flex;width:100%;justify-content:space-between;.ant-table-placeholder{min-height:300px;}.table-header{display:flex;justify-content:flex-end;align-items:center;height:32px;margin-bottom:10px;}.header-wrapper{&:not(:first-child){margin-left:16px;}font-size:14px;color:#606266;font-weight:600;}.header-label{opacity:0.7;font-weight:500;}.ant-radio-button-wrapper{border:1px solid #2296f3;color:#2296f3;}.ant-radio-button-wrapper:not(:first-child){border-left:none;}.ant-radio-button-wrapper:first-child{border:1px solid #2296f3;}.charts-wrapper .ant-radio-button-wrapper-checked{background:#2296f3;color:#fff;}"]),k=(0,s.default)("div",{className:"section__item-title"},void 0,"\u670d\u52a1\u8c03\u7528\u60c5\u51b5\uff08TOP 10\uff09"),P=(0,s.default)("span",{className:"header-label"},void 0,"\u53d1\u751f\u8bf7\u6c42\u6b21\u6570\uff1a"),L=(0,s.default)("span",{className:"header-label"},void 0,"\u53d1\u751f\u9519\u8bef\u6b21\u6570\uff1a"),N=(0,s.default)("span",{className:"header-label"},void 0,"\u8bf7\u6c42\u6210\u529f\u7387\uff1a"),A=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fetchData=function(){n.fetchProjectSerInvokeTop(),n.fetchProjectSerInvokeTrend()},n.fetchProjectSerInvokeTop=function(){n.setState({listLoading:!0}),(0,f.getProjectSerInvokeTop)(n.props.projectId,{statType:n.searchCond.statType,env:"product",top:10}).then((function(e){var t=_.get(e,"data",{})||{};n.setState({invocationInfo:t,listLoading:!1})})).catch((function(){n.setState({listLoading:!1})}))},n.fetchProjectSerInvokeTrend=function(){n.setState({listLoading:!0}),(0,f.getProjectSerInvokeTrend)(n.props.projectId,{statType:n.searchCond.statType,env:"product",top:10}).then((function(e){var t=_.get(e,"data",[])||[];n.setState({invocationTrendInfo:t,listLoading:!1})})).catch((function(){n.setState({listLoading:!1})}))},n.handleTimeChange=function(e){var t=C[e];n.setState({selectedInterval:t,timePeriod:t.timePeriod}),n.searchCond=t,n.fetchData()},n.handleQuotaChange=function(e){n.setState({currentQuota:e.target.value})},n.state={invocationInfo:{},listLoading:!1,selectedInterval:C.day,currentQuota:x[0].code,invocationTrendInfo:[],timePeriod:b[4].code},n.searchCond=C.day,n.columns=[{title:"\u5e8f\u53f7",width:60,dataIndex:"index",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u670d\u52a1\u540d\u79f0",dataIndex:"reasoningName",ellipsis:!0,render:function(e,t){return(0,s.default)(o.default,{placement:"topLeft",title:e||t.id},void 0,e||t.id)}},{title:"\u8bf7\u6c42\u603b\u6b21\u6570",dataIndex:"calls"},{title:"\u8bf7\u6c42\u6210\u529f\u7387",ellipsis:!0,dataIndex:"successRate",render:function(e){return isNaN(e)?0:(100*e).toFixed(2)+"%"}},{title:"\u65f6\u5ef6\uff08ms\uff09",ellipsis:!0,dataIndex:"averageDelay",render:function(e){return isNaN(e)?0:Math.round(e)}}],n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.invocationInfo,o=t.selectedInterval,r=t.currentQuota,i=t.invocationTrendInfo,d=a.calls,l=void 0===d?0:d,c=a.fail,p=void 0===c?0:c,f=a.successRate,v=void 0===f?0:f,_=a.list,C=void 0===_?[]:_;return(0,s.default)("section",{},void 0,k,(0,s.default)(g.RefreshButton,{intervalTime:6e4,onRefresh:function(){e.intervalRefresh=!0,e.fetchData()},style:{display:"none"}}),(0,s.default)("div",{className:"section__item-container"},void 0,(0,s.default)(w,{},void 0,(0,s.default)(E,{},void 0,(0,s.default)(D,{},void 0,(0,s.default)(M,{},void 0,(0,s.default)("div",{className:"table-wrapper"},void 0,(0,s.default)("span",{className:"table-header"},void 0,(0,s.default)("span",{className:"header-wrapper"},void 0,P,l),(0,s.default)("span",{className:"header-wrapper"},void 0,L,p),(0,s.default)("span",{className:"header-wrapper"},void 0,N,isNaN(v)?0:(100*v).toFixed(2)+"%")),(0,s.default)(n.default,{loading:this.state.listLoading&&!this.intervalRefresh,style:{width:"100%"},dataSource:C,rowKey:"id",bordered:!0,size:"small",pagination:!1,columns:this.columns})),(0,s.default)("div",{className:"charts-wrapper"},void 0,(0,s.default)("div",{className:"charts-header"},void 0,(0,s.default)("div",{className:"monitor__title"},void 0,m.QUOTA.getDescFromValue(r),"(",j[r].unit,")"),(0,s.default)("div",{},void 0,(0,s.default)(u.default,{size:"small",style:{width:100},defaultValue:m.INVOCATION_INTERVAL.day,onChange:this.handleTimeChange},void 0,y.map((function(e){return(0,s.default)(S,{value:e.code},e.code,e.desc)}))),(0,s.default)(u.default,{size:"small",style:{marginRight:16,width:120},value:this.state.selectedInterval.timePeriod,disabled:!0},void 0,b.map((function(e){return(0,s.default)(S,{value:e.code},e.code,e.desc)}))),(0,s.default)(I,{size:"small",value:r,onChange:this.handleQuotaChange},void 0,x.map((function(e,t){return(0,s.default)(T,{value:e.code},t,e.desc)}))))),(0,s.default)(h.default,{selectedInterval:o,currentQuota:r,dataSource:i}))))))))},t}(c.default.Component);t.default=A},"./src/module/homePage/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/homePage/ProjectOverviewPage.jsx");Object.defineProperty(t,"ProjectOverviewPage",{enumerable:!0,get:function(){return r(n).default}});var o=a("./src/module/homePage/ApplicationManagePage.jsx");Object.defineProperty(t,"ApplicationManagePage",{enumerable:!0,get:function(){return r(o).default}});var s=a("./src/module/homePage/HomeIndexRedirectPage.jsx");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"HomeIndexRedirectPage",{enumerable:!0,get:function(){return r(s).default}})},"./src/module/homePage/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.TIME_INTERVAL=t.APPLICATION_STATUS=t.QUOTA=t.INVOCATION_INTERVAL=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({hour:["hour","\u5f53\u524d\u5c0f\u65f6"],day:["day","\u5f53\u524d\u5929"],month:["month","\u5f53\u524d\u6708"]}),i=(0,s.default)({"5minute":["5minute","\u63095\u5206\u949f\u7edf\u8ba1"],"10minute":["10minute","\u630910\u5206\u949f\u7edf\u8ba1"],"30minute":["30minute","\u630930\u5206\u949f\u7edf\u8ba1"],hour:["hour","\u6309\u5c0f\u65f6\u7edf\u8ba1"],day:["day","\u6309\u65e5\u7edf\u8ba1"],month:["month","\u6309\u6708\u7edf\u8ba1"]}),d=(0,s.default)({calls:["calls","\u8bf7\u6c42\u603b\u6b21\u6570"],successRate:["successRate","\u8bf7\u6c42\u6210\u529f\u7387"],averageDelay:["averageDelay","\u65f6\u5ef6"]}),l=(0,s.default)({NOTSTARTED:["NOTSTARTED","\u672a\u5f00\u59cb"],PROGRESSING:["PROGRESSING","\u8fdb\u884c\u4e2d"],COMPLETED:["COMPLETED","\u5df2\u5b8c\u6210"]});t.INVOCATION_INTERVAL=r,t.QUOTA=d,t.APPLICATION_STATUS=l,t.TIME_INTERVAL=i},"./src/module/indiset/IndiSetSelector.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/extends.js")),o=f(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js")),d=f(a("./node_modules/react/index.js")),l=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/immutable3/dist/immutable.js"),a("./node_modules/react-redux/es/index.js")),u=f(a("./src/components/selector/index.js")),c=a("./src/redux/reducers/indiSet.js"),p=a("./src/redux/selectors/indiSet.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=(0,f(a("./src/containers/toJS.jsx")).default)(u.default.IndiSelector),h=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.filterIndiList=function(e){n.props.dispatch(c.indiSetActions.filterIndiList({classifyId:e}))},n.closePanel=function(){_.delay((function(){return n.props.dispatch(c.indiSetActions.resetFilter())}),300)},n.searchIndi=function(e){n.props.dispatch(c.indiSetActions.searchIndi({text:e}))},n.state={hasError:!1},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){!0===this.props.isLoadData&&this.props.dispatch(c.indiSetActions.loadIndiListRequest({dsId:this.props.dsId,dsCycle:this.props.dsCycle}))},t.getDerivedStateFromProps=function(e){return _.get(e,"data-__field.errors",[]).length>0?{hasError:!0}:{hasError:!1}},t.prototype.render=function(){var e=this.props,t=e.indiData,a=e.classifyData,s=e.selectedItem,r=e.selectedId,i=e.selectedEnName,l=(0,o.default)(e,["indiData","classifyData","selectedItem","selectedId","selectedEnName"]);return d.default.createElement(m,(0,n.default)({indiData:t,classifyData:a,selectedItem:s,selectedId:r,selectedEnName:i,onChange:this.props.onChange,onFilter:this.filterIndiList,onSearch:this.searchIndi,onClose:this.closePanel,hasError:this.state.hasError},l,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\indiset\\IndiSetSelector.jsx",lineNumber:39}}))},t}(d.default.Component);h.defaultProps={isLoadData:!1};t.default=(0,l.connect)((function(e,t){return{indiData:(0,p.selectIndiList)(e,t.indiIds),selectedId:t.selectedId||(0,p.selectIndiIdByField)(e,t.selectedField),classifyData:(0,p.selectIndiClassify)(e,t.indiIds)}}))(h)},"./src/module/jiutian/JiutianPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.JiutianPageDom=void 0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/react/index.js")),d=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/utils/authPermit.js"),c=a("./src/components/auth/textAuth.jsx"),p=a("./src/components/index.js"),f=g(a("./src/module/jiutian/component/DataSourceAdd.jsx")),m=g(a("./src/module/jiutian/component/CodePublish.jsx")),h=g(a("./src/module/jiutian/picPreview/PicturePreviewPage.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=t.JiutianPageDom=d.default.div.withConfig({displayName:"JiutianPage__JiutianPageDom",componentId:"cyw2lh-0"})(["width:100%;padding:16px;flex-direction:column;background-color:#ffff;"]),_=(0,n.default)(f.default,{}),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.handelCancelPreview=function(){n.setState({previewPic:!1})},n.handelCancelPreviewOpen=function(e,t){n.ftpId=e,n.ftpFilePath=t,n.setState({previewPic:!0})},n.state={previewPic:!1},n.ftpId="",n.ftpFilePath="",n.iframeRef=i.default.createRef(),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(v,{},void 0,this.state.previewPic&&(0,n.default)(h.default,{fileType:2,ftpId:this.ftpId,filePath:this.ftpFilePath,onClosePreview:this.handelCancelPreview}),(0,n.default)(p.ModelConfigPanel,{title:"\u6570\u636e\u96c6"},void 0,_),(0,n.default)(p.ModelConfigPanel,{title:"\u4e5d\u5929\u8bad\u7ec3\u5e73\u53f0"},void 0,i.default.createElement("iframe",{ref:this.iframeRef,frameBorder:"0",scrolling:"yes",src:(0,c.hasText)("root.app.jiutian")+"?user_id="+(0,u.getUser)().userId+"&client_id=AI_FRONT",style:{width:"100%",height:"100%",minHeight:"500px",visibility:"visible",overflowY:"hidden"},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\jiutian\\JiutianPage.jsx",lineNumber:60}})),(0,n.default)(p.ModelConfigPanel,{title:"\u6a21\u578b\u53d1\u5e03"},void 0,(0,n.default)(m.default,{handelCancelPreviewOpen:function(t,a){e.handelCancelPreviewOpen(t,a)}})))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(y)},"./src/module/jiutian/component/CodePublish.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ConfigButtonDom=t.CodePublishDom=void 0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/antd/es/tooltip/index.js")),s=S(a("./node_modules/antd/es/auto-complete/index.js")),r=S(a("./node_modules/antd/es/row/index.js")),i=S(a("./node_modules/babel-runtime/helpers/jsx.js")),d=S(a("./node_modules/antd/es/message/index.js")),l=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=S(a("./node_modules/babel-runtime/helpers/inherits.js")),p=S(a("./node_modules/antd/es/input/index.js")),f=S(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=S(a("./node_modules/react/index.js")),h=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=S(a("./node_modules/lodash/lodash.js")),v=a("./src/utils/authPermit.js"),_=S(a("./src/redux/services/sysManager/projectManage.js")),y=a("./node_modules/@ant-design/icons/es/index.js"),b=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");S(a("./node_modules/prop-types/index.js"));var x=a("./node_modules/react-redux/es/index.js"),C=S(a("./src/redux/services/sysManager/ftpBasesManager.js")),j=a("./src/redux/services/serviceCode.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=f.default.Option,T=b.Form.Item,w=p.default.TextArea,E={width:"200px"},D={marginTop:"16px",display:"flex"},M=t.CodePublishDom=h.default.div.withConfig({displayName:"CodePublish__CodePublishDom",componentId:"sc-1kpzxam-0"})([".ant-form-inline .ant-form-item{display:flex;}.ant-input[disabled],.ant-input[disabled]:hover{z-index:10;}.ant-legacy-form-item-label,.ant-radio-wrapper{width:100px;text-align:right;}.ant-radio-wrapper{margin-right:0;margin-top:10px;}.anticon-question-circle{margin-top:12px;}.ant-form-inline .ant-form-item > .ant-legacy-form-item-label{display:flex;}.disabled .ant-input-group-addon{color:rgba(0,0,0,0.25);}.source__path-text{max-width:200px;overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;}.ant-upload-list-item .anticon-close{right:0;top:4px;}"]),k=t.ConfigButtonDom=h.default.div.withConfig({displayName:"CodePublish__ConfigButtonDom",componentId:"sc-1kpzxam-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),P=(0,i.default)(I,{value:""},void 0,"\u8bf7\u9009\u62e9"),L=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchApplications(),n.fetchData(),n.fetchServiceCodeList()},n.fetchServiceCodeList=function(){(0,j.getServiceCodeList)({paramjson:{isPage:"N",resourceFileType:"CODE"}}).then((function(e){n.setState({serviceCodeList:g.default.get(e,"data",[])})}))},n.fetchData=function(){C.default.getFtpBasesInfo({id:"i9day2"}).then((function(e){e&&(n.setState({ftpDatas:[e.data],ftpFilePath:e.data.storagePath}),n.data.ftpId=e.data.id,n.props.form.setFieldsValue({ftpId:e.data.id}))})).catch((function(e){d.default.error(g.default.get(e,"message","ftp\u8def\u5f84\u67e5\u8be2\u5931\u8d25"))}))},n.fetchApplications=function(){_.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsData:e.data})})).catch((function(e){d.default.error(e.message)}))},n.getValBlur=function(e,t){var a;if(n.data[t]=e,n.props.form.setFieldsValue(((a={})[t]=e,a)),"ftpId"===t){var o=g.default.find(n.state.ftpDatas,(function(t){return t.id===e}))||{};n.setState({ftpFilePath:o.storagePath})}},n.handelPreviewPic=function(e,t){""===e?d.default.info("\u8bf7\u9009\u62e9\u5bf9\u5e94FTP\u548c\u586b\u5199\u8def\u5f84"):(t=t.replace("{user}",(0,v.getUser)().userId),n.props.handelCancelPreviewOpen(e,t))},n.saveServiceCode=function(){event.preventDefault(),n.props.form.validateFields((function(e){if(!e){var t=n.data.ftpFileName,a=t.lastIndexOf("/");a>-1&&(n.data.ftpFilePath=t.slice(0,a+1),n.data.ftpFileName=t.slice(a+1)),n.data=g.default.omit(n.data,["fileId","fileName"]),n.setState({saveLoading:!0}),(0,j.saveServiceCodeInfo)(n.data).then((function(){n.setState({saveLoading:!1}),d.default.success("\u4fdd\u5b58\u6210\u529f!")})).catch((function(){d.default.error("\u4fdd\u5b58\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"),n.setState({saveLoading:!1})}))}}))},n.handleCodeNameChange=function(e){var t=g.default.find(n.state.serviceCodeList,{resourceName:e});t?n.setCodeInfo(t.resourceId):(n.serviceCodeData.resourceId="",n.serviceCodeData.resourceName=e,n.setState({currentVersionName:"v1"}))},n.setCodeInfo=function(e){e?(0,j.getServiceCodeInfo)(e).then((function(e){var t=g.default.get(e,"data",{})||{};n.data.resourceId=g.default.get(t,"resourceId"),n.data.resourceName=g.default.get(t,"resourceName"),n.data.resourceDesc=g.default.get(t,"resourceDesc"),n.props.form.setFieldsValue({resourceDesc:g.default.get(t,"resourceDesc")});var a=g.default.get(t,"resourceVersions"),o=g.default.get(a,"[0].versionName"),s=Number(o.replace("v","")),r="v"+(isNaN(s)?1:s+1);n.setState({currentVersionName:r})})):n.setState({currentVersionName:"v1"})},n.state={ftpId:"",filePath:"",ftpDatas:[],saveLoading:!1,applicationsData:[],serviceCodeList:[],currentVersionName:""},n.data={resourceName:"",ftpId:void 0,ftpFilePath:"",ftpFileName:"",resourceFileType:"CODE",resourceDesc:"",businessType:""},n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,d=a.ftpDatas,l=a.saveLoading,u=a.applicationsData,c=a.serviceCodeList,m=a.currentVersionName;return(0,i.default)(M,{},void 0,(0,i.default)(b.Form,{style:{marginLeft:"-35px"},layout:"inline"},void 0,(0,i.default)(r.default,{style:{display:"flex"}},void 0,(0,i.default)(T,{help:"",label:"\u5f52\u5c5e\u5e94\u7528"},void 0,t("businessType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:this.data.businessType})((0,i.default)(f.default,{optionFilterProp:"children",onChange:function(t){return e.getValBlur(t,"businessType")},style:{width:"200px"}},void 0,P,u.map((function(e){return(0,i.default)(I,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)})))))),(0,i.default)(r.default,{style:{marginTop:"16px",display:"flex"}},void 0,(0,i.default)(T,{label:"\u670d\u52a1\u4ee3\u7801\u540d\u79f0"},void 0,t("resourceName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u4ee3\u7801\u540d\u79f0"},{min:0,max:30,message:"\u670d\u52a1\u4ee3\u7801\u540d\u79f0\u4e0d\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.data.resourceName})((0,i.default)(s.default,{dropdownStyle:{width:200},style:{width:200},placeholder:"\u8bf7\u65b0\u589e\u6216\u9009\u62e9\u4ee3\u7801\u5305",onChange:function(t){return e.handleCodeNameChange(t)},filterOption:function(e,t){return t.props.children&&t.props.children.toLowerCase().indexOf(e?e.toLowerCase():"")>=0}},void 0,Array.isArray(c)&&c.map((function(e,t){return(0,i.default)(I,{value:e.resourceName},t,e.resourceName)})))),(0,i.default)(o.default,{placement:"topLeft",title:"\u9009\u62e9\u5df2\u6709\u4ee3\u7801\u5305\uff0c\u5219\u5f53\u524d\u4ee3\u7801\u5305\u65b0\u589e\u4e00\u4e2a\u7248\u672c\uff0c\u5426\u5219\u65b0\u589e\u4e00\u4e2a\u4ee3\u7801\u5305\u53ca\u7248\u672c\u3002",arrowPointAtCenter:!0},void 0,(0,i.default)(y.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"}))),(0,i.default)(T,{label:"\u7248\u672c"},void 0,m||"v1")),(0,i.default)(r.default,{style:D},void 0,(0,i.default)(T,{label:"\u63cf\u8ff0"},void 0,t("resourceDesc",{initialValue:this.data.resourceDesc})((0,i.default)(w,{autoSize:{minRows:4,maxRows:6},style:{width:"645px"},maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onBlur:function(t){return e.getValBlur(t.target.value,"resourceDesc")}})))),(0,i.default)(r.default,{style:{marginTop:16,display:"flex"}},void 0,(0,i.default)(T,{label:"NFS\u4fe1\u606f"},void 0,t("ftpId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9NFS"}],initialValue:this.data.ftpId})((0,i.default)(f.default,{style:E,onChange:function(t){return e.getValBlur(t,"ftpId")},placeholder:"\u8bf7\u9009\u62e9NFS"},void 0,d.map((function(e,t){return(0,i.default)(I,{value:e.id},t,e.storageName)}))))),(0,i.default)(T,{},void 0,t("ftpFileName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8def\u5f84\u53ca\u6587\u4ef6\u540d"},{pattern:/^\/*[^../*](?:[^/]+\/)*[^/]+$/,message:"\u8def\u5f84\u6587\u4ef6\u540d\u683c\u5f0f\u4e0d\u6b63\u786e"}],initialValue:this.data.ftpFileName})((0,i.default)(p.default,{allowClear:!0,addonBefore:this.state.ftpFilePath,style:{width:"350px"},onBlur:function(t){return e.getValBlur(t.target.value,"ftpFileName")},placeholder:"\u8def\u5f84\u53ca\u6587\u4ef6\u540d"}))),(0,i.default)(T,{},void 0,(0,i.default)(n.default,{type:"ghost",onClick:function(){e.handelPreviewPic(e.data.ftpId,e.state.ftpFilePath)}},void 0,"\u9884\u89c8")))),(0,i.default)(k,{},void 0,(0,i.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,i.default)(n.default,{onClick:function(){return e.saveServiceCode()},type:"primary",loading:l,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(m.default.PureComponent);t.default=(0,x.connect)((function(){return{}}))(b.Form.create()(L))},"./src/module/jiutian/component/DataSourceAdd.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DataSourceAddDom=void 0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/antd/es/col/index.js")),s=v(a("./node_modules/antd/es/row/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/antd/es/message/index.js")),d=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=v(a("./node_modules/babel-runtime/helpers/inherits.js")),c=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=v(a("./node_modules/react/index.js")),f=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");v(a("./node_modules/prop-types/index.js"));var h=v(a("./src/redux/services/dataSource.js")),g=a("./node_modules/react-redux/es/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=c.default.Option,y=m.Form.Item,b=t.DataSourceAddDom=f.default.div.withConfig({displayName:"DataSourceAdd__DataSourceAddDom",componentId:"sc-3cx1wf-0"})([""]),x=(0,r.default)(_,{value:""},void 0,"\u9009\u62e9\u6570\u636e\u96c6"),C=(0,r.default)(_,{value:""},void 0,"\u8bf7\u9009\u62e9\u5468\u671f"),j=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.componentDidMount=function(){n.queryDataSource()},n.queryDataSource=function(){h.default.getDataSourceListSummary({status:10}).then((function(e){e&&n.setState({dataSourceList:e.data})})).catch((function(e){i.default.error(e.message)}))},n.queryCycle=function(e){e&&h.default.getDataCyclesList({dsId:e,status:10}).then((function(e){n.setState({cycleList:e.data?e.data:[]})})).catch((function(e){i.default.error(e.message)})),n.setState({cycleList:[]})},n.getValueBlur=function(e,t){"dsId"===t&&e&&n.queryCycle(e),n.data[t]=e},n.saveData=function(){n.props.form.validateFields((function(e){e||(n.setState({saveLoading:!0}),h.default.transferData([n.data]).then((function(e){e.success?i.default.success("\u540c\u6b65\u6210\u529f!"):i.default.info(error.message),n.setState({saveLoading:!1}),n.props.form.setFieldsValue({dsId:"",dsCycle:""})})).catch((function(e){i.default.error(e.message),n.setState({saveLoading:!1}),n.props.form.setFieldsValue({dsId:"",dsCycle:""})})))}))},n.state={dataSourceList:[],cycleList:[],saveLoading:!1},n.data={dsId:"",dsCycle:"",transferFrom:"i9day"},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,i=a.dataSourceList,d=a.cycleList,l=a.saveLoading;return(0,r.default)(b,{},void 0,(0,r.default)(m.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{span:8},void 0,(0,r.default)(y,{help:"",label:"\u6570\u636e\u96c6"},void 0,t("dsId",{rules:[{required:!0}],initialValue:this.data.dsId})((0,r.default)(c.default,{showSearch:!0,onChange:function(t){return e.getValueBlur(t,"dsId")},style:{width:200},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,x,i.map((function(e,t){return(0,r.default)(_,{value:e.dsId},t,e.name)})))))),(0,r.default)(o.default,{span:8},void 0,(0,r.default)(y,{help:"",label:"\u6570\u636e\u5468\u671f"},void 0,t("dsCycle",{rules:[{required:!0}],initialValue:this.data.dsCycle})((0,r.default)(c.default,{onChange:function(t){return e.getValueBlur(t,"dsCycle")},style:{width:200}},void 0,C,d.map((function(e){return(0,r.default)(_,{value:e.dsCycle},e.id,null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")})))))),(0,r.default)(o.default,{span:4},void 0,(0,r.default)(y,{},void 0,(0,r.default)(n.default,{onClick:function(){return e.saveData()},type:"primary",loading:l,style:{borderRadius:4,width:110}},void 0,"\u540c \u6b65"))))))},t}(p.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(m.Form.create()(j))},"./src/module/jiutian/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/jiutian/JiutianPage.jsx");Object.defineProperty(t,"JiutianPage",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}})},"./src/module/jiutian/picPreview/PicturePreviewPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/antd/es/message/index.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var d=a("./node_modules/react/index.js"),l=(p(d),a("./node_modules/react-redux/es/index.js")),u=(p(a("./node_modules/prop-types/index.js")),p(a("./src/module/jiutian/picPreview/components/PicturePreview.jsx"))),c=p(a("./src/redux/services/sysManager/ftpBasesManager.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.onChangePath=function(e){c.default.getFtpBasesInfo(n.props.ftpId,n.props.filePath+(_.endsWith(n.props.filePath,"/")?"":"/")+e).then((function(e){e&&n.setState({ftpDatas:e.data,loading:!1})})).catch((function(e){n.setState({loading:!1}),o.default.error(e)}))},n.state={ftpDatas:[],loading:!1},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){var e=this;this.setState({loading:!0}),c.default.getNfsPreview(this.props.ftpId,this.props.filePath).then((function(t){t&&e.setState({ftpDatas:t.data,loading:!1})})).catch((function(t){e.setState({loading:!1}),o.default.error(t)}))},t.prototype.render=function(){var e=this.state,t=e.loading,a=e.ftpDatas;return(0,n.default)(u.default,{fileType:2,loading:t,data:a,ftpId:this.props.ftpId,onChangePath:this.onChangePath,onClosePreview:this.props.onClosePreview})},t}(d.PureComponent);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/module/jiutian/picPreview/components/PicturePreview.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/divider/index.js")),o=h(a("./node_modules/antd/es/button/index.js")),s=h(a("./node_modules/babel-runtime/helpers/jsx.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js")),l=h(a("./node_modules/antd/es/breadcrumb/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/breadcrumb/style/index.js");var u=a("./node_modules/react/index.js"),c=(h(u),h(a("./node_modules/lodash/lodash.js"))),p=a("./src/components/index.js"),f=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/polished/dist/polished.es.js")),m=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=l.default.Item,v=m.default.div.withConfig({displayName:"PicturePreview__PreviewOverlay",componentId:"sc-1glkyy6-0"})(["position:absolute;z-index:9999;background:rgba(0,0,0,0.6);top:0px;bottom:0px;left:0px;right:0px;border-radius:4px;.preview-box{margin:30px;margin-top:350px;border-radius:4px;height:480px;background:#fff;.ant-divider,.ant-divider-vertical{margin:0;}.preview-button{display:flex;justify-content:flex-end;button{margin-right:30px;}}}"]),_=(0,m.default)(l.default).withConfig({displayName:"PicturePreview__BreadcrumbDiv",componentId:"sc-1glkyy6-1"})(["padding:20px 0 10px 20px !important;.crumb-nav{color:rgba(0,0,0,0.65);&:hover{color:#1890ff;cursor:pointer;}}.crumb-nav-disable{color:#a2b0c4;}"]),y=m.default.div.withConfig({displayName:"PicturePreview__PictureList",componentId:"sc-1glkyy6-2"})([".dtqPjT{position:relative;}padding:20px;display:flex;flex-direction:row;align-items:flex-start;height:350px;overflow:auto;flex-wrap:wrap;"]),b=m.default.div.withConfig({displayName:"PicturePreview__PictureFolder",componentId:"sc-1glkyy6-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;margin-right:35px;margin-bottom:35px;.file-box{display:flex;flex-direction:column;justify-content:center;align-items:center;width:120px;height:90px;transition:all 0.2s ease-in-out;}.file-info{margin-top:15px;display:flext;justify-content:center;span{width:120px;text-align:center;",";}}.folder-text{position:relative;padding-top:12px;width:64px;.folder-text-rect1{position:absolute;top:0px;left:0px;width:60px;height:25px;z-index:3;background:#f4f4f4;border-radius:4px 4px 0 0;}.folder-text-rect2{width:68px;height:60px;background:#f4f4f4;border-radius:0 2px 4px 4px;}}.folder-icon{position:relative;padding-top:12px;width:64px;.folder-icon-rect1{position:absolute;top:0px;left:0px;width:32px;height:25px;z-index:3;background:#ffcf5c;border-radius:4px 4px 0 0;}.folder-icon-line{position:absolute;z-index:2;top:5px;left:30px;width:25px;background:#f9b552;height:1.5px;border-radius:2px 2px 0 0;}.folder-icon-rect2{width:68px;height:45px;background:#ffcf5c;border-radius:0 2px 4px 4px;}}&:hover{cursor:pointer;.file-box{transform:scale(1.4);&.pictrue{background:rgba(162,176,196,0.5);border:1px solid #ccd5e0;transform:scale(1.2);}}.file-info{color:#1890ff;}}"],(0,f.ellipsis)()),x=m.default.div.withConfig({displayName:"PicturePreview__SummaryInfo",componentId:"sc-1glkyy6-4"})(["padding:10px 20px;strong{color:#1890ff;}"]),C=(0,s.default)(n.default,{}),j=(0,s.default)(p.LoadingIndicator,{position:"relative"}),S=(0,s.default)(p.NoData,{position:"relative"}),I=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-icon"},void 0,(0,s.default)("div",{className:"folder-icon-rect1"}),(0,s.default)("div",{className:"folder-icon-line"}),(0,s.default)("div",{className:"folder-icon-rect2"}))),T=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-text"},void 0,(0,s.default)("div",{className:"folder-text-rect1"}),(0,s.default)("div",{className:"folder-text-rect2"}))),w=(0,s.default)(n.default,{}),E=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.openDir=function(e){var t=[].concat(n.state.crumbs,[e]);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.changePath=function(e){var t=n.state.crumbs.slice(0,e+1);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.state={crumbs:[]},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data;return(0,s.default)(v,{className:"animated fadeIn",onClick:this.props.onClosePreview},void 0,(0,s.default)("div",{className:"preview-box",onClick:function(e){return e.stopPropagation()}},void 0,(0,s.default)(_,{},void 0,(0,s.default)(g,{className:"crumb-nav",onClick:function(){return e.changePath(-1,"\u6839\u76ee\u5f55")}},void 0,"\u6839\u76ee\u5f55"),this.state.crumbs.map((function(t,a){return(0,s.default)(g,{className:a<e.state.crumbs.length-1?"crumb-nav":"crumb-nav-disable",onClick:function(){return e.changePath(a,t)}},t,t)}))),C,(0,s.default)(y,{},void 0,this.props.loading&&j,!this.props.loading&&c.default.isEmpty(t)&&S,!this.props.loading&&t&&c.default.isArray(t)&&t.map((function(t,a){return!0===t.isDir?(0,s.default)(b,{onClick:function(){return e.openDir(t.fileName)}},a,I,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName))):(0,s.default)(b,{},a,T,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName)))}))),w,(0,s.default)(x,{},void 0,"\u603b\u5171",(0,s.default)("strong",{},void 0,c.default.isNumber(t.length)?t.length:"--"),"\u4e2a\u6587\u4ef6\uff0c \u9ed8\u8ba4\u9884\u89c8\u5c55\u793a\u6700\u591a 10 \u4e2a\u76ee\u5f55\uff0c\u76ee\u5f55\u4e0b\u6700\u591a\u5c55\u793a 10 ","\u4e2a\u6587\u4ef6"),(0,s.default)("div",{className:"preview-button"},void 0,(0,s.default)(o.default,{onClick:this.props.onClosePreview},void 0,"\u5173\u95ed\u9884\u89c8"))))},t}(u.PureComponent);E.defaultProps={onChangePath:c.default.noop,onClosePreview:c.default.noop,data:{}},t.default=E},"./src/module/modelBase/detailPage/CodePackageList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/table/index.js")),o=x(a("./node_modules/antd/es/tooltip/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/antd/es/message/index.js")),i=x(a("./node_modules/antd/es/modal/index.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./src/utils/history.js"),m=a("./src/components/index.js"),h=a("./src/routes/routeHelper.jsx"),g=x(a("./src/redux/services/modelBase.js")),v=a("./src/module/modelBase/modelEnums.js"),_=x(a("./src/containers/DownLoad/DownloadTool.jsx")),y=x(a("./src/components/table/ColumnRender.jsx")),b=a("./src/components/auth/AuthWrapper.jsx");function x(e){return e&&e.__esModule?e:{default:e}}var C=p.default.div.withConfig({displayName:"CodePackageList__PageWrapper",componentId:"epk4vb-0"})(["height:100%;width:100%;overflow:auto;display:flex;align-items:center;.list__wrapper{width:100%;height:100%;}.ant-list-item{display:flex;justify-content:space-between;}.file__name{color:#475669;}.ant-list-split .ant-list-item{border-bottom:none;}"]),j=(0,s.default)(m.LoadingIndicator,{}),S=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleDeleteAction=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664[ "+e.packageName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){g.default.deleteCodePackages({modelId:n.props.modelId,versionId:n.props.versionId,packageId:e.packageId}).then((function(){r.default.success("\u5220\u9664[ "+e.packageName+" ]\u6210\u529f!"),n.fetchData(),t()})).catch((function(e){a(e)}))}))}})},n.componentDidMount=function(){n.fetchData()},n.fetchData=function(){n.setState({loading:!0}),g.default.getPackagesByModelId({modelId:n.props.modelId,versionId:n.props.versionId}).then((function(e){n.setState((function(){return{dataList:e.data,loading:!1}}))})).catch((function(){n.setState({loading:!1,dataList:[]})}))},n.handleExport=function(e){n.packageId=e,n.setState({showDownloadModal:!0})},n.closeDownloadModal=function(){n.setState({showDownloadModal:!1})},n.state={modelVisible:!1,dataList:[],loading:!1,showDownloadModal:!1},n.packageId="",n.columns=[{title:"\u4ee3\u7801\u5305ID",dataIndex:"packageId",ellipsis:!0,render:function(e){return(0,y.default)(e)}},{dataIndex:"predictType",title:"\u63a8\u7406\u7c7b\u578b",ellipsis:!0,render:function(e){return e=v.PACKAGE_USE_TYPE.getDescFromValue(e)||"\u5176\u4ed6",(0,y.default)(e)}},{dataIndex:"packageName",title:"\u4ee3\u7801\u5305\u7248\u672c",render:function(e){return(0,y.default)(e)}},{dataIndex:"createBy",title:"\u521b\u5efa\u4eba",ellipsis:!0,width:100,render:function(e){return(0,y.default)(e)}},{dataIndex:"createAt",title:"\u521b\u5efa\u65f6\u95f4",width:150,ellipsis:!0,render:function(e){return(0,y.default)(e)}},{title:"\u72b6\u6001",dataIndex:"status",render:function(e,t){return"failed"!==e?(0,s.default)(m.StateLabel,{source:"codePackage",code:e}):(0,s.default)(o.default,{placement:"topLeft",title:t.errorMsg},void 0,(0,s.default)("div",{},void 0,(0,s.default)(m.StateLabel,{source:"codePackage",code:e})))}},{title:"\u64cd\u4f5c",key:"modelVid",width:240,render:function(e,t){var a=[];return"created"===t.status&&(t.predictType===v.PACKAGE_USE_TYPE.ONLINE_REASONING&&a.push({handleName:"\u6784\u5efa\u63a8\u7406\u955c\u50cf",handleAction:function(){(0,f.navigateTo)(h.modelMirrorUrl.create("build",n.props.modelId,t.packageId))}}),(0,b.isAuth)("MODEL_LIBRARY.RELEASE_MODEL_LIBRARY_TEST")&&a.push({handleName:"\u53d1\u5e03\u81f3\u6d4b\u8bd5",handleAction:function(){"streaming_reasoning"===t.predictType?(0,f.navigateTo)(h.flowTaskUrl.publish("test",n.props.modelId,t.packageId,n.props.applicationId)):"online_reasoning"===t.predictType?(0,f.navigateTo)(h.modelServiceUrl.modelPublish("test",n.props.modelId,t.packageId)):(0,f.navigateTo)(h.inferenceUrl.modelPublish("test",n.props.modelId,t.packageId,n.props.applicationId))}}),(0,b.isAuth)("MODEL_LIBRARY.RELEASE_MODEL_LIBRARY_PRODUCT")&&a.push({handleName:"\u53d1\u5e03\u81f3\u751f\u4ea7",handleAction:function(){"streaming_reasoning"===t.predictType?(0,f.navigateTo)(h.flowTaskUrl.publish("product",n.props.modelId,t.packageId,n.props.applicationId)):"online_reasoning"===t.predictType?(0,f.navigateTo)(h.modelServiceUrl.modelPublish("product",n.props.modelId,t.packageId)):(0,f.navigateTo)(h.inferenceUrl.modelPublish("product",n.props.modelId,t.packageId,n.props.applicationId))}}),a.push({handleName:"\u5bfc\u51fa",handleAction:function(){n.handleExport(t.packageId)}})),"failed"!==t.status&&"created"!==t.status||a.push({handleName:"\u5220\u9664",handleAction:function(){n.handleDeleteAction(t)}}),(0,s.default)(m.ListButtons,{buttons:a,maxShowNum:2})}}],n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this.state,t=e.dataList,a=e.loading,o=e.showDownloadModal;return(0,s.default)(C,{},void 0,(0,s.default)(i.default,{title:"\u5bfc\u51fa",style:{top:20},width:1200,visible:o,onOk:this.closeDownloadModal,onCancel:this.closeDownloadModal,footer:null,destroyOnClose:!0},void 0,(0,s.default)(_.default,{downTypeArray:["LOCAL","FTP"],saveParams:{resourceId:this.props.versionId,modelId:this.props.modelId,versionId:this.props.versionId,packageId:this.packageId},onCancel:this.closeDownloadModal,tableParams:{resourceId:this.props.versionId},taskType:"export-codePackage"})),a&&j,!a&&(0,s.default)(n.default,{dataSource:t,rowKey:"packageId",bordered:!0,pagination:!0,columns:this.columns}))},t}(c.default.Component);t.default=S},"./src/module/modelBase/detailPage/FilePreview.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./src/components/index.js"),u=c(a("./src/redux/services/modelVersion.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.div.withConfig({displayName:"FilePreview__PageWrapper",componentId:"sc-8mj5tg-0"})(["height:100%;width:100%;overflow:auto;display:flex;flex-grow:1;.doc__wrapper{min-height:300px;background:#f0f7ff;}"]),f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){var e=n.props,t=e.modelId,a=e.versionId,o=e.fileId;u.default.getModelDocContent(t,a,o).then((function(e){return n.setState({docContent:e.data})}))},n.state={docContent:""},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){return(0,n.default)(p,{},void 0,(0,n.default)(l.ModelConfigPanel,{title:"\u6587\u4ef6\u9884\u89c8",style:{flexGrow:1}},void 0,(0,n.default)("div",{className:"doc__wrapper"},void 0,(0,n.default)("pre",{},void 0,this.state.docContent))))},t}(i.default.Component);t.default=f},"./src/module/modelBase/detailPage/ModelBaseDetailPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=D(a("./node_modules/antd/es/modal/index.js")),o=D(a("./node_modules/antd/es/table/index.js")),s=D(a("./node_modules/antd/es/tooltip/index.js")),r=D(a("./node_modules/babel-runtime/helpers/extends.js")),i=D(a("./node_modules/antd/es/row/index.js")),d=D(a("./node_modules/babel-runtime/helpers/jsx.js")),l=D(a("./node_modules/antd/es/message/index.js")),u=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=D(a("./node_modules/babel-runtime/helpers/inherits.js")),f=D(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var m=D(a("./node_modules/react/index.js")),h=D(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(D(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),v=D(a("./src/module/modelBase/detailPage/ModelBaseInfo.jsx")),_=D(a("./src/redux/services/modelVersion.js")),y=a("./src/components/index.js"),b=D(a("./src/module/modelBase/detailPage/FilePreview.jsx")),x=a("./src/module/modelBase/modelEnums.js"),C=D(a("./src/module/modelBase/detailPage/CodePackageList.jsx")),j=D(a("./src/redux/services/codeService.js")),S=D(a("./src/module/modelBase/editPage/FileTreeTable.jsx")),I=a("./src/utils/history.js"),T=a("./src/routes/routeHelper.jsx"),w=D(a("./src/containers/DownLoad/DownloadTool.jsx")),E=D(a("./node_modules/lodash/lodash.js"));function D(e){return e&&e.__esModule?e:{default:e}}var M=f.default.Item,k={marginBottom:0,marginRight:10},P=h.default.div.withConfig({displayName:"ModelBaseDetailPage__ModelBaseDetailPageWrapper",componentId:"sc-19kzm3d-0"})(["width:100%;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.view__section{border-radius:4px;width:100%;padding-right:20px;}"]),L=(0,d.default)(y.LoadingIndicator,{position:"relative"}),N=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));n.handleModelOpen=function(e){n.setState({modelVisible:!0,dataInfo:e})},n.handleCancel=function(){n.setState({modelVisible:!1})},n.fetchModelTrees=function(){n.anbModelId&&(n.setState({modelVisible:!0,modelType:"interfaceDep"}),j.default.getModelTrees(n.anbModelId).then((function(e){var t=e.data,a=["data","log","config","predict_code","result","other"];t=t.filter((function(e){return e.path&&a.some((function(t){return e.path.includes(t)}))})),n.setState({modelFiles:t})})))},n.fetchData=function(e){n.versionId=e,n.setState({loading:!0}),_.default.getModelVersionList({modelId:n.modelId,dataType:[],publishFrom:[],search:"",sortBy:"CREATE_AT.DESC"}).then((function(t){n.setState({versionList:t.data?t.data:[]}),_.default.getVersionsModelInfo(n.modelId,e||null).then((function(e){for(var t=e.data,a=E.default.get(t,"versionInfo.modelFiles",[])||[],o=[],s=0;s<a.length;s++)a[s].fileType===x.FILE_TYPE.MODEL?o.unshift(a[s]):o.push(a[s]);n.setState({modelBaseInfo:t,loading:!1,versionFiles:o})})).catch((function(e){throw n.setState({loading:!1}),e}))})).catch((function(e){n.setState({versionList:[]}),l.default.error(e.message)}))},n.openModalVisible=function(e){n.setState({modalVisible:!0,allDataInfo:[].concat(e)})},n.getModelFileInfo=function(e){if(!e)return(0,d.default)("span",{},void 0,"\u65e0");var t=n.readNodes(e);return t&&t.length>0?t.length>1?(0,d.default)(i.default,{},void 0,(0,d.default)(M,{label:"\u6a21\u578b\u6587\u4ef6",style:k},void 0,t[0].name," ",t[0].size+"byte",(0,d.default)("span",{style:{marginLeft:15}},void 0,(0,d.default)("a",{href:"javascript:;",onClick:function(){n.openModalVisible(t)}},void 0,"\u66f4\u591a")),(0,d.default)("span",{style:{marginLeft:15}},void 0,(0,d.default)("a",{href:"javascript:;",onClick:function(){n.handleExport(t)}},void 0,"\u4e0b\u8f7d")))):(0,d.default)(i.default,{},void 0,(0,d.default)(M,{label:"\u6a21\u578b\u6587\u4ef6",style:k},void 0,t[0].name," ",t[0].size+"byte",(0,d.default)("span",{style:{marginLeft:15}},void 0,(0,d.default)("a",{href:"javascript:;",onClick:function(){n.handleExport(t)}},void 0,"\u4e0b\u8f7d")))):(0,d.default)("span",{},void 0,"\u65e0")},n.handleExport=function(e){n.fileArray=e,n.setState({showDownloadModal:!0})},n.getModelOtherFileInfo=function(e){return(0,d.default)(i.default,{},void 0,(0,d.default)(M,{label:x.FILE_TYPE.getDescFromValue(e.fileType),style:k},void 0,e.fileName))},n.readNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=e,o=Array.isArray(a),s=0;for(a=o?a:a[Symbol.iterator]();;){var r;if(o){if(s>=a.length)break;r=a[s++]}else{if((s=a.next()).done)break;r=s.value}var i=r;if("file"===i.type){var d={name:i.name,size:i.size};t.push(d)}i.children&&i.children.length&&n.readNodes(i.children,t)}return t},n.callModalVisible=function(){n.setState({modalVisible:!1})},n.interfaceDepConfirm=function(){var e=[];Object.keys(n.importValidateFuncs).map((function(t){var a=n.importValidateFuncs[t];if(E.default.isFunction(a)){var o=a.call();e=o.moduleData}})),n.setState({confirmLoading:!0}),_.default.importModelInterface(n.modelId,n.versionId,(0,r.default)({publishSourceId:n.anbModelId},E.default.get(e,"modelFiles[0]",{}))).then((function(){l.default.success("\u4fdd\u5b58\u6267\u884c\u6210\u529f\uff01"),n.setState({confirmLoading:!1,modelVisible:!1}),(0,I.navigateTo)(T.modelBaseUrl.viewModel(n.modelId,n.versionId))})).catch((function(e){throw n.setState({confirmLoading:!1}),e}))},n.setImportValidateFunc=function(e,t){n.importValidateFuncs[e]=t},n.isNullValue=function(e){var t="--";return e&&""!==e&&(t=e),t},n.closeDownloadModal=function(){n.setState({showDownloadModal:!1})},n.modelId=E.default.get(a.match.params,"modelId"),n.versionId=E.default.get(a.match.params,"versionId");var o=(0,I.parseParms)(a.location);return n.codeType=E.default.get(o,"codeType"),n.anbModelId=E.default.get(o,"projectId"),n.state={modelBaseInfo:{},versionList:[],modelVisible:!1,modelType:"",confirmLoading:!1,modalVisible:!1,allDataInfo:[],dataInfo:{},modelFiles:[],loading:!0,versionFiles:[],showDownloadModal:!1},n.columns2=[{title:"\u6587\u4ef6\u540d\u79f0",dataIndex:"name"},{dataIndex:"size",title:"\u6587\u4ef6\u5927\u5c0f",render:function(e){return(0,d.default)("span",{},void 0,e+"byte")}}],n.columns=[{title:"\u6587\u4ef6\u540d\u79f0",width:"150px",dataIndex:"name",ellipsis:!0,render:function(e,t){return(0,d.default)(s.default,{placement:"topLeft",title:e},void 0,x.FILE_TYPE.INTERFACE===t.fileType&&"file"===t.type?(0,d.default)("a",{title:"\u9884\u89c8",href:"javascript:;",onClick:function(){return n.handleModelOpen(t)}},void 0,e):e)}},{title:"\u6587\u4ef6\u5206\u7c7b",dataIndex:"type",width:"90px",render:function(e){var t={file:"\u6587\u4ef6",directory:"\u76ee\u5f55"};return t[e]?t[e]:"\u672a\u77e5"}},{title:"\u6587\u4ef6\u7c7b\u578b",dataIndex:"fileType",width:"90px",render:function(e){return x.FILE_TYPE.getDescFromValue(e)}},{title:"\u6587\u4ef6\u5927\u5c0f",width:"110px",dataIndex:"size",render:function(e){return e?e+" byte":"--"}}],n.importValidateFuncs={},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.versionId),this.codeType&&this.fetchModelTrees()},t.prototype.render=function(){var e=this,t={width:"100%",marginTop:15},a=this.state,s=a.modalVisible,r=a.allDataInfo,l=a.loading,u=a.modelBaseInfo,c=a.versionFiles,p=a.showDownloadModal;return(0,d.default)(P,{},void 0,(0,d.default)(y.ModalView,{viewType:"view",modalTitle:"\u66f4\u591a\u6570\u636e",onCancelType:!1,width:800,callVisible:this.callModalVisible,modalVisible:s,comp:(0,d.default)(o.default,{dataSource:r,rowKey:"name",bordered:!0,pagination:!1,columns:this.columns2})}),(0,d.default)(n.default,{title:"\u63a5\u53e3\u6587\u4ef6",width:"80%",style:{top:"20px"},bodyStyle:{height:"450px"},visible:this.state.modelVisible,onCancel:this.handleCancel,confirmLoading:this.state.confirmLoading,onOk:"interfaceDep"===this.state.modelType?this.interfaceDepConfirm:this.handleCancel},void 0,"interfaceDep"===this.state.modelType?(0,d.default)("div",{style:{height:400,overflow:"auto"}},void 0,(0,d.default)(S.default,{setImportValidateFunc:this.setImportValidateFunc,modelFiles:this.state.modelFiles,requiredFolder:"predict_code",fileType:"online-predict"===this.codeType?"online_reasoning_code":"offline_reasoning_code"})):(0,d.default)(b.default,{fileId:this.state.dataInfo.fileId?this.state.dataInfo.fileId:null,versionId:this.versionId,modelId:this.modelId},E.default.uniqueId())),(0,d.default)(n.default,{title:"\u5bfc\u51fa",style:{top:20},width:1200,visible:p,onOk:this.closeDownloadModal,onCancel:this.closeDownloadModal,footer:null,destroyOnClose:!0},void 0,(0,d.default)(w.default,{downTypeArray:["LOCAL","FTP"],saveParams:{resourceId:this.versionId,modelId:this.modelId,versionId:this.versionId},onCancel:this.closeDownloadModal,tableParams:{resourceId:this.versionId},taskType:"export-pkl"})),l&&(0,d.default)("div",{style:{height:100}},void 0,L),!l&&(0,d.default)("div",{},void 0,(0,d.default)(v.default,{modelBaseInfo:u,fetchData:function(t){e.fetchData(t)},versionId:this.versionId,versionList:this.state.versionList,onRefresh:this.handleRefresh}),(0,d.default)("div",{style:{display:"flex"}},void 0,(0,d.default)(y.ModelConfigPanel,{title:"\u8fd0\u884c\u73af\u5883",hintMsg:E.default.get(u,"versionInfo.publishFrom")===x.PUBLISH_FROM.WIZARD||E.default.get(u,"versionInfo.publishFrom")===x.PUBLISH_FROM.CODE?"\u8bad\u7ec3\u955c\u50cf":"\u57fa\u7840\u955c\u50cf",style:t},void 0,(0,d.default)(i.default,{},void 0,(0,d.default)(M,{label:"\u8bed\u8a00",style:k},void 0,this.isNullValue(E.default.get(u,"versionInfo.codeLanguage"))),(0,d.default)(M,{label:"\u5f15\u64ce",style:k},void 0,this.isNullValue(E.default.get(u,"versionInfo.runEngine"))),(0,d.default)(M,{label:"\u6846\u67b6",style:k},void 0,this.isNullValue(E.default.get(u,"versionInfo.useFramework")))),(0,d.default)(i.default,{},void 0,(0,d.default)(M,{label:"\u955c\u50cf\u540d\u79f0",style:k},void 0,this.isNullValue(E.default.get(u,"versionInfo.mirrorShowName"))),(0,d.default)(M,{label:"\u955c\u50cf\u7248\u672c",style:k},void 0,this.isNullValue(E.default.get(u,"versionInfo.mirrorVersionName"))))),(0,d.default)(y.ModelConfigPanel,{title:"\u6a21\u578b\u6587\u4ef6",style:t},void 0,c.map((function(t){if(t.fileType===x.FILE_TYPE.MODEL)return e.getModelFileInfo(t.fileStruct)})))),(0,d.default)(y.ModelConfigPanel,{title:"\u53ef\u90e8\u7f72\u4ee3\u7801\u5305",style:t},void 0,(0,d.default)(C.default,{modelId:this.modelId,versionId:this.versionId,applicationId:E.default.get(u,"modelInfo.busiType")}))))},t}(m.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(N)},"./src/module/modelBase/detailPage/ModelBaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/tooltip/index.js")),o=w(a("./node_modules/antd/es/spin/index.js")),s=w(a("./node_modules/babel-runtime/helpers/jsx.js")),r=w(a("./node_modules/antd/es/message/index.js")),i=w(a("./node_modules/antd/es/modal/index.js")),d=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=w(a("./node_modules/babel-runtime/helpers/inherits.js")),c=w(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=w(a("./node_modules/react/index.js")),f=(w(a("./node_modules/prop-types/index.js")),w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=w(a("./node_modules/dayjs/dayjs.min.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./src/utils/history.js"),v=w(a("./src/redux/services/modelBase.js")),y=a("./src/components/index.js"),b=w(a("./src/redux/services/modelVersion.js")),x=a("./src/routes/routeHelper.jsx"),C=a("./src/module/modelBase/modelEnums.js"),j=w(a("./src/components/button/index.js")),S=a("./src/module/modelBase/utils.js"),I=w(a("./src/module/modelBase/detailPage/components/DevelopmentInterface.jsx")),T=w(a("./src/module/modelBase/detailPage/components/ImportInterface.jsx"));function w(e){return e&&e.__esModule?e:{default:e}}var E=j.default.GhostButton,D=c.default.Option,M=f.default.div.withConfig({displayName:"ModelBaseInfo__DetailBaseInfoWrapper",componentId:"sc-1hzlmf4-0"})(["display:flex;border:1px solid #eee;padding:20px;.base__info-status2{width:65%;text-align:right;}.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:80%;margin-right:24px;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{width:120px;font-size:18px;font-weight:700;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{min-width:200px;display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}.item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"]),k=(0,s.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),P=(0,s.default)(h.LoadingOutlined,{className:"refresh-icon"}),L=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleOperation=function(e){switch(e.key){case"import":case"development":n.openModal(e.key);break;case"export":n.exportOpen(_.get(n.props.modelBaseInfo,"modelInfo.modelId"),n.props.versionId);break;case"delete":n.handleDeleteAction(e.key)}},n.openModal=function(e){n.setState({modalType:e,modalVisible:!0})},n.callVisible=function(e){n.setState({modalVisible:!1}),e&&n.props.fetchData(n.props.versionId)},n.handleDeleteAction=function(){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u6b64\u6a21\u578b\u7248\u672c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e,t){b.default.deleteVersion(n.props.modelBaseInfo.modelId,n.props.modelBaseInfo.versionInfo.versionId).then((function(t){1===_.get(t,"data.effectCount")?(r.default.success("\u5220\u9664\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,g.navigateTo)(x.modelBaseUrl.modelBaseManage())}),2e3),e()):(r.default.success("\u5220\u9664\u6210\u529f\uff01"),n.setState({handleLoading:!1}),v.default.getNewVersionByModelId({modelId:n.props.modelBaseInfo.modelInfo.modelId,modelName:n.props.modelBaseInfo.modelInfo.modelName}).then((function(t){n.setVersionId(t.data.versionId),(0,g.navigateTo)(x.modelBaseUrl.viewModel(t.data.modelId,t.data.versionId)),e()})))})).catch((function(e){t(e)}))}))}})},n.setVersionId=function(e){n.props.fetchData(e),n.setState({versionId:e})},n.exportOpen=function(e,t){b.default.exportVersionFile(e,t)},n.handleRefresh=function(){n.props.fetchData(n.props.versionId)},n.state={handleLoading:!1,versionId:a.versionId},n.items=[{key:"modelInfo.busiType_name",name:"\u5f52\u5c5e\u5e94\u7528",type:"text"},{key:"versionInfo.versionName",name:"\u7248\u672c\u53f7",type:"text"},{key:"versionInfo.publishFrom",name:"\u7248\u672c\u6765\u6e90",type:"map",mapObj:C.PUBLISH_FROM},{key:"versionInfo.createAt",name:"\u521b\u5efa\u65f6\u95f4",type:"date"},{key:"versionInfo.createBy",name:"\u521b\u5efa\u4eba",type:"text"},{key:"versionInfo.versionDesc",name:"\u7248\u672c\u63cf\u8ff0",type:"text"}],n.optsBtn=[{key:"import",text:"\u5bfc\u5165\u63a8\u7406\u63a5\u53e3",action:"REASSIGN"},{key:"delete",text:"\u5220\u9664\u7248\u672c",action:"DELETE"}],n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.handleLoading,r=t.versionId,i=this.props,d=i.modelBaseInfo,l=i.versionList,u=(0,S.getModelOptPermission)(_.get(d,"versionInfo.versionStatus"),_.get(d,"versionInfo.publishFrom"),_.get(d,"versionInfo.modelFiles"),_.get(d,"versionInfo.modelType"),_.get(d,"versionInfo.modelDeployType")),p=this.state.modalType,f=function(e){return{up:"\u4e0a\u7ebf",development:"\u5f00\u53d1\u63a8\u7406\u63a5\u53e3",import:"\u5bfc\u5165\u63a8\u7406\u63a5\u53e3"}[e]}(p),g=["import"].includes(p)?1200:700;return(0,s.default)(o.default,{tip:"\u5904\u7406\u4e2d\u8bf7\u7a0d\u540e...",spinning:a},void 0,(0,s.default)(y.ModalView,{modalTitle:f,closable:!0,width:g,centered:!0,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:"development"===p?(0,s.default)(I.default,{closeModal:e.callVisible,modelId:_.get(d,"modelInfo.modelId"),versionId:e.props.versionId,appId:_.get(d,"modelInfo.busiType")}):"import"===p?(0,s.default)(T.default,{closeModal:e.callVisible,modelId:_.get(d,"modelInfo.modelId"),versionId:e.props.versionId}):void 0}),(0,s.default)(M,{},void 0,(0,s.default)("div",{className:"left__content-wrapper"},void 0,(0,s.default)("div",{className:"left__top-wrapper"},void 0,(0,s.default)("div",{className:"left__top-line1"},void 0,(0,s.default)("div",{className:"base__info-name top__line1-section"},void 0,(0,s.default)(n.default,{placement:"topLeft",title:_.get(d,"modelInfo.modelName","--")},void 0,_.get(d,"modelInfo.modelName","--"))),(0,s.default)("div",{className:"base__info-status top__line1-section"},void 0,6===_.get(d,"versionInfo.versionStatus")?(0,s.default)(n.default,{placement:"topLeft",title:_.get(d,"versionInfo.additionalInfo.ERROR_MES")},void 0,(0,s.default)("span",{},void 0,(0,s.default)(y.StateLabel,{source:"modelVersion",code:_.get(d,"versionInfo.versionStatus")}))):(0,s.default)(y.StateLabel,{source:"modelVersion",code:_.get(d,"versionInfo.versionStatus")})),(0,s.default)("div",{className:"base__info-status2 top__line1-section"},void 0,"\u5207\u6362\u7248\u672c\uff1a",(0,s.default)(c.default,{placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",optionFilterProp:"children",onChange:function(t){return e.setVersionId(t)},style:{width:"100px"},value:r},void 0,l.map((function(e,t){return(0,s.default)(D,{value:e.versionId},t,e.versionName)}))))),(0,s.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",_.get(d,"modelInfo.modelDesc")," ")),(0,s.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(e){return"map"===e.type?(0,s.default)("div",{className:"item__wrapper"},e.key,(0,s.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,s.default)("span",{className:"item-text"},void 0,e.mapObj&&e.mapObj.getDescFromValue(_.get(d,e.key)))):"date"===e.type?(0,s.default)("div",{className:"item__wrapper"},e.key,(0,s.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,s.default)("span",{className:"item-text"},void 0,_.get(d,e.key)?(0,m.default)(_.get(d,e.key)).format("YYYY-MM-DD HH:mm:ss"):"--")):(0,s.default)(n.default,{title:_.get(d,e.key)},e.key,(0,s.default)("div",{className:"item__wrapper"},void 0,(0,s.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,s.default)("span",{className:"item-text"},void 0,_.get(d,e.key))))})))),(0,s.default)("div",{className:"right__content-wrapper"},void 0,k,this.props.refreshing?P:(0,s.default)(n.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,s.default)(h.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})),(0,s.default)("div",{className:"right__bottom-wrapper"},void 0,this.optsBtn.map((function(t){return u[t.key]&&(0,s.default)(E,{action:_.upperCase(t.action,""),width:"20",txt:t.text,onClick:function(){return e.handleOperation(t)},className:"fn-left opt-btn"},t.key)}))))))},t}(p.default.Component);t.default=L},"./src/module/modelBase/detailPage/ModelBaseInfoDetail.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/col/index.js")),o=b(a("./node_modules/antd/es/row/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/antd/es/message/index.js")),i=b(a("./node_modules/babel-runtime/helpers/extends.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=b(a("./node_modules/react/index.js")),f=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=b(a("./src/redux/services/modelBase.js")),y=a("./src/components/index.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=g.Form.Item,C=c.default.TextArea,j=f.default.div.withConfig({displayName:"ModelBaseInfoDetail__DetailInfoWrapper",componentId:"sc-139kti2-0"})(["background:#fff;padding:20px;.edit__icon{margin-left:10px;}.display__value{word-break:break-word;}.ant-col-8{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:40%;}"]),S={labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:8}}},I=(0,s.default)(y.LoadingIndicator,{position:"relative"}),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleChangeNameStatus=function(){n.setState((function(e){return{isModifyName:!e.isModifyName}}))},n.handleChangeDescStatus=function(){n.setState((function(e){return{isModifyDesc:!e.isModifyDesc}}))},n.handleOnChange=function(e,t){var a=n.state.modelBaseInfo;"modelName"===e?(a.modelName=t,n.setState({modelBaseInfo:(0,i.default)({},a)})):(a.modelDesc=t,n.setState({modelBaseInfo:(0,i.default)({},a)}))},n.handleSaveBasicInfo=function(e,t){if(""===t||null===t)r.default.info("\u8bf7\u586b\u5199\u5bf9\u5e94\u4fe1\u606f");else{var a=n.state.modelBaseInfo;"modelName"===e&&t.length>30?r.default.info("\u6a21\u578b\u540d\u79f0\u4e0d\u8d85\u8fc730\u4e2a\u5b57\u7b26"):("modelName"===e?(a.modelName=t,n.setState({modelBaseInfo:(0,i.default)({},a),isModifyName:!1})):(a.modelDesc=t,n.setState({modelBaseInfo:(0,i.default)({},a),isModifyDesc:!1})),v.default.patchModelBase(a).then((function(e){e&&r.default.success("\u4fee\u6539\u6210\u529f\uff01")})).catch((function(e){r.default.error(e.message)})))}},n.state={modelBaseInfo:{},loading:!0,isModifyName:!1,isModifyDesc:!1},n.modelId=_.get(a.match,"params.modelId",null),n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this;v.default.getModelBaseInfo(this.modelId).then((function(t){t&&e.setState({modelBaseInfo:t.data,loading:!1})})).catch((function(t){e.setState({loading:!1}),r.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.modelBaseInfo,r=t.loading,d=t.isModifyName,l=t.isModifyDesc;return(0,s.default)("div",{style:{width:"100%"}},void 0,(0,s.default)(j,{},void 0,(0,s.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,r&&I,!r&&p.default.createElement(g.Form,(0,i.default)({},S,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelBase\\detailPage\\ModelBaseInfoDetail.jsx",lineNumber:132}}),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:10},void 0,(0,s.default)(x,{label:"\u6a21\u578b\u540d\u79f0"},void 0,d?(0,s.default)(c.default,{width:150,onChange:function(t){return e.handleOnChange("modelName",t.target.value)},value:a.modelName,onBlur:function(t){return e.handleSaveBasicInfo("modelName",t.target.value)}}):(0,s.default)("div",{style:{float:"left",width:200},className:"display__value"},void 0,(0,s.default)("div",{style:{float:"left",width:170}},void 0,(0,s.default)(y.LineWrap,{title:_.get(a,"modelName",""),lineClampNum:1})),(0,s.default)("div",{style:{float:"right"}},void 0,(0,s.default)(h.EditOutlined,{className:"edit__icon",onClick:this.handleChangeNameStatus}))))),(0,s.default)(n.default,{span:8},void 0,(0,s.default)(x,{label:"\u521b\u5efa\u4eba"},void 0,_.get(a,"createBy","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:10},void 0,(0,s.default)(x,{label:"\u521b\u5efa\u65f6\u95f4"},void 0,_.get(a,"createAt","--"))),(0,s.default)(n.default,{span:10},void 0,(0,s.default)(x,{label:"\u4fee\u6539\u65f6\u95f4"},void 0,_.get(a,"updateAt","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:10},void 0,(0,s.default)(x,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,_.get(a,"busiType_name","--")))),(0,s.default)(o.default,{style:{marginLeft:"-2.3%"}},void 0,(0,s.default)(n.default,{span:24},void 0,(0,s.default)(x,{labelCol:{span:2},wrapperCol:{sm:20},label:"\u6a21\u578b\u63cf\u8ff0"},void 0,l?(0,s.default)(C,{autosize:{minRows:5,maxRows:12},style:{width:850,marginRight:10,min:0,max:550,marginTop:10},value:a.modelDesc,onChange:function(t){return e.handleOnChange("desc",t.target.value)},onBlur:function(t){return e.handleSaveBasicInfo("desc",t.target.value)},rows:8}):(0,s.default)("div",{style:{wordBreak:"break-all",wordWrap:"break-word",maxWidth:850}},void 0,_.get(a,"modelDesc",""),(0,s.default)(h.EditOutlined,{className:"edit__icon",onClick:this.handleChangeDescStatus})))))))))},t}(p.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(T)},"./src/module/modelBase/detailPage/components/DevelopmentInterface.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js")),d=g(a("./node_modules/antd/es/form/index.js")),l=g(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var u=g(a("./node_modules/react/index.js")),c=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(a("./node_modules/prop-types/index.js"),a("./src/components/index.js")),f=a("./src/module/modelBase/modelEnums.js"),m=g(a("./src/redux/services/codeService.js")),h=a("./src/utils/authPermit.js");a("./node_modules/any-promise/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=l.default.Group,y=f.INTERFACE_TYPE.getValueAndDescList(),b=c.default.div.withConfig({displayName:"DevelopmentInterface__Wrapper",componentId:"f7qejf-0"})(["display:flex;flex-direction:column;.ant-form{margin-left:32px;margin-bottom:20px;}"]),x=c.default.div.withConfig({displayName:"DevelopmentInterface__ButtonDom",componentId:"f7qejf-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),C=d.default.Item,j=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.submitConfirm=function(){n.setState({confirmLoading:!0});var e="ONLINE"===n.state.interfaceType?"PREDICT":"OFFLINE_PREDICT";m.default.jumpCodeModelByTemplate({modelId:n.props.modelId,modelVersionId:n.props.versionId,codeType:e,projectId:n.projectId,businessType:n.props.appId}).then((function(t){var a=_.get(t,"data");a=a+"&appId="+n.props.appId,window.open(a,n.props.versionId+"-"+n.projectId+"-"+e),n.setState({jumpCodeLoading:!1,confirmLoading:!1})})).catch((function(e){throw n.setState({confirmLoading:!1}),e}))},n.handleParamsChange=function(e){n.setState({interfaceType:e.target.value})},n.state={interfaceType:y[0].code};var o=(0,h.getCurrentContext)(),i=o.role,d=o.id;return"PROJECT"===i&&(n.projectId=d),n.formRef=u.default.createRef(),n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this;return(0,o.default)(b,{},void 0,(0,o.default)(p.ModelConfigPanel,{title:"\u5f00\u53d1\u63a8\u7406\u63a5\u53e3"},void 0,u.default.createElement(d.default,{name:"onlineRange",initialValues:{interfaceType:this.state.interfaceType},ref:this.formRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelBase\\detailPage\\components\\DevelopmentInterface.jsx",lineNumber:84}},(0,o.default)(C,{name:"interfaceType",label:""},void 0,(0,o.default)(v,{onChange:this.handleParamsChange},void 0,y.map((function(e){return(0,o.default)(l.default,{value:e.code},e.code,"\u5f00\u53d1",e.desc)})))))),(0,o.default)(x,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,o.default)(n.default,{loading:this.state.confirmLoading,onClick:this.submitConfirm,style:{marginLeft:10},type:"primary"},void 0,"\u786e\u5b9a")))},t}(u.default.Component);t.default=j},"./src/module/modelBase/detailPage/components/ImportInterface.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/antd/es/upload/index.js")),s=I(a("./node_modules/antd/es/row/index.js")),r=I(a("./node_modules/babel-runtime/helpers/jsx.js")),i=I(a("./node_modules/babel-runtime/helpers/extends.js")),d=I(a("./node_modules/antd/es/message/index.js")),l=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=I(a("./node_modules/babel-runtime/helpers/inherits.js")),p=I(a("./node_modules/antd/es/input/index.js")),f=I(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=I(a("./node_modules/react/index.js")),h=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(a("./node_modules/prop-types/index.js"),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var v=a("./src/utils/publicPath.js"),y=a("./src/utils/authPermit.js"),b=I(a("./src/redux/services/modelVersion.js")),x=a("./src/components/index.js"),C=a("./src/utils/constants.js"),j=a("./src/redux/services/serviceCode.js"),S=a("./src/module/modelBase/modelEnums.js");function I(e){return e&&e.__esModule?e:{default:e}}var T=f.default.Option,w=g.Form.Item,E=p.default.Group,D=h.default.div.withConfig({displayName:"ImportInterface__Wrapper",componentId:"sc-1ttgna2-0"})(["display:flex;flex-direction:column;.ant-form{margin-left:32px;margin-bottom:20px;}"]),M=h.default.div.withConfig({displayName:"ImportInterface__ButtonDom",componentId:"sc-1ttgna2-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),k=S.INTERFACE_TYPE.getValueAndDescList(),P=(0,r.default)(T,{value:""},void 0,"\u9009\u62e9\u63a5\u53e3\u7c7b\u578b"),L=(0,r.default)(n.default,{},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"),N=(0,r.default)(T,{value:""},void 0,"\u8bf7\u9009\u62e9FTP\u6216\u8005\u4e0a\u4f20\u6587\u4ef6"),A=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.fetchData=function(){(0,j.getFtpDropDown)().then((function(e){e&&n.setState({ftpDatas:e.data})})).catch((function(e){d.default.error(_.get(e,"message","ftp\u8def\u5f84\u67e5\u8be2\u5931\u8d25"))}))},n.getValBlur=function(e,t){if("sourceId"===t)for(var a=n.state.ftpDatas,o=0;o<a.length;o++)if(a[o].id===e){n.setState({ftpPath:a[o].storagePath});break}n.file[t]=e},n.setUploadType=function(e){n.file.fileSource=e,"UPLOAD_WEB"===e&&(n.file.originPath=""),n.setState({uploadType:e})},n.handleInterfaceTypeChange=function(e){n.setState({codeType:e})},n.submitConfirm=function(){n.props.form.validateFieldsAndScroll((function(e){if(null===e){var t=n.file;if("FTP"===n.state.uploadType)t=_.omit(t,["fileId","fileName"]);else{if(!t.fileId)return void d.default.error("\u8bf7\u4e0a\u4f20\u63a5\u53e3\u6587\u4ef6");t=_.omit(t,["originPath","sourceId"])}var a=(0,i.default)({},t,{fileSource:"page_import",fileType:n.state.codeType===S.INTERFACE_TYPE.ONLINE?S.FILE_TYPE.ONLINE_REASONING_CODE:S.FILE_TYPE.OFFLINE_REASONING_CODE});n.importInterface(a)}}))},n.importInterface=function(e){var t=n.props,a=t.modelId,o=t.versionId;n.setState({confirmLoading:!0}),b.default.importModelInterface(a,o,e).then((function(){n.setState({confirmLoading:!1}),d.default.success("\u5bfc\u5165\u6267\u884c\u6210\u529f!"),n.props.closeModal(!0)})).catch((function(e){throw n.setState({confirmLoading:!1}),e}))},n.state={uploadType:"FTP",codeType:k[0].code,ftpDatas:[]},n.file={},n.formRef=m.default.createRef(),n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this,l={name:"file",action:(0,v.urlFormat)("/files/operations/uploadFiles",C.ServicePath.REPO_SERVICE),headers:{Authorization:(0,y.getToken)()},onChange:function(e){var t=[].concat(e.fileList);if(t=(t=t.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),a.setState({fileList:t}),"uploading"===e.file.status&&d.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status){if(void 0!==e.file.response.data&&""!==e.file.response.data){var n=_.get(e.file.response,"data","");a.file.fileId=n,a.file.fileName=e.file.name}}else"error"===e.file.status?d.default.error(e.file.name+" \u4e0a\u4f20\u51fa\u9519!"):"removed"===e.file.status&&(a.file.fileId="",a.file.fileName="")}};return(0,r.default)(D,{},void 0,(0,r.default)(x.ModelConfigPanel,{title:"\u5f00\u53d1\u63a8\u7406\u63a5\u53e3"},void 0,(0,r.default)(g.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(w,{label:"\u4e0a\u4f20\u4fe1\u606f"},void 0,t("codeType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u63a5\u53e3\u7c7b\u578b"}],initialValue:this.state.codeType})((0,r.default)(f.default,{style:{width:150},onChange:this.handleInterfaceTypeChange,placeholder:"\u9009\u62e9\u63a5\u53e3\u7c7b\u578b"},void 0,P,k.map((function(e,t){return(0,r.default)(T,{value:e.code},t,e.desc)}))))),(0,r.default)(w,{},void 0,t("uploadType",{rules:[{required:!0}],initialValue:this.state.uploadType})((0,r.default)(f.default,{style:{width:120},onChange:function(t){return e.setUploadType(t)},placeholder:"\u8bf7\u9009\u62e9\u6587\u4ef6\u4e0a\u4f20\u65b9\u5f0f"},void 0,S.FILE_SOURCE.getValueAndDescList().map((function(e,t){return(0,r.default)(T,{value:e.code},t,e.desc)}))))),"UPLOAD_WEB"===this.state.uploadType&&(0,r.default)(w,{},void 0,m.default.createElement(o.default,(0,i.default)({fileList:this.state.fileList},l,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelBase\\detailPage\\components\\ImportInterface.jsx",lineNumber:221}}),L)),"FTP"===this.state.uploadType&&(0,r.default)("div",{style:{display:"initial"}},void 0,(0,r.default)(E,{style:{width:500},compact:!0},void 0,(0,r.default)(w,{},void 0,t("sourceId",{rules:[{required:"FTP"===this.state.uploadType,message:"\u8bf7\u9009\u62e9\u5219ftp"}],initialValue:this.file.sourceId})((0,r.default)(f.default,{style:{width:150},onChange:function(t){return e.getValBlur(t,"sourceId")},placeholder:"\u8bf7\u9009\u62e9"},void 0,N,this.state.ftpDatas.map((function(e,t){return(0,r.default)(T,{value:e.id},t,e.storageName)}))))),(0,r.default)(w,{},void 0,(0,r.default)(p.default,{disabled:!0,title:this.state.ftpPath,placeholder:this.state.ftpPath?this.state.ftpPath:"\u9ed8\u8ba4\u8def\u5f84",style:{width:120,borderRadius:0,height:32}})),(0,r.default)(w,{},void 0,t("originPath",{initialValue:this.file.originPath,rules:[{required:!0,message:"\u8bf7\u586b\u5199\u6587\u4ef6\u8def\u5f84"},{max:100}]})((0,r.default)(p.default,{style:{width:120,borderTopLeftRadius:0,borderBottomLeftRadius:0,height:32},placeholder:"\u8bf7\u8f93\u8def\u5f84",onBlur:function(t){return e.getValBlur(t.target.value,"originPath")}})))))))),(0,r.default)(M,{},void 0,(0,r.default)(n.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{loading:this.state.confirmLoading,onClick:this.submitConfirm,style:{marginLeft:10},type:"primary"},void 0,"\u786e\u5b9a")))},t}(m.default.Component);t.default=g.Form.create()(A)},"./src/module/modelBase/editPage/EnvironmentInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.EnvironmentInfoDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=a("./src/components/index.js"),l=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=c(a("./src/module/modelBase/editPage/components/RelyInlayMirror.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var p={width:"100%",display:"inline"},f=t.EnvironmentInfoDom=l.default.div.withConfig({displayName:"EnvironmentInfo__EnvironmentInfoDom",componentId:"uv1z67-0"})([".ant-row{line-height:60px;display:flex;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:300px;}.ant-row{line-height:60px;}.ant-col-offset-2{margin-left:7.7%;}.ant-col-9{width:34.6%;}.dom-button{height:auto;width:100%;padding-left:73px;}.package-list{padding-left:53px;margin-top:-10px;max-height:300px;}"]),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.setPackageValidateFunc=function(e,t){n.fileFuncs[e]=t},n.validateFun=function(){var e=!0,t=n.fileFuncs.relyInlayMirror,a={};if(_.isFunction(t)&&(e=(a=t.call()).validate),e){var o={};return o.codeLanguage=_.get(a,"moduleData.language",""),o.runEngine=_.get(a,"moduleData.engine",""),o.useFramework=_.get(a,"moduleData.languageVersion",""),o.baseMirrorId=_.get(a,"moduleData.baseMirrorId",""),o.mirrorId=_.get(a,"moduleData.baseId",""),{validate:e,moduleData:o}}return{validate:e,moduleData:a}},n.state={mirrors:[],visible:!1};var r=n.props.setImportValidateFunc;return _.isFunction(r)&&r("environmentInfo",n.validateFun),n.environmentInfo={language:_.get(a.versionInfo,"codeLanguage",null)?_.get(a.versionInfo,"codeLanguage"):"",runEngine:_.get(a.versionInfo,"runEngine",null)?_.get(a.versionInfo,"runEngine"):"",languageVersion:_.get(a.versionInfo,"useFramework",null)?_.get(a.versionInfo,"useFramework"):"",mirrorId:_.get(a.versionInfo,"mirrorId",""),baseMirrorId:_.get(a.versionInfo,"baseMirrorId","")},n.fileFuncs={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.modelType,a=e.modelDeployType;return(0,n.default)(d.ModelConfigPanel,{title:"\u6a21\u578b\u8fd0\u884c\u73af\u5883",style:p},void 0,(0,n.default)(f,{},void 0,(0,n.default)(u.default,{data:this.environmentInfo,viewType:this.props.viewType,modelType:t,modelDeployType:a,setRelyInlayMirrorFunc:this.setPackageValidateFunc})))},t}(i.default.PureComponent);t.default=m},"./src/module/modelBase/editPage/FileArray.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/babel-runtime/helpers/jsx.js")),s=v(a("./node_modules/antd/es/message/index.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js")),l=v(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var u=v(a("./node_modules/react/index.js")),c=v(a("./node_modules/lodash/lodash.js")),p=a("./src/components/index.js"),f=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var m=v(a("./src/module/modelBase/editPage/components/FileInfo.jsx")),h=v(a("./src/redux/services/modelBase.js")),g=a("./src/module/modelBase/modelEnums.js");function v(e){return e&&e.__esModule?e:{default:e}}var _={width:"100%",display:"inline"},y=l.default.Group,b=f.Form.Item,x=g.FILE_TYPE.getValueAndDescList(),C=g.CODE_FILE_TYPE.getValueAndDescList(),j=(0,o.default)(l.default,{value:"code"},void 0,"\u4ee3\u7801\u5305"),S=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.setAdditionFiles=function(e){for(var t=0;t<e.length;t++)e[t].index=c.default.uniqueId();return e},n.setFileType=function(e){for(var t=[],a=0;a<e.length;a++)if(6===e[a].fileType){t.push(e[a].fileType);break}return t},n.componentDidMount=function(){h.default.getFtpDropDown().then((function(e){e&&n.setState({ftpDatas:e.data.concat([])})}))},n.setFileValidateFunc=function(e,t){n.fileFuncs[e]=t},n.saveFile=function(){var e=[].concat(n.state.modelFiles,[{index:c.default.uniqueId(),fileId:"",fileName:"",filePath:"",fileDesc:"",fileType:"",checkSum:"",fileSource:"page_import",uploadType:"FTP",sourceId:"",additionalInfo:null}]);n.setState({modelFiles:e})},n.deleteFile=function(e,t){var a=n.state.modelFiles;a.splice(e,1),delete n.fileFuncs["fileArray"+e],t?n.setState({selectFileType:[],modelFiles:a.concat([])}):n.setState({modelFiles:a.concat([])})},n.updateFile=function(e,t){var a=[],o=n.state.modelFiles;o[e]=t;for(var s=0;s<o.length;s++)if(6===o[s].fileType){a.push(o[s].fileType);break}n.setState({selectFileType:a,modelFiles:o.concat([])})},n.validateFun=function(){var e=!0,t=n.state,a=t.importFileType,o=t.modelFiles,r=o.map((function(e){return e.fileType}));return 0!==o.length&&r.includes(g.FILE_TYPE.MODEL)&&c.default.get(c.default.find(o,{fileType:g.FILE_TYPE.MODEL}),"fileId")||"file"!==a?"code"===a&&0===o.length?(s.default.info("\u8bf7\u4e0a\u4f20\u63a8\u7406\u6587\u4ef6\uff01"),{validate:!1,moduleData:{modelFiles:n.state.modelFiles}}):(Object.keys(n.fileFuncs).map((function(t){var a=n.fileFuncs[t];if(c.default.isFunction(a)){var o=a.call();e&&(e=o.validate)}})),{validate:e,moduleData:{modelFiles:n.state.modelFiles}}):(s.default.info("\u8bf7\u4e0a\u4f20\u6a21\u578b\u6587\u4ef6\uff01"),{validate:!1,moduleData:{modelFiles:n.state.modelFiles}})},n.handleImportTypeChange=function(e){n.setState({importFileType:e,modelFiles:[{index:c.default.uniqueId(),fileId:"",fileName:"",filePath:"",fileDesc:"",fileType:"",checkSum:"",fileSource:"page_import",uploadType:"FTP",sourceId:"",additionalInfo:null}]})},n.getImportTypes=function(e){for(var t="file"===n.state.importFileType?x:C,a=n.state.modelFiles.map((function(e){return e.fileType})),o=[],s=0;s<t.length;s++){var r=t[s];switch(r.code){case g.FILE_TYPE.MODEL:a.includes(r.code)&&n.state.modelFiles[e].fileType!==r.code||o.push(r);break;case g.FILE_TYPE.ONLINE_REASONING_CODE:case g.FILE_TYPE.OFFLINE_REASONING_CODE:(!a.includes(g.FILE_TYPE.ONLINE_REASONING_CODE)&&!a.includes(g.FILE_TYPE.OFFLINE_REASONING_CODE)||[g.FILE_TYPE.ONLINE_REASONING_CODE,g.FILE_TYPE.OFFLINE_REASONING_CODE].includes(n.state.modelFiles[e].fileType))&&o.push(r);break;default:o.push(r)}}return o},n.state={modelFiles:a.modelFiles.length>0?n.setAdditionFiles(a.modelFiles):[{index:c.default.uniqueId(),fileId:"",filePath:"",fileName:"",fileDesc:"",fileType:"",checkSum:"",fileSource:"page_import",uploadType:"FTP",sourceId:"",additionalInfo:null}],ftpDatas:[],selectFileType:a.modelFiles.length>0?n.setFileType(a.modelFiles):[],importFileType:"file"};var o=n.props.setImportValidateFunc;return c.default.isFunction(o)&&o("fileArray",n.validateFun),n.fileFuncs={},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props,s=a.modelType,r=a.modelDeployType;return(0,o.default)(p.ModelConfigPanel,{title:"\u4e0a\u4f20\u6a21\u578b\u548c\u6587\u4ef6",style:_},void 0,0===this.state.modelFiles.length&&this.props.from!==g.PUBLISH_FROM.CODE&&(0,o.default)(n.default,{onClick:this.saveFile,type:"primary"},void 0,"\u65b0 \u589e"),(0,o.default)(b,{label:"\u683c\u5f0f",style:{marginLeft:16}},void 0,t("fileType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u683c\u5f0f"}],initialValue:this.state.importFileType})((0,o.default)(y,{onChange:function(t){return e.handleImportTypeChange(t.target.value)}},void 0,(0,o.default)(l.default,{value:"file",style:{marginRight:180}},void 0,"\u6587\u4ef6"),j))),(0,o.default)("div",{style:{maxHeight:400,overflowX:"auto",marginTop:16,marginLeft:16}},void 0,this.state.modelFiles.map((function(t,a){return(0,o.default)(m.default,{importFileType:e.state.importFileType,importFileTypeOptions:e.getImportTypes(a),selectFileType:e.state.selectFileType,from:e.props.from,handelPreviewPic:e.props.handelPreviewPic,ftpDatas:e.state.ftpDatas,setFileValidateFunc:e.setFileValidateFunc,index:a,data:t,saveFile:e.saveFile,deleteFile:e.deleteFile,updateFile:e.updateFile,modelType:s,modelDeployType:r},t.index)}))))},t}(u.default.PureComponent);t.default=f.Form.create()(S)},"./src/module/modelBase/editPage/FileTreeTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/tooltip/index.js")),o=v(a("./node_modules/babel-runtime/helpers/jsx.js")),s=v(a("./node_modules/antd/es/message/index.js")),r=v(a("./node_modules/babel-runtime/helpers/extends.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js")),u=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=v(a("./node_modules/react/index.js")),p=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./node_modules/react-redux/es/index.js"),m=a("./src/components/index.js"),h=a("./src/module/modelBase/modelEnums.js"),g=a("./src/module/modelBase/utils.js");v(a("./node_modules/prop-types/index.js"));function v(e){return e&&e.__esModule?e:{default:e}}var y=u.default.Option,b=h.CODE_SELECT_FILE_TYPE.getValueAndDescList(),x=(0,o.default)(y,{value:""},void 0,"\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"),C=function(e){function t(a){(0,i.default)(this,t);var l=(0,d.default)(this,e.call(this,a));l.setTreeTableViewValidateFunc=function(e,t){l.fileTreeTableFuncs[e]=t},l.addParentKeyWrapper=function(e){var t=[],a=JSON.parse(JSON.stringify(e));return function e(t,a){t&&t.forEach((function(t){var n=t.children,o=t.path;t.parent=a,n&&n.length>0&&e(n,o)}))}(a,null),l.setState({checkedIds:t,selectedKeys:t}),a},l.validateFun=function(){var e=l.fileTreeTableFuncs.treeTableView.call();return e.moduleData.length>0&&Object.values(l.state.selectedTypesMap).includes(h.CODE_SELECT_FILE_TYPE.MODEL)?{validate:!0,moduleData:{modelFiles:[{fileType:l.props.fileType,fileStruct:(0,g.filterTree)(l.state.modelFiles,e.moduleData,{},(0,r.default)({},l.state.selectedTypesMap)),fileSource:"code_service_upload"}]}}:(s.default.error("\u672a\u52fe\u9009\u6a21\u578b\u6587\u4ef6"),{validate:!1,moduleData:{modelFiles:l.state.modelFiles}})},l.changeDataType=function(e,t){l.setState((function(a){var n;return{selectedTypesMap:(0,r.default)({},a.selectedTypesMap,(n={},n[e]=t,n))}}))},l.handleSelectedKeysChange=function(e){var t=(0,r.default)({},l.state.selectedTypesMap);for(var a in t)e.includes(a)||delete t[a];l.setState({selectedKeys:e,selectedTypesMap:t})},l.state={checkedIds:[],modelFiles:[],loading:!1,selectedKeys:[],selectedTypesMap:{}},l.columns=[{title:"\u6587\u4ef6\u540d\u79f0",width:"150px",dataIndex:"name",ellipsis:!0,render:function(e){return(0,o.default)(n.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6587\u4ef6\u5206\u7c7b",dataIndex:"type",width:"90px",render:function(e){var t={file:"\u6587\u4ef6",directory:"\u76ee\u5f55"};return t[e]?t[e]:"\u672a\u77e5"}},{title:"\u6587\u4ef6\u5927\u5c0f",width:"110px",dataIndex:"size",render:function(e){return e||0===e?e+" byte":"--"}},{title:"\u6587\u4ef6\u7c7b\u578b",dataIndex:"fileType",width:"90px",render:function(e,t){var a=b.filter((function(e){return e.code!==h.CODE_SELECT_FILE_TYPE.MODEL||e.code===h.CODE_SELECT_FILE_TYPE.MODEL&&(!Object.values(l.state.selectedTypesMap).includes(h.CODE_SELECT_FILE_TYPE.MODEL)||l.state.selectedTypesMap[t.path]===h.CODE_SELECT_FILE_TYPE.MODEL)}));return"file"===t.type&&l.state.selectedKeys.includes(t.path)?(0,o.default)(u.default,{style:{width:150},onChange:function(e){return l.changeDataType(t.path,e)},placeholder:"\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"},void 0,x,a.map((function(e,t){return(0,o.default)(y,{value:e.code},t,e.desc)}))):""}}],l.modelData=[];var c=l.props.setImportValidateFunc;return _.isFunction(c)&&c("fileTreeTable",l.validateFun),l.fileTreeTableFuncs={},l}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.setState({modelFiles:this.addParentKeyWrapper(this.props.modelFiles),loading:!0})},t.prototype.componentDidUpdate=function(e){_.isEqual(this.props.modelFiles,e.modelFiles)||this.setState({modelFiles:this.addParentKeyWrapper(this.props.modelFiles),loading:!0})},t.prototype.render=function(){return(0,o.default)(m.ModelConfigPanel,{title:(0,o.default)("span",{},void 0,"\u6a21\u578b\u6587\u4ef6",(0,o.default)(n.default,{title:"\u5f53\u524djupyter\u4ee5'.'\u5f00\u5934\u7684\u6587\u4ef6\u9ed8\u8ba4\u9690\u85cf\u4e0d\u53ef\u7f16\u8f91\uff0c\u8bf7\u5728\u4fdd\u5b58\u6587\u4ef6\u53d6\u6d88\u52fe\u9009"},void 0,(0,o.default)(p.QuestionCircleOutlined,{style:{fontSize:"14px"},className:"icon"})))},void 0,this.state.loading&&(0,o.default)(m.NewTreeTableView,{checkedIds:this.state.checkedIds,rowKey:"path",columns:this.columns,data:this.state.modelFiles,onSelectedKeysChange:this.handleSelectedKeysChange,setTreeTableViewValidateFunc:this.setTreeTableViewValidateFunc}))},t}(c.default.Component);t.default=(0,f.connect)((function(){return{}}))(C)},"./src/module/modelBase/editPage/ImportModelBaseVersion.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ImportModelBaseVersionDom=void 0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/antd/es/message/index.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var d=h(a("./node_modules/react/index.js")),l=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(h(a("./node_modules/prop-types/index.js")),h(a("./src/module/modelBase/editPage/EnvironmentInfo.jsx"))),c=h(a("./src/module/modelBase/editPage/FileArray.jsx")),p=h(a("./src/module/modelBase/editPage/FileTreeTable.jsx")),f=h(a("./src/module/modelBase/picPreview/PicturePreviewPage.jsx")),m=a("./src/module/modelBase/modelEnums.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=t.ImportModelBaseVersionDom=l.default.div.withConfig({displayName:"ImportModelBaseVersion__ImportModelBaseVersionDom",componentId:"sc-8vybwq-0"})([".ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.7%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:300px;}.ant-row{line-height:60px;}"]),v=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.setImportValidateFunc=function(e,t){n.importValidateFuncs[e]=t},n.validateFun=function(){var e={};return Object.keys(n.importValidateFuncs).map((function(t){var a=n.importValidateFuncs[t];if(_.isFunction(a)){var o=a.call();o.validate?n.versionInfo=_.assign(n.versionInfo,o.moduleData):e[t]=t}})),"{}"===JSON.stringify(e)?{validate:!0,moduleData:{versionInfo:n.versionInfo}}:{validate:!1,moduleData:{versionInfo:n.versionInfo}}},n.getModelBlur=function(e,t){n.versionInfo[t]=e},n.openTextDir=function(e,t){n.props.dispatch(dataSourceActions.getFileContentDataRequest({filePath:e,ftpId:t})),n.setState({openTextVisible:!0})},n.handelCancelPreview=function(){n.setState({previewPic:!1})},n.handelPreviewPic=function(e,t){""===e?o.default.info("\u8bf7\u9009\u62e9\u5bf9\u5e94FTP\u548c\u586b\u5199\u8def\u5f84"):n.setState({previewPic:!0,ftpId:e,filePath:t})},n.state={previewPic:!1,ftpId:"",filePath:"",_this:n};var i=n.props.setValidateFunc;return _.isFunction(i)&&i("importModelBaseVersion",n.validateFun),n.importValidateFuncs={},n.versionInfo=a.versionInfo?a.versionInfo:{publishFrom:a.from,versionDesc:""},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.from,o=t.modelDeployType,s=t.modelType,r=t.modelFiles,i=t.viewType;return(0,n.default)(g,{},void 0,a!==m.PUBLISH_FROM.WIZARD&&a!==m.PUBLISH_FROM.CODE&&(0,n.default)(u.default,{setImportValidateFunc:this.setImportValidateFunc,versionInfo:this.versionInfo,viewType:i,modelType:s,modelDeployType:o}),a===m.PUBLISH_FROM.CODE&&(0,n.default)("div",{},void 0,(0,n.default)(p.default,{setImportValidateFunc:this.setImportValidateFunc,modelFiles:r,viewType:i,requiredFolder:"model",fileType:"model"})),a!==m.PUBLISH_FROM.WIZARD&&a!==m.PUBLISH_FROM.CODE&&(0,n.default)("div",{},void 0,(0,n.default)(c.default,{from:a,handelPreviewPic:this.handelPreviewPic,setImportValidateFunc:this.setImportValidateFunc,modelFiles:_.get(this.versionInfo,"modelFiles",[]),viewType:i,modelType:s,modelDeployType:o})),this.state.previewPic&&(0,n.default)(f.default,{openTextDir:function(t,a){return e.openTextDir(t,a)},fileType:2,ftpId:this.state.ftpId,filePath:this.state.filePath,onClosePreview:this.handelCancelPreview}))},t}(d.default.PureComponent);t.default=v},"./src/module/modelBase/editPage/ImportModelFromRedis.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/tooltip/index.js")),o=f(a("./node_modules/antd/es/input/index.js")),s=f(a("./node_modules/antd/es/space/index.js")),r=f(a("./node_modules/babel-runtime/helpers/jsx.js")),i=f(a("./node_modules/babel-runtime/regenerator/index.js")),d=f(a("./node_modules/babel-runtime/helpers/extends.js")),l=f(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=f(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/form/style/index.js");f(a("./node_modules/react/index.js")),f(a("./node_modules/prop-types/index.js"));var c=a("./src/components/index.js"),p=a("./node_modules/@ant-design/icons/es/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=u.default.Item,h=(0,r.default)("span",{},void 0,"\u6a21\u578b\u6587\u4ef6"),g=(0,r.default)(p.QuestionCircleOutlined,{className:"icon",title:"\u5728\u8bad\u7ec3\u4ee3\u7801\u4e2d\u5b9a\u4e49\u7684\u6d41\u5f0f\u8bad\u7ec3\u5b8c\u6210\u540e\u6a21\u578b\u4fdd\u5b58\u5230Redis\u4e2dKey"});t.default=function(e){var t=this,a=e.versionInfo,p=e.setValidateFunc,f=u.default.useForm()[0],v=a.modelRedisKey,_=function(){var e=(0,l.default)(i.default.mark((function e(){var a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.validateFields();case 3:return a=e.sent,e.abrupt("return",{validate:!0,moduleData:{versionInfo:(0,d.default)({},a,{modelDeployType:"Distributed",modelFiles:[]})}});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{validate:!1,moduleData:{}});case 10:case"end":return e.stop()}}),e,t,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return p&&p("modelRedisKey",_),(0,r.default)(c.ModelConfigPanel,{title:h},void 0,(0,r.default)(u.default,{name:"basic",form:f,initialValues:{modelRedisKey:v},autoComplete:"off"},void 0,(0,r.default)(m,{label:"Redis Key",required:!0},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(m,{name:"modelRedisKey",rules:[{required:!0,message:"\u8bf7\u8f93\u5165Redis Key"}],validateTrigger:["onBlur","onChange"]},void 0,(0,r.default)(o.default,{placeholder:"\u8bf7\u8f93\u5165\u6a21\u578b\u6587\u4ef6\u7684Redis Key",style:{with:300}})),(0,r.default)(n.default,{title:"\u5728\u8bad\u7ec3\u4ee3\u7801\u4e2d\u5b9a\u4e49\u7684\u6d41\u5f0f\u8bad\u7ec3\u5b8c\u6210\u540e\u6a21\u578b\u4fdd\u5b58\u5230Redis\u4e2dKey"},void 0,(0,r.default)("div",{style:{marginTop:-20}},void 0,g))))))}},"./src/module/modelBase/editPage/ModelBaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelBaseInfoDom=void 0;var n=v(a("./node_modules/antd/es/auto-complete/index.js")),o=v(a("./node_modules/babel-runtime/helpers/jsx.js")),s=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=v(a("./node_modules/babel-runtime/helpers/inherits.js")),d=v(a("./node_modules/antd/es/input/index.js")),l=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=v(a("./node_modules/react/index.js")),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var p=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(v(a("./node_modules/prop-types/index.js")),v(a("./src/redux/services/modelBase.js"))),m=v(a("./src/redux/services/sysManager/projectManage.js")),h=a("./src/utils/commonUtil.js"),g=a("./src/module/modelBase/modelEnums.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=l.default.Option,b=d.default.TextArea,x=t.ModelBaseInfoDom=p.default.div.withConfig({displayName:"ModelBaseInfo__ModelBaseInfoDom",componentId:"sc-1wowywp-0"})([".ant-row{line-height:60px;display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:60px;}.ant-row{line-height:60px;}"]),C=c.Form.Item,j=(0,o.default)(y,{value:""},void 0,"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"),S=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.setNextVersion=function(e){var t=n;m.default.getApplicationsDropDown().then((function(a){if(a){if(t.props.applicationId&&t.props.from!==g.PUBLISH_FROM.CODE){for(var n="",o=0;o<a.data.length;o++)a.data[o].projectApplicationId===t.props.applicationId&&(n=a.data[o].applicationName);var s=(0,h.createModuleNameByApply)(n,"modelBase",!0);t.modelBaseInfo.modelName=s,t.props.form.setFieldsValue({modelName:s});var r={modelName:s,modelId:null};f.default.getNextVersion(r).then((function(e){e.data.modelId&&""!==e.data.modelId&&(t.setState({newVersions:e.data.modelMaxVersion}),t.modelBaseInfo.modelId=e.data.modelId)}))}else if(t.props.from===g.PUBLISH_FROM.CODE){for(var i="",d=0;d<a.data.length;d++)a.data[d].projectApplicationId===t.props.applicationId&&(i=a.data[d].applicationName);var l=(0,h.createModuleNameByApply)(i,"modelBase",!0);t.modelBaseInfo.modelName=l,t.props.form.setFieldsValue({modelName:l});var u={modelName:l,modelId:null};if(e&&e.length>0){var c=_.findIndex(e,(function(e){return e.modelId==l||e.modelName==l}));-1!==c&&(u={modelName:_.get(e,"["+c+"].modelName"),modelId:_.get(e,"["+c+"].modelId")})}f.default.getNextVersion(u).then((function(e){e.data.modelId&&""!==e.data.modelId&&(t.setState({newVersions:e.data.modelMaxVersion}),t.modelBaseInfo.modelId=e.data.modelId)}))}t.setState({applicationsList:a.data})}}))},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),n.modelBaseInfo.versionName=n.state.newVersions,{validate:e,moduleData:{modelInfo:n.modelBaseInfo}}},n.getModelNameBlur=function(e){n.setState({newVersions:"v1"});var t=_.find(n.state.modelDataList,{modelName:e});t?f.default.getNextVersion(t).then((function(a){a.data.modelId&&""!==a.data.modelId?(n.modelBaseInfo.modelId=a.data.modelId,n.modelBaseInfo.modelName=e,n.modelBaseInfo.modelDesc=t.modelDesc,n.props.form.setFieldsValue({modelDesc:t.modelDesc}),n.setState({newVersions:a.data.modelMaxVersion})):(n.modelBaseInfo.modelId=null,n.modelBaseInfo.modelName=e)})):(n.modelBaseInfo.modelId=null,n.modelBaseInfo.modelName=e)},n.getModelBlur=function(e,t,a){if("busiType"===t&&e){var o=(0,h.createModuleNameByApply)(a.props.label,"modelBase",!0);n.modelBaseInfo.modelName=o,n.props.form.setFieldsValue({modelName:o}),n.getModelNameBlur(o)}n.modelBaseInfo[t]=e},n.getValOnChange=function(e){if("text"!==event.target.type){var t={modelId:e,modelName:null},a=event.target.outerText;n.modelBaseInfo.modelName=a,n.props.form.setFieldsValue({modelName:a}),f.default.getNextVersion(t).then((function(e){n.setState({newVersions:e.data.modelMaxVersion}),n.modelBaseInfo.modelId=e.data.modelId}))}else{var o={modelName:e,modelId:null};if(n.state.modelDataList&&n.state.modelDataList.length>0){var s=_.findIndex(n.state.modelDataList,(function(t){return t.modelId==e||t.modelName==e}));-1!==s&&(o={modelName:null,modelId:_.get(n.state.modelDataList,"["+s+"].modelId")})}f.default.getNextVersion(o).then((function(t){n.setState({newVersions:t.data.modelMaxVersion}),n.modelBaseInfo.modelId=t.data.modelId,n.props.form.setFieldsValue({modelName:e})}))}},n.state={modelDataList:[],serviceTypeOptions:[],applicationsList:[],usedApplications:{},newVersions:""},n.checkNameRef=u.default.createRef();var o=n.props.setValidateFunc;return _.isFunction(o)&&o("modelBaseInfo",n.validateFun),n.modelBaseInfo={repoId:a.repoId,modelId:_.get(a.modelBaseInfo,"modelId",""),modelDesc:_.get(a.modelBaseInfo,"modelDesc",""),modelName:"",busiType:_.get(a.modelBaseInfo,"busiType",""),publishSourceId:_.get(a.modelBaseInfo,"publishSourceId","")},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){var e=this;f.default.getModelBaseList({repoId:this.props.repoId,busiType:this.props.hasBoundApplication?this.props.applicationId:""}).then((function(t){if(t){if(e.setState({usedApplications:_.groupBy(_.get(t,"data",[]),"busiType"),modelDataList:t.data}),e.props.hasBoundApplication){var a=_.get(t,"data[0].modelId","");e.modelBaseInfo.modelId=a,e.props.form.setFieldsValue({modelId:a})}e.setNextVersion(t.data)}}))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,s=a.modelDataList,r=a.newVersions;return(0,o.default)(x,{},void 0,(0,o.default)(c.Form,{layout:"horizontal"},void 0,(0,o.default)(C,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,t("busiType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:this.modelBaseInfo.busiType})((0,o.default)(l.default,{disabled:!("edit"!==this.props.viewType&&!this.props.applicationId),placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e",optionFilterProp:"children",onChange:function(t,a){return e.getModelBlur(t,"busiType",a)},style:{width:"350px"}},void 0,j,this.state.applicationsList.map((function(e){return(0,o.default)(y,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)}))))),(0,o.default)("div",{style:{display:"flex"}},void 0,(0,o.default)(C,{label:"\u6a21\u578b\u540d\u79f0"},void 0,t("modelName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6216\u9009\u62e9\u6a21\u578b\u540d\u79f0"}],initialValue:this.modelBaseInfo.modelName})((0,o.default)(n.default,{onBlur:function(t){return e.getModelNameBlur(t.target.value)},style:{width:"350px"},filterOption:function(e,t){return-1!==t.props.children.toUpperCase().indexOf(e.toUpperCase())},placeholder:"\u8bf7\u8f93\u5165\u6a21\u578b\u540d\u79f0"},void 0,Array.isArray(s)&&s.map((function(e,t){return(0,o.default)(y,{value:e.modelName},t,e.modelName)}))))),(0,o.default)(C,{style:{marginLeft:30},label:"\u7248\u672c\u53f7"},void 0,(0,o.default)("span",{},void 0,r||"v1"))),(0,o.default)(C,{style:{marginLeft:10},label:"\u6a21\u578b\u63cf\u8ff0"},void 0,t("modelDesc",{initialValue:this.modelBaseInfo.modelDesc})((0,o.default)(b,{disabled:"view"===this.props.viewType,autoSize:{minRows:3,maxRows:6},style:{width:650,marginRight:10,min:0,max:450},onBlur:function(t){return e.getModelBlur(t.target.value,"modelDesc")},rows:8})))))},t}(u.default.PureComponent);t.default=c.Form.create()(S)},"./src/module/modelBase/editPage/ModelBaseInfoPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelBaseInfoPageDom=void 0;var n=E(a("./node_modules/antd/es/button/index.js")),o=E(a("./node_modules/babel-runtime/helpers/jsx.js")),s=E(a("./node_modules/antd/es/message/index.js")),r=E(a("./node_modules/babel-runtime/regenerator/index.js")),i=E(a("./node_modules/antd/es/modal/index.js")),d=E(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),l=E(a("./node_modules/babel-runtime/helpers/extends.js")),u=E(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=E(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=E(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=E(a("./node_modules/react/index.js")),m=a("./node_modules/react-redux/es/index.js"),h=E(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(E(a("./node_modules/prop-types/index.js")),a("./src/utils/history.js")),v=a("./src/components/index.js"),y=E(a("./src/module/modelBase/editPage/ModelBaseInfo.jsx")),b=E(a("./src/module/modelBase/editPage/ImportModelBaseVersion.jsx")),x=E(a("./src/redux/services/modelBase.js")),C=E(a("./src/redux/services/modelVersion.js")),j=a("./src/routes/routeHelper.jsx"),S=a("./src/module/modelBase/modelEnums.js"),I=E(a("./src/redux/services/codeService.js")),T=E(a("./src/module/modelBase/editPage/ModelVersionInfo.jsx")),w=E(a("./src/module/modelBase/editPage/ImportModelFromRedis.jsx"));function E(e){return e&&e.__esModule?e:{default:e}}var D={width:"100%",display:"inline"},M=t.ModelBaseInfoPageDom=h.default.div.withConfig({displayName:"ModelBaseInfoPage__ModelBaseInfoPageDom",componentId:"ijoeqw-0"})(["width:100%;background:#fff;padding:16px;.ant-col-2{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:6%;}.ant-steps{width:50%;margin-left:25%;}.steps-content{padding-top:20px;margin:20px 50px 50px 50px;border:0.5px solid #e5e9f2;}.model-buttons{text-align:right;line-height:70px;padding-right:50px;}"]),k=(0,o.default)(v.LoadingIndicator,{position:"relative"}),P=function(e){function t(a){var n=this;(0,u.default)(this,t);var o=(0,c.default)(this,e.call(this,a));o.setModelBaseInfoByFrom=function(e){if(e===S.PUBLISH_FROM.CODE){var t=(0,l.default)({},o.state.repositories);t.versionInfo.publishFrom=S.PUBLISH_FROM.CODE,o.setState({repositories:t}),o.fetchModelTrees()}},o.fetchModelTrees=function(){o.anbModelId&&(o.setState({loading:!0}),I.default.getModelTrees(o.anbModelId).then((function(e){var t=e.data||[];o.setState({modelFiles:t,loading:!1})})).catch((function(e){throw o.setState({loading:!1}),e})))},o.setValidateFunc=function(e,t){o.validateFuncs[e]=t},o.submitModalCancel=(0,d.default)(r.default.mark((function e(){var t,a,s,d,l,u;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o.state.from===S.PUBLISH_FROM.CODE?o.state.repositories:{},a=o,s=!0,e.t0=r.default.keys(o.validateFuncs);case 4:if((e.t1=e.t0()).done){e.next=15;break}if(d=e.t1.value,l=o.validateFuncs[d],!_.isFunction(l)){e.next=13;break}return e.next=10,l.call();case 10:u=e.sent,t=_.merge(t,u.moduleData),s&&(s=u.validate);case 13:e.next=4;break;case 15:s&&i.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){a.saveData(t)},onCancel:function(){}});case 16:case"end":return e.stop()}}),e,n)}))),o.saveData=function(e){e.versionInfo.versionName=e.modelInfo.versionName,delete e.modelInfo.versionName,["model","model_flow"].includes(o.codeType)&&(e.versionInfo.runEngine=_.get(o.codeInfo,"mirrorVersion.versionEngine"),e.versionInfo.codeLanguage=_.get(o.codeInfo,"mirrorVersion.language"),e.versionInfo.useFramework=_.get(o.codeInfo,"mirrorVersion.frame"),e.versionInfo.baseMirrorId=_.get(o.codeInfo,"mirrorVersion.mirrorId"),e.versionInfo.mirrorId=_.get(o.codeInfo,"mirrorVersion.versionId")),o.setState({confirmLoading:!0}),x.default.publishModel(e).then((function(e){e&&(s.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,g.navigateTo)(j.modelBaseUrl.modelBaseManage())}),2e3))})).catch((function(){o.setState({confirmLoading:!1})}))},o.closePage=function(){i.default.confirm({title:"\u63d0\u793a\u4fe1\u606f",content:"\u786e\u5b9a\u8fd4\u56de\u4e3b\u754c\u9762\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,g.navigateTo)("/modelBase")},onCancel:function(){}})},o.handleModelDeployChange=function(e,t){var a;o.setState(((a={})[e]=t,a))},o.params=(0,g.parseParms)(a.location),o.repoId=_.get(a.match,"params.repoId","default"),o.modelId=_.get(a.match,"params.modelId",""),o.versionId=_.get(a.match,"params.versionId",""),o.codeType=_.get(o.params,"codeType");var p=_.get(o.params,"projectName");o.anbModelId=_.get(o.params,"projectId"),o.applicationId=_.get(a.location,"state.applicationId","")||_.get(o.params,"appId"),o.hasBoundApplication=_.get(a.location,"state.hasBoundApplication","");var f="";p&&-1!=p.indexOf("-")&&(f=p.substring(0,p.indexOf("-"))+"-\u6a21\u578b");var m=["model","model_flow"].includes(o.codeType)?S.PUBLISH_FROM.CODE:S.PUBLISH_FROM.MODEL_IMPORT;return o.state={viewType:_.get(a.match,"params.action",null),from:m,loading:!1,confirmLoading:!1,repositories:{additionalInfo:{projectId:_.get(o.params,"projectId",null),projectName:p,instanceId:_.get(o.params,"taskId",null),arithId:_.get(o.params,"arithId",null)},modelInfo:{repoId:o.repoId,modelId:"",modelName:f,modelDesc:"",busiType:o.applicationId,publishSourceId:o.anbModelId},versionInfo:{publishFrom:m}},modelFiles:[],modelType:S.MODEL_TYPE.NORMAL,modelDeployType:S.DEPLOY_TYPE.NORMAL},o.codeInfo={},o.validateFuncs={},o}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){var e=this;"create"!==this.state.viewType?(this.setState({loading:!0}),C.default.getVersionsModelInfo(this.modelId,this.versionId).then((function(t){t&&e.setState({repositories:_.get(t,"data",null),loading:!1,from:_.get(t,"data.versionInfo.publishFrom",6)})})).catch((function(t){throw e.setState({loading:!1}),t}))):(["model","model_flow"].includes(this.codeType)&&I.default.getPubCodeServiceInfo(this.anbModelId).then((function(t){e.codeInfo=t.data})),this.setModelBaseInfoByFrom(this.state.from))},t.prototype.render=function(){var e=this,t=this.state,a=t.viewType,s=t.loading,r=t.from,i=t.repositories,d=t.modelFiles,l=t.modelType,u=t.modelDeployType;return(0,o.default)(M,{},void 0,s&&k,!s&&(0,o.default)("div",{},void 0,(0,o.default)(v.ModelConfigPanel,{title:"\u6a21\u578b\u4fe1\u606f",style:D},void 0,(0,o.default)(y.default,{repoId:this.repoId,viewType:a,from:r,modelBaseInfo:_.get(i,"modelInfo"),setValidateFunc:this.setValidateFunc,applicationId:this.applicationId,hasBoundApplication:Boolean(this.hasBoundApplication)}),(0,o.default)(T.default,{from:r,versionInfo:_.get(i,"versionInfo"),setValidateFunc:this.setValidateFunc,onModelDeployChange:this.handleModelDeployChange})),"model_flow"===this.codeType?(0,o.default)(w.default,{versionInfo:_.get(i,"versionInfo"),setValidateFunc:this.setValidateFunc}):(0,o.default)(b.default,{codeType:this.codeType,modelType:l,modelDeployType:u,from:r,viewType:a,versionInfo:_.get(i,"versionInfo"),modelFiles:d,setValidateFunc:this.setValidateFunc})),(0,o.default)("div",{className:"model-buttons"},void 0,(0,o.default)(n.default,{onClick:function(){e.closePage()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:this.submitModalCancel,type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(f.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(P)},"./src/module/modelBase/editPage/ModelVersionInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelBaseInfoDom=void 0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/input/index.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=f(a("./node_modules/react/index.js")),u=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var c=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(f(a("./node_modules/prop-types/index.js")),a("./src/module/modelBase/modelEnums.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=i.default.TextArea,g=p.PUBLISH_FROM.getValueAndDescList(),v=t.ModelBaseInfoDom=c.default.div.withConfig({displayName:"ModelVersionInfo__ModelBaseInfoDom",componentId:"sc-1o11i9k-0"})([".ant-row{line-height:60px;display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:60px;}.ant-row{line-height:60px;}"]),y=u.Form.Item,b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),n.versionInfo.versionName=n.state.newVersions,{validate:e,moduleData:{versionInfo:n.versionInfo}}},n.getModelBlur=function(e,t){"modelType"===t&&(n.versionInfo.modelDeployType=p.DEPLOY_TYPE.NORMAL,n.props.form.setFieldsValue({modelDeployType:p.DEPLOY_TYPE.NORMAL}),n.props.onModelDeployChange("modelType",e),n.props.onModelDeployChange("modelDeployType",p.DEPLOY_TYPE.NORMAL)),"modelDeployType"===t&&n.props.onModelDeployChange("modelDeployType",e),n.versionInfo[t]=e},n.setDeployTypeEnable=function(e){switch(n.versionInfo.modelType){case p.MODEL_TYPE.NORMAL:return[p.DEPLOY_TYPE.NORMAL].includes(e);case p.MODEL_TYPE.CAFFE:case p.MODEL_TYPE.ONNX:case p.MODEL_TYPE.UFF:case p.MODEL_TYPE.TRT:return[p.DEPLOY_TYPE.NORMAL,p.DEPLOY_TYPE.TensorRT].includes(e);case p.MODEL_TYPE["BIN+XML"]:return[p.DEPLOY_TYPE.NORMAL,p.DEPLOY_TYPE.OpenVINO].includes(e);default:return!0}},n.state={};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("modelVersionInfo",n.validateFun),n.versionInfo={publishFrom:_.get(a.versionInfo,"publishFrom"),modelType:_.get(a.versionInfo,"modelType",p.MODEL_TYPE.NORMAL),modelDeployType:_.get(a.versionInfo,"modelDeployType",p.DEPLOY_TYPE.NORMAL),versionDesc:_.get(a.versionInfo,"versionDesc")},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,n.default)(v,{},void 0,(0,n.default)(u.Form,{layout:"horizontal"},void 0,(0,n.default)(y,{style:{marginLeft:10},label:"\u7248\u672c\u6765\u6e90"},void 0,t("publishFrom",{initialValue:this.props.from})((0,n.default)(d.default,{style:{width:150},placeholder:"\u9009\u62e9\u7248\u672c\u6765\u6e90",disabled:!0},void 0,g.map((function(e,t){return(0,n.default)(m,{value:e.code},t,e.desc)}))))),(0,n.default)(y,{style:{marginLeft:10},label:"\u7248\u672c\u63cf\u8ff0"},void 0,t("versionDesc",{initialValue:this.versionInfo.versionDesc})((0,n.default)(h,{autoSize:{minRows:3,maxRows:6},style:{width:650,marginRight:10,min:0,max:450},onBlur:function(t){return e.getModelBlur(t.target.value,"versionDesc")},rows:8})))))},t}(l.default.PureComponent);t.default=u.Form.create()(b)},"./src/module/modelBase/editPage/components/FileInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FileInfoDom=void 0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/antd/es/upload/index.js")),s=I(a("./node_modules/babel-runtime/helpers/extends.js")),r=I(a("./node_modules/antd/es/tooltip/index.js")),i=I(a("./node_modules/babel-runtime/helpers/jsx.js")),d=I(a("./node_modules/antd/es/message/index.js")),l=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=I(a("./node_modules/babel-runtime/helpers/inherits.js")),p=I(a("./node_modules/antd/es/input/index.js")),f=I(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=I(a("./node_modules/react/index.js")),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/utils/constants.js"),v=a("./node_modules/@ant-design/icons/es/index.js"),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");I(a("./node_modules/prop-types/index.js"));var b=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),x=a("./src/utils/publicPath.js"),C=a("./src/utils/authPermit.js"),j=a("./src/module/modelBase/modelEnums.js"),S=I(a("./src/redux/services/sysManager/ftpBasesManager.js"));function I(e){return e&&e.__esModule?e:{default:e}}var T=t.FileInfoDom=b.default.div.withConfig({displayName:"FileInfo__FileInfoDom",componentId:"tfk793-0"})([".ant-legacy-form-inline .has-feedback{display:block;}"]),w=f.default.Option,E=y.Form.Item,D=p.default.Group,M=(0,i.default)(n.default,{},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"),k=(0,i.default)(v.DownloadOutlined,{}),P=(0,i.default)(w,{value:""},void 0,"\u8bf7\u9009\u62e9FTP\u6216\u8005\u4e0a\u4f20\u6587\u4ef6"),L=(0,i.default)(v.PlusOutlined,{}),N=(0,i.default)(v.MinusOutlined,{}),A=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.getFtpName=function(){if("FTP"===n.props.data.uploadType)for(var e=n.props.ftpDatas,t=0;t<e.length;t++)if(e[t].id===n.props.data.sourceId){n.setState({ftpPath:e[t].storagePath});break}},n.getValBlur=function(e,t){if("sourceId"===t)for(var a=n.props.ftpDatas,o=0;o<a.length;o++)if(a[o].id===e){n.setState({ftpPath:a[o].storagePath});break}n.file[t]=e,"UPLOAD_WEB"===n.state.uploadType&&(n.file.sourceId=""),n.props.updateFile(n.file)},n.setUploadType=function(e){n.file.uploadType=e,"UPLOAD_WEB"===e&&(n.file.filePath=""),n.setState({uploadType:e})},n.validateFun=function(){for(var e=0;e<n.state.fileList.length;e++){var t=n.state.fileList[e];if("uploading"===t.status)return d.default.info(t.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),{validate:!1,moduleData:n.file}}var a=!1;return n.props.form.validateFieldsAndScroll((function(e){null===e&&(a=!0)})),"code"===n.props.importFileType&&n.file.originPath&&-1!==n.file.originPath.indexOf(".rar")&&(a=!1,d.default.info("\u4ee3\u7801\u5305\u4e0a\u4f20\u6587\u4ef6\u4e0d\u80fd\u662frar\u683c\u5f0f\uff01")),"UPLOAD_WEB"===n.state.uploadType&&""===n.file.fileId&&4===n.props.from&&(a=!1,d.default.info("\u8bf7\u4e0a\u4f20\u6587\u4ef6\uff01")),{validate:a,moduleData:n.file}},n.downFile=function(){window.location.href=(0,x.urlFormat)("/api/datasources/actions/downloadImportFileSample?token="+encodeURI((0,C.getToken)()))},n.handleFtpValidate=function(e,t,a){if(""!==_.trim(t)&&""!==n.file.sourceId){for(var o=[],s=0;t&&s<t.split("/").length;s++)t.split("/")[s]&&o.push(t.split("/")[s]);var r="",i=n.state.ftpPath+t;o.length>0&&-1!==o[o.length-1].indexOf(".")&&(r=o[o.length-1]),r&&(i=i.replace(r,"")),new Promise((function(e){S.default.checkStorageInfo({storageId:n.file.sourceId,storageFilePath:i,storageFileName:r}).then((function(){e(),a()})).catch((function(e){a(e.message)}))}))}else a()},n.state={ftpPath:"--",fileList:"UPLOAD_WEB"===a.data.uploadType?[{uid:"-1",name:a.data.fileName,type:"text/plain"}]:[],uploadType:a.data.uploadType?a.data.uploadType:"FTP"};var o=n.props,s=o.setFileValidateFunc,r=o.index;return _.isFunction(s)&&s("fileArray"+r,n.validateFun),n.file=a.data,n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.index,l=t.form,u=t.from,c=t.selectFileType;this.getFtpName();var h=l.getFieldDecorator,b=this,S={name:"file",action:(0,x.urlFormat)("/files/operations/uploadFiles",g.ServicePath.REPO_SERVICE),headers:{Authorization:(0,C.getToken)()},onChange:function(e){var t=!0;if("code"===b.props.importFileType&&((t=-1===e.file.name.indexOf(".rar"))||d.default.error("\u4ee3\u7801\u5305\u4e0a\u4f20\u6587\u4ef6\u4e0d\u80fd\u662frar\u683c\u5f0f\uff01")),t){var a=[].concat(e.fileList);if(a=(a=a.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),b.setState({fileList:a}),"uploading"===e.file.status&&d.default.info(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status){if(void 0!==e.file.response.data&&""!==e.file.response.data){var n=_.get(e.file.response,"data","");b.file.fileId=n,b.file.fileName=e.file.name}}else"error"===e.file.status?d.default.error(e.file.name+" \u4e0a\u4f20\u51fa\u9519!"):"removed"===e.file.status&&(b.file.fileId="",b.file.fileName="")}}};return(0,i.default)(T,{},void 0,(0,i.default)(y.Form,{layout:"inline",style:{height:80}},void 0,(0,i.default)(E,{help:"",label:"\u6587\u4ef6"},void 0,h("fileType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"}],initialValue:this.file.fileType})((0,i.default)(f.default,{style:{width:150},onChange:function(t){return e.getValBlur(t,"fileType")},placeholder:"\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"},void 0,(0,i.default)(w,{value:""},void 0,"file"===this.props.importFileType?"\u9009\u62e9\u6587\u4ef6\u7c7b\u578b":"\u8bf7\u9009\u62e9\u63a8\u7406\u7c7b\u578b"),Array.isArray(this.props.importFileTypeOptions)&&this.props.importFileTypeOptions.map((function(e,t){return(0,i.default)(w,{disabled:-1!==_.indexOf(c,e.code),value:e.code},t,e.desc)}))))),u===j.PUBLISH_FROM.CODE?(0,i.default)(E,{style:{width:200}},void 0,this.file.fileName.length>=20?(0,i.default)(r.default,{placement:"top",title:this.file.fileName},void 0,this.file.fileName.substring(0,20)+"..."):(0,i.default)("span",{style:{marginRight:15}},void 0,this.file.fileName),"["+(1===this.file.dirFlag?" \u6587\u4ef6\u5939 ":" \u6587\u4ef6 ")+"]"):(0,i.default)("div",{style:{display:"inline"}},void 0,(0,i.default)(E,{help:""},void 0,h("uploadType",{rules:[{required:!0}],initialValue:this.state.uploadType})((0,i.default)(f.default,{style:{width:120},onChange:function(t){return e.setUploadType(t)},placeholder:"\u8bf7\u9009\u62e9\u6587\u4ef6\u4e0a\u4f20\u65b9\u5f0f"},void 0,j.FILE_SOURCE.getValueAndDescList().map((function(e,t){return(0,i.default)(w,{value:e.code},t,e.desc)}))))),"UPLOAD_WEB"===this.state.uploadType&&(0,i.default)(E,{help:""},void 0,m.default.createElement(o.default,(0,s.default)({fileList:this.state.fileList},S,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelBase\\editPage\\components\\FileInfo.jsx",lineNumber:260}}),M),(0,i.default)(n.default,{style:{marginLeft:"16px",display:"none"},onClick:function(){e.downFile()},icon:k},void 0,"\u4e0b\u8f7d\u6587\u4ef6\u6837\u4f8b")),"HDFS"===this.state.uploadType&&(0,i.default)(E,{help:""},void 0,h("filePath",{rules:[{max:100}],initialValue:this.file.filePath})((0,i.default)(p.default,{placeholder:"\u8bf7\u8f93\u8def\u5f84",onBlur:function(t){return e.getValBlur(t.target.value,"filePath")}}))),"FTP"===this.state.uploadType&&(0,i.default)("div",{style:{display:"initial"}},void 0,(0,i.default)(D,{style:{top:-.5,width:485},compact:!0},void 0,(0,i.default)(E,{help:""},void 0,h("sourceId",{rules:[{required:"FTP"===this.state.uploadType&&4===u}],initialValue:this.file.sourceId})((0,i.default)(f.default,{style:{width:150},onChange:function(t){return e.getValBlur(t,"sourceId")},placeholder:"\u8bf7\u9009\u62e9"},void 0,P,this.props.ftpDatas.map((function(e,t){return(0,i.default)(w,{value:e.id},t,e.storageName)}))))),(0,i.default)(E,{help:""},void 0,(0,i.default)(p.default,{disabled:!0,title:this.state.ftpPath,placeholder:this.state.ftpPath?this.state.ftpPath:"\u9ed8\u8ba4\u8def\u5f84",style:{width:80,borderRadius:0,height:32,marginLeft:20}})),(0,i.default)(E,{},void 0,h("originPath",{initialValue:this.file.originPath,validateTrigger:"onBlur",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8def\u5f84\uff01"},{max:200,message:"\u8def\u5f84\u957f\u5ea6\u4e0d\u5f97\u8d85\u8fc7200\u4e2a\u5b57\u7b26"}]})((0,i.default)(p.default,{style:{width:120,borderTopLeftRadius:0,borderBottomLeftRadius:0,height:32},placeholder:"\u8bf7\u8f93\u5165\u8def\u5f84",onBlur:function(t){return e.getValBlur(t.target.value,"originPath")}})))),(0,i.default)(E,{style:{display:"none"},help:""},void 0,(0,i.default)(n.default,{type:"ghost",onClick:function(){e.props.handelPreviewPic(e.file.sourceId,e.state.ftpPath+e.file.filePath)}},void 0,"\u9884\u89c8")))),"code"!==this.props.importFileType&&(0,i.default)(E,{help:""},void 0,u!==j.PUBLISH_FROM.CODE&&(0,i.default)(n.default,{onClick:this.props.saveFile,icon:L}),(0,i.default)(n.default,{style:{marginLeft:10},onClick:function(){e.props.deleteFile(a,6===e.file.fileType?6:null)},icon:N})),"code"===this.props.importFileType&&(0,i.default)(E,{help:""},void 0,(0,i.default)(r.default,{title:"\u4ee3\u7801\u5305\u4e0a\u4f20\u6587\u4ef6\u4e0d\u652f\u6301rar\u7c7b\u578b\u3001FTP\u4e0a\u4f20\u8bf7\u6307\u5b9a\u5230\u538b\u7f29\u6587\u4ef6"},void 0,(0,i.default)(v.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))))},t}(m.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(y.Form.create()(A))},"./src/module/modelBase/editPage/components/RelyInlayMirror.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.RelyInlayMirrorDom=void 0;var n=x(a("./node_modules/antd/es/button/index.js")),o=x(a("./node_modules/antd/es/row/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/babel-runtime/helpers/extends.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js")),u=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=x(a("./node_modules/react/index.js")),p=a("./node_modules/react-redux/es/index.js"),f=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./src/components/index.js"),v=a("./src/redux/services/modelMirror.js"),_=x(a("./src/module/modelMirror/serviceMirrorVersion/detailPage/MirrorResourceInfo.jsx")),y=a("./src/module/modelBase/modelEnums.js"),b=x(a("./node_modules/lodash/lodash.js"));function x(e){return e&&e.__esModule?e:{default:e}}var C=u.default.Option,j=h.Form.Item,S=t.RelyInlayMirrorDom=f.default.div.withConfig({displayName:"RelyInlayMirror__RelyInlayMirrorDom",componentId:"sc-195rjqr-0"})(["width:100%;.ant-btn.ant-btn-sm{padding:0 6px;}"]),I=(0,s.default)(C,{value:""},void 0,"\u8bf7\u9009\u62e9\u8bed\u8a00"),T=(0,s.default)(C,{value:""},void 0,"\u8bf7\u9009\u62e9\u5f15\u64ce"),w=(0,s.default)(C,{value:""},void 0,"\u8bf7\u9009\u62e9\u6846\u67b6"),E=(0,s.default)(C,{value:""},void 0,"\u8bf7\u9009\u62e9\u5185\u7f6e\u955c\u50cf"),D=(0,s.default)(C,{value:""},void 0,"\u8bf7\u9009\u62e9\u955c\u50cf\u7248\u672c"),M=(0,s.default)(m.SearchOutlined,{}),k=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.queryInitMirror=function(e,t){var a={isPage:"N",baseType:n.props.baseType?n.props.baseType:"BASE,TRAIN",sourceTypes:n.props.sourceTypes?n.props.sourceTypes:"IMPORT,ONLINEBUILD,INIT",engine:b.default.get(e,"engine",""),language:b.default.get(e,"language",""),frame:b.default.get(e,"languageVersion","")};t&&n.props.form.setFieldsValue({baseId:"",baseMirrorId:""}),(0,v.getModelMirrorList)({paramjson:a}).then((function(e){n.setState({baseMirrorList:e.data})}))},n.queryMirrorVersion=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,v.getMirrorVersionList)({paramsJson:{mirrorId:e,versionState:"SUCCESS"}}).then((function(e){n.setState({baseMirrorVersionList:e.data,mirrorVersionId:t})})),n.props.form.setFieldsValue({baseId:t})},n.openResourcesList=function(){n.setState({modalVisible:!0})},n.getValBlur=function(e,t){if(n.data[e]=t,"language"===e)n.props.form.setFieldsValue({languageVersion:"",baseMirrorId:"",baseId:""});else if("languageVersion"===e||"engine"===e)n.props.form.setFieldsValue({baseMirrorId:"",baseId:""});else if("baseMirrorId"===e&&t){if(n.props.mirrorShowName)for(var a=0;a<n.state.baseMirrorList.length;a++)if(n.state.baseMirrorList[a].mirrorId===t){n.data.mirrorShowName2=n.state.baseMirrorList[a].mirrorShowName;break}n.queryMirrorVersion(t)}"baseId"===e&&""!==t&&n.setState({mirrorVersionId:t}),n.data.language&&n.data.languageVersion&&n.data.engine||n.setState({baseMirrorList:[],baseMirrorVersionList:[]}),"baseMirrorId"!==e&&"baseId"!==e&&n.data.language&&n.data.languageVersion&&n.data.engine&&n.queryInitMirror(n.data)},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:e,moduleData:n.data}:{validate:e,errorMsg:"\u8bf7\u6b63\u786e\u9009\u62e9\u62e9\u8bad\u7ec3\u955c\u50cf\u4fe1\u606f"}},n.callVisible=function(){n.setState({modalVisible:!1})},n.updateLanguageVersion=function(){var e=n.languageVersionList;n.props.modelDeployType===y.DEPLOY_TYPE.TensorRT?e=e.filter((function(e){return e.name&&e.name.toLowerCase().includes("tensorrt")})):n.props.modelDeployType===y.DEPLOY_TYPE.OpenVINO?e=e.filter((function(e){return e.name&&e.name.toLowerCase().includes("openvino")})):n.props.modelDeployType===y.DEPLOY_TYPE.NORMAL&&(e=e.filter((function(e){return e.name&&!e.name.toLowerCase().includes("openvino")&&!e.name.toLowerCase().includes("tensorrt")}))),n.setState({languageVersionList:e}),b.default.find(e,{value:n.data.languageVersion})||(n.data.languageVersion="",n.props.form.setFieldsValue({languageVersion:""}))},n.data={language:b.default.get(a.data,"language",""),languageVersion:b.default.get(a.data,"languageVersion",""),engine:b.default.get(a.data,"runEngine")?b.default.get(a.data,"runEngine"):b.default.get(a.data,"engine",""),baseMirrorId:b.default.get(a.data,"mirrorId")?b.default.get(a.data,"mirrorId"):b.default.get(a.data,"baseMirrorId",""),baseId:b.default.get(a.data,"mirrorVersion")?b.default.get(a.data,"mirrorVersion"):b.default.get(a.data,"baseId","")},a.mirrorShowName&&(n.data.mirrorShowName2=b.default.get(a.data,"mirrorShowName","")),n.state={languageList:[],languageVersionList:[],engineList:[],baseMirrorList:[],baseMirrorVersionList:[],modalVisible:!1,mirrorVersionId:n.data.baseId};var o=n.props.setRelyInlayMirrorFunc;return n.languageVersionList=[],b.default.isFunction(o)&&o("relyInlayMirror",n.validateFun),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){b.default.isEqual(this.props.data,e.data)||(this.data=(0,r.default)({},this.props.data),this.props.form.setFieldsValue(this.data)),this.props.baseType&&(b.default.isEqual(this.props.baseType,e.baseType)||this.queryInitMirror(this.data,"type")),this.props.modelDeployType!==e.modelDeployType&&this.updateLanguageVersion()},t.prototype.componentDidMount=function(){var e=this;(0,v.getLanguageData)({pid:null,type:"language"}).then((function(t){e.setState({languageList:t.data})})),(0,v.getLanguageData)({pid:null,type:"frame"}).then((function(t){e.setState({languageVersionList:t.data}),e.languageVersionList=t.data})),(0,v.getLanguageData)({pid:null,type:"engine"}).then((function(t){e.setState({engineList:t.data}),e.updateLanguageVersion()})),this.data.baseMirrorId&&(this.queryInitMirror(this.data),this.queryMirrorVersion(this.data.baseMirrorId,this.data.baseId))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.languageList,i=a.languageVersionList,d=a.engineList,l=a.baseMirrorList,c=a.baseMirrorVersionList;return(0,s.default)(S,{},void 0,(0,s.default)(g.ModalView,{viewType:"view",modalTitle:"\u67e5\u770b\u4f9d\u8d56\u5305",onCancelType:!1,width:800,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,s.default)(_.default,{versionId:this.state.mirrorVersionId,size:"small",resourceFileType:"PACKAGE"})}),(0,s.default)(h.Form,{layout:"horizontal"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(j,{label:"\u955c\u50cf\u4fe1\u606f"},void 0,t("language",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bed\u8a00"}],initialValue:this.data.language})((0,s.default)(u.default,{onChange:function(t){return e.getValBlur("language",t)},style:{width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u8bed\u8a00",className:"sortType-cond",disabled:"view"===this.props.viewType},void 0,I,r.map((function(e,t){return(0,s.default)(C,{value:e.value},t,e.name)}))))),(0,s.default)(j,{},void 0,t("engine",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5f15\u64ce"}],initialValue:this.data.engine})((0,s.default)(u.default,{onChange:function(t){return e.getValBlur("engine",t)},style:{marginLeft:15,width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u5f15\u64ce",className:"sortType-cond",disabled:"view"===this.props.viewType},void 0,T,d.map((function(e,t){return(0,s.default)(C,{value:e.value},t,e.name)}))))),(0,s.default)(j,{},void 0,t("languageVersion",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6846\u67b6"}],initialValue:this.data.languageVersion})((0,s.default)(u.default,{onChange:function(t){return e.getValBlur("languageVersion",t)},style:{marginLeft:15,width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u6846\u67b6",className:"sortType-cond",disabled:"view"===this.props.viewType},void 0,w,i.map((function(e,t){return(0,s.default)(C,{value:e.value},t,e.name)})))))),(0,s.default)(o.default,{style:{marginLeft:70},className:"mirror-line-second"},void 0,(0,s.default)(j,{},void 0,t("baseMirrorId",{rules:[{required:!0,message:this.props.baseType?"\u8bf7\u9009\u62e9\u5185\u7f6e\u955c\u50cf":"\u8bf7\u9009\u62e9\u57fa\u7840\u955c\u50cf"}],initialValue:this.data.baseMirrorId})((0,s.default)(u.default,{showSearch:!0,style:{width:"317px"},onChange:function(t){return e.getValBlur("baseMirrorId",t)},placeholder:this.props.baseType?"\u8bf7\u9009\u62e9\u5185\u7f6e\u955c\u50cf":"\u8bf7\u9009\u62e9\u57fa\u7840\u955c\u50cf",className:"sortType-cond",disabled:"view"===this.props.viewType,dropdownRender:function(e){return(0,s.default)("div",{},void 0,e)}},void 0,E,l.map((function(e,t){return(0,s.default)(C,{value:e.mirrorId},t,e.mirrorShowName)}))))),(0,s.default)(j,{},void 0,t("baseId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u955c\u50cf\u7248\u672c"}],initialValue:this.data.baseId})((0,s.default)(u.default,{onChange:function(t){return e.getValBlur("baseId",t)},style:{marginLeft:15,width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u955c\u50cf\u7248\u672c",className:"sortType-cond",disabled:"view"===this.props.viewType},void 0,D,c.map((function(e,t){return(0,s.default)(C,{value:e.versionId},t,e.versionName)}))))),(0,s.default)(j,{style:{marginLeft:15}},void 0,this.state.mirrorVersionId&&(0,s.default)(n.default,{onClick:this.openResourcesList,title:"\u67e5\u770b\u4f9d\u8d56\u5305",type:"primary",shape:"circle",icon:M,size:"small"})))))},t}(c.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(h.Form.create()(k))},"./src/module/modelBase/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelBase/listPage/ModelBaseManagePage.jsx");Object.defineProperty(t,"ModelBaseManagePage",{enumerable:!0,get:function(){return i(n).default}});var o=a("./src/module/modelBase/editPage/ModelBaseInfoPage.jsx");Object.defineProperty(t,"ModelBaseInfoPage",{enumerable:!0,get:function(){return i(o).default}});var s=a("./src/module/modelBase/detailPage/ModelBaseDetailPage.jsx");Object.defineProperty(t,"ModelBaseDetailPage",{enumerable:!0,get:function(){return i(s).default}});var r=a("./src/module/modelBase/detailPage/ModelBaseInfoDetail.jsx");function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ModelBaseInfoDetail",{enumerable:!0,get:function(){return i(r).default}})},"./src/module/modelBase/listPage/ModelBaseManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=D(a("./node_modules/antd/es/button/index.js")),o=D(a("./node_modules/babel-runtime/helpers/jsx.js")),s=D(a("./node_modules/babel-runtime/helpers/extends.js")),r=D(a("./node_modules/antd/es/modal/index.js")),i=D(a("./node_modules/antd/es/message/index.js")),d=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=D(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=a("./node_modules/react/index.js"),p=(D(c),D(a("./node_modules/prop-types/index.js")),D(a("./node_modules/lodash/lodash.js"))),f=D(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=a("./src/routes/routeHelper.jsx"),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/utils/history.js"),v=D(a("./src/redux/services/sysManager/projectManage.js")),_=D(a("./src/components/auth/funAuth.jsx")),y=a("./src/config/ui-config.js"),b=a("./src/redux/reducers/modelBase.js"),x=D(a("./src/module/modelBase/listPage/SearchBar.jsx")),C=D(a("./src/module/modelBase/listPage/ModelCardView.jsx")),j=D(a("./src/module/modelBase/listPage/ModelListView.jsx")),S=D(a("./src/redux/selectors/enumDic.js")),I=a("./src/components/auth/switchAuth.jsx"),T=a("./src/redux/selectors/modelBase.js"),w=D(a("./src/module/modelBase/listPage/SharePage.jsx")),E=a("./src/components/index.js");function D(e){return e&&e.__esModule?e:{default:e}}var M=f.default.div.withConfig({displayName:"ModelBaseManagePage__PageWrapper",componentId:"ys8nt2-0"})(["display:flex;flex-direction:column;flex:1 1 auto;background:#fff;padding:20px;"]),k=f.default.div.withConfig({displayName:"ModelBaseManagePage__PageHeader",componentId:"ys8nt2-1"})(["position:relative;width:100%;z-index:20;border-bottom:1px solid #e8e8e8;height:57px;.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{float:right;right:0;margin-top:5px;}.saveButton{position:absolute;top:8px;}"]),P=f.default.div.withConfig({displayName:"ModelBaseManagePage__PageBody",componentId:"ys8nt2-2"})(["min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),L=f.default.div.withConfig({displayName:"ModelBaseManagePage__ModelsBox",componentId:"ys8nt2-3"})([""]),N=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.componentDidMount=function(){var e=(0,g.parseParms)(n.props.location),t=p.default.get(e,"modelName"),a=p.default.get(e,"publishFrom"),o=p.default.get(e,"dataType"),s=p.default.get(e,"sortType"),r=p.default.get(e,"repoId"),d=p.default.get(e,"labels");n.searchCond={repoId:void 0!==r?r:"default",modelName:void 0!==t?t:"",publishFrom:void 0!==a?a:"",dataType:void 0!==o?o:null,sortType:void 0!==s?s:"UPDATE_AT.DESC",labels:void 0!==d?d:[],busiType:n.businessType},n.fetchData(),v.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsData:e.data})})).catch((function(e){i.default.error(e.message)}))},n.toggleViewMode=function(e){n.state.viewMode!==e&&n.setState({viewMode:e})},n.changeSearchCond=function(e,t){"viewMode"===e?n.toggleViewMode(t):(n.searchCond[e]=p.default.trim(t),"busiType"===e&&(n.businessType=""),n.fetchData())},n.fetchData=function(){n.props.dispatch(b.modelBaseActions.getModelBaseListRequest(n.searchCond))},n.handleAction=function(e,t){var a=p.default.get(n,p.default.camelCase("handle_"+e+"_action"));a&&p.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.handleDeleteAction=function(e){n._handleAction(e,b.modelBaseActions.deleteModelBaseRequest,"\u5220\u9664\u6a21\u578b")},n._handleAction=function(e,t,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a+"[ "+e.modelName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(t((0,s.default)({modelInfo:e},o))),new Promise((function(t){p.default.defer((function(){var o=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(o),0===p.default.size(n.props.operateError)?i.default.success(a+"[ "+e.modelName+" ]\u6210\u529f!"):i.default.error(a+"[ "+e.modelName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.openVisible=function(e,t){t?n.setState({modelId:t.modelId,viewType:e}):n.setState({viewType:e}),(0,g.navigateTo)({pathname:m.modelBaseUrl.createModelBaseModel(n.searchCond.repoId),state:{applicationId:n.businessType,hasBoundApplication:n.businessType&&n.props.modelData.size>0}})},n.callVisible=function(){n.setState({modalShareVisible:!1})},n.openModalSharsVisible=function(e){n.modelId=e,n.setState({modalShareVisible:!0})},n.setShareLoading=function(e){n.setState({shareLoading:e})},n.state={viewMode:(0,I.hasFeatureAuths)("root.repo.enableCard")?"CARD":"LIST",modalShareVisible:!1,viewType:"",modelId:"",shareLoading:!1,applicationsData:[],intervalRefresh:!1},n.modelInfo=null,n.businessType=p.default.get(a,"location.state.applicationId",""),n.searchCond={busiType:n.businessType,repoId:"default",modelName:"",publishFrom:"",dataType:"",sortType:"UPDATE_AT.DESC",labels:[]},n.visibleInfo,n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this;return(0,o.default)(M,{},void 0,(0,o.default)(E.ModalView,{modalTitle:"\u6a21\u578b\u5206\u4eab",onCancelType:!1,confirmLoading:this.state.shareLoading,width:1200,callVisible:this.callVisible,modalVisible:this.state.modalShareVisible,okText:"\u63d0 \u4ea4",submitModalOk:function(){e.sharePage.submitModalOk()},comp:(0,o.default)(w.default,{onRef:function(t){e.sharePage=t},callVisible:this.callVisible,modelId:this.modelId,setShareLoading:this.setShareLoading})}),(0,o.default)(k,{},void 0,(0,o.default)(_.default,{permissions:["REPO_MODEL:IMPORT"],displayType:"hide"},void 0,(0,o.default)(n.default,{onClick:function(){e.openVisible("create")},className:"saveButton",type:"primary"},void 0,"\u5bfc\u5165\u6a21\u578b")),(0,o.default)(x.default,{applicationsData:this.state.applicationsData,busiType:this.searchCond.busiType,dataType:this.searchCond.dataType,publishFrom:this.searchCond.publishFrom,viewMode:this.state.viewMode,modelName:this.searchCond.modelName,sortField:this.searchCond.sortType,onChange:this.changeSearchCond})),(0,o.default)(P,{},void 0,(0,o.default)(L,{},void 0,"CARD"===this.state.viewMode?(0,o.default)(C.default,{openVisible:function(t,a){e.openVisible(t,a)},repoId:this.searchCond.repoId,openModalSharsVisible:this.openModalSharsVisible,openError:this.openError,statusColorMap:y.MODEL_BASE_STATUS_COLOR_MAP,onHandleAction:this.handleAction}):(0,o.default)(j.default,{openModalSharsVisible:this.openModalSharsVisible,openError:this.openError,statusColorMap:y.MODEL_BASE_STATUS_COLOR_MAP,onHandleAction:this.handleAction}))))},t}(c.Component);N.defaultProps={opreateLoading:!1};t.default=(0,h.connect)((function(e){return{modelData:(0,T.selectModelBaseList)(e),operateError:(0,T.selectOperateError)(e),dicHelper:(0,S.default)(e),opreateLoading:(0,T.selectOperateLoading)(e)}}))(N)},"./src/module/modelBase/listPage/ModelCardView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o=y(a("./node_modules/babel-runtime/helpers/jsx.js")),s=y(a("./node_modules/babel-runtime/helpers/extends.js")),r=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=y(a("./node_modules/babel-runtime/helpers/inherits.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelBase\\listPage\\ModelCardView.jsx",u=y(a("./node_modules/react/index.js")),c=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/lodash/lodash.js"))),f=(a("./node_modules/immutable3/dist/immutable.js"),a("./node_modules/react-redux/es/index.js")),m=a("./src/module/modelBase/listPage/components/index.js"),h=a("./src/components/index.js"),g=a("./src/components/exception/index.js"),v=a("./node_modules/react-virtualized/dist/es/index.js"),_=a("./src/redux/selectors/modelBase.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=(0,y(a("./src/containers/toJS.jsx")).default)(m.ModelCardItem),x=220,C=250,j=20,S=c.default.div.withConfig({displayName:"ModelCardView__ModelCardViewWrapper",componentId:"sc-1id9om1-0"})(["display:flex;min-height:500px;flex-direction:row;justify-content:space-between;align-content:flex-start;flex-wrap:wrap;flex:1 1 auto;overflow:hidden;.ReactVirtualized__Masonry__innerScrollContainer{overflow:visible !important;margin-bottom:50px;}"]),I=(0,o.default)(h.LoadingIndicator,{}),T=(0,g.withErrorBoundary)(n=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n._initMasonry=function(e){n._colWidth=n._calcColWidth(e),n._cache||(n._cache=new v.CellMeasurerCache({defaultHeight:C,defaultWidth:n._colWidth,fixedWidth:!0,fixedHeight:!0,minWidth:n._colWidth})),n._cellPositioner||(n._cellPositioner=(0,v.createMasonryCellPositioner)({cellMeasurerCache:n._cache,columnCount:n._calculateColumnCount(e),columnWidth:n._colWidth,spacer:j}))},n._calculateColumnCount=function(e){return Math.floor(e/(x+j))},n._cellRenderer=function(e){var t=e.index,a=e.parent,r=e.style,i=n.props,d=i.repoId,l=i.modelData,u=i.onHandleAction,c=i.statusColorMap,f=i.openModalSharsVisible,h=(0,s.default)({},r,{top:(r.top||0)+15},{width:n._colWidth});if(0===t)return(0,o.default)(v.CellMeasurer,{cache:n._cache,index:t,parent:a},"CREATE",(0,o.default)(m.ModelCardItermCreate,{repoId:d,style:h},"CREATE"));var g=l.get(t-1);return g?(0,o.default)(v.CellMeasurer,{cache:n._cache,index:t,parent:a},g.get("modelId")+p.default.uniqueId(),(0,o.default)(b,{openError:n.props.openError,modelInfo:g,statusColor:p.default.get(c,g.get("modelStatus"),""),style:h,dicHelper:n.props.dicHelper,"data-id":g.get("modelId"),onHandleAction:u,openModalSharsVisible:f},g.get("modelId"))):void 0},n._setMasonryRef=function(e){return n._masonry=e},n._calcColWidth=function(e){var t=void 0;if(e>0){var a=n._calculateColumnCount(e);t=x+(e-(x*a+j*(a-1)))/a}return p.default.isFinite(t)?t:x},n.renderMasonry=function(e){var t=e.height,a=e.registerChild,o=e.scrollTop;return function(e){var s=e.width,r=n.props.modelData;if(!p.default.isUndefined(s)&&0!==s)return n._width=s,n._initMasonry(s),u.default.createElement("div",{ref:a,__source:{fileName:l,lineNumber:145}},u.default.createElement(v.Masonry,{autoHeight:!0,cellCount:r.size+1,cellMeasurerCache:n._cache,cellPositioner:n._cellPositioner,cellRenderer:n._cellRenderer,height:t,scrollTop:o,overscanByPixels:500,width:s,tabIndex:-1,ref:n._setMasonryRef,__source:{fileName:l,lineNumber:146}}))}},n._handleResize=function(e){var t=e.width;p.default.isUndefined(t)||0===t||(n._colWidth=n._calcColWidth(n._width),n._masonry&&n._cache&&(n._cache.clearAll(),n.setState({columnWidth:n._colWidth},(function(){n._cellPositioner.reset({columnCount:n._calculateColumnCount(t),columnWidth:n._colWidth,spacer:j}),n._masonry&&n._masonry.clearCellPositions()}))))},n._renderAutoSizer=function(e){var t=e.height,a=e.isScrolling,s=e.registerChild,r=e.scrollTop,i=e.onChildScroll;return(0,o.default)(v.AutoSizer,{disableHeight:!0,height:t,onResize:n._handleResize,overscanByPixels:500},void 0,n.renderMasonry({height:t,isScrolling:a,registerChild:s,scrollTop:r,onChildScroll:i}))},n.state={columnWidth:x,modalErrorVisible:!1},n}return(0,d.default)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return(this.props.loading!=e.loading||this.props.modelData!==e.modelData||this.state.columnWidth!==t.columnWidth)&&(this.props.modelData!==e.modelData&&(this._cache&&this._cache.clearAll(),this._colWidth=this._calcColWidth(this._width),this._cellPositioner&&this._cellPositioner.reset({columnCount:this._calculateColumnCount(this._width),columnWidth:this._colWidth,spacer:j}),this._masonry&&this._masonry.clearCellPositions()),!0)},t.prototype.render=function(){var e=this.props.loading;return(0,o.default)(S,{className:"animated fadeIn"},void 0,e&&I,!e&&(0,o.default)(v.WindowScroller,{scrollingResetTimeInterval:500,overscanByPixels:500},void 0,this._renderAutoSizer))},t}(u.default.Component))||n;T.defaultProps={loading:!0};t.default=(0,f.connect)((function(e){return{modelData:(0,_.selectModelBaseList)(e),loading:(0,_.selectModelBaseLoading)(e)}}))(T)},"./src/module/modelBase/listPage/ModelListView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/table/index.js")),o=_(a("./node_modules/antd/es/tooltip/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=_(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var l=_(a("./node_modules/react/index.js")),u=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/lodash/lodash.js"))),p=(a("./node_modules/immutable3/dist/immutable.js"),_(a("./src/redux/services/modelVersion.js"))),f=a("./node_modules/react-redux/es/index.js"),m=a("./src/components/index.js"),h=a("./src/utils/history.js"),g=a("./src/routes/routeHelper.jsx"),v=a("./src/redux/selectors/modelBase.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=u.default.div.withConfig({displayName:"ModelListView__ModelListViewWrapper",componentId:"sc-1eqh4yh-0"})(["margin-top:15px;width:100%;transition:opacity 0.5s ease-in;"]),b=(0,s.default)(m.LoadingIndicator,{}),x=(0,s.default)(m.NoData,{}),C=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.exportOpen=function(e,t){p.default.exportVersionFile(e,t)},n.state={},n.columns=[{title:"\u5e8f\u53f7",dataIndex:"numIndex",width:60,render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u6a21\u578b\u540d\u79f0",dataIndex:"modelName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"statistics",title:"\u6700\u65b0\u7248\u672c",width:85,ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:c.default.get(e,"latestVersion.versionName")},void 0,c.default.get(e,"latestVersion.versionName"))}},{dataIndex:"statistics",title:"\u7248\u672c\u6570\u91cf",width:85,render:function(e){var t=0;if(e&&e.versionStats)for(var a in e.versionStats)t+=e.versionStats[a];return t+" \u4e2a"}},{dataIndex:"createBy",title:"\u521b\u5efa\u4eba",ellipsis:!0,width:100,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"createAt",title:"\u521b\u5efa\u65f6\u95f4",width:150,ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"updateAt",title:"\u66f4\u65b0\u65f6\u95f4",width:150,ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",key:"modelId",width:180,render:function(e,t){var a=c.default.get(t,"statistics.latestVersion",null);if(a){var o=[{handleName:"\u67e5\u770b",handleAction:function(){(0,h.navigateTo)(g.modelBaseUrl.viewModel(t.modelId,a.versionId))}},{handleName:"\u4fee\u6539",handleAction:function(){(0,h.navigateTo)(g.modelBaseUrl.editModel(t.modelId))}}];return c.default.indexOf([3,5,6],c.default.get(a,"versionStatus")),c.default.get(a,"versionName")||-1===c.default.indexOf([3,5,6],c.default.get(t,"versionStatus"))||o.push({handleName:"\u5220\u9664",handleAction:function(){n.props.onHandleAction("DELETE",t)}}),(0,s.default)(m.ListButtons,{buttons:o,maxShowNum:3})}return(0,s.default)(m.ListButtons,{buttons:[],maxShowNum:3})}}],n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,a=e.modelData,o=a.size>0?a.toJS():[];return(0,s.default)(y,{},void 0,t&&b,!t&&0!==o.length&&(0,s.default)(n.default,{dataSource:o,rowKey:"modelId",bordered:!0,pagination:!0,columns:this.columns}),!t&&0===o.length&&x)},t}(l.default.PureComponent);t.default=(0,f.connect)((function(e){return{modelData:(0,v.selectModelBaseList)(e),loading:(0,v.selectModelBaseLoading)(e)}}))(C)},"./src/module/modelBase/listPage/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/input/index.js")),d=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=m(a("./node_modules/react/index.js")),u=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=m(a("./src/components/selector/ToggleSelect.jsx")),p=a("./src/config/ui-config.js"),f=a("./src/components/auth/switchAuth.jsx");function m(e){return e&&e.__esModule?e:{default:e}}var h=d.default.Option,g=i.default.Search,v=u.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"kt8osq-0"})(["display:flex;align-items:center;.sortType-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),y={width:"130px"},b=(0,n.default)(h,{value:""},void 0,"\u5168\u90e8\u5e94\u7528"),x=(0,n.default)(h,{value:"UPDATE_AT.DESC"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),C=(0,n.default)(h,{value:"CREATE_AT.DESC"},void 0,"\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),j=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.changeServiceType=function(e){e.length>1&&n.setState({width:130+30*e.length}),n.props.onChange("labels",e)},n.doSearch=function(e){n.props.onChange("modelName",e)},n.searchOnBlur=function(e){n.props.onChange("modelName",e.target.value)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={width:130},n.changeBusiType=n.changeSelect("busiType"),n.changeSortField=n.changeSelect("sortType"),n.changeViewMode=n.changeSelect("viewMode"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(v,{className:"search-bar"},void 0,(0,n.default)(c.default,{enableCard:(0,f.hasFeatureAuths)("root.repo.enableCard"),ds:p.MODEL_MGR_VIEW_MODE,onChange:this.changeViewMode,selectItem:this.props.viewMode}),(0,n.default)(d.default,{showSearch:!0,onChange:this.changeBusiType,style:y,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528",defaultValue:this.props.busiType,className:"sortType-cond",filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,b,this.props.applicationsData.map((function(e){return(0,n.default)(h,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)}))),(0,n.default)(d.default,{onChange:this.changeSortField,style:y,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sortType-cond"},void 0,x,C),(0,n.default)(g,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",defaultValue:this.props.modelName,onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}}))},t}(l.default.Component);t.default=j},"./src/module/modelBase/listPage/SharePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/babel-runtime/helpers/jsx.js")),s=v(a("./node_modules/antd/es/message/index.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var l=v(a("./node_modules/react/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./src/components/index.js"),f=(v(a("./node_modules/prop-types/index.js")),v(a("./src/redux/services/modelBase.js"))),m=v(a("./src/redux/services/sysManager/userManager.js")),h=v(a("./src/redux/services/sysManager/userGroupsManager.js")),g=v(a("./src/module/modelBase/listPage/SharePageSetting.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var y={width:"100%",display:"inline"},b=(0,o.default)(c.PlusOutlined,{}),x=(0,o.default)(p.LoadingIndicator,{position:"relative"}),C=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.componentDidMount=function(){n.props.onRef(n),n.setState({loading:!0}),h.default.loadUserGroupsList().then((function(e){e&&n.setState({userListGroups:e.data})})).catch((function(e){s.default.error(e.message)})),m.default.loadUserList().then((function(e){e&&n.setState({userList:e.data})})).catch((function(e){s.default.error(e.message)})),f.default.loadShare(n.props.modelId).then((function(e){if(e&&_.get(e,"data",[]).length>0){for(var t=[],a=0;a<e.data.length;a++){var o=e.data[a];o.key=_.uniqueId(),t.push(o)}n.setState({shareList:t.concat([])})}n.setState({loading:!1})})).catch((function(e){n.setState({loading:!1}),s.default.error(e.message)}))},n.addShare=function(){var e=n.state.shareList;e.push({key:_.uniqueId(),shareType:1,shareId:[],authOperates:""}),n.setState({shareList:e.concat([])})},n.deleteShare=function(e){var t=n.state.shareList;t.splice(e,1),n.setState({shareList:t.concat([])})},n.onChange=function(e,t){var a=n.state.shareList;a[e]=t,n.setState({shareList:a.concat([])})},n.submitModalOk=function(){var e=!0;if(Object.keys(n.validateFuncs).map((function(t){var a=n.validateFuncs[t];if(_.isFunction(a)){var o=a.call();e&&(e=o.validate)}})),e){for(var t=[].concat(n.state.shareList),a=0;a<t.length;a++)delete t[a].key;n.saveData(t)}},n.saveData=function(e){n.props.setShareLoading(!0),f.default.saveShare(e,n.props.modelId).then((function(){n.props.setShareLoading(!1),s.default.success("\u5206\u4eab\u6210\u529f\uff01"),n.props.callVisible()})).catch((function(e){n.props.setShareLoading(!1),s.default.error(e.message)}))},n.state={userList:[],userListGroups:[],shareList:[{key:_.uniqueId(),shareType:1,shareId:[],authOperates:""}],loading:!1},n.validateFuncs={},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.shareList,s=t.userList,r=t.userListGroups;return(0,o.default)(p.ModelConfigPanel,{title:"\u6307\u5b9a\u7528\u6237(\u7ec4)",style:y},void 0,0===a.length&&(0,o.default)(n.default,{icon:b,type:"primary",ghost:!0,style:{marginLeft:-5,width:100},onClick:function(){e.addShare()}},void 0,"\u6dfb \u52a0"),this.state.loading&&x,!this.state.loading&&a.map((function(t,n){return(0,o.default)(g.default,{index:n,data:t,userList:s,userListGroups:r,addShare:e.addShare,deleteShare:e.deleteShare,onChange:e.onChange,setValidateFunc:e.setValidateFunc,shareList:a},t.key)})))},t}(l.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(C)},"./src/module/modelBase/listPage/SharePageSetting.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/button/index.js")),o=m(a("./node_modules/babel-runtime/helpers/jsx.js")),s=m(a("./node_modules/babel-runtime/helpers/extends.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js")),l=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=m(a("./node_modules/react/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");m(a("./node_modules/prop-types/index.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=l.default.Option,g=f.Form.Item,v=(0,o.default)(h,{value:1},void 0,"\u7528\u6237"),y=(0,o.default)(h,{value:2},void 0,"\u7528\u6237\u7ec4"),b=(0,o.default)("span",{},void 0,"\u6388\u6743"),x=(0,o.default)(h,{value:""},void 0,"\u8bf7\u9009\u62e9"),C=(0,o.default)(p.PlusOutlined,{}),j=(0,o.default)(p.CloseOutlined,{}),S=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:n.data}},n.updateShare=function(e,t){"shareType"===t&&(""!==n.oldData.authOperates&&n.oldData.shareType===e?(n.data.shareId=n.oldData.shareId,n.data.authOperates=n.oldData.authOperates):(n.data.shareId=[],n.data.authOperates="",n.props.form.setFieldsValue({authOperates:""}))),n.data[t]=e,n.props.onChange(n.props.index,(0,s.default)({},n.data))},n.disabledBool=function(e){var t=n;return-1!==_.findIndex(n.props.shareList,(function(a){if(a.shareType===t.data.shareType)return a.authOperates===e}))},n.data=a.data,n.oldData=(0,s.default)({},a.data);var o=n.props,d=o.setValidateFunc,l=o.index;return _.isFunction(d)&&d("sharePageSetting"+l,n.validateFun),n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.userList,s=t.userListGroups,r=t.index,i=this.props.form.getFieldDecorator;return(0,o.default)(f.Form,{style:{marginTop:0===r?0:10},layout:"inline"},void 0,(0,o.default)(g,{help:""},void 0,i("shareType",{rules:[{required:!0}],initialValue:this.data.shareType})((0,o.default)(l.default,{style:{width:100},onChange:function(t){return e.updateShare(t,"shareType")},placeholder:"\u8bf7\u9009\u62e9"},void 0,v,y))),(0,o.default)(g,{help:""},void 0,i("shareId",{rules:[{required:!0}],initialValue:this.data.shareId})((0,o.default)(l.default,{showSearch:!0,optionFilterProp:"children",onChange:function(t){return e.updateShare(t,"shareId")},mode:"multiple",getPopupContainer:function(e){return e.parentNode},style:{marginLeft:10,width:500},tokenSeparators:[","]},void 0,""!==this.data.shareType&&(1===this.data.shareType?a.map((function(e,t){return(0,o.default)(h,{value:e.userId},t,e.userName)})):s.map((function(e,t){return(0,o.default)(h,{value:e.groupId},t,e.groupName)})))))),(0,o.default)(g,{help:""},void 0,b,i("authOperates",{rules:[{required:!0}],initialValue:this.data.authOperates})((0,o.default)(l.default,{style:{marginLeft:20,width:100},onChange:function(t){return e.updateShare(t,"authOperates")},placeholder:"\u8bf7\u9009\u62e9"},void 0,x,(0,o.default)(h,{value:"1",disabled:this.disabledBool("1")},void 0,"\u4ec5\u67e5\u770b"),(0,o.default)(h,{value:"2",disabled:this.disabledBool("2")},void 0,"\u53ef\u4f7f\u7528"),(0,o.default)(h,{value:"3",disabled:this.disabledBool("3")},void 0,"\u53ef\u4fee\u6539")))),(0,o.default)(g,{help:""},void 0,(0,o.default)("div",{},void 0,(0,o.default)(n.default,{icon:C,type:"primary",ghost:!0,style:{marginLeft:20},onClick:function(){e.props.addShare()}},void 0,"\u6dfb \u52a0"),(0,o.default)(n.default,{icon:j,type:"danger",ghost:!0,onClick:function(){e.props.deleteShare(r)},style:{marginLeft:20}},void 0,"\u5220\u9664"))))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(f.Form.create()(S))},"./src/module/modelBase/listPage/components/ModelCardItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/message/index.js")),o=b(a("./node_modules/antd/es/divider/index.js")),s=b(a("./node_modules/babel-runtime/helpers/extends.js")),r=b(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),i=b(a("./node_modules/babel-runtime/helpers/jsx.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/divider/style/index.js");var c=a("./node_modules/react/index.js"),p=b(c),f=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/copy-to-clipboard/index.js"))),m=a("./node_modules/react-redux/es/index.js"),h=b(a("./src/components/button/index.js")),g=a("./src/utils/history.js"),v=a("./src/routes/routeHelper.jsx"),y=a("./src/module/modelBase/listPage/components/modelCard-style.jsx");function b(e){return e&&e.__esModule?e:{default:e}}var x=h.default.GhostButton,C=(0,i.default)(o.default,{}),j=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.showFuncPanel=function(){n.setState({showFuncPanel:!0})},n.hideFuncPanel=function(){n.setState({showFuncPanel:!1})},n.state={showFuncPanel:!1},n}return(0,u.default)(t,e),t.prototype.renderFuncPanel=function(){var e=this,t=_.get(this.props.modelInfo,"statistics.latestVersion.versionName",null),a=_.get(this.props.modelInfo,"modelId","");return(0,i.default)(y.ModelFunctionPanel,{className:"flipInX animated"},void 0,(0,i.default)("div",{className:"clear-fix btn-group"},void 0,(0,i.default)(x,{onClick:function(){return(0,g.navigateTo)(v.modelBaseUrl.viewModel(a))},action:"EDIT",btnType:"small",width:"20",txt:"\u4fee\u6539",className:"fn-left"}),!t&&(0,i.default)(x,{action:"DELETE",btnType:"small",width:"20",txt:"\u5220\u9664",className:"fn-right",onClick:function(){return e.props.onHandleAction("DELETE",e.props.modelInfo)}})),C,t&&(0,i.default)(x,{onClick:function(){return(0,g.navigateTo)(v.modelVersionUrl.modelVersion(e.props.modelInfo.modelId))},style:{marginBottom:"5px"},action:"LOOK",txt:"\u67e5\u770b\u7248\u672c"}))},t.prototype.render=function(){var e=this.props,t=e.width,a=void 0===t?220:t,n=e.statusColor,o=void 0===n?"":n,d=e.modelInfo,l=void 0===d?{}:d,u=(0,r.default)(e,["width","statusColor","modelInfo"]);return p.default.createElement(y.CardWrapper,(0,s.default)({width:a,statusColor:o,onMouseEnter:this.showFuncPanel,onMouseLeave:this.hideFuncPanel},_.omit(u,["onHandleAction"]),{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelBase\\listPage\\components\\ModelCardItem.jsx",lineNumber:83}}),(0,i.default)(S,{modelInfo:l,onHandleAction:this.props.onHandleAction}),this.state.showFuncPanel&&this.renderFuncPanel())},t}(c.Component),S=function(e){function t(){var a,o,s;(0,d.default)(this,t);for(var r=arguments.length,i=Array(r),u=0;u<r;u++)i[u]=arguments[u];return a=o=(0,l.default)(this,e.call.apply(e,[this].concat(i))),o.titleClick=function(e){(0,f.default)(e),n.default.success("\u590d\u5236\u6210\u529f\uff01")},s=a,(0,l.default)(o,s)}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.modelInfo;return(0,i.default)(p.default.Fragment,{},void 0,(0,i.default)(y.ModelInfo,{},void 0,(0,i.default)(y.ModelLabel,{},void 0,(0,i.default)("span",{className:"model-label-r"},void 0,_.get(t,"statistics.latestVersion.versionName","--"))),(0,i.default)("p",{title:"\u70b9\u51fb\u590d\u5236\u540d\u79f0",onClick:function(){e.titleClick(t.modelName)},className:"model-title"},void 0,t.modelName),(0,i.default)(y.ModelStatusTop,{},void 0,(0,i.default)("span",{},void 0,"\u521b\u5efa\u4eba: ",_.get(t,"createBy","--")))),(0,i.default)(y.ModelProgress,{},void 0,(0,i.default)("div",{className:"progress-desc"},void 0,_.get(t,"modelDesc","--"))),(0,i.default)(y.CardFooter,{},void 0,_.get(t,"updateAt",null)&&""!==_.get(t,"updateAt","")?"\u66f4\u65b0\u65f6\u95f4\uff1a":"\u521b\u5efa\u65f6\u95f4\uff1a",_.get(t,"updateAt",null)&&""!==_.get(t,"updateAt","")?_.get(t,"updateAt","--"):_.get(t,"createAt","--")))},t}(p.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(j)},"./src/module/modelBase/listPage/components/ModelCardItermCreate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=p(a("./node_modules/antd/es/button/index.js")),s=p(a("./node_modules/babel-runtime/helpers/jsx.js")),r=p(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js"));a("./node_modules/antd/es/button/style/index.js");var i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(a("./node_modules/prop-types/index.js"),a("./src/components/Icon/index.js")),u=a("./src/utils/history.js"),c=a("./src/routes/routeHelper.jsx");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.div.withConfig({displayName:"ModelCardItermCreate__CardWrapper",componentId:"sc-1uev9fw-0"})(["border:1px dashed #ccd5e0;border-radius:4px;display:flex;justify-content:center;align-items:center;flex-direction:column;margin:0 20px 0 0;width:","px;height:250px;user-select:none;.hint{color:#dcdfe4;font-weight:600;}"],(function(e){return e.width})),m=(0,s.default)("p",{},void 0,(0,s.default)(l.IconSvg,{type:"create",size:36})),h=(0,s.default)("p",{className:"hint"},void 0,"\u70b9\u51fb\u5bfc\u5165\u6a21\u578b");t.default=function(e){var t=e.width,a=void 0===t?220:t,d=(0,r.default)(e,["width"]);return i.default.createElement(f,(0,n.default)({width:a},d,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelBase\\listPage\\components\\ModelCardItermCreate.jsx",lineNumber:27}}),m,h,(0,s.default)("p",{},void 0,(0,s.default)(o.default,{onClick:function(){(0,u.navigateTo)(c.modelBaseUrl.createModelBaseModel(d.repoId))},type:"primary"},void 0,"\u5bfc\u5165\u6a21\u578b")))}},"./src/module/modelBase/listPage/components/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelBase/listPage/components/ModelCardItermCreate.jsx");Object.defineProperty(t,"ModelCardItermCreate",{enumerable:!0,get:function(){return s(n).default}});var o=a("./src/module/modelBase/listPage/components/ModelCardItem.jsx");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ModelCardItem",{enumerable:!0,get:function(){return s(o).default}})},"./src/module/modelBase/listPage/components/modelCard-style.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelFunctionPanel=t.CardFooter=t.ModelProgress=t.ModelStatus=t.ModelStatusTop=t.ModelInfo=t.ModelLabel=t.CardWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./node_modules/polished/dist/polished.es.js");t.CardWrapper=s.default.div.withConfig({displayName:"modelCard-style__CardWrapper",componentId:"u82all-0"})(["position:relative;border:1px solid #ccd5e0;border-radius:4px;border-top:5px solid ",";width:","px;height:250px;margin-right:20px;margin-bottom:20px;user-select:none;background:#fff;cursor:pointer;&:hover{box-shadow:0 2px 4px 0 rgba(0,0,0,0.15);transition:transform 0.5s;transform:translateY(-5px);}"],(function(e){return e.statusColor}),(function(e){return e.width})),t.ModelLabel=s.default.div.withConfig({displayName:"modelCard-style__ModelLabel",componentId:"u82all-1"})(["",";height:30px;.model-label-l,.model-label-r{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:5px;font-size:10px;letter-spacing:1px;line-height:14px;}.model-label-l{float:left;padding:2px 10px;background:#ccd5e0;color:#ffffff;}.model-label-r{float:right;padding:2px 0;color:#a2b0c4;}"],(0,r.clearFix)()),t.ModelInfo=s.default.div.withConfig({displayName:"modelCard-style__ModelInfo",componentId:"u82all-2"})(["padding:10px;background-size:contain;.model-title{word-wrap:break-word;text-align:center;height:30px;margin-top:10px;letter-spacing:0;line-height:22px;width:100%;font-size:14px;color:#475669;}.model-creator{margin:0;text-align:center;color:#a1b0c1;}"]),t.ModelStatusTop=s.default.div.withConfig({displayName:"modelCard-style__ModelStatusTop",componentId:"u82all-3"})(["text-align:center;margin-right:5px;padding:0,5,5,5;span{padding-left:5px;}"]),t.ModelStatus=s.default.div.withConfig({displayName:"modelCard-style__ModelStatus",componentId:"u82all-4"})(["text-align:center;margin-right:5px;padding:5px;span{padding-left:5px;}"]),t.ModelProgress=s.default.div.withConfig({displayName:"modelCard-style__ModelProgress",componentId:"u82all-5"})(["",";position:relative;overflow:hidden;border-top:1px solid #edecf1;border-bottom:1px solid #edecf1;min-height:80px;max-height:80px;.progress-desc{text-overflow:-o-ellipsis-lastline;color:#475669;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;line-clamp:2;text-align:center;-webkit-box-orient:vertical;font-size:12px;padding:7px 15px 7px 15px;}.progress-chart{float:left;width:30%;height:100%;justify-content:center;align-items:center;display:flex;.ant-progress-circle-path{stroke:#47b2fb;}.ant-progress-status-success .ant-progress-circle-path{stroke:#00cf9b;}.ant-progress-status-exception .ant-progress-circle-path{stroke:#fb6362;}}.progress-stage{float:right;width:70%;height:100%;padding:5px 0 0 20px;p{margin-bottom:2px;}}"],(0,r.clearFix)()),t.CardFooter=s.default.div.withConfig({displayName:"modelCard-style__CardFooter",componentId:"u82all-6"})(["height:40px;line-height:40px;text-align:center;"]),t.ModelFunctionPanel=s.default.div.withConfig({displayName:"modelCard-style__ModelFunctionPanel",componentId:"u82all-7"})(["position:absolute;top:84px;left:0;width:100%;z-index:2;background-image:linear-gradient( to bottom,rgba(255,255,255,0) -50%,rgba(255,255,255,0.6) 50%,rgba(255,255,255,1) 65% );display:flex;flex-direction:column;justify-content:flex-end;padding:20px;.ant-divider{margin:10px 0;}"])},"./src/module/modelBase/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.CODE_SELECT_FILE_TYPE=t.DEPLOY_TYPE=t.MODEL_TYPE=t.PACKAGES_STATUS=t.INTERFACE_TYPE=t.MODEL_VERSION_STATUS=t.FILE_SOURCE=t.PACKAGE_USE_TYPE=t.CODE_FILE_TYPE=t.FILE_TYPE=t.RUN_ENGINE=t.DATA_TYPE=t.PUBLISH_FROM=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};t.PUBLISH_FROM=(0,s.default)({WIZARD:[1,"\u5411\u5bfc\u5f0f"],CODE:[2,"\u7f16\u7801\u5f0f"],DRAGDROP:[3,"\u62d6\u62fd\u5f0f"],IMPORT:[4,"\u955c\u50cf\u5bfc\u5165"],THIRD_PARTY:[5,"\u7b2c\u4e09\u65b9"],MODEL_IMPORT:[6,"\u6a21\u578b\u5bfc\u5165"],UNKNOW:[9,"\u672a\u77e5"]}),t.DATA_TYPE=(0,s.default)({STRUCTURED:[1,"\u7ed3\u6784\u5316"],IMG:[2,"\u56fe\u7247"],TXT:[3,"\u6587\u672c"],VIDEO:[4,"\u89c6\u9891"],VOICE:[5,"\u97f3\u9891"],UNKNOW:[9,"\u672a\u77e5"]}),t.RUN_ENGINE=(0,s.default)({CPU:[1,"CPU"],GPU:[2,"GPU"],SPARK:[3,"Spark"]}),t.FILE_TYPE=(0,s.default)({MODEL:["model","\u6a21\u578b\u6587\u4ef6"],ONLINE_REASONING_CODE:["online_reasoning_code","\u5728\u7ebf\u63a8\u7406\u63a5\u53e3\u6587\u4ef6"],DATA:["data","\u6570\u636e\u6587\u4ef6"],OTHER_FILE:["other_file","\u5176\u4ed6\u6587\u4ef6"]}),t.CODE_FILE_TYPE=(0,s.default)({ONLINE_CODE_PACKAGE:["online_code_package","\u5728\u7ebf\u63a8\u7406"]}),t.PACKAGE_USE_TYPE=(0,s.default)({ONLINE_REASONING:["online_reasoning","\u5728\u7ebf\u63a8\u7406"],OFFLINE_REASONING:["offline_reasoning","\u79bb\u7ebf\u63a8\u7406"],FLOW_REASONING:["streaming_reasoning","\u6d41\u5f0f\u63a8\u7406"]}),t.FILE_SOURCE=(0,s.default)({FTP:["FTP","FTP\u6587\u4ef6\u4e0b\u8f7d"],UPLOAD_WEB:["UPLOAD_WEB","\u672c\u5730\u6587\u4ef6\u4e0a\u4f20"]}),t.MODEL_VERSION_STATUS=(0,s.default)({CREATING:[1,"\u521b\u5efa\u4e2d"],NO_DEPLOY:[2,"\u521b\u5efa\u4e2d"],WAIT_DEPLOY:[3,"\u53ef\u90e8\u7f72"],OFFLINE:[4,"\u5df2\u4e0b\u7ebf"],DEPLOYED:[5,"\u53ef\u90e8\u7f72"],DEPLOY_FAIL:[6,"\u90e8\u7f72\u5931\u8d25"]}),t.INTERFACE_TYPE=(0,s.default)({ONLINE:["ONLINE","\u5728\u7ebf\u63a8\u7406\u63a5\u53e3"]}),t.PACKAGES_STATUS=(0,s.default)({CREATING:["creating","\u521b\u5efa\u4e2d"],CREATED:["created","\u5df2\u521b\u5efa"],FAILED:["failed","\u5931\u8d25"]}),t.MODEL_TYPE=(0,s.default)({NORMAL:["NORMAL","\u5e38\u89c4"],ONNX:["ONNX","ONNX"],CAFFE:["Caffe","Caffe"],UFF:["UFF","UFF"],TRT:["TRT","TRT"],"BIN+XML":["BIN+XML","BIN+XML"]}),t.DEPLOY_TYPE=(0,s.default)({NORMAL:["NORMAL","\u5e38\u89c4"],TensorRT:["TensorRT","TensorRT"],OpenVINO:["Openvino","OpenVINO"]}),t.CODE_SELECT_FILE_TYPE=(0,s.default)({MODEL:[1,"\u6a21\u578b\u6587\u4ef6"],DATA:[2,"\u6570\u636e\u6587\u4ef6"],OTHER_FILE:[-1,"\u5176\u4ed6\u6587\u4ef6"]})},"./src/module/modelBase/picPreview/PicturePreviewPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),a("./node_modules/react-redux/es/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./src/module/modelBase/picPreview/components/PicturePreview.jsx"))),u=a("./src/redux/reducers/dataSource.js"),c=a("./src/redux/selectors/dataSource.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var a,n,r;(0,o.default)(this,t);for(var i=arguments.length,d=Array(i),l=0;l<i;l++)d[l]=arguments[l];return a=n=(0,s.default)(this,e.call.apply(e,[this].concat(d))),n.onChangePath=function(e){n.props.dispatch(u.dataSourceActions.getPicPreviewDataRequest({isCache:"1",fileType:n.props.fileType,ftpId:n.props.ftpId,filePath:n.props.filePath+(_.endsWith(n.props.filePath,"/")?"":"/")+e}))},r=a,(0,s.default)(n,r)}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(u.dataSourceActions.getPicPreviewDataRequest({isCache:"1",fileType:this.props.fileType,ftpId:this.props.ftpId,filePath:this.props.filePath}))},t.prototype.componentWillUnmount=function(){this.props.dispatch(u.dataSourceActions.resetPicPreviewData())},t.prototype.render=function(){var e=this.props,t=e.resultData,a=e.loading,o=t&&t.toJS&&t.toJS();return(0,n.default)(l.default,{fileType:this.props.fileType,loading:a,data:o,openTextDir:this.props.openTextDir,ftpId:this.props.ftpId,onChangePath:this.onChangePath,onClosePreview:this.props.onClosePreview})},t}(i.Component);t.default=(0,d.connect)((function(e){return{resultData:(0,c.selectPicPreviewData)(e),loading:(0,c.selectPicPreviewLoading)(e)}}))(f)},"./src/module/modelBase/picPreview/components/PicturePreview.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/divider/index.js")),o=_(a("./node_modules/antd/es/button/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=_(a("./node_modules/babel-runtime/helpers/inherits.js")),l=_(a("./node_modules/antd/es/breadcrumb/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/breadcrumb/style/index.js");var u=a("./node_modules/react/index.js"),c=(_(u),_(a("./node_modules/lodash/lodash.js"))),p=a("./src/components/index.js"),f=_(a("./node_modules/react-image/es/index.js")),m=(_(a("./node_modules/prop-types/index.js")),a("./node_modules/polished/dist/polished.es.js")),h=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/utils/constants.js"),v=_(a("./src/styles/images/nopic.png"));function _(e){return e&&e.__esModule?e:{default:e}}var y=l.default.Item,b=h.default.div.withConfig({displayName:"PicturePreview__PreviewOverlay",componentId:"sc-1qhk14h-0"})(["position:absolute;z-index:9999;background:rgba(0,0,0,0.6);top:0px;bottom:0px;left:0px;right:0px;border-radius:4px;.preview-box{margin:30px;border-radius:4px;height:480px;background:#fff;.ant-divider,.ant-divider-vertical{margin:0;}.preview-button{display:flex;justify-content:flex-end;button{margin-right:30px;}}}"]),x=(0,h.default)(l.default).withConfig({displayName:"PicturePreview__BreadcrumbDiv",componentId:"sc-1qhk14h-1"})(["padding:20px 0 10px 20px !important;.crumb-nav{color:rgba(0,0,0,0.65);&:hover{color:#1890ff;cursor:pointer;}}.crumb-nav-disable{color:#a2b0c4;}"]),C=h.default.div.withConfig({displayName:"PicturePreview__PictureList",componentId:"sc-1qhk14h-2"})([".dtqPjT{position:relative;}padding:20px;display:flex;flex-direction:row;align-items:flex-start;height:350px;overflow:auto;flex-wrap:wrap;"]),j=h.default.div.withConfig({displayName:"PicturePreview__PictureFolder",componentId:"sc-1qhk14h-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;margin-right:35px;margin-bottom:35px;.file-box{display:flex;flex-direction:column;justify-content:center;align-items:center;width:120px;height:90px;transition:all 0.2s ease-in-out;}.file-info{margin-top:15px;display:flext;justify-content:center;span{width:120px;text-align:center;",";}}.folder-text{position:relative;padding-top:12px;width:64px;.folder-text-rect1{position:absolute;top:0px;left:0px;width:60px;height:25px;z-index:3;background:#f4f4f4;border-radius:4px 4px 0 0;}.folder-text-rect2{width:68px;height:60px;background:#f4f4f4;border-radius:0 2px 4px 4px;}}.folder-icon{position:relative;padding-top:12px;width:64px;.folder-icon-rect1{position:absolute;top:0px;left:0px;width:32px;height:25px;z-index:3;background:#ffcf5c;border-radius:4px 4px 0 0;}.folder-icon-line{position:absolute;z-index:2;top:5px;left:30px;width:25px;background:#f9b552;height:1.5px;border-radius:2px 2px 0 0;}.folder-icon-rect2{width:68px;height:45px;background:#ffcf5c;border-radius:0 2px 4px 4px;}}&:hover{cursor:pointer;.file-box{transform:scale(1.4);&.pictrue{background:rgba(162,176,196,0.5);border:1px solid #ccd5e0;transform:scale(1.2);}}.file-info{color:#1890ff;}}"],(0,m.ellipsis)()),S=(0,h.default)(j).withConfig({displayName:"PicturePreview__Picture",componentId:"sc-1qhk14h-4"})([".pictrue{background:rgba(162,176,196,0.1);border:1px solid #ccd5e0;width:120px;height:90px;padding:3px;overflow:hidden;a,img{max-width:112px;max-height:75px;}}"]),I=h.default.div.withConfig({displayName:"PicturePreview__SummaryInfo",componentId:"sc-1qhk14h-5"})(["padding:10px 20px;strong{color:#1890ff;}"]),T=(0,s.default)(n.default,{}),w=(0,s.default)(p.LoadingIndicator,{position:"relative"}),E=(0,s.default)(p.NoData,{position:"relative"}),D=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-icon"},void 0,(0,s.default)("div",{className:"folder-icon-rect1"}),(0,s.default)("div",{className:"folder-icon-line"}),(0,s.default)("div",{className:"folder-icon-rect2"}))),M=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-text"},void 0,(0,s.default)("div",{className:"folder-text-rect1"}),(0,s.default)("div",{className:"folder-text-rect2"}))),k=(0,s.default)(n.default,{}),P=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.openDir=function(e){var t=[].concat(n.state.crumbs,[e]);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.openTextDir=function(e){n.props.openTextDir(e,n.props.ftpId)},n.changePath=function(e){var t=n.state.crumbs.slice(0,e+1);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.state={crumbs:[]},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data;return(0,s.default)(b,{className:"animated fadeIn",onClick:this.props.onClosePreview},void 0,(0,s.default)("div",{className:"preview-box",onClick:function(e){return e.stopPropagation()}},void 0,(0,s.default)(x,{},void 0,(0,s.default)(y,{className:"crumb-nav",onClick:function(){return e.changePath(-1,"\u6839\u76ee\u5f55")}},void 0,"\u6839\u76ee\u5f55"),this.state.crumbs.map((function(t,a){return(0,s.default)(y,{className:a<e.state.crumbs.length-1?"crumb-nav":"crumb-nav-disable",onClick:function(){return e.changePath(a,t)}},t,t)}))),T,(0,s.default)(C,{},void 0,this.props.loading&&w,!this.props.loading&&c.default.isEmpty(t.items)&&E,!this.props.loading&&t.items&&c.default.isArray(t.items)&&c.default.orderBy(t.items,["isDir"],["desc"]).map((function(t,a){return!0===t.isDir?(0,s.default)(j,{onClick:function(){return e.openDir(t.fileName)}},a,D,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName))):1===e.props.fileType?(0,s.default)(S,{},a,(0,s.default)("div",{className:"file-box pictrue"},void 0,(0,s.default)("a",{href:(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),target:"_blank",rel:"noreferrer noopener"},void 0,c.default.startsWith(t.thumbnail,"data:image")?(0,s.default)("img",{"data-imgurl":(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),src:t.thumbnail}):(0,s.default)(f.default,{"data-imgurl":(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),src:[(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.thumbnail),v.default],alt:t.fileName}))),(0,s.default)("div",{className:"file-info"},void 0,(0,s.default)("span",{},void 0,t.fileName))):(0,s.default)(j,{onClick:function(){return e.openTextDir(t.ftpFilePath)}},a,M,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName)))}))),k,(0,s.default)(I,{},void 0,"\u603b\u5171",(0,s.default)("strong",{},void 0,c.default.isNumber(t.subDirCount)?t.subDirCount:"--"),"\u4e2a\u76ee\u5f55\uff0c",(0,s.default)("strong",{},void 0,c.default.isNumber(t.imageCount)?t.imageCount:"--"),1===this.props.fileType?"\u5f20\u56fe\u7247":"\u4e2a\u6587\u4ef6","\uff0c \u9ed8\u8ba4\u9884\u89c8\u5c55\u793a\u6700\u591a 10 \u4e2a\u76ee\u5f55\uff0c\u76ee\u5f55\u4e0b\u6700\u591a\u5c55\u793a 10"," ",1===this.props.fileType?"\u5f20\u56fe\u7247":"\u4e2a\u6587\u4ef6"),(0,s.default)("div",{className:"preview-button"},void 0,(0,s.default)(o.default,{onClick:this.props.onClosePreview},void 0,"\u5173\u95ed\u9884\u89c8"))))},t}(u.PureComponent);P.defaultProps={onChangePath:c.default.noop,onClosePreview:c.default.noop,data:{}},t.default=P},"./src/module/modelBase/utils.js":function(e,t,a){"use strict";t.__esModule=!0,t.filterTree=t.getModelOptPermission=void 0;var n,o=a("./node_modules/babel-runtime/helpers/extends.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/module/modelBase/modelEnums.js");t.getModelOptPermission=function(e,t,a){var n=Array.isArray(a)?a.map((function(e){return e.fileType})):[];return{development:[r.PUBLISH_FROM.CODE].includes(t),import:[r.PUBLISH_FROM.CODE].includes(t)||[r.PUBLISH_FROM.MODEL_IMPORT].includes(t)&&!(n.includes(r.CODE_FILE_TYPE.ONLINE_CODE_PACKAGE)||n.includes(r.CODE_FILE_TYPE.OFFLINE_CODE_PACKAGE)),delete:[r.MODEL_VERSION_STATUS.DEPLOY_FAIL,r.MODEL_VERSION_STATUS.WAIT_DEPLOY,r.MODEL_VERSION_STATUS.OFFLINE,r.MODEL_VERSION_STATUS.DEPLOYED].includes(e),export:[r.MODEL_VERSION_STATUS.WAIT_DEPLOY,r.MODEL_VERSION_STATUS.DEPLOYED].includes(e)}},t.filterTree=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!t.length)return[];var i=t,d=Array.isArray(i),l=0;for(i=d?i:i[Symbol.iterator]();;){var u;if(d){if(l>=i.length)break;u=i[l++]}else{if((l=i.next()).done)break;u=l.value}var c=u;if(a.includes(c.path)){var p=(0,s.default)({},c);(o[c.path]||0===o[c.path])&&(p.fileType=r?6:o[c.path]),Reflect.deleteProperty(p,"children"),n.children||(n.children=[]),n.children.push(p),c.children&&c.children.length&&e(c.children,a,p,o,r)}}return n.children}},"./src/module/modelEdit/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelEdit/modelAdvanced/AdvancedConfig.jsx");Object.defineProperty(t,"AdvancedConfig",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}})},"./src/module/modelEdit/modelAdvanced/AdvancedConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.AdvancedConfigDom=t.Head=t.HeadRight=t.HeadLeft=t.AdvancedConfigPage=void 0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/antd/es/message/index.js")),s=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var d=m(a("./node_modules/react/index.js")),l=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/react-redux/es/index.js"),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js"),f=(m(a("./node_modules/prop-types/index.js")),a("./src/config/scene-advanced-config.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=t.AdvancedConfigPage=l.default.div.withConfig({displayName:"AdvancedConfig__AdvancedConfigPage",componentId:"sc-1pex1ry-0"})(["padding-top:20px;border-top:1px solid #dfe0e1;margin-bottom:10px;"]),g=t.HeadLeft=l.default.div.withConfig({displayName:"AdvancedConfig__HeadLeft",componentId:"sc-1pex1ry-1"})(["display:inline-block;float:left;h1{display:inline-block;margin-left:20px;font-size:16px;color:#1f2d3d;}"]),v=t.HeadRight=l.default.div.withConfig({displayName:"AdvancedConfig__HeadRight",componentId:"sc-1pex1ry-2"})(["float:right;cursor:pointer;span{font-size:12px;color:#475669;margin-right:5px;}"]),y=t.Head=l.default.div.withConfig({displayName:"AdvancedConfig__Head",componentId:"sc-1pex1ry-3"})(["cursor:pointer;float:left;width:100%;height:50px;margin-bottom:15px;"]),b=t.AdvancedConfigDom=l.default.div.withConfig({displayName:"AdvancedConfig__AdvancedConfigDom",componentId:"sc-1pex1ry-4"})(["width:100%;margin-bottom:10px;"]),x=(0,n.default)(g,{},void 0,(0,n.default)(c.MenuFoldOutlined,{}),(0,n.default)("h1",{},void 0,"\u914d\u7f6e\u9ad8\u7ea7\u53c2\u6570")),C=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.showAdvancedPanel=function(){""===n.props.modelInfo.modelTypeId?o.default.error("\u8bf7\u9009\u62e9\u60c5\u666f\u6846\u67b6!"):""===n.props.modelInfo.engine?o.default.error("\u8bf7\u9009\u62e9\u8ba1\u7b97\u5f15\u64ce!"):n.setState({showPanel:!n.state.showPanel})},n.getModulesData=function(e,t){return t},n.setValiAdvancedDateFunc=function(e,t){n.props.valiAdvancedDateFuncs[e]=t},n.validateFun=function(){var e={validate:!0,moduleData:{resultArrays:{},errorMsg:{}}},t=n.props.valiAdvancedDateFuncs;return Object.keys(t).map((function(a){var n=t[a];if(_.isFunction(n)){var o=n.call();o.validate?e.moduleData.resultArrays[a]=o.moduleData:(e.validate=o.validate,e.moduleData.errorMsg[a]=o.errorMsg)}})),e},n.state={showPanel:!1,currentComponent:null,_this:n};var i=n.props,d=i.setValidateFunc,l=i.setLoadFuncs;return(_.isFunction(d)||_.isFunction(l))&&(d("advanced",n.validateFun),l("advanced",(function(e){n.advancedConfigRender(e)}))),n.advancedConfigRender(n.props.modelInfo.modelTypeId),n}return(0,i.default)(t,e),t.prototype.advancedConfigRender=function(e){var t=this,o=f.SCENE_ADVANCED_CONFIG,s="";for(var r in o)if(e===r){s="./sceneAdvanced/"+o[r].AdvancedModule+".jsx";break}""!==s&&a.e(1).then(function(e){var o=a("./src/module/modelEdit/modelAdvanced sync recursive ^.*$")(""+s);t.setState({currentComponent:(0,n.default)(o,{indiSelected:t.props.indiSelected,disabled:t.props.disabled,viewType:t.props.viewType,setValidateFunc:function(e,a){t.setValiAdvancedDateFunc(e,a)},modelInfo:t.props.modelInfo,moduleUpdataData:t.props.moduleUpdataData,onChange:function(){t.getModulesData()}})})}.bind(null,a)).catch(a.oe)},t.prototype.render=function(){return(0,n.default)(h,{},void 0,(0,n.default)(y,{onClick:this.showAdvancedPanel},void 0,x,(0,n.default)(v,{},void 0,(0,n.default)("span",{},void 0,this.state.showPanel?"\u6536\u8d77":"\u5c55\u5f00"),(0,n.default)(p.Icon,{type:this.state.showPanel?"up":"down"}))),(0,n.default)(b,{style:{display:this.state.showPanel?"":"none"}},void 0,this.state.currentComponent))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(C)},"./src/module/modelEdit/modelAdvanced/BaseConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=a("./node_modules/react-redux/es/index.js"),l=(u(a("./node_modules/prop-types/index.js")),a("./src/config/scene-advanced-config.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(r){(0,o.default)(this,t);var i=(0,s.default)(this,e.call(this,r));i.getModulesData=function(e,t){i.props.onChange(e,t)},i.setValiBaseDateFunc=function(e,t){i.props.valiBaseDateFuncs[e]=t},i.validateFun=function(){var e={validate:!0,moduleData:{resultArrays:{},errorMsg:{}}},t=i.props.valiBaseDateFuncs;return Object.keys(t).map((function(a){var n=t[a];if(_.isFunction(n)){var o=n.call();o.validate?e.moduleData.resultArrays[a]=o.moduleData:(e.validate=o.validate,e.moduleData.errorMsg[a]=o.errorMsg)}})),e},i.baseConfigRender=function(e){var t=l.SCENE_ADVANCED_CONFIG,o="";for(var s in t)if(e===s){o="./sceneBase/"+t[s].AdvancedModule+".jsx";break}""!==o&&a.e(1).then(function(e){var t=a("./src/module/modelEdit/modelAdvanced sync recursive ^.*$")(""+o);i.setState({currentComponent:(0,n.default)(t,{sceneIndex:i.props.sceneIndex,disabled:i.props.disabled,viewType:i.props.viewType,setValidateFunc:function(e,t){i.setValiBaseDateFunc(e,t)},modelInfo:i.props.modelInfo,moduleUpdataData:i.props.moduleUpdataData,onChange:function(e,t){i.getModulesData(e,t)}})})}.bind(null,a)).catch(a.oe)},i.state={currentComponent:null,_this:i};var d=i.props,u=d.setValidateFunc,c=d.setLoadFuncs;return(_.isFunction(u)||_.isFunction(c))&&(u("base",i.validateFun),c("base",(function(e){i.baseConfigRender(e)}))),i.baseConfigRender(i.props.modelInfo.modelTypeId),i}return(0,r.default)(t,e),t.prototype.render=function(){return this.state.currentComponent},t}(i.default.PureComponent);t.default=(0,d.connect)((function(){return{}}))(c)},"./src/module/modelEdit/modelConfig/CreateModelConfigPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.ModelConfigPagePage=void 0;var n=L(a("./node_modules/antd/es/message/index.js")),o=L(a("./node_modules/babel-runtime/helpers/jsx.js")),s=L(a("./node_modules/antd/es/notification/index.js")),r=L(a("./node_modules/babel-runtime/helpers/extends.js")),i=L(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=L(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=L(a("./node_modules/babel-runtime/helpers/inherits.js")),u=L(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=L(a("./node_modules/react/index.js")),p=L(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=L(a("./node_modules/lodash/lodash.js")),m=a("./src/utils/history.js"),h=a("./src/routes/routeHelper.jsx"),g=(L(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/enumDic.js")),v=a("./node_modules/react-redux/es/index.js"),_=a("./src/components/index.js"),y=a("./src/redux/reducers/modelManage.js"),b=a("./node_modules/@ant-design/icons/es/index.js"),x=a("./src/redux/selectors/modelManage.js"),C=a("./src/redux/reducers/indiSet.js"),j=a("./src/config/scene-join-engine.js"),S=a("./src/module/modelEdit/util/formatModelData.js"),I=a("./src/redux/reducers/dataSource.js"),T=L(a("./src/module/modelEdit/modelAdvanced/AdvancedConfig.jsx")),w=L(a("./src/module/modelEdit/modelAdvanced/BaseConfig.jsx")),E=L(a("./src/components/button/index.js")),D=L(a("./src/module/modelEdit/modelConfig/component/ModelInfo.jsx")),M=L(a("./src/module/modelEdit/modelConfig/component/SceneInfo.jsx")),k=L(a("./src/module/modelEdit/modelConfig/component/EngineInfo.jsx")),P=L(a("./src/module/modelEdit/modelConfig/component/DataSourceSetting.jsx"));function L(e){return e&&e.__esModule?e:{default:e}}var N=E.default.IconButton,A=u.default.confirm,R=t.ModelConfigPagePage=p.default.div.withConfig({displayName:"CreateModelConfigPage__ModelConfigPagePage",componentId:"sc-4fj2v1-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;"]),F=t.ConfigButtonDom=p.default.div.withConfig({displayName:"CreateModelConfigPage__ConfigButtonDom",componentId:"sc-4fj2v1-1"})(["height:50px;position:fixed;bottom:35px;right:80px;"]),O=t.ErrorUl=p.default.ul.withConfig({displayName:"CreateModelConfigPage__ErrorUl",componentId:"sc-4fj2v1-2"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),V={width:"100%"},U=(0,o.default)("h1",{},void 0,"\u9ad8\u7ea7\u914d\u7f6e\u9519\u8bef\uff1a"),B=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setLoadFuncs=function(e,t){n.loadFuncs[e]=t},n.getSceneIndex=function(e){var t=-1;if(e)for(var a=n.props.sceneData.list(),o=0;o<a.length;o++)if(a[o].value===e){t=o;break}return t},n.showSource=function(){n.setState({showSource:!0})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.getAllowEngine=function(e){for(var t=j.SCENE_JOIN_ENGINE,a=[],n=0;n<t.length;n++)if(t[n].scenes===e){a=t[n].engine;break}return a},n.getAllowEngineBySceneId=function(e){for(var t=j.SCENE_JOIN_ENGINE,a=0;a<t.length;a++)if(t[a].scenes===e){n.setState({allowEngine:t[a].engine});break}},n.getModelData=function(e,t){if("sceneInfo"===t){n.getAllowEngineBySceneId(e.sceneId);var a=(0,r.default)({},n.state.modelInfo);a.modelTypeId=e.sceneId,n.valiAdvancedDateFuncs={},n.valiBaseDateFuncs={},n.setState({modelInfo:a,sceneIndex:e.index,indiSelected:{positive:[],negative:[]}}),""!==n.state.modelInfo.modelTypeId&&""!==n.state.modelInfo.engine&&n.props.dispatch(I.dataSourceActions.getArithmeticListRequest({modelTypeId:e.sceneId,engine:n.state.modelInfo.engine})),Object.keys(n.loadFuncs).map((function(t){var a=n.loadFuncs[t];f.default.isFunction(a)&&a.call(null,e.sceneId)}))}else if("datasource"===t){var o=(0,r.default)({},n.state.modelInfo);o.dsId=e.sourceId,o.dsCycle=e.cycleId,n.setState({modelInfo:o}),f.default.isEmpty(e.sourceId)?n.props.dispatch(C.indiSetActions.resetAll()):n.props.dispatch(C.indiSetActions.loadIndiListRequest({dsId:e.sourceId,dsCycle:e.cycleId}))}else if("positive"===t||"negative"===t){var s=(0,r.default)({},n.state.indiSelected);"positive"===t?s.positive=e:s.negative=e,n.setState({indiSelected:s})}else if("engineInfo"===t){var i=(0,r.default)({},n.state.modelInfo);i.engine=e,""!==n.state.modelInfo.modelTypeId&&""!==e&&n.props.dispatch(I.dataSourceActions.getArithmeticListRequest({modelTypeId:n.state.modelInfo.modelTypeId,engine:e})),n.setState({modelInfo:i})}},n.cancel=function(){var e=n;A({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u6a21\u578b\u7ba1\u7406\u754c\u9762\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){e.props.dispatch(y.modelManageActions.resetModelConfig()),window.close()}})},n.savaOrSubmit=function(e){n.subType=e;var t={},a={};if(Object.keys(n.validateFuncs).map((function(e){var o=n.validateFuncs[e];if(f.default.isFunction(o)){var s=o.call();s.validate?t[e]=s.moduleData:a[e]="advanced"!==e&&"base"!==e?s.errorMsg:s.moduleData.errorMsg}})),"{}"!==JSON.stringify(a)){var r=n.errorDom(a);s.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:r,icon:(0,o.default)(b.FrownOutlined,{style:{color:"#f5222d"}})})}else{var i=t.advanced;i&&i.resultArrays&&"{}"!==JSON.stringify(i.resultArrays)?(n.resultArray=t,n.setState({submitType:e,modalVisible:!0})):u.default.error({title:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!",content:"\u63d0\u4ea4\u6a21\u578b\u540e\u672a\u627e\u5230\u9ad8\u7ea7\u53c2\u6570\u914d\u7f6e\uff0c\u8bf7\u4ece\u65b0\u914d\u7f6e\u6216\u8005\u5173\u95ed\u5f53\u524d\u754c\u9762\u540e\u4ece\u65b0\u914d\u7f6e\uff01"})}},n.errorDom=function(e){var t=void 0===e.advanced?{}:e.advanced,a=void 0===e.base?{}:e.base;return delete e.advanced,delete e.base,(0,o.default)(O,{},void 0,Object.keys(e).map((function(t){return(0,o.default)("li",{},t,e[t])})),Object.keys(a).map((function(e){return(0,o.default)("li",{},e,a[e])})),"{}"!==JSON.stringify(t)&&U,Object.keys(t).map((function(e){return(0,o.default)("li",{},e,t[e])})))},n.submitModalOk=function(){n.moduleData=(0,S.serviceDataFormat)("CREATE",n.resultArray,n.props.createModelId),n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(y.modelManageActions.submitModelDataRequest({subType:n.subType,modelConfig:n.moduleData}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.modelId=f.default.get(a.pstate,"modelId"),n.state={submitType:"",moduleUpdataData:null,showSource:!1,allowEngine:n.getAllowEngine(f.default.get(a.pstate,"sceneId")),moduleDisabled:"view"===a.pstate.viewType,modelInfo:{modelId:n.modelId,modelName:"",modelTypeId:f.default.get(a.pstate,"sceneId"),dsId:"",dsCycle:"",manner:f.default.get(a.pstate,"sceneId"),engine:"",businessType:"",dveLanguage:""},confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",_this:n,sceneIndex:n.getSceneIndex(f.default.get(a.pstate,"sceneId")),indiSelected:{positive:[],negative:[]}},n.resultArray={},n.subType="",n.valiAdvancedDateFuncs={},n.valiBaseDateFuncs={},n.moduleData={},n.validateFuncs={},n.loadFuncs={},f.default.get(a.pstate,"sceneId")&&n.getAllowEngineBySceneId(f.default.get(a.pstate,"sceneId")),n}return(0,l.default)(t,e),t.prototype.componentWillUnmount=function(){this.props.dispatch(y.modelManageActions.resetModelConfig())},t.prototype.componentDidMount=function(){this.props.dispatch(y.modelManageActions.getCreateModelIdRequest())},t.getDerivedStateFromProps=function(e,t){if("{}"!==JSON.stringify(e.submitModelData)){if(-1===f.default.get(e.submitModelData,"code")||void 0===e.submitModelData)return u.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalVisible:!1};t._this.props.dispatch(y.modelManageActions.resetModelConfig()),"save"===t.submitType?(n.default.success("\u521b\u5efa\u6210\u529f\uff01,2\u79d2\u540e\u81ea\u52a8\u5173\u95ed"),setTimeout((function(){window.close()}),3e3)):(0,m.navigateTo)(h.modelTrainUrl.viewTrainProcess(e.createModelId,t._this.state.modelInfo.modelName))}return null},t.prototype.render=function(){var e=this;return(0,o.default)(R,{},void 0,(0,o.default)(u.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,this.state.modalTxt)),(0,o.default)(_.ModelConfigPanel,{title:"\u6a21\u578b\u4fe1\u606f",style:V},void 0,(0,o.default)(D.default,{modelInfo:this.state.modelInfo,modelId:this.modelId,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc})),(0,o.default)(P.default,{modelInfo:this.state.modelInfo,modelId:this.modelId,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc}),(0,o.default)(_.ModelConfigPanel,{title:"\u60c5\u666f\u6846\u67b6",style:V},void 0,(0,o.default)(M.default,{modelInfo:this.state.modelInfo,modelId:this.modelId,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc}),this.state.modelInfo.modelTypeId&&(0,o.default)(w.default,{sceneIndex:this.state.sceneIndex,viewType:this.props.pstate.viewType,moduleUpdataData:this.state.moduleUpdataData,modelInfo:this.state.modelInfo,setValidateFunc:this.setValidateFunc,onChange:this.getModelData,disabled:this.state.moduleDisabled,valiBaseDateFuncs:this.valiBaseDateFuncs,setLoadFuncs:this.setLoadFuncs})),(0,o.default)(_.ModelConfigPanel,{title:"\u8ba1\u7b97\u5f15\u64ce",style:V},void 0,(0,o.default)(k.default,{moduleDisabled:this.state.moduleDisabled,allowEngine:this.state.allowEngine,modelInfo:this.state.modelInfo,modelId:this.modelId,onChange:this.getModelData,setValidateFunc:this.setValidateFunc})),this.state.modelInfo.modelTypeId&&(0,o.default)(T.default,{viewType:this.props.pstate.viewType,moduleUpdataData:this.state.moduleUpdataData,modelInfo:this.state.modelInfo,setValidateFunc:this.setValidateFunc,disabled:this.state.moduleDisabled,valiAdvancedDateFuncs:this.valiAdvancedDateFuncs,indiSelected:this.state.indiSelected,setLoadFuncs:this.setLoadFuncs}),(0,o.default)(F,{},void 0,(0,o.default)(N,{btnType:"small",style:{marginLeft:"16px"},action:"CLOESE",txt:"\u53d6 \u6d88",onClick:function(){return e.cancel()}}),(0,o.default)(N,{btnType:"small",style:{marginLeft:"16px"},action:"EDIT",txt:"\u4fdd \u5b58",onClick:function(){return e.savaOrSubmit("save")}}),(0,o.default)(N,{btnType:"small",style:{marginLeft:"16px",marginRight:"16px"},action:"EXECUTE",txt:"\u63d0\u4ea4\u8bad\u7ec3",onClick:function(){return e.savaOrSubmit("execute")}})))},t}(c.default.PureComponent);t.default=(0,v.connect)((function(e){return{submitModelData:(0,x.submitModel)(e),createModelId:(0,x.getCreateModelId)(e),sceneData:(0,g.dicGroupHelper)(e,"SCENE_INFO")}}))(B)},"./src/module/modelEdit/modelConfig/EditModelConfigPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ModelIndiDom=t.ConfigButtonDom=t.ModelConfigPagePage=void 0;var n=L(a("./node_modules/antd/es/message/index.js")),o=L(a("./node_modules/babel-runtime/helpers/jsx.js")),s=L(a("./node_modules/antd/es/notification/index.js")),r=L(a("./node_modules/babel-runtime/helpers/extends.js")),i=L(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=L(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=L(a("./node_modules/babel-runtime/helpers/inherits.js")),u=L(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=L(a("./node_modules/react/index.js")),p=L(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=L(a("./node_modules/lodash/lodash.js")),m=a("./src/routes/routeHelper.jsx"),h=(L(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),g=a("./src/utils/history.js"),v=a("./src/components/index.js"),_=a("./node_modules/@ant-design/icons/es/index.js"),y=a("./src/module/modelEdit/index.js"),b=a("./src/redux/reducers/modelManage.js"),x=a("./src/redux/reducers/indiSet.js"),C=a("./src/redux/selectors/modelManage.js"),j=L(a("./src/components/button/index.js")),S=L(a("./src/module/modelEdit/modelConfig/component/ModelInfo.jsx")),I=L(a("./src/module/modelEdit/modelAdvanced/BaseConfig.jsx")),T=a("./src/redux/reducers/dataSource.js"),w=L(a("./src/module/modelEdit/modelConfig/component/SceneInfo.jsx")),E=L(a("./src/module/modelEdit/modelConfig/component/EngineInfo.jsx")),D=L(a("./src/module/modelEdit/modelConfig/component/DataSourceSetting.jsx")),M=a("./src/module/modelEdit/util/formatModelData.js"),k=a("./src/config/scene-join-engine.js"),P=a("./src/config/scene-advanced-config.js");function L(e){return e&&e.__esModule?e:{default:e}}var N=j.default.IconButton,A=u.default.confirm,R=t.ModelConfigPagePage=p.default.div.withConfig({displayName:"EditModelConfigPage__ModelConfigPagePage",componentId:"sc-81ff0n-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;"]),F=t.ConfigButtonDom=p.default.div.withConfig({displayName:"EditModelConfigPage__ConfigButtonDom",componentId:"sc-81ff0n-1"})(["text-align:right;padding-right:10%;width:110%;margin-left:-10%;position:fixed;height:50px;bottom:0px;background:rgba(229,233,242,0.75);left:0px;right:auto;padding-top:12px;"]),O=(t.ModelIndiDom=p.default.div.withConfig({displayName:"EditModelConfigPage__ModelIndiDom",componentId:"sc-81ff0n-2"})(["margin:20px;width:100%;background:#f9fafc;border:1px solid #ccd5e0;border-radius:4px;border-width:0.5px;.h1div{font-size:12px;height:40px;border-radius:4px;background:#f5f6f9;padding:10px 0 0 15px;margin:0;border-color:#fff;}"]),t.ErrorUl=p.default.ul.withConfig({displayName:"EditModelConfigPage__ErrorUl",componentId:"sc-81ff0n-3"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"])),V={width:"100%"},U=(0,o.default)("h1",{},void 0,"\u9ad8\u7ea7\u914d\u7f6e\u9519\u8bef\uff1a"),B=(0,o.default)(v.LoadingIndicator,{}),G=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setLoadFuncs=function(e,t){n.loadFuncs[e]=t},n.showSource=function(){n.setState({showSource:!0})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.getAllowEngineBySceneId=function(e){for(var t=k.SCENE_JOIN_ENGINE,a=0;a<t.length;a++)if(t[a].scenes===e){n.setState({allowEngine:t[a].engine});break}},n.getModelData=function(e,t){if("sceneInfo"===t){n.getAllowEngineBySceneId(e.sceneId);var a=(0,r.default)({},n.state.modelInfo);a.modelTypeId=e.sceneId,n.valiAdvancedDateFuncs={},n.valiBaseDateFuncs={};var o=n.props.updataModelsData.size>0?n.props.updataModelsData.toJS():null;n.setState({modelInfo:a,sceneIndex:e.index,indiSelected:{positive:[],negative:[]},moduleUpdataData:n.resetModuleUpdataDataByModelTypeId(o)}),""!==n.state.modelInfo.modelTypeId&&""!==n.state.modelInfo.engine&&n.props.dispatch(T.dataSourceActions.getArithmeticListRequest({modelTypeId:e.sceneId,engine:n.state.modelInfo.engine})),Object.keys(n.loadFuncs).map((function(t){var a=n.loadFuncs[t];f.default.isFunction(a)&&a.call(null,e.sceneId)}))}else if("datasource"===t){var s=(0,r.default)({},n.state.modelInfo);s.dsId=e.sourceId,s.dsCycle=e.cycleId,n.setState({modelInfo:s}),f.default.isEmpty(e.sourceId)||f.default.isEmpty(e.cycleId)?n.props.dispatch(x.indiSetActions.resetAll()):n.props.dispatch(x.indiSetActions.loadIndiListRequest({dsId:e.sourceId,dsCycle:e.cycleId}))}else if("positive"===t||"negative"===t){var i=(0,r.default)({},n.state.indiSelected);"positive"===t?i.positive=e:i.negative=e,n.setState({indiSelected:i})}else if("engineInfo"===t&&""!==n.state.modelInfo.modelTypeId&&""!==e){var d=(0,r.default)({},n.state.modelInfo);d.engine=e,n.props.dispatch(T.dataSourceActions.getArithmeticListRequest({modelTypeId:n.state.modelInfo.modelTypeId,engine:e})),n.setState({modelInfo:d})}},n.cancel=function(){var e=n;"view"!==n.viewType?A({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u6a21\u578b\u7ba1\u7406\u754c\u9762\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){e.props.dispatch(b.modelManageActions.resetModelConfig()),window.close()}}):(e.props.dispatch(b.modelManageActions.resetModelConfig()),window.close())},n.savaOrSubmit=function(e){n.subType=e;var t={},a={};if(Object.keys(n.validateFuncs).map((function(e){var o=n.validateFuncs[e];if(f.default.isFunction(o)){var s=o.call();s.validate?t[e]=s.moduleData:a[e]="advanced"!==e&&"base"!==e?s.errorMsg:s.moduleData.errorMsg}})),"{}"!==JSON.stringify(a)){var r=n.errorDom(a);s.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:r,icon:(0,o.default)(_.FrownOutlined,{style:{color:"#f5222d"}})})}else"{}"!==JSON.stringify(t)?(n.resultArray=t,n.setState({submitType:e,modalVisible:!0})):u.default.error({title:"\u63d0\u4ea4\u6a21\u578b\u540e\u672a\u627e\u5230\u9ad8\u7ea7\u53c2\u6570\u914d\u7f6e",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"})},n.errorDom=function(e){var t=void 0===e.advanced?{}:e.advanced,a=void 0===e.base?{}:e.base;return delete e.advanced,delete e.base,(0,o.default)(O,{},void 0,Object.keys(e).map((function(t){return(0,o.default)("li",{},t,e[t])})),Object.keys(a).map((function(e){return(0,o.default)("li",{},e,a[e])})),"{}"!==JSON.stringify(t)&&U,Object.keys(t).map((function(e){return(0,o.default)("li",{},e,t[e])})))},n.submitModalOk=function(){n.moduleData=(0,M.serviceDataFormat)("MODIFY",n.resultArray,n.state.modelInfo.modelId),n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="update"?"\u4fee\u6539":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(b.modelManageActions.submitModelDataRequest({subType:n.subType,modelConfig:n.moduleData}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.sampleData={},n.viewType=a.pstate.viewType,n.state={submitType:"",showSource:!1,allowEngine:[],moduleUpdataData:null,moduleDisabled:"view"===a.pstate.viewType,modelInfo:a.pstate.modelInfo,_this:n,confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",sceneIndex:-1,indiSelected:{positive:[],negative:[]}},n.updataModelsData={},n.resultArray={},n.subType="",n.valiAdvancedDateFuncs={},n.valiBaseDateFuncs={},n.moduleData={},n.validateFuncs={},n.loadFuncs={},n}return(0,l.default)(t,e),t.prototype.componentWillUnmount=function(){this.props.dispatch(b.modelManageActions.resetModelConfig())},t.prototype.componentDidMount=function(){if(void 0!==this.state.modelInfo.modelId&&void 0!==this.state.modelInfo.modelTypeId){var e=P.SCENE_ADVANCED_CONFIG[this.state.modelInfo.modelTypeId],t="";if(void 0!==f.default.get(e,"subModulesData")){for(var a=f.default.get(e,"subModulesData"),n=0;n<a.length;n++)t+=a[n]+",";this.props.dispatch(b.modelManageActions.getModulesConfigDataRequest({modelId:this.state.modelInfo.modelId,componentId:t.substring(0,t.length-1),viewType:"MODIFY"}))}this.props.dispatch(x.indiSetActions.loadIndiListRequest({dsId:this.state.modelInfo.dsId,dsCycle:this.state.modelInfo.dsCycle})),this.props.dispatch(T.dataSourceActions.getDataSourceAuditListRequest({dsId:this.state.modelInfo.dsId,dsCycle:this.state.modelInfo.dsCycle,kpiClass:null,kpiName:null}))}},t.getDerivedStateFromProps=function(e,t){if("{}"!==JSON.stringify(e.submitModelData))return-1!==f.default.get(e.submitModelData,"code")&&void 0!==e.submitModelData?(t._this.props.dispatch(b.modelManageActions.resetModelConfig()),"update"===t.submitType?(n.default.success("\u4fee\u6539\u6210\u529f\uff01,2\u79d2\u540e\u81ea\u52a8\u5173\u95ed"),setTimeout((function(){window.close()}),3e3)):(0,g.navigateTo)(m.modelTrainUrl.viewTrainProcess(e.submitModelData.toJS().modelId,e.submitModelData.toJS().modelName)),{modalVisible:!1}):(u.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalVisible:!1});if(e.updataModelsData&&0!==e.updataModelsData.size&&"{}"===JSON.stringify(t._this.updataModelsData)){for(var a=e.updataModelsData.toJS(),o=e.sceneDatas,s=["7","8"],i=f.default.remove(o,(function(e){return-1===f.default.indexOf(s,e.value)})),d=-1,l=(0,r.default)({},t.indiSelected),c=0;c<i.length;c++){if((""===t._this.state.modelInfo.modelTypeId?a.modelInfo.modelTypeId:t._this.state.modelInfo.modelTypeId)===i[c].value){d=c;break}}if(null!==a.sampleData)for(var p=a.sampleData.modelSimpleKpis,h=0;h<p.length;h++)1===p[h].simpleType?l.positive.push(p[h].fieldId):l.negative.push(p[h].fieldId);return t._this.updataModelsData=a,{indiSelected:l,sceneIndex:d,modelInfo:a.modelInfo,moduleUpdataData:a,allowEngine:t._this.getAllowEngineBySceneId(f.default.get(a,"modelInfo.modelTypeId"))}}return null},t.prototype.resetModuleUpdataDataByModelTypeId=function(e){var t={};return""===this.state.modelInfo.modelTypeId||e.modelInfo.modelTypeId===this.state.modelInfo.modelTypeId?e:(e.modelInfo.modelTypeId=this.state.modelInfo.modelTypeId,Object.keys(e).map((function(e){t[e]=null})),t.modelInfo=e.modelInfo,t)},t.prototype.render=function(){var e=this,t=this.props.updataModelsData.size>0?this.props.updataModelsData.toJS():null;return null!==t?(0,o.default)(R,{},void 0,(0,o.default)(u.default,{title:"\u51c6\u5907\u63d0\u4ea4\u6570\u636e",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,this.state.modalTxt)),(0,o.default)(v.ModelConfigPanel,{title:"\u6a21\u578b\u4fe1\u606f",style:V},void 0,(0,o.default)(S.default,{modelInfo:this.state.modelInfo,modelId:this.state.modelInfo.modelId,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc})),(0,o.default)(D.default,{modelInfo:this.state.modelInfo,modelId:this.state.modelInfo.modelId,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc}),(0,o.default)(v.ModelConfigPanel,{title:"\u60c5\u666f\u6846\u67b6",style:V},void 0,(0,o.default)(w.default,{modelInfo:this.state.modelInfo,modelId:this.state.modelInfo.modelId,moduleDisabled:this.state.moduleDisabled,onChange:this.getModelData,setValidateFunc:this.setValidateFunc}),this.state.modelInfo.modelTypeId&&(0,o.default)(I.default,{sceneIndex:this.state.sceneIndex,viewType:this.viewType,moduleUpdataData:t,modelInfo:this.state.modelInfo,setValidateFunc:this.setValidateFunc,onChange:this.getModelData,disabled:this.state.moduleDisabled,valiBaseDateFuncs:this.valiBaseDateFuncs,setLoadFuncs:this.setLoadFuncs})),(0,o.default)(v.ModelConfigPanel,{title:"\u8ba1\u7b97\u5f15\u64ce",style:V},void 0,(0,o.default)(E.default,{moduleDisabled:this.state.moduleDisabled,allowEngine:this.state.allowEngine,modelInfo:this.state.modelInfo,modelId:this.state.modelInfo.modelId,onChange:this.getModelData,setValidateFunc:this.setValidateFunc})),this.state.modelInfo.modelTypeId&&(0,o.default)(y.AdvancedConfig,{viewType:this.viewType,moduleUpdataData:t,modelInfo:this.state.modelInfo,setValidateFunc:this.setValidateFunc,disabled:this.state.moduleDisabled,valiAdvancedDateFuncs:this.valiAdvancedDateFuncs,indiSelected:this.state.indiSelected,setLoadFuncs:this.setLoadFuncs}),(0,o.default)(F,{},void 0,(0,o.default)(N,{btnType:"small",style:{marginLeft:"16px"},action:"CLOESE",txt:"view"!==this.viewType?"\u53d6 \u6d88":"\u8fd4 \u56de",onClick:function(){return e.cancel()}}),(0,o.default)(N,{btnType:"small",style:{marginLeft:"16px"},action:"EDIT",txt:"\u4fee \u6539",onClick:function(){return e.savaOrSubmit("save")}}),"view"!==this.viewType&&(0,o.default)(N,{btnType:"small",style:{marginLeft:"16px",marginRight:"16px"},action:"EXECUTE",txt:"\u63d0\u4ea4\u8bad\u7ec3",onClick:function(){return e.savaOrSubmit("execute")}}))):B},t}(c.default.PureComponent);t.default=(0,h.connect)((function(e){return{updataModelsData:(0,C.selectGetModulesConfigData)(e),submitModelData:(0,C.submitModel)(e)}}))(G)},"./src/module/modelEdit/modelConfig/ModelConfigPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=a("./src/redux/selectors/enumDic.js"),l=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./node_modules/react-router-dom/esm/react-router-dom.js"),c=f(a("./src/module/modelEdit/modelConfig/CreateModelConfigPage.jsx")),p=f(a("./src/module/modelEdit/modelConfig/EditModelConfigPage.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m={guide:"1",dragDrop:"2",deepLearn:"3",code:"7"},h=(0,n.default)("div",{}),g=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(e){return!_.isUndefined(e.viewType)&&("create"===e.viewType?e.createType!==this.props.createType:"view"!==e.viewType&&"edit"!==e.viewType||(e.modelId!==this.props.modelId||e.modelInfo!==this.props.modelInfo))},t.prototype.render=function(){var e=this.props,t=e.viewType,a=e.createType,o=e.modelInfo,s=e.sceneData,r=e.sceneId;return"create"===t?(0,n.default)(c.default,{pstate:{sceneId:r,viewType:t,createType:m[a]}}):o&&o.toJS?(0,n.default)(p.default,{sceneDatas:s,pstate:{viewType:t,modelInfo:o.toJS()}}):h},t}(i.default.Component);t.default=(0,u.withRouter)((0,l.connect)((function(e,t){var a=t.match.params,n=a.modelId,o=a.action,s=a.createType,r=t.location.pathname.substring(t.location.pathname.lastIndexOf("/")+1,t.location.pathname.length);return{sceneId:r||"",modelId:n,sceneData:(0,d.dicGroupHelper)(e,"SCENE_INFO").list(),viewType:_.includes(["view","create","edit"],o)?o:void 0,createType:_.includes(["guide","dragDrop","deepLearn","code"],s)?s:void 0}}))(g))},"./src/module/modelEdit/modelConfig/component/DataSourceSetting.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/table/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js")),d=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=g(a("./node_modules/react/index.js")),u=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/lodash/lodash.js"))),c=a("./src/components/index.js"),p=a("./src/redux/selectors/dataSource.js"),f=a("./node_modules/react-redux/es/index.js"),m=a("./src/redux/reducers/dataSource.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");function g(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var v=g(a("./src/components/button/index.js")).default.GhostButton,_=h.Form.Item,y=d.default.Option,b={width:"100%"},x=(0,o.default)(y,{value:""},void 0,"\u8bf7\u9009\u62e9\u6570\u636e\u6e90"),C=(0,o.default)(y,{value:""},void 0,"\u8bf7\u9009\u62e9\u5173\u8054\u5468\u671f"),j=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.handleSourceChange=function(e){n.source.sourceId=e,n.source.cycleId="",n.setState({sourceId:e}),n.props.dispatch(m.dataSourceActions.getDataCyclesListRequest({dsId:e,status:10})),n.props.dispatch(m.dataSourceActions.clearDataSourceAuditListRequest()),n.props.dispatch(m.dataSourceActions.clearDataKpiTypeList()),n.props.onChange(n.source,"datasource")},n.handleCycleChange=function(e){n.source.cycleId=e,n.props.dispatch(m.dataSourceActions.getDataSourceAuditListRequest({dsId:n.source.sourceId,dsCycle:n.source.cycleId,kpiClass:null,kpiName:null})),n.props.dispatch(m.dataSourceActions.getDataKpiTypeListRequest({dsId:n.source.sourceId,dsCycle:n.source.cycleId})),n.props.onChange(n.source,"datasource")},n.showSource=function(){n.setState({modalVisible:!0})},n.callVisible=function(){n.setState({modalVisible:!1})},n.validateFun=function(){var e=!1;if(n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e){var t=n.props.sourcesAudit.toJS();return t&&t.length>0?(n.source.sourcesAudit=t,{validate:!0,moduleData:n.source}):(window.console.log("sourcesAudit\u503c\u662f\uff1a"+t),{validate:!1,errorMsg:"sourcesAudit\u6570\u636e\u672a\u83b7\u53d6\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"})}return{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u6570\u636e\u6e90\u6a21\u5757\u6570\u636e"}},n.normalizeCycleId=function(){return n.source.cycleId},n.state={modalVisible:!1,sourceId:void 0!==a.modelId?a.modelInfo.dsId:""},n.source={sourceId:void 0!==a.modelId?a.modelInfo.dsId:"",cycleId:void 0!==a.modelId?a.modelInfo.dsCycle:"",sourcesAudit:[]};var i=n.props.setValidateFunc;return u.default.isFunction(i)&&i("datasource",n.validateFun),n.columns=[{title:"\u6307\u6807\u5206\u7c7b",dataIndex:"fieldClassCnName",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6307\u6807\u540d\u79f0",dataIndex:"fieldCnName",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u5355\u4f4d",dataIndex:"fieldUnit"},{title:"\u6570\u636e\u7279\u5f81",dataIndex:"fieldDataFeature",render:function(e){return(0,o.default)("span",{},void 0,"0"===e?"\u540d\u79f0":"\u5206\u7c7b")}},{title:"\u503c\u57df/\u6837\u4f8b",dataIndex:"fieldSimple",render:function(e){return(0,o.default)("div",{style:{width:100}},void 0,(0,o.default)(c.LineWrap,{title:e,lineClampNum:1}))}},{title:"\u5e73\u5747\u503c",dataIndex:"meanValue",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u79bb\u7fa4\u503c",dataIndex:"outlierValue",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u79bb\u7fa4\u503c\u4e2a\u6570",dataIndex:"outlierCount",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}},{title:"\u7f3a\u5931\u503c\uff08\u4e2a\u6570\uff09",dataIndex:"lostValue",render:function(e){return(0,o.default)(c.LineWrap,{title:e,lineClampNum:1})}}],n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(m.dataSourceActions.getSourceDropDownRequest({dsType:"train"})),""!==this.source.cycleId&&this.props.dispatch(m.dataSourceActions.getDataCyclesListRequest({dsId:this.state.sourceId,status:10}))},t.prototype.render=function(){var e=this,t=this.props.sourceData.toJS(),a=this.props.cyclesData.toJS(),s=this.props.form.getFieldDecorator,r=0!==this.props.sourcesAudit.size?this.props.sourcesAudit.toJS():[];return(0,o.default)(h.Form,{layout:"inline"},void 0,(0,o.default)(c.ModalView,{viewType:"view",modalTitle:"\u6570\u636e\u6e90\u6307\u6807",closable:!1,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,o.default)(n.default,{rowKey:"paramId",bordered:!0,pagination:!1,columns:this.columns,dataSource:r})}),(0,o.default)(c.ModelConfigPanel,{title:"\u6570\u636e\u6e90",style:b},void 0,(0,o.default)(_,{help:""},void 0,s("sourceId",{rules:[{required:!0}],initialValue:this.source.sourceId})((0,o.default)(d.default,{showSearch:!0,disabled:this.props.moduleDisabled,onChange:this.handleSourceChange,getPopupContainer:function(e){return e.parentNode},style:{width:"200px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,x,t.map((function(e){return(0,o.default)(y,{title:e.name,value:e.dsId},e.dsId+u.default.uniqueId(),e.name)}))))),(0,o.default)(_,{help:""},void 0,s("cycleId",{rules:[{required:!0}],initialValue:this.source.cycleId,normalize:this.normalizeCycleId})((0,o.default)(d.default,{disabled:this.props.moduleDisabled,onChange:this.handleCycleChange,getPopupContainer:function(e){return e.parentNode},style:{width:"150px"}},void 0,C,a.map((function(e){return(0,o.default)(y,{title:e.dsCycle,value:e.dsCycle},e.id+u.default.uniqueId(),null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")}))))),(0,o.default)(_,{},void 0,(0,o.default)(v,{disabled:""===this.state.sourceId||""===this.source.cycleId,style:{marginTop:4,width:120},action:"VIEW",txt:"\u67e5\u770b\u6570\u636e",onClick:function(){return e.showSource()}}))))},t}(l.default.PureComponent);t.default=(0,f.connect)((function(e){return{sourcesAudit:(0,p.selectDatasSourcesAudit)(e),sourceData:(0,p.selectSourceDropDown)(e),cyclesData:(0,p.selectCyclesData)(e)}}))(h.Form.create()(j))},"./src/module/modelEdit/modelConfig/component/EngineInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.EngineInfoDiv=t.EngineInfoDom=void 0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/react/index.js")),d=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./node_modules/@ant-design/icons/es/index.js"),c=a("./src/redux/selectors/enumDic.js"),p=a("./src/components/auth/optionAuth.jsx"),f=m(a("./node_modules/lodash/lodash.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=t.EngineInfoDom=d.default.div.withConfig({displayName:"EngineInfo__EngineInfoDom",componentId:"h2lk9h-0"})(["width:100%;float:left;.forbid{cursor:not-allowed;&:hover{background:#f5f6f9;border:none;}}"]),g=t.EngineInfoDiv=d.default.div.withConfig({displayName:"EngineInfo__EngineInfoDiv",componentId:"h2lk9h-1"})(["background:#f5f6f9;width:32%;display:inline-block;flex-direction:column;justify-content:stretch;flex:1 1 auto;height:120px;padding-top:15px;margin:0 10px 10px 0px;cursor:pointer;border:0.5px solid transparent;&.active{border:0.5px solid #47b2fb;background:#ffff;&:hover{cursor:auto;color:rgba(0,0,0,0.65);background-color:none;}}&.noSelect{cursor:not-allowed;color:#a2b0c4;&:hover{cursor:auto;border:none;background:#f5f6f9;}}&:hover{border:0.5px solid #47b2fb;background:#ffff;}.imgDiv{float:left;height:51px;text-align:center;width:94px;}ul{float:left;text-align:center;list-style-type:none;li{width:95%;text-align:left;span{color:#00cf9b;padding-left:80px;font-size:12px;}&.noSelect{color:#a2b0c4;cursor:not-allowed;}}.details{font-size:12px;color:#475669;}.title{font-weight:600;font-size:14px;}.noSelect{color:#a2b0c4;cursor:not-allowed;}}"]),v=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.clickEngine=function(e){n.setState({value:e,validate:!0}),n.props.onChange(e,"engineInfo")},n.validateFun=function(){return null!==n.state.value?(n.setState({validate:!0}),{validate:!0,moduleData:{engine:n.state.value}}):(n.setState({validate:!1}),{validate:!1,errorMsg:"\u8bf7\u9009\u62e9\u8ba1\u7b97\u5f15\u64ce\u6a21\u5757\u6570\u636e"})},n.state={value:void 0!==a.modelId?f.default.toString(a.modelInfo.engine):null,validate:!0};var r=n.props.setValidateFunc;return f.default.isFunction(r)&&r("engineInfo",n.validateFun),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.allowEngine,a=this.props.engineData.list();return(0,n.default)(h,{},void 0,a.map((function(a){return(0,p.hasOption)("root.modelTrain.wizardRunEngine",a.value)&&(0,n.default)(g,{style:e.state.validate||-1===f.default.indexOf(t,a.value)?{}:{border:"0.5px solid red"},onClick:e.props.moduleDisabled?null:-1!==f.default.indexOf(t,a.value)?function(){return e.clickEngine(a.value)}:null,className:[e.props.moduleDisabled&&"forbid",a.value===e.state.value&&"active"].filter(Boolean).join(" ")},a.value,(0,n.default)("ul",{},void 0,(0,n.default)("li",{className:-1!==f.default.indexOf(t,a.value)?"title":"noSelect"},void 0,a.txt,(0,n.default)("span",{style:{fontWeight:"400"},className:-1!==f.default.indexOf(t,a.value)?"":"noSelect"},void 0,-1!==f.default.indexOf(t,a.value)&&(0,n.default)(u.CheckCircleOutlined,{style:{marginRight:"10px",fontSize:12,color:"#00CF9B"}}),-1===f.default.indexOf(t,a.value)&&(0,n.default)(u.ExclamationCircleOutlined,{style:{marginRight:"10px",fontSize:12,color:"#A2B0C4"}}),-1!==f.default.indexOf(t,a.value)&&"\u53ef\u7528",-1===f.default.indexOf(t,a.value)&&"\u4e0d\u53ef\u7528")),(0,n.default)("li",{style:{marginTop:"15px"},className:-1!==f.default.indexOf(t,a.value)?"details":"noSelect"},void 0,a.desc)))})))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{engineData:(0,c.dicGroupHelper)(e,"MODEL_ENGINE")}}))(v)},"./src/module/modelEdit/modelConfig/component/ModelInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=h(a("./node_modules/react/index.js")),l=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var u=a("./node_modules/react-redux/es/index.js"),c=a("./src/redux/reducers/busiTypes.js"),p=a("./src/redux/selectors/busiTypes.js"),f=h(a("./src/components/common/CheckName.jsx")),m=a("./src/redux/selectors/checkName.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=i.default.Option,v=l.Form.Item,y=(0,n.default)(g,{value:""},void 0,"\u8bf7\u9009\u62e9\u4e1a\u52a1\u5206\u7c7b"),b=function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));r.showVerifyError=function(e,t){return null!==e&&!r.props.moduleDisabled&&(0,n.default)("div",{style:{wordWrap:"break-word",marginTop:"1 px"}},void 0,!e&&3!==e&&(0,n.default)("span",{style:{fontSize:"10px",marginLeft:"5px",color:"#FB6362"}},void 0,t),3===e&&(0,n.default)("span",{style:{fontSize:"10px",marginLeft:"5px",color:"#FB6362"}},void 0,t))},r.getModelNameBlur=function(e){r.setState({modelName:e}),r.modelData.modelName=e,r.props.form.setFieldsValue({modelName:e})},r.validateFun=function(){var e=!1;return r.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:r.modelData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u6a21\u578b\u4fe1\u606f\u6a21\u5757\u6570\u636e"}},r.getBusinessTypeChange=function(e){r.modelData.businessType=e},r.emitEmpty=function(){r.userNameInput.focus(),r.props.form.setFieldsValue({modelName:""}),r.setState({modelName:""})},r.handleCheckNameValidate=function(e,t,a){var n=r.props.checkNameVerifyInfo.toJS(),o=n.verifyStatus,s=n.verifyMsg;-1===o&&a(s),a()},r.state={businessType:"",modelName:void 0!==r.props.modelId?_.get(r.props.modelInfo,"modelName"):""};var i=r.props.setValidateFunc;return _.isFunction(i)&&i("modelInfo",r.validateFun),r.modelData={modelName:void 0!==r.props.modelId?_.get(r.props.modelInfo,"modelName"):"",businessType:void 0!==r.props.modelId?_.get(r.props.modelInfo,"businessType"):""},r.checkNameRef=d.default.createRef(),r}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(c.busiTypesActions.getBusinessTypeDataRequest())},t.prototype.render=function(){var e=this.props.form.getFieldDecorator,t=this.props.businessTypeData.toJS();return(0,n.default)(l.Form,{layout:"inline"},void 0,(0,n.default)(v,{help:""},void 0,e("modelName",{rules:[{required:!0,min:0,max:30},{validator:this.handleCheckNameValidate}],initialValue:this.state.modelName})(d.default.createElement(f.default,{ref:this.checkNameRef,source:"modelInfo",style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u6a21\u578b\u540d\u79f0",modelId:this.props.modelId||"",updateNameCallback:this.getModelNameBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelEdit\\modelConfig\\component\\ModelInfo.jsx",lineNumber:115}}))),(0,n.default)(v,{help:""},void 0,e("businessType",{rules:[{required:!0}],initialValue:this.modelData.businessType})((0,n.default)(i.default,{disabled:this.props.moduleDisabled,onChange:this.getBusinessTypeChange,style:{width:120},getPopupContainer:function(e){return e.parentNode}},void 0,y,t.map((function(e){return(0,n.default)(g,{value:e.id},e.id,e.name)}))))),this.showVerifyError(this.state.modelNameVerify,this.state.verifyMsg))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{checkNameVerifyInfo:(0,m.selectVerifyInfo)(e),businessTypeData:(0,p.selectGetBusinessTypeData)(e)}}))(l.Form.create()(b))},"./src/module/modelEdit/modelConfig/component/SceneInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.SceneInfoDiv=t.SceneInfoDom=void 0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/modal/style/index.js");var d=m(a("./node_modules/react/index.js")),l=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/redux/selectors/enumDic.js"),p=a("./src/redux/reducers/dataSource.js"),f=a("./src/components/auth/optionAuth.jsx");function m(e){return e&&e.__esModule?e:{default:e}}var h=i.default.confirm,g=t.SceneInfoDom=l.default.div.withConfig({displayName:"SceneInfo__SceneInfoDom",componentId:"sc-11bdbhg-0"})(["width:49.5%;height:600px;float:left;.disabled{cursor:not-allowed;&:hover{background:#f5f6f9;border:none;}}"]),v=t.SceneInfoDiv=l.default.div.withConfig({displayName:"SceneInfo__SceneInfoDiv",componentId:"sc-11bdbhg-1"})(["background:#f5f6f9;height:100px;display:inline-block;flex-direction:column;justify-content:stretch;flex:1 1 auto;padding:16px;margin-bottom:10px;width:100%;cursor:pointer;border:0.5px solid transparent;&.active{border:0.5px solid #47b2fb;background:#ffff;}&:hover{border:0.5px solid #47b2fb;background:#ffff;}.imgDiv{float:left;height:51px;width:94px;padding-right:15px;}.configDiv{width:74%;float:left;color:#475669;.title{text-align:left;font-weight:600;padding-bottom:8px;color:#475669;}.details{font-size:10px;color:#475669;}}"]),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.clickScene=function(e,t){var a=n;null!==n.state.value&&n.state.value!==e?h({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u5207\u6362\u60c5\u666f\u6846\u67b6\u5c06\u4e22\u5931\u5df2\u914d\u7f6e\u7684\u53c2\u6570\uff0c\u786e\u8ba4\u64cd\u4f5c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){a.confirmScene(e,t)}}):n.confirmScene(e,t)},n.confirmScene=function(e,t){n.props.moduleDisabled||n.setState({value:e,validate:!0}),n.props.dispatch(p.dataSourceActions.getDataParamModeltypeListRequest({viewType:"MODIFY",workFlag:null,isUpdate:null,modelId:null,modelTypeId:e})),n.props.onChange({sceneId:e,index:t},"sceneInfo")},n.validateFun=function(){return null!==n.state.value?(n.setState({validate:!0}),{validate:!0,moduleData:{sceneTypeId:n.state.value}}):(n.setState({validate:!1}),{validate:!1,errorMsg:"\u8bf7\u9009\u62e9\u60c5\u666f\u6846\u67b6\u6a21\u5757\u6570\u636e"})},n.state={value:void 0!==a.modelId||a.modelInfo.modelTypeId?a.modelInfo.modelTypeId:null,validate:!0};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("sceneInfo",n.validateFun),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.sceneData.list(),o=["11","12"],s=_.remove(t,(function(e){return-1===_.indexOf(o,e.value)}));return(0,n.default)(g,{},void 0,s.map((function(t,o){return(0,f.hasOption)("root.modelTrain.wizardSceneFramework",t.value)&&(0,n.default)(v,{style:e.state.validate?{}:{border:"0.5px solid red"},onClick:e.props.moduleDisabled?null:function(){return e.clickScene(t.value,o)},className:[e.props.moduleDisabled&&"disabled",t.value===e.state.value&&"active"].filter(Boolean).join(" ")},t.value,(0,n.default)("div",{className:"imgDiv"},void 0,(0,n.default)("img",{src:a("./src/styles/images/modelConfig sync recursive ^\\.\\/.*\\.png$")("./"+t.code+".png")})),(0,n.default)("div",{className:"configDiv"},void 0,(0,n.default)("div",{className:"title"},void 0,t.txt),(0,n.default)("div",{className:"details"},void 0,t.desc)))})))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{sceneData:(0,c.dicGroupHelper)(e,"SCENE_INFO")}}))(y)},"./src/module/modelEdit/modelDeepLearn/CreateModelConfigPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.ModelRightPage=t.ModelLeftPage=t.ModelDeepLearnPage=t.RadialLinePage=void 0;var n=E(a("./node_modules/antd/es/spin/index.js")),o=E(a("./node_modules/antd/es/message/index.js")),s=E(a("./node_modules/babel-runtime/helpers/jsx.js")),r=E(a("./node_modules/antd/es/notification/index.js")),i=E(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=E(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=E(a("./node_modules/babel-runtime/helpers/inherits.js")),u=E(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=E(a("./node_modules/react/index.js")),p=E(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=E(a("./node_modules/lodash/lodash.js")),m=a("./src/routes/routeHelper.jsx"),h=a("./src/utils/history.js"),g=(E(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),v=a("./src/components/index.js"),_=a("./src/redux/reducers/modelManage.js"),y=a("./node_modules/@ant-design/icons/es/index.js"),b=a("./src/module/modelEdit/util/formatModelData.js"),x=a("./src/redux/selectors/modelManage.js"),C=E(a("./src/module/modelEdit/modelDeepLearn/component/ModelDeepLearnInfo.jsx")),j=E(a("./src/module/modelEdit/modelDeepLearn/component/ModelDataSetSlider.jsx")),S=E(a("./src/module/modelEdit/modelDeepLearn/component/ModelNeuralInfo.jsx")),I=E(a("./src/module/modelEdit/modelDeepLearn/component/ModelEngineInfo.jsx")),T=E(a("./src/module/modelEdit/modelDeepLearn/component/RadialLine.jsx")),w=E(a("./src/module/modelEdit/modelDeepLearn/component/ModelScene.jsx"));function E(e){return e&&e.__esModule?e:{default:e}}var D=E(a("./src/components/button/index.js")).default.IconButton,M=u.default.confirm,k=t.RadialLinePage=p.default.div.withConfig({displayName:"CreateModelConfigPage__RadialLinePage",componentId:"i4vfim-0"})(["margin-left:-30px;width:95%;"]),P=t.ModelDeepLearnPage=p.default.div.withConfig({displayName:"CreateModelConfigPage__ModelDeepLearnPage",componentId:"i4vfim-1"})(["flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;width:100%;display:inline-block;"]),L=t.ModelLeftPage=p.default.div.withConfig({displayName:"CreateModelConfigPage__ModelLeftPage",componentId:"i4vfim-2"})(["float:left;width:44%;"]),N=t.ModelRightPage=p.default.div.withConfig({displayName:"CreateModelConfigPage__ModelRightPage",componentId:"i4vfim-3"})(["float:right;display:block;width:56%;"]),A=t.ConfigButtonDom=p.default.div.withConfig({displayName:"CreateModelConfigPage__ConfigButtonDom",componentId:"i4vfim-4"})(["text-align:right;padding-right:10%;width:110%;margin-left:-15%;position:fixed;height:50px;bottom:0px;background:rgba(229,233,242,0.75);left:auto;right:auto;padding-top:12px;"]),R=t.ErrorUl=p.default.ul.withConfig({displayName:"CreateModelConfigPage__ErrorUl",componentId:"i4vfim-5"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),F={width:"100%"},O=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.getModelData=function(e,t){"sceneInfo"===t&&n.setState({modelTypeId:e})},n.cancel=function(){var e=n;M({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u6a21\u578b\u7ba1\u7406\u754c\u9762\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){e.props.dispatch(_.modelManageActions.resetModelConfig()),window.close()}})},n.savaOrSubmit=function(e){n.subType=e;var t={},a={};if(Object.keys(n.validateFuncs).map((function(e){var o=n.validateFuncs[e];if(f.default.isFunction(o)){var s=o.call();s.validate?t[e]=s.moduleData:a[e]=s.errorMsg}})),"{}"!==JSON.stringify(a)){var o=n.errorDom(a);r.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:o,icon:(0,s.default)(y.FrownOutlined,{style:{color:"#f5222d"}})})}else{for(var i in t)"modelParams"===i||"configMsg"===i?(n.moduleData.modelParams=f.default.assign(n.moduleData.modelParams,t[i]),n.moduleData.modelParams.gpuNum=t.modelEngineInfo.gpuNum):n.moduleData.modelInfo=f.default.assign(n.moduleData.modelInfo,t[i]);n.moduleServiceData=(0,b.serviceDeepLearnDataFormat)("create"===n.props.viewType?"CREATE":"MODIFY",n.moduleData,void 0!==n.props.modelId?n.props.modelId:n.props.createModelId),n.setState({modalVisible:!0,modelName:n.moduleData.modelInfo.modelName})}},n.errorDom=function(e){return(0,s.default)(R,{},void 0,Object.keys(e).map((function(t){return(0,s.default)("li",{},t,e[t])})))},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(_.modelManageActions.submitModelDataRequest({subType:n.subType,modelConfig:n.moduleServiceData}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.modelId=f.default.get(a,"modelId"),n.state={modelName:"",moduleDisabled:"view"===a.viewType,confirmLoading:!1,modalVisible:!1,modelTypeId:"",modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",saveStatus:void 0!==n.props.modelId&&(n.props.modelInfo.status>3&&7!==n.props.modelInfo.status),_this:n},n.subType="",n.moduleData={},n.moduleServiceData={},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.componentWillUnmount=function(){},t.prototype.componentDidMount=function(){this.props.dispatch(_.modelManageActions.getCreateModelIdRequest())},t.getDerivedStateFromProps=function(e,t){return"{}"!==JSON.stringify(e.submitModelData)?-1!==f.default.get(e.submitModelData,"code")&&void 0!==e.submitModelData?(e.dispatch(_.modelManageActions.resetModelConfig()),"execute"===t._this.subType?(o.default.success("\u521b\u5efa\u6210\u529f\uff01"),e.dispatch(_.modelManageActions.getModelBasicInfoRequest({modelId:"create"!==e.viewType?e.modelId:e.createModelId})),(0,h.navigateTo)(m.modelTrainUrl.editModel("create"!==e.viewType?e.modelId:e.createModelId,"deepLearn",t.modelName)),{confirmLoading:!1,modalVisible:!1}):(o.default.success("\u521b\u5efa\u6210\u529f\uff01,2\u79d2\u540e\u81ea\u52a8\u5173\u95ed"),t._this.props.dispatch(_.modelManageActions.resetModelConfig()),setTimeout((function(){window.close()}),2e3),{confirmLoading:!1,modalVisible:!1})):(u.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalVisible:!1}):null},t.prototype.render=function(){var e=this;return(0,s.default)(P,{},void 0,(0,s.default)(u.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,s.default)("p",{},void 0,this.state.modalTxt)),(0,s.default)(L,{},void 0,(0,s.default)(n.default,{spinning:!!this.state.saveStatus},void 0,(0,s.default)(v.ModelConfigPanel,{title:"\u914d\u7f6e\u57fa\u7840\u4fe1\u606f",style:F},void 0,(0,s.default)(C.default,{moduleDisabled:"view"===this.props.viewType,viewType:this.props.viewType,modelId:this.props.modelId,modelInfo:this.props.modelInfo,onChange:this.getModelData,setValidateFunc:this.setValidateFunc}),(0,s.default)(j.default,{onChange:this.getModelData,viewType:this.props.viewType,modelId:this.props.modelId,modelInfo:this.props.modelInfo,modelParams:this.props.updataModelsData,moduleDisabled:"view"===this.props.viewType,setValidateFunc:this.setValidateFunc}),(0,s.default)(w.default,{viewType:this.props.viewType,modelId:this.props.modelId,onChange:this.getModelData,modelInfo:this.props.modelInfo,moduleDisabled:"view"===this.props.viewType,setValidateFunc:this.setValidateFunc}),(0,s.default)(S.default,{modelTypeId:this.state.modelTypeId,onChange:this.getModelData,viewType:this.props.viewType,modelId:this.props.modelId,modelParams:this.props.updataModelsData,moduleDisabled:"view"===this.props.viewType,setValidateFunc:this.setValidateFunc}),(0,s.default)(I.default,{onChange:this.getModelData,viewType:this.props.viewType,modelId:this.props.modelId,modelInfo:this.props.modelInfo,modelParams:this.props.updataModelsData,moduleDisabled:"view"===this.props.viewType,setValidateFunc:this.setValidateFunc})))),(0,s.default)(N,{},void 0,(0,s.default)(v.ModelConfigPanel,{title:"\u8c03\u6574\u7f51\u7edc\u53c2\u6570",style:F},void 0,(0,s.default)("div",{style:{height:280}},void 0," ",(0,s.default)("img",{width:"100%",src:a("./src/styles/images/modelConfig/deeplearing.png")}))),(0,s.default)(v.ModelConfigPanel,{title:"\u76d1\u63a7\u8bad\u7ec3\u8fc7\u7a0b",style:F},void 0,(0,s.default)(k,{id:"radialLinePage"},void 0,(0,s.default)(T.default,{height:380,modelParams:this.props.updataModelsData,viewType:this.props.viewType,modelId:this.props.modelId,modelInfo:this.props.modelInfo,saveStatus:this.state.saveStatus,setValidateFunc:this.setValidateFunc})))),(0,s.default)(A,{},void 0,(0,s.default)(D,{btnType:"small",style:{marginLeft:"10px",width:120},action:"STOP",txt:"\u53d6 \u6d88",onClick:function(){return e.cancel()}}),(0,s.default)(D,{btnType:"small",style:{display:void 0!==this.props.modelId&&(this.props.modelInfo.status>3&&7!==this.props.modelInfo.status||"view"===this.props.viewType)?"none":"",marginLeft:"10px",width:120},action:"EDIT",txt:"\u4fdd \u5b58",onClick:function(){return e.savaOrSubmit("save")}}),(0,s.default)(D,{btnType:"small",style:{display:void 0!==this.props.modelId&&(this.props.modelInfo.status>3&&7!==this.props.modelInfo.status||"view"===this.props.viewType)?"none":"",marginLeft:"10px",marginRight:"20px",width:120},action:"EXECUTE",txt:"\u5f00\u59cb\u8bad\u7ec3",onClick:function(){return e.savaOrSubmit("execute")}})))},t}(c.default.PureComponent);t.default=(0,g.connect)((function(e){return{createModelId:(0,x.getCreateModelId)(e),submitModelData:(0,x.submitModel)(e)}}))(O)},"./src/module/modelEdit/modelDeepLearn/ModelDeepLearnConfigPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/react/index.js")),d=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),l=a("./node_modules/react-router-dom/esm/react-router-dom.js"),u=g(a("./src/module/modelEdit/modelDeepLearn/CreateModelConfigPage.jsx")),c=a("./src/redux/selectors/modelManage.js"),p=a("./src/redux/reducers/modelManage.js"),f=a("./src/redux/reducers/dataSource.js"),m=a("./src/redux/reducers/indiSet.js"),h=a("./src/config/scene-advanced-config.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=(0,n.default)("div",{}),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.dispatch(f.dataSourceActions.getDeeplearnArithmeticRequest())},n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(e){if(null!==e.modelInfo&&"create"!==e.viewType&&e.modelInfo.size>0&&0===e.updataModelsData.size){var t=e.modelInfo.toJS(),a=h.SCENE_ADVANCED_CONFIG[t.modelTypeId.toString()],n="";if(void 0!==_.get(a,"subModulesData")){for(var o=_.get(a,"subModulesData"),s=0;s<o.length;s++)n+=o[s]+",";e.dispatch(p.modelManageActions.getModulesConfigDataRequest({modelId:t.modelId,componentId:n.substring(0,n.length-1),viewType:"MODIFY"}))}e.dispatch(m.indiSetActions.loadIndiListRequest({dsId:t.dsId,dsCycle:t.dsCycle})),e.dispatch(f.dataSourceActions.getDataSourceAuditListRequest({dsId:t.dsId,dsCycle:t.dsCycle,kpiClass:null,kpiName:null}))}return null},t.prototype.render=function(){var e=this.props,t=e.viewType,a=e.modelId,o=e.modelInfo,s=e.updataModelsData;return"create"===t?(0,n.default)(u.default,{viewType:t}):o.size>0&&s.size>0?(0,n.default)(u.default,{updataModelsData:s,modelId:a,modelInfo:o.toJS(),viewType:t}):v},t}(i.default.Component);t.default=(0,l.withRouter)((0,d.connect)((function(e,t){var a=t.match.params,n=a.modelId,o=a.action;return{modelId:n,viewType:_.includes(["view","create","edit"],o)?o:void 0,updataModelsData:(0,c.selectGetModulesConfigData)(e)}}))(y))},"./src/module/modelEdit/modelDeepLearn/component/ConfigMsg.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.ConfigMsgPage=void 0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/babel-runtime/helpers/extends.js")),s=v(a("./node_modules/antd/es/input/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/antd/es/message/index.js")),d=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=v(a("./node_modules/babel-runtime/helpers/inherits.js")),c="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelEdit\\modelDeepLearn\\component\\ConfigMsg.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=v(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");a("./node_modules/recharts/es6/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=g.Form.Item,b=t.ConfigMsgPage=m.default.div.withConfig({displayName:"ConfigMsg__ConfigMsgPage",componentId:"bv4ere-0"})([".ant-row{position:relative;margin-left:0;margin-right:0;height:auto;zoom:1;display:block;margin-bottom:0px;box-sizing:border-box;}width:200px;.icon{font-size:16px;color:#a2b0c4;cursor:pointer;margin-left:3%;}.spanTit{margin:0 5px 0 10px;}"]),x=t.ButtonDom=m.default.div.withConfig({displayName:"ConfigMsg__ButtonDom",componentId:"bv4ere-1"})(["margin-top:10px;height:28px;text-align:right;margin-right:2%;"]),C=(0,r.default)(h.QuestionCircleOutlined,{className:"icon",title:"\u6279\u6570\u636e\u7684\u5927\u5c0f\uff0c\u5373\u6bcf\u6b21\u8bad\u7ec3\u7684\u6837\u672c\u4e2a\u6570"}),j=(0,r.default)(h.QuestionCircleOutlined,{className:"icon",title:"\u8fed\u4ee3\u6b21\u6570\uff0c \u6240\u6709\u8bad\u7ec3\u6837\u672c\u7684\u4e00\u4e2a\u6b63\u5411\u4f20\u9012\u548c\u4e00\u4e2a\u53cd\u5411\u4f20\u9012"}),S=(0,r.default)(h.QuestionCircleOutlined,{className:"icon",title:"\u521d\u59cb\u5b66\u4e60\u7387\u548c\u53d8\u5316\u89c4\u5219\uff0c\u51b3\u5b9a\u4e86\u53c2\u6570\u79fb\u52a8\u5230\u6700\u4f18\u503c\u7684\u901f\u5ea6\u5feb\u6162\u3002\u5982\u679c\u5b66\u4e60\u7387\u8fc7\u5927\uff0c\u5f88\u53ef\u80fd\u4f1a\u8d8a\u8fc7\u6700\u4f18\u503c\uff1b\u53cd\u800c\u5982\u679c\u5b66\u4e60\u7387\u8fc7\u5c0f\uff0c\u4f18\u5316\u7684\u6548\u7387\u53ef\u80fd\u8fc7\u4f4e\uff0c\u957f\u65f6\u95f4\u7b97\u6cd5\u65e0\u6cd5\u6536\u655b"}),I=(0,r.default)(h.QuestionCircleOutlined,{className:"icon",title:"\u4f18\u5316\u5668\uff0c\u51b3\u5b9a\u53c2\u6570\u66f4\u65b0\u7684\u51c6\u786e\u7387\u548c\u8fd0\u884c\u65f6\u95f4"}),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.validateFun=function(){return{validate:!0,moduleData:n.modelData}},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?n.props.hide():i.default.warning("\u8bf7\u586b\u5199\u5b8c\u5168\u914d\u7f6e\u53c2\u6570!")},n.getModelNameBlur=function(e,t){n.modelData[e]=t},n.modelData={batchSize:"create"===n.props.viewType?"100":n.props.modelParams.toJS().modelParams.batchSize,epoch:"create"===n.props.viewType?"58":n.props.modelParams.toJS().modelParams.epoch,learningRate:"create"===n.props.viewType?"100":n.props.modelParams.toJS().modelParams.learningRate,lRPolicy:"create"===n.props.viewType?"100":n.props.modelParams.toJS().modelParams.lRPolicy,optimizer:"create"===n.props.viewType?"150":n.props.modelParams.toJS().modelParams.optimizer};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("configMsg",n.validateFun),n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a={labelCol:{xs:{span:5},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:16}}};return(0,r.default)(b,{},void 0,(0,r.default)(g.Form,{layout:"horizontal"},void 0,p.default.createElement(y,(0,o.default)({help:""},a,{label:"Batch size",__source:{fileName:c,lineNumber:88}}),t("batchSize",{rules:[{required:!0,min:0,max:30}],initialValue:this.modelData.batchSize})(p.default.createElement(s.default,{size:"small",disabled:"none"===this.props.moduleDisabled,style:{marginLeft:"5px",width:95},ref:function(t){return e.nameInput=t},placeholder:"Value",onBlur:function(t){return e.getModelNameBlur("batchSize",t.target.value)},__source:{fileName:c,lineNumber:99}})),C),p.default.createElement(y,(0,o.default)({help:""},a,{label:"Epoch",__source:{fileName:c,lineNumber:110}}),t("epoch",{rules:[{required:!0,min:0,max:30}],initialValue:this.modelData.epoch})(p.default.createElement(s.default,{size:"small",disabled:"none"===this.props.moduleDisabled,style:{marginLeft:"5px",width:95},ref:function(t){return e.nameInput=t},placeholder:"Value",onBlur:function(t){return e.getModelNameBlur("epoch",t.target.value)},__source:{fileName:c,lineNumber:121}})),j),p.default.createElement(y,(0,o.default)({help:""},a,{label:"LearningRate",__source:{fileName:c,lineNumber:132}}),t("learningRate",{rules:[{required:!0,min:0,max:30}],initialValue:this.modelData.learningRate})(p.default.createElement(s.default,{size:"small",disabled:"none"===this.props.moduleDisabled,style:{marginLeft:"5px",width:95},ref:function(t){return e.nameInput=t},placeholder:"Value",onBlur:function(t){return e.getModelNameBlur("learningRate",t.target.value)},__source:{fileName:c,lineNumber:143}}))),p.default.createElement(y,(0,o.default)({help:""},a,{label:"LRPolicy",__source:{fileName:c,lineNumber:153}}),t("lRPolicy",{rules:[{required:!0,min:0,max:30}],initialValue:this.modelData.lRPolicy})(p.default.createElement(s.default,{size:"small",disabled:"none"===this.props.moduleDisabled,style:{marginLeft:"5px",width:95},ref:function(t){return e.nameInput=t},placeholder:"Value",onBlur:function(t){return e.getModelNameBlur("lRPolicy",t.target.value)},__source:{fileName:c,lineNumber:164}})),S),p.default.createElement(y,(0,o.default)({help:""},a,{label:"Optimizer",__source:{fileName:c,lineNumber:178}}),t("optimizer",{rules:[{required:!0,min:0,max:30}],initialValue:this.modelData.optimizer})(p.default.createElement(s.default,{size:"small",disabled:"none"===this.props.moduleDisabled,style:{marginLeft:"5px",width:95},ref:function(t){return e.nameInput=t},placeholder:"Value",onBlur:function(t){return e.getModelNameBlur("optimizer",t.target.value)},__source:{fileName:c,lineNumber:189}})),I),(0,r.default)(x,{},void 0,(0,r.default)(n.default,{onClick:this.props.hide},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{onClick:this.saveKpi,style:{display:this.props.moduleDisabled,marginLeft:"3.1%"},type:"primary"},void 0,"\u786e\u5b9a"))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(g.Form.create()(T))},"./src/module/modelEdit/modelDeepLearn/component/ModelApplyTypeConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.ModelApplyTypeConfigPage=void 0;var n=b(a("./node_modules/antd/es/spin/index.js")),o=b(a("./node_modules/antd/es/button/index.js")),s=b(a("./node_modules/antd/es/input/index.js")),r=b(a("./node_modules/antd/es/modal/index.js")),i=b(a("./node_modules/antd/es/message/index.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=b(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=(b(a("./node_modules/prop-types/index.js")),a("./src/redux/selectors/busiTypes.js")),y=a("./src/redux/reducers/busiTypes.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=h.Form.Item,C=(0,c.default)(m.LoadingOutlined,{style:{marginLeft:"10px",fontSize:16},spin:!0}),j=t.ModelApplyTypeConfigPage=g.default.div.withConfig({displayName:"ModelApplyTypeConfig__ModelApplyTypeConfigPage",componentId:"sc-1ky3bxa-0"})(["padding-left:10px;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),S=t.ButtonDom=g.default.div.withConfig({displayName:"ModelApplyTypeConfig__ButtonDom",componentId:"sc-1ky3bxa-1"})(["margin-top:20px;height:28px;text-align:right;margin-right:5%;"]),I=(0,c.default)(n.default,{indicator:C}),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.showVerifyIcon=function(e){return null===e?(0,c.default)("div",{style:{display:"inline-block",marginTop:"10px",width:20}}):(0,c.default)("div",{style:{display:"inline-block",marginTop:"10px",width:20}},void 0,e&&3!==e&&(0,c.default)(m.CheckCircleOutlined,{style:{marginLeft:"2px",fontSize:16,color:"#00CF9B"}}),!e&&3!==e&&(0,c.default)(m.CloseCircleOutlined,{style:{marginLeft:"2px",fontSize:16,color:"#FB6362"}}),3===e&&I)},n.saveDefine=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&n.state.nameVerify?n.setState({modalVisible:!0}):n.setState({nameVerify:!1,verifyMsg:"\u540d\u79f0\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e30\uff01"})},n.submitModalOk=function(){n.state.nameVerify?(n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(y.busiTypesActions.saveBusiTypesRequest({subType:"add",appTopicType:{name:n.state.name}}))):n.setState({modalVisible:!1})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.getKpiNameBlur=function(e){var t=e.replace(/(^\s*)|(\s*$)/g,"");n.setState({name:t}),t.length>0&&t.length<30?(n.setState({name:t}),n.props.dispatch(y.busiTypesActions.checkModelNameRequest({name:t}))):n.setState({nameVerify:!1,verifyMsg:"\u540d\u79f0\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e30\uff01"})},n.state={nameVerify:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1,verifyMsg:"",name:""},n}return(0,u.default)(t,e),t.getDerivedStateFromProps=function(e){return 0!==e.checkNameCode&&"{}"===JSON.stringify(e.saveBusiTypes)?{nameVerify:1===e.checkNameCode||(0===e.checkNameCode?null:3===e.checkNameCode&&3),verifyMsg:1===e.checkNameCode?"\u540d\u79f0\u53ef\u4ee5\u4f7f\u7528\uff01":3===e.checkNameCode?"\u9a8c\u8bc1\u4e2d\u8bf7\u7a0d\u540e..":"\u540d\u79f0\u91cd\u590d\uff01"}:"{}"!==JSON.stringify(e.saveBusiTypes)?-1!==_.get(e.saveBusiTypes,"code")?(i.default.success("\u521b\u5efa\u6210\u529f\uff01"),e.closeKpiConfig(),e.dispatch(y.busiTypesActions.resetSaveBusiTypes()),e.dispatch(y.busiTypesActions.getBusinessTypeDataRequest()),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1}):(r.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalVisible:!1}):null},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,c.default)(j,{},void 0,(0,c.default)(r.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,c.default)("p",{},void 0,this.state.modalTxt)),(0,c.default)(h.Form,{layout:"inline"},void 0,(0,c.default)(x,{help:""},void 0,t("name ",{rules:[{required:!0,min:0,max:30}],initialValue:this.state.name})(p.default.createElement(s.default,{style:{width:"400px"},ref:function(t){return e.userNameInput=t},placeholder:"\u8bf7\u8f93\u5165\u5206\u7c7b\u540d\u79f0",onBlur:function(t){return e.getKpiNameBlur(t.target.value)},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelEdit\\modelDeepLearn\\component\\ModelApplyTypeConfig.jsx",lineNumber:214}}))),this.showVerifyIcon(this.state.nameVerify,this.state.verifyMsg)),(0,c.default)(S,{},void 0,(0,c.default)(o.default,{onClick:this.saveDefine,style:{marginLeft:"3.1%"},type:"primary"},void 0,"\u786e\u5b9a\u4fdd\u5b58")))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(e){return{checkNameCode:(0,v.selectCheckNameCode)(e),saveBusiTypes:(0,v.selectSaveBusiTypes)(e)}}))(h.Form.create()(T))},"./src/module/modelEdit/modelDeepLearn/component/ModelDataSetSlider.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=(u(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),l=a("./node_modules/react-redux/es/index.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.validateFun=function(){return{validate:!0,moduleData:n.modelData}},n.setModuleData=function(e,t){"divideData"===t&&(n.setState({divideData:e}),n.modelData.divideData=e)},n.state={divideData:"create"===n.props.viewType?80:Math.floor(n.props.modelParams.toJS().divideDataVerify)};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("divideDataVerify",n.validateFun),n.modelData={divideData:"create"===n.props.viewType?80:Math.floor(n.props.modelParams.toJS().divideDataVerify)},n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)("div",{},void 0,(0,n.default)("span",{style:{color:"#475669",fontSize:14}},void 0,"\u5212\u5206\u6570\u636e\u96c6"),(0,n.default)(d.SliderRatio,{disabled:this.props.moduleDisabled,bodyStyle:{width:"88%",float:"left",marginRight:"2%"},onChange:this.setModuleData,moduleType:"divideData",defaultValue:this.state.divideData,sliderTitleBefore:"\u8bad\u7ec3\u96c6(train)",sliderTitleLater:"\u6821\u9a8c\u96c6(val)"}))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(c)},"./src/module/modelEdit/modelDeepLearn/component/ModelDeepLearnInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=T(a("./node_modules/antd/es/spin/index.js")),o=T(a("./node_modules/antd/es/button/index.js")),s=T(a("./node_modules/antd/es/input/index.js")),r=T(a("./node_modules/antd/es/table/index.js")),i=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=T(a("./node_modules/babel-runtime/helpers/inherits.js")),u=T(a("./node_modules/babel-runtime/helpers/jsx.js")),c=T(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=T(a("./node_modules/react/index.js")),f=(T(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./src/components/index.js"),g=a("./src/redux/reducers/dataSource.js"),v=a("./src/redux/reducers/busiTypes.js"),y=a("./src/redux/selectors/dataSource.js"),b=T(a("./src/module/modelEdit/modelDeepLearn/component/ModelApplyTypeConfig.jsx")),x=a("./node_modules/react-redux/es/index.js"),C=T(a("./src/redux/selectors/enumDic.js")),j=a("./src/redux/reducers/modelManage.js"),S=a("./src/redux/selectors/busiTypes.js"),I=a("./src/redux/selectors/modelManage.js");function T(e){return e&&e.__esModule?e:{default:e}}var w=c.default.Option,E=m.Form.Item,D=(0,u.default)(f.LoadingOutlined,{style:{marginLeft:"10px",fontSize:16},spin:!0}),M=(0,u.default)(n.default,{indicator:D}),k=(0,u.default)(w,{value:""},void 0,"\u8bf7\u9009\u62e9\u4e1a\u52a1\u5206\u7c7b"),P=(0,u.default)(w,{value:""},void 0,"\u8bf7\u9009\u62e9\u6570\u636e\u6e90"),L=(0,u.default)(w,{value:""},void 0,"\u8bf7\u9009\u62e9\u5173\u8054\u5468\u671f"),N=(0,u.default)(f.SearchOutlined,{}),A=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.componentDidMount=function(){n.props.dispatch(v.busiTypesActions.getBusinessTypeDataRequest()),n.props.dispatch(g.dataSourceActions.getDataSourceListRequest({status:10})),"create"!==n.props.viewType&&(n.modelData.modelName=n.props.modelInfo.modelName,n.modelData.businessType=n.props.modelInfo.businessType,n.modelData.dsId=n.props.modelInfo.dsId,n.modelData.dsCycle=n.props.modelInfo.dsCycle,n.setState({modelName:n.props.modelInfo.modelName}))},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u914d\u7f6e\u57fa\u7840\u4fe1\u606f"}},n.showVerifyIcon=function(e){return null===e||n.props.moduleDisabled?(0,u.default)("div",{style:{display:"inline-block",marginTop:"10px",width:20}}):(0,u.default)("div",{style:{display:"inline-block",marginTop:"10px",width:20}},void 0,e&&3!==e&&(0,u.default)(f.CheckCircleOutlined,{style:{marginLeft:"2px",fontSize:16,color:"#00CF9B"}}),!e&&3!==e&&(0,u.default)(f.CloseCircleOutlined,{style:{marginLeft:"2px",fontSize:16,color:"#FB6362"}}),3===e&&M)},n.getModelNameBlur=function(e){var t=e.replace(/(^\s*)|(\s*$)/g,"");n.setState({modelName:t}),t.length>0&&t.length<30?(n.modelData.modelName=t,n.props.dispatch(j.modelManageActions.checkModelNameRequest({modelId:void 0===n.props.modelId?"":n.props.modelId,modelName:t}))):n.setState({modelNameVerify:!1,verifyMsg:"\u540d\u79f0\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e30\uff01"})},n.emitEmpty=function(){n.nameInput.focus(),n.props.form.setFieldsValue({modelName:""}),n.setState({modelName:""})},n.getTypeIdChange=function(e){n.modelData.businessType=e,n.props.form.setFieldsValue({businessType:e})},n.callVisible=function(){n.setState({typeVisible:!1})},n.openModal=function(e){n.setState({modal:e}),n.props.dispatch(v.busiTypesActions.resetSaveBusiTypes()),n.setState({typeVisible:!0})},n.handleSourceChange=function(e){n.modelData.dsId=e,n.modelData.dsCycle="",n.props.dispatch(g.dataSourceActions.getDataCyclesListRequest({dsId:e,status:10})),n.props.dispatch(g.dataSourceActions.clearDataSourceAuditListRequest())},n.handleCycleChange=function(e){n.modelData.dsCycle=e,n.props.dispatch(g.dataSourceActions.getDataSourceAuditListRequest({dsId:n.modelData.dsId,dsCycle:n.modelData.dsCycle,kpiClass:null,kpiName:null}))},n.normalizedsCycle=function(){return n.modelData.dsCycle},n.state={modelNameVerify:null,verifyMsg:"",typeVisible:!1,modelName:"",modal:""};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("modelDeepLearnInfo",n.validateFun),n.modelData={modelName:"",businessType:"",dsId:"",dsCycle:"",manner:"3",dveLanguage:""},n.columns=[{title:"\u6307\u6807\u5206\u7c7b",dataIndex:"fieldClassCnName",width:"10%",render:function(e){return(0,u.default)(h.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6307\u6807\u540d\u79f0",dataIndex:"fieldCnName",width:"10%",render:function(e){return(0,u.default)(h.LineWrap,{title:e,lineClampNum:1})}},{title:"\u5355\u4f4d",dataIndex:"fieldUnit",width:"8%",render:function(e){return(0,u.default)(h.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6570\u636e\u7279\u5f81",dataIndex:"fieldDataFeature",width:"10%",render:function(e){return(0,u.default)(h.LineWrap,{title:e,lineClampNum:1})}},{title:"\u503c\u57df/\u6837\u4f8b",dataIndex:"fieldSimple",width:"15%",render:function(e){return(0,u.default)(h.LineWrap,{title:e,lineClampNum:1})}},{title:"\u5e73\u5747\u503c",dataIndex:"meanValue",width:"10%",render:function(e){return(0,u.default)(h.LineWrap,{title:e,lineClampNum:1})}},{title:"\u79bb\u7fa4\u503c",dataIndex:"outlierValue",width:"15%",render:function(e){return(0,u.default)(h.LineWrap,{title:e,lineClampNum:1})}},{title:"\u7f3a\u5931\u503c\uff08\u4e2a\u6570\uff09",dataIndex:"lostValue",width:"15%",render:function(e){return(0,u.default)(h.LineWrap,{title:e,lineClampNum:1})}}],n}return(0,l.default)(t,e),t.getDerivedStateFromProps=function(e){return{modelNameVerify:1===e.checkNameCode||(0===e.checkNameCode?null:3===e.checkNameCode&&3),verifyMsg:1===e.checkNameCode?"\u6a21\u578b\u540d\u79f0\u53ef\u4ee5\u4f7f\u7528\uff01":3===e.checkNameCode?"\u9a8c\u8bc1\u4e2d\u8bf7\u7a0d\u540e..":"\u6a21\u578b\u540d\u79f0\u91cd\u590d\uff01"}},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.businessTypeData.toJS(),n=0!==this.props.sourceData.size?this.props.sourceData.toJS():[],i=0!==this.props.sourcesAudit.size?this.props.sourcesAudit.toJS():[],d=0!==this.props.cyclesData.size?this.props.cyclesData.toJS():[],l=this.state.modelName?(0,u.default)(f.CloseCircleOutlined,{style:{color:"#A2B0C4",cursor:"pointer"},onClick:this.emitEmpty}):null;return(0,u.default)(m.Form,{layout:"horizontal"},void 0,(0,u.default)(h.ModalView,{viewType:"view",closable:!1,width:1e3,callVisible:this.callVisible,modalVisible:this.state.typeVisible,comp:"classify"===this.state.modal?(0,u.default)(b.default,{closeKpiConfig:this.callVisible},_.uniqueId()):(0,u.default)(r.default,{scroll:{y:240},rowKey:"paramId",bordered:!0,pagination:!1,columns:this.columns,dataSource:i})},_.uniqueId()),(0,u.default)(E,{help:""},void 0,(0,u.default)("span",{style:{fontSize:12}},void 0,"\u6a21\u578b\u540d\u79f0"),t("modelName",{rules:[{required:!0,min:0,max:30}],initialValue:this.state.modelName})(p.default.createElement(s.default,{size:"small",disabled:this.props.moduleDisabled,style:{marginLeft:"30px",width:300},suffix:l,ref:function(t){return e.nameInput=t},placeholder:"\u8bf7\u8f93\u5165\u6a21\u578b\u540d\u79f0",onBlur:function(t){return e.getModelNameBlur(t.target.value)},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelEdit\\modelDeepLearn\\component\\ModelDeepLearnInfo.jsx",lineNumber:302}})),this.showVerifyIcon(this.state.modelNameVerify,this.state.verifyMsg)),(0,u.default)(E,{help:""},void 0,(0,u.default)("span",{style:{fontSize:12}},void 0,"\u4e1a\u52a1\u5206\u7c7b"),t("businessType",{rules:[{required:!0}],initialValue:this.modelData.businessType})((0,u.default)(c.default,{size:"small",disabled:this.props.moduleDisabled,onChange:this.getTypeIdChange,getPopupContainer:function(e){return e.parentNode},style:{marginLeft:"30px",width:206}},void 0,k,a.map((function(e){return(0,u.default)(w,{value:e.id},e.id,e.name)})))),(0,u.default)(o.default,{onClick:function(){return e.openModal("classify")},disabled:this.props.moduleDisabled,style:{height:25,marginLeft:"0.7%",width:"91px"},type:"primary"},void 0,"\u65b0\u5efa\u5206\u7c7b")),(0,u.default)(E,{help:""},void 0,(0,u.default)("span",{style:{fontSize:12}},void 0,"\u9009\u62e9\u6570\u636e\u6e90"),t("dsId",{rules:[{required:!0}],initialValue:this.modelData.dsId})((0,u.default)(c.default,{size:"small",showSearch:!0,disabled:this.props.moduleDisabled,getPopupContainer:function(e){return e.parentNode},onChange:this.handleSourceChange,style:{marginLeft:"18px",width:100},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,P,n.map((function(e){return(0,u.default)(w,{title:e.name,value:e.dsId},e.dsId+_.uniqueId(),e.name)})))),t("dsCycle",{rules:[{required:!0}],initialValue:this.modelData.dsCycle,normalize:this.normalizedsCycle})((0,u.default)(c.default,{size:"small",disabled:this.props.moduleDisabled,onChange:this.handleCycleChange,getPopupContainer:function(e){return e.parentNode},style:{marginLeft:"5px",width:100}},void 0,L,d.map((function(e){return(0,u.default)(w,{title:e.dsCycle,value:e.dsCycle},e.id+_.uniqueId(),null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")})))),(0,u.default)(o.default,{icon:N,onClick:function(){return e.openModal("source")},disabled:""===this.modelData.dsId||""===this.modelData.dsCycle,style:{height:25,marginLeft:"0.7%",width:"93px"},type:"primary"},void 0,"\u67e5\u770b\u6570\u636e")))},t}(p.default.PureComponent);t.default=(0,x.connect)((function(e){return{checkNameCode:(0,I.selectCheckNameCode)(e),modelDatas:(0,I.selectModelManageData)(e),sourcesAudit:(0,y.selectDatasSourcesAudit)(e),sourceData:(0,y.selectSourceData)(e),dicHelper:(0,C.default)(e),businessTypeData:(0,S.selectGetBusinessTypeData)(e),cyclesData:(0,y.selectCyclesData)(e)}}))(m.Form.create()(A))},"./src/module/modelEdit/modelDeepLearn/component/ModelEngineInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelEngineInfoDiv=t.ModelEngineInfoDom=void 0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=f(a("./node_modules/react/index.js")),l=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/redux/selectors/enumDic.js"),p=a("./src/components/auth/optionAuth.jsx");function f(e){return e&&e.__esModule?e:{default:e}}var m=i.default.Option,h=t.ModelEngineInfoDom=l.default.div.withConfig({displayName:"ModelEngineInfo__ModelEngineInfoDom",componentId:"sc-1hht7ph-0"})(["margin-top:20px;width:90%;float:left;.disabled{cursor:not-allowed;&:hover{background:#f5f6f9;border:none;}}"]),g=t.ModelEngineInfoDiv=l.default.div.withConfig({displayName:"ModelEngineInfo__ModelEngineInfoDiv",componentId:"sc-1hht7ph-1"})(["background:#f5f6f9;height:80px;display:inline-block;flex-direction:column;justify-content:stretch;flex:1 1 auto;padding:10px 20px 20px 20px;margin-bottom:10px;width:100%;cursor:pointer;border:0.5px solid transparent;&.active{border:0.5px solid #47b2fb;background:#ffff;}&:hover{border:0.5px solid #47b2fb;background:#ffff;}.imgDiv{float:left;height:51px;width:94px;padding-right:15px;}.configDiv{width:100%;float:left;color:#475669;.title{height:40px;text-align:left;color:#475669;}.details{font-size:12px;color:#475669;}}"]),v=(0,n.default)(m,{title:"\u8bf7\u9009\u62e9GPU\u4e2a\u6570",value:""},void 0,"\u8bf7\u9009\u62e9GPU\u4e2a\u6570"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.setGpuNum=function(){for(var e=[],t=1;t<=5;t++){var a={i:t};e.push(a)}return e},n.clickScene=function(e){n.props.moduleDisabled||n.setState({value:e,validate:!0})},n.validateFun=function(){return null!==n.state.value?"3"===n.state.value&&""===n.state.gpuNum?{validate:!1,errorMsg:"\u8bf7\u9009\u62e9GPU\u4e2a\u6570"}:(n.setState({validate:!0}),{validate:!0,moduleData:{engine:n.state.value,gpuNum:n.state.gpuNum}}):(n.setState({validate:!1}),{validate:!1,errorMsg:"\u8bf7\u9009\u62e9\u60c5\u666f\u6846\u67b6\u6a21\u5757\u6570\u636e"})},n.getGpuNumChange=function(e){n.setState({gpuNum:e}),n.props.onChange(e,"modelEngineInfo")},n.state={value:void 0!==a.modelId?a.modelInfo.engine.toString():null,validate:!0,gpuNum:void 0!==a.modelId&&3===a.modelInfo.engine?parseInt(a.modelParams.toJS().modelParams.gpuNum):""};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("modelEngineInfo",n.validateFun),n.gpuNumMap=n.setGpuNum(),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.engineData.list(),a=["2"],o=_.remove(t,(function(e){return-1===_.indexOf(a,e.value)}));return(0,n.default)(h,{},void 0,(0,n.default)("span",{style:{color:"#475669",fontSize:14}},void 0,"\u9009\u62e9\u8ba1\u7b97\u5f15\u64ce"),(0,n.default)("div",{style:{marginTop:25}},void 0,o.map((function(t){return(0,p.hasOption)("root.modelTrain.codeRunEngine",t.value)&&(0,n.default)(g,{style:e.state.validate?{}:{border:"0.5px solid red"},onClick:e.props.moduleDisabled?null:function(){return e.clickScene(t.value)},className:[e.props.moduleDisabled&&"disabled",t.value===e.state.value&&"active"].filter(Boolean).join(" ")},t.value,(0,n.default)("div",{className:"configDiv"},void 0,(0,n.default)("div",{className:"title"},void 0,(0,n.default)("span",{style:{fontSize:14,fontWeight:600}},void 0,t.txt," "),t.value===e.state.value&&"1"!=t.value&&(0,n.default)("div",{style:{display:"initial",float:"right"}},void 0,(0,n.default)("span",{style:{fontSize:12,fontWeight:0}},void 0,t.txt),(0,n.default)(i.default,{value:e.state.gpuNum,size:"small",getPopupContainer:function(e){return e.parentNode},disabled:e.props.moduleDisabled,onChange:e.getGpuNumChange,style:{marginLeft:10,width:80}},void 0,v,e.gpuNumMap.map((function(e){return(0,n.default)(m,{value:e.i},e.i+_.uniqueId(),e.i," \u4e2a")}))))),(0,n.default)("div",{className:"details"},void 0,t.desc)))}))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{engineData:(0,c.dicGroupHelper)(e,"MODEL_ENGINE")}}))(y)},"./src/module/modelEdit/modelDeepLearn/component/ModelNeuralInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=m(a("./node_modules/react/index.js")),l=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var u=a("./src/redux/selectors/dataSource.js"),c=a("./node_modules/react-redux/es/index.js"),p=m(a("./src/redux/selectors/enumDic.js")),f=a("./src/redux/selectors/busiTypes.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=i.default.Option,g=l.Form.Item,v=(0,n.default)(h,{value:""},void 0,"\u8bf7\u9009\u62e9\u7f51\u7edc\u5206\u7c7b"),y=(0,n.default)(h,{value:""},void 0,"\u8bf7\u9009\u62e9\u7f51\u7edc\u6a21\u578b"),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.componentDidMount=function(){if("create"!==n.props.viewType){var e=n.props.modelParams.toJS();n.modelData.algParName=e.modelParams.algParName,n.modelData.algName=e.modelParams.algName,n.modelData.batchSize=e.modelParams.batchSize,n.modelData.epoch=e.modelParams.epoch,n.modelData.learningRate=e.modelParams.learningRate,n.modelData.lRPolicy=e.modelParams.lRPolicy,n.modelData.optimizer=e.modelParams.optimizer,n.setState({airthList:n.getDeepLearnArithmeticAirthList(e.modelParams.algParName)})}},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u586b\u5199\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u6570\u636e"}},n.getTypeIdChange=function(e){n.modelData.algParName=e,n.props.form.setFieldsValue({algParName:e});var t=n.getDeepLearnArithmeticAirthList(e);n.setState({airthList:[].concat(t)})},n.handleAlgNameChange=function(e){n.modelData.algName=e,n.props.form.setFieldsValue({algName:e})},n.getDeepLearnArithmeticType=function(){var e=[];if(n.props.deepLearnArithmetic.size>0)for(var t=n.props.deepLearnArithmetic.toJS(),a=0;a<t.length;a++)t[a].modelTypeId===n.props.modelTypeId&&e.push(t[a]);return e},n.getDeepLearnArithmeticAirthList=function(e){var t=[];if(n.props.deepLearnArithmetic.size>0)for(var a=n.props.deepLearnArithmetic.toJS(),o=0;o<a.length;o++)if(a[o].arithmeticName===e){t=a[o].airthList;break}return t},n.state={airthList:[]};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("modelParams",n.validateFun),n.modelData={algParName:"",algName:"",batchSize:"100",epoch:"58",learningRate:"100",lRPolicy:"100",optimizer:"150"},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.form.getFieldDecorator,t=this.getDeepLearnArithmeticType();return(0,n.default)("div",{},void 0,(0,n.default)("span",{style:{color:"#475669",fontSize:14}},void 0,"\u9009\u62e9\u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\u6a21\u578b"),(0,n.default)(l.Form,{style:{marginTop:20},layout:"inline"},void 0,(0,n.default)(g,{help:""},void 0,e("algParName",{rules:[{required:!0}],initialValue:this.modelData.algParName})((0,n.default)(i.default,{size:"small",disabled:this.props.moduleDisabled,getPopupContainer:function(e){return e.parentNode},onChange:this.getTypeIdChange,style:{width:180}},void 0,v,t.map((function(e){return(0,n.default)(h,{value:e.arithmeticName},e.arithmeticId,e.arithmeticName)}))))),(0,n.default)(g,{help:""},void 0,e("algName",{rules:[{required:!0}],initialValue:this.modelData.algName})((0,n.default)(i.default,{size:"small",showSearch:!0,disabled:this.props.moduleDisabled,getPopupContainer:function(e){return e.parentNode},onChange:this.handleAlgNameChange,style:{width:150},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,y,this.state.airthList.map((function(e){return(0,n.default)(h,{title:e.arithmeticName,value:e.arithmeticName},e.arithmeticId+_.uniqueId(),e.arithmeticName)})))))))},t}(d.default.PureComponent);t.default=(0,c.connect)((function(e){return{sourceData:(0,u.selectSourceData)(e),dicHelper:(0,p.default)(e),businessTypeData:(0,f.selectGetBusinessTypeData)(e),deepLearnArithmetic:(0,u.selectDeepLearnArithmetic)(e)}}))(l.Form.create()(b))},"./src/module/modelEdit/modelDeepLearn/component/ModelScene.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.SceneInfoDiv=t.SceneInfoDom=t.ModelSceneDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/redux/selectors/enumDic.js"),c=a("./src/components/auth/optionAuth.jsx");function p(e){return e&&e.__esModule?e:{default:e}}var f=t.ModelSceneDom=d.default.div.withConfig({displayName:"ModelScene__ModelSceneDom",componentId:"sc-1u4y9tk-0"})(["margin-top:100px;height:140px;"]),m=t.SceneInfoDom=d.default.div.withConfig({displayName:"ModelScene__SceneInfoDom",componentId:"sc-1u4y9tk-1"})(["margin-top:25px;width:100%;float:left;.disabled{cursor:not-allowed;&:hover{background:#f5f6f9;border:none;}}"]),h=t.SceneInfoDiv=d.default.div.withConfig({displayName:"ModelScene__SceneInfoDiv",componentId:"sc-1u4y9tk-2"})(["width:45%;background:#f5f6f9;height:70px;display:inline-block;flex-direction:column;justify-content:stretch;flex:1 1 auto;padding-top:10px;cursor:pointer;border:0.5px solid transparent;&.active{border:0.5px solid #47b2fb;background:#ffff;}&:hover{border:0.5px solid #47b2fb;background:#ffff;}.imgDiv{float:left;}.configDiv{margin:4px 0 0 20px;float:left;color:#475669;.title{text-align:left;font-weight:600;padding-bottom:8px;color:#475669;}.details{font-size:10px;color:#475669;}}"]),g=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.clickScene=function(e){n.props.moduleDisabled||n.setState({value:e,validate:!0}),n.props.onChange(e,"sceneInfo")},n.componentDidMount=function(){"create"!==n.props.viewType&&n.setState({value:n.props.modelInfo.modelTypeId})},n.validateFun=function(){return null!==n.state.value?(n.setState({validate:!0}),{validate:!0,moduleData:{modelTypeId:n.state.value}}):(n.setState({validate:!1}),{validate:!1,errorMsg:"\u8bf7\u9009\u62e9\u60c5\u666f\u6846\u67b6\u6a21\u5757\u6570\u636e"})},n.state={value:void 0!==a.modelId?a.modelInfo.modelTypeId:null,validate:!0};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("sceneInfo",n.validateFun),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.sceneData.list(),o=["1","2","3","4","5","6"],s=_.remove(t,(function(e){return-1===_.indexOf(o,e.value)}));return(0,n.default)(f,{},void 0,(0,n.default)("span",{style:{color:"#475669",fontSize:14}},void 0,"\u9009\u62e9\u60c5\u666f\u6846\u67b6"),(0,n.default)(m,{},void 0,s.map((function(t,o){return(0,c.hasOption)("root.modelTrain.wizardSceneFramework",t.value)&&(0,n.default)(h,{style:e.state.validate?{display:"11"===t.value?"":"none",borderRadius:4,marginLeft:0!==o?"1%":""}:{display:"11"===t.value?"":"none",borderRadius:4,border:"0.5px solid red",marginLeft:0!==o?"1%":""},onClick:e.props.moduleDisabled?null:function(){return e.clickScene(t.value)},className:[e.props.moduleDisabled&&"disabled",t.value===e.state.value&&"active"].filter(Boolean).join(" ")},t.value,(0,n.default)("div",{className:"imgDiv"},void 0,(0,n.default)("img",{src:a("./src/styles/images/modelConfig sync recursive ^\\.\\/.*\\.png$")("./"+t.code+".png")})),(0,n.default)("div",{className:"configDiv"},void 0,(0,n.default)("div",{className:"title"},void 0,t.txt),(0,n.default)("div",{className:"details"},void 0,t.desc)))}))))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{sceneData:(0,u.dicGroupHelper)(e,"SCENE_INFO")}}))(g)},"./src/module/modelEdit/modelDeepLearn/component/RadialLine.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/antd/es/popover/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/babel-runtime/helpers/extends.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/popover/style/index.js");var u=v(a("./node_modules/react/index.js")),c=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),p=a("./src/redux/reducers/modelManage.js"),f=v(a("./src/module/modelEdit/modelDeepLearn/component/ConfigMsg.jsx")),m=a("./node_modules/react-redux/es/index.js"),h=(v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),a("./src/redux/selectors/modelManage.js")),g=a("./node_modules/recharts/es6/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=(0,s.default)(c.SettingOutlined,{}),y=(0,s.default)(g.CartesianGrid,{strokeDasharray:"3 3"}),b=(0,s.default)(g.Label,{value:"Epoch",offset:-1,position:"insideBottom"}),x=(0,s.default)(g.YAxis,{yAxisId:"left"},void 0,(0,s.default)(g.Label,{value:"Loss",angle:-90,offset:0,position:"center"})),C=(0,s.default)(g.Label,{sty:!0,value:"Accuracy\uff08%\uff09",angle:-90,offset:20,position:"center"}),j=(0,s.default)(g.Tooltip,{}),S=(0,s.default)(g.Legend,{}),I=(0,s.default)(g.Line,{yAxisId:"left",type:"monotone",dataKey:"lossTest",stroke:"#82ca9d"}),T=(0,s.default)(g.Line,{yAxisId:"left",type:"monotone",dataKey:"accTest",stroke:"#EAAB00"}),w=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.hide=function(){n.setState({visible:!1})},n.handleVisibleChange=function(e){n.setState({visible:e})},n.state={visible:!1,width:500,stageBar:0,stageDuration:"\u65e0",datas:[]},n}return(0,l.default)(t,e),t.prototype.componentWillUnmount=function(){this.props.dispatch(p.modelManageActions.stopSyncMonitorData())},t.prototype.componentDidMount=function(){if(this.props.saveStatus){var e=this.props.modelParams.toJS(),t={modelId:this.props.modelId,algName:e.modelParams.algName};this.props.dispatch(p.modelManageActions.getMonitorDataRequest((0,r.default)({},t,{_SYNC:!0,_SYNC_INTERVAL:3e3})))}var a=document.getElementById("radialLinePage").offsetWidth;this.setState({width:parseInt(a)+100})},t.getDerivedStateFromProps=function(e){if(null!==e.monitorData){var t=e.monitorData.toJS();return{datas:t.monitorDatas,stageBar:t.stageBar,stageDuration:t.stageDuration}}return null},t.prototype.render=function(){var e=this.state.datas;return(0,s.default)("div",{},void 0,(0,s.default)("div",{width:"100%",style:{padding:"0px 0px 4.2% 8%"}},void 0,(0,s.default)("span",{style:{fontSize:14,color:"#475669"}},void 0,"\u8fdb\u5ea6\uff1a",parseInt(100*this.state.stageBar),"%"),(0,s.default)("span",{style:{fontSize:14,color:"#475669",padding:"0px 0px 0px 8%"}},void 0,"\u8017\u65f6\uff1a",this.state.stageDuration),(0,s.default)(o.default,{content:(0,s.default)(f.default,{modelParams:this.props.modelParams,setValidateFunc:this.props.setValidateFunc,viewType:this.props.viewType,modelId:this.props.modelId,modelInfo:this.props.modelInfo,moduleDisabled:void 0!==this.props.modelId&&(this.props.modelInfo.status>3||"view"===this.props.viewType)?"none":"",hide:this.hide}),trigger:"click",visible:this.state.visible,onVisibleChange:this.handleVisibleChange},void 0,(0,s.default)(n.default,{style:{float:"right"},type:"primary",icon:_},void 0,"\u914d\u7f6e\u8bad\u7ec3\u53c2\u6570"))),(0,s.default)("div",{style:{display:this.props.saveStatus?"":"none"}},void 0,(0,s.default)(g.LineChart,{width:this.state.width,height:this.props.height,data:e,margin:{top:5,right:30,left:-5,bottom:5}},void 0,y,(0,s.default)(g.XAxis,{domain:["dataMin","dataMax"]},void 0,b),x,(0,s.default)(g.YAxis,{domain:[0,1],orientation:"right"},void 0,C),j,S,(0,s.default)(g.Line,{yAxisId:"left",type:"monotone",dataKey:"lossTrain",stroke:"#77D042",activeDot:{r:8}}),I,T)))},t}(u.default.PureComponent);w.defaultProps={height:500};t.default=(0,m.connect)((function(e){return{monitorData:(0,h.selectMonitorData)(e)}}))(w)},"./src/module/modelEdit/util/formatModelData.js":function(e,t,a){"use strict";t.__esModule=!0,t.serviceDataFormat=function(e,t,a){var n={sceneId:a,currStageId:"",sceneTypeId:t.sceneInfo.sceneTypeId,optType:e,moduleList:[]};n.moduleList.push((o=t.sceneInfo,i=t.datasource,d=t.engineInfo,l=t.modelInfo,{moduleId:"ModelInfo",confJson:{modelName:l.modelName,modelTypeId:o.sceneTypeId,dsId:i.sourceId,dsCycle:i.cycleId,manner:"1",engine:d.engine,businessType:l.businessType,dveLanguage:""},propertyFlag:"false"}));var o,i,d,l;var u=function(e,t,a,n){var o=[];Object.keys(r).map((function(i){Object.keys(e).map((function(d){if(i===d){var l=r[i];if(s.default.isFunction(l)){var u={keys:i.substring(0,1).toUpperCase()+i.substring(1),data:e[i]};"ratioData"===i?o=s.default.concat(o,l.call("",u,t)):o.push(l.call("",u,t,a,n))}}}))}));for(var i=[],d=0;d<o.length;d++)"LimitSampleData"===o[d].moduleId&&(i.push(o[d]),o.splice(d,1));return i=s.default.concat(i,o)}(t.advanced.resultArrays,a,t.datasource.sourcesAudit,t.base.resultArrays);n.moduleList=s.default.concat(n.moduleList,u);var c=function(e,t){var a=[],n={},o={};Object.keys(r).map((function(i){Object.keys(e).map((function(d){if(i===d){var l=r[i];if(s.default.isFunction(l)){var u={keys:i.substring(0,1).toUpperCase()+i.substring(1),data:e[i]};"positive"===i&&(n=e[i]),"negative"===i&&(o=e[i]),"negative"!==i&&"positive"!==i&&a.push(l.call("",u,t))}}}))})),"{}"!==JSON.stringify(n)&&"{}"!==JSON.stringify(o)&&a.push(function(e,t,a){t.modelSimpleFeatureKpi.modelId=e;for(var n=0;n<t.modelSimpleKpis.length;n++)t.modelSimpleKpis[n].modelId=e,t.modelSimpleKpis[n].fieldIndex=s.default.toString(n+1),delete t.modelSimpleKpis[n].operator,delete t.modelSimpleKpis[n].id,delete t.modelSimpleKpis[n].val;for(var o=0;o<a.modelSimpleKpis.length;o++)a.modelSimpleKpis[o].modelId=e,a.modelSimpleKpis[o].fieldIndex=s.default.toString(o+1),delete a.modelSimpleKpis[o].operator,delete a.modelSimpleKpis[o].id,delete a.modelSimpleKpis[o].val;return delete t.modelSimpleFeatureKpi.id,{moduleId:"SampleData",confJson:{modelId:e,posSimpleType:t.posSimpleType,negSimpleType:a.negSimpleType,ftp:t.modelSimpleFeatureKpi,frontArray:"0"===t.posSimpleType?t.modelSimpleKpis:[],versoArray:"0"===a.negSimpleType?a.modelSimpleKpis:[]},propertyFlag:"false"}}(t,n,o));return a}(t.base.resultArrays,a);return n.moduleList=s.default.concat(n.moduleList,c),JSON.stringify(n)},t.serviceDeepLearnDataFormat=function(e,t,a){var n=t.modelInfo.divideData;"3"!==t.modelInfo.engine&&(t.modelParams.gpuNum="");t.modelParams.framWork="1",delete t.modelInfo.divideData,delete t.modelInfo.gpuNum;var o={sceneId:a,currStageId:"",sceneTypeId:t.modelInfo.modelTypeId,optType:e,moduleList:[{moduleId:"ModelInfo",confJson:t.modelInfo,propertyFlag:"false"},{moduleId:"ModelParams",confJson:t.modelParams,propertyFlag:"false"},{moduleId:"LimitSampleData",confJson:{amount:-1,extractType:"0"},propertyFlag:!1},{moduleId:"DivideDataVerify",confJson:{amount:n},propertyFlag:"false"}]};return JSON.stringify(o)};var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n};var r={arithmeticParam:l,arithmeticManualParam:l,chooseKpi:function(e,t,a,n){for(var o="",r=0;r<e.data.selKpis.length;r++)o+=e.data.selKpis[r].fieldId+",";if(0===e.data.selKpis.length){var i=n.negative,d=n.positive,l=a,u=[];void 0!==i&&void 0!==d&&(u=s.default.concat(i.modelSimpleKpis,d.modelSimpleKpis));for(var c=0;c<l.length;c++)for(var p=0;p<u.length;p++)l[c].fieldId===u[p].fieldId&&l.splice(c,1);for(var f=0;f<l.length;f++)o+=l[f].fieldId+","}return{moduleId:e.keys,confJson:{selKpis:o.length>0?o.substring(0,o.length-1):o},propertyFlag:"false"}},dataFilter:function(e,t){for(var a=0;a<e.data.length;a++)e.data[a].modelId=t,e.data[a].fieldIndex=s.default.toString(a+1),delete e.data[a].operator,delete e.data[a].id,delete e.data[a].val;return{moduleId:e.keys,confJson:e.data,propertyFlag:"false"}},ratioData:function(e){var t=[];return Object.keys(e.data).forEach((function(a){t.push({moduleId:a.substring(0,1).toUpperCase()+a.substring(1),confJson:{amount:s.default.toString(e.data[a])},propertyFlag:"false"})})),t},limitSampleData:function(e){return{moduleId:e.keys,confJson:{amount:s.default.toString(e.data.amount),extractType:s.default.toString(e.data.extractType)},propertyFlag:"false"}},timeForecast:d,userItemTime:d,userItem:d,gradeParam:function(e){for(var t="",a="",n=0;n<e.data.newGradeParam.length;n++)t+=e.data.newGradeParam[n].paramKey+",",a+=e.data.newGradeParam[n].paramValue+",";var o={ScoreItems:""!==t?t.substring(0,t.length-1):t,ScoreWeight:""!==a?a.substring(0,a.length-1):a,WorkMode:e.data.WorkMode};return{moduleId:e.keys,confJson:o,propertyFlag:"false"}},forecastPoint:function(e){return{moduleId:e.keys,confJson:e.data,propertyFlag:"false"}},positive:i,negative:i,autoOptimize:function(e){return{moduleId:e.keys,confJson:e.data,propertyFlag:"false"}}};function i(){}function d(e,t){return"UserItem"===e.keys&&(e.data.modelId=t),{moduleId:e.keys,confJson:e.data,propertyFlag:"false"}}function l(e,t){for(var a=0;a<e.data.param.length;a++)e.data.param[a].paramValue=e.data.param[a].defValue,e.data.param[a].modelId=t,delete e.data.param[a].arithmeticId,delete e.data.param[a].defValue,delete e.data.param[a].paramId,delete e.data.param[a].paramDesc,delete e.data.param[a].modeTypeId,e.data.param[a].isUpdate=s.default.toString(e.data.param[a].isUpdate);return"ArithmeticManualParam"===e.keys&&delete e.data.WorkMode,{moduleId:e.keys,confJson:e.data,propertyFlag:"false"}}t.default=[]},"./src/module/modelGuide/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelGuide/trainTask/listPage/TrainTaskListPage.jsx");Object.defineProperty(t,"TrainTaskListPage",{enumerable:!0,get:function(){return f(n).default}});var o=a("./src/module/modelGuide/trainTask/editPage/EditManagePage.jsx");Object.defineProperty(t,"EditManagePage",{enumerable:!0,get:function(){return f(o).default}});var s=a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/EditManagePage.jsx");Object.defineProperty(t,"EditInitTemplateTaskPage",{enumerable:!0,get:function(){return f(s).default}});var r=a("./src/module/modelGuide/trainTemplate/listPage/TrainTemplateListPage.jsx");Object.defineProperty(t,"TrainTemplateListPage",{enumerable:!0,get:function(){return f(r).default}});var i=a("./src/module/modelGuide/trainTemplate/createPage/CreateTrainTemplate.jsx");Object.defineProperty(t,"CreateTrainTemplatePage",{enumerable:!0,get:function(){return f(i).default}});var d=a("./src/module/modelGuide/trainTemplate/detailPage/TemplateDetailPage.jsx");Object.defineProperty(t,"TrainTemplateDetailPage",{enumerable:!0,get:function(){return f(d).default}});var l=a("./src/module/modelGuide/trainTemplate/editPage/TemplateEditPage.jsx");Object.defineProperty(t,"EditTrainTemplatePage",{enumerable:!0,get:function(){return f(l).default}});var u=a("./src/module/modelGuide/trainTask/viewPage/ViewTrainTaskPage.jsx");Object.defineProperty(t,"ViewTrainTaskPage",{enumerable:!0,get:function(){return f(u).default}});var c=a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/JobDetailPage.jsx");Object.defineProperty(t,"ViewTrainTaskJobPage",{enumerable:!0,get:function(){return f(c).default}});var p=a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/ModelTrainReportPage.jsx");function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ViewTrainTaskJobReportPage",{enumerable:!0,get:function(){return f(p).default}})},"./src/module/modelGuide/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.SYSTEM_TRAIN_TEMPLATE=t.CODE_SELECT_FILE_TYPE=t.TRAIN_TEMPLATE_FROM=t.INTERFACE_TYPE=t.TRAIN_TEMPLATE_STATUS=t.FILE_SOURCE=t.ONLINE_RANGE=t.TRAIN_TEMPLATE_SOURCE=t.TRAIN_TASK_STATUS=t.FILE_TYPE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({SUCCESS:["SUCCESS","\u6210\u529f"],ERROR:["ERROR","\u5931\u8d25"],CREATING:["CREATING","\u521b\u5efa\u4e2d"]}),i=(0,s.default)({CODEMODEL:["CODEMODEL","\u7f16\u7801\u5f0f\u5efa\u6a21"],IMPORT:["IMPORT","\u7b2c\u4e09\u65b9\u5bfc\u5165"]}),d=(0,s.default)({CODEMODEL:["CODEMODEL","\u7f16\u7801\u5f0f\u5efa\u6a21"],BUILD_CODE:["BUILD_CODE","\u5bfc\u5165\u4ee3\u7801\u5305\u6784\u5efa"],BUILD_IMPORT:["BUILD_IMPORT","\u5bfc\u5165\u8bad\u7ec3\u955c\u50cf"],INIT:["INIT","\u5185\u7f6e"],IMPORT:["IMPORT","\u7b2c\u4e09\u65b9\u5bfc\u5165"]}),l=(0,s.default)({CREATING:["CREATING","\u521b\u5efa\u4e2d"],SUCCESS:["SUCCESS","\u521b\u5efa\u6210\u529f"],ERROR:["ERROR","\u521b\u5efa\u5931\u8d25"],ONLINE:["ONLINE","\u5df2\u4e0a\u7ebf"],OFFLINE:["OFFLINE","\u5df2\u4e0b\u7ebf"]}),u=(0,s.default)({PROJECT:["PROJECT","\u9879\u76ee"],TENANT:["TENANT","\u79df\u6237"],SYSTEM:["SYSTEM","\u7cfb\u7edf"]}),c=(0,s.default)({FTP:["FTP","FTP\u4e0b\u8f7d"],UPLOAD_WEB:["UPLOAD_WEB","\u672c\u5730\u6587\u4ef6\u4e0a\u4f20"]}),p=(0,s.default)({ONLINE:["ONLINE","\u5728\u7ebf\u63a8\u7406\u63a5\u53e3"],OFFLINE:["OFFLINE","\u79bb\u7ebf\u63a8\u7406\u63a5\u53e3"]}),f=(0,s.default)({MODEL:[1,"\u6a21\u578b\u6587\u4ef6"],MODEL_RELATED:[2,"\u6a21\u578b\u76f8\u5173\u6587\u4ef6"],TRAIN_CONF:[3,"\u8bad\u7ec3\u914d\u7f6e\u6587\u4ef6"],TRAIN_REPORT:[4,"\u8bad\u7ec3\u7ed3\u679c\u6587\u4ef6"],SERVICE_DEFINE:[5,"\u670d\u52a1\u5b9a\u4e49\u6587\u4ef6"],INTERFACE:[6,"\u63a5\u53e3\u6587\u4ef6"],REST:[-1,"\u5176\u4ed6"]}),m=(0,s.default)({TEMPLATE:[1,"\u6a21\u677f\u6587\u4ef6"],DATA:[2,"\u6570\u636e\u6587\u4ef6"],OTHER_FILE:[-1,"\u5176\u4ed6\u6587\u4ef6"]}),h=(0,s.default)({"TRAIN-TEMPLATE-CLASS":[1,"\u5206\u7c7b\u9884\u6d4b"],"TRAIN-TEMPLATE-CLUST":[2,"\u805a\u7c7b\u5206\u6790"],"TRAIN-TEMPLATE-CF":[3,"\u534f\u540c\u8fc7\u6ee4"],"TRAIN-TEMPLATE-ASSOC":[4,"\u5173\u8054\u89c4\u5219"],"TRAIN-TEMPLATE-TIMES":[5,"\u65f6\u95f4\u5e8f\u5217"],"TRAIN-TEMPLATE-IMAGE":[6,"\u56fe\u7247\u5206\u7c7b"],"TRAIN-TEMPLATE-TEXT":[7,"\u6587\u672c\u5206\u7c7b"],"TRAIN-TEMPLATE-VIDEO":[8,"\u89c6\u9891\u5206\u7c7b"]});t.FILE_TYPE=f,t.TRAIN_TASK_STATUS=r,t.TRAIN_TEMPLATE_SOURCE=i,t.ONLINE_RANGE=u,t.FILE_SOURCE=c,t.TRAIN_TEMPLATE_STATUS=l,t.INTERFACE_TYPE=p,t.TRAIN_TEMPLATE_FROM=d,t.CODE_SELECT_FILE_TYPE=m,t.SYSTEM_TRAIN_TEMPLATE=h},"./src/module/modelGuide/trainTask/editPage/EditManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.EditManagePageDom=t.ComputingResourceDom=void 0;var n=T(a("./node_modules/antd/es/button/index.js")),o=T(a("./node_modules/antd/es/message/index.js")),s=T(a("./node_modules/babel-runtime/helpers/jsx.js")),r=T(a("./node_modules/antd/es/notification/index.js")),i=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=T(a("./node_modules/babel-runtime/helpers/inherits.js")),u=T(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=T(a("./node_modules/react/index.js")),p=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=T(a("./node_modules/lodash/lodash.js")),m=a("./src/utils/history.js"),h=a("./node_modules/@ant-design/icons/es/index.js"),g=(T(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),v=a("./src/components/index.js"),_=a("./src/routes/routeHelper.jsx"),y=T(a("./src/module/modelGuide/trainTask/editPage/component/TrainTaskInfo.jsx")),b=T(a("./src/module/modelGuide/trainTask/editPage/component/ReleaseModel.jsx")),x=T(a("./src/module/modelGuide/trainTask/editPage/component/ParamsFormRender.jsx")),C=T(a("./src/module/modelService/createPage/ComputingResource.jsx")),j=T(a("./src/redux/services/trainTemplate.js")),S=T(a("./src/redux/services/trainTask.js")),I=a("./src/module/modelGuide/trainTask/modelEnums.js");function T(e){return e&&e.__esModule?e:{default:e}}var w=u.default.confirm,E=t.ComputingResourceDom=p.default.div.withConfig({displayName:"EditManagePage__ComputingResourceDom",componentId:"sc-1g5oav7-0"})([".ant-legacy-form-item-label{width:100px;}.ant-radio-wrapper{vertical-align:top;line-height:40px;}"]),D=t.EditManagePageDom=p.default.div.withConfig({displayName:"EditManagePage__EditManagePageDom",componentId:"sc-1g5oav7-1"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.ant-row{line-height:40px;display:flex;}"]),M=t.ConfigButtonDom=p.default.div.withConfig({displayName:"EditManagePage__ConfigButtonDom",componentId:"sc-1g5oav7-2"})(["text-align:right;line-height:70px;padding-right:50px;"]),k=t.ErrorUl=p.default.ul.withConfig({displayName:"EditManagePage__ErrorUl",componentId:"sc-1g5oav7-3"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;"]),P={marginTop:"2%",width:"100%"},L=(0,s.default)(v.LoadingIndicator,{position:"relative"}),N=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.componentDidMount=function(){"create"!==n.viewType?(n.setState({loading:!0}),S.default.getTrainTaskInfo(n.taskId).then((function(e){n.setState((function(){return{trainTaskInfo:e.data,loading:!1,applicationId:f.default.get(e,"data.applicationId"),templateInfoLoading:!0}})),n.moduleData.taskId=n.taskId,n.moduleData.templateId=f.default.get(e,"data.templateId"),n.moduleData.templateVersionId=f.default.get(e,"data.templateVersionId"),n.moduleData.resQuotaConf.instances_min=e.data.replicaCnt,n.templateId=f.default.get(e,"data.templateId"),n.versionsId=f.default.get(e,"data.templateVersionId"),j.default.getTemplateVersionInfo(n.templateId,n.versionsId).then((function(e){n.moduleData.mirrorVersionId=e.data.mirrorVersionId,n.moduleData.runEnvParam=e.data.deployParams,n.moduleData.runCommand=e.data.deployParams,n.versionsId=e.data.templateVersionId,n.setState({templateInfo:e.data,templateInfoLoading:!1,templateName:e.data.templateName,versionsName:e.data.templateVersionName})}))})).catch((function(e){throw n.setState({loading:!1}),e}))):(n.setState({templateInfoLoading:!0}),j.default.getTemplateVersionInfo(n.templateId,n.versionsId).then((function(e){n.moduleData.mirrorVersionId=e.data.mirrorVersionId,n.moduleData.runEnvParam=e.data.deployParams,n.moduleData.runCommand=e.data.deployParams,n.setState({templateInfo:e.data,templateInfoLoading:!1,templateName:e.data.templateName,versionsName:e.data.templateVersionName})})).catch((function(e){throw n.setState({templateInfoLoading:!1}),e})))},n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.savaOrSubmit=function(e){var t={},a={};if(Object.keys(n.validateFuncs).map((function(e){var o=n.validateFuncs[e];if(f.default.isFunction(o)){var s=o.call();s.validate?t[e]=s.moduleData:a[e]=s.errorMsg}})),"{}"!==JSON.stringify(a)){var o=n.errorDom(a);r.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:o,icon:(0,s.default)(h.FrownOutlined,{style:{color:"#f5222d"}})})}else{for(var i in t)"computingResource"===i?n.moduleData.resQuotaConf=t[i]:n.moduleData=f.default.assign(n.moduleData,t[i]);n.doItNow=e,n.setState({modalVisible:!0})}},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.moduleData.doItNow=n.doItNow,n.moduleData.replicaCnt=n.moduleData.resQuotaConf.instances_min,delete n.moduleData.resQuotaConf.instances_min,S.default.saveOrEditTrainTaskInfo(n.moduleData,n.viewType).then((function(e){e&&(n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}),o.default.success(e.message),(0,m.navigateTo)(_.trainTaskUrl.trainTaskManage()))})).catch((function(e){throw n.setState({confirmLoading:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25"}),e}))},n.errorDom=function(e){return(0,s.default)(k,{},void 0,Object.keys(e).map((function(t){return(0,s.default)("li",{},t,e[t])})))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){w({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u6a21\u578b\u63a8\u7406\u4efb\u52a1\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,m.navigateTo)(_.trainTaskUrl.trainTaskManage())}})},n.setApplicationId=function(e){n.setState({applicationId:e})},n.viewType=f.default.get(a.match,"params.action",null),n.templateId=f.default.get(a.match,"params.templateId",null),n.versionsId=f.default.get(a.match,"params.versionsId",null),n.taskId=f.default.get(a.match,"params.taskId",null),n.applicationId=f.default.get(a.match,"params.appId",null),n.state={trainTaskInfo:{applicationId:n.applicationId},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,loading:!1,confirmLoading:!1,templateInfo:null,templateInfoLoading:!1,applicationId:"",templateName:"",versionsName:"",result:!1},n.doItNow=!1,n.moduleData={templateId:n.templateId,templateVersionId:n.versionsId,replicaCnt:1,mirrorVersionId:"",runEnvParam:null,deployEnv:I.ENV,resQuotaConf:{}},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,o=t.modalTxt,r=t.trainTaskInfo,i=t.loading,d=t.confirmLoading,l=t.templateName,c=t.versionsName,p=f.default.get(r,"resQuotaConf",{cpu:2,memory:4});return(0,s.default)(D,{},void 0,(0,s.default)(u.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:d,onCancel:this.submitModalCancel},void 0,(0,s.default)("p",{},void 0,o)),"create"!==this.viewType&&i&&(0,s.default)("div",{style:{height:100}},void 0,L),("create"===this.viewType||!i)&&(0,s.default)("div",{},void 0,(0,s.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:P},void 0,(0,s.default)(y.default,{templateName:l,versionsName:c,viewType:this.viewType,taskId:this.taskId,trainTaskInfo:r,setValidateFunc:this.setValidateFunc,setApplicationId:this.setApplicationId,disabledApp:this.applicationId})),(0,s.default)(E,{},void 0,(0,s.default)(C.default,{instancesMinShow:!1,pubEnvType:I.ENV,canModify:"view"!==this.viewType,requestQuota:p,setValidateFunc:this.setValidateFunc,noResidueCheck:!0,source:"GUIDE_TRAIN",title:"\u914d\u7f6e\u8ba1\u7b97\u8d44\u6e90"})),this.state.templateInfo&&(0,s.default)(x.default,{setValidateFunc:this.setValidateFunc,templateInfo:this.state.templateInfo,templateInfoLoading:this.state.templateInfoLoading,viewType:this.viewType,trainTaskInfo:r}),(0,s.default)(b.default,{setValidateFunc:this.setValidateFunc,viewType:this.viewType,applicationId:this.state.applicationId,trainTaskInfo:r}),(0,s.default)(M,{},void 0,(0,s.default)(n.default,{loading:d,onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,s.default)(n.default,{onClick:function(){return e.savaOrSubmit(!1)},type:"primary",loading:d,disabled:!this.state.result,style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u63d0\u4ea4\u914d\u7f6e"),(0,s.default)(n.default,{onClick:function(){return e.savaOrSubmit(!0)},type:"primary",loading:d,disabled:!this.state.result,style:{borderRadius:4,width:110}},void 0,"\u7acb\u5373\u6267\u884c"))))},t}(c.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(N)},"./src/module/modelGuide/trainTask/editPage/component/ParamsFormRender.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ParamsFormRenderDom=void 0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/extends.js")),s=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=m(a("./node_modules/babel-runtime/helpers/inherits.js")),d=m(a("./node_modules/react/index.js")),l=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/components/index.js"),p=m(a("./node_modules/form-render/lib/antd.js")),f=a("./src/utils/commonUtil.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=t.ParamsFormRenderDom=l.default.div.withConfig({displayName:"ParamsFormRender__ParamsFormRenderDom",componentId:"ck2ae7-0"})([".fr-wrapper .fr-label-title{display:-ms-inline-flexbox;display:inline-flex;color:#333;min-height:22px;line-height:22px;font-size:12px;}.fr-wrapper .fr-map{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-21px;}"]),g=(0,n.default)(c.LoadingIndicator,{position:"relative"}),v=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.setFormData=function(e,t){var a=(0,o.default)({},n.state.modelData);a[t.key].data=e,a[t.key].schema=(0,f.isJsonString)(n.props.templateInfo[t.key])?JSON.parse(n.props.templateInfo[t.key]):null,n.setState({modelData:a})},n.validateFun=function(){var e={algParams:"\u7b97\u6cd5\u53c2\u6570",dsParams:"\u8f93\u5165\u53c2\u6570",trainOutput:"\u8f93\u51fa\u53c2\u6570"},t=!0,a="";for(var o in n.state.modelData){var s=n.state.modelData[o].data.dataSource?n.state.modelData[o].data.dataSource:n.state.modelData[o].data;if(n.isParamsNull(o)&&(!s||"{}"===JSON.stringify(s))){t=!1,a="\u8bf7\u6b63\u786e\u586b\u5199"+e[o]+"\u5185\u5bb9";break}for(var r in s)if(!s[r]||"{}"===JSON.stringify(s[r])){t=!1,a="\u8bf7\u6b63\u786e\u586b\u5199"+e[o]+"\u5185\u5bb9";break}}return t?{validate:!0,moduleData:{runParam:n.state.modelData}}:{validate:!1,errorMsg:a}},n.isParamsNull=function(e){var t=!0;if((0,f.isJsonString)(n.props.templateInfo[e])){var a=JSON.parse(n.props.templateInfo[e]);"{}"===JSON.stringify(a.properties)&&(t=!1)}return t},n.state={modelData:"edit"===a.viewType&&a.trainTaskInfo.runParam?a.trainTaskInfo.runParam:{algParams:{schema:{},data:{}},dsParams:{schema:{},data:{}},trainOutput:{schema:{},data:{}}}};var i=n.props.setValidateFunc;return _.isFunction(i)&&i("paramsFormRender",n.validateFun),n.paramsKey=[{name:"\u7b97\u6cd5\u53c2\u6570",key:"algParams"},{name:"\u8f93\u5165\u53c2\u6570",key:"dsParams"},{name:"\u8f93\u51fa\u53c2\u6570",key:"trainOutput"}],n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.templateInfo,o=t.templateInfoLoading;return(0,n.default)(h,{},void 0,o&&g,!o&&(0,n.default)("div",{},void 0,this.paramsKey.map((function(t){return e.isParamsNull(t.key)&&(0,n.default)(c.ModelConfigPanel,{title:""+t.name},t.key,(0,n.default)(p.default,{onChange:function(a){e.setFormData(a,t)},displayType:"row",showDescIcon:!0,labelWidth:100,column:2,widgets:{DataSourceSelect:c.DataSourceSelect},formData:_.get(e.state.modelData,t.key+".data"),schema:(0,f.isJsonString)(a[t.key])?JSON.parse(a[t.key]):""}))}))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(v)},"./src/module/modelGuide/trainTask/editPage/component/ReleaseModel.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/auto-complete/index.js")),o=g(a("./node_modules/antd/es/row/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/babel-runtime/helpers/extends.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=g(a("./node_modules/react/index.js")),p=g(a("./node_modules/lodash/lodash.js")),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=a("./src/components/index.js"),h=(g(a("./node_modules/prop-types/index.js")),g(a("./src/redux/services/modelBase.js")));function g(e){return e&&e.__esModule?e:{default:e}}var v=f.Form.Item,_=u.default.Option,y=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;if(n.state.checkbox){if(n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),!e)return{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u81ea\u52a8\u53d1\u5e03\u4fe1\u606f"};var t=n.state,a=t.modelPublishInfo,o=t.checkbox;a.autoPublish=o;for(var s=0;s<n.state.modelBases.length;s++)n.state.modelBases[s].modelName===a.modelName&&(a.modelId=n.state.modelBases[s].modelId);return{validate:e,moduleData:{modelPublishInfo:a}}}var i=n.state.modelPublishInfo;return{validate:!0,moduleData:{modelPublishInfo:(0,r.default)({},i,{autoPublish:!1})}}},n.fetchData=function(e){n.fetchModelBases(e)},n.fetchModelBases=function(e){if(n.props.applicationId){n.setState({modelLoading:!0});var t=n.state.modelPublishInfo;e&&(t.modelVersionId="",t.modelVersionName="",t.modelId="",t.modelName="",n.props.form.setFieldsValue({modelId:"",modelName:""}),n.setState({modelPublishInfo:(0,r.default)({},t)})),h.default.getModelBaseList({repoId:"default",sortType:"CREATE_AT.DESC",busiType:n.props.applicationId}).then((function(e){n.setState({modelBases:e.data,modelLoading:!1})})).catch((function(e){console.error(e),n.setState({modelLoading:!1})}))}},n.checkOnChange=function(e){!0!==e&&!1!==e||n.setState({checkbox:e})},n.handleModelIdChange=function(e){if(e){var t=n.state.modelPublishInfo;t.modelId="",t.modelName=e;for(var a=0;a<n.state.modelBases.length;a++)if(n.state.modelBases[a].modelName===e){t.modelId=n.state.modelBases[a].modelId;break}t.modelId||(t.modelVersionId="",t.modelVersionName="",n.setState({modelPublishInfo:(0,r.default)({},t)}))}},n.state={modelBases:[],checkbox:"true"===p.default.get(a.trainTaskInfo,"modelPublishInfo.autoPublish"),modelPublishInfo:p.default.get(a.trainTaskInfo,"modelPublishInfo",{modelId:"",modelVersionId:"",modelVersionName:"",modelName:"",autoPublish:!1}),modelLoading:!1};var o=n.props.setValidateFunc;return p.default.isFunction(o)&&o("releaseModel",n.validateFun),n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.applicationId!==e.applicationId&&this.fetchData("select")},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.modelPublishInfo,i=a.modelBases,d=this.props.readOnly;return(0,s.default)(m.ModelConfigPanel,{title:"\u81ea\u52a8\u53d1\u5e03",checkbox:this.state.checkbox,onChange:function(t){return e.checkOnChange(t)},checkboxTitle:"\u8bad\u7ec3\u5b8c\u6210\u540e\u81ea\u52a8\u53d1\u5e03\u5230\u6a21\u578b\u5e93"},void 0,(0,s.default)(o.default,{style:{marginTop:6}},void 0,(0,s.default)(v,{label:"\u6a21\u578b\u540d\u79f0",className:"sm-label"},void 0,t("modelName",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6a21\u578b"}],initialValue:r.modelName})((0,s.default)(n.default,{onBlur:function(t){return e.handleModelIdChange(t.target.value)},style:{width:"200px"},placeholder:"\u8bf7\u9009\u62e9\u6a21\u578b",filterOption:function(e,t){return t.props.children&&t.props.children.toLowerCase().indexOf(e?e.toLowerCase():"")>=0},disabled:d||!1},void 0,Array.isArray(i)&&i.map((function(e){return(0,s.default)(_,{value:e.modelName},e.modelId,e.modelName)})))))))},t}(c.default.PureComponent);y.defaultProps={},t.default=f.Form.create()(y)},"./src/module/modelGuide/trainTask/editPage/component/TrainTaskInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TrainTaskInfoDom=void 0;var n=x(a("./node_modules/antd/es/col/index.js")),o=x(a("./node_modules/antd/es/row/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=x(a("./node_modules/babel-runtime/helpers/inherits.js")),l=x(a("./node_modules/antd/es/select/index.js")),u=x(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/compatible/es/index.js"),m=a("./node_modules/react-redux/es/index.js"),h=x(a("./src/components/common/CheckName.jsx")),g=x(a("./src/redux/services/sysManager/projectManage.js")),v=a("./src/redux/selectors/checkName.js"),y=x(a("./src/redux/services/codeService.js")),b=a("./src/utils/commonUtil.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=u.default.TextArea,j=l.default.Option,S=t.TrainTaskInfoDom=p.default.div.withConfig({displayName:"TrainTaskInfo__TrainTaskInfoDom",componentId:"sc-1lbz6tj-0"})([""]),I=f.Form.Item,T=(0,s.default)(j,{value:""},void 0,"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"),w=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.componentDidMount=function(){g.default.getApplicationsDropDown().then((function(e){var t=e.data||[];n.setState({applicationsList:t});var a=_.get(n.props.trainTaskInfo,"applicationId");if(a){var o=_.find(t,{applicationId:a}),s=(0,b.createModuleNameByApply)(_.get(o,"applicationName","applicationId"),"trainTask");n.modelData.taskName=s,n.props.form.setFieldsValue({taskName:s})}})),n.getUsedApplications()},n.getUsedApplications=function(){y.default.getCodeServiceList({}).then((function(e){n.setState({usedApplications:_.groupBy(_.get(e,"data.list",[]),"businessType")})})).catch((function(e){throw n.setState({codeDataList:[],loading:!1}),e}))},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u57fa\u7840\u4fe1\u606f"}},n.getValBlur=function(e){n.modelData.taskName=e,n.props.form.setFieldsValue({taskName:e})},n.getBusinessTypeBlur=function(e,t){if(e){var a=(0,b.createModuleNameByApply)(t.props.label,"trainTask");n.modelData.taskName=a,n.props.form.setFieldsValue({taskName:a})}n.props.setApplicationId(e),n.modelData.applicationId=e},n.getDescBlur=function(e){n.modelData.taskDesc=e,n.props.form.setFieldsValue({taskDesc:e})},n.state={applicationsList:[],usedApplications:{}},n.checkNameRef=c.default.createRef();var o=n.props.setValidateFunc;return _.isFunction(o)&&o("trainTaskInfo",n.validateFun),n.modelData={taskName:_.get(a.trainTaskInfo,"taskName",""),applicationId:null!==_.get(a.trainTaskInfo,"applicationId")?_.get(a.trainTaskInfo,"applicationId"):"",taskDesc:_.get(a.trainTaskInfo,"taskDesc","")},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props,r=a.templateName,i=a.versionsName,d=a.taskId;return(0,s.default)(S,{},void 0,(0,s.default)(f.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{style:{marginLeft:8}},void 0,(0,s.default)(I,{style:{color:"rgba(0, 0, 0, 0.85)"}},void 0,"\u8bad\u7ec3\u6a21\u677f :",(0,s.default)("span",{style:{marginLeft:7}},void 0,r||"--"))),(0,s.default)(n.default,{style:{marginLeft:32}},void 0,(0,s.default)(I,{style:{color:"rgba(0, 0, 0, 0.85)"}},void 0,"\u7248\u672c :",(0,s.default)("span",{style:{marginLeft:7}},void 0,i||"--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(I,{help:"",label:"\u5f52\u5c5e\u5e94\u7528"},void 0,t("applicationId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:this.modelData.applicationId})((0,s.default)(l.default,{placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e",optionFilterProp:"children",disabled:this.props.disabledApp,onChange:function(t,a){return e.getBusinessTypeBlur(t,a)},style:{width:"350px"}},void 0,T,this.state.applicationsList.map((function(e){return(0,s.default)(j,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)})))))),(0,s.default)(o.default,{},void 0,(0,s.default)(I,{style:{marginTop:15},help:"",label:"\u4efb\u52a1\u540d\u79f0"},void 0,t("taskName",{rules:[{required:!0,min:0,max:64},{validator:this.handleCheckNameValidate}],initialValue:this.modelData.taskName})(c.default.createElement(h.default,{ref:this.checkNameRef,source:"trainTask",style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0",modelId:d||"",updateNameCallback:this.getValBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTask\\editPage\\component\\TrainTaskInfo.jsx",lineNumber:184}})))),(0,s.default)(o.default,{},void 0,(0,s.default)(I,{style:{marginLeft:10,marginTop:18},label:"\u4efb\u52a1\u63cf\u8ff0"},void 0,t("taskDesc",{rules:[{max:200,message:"\u63cf\u8ff0\u4fe1\u606f\u6700\u957f200\u5b57\u7b26"}],initialValue:this.modelData.taskDesc})((0,s.default)(C,{disabled:"view"===this.props.viewType,autosize:{minRows:2,maxRows:4},style:{width:650,min:0,max:450},onBlur:function(t){return e.getDescBlur(t.target.value)},rows:3}))))))},t}(c.default.PureComponent);t.default=(0,m.connect)((function(e){return{checkNameVerifyInfo:(0,v.selectVerifyInfo)(e)}}))(f.Form.create()(w))},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/AlgParams.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/babel-runtime/helpers/jsx.js")),o=j(a("./node_modules/babel-runtime/regenerator/index.js")),s=j(a("./node_modules/babel-runtime/helpers/extends.js")),r=j(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),i=j(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/form/style/index.js");var d=a("./node_modules/react/index.js"),l=j(d),u=(j(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),c=j(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/SampleIndicators.jsx")),p=j(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/SamplePercent.jsx")),f=j(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/AlgorithmParameters.jsx")),m=j(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/RelevantParameter.jsx")),h=j(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/TimeParameter.jsx")),g=j(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/ScoringScheme.jsx")),v=a("./src/module/modelGuide/modelEnums.js"),y=a("./src/module/modelGuide/utils.js"),b=j(a("./src/redux/services/dataSource.js")),x=j(a("./src/redux/services/trainTask.js")),C=j(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/ClassificationParameters.jsx"));function j(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.actionType,a=e.dataSource,j=e.templateType,S=e.algParams,I=e.setValidateFunc,T=i.default.useForm()[0],w=(0,d.useState)(S.negativeSample),E=w[0],D=w[1],M=(0,d.useState)(S.scoreType),k=M[0],P=M[1],L=(0,d.useState)(S.algorithmType),N=L[0],A=L[1],R=(0,d.useState)(S.algorithmParams),F=R[0],O=R[1],V=(0,d.useState)([]),U=V[0],B=V[1];(0,d.useEffect)((function(){[v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"],v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"],v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"]].includes(Number(j))?q():z()}),[a.dsId,a.dsCycle]),(0,d.useEffect)((function(){_.isFunction(I)&&I("trainingParams",G)}),[I,F]);var G=function(){var e=(0,r.default)(o.default.mark((function e(){var t,a,n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T.validateFields();case 3:return t=e.sent,a=F.some((function(e){return e.validateError})),n=(0,y.formatAlgParams)(j,(0,s.default)({},t,{algorithmParams:F})),e.abrupt("return",{validate:!a,moduleData:n});case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,void 0,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),z=function(){a.dsId&&a.dsCycle?b.default.getDataSourceIndex({dsId:a.dsId,dsCycle:a.dsCycle}).then((function(e){var t=(e.data||[]).reduce((function(e,t){return Array.isArray(t.nodes)?e.concat(t.nodes):e}),[]);B(t);var a=t.map((function(e){return e.val}));T.setFieldsValue({classIndex:a})})):B([])},q=function(){var e;if(a.dsId&&a.dsCycle){var t=(e={},e[v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"]]="image",e[v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"]]="text",e[v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"]]="video",e)[j];x.default.getDataSourceLabel({dsId:a.dsId,dsCycle:a.dsCycle,type:t}).then((function(e){var t=e.data||[];B(t),T.setFieldsValue({classIndex:t})}))}else B([])};return(0,n.default)(u.ModelConfigPanel,{title:"\u7b97\u6cd5\u53c2\u6570"},void 0,(0,n.default)(i.default,{name:"dynamic_form_nest_item",form:T,initialValues:S},void 0,v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-CLASS"]===j&&(0,n.default)(l.default.Fragment,{},void 0,(0,n.default)(c.default,{actionType:t,negativeSample:E,setNegativeRule:D,sampleIndexData:U}),(0,n.default)(p.default,{actionType:t,sampleRatio:S.sampleRatio,trainingSetRatio:S.trainingSetRatio})),(v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-ASSOC"]===j||v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-CF"]===j)&&(0,n.default)(m.default,{sampleIndexData:U,actionType:t}),v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-CF"]===j&&(0,n.default)(g.default,{scoreType:k,setScoreType:P,sampleIndexData:U,actionType:t}),v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TIMES"]===j&&(0,n.default)(h.default,{sampleIndexData:U,actionType:t}),[v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"],v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"],v.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"]].includes(j)&&(0,n.default)(C.default,{actionType:t,sampleIndexData:U}),(0,n.default)(f.default,{actionType:t,templateType:j,algorithmType:N,algorithmParams:F,setAlgorithmType:function(e){A(e),T.setFieldsValue({algorithmType:e})},setAlgorithmParams:O})))}},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/EditManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.EditManagePageDom=t.ComputingResourceDom=void 0;var n=k(a("./node_modules/antd/es/button/index.js")),o=k(a("./node_modules/antd/es/message/index.js")),s=k(a("./node_modules/babel-runtime/regenerator/index.js")),r=k(a("./node_modules/babel-runtime/helpers/jsx.js")),i=k(a("./node_modules/antd/es/notification/index.js")),d=k(a("./node_modules/babel-runtime/helpers/extends.js")),l=k(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=k(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=k(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=k(a("./node_modules/babel-runtime/helpers/inherits.js")),f=k(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var m=k(a("./node_modules/react/index.js")),h=k(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=k(a("./node_modules/lodash/lodash.js")),v=a("./src/utils/history.js"),_=a("./node_modules/@ant-design/icons/es/index.js"),y=(k(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),b=a("./src/components/index.js"),x=a("./src/routes/routeHelper.jsx"),C=k(a("./src/module/modelGuide/trainTask/editPage/component/TrainTaskInfo.jsx")),j=k(a("./src/module/modelGuide/trainTask/editPage/component/ReleaseModel.jsx")),S=k(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/ParamsFormRender.jsx")),I=k(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/AlgParams.jsx")),T=k(a("./src/module/modelService/createPage/ComputingResource.jsx")),w=k(a("./src/redux/services/trainTemplate.js")),E=k(a("./src/redux/services/trainTask.js")),D=a("./src/module/modelGuide/trainTask/modelEnums.js"),M=a("./src/module/modelGuide/utils.js");function k(e){return e&&e.__esModule?e:{default:e}}var P=f.default.confirm,L=t.ComputingResourceDom=h.default.div.withConfig({displayName:"EditManagePage__ComputingResourceDom",componentId:"sc-1bxotf5-0"})([".ant-legacy-form-item-label{width:100px;}.ant-radio-wrapper{vertical-align:top;line-height:40px;}"]),N=t.EditManagePageDom=h.default.div.withConfig({displayName:"EditManagePage__EditManagePageDom",componentId:"sc-1bxotf5-1"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.ant-form-horizontal .ant-form-item-label{width:90px;}"]),A=t.ConfigButtonDom=h.default.div.withConfig({displayName:"EditManagePage__ConfigButtonDom",componentId:"sc-1bxotf5-2"})(["text-align:right;line-height:70px;padding-right:50px;"]),R=t.ErrorUl=h.default.ul.withConfig({displayName:"EditManagePage__ErrorUl",componentId:"sc-1bxotf5-3"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;"]),F={marginTop:"2%",width:"100%"},O=(0,r.default)(b.LoadingIndicator,{position:"relative"}),V=function(e){function t(a){var n=this;(0,u.default)(this,t);var p=(0,c.default)(this,e.call(this,a));return p.componentDidMount=function(){"create"!==p.viewType?(p.setState({loading:!0}),E.default.getTrainTaskInfo(p.taskId).then((function(e){var t=(0,M.parseAlgParams)(g.default.get(e,"data.trainingParams",{})||{},p.type);p.setState((function(){return{trainTaskInfo:e.data,loading:!1,applicationId:g.default.get(e,"data.applicationId"),templateInfoLoading:!0,algParams:t}})),p.moduleData.taskId=p.taskId,p.moduleData.templateId=g.default.get(e,"data.templateId"),p.moduleData.templateVersionId=g.default.get(e,"data.templateVersionId"),p.moduleData.resQuotaConf.instances_min=e.data.replicaCnt,p.templateId=g.default.get(e,"data.templateId"),p.versionsId=g.default.get(e,"data.templateVersionId"),w.default.getTemplateVersionInfo(p.templateId,p.versionsId).then((function(e){p.moduleData.mirrorVersionId=e.data.mirrorVersionId,p.moduleData.runEnvParam=e.data.deployParams,p.moduleData.runCommand=e.data.deployParams,p.versionsId=e.data.templateVersionId,p.setState({templateInfo:e.data,templateInfoLoading:!1,templateName:e.data.templateName,versionsName:e.data.templateVersionName})}))})).catch((function(e){throw p.setState({loading:!1}),e}))):(p.setState({templateInfoLoading:!0}),w.default.getTemplateVersionInfo(p.templateId,p.versionsId).then((function(e){p.moduleData.mirrorVersionId=e.data.mirrorVersionId,p.moduleData.runEnvParam=e.data.deployParams,p.moduleData.runCommand=e.data.deployParams,p.setState({templateInfo:e.data,templateInfoLoading:!1,templateName:e.data.templateName,versionsName:e.data.templateVersionName})})).catch((function(e){throw p.setState({templateInfoLoading:!1}),e})))},p.setValidateFunc=function(e,t,a){p.validateFuncs[e]=t;var n=a||!1;console.log(n+"\u56de\u8c03"),p.setState({result:n})},p.savaOrSubmit=function(){var e=(0,l.default)(s.default.mark((function e(t){var a,o,l,u,c,f;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={},o={},p.submitData=(0,d.default)({},p.moduleData,{templateType:p.type}),e.prev=3,e.next=6,p.validateFuncs.trainingParams.call();case 6:(l=e.sent).validate?a.trainingParams=l.moduleData:o.trainingParams="\u7b97\u6cd5\u53c2\u6570\u586b\u5199\u6709\u8bef\uff01",e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),o.trainingParams="\u7b97\u6cd5\u53c2\u6570\u586b\u5199\u6709\u8bef\uff01";case 13:if(Object.keys(p.validateFuncs).map((function(e){var t=p.validateFuncs[e];if(g.default.isFunction(t)&&"trainingParams"!==e){var n=t.call();n.validate?a[e]=n.moduleData:o[e]=n.errorMsg}})),"{}"!==JSON.stringify(o))u=p.errorDom(o),i.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:u,icon:(0,r.default)(_.FrownOutlined,{style:{color:"#f5222d"}})});else{for(c in a)p.submitData="computingResource"===c?(0,d.default)({},p.submitData,{resQuotaConf:a[c]}):"trainingParams"===c?(0,d.default)({},p.submitData,((f={})[c]=a[c],f)):(0,d.default)({},p.submitData,a[c]);p.submitData.doItNow=t,p.submitData.replicaCnt=p.submitData.resQuotaConf.instances_min,delete p.submitData.resQuotaConf.instances_min,p.setState({modalVisible:!0})}case 15:case"end":return e.stop()}}),e,n,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),p.submitModalOk=function(){p.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+p.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),E.default.saveOrEditTrainTaskInfo(p.submitData,p.viewType).then((function(e){e&&(p.setState({confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}),o.default.success(e.message),(0,v.navigateTo)(x.trainTaskUrl.trainTaskManage()))})).catch((function(e){p.setState({confirmLoading:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25"}),o.default.error(e.message)}))},p.errorDom=function(e){return(0,r.default)(R,{},void 0,Object.keys(e).map((function(t){return(0,r.default)("li",{},t,e[t])})))},p.submitModalCancel=function(){p.setState({modalVisible:!1})},p.cancel=function(){P({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u6a21\u578b\u63a8\u7406\u4efb\u52a1\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,v.navigateTo)(x.trainTaskUrl.trainTaskManage())}})},p.setApplicationId=function(e){p.setState({applicationId:e})},p.handleDataSourceChange=function(e){p.setState({dataSource:(0,d.default)({},e)})},p.viewType=g.default.get(a.match,"params.action",null),p.templateId=g.default.get(a.match,"params.templateId",null),p.versionsId=g.default.get(a.match,"params.versionsId",null),p.taskId=g.default.get(a.match,"params.taskId",null),p.applicationId=g.default.get(a.match,"params.appId",null),p.type=g.default.get(a.match,"params.type",null),p.state={trainTaskInfo:{applicationId:p.applicationId},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,loading:!1,confirmLoading:!1,templateInfo:null,templateInfoLoading:!1,applicationId:"",templateName:"",versionsName:"",dataSource:{},algParams:(0,M.parseAlgParams)({},p.type),result:!1},p.moduleData={templateId:p.templateId,templateVersionId:p.versionsId,replicaCnt:1,mirrorVersionId:"",runEnvParam:null,deployEnv:D.ENV,resQuotaConf:{}},p.validateFuncs={},p}return(0,p.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,o=t.modalTxt,s=t.trainTaskInfo,i=t.loading,d=t.confirmLoading,l=t.templateName,u=t.versionsName,c=t.dataSource,p=t.algParams,m=g.default.get(s,"resQuotaConf",{cpu:2,memory:4});return(0,r.default)(N,{},void 0,(0,r.default)(f.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:d,onCancel:this.submitModalCancel},void 0,(0,r.default)("p",{},void 0,o)),"create"!==this.viewType&&i&&(0,r.default)("div",{style:{height:100}},void 0,O),("create"===this.viewType||!i)&&(0,r.default)("div",{},void 0,(0,r.default)(b.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:F},void 0,(0,r.default)(C.default,{templateName:l,versionsName:u,viewType:this.viewType,taskId:this.taskId,trainTaskInfo:s,setValidateFunc:this.setValidateFunc,setApplicationId:this.setApplicationId,disabledApp:this.applicationId})),(0,r.default)(L,{},void 0,(0,r.default)(T.default,{instancesMinShow:!1,pubEnvType:D.ENV,canModify:"view"!==this.viewType,requestQuota:m,setValidateFunc:this.setValidateFunc,noResidueCheck:!0,source:"GUIDE_TRAIN",title:"\u914d\u7f6e\u8ba1\u7b97\u8d44\u6e90"})),this.state.templateInfo&&(0,r.default)(S.default,{setValidateFunc:this.setValidateFunc,templateInfo:this.state.templateInfo,templateInfoLoading:this.state.templateInfoLoading,viewType:this.viewType,trainTaskInfo:s,onDataSourceChange:this.handleDataSourceChange}),(0,r.default)(I.default,{actionType:this.viewType,dataSource:c,setValidateFunc:this.setValidateFunc,templateType:Number(this.type),algParams:p}),(0,r.default)(j.default,{setValidateFunc:this.setValidateFunc,viewType:this.viewType,applicationId:this.state.applicationId,trainTaskInfo:s}),(0,r.default)(A,{},void 0,(0,r.default)(n.default,{loading:d,onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,r.default)(n.default,{onClick:function(){return e.savaOrSubmit(!1)},type:"primary",loading:d,disabled:!this.state.result,style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u63d0\u4ea4\u914d\u7f6e"),(0,r.default)(n.default,{onClick:function(){return e.savaOrSubmit(!0)},type:"primary",loading:d,disabled:!this.state.result,style:{borderRadius:4,width:110}},void 0,"\u7acb\u5373\u6267\u884c"))))},t}(m.default.PureComponent);t.default=(0,y.connect)((function(){return{}}))(V)},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/HandleSysPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.EditManagePageDom=t.ComputingResourceDom=void 0;var n=w(a("./node_modules/antd/es/button/index.js")),o=w(a("./node_modules/antd/es/modal/index.js")),s=w(a("./node_modules/antd/es/message/index.js")),r=w(a("./node_modules/babel-runtime/regenerator/index.js")),i=w(a("./node_modules/babel-runtime/helpers/jsx.js")),d=w(a("./node_modules/antd/es/notification/index.js")),l=w(a("./node_modules/babel-runtime/helpers/extends.js")),u=w(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),c=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=w(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js");var m=w(a("./node_modules/react/index.js")),h=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=w(a("./node_modules/lodash/lodash.js")),v=a("./node_modules/@ant-design/icons/es/index.js"),_=(w(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),y=w(a("./src/module/modelGuide/trainTask/editPage/component/ReleaseModel.jsx")),b=w(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/ParamsFormRender.jsx")),x=w(a("./src/module/modelService/createPage/ComputingResource.jsx")),C=w(a("./src/redux/services/trainTask.js")),j=a("./src/module/modelGuide/trainTask/modelEnums.js"),S=a("./src/module/modelGuide/modelEnums.js"),I=a("./src/module/modelGuide/utils.js"),T=w(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/AlgParams.jsx"));function w(e){return e&&e.__esModule?e:{default:e}}var E=t.ComputingResourceDom=h.default.div.withConfig({displayName:"HandleSysPage__ComputingResourceDom",componentId:"sc-1s8yrr3-0"})([".ant-legacy-form-item-label{width:100px;}.ant-radio-wrapper{vertical-align:top;line-height:40px;}"]),D=t.EditManagePageDom=h.default.div.withConfig({displayName:"HandleSysPage__EditManagePageDom",componentId:"sc-1s8yrr3-1"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.ant-row{line-height:40px;display:flex;}.ant-form-horizontal .ant-form-item-label{width:100px;}"]),M=t.ConfigButtonDom=h.default.div.withConfig({displayName:"HandleSysPage__ConfigButtonDom",componentId:"sc-1s8yrr3-2"})(["text-align:right;line-height:70px;padding-right:50px;"]),k=t.ErrorUl=h.default.ul.withConfig({displayName:"HandleSysPage__ErrorUl",componentId:"sc-1s8yrr3-3"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;"]),P=function(e){function t(a){var n=this;(0,c.default)(this,t);var o=(0,p.default)(this,e.call(this,a));return o.setValidateFunc=function(e,t,a){o.validateFuncs[e]=t;var n=a||!1;console.log(n+"\u56de\u8c03"),o.setState({result:n})},o.savaOrSubmit=(0,u.default)(r.default.mark((function e(){var t,a,s,u,c,p;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={},a={},o.submitData=(0,l.default)({},o.moduleData,{templateType:o.type}),"start"!==o.props.optBtnKey){e.next=14;break}return e.prev=4,e.next=7,o.validateFuncs.trainingParams.call();case 7:(s=e.sent).validate?t.trainingParams=s.moduleData:a.trainingParams="\u7b97\u6cd5\u53c2\u6570\u586b\u5199\u6709\u8bef\uff01",e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),a.trainingParams="\u7b97\u6cd5\u53c2\u6570\u586b\u5199\u6709\u8bef\uff01";case 14:if(Object.keys(o.validateFuncs).map((function(e){var n=o.validateFuncs[e];if(g.default.isFunction(n)||"trainingParams"!==e){var s=n.call();s.validate?t[e]=s.moduleData:a[e]=s.errorMsg}})),"{}"!==JSON.stringify(a))u=o.errorDom(a),d.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:u,icon:(0,i.default)(v.FrownOutlined,{style:{color:"#f5222d"}})});else{for(c in t)o.submitData="computingResource"===c?(0,l.default)({},o.submitData,{resQuotaConf:t[c]}):"trainingParams"===c?(0,l.default)({},o.submitData,((p={})[c]=t[c],p)):(0,l.default)({},o.submitData,t[c]);o.setState({modalVisible:!0})}case 16:case"end":return e.stop()}}),e,n,[[4,11]])}))),o.submitModalOk=function(){o.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+o.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),"edit"===o.props.optBtnKey?(delete o.submitData.runParam,delete o.submitData.modelPublishInfo,o.submitData.replicaCnt=o.submitData.resQuotaConf.instances_min,delete o.submitData.resQuotaConf.instances_min,C.default.configChange(o.state.trainTaskInfo.taskId,o.submitData).then((function(e){e&&(o.setState({confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}),s.default.success(e.message),o.props.onClose("refresh"))})).catch((function(e){o.setState({confirmLoading:!1,modalTxt:"\u53d8\u66f4\u51fa\u9519"}),s.default.error(e.message)}))):(delete o.submitData.resQuotaConf,C.default.executeTask(o.state.trainTaskInfo.taskId,o.submitData).then((function(e){e&&(o.setState({confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}),s.default.success(e.message),o.props.onClose("refresh"))})).catch((function(e){o.setState({confirmLoading:!1,modalTxt:"\u6267\u884c\u51fa\u9519"}),s.default.error(e.message)})))},o.errorDom=function(e){return(0,i.default)(k,{},void 0,Object.keys(e).map((function(t){return(0,i.default)("li",{},t,e[t])})))},o.handleDataSourceChange=function(e){o.setState({dataSource:(0,l.default)({},e)})},o.submitModalCancel=function(){o.setState({modalVisible:!1})},o.cancel=function(){o.props.onClose()},o.templateId=g.default.get(a.trainTaskInfo,"templateId",null),o.templateName=g.default.get(a.trainTaskInfo,"templateName",null),o.versionsId=g.default.get(a.trainTaskInfo,"versionsId",null),o.versionsName=g.default.get(a.trainTaskInfo,"versionsName",null),o.taskId=g.default.get(a.trainTaskInfo,"taskId",null),o.type=S.SYSTEM_TRAIN_TEMPLATE[o.templateId],o.state={trainTaskInfo:a.trainTaskInfo,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,loading:!1,confirmLoading:!1,applicationId:g.default.get(a.trainTaskInfo,"applicationId"),dataSource:g.default.get(a.trainTaskInfo,"runParam.dsParams.data.dataSource",{})||{},algParams:(0,I.parseAlgParams)(g.default.get(a.trainTaskInfo,"trainingParams",{})||{},o.type),result:!1},o.moduleData={},o.validateFuncs={},o}return(0,f.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.trainTaskInfo,s=t.confirmLoading,r=t.modalVisible,d=t.modalTxt,l=t.dataSource,u=t.algParams,c=g.default.get(a,"resQuotaConf",{cpu:2,memory:4});return(0,i.default)(D,{},void 0,(0,i.default)(o.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:r,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:s,onCancel:this.submitModalCancel},void 0,(0,i.default)("p",{},void 0,d)),"edit"===this.props.optBtnKey&&(0,i.default)(E,{},void 0,(0,i.default)(x.default,{instancesMinShow:!1,pubEnvType:j.ENV,canModify:"view"!==this.viewType,requestQuota:c,setValidateFunc:this.setValidateFunc,noResidueCheck:!0,source:"GUIDE_TRAIN",title:"\u914d\u7f6e\u8ba1\u7b97\u8d44\u6e90"})),"start"===this.props.optBtnKey&&(0,i.default)("div",{},void 0,(0,i.default)(b.default,{setValidateFunc:this.setValidateFunc,trainTaskInfo:a,templateInfo:{dsParams:JSON.stringify(g.default.get(a,"runParam.dsParams.schema",{})||{}),trainOutput:JSON.stringify(g.default.get(a,"runParam.trainOutput.schema",{})||{})},viewType:this.viewType,onDataSourceChange:this.handleDataSourceChange}),(0,i.default)(T.default,{actionType:"edit",dataSource:l,setValidateFunc:this.setValidateFunc,templateType:Number(this.type),templateVersionId:this.versionsId,algParams:u}),(0,i.default)(y.default,{setValidateFunc:this.setValidateFunc,viewType:this.viewType,applicationId:this.state.applicationId,trainTaskInfo:a})),(0,i.default)(M,{},void 0,(0,i.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,i.default)(n.default,{onClick:function(){return e.savaOrSubmit()},type:"primary",loading:s,disabled:!this.state.result,style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u786e\u5b9a")))},t}(m.default.PureComponent);t.default=(0,_.connect)((function(){return{}}))(P)},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/ParamsFormRender.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ParamsFormRenderDom=void 0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/extends.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js")),d=f(a("./node_modules/react/index.js")),l=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./src/components/index.js"),c=f(a("./node_modules/form-render/lib/antd.js")),p=a("./src/utils/commonUtil.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=t.ParamsFormRenderDom=l.default.div.withConfig({displayName:"ParamsFormRender__ParamsFormRenderDom",componentId:"sc-1u9ct3v-0"})([".fr-wrapper .fr-label-title{display:-ms-inline-flexbox;display:inline-flex;color:#333;min-height:22px;line-height:22px;font-size:12px;}.fr-wrapper .fr-map{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-21px;}"]),h=(0,n.default)(u.LoadingIndicator,{position:"relative"}),g=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.setFormData=function(e,t){var a=(0,o.default)({},n.state.modelData);a[t.key].data=e,a[t.key].schema=(0,p.isJsonString)(n.props.templateInfo[t.key])?JSON.parse(n.props.templateInfo[t.key]):null,n.setState({modelData:a}),"dsParams"===t.key&&n.props.onDataSourceChange&&n.props.onDataSourceChange(e.dataSource)},n.validateFun=function(){var e={dsParams:"\u8bad\u7ec3\u8f93\u5165",trainOutput:"\u8bad\u7ec3\u8f93\u51fa"},t=!0,a="";for(var o in n.state.modelData){var s=n.state.modelData[o].data.dataSource?n.state.modelData[o].data.dataSource:n.state.modelData[o].data;if(n.isParamsNull(o)&&(!s||"{}"===JSON.stringify(s))){t=!1,a="\u8bf7\u6b63\u786e\u586b\u5199"+e[o]+"\u5185\u5bb9";break}for(var r in s)if(!s[r]||"{}"===JSON.stringify(s[r])){t=!1,a="\u8bf7\u6b63\u786e\u586b\u5199"+e[o]+"\u5185\u5bb9";break}}return t?{validate:!0,moduleData:{runParam:n.state.modelData}}:{validate:!1,errorMsg:a}},n.isParamsNull=function(e){var t=!0;if((0,p.isJsonString)(n.props.templateInfo[e])){var a=JSON.parse(n.props.templateInfo[e]);"{}"===JSON.stringify(a.properties)&&(t=!1)}return t},n.state={modelData:a.trainTaskInfo.runParam?{dsParams:_.get(a.trainTaskInfo,"runParam.dsParams"),trainOutput:_.get(a.trainTaskInfo,"runParam.trainOutput")}:{dsParams:{schema:{},data:{}},trainOutput:{schema:{},data:{}}}};var i=n.props.setValidateFunc;return _.isFunction(i)&&i("paramsFormRender",n.validateFun),n.paramsKey=[{name:"\u8bad\u7ec3\u8f93\u5165",key:"dsParams"},{name:"\u8bad\u7ec3\u8f93\u51fa",key:"trainOutput"}],n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.templateInfo,o=t.templateInfoLoading;return(0,n.default)(m,{},void 0,o&&h,!o&&(0,n.default)("div",{},void 0,a?this.paramsKey.map((function(t){return e.isParamsNull(t.key)&&(0,n.default)(u.ModelConfigPanel,{title:""+t.name},t.key,(0,n.default)(c.default,{onChange:function(a){e.setFormData(a,t)},displayType:"row",showDescIcon:!0,labelWidth:100,column:2,widgets:{DataSourceSelect:u.DataSourceSelect},formData:_.get(e.state.modelData,t.key+".data"),schema:(0,p.isJsonString)(a[t.key])?JSON.parse(a[t.key]):""}))})):null))},t}(d.default.PureComponent);t.default=g},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/AlgorithmParameters.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/row/index.js")),o=h(a("./node_modules/babel-runtime/helpers/extends.js")),s=h(a("./node_modules/antd/es/tooltip/index.js")),r=h(a("./node_modules/babel-runtime/helpers/jsx.js")),i=h(a("./node_modules/antd/es/radio/index.js")),d=h(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var l=a("./node_modules/react/index.js"),u=h(l),c=(h(a("./node_modules/prop-types/index.js")),h(a("./src/redux/services/trainTask.js"))),p=h(a("./src/components/table/EditableTable.jsx")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./src/module/modelGuide/modelEnums.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=d.default.Item,v=i.default.Group,y=(0,r.default)(f.QuestionCircleOutlined,{style:{fontSize:14,height:36,lineHeight:"36px"},className:"icon"});t.default=function(e){var t,a=e.actionType,d=e.templateType,f=e.algorithmType,h=e.algorithmParams,b=e.setAlgorithmType,x=e.setAlgorithmParams,C=[{title:"\u53c2\u6570Key",dataIndex:"paramKey"},{title:"\u53c2\u6570\u503c",dataIndex:"defValue",editable:function(e){return e.defValue!==e.validValue&&"view"!==a},validator:function(e){if(e.validValue){var t=[{required:!0,message:"\u8bf7\u8f93\u5165\u503c"}];if(e.validValue.includes(",")&&t.push({enum:e.validValue.split(","),message:"\u8f93\u5165\u4e0d\u6b63\u786e\uff0c\u8bf7\u53c2\u8003\u53c2\u6570\u6709\u6548\u6027"}),e.validValue.includes("-")){var a=e.validValue.split("-");t.push({validator:function(e,t,n){try{if(isNaN(t)||Number(t)<a[0]||Number(t)>a[1])throw new Error("\u8f93\u5165\u4e0d\u6b63\u786e\uff0c\u8bf7\u53c2\u8003\u53c2\u6570\u6709\u6548\u6027")}catch(e){n(e)}n()}})}return t}}},{title:"\u53c2\u6570\u6709\u6548\u6027",dataIndex:"validValue"},{title:"\u53c2\u6570\u63cf\u8ff0",dataIndex:"paramDesc",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,(0,r.default)("span",{},void 0,e))}}],j=(0,l.useState)([]),S=j[0],I=j[1],T=(0,l.useState)(((t={})[f]=h,t)),w=T[0],E=T[1];(0,l.useEffect)((function(){c.default.getAlgorithms(d).then((function(e){if(I(e.data),[m.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-ASSOC"],m.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"],m.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"],m.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"]].includes(d)&&b){var t=_.get(e.data,"[0].arithmeticId");b(t),D(t)}})),c.default.getTemplateAlgParams({templateTypeId:d}).then((function(e){E((0,o.default)({},w,{Auto:e.data})),"edit"!==a&&M(e.data)}))}),[d]);var D=function(e){w[e]?M(w[e]):c.default.getAlgorithmParams({arithmeticId:e}).then((function(t){var a;E((0,o.default)({},w,((a={})[e]=t.data,a))),M(t.data)}))},M=function(e){x&&x(e)};return(0,r.default)(u.default.Fragment,{},void 0,(0,r.default)(g,{style:{marginBottom:0}},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(g,{name:"algorithmType",label:"\u7b97\u6cd5",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7b97\u6cd5\u53c2\u6570"}]},void 0,(0,r.default)(v,{onChange:function(e){var t=e.target.value;b(t),"Auto"===t?M(w[t]):D(t)},disabled:"view"===a},void 0,![m.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-ASSOC"],m.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"],m.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"],m.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"]].includes(d)&&(0,r.default)(i.default,{value:"Auto",style:{marginRight:32}},"Auto","\u81ea\u52a8\u8bad\u7ec3"),S.map((function(e){return(0,r.default)(i.default,{value:e.arithmeticId,style:{marginRight:32}},e.arithmeticId,e.arithmeticName)})))),(0,r.default)(s.default,{title:_.get(_.find(S,{arithmeticId:f}),"arithmeticDesc","\u81ea\u52a8\u8bad\u7ec3\u4f1a\u6839\u636e\u914d\u7f6e\u7684\u8bad\u7ec3\u76ee\u6807\u81ea\u52a8\u8bad\u7ec3\uff0c\u4f18\u9009\u7b97\u6cd5\u548c\u53c2\u6570\u3002")},void 0,y))),(0,r.default)(g,{label:"\u7b97\u6cd5\u53c2\u6570"},void 0,(0,r.default)(p.default,{columns:C,dataSource:w[f],onDataChange:M,rowKey:"paramId"})))}},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/ClassificationParameters.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/jsx.js")),o=l(a("./node_modules/antd/es/form/index.js")),s=l(a("./node_modules/antd/es/radio/index.js")),r=l(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js");l(a("./node_modules/react/index.js")),l(a("./node_modules/prop-types/index.js"));var i=l(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),d=a("./src/module/modelGuide/trainTask/modelEnums.js");function l(e){return e&&e.__esModule?e:{default:e}}var u=r.default.Option,c=s.default.Group,p=o.default.Item,f=d.IDENTIFY_TYPE.getValueAndDescList(),m=i.default.div.withConfig({displayName:"ClassificationParameters__Wrapper",componentId:"sc-1mjowgt-0"})([".hide-border.ant-select-multiple.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector{background:#fff;border-width:0;}.ant-select-disabled.ant-select-multiple .ant-select-selection-item{color:#000;}"]);t.default=function(e){var t=e.sampleIndexData;return(0,n.default)(m,{},void 0,(0,n.default)(p,{name:"classtype",label:"\u5206\u7c7b\u8bc6\u522b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bc6\u522b\u5206\u7c7b"}]},void 0,(0,n.default)(c,{disabled:!0},void 0,(f||[]).map((function(e){return(0,n.default)(s.default,{value:e.code,style:{marginRight:32}},e.code,e.desc)})))),(0,n.default)(p,{name:"classIndex",label:"\u5206\u7c7b\u6307\u6807",rules:[{required:!0,message:"\u65e0\u5206\u7c7b\u6307\u6807"}]},void 0,(0,n.default)(r.default,{mode:"multiple",disabled:!0,className:"hide-border"},void 0,(t||[]).map((function(e){return(0,n.default)(u,{value:e},e,e)})))))}},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/IndicatorsFormItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/input/index.js")),o=f(a("./node_modules/babel-runtime/helpers/extends.js")),s=f(a("./node_modules/antd/es/space/index.js")),r=f(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),i=f(a("./node_modules/babel-runtime/helpers/jsx.js")),d=f(a("./node_modules/antd/es/select/index.js")),l=f(a("./node_modules/antd/es/form/index.js")),u="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTask\\editPage\\initTemplateTask\\component\\IndicatorsFormItem.jsx";a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var c=f(a("./node_modules/react/index.js")),p=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=a("./src/module/modelGuide/trainTask/modelEnums.js").SIGN.getValueAndDescList(),h=l.default.List,g=l.default.Item,v=d.default.Option,_=(0,i.default)(n.default,{placeholder:"\u8bf7\u8f93\u5165\u6307\u6807\u503c"}),y=(0,i.default)(v,{value:""},"value");t.default=function(e){var t=e.actionType,a=e.field,n=e.label,l=e.sampleIndexData;return(0,i.default)(h,{name:a},void 0,(function(e,a){var f=a.add,h=a.remove;return(0,i.default)("div",{},void 0,e.map((function(e,a){var b=e.key,x=e.name,C=e.fieldKey,j=(0,r.default)(e,["key","name","fieldKey"]);return(0,i.default)(s.default,{style:{display:"flex",marginBottom:8,alignItems:"flex-start"}},b,c.default.createElement(g,(0,o.default)({},j,{name:[x,"fieldEnName"],label:0===a?n:" ",colon:0===a,required:0===a,fieldKey:[C,"fieldEnName"],rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6307\u6807"}],__source:{fileName:u,lineNumber:20}}),(0,i.default)(d.default,{disabled:"view"===t,style:{width:130},showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,(l||[]).map((function(e){return(0,i.default)(v,{value:e.val+"@"+e.text},e.id,e.text)})))),c.default.createElement(g,(0,o.default)({},j,{name:[x,"fieldFilterRule"],fieldKey:[C,"fieldFilterRule"],rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u89c4\u5219"}],__source:{fileName:u,lineNumber:42}}),(0,i.default)(d.default,{style:{width:130},disabled:"view"===t},void 0,m.map((function(e){return(0,i.default)(v,{value:e.code},e.code,e.desc)})))),"view"!==t?c.default.createElement(g,(0,o.default)({},j,{fieldKey:[C,"fieldEnValue"],name:[x,"fieldEnValue"],rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6307\u6807\u503c"}],__source:{fileName:u,lineNumber:57}}),_):c.default.createElement(g,(0,o.default)({},j,{fieldKey:[C,"fieldEnValue"],name:[x,"fieldEnValue"],rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6307\u6807\u503c"}],__source:{fileName:u,lineNumber:66}}),(0,i.default)(d.default,{style:{width:130},disabled:"view"===t},void 0,y)),"view"!==t&&(0,i.default)("div",{style:{marginTop:6}},void 0,(0,i.default)(p.PlusCircleOutlined,{onClick:function(){return f({},a+1)},style:{marginRight:6}}),0!==a&&(0,i.default)(p.MinusCircleOutlined,{onClick:function(){return h(x)},style:{marginRight:4}})))})))}))}},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/RelevantParameter.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/antd/es/row/index.js")),o=d(a("./node_modules/babel-runtime/helpers/jsx.js")),s=d(a("./node_modules/antd/es/select/index.js")),r=d(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var i=d(a("./node_modules/react/index.js"));d(a("./node_modules/prop-types/index.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=r.default.Item,u=s.default.Option;t.default=function(e){var t=e.actionType,a=e.sampleIndexData;return(0,o.default)(i.default.Fragment,{},void 0,(0,o.default)(n.default,{},void 0,(0,o.default)(l,{name:"userIndex",label:"\u7528\u6237\u6307\u6807",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7528\u6237\u6307\u6807"}]},void 0,(0,o.default)(s.default,{disabled:"view"===t,style:{width:200},placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u6307\u6807",showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,(a||[]).map((function(e){return(0,o.default)(u,{value:e.val},e.id,e.text)})))),(0,o.default)(l,{name:"resIndex",label:"\u7269\u54c1\u6307\u6807",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7269\u54c1\u6307\u6807"}],style:{marginLeft:32}},void 0,(0,o.default)(s.default,{disabled:"view"===t,style:{width:200},placeholder:"\u8bf7\u9009\u62e9\u7269\u54c1\u6307\u6807",showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,(a||[]).map((function(e){return(0,o.default)(u,{value:e.val},e.id,e.text)}))))))}},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/SampleIndicators.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/helpers/jsx.js")),o=d(a("./node_modules/antd/es/radio/index.js")),s=d(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var r=d(a("./node_modules/react/index.js")),i=(d(a("./node_modules/prop-types/index.js")),d(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/IndicatorsFormItem.jsx")));function d(e){return e&&e.__esModule?e:{default:e}}var l=s.default.Item,u=o.default.Group,c=(0,n.default)(o.default,{value:"index"},void 0,"\u6307\u6807"),p=(0,n.default)(o.default,{value:"index"},void 0,"\u6307\u6807");t.default=function(e){var t=e.actionType,a=e.negativeSample,s=e.setNegativeRule,d=e.sampleIndexData;return(0,n.default)(r.default.Fragment,{},void 0,(0,n.default)(l,{name:"positiveSample",label:"\u6b63\u6837\u672c",rules:[{required:!0,message:"\u8bf7\u9009\u62e9"}]},void 0,(0,n.default)(u,{disabled:"view"===t},void 0,c)),(0,n.default)(i.default,{field:"positiveSampleIndex",label:"\u6b63\u6837\u672c\u6307\u6807",sampleIndexData:d,actionType:t}),(0,n.default)(l,{name:"negativeSample",label:"\u8d1f\u6837\u672c",rules:[{required:!0,message:"\u8bf7\u9009\u62e9"}]},void 0,(0,n.default)(u,{onChange:function(e){return s(e.target.value)},disabled:"view"===t},void 0,p,(0,n.default)(o.default,{value:"negativeSampleIndexIsOther",style:{marginLeft:120}},void 0,"\u9664\u6b63\u6837\u672c\u4ee5\u5916\u7684\u6570\u636e"))),"index"===a&&(0,n.default)(i.default,{field:"negativeSampleIndex",label:"\u8d1f\u6837\u672c\u6307\u6807",sampleIndexData:d,actionType:t}))}},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/SamplePercent.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/antd/es/tooltip/index.js")),o=c(a("./node_modules/antd/es/slider/index.js")),s=c(a("./node_modules/antd/es/row/index.js")),r=c(a("./node_modules/babel-runtime/helpers/jsx.js")),i=c(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/slider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var d=a("./node_modules/react/index.js"),l=c(d),u=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Item,f={fontSize:14,height:36,lineHeight:"36px"},m=(0,r.default)(n.default,{title:"\u8c03\u6574\u6570\u636e\u96c6\u4e2d\u7684\u6b63\u8d1f\u6837\u672c\u6bd4\u4f8b"},void 0,(0,r.default)(u.QuestionCircleOutlined,{style:f,className:"icon"})),h=(0,r.default)(n.default,{title:"\u5212\u5206\u8bad\u7ec3\u96c6\u548c\u6821\u9a8c\u96c6"},void 0,(0,r.default)(u.QuestionCircleOutlined,{style:f,className:"icon"}));t.default=function(e){var t=e.actionType,a=(0,d.useState)(e.sampleRatio||0),n=a[0],i=a[1],u=(0,d.useState)(e.trainingSetRatio||0),c=u[0],f=u[1],g={display:"inline-block",margin:5};return(0,r.default)(l.default.Fragment,{},void 0,(0,r.default)(p,{label:"\u6b63\u6837\u672c\u6bd4\u4f8b",required:!0},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(p,{name:"sampleRatio",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6837\u672c\u6bd4\u4f8b"}]},void 0,(0,r.default)(o.default,{mim:0,max:100,style:{width:250},onChange:i,disabled:"view"===t})),(0,r.default)("span",{style:g},void 0,n,"%"),m)),(0,r.default)(p,{label:"\u8bad\u7ec3\u96c6\u6bd4\u4f8b",required:!0},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(p,{name:"trainingSetRatio",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bad\u7ec3\u96c6\u6bd4\u4f8b"}]},void 0,(0,r.default)(o.default,{mim:0,max:100,style:{width:250},onChange:f,disabled:"view"===t})),(0,r.default)("span",{style:g},void 0,c,"%"),h)))}},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/ScoresFormItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/input-number/index.js")),o=f(a("./node_modules/babel-runtime/helpers/extends.js")),s=f(a("./node_modules/antd/es/space/index.js")),r=f(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),i=f(a("./node_modules/babel-runtime/helpers/jsx.js")),d=f(a("./node_modules/antd/es/select/index.js")),l=f(a("./node_modules/antd/es/form/index.js")),u="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTask\\editPage\\initTemplateTask\\component\\ScoresFormItem.jsx";a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var c=f(a("./node_modules/react/index.js")),p=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=l.default.List,h=l.default.Item,g=d.default.Option;t.default=function(e){var t=e.actionType,a=e.field,l=e.label,f=e.sampleIndexData;return(0,i.default)(m,{name:a},void 0,(function(e,a){var m=a.add,v=a.remove;return(0,i.default)("div",{},void 0,e.map((function(e,a){var _=e.key,y=e.name,b=e.fieldKey,x=(0,r.default)(e,["key","name","fieldKey"]);return(0,i.default)(s.default,{style:{display:"flex",marginBottom:8,alignItems:"flex-start"}},_,c.default.createElement(h,(0,o.default)({},x,{name:[y,"scoreItems"],label:0===a?l:" ",colon:0===a,required:0===a,fieldKey:[b,"scoreItems"],rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6307\u6807"}],__source:{fileName:u,lineNumber:17}}),(0,i.default)(d.default,{disabled:"view"===t,style:{width:130},showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,(f||[]).map((function(e){return(0,i.default)(g,{value:e.val},e.id,e.text)})))),c.default.createElement(h,(0,o.default)({},x,{name:[y,"scoreWeight"],fieldKey:[b,"scoreWeight"],rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6307\u6807\u503c"}],__source:{fileName:u,lineNumber:39}}),(0,i.default)(n.default,{disabled:"view"===t,min:0,max:100,suffix:"%",formatter:function(e){return e+"%"},parser:function(e){return Number(e.replace("%",""))}})),"view"!==t&&(0,i.default)("div",{style:{marginTop:6}},void 0,(0,i.default)(p.PlusCircleOutlined,{onClick:function(){return m({},a+1)},style:{marginRight:6}}),0!==a&&(0,i.default)(p.MinusCircleOutlined,{onClick:function(){return v(y)},style:{marginRight:4}})))})))}))}},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/ScoringScheme.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/helpers/jsx.js")),o=d(a("./node_modules/antd/es/radio/index.js")),s=d(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var r=d(a("./node_modules/react/index.js")),i=(d(a("./node_modules/prop-types/index.js")),d(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/ScoresFormItem.jsx")));function d(e){return e&&e.__esModule?e:{default:e}}var l=s.default.Item,u=o.default.Group,c=(0,n.default)(o.default,{value:"Manual"},void 0,"\u624b\u52a8\u914d\u7f6e");t.default=function(e){var t=e.actionType,a=e.scoreType,s=e.setScoreType,d=e.sampleIndexData;return(0,n.default)(r.default.Fragment,{},void 0,(0,n.default)(l,{name:"scoreType",label:"\u8bc4\u5206\u6a21\u578b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bc4\u5206\u6a21\u578b"}]},void 0,(0,n.default)(u,{disabled:"view"===t,onChange:function(e){s(e.target.value)}},void 0,(0,n.default)(o.default,{value:"Auto",style:{marginRight:32}},void 0,"\u81ea\u52a8\u8ba1\u7b97"),c)),"Manual"===a&&(0,n.default)(i.default,{field:"scoringIndex",label:"\u8bc4\u5206\u6307\u6807",sampleIndexData:d,actionType:t}))}},"./src/module/modelGuide/trainTask/editPage/initTemplateTask/component/TimeParameter.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/antd/es/input-number/index.js")),o=l(a("./node_modules/antd/es/row/index.js")),s=l(a("./node_modules/babel-runtime/helpers/jsx.js")),r=l(a("./node_modules/antd/es/select/index.js")),i=l(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var d=l(a("./node_modules/react/index.js"));l(a("./node_modules/prop-types/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=i.default.Item,c=r.default.Option;t.default=function(e){var t=e.actionType,a=e.sampleIndexData;return(0,s.default)(d.default.Fragment,{},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(u,{name:"dateIndex",label:"\u65f6\u95f4",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u65f6\u95f4\u6307\u6807"}]},void 0,(0,s.default)(r.default,{style:{width:200},placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4\u6307\u6807",disabled:"view"===t},void 0,(a||[]).map((function(e){return(0,s.default)(c,{value:e.val},e.id,e.text)})))),(0,s.default)(u,{name:"forecastFieldIndex",label:"\u9884\u6d4b\u5b57\u6bb5",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u9884\u6d4b\u5b57\u6bb5"}],style:{marginLeft:32}},void 0,(0,s.default)(r.default,{disabled:"view"===t,style:{width:200},placeholder:"\u8bf7\u9009\u62e9\u9884\u6d4b\u5b57\u6bb5",showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,(a||[]).map((function(e){return(0,s.default)(c,{value:e.val},e.id,e.text)}))))),(0,s.default)(u,{name:"forecastCycle",label:"\u9884\u6d4b\u5468\u671f\u503c",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9884\u6d4b\u5468\u671f\u503c"}]},void 0,(0,s.default)(n.default,{placeholder:"\u8bf7\u8f93\u5165\u9884\u6d4b\u5468\u671f\u503c",style:{width:200},disabled:"view"===t})))}},"./src/module/modelGuide/trainTask/listPage/TrainTaskListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/table/index.js")),o=I(a("./node_modules/antd/es/button/index.js")),s=I(a("./node_modules/antd/es/tooltip/index.js")),r=I(a("./node_modules/babel-runtime/helpers/jsx.js")),i=I(a("./node_modules/antd/es/modal/index.js")),d=I(a("./node_modules/antd/es/message/index.js")),l=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=I(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=a("./node_modules/react/index.js"),f=(I(p),I(a("./node_modules/prop-types/index.js")),I(a("./node_modules/lodash/lodash.js"))),m=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./src/utils/history.js"),g=a("./src/routes/routeHelper.jsx"),v=a("./src/components/index.js"),_=I(a("./src/redux/services/sysManager/projectManage.js")),y=a("./src/config/ui-config.js"),b=I(a("./src/module/modelGuide/trainTask/listPage/component/SearchBar.jsx")),x=I(a("./src/module/modelGuide/trainTask/listPage/component/TrainTaskCreateModal.jsx")),C=I(a("./src/redux/services/trainTask.js")),j=a("./src/module/modelGuide/modelEnums.js"),S=a("./src/module/modelGuide/trainTask/modelEnums.js");function I(e){return e&&e.__esModule?e:{default:e}}var T=m.default.div.withConfig({displayName:"TrainTaskListPage__PageWrapper",componentId:"gll6yx-0"})(["display:flex;flex-direction:column;flex:1 1 auto;background:#fff;padding:6px 20px;.ant-tabs-bar{border-bottom:none;font-size:14px;color:#3c3e4a;}"]),w=m.default.div.withConfig({displayName:"TrainTaskListPage__PageHeader",componentId:"gll6yx-1"})(["position:relative;width:100%;z-index:20;border-bottom:1px solid #e8e8e8;height:57px;.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}.saveButton{position:absolute;top:8px;}"]),E=m.default.div.withConfig({displayName:"TrainTaskListPage__PageBody",componentId:"gll6yx-2"})(["min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),D=m.default.div.withConfig({displayName:"TrainTaskListPage__ModelsBox",componentId:"gll6yx-3"})([".ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:0 8px !important;white-space:nowrap;}"]),M=function(e){function t(a){var n;(0,l.default)(this,t);var o=(0,u.default)(this,e.call(this,a));return o.serviceQuotaFormat=function(e){var t="";if(e){var a=f.default.get(e,"instances_min",1),n=f.default.get(e,"cpu",0),o=f.default.get(e,"memory",0),s="";if(e.gpu&&Array.isArray(e.gpu))for(var r=0;r<e.gpu.length;r++){var i=e.gpu[r];s=s+(s?" ":"")+a*(i.gpuNumber||0)+"\u5f20 "+(i.gpuNumber>0?i.gpuModelName:"")}t=n*a+"C/"+o*a+"GB"+(s?"/"+s:"")}return t},o.componentDidMount=function(){o.param&&o.appBig&&o.appSmall&&(o.appDateInfo={appBig:o.appBig,appSmall:o.appSmall,applicationId:o.applicationId},o.setState({modalVisible:!0})),o.fetchData(),_.default.getApplicationsDropDown().then((function(e){e&&o.setState({applicationsData:e.data})})).catch((function(e){d.default.error(e.message)}))},o.changeSearchCond=function(e,t){"refresh"!==e?(o.searchCond[e]=f.default.trim(t),o.fetchData()):o.fetchData(t)},o.fetchData=function(){o.setState({listLoading:!0}),C.default.getTrainTaskList(o.searchCond).then((function(e){o.setState((function(){return{modelData:e.data,listLoading:!1,pagination:e.pagination}}))})).catch((function(){o.setState({listLoading:!1})}))},o.handleAction=function(e,t){var a=f.default.get(o,f.default.camelCase("handle_"+e+"_action"));a&&f.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(o,t)},o.handleDeleteAction=function(e){o._handleAction(e,"delete","\u5220\u9664\u5411\u5bfc\u8bad\u7ec3\u4efb\u52a1")},o._handleAction=function(e,t,a){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a+"[ "+e.taskName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(n,s){"delete"===t&&C.default.deleteTrainTaskInfo(e.taskId).then((function(){d.default.success(a+"[ "+e.taskName+" ]\u6267\u884c\u6210\u529f!"),o.fetchData(),n()})).catch((function(e){s(e)}))}))}})},o.setShareLoading=function(e){o.setState({shareLoading:e})},o.handleEnvChange=function(e){o.setState({activeEnv:e}),o.changeSearchCond("profile",e)},o.handlePageChange=function(e){var t=e.page;o.searchCond.offset=Number(t),o.fetchData()},o.handleAction=function(e,t){var a=f.default.get(o,f.default.camelCase("handle_"+e+"_action"));a&&f.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(o,t)},o.closeCreateModal=function(){o.setState({modalVisible:!1})},o.openModalView=function(){o.setState({modalVisible:!0})},o.onChangePage=function(e,t){o.searchCond.offset=parseInt(e),o.searchCond.limit=parseInt(t),o.fetchData()},o.param=f.default.get(a.match,"params.param"),o.appBig=f.default.get(a,"location.state.appBig",null),o.appSmall=f.default.get(a,"location.state.appSmall",null),o.applicationId=f.default.get(a,"location.state.applicationId",null),o.appDateInfo={appBig:"",appSmall:"",applicationId:o.applicationId},o.state={modelData:[],listLoading:!1,applicationsData:[],modalVisible:!1,pagination:{limit:10,offset:0,total:0}},o.searchCond={offset:1,limit:10,taskName:"",applicationIds:o.applicationId,profile:S.ENV,status:"",sortBy:"createAt"},o.columns=[{title:"\u540d\u79f0",width:"150px",dataIndex:"taskName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},(n={title:"\u8ba1\u7b97\u8d44\u6e90",dataIndex:"resQuotaConf"},n.title="\u8ba1\u7b97\u8d44\u6e90",n.ellipsis=!0,n.render=function(e){var t;return t=o.serviceQuotaFormat(e),(0,r.default)(s.default,{placement:"topLeft",title:t},void 0,t)},n),{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u4efb\u52a1\u72b6\u6001",dataIndex:"status",width:90,render:function(e,t){return"ERROR"!==e?(0,r.default)(v.StateLabel,{source:"trainTask",code:e}):(0,r.default)(s.default,{placement:"topLeft",title:t.message},void 0,(0,r.default)("div",{},void 0,(0,r.default)(v.StateLabel,{source:"trainTask",code:e})))}},{title:"\u6267\u884c\u6b21\u6570",dataIndex:"excuteTimes",align:"center",render:function(e){return(0,r.default)("span",{},void 0,e||0," \u6b21")}},{title:"\u64cd\u4f5c",width:"180px",render:function(e,t){var a=[{handleName:"\u67e5\u770b\u4efb\u52a1",handleAction:function(){(0,h.navigateTo)(g.trainTaskUrl.detail(t.taskId,"invocation"))}}];return"ERROR"===t.status&&a.push({handleName:"\u4fee\u6539",handleAction:function(){var e=j.SYSTEM_TRAIN_TEMPLATE[o.state.appData.templateId];e?(0,h.navigateTo)(g.trainTaskUrl.editInit(e,t.taskId)):(0,h.navigateTo)(g.trainTaskUrl.edit(t.taskId))}}),"ERROR"!==t.status&&"SUCCESS"!==t.status||a.push({handleName:"\u5220\u9664",handleAction:function(){o.handleDeleteAction(t)}}),(0,r.default)(v.ListButtons,{buttons:a,maxShowNum:3})}}],o}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modelData,s=t.pagination,i=t.listLoading;return(0,r.default)(T,{},void 0,(0,r.default)(v.ModalView,{viewType:"edit",modalTitle:"\u9009\u62e9\u6a21\u677f\u7c7b\u578b",width:780,okText:"\u786e \u5b9a",modalVisible:this.state.modalVisible,callVisible:this.closeCreateModal,submitModalOk:function(){e.trainTaskCreateModal.saveKpi()},comp:(0,r.default)(x.default,{onRef:function(t){e.trainTaskCreateModal=t},appDateInfo:this.appDateInfo,disabledAppType:this.param&&this.appBig&&this.appSmall,closeCreateModal:this.closeCreateModal})}),(0,r.default)(w,{},void 0,(0,r.default)(o.default,{className:"saveButton",type:"primary",onClick:function(){e.openModalView()}},void 0,"\u65b0\u589e\u5411\u5bfc\u5f0f\u8bad\u7ec3\u4efb\u52a1"),(0,r.default)(b.default,{applicationsData:this.state.applicationsData,statusColorMap:y.TRAIN_TASK_STATUS_COLOR_MAP,onChange:this.changeSearchCond,searchCond:this.searchCond})),(0,r.default)(E,{},void 0,(0,r.default)(D,{},void 0,(0,r.default)(n.default,{bordered:!0,columns:this.columns,dataSource:a,rowKey:"taskId",pagination:!1,loading:i}),(0,r.default)(v.TabPagination,{currentPage:s.offset,pageSize:10,total:s.total,onChange:this.onChangePage}))))},t}(p.Component);t.default=M},"./src/module/modelGuide/trainTask/listPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./src/module/modelGuide/modelEnums.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h=u.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-1xgp0hd-0"})(["display:flex;.search__item-wrapper{margin-left:16px;}.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:last-child){border-top-left-radius:2px;border-bottom-left-radius:2px;height:32px;}"]),g=u.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"sc-1xgp0hd-1"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;"],(function(e){return e.color})),v={width:"130px"},y=c.TRAIN_TASK_STATUS.getCodeAndDescList(),b=(0,n.default)(f,{value:""},void 0,"\u5168\u90e8\u5e94\u7528"),x=(0,n.default)(f,{value:"taskName"},void 0,"\u4efb\u52a1\u540d\u79f0\u6392\u5e8f"),C=(0,n.default)(f,{value:"createAt"},void 0,"\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),j=(0,n.default)(f,{value:""},void 0,"\u5168\u90e8\u72b6\u6001"),S=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("taskName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeBusiType=n.changeSelect("applicationIds"),n.changeSortField=n.changeSelect("sortBy"),n.changeStatusField=n.changeSelect("status"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(h,{className:"search-bar"},void 0,(0,n.default)(d.default,{showSearch:!0,onChange:this.changeBusiType,style:v,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528",className:"sortType-cond",value:_.get(this.props,"searchCond.applicationIds",""),filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,b,this.props.applicationsData.map((function(e){return(0,n.default)(f,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)}))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,style:v,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:"taskName",className:"search-cond",value:_.get(this.props,"searchCond.sortBy","taskName")},void 0,x,C)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{allowClear:!0,onChange:this.changeStatusField,style:v,placeholder:"\u72b6\u6001",className:"search-cond",value:_.get(this.props,"searchCond.status","")},void 0,j,y.map((function(t,a){return(0,n.default)(f,{value:t.code},t.code+"-"+a,(0,n.default)(g,{color:e.props.statusColorMap[t.code]}),t.desc)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{style:{width:200},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,defaultValue:_.get(this.props,"searchCond.taskName",""),onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=S},"./src/module/modelGuide/trainTask/listPage/component/TrainTaskCreateModal.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/babel-runtime/helpers/jsx.js")),o=y(a("./node_modules/babel-runtime/helpers/extends.js")),s=y(a("./node_modules/antd/es/message/index.js")),r=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var l=y(a("./node_modules/react/index.js")),u=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-redux/es/index.js"),p=y(a("./src/module/modelGuide/trainTask/listPage/component/TrainTemplate.jsx")),f=a("./src/utils/history.js"),m=a("./src/routes/routeHelper.jsx"),h=a("./src/components/index.js"),g=y(a("./src/redux/services/trainTemplate.js")),v=a("./src/module/modelGuide/modelEnums.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=u.default.div.withConfig({displayName:"TrainTaskCreateModal__TabsWrapper",componentId:"sc-57n3t0-0"})([""]),x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.saveKpi=function(){if(n.state.appData.templateId){var e=v.SYSTEM_TRAIN_TEMPLATE[n.state.appData.templateId];if(e)return void(0,f.navigateTo)(m.trainTaskUrl.createInitTemTrainTask(n.state.appData.templateId,n.state.appData.versionsId,n.props.appDateInfo.applicationId,_.toLower(e)));(0,f.navigateTo)(m.trainTaskUrl.createTrainTask(n.state.appData.templateId,n.state.appData.versionsId,n.props.appDateInfo.applicationId))}else s.default.info("\u8bf7\u9009\u62e9\u6a21\u677f!")},n.setAppData=function(e){var t=n.state.appData;t.templateId=e.templateId,t.templateName=e.templateName,t.versionsId=e.templateVersionId,t.versionsName=e.templateVersionName,t.templateCategory=e.templateCategory,n.setState({appData:(0,o.default)({},t)})},n.setAppClassify=function(e){var t=(0,o.default)({},n.state.appData);t.appBig=e.appBig,t.appSmall=e.appSmall,n.setState({appData:(0,o.default)({},t)}),n.fetchData(t)},n.fetchData=function(e){g.default.getTrainTemplateListByByApp({appCatetory:e.appBig,appType:e.appSmall}).then((function(e){for(var t=e.data,a=0;a<t.length;a++)t[a].selectedVersions=_.get(t[a],"versions[0]",{});n.setState((function(){return{templates:t}}))})).catch((function(){n.setState({listLoading:!1})}))},n.state={templates:[],applicationClassifyOptions:[],applicationSubClassifyOptions:[],appData:{appBig:"",appSmall:"",templateId:"",templateName:"",versionsId:"",versionsName:"",templateCategory:""}},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.prototype.render=function(){var e=this.state,t=e.appData,a=e.templates;return(0,n.default)(b,{},void 0,(0,n.default)(h.SelectAppClassify,{moduleData:this.props.appDateInfo,setAppClassify:this.setAppClassify,disabledAppType:this.props.disabledAppType}),t.appBig&&(0,n.default)("div",{style:{width:"100%",minHeight:200}},void 0,(0,n.default)(p.default,{appData:t,setAppData:this.setAppData,templates:a})))},t}(l.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(x)},"./src/module/modelGuide/trainTask/listPage/component/TrainTemplate.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelGuideDesc=void 0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=h(a("./node_modules/react/index.js")),l=h(a("./node_modules/lodash/lodash.js")),u=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./src/components/index.js"),m=h(a("./src/redux/services/trainTemplate.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=i.default.Option,v=t.ModelGuideDesc=u.default.div.withConfig({displayName:"TrainTemplate__ModelGuideDesc",componentId:"sc-1m43qqg-0"})(["h1{font-size:14px;color:#1f2d3d;letter-spacing:1px;}margin-bottom:20px;margin-top:20px;"]),_=u.default.div.withConfig({displayName:"TrainTemplate__TabsWrapper",componentId:"sc-1m43qqg-1"})(["ul{padding-left:0px;float:left;width:95%;list-style-type:none;li{cursor:pointer;&.active{border:0.5px solid #47b2fb;background:#ffff;cursor:pointer;}&:hover{border:0.5px solid #47b2fb;background:#ffff;cursor:pointer;}text-align:center;background:#e5e9f2;border-radius:4px;padding:0 5px 0 5px;height:100%;margin:0px 0px 10px 15px;width:100px;float:left;padding-top:50px;}}"]),y=(0,n.default)(f.LoadingIndicator,{}),b=(0,n.default)(f.NoData,{}),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({listLoading:!0,templateName:"",templateDesc:""}),m.default.getTrainTemplateListByByApp({appCatetory:n.props.appData.appBig,appType:n.props.appData.appSmall}).then((function(e){for(var t=e.data,a=0;a<t.length;a++)t[a].selectedVersions=l.default.get(t[a],"versions[0]",{});n.setState((function(){return{templates:t,listLoading:!1,offset:1}}))})).catch((function(){n.setState({listLoading:!1})}))},n.getTemplatesByOffset=function(e){var t=[];if(n.props.templates.length>0)for(var a=5*(e-1);a<5*e;a++)t.push(n.props.templates[a]);return t},n.setOffset=function(e){var t=n.state.offset;"+"===e?t+=1:t-=1,n.setState({offset:t})},n.onClickTemplates=function(e){n.props.setAppData({templateId:e.templateId,templateName:e.templateName,templateVersionId:e.selectedVersions.templateVersionId,templateVersionName:e.selectedVersions.templateVersionName}),n.setState({templateDesc:e.templateDesc,templateName:e.templateName,templateId:e.templateId})},n.changeVersions=function(e,t){for(var a=n.props.templates,o=0;o<a.length;o++)if(t===a[o].templateId){var s=l.default.findIndex(a[o].versions,(function(t){return t.templateVersionId===e}));a[o].selectedVersions=a[o].versions[s],n.setState({templates:a});break}},n.state={offset:1,templateDesc:"",templateName:"",templateId:"",listLoading:!1},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.appData.appBig===e.appData.appBig&&this.props.appData.appSmall===e.appData.appSmall||this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,o=t.offset,s=t.templateDesc,r=t.templateName,d=t.templateId,u=t.listLoading;return(0,n.default)(_,{},void 0,u&&y,this.props.templates.length>0&&!u?(0,n.default)("div",{},void 0,(0,n.default)("div",{style:{display:"flex",height:150,lineHeight:"150px",marginTop:20}},void 0,(0,n.default)("div",{style:{width:50}},void 0,(0,n.default)(p.DoubleLeftOutlined,{onClick:function(){1!==o&&e.setOffset("-")},style:{fontSize:16,display:1!==o?"":"none",cursor:"pointer"}})),(0,n.default)("ul",{},void 0,this.getTemplatesByOffset(o).map((function(t){return t&&(0,n.default)("li",{className:d===l.default.get(t,"templateId")?"active":"",style:{cursor:"pointer"}},l.default.get(t,"templateId"),(0,n.default)("img",{style:{position:"absolute",margin:"-5px 0px 0px -35px"},src:a("./src/styles/images/modelConfig/FLYC.png"),onClick:function(){e.onClickTemplates(t)}}),t.versions&&t.versions.length>0&&(0,n.default)("div",{style:{height:0,position:"absolute",margin:"-105px 0px 0px 26px"}},void 0,(0,n.default)(i.default,{size:"small",style:{width:"65px"},onChange:function(a){return e.changeVersions(a,t.templateId)},defaultValue:l.default.get(t,"versions[0].templateVersionId","")},void 0,t.versions.map((function(e){return(0,n.default)(g,{value:e.templateVersionId},e.templateVersionId,e.templateVersionName)})))),(0,n.default)("div",{onClick:function(){e.onClickTemplates(t)},style:{width:"100%"}},void 0,(0,n.default)(f.LineWrap,{title:t.templateName,lineClampNum:1})))}))),(0,n.default)("div",{style:{width:50}},void 0,(0,n.default)(p.DoubleRightOutlined,{onClick:function(){o!==Math.ceil(e.props.templates.length/5)&&e.setOffset("+")},style:{fontSize:16,display:o!==Math.ceil(this.props.templates.length/5)?"":"none",cursor:"pointer"}}))),(0,n.default)(v,{},void 0,(0,n.default)("h1",{},void 0,r?"["+r+"] \u7b80\u4ecb":"\u5df2\u9009\u6a21\u677f\u7b80\u4ecb","\uff1a"),(0,n.default)("p",{style:{color:"#1F2D3D"}},void 0,s))):!u&&b)},t}(d.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(x)},"./src/module/modelGuide/trainTask/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.IDENTIFY_TYPE=t.PROCESS_STAGE=t.SIGN=t.REASONING_PROCESS_STATUS=t.REASONING_PROCESS=t.SERVICE_INVOCATION_STATUS=t.PUBLISH_FROM=t.ENVIRONMENT=t.ENV=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({READY:["READY","\u6570\u636e\u51c6\u5907\u9636\u6bb5"],MIRROR:["MIRROR","\u955c\u50cf\u6784\u5efa\u9636\u6bb5"],DEPLOY:["DEPLOY","\u670d\u52a1\u90e8\u7f72\u9636\u6bb5"],REGISTER:["REGISTER","\u670d\u52a1\u6ce8\u518c\u9636\u6bb5"]}),i=(0,s.default)({BUILDING:["BUILDING","\u6784\u5efa\u4e2d"],SUCCESS:["SUCCESS","\u6210\u529f"],ERROR:["ERROR","\u5931\u8d25"],OFFLINE:["OFFLINE","\u5df2\u4e0b\u7ebf"],SCALE_UPDATING:["SCALE_UPDATING","\u6269\u7f29\u5bb9\u4e2d"]}),d=(0,s.default)({PRODUCT:["PRODUCT","\u751f\u4ea7\u73af\u5883"],TEST:["TEST","\u6d4b\u8bd5\u73af\u5883"],DEV:["DEV","\u5f00\u53d1\u73af\u5883"]}),l=(0,s.default)({waiting:["waiting","\u7b49\u5f85\u4e2d"],running:["running","\u6267\u884c\u4e2d"],failure:["failure","\u6267\u884c\u5931\u8d25"],success:["success","\u5df2\u5b8c\u6210"],error:["error","\u53d1\u751f\u9519\u8bef"]}),u=(0,s.default)({WIZARD:["WIZARD","\u5411\u5bfc\u5f0f"],CODEMODEL:["CODEMODEL","\u7f16\u7801\u5f0f"],IMPORT:["IMPORT","\u7b2c\u4e09\u65b9\u5bfc\u5165"],INIT:["INIT","\u7cfb\u7edf\u9884\u7f6e"]}),c=(0,s.default)({">":[">","\u5927\u4e8e"],"<":["<","\u5c0f\u4e8e"],"=":["=","\u7b49\u4e8e"],"!=":["!=","\u4e0d\u7b49\u4e8e"],">=":[">=","\u5927\u4e8e\u7b49\u4e8e"],"<=":["<=","\u5c0f\u4e8e\u7b49\u4e8e"]}),p=(0,s.default)({EXTRACT_DATA:[1,"\u63d0\u53d6\u6570\u636e"],PREPARE_DATA:[2,"\u51c6\u5907\u6570\u636e"],PROCESS_DATA:[3,"\u5212\u5206\u6570\u636e"],COMMIT_TRAIN:[4,"\u63d0\u4ea4\u6a21\u578b"],TRAIN_MODEL:[5,"\u8bad\u7ec3\u6a21\u578b"],RESOLVE_RESULT:[6,"\u89e3\u6790\u7ed3\u679c"]}),f=(0,s.default)({folder:["default","\u4ee5\u6587\u4ef6\u5939\u547d\u540d\u5206\u7c7b"],json:["json","\u4ee5json\u6807\u6ce8\u6587\u4ef6\u5206\u7c7b"]});t.ENV="DEV",t.ENVIRONMENT=d,t.PUBLISH_FROM=u,t.SERVICE_INVOCATION_STATUS=l,t.REASONING_PROCESS=r,t.REASONING_PROCESS_STATUS=i,t.SIGN=c,t.PROCESS_STAGE=p,t.IDENTIFY_TYPE=f},"./src/module/modelGuide/trainTask/viewPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/progress/index.js")),o=x(a("./node_modules/antd/es/tooltip/index.js")),s=x(a("./node_modules/antd/es/drawer/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/antd/es/message/index.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/progress/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./src/components/index.js"),h=x(a("./src/components/button/index.js")),g=x(a("./src/redux/services/sysManager/projectManage.js")),v=x(a("./src/module/modelGuide/trainTask/viewPage/components/HandlePage.jsx")),y=a("./src/module/modelGuide/modelEnums.js"),b=x(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/HandleSysPage.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=h.default.GhostButton,j=p.default.div.withConfig({displayName:"BaseInfo__DetailBaseInfoWrapper",componentId:"sc-1w4nm3w-0"})(["display:flex;border:1px solid #eee;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:80%;margin-right:24px;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{min-width:160px;display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}"]),S=(0,r.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),I=(0,r.default)(f.LoadingOutlined,{className:"refresh-icon"}),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleOperation=function(e){switch(e.key){case"start":case"edit":n.handleTestClick(e.key)}},n.handleTestClick=function(e){n.setState({visible:!0,optBtnKey:e})},n.onClose=function(e){n.setState({visible:!1}),"refresh"===e&&n.handleRefresh()},n.handleRefresh=function(){n.props.onRefresh(!0)},n.state={baseInfoLoading:!1,refreshing:!1,applicationsList:[],modalVisible:!1,modalType:"reassign",optBtnKey:""},n.items=[{key:"taskId",name:"\u4efb\u52a1ID",type:"text"},{key:"createBy",name:"\u521b\u5efa\u4eba",type:"text"},{key:"createAt",name:"\u521b\u5efa\u65f6\u95f4",type:"text"},{key:"applicationId_name",name:"\u5f52\u5c5e\u5e94\u7528",type:"text"}],n.optsBtn=[{key:"start",text:"\u7acb\u5373\u6267\u884c",action:"start"},{key:"edit",text:"\u53d8\u66f4\u914d\u7f6e",action:"edit"}],n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this;g.default.getApplicationsDropDown().then((function(t){t&&e.setState({applicationsList:t.data})})).catch((function(e){i.default.error(e.message)}))},t.getDerivedStateFromProps=function(e){return{baseInfo:_.get(e,"baseInfo"),baseInfoLoading:_.get(e,"baseInfoLoading"),refreshing:_.get(e,"refreshing")}},t.prototype.render=function(){var e=this,t=this.state,a=t.baseInfo,i=t.refreshing,d=t.baseInfoLoading,l=t.optBtnKey,u=y.SYSTEM_TRAIN_TEMPLATE[a.templateId];return(0,r.default)(j,{},void 0,(0,r.default)(s.default,{title:"start"===l?"\u7acb\u5373\u6267\u884c":"\u53d8\u66f4\u914d\u7f6e",width:850,onClose:this.onClose,visible:this.state.visible,drawerStyle:{overFlow:"hidden"}},void 0,u?(0,r.default)(b.default,{optBtnKey:l,trainTaskInfo:a,onClose:this.onClose}):(0,r.default)(v.default,{optBtnKey:l,trainTaskInfo:a,onClose:this.onClose})),(0,r.default)("div",{className:"left__content-wrapper"},void 0,(0,r.default)("div",{className:"left__top-wrapper"},void 0,(0,r.default)("div",{className:"left__top-line1"},void 0,(0,r.default)("div",{className:"base__info-name top__line1-section"},void 0,a.taskName),(0,r.default)("div",{className:"base__info-status top__line1-section"},void 0,(0,r.default)("span",{},void 0,"ERROR"!==a.status?(0,r.default)("span",{style:{display:"flex"}},void 0,(0,r.default)(m.StateLabel,{source:"trainTask",code:a.status})):(0,r.default)(o.default,{placement:"topLeft",title:a.message},void 0,(0,r.default)("div",{style:{display:"flex"}},void 0,(0,r.default)(m.StateLabel,{source:"trainTask",code:a.status})))))),(0,r.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",a.taskDesc," ")),(0,r.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(e){return"text"===e.type?(0,r.default)("div",{className:"item__wrapper"},e.key,(0,r.default)("span",{style:{width:"80px"}},void 0,e.name,"\uff1a"),(0,r.default)("span",{},void 0,"gpu"===e.key?_.get(a,"usageRate.gpuMemory")||_.get(a,"usageRate.gpuCard",0):_.get(a,e.key))):(0,r.default)("div",{className:"item__wrapper"},e.key,(0,r.default)("span",{style:{width:"80px",whiteSpace:"nowrap",flexShrink:0}},void 0,e.name,"\uff1a"),(0,r.default)("span",{style:{marginRight:20,width:"25px"}},void 0,_.isNumber(_.get(a,e.key))?_.get(a,e.key):0,"%"),(0,r.default)("div",{className:"item__progress-wrapper"},void 0,(0,r.default)(n.default,{percent:_.get(a,e.key)||0,showInfo:!1})))})))),(0,r.default)("div",{className:"right__content-wrapper"},void 0,S,i&&d?I:(0,r.default)(o.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,r.default)(f.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})),(0,r.default)("div",{className:"right__bottom-wrapper"},void 0,this.optsBtn.map((function(t){return(0,r.default)(C,{action:_.upperCase(t.action,""),width:"20",txt:t.text,onClick:function(){return e.handleOperation(t)},className:"fn-left opt-btn"},t.key)})))))},t}(c.default.Component);t.default=T},"./src/module/modelGuide/trainTask/viewPage/ServiceConfigInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/col/index.js")),o=v(a("./node_modules/babel-runtime/helpers/extends.js")),s=v(a("./node_modules/antd/es/row/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js")),u="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTask\\viewPage\\ServiceConfigInfo.jsx";a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var c=v(a("./node_modules/react/index.js")),p=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=a("./src/components/index.js"),h=a("./src/module/modelGuide/trainTask/modelEnums.js"),g=a("./src/module/modelGuide/trainTask/viewPage/components/AvailableQuota.jsx");function v(e){return e&&e.__esModule?e:{default:e}}var y=f.Form.Item,b=p.default.div.withConfig({displayName:"ServiceConfigInfo__DetailInfoWrapper",componentId:"msmc15-0"})(["display:flex;flex-wrap:wrap;"]),x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.getRunEnvParamByKey=function(e,t){if(e){if("AI_JOB_DATA_PATH"===t||"AI_JOB_LOG_PATH"===t){var a=_.findIndex(e,(function(e){return e.envName===t}));return _.get(e[a],"envValue","--")}for(var n="",o=0;o<e.length;o++)"AI_JOB_DATA_PATH"!==e[o].envName&&"AI_JOB_LOG_PATH"!==e[o].envName&&(n+=e[o].envName+"="+e[o].envValue+"\u3001");return""===n?"--":1===n.split("\u3001").length?n:n.substring(0,n.length-1)}return"--"},n}return(0,l.default)(t,e),t.prototype.render=function(){var e={layout:"inline",labelAlign:"left"},t={marginBottom:0},a={width:"50%"},i=this.props.baseInfo,d=_.get(i,"resQuotaConf",{});return(0,r.default)(b,{},void 0,(0,r.default)(m.ModelConfigPanel,{title:"\u6a21\u578b\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:55}}),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u6a21\u677f\u540d\u79f0",style:t},void 0,_.get(i,"templateVersion.templateName")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u7248\u672c",style:t},void 0,_.get(i,"templateVersion.templateVersionName")||"--")),(0,r.default)(y,{label:"\u6765\u6e90",style:t},void 0,h.PUBLISH_FROM.getDescFromValue(_.get(i,"templateVersion.froms"))||"--"))),(0,r.default)(m.ModelConfigPanel,{title:"\u542f\u52a8\u53c2\u6570",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:72}}),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(y,{label:"\u73af\u5883\u53d8\u91cf",style:t},void 0,this.getRunEnvParamByKey(i.runEnvParam,null)))),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(y,{label:"\u65e5\u5fd7\u8def\u5f84",style:t},void 0,this.getRunEnvParamByKey(i.runEnvParam,"AI_JOB_LOG_PATH")))),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(y,{style:t,label:"\u6570\u636e\u76ee\u5f55"},void 0,this.getRunEnvParamByKey(i.runEnvParam,"AI_JOB_DATA_PATH")))))),(0,r.default)(m.ModelConfigPanel,{title:"\u8d44\u6e90\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:98}}),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"CPU",style:t},void 0,d.cpu||0)),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{style:t,label:"\u5185\u5b58"},void 0,d.memory)),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{style:t,label:"gpu"},void 0,(0,g.renderGpu)(d.gpu))),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{style:t,label:"\u5b9e\u4f8b\u4e2a\u6570"},void 0,_.get(i,"replicaCnt","--"))))))},t}(c.default.Component);x.defaultProps={baseInfo:{}},t.default=x},"./src/module/modelGuide/trainTask/viewPage/ServiceInvocations.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/antd/es/table/index.js")),o=j(a("./node_modules/antd/es/drawer/index.js")),s=j(a("./node_modules/antd/es/tooltip/index.js")),r=j(a("./node_modules/babel-runtime/helpers/jsx.js")),i=j(a("./node_modules/babel-runtime/helpers/extends.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/antd/es/modal/index.js")),u=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=j(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=j(a("./node_modules/react/index.js")),m=j(a("./node_modules/dayjs/dayjs.min.js")),h=(j(a("./node_modules/prop-types/index.js")),j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),g=a("./src/components/index.js"),v=j(a("./src/module/modelGuide/trainTask/viewPage/components/SearchBar.jsx")),y=j(a("./src/redux/services/trainTask.js")),b=j(a("./src/module/modelGuide/trainTask/viewPage/SonTaskDetails.jsx")),x=a("./src/routes/routeHelper.jsx"),C=a("./src/module/modelGuide/modelEnums.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=h.default.div.withConfig({displayName:"ServiceInvocations__ManagePageDom",componentId:"sc-1bfbkay-0"})(["display:flex;flex-direction:column;flex:1 1 auto;"]),I=h.default.div.withConfig({displayName:"ServiceInvocations__TabsDiv",componentId:"sc-1bfbkay-1"})(["width:100%;position:relative;background-color:#ffff;padding:20px;padding-top:0;margin-bottom:20px;"]),T=h.default.div.withConfig({displayName:"ServiceInvocations__PageHeader",componentId:"sc-1bfbkay-2"})(["width:100%;display:flex;.search__item-wrapper{display:flex;margin-right:16px;height:32px;line-height:32px;margin-left:0;}.item-cond{width:120px;}"]),w=h.default.div.withConfig({displayName:"ServiceInvocations__PageBody",componentId:"sc-1bfbkay-3"})(["display:table;min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),E=h.default.div.withConfig({displayName:"ServiceInvocations__ModelsBox",componentId:"sc-1bfbkay-4"})(["margin-top:10px;flex:1 1 auto;"]),D=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.publishModel=function(e,t){l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u53d1\u5e03\u6a21\u578b?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(a,o){y.default.publishModelFromTrainResult(e,t,{}).then((function(){d.default.success("\u53d1\u5e03\u6a21\u578b\u6210\u529f!"),n.fetchData(),a()})).catch((function(e){o(e),d.default.error("\u53d1\u5e03\u6a21\u578b\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+e)}))}))}})},n.startOrStop=function(e,t){var a={retry:"\u91cd\u65b0\u6267\u884c",stop:"\u505c\u6b62"};l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a[t]+"\u6b64\u4efb\u52a1?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(o,s){y.default.retryOrRestartJob(e,t).then((function(){d.default.success(a[t]+"\u6210\u529f!"),n.fetchData(),o()})).catch((function(e){s(e),d.default.error(a[t]+"\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+e)}))}))}})},n.fetchData=function(){n.setState({listLoading:!0}),y.default.getTaskJobList(n.searchCond.taskId,n.searchCond).then((function(e){n.setState({invocationInfo:e.data,listLoading:!1})})).catch((function(){n.setState({listLoading:!1})})),y.default.getTaskJobCount(n.searchCond.taskId).then((function(e){n.setState({executeCount:_.get(e,"data[0].executeCount",0),executeErrorCount:_.get(e,"data[0].executeErrorCount",0),listLoading:!1})})).catch((function(){n.setState({listLoading:!1})}))},n.changeSearchCond=function(e){n.searchCond=(0,i.default)({},n.searchCond,e),n.fetchData()},n.viewDetail=function(e){n.setState({visible:!0,baseInfo:e})},n.onClose=function(){n.setState({visible:!1})},n.state={invocationInfo:[],listLoading:!1,currentLogId:"",executeCount:0,executeErrorCount:0,visible:!1,sonTaskLoading:!1,jobId:"",baseInfo:null},n.searchCond={taskId:a.taskId,deployEnv:a.deployEnv,runBeginAt:"",runEndAt:"",runStatus:"",limit:99,offset:1,type:"guide-train"},n.columns=[{title:"\u4efb\u52a1ID",dataIndex:"taskActionId",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8bf7\u6c42\u65f6\u95f4",dataIndex:"requestAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u6267\u884c\u5f00\u59cb\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u6267\u884c\u7ed3\u675f\u65f6\u95f4",dataIndex:"endAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u8017\u65f6",ellipsis:!0,dataIndex:"duration",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u4efb\u52a1\u72b6\u6001",width:110,dataIndex:"status",render:function(e,t){return"waiting"!==e&&"error"!==e&&"failure"!==e?(0,r.default)(g.StateLabel,{source:"trainTaskInvocation",code:e}):(0,r.default)(s.default,{placement:"topLeft",title:t.errorMessage},void 0,(0,r.default)("div",{},void 0,(0,r.default)(g.StateLabel,{source:"trainTaskInvocation",code:e})))}},{title:"\u4efb\u52a1\u5b50\u72b6\u6001",width:130,dataIndex:"childStatus",render:function(e,t){return(0,r.default)(s.default,{placement:"topLeft",title:t.errorMessage},void 0,(0,r.default)("div",{},void 0,(0,r.default)(g.StateLabel,{source:"trainTaskSonInvocation",code:e})))}},{title:"\u64cd\u4f5c",width:250,render:function(e){var t=e.taskType,o=[];return-1!==_.indexOf(["failure","error"],e.status)&&o.push({handleName:"\u91cd\u65b0\u6267\u884c",handleAction:function(){n.startOrStop(e.taskActionId,"retry")}}),o.push({handleName:"\u67e5\u770b\u914d\u7f6e",style:{display:"inline-block",whiteSpace:"nowrap"},isTargetBlank:!0,handleAction:x.trainTaskUrl.jobDetail(n.props.taskId,e.taskActionId,"config",t),handleType:"link"}),-1!==_.indexOf(["running","waiting"],e.status)&&o.push({handleName:"\u505c\u6b62",handleAction:function(){n.startOrStop(e.taskActionId,"stop")}}),-1!==_.indexOf(["running","failure","error","success"],e.status)&&t&&![C.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"],C.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"],C.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"]].includes(Number(t))&&o.push({handleName:"\u67e5\u770b\u8fc7\u7a0b",isTargetBlank:!0,style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:x.trainTaskUrl.jobDetail(n.props.taskId,e.taskActionId,"process",t),handleType:"link"}),-1!==_.indexOf(["success"],e.status)&&t&&![C.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"],C.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"],C.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"]].includes(Number(t))&&o.push({handleName:"\u67e5\u770b\u7ed3\u679c",isTargetBlank:!0,style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:x.trainTaskUrl.jobDetail(n.props.taskId,e.taskActionId,"result",t),handleType:"link"}),-1===_.indexOf(["success"],e.status)||t&&![C.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"],C.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"],C.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"]].includes(Number(t))||o.push({handleName:"\u53d1\u5e03\u6a21\u578b",handleAction:function(){n.publishModel(a.taskId,e.taskActionId)}}),(0,r.default)(g.ListButtons,{buttons:o,maxShowNum:2})}}],n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.invocationInfo,a=e.listLoading,s=e.executeCount,d=e.executeErrorCount,l=e.visible;return(0,r.default)(S,{},void 0,(0,r.default)(o.default,{title:"\u5411\u5bfc\u5f0f\u8bad\u7ec3\u5b50\u4efb\u52a1\u8be6\u60c5",width:800,onClose:this.onClose,visible:l,drawerStyle:{overFlow:"hidden"},bodyStyle:{paddingBottom:80}},void 0,(0,r.default)(b.default,{baseInfo:(0,i.default)({},_.get(this.state,"baseInfo.jobParam")),applicationId:this.props.baseInfo.applicationId})),(0,r.default)(I,{},void 0,(0,r.default)(T,{},void 0,(0,r.default)("div",{style:{width:"50%",display:"flex",paddingTop:20}},void 0,(0,r.default)("div",{},void 0,(0,r.default)("p",{},void 0,"\u53d1\u751f\u8bf7\u6c42\u6b21\u6570\uff1a",s)),(0,r.default)("div",{style:{marginLeft:32}},void 0,(0,r.default)("p",{},void 0,"\u53d1\u751f\u9519\u8bef\u6b21\u6570\uff1a",d))),(0,r.default)(v.default,{searchCond:this.searchCond,onChange:this.changeSearchCond})),(0,r.default)(w,{},void 0,(0,r.default)(E,{},void 0,(0,r.default)(n.default,{dataSource:t,pagination:!1,rowKey:"taskActionId",bordered:!0,columns:this.columns,loading:a})))))},t}(f.default.Component);t.default=D},"./src/module/modelGuide/trainTask/viewPage/ServiceProcess.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/table/index.js")),o=v(a("./node_modules/antd/es/tooltip/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js")),l=v(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var u=a("./node_modules/react/index.js"),c=(v(u),v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./src/redux/services/modelService.js"),f=v(a("./src/redux/services/offlineInference.js")),m=v(a("./src/module/modelService/detailPage/components/ContainerEvent.jsx")),h=a("./src/utils/authPermit.js"),g=a("./src/components/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=c.default.div.withConfig({displayName:"ServiceProcess__ProcessWrapper",componentId:"sc-153i9nu-0"})([""]),b=l.default.TabPane,x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fetchData=function(){if("process"===n.state.activeTab){if(!n.props.taskId)return;n.setState({loading:!0}),(0,p.getServiceEvent)(n.props.serviceLogType,n.props.taskId).then((function(e){return n.setState({processData:e.data,loading:!1})})).catch((function(){return n.setState({loading:!1})}))}else f.default.offlineEventByTaskId(localStorage.getItem("AI.currentContext"),n.props.taskId).then((function(e){return n.setState({processData:e.data,loading:!1})})).catch((function(){return n.setState({loading:!1})}))},n.handleChange=function(e,t,a){n.setState({filteredInfo:t,sortedInfo:a})},n.handleTabChange=function(e){if(n.setState({activeTab:e}),"process"===e){if(!n.props.taskId)return;n.setState({loading:!0}),(0,p.getServiceEvent)(n.props.serviceLogType,n.props.taskId).then((function(e){return n.setState({processData:e.data,loading:!1})})).catch((function(){return n.setState({loading:!1})}))}else{var t=(0,h.getCurrentContext)().id;f.default.offlineEventByTaskId(t,n.props.taskId).then((function(e){var t=(_.get(e.data,"[0].events",[])||[]).reduce((function(e,t){return e.concat(_.get(t,"events",[])||[])}),[]);n.setState({processData:t,loading:!1})})).catch((function(){return n.setState({loading:!1})}))}},n.state={modalVisible:!1,loading:!1,processData:[],filteredInfo:null,sortedInfo:{columnKey:"operateTime",order:"descend"},activeTab:"process"},n}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.refreshing&&e.refreshing!==this.props.refreshing&&this.fetchData(),e.taskId!==this.props.taskId&&this.fetchData()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.sortedInfo,a=e.filteredInfo,r=e.processData,i=e.loading;t=t||{};var d=[{title:"\u4e8b\u4ef6\u540d\u79f0",dataIndex:"eventName",key:"eventName",filteredValue:(a=a||{}).name||null,onFilter:function(e,t){return t.name.includes(e)},ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c\u8005",dataIndex:"operator",key:"operator",filteredValue:a.name||null,onFilter:function(e,t){return t.name.includes(e)},ellipsis:!0},{title:"\u64cd\u4f5c\u524d",dataIndex:"oldMessage",key:"oldMessage",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u64cd\u4f5c\u540e",dataIndex:"message",key:"message",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u64cd\u4f5c\u7ed3\u679c",dataIndex:"status",key:"status",ellipsis:!0,render:function(e){return(0,s.default)(g.StateLabel,{source:"processLogs",code:e})}},{title:"\u6267\u884c\u65f6\u957f",dataIndex:"duration",key:"duration",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||0},void 0,e||0)}},{title:"\u5f00\u59cb\u65f6\u95f4",dataIndex:"operateTime",key:"operateTime",sorter:function(e,t){return new Date(e.operateTime).getTime()-new Date(t.operateTime).getTime()},sortOrder:"operateTime"===t.columnKey&&t.order,ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7ed3\u675f\u65f6\u95f4",dataIndex:"endTime",key:"endTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}}];return(0,s.default)(y,{},void 0,(0,s.default)(l.default,{defaultActiveKey:this.state.activeTab,onChange:this.handleTabChange},void 0,(0,s.default)(b,{tab:"\u4e3b\u52a8\u4e8b\u4ef6"},"process",(0,s.default)(n.default,{rowKey:"logId",bordered:!0,loading:i,columns:d,dataSource:r,onChange:this.handleChange})),(0,s.default)(b,{tab:"event\u4e8b\u4ef6"},"event",(0,s.default)(m.default,{data:r}))))},t}(u.Component);t.default=x},"./src/module/modelGuide/trainTask/viewPage/SonTaskDetails.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=c(a("./node_modules/react/index.js"));c(a("./node_modules/prop-types/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var l=c(a("./src/module/modelGuide/trainTask/viewPage/components/ParamsFormRender.jsx")),u=c(a("./src/module/modelGuide/trainTask/editPage/component/ReleaseModel.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.TabPane,f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onChange=function(e){n.setState({activeTab:e})},n.state={activeTab:"config"},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.state.activeTab;return(0,n.default)("div",{},void 0,(0,n.default)(i.default,{onChange:this.onChange,activeKey:e,className:"modelApply-tabs"},void 0,(0,n.default)(p,{tab:"\u8bad\u7ec3\u914d\u7f6e"},"config",(0,n.default)(l.default,{trainTaskInfo:{runParam:this.props.baseInfo},readOnly:!0}),(0,n.default)(u.default,{viewType:"edit",applicationId:this.props.applicationId,trainTaskInfo:this.props.baseInfo,readOnly:!0}))))},t}(d.default.Component);t.default=f},"./src/module/modelGuide/trainTask/viewPage/ViewTrainTaskPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/babel-runtime/helpers/jsx.js")),o=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=b(a("./node_modules/babel-runtime/helpers/inherits.js")),i=b(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=b(a("./node_modules/react/index.js")),l=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/utils/history.js"),p=b(a("./src/module/modelGuide/trainTask/viewPage/BaseInfo.jsx")),f=b(a("./src/module/modelGuide/trainTask/viewPage/ServiceConfigInfo.jsx")),m=a("./src/components/index.js"),h=b(a("./src/module/modelGuide/trainTask/viewPage/ServiceProcess.jsx")),g=b(a("./src/module/modelGuide/trainTask/viewPage/ServiceInvocations.jsx")),v=a("./src/routes/routeHelper.jsx"),y=b(a("./src/redux/services/trainTask.js"));function b(e){return e&&e.__esModule?e:{default:e}}var x=i.default.TabPane,C=l.default.div.withConfig({displayName:"ViewTrainTaskPage__ModelServiceDetailWrapper",componentId:"sc-193o06l-0"})(["width:100%;min-height:500px;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-nav-scroll{display:flex;}.ant-tabs-tab{font-size:16px;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-active{min-height:400px;}}.service__tabs-wrapper{margin-top:20px;}.ant-tabs-content{margin-top:24px;}"]),j=l.default.div.withConfig({displayName:"ViewTrainTaskPage__TabContent",componentId:"sc-193o06l-1"})(["background:#fff;min-height:500px;width:100%;"]),S=(0,n.default)(m.LoadingIndicator,{}),I=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){n.fetBasicInfo()},n.fetBasicInfo=function(){n.setState({baseInfoLoading:!0}),y.default.getTrainTaskInfo(n.state.taskId).then((function(e){n.setState({baseInfo:e.data,refreshing:!1,baseInfoLoading:!1})})).catch((function(){n.setState({refreshing:!1,baseInfoLoading:!1})}))},n.onChange=function(e){var t=n.state.baseInfo;(0,c.navigateTo)({pathname:v.trainTaskUrl.detail(t.taskId,e),state:{unScrollToTop:!0}}),n.setState({activeTab:e})},n.handleRefresh=function(e){e&&n.setState({refreshing:!0}),n.fetchData()},n.state={baseInfoLoading:!1,refreshing:!1,taskId:_.get(a.match.params,"taskId",""),activeTab:_.get(a.match.params,"activeTab","invocation"),baseInfo:null},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.activeTab,a=e.baseInfo,o=e.baseInfoLoading,s=e.refreshing;return(0,n.default)(C,{},void 0,o&&S,!o&&a&&(0,n.default)("div",{},void 0,(0,n.default)(p.default,{baseInfo:a,baseInfoLoading:o,refreshing:s,onRefresh:this.handleRefresh}),(0,n.default)("div",{className:"service__tabs-wrapper"},void 0,(0,n.default)(i.default,{onChange:this.onChange,activeKey:t,className:"modelApply-tabs"},void 0,(0,n.default)(x,{tab:"\u4efb\u52a1\u6267\u884c"},"invocation",(0,n.default)(j,{},void 0,"invocation"===t&&(0,n.default)(g.default,{deployEnv:a.deployEnv,taskId:a.taskId,refreshing:s,baseInfo:a}))),(0,n.default)(x,{tab:"\u914d\u7f6e\u4fe1\u606f"},"config",(0,n.default)(j,{},void 0,"config"===t&&(0,n.default)(f.default,{baseInfo:a}))),(0,n.default)(x,{tab:"\u4e3b\u8981\u4e8b\u4ef6"},"process",(0,n.default)(j,{},void 0,"process"===t&&(0,n.default)(h.default,{serviceLogType:"guide-train",taskId:_.get(a,"taskId"),refreshing:s})))))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(I)},"./src/module/modelGuide/trainTask/viewPage/components/AvailableQuota.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.renderGpu=void 0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),o(a("./node_modules/prop-types/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"AvailableQuota__PageWrapper",componentId:"z84ir-0"})(["display:flex;margin-bottom:8px;border-bottom:1px solid #e8e8e8;color:#147bd1;.page-title{margin:0 16px 0 36px;}.span__wrapper{display:flex;&:not(:last-child){margin-right:24px;}&.last-child{margin-right:0;}}"]),r=t.renderGpu=function(e){return!Array.isArray(e)||0===e.length||_.every(e,{gpuNumber:0})?0:e.map((function(e){return e.gpuModelId&&e.gpuNumber>0&&(0,n.default)("span",{style:{marginRight:16}},e.gpuModelId,e.gpuNumber,"*",e.gpuModelName)}))},i=(0,n.default)("span",{className:"page-title"},void 0,"\u5269\u4f59:"),d=(0,n.default)("span",{className:"span__label"},void 0,"CPU\uff1a"),l=(0,n.default)("span",{className:"span__label"},void 0,"\u5185\u5b58\uff1a"),u=(0,n.default)("span",{className:"span__label"},void 0,"GPU\uff1a");t.default=function(e){var t=e.quotaInfo,a=_.get(t,"gpu",[])||[];return(0,n.default)(s,{},void 0,i,(0,n.default)("span",{className:"span__wrapper"},void 0,d,(0,n.default)("span",{className:"span__item"},void 0,_.get(t,"cpu",0),"C")),(0,n.default)("span",{className:"span__wrapper"},void 0,l,(0,n.default)("span",{className:"span__item"},void 0,_.get(t,"memory",0),"GB")),(0,n.default)("span",{className:"span__wrapper last-child"},void 0,u,(0,n.default)("span",{className:"span__item",style:{display:"flex",flexWrap:"wrap"}},void 0,r(a))))}},"./src/module/modelGuide/trainTask/viewPage/components/HandlePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.EditManagePageDom=t.ComputingResourceDom=void 0;var n=x(a("./node_modules/antd/es/button/index.js")),o=x(a("./node_modules/antd/es/modal/index.js")),s=x(a("./node_modules/antd/es/message/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/antd/es/notification/index.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js");var c=x(a("./node_modules/react/index.js")),p=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=x(a("./node_modules/lodash/lodash.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),g=x(a("./src/module/modelGuide/trainTask/editPage/component/ReleaseModel.jsx")),v=x(a("./src/module/modelGuide/trainTask/viewPage/components/ParamsFormRender.jsx")),_=x(a("./src/module/modelService/createPage/ComputingResource.jsx")),y=x(a("./src/redux/services/trainTask.js")),b=a("./src/module/modelGuide/trainTask/modelEnums.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=t.ComputingResourceDom=p.default.div.withConfig({displayName:"HandlePage__ComputingResourceDom",componentId:"sc-1a029qm-0"})([".ant-legacy-form-item-label{width:100px;}.ant-radio-wrapper{vertical-align:top;line-height:40px;}"]),j=t.EditManagePageDom=p.default.div.withConfig({displayName:"HandlePage__EditManagePageDom",componentId:"sc-1a029qm-1"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.ant-row{line-height:40px;display:flex;}"]),S=t.ConfigButtonDom=p.default.div.withConfig({displayName:"HandlePage__ConfigButtonDom",componentId:"sc-1a029qm-2"})(["text-align:right;line-height:70px;padding-right:50px;"]),I=t.ErrorUl=p.default.ul.withConfig({displayName:"HandlePage__ErrorUl",componentId:"sc-1a029qm-3"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;"]),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.savaOrSubmit=function(){var e={},t={};if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(f.default.isFunction(o)){var s=o.call();s.validate?e[a]=s.moduleData:t[a]=s.errorMsg}})),"{}"!==JSON.stringify(t)){var a=n.errorDom(t);i.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:a,icon:(0,r.default)(m.FrownOutlined,{style:{color:"#f5222d"}})})}else{for(var o in e)"computingResource"===o?n.moduleData.resQuotaConf=e[o]:n.moduleData=f.default.assign(n.moduleData,e[o]);n.setState({modalVisible:!0})}},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),"edit"===n.props.optBtnKey?(delete n.moduleData.runParam,delete n.moduleData.modelPublishInfo,n.moduleData.replicaCnt=n.moduleData.resQuotaConf.instances_min,delete n.moduleData.resQuotaConf.instances_min,y.default.configChange(n.state.trainTaskInfo.taskId,n.moduleData).then((function(e){e&&(n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}),s.default.success(e.message),n.props.onClose("refresh"))})).catch((function(e){n.setState({confirmLoading:!1,modalTxt:"\u53d8\u66f4\u51fa\u9519"}),s.default.error(e.message)}))):(delete n.moduleData.resQuotaConf,y.default.executeTask(n.state.trainTaskInfo.taskId,n.moduleData).then((function(e){e&&(n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}),s.default.success(e.message),n.props.onClose("refresh"))})).catch((function(e){n.setState({confirmLoading:!1,modalTxt:"\u6267\u884c\u51fa\u9519"}),s.default.error(e.message)})))},n.errorDom=function(e){return(0,r.default)(I,{},void 0,Object.keys(e).map((function(t){return(0,r.default)("li",{},t,e[t])})))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){n.props.onClose()},n.templateId=f.default.get(a.trainTaskInfo,"templateId",null),n.templateName=f.default.get(a.trainTaskInfo,"templateName",null),n.versionsId=f.default.get(a.trainTaskInfo,"versionsId",null),n.versionsName=f.default.get(a.trainTaskInfo,"versionsName",null),n.taskId=f.default.get(a.trainTaskInfo,"taskId",null),n.state={trainTaskInfo:a.trainTaskInfo,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,loading:!1,confirmLoading:!1,applicationId:f.default.get(a.trainTaskInfo,"applicationId"),result:!1},n.moduleData={},n.validateFuncs={},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.trainTaskInfo,s=t.confirmLoading,i=t.modalVisible,d=t.modalTxt,l=f.default.get(a,"resQuotaConf",{cpu:2,memory:4});return(0,r.default)(j,{},void 0,(0,r.default)(o.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:i,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:s,onCancel:this.submitModalCancel},void 0,(0,r.default)("p",{},void 0,d)),"edit"===this.props.optBtnKey&&(0,r.default)(C,{},void 0,(0,r.default)(_.default,{instancesMinShow:!1,pubEnvType:b.ENV,canModify:"view"!==this.viewType,requestQuota:l,setValidateFunc:this.setValidateFunc,noResidueCheck:!0,source:"GUIDE_TRAIN",title:"\u914d\u7f6e\u8ba1\u7b97\u8d44\u6e90"})),"start"===this.props.optBtnKey&&(0,r.default)("div",{},void 0,(0,r.default)(v.default,{setValidateFunc:this.setValidateFunc,viewType:this.viewType,trainTaskInfo:a}),(0,r.default)(g.default,{setValidateFunc:this.setValidateFunc,viewType:this.viewType,applicationId:this.state.applicationId,trainTaskInfo:a})),(0,r.default)(S,{},void 0,(0,r.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,r.default)(n.default,{onClick:function(){return e.savaOrSubmit(!1)},type:"primary",loading:s,disabled:!this.state.result,style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u786e\u5b9a")))},t}(c.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(T)},"./src/module/modelGuide/trainTask/viewPage/components/ParamsFormRender.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ParamsFormRenderDom=void 0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/extends.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js")),d=f(a("./node_modules/react/index.js")),l=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/components/index.js"),p=f(a("./node_modules/form-render/lib/antd.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=t.ParamsFormRenderDom=l.default.div.withConfig({displayName:"ParamsFormRender__ParamsFormRenderDom",componentId:"sc-18wl8or-0"})([".fr-wrapper .fr-label-title{display:-ms-inline-flexbox;display:inline-flex;color:#333;min-height:22px;line-height:22px;font-size:12px;}.fr-wrapper .fr-map{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-21px;}"]),h=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.setFormData=function(e,t){var a=(0,o.default)({},n.state.modelData);a[t.key].data=e,n.setState({modelData:a})},n.validateFun=function(){var e={algParams:"\u7b97\u6cd5\u53c2\u6570",dsParams:"\u8f93\u5165\u53c2\u6570",trainOutput:"\u8f93\u51fa\u53c2\u6570"},t=!0,a="";for(var o in n.state.modelData){var s=n.state.modelData[o].data.dataSource?n.state.modelData[o].data.dataSource:n.state.modelData[o].data;if(n.isParamsNull(o)&&(!s||"{}"===JSON.stringify(s))){t=!1,a="\u8bf7\u6b63\u786e\u586b\u5199"+e[o]+"\u5185\u5bb9";break}for(var r in s)if(!s[r]||"{}"===JSON.stringify(s[r])){t=!1,a="\u8bf7\u6b63\u786e\u586b\u5199"+e[o]+"\u5185\u5bb9";break}}return t?{validate:!0,moduleData:{runParam:n.state.modelData}}:{validate:!1,errorMsg:a}},n.isParamsNull=function(e){var t=!0,a=n.state.modelData[e]&&n.state.modelData[e].data;return a&&"{}"!==JSON.stringify(a)||(t=!1),t},n.state={modelData:_.get(a,"trainTaskInfo.runParam")};var i=n.props.setValidateFunc;return _.isFunction(i)&&i("paramsFormRender",n.validateFun),n.paramsKey=[{name:"\u7b97\u6cd5\u53c2\u6570",key:"algParams"},{name:"\u8f93\u5165\u53c2\u6570",key:"dsParams"},{name:"\u8f93\u51fa\u53c2\u6570",key:"trainOutput"}],n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.modelData,a=this.props.readOnly;return(0,n.default)(m,{},void 0,t&&this.paramsKey.map((function(o){return e.isParamsNull(o.key)&&(0,n.default)(c.ModelConfigPanel,{title:""+o.name},o.key,(0,n.default)(p.default,{onChange:function(t){e.setFormData(t,o)},displayType:"row",showDescIcon:!0,labelWidth:120,column:2,readOnly:a||!1,widgets:{DataSourceSelect:c.DataSourceSelect},formData:_.get(e.state.modelData,o.key+".data"),schema:t[o.key].schema}))})))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(h)},"./src/module/modelGuide/trainTask/viewPage/components/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/date-picker/index.js")),d=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/date-picker/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=m(a("./node_modules/react/index.js")),u=m(a("./node_modules/dayjs/dayjs.min.js")),c=(m(a("./node_modules/prop-types/index.js")),a("./src/module/modelGuide/trainTask/modelEnums.js")),p=a("./src/styles/GlobalStyle.js"),f=m(a("./node_modules/moment/moment.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=d.default.Option,g=i.default.RangePicker,v=c.SERVICE_INVOCATION_STATUS.getValueAndDescList(),_=(0,n.default)(h,{value:""},void 0,"\u5168\u90e8\u72b6\u6001"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSearchCond=function(e,t){var a={};"dates"===e?(a.runBeginAt=t[0]?(0,u.default)(t[0]).format("YYYY-MM-DD HH:mm:ss"):void 0,a.runEndAt=t[1]?(0,u.default)(t[1]).format("YYYY-MM-DD HH:mm:ss"):void 0):a[e]=t,n.props.onChange(a)},n.disabledDate=function(e){return e-1>(0,f.default)().endOf("day")},n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(p.SearchBarWrapper,{style:{float:"right",width:"50%"},className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,"\u65f6\u95f4\u8303\u56f4\uff1a",(0,n.default)(g,{style:{width:240},onOk:function(t){return e.changeSearchCond("dates",t)},onChange:function(t){return 0===t.length?e.changeSearchCond("dates",t):null},disabledDate:this.disabledDate,showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})),(0,n.default)("span",{},void 0,(0,n.default)(d.default,{defaultValue:this.props.searchCond.status,onChange:function(t){return e.changeSearchCond("runStatus",t)},placeholder:"\u72b6\u6001",className:"item-cond",style:{width:100}},void 0,_,v.map((function(e){return(0,n.default)(h,{value:e.code},e.code,e.desc)})))))},t}(l.default.Component);t.default=y},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/JobConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/form/style/index.js");u(a("./node_modules/react/index.js")),u(a("./node_modules/prop-types/index.js"));var s=u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),r=u(a("./src/module/modelGuide/trainTask/viewPage/components/ParamsFormRender.jsx")),i=u(a("./src/module/modelGuide/trainTask/editPage/initTemplateTask/AlgParams.jsx")),d=a("./src/components/index.js"),l=a("./src/module/modelGuide/utils.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=o.default.Item,p=s.default.div.withConfig({displayName:"JobConfig__PageWrapper",componentId:"sc-1dpquep-0"})([".ant-form-horizontal .ant-form-item-label{width:100px;.ant-select-disabled.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{color:#000;background:#fff;}}"]);t.default=function(e){var t=e.templateType,a=e.jobInfo,s="true"===_.get(a,"modelPublishInfo.autoPublish");return(0,n.default)(p,{},void 0,(0,n.default)(r.default,{trainTaskInfo:a,readOnly:!0}),t?(0,n.default)(i.default,{actionType:"view",dataSource:_.get(a,"runParam.dsParams.data.dataSource"),templateType:t,algParams:(0,l.parseAlgParams)(_.get(a,"trainingParams",{})||{},t)}):null,(0,n.default)(d.ModelConfigPanel,{title:"\u81ea\u52a8\u53d1\u5e03"},void 0,(0,n.default)(o.default,{name:"basic",layout:"inline"},void 0,(0,n.default)(c,{label:"\u81ea\u52a8\u53d1\u5e03",name:"autoPublish"},void 0,s?"\u662f":"\u5426"),s&&(0,n.default)(c,{label:"\u6a21\u578b\u540d\u79f0",name:"modelName",style:{marginLeft:150}},void 0,_.get(a,"modelPublishInfo.modelName")))))}},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/JobDetailPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var s=a("./node_modules/react/index.js"),r=v(s),i=v(a("./node_modules/lodash/lodash.js")),d=(v(a("./node_modules/prop-types/index.js")),v(a("./src/redux/services/trainTask.js"))),l=a("./src/styles/GlobalStyle.js"),u=v(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/JobConfig.jsx")),c=a("./src/routes/routeHelper.jsx"),p=v(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainProcess/ModelTrainProcessPage.jsx")),f=v(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainResult/ModelTrainResultPage.jsx")),m=a("./src/utils/history.js"),h=a("./src/components/index.js"),g=a("./src/module/modelGuide/modelEnums.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=o.default.TabPane,y=(0,n.default)(h.LoadingIndicator,{position:"relative"});t.default=function(e){var t=i.default.get(e.match.params,"taskId",""),a=i.default.get(e.match.params,"jobId",""),h=i.default.get(e.match.params,"activeTab","config"),v=i.default.get(e.match.params,"taskType"),b=(0,s.useState)(h),x=b[0],C=b[1],j=(0,s.useState)({}),S=j[0],I=j[1],T=(0,s.useState)(),w=T[0],E=T[1],D=(0,s.useState)(!0),M=D[0],k=D[1],P=(0,s.useState)(),L=P[0],N=P[1];(0,s.useEffect)((function(){A()}),[t]),(0,s.useEffect)((function(){R()}),[a]);var A=function(){d.default.getTrainTaskInfo(t).then((function(e){I(e.data)}))},R=function(){k(!0),d.default.getTaskJobInfo(a).then((function(e){E(e.data),N(Number(i.default.get(e,"data.templateType",L))),k(!1)})).catch((function(e){throw k(!1),e}))};return(0,n.default)(l.PageWrapper,{},void 0,(0,n.default)("div",{style:{marginBottom:24}},void 0,i.default.get(S,"taskName"),"\uff08",t,"\uff09"),M?(0,n.default)("div",{style:{height:100}},void 0,y):(0,n.default)(o.default,{activeKey:x,onChange:function(e){C(e),(0,m.navigateTo)(c.trainTaskUrl.jobDetail(t,a,e,v))}},void 0,(0,n.default)(_,{tab:"\u8bad\u7ec3\u914d\u7f6e",style:{marginRight:0}},"config",(0,n.default)(u.default,{taskInfo:S,jobInfo:w,templateType:L})),v&&![g.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"],g.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"],g.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"]].includes(Number(v))&&(0,n.default)(r.default.Fragment,{},void 0,(0,n.default)(_,{tab:"\u8bad\u7ec3\u8fc7\u7a0b"},"process",(0,n.default)(p.default,{jobId:a,taskInfo:S,jobInfo:w})),(0,n.default)(_,{tab:"\u8bad\u7ec3\u7ed3\u679c"},"result",(0,n.default)(f.default,{taskId:t,jobId:a,taskInfo:S,jobInfo:w})))))}},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainProcess/ModelTrainLogPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./src/components/index.js"),u=c(a("./src/redux/services/trainTask.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.div.withConfig({displayName:"ModelTrainLogPage__Logs",componentId:"sc-809cmc-0"})(["height:500px;overflow:auto;p{margin:0;overflow:hidden;span{padding:5px;&.log-time{width:130px;padding-left:0;color:RGBA(0,137,2,1);}&.log-level{width:35px;color:RGBA(83,135,208,1);}&.log-message{color:RGBA(225,229,230,1);word-wrap:break-all;}&.log-ERROR{&.log-message,&.log-level{color:RGBA(246,124,113,1);}}&.log-WARN{&.log-message,&.log-level{color:RGBA(193,176,30,1);}}}}"]),f=(0,n.default)(l.LoadingIndicator,{}),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({loading:!0}),u.default.getTaskJobLog(n.props.jobId).then((function(e){n.setState({trainLog:e.data,loading:!1})})).catch((function(e){throw n.setState({loading:!1}),e}))},n.state={trainLog:[],loading:!1},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.loading,a=e.trainLog;return t?f:(0,n.default)(p,{},void 0,a&&a.map((function(e,t){var a=e.time,o=e.level,s=e.msg;return(0,n.default)("p",{className:"log-"+o},t,(0,n.default)("span",{className:"log-time"},void 0,a),(0,n.default)("span",{className:"log-level"},void 0,o),(0,n.default)("span",{className:"log-msg"},void 0,s))})))},t}(i.default.PureComponent);t.default=m},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainProcess/ModelTrainProcessPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainProcess/components/ModelTrainProcess.jsx"))),l=a("./src/components/index.js"),u=c(a("./src/redux/services/trainTask.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=(0,n.default)(l.LoadingIndicator,{}),f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){n.state.refresh||n.setState({loading:!0}),u.default.getTaskJobProcess(n.props.jobId).then((function(e){var t=e.data||[];n.setState({processData:t,loading:!1,refresh:!0}),"0"===_.get(t,"["+(t.length-1)+"].status")||"6"===_.get(t,"["+(t.length-1)+"].stageId")&&"1"===_.get(t,"["+(t.length-1)+"].status")||setTimeout(n.fetchData,1e4)})).catch((function(e){throw n.setState({loading:!1}),e}))},n.state={processData:[],loading:!1,refresh:!1,refreshing:!1},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){return this.state.loading?p:(0,n.default)(d.default,{jobId:this.props.jobId,taskInfo:this.props.taskInfo,processData:this.state.processData})},t}(i.default.PureComponent);t.default=f},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainProcess/components/ModelTrainProcess.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/modal/index.js")),o=x(a("./node_modules/babel-runtime/helpers/extends.js")),s=x(a("./node_modules/antd/es/timeline/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/timeline/style/index.js");var u=a("./node_modules/react/index.js"),c=x(u),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/polished/dist/polished.es.js"),m=a("./src/utils/dateUtil.js"),h=a("./src/utils/publicPath.js"),g=x(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainProcess/components/ProcessTimeLineItem.jsx")),v=a("./src/utils/authPermit.js"),y=x(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainProcess/ModelTrainLogPage.jsx")),b=x(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/FeatureSelectViewPage.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=p.default.div.withConfig({displayName:"ModelTrainProcess__LogBox",componentId:"kf1lkm-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;"]),j=p.default.div.withConfig({displayName:"ModelTrainProcess__ModelInfoPanel",componentId:"kf1lkm-1"})(["display:flex;flex-direction:row;justify-content:flex-end;padding:10px 0 20px 0;span{&._major{font-size:14px;}&._minor{color:#bfbfbf;margin-left:10px;}}"]),S=p.default.ul.withConfig({displayName:"ModelTrainProcess__TimelineHeader",componentId:"kf1lkm-2"})(["",";background:#f5f6f9;border-radius:4px;list-style:none;margin:0;padding:0;display:flex;flex-direction:row;li{height:40px;line-height:40px;float:left;font-size:16px;color:#1f2d3d;letter-spacing:1px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.head-stage{padding-left:10px;flex:1;}.head-duration,.head-operate{flex:0 0 150px;text-align:center;}"],(0,f.clearFix)()),I=[{stageId:"1",stageName:"\u63d0\u53d6\u6570\u636e"},{stageId:"2",stageName:"\u51c6\u5907\u6570\u636e"},{stageId:"4",stageName:"\u63d0\u4ea4\u6a21\u578b"},{stageId:"7",stageName:"\u6570\u636e\u9884\u5904\u7406"},{stageId:"5",stageName:"\u8bad\u7ec3\u6a21\u578b"},{stageId:"6",stageName:"\u89e3\u6790\u7ed3\u679c"},{stageId:"FINISH",stageName:"\u8bad\u7ec3\u5b8c\u6210"}],T={padding:"20px 0 0 20px"},w=(0,r.default)(S,{},void 0,(0,r.default)("li",{className:"head-stage"},void 0,"\u91cc\u7a0b\u7891\u8fc7\u7a0b"),(0,r.default)("li",{className:"head-duration"},void 0,"\u8017\u65f6"),(0,r.default)("li",{className:"head-duration"},void 0,"\u72b6\u6001"),(0,r.default)("li",{className:"head-operate"})),E=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.showTrainLog=function(){n.showModal("\u6a21\u578b\u8bad\u7ec3\u65e5\u5fd7","","SHOW_LOG")},n.hideModal=function(){n.modalData={modalType:"",modalTitle:"",modalContent:""},n.setState({modalVisible:!1})},n.showModal=function(e,t,a){n.modalData={modalType:a,modalTitle:e,modalContent:t},n.setState({modalVisible:!0})},n.exportLog=function(){var e=_.get(n.props.processData,"[0].taskId","--");window.location.href=(0,h.urlFormat)("/api/trainTasks/"+e+"/actions/exportLog?token="+encodeURI((0,v.getToken)()))},n.state={modalVisible:!1},n.modalData={modalType:"",modalTitle:"",modalContent:""},n}return(0,l.default)(t,e),t.prototype.renderModelInfo=function(e){return(0,r.default)(j,{},void 0,(0,r.default)("span",{className:"_minor"},void 0,"\u4efb\u52a1ID: ",e))},t.prototype.renderProcessHead=function(){return w},t.prototype.renderProcessTimeline=function(e,t,a){var n=this,i=_.keyBy(this.props.processData,"stageId")||{},d=i[6],l={1:"processed",2:"processing",0:"error"};return(0,r.default)(s.default,{style:T},void 0,I.map((function(s){var u=s.stageId,c=s.stageName,p=i[u]||{},f=p.status,h=p.stageBar,v=p.startTime,y=p.endTime,b=p.errInfo,x=p.subStages,C=_.isUndefined(f)?"waiting":l[f+""];"FINISH"===u&&d&&d.status+""==="1"&&(C="finish");var j=h,S=(0,m.calcRelativeTime)(v,y);return(0,r.default)(g.default,{taskId:e,jobId:t,taskName:a,stageData:{stageId:u,stageName:c,startTime:v,stageStatus:C,progress:j,duration:S,errInfo:b,subStages:x},operate:(0,o.default)({},"waiting"!==C&&{5:"\u67e5\u770b\u65e5\u5fd7",7:"\u67e5\u770b\u65e5\u5fd7"})[u],operateFunc:{5:n.showTrainLog,7:n.showTrainLog,FINISH:n.showTrainReport}[u],showModal:n.showModal},s.stageId)})))},t.prototype.render=function(){var e=this.props,t=e.jobId,a=e.taskInfo,o=e.processData,s=a||{},i=s.taskId,d=s.taskName;return(0,r.default)(c.default.Fragment,{},void 0,this.renderProcessHead(),o.length>0?this.renderProcessTimeline(i,t,d):(0,r.default)("span",{style:{fontSize:14,padding:10}},void 0,"\u6a21\u578b\u7b49\u5f85\u8bad\u7ec3\u4e2d....."),(0,r.default)(n.default,{title:this.modalData.modalTitle,style:{top:20},visible:this.state.modalVisible,maskClosable:!0,cancelText:"\u5173\u95ed",centered:!0,width:800,onCancel:this.hideModal,footer:null},void 0,"SHOW_LOG"===this.modalData.modalType&&(0,r.default)(C,{},void 0,(0,r.default)(y.default,{jobId:t})),"SHOW_ERROR"===this.modalData.modalType&&(0,r.default)(C,{},void 0,this.modalData.modalContent," "),"SHOW_FEATURE_RESULT"===this.modalData.modalType&&(0,r.default)(b.default,{taskId:i,jobId:t,arithId:this.modalData.modalContent})))},t}(u.Component);t.default=E},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainProcess/components/ProcessTimeLineItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/button/index.js")),o=m(a("./node_modules/babel-runtime/helpers/jsx.js")),s=m(a("./node_modules/antd/es/timeline/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/timeline/style/index.js");var r=m(a("./node_modules/react/index.js")),i=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),d=a("./node_modules/polished/dist/polished.es.js"),l=a("./node_modules/@ant-design/compatible/es/index.js"),u=a("./src/utils/dateUtil.js"),c=a("./node_modules/react-router-dom/esm/react-router-dom.js"),p=a("./src/routes/routeHelper.jsx"),f=m(a("./node_modules/dayjs/dayjs.min.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=(0,i.default)(s.default.Item).withConfig({displayName:"ProcessTimeLineItem__TimeLineItem",componentId:"o1hxsy-0"})(["",";.ant-timeline-item-content{padding-bottom:10px;}h1{font-size:14px;color:#475669;font-weight:600;padding-left:5px;display:flex;flex-direction:row;justify-content:space-between;._duration,._beginTime{color:#d6dde6;font-weight:normal;margin-left:10px;}._stateOperate{margin-right:35px;font-size:12px;font-weight:normal;color:#1890ff;cursor:pointer;&:hover{color:#40a9ff;}}}.process-info{",";list-style:none;margin:0 10px;padding:0;display:flex;flex-direction:row;&:last-child{margin-bottom:20px;}li{float:left;line-height:40px;border-bottom:1px solid #dfe0e1;padding-left:20px;&.process-message{width:50%;flex:1;}&.process-duration,&.process-status,&.process-operate{flex:0 0 150px;text-align:center;.operate-link-error{color:#fb6362;cursor:pointer;&:hover{color:#ffab91;}}.operate-link{color:#1890ff;cursor:pointer;&:hover{color:#40a9ff;}}}}}.process-error{li{&.process-status,&.process-operate{color:#fb6362;i{margin-left:5px;}}}}.repeat-icon{display:flex;padding:5px;border-radius:12px;background:#47b2fb;}.ant-divider-horizontal{margin:15px 0;}.ant-timeline-item-tail{border-left:2px solid #bce3fd;}&.status-processed .ant-timeline-item-tail{border-left:1px solid #bce3fd;}&.status-finish .ant-timeline-item-tail,&.finish-timeline .ant-timeline-item-tail{visibility:hidden;}&.status-waiting .ant-timeline-item-tail,&.status-error .ant-timeline-item-tail,&.status-processing .ant-timeline-item-tail{border-left:1px solid #f2f4f8;}&.status-waiting .ant-timeline-item-content h1{color:#d6dde6;}&.status-processing .ant-timeline-item-content h1{color:#1890ff;}&.status-error .ant-timeline-item-content h1{color:#fb6362;}"],(0,d.clearFix)(),(0,d.clearFix)()),g={waiting:{icon:"clock-circle-o",style:{color:"#D6DDE6",fontSize:"14px"}},processing:{icon:"sync",style:{color:"#fff",fontSize:"14px"}},error:{icon:"exclamation-circle",style:{color:"#FB6362",fontSize:"18px"}},processed:{icon:"check-circle",style:{color:"#98D4FD",fontSize:"14px"}},finish:{icon:"check-circle",style:{color:"#00CF9B",fontSize:"24px"}}},v={waiting:"\u7b49\u5f85\u4e2d",processing:"\u8fd0\u884c\u4e2d",error:"\u8fd0\u884c\u51fa\u9519",processed:"\u5df2\u5b8c\u6210"},y=function(e){var t=g[e];return"processing"===e?(0,o.default)("div",{className:"repeat-icon"},void 0,(0,o.default)(l.Icon,{type:t.icon,spin:!0,style:t.style})):(0,o.default)(l.Icon,{type:t.icon,style:t.style})},b=(0,o.default)("i",{className:"anticon anticon-exclamation-circle"});t.default=function(e){var t=e.stageData,a=void 0===t?{}:t,s=e.operate,i=e.operateFunc,d=void 0===i?_.noop:i,l=e.showModal,m=void 0===l?_.noop:l,g=e.taskId,x=e.modelId,C=e.modelName,j=a||{},S=j.stageStatus,I=j.startTime,T=j.stageName,w=j.duration,E=j.stageId,D=j.subStages,M="\u8bc4\u4f30\u62a5\u544a:"+C+"}",k=I?(0,f.default)(I).format("YYYY MM-DD HH:mm:ss"):"--";return(0,o.default)(h,{dot:y(S),className:"status-"+S+" "+("FINISH"===E?"finish-timeline":""),style:{padding:0}},void 0,(0,o.default)("h1",{},void 0,(0,o.default)("div",{className:"_stageTitle"},void 0,"FINISH"===E?(0,o.default)("span",{},void 0,T):(0,o.default)(r.default.Fragment,{},void 0,(0,o.default)("span",{},void 0,T),(0,o.default)("span",{},void 0,"\uff08 ",v[S]," \uff09"),(0,o.default)("span",{className:"_beginTime"},void 0,"\u5f00\u59cb\u65f6\u95f4:"+(k||"--")),("processed"===S||"error"===S)&&(0,o.default)("span",{className:"_duration"},void 0,"\u8017\u65f6:"+(w||"--")))),s&&(0,o.default)("div",{className:"_stateOperate"},void 0,"\u67e5\u770b\u62a5\u544a"===s?(0,o.default)(c.Link,{to:{pathname:p.modelTrainUrl.viewTrainReport(x,g,"RECOMMEND",M)},target:"_blank"},void 0,(0,o.default)(n.default,{type:"primary",size:"small"},void 0,"\xa0\xa0",s,"\xa0\xa0")):(0,o.default)(n.default,{type:"primary",size:"small",onClick:d},void 0,"\xa0\xa0",s,"\xa0\xa0"))),"FINISH"!==E&&D&&D.map((function(e){var t=e.status,a=e.errInfo,n=e.message,s=e.id,r=e.startTime,i=e.endTime,d=e.operateType,l=(0,u.calcRelativeTime)(r,i);return(0,o.default)("ul",{className:"process-info "+(t+""==="0"?"process-error":"")},s,(0,o.default)("li",{className:"process-message"},void 0,n),(0,o.default)("li",{className:"process-duration"},void 0,l),(0,o.default)("li",{className:"process-status"},void 0,{1:"\u6210\u529f",2:"\u8fd0\u884c\u4e2d",0:"\u5931\u8d25"}[t+""],t+""==="0"&&b),(0,o.default)("li",{className:"process-operate"},void 0,t+""==="0"&&(0,o.default)("span",{className:"operate-link-error",href:"javascript:;",onClick:function(){return m("\u9519\u8bef\u4fe1\u606f",a,"SHOW_ERROR")}},void 0,"\u67e5\u770b\u539f\u56e0"),d&&""!==d&&(0,o.default)("span",{className:"operate-link",href:"javascript:;",onClick:function(){return m("\u67e5\u770b\u7279\u5f81\u7b5b\u9009\u7ed3\u679c",d,"SHOW_FEATURE_RESULT")}},void 0,"\u67e5\u770b\u7ed3\u679c")))})))}},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/FeatureSelectView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/SimpleTable.jsx"))),l=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/Section.jsx")),u=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/Chart.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this.props.extraData||{},t=e.feature_influence,a=e.feature_corr;return(0,n.default)(i.default.Fragment,{},void 0,(0,n.default)(l.default,{title:"\u7279\u5f81\u53d8\u91cf\u76f8\u5173\u5206\u6790(CORR)"},void 0,(0,n.default)(u.default,{data:a||{}})),(0,n.default)(l.default,{title:"\u6307\u6807\u5f71\u54cd\u7a0b\u5ea6"},void 0,(0,n.default)(d.default,{data:t||{}})))},t}(i.default.PureComponent);t.default=p},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/FeatureSelectViewPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/FeatureSelectView.jsx"))),l=a("./src/components/index.js"),u=c(a("./src/redux/services/trainTask.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=(0,n.default)(l.LoadingIndicator,{}),f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({loading:!0}),u.default.getTaskJobLogResult(n.props.jobId,n.props.arithId).then((function(e){n.setState({reportData:e.data,loading:!1})})).catch((function(e){throw n.setState({loading:!1}),e}))},n.state={loading:!1,reportData:{}},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.reportData,a=e.loading,o=t.extraData;return a?(0,n.default)("div",{style:{height:500}},void 0,p):(0,n.default)(d.default,{extraData:o})},t}(i.default.PureComponent);t.default=f},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/ModelTrainReportPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/extends.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js")),d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/TrainReport.jsx"))),u=a("./src/components/index.js"),c=p(a("./src/redux/services/trainTask.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,n.default)(u.LoadingIndicator,{}),m=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.fetchTaskInfoData=function(){c.default.getTrainTaskInfo(n.taskId).then((function(e){n.setState({taskName:_.get(e,"data.taskName")})}))},n.fetchData=function(){n.setState({loading:!0}),c.default.getTaskJobLogResult(n.jobId,n.arithId).then((function(e){n.setState({modelReportData:e.data,loading:!1})})).catch((function(e){throw n.setState({loading:!1}),e}))},n.state={loading:!1,taskName:"",modelReportData:{}},n.taskId=_.get(a.match.params,"taskId",""),n.jobId=_.get(a.match.params,"jobId",""),n.arithId=_.get(a.match.params,"arithId",""),n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(),this.fetchTaskInfoData()},t.prototype.render=function(){var e=this.state,t=e.loading,a=e.taskName,n=e.modelReportData;return t?f:n&&d.default.createElement(l.default,(0,o.default)({},n,{taskId:this.taskId,taskName:a,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTask\\viewPage\\jobDetailPage\\trainReport\\ModelTrainReportPage.jsx",lineNumber:49}}))},t}(d.default.PureComponent);t.default=m},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/TrainReport.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=a("./node_modules/react/index.js"),l=(g(d),g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/lodash/lodash.js"))),u=a("./src/components/index.js"),c=a("./src/components/exception/index.js"),p=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=g(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/index.js")),m=a("./src/styles/GlobalStyle.js"),h=g(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/layout/index.js"));function g(e){return e&&e.__esModule?e:{default:e}}var v=i.default.TabPane,_=(0,p.default)(m.PageWrapper).withConfig({displayName:"TrainReport__TrainReportWrapper",componentId:"jgmlip-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;}}"]),y=p.default.div.withConfig({displayName:"TrainReport__TrainReportBody",componentId:"jgmlip-1"})(["background:#fff;flex:1 1 auto;display:flex;flex-direction:column;.report-title{font-size:14px;span{float:right;}}"]),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.handleChangeTab=function(e){n.setState({activeTab:e})},n.state={activeTab:"tab-0"},n}return(0,r.default)(t,e),t.prototype.renderReportTitle=function(){var e=this.props,t=e.taskId,a=e.taskName,o=e.reportInfo,s=(a||"")+"\uff08"+t+"\uff09-"+(l.default.get(o,"arithInfo.arithmeticName")||"")+" - \u8bad\u7ec3\u8bc4\u4f30\u62a5\u544a",r=l.default.get(o,"taskInfo.endTime");return(0,n.default)("h2",{className:"report-title"},void 0,s,(0,n.default)("span",{},void 0,r))},t.prototype.renderTabs=function(){var e=this,t=this.props.reportData;return(0,n.default)(i.default,{onChange:this.handleChangeTab,activeKey:this.state.activeTab,className:"report-tabs"},void 0,t?t.map((function(t,a){return(0,n.default)(v,{tab:t.tab},"tab-"+a,(0,n.default)(c.ErrorBoundary,{},void 0,l.default.get(t,"sections",[]).map((function(t,a){var o=t.title,s=t.desc,r=t.uiType,i=t.result,d=t.subSections,u=t.layout,c=f.default.comp[r],p=null;return l.default.isEmpty(d)?c||console.error("["+o+"] The uiType property configured error"):(p=h.default[u])||console.error("["+o+"] The layout property configured error"),(0,n.default)(f.default,{title:o,desc:s},"section-"+a,!l.default.isEmpty(d)&&(0,n.default)(p,{sections:d}),l.default.isEmpty(d)&&(0,n.default)(c,{data:i,reportInfo:e.props.reportInfo,extraData:e.props.extraData}))}))))})):(0,n.default)(u.Empty,{style:{margin:"200px auto"}}))},t.prototype.render=function(){return(0,n.default)(_,{},void 0,(0,n.default)(y,{},void 0,this.renderReportTitle(),this.renderTabs()))},t}(d.Component);t.default=b},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/layout/TowColumnLayout.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/prop-types/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=r(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"TowColumnLayout__SectionPanel",componentId:"sc-1a58mh0-0"})(["display:flex;flex-direction:row;"]),d=o.default.div.withConfig({displayName:"TowColumnLayout__CardPanel",componentId:"sc-1a58mh0-1"})(["border:1px solid #ccd5e0;border-radius:4px;margin-right:30px;flex:0.5;.card-title{height:40px;background:#f5f6f9;font-size:14px;font-weight:bold;padding:0 10px;color:#475669;align-items:center;display:flex;border-bottom:1px solid #ccd5e0;}.card-content{background:#f9fafc;padding:15px;}"]),l=function(e){var t=e.title,a=e.children;return(0,n.default)(d,{},void 0,(0,n.default)("div",{className:"card-title"},void 0,t),(0,n.default)("div",{className:"card-content"},void 0,a))};t.default=function(e){var t=e.sections;return(0,n.default)(i,{},void 0,t.map((function(e,t){var a=e.title,o=e.uiType,r=e.result,i=s.default.comp[o];return i||console.error("["+a+"] The uiType property configured error"),(0,n.default)(l,{title:a},t,r&&(0,n.default)(i,{data:r}))})))}},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/layout/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/layout/TowColumnLayout.jsx"),s=(n=o)&&n.__esModule?n:{default:n};t.default={TowColumnLayout:s.default}},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/ArithParamTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),o(a("./node_modules/prop-types/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.table.withConfig({displayName:"ArithParamTable__ArithParamGrid",componentId:"ceovjp-0"})(["width:100%;th{background:#e5e9f2;height:40px;font-size:14px;padding:5px 10px;border-collapse:collapse;border-spacing:0;border-right:1px solid #dee2e6;border-left:1px solid #dee2e6;& > a{margin-left:20px;font-size:12px;font-weight:normal;color:#475669;text-decoration:none;&:active,&:visited{text-decoration:none;}&:hover{color:#47b2fb;}}}tbody > tr{&:nth-child(odd){background:#fff;}&:nth-child(even){background:#f9fafc;}}tbody > tr > td{padding:5px 10px;border-left:1px solid #dee2e6;border-right:1px solid #dee2e6;border-bottom:1px solid #dee2e6;height:40px;}"]);t.default=function(e){var t=e.data,a=t.header,o=t.data;return(0,n.default)(s,{},void 0,(0,n.default)("thead",{},void 0,(0,n.default)("tr",{},void 0,a.map((function(e){var t=e.name,a=e.desc;return(0,n.default)("th",{},t,a)})))),(0,n.default)("tbody",{},void 0,o.map((function(e){var t=e.PARAM_KEY,a=e.PARAM_VALUE,o=e.PARAM_DESC;return(0,n.default)("tr",{},t,(0,n.default)("td",{},void 0,t||"--"),(0,n.default)("td",{},void 0,a||"--"),(0,n.default)("td",{},void 0,o||""))}))))}},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/Chart.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/button/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=f(a("./node_modules/react/index.js")),l=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=f(a("./node_modules/react-image/es/index.js")),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./src/utils/authPermit.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=l.default.div.withConfig({displayName:"Chart__ChartBox",componentId:"sc-9ptgcs-0"})(["position:relative;display:flex;align-items:center;justify-content:center;img{width:90%;}"]),h=(0,o.default)(c.ExportOutlined,{}),g=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.updatePng=function(e){var t=e;return t&&(t+=".jpeg"),t},n.onMouseEnter=function(){n.setState({showFuncPanel:!0})},n.onMouseLeave=function(){n.setState({showFuncPanel:!1})},n.down=function(e){window.open(_.get(e,"data[0].imgUrl")+"?token="+(0,p.getToken)())},n.state={showFuncPanel:!0},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.data,s=t.width;return(0,o.default)(m,{width:s},void 0,(0,o.default)(n.default,{onClick:function(){e.down(a)},onMouseEnter:this.onMouseEnter,style:{position:"absolute",right:"3%",top:"0%"},className:"button-item",icon:h,type:"primary",shape:"circle",title:"\u67e5\u770b\u9ad8\u6e05\u56fe"}),(0,o.default)(u.default,{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,src:_.get(a,"data[0].imgUrl")+"?token="+(0,p.getToken)()}))},t}(d.default.Component);t.default=g},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/FeatureTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/modal/index.js")),o=f(a("./node_modules/antd/es/tooltip/index.js")),s=f(a("./node_modules/antd/es/button/index.js")),r=f(a("./node_modules/babel-runtime/helpers/jsx.js")),i=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/button/style/index.js");var u=f(a("./node_modules/react/index.js")),c=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=f(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/FeatureSelectView.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=c.default.table.withConfig({displayName:"FeatureTable__FeatureGrid",componentId:"e6yq5g-0"})(["width:100%;th{background:#e5e9f2;height:40px;font-size:14px;padding:5px 10px;border-collapse:collapse;border-spacing:0;border-right:1px solid #dee2e6;border-left:1px solid #dee2e6;& > a{margin-left:20px;font-size:12px;font-weight:normal;color:#475669;text-decoration:none;&:active,&:visited{text-decoration:none;}&:hover{color:#47b2fb;}}}tbody > tr{&:nth-child(odd){background:#fff;}&:nth-child(even){background:#f9fafc;}}tbody > tr > td{padding:5px 10px;border-left:1px solid #dee2e6;border-right:1px solid #dee2e6;border-bottom:1px solid #dee2e6;height:40px;}"]),h=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.hideFeatureModal=function(){n.setState({modelVisible:!1})},n.showFeatureModal=function(){n.setState({modelVisible:!0})},n.state={modelVisible:!1},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this.props.data.data,t=_.chunk(e,5),a=_.toString(_.get(this.props.reportInfo,"modelInfo.modelTypeId"));return(0,r.default)(u.default.Fragment,{},void 0,(0,r.default)(m,{},void 0,(0,r.default)("thead",{},void 0,(0,r.default)("tr",{},void 0,(0,r.default)("th",{colSpan:5},void 0,"\u5171\u8ba1"+_.size(e)+"\u4e2a\u7279\u5f81\u6307\u6807","1"===a&&(0,r.default)(s.default,{onClick:this.showFeatureModal,type:"dashed",size:"small",style:{marginLeft:10}},void 0,"\u70b9\u51fb\u67e5\u770b\u7279\u5f81\u7b5b\u9009")))),(0,r.default)("tbody",{},void 0,t.map((function(e,t){for(;e.length<5;)e.push({});return(0,r.default)("tr",{},t,e.map((function(e,t){var a=e.KPI_NAME,n=e.KPI_DESC;return(0,r.default)("td",{},t,(0,r.default)(o.default,{title:n&&"-"!==n&&"--"!==n?n:a},void 0,a||"--"))})))})))),this.state.modelVisible&&(0,r.default)(n.default,{visible:this.state.modelVisible,onCancel:this.hideFeatureModal,footer:null,width:1e3,title:"\u67e5\u770b\u7279\u5f81\u7b5b\u9009\u7ed3\u679c"},void 0,(0,r.default)(p.default,{taskId:_.get(this.props.reportInfo,"taskInfo.taskId"),extraData:this.props.extraData})))},t}(u.default.PureComponent);t.default=h},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/File.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./src/utils/constants.js"),u=a("./node_modules/polished/dist/polished.es.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.div.withConfig({displayName:"File__FileDom",componentId:"sc-18oa3c6-0"})(["width:100%;"]),f=d.default.ul.withConfig({displayName:"File__FileUl",componentId:"sc-18oa3c6-1"})(["margin:0;padding:0 15px 0 0;list-style:none;li{display:inline;",";line-height:40px;padding:0 5px;float:left;}"],(0,u.ellipsis)()),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.funDownload=function(e){var t=n.props.data,a=(0,l.wrapServiceUrl)(l.ServicePath.MODELING_SERVICE,t.data&&t.data[0].fileUrl);fetch(a).then((function(t){return t.blob().then((function(t){var a=document.createElement("a"),n=window.URL.createObjectURL(t);a.href=n,a.download=e,a.click(),window.URL.revokeObjectURL(n)}))}))},n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data;return(0,n.default)(p,{},void 0,(0,n.default)(f,{},void 0,t.data&&t.data.map((function(t,a){return(0,n.default)("li",{},a,(0,n.default)("span",{style:{fontWeight:700,fontSize:13}},void 0,"\u6587\u4ef6\u540d\u79f0\uff1a"),(0,n.default)("span",{title:"\u4e0b\u8f7d\u6587\u4ef6",style:{marginLeft:5}},void 0,(0,n.default)("span",{onClick:function(){return e.funDownload(t.fileTitle)},className:"link"},void 0,!t.fileTitle&&t.fileUrl?t.fileUrl:t.fileTitle)))}))))},t}(i.default.Component);t.default=m},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/ModelRuleTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/modal/index.js")),o=b(a("./node_modules/babel-runtime/helpers/extends.js")),s=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=b(a("./node_modules/babel-runtime/helpers/inherits.js")),d=b(a("./node_modules/babel-runtime/helpers/jsx.js")),l=b(a("./node_modules/antd/es/button/index.js")),u=b(a("./node_modules/antd/es/select/index.js")),c="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTask\\viewPage\\jobDetailPage\\trainReport\\section\\ModelRuleTable.jsx";a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=a("./node_modules/react/index.js"),f=b(p),m=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./src/utils/publicPath.js"),g=a("./src/utils/constants.js"),v=b(a("./src/components/auth/funAuth.jsx")),y=a("./src/utils/downLoadFile.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=u.default.Option,C=m.default.div.withConfig({displayName:"ModelRuleTable__ToolPanel",componentId:"sc-1mzpzis-0"})(["margin-bottom:10px;padding:0 30px 5px 5px;span{margin-right:10px;}display:flex;flex-direction:row;justify-content:space-between;"]),j=(0,m.default)(l.default).withConfig({displayName:"ModelRuleTable__GrayButton",componentId:"sc-1mzpzis-1"})(["background:#a2b0c4 !important;color:#fff !important;span{padding:0 5px;}"]),S=m.default.div.withConfig({displayName:"ModelRuleTable__CardPanel",componentId:"sc-1mzpzis-2"})(["border:1px solid #ccd5e0;border-radius:4px;margin-right:30px;flex:0.5;margin-bottom:20px;.card-title{height:40px;background:#f5f6f9;font-size:14px;font-weight:bold;padding:0 10px;color:#475669;align-items:center;display:flex;border-bottom:1px solid #ccd5e0;}.card-content{background:#f9fafc;padding:0 0 10px 20px;}"]),I=m.default.ul.withConfig({displayName:"ModelRuleTable__Rules",componentId:"sc-1mzpzis-3"})(["list-style:none;margin:0 0 5px 0;padding:0;overflow:hidden;li{line-height:25px;height:25px;}"]),T=m.default.ul.withConfig({displayName:"ModelRuleTable__StatIndis",componentId:"sc-1mzpzis-4"})(["width:100%;list-style:none;margin:0;padding:0;display:flex;li{float:left;font-size:12px;color:#475669;width:120px;height:40px;line-height:40px;& > span.label{margin-right:10px;}}"]),w=function(e){var t=e.title,a=e.children;return(0,d.default)(S,{},void 0,(0,d.default)("div",{className:"card-title"},void 0,t),(0,d.default)("div",{className:"card-content"},void 0,a))},E=(0,d.default)("span",{},void 0,"\u6392\u5e8f\u65b9\u5f0f:"),D=(0,d.default)(x,{value:"CONFIDENCE"},void 0,"\u6309\u7f6e\u4fe1\u5ea6"),M=(0,d.default)(x,{value:"TOTAL_NUM"},void 0,"\u6309\u6570\u636e\u6761\u6570"),k=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.hideModal=function(){n.setState({modelVisible:!1})},n.viewAllRules=function(){n.setState({modelVisible:!0})},n.filteRules=function(e){n.setState({sortType:e})},n.downFile=function(e){(0,y.authDownLoadFile)((0,h.urlFormat)("/guide-train-tasks/operations/getrule?taskActionId="+e,g.ServicePath.GUIDE_TRAIN))},n.state={modelVisible:!1,sortType:"CONFIDENCE"},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data,a=t.header,s=t.data;s=s&&_.orderBy(s,[this.state.sortType],["desc"]);var r=_.keyBy(a,"name"),i=_.toString(_.get(this.props.reportInfo,"arithInfo.arithmeticEnName"));return(0,d.default)("div",{},void 0,(0,d.default)(C,{},void 0,(0,d.default)("div",{},void 0,E,(0,d.default)(u.default,{style:{width:120},size:"small",getPopupContainer:function(e){return e.parentNode},defaultValue:"CONFIDENCE",onChange:this.filteRules},void 0,D,M)),(0,d.default)("div",{},void 0,(0,d.default)("span",{},void 0,"\u8f93\u51fa\u89c4\u5219\u5171 ",s&&s.length," \u6761,"),s&&s.length>5&&(0,d.default)(l.default,{type:"primary",ghost:!0,size:"small",onClick:this.viewAllRules},void 0,"\u67e5\u770b\u5168\u90e8\u89c4\u5219"),"C5"===i&&(0,d.default)(v.default,{permissions:["MODEL_TRAIN:DOWNLOAD_RULE_TREE"],displayType:"hide"},void 0,(0,d.default)(l.default,{onClick:function(){e.downFile(_.toString(_.get(e.props.reportInfo,"taskInfo.taskActionId")))},style:{marginLeft:5},type:"primary",ghost:!0,size:"small"},void 0,"\u4e0b\u8f7d\u89c4\u5219\u6811")))),s&&_.take(s,5).map((function(t,a){return f.default.createElement(L,(0,o.default)({reportInfo:e.props.reportInfo,key:a},{idx:a,headerMap:r,item:t},{__source:{fileName:c,lineNumber:165}}))})),s&&s.length>5&&(0,d.default)(n.default,{title:"\u67e5\u770b\u5168\u90e8\u6a21\u578b\u8bad\u7ec3\u7ed3\u679c\u89c4\u5219",width:800,visible:this.state.modelVisible,footer:null,onCancel:this.hideModal},void 0,s.map((function(t,a){return f.default.createElement(L,(0,o.default)({reportInfo:e.props.reportInfo,key:a},{idx:a,headerMap:r,item:t},{__source:{fileName:c,lineNumber:176}}))}))))},t}(f.default.PureComponent);t.default=k;var P=(0,d.default)("li",{},void 0,"..."),L=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.toggleExpand=function(){n.setState({shrink:!n.state.shrink})};var o=a.item,i=o.RULE&&o.RULE.split("|")||[];return n.state={shrink:i.length>=5},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.idx,a=e.headerMap,n=e.item,o=n.RULE&&n.RULE.split("|")||[],s=this.state.shrink?_.take(o,4):o;return(0,d.default)(w,{title:"\u89c4\u5219"+(t+1)},void 0,(0,d.default)(T,{},void 0,a&&_.keys(a).map((function(e,t){return"rules"===e?null:(0,d.default)("li",{},t,(0,d.default)("span",{className:"label"},void 0,a[e].desc,":"),(0,d.default)("span",{className:"val"},void 0,n[e]))}))),(0,d.default)(I,{},void 0,s&&s.map((function(e,t){return(0,d.default)("li",{},t,e)})),_.size(o)>4&&this.state.shrink&&P,_.size(o)>4&&(0,d.default)("li",{},void 0,(0,d.default)(j,{size:"small",onClick:this.toggleExpand},void 0,this.state.shrink?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77"))))},t}(p.Component)},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/Section.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/helpers/jsx.js")),o=d(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=d(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=d(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js");d(i),d(a("./node_modules/prop-types/index.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=d(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"Section__SectionBox",componentId:"sc-15bpcaf-0"})(["padding:2px 10px 10px 10px;margin-top:5px;.section-title{border-left:3px solid #47b2fb;font-size:14px;color:#1f2d3d;line-height:14px;text-indent:10px;margin-top:10px;margin-bottom:20px;}.section-content{padding:5px 10px;}.section-desc{padding-left:15px;}"]),u=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(l,{},void 0,(0,n.default)("h2",{className:"section-title"},void 0,this.props.title),!_.isEmpty(this.props.desc)&&(0,n.default)("p",{className:"section-desc"},void 0,this.props.desc),(0,n.default)("div",{className:"section-content"},void 0,this.props.children))},t}(i.Component);t.default=u},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/SimpleTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(i(a("./node_modules/react/index.js")),i(a("./node_modules/prop-types/index.js")),i(a("./node_modules/lodash/lodash.js"))),s=i(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),r=a("./src/module/modelGuide/modelEnums.js");function i(e){return e&&e.__esModule?e:{default:e}}var d=s.default.table.withConfig({displayName:"SimpleTable__SimpleGrid",componentId:"szo9yf-0"})(["width:100%;th{background:#e5e9f2;height:40px;font-size:14px;padding:5px 10px;border-collapse:collapse;border-spacing:0;border-right:1px solid #dee2e6;border-left:1px solid #dee2e6;}tbody > tr > td{height:40px;padding:5px 10px;border-left:1px solid #e5e9f2;border-right:1px solid #e5e9f2;border-bottom:1px solid #e5e9f2;}"]);t.default=function(e){var t=e.data,a=e.className,s=t.header,i=t.data;return(0,n.default)(d,{className:a},void 0,(0,n.default)("thead",{},void 0,(0,n.default)("tr",{},void 0,s&&s.map((function(e){var t=e.name,a=e.desc;return(0,n.default)("th",{},t,a)})))),(0,n.default)("tbody",{},void 0,i&&i.map((function(e,t){return(0,n.default)("tr",{},t,s.map((function(a){var s=a.name;return(0,n.default)("td",{},t+"-"+s,o.default.isNull(e[s])||o.default.isNaN(e[s])?"--":"MODEL_TYPE_NAME"===s?r.SYSTEM_TRAIN_TEMPLATE.getDescFromValue(e[s]):e[s])})))}))))}},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/StatTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(i(a("./node_modules/react/index.js")),i(a("./node_modules/prop-types/index.js")),i(a("./node_modules/lodash/lodash.js"))),s=i(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/SimpleTable.jsx")),r=i(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function i(e){return e&&e.__esModule?e:{default:e}}var d=r.default.ul.withConfig({displayName:"StatTable__StatIndis",componentId:"sc-8u5qr0-0"})(["width:100%;list-style:none;margin:0;padding:0 0 0 10px;display:flex;flex-direction:row;li{float:left;font-size:14px;color:#475669;width:150px;height:40px;line-height:40px;& > span.label{margin-right:10px;}}"]),l=(0,r.default)(s.default).withConfig({displayName:"StatTable__SimpleTable2",componentId:"sc-8u5qr0-1"})(["tbody tr td:first-child{background:#e5e9f2;font-size:14px;color:#475669;font-weight:bold;border-bottom:1px solid #dee2e6;border-top:1px solid #dee2e6;}"]);t.default=function(e){var t=e.data,a=t.stat,s=t.list,r=o.default.keyBy(a.header,"name"),i=o.default.first(a.data);return(0,n.default)("div",{},void 0,i&&(0,n.default)(d,{},void 0,o.default.keys(r).map((function(e,t){return(0,n.default)("li",{},t,(0,n.default)("span",{className:"label"},void 0,r[e].desc,":"),(0,n.default)("span",{className:"val"},void 0,i[e]))}))),(0,n.default)(l,{data:s}))}},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/Section.jsx")),o=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/SimpleTable.jsx")),s=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/FeatureTable.jsx")),r=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/ModelRuleTable.jsx")),i=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/ArithParamTable.jsx")),d=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/Chart.jsx")),l=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/File.jsx")),u=c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainReport/section/StatTable.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}t.default=n.default,n.default.comp={File:l.default,Chart:d.default,SimpleTable:o.default,FeatureTable:s.default,ModelRuleTable:r.default,ArithParamTable:i.default,StatTable:u.default}},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainResult/ModelTrainResultPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/empty/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/empty/style/index.js");var d=a("./node_modules/react/index.js"),l=(p(d),p(a("./node_modules/prop-types/index.js")),p(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainResult/components/TrainResultList.jsx"))),u=p(a("./src/redux/services/trainTask.js")),c=a("./src/components/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=(0,o.default)(c.LoadingIndicator,{}),m=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({loading:!0}),u.default.getTaskTrainResult(n.props.jobId).then((function(e){n.setState({trainResult:e.data,loading:!1})})).catch((function(e){throw n.setState({loading:!1}),e}))},n.state={loading:!1,trainResult:[],selectModel:{}},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.props,t=e.taskId,a=e.jobId,s=e.taskInfo,r=this.state,i=r.trainResult;return r.loading?f:Array.isArray(i)&&i.length>0?(0,o.default)(l.default,{taskId:t,jobId:a,taskInfo:s,trainResult:i}):(0,o.default)(n.default,{style:{marginTop:100}})},t}(d.Component);t.default=m},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainResult/components/TrainResultItem.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.UlDom=void 0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/babel-runtime/helpers/jsx.js")),s=b(a("./node_modules/antd/es/message/index.js")),r=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=b(a("./node_modules/babel-runtime/helpers/inherits.js")),l=b(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=b(a("./node_modules/react/index.js")),c=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/lodash/lodash.js"))),p=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./node_modules/react-router-dom/esm/react-router-dom.js"),h=a("./node_modules/polished/dist/polished.es.js"),g=b(a("./node_modules/react-image/es/index.js")),v=a("./src/routes/routeHelper.jsx"),_=b(a("./src/redux/services/trainTask.js")),y=a("./src/utils/authPermit.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=l.default.confirm,C=(t.UlDom=p.default.ul.withConfig({displayName:"TrainResultItem__UlDom",componentId:"sc-13mkwv4-0"})(["padding:0px;width:100%;list-style-type:none;"]),p.default.div.withConfig({displayName:"TrainResultItem__ResultItemWrapper",componentId:"sc-13mkwv4-1"})([".result-mask{right:0;top:0;position:absolute;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,0.8);transition:all 0.3s ease-out;opacity:0;.mask-button{display:inline-block;cursor:pointer;background-color:transparent;border-radius:100px;text-align:center;text-decoration:none;border:1px solid #fff;padding:7px 24px;color:#fff;font-size:14px;font-weight:500;a{color:#fff;text-decoration:none;}&:hover{background-color:#fff;color:#292525;a{color:#000;}}}}.result-box{padding:5px;display:flex;flex-direction:row;justify-content:space-around;background:#ffffff;border:1px solid #e0e6ed;&:hover{.result-mask{opacity:0.8;}}&._selected{border:1px solid #47b2fb;}.result-img{position:relative;flex:1 1 65%;height:200px;max-width:300px;& > img{width:100%;height:200px;}}.result-indis{margin:0;padding:0 15px;flex:1 1 35%;& > dt{font-weight:600;font-size:14px;line-height:50px;}& > dd{",";width:200px;line-height:24px;}}}.result-checkbox{margin-top:15px;.result-rec{color:#fb6362;}}"],(0,h.ellipsis)())),j=(0,o.default)("span",{},void 0,(0,o.default)("span",{className:"result-rec"},void 0,"\u7cfb\u7edf\u63a8\u8350\u6a21\u578b")),S=(0,o.default)(f.PlayCircleOutlined,{}),I=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.publishModel=function(){var e=n;x({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u5b9a\u53d1\u5e03\u6b64\u6a21\u578b\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){var t=c.default.get(e.props.result,"arithmeticId");_.default.publishModelFromTrainResult(e.props.taskId,e.props.jobId,{algName:t}).then((function(){s.default.success("\u53d1\u5e03\u6210\u529f")}))}})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u53d1\u5e03\u4e2d\u8bf7\u7a0d\u7b49.........."})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.getVersionDesc=function(e){n.versionDesc=e},n.state={showPopConfirm:!1,confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u53d1\u5e03?"},n.versionDesc="",n}return(0,d.default)(t,e),t.getDerivedStateFromProps=function(e){if("{}"!==JSON.stringify(e.publishModel))return{confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u53d1\u5e03?"}},t.prototype.render_checkbox=function(){var e=this.props,t=e.isSysRec,a=e.result;return(0,o.default)("div",{className:"result-checkbox"},void 0,t&&j,1===a.releaseFlag?(0,o.default)("span",{style:{marginLeft:10}},void 0,"\u5df2\u53d1\u5e03"):(0,o.default)(n.default,{style:{marginBottom:10,marginLeft:t?10:0},size:"small",icon:S,onClick:this.publishModel},void 0,"\u53d1\u5e03"))},t.prototype.render_resultBox=function(){var e=this.props,t=e.taskId,a=e.jobId,n=e.result,s=c.default.get(n,"arithmeticId"),r=c.default.get(n,"arithmeticFileUrl");return(0,o.default)("div",{className:"result-box",onMouseEnter:this.showFuncPanel,onMouseLeave:this.hideFuncPanel},void 0,(0,o.default)("dl",{className:"result-indis"},void 0,(0,o.default)("dt",{},void 0,(0,o.default)("span",{title:c.default.get(n,"arithmeticName")},void 0,c.default.get(n,"arithmeticName"))," "),c.default.get(n,"evalIndis",[]).map((function(e){for(var t in e)return(0,o.default)("dd",{},c.default.uniqueId(),(0,o.default)("span",{},void 0,t,"\uff1a"),(0,o.default)("span",{title:e[t]},void 0,e[t]))}))),(0,o.default)("div",{className:"result-img"},void 0,(0,o.default)(g.default,{src:r+"?token="+(0,y.getToken)()}),(0,o.default)("div",{className:"result-mask"},void 0,(0,o.default)("span",{className:"mask-button",onClick:this.handleClick},void 0,(0,o.default)(m.Link,{to:{pathname:v.trainTaskUrl.jobDetailReport(t,a,s)},target:"_blank"},void 0,"\u67e5\u770b\u8bad\u7ec3\u62a5\u544a")))))},t.prototype.render=function(){var e=this.props.className;return(0,o.default)(C,{className:e},void 0,this.render_resultBox(),this.render_checkbox())},t}(u.default.PureComponent);I.defaultProps={result:{},selected:!1,isSysRec:!1},t.default=I},"./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainResult/components/TrainResultList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/collapse/index.js"));a("./node_modules/antd/es/collapse/style/index.js");var d=c(a("./node_modules/react/index.js")),l=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(c(a("./node_modules/prop-types/index.js")),c(a("./src/module/modelGuide/trainTask/viewPage/jobDetailPage/trainResult/components/TrainResultItem.jsx")));function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Panel,f=l.default.div.withConfig({displayName:"TrainResultList__TrainResultWrapper",componentId:"sc-1epk9po-0"})([".result-title{background:#f5f6f9;border-radius:4px;height:50px;font-size:18px;padding-left:30px;line-height:50px;margin:0;}.result-func{display:flex;flex-direction:row;justify-content:flex-end;margin:15px 0;button{margin-right:10px;}}.ant-collapse{margin-bottom:20px;}.ant-collapse-content > .ant-collapse-content-box{padding:20px 25px;background:#f9fafc;display:flex;justify-content:space-between;flex-direction:row;flex-wrap:wrap;}.ant-collapse-header{height:40px;background:#f5f6f9;}"]),m=(0,l.default)(u.default).withConfig({displayName:"TrainResultList__TrainResultItem2",componentId:"sc-1epk9po-1"})(["width:49%;box-sizing:border-box;"]),h=function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));return r.panelHeader=function(e){return(0,n.default)("div",{},void 0,(0,n.default)("span",{},void 0,"\u8bad\u7ec3\u5b8c\u6210\u65f6\u95f4 ",e.endTime),(0,n.default)("span",{style:{marginLeft:20,fontWeight:600,fontSize:"12.5px"}},void 0,-1===e.optimizationFlag?"\u672a\u4f18\u5316":1===e.optimizationFlag?"\u5df2\u4f18\u5316":"\u65e0\u4f18\u5316\u7ed3\u679c"))},r.state={expandKeys:_.get(r.props.trainResult,[0,"taskId"])},r}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.trainResult,o=t.taskId,s=t.jobId;return(0,n.default)(f,{},void 0,(0,n.default)(i.default,{defaultActiveKey:[_.get(a,[0,"taskId"])],activeKey:this.state.expandKeys,onChange:this.setActiveKeys},void 0,_.isArray(a)&&a.map((function(t){return(0,n.default)(p,{header:e.panelHeader(t)},t.taskId,_.isArray(t.resultData)&&t.resultData.map((function(e){return(0,n.default)(m,{result:e,taskId:o,jobId:s,isSysRec:t.bestArith===e.arithmeticId},e.arithmeticId)})))}))))},t}(d.default.PureComponent);h.defaultProps={trainResult:[]},t.default=h},"./src/module/modelGuide/trainTemplate/createPage/CreateTrainTemplate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=D(a("./node_modules/antd/es/button/index.js")),o=D(a("./node_modules/babel-runtime/helpers/jsx.js")),s=D(a("./node_modules/antd/es/message/index.js")),r=D(a("./node_modules/antd/es/modal/index.js")),i=D(a("./node_modules/babel-runtime/helpers/extends.js")),d=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=D(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=D(a("./node_modules/react/index.js")),p=D(a("./node_modules/lodash/lodash.js")),f=a("./node_modules/@ant-design/compatible/es/index.js"),m=(D(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),h=a("./src/utils/history.js"),g=a("./src/routes/routeHelper.jsx"),v=D(a("./src/redux/services/trainTemplate.js")),_=D(a("./src/module/modelGuide/trainTemplate/createPage/component/MirrorBuild.jsx")),y=D(a("./src/module/modelService/createPage/ComputingResource.jsx")),b=D(a("./src/module/modelGuide/trainTemplate/createPage/component/StartParams.jsx")),x=D(a("./src/module/modelGuide/trainTemplate/createPage/component/BaseInfo.jsx")),C=a("./src/components/jsonEditor/schema/lib/schema.js"),j=a("./src/utils/commonUtil.js"),S=a("./src/module/modelGuide/trainTemplate/styled.jsx"),I=a("./src/utils/authPermit.js"),T=D(a("./src/redux/services/sysManager/projectManage.js")),w=D(a("./src/redux/services/codeService.js")),E=D(a("./src/module/modelGuide/trainTemplate/createPage/component/FileTreeTable.jsx"));function D(e){return e&&e.__esModule?e:{default:e}}var M=[{label:"\u6570\u636e\u6e90",value:"DataSourceSelect",uiKey:"string-dataSourceSelect",type:["object"]}],k=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.fetchAppParentByAppId=function(){n.appId&&n.projectId&&T.default.getApplicationsInfo(n.appId,n.projectId).then((function(e){if(e){var t=p.default.get(e,"data.applicationName")+"-\u5411\u5bfc\u6a21\u677f";n.projectName&&-1!=n.projectName.indexOf("-")&&(t=n.projectName.substring(0,n.projectName.indexOf("-"))+"-\u5411\u5bfc\u6a21\u677f");var a=(0,i.default)({},n.state.templateInfo,{appCategory:p.default.get(e,"data.parentApplicationClass"),appType:p.default.get(e,"data.applicationClass"),templateName:t});n.setState({templateInfo:a})}}))},n.fetchModelTrees=function(){n.modelId&&(w.default.getModelTrees(n.modelId).then((function(e){var t=e.data||[];n.setState({modelFiles:t})})),w.default.getPubCodeServiceInfo(n.modelId).then((function(e){n.codeInfo=e.data})))},n.submitTemplate=function(){event.preventDefault();var e=!0,t=n,a=n.state.moduleData;Object.keys(n.validateFuncs).map((function(t){var o=n.validateFuncs[t];if(p.default.isFunction(o)){var s=o.call();a="computingResource"===t?(0,i.default)({},a,{quota:JSON.stringify(s.moduleData)}):"startParamsConfig"===t?(0,i.default)({},a,{deploy:JSON.stringify(s.moduleData)}):(0,i.default)({},a,s.moduleData),e&&(e=s.validate)}})),n.modelId&&(a=(0,i.default)({},a,{engine:p.default.get(n.codeInfo,"mirrorVersion.versionEngine"),language:p.default.get(n.codeInfo,"mirrorVersion.language"),languageVersion:p.default.get(n.codeInfo,"mirrorVersion.frame"),baseMirrorId:p.default.get(n.codeInfo,"mirrorVersion.mirrorId"),baseMirrorVersionId:p.default.get(n.codeInfo,"mirrorVersion.versionId")})),a=(0,i.default)({},a,{froms:"code"===n.actionType?"CODEMODEL":n.state.baseType}),e&&r.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.saveTemplate(a)},onCancel:function(){}})},n.saveTemplate=function(e){n.setState({saveLoading:!0}),v.default.saveTrainTemplateInfo((0,i.default)({},e,n.moduleData)).then((function(){s.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,h.navigateTo)(g.trainTemplateUrl.list())}),2e3)})).catch((function(e){throw n.setState({saveLoading:!1}),e}))},n.cancel=function(){confirm({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u8bad\u7ec3\u6a21\u677f\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,h.navigateTo)(g.trainTemplateUrl.list())}})},n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.handleBuildTypeChange=function(e){n.setState({baseType:e})},n.handleSchemaValChange=function(e,t,a){var o=(0,j.isJsonString)(t)?JSON.parse(t):t,s=(0,j.isJsonString)(a)?JSON.parse(a):a,r=(0,C.combineUiSchema)(o,s);n.moduleData[e]=r},n.handleResourceQuotaChange=function(e){n.setState({resourceQuota:e},(function(){n.handleTemplateSelected()}))},n.handleTemplateSelected=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.selectedPath;if(e){var t=parseInt(p.default.get(n.state.resourceQuota,"cpu",1)||1,10),a="horovod"===n.codeType?"horovodrun -np "+t+" -H localhost:"+t+" python3 .."+e:"python .."+e;n.setState({selectedPath:e,startCommand:a})}};var o=(0,h.parseParms)(a.location);n.appId=p.default.get(o,"appId"),n.modelId=p.default.get(o,"projectId"),n.projectName=p.default.get(o,"projectName"),n.codeType=p.default.get(o,"codeType"),n.actionType=p.default.get(a.match,"params.source","import");var u=(0,I.getCurrentContext)(),c=u.role,f=u.id;return"PROJECT"===c&&(n.projectId=f),n.state={templateList:[],currentVersionName:"v1",templateInfo:{froms:"import"===n.actionType?"IMPORT":"CODEMODEL"},modelFiles:[],baseType:"BUILD_CODE",selectedPath:"",startCommand:"",resourceQuota:{cpu:1},result:!1},n.moduleData={dsParams:{},trainOutput:{},algParams:{}},n.validateFuncs={},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchAppParentByAppId(),this.fetchModelTrees()},t.prototype.render=function(){var e=this,t="view"===this.actionType,a=this.state,s=a.templateInfo,r=a.modelFiles;return(0,o.default)(S.PageWrapper,{},void 0,(0,o.default)(f.Form,{},void 0,(0,o.default)(m.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,o.default)(x.default,{setValidateFunc:this.setValidateFunc,moduleData:s})),"import"===this.actionType?(0,o.default)(_.default,{setValidateFunc:this.setValidateFunc,onBaseTypeChange:this.handleBuildTypeChange}):(0,o.default)(E.default,{setImportValidateFunc:this.setValidateFunc,modelFiles:r,anbModelId:this.modelId,onTemplateSelected:this.handleTemplateSelected,requiredFolder:"notebooks"}),(0,o.default)(y.default,{title:"\u5efa\u8bae\u8ba1\u7b97\u8d44\u6e90",instancesMinShow:!1,pubEnvType:"DEV",canModify:"view"!==this.viewType,requestQuota:s.resource||{},setValidateFunc:this.setValidateFunc,noResidueCheck:!0,hideAvailableRes:!0,source:"GUIDE_TRAIN",onChange:this.handleResourceQuotaChange}),(0,o.default)(m.ModelConfigPanel,{title:"\u6267\u884c\u53c2\u6570"},void 0,(0,o.default)(b.default,{moduleData:{startCommand:this.state.startCommand},setValidateFunc:this.setValidateFunc,actionType:this.actionType,commandRequire:"TRAIN"!==this.state.baseType})),(0,o.default)(m.ModelConfigPanel,{title:"\u8f93\u5165\u53c2\u6570"},void 0,(0,o.default)(m.SchemaForm,{showEditor:!1,isMock:!1,showHeader:!0,hideRoot:!0,hideImportBtn:!0,showPreviewBtn:!0,showUiSelect:!0,options:{lang:"zh_CN"},data:'{"type":"object","title":"","properties":{"dataSource":{"type":"object","properties":{},"title":"\u6570\u636e\u6e90"}},"required":["dataSource"]}',uiData:'{"dataSource":{"type":"object","uiKey":"string-dataSourceSelect","ui:widget":"DataSourceSelect"}}',customWidgets:M,widgets:{DataSourceSelect:m.DataSourceSelect},onChange:function(t,a){e.handleSchemaValChange("dsParams",t,a)}})),(0,o.default)(m.ModelConfigPanel,{title:"\u8f93\u51fa\u53c2\u6570"},void 0,(0,o.default)(m.SchemaForm,{showEditor:!1,isMock:!1,showHeader:!0,hideRoot:!0,hideImportBtn:!0,showPreviewBtn:!0,showUiSelect:!0,options:{lang:"zh_CN"},data:'{"type":"object","title":"","properties":{"model":{"type":"string","title":"\u6a21\u578b\u8def\u5f84","description":"\u6a21\u578b\u8f93\u51fa\u8def\u5f84","default":"../model"},"logs":{"type":"string","title":"\u65e5\u5fd7\u8def\u5f84","description":"\u65e5\u5fd7\u8f93\u51fa\u8def\u5f84","default":"../logs"},"result":{"type":"string","title":"\u7ed3\u679c\u8def\u5f84","description":"\u7ed3\u679c\u8f93\u51fa\u8def\u5f84","default":"../result"}},"required":["model","logs","result"]}',uiData:'{"field_1":{"type":"string","uiKey":"string-input"},"field_2":{"type":"string","uiKey":"string-input"},"field_3":{"type":"string","uiKey":"string-input"},"model":{"type":"string","uiKey":"string-input"},"logs":{"type":"string","uiKey":"string-input"},"result":{"type":"string","uiKey":"string-input"},"type":"string","title":"\u7ed3\u679c\u8def\u5f84","description":"\u7ed3\u679c\u8f93\u51fa\u8def\u5f84","default":"../result"}',onChange:function(t,a){e.handleSchemaValChange("trainOutput",t,a)}})),(0,o.default)(m.ModelConfigPanel,{title:"\u7b97\u6cd5\u53c2\u6570"},void 0,(0,o.default)(m.SchemaForm,{showEditor:!1,isMock:!1,showHeader:!0,hideRoot:!0,hideImportBtn:!0,showPreviewBtn:!0,showUiSelect:!0,options:{lang:"zh_CN"},data:"",onChange:function(t,a){e.handleSchemaValChange("algParams",t,a)}}))),(0,o.default)(S.ButtonDom,{},void 0,(0,o.default)(n.default,{onClick:this.cancel,disabled:this.state.saveLoading},void 0,"\u53d6\u6d88"),(0,o.default)(n.default,{loading:this.state.saveLoading,onClick:this.submitTemplate,style:{marginLeft:"10px"},disabled:!this.state.result,type:"primary"},void 0,t?"\u786e\u5b9a":"\u4fdd\u5b58")))},t}(c.default.PureComponent);k.defaultProps={},t.default=f.Form.create()(k)},"./src/module/modelGuide/trainTemplate/createPage/component/AppCategorySelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=p(a("./node_modules/react/index.js")),l=p(a("./node_modules/lodash/lodash.js")),u=a("./node_modules/@ant-design/compatible/es/index.js"),c=(p(a("./node_modules/prop-types/index.js")),p(a("./src/redux/services/sysManager/appClassification.js")));function p(e){return e&&e.__esModule?e:{default:e}}var f=u.Form.Item,m=i.default.Option,h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.fetchData=function(){n.fetchAppCategories()},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t={appCategory:n.state.appCategory,appType:n.state.appType};return{validate:e,moduleData:t}},n.fetchAppCategories=function(){c.default.getAppClassificationList({}).then((function(e){var t=e.data||[],a=n.props.appCategory||l.default.get(t,"[0].parentApplicationTypeId");n.setState({applicationClassifyOptions:t,loading:!1},(function(){n.handleAppClassChange(a,n.props.appType)}))})).catch((function(){n.setState({loading:!1})}))},n.handleAppClassChange=function(e,t){var a=l.default.find(n.state.applicationClassifyOptions,{parentApplicationTypeId:e}),o=l.default.get(a,"applicationTypes",[])||[];t||(t=l.default.get(o,"[0].applicationTypeId")),n.setState({applicationSubClassifyOptions:o,appCategory:e,appType:t}),n.props.form.setFieldsValue({appType:t})},n.handleAppSubClassChange=function(e){n.setState({appType:e})},n.state={appCategories:[],appCategory:a.appCategory,appType:a.appType,applicationClassifyOptions:[],applicationSubClassifyOptions:[]};var r=n.props.setValidateFunc;return l.default.isFunction(r)&&r("AppCategorySelect",n.validateFun),n}return(0,r.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.appCategory===e.appCategory&&this.props.appType===e.appType||this.handleAppClassChange(this.props.appCategory,this.props.appType)},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,o=a.appCategory,s=a.appType;return(0,n.default)(d.default.Fragment,{},void 0,(0,n.default)(f,{label:"\u5e94\u7528\u5927\u7c7b"},void 0,t("appCategory",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u5206\u7c7b"}],initialValue:o})((0,n.default)(i.default,{showSearch:!0,disabled:this.props.disabled,loading:this.state.loading,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u5927\u7c7b",onChange:function(t){return e.handleAppClassChange(t)},style:{width:"200px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(this.state.applicationClassifyOptions)&&this.state.applicationClassifyOptions.map((function(e){return(0,n.default)(m,{value:e.parentApplicationTypeId,label:e.parentApplicationTypeName},e.parentApplicationTypeId,e.parentApplicationTypeName)}))))),(0,n.default)(f,{label:"\u5e94\u7528\u5c0f\u7c7b",style:{marginLeft:24}},void 0,t("appType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u5206\u7c7b"}],initialValue:s})((0,n.default)(i.default,{showSearch:!0,disabled:this.props.disabled,loading:this.state.loading,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u5c0f\u7c7b",onChange:this.handleAppSubClassChange,style:{width:"200px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(this.state.applicationSubClassifyOptions)&&this.state.applicationSubClassifyOptions.map((function(e){return(0,n.default)(m,{value:e.applicationTypeId,label:e.applicationTypeName},e.applicationTypeId,e.applicationTypeName)}))))))},t}(d.default.PureComponent);h.defaultProps={},t.default=u.Form.create()(h)},"./src/module/modelGuide/trainTemplate/createPage/component/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/tooltip/index.js")),o=b(a("./node_modules/antd/es/auto-complete/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/babel-runtime/helpers/extends.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/antd/es/select/index.js")),p=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var f=b(a("./node_modules/react/index.js")),m=b(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/compatible/es/index.js"),g=a("./node_modules/@ant-design/icons/es/index.js"),v=(b(a("./node_modules/prop-types/index.js")),b(a("./src/redux/services/trainTemplate.js"))),_=a("./src/module/modelGuide/modelEnums.js"),y=b(a("./src/module/modelGuide/trainTemplate/createPage/component/AppCategorySelect.jsx"));function b(e){return e&&e.__esModule?e:{default:e}}var x=h.Form.Item,C=p.default.TextArea,j=c.default.Option,S=_.TRAIN_TEMPLATE_SOURCE.getValueAndDescList(),I=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.fetchTemplateList=function(){v.default.getTrainTemplateList().then((function(e){n.setState({templateList:m.default.get(e,"data.list")},(function(){n.setTemplateName()}))}))},n.setTemplateName=function(){var e=m.default.get(n.state.moduleData,"templateName");e&&n.handleTemplateNameChange(e)},n.handleTemplateNameChange=function(e){var t=m.default.find(n.state.templateList,{templateName:e}),a=(0,i.default)({},n.state.moduleData);if(t){var o=m.default.get(t,"templateVersionName"),s=o?Number(o.replace("v","")):0,r="v"+(isNaN(s)?1:s+1);return n.setState({currentVersionName:r}),a.templateId=t.templateId,a.templateName=e,a.appCategory=t.appCategory,a.appType=t.appType,n.setState({moduleData:a}),void n.props.form.setFieldsValue({templateName:e})}a.templateId="",a.templateName=e,n.setState({currentVersionName:"v1",moduleData:a}),n.props.form.setFieldsValue({templateName:e})},n.setAppClassify=function(e){var t=(0,i.default)({},n.state.moduleData);t.appCategory=e.appBig,t.appType=e.appSmall,n.setState({moduleData:t})},n.getValBlur=function(e,t){var a=(0,i.default)({},n.state.moduleData);a[t]=e,n.setState({moduleData:a})},n.validateFun=function(){var e=!1,t=n.state.moduleData;return Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(m.default.isFunction(o)){var s=o.call();t=(0,i.default)({},t,s.moduleData),e&&(e=s.validate)}})),n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:t}},n.actionType=m.default.get(a.match,"params.source","import"),n.state={moduleData:a.moduleData,templateList:[],currentVersionName:"v1"};var o=n.props.setValidateFunc;return n.validateFuncs={},m.default.isFunction(o)&&o("BaseInfo",n.validateFun),n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchTemplateList()},t.prototype.componentDidUpdate=function(e){var t=this;m.default.isEqual(this.props.moduleData,e.moduleData)||this.setState({moduleData:(0,i.default)({},this.props.moduleData)},(function(){t.props.form.setFieldsValue(t.props.moduleData),t.setTemplateName()}))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,i=a.moduleData,d=a.templateList;return(0,r.default)(f.default.Fragment,{},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(x,{label:"\u6a21\u677f\u540d\u79f0"},void 0,t("templateName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6a21\u677f\u540d\u79f0"},{min:0,max:30,message:"\u6a21\u677f\u540d\u79f0\u4e0d\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:i.templateName})((0,r.default)(o.default,{dropdownStyle:{width:200},style:{width:200},placeholder:"\u8bf7\u65b0\u589e\u6216\u9009\u62e9\u8bad\u7ec3\u6a21\u677f",onChange:function(t){return e.handleTemplateNameChange(t)},filterOption:function(e,t){return t.props.children&&t.props.children.toLowerCase().indexOf(e?e.toLowerCase():"")>=0}},void 0,Array.isArray(d)&&d.map((function(e,t){return(0,r.default)(j,{value:e.templateName},t,e.templateName)})))),(0,r.default)(n.default,{placement:"topLeft",title:"\u9009\u62e9\u5df2\u6709\u8bad\u7ec3\u6a21\u677f\uff0c\u5219\u5f53\u524d\u8bad\u7ec3\u6a21\u677f\u65b0\u589e\u4e00\u4e2a\u7248\u672c\uff0c\u5426\u5219\u65b0\u589e\u4e00\u4e2a\u8bad\u7ec3\u6a21\u677f\u53ca\u7248\u672c\u3002",arrowPointAtCenter:!0},void 0,(0,r.default)(g.QuestionCircleOutlined,{className:"icon",style:{marginLeft:6}}))),(0,r.default)(x,{label:"\u7248\u672c\u53f7"},void 0,this.state.currentVersionName||"v1")),(0,r.default)(s.default,{},void 0,(0,r.default)(x,{label:"\u63cf\u8ff0"},void 0,t("templateDesc",{initialValue:i.templateDesc})((0,r.default)(C,{autoSize:{minRows:4,maxRows:6},style:{width:"700px"},maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onBlur:function(t){return e.getValBlur(t.target.value,"templateDesc")}})))),(0,r.default)(s.default,{},void 0,(0,r.default)(y.default,{disabled:m.default.find(this.state.templateList,{templateName:i.templateName}),setValidateFunc:this.setValidateFunc,appCategory:i.appCategory,appType:i.appType})),(0,r.default)(s.default,{style:{marginTop:16}},void 0,(0,r.default)(x,{label:"\u7248\u672c\u6765\u6e90"},void 0,t("froms",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c\u6765\u6e90"}],initialValue:i.froms})((0,r.default)(c.default,{loading:this.state.loading,placeholder:"\u8bf7\u9009\u62e9\u7248\u672c\u6765\u6e90",style:{width:"200px"},disabled:!0},void 0,S.map((function(e){return(0,r.default)(j,{value:e.code,label:e.desc},e.code,e.desc)})))))))},t}(f.default.PureComponent);I.defaultProps={moduleData:{}},t.default=h.Form.create()(I)},"./src/module/modelGuide/trainTemplate/createPage/component/FileInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FileInfoDom=void 0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/antd/es/upload/index.js")),s=S(a("./node_modules/babel-runtime/helpers/extends.js")),r=S(a("./node_modules/antd/es/row/index.js")),i=S(a("./node_modules/babel-runtime/helpers/jsx.js")),d=S(a("./node_modules/antd/es/message/index.js")),l=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=S(a("./node_modules/babel-runtime/helpers/inherits.js")),p=S(a("./node_modules/antd/es/input/index.js")),f=S(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=S(a("./node_modules/react/index.js")),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/utils/constants.js"),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");S(a("./node_modules/prop-types/index.js"));var y=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),b=a("./src/utils/publicPath.js"),x=a("./src/utils/authPermit.js"),C=a("./src/module/modelGuide/modelEnums.js"),j=a("./src/redux/services/serviceCode.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=t.FileInfoDom=y.default.div.withConfig({displayName:"FileInfo__FileInfoDom",componentId:"zeehxu-0"})([""]),T=f.default.Option,w=v.Form.Item,E=p.default.Group,D=(0,i.default)(n.default,{},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"),M=(0,i.default)(T,{value:""},void 0,"\u8bf7\u9009\u62e9FTP\u6216\u8005\u4e0a\u4f20\u6587\u4ef6"),k=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.fetchData=function(){(0,j.getFtpDropDown)().then((function(e){e&&n.setState({ftpDatas:e.data})})).catch((function(e){d.default.error(_.get(e,"message","ftp\u8def\u5f84\u67e5\u8be2\u5931\u8d25"))}))},n.getValBlur=function(e,t){if("ftpId"===t)for(var a=n.state.ftpDatas,o=0;o<a.length;o++)if(a[o].id===e){n.setState({ftpPath:a[o].storagePath});break}n.file[t]=e},n.setUploadType=function(e){n.file.fileSource=e,"UPLOAD_WEB"===e&&(n.file.ftpFileName=""),n.setState({uploadType:e})},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=n.file;if("FTP"===n.state.uploadType){var a=t.ftpFileName,o=a?a.lastIndexOf("/"):-1;o>-1&&(t.ftpFilePath=a.slice(0,o+1),t.ftpFileName=a.slice(o+1)),t=_.omit(t,["fileId","fileName"])}else t=_.omit(t,["ftpFilePath","ftpFileName","ftpId"]);return{validate:e,moduleData:{resources:n.file}}},n.state={ftpPath:"--",ftpDatas:[],fileList:"UPLOAD_WEB"===a.data.fileSource?[{uid:"-1",name:a.data.fileName,type:"text/plain"}]:[],uploadType:a.data.fileSource?a.data.fileSource:"FTP"};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("fileInfo",n.validateFun),n.file=a.data,n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this,n={name:"file",action:(0,b.urlFormat)("/resources/action/upload",g.ServicePath.SIC_SERVICE),headers:{Authorization:(0,x.getToken)()},onChange:function(e){var t=[].concat(e.fileList);if(t=(t=t.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),a.setState({fileList:t}),"uploading"===e.file.status&&d.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status){if(void 0!==e.file.response.data&&""!==e.file.response.data){var n=_.get(e.file.response,"data","");a.file.fileId=n,a.file.fileName=e.file.name}}else"error"===e.file.status?d.default.error(e.file.name+" \u4e0a\u4f20\u51fa\u9519!"):"removed"===e.file.status&&(a.file.fileId="",a.file.fileName="")}};return(0,i.default)(I,{},void 0,(0,i.default)(v.Form,{layout:"inline"},void 0,(0,i.default)(r.default,{},void 0,(0,i.default)(w,{label:"\u4e0a\u4f20\u4fe1\u606f"},void 0,t("uploadType",{rules:[{required:!0}],initialValue:this.state.uploadType})((0,i.default)(f.default,{style:{width:120},onChange:function(t){return e.setUploadType(t)},placeholder:"\u8bf7\u9009\u62e9\u6587\u4ef6\u4e0a\u4f20\u65b9\u5f0f"},void 0,C.FILE_SOURCE.getValueAndDescList().map((function(e,t){return(0,i.default)(T,{value:e.code},t,e.desc)}))))),"UPLOAD_WEB"===this.state.uploadType&&(0,i.default)(w,{},void 0,m.default.createElement(o.default,(0,s.default)({fileList:this.state.fileList},n,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTemplate\\createPage\\component\\FileInfo.jsx",lineNumber:160}}),D)),"FTP"===this.state.uploadType&&(0,i.default)("div",{style:{display:"initial"}},void 0,(0,i.default)(E,{style:{width:500},compact:!0},void 0,(0,i.default)(w,{},void 0,t("ftpId",{rules:[{required:"FTP"===this.state.uploadType,message:"\u8bf7\u9009\u62e9\u5219ftp"}],initialValue:this.file.ftpId})((0,i.default)(f.default,{style:{width:150},onChange:function(t){return e.getValBlur(t,"ftpId")},placeholder:"\u8bf7\u9009\u62e9"},void 0,M,this.state.ftpDatas.map((function(e,t){return(0,i.default)(T,{value:e.id},t,e.storageName)}))))),(0,i.default)(w,{},void 0,(0,i.default)(p.default,{disabled:!0,title:this.state.ftpPath,placeholder:this.state.ftpPath?this.state.ftpPath:"\u9ed8\u8ba4\u8def\u5f84",style:{width:120,borderRadius:0,height:32,marginLeft:20}})),(0,i.default)(w,{},void 0,t("ftpFileName",{initialValue:this.file.ftpFileName,rules:[{required:!0,message:"\u8bf7\u586b\u5199\u6587\u4ef6\u8def\u5f84"},{max:100}]})((0,i.default)(p.default,{style:{width:120,borderTopLeftRadius:0,borderBottomLeftRadius:0,height:32},placeholder:"\u8bf7\u8f93\u8def\u5f84",onBlur:function(t){return e.getValBlur(t.target.value,"ftpFileName")}}))))))))},t}(m.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(v.Form.create()(k))},"./src/module/modelGuide/trainTemplate/createPage/component/FileTreeTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/tooltip/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/antd/es/message/index.js")),r=g(a("./node_modules/babel-runtime/helpers/extends.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=g(a("./node_modules/react/index.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./src/components/index.js"),m=(g(a("./node_modules/prop-types/index.js")),a("./src/module/modelBase/utils.js")),h=a("./src/module/modelGuide/modelEnums.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.Option,y=h.CODE_SELECT_FILE_TYPE.getValueAndDescList(),b=(0,o.default)(v,{value:""},void 0,"\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"),x=(0,o.default)("span",{},void 0,"\u6a21\u677f\u6587\u4ef6"),C=function(e){function t(a){(0,i.default)(this,t);var l=(0,d.default)(this,e.call(this,a));l.setTreeTableViewValidateFunc=function(e,t){l.fileTreeTableFuncs[e]=t},l.addParentKeyWrapper=function(e){var t=[],a=JSON.parse(JSON.stringify(e));return function e(t,a){t&&t.forEach((function(t){var n=t.children,o=t.path;t.parent=a,n&&n.length>0&&e(n,o)}))}(a,null),l.setState({checkedIds:t,selectedKeys:t}),a},l.validateFun=function(){var e=l.fileTreeTableFuncs.treeTableView.call();return e.moduleData.length>0&&Object.values(l.state.selectedTypesMap).includes(h.CODE_SELECT_FILE_TYPE.TEMPLATE)?{validate:!0,moduleData:{resources:{anbModelId:l.props.anbModelId,codeFiles:(0,m.filterTree)(l.state.modelFiles,e.moduleData,{},(0,r.default)({},l.state.selectedTypesMap))}}}:(s.default.error("\u672a\u52fe\u9009\u6a21\u677f\u6587\u4ef6"),{validate:!1,moduleData:{modelFiles:l.state.modelFiles}})},l.changeDataType=function(e,t){t===h.CODE_SELECT_FILE_TYPE.TEMPLATE&&l.props.onTemplateSelected&&l.props.onTemplateSelected(e),l.setState((function(a){var n;return{selectedTypesMap:(0,r.default)({},a.selectedTypesMap,(n={},n[e]=t,n))}}))},l.handleSelectedKeysChange=function(e){var t=(0,r.default)({},l.state.selectedTypesMap);for(var a in t)e.includes(a)||delete t[a];l.setState({selectedKeys:e,selectedTypesMap:t})},l.state={checkedIds:[],modelFiles:[],loading:!1,selectedKeys:[],selectedTypesMap:{}},l.columns=[{title:"\u6587\u4ef6\u540d\u79f0",width:"150px",dataIndex:"name",ellipsis:!0,render:function(e){return(0,o.default)(n.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6587\u4ef6\u5206\u7c7b",dataIndex:"type",width:"90px",render:function(e){var t={file:"\u6587\u4ef6",directory:"\u76ee\u5f55"};return t[e]?t[e]:"\u672a\u77e5"}},{title:"\u6587\u4ef6\u5927\u5c0f",width:"110px",dataIndex:"size",render:function(e){return e||0===e?e+" byte":"--"}},{title:"\u6587\u4ef6\u7c7b\u578b",dataIndex:"fileType",width:"90px",render:function(e,t){var a=y.filter((function(e){return e.code!==h.CODE_SELECT_FILE_TYPE.TEMPLATE||e.code===h.CODE_SELECT_FILE_TYPE.TEMPLATE&&t.path.endsWith(".py")&&(!Object.values(l.state.selectedTypesMap).includes(h.CODE_SELECT_FILE_TYPE.TEMPLATE)||l.state.selectedTypesMap[t.path]===h.CODE_SELECT_FILE_TYPE.TEMPLATE)}));return"file"===t.type&&l.state.selectedKeys.includes(t.path)?(0,o.default)(u.default,{style:{width:150},onChange:function(e){return l.changeDataType(t.path,e)},placeholder:"\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"},void 0,b,a.map((function(e,t){return(0,o.default)(v,{value:e.code},t,e.desc)}))):""}}],l.modelData=[];var c=l.props.setImportValidateFunc;return _.isFunction(c)&&c("fileTreeTable",l.validateFun),l.fileTreeTableFuncs={},l}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.setState({modelFiles:this.addParentKeyWrapper(this.props.modelFiles),loading:!0})},t.prototype.componentDidUpdate=function(e){_.isEqual(e.modelFiles,this.props.modelFiles)||this.setState({modelFiles:this.addParentKeyWrapper(this.props.modelFiles),loading:!0})},t.prototype.render=function(){return(0,o.default)(f.ModelConfigPanel,{title:x},void 0,this.state.loading&&(0,o.default)(f.NewTreeTableView,{checkedIds:this.state.checkedIds,rowKey:"path",columns:this.columns,data:this.state.modelFiles,onSelectedKeysChange:this.handleSelectedKeysChange,setTreeTableViewValidateFunc:this.setTreeTableViewValidateFunc}))},t}(c.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(C)},"./src/module/modelGuide/trainTemplate/createPage/component/MirrorBuild.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/extends.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js")),d=g(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/radio/style/index.js");var l=g(a("./node_modules/react/index.js")),u=g(a("./node_modules/lodash/lodash.js")),c=a("./node_modules/@ant-design/compatible/es/index.js"),p=(g(a("./node_modules/prop-types/index.js")),g(a("./src/redux/services/sysManager/appClassification.js"))),f=a("./src/components/index.js"),m=g(a("./src/module/modelMirror/baseMirror/definePage/component/RelyInlayMirror.jsx")),h=g(a("./src/module/modelGuide/trainTemplate/createPage/component/FileInfo.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=d.default.Group,_=(0,n.default)(d.default,{value:"BUILD_CODE"},void 0,"\u4ee3\u7801\u5305"),y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.fetchData=function(){n.fetchAppCategories()},n.validateFun=function(){var e=!0,t={};return Object.keys(n.validateFuncs).map((function(a){var s=n.validateFuncs[a];if(u.default.isFunction(s)){var r=s.call();t=(0,o.default)({},t,r.moduleData),e&&(e=r.validate)}})),n.props.form.validateFieldsAndScroll((function(t){t&&(e=!1)})),t={engine:t.engine,language:t.language,languageVersion:t.languageVersion,baseMirrorVersionId:t.baseId,baseMirrorId:t.baseMirrorId,resources:t.resources},{validate:e,moduleData:t}},n.onChangeRadio=function(e){n.setState({baseType:e.target.value}),n.props.onBaseTypeChange&&n.props.onBaseTypeChange(e.target.value)},n.fetchAppCategories=function(){p.default.getAppClassificationList({}).then((function(e){n.setState({applicationClassifyOptions:e.data,loading:!1}),n.setModelData(e.data)})).catch((function(){n.setState({loading:!1})}))},n.state={baseType:"BUILD_CODE"},n.validateFuncs={};var i=n.props.setValidateFunc;return u.default.isFunction(i)&&i("MirrorBuild",n.validateFun),n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.codeServiceInfo,a=e.baseType;return(0,n.default)(l.default.Fragment,{},void 0,(0,n.default)(f.ModelConfigPanel,{title:"\u955c\u50cf\u6784\u5efa"},void 0,(0,n.default)("div",{style:{marginLeft:70,padding:"10px 0px 20px 0px"}},void 0,(0,n.default)(v,{onChange:this.onChangeRadio,value:a},void 0,_,(0,n.default)(d.default,{style:{marginLeft:40},value:"BUILD_IMPORT"},void 0,"\u8bad\u7ec3\u955c\u50cf"))),(0,n.default)("div",{className:"mirror-build"},void 0,(0,n.default)(m.default,{baseType:a,data:u.default.get(t,"bzTaskParamJson.service"),viewType:this.viewType,setRelyInlayMirrorFunc:this.setValidateFunc,mirrorShowName:"true",from:"trainTemplate",hideSelectMirror:"BUILD_IMPORT"===a}),(0,n.default)(h.default,{setValidateFunc:this.setValidateFunc,data:{}}))))},t}(l.default.PureComponent);y.defaultProps={},t.default=c.Form.create()(y)},"./src/module/modelGuide/trainTemplate/createPage/component/StartParams.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/tooltip/index.js")),o=g(a("./node_modules/antd/es/row/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/babel-runtime/helpers/extends.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var c=g(a("./node_modules/react/index.js")),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(g(a("./node_modules/prop-types/index.js")),g(a("./src/module/modelMirror/components/EnvVariables.jsx"))),h=a("./node_modules/@ant-design/icons/es/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.TextArea,y=p.Form.Item,b=f.default.div.withConfig({displayName:"StartParams__StartParamsConfigDom",componentId:"sc-16l79no-0"})([".ant-row{display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:0;line-height:40px;width:100px;text-align:right;}.ant-form-item{margin-bottom:16px;}.dockerfile-wrapper{padding-left:0px;.ant-form-item{width:100%;}.ant-form-item-control-wrapper{width:80%;}.docker-file-container{padding-left:0;}.ant-legacy-form-item-label{width:108px;margin-left:-38px;}.from-div{line-height:22px;}.CodeMirror-code > div{line-height:18px;}}"]),x={marginTop:0},C={width:"100%",minWidth:"600px",marginTop:6},j=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.setPackageValidateFunc=function(e,t){n.fileFuncs[e]=t},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t?e=!0:n.setState({panelCollapse:!0})}));var t=n.state.moduleData;return Object.keys(n.fileFuncs).map((function(a){var o=n.fileFuncs[a];if(_.isFunction(o)){var s=o.call();e&&(e=s.validate),e&&"relyInlayMirror"===a?(t.engine=s.moduleData.engine,t.language=s.moduleData.language,t.frame=s.moduleData.languageVersion,t.baseMirrorId=s.moduleData.baseMirrorId,t.baseId=s.moduleData.baseId):t=(0,r.default)({},t,s.moduleData)}})),{validate:e,moduleData:(0,r.default)({},t)}},n.handleParamsChange=function(e,t){n.setState((function(a){var n=(0,r.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},n.handleEnvsChange=function(e){n.handleParamsChange("envVars",e)},n.state={moduleData:(0,r.default)({},a.moduleData,{startCommand:a.moduleData.startCommand?a.moduleData.startCommand:""})},n.checkNameRef=c.default.createRef(),n.fileFuncs={};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("startParamsConfig",n.validateFun),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){if(!_.isEqual(e.moduleData,this.props.moduleData)){var t=(0,r.default)({},this.props.moduleData,{startCommand:this.props.moduleData.startCommand?this.props.moduleData.startCommand:""});this.props.form.setFieldsValue(t),this.setState({moduleData:t})}},t.prototype.render=function(){var e=this,t=this.state.moduleData,a=this.props.form.getFieldDecorator,r=this.props,i=r.actionType,d=r.commandRequire;return(0,s.default)(b,{},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(y,{label:"\u6267\u884c\u547d\u4ee4",className:"sm-label"},void 0,a("startCommand",{rules:[{required:d,message:"\u8bf7\u8f93\u5165\u6267\u884c\u547d\u4ee4"}],initialValue:t.startCommand})((0,s.default)(v,{autoSize:{minRows:3,maxRows:5},style:C,placeholder:"python ../train_code/train_main.py",onChange:function(t){return e.handleParamsChange("startCommand",t.target.value)}}))),(0,s.default)(y,{help:""},void 0,(0,s.default)(n.default,{title:"\u591a\u547d\u4ee4\u8bf7\u7528\u201c;\u201d\u9694\u79bb"},void 0,(0,s.default)(h.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),"import"===i&&(0,s.default)(c.default.Fragment,{},void 0,(0,s.default)(m.default,{getFieldDecorator:a,wrapStyle:x,labelText:"\u73af\u5883\u53d8\u91cf",envVariables:t.envVars,onMirrorChange:function(t,a,n){e.handleEnvsChange(t,a,n)}})))},t}(c.default.PureComponent);t.default=p.Form.create()(j)},"./src/module/modelGuide/trainTemplate/detailPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=T(a("./node_modules/antd/es/tooltip/index.js")),o=T(a("./node_modules/babel-runtime/helpers/jsx.js")),s=T(a("./node_modules/antd/es/message/index.js")),r=T(a("./node_modules/antd/es/modal/index.js")),i=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=T(a("./node_modules/babel-runtime/helpers/inherits.js")),u=T(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=T(a("./node_modules/react/index.js")),p=(T(a("./node_modules/prop-types/index.js")),T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=T(a("./node_modules/dayjs/dayjs.min.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./src/components/index.js"),g=a("./src/utils/history.js"),v=a("./src/routes/routeHelper.jsx"),y=T(a("./src/redux/services/trainTemplate.js")),b=a("./src/module/modelGuide/modelEnums.js"),x=a("./src/module/modelGuide/utils.js"),C=T(a("./src/components/button/index.js")),j=T(a("./src/module/modelGuide/trainTemplate/detailPage/components/OnlineTemplate.jsx")),S=T(a("./src/module/modelGuide/trainTemplate/detailPage/components/DevelopmentInterface.jsx")),I=T(a("./src/module/modelGuide/trainTemplate/detailPage/components/ImportInterface.jsx"));function T(e){return e&&e.__esModule?e:{default:e}}var w=C.default.GhostButton,E=u.default.Option,D=p.default.div.withConfig({displayName:"BaseInfo__DetailBaseInfoWrapper",componentId:"a6rvij-0"})(["display:flex;border:1px solid #eee;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:100%;margin-right:0;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;justify-content:space-between;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line1-left{display:flex;}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:12px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-status{display:flex;justify-content:center;align-items:center;margin-right:4px;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{min-width:200px;display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}.item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.base__version-select{width:200px;}"]),M=(0,o.default)("span",{},void 0,"\u5207\u6362\u7248\u672c\uff1a"),k=(0,o.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),P=(0,o.default)(m.LoadingOutlined,{className:"refresh-icon"}),L=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){n.fetchTemplateInfo(),n.fetchVersionsData()},n.fetchTemplateInfo=function(){y.default.getTrainTemplateInfo(n.props.templateId).then((function(e){n.setState({templateInfo:e.data||{},refreshing:!1})}))},n.fetchVersionsData=function(){n.props.templateId&&y.default.getTemplateVersionList(n.props.templateId).then((function(e){var t=e.data||[];t&&0!==t.length||(0,g.navigateTo)(v.trainTemplateUrl.list());var a=_.get(t,"[0].templateVersionId");n.props.templateVersionId||n.changeTemplateVersion(a),n.setState({versionList:t})}))},n.handleOperation=function(e){switch(e.key){case"up":case"import":case"development":n.openModal(e.key);break;case"down":n.handleOfflineAction(e.key);break;case"delete":n.handleDeleteAction(e.key)}},n.handleOfflineAction=function(){r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4e0b\u7ebf\u6b64\u6a21\u677f\u7248\u672c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e,t){y.default.updateTrainTemplateVersionInfo(n.props.templateId,n.props.templateVersionId,{templateStatus:"OFFLINE"}).then((function(){s.default.success("\u4e0b\u7ebf\u64cd\u4f5c\u6210\u529f"),n.props.onVersionChange&&n.props.onVersionChange(n.props.templateVersionId),e()})).catch((function(e){t(e)}))}))}})},n.handleDeleteAction=function(){r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u6b64\u6a21\u677f\u7248\u672c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e,t){y.default.deleteTrainTemplateVersion(n.props.templateId,n.props.templateVersionId).then((function(){Array.isArray(n.state.versionList)&&n.state.versionList.length>1?(n.changeTemplateVersion(""),n.fetchVersionsData()):(s.default.success("\u5220\u9664\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,g.navigateTo)(v.trainTemplateUrl.list())}),2e3)),e()})).catch((function(e){t(e)}))}))}})},n.openModal=function(e){n.setState({modalType:e,modalVisible:!0})},n.callVisible=function(e){n.setState({modalVisible:!1}),e&&n.props.onVersionChange(n.props.templateVersionId)},n.handleRefresh=function(){n.setState({refreshing:!0}),n.fetchData(),n.props.onVersionChange(n.props.templateVersionId)},n.changeTemplateVersion=function(e){n.props.onVersionChange(e)},n.state={loading:!1,refreshing:!1,templateInfo:{},versionList:[],optPermissions:{},modalType:"up"},n.items=[{key:"appCategoryName",name:"\u5e94\u7528\u5927\u7c7b",type:"text"},{key:"appTypeName",name:"\u5e94\u7528\u5c0f\u7c7b",type:"text"},{key:"templateVersionName",name:"\u7248\u672c\u53f7",type:"text"},{key:"froms",name:"\u7248\u672c\u6765\u6e90",type:"map",mapObj:b.TRAIN_TEMPLATE_FROM},{key:"onlineRange",name:"\u4e0a\u7ebf\u8303\u56f4",type:"map",mapObj:b.ONLINE_RANGE},{key:"createBy",name:"\u521b\u5efa\u4eba",type:"text"},{key:"createAt",name:"\u521b\u5efa\u65f6\u95f4",type:"date"}],n.optsBtn=[{key:"up",text:"\u4e0a\u7ebf",action:"START"},{key:"down",text:"\u4e0b\u7ebf",action:"STOP"},{key:"import",text:"\u5bfc\u5165\u63a8\u7406\u63a5\u53e3",action:"REASSIGN"},{key:"delete",text:"\u5220\u9664\u7248\u672c",action:"DELETE"}],n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){if(!_.isEqual(e.versionInfo,this.props.versionInfo)){var t=(0,x.getTemplateOptPermission)(this.props.versionInfo.templateStatus,this.props.versionInfo.froms);this.setState({optPermissions:t})}},t.prototype.render=function(){var e=this,t=this.state,a=t.templateInfo,s=t.refreshing,r=t.loading,i=t.versionList,d=t.optPermissions,l=t.modalType,c=this.props.versionInfo,p=function(e){return{up:"\u4e0a\u7ebf",development:"\u5f00\u53d1\u63a8\u7406\u63a5\u53e3",import:"\u5bfc\u5165\u63a8\u7406\u63a5\u53e3"}[e]}(l),g=["import"].includes(l)?1200:700;return(0,o.default)(D,{},void 0,(0,o.default)(h.ModalView,{modalTitle:p,closable:!0,width:g,centered:!0,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:"up"===l?(0,o.default)(j.default,{closeModal:e.callVisible,onlineRange:c.onlineRange,templateId:e.props.templateId,templateVersionId:e.props.templateVersionId}):"development"===l?(0,o.default)(S.default,{closeModal:e.callVisible,templateId:a.templateId,templateVersionId:e.props.templateVersionId,appId:a.appId}):"import"===l?(0,o.default)(I.default,{closeModal:e.callVisible,templateId:a.templateId,templateVersionId:e.props.templateVersionId}):void 0}),(0,o.default)("div",{className:"left__content-wrapper"},void 0,(0,o.default)("div",{className:"left__top-wrapper"},void 0,(0,o.default)("div",{className:"left__top-line1"},void 0,(0,o.default)("div",{className:"left__top-line1-left"},void 0,(0,o.default)("div",{className:"base__info-name top__line1-section"},void 0,c.templateName),(0,o.default)("div",{className:"base__info-status top__line1-section"},void 0,"ERROR"===c.templateStatus?(0,o.default)(n.default,{placement:"topLeft",title:c.message},void 0,(0,o.default)("div",{},void 0,(0,o.default)(h.StateLabel,{source:"trainTemplate",code:c.templateStatus}))):(0,o.default)(h.StateLabel,{source:"trainTemplate",code:c.templateStatus}))),(0,o.default)("div",{className:"base__version-select"},void 0,M,(0,o.default)(u.default,{onChange:this.changeTemplateVersion,style:{width:80},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",value:c.templateVersionId},void 0,Array.isArray(i)&&i.map((function(e){return(0,o.default)(E,{value:e.templateVersionId},e.templateVersionId,e.templateVersionName)}))))),(0,o.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",c.templateDesc," ")),(0,o.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(e){return"map"===e.type?!e.hidden&&(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,e.mapObj&&e.mapObj.getDesc(c[e.key]))):"date"===e.type?(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,c[e.key]?(0,f.default)(c[e.key]).format("YYYY-MM-DD HH:mm:ss"):"--")):!e.hidden&&(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,(0,o.default)(n.default,{placement:"topLeft",title:c[e.key],arrowPointAtCenter:!0},void 0,c[e.key])))})))),(0,o.default)("div",{className:"right__content-wrapper"},void 0,k,(0,o.default)(h.RefreshButton,{onRefresh:this.handleRefresh,style:{display:"none"}}),s&&r?P:(0,o.default)(n.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,o.default)(m.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})),(0,o.default)("div",{className:"right__bottom-wrapper"},void 0,this.optsBtn.map((function(t){return d[t.key]&&("up"!==t.key||!_.isEmpty(c.templateFiles))&&(0,o.default)(w,{action:_.upperCase(t.action,""),width:"20",txt:t.text,onClick:function(){return e.handleOperation(t)},className:"fn-left opt-btn"},t.key)})))))},t}(c.default.Component);t.default=L},"./src/module/modelGuide/trainTemplate/detailPage/ConfigInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/tooltip/index.js")),o=x(a("./node_modules/babel-runtime/helpers/extends.js")),s=x(a("./node_modules/antd/es/row/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js")),u=x(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/react-router-dom/esm/react-router-dom.js"),m=a("./src/components/index.js"),h=a("./src/utils/commonUtil.js"),g=a("./src/module/modelGuide/trainTask/viewPage/components/AvailableQuota.jsx"),v=x(a("./src/module/devCenter/apiDoc/SchemaTable.jsx")),y=a("./src/module/devCenter/components/IoSchema/utils.js"),b=a("./src/routes/routeHelper.jsx");function x(e){return e&&e.__esModule?e:{default:e}}var C=u.default.Item,j=p.default.div.withConfig({displayName:"ConfigInfo__DetailInfoWrapper",componentId:"sc-1unzkme-0"})(["display:flex;flex-wrap:wrap;.service__address-wrapper{display:flex !important;.ant-legacy-form-item-label{width:70px;}}.ant-checkbox-wrapper + .ant-checkbox-wrapper{margin-left:0;}.item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:300px;display:block;}.ant-row{margin-bottom:0;}"]),S=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.state={serviceConfigInfo:{}},n}return(0,l.default)(t,e),t.prototype.render=function(){var e={marginBottom:0,marginLeft:16},t={width:"50%"},a=this.props.versionInfo,i=_.get(a,"quotaParams");i=(0,h.isJsonString)(i)?JSON.parse(i):{};var d=_.get(a,"deployParams")||"{}";d=(0,h.isJsonString)(d)?JSON.parse(d):{};var l=_.get(a,"mirrorVersion"),p=_.get(a,"templateFiles");return(0,r.default)(j,{},void 0,(0,r.default)(m.ModelConfigPanel,{title:"\u955c\u50cf\u4fe1\u606f",style:t},void 0,(0,r.default)(u.default,{},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(C,{label:"\u8bed\u8a00"},void 0,_.get(l,"language")||"--"),(0,r.default)(C,{label:"\u5f15\u64ce",style:e},void 0,_.get(l,"versionEngine")||"--"),(0,r.default)(C,{label:"\u6846\u67b6",style:e},void 0,_.get(l,"frame")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(C,{label:"\u8bad\u7ec3\u955c\u50cf\u540d\u79f0"},void 0,(0,r.default)(f.Link,{to:{pathname:b.modelMirrorUrl.versionDetail("train",_.get(l,"mirrorId"),"process")}},void 0,_.get(l,"mirrorShowName")||"--")),(0,r.default)(C,{label:"\u7248\u672c",style:e},void 0,(0,r.default)(f.Link,{to:{pathname:b.modelMirrorUrl.versionDetail("train",_.get(l,"mirrorId"),"process",_.get(l,"versionId"))}},void 0,_.get(l,"versionShowName")||"--"))))),(0,r.default)(m.ModelConfigPanel,{title:"\u5efa\u8bae\u8d44\u6e90\u914d\u7f6e",style:t},void 0,c.default.createElement(u.default,(0,o.default)({},{layout:"inline",labelAlign:"left"},{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTemplate\\detailPage\\ConfigInfo.jsx",lineNumber:102}}),(0,r.default)(s.default,{},void 0,(0,r.default)(C,{label:"CPU\uff08core\uff09"},void 0,i.cpu||0),(0,r.default)(C,{style:e,label:"\u5185\u5b58\uff08GB\uff09"},void 0,i.memory)),(0,r.default)(s.default,{},void 0,(0,r.default)(C,{style:e,label:"GPU\uff08\u6570\u91cf\uff09"},void 0,(0,g.renderGpu)(i.gpu))),(0,r.default)(s.default,{},void 0,(0,r.default)(C,{style:e,label:"\u5b9e\u4f8b\u4e2a\u6570"},void 0,a.deploymentReplicas||1)))),(0,r.default)(m.ModelConfigPanel,{title:"\u542f\u52a8\u53c2\u6570",style:t},void 0,(0,r.default)(u.default,{},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(C,{label:"\u6267\u884c\u547d\u4ee4"},void 0,(0,r.default)("span",{className:"item-text"},void 0,(0,r.default)(n.default,{placement:"topLeft",title:d.startCommand},void 0,d.startCommand||"--")))),(0,r.default)(s.default,{},void 0,(0,r.default)(C,{label:"\u73af\u5883\u53d8\u91cf"},void 0,(0,r.default)("span",{style:{display:"flex",flexWrap:"wrap"}},void 0,Array.isArray(d.envVars)&&d.envVars.length>0?d.envVars.map((function(e,t){return(0,r.default)("span",{style:{marginLeft:6}},t,(e.name?e.name+"=":"--")+e.value)})):"--"))))),(0,r.default)(m.ModelConfigPanel,{title:"\u63a5\u53e3\u6587\u4ef6",style:t},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(C,{label:"\u5728\u7ebf\u63a8\u7406\u63a5\u53e3"},void 0,"\u540d\u79f0\uff1a",_.get(p,"onlinePredict.name")||"--"," \xa0\xa0 \u5927\u5c0f\uff1a",_.get(p,"onlinePredict.size")?_.get(p,"onlinePredict.size")+"byte":"--","\xa0\xa0")),(0,r.default)(s.default,{},void 0,(0,r.default)(C,{label:"\u79bb\u7ebf\u63a8\u7406\u63a5\u53e3"},void 0,"\u540d\u79f0\uff1a",_.get(p,"offlinePredict.name")||"--"," \xa0\xa0 \u5927\u5c0f\uff1a",_.get(p,"offlinePredict.size")?_.get(p,"offlinePredict.size")+"byte":"--","\xa0\xa0"))),(0,r.default)(m.ModelConfigPanel,{title:"\u8f93\u5165\u53c2\u6570",style:{width:"100%"}},void 0,(0,r.default)(v.default,{noImageCol:!0,noCacheCol:!0,wrapperStyle:{marginRight:20,flex:"0 1 auto"},data:a.dsParams?(0,y.schemaConvertTable)(JSON.parse(a.dsParams),!0,!0):[]})),(0,r.default)(m.ModelConfigPanel,{title:"\u8f93\u51fa\u53c2\u6570",style:{width:"100%"}},void 0,(0,r.default)(v.default,{noImageCol:!0,noCacheCol:!0,wrapperStyle:{marginRight:20,flex:"0 1 auto"},data:a.trainOutput?(0,y.schemaConvertTable)(JSON.parse(a.trainOutput),!0,!0):[]})),(0,r.default)(m.ModelConfigPanel,{title:"\u7b97\u6cd5\u53c2\u6570",style:{width:"100%"}},void 0,(0,r.default)(v.default,{noImageCol:!0,noCacheCol:!0,wrapperStyle:{marginRight:20,flex:"0 1 auto"},data:a.algParams?(0,y.schemaConvertTable)(JSON.parse(a.algParams),!0,!0):[]})))},t}(c.default.Component);t.default=S},"./src/module/modelGuide/trainTemplate/detailPage/TemplateDetailPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/modal/index.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/antd/es/message/index.js")),r=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=x(a("./node_modules/babel-runtime/helpers/inherits.js")),l=x(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var u=x(a("./node_modules/react/index.js")),c=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),f=x(a("./src/module/modelGuide/trainTemplate/detailPage/ConfigInfo.jsx")),m=x(a("./src/redux/services/trainTemplate.js")),h=x(a("./src/redux/services/codeService.js")),g=x(a("./src/module/modelGuide/trainTemplate/createPage/component/FileTreeTable.jsx")),v=x(a("./src/module/modelGuide/trainTemplate/detailPage/BaseInfo.jsx")),y=a("./src/utils/history.js"),b=a("./src/routes/routeHelper.jsx");function x(e){return e&&e.__esModule?e:{default:e}}var C=l.default.TabPane,j=c.default.div.withConfig({displayName:"TemplateDetailPage__ModelServiceDetailWrapper",componentId:"sc-1h1ln7f-0"})(["width:100%;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{margin-top:20px;.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-tab{font-size:16px;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);}}"]),S=c.default.div.withConfig({displayName:"TemplateDetailPage__TabContent",componentId:"sc-1h1ln7f-1"})(["background:#fff;min-height:500px;width:100%;padding:16px 0;"]),I=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.fetchModelTrees=function(){n.projectId&&(n.setState({modelVisible:!0}),h.default.getModelTrees(n.projectId).then((function(e){var t=e.data||[],a=["data","log","config","predict_code","result","other"];t=t.filter((function(e){return e.path&&a.some((function(t){return e.path.includes(t)}))})),n.setState({modelFiles:t})})))},n.onChange=function(e){n.setState({activeTab:e})},n.handleVersionChange=function(e){n.setState({versionId:e}),n.fetchVersionsInfo(e)},n.fetchVersionsInfo=function(e){n.templateId&&e&&m.default.getTemplateVersionInfo(n.templateId,e).then((function(e){n.setState({versionInfo:e.data||{},refreshing:!1,loading:!1})}))},n.interfaceDepConfirm=function(){var e=[];Object.keys(n.importValidateFuncs).map((function(t){var a=n.importValidateFuncs[t];if(_.isFunction(a)){var o=a.call();e=o.moduleData}})),n.setState({confirmLoading:!0}),h.default.publishModelInterface({templateId:n.templateId,templateVersionId:n.templateVersionId,anbModelId:n.projectId,codeType:"online-predict"===n.codeType?"PREDICT":"OFFLINE_PREDICT",codeFiles:_.get(e,"resources.codeFiles",[])}).then((function(){s.default.success("\u4fdd\u5b58\u6267\u884c\u6210\u529f\uff01"),(0,y.navigateTo)(b.trainTemplateUrl.detail(n.templateId,n.templateVersionId)),n.setState({confirmLoading:!1}),n.handleCancel()})).catch((function(e){throw n.setState({confirmLoading:!1}),e}))},n.setImportValidateFunc=function(e,t){n.importValidateFuncs[e]=t},n.handleCancel=function(){n.setState({modelVisible:!1})},n.templateId=_.get(a.match.params,"templateId"),n.templateVersionId=_.get(a.match.params,"versionId");var o=(0,y.parseParms)(a.location);return n.codeType=_.get(o,"codeType"),n.projectId=_.get(o,"projectId"),n.state={activeTab:"info",versionId:n.templateVersionId,versionInfo:{},modelFiles:[]},n.importValidateFuncs={},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.templateVersionId&&this.handleVersionChange(this.templateVersionId),this.codeType&&this.fetchModelTrees()},t.prototype.render=function(){var e=this.state,t=e.versionId,a=e.activeTab,s=e.versionInfo,r=e.modelFiles;return(0,o.default)(j,{},void 0,(0,o.default)(n.default,{title:"\u63a5\u53e3\u6587\u4ef6",width:"60%",style:{top:"20px"},bodyStyle:{height:"450px"},visible:this.state.modelVisible,onCancel:this.handleCancel,confirmLoading:this.state.confirmLoading,onOk:this.interfaceDepConfirm},void 0,(0,o.default)("div",{style:{height:400,overflow:"auto"}},void 0,(0,o.default)(g.default,{setImportValidateFunc:this.setImportValidateFunc,modelFiles:r,requiredFolder:"predict_code"}))),(0,o.default)(v.default,{templateId:this.templateId,templateVersionId:t,versionInfo:s,onVersionChange:this.handleVersionChange}),(0,o.default)(l.default,{onChange:this.onChange,activeKey:""+a,className:"modelApply-tabs"},void 0,(0,o.default)(C,{tab:"\u914d\u7f6e\u4fe1\u606f"},"info",(0,o.default)(S,{},void 0,(0,o.default)(f.default,{templateId:this.templateId,versionId:t,versionInfo:s})))))},t}(u.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(I)},"./src/module/modelGuide/trainTemplate/detailPage/components/DevelopmentInterface.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/antd/es/alert/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js")),l=v(a("./node_modules/antd/es/form/index.js")),u=v(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var c=v(a("./node_modules/react/index.js")),p=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(a("./node_modules/prop-types/index.js"),a("./src/components/index.js")),m=a("./src/module/modelGuide/modelEnums.js"),h=v(a("./src/redux/services/codeService.js")),g=a("./src/utils/authPermit.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=u.default.Group,b=m.INTERFACE_TYPE.getValueAndDescList(),x=p.default.div.withConfig({displayName:"DevelopmentInterface__Wrapper",componentId:"e28jlq-0"})(["display:flex;flex-direction:column;.ant-form{margin-left:32px;margin-bottom:20px;}"]),C=p.default.div.withConfig({displayName:"DevelopmentInterface__ButtonDom",componentId:"e28jlq-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),j=l.default.Item,S=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.submitConfirm=function(){var e=n.state.interfaceType===m.INTERFACE_TYPE.ONLINE?"PREDICT":"OFFLINE_PREDICT";h.default.jumpCodeModelByTemplate({templateId:n.props.templateId,templateVersionId:n.props.templateVersionId,codeType:e,projectId:n.projectId,businessType:n.props.appId}).then((function(t){var a=_.get(t,"data");a=a+"&appId="+n.props.appId,window.open(a,e+"-"+n.props.templateVersionId+"-"+n.projectId),n.setState({jumpCodeLoading:!1})})).catch((function(e){throw n.setState({jumpCodeLoading:!1}),e}))},n.handleParamsChange=function(e){n.setState({interfaceType:e.target.value})},n.state={interfaceType:b[0].code};var o=(0,g.getCurrentContext)(),s=o.role,d=o.id;return"PROJECT"===s&&(n.projectId=d),n.formRef=c.default.createRef(),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this;return(0,s.default)(x,{},void 0,(0,s.default)(f.ModelConfigPanel,{title:"\u5f00\u53d1\u63a8\u7406\u63a5\u53e3"},void 0,c.default.createElement(l.default,{name:"onlineRange",initialValues:{interfaceType:this.state.interfaceType},ref:this.formRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTemplate\\detailPage\\components\\DevelopmentInterface.jsx",lineNumber:81}},(0,s.default)(j,{name:"interfaceType",label:""},void 0,(0,s.default)(y,{onChange:this.handleParamsChange},void 0,b.map((function(e){return(0,s.default)(u.default,{value:e.code},e.code,"\u5f00\u53d1",e.desc)})))),(0,s.default)(o.default,{message:"\u82e5\u5df2\u6709\u8be5\u7c7b\u578b\u63a5\u53e3\uff0c\u65b0\u5f00\u53d1\u5e76\u53d1\u5e03\u7684\u63a5\u53e3\u6587\u6863\u5c06\u8fdb\u884c\u8986\u76d6",banner:!0,style:{width:360}}))),(0,s.default)(C,{},void 0,(0,s.default)(n.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,s.default)(n.default,{loading:this.state.confirmLoading,onClick:this.submitConfirm,style:{marginLeft:10},type:"primary"},void 0,"\u786e\u5b9a")))},t}(c.default.Component);t.default=S},"./src/module/modelGuide/trainTemplate/detailPage/components/ImportInterface.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=T(a("./node_modules/antd/es/button/index.js")),o=T(a("./node_modules/antd/es/alert/index.js")),s=T(a("./node_modules/antd/es/upload/index.js")),r=T(a("./node_modules/babel-runtime/helpers/extends.js")),i=T(a("./node_modules/antd/es/row/index.js")),d=T(a("./node_modules/babel-runtime/helpers/jsx.js")),l=T(a("./node_modules/antd/es/message/index.js")),u=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=T(a("./node_modules/babel-runtime/helpers/inherits.js")),f=T(a("./node_modules/antd/es/input/index.js")),m=T(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var h=T(a("./node_modules/react/index.js")),g=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=(a("./node_modules/prop-types/index.js"),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var y=a("./src/utils/publicPath.js"),b=a("./src/utils/authPermit.js"),x=T(a("./src/redux/services/trainTemplate.js")),C=a("./src/components/index.js"),j=a("./src/utils/constants.js"),S=a("./src/redux/services/serviceCode.js"),I=a("./src/module/modelGuide/modelEnums.js");function T(e){return e&&e.__esModule?e:{default:e}}var w=m.default.Option,E=v.Form.Item,D=f.default.Group,M=g.default.div.withConfig({displayName:"ImportInterface__Wrapper",componentId:"sc-13neovm-0"})(["display:flex;flex-direction:column;.ant-form{margin-left:32px;margin-bottom:20px;}"]),k=g.default.div.withConfig({displayName:"ImportInterface__ButtonDom",componentId:"sc-13neovm-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),P=I.INTERFACE_TYPE.getValueAndDescList(),L=(0,d.default)(w,{value:""},void 0,"\u9009\u62e9\u63a5\u53e3\u7c7b\u578b"),N=(0,d.default)(n.default,{},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"),A=(0,d.default)(w,{value:""},void 0,"\u8bf7\u9009\u62e9FTP\u6216\u8005\u4e0a\u4f20\u6587\u4ef6"),R=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.fetchData=function(){(0,S.getFtpDropDown)().then((function(e){e&&n.setState({ftpDatas:e.data})})).catch((function(e){l.default.error(_.get(e,"message","ftp\u8def\u5f84\u67e5\u8be2\u5931\u8d25"))}))},n.getValBlur=function(e,t){if("ftpId"===t)for(var a=n.state.ftpDatas,o=0;o<a.length;o++)if(a[o].id===e){n.setState({ftpPath:a[o].storagePath});break}n.file[t]=e},n.setUploadType=function(e){n.file.fileSource=e,"UPLOAD_WEB"===e&&(n.file.ftpFileName=""),n.setState({uploadType:e})},n.handleInterfaceTypeChange=function(e){n.setState({codeType:e})},n.submitConfirm=function(){n.props.form.validateFieldsAndScroll((function(e){if(null===e){var t=n.file;if("FTP"===n.state.uploadType){var a=t.ftpFileName,o=a?a.lastIndexOf("/"):-1;o>-1&&(t.ftpFilePath=a.slice(0,o+1),t.ftpFileName=a.slice(o+1)),t=_.omit(t,["fileId","fileName"])}else t=_.omit(t,["ftpFilePath","ftpFileName","ftpId"]);var s={codeType:n.state.codeType,resources:t};n.importInterface(s)}}))},n.importInterface=function(e){var t=n.props,a=t.templateId,o=t.templateVersionId;n.setState({confirmLoading:!0}),x.default.importInterface(a,o,e).then((function(){n.setState({confirmLoading:!1}),l.default.success("\u5bfc\u5165\u6267\u884c\u6210\u529f!"),n.props.closeModal(!0)})).catch((function(e){throw n.setState({confirmLoading:!1}),e}))},n.state={uploadType:"FTP",codeType:P[0].code,ftpDatas:[]},n.file={},n.formRef=h.default.createRef(),n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this,u={name:"file",action:(0,y.urlFormat)("/resources/action/upload",j.ServicePath.SIC_SERVICE),headers:{Authorization:(0,b.getToken)()},onChange:function(e){var t=[].concat(e.fileList);if(t=(t=t.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),a.setState({fileList:t}),"uploading"===e.file.status&&l.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status){if(void 0!==e.file.response.data&&""!==e.file.response.data){var n=_.get(e.file.response,"data","");a.file.fileId=n,a.file.fileName=e.file.name}}else"error"===e.file.status?l.default.error(e.file.name+" \u4e0a\u4f20\u51fa\u9519!"):"removed"===e.file.status&&(a.file.fileId="",a.file.fileName="")}};return(0,d.default)(M,{},void 0,(0,d.default)(C.ModelConfigPanel,{title:"\u5f00\u53d1\u63a8\u7406\u63a5\u53e3"},void 0,(0,d.default)(v.Form,{layout:"inline"},void 0,(0,d.default)(i.default,{},void 0,(0,d.default)(E,{label:"\u4e0a\u4f20\u4fe1\u606f"},void 0,t("codeType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u63a5\u53e3\u7c7b\u578b"}],initialValue:this.state.codeType})((0,d.default)(m.default,{style:{width:150},onChange:this.handleInterfaceTypeChange,placeholder:"\u9009\u62e9\u63a5\u53e3\u7c7b\u578b"},void 0,L,P.map((function(e,t){return(0,d.default)(w,{value:e.code},t,e.desc)}))))),(0,d.default)(E,{},void 0,t("uploadType",{rules:[{required:!0}],initialValue:this.state.uploadType})((0,d.default)(m.default,{style:{width:120},onChange:function(t){return e.setUploadType(t)},placeholder:"\u8bf7\u9009\u62e9\u6587\u4ef6\u4e0a\u4f20\u65b9\u5f0f"},void 0,I.FILE_SOURCE.getValueAndDescList().map((function(e,t){return(0,d.default)(w,{value:e.code},t,e.desc)}))))),"UPLOAD_WEB"===this.state.uploadType&&(0,d.default)(E,{},void 0,h.default.createElement(s.default,(0,r.default)({fileList:this.state.fileList},u,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTemplate\\detailPage\\components\\ImportInterface.jsx",lineNumber:216}}),N)),"FTP"===this.state.uploadType&&(0,d.default)("div",{style:{display:"initial"}},void 0,(0,d.default)(D,{style:{width:500},compact:!0},void 0,(0,d.default)(E,{},void 0,t("ftpId",{rules:[{required:"FTP"===this.state.uploadType,message:"\u8bf7\u9009\u62e9\u5219ftp"}],initialValue:this.file.ftpId})((0,d.default)(m.default,{style:{width:150},onChange:function(t){return e.getValBlur(t,"ftpId")},placeholder:"\u8bf7\u9009\u62e9"},void 0,A,this.state.ftpDatas.map((function(e,t){return(0,d.default)(w,{value:e.id},t,e.storageName)}))))),(0,d.default)(E,{},void 0,(0,d.default)(f.default,{disabled:!0,title:this.state.ftpPath,placeholder:this.state.ftpPath?this.state.ftpPath:"\u9ed8\u8ba4\u8def\u5f84",style:{width:120,borderRadius:0,height:32}})),(0,d.default)(E,{},void 0,t("ftpFileName",{initialValue:this.file.ftpFileName,rules:[{required:!0,message:"\u8bf7\u586b\u5199\u6587\u4ef6\u8def\u5f84"},{max:100}]})((0,d.default)(f.default,{style:{width:120,borderTopLeftRadius:0,borderBottomLeftRadius:0,height:32},placeholder:"\u8bf7\u8f93\u8def\u5f84",onBlur:function(t){return e.getValBlur(t.target.value,"ftpFileName")}})))))),(0,d.default)(o.default,{message:"\u82e5\u5df2\u6709\u8be5\u7c7b\u578b\u63a5\u53e3\uff0c\u65b0\u4e0a\u4f20\u7684\u63a5\u53e3\u6587\u6863\u5c06\u8fdb\u884c\u8986\u76d6",banner:!0,style:{width:315,marginTop:12,marginLeft:70}}))),(0,d.default)(k,{},void 0,(0,d.default)(n.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,d.default)(n.default,{loading:this.state.confirmLoading,onClick:this.submitConfirm,style:{marginLeft:10},type:"primary"},void 0,"\u786e\u5b9a")))},t}(h.default.Component);t.default=v.Form.create()(R)},"./src/module/modelGuide/trainTemplate/detailPage/components/OnlineTemplate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/antd/es/message/index.js")),r=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=g(a("./node_modules/babel-runtime/helpers/inherits.js")),l=g(a("./node_modules/antd/es/form/index.js")),u=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=g(a("./node_modules/react/index.js")),p=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(a("./node_modules/prop-types/index.js"),g(a("./src/redux/services/trainTemplate.js"))),m=a("./src/components/index.js"),h=a("./src/module/modelGuide/modelEnums.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.Option,_=h.ONLINE_RANGE.getValueAndDescList(),y=p.default.div.withConfig({displayName:"OnlineTemplate__Wrapper",componentId:"sc-687sms-0"})(["display:flex;flex-direction:column;.ant-form{margin-left:32px;margin-bottom:20px;}"]),b=p.default.div.withConfig({displayName:"OnlineTemplate__ButtonDom",componentId:"sc-687sms-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),x=l.default.Item,C=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.submitConfirm=function(){n.formRef.current.validateFields().then((function(){n.setState({confirmLoading:!0}),f.default.updateTrainTemplateVersionInfo(n.props.templateId,n.props.templateVersionId,{onlineRange:n.state.onlineRange,templateStatus:"ONLINE"}).then((function(){n.setState({confirmLoading:!1}),s.default.success("\u4e0a\u7ebf\u6210\u529f!"),n.props.closeModal(!0)})).catch((function(e){throw n.setState({confirmLoading:!1}),e}))}))},n.handleParamsChange=function(e){n.setState({onlineRange:e})},n.state={onlineRange:a.onlineRange||_[0].code},n.formRef=c.default.createRef(),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.componentDidUpdate=function(e){e.onlineRange!==this.props.onlineRange&&this.setState({onlineRange:this.props.onlineRange})},t.prototype.render=function(){var e=this;return(0,o.default)(y,{},void 0,(0,o.default)(m.ModelConfigPanel,{title:"\u4e0a\u7ebf\u8303\u56f4"},void 0,c.default.createElement(l.default,{name:"onlineRange",initialValues:{onlineRange:this.state.onlineRange},ref:this.formRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTemplate\\detailPage\\components\\OnlineTemplate.jsx",lineNumber:76}},(0,o.default)(x,{name:"onlineRange",label:"\u4e0a\u7ebf\u8303\u56f4",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4e0a\u7ebf\u8303\u56f4"}]},void 0,(0,o.default)(u.default,{placeholder:"\u8bf7\u9009\u62e9\u4e0a\u7ebf\u8303\u56f4",onChange:this.handleParamsChange,style:{width:200}},void 0,_.map((function(e){return(0,o.default)(v,{value:e.code},e.code,e.desc)})))))),(0,o.default)(b,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,o.default)(n.default,{loading:this.state.confirmLoading,onClick:this.submitConfirm,style:{marginLeft:10},type:"primary"},void 0,"\u786e\u5b9a")))},t}(c.default.Component);t.default=C},"./src/module/modelGuide/trainTemplate/editPage/TemplateEditPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/antd/es/row/index.js")),s=S(a("./node_modules/babel-runtime/helpers/jsx.js")),r=S(a("./node_modules/antd/es/message/index.js")),i=S(a("./node_modules/antd/es/modal/index.js")),d=S(a("./node_modules/babel-runtime/regenerator/index.js")),l=S(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=S(a("./node_modules/babel-runtime/helpers/extends.js")),c=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=S(a("./node_modules/babel-runtime/helpers/inherits.js")),m=S(a("./node_modules/antd/es/input/index.js")),h=S(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var g=S(a("./node_modules/react/index.js")),v=S(a("./node_modules/lodash/lodash.js")),_=(S(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),y=S(a("./src/redux/services/trainTemplate.js")),b=a("./src/module/modelGuide/trainTemplate/styled.jsx"),x=S(a("./src/module/modelGuide/trainTemplate/createPage/component/AppCategorySelect.jsx")),C=a("./src/utils/history.js"),j=a("./src/routes/routeHelper.jsx");function S(e){return e&&e.__esModule?e:{default:e}}var I=h.default.Item,T=m.default.TextArea,w=function(e){function t(a){var n=this;(0,c.default)(this,t);var o=(0,p.default)(this,e.call(this,a));return o.formRef=g.default.createRef(),o.fetchTemplateList=function(){y.default.getTrainTemplateInfo(o.templateId).then((function(e){var t=v.default.get(e,"data",{})||{},a=t.templateId,n=t.templateName,s=t.templateDesc,r=t.appCategory,i=t.appType;o.setState({templateInfo:{templateId:a,templateName:n,templateDesc:s,appCategory:r,appType:i}}),o.formRef.current.setFieldsValue({templateName:n,templateDesc:s})}))},o.setAppClassify=function(e){o.setState((function(t){return{templateInfo:(0,u.default)({},t.templateInfo,{appCategory:e.appBig,appType:e.appSmall})}}))},o.getValBlur=function(e,t){o.setState((function(a){var n;return{templateInfo:(0,u.default)({},a.templateInfo,(n={},n[t]=e,n))}}))},o.templateNameValid=function(){var e=(0,l.default)(d.default.mark((function e(t,a){return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.setState({validateStatus:""}),a&&a.trim()){e.next=4;break}throw o.setState({validateStatus:"error"}),new Error("\u8bf7\u8f93\u5165\u6a21\u677f\u540d\u79f0");case 4:if(!(a.length>30)){e.next=7;break}throw o.setState({validateStatus:"error"}),new Error("\u6a21\u677f\u540d\u79f0\u4e0d\u8d85\u8fc730\u4e2a\u5b57\u7b26");case 7:return o.setState({validateStatus:"validating"}),e.next=10,y.default.checkTemplateNameRepeat({templateId:o.templateId,templateName:a});case 10:if(!e.sent.data){e.next=14;break}throw o.setState({validateStatus:"error"}),new Error("\u6a21\u677f\u540d\u79f0\u91cd\u590d");case 14:o.setState({validateStatus:"success"});case 15:case"end":return e.stop()}}),e,n)})));return function(t,a){return e.apply(this,arguments)}}(),o.setValidateFunc=function(e,t){o.validateFuncs[e]=t},o.submitTemplate=(0,l.default)(d.default.mark((function e(){var t,a,s;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(event.preventDefault(),t=!0,a=o.state.templateInfo,Object.keys(o.validateFuncs).map((function(e){var n=o.validateFuncs[e];if(v.default.isFunction(n)){var s=n.call();a=(0,u.default)({},a,s.moduleData),t&&(t=s.validate)}})),t){e.next=6;break}return e.abrupt("return");case 6:s=o,o.formRef.current.validateFields().then((function(){i.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",confirmLoading:o.state.saveLoading,onOk:function(){s.saveTemplate(a)},onCancel:function(){}})}));case 8:case"end":return e.stop()}}),e,n)}))),o.saveTemplate=function(e){o.setState({saveLoading:!0}),y.default.updateTrainTemplateInfo((0,u.default)({},o.state.templateInfo,e)).then((function(){o.setState({saveLoading:!1}),r.default.success("\u4fdd\u5b58\u6210\u529f!"),setTimeout((function(){return(0,C.navigateTo)(j.trainTemplateUrl.list())}),2e3)})).catch((function(e){throw o.setState({saveLoading:!1}),e}))},o.templateId=v.default.get(a.match,"params.templateId"),o.state={templateInfo:{templateId:o.templateId},validateStatus:""},o.validateFuncs={},o}return(0,f.default)(t,e),t.prototype.componentDidMount=function(){this.fetchTemplateList()},t.prototype.render=function(){var e=this,t=this.state.templateInfo;return(0,s.default)(b.PageWrapper,{},void 0,(0,s.default)(_.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,g.default.createElement(h.default,{name:"basic",ref:this.formRef,initialValues:{templateName:t.templateName,templateDesc:t.templateDesc},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelGuide\\trainTemplate\\editPage\\TemplateEditPage.jsx",lineNumber:143}},(0,s.default)(o.default,{},void 0,(0,s.default)(I,{label:"\u6a21\u677f\u540d\u79f0",name:"templateName",validateStatus:this.state.validateStatus,hasFeedback:Boolean(this.state.validateStatus),validateTrigger:"onBlur",rules:[{validator:this.templateNameValid}]},void 0,(0,s.default)(m.default,{onChange:function(t){return e.getValBlur(t.target.value,"templateName")}}))),(0,s.default)(o.default,{},void 0,(0,s.default)(I,{label:"\u63cf\u8ff0",name:"templateDesc"},void 0,(0,s.default)(T,{autoSize:{minRows:4,maxRows:6},style:{width:"700px"},maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.getValBlur(t.target.value,"templateDesc")}}))),(0,s.default)(o.default,{},void 0,(0,s.default)(x.default,{setValidateFunc:this.setValidateFunc,appCategory:t.appCategory,appType:t.appType})))),(0,s.default)(b.ButtonDom,{},void 0,(0,s.default)(n.default,{onClick:this.cancel},void 0,"\u53d6\u6d88"),(0,s.default)(n.default,{onClick:this.submitTemplate,style:{marginLeft:"10px"},type:"primary"},void 0,"\u4fdd\u5b58")))},t}(g.default.PureComponent);w.defaultProps={templateInfo:{}},t.default=w},"./src/module/modelGuide/trainTemplate/listPage/TrainTemplateListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/table/index.js")),o=x(a("./node_modules/antd/es/tooltip/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/antd/es/message/index.js")),i=x(a("./node_modules/antd/es/modal/index.js")),d=x(a("./node_modules/babel-runtime/helpers/extends.js")),l=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=a("./node_modules/react/index.js"),f=(x(p),x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/dayjs/dayjs.min.js"))),m=x(a("./node_modules/lodash/lodash.js")),h=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/components/index.js"),v=x(a("./src/module/modelGuide/trainTemplate/listPage/components/SearchBar.jsx")),_=x(a("./src/redux/services/trainTemplate.js")),y=a("./src/routes/routeHelper.jsx"),b=a("./src/utils/history.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=h.default.div.withConfig({displayName:"TrainTemplateListPage__PageWrapper",componentId:"sc-1ma6nw8-0"})(["display:flex;flex-direction:column;flex:1 1 auto;background:#fff;padding:6px 20px;.ant-tabs-bar{border-bottom:none;font-size:14px;color:#3c3e4a;}"]),j=h.default.div.withConfig({displayName:"TrainTemplateListPage__PageHeader",componentId:"sc-1ma6nw8-1"})(["position:relative;width:100%;z-index:20;border-bottom:1px solid #e8e8e8;height:57px;.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}.saveButton{position:absolute;top:8px;}"]),S=h.default.div.withConfig({displayName:"TrainTemplateListPage__PageBody",componentId:"sc-1ma6nw8-2"})(["min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),I=h.default.div.withConfig({displayName:"TrainTemplateListPage__ModelsBox",componentId:"sc-1ma6nw8-3"})([".ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:0 8px !important;white-space:nowrap;}"]),T=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.serviceQuotaFormat=function(e){var t="";if(e){var a=m.default.get(e,"instances_min",1),n=m.default.get(e,"cpu",0),o=m.default.get(e,"memory",0),s="";if(e.gpu&&Array.isArray(e.gpu))for(var r=0;r<e.gpu.length;r++){var i=e.gpu[r];s=s+(s?" ":"")+a*(i.gpuNumber||0)+"\u5f20 "+(i.gpuNumber>0?i.gpuModelName:"")}t=n*a+"C/"+o*a+"GB"+(s?"/"+s:"")}return t},n.componentDidMount=function(){n.fetchData()},n.changeSearchCond=function(e,t){"refresh"!==e?(n.searchCond[e]=m.default.trim(t),n.searchCond.pageNum=1,n.fetchData()):n.fetchData(t)},n.fetchData=function(){n.setState({listLoading:!0}),_.default.getTrainTemplateList(n.searchCond).then((function(e){n.setState((function(t){return{modelData:m.default.get(e,"data.list"),listLoading:!1,pagination:(0,d.default)({},t.pagination,{pageNum:m.default.get(e,"data.pageNum"),total:m.default.get(e,"data.total")})}}))})).catch((function(e){throw n.setState({listLoading:!1}),e}))},n.handleAction=function(e,t){var a=m.default.get(n,m.default.camelCase("handle_"+e+"_action"));a&&m.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.handleDeleteAction=function(e){n._handleAction(e,"delete","\u5220\u9664\u5411\u5bfc\u8bad\u7ec3\u4efb\u52a1")},n._handleAction=function(e,t,a){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a+"[ "+e.templateName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(o,s){"delete"===t&&_.default.deleteTrainTemplateInfo(e.templateId).then((function(){r.default.success(a+"[ "+e.templateName+" ]\u6267\u884c\u6210\u529f!"),n.fetchData(),o()})).catch((function(e){s(e)}))}))}})},n.handleCreateAction=function(){(0,b.navigateTo)(inferenceUrl.offlineCreate())},n.setShareLoading=function(e){n.setState({shareLoading:e})},n.handleEnvChange=function(e){n.setState({activeEnv:e}),n.changeSearchCond("profile",e)},n.handlePageChange=function(e){n.searchCond.pageNum=Number(e),n.fetchData()},n.handleAction=function(e,t){var a=m.default.get(n,m.default.camelCase("handle_"+e+"_action"));a&&m.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.state={modelData:[],listLoading:!1,applicationsData:[],pagination:{pageNum:1,pageSize:10,total:0}},n.searchCond={pageNum:1,pageSize:10,templateName:"",templateStatus:"",orderBy:"updateAt"},n.renderText=function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)},n.columns=[{title:"\u6a21\u677f\u540d\u79f0",dataIndex:"templateName",ellipsis:!0,render:n.renderText},{title:"\u5e94\u7528\u5927\u7c7b",dataIndex:"appCategoryName",ellipsis:!0,render:n.renderText},{title:"\u5e94\u7528\u5c0f\u7c7b",dataIndex:"appTypeName",ellipsis:!0,render:n.renderText},{title:"\u7248\u672c\u6570\u91cf",dataIndex:"versionCount",ellipsis:!0,width:100},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,width:100,render:n.renderText},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",width:140,ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD HH:mm"):"")}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateAt",width:140,ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD HH:mm"):"")}},{title:"\u64cd\u4f5c",width:160,render:function(e){var t=[{handleName:"\u67e5\u770b",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:y.trainTemplateUrl.detail(e.templateId),handleType:"link"}];return t.push({handleName:"\u4fee\u6539",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:y.trainTemplateUrl.edit(e.templateId),handleType:"link"}),t.push({handleName:"\u5220\u9664",handleAction:function(){n.handleDeleteAction(e)}}),(0,s.default)(g.ListButtons,{buttons:t,maxShowNum:3})}}],n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this.state,t=e.modelData,a=e.pagination;return(0,s.default)(C,{},void 0,(0,s.default)(j,{},void 0,(0,s.default)(v.default,{onChange:this.changeSearchCond,searchCond:this.searchCond})),(0,s.default)(S,{},void 0,(0,s.default)(I,{},void 0,(0,s.default)(n.default,{loading:this.state.listLoading,bordered:!0,columns:this.columns,dataSource:t,rowKey:"templateId",pagination:!1}),(0,s.default)(g.TabPagination,{currentPage:a.pageNum,pageSize:10,total:a.total,onChange:this.handlePageChange}))))},t}(p.Component);t.default=T},"./src/module/modelGuide/trainTemplate/listPage/components/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./src/components/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h=u.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"cx2a0t-0"})(["display:flex;.search__item-wrapper{margin-left:16px;}"]),g={width:"130px"},v=(0,n.default)(f,{value:"templateName"},void 0,"\u6a21\u677f\u540d\u79f0\u6392\u5e8f"),y=(0,n.default)(f,{value:"updateAt"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("templateName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("orderBy"),n.changeStatusField=n.changeSelect("templateStatus"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(h,{className:"search-bar"},void 0,(0,n.default)(c.RefreshButton,{onRefresh:this.props.onChange,style:{marginRight:16}}),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,style:g,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:"templateName",className:"search-cond"},void 0,v,y)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{style:{width:200},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,defaultValue:_.get(this.props.searchCond,"templateName",""),onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=b},"./src/module/modelGuide/trainTemplate/styled.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.PageWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.PageWrapper=s.default.div.withConfig({displayName:"styled__PageWrapper",componentId:"sc-1dovcvr-0"})(["width:100%;background:#fff;padding:16px;.ant-input[disabled],.ant-input[disabled]:hover{z-index:10;}.ant-form-inline .ant-form-item{margin-right:0;}.ant-form-item-label{width:70px;}.ant-legacy-form-item-label{width:80px;}.mirror-build .ant-legacy-form-item-label{width:70px;}"]),t.ButtonDom=s.default.div.withConfig({displayName:"styled__ButtonDom",componentId:"sc-1dovcvr-1"})(["height:42px;text-align:right;padding-top:10px;margin-top:30px;margin-left:-16px;margin-right:-16px;padding-right:16px;"])},"./src/module/modelGuide/utils.js":function(e,t,a){"use strict";t.__esModule=!0,t.parseAlgParams=t.formatAlgParams=t.getTemplateOptPermission=t.getOptOffline=void 0;var n,o=a("./node_modules/babel-runtime/helpers/extends.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/module/modelGuide/modelEnums.js"),i=a("./src/module/modelGuide/trainTask/modelEnums.js");t.getOptOffline=function(e){return{start:[r.TRAIN_TASK_STATUS,"SUCCESS"].includes(e),edit:[r.TRAIN_TASK_STATUS,"SUCCESS"].includes(e)}},t.getTemplateOptPermission=function(e,t){return{up:["SUCCESS","OFFLINE"].includes(e),down:["ONLINE"].includes(e),development:["SUCCESS","ONLINE","OFFLINE"].includes(e)&&"CODEMODEL"===t,import:["SUCCESS","ONLINE","OFFLINE"].includes(e)&&"IMPORT"===t,delete:["SUCCESS","OFFLINE","ERROR"].includes(e)}},t.formatAlgParams=function(e,t){var a=Array.isArray(t.positiveSampleIndex)?t.positiveSampleIndex.map((function(e){var t=e.fieldEnName?e.fieldEnName.split("@"):[];return(0,s.default)({},e,{fieldCnName:_.get(t,"[1]"),fieldEnName:_.get(t,"[0]"),sign:e.fieldFilterRule,fieldFilterRule:_.get(t,"[0]")+" "+e.fieldFilterRule+" "+e.fieldEnValue})})):[],n=Array.isArray(t.negativeSampleIndex)?t.negativeSampleIndex.map((function(e){return(0,s.default)({},e,{sign:e.fieldFilterRule,fieldFilterRule:e.fieldEnName+" "+e.fieldFilterRule+" "+e.fieldEnValue})})):[],o={workMode:"Auto"===t.algorithmType?"Auto":"Manual",arithmeticId:t.algorithmType,param:Array.isArray(t.algorithmParams)?t.algorithmParams.map((function(e){return(0,s.default)({},e,{paramValue:e.defValue})})):[]};switch(e){case r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-CLASS"]:return{trainingSetRatio:t.trainingSetRatio,sampleRatio:t.sampleRatio,sampleDataRule:{positiveSampleIndex:a,negativeSampleIndexIsOther:"negativeSampleIndexIsOther"===t.negativeSample,negativeSampleIndex:n},arithmeticParam:o};case r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-CLUST"]:return{arithmeticParam:o};case r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-CF"]:var i="Auto"!==t.scoreType&&Array.isArray(t.scoringIndex)?t.scoringIndex.reduce((function(e,t){return{scoreItems:""+e.scoreItems+(e.scoreItems?","+t.scoreItems:t.scoreItems),scoreWeight:""+e.scoreWeight+(e.scoreWeight?","+t.scoreWeight/100:t.scoreWeight/100)}}),{scoreItems:"",scoreWeight:""}):{scoreItems:"",scoreWeight:""},d=i.scoreItems,l=i.scoreWeight;return{userIndex:t.userIndex,resIndex:t.resIndex,scoringModel:{workMode:"Auto"===t.scoreType?"Auto":"Manual",scoreItems:d,scoreWeight:l},arithmeticParam:o};case r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-ASSOC"]:return{userIndex:t.userIndex,resIndex:t.resIndex,arithmeticParam:o};case r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TIMES"]:return{dateIndex:t.dateIndex,forecastCycle:t.forecastCycle,forecastFieldIndex:t.forecastFieldIndex,arithmeticParam:o};case r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-IMAGE"]:case r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TEXT"]:case r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-VIDEO"]:return{arithmeticParam:(0,s.default)({},o,{classtype:t.classtype,classIndex:t.classIndex})}}},t.parseAlgParams=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[{fieldCnName:"",fieldEnName:"",fieldFilterRule:i.SIGN["="],fieldEnValue:""}],o=_.get(t,"sampleDataRule.positiveSampleIndex"),d=_.get(t,"sampleDataRule.negativeSampleIndex"),l=Array.isArray(o)?o.map((function(e){return(0,s.default)({},e,{fieldEnName:e.fieldEnName+"@"+e.fieldCnName,fieldFilterRule:e.sign})})):n,u=Array.isArray(d)?d.map((function(e){return(0,s.default)({},e,{fieldEnName:e.fieldEnName+"@"+e.fieldCnName,fieldFilterRule:e.sign})})):n,c=_.get(t,"scoringModel.scoreItems","")||"",p=_.get(t,"scoringModel.scoreWeight","")||"",f=c?c.split(","):[],m=p.split(","),h=f.map((function(e,t){return{scoreItems:e,scoreWeight:100*Number(_.get(m,"["+t+"]"))}})),g=_.get(t,"arithmeticParam.arithmeticId","Auto")||"Auto",v=_.get(t,"arithmeticParam.param",[]);return(e={},e[r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-CLASS"]]={positiveSample:"index",trainingSetRatio:t.trainingSetRatio||80,sampleRatio:t.sampleRatio||80,positiveSampleIndex:l,negativeSample:_.get(t,"sampleDataRule.negativeSampleIndexIsOther",!0)?"negativeSampleIndexIsOther":"index",negativeSampleIndex:u,algorithmType:g,algorithmParams:v},e[r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-CLUST"]]={algorithmType:g,algorithmParams:v},e[r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-CF"]]={userIndex:t.userIndex,resIndex:t.resIndex,scoreType:_.get(t,"scoringModel.workMode","Auto"),scoringIndex:Array.isArray(h)&&h.length>0?h:[{scoreItems:"",scoreWeight:0}],algorithmType:g,algorithmParams:v},e[r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-ASSOC"]]={userIndex:t.userIndex,resIndex:t.resIndex,algorithmType:g,algorithmParams:v},e[r.SYSTEM_TRAIN_TEMPLATE["TRAIN-TEMPLATE-TIMES"]]={dateIndex:t.dateIndex,forecastCycle:t.forecastCycle,forecastFieldIndex:t.forecastFieldIndex,algorithmType:g,algorithmParams:v},e)[a]||{classtype:_.get(t,"arithmeticParam.classtype")||i.IDENTIFY_TYPE.folder,classIndex:_.get(t,"arithmeticParam.classIndex")||[],algorithmType:g,algorithmParams:v}}},"./src/module/modelLearn/abilityToLearn/components/ApplyDlg.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/row/index.js")),o=S(a("./node_modules/antd/es/modal/index.js")),s=S(a("./node_modules/babel-runtime/helpers/jsx.js")),r=S(a("./node_modules/antd/es/message/index.js")),i=S(a("./node_modules/babel-runtime/helpers/extends.js")),d=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=S(a("./node_modules/babel-runtime/helpers/inherits.js")),c=S(a("./node_modules/antd/es/input/index.js")),p=S(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=S(a("./node_modules/react/index.js")),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");S(a("./node_modules/prop-types/index.js"));var h=a("./node_modules/react-redux/es/index.js"),g=a("./src/components/index.js"),v=a("./src/module/modelLearn/common.js"),y=a("./src/utils/history.js"),b=a("./src/utils/authPermit.js"),x=S(a("./src/redux/services/sysManager/projectManage.js")),C=a("./src/redux/services/modelLearn.js"),j=a("./src/module/modelLearn/abilityToLearn/learnBased/style.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=m.Form.Item,T=p.default.Option,w=c.default.TextArea,E=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.validateApplicationName=function(e,t,a){if(t){var o={applicationName:t,projectApplicationId:null,projectId:n.projectId};(0,C.checkApplicationName)(o).then((function(e){1==e.data.isRepeat?a("\u5e94\u7528\u540d\u79f0\u5df2\u5b58\u5728!"):a()}))}else a()},n.submit=function(e){e.preventDefault(),n.props.form.validateFields((function(e){e||n.setState({modalVisible:!0})}))},n.submitOK=function(e){e.preventDefault(),n.props.form.validateFields((function(e,t){if(!e){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e\u63d0\u4ea4\u4e2d,\u8bf7\u7a0d\u7b49.........."});var a=n.props.renderData,o=(0,i.default)({},a,t),s={projectApplicationId:null,applicationId:(0,v.uuid)(),applicationName:t.applicationName,applicationDesc:t.applicationDesc,applicationClass:t.applicationClass};(0,C.createAppAi)(o.projectId,s).then((function(e){var a=e.code,i=e.data;"0000"==a&&n.gitUploadFunNew(t,o,i),"9999"==a&&(n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:n.modalTip}),r.default.error(e.message)),console.log("\u521b\u5efaai\u5e94\u7528",s,e)})).catch((function(e){n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:n.modalTip}),r.default.error(e.message)}))}}))},n.gitUploadFunNew=function(e,t,a){var o=t.nfsPath;if(o&&o.lastIndexOf("/")>-1){var s=o.lastIndexOf("/");o=o.substring(0,s+1)}var i={modelInfo:{repoId:"default",modelId:null,modelDesc:e.applicationDesc,modelName:e.applicationName,busiType:a.projectApplicationId,publishSourceId:""},versionInfo:{publishFrom:6,codeLanguage:"PYTHON3.6",runEngine:"CPU",useFramework:"\u65e0",baseMirrorId:"60cc443c384798442f70f679",mirrorId:"60cc443c384798442f70f67a",modelFiles:[{index:"16",fileId:"",fileName:"",filePath:"",fileDesc:"",fileType:"online_code_package",checkSum:"",fileSource:"page_import",uploadType:"FTP",sourceId:"60c2f6b0df1e1400e9e37815",additionalInfo:null,originPath:t.nameZip?t.nameZip:"aiops\u63d0\u4ea4\u63a5\u53e3\u672a\u8fd4\u56de\u6587\u4ef6\u540d"}],versionName:"v1"}};(0,C.gitUploadPublishModel)(i).then((function(e){var o=e.code,s=e.data,r=e.message;"0000"==o&&n.createAppAiopsFun(t,a,s),"9999"==o&&(n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:n.modalTip}),r.error(res.message)),console.log("\u4ee3\u7801\u5305\u8def\u5f84\u4e0a\u4f20",requestDataGit,e)})).catch((function(e){n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:n.modalTip}),r.default.error(e.message)}))},n.gitUploadFun=function(e,t,a){var o=t.parameters,s=o?JSON.parse(o):[],i=(s=s.filter((function(e){return"add"==e.from}))).map((function(e){return{defaultValue:e.defaultValue,fileLabel:e.fileLabel,fileName:e.fileName,fileType:e.fileType,fileValue:e.fileValue}})),d=t.nfsPath;if(d&&d.lastIndexOf("/")>-1){var l=d.lastIndexOf("/");d=d.substring(0,l+1)}var u={resourceName:e.applicationName,resourceFileType:"CODE",resourceDesc:e.applicationDesc,ftpFilePath:d,dockerfileUpdate:t.dockerFileUpdate,ftpFileName:t.name,businessType:a.projectApplicationId,ftpId:"LearningPieces_NFS",resourceCommands:i.length>0?JSON.stringify(i):""};(0,C.gitUpload)(u).then((function(e){var o=e.code,s=e.data,r=e.message;"00000"==o&&n.createAppAiopsFun(t,a,s),"99999"==o&&(n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:n.modalTip}),r.error(res.message)),console.log("\u4ee3\u7801\u5305\u8def\u5f84\u4e0a\u4f20",u,e)})).catch((function(e){n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:n.modalTip}),r.default.error(e.message)}))},n.createAppAiopsFun=function(e,t,a){var o={applicationDescribe:e.applicationDesc,applicationName:e.applicationName,applicationStatus:0,applicationTypeId:e.applicationClass,codeId:a.modelInfo.modelId,createUser:e.createUser,jupyterGitPath:e.jupyterGitPath,nasPath:e.nfsPath,parameters:e.parameters,projectApplicationId:t.projectApplicationId,projectId:e.projectId,reasoningServiceId:e.reasoningServiceId,taskId:e.taskId};(0,C.createAppAiops)(o).then((function(e){var t=e.datalearn;n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:n.modalTip}),"200"==t.status&&(r.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01",2),"CodePage"==n.props.curFor?setTimeout((function(){return(0,y.navigateTo)("/home/applications")}),2e3):setTimeout((function(){window.open("/home/applications","_blank")}),2e3)),"201"==t.status&&r.default.error(t.message)})).catch((function(e){n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:n.modalTip}),r.default.error(e.message)}))};var o=(0,b.getCurrentContext)().id;return n.projectId=o,n.modalTip="\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",n.state={modalTxt:n.modalTip,confirmLoading:!1,modalVisible:!1,projectName:"",loading:!1,applicationNameBig:"",applicationNameBigId:"",applicationClassOptions:[],applicationName:"",applicationDesc:""},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this;x.default.getProjectInfo(this.projectId).then((function(t){t&&e.setState({projectName:_.get(t,"data.projectName")})})).catch((function(e){r.default.error(e.message)})),(0,C.getLearnApplicationsList)().then((function(t){var a=t.code,n=t.data,o=n.applicationTypes;"0000"==a&&e.setState({applicationNameBig:n.parentApplicationTypeName,applicationNameBigId:n.parentApplicationTypeId,applicationClassOptions:n.applicationTypes,applicationClass:o&&o.length>0?o[0].applicationTypeId:void 0})})),this.props.onRef&&this.props.onRef(this)},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.applicationNameBig,i=a.applicationNameBigId,d=a.applicationClassOptions,l=a.applicationClass,u=this.props.renderData;return(0,s.default)(j.CreateModelServiceDom,{},void 0,(0,s.default)(o.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(t){return e.submitOK(t)},confirmLoading:this.state.confirmLoading,onCancel:function(){return e.setState({modalVisible:!1})}},void 0,(0,s.default)("p",{},void 0,this.state.modalTxt)),(0,s.default)(g.ModelConfigPanel,{title:"\u586b\u5199\u57fa\u7840\u4fe1\u606f",style:{width:"100%"}},void 0,(0,s.default)(m.Form,{layout:"inline",autoComplete:"off"},void 0,(0,s.default)(n.default,{className:"mb-24"},void 0,(0,s.default)(I,{label:"\u9879\u76ee\u540d\u79f0"},void 0,(0,s.default)("span",{},void 0,this.state.projectName))),(0,s.default)(n.default,{className:"mb-24"},void 0,(0,s.default)(I,{label:"\u5e94\u7528\u5927\u7c7b"},void 0,t("applicationNameBigId",{initialValue:""+i,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u5927\u7c7b"}]})((0,s.default)(p.default,{disabled:!0,style:{width:"200px"}},void 0,(0,s.default)(T,{value:i},i,r)))),(0,s.default)(I,{label:"\u5e94\u7528\u5c0f\u7c7b",style:{marginLeft:24,marginBottom:0}},void 0,t("applicationClass",{initialValue:""+l,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u5c0f\u7c7b"}]})((0,s.default)(p.default,{style:{width:"200px"}},void 0,Array.isArray(d)&&d.map((function(e){return(0,s.default)(T,{value:e.applicationTypeId},e.applicationTypeId,e.applicationTypeName)})))))),(0,s.default)(n.default,{className:"mb-24"},void 0,(0,s.default)(I,{label:"\u5e94\u7528\u540d\u79f0"},void 0,t("applicationName",{validateTrigger:["onBlur"],initialValue:""+u.modelName,rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5e94\u7528\u540d\u79f0"},{validator:this.validateApplicationName}]})((0,s.default)(c.default,{style:{width:"200px"}})))),(0,s.default)(n.default,{className:"mb-24"},void 0,(0,s.default)(I,{label:"\u5e94\u7528\u63cf\u8ff0"},void 0,t("applicationDesc",{initialValue:""})((0,s.default)(w,{placeholder:"\u5e94\u7528\u63cf\u8ff0",autoSize:{minRows:5,maxRows:8},style:{width:635,marginRight:10,min:0,max:450},maxLength:300,rows:8})))))))},t}(f.default.Component);t.default=(0,h.connect)((function(){return{}}))(m.Form.create()(E))},"./src/module/modelLearn/abilityToLearn/learnAbility/LearnAbility.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/tooltip/index.js")),o=x(a("./node_modules/antd/es/button/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/antd/es/message/index.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var u=x(a("./node_modules/react/index.js")),c=a("./node_modules/react-router-dom/esm/react-router-dom.js"),p=a("./node_modules/react-redux/es/index.js"),f=(x(a("./node_modules/prop-types/index.js")),a("./src/utils/history.js")),m=a("./node_modules/reselect/lib/index.js"),h=a("./src/redux/selectors/auth.js"),g=x(a("./src/styles/images/modellearn/addCard.svg")),v=a("./src/redux/services/modelLearn.js"),_=a("./src/routes/routeHelper.jsx"),y=a("./src/module/modelLearn/abilityToLearn/learnAbility/style.js"),b=a("./src/utils/authPermit.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=(0,s.default)("div",{className:"banner-desc"},void 0,(0,s.default)("h4",{},void 0,"\u5b66\u4ef6"),(0,s.default)("div",{},void 0,"\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u5b66\u4ef6\u80fd\u529b\u5f00\u53d1\u7684\u901a\u7528\u5316\u5de5\u5177\uff0c\u57fa\u4e8e\u76f8\u5bf9\u6210\u719f\u3001\u7a33\u5b9a\u7684\u63a8\u7406\u670d\u52a1/\u4efb\u52a1\u7684\u57fa\u7840\u4e0a\u5feb\u901f\u5f00\u53d1\u548c\u53d1\u5e03\u5e26\u6709\u4e1a\u52a1\u5c5e\u6027\u548c\u903b\u8f91\u7684\u5b66\u4ef6\u80fd\u529b\uff0c",(0,s.default)("br",{}),"\u5e76\u63d0\u4f9b\u96c6\u4e2d\u5316\u7684\u5b66\u4ef6\u670d\u52a1\u8fd0\u884c\u76d1\u63a7\u548c\u5b66\u4ef6\u80fd\u529b\u4ecb\u7ecd\u529f\u80fd\u3002")),j=(0,s.default)("div",{className:"hd-name"},void 0,"\u5b66\u4ef6\u80fd\u529b\u96c6"),S=(0,s.default)(o.default,{type:"primary"},void 0,"\u67e5\u770b\u8be6\u60c5"),I=(0,s.default)("img",{title:"\u6784\u5efa\u65b0\u5b66\u4ef6",src:g.default}),T=(0,s.default)("span",{},void 0,"\u6784\u5efa\u65b0\u5b66\u4ef6"),w=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.getSharedListFun=function(){var e=localStorage.getItem("AI.ONE_USER_ID"),t={page:1,rows:1e5};e&&(t.userId=e),(0,v.getSharedList)(t).then((function(e){var t=e.datalearn;"200"==t.status&&n.setState({sharedList:t.rows})})).catch((function(e){n.setState({sharedList:[]}),r.default.error(e.message)}))},n.showLogin=function(e){e.stopPropagation(),n.props.isAuthenticated?(0,f.navigateTo)(_.modelLearnUrl.create()):(localStorage.setItem("AI.loginShowDlg","1"),(0,b.redirectLogin)(_.modelLearnUrl.create()))},n.state={sharedList:[]},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){var e=localStorage.getItem("AI.loginShowDlg"),t=this.props.isAuthenticated;"1"==e&&t&&(localStorage.removeItem("AI.loginShowDlg"),localStorage.removeItem("AI.loginShowDlgpath")),this.getSharedListFun()},t.prototype.render=function(){var e=this.state.sharedList,t=this.props.isAuthenticated;return(0,s.default)(y.SharedDom,{},void 0,C,(0,s.default)("div",{className:"hd-head"},void 0,j,(0,s.default)(o.default,{className:"saveButton",type:"primary",onClick:this.showLogin},void 0,"+ \u6784\u5efa\u65b0\u5b66\u4ef6")),(0,s.default)("div",{className:"sharedBox"},void 0,e.map((function(e,o){return(0,s.default)("div",{className:"sharedCard"},o,(0,s.default)("div",{className:"item"},void 0,(0,s.default)("h4",{},void 0,(0,s.default)(n.default,{placement:"top",title:e.modelName},void 0,(0,s.default)("span",{className:"name-text"},void 0," ",e.modelName))),(0,s.default)("div",{className:"desc"},void 0,e.describe),(0,s.default)("div",{className:"imgIcon"},void 0,(0,s.default)("img",{title:e.modelName,src:a("./src/styles/images/modellearn/introIcon sync recursive ^\\.\\/.*\\.svg$")("./"+(e.iconId?e.iconId:1)+".svg")})),(0,s.default)(c.Link,{to:{pathname:t?_.modelLearnUrl.detail(""+e.id,""+e.taskId):_.modelLearnUrl.detailNoAuth(""+e.id,""+e.taskId)}},void 0,S)))})),(0,s.default)("div",{className:"addCard"},void 0,(0,s.default)("div",{className:"item"},void 0,(0,s.default)("div",{onClick:this.showLogin},void 0,I),T))))},t}(u.default.Component),E=(0,m.createStructuredSelector)({isAuthenticated:h.selectIsAuthenticated});t.default=(0,p.connect)(E)(w)},"./src/module/modelLearn/abilityToLearn/learnAbility/LearnAbilityDetail.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/babel-runtime/helpers/jsx.js")),s=b(a("./node_modules/antd/es/message/index.js")),r=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var l=b(a("./node_modules/react/index.js")),u=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/components/index.js"),p=b(a("./src/module/modelLearn/abilityToLearn/components/ApplyDlg.jsx")),f=b(a("./src/module/modelLearn/abilityToLearn/learnBased/component/PreviewDlg.jsx")),m=a("./src/redux/services/modelLearn.js"),h=a("./node_modules/reselect/lib/index.js"),g=a("./src/redux/selectors/auth.js"),v=a("./src/module/modelLearn/abilityToLearn/learnAbility/style.js"),y=a("./src/utils/authPermit.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=(0,o.default)("div",{className:"hd-name"},void 0,"\u5b66\u4ef6-\u914d\u7f6e\u53c2\u6570\u793a\u4f8b"),C=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.showLogin=function(e){if(e.stopPropagation(),n.props.isAuthenticated)n.showApplyDlg();else{localStorage.setItem("AI.loginShowDlg","1");var t=window.location.pathname;t=t.replace("/introduce","/modelLearn"),(0,y.redirectLogin)(t)}},n.showApplyDlg=function(){n.setState({modalVisibleApply:!0})},n.getEchoInfoFun=function(){(0,m.getEchoInfo)({id:n.id,taskId:n.taskId}).then((function(e){var t=e.datalearn;"200"==t.status&&t.data&&n.setState({renderDataPreview:t.data,renderDataParams:{id:n.id,taskId:n.taskId,modelName:t.data.modelName}})})).catch((function(e){s.default.error(e.message)}))},n.id=_.get(a.match.params,"id"),n.taskId=_.get(a.match.params,"taskId"),n.state={modalVisibleApply:!1,renderDataPreview:{},renderDataParams:{id:n.id,taskId:n.taskId,modelName:"",reasoningServiceName:"",from:"learnAbilityDetail"}},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.getEchoInfoFun();var e=localStorage.getItem("AI.loginShowDlg"),t=this.props.isAuthenticated;"1"==e&&t&&(localStorage.removeItem("AI.loginShowDlg"),localStorage.removeItem("AI.loginShowDlgpath"),this.showApplyDlg())},t.prototype.render=function(){var e=this,t=this.state,a=t.renderDataPreview,s=t.renderDataParams;return(0,o.default)(v.SharedDom,{},void 0,(0,o.default)(c.ModalView,{modalTitle:"\u521b\u5efa\u65b0\u5e94\u7528",onCancelType:!1,width:1e3,callVisible:function(){return e.setState({modalVisibleApply:!1})},modalVisible:this.state.modalVisibleApply,okText:"\u63d0\u4ea4",submitModalOk:function(t){e.ApplyDlgRef.submit(t)},comp:(0,o.default)(p.default,{renderData:this.state.renderDataPreview,curFor:"LearnAbilityDetail",onRef:function(t){e.ApplyDlgRef=t}})}),(0,o.default)("div",{className:"banner-desc2"},void 0,(0,o.default)("h4",{},void 0,a.modelName),(0,o.default)("div",{},void 0,a.describe)),(0,o.default)("div",{className:"hd-head"},void 0,x,(0,o.default)(n.default,{className:"saveButton",type:"primary",onClick:this.showLogin},void 0,"+ \u521b\u5efa\u5b66\u4ef6\u5e94\u7528")),(0,o.default)("div",{},void 0,(0,o.default)(f.default,{style:{height:"500px"},renderData:s,isAuthenticated:this.props.isAuthenticated})))},t}(l.default.Component),j=(0,h.createStructuredSelector)({isAuthenticated:g.selectIsAuthenticated});t.default=(0,u.connect)(j)(C)},"./src/module/modelLearn/abilityToLearn/learnAbility/style.js":function(e,t,a){"use strict";t.__esModule=!0,t.SharedDom=void 0;var n=r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),o=r(a("./src/styles/images/modellearn/bannerBg.png")),s=r(a("./src/styles/images/modellearn/bannerBg2.png"));function r(e){return e&&e.__esModule?e:{default:e}}t.SharedDom=n.default.div.withConfig({displayName:"style__SharedDom",componentId:"tl52ll-0"})([".banner-desc,.banner-desc2{background-color:#303743;border-radius:4px;height:216px;background-image:url(",");padding:40px 60px 50px;display:flex;flex-direction:column;justify-content:space-evenly;background-repeat:no-repeat;background-size:100% 100%;h4{font-size:25px;color:#ffffff;line-height:34px;}div{width:80%;font-size:16px;color:#ffffff;line-height:32px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;}}.banner-desc2{background-image:url(",");}.hd-head{text-indent:12px;border-left:4px solid #147bd1;display:flex;justify-content:space-between;margin:20px 0 20px 0;.hd-name{font-size:18px;color:#444444;line-height:30px;}}.sharedBox{width:100%;min-height:400px;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;.sharedCard:nth-child(5n + 1){padding-left:0;}.sharedCard:nth-child(5n + 5){padding-right:0;}.sharedCard,.addCard{width:20%;padding:0 10px;margin-bottom:20px;> div{height:100%;background:#ffffff;box-shadow:0 1px 3px 0 rgba(0,0,0,0.05);border-radius:4px;height:248px;padding-bottom:10px;display:flex;flex-direction:column;&:hover{box-shadow:0 4px 12px 0 rgba(0,0,0,0.1);.desc{margin-bottom:10px;}button{display:block;}}h4{font-size:16px;color:rgba(0,0,0,0.85);text-align:center;line-height:22px;margin:20px 0;padding:0 6px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;word-break:break-all;}.desc{font-size:14px;color:rgba(0,0,0,0.45);line-height:20px;padding:0 40px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;text-align:center;min-height:40px;margin-bottom:30px;}.imgIcon{margin:0 auto 10px;img{display:inline-block;width:80px;height:80px;border-radius:50%;text-align:center;}}button{display:none;width:100px;margin:0 auto;}}}.addCard{padding-right:0;.item{border:1px dashed rgba(123,147,167,0.18);background:transparent;text-align:center;padding-top:85px;cursor:pointer;font-size:12px;color:rgba(0,0,0,0.65);img{margin-bottom:10px;}a{color:rgba(0,0,0,0.65);}}}}"],o.default,s.default)},"./src/module/modelLearn/abilityToLearn/learnBased/component/CodeDlg.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/antd/es/message/index.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var d=h(a("./node_modules/react/index.js")),l=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=h(a("./src/styles/images/model_manage/LogoPython.png")),c=a("./src/routes/routeHelper.jsx"),p=a("./src/redux/services/modelLearn.js"),f=a("./src/utils/constants.js"),m=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=[{languageImg:u.default,languageName:"Python",languageId:1}],v=m.default.div.withConfig({displayName:"CodeDlg__CodingLanguage",componentId:"zg7trg-0"})(["width:100%;min-height:120px;margin:20px 0;.languageTitle{font-size:14px;color:#1f2d3d;letter-spacing:0;padding-bottom:20px;}ul{padding:0px;list-style:none;display:flex;justify-content:center;li{cursor:pointer;margin:0 10px;border:1px solid hsla(0,0%,87.5%,0.59);padding:16px;border-radius:4px;&:hover{border:1px solid #147bd1;}&.noSelect{display:none;cursor:not-allowed;color:#a2b0c4;&:hover{cursor:not-allowed;border:1px solid transparent;}}}}"]),_=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.onClickLink=function(e){var t=n.props.action,a=n.props.baseInfo,o=a.id,s=a.taskId,r=a.modelName,i=a.describe,d=a.reasoningServiceId,l={id:o,taskId:s,iconId:a.iconId,modelName:r,describe:i,reasoningServiceId:d,idefile:e};"copy"==t&&(l.id=void 0,l.idOld=o,l.taskIdNew=n.props.taskIdNew);var u=c.modelLearnUrl.createModelForCode(t);l=JSON.stringify(l),window.openParentParams=l,window.open(u)},n.onClickCard=function(){var e=n.props,t=e.action,a=e.baseInfo;"create"==t&&n.getIdeAddFun(),"copy"==t&&(a.jupyterPath?n.getIdeCopyFun():n.getIdeAddFun()),"edit"==t&&(a.jupyterPath?n.getIdeCheakFun(a.jupyterPath):n.getIdeAddFun()),"see"==t&&n.getIdeCheakFun(a.jupyterPath)},n.getIdeAddFun=function(){var e=n.props.baseInfo.taskId,t=n.props.relevanceOut,a=t.length>0?t:null,s=null;a&&(a.map((function(e){return e.path=(0,f.wrapServiceUrl)(e.basePath,e.path)})),s=JSON.stringify(a).replace(/default":/g,'defaults":'),(s=JSON.parse(s))[0].requestSchema=[s[0].requestSchema],s[0].responseSchema=[s[0].responseSchema],s[0].tags=[]);(0,p.getIdeAdd)(e,{dataIde:s}).then((function(e){var t=e.code,a=e.data,s=e.message;"200"==t&&n.onClickLink(a),"201"==t&&o.default.error(s)})).catch((function(e){o.default.error(e.message)}))},n.getIdeCopyFun=function(){var e=n.props.baseInfo.taskId;(0,p.getIdeCopy)({taskId:e,newTaskId:n.props.taskIdNew}).then((function(e){var t=e.code,a=e.data,s=e.message;"200"==t&&n.onClickLink(a),"201"==t&&o.default.error(s)})).catch((function(e){o.default.error(e.message)}))},n.getIdeCheakFun=function(e){var t=n.props.baseInfo,a=t.taskId,s=t.projectId;(0,p.getIdeCheak)({taskId:a,projectId:s}).then((function(t){var a=t.code,s=t.message;"200"==a&&n.onClickLink(e),"201"==a&&o.default.error(s)})).catch((function(e){o.default.error(e.message)}))},n.state={},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this;return(0,n.default)(v,{},void 0,(0,n.default)("ul",{className:"languages"},void 0,g.map((function(t,a){return(0,n.default)("li",{onClick:e.onClickCard},a,(0,n.default)("img",{title:t.languageName,src:t.languageImg}))}))))},t}(d.default.Component);_.defaultProps={baseInfo:{}};t.default=(0,l.connect)((function(){return{}}))(_)},"./src/module/modelLearn/abilityToLearn/learnBased/component/ParamsDefine.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ParamsDefineDom=void 0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/antd/es/input-number/index.js")),s=j(a("./node_modules/antd/es/input/index.js")),r=j(a("./node_modules/antd/es/row/index.js")),i=j(a("./node_modules/babel-runtime/helpers/jsx.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=j(a("./node_modules/babel-runtime/helpers/inherits.js")),p=j(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=j(a("./node_modules/react/index.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");j(a("./node_modules/prop-types/index.js"));var g=a("./node_modules/react-redux/es/index.js"),v=j(a("./node_modules/lodash/cloneDeep.js")),_=a("./src/module/modelLearn/common.js"),y=a("./src/redux/services/modelLearn.js"),b=a("./src/components/index.js"),x=j(a("./src/module/modelLearn/abilityToLearn/learnBased/component/ParamsTable.jsx")),C=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function j(e){return e&&e.__esModule?e:{default:e}}var S=p.default.Option,I=t.ParamsDefineDom=C.default.div.withConfig({displayName:"ParamsDefine__ParamsDefineDom",componentId:"azmy58-0"})([".paramsBtn{margin-bottom:16px;}.ant-legacy-form-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.headTitles{display:flex;> div{margin-right:16px;line-height:32px;&.required::before{display:inline-block;margin-right:4px;color:#f5222d;font-size:12px;font-family:SimSun,sans-serif;line-height:1;content:'*';}}}"]),T={width:"170px"},w={width:"100px"},E={width:"120px"},D=h.Form.Item,M=(0,i.default)(s.default,{}),k=(0,i.default)(s.default,{}),P=(0,i.default)(m.PlusOutlined,{}),L=(0,i.default)(m.MinusOutlined,{}),N=(0,i.default)(m.PlusOutlined,{}),A=(0,i.default)("div",{},void 0,"\u65e0\u5b9a\u4e49\u53c2\u6570"),R=(0,i.default)("div",{className:"headTitles"},void 0,(0,i.default)("div",{className:"required",style:T},void 0,"\u53c2\u6570\u540d"),(0,i.default)("div",{style:T},void 0,"\u53c2\u6570\u522b\u540d"),(0,i.default)("div",{className:"required",style:E},void 0,"\u53c2\u6570\u7c7b\u578b"),(0,i.default)("div",{style:T},void 0,"\u53c2\u6570\u503c"),(0,i.default)("div",{className:"required",style:w},void 0,"\u53c2\u6570\u957f\u5ea6"),(0,i.default)("div",{style:T},void 0,"\u9ed8\u8ba4\u503c"),(0,i.default)("div",{style:T},void 0,"\u53c2\u6570\u8bf4\u660e\u63d0\u793a")),F=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.getParamsListFun=function(){n.setState({loadingTb:!0}),(0,y.getParamsList)().then((function(e){if(n.setState({loadingTb:!1}),"201"==e.status)d.default.error(data.message);else{var t=e.data;t.map((function(e){return e.from="had"})),n.setState({tbData:t})}})).catch((function(e){n.setState({tbData:[],loadingTb:!1}),d.default.error(e.message)}))},n.showParamsDlg=function(){n.setState({modalVisibleParams:!0})},n.callVisible=function(){n.setState({modalVisibleParams:!1})},n.paramsTypeChange=function(e,t){var a=n.props.form,o=a.getFieldValue("paramsList");o[t].fileType=e,"\u6570\u503c\u578b"!=e&&"\u5b57\u7b26\u578b"!=e||(o[t].fileValue=""),a.setFieldsValue({list:o,paramsList:o})},n.handleAddOrRemove=function(e,t,a){var o=n.props.form,s=n.state,r=s.tbData,i=s.addTpl,d=JSON.parse(JSON.stringify(i));d.fileType=void 0;var l=o.getFieldValue("list"),u=o.getFieldValue("paramsList");"add"==e&&a&&(u.splice(t+1,0,d),o.setFieldsValue({list:u,paramsList:u}),n.setState({envVarsList:u})),"add"==e&&null==a&&(o.setFieldsValue({list:[d],paramsList:[d]}),n.setState({envVarsList:[d]})),"remove"==e&&(o.setFieldsValue({list:l.filter((function(e,a){return a!==t})),paramsList:u.filter((function(e,a){return a!==t}))}),n.setState({envVarsList:u.filter((function(e,a){return a!==t}))}),"had"==a.from&&(r.map((function(e){if(e.id==a.id)return e.hasSelected=!1,e})),n.setState({tbData:r})))},n.handleSubmit=function(e){e.preventDefault(),n.props.form.validateFields((function(e,t){if(!e){var a=t.paramsList;n.props.produceCode(a)}}))},n.submitModalOk=function(){var e=n.props.form,t=n.child.state,a=t.selectedRows,o=t.selectedRowKeys;console.log("\u786e\u5b9a\u52a0\u8f7d\u9009\u4e2did",o);for(var s=n.state.tbData,r=0;r<s.length;r++)for(var i=0;i<o.length;i++)s[r].id==o[i]&&(s[r].hasSelected=!0);var d=s.filter((function(e){return e.hasSelected})).map((function(e){return e.id})),l=e.getFieldValue("paramsList"),u=e.getFieldValue("list"),c=a.concat(u),p=a.concat(l);e.setFieldsValue({list:c,paramsList:p}),n.setState({tbData:s,disabledKeys:d,modalVisibleParams:!1})},n.state={modalVisibleParams:!1,loadingTb:!1,tbData:[],disabledKeys:[],envVarsList:[],addTpl:{fileName:"",fileLabel:"",fileType:void 0,fileValue:"",fileLegth:"20",defaultValue:"",fileDescribe:"",from:"add"}},n}return(0,c.default)(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props.action;if(e.echoData!==this.props.echoData){var a=e.echoData.parameters;if(a){for(var n=JSON.parse(a),o=this.state.tbData,s=n.filter((function(e){return"had"==e.from})).map((function(e){return e.id})),r=0;r<o.length;r++)for(var i=0;i<s.length;i++)o[r].id==s[i]&&(o[r].hasSelected=!0);this.setState({tbData:o,envVarsList:n})}else"edit"!=t&&"see"!=t||this.setState({envVarsList:[]}),"copy"==t&&this.setState({envVarsList:[(0,v.default)(this.state.addTpl)]})}},t.prototype.componentDidMount=function(){"create"===this.props.action&&this.setState({envVarsList:[(0,v.default)(this.state.addTpl)]}),this.getParamsListFun(),this.props.onRef&&this.props.onRef(this)},t.prototype.render=function(){var e=this,t=this.props.isSee,a=this.props.form,d=a.getFieldDecorator,l=a.getFieldValue,u=this.state.envVarsList;d("list",{initialValue:u});var c=l("list"),f=c.map((function(a,l){return(0,i.default)(r.default,{},l,(0,i.default)(D,{style:{display:"none"}},void 0,d("paramsList["+l+"].from",{initialValue:a.from})(M)),(0,i.default)(D,{style:{display:"none"}},void 0,d("paramsList["+l+"].id",{initialValue:a.id})(k)),(0,i.default)(D,{},void 0,d("paramsList["+l+"].fileName",{validateTrigger:["onChange","onBlur"],initialValue:a.fileName,rules:[{required:!0,whitespace:!0,message:"\u8bf7\u8f93\u5165\u53c2\u6570\u540d\u79f0"}]})((0,i.default)(s.default,{disabled:"had"==a.from||t,style:T,placeholder:"\u8bf7\u8f93\u5165\u53c2\u6570\u540d\u79f0"}))),(0,i.default)(D,{},void 0,d("paramsList["+l+"].fileLabel",{initialValue:a.fileLabel})((0,i.default)(s.default,{disabled:"had"==a.from||t,style:T,placeholder:"\u8bf7\u8f93\u5165\u53c2\u6570\u522b\u540d"}))),(0,i.default)(D,{},void 0,d("paramsList["+l+"].fileType",{initialValue:a.fileType,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u53c2\u6570\u7c7b\u578b"}]})((0,i.default)(p.default,{placeholder:"\u8bf7\u9009\u62e9\u53c2\u6570\u7c7b\u578b",style:E,disabled:"had"==a.from||t,onChange:function(t){return e.paramsTypeChange(t,""+l)}},void 0,_.ParamsTypes_List.map((function(e){return(0,i.default)(S,{value:e.name},e.name,e.name)}))))),"\u679a\u4e3e\u578b"==a.fileType||void 0==a.fileType?(0,i.default)(D,{},void 0,d("paramsList["+l+"].fileValue",{initialValue:a.fileValue})((0,i.default)(s.default,{disabled:"had"==a.from||t,style:T,placeholder:"\u591a\u4e2a\u503c\u4ee5\u82f1\u6587\u9017\u53f7\u5206\u5272','"}))):(0,i.default)(D,{},void 0,d("paramsList["+l+"].fileValue",{initialValue:a.fileValue})((0,i.default)(s.default,{disabled:"had"==a.from||t,style:T}))),(0,i.default)(D,{},void 0,d("paramsList["+l+"].fileLegth",{validateTrigger:["onChange","onBlur"],initialValue:a.fileLegth,rules:[{required:!0,whitespace:!0,message:"\u8bf7\u8f93\u5165\u53c2\u6570\u957f\u5ea6"}]})((0,i.default)(o.default,{min:1,precision:0,disabled:"had"==a.from||t,style:w,placeholder:"\u8bf7\u8f93\u5165\u53c2\u6570\u957f\u5ea6"}))),(0,i.default)(D,{},void 0,d("paramsList["+l+"].defaultValue",{initialValue:a.defaultValue})((0,i.default)(s.default,{disabled:"had"==a.from||t,style:T,placeholder:"\u8bf7\u8f93\u5165\u9ed8\u8ba4\u503c"}))),(0,i.default)(D,{},void 0,d("paramsList["+l+"].fileDescribe",{initialValue:a.fileDescribe})((0,i.default)(s.default,{style:T,disabled:"had"==a.from||t,placeholder:"\u8bf7\u8f93\u5165\u53c2\u6570\u63d0\u793a\u8bf4\u660e"}))),!e.props.isSee&&(0,i.default)(D,{},void 0,(0,i.default)(n.default,{icon:P,onClick:function(){return e.handleAddOrRemove("add",l,a)}}),(0,i.default)(n.default,{style:{marginLeft:10},icon:L,onClick:function(){return e.handleAddOrRemove("remove",l,a)}})))}));return(0,i.default)(I,{},void 0,(0,i.default)(b.ModalView,{viewType:"Params",modalTitle:"\u5e38\u7528\u53c2\u6570\u5217\u8868",onCancelType:!1,width:1200,callVisible:this.callVisible,modalVisible:this.state.modalVisibleParams,comp:(0,i.default)(x.default,{tbData:this.state.tbData,disabledKeys:this.state.disabledKeys,onRef:function(t){e.child=t}}),okText:"\u786e\u5b9a\u52a0\u8f7d",submitModalOk:this.submitModalOk},"Params"),!this.props.isSee&&(0,i.default)(n.default,{className:"paramsBtn",onClick:this.showParamsDlg,type:"primary",ghost:!0},void 0,"\u5e38\u7528\u53c2\u6570\u9009\u62e9"),0===c.length&&!this.props.isSee&&(0,i.default)(n.default,{type:"dashed",onClick:function(){return e.handleAddOrRemove("add",u.length,null)},style:{marginLeft:"16px"}},void 0,N," \u6dfb\u52a0\u81ea\u5b9a\u4e49\u53c2\u6570"),this.props.isSee&&0===u.length&&A,(0,i.default)("div",{},void 0,u.length>0&&R,(0,i.default)(h.Form,{layout:"inline",autoComplete:"off"},void 0,f,!this.props.isSee&&c.length>0&&(0,i.default)(r.default,{},void 0,(0,i.default)(D,{},void 0,(0,i.default)(n.default,{type:"primary",onClick:this.handleSubmit},void 0,"\u751f\u6210\u4ee3\u7801"))))))},t}(f.default.Component);F.defaultProps={};t.default=(0,g.connect)((function(){return{}}))(h.Form.create()(F))},"./src/module/modelLearn/abilityToLearn/learnBased/component/ParamsTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/table/index.js")),o=h(a("./node_modules/antd/es/input/index.js")),s=h(a("./node_modules/antd/es/tooltip/index.js")),r=h(a("./node_modules/babel-runtime/helpers/jsx.js")),i=h(a("./node_modules/babel-runtime/helpers/extends.js")),d=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=h(a("./node_modules/babel-runtime/helpers/inherits.js")),c=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=h(a("./node_modules/react/index.js")),f=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=c.default.Option,v=m.default.div.withConfig({displayName:"ParamsTable__RelevanceDom",componentId:"sc-1j4099-0"})([".jSkOjt{padding-top:0;}.ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:0 8px;}"]),_={width:180},y={color:"#f5222d",marginRight:"4px",position:"relative",top:"3px"},b=(0,r.default)("div",{},void 0,(0,r.default)("span",{style:y},void 0,"*"),"\u53c2\u6570\u540d\u79f0"),x=(0,r.default)("div",{},void 0,(0,r.default)("span",{style:y},void 0,"*"),"\u53c2\u6570\u7c7b\u578b"),C=(0,r.default)("div",{},void 0,(0,r.default)("span",{style:y},void 0,"*"),"\u53c2\u6570\u957f\u5ea6"),j=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.state={selectedRows:[],selectedRowKeys:[]},n.columns=[(0,i.default)({title:function(){return b},dataIndex:"fileName",key:"fileName",ellipsis:!0},{styleW0:_},{render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,(0,r.default)(o.default,{readOnly:!0,value:e}))}}),(0,i.default)({title:"\u53c2\u6570\u522b\u540d",dataIndex:"fileLabel",key:"fileLabel",ellipsis:!0},{styleW0:_},{render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,(0,r.default)(o.default,{readOnly:!0,value:e}))}}),(0,i.default)({title:function(){return x},dataIndex:"fileType",key:"fileType",ellipsis:!0},{width:140},{render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,(0,r.default)(c.default,{readOnly:!0,value:e,style:{width:"100px"}},void 0,(0,r.default)(g,{value:e},e,e)))}}),(0,i.default)({title:"\u53c2\u6570\u503c",dataIndex:"fileValue",key:"fileValue",ellipsis:!0},{styleW0:_},{render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,(0,r.default)(o.default,{readOnly:!0,value:e}))}}),(0,i.default)({title:function(){return C},dataIndex:"fileLegth",key:"fileLegth",ellipsis:!0},{width:120},{render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,(0,r.default)(o.default,{readOnly:!0,value:e}))}}),(0,i.default)({title:"\u9ed8\u8ba4\u503c",dataIndex:"defaultValue",key:"defaultValue",ellipsis:!0},{styleW0:_},{render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,(0,r.default)(o.default,{readOnly:!0,value:e}))}}),(0,i.default)({title:"\u53c2\u6570\u63d0\u793a\u8bf4\u660e",dataIndex:"fileDescribe",key:"fileDescribe",ellipsis:!0},{styleW0:_},{render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,(0,r.default)(o.default,{readOnly:!0,value:e}))}})],n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef&&this.props.onRef(this)},t.prototype.render=function(){var e=this,t=this.state.selectedRowKeys,a=this.props.tbData,o={selectedRowKeys:t,onChange:function(t,a){e.setState({selectedRows:a,selectedRowKeys:t},(function(){console.log("\u9009\u4e2d\u7684\u6570\u636e3:",e.state.selectedRows,t)}))},getCheckboxProps:function(e){return{disabled:e.hasSelected}}};return(0,r.default)(v,{},void 0,(0,r.default)(n.default,{dataSource:a,rowSelection:o,rowKey:"id",bordered:!0,pagination:!1,columns:this.columns,scroll:{y:480}}))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(j)},"./src/module/modelLearn/abilityToLearn/learnBased/component/PreviewDlg.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/input/index.js")),o=y(a("./node_modules/antd/es/tooltip/index.js")),s=y(a("./node_modules/antd/es/row/index.js")),r=y(a("./node_modules/babel-runtime/helpers/jsx.js")),i=y(a("./node_modules/antd/es/message/index.js")),d=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=y(a("./node_modules/babel-runtime/helpers/inherits.js")),c=y(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=y(a("./node_modules/react/index.js")),f=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./src/redux/services/modelLearn.js"),v=a("./src/module/modelLearn/common.js"),_=a("./src/module/modelLearn/abilityToLearn/learnBased/style.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=c.default.Option,x=h.Form.Item,C=(0,r.default)(m.QuestionCircleOutlined,{className:"iconTip"}),j=(0,r.default)(m.QuestionCircleOutlined,{className:"iconTip"}),S=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.getEchoInfoFun=function(){var e=n.props.renderData;(0,g.getEchoInfo)({id:e.id,taskId:e.taskId}).then((function(e){var t=e.datalearn;"200"==t.status&&t.data&&n.getModelServiceInfoFun(t.data.reasoningServiceId)})).catch((function(e){i.default.error(e.message)}))},n.getModelServiceInfoFun=function(e){(0,g.getModelServiceInfo)(e).then((function(e){var t=e.code,a=e.data,o=e.message;"00000"==t&&n.setState({reasoningServiceName:a?a.deployShowName:""}),"99999"==t&&i.default.error(o)}))},n.state={reasoningServiceName:"",paramsList:[],showFlag:!0},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,a=t.renderData,n=t.isAuthenticated,o="learnAbilityDetail"===a.from&&n||"learnAbilityDetail"!==a.from;if(this.setState({showFlag:o}),o&&this.getModelServiceInfoFun(a.reasoningServiceId),"webfront"==a.from){var s=a.paramsJson?JSON.parse(a.paramsJson):[];s.length>0&&s.map((function(e){if("\u679a\u4e3e\u578b"==e.fileType||"\u6570\u7ec4"==e.fileType){var t=[];""===e.fileValue||null===e.fileValue||void 0===e.fileValue||(t=e.fileValue.split(",")),e.enumList=t}})),this.setState({paramsList:s})}else o&&this.getEchoInfoFun(),(0,g.getParamsJson)({id:a.id,taskId:a.taskId}).then((function(t){var a=t.datalearn;if("200"==a.status){if(a.data&&!(0,v.isJSON)(a.data))return void i.default.error("\u8fd4\u56de\u7684json\u4e32\u4e0d\u5408\u6cd5\uff01");var n=a.data?JSON.parse(a.data):[];n.length>0&&n.map((function(e){if("\u679a\u4e3e\u578b"==e.fileType||"\u6570\u7ec4"==e.fileType){var t=[];""===e.fileValue||null===e.fileValue||void 0===e.fileValue||(t=e.fileValue.split(",")),e.enumList=t}})),e.setState({paramsList:a.data?n:[]})}"201"!=a.status||i.default.error(a.message)}))},t.prototype.render=function(){var e={width:"480px"},t=this.props.renderData,a=this.state.paramsList,i=this.state,d=i.reasoningServiceName,l=i.showFlag,u=d||"--";return(0,r.default)(_.CreateModelPreviewDom,{},void 0,(0,r.default)(h.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{style:{display:"flex",marginTop:"10px"}},void 0,(0,r.default)(x,{label:"\u5b66\u4ef6\u540d\u79f0"},void 0,(0,r.default)(o.default,{placement:"topLeft",title:t.modelName},void 0,(0,r.default)("span",{className:"name-text"},void 0,t.modelName))),l&&(0,r.default)(x,{label:"\u63a8\u7406\u670d\u52a1"},void 0,(0,r.default)(o.default,{placement:"topLeft",title:u},void 0,(0,r.default)("span",{className:"name-text"},void 0,u)))),a.length>0&&a.map((function(t,a){return"\u679a\u4e3e\u578b"===t.fileType||"\u6570\u7ec4"===t.fileType?(0,r.default)(s.default,{},a,(0,r.default)("div",{className:"ant-col ant-legacy-form-item-label"},void 0,(0,r.default)(o.default,{placement:"topLeft",title:t.fileLabel?t.fileLabel:t.fileName},void 0,(0,r.default)("span",{},void 0,t.fileLabel?t.fileLabel:t.fileName))),(0,r.default)(x,{},void 0,(0,r.default)(c.default,{value:t.defaultValue,style:e},void 0,t.enumList.map((function(e){return(0,r.default)(b,{value:e},e,e)}))),t.fileDescribe&&(0,r.default)(o.default,{placement:"topLeft",title:t.fileDescribe},void 0,C))):(0,r.default)(s.default,{},a,(0,r.default)("div",{className:"ant-col ant-legacy-form-item-label"},void 0,(0,r.default)(o.default,{placement:"topLeft",title:t.fileLabel?t.fileLabel:t.fileName},void 0,(0,r.default)("span",{},void 0,t.fileLabel?t.fileLabel:t.fileName))),(0,r.default)(x,{},void 0,(0,r.default)(n.default,{value:t.defaultValue,style:e}),t.fileDescribe&&(0,r.default)(o.default,{placement:"topLeft",title:t.fileDescribe},void 0,j)))}))))},t}(p.default.Component);S.defaultProps={renderData:{}};t.default=(0,f.connect)((function(){return{}}))(h.Form.create()(S))},"./src/module/modelLearn/abilityToLearn/learnBased/component/RelevanceSearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/button/index.js")),o=m(a("./node_modules/antd/es/input/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js")),l=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=m(a("./node_modules/react/index.js")),c=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./src/styles/GlobalStyle.js"),f=a("./src/module/modelLearn/common.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=l.default.Option,g={width:"120px"},v={marginLeft:0},y=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.changeSelectFun=n.changeSelect("deployType"),n}return(0,d.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,s.default)(p.SearchBarWrapper,{className:"search-bar"},void 0,(0,s.default)("span",{className:"search__item-wrapper",style:v},void 0,(0,s.default)(l.default,{onChange:this.changeSelectFun,getPopupContainer:function(e){return e.parentNode},style:g,placeholder:"\u63a8\u7406\u7c7b\u578b",defaultValue:this.props.deployType,className:"sort-cond"},void 0,f.ServiceType_List.map((function(e){return(0,s.default)(h,{value:e.code},e.code,e.name)})))),(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(o.default,{style:{width:"260px"},onChange:function(t){return e.props.onChange("deployShowName",t.target.value)},placeholder:"\u8bf7\u8f93\u5165\u670d\u52a1\u540d\u79f0"})),(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(n.default,{className:"saveButton",type:"primary",onClick:this.props.searchFun},void 0,"\u67e5\u8be2")))},t}(u.default.Component);t.default=(0,c.connect)((function(){return{}}))(y)},"./src/module/modelLearn/abilityToLearn/learnBased/component/RelevanceTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/table/index.js")),o=y(a("./node_modules/antd/es/tooltip/index.js")),s=y(a("./node_modules/babel-runtime/helpers/jsx.js")),r=y(a("./node_modules/babel-runtime/helpers/extends.js")),i=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var u=y(a("./node_modules/react/index.js")),c=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./src/components/index.js"),f=a("./src/redux/services/modelLearn.js"),m=y(a("./src/module/modelLearn/abilityToLearn/learnBased/component/RelevanceSearchBar.jsx")),h=a("./src/module/modelLearn/common.js"),g=y(a("./node_modules/moment/moment.js")),v=a("./src/styles/GlobalStyle.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"RelevanceTable__RelevanceDom",componentId:"g4791f-0"})([".jSkOjt{padding-top:0;}"]),x=(0,s.default)(p.LoadingIndicator,{}),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t)},n.searchFun=function(){n.searchCond.pageNo=0,n.getModelServiceListFun(n.searchCond)},n.getModelServiceListFun=function(){n.setState({loadingTb:!0});var e=[],t=[],a=0;new Promise((function(e){(0,f.getModelServiceList)(n.searchCond).then((function(t){e(t)}))})).then((function(o){var s=o.data.content;a=o.data.totalElements;for(var i=function(t){e.push(new Promise((function(e){(0,f.getApplicationsInfo)(s[t].deployBusinessType,s[t].project).then((function(a){var n=(0,r.default)({},s[t],{applicationName:a.data.applicationName});e(n)}))})))},d=0;d<s.length;d++)i(d);Promise.all(e).then((function(e){e.map((function(e){t.push(e)}))})).then((function(){n.setState({tbData:t,loadingTb:!1,tbPage:{total:a}})}))}))},n.onChangePage=function(e,t){n.searchCond.pageNo=parseInt(e-1),n.searchCond.pageSize=parseInt(t),n.getModelServiceListFun(n.searchCond)};var l=function(e){return""===e||void 0===e||null===e?"--":(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e||"--")};return n.state={_this:n,tbData:[],loadingTb:!1,tbPage:{total:0}},n.searchCond={deployShowName:"",deployType:"RAPIDMODEL",isPage:"Y",pageSize:10,pageNo:0},n.columns=[{title:"\u670d\u52a1/\u4efb\u52a1\u540d\u79f0",dataIndex:"deployShowName",ellipsis:!0,render:function(e){return l(e)},width:"200px"},{title:"\u5f52\u5c5e\u5e94\u7528",dataIndex:"applicationName",ellipsis:!0,width:"120px",render:function(e){return l(e)}},{title:"\u63a8\u7406\u7c7b\u578b",dataIndex:"deployType",ellipsis:!0,width:"120px",render:function(e,t){var a=t.deployType.name,n=h.ServiceType_List.filter((function(e){return e.code==a}));return n.length>0?n[0].name:"--"}},{title:"\u670d\u52a1/\u4efb\u52a1\u63cf\u8ff0",dataIndex:"deployDesc",ellipsis:!0,render:function(e){return l(e)}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",ellipsis:!0,width:"160px",render:function(e){var t=e?(0,g.default)(e).format("YYYY-MM-DD HH:mm:ss"):"--";return(0,s.default)(o.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u63a8\u7406\u8fd0\u884c\u72b6\u6001",dataIndex:"deployState",width:140,render:function(e){return(0,s.default)("span",{},void 0,(0,s.default)(p.StateLabel,{source:"modelLearn",code:_.get(e,"value")}))}},{title:"\u64cd\u4f5c",width:"80px",render:function(e,t){var a=[{handleName:"\u5173\u8054",handleAction:function(){n.props.getRelevanceInfo(t)}}];return(0,s.default)(p.ListButtons,{buttons:a,maxShowNum:6})}}],n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef&&this.props.onRef(this),this.getModelServiceListFun()},t.prototype.render=function(){var e=this.state,t=e.tbData,a=e.tbPage,o=e.loadingTb;return(0,s.default)(b,{},void 0,(0,s.default)(v.PageWrapper,{style:{paddingTop:0}},void 0,(0,s.default)(v.PageHeader,{},void 0,(0,s.default)(m.default,{deployType:this.searchCond.deployType,onChange:this.changeSearchCond,searchFun:this.searchFun})),(0,s.default)(v.PageBody,{},void 0,o&&x,!o&&(0,s.default)(v.TableWrapper,{},void 0,(0,s.default)("div",{},void 0,(0,s.default)(n.default,{dataSource:t,bordered:!0,pagination:!1,columns:this.columns},"deployId"),(0,s.default)(p.TabPagination,{currentPage:this.searchCond.pageNo+1,pageSize:this.searchCond.pageSize,total:a.total,onChange:this.onChangePage}))))))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(C)},"./src/module/modelLearn/abilityToLearn/learnBased/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/antd/es/auto-complete/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/antd/es/message/index.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js")),u=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=v(a("./node_modules/react/index.js")),p=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),f=a("./src/styles/GlobalStyle.js"),m=a("./src/module/modelLearn/common.js"),h=a("./src/utils/authPermit.js"),g=a("./src/redux/services/modelLearn.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=u.default.Option,b={width:"120px"},x={marginLeft:0},C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.getLenovoLearnNameFun=function(e){(0,g.getLenovoLearnName)({projectId:n.projectId,status:n.props.status,searchText:e}).then((function(e){var t=e.datalearn;"200"==t.status&&n.setState({lenvoList:t.data}),"201"==t.status&&r.default.error(t.message)}))},n.onSearch=function(e){e&&n.getLenovoLearnNameFun(e)},n.renderDataSource=function(e){return e.map((function(e){return(0,s.default)(y,{},e.model_name,e.model_name)}))};var o=(0,h.getCurrentContext)().id;return n.projectId=o,n.changeSelectFun=n.changeSelect("status"),n.state={lenvoList:[]},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this,t=this.state.lenvoList;return(0,s.default)(f.SearchBarWrapper,{className:"search-bar"},void 0,(0,s.default)("span",{className:"search__item-wrapper",style:x},void 0,(0,s.default)(u.default,{onChange:this.changeSelectFun,getPopupContainer:function(e){return e.parentNode},style:b,placeholder:"\u72b6\u6001",allowClear:!0,defaultValue:this.props.status,className:"sort-cond"},void 0,m.Status_List.map((function(e){return(0,s.default)(y,{value:e.code},e.code,e.name)})))),(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(o.default,{dataSource:this.renderDataSource(t),onSearch:this.onSearch,onSelect:function(t){return e.props.onChange("searchText",t)},onChange:function(t){return e.props.onChange("searchText",t)},style:{width:200},placeholder:"\u8bf7\u8f93\u5165\u5b66\u4ef6\u540d\u79f0"})),(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(n.default,{className:"saveButton",type:"primary",onClick:this.props.searchFun},void 0,"\u67e5\u8be2")))},t}(c.default.Component);t.default=(0,p.connect)((function(){return{}}))(C)},"./src/module/modelLearn/abilityToLearn/learnBased/createPage/CodePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/babel-runtime/helpers/jsx.js")),s=I(a("./node_modules/babel-runtime/helpers/extends.js")),r=I(a("./node_modules/antd/es/message/index.js")),i=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=I(a("./node_modules/babel-runtime/helpers/inherits.js")),u=I(a("./node_modules/antd/es/tree/index.js")),c="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelLearn\\abilityToLearn\\learnBased\\createPage\\CodePage.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/tree/style/index.js");var p=I(a("./node_modules/react/index.js")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=(I(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=I(a("./src/module/modelLearn/abilityToLearn/learnBased/component/ParamsDefine.jsx")),g=a("./src/components/index.js"),v=I(a("./src/module/modelLearn/abilityToLearn/learnBased/component/PreviewDlg.jsx")),y=I(a("./src/module/modelLearn/abilityToLearn/components/ApplyDlg.jsx")),b=a("./src/utils/authPermit.js"),x=a("./src/utils/history.js"),C=a("./src/module/modelLearn/common.js"),j=a("./src/redux/services/modelLearn.js"),S=a("./src/module/modelLearn/abilityToLearn/learnBased/style.js");function I(e){return e&&e.__esModule?e:{default:e}}var T=u.default.TreeNode,w=(0,o.default)("span",{},void 0,"\u5e38\u7528\u7ec4\u4ef6"),E=(0,o.default)(f.AppstoreOutlined,{}),D=(0,o.default)(g.LoadingIndicator,{}),M=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.onload=function(){_.delay((function(){n.setState({iFrameLoading:!1})}),300)},n.produceCode=function(e){var t=e.map((function(e){return{defaultValue:e.defaultValue,fileLabel:e.fileLabel,fileName:e.fileName,fileType:e.fileType,fileValue:e.fileValue}}));(0,j.insertParams)({codeBlock:t,fileName:n.searchObj.taskId}).then((function(e){var t=e.code,a=e.message;"201"==t&&r.default.error(a),"200"==t&&(r.default.success(r.default),n.setState({iFrameLoading:!0,iframeUrl:""}),setTimeout((function(){n.setState({iframeUrl:n.searchObj.idefile})}),1e3))})).catch((function(e){r.default.error(e.message)}))},n.onSelectTree=function(e){n.setState({componentsSelecteds:e})},n.insertComponentsFun=function(){var e=n.state,t=e.componentsSelecteds,a=e.treeDataOri;if(0!=t.length){for(var o=[],s=0;s<a.length;s++)for(var i=0;i<t.length;i++)a[s].id==t[i]&&o.push(a[s]);var d=[];o.map((function(e){console.log(JSON.stringify(e.assemblyCode));var t=e.assemblyCode.replace(/\r\n/g,"huanglp").split("huanglp").filter((function(e){return""!==e}));d=d.concat(t)})),(0,j.insertComponents)({codes:d,fileName:n.searchObj.taskId}).then((function(e){n.setState({componentsSelecteds:[]});var t=e.code,a=e.message;"201"==t&&r.default.error(a),"200"==t&&(r.default.success(a),n.setState({iframeUrl:"",iFrameLoading:!0}),setTimeout((function(){n.setState({iframeUrl:n.searchObj.idefile})}),1e3))})).catch((function(e){n.setState({componentsSelecteds:[]}),r.default.error(e.message)}))}else r.default.error("\u8bf7\u9009\u62e9\u5e38\u7528\u7ec4\u4ef6")},n.previewOk=function(){n.ParamsDefineRef.props.form.validateFields((function(e,t){if(!e){var a=t.paramsList,o=JSON.stringify(a);n.setState({modalVisiblePreview:!0,renderDataPreview:{paramsJson:o,reasoningServiceId:n.searchObj.reasoningServiceId,from:"webfront",modelName:n.searchObj.modelName}})}}))},n.returnBack=function(){(0,x.navigateTo)("/modelLearn/learnBased")},n.saveOrSubmitOk=function(e){"save"==e&&n.setState({loadingSave:!0}),"submit"==e&&n.setState({loadingSubmit:!0});var t="",a=[];n.ParamsDefineRef.props.form.validateFields((function(o,i){if(o)return n.setState({loadingSubmit:!1,loadingSave:!1}),void r.default.error("\u8bf7\u68c0\u67e5\u53c2\u6570\u914d\u7f6e\u662f\u5426\u6b63\u786e");var d=i.paramsList;a=d,t=JSON.stringify(a);var l=n.state.commonData,u=(0,s.default)({},n.searchObj,l),c="copy"==n.action?n.searchObj.taskIdNew:n.searchObj.taskId,p={components:"",jupterGitPath:"",jupyterName:c,jupyterPath:n.searchObj.idefile,parameters:t};u.taskId=c,u.taskIdNew=void 0;var f=(0,s.default)({},u,p);(0,j.saveBased)(f).then((function(t){var a=t.datalearn;n.setState({loadingSave:!1}),"200"==a.status&&("save"==e&&(r.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01",2),setTimeout((function(){return(0,x.navigateTo)("/modelLearn/learnBased")}),2e3)),"submit"==e&&n.submitCodeFun(f)),"201"==a.status&&(n.setState({loadingSubmit:!1}),r.default.error(a.message))}))}))},n.submitCodeFun=function(e){(0,j.submitCode)(e).then((function(t){n.setState({loadingSubmit:!1});var a=t.datalearn;"200"==a.status&&n.setState({dataSumited:(0,s.default)({},e,a.data),modalVisibleApply:!0}),"201"==a.status&&r.default.error(a.message)})).catch((function(e){n.setState({loadingSubmit:!1}),r.default.error(e.message)}))},n.renderTreeNodes=function(e){return e.map((function(e){return e.children?(0,o.default)(T,{title:e.title,dataRef:e},e.key,n.renderTreeNodes(e.children)):p.default.createElement(T,(0,s.default)({key:e.key},e,{__source:{fileName:c,lineNumber:347}}))}))};var l=window.opener.openParentParams;n.searchObj=JSON.parse(l),n.action=_.get(a.match.params,"action"),console.log("\u7236\u7ea7\u7a97\u53e3\u4f20\u8fc7\u6765\u7684\u53c2\u6570",window.opener,n.searchObj,n.action);var u=JSON.parse(localStorage.getItem("AI.LOGIN_INFO")).userInfo;n.userId=u.userId;var f=(0,b.getCurrentContext)().id;return n.projectId=f,n.iframeRef=p.default.createRef(),n.isSee="see"===n.action,n.state={echoData:{},treeDataOri:[],treeData:[],componentsSelecteds:[],modulesOpen:!1,modalVisibleApply:!1,modalVisiblePreview:!1,renderDataPreview:{},iFrameLoading:!0,iframeUrl:n.searchObj.idefile,commonData:{projectId:n.projectId,token:localStorage.getItem("AI.token"),codingType:0,updateUser:u.userId,createUser:u.userId},loadingSave:!1,loadingSubmit:!1,dataSumited:{}},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){var e=this;if((0,j.getModulesTree)().then((function(t){var a=t.datalearn;if("200"==a.status){var n=a.data,o=(0,C.pidToTreeJson)(n);e.setState({treeData:o,treeDataOri:a.data})}})),"edit"!=this.action&&"see"!=this.action&&"copy"!=this.action||this.getEchoInfoFun(),"edit"==this.action){var t=this.searchObj,a=t.id,n=t.taskId;(0,j.modifyLearnStatus)({id:a,taskId:n,status:1,updateUser:this.userId}).then((function(e){"200"==e.status&&console.log("\u4fee\u6539\u72b6\u6001\u4e3a\u7f16\u8f91\u72b6\u6001")}))}},t.prototype.getEchoInfoFun=function(){var e=this,t=this.searchObj,a=t.id,n=t.taskId,o=t.idOld;(0,j.getEchoInfo)({id:"copy"==this.action?o:a,taskId:n}).then((function(t){var a=t.datalearn;if("200"==a.status&&a.data){var n=[];a.data.components&&(n=a.data.components.split(",")),e.setState({componentsSelecteds:n,echoData:a.data})}"201"==a.status&&r.default.error(a.message)})).catch((function(e){r.default.error(e.message)}))},t.prototype.render=function(){var e=this,t=this.state.modulesOpen;return(0,o.default)(S.CreateModelServiceDom,{},void 0,(0,o.default)(g.ModalView,{viewType:"previewParams",modalTitle:"\u5b66\u4ef6\u6784\u5efa\u7ed3\u679c\u9884\u89c8",onCancelType:!1,width:1e3,callVisible:function(){return e.setState({modalVisiblePreview:!1})},modalVisible:this.state.modalVisiblePreview,comp:(0,o.default)(v.default,{renderData:this.state.renderDataPreview})},"previewParams"),(0,o.default)(S.CommonModulesDom,{},void 0,this.state.modulesOpen&&(0,o.default)("div",{className:"openedLeft"},void 0,(0,o.default)("div",{},void 0,(0,o.default)("div",{className:"hd"},void 0,w,(0,o.default)(f.MenuUnfoldOutlined,{className:"iconClose",onClick:function(){return e.setState({modulesOpen:!1})}})),(0,o.default)("div",{className:"tree-div"},void 0,(0,o.default)(u.default,{multiple:!0,onSelect:this.onSelectTree,selectedKeys:this.state.componentsSelecteds},void 0,this.renderTreeNodes(this.state.treeData))),!this.isSee&&(0,o.default)("div",{className:"btn-div"},void 0,(0,o.default)(n.default,{onClick:this.insertComponentsFun,style:{width:"100%",fontSize:"14px"}},void 0,"\u52a0\u8f7d\u5230IDE")))),(0,o.default)("div",{className:"closed",onClick:function(){return e.setState({modulesOpen:!t})}},void 0,E,"\u5e38\u7528\u7ec4\u4ef6")),(0,o.default)(g.ModalView,{modalTitle:"\u521b\u5efa\u65b0\u5e94\u7528",onCancelType:!1,width:1e3,callVisible:function(){return e.setState({modalVisibleApply:!1})},modalVisible:this.state.modalVisibleApply,okText:"\u63d0\u4ea4",submitModalOk:function(t){e.ApplyDlgRef.submit(t)},comp:(0,o.default)(y.default,{renderData:this.state.dataSumited,curFor:"CodePage",onRef:function(t){e.ApplyDlgRef=t}})}),(0,o.default)(g.ModelConfigPanel,{title:"\u5b9a\u4e49\u53c2\u6570"},void 0,(0,o.default)(h.default,{echoData:this.state.echoData,produceCode:this.produceCode,isSee:this.isSee,action:this.action,onRef:function(t){e.ParamsDefineRef=t}})),(0,o.default)(g.ModelConfigPanel,{title:"IDE\u7f16\u7801"},void 0,this.state.iFrameLoading&&D,p.default.createElement("iframe",{ref:this.iframeRef,onLoad:this.onload,frameBorder:"0",scrolling:"yes",src:this.state.iframeUrl,style:{width:"100%",height:"auto",minHeight:"800px",maxHeight:"2000px",visibility:this.state.iFrameLoading?"hidden":"visible",overflowY:"auto"},title:"IDE\u7f16\u7801",__source:{fileName:c,lineNumber:430}})),this.isSee?(0,o.default)("div",{className:"buttons-fixed-bottom"},void 0,(0,o.default)(n.default,{onClick:this.returnBack},void 0,"\u8fd4\u56de"),(0,o.default)(n.default,{onClick:this.previewOk,type:"primary",ghost:!0},void 0,"\u9884\u89c8")):(0,o.default)("div",{className:"buttons-fixed-bottom"},void 0,(0,o.default)(n.default,{onClick:this.previewOk},void 0,"\u9884\u89c8"),(0,o.default)(n.default,{loading:this.state.loadingSave,onClick:function(){return e.saveOrSubmitOk("save")},type:"primary",ghost:!0},void 0,this.state.loadingSave?"\u4fdd\u5b58\u4e2d...":"\u4fdd\u5b58"),(0,o.default)(n.default,{loading:this.state.loadingSubmit,onClick:function(){return e.saveOrSubmitOk("submit")},type:"primary"},void 0,this.state.loadingSubmit?"\u63d0\u4ea4\u4e2d...":"\u63d0\u4ea4")))},t}(p.default.Component);t.default=(0,m.connect)((function(){return{}}))(M)},"./src/module/modelLearn/abilityToLearn/learnBased/createPage/CreatePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=M(a("./node_modules/antd/es/button/index.js")),o=M(a("./node_modules/antd/es/row/index.js")),s=M(a("./node_modules/babel-runtime/helpers/jsx.js")),r=M(a("./node_modules/antd/es/message/index.js")),i=M(a("./node_modules/babel-runtime/helpers/extends.js")),d=M(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=M(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=M(a("./node_modules/babel-runtime/helpers/inherits.js")),c=M(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=M(a("./node_modules/react/index.js")),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");M(a("./node_modules/prop-types/index.js"));var m=a("./node_modules/react-redux/es/index.js"),h=a("./src/module/modelLearn/common.js"),g=a("./src/module/devCenter/components/IoSchema/utils.js"),v=a("./src/utils/authPermit.js"),y=a("./src/components/index.js"),b=a("./src/routes/routeHelper.jsx"),x=M(a("./src/module/modelLearn/abilityToLearn/learnBased/component/RelevanceTable.jsx")),C=a("./src/utils/constants.js"),j=M(a("./src/module/modelLearn/abilityToLearn/learnBased/createPage/apiDoc/SchemaTable.jsx")),S=a("./src/redux/services/modelLearn.js"),I=M(a("./src/module/modelLearn/abilityToLearn/learnBased/component/CodeDlg.jsx")),T=a("./src/module/modelLearn/abilityToLearn/learnBased/style.js"),w=a("./src/utils/history.js"),E=M(a("./node_modules/moment/moment.js")),D=M(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function M(e){return e&&e.__esModule?e:{default:e}}for(var k=f.Form.Item,P=c.default.TextArea,L=[],N=1;N<=10;N++){var A=a("./src/styles/images/modellearn/introIcon sync recursive ^\\.\\/.*\\.svg$")("./"+N+".svg");L.push({languageImg:A,languageName:N,languageId:N})}var R=D.default.div.withConfig({displayName:"CreatePage__CodingLanguage",componentId:"nell8q-0"})(["width:100%;min-height:120px;.languageTitle{font-size:14px;color:#1f2d3d;letter-spacing:0;padding-bottom:20px;}ul{padding:0px;list-style:none;display:flex;flex-flow:wrap;li{cursor:pointer;margin:16px 20px 10px;border:1px solid hsla(0,0%,87.5%,0.59);padding:16px;border-radius:4px;width:120px;height:120px;img{width:80px;height:80px;}&:hover{border:1px solid #147bd1;}&.iconActive{border:1px solid #147bd1;}&.noSelect{display:none;cursor:not-allowed;color:#a2b0c4;&:hover{cursor:not-allowed;border:1px solid transparent;}}}}"]),F=(0,s.default)(o.default,{className:"only-desc"},void 0,(0,s.default)(k,{label:"\u63a8\u7406\u7c7b\u578b"},void 0,"\u63a8\u7406\u670d\u52a1")),O=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.revertStatus=function(){var e=n.state.echoData.status;console.log("\u56de\u663e\u65f6\u53d6\u6d88\u65f6\u72b6\u6001",n.state.echoData.status),(0,S.modifyLearnStatus)({id:n.id,taskId:n.taskId,status:e,updateUser:n.userId}).then((function(e){"200"==e.status&&console.log("\u8fd8\u539f\u72b6\u6001\u4e3a\u4e4b\u524d\u7684\u72b6\u6001")}))},n.cancel=function(){(0,w.navigateTo)(b.modelLearnUrl.pagebased())},n.validateLearnName=function(e,t,a){if(t){var o={modelName:t,taskId:n.taskId,projectId:n.projectId};"copy"==n.action&&(o.taskId=n.taskIdNew),(0,S.checkLearnName)(o).then((function(e){var t=e.datalearn;"200"==t.status&&0==t.data.checkResult?a("\u5b66\u4ef6\u540d\u79f0\u5df2\u5b58\u5728!"):"201"==t.status?a(t.message):a()}))}else a()},n.submit=function(e){e.preventDefault(),n.props.form.validateFields((function(e,t){if(!e){var a=n.state,o=a.moduleData,s=a.echoData,r=(0,i.default)({},o,t);n.setState({loadingSave:!0}),"copy"==n.action?(r.id=void 0,r.taskId=n.taskIdNew,s.jupyterPath?(r=(0,i.default)({},s,o,t),(0,S.getIdeCheak)({taskId:o.taskId,projectId:n.projectId}).then((function(e){var t=e.code,a=e.message;"200"==t&&(0,S.getIdeCopy)({taskId:o.taskId,newTaskId:n.taskIdNew}).then((function(e){var t=e.code,a=e.data,o=e.message;"200"==t&&(r.jupyterName=n.taskIdNew,r.jupyterPath=a,n.saveBasedFun(r)),"201"==t&&o.error(o)})),"201"!=t||a.error(a)}))):n.saveBasedFun(r)):n.saveBasedFun(r)}}))},n.saveBasedFun=function(e){(0,S.saveBased)(e).then((function(e){n.setState({loadingSave:!1});var t=e.datalearn;"201"==t.status&&r.default.error(t.message),"200"==t.status&&(r.default.success("\u4fdd\u5b58\u6210\u529f,\u5373\u5c06\u8fd4\u56de\u5217\u8868",2),setTimeout((function(){return(0,w.navigateTo)(b.modelLearnUrl.pagebased())}),2e3))})).catch((function(e){n.setState({loadingSave:!1}),r.default.error(e.message)}))},n.nextStep=function(e){e.preventDefault(),n.props.form.validateFields((function(e,t){if(!e){var a=n.state.moduleData,o=(0,i.default)({},a,t);n.setState({modalVisibleNext:!0,moduleData:o})}}))},n.showPreview=function(){n.setState({modalVisibleRelevance:!0})},n.callVisible=function(){n.setState({modalVisibleRelevance:!1})},n.getRelevanceInfo=function(e){n.getServicesApiFun(e)},n.getModelServiceInfoFun=function(e){(0,S.getModelServiceInfo)(e.deployId).then((function(e){var t=e.code,a=e.data,o=e.message,s=n.state.moduleData;"00000"==t&&(0,S.getApplicationsInfo)(a.deployBusinessType,a.project).then((function(e){var t="0000"==e.code?e.data.applicationName:"";n.setState({relevanceBasic:(0,i.default)({},a,{applicationName:t}),moduleData:(0,i.default)({},s,{reasoningServiceId:a.deployId,reasoningServiceName:a.deployShowName,serviceType:a.deployType.name}),modalVisibleRelevance:!1},(function(){n.props.form.setFieldsValue({reasoningServiceName:a.deployShowName})}))})),"99999"==t&&r.default.error(o)}))},n.getServicesApiFun=function(e){(0,S.getServicesApi)(e.deployId,"PRODUCT").then((function(t){var a=t.code,o=t.data,s=t.message;if("0000"==a||"00000"==a){if(!(o&&o.length>0))return void r.default.error("\u8f93\u5165\u8f93\u51fa\u53c2\u6570\u4e0d\u5b58\u5728\uff0c\u8bf7\u9009\u62e9\u5176\u4ed6\u670d\u52a1\u5173\u8054");n.setState({relevanceOut:o},(function(){n.getModelServiceInfoFun(e)}))}"9999"!=a&&"99999"!=a||r.default.error(s)}))},n.addIconOk=function(){var e=n.state,t=e.moduleData,a=e.iconSelectedId;n.props.form.setFieldsValue({iconId:a}),n.setState({moduleData:(0,i.default)({},t,{iconId:a}),modalVisibleIcon:!1})},n.addIconSelect=function(e,t){n.setState({iconSelectedId:t})};var o=(0,v.getCurrentContext)().id;n.projectId=o,n.idsParams=_.get(a.match.params,"id"),n.taskIdParams=_.get(a.match.params,"taskId"),n.action=_.get(a.match.params,"action"),n.taskId="create"==n.action?(0,h.uuid)():n.taskIdParams,n.taskIdNew=(0,h.uuid)(),n.id="create"==n.action?void 0:n.idsParams;var s=JSON.parse(localStorage.getItem("AI.LOGIN_INFO")).userInfo;return n.userId=s.userId,n.state={modalVisibleIcon:!1,modalVisibleRelevance:!1,modalVisibleNext:!1,relevanceBasic:{},relevanceOut:[],iconSelectedId:"",loadingSave:!1,echoData:{},moduleData:{id:n.id,taskId:n.taskId,projectId:n.projectId,token:localStorage.getItem("AI.token"),updateUser:n.userId,createUser:n.userId,modelName:"",describe:"",iconId:"",reasoningServiceId:"",reasoningServiceName:"",serviceType:""}},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){"edit"!=this.action&&"see"!=this.action&&"copy"!=this.action||this.getEchoInfoFun()},t.prototype.getEchoInfoFun=function(){var e=this;(0,S.getEchoInfo)({id:this.id,taskId:this.taskId}).then((function(t){var a=t.datalearn;if("200"==a.status&&a.data){var n=e.state.moduleData,o=a.data,s=o.id,d=o.taskId,l=o.modelName,u=o.describe,c=o.reasoningServiceId,p=o.iconId,f=o.createUser,m=o.jupyterPath,h=(0,i.default)({},n,{id:s,taskId:d,modelName:l,describe:u,reasoningServiceId:c,iconId:p,createUser:f,jupyterPath:m});e.setState({echoData:a.data,moduleData:h,iconSelectedId:p},(function(){console.log("\u56de\u663eLos",e.state.echoData)}))}"201"==a.status&&r.default.error(a.message)})).then((function(){var t=e.state.moduleData;e.getModelServiceInfoFun({deployId:t.reasoningServiceId}),e.getServicesApiFun({deployId:t.reasoningServiceId})})).catch((function(e){r.default.error(e.message)}))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,r=this.state,i=r.moduleData,d=r.relevanceBasic,l=r.relevanceOut,u={width:"480px"};return(0,s.default)(T.CreateModelServiceDom,{},void 0,(0,s.default)(y.ModalView,{viewType:"AddIcon",modalTitle:"\u9009\u62e9\u5b66\u4ef6\u4ecb\u7ecd\u56fe\u6807",onCancelType:!1,width:876,callVisible:function(){return e.setState({modalVisibleIcon:!1})},modalVisible:this.state.modalVisibleIcon,okText:"\u786e\u5b9a",submitModalOk:this.addIconOk,comp:(0,s.default)(R,{},void 0,(0,s.default)("ul",{className:"languages"},void 0,L.map((function(t,a){return(0,s.default)("li",{onClick:function(t){return e.addIconSelect(t,a+1)},className:e.state.iconSelectedId==a+1?"iconActive":""},a+1,(0,s.default)("img",{title:t.languageName,src:t.languageImg}))}))))},"AddIcon"),(0,s.default)(y.ModalView,{viewType:"Relevance",modalTitle:"\u5173\u8054\u63a8\u7406\u670d\u52a1/\u4efb\u52a1",onCancelType:!1,width:1200,callVisible:this.callVisible,modalVisible:this.state.modalVisibleRelevance,comp:(0,s.default)(x.default,{getRelevanceInfo:this.getRelevanceInfo,onRef:function(t){e.RelevanceTableRef=t}})},"Relevance"),(0,s.default)(y.ModalView,{viewType:"Next",modalTitle:"\u7f16\u7801\u5f0f",onCancelType:!1,width:500,callVisible:function(){return e.setState({modalVisibleNext:!1})},modalVisible:this.state.modalVisibleNext,comp:(0,s.default)(I.default,{baseInfo:this.state.moduleData,action:this.action,taskIdNew:this.taskIdNew,relevanceOut:this.state.relevanceOut})},"Next"),(0,s.default)(y.ModelConfigPanel,{title:"\u5b66\u4ef6\u57fa\u7840\u4fe1\u606f",style:{width:"100%"}},void 0,(0,s.default)(f.Form,{layout:"inline",autoComplete:"off"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(k,{label:"\u5b66\u4ef6\u540d\u79f0"},void 0,t("modelName",{validateTrigger:["onBlur"],initialValue:i.modelName,rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5b66\u4ef6\u540d\u79f0"},{validator:this.validateLearnName}]})((0,s.default)(c.default,{disabled:"see"===this.action,maxLength:40,style:u,placeholder:"\u5b66\u4ef6\u540d\u79f0"})))),(0,s.default)(o.default,{style:{height:"180px"}},void 0,(0,s.default)(k,{label:"\u5b66\u4ef6\u4ecb\u7ecd\u63cf\u8ff0"},void 0,t("describe",{initialValue:i.describe,rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5b66\u4ef6\u4ecb\u7ecd\u63cf\u8ff0"}]})((0,s.default)(P,{disabled:"see"===this.action,maxLength:200,style:{width:"480px",resize:"none",height:"160px",paddingRight:"16px"},placeholder:"\u8bf7\u8f93\u5165\u5b66\u4ef6\u4ecb\u7ecd\u63cf\u8ff0"}))),(0,s.default)(k,{label:""},void 0,t("iconId",{initialValue:i.iconId,rules:[{required:!0,message:"\u8bf7\u6dfb\u52a0\u5b66\u4ef6\u4ecb\u7ecd\u56fe\u6807"}]})((0,s.default)("input",{disabled:"see"===this.action,style:{display:"none"}})),"see"!==this.action&&(0,s.default)(n.default,{type:"primary",style:{width:"136px"},ghost:!0,onClick:function(){return e.setState({modalVisibleIcon:!0})}},void 0,i.iconId?"\u4fee\u6539\u56fe\u6807":"\u6dfb\u52a0\u56fe\u6807"),i.iconId&&(0,s.default)(o.default,{style:"see"===this.action?{position:"relative",top:"32px"}:{}},void 0,(0,s.default)("div",{style:{marginTop:"6px"}},void 0,(0,s.default)(R,{},void 0,(0,s.default)("ul",{className:"languages"},void 0,(0,s.default)("li",{style:{margin:"0",width:"136px",textAlign:"center",borderColor:"#d9d9d9"}},"1",(0,s.default)("img",{title:"\u5b66\u4ef6\u4ecb\u7ecd\u56fe\u6807",src:a("./src/styles/images/modellearn/introIcon sync recursive ^\\.\\/.*\\.svg$")("./"+this.state.moduleData.iconId+".svg")})))))))))),(0,s.default)(y.ModelConfigPanel,{title:"\u5173\u8054\u63a8\u7406\u670d\u52a1/\u4efb\u52a1",style:{width:"100%"}},void 0,(0,s.default)(f.Form,{layout:"inline",autoComplete:"off"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(k,{label:"\u63a8\u7406\u670d\u52a1/\u4efb\u52a1"},void 0,t("reasoningServiceName",{initialValue:i.reasoningServiceName,rules:[{required:!0,message:"\u63a8\u7406\u670d\u52a1/\u4efb\u52a1\u4e0d\u80fd\u4e3a\u7a7a"}]})((0,s.default)(c.default,{disabled:"see"===this.action,readOnly:!0,style:u,placeholder:"\u63a8\u7406\u670d\u52a1/\u4efb\u52a1"})),"see"!==this.action&&(0,s.default)(n.default,{style:{marginLeft:"16px",width:"136px"},onClick:this.showPreview,type:"primary",ghost:!0},void 0,"\u5173\u8054\u63a8\u7406\u670d\u52a1/\u4efb\u52a1"))),d.deployBusinessType&&(0,s.default)("div",{},void 0,(0,s.default)(o.default,{className:"only-desc"},void 0,(0,s.default)(k,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,d.applicationName)),F,(0,s.default)(o.default,{className:"only-desc"},void 0,(0,s.default)(k,{label:"\u66f4\u65b0\u65f6\u95f4"},void 0,d.updateTime?(0,E.default)(d.updateTime).format("YYYY-MM-DD HH:mm:ss"):"--")),(0,s.default)(o.default,{className:"only-desc"},void 0,(0,s.default)(k,{label:"\u670d\u52a1/\u4efb\u52a1\u63cf\u8ff0"},void 0,d.deployDesc?d.deployDesc:"--"))))),l.length>0&&(0,s.default)(y.ModelConfigPanel,{title:"\u63a8\u7406\u670d\u52a1\u63a5\u53e3",style:{width:"100%"}},void 0,(0,s.default)(f.Form,{layout:"inline"},void 0,l.map((function(e,t){return(0,s.default)("div",{},t,(0,s.default)(o.default,{className:"only-desc"},void 0,(0,s.default)(k,{label:"\u670d\u52a1\u5730\u5740"},void 0,(0,s.default)("div",{style:{fontWeight:"bold"}},void 0,(0,C.wrapServiceUrl)(e.basePath,e.path)))),(0,s.default)(o.default,{className:"only-desc",style:{marginBottom:"24px"}},void 0,(0,s.default)("div",{style:{width:"100px",textAlign:"right",float:"left"}},void 0,"\u8f93\u5165\u53c2\u6570:"),(0,s.default)("div",{style:{width:"calc(100% - 100px)",float:"left"}},void 0,(0,s.default)(j.default,{data:e.requestSchema?(0,g.schemaConvertTable)(JSON.parse(e.requestSchema),!0,!0):[]}))),(0,s.default)(o.default,{className:"only-desc",style:{marginBottom:"24px"}},void 0,(0,s.default)("div",{style:{width:"100px",textAlign:"right",float:"left"}},void 0,"\u8f93\u51fa\u53c2\u6570:"),(0,s.default)("div",{style:{width:"calc(100% - 100px)",float:"left"}},void 0,(0,s.default)(j.default,{data:e.responseSchema?(0,g.schemaConvertTable)(JSON.parse(e.responseSchema),!0,!0):[]}))))})))),"see"!==this.action&&(0,s.default)("div",{className:"buttons-fixed-bottom"},void 0,(0,s.default)(n.default,{onClick:function(){return e.cancel()}},void 0,"\u53d6 \u6d88"),(0,s.default)(n.default,{onClick:this.submit,loading:this.state.loadingSave,type:"primary",ghost:!0},void 0,this.state.loadingSave?"\u4fdd\u5b58\u4e2d...":"\u4fdd\u5b58"),(0,s.default)(n.default,{onClick:this.nextStep,type:"primary"},void 0,"\u4e0b\u4e00\u6b65 \u5b66\u4ef6\u5f00\u53d1")),"see"===this.action&&(0,s.default)("div",{className:"buttons-fixed-bottom"},void 0,(0,s.default)(n.default,{onClick:function(){return e.cancel()}},void 0,"\u8fd4\u56de"),(0,s.default)(n.default,{onClick:this.nextStep,type:"primary"},void 0,"\u4e0b\u4e00\u6b65 \u5b66\u4ef6\u5f00\u53d1")))},t}(p.default.Component);t.default=(0,m.connect)((function(){return{}}))(f.Form.create()(O))},"./src/module/modelLearn/abilityToLearn/learnBased/createPage/apiDoc/SchemaTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/antd/es/table/index.js")),o=s(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/table/style/index.js");s(a("./node_modules/react/index.js")),s(a("./node_modules/prop-types/index.js"));function s(e){return e&&e.__esModule?e:{default:e}}var r=s(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"SchemaTable__ModelsBox",componentId:"sc-1cwagpc-0"})(["margin-top:5px;margin-left:10px;flex:1 1 auto;"]),i=[{title:"\u540d\u79f0",dataIndex:"name",key:"name",width:"25%"},{title:"\u63cf\u8ff0",dataIndex:"title",key:"title",width:"15%"},{title:"\u7c7b\u578b",dataIndex:"type",key:"type",width:"10%"},{title:"\u9ed8\u8ba4\u503c",dataIndex:"default",key:"default",width:"10%"},{title:"\u662f\u5426\u5fc5\u987b",dataIndex:"required",key:"required",width:"15%",render:function(e){return e?"\u662f":"\u5426"}},{title:"\u5907\u6ce8",dataIndex:"description",key:"description"}];t.default=function(e){var t=e.data;return(0,o.default)(r,{},void 0,(0,o.default)(n.default,{rowKey:"key",bordered:!0,indentSize:20,pagination:!1,columns:i,dataSource:t}))}},"./src/module/modelLearn/abilityToLearn/learnBased/learnBased.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/button/index.js")),o=w(a("./node_modules/antd/es/table/index.js")),s=w(a("./node_modules/antd/es/tooltip/index.js")),r=w(a("./node_modules/babel-runtime/helpers/jsx.js")),i=w(a("./node_modules/antd/es/message/index.js")),d=w(a("./node_modules/antd/es/modal/index.js")),l=w(a("./node_modules/babel-runtime/helpers/extends.js")),u=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=w(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=w(a("./node_modules/react/index.js")),m=a("./node_modules/react-router-dom/esm/react-router-dom.js"),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/components/index.js"),v=a("./src/utils/authPermit.js"),y=w(a("./node_modules/moment/moment.js")),b=a("./src/module/modelLearn/common.js"),x=a("./src/redux/services/modelLearn.js"),C=w(a("./src/module/modelLearn/abilityToLearn/learnBased/component/PreviewDlg.jsx")),j=a("./src/routes/routeHelper.jsx"),S=w(a("./src/module/modelLearn/abilityToLearn/learnBased/component/SearchBar.jsx")),I=a("./src/styles/GlobalStyle.js"),T=a("./src/module/modelLearn/abilityToLearn/learnBased/style.js");function w(e){return e&&e.__esModule?e:{default:e}}var E=(0,r.default)("i",{className:"circle"}),D=(0,r.default)(n.default,{className:"saveButton",type:"primary"},void 0,"\u6784\u5efa\u65b0\u5b66\u4ef6"),M=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));n.changeSearchCond=function(e,t){n.searchCond[e]="status"==e?void 0==t?void 0:parseInt(_.trim(t)):void 0==t?void 0:_.trim(t)},n.searchFun=function(){n.searchCond.page=1,n.getBasedListFun(n.searchCond)},n.onChangeTable=function(e,t,a){var o=void 0;"ascend"==a.order&&(o="asc"),"descend"==a.order&&(o="desc"),n.searchCond.sord=o,n.searchCond.sidx=a.columnKey,n.getBasedListFun(n.searchCond)},n.onChangePage=function(e,t){n.searchCond.page=parseInt(e),n.searchCond.rows=parseInt(t),n.getBasedListFun(n.searchCond)},n.getBasedListFun=function(){n.setState({loadingTb:!0});var e=(0,v.getCurrentContext)().id,t=(0,l.default)({projectId:e,userId:n.userId},n.searchCond),a=[],o=[],s=0;new Promise((function(e){(0,x.getBasedList)(t).then((function(t){e(t)}))})).then((function(e){var t=e.data,r=e.data.rows;s=t.records;for(var i=function(e){r[e].reasoningServiceId&&a.push(new Promise((function(t){var a=r[e];(0,x.getModelServiceInfo)(r[e].reasoningServiceId).then((function(t){"00000"==t.code&&t.data&&(a=(0,l.default)({},r[e],{deployShowName:t.data.deployShowName,serviceTypeAi:t.data.deployType.name}))})).then((function(){(0,x.getUserInfo)(r[e].createUser).then((function(e){"0000"==e.code&&e.data&&(a=(0,l.default)({},a,{userName:e.data.userName})),t(a)}))}))})))},d=0;d<r.length;d++)i(d);Promise.all(a).then((function(e){e.map((function(e){o.push(e)}))})).then((function(){n.setState({tbData:o,loadingTb:!1,tbPage:{total:s}})}))}))},n.opPreview=function(e){n.setState({modalVisiblePreview:!0,renderDataPreview:e})},n.callVisiblePreview=function(){n.setState({modalVisiblePreview:!1,renderDataPreview:{}})},n.opShare=function(e){1==e.sign?d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u53d6\u6d88\u5171\u4eab\u5b66\u4ef6\u3010"+e.modelName+"\u3011\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.shareOrNoFun(e)}}):n.shareOrNoFun(e)},n.opDel=function(e){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u5b66\u4ef6\u3010"+e.modelName+" \u3011\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,x.delBased)({id:e.id,taskId:e.taskId,userId:n.userId}).then((function(e){var t=e.datalearn;"201"==t.status&&i.default.error(data.message),"200"==t.status&&(i.default.success("\u5220\u9664\u6210\u529f"),n.getBasedListFun())}))}})};var o=function(e){return""===e||void 0===e||null===e?"--":(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"--")};return n.userId=localStorage.getItem("AI.ONE_USER_ID"),n.state={_this:n,modalVisiblePreview:!1,viewTypePreview:"preview",renderDataPreview:{},tbData:[],loadingTb:!1,tbPage:{total:0}},n.searchCond={searchText:void 0,status:void 0,page:1,rows:10,sidx:void 0,sord:void 0},n.columns=[{title:"\u5b66\u4ef6\u540d\u79f0",dataIndex:"modelName",key:"model_name",sorter:!1,ellipsis:!0,render:function(e){return o(e)}},{title:"\u63a8\u7406\u670d\u52a1/\u4efb\u52a1\u540d\u79f0",dataIndex:"deployShowName",key:"reasoning_service_id",sorter:!1,ellipsis:!0,render:function(e){return o(e)}},{title:"\u63a8\u7406\u7c7b\u578b",dataIndex:"serviceTypeAi",key:"service_type",sorter:!1,ellipsis:!0,render:function(e){var t=b.ServiceType_List.filter((function(t){return t.code==e}));return t.length>0?t[0].name:"--"}},{title:"\u521b\u5efa\u4eba",dataIndex:"userName",key:"create_user_name",sorter:!1,width:"120px",render:function(){return"AIOps-test"}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",key:"update_time",sorter:!1,width:"160px",render:function(e){var t=e?(0,y.default)(e).format("YYYY-MM-DD HH:mm:ss"):"--";return(0,r.default)(s.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u72b6\u6001",dataIndex:"status",key:"status",sorter:!1,width:"140px",render:function(e){var t=b.Status_List.filter((function(t){return t.code==e})),a=t.length>0?t[0]:{name:"--",color:"rgb(20,123,209)",bgcolor:"rgb(20,123,209,.1)"};return(0,r.default)(f.default.Fragment,{},void 0,(0,r.default)(T.StatusDom,{color:a.color,bgcolor:a.bgcolor},void 0,E,(0,r.default)("span",{},void 0,a.name)))}},{title:"\u64cd\u4f5c",width:"240px",render:function(e){var t=!("2"==e.status&&e.createUser==n.userId),a={handleName:0==e.sign?"\u5171\u4eab":"\u53d6\u6d88\u5171\u4eab",disabled:t,handleAction:function(){n.opShare(e)}},o="1"==e.status||e.createUser!=n.userId,s="1"!=e.status||"1"==e.status&&e.createUser==n.userId,i=[{handleName:"\u9884\u89c8",handleAction:function(){n.opPreview(e)}},{handleName:"\u67e5\u770b",handleAction:j.modelLearnUrl.see(e.id,e.taskId),handleType:"link"},{handleName:"\u5220\u9664",disabled:o,handleAction:function(){n.opDel(e)}},{handleName:"\u4fee\u6539",disabled:!s,handleAction:j.modelLearnUrl.edit(e.id,e.taskId),handleType:"link"},{handleName:"\u590d\u5236",handleAction:j.modelLearnUrl.copy(e.id,e.taskId),handleType:"link"}];return i.push(a),(0,r.default)(g.ListButtons,{buttons:i,maxShowNum:3})}}],n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.getBasedListFun()},t.prototype.shareOrNoFun=function(e){var t=this,a="";1==e.sign&&(a=0),0==e.sign&&(a=1),(0,x.shareOrNo)({id:e.id,taskId:e.taskId,signStatus:a,userId:this.userId}).then((function(e){var a=e.datalearn;"201"==a.status&&i.default.error(a.message),"200"==a.status&&(i.default.success("\u64cd\u4f5c\u6210\u529f"),t.getBasedListFun())})).catch((function(e){i.default.error(e)}))},t.prototype.render=function(){var e=this.state,t=e.tbData,a=e.tbPage,n=e.loadingTb;return(0,r.default)(I.PageWrapper,{},void 0,(0,r.default)(g.ModalView,{viewType:this.state.viewTypePreview,modalTitle:"\u5b66\u4ef6\u6784\u5efa\u7ed3\u679c\u9884\u89c8",onCancelType:!1,width:1e3,callVisible:this.callVisiblePreview,modalVisible:this.state.modalVisiblePreview,comp:(0,r.default)(C.default,{renderData:this.state.renderDataPreview})},this.state.viewTypePreview),(0,r.default)(I.PageHeader,{},void 0,(0,r.default)(S.default,{status:this.searchCond.status,onChange:this.changeSearchCond,searchFun:this.searchFun}),(0,r.default)(m.Link,{to:{pathname:j.modelLearnUrl.create()}},void 0,D)),(0,r.default)(I.PageBody,{},void 0,(0,r.default)(I.TableWrapper,{},void 0,n&&(0,r.default)(g.LoadingIndicator,{style:{zIndex:3,height:"100%",position:"absolute",width:"100%",top:"250px"}}),!n&&(0,r.default)("div",{},void 0,(0,r.default)(o.default,{dataSource:t,rowKey:"id",bordered:!0,pagination:!1,onChange:this.onChangeTable,columns:this.columns}),(0,r.default)(g.TabPagination,{currentPage:this.searchCond.page,pageSize:this.searchCond.rows,total:a.total,onChange:this.onChangePage})))))},t}(f.default.Component);t.default=(0,h.connect)((function(){return{}}))(M)},"./src/module/modelLearn/abilityToLearn/learnBased/style.js":function(e,t,a){"use strict";t.__esModule=!0,t.CommonModulesDom=t.StatusDom=t.CreateModelServiceDom=t.CreateModelPreviewDom=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.CreateModelPreviewDom=s.default.div.withConfig({displayName:"style__CreateModelPreviewDom",componentId:"sc-11wkxdw-0"})(["display:flex;flex-direction:column;background-color:#ffff;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin:0 auto 24px;padding-left:50px;.iconTip{font-size:16px;color:#a2b0c4;cursor:pointer;margin-left:5px;}.ant-input{font-size:14px;}.ant-legacy-form-item-label{width:140px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding-right:10px;> label{color:rgba(0,0,0,0.65);font-size:14px;}> label::after{margin-right:0;}> span{color:rgba(0,0,0,0.65);font-size:14px;}> span::after{content:':';position:relative;top:-0.5px;margin:0 0 0 2px;}}.name-text{color:rgba(0,0,0,0.85);font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;width:200px;display:block;}form.ant-form{div.ant-form-item{height:32px;margin-bottom:24px;.ant-legacy-form-item-label{height:32px;line-height:32px;}.ant-form-item-control-wrapper{height:32px;div.ant-form-item-control{line-height:32px;}}}}.has-error .ant-form-explain{line-height:24px;font-size:12px;}.ant-form-explain,.ant-form-extra{clear:both;min-height:22px;}span.ant-radio + *{padding-left:4%;padding-right:8px;}.ant-divider-horizontal{margin:0px 0 10px;}.help{margin-left:-5px;width:14px;height:14px;border:1px solid #a2b0c4;display:inline-block;border-radius:50%;text-align:center;line-height:1;cursor:pointer;}.span__wrapper{display:flex;margin-right:60px;}.span__label{flex-shrink:0;}.span__item{margin-left:16px;}.ant-radio-wrapper{vertical-align:top;line-height:40px;}"]),t.CreateModelServiceDom=s.default.div.withConfig({displayName:"style__CreateModelServiceDom",componentId:"sc-11wkxdw-1"})(["display:flex;flex-direction:column;background-color:#ffff;border:0px;min-height:300px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin:0 auto 24px;.iconTip{font-size:16px;color:#a2b0c4;cursor:pointer;margin-left:5px;}.ant-row.ant-legacy-form-item{margin-bottom:22px !important;}.ant-legacy-form-inline .ant-legacy-form-item-with-help{margin-bottom:22px !important;}.ant-legacy-form-item-control{height:40px;}.buttons-fixed-bottom{line-height:70px;padding-right:24px;background:#fff;-webkit-box-shadow:0 0 8px 0 rgba(0,0,0,0.15);box-shadow:0 0 8px 0 rgba(0,0,0,0.15);border-radius:4px;overflow:hidden;position:fixed;left:0;bottom:0;width:100%;z-index:4;margin-right:24px;text-align:right;button{letter-spacing:2px;min-width:112px;margin-left:16px;}}.ant-legacy-form-item-label{width:100px;}form.ant-form{div.ant-form-item{height:32px;margin-bottom:24px;.ant-legacy-form-item-label{height:32px;line-height:32px;}.ant-form-item-control-wrapper{height:32px;div.ant-form-item-control{line-height:32px;}}}}.has-error .ant-form-explain,.has-error .ant-legacy-form-explain{line-height:24px;font-size:12px;}.ant-form-explain,.ant-form-extra{clear:both;min-height:22px;}span.ant-radio + *{padding-left:4%;padding-right:8px;}.ant-divider-horizontal{margin:0px 0 10px;}.help{margin-left:-5px;width:14px;height:14px;border:1px solid #a2b0c4;display:inline-block;border-radius:50%;text-align:center;line-height:1;cursor:pointer;}.span__wrapper{display:flex;margin-right:60px;}.span__label{flex-shrink:0;}.span__item{margin-left:16px;}.ant-radio-wrapper{vertical-align:top;line-height:40px;}"]),t.StatusDom=s.default.div.withConfig({displayName:"style__StatusDom",componentId:"sc-11wkxdw-2"})(["border-radius:16px;height:24px;text-align:center;padding-top:2px;line-height:24px;display:flex;justify-content:space-around;align-items:center;padding:0 12px;width:",";background:",";color:",";i.circle{width:6px;margin-right:8px;height:6px;border-radius:50%;display:flex;background:",";}span{word-break:break-all;white-space:nowrap;}"],(function(e){return e.width?e.width:"74px"}),(function(e){return e.bgcolor}),(function(e){return e.color}),(function(e){return e.color})),t.CommonModulesDom=s.default.div.withConfig({displayName:"style__CommonModulesDom",componentId:"sc-11wkxdw-3"})(["position:fixed;right:24px;bottom:240px;z-index:99;min-height:200px;div.closed{float:left;margin-left:10px;cursor:pointer;width:41px;border:1px solid rgba(0,0,0,0.15);font-size:14px;text-align:center;line-height:18px;padding:10px;background:#fff;border-radius:4px;color:rgba(0,0,0,0.65);i{padding:0 0 8px 0;font-size:18px;margin-top:3px;}}div.openedLeft{position:relative;float:left;background:#fff;border-radius:4px;color:rgba(0,0,0,0.65);width:232px;min-height:200px;border:1px solid rgba(0,0,0,0.15);box-shadow:0 1px 3px 0 rgba(0,0,0,0.05);padding-bottom:42px;.hd{height:46px;border-bottom:1px solid rgba(0,0,0,0.09);display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 16px;span{font-size:14px;color:rgba(0,0,0,0.85);line-height:22px;}.iconClose{color:#147bd1;cursor:pointer;font-size:16px;}}.btn-div{padding:0 10px;margin-top:10px;position:absolute;bottom:10px;width:100%;}.tree-div{padding:10px;.ant-tree li span.ant-tree-switcher.ant-tree-switcher-noop{}.ant-tree li .ant-tree-node-content-wrapper{width:calc(100% - 24px);}.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected,.ant-tree li .ant-tree-node-content-wrapper,.ant-tree li span.ant-tree-switcher,.ant-tree li span.ant-tree-iconEle{height:40px;line-height:40px;}.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected{background:rgba(20,123,209,0.1);color:#147bd1;}}}"])},"./src/module/modelLearn/abilityToLearn/learnBusiness/component/CardList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=(u(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),l=a("./src/module/modelLearn/abilityToLearn/learnBusiness/component/style.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.itemClick=function(e,t){e.preventDefault(),e.stopPropagation(),n.props.cardClick(t)},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this,t=this.props.sharedList;return(0,n.default)(l.SharedDom,{},void 0,(0,n.default)("div",{className:"sharedBox"},void 0,t.map((function(t,o){return(0,n.default)("div",{className:"sharedCard",onClick:function(a){return e.itemClick(a,t)}},o,(0,n.default)("div",{className:"item"},void 0,(0,n.default)("h4",{},void 0,t.modelName),(0,n.default)("div",{className:"desc"},void 0,t.describe),(0,n.default)("div",{className:"imgIcon"},void 0,(0,n.default)("img",{title:t.modelName,src:a("./src/styles/images/modellearn/introIcon sync recursive ^\\.\\/.*\\.svg$")("./"+(t.iconId?t.iconId:1)+".svg")}))))}))))},t}(i.default.Component);t.default=(0,d.connect)((function(){return{}}))(c)},"./src/module/modelLearn/abilityToLearn/learnBusiness/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/button/index.js")),o=m(a("./node_modules/antd/es/input/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js")),l=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=m(a("./node_modules/react/index.js")),c=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./src/styles/GlobalStyle.js"),f=a("./src/module/modelLearn/common.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=l.default.Option,g={width:"120px"},v={marginLeft:0},y=f.REASONING_SERVICE_STATUS.getCodeAndDescList(),b=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&("OFFLINE"==t&&n.setState({secList:f.REASONING_OFF_STATUS}),"RAPIDMODEL"==t&&n.setState({secList:y}),n.props.onChange(e,t))}},n.state={secList:y},n.changeSelectFun=n.changeSelect("deployType"),n.changeSelectFunStatus=n.changeSelect("deployState"),n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.secList;return(0,s.default)(p.SearchBarWrapper,{className:"search-bar"},void 0,(0,s.default)("span",{className:"search__item-wrapper",style:v},void 0,(0,s.default)(l.default,{onChange:this.changeSelectFun,getPopupContainer:function(e){return e.parentNode},style:g,placeholder:"\u63a8\u7406\u7c7b\u578b",defaultValue:this.props.deployType,className:"sort-cond"},void 0,f.ServiceType_List.map((function(e){return(0,s.default)(h,{value:e.code},e.code,e.name)})))),(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(l.default,{allowClear:!0,onChange:this.changeSelectFunStatus,style:g,placeholder:"\u5b66\u4ef6\u8fd0\u884c\u72b6\u6001",className:"search-cond"},void 0,t.map((function(e,t){return(0,s.default)(h,{value:e.code},e.code+"-"+t,e.desc)})))),(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(o.default,{style:{width:"260px"},onChange:function(t){return e.props.onChange("deployShowName",t.target.value)},placeholder:"\u670d\u52a1\u540d\u79f0"})),(0,s.default)("span",{className:"search__item-wrapper"},void 0,(0,s.default)(n.default,{className:"saveButton",type:"primary",onClick:this.props.searchFun},void 0,"\u67e5\u8be2")))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(b)},"./src/module/modelLearn/abilityToLearn/learnBusiness/component/style.js":function(e,t,a){"use strict";t.__esModule=!0,t.SharedDom=void 0;var n=r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),o=r(a("./src/styles/images/modellearn/bannerBg.png")),s=r(a("./src/styles/images/modellearn/bannerBg2.png"));function r(e){return e&&e.__esModule?e:{default:e}}t.SharedDom=n.default.div.withConfig({displayName:"style__SharedDom",componentId:"vvnxvs-0"})([".banner-desc,.banner-desc2{margin-top:20px;background-color:#303743;border-radius:4px;height:216px;background-image:url(",");padding:40px 60px 50px;display:flex;flex-direction:column;justify-content:space-evenly;background-repeat:no-repeat;background-size:100% 100%;h4{font-size:25px;color:#ffffff;line-height:34px;}div{font-size:16px;color:#ffffff;line-height:32px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;}}.banner-desc2{background-image:url(",");}.hd-head{text-indent:12px;border-left:4px solid #147bd1;display:flex;justify-content:space-between;margin:20px 0 20px 16px;.hd-name{font-size:18px;color:#444444;line-height:30px;}}.sharedBox{width:100%;min-height:400px;max-height:660px;overflow-y:auto;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;.sharedCard:nth-child(5n + 1){padding-left:0;}.sharedCard:nth-child(5n + 5){padding-right:0;}.sharedCard,.addCard{width:20%;padding:0 10px;margin-bottom:20px;> div{cursor:pointer;height:100%;background:#ffffff;border:1px solid #e8e8e8;border-radius:4px;height:200px;display:flex;flex-direction:column;&:hover{box-shadow:0 4px 12px 0 rgba(0,0,0,0.1);border:1px solid #147bd1;}h4{font-size:16px;color:rgba(0,0,0,0.85);text-align:center;line-height:30px;padding:20px 10px 8px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;word-break:break-all;}.desc{font-size:14px;color:rgba(0,0,0,0.45);line-height:20px;padding:0 40px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;text-align:center;min-height:40px;margin-bottom:10px;}.imgIcon{margin:0 auto 10px;img{display:inline-block;width:80px;height:80px;border-radius:50%;text-align:center;}}button{display:none;width:100px;margin:0 auto;}}}.addCard{padding-right:0;.item{border:1px dashed rgba(123,147,167,0.18);background:transparent;text-align:center;padding-top:85px;cursor:pointer;font-size:12px;color:rgba(0,0,0,0.65);img{margin-bottom:10px;}a{color:rgba(0,0,0,0.65);}}}}"],o.default,s.default)},"./src/module/modelLearn/abilityToLearn/learnBusiness/learnBusiness.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/table/index.js")),o=w(a("./node_modules/antd/es/button/index.js")),s=w(a("./node_modules/antd/es/tooltip/index.js")),r=w(a("./node_modules/babel-runtime/helpers/jsx.js")),i=w(a("./node_modules/babel-runtime/helpers/extends.js")),d=w(a("./node_modules/antd/es/message/index.js")),l=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=w(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=w(a("./node_modules/react/index.js")),f=(w(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/components/index.js"),h=a("./src/redux/services/modelLearn.js"),g=w(a("./src/module/modelLearn/abilityToLearn/learnBusiness/component/SearchBar.jsx")),v=w(a("./src/module/modelLearn/abilityToLearn/learnBusiness/component/CardList.jsx")),y=w(a("./src/module/modelLearn/abilityToLearn/components/ApplyDlg.jsx")),b=a("./src/module/modelLearn/common.js"),x=w(a("./node_modules/moment/moment.js")),C=a("./src/styles/GlobalStyle.js"),j=a("./src/routes/routeHelper.jsx"),S=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),I=a("./src/utils/authPermit.js"),T=a("./src/config/ui-config.js");function w(e){return e&&e.__esModule?e:{default:e}}var E=S.default.div.withConfig({displayName:"learnBusiness__RelevanceDom",componentId:"sc-7xjr6u-0"})([""]),D=S.default.span.withConfig({displayName:"learnBusiness__StatusIcon",componentId:"sc-7xjr6u-1"})(["width:5px;height:5px;border-radius:50%;background:",";display:inline-block;margin-right:8px;position:relative;top:-2px;"],(function(e){return e.color})),M=S.default.span.withConfig({displayName:"learnBusiness__StatusIconTxt",componentId:"sc-7xjr6u-2"})(["overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;width:calc(100% - 20px);position:relative;top:4px;"]),k={STARTING:2,RUNNING:3,ERROR:9,STOP:8},P=(0,r.default)(m.LoadingIndicator,{}),L=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.addApply=function(){(0,h.getSharedSubmitedList)({projectId:n.projectId,page:1,rows:1e4}).then((function(e){var t=e.datalearn;200==t.status&&(t.rows&&0==t.rows.length?d.default.error("\u6682\u65e0\u53ef\u7528\u7684\u57fa\u7840\u5b66\u4ef6"):n.setState({modalVisibleCard:!0,cardDataList:t.rows})),201==t.status&&d.default.error(t.message)}))},n.showApplyDlg=function(e){n.setState({modalVisibleCard:!1,modalVisibleApply:!0,renderDataPreview:e})},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t)},n.searchFun=function(){n.searchCond.pageNo=0,n.getModelServiceListFun(n.searchCond)},n.getModelServiceListFun=function(){n.setState({loadingTb:!0});var e=[],t=[],a=0;new Promise((function(e){(0,h.getModelServiceList)(n.searchCond).then((function(t){e(t)}))})).then((function(o){var s=o.data.content;a=o.data.totalElements;for(var r=function(t){e.push(new Promise((function(e){(0,h.getDeployId)({deployBusinessType:s[t].deployBusinessType}).then((function(a){var n=a.datalearn,o="200"==n.status?n.data:null;if(o)(0,h.getModelServiceInfo)(o).then((function(a){var n=s[t];"00000"==a.code&&(n=(0,i.default)({},s[t],{deployIdOther:o,deployStateOther:a.data?a.data.deployState:"",deployShowNameOther:a.data?a.data.deployShowName:""})),e(n)}));else{var r=(0,i.default)({},s[t],{deployIdOther:null,deployStateOther:null,deployShowNameOther:null});e(r)}}))})))},d=0;d<s.length;d++)r(d);Promise.all(e).then((function(e){e.map((function(e){t.push(e)}))})).then((function(){n.setState({tbData:t,loadingTb:!1,tbPage:{total:a}})}))}))},n.onChangePage=function(e,t){n.searchCond.pageNo=parseInt(e-1),n.searchCond.pageSize=parseInt(t),n.getModelServiceListFun(n.searchCond)};var o=(0,I.getCurrentContext)().id;return n.projectId=o,n.state={modalVisibleCard:!1,cardDataList:[],modalVisibleApply:!1,renderDataPreview:{},tbData:[],loadingTb:!1,tbPage:{total:0}},n.searchCond={deployState:void 0,deployShowName:"",deployType:"RAPIDMODEL",isPage:"Y",pageSize:10,pageNo:0,deployBusinessTypes:""},n.columns=[{title:"\u5b66\u4ef6\u670d\u52a1\u540d\u79f0",dataIndex:"deployShowName",ellipsis:!0,render:function(e){return function(e){return""===e||void 0===e||null===e?"--":(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"--")}(e)},width:"180px"},{title:"\u521b\u5efa\u4eba",dataIndex:"user",ellipsis:!0,render:function(){return"AIOps-test"},width:"100px"},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",ellipsis:!0,width:"140px",render:function(e){var t=e?(0,x.default)(e).format("YYYY-MM-DD HH:mm:ss"):"--";return(0,r.default)(s.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u63a8\u7406\u7c7b\u578b",dataIndex:"deployType",ellipsis:!0,width:"100px",render:function(e,t){var a=t.deployType.name,n=b.ServiceType_List.filter((function(e){return e.code==a}));return n.length>0?n[0].name:"--"}},{title:"\u63a8\u7406\u8fd0\u884c\u72b6\u6001&\u540d\u79f0",dataIndex:"deployIdOther",ellipsis:!0,width:"180px",render:function(e,t){return t.deployStateOther?(0,r.default)(s.default,{placement:"topLeft",title:t.deployShowNameOther},void 0,(0,r.default)("div",{},void 0,(0,r.default)(D,{title:t.deployStateOther.note,color:T.MODEL_SERVICE_STATUS_COLOR_MAP[k[t.deployStateOther.name]]}),(0,r.default)(M,{},void 0,t.deployShowNameOther))):"--"}},{title:"\u5b66\u4ef6\u8fd0\u884c\u72b6\u6001",dataIndex:"deployState",width:140,render:function(e,t){return(0,r.default)("span",{style:{cursor:"ERROR"===_.get(e,"name")?"pointer":""},onClick:"ERROR"===_.get(e,"name")?function(){return n.showError(t.deployMessage)}:null},void 0,(0,r.default)(m.StateLabel,{source:"modelService",code:_.get(e,"value")}))}},{title:"\u64cd\u4f5c",width:"240px",render:function(e,t){var a=[{handleName:"\u5b66\u4ef6\u670d\u52a1\u8be6\u60c5",handleAction:j.modelServiceUrl.detail(t.deployId,"monitoring"),handleType:"link",isTargetBlank:!0},{handleName:"\u63a8\u7406\u670d\u52a1\u8be6\u60c5",handleAction:j.modelServiceUrl.detail(t.deployIdOther,"monitoring"),handleType:"link",isTargetBlank:!0}],n=[{handleName:"\u5b66\u4ef6\u4efb\u52a1\u8be6\u60c5",handleAction:j.modelServiceUrl.detail(t.deployId,"monitoring"),handleType:"link",isTargetBlank:!0},{handleName:"\u63a8\u7406\u4efb\u52a1\u8be6\u60c5",handleAction:j.modelServiceUrl.detail(t.deployIdOther,"monitoring"),handleType:"link",isTargetBlank:!0}],o="RAPIDMODEL"==t.deployType.name?a:n;return(0,r.default)(m.ListButtons,{buttons:o,maxShowNum:6})}}],n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=this,t="";(0,h.getLearnApplicationsList)().then((function(e){var a=e.code,n=e.data;if("0000"==a&&n.applicationTypes.length>0){var o=n.applicationTypes.map((function(e){return e.applicationTypeId}));t=o.join(",")}})).then((function(){(0,h.getApplicationsList)(e.projectId,t).then((function(t){var a=t.code,n=t.data,o=[];"0000"==a&&n.length>0&&(o=n.map((function(e){return e.projectApplicationId})),e.searchCond.deployBusinessTypes=o.join(","))})).then((function(){e.getModelServiceListFun()}))}))},t.prototype.render=function(){var e=this,t=this.state,a=t.tbData,s=t.tbPage,i=t.loadingTb;return(0,r.default)(E,{},void 0,(0,r.default)(m.ModalView,{modalTitle:"\u5b66\u4ef6\u5217\u8868",onCancelType:!1,width:1100,callVisible:function(){return e.setState({modalVisibleCard:!1})},modalVisible:this.state.modalVisibleCard,comp:(0,r.default)(v.default,{sharedList:this.state.cardDataList,cardClick:this.showApplyDlg})}),(0,r.default)(m.ModalView,{modalTitle:"\u521b\u5efa\u65b0\u5e94\u7528",onCancelType:!1,width:1e3,callVisible:function(){return e.setState({modalVisibleApply:!1})},modalVisible:this.state.modalVisibleApply,okText:"\u63d0\u4ea4",submitModalOk:function(t){e.ApplyDlgRef.submit(t)},comp:(0,r.default)(y.default,{curFor:"LearnBusiness",renderData:this.state.renderDataPreview,onRef:function(t){e.ApplyDlgRef=t}})}),(0,r.default)(C.PageWrapper,{},void 0,(0,r.default)(C.PageHeader,{},void 0,(0,r.default)(g.default,{deployState:this.searchCond.deployState,deployType:this.searchCond.deployType,onChange:this.changeSearchCond,searchFun:this.searchFun}),(0,r.default)(o.default,{className:"saveButton",type:"primary",onClick:this.addApply},void 0,"\u521b\u5efa\u5b66\u4ef6\u670d\u52a1")),(0,r.default)(C.PageBody,{},void 0,i&&P,!i&&(0,r.default)(C.TableWrapper,{},void 0,(0,r.default)("div",{},void 0,(0,r.default)(n.default,{dataSource:a,bordered:!0,pagination:!1,columns:this.columns},"deployId"),(0,r.default)(m.TabPagination,{currentPage:this.searchCond.pageNo+1,pageSize:this.searchCond.pageSize,total:s.total,onChange:this.onChangePage}))))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(L)},"./src/module/modelLearn/common.js":function(e,t,a){"use strict";t.__esModule=!0,t.pidToTreeJson=t.nodeChildren=t.uuid=t.isJSON=t.REASONING_OFF_STATUS=t.REASONING_SERVICE_STATUS=t.ServiceType_List=t.ParamsTypes_List=t.Status_List=void 0;var n=o(a("./node_modules/babel-runtime/helpers/typeof.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,o(a("./src/utils/enums.js")).default)({STARTING:[2,"\u542f\u52a8\u4e2d"],ERROR:[9,"\u53d1\u751f\u9519\u8bef"],RUNNING:[3,"\u6b63\u5e38\u8fd0\u884c"],STOP:[8,"\u5df2\u505c\u6b62"]});t.Status_List=[{code:0,name:"\u5df2\u4fdd\u5b58",color:"rgb(237, 163, 15)",bgcolor:"rgb(237, 163, 15,.1)"},{code:1,name:"\u7f16\u8f91\u4e2d",color:"rgb(20,123,209)",bgcolor:"rgb(20,123,209,.1)"},{code:2,name:"\u5df2\u63d0\u4ea4",color:"rgb(109, 196, 31)",bgcolor:"rgb(109, 196, 31,.1)"}],t.ParamsTypes_List=[{code:"0",name:"\u679a\u4e3e\u578b"},{code:"1",name:"\u5b57\u7b26\u578b"},{code:"2",name:"\u6570\u503c\u578b"}],t.ServiceType_List=[{code:"RAPIDMODEL",name:"\u63a8\u7406\u670d\u52a1"},{code:"OFFLINE",name:"\u63a8\u7406\u4efb\u52a1"}],t.REASONING_SERVICE_STATUS=s,t.REASONING_OFF_STATUS=[{code:"0",desc:"\u6267\u884c\u4e2d"},{code:"1",desc:"\u5f85\u6267\u884c"},{code:"2",desc:"\u5df2\u5b8c\u6210"},{code:"3",desc:"\u5df2\u505c\u6b62"},{code:"4",desc:"\u53d1\u751f\u9519\u8bef"}];t.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,n.default)(t))||!t)}catch(e){return!1}},t.uuid=function(){for(var e=[],t=0;t<32;t++)e[t]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);e[0]="h",e[14]="4",e[19]="0123456789abcdef".substr(3&e[19]|8,1);var a=e.join("");return a};var r=t.nodeChildren=function(e,t){return"undefined"!==typeof t&&(e.children=t),e.children};t.pidToTreeJson=function(e){var t,a,n=[],o={};for(t=0,a=e.length;t<a;t++)e[t].key=e[t].id,e[t].title=e[t].assemblyName,o[e[t].id]=e[t];for(t=0,a=e.length;t<a;t++){var s=o[e[t].pId];if(s&&e[t].id!=e[t].pId){var i=r(s);i||(i=r(s,[])),i.push(e[t])}else n.push(e[t])}return n}},"./src/module/modelLearn/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelLearn/abilityToLearn/learnBusiness/learnBusiness.jsx");Object.defineProperty(t,"LearnBusiness",{enumerable:!0,get:function(){return l(n).default}});var o=a("./src/module/modelLearn/abilityToLearn/learnBased/learnBased.jsx");Object.defineProperty(t,"LearnBased",{enumerable:!0,get:function(){return l(o).default}});var s=a("./src/module/modelLearn/abilityToLearn/learnBased/createPage/CreatePage.jsx");Object.defineProperty(t,"CreatePage",{enumerable:!0,get:function(){return l(s).default}});var r=a("./src/module/modelLearn/abilityToLearn/learnBased/createPage/CodePage.jsx");Object.defineProperty(t,"CodePage",{enumerable:!0,get:function(){return l(r).default}});var i=a("./src/module/modelLearn/abilityToLearn/learnAbility/LearnAbility.jsx");Object.defineProperty(t,"LearnAbility",{enumerable:!0,get:function(){return l(i).default}});var d=a("./src/module/modelLearn/abilityToLearn/learnAbility/LearnAbilityDetail.jsx");function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"LearnAbilityDetail",{enumerable:!0,get:function(){return l(d).default}})},"./src/module/modelMirror/baseMirror/ImportMirror.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=R(a("./node_modules/antd/es/tooltip/index.js")),o=R(a("./node_modules/antd/es/upload/index.js")),s=R(a("./node_modules/babel-runtime/helpers/extends.js")),r=R(a("./node_modules/antd/es/button/index.js")),i=R(a("./node_modules/antd/es/switch/index.js")),d=R(a("./node_modules/antd/es/auto-complete/index.js")),l=R(a("./node_modules/antd/es/row/index.js")),u=R(a("./node_modules/babel-runtime/helpers/jsx.js")),c=R(a("./node_modules/antd/es/modal/index.js")),p=R(a("./node_modules/antd/es/message/index.js")),f=R(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),m=R(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),h=R(a("./node_modules/babel-runtime/helpers/inherits.js")),g=R(a("./node_modules/antd/es/radio/index.js")),v=R(a("./node_modules/antd/es/select/index.js")),_=R(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var y=R(a("./node_modules/react/index.js")),b=R(a("./node_modules/lodash/lodash.js")),x=a("./node_modules/react-redux/es/index.js"),C=a("./node_modules/@ant-design/icons/es/index.js"),j=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var S=R(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),I=(R(a("./node_modules/prop-types/index.js")),a("./src/utils/publicPath.js")),T=a("./src/redux/services/serviceCode.js"),w=R(a("./src/module/modelMirror/components/picPreview/PicturePreviewPage.jsx")),E=a("./src/redux/services/modelMirror.js"),D=a("./src/utils/constants.js"),M=a("./src/utils/authPermit.js"),k=a("./src/components/index.js"),P=a("./src/module/modelMirror/util.js"),L=a("./src/utils/history.js"),N=a("./src/routes/routeHelper.jsx"),A=R(a("./src/redux/services/sysManager/ftpBasesManager.js"));function R(e){return e&&e.__esModule?e:{default:e}}var F=j.Form.Item,O=_.default.TextArea,V=v.default.Option,U=g.default.Group,B=S.default.div.withConfig({displayName:"ImportMirror__ImportMirrorDom",componentId:"g06qeg-0"})(["width:100%;background:#fff;padding:16px;.icon{font-size:16px;color:#a2b0c4;cursor:pointer;margin-left:5px;}padding-left:25px;.ant-form-inline .ant-form-item{display:flex;}.ant-input[disabled],.ant-input[disabled]:hover{z-index:10;}.ant-legacy-form-item-label{width:80px;}.ant-form-inline .ant-form-item > .ant-legacy-form-item-label{display:flex;}.source__path-text{max-width:200px;overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;}.help{margin-left:5px;width:14px;height:14px;border:1px solid #a2b0c4;display:inline-block;border-radius:50%;text-align:center;line-height:1;cursor:pointer;}.ant-radio-wrapper{margin-top:10px;margin-right:0;}.disabled .ant-input-group-addon{color:rgba(0,0,0,0.25);}"]),G=S.default.div.withConfig({displayName:"ImportMirror__ButtonDom",componentId:"g06qeg-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:9px;width:100%;margin:auto;"]),z=(0,u.default)(V,{value:""},void 0,"\u8bf7\u9009\u62e9\u8bed\u8a00"),q=(0,u.default)(V,{value:""},void 0,"\u8bf7\u9009\u62e9\u5f15\u64ce"),K=(0,u.default)(V,{value:""},void 0,"\u8bf7\u9009\u62e9\u6846\u67b6"),H=(0,u.default)(n.default,{placement:"topLeft",title:"\u8bf7\u9009\u62e9tar.gz\u3001\u6216\u8005tar\u683c\u5f0f\u7684\u955c\u50cf",arrowPointAtCenter:!0},void 0,(0,u.default)(C.QuestionCircleOutlined,{className:"icon"})),Y=function(e){function t(a){var n;(0,f.default)(this,t);var o=(0,m.default)(this,e.call(this,a));return o.loadLanguage=function(){(0,E.getLanguageData)({pid:null,type:"language"}).then((function(e){o.setState({languageList:e.data})})).catch((function(e){p.default.error(e.message)})),(0,E.getLanguageData)({pid:null,type:"engine"}).then((function(e){o.setState({engineList:e.data})})).catch((function(e){p.default.error(e.message)})),(0,E.getLanguageData)({pid:null,type:"frame"}).then((function(e){o.setState({languageVersionList:e.data})})).catch((function(e){p.default.error(e.message)}))},o.fetchData=function(){var e="create"!==o.viewType&&o.mirrorId;(0,T.getFtpDropDown)().then((function(t){t&&(o.setState({ftpDatas:t.data}),e&&o.mirrorData.imageFtpId&&o.getValBlur(o.mirrorData.imageFtpId,"imageFtpId"))})).catch((function(e){p.default.error(b.default.get(e,"message","ftp\u8def\u5f84\u67e5\u8be2\u5931\u8d25"))})),e&&(0,E.getModelMirrorInfo)(o.mirrorId).then((function(e){var t=e.data||{};o.mirrorData={baseType:o.props.baseType,mirrorId:t.mirrorId,mirrorShowName:t.mirrorShowName,engine:t.versionEngine,mirrorDesc:t.mirrorDesc,owner:b.default.get(t,"owner")};var a=b.default.get(t,"imageFileId");a?(o.setState({uploadType:"upload",fileList:[{uid:a,name:b.default.get(t,"imageFileName"),status:"done"}]}),o.mirrorData.imageFileId=a):(o.mirrorData.imageFtpId=b.default.get(t,"imageFtpId"),o.mirrorData.filePath=(0,P.joinPathAndName)(t.imageFtpFilePath,t.imageFtpFileName),o.getValBlur(o.mirrorData.imageFtpId,"imageFtpId"),o.setState({uploadType:"ftp"})),o.props.form.setFieldsValue(o.mirrorData),o.setState({importState:t.versionState,owner:b.default.get(t,"owner")})})).catch()},o.saveMirror=function(){event.preventDefault(),"view"!==o.viewType?(""===o.mirrorData.mirrorShowName&&o.setState({checkNick:"error",nameVerifyMsg:"\u8bf7\u8f93\u5165\u955c\u50cf\u540d\u79f0"}),o.props.form.validateFields((function(e){if(!e){var t,a=((t={baseType:o.mirrorData.baseType,mirrorShowName:o.mirrorData.mirrorShowName,mirrorId:o.mirrorData.mirrorId,engine:o.mirrorData.engine,mirrorDesc:o.mirrorData.mirrorDesc,language:o.mirrorData.language,frame:o.mirrorData.frame}).engine=o.mirrorData.engine,t.startCommand="",t),n=o.mirrorData,s=n.imageFtpId,r=n.filePath,i=n.imageFileId,d=n.imageFileName,l=n.owner;if("ftp"===o.state.uploadType){a.imageFtpId=s,a.sourceType="IMPORT",a.owner=l;var u=(0,P.getFilePathAndFileName)(r);a.imageFtpFilePath=u.resourceFilePath,a.imageFtpFileName=u.resourceFileName}else{if(!i)return p.default.error("\u8bf7\u4e0a\u4f20\u955c\u50cf"),!1;a.imageFileId=i,a.imageFileName=d}if(""!==o.state.nameVerifyMsg)o.setState({checkNick:"error"});else{var f=o;c.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){f.setState({saveLoading:!0}),"create"===f.viewType||"FAILURE"===f.state.importState?("FAILURE"===f.state.importState&&(a.mirrorId=f.mirrorData.mirrorId),(0,E.saveModelMirrorInfo)(a).then((function(){f.setState({saveLoading:!1}),(0,L.navigateTo)(N.modelMirrorUrl.modelMirrorList())})).catch((function(){f.setState({saveLoading:!1})}))):(a.mirrorId=f.mirrorData.mirrorId,(0,E.updateModelMirrorInfo)(a).then((function(){f.setState({saveLoading:!1}),(0,L.navigateTo)(N.modelMirrorUrl.modelMirrorList())})).catch((function(){f.setState({saveLoading:!1})})))},onCancel:function(){}})}}}))):(0,L.navigateTo)(N.modelMirrorUrl.modelMirrorList())},o.getValBlur=function(e,t){var a;if("mirrorShowName"===t)o.getValOnChange(e);else if("language"===t)o.props.form.setFieldsValue({frame:""}),o.mirrorData.frame=null,o.mirrorData.language=e;else if(o.mirrorData[t]=e,"imageFtpId"===t){var n=b.default.find(o.state.ftpDatas,(function(t){return t.id===e}))||{};o.setState({versionSourcePath:n.storagePath})}o.props.form.setFieldsValue(((a={})[t]=e,a))},o.openTextDir=function(e){var t=e.lastIndexOf("/");if(t>0){var a=e.slice(0,t),n=e.slice(t+1);o.setState({versionSourcePath:a}),o.mirrorData.filePath=n,o.props.form.setFieldsValue({fileName:n})}},o.handelCancelPreview=function(){o.setState({previewPic:!1})},o.handelPreviewPic=function(e,t){""===e?p.default.info("\u8bf7\u9009\u62e9\u5bf9\u5e94FTP\u548c\u586b\u5199\u8def\u5f84"):o.setState({previewPic:!0,ftpId:e,filePath:t})},o.handelChangeUploadType=function(e){o.setState({uploadType:e.target.value})},o.beforeUpload=function(e){var t=e.name,a=!0;return-1===t.indexOf(".tar.gz")&&-1===t.indexOf(".tar")&&(a=!1,p.default.error("\u4ec5\u652f\u6301tar.gz/tar\uff0c\u683c\u5f0f\u6587\u4ef6")),a},o.getValOnChange=function(e){o.setState({newVersions:"v1"});var t=b.default.find(o.state.mirrorList,{mirrorShowName:e});t?(0,E.getNextVersion)(t).then((function(e){o.setState({newVersions:e.data.versionName}),o.mirrorData.mirrorId=e.data.mirrorId,o.mirrorData.mirrorShowName=e.data.mirrorName})):(o.mirrorData.mirrorId="",o.mirrorData.mirrorShowName=e)},o.closePage=function(){"view"===o.viewType?(0,L.navigateTo)(N.modelMirrorUrl.modelMirrorList()):c.default.confirm({title:"\u63d0\u793a\u4fe1\u606f",content:"\u786e\u5b9a\u8fd4\u56de\u4e3b\u754c\u9762\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,L.navigateTo)(N.modelMirrorUrl.modelMirrorList())},onCancel:function(){}})},o.onSwitchChange=function(e){o.mirrorData.owner=e?"public":"private",o.setState({owner:o.mirrorData.owner})},o.handleFtpValidate=function(e,t,a){if(""!==b.default.trim(t)&&""!==o.mirrorData.imageFtpId){for(var n=[],s=0;t&&s<t.split("/").length;s++)t.split("/")[s]&&n.push(t.split("/")[s]);var r="",i=o.state.versionSourcePath+t;n.length>0&&-1!==n[n.length-1].indexOf(".")&&(r=n[n.length-1]),r&&(i=i.replace(r,"")),new Promise((function(e){A.default.checkStorageInfo({storageId:o.mirrorData.imageFtpId,storageFilePath:i,storageFileName:r}).then((function(){e(),a()})).catch((function(e){a(e.message)}))}))}else a()},o.baseType="BASE",o.params=(0,L.parseParms)(a.location),o.mirrorId=b.default.get(a.match,"params.mirrorId",null),o.viewType=b.default.get(a.match,"params.action",null),o.state={ftpDatas:[],fileList:[],saveLoading:!1,versionSourcePath:"",uploadType:"ftp",importState:"",mirrorList:[],newVersions:b.default.get(a.match,"params.versionName",""),owner:"public",languageList:[],languageVersionList:[],engineList:[],nameVerifyMsg:"",checkNick:"success"},o.mirrorData=((n={baseType:o.baseType,mirrorShowName:"",engine:"",mirrorDesc:"",startCommand:"",language:"",frame:""}).engine="",n.mirrorId=b.default.get(a.match,"params.mirrorId",null),n.owner="public",n),o}return(0,h.default)(t,e),t.prototype.componentDidMount=function(){var e=this;(0,E.getModelMirrorList)({paramjson:{isPage:"N",baseType:"BASE",sourceTypes:"IMPORT,ONLINEBUILD"}}).then((function(t){e.setState({mirrorList:t.data})})),this.fetchData(),this.loadLanguage()},t.prototype.render=function(){var e=this,t=this,a=this.props.form.getFieldDecorator,c=this.state,f=c.ftpDatas,m=c.uploadType,h=c.importState,x=c.newVersions,S=c.mirrorList,T=c.languageList,E=c.languageVersionList,P=c.engineList,L=c.nameVerifyMsg,N=c.checkNick,A={marginTop:"16px",display:"flex"},R={width:"200px"},Y="view"===this.viewType,W={name:"file",action:(0,I.urlFormat)("/resources/action/upload",D.ServicePath.SIC_SERVICE),headers:{Authorization:(0,M.getToken)()},accept:".tar.gz,.tar",beforeUpload:this.beforeUpload,onChange:function(e){var a=[].concat(e.fileList);if(a=(a=a.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),t.setState({fileList:a}),"uploading"===e.file.status&&p.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status){if(void 0!==e.file.response.data&&""!==e.file.response.data){var n=b.default.get(e.file.response,"data","");t.mirrorData.imageFileId=n,t.mirrorData.imageFileName=e.file.name}}else"error"===e.file.status?p.default.error(e.file.name+" \u4e0a\u4f20\u51fa\u9519!"):"removed"===e.file.status&&(t.mirrorData=b.default.omit(t.mirrorData,["imageFileId","imageFileName"]))}};return(0,u.default)(B,{},void 0,this.state.previewPic&&(0,u.default)(w.default,{openTextDir:function(t,a){return e.openTextDir(t,a)},fileType:2,ftpId:this.mirrorData.imageFtpId,filePath:this.state.versionSourcePath,onClosePreview:this.handelCancelPreview}),(0,u.default)(j.Form,{layout:"inline"},void 0,(0,u.default)(k.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,u.default)(l.default,{style:{display:"flex"}},void 0,(0,u.default)(F,{label:"\u955c\u50cf\u540d\u79f0",validateStatus:N,help:L},void 0,a("mirrorShowName",{initialValue:this.mirrorData.mirrorShowName})((0,u.default)(d.default,{disabled:Y,onBlur:function(t){return e.getValBlur(t.target.value,"mirrorShowName")},style:R,filterOption:function(e,t){t.props.children.toUpperCase().indexOf(e.toUpperCase())},placeholder:"\u8bf7\u8f93\u5165\u955c\u50cf\u540d\u79f0"},void 0,Array.isArray(S)&&S.map((function(e,t){return(0,u.default)(V,{value:e.mirrorShowName},t,e.mirrorShowName)}))))),x&&(0,u.default)(F,{label:"\u7248\u672c\u53f7"},void 0,(0,u.default)("span",{},void 0,x))),(0,u.default)(l.default,{style:A},void 0,(0,u.default)(F,{label:"\u955c\u50cf\u4fe1\u606f"},void 0,a("language",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bed\u8a00"}],initialValue:this.mirrorData.language})((0,u.default)(v.default,{onChange:function(t){return e.getValBlur(t,"language")},style:{width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u8bed\u8a00",className:"sortType-cond"},void 0,z,T.map((function(e,t){return(0,u.default)(V,{value:e.value},t,e.name)}))))),(0,u.default)(F,{},void 0,a("engine",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5f15\u64ce"}],initialValue:this.mirrorData.engine})((0,u.default)(v.default,{onChange:function(t){return e.getValBlur(t,"engine")},style:{width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u5f15\u64ce",className:"sortType-cond"},void 0,q,P.map((function(e,t){return(0,u.default)(V,{value:e.value},t,e.name)}))))),(0,u.default)(F,{},void 0,a("frame",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6846\u67b6"}],initialValue:this.mirrorData.frame})((0,u.default)(v.default,{onChange:function(t){return e.getValBlur(t,"frame")},style:{width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u6846\u67b6",className:"sortType-cond"},void 0,K,E.map((function(e,t){return(0,u.default)(V,{value:e.value},t,e.name)})))))),(0,u.default)(l.default,{style:A},void 0,(0,u.default)(F,{label:"\u63cf\u8ff0"},void 0,a("mirrorDesc",{initialValue:this.mirrorData.mirrorDesc})((0,u.default)(O,{disabled:Y,autosize:{minRows:4,maxRows:6},style:{width:"700px"},maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onBlur:function(t){return e.getValBlur(t.target.value,"mirrorDesc")}})))),(0,u.default)(l.default,{style:{marginTop:16,paddingLeft:3}},void 0,(0,u.default)(F,{label:"\u662f\u5426\u516c\u5171\u955c\u50cf"},void 0,(0,u.default)(i.default,{disabled:Y||"upload"===m||"SUCCESS"===h,checked:"public"===this.state.owner,checkedChildren:"\u662f",unCheckedChildren:"\u5426",onChange:this.onSwitchChange})))),(0,u.default)(k.ModelConfigPanel,{title:"\u4e0a\u4f20\u955c\u50cf"},void 0,(0,u.default)(U,{name:"uploadType",disabled:Y||"SUCCESS"===h,value:this.state.uploadType,onChange:this.handelChangeUploadType},void 0,(0,u.default)(l.default,{style:{display:"flex"}},void 0,(0,u.default)(g.default,{value:"ftp"},void 0,(0,u.default)("span",{style:{color:"rgba(0, 0, 0, 0.85)"}},void 0,"FTP\u5730\u5740:")),(0,u.default)(F,{label:""},void 0,a("imageFtpId",{rules:[{required:"ftp"===m,message:"\u8bf7\u9009\u62e9FTP"}],initialValue:this.mirrorData.imageFtpId})((0,u.default)(v.default,{disabled:Y||"upload"===m||"SUCCESS"===h,style:R,onChange:function(t){return e.getValBlur(t,"imageFtpId")},placeholder:"\u8bf7\u9009\u62e9FTP"},void 0,f.map((function(e,t){return(0,u.default)(V,{value:e.id},t,e.storageName)}))))),(0,u.default)(F,{className:"disabled"},void 0,a("filePath",{rules:[{required:"ftp"===m,message:"\u8bf7\u8f93\u5165\u8def\u5f84\u53ca\u6587\u4ef6\u540d"},{pattern:"ftp"===m?/^\/*(?:[^/]+\/)*[^/]+(.tar.gz|.tar)$/:"",message:"\u8def\u5f84\u6216\u6587\u4ef6\u683c\u5f0f\u4e0d\u6b63\u786e"},{validator:this.handleFtpValidate}],validateTrigger:"onBlur",initialValue:this.mirrorData.filePath})((0,u.default)(_.default,{allowClear:!0,disabled:Y||"upload"===m||"SUCCESS"===h,addonBefore:this.state.versionSourcePath,style:{width:"400px"},onBlur:function(t){return e.getValBlur(t.target.value,"filePath")},placeholder:"\u8def\u5f84\u53ca\u6587\u4ef6\u540d"})),H),(0,u.default)(F,{style:{display:"none"}},void 0,(0,u.default)(r.default,{type:"ghost",onClick:function(){e.handelPreviewPic(e.mirrorData.ftpId,e.state.ftpPath+e.state.versionSourcePath)}},void 0,"\u9884\u89c8"))),(0,u.default)(l.default,{style:A},void 0,(0,u.default)(g.default,{value:"upload"},void 0,(0,u.default)("span",{style:{color:"rgba(0, 0, 0, 0.85)"}},void 0,"\u672c\u5730\u4e0a\u4f20:")),(0,u.default)(F,{help:""},void 0,y.default.createElement(o.default,(0,s.default)({fileList:this.state.fileList},W,{disabled:Y||"upload"!==m||"SUCCESS"===h,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelMirror\\baseMirror\\ImportMirror.jsx",lineNumber:716}}),(0,u.default)(r.default,{disabled:Y||"upload"!==m||"SUCCESS"===h},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"))),(0,u.default)(n.default,{placement:"topLeft",title:"\u8bf7\u9009\u62e9tar.gz\u3001\u6216\u8005tar\u683c\u5f0f\u7684\u955c\u50cf",arrowPointAtCenter:!0},void 0,(0,u.default)(C.QuestionCircleOutlined,{style:{marginLeft:-10,marginTop:10},className:"icon"})))))),(0,u.default)(G,{},void 0,(0,u.default)(r.default,{onClick:function(){e.closePage()}},void 0,"\u53d6\u6d88"),"view"!==this.viewType&&(0,u.default)(r.default,{loading:this.state.saveLoading,onClick:this.saveMirror,style:{marginLeft:"10px"},type:"primary"},void 0,Y?"\u786e\u5b9a":"\u4fdd\u5b58")))},t}(y.default.PureComponent);t.default=(0,x.connect)((function(){return{}}))(j.Form.create()(Y))},"./src/module/modelMirror/baseMirror/definePage/CreateDefineConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateDefineConfigDom=void 0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/babel-runtime/helpers/jsx.js")),s=b(a("./node_modules/antd/es/message/index.js")),r=b(a("./node_modules/antd/es/modal/index.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=b(a("./node_modules/react/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(b(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),m=b(a("./src/module/modelMirror/baseMirror/definePage/component/DefineBaseInfo.jsx")),h=b(a("./src/module/modelMirror/baseMirror/definePage/component/DefineContentInfo.jsx")),g=a("./src/redux/services/modelMirror.js"),v=a("./src/routes/routeHelper.jsx"),y=a("./src/utils/history.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=t.CreateDefineConfigDom=p.default.div.withConfig({displayName:"CreateDefineConfig__CreateDefineConfigDom",componentId:"sc-1f0nwj5-0"})(["width:100%;background:#fff;padding:16px;.model-buttons{text-align:right;}"]),C=(0,o.default)(f.LoadingIndicator,{position:"relative"}),j=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.submitModalCancel=function(){var e=n.state.modelData,t=n,a=!0;Object.keys(n.validateFuncs).map((function(t){var o=n.validateFuncs[t];if(_.isFunction(o)){var s=o.call();a&&(e=_.assign(e,s.moduleData),a=s.validate)}})),a&&r.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.saveData(e)},onCancel:function(){}})},n.saveData=function(e){n.setState({confirmLoading:!0}),e.dockerFile=e.dockerCommond+"\n"+e.dockerFiles,delete e.dockerCommond,delete e.dockerFiles,delete e.languageVersion;for(var t=[],a=0;a<e.resources.length;a++)_.get(e,"resources["+a+"].resourceName")&&""!==_.get(e,"resources["+a+"].resourceName")&&t.push(e.resources[a]);e.resources=t,"create"===n.viewType?(0,g.saveMirrorBuild)(e).then((function(){n.setState({confirmLoading:!1}),(0,y.navigateTo)(v.modelMirrorUrl.modelMirrorList()),s.default.success("\u4fdd\u5b58\u6210\u529f!")})).catch((function(){n.setState({confirmLoading:!1})})):(e.mirrorId=n.mirrorId,(0,g.editMirrorBuild)(e).then((function(){n.setState({confirmLoading:!1}),(0,y.navigateTo)(v.modelMirrorUrl.modelMirrorList()),s.default.success("\u4fee\u6539\u6210\u529f!")})).catch((function(){n.setState({confirmLoading:!1}),s.default.success("\u4fee\u6539\u5931\u8d25!")})))},n.closePage=function(){"view"===n.viewType?(0,y.navigateTo)(v.modelMirrorUrl.modelMirrorList()):r.default.confirm({title:"\u63d0\u793a\u4fe1\u606f",content:"\u786e\u5b9a\u8fd4\u56de\u4e3b\u754c\u9762\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,y.navigateTo)(v.modelMirrorUrl.modelMirrorList())},onCancel:function(){}})},n.params=(0,y.parseParms)(a.location),n.mirrorId=_.get(a.match,"params.mirrorId",null),n.viewType=_.get(a.match,"params.action",null),n.state={loading:!1,confirmLoading:!1,modelData:{}},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){var e=this;"create"!==this.viewType&&(this.setState({loading:!0}),(0,g.getModelMirrorInfo)(this.mirrorId).then((function(t){t&&e.setState({modelData:_.get(t,"data",null),loading:!1})})).catch((function(t){e.setState({loading:!1}),s.default.error(t.message)})))},t.prototype.render=function(){var e=this,t=this.state,a=t.loading,s=t.modelData;return(0,o.default)(x,{},void 0,a&&"create"!==this.viewType&&C,!a&&(0,o.default)("div",{},void 0,(0,o.default)(m.default,{viewType:this.viewType,modelData:s,setValidateFunc:this.setValidateFunc}),(0,o.default)(h.default,{viewType:this.viewType,modelData:s,setValidateFunc:this.setValidateFunc})),(0,o.default)("div",{className:"model-buttons"},void 0,(0,o.default)(n.default,{onClick:function(){e.closePage()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"view"!==this.viewType?"\u53d6 \u6d88":"\u8fd4 \u56de"),"view"!==this.viewType&&(0,o.default)(n.default,{onClick:this.submitModalCancel,type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(j)},"./src/module/modelMirror/baseMirror/definePage/component/DefineBaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelBaseInfoDom=void 0;var n=y(a("./node_modules/antd/es/auto-complete/index.js")),o=y(a("./node_modules/antd/es/col/index.js")),s=y(a("./node_modules/antd/es/row/index.js")),r=y(a("./node_modules/babel-runtime/helpers/jsx.js")),i=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=y(a("./node_modules/babel-runtime/helpers/inherits.js")),u=y(a("./node_modules/antd/es/input/index.js")),c=y(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=y(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./src/components/index.js"),g=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=a("./src/redux/services/modelMirror.js");y(a("./node_modules/prop-types/index.js"));function y(e){return e&&e.__esModule?e:{default:e}}var b=c.default.Option,x=u.default.TextArea,C=t.ModelBaseInfoDom=g.default.div.withConfig({displayName:"DefineBaseInfo__ModelBaseInfoDom",componentId:"sc-1njfpib-0"})([".ant-row{line-height:60px;display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:300px;}.ant-row{line-height:60px;}"]),j={width:"100%",display:"inline"},S=m.Form.Item,I=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),""===n.baseInfo.mirrorShowName.trim()&&(e=!1,n.setState({checkNick:"error",nameVerifyMsg:"\u8bf7\u8f93\u5165\u955c\u50cf\u540d\u79f0"})),""!==n.state.nameVerifyMsg?(n.setState({checkNick:"error"}),{validate:!1,moduleData:n.baseInfo}):{validate:e,moduleData:n.baseInfo}},n.getValOnChange=function(e){n.setState({newVersions:"v1"});var t=_.find(n.state.mirrorList,{mirrorShowName:e});t?(0,v.getNextVersion)(t).then((function(e){n.setState({newVersions:e.data.versionName}),n.baseInfo.mirrorId=e.data.mirrorId,n.baseInfo.mirrorShowName=e.data.mirrorName})):(n.baseInfo.mirrorId="",n.baseInfo.mirrorShowName=e)},n.getValBlur=function(e,t){"mirrorShowName"===t?n.getValOnChange(e):n.baseInfo[t]=e},n.state={mirrorList:[],newVersions:"",nameVerifyMsg:"",checkNick:"success"};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("baseInfo",n.validateFun),n.baseInfo={mirrorShowName:_.get(a.modelData,"mirrorShowName",""),baseId:_.get(a.modelData,"baseId",""),mirrorDesc:_.get(a.modelData,"mirrorDesc","")},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){var e=this;(0,v.getModelMirrorList)({paramjson:{isPage:"N",baseType:"BASE",sourceTypes:"IMPORT,ONLINEBUILD"}}).then((function(t){e.setState({mirrorList:t.data})}))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,i=a.mirrorList,d=a.newVersions,l=a.nameVerifyMsg,u=a.checkNick;return(0,r.default)(C,{},void 0,(0,r.default)(h.ModelConfigPanel,{title:"\u9009\u62e9\u65b0\u5efa\u65b9\u5f0f",style:j},void 0,(0,r.default)(m.Form,{layout:"horizontal"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:10},void 0,(0,r.default)(S,{style:{marginLeft:10},label:"\u57fa\u7840\u955c\u50cf",validateStatus:u,help:l},void 0,t("mirrorShowName",{initialValue:this.baseInfo.mirrorShowName})((0,r.default)(n.default,{disabled:"view"===this.props.viewType,onBlur:function(t){return e.getValBlur(t.target.value,"mirrorShowName")},style:{width:"200px"},filterOption:function(e,t){return t.props.children&&-1!==t.props.children.toUpperCase().indexOf(e.toUpperCase())},placeholder:"\u8bf7\u8f93\u5165\u955c\u50cf\u540d\u79f0"},void 0,Array.isArray(i)&&i.map((function(e,t){return(0,r.default)(b,{value:e.mirrorShowName},t,e.mirrorShowName)})))))),(0,r.default)(o.default,{style:{display:d&&""!==d?"":"none"},span:10},void 0,(0,r.default)(S,{label:"\u7248\u672c\u53f7"},void 0,(0,r.default)("span",{},void 0,d)))),(0,r.default)(s.default,{},void 0,(0,r.default)(S,{style:{marginLeft:10},label:"\u955c\u50cf\u63cf\u8ff0"},void 0,t("mirrorDesc",{initialValue:this.baseInfo.mirrorDesc})((0,r.default)(x,{disabled:"view"===this.props.viewType,autosize:{minRows:3,maxRows:6},style:{width:650,marginRight:10,min:0,max:450},onBlur:function(t){return e.getValBlur(t.target.value,"mirrorDesc")},rows:8})))))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(m.Form.create()(I))},"./src/module/modelMirror/baseMirror/definePage/component/DefineContentInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DefineContentInfoDom=void 0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/babel-runtime/helpers/extends.js")),s=j(a("./node_modules/antd/es/spin/index.js")),r=j(a("./node_modules/antd/es/row/index.js")),i=j(a("./node_modules/babel-runtime/helpers/jsx.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=j(a("./node_modules/babel-runtime/helpers/inherits.js")),p=j(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var f=j(a("./node_modules/react/index.js")),m=a("./node_modules/react-redux/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./src/components/index.js"),v=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),y=(j(a("./node_modules/prop-types/index.js")),j(a("./src/module/modelMirror/baseMirror/definePage/component/PackageListPage.jsx"))),b=j(a("./src/module/modelMirror/baseMirror/definePage/component/RelyInlayMirror.jsx")),x=j(a("./src/module/modelMirror/baseMirror/definePage/component/DockerfileContainer.jsx")),C=a("./src/redux/services/modelMirror.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=p.default.Group,I=p.default.Button,T=t.DefineContentInfoDom=v.default.div.withConfig({displayName:"DefineContentInfo__DefineContentInfoDom",componentId:"sc-18bi3ce-0"})([".ant-row{line-height:60px;display:flex;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:300px;}.ant-row{line-height:60px;}.ant-col-offset-2{margin-left:7.7%;}.ant-col-9{width:34.6%;}.dom-button{height:auto;width:100%;padding-left:73px;}.package-list{padding-left:53px;margin-top:-10px;max-height:300px;}"]),w={width:"100%",display:"inline"},E=h.Form.Item,D=(0,i.default)(I,{value:"ONLINEBUILD"},void 0,"\u5728\u7ebf\u5b89\u88c5"),M=(0,i.default)(I,{disabled:!0,value:"OFFLINEBUILD"},void 0,"\u79bb\u7ebf\u5b89\u88c5"),k=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.setPackageValidateFunc=function(e,t){n.fileFuncs[e]=t},n.validateFun=function(){var e={resources:[]},t=!0;return Object.keys(n.fileFuncs).map((function(a){var o=n.fileFuncs[a];if(_.isFunction(o)){var s=o.call();t&&(t=s.validate),t&&-1!==a.indexOf("packageArray")?e.resources.push(s.moduleData):t&&(e=_.assign(e,s.moduleData))}})),e.dockerCommond=n.state.dockerCommond,e.dockerFiles=n.state.dockerFiles,e.sourceType="ONLINEBUILD",e.baseType="BASE",e.frame=e.languageVersion,{validate:t,moduleData:e}},n.onRadioChange=function(){},n.savePackage=function(){var e=n.state.packageList;e.push({resourceName:"",versionName:"",key:_.uniqueId()+"a"}),n.setState({packageList:e.concat([])})},n.deletePackage=function(e,t){var a=n.state.packageList;a.splice(e,1),delete n.fileFuncs["fileArray"+e],delete n.autoDockerFiles[t];for(var o=0;o<n.dockerFilesArray.length;o++)if(n.dockerFilesArray[o].key===t){n.dockerFilesArray.splice(o,1);break}n.spellDockerFiles(null,t,"delete"),n.setState({packageList:a.concat([])})},n.updatePackage=function(e,t){var a=n.state.packageList;a[e]=t,n.setState({packageList:a.concat([])}),t.resourceName&&(n.setState({dockerFilesLoading:!0}),(0,C.getPackageCommond)({resourceName:t.resourceName,resourceVersion:t.versionName}).then((function(e){"00000"===e.code?(n.autoDockerFiles[t.key]=e.data.packageCommond,n.spellDockerFiles(!0,t.key)):(e.code="99999")&&(d.default.error(e.message),n.setState({dockerFilesLoading:!1}))})).catch((function(e){n.setState({dockerFilesLoading:!1}),d.default.error(e.message)})))},n.onChangeDockerFile=function(e){e.commond?n.setState({dockerCommond:e.commond}):n.setState({dockerCommond:"--"})},n.setDockerFile=function(e){n.dockerFilesArray=[];var t=e.split("\n");if(""!==e.replace(/^\s*|\s*$/g,""))for(var a=0;a<t.length;a++){var o=!0;for(var s in n.autoDockerFiles)if(n.autoDockerFiles[s]===t[a]){n.dockerFilesArray.push({key:s,val:t[a]}),o=!1;break}o&&n.dockerFilesArray.push({key:a,val:t[a]})}n.dockerFilesArray.length>0&&""===n.dockerFilesArray[n.dockerFilesArray.length-1].val&&n.dockerFilesArray.splice(n.dockerFilesArray.length-1,1),e&&"\n"===e.substring(e.length-1,e.length)&&(e=e.substring(0,e.lastIndexOf("\n"))),n.setState({dockerFiles:e})},n.spellDockerFiles=function(e,t,a){var o="";if(n.dockerFilesArray.length>0)for(var s=0;s<n.dockerFilesArray.length;s++)n.dockerFilesArray[s].key===t&&"delete"!==a?n.autoDockerFiles[t]&&(o+=n.autoDockerFiles[t]+"\n"):n.dockerFilesArray[s].val&&(o+=n.dockerFilesArray[s].val+"\n");for(var r in n.autoDockerFiles){for(var i=!0,d=0;d<n.dockerFilesArray.length;d++)if(n.dockerFilesArray[d].key===r){i=!1;break}i&&(o+=n.autoDockerFiles[r]+"\n")}e?n.setState({dockerFiles:o,dockerFilesLoading:!1}):n.setState({dockerFiles:o})},n.state={packageList:[{resourceName:"",versionName:"",key:_.uniqueId()+"a"}],dockerCommond:"--",dockerFiles:"",dockerFilesLoading:!1};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("content",n.validateFun),n.fileFuncs={},n.relyInlayMirror={language:_.get(a.modelData,"language",""),frame:_.get(a.modelData,"frame",""),engine:_.get(a.modelData,"engine",""),baseMirrorId:_.get(a.modelData,"baseMirrorId",""),baseId:_.get(a.modelData,"baseId","")},n.dockerFilesArray=[],n.autoDockerFiles={},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){if("create"!==this.props.viewType){var e=_.get(this.props.modelData,"dockerFile",null),t=_.get(this.props.modelData,"resources",null);e&&""!==e&&this.setState({dockerCommond:e.substring(0,e.indexOf("\n")),dockerFiles:e.substring(e.indexOf("\n")+1,e.length)}),this.setState({packageList:t})}},t.prototype.render=function(){var e=this,t=this.state,a=t.packageList,d=t.dockerCommond,l=t.dockerFiles,u=t.dockerFilesLoading;return(0,i.default)(T,{},void 0,(0,i.default)(g.ModelConfigPanel,{title:"\u9009\u62e9\u6784\u5efa\u5185\u5bb9",style:w},void 0,(0,i.default)(b.default,{data:this.relyInlayMirror,viewType:this.props.viewType,setRelyInlayMirrorFunc:this.setPackageValidateFunc,onChange:function(t){e.onChangeDockerFile(t)},baseType:"BASE"}),(0,i.default)(h.Form,{layout:"horizontal"},void 0,(0,i.default)(r.default,{},void 0,(0,i.default)(E,{label:"\u4f9d\u8d56\u5305\u4fe1\u606f"},void 0,(0,i.default)("div",{style:{display:"flex",paddingTop:2}},void 0,(0,i.default)(S,{disabled:"view"===this.props.viewType,onChange:this.onRadioChange,defaultValue:"ONLINEBUILD"},void 0,D,M)))),(0,i.default)(s.default,{spinning:u,tip:"\u547d\u4ee4\u751f\u6210\u4e2d\u8bf7\u7a0d\u540e...."},void 0,(0,i.default)("div",{className:"package-list",style:{overflowX:a.length>3?"auto":""}},void 0,a.map((function(t,a){return"INIT"!==t.resourceSourceType&&(0,i.default)(y.default,{setPackageValidateFunc:e.setPackageValidateFunc,index:a,item:(0,o.default)({},t),viewType:e.props.viewType,deletePackage:e.deletePackage,updatePackage:e.updatePackage,savePackage:e.savePackage},t.key)}))),0===a.length&&(0,i.default)("div",{className:"dom-button"},void 0,(0,i.default)(n.default,{type:"primary",ghost:!0,onClick:this.savePackage},void 0,"\u6dfb \u52a0")),(0,i.default)(x.default,{viewType:this.props.viewType,modelData:this.props.modelData,dockerCommond:d,dockerFiles:l,setDockerFile:function(t){e.setDockerFile(t)}})))))},t}(f.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(h.Form.create()(k))},"./src/module/modelMirror/baseMirror/definePage/component/DockerfileContainer.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DockerfileDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=a("./node_modules/react-redux/es/index.js"),l=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/@uiw/react-codemirror/esm/index.js")));function c(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/codemirror/keymap/sublime.js"),a("./node_modules/codemirror/theme/monokai.css");var p=t.DockerfileDom=l.default.div.withConfig({displayName:"DockerfileContainer__DockerfileDom",componentId:"sc-13gfb9w-0"})(["margin-top:15px;width:90%;padding:0px 0px 16px 73px;.CodeMirror-code{outline:none;background:#000000;pre span{color:#ffffff;}}.CodeMirror{font-family:'source-code-pro',Menlo,'Courier New',Consolas,monospace;font-size:14px;z-index:0;border-radius:0px;height:auto;background:#000000;}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3;display:none;}.from-div{background:#000000;width:100%;padding:20px;color:#ff8f20;font-weight:800;}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding-left:20px;}.CodeMirror-linenumber{color:#d0d0d0;display:none;}.cm-s-monokai.CodeMirror{background:#000000;color:#f8f8f2;}.conceal{height:100%;width:100%;position:absolute;z-index:999;}"]),f=(0,n.default)("div",{className:"conceal"}),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.setCode=function(e){var t="";if(e.doc.children)for(var a=0;a<e.doc.children.length;a++){for(var o=e.doc.children[a],s=0;s<o.lines.length;s++)o.lines[s].text&&(t+=o.lines[s].text+"\n");t.substring(0,t.length-2)}n.props.setDockerFile(t)},n.state={},n.codeMirrorRef=i.default.createRef(),n}return(0,r.default)(t,e),t.prototype.componentDidUpdate=function(){_.isFunction(this.codeMirrorRef.current.editor.setValue)&&this.codeMirrorRef.current.editor.setValue(this.props.dockerFiles)},t.prototype.render=function(){var e=this,t=this.props,a=t.dockerCommond,o=t.dockerFiles,s=t.viewType;return(0,n.default)(p,{className:"dockerfile-wrapper"},void 0,"view"===s&&f,(0,n.default)("div",{className:"from-div"},void 0,a),i.default.createElement(u.default,{ref:this.codeMirrorRef,onBlur:function(t){return e.setCode(t)},style:{marginTop:10},value:o,options:{theme:"monokai",tabSize:2,keyMap:"sublime",mode:"text/x-dockerfile",extraKeys:{Ctrl:"autocomplete"},viewportMargin:20,readOnly:"view"===this.props.viewType,value:o},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelMirror\\baseMirror\\definePage\\component\\DockerfileContainer.jsx",lineNumber:95}}))},t}(i.default.PureComponent);t.default=(0,d.connect)((function(){return{}}))(m)},"./src/module/modelMirror/baseMirror/definePage/component/PackageListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PackageListPageDom=void 0;var n=m(a("./node_modules/antd/es/button/index.js")),o=m(a("./node_modules/antd/es/input/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var l=m(a("./node_modules/react/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));m(a("./node_modules/prop-types/index.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=t.PackageListPageDom=f.default.div.withConfig({displayName:"PackageListPage__PackageListPageDom",componentId:"sc-1c6nddg-0"})(["background:#f4f4f4;height:50px;padding-top:5px;margin-left:20px;width:585px;.ant-row{line-height:60px;display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:300px;}.ant-row{line-height:60px;}"]),g=p.Form.Item,v=(0,s.default)(c.PlusOutlined,{}),y=(0,s.default)(c.MinusOutlined,{}),b=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:n.package}},n.getValBlur=function(e,t){n.package[t]=e,n.props.updatePackage(n.props.index,n.package)},n.state={};var o=n.props,s=o.setPackageValidateFunc,d=o.index;return _.isFunction(s)&&s("packageArray"+d,n.validateFun),n.package=a.item,n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,s.default)(h,{style:{marginTop:0===this.props.index?0:10}},void 0,(0,s.default)(p.Form,{style:{display:"flex"},layout:"inline"},void 0,(0,s.default)(g,{help:""},void 0,t("resourceName",{rules:[{required:!0}],initialValue:this.package.resourceName})((0,s.default)(o.default,{disabled:"view"===this.props.viewType,onBlur:function(t){return e.getValBlur(t.target.value,"resourceName")},placeholder:"\u4f9d\u8d56\u5305\u540d\u79f0",style:{width:200,borderRadius:0,height:32,marginLeft:20}}))),(0,s.default)("div",{style:{display:"-webkit-inline-box",marginTop:10,fontWeight:800}},void 0,"=="),(0,s.default)(g,{help:""},void 0,t("versionName",{initialValue:this.package.versionName})((0,s.default)(o.default,{disabled:"view"===this.props.viewType,onBlur:function(t){return e.getValBlur(t.target.value,"versionName")},placeholder:"\u7248\u672c\u53f7",style:{width:200,borderRadius:0,height:32,marginLeft:20}}))),"view"!==this.props.viewType&&(0,s.default)(g,{help:""},void 0,(0,s.default)(n.default,{onClick:this.props.savePackage,icon:v}),(0,s.default)(n.default,{style:{marginLeft:10},onClick:function(){e.props.deletePackage(e.props.index,e.package.key)},icon:y}))))},t}(l.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(p.Form.create()(b))},"./src/module/modelMirror/baseMirror/definePage/component/RelyInlayMirror.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.RelyInlayMirrorDom=void 0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/antd/es/divider/index.js")),s=j(a("./node_modules/antd/es/row/index.js")),r=j(a("./node_modules/babel-runtime/helpers/jsx.js")),i=j(a("./node_modules/babel-runtime/helpers/extends.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=j(a("./node_modules/babel-runtime/helpers/inherits.js")),p=j(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=j(a("./node_modules/react/index.js")),m=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(j(a("./node_modules/prop-types/index.js")),a("./node_modules/react-router-dom/esm/react-router-dom.js")),g=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var y=a("./src/components/index.js"),b=a("./src/redux/services/modelMirror.js"),x=a("./src/routes/routeHelper.jsx"),C=j(a("./src/module/modelMirror/serviceMirrorVersion/detailPage/MirrorResourceInfo.jsx"));function j(e){return e&&e.__esModule?e:{default:e}}var S=p.default.Option,I=v.Form.Item,T=t.RelyInlayMirrorDom=m.default.div.withConfig({displayName:"RelyInlayMirror__RelyInlayMirrorDom",componentId:"sc-1qg263o-0"})(["width:100%;.ant-btn.ant-btn-sm{padding:0 6px;}"]),w={padding:"4px 8px 8px",cursor:"pointer"},E=(0,r.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u8bed\u8a00"),D=(0,r.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u5f15\u64ce"),M=(0,r.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u6846\u67b6"),k=(0,r.default)(g.PlusOutlined,{}),P=(0,r.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u5185\u7f6e\u955c\u50cf"),L=(0,r.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u955c\u50cf\u7248\u672c"),N=(0,r.default)(g.SearchOutlined,{}),A=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.queryInitMirror=function(e,t){var a={isPage:"N",baseType:n.props.baseType?n.props.baseType:"BASE,TRAIN",sourceTypes:n.props.sourceTypes?n.props.sourceTypes:"IMPORT,ONLINEBUILD,INIT",engine:_.get(e,"engine",""),language:_.get(e,"language",""),frame:_.get(e,"languageVersion","")};t&&n.props.form.setFieldsValue({baseId:"",baseMirrorId:""}),(0,b.getModelMirrorList)({paramjson:a}).then((function(e){n.setState({baseMirrorList:e.data})}))},n.queryMirrorVersion=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,b.getMirrorVersionList)({paramsJson:{mirrorId:e,versionState:"SUCCESS"}}).then((function(e){n.setState({baseMirrorVersionList:e.data,mirrorVersionId:t})})),n.props.form.setFieldsValue({baseId:t})},n.openResourcesList=function(){n.setState({modalVisible:!0})},n.getValBlur=function(e,t){if(n.data[e]=t,"language"===e)n.props.form.setFieldsValue({languageVersion:"",baseMirrorId:"",baseId:""});else if("languageVersion"===e||"engine"===e)n.props.form.setFieldsValue({baseMirrorId:"",baseId:""});else if("baseMirrorId"===e&&t){if(n.props.mirrorShowName)for(var a=0;a<n.state.baseMirrorList.length;a++)if(n.state.baseMirrorList[a].mirrorId===t){n.data.mirrorShowName2=n.state.baseMirrorList[a].mirrorShowName;break}n.queryMirrorVersion(t)}"baseId"===e&&""!==t&&(n.setState({mirrorVersionId:t}),n.props.onChange&&(0,b.getDockerCommond)({mirrorId:n.data.baseMirrorId,mirrorVersionId:n.data.baseId}).then((function(e){n.props.onChange(e.data)})).catch((function(e){d.default.error(e.message)}))),n.data.language&&n.data.languageVersion&&n.data.engine||n.setState({baseMirrorList:[],baseMirrorVersionList:[]}),"baseMirrorId"!==e&&"baseId"!==e&&n.data.language&&n.data.languageVersion&&n.data.engine&&n.queryInitMirror(n.data),n.props.onValueChange&&n.props.onValueChange(e,t)},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:e,moduleData:n.data}:{validate:e,errorMsg:"\u8bf7\u6b63\u786e\u9009\u62e9\u62e9\u8bad\u7ec3\u955c\u50cf\u4fe1\u606f"}},n.callVisible=function(){n.setState({modalVisible:!1})},n.data={language:_.get(a.data,"language",""),languageVersion:_.get(a.data,"languageVersion",""),engine:_.get(a.data,"runEngine")?_.get(a.data,"runEngine"):_.get(a.data,"engine",""),baseMirrorId:_.get(a.data,"mirrorId")?_.get(a.data,"mirrorId"):_.get(a.data,"baseMirrorId",""),baseId:_.get(a.data,"mirrorVersion")?_.get(a.data,"mirrorVersion"):_.get(a.data,"baseId","")},a.mirrorShowName&&(n.data.mirrorShowName2=_.get(a.data,"mirrorShowName","")),n.state={languageList:[],languageVersionList:[],engineList:[],baseMirrorList:[],baseMirrorVersionList:[],modalVisible:!1,mirrorVersionId:n.data.baseId};var o=n.props.setRelyInlayMirrorFunc;return _.isFunction(o)&&o("relyInlayMirror",n.validateFun),n}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){_.isEqual(this.props.data,e.data)||(this.data=(0,i.default)({},this.props.data),this.props.form.setFieldsValue(this.data)),this.props.baseType&&(_.isEqual(this.props.baseType,e.baseType)||this.queryInitMirror(this.data,"type"))},t.prototype.componentDidMount=function(){var e=this;(0,b.getLanguageData)({pid:null,type:"language"}).then((function(t){e.setState({languageList:t.data})})),(0,b.getLanguageData)({pid:null,type:"frame"}).then((function(t){var a=t.data;e.setState({languageVersionList:a})})),(0,b.getLanguageData)({pid:null,type:"engine"}).then((function(t){e.setState({engineList:t.data})})),this.data.baseMirrorId&&(this.queryInitMirror(this.data),this.queryMirrorVersion(this.data.baseMirrorId,this.data.baseId))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,i=a.languageList,d=a.languageVersionList,l=a.engineList,u=a.baseMirrorList,c=a.baseMirrorVersionList;return(0,r.default)(T,{},void 0,(0,r.default)(y.ModalView,{viewType:"view",modalTitle:"\u67e5\u770b\u4f9d\u8d56\u5305",onCancelType:!1,width:800,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,r.default)(C.default,{versionId:this.state.mirrorVersionId,size:"small",resourceFileType:"PACKAGE"})}),(0,r.default)(v.Form,{layout:"horizontal"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(I,{label:"\u955c\u50cf\u4fe1\u606f"},void 0,t("language",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bed\u8a00"}],initialValue:this.data.language})((0,r.default)(p.default,{onChange:function(t){return e.getValBlur("language",t)},style:{width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u8bed\u8a00",className:"sortType-cond",disabled:"view"===this.props.viewType},void 0,E,i.map((function(e,t){return(0,r.default)(S,{value:e.value},t,e.name)}))))),(0,r.default)(I,{},void 0,t("engine",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5f15\u64ce"}],initialValue:this.data.engine})((0,r.default)(p.default,{onChange:function(t){return e.getValBlur("engine",t)},style:{marginLeft:15,width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u5f15\u64ce",className:"sortType-cond",disabled:"view"===this.props.viewType},void 0,D,l.map((function(e,t){return(0,r.default)(S,{value:e.value},t,e.name)}))))),(0,r.default)(I,{},void 0,t("languageVersion",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6846\u67b6"}],initialValue:this.data.languageVersion})((0,r.default)(p.default,{onChange:function(t){return e.getValBlur("languageVersion",t)},style:{marginLeft:15,width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u6846\u67b6",className:"sortType-cond",disabled:"view"===this.props.viewType},void 0,M,d.map((function(e,t){return(0,r.default)(S,{value:e.value},t,e.name)})))))),!this.props.hideSelectMirror&&(0,r.default)(s.default,{style:{marginLeft:70},className:"mirror-line-second"},void 0,(0,r.default)(I,{},void 0,t("baseMirrorId",{rules:[{required:!0,message:this.props.baseType?"\u8bf7\u9009\u62e9\u5185\u7f6e\u955c\u50cf":"\u8bf7\u9009\u62e9\u57fa\u7840\u955c\u50cf"}],initialValue:this.data.baseMirrorId})((0,r.default)(p.default,{showSearch:!0,style:{width:"317px"},onChange:function(t){return e.getValBlur("baseMirrorId",t)},placeholder:this.props.baseType?"\u8bf7\u9009\u62e9\u5185\u7f6e\u955c\u50cf":"\u8bf7\u9009\u62e9\u57fa\u7840\u955c\u50cf",className:"sortType-cond",disabled:"view"===this.props.viewType,dropdownRender:function(t){return(0,r.default)("div",{},void 0,t,"codeService"===e.props.from&&(0,r.default)(f.default.Fragment,{},void 0,(0,r.default)(o.default,{style:{margin:"4px 0"}}),(0,r.default)("div",{style:w,onMouseDown:function(e){return e.preventDefault()}},void 0,(0,r.default)(h.Link,{to:x.modelMirrorUrl.createDefineModel(),target:"_blank"},void 0,k," \u6784\u5efa\u955c\u50cf"))))}},void 0,P,u.map((function(e,t){return(0,r.default)(S,{value:e.mirrorId},t,e.mirrorShowName)}))))),(0,r.default)(I,{},void 0,t("baseId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u955c\u50cf\u7248\u672c"}],initialValue:this.data.baseId})((0,r.default)(p.default,{onChange:function(t){return e.getValBlur("baseId",t)},style:{marginLeft:15,width:"150px"},placeholder:"\u8bf7\u9009\u62e9\u955c\u50cf\u7248\u672c",className:"sortType-cond",disabled:"view"===this.props.viewType},void 0,L,c.map((function(e,t){return(0,r.default)(S,{value:e.versionId},t,e.versionName)}))))),(0,r.default)(I,{style:{marginLeft:15}},void 0,this.state.mirrorVersionId&&(0,r.default)(n.default,{onClick:this.openResourcesList,title:"\u67e5\u770b\u4f9d\u8d56\u5305",type:"primary",shape:"circle",icon:N,size:"small"})))))},t}(f.default.PureComponent);t.default=v.Form.create()(A)},"./src/module/modelMirror/baseMirror/detailPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/tooltip/index.js")),o=C(a("./node_modules/babel-runtime/helpers/jsx.js")),s=C(a("./node_modules/antd/es/modal/index.js")),r=C(a("./node_modules/antd/es/message/index.js")),i=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=C(a("./node_modules/babel-runtime/helpers/inherits.js")),u=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=C(a("./node_modules/react/index.js")),p=(C(a("./node_modules/prop-types/index.js")),C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=C(a("./node_modules/dayjs/dayjs.min.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./src/components/index.js"),g=a("./src/utils/history.js"),v=a("./src/routes/routeHelper.jsx"),y=a("./src/module/modelMirror/modelEnums.js"),b=a("./src/redux/services/modelMirror.js"),x=C(a("./src/redux/services/sysManager/ftpBasesManager.js"));function C(e){return e&&e.__esModule?e:{default:e}}var j=C(a("./src/components/button/index.js")).default.GhostButton,S=p.default.div.withConfig({displayName:"BaseInfo__DetailBaseInfoWrapper",componentId:"txn8im-0"})(["display:flex;border:1px solid #eee;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:80%;margin-right:24px;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;justify-content:space-between;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line1-left{display:flex;}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{min-width:200px;display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}.item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.base__version-select{width:150px;}"]),I=u.default.Option,T=(0,o.default)("span",{},void 0,"\u5207\u6362\u7248\u672c\uff1a"),w=(0,o.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),E=(0,o.default)(m.LoadingOutlined,{className:"refresh-icon"}),D=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){n.fetchVersionsInfo(),n.fetchVersionsData(),n.fetchMirrorInfo()},n.fetchMirrorInfo=function(){n.props.mirrorId&&(0,b.getModelMirrorInfo)(n.props.mirrorId).then((function(e){n.setState({mirrorInfo:e.data||{},loading:!1})})).catch((function(){n.setState({loading:!1})}))},n.fetchVersionsInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.versionId;e&&(n.setState({loading:!0}),(0,b.getMirrorVersionInfo)(e).then((function(e){var t=e.data||{};!n.state.refreshing&&n.props.onVersionSourceType&&n.props.onVersionSourceType(_.get(t,"versionSourceType")),n.setState({versionInfo:t,refreshing:!1,loading:!1}),_.get(e,"data.imageFtpId")&&""!==_.get(e,"data.imageFtpId","")&&x.default.getFtpBasesInfo({id:_.get(e,"data.imageFtpId")}).then((function(e){n.setState({ftpInfo:{id:_.get(e,"data.id",""),name:_.get(e,"data.storageName",""),path:_.get(e,"data.storagePath","")}})})).catch((function(e){r.default.error(e.message)}))})).catch((function(e){console.error(e),n.setState({refreshing:!1,loading:!1})})))},n.fetchVersionsData=function(){n.props.mirrorId&&(0,b.getMirrorVersionList)({paramsJson:{mirrorId:n.props.mirrorId}}).then((function(e){var t=e.data||[];t&&0!==t.length||(0,g.navigateTo)(v.modelMirrorUrl.list("ModelMirror"));var a=_.get(t,"[0].versionId");n.props.versionId||n.changeMirrorVersion(a),n.setState({versionList:t})}))},n.changeMirrorVersion=function(e){n.props.onVersionChange(e)},n.handleDeleteAction=function(){s.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u6b64\u955c\u50cf\u7248\u672c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e,t){(0,b.deleteModelMirrorVersion)(n.props.versionId).then((function(){Array.isArray(n.state.versionList)&&n.state.versionList.length>1?(n.changeMirrorVersion(""),n.fetchVersionsData()):(r.default.success("\u5220\u9664\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,g.navigateTo)(v.modelMirrorUrl.list("ModelMirror"))}),2e3)),e()})).catch((function(e){t(e)}))}))}})},n.handleRefresh=function(){n.setState({refreshing:!0}),n.fetchData()},n.state={loading:!1,refreshing:!1,mirrorInfo:{},versionInfo:{},versionList:[],ftpInfo:{id:"",name:"",path:""}},n.items=[{key:"versionId",name:"ID",type:"text"},{key:"versionSourceType",name:"\u7248\u672c\u6765\u6e90",type:"map",mapObj:y.SOURCE_MAP},{key:"createCode",name:"\u521b\u5efa\u4eba",type:"text"},{key:"createTime",name:"\u521b\u5efa\u65f6\u95f4",type:"date"},{key:"language",name:"\u8bed\u8a00",type:"text"},{key:"frame",name:"\u8ba1\u7b97\u6846\u67b6",type:"text"},{key:"versionEngine",name:"\u5f15\u64ce",type:"text"},{key:"versionName",name:"\u7248\u672c\u53f7",type:"text"}],n.buildItems=[{key:"baseMirrorName",name:"\u6784\u5efa\u955c\u50cf",type:"text"},{key:"baseVersionName",name:"\u6784\u5efa\u7248\u672c",type:"text"},{key:"mirrorRepistoryUrl",name:"\u955c\u50cf\u5730\u5740",type:"text"}],n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.versionId!==e.versionId&&this.fetchVersionsInfo()},t.prototype.render=function(){var e=this,t=this.state,a=t.mirrorInfo,s=t.versionInfo,r=t.refreshing,i=t.loading,d=t.ftpInfo,l=t.versionList,p=this.props.mirrorId,_="ONLINEBUILD"===s.versionSourceType?this.items.concat(this.buildItems):this.items,y=d.name+": "+d.path+(s.imageFtpFilePath?s.imageFtpFilePath:"");return(0,o.default)(S,{},void 0,(0,o.default)("div",{className:"left__content-wrapper"},void 0,(0,o.default)("div",{className:"left__top-wrapper"},void 0,(0,o.default)("div",{className:"left__top-line1"},void 0,(0,o.default)("div",{className:"left__top-line1-left"},void 0,(0,o.default)("div",{className:"base__info-name top__line1-section"},void 0,a.mirrorShowName),(0,o.default)("div",{className:"base__info-status top__line1-section"},void 0,"FAILURE"===s.versionState?(0,o.default)(n.default,{placement:"topLeft",title:s.errorMessage},void 0,(0,o.default)("div",{},void 0,(0,o.default)(h.StateLabel,{source:"serviceMirrorVersion",code:s.versionState}))):(0,o.default)(h.StateLabel,{source:"serviceMirrorVersion",code:s.versionState}))),(0,o.default)("div",{className:"base__version-select"},void 0,T," ",(0,o.default)(u.default,{onChange:this.changeMirrorVersion,style:{width:80},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",value:s.versionId},void 0,Array.isArray(l)&&l.map((function(e){return(0,o.default)(I,{value:e.versionId},e.versionId,e.versionName)}))))),(0,o.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",s.versionDesc," ")),(0,o.default)("div",{className:"left__bottom-wrapper"},void 0,_.map((function(e){return"map"===e.type?(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,e.mapObj&&e.mapObj.getDesc(s[e.key]))):"date"===e.type?(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,s[e.key]?(0,f.default)(s[e.key]).format("YYYY-MM-DD HH:mm:ss"):"--")):(0,o.default)(n.default,{title:s[e.key]},e.key,(0,o.default)("div",{className:"item__wrapper"},void 0,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,s[e.key])))})),"ONLINEBUILD"!==s.versionSourceType&&(0,o.default)(c.default.Fragment,{},void 0,""!==d.id&&(0,o.default)(n.default,{placement:"topLeft",title:y},void 0,(0,o.default)("div",{className:"item__wrapper"},void 0,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,"ftp\u4fe1\u606f\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,y))),(0,o.default)(n.default,{title:s.imageFileName||s.imageFtpFileName,placement:"topLeft"},void 0,(0,o.default)("div",{className:"item__wrapper"},void 0,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,"\u6587\u4ef6\u540d\u79f0\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,s.imageFileName||s.imageFtpFileName)))))),(0,o.default)("div",{className:"right__content-wrapper"},void 0,w,(0,o.default)(h.RefreshButton,{onRefresh:this.handleRefresh,style:{display:"none"}}),r&&i?E:(0,o.default)(n.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,o.default)(m.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})),(0,o.default)("div",{className:"right__bottom-wrapper"},void 0,"INIT"!==s.versionSourceType&&(0,o.default)(j,{action:"EDIT",width:"20",txt:"\u4fee\u6539",onClick:function(){return(0,g.navigateTo)(v.modelMirrorUrl.edit("modelMirror",p))},className:"fn-left opt-btn"}),("FAILURE"===s.versionState||"SUCCESS"===s.versionState)&&"INIT"!==s.versionSourceType&&(0,o.default)(j,{action:"DELETE",width:"20",txt:"\u5220\u9664",onClick:function(){return e.handleDeleteAction()},className:"fn-left opt-btn"}))))},t}(c.default.Component);t.default=D},"./src/module/modelMirror/baseMirror/detailPage/BaseMirrorDetailPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=v(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=v(a("./node_modules/react/index.js")),l=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=v(a("./src/module/modelMirror/serviceMirrorVersion/detailPage/MirrorResourceInfo.jsx")),p=a("./src/components/index.js"),f=a("./src/utils/constants.js"),m=a("./src/utils/publicPath.js"),h=v(a("./src/module/modelMirror/baseMirror/detailPage/BaseInfo.jsx")),g=v(a("./src/module/modelMirror/components/DockerfilePane.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var y=i.default.TabPane,b=l.default.div.withConfig({displayName:"BaseMirrorDetailPage__ModelServiceDetailWrapper",componentId:"tgh3ks-0"})(["width:100%;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{margin-top:20px;.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-tab{font-size:16px;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);}}"]),x=l.default.div.withConfig({displayName:"BaseMirrorDetailPage__TabContent",componentId:"tgh3ks-1"})(["background:#fff;min-height:500px;width:100%;padding:16px 0;"]),C=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onChange=function(e){n.setState({activeTab:e})},n.handleVersionChange=function(e){n.setState({versionId:e})},n.handleVersionSourceType=function(e){var t="info";"ONLINEBUILD"===e&&(t="process"),n.setState({sourceType:e,activeTab:t})},n.mirrorId=_.get(a.match.params,"mirrorId"),n.versionId=_.get(a.match.params,"versionId"),n.state={activeTab:"info",versionId:n.versionId,sourceType:"IMPORT"},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.state,t=e.activeTab,a=e.versionId;return(0,n.default)(b,{},void 0,(0,n.default)(h.default,{mirrorId:this.mirrorId,versionId:a,entity:this.entity,onVersionChange:this.handleVersionChange,onVersionSourceType:this.handleVersionSourceType}),(0,n.default)(i.default,{onChange:this.onChange,activeKey:""+t,className:"modelApply-tabs"},void 0,"ONLINEBUILD"===this.state.sourceType&&(0,n.default)(y,{tab:"\u6784\u5efa\u8fc7\u7a0b"},"process",(0,n.default)(x,{},void 0,(0,n.default)(p.EventProcess,{eventUrl:a?(0,m.urlFormat)("/process/version/"+a,f.ServicePath.MC_SERVICE):""}))),(0,n.default)(y,{tab:"\u955c\u50cf\u5185\u5bb9"},"info",(0,n.default)(x,{},void 0,(0,n.default)(c.default,{mirrorId:this.mirrorId,versionId:a}))),(0,n.default)(y,{tab:"dockerfile"},"dockerfile",(0,n.default)(x,{},void 0,"dockerfile"===t&&(0,n.default)(g.default,{versionId:a})))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(C)},"./src/module/modelMirror/baseMirror/listPage/ModelMirrorListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/divider/index.js")),o=S(a("./node_modules/antd/es/table/index.js")),s=S(a("./node_modules/antd/es/button/index.js")),r=S(a("./node_modules/antd/es/tooltip/index.js")),i=S(a("./node_modules/babel-runtime/helpers/jsx.js")),d=S(a("./node_modules/antd/es/message/index.js")),l=S(a("./node_modules/antd/es/modal/index.js")),u=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=S(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=S(a("./node_modules/react/index.js")),m=S(a("./node_modules/lodash/lodash.js")),h=S(a("./node_modules/dayjs/dayjs.min.js")),g=a("./node_modules/react-router-dom/esm/react-router-dom.js"),v=a("./node_modules/@ant-design/icons/es/index.js"),_=a("./src/components/index.js"),y=a("./src/redux/services/modelMirror.js"),b=S(a("./src/module/modelMirror/baseMirror/listPage/SearchBar.jsx")),x=a("./src/styles/GlobalStyle.js"),C=a("./src/utils/history.js"),j=a("./src/routes/routeHelper.jsx");function S(e){return e&&e.__esModule?e:{default:e}}var I={IMPORT:"\u5bfc\u5165",INIT:"\u9884\u7f6e",ONLINEBUILD:"\u81ea\u5b9a\u4e49"},T=(0,i.default)(n.default,{type:"vertical"}),w=(0,i.default)(n.default,{type:"vertical"}),E=(0,i.default)(v.PlusOutlined,{}),D=(0,i.default)(_.LoadingIndicator,{position:"relative"}),M=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.queryVersions=function(e){(0,C.navigateTo)(j.modelMirrorUrl.baseVersionList(e.mirrorId))},n.handleDelete=function(e){var t;l.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u955c\u50cf?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t){(0,y.deleteModelMirror)(e).then((function(){t(),d.default.success("\u5220\u9664\u6210\u529f"),n.fetchData()}))}))},t))},n.openModalVisible=function(e,t){"define"===t?(0,C.navigateTo)(j.modelMirrorUrl.createDefineModel()):(n.templateInfo=e,(0,C.navigateTo)(j.modelMirrorUrl.importCreate()))},n.closeModal=function(e){var t=n;n.templateInfo=null,"submit"===e?(n.setState({modalVisible:!1}),n.fetchData()):l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1})}})},n.fetchData=function(e){n.setState({listLoading:"intervalRefresh"!==e}),(0,y.getModelMirrorList)({paramjson:n.searchCond}).then((function(e){var t=e.data,a=t.content,o=t.totalElements;n.setState({mirrorList:a,totalCount:o,listLoading:!1})})).catch((function(){return n.setState({listLoading:!1})}))},n.changeSearchCond=function(e,t){if("refresh"!==e){var a=m.default.trim(t);a?n.searchCond[e]=a:n.searchCond=m.default.omit(n.searchCond,[e]),n.searchCond.pageNo=0,n.setState({currentPage:1}),n.fetchData()}else n.fetchData(t)},n.onChangePage=function(e,t){n.searchCond.pageNo=parseInt(e)-1,n.searchCond.pageSize=parseInt(t),n.fetchData(),n.setState({currentPage:e})},n.callVisible=function(e){n.setState({modalVisible:!1,viewType:""}),e&&n.fetchData()},n.state={modalVisible:!1,viewType:"",mirrorList:[],listLoading:!1,currentPage:1,totalCount:0},n.searchCond={isPage:"Y",pageNo:0,pageSize:10,baseType:"BASE,BASE_REASONING,BASE_MODEL,ONLINEBUILD"},n.columns=[{title:"\u5e8f\u53f7",width:60,dataIndex:"index",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"\u955c\u50cf\u540d\u79f0",dataIndex:"mirrorShowName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7248\u672c\u6570\u91cf",ellipsis:!0,dataIndex:"versionCount",render:function(e){return(0,i.default)(r.default,{placement:"topLeft"},void 0,e," \u4e2a")}},{title:"\u5f15\u64ce",dataIndex:"mirrorEngine"},{title:"\u521b\u5efa\u4eba",ellipsis:!0,dataIndex:"createCode",render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6765\u6e90",ellipsis:!0,dataIndex:"sourceType",render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:I[e]},void 0,I[e])}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e?(0,h.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,h.default)(e).format("YYYY-MM-DD"):"")}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e?(0,h.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,h.default)(e).format("YYYY-MM-DD"):"")}},{title:"\u64cd\u4f5c",width:180,render:function(e){return(0,i.default)("span",{},void 0,(0,i.default)(g.Link,{to:j.modelMirrorUrl.baseDetail(e.mirrorId)},void 0,"\u67e5\u770b"),"INIT"!==e.sourceType&&(0,i.default)(f.default.Fragment,{},void 0,T,(0,i.default)(g.Link,{to:j.modelMirrorUrl.edit("modelMirror",e.mirrorId)},void 0,"\u4fee\u6539"),w,(0,i.default)("a",{href:"javascript:;"},void 0,(0,i.default)("span",{onClick:function(){return n.handleDelete(e.mirrorId)}},void 0,"\u5220\u9664"))))}}],n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.currentPage,n=t.mirrorList,r=t.totalCount,d=t.listLoading;return(0,i.default)(x.PageWrapper,{},void 0,(0,i.default)(x.PageHeader2,{},void 0,(0,i.default)(s.default,{style:{marginRight:20},onClick:function(){e.openModalVisible(null,"define")},type:"primary"},void 0,E,"\u65b0\u589e\u81ea\u5b9a\u4e49\u57fa\u7840\u955c\u50cf"),(0,i.default)(s.default,{onClick:function(){e.openModalVisible(null,"import")},type:"primary"},void 0,"\u5bfc\u5165\u57fa\u7840\u955c\u50cf"),(0,i.default)(b.default,{onChange:this.changeSearchCond})),(0,i.default)(x.PageBody,{},void 0,(0,i.default)(x.TableWrapper,{},void 0,d?D:(0,i.default)(f.default.Fragment,{},void 0,(0,i.default)(o.default,{dataSource:n,rowKey:"mirrorId",bordered:!0,pagination:!1,columns:this.columns}),(0,i.default)(_.TabPagination,{currentPage:a,pageSize:10,total:r,onChange:this.onChangePage})))))},t}(f.default.Component);t.default=M},"./src/module/modelMirror/baseMirror/listPage/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/extends.js")),o=m(a("./node_modules/babel-runtime/helpers/jsx.js")),s=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=m(a("./node_modules/babel-runtime/helpers/inherits.js")),d=m(a("./node_modules/antd/es/input/index.js")),l=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=m(a("./node_modules/react/index.js")),c=(m(a("./node_modules/prop-types/index.js")),a("./src/module/modelMirror/modelEnums.js")),p=a("./src/styles/GlobalStyle.js"),f=a("./src/components/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=l.default.Option,g=d.default.Search,v=c.RUN_ENGINE.getCodeAndDescList(),y=c.SOURCE.getCodeAndDescList(),b={width:"100px"},x=(0,o.default)(h,{value:"mir_show_name"},void 0,"\u540d\u79f0\u6392\u5e8f"),C=(0,o.default)(h,{value:"update_time"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),j=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("mirrorShowName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("orderBy"),n.changeClassificationField=n.changeSelect("engine"),n.changeSourceField=n.changeSelect("sourceTypes"),n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this;return(0,o.default)(p.SearchBarWrapper,{className:"search-bar"},void 0,(0,o.default)(f.RefreshButton,{onRefresh:this.props.onChange}),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(l.default,{id:"sort",name:"sort",onChange:this.changeSortField,style:b,placeholder:"\u6392\u5e8f\u6761\u4ef6",className:"item-cond"},void 0,x,C)),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(l.default,{allowClear:!0,onChange:this.changeClassificationField,style:b,placeholder:"\u5f15\u64ce",className:"item-cond"},void 0,v.map((function(e){return(0,o.default)(h,{value:e.code},e.code,e.desc)})))),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(l.default,{allowClear:!0,onChange:this.changeSourceField,style:b,placeholder:"\u6765\u6e90",className:"item-cond"},void 0,y.map((function(e){return(0,o.default)(h,{value:e.code},e.code,e.desc)})))),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(g,{allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0\u67e5\u8be2",style:(0,n.default)({},b,{width:"150px"}),onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(u.default.Component);t.default=j},"./src/module/modelMirror/baseMirror/versionPage/VersionListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/table/index.js")),o=x(a("./node_modules/antd/es/tooltip/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/antd/es/message/index.js")),i=x(a("./node_modules/antd/es/modal/index.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/lodash/lodash.js"))),f=x(a("./node_modules/dayjs/dayjs.min.js")),m=a("./src/components/index.js"),h=x(a("./src/module/modelMirror/baseMirror/versionPage/component/SearchBar.jsx")),g=a("./src/routes/routeHelper.jsx"),v=a("./src/redux/services/modelMirror.js"),_=a("./src/styles/GlobalStyle.js"),y=a("./src/module/modelMirror/modelEnums.js"),b=x(a("./src/module/modelMirror/baseMirror/versionPage/component/VersionExport.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=(0,s.default)(m.LoadingIndicator,{position:"relative"}),j=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.fetchData=function(e){n.setState({listLoading:"intervalRefresh"!==e}),(0,v.getMirrorVersionList)({paramsJson:n.searchCond}).then((function(e){n.setState({mirrorList:e.data,listLoading:!1})})).catch((function(){return n.setState({listLoading:!1})}))},n.handleDelete=function(e){var t;i.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u955c\u50cf\u7248\u672c?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t){(0,v.deleteModelMirrorVersion)(e).then((function(){t(),r.default.success("\u5220\u9664\u6210\u529f"),n.fetchData()}))}))},t))},n.exportOpen=function(e){n.setState({exportVisible:!0}),n.versionInfo=e},n.openModalVisible=function(e,t){n.templateInfo=e,n.setState({modalVisible:!0,viewType:t})},n.callVisible=function(e){n.setState({modalVisible:!1,viewType:""}),e&&n.fetchData()},n.changeSearchCond=function(e,t){"refresh"!==e?(p.default.trim(t)?n.searchCond[e]=p.default.trim(t):n.searchCond=p.default.omit(n.searchCond,[e]),n.fetchData()):n.fetchData(t)},n.exportClose=function(){n.setState({exportVisible:!1})},n.setExportLoading=function(e){n.setState({exportLoading:e})},n.mirrorId=p.default.get(a.match.params,"mirrorId"),n.state={modalVisible:!1,viewType:"",mirrorList:[],listLoading:!1},n.searchCond={mirrorId:n.mirrorId},n.columns=[{title:"\u5e8f\u53f7",width:60,dataIndex:"index",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u7248\u672c\u53f7",width:80,dataIndex:"versionName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8bed\u8a00",dataIndex:"language",ellipsis:!0},{title:"\u5f15\u64ce",dataIndex:"versionEngine",ellipsis:!0},{title:"\u6846\u67b6",dataIndex:"frame",ellipsis:!0},{title:"\u6765\u6e90",ellipsis:!0,width:100,dataIndex:"versionSourceType",render:function(e){return(0,s.default)("span",{},void 0,y.SOURCE_MAP.getDesc(e))}},{title:"\u521b\u5efa\u4eba",ellipsis:!0,dataIndex:"createCode",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD"):"")}},{title:"\u6784\u5efa\u72b6\u6001",width:110,dataIndex:"versionState",render:function(e,t){return"FAILURE"===e?(0,s.default)(o.default,{placement:"topLeft",title:t.errorMessage},void 0,(0,s.default)("div",{},void 0,(0,s.default)(m.StateLabel,{source:"serviceMirrorVersion",code:e}))):(0,s.default)(m.StateLabel,{source:"serviceMirrorVersion",code:e})}},{title:"\u64cd\u4f5c",width:180,render:function(e){var t=[];return t.push({handleName:"\u67e5\u770b",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:g.modelMirrorUrl.baseDetail(n.mirrorId,e.versionId),handleType:"link"}),"INIT"===p.default.get(e,"versionSourceType")||"SUCCESS"!==p.default.get(e,"versionState")&&"FAILURE"!==p.default.get(e,"versionState")||t.push({handleName:"\u4fee\u6539",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:"IMPORT"===p.default.get(e,"versionSourceType")?g.modelMirrorUrl.importEdit(n.mirrorId,e.versionName):g.modelMirrorUrl.editDefineModel(n.mirrorId,e.versionName),handleType:"link"}),"INIT"===p.default.get(e,"versionSourceType")||"SUCCESS"!==p.default.get(e,"versionState")&&"FAILURE"!==p.default.get(e,"versionState")||t.push({handleName:"\u5220\u9664",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:function(){n.handleDelete(e.versionId)}}),(0,s.default)(m.ListButtons,{buttons:t,maxShowNum:2})}}],n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.mirrorList,o=t.listLoading;return(0,s.default)("div",{style:{width:"100%"}},void 0,(0,s.default)(_.PageWrapper,{},void 0,(0,s.default)(m.ModalView,{modalTitle:"\u7248\u672c\u5bfc\u51fa",onCancelType:!1,width:800,confirmLoading:this.state.exportLoading,callVisible:this.exportClose,modalVisible:this.state.exportVisible,okText:"\u5bfc \u51fa",submitModalOk:function(){e.versionExport.submitModalOk()},comp:(0,s.default)(b.default,{setExportLoading:this.setExportLoading,onCancel:this.exportClose,onRef:function(t){e.versionExport=t},mirrorVersionId:p.default.get(this,"versionInfo.versionId","")})}),(0,s.default)(_.PageHeader,{className:"right"},void 0,(0,s.default)(h.default,{onChange:this.changeSearchCond,entity:this.entity})),(0,s.default)(_.PageBody,{},void 0,(0,s.default)(_.TableWrapper,{},void 0,o?C:(0,s.default)(n.default,{dataSource:a,rowKey:"versionId",bordered:!0,pagination:!0,columns:this.columns})))))},t}(c.default.Component);t.default=j},"./src/module/modelMirror/baseMirror/versionPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./src/module/modelMirror/modelEnums.js")),u=a("./src/styles/GlobalStyle.js"),c=a("./src/components/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=i.default.Option,m=l.RUN_ENGINE.getCodeAndDescList(),h={width:"130px"},g=(0,n.default)(f,{value:"v_name"},void 0,"\u540d\u79f0\u6392\u5e8f"),v=(0,n.default)(f,{value:"update_time"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("mirrorShowName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("orderBy"),n.changeClassificationField=n.changeSelect("versionEngine"),n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(u.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)(c.RefreshButton,{onRefresh:this.props.onChange}),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(i.default,{id:"sort",name:"sort",onChange:this.changeSortField,style:h,placeholder:"\u6392\u5e8f\u6761\u4ef6",className:"item-cond"},void 0,g,v)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(i.default,{allowClear:!0,onChange:this.changeClassificationField,style:h,placeholder:"\u5f15\u64ce",className:"item-cond"},void 0,m.map((function(e){return(0,n.default)(f,{value:e.code},e.code,e.desc)})))))},t}(d.default.Component);t.default=y},"./src/module/modelMirror/baseMirror/versionPage/component/VersionExport.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/input/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/antd/es/message/index.js")),r=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=g(a("./node_modules/babel-runtime/helpers/inherits.js")),l=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=g(a("./node_modules/react/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/components/index.js"),m=(g(a("./node_modules/prop-types/index.js")),g(a("./src/redux/services/modelBase.js"))),h=a("./src/redux/services/modelMirror.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=l.default.Option,_=p.Form.Item,y={width:"100%",display:"inline"},b=(0,o.default)(v,{value:""},void 0,"\u8bf7\u9009\u62e9FTP"),x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.onRef(n),m.default.getFtpDropDown().then((function(e){e&&n.setState({ftpDatas:e.data})})).catch((function(e){s.default.error(e.message)}))},n.getModelBlur=function(e,t){if("ftpId"===t)for(var a=n.state.ftpDatas,o=0;o<a.length;o++)if(a[o].id===e){n.setState({ftpPath:a[o].storagePath});break}n.exportVersionInfo[t]=e},n.submitModalOk=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&(n.props.setExportLoading(!0),(0,h.exportMirrorVersion)(n.exportVersionInfo).then((function(){n.props.setExportLoading(!1),s.default.success("\u5bfc\u51fa\u4e2d\uff01"),n.props.onCancel()})).catch((function(e){n.props.setExportLoading(!1),s.default.error(e.message)})))},n.state={ftpDatas:[],ftpPath:"--"},n.exportVersionInfo={ftpId:"",saveDir:"",mirrorVersionId:a.mirrorVersionId},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,o.default)(p.Form,{layout:"inline"},void 0,(0,o.default)(f.ModelConfigPanel,{title:"\u5bfc\u51fa\u5730\u5740",style:y},void 0,(0,o.default)(_,{help:""},void 0,t("ftpId",{rules:[{required:!0}],initialValue:this.exportVersionInfo.ftpId})((0,o.default)(l.default,{style:{width:200},onChange:function(t){return e.getModelBlur(t,"ftpId")},placeholder:"\u8bf7\u9009\u62e9"},void 0,b,this.state.ftpDatas.map((function(e,t){return(0,o.default)(v,{value:e.id},t,e.storageName)}))))),(0,o.default)(_,{},void 0,t("saveDir",{rules:[{message:"\u8bf7\u8f93\u5165\u6709\u6548\u8def\u5f84"}],initialValue:this.exportVersionInfo.saveDir})((0,o.default)(n.default,{addonBefore:this.state.ftpPath,placeholder:"\u8bf7\u8f93\u8def\u5f84",onBlur:function(t){return e.getModelBlur(t.target.value,"saveDir")}})))))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(p.Form.create()(x))},"./src/module/modelMirror/components/DockerfilePane.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/tooltip/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/antd/es/message/index.js")),r=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var l=g(a("./node_modules/react/index.js")),u=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=g(a("./node_modules/react-markdown/lib/react-markdown.js")),p=a("./src/components/index.js"),f=a("./node_modules/@ant-design/icons/es/index.js"),m=g(a("./node_modules/copy-to-clipboard/index.js")),h=a("./src/redux/services/modelMirror.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.div.withConfig({displayName:"DockerfilePane__PageWrapper",componentId:"m1gf3k-0"})([".dockFile-container{min-height:300px;}.download-link{margin-left:32px;}.md-wrapper{border:1px solid #eee;pre{margin:16px;}.copy-icon{float:right;margin:4px;color:#147bd1;}}"]),_=(0,o.default)(p.NoData,{}),y=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fetDockFileMsg=function(){n.props.versionId&&(0,h.getMirrorVersionDockFileMsg)(n.props.versionId).then((function(e){n.setState({dockFileMsg:e.data})}))},n.handleDockFileDownLoad=function(){(0,h.downLoadMirrorVersionDockerFile)(n.props.versionId)},n.handleDockFileMsgCopy=function(){(0,m.default)(n.state.dockFileMsg),s.default.success("\u590d\u5236\u6210\u529f\uff01")},n.state={dockFileMsg:""},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.fetDockFileMsg()},t.prototype.componentDidUpdate=function(e){this.props.versionId!==e.versionId&&this.fetDockFileMsg()},t.prototype.render=function(){var e=this.state.dockFileMsg,t="```\n"+e+"```";return(0,o.default)(v,{},void 0,(0,o.default)(p.ModelConfigPanel,{title:(0,o.default)("span",{},void 0,"\u53ef\u89c6\u5316Dockerfile",e&&(0,o.default)("span",{className:"link download-link",onClick:this.handleDockFileDownLoad},void 0,"\u4e0b\u8f7d"))},void 0,(0,o.default)("div",{className:"dockFile-container"},void 0,e?(0,o.default)("div",{className:"md-wrapper"},void 0,(0,o.default)(n.default,{title:"\u590d\u5236"},void 0,(0,o.default)(f.CopyOutlined,{onClick:this.handleDockFileMsgCopy,className:"copy-icon"})),(0,o.default)(c.default,{mode:"VIEW",source:t,escapeHtml:!1,options:{highlightCode:!0,showCodeLines:!0}})):_)))},t}(l.default.Component);t.default=y},"./src/module/modelMirror/components/EnvVariables.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/button/index.js")),o=m(a("./node_modules/antd/es/input/index.js")),s=m(a("./node_modules/antd/es/row/index.js")),r=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var u=m(a("./node_modules/react/index.js")),c=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");function m(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var h=f.Form.Item,g=c.default.div.withConfig({displayName:"EnvVariables__EnvVariablesWrapper",componentId:"sc-11xjfkb-0"})(["margin-top:16px;.ant-row{line-height:40px;display:flex;}"]),v=(0,r.default)(p.PlusOutlined,{}),y=(0,r.default)(p.MinusOutlined,{}),b=(0,r.default)(p.PlusOutlined,{}),x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleEnvVariablesChange=function(e,t,a,o){var s=n.props.envVariables,r=_.findIndex(s,{index:t}),i=s[r];"add"===e?s.push({name:"",value:"",index:(new Date).getTime()}):"minus"===e?s.splice(r,1):"edit"===e&&(s[r][a]=o);for(var d={},l=0;l<s.length;l++){var u=s[l];d["envKey"+u.index]=u.name,d["envValue"+u.index]=u.value}n.props.form.setFieldsValue(d),n.props.onMirrorChange(s,e,r,i)},n.state={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.envVariables,i=t.labelText,d=t.wrapStyle,l=t.getFieldDecorator,u=t.disabled;return(0,r.default)(g,{style:d,className:"env-var-wrapper"},void 0,Array.isArray(a)&&a.length>0?a.map((function(t,a){return(0,r.default)(s.default,{style:{marginTop:0===a?0:16}},t.index||-1,(0,r.default)(h,{label:0===a?i:i?" ":"",className:"sm-label",colon:0===a},void 0,l("envKey"+t.index,{rules:[{pattern:/^[a-zA-Z_]+$/,message:"\u4ec5\u652f\u6301\u82f1\u6587\u5b57\u6bcd\u4e0b\u5212\u7ebf"}],initialValue:t.name})((0,r.default)(o.default,{placeholder:"\u540d\u79f0",style:{width:200},disabled:u,onBlur:function(a){return e.handleEnvVariablesChange("edit",t.index,"name",a.target.value)}}))),(0,r.default)(h,{style:{marginLeft:10}},void 0,l("envValue"+t.index,{initialValue:t.value})((0,r.default)(o.default,{placeholder:"\u503c",disabled:u,style:{width:200,margin:0},onBlur:function(a){return e.handleEnvVariablesChange("edit",t.index,"value",a.target.value)}}))),(0,r.default)(h,{style:{marginLeft:10}},void 0,(0,r.default)(n.default,{icon:v,disabled:u,onClick:function(){return e.handleEnvVariablesChange("add",t.index)}}),(0,r.default)(n.default,{style:{marginLeft:10},icon:y,disabled:u,onClick:function(){return e.handleEnvVariablesChange("minus",t.index)}})))})):(0,r.default)(h,{label:i,className:"sm-label",colon:!0},void 0,(0,r.default)(n.default,{icon:b,disabled:u,onClick:function(){return e.handleEnvVariablesChange("add",0)}})))},t}(u.default.Component);x.defaultProps={envVariables:[]},t.default=f.Form.create()(x)},"./src/module/modelMirror/components/picPreview/PicturePreviewPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),a("./node_modules/react-redux/es/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./src/module/modelMirror/components/picPreview/components/PicturePreview.jsx"))),u=a("./src/redux/reducers/dataSource.js"),c=a("./src/redux/selectors/dataSource.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var a,n,r;(0,o.default)(this,t);for(var i=arguments.length,d=Array(i),l=0;l<i;l++)d[l]=arguments[l];return a=n=(0,s.default)(this,e.call.apply(e,[this].concat(d))),n.onChangePath=function(e){n.props.dispatch(u.dataSourceActions.getPicPreviewDataRequest({isCache:"1",fileType:n.props.fileType,ftpId:n.props.ftpId,filePath:n.props.filePath+(_.endsWith(n.props.filePath,"/")?"":"/")+e}))},r=a,(0,s.default)(n,r)}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(u.dataSourceActions.getPicPreviewDataRequest({isCache:"1",fileType:this.props.fileType,ftpId:this.props.ftpId,filePath:this.props.filePath}))},t.prototype.componentWillUnmount=function(){this.props.dispatch(u.dataSourceActions.resetPicPreviewData())},t.prototype.render=function(){var e=this.props,t=e.resultData,a=e.loading,o=t&&t.toJS&&t.toJS();return(0,n.default)(l.default,{fileType:this.props.fileType,loading:a,data:o,openTextDir:this.props.openTextDir,ftpId:this.props.ftpId,onChangePath:this.onChangePath,onClosePreview:this.props.onClosePreview})},t}(i.Component);t.default=(0,d.connect)((function(e){return{resultData:(0,c.selectPicPreviewData)(e),loading:(0,c.selectPicPreviewLoading)(e)}}))(f)},"./src/module/modelMirror/components/picPreview/components/PicturePreview.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/divider/index.js")),o=_(a("./node_modules/antd/es/button/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=_(a("./node_modules/babel-runtime/helpers/inherits.js")),l=_(a("./node_modules/antd/es/breadcrumb/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/breadcrumb/style/index.js");var u=a("./node_modules/react/index.js"),c=(_(u),_(a("./node_modules/lodash/lodash.js"))),p=a("./src/components/index.js"),f=_(a("./node_modules/react-image/es/index.js")),m=(_(a("./node_modules/prop-types/index.js")),a("./node_modules/polished/dist/polished.es.js")),h=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/utils/constants.js"),v=_(a("./src/styles/images/nopic.png"));function _(e){return e&&e.__esModule?e:{default:e}}var y=l.default.Item,b=h.default.div.withConfig({displayName:"PicturePreview__PreviewOverlay",componentId:"sc-1vid2bc-0"})(["position:absolute;z-index:9999;background:rgba(0,0,0,0.6);top:0px;bottom:0px;left:0px;right:0px;border-radius:4px;.preview-box{margin:30px;border-radius:4px;height:480px;background:#fff;.ant-divider,.ant-divider-vertical{margin:0;}.preview-button{display:flex;justify-content:flex-end;button{margin-right:30px;}}}"]),x=(0,h.default)(l.default).withConfig({displayName:"PicturePreview__BreadcrumbDiv",componentId:"sc-1vid2bc-1"})(["padding:20px 0 10px 20px !important;.crumb-nav{color:rgba(0,0,0,0.65);&:hover{color:#1890ff;cursor:pointer;}}.crumb-nav-disable{color:#a2b0c4;}"]),C=h.default.div.withConfig({displayName:"PicturePreview__PictureList",componentId:"sc-1vid2bc-2"})([".dtqPjT{position:relative;}padding:20px;display:flex;flex-direction:row;align-items:flex-start;height:350px;overflow:auto;flex-wrap:wrap;"]),j=h.default.div.withConfig({displayName:"PicturePreview__PictureFolder",componentId:"sc-1vid2bc-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;margin-right:35px;margin-bottom:35px;.file-box{display:flex;flex-direction:column;justify-content:center;align-items:center;width:120px;height:90px;transition:all 0.2s ease-in-out;}.file-info{margin-top:15px;display:flext;justify-content:center;span{width:120px;text-align:center;",";}}.folder-text{position:relative;padding-top:12px;width:64px;.folder-text-rect1{position:absolute;top:0px;left:0px;width:60px;height:25px;z-index:3;background:#f4f4f4;border-radius:4px 4px 0 0;}.folder-text-rect2{width:68px;height:60px;background:#f4f4f4;border-radius:0 2px 4px 4px;}}.folder-icon{position:relative;padding-top:12px;width:64px;.folder-icon-rect1{position:absolute;top:0px;left:0px;width:32px;height:25px;z-index:3;background:#ffcf5c;border-radius:4px 4px 0 0;}.folder-icon-line{position:absolute;z-index:2;top:5px;left:30px;width:25px;background:#f9b552;height:1.5px;border-radius:2px 2px 0 0;}.folder-icon-rect2{width:68px;height:45px;background:#ffcf5c;border-radius:0 2px 4px 4px;}}&:hover{cursor:pointer;.file-box{transform:scale(1.4);&.pictrue{background:rgba(162,176,196,0.5);border:1px solid #ccd5e0;transform:scale(1.2);}}.file-info{color:#1890ff;}}"],(0,m.ellipsis)()),S=(0,h.default)(j).withConfig({displayName:"PicturePreview__Picture",componentId:"sc-1vid2bc-4"})([".pictrue{background:rgba(162,176,196,0.1);border:1px solid #ccd5e0;width:120px;height:90px;padding:3px;overflow:hidden;a,img{max-width:112px;max-height:75px;}}"]),I=h.default.div.withConfig({displayName:"PicturePreview__SummaryInfo",componentId:"sc-1vid2bc-5"})(["padding:10px 20px;strong{color:#1890ff;}"]),T=(0,s.default)(n.default,{}),w=(0,s.default)(p.LoadingIndicator,{position:"relative"}),E=(0,s.default)(p.NoData,{position:"relative"}),D=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-icon"},void 0,(0,s.default)("div",{className:"folder-icon-rect1"}),(0,s.default)("div",{className:"folder-icon-line"}),(0,s.default)("div",{className:"folder-icon-rect2"}))),M=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-text"},void 0,(0,s.default)("div",{className:"folder-text-rect1"}),(0,s.default)("div",{className:"folder-text-rect2"}))),k=(0,s.default)(n.default,{}),P=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.openDir=function(e){var t=[].concat(n.state.crumbs,[e]);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.openTextDir=function(e){n.props.openTextDir(e,n.props.ftpId)},n.changePath=function(e){var t=n.state.crumbs.slice(0,e+1);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.state={crumbs:[]},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data;return(0,s.default)(b,{className:"animated fadeIn",onClick:this.props.onClosePreview},void 0,(0,s.default)("div",{className:"preview-box",onClick:function(e){return e.stopPropagation()}},void 0,(0,s.default)(x,{},void 0,(0,s.default)(y,{className:"crumb-nav",onClick:function(){return e.changePath(-1,"\u6839\u76ee\u5f55")}},void 0,"\u6839\u76ee\u5f55"),this.state.crumbs.map((function(t,a){return(0,s.default)(y,{className:a<e.state.crumbs.length-1?"crumb-nav":"crumb-nav-disable",onClick:function(){return e.changePath(a,t)}},t,t)}))),T,(0,s.default)(C,{},void 0,this.props.loading&&w,!this.props.loading&&c.default.isEmpty(t.items)&&E,!this.props.loading&&t.items&&c.default.isArray(t.items)&&c.default.orderBy(t.items,["isDir"],["desc"]).map((function(t,a){return!0===t.isDir?(0,s.default)(j,{onClick:function(){return e.openDir(t.fileName)}},a,D,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName))):1===e.props.fileType?(0,s.default)(S,{},a,(0,s.default)("div",{className:"file-box pictrue"},void 0,(0,s.default)("a",{href:(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),target:"_blank",rel:"noreferrer noopener"},void 0,c.default.startsWith(t.thumbnail,"data:image")?(0,s.default)("img",{"data-imgurl":(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),src:t.thumbnail}):(0,s.default)(f.default,{"data-imgurl":(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),src:[(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.thumbnail),v.default],alt:t.fileName}))),(0,s.default)("div",{className:"file-info"},void 0,(0,s.default)("span",{},void 0,t.fileName))):(0,s.default)(j,{onClick:function(){return e.openTextDir(t.ftpFilePath)}},a,M,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName)))}))),k,(0,s.default)(I,{},void 0,"\u603b\u5171",(0,s.default)("strong",{},void 0,c.default.isNumber(t.subDirCount)?t.subDirCount:"--"),"\u4e2a\u76ee\u5f55\uff0c",(0,s.default)("strong",{},void 0,c.default.isNumber(t.imageCount)?t.imageCount:"--"),1===this.props.fileType?"\u5f20\u56fe\u7247":"\u4e2a\u6587\u4ef6","\uff0c \u9ed8\u8ba4\u9884\u89c8\u5c55\u793a\u6700\u591a 10 \u4e2a\u76ee\u5f55\uff0c\u76ee\u5f55\u4e0b\u6700\u591a\u5c55\u793a 10"," ",1===this.props.fileType?"\u5f20\u56fe\u7247":"\u4e2a\u6587\u4ef6"),(0,s.default)("div",{className:"preview-button"},void 0,(0,s.default)(o.default,{onClick:this.props.onClosePreview},void 0,"\u5173\u95ed\u9884\u89c8"))))},t}(u.PureComponent);P.defaultProps={onChangePath:c.default.noop,onClosePreview:c.default.noop,data:{}},t.default=P},"./src/module/modelMirror/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelMirror/baseMirror/listPage/ModelMirrorListPage.jsx");Object.defineProperty(t,"BaseMirrorListPage",{enumerable:!0,get:function(){return h(n).default}});var o=a("./src/module/modelMirror/baseMirror/ImportMirror.jsx");Object.defineProperty(t,"ImportMirrorPage",{enumerable:!0,get:function(){return h(o).default}});var s=a("./src/module/modelMirror/baseMirror/versionPage/VersionListPage.jsx");Object.defineProperty(t,"BaseVersionListPage",{enumerable:!0,get:function(){return h(s).default}});var r=a("./src/module/modelMirror/serviceMirror/listPage/ServiceMirrorListPage.jsx");Object.defineProperty(t,"ServiceMirrorListPage",{enumerable:!0,get:function(){return h(r).default}});var i=a("./src/module/modelMirror/serviceMirror/createPage/service/CreateServiceMirror.jsx");Object.defineProperty(t,"CreateServiceMirrorPage",{enumerable:!0,get:function(){return h(i).default}});var d=a("./src/module/modelMirror/serviceMirrorVersion/listPage/ServiceMirrorVersionListPage.jsx");Object.defineProperty(t,"ServiceMirrorVersionListPage",{enumerable:!0,get:function(){return h(d).default}});var l=a("./src/module/modelMirror/serviceMirrorVersion/detailPage/ServiceVersionDetailPage.jsx");Object.defineProperty(t,"ServiceVersionDetailPage",{enumerable:!0,get:function(){return h(l).default}});var u=a("./src/module/modelMirror/serviceMirror/editPage/ServiceMirrorEditPage.jsx");Object.defineProperty(t,"ServiceMirrorEditPage",{enumerable:!0,get:function(){return h(u).default}});var c=a("./src/module/modelMirror/serviceMirror/createPage/train/CreateTrainMirror.jsx");Object.defineProperty(t,"CreateTrainMirrorPage",{enumerable:!0,get:function(){return h(c).default}});var p=a("./src/module/modelMirror/serviceMirrorVersion/editPage/ApiInterfaceEdit.jsx");Object.defineProperty(t,"ServiceMirrorVersionEditPage",{enumerable:!0,get:function(){return h(p).default}});var f=a("./src/module/modelMirror/baseMirror/definePage/CreateDefineConfig.jsx");Object.defineProperty(t,"CreateDefineConfig",{enumerable:!0,get:function(){return h(f).default}});var m=a("./src/module/modelMirror/baseMirror/detailPage/BaseMirrorDetailPage.jsx");function h(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"BaseMirrorDetailPage",{enumerable:!0,get:function(){return h(m).default}})},"./src/module/modelMirror/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.MIRROR_CONTENT_MAP=t.SOURCE_MAP=t.PURPOSE=t.INTERFACE_DEFINITION=t.SOURCE=t.STATUS=t.RUN_ENGINE=t.REASONING_MODE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({ONLINE:[1,"\u5728\u7ebf\u63a8\u7406"],OFFLINE:[2,"\u79bb\u7ebf\u63a8\u7406"]}),i=(0,s.default)({WIZARD:[1,"\u5411\u5bfc\u5f0f"],CODE:[2,"\u7f16\u7801\u5f0f"]}),d=(0,s.default)({CPU:[1,"CPU"],GPU:[2,"GPU"],Spark:[3,"Spark"]}),l=(0,s.default)({basic:[1,"\u57fa\u7840"],train:[2,"\u8bad\u7ec3"],reasoning:[3,"\u63a8\u7406"]}),u=(0,s.default)({INIT:[1,"\u9884\u7f6e"],IMPORT:[2,"\u5bfc\u5165"],ONLINEBUILD:[3,"\u81ea\u5b9a\u4e49"]}),c=(0,s.default)({ONLINE_REASONING:["OnPredict","\u5728\u7ebf\u63a8\u7406\u63a5\u53e3"],OFFLINE_REASONING:["OffPredict","\u79bb\u7ebf\u63a8\u7406\u63a5\u53e3"]}),p=(0,s.default)({MODEL:["MODEL","\u6a21\u578b\u6587\u4ef6"],CODE:["CODE","\u670d\u52a1\u4ee3\u7801"],IMPORT:["IMPORT","\u955c\u50cf\u5bfc\u5165"],ONLINEBUILD:["ONLINEBUILD","\u81ea\u5b9a\u4e49\u955c\u50cf"],INIT:["INIT","\u5185\u7f6e"]}),f=(0,s.default)({MODEL:["MODEL","\u6a21\u578b\u6587\u4ef6"],CODE:["CODE","\u670d\u52a1\u4ee3\u7801"],INTERFACE:["INTERFACE","\u63a5\u53e3\u6587\u4ef6"],PACKAGE:["PACKAGE","\u7b97\u6cd5\u5305"],COMPUTING:["COMPUTING","\u8fd0\u7b97\u5e73\u53f0"],DRIVER:["DRIVER","\u9a71\u52a8"]});t.REASONING_MODE=r,t.RUN_ENGINE=d,t.STATUS=l,t.SOURCE=u,t.INTERFACE_DEFINITION=c,t.PURPOSE=i,t.SOURCE_MAP=p,t.MIRROR_CONTENT_MAP=f},"./src/module/modelMirror/serviceMirror/createPage/service/CreateServiceMirror.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/babel-runtime/helpers/jsx.js")),s=S(a("./node_modules/antd/es/message/index.js")),r=S(a("./node_modules/babel-runtime/helpers/extends.js")),i=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=S(a("./node_modules/babel-runtime/helpers/inherits.js")),u=S(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=S(a("./node_modules/react/index.js")),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");S(a("./node_modules/prop-types/index.js"));var f=a("./src/routes/routeHelper.jsx"),m=a("./src/redux/services/modelMirror.js"),h=S(a("./src/module/devCenter/components/IoSchema/IoSchemaPage.jsx")),g=a("./src/module/modelMirror/serviceMirror/createPage/style.js"),v=S(a("./src/module/modelMirror/serviceMirror/createPage/service/MirrorBaseInfo.jsx")),y=S(a("./src/module/modelMirror/serviceMirror/createPage/service/StartParamsConfig.jsx")),b=a("./src/utils/history.js"),x=S(b),C=a("./src/module/modelMirror/util.js"),j=a("./src/module/modelBase/modelEnums.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=u.default.confirm,T=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){(0,m.getMirrorVersionInfo)(n.versionId).then((function(e){var t=e.data||{},a=!1,o=(0,C.parseBasicInfo)(t);"CODE"!==t.versionSourceType&&"IMPORT"!==t.versionSourceType||(a=!0),n.setState({moduleData:o,isCustomApi:a})}))},n.cancel=function(){I({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){x.default.goBack()}})},n.submit=function(){var e=!0,t=n,a=n.state.moduleData;a=_.omit(a,["imageFile","yamlFile","versionEngine"]),Object.keys(n.validateFuncs).map((function(t){var o=n.validateFuncs[t];if(_.isFunction(o)){var s=o.call();a=(0,r.default)({},a,s.moduleData),e&&(e=s.validate)}})),e&&u.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e,n){a.envVars=(0,C.getEnvVars)(a.envVars),a.apiSchema=(0,C.getApiSchemas)(a.apiSchema),"import"===t.actionType&&(a.sourceType="IMPORT"),!a.startCommand&&(a.startCommand=""),a.baseType="REASONING",_.omit(a,["relyData"]),(0,m.createServiceMirror)(a).then((function(t){a.mirrorId=_.get(t.data,"mirrorId"),s.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),e(),setTimeout((function(){return(0,b.navigateTo)(f.modelMirrorUrl.list("service"))}),2e3)})).catch((function(e){console.error(e),n()}))}))},onCancel:function(){}})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.handleStructureTypeChange=function(e){var t=n.state.isCustomApi;t="CODE"===e||"import"===n.actionType,n.setState({isCustomApi:t})},n.handleMirrorTypeChange=function(e){n.setState({mirrorType:e})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.handleApplicationChange=function(e,t){n.setState({applicationId:e,disabledApplication:t})},n.handleApiInterfacesChange=function(e){n.setState({avaInterface:e})},n.handleModelTypeChange=function(e){n.setState({modelDeployType:e})},n.handleApiSchemaChange=function(e){var t=(0,r.default)({},n.state.moduleData);t.apiSchema=e,n.setState({moduleData:t})},n.modelId=_.get(a.match.params,"modelId"),n.mirrorId=_.get(a.match.params,"mirrorId"),n.versionId=_.get(a.match.params,"versionId"),n.actionType=_.get(a.match.params,"action"),n.applicationId=_.get(a,"location.state.applicationId",null),n.hasBoundApplication=_.get(a,"location.state.hasBoundApplication",!1),n.buildType=_.get(a,"location.state.buildType"),n.state={modelBases:[],modelVersions:[],isCustomApi:"import"===n.actionType||"CODE"===n.buildType,moduleData:{modelId:n.modelId,packageId:n.modelId?n.versionId:"",mirrorId:n.mirrorId,businessType:n.applicationId,mirrorType:"ONLINE",baseType:"REASONING",envVars:[{name:"",value:"",index:(new Date).getTime()}],apiSchema:[],mirrorPort:5e3,sourceType:"import"===n.actionType?"IMPORT":n.buildType||"MODEL"},submitLoading:!1,mirrorType:"ONLINE",applicationId:n.applicationId,disabledApplication:Boolean(n.applicationId),avaInterface:[],modelDeployType:j.DEPLOY_TYPE.NORMAL},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){"edit"===this.actionType&&this.versionId&&this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.moduleData,s=t.isCustomApi,r=t.avaInterface,i=t.modelDeployType,d=_.omit(a,["mirrorId","mirrorShowName","mirrorType","mirrorDesc","versionDesc","businessType"]),l=a.apiSchema;return(0,o.default)(g.CreateServiceMirrorDom,{},void 0,(0,o.default)(u.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,this.state.modalTxt)),(0,o.default)(v.default,{actionType:this.actionType,moduleData:a,mirrorId:this.mirrorId,onMirrorTypeChange:this.handleMirrorTypeChange,setValidateFunc:this.setValidateFunc,applicationId:this.state.applicationId,onApplicationChange:this.handleApplicationChange,hasBoundApplication:Boolean(this.hasBoundApplication),disabledApplication:this.state.disabledApplication||Boolean(this.modelId),viewType:this.actionType}),(0,o.default)(y.default,{actionType:this.actionType,modelId:this.modelId,packageId:this.versionId,mirrorType:this.state.mirrorType,startParamsConfig:d,viewType:this.actionType,setValidateFunc:this.setValidateFunc,applicationId:this.state.applicationId,onStructureTypeChange:this.handleStructureTypeChange,onApplicationChange:this.handleApplicationChange,onApiInterfacesChange:this.handleApiInterfacesChange,onModelDeployTypeChange:this.handleModelTypeChange,onApiSchemaChange:this.handleApiSchemaChange}),(0,o.default)(h.default,{mirrorType:this.state.mirrorType,isCustomApi:s,schemas:l,avaInterface:r,modelDeployType:i,setValidateFunc:this.setValidateFunc}),(0,o.default)("div",{className:"model-buttons"},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.submit()},type:"primary",loading:this.state.confirmLoading,style:{marginLeft:16,borderRadius:4}},void 0,"\u4fdd \u5b58")))},t}(c.default.PureComponent);t.default=p.Form.create()(T)},"./src/module/modelMirror/serviceMirror/createPage/service/MirrorBaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/tooltip/index.js")),o=I(a("./node_modules/antd/es/auto-complete/index.js")),s=I(a("./node_modules/antd/es/row/index.js")),r=I(a("./node_modules/babel-runtime/helpers/jsx.js")),i=I(a("./node_modules/babel-runtime/helpers/extends.js")),d=I(a("./node_modules/antd/es/message/index.js")),l=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=I(a("./node_modules/babel-runtime/helpers/inherits.js")),p=I(a("./node_modules/antd/es/input/index.js")),f=I(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=I(a("./node_modules/react/index.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=a("./src/components/index.js"),y=(I(a("./node_modules/prop-types/index.js")),a("./src/redux/services/modelMirror.js")),b=a("./src/module/modelService/modelEnums.js"),x=I(a("./src/redux/services/sysManager/projectManage.js")),C=a("./src/utils/commonUtil.js"),j=I(a("./src/module/modelMirror/baseMirror/definePage/component/RelyInlayMirror.jsx")),S=a("./src/module/modelMirror/serviceMirror/createPage/service/styled.jsx");function I(e){return e&&e.__esModule?e:{default:e}}b.REASONING_MODE.getCodeAndDescList();var T=g.Form.Item,w=f.default.Option,E=p.default.TextArea,D={marginTop:"16px"},M={width:"100%",minWidth:"600px"},k=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.setPackageValidateFunc=function(e,t){n.fileFuncs[e]=t},n.fetchApplications=function(){x.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsList:e.data})})).catch((function(e){d.default.error(e.message)}))},n.fetchServiceMirrorList=function(){n.setState({mirrorListLoading:!0});var e={isPage:"N",baseType:"REASONING",businessType:n.props.hasBoundApplication?n.props.applicationId:""};(0,y.getModelMirrorList)({paramjson:e}).then((function(e){var t=e.data;n.setState({mirrorList:t,mirrorListLoading:!1});var a=(0,i.default)({},n.state.mirrorInfo),o=_.find(t,{mirrorShowName:a.mirrorShowName});if(_.get(o,"mirrorId")&&n.setMirrorInfo(_.get(o,"mirrorId")),n.props.hasBoundApplication){var s=_.get(e,"data[0].mirrorId","");a.mirrorId=s,n.setState({mirrorInfo:a}),n.props.form.setFieldsValue({mirrorId:s})}})).catch((function(){return n.setState({mirrorListLoading:!1})}))},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=(0,i.default)({},n.state.mirrorInfo);Object.keys(n.fileFuncs).map((function(a){var o=n.fileFuncs[a];if(_.isFunction(o)){var s=o.call();e&&(e=s.validate),e&&"relyInlayMirror"===a&&(t.engine=s.moduleData.engine,t.language=s.moduleData.language,t.frame=s.moduleData.languageVersion)}}));var a=_.find(n.state.mirrorList,{mirrorShowName:t.mirrorShowName});return a&&!t.mirrorId&&(t.mirrorId=_.get(a,"mirrorId")),{validate:e,moduleData:t}},n.handleChangeMirrorInfo=function(e,t,a){if("mirrorType"===e&&n.props.onMirrorTypeChange(t),"businessType"===e&&t){n.props.onApplicationChange&&n.props.onApplicationChange(t);var o=(0,C.createModuleNameByApply)(a.props.label,"inferenceMirror",!0);n.handleMirrorNameChange(o,!0)}n.props.form.setFieldsValue({felid:t}),n.setState((function(a){var n=(0,i.default)({},a.mirrorInfo);return n[e]=t,{mirrorInfo:n}}))},n.handleMirrorNameChange=function(e){var t=_.find(n.state.mirrorList,{mirrorShowName:e});t?n.setMirrorInfo(t.mirrorId):n.setState((function(t){var a=(0,i.default)({},t.mirrorInfo);return a.mirrorId="",a.mirrorShowName=e,{currentVersionName:"v1",mirrorInfo:a}}))},n.setMirrorInfo=function(e){e?(0,y.getModelMirrorInfo)(e).then((function(t){var a=(0,i.default)({},n.state.mirrorInfo),o=_.get(t.data,"mirrorDesc",""),s=_.get(t.data,"mirrorShowName",""),r=_.get(t.data,"versionName",""),d=_.get(t.data,"businessType","");a.mirrorId=e,a.mirrorShowName=s,a.mirrorDesc=o,a.businessType=d;var l=Number(r.replace("v","")),u="v"+(isNaN(l)?1:l+1);n.props.onApplicationChange&&n.props.onApplicationChange(d),n.setState({currentVersionName:u,mirrorInfo:a}),n.props.form.setFieldsValue({mirrorDesc:o,businessType:d})})):n.setState({currentVersionName:"v1"})},n.state={serviceTypeOptions:[],mirrorList:[],applicationsList:[],labelsLoading:!1,mirrorInfo:a.moduleData},n.checkNameRef=m.default.createRef(),n.fileFuncs={};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("mirrorBaseInfo",n.validateFun),n}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){var t=this;if(_.isEqual(e.moduleData,this.props.moduleData)||(this.setState({mirrorInfo:this.props.moduleData}),this.props.form.setFieldsValue(this.props.moduleData)),this.props.applicationId!==e.applicationId){if(Array.isArray(this.state.applicationsList)&&this.state.applicationsList.length>0&&this.props.applicationId&&this.props.applicationId!==this.state.mirrorInfo.applicationId&&!this.state.mirrorInfo.mirrorShowName&&"edit"!==this.props.actionType){var a=_.find(this.state.applicationsList,{projectApplicationId:this.props.applicationId}),n=_.get(a,"applicationName"),o=(0,C.createModuleNameByApply)(n,"inferenceMirror",!0);this.handleMirrorNameChange(o,!0)}this.setState((function(e){var a=(0,i.default)({},e.mirrorInfo);return a.businessType=t.props.applicationId,{mirrorInfo:a}})),this.props.form.setFieldsValue({businessType:this.props.applicationId})}},t.prototype.componentDidMount=function(){this.fetchServiceMirrorList(),this.fetchApplications(),this.setMirrorInfo(this.props.mirrorId)},t.prototype.render=function(){var e=this,t=this.state,a=t.mirrorList,i=(t.versionLoading,t.mirrorInfo),d=this.props.form.getFieldDecorator;return(0,r.default)(S.ModelBaseInfoDom,{},void 0,(0,r.default)(v.ModelConfigPanel,{title:"\u9009\u62e9\u65b0\u5efa\u65b9\u5f0f",style:{width:"100%"}},void 0,(0,r.default)(g.Form,{layout:"inline",labelAlign:"right"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(T,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,d("businessType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:i.businessType||void 0})((0,r.default)(f.default,{disabled:Boolean(this.props.applicationId&&this.props.disabledApplication||"edit"===this.props.actionType),placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e",optionFilterProp:"children",onChange:function(t,a){return e.handleChangeMirrorInfo("businessType",t,a)},style:{width:"200px"}},void 0,this.state.applicationsList.map((function(e){return(0,r.default)(w,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)})))))),(0,r.default)(s.default,{style:{marginTop:16}},void 0,(0,r.default)(T,{label:"\u955c\u50cf\u540d\u79f0"},void 0,d("mirrorShowName",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u670d\u52a1\u955c\u50cf"},{max:30,message:"\u955c\u50cf\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:i.mirrorShowName})((0,r.default)(o.default,{disabled:"edit"===this.props.actionType,dropdownStyle:{width:200},style:{width:200},placeholder:"\u8bf7\u65b0\u589e\u6216\u9009\u62e9\u955c\u50cf",onChange:function(t){return e.handleMirrorNameChange(t)},filterOption:function(e,t){return t.props.children&&t.props.children.toLowerCase().indexOf(e?e.toLowerCase():"")>=0}},void 0,Array.isArray(a)&&a.map((function(e,t){return(0,r.default)(w,{value:e.mirrorShowName},t,e.mirrorShowName)})))),"edit"===this.props.actionType?(0,r.default)(n.default,{placement:"topLeft",title:"\u53d1\u751f\u9519\u8bef\u7684\u955c\u50cf\u7248\u672c\uff0c\u7f16\u8f91\u65f6\u4f1a\u4ee5\u5f53\u524d\u7248\u672c\u4e3a\u57fa\u7840\uff0c\u884d\u751f\u4e00\u4e2a\u65b0\u7248\u672c\u3002",arrowPointAtCenter:!0},void 0,(0,r.default)(h.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})):(0,r.default)(n.default,{placement:"topLeft",title:"\u9009\u62e9\u5df2\u6709\u955c\u50cf\u5219\u4e3a\u66f4\u65b0\u4e00\u4e2a\u955c\u50cf\u7248\u672c\uff0c\u5426\u5219\u4e3a\u65b0\u5efa\u4e00\u4e2a\u7248\u672c\u3002",arrowPointAtCenter:!0},void 0,(0,r.default)(h.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"}))),(0,r.default)(T,{label:"\u7248\u672c\u4fe1\u606f",style:{marginLeft:40}},void 0,(0,r.default)("span",{className:"test"},void 0,this.state.currentVersionName))),(0,r.default)(s.default,{style:D},void 0,(0,r.default)(T,{label:"\u955c\u50cf\u63cf\u8ff0"},void 0,d("mirrorDesc",{initialValue:i.mirrorDesc})((0,r.default)(E,{autoSize:{minRows:3,maxRows:5},style:M,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.handleChangeMirrorInfo("mirrorDesc",t.target.value)}})))),!1,(0,r.default)(s.default,{style:D},void 0,(0,r.default)(T,{label:"\u7248\u672c\u63cf\u8ff0"},void 0,d("versionDesc",{initialValue:i.versionDesc})((0,r.default)(E,{autoSize:{minRows:3,maxRows:5},style:M,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.handleChangeMirrorInfo("versionDesc",t.target.value)}})))),("import"===this.props.actionType||"IMPORT"===i.sourceType&&"edit"===this.props.actionType)&&(0,r.default)(s.default,{style:D},void 0,(0,r.default)(j.default,{data:i.relyData,hideSelectMirror:!0,viewType:"import"===this.props.actionType?"create":this.props.actionType,setRelyInlayMirrorFunc:this.setPackageValidateFunc})))))},t}(m.default.PureComponent);t.default=g.Form.create()(k)},"./src/module/modelMirror/serviceMirror/createPage/service/ModeVersionSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/divider/index.js")),o=S(a("./node_modules/antd/es/row/index.js")),s=S(a("./node_modules/babel-runtime/helpers/jsx.js")),r=S(a("./node_modules/babel-runtime/helpers/extends.js")),i=S(a("./node_modules/babel-runtime/regenerator/index.js")),d=S(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),l=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=S(a("./node_modules/babel-runtime/helpers/inherits.js")),p=S(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=S(a("./node_modules/react/index.js")),m=S(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");S(a("./node_modules/prop-types/index.js"));var v=a("./node_modules/react-router-dom/esm/react-router-dom.js"),_=S(a("./src/redux/services/modelBase.js")),y=a("./src/routes/routeHelper.jsx"),b=a("./src/utils/commonUtil.js"),x=a("./src/module/modelBase/modelEnums.js"),C=a("./src/module/modelGuide/modelEnums.js"),j=a("./src/module/modelMirror/util.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=g.Form.Item,T=p.default.Option,w=(0,s.default)(h.PlusOutlined,{}),E=function(e){function t(a){var n=this;(0,l.default)(this,t);var o=(0,u.default)(this,e.call(this,a));o.validateFun=function(){var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=o.state.moduleData,a=m.default.find(o.state.codePackages,{packageId:t.packageId});return t.modelVersionId=m.default.get(a,"modelVid"),t.mirrorVersionId=m.default.get(a,"mirrorId"),t.baseId=m.default.get(a,"mirrorId"),{validate:e,moduleData:t}},o.updateFormData=function(e,t){o.setState((function(a){var n=a.moduleData;return n[e]=t,{moduleData:n}}),(function(){o.props.form.setFieldsValue(o.state.moduleData)}))},o.fetchData=function(){if(o.fetchModelBases(),o.props.modelId){o.handleModelIdChange(o.props.modelId,"build"===o.props.actionType?"":"fetchData"),o.props.form.setFieldsValue({modelId:o.props.modelId,packageId:o.props.packageId});var e=["create","publish","import","build"].includes(o.props.actionType);o.handleParamsChange("packageId",o.props.packageId,e)}},o.fetchModelBases=function(){o.setState({modelLoading:!0}),_.default.getModelBaseList({repoId:"default",sortType:"CREATE_AT.DESC",busiType:o.props.applicationId||""}).then((function(e){o.setState({modelBases:e.data,modelLoading:!1}),o.props.modelId&&o.changeModelUpdateApplication(o.props.modelId,e.data,!0)})).catch((function(e){console.error(e),o.setState({modelLoading:!1})}))},o.fetchVersionsByModelId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props.modelId,t=arguments[1],a=arguments[2];if(e){o.setState({versionLoading:!0});var n=o.props.reasonType+"_REASONING";_.default.getModelPackages(e,{predictType:n,status:x.PACKAGES_STATUS.CREATED}).then((function(n){var s=n.data,r=e!==o.props.modelId||t?"":o.props.packageId;r?o.updateFormData("packageId",r):(r=m.default.get(s,"[0].packageId"),o.updateFormData("packageId",r,!0)),"fetchData"!==a&&o.handleModelVersionChange(r,s),o.setState({codePackages:s,versionLoading:!1})})).catch((function(e){console.error(e),o.setState({codePackages:[],versionLoading:!1})}))}else o.setState({codePackages:[]})},o.handleModelVersionChange=function(){var e=(0,d.default)(i.default.mark((function e(t){var a,s,r,d,l,u,c,p,f,h,g,v,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.state.codePackages;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=4;break}return o.props.onApiInterfacesChange&&o.props.onApiInterfacesChange([]),o.props.onModelDeployTypeChange&&o.props.onModelDeployTypeChange(x.DEPLOY_TYPE.NORMAL),e.abrupt("return");case 4:for(a=x.DEPLOY_TYPE.NORMAL,s=x.PACKAGE_USE_TYPE.ONLINE_REASONING,r="",d=0;d<y.length;d++)t===y[d].packageId&&(o.props.setModelVersionDockerfile({mirrorId:y[d].mirrorId,modelVersionId:y[d].modelVid,packageId:t,modelId:o.props.modelId,baseMirrorVersionId:y[d].mirrorId}),r=y[d].modelVid,a=y[d].modelDeployType,s=y[d].predictType);return e.next=10,_.default.getPackageSchema(t);case 10:if(l=e.sent,u=m.default.get(l,"data.schemaJson"),u=(0,b.isJsonString)(u)?JSON.parse(u):[],o.props.onApiInterfacesChange&&o.props.onApiInterfacesChange(u),o.props.onModelDeployTypeChange&&o.props.onModelDeployTypeChange(a),a!==x.DEPLOY_TYPE.NORMAL&&(c=u.map((function(e){return{apiName:e.operationName,apiUrl:e.originUrl,operation:e.operation,requestSchema:e.requestSchema,responseSchema:e.responseSchema}})),o.props.onApiSchemaChange&&o.props.onApiSchemaChange(c)),![x.PACKAGE_USE_TYPE.OFFLINE_REASONING,x.PACKAGE_USE_TYPE.FLOW_REASONING].includes(s)){e.next=25;break}return p=o.state.moduleData.modelId,e.next=20,_.default.getPackageInterfaceFile(p,r,t,s);case 20:f=e.sent,h=m.default.get(f,"data.fileStruct",[]),g=(0,j.getPredictFilePath)(h,C.FILE_TYPE.INTERFACE),v=[x.PACKAGE_USE_TYPE.FLOW_REASONING].includes(s)?"flink run -d -py":"python",g&&o.props.setOfflineMirrorStartCommand&&o.props.setOfflineMirrorStartCommand(v+" .."+g);case 25:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),o.handleModelIdChange=function(e,t){["upgrade"].includes(o.props.actionType)&&!t&&o.props.setParams(e),o.setState((function(e){var t=(0,r.default)({},e.moduleData);return t.packageId="",{moduleData:t}}),(function(){o.props.form.setFieldsValue({packageId:""}),o.handleParamsChange("modelId",e),o.fetchVersionsByModelId(e,"",t),o.changeModelUpdateApplication(e,o.state.modelBases,!1)}))},o.changeModelUpdateApplication=function(e,t,a){var n=m.default.find(t,(function(t){return t.modelId===e})),s=m.default.get(n,"busiType","");s&&o.props.applicationId!==s&&o.props.onApplicationChange(s,a)},o.handleParamsChange=function(e,t,a){"packageId"===e&&a&&o.handleModelVersionChange(t),o.setState((function(a){var n=(0,r.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},o.state={modelBases:[],codePackages:[],moduleData:{},versionLoading:!1,modelLoading:!1},o.fileFuncs={};var s=o.props.setValidateFunc;return m.default.isFunction(s)&&s("ModeVersionSelect",o.validateFun),o}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){e.modelId!==this.props.modelId&&(this.updateFormData("modelId",this.props.modelId),this.fetchVersionsByModelId()),e.packageId!==this.props.packageId&&this.updateFormData("packageId",this.props.packageId),e.applicationId!==this.props.applicationId&&this.fetchModelBases(),e.reasonType!==this.props.reasonType&&this.fetchVersionsByModelId(this.props.modelId,!0)},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.moduleData,i=a.codePackages,d=a.modelBases,l=a.modelLoading,u=a.versionLoading,c={width:150},f={padding:"4px 8px 8px",cursor:"pointer"};return(0,s.default)(o.default,{style:{marginTop:6}},void 0,(0,s.default)(I,{label:"\u6a21\u578b\u540d\u79f0",className:"sm-label"},void 0,t("modelId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6a21\u578b"}],initialValue:l?void 0:r.modelId})((0,s.default)(p.default,{showSearch:!0,disabled:this.props.disabled,placeholder:"\u8bf7\u9009\u62e9\u6a21\u578b",onChange:function(t){return e.handleModelIdChange(t)},style:c,loading:l,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},dropdownRender:function(t){return(0,s.default)("div",{},void 0,t,(0,s.default)(n.default,{style:{margin:"4px 0"}}),(0,s.default)("div",{style:f,onMouseDown:function(e){return e.preventDefault()}},void 0,(0,s.default)(v.Link,{to:{pathname:y.modelBaseUrl.createModelBaseModel("default"),state:{applicationId:e.props.applicationId}},target:"_blank"},void 0,w," \u65b0\u589e\u6a21\u578b")))}},void 0,Array.isArray(d)&&d.map((function(e){return(0,s.default)(T,{value:e.modelId},e.modelId,e.modelName)}))))),(0,s.default)(I,{label:"\u7248\u672c",className:"sm-label",style:{marginLeft:40}},void 0,t("packageId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],initialValue:u?void 0:r.packageId})((0,s.default)(p.default,{disabled:this.props.disabled,showSearch:!0,optionFilterProp:"children",filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:u,onChange:function(t){return e.handleParamsChange("packageId",t,!0)},style:c},void 0,Array.isArray(i)&&i.map((function(e){return(0,s.default)(T,{value:e.packageId},e.packageId,e.packageName)}))))))},t}(f.default.PureComponent);E.defaultProps={},t.default=g.Form.create()(E)},"./src/module/modelMirror/serviceMirror/createPage/service/StartParamsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=R(a("./node_modules/antd/es/spin/index.js")),o=R(a("./node_modules/antd/es/input-number/index.js")),s=R(a("./node_modules/antd/es/tooltip/index.js")),r=R(a("./node_modules/antd/es/upload/index.js")),i=R(a("./node_modules/antd/es/button/index.js")),d=R(a("./node_modules/antd/es/row/index.js")),l=R(a("./node_modules/babel-runtime/helpers/jsx.js")),u=R(a("./node_modules/babel-runtime/regenerator/index.js")),c=R(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),p=R(a("./node_modules/babel-runtime/helpers/extends.js")),f=R(a("./node_modules/antd/es/message/index.js")),m=R(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),h=R(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),g=R(a("./node_modules/babel-runtime/helpers/inherits.js")),v=R(a("./node_modules/antd/es/input/index.js")),y=R(a("./node_modules/antd/es/select/index.js")),b=R(a("./node_modules/antd/es/radio/index.js")),x="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelMirror\\serviceMirror\\createPage\\service\\StartParamsConfig.jsx";a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var C=R(a("./node_modules/react/index.js")),j=a("./node_modules/@ant-design/compatible/es/index.js"),S=a("./node_modules/@ant-design/icons/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var I=a("./src/components/index.js"),T=(R(a("./node_modules/prop-types/index.js")),a("./src/redux/services/modelMirror.js")),w=R(a("./src/module/modelMirror/components/EnvVariables.jsx")),E=a("./src/utils/publicPath.js"),D=a("./src/utils/authPermit.js"),M=a("./src/utils/constants.js"),k=a("./src/module/modelMirror/util.js"),P=a("./src/module/modelMirror/serviceMirror/createPage/service/styled.jsx"),L=R(a("./src/module/modelMirror/serviceMirror/createPage/service/ModeVersionSelect.jsx")),N=a("./src/utils/dockerFileUtil.js"),A=R(a("./src/redux/services/sysManager/ftpBasesManager.js"));function R(e){return e&&e.__esModule?e:{default:e}}var F=j.Form.Item,O=b.default.Group,V=y.default.Option,U=v.default.TextArea,B={marginTop:16},G={width:"100%"},z={width:"100%",minWidth:"600px"},q=(0,l.default)(b.default,{value:"ftp"},void 0,"FTP\u5730\u5740"),K=(0,l.default)(b.default,{value:"upload"},void 0,"\u672c\u5730\u4e0a\u4f20"),H=(0,l.default)(d.default,{},void 0,"dockerfile\u6587\u4ef6\uff08\u53ef\u9009\uff09"),Y=(0,l.default)(i.default,{},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"),W=function(e){function t(a){var n=this;(0,m.default)(this,t);var o=(0,h.default)(this,e.call(this,a));o.updateSetDockerFile=function(e){o.setState({dockerFilesLoading:!0}),(0,N.updateSetDockerFileSort)(e,{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:"logpath"}).then((function(e){o.dockerFileSort=e,o.setState({dockerFilesLoading:!1})}))},o.setModuleValidateFunc=function(e,t){o.fileFuncs[e]=t},o.fetchData=function(){o.fetchFtpData()},o.fetchFtpData=function(){(0,T.getFtpDropDown)().then((function(e){e&&o.setState({ftpDatas:e.data})})).catch((function(e){f.default.error(_.get(e,"message","ftp\u8def\u5f84\u67e5\u8be2\u5931\u8d25"))}))},o.validateFun=function(){var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=o.state,a=t.startParamsConfig,n=t.imageFileUploadType;if(Object.keys(o.fileFuncs).map((function(t){var n=o.fileFuncs[t];if(_.isFunction(n)){var s=n.call();e&&(e=s.validate),a=(0,p.default)({},a,s.moduleData)}})),"ftp"===n){var s=(0,k.getFilePathAndFileName)(a.imageFtpFileName);a.imageFtpFilePath=s.resourceFilePath,a.imageFtpFileName=s.resourceFileName,a.imageFileId="",a.imageFileName=""}else a.imageFtpId="",a.imageFtpFilePath="",a.imageFtpFileName="";return{validate:e,moduleData:(0,p.default)({},a)}},o.handelChangeUploadType=function(e){o.setState({imageFileUploadType:e.target.value})},o.handleParamsChange=function(e,t,a){o.setState((function(n){var s=(0,p.default)({},n.startParamsConfig);if(a?s=_.omit(s,[e]):s[e]=t,"imageFtpId"===e){var r=_.find(o.state.ftpDatas,(function(e){return e.id===t}))||{};o.setState({imageFtpPath:r.storagePath})}return{startParamsConfig:s}}))},o.onFileChange=function(e,t){var a,n=[].concat(t.fileList);if(n=(n=n.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),o.setState(((a={})[e+"List"]=n,a)),"uploading"===t.file.status&&f.default.success(t.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===t.file.status){if(void 0!==t.file.response.data&&""!==t.file.response.data){var s=_.get(t.file.response,"data","");o.handleParamsChange(e+"Id",s),o.handleParamsChange(e+"Name",t.file.name)}}else"error"===t.file.status?f.default.error(t.file.name+" \u4e0a\u4f20\u51fa\u9519!"):"removed"===t.file.status&&(o.handleParamsChange(e+"Id",null,!0),o.handleParamsChange(e+"Name",null,!0),f.default.error(t.file.name+" \u4e0a\u4f20\u51fa\u9519!"))},o.setStartParams=function(e,t,a){if(t){var n={key:"",value:t,type:{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:"logpath"}[e]};o.getDockerfileContent(n)}o.handleParamsChange(e,t,a)},o.handleEnvsChange=function(){var e=(0,c.default)(u.default.mark((function e(t,a,s,r){var i;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i="minus"!==a?t[s]:r).name.trim()&&i.value.trim()&&"add"!==a&&(i.key=i.name?i.name:"",i.type="env",o.getDockerfileContent(i,s,a,t));case 2:case"end":return e.stop()}}),e,n)})));return function(t,a,n,o){return e.apply(this,arguments)}}(),o.getDockerfileContent=function(e,t,a,n){o.setState({dockerFilesLoading:!0});var s=void 0;(0,T.getDockerfileContent)({paramjson:e}).then((function(r){if("00000"===r.code){var i=r.data;if(i){i=i?i.replace(/\\n/g,"\n"):"",s=(0,N.editDockerFileByAuto)(o.dockerFileSort,i,t,a,n,e.type),o.dockerFileSort=s.dockerFileSort;var d=(0,N.transitionDockerFileSort)(o.dockerFileSort);o.handleParamsChange("dockerFile",d),o.setState({dockerFile:d,dockerFilesLoading:!1})}else o.setState({dockerFilesLoading:!1})}else(r.code="99999")&&(f.default.error(r.message),o.setState({dockerFilesLoading:!1}));"env"===e.type&&o.handleParamsChange("envVars",s.array)})).catch((function(e){o.setState({dockerFilesLoading:!1}),f.default.error(e.message)}))},o.validateMirrorPort=function(e,t,a){t&&(!/^[0-9]\d*$/.test(t)||t<1||t>65534)&&a("\u8bf7\u8f93\u51651-65534\u4e4b\u95f4\u7684\u6b63\u6574\u6570"),a()},o.setDockerFile=function(e){o.dockerFileSort=(0,N.editDockerFileByHand)(o.dockerFileSort,e);var t=(0,N.transitionDockerFileSort)(o.dockerFileSort);o.setState({dockerFile:t}),o.handleParamsChange("dockerFile",t)},o.setModelVersionDockerfile=function(e){if(e){var t={key:"",value:e,type:"model"};o.getDockerfileContent(t)}},o.handleFtpValidate=function(e,t,a){if(""!==_.trim(t)&&""!==o.state.startParamsConfig.imageFtpId){for(var n=[],s=0;t&&s<t.split("/").length;s++)t.split("/")[s]&&n.push(t.split("/")[s]);var r="",i=o.state.imageFtpPath+t;n.length>0&&-1!==n[n.length-1].indexOf(".")&&(r=n[n.length-1]),r&&(i=i.replace(r,"")),new Promise((function(e){A.default.checkStorageInfo({storageId:o.state.startParamsConfig.imageFtpId,storageFilePath:i,storageFileName:r}).then((function(){e(),a()})).catch((function(e){a(e.message)}))}))}else a()},o.state={ftpDatas:[],startParamsConfig:a.startParamsConfig,imageFtpPath:"",imageFileUploadType:"ftp",imageFileList:[],dockerFileList:[],dockerFile:a.startParamsConfig.dockerFile?a.startParamsConfig.dockerFile:"EXPOSE 5000",dockerFilesLoading:!1},o.fileFuncs={};var s=o.props.setValidateFunc;return _.isFunction(s)&&s("StartParamsConfig",o.validateFun),o.dockerFileSort=a.startParamsConfig.dockerFile?[]:[{type:"port",data:"EXPOSE 5000",sort:321}],o}return(0,g.default)(t,e),t.prototype.componentDidUpdate=function(e){var t=this;if(!_.isEqual(e.startParamsConfig,this.props.startParamsConfig)){var a=this.props.startParamsConfig,n=a.versionEngine;a=_.omit(a,["versionEngine"]);var o=(0,k.parseFiles)(a),s=o.imageFileUploadType,r=o.imageFileList,i=o.imageFtpFileName;a.imageFtpFileName=i,this.props.form.setFieldsValue(a),this.updateSetDockerFile(a),this.setState({startParamsConfig:a,dockerFile:a.dockerFile,mirrorType:n,imageFileUploadType:s,imageFileList:r},(function(){a.imageFtpId&&t.handleParamsChange("imageFtpId",a.imageFtpId)}))}},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this,a=this.state,u=a.ftpDatas,c=a.imageFileUploadType,f=a.startParamsConfig,m=a.imageFileList,h=a.dockerFileList,g=a.dockerFile,_=a.dockerFilesLoading,b=this.props.form.getFieldDecorator,T={name:"file",action:(0,E.urlFormat)("/resources/action/upload",M.ServicePath.SIC_SERVICE),headers:{Authorization:(0,D.getToken)()}},k=(0,p.default)({},T,{onChange:function(e){t.onFileChange("imageFile",e)}}),N=(0,p.default)({},T,{onChange:function(e){t.onFileChange("dockerFile",e)}});return(0,l.default)(P.StartParamsConfigDom,{},void 0,"IMPORT"!==f.sourceType?(0,l.default)(I.ModelConfigPanel,{title:"\u9009\u62e9\u8981\u6784\u5efa\u7684\u5185\u5bb9",style:G},void 0,(0,l.default)(j.Form,{labelAlign:"right"},void 0,(0,l.default)(L.default,{actionType:this.props.actionType,modelId:f.modelId,packageId:f.packageId,reasonType:this.props.mirrorType,disabled:Boolean(this.props.modelId)&&"edit"!==this.props.actionType,applicationId:this.props.applicationId,setValidateFunc:this.setModuleValidateFunc,onApplicationChange:this.props.onApplicationChange,onApiInterfacesChange:this.props.onApiInterfacesChange,setModelVersionDockerfile:this.setModelVersionDockerfile,onModelDeployTypeChange:this.props.onModelDeployTypeChange,onApiSchemaChange:this.props.onApiSchemaChange,setOfflineMirrorStartCommand:function(t){return e.setStartParams("startCommand",t)}}))):(0,l.default)(I.ModelConfigPanel,{title:"\u4e0a\u4f20\u670d\u52a1\u955c\u50cf",style:G},void 0,(0,l.default)(j.Form,{layout:"inline",labelAlign:"right"},void 0,(0,l.default)(O,{name:"uploadType",value:c,onChange:function(t){return e.handelChangeUploadType(t)}},void 0,(0,l.default)(d.default,{style:B},void 0,q,(0,l.default)(F,{},void 0,b("imageFileFtpId",{rules:[{required:"ftp"===c,message:"\u8bf7\u9009\u62e9FTP"}],initialValue:f.imageFtpId})((0,l.default)(y.default,{disabled:"ftp"!==c,style:{width:150},onChange:function(t){return e.handleParamsChange("imageFtpId",t)},placeholder:"\u8bf7\u9009\u62e9FTP"},void 0,u.map((function(e,t){return(0,l.default)(V,{value:e.id},t,e.storageName)}))))),(0,l.default)(F,{},void 0,b("imageFtpFileName",{rules:[{required:"ftp"===c,message:"\u8bf7\u8f93\u5165\u8def\u5f84\u53ca\u6587\u4ef6\u540d"},{pattern:/^\/*(?:[^/]+\/)*[^/]+$/,message:"\u8def\u5f84\u6587\u4ef6\u540d\u683c\u5f0f\u4e0d\u6b63\u786e"},{validator:this.handleFtpValidate}],initialValue:f.imageFtpFileName,validateTrigger:"onBlur"})((0,l.default)(v.default,{allowClear:!0,disabled:"ftp"!==c,addonBefore:this.state.imageFtpPath,onBlur:function(t){return e.handleParamsChange("imageFtpFileName",t.target.value)},placeholder:"\u8def\u5f84\u53ca\u6587\u4ef6\u540d"}))),(0,l.default)(F,{style:{display:"none"}},void 0,(0,l.default)(i.default,{type:"ghost",onClick:function(){e.handelPreviewPic(f.versionSourceFtpId,e.state.ftpPath+e.state.versionSourcePath)}},void 0,"\u9884\u89c8"))),(0,l.default)(d.default,{style:B},void 0,K,(0,l.default)(F,{},void 0,b("imageUpload",{rules:[{required:"upload"===c,message:"\u8bf7\u4e0a\u4f20\u955c\u50cf\u6587\u4ef6"}]})(C.default.createElement(r.default,(0,p.default)({fileList:m},k,{__source:{fileName:x,lineNumber:456}}),(0,l.default)(i.default,{disabled:"upload"!==c},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6")))),(0,l.default)(s.default,{placement:"right",title:"\u9002\u7528\u4e0d\u8d85\u8fc71GB\u7684\u6587\u4ef6"},void 0,(0,l.default)(S.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px",marginTop:12},className:"icon"})))))),(0,l.default)(I.ModelConfigPanel,{title:"\u914d\u7f6e\u542f\u52a8\u53c2\u6570",style:G},void 0,(0,l.default)(j.Form,{layout:"inline",labelAlign:"right"},void 0,(0,l.default)(d.default,{style:B},void 0,(0,l.default)(F,{label:"\u542f\u52a8\u547d\u4ee4",className:"sm-label"},void 0,b("startCommand",{initialValue:f.startCommand})((0,l.default)(U,{autoSize:{minRows:3,maxRows:5},style:z,placeholder:"\u8bf7\u8f93\u5165\u542f\u52a8\u547d\u4ee4",onBlur:function(t){return e.setStartParams("startCommand",t.target.value)}}))),(0,l.default)(F,{help:""},void 0,(0,l.default)(s.default,{title:"\u591a\u547d\u4ee4\u8bf7\u7528\u201c;\u201d\u9694\u79bb"},void 0,(0,l.default)(S.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),(0,l.default)(d.default,{style:B},void 0,(0,l.default)(F,{label:"\u670d\u52a1\u7aef\u53e3",className:"sm-label"},void 0,b("mirrorPort",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u7aef\u53e3"},{validator:this.validateMirrorPort}],initialValue:f.mirrorPort})((0,l.default)(o.default,{placeholder:"\u670d\u52a1\u7aef\u53e3",onBlur:function(t){return e.setStartParams("mirrorPort",t.target.value)}})))),(0,l.default)(d.default,{style:B},void 0,(0,l.default)(F,{label:"\u5de5\u4f5c\u76ee\u5f55",className:"sm-label"},void 0,b("workDir",{rules:[{required:!1,message:"\u8bf7\u8f93\u5165\u5de5\u4f5c\u76ee\u5f55"}],initialValue:f.workDir})((0,l.default)(v.default,{style:{width:200},placeholder:"\u5de5\u4f5c\u76ee\u5f55",onBlur:function(t){return e.setStartParams("workDir",t.target.value)}})))),(0,l.default)(d.default,{style:B},void 0,(0,l.default)(F,{label:"\u65e5\u5fd7\u8def\u5f84",className:"sm-label"},void 0,b("logInnerPath",{rules:[{required:!1,message:"\u8bf7\u8f93\u5165\u65e5\u5fd7\u8def\u5f84"}],initialValue:f.logInnerPath})((0,l.default)(v.default,{style:{width:200},placeholder:"\u65e5\u5fd7\u8def\u5f84",onBlur:function(t){return e.setStartParams("logInnerPath",t.target.value)}})))),(0,l.default)(n.default,{spinning:_,tip:"\u547d\u4ee4\u751f\u6210\u4e2d\u8bf7\u7a0d\u540e...."},void 0,(0,l.default)(w.default,{getFieldDecorator:b,wrapStyle:B,labelText:"\u73af\u5883\u53d8\u91cf",envVariables:f.envVars,onMirrorChange:function(t,a,n,o){e.handleEnvsChange(t,a,n,o)}}),(0,l.default)(I.DockerfileContainer,{dockerFiles:g,setDockerFile:function(t){e.setDockerFile(t)}})),"IMPORT"===f.sourceType&&(0,l.default)(C.default.Fragment,{},void 0,H,(0,l.default)(d.default,{},void 0,(0,l.default)(F,{label:"\u672c\u5730\u4e0a\u4f20"},void 0,C.default.createElement(r.default,(0,p.default)({fileList:h},N,{__source:{fileName:x,lineNumber:561}}),Y)))))))},t}(C.default.PureComponent);t.default=j.Form.create()(W)},"./src/module/modelMirror/serviceMirror/createPage/service/styled.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.StartParamsConfigDom=t.ModelBaseInfoDom=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.ModelBaseInfoDom=s.default.div.withConfig({displayName:"styled__ModelBaseInfoDom",componentId:"sc-1a9225d-0"})([".ant-row{display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.test{background:url('/styles/images/LOGO.svg');}"]),t.StartParamsConfigDom=s.default.div.withConfig({displayName:"styled__StartParamsConfigDom",componentId:"sc-1a9225d-1"})([".ant-row{display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:0;line-height:40px;width:100px;text-align:right;}.help{margin-left:-6px;width:14px;height:14px;border:1px solid #a2b0c4;display:inline-block;border-radius:50%;text-align:center;line-height:1;cursor:pointer;}.dockerfile-wrapper{padding-left:0px;.ant-legacy-form-item{width:100%;}.ant-legacy-form-item-control-wrapper{width:80%;}.docker-file-container{padding-left:0;}.ant-legacy-form-item-label{width:108px;margin-left:-8px;}.from-div{line-height:22px;}.CodeMirror-code{line-height:18px;}}.mirror-line-second{margin-left:100px !important;}"])},"./src/module/modelMirror/serviceMirror/createPage/style.js":function(e,t,a){"use strict";t.__esModule=!0,t.CreateServiceMirrorDom=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.CreateServiceMirrorDom=s.default.div.withConfig({displayName:"style__CreateServiceMirrorDom",componentId:"sc-1ogf61l-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.sm-label{.ant-legacy-form-item-label{width:40px;}}.ant-legacy-form-item-label{width:100px;}span.ant-radio + *{padding-left:4%;padding-right:8px;}.available__resource{margin-top:-20px;}.ant-divider-horizontal{margin:0px 0 10px;}.sm-label .ant-legacy-form-item-label{width:100px;}.help{margin-left:5px;width:14px;height:14px;border:1px solid #a2b0c4;display:inline-block;border-radius:50%;text-align:center;line-height:1;cursor:pointer;}.span__wrapper{display:flex;margin-right:60px;}.span__label{flex-shrink:0;}.span__item{margin-left:20px;}.model-buttons{text-align:right;line-height:70px;padding-right:50px;}.ant-row{line-height:40px;}"])},"./src/module/modelMirror/serviceMirror/createPage/train/CreateTrainMirror.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/button/index.js")),o=C(a("./node_modules/babel-runtime/helpers/jsx.js")),s=C(a("./node_modules/antd/es/message/index.js")),r=C(a("./node_modules/babel-runtime/helpers/extends.js")),i=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=C(a("./node_modules/babel-runtime/helpers/inherits.js")),u=C(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=C(a("./node_modules/react/index.js")),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");C(a("./node_modules/prop-types/index.js"));var f=a("./src/routes/routeHelper.jsx"),m=a("./src/redux/services/modelMirror.js"),h=a("./src/module/modelMirror/serviceMirror/createPage/style.js"),g=C(a("./src/module/modelMirror/serviceMirror/createPage/train/MirrorBaseInfo.jsx")),v=C(a("./src/module/modelMirror/serviceMirror/createPage/train/StartParamsConfig.jsx")),y=a("./src/utils/history.js"),b=C(y),x=a("./src/module/modelMirror/util.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=u.default.confirm,S=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){(0,m.getMirrorVersionInfo)(n.versionId).then((function(e){var t=e.data||{},a=_.get(e.data,"versionName",""),o=Number(a.replace("v","")),s="v"+(isNaN(o)?1:o+1),r=(0,x.parseTrainBasicInfo)(t);n.setState({moduleData:r,currentVersionName:s})}))},n.cancel=function(){j({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){b.default.goBack()}})},n.submit=function(){var e=!0,t=n,a=n.state.moduleData;a=_.omit(a,["imageFile","yamlFile","versionEngine"]),Object.keys(n.validateFuncs).map((function(t){var o=n.validateFuncs[t];if(_.isFunction(o)){var s=o.call();a=(0,r.default)({},a,s.moduleData),e&&(e=s.validate)}})),e&&u.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e,n){a.envVars=(0,x.getEnvVars)(a.envVars),"import"===t.actionType&&(a.sourceType="IMPORT"),!a.startCommand&&(a.startCommand=""),a.baseType="TRAIN",_.omit(a,["relyData"]),(0,m.createServiceMirror)(a).then((function(t){a.mirrorId=_.get(t.data,"mirrorId"),s.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),e(),setTimeout((function(){return(0,y.navigateTo)(f.modelMirrorUrl.list("train"))}),2e3)})).catch((function(){return n()}))}))},onCancel:function(){}})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.handleMirrorTypeChange=function(e){n.setState({mirrorType:e})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.mirrorId=_.get(a.match.params,"mirrorId"),n.versionId=_.get(a.match.params,"versionId"),n.actionType=_.get(a.match.params,"action"),n.state={modelBases:[],modelVersions:[],moduleData:{baseType:"TRAIN",envVars:[{name:"",value:"",index:(new Date).getTime()}],sourceType:"import"===n.actionType?"IMPORT":"CUSTOM",purpose:"CODE"},submitLoading:!1,mirrorType:"ONLINE"},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){"edit"===this.actionType&&this.versionId&&this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.moduleData,s=t.currentVersionName;return(0,o.default)(h.CreateServiceMirrorDom,{},void 0,(0,o.default)(u.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,this.state.modalTxt)),(0,o.default)(g.default,{mirrorId:this.mirrorId,currentVersionName:s,actionType:this.actionType,moduleData:a,setValidateFunc:this.setValidateFunc}),(0,o.default)(v.default,{actionType:this.actionType,startParamsConfig:_.omit(a,["purpose","engine","versionDesc"]),onStructureTypeChange:this.handleStructureTypeChange,setValidateFunc:this.setValidateFunc}),(0,o.default)("div",{className:"model-buttons"},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.submit()},type:"primary",loading:this.state.confirmLoading,style:{marginLeft:16,borderRadius:4}},void 0,"\u4fdd \u5b58")))},t}(c.default.PureComponent);t.default=p.Form.create()(S)},"./src/module/modelMirror/serviceMirror/createPage/train/MirrorBaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelBaseInfoDom=void 0;var n=S(a("./node_modules/antd/es/tooltip/index.js")),o=S(a("./node_modules/antd/es/auto-complete/index.js")),s=S(a("./node_modules/antd/es/switch/index.js")),r=S(a("./node_modules/antd/es/row/index.js")),i=S(a("./node_modules/babel-runtime/helpers/jsx.js")),d=S(a("./node_modules/babel-runtime/helpers/extends.js")),l=S(a("./node_modules/antd/es/message/index.js")),u=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=S(a("./node_modules/babel-runtime/helpers/inherits.js")),f=S(a("./node_modules/antd/es/input/index.js")),m=S(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var h=S(a("./node_modules/react/index.js")),g=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var y=a("./src/components/index.js"),b=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),x=(S(a("./node_modules/prop-types/index.js")),a("./src/redux/services/modelMirror.js")),C=S(a("./src/module/modelMirror/baseMirror/definePage/component/RelyInlayMirror.jsx")),j=S(a("./src/redux/services/sysManager/projectManage.js"));function S(e){return e&&e.__esModule?e:{default:e}}var I=a("./src/module/modelMirror/modelEnums.js").PURPOSE.getCodeAndDescList(),T=v.Form.Item,w=m.default.Option,E=f.default.TextArea,D=t.ModelBaseInfoDom=b.default.div.withConfig({displayName:"MirrorBaseInfo__ModelBaseInfoDom",componentId:"sc-8sgjwp-0"})([".ant-row{display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}"]),M={marginTop:"16px"},k={width:"100%",minWidth:"600px"},P=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));n.setPackageValidateFunc=function(e,t){n.fileFuncs[e]=t},n.fetApplications=function(){j.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsList:e.data})})).catch((function(e){l.default.error(e.message)}))},n.fetchTrainMirrorList=function(){n.setState({mirrorListLoading:!0});(0,x.getModelMirrorList)({paramjson:{isPage:"N",baseType:"TRAIN",sourceTypes:"IMPORT,CUSTOM"}}).then((function(e){n.setState({mirrorList:e.data,mirrorListLoading:!1})})).catch((function(){return n.setState({mirrorListLoading:!1})}))},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=(0,d.default)({},n.state.mirrorInfo);return Object.keys(n.fileFuncs).map((function(a){var o=n.fileFuncs[a];if(_.isFunction(o)){var s=o.call();e&&(e=s.validate),e&&"relyInlayMirror"===a&&(t.engine=s.moduleData.engine,t.language=s.moduleData.language,t.frame=s.moduleData.languageVersion)}})),t.mirrorId&&!t.mirrorShowName&&(t.mirrorShowName=_.get(_.find(n.state.mirrorList,{mirrorId:n.props.mirrorId}),"mirrorShowName")),t.owner=t.owner?"public":"private",{validate:e,moduleData:t}},n.handleChangeMirrorInfo=function(e,t){var a=(0,d.default)({},n.state.mirrorInfo);a[e]=t,n.setState({mirrorInfo:a})},n.handleMirrorOptionChange=function(e){n.setState({mirrorOperation:e.target.value})},n.handleMirrorNameChange=function(e){var t=(0,d.default)({},n.state.mirrorInfo),a=_.find(n.state.mirrorList,{mirrorShowName:e});a?n.setMirrorInfo(a.mirrorId):(t.mirrorId="",t.mirrorShowName=e,(0,x.checkMirrorNameRepeat)({mirrorId:"",mirrorShowName:e}).then((function(e){e.data?n.setState({mirrorShowNameRepeat:!0}):n.setState({mirrorShowNameRepeat:!1})})),n.setState({currentVersionName:"v1",mirrorInfo:t}))},n.setMirrorInfo=function(e){e?(0,x.getModelMirrorInfo)(e).then((function(t){var a=(0,d.default)({},n.state.mirrorInfo),o=_.get(t.data,"mirrorDesc",""),s=_.get(t.data,"mirrorShowName",""),r=_.get(t.data,"versionName","");a.mirrorId=e,a.mirrorShowName=s,a.mirrorDesc=o;var i=Number(r.replace("v","")),l="v"+(isNaN(i)?1:i+1);n.props.form.setFieldsValue({mirrorDesc:o}),n.setState({currentVersionName:l,mirrorInfo:a})})):n.setState({currentVersionName:""})},n.handleCheckNameValidate=function(e,t,a){n.state.mirrorShowNameRepeat&&a("\u955c\u50cf\u540d\u79f0\u91cd\u590d"),a()},n.state={serviceTypeOptions:[],mirrorList:[],applicationsList:[],labelsLoading:!1,mirrorOperation:"edit"===a.actionType?"UPDATE_MIRROR":"CREATE_MIRROR",mirrorInfo:a.moduleData,currentVersionName:a.currentVersionName,mirrorShowNameRepeat:!1},n.checkNameRef=h.default.createRef();var o=n.props.setValidateFunc;return n.fileFuncs={},_.isFunction(o)&&o("mirrorBaseInfo",n.validateFun),n}return(0,p.default)(t,e),t.prototype.componentDidUpdate=function(e){_.isEqual(e.moduleData,this.props.moduleData)||(this.setState({mirrorInfo:this.props.moduleData}),this.props.form.setFieldsValue(this.props.moduleData)),this.props.currentVersionName!==e.currentVersionName&&this.setState({currentVersionName:this.props.currentVersionName})},t.prototype.componentDidMount=function(){this.fetchTrainMirrorList(),this.fetApplications()},t.prototype.render=function(){var e=this,t=this.state,a=t.mirrorList,d=t.mirrorInfo,l=t.mirrorOperation,u=this.props.form.getFieldDecorator;return(0,i.default)(D,{},void 0,(0,i.default)(y.ModelConfigPanel,{title:"\u9009\u62e9\u65b0\u5efa\u65b9\u5f0f",style:{width:"100%"}},void 0,(0,i.default)(v.Form,{layout:"inline",labelAlign:"right"},void 0,(0,i.default)(r.default,{style:{marginTop:16}},void 0,(0,i.default)(T,{label:"\u662f\u5426\u516c\u5171\u955c\u50cf"},void 0,u("owner",{valuePropName:"checked",initialValue:"public"===d.owner})((0,i.default)(s.default,{checkedChildren:"\u662f",unCheckedChildren:"\u5426",onChange:function(t){return e.handleChangeMirrorInfo("owner",t)}})))),(0,i.default)(r.default,{style:{marginTop:16}},void 0,(0,i.default)(T,{label:"\u955c\u50cf\u540d\u79f0"},void 0,u("mirrorId",{rules:[{required:!0,message:"\u8bf7\u65b0\u589e\u6216\u9009\u62e9\u955c\u50cf"},{validator:this.handleCheckNameValidate}],initialValue:d.mirrorId})((0,i.default)(o.default,{disabled:"edit"===this.props.actionType,dropdownStyle:{width:200},style:{width:200},placeholder:"\u8bf7\u65b0\u589e\u6216\u9009\u62e9\u955c\u50cf",onChange:this.handleMirrorNameChange,filterOption:function(e,t){return t.props.children&&t.props.children.toLowerCase().indexOf(e?e.toLowerCase():"")>=0}},void 0,Array.isArray(a)&&a.map((function(e,t){return(0,i.default)(w,{value:e.mirrorShowName},t,e.mirrorShowName)})))),"edit"===this.props.actionType?(0,i.default)(n.default,{placement:"topLeft",title:"\u53d1\u751f\u9519\u8bef\u7684\u955c\u50cf\u7248\u672c\uff0c\u7f16\u8f91\u65f6\u4f1a\u4ee5\u5f53\u524d\u7248\u672c\u4e3a\u57fa\u7840\uff0c\u884d\u751f\u4e00\u4e2a\u65b0\u7248\u672c\u3002",arrowPointAtCenter:!0},void 0,(0,i.default)(g.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})):(0,i.default)(n.default,{placement:"topLeft",title:"\u9009\u62e9\u5df2\u6709\u955c\u50cf\u5219\u4e3a\u66f4\u65b0\u4e00\u4e2a\u955c\u50cf\u7248\u672c\uff0c\u5426\u5219\u4e3a\u65b0\u5efa\u4e00\u4e2a\u7248\u672c\u3002",arrowPointAtCenter:!0},void 0,(0,i.default)(g.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"}))),(0,i.default)(T,{label:"\u7248\u672c\u4fe1\u606f",style:{marginLeft:40}},void 0,(0,i.default)("span",{},void 0,this.state.currentVersionName))),"CREATE_MIRROR"===l&&(0,i.default)(r.default,{style:M},void 0,(0,i.default)(T,{label:"\u955c\u50cf\u63cf\u8ff0"},void 0,u("mirrorDesc",{initialValue:d.mirrorDesc})((0,i.default)(E,{autoSize:{minRows:3,maxRows:5},style:k,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.handleChangeMirrorInfo("mirrorDesc",t.target.value)}})))),(0,i.default)(r.default,{style:M},void 0,(0,i.default)(T,{label:"\u7528\u9014"},void 0,u("purpose",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7528\u9014"}],initialValue:d.purpose})((0,i.default)(m.default,{style:{width:"200px"},onChange:function(t){return e.handleChangeMirrorInfo("purpose",t)},placeholder:"\u7528\u9014",className:"sortType-cond"},void 0,I.map((function(e){return(0,i.default)(w,{value:e.code},e.code,e.desc,"\u5efa\u6a21")})))))),(0,i.default)(r.default,{style:M},void 0,(0,i.default)(T,{label:"\u7248\u672c\u63cf\u8ff0"},void 0,u("versionDesc",{initialValue:d.versionDesc})((0,i.default)(E,{autoSize:{minRows:3,maxRows:5},style:k,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.handleChangeMirrorInfo("versionDesc",t.target.value)}})))),(0,i.default)(r.default,{style:M},void 0,(0,i.default)(C.default,{data:d.relyData,hideSelectMirror:!0,viewType:"import"===this.props.actionType?"create":this.props.actionType,setRelyInlayMirrorFunc:this.setPackageValidateFunc,from:"trainMirror",onChange:function(t){e.onChange(t)}})))))},t}(h.default.PureComponent);P.defaultProps={mirrorInfo:{}},t.default=v.Form.create()(P)},"./src/module/modelMirror/serviceMirror/createPage/train/StartParamsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.StartParamsConfigDom=void 0;var n=A(a("./node_modules/antd/es/spin/index.js")),o=A(a("./node_modules/antd/es/input-number/index.js")),s=A(a("./node_modules/antd/es/tooltip/index.js")),r=A(a("./node_modules/antd/es/upload/index.js")),i=A(a("./node_modules/antd/es/button/index.js")),d=A(a("./node_modules/antd/es/row/index.js")),l=A(a("./node_modules/babel-runtime/helpers/jsx.js")),u=A(a("./node_modules/babel-runtime/regenerator/index.js")),c=A(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),p=A(a("./node_modules/babel-runtime/helpers/extends.js")),f=A(a("./node_modules/antd/es/message/index.js")),m=A(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),h=A(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),g=A(a("./node_modules/babel-runtime/helpers/inherits.js")),v=A(a("./node_modules/antd/es/input/index.js")),y=A(a("./node_modules/antd/es/select/index.js")),b=A(a("./node_modules/antd/es/radio/index.js")),x="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelMirror\\serviceMirror\\createPage\\train\\StartParamsConfig.jsx";a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var C=A(a("./node_modules/react/index.js")),j=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var S=a("./node_modules/@ant-design/icons/es/index.js"),I=a("./src/components/index.js"),T=A(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),w=(A(a("./node_modules/prop-types/index.js")),a("./src/redux/services/modelMirror.js")),E=A(a("./src/module/modelMirror/components/EnvVariables.jsx")),D=a("./src/utils/publicPath.js"),M=a("./src/utils/authPermit.js"),k=a("./src/utils/constants.js"),P=a("./src/module/modelMirror/util.js"),L=a("./src/utils/dockerFileUtil.js"),N=A(a("./src/redux/services/sysManager/ftpBasesManager.js"));function A(e){return e&&e.__esModule?e:{default:e}}var R=j.Form.Item,F=b.default.Group,O=y.default.Option,V=v.default.TextArea,U=t.StartParamsConfigDom=T.default.div.withConfig({displayName:"StartParamsConfig__StartParamsConfigDom",componentId:"sc-1irl18w-0"})([".ant-row{display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:0;line-height:40px;width:100px;text-align:right;}.help{margin-left:-6px;width:14px;height:14px;border:1px solid #a2b0c4;display:inline-block;border-radius:50%;text-align:center;line-height:1;cursor:pointer;}"]),B={marginTop:16},G={width:"100%"},z={width:"100%",minWidth:"600px"},q=(0,l.default)(b.default,{value:"ftp"},void 0,"FTP\u5730\u5740"),K=(0,l.default)(b.default,{value:"upload"},void 0,"\u672c\u5730\u4e0a\u4f20"),H=(0,l.default)(S.QuestionCircleOutlined,{className:"icon"}),Y=(0,l.default)(d.default,{},void 0,"dockerFile\u4e0a\u4f20\uff08\u53ef\u9009\uff09"),W=(0,l.default)(i.default,{},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"),J=function(e){function t(a){var n=this;(0,m.default)(this,t);var o=(0,h.default)(this,e.call(this,a));o.updateSetDockerFile=function(e){o.setState({dockerFilesLoading:!0}),(0,L.updateSetDockerFileSort)(e,{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:"logpath"}).then((function(e){o.dockerFileSort=e,o.setState({dockerFilesLoading:!1})}))},o.fetchFtpData=function(){(0,w.getFtpDropDown)().then((function(e){e&&o.setState({ftpDatas:e.data})})).catch((function(e){f.default.error(_.get(e,"message","ftp\u8def\u5f84\u67e5\u8be2\u5931\u8d25"))}))},o.validateFun=function(){var e=!0;o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!1)}));var t=o.state,a=t.startParamsConfig;if("ftp"===t.imageFileUploadType){var n=(0,P.getFilePathAndFileName)(a.imageFtpFileName);a.imageFtpFilePath=n.resourceFilePath,a.imageFtpFileName=n.resourceFileName,a.imageFileId="",a.imageFileName=""}else a.imageFtpId="",a.imageFtpFilePath="",a.imageFtpFileName="";return{validate:e,moduleData:(0,p.default)({},a)}},o.handleEnvsChange=function(){var e=(0,c.default)(u.default.mark((function e(t,a,s,r){var i;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i="minus"!==a?t[s]:r).name.trim()&&i.value.trim()&&"add"!==a&&(i.key=i.name?i.name:"",i.type="env",o.getDockerfileContent(i,s,a,t));case 2:case"end":return e.stop()}}),e,n)})));return function(t,a,n,o){return e.apply(this,arguments)}}(),o.getDockerfileContent=function(e,t,a,n){o.setState({dockerFilesLoading:!0});var s=void 0;(0,w.getDockerfileContent)({paramjson:e}).then((function(r){if("00000"===r.code){var i=r.data;if(i){i=i?i.replace(/\\n/g,"\n"):"",s=(0,L.editDockerFileByAuto)(o.dockerFileSort,i,t,a,n,e.type),o.dockerFileSort=s.dockerFileSort;var d=(0,L.transitionDockerFileSort)(o.dockerFileSort);o.handleParamsChange("dockerFile",d),o.setState({dockerFile:d,dockerFilesLoading:!1})}else o.setState({dockerFilesLoading:!1})}else(r.code="99999")&&(f.default.error(r.message),o.setState({dockerFilesLoading:!1}));"env"===e.type&&o.handleParamsChange("envVars",s.array)})).catch((function(e){o.setState({dockerFilesLoading:!1}),f.default.error(e.message)}))},o.setStartParams=function(e,t,a){if(t){var n={key:"",value:t,type:{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:""}[e]};o.getDockerfileContent(n)}o.handleParamsChange(e,t,a)},o.handelChangeUploadType=function(e){o.setState({imageFileUploadType:e.target.value})},o.handleParamsChange=function(e,t,a){o.setState((function(n){var s=(0,p.default)({},n.startParamsConfig);if(a?s=_.omit(s,[e]):s[e]=t,"imageFtpId"===e){var r=_.find(o.state.ftpDatas,(function(e){return e.id===t}))||{};o.setState({imageFtpPath:r.storagePath})}return{startParamsConfig:s}}))},o.onFileChange=function(e,t){var a,n=[].concat(t.fileList);if(n=(n=n.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),o.setState(((a={})[e+"List"]=n,a)),"uploading"===t.file.status&&f.default.success(t.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===t.file.status){if(void 0!==t.file.response.data&&""!==t.file.response.data){var s=_.get(t.file.response,"data","");o.handleParamsChange(e+"Id",s),o.handleParamsChange(e+"Name",t.file.name)}}else"error"===t.file.status?f.default.error(t.file.name+" \u4e0a\u4f20\u51fa\u9519!"):"removed"===t.file.status&&(o.handleParamsChange(e+"Id",null,!0),o.handleParamsChange(e+"Name",null,!0),f.default.error(t.file.name+" \u4e0a\u4f20\u51fa\u9519!"))},o.setDockerFile=function(e){o.dockerFileSort=(0,L.editDockerFileByHand)(o.dockerFileSort,e);var t=(0,L.transitionDockerFileSort)(o.dockerFileSort);o.setState({dockerFile:t}),o.handleParamsChange("dockerFile",t)},o.handleFtpValidate=function(e,t,a){if(""!==_.trim(t)&&""!==o.state.startParamsConfig.imageFtpId){for(var n=[],s=0;t&&s<t.split("/").length;s++)t.split("/")[s]&&n.push(t.split("/")[s]);var r="",i=o.state.imageFtpPath+t;n.length>0&&-1!==n[n.length-1].indexOf(".")&&(r=n[n.length-1]),r&&(i=i.replace(r,"")),new Promise((function(e){N.default.checkStorageInfo({storageId:o.state.startParamsConfig.imageFtpId,storageFilePath:i,storageFileName:r}).then((function(){e(),a()})).catch((function(e){a(e.message)}))}))}else a()},o.state={labelsLoading:!1,ftpDatas:[],startParamsConfig:a.startParamsConfig,imageFtpPath:"",imageFileUploadType:"ftp",imageFileList:[],dockerFileList:[],dockerFile:"",dockerFilesLoading:!1},o.dockerFileSort=[],o.checkNameRef=C.default.createRef();var s=o.props.setValidateFunc;return _.isFunction(s)&&s("StartParamsConfig",o.validateFun),o}return(0,g.default)(t,e),t.prototype.componentDidUpdate=function(e){var t=this;if(!_.isEqual(e.startParamsConfig,this.props.startParamsConfig)){var a=this.props.startParamsConfig;a=_.omit(a,["versionEngine"]);var n=(0,P.parseFiles)(a),o=n.imageFileUploadType,s=n.imageFileList,r=n.dockerFileList,i=n.imageFtpFileName;a.imageFtpFileName=i,this.props.form.setFieldsValue(a),this.updateSetDockerFile(a),this.setState({startParamsConfig:a,dockerFile:a.dockerFile,imageFileUploadType:o,imageFileList:s,dockerFileList:r},(function(){a.imageFtpId&&t.handleParamsChange("imageFtpId",a.imageFtpId),Array.isArray(s)&&s.length>0&&t.props.form.setFieldsValue({imageUpload:s})}))}},t.prototype.componentDidMount=function(){this.fetchFtpData()},t.prototype.render=function(){var e=this,t=this,a=this.state,u=a.ftpDatas,c=a.imageFileUploadType,f=a.startParamsConfig,m=a.imageFileList,h=a.dockerFileList,g=a.dockerFile,_=a.dockerFilesLoading,b=this.props.form.getFieldDecorator,T={name:"file",action:(0,D.urlFormat)("/resources/action/upload",k.ServicePath.SIC_SERVICE),headers:{Authorization:(0,M.getToken)()}},w=(0,p.default)({},T,{onChange:function(e){t.onFileChange("imageFile",e)}}),P=(0,p.default)({},T,{onChange:function(e){t.onFileChange("dockerFile",e)}});return(0,l.default)(U,{},void 0,(0,l.default)(I.ModelConfigPanel,{title:"\u4e0a\u4f20\u8bad\u7ec3\u955c\u50cf",style:G},void 0,(0,l.default)(j.Form,{layout:"inline",labelAlign:"right"},void 0,(0,l.default)(F,{name:"uploadType",value:c,onChange:function(t){return e.handelChangeUploadType(t)}},void 0,(0,l.default)(d.default,{style:B},void 0,q,(0,l.default)(R,{},void 0,b("imageFileFtpId",{rules:[{required:"ftp"===c,message:"\u8bf7\u9009\u62e9FTP"}],initialValue:f.imageFtpId})((0,l.default)(y.default,{disabled:"ftp"!==c,style:{width:150},onChange:function(t){return e.handleParamsChange("imageFtpId",t)},placeholder:"\u8bf7\u9009\u62e9FTP"},void 0,u.map((function(e,t){return(0,l.default)(O,{value:e.id},t,e.storageName)}))))),(0,l.default)(R,{},void 0,b("imageFtpFileName",{rules:[{required:"ftp"===c,message:"\u8bf7\u8f93\u5165\u8def\u5f84\u53ca\u6587\u4ef6\u540d"},{pattern:/^\/*(?:[^/]+\/)*[^/]+$/,message:"\u8def\u5f84\u6587\u4ef6\u540d\u683c\u5f0f\u4e0d\u6b63\u786e"},{validator:this.handleFtpValidate}],initialValue:f.imageFtpFileName,validateTrigger:"onBlur"})((0,l.default)(v.default,{allowClear:!0,disabled:"ftp"!==c,addonBefore:this.state.imageFtpPath,onBlur:function(t){return e.handleParamsChange("imageFtpFileName",t.target.value)},placeholder:"\u8def\u5f84\u53ca\u6587\u4ef6\u540d"}))),(0,l.default)(R,{style:{display:"none"}},void 0,(0,l.default)(i.default,{type:"ghost",onClick:function(){e.handelPreviewPic(f.versionSourceFtpId,e.state.ftpPath+e.state.versionSourcePath)}},void 0,"\u9884\u89c8"))),(0,l.default)(d.default,{style:B},void 0,K,(0,l.default)(R,{},void 0,b("imageUpload",{rules:[{required:"upload"===c,message:"\u8bf7\u4e0a\u4f20\u955c\u50cf\u6587\u4ef6"}]})(C.default.createElement(r.default,(0,p.default)({fileList:m},w,{__source:{fileName:x,lineNumber:431}}),(0,l.default)(i.default,{disabled:"upload"!==c},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6")))),(0,l.default)(s.default,{placement:"right",title:"\u9002\u7528\u4e0d\u8d85\u8fc71GB\u7684\u6587\u4ef6"},void 0,(0,l.default)("span",{className:"help",style:{marginTop:15}},void 0,H)))))),(0,l.default)(I.ModelConfigPanel,{title:"\u914d\u7f6e\u542f\u52a8\u53c2\u6570",style:G},void 0,(0,l.default)(j.Form,{layout:"inline",labelAlign:"right"},void 0,"MODEL"!==f.sourceType&&(0,l.default)(C.default.Fragment,{},void 0,(0,l.default)(d.default,{style:B},void 0,(0,l.default)(R,{label:"\u542f\u52a8\u547d\u4ee4",className:"sm-label"},void 0,b("startCommand",{rules:[{required:!1}],initialValue:f.startCommand})((0,l.default)(V,{autoSize:{minRows:3,maxRows:5},style:z,placeholder:"\u8bf7\u8f93\u5165\u542f\u52a8\u547d\u4ee4",onBlur:function(t){return e.setStartParams("startCommand",t.target.value)}}))),(0,l.default)(R,{help:""},void 0,(0,l.default)(s.default,{title:"\u591a\u547d\u4ee4\u8bf7\u7528\u201c;\u201d\u9694\u79bb"},void 0,(0,l.default)(S.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),(0,l.default)(d.default,{style:B},void 0,(0,l.default)(R,{label:"\u670d\u52a1\u7aef\u53e3",className:"sm-label"},void 0,b("mirrorPort",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u66b4\u9732\u7aef\u53e3"}],initialValue:f.mirrorPort})((0,l.default)(o.default,{min:1,max:65535,placeholder:"\u670d\u52a1\u7aef\u53e3",onBlur:function(t){return e.setStartParams("mirrorPort",t.target.value)}}))))),(0,l.default)(n.default,{spinning:_,tip:"\u547d\u4ee4\u751f\u6210\u4e2d\u8bf7\u7a0d\u540e...."},void 0,(0,l.default)(E.default,{getFieldDecorator:b,wrapStyle:B,labelText:"\u73af\u5883\u53d8\u91cf",envVariables:f.envVars,onMirrorChange:function(t,a,n,o){e.handleEnvsChange(t,a,n,o)}}),(0,l.default)(I.DockerfileContainer,{dockerFiles:g,setDockerFile:function(t){e.setDockerFile(t)}})),"MODEL"!==f.sourceType&&(0,l.default)(C.default.Fragment,{},void 0,Y,(0,l.default)(R,{label:"\u672c\u5730\u4e0a\u4f20"},void 0,C.default.createElement(r.default,(0,p.default)({fileList:h},P,{__source:{fileName:x,lineNumber:507}}),W))))))},t}(C.default.PureComponent);t.default=j.Form.create()(J)},"./src/module/modelMirror/serviceMirror/editPage/ServiceMirrorEditPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/col/index.js")),o=b(a("./node_modules/antd/es/row/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/antd/es/message/index.js")),i=b(a("./node_modules/babel-runtime/helpers/extends.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=b(a("./node_modules/react/index.js")),f=b(a("./node_modules/dayjs/dayjs.min.js")),m=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=a("./src/components/index.js"),y=a("./src/redux/services/modelMirror.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=g.Form.Item,C=c.default.TextArea,j=m.default.div.withConfig({displayName:"ServiceMirrorEditPage__DetailInfoWrapper",componentId:"sc-1taf912-0"})(["background:#fff;padding:20px;.edit__icon{margin-left:10px;}.display__value{word-break:break-word;}.ant-col-8{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:40%;}"]),S={labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:8}}},I=(0,s.default)(v.LoadingIndicator,{position:"relative"}),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleChangeNameStatus=function(){n.setState((function(e){return{isModifyName:!e.isModifyName}}))},n.handleChangeDescStatus=function(){n.setState((function(e){return{isModifyDesc:!e.isModifyDesc}}))},n.handleOnChange=function(e,t){var a=n.state.mirrorBaseInfo;"mirrorShowName"===e?(a.mirrorShowName=t,n.setState({mirrorBaseInfo:(0,i.default)({},a)})):(a.mirrorDesc=t,n.setState({mirrorBaseInfo:(0,i.default)({},a)}))},n.handleSaveBasicInfo=function(e,t){var a=n;if("mirrorShowName"!==e||""!==t&&null!==t){var o=n.state.mirrorBaseInfo,s={mirrorId:o.mirrorId};"mirrorShowName"===e?(0,y.checkMirrorNameRepeat)({mirrorId:n.mirrorId,mirrorShowName:t}).then((function(e){e.data?r.default.error("\u955c\u50cf\u540d\u79f0\u91cd\u590d"):(o.mirrorShowName=t,s.mirrorShowName=t,a.setState({mirrorBaseInfo:(0,i.default)({},o),isModifyName:!1}),a.saveMirrorInfo(s))})):(o.mirrorDesc=t,s.mirrorDesc=t,n.setState({mirrorBaseInfo:(0,i.default)({},o),isModifyDesc:!1}),n.saveMirrorInfo(s))}else r.default.info("\u8bf7\u586b\u955c\u50cf\u540d\u79f0")},n.saveMirrorInfo=function(e){(0,y.updateModelMirrorInfo)(e).then((function(e){e&&r.default.success("\u4fee\u6539\u6210\u529f\uff01")})).catch((function(e){r.default.error(e.message)}))},n.state={mirrorBaseInfo:{},loading:!0,isModifyName:!1,isModifyDesc:!1},n.mirrorId=_.get(a.match,"params.mirrorId",null),n.entity=_.get(a.match.params,"entity"),n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this;(0,y.getModelMirrorInfo)(this.mirrorId).then((function(t){t&&e.setState({mirrorBaseInfo:t.data||{},loading:!1})})).catch((function(t){e.setState({loading:!1}),r.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.mirrorBaseInfo,r=t.loading,d=t.isModifyName,l=t.isModifyDesc,u=_.get(a,"createTime"),m=_.get(a,"updateTime");return(0,s.default)(j,{},void 0,(0,s.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,r&&I,!r&&p.default.createElement(g.Form,(0,i.default)({},S,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelMirror\\serviceMirror\\editPage\\ServiceMirrorEditPage.jsx",lineNumber:140}}),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(x,{label:"\u955c\u50cf\u540d\u79f0"},void 0,d?(0,s.default)(c.default,{width:150,onChange:function(t){return e.handleOnChange("mirrorShowName",t.target.value)},value:a.mirrorShowName,onBlur:function(t){return e.handleSaveBasicInfo("mirrorShowName",t.target.value)}}):(0,s.default)("div",{style:{display:"flex",width:200},className:"display__value"},void 0,(0,s.default)("div",{},void 0,_.get(a,"mirrorShowName","")),(0,s.default)("div",{},void 0,(0,s.default)(h.EditOutlined,{className:"edit__icon",onClick:this.handleChangeNameStatus}))))),(0,s.default)(n.default,{span:8},void 0,(0,s.default)(x,{label:"\u521b\u5efa\u4eba"},void 0,_.get(a,"createCode")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(x,{label:"\u521b\u5efa\u65f6\u95f4"},void 0,u?(0,f.default)(u).format("YYYY-MM-DD"):"--")),(0,s.default)(n.default,{span:10},void 0,(0,s.default)(x,{label:"\u4fee\u6539\u65f6\u95f4"},void 0,m?(0,f.default)(m).format("YYYY-MM-DD"):"--"))),(0,s.default)(o.default,{},void 0,"service"===this.entity&&(0,s.default)(n.default,{span:8},void 0,(0,s.default)(x,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,_.get(a,"businessTypeName","--")))),(0,s.default)(o.default,{style:{marginLeft:"-2%"}},void 0,(0,s.default)(n.default,{span:24},void 0,(0,s.default)(x,{labelCol:{span:2},wrapperCol:{sm:20},label:"\u955c\u50cf\u63cf\u8ff0"},void 0,l?(0,s.default)(C,{autosize:{minRows:5,maxRows:12},style:{width:850,marginRight:10,min:0,max:200,marginTop:10},value:a.mirrorDesc,onChange:function(t){return e.handleOnChange("desc",t.target.value)},onBlur:function(t){return e.handleSaveBasicInfo("desc",t.target.value)},rows:8}):(0,s.default)("div",{style:{wordBreak:"break-all",wordWrap:"break-word",maxWidth:850}},void 0,_.get(a,"mirrorDesc",""),(0,s.default)(h.EditOutlined,{className:"edit__icon",onClick:this.handleChangeDescStatus}))))))))},t}(p.default.PureComponent);t.default=T},"./src/module/modelMirror/serviceMirror/listPage/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js")),d=p(a("./node_modules/antd/es/input/index.js")),l=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=p(a("./node_modules/react/index.js")),c=(p(a("./node_modules/prop-types/index.js")),a("./src/styles/GlobalStyle.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.Option,m=d.default.Search,h={width:"130px"},g=(0,o.default)(f,{value:""},void 0,"\u5168\u90e8\u5e94\u7528"),v=(0,o.default)(f,{value:"mir_show_name"},void 0,"\u540d\u79f0\u6392\u5e8f"),y=(0,o.default)(f,{value:"update_time"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),b=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("mirrorShowName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("orderBy"),n.changeBusiType=n.changeSelect("businessType"),n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this;return(0,o.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,"service"===this.props.entity&&(0,o.default)(l.default,{showSearch:!0,onChange:this.changeBusiType,style:h,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528",defaultValue:this.props.businessType,className:"sortType-cond",filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,g,this.props.applicationsData.map((function(e){return(0,o.default)(f,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)}))),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(l.default,{id:"sort",name:"sort",onChange:this.changeSortField,style:h,placeholder:"\u6392\u5e8f\u6761\u4ef6",className:"item-cond"},void 0,v,y)),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(m,{allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0\u67e5\u8be2",style:(0,n.default)({},h,{width:"200px"}),onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(u.default.Component);t.default=b},"./src/module/modelMirror/serviceMirror/listPage/ServiceMirrorListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/antd/es/table/index.js")),o=j(a("./node_modules/antd/es/button/index.js")),s=j(a("./node_modules/antd/es/tooltip/index.js")),r=j(a("./node_modules/babel-runtime/helpers/jsx.js")),i=j(a("./node_modules/antd/es/message/index.js")),d=j(a("./node_modules/antd/es/modal/index.js")),l=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=j(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=j(a("./node_modules/react/index.js")),f=j(a("./node_modules/lodash/lodash.js")),m=j(a("./node_modules/dayjs/dayjs.min.js")),h=(j(a("./node_modules/prop-types/index.js")),j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),g=a("./src/components/index.js"),v=j(a("./src/module/modelMirror/serviceMirror/listPage/SearchBar.jsx")),_=a("./src/routes/routeHelper.jsx"),y=a("./src/utils/history.js"),b=a("./src/redux/services/modelMirror.js"),x=a("./src/styles/GlobalStyle.js"),C=j(a("./src/redux/services/sysManager/projectManage.js"));function j(e){return e&&e.__esModule?e:{default:e}}var S=h.default.div.withConfig({displayName:"ServiceMirrorListPage__HeaderButtonWrapper",componentId:"sc-1ny0ute-0"})([".import__btn{margin-right:16px;}"]),I=(0,r.default)(g.LoadingIndicator,{position:"relative"}),T=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.handleDelete=function(e){var t;d.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u955c\u50cf?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t,a){(0,b.deleteModelMirror)(e).then((function(){t(),i.default.success("\u5220\u9664\u6210\u529f"),n.fetchData()})).catch((function(e){a(e)}))}))},t))},n.fetchData=function(){n.setState({listLoading:!0}),(0,b.getModelMirrorList)({paramjson:n.searchCond}).then((function(e){var t=e.data,a=t.content,o=t.totalElements;n.setState({mirrorList:a,totalCount:o,listLoading:!1})})).catch((function(){return n.setState({listLoading:!1})}))},n.changeSearchCond=function(e,t){f.default.trim(t)?n.searchCond[e]=f.default.trim(t):n.searchCond=f.default.omit(n.searchCond,[e]),"businessType"===e&&(n.businessType=""),n.searchCond.pageNo=0,n.setState({currentPage:0}),n.fetchData()},n.onChangePage=function(e,t){n.searchCond.pageNo=parseInt(e)-1,n.searchCond.pageSize=parseInt(t),n.fetchData(),n.setState({currentPage:e})},n.callVisible=function(e){n.setState({modalVisible:!1,viewType:""}),e&&n.fetchData()},n.entity=f.default.get(a.match.params,"entity"),n.state={modalVisible:!1,viewType:"",mirrorList:[],listLoading:!1,currentPage:1,totalCount:0,applicationsData:[]},n.businessType=f.default.get(a,"location.state.applicationId",""),n.searchCond={businessType:n.businessType,isPage:"Y",pageNo:0,pageSize:10,baseType:"train"===n.entity?"TRAIN":"REASONING"},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=this;this.fetchData(),C.default.getApplicationsDropDown().then((function(t){t&&e.setState({applicationsData:t.data})})).catch((function(e){i.default.error(e.message)}))},t.prototype.componentDidUpdate=function(e){f.default.get(e.match.params,"entity")!==f.default.get(this.props.match.params,"entity")&&(this.entity=f.default.get(this.props.match.params,"entity"),this.searchCond={businessType:"",isPage:"Y",pageNo:0,pageSize:10,baseType:"train"===this.entity?"TRAIN":"REASONING"},this.fetchData())},t.prototype.render=function(){var e=this;this.columns=[{title:"\u5e8f\u53f7",width:80,dataIndex:"index",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"train"===this.entity?"\u8bad\u7ec3\u955c\u50cf\u540d\u79f0":"\u670d\u52a1\u955c\u50cf\u540d\u79f0",dataIndex:"mirrorShowName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7248\u672c\u6570\u91cf",width:100,dataIndex:"versionCount",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createCode",width:120,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",width:155,dataIndex:"createTime",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u66f4\u65b0\u65f6\u95f4",width:155,dataIndex:"updateTime",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u64cd\u4f5c",width:160,render:function(t){var a="INIT"===t.sourceType,n=[];return n.push({handleName:"\u67e5\u770b",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:_.modelMirrorUrl.versionDetail(e.entity,t.mirrorId,"process"),handleType:"link"}),a||(n.push({handleName:"\u4fee\u6539",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:_.modelMirrorUrl.edit(e.entity,t.mirrorId),handleType:"link"}),n.push({handleName:"\u5220\u9664",handleAction:function(){e.handleDelete(t.mirrorId)}})),(0,r.default)(g.ListButtons,{buttons:n,maxShowNum:2})}}];var t=this.state,a=t.currentPage,i=t.mirrorList,d=t.totalCount,l=t.listLoading,u={};return(0,r.default)(x.PageWrapper,{},void 0,(0,r.default)(x.PageHeader,{style:"service"===this.entity?u:{}},void 0,(0,r.default)(S,{},void 0,"service"===this.entity&&(0,r.default)(p.default.Fragment,{},void 0,(0,r.default)(o.default,{onClick:function(){(0,y.navigateTo)({pathname:_.modelMirrorUrl.create("build"),state:{applicationId:e.businessType,hasBoundApplication:e.businessType&&i.length>0}})},className:"import__btn",type:"primary"},void 0,"\u6784\u5efa\u670d\u52a1\u955c\u50cf"),(0,r.default)(o.default,{onClick:function(){(0,y.navigateTo)({pathname:_.modelMirrorUrl.create("import"),state:{applicationId:e.businessType,hasBoundApplication:e.businessType&&i.length>0}})},className:"import__btn",type:"primary"},void 0,"\u5bfc\u5165\u670d\u52a1\u955c\u50cf")),"train"===this.entity&&(0,r.default)(p.default.Fragment,{},void 0,(0,r.default)(o.default,{onClick:function(){(0,y.navigateTo)(_.modelMirrorUrl.create("build"))},style:{display:"none"},className:"import__btn",type:"primary"},void 0,"\u81ea\u5b9a\u4e49\u8bad\u7ec3\u955c\u50cf"),(0,r.default)(o.default,{onClick:function(){(0,y.navigateTo)(_.modelMirrorUrl.trainCreate("import"))},type:"primary"},void 0,"\u5bfc\u5165\u8bad\u7ec3\u955c\u50cf"))),(0,r.default)(v.default,{entity:this.entity,applicationsData:this.state.applicationsData,businessType:this.searchCond.businessType,onChange:this.changeSearchCond})),(0,r.default)(x.PageBody,{style:"service"===this.entity?u:{}},void 0,(0,r.default)(x.TableWrapper,{},void 0,l?I:(0,r.default)(p.default.Fragment,{},void 0,(0,r.default)(n.default,{dataSource:i,rowKey:"mirrorId",bordered:!0,pagination:!1,columns:this.columns}),(0,r.default)(g.TabPagination,{currentPage:a,pageSize:10,total:d,onChange:this.onChangePage})))))},t}(p.default.Component);t.default=T},"./src/module/modelMirror/serviceMirrorVersion/detailPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/tooltip/index.js")),o=I(a("./node_modules/babel-runtime/helpers/jsx.js")),s=I(a("./node_modules/antd/es/message/index.js")),r=I(a("./node_modules/antd/es/modal/index.js")),i=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=I(a("./node_modules/babel-runtime/helpers/inherits.js")),u=I(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=I(a("./node_modules/react/index.js")),p=(I(a("./node_modules/prop-types/index.js")),I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=I(a("./node_modules/dayjs/dayjs.min.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./src/components/index.js"),g=a("./src/utils/history.js"),v=a("./src/routes/routeHelper.jsx"),y=a("./src/module/modelMirror/modelEnums.js"),b=a("./src/redux/services/modelMirror.js"),x=a("./src/utils/authPermit.js"),C=I(a("./src/containers/DownLoad/DownloadTool.jsx")),j=I(a("./src/components/button/index.js")),S=I(a("./src/components/auth/AuthWrapper.jsx"));function I(e){return e&&e.__esModule?e:{default:e}}var T=j.default.GhostButton,w=u.default.Option,E=p.default.div.withConfig({displayName:"BaseInfo__DetailBaseInfoWrapper",componentId:"sc-1fwuxqj-0"})(["display:flex;border:1px solid #eee;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:100%;margin-right:0;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;justify-content:space-between;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line1-left{display:flex;}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:12px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-status{display:flex;justify-content:center;align-items:center;margin-right:4px;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{min-width:200px;display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}.item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.base__version-select{width:200px;}"]),D=(0,o.default)("span",{},void 0,"\u5207\u6362\u7248\u672c\uff1a"),M=(0,o.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),k=(0,o.default)(m.LoadingOutlined,{className:"refresh-icon"}),P=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){n.fetchMirrorInfo(),n.fetchVersionsInfo(),n.fetchVersionsData()},n.fetchMirrorInfo=function(){(0,b.getModelMirrorInfo)(n.props.mirrorId).then((function(e){n.setState({mirrorInfo:e.data||{},refreshing:!1})})).catch((function(){n.setState({refreshing:!1})}))},n.fetchVersionsInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.versionId;e&&(n.setState({loading:!0}),(0,b.getMirrorVersionInfo)(e).then((function(e){n.setState({versionInfo:e.data||{},refreshing:!1,loading:!1})})).catch((function(){n.setState({refreshing:!1,loading:!1})})))},n.fetchVersionsData=function(){n.props.mirrorId&&(0,b.getMirrorVersionList)({paramsJson:{mirrorId:n.props.mirrorId}}).then((function(e){var t=e.data||[];t&&0!==t.length||(0,g.navigateTo)(v.modelMirrorUrl.list(n.props.entity));var a=_.get(t,"[0].versionId");n.props.versionId||n.changeMirrorVersion(a),n.setState({versionList:t})}))},n.handleDeleteAction=function(){r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u6b64\u955c\u50cf\u7248\u672c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e,t){(0,b.deleteModelMirrorVersion)(n.props.versionId).then((function(){Array.isArray(n.state.versionList)&&n.state.versionList.length>1?(n.changeMirrorVersion(""),n.fetchVersionsData()):(s.default.success("\u5220\u9664\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,g.navigateTo)(v.modelMirrorUrl.list(n.props.entity))}),2e3)),e()})).catch((function(e){t(e)}))}))}})},n.callVisible=function(e){n.setState({modalVisible:!1}),e&&n.fetchData()},n.setShareLoading=function(e){n.setState({shareLoading:e})},n.handleRefresh=function(){n.setState({refreshing:!0}),n.fetchData()},n.exportOpen=function(e){n.setState({exportVisible:!0}),n.versionInfo=e},n.exportClose=function(){n.setState({exportVisible:!1})},n.setExportLoading=function(e){n.setState({exportLoading:e})},n.changeMirrorVersion=function(e){n.props.onVersionChange(e)},n.state={loading:!1,refreshing:!1,mirrorInfo:{},versionInfo:{},versionList:[]},n.items=[{key:"versionId",name:"ID",type:"text"},{key:"purpose",name:"\u7528\u9014",type:"map",mapObj:y.PURPOSE,hidden:"service"===a.entity},{key:"businessTypeName",name:"\u5f52\u5c5e\u5e94\u7528",type:"text",hidden:"train"===a.entity},{key:"createCode",name:"\u521b\u5efa\u4eba",type:"text"},{key:"createTime",name:"\u521b\u5efa\u65f6\u95f4",type:"date"},{key:"versionSourceType",name:"\u7248\u672c\u6765\u6e90",type:"map",mapObj:y.SOURCE_MAP},{key:"versionEngine",name:"\u8ba1\u7b97\u8d44\u6e90",type:"text"},{key:"versionType",name:"\u63a8\u7406\u7c7b\u578b",type:"map",mapObj:y.REASONING_MODE,hidden:"train"===a.entity},{key:"mirrorRepistoryUrl",name:"\u955c\u50cf\u5730\u5740",type:"text",hidden:"train"===a.entity}],n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.versionId!==e.versionId&&this.fetchVersionsInfo()},t.prototype.render=function(){var e=this,t=this.state,a=t.mirrorInfo,s=t.versionInfo,i=t.refreshing,d=t.loading,l=t.versionList,p=t.exportVisible,y=this.props,b=y.entity,j=y.mirrorId,I=y.versionId,P="INIT"===s.versionSourceType;return(0,o.default)(E,{},void 0,(0,o.default)(r.default,{title:"\u7248\u672c\u5bfc\u51fa",style:{top:20},width:1200,visible:p,onOk:this.exportClose,onCancel:this.exportClose,footer:null,destroyOnClose:!0},void 0,(0,o.default)(C.default,{downTypeArray:["LOCAL","FTP"],saveParams:{resourceId:_.get(this,"versionInfo.versionId",""),mirrorVersionId:_.get(this,"versionInfo.versionId","")},onCancel:this.exportClose,tableParams:{resourceId:_.get(this,"versionInfo.versionId","")},taskType:"export-mirror"})),(0,o.default)("div",{className:"left__content-wrapper"},void 0,(0,o.default)("div",{className:"left__top-wrapper"},void 0,(0,o.default)("div",{className:"left__top-line1"},void 0,(0,o.default)("div",{className:"left__top-line1-left"},void 0,(0,o.default)("div",{className:"base__info-name top__line1-section"},void 0,a.mirrorShowName),(0,o.default)("div",{className:"base__info-status top__line1-section"},void 0,"FAILURE"===s.versionState?(0,o.default)(n.default,{placement:"topLeft",title:s.errorMessage},void 0,(0,o.default)("div",{},void 0,(0,o.default)(h.StateLabel,{source:"serviceMirrorVersion",code:s.versionState}))):(0,o.default)(h.StateLabel,{source:"serviceMirrorVersion",code:s.versionState}))),(0,o.default)("div",{className:"base__version-select"},void 0,D," ",(0,o.default)(u.default,{onChange:this.changeMirrorVersion,style:{width:80},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",value:s.versionId},void 0,Array.isArray(l)&&l.map((function(e){return(0,o.default)(w,{value:e.versionId},e.versionId,e.versionName)}))))),(0,o.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",a.versionDesc," ")),(0,o.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(e){return"map"===e.type?!e.hidden&&(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,e.mapObj&&e.mapObj.getDesc(s[e.key]))):"date"===e.type?(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,s[e.key]?(0,f.default)(s[e.key]).format("YYYY-MM-DD HH:mm:ss"):"--")):!e.hidden&&(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,(0,o.default)(n.default,{placement:"topLeft",title:s[e.key],arrowPointAtCenter:!0},void 0,s[e.key])))})))),(0,o.default)("div",{className:"right__content-wrapper"},void 0,M,(0,o.default)(h.RefreshButton,{onRefresh:this.handleRefresh,style:{display:"none"}}),i&&d?k:(0,o.default)(n.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,o.default)(m.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})),(0,o.default)("div",{className:"right__bottom-wrapper"},void 0,"SUCCESS"===s.versionState&&"service"===b&&"ONLINE"===s.versionType&&(0,o.default)(c.default.Fragment,{},void 0,(0,o.default)(S.default,{permissionId:"MODEL_MIRROR_SERVICE.RELEASE_MODEL_MIRROR_SERVICE_TEST"},void 0,(0,o.default)(T,{action:"PUBLISH",width:"20",txt:"\u53d1\u5e03\u81f3\u6d4b\u8bd5",onClick:function(){return(0,g.navigateTo)({pathname:v.modelServiceUrl.publish("test",j,I),state:{pubEnvType:e.state.profile,applicationId:s.businessType}})},className:"fn-left opt-btn"})),(0,o.default)(S.default,{permissionId:"MODEL_MIRROR_SERVICE.RELEASE_MODEL_MIRROR_SERVICE_PRODUCT"},void 0,(0,o.default)(T,{action:"PUBLISH",width:"20",txt:"\u53d1\u5e03\u81f3\u751f\u4ea7",disabled:!(0,x.hasProductServiceAuth)(),onClick:function(){return(0,g.navigateTo)({pathname:v.modelServiceUrl.publish("product",j,I),state:{pubEnvType:e.state.profile,applicationId:s.businessType}})},className:"fn-left opt-btn"}))),"SUCCESS"===s.versionState&&"train"===b&&(0,o.default)(T,{action:"PUBLISH",width:"20",txt:"\u65b0\u5efa\u7f16\u7801\u5efa\u6a21",onClick:function(){return(0,g.navigateTo)({pathname:v.modelServiceUrl.createCodeService(s.versionEngine,j,I,"TRAIN"),state:{language:s.language,frame:s.frame}})},className:"fn-left opt-btn"}),"SUCCESS"===s.versionState&&"service"===b&&(0,o.default)(T,{action:"EDIT",width:"20",txt:"\u4fee\u6539\u63a5\u53e3\u5b9a\u4e49",onClick:function(){return(0,g.navigateTo)(v.modelMirrorUrl.versionApiEdit(j,I))},className:"fn-left opt-btn"}),"FAILURE"===s.versionState&&!P&&(0,o.default)(T,{action:"EDIT",width:"20",txt:"\u4fee\u6539",onClick:function(){return(0,g.navigateTo)(v.modelMirrorUrl.versionEdit(b,j,I))},className:"fn-left opt-btn"}),"service"===b&&"SUCCESS"===s.versionState&&(0,o.default)(T,{action:"EXPORT",width:"20",txt:"\u5bfc\u51fa",onClick:function(){return e.exportOpen(s)},className:"fn-left opt-btn"}),("FAILURE"===s.versionState||"SUCCESS"===s.versionState)&&!P&&(0,o.default)(T,{action:"DELETE",width:"20",txt:"\u5220\u9664",onClick:function(){return e.handleDeleteAction()},className:"fn-left opt-btn"}))))},t}(c.default.Component);t.default=P},"./src/module/modelMirror/serviceMirrorVersion/detailPage/MirrorResourceInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/table/index.js")),o=m(a("./node_modules/antd/es/tooltip/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js")),l=m(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var u=m(a("./node_modules/react/index.js")),c=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(m(a("./node_modules/prop-types/index.js")),a("./src/redux/services/modelMirror.js")),f=a("./src/module/modelMirror/modelEnums.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=l.default.Search,g=c.default.div.withConfig({displayName:"MirrorResourceInfo__DetailInfoWrapper",componentId:"fc254y-0"})(["display:flex;flex-direction:column;"]),v=c.default.div.withConfig({displayName:"MirrorResourceInfo__SearchBarWrapper",componentId:"fc254y-1"})(["text-align:right;display:block;margin-bottom:16px;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),_=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fuzzyQuery=function(e,t){var a=[];if(""===t)n.setState({queryList:n.state.dataList});else{for(var o=0;o<e.length;o++){e[o].resourceName.toUpperCase().split(t.toUpperCase()).length>1&&a.push(e[o])}n.setState({queryList:a})}},n.fetchData=function(){if(n.props.versionId){var e=n.props.resourceFileType||"PACKAGE,COMPUTING,DRIVER";(0,p.getMirrorVersionResource)({paramjson:{mirrorVersionId:n.props.versionId,resourceFileType:e}}).then((function(e){n.setState({dataList:e.data,queryList:e.data})}))}},n.doSearch=function(e){n.fuzzyQuery(n.state.dataList,e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={dataList:[],queryList:[]},n.columns=[{title:"\u5e8f\u53f7",dataIndex:"index",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u8d44\u6e90\u540d\u79f0",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)},ellipsis:!0,dataIndex:"resourceName"},{title:"\u8d44\u6e90\u7c7b\u578b",render:function(e){return f.MIRROR_CONTENT_MAP.getDescFromValue(e)},ellipsis:!0,dataIndex:"resourceSourceFileType"},{title:"\u7248\u672c",ellipsis:!0,dataIndex:"versionName"}],n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.versionId!==e.versionId&&this.fetchData()},t.prototype.render=function(){var e=this;return(0,s.default)(g,{},void 0,(0,s.default)(v,{className:"search-bar"},void 0,(0,s.default)(h,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})),(0,s.default)(n.default,{rowKey:"index",bordered:!0,dataSource:this.state.queryList,columns:this.columns}))},t}(u.default.Component);t.default=_},"./src/module/modelMirror/serviceMirrorVersion/detailPage/ServiceVersionDeployInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/table/index.js")),o=g(a("./node_modules/antd/es/tooltip/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var l=g(a("./node_modules/react/index.js")),u=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/dayjs/dayjs.min.js"))),p=a("./node_modules/react-router-dom/esm/react-router-dom.js"),f=a("./src/routes/routeHelper.jsx"),m=g(a("./src/redux/services/codeService.js")),h=a("./src/redux/services/modelService.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.div.withConfig({displayName:"ServiceVersionDeployInfo__DetailInfoWrapper",componentId:"sc-1uf2flr-0"})(["display:flex;flex-direction:column;"]),y=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fetchData=function(){n.props.versionId&&(n.setState({loading:!0}),"service"===n.props.entity?(0,h.getModelServiceList)({mirrorVersionId:n.props.versionId,isPage:"N"}).then((function(e){n.setState({dataList:e.data,loading:!1})})).catch((function(){n.setState({loading:!1})})):m.default.getCodeServiceList({mirrorVersionId:n.props.versionId}).then((function(e){n.setState({dataList:_.get(e,"data.list"),loading:!1})})).catch((function(e){n.setState({loading:!1}),message.error(e.message)})))},n.state={dataList:[]},n.columns=[{title:"\u5e8f\u53f7",dataIndex:"index",width:80,render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u670d\u52a1ID",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)},dataIndex:"service"===a.entity?"deployId":"id"},{title:"\u670d\u52a1\u540d\u79f0",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)},ellipsis:!0,dataIndex:"service"===a.entity?"deployShowName":"bzTaskName"},{title:"\u521b\u5efa\u4eba",width:100,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)},ellipsis:!0,dataIndex:"service"===a.entity?"createCode":"createUser"},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e?(0,c.default)(e).format("YYYY-MM-DD HH:mm:ss"):"--"},void 0,e?(0,c.default)(e).format("YYYY-MM-DD HH:mm:ss"):"--")}},{title:"\u64cd\u4f5c",width:80,render:function(e){return(0,s.default)(p.Link,{style:{display:"grid"},to:{pathname:"service"===a.entity?f.modelServiceUrl.detail(e.deployId,"monitoring"):f.modelServiceUrl.detailCodeService(e.id,"monitoring")},target:"_blank"},void 0,"\u67e5\u770b")}}],n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.versionId!==e.versionId&&this.fetchData()},t.prototype.render=function(){return(0,s.default)(v,{},void 0,(0,s.default)(n.default,{rowKey:"index",loading:this.state.loading,bordered:!0,dataSource:this.state.dataList,columns:this.columns}))},t}(l.default.Component);t.default=y},"./src/module/modelMirror/serviceMirrorVersion/detailPage/ServiceVersionDetailPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/babel-runtime/helpers/jsx.js")),o=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=x(a("./node_modules/babel-runtime/helpers/inherits.js")),i=x(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=x(a("./node_modules/react/index.js")),l=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/utils/history.js"),p=x(a("./src/module/modelMirror/serviceMirrorVersion/detailPage/MirrorResourceInfo.jsx")),f=x(a("./src/module/modelMirror/serviceMirrorVersion/detailPage/ServiceVersionDeployInfo.jsx")),m=a("./src/components/index.js"),h=a("./src/routes/routeHelper.jsx"),g=x(a("./src/module/modelMirror/serviceMirrorVersion/detailPage/BaseInfo.jsx")),v=a("./src/utils/constants.js"),y=a("./src/utils/publicPath.js"),b=x(a("./src/module/modelMirror/components/DockerfilePane.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=i.default.TabPane,j=l.default.div.withConfig({displayName:"ServiceVersionDetailPage__ModelServiceDetailWrapper",componentId:"pbwkg7-0"})(["width:100%;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{margin-top:20px;.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-tab{font-size:16px;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);}}"]),S=l.default.div.withConfig({displayName:"ServiceVersionDetailPage__TabContent",componentId:"pbwkg7-1"})(["background:#fff;min-height:500px;width:100%;padding:16px 0;"]),I=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onChange=function(e){(0,c.navigateTo)({pathname:h.modelMirrorUrl.versionDetail(n.entity,n.mirrorId,e),state:{unScrollToTop:!0}}),n.setState({activeTab:e})},n.handleVersionChange=function(e){n.setState({versionId:e})},n.mirrorId=_.get(a.match.params,"mirrorId"),n.versionId=_.get(a.match.params,"versionId"),n.entity=_.get(a.match.params,"entity"),n.state={activeTab:_.get(a.match.params,"tab"),versionId:n.versionId},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.state,t=e.versionId,a=e.activeTab;return(0,n.default)(j,{},void 0,(0,n.default)(g.default,{mirrorId:this.mirrorId,versionId:t,entity:this.entity,onVersionChange:this.handleVersionChange}),(0,n.default)(i.default,{onChange:this.onChange,activeKey:""+a,className:"modelApply-tabs"},void 0,(0,n.default)(C,{tab:"\u6784\u5efa\u8fc7\u7a0b"},"process",(0,n.default)(S,{},void 0,(0,n.default)(m.EventProcess,{eventUrl:t?(0,y.urlFormat)("/process/version/"+t,v.ServicePath.MC_SERVICE):""}))),(0,n.default)(C,{tab:"\u90e8\u7f72\u4fe1\u606f"},"deployInfo",(0,n.default)(S,{},void 0,"deployInfo"===a&&(0,n.default)(f.default,{mirrorId:this.mirrorId,versionId:t,entity:this.entity}))),(0,n.default)(C,{tab:"\u955c\u50cf\u5185\u5bb9"},"info",(0,n.default)(S,{},void 0,"info"===a&&(0,n.default)(p.default,{mirrorId:this.mirrorId,versionId:t}))),(0,n.default)(C,{tab:"dockerfile"},"dockerfile",(0,n.default)(S,{},void 0,"dockerfile"===a&&(0,n.default)(b.default,{versionId:t})))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(I)},"./src/module/modelMirror/serviceMirrorVersion/editPage/ApiInterfaceEdit.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/button/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/antd/es/message/index.js")),r=h(a("./node_modules/antd/es/modal/index.js")),i=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=h(a("./node_modules/react/index.js")),c=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=h(a("./src/utils/history.js")),f=h(a("./src/module/devCenter/components/IoSchema/IoSchemaPage.jsx")),m=a("./src/redux/services/modelMirror.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=c.default.div.withConfig({displayName:"ApiInterfaceEdit__ApiInterfaceEditWrapper",componentId:"sc-19yqwd7-0"})(["display:flex;flex-direction:column;justify-content:space-between;flex-grow:1;padding:0px 16px;height:100%;background:#fff;.model-buttons{text-align:right;line-height:70px;padding-right:50px;}"]),v=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){(0,m.getMirrorVersionInfo)(n.versionId).then((function(e){n.submitInfo=e.data||{};var t=_.get(e.data,"apiSchema",[]),a="MODEL"!==_.get(e.data,"versionSourceType","CODE");t=t.map((function(e){return{apiDesc:e.apiDesc,apiName:e.apiName,operation:e.operation,apiUrl:e.apiUrl,inputDataSchema:e.inputDataSchema,outputDataSchema:e.outputDataSchema,requestSchema:e.requestSchema,responseSchema:e.responseSchema}})),n.setState({schemas:t,isCustomApi:a})}))},n.cancel=function(){r.default.confirm({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){p.default.goBack()}})},n.submit=function(){var e=n,t=!0,a={mirrorVersionId:n.versionId};Object.keys(n.validateFuncs).map((function(o){var s=n.validateFuncs[o];if(_.isFunction(s)){var r=s.call();a.apiSchema=_.get(r.moduleData,"apiSchema",e.state.schemas),t&&(t=r.validate)}})),t&&r.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e){(0,m.updateModelMirrorApiInfo)(a).then((function(){s.default.success("\u4fee\u6539\u6210\u529f\uff01"),e()}))}))},onCancel:function(){}})},n.submitModalOk=function(){},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.handleSchemasChange=function(e,t){n.setState({schemas:t})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.mirrorId=_.get(a.match.params,"mirrorId"),n.versionId=_.get(a.match.params,"versionId"),n.state={schemas:[],isCustomApi:!0},n.submitInfo={},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.schemas,s=t.isCustomApi;return(0,o.default)("div",{style:{width:"100%"}},void 0,(0,o.default)(g,{},void 0,(0,o.default)(f.default,{schemas:a,isCustomApi:s,setValidateFunc:this.setValidateFunc,onSchemasChange:this.handleSchemasChange}),(0,o.default)("div",{className:"model-buttons"},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.submit()},type:"primary",loading:this.state.confirmLoading,style:{marginLeft:16,borderRadius:4}},void 0,"\u4fdd \u5b58"))))},t}(u.default.Component);t.default=v},"./src/module/modelMirror/serviceMirrorVersion/listPage/ServiceMirrorVersionListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/tooltip/index.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/antd/es/message/index.js")),i=C(a("./node_modules/antd/es/modal/index.js")),d=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=C(a("./node_modules/react/index.js")),p=(C(a("./node_modules/prop-types/index.js")),C(a("./node_modules/lodash/lodash.js"))),f=C(a("./node_modules/dayjs/dayjs.min.js")),m=a("./src/components/auth/switchAuth.jsx"),h=a("./src/components/index.js"),g=C(a("./src/module/modelMirror/serviceMirrorVersion/listPage/component/SearchBar.jsx")),v=a("./src/routes/routeHelper.jsx"),_=a("./src/redux/services/modelMirror.js"),y=a("./src/styles/GlobalStyle.js"),b=a("./src/module/modelMirror/modelEnums.js"),x=C(a("./src/module/modelMirror/serviceMirrorVersion/listPage/component/VersionExport.jsx"));function C(e){return e&&e.__esModule?e:{default:e}}var j=(0,s.default)(h.LoadingIndicator,{position:"relative"}),S=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.fetchData=function(e){n.setState({listLoading:"intervalRefresh"!==e}),(0,_.getMirrorVersionList)({paramsJson:n.searchCond}).then((function(e){n.setState({mirrorList:e.data,listLoading:!1})})).catch((function(){return n.setState({listLoading:!1})}))},n.handleDelete=function(e){var t;i.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u955c\u50cf\u7248\u672c?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t){(0,_.deleteModelMirrorVersion)(e).then((function(){t(),r.default.success("\u5220\u9664\u6210\u529f"),n.fetchData()}))}))},t))},n.exportOpen=function(e){n.setState({exportVisible:!0}),n.versionInfo=e},n.openModalVisible=function(e,t){n.templateInfo=e,n.setState({modalVisible:!0,viewType:t})},n.callVisible=function(e){n.setState({modalVisible:!1,viewType:""}),e&&n.fetchData()},n.changeSearchCond=function(e,t){"refresh"!==e?(p.default.trim(t)?n.searchCond[e]=p.default.trim(t):n.searchCond=p.default.omit(n.searchCond,[e]),n.fetchData()):n.fetchData(t)},n.exportClose=function(){n.setState({exportVisible:!1})},n.setExportLoading=function(e){n.setState({exportLoading:e})},n.mirrorId=p.default.get(a.match.params,"mirrorId"),n.entity=p.default.get(a.match.params,"entity","train"),n.state={modalVisible:!1,viewType:"",mirrorList:[],listLoading:!1},n.searchCond={mirrorId:n.mirrorId},n.columns=[{title:"\u5e8f\u53f7",width:60,dataIndex:"index",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u7248\u672c\u53f7",width:70,dataIndex:"versionName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5f15\u64ce",dataIndex:"versionEngine",ellipsis:!0},{title:"\u7528\u9014",width:100,dataIndex:"train"===n.entity?"purpose":"versionType",ellipsis:!0,render:function(e){return(0,s.default)("span",{},void 0,"train"===n.entity?b.PURPOSE.getDesc(e):b.REASONING_MODE.getDesc(e))}},{title:"\u6765\u6e90",ellipsis:!0,width:100,dataIndex:"versionSourceType",render:function(e){return(0,s.default)("span",{},void 0,b.SOURCE_MAP.getDesc(e))}},{title:"\u521b\u5efa\u4eba",ellipsis:!0,dataIndex:"createCode",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD"):"")}},{title:"\u6784\u5efa\u72b6\u6001",width:110,dataIndex:"versionState",render:function(e,t){return"FAILURE"===e?(0,s.default)(o.default,{placement:"topLeft",title:t.errorMessage},void 0,(0,s.default)("div",{},void 0,(0,s.default)(h.StateLabel,{source:"serviceMirrorVersion",code:e}))):(0,s.default)(h.StateLabel,{source:"serviceMirrorVersion",code:e})}},{title:"\u64cd\u4f5c",width:190,render:function(e){var t="INIT"===e.versionSourceType,a=[];return a.push({handleName:"\u67e5\u770b",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelMirrorUrl.versionDetail(n.entity,n.mirrorId,e.versionId,"process"),handleType:"link"}),"SUCCESS"===e.versionState&&"train"===n.entity&&a.push({handleName:"\u65b0\u5efa\u7f16\u7801\u5efa\u6a21",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelServiceUrl.createCodeService(e.versionEngine,n.mirrorId,e.versionId),handleType:"link"}),"SUCCESS"===e.versionState&&"service"===n.entity&&"ONLINE"===e.versionType&&(a.push({handleName:"\u53d1\u5e03\u81f3\u6d4b\u8bd5",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelServiceUrl.publish("test",n.mirrorId,e.versionId),handleType:"link",state:{applicationId:e.businessType}}),a.push({handleName:"\u53d1\u5e03\u81f3\u751f\u4ea7",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelServiceUrl.publish("product",n.mirrorId,e.versionId),handleType:"link",state:{applicationId:e.businessType}})),"FAILURE"!==e.versionState||t||a.push({handleName:"\u4fee\u6539",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelMirrorUrl.versionEdit(n.entity,n.mirrorId,e.versionId),handleType:"link"}),"SUCCESS"!==e.versionState||"service"!==n.entity||t||a.push({handleName:"\u4fee\u6539\u63a5\u53e3\u5b9a\u4e49",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelMirrorUrl.versionApiEdit(n.mirrorId,e.versionId),handleType:"link"}),(0,m.hasFeatureAuths)("root.reaMirror.enableExport")&&"service"===n.entity&&"SUCCESS"===e.versionState&&a.push({handleName:"\u5bfc\u51fa",handleAction:function(){n.exportOpen(e)}}),"SUCCESS"!==e.versionState&&"FAILURE"!==e.versionState||t||a.push({handleName:"\u5220\u9664",handleAction:function(){n.handleDelete(e.versionId)}}),(0,s.default)(h.ListButtons,{buttons:a,maxShowNum:2})}}],n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.mirrorList,o=t.listLoading;return(0,s.default)("div",{style:{width:"100%"}},void 0,(0,s.default)(y.PageWrapper,{},void 0,(0,s.default)(h.ModalView,{modalTitle:"\u7248\u672c\u5bfc\u51fa",onCancelType:!1,width:800,confirmLoading:this.state.exportLoading,callVisible:this.exportClose,modalVisible:this.state.exportVisible,okText:"\u5bfc \u51fa",submitModalOk:function(){e.versionExport.submitModalOk()},comp:(0,s.default)(x.default,{setExportLoading:this.setExportLoading,onCancel:this.exportClose,onRef:function(t){e.versionExport=t},mirrorVersionId:p.default.get(this,"versionInfo.versionId","")})}),(0,s.default)(y.PageHeader,{className:"right"},void 0,(0,s.default)(g.default,{onChange:this.changeSearchCond,entity:this.entity})),(0,s.default)(y.PageBody,{},void 0,(0,s.default)(y.TableWrapper,{},void 0,o?j:(0,s.default)(n.default,{dataSource:a,rowKey:"versionId",bordered:!0,pagination:!0,columns:this.columns})))))},t}(c.default.Component);t.default=S},"./src/module/modelMirror/serviceMirrorVersion/listPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./src/module/modelMirror/modelEnums.js")),u=a("./src/styles/GlobalStyle.js"),c=a("./src/components/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=i.default.Option,m=l.RUN_ENGINE.getCodeAndDescList(),h=l.REASONING_MODE.getCodeAndDescList(),g=l.PURPOSE.getCodeAndDescList(),v={width:"130px"},y=(0,n.default)(f,{value:"v_name"},void 0,"\u540d\u79f0\u6392\u5e8f"),b=(0,n.default)(f,{value:"update_time"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("mirrorShowName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("orderBy"),n.changeClassificationField=n.changeSelect("versionEngine");var r="service"===a.entity?"versionType":"purpose";return n.changeSourceField=n.changeSelect(r),n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(u.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)(c.RefreshButton,{onRefresh:this.props.onChange}),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(i.default,{id:"sort",name:"sort",onChange:this.changeSortField,style:v,placeholder:"\u6392\u5e8f\u6761\u4ef6",className:"item-cond"},void 0,y,b)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(i.default,{allowClear:!0,onChange:this.changeSourceField,style:v,placeholder:"\u7528\u9014",className:"item-cond"},void 0,"service"===this.props.entity?h.map((function(e){return(0,n.default)(f,{value:e.code},e.code,e.desc)})):g.map((function(e){return(0,n.default)(f,{value:e.code},e.code,e.desc)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(i.default,{allowClear:!0,onChange:this.changeClassificationField,style:v,placeholder:"\u5f15\u64ce",className:"item-cond"},void 0,m.map((function(e){return(0,n.default)(f,{value:e.code},e.code,e.desc)})))))},t}(d.default.Component);t.default=x},"./src/module/modelMirror/serviceMirrorVersion/listPage/component/VersionExport.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/input/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/antd/es/message/index.js")),r=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=g(a("./node_modules/babel-runtime/helpers/inherits.js")),l=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=g(a("./node_modules/react/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/components/index.js"),m=(g(a("./node_modules/prop-types/index.js")),g(a("./src/redux/services/modelBase.js"))),h=a("./src/redux/services/modelMirror.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=l.default.Option,_=p.Form.Item,y={width:"100%",display:"inline"},b=(0,o.default)(v,{value:""},void 0,"\u8bf7\u9009\u62e9FTP"),x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.onRef(n),m.default.getFtpDropDown().then((function(e){e&&n.setState({ftpDatas:e.data})})).catch((function(e){s.default.error(e.message)}))},n.getModelBlur=function(e,t){if("ftpId"===t)for(var a=n.state.ftpDatas,o=0;o<a.length;o++)if(a[o].id===e){n.setState({ftpPath:a[o].storagePath});break}n.exportVersionInfo[t]=e},n.submitModalOk=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&(n.props.setExportLoading(!0),(0,h.exportMirrorVersion)(n.exportVersionInfo).then((function(){n.props.setExportLoading(!1),s.default.success("\u5bfc\u51fa\u4e2d\uff01"),n.props.onCancel()})).catch((function(e){n.props.setExportLoading(!1),s.default.error(e.message)})))},n.state={ftpDatas:[],ftpPath:"--"},n.exportVersionInfo={ftpId:"",saveDir:"",mirrorVersionId:a.mirrorVersionId},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,o.default)(p.Form,{layout:"inline"},void 0,(0,o.default)(f.ModelConfigPanel,{title:"\u5bfc\u51fa\u5730\u5740",style:y},void 0,(0,o.default)(_,{help:""},void 0,t("ftpId",{rules:[{required:!0}],initialValue:this.exportVersionInfo.ftpId})((0,o.default)(l.default,{style:{width:200},onChange:function(t){return e.getModelBlur(t,"ftpId")},placeholder:"\u8bf7\u9009\u62e9"},void 0,b,this.state.ftpDatas.map((function(e,t){return(0,o.default)(v,{value:e.id},t,e.storageName)}))))),(0,o.default)(_,{},void 0,t("saveDir",{rules:[{message:"\u8bf7\u8f93\u5165\u6709\u6548\u8def\u5f84"}],initialValue:this.exportVersionInfo.saveDir})((0,o.default)(n.default,{addonBefore:this.state.ftpPath,placeholder:"\u8bf7\u8f93\u8def\u5f84",onBlur:function(t){return e.getModelBlur(t.target.value,"saveDir")}})))))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(p.Form.create()(x))},"./src/module/modelMirror/util.js":function(e,t,a){"use strict";t.__esModule=!0,t.getPredictFilePath=t.parseFiles=t.parseBasicInfo=t.parseTrainBasicInfo=t.joinPathAndName=t.getFilePathAndFileName=t.getApiSchemas=t.getEnvVars=void 0;var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=function(e,t){return""+(e||"")+(t||"")};t.getEnvVars=function(e){if(!Array.isArray(e))return[];for(var t=[],a=0;a<e.length;a++)s.default.trim(e[a].name)&&t.push({name:e[a].name,value:e[a].value});return t},t.getApiSchemas=function(e){if(!Array.isArray(e))return[];for(var t=[],a=0;a<e.length;a++)t.push({apiName:e[a].apiName,apiDesc:e[a].apiDesc,operation:e[a].operation,inputDataSchema:e[a].inputDataSchema,outputDataSchema:e[a].outputDataSchema,requestSchema:e[a].requestSchema,responseSchema:e[a].responseSchema,apiUrl:e[a].apiUrl});return t},t.getFilePathAndFileName=function(e){if(!e)return{resourceFilePath:"",resourceFileName:""};var t=e.lastIndexOf("/");return t>-1?{resourceFilePath:e.slice(0,t+1),resourceFileName:e.slice(t+1)}:{resourceFilePath:"",resourceFileName:e}},t.joinPathAndName=r,t.parseTrainBasicInfo=function(e){var t=s.default.get(e,"envVars",[]);return t=Array.isArray(t)&&t.length>0?t.map((function(e,t){return{name:e.envKey,value:e.envValue,index:(new Date).getTime()+t}})):[{name:"",value:"",index:(new Date).getTime()}],{mirrorId:e.mirrorId,versionDesc:e.versionDesc,sourceType:e.versionSourceType,engine:e.versionEngine,purpose:e.purpose,envVars:t,startCommand:e.startCommand,mirrorPort:Number(e.port),dockerFile:e.dockerFile,dockerFileId:e.dockerFileId,dockerFileName:e.dockerFileName,imageFtpId:e.imageFtpId,imageFtpFilePath:e.imageFtpFilePath,imageFtpFileName:e.imageFtpFileName,imageFileId:e.imageFileId,imageFileName:e.imageFileName,owner:e.owner,relyData:{language:e.language,languageVersion:e.frame,engine:e.versionEngine,baseMirrorId:e.baseMirrorId,baseId:e.baseId}}},t.parseBasicInfo=function(e){var t=s.default.get(e,"envVars",[]);return t=Array.isArray(t)&&t.length>0?t.map((function(e,t){return{name:e.envKey,value:e.envValue,index:(new Date).getTime()+t}})):[{name:"",value:"",index:(new Date).getTime()}],{mirrorId:e.mirrorId,mirrorShowName:e.mirrorShowName,businessType:e.businessType,versionDesc:e.versionDesc,mirrorType:e.versionType,sourceType:e.versionSourceType,envVars:t,baseId:e.baseId,versionEngine:e.versionEngine||"CPU",modelId:e.modelId,modelVersionId:e.modelVersionId,packageId:e.packageId,apiSchema:e.apiSchema,startCommand:e.startCommand,mirrorPort:Number(e.port),codeToInnerPath:e.codeInnerPath,dockerFileId:e.dockerFileId,dockerFileName:e.dockerFileName,imageFtpId:e.imageFtpId,imageFtpFilePath:e.imageFtpFilePath,imageFtpFileName:e.imageFtpFileName,imageFileId:e.imageFileId,imageFileName:e.imageFileName,workDir:e.workDir,logInnerPath:e.logInnerPath,dockerFile:e.dockerFile,relyData:{language:e.language,languageVersion:e.frame,engine:e.versionEngine,baseMirrorId:e.baseMirrorId,baseId:e.baseId}}},t.parseFiles=function(e){var t="ftp",a=[],n="",o=[],i="",d="";if(e.imageFtpId?n=r(e.imageFtpFilePath,e.imageFtpFileName):e.imageFileId&&(t="upload",a=[{uid:e.imageFileId,name:e.imageFileName,status:"done"}]),e.dockerFileId&&(o=[{uid:e.dockerFileId,name:e.dockerFileName,status:"done"}]),e.dockerFile){var l=s.default.get(e,"dockerFile","");l.startsWith("\n")&&(l=l.substr(1));var u=l.split("\n");i=u[0],d=u.splice(1).join("\n")}return{imageFileUploadType:t,imageFileList:a,dockerFileList:o,imageFtpFileName:n,dockerFile_from:i,dockerFile_content:d}},t.getPredictFilePath=function e(t){for(var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n="",o=0;o<t.length;o++){var s=t[o];if("file"===s.type&&s.fileType===a)return n=s.path;if(s.children&&Array.isArray(s.children)&&(n=e(s.children,a)),n)return n}return n}},"./src/module/modelService/codeService/detailPage/CodeServiceDetailPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/babel-runtime/helpers/jsx.js")),o=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=b(a("./node_modules/babel-runtime/helpers/inherits.js")),i=b(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=b(a("./node_modules/react/index.js")),l=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=b(a("./src/module/modelService/codeService/detailPage/ServiceBaseInfo.jsx")),p=b(a("./src/module/modelService/codeService/detailPage/ServiceConfigInfo.jsx")),f=b(a("./src/module/modelService/detailPage/ServiceProcess.jsx")),m=b(a("./src/module/modelService/detailPage/ServiceInstances.jsx")),h=b(a("./src/module/modelService/codeService/detailPage/ServiceEnv.jsx")),g=b(a("./src/redux/services/codeService.js")),v=a("./src/utils/history.js"),y=a("./src/routes/routeHelper.jsx");function b(e){return e&&e.__esModule?e:{default:e}}var x=i.default.TabPane,C=l.default.div.withConfig({displayName:"CodeServiceDetailPage__CodeServiceDetailPageWrapper",componentId:"sc-15p8ikn-0"})(["width:100%;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-nav-scroll{display:flex;}.ant-tabs-tab{font-size:16px;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-active{min-height:400px;}}.service__tabs-wrapper{margin-top:20px;}.ant-tabs-content{margin-top:24px;}"]),j=l.default.div.withConfig({displayName:"CodeServiceDetailPage__TabContent",componentId:"sc-15p8ikn-1"})(["background:#fff;min-height:500px;width:100%;"]),S=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.fetchData=function(){n.setState({baseInfoLoading:!0}),g.default.getCodeServiceInfo(n.state.serviceId).then((function(e){n.setState({baseInfo:_.get(e,"data",{}),baseInfoLoading:!1,refreshing:!1})})).catch((function(){n.setState({baseInfoLoading:!1,refreshing:!1})}))},n.onChange=function(e){(0,v.navigateTo)({pathname:y.modelServiceUrl.detailCodeService(n.state.serviceId,e),state:{unScrollToTop:!0}}),n.setState({activeTab:e})},n.handleRefresh=function(e){e&&n.setState({refreshing:!0}),n.fetchData()};var r=_.get(a.match.params,"serviceId"),i=_.get(a.match.params,"tab","config");return n.state={baseInfoLoading:!1,refreshing:!1,serviceId:r,activeTab:i,baseInfo:{}},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.activeTab,a=e.serviceId,o=e.baseInfo,s=e.baseInfoLoading,r=e.refreshing;return(0,n.default)(C,{},void 0,(0,n.default)(c.default,{serviceId:a,baseInfo:o,baseInfoLoading:s,refreshing:r,onRefresh:this.handleRefresh}),(0,n.default)("div",{className:"service__tabs-wrapper"},void 0,(0,n.default)(i.default,{onChange:this.onChange,activeKey:t,className:"modelApply-tabs"},void 0,(0,n.default)(x,{tab:"\u914d\u7f6e\u4fe1\u606f"},"config",(0,n.default)(j,{},void 0,"config"===t&&(0,n.default)(p.default,{baseInfo:o}))),(0,n.default)(x,{tab:"\u5b9e\u4f8b\u4fe1\u606f"},"instances",(0,n.default)(j,{},void 0,"instances"===t&&(0,n.default)(m.default,{serviceType:"train_service",serviceId:o.deployId,refreshing:r,appCode:o.appCode}))),(0,n.default)(x,{tab:"\u5f00\u53d1\u73af\u5883"},"io",(0,n.default)(j,{},void 0,"io"===t&&(0,n.default)(h.default,{serviceId:a,dataSource:_.get(o,"resources",[])}))),(0,n.default)(x,{tab:"\u4e3b\u8981\u4e8b\u4ef6"},"process",(0,n.default)(j,{},void 0,"process"===t&&(0,n.default)(f.default,{serviceLogType:"CodeModel",serviceId:a,refreshing:r,deployId:_.get(o,"deployId")}))))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(S)},"./src/module/modelService/codeService/detailPage/ServiceBaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/progress/index.js")),o=S(a("./node_modules/antd/es/tooltip/index.js")),s=S(a("./node_modules/babel-runtime/helpers/jsx.js")),r=S(a("./node_modules/antd/es/message/index.js")),i=S(a("./node_modules/antd/es/modal/index.js")),d=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=S(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/progress/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=S(a("./node_modules/react/index.js")),p=(S(a("./node_modules/prop-types/index.js")),S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./src/components/index.js"),h=a("./src/utils/history.js"),g=a("./src/routes/routeHelper.jsx"),v=S(a("./src/module/modelService/codeService/listPage/component/ExtendPage.jsx")),y=S(a("./src/redux/services/codeService.js")),b=S(a("./src/redux/services/sysManager/projectManage.js")),x=S(a("./src/module/sysManage/userActionManager/permissionManager/ResourcePermissionUserPage.jsx")),C=S(a("./src/components/button/index.js")),j=a("./src/module/modelService/utils.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=C.default.GhostButton,T=p.default.div.withConfig({displayName:"ServiceBaseInfo__DetailBaseInfoWrapper",componentId:"sc-156is4a-0"})(["display:flex;border:1px solid #eee;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:80%;margin-right:24px;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}.item__applications{overflow:hidden;text-overflow:ellipsis;width:calc(100% - 80px);white-space:nowrap;}"]),w=(0,s.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),E=(0,s.default)(f.LoadingOutlined,{className:"refresh-icon"}),D=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleOperation=function(e){switch(e.key){case"start":case"stop":case"delete":n._handleAction(e);break;case"edit":(0,h.navigateTo)(g.modelServiceUrl.editCodeService("edit",_.get(n.state.baseInfo,"id")));break;case"reassign":n.handleExpansionAction()}},n._handleAction=function(e){var t=n.state.baseInfo;i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+e.text+"\u7f16\u7801\u670d\u52a1[ "+_.get(t,"bzTaskName")+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){var o=n.state.baseInfo,s="delete"===e.key?o.id:{id:o.id,actionId:o.actionId};_.get(y.default,""+e.action)(s).then((function(){"delete"===e.key?(r.default.success(e.text+"[ "+o.bzTaskName+" ]\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,h.navigateTo)(g.modelServiceUrl.codeServiceList())}),2e3)):(r.default.success(e.text+"[ "+o.bzTaskName+" ]"+("start"===e.key?"\u6267\u884c\u4e2d":"\u6210\u529f")+"!"),n.props.onRefresh()),t()})).catch((function(t){a(t),r.default.error(e.text+"[ "+o.bzTaskName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+t)}))}))}})},n.callVisible=function(e){n.setState({modalVisible:!1}),e&&n.props.onRefresh()},n.callShareVisible=function(){n.setState({modalShareVisible:!1})},n.openModalSharesVisible=function(){n.setState({modalShareVisible:!0})},n.setShareLoading=function(e){n.setState({shareLoading:e})},n.handleExpansionAction=function(){n.setState({modalVisible:!0})},n.handleRefresh=function(){n.setState({refreshing:!0}),n.props.onRefresh(!0)},n.setExtendLoading=function(e){n.setState({extendLoading:e})},n.callModalVisible=function(){n.setState({modalVisible:!1})},n.getApplicationsName=function(e){var t=e||"--";if(e&&n.state.applicationsList&&n.state.applicationsList.length>0)for(var a=0;a<n.state.applicationsList.length;a++)if(n.state.applicationsList[a].projectApplicationId===e){t=n.state.applicationsList[a].applicationName;break}return t},n.state={baseInfoLoading:!1,refreshing:!1,baseInfo:{},optPermission:(0,j.getCodeServiceOptPermission)(),applicationsList:[]},n.items=[{key:"id",name:"ID",type:"text"},{key:"businessType",name:"\u5f52\u5c5e\u5e94\u7528",type:"application"},{key:"createUser",name:"\u521b\u5efa\u4eba",type:"text"},{key:"createTime",name:"\u521b\u5efa\u65f6\u95f4",type:"text"}],n.optsBtn=[{key:"start",text:"\u542f\u52a8",action:"start"},{key:"stop",text:"\u505c\u6b62",action:"stop"},{key:"edit",text:"\u4fee\u6539",action:"edit"},{key:"delete",text:"\u5220\u9664",action:"deleteCodeService"}],n}return(0,u.default)(t,e),t.getDerivedStateFromProps=function(e){return{optPermission:(0,j.getCodeServiceOptPermission)(_.get(e.baseInfo,"statu")),baseInfo:e.baseInfo,baseInfoLoading:e.baseInfoLoading,refreshing:e.refreshing}},t.prototype.componentDidMount=function(){var e=this;b.default.getApplicationsDropDown().then((function(t){t&&e.setState({applicationsList:t.data})})).catch((function(e){r.default.error(e.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.baseInfo,r=t.optPermission,i=t.refreshing,d=t.baseInfoLoading,l=t.modalVisible,u=t.extendLoading;return(0,s.default)(T,{},void 0,(0,s.default)(m.ModalView,{modalTitle:"\u6388\u6743",onCancelType:!1,confirmLoading:this.state.shareLoading,width:1200,callVisible:this.callShareVisible,modalVisible:this.state.modalShareVisible,okText:"\u63d0 \u4ea4",comp:(0,s.default)(x.default,{resourceId:_.get(a,"id"),domainId:"deploy"})}),(0,s.default)(m.ModalView,{modalTitle:"\u5728\u7ebf\u6269\u7f29\u5bb9",onCancelType:!1,width:700,callVisible:this.callModalVisible,modalVisible:l,okText:"\u4fdd \u5b58",confirmLoading:u,submitModalOk:function(){e.extendPage.submitModalOk()},comp:(0,s.default)(v.default,{onRef:function(t){e.extendPage=t},setExtendLoading:this.setExtendLoading,id:_.get(a,"id"),callVisible:this.callModalVisible})}),(0,s.default)("div",{className:"left__content-wrapper"},void 0,(0,s.default)("div",{className:"left__top-wrapper"},void 0,(0,s.default)("div",{className:"left__top-line1"},void 0,(0,s.default)("div",{className:"base__info-name top__line1-section"},void 0,a.bzTaskName),(0,s.default)("div",{className:"base__info-status top__line1-section"},void 0,2===a.statu?(0,s.default)(m.StateLabel,{source:"codeService",code:a.statu}):(0,s.default)(o.default,{placement:"topLeft",title:a.message},void 0,(0,s.default)("div",{},void 0,(0,s.default)(m.StateLabel,{source:"codeService",code:a.statu})))),(0,s.default)("div",{className:"base__info-runtime top__line1-section"},void 0,"\u8fd0\u884c\u65f6\u957f\uff1a",a.runtime)),(0,s.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",a.bzTaskDesc," ")),(0,s.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(t){return"text"===t.type?(0,s.default)("div",{className:"item__wrapper"},t.key,(0,s.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,t.name,"\uff1a"),(0,s.default)("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},void 0,(0,s.default)(o.default,{title:a[t.key]},void 0,a[t.key]))):"application"===t.type?(0,s.default)("div",{className:"item__wrapper"},t.key,(0,s.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right"}},void 0,t.name,"\uff1a"),(0,s.default)(o.default,{title:e.getApplicationsName(a[t.key]),placement:"topLeft"},void 0,(0,s.default)("span",{className:"item__applications"},void 0,e.getApplicationsName(a[t.key])))):(0,s.default)("div",{className:"item__wrapper"},t.key,(0,s.default)("span",{style:{width:"80px",whiteSpace:"nowrap",flexShrink:0}},void 0,t.name,"\uff1a"),(0,s.default)("span",{style:{marginRight:10,width:"25px"}},void 0,_.isNumber(a[t.key])?Math.round(100*a[t.key]):0,"%"),(0,s.default)("div",{className:"item__progress-wrapper"},void 0,(0,s.default)(n.default,{percent:100*a[t.key]||0,showInfo:!1})))})))),(0,s.default)("div",{className:"right__content-wrapper"},void 0,w,(0,s.default)(m.RefreshButton,{onRefresh:this.handleRefresh,style:{display:"none"}}),i&&d?E:(0,s.default)(o.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,s.default)(f.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})),(0,s.default)("div",{className:"right__bottom-wrapper"},void 0,this.optsBtn.map((function(t){return(0,s.default)(I,{disabled:!r[t.key],action:_.upperCase(t.key,""),width:"20",txt:t.text,onClick:function(){return e.handleOperation(t)},className:"fn-left opt-btn"},t.key)})))))},t}(c.default.Component);t.default=D},"./src/module/modelService/codeService/detailPage/ServiceConfigInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/extends.js")),o=m(a("./node_modules/antd/es/row/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\codeService\\detailPage\\ServiceConfigInfo.jsx";a("./node_modules/antd/es/row/style/index.js");var u=m(a("./node_modules/react/index.js")),c=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/components/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=p.Form.Item,g=c.default.div.withConfig({displayName:"ServiceConfigInfo__DetailInfoWrapper",componentId:"pwdjo8-0"})(["display:flex;flex-wrap:wrap;.ant-legacy-form-item-label{width:68px;text-align:right;}.panel-body{margin-left:-16px;}"]),v=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.state={moduleData:{}},n}return(0,d.default)(t,e),t.prototype.render=function(){var e={layout:"inline",labelAlign:"left"},t={width:"50%"},a=_.get(this.props.baseInfo,"bzTaskParamJson.service",{}),r=_.get(a,"resource.gpu"),i=Array.isArray(r)&&r.length>0&&r[0].gpuNumber>0?r[0].gpuNumber+"*"+r[0].gpuModelName:0;return(0,s.default)(g,{},void 0,(0,s.default)(f.ModelConfigPanel,{title:"\u8bad\u7ec3\u955c\u50cf\u914d\u7f6e",style:t},void 0,u.default.createElement(p.Form,(0,n.default)({},e,{__source:{fileName:l,lineNumber:45}}),(0,s.default)(o.default,{},void 0,(0,s.default)(h,{label:"\u955c\u50cfID"},void 0,a.mirrorId)),(0,s.default)(o.default,{},void 0,(0,s.default)(h,{label:"\u955c\u50cf\u540d\u79f0"},void 0,a.mirrorShowName)),(0,s.default)(o.default,{},void 0,(0,s.default)(h,{label:"\u955c\u50cf\u7248\u672c"},void 0,a.mirrorVersion)))),(0,s.default)(f.ModelConfigPanel,{title:"\u8d44\u6e90\u914d\u7f6e",style:t},void 0,u.default.createElement(p.Form,(0,n.default)({},e,{__source:{fileName:l,lineNumber:58}}),(0,s.default)(o.default,{},void 0,(0,s.default)(h,{label:"CPU(core)"},void 0,_.get(a,"resource.cpu")),(0,s.default)(h,{label:"\u5185\u5b58(GB)",style:{marginLeft:32}},void 0,_.get(a,"resource.memory")),(0,s.default)(h,{label:"GPU",style:{marginLeft:32}},void 0,i)))))},t}(u.default.Component);v.defaultProps={baseInfo:{}},t.default=v},"./src/module/modelService/codeService/detailPage/ServiceEnv.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/table/index.js")),o=p(a("./node_modules/antd/es/tooltip/index.js")),s=p(a("./node_modules/babel-runtime/helpers/jsx.js")),r=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var l=p(a("./node_modules/react/index.js")),u=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(p(a("./node_modules/prop-types/index.js")),a("./src/module/modelMirror/modelEnums.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=u.default.div.withConfig({displayName:"ServiceEnv__DetailInfoWrapper",componentId:"sc-105m1ef-0"})(["display:flex;flex-direction:column;"]),m=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.state={dataList:[]},n.columns=[{title:"\u5e8f\u53f7",dataIndex:"index",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u8d44\u6e90\u540d\u79f0",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)},ellipsis:!0,dataIndex:"resourceName"},{title:"\u8d44\u6e90\u7c7b\u578b",render:function(e){return c.MIRROR_CONTENT_MAP.getDescFromValue(e)},ellipsis:!0,dataIndex:"resourceSourceFileType"},{title:"\u7248\u672c",ellipsis:!0,dataIndex:"versionName"}],n}return(0,d.default)(t,e),t.prototype.render=function(){return(0,s.default)(f,{},void 0,(0,s.default)(n.default,{rowKey:"index",bordered:!0,dataSource:this.props.dataSource,columns:this.columns}))},t}(l.default.Component);t.default=m},"./src/module/modelService/codeService/editPage/EditManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.EditManagePageDom=t.ComputingResourceDom=void 0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/babel-runtime/helpers/jsx.js")),s=S(a("./node_modules/antd/es/notification/index.js")),r=S(a("./node_modules/antd/es/message/index.js")),i=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=S(a("./node_modules/babel-runtime/helpers/inherits.js")),u=S(a("./node_modules/antd/es/modal/index.js")),c=S(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var p=S(a("./node_modules/react/index.js")),f=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=S(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=(S(a("./node_modules/prop-types/index.js")),S(a("./src/redux/services/codeService.js"))),v=a("./node_modules/react-redux/es/index.js"),_=a("./src/components/index.js"),y=a("./src/utils/history.js"),b=a("./src/routes/routeHelper.jsx"),x=S(a("./src/module/modelService/codeService/editPage/component/CodeServiceInfo.jsx")),C=S(a("./src/module/modelMirror/baseMirror/definePage/component/RelyInlayMirror.jsx")),j=S(a("./src/module/modelService/createPage/ComputingResource.jsx"));function S(e){return e&&e.__esModule?e:{default:e}}var I=c.default.Group,T=u.default.confirm,w=t.ComputingResourceDom=f.default.div.withConfig({displayName:"EditManagePage__ComputingResourceDom",componentId:"aozgdd-0"})([".ant-legacy-form-item-label{width:100px;}.ant-radio-wrapper{vertical-align:top;line-height:40px;}"]),E=t.EditManagePageDom=f.default.div.withConfig({displayName:"EditManagePage__EditManagePageDom",componentId:"aozgdd-1"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.ant-row{line-height:60px;display:flex;}"]),D=t.ConfigButtonDom=f.default.div.withConfig({displayName:"EditManagePage__ConfigButtonDom",componentId:"aozgdd-2"})(["text-align:right;line-height:70px;padding-right:50px;"]),M=t.ErrorUl=f.default.ul.withConfig({displayName:"EditManagePage__ErrorUl",componentId:"aozgdd-3"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;"]),k={marginTop:"2%",width:"100%"},P=(0,o.default)(_.LoadingIndicator,{position:"relative"}),L=(0,o.default)(c.default,{value:"BASE"},void 0,"\u57fa\u7840\u955c\u50cf"),N=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.componentDidMount=function(){"create"!==n.viewType&&(n.setState({loading:!0}),g.default.getCodeServiceInfo(n.modelId).then((function(e){e&&n.setState({codeServiceInfo:m.default.get(e,"data",{}),loading:!1,baseType:m.default.get(e,"data.bzTaskParamJson.service.baseType","BASE"),frame:m.default.get(e,"data.bzTaskParamJson.service.frame"),runEngine:m.default.get(e,"data.bzTaskParamJson.service.runEngine")||m.default.get(e,"data.bzTaskParamJson.service.engine","")})})).catch((function(e){throw n.setState({codeServiceInfo:{},loading:!1}),r.default.error(e.message),e})))},n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.savaOrSubmit=function(){var e={},t={};if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(m.default.isFunction(o)){var s=o.call();s.validate?e[a]=s.moduleData:t[a]=s.errorMsg}})),"{}"!==JSON.stringify(t)){var a=n.errorDom(t);s.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:a,icon:(0,o.default)(h.FrownOutlined,{style:{color:"#f5222d"}})})}else{for(var r in n.moduleData={bzTaskName:"",bzTaskParamJson:{service:{resource:{}}}},e)"computingResource"===r?n.moduleData.bzTaskParamJson.service.resource=e[r]:"relyInlayMirror"===r?(n.moduleData.bzTaskParamJson.service.mirrorId=e[r].baseMirrorId,n.moduleData.bzTaskParamJson.service.mirrorShowName=e[r].mirrorShowName2,n.moduleData.bzTaskParamJson.service.mirrorVersion=e[r].baseId,n.moduleData.bzTaskParamJson.service.runEngine=e[r].engine,n.moduleData.bzTaskParamJson.service.language=e[r].language,n.moduleData.bzTaskParamJson.service.languageVersion=e[r].languageVersion):n.moduleData=m.default.assign(n.moduleData,e[r]);n.setState({modalVisible:!0})}},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.moduleData.id=n.modelId,n.moduleData.bzTaskName=n.moduleData.bzTaskName.replace(/\s+/g,""),n.moduleData.bzTaskParamJson.service.baseType=n.state.baseType,n.moduleData.bzTaskParamJson.service.flinkId=m.default.get(n.moduleData.bzTaskParamJson.service,"resource.flinkClusterId"),g.default.editPostCodeService(n.moduleData,n.viewType).then((function(e){e&&(n.setState({confirmLoading:!1,modalVisible:!1}),r.default.success(e.message),(0,y.navigateTo)(b.modelServiceUrl.codeServiceList()))})).catch((function(e){n.setState({confirmLoading:!1}),r.default.error(e.message)}))},n.errorDom=function(e){return(0,o.default)(M,{},void 0,Object.keys(e).map((function(t){return(0,o.default)("li",{},t,e[t])})))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){T({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u6a21\u578b\u63a8\u7406\u4efb\u52a1\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,y.navigateTo)(b.modelServiceUrl.codeServiceList())}})},n.onChangeRadio=function(e){n.setState({baseType:e.target.value})},n.handleMirrorInfoChange=function(e,t){"languageVersion"===e&&n.setState({frame:t}),"engine"===e&&n.setState({runEngine:t})},n.viewType=m.default.get(a.match,"params.action",null),n.modelId=m.default.get(a.match,"params.modelId",null),n.engine=m.default.get(a.match,"params.engine",null),n.mirrorId=m.default.get(a.match,"params.mirrorId",null),n.versionId=m.default.get(a.match,"params.versionId",null),n.applicationId=m.default.get(a.location,"state.applicationId",null),n.language=m.default.get(a.location,"state.language",""),n.frame=m.default.get(a.location,"state.frame",""),n.state={baseType:m.default.get(a.match,"params.type","BASE"),codeServiceInfo:{businessType:m.default.get(a.location,"state.applicationId",null),bzTaskParamJson:{service:{runEngine:n.engine,language:n.language,languageVersion:n.frame,mirrorId:n.mirrorId,mirrorVersion:n.versionId}}},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1,frame:n.frame,runEngine:"",result:!1},n.moduleData={},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,s=t.codeServiceInfo,r=t.modalTxt,i=t.confirmLoading,d=t.loading,l=t.baseType,p=t.frame,f=t.runEngine,h=m.default.get(s,"bzTaskParamJson.service.resource",{cpu:1,memory:1});return(0,o.default)(E,{},void 0,(0,o.default)(u.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:i,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,r)),"create"!==this.viewType&&d&&(0,o.default)("div",{style:{height:100}},void 0,P),("create"===this.viewType||"create"!==this.viewType&&!d)&&(0,o.default)("div",{},void 0,(0,o.default)(_.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:k},void 0,(0,o.default)(x.default,{applicationId:this.applicationId,modelId:this.modelId,viewType:this.viewType,codeServiceInfo:s,setValidateFunc:this.setValidateFunc})),(0,o.default)(_.ModelConfigPanel,{title:"\u9009\u62e9\u8bad\u7ec3\u955c\u50cf",hintMsg:"\u6e29\u99a8\u63d0\u793a\uff1a\u9009\u62e9\u57fa\u7840\u955c\u50cf\u4f1a\u5224\u65ad\u6784\u5efa\u955c\u50cf\uff0c\u9009\u62e9\u5df2\u6709\u8bad\u7ec3\u955c\u50cf\u4e0d\u4f1a\u518d\u6b21\u6784\u5efa"},void 0,(0,o.default)("div",{style:{marginLeft:80,padding:"10px 0px 20px 0px"}},void 0,(0,o.default)(I,{onChange:this.onChangeRadio,value:l},void 0,L,(0,o.default)(c.default,{style:{marginLeft:40},value:"TRAIN"},void 0,"\u8bad\u7ec3\u955c\u50cf"))),(0,o.default)(C.default,{baseType:l,data:m.default.get(s,"bzTaskParamJson.service"),viewType:this.viewType,setRelyInlayMirrorFunc:this.setValidateFunc,mirrorShowName:"true",from:"codeService",onValueChange:this.handleMirrorInfoChange})),(0,o.default)(w,{},void 0,(0,o.default)(j.default,{showFlinkCluster:m.default.upperCase(p).includes("FLINK")||m.default.upperCase(f).includes("FLINK"),instancesMinShow:!0,pubEnvType:"DEV",canModify:"view"!==this.viewType,requestQuota:h,setValidateFunc:this.setValidateFunc,verifyMemoryNum:1,verifyCpuNum:1,source:"CODE_SERVICE"}))),(0,o.default)(D,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),"view"!==this.viewType&&(0,o.default)(n.default,{onClick:function(){return e.savaOrSubmit()},type:"primary",loading:this.state.confirmLoading,disabled:!this.state.result,style:{borderRadius:4,width:110}},void 0,"\u542f\u52a8\u7f16\u7801\u670d\u52a1")))},t}(p.default.PureComponent);t.default=(0,v.connect)((function(){return{}}))(N)},"./src/module/modelService/codeService/editPage/component/CodeServiceInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CodeServiceInfoInfoDom=void 0;var n=S(a("./node_modules/antd/es/tooltip/index.js")),o=S(a("./node_modules/antd/es/row/index.js")),s=S(a("./node_modules/babel-runtime/helpers/jsx.js")),r=S(a("./node_modules/antd/es/message/index.js")),i=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=S(a("./node_modules/babel-runtime/helpers/inherits.js")),u=S(a("./node_modules/antd/es/select/index.js")),c=S(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=S(a("./node_modules/react/index.js")),f=(S(a("./node_modules/prop-types/index.js")),S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./node_modules/react-redux/es/index.js"),v=S(a("./src/components/common/CheckName.jsx")),y=S(a("./src/redux/services/sysManager/projectManage.js")),b=a("./src/redux/selectors/checkName.js"),x=S(a("./src/redux/services/codeService.js")),C=a("./src/utils/commonUtil.js"),j=a("./src/utils/authPermit.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=c.default.TextArea,T=u.default.Option,w=t.CodeServiceInfoInfoDom=f.default.div.withConfig({displayName:"CodeServiceInfo__CodeServiceInfoInfoDom",componentId:"sc-146rj4t-0"})([".ant-row{line-height:60px;}.ant-form-item-control{position:relative;line-height:40px;zoom:1;width:600px;}"]),E=h.Form.Item,D=(0,s.default)(T,{value:""},void 0,"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"),M=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.componentDidMount=function(){y.default.getApplicationsDropDown().then((function(e){if(e){var t=e.data||[];if(n.props.applicationId){var a=_.find(t,{projectApplicationId:n.props.applicationId}),o=_.get(a,"applicationName");if(o){var s=(0,C.createModuleNameByApply)(o,"codeService");n.modelData.bzTaskName=s,n.props.form.setFieldsValue({bzTaskName:s})}}n.setState({applicationsList:t})}})).catch((function(e){r.default.error(e.message)})),n.getUsedApplications()},n.getUsedApplications=function(){x.default.getCodeServiceList({owner:(0,j.getUser)().userId}).then((function(e){n.setState({usedApplications:_.groupBy(_.get(e,"data.list",[]),"businessType")})})).catch((function(e){n.setState({codeDataList:[],loading:!1}),r.default.error(e.message)}))},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u57fa\u7840\u4fe1\u606f"}},n.getValBlur=function(e){n.modelData.bzTaskName=e,n.props.form.setFieldsValue({bzTaskName:e})},n.getBusinessTypeBlur=function(e,t){if(e){var a=(0,C.createModuleNameByApply)(t.props.label,"codeService");n.modelData.bzTaskName=a,n.props.form.setFieldsValue({bzTaskName:a})}n.modelData.businessType=e},n.getDescBlur=function(e){n.modelData.bzTaskDesc=e,n.props.form.setFieldsValue({bzTaskDesc:e})},n.state={applicationsList:[],usedApplications:{}},n.checkNameRef=p.default.createRef();var o=n.props.setValidateFunc;return _.isFunction(o)&&o("codeServiceInfo",n.validateFun),n.modelData={bzTaskName:_.get(a.codeServiceInfo,"bzTaskName",""),businessType:null!==_.get(a.codeServiceInfo,"businessType")?_.get(a.codeServiceInfo,"businessType"):"",bzTaskDesc:_.get(a.codeServiceInfo,"bzTaskDesc","")},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,s.default)(w,{},void 0,(0,s.default)(h.Form,{},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(E,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,t("businessType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:this.modelData.businessType})((0,s.default)(u.default,{disabled:!("create"===this.props.viewType&&!this.props.applicationId),placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e",optionFilterProp:"children",onChange:function(t,a){return e.getBusinessTypeBlur(t,a)},style:{width:"350px"}},void 0,D,this.state.applicationsList.map((function(t){return(0,s.default)(T,{disabled:Boolean(e.state.usedApplications[t.projectApplicationId]),value:t.projectApplicationId,label:t.applicationName},t.projectApplicationId,t.applicationName)})))),(0,s.default)(n.default,{placement:"top",title:"\u5df2\u7ed1\u5b9a\u7684\u5e94\u7528\u4e0d\u53ef\u4ee5\u91cd\u590d\u7ed1\u5b9a"},void 0,(0,s.default)(m.QuestionCircleOutlined,{style:{marginLeft:8}})))),(0,s.default)(E,{style:{marginTop:15},label:"\u670d\u52a1\u540d\u79f0"},void 0,t("bzTaskName",{rules:[{required:!0,min:0,max:64,message:"\u670d\u52a1\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"},{validator:this.handleCheckNameValidate}],initialValue:this.modelData.bzTaskName})(p.default.createElement(v.default,{disabled:"view"===this.props.viewType,ref:this.checkNameRef,source:"codeServiceInfo",style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u670d\u52a1\u540d\u79f0",modelId:this.props.modelId||"",updateNameCallback:this.getValBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\codeService\\editPage\\component\\CodeServiceInfo.jsx",lineNumber:194}}))),(0,s.default)(E,{style:{marginLeft:10,marginTop:18},label:"\u63cf\u8ff0\u4fe1\u606f"},void 0,t("bzTaskDesc",{rules:[{max:200,message:"\u63cf\u8ff0\u4fe1\u606f\u6700\u957f200\u5b57\u7b26"}],initialValue:this.modelData.bzTaskDesc})((0,s.default)(I,{disabled:"view"===this.props.viewType,autosize:{minRows:4,maxRows:6},style:{width:600,min:0,max:450},onBlur:function(t){return e.getDescBlur(t.target.value)},rows:4})))))},t}(p.default.PureComponent);t.default=(0,g.connect)((function(e){return{checkNameVerifyInfo:(0,b.selectVerifyInfo)(e)}}))(h.Form.create()(M))},"./src/module/modelService/codeService/listPage/ListManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=P(a("./node_modules/antd/es/table/index.js")),o=P(a("./node_modules/antd/es/button/index.js")),s=P(a("./node_modules/antd/es/tooltip/index.js")),r=P(a("./node_modules/babel-runtime/helpers/jsx.js")),i=P(a("./node_modules/antd/es/modal/index.js")),d=P(a("./node_modules/antd/es/message/index.js")),l=P(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=P(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=P(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=P(a("./node_modules/react/index.js")),f=(P(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./src/components/index.js"),g=a("./src/config/ui-config.js"),v=P(a("./src/redux/services/codeService.js")),y=a("./src/redux/reducers/auth.js"),b=P(a("./src/module/modelService/codeService/listPage/component/SearchBar.jsx")),x=P(a("./src/module/modelService/codeService/listPage/component/ExtendPage.jsx")),C=a("./src/utils/history.js"),j=P(a("./node_modules/dayjs/dayjs.min.js")),S=a("./src/styles/GlobalStyle.js"),I=a("./src/utils/commonUtil.js"),T=P(a("./src/redux/services/sysManager/projectManage.js")),w=a("./src/routes/routeHelper.jsx"),E=P(a("./src/redux/services/sysManager/gitManager.js")),D=a("./src/utils/authPermit.js"),M=a("./src/module/modelService/utils.js"),k=a("./src/redux/services/sysManager/flinkClusterService.js");function P(e){return e&&e.__esModule?e:{default:e}}var L=(0,r.default)("div",{},void 0,(0,r.default)("p",{},void 0,"\u8bf7\u5148\u7ed1\u5b9agit\u8d26\u53f7\u540e\u518d\u65b0\u589e\u7f16\u7801\u670d\u52a1\u3002")),N=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),A=(0,r.default)(m.PlusOutlined,{}),R=(0,r.default)(h.LoadingIndicator,{position:"relative"}),F=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.clickHandle=function(e,t){"delete"===t?n.deleteCodeService(e):"stop"===t?n.stop(e):"start"===t?n.start(e):"expand"===t?(n.modelId=e.id,n.actionId=e.actionId,n.setState({modalVisible:!0})):"code"!==t&&"predict"!==t||(e.pflag="code"===t?0:1,n.setState({jumpCodeLoading:!0}),v.default.jumpCodeModel(e).then((function(a){var o=_.get(a,"data");window.open(o,t+"-edit:"+e.id),n.setState({jumpCodeLoading:!1})})).catch((function(e){d.default.error(e.message),n.setState({jumpCodeLoading:!1})})))},n.openTask=function(e,t){(0,C.navigateTo)(w.modelServiceUrl.editCodeService(t,e.id))},n.fetchData=function(e){n.setState({loading:"intervalRefresh"!==e});var t=n.searchCond;v.default.getCodeServiceList(t).then((function(e){var t=e.data?_.get(e,"data"):[];n.setState({codeDataList:t,loading:!1})})).catch((function(e){n.setState({codeDataList:[],loading:!1}),d.default.error(e.message)}))},n.getGitUserInfo=function(){E.default.getGitByUserId((0,D.getUser)().userId).then((function(e){e.data?n.setState({hasBindGit:!0}):n.setState({hasBindGit:!1})})).catch((function(){n.setState({hasBindGit:!1})}))},n.changeSearchCond=function(e,t){"refresh"!==e?(n.searchCond[e]=_.trim(t),n.searchCond.offset=1,"businessType"===e&&(n.businessType=""),n.fetchData()):n.fetchData(t)},n.start=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u542f\u52a8\uff1a"+e.bzTaskName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){v.default.start(e).then((function(){n.fetchData(),d.default.success("\u542f\u52a8\u6210\u529f\uff01"),t()})).catch((function(e){a(),d.default.error(e.message)}))}))}})},n.stop=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u505c\u6b62\uff1a"+e.bzTaskName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){v.default.stop(e).then((function(){n.fetchData(),d.default.success("\u505c\u6b62\u6210\u529f\uff01"),t()})).catch((function(e){a(),d.default.error(e.message)}))}))}})},n.deleteCodeService=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.bzTaskName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){v.default.deleteCodeService(e.id).then((function(){n.fetchData(),d.default.success("\u5220\u9664\u6210\u529f\uff01"),t()})).catch((function(e){a(),d.default.error(e.message)}))}))}})},n.callModalVisible=function(){n.setState({modalVisible:!1})},n.delAnnotationTaskBases=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.taskName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){v.default.deleteAnnotationTask(e.taskId).then((function(){n.fetchData(),d.default.success("\u5220\u9664\u6210\u529f\uff01"),t()})).catch((function(e){a(),d.default.error(e.message)}))}))}})},n.submitModalOk=function(){n.extendPage.submitModalOk()},n.setExtendLoading=function(e){n.setState({extendLoading:e})},n.onChangePage=function(e,t){n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData()},n.handleCreate=function(){if(n.state.hasBindGit)(0,C.navigateTo)(w.modelServiceUrl.createCodeService());else{var e=n;i.default.warning({title:"\u672a\u7ed1\u5b9agit\u8d26\u53f7",content:L,onOk:function(){e.props.dispatch(y.authActions.showBindGit())}})}},n.fetchFlinkCLuster=function(){(0,k.getFlinkClusterList)({}).then((function(e){for(var t=_.get(e,"data.flinkInfoList"),a={},o=0;o<t.length;o++)a[t[o].flinkId]=t[o].flinkName;n.setState({flinkClusterMap:a})}))},n.state={modalVisible:!1,viewType:"",loading:!1,codeDataList:[],confirmLoading:!1,applicationsData:[],extendLoading:!1,jumpCodeLoading:!1,hasBindGit:!1,hasData:!0,flinkClusterMap:{}},n.modelId="",n.actionId="",n.columns=[{title:N,width:"7%",dataIndex:"id",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u670d\u52a1\u540d\u79f0",dataIndex:"bzTaskName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5f52\u5c5e\u5e94\u7528",dataIndex:"businessType",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6240\u5c5e\u6210\u5458",dataIndex:"createUser",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8ba1\u7b97\u8d44\u6e90",dataIndex:"bzTaskParamJson",ellipsis:!0,render:function(e){var t="--";if(e){var a=_.get(e,"service.resource"),o=(0,I.isJsonString)(a)?JSON.parse(a):a;t=(0,M.serviceQuotaFormat)(o,n.state.flinkClusterMap)}return(0,r.default)(s.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,j.default)(e).format("YYYY-MM-DD HH:mm:ss"):"--"},void 0,e?(0,j.default)(e).format("YYYY-MM-DD HH:mm:ss"):"--")}},{title:"\u8fd0\u884c\u65f6\u957f",dataIndex:"runtime",ellipsis:!0,width:85,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u72b6\u6001",dataIndex:"statu",ellipsis:!0,width:110,render:function(e,t){return 2===e?(0,r.default)(h.StateLabel,{source:"codeService",code:e}):(0,r.default)(s.default,{placement:"topLeft",title:t.message},void 0,(0,r.default)("div",{},void 0,(0,r.default)(h.StateLabel,{source:"codeService",code:e})))}},{title:"\u64cd\u4f5c",width:"230px",render:function(e,t){var a=t.statu,o=[];if(o.push({handleName:"\u67e5\u770b",handleAction:function(){(0,C.navigateTo)(w.modelServiceUrl.detailCodeService(t.id,"config"))}}),-1!==_.indexOf([2],a)&&t.createUser===(0,D.getUser)().userId&&o.push({handleName:"\u7f16\u7801",handleAction:function(){n.clickHandle(t,"code")}}),-1!==_.indexOf([1,2],a)&&o.push({handleName:"\u505c\u6b62",handleAction:function(){n.clickHandle(t,"stop")}}),-1!==_.indexOf([4],a)&&o.push({handleName:"\u542f\u52a8",handleAction:function(){n.clickHandle(t,"start")}}),-1!==_.indexOf([4,5],a)&&(o.push({handleName:"\u4fee\u6539",handleAction:function(){n.openTask(t,"edit")}}),o.push({handleName:"\u5220\u9664",handleAction:function(){n.clickHandle(t,"delete")}})),_.get(t,"bzTaskParamJson.service.mirrorId")&&_.get(t,"bzTaskParamJson.service.mirrorVersion")){var s=_.get(t,"newMirrorInfo");o.push({handleName:"\u67e5\u770b\u955c\u50cf",style:{display:"inline-block"},handleAction:w.modelMirrorUrl.versionDetail("train",s?_.get(s,"newMirrorId"):_.get(t,"bzTaskParamJson.service.mirrorId"),"process",s?_.get(s,"newVersionId"):_.get(t,"bzTaskParamJson.service.mirrorVersion")),handleType:"link"})}return(0,r.default)(h.ListButtons,{buttons:o,maxShowNum:3})}}],n.businessType=_.get(a,"location.state.applicationId",""),n.searchCond={businessType:n.businessType,statu:"",bzTaskName:"",owner:(0,D.getUser)().userId,sort:"createTime",offset:1,limit:10},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=this;this.fetchData(),this.fetchFlinkCLuster();v.default.getCodeServiceList({offset:1,limit:1}).then((function(t){var a=t.data?_.get(t,"data"):[];e.setState({hasData:a.list&&Array.isArray(a.list)&&a.list.length>0})})).catch((function(){e.setState({hasData:!1})})),this.getGitUserInfo(),T.default.getApplicationsDropDown().then((function(t){t&&e.setState({applicationsData:t.data})})).catch((function(e){d.default.error(e.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.loading,s=t.codeDataList,i=t.modalVisible,d=t.extendLoading,l=t.applicationsData,u=t.jumpCodeLoading;return a||this.state.hasData?(0,r.default)(S.PageWrapper,{},void 0,(0,r.default)(h.ModalView,{modalTitle:"\u5728\u7ebf\u6269\u7f29\u5bb9",onCancelType:!1,width:700,callVisible:this.callModalVisible,modalVisible:i,okText:"\u4fdd \u5b58",confirmLoading:d,submitModalOk:function(){e.extendPage.submitModalOk()},comp:(0,r.default)(x.default,{onRef:function(t){e.extendPage=t},setExtendLoading:this.setExtendLoading,id:this.modelId,actionId:this.actionId,callVisible:this.callModalVisible})}),!a&&(0,r.default)(S.PageHeader,{className:this.businessType?"right":""},void 0,(!this.businessType||0===this.state.codeDataList.length)&&(0,r.default)(o.default,{onClick:this.handleCreate,type:"primary",className:"saveButton"},void 0,A,"\u65b0\u589e\u7f16\u7801\u670d\u52a1"),(0,r.default)(b.default,{applicationsData:l,businessType:this.searchCond.businessType,status:this.searchCond.statu,statusColorMap:g.CODE_SERVICE_STATUS,sort:this.searchCond.sort,owner:this.searchCond.owner,onChange:this.changeSearchCond})),(0,r.default)(S.PageBody,{},void 0,(0,r.default)(S.TableWrapper,{},void 0,a&&R,!a&&(0,r.default)(n.default,{loading:u,dataSource:_.get(s,"list"),rowKey:"id",bordered:!0,pagination:!1,columns:this.columns}),(0,r.default)("div",{style:{margin:"1.5%",textAlign:"right"}},void 0,(0,r.default)(h.TabPagination,{currentPage:_.get(s,"pageNum"),pageSize:10,total:_.get(s,"total"),onChange:this.onChangePage}))))):(0,r.default)(h.NoDataCreate,{from:"codeService",appId:this.businessType,onCreate:this.handleCreate})},t}(p.default.Component);t.default=(0,f.connect)((function(){return{}}))(F)},"./src/module/modelService/codeService/listPage/component/ExtendPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ExtendPagePage=void 0;var n=v(a("./node_modules/antd/es/input/index.js")),o=v(a("./node_modules/antd/es/col/index.js")),s=v(a("./node_modules/antd/es/row/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/antd/es/message/index.js")),d=v(a("./node_modules/antd/es/modal/index.js")),l=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=v(a("./node_modules/react/index.js")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(v(a("./node_modules/prop-types/index.js")),v(a("./src/redux/services/codeService.js"))),g=a("./node_modules/react-redux/es/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=t.ExtendPagePage=m.default.div.withConfig({displayName:"ExtendPage__ExtendPagePage",componentId:"sc-1yeigkn-0"})([".icon{font-size:16px;color:#a2b0c4;margin-left:16px;}"]),y=(0,r.default)(f.QuestionCircleOutlined,{className:"icon",title:"\u8bf7\u586b\u5199\u5b9e\u4f8b\u4e2a\u6570"}),b=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.onRef(n)},n.submitModalOk=function(){var e=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4fdd\u5b58\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){e.props.setExtendLoading(!0),h.default.extendModelInference(n.props.id,n.props.actionId,n.state.num).then((function(t){e.props.setExtendLoading(!1),i.default.success(t.message),e.props.callVisible()})).catch((function(t){e.props.setExtendLoading(!1),i.default.error(t.message)}))}})},n.getBlur=function(e){n.setState({num:e})},n.state={num:1},n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this;return(0,r.default)(_,{},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:24},void 0,(0,r.default)("span",{style:{marginLeft:20,marginRight:16}},void 0,"\u5b9e\u4f8b\u4e2a\u6570 :"),(0,r.default)(n.default,{placeholder:"\u8bf7\u586b\u5199\u5b9e\u4f8b\u4e2a\u6570",style:{width:"250px"},value:this.state.num,onChange:function(t){e.getBlur(t.target.value)}}),y)))},t}(p.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(b)},"./src/module/modelService/codeService/listPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/antd/es/input/index.js")),d=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=g(a("./node_modules/react/index.js")),u=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-redux/es/index.js"),p=a("./src/module/modelService/codeService/modelEnums.js"),f=a("./src/utils/authPermit.js"),m=g(a("./src/redux/services/sysManager/projectManage.js")),h=a("./src/components/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=d.default.Option,y=i.default.Search,b=u.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-1a7j7rd-0"})(["display:flex;align-items:center;.sortType-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),x=u.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"sc-1a7j7rd-1"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;"],(function(e){return e.color})),C={width:"130px"},j={width:"130px"},S=(0,n.default)(v,{value:""},void 0,"\u5168\u90e8\u5e94\u7528"),I=(0,n.default)(v,{value:"createTime"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),T=(0,n.default)(v,{value:"bzTaskName"},void 0,"\u6309\u540d\u79f0\u6392\u5e8f"),w=(0,n.default)(v,{value:""},void 0,"\u5168\u90e8\u6210\u5458"),E=(0,n.default)(v,{value:""},void 0,"\u5168\u90e8\u72b6\u6001"),D=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("bzTaskName",e)},n.searchOnBlur=function(e){n.props.onChange("bzTaskName",e.target.value)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.selectProjectMember=function(){n.projectId&&m.default.getProjectUserList(n.projectId).then((function(e){var t=e.data;n.setState({projectMember:t})}))},n.state={projectMember:[]},n.changeBusiType=n.changeSelect("businessType"),n.changeServiceId=n.changeSelect("serviceId"),n.changeStatus=n.changeSelect("statu"),n.changeSortField=n.changeSelect("sort"),n.changeMember=n.changeSelect("owner");var r=(0,f.getCurrentContext)().id;return n.projectId=r,n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.selectProjectMember()},t.prototype.render=function(){var e=this;return(0,n.default)(b,{className:"search-bar"},void 0,(0,n.default)(h.RefreshButton,{onRefresh:this.props.onChange}),(0,n.default)(d.default,{onChange:this.changeBusiType,style:C,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528",defaultValue:this.props.businessType,className:"sortType-cond",filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,S,this.props.applicationsData.map((function(e){return(0,n.default)(v,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)}))),(0,n.default)(d.default,{onChange:this.changeSortField,style:C,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sort,className:"sortType-cond"},void 0,I,T),(0,n.default)(d.default,{onChange:this.changeMember,style:C,placeholder:"\u6240\u5c5e\u6210\u5458",defaultValue:this.props.owner,className:"sortType-cond"},void 0,w,this.state.projectMember.map((function(e){return(0,n.default)(v,{value:e.userId},e.userId,e.userName)}))),(0,n.default)(d.default,{onChange:this.changeStatus,style:j,placeholder:"\u9009\u62e9\u72b6\u6001",defaultValue:""===this.props.status?"":parseInt(this.props.status),className:"sortType-cond"},void 0,E,p.CODE_SERVICE_STATUS.getValueAndDescList().map((function(t,a){return 6!==t.code&&(0,n.default)(v,{value:t.code},a,(0,n.default)(x,{color:e.props.statusColorMap[t.code]}),t.desc)}))),(0,n.default)(y,{placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}}))},t}(l.default.Component);t.default=(0,c.connect)((function(){return{}}))(D)},"./src/module/modelService/codeService/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.INTERFACE_TYPE=t.PUBLISH_TO=t.CODE_SELECT_FILE_TYPE=t.RUN_ENGINE=t.CODE_SERVICE_STATUS=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.CODE_SERVICE_STATUS=(0,s.default)({STARTING:[1,"\u542f\u52a8\u4e2d"],RUNNING:[2,"\u6b63\u5e38\u8fd0\u884c"],STOPPING:[3,"\u505c\u6b62\u4e2d"],STOPPED:[4,"\u5df2\u505c\u6b62"],ERROR:[5,"\u53d1\u751f\u9519\u8bef"],BUILDING:[6,"\u6784\u5efa\u4e2d"]}),i=t.RUN_ENGINE=(0,s.default)({CPU:[1,"CPU"],GPU:[2,"GPU"],SPARK:[3,"Spark"]});t.default={CODE_SERVICE_STATUS:r,RUN_ENGINE:i};t.CODE_SELECT_FILE_TYPE=(0,s.default)({ONLINE:[0,"\u5728\u7ebf\u63a8\u7406\u63a5\u53e3"],FLOW:[2,"\u6d41\u5f0f\u63a8\u7406\u63a5\u53e3"],DATA:[3,"\u6570\u636e\u6587\u4ef6"],OTHER_FILE:[-1,"\u5176\u4ed6\u6587\u4ef6"]}),t.PUBLISH_TO=(0,s.default)({MODEL:["model","\u6a21\u578b"],TEMPLATE:["template","\u8bad\u7ec3\u6a21\u677f"]}),t.INTERFACE_TYPE=(0,s.default)({ONLINE:["online_reasoning_code","\u5728\u7ebf\u63a8\u7406"]})},"./src/module/modelService/codeService/publishCode/FileTreeTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/tooltip/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/antd/es/message/index.js")),r=g(a("./node_modules/babel-runtime/helpers/extends.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=g(a("./node_modules/react/index.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./src/components/index.js"),m=a("./src/module/modelService/codeService/modelEnums.js"),h=a("./src/module/modelService/codeService/utils.js");g(a("./node_modules/prop-types/index.js"));function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.Option,y=m.CODE_SELECT_FILE_TYPE.getValueAndDescList(),b=(0,o.default)(v,{value:""},void 0,"\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"),x=function(e){function t(a){(0,i.default)(this,t);var l=(0,d.default)(this,e.call(this,a));l._filterFileTypeOptions=function(e){for(var t=[],a=l.props.publish2Type,n={code:m.CODE_SELECT_FILE_TYPE.ONLINE,desc:m.CODE_SELECT_FILE_TYPE.getDescFromValue(m.CODE_SELECT_FILE_TYPE.ONLINE)},o={code:m.CODE_SELECT_FILE_TYPE.OFFLINE,desc:m.CODE_SELECT_FILE_TYPE.getDescFromValue(m.CODE_SELECT_FILE_TYPE.OFFLINE)},s={code:m.CODE_SELECT_FILE_TYPE.FLOW,desc:m.CODE_SELECT_FILE_TYPE.getDescFromValue(m.CODE_SELECT_FILE_TYPE.FLOW)},r=0;r<y.length;r++){var i=y[r];[m.CODE_SELECT_FILE_TYPE.ONLINE,m.CODE_SELECT_FILE_TYPE.OFFLINE,m.CODE_SELECT_FILE_TYPE.FLOW].includes(i.code)?e.path.endsWith(".py")&&(Object.values(l.state.selectedTypesMap).includes(m.CODE_SELECT_FILE_TYPE.ONLINE)||Object.values(l.state.selectedTypesMap).includes(m.CODE_SELECT_FILE_TYPE.OFFLINE)||Object.values(l.state.selectedTypesMap).includes(m.CODE_SELECT_FILE_TYPE.FLOW)?(i.code===m.CODE_SELECT_FILE_TYPE.ONLINE&&l.state.selectedTypesMap[e.path]===m.CODE_SELECT_FILE_TYPE.ONLINE&&Object.values(l.state.selectedTypesMap).includes(m.CODE_SELECT_FILE_TYPE.ONLINE)||i.code===m.CODE_SELECT_FILE_TYPE.OFFLINE&&l.state.selectedTypesMap[e.path]===m.CODE_SELECT_FILE_TYPE.OFFLINE&&Object.values(l.state.selectedTypesMap).includes(m.CODE_SELECT_FILE_TYPE.OFFLINE)||i.code===m.CODE_SELECT_FILE_TYPE.FLOW&&l.state.selectedTypesMap[e.path]===m.CODE_SELECT_FILE_TYPE.FLOW&&Object.values(l.state.selectedTypesMap).includes(m.CODE_SELECT_FILE_TYPE.FLOW))&&(t.push(n),t.push(o),"flow"===l.props.codeType&&a===m.PUBLISH_TO.MODEL&&t.push(s)):i.code===m.CODE_SELECT_FILE_TYPE.FLOW?"flow"===l.props.codeType&&a===m.PUBLISH_TO.MODEL&&t.push(i):t.push(i)):t.push(i)}return t},l.setTreeTableViewValidateFunc=function(e,t){l.fileTreeTableFuncs[e]=t},l.addParentKeyWrapper=function(e){var t=[],a=JSON.parse(JSON.stringify(e));return function e(t,a){t&&t.forEach((function(t){var n=t.children,o=t.path;t.parent=a,n&&n.length>0&&e(n,o)}))}(a,null),l.setState({checkedIds:t,selectedKeys:t}),a},l.validateFun=function(){var e=l.fileTreeTableFuncs.treeTableView.call(),t=Object.values(l.state.selectedTypesMap).filter((function(e){return[m.CODE_SELECT_FILE_TYPE.ONLINE,m.CODE_SELECT_FILE_TYPE.OFFLINE,m.CODE_SELECT_FILE_TYPE.FLOW].includes(e)}));return e.moduleData.length>0&&t.length>0?{validate:!0,moduleData:{modelFiles:(0,h.filterTree)(l.state.modelFiles,e.moduleData,{},(0,r.default)({},l.state.selectedTypesMap),!0)},reasonType:t}:(s.default.error("\u672a\u52fe\u9009\u63a8\u7406\u63a5\u53e3\u6587\u4ef6"),{validate:!1,moduleData:{modelFiles:l.state.modelFiles}})},l.changeDataType=function(e,t){var a;l.setState({selectedTypesMap:(0,r.default)({},l.state.selectedTypesMap,(a={},a[e]=t,a))})},l.handleSelectedKeysChange=function(e){var t=(0,r.default)({},l.state.selectedTypesMap);for(var a in t)e.includes(a)||delete t[a];l.setState({selectedKeys:e,selectedTypesMap:t})},l.state={checkedIds:[],modelFiles:[],loading:!1,selectedKeys:[],selectedTypesMap:{}},l.columns=[{title:"\u6587\u4ef6\u540d\u79f0",width:"150px",dataIndex:"name",ellipsis:!0,render:function(e){return(0,o.default)(n.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6587\u4ef6\u5206\u7c7b",dataIndex:"type",width:"90px",render:function(e){var t={file:"\u6587\u4ef6",directory:"\u76ee\u5f55"};return t[e]?t[e]:"\u672a\u77e5"}},{title:"\u6587\u4ef6\u5927\u5c0f",width:"110px",dataIndex:"size",render:function(e){return e||0===e?e+" byte":"--"}},{title:"\u6587\u4ef6\u7c7b\u578b",dataIndex:"fileType",width:"90px",render:function(e,t){if("file"!==t.type||!l.state.selectedKeys.includes(t.path))return null;var a=l._filterFileTypeOptions(t);return(0,o.default)(u.default,{style:{width:150},onChange:function(e){return l.changeDataType(t.path,e)},placeholder:"\u9009\u62e9\u6587\u4ef6\u7c7b\u578b"},void 0,b,a.map((function(e,t){return(0,o.default)(v,{value:e.code},t,e.desc)})))}}],l.modelData=[];var c=l.props.setValidateFunc;return _.isFunction(c)&&c("fileTreeTable",l.validateFun),l.fileTreeTableFuncs={},l}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.setState({modelFiles:this.addParentKeyWrapper(this.props.modelFiles),loading:!0})},t.prototype.componentDidUpdate=function(e){_.isEqual(this.props.modelFiles,e.modelFiles)||this.setState({modelFiles:this.addParentKeyWrapper(this.props.modelFiles),loading:!0})},t.prototype.render=function(){return this.state.loading&&(0,o.default)(f.NewTreeTableView,{checkedIds:this.state.checkedIds,rowKey:"path",columns:this.columns,data:this.state.modelFiles,onSelectedKeysChange:this.handleSelectedKeysChange,setTreeTableViewValidateFunc:this.setTreeTableViewValidateFunc})},t}(c.default.Component);t.default=(0,p.connect)((function(){return{}}))(x)},"./src/module/modelService/codeService/publishCode/PublishCodePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=E(a("./node_modules/antd/es/alert/index.js")),o=E(a("./node_modules/antd/es/button/index.js")),s=E(a("./node_modules/antd/es/row/index.js")),r=E(a("./node_modules/babel-runtime/helpers/jsx.js")),i=E(a("./node_modules/babel-runtime/helpers/extends.js")),d=E(a("./node_modules/antd/es/message/index.js")),l=E(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=E(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=E(a("./node_modules/babel-runtime/helpers/inherits.js")),p=E(a("./node_modules/antd/es/radio/index.js")),f=E(a("./node_modules/antd/es/select/index.js")),m=E(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var h=E(a("./node_modules/react/index.js")),g=E(a("./node_modules/lodash/lodash.js")),v=(E(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),_=E(a("./src/redux/services/trainTemplate.js")),y=a("./src/module/modelService/codeService/publishCode/styled.jsx"),b=a("./src/utils/history.js"),x=a("./src/routes/routeHelper.jsx"),C=a("./src/module/modelService/codeService/modelEnums.js"),j=E(a("./src/redux/services/modelVersion.js")),S=E(a("./src/redux/services/modelBase.js")),I=E(a("./src/redux/services/codeService.js")),T=a("./src/module/modelBase/modelEnums.js"),w=E(a("./src/module/modelService/codeService/publishCode/FileTreeTable.jsx"));function E(e){return e&&e.__esModule?e:{default:e}}var D=m.default.Item,M=f.default.Option,k=p.default.Group,P=C.PUBLISH_TO.getValueAndDescList(),L=(0,r.default)(n.default,{message:"\u82e5\u5df2\u6709\u8be5\u7c7b\u578b\u63a5\u53e3\uff0c\u65b0\u5f00\u53d1\u5e76\u53d1\u5e03\u7684\u63a5\u53e3\u6587\u6863\u5c06\u8fdb\u884c\u8986\u76d6",type:"warning",showIcon:!0}),N=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.fetchModelList=function(){n.setState({modelLoading:!0}),S.default.getModelBaseList({repoId:"default",sortType:"CREATE_AT.DESC",busiType:n.appId}).then((function(e){n.setState({modelList:e.data,modelLoading:!1})})).catch((function(e){throw n.setState({modelLoading:!1}),e}))},n.fetchTemplateList=function(){n.setState({templateLoading:!0}),_.default.getTrainTemplateList().then((function(e){n.setState({templateList:g.default.get(e,"data.list",[])||[],templateLoading:!1})})).catch((function(e){throw n.setState({templateLoading:!1}),e}))},n.fetchModelVersionList=function(e){n.setState({versionLoading:!0}),j.default.getModelVersionList({modelId:e,status:[T.MODEL_VERSION_STATUS.WAIT_DEPLOY,T.MODEL_VERSION_STATUS.DEPLOYED],sortBy:"CREATE_AT.DESC"}).then((function(e){n.setState({modelVersionList:e.data,versionLoading:!1}),n.formRef.current.setFieldsValue({templateVersionId:g.default.get(e,"data[0].modelVersionId")})})).catch((function(e){throw n.setState({versionLoading:!1}),e}))},n.fetchTemplateVersionList=function(e){n.setState({versionLoading:!0}),_.default.getTemplateVersionList(e).then((function(e){var t=e.data.filter((function(e){return["SUCCESS","ONLINE","OFFLINE"].includes(e.templateStatus)}));n.setState({templateVersionList:t,versionLoading:!1}),n.formRef.current.setFieldsValue({templateVersionId:g.default.get(t,"[0].templateVersionId")})})).catch((function(e){throw n.setState({versionLoading:!1}),e}))},n.fetchModelTrees=function(){n.codeServiceId&&I.default.getModelTrees(n.codeServiceId).then((function(e){var t=e.data||[];n.setState({modelFiles:t})})).catch((function(e){throw e}))},n.submit=function(){var e={},t=!0,a=[];Object.keys(n.validateFuncs).map((function(o){var s=n.validateFuncs[o];if(g.default.isFunction(s)){var r=s.call();"fileTreeTable"===o&&(a=r.reasonType),e=g.default.merge(e,r.moduleData),t&&(t=r.validate)}})),t&&n.formRef.current.validateFields().then((function(t){var o=t.modelId,s=t.modelVersionId,r=t.templateId,i=t.templateVersionId;if(n.setState({confirmLoading:!0}),n.state.publish2Type===C.PUBLISH_TO.MODEL){var l,u=(l={},l[C.CODE_SELECT_FILE_TYPE.ONLINE]="online_reasoning_code",l[C.CODE_SELECT_FILE_TYPE.OFFLINE]="offline_reasoning_code",l[C.CODE_SELECT_FILE_TYPE.FLOW]="streaming_reasoning_code",l)[a[0]]||"offline_reasoning_code";j.default.importModelInterface(o,s,{publishSourceId:n.codeServiceId,fileStruct:g.default.get(e,"modelFiles",[]),fileSource:"code_service_upload",fileType:u}).then((function(){d.default.success("\u4fdd\u5b58\u6267\u884c\u6210\u529f\uff01"),(0,b.navigateTo)(x.modelBaseUrl.viewModel(o,s))})).catch((function(e){throw n.setState({confirmLoading:!1}),e}))}else{var c,p=(c={},c[C.CODE_SELECT_FILE_TYPE.ONLINE]="PREDICT",c[C.CODE_SELECT_FILE_TYPE.OFFLINE]="OFFLINE_PREDICT",c)[a[0]]||"OFFLINE_PREDICT";I.default.publishModelInterface({templateId:r,templateVersionId:i,anbModelId:n.codeServiceId,codeType:p,codeFiles:g.default.get(e,"modelFiles",[])}).then((function(){d.default.success("\u4fdd\u5b58\u6267\u884c\u6210\u529f\uff01"),(0,b.navigateTo)(x.trainTemplateUrl.detail(r,i)),n.setState({confirmLoading:!1})})).catch((function(e){throw n.setState({confirmLoading:!1}),e}))}}))},n.saveTemplate=function(e){n.setState({saveLoading:!0}),_.default.updateTrainTemplateInfo((0,i.default)({},n.state.templateInfo,e)).then((function(){n.setState({saveLoading:!1}),d.default.success("\u4fdd\u5b58\u6210\u529f!"),setTimeout((function(){return(0,b.navigateTo)(x.trainTemplateUrl.list())}),2e3)})).catch((function(e){throw n.setState({saveLoading:!1}),e}))},n.handlePublishToChange=function(e){n.setState({publish2Type:e.target.value})},n.handleModelChange=function(e){n.fetchModelVersionList(e)},n.handleTemplateChange=function(e){n.fetchTemplateVersionList(e)},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.state={publish2Type:P[0].code,modelLoading:!1,templateLoading:!1,versionLoading:!1,modelList:[],modelVersionList:[],templateList:[],templateVersionList:[],modelFiles:[]},n.formRef=h.default.createRef(),n.validateFuncs={};var o=(0,b.parseParms)(a.location);return n.codeServiceId=g.default.get(o,"serviceId"),n.appId=g.default.get(o,"appId"),n.codeType=g.default.get(o,"codeType"),n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchModelTrees(),this.fetchModelList(),this.fetchTemplateList()},t.prototype.render=function(){var e=this.state,t=e.publish2Type,a=e.modelList,n=e.modelVersionList,i=e.templateList,d=e.templateVersionList,l=e.modelLoading,u=e.templateLoading,c=e.versionLoading,g=e.modelFiles,_={width:200};return(0,r.default)(y.PageWrapper,{},void 0,h.default.createElement(m.default,{name:"basic",ref:this.formRef,onFinish:this.submit,initialValues:{publish2Type:t},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\codeService\\publishCode\\PublishCodePage.jsx",lineNumber:248}},(0,r.default)(v.ModelConfigPanel,{title:"\u53d1\u5e03\u5bf9\u8c61"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(D,{name:"publish2Type",label:"\u53d1\u5e03\u5bf9\u8c61",required:!0},void 0,(0,r.default)(k,{onChange:this.handlePublishToChange},void 0,P.map((function(e){return(0,r.default)(p.default,{value:e.code,style:_},e.code,e.desc)}))))),t===C.PUBLISH_TO.MODEL?(0,r.default)(s.default,{},void 0,(0,r.default)(D,{label:"\u6a21\u578b",name:"modelId",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6a21\u578b\uff01"}]},void 0,(0,r.default)(f.default,{showSearch:!0,loading:l,onChange:this.handleModelChange,filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},style:_},void 0,a.map((function(e){return(0,r.default)(M,{value:e.modelId,style:_},e.modelId,e.modelName)})))),(0,r.default)(D,{label:"\u7248\u672c",name:"modelVersionId",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c\uff01"}]},void 0,(0,r.default)(f.default,{loading:c,style:_},void 0,n.map((function(e){return(0,r.default)(M,{value:e.versionId},e.versionId,e.versionName)}))))):(0,r.default)(s.default,{},void 0,(0,r.default)(D,{label:"\u8bad\u7ec3\u6a21\u677f",name:"templateId",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bad\u7ec3\u6a21\u677f\uff01"}]},void 0,(0,r.default)(f.default,{showSearch:!0,loading:u,onChange:this.handleTemplateChange,filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},style:_},void 0,i.map((function(e){return(0,r.default)(M,{value:e.templateId},e.templateId,e.templateName)})))),(0,r.default)(D,{label:"\u7248\u672c",name:"templateVersionId",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c\uff01"}]},void 0,(0,r.default)(f.default,{loading:c,style:_},void 0,d.map((function(e){return(0,r.default)(M,{value:e.templateVersionId},e.templateVersionId,e.templateVersionName)})))))),(0,r.default)(v.ModelConfigPanel,{title:"\u63a5\u53e3\u6587\u4ef6"},void 0,(0,r.default)(D,{label:"\u63a5\u53e3\u6587\u4ef6"},void 0,(0,r.default)(w.default,{publish2Type:t,setValidateFunc:this.setValidateFunc,modelFiles:g,requiredFolder:"notebooks",codeType:this.codeType})))),L,(0,r.default)(y.ButtonDom,{},void 0,(0,r.default)(o.default,{onClick:this.cancel},void 0,"\u53d6\u6d88"),(0,r.default)(o.default,{onClick:this.submit,style:{marginLeft:"10px"},type:"primary",loading:this.state.confirmLoading},void 0,"\u4fdd\u5b58")))},t}(h.default.Component);t.default=N},"./src/module/modelService/codeService/publishCode/styled.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.PageWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.PageWrapper=s.default.div.withConfig({displayName:"styled__PageWrapper",componentId:"wan20m-0"})(["width:100%;background:#fff;padding:16px;.ant-input[disabled],.ant-input[disabled]:hover{z-index:10;}.ant-form-inline .ant-form-item{margin-right:0;}.ant-form-item-label{width:70px;}.ant-legacy-form-item-label{width:80px;}.mirror-build .ant-legacy-form-item-label{width:70px;}"]),t.ButtonDom=s.default.div.withConfig({displayName:"styled__ButtonDom",componentId:"wan20m-1"})(["height:42px;text-align:right;padding-top:10px;margin-top:30px;margin-left:-16px;margin-right:-16px;padding-right:16px;"])},"./src/module/modelService/codeService/utils.js":function(e,t,a){"use strict";t.__esModule=!0,t.filterTree=void 0;var n,o=a("./node_modules/babel-runtime/helpers/extends.js"),s=(n=o)&&n.__esModule?n:{default:n};t.filterTree=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!t.length)return[];var i=t,d=Array.isArray(i),l=0;for(i=d?i:i[Symbol.iterator]();;){var u;if(d){if(l>=i.length)break;u=i[l++]}else{if((l=i.next()).done)break;u=l.value}var c=u;if(a.includes(c.path)){var p=(0,s.default)({},c);(o[c.path]||0===o[c.path])&&(p.fileType=r&&[0,1,2].includes(o[c.path])?6:o[c.path]),Reflect.deleteProperty(p,"children"),n.children||(n.children=[]),n.children.push(p),c.children&&c.children.length&&e(c.children,a,p,o,r)}}return n.children}},"./src/module/modelService/components/AvailableQuota.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.renderGpu=void 0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),o(a("./node_modules/prop-types/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"AvailableQuota__PageWrapper",componentId:"sc-136mktw-0"})(["display:flex;margin-bottom:8px;border-bottom:1px solid #e8e8e8;color:#147bd1;.page-title{margin:0 16px 0 36px;}.span__wrapper{display:flex;&:not(:last-child){margin-right:24px;}&.last-child{margin-right:0;}}"]),r=t.renderGpu=function(e){return!Array.isArray(e)||0===e.length||_.every(e,{gpuNumber:0})?0:e.map((function(e){return e.gpuModelId&&e.gpuNumber>0&&(0,n.default)("span",{style:{marginRight:16}},e.gpuModelId,e.gpuNumber,"*",e.gpuModelName)}))},i=(0,n.default)("span",{className:"page-title"},void 0,"\u5269\u4f59:"),d=(0,n.default)("span",{className:"span__label"},void 0,"CPU\uff1a"),l=(0,n.default)("span",{className:"span__label"},void 0,"\u5185\u5b58\uff1a"),u=(0,n.default)("span",{className:"span__label"},void 0,"GPU\uff1a");t.default=function(e){var t=e.quotaInfo,a=_.get(t,"gpu",[])||[];return(0,n.default)(s,{},void 0,i,(0,n.default)("span",{className:"span__wrapper"},void 0,d,(0,n.default)("span",{className:"span__item"},void 0,_.get(t,"cpu",0),"C")),(0,n.default)("span",{className:"span__wrapper"},void 0,l,(0,n.default)("span",{className:"span__item"},void 0,_.get(t,"memory",0),"GB")),(0,n.default)("span",{className:"span__wrapper last-child"},void 0,u,(0,n.default)("span",{className:"span__item",style:{display:"flex",flexWrap:"wrap"}},void 0,r(a))))}},"./src/module/modelService/components/ConfigStartParams.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/row/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/extends.js")),r=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=g(a("./node_modules/babel-runtime/helpers/inherits.js")),l=g(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var u=g(a("./node_modules/react/index.js")),c=g(a("./node_modules/lodash/lodash.js")),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(a("./node_modules/prop-types/index.js"),g(a("./src/module/modelMirror/components/EnvVariables.jsx"))),h=a("./src/components/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=l.default.TextArea,_=f.default.div.withConfig({displayName:"ConfigStartParams__Wrapper",componentId:"sc-1ie408s-0"})(["display:flex;flex-direction:column;"]),y={marginTop:16},b={width:"100%"},x={width:"100%",minWidth:"600px",marginTop:6},C=p.Form.Item,j=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:n.state.moduleData}},n.handleParamsChange=function(e,t){n.setState((function(a){var n=(0,s.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},n.state={moduleData:a.moduleData};var o=n.props.setValidateFunc;return c.default.isFunction(o)&&o("configStartParams",n.validateFun),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.componentDidUpdate=function(e){c.default.isEqual(e.moduleData,this.props.moduleData)||this.setState({moduleData:this.props.moduleData})},t.prototype.render=function(){var e=this,t=this.state.moduleData,a=this.props.form.getFieldDecorator;return(0,o.default)(_,{},void 0,(0,o.default)(h.ModelConfigPanel,{title:"\u914d\u7f6e\u542f\u52a8\u53c2\u6570",style:b,collapse:!0,onToggleExpand:function(t){e.setState({panelCollapse:t})}},void 0,(0,o.default)(p.Form,{layout:"inline",labelAlign:"right"},void 0,(0,o.default)(m.default,{getFieldDecorator:a,wrapStyle:y,labelText:"\u73af\u5883\u53d8\u91cf",envVariables:t.deployEnvs,onMirrorChange:function(t){e.handleParamsChange("deployEnvs",t)}}),(0,o.default)(n.default,{style:y},void 0,(0,o.default)(C,{label:"\u542f\u52a8\u547d\u4ee4",className:"sm-label"},void 0,a("deployStartcommand",{rules:[{required:!1}],initialValue:t.deployStartcommand})((0,o.default)(v,{autoSize:{minRows:3,maxRows:5},style:x,placeholder:"\u8bf7\u8f93\u5165\u542f\u52a8\u547d\u4ee4",onChange:function(t){return e.handleParamsChange("deployStartcommand",t.target.value)}})))))))},t}(u.default.Component);t.default=p.Form.create()(j)},"./src/module/modelService/components/ReassignResourceQuota.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=C(a("./node_modules/antd/es/button/index.js")),r=C(a("./node_modules/antd/es/row/index.js")),i=C(a("./node_modules/babel-runtime/helpers/jsx.js")),d=C(a("./node_modules/babel-runtime/helpers/extends.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js")),p=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=C(a("./node_modules/react/index.js")),m=C(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=(a("./node_modules/prop-types/index.js"),C(a("./src/module/modelService/components/AvailableQuota.jsx"))),_=a("./src/redux/services/modelService.js"),y=a("./src/utils/authPermit.js"),b=C(a("./src/redux/services/sysManager/projectManage.js")),x=a("./src/components/index.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=h.Form.Item,S={width:"100%",position:"relative"},I=g.default.div.withConfig({displayName:"ReassignResourceQuota__ExpansionWrapper",componentId:"sc-13a6172-0"})(["display:flex;flex-direction:column;.icon{font-size:16px;color:#a2b0c4;cursor:pointer;margin-left:5px;}.block__wrapper{display:flex;flex-direction:column;margin-top:20px;}.block__title{display:flex;margin-bottom:15px;text-indent:20px;line-height:16px;border-left:3px solid rgb(20,123,209);}.ant-form{margin-left:32px;margin-bottom:20px;}.help{margin-left:5px;width:14px;height:14px;border:1px solid #a2b0c4;display:inline-block;border-radius:50%;text-align:center;line-height:1;cursor:pointer;}.available__resource{.ant-form{margin-left:0;margin-bottom:0;}.ant-form-item-control-wrapper{width:auto;}.ant-divider-horizontal{margin:10px 0;}}.span__item{margin-left:10px;}.span__label{margin-right:2px;}"]),T=g.default.div.withConfig({displayName:"ReassignResourceQuota__ButtonDom",componentId:"sc-13a6172-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),w=p.default.Option,E=(n=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));o.call(n);var s=(0,y.getCurrentContext)(),r=s.role,i=s.id;"PROJECT"===r&&(n.projectId=i);var c=m.default.get(a.modelInfo,"instance",1)||1,p=m.default.attempt(JSON.parse.bind({},a.modelInfo.deployConfig))||{};return n.state={availableQuota:{},surplusQuota:{},requestQuota:(0,d.default)({},p,{instances_min:c}),instancesCount:1,saveLoading:!1,showAvailableRes:!0},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,n=a.requestQuota,o=a.surplusQuota,d=a.instancesCount;return(0,i.default)(I,{},void 0,(0,i.default)(x.ModelConfigPanel,{title:"\u5b9e\u4f8b\u914d\u7f6e",style:S},void 0,(0,i.default)("div",{className:"available__resource"},void 0,(0,i.default)(v.default,{quotaInfo:o})),(0,i.default)(h.Form,{layout:"inline",labelAlign:"left",hideRequiredMark:!0},void 0,(0,i.default)(r.default,{},void 0,(0,i.default)(j,{label:"CPU\uff08core\uff09"},void 0,n.cpu),(0,i.default)(j,{label:"\u5185\u5b58\uff08GB\uff09"},void 0,n.memory),(0,i.default)(j,{label:"GPU"},void 0,Array.isArray(n.gpu)&&n.gpu.length>0?n.gpu.map((function(e){return e.gpuModelId&&(0,i.default)("span",{style:{marginRight:16}},e.gpuModelId,e.gpuNumber,"*",e.gpuModelName)})):0)),(0,i.default)(j,{label:"\u5b9e\u4f8b\u4e2a\u6570",className:"include__help"},void 0,t("instances_min",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5b9e\u4f8b\u4e2a\u6570"}],initialValue:n.instances_min})((0,i.default)(p.default,{placeholder:"\u8bf7\u9009\u62e9\u5b9e\u4f8b\u4e2a\u6570",onChange:function(t){return e.handleInfoChange("instances_min",t)},style:{width:"130px"}},void 0,new Array(d).fill(1).map((function(e,t){return(0,i.default)(w,{value:t+1},t,t+1)}))))))),(0,i.default)(T,{},void 0,(0,i.default)(s.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,i.default)(s.default,{loading:this.state.saveLoading,onClick:this.saveExpansion,style:{marginLeft:10},type:"primary"},void 0,"\u786e\u5b9a")))},t}(f.default.Component),o=function(){var e=this;this.fetchData=function(){b.default.getProjectAvailableQuota(m.default.get(e.props.modelInfo,"deployEnvType","PRODUCT"),e.projectId).then((function(t){for(var a=e.state.requestQuota,n=m.default.get(t.data,"[0].quotaSetting",{cpu:0,memory:0,gpu:[]})||{cpu:0,memory:0,gpu:[]},o=m.default.cloneDeep(n),s=m.default.get(n,"gpu",[])||[],r=m.default.get(a,"instances_min",0),i=m.default.get(a,"cpu",0),l=m.default.get(a,"memory",0),u=m.default.get(a,"gpu[0].gpuNumber",0)||0,c=m.default.get(a,"gpu[0].gpuModelId"),p=m.default.get(a,"gpu[0].gpuModelName"),f=1/0,h=0;c&&h<s.length;h++)if(s[h].gpuModelId===c){f=u&&u>0?s[h].gpuNumber/u+r:1/0;break}var g=Math.floor(Math.min(n.cpu/(i||1)+r,n.memory/(l||1)+r,f));if(n.cpu=parseFloat(n.cpu)+parseFloat(i)*r,n.memory=parseFloat(n.memory)+parseFloat(l)*r,n.gpu=n.gpu,c){var v=m.default.findIndex(n.gpu,{gpuModelId:c});v>-1?n.gpu[v]=(0,d.default)({},n.gpu[v],{gpuNumber:parseFloat(n.gpu[v].gpuNumber)+parseFloat(u)*r}):n.gpu.push({gpuModelId:c,gpuNumber:u,gpuModelName:p})}e.setState({requestQuota:a,availableQuota:n,instancesCount:g,surplusQuota:o})}))},this.handleInfoChange=function(t,a){var n=e.state.requestQuota;n[t]=a,e.props.form.setFieldsValue({instances_min:n.instances_min}),e.setState({requestQuota:n})},this.saveExpansion=function(){e.props.form.validateFieldsAndScroll((function(t){if(!t){e.setState({saveLoading:!0});var a=e.state.requestQuota;(0,_.reassignResourceQuota)({resQuotaId:e.props.modelInfo.deployId,quotaSetting:a,resQuotaType:e.props.modelInfo.deployEnvType}).then((function(){e.props.closeModal(!0),e.setState({saveLoading:!1})})).catch((function(){return e.setState({saveLoading:!1})}))}}))}},n);t.default=h.Form.create()(E)},"./src/module/modelService/createPage/ComputingResource.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/input-number/index.js")),o=x(a("./node_modules/antd/es/row/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/babel-runtime/helpers/extends.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js")),u=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=x(a("./node_modules/react/index.js")),p=x(a("./node_modules/lodash/lodash.js")),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(x(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),g=x(a("./src/module/modelService/components/AvailableQuota.jsx")),v=a("./src/utils/authPermit.js"),_=x(a("./src/redux/services/sysManager/projectManage.js")),y=a("./src/redux/services/modelService.js"),b=a("./src/redux/services/sysManager/flinkClusterService.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=f.Form.Item,j=m.default.div.withConfig({displayName:"ComputingResource__ComputingResourceWrapper",componentId:"ksifpf-0"})([".ant-divider-horizontal{display:block;clear:both;width:100%;min-width:100%;height:1px;margin:20px 0;}.icon{font-size:16px;color:#a2b0c4;cursor:pointer;margin-left:16px;}.span__label{margin-right:2px;}"]),S={marginTop:"16px"},I={width:"140px"},T={width:"100%",position:"relative"},w=u.default.Option,E=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.fetFlinkClusterList=function(){(0,b.getFlinkClusterList)({}).then((function(e){n.setState({flinkClusterList:p.default.get(e,"data.flinkInfoList",[])})}))},n.fetchAvailableQuota=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.pubEnvType;e&&_.default.getProjectAvailableQuota(e,n.projectId).then((function(e){var t=n.state.requestQuota,a=p.default.get(e.data,"[0].quotaSetting",{cpu:0,memory:0,gpu:[]});n.setState({requestQuota:t,availableQuota:a,surplusQuota:p.default.cloneDeep(a),loadedAvaQuota:!0},(function(){n.props.onChange&&n.props.onChange(t),n.props.isEdit&&!p.default.isEmpty(t)&&n.setAvailableRes(a,t)}))}))},n.fetchResourceSpecs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.pubEnvType;if(e){var t={resSpecDesc:"\u81ea\u5b9a\u4e49\u8d44\u6e90",resSpecId:"custom_computing_resource_specs",resSpecName:"\u81ea\u5b9a\u4e49\u8d44\u6e90"};(0,y.getResourceSpecs)({resQuotaType:e,resSpecTypes:n.props.source}).then((function(e){var a=e.data||[];Array.isArray(a)&&a.push(t),n.setState({sysResourceSpecs:a,loadedSysSpecs:!0})})).catch((function(e){throw n.setState({sysResourceSpecs:[t],selectedSpecs:"custom_computing_resource_specs",loadedSysSpecs:!0}),e}))}},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=n.state,a=t.requestQuota,o=t.selectedSpecs,s=t.sysResourceSpecs,i=t.selectedFlinkCluster,d={};return e?(o&&"custom_computing_resource_specs"!==o&&(a=(0,r.default)({},p.default.get(p.default.find(s,{resSpecId:o}),"specSetting"),{instances_min:a.instances_min})),d={specsId:o,cpu:a.cpu,memory:a.memory,instances_min:a.instances_min,gpu:a.gpuNumber>0?[{gpuNumber:a.gpuNumber,gpuModelId:a.gpuModelId,gpuModelName:a.gpuModelName}]:[],flinkClusterId:i},{validate:e,moduleData:d}):{validate:e,moduleData:a,errorMsg:"\u8bf7\u9009\u62e9\u8ba1\u7b97\u8d44\u6e90\u4fe1\u606f"}},n.handleQuotaAssignChange=function(e,t,a){var o=n.state.requestQuota;if(o[e]=t,"instances_min"===e&&(t>1?(console.log("\u591a\u4f8b"),n.setState({issinglecase:!1,replicas:t}),console.log(n.state.replicas),n.fetchAvailableQuota()):(console.log("\u5355\u4f8b"),n.setState({issinglecase:!0,replicas:t}),console.log(n.state.replicas),n.fetchAvailableQuota())),"cpu"===e&&n.state.issinglecase){var s={profile:"dev",replicas:n.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:t,ram:"0"}]};_.default.memoryCheck(s).then((function(e){var a=JSON.parse(e.data);n.setState({AddCheckout:a,cpuvalue:t}),console.log(n.state.AddCheckout),n.props.setValidateFunc("computingResource",n.validateFun,a.data.result)}))}if("memory"===e)if(n.state.issinglecase){n.setState({memoryNumber:t});var r={profile:"dev",replicas:n.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:n.state.cpuvalue,ram:t}]};_.default.memoryCheck(r).then((function(e){var t=JSON.parse(e.data);n.setState({AddCheckout:t}),console.log(t.data.result),n.props.setValidateFunc("computingResource",n.validateFun,t.data.result)}))}else{var i={profile:"dev",replicas:n.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:n.state.cpuvalue,ram:t}]};_.default.memoryCheck(i).then((function(e){var t=JSON.parse(e.data);n.setState({AddCheckout:t}),console.log(t.data.result),n.props.setValidateFunc("computingResource",n.validateFun,t.data.result)}))}if("gpuModelId"===e){o.gpuModelName=p.default.get(a,"props.label",t);var d={profile:"dev",replicas:n.state.replicas,projectId:window.localStorage.getItem("projectId"),quotas:[{cpu:n.state.cpuvalue,ram:n.state.memoryNumber,gpuCardType:t,gpu:n.state.gpunumber}]};_.default.memoryCheck(d).then((function(e){var t=JSON.parse(e.data);n.setState({AddCheckout:t}),console.log(t.data.result),n.props.setValidateFunc("computingResource",n.validateFun,t.data.result)}))}if("gpuNumber"===e){n.setState({gpunumber:t});var l=p.default.find(n.state.availableQuota.gpu,{gpuModelId:o.gpuModelId});p.default.get(l,"gpuNumber")<t&&!n.props.disabledGpuType&&(o.gpuModelId="",o.gpuModelName,n.props.form.setFieldsValue({gpuModelId:""}))}n.setState({requestQuota:o}),n.props.onChange&&n.props.onChange(o)},n.setAvailableRes=function(e,t){n.setState((function(a){var n=Number(p.default.get(a,"availableQuota.cpu",0)||0),o=Number(p.default.get(t,"cpu",0)||0),s=Number(p.default.get(a,"availableQuota.memory",0)||0),i=Number(p.default.get(t,"memory",0)||0),d=p.default.get(a,"availableQuota.gpu",[])||[],l=t.instances_min,u={gpuModelId:p.default.get(t,"gpuModelId",""),gpuNumber:Number(p.default.get(t,"gpuNumber",0)||0),gpuModelName:p.default.get(t,"gpuModelId","")};if(u.gpuModelId){var c=p.default.findIndex(e.gpu,{gpuModelId:u.gpuModelId});c>-1?d[c]=(0,r.default)({},e.gpu[c],{gpuNumber:parseFloat(e.gpu[c].gpuNumber)+parseFloat(u.gpuNumber)*l}):d.push({gpuModelId:u.gpuModelId,gpuNumber:u.gpuNumber,gpuModelName:u.gpuModelName})}return{availableQuota:{cpu:n+o*l,memory:s+i*l,gpu:d}}}))},n.handleAvailableResChange=function(){n.setState((function(e){return{showAvailableRes:!e.showAvailableRes}}))},n.handleMinValidator=function(e,t,a,o,s){var r=n.state,i=r.availableQuota,d=r.requestQuota,l=i.cpu,u=i.memory,c=i.gpu,f=d.cpu,m=d.memory,h=d.gpuNumber,g=d.instances_min,v=c?c.reduce((function(e,t){return e<t.gpuNumber?t.gpuNumber:e}),0):0,_=p.default.find(p.default.get(i,"gpu"),{gpuModelId:d.gpuModelId});n.props.disabledGpuType&&(v=p.default.get(_,"gpuNumber"));var y=p.default.get(_,"gpuNumber")||v,b=parseFloat((l/(g||1)).toFixed(2)),x=parseFloat((u/(g||1)).toFixed(2)),C=Math.floor(v/(g||1));Math.floor(Math.min(l/(f||1),u/(m||1),y&&h&&h>0?y/h:1/0));if(n.props.verifyMemoryNum&&"\u5185\u5b58"==o?t<n.props.verifyMemoryNum&&a(o+"\u4e0d\u5f97\u5c0f\u4e8e"+n.props.verifyMemoryNum):n.props.verifyCpuNum&&"CPU"==o?t<n.props.verifyCpuNum&&a(o+"\u4e0d\u5f97\u5c0f\u4e8e"+n.props.verifyCpuNum):!isNaN(t)&&t<=0&&"gpuNumber"!==s&&a(o+"\u4e0d\u5f97\u5c0f\u4e8e\u6216\u7b49\u4e8e\u96f6"),"\u5185\u5b58"===o)if(n.state.issinglecase){console.log("\u5355\u4f8b\u6821\u9a8c");var j=n.state.AddCheckout.data.ramMax?n.state.AddCheckout.data.ramMax:0;console.log(j+"\u6570\u636e"),console.log(n.state.replicas),t>=j&&a(o+"\u4e0d\u80fd\u8d85\u8fc7\u4e34\u754c\u503c"+j)}else console.log("\u591a\u4f8b\u6821\u9a8c");"instances_min"!==s||/^[0-9]\d*$/.test(t)||a(o+"\u5fc5\u987b\u4e3a\u6b63\u6574\u6570"),"gpuNumber"!==s||/^[0-9]\d*$/.test(t)||a(o+"\u5fc5\u987b\u4e3a\u81ea\u7136\u6570"),n.props.noResidueCheck||("cpu"===s&&t>b&&a("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+b),"memory"===s&&t>x&&a("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+x),"gpuNumber"===s&&t>C&&a("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+C)),n.props.noAllowGpu2Zero&&"gpuNumber"===s&&0===t&&a("\u5df2\u5206\u914dgpu\u7684\u670d\u52a1\uff0cgpu\u4e0d\u80fd\u8c03\u6574\u4e3a0"),a()},n.limitDecimals=function(e){var t=/^(\-)*(\d+)\.(\d\d).*$/;return"string"===typeof e?isNaN(Number(e))?"":e.replace(t,"$1$2.$3"):"number"===typeof e?isNaN(e)?"":String(e).replace(t,"$1$2.$3"):""},n.handleSpecsChange=function(e){var t=p.default.find(n.state.sysResourceSpecs,{resSpecId:e}),a="custom_computing_resource_specs"===t.resSpecId?n.state.requestQuota:t.specSetting;n.props.onChange&&n.props.onChange(a),n.setState({selectedSpecs:e})},n.handleFlinkClusterChange=function(e){n.setState({selectedFlinkCluster:e})},n.setSysResourceSpecs=function(e,t,a,o){if(p.default.isEmpty(a)||!n.state.loadedSysSpecs||!n.state.loadedAvaQuota)return t;var s=t.filter((function(t){var n=t.specSetting,o=p.default.get(e,"instances_min",1)||1,s=p.default.get(a,"gpu",[])||[],r=p.default.get(n,"gpu[0].gpuNumber",0)||0,i=0===r||s.some((function(e){return e.gpuModelId===p.default.get(n,"gpu[0].gpuModelId")&&e.gpuNumber>=r*o}));return"custom_computing_resource_specs"===t.resSpecId||a.cpu>=n.cpu*o&&a.memory>=n.memory*o&&i})),r=p.default.find(s,{resSpecId:o})?o:p.default.isEmpty(n.props.requestQuota)?p.default.get(s,"[0].resSpecId"):"custom_computing_resource_specs";return n.setState({selectedSpecs:r}),{newSysResourceSpecs:s,newSelectedSpecs:r}};var o=a.requestQuota||{};n.state={showAvailableRes:!a.hideAvailableRes,availableQuota:{},surplusQuota:{},sysResourceSpecs:[],selectedSpecs:o.specsId,requestQuota:{instances_min:o.instances_min||1,cpu:o.cpu,memory:o.memory,gpuNumber:p.default.get(o,"gpu[0].gpuNumber",0),gpuModelId:p.default.get(o,"gpu[0].gpuModelId"),gpuModelName:p.default.get(o,"gpu[0].gpuModelName")},loadedSysSpecs:!1,loadedAvaQuota:!1,flinkClusterList:[],selectedFlinkCluster:o.flinkClusterId,issinglecase:!0,AddCheckout:{data:{result:!0,ramMax:0}},replicas:1,cpuvalue:1,Add:!1,memoryNumber:0,gpunumber:0};var s=(0,v.getCurrentContext)(),l=s.role,u=s.id;"PROJECT"===l&&(n.projectId=u),n.checkNameRef=c.default.createRef();var f=n.props.setValidateFunc;return p.default.isFunction(f)&&f("computingResource",n.validateFun),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){if(!p.default.isEqual(this.props.requestQuota,e.requestQuota)&&!p.default.isEmpty(this.props.requestQuota)){var t=this.props.requestQuota||{},a={instances_min:t.instances_min,cpu:t.cpu,memory:t.memory,gpuNumber:p.default.get(t,"gpu[0].gpuNumber",0),gpuModelId:p.default.get(t,"gpu[0].gpuModelId"),gpuModelName:p.default.get(t,"gpu[0].gpuModelName")};this.setState({requestQuota:a,selectedSpecs:t.specsId}),this.props.onChange&&this.props.onChange(a),!p.default.isEmpty(this.state.availableQuota)&&this.props.isEdit&&this.setAvailableRes(this.state.availableQuota,a)}e.pubEnvType!==this.props.pubEnvType&&(this.fetchAvailableQuota(),this.fetchResourceSpecs())},t.prototype.componentDidMount=function(){this.fetchAvailableQuota(),this.fetchResourceSpecs(),this.fetFlinkClusterList()},t.prototype.render=function(){var e=this,t=this.state,a=t.requestQuota,r=t.surplusQuota,i=t.sysResourceSpecs,d=t.selectedSpecs,l=t.selectedFlinkCluster,c=this.setSysResourceSpecs(a,i,r,d),m=c.newSysResourceSpecs,v=c.newSelectedSpecs,_=this.props.title,y=this.props.form.getFieldDecorator;return(0,s.default)(j,{},void 0,(0,s.default)(h.ModelConfigPanel,{hintMsg:this.props.hintMsg&&this.props.hintMsg,title:_||"\u8ba1\u7b97\u8d44\u6e90",style:T},void 0,this.state.showAvailableRes&&(0,s.default)("div",{className:"available__resource"},void 0,(0,s.default)(g.default,{quotaInfo:r})),(0,s.default)(f.Form,{layout:"inline"},void 0,!1!==this.props.instancesMinShow&&(0,s.default)(o.default,{style:S},void 0,(0,s.default)(C,{label:"\u5b9e\u4f8b\u4e2a\u6570"},void 0,y("instances_min",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5b9e\u4f8b\u4e2a\u6570"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"\u5b9e\u4f8b\u4e2a\u6570","instances_min")}}],initialValue:a.instances_min})((0,s.default)(n.default,{disabled:!this.props.canModify||this.props.disabledInstances,style:I,min:0,onChange:function(t){return e.handleQuotaAssignChange("instances_min",t)}})))),(0,s.default)(o.default,{style:S},void 0,(0,s.default)(C,{label:"\u8d44\u6e90\u9009\u62e9",className:"lang-label-wrapper"},void 0,(0,s.default)(u.default,{showSearch:!0,style:{width:200},placeholder:"\u8bf7\u9009\u62e9\u89c4\u683c",optionFilterProp:"children",onChange:this.handleSpecsChange,value:v,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(m)&&m.map((function(e){return(0,s.default)(w,{value:e.resSpecId},e.resSpecId,e.resSpecName)}))))),"custom_computing_resource_specs"===v&&(0,s.default)(o.default,{style:S},void 0,(0,s.default)(C,{label:"CPU (core)",className:"lang-label-wrapper"},void 0,y("cpu",{rules:[{required:this.props.canModify,message:"\u8bf7\u8f93\u5165CPU"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"CPU","cpu")}}],initialValue:a.cpu})((0,s.default)(n.default,{formatter:this.limitDecimals,parser:this.limitDecimals,disabled:!this.props.canModify,style:I,min:0,onChange:function(t){return e.handleQuotaAssignChange("cpu",t)}}))),(0,s.default)(C,{label:"\u5185\u5b58 (GB)"},void 0,y("memory",{rules:[{required:this.props.canModify,message:"\u8bf7\u8f93\u5165\u5185\u5b58"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"\u5185\u5b58","memory")}}],initialValue:a.memory})((0,s.default)(n.default,{formatter:this.limitDecimals,parser:this.limitDecimals,disabled:!this.props.canModify,style:I,min:0,onFocus:function(){return e.setState({Add:!e.state.Add})},onBlur:function(){return e.setState({Add:!e.state.Add})},onChange:function(t){return e.handleQuotaAssignChange("memory",t)}}))),(0,s.default)(C,{label:"GPU\u6570\u91cf"},void 0,y("gpuNumber",{rules:[{required:!1,message:"\u8bf7\u8f93\u5165GPU\u6570\u91cf"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"GPU","gpuNumber")}}],initialValue:a.gpuNumber})((0,s.default)(n.default,{disabled:!this.props.canModify||this.props.disabledGpu,style:I,min:0,onChange:function(t){return e.handleQuotaAssignChange("gpuNumber",t)}}))),a.gpuNumber>0&&(0,s.default)(C,{label:"GPU\u578b\u53f7"},void 0,y("gpuModelId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9GPU\u578b\u53f7"}],initialValue:a.gpuModelId})((0,s.default)(u.default,{style:{minWidth:140},placeholder:"\u8bf7\u9009\u62e9GPU\u578b\u53f7",disabled:!this.props.canModify||this.props.disabledGpuType,onChange:function(t,a){return e.handleQuotaAssignChange("gpuModelId",t,a)}},void 0,Array.isArray(p.default.get(this.state.availableQuota,"gpu"))&&this.state.availableQuota.gpu.map((function(e){return a.gpuNumber*a.instances_min<=e.gpuNumber&&(0,s.default)(w,{value:e.gpuModelId,label:e.gpuModelName,number:e.gpuNumber},e.gpuModelId,e.gpuModelName)})))))),this.props.showFlinkCluster&&(0,s.default)(o.default,{style:S},void 0,(0,s.default)(C,{label:"Flink\u8bad\u7ec3\u96c6\u7fa4",className:"lang-label-wrapper"},void 0,y("flinkClusterId",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165Flink\u8bad\u7ec3\u96c6\u7fa4"}],initialValue:l})((0,s.default)(u.default,{showSearch:!0,style:{width:200},placeholder:"\u8bf7\u9009\u62e9Flink\u8bad\u7ec3\u96c6\u7fa4",optionFilterProp:"children",onChange:this.handleFlinkClusterChange,value:v,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(this.state.flinkClusterList)&&this.state.flinkClusterList.map((function(e){return(0,s.default)(w,{value:e.flinkId},e.flinkId,e.flinkName)})))))),!this.state.AddCheckout.data.result&&(0,s.default)(C,{style:{position:"absolute",top:"212px",left:"455px",cursor:"pointer",fontSize:"14px",color:"#ff4d4f"}},void 0,"\u540e\u53f0\u8d44\u6e90\u4e0d\u8db3"),this.state.Add&&this.state.memoryNumber<this.state.AddCheckout.data.ramMax&&this.state.memoryNumber>0&&(0,s.default)(C,{style:{position:"absolute",top:"187px",left:"356px",cursor:"pointer",fontSize:"14px",color:"#147bd1"}},void 0,"\u5185\u5b58\u6700\u5927\u503c\u4e3a",this.state.AddCheckout.data.ramMax)),(0,s.default)("div",{style:{position:"absolute",top:"-18px",left:"110px",cursor:"pointer",fontSize:"14px",color:" #47B2FB",display:"none"},onClick:this.handleAvailableResChange},void 0,"\u67e5\u770b\u5269\u4f59\u53ef\u7528\u8d44\u6e90")))},t}(c.default.PureComponent);E.defaultProps={requestQuota:{},source:"ONLINE_REASONING"},t.default=f.Form.create()(E)},"./src/module/modelService/createPage/CreateServicePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=V(a("./node_modules/antd/es/switch/index.js")),o=V(a("./node_modules/antd/es/col/index.js")),s=V(a("./node_modules/antd/es/row/index.js")),r=V(a("./node_modules/antd/es/button/index.js")),i=V(a("./node_modules/antd/es/result/index.js")),d=V(a("./node_modules/babel-runtime/helpers/jsx.js")),l=V(a("./node_modules/antd/es/message/index.js")),u=V(a("./node_modules/babel-runtime/helpers/extends.js")),c=V(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=V(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=V(a("./node_modules/babel-runtime/helpers/inherits.js")),m=V(a("./node_modules/antd/es/radio/index.js")),h=V(a("./node_modules/antd/es/checkbox/index.js")),g=V(a("./node_modules/antd/es/input/index.js")),v=V(a("./node_modules/antd/es/select/index.js")),y=V(a("./node_modules/antd/es/modal/index.js")),b="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\createPage\\CreateServicePage.jsx";a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/result/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/checkbox/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var x=V(a("./node_modules/react/index.js")),C=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");V(a("./node_modules/prop-types/index.js"));var j=a("./node_modules/react-redux/es/index.js"),S=a("./node_modules/react-router-dom/esm/react-router-dom.js"),I=a("./src/routes/routeHelper.jsx"),T=a("./src/components/index.js"),w=V(a("./src/redux/services/sysManager/projectManage.js")),E=V(a("./src/components/common/CheckName.jsx")),D=a("./src/redux/services/modelService.js"),M=a("./src/redux/services/modelMirror.js"),k=a("./src/module/modelService/style.js"),P=a("./src/utils/constants.js"),L=V(a("./src/module/modelService/createPage/ComputingResource.jsx")),N=V(a("./src/module/modelMirror/components/EnvVariables.jsx")),A=a("./src/module/modelService/modelEnums.js"),R=a("./src/redux/selectors/checkName.js"),F=V(a("./src/module/modelService/createPage/HealthCheck.jsx")),O=V(a("./src/utils/history.js"));function V(e){return e&&e.__esModule?e:{default:e}}var U=A.ENVIRONMENT.getCodeAndDescList(),B=A.SERVICE_AUTH.getCodeAndDescList(),G=A.PARAMETER_CHECK.getCodeAndDescList(),z=y.default.confirm,q=C.Form.Item,K=v.default.Option,H=g.default.TextArea,Y=h.default.Group,W=m.default.Group,J={width:"100%",position:"relative"},Q={width:"100%",minWidth:"550px"},Z={marginTop:"15px"},X=(0,d.default)(K,{value:""},void 0,"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"),$=function(e){function t(a){(0,c.default)(this,t);var n=(0,p.default)(this,e.call(this,a));return n.fetchData=function(){n.fetchMirrorList(),n.mirrorId&&n.fetchVersionsByMirrorId(n.mirrorId),n.fetchIngress(),n.serviceId&&"edit"===n.action&&(0,D.getModelServiceInfo)(n.serviceId).then((function(e){if(e.data){var t=e.data,a=_.get(t,"deploymentConfigRespDto.deployEnvs",[])||[],o=_.get(t,"deploymentConfigRespDto.mirrorId"),s=_.get(t,"deploymentConfigRespDto.mirrorVersionId"),r=_.get(t,"deploymentConfigRespDto.deploymentHealthcheckLiveness"),i=_.get(t,"deploymentConfigRespDto.deploymentHealthcheckReadiness"),d=_.get(t,"deploymentConfigRespDto.deployStartcommand"),l=_.get(t,"deploymentConfigRespDto.deployArrange");o&&n.fetchVersionsByMirrorId(o,!0);var c=a.map((function(e){return{name:e.name,value:e.value,index:_.uniqueId()}}));0===a.length&&(a=[{name:"",value:"",index:_.uniqueId()}]);var p=l||{},f=n.parseSelectedFilters(p),m={service:{serviceId:n.serviceId,serviceName:t.deployShowName,deployBusinessType:t.deployBusinessType,mirrorId:o,mirrorVersion:s,serviceDesc:t.deployDesc+1,envVariables:c,project:t.project,deployStartcommand:d,deploymentHealthcheckLiveness:r?JSON.parse(r):"",deploymentHealthcheckReadiness:i?JSON.parse(i):""},quotaAssign:{resQuotaType:t.deploymentEnvType,requestQuota:_.get(t,"deploymentConfigRespDto.deployConfig")?(0,u.default)({},JSON.parse(_.get(t,"deploymentConfigRespDto.deployConfig")),{instances_min:_.get(t,"deploymentReplicas",1)}):{}},gateway:{ingress:_.get(t,"deploymentConfigRespDto.deployAdressType"),serviceUrl:_.get(t,"deploymentConfigRespDto.deployAdress"),filters:f}};n.props.form.setFieldsValue({filters:f,deployStartcommand:d}),n.setState({moduleData:m,filters:f,loading:!1,openHealthCheck:Boolean(r||i)})}})).catch((function(e){n.setState({loading:!1}),l.default.error(e.message)})),w.default.getApplicationsDropDown().then((function(e){e&&(n.setState({applicationsList:e.data}),window.localStorage.setItem("projectId",e.data[0].projectId))})).catch((function(e){l.default.error(e.message)}))},n.fetchIngress=function(e){e=e||_.get(n.state.moduleData,"quotaAssign.resQuotaType"),(0,D.getServiceIngress)({profile:e}).then((function(e){var t=_.get(e,"data[0]",{}),a=(0,P.wrapServiceUrl)("reasoning-services","");if(t){var o=(0,u.default)({},n.state.moduleData);o.gateway.ingress=_.get(t,"ingressId","");var s=_.get(t,"url","");a=s||a,n.setState({moduleData:o,serviceIngress:e.data,serviceAddress:a})}else{var r=(0,u.default)({},n.state.moduleData);r.gateway.ingress="",n.setState({moduleData:r,serviceIngress:e.data,serviceAddress:a})}}))},n.fetchMirrorList=function(e){var t={isPage:"N",baseType:"REASONING",state:"SUCCESS",businessType:e||_.get(n.state.moduleData,"service.deployBusinessType")};(0,M.getModelMirrorList)({paramjson:t}).then((function(e){n.setState({mirrorList:e.data,mirrorListLoading:!1}),n.mirrorId&&n.changeMirrorUpdateApplication(n.mirrorId,e.data,!0)})).catch((function(){return n.setState({mirrorListLoading:!1})}))},n.fetchVersionsByMirrorId=function(e,t){e?(n.setState({versionLoading:!0}),(0,M.getMirrorVersionList)({paramsJson:{mirrorId:e,state:"SUCCESS"}}).then((function(e){if(n.setState({mirrorVersions:e.data,versionLoading:!1}),!t){var a=_.get(e.data,"[0].versionId","");n.handleServiceChange("service/mirrorVersion",a,!0),n.props.form.setFieldsValue({mirrorVersion:a})}})).catch((function(){return n.setState({versionLoading:!1})}))):n.setState({mirrorVersions:[]})},n.fetchMirrorVersionInfo=function(e){e&&(0,M.getMirrorVersionInfo)(e).then((function(e){var t=_.get(e.data,"envVars",[])||[],a=_.get(e.data,"startCommand",""),o=(0,u.default)({},n.state.moduleData);0===(t=t.map((function(e){return{name:e.envKey,value:e.envValue,index:_.uniqueId()}}))).length&&(t=[{name:"",value:"",index:_.uniqueId()}]),_.set(o,"service.envVariables",t),_.set(o,"service.deployStartcommand",a),n.props.form.setFieldsValue({deployStartcommand:a}),n.setState({moduleData:o})}))},n.cancel=function(){z({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){O.default.goBack()}})},n.submit=function(){var e=n.state.moduleData;n.isRepeat()||n.props.form.validateFieldsAndScroll((function(t){if(null===t){var a=!0;Object.keys(n.validateFuncs).map((function(t){var o=n.validateFuncs[t];if(_.isFunction(o)){var s=o.call()||{};if("computingResource"===t)e=_.assign(e,{quotaAssign:(0,u.default)({},e.quotaAssign,{requestQuota:s.moduleData})});else if("readinessHealthCheck"===t||"livenessHealthCheck"===t){var r,i="readinessHealthCheck"===t?"deploymentHealthcheckReadiness":"deploymentHealthcheckLiveness";e=_.assign(e,{service:(0,u.default)({},e.service,(r={},r[i]=s.moduleData?JSON.stringify(s.moduleData):"",r))})}else e=_.assign(data,s.moduleData);a&&(a=s.validate)}})),a&&n.setState({modalVisible:!0,moduleData:e,modalTxt:"edit"===n.action?"\u786e\u5b9a\u4fee\u6539\u63a8\u7406\u670d\u52a1\uff1f":"\u786e\u5b9a\u521b\u5efa\u63a8\u7406\u670d\u52a1\uff1f"})}}))},n.submitModalOk=function(){var e=n.state,t=e.moduleData,a=e.filters;if(n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e\u4fdd\u5b58\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.submitData={gateway:(0,u.default)({},t.gateway,{filters:JSON.stringify(n.getSelectedFilters(a)),ingress:t.gateway.ingress}),service:(0,u.default)({},t.service,{serviceType:"ONLINE",envVariables:n.getEnvVars(t.service.envVariables)}),quotaAssign:(0,u.default)({},t.quotaAssign,{requestQuota:JSON.stringify(t.quotaAssign.requestQuota)})},n.state.openHealthCheck||(n.submitData.service.deploymentHealthcheckLiveness="",n.submitData.service.deploymentHealthcheckReadiness=""),"edit"===n.action&&n.serviceId)return n.submitData.service.serviceId=n.serviceId,n.submitData.quotaAssign.resQuotaId=n.serviceId,void(0,D.modifyModelService)(n.submitData).then((function(e){var a=e.data;_.set(t,"service.serviceId",a),n.setState({confirmLoading:!1,modalVisible:!1,saveSuccess:!0,moduleData:t}),window.scrollTo(0,0)})).catch((function(){n.setState({confirmLoading:!1,modalVisible:!1})}));(0,D.submitModelService)(n.submitData).then((function(e){var a=e.data;_.set(t,"service.serviceId",a),n.setState({confirmLoading:!1,modalVisible:!1,saveSuccess:!0,moduleData:t}),window.scrollTo(0,0)})).catch((function(e){console.error(e),n.setState({confirmLoading:!1,modalVisible:!1})}))},n.getSelectedFilters=function(e){for(var t={},a=0;a<e.length;a++)switch(e[a]){case"auth":case"authc":case"flowLimit":t[e[a]]={};break;case"integrity":case"uniformity":t.paramVerify=t.paramVerify||{},t.paramVerify.verifyType=t.paramVerify.verifyType?t.paramVerify.verifyType+","+e[a]:e[a]}return t},n.parseSelectedFilters=function(e){var t=[];if(!e)return t;for(var a in e)switch(a){case"auth":case"authc":case"flowLimit":e[a]&&t.push(a);break;case"paramVerify":e[a]&&(e.paramVerify.verifyType.indexOf("integrity")>-1&&t.push("integrity"),e.paramVerify.verifyType.indexOf("uniformity")>-1&&t.push("uniformity"))}return t},n.getEnvVars=function(e){if(!Array.isArray(e))return[];for(var t=[],a=0;a<e.length;a++)_.trim(e[a].name)&&_.trim(e[a].value)&&t.push({name:e[a].name,value:e[a].value});return t},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.handleServiceChange=function(e,t){var a=(0,u.default)({},n.state.moduleData),o=e.split("/");switch(a[o[0]][o[1]]=t,n.setState({moduleData:a}),o[1]){case"mirrorId":n.fetchVersionsByMirrorId(t),n.changeMirrorUpdateApplication(t,n.state.mirrorList,!1);break;case"mirrorVersion":n.fetchMirrorVersionInfo(t);break;case"serviceName":n.props.form.setFieldsValue({serviceName:t});break;case"deployBusinessType":n.fetchMirrorList(t);break;case"ingress":var s=_.get(_.find(n.state.serviceIngress,{ingressId:t}),"url","");s=s||(0,P.wrapServiceUrl)("reasoning-services",""),n.setState({serviceAddress:s});break;case"resQuotaType":n.fetchIngress(t)}},n.changeMirrorUpdateApplication=function(e,t,a){var o=_.find(t,(function(t){return t.mirrorId===e})),s=_.get(o,"businessType","");if(s){var r=(0,u.default)({},n.state.moduleData);r.service.deployBusinessType=s,n.setState({moduleData:r,disabledApplication:a}),n.props.form.setFieldsValue({deployBusinessType:s})}},n.getServiceUrlBlur=function(e){_.trim(e)&&(0,D.checkServiceParamRepeat)({paramjson:{deploymentId:n.serviceId?n.serviceId:"",deploymentAdress:e}}).then((function(t){var a=t.data;n.setState({serviceUrlValidate:a?"error":"success"}),a&&n.props.form.setFields({serviceUrl:{value:e,errors:[new Error("\u670d\u52a1\u6807\u8bc6\u91cd\u590d")]}})}))},n.handelFiltersChange=function(e){var t=e.indexOf("authc");t>-1&&!e.includes("auth")&&e.splice(t,1),n.setState({filters:e})},n.handleChangeHealthCheck=function(e){n.setState({openHealthCheck:e})},n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.isRepeat=function(){var e=n.props.checkNameVerifyInfo.toJS(),t=e.verifyStatus,a=e.verifyMsg;return-1===t?(n.props.form.setFields({serviceName:{errors:[new Error(a)]}}),!0):"error"===n.state.serviceUrlValidate?(n.props.form.setFields({serviceUrl:{errors:[new Error("\u670d\u52a1\u6807\u8bc6\u91cd\u590d")]}}),!0):void 0},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.serviceId=_.get(a.match.params,"serviceId"),n.mirrorId=_.get(a.match.params,"mirrorId"),n.versionId=_.get(a.match.params,"versionId"),n.action=_.get(a.match.params,"action"),n.applicationId=_.get(a,"location.state.applicationId",null),n.pubEnvType=_.get(a,"location.state.pubEnvType"),n.state={applicationsList:[],versionLoading:!1,labelsLoading:!1,modalTxt:"edit"===n.action?"\u786e\u5b9a\u4fee\u6539\u63a8\u7406\u670d\u52a1\uff1f":"\u786e\u5b9a\u521b\u5efa\u63a8\u7406\u670d\u52a1\uff1f",saveSuccess:!1,serviceIngress:[],versionInfo:{},moduleData:{service:{mirrorId:n.mirrorId,mirrorVersion:n.versionId,deployBusinessType:n.applicationId,envVariables:[{name:"",value:"",index:_.uniqueId()}]},quotaAssign:{resQuotaType:n.pubEnvType||U[0].code,requestQuota:{}},gateway:{ingress:"",serviceUrl:"",filters:""}},mirrorList:[],mirrorVersions:[],filters:[],disabledApplication:Boolean(n.applicationId),serviceAddress:"",openHealthCheck:!1,result:!1},n.validateFuncs={},n.submitData={},n.checkNameRef=x.default.createRef(),n.checkAddressRef=x.default.createRef(),n}return(0,f.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,l=a.moduleData,c=a.serviceIngress,p=a.versionLoading,f=a.mirrorVersions,_=a.disabledApplication,j=a.applicationsList,w=a.mirrorList,D=l.service,M=l.gateway,P=l.quotaAssign;return this.state.saveSuccess?(0,d.default)(i.default,{status:"success",title:"edit"===this.action?"\u63a8\u7406\u670d\u52a1\u4fee\u6539\u6210\u529f":"\u63a8\u7406\u670d\u52a1\u521b\u5efa\u6210\u529f",subTitle:"\u670d\u52a1\u540d\u79f0: "+D.serviceName+" \u670d\u52a1ID: "+D.serviceId,extra:[(0,d.default)(r.default,{type:"primary"},"detail",(0,d.default)(S.Link,{to:I.modelServiceUrl.detail(D.serviceId)},void 0,"\u67e5\u770b\u8be6\u60c5")),(0,d.default)(r.default,{},"list",(0,d.default)(S.Link,{to:I.modelServiceUrl.list()},void 0,"\u8fd4\u56de\u5217\u8868"))]}):(0,d.default)(k.CreateModelServiceDom,{},void 0,(0,d.default)(y.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,d.default)("p",{},void 0,this.state.modalTxt)),(0,d.default)(T.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:{width:"100%"}},void 0,(0,d.default)(C.Form,{layout:"inline"},void 0,(0,d.default)(s.default,{},void 0,(0,d.default)(q,{label:"\u5f52\u5c5e\u5e94\u7528",className:"sm-label"},void 0,t("deployBusinessType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:D.deployBusinessType})((0,d.default)(v.default,{disabled:Boolean(this.applicationId||_)||"edit"===this.action,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e",onChange:function(t){return e.handleServiceChange("service/deployBusinessType",t)},style:{width:"200px"}},void 0,X,Array.isArray(j)&&j.map((function(e){return(0,d.default)(K,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)})))))),(0,d.default)(s.default,{style:Z},void 0,(0,d.default)(q,{label:"\u670d\u52a1\u540d\u79f0",className:"sm-label"},void 0,t("serviceName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u540d\u79f0"}],initialValue:D.serviceName})(x.default.createElement(E.default,{ref:this.checkNameRef,modelId:D.serviceId,source:"serviceName",style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u670d\u52a1\u540d\u79f0",updateNameCallback:function(t){return e.handleServiceChange("service/serviceName",t)},__source:{fileName:b,lineNumber:642}})))),(0,d.default)(s.default,{style:Z},void 0,(0,d.default)(q,{label:"\u670d\u52a1\u63cf\u8ff0",className:"sm-label"},void 0,t("serviceDesc",{rules:[{required:!1}],initialValue:D.serviceDesc})((0,d.default)(H,{autoSize:{minRows:3,maxRows:5},style:Q,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.handleServiceChange("service/serviceDesc",t.target.value)}})))))),!this.pubEnvType&&"edit"!==this.action&&(0,d.default)(T.ModelConfigPanel,{title:"\u9009\u62e9\u53d1\u5e03\u7684\u73af\u5883",style:{width:"100%"}},void 0,(0,d.default)(C.Form,{layout:"inline"},void 0,(0,d.default)(s.default,{},void 0,t("resQuotaType",{rules:[{required:!0,message:"\u9009\u62e9\u53d1\u5e03\u7684\u73af\u5883"}],initialValue:P.resQuotaType})((0,d.default)(W,{style:{width:"100%"},onChange:function(t){return e.handleServiceChange("quotaAssign/resQuotaType",t.target.value)}},void 0,Array.isArray(U)&&U.map((function(e,t){return(0,d.default)(o.default,{span:3},e.code,(0,d.default)(q,{style:{marginLeft:1===t?60:0}},void 0,(0,d.default)(m.default,{value:e.code},void 0,e.desc)))}))))))),(0,d.default)(T.ModelConfigPanel,{title:"\u9009\u62e9\u670d\u52a1\u955c\u50cf",style:J},void 0,(0,d.default)(C.Form,{layout:"inline"},void 0,(0,d.default)(s.default,{style:Z},void 0,(0,d.default)(q,{label:"\u670d\u52a1\u955c\u50cf\u540d\u79f0"},void 0,t("modelName",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u670d\u52a1\u955c\u50cf"}],initialValue:D.mirrorId})((0,d.default)(v.default,{disabled:Boolean(this.mirrorId),showSearch:!0,placeholder:"\u8bf7\u9009\u62e9\u670d\u52a1\u955c\u50cf",onChange:function(t){return e.handleServiceChange("service/mirrorId",t)},style:{width:"200px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(w)&&w.map((function(e){return(0,d.default)(K,{value:e.mirrorId},e.mirrorId,e.mirrorShowName)}))))),(0,d.default)(q,{label:"\u7248\u672c",className:"sm-label"},void 0,t("mirrorVersion",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],initialValue:D.mirrorVersion})((0,d.default)(v.default,{disabled:Boolean(this.versionId),placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:p,onChange:function(t){return e.handleServiceChange("service/mirrorVersion",t)},style:{width:"200px"}},void 0,Array.isArray(f)&&f.map((function(e){return(0,d.default)(K,{value:e.versionId},e.versionId,e.versionName)})))))))),(0,d.default)(L.default,{pubEnvType:P.resQuotaType,requestQuota:P.requestQuota,canModify:!0,setValidateFunc:this.setValidateFunc,source:"ONLINE_REASONING"}),(0,d.default)(T.ModelConfigPanel,{title:"\u5065\u5eb7\u68c0\u67e5\uff08\u53ef\u9009\uff09",style:{width:"100%"}},void 0,(0,d.default)("span",{className:"open-check-health"},void 0,(0,d.default)(n.default,{size:"small",checkedChildren:"\u5f00",unCheckedChildren:"\u5173",onChange:this.handleChangeHealthCheck,checked:this.state.openHealthCheck})),this.state.openHealthCheck&&(0,d.default)("div",{className:"check-health-wrapper"},void 0,(0,d.default)(F.default,{viewType:this.action,probeType:"readiness",setValidateFunc:this.setValidateFunc,moduleData:D.deploymentHealthcheckReadiness}),(0,d.default)(F.default,{viewType:this.action,probeType:"liveness",setValidateFunc:this.setValidateFunc,moduleData:D.deploymentHealthcheckLiveness}))),(0,d.default)(T.ModelConfigPanel,{title:"\u670d\u52a1\u5730\u5740",style:{width:"100%"}},void 0,(0,d.default)(C.Form,{layout:"inline"},void 0,(0,d.default)(s.default,{},void 0,(0,d.default)(q,{label:"\u670d\u52a1\u5165\u53e3",className:"sm-label"},void 0,t("ingress",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u670d\u52a1\u5165\u53e3"}],initialValue:M.ingress})((0,d.default)(v.default,{placeholder:"\u8bf7\u9009\u62e9\u670d\u52a1\u5165\u53e3",loading:p,onChange:function(t){return e.handleServiceChange("gateway/ingress",t)},style:{minWidth:240,width:"auto"}},void 0,Array.isArray(c)&&c.map((function(e){return(0,d.default)(K,{value:e.ingressId},e.ingressId,e.ingressName)})))))),(0,d.default)(q,{label:"\u670d\u52a1\u6807\u8bc6",className:"sm-label",style:{marginTop:16}},void 0,t("serviceUrl",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u6807\u8bc6"},{pattern:/^([a-zA-Z0-9][a-zA-Z0-9-]*)+$/,message:"\u7531\u82f1\u6587\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e2d\u5212\u7ebf\u7ec4\u6210\uff0c\u4e0d\u80fd\u4ee5\u4e2d\u5212\u7ebf\u5f00\u5934"}],initialValue:M.serviceUrl})(x.default.createElement(g.default,{ref:this.checkAddressRef,placeholder:"\u8bf7\u8f93\u5165\u670d\u52a1\u6807\u8bc6",addonBefore:this.state.serviceAddress,onBlur:function(t){return e.getServiceUrlBlur(t.target.value)},onChange:function(t){return e.handleServiceChange("gateway/serviceUrl",t.target.value)},__source:{fileName:b,lineNumber:816}}))))),(0,d.default)(T.ModelConfigPanel,{title:"\u670d\u52a1\u7f16\u6392",style:{width:"100%"}},void 0,(0,d.default)(C.Form,{layout:"inline"},void 0,(0,d.default)(Y,{onChange:this.handelFiltersChange,value:this.state.filters},void 0,t("filters",{rules:[{required:!1,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u5730\u5740"}],initialValue:M.filters})((0,d.default)(x.default.Fragment,{},void 0,(0,d.default)(s.default,{},void 0,(0,d.default)(q,{label:"\u670d\u52a1\u9274\u6743",className:"sm-label"},void 0,B.map((function(t,a){return(0,d.default)(h.default,{value:t.code,disabled:"authc"===t.code&&!e.state.filters.includes("auth"),style:{lineHeight:"32px",width:200}},a,t.desc)})))),(0,d.default)(q,{label:"\u53c2\u6570\u6821\u9a8c",className:"sm-label"},void 0,(0,d.default)(s.default,{},void 0,G.map((function(e,t){return(0,d.default)(h.default,{value:e.code,style:{lineHeight:"32px",width:200}},t,e.desc)}))))))))),(0,d.default)(T.ModelConfigPanel,{title:"\u542f\u52a8\u53c2\u6570\uff08\u53ef\u9009\uff09",style:{width:"100%"}},void 0,(0,d.default)(C.Form,{layout:"inline"},void 0,(0,d.default)(N.default,{getFieldDecorator:t,wrapStyle:Z,labelText:"\u73af\u5883\u53d8\u91cf",envVariables:D.envVariables,onMirrorChange:function(t){return e.handleServiceChange("service/envVariables",t)}}),(0,d.default)(q,{label:"\u542f\u52a8\u547d\u4ee4",className:"sm-label",style:{display:"flex",marginTop:16}},void 0,t("deployStartcommand",{rules:[{required:!1}],initialValue:D.deployStartcommand})((0,d.default)(H,{autoSize:{minRows:3,maxRows:5},style:(0,u.default)({},Q,{width:550}),placeholder:"\u8bf7\u8f93\u5165\u542f\u52a8\u547d\u4ee4",onChange:function(t){return e.handleServiceChange("service/deployStartcommand",t.target.value)}}))))),(0,d.default)("div",{className:"model-buttons"},void 0,(0,d.default)(r.default,{onClick:function(){return e.cancel()},style:{borderRadius:4}},void 0,"\u53d6 \u6d88"),(0,d.default)(r.default,{onClick:function(){return e.submit()},type:"primary",disabled:!this.state.result,loading:this.state.confirmLoading,style:{marginLeft:16,borderRadius:4}},void 0,"\u4fdd \u5b58")))},t}(x.default.PureComponent);t.default=(0,j.connect)((function(e){return{checkNameVerifyInfo:(0,R.selectVerifyInfo)(e)}}))(C.Form.create()($))},"./src/module/modelService/createPage/HealthCheck.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/input-number/index.js")),o=v(a("./node_modules/antd/es/input/index.js")),s=v(a("./node_modules/antd/es/row/index.js")),r=v(a("./node_modules/antd/es/tooltip/index.js")),i=v(a("./node_modules/babel-runtime/helpers/jsx.js")),d=v(a("./node_modules/babel-runtime/helpers/extends.js")),l=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=v(a("./node_modules/babel-runtime/helpers/inherits.js")),p=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=v(a("./node_modules/react/index.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));v(a("./node_modules/prop-types/index.js"));function v(e){return e&&e.__esModule?e:{default:e}}var y=a("./src/module/modelService/modelEnums.js").HEALTH_CHECK_TYPE.getCodeAndDescList(),b=h.Form.Item,x=g.default.div.withConfig({displayName:"HealthCheck__HealthCheckWrapper",componentId:"sc-1h3ka4n-0"})(["display:flex;flex-direction:column;margin-top:16px;.check-label{margin-right:48px;}.label-text{height:40px;line-height:40px;}.ant-legacy-form-item-label{text-align:left;width:100px !important;}.row-item-wrapper{display:flex;margin-top:8px;}.ant-row{margin-bottom:0;}.row-item-container{margin-right:16px;}.form-wrapper{border:1px solid #ccc;padding:16px;}.check-form{}.ant-legacy-form-item-label{line-height:32px;}"]),C={width:"150px"},j=p.default.Option,S={probeType:"readiness",checkType:"exec",deleySeconds:10,timeoutSeconds:10,periodSeconds:20,command:"",httpScheme:"HTTP",httpPath:"",port:""},I=(0,i.default)("div",{},void 0,"\u5065\u5eb7\u68c0\u67e5\u53c2\u6570\u4ecb\u7ecd",(0,i.default)("br",{})," \u534f\u8bae\u7c7b\u578b\u5206TCP\uff0cHTTP\uff0cCOMMAND\uff1b",(0,i.default)("br",{})," COMMAND\u4e3a\u811a\u672c\u68c0\u67e5\u547d\u4ee4\uff1b",(0,i.default)("br",{})," HTTP\u4e3a\u54cd\u5e94\u8def\u5f84\uff1b",(0,i.default)("br",{})," \u5bbd\u9650\u671f\uff0c\u95f4\u9694\uff0c\u8d85\u65f6\u5747\u4e3a\u65f6\u95f4\uff1b",(0,i.default)("br",{})," \u7aef\u53e3\u4e3a\u670d\u52a1\u6709\u6548\u7aef\u53e3\u3002"),T=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;if(n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e){var t=(0,d.default)({},n.state.moduleData);return"exec"===t.checkType?(t.httpPath="",t.httpScheme=""):"httpGet"===t.checkType?t.command="":(t.httpPath="",t.command="",t.httpScheme=""),{validate:!0,moduleData:t}}return{validate:!1,moduleData:{}}},n.handleModuleDataChange=function(e,t){var a,o=(0,d.default)({},n.state.moduleData);o[e]=t,n.setState({moduleData:o});var s=n.props.probeType;n.props.form.setFieldsValue(((a={})[s+"."+e]=t,a))},n.state={moduleData:a.moduleData&&!_.isEmpty(a.moduleData)?(0,d.default)({},a.moduleData):(0,d.default)({},S,{probeType:a.probeType})};var o=n.props.setValidateFunc;return _.isFunction(o)&&o(a.probeType+"HealthCheck",n.validateFun),n}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){if(!_.isEqual(e.moduleData,this.props.moduleData)){var t=this.props.moduleData&&!_.isEmpty(this.props.moduleData)?(0,d.default)({},this.props.moduleData):(0,d.default)({},S,{probeType:this.props.probeType});this.setState({moduleData:t})}},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state.moduleData,d=this.props.probeType,l="view"===this.props.viewType,u={width:416};return(0,i.default)(x,{},void 0,(0,i.default)("div",{className:"check-label"},void 0,(0,i.default)("div",{className:"label-text"},void 0,"readiness"===d?"\u5c31\u7eea\u76d1\u6d4b":"\u5b58\u6d3b\u76d1\u6d4b",(0,i.default)(r.default,{title:I},void 0,(0,i.default)(m.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),(0,i.default)("div",{className:"check-form"},void 0,(0,i.default)(h.Form,{className:"form-wrapper"},void 0,(0,i.default)(b,{label:"\u534f\u8bae"},void 0,t(d+".checkType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u534f\u8bae"}],initialValue:a.checkType})((0,i.default)(p.default,{disabled:l,placeholder:"\u8bf7\u9009\u62e9\u534f\u8bae",onChange:function(t){return e.handleModuleDataChange("checkType",t)},style:{width:155}},void 0,y.map((function(e,t){return(0,i.default)(j,{value:e.code},t,e.desc)}))))),("exec"===a.checkType||"httpGet"===a.checkType)&&(0,i.default)(s.default,{className:"row-item-wrapper"},void 0,"exec"===a.checkType?(0,i.default)(b,{label:"COMMAND"},void 0,t(d+".command",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165COMMAND"}],initialValue:a.command})((0,i.default)(o.default,{disabled:l,placeholder:"\u8bf7\u8f93\u5165COMMAND",style:u,onChange:function(t){return e.handleModuleDataChange("command",t.target.value)}}))):(0,i.default)(b,{label:"\u8def\u5f84"},void 0,t(d+".httpPath",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8def\u5f84"}],initialValue:a.httpPath})((0,i.default)(o.default,{disabled:l,placeholder:"\u8bf7\u8f93\u5165\u8def\u5f84",style:u,onChange:function(t){return e.handleModuleDataChange("httpPath",t.target.value)}})))),(0,i.default)(s.default,{className:"row-item-wrapper"},void 0,(0,i.default)(b,{label:"\u5bbd\u9650\u671f\uff08s\uff09",className:"row-item-container"},void 0,t(d+".deleySeconds",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bbd\u9650\u671f"}],initialValue:a.deleySeconds})((0,i.default)(n.default,{disabled:l,style:C,onChange:function(t){return e.handleModuleDataChange("deleySeconds",t)}}))),(0,i.default)(b,{label:"\u95f4\u9694\uff08s\uff09",className:"row-item-container"},void 0,t(d+".periodSeconds",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u95f4\u9694\u65f6\u95f4"}],initialValue:a.periodSeconds})((0,i.default)(n.default,{disabled:l,style:C,onChange:function(t){return e.handleModuleDataChange("periodSeconds",t)}}))),(0,i.default)(b,{label:"\u8d85\u65f6\uff08s\uff09"},void 0,t(d+".timeoutSeconds",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8d85\u65f6\u65f6\u95f4"}],initialValue:a.timeoutSeconds})((0,i.default)(n.default,{disabled:l,style:C,onChange:function(t){return e.handleModuleDataChange("timeoutSeconds",t)}})))),"exec"!==a.checkType&&(0,i.default)(s.default,{className:"row-item-wrapper"},void 0,(0,i.default)(b,{label:"\u7aef\u53e3"},void 0,t(d+".port",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7aef\u53e3"}],initialValue:a.port})((0,i.default)(n.default,{min:1,max:65535,disabled:l,style:C,onChange:function(t){return e.handleModuleDataChange("port",t)}})))))))},t}(f.default.PureComponent);T.defaultProps={},t.default=h.Form.create()(T)},"./src/module/modelService/detailPage/HistoryMirror.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/table/index.js")),o=f(a("./node_modules/antd/es/tooltip/index.js")),s=f(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var r=a("./node_modules/react/index.js"),i=(f(r),a("./node_modules/@ant-design/icons/es/index.js")),d=(f(a("./node_modules/prop-types/index.js")),f(a("./src/components/table/ColumnRender.jsx"))),l=a("./src/redux/services/modelService.js"),u=a("./src/components/index.js"),c=a("./src/routes/routeHelper.jsx"),p=a("./src/module/modelService/modelEnums.js");function f(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=this,a=e.serviceId,f=e.refreshing,m=(0,r.useState)(!1),h=m[0],g=m[1],v=(0,r.useState)([]),y=v[0],b=v[1],x=(0,r.useState)({offset:1,total:0,limit:10}),C=x[0],j=x[1];(0,r.useEffect)((function(){S()}),[a,C.offset,C.limit]),(0,r.useEffect)((function(){f&&S()}),[f]);var S=function(){a&&(g(!0),(0,l.getHistoryMirror)(a,{offset:C.offset,limit:C.limit}).then((function(e){b(e.data),j(e.pagination),g(!1)})).catch((function(e){throw g(!1),e})))},I=[{title:"\u955c\u50cf\u7248\u672cID",dataIndex:"mirrorVersionId",ellipsis:!0,render:function(e){return(0,d.default)(e)}},{title:"\u6765\u6e90",width:100,dataIndex:"sourceType",ellipsis:!0,render:function(e){var t=p.MODEL_TYPE.getDescFromValue(e);return(0,d.default)(t)}},{title:"\u5185\u5bb9",dataIndex:"title",ellipsis:!0,render:function(e){return(0,d.default)(e)}},{title:"\u4e8b\u4ef6",width:100,dataIndex:"operateType",ellipsis:!0,render:function(e){var t=p.SERVICE_MIRROR_EVENT_TYPE.getDescFromValue(e);return(0,d.default)(t)}},{title:"\u64cd\u4f5c\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,d.default)(e)}},{title:"\u64cd\u4f5c\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,d.default)(e,"date")}},{title:(0,s.default)("span",{},void 0,"\u542f\u52a8\u65f6\u95f4",(0,s.default)(o.default,{title:"\u6700\u8fd1\u4e00\u6b21\u542f\u52a8\u6216\u91cd\u542f\u7684\u65f6\u95f4"},void 0,(0,s.default)(i.QuestionCircleOutlined,{style:{marginLeft:2}}))),dataIndex:"startAt",ellipsis:!0,render:function(e){return(0,d.default)(e)}},{title:(0,s.default)("span",{},void 0,"\u505c\u6b62\u65f6\u95f4",(0,s.default)(o.default,{title:"\u6700\u8fd1\u4e00\u6b21\u542f\u52a8\u6216\u91cd\u542f\u540e\u7684\u505c\u6b62\u65f6\u95f4"},void 0,(0,s.default)(i.QuestionCircleOutlined,{style:{marginLeft:2}}))),dataIndex:"stopAt",ellipsis:!0,render:function(e){return(0,d.default)(e)}},{title:"\u8fd0\u884c\u65f6\u957f",dataIndex:"runTime",ellipsis:!0,render:function(e){return(0,d.default)(e)}},{title:"\u64cd\u4f5c",dataIndex:"operate",ellipsis:!0,render:function(e,t){var a=[];return p.MODEL_TYPE.MODEL===t.sourceType?a.push({handleName:"\u67e5\u770b\u6a21\u578b",handleType:"link",handleAction:c.modelBaseUrl.viewModel(_.get(t,"modelId"),_.get(t,"modelVersionId"))}):a.push({handleName:"\u67e5\u770b\u955c\u50cf",handleType:"link",handleAction:c.modelMirrorUrl.versionDetail("service",t.mirrorId,"process",t.mirrorVersionId)}),(0,s.default)(u.ListButtons,{buttons:a,maxShowNum:3})}}];return(0,s.default)("div",{},void 0,(0,s.default)(n.default,{columns:I,dataSource:y,loading:h,pagination:!1}),(0,s.default)(u.TabPagination,{currentPage:C.offset,pageSize:C.limit,total:C.total,onChange:function(e,a){t.searchCond.pageNo=parseInt(e)-1,t.searchCond.pageSize=parseInt(a),t.fetchData(),t.setState({currentPage:e})}}))}},"./src/module/modelService/detailPage/ModelServiceDetailPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o,s=w(a("./node_modules/babel-runtime/helpers/jsx.js")),r=w(a("./node_modules/babel-runtime/helpers/extends.js")),i=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=w(a("./node_modules/babel-runtime/helpers/inherits.js")),u=w(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var c=w(a("./node_modules/react/index.js")),p=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(w(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/utils/history.js"),h=w(a("./src/module/modelService/detailPage/ServiceBaseInfo.jsx")),g=w(a("./src/module/modelService/detailPage/ServiceConfigInfo.jsx")),v=w(a("./src/module/modelService/detailPage/ServiceProcess.jsx")),y=w(a("./src/module/modelService/detailPage/ServiceMonitoring.jsx")),b=w(a("./src/module/modelService/detailPage/ServiceInstances.jsx")),x=w(a("./src/module/modelService/detailPage/ServiceInvocations.jsx")),C=w(a("./src/module/devCenter/apiDoc/ApiDocPage.jsx")),j=w(a("./src/module/modelService/detailPage/HistoryMirror.jsx")),S=a("./src/routes/routeHelper.jsx"),I=a("./src/redux/services/modelService.js"),T=a("./src/module/modelService/utils.js");function w(e){return e&&e.__esModule?e:{default:e}}var E=u.default.TabPane,D=p.default.div.withConfig({displayName:"ModelServiceDetailPage__ModelServiceDetailWrapper",componentId:"sc-1jw6ian-0"})(["width:100%;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-nav-scroll{display:flex;}.ant-tabs-tab{font-size:16px;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-active{min-height:400px;}}.service__tabs-wrapper{margin-top:20px;}.ant-tabs-content{margin-top:24px;}"]),M=p.default.div.withConfig({displayName:"ModelServiceDetailPage__TabContent",componentId:"sc-1jw6ian-1"})(["background:#fff;min-height:500px;width:100%;"]),k=(n=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));o.call(n);var s=_.get(a.match.params,"serviceId"),r=_.get(a.match.params,"tab","monitoring"),l=_.get(a.match.params,"rapidServiceId");return n.businessId=_.get(a.match.params,"businessId"),n.state={baseInfoLoading:!1,refreshing:!1,serviceId:s,activeTab:r,rapidServiceId:l,baseInfo:{serviceId:s},serviceVersionList:[]},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchServiceVersionList(),this.fetBasicInfo()},t.prototype.render=function(){var e=this.state,t=e.activeTab,a=e.serviceId,n=e.baseInfo,o=e.baseInfoLoading,i=e.serviceVersionList,d=e.refreshing,l=(0,r.default)({},n);return(0,s.default)(D,{},void 0,(0,s.default)(h.default,{serviceVersionList:i,onServiceChange:this.handleServiceIdChange,onRefreshVersion:this.fetchServiceVersionList,serviceId:a,rapidServiceId:this.state.rapidServiceId,baseInfo:l,baseInfoLoading:o,refreshing:d,onRefresh:this.handleRefresh}),(0,s.default)("div",{className:"service__tabs-wrapper"},void 0,(0,s.default)(u.default,{onChange:this.onChange,activeKey:t,className:"modelApply-tabs"},void 0,(0,s.default)(E,{tab:"\u6027\u80fd\u76d1\u63a7"},"monitoring",(0,s.default)(M,{},void 0,"monitoring"===t&&(0,s.default)(y.default,{serviceType:"reasoning_service",serviceId:a,refreshing:d,env:_.get(n,"resQuotaType")}))),(0,s.default)(E,{tab:"\u670d\u52a1\u8c03\u7528"},"invocation",(0,s.default)(M,{},void 0,"invocation"===t&&(0,s.default)(x.default,{profile:n.resQuotaType,serviceId:a,refreshing:d}))),(0,s.default)(E,{tab:"\u914d\u7f6e\u4fe1\u606f"},"config",(0,s.default)(M,{},void 0,"config"===t&&(0,s.default)(g.default,{serviceId:a,baseInfo:n}))),(0,s.default)(E,{tab:"\u5b9e\u4f8b\u4fe1\u606f"},"instances",(0,s.default)(M,{},void 0,"instances"===t&&(0,s.default)(b.default,{serviceType:"reasoning_service",serviceId:a,refreshing:d,appCode:n.deploymentLabelAppName}))),(0,s.default)(E,{tab:"\u8f93\u5165\u8f93\u51fa"},"io",(0,s.default)(M,{},void 0,"io"===t&&(0,s.default)(C.default,{hideAnchor:!0,showCodeRule:!0,serviceId:a,serviceName:n.serviceName,showTest:!0,refreshing:d,profile:n.resQuotaType}))),(0,s.default)(E,{tab:"\u4e3b\u8981\u4e8b\u4ef6"},"process",(0,s.default)(M,{},void 0,"process"===t&&(0,s.default)(v.default,{serviceLogType:"services",serviceId:_.get(n,"rapidServiceId"),deployId:a,refreshing:d}))),(0,s.default)(E,{tab:"\u5386\u53f2\u955c\u50cf"},"history",(0,s.default)(M,{},void 0,"history"===t&&(0,s.default)(j.default,{serviceId:a,refreshing:d}))))))},t}(c.default.PureComponent),o=function(){var e=this;this.fetchServiceVersionList=function(){e.businessId&&(0,I.getServiceVersionList)(e.businessId).then((function(t){var a=t.data||[];e.setState({serviceVersionList:a},(function(){e.state.serviceId||e.handleServiceIdChange(e.state.rapidServiceId)}))}))},this.fetBasicInfo=function(){e.state.serviceId&&(e.setState({baseInfoLoading:!0}),(0,I.getModelServiceDetailInfo)(e.state.serviceId).then((function(t){var a=t.data||{};e.businessId||(e.businessId=a.businessId,e.fetchServiceVersionList()),e.setState({baseInfo:t.data,refreshing:!1,baseInfoLoading:!1,rapidServiceId:a.rapidServiceId})})).catch((function(t){throw e.setState({refreshing:!1,baseInfoLoading:!1}),t})))},this.onChange=function(t){var a=e.state.serviceId;e.setState({activeTab:t}),a&&(0,m.navigateTo)({pathname:S.modelServiceUrl.detail(a,t,e.businessId),state:{unScrollToTop:!0}})},this.handleRefresh=function(){e.setState({refreshing:!0}),setTimeout((function(){e.setState({refreshing:!1})}),1e3),e.state.serviceId||e.fetchServiceVersionList()},this.handleServiceIdChange=function(t){var a=_.find(e.state.serviceVersionList,{serviceId:t});e.setState({serviceId:_.get(a,"deploymentId"),rapidServiceId:t},(function(){e.state.serviceId?e.fetBasicInfo():e.fetchServiceInfo()}))},this.fetchServiceInfo=function(){e.state.rapidServiceId&&(0,I.getServiceInfo)(e.state.rapidServiceId).then((function(t){var a=t.data||{},n=(0,T.parseDetailInfo)(a);e.setState({baseInfo:n})}))}},n);t.default=(0,f.connect)((function(){return{}}))(k)},"./src/module/modelService/detailPage/ServiceBaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=L(a("./node_modules/antd/es/progress/index.js")),o=L(a("./node_modules/antd/es/tooltip/index.js")),s=L(a("./node_modules/babel-runtime/helpers/jsx.js")),r=L(a("./node_modules/babel-runtime/helpers/extends.js")),i=L(a("./node_modules/antd/es/message/index.js")),d=L(a("./node_modules/antd/es/modal/index.js")),l=L(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=L(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=L(a("./node_modules/babel-runtime/helpers/inherits.js")),p=L(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/progress/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=L(a("./node_modules/react/index.js")),m=(L(a("./node_modules/prop-types/index.js")),L(a("./node_modules/dayjs/dayjs.min.js"))),h=L(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./src/components/index.js"),_=a("./src/utils/history.js"),y=a("./src/routes/routeHelper.jsx"),b=L(a("./src/module/modelService/components/ReassignResourceQuota.jsx")),x=a("./src/redux/services/modelService.js"),C=L(a("./src/module/sysManage/userActionManager/permissionManager/ResourcePermissionUserPage.jsx")),j=L(a("./src/components/button/index.js")),S=a("./src/module/modelService/utils.js"),I=L(a("./src/redux/services/sysManager/projectManage.js")),T=a("./src/module/modelService/modelEnums.js"),w=L(a("./src/module/modelService/detailPage/components/Upgrade.jsx")),E=L(a("./src/module/modelService/detailPage/components/ResQuotaConfig.jsx")),D=L(a("./src/module/modelService/detailPage/components/OnlineServiceConfig.jsx")),M=L(a("./src/module/modelService/detailPage/components/IngressConfig.jsx")),k=L(a("./src/module/modelService/detailPage/components/FlowControl.jsx")),P=L(a("./node_modules/lodash/lodash.js"));function L(e){return e&&e.__esModule?e:{default:e}}var N=j.default.GhostButton,A=p.default.Option,R=h.default.div.withConfig({displayName:"ServiceBaseInfo__DetailBaseInfoWrapper",componentId:"sc-1ejrwnc-0"})(["display:flex;border:1px solid #eee;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:80%;margin-right:24px;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.base__version-select{width:200px;}.left__top-line1{display:flex;align-items:center;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}"]),F=(0,s.default)("span",{},void 0,"\u7248\u672c\uff1a"),O=(0,s.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),V=(0,s.default)(g.LoadingOutlined,{className:"refresh-icon"}),U=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.fetchData=function(){n.props.serviceId?(n.fetchStatsOverview(),n.fetchMonitorInfo(),n.fetchServiceConfigInfo()):n.setState({monitorInfo:{},serviceConfigInfo:{},optPermission:(0,S.getOptPermission)("ERROR")})},n.fetchApplications=function(){I.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsList:e.data})}))},n.fetchStatsOverview=function(){n.props.serviceId?(n.setState({overviewInfoLoading:!0}),(0,x.getServiceStatsOverview)("reasoning_service",n.props.serviceId).then((function(e){n.setState({overviewInfo:e.data,refreshing:!1,overviewInfoLoading:!1})})).catch((function(e){throw n.setState({overviewInfo:{},overviewInfoLoading:!1,refreshing:!1}),e}))):n.setState({overviewInfo:{}})},n.fetchMonitorInfo=function(){n.props.serviceId?(0,x.getServiceMonitorInfo)(n.props.serviceId).then((function(e){var t=(0,S.getOptPermission)(P.default.get(e.data,"status"));n.setState({monitorInfo:e.data,refreshing:!1,optPermission:t})})).catch((function(e){throw e})):n.setState({monitorInfo:{}})},n.fetchTodayInvocations=function(){n.props.baseInfo.resQuotaType&&(0,x.getServiceInvokeSummary)(n.props.serviceId,{statType:"day",limit:1,statPeriod:(0,m.default)(new Date).format("YYYY-MM-DD"),env:P.default.lowerCase(n.props.baseInfo.resQuotaType)}).then((function(e){n.setState({todayInvocations:P.default.get(e,"data[0]",{})||{},refreshing:!1})}))},n.handleOperation=function(e){switch(e.key){case"start":case"restart":case"stop":n._handleAction(e);break;case"delete":n._handleDeleteAction(e);break;case"impower":n.openModalSharesVisible();break;case"reassign":case"config":case"upgrade":case"onlineEdit":case"ingressEdit":case"flowConfig":n.openModal(e.key);break;case"grayPublish":var t=n.state.baseInfo;(0,_.navigateTo)({pathname:y.grayTaskUrl.create({action:"create",profile:P.default.lowerCase(t.resQuotaType),step:"create",serviceId:t.rapidServiceId})})}},n._handleDeleteAction=function(e){var t=n.state.baseInfo;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+e.text+"\u670d\u52a1[ "+P.default.get(t,"serviceName")+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(a,o){n.props.rapidServiceId||o("\u5220\u9664\u9519\u8bef\uff01"),(0,x.deleteService)(n.props.rapidServiceId).then((function(){n.props.onRefreshVersion&&n.props.onRefreshVersion();var o=[].concat(n.props.serviceVersionList);if((o=o.filter((function(e){return e.serviceId!==n.props.rapidServiceId}))).length>0){var s=o[0].serviceId;n.changeVersion(s),i.default.success(e.text+"[ "+t.serviceName+" ]\u6267\u884c\u6210\u529f!")}else{i.default.success(e.text+"[ "+t.serviceName+" ]\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01");var r=t.resQuotaType;setTimeout((function(){return(0,_.navigateTo)({pathname:y.modelServiceUrl.list(),state:{pubEnvType:r}})}),2e3)}a()})).catch((function(e){o(e)}))}))}})},n._handleAction=function(e){var t=n.state.baseInfo;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+e.text+"\u670d\u52a1[ "+P.default.get(t,"serviceName")+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){var o=n.state.baseInfo,s="delete"===e.action?"undeploy":e.action,r=P.default.get(n.state.serviceConfigInfo,"quotaSetting"),d="restart"===s?{resQuotaId:n.props.rapidServiceId}:{resQuotaId:o.serviceId,resQuotaType:o.resQuotaType,quotaSetting:r?JSON.parse(r):{}};(0,x.operateModelService)(s,d).then((function(){i.default.success(e.text+"[ "+o.serviceName+" ]\u6267\u884c\u6210\u529f!"),n.props.onRefresh(!0),t()})).catch((function(e){a(e)}))}))}})},n.fetchServiceConfigInfo=function(){n.props.serviceId&&(0,x.getServiceConfigInfo)(n.props.serviceId).then((function(e){n.setState({serviceConfigInfo:e.data})}))},n.callVisible=function(e){n.setState({modalVisible:!1}),e&&n.props.onRefresh(),e&&n.fetchServiceConfigInfo()},n.callShareVisible=function(){n.setState({modalShareVisible:!1})},n.openModalSharesVisible=function(){n.setState({modalShareVisible:!0})},n.openModal=function(e){n.setState({modalVisible:!0,modalType:e})},n.getApplicationsName=function(e){var t=e||"--";if(e&&n.state.applicationsList&&n.state.applicationsList.length>0)for(var a=0;a<n.state.applicationsList.length;a++)if(n.state.applicationsList[a].projectApplicationId===e){t=n.state.applicationsList[a].applicationName;break}return t},n.handleRefresh=function(){n.props.onRefresh(!0),n.fetchStatsOverview(),n.fetchMonitorInfo()},n.changeVersion=function(e){n.props.onServiceChange&&n.props.onServiceChange(e)},n.state={refreshing:!1,optPermission:(0,S.getOptPermission)(),applicationsList:[],modalVisible:!1,modalType:"reassign",overviewInfo:{},monitorInfo:{},serviceConfigInfo:{},todayInvocations:{}},n.items=[{key:"deployBusinessType",name:"\u5f52\u5c5e\u5e94\u7528",type:"application"},{key:"resQuotaType",name:"\u53d1\u5e03\u73af\u5883",type:"resQuotaType"},{key:"createBy",name:"\u521b\u5efa\u4eba",type:"text"},{key:"createAt",name:"\u521b\u5efa\u65f6\u95f4",type:"text"},{key:"usageRate.cpu",name:"CPU\u5229\u7528\u7387",type:"progress"},{key:"usageRate.memory",name:"\u5185\u5b58\u5229\u7528\u7387",type:"progress"}],n.optsBtn=[{key:"start",text:"\u542f\u52a8",action:"start"},{key:"restart",text:"\u91cd\u542f",action:"restart"},{key:"stop",text:"\u505c\u6b62",action:"stop"},{key:"upgrade",text:"\u5347\u7ea7",action:"upgrade"},{key:"impower",text:"\u6388\u6743",action:"impower"},{key:"reassign",text:"\u6269\u7f29\u5bb9",action:"reassign"},{key:"config",text:"\u89c4\u683c\u8c03\u6574",action:"config"},{key:"onlineEdit",text:"\u914d\u7f6e\u53d8\u66f4",action:"edit"},{key:"ingressEdit",text:"\u5730\u5740\u53d8\u66f4",action:"edit"},{key:"grayPublish",text:"\u7070\u5ea6\u53d1\u5e03",action:"publish"},{key:"flowConfig",text:"\u6d41\u91cf\u63a7\u5236",action:"edit"},{key:"delete",text:"\u5220\u9664",action:"delete"}],n}return(0,c.default)(t,e),t.getDerivedStateFromProps=function(e){return{baseInfo:P.default.get(e,"baseInfo"),baseInfoLoading:P.default.get(e,"baseInfoLoading"),refreshing:P.default.get(e,"refreshing")}},t.prototype.componentDidUpdate=function(e){this.props.serviceId!==e.serviceId&&this.fetchData()},t.prototype.componentDidMount=function(){this.fetchData(),this.fetchApplications()},t.prototype.render=function(){var e=this,t=this.state,a=t.baseInfo,i=t.optPermission,d=t.refreshing,l=t.overviewInfoLoading,u=t.modalType,c=t.overviewInfo,f=t.monitorInfo,m=t.serviceConfigInfo,h=t.todayInvocations,_=this.props,y=_.serviceVersionList,x=_.rapidServiceId;a=(0,r.default)({},a,c,f,h);var j=P.default.get(m,"quotaSetting"),S=P.default.get(m,"deploymentReplicas"),I=P.default.get(m,"deployMessage"),L=["reassign","ingressEdit"].includes(u)?700:1200,U=function(e){return{reassign:"\u5728\u7ebf\u6269\u7f29\u5bb9",upgrade:"\u5347\u7ea7",config:"\u89c4\u683c\u914d\u7f6e",onlineEdit:"\u914d\u7f6e\u53d8\u66f4",ingressEdit:"\u5730\u5740\u53d8\u66f4",flowConfig:"\u6d41\u91cf\u9650\u5236"}[e]}(u);return(0,s.default)(R,{},void 0,(0,s.default)(v.ModalView,{modalTitle:"\u6388\u6743",onCancelType:!1,confirmLoading:this.state.shareLoading,width:1200,callVisible:this.callShareVisible,modalVisible:this.state.modalShareVisible,okText:"\u63d0 \u4ea4",comp:(0,s.default)(C.default,{resourceId:P.default.get(a,"serviceId"),domainId:"deploy"})}),(0,s.default)(v.ModalView,{modalTitle:U,closable:!0,width:L,centered:!0,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:function(){switch(u){case"reassign":return(0,s.default)(b.default,{closeModal:e.callVisible,modelInfo:{deployId:a.serviceId,deployEnvType:a.resQuotaType,deployConfig:j,instance:isNaN(S)?1:Number(S)}});case"upgrade":return(0,s.default)(w.default,{applicationId:a.deployBusinessType,pubEnvType:a.resQuotaType,serviceId:a.rapidServiceId,deploymentId:a.serviceId,closeModal:e.callVisible});case"config":return(0,s.default)(E.default,{applicationId:a.deployBusinessType,pubEnvType:a.resQuotaType,serviceId:a.rapidServiceId,deploymentId:a.serviceId,closeModal:e.callVisible});case"onlineEdit":return(0,s.default)(D.default,{serviceId:a.rapidServiceId,closeModal:e.callVisible});case"ingressEdit":return(0,s.default)(M.default,{serviceId:a.rapidServiceId,deploymentIngressAddress:P.default.get(m,"deploymentIngressAddress"),closeModal:e.callVisible});case"flowConfig":return(0,s.default)(k.default,{serviceId:a.serviceId,pubEnvType:a.resQuotaType,closeModal:e.callVisible})}}()}),(0,s.default)("div",{className:"left__content-wrapper"},void 0,(0,s.default)("div",{className:"left__top-wrapper"},void 0,(0,s.default)("div",{className:"left__top-line1"},void 0,(0,s.default)("div",{className:"base__info-name top__line1-section"},void 0,a.serviceName),(0,s.default)("div",{className:"base__info-status top__line1-section"},void 0,(0,s.default)("span",{},void 0,"RUNNING"===a.status?(0,s.default)("span",{style:{display:"flex"}},void 0,(0,s.default)(v.StateLabel,{source:"modelService",code:a.status}),(0,s.default)("span",{style:{marginLeft:4,lineHeight:2,fontWeight:600}},void 0,a.statusCount)):(0,s.default)(o.default,{placement:"topLeft",title:I},void 0,(0,s.default)("div",{style:{display:"flex"}},void 0,(0,s.default)(v.StateLabel,{source:"modelService",code:a.status}),(0,s.default)("span",{style:{margin:"auto 0px auto 4px"}},void 0,a.statusCount))))),(0,s.default)("div",{className:"base__info-progress top__line1-section",style:{display:"none"}},void 0,(0,s.default)("div",{className:"item__progress-wrapper"},void 0,(0,s.default)(n.default,{percent:a.progress||0}))),(0,s.default)("div",{className:"base__info-runtime top__line1-section"},void 0,"\u8fd0\u884c\u65f6\u957f\uff1a",a.runTime),(0,s.default)("div",{style:{display:"flex",alignItems:"center"}},void 0,F,(0,s.default)(p.default,{onChange:this.changeVersion,style:{width:160},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",value:x},void 0,Array.isArray(y)&&y.map((function(e){return(0,s.default)(A,{value:e.serviceId},e.serviceId,e.versionNickName)}))))),(0,s.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",a.serviceDesc," ")),(0,s.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(t){return"text"===t.type?(0,s.default)("div",{className:"item__wrapper"},t.key,(0,s.default)("span",{style:{width:"100px"}},void 0,t.name,"\uff1a"),(0,s.default)("span",{},void 0,"gpu"===t.key?P.default.get(a,"usageRate.gpuMemory")||P.default.get(a,"usageRate.gpuCard",0):P.default.get(a,t.key))):"application"===t.type?(0,s.default)("div",{className:"item__wrapper"},t.key,(0,s.default)("span",{style:{width:"100px",whiteSpace:"nowrap"}},void 0,t.name,"\uff1a"),(0,s.default)(o.default,{title:e.getApplicationsName(a[t.key])},void 0,(0,s.default)("span",{className:"item__applications"},void 0,e.getApplicationsName(a[t.key])))):"resQuotaType"===t.type?(0,s.default)("div",{className:"item__wrapper"},t.key,(0,s.default)("span",{style:{width:"100px",whiteSpace:"nowrap"}},void 0,t.name,"\uff1a"),(0,s.default)("span",{},void 0,T.ENVIRONMENT.getDescFromValue(a[t.key]))):(0,s.default)("div",{className:"item__wrapper"},t.key,(0,s.default)("span",{style:{width:"100px",whiteSpace:"nowrap",flexShrink:0}},void 0,t.name,"\uff1a"),(0,s.default)("span",{style:{marginRight:20,width:"25px"}},void 0,P.default.isNumber(P.default.get(a,t.key))?P.default.get(a,t.key):0,"%"),(0,s.default)("div",{className:"item__progress-wrapper"},void 0,(0,s.default)(n.default,{percent:P.default.get(a,t.key)||0,showInfo:!1})))})))),(0,s.default)("div",{className:"right__content-wrapper"},void 0,O,(0,s.default)(v.RefreshButton,{onRefresh:this.handleRefresh,style:{display:"none"}}),!d||!l&&this.props.serviceId?(0,s.default)(o.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,s.default)(g.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})):V,(0,s.default)("div",{className:"right__bottom-wrapper"},void 0,this.optsBtn.map((function(t){return i[t.key]&&("ingressEdit"!==t.key&&"grayPublish"!==t.key&&"flowConfig"!==t.key||"ingressEdit"===t.key&&["OUT_NETWORK","ALL"].includes(P.default.get(m,"deploymentLinkType"))||["grayPublish","flowConfig"].includes(t.key)&&P.default.get(m,"deploymentLinkType")===T.SERVICE_ADDRESS_TYPE.ai)&&(0,s.default)(N,{action:P.default.upperCase(t.action,""),width:"20",txt:t.text,onClick:function(){return e.handleOperation(t)},className:"fn-left opt-btn"},t.key)})))))},t}(f.default.Component);t.default=U},"./src/module/modelService/detailPage/ServiceConfigInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/col/index.js")),o=C(a("./node_modules/babel-runtime/helpers/extends.js")),s=C(a("./node_modules/antd/es/row/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=C(a("./node_modules/babel-runtime/helpers/inherits.js")),u="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\detailPage\\ServiceConfigInfo.jsx";a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var c=C(a("./node_modules/react/index.js")),p=(C(a("./node_modules/prop-types/index.js")),C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=a("./src/components/index.js"),h=a("./src/module/modelBase/modelEnums.js"),g=a("./src/utils/commonUtil.js"),v=a("./src/module/modelService/components/AvailableQuota.jsx"),y=a("./src/module/modelService/publishPage/ServiceOrchestration.jsx"),b=C(a("./src/module/modelService/publishPage/HealthCheckConfig.jsx")),x=a("./src/redux/services/modelService.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=f.Form.Item,S=p.default.div.withConfig({displayName:"ServiceConfigInfo__DetailInfoWrapper",componentId:"w2gt3q-0"})(["display:flex;flex-wrap:wrap;.service__address-wrapper{display:flex !important;.ant-legacy-form-item-label{width:70px;}}.ant-checkbox-wrapper + .ant-checkbox-wrapper{margin-left:0;}"]),I={MODEL:"\u6a21\u578b\u6587\u4ef6",CODE:"\u670d\u52a1\u4ee3\u7801",IMPORT:"\u955c\u50cf\u5bfc\u5165",INIT:"\u5185\u7f6e"},T=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchServiceConfigInfo=function(){n.props.serviceId?(0,x.getServiceConfigInfo)(n.props.serviceId).then((function(e){return n.setState({serviceConfigInfo:e.data})})):n.setState({serviceConfigInfo:n.props.baseInfo})},n.state={serviceConfigInfo:{}},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchServiceConfigInfo()},t.prototype.componentDidUpdate=function(e){this.props.serviceId!=e.serviceId&&this.fetchServiceConfigInfo(),_.isEqual(this.props.baseInfo,e.baseInfo)||this.props.serviceId||this.setState({serviceConfigInfo:this.props.baseInfo})},t.prototype.render=function(){var e={layout:"inline",labelAlign:"left"},t={marginBottom:0},a={width:"50%"},i=this.state.serviceConfigInfo,d=_.get(i,"quotaSetting");d=(0,g.isJsonString)(d)?JSON.parse(d):{};var l=_.get(i,"deployArrange");l=(0,g.isJsonString)(l)?JSON.parse(l):{};var p=_.get(i,"deploymentHealthcheckLiveness"),x=_.get(i,"deploymentHealthcheckReadiness"),C={deploymentHealthcheckReadiness:(0,g.isJsonString)(x)?JSON.parse(x):{},deploymentHealthcheckLiveness:(0,g.isJsonString)(p)?JSON.parse(p):{}},T=(0,g.isJsonString)(i.deploymentIngress)?JSON.parse(i.deploymentIngress):[];T=_.get(T,"[0]",{})||{};return(0,r.default)(S,{},void 0,(0,r.default)(m.ModelConfigPanel,{title:"\u955c\u50cf\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:93}}),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"\u955c\u50cf\u540d\u79f0",style:t},void 0,i.mirrorName||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"\u7248\u672c",style:t},void 0,i.mirrorVersionName||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"\u6765\u6e90",style:t},void 0,I[i.versionSourceType]||"--")))),(0,r.default)(m.ModelConfigPanel,{title:"\u670d\u52a1\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:112}}),(0,r.default)(s.default,{},void 0,["IN_NETWORK"].includes(i.deploymentLinkType)&&(0,r.default)(n.default,{},void 0,(0,r.default)(j,{label:"\u670d\u52a1\u5730\u5740",style:t,className:"service__address-wrapper"},void 0,i.serviceUrl||"--")),(0,r.default)(n.default,{},void 0,(0,r.default)(j,{style:t,label:"\u670d\u52a1ID "},void 0,i.serviceId||"--"))),["IN_NETWORK"].includes(i.deploymentLinkType)&&(0,r.default)(y.ServiceOrchestration,{moduleData:l,actionType:"view",wrapperStyle:{width:"50%"},itemStyle:{width:150}}),["OUT_NETWORK"].includes(i.deploymentLinkType)&&(0,r.default)(c.default.Fragment,{},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{span:12},void 0,(0,r.default)(j,{label:"Ingress\u540d\u79f0",style:t},void 0,T.name||"--")),(0,r.default)(n.default,{span:12},void 0,(0,r.default)(j,{label:"Ingress IP",style:t},void 0,T.loadBalanceUrl||"--"))),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{span:12},void 0,(0,r.default)(j,{label:"Ingress\u7aef\u53e3",style:t},void 0,T.httpPort))),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"Ingress\u57df\u540d",style:t},void 0,i.deploymentIngressAddress||"--"))))),"MODEL"===i.versionSourceType&&(0,r.default)(m.ModelConfigPanel,{title:"\u6a21\u578b\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:172}}),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"\u6a21\u578bID",style:t},void 0,i.modelId||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"\u6a21\u578b\u540d\u79f0",style:t},void 0,i.modelName||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"\u7248\u672c",style:t},void 0,i.versionName||"--")),(0,r.default)(j,{label:"\u6765\u6e90",style:t},void 0,h.PUBLISH_FROM.getDescFromValue(i.publishFrom)||"--"))),(0,r.default)(m.ModelConfigPanel,{title:"\u8d44\u6e90\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:195}}),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"CPU\uff08core\uff09",style:(0,o.default)({},t,{width:180})},void 0,d.cpu||0),(0,r.default)(j,{style:t,label:"\u5185\u5b58\uff08GB\uff09"},void 0,d.memory)),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{style:t,label:"GPU\uff08\u6570\u91cf\uff09"},void 0,(0,v.renderGpu)(d.gpu))),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{style:t,label:"\u5b9e\u4f8b\u4e2a\u6570"},void 0,i.deploymentReplicas||1)))),(0,r.default)(m.ModelConfigPanel,{title:"\u542f\u52a8\u53c2\u6570",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:217}}),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"\u542f\u52a8\u547d\u4ee4",style:t},void 0,i.startCommand||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"\u670d\u52a1\u7aef\u53e3",style:t},void 0,i.deploymentPort||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{label:"\u5de5\u4f5c\u76ee\u5f55",style:t},void 0,i.workDir||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{style:t,label:"\u65e5\u5fd7\u8def\u5f84"},void 0,i.logInnerPath||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(j,{style:(0,o.default)({},t),label:"\u73af\u5883\u53d8\u91cf"},void 0,(0,r.default)("span",{style:{display:"flex",flexWrap:"wrap"}},void 0,Array.isArray(i.deployEnvs)&&i.deployEnvs.length>0?i.deployEnvs.map((function(e,t){return(0,r.default)("span",{style:{marginLeft:6}},t,(e.name?e.name+"=":"--")+e.value)})):"--"))))),(0,r.default)(s.default,{},void 0,(0,r.default)(b.default,{moduleData:C,actionType:"view"})))},t}(c.default.Component);t.default=T},"./src/module/modelService/detailPage/ServiceInstances.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/babel-runtime/helpers/extends.js")),o=b(a("./node_modules/antd/es/col/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/antd/es/card/index.js")),i=b(a("./node_modules/babel-runtime/helpers/jsx.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/card/style/index.js");var c=a("./node_modules/react/index.js"),p=b(c),f=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./src/components/index.js"),v=a("./src/redux/services/modelService.js"),y=b(a("./src/module/modelService/detailPage/components/instancesInner/InstancesInnerPageWrapper.jsx"));function b(e){return e&&e.__esModule?e:{default:e}}var x=f.default.div.withConfig({displayName:"ServiceInstances__ServiceInstancesWrapper",componentId:"b6f4nb-0"})([".form-item{height:40px;line-height:40px;}"]),C=h.Form.Item,j=(0,i.default)(m.ExceptionOutlined,{}),S=(0,i.default)(m.CodeOutlined,{}),I=(0,i.default)(g.NoData,{}),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.fetchData=function(){n.props.serviceId?(n.setState({loading:!0}),(0,v.getServiceInstList)(n.props.serviceType,n.props.serviceId).then((function(e){n.setState({instances:e.data,loading:!1})})).catch((function(){return n.setState({loading:!1})}))):n.setState({instances:[]})},n.getPercent=function(e){return e&&!isNaN(e)?e+"%":0},n.handleOpenInnerPage=function(e,t){n.setState({currentInstances:e,innerTargetPage:t})},n.handleBack=function(){n.setState({currentInstances:null,innerTargetPage:""})},n.state={loading:!1,instances:[],currentInstances:null,innerTargetPage:""},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.refreshing&&e.refreshing!==this.props.refreshing&&this.fetchData(),this.props.serviceId&&this.props.serviceId!==e.serviceId&&this.fetchData()},t.prototype.render=function(){var e=this,t={layout:"inline",labelAlign:"left"},a={marginBottom:0},d=this.state,l=d.instances,u=d.innerTargetPage,c=d.currentInstances;return u?(0,i.default)(y.default,{serviceId:this.props.serviceId,target:u,instance:c,appCode:this.props.appCode,onBack:this.handleBack}):(0,i.default)(x,{},void 0,(0,i.default)("div",{className:"link",style:{marginBottom:10,textAlign:"right"},onClick:function(){return e.handleOpenInnerPage({},"logs")}},void 0,"\u670d\u52a1\u65e5\u5fd7\u4e0b\u8f7d"),Array.isArray(l)&&l.length>0?l.map((function(d,l){return(0,i.default)(r.default,{size:"small",style:{marginTop:0===l?0:24}},l,p.default.createElement(h.Form,(0,n.default)({},t,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\detailPage\\ServiceInstances.jsx",lineNumber:106}}),(0,i.default)(s.default,{},void 0,(0,i.default)(C,{label:"\u5b9e\u4f8bID",style:a},void 0,d.instanceName),(0,i.default)("span",{className:"link form-item",onClick:function(){return e.handleOpenInnerPage(d,"logs")}},void 0,"\u5bb9\u5668\u65e5\u5fd7\u4e0b\u8f7d")),(0,i.default)(s.default,{},void 0,(0,i.default)(o.default,{span:4},void 0,(0,i.default)(C,{label:"CPU\u5229\u7528\u7387",style:a},void 0,e.getPercent(_.get(d,"runResourceUsageRate.cpu",0)))),(0,i.default)(o.default,{span:4},void 0,(0,i.default)(C,{label:"\u5185\u5b58\u5229\u7528\u7387",style:a},void 0,e.getPercent(_.get(d,"runResourceUsageRate.memory",0)))),(0,i.default)(o.default,{span:4},void 0,(0,i.default)(C,{label:"\u5b9e\u4f8b\u72b6\u6001",style:a},void 0,_.get(d,"status","--"))),(0,i.default)(o.default,{span:4},void 0,(0,i.default)("span",{className:"link form-item",onClick:function(){return e.handleOpenInnerPage(d,"consoleLog")}},void 0,"\u63a7\u5236\u53f0\u65e5\u5fd7 ",j)),(0,i.default)(o.default,{span:4},void 0,(0,i.default)("span",{className:"link form-item",onClick:function(){return e.handleOpenInnerPage(d,"terminal")}},void 0,"\u63a7\u5236\u53f0\u7ec8\u7aef ",S)))))})):I)},t}(c.Component);T.defaultProps={appCode:""},t.default=T},"./src/module/modelService/detailPage/ServiceInvocationDetail.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=T(a("./node_modules/babel-runtime/helpers/extends.js")),o=T(a("./node_modules/antd/es/col/index.js")),s=T(a("./node_modules/antd/es/row/index.js")),r=T(a("./node_modules/antd/es/modal/index.js")),i=T(a("./node_modules/antd/es/tooltip/index.js")),d=T(a("./node_modules/antd/es/popover/index.js")),l=T(a("./node_modules/babel-runtime/helpers/jsx.js")),u=T(a("./node_modules/antd/es/message/index.js")),c=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=T(a("./node_modules/babel-runtime/helpers/inherits.js")),m=T(a("./node_modules/antd/es/collapse/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/popover/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/collapse/style/index.js");var h=T(a("./node_modules/react/index.js")),g=(T(a("./node_modules/prop-types/index.js")),T(a("./node_modules/lodash/lodash.js"))),v=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),_=T(a("./node_modules/copy-to-clipboard/index.js")),y=a("./node_modules/@ant-design/icons/es/index.js"),b=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var x=a("./src/components/index.js"),C=a("./src/redux/services/modelService.js"),j=T(a("./node_modules/react-json-tree/lib/index.js")),S=a("./src/utils/commonUtil.js"),I=T(a("./src/module/modelService/detailPage/components/LogDownload.jsx"));function T(e){return e&&e.__esModule?e:{default:e}}var w=b.Form.Item,E=m.default.Panel,D=v.default.div.withConfig({displayName:"ServiceInvocationDetail__DetailInfoWrapper",componentId:"l0cr6s-0"})(["display:flex;flex-direction:column;.invocation-info{display:flex;}.ant-collapse-content > .ant-collapse-content-box{padding:4px;}.ant-collapse-content-box > ul > li{padding-bottom:0.25em;padding-right:0.25em;}.image-text{font-size:12px;vertical-align:bottom;}"]),M=function(e){function t(a){(0,c.default)(this,t);var n=(0,p.default)(this,e.call(this,a));return n.fetchData=function(){n.props.profile&&n.props.logId&&n.props.beginAt&&(0,C.getServiceInvocationDetail)(n.props.logId,{profile:g.default.lowerCase(n.props.profile),requestAt:n.props.beginAt},n.props.profile).then((function(e){var t=e.data||{};n.setState({invocationInfo:t})}))},n.copy2clipboard=function(e,t){e.stopPropagation(),t=g.default.isObject(t)?JSON.stringify(t):t,(0,_.default)(t),u.default.success("\u590d\u5236\u6210\u529f\uff01")},n.valueRenderer=function(e){var t=e;return"string"===typeof e&&(e=e.replace(/^\"|\"$/g,"")),"string"===typeof e&&(0,S.isImageUrl)(e)?(0,l.default)(h.default.Fragment,{},void 0,(0,l.default)(d.default,{content:(0,l.default)("div",{className:"img__hover-card"},void 0,(0,l.default)("div",{className:"img__wrapper"},void 0,(0,l.default)("img",{src:e,height:"400",width:"400",style:{objectFit:"contain"}}))),placement:"right",trigger:"hover"},void 0,(0,l.default)("div",{className:"image-text"},void 0,(0,l.default)(y.FileImageOutlined,{style:{fontSize:10,color:"#fff",margin:"0 2px 0 12px"}}),t,(0,l.default)(y.CopyOutlined,{title:"\u590d\u5236",onClick:function(t){return n.copy2clipboard(t,e)},style:{fontSize:10,color:"#fff",margin:"0 2px 0 10px",cursor:"pointer"}})))):t},n.genExtra=function(e){return(0,l.default)(i.default,{placement:"top",title:"\u590d\u5236"},void 0,(0,l.default)(y.CopyOutlined,{onClick:function(t){return n.copy2clipboard(t,e)}}))},n.showDownloadModal=function(){n.setState({showDownloadModal:!0})},n.closeDownloadModal=function(){n.setState({showDownloadModal:!1})},n.state={invocationInfo:{},showDownloadModal:!1},n}return(0,f.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.logId===e.logId&&this.props.profile===e.profile&&this.props.beginAt===e.beginAt||this.fetchData()},t.prototype.render=function(){var e={marginBottom:0},t=this.state,a=t.invocationInfo,i=t.showDownloadModal,d=a.requestBody&&(0,S.isJsonString)(a.requestBody)?JSON.parse(a.requestBody):a.requestBody||{},u=a.responseBody&&(0,S.isJsonString)(a.responseBody)?JSON.parse(a.responseBody):a.responseBody||{},c=JSON.stringify({requestBody:d,responseBody:u});return(0,l.default)(D,{},void 0,(0,l.default)(r.default,{title:"\u4e0b\u8f7d",visible:i,onOk:this.closeDownloadModal,onCancel:this.closeDownloadModal,footer:null},void 0,(0,l.default)(I.default,{logId:this.props.logId,profile:this.props.profile,beginAt:this.props.beginAt})),(0,l.default)(x.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,h.default.createElement(b.Form,(0,n.default)({},{layout:"inline",labelAlign:"left"},{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\detailPage\\ServiceInvocationDetail.jsx",lineNumber:178}}),(0,l.default)(s.default,{},void 0,(0,l.default)(o.default,{span:10},void 0,(0,l.default)(w,{label:"HTTP\u72b6\u6001\u7801",style:e},void 0,(0,l.default)("div",{},void 0,a.httpStatus))),(0,l.default)(w,{label:"\u4efb\u52a1\u72b6\u6001",style:e},void 0,(0,l.default)("div",{style:{marginTop:10}},void 0,(0,l.default)(x.StateLabel,{source:"serviceInvocation",code:a.successFlag})))),(0,l.default)(s.default,{},void 0,(0,l.default)(o.default,{span:10},void 0,(0,l.default)(w,{label:"\u5f00\u59cb\u65f6\u95f4",style:e},void 0,a.beginAt)),(0,l.default)(w,{label:"\u7ed3\u675f\u65f6\u95f4",style:e},void 0,a.endAt)),(0,l.default)(s.default,{},void 0,(0,l.default)(o.default,{span:10},void 0,(0,l.default)(w,{label:"API\u7528\u6237",style:e},void 0,a.userId)),(0,l.default)(o.default,{span:6},void 0,(0,l.default)(w,{label:"\u8017\u65f6",style:e},void 0,a.duration?a.duration+"ms":"0"))),(0,l.default)(s.default,{},void 0,(0,l.default)(o.default,{span:10},void 0,(0,l.default)(w,{label:"\u4e1a\u52a1\u7801",style:e},void 0,g.default.get(a,"busiCode")?g.default.get(a,"busiCode"):"--")),(0,l.default)(w,{label:"\u4e1a\u52a1\u7801\u63cf\u8ff0",style:e},void 0,g.default.get(a,"busiMsg")?g.default.get(a,"busiMsg"):"--")))),(0,l.default)(x.ModelConfigPanel,{title:(0,l.default)("span",{},void 0,"\u8c03\u7528\u4fe1\u606f",(0,l.default)("span",{style:{marginLeft:8},className:"link",onClick:this.showDownloadModal},void 0,"\u4e0b\u8f7d"),(0,l.default)("span",{style:{marginLeft:8}},void 0,this.genExtra(c)))},void 0,(0,l.default)("div",{className:"invocation-info",style:{width:"100%"}},void 0,(0,l.default)(m.default,{accordion:!0,style:{width:"100%"},expandIconPosition:"left"},void 0,(0,l.default)(E,{header:"Request Body",extra:this.genExtra(d)},"3",(0,l.default)(j.default,{data:d,valueRenderer:this.valueRenderer,invertTheme:!1})),(0,l.default)(E,{header:"Response Body",extra:this.genExtra(u)},"5",(0,l.default)(j.default,{data:u,valueRenderer:this.valueRenderer,invertTheme:!1}))))))},t}(h.default.Component);t.default=M},"./src/module/modelService/detailPage/ServiceInvocations.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=E(a("./node_modules/antd/es/table/index.js")),o=E(a("./node_modules/antd/es/dropdown/index.js")),s=E(a("./node_modules/antd/es/col/index.js")),r=E(a("./node_modules/antd/es/row/index.js")),i=E(a("./node_modules/antd/es/modal/index.js")),d=E(a("./node_modules/antd/es/drawer/index.js")),l=E(a("./node_modules/babel-runtime/helpers/extends.js")),u=E(a("./node_modules/antd/es/tooltip/index.js")),c=E(a("./node_modules/babel-runtime/helpers/jsx.js")),p=E(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=E(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=E(a("./node_modules/babel-runtime/helpers/inherits.js")),h=E(a("./node_modules/antd/es/menu/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/dropdown/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/menu/style/index.js");var g=E(a("./node_modules/react/index.js")),v=E(a("./node_modules/moment/moment.js")),y=(E(a("./node_modules/prop-types/index.js")),E(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),b=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var x=a("./src/components/index.js"),C=E(a("./src/containers/DownLoad/DownloadTool.jsx")),j=a("./src/redux/services/modelService.js"),S=E(a("./src/module/modelService/detailPage/ServiceInvocationDetail.jsx")),I=E(a("./src/module/modelService/detailPage/components/SearchBar.jsx")),T=a("./src/module/modelService/modelEnums.js"),w=a("./node_modules/@ant-design/icons/es/index.js");function E(e){return e&&e.__esModule?e:{default:e}}var D=h.default.Item,M=b.Form.Item,k=y.default.div.withConfig({displayName:"ServiceInvocations__ManagePageDom",componentId:"sc-7worec-0"})(["display:flex;flex-direction:column;flex:1 1 auto;"]),P=y.default.div.withConfig({displayName:"ServiceInvocations__TabsDiv",componentId:"sc-7worec-1"})(["width:100%;position:relative;background-color:#ffff;padding-top:0;margin-bottom:20px;"]),L=y.default.div.withConfig({displayName:"ServiceInvocations__PageHeader",componentId:"sc-7worec-2"})(["position:relative;white-space:nowrap;display:flex;padding-right:16px;.search__item-wrapper{display:flex;margin-right:16px;height:32px;line-height:32px;margin-left:0;}.item-cond{width:120px;}"]),N=y.default.div.withConfig({displayName:"ServiceInvocations__PageBody",componentId:"sc-7worec-3"})(["display:flex;min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),A=y.default.div.withConfig({displayName:"ServiceInvocations__ModelsBox",componentId:"sc-7worec-4"})(["margin-top:5px;flex:1 1 auto;"]),R={limit:10,offset:1,total:0},F=(0,c.default)(w.DownOutlined,{}),O=function(e){function t(a){var n;(0,p.default)(this,t);var o=(0,f.default)(this,e.call(this,a));return o.renderColumn=function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e?""+e:"--"},void 0,e?""+e:"--")},o.fetchData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.state.pagination;if(o.props.profile&&o.props.serviceId){o.setState({listLoading:!0});var t=e.offset,a=e.limit;(0,j.getServiceInvocation)((0,l.default)({},o.searchCond,{serviceId:o.props.serviceId,offset:t,limit:a}),o.props.profile).then((function(e){o.setState({invocationInfo:e.data,listLoading:!1,pagination:_.get(e,"pagination",R)})})).catch((function(e){throw o.setState({listLoading:!1}),e}))}else o.setState({invocationInfo:{}})},o.onChangePage=function(e,t){o.fetchData({offset:e,limit:t})},o.changeSearchCond=function(e){o.searchCond=(0,l.default)({},o.searchCond,e),o.fetchData({offset:1,limit:o.state.pagination.limit})},o.viewDetail=function(e,t){o.setState({visible:!0,currentLogId:e,logBeginAt:t})},o.onClose=function(){o.setState({visible:!1})},o.handleShowDownloadModal=function(e){o.scope=e,o.setState({showDownloadModal:!0})},o.closeDownloadModal=function(){o.setState({showDownloadModal:!1})},o.state={invocationInfo:{},listLoading:!1,currentLogId:"",showDownloadModal:!1,pagination:R},o.searchCond={successFlag:T.SERVICE_INVOCATION_STATUS.ERROR,beginAt:(0,v.default)().startOf("day").format("YYYY-MM-DD HH:mm:ss"),endAt:(0,v.default)().endOf("day").format("YYYY-MM-DD HH:mm:ss")},o.columns=[{title:"\u8bf7\u6c42ID",width:100,dataIndex:"requestId",ellipsis:!0,render:function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5ba2\u6237\u7aef\u8bf7\u6c42ID",width:100,dataIndex:"clientRequestId",ellipsis:!0,render:function(e){return(0,c.default)(u.default,{placement:"topLeft",title:e},void 0,e)}},(n={title:"\u5f00\u59cb\u65f6\u95f4",dataIndex:"beginAt",ellipsis:!0},n.ellipsis={showTitle:!0},n.render=function(e){return o.renderColumn(e)},n),{title:"\u8017\u65f6(ms)",width:"9%",dataIndex:"duration",ellipsis:{showTitle:!0},render:function(e){return o.renderColumn(e)}},{title:"API\u7528\u6237",width:"9%",dataIndex:"userId",ellipsis:{showTitle:!0},render:function(e){return o.renderColumn(e)}},{title:"http\u72b6\u6001",width:"9%",dataIndex:"httpStatus",ellipsis:{showTitle:!0},render:function(e){return o.renderColumn(e)}},{title:"\u4efb\u52a1\u72b6\u6001",width:"9%",dataIndex:"successFlag",render:function(e){return(0,c.default)(x.StateLabel,{source:"serviceInvocation",code:e})}},{title:"\u4e1a\u52a1\u7801",width:"9%",dataIndex:"busiCode",ellipsis:{showTitle:!0},render:function(e){return o.renderColumn(e)}},{title:"\u4e1a\u52a1\u7801\u63cf\u8ff0",dataIndex:"busiMsg",ellipsis:{showTitle:!0},render:function(e){return o.renderColumn(e)}},{title:"\u64cd\u4f5c",width:100,render:function(e){var t=[];return t.push({handleName:"\u67e5\u770b\u8be6\u60c5",handleAction:function(){o.viewDetail(e.requestId,e.beginAt)}}),(0,c.default)(x.ListButtons,{buttons:t,maxShowNum:3})}}],o}return(0,m.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.profile===e.profile&&this.props.serviceId===e.serviceId||this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.invocationInfo,l=t.listLoading,u=t.showDownloadModal,p=t.pagination,f=a.count,m=void 0===f?0:f,g=a.errorCount,v=void 0===g?0:g,y=a.successCount,j=void 0===y?0:y,w=a.avgTimeDiff,E=a.logs,R=void 0===E?[]:E,O=T.LOG_DOWNLOAD_TYPE.getCodeAndDescList(),V=(0,c.default)(h.default,{},void 0,O.map((function(t){return(0,c.default)(D,{},t.code,(0,c.default)("a",{target:"_blank",rel:"noopener noreferrer",onClick:function(){e.handleShowDownloadModal(t.code)}},void 0,t.desc))})));return(0,c.default)(k,{},void 0,(0,c.default)(d.default,{title:"\u67e5\u770b\u8be6\u60c5",width:800,onClose:this.onClose,visible:this.state.visible,bodyStyle:{paddingBottom:80}},void 0,(0,c.default)(S.default,{logId:this.state.currentLogId,profile:this.props.profile,beginAt:this.state.logBeginAt})),(0,c.default)(i.default,{title:"\u4e0b\u8f7d("+T.LOG_DOWNLOAD_TYPE.getDescFromValue(this.scope)+")",style:{top:20},width:1200,visible:u,onOk:this.closeDownloadModal,onCancel:this.closeDownloadModal,footer:null,destroyOnClose:!0},void 0,(0,c.default)(C.default,{saveParams:{resourceId:this.props.serviceId,scope:this.scope,serviceId:this.props.serviceId,queryParams:_.omit(this.searchCond,["serviceId"])},onCancel:this.closeDownloadModal,tableParams:{resourceId:this.props.serviceId},exportHintMsg:"\u6e29\u99a8\u63d0\u793a\uff1a\u8bf7\u6839\u636e\u6587\u4ef6\u5927\u5c0f\u9009\u62e9\uff0c\u5efa\u8bae\u8d85\u8fc7100MB\u7684\u6587\u4ef6\u9009\u62e9FTP\u670d\u52a1\u5668\u8f6c\u5b58",taskType:"export-srvInvokeLog",env:this.props.profile})),(0,c.default)(P,{},void 0,(0,c.default)(L,{},void 0,(0,c.default)(I.default,{searchCond:this.searchCond,onChange:this.changeSearchCond})),(0,c.default)(N,{},void 0,(0,c.default)(A,{},void 0,(0,c.default)(b.Form,{layout:"inline"},void 0,(0,c.default)(r.default,{},void 0,(0,c.default)(s.default,{span:4},void 0,(0,c.default)(M,{label:"\u53d1\u751f\u8bf7\u6c42\u6b21\u6570"},void 0,m)),(0,c.default)(s.default,{span:4},void 0,(0,c.default)(M,{label:"\u53d1\u751f\u9519\u8bef\u6b21\u6570"},void 0,v)),(0,c.default)(s.default,{span:4},void 0,(0,c.default)(M,{label:"\u8bf7\u6c42\u6210\u529f\u7387"},void 0,j?(100*j/m).toFixed(2)+"%":0)),(0,c.default)(s.default,{span:4},void 0,(0,c.default)(M,{label:"\u5e73\u5747\u8017\u65f6(ms)"},void 0,w)),(0,c.default)(s.default,{span:8,style:{justifyContent:"flex-end",alignItems:"center",display:"flex"}},void 0,(0,c.default)(o.default,{overlay:V},void 0,(0,c.default)("a",{className:"ant-dropdown-link",onClick:function(e){return e.preventDefault()}},void 0,"\u6279\u91cf\u4e0b\u8f7d ",F))))),(0,c.default)(n.default,{size:"small",dataSource:R,rowKey:"requestId",bordered:!0,columns:this.columns,loading:l,pagination:!1}),(0,c.default)(x.TabPagination,{currentPage:p.offset,pageSize:p.limit,total:p.total,onChange:this.onChangePage})))))},t}(g.default.Component);t.default=O},"./src/module/modelService/detailPage/ServiceMonitoring.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/antd/es/auto-complete/index.js")),o=j(a("./node_modules/babel-runtime/helpers/jsx.js")),s=j(a("./node_modules/antd/es/message/index.js")),r=j(a("./node_modules/babel-runtime/helpers/extends.js")),i=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=j(a("./node_modules/babel-runtime/helpers/inherits.js")),u=j(a("./node_modules/antd/es/date-picker/index.js")),c=j(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/date-picker/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=j(a("./node_modules/react/index.js")),f=(j(a("./node_modules/prop-types/index.js")),j(a("./node_modules/dayjs/dayjs.min.js"))),m=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./src/components/index.js"),g=a("./src/utils/authPermit.js"),v=a("./src/module/modelService/modelEnums.js"),y=j(a("./src/module/modelService/detailPage/components/MonitoringCharts.jsx")),b=j(a("./src/module/modelService/detailPage/components/MonitorResCharts.jsx")),x=a("./src/redux/services/modelService.js"),C=j(a("./node_modules/moment/moment.js"));function j(e){return e&&e.__esModule?e:{default:e}}var S=v.INVOCATION_INTERVAL.getCodeAndDescList(),I=v.TIME_INTERVAL.getCodeAndDescList(),T=v.RESOURCE_MONITORING_CYCLE.getCodeAndDescList(),w=v.RESOURCE_MONITORING_INTERVAL.getCodeAndDescList(),E={hour:{statType:"hour",timePeriod:I[0].code,limit:12,key:"hour",dateFormat:"HH:mm"},day:{statType:"day",timePeriod:I[3].code,limit:24,key:"day",dateFormat:"HH:mm"},month:{statType:"month",timePeriod:I[4].code,limit:30,key:"month",dateFormat:"MM/DD"},year:{statType:"year",timePeriod:I[5].code,limit:12,key:"year",dateFormat:"MM"}},D=c.default.Option,M=u.default.RangePicker,k=m.default.div.withConfig({displayName:"ServiceMonitoring__ServiceMonitoringWrapper",componentId:"sc-1lgru8i-0"})(["display:flex;flex-direction:column;border:1px solid #eee;padding:20px;.monitoring__charts-container{display:flex;flex-wrap:wrap;max-width:1200px;justify-content:space-between;}.select__query-container{display:flex;}.query__time-wrapper{display:flex;font-size:12px;font-weight:500;height:32px;line-height:32px;}.query__time-container{display:flex;}.query__time-item{margin:0 16px;font-size:12px;font-weight:500;cursor:pointer;&:hover{color:#1890ff;}&.selected{color:#1890ff;}}.select__query-interval{height:32px;line-height:32px;font-size:12px;font-weight:500;margin-left:32px;}position:relative;.select__wrapper{position:absolute;top:-20px;left:90px;}"]),P=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.fetchInvocations=function(){!n.state.invocationsFetching&&n.props.env&&n.props.serviceId?(n.setState({invocationsFetching:!0}),(0,x.getRecentlyServiceInvocation)(n.props.serviceId,{statType:n.searchCond.statType,limit:n.searchCond.limit,env:_.toLower(n.props.env)}).then((function(e){n.setState({invocations:e.data,invocationsFetching:!1})})).catch((function(e){throw n.setState({invocationsFetching:!1}),e}))):n.setState({invocations:[]})},n.fetchResUseTend=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,f.default)(_.get(n.state.selectedDates,"[0]")).format("YYYY-MM-DD"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,f.default)(_.get(n.state.selectedDates,"[1]")).format("YYYY-MM-DD"),a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.state.selectedMonitorInterval,o={startDate:e,endDate:t,interval:a};n.projectId&&n.props.serviceId&&e&&t&&a&&!n.state.resUseTendFetching?(n.setState({resUseTendFetching:!0}),(0,x.getServiceResUseTend)(n.projectId,n.props.serviceId,o).then((function(e){var t=_.get(e,"data[0].curveMap",{});n.setState({resUsedTendMap:t,resUseTendFetching:!1})})).catch((function(e){throw n.setState({resUseTendFetching:!1}),e}))):n.setState({resUsedTendMap:{}})},n.handleTimeChange=function(e){var t=E[e];n.setState({selectedInterval:t}),n.searchCond=(0,r.default)({serviceId:n.props.serviceId},t),n.fetchInvocations()},n.handleTimeCycleClick=function(e){if(e.code!==n.selectedMonitorCycle){var t=(0,f.default)(new Date).add(1,"days").format("YYYY-MM-DD"),a=(0,f.default)(t).subtract(Number(e.code),"days").format("YYYY-MM-DD");n.fetchResUseTend(a,t),n.setState({selectedMonitorCycle:e.code,selectedDates:[(0,C.default)(a,"YYYY-MM-DD"),(0,C.default)(t,"YYYY-MM-DD")]})}},n.handleTimeCycleChange=function(e){var t=(0,f.default)(_.get(e,"[0]")).format("YYYY-MM-DD"),a=(0,f.default)(_.get(e,"[1]")).format("YYYY-MM-DD");n.fetchResUseTend(t,a,n.state.selectedMonitorInterval),n.setState({selectedDates:e,selectedMonitorCycle:""})},n.handleTimeIntervalChange=function(e){var t=e.target.value;if(isNaN(t)||parseInt(t)<=0)s.default.error("\u8bf7\u8f93\u5165\u5927\u4e8e\u96f6\u7684\u6570\u5b57");else{var a=n.state.selectedDates,o=(0,f.default)(_.get(a,"[0]")).format("YYYY-MM-DD"),r=(0,f.default)(_.get(a,"[1]")).format("YYYY-MM-DD");n.fetchResUseTend(o,r,t),n.setState({selectedMonitorInterval:t})}},n.disabledDate=function(e){return e-1>(0,C.default)().endOf("day")},n.state={invocations:[],selectedInterval:E.hour,selectedMonitorCycle:"",selectedMonitorInterval:w[0].code,selectedDates:[],resUsedTendMap:[],invocationsFetching:!1,resUseTendFetching:!1};var o=(0,g.getCurrentContext)(),l=o.role,u=o.id;return"PROJECT"===l&&(n.projectId=u),n.invocations=[{title:"\u8c03\u7528\u6210\u529f\u6b21\u6570",key:"successCount",unit:"\u6b21"},{title:"\u8c03\u7528\u6210\u529f\u7387",key:"successRate",unit:"%"},{title:"\u8c03\u7528\u6b21\u6570",key:"count",unit:"\u6b21"},{title:"\u54cd\u5e94\u65f6\u5ef6",key:"delay",unit:"ms"}],n.searchCond=E.hour,n.quotasUse=[{title:"CPU(\u4f7f\u7528\u7387)",key:"cpuUsage",unit:"%"},{title:"\u5185\u5b58(\u4f7f\u7528\u7387)",key:"memUsage",unit:"%"}],n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchInvocations(),this.handleTimeCycleClick(T[0])},t.prototype.componentDidUpdate=function(e){this.props.refreshing&&e.refreshing!==this.props.refreshing&&(this.fetchInvocations(),this.fetchResUseTend()),this.props.env===e.env&&this.props.serviceId===e.serviceId||(this.fetchInvocations(),this.fetchResUseTend())},t.prototype.render=function(){var e=this,t=this.state,a=t.selectedMonitorCycle,s=t.selectedMonitorInterval,r=t.selectedDates;return(0,o.default)(k,{},void 0,(0,o.default)(h.ModelConfigPanel,{title:"\u670d\u52a1\u8c03\u7528\u60c5\u51b5"},void 0,(0,o.default)("div",{className:"select__wrapper"},void 0,(0,o.default)(c.default,{size:"small",defaultValue:v.INVOCATION_INTERVAL.hour,style:{marginLeft:24,width:100},onChange:this.handleTimeChange},void 0,S.map((function(e){return(0,o.default)(D,{value:e.code},e.code,e.desc)}))),(0,o.default)(c.default,{size:"small",style:{width:120},value:this.state.selectedInterval.timePeriod,disabled:!0},void 0,I.map((function(e){return(0,o.default)(D,{value:e.code},e.code,e.desc)})))),(0,o.default)("div",{className:"monitoring__charts-container"},void 0,this.invocations.map((function(t,a){return(0,o.default)(y.default,{item:t,invocations:e.state.invocations,selectedInterval:e.state.selectedInterval},a)})))),(0,o.default)(h.ModelConfigPanel,{title:"\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5"},void 0,(0,o.default)("div",{className:"select__query-container"},void 0,(0,o.default)("div",{className:"query__time-wrapper"},void 0,"\u65f6\u95f4\u5468\u671f\uff1a",(0,o.default)("div",{className:"query__time-container"},void 0,T.map((function(t){return(0,o.default)("div",{className:"query__time-item "+(t.code===a?"selected":""),onClick:function(){return e.handleTimeCycleClick(t)}},t.code,t.desc)})),(0,o.default)("div",{},void 0,(0,o.default)(M,{allowClear:!1,disabledDate:this.disabledDate,style:{width:240},className:"query__time-item",onChange:this.handleTimeCycleChange,format:"YYYY-MM-DD",value:r})))),(0,o.default)("div",{className:"select__query-interval"},void 0,"\u95f4\u9694(\u5206\u949f)\uff1a",(0,o.default)(n.default,{dropdownStyle:{width:120},style:{width:120,marginLeft:20},placeholder:"\u8bf7\u8f93\u5165\u6216\u9009\u62e9",onBlur:this.handleTimeIntervalChange,defaultValue:s,filterOption:function(e,t){return t.props.children&&t.props.children.toLowerCase().indexOf(e?e.toLowerCase():"")>=0}},void 0,w.map((function(e,t){return(0,o.default)(D,{value:e.code},t,e.desc)}))))),(0,o.default)("div",{className:"monitoring__charts-container"},void 0,this.quotasUse.map((function(t,a){return(0,o.default)(b.default,{item:t,data:e.state.resUsedTendMap},a)})))))},t}(p.default.Component);t.default=P},"./src/module/modelService/detailPage/ServiceProcess.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/table/index.js")),o=h(a("./node_modules/antd/es/tooltip/index.js")),s=h(a("./node_modules/babel-runtime/helpers/jsx.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js")),l=h(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var u=a("./node_modules/react/index.js"),c=(h(u),h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./src/redux/services/modelService.js"),f=h(a("./src/module/modelService/detailPage/components/ContainerEvent.jsx")),m=a("./src/components/index.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=c.default.div.withConfig({displayName:"ServiceProcess__ProcessWrapper",componentId:"sc-10190dv-0"})([".ant-table-empty .ant-table-body{overflow-x:hidden !important;}"]),v=l.default.TabPane,y=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fetchData=function(){"optEvent"===n.state.activeTab&&n.props.serviceId?(n.setState({loading:!0}),(0,p.getServiceEvent)(n.props.serviceLogType,n.props.serviceId).then((function(e){return n.setState({processData:e.data,loading:!1})})).catch((function(){return n.setState({loading:!1})}))):n.props.deployId&&(n.setState({loading:!0}),(0,p.getInstancesEvent)(n.props.deployId).then((function(e){var t=(_.get(e.data,"[0].events",[])||[]).reduce((function(e,t){return e.concat(_.get(t,"events",[])||[])}),[]);n.setState({eventData:t,loading:!1})})).catch((function(){return n.setState({loading:!1})})))},n.handleChange=function(e,t,a){n.setState({filteredInfo:t,sortedInfo:a})},n.handleTabChange=function(e){n.setState({activeTab:e},n.fetchData)},n.state={modalVisible:!1,loading:!1,processData:[],eventData:[],filteredInfo:null,sortedInfo:{columnKey:"operateTime",order:"descend"},activeTab:"optEvent"},n}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.refreshing&&e.refreshing!==this.props.refreshing&&this.fetchData(),e.serviceId!==this.props.serviceId&&this.fetchData()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.sortedInfo,a=e.filteredInfo,r=e.processData,i=e.loading,d=e.eventData;t=t||{};var u=[{title:"\u4e8b\u4ef6\u540d\u79f0",dataIndex:"eventName",key:"eventName",filteredValue:(a=a||{}).name||null,onFilter:function(e,t){return t.name.includes(e)},ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c\u8005",dataIndex:"operator",key:"operator",filteredValue:a.name||null,onFilter:function(e,t){return t.name.includes(e)},ellipsis:!0},{title:"\u64cd\u4f5c\u524d",dataIndex:"oldMessage",key:"oldMessage",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u64cd\u4f5c\u540e",dataIndex:"message",key:"message",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u64cd\u4f5c\u7ed3\u679c",dataIndex:"status",key:"status",ellipsis:!0,render:function(e,t){return"FAILURE"===t.status?(0,s.default)(o.default,{placement:"topLeft",title:t.resultMessage},void 0,(0,s.default)("span",{},void 0,(0,s.default)(m.StateLabel,{source:"processLogs",code:e}))):(0,s.default)(m.StateLabel,{source:"processLogs",code:e})}},{title:"\u6267\u884c\u65f6\u957f",dataIndex:"duration",key:"duration",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||0},void 0,e||0)}},{title:"\u5f00\u59cb\u65f6\u95f4",dataIndex:"operateTime",key:"operateTime",sorter:function(e,t){return new Date(e.operateTime).getTime()-new Date(t.operateTime).getTime()},sortOrder:"operateTime"===t.columnKey&&t.order,ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7ed3\u675f\u65f6\u95f4",dataIndex:"endTime",key:"endTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}}];return(0,s.default)(g,{},void 0,(0,s.default)(l.default,{defaultActiveKey:this.state.activeTab,onChange:this.handleTabChange},void 0,(0,s.default)(v,{tab:"\u4e3b\u52a8\u4e8b\u4ef6"},"optEvent",(0,s.default)(n.default,{rowKey:"logId",bordered:!0,loading:i,columns:u,dataSource:r,onChange:this.handleChange})),(0,s.default)(v,{tab:"event\u4e8b\u4ef6"},"event",(0,s.default)(f.default,{data:d}))))},t}(u.Component);t.default=y},"./src/module/modelService/detailPage/components/ContainerEvent.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/table/index.js")),o=p(a("./node_modules/antd/es/tooltip/index.js")),s=p(a("./node_modules/babel-runtime/helpers/jsx.js")),r=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var l=a("./node_modules/react/index.js"),u=(p(l),p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./src/module/modelService/modelEnums.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=u.default.div.withConfig({displayName:"ContainerEvent__ModelsBox",componentId:"jtw0zx-0"})(["margin-top:5px;margin-left:10px;flex:1 1 auto;.ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:0 8px !important;white-space:nowrap;}"]),m=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.handleChange=function(e,t,a){n.setState({sortedInfo:a})},n.state={sortedInfo:{columnKey:"firstTimestamp",order:"descend"}},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.data,a=e.wrapperStyle,r=this.state.sortedInfo,i=[{title:"\u4e8b\u4ef6\u5bf9\u8c61",dataIndex:"name",width:200,ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u4e8b\u4ef6\u6765\u6e90",dataIndex:"kind",width:100,ellipsis:!0,render:function(e){return c.CONTAINER_EVENT_SOURCE_TYPE.getDescFromValue(e)}},{title:"\u4e8b\u4ef6\u7c7b\u578b",width:120,ellipsis:!0,dataIndex:"reason",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u4e8b\u4ef6\u4fe1\u606f",width:200,ellipsis:!0,dataIndex:"message",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u9996\u6b21\u4ea7\u751f\u65f6\u95f4",width:160,ellipsis:!0,dataIndex:"firstTimestamp",sorter:function(e,t){return new Date(e.firstTimestamp).getTime()-new Date(t.firstTimestamp).getTime()},sortOrder:"firstTimestamp"===(r=r||{}).columnKey&&r.order,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6700\u540e\u4ea7\u751f\u65f6\u95f4",width:160,ellipsis:!0,dataIndex:"lastTimestamp",sorter:function(e,t){return new Date(e.lastTimestamp).getTime()-new Date(t.lastTimestamp).getTime()},sortOrder:"lastTimestamp"===r.columnKey&&r.order,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}}];return(0,s.default)(f,{style:a},void 0,(0,s.default)(n.default,{bordered:!0,indentSize:20,pagination:!0,columns:i,dataSource:t,onChange:this.handleChange}))},t}(l.Component);t.default=m},"./src/module/modelService/detailPage/components/FlowControl.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/babel-runtime/helpers/extends.js")),s=g(a("./node_modules/antd/es/input-number/index.js")),r=g(a("./node_modules/antd/es/space/index.js")),i=g(a("./node_modules/babel-runtime/helpers/jsx.js")),d=g(a("./node_modules/antd/es/form/index.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\detailPage\\components\\FlowControl.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var u=a("./node_modules/react/index.js"),c=g(u),p=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./src/redux/services/modelService.js"),m=a("./src/components/index.js"),h=a("./src/module/devCenter/components/IoSchema/utils.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=p.default.div.withConfig({displayName:"FlowControl__PageWrapper",componentId:"hz3r3o-0"})(["display:flex;flex-direction:column;min-height:200px;padding:20px 20px 0 20px;"]),y=p.default.div.withConfig({displayName:"FlowControl__ButtonDom",componentId:"hz3r3o-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),b=d.default.Item,x=d.default.List,C=(0,i.default)(v,{},void 0,(0,i.default)(m.LoadingIndicator,{}));t.default=function(e){var t=e.pubEnvType,a=e.serviceId,p=e.closeModal,g=(0,u.useState)([]),j=g[0],S=g[1],I=(0,u.useState)(!1),T=I[0],w=I[1],E=(0,u.useState)(!1),D=E[0],M=E[1];(0,u.useEffect)((function(){k()}),[t,a]);var k=function(){a&&t&&(w(!0),(0,f.getModelApiInfo)(a,t).then((function(e){var t=e.data;t=t.map((function(e){return{apiId:e.apiId,apiName:e.apiName,maxConcurrentCount:e.maxConcurrentCount?Number(e.maxConcurrentCount):void 0,maxVisitCount:e.maxVisitCount?Number(e.maxVisitCount):void 0}})),S(t),w(!1)})).catch((function(e){throw w(!1),e})))};return T?C:(0,i.default)(v,{},void 0,(0,i.default)(d.default,{name:"dynamic_form_nest_item",onFinish:function(e){M(!0),(0,f.modifyFlowConfig)(a,e.apiList).then((function(){M(!1),p&&p(!0)})).catch((function(e){throw M(!1),e}))},initialValues:{apiList:j}},void 0,(0,i.default)(m.ModelConfigPanel,{title:"\u8f93\u5165\u8f93\u51fa"},void 0,(0,i.default)(x,{name:"apiList"},void 0,(function(e){return(0,i.default)("div",{},void 0,e.map((function(e){return(0,i.default)(r.default,{style:{display:"flex",marginBottom:8},align:"start"},e.key,(0,i.default)(b,{label:"\u63a5\u53e3\u540d\u79f0",style:{marginRight:50}},void 0,(0,i.default)("span",{},void 0,_.get(j,"["+e.key+"].apiName"))),c.default.createElement(b,(0,o.default)({},e,{name:[e.name,"maxConcurrentCount"],fieldKey:[e.fieldKey,"maxConcurrentCount"],label:"\u6700\u5927\u5e76\u53d1\u8def\u6570",rules:[{validator:function(e,t,a){(0,h.validatorInteger)(e,t,a,"\u6700\u5927\u5e76\u53d1\u8def\u6570")}}],__source:{fileName:l,lineNumber:93}}),(0,i.default)(s.default,{placeholder:"\u65e0\u9650\u5236",style:{width:200}})),c.default.createElement(b,(0,o.default)({},e,{name:[e.name,"maxVisitCount"],fieldKey:[e.fieldKey,"maxVisitCount"],label:"\u6700\u5927\u8c03\u7528\u6b21\u6570",rules:[{validator:function(e,t,a){(0,h.validatorInteger)(e,t,a,"\u6700\u5927\u8c03\u7528\u6b21\u6570")}}],__source:{fileName:l,lineNumber:108}}),(0,i.default)(s.default,{placeholder:"\u65e0\u9650\u5236",style:{width:200}})))})))}))),(0,i.default)(y,{},void 0,(0,i.default)(n.default,{onClick:p,disabled:D},void 0,"\u53d6\u6d88"),(0,i.default)(n.default,{loading:D,style:{marginLeft:10},type:"primary",htmlType:"submit"},void 0,"\u786e\u5b9a"))))}},"./src/module/modelService/detailPage/components/IngressConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/antd/es/tooltip/index.js")),s=g(a("./node_modules/antd/es/input/index.js")),r=g(a("./node_modules/babel-runtime/helpers/jsx.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var u=g(a("./node_modules/react/index.js")),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(a("./node_modules/prop-types/index.js"),a("./src/redux/services/modelService.js")),h=a("./src/components/index.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=f.default.div.withConfig({displayName:"IngressConfig__Wrapper",componentId:"sc-12bppcm-0"})(["display:flex;flex-direction:column;.ant-form{margin-left:32px;margin-bottom:20px;}"]),_=f.default.div.withConfig({displayName:"IngressConfig__ButtonDom",componentId:"sc-12bppcm-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),y=p.Form.Item,b=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.submitConfirm=function(){n.props.form.validateFieldsAndScroll((function(e){null===e&&(bol=!0)})),n.setState({confirmLoading:!0}),(0,m.updateIngressAddress)(n.props.serviceId,n.state.deploymentIngressAddress).then((function(){n.props.closeModal&&n.props.closeModal(!0),n.setState({confirmLoading:!1})})).catch((function(e){console.error(e),n.setState({confirmLoading:!1})}))},n.handleParamsChange=function(e){n.setState({deploymentIngressAddress:e.target.value})},n.state={deploymentIngressAddress:a.deploymentIngressAddress,saveLoading:!1},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.componentDidUpdate=function(e){e.deploymentIngressAddress!==this.props.deploymentIngressAddress&&this.setState({deploymentIngressAddress:this.props.deploymentIngressAddress})},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state.deploymentIngressAddress;return(0,r.default)(v,{},void 0,(0,r.default)(h.ModelConfigPanel,{title:"\u5730\u5740\u53d8\u66f4"},void 0,(0,r.default)(p.Form,{layout:"inline",labelAlign:"left"},void 0,(0,r.default)(y,{label:"Ingress\u5730\u5740"},void 0,t("deploymentIngressAddress",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165Ingress\u5730\u5740"},{pattern:/^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/,message:"Ingress\u5730\u5740\u4e0d\u6b63\u786e"}],initialValue:a})((0,r.default)(s.default,{style:{minWidth:240,width:"auto"},placeholder:"http://nginx.ingress.com",onChange:this.handleParamsChange})),(0,r.default)(o.default,{placement:"top",title:"\u57df\u540d\u8bbf\u95ee\u9700\u63d0\u524d\u7533\u8bf7"},void 0,(0,r.default)(c.QuestionCircleOutlined,{style:{marginLeft:8}}))))),(0,r.default)(_,{},void 0,(0,r.default)(n.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{loading:this.state.confirmLoading,onClick:this.submitConfirm,style:{marginLeft:10},type:"primary"},void 0,"\u786e\u5b9a")))},t}(u.default.Component);t.default=p.Form.create()(b)},"./src/module/modelService/detailPage/components/LogDownload.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/button/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=f(a("./node_modules/react/index.js")),l=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(a("./node_modules/prop-types/index.js"),a("./src/components/index.js")),c=a("./src/module/modelService/modelEnums.js"),p=a("./src/redux/services/modelService.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=l.default.div.withConfig({displayName:"LogDownload__Wrapper",componentId:"sc-1mh0aik-0"})(["display:flex;flex-direction:column;.ant-form{margin-left:32px;margin-bottom:20px;}"]),h=c.LOG_DOWNLOAD_TYPE.getCodeAndDescList(),g=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleDownLoad=function(e){(0,p.downLoadLogFile)(n.props.logId,e,n.props.profile,n.props.beginAt)},n.state={},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this;return(0,o.default)(m,{},void 0,(0,o.default)(u.ModelConfigPanel,{title:"\u4e0b\u8f7d\u7c7b\u578b"},void 0,h.map((function(t){return(0,o.default)(n.default,{onClick:function(){return e.handleDownLoad(t.code)},type:"primary",style:{marginLeft:20}},t.code,t.desc)}))))},t}(d.default.Component);t.default=g},"./src/module/modelService/detailPage/components/MonitorResCharts.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=(u(a("./node_modules/prop-types/index.js")),u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./node_modules/recharts/es6/index.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=d.default.div.withConfig({displayName:"MonitorResCharts__MonitorResChartsWrapper",componentId:"sc-1w5ftoj-0"})(["display:flex;flex-direction:column;width:35%;margin:10px 100px 20px 0;.monitor__title{font-weight:600;color:#1f2d3d;}"]),p=(0,n.default)(l.CartesianGrid,{strokeDasharray:"3 3"}),f=(0,n.default)(l.XAxis,{dataKey:"name",mirror:!1,interval:"preserveStart",tick:!0}),m=(0,n.default)(l.Area,{type:"monotone",dataKey:"value",stroke:"#2296F3",fill:"rgba(26,157,245,0.10)"}),h=function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));return r.customTooltip=function(e){var t=e.active,a=e.payload,o=e.label,s=e.YAxisTitle,r=e.yUnit;return t?(0,n.default)("div",{className:"custom-tooltip"},void 0,(0,n.default)("p",{className:"label"},void 0,"\u65f6\u95f4\uff1a "+o),(0,n.default)("p",{className:"intro"},void 0,s+"\uff1a"+_.get(a,"[0].value")+r)):null},r.state={chartsData:[]},r}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){},t.getDerivedStateFromProps=function(e){for(var t=[],a=e.data,n=e.item,o=_.get(a,""+n.key,[])||[],s=_.get(a,"recordTimes",[])||[],r=0;r<s.length;r++)t.push({name:s[r],value:_.get(o,"["+r+"]",0)||0});return{chartsData:t}},t.prototype.render=function(){var e=this,t=this.props.item,a=this.state.chartsData,o=t.unit;return(0,n.default)(c,{},void 0,(0,n.default)("div",{className:"monitor__title"},void 0,t.title),(0,n.default)(l.AreaChart,{width:400,height:300,data:a,margin:{top:20,right:30,left:-20,bottom:0}},void 0,p,f,(0,n.default)(l.YAxis,{allowDecimals:!1,mirror:!1,domain:[0,100],width:80,unit:o,allowDataOverflow:!0,orientation:"left"}),(0,n.default)(l.Tooltip,{content:function(a){var n=a.active,s=a.payload,r=a.label;return e.customTooltip({active:n,payload:s,label:r,YAxisTitle:t.title,yUnit:o})}}),m))},t}(i.default.Component);t.default=h},"./src/module/modelService/detailPage/components/MonitoringCharts.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/extends.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js")),d=f(a("./node_modules/react/index.js")),l=f(a("./node_modules/lodash/lodash.js")),u=f(a("./node_modules/dayjs/dayjs.min.js")),c=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/recharts/es6/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=c.default.div.withConfig({displayName:"MonitoringCharts__MonitoringChartsWrapper",componentId:"sc-1h5ujz4-0"})(["display:flex;flex-direction:column;width:35%;margin:10px 100px 20px 0;.monitor__title{font-weight:600;color:#1f2d3d;}"]),h=(0,o.default)(p.CartesianGrid,{strokeDasharray:"3 3"}),g=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.customTooltip=function(e){var t=e.active,a=e.payload,n=e.label,s=e.YAxisTitle,r=e.yUnit;return t?(0,o.default)("div",{className:"custom-tooltip"},void 0,(0,o.default)("p",{className:"label"},void 0,"\u65f6\u95f4\uff1a"+n),(0,o.default)("p",{className:"intro"},void 0,s+"\uff1a"+l.default.get(a,"[0].value")+r)):null},n.state={chartsData:[]},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this,t=this.props,a=t.item,s=t.invocations,r=t.selectedInterval,i=a.unit,d=Array.isArray(s)?s.map((function(e){return(0,n.default)({},e,{periodDate:(0,u.default)(e.periodDate).format(r.dateFormat)})})):[],l=Math.floor(d.length/6)-1;return l=l<0?0:l,(0,o.default)(m,{},void 0,(0,o.default)("div",{className:"monitor__title"},void 0,a.title),(0,o.default)(p.AreaChart,{width:400,height:300,data:d,margin:{top:20,right:30,left:-20,bottom:0}},void 0,h,(0,o.default)(p.XAxis,{dataKey:"periodDate",mirror:!1,interval:l,unit:"year"===r.key?"\u6708":""}),(0,o.default)(p.YAxis,{allowDecimals:!1,mirror:!1,domain:"%"===a.unit?[0,100]:["auto","auto"],width:80,unit:i,allowDataOverflow:!0,orientation:"left"}),(0,o.default)(p.Tooltip,{content:function(t){var n=t.active,o=t.payload,s=t.label;return e.customTooltip({active:n,payload:o,label:s,YAxisTitle:a.title,yUnit:i})}}),(0,o.default)(p.Area,{type:"monotone",dataKey:a.key,stroke:"#2296F3",fill:"rgba(26,157,245,0.10)"})))},t}(d.default.Component);t.default=g},"./src/module/modelService/detailPage/components/OnlineServiceConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/babel-runtime/helpers/jsx.js")),s=b(a("./node_modules/antd/es/message/index.js")),r=b(a("./node_modules/antd/es/modal/index.js")),i=b(a("./node_modules/babel-runtime/helpers/extends.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=b(a("./node_modules/react/index.js")),p=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=b(a("./node_modules/lodash/lodash.js")),m=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=b(a("./src/module/modelService/publishPage/HealthCheckConfig.jsx")),g=a("./src/redux/services/modelService.js"),v=b(a("./src/module/modelService/components/ConfigStartParams.jsx")),_=a("./src/utils/commonUtil.js"),y=a("./src/module/modelMirror/util.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=p.default.div.withConfig({displayName:"OnlineServiceConfig",componentId:"sc-1y7tkdt-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;border:0px;width:100%;background:rgb(255,255,255);padding:14px 16px;margin-top:0;.model__body-wrapper{flex-grow:1;overflow:auto;max-height:500px;}.ant-legacy-form-item-label{width:70px;}.lang-label-wrapper{& > .ant-legacy-form-item-label{width:82px;margin-left:-12px;}}"]),C=p.default.div.withConfig({displayName:"OnlineServiceConfig__ConfigButtonDom",componentId:"sc-1y7tkdt-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),j=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchServiceInfo()},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.fetchServiceInfo=function(){n.props.serviceId&&(0,g.getServiceInfo)(n.props.serviceId).then((function(e){var t=f.default.get(e.data,"deploymentInfo"),a=(0,_.isJsonString)(t)?JSON.parse(t):{},o=f.default.get(a,"deploymentConfigRespDtos[0].deploymentHealthcheckReadiness"),s=f.default.get(a,"deploymentConfigRespDtos[0].deploymentHealthcheckLiveness"),r={deployPort:f.default.get(a,"deploymentConfigRespDtos[0].deployPort"),deployEnvs:f.default.get(a,"deploymentConfigRespDtos[0].deployEnvs",[])||[],deployStartcommand:f.default.get(a,"deploymentConfigRespDtos[0].deployStartcommand")},i={deploymentHealthcheckReadiness:(0,_.isJsonString)(o)?JSON.parse(o):{},deploymentHealthcheckLiveness:(0,_.isJsonString)(s)?JSON.parse(s):{}};n.setState({startParams:r,healthCheckConfig:i})}))},n.savaOrSubmit=function(){var e={},t=!0;Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(f.default.isFunction(o)){var s=o.call();s.validate&&(e=(0,i.default)({},e,s.moduleData)),t&&(t=s.validate)}}));var a=n;t&&r.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){a.submitModalOk(e)},onCancel:function(){}})},n.submitModalOk=function(e){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.actionType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),console.log("submitData",e);var t=(0,i.default)({},e,{deployEnvs:(0,y.getEnvVars)(e.deployEnvs)});(0,g.updateServiceConfig)(n.props.serviceId,t).then((function(){s.default.success("\u914d\u7f6e\u53d8\u66f4\u6267\u884c\u6210\u529f"),n.props.closeModal&&n.props.closeModal(!0),n.setState({confirmLoading:!1})})).catch((function(){n.setState({confirmLoading:!1})}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){n.props.closeModal&&n.props.closeModal()},n.handleApiSchemaChange=function(e){var t=(0,i.default)({},n.state.moduleData);t.ioSchemaPage=e,n.setState({moduleData:t})},n.state={startParams:{},healthCheckConfig:{},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1,deployId:"",avaInterface:[]},n.validateFuncs={},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,s=t.startParams,i=t.healthCheckConfig,d=t.modalTxt,l=t.confirmLoading;return(0,o.default)(x,{},void 0,(0,o.default)("div",{className:"model__body-wrapper"},void 0,(0,o.default)(r.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:l,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,d)),(0,o.default)(v.default,{moduleData:s,setValidateFunc:this.setValidateFunc}),(0,o.default)(h.default,{moduleData:i,setValidateFunc:this.setValidateFunc})),(0,o.default)(C,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.savaOrSubmit()},type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd\u5b58")))},t}(c.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(j)},"./src/module/modelService/detailPage/components/ResQuotaConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/button/index.js")),o=y(a("./node_modules/antd/es/tooltip/index.js")),s=y(a("./node_modules/babel-runtime/helpers/jsx.js")),r=y(a("./node_modules/babel-runtime/helpers/extends.js")),i=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var u=y(a("./node_modules/react/index.js")),c=y(a("./node_modules/lodash/lodash.js")),p=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(a("./node_modules/prop-types/index.js"),a("./src/redux/services/modelService.js")),g=a("./src/utils/authPermit.js"),v=a("./src/utils/commonUtil.js"),_=y(a("./src/module/modelService/createPage/ComputingResource.jsx"));function y(e){return e&&e.__esModule?e:{default:e}}var b=m.default.div.withConfig({displayName:"ResQuotaConfig__Wrapper",componentId:"sc-4hkvtf-0"})(["display:flex;flex-direction:column;.block__title{display:flex;margin-bottom:15px;text-indent:20px;line-height:16px;border-left:3px solid rgb(20,123,209);}.ant-form{margin-left:32px;margin-bottom:20px;}.ant-legacy-form-item-label{width:80px;}.available__resource{.ant-form{margin-left:0;margin-bottom:0;}.ant-form-item-control-wrapper{width:auto;}.ant-divider-horizontal{margin:10px 0;}}.span__item{margin-left:10px;}.span__label{margin-right:2px;}"]),x=m.default.div.withConfig({displayName:"ResQuotaConfig__ButtonDom",componentId:"sc-4hkvtf-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),C=(0,s.default)("div",{},void 0,"\u82e5\u670d\u52a1\u5df2\u9009GPU\uff0c\u5219\u65e0\u6cd5\u8c03\u6574GPU\u6570\u91cf\u4e3a0\uff1b\u82e5\u670d\u52a1\u672a\u9009GPU\uff0c\u5219\u65e0\u6cd5\u8c03\u6574GPU\u6570\u91cf"),j=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.fetchBaseInfoData=function(){(0,h.getServiceInfo)(n.props.serviceId).then((function(e){if(e){var t=e.data,a=c.default.get(t,"mirrorVersionInfo");a=(0,v.isJsonString)(a)?JSON.parse(a):{},n.mirrorVersionId=a.versionId;var o=c.default.get(t,"deploymentInfo");o=(0,v.isJsonString)(o)?JSON.parse(o):{};var s=c.default.get(o,"deploymentReplicas",1),i=c.default.get(o,"deploymentConfigRespDtos[0].deployConfig");i=(0,v.isJsonString)(i)?JSON.parse(i):{};var d=(0,r.default)({gpu:0},i,{instances_min:Number(s)});n.setState({requestQuota:d,loading:!1})}})).catch((function(e){n.setState({loading:!1}),console.error(e)}))},n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.submitConfirm=function(){var e={},t=!0;if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(c.default.isFunction(o)){var s=o.call();s.validate&&(e[a]=s.moduleData),t&&(t=s.validate)}})),t){var a={resQuotaId:n.props.deploymentId,quotaSetting:c.default.get(e,"computingResource",{}),resQuotaType:n.props.pubEnvType};n.setState({confirmLoading:!0}),(0,h.configServiceQuota)(n.props.serviceId,a).then((function(){n.props.closeModal(!0),n.setState({confirmLoading:!1})})).catch((function(e){console.error(e),n.setState({confirmLoading:!1})}))}};var o=(0,g.getCurrentContext)(),s=o.role,l=o.id;return"PROJECT"===s&&(n.projectId=l),n.state={requestQuota:{},saveLoading:!1,result:!1},n.validateFuncs={},n.mirrorVersionId="",n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchBaseInfoData()},t.prototype.render=function(){var e=this,t=this.state.requestQuota,a=c.default.get(t,"gpu[0].gpuNumber",0);return(0,s.default)(b,{},void 0,(0,s.default)(_.default,{hintMsg:"\u5269\u4f59\u8d44\u6e90\u5fc5\u987b\u5927\u4e8e\u7b49\u4e8e\u670d\u52a1\u89c4\u683c\u8c03\u6574\u540e*\u5b9e\u4f8b\u6570\u7684\u8d44\u6e90",pubEnvType:this.props.pubEnvType,requestQuota:t,canModify:!0,disabledInstances:!0,disabledGpu:!a,noAllowGpu2Zero:a&&a>0,setValidateFunc:this.setValidateFunc,source:"ONLINE_REASONING",title:(0,s.default)("span",{},void 0,"\u8ba1\u7b97\u8d44\u6e90",(0,s.default)(o.default,{title:C},void 0,(0,s.default)(p.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"8px"},className:"icon"})))}),(0,s.default)(x,{},void 0,(0,s.default)(n.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,s.default)(n.default,{loading:this.state.confirmLoading,onClick:this.submitConfirm,style:{marginLeft:10},type:"primary",disabled:!this.state.result},void 0,"\u786e\u5b9a")))},t}(u.default.Component);t.default=f.Form.create()(j)},"./src/module/modelService/detailPage/components/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/input-number/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js")),d=g(a("./node_modules/antd/es/date-picker/index.js")),l=g(a("./node_modules/antd/es/input/index.js")),u=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/date-picker/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=g(a("./node_modules/react/index.js")),p=g(a("./node_modules/dayjs/dayjs.min.js")),f=(g(a("./node_modules/prop-types/index.js")),a("./src/module/modelService/modelEnums.js")),m=a("./src/styles/GlobalStyle.js"),h=g(a("./node_modules/moment/moment.js"));function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.Option,_=l.default.Group,y=d.default.RangePicker,b=l.default.Search,x=f.SERVICE_INVOCATION_STATUS.getValueAndDescList(),C=(0,o.default)(v,{value:"BIZ_CODE"},void 0,"\u4e1a\u52a1\u7801"),j=(0,o.default)(v,{value:"BIZ_CODE_DESC"},void 0,"\u4e1a\u52a1\u7801\u63cf\u8ff0"),S=(0,o.default)(v,{value:"REQUEST_ID"},void 0,"\u8bf7\u6c42ID"),I=(0,o.default)(v,{value:"REQUEST_CID"},void 0,"\u5ba2\u6237\u7aef\u8bf7\u6c42ID"),T=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange({bizCodeField:n.state.bizCodeField,bizCodeValue:e})},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.handleSearchFieldChange=function(e){n.setState({bizCodeField:e})},n.changeSearchCond=function(e,t){var a={};"dates"===e?(a.beginAt=t[0]?(0,p.default)(t[0]).format("YYYY-MM-DD HH:mm:ss"):void 0,a.endAt=t[1]?(0,p.default)(t[1]).format("YYYY-MM-DD HH:mm:ss"):void 0):a[e]=t,n.props.onChange(a)},n.disabledDate=function(e){var t=(0,h.default)().subtract(6,"month"),a=(0,h.default)().endOf("day");return e<t||e>a},n.state={bizCodeField:"BIZ_CODE"},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this;return(0,o.default)(m.SearchBarWrapper,{className:"search-bar"},void 0,(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(y,{allowClear:!1,defaultValue:[(0,h.default)((0,h.default)().startOf("day"),"YYYY-MM-DD HH:mm:ss"),(0,h.default)((0,h.default)().endOf("day"),"YYYY-MM-DD HH:mm:ss")],style:{width:320},onOk:function(t){return e.changeSearchCond("dates",t)},onChange:function(t){return 0===t.length?e.changeSearchCond("dates",t):null},disabledDate:this.disabledDate,showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})),(0,o.default)("span",{className:"search__item-wrapper"},void 0,"\u8017\u65f6(ms)\uff1a",(0,o.default)(_,{compact:!0},void 0,(0,o.default)(n.default,{style:{width:60,textAlign:"center"},placeholder:"min",min:0,onBlur:function(t){return e.changeSearchCond("minDelay",t.target.value)}}),(0,o.default)(l.default,{style:{width:30,borderLeft:0,pointerEvents:"none",backgroundColor:"#fff"},placeholder:"~",disabled:!0}),(0,o.default)(n.default,{style:{width:60,textAlign:"center",borderLeft:0},placeholder:"max",min:0,onBlur:function(t){return e.changeSearchCond("maxDelay",t.target.value)}}))),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(u.default,{defaultValue:this.props.searchCond.successFlag,onChange:function(t){return e.changeSearchCond("successFlag",t)},placeholder:"\u72b6\u6001",className:"item-cond",style:{width:100}},void 0,x.map((function(e){return(0,o.default)(v,{value:e.code},e.code,e.desc)})))),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(_,{compact:!0},void 0,(0,o.default)(u.default,{style:{width:100},defaultValue:"BIZ_CODE",value:this.state.bizCodeField,onChange:this.handleSearchFieldChange},void 0,C,j,S,I),(0,o.default)(b,{style:{width:150},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}}))))},t}(c.default.Component);t.default=T},"./src/module/modelService/detailPage/components/Upgrade.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/antd/es/message/index.js")),r=g(a("./node_modules/babel-runtime/helpers/extends.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var u=g(a("./node_modules/react/index.js")),c=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(a("./node_modules/prop-types/index.js"),a("./src/components/index.js")),f=a("./src/redux/services/modelService.js"),m=g(a("./src/module/modelService/publishPage/StartParamsConfigUp.jsx")),h=a("./src/module/modelService/utils.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=c.default.div.withConfig({displayName:"Upgrade__Wrapper",componentId:"nrzddx-0"})(["display:flex;flex-direction:column;.ant-legacy-form-item-label{width:70px;}.lang-label-wrapper{& > .ant-legacy-form-item-label{width:82px;margin-left:-12px;}}"]),y=c.default.div.withConfig({displayName:"Upgrade__ButtonDom",componentId:"nrzddx-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:5px;"]),b=(0,o.default)(p.LoadingIndicator,{position:"relative"}),x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({baseInfoLoading:!0}),(0,f.getServiceInfo)(n.props.serviceId).then((function(e){if(e){var t=(0,h.getParseData)(e.data).allModuleData,a=_.get(t,"startParamsConfig",{})||{};n.setState({startParamsConfig:a,baseInfoLoading:!1})}})).catch((function(e){n.setState({baseInfoLoading:!1}),console.error(e)}))},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.submitConfirm=function(){var e={},t=!0;if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(_.isFunction(o)){var s=o.call();s.validate&&(e[a]=s.moduleData),t&&(t=s.validate)}})),t){var a=n.state.startParamsConfig,o=(0,h.getUpgradeParams)(n.props.deploymentId,a,(0,r.default)({},a,e.startParamsConfig,{mirrorId:a.mirrorId})).submitData;n.setState({confirmLoading:!0}),(0,f.upgradeService)(n.props.serviceId,o).then((function(){s.default.success("\u5347\u7ea7\u6210\u529f"),n.props.closeModal(!0),n.setState({confirmLoading:!1})})).catch((function(e){console.error(e),n.setState({confirmLoading:!1})}))}},n.state={baseInfo:{},baseInfoLoading:!1,confirmLoading:!1,startParamsConfig:{}},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.startParamsConfig,s=t.baseInfoLoading,r=this.props.applicationId;return(0,o.default)(v,{},void 0,s&&b,!s&&(0,o.default)(m.default,{moduleData:a,setValidateFunc:this.setValidateFunc,applicationId:r,actionType:"up"}),(0,o.default)(y,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.props.closeModal()}},void 0,"\u53d6\u6d88"),(0,o.default)(n.default,{loading:this.state.confirmLoading,onClick:this.submitConfirm,style:{marginLeft:10},type:"primary"},void 0,"\u786e\u5b9a")))},t}(u.default.Component);t.default=x},"./src/module/modelService/detailPage/components/instancesInner/InstancesInnerPageWrapper.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/tooltip/index.js")),o=v(a("./node_modules/antd/es/page-header/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/page-header/style/index.js");var l=a("./node_modules/react/index.js"),u=v(l),c=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/@ant-design/icons/es/index.js"),f=v(a("./src/module/modelService/detailPage/components/instancesInner/InstancesLogs.jsx")),m=v(a("./src/containers/IFrameContent/IFrameContent.jsx")),h=a("./src/components/auth/textAuth.jsx"),g=a("./src/utils/authPermit.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=c.default.div.withConfig({displayName:"InstancesInnerPageWrapper__PageWrapper",componentId:"sc-13pn8xe-0"})([""]),b=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.handleFullScreen=function(e){"open"===e?(n.setState({isFullScreen:!0}),n.wrapperRef.current.requestFullscreen()):(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),n.setState({isFullScreen:!1}))},n.state={isFullScreen:!1};var o=(0,g.getCurrentContext)(),s=o.role,d=o.id;return"PROJECT"===s&&(n.projectId=d),n.wrapperRef=u.default.createRef(),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this,t=this.props,a=t.target,r=t.instance,i=t.appCode||_.get(r,"appName"),d=this.state.isFullScreen,l=_.trimEnd((0,h.hasText)("root.app.appFoot"),"/")+"/terminal.html?type=app-manage/"+("consoleLog"===a?"app-terminal-log":"app-terminal")+"&projectId="+this.projectId+"&appCode="+i+"&podName="+r.instanceName+"&poolId="+r.poolId;return u.default.createElement(y,{ref:this.wrapperRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\detailPage\\components\\instancesInner\\InstancesInnerPageWrapper.jsx",lineNumber:55}},(0,s.default)(o.default,{onBack:this.props.onBack,title:"\u8fd4\u56de",style:{padding:"0 0 20px",background:"#fff"},extra:"logs"===a?null:d?(0,s.default)(n.default,{placement:"topLeft",title:"\u9000\u51fa\u5168\u5c4f"},void 0,(0,s.default)(p.ShrinkOutlined,{style:{fontSize:24,fontWeight:700},onClick:function(){return e.handleFullScreen("exit")}})):(0,s.default)(n.default,{placement:"topLeft",title:"\u5168\u5c4f"},void 0,(0,s.default)(p.ArrowsAltOutlined,{style:{fontSize:24,fontWeight:700},onClick:function(){return e.handleFullScreen("open")}}))}),"logs"===a?(0,s.default)(f.default,{instance:r,projectId:this.projectId,appCode:i}):(0,s.default)(m.default,{url:l,style:{background:"#fff"}}))},t}(l.Component);t.default=b},"./src/module/modelService/detailPage/components/instancesInner/InstancesLogs.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/table/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var d=a("./node_modules/react/index.js"),l=(p(d),p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./src/utils/authPermit.js"),c=a("./src/redux/services/modelService.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.div.withConfig({displayName:"InstancesLogs__PageWrapper",componentId:"sc-1h2echr-0"})(["background:#fff;"]),m=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.fetchData=function(){if(n.props.appCode&&n.projectId){n.setState({loading:!0});var e=_.get(n.props.instance,"instanceName","");(0,c.getServiceInstLogs)({podName:e,project:n.projectId,appCode:n.props.appCode}).then((function(e){return n.setState({logsData:e.data,loading:!1})})).catch((function(){return n.setState({loading:!1})}))}},n.state={loading:!1,logsData:[]};var o=(0,u.getCurrentContext)(),i=o.role,d=o.id;return"PROJECT"===i&&(n.projectId=d),n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.logsData,a=e.loading,s=[{title:"\u5e8f\u53f7",width:60,dataIndex:"index",render:function(e,t,a){return(0,o.default)("span",{},void 0,a+1)}},{title:"\u65e5\u5fd7\u540d\u79f0",dataIndex:"logName",key:"logName",ellipsis:!0,render:function(e,t){var a=t.downloadUrl;return a=a&&a.startsWith("http")?a:"http://"+a,(0,o.default)("a",{href:a,target:"_blank",rel:"noopener noreferrer"},void 0,t.fileName)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime",ellipsis:!0},{title:"\u6587\u4ef6\u5927\u5c0f",dataIndex:"fileSize",key:"fileSize",ellipsis:!0}];return(0,o.default)(f,{},void 0,(0,o.default)(n.default,{rowKey:"index",bordered:!0,loading:a,columns:s,dataSource:t}))},t}(d.Component);m.defaultProps={instance:{},appCode:""},t.default=m},"./src/module/modelService/editPage/ModelServiceEditPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=j(a("./node_modules/antd/es/col/index.js")),o=j(a("./node_modules/antd/es/row/index.js")),s=j(a("./node_modules/babel-runtime/helpers/jsx.js")),r=j(a("./node_modules/babel-runtime/regenerator/index.js")),i=j(a("./node_modules/antd/es/message/index.js")),d=j(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),l=j(a("./node_modules/babel-runtime/helpers/extends.js")),u=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=j(a("./node_modules/babel-runtime/helpers/inherits.js")),f=j(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var m=j(a("./node_modules/react/index.js")),h=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(j(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var y=j(a("./src/redux/services/sysManager/projectManage.js")),b=a("./src/components/index.js"),x=a("./src/redux/services/modelService.js"),C=a("./src/module/modelService/utils.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=v.Form.Item,I=f.default.TextArea,T=h.default.div.withConfig({displayName:"ModelServiceEditPage__DetailInfoWrapper",componentId:"sc-8jpyci-0"})(["background:#fff;padding:20px;.edit__icon{margin-left:10px;}.display__value{word-break:break-word;}.ant-col-8{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:40%;}"]),w={labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:8}}},E=(0,s.default)(b.LoadingIndicator,{position:"relative"}),D=function(e){function t(a){var n=this;(0,u.default)(this,t);var o=(0,c.default)(this,e.call(this,a));return o.handleChangeNameStatus=function(){o.setState((function(e){return{isModifyName:!e.isModifyName}}))},o.handleChangeDescStatus=function(){o.setState((function(e){return{isModifyDesc:!e.isModifyDesc}}))},o.handleOnChange=function(e,t){var a=o.state.serviceBaseInfo;"serviceName"===e?(a.serviceName=t,o.setState({serviceBaseInfo:(0,l.default)({},a)})):(a.serviceDesc=t,o.setState({serviceBaseInfo:(0,l.default)({},a)}))},o.handleSaveBasicInfo=function(){var e=(0,d.default)(r.default.mark((function e(t,a){var s,d;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==a&&null!==a){e.next=3;break}return i.default.info("\u8bf7\u586b\u5199\u5bf9\u5e94\u4fe1\u606f"),e.abrupt("return");case 3:if("serviceName"!==t){e.next=15;break}if(!(a.length>50)){e.next=7;break}return i.default.info("\u670d\u52a1\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc750\u4e2a\u5b57\u7b26"),e.abrupt("return");case 7:return e.next=9,(0,C.checkNameIsRepeat)(a,o.serviceId,"serviceName");case 9:if(!e.sent){e.next=13;break}return i.default.info("\u670d\u52a1\u540d\u79f0\u91cd\u590d"),e.abrupt("return");case 13:e.next=18;break;case 15:if(!("serviceDesc"===t&&a.length>100)){e.next=18;break}return i.default.info("\u670d\u52a1\u63cf\u8ff0\u4e0d\u5f97\u8d85\u8fc7100\u4e2a\u5b57\u7b26"),e.abrupt("return");case 18:(s={})[t]=a,d=s,(0,x.modifyService)(o.serviceId,d).then((function(e){e&&(i.default.success("\u4fee\u6539\u6210\u529f\uff01"),o.setState({isModifyName:!1,isModifyDesc:!1}))})).catch((function(e){i.default.error(e.message)}));case 20:case"end":return e.stop()}}),e,n)})));return function(t,a){return e.apply(this,arguments)}}(),o.getApplicationsName=function(e){var t="--";if(e&&o.state.applicationsList&&o.state.applicationsList.length>0)for(var a=0;a<o.state.applicationsList.length;a++)if(o.state.applicationsList[a].projectApplicationId===e){t=o.state.applicationsList[a].applicationName;break}return t},o.state={serviceBaseInfo:{},loading:!0,isModifyName:!1,isModifyDesc:!1,applicationsList:[]},o.serviceId=_.get(a.match,"params.serviceId",null),o}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){var e=this;y.default.getApplicationsDropDown().then((function(t){t&&e.setState({applicationsList:t.data})})).catch((function(e){i.default.error(e.message)})),(0,x.getServiceInfo)(this.serviceId).then((function(t){t&&e.setState({serviceBaseInfo:t.data||{},loading:!1})})).catch((function(t){e.setState({loading:!1}),i.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.serviceBaseInfo,r=t.loading,i=t.isModifyName,d=t.isModifyDesc,u=_.get(a,"createAt"),c=_.get(a,"updateAt");return(0,s.default)(T,{},void 0,(0,s.default)(b.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,r&&E,!r&&m.default.createElement(v.Form,(0,l.default)({},w,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\editPage\\ModelServiceEditPage.jsx",lineNumber:160}}),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(S,{label:"\u670d\u52a1\u540d\u79f0"},void 0,i?(0,s.default)(f.default,{width:150,onChange:function(t){return e.handleOnChange("serviceName",t.target.value)},value:a.serviceName,onBlur:function(t){return e.handleSaveBasicInfo("serviceName",t.target.value)}}):(0,s.default)("div",{style:{float:"left",width:200},className:"display__value"},void 0,(0,s.default)("div",{style:{float:"left",width:170}},void 0,(0,s.default)(b.LineWrap,{title:_.get(a,"serviceName",""),lineClampNum:1})),(0,s.default)("div",{style:{float:"right"}},void 0,(0,s.default)(g.EditOutlined,{className:"edit__icon",onClick:this.handleChangeNameStatus}))))),(0,s.default)(n.default,{span:8},void 0,(0,s.default)(S,{label:"\u521b\u5efa\u4eba"},void 0,_.get(a,"createBy")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(S,{label:"\u521b\u5efa\u65f6\u95f4"},void 0,u||"--")),(0,s.default)(n.default,{span:10},void 0,(0,s.default)(S,{label:"\u4fee\u6539\u65f6\u95f4"},void 0,c||"--"))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(S,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,this.getApplicationsName(_.get(a,"appId",null))))),(0,s.default)(o.default,{style:{marginLeft:"-2%"}},void 0,(0,s.default)(n.default,{span:24},void 0,(0,s.default)(S,{labelCol:{span:2},wrapperCol:{sm:20},label:"\u670d\u52a1\u63cf\u8ff0"},void 0,d?(0,s.default)(I,{autosize:{minRows:5,maxRows:12},style:{width:850,marginRight:10,min:0,max:550,marginTop:10},value:a.serviceDesc,onChange:function(t){return e.handleOnChange("serviceDesc",t.target.value)},onBlur:function(t){return e.handleSaveBasicInfo("serviceDesc",t.target.value)},rows:8}):(0,s.default)("div",{style:{wordBreak:"break-all",wordWrap:"break-word",maxWidth:850}},void 0,_.get(a,"serviceDesc",""),(0,s.default)(g.EditOutlined,{className:"edit__icon",onClick:this.handleChangeDescStatus}))))))))},t}(m.default.PureComponent);t.default=D},"./src/module/modelService/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelService/listPage/ModelServiceListPage.jsx");Object.defineProperty(t,"ModelServiceListPage",{enumerable:!0,get:function(){return v(n).default}});var o=a("./src/module/modelService/detailPage/ModelServiceDetailPage.jsx");Object.defineProperty(t,"ModelServiceDetailPage",{enumerable:!0,get:function(){return v(o).default}});var s=a("./src/module/modelService/createPage/CreateServicePage.jsx");Object.defineProperty(t,"CreateServicePage",{enumerable:!0,get:function(){return v(s).default}});var r=a("./src/module/modelService/editPage/ModelServiceEditPage.jsx");Object.defineProperty(t,"ModelServiceEditPage",{enumerable:!0,get:function(){return v(r).default}});var i=a("./src/module/modelService/detailPage/components/OnlineServiceConfig.jsx");Object.defineProperty(t,"OnlineServiceConfig",{enumerable:!0,get:function(){return v(i).default}});var d=a("./src/module/modelService/detailPage/ServiceInvocationDetail.jsx");Object.defineProperty(t,"ServiceInvocationDetail",{enumerable:!0,get:function(){return v(d).default}});var l=a("./src/module/modelService/codeService/detailPage/CodeServiceDetailPage.jsx");Object.defineProperty(t,"CodeServiceDetailPage",{enumerable:!0,get:function(){return v(l).default}});var u=a("./src/module/modelService/codeService/listPage/ListManagePage.jsx");Object.defineProperty(t,"ListManagePage",{enumerable:!0,get:function(){return v(u).default}});var c=a("./src/module/modelService/codeService/editPage/EditManagePage.jsx");Object.defineProperty(t,"EditManagePage",{enumerable:!0,get:function(){return v(c).default}});var p=a("./src/module/modelService/publishPage/PublishServicePage.jsx");Object.defineProperty(t,"PublishServicePage",{enumerable:!0,get:function(){return v(p).default}});var f=a("./src/module/modelService/offlineInference/listPage/OfflineListPage.jsx");Object.defineProperty(t,"OfflineListPage",{enumerable:!0,get:function(){return v(f).default}});var m=a("./src/module/modelService/offlineInference/editPage/EditOfflinePage.jsx");Object.defineProperty(t,"EditOfflinePage",{enumerable:!0,get:function(){return v(m).default}});var h=a("./src/module/modelService/offlineInference/viewPage/ViewOfflinePage.jsx");Object.defineProperty(t,"ViewOfflinePage",{enumerable:!0,get:function(){return v(h).default}});var g=a("./src/module/modelService/codeService/publishCode/PublishCodePage.jsx");function v(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"PublishCodePage",{enumerable:!0,get:function(){return v(g).default}})},"./src/module/modelService/jptService/JptMgmt.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/table/index.js")),o=_(a("./node_modules/antd/es/modal/index.js")),s=_(a("./node_modules/antd/es/button/index.js")),r=_(a("./node_modules/antd/es/space/index.js")),i=_(a("./node_modules/antd/es/switch/index.js")),d=_(a("./node_modules/babel-runtime/helpers/jsx.js")),l=_(a("./node_modules/babel-runtime/regenerator/index.js")),u=_(a("./node_modules/antd/es/message/index.js")),c=_(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),p=_(a("./node_modules/antd/es/input/index.js")),f=_(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var m=a("./node_modules/react/index.js"),h=(_(m),_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),g=a("./src/module/modelService/jptService/services/index.js"),v=_(a("./node_modules/moment/moment.js"));function _(e){return e&&e.__esModule?e:{default:e}}var y=h.default.div.withConfig({displayName:"JptMgmt__JptWrapper",componentId:"sc-1qjyyzw-0"})(["padding:20px;.create_btn{display:flex;justify-content:end;margin-bottom:20px;}"]),b=f.default.Item,x=p.default.Password,C=(0,d.default)(p.default,{placeholder:"\u8bf7\u8f93\u5165\u7a0b\u5e8f\u540d\u79f0"}),j=(0,d.default)(x,{placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801"}),S=(0,d.default)(x,{placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801"}),I=(0,d.default)(x,{placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801"});t.default=function(){var e=(0,m.useState)([]),t=e[0],a=e[1],p=(0,m.useState)(!1),h=p[0],_=p[1],x=(0,m.useState)(!1),T=x[0],w=x[1],E=(0,m.useState)(!1),D=E[0],M=E[1],k=(0,m.useState)(!1),P=k[0],L=k[1],N=(0,m.useState)(null),A=N[0],R=N[1],F=f.default.useForm()[0],O=f.default.useForm()[0];(0,m.useEffect)((function(){V()}),[localStorage.getItem("project_id")]);var V=function(){var e=(0,c.default)(l.default.mark((function e(){var t,n,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,(0,g.getJptProgramList)();case 3:t=e.sent,200===(n=t.data).code?(o=n.data.map((function(e){return{key:e.id,name:e.name,createTime:(0,v.default)(1e3*e.create_time).format("YYYY.MM.DD HH:mm:ss"),creator:e.user_name,programStatus:1===e.status,url:e.complete_url}})),a(o)):u.default.error(n.msg),_(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=(0,c.default)(l.default.mark((function e(t){var a,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.next=3,(0,g.startJupyter)({programme_id:t});case 3:a=e.sent,200===(n=a.data).code?(u.default.success("\u5f00\u542f\u6210\u529f"),V()):u.default.error(n.msg),w(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=(0,c.default)(l.default.mark((function e(t){var a,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.next=3,(0,g.stopJupyter)({programme_id:t});case 3:a=e.sent,200===(n=a.data).code?(u.default.success("\u5173\u95ed\u6210\u529f"),V()):u.default.error(n.msg),w(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),G=[{title:"\u7a0b\u5e8f\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime"},{title:"\u521b\u5efa\u4eba",dataIndex:"creator",key:"creator"},{title:"\u72b6\u6001",dataIndex:"programStatus",key:"programStatus",render:function(e,t){return(0,d.default)(i.default,{checkedChildren:"\u5f00\u542f",unCheckedChildren:"\u5173\u95ed",loading:T,defaultChecked:e,onChange:function(e){return function(e,t){e?U(t):B(t)}(e,t.key)}})}},{title:"\u64cd\u4f5c",key:"operation",render:function(e,t){return(0,d.default)(r.default,{size:"middle"},void 0,(0,d.default)(s.default,{type:"link",disabled:!t.programStatus,onClick:function(){window.open(t.url,"_target")}},void 0,"\u7f16\u7801"),(0,d.default)(s.default,{type:"link",onClick:function(){R(t.key),L(!0)}},void 0,"\u4fee\u6539\u5bc6\u7801"))}}],z=function(){var e=(0,c.default)(l.default.mark((function e(){return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:F.validateFields().then((0,c.default)(l.default.mark((function e(){var t,a,n,o,s;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=F.getFieldValue(),a=t.name,n=t.password,e.next=3,(0,g.createJptProgram)({name:a,password:n});case 3:o=e.sent,200===(s=o.data).code?(u.default.success("\u521b\u5efa\u6210\u529f"),F.resetFields(),M(!1),V()):u.default.error(s.msg);case 6:case"end":return e.stop()}}),e,void 0)}))));case 1:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),q=(0,d.default)(o.default,{title:"\u521b\u5efa\u7a0b\u5e8f",visible:D,onOk:z,okText:"\u521b\u5efa",onCancel:function(){F.resetFields(),M(!1)}},void 0,(0,d.default)(f.default,{form:F,labelCol:{span:6},wrapperCol:{span:16}},void 0,(0,d.default)(b,{name:"name",label:"\u7a0b\u5e8f\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7a0b\u5e8f\u540d\u79f0!"}]},void 0,C),(0,d.default)(b,{name:"password",label:"\u5bc6\u7801",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801!"}]},void 0,j))),K=(0,d.default)(o.default,{title:"\u4fee\u6539\u5bc6\u7801",visible:P,onOk:function(){O.validateFields().then((0,c.default)(l.default.mark((function e(){var t,a,n,o,s;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=O.getFieldValue(),a=t.repassword,n=t.password,a!==n){e.next=9;break}return e.next=4,(0,g.updatePsd)({programme_id:A,password:n});case 4:o=e.sent,200===(s=o.data).code?(u.default.success("\u4fee\u6539\u6210\u529f"),O.resetFields(),L(!1),V()):u.default.error(s.msg),e.next=10;break;case 9:u.default.error("\u4e24\u6b21\u5bc6\u7801\u4e0d\u4e00\u81f4");case 10:case"end":return e.stop()}}),e,void 0)}))))},okText:"\u4fee\u6539",onCancel:function(){O.resetFields(),L(!1)}},void 0,(0,d.default)(f.default,{form:O,labelCol:{span:6},wrapperCol:{span:16}},void 0,(0,d.default)(b,{name:"password",label:"\u5bc6\u7801",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801!"}]},void 0,S),(0,d.default)(b,{name:"repassword",label:"\u786e\u8ba4\u65b0\u5bc6\u7801",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801!"}]},void 0,I)));return(0,d.default)(y,{},void 0,(0,d.default)("div",{className:"create_btn"},void 0,0===t.length&&(0,d.default)(s.default,{type:"primary",onClick:function(){M(!0)}},void 0,"\u521b\u5efa")),(0,d.default)(n.default,{columns:G,dataSource:t,bordered:!0,loading:h}),q,K)}},"./src/module/modelService/jptService/services/index.js":function(e,t,a){"use strict";t.__esModule=!0,t.stopJupyter=t.startJupyter=t.updatePsd=t.getJptProgramList=t.createJptProgram=void 0;var n,o=a("./src/utils/requestForOcr.js"),s=(n=o)&&n.__esModule?n:{default:n};t.createJptProgram=function(e){return(0,s.default)({url:"/jpt/programme",method:"post",data:e})},t.getJptProgramList=function(){return(0,s.default)({url:"/jpt/programme",method:"get"})},t.updatePsd=function(e){return(0,s.default)({url:"/jpt/programme/update_password",method:"put",data:e})},t.startJupyter=function(e){return(0,s.default)({url:"/jpt/programme/start_jupyter",method:"put",data:e})},t.stopJupyter=function(e){return(0,s.default)({url:"/jpt/programme/stop_jupyter",method:"put",data:e})}},"./src/module/modelService/listPage/ModelCardView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o=v(a("./node_modules/babel-runtime/helpers/jsx.js")),s=v(a("./node_modules/babel-runtime/helpers/extends.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\listPage\\ModelCardView.jsx",u=v(a("./node_modules/react/index.js")),c=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/lodash/lodash.js"))),f=(a("./node_modules/immutable3/dist/immutable.js"),a("./src/module/modelService/listPage/components/index.js")),m=a("./src/components/index.js"),h=a("./src/components/exception/index.js"),g=a("./node_modules/react-virtualized/dist/es/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=(0,v(a("./src/containers/toJS.jsx")).default)(f.ModelCardItem),y=220,b=250,x=20,C=c.default.div.withConfig({displayName:"ModelCardView__ModelCardViewWrapper",componentId:"x7znxz-0"})(["display:flex;min-height:500px;flex-direction:row;justify-content:space-between;align-content:flex-start;flex-wrap:wrap;flex:1 1 auto;overflow:hidden;.ReactVirtualized__Masonry__innerScrollContainer{overflow:visible !important;margin-bottom:50px;}.btn-group{display:flex;flex-wrap:wrap;justify-content:space-between;}"]),j=(0,o.default)(m.LoadingIndicator,{}),S=(0,h.withErrorBoundary)(n=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n._initMasonry=function(e){n._colWidth=n._calcColWidth(e),n._cache||(n._cache=new g.CellMeasurerCache({defaultHeight:b,defaultWidth:n._colWidth,fixedWidth:!0,fixedHeight:!0,minWidth:n._colWidth})),n._cellPositioner||(n._cellPositioner=(0,g.createMasonryCellPositioner)({cellMeasurerCache:n._cache,columnCount:n._calculateColumnCount(e),columnWidth:n._colWidth,spacer:x}))},n._calculateColumnCount=function(e){return Math.floor(e/(y+x))},n._cellRenderer=function(e){var t=e.index,a=e.parent,r=e.style,i=n.props,d=i.modelData,l=i.onHandleAction,u=i.statusColorMap,c=i.openModalSharesVisible,m=(0,s.default)({},r,{top:(r.top||0)+15},{width:n._colWidth});if(0===t)return(0,o.default)(g.CellMeasurer,{cache:n._cache,index:t,parent:a},"CREATE",(0,o.default)(f.ModelCardItermCreate,{onCreateModel:l,style:m},"CREATE"));var h=d.get(t-1);return h?(0,o.default)(g.CellMeasurer,{cache:n._cache,index:t,parent:a},h.modelId+p.default.uniqueId(),(0,o.default)(_,{openError:n.props.openError,modelInfo:h,statusColor:p.default.get(u,p.default.get(h.deployState,"value"),""),style:m,dicHelper:n.props.dicHelper,"data-id":h.modelId,onHandleAction:l,openModalSharesVisible:c},h.modelId)):void 0},n._setMasonryRef=function(e){return n._masonry=e},n._calcColWidth=function(e){var t=void 0;if(e>0){var a=n._calculateColumnCount(e);t=y+(e-(y*a+x*(a-1)))/a}return p.default.isFinite(t)?t:y},n.renderMasonry=function(e){var t=e.height,a=e.registerChild,o=e.scrollTop;return function(e){var s=e.width,r=n.props.modelData;if(!p.default.isUndefined(s)&&0!==s)return n._width=s,n._initMasonry(s),u.default.createElement("div",{ref:a,__source:{fileName:l,lineNumber:146}},u.default.createElement(g.Masonry,{autoHeight:!0,cellCount:r.size+1,cellMeasurerCache:n._cache,cellPositioner:n._cellPositioner,cellRenderer:n._cellRenderer,height:t,scrollTop:o,overscanByPixels:500,width:s,tabIndex:-1,ref:n._setMasonryRef,__source:{fileName:l,lineNumber:147}}))}},n._handleResize=function(e){var t=e.width;p.default.isUndefined(t)||0===t||(n._colWidth=n._calcColWidth(n._width),n._masonry&&n._cache&&(n._cache.clearAll(),n.setState({columnWidth:n._colWidth},(function(){n._cellPositioner.reset({columnCount:n._calculateColumnCount(t),columnWidth:n._colWidth,spacer:x}),n._masonry&&n._masonry.clearCellPositions()}))))},n._renderAutoSizer=function(e){var t=e.height,a=e.isScrolling,s=e.registerChild,r=e.scrollTop,i=e.onChildScroll;return(0,o.default)(g.AutoSizer,{disableHeight:!0,height:t,onResize:n._handleResize,overscanByPixels:500},void 0,n.renderMasonry({height:t,isScrolling:a,registerChild:s,scrollTop:r,onChildScroll:i}))},n.state={columnWidth:y,modalErrorVisible:!1},n}return(0,d.default)(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this.props.loading!=e.loading||this.props.modelData!==e.modelData||this.state.columnWidth!==t.columnWidth)return this.props.modelData!==e.modelData&&(this._cache&&this._cache.clearAll(),this._colWidth=this._calcColWidth(this._width),this._cellPositioner&&this._cellPositioner.reset({columnCount:this._calculateColumnCount(this._width),columnWidth:this._colWidth,spacer:x}),this._masonry&&this._masonry.clearCellPositions()),!0},t.prototype.render=function(){var e=this.props.loading;return(0,o.default)(C,{className:"animated fadeIn"},void 0,e&&j,!e&&(0,o.default)(g.WindowScroller,{scrollingResetTimeInterval:500,overscanByPixels:500},void 0,this._renderAutoSizer))},t}(u.default.Component))||n;t.default=S},"./src/module/modelService/listPage/ModelListView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(u(a("./node_modules/react/index.js")),u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=(u(a("./node_modules/prop-types/index.js")),u(a("./node_modules/lodash/lodash.js"))),r=a("./node_modules/immutable3/dist/immutable.js"),i=a("./src/components/index.js"),d=a("./src/components/exception/index.js"),l=a("./src/module/modelService/listPage/components/index.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=o.default.div.withConfig({displayName:"ModelListView__ModelListViewWrapper",componentId:"sc-161t6g4-0"})(["margin-top:15px;display:flex;flex-direction:column;align-content:flex-start;flex-wrap:wrap;transition:opacity 0.5s ease-in;flex:1 1 auto;overflow:hidden;min-height:500px;.ReactVirtualized__Grid__innerScrollContainer{overflow:visible !important;margin-bottom:50px;}"]),p=(0,n.default)(i.LoadingIndicator,{});t.default=(0,d.withErrorBoundary)((function(e){var t=e.modelData,a=void 0===t?r.List.of([]):t,o=e.onHandleAction,i=void 0===o?s.default.noop:o,d=e.loading,u=void 0!==d&&d,f=e.openModalSharesVisible,m=e.pagination,h=e.onPageChange;return(0,n.default)(c,{className:"animated fadeIn"},void 0,u&&p,!u&&(0,n.default)(l.ModelListTable,{pagination:m,openModalSharesVisible:f,modelData:a.toJS(),onHandleAction:i,onPageChange:h}))}))},"./src/module/modelService/listPage/ModelServiceListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=P(a("./node_modules/antd/es/button/index.js")),o=P(a("./node_modules/babel-runtime/helpers/jsx.js")),s=P(a("./node_modules/antd/es/message/index.js")),r=P(a("./node_modules/antd/es/modal/index.js")),i=P(a("./node_modules/babel-runtime/helpers/extends.js")),d=P(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=P(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=P(a("./node_modules/babel-runtime/helpers/inherits.js")),c=P(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var p=a("./node_modules/react/index.js"),f=(P(p),P(a("./node_modules/prop-types/index.js")),a("./node_modules/react-router-dom/esm/react-router-dom.js")),m=a("./node_modules/immutable3/dist/immutable.js"),h=P(a("./node_modules/lodash/lodash.js")),g=P(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=P(a("./src/redux/services/sysManager/projectManage.js")),_=a("./src/config/ui-config.js"),y=P(a("./src/module/modelService/listPage/SearchBar.jsx")),b=P(a("./src/module/modelService/listPage/ModelCardView.jsx")),x=P(a("./src/module/modelService/listPage/ModelListView.jsx")),C=a("./src/components/index.js"),j=P(a("./src/module/modelService/components/ReassignResourceQuota.jsx")),S=a("./src/redux/services/modelService.js"),I=a("./src/routes/routeHelper.jsx"),T=a("./src/utils/history.js"),w=a("./src/components/auth/switchAuth.jsx"),E=a("./src/utils/commonUtil.js"),D=a("./src/utils/authPermit.js"),M=P(a("./src/module/sysManage/userActionManager/permissionManager/ResourcePermissionUserPage.jsx")),k=P(a("./src/components/auth/AuthWrapper.jsx"));function P(e){return e&&e.__esModule?e:{default:e}}var L=g.default.div.withConfig({displayName:"ModelServiceListPage__PageWrapper",componentId:"ng3n6k-0"})(["display:flex;flex-direction:column;flex:1 1 auto;background:#fff;padding:6px 20px;.ant-tabs-bar{border-bottom:none;font-size:14px;color:#3c3e4a;}"]),N=g.default.div.withConfig({displayName:"ModelServiceListPage__PageHeader",componentId:"ng3n6k-1"})(["position:relative;width:100%;z-index:20;border-bottom:1px solid #e8e8e8;height:57px;.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}.saveButton{position:absolute;top:8px;}"]),A=g.default.div.withConfig({displayName:"ModelServiceListPage__PageBody",componentId:"ng3n6k-2"})(["min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),R=g.default.div.withConfig({displayName:"ModelServiceListPage__ModelsBox",componentId:"ng3n6k-3"})([".ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:0 8px !important;white-space:nowrap;}"]),F=c.default.TabPane,O=(0,o.default)(F,{tab:"\u6d4b\u8bd5\u96c6\u7fa4"},"TEST"),V=(0,o.default)(k.default,{permissionId:"MODEL_SERVICE.ADD_MODEL_SERVICE"},void 0,(0,o.default)(n.default,{className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u63a8\u7406\u670d\u52a1")),U=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData(),n.fetchAllService(),v.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsData:e.data})}))},n.fetchAllService=function(){n.hasFetchData=!1,(0,S.getServiceList)({jsonParam:{offset:1,limit:1}}).then((function(e){var t=!0;n.hasFetchData=!0,Array.isArray(e.data)&&e.data.length>0&&(t=!1),n.setState({noData:t})}))},n.toggleViewMode=function(e){n.state.viewMode!==e&&n.setState({viewMode:e})},n.changeSearchCond=function(e,t){"refresh"!==e?(n.searchCond.offset=1,n.cacheSearch[e]=t,"viewMode"===e?n.toggleViewMode(t):(t&&h.default.trim(t)||"stats"===e?"orders"===e&&"serviceNameOrder"===t?(n.searchCond.serviceNameOrder="asc",n.searchCond=h.default.omit(n.searchCond,["updateDataOrder"])):"orders"===e&&"updateDataOrder"===t?(n.searchCond.updateDataOrder="desc",n.searchCond=h.default.omit(n.searchCond,["serviceNameOrder"])):"stats"===e?n.setSearchStatus(t):n.searchCond[e]=h.default.trim(t):n.searchCond=h.default.omit(n.searchCond,[e]),"deployBusinessType"===e&&(n.applicationId=""),n.fetchData())):n.fetchData(t)},n.setSearchStatus=function(e){e&&h.default.trim(e)?"BUILD"===e?(n.searchCond.stats="PROCESSING",n.searchCond.stage="MIRROR"):"PROCESSING"===e?(n.searchCond.stats=e,n.searchCond.stage="DEPLOY,REGISTER"):(n.searchCond.stats=e,n.searchCond.stage=""):n.searchCond=h.default.omit(n.searchCond,["stage","stats"])},n.fetchData=function(e){var t="intervalRefresh"===e;n.setState({listLoading:!t}),(0,S.getServiceList)({jsonParam:n.searchCond}).then((function(e){n.setState((function(a){return{modelData:e.data,listLoading:!!t&&a.listLoading,pagination:e.pagination}}))})).catch((function(){n.setState({listLoading:!1})}))},n.handleAction=function(e,t){var a=h.default.get(n,h.default.camelCase("handle_"+e+"_action"));a&&h.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.handleDeleteAction=function(e){n._handleAction(e,"undeploy","\u5220\u9664\u5728\u7ebf\u63a8\u7406\u670d\u52a1")},n.handleStopAction=function(e){console.log(e),n._handleAction(e,"stop","\u505c\u6b62\u5728\u7ebf\u63a8\u7406\u670d\u52a1")},n.handleStartAction=function(e){n._handleAction(e,"start","\u542f\u52a8\u5728\u7ebf\u63a8\u7406\u670d\u52a1")},n.handleRestartAction=function(e){n._handleAction(e,"restart","\u91cd\u542f\u5728\u7ebf\u63a8\u7406\u670d\u52a1")},n._handleAction=function(e,t,a){var o=h.default.get(e,"deploymentConfig"),d=(0,E.isJsonString)(o)?JSON.parse(o):[],l=h.default.get(d,"[0]","{}"),u=(0,E.isJsonString)(l)?JSON.parse(l):{},c=h.default.get(e,"deploymentReplicas",1),p=(0,i.default)({},u,{instances_min:c}),f=h.default.get(e,"deploymentId");r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"undeploy"===t?"\u786e\u5b9a\u5220\u9664\u8be5\u670d\u52a1\u5417\uff1f\u786e\u5b9a\u540e\u82e5\u8be5\u670d\u52a1\u6709\u5386\u53f2\u7248\u672c\u5219\u6240\u6709\u5386\u53f2\u7248\u672c\u4e5f\u5c06\u4e00\u5e76\u5220\u9664\u3002":"\u786e\u8ba4"+a+"[ "+e.serviceName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(o,r){"undeploy"===t?(0,S.deleteService)(e.serviceId).then((function(){s.default.success(a+"[ "+e.serviceName+" ]\u6267\u884c\u6210\u529f!"),n.fetchData(),o()})).catch((function(e){r(e)})):(0,S.operateModelService)(t,{resQuotaId:"restart"===t?e.serviceId:f,resQuotaType:e.deployEnv,quotaSetting:p}).then((function(){s.default.success(a+"[ "+e.serviceName+" ]\u6267\u884c\u6210\u529f!"),n.fetchData(),o()})).catch((function(e){r(e)}))}))}})},n.callVisible=function(e){n.setState({modalVisible:!1}),e&&n.fetchData()},n.handleCreateAction=function(){(0,T.navigateTo)(I.modelServiceUrl.create())},n.handleExpansionAction=function(e){var t=e.deploymentInfo,a=(0,E.isJsonString)(t)?JSON.parse(t):{};n.setState({modalVisible:!0,modalType:"expansion",modelInfo:a})},n.callShareVisible=function(){n.setState({modalShareVisible:!1})},n.openModalSharesVisible=function(e){n.setState({modalShareVisible:!0,modalType:"impower",modelInfo:e})},n.setShareLoading=function(e){n.setState({shareLoading:e})},n.handleEnvChange=function(e){n.setState({activeEnv:e}),n.changeSearchCond("envType",e)},n.handlePageChange=function(e){var t=e.page;n.searchCond.offset=Number(t),n.fetchData()},n.pubEnvType=h.default.get(a,"location.state.pubEnvType",""),n.state={viewMode:(0,w.hasFeatureAuths)("root.reaService.enableCard")?"CARD":"LIST",modalVisible:!1,modalShareVisible:!1,modalType:"",modelData:[],listLoading:!1,modelInfo:{},applicationsData:[],activeEnv:n.pubEnvType||"TEST",pagination:{limit:10,offset:0,total:0},noData:!0},n.hasFetchData=!1,n.applicationId=h.default.get(a,"location.state.applicationId",""),n.searchCond={offset:1,limit:10,appId:n.applicationId,envType:n.pubEnvType||"TEST"},n.cacheSearch={appId:n.applicationId},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=Array.isArray(this.state.modelData)?(0,m.List)(this.state.modelData):(0,m.List)([]);return!this.state.loading&&this.hasFetchData&&this.state.noData?(0,o.default)(C.NoDataCreate,{from:"reasonService",appId:this.applicationId}):(0,o.default)(L,{},void 0,(0,o.default)(c.default,{defaultActiveKey:this.state.activeEnv,onChange:this.handleEnvChange},void 0,O,(0,o.default)(F,{tab:"\u751f\u4ea7\u96c6\u7fa4",disabled:!(0,D.hasProductServiceAuth)()},"PRODUCT")),(0,o.default)(C.ModalView,{modalTitle:"\u6388\u6743",onCancelType:!1,confirmLoading:this.state.shareLoading,width:800,callVisible:this.callShareVisible,modalVisible:this.state.modalShareVisible,okText:"\u63d0 \u4ea4",comp:(0,o.default)(M.default,{resourceId:h.default.get(this.modelInfo,"serviceId"),domainId:"deploy"})}),(0,o.default)(C.ModalView,{modalTitle:"\u5728\u7ebf\u6269\u7f29\u5bb9",closable:!0,width:750,centered:!0,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,o.default)(j.default,{closeModal:this.callVisible,modelInfo:{deployConfig:h.default.get(this.state.modelInfo,"resQuotaConf","{}"),deployEnvType:h.default.get(this.state.modelInfo,"deployEnv",""),deployId:h.default.get(this.state.modelInfo,"serviceId","")}})}),!this.state.listLoading&&(0,o.default)(N,{},void 0,(0,o.default)(f.Link,{to:{pathname:I.modelServiceUrl.publish(h.default.lowerCase(this.state.activeEnv)),state:{pubEnvType:this.state.activeEnv,applicationId:this.applicationId}}},void 0,V),(0,o.default)(y.default,{applicationsData:this.state.applicationsData,statusColorMap:_.MODEL_SERVICE_PROCESS_STATUS_COLOR_MAP,execStatus:this.cacheSearch.stats,viewMode:this.state.viewMode,serviceName:this.cacheSearch.serviceName,deployBusinessType:this.cacheSearch.appId,sortField:this.cacheSearch.orders,onChange:this.changeSearchCond})),(0,o.default)(A,{},void 0,(0,o.default)(R,{},void 0,"CARD"===this.state.viewMode?(0,o.default)(b.default,{statusColorMap:_.MODEL_SERVICE_PROCESS_STATUS_COLOR_MAP,modelData:e,loading:this.state.listLoading,openError:this.openError,onHandleAction:this.handleAction,openModalSharesVisible:this.openModalSharesVisible}):(0,o.default)(x.default,{statusColorMap:_.MODEL_SERVICE_PROCESS_STATUS_COLOR_MAP,modelData:e,loading:this.state.listLoading,openError:this.openError,onHandleAction:this.handleAction,pagination:this.state.pagination,onPageChange:this.handlePageChange,openModalSharesVisible:this.openModalSharesVisible}))))},t}(p.Component);t.default=U},"./src/module/modelService/listPage/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/input/index.js")),d=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=h(a("./node_modules/react/index.js")),u=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=h(a("./src/components/selector/ToggleSelect.jsx")),p=a("./src/config/ui-config.js"),f=a("./src/module/modelService/modelEnums.js"),m=a("./src/components/index.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=d.default.Option,v=i.default.Search,y=u.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-1c16pj7-0"})(["display:flex;.search__item-wrapper{margin-left:16px;}"]),b=u.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"sc-1c16pj7-1"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;"],(function(e){return e.color})),x={width:"130px"},C=f.REASONING_PROCESS_STATUS.getCodeAndDescList(),j=(0,n.default)(g,{value:""},void 0,"\u5168\u90e8\u5e94\u7528"),S=(0,n.default)(g,{value:"serviceNameOrder"},void 0,"\u670d\u52a1\u540d\u79f0"),I=(0,n.default)(g,{value:"updateDataOrder"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),T=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("serviceName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={serviceTypeOptions:[]},n.changeBusiType=n.changeSelect("appId"),n.changeSortField=n.changeSelect("orders"),n.changeViewMode=n.changeSelect("viewMode"),n.changeStatusField=n.changeSelect("stats"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(y,{className:"search-bar"},void 0,(0,n.default)(m.RefreshButton,{onRefresh:this.props.onChange,style:{marginRight:16}}),(0,n.default)(c.default,{enableCard:!1,ds:p.MODEL_MGR_VIEW_MODE,onChange:this.changeViewMode,selectItem:this.props.viewMode}),(0,n.default)(d.default,{showSearch:!0,onChange:this.changeBusiType,style:x,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528",value:this.props.deployBusinessType,className:"sortType-cond",filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,j,this.props.applicationsData.map((function(e){return(0,n.default)(g,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)}))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,style:x,placeholder:"\u6392\u5e8f\u6761\u4ef6",value:this.props.sortField,className:"search-cond"},void 0,S,I)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{allowClear:!0,onChange:this.changeStatusField,style:x,placeholder:"\u72b6\u6001",value:this.props.execStatus,className:"search-cond"},void 0,C.map((function(t,a){return(0,n.default)(g,{value:t.code},t.code+"-"+a,(0,n.default)(b,{color:e.props.statusColorMap[t.code]}),t.desc)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(v,{style:{width:200},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,defaultValue:this.props.serviceName,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=T},"./src/module/modelService/listPage/components/ModelCardItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/divider/index.js")),o=C(a("./node_modules/babel-runtime/helpers/extends.js")),s=C(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js");var u=a("./node_modules/react/index.js"),c=C(u),p=(C(a("./node_modules/prop-types/index.js")),C(a("./node_modules/dayjs/dayjs.min.js"))),f=a("./node_modules/react-redux/es/index.js"),m=a("./src/utils/history.js"),h=C(a("./src/components/button/index.js")),g=a("./src/routes/routeHelper.jsx"),v=a("./node_modules/react-router-dom/esm/react-router-dom.js"),y=a("./src/module/modelService/utils.js"),b=a("./src/module/modelService/modelEnums.js"),x=a("./src/module/modelService/listPage/components/modelCard-style.jsx");function C(e){return e&&e.__esModule?e:{default:e}}var j=h.default.GhostButton,S=(0,r.default)(n.default,{}),I=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.showFuncPanel=function(){n.setState({showFuncPanel:!0})},n.hideFuncPanel=function(){n.setState({showFuncPanel:!1})},n.state={showFuncPanel:!1},n.optPermission=(0,y.getOptPermission)(a.modelInfo.deployState),n}return(0,l.default)(t,e),t.prototype.renderFuncPanel=function(){var e=this,t=this.props.modelInfo;return(0,r.default)(x.ModelFunctionPanel,{className:"flipInX animated"},void 0,(0,r.default)("div",{className:"btn-group"},void 0,this.optPermission.start&&(0,r.default)("div",{className:"btn__wrapper"},void 0,(0,r.default)(j,{action:"START",btnType:"small",width:"20",txt:"\u542f\u52a8",onClick:function(){return e.props.onHandleAction("START",t)},className:"fn-left"})),this.optPermission.edit&&(0,r.default)("div",{className:"btn__wrapper"},void 0,(0,r.default)(j,{btnType:"small",className:"fn-left",onClick:function(){return(0,m.navigateTo)(g.modelServiceUrl.edit(t.deployId))},action:"EDIT",txt:"\u4fee\u6539"})),this.optPermission.delete&&(0,r.default)("div",{className:"btn__wrapper"},void 0,(0,r.default)(j,{btnType:"small",className:"fn-right",action:"DELETE",txt:"\u5220\u9664",onClick:function(){return e.props.onHandleAction("DELETE",t)}})),this.optPermission.stop&&(0,r.default)("div",{className:"btn__wrapper"},void 0,(0,r.default)(j,{onClick:function(){return e.props.onHandleAction("STOP",t)},action:"STOP",txt:"\u505c\u6b62",width:"20",btnType:"small",className:"fn-right"})),this.optPermission.reassign&&(0,r.default)("div",{className:"btn__wrapper"},void 0,(0,r.default)(j,{action:"REASSIGN",txt:"\u6269\u7f29\u5bb9",width:"20",btnType:"small",onClick:function(){return e.props.onHandleAction("EXPANSION",t)}}))),S,this.optPermission.impower&&(0,r.default)(j,{onClick:function(){return e.props.openModalSharesVisible(t)},style:{marginBottom:"5px"},action:"IMPOWER",txt:"\u6388\u6743"}),this.optPermission.view&&(0,r.default)(v.Link,{style:{display:"grid"},to:{pathname:g.modelServiceUrl.detail(t.deployId,"monitoring")}},void 0,(0,r.default)(j,{style:{marginBottom:"5px"},action:"VIEW",txt:"\u67e5\u770b"})))},t.prototype.render=function(){var e=this.props,t=e.width,a=void 0===t?220:t,n=e.statusColor,i=void 0===n?"":n,d=e.modelInfo,l=void 0===d?{}:d,u=(0,s.default)(e,["width","statusColor","modelInfo"]);return c.default.createElement(x.CardWrapper,(0,o.default)({width:a,statusColor:i,onMouseEnter:this.showFuncPanel,onMouseLeave:this.hideFuncPanel},_.omit(u,"onHandleAction"),{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\listPage\\components\\ModelCardItem.jsx",lineNumber:126}}),(0,r.default)(T,{modelInfo:l,onHandleAction:this.props.onHandleAction}),this.state.showFuncPanel&&this.renderFuncPanel())},t}(u.Component),T=function(e){function t(){return(0,i.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,l.default)(t,e),t.prototype.render=function(){var e=this.props.modelInfo;return(0,r.default)(c.default.Fragment,{},void 0,(0,r.default)(x.ModelInfo,{},void 0,(0,r.default)(x.ModelLabel,{},void 0,(0,r.default)("span",{className:"model-label-l"},void 0,_.get(e.deployType,"note")),(0,r.default)("span",{className:"model-label-r"},void 0)),(0,r.default)("p",{className:"model-title"},void 0,e.deployShowName),(0,r.default)(x.ModelStatusTop,{},void 0,(0,r.default)("span",{},void 0,"\u521b\u5efa\u4eba: ",e.createCode)),(0,r.default)(x.ModelStatus,{},void 0,(0,r.default)("span",{},void 0,"\u72b6\u6001: ",b.REASONING_SERVICE_STATUS.getDescFromValue(_.get(e.deployState,"value")))),(0,r.default)(x.ModelProgress,{},void 0,(0,r.default)("div",{className:"progress-desc"},void 0,_.get(e,"deployDesc","--")))),(0,r.default)(x.CardFooter,{},void 0,"\u66f4\u65b0\u65f6\u95f4\uff1a",e.updateTime?(0,p.default)(e.updateTime).format("YYYY-MM-DD HH:mm:ss"):"\u65e0"))},t}(c.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(I)},"./src/module/modelService/listPage/components/ModelCardItermCreate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/extends.js")),o=c(a("./node_modules/antd/es/button/index.js")),s=c(a("./node_modules/babel-runtime/helpers/jsx.js")),r=c(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js"));a("./node_modules/antd/es/button/style/index.js");var i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(a("./node_modules/prop-types/index.js"),a("./src/components/Icon/index.js")),u=c(a("./node_modules/lodash/lodash.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.div.withConfig({displayName:"ModelCardItermCreate__CardWrapper",componentId:"sc-1np48jl-0"})(["border:1px dashed #ccd5e0;border-radius:4px;display:flex;justify-content:center;align-items:center;flex-direction:column;margin:0 20px 0 0;width:","px;height:250px;user-select:none;.hint{color:#dcdfe4;font-weight:600;}.ant-btn-primary{border-color:#147bd1;background:#147bd1;}"],(function(e){return e.width})),f=(0,s.default)("p",{},void 0,(0,s.default)(l.IconSvg,{type:"create",size:36})),m=(0,s.default)("p",{className:"hint"},void 0,"\u70b9\u51fb\u521b\u5efa\u63a8\u7406\u670d\u52a1");t.default=function(e){var t=e.width,a=void 0===t?220:t,d=e.onCreateModel,l=void 0===d?u.default.noop:d,c=(0,r.default)(e,["width","onCreateModel"]);return i.default.createElement(p,(0,n.default)({width:a},c,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\listPage\\components\\ModelCardItermCreate.jsx",lineNumber:30}}),f,m,(0,s.default)("p",{},void 0,(0,s.default)(o.default,{type:"primary",onClick:function(){return l("Create")}},void 0,"\xa0\xa0\u521b\u5efa\u63a8\u7406\u670d\u52a1\xa0\xa0")))}},"./src/module/modelService/listPage/components/ModelListTable.js":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/table/index.js")),o=b(a("./node_modules/babel-runtime/helpers/extends.js")),s=b(a("./node_modules/antd/es/tooltip/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var u=b(a("./node_modules/react/index.js")),c=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/dayjs/dayjs.min.js"))),f=a("./src/components/index.js"),m=a("./src/routes/routeHelper.jsx"),h=a("./src/module/modelService/utils.js"),g=a("./src/utils/commonUtil.js"),v=a("./src/module/modelService/modelEnums.js"),y=b(a("./src/module/modelService/listPage/components/UpPlan.jsx"));function b(e){return e&&e.__esModule?e:{default:e}}var x=c.default.div.withConfig({displayName:"ModelListTable__TableDom",componentId:"sc-1qox825-0"})(["margin-top:5px;flex:1 1 auto;width:100%;"]),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.onChangePage=function(e,t){n.props.onPageChange&&n.props.onPageChange({page:e,pageSize:t})},n.callVisible=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.upPlan.saveKpi()},n.setConfirmLoading=function(e){n.setState({confirmLoading:e})},n.state={modalVisible:!1,serviceInfo:null,confirmLoading:!1},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.pagination,a=t.limit,i=t.offset,d=t.total,l=Number(i),u=[{dataIndex:"serviceName",title:"\u670d\u52a1\u540d\u79f0",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"stage",title:"\u542f\u52a8\u8fdb\u5ea6",ellipsis:!0,render:function(e){return v.REASONING_PROCESS.getDescFromValue(e)}},{dataIndex:"deploymentConfig",title:"\u8d44\u6e90",key:"deploymentConfig",ellipsis:!0,render:function(e,t){var a="--";if([v.REASONING_PROCESS.READY,v.REASONING_PROCESS.MIRROR].includes(t.stage)||!e){var n=_.get(t,"webQuota"),i=(0,g.isJsonString)(n)?JSON.parse(n):{};a=(0,h.serviceQuotaFormat)(i)}else{var d=(0,g.isJsonString)(e)?JSON.parse(e):[],l=_.get(d,"[0]");l=(0,g.isJsonString)(l)?JSON.parse(l):_.isObject(l)?l:{};var u=_.get(t,"deploymentReplicas",1),c=(0,o.default)({},l,{instances_min:u});a=(0,h.serviceQuotaFormat)(c)}return(0,r.default)(s.default,{placement:"topLeft",title:a},void 0,a)}},{dataIndex:"createBy",title:"\u521b\u5efa\u4eba",ellipsis:!0},{dataIndex:"createAt",title:"\u521b\u5efa\u65f6\u95f4",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,p.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,p.default)(e).format("YYYY-MM-DD HH:mm"):"")}},{dataIndex:"updateAt",title:"\u66f4\u65b0\u65f6\u95f4",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,p.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,p.default)(e).format("YYYY-MM-DD HH:mm"):"")}},{dataIndex:"runTime",title:"\u8fd0\u884c\u65f6\u957f",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"status",width:100,title:"\u72b6\u6001",render:function(e,t){return t.stage===v.REASONING_PROCESS.MIRROR&&e===v.REASONING_PROCESS_STATUS.PROCESSING&&(e="BUILD"),[v.REASONING_PROCESS_STATUS.ERROR,v.REASONING_PROCESS_STATUS.PROCESSING].includes(e)&&t.message?(0,r.default)(s.default,{placement:"topLeft",title:t.message},void 0,(0,r.default)("div",{},void 0,(0,r.default)(f.StateLabel,{source:"newModelService",code:e}))):(0,r.default)(f.StateLabel,{source:"newModelService",code:e})}},{title:"\u64cd\u4f5c",width:240,render:function(t){var a=(0,h.getNewOptPermission)(t.stage,t.status),n=[];return a.view&&_.get(t,"deploymentId")&&n.push({handleName:"\u67e5\u770b",style:{display:"inline-block"},handleAction:m.modelServiceUrl.detail(_.get(t,"deploymentId"),"monitoring",_.get(t,"businessId")),handleType:"link"}),a.start&&n.push({handleName:"\u542f\u52a8",handleAction:function(){e.props.onHandleAction("START",t)}}),a.restart&&n.push({handleName:"\u91cd\u542f",style:{display:"inline-block"},handleAction:function(){e.props.onHandleAction("RESTART",t)}}),a.reset&&n.push({handleName:"\u4fee\u6539",style:{display:"inline-block"},handleAction:m.modelServiceUrl.reset(t.serviceId),handleType:"link"}),a.reassign&&n.push({handleName:"\u6269\u7f29\u5bb9",handleAction:function(){e.props.onHandleAction("EXPANSION",t)}}),a.stop&&n.push({handleName:"\u505c\u6b62",style:{display:"inline-block"},handleAction:function(){e.props.onHandleAction("STOP",t)}}),a.delete&&n.push({handleName:"\u5220\u9664",handleAction:function(){e.props.onHandleAction("DELETE",t)}}),a.impower&&n.push({handleName:"\u6388\u6743",handleAction:function(){e.props.openModalSharesVisible(t)}}),a.viewMirror&&_.get(t,"mirrorId")&&_.get(t,"mirrorVersionId")&&n.push({handleName:"\u67e5\u770b\u955c\u50cf",style:{display:"inline-block"},handleAction:m.modelMirrorUrl.versionDetail("service",_.get(t,"mirrorId"),"process",_.get(t,"mirrorVersionId")),handleType:"link"}),(0,r.default)(f.ListButtons,{buttons:n,maxShowNum:3})}}];return(0,r.default)(x,{},void 0,(0,r.default)(f.ModalView,{modalTitle:"\u5173\u8054\u4e0a\u7ebf\u8ba1\u5212",closable:!0,width:700,centered:!0,callVisible:this.callVisible,modalVisible:this.state.modalVisible,okText:"\u786e\u5b9a",submitModalOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,comp:(0,r.default)(y.default,{closeModal:this.callVisible,onRef:function(t){e.upPlan=t},serviceInfo:this.state.serviceInfo,setConfirmLoading:this.setConfirmLoading})}),(0,r.default)(n.default,{bordered:!0,columns:u,dataSource:this.props.modelData,rowKey:"serviceId",pagination:!1}),(0,r.default)(f.TabPagination,{currentPage:l,pageSize:a,total:d,onChange:this.onChangePage}))},t}(u.default.Component);t.default=C},"./src/module/modelService/listPage/components/UpPlan.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.SevriceInfoDom=void 0;var n=v(a("./node_modules/antd/es/row/index.js")),o=v(a("./node_modules/babel-runtime/helpers/jsx.js")),s=v(a("./node_modules/antd/es/message/index.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js")),l=v(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=v(a("./node_modules/react/index.js")),c=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/components/index.js"),m=a("./node_modules/react-redux/es/index.js"),h=a("./src/redux/services/modelService.js"),g=a("./src/redux/services/modelMirror.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=t.SevriceInfoDom=c.default.div.withConfig({displayName:"UpPlan__SevriceInfoDom",componentId:"sc-2lmcuk-0"})([".ant-row{line-height:60px;display:flex;}"]),b=l.default.Option,x=p.Form.Item,C=(0,o.default)(b,{value:""},void 0,"\u8bf7\u9009\u62e9\u65f6\u95f4\u8303\u56f4"),j=(0,o.default)(b,{value:""},void 0,"\u8bf7\u9009\u62e9\u6d41\u6c34\u7ebf"),S=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.onRef(n),n.fetchMirrorList(),n.fetchVersionsByMirrorId(),n.onChangeMirrorVersionId(n.props.serviceInfo.mirrorVersionId)},n.onChangeMirrorVersionId=function(e){(0,h.getPipelineInfoByIds)(n.props.serviceInfo.serviceId,e).then((function(e){e&&(e.data?(n.queryPipeline(e.data.type?e.data.type:"ONE_MONTH"),n.modelData.pipelineId=_.get(e,"data.pipelineId"),n.modelData.pipelineType=e.data.type?e.data.type:"ONE_MONTH",n.modelData.pipelineName=_.get(e,"data.pipelineName"),n.props.form.setFieldsValue({pipelineId:_.get(e,"data.pipelineId"),pipelineType:e.data.type?e.data.type:"ONE_MONTH"})):(n.modelData.pipelineId="",n.modelData.pipelineType="ONE_MONTH",n.modelData.pipelineName="",n.queryPipeline("ONE_MONTH"),n.props.form.setFieldsValue({pipelineId:"",pipelineType:"ONE_MONTH"})))})).catch((function(e){console.error(e)}))},n.fetchMirrorList=function(){var e={isPage:"N",baseType:"REASONING",state:"SUCCESS",businessType:n.props.serviceInfo.appId,mirrorType:"ONLINE"};n.setState({mirrorListLoading:!0}),(0,g.getModelMirrorList)({paramjson:e}).then((function(e){n.setState({mirrorList:e.data,mirrorListLoading:!1})})).catch((function(){return n.setState({mirrorListLoading:!1})}))},n.fetchVersionsByMirrorId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.serviceInfo.mirrorId;e?(n.setState({versionLoading:!0}),(0,g.getMirrorVersionList)({paramsJson:{mirrorId:e,versionState:"SUCCESS"}}).then((function(e){var t=e.data;n.setState({mirrorVersions:t,versionLoading:!1})})).catch((function(){return n.setState({versionLoading:!1})}))):n.setState({mirrorVersions:[]})},n.queryPipeline=function(e){(0,h.getPipeline)({type:e}).then((function(e){e&&n.setState({lineArray:e.data})})).catch((function(e){console.error(e)}))},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&(n.modelData={isPipeline:"Y",newVersionId:n.modelData.mirrorVersionId,pipeline:{pipelineId:n.modelData.pipelineId,pipelineName:n.modelData.pipelineName,pipelineType:n.modelData.pipelineType},versionId:n.modelData.mirrorVersionId},n.props.setConfirmLoading(!0),(0,h.upgradeService)(n.props.serviceInfo.serviceId,n.modelData,"MIRRORVERSION").then((function(){s.default.success("\u5173\u8054\u4e0a\u7ebf\u8ba1\u5212\u6210\u529f\uff01"),n.props.closeModal(!0),n.setState({confirmLoading:!1}),n.props.setConfirmLoading(!1)})).catch((function(e){console.error(e),n.setState({confirmLoading:!1}),n.props.setConfirmLoading(!1)})))},n.getValBlur=function(e,t){if("pipelineType"===e&&(n.props.form.setFieldsValue({pipelineId:""}),t&&n.queryPipeline(t)),"mirrorVersionId"===e&&n.onChangeMirrorVersionId(t),"pipelineId"===e)for(var a=0;a<n.state.lineArray.length;a++)if(n.state.lineArray[a].pipelineId===t){n.modelData.pipelineName=n.state.lineArray[a].pipelineName;break}n.modelData[e]=t},n.state={timeScope:[{id:"ALL",name:"\u5168\u90e8"},{id:"ONE_MONTH",name:"\u8fd1\u4e00\u4e2a\u6708"},{id:"THREE_MONTH",name:"\u8fd13\u4e2a\u6708"},{id:"HALF_YEAR",name:"\u8fd1\u534a\u5e74"},{id:"ONE_YEAR",name:"\u8fd1\u4e00\u5e74"}],lineArray:[],mirrorList:[],mirrorVersions:[],versionLoading:!1,mirrorListLoading:!1},n.modelData={mirrorId:a.serviceInfo.mirrorId,mirrorVersionId:a.serviceInfo.mirrorVersionId,pipelineType:"ONE_MONTH",pipelineId:"",pipelineName:""},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,s=a.lineArray,r=a.timeScope,i=a.mirrorListLoading,d=a.versionLoading,u=a.mirrorList,c=a.mirrorVersions;return(0,o.default)(y,{},void 0,(0,o.default)(p.Form,{},void 0,(0,o.default)(f.ModelConfigPanel,{title:"\u9009\u62e9\u5185\u5bb9"},void 0,(0,o.default)(n.default,{},void 0,(0,o.default)(x,{label:"\u63a8\u7406\u955c\u50cf"},void 0,t("mirrorId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u63a8\u7406\u955c\u50cf"}],initialValue:this.modelData.mirrorId})((0,o.default)(l.default,{disabled:!0,showSearch:!0,placeholder:"\u8bf7\u9009\u62e9\u63a8\u7406\u955c\u50cf",style:{width:"200px"},loading:i},void 0,Array.isArray(u)&&u.map((function(e){return(0,o.default)(b,{value:e.mirrorId},e.mirrorId,e.mirrorShowName)}))))),(0,o.default)(x,{label:"\u955c\u50cf\u7248\u672c",className:"sm-label",style:{marginLeft:25}},void 0,t("mirrorVersionId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],initialValue:this.modelData.mirrorVersionId})((0,o.default)(l.default,{placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:d,onChange:function(t){return e.getValBlur("mirrorVersionId",t)},style:{width:"200px"}},void 0,Array.isArray(c)&&c.map((function(e){return(0,o.default)(b,{value:e.versionId},e.versionId,e.versionName)}))))))),(0,o.default)(f.ModelConfigPanel,{title:"\u9009\u62e9\u5185\u5bb9"},void 0,(0,o.default)(n.default,{},void 0,(0,o.default)(x,{help:"",label:"\u65f6\u95f4\u8303\u56f4"},void 0,t("pipelineType",{rules:[{required:!0}],initialValue:this.modelData.pipelineType})((0,o.default)(l.default,{onChange:function(t){return e.getValBlur("pipelineType",t)},style:{width:"200px"},placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4\u8303\u56f4",className:"sortType-cond"},void 0,C,r.map((function(e){return(0,o.default)(b,{value:e.id},e.id,e.name)}))))),(0,o.default)(x,{label:"\u9009\u6d41\u6c34\u7ebf",style:{marginLeft:25}},void 0,t("pipelineId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6d41\u6c34\u7ebf"}],initialValue:this.modelData.pipelineId})((0,o.default)(l.default,{showSearch:!0,placeholder:"\u8bf7\u9009\u62e9\u6d41\u6c34\u7ebf",onChange:function(t){return e.getValBlur("pipelineId",t)},style:{width:"200px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,j,s.map((function(e){return(0,o.default)(b,{title:e.pipelineName,value:e.pipelineId},e.pipelineId,e.pipelineName)})))))))))},t}(u.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(p.Form.create()(S))},"./src/module/modelService/listPage/components/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelService/listPage/components/ModelCardItermCreate.jsx");Object.defineProperty(t,"ModelCardItermCreate",{enumerable:!0,get:function(){return r(n).default}});var o=a("./src/module/modelService/listPage/components/ModelCardItem.jsx");Object.defineProperty(t,"ModelCardItem",{enumerable:!0,get:function(){return r(o).default}});var s=a("./src/module/modelService/listPage/components/ModelListTable.js");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ModelListTable",{enumerable:!0,get:function(){return r(s).default}})},"./src/module/modelService/listPage/components/modelCard-style.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelFunctionPanel=t.CardFooter=t.ModelProgress=t.ModelStatus=t.ModelStatusTop=t.ModelInfo=t.ModelLabel=t.CardWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./node_modules/polished/dist/polished.es.js");t.CardWrapper=s.default.div.withConfig({displayName:"modelCard-style__CardWrapper",componentId:"lp7vl8-0"})(["position:relative;border:1px solid #ccd5e0;border-radius:4px;border-top:5px solid ",";width:","px;height:250px;margin-right:20px;margin-bottom:20px;user-select:none;background:#fff;cursor:pointer;&:hover{box-shadow:0 2px 4px 0 rgba(0,0,0,0.15);transition:transform 0.5s;transform:translateY(-5px);}"],(function(e){return e.statusColor}),(function(e){return e.width})),t.ModelLabel=s.default.div.withConfig({displayName:"modelCard-style__ModelLabel",componentId:"lp7vl8-1"})(["",";height:30px;.model-label-l,.model-label-r{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:5px;font-size:10px;letter-spacing:1px;line-height:14px;}.model-label-l{float:left;padding:2px 10px;background:#ccd5e0;color:#ffffff;}.model-label-r{float:right;padding:2px 0;color:#a2b0c4;}"],(0,r.clearFix)()),t.ModelInfo=s.default.div.withConfig({displayName:"modelCard-style__ModelInfo",componentId:"lp7vl8-2"})(["padding:10px;.model-title{word-wrap:break-word;text-align:center;height:40px;margin-top:10px;font-size:14px;color:#475669;letter-spacing:0;line-height:22px;width:100%;}.model-creator{margin:0;text-align:center;color:#a1b0c1;}"]),t.ModelStatusTop=s.default.div.withConfig({displayName:"modelCard-style__ModelStatusTop",componentId:"lp7vl8-3"})(["text-align:center;margin-right:5px;padding:0,5,5,5;span{padding-left:5px;}"]),t.ModelStatus=s.default.div.withConfig({displayName:"modelCard-style__ModelStatus",componentId:"lp7vl8-4"})(["text-align:center;margin-right:5px;padding:5px;span{padding-left:5px;}"]),t.ModelProgress=s.default.div.withConfig({displayName:"modelCard-style__ModelProgress",componentId:"lp7vl8-5"})(["",";position:relative;overflow:hidden;border-top:1px solid #edecf1;border-bottom:1px solid #edecf1;height:50px;.progress-desc{text-overflow:-o-ellipsis-lastline;color:#475669;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;line-clamp:2;text-align:center;-webkit-box-orient:vertical;font-size:12px;padding:7px 15px 7px 15px;}.progress-chart{float:left;width:30%;height:100%;justify-content:center;align-items:center;display:flex;.ant-progress-circle-path{stroke:#47b2fb;}.ant-progress-status-success .ant-progress-circle-path{stroke:#00cf9b;}.ant-progress-status-exception .ant-progress-circle-path{stroke:#fb6362;}}.progress-stage{float:right;width:70%;height:100%;padding:5px 0 0 20px;p{margin-bottom:2px;}}"],(0,r.clearFix)()),t.CardFooter=s.default.div.withConfig({displayName:"modelCard-style__CardFooter",componentId:"lp7vl8-6"})(["height:40px;line-height:40px;text-align:center;"]),t.ModelFunctionPanel=s.default.div.withConfig({displayName:"modelCard-style__ModelFunctionPanel",componentId:"lp7vl8-7"})(["position:absolute;left:0;bottom:0;width:100%;z-index:2;background-image:linear-gradient( to bottom,rgba(255,255,255,0) -50%,rgba(255,255,255,0.6) 50%,rgba(255,255,255,1) 65% );display:flex;flex-direction:column;justify-content:flex-end;padding:15px 20px;.ant-divider{margin:10px 0;}.btn__wrapper{width:50%;display:flex;justify-content:flex-start;&:nth-child(2n){justify-content:flex-end;}&:nth-child(n + 3){margin-top:10px;}}"])},"./src/module/modelService/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.SERVICE_MIRROR_EVENT_TYPE=t.SERVICE_VERSION_FLAG=t.LOG_DOWNLOAD_TASK_STATUS=t.TIME_INTERVAL=t.INVOCATION_INTERVAL=t.LOG_DOWNLOAD_TYPE=t.SERVICE_ADDRESS_TYPE=t.CONTAINER_EVENT_SOURCE_TYPE=t.MODEL_TYPE=t.RESOURCE_MONITORING_INTERVAL=t.RESOURCE_MONITORING_CYCLE=t.REASONING_PROCESS_STATUS=t.REASONING_PROCESS=t.HEALTH_CHECK_TYPE=t.SERVICE_INVOCATION_STATUS=t.PARAMETER_CHECK=t.SERVICE_AUTH=t.ENVIRONMENT=t.MODEL_VERSION_DEPLOY_STATUS=t.REASONING_SERVICE_STATUS=t.REASONING_MODE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({ONLINE:[1,"\u5728\u7ebf\u63a8\u7406"],OFFLINE:[2,"\u79bb\u7ebf\u63a8\u7406"]}),i=(0,s.default)({READY:["READY","\u6570\u636e\u51c6\u5907\u9636\u6bb5"],MIRROR:["MIRROR","\u955c\u50cf\u6784\u5efa\u9636\u6bb5"],DEPLOY:["DEPLOY","\u670d\u52a1\u90e8\u7f72\u9636\u6bb5"],REGISTER:["REGISTER","\u670d\u52a1\u6ce8\u518c\u9636\u6bb5"]}),d=(0,s.default)({BUILD:["BUILD","\u6784\u5efa\u4e2d"],PROCESSING:["PROCESSING","\u542f\u52a8\u4e2d"],SUCCESS:["SUCCESS","\u6b63\u5e38\u8fd0\u884c"],ERROR:["ERROR","\u53d1\u751f\u9519\u8bef"],STOPED:["STOPED","\u5df2\u505c\u6b62"]}),l=(0,s.default)({STARTING:[2,"\u542f\u52a8\u4e2d"],ERROR:[9,"\u53d1\u751f\u9519\u8bef"],RUNNING:[3,"\u6b63\u5e38\u8fd0\u884c"],STOP:[8,"\u5df2\u505c\u6b62"]}),u=(0,s.default)({UNKNOWN:[-1,"\u672a\u77e5"],EDITING:[1,"\u7f16\u8f91\u4e2d"],NO_DEPLOY:[2,"\u4e0d\u53ef\u90e8\u7f72"],WAIT_DEPLOY:[3,"\u5f85\u90e8\u7f72"],DEPLOYING:[4,"\u90e8\u7f72\u4e2d"],DEPLOYED:[5,"\u5df2\u90e8\u7f72"],DEPLOY_FAIL:[6,"\u90e8\u7f72\u5931\u8d25"]}),c=(0,s.default)({PRODUCT:["PRODUCT","\u751f\u4ea7\u73af\u5883"],TEST:["TEST","\u6d4b\u8bd5\u73af\u5883"]}),p=(0,s.default)({auth:["auth","\u9274\u6743"],reformatting:["reformatting","AIOnline\u683c\u5f0f\u8f6c\u6362"]}),f=(0,s.default)({integrity:["integrity","\u5b8c\u6574\u6027\u6821\u9a8c"],uniformity:["uniformity","\u4e00\u81f4\u6027\u6821\u9a8c"]}),m=(0,s.default)({ALL:["","\u5168\u90e8"],SUCCESS:[1,"\u8bf7\u6c42\u6210\u529f"],ERROR:[0,"\u53d1\u751f\u9519\u8bef"]}),h=(0,s.default)({hour:["hour","\u5f53\u524d\u5c0f\u65f6"],day:["day","\u5f53\u524d\u5929"],month:["month","\u5f53\u524d\u6708"]}),g=(0,s.default)({"5minute":["5minute","\u63095\u5206\u949f\u7edf\u8ba1"],"10minute":["10minute","\u630910\u5206\u949f\u7edf\u8ba1"],"30minute":["30minute","\u630930\u5206\u949f\u7edf\u8ba1"],hour:["hour","\u6309\u5c0f\u65f6\u7edf\u8ba1"],day:["day","\u6309\u65e5\u7edf\u8ba1"],month:["month","\u6309\u6708\u7edf\u8ba1"]}),v=(0,s.default)({1:["today","\u4eca\u5929"],7:["seven","7\u5929"],14:["fourteen","14\u5929"],30:["thirty","30\u5929"]}),_=(0,s.default)({30:[30,"30"],60:[60,"60"],120:[120,"120"]}),y=(0,s.default)({exec:["exec","COMMAND"],httpGet:["httpGet","HTTP"],tcpSocket:["tcpSocket","TCP"]}),b=(0,s.default)({MODEL:["MODEL","\u6a21\u578b"],MIRRORVERSION:["MIRRORVERSION","\u63a8\u7406\u955c\u50cf"]}),x=(0,s.default)({Deployment:["Deployment","\u5e94\u7528"],ReplicaSet:["ReplicaSet","\u526f\u672c\u63a7\u5236"],Pod:["Pod","\u5bb9\u5668"],Ingress:["Ingress","\u8d1f\u8f7d"],HorizontalPodAutoscaler:["HorizontalPodAutoscaler","\u81ea\u52a8\u6269\u7f29\u5bb9"]}),C=(0,s.default)({ai:["IN_NETWORK","AI\u7f51\u5173"],ingress:["OUT_NETWORK","\u81ea\u5b9a\u4e49\u57df\u540d"]}),j=(0,s.default)({FILE:["FILE","\u4ec5\u6587\u4ef6"],BODY:["BODY","\u4ec5\u62a5\u6587"],ALL:["ALL","\u6587\u4ef6\u548c\u62a5\u6587"]}),S=(0,s.default)({queuing:["queuing","\u6392\u961f\u4e2d"],processing:["processing","\u5904\u7406\u4e2d"],cleared:["cleared","\u5df2\u6e05\u7406"],canceled:["canceled","\u5df2\u53d6\u6d88"],downloadable:["downloadable","\u53ef\u4e0b\u8f7d"],error:["error","\u53d1\u751f\u9519\u8bef"]}),I=(0,s.default)({RUN:[1,"\u8fd0\u884c\u7248\u672c"],GRAY:[2,"\u7070\u5ea6\u7248\u672c"]}),T=(0,s.default)({CREATE:["CREATE","\u65b0\u589e"],UPDATE:["UPDATE","\u4fee\u6539"],UPGRADE:["UPGRADE","\u5347\u7ea7"]});t.REASONING_MODE=r,t.REASONING_SERVICE_STATUS=l,t.MODEL_VERSION_DEPLOY_STATUS=u,t.ENVIRONMENT=c,t.SERVICE_AUTH=p,t.PARAMETER_CHECK=f,t.SERVICE_INVOCATION_STATUS=m,t.HEALTH_CHECK_TYPE=y,t.REASONING_PROCESS=i,t.REASONING_PROCESS_STATUS=d,t.RESOURCE_MONITORING_CYCLE=v,t.RESOURCE_MONITORING_INTERVAL=_,t.MODEL_TYPE=b,t.CONTAINER_EVENT_SOURCE_TYPE=x,t.SERVICE_ADDRESS_TYPE=C,t.LOG_DOWNLOAD_TYPE=j,t.INVOCATION_INTERVAL=h,t.TIME_INTERVAL=g,t.LOG_DOWNLOAD_TASK_STATUS=S,t.SERVICE_VERSION_FLAG=I,t.SERVICE_MIRROR_EVENT_TYPE=T},"./src/module/modelService/offlineInference/editPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.BseInfoDom=void 0;var n=C(a("./node_modules/antd/es/col/index.js")),o=C(a("./node_modules/antd/es/row/index.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/babel-runtime/regenerator/index.js")),i=C(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),d=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=C(a("./node_modules/babel-runtime/helpers/inherits.js")),c=C(a("./node_modules/antd/es/input/index.js")),p=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=C(a("./node_modules/react/index.js")),m=(C(a("./node_modules/prop-types/index.js")),C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./node_modules/react-redux/es/index.js"),v=a("./src/utils/commonUtil.js"),y=a("./src/components/index.js"),b=a("./src/module/modelService/utils.js"),x=C(a("./src/redux/services/offlineInference.js"));function C(e){return e&&e.__esModule?e:{default:e}}var j=t.BseInfoDom=m.default.div.withConfig({displayName:"BaseInfo__BseInfoDom",componentId:"sc-1r52o3w-0"})([".ant-row{display:flex;}.ant-legacy-form-item-label{width:70px;text-align:right;}"]),S={width:"100%",minWidth:"550px"},I={marginTop:"16px"},T=p.default.Option,w=h.Form.Item,E=c.default.TextArea,D=function(e){function t(a){var n=this;(0,d.default)(this,t);var o=(0,l.default)(this,e.call(this,a));o.validateFun=function(){var e=!1;return o.isSubmit=!0,o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:o.moduleData}},o.handleChangeModuleInfo=function(e,t,a){if(o.moduleData[e]=t,"applicationId"===e&&t){if("edit"!==o.props.actionType||o.props.disabledApplication){var n=a?_.get(a,"props.label"):_.get(_.find(o.props.applicationsList,{projectApplicationId:t}),"applicationName"),s=(0,v.createModuleNameByApply)(n,"onOffline");o.moduleData.taskName=s,o.setTaskIdentify(s),o.props.form.setFieldsValue({taskName:s})}o.props.onApplicationChange&&o.props.onApplicationChange(t)}"taskName"===e&&t&&"edit"!==o.props.actionType&&o.setTaskIdentify(t)},o.handleNameValidator=function(){var e=(0,i.default)(r.default.mark((function e(t,a,s){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a&&_.trim(a)){e.next=3;break}return s(""),e.abrupt("return");case 3:if(!o.isSubmit){e.next=7;break}e.t0="",e.next=10;break;case 7:return e.next=9,(0,b.checkTaskNameIsRepeat)(o.moduleData.taskId,a,o.props.deployEnv);case 9:e.t0=e.sent;case 10:e.t0&&s("\u4efb\u52a1\u540d\u79f0\u91cd\u590d"),s();case 13:case"end":return e.stop()}}),e,n)})));return function(t,a,n){return e.apply(this,arguments)}}(),o.handleTaskIdentifyValidator=function(){var e=(0,i.default)(r.default.mark((function e(t,a,s){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a&&_.trim(a)){e.next=3;break}return s(""),e.abrupt("return");case 3:if(!o.isSubmit){e.next=7;break}e.t0="",e.next=10;break;case 7:return e.next=9,(0,b.checkTaskIdentifyIsRepeat)(a);case 9:e.t0=e.sent;case 10:e.t0&&s("\u4efb\u52a1\u6807\u8bc6\u91cd\u590d"),s();case 13:case"end":return e.stop()}}),e,n)})));return function(t,a,n){return e.apply(this,arguments)}}(),o.setTaskIdentify=function(e){x.default.createTaskIdentify(e).then((function(e){o.moduleData.taskIdentify=e.data,o.props.form.setFieldsValue({taskIdentify:e.data})}))},o.moduleData={taskId:_.get(a,"moduleData.taskId",""),taskName:_.get(a,"moduleData.taskName",""),taskDesc:_.get(a,"moduleData.taskDesc",""),applicationId:_.get(a,"moduleData.applicationId",""),taskIdentify:_.get(a,"moduleData.taskIdentify","")},o.isSubmit=!1;var s=o.props.setValidateFunc;return _.isFunction(s)&&s("baseInfo",o.validateFun),o}return(0,u.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.applicationId!==e.applicationId&&Array.isArray(this.props.applicationsList)&&this.props.applicationsList.length>0&&this.handleChangeModuleInfo("applicationId",this.props.applicationId),!_.isEqual(e.applicationsList,this.props.applicationsList)&&this.props.applicationId&&this.handleChangeModuleInfo("applicationId",this.props.applicationId)},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.applicationsList;return(0,s.default)(j,{},void 0,(0,s.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,s.default)(h.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(w,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,t("applicationId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:this.moduleData.applicationId||void 0})((0,s.default)(p.default,{disabled:"edit"===this.props.actionType,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e",optionFilterProp:"children",onChange:function(t,a){return e.handleChangeModuleInfo("applicationId",t,a)},style:{width:"350px"}},void 0,Array.isArray(a)&&a.map((function(e){return(0,s.default)(T,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)})))))),(0,s.default)(o.default,{style:I},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)(w,{label:"\u540d\u79f0",className:"sm-label"},void 0,t("taskName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0"},{validator:this.handleNameValidator},{max:30,message:"\u4efb\u52a1\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],validateTrigger:"onBlur",initialValue:this.moduleData.taskName})((0,s.default)(c.default,{style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0",onBlur:function(t){return e.handleChangeModuleInfo("taskName",t.target.value)}})))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)(w,{label:"\u4efb\u52a1\u6807\u8bc6",className:"sm-label"},void 0,t("taskIdentify",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4efb\u52a1\u6807\u8bc6"},{validator:this.handleTaskIdentifyValidator},{max:30,message:"\u4efb\u52a1\u6807\u8bc6\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],validateTrigger:"onBlur",initialValue:this.moduleData.taskIdentify})((0,s.default)(c.default,{disabled:Boolean("edit"===this.props.actionType),style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u6807\u8bc6",onChange:function(t){return e.handleChangeModuleInfo("taskIdentify",t.target.value)}}))))),(0,s.default)(o.default,{style:I},void 0,(0,s.default)(w,{label:"\u63cf\u8ff0",className:"sm-label"},void 0,t("taskDesc",{rules:[{max:300,message:"\u63cf\u8ff0\u5185\u5bb9\u4e0d\u5f97\u8d85\u8fc7300\u4e2a\u5b57\u7b26"}],initialValue:this.moduleData.taskDesc})((0,s.default)(E,{autoSize:{minRows:3,maxRows:5},style:S,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.handleChangeModuleInfo("taskDesc",t.target.value)}})))))))},t}(f.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(h.Form.create()(D))},"./src/module/modelService/offlineInference/editPage/EditOfflinePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/babel-runtime/helpers/jsx.js")),s=I(a("./node_modules/antd/es/message/index.js")),r=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=I(a("./node_modules/babel-runtime/helpers/inherits.js")),l=I(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=I(a("./node_modules/react/index.js")),c=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=I(a("./node_modules/lodash/lodash.js")),f=(I(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/utils/history.js"),h=a("./src/routes/routeHelper.jsx"),g=a("./src/utils/commonUtil.js"),v=I(a("./src/module/modelService/offlineInference/editPage/BaseInfo.jsx")),_=a("./src/components/index.js"),y=I(a("./src/module/modelService/offlineInference/editPage/StartParamsConfig.jsx")),b=I(a("./src/module/modelService/createPage/ComputingResource.jsx")),x=a("./src/module/modelService/utils.js"),C=I(a("./src/redux/services/sysManager/projectManage.js")),j=I(a("./src/redux/services/offlineInference.js")),S=I(a("./src/module/modelService/offlineInference/editPage/TaskParamsConfig.jsx"));function I(e){return e&&e.__esModule?e:{default:e}}var T=l.default.confirm,w=c.default.div.withConfig({displayName:"EditOfflinePage__EditOfflinePageDom",componentId:"sc-1uw0dyy-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.ant-legacy-form-item-label{width:70px;}.lang-label-wrapper{& > .ant-legacy-form-item-label{width:82px;margin-left:-12px;}}"]),E=c.default.div.withConfig({displayName:"EditOfflinePage__ConfigButtonDom",componentId:"sc-1uw0dyy-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),D=(0,o.default)(_.LoadingIndicator,{}),M=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchServiceInfo(),n.fetchApplications()},n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.fetchApplications=function(){C.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsList:e.data})})).catch((function(e){s.default.error(e.message)}))},n.setDeployArtifact=function(e){n.setState({deployArtifact:e})},n.fetchServiceInfo=function(){n.taskId&&(n.setState({loading:!0}),j.default.getOfflineInfo(n.taskId).then((function(e){n.setState({applicationId:p.default.get(e,"data.applicationId",""),moduleData:n.updateFormatData(e.data),loading:!1})})).catch((function(){n.setState({loading:!1})})))},n.updateFormatData=function(e){var t=p.default.get(e,"runEnvParam",[]),a=p.default.findIndex(t,(function(e){return"AI_JOB_LOG_PATH"==e.envName})),o=p.default.findIndex(t,(function(e){return"AI_JOB_DATA_PATH"==e.envName})),s=p.default.findIndex(t,(function(e){return"AI_JOB_WORK_PATH"==e.envName}));return t.length>0&&-1!==a?e.logPath=t[a].envValue:e.logPath="",t.length>0&&-1!==o?e.dataPath=t[o].envValue:e.dataPath="",t.length>0&&-1!==s?e.workPath=t[s].envValue:e.workPath="",e.runEnvParam=n.setEnvVariables(p.default.get(e,"runEnvParam")),e.envVars=e.runEnvParam,e.runParam=(0,g.isJsonString)(e.runParam)?JSON.parse(e.runParam):e.runParam,e},n.setEnvVariables=function(e){var t=[{name:"",value:"",index:"-1"}];if(e&&e.length>0){t=[];for(var a=0;a<e.length;a++)"AI_JOB_LOG_PATH"!==e[a].envName&&"AI_JOB_DATA_PATH"!==e[a].envName&&"AI_JOB_WORK_PATH"!==e[a].envName&&t.push({name:e[a].envName,value:e[a].envValue,index:a+""})}return 0===t.length&&(t=[{name:"",value:"",index:"-1"}]),t},n.savaOrSubmit=function(){var e={},t=!0,a={};Object.keys(n.validateFuncs).map((function(o){var s=n.validateFuncs[o];if(p.default.isFunction(s)){var r=s.call();r.validate&&("computingResource"===o?e.resQuotaConf=r.moduleData:e=p.default.assign(e,r.moduleData),"baseInfo"===o&&(a=r.moduleData)),t&&(t=r.validate)}})),"create"===n.actionType&&(e.deployEnv=n.state.profile),(0,x.getArrayByKeyIsRedo)(e.runEnvParam,"name")&&(t=!1,s.default.error("\u73af\u5883\u53d8\u91cf\u540d\u79f0\u91cd\u590d\uff01")),e=p.default.assign(e,a);var o=n;t&&l.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){o.submitModalOk(e)},onCancel:function(){}})},n.submitModalOk=function(e){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.actionType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var t=(0,x.formatOfflineData)(e);"create"===n.actionType?j.default.createOfflineInfo(t).then((function(){s.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,m.navigateTo)({pathname:h.inferenceUrl.offlineList(),state:{pubEnvType:n.state.profile}})}),2e3)})).catch((function(){n.setState({confirmLoading:!1})})):j.default.editOfflineInfo(t).then((function(){s.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,m.navigateTo)({pathname:h.inferenceUrl.offlineList(),state:{pubEnvType:n.state.profile}})}),2e3)})).catch((function(){n.setState({confirmLoading:!1})}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){var e=n;T({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u79bb\u7ebf\u63a8\u7406\u4efb\u52a1\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,m.navigateTo)({pathname:h.inferenceUrl.offlineList(),state:{pubEnvType:e.state.profile}})}})},n.handleStructureTypeChange=function(e){var t=n.state.isCustomApi;t="CODE"===e||"MIRRORVERSION"===e,n.setState({isCustomApi:t})},n.handleApplicationChange=function(e){n.setState({applicationId:e})},n.actionType=p.default.get(a.match,"params.action",null),n.taskId=p.default.get(a.match,"params.taskId",null),n.env=p.default.upperCase(p.default.get(a.match,"params.env","")),n.modelId=p.default.get(a.match,"params.modelId",null),n.packageId=p.default.get(a.match,"params.packageId",null),n.state={moduleData:{applicationId:p.default.get(a.match,"params.applicationId",""),artifactId:n.modelId,packageId:n.packageId},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1,applicationsList:[],profile:n.env,applicationId:p.default.get(a.match,"params.applicationId",""),deployArtifact:"MODEL",result:!1},n.validateFuncs={},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,s=t.moduleData,r=t.applicationId,i=t.modalTxt,d=t.loading,u=t.confirmLoading,c=t.applicationsList;return(0,o.default)(w,{},void 0,(0,o.default)(l.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:u,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,i)),d&&D,("create"===this.actionType||!d&&s)&&(0,o.default)("div",{},void 0,(0,o.default)(v.default,{disabledApplication:Boolean(this.modelId||this.packageId),applicationId:r,actionType:this.actionType,moduleData:s,applicationsList:c,onApplicationChange:this.handleApplicationChange,setValidateFunc:this.setValidateFunc,deployEnv:this.env}),(0,o.default)(y.default,{disabledApplication:Boolean(this.modelId||this.packageId),applicationId:r,actionType:this.actionType,moduleData:s,modelId:this.modelId,packageId:this.packageId,onStructureTypeChange:this.handleStructureTypeChange,setValidateFunc:this.setValidateFunc,applicationsList:c,onApplicationChange:this.handleApplicationChange,setDeployArtifact:this.setDeployArtifact}),(0,o.default)(b.default,{noResidueCheck:!0,pubEnvType:this.state.profile,requestQuota:{instances_min:p.default.get(s,"replicaCnt",1),cpu:p.default.get(s,"resQuotaConf.cpu",1),gpu:p.default.get(s,"resQuotaConf.gpu",0),memory:p.default.get(s,"resQuotaConf.memory",1)},canModify:!0,setValidateFunc:this.setValidateFunc,source:"OFFLINE_REASONING"}),(0,o.default)(S.default,{moduleData:s,setValidateFunc:this.setValidateFunc,deployArtifact:this.state.deployArtifact})),(0,o.default)(E,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.savaOrSubmit()},type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110},disabled:!this.state.result},void 0,"\u4fdd\u5b58")))},t}(u.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(M)},"./src/module/modelService/offlineInference/editPage/MirrorVersionSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/divider/index.js")),o=_(a("./node_modules/antd/es/row/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/extends.js")),i=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=_(a("./node_modules/babel-runtime/helpers/inherits.js")),u=_(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=_(a("./node_modules/react/index.js")),p=_(a("./node_modules/lodash/lodash.js")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");_(a("./node_modules/prop-types/index.js"));var h=a("./node_modules/react-router-dom/esm/react-router-dom.js"),g=a("./src/redux/services/modelMirror.js"),v=a("./src/routes/routeHelper.jsx");function _(e){return e&&e.__esModule?e:{default:e}}var y=m.Form.Item,b=u.default.Option,x=(0,s.default)(f.PlusOutlined,{}),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=n.state.moduleData;return{validate:e,moduleData:t}},n.updateFormData=function(e,t){n.setState((function(a){var n=a.moduleData;return n[e]=t,{moduleData:n}}),(function(){n.props.form.setFieldsValue({felid:t})}))},n.fetchData=function(){n.fetchMirrorList(),n.props.mirrorId&&(n.updateFormData("mirrorId",n.props.mirrorId),n.fetchVersionsByMirrorId())},n.changeMirrorUpdateApplication=function(e,t,a){var o=p.default.find(t,(function(t){return t.mirrorId===e})),s=p.default.get(o,"businessType","");s&&n.props.onApplicationChange(s,a)},n.fetchMirrorList=function(e){var t={isPage:"N",baseType:"REASONING",state:"SUCCESS",businessType:e||n.props.applicationId||"",mirrorType:n.props.mirrorType};(0,g.getModelMirrorList)({paramjson:t}).then((function(e){n.setState({mirrorList:e.data,mirrorListLoading:!1}),n.mirrorId&&n.changeMirrorUpdateApplication(n.mirrorId,e.data,!0)})).catch((function(){return n.setState({mirrorListLoading:!1})}))},n.fetchVersionsByMirrorId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.mirrorId;e?(n.setState({versionLoading:!0}),(0,g.getMirrorVersionList)({paramsJson:{mirrorId:e,versionState:"SUCCESS"}}).then((function(t){var a=t.data;n.setState({mirrorVersions:a,versionLoading:!1});var o=e===n.props.mirrorId?n.props.mirrorVersionId:"";o||(o=p.default.get(a,"[0].versionId")),n.handleParamsChange("mirrorVersionId",o)})).catch((function(){return n.setState({versionLoading:!1})}))):n.setState({mirrorVersions:[]})},n.fetchMirrorVersionInfo=function(e){e&&(0,g.getMirrorVersionInfo)(e).then((function(e){var t=p.default.get(e.data,"envVars",[])||[],a=p.default.get(e.data,"startCommand",""),o=p.default.get(e.data,"apiSchema",""),s=p.default.get(e.data,"workDir",""),r=p.default.get(e.data,"logInnerPath","");0===(t=t.map((function(e){return{name:e.envKey,value:e.envValue,index:p.default.uniqueId()}}))).length&&(t=[{name:"",value:"",index:p.default.uniqueId()}]),n.props.form.setFieldsValue({startCommand:a}),n.props.onMirrorInfoChangeInfo&&n.props.onMirrorInfoChangeInfo({startCommand:a,envVars:t,workDir:s,logInnerPath:r}),n.props.onApiSchemaChange&&n.props.onApiSchemaChange(o)}))},n.handleParamsChange=function(e,t){"mirrorId"===e&&(n.fetchVersionsByMirrorId(t),n.changeMirrorUpdateApplication(t,n.state.mirrorList,!1)),"mirrorVersionId"===e&&n.fetchMirrorVersionInfo(t),n.setState((function(a){var n=(0,r.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},n.state={mirrorList:[],mirrorVersions:[],moduleData:{mirrorId:a.mirrorId,mirrorVersionId:a.mirrorVersionId},versionLoading:!1},n.fileFuncs={};var o=n.props.setValidateFunc;return p.default.isFunction(o)&&o("MirrorVersionSelect",n.validateFun),n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.moduleData,i=a.mirrorList,d=a.mirrorVersions,l=a.versionLoading,c={padding:"4px 8px 8px",cursor:"pointer"};return(0,s.default)(o.default,{style:{marginTop:6}},void 0,(0,s.default)(y,{label:"\u63a8\u7406\u955c\u50cf"},void 0,t("mirrorId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u63a8\u7406\u955c\u50cf"}],initialValue:r.mirrorId})((0,s.default)(u.default,{disabled:this.props.disabled&&!1,showSearch:!0,placeholder:"\u8bf7\u9009\u62e9\u63a8\u7406\u955c\u50cf",onChange:function(t){return e.handleParamsChange("mirrorId",t)},style:{width:"200px"},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},dropdownRender:function(t){return(0,s.default)("div",{},void 0,t,(0,s.default)(n.default,{style:{margin:"4px 0"}}),(0,s.default)("div",{style:c,onMouseDown:function(e){return e.preventDefault()}},void 0,(0,s.default)(h.Link,{to:{pathname:v.modelMirrorUrl.create("import"),state:{applicationId:e.props.applicationId}},target:"_blank"},void 0,x," \u65b0\u589e\u63a8\u7406\u955c\u50cf")))}},void 0,Array.isArray(i)&&i.map((function(e){return(0,s.default)(b,{value:e.mirrorId},e.mirrorId,e.mirrorShowName)}))))),(0,s.default)(y,{label:"\u7248\u672c",className:"sm-label"},void 0,t("mirrorVersionId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],initialValue:r.mirrorVersionId})((0,s.default)(u.default,{placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:l,onChange:function(t){return e.handleParamsChange("mirrorVersionId",t)},style:{width:"200px"}},void 0,Array.isArray(d)&&d.map((function(e){return(0,s.default)(b,{value:e.versionId},e.versionId,e.versionName)}))))))},t}(c.default.PureComponent);C.defaultProps={},t.default=m.Form.create()(C)},"./src/module/modelService/offlineInference/editPage/StartParamsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/spin/index.js")),o=w(a("./node_modules/antd/es/tooltip/index.js")),s=w(a("./node_modules/antd/es/row/index.js")),r=w(a("./node_modules/babel-runtime/helpers/jsx.js")),i=w(a("./node_modules/antd/es/message/index.js")),d=w(a("./node_modules/babel-runtime/regenerator/index.js")),l=w(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=w(a("./node_modules/babel-runtime/helpers/extends.js")),c=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=w(a("./node_modules/babel-runtime/helpers/inherits.js")),m=w(a("./node_modules/antd/es/radio/index.js")),h=w(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var g=w(a("./node_modules/react/index.js")),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var y=a("./src/components/index.js"),b=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),x=(w(a("./node_modules/prop-types/index.js")),a("./src/redux/services/modelMirror.js")),C=a("./node_modules/@ant-design/icons/es/index.js"),j=w(a("./src/module/modelMirror/components/EnvVariables.jsx")),S=w(a("./src/module/modelMirror/serviceMirror/createPage/service/ModeVersionSelect.jsx")),I=w(a("./src/module/modelService/offlineInference/editPage/MirrorVersionSelect.jsx")),T=a("./src/utils/dockerFileUtil.js");function w(e){return e&&e.__esModule?e:{default:e}}var E=h.default.TextArea,D={width:"100%",minWidth:"550px"},M=v.Form.Item,k=m.default.Group,P=b.default.div.withConfig({displayName:"StartParamsConfig__StartParamsConfigDom",componentId:"sc-1ggajt8-0"})([".ant-row{display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:0;line-height:40px;width:100px;text-align:right;}.ant-form-item{margin-bottom:16px;}.dockerfile-wrapper{padding-left:0px;.ant-form-item{width:100%;}.ant-form-item-control-wrapper{width:80%;}.docker-file-container{padding-left:0;}.ant-legacy-form-item-label{width:108px;margin-left:-38px;}.from-div{line-height:22px;}.CodeMirror-code > div{line-height:18px;}}"]),L={marginTop:16},N={width:"100%"},A=(0,r.default)(m.default,{value:"MIRRORVERSION"},void 0,"\u63a8\u7406\u955c\u50cf"),R=function(e){function t(a){var n=this;(0,c.default)(this,t);var o=(0,p.default)(this,e.call(this,a));o.updateSetDockerFile=function(e){o.setState({dockerFilesLoading:!0}),(0,T.updateSetDockerFileSort)(e,{workPath:"workdir",runCommand:"startcommond",logPath:"logpath",model:"model"}).then((function(e){o.dockerFileSort=e,o.setState({dockerFilesLoading:!1})}))},o.setPackageValidateFunc=function(e,t){o.fileFuncs[e]=t},o.validateFun=function(){var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t?e=!0:o.setState({panelCollapse:!0})}));var t=o.state.moduleData;return Object.keys(o.fileFuncs).map((function(a){var n=o.fileFuncs[a];if(_.isFunction(n)){var s=n.call();e&&(e=s.validate),e&&"relyInlayMirror"===a?(t.engine=s.moduleData.engine,t.language=s.moduleData.language,t.frame=s.moduleData.languageVersion,t.baseMirrorId=s.moduleData.baseMirrorId,t.baseId=s.moduleData.baseId):t=(0,u.default)({},t,s.moduleData)}})),"MIRRORVERSION"===t.deployArtifact&&(t.workPath="",t.dockerFile=""),{validate:e,moduleData:(0,u.default)({},t)}},o.handleSourceTypeChange=function(e){o.setState({panelCollapse:!0}),o.handleParamsChange("deployArtifact",e),o.props.onStructureTypeChange(e),o.props.setDeployArtifact(e)},o.handleParamsChange=function(e,t){o.setState((function(a){var n=(0,u.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},o.handleEnvsChange=function(){var e=(0,l.default)(d.default.mark((function e(t,a,s,r){var i;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i="minus"!==a?t[s]:r).name.trim()&&i.value.trim()&&"add"!==a&&(i.key=i.name?i.name:"",i.type="env",o.getDockerfileContent(i,s,a,t));case 2:case"end":return e.stop()}}),e,n)})));return function(t,a,n,o){return e.apply(this,arguments)}}(),o.getDockerfileContent=function(e,t,a,n){o.setState({dockerFilesLoading:!0});var s=void 0;(0,x.getDockerfileContent)({paramjson:e}).then((function(r){if("00000"===r.code){var d=r.data;if(d){d=d?d.replace(/\\n/g,"\n"):"",s=(0,T.editDockerFileByAuto)(o.dockerFileSort,d,t,a,n,e.type),o.dockerFileSort=s.dockerFileSort;var l=(0,T.transitionDockerFileSort)(o.dockerFileSort);o.handleParamsChange("dockerFile",l),o.setState({dockerFile:l,dockerFilesLoading:!1})}else o.setState({dockerFilesLoading:!1})}else(r.code="99999")&&(i.default.error(r.message),o.setState({dockerFilesLoading:!1}));"env"===e.type&&o.handleParamsChange("envVars",s.array)})).catch((function(e){o.setState({dockerFilesLoading:!1}),i.default.error(e.message)}))},o.setStartParams=function(e,t,a){if(t){var n={key:"",value:t,type:{workPath:"workdir",runCommand:"startcommond",logPath:"logpath"}[e]};o.getDockerfileContent(n)}o.handleParamsChange(e,t,a)},o.setModelVersionDockerfile=function(e){if(e){var t={key:"",value:e,type:"model"};o.getDockerfileContent(t)}},o.handleMirrorInfoChange=function(e){o.setState((function(t){return{moduleData:(0,u.default)({},t.moduleData,e)}}),(function(){o.props.form.setFieldsValue(e)}))},o.setDockerFile=function(e){o.dockerFileSort=(0,T.editDockerFileByHand)(o.dockerFileSort,e);var t=(0,T.transitionDockerFileSort)(o.dockerFileSort);o.setState({dockerFile:t}),o.handleParamsChange("dockerFile",t)},o.state={modalVisible:!1,moduleData:a.moduleData&&"edit"===a.actionType?a.moduleData:{dataPath:"",logPath:"",workPath:"",deployArtifact:"MODEL",artifactId:a.modelId?a.modelId:"",artifactVersionId:"",packageId:a.packageId?a.packageId:"",mirrorVersionId:"",runEnvParam:[{name:"",value:"",index:"-1"}],dockerFile:"ENTRYPOINT python ../predict_code/predict_main.py",runCommand:"python ../predict_code/predict_main.py"},panelCollapse:!0,dockerFile:a.moduleData&&"edit"===a.actionType?a.moduleData.dockerFile:"ENTRYPOINT python ../predict_code/predict_main.py",dockerFilesLoading:!1},o.dockerFileSort="edit"===a.actionType?[]:[{type:"startcommond",data:"ENTRYPOINT python ../predict_code/predict_main.py",sort:321}],o.fileFuncs={};var s=o.props.setValidateFunc;return _.isFunction(s)&&s("startParamsConfig",o.validateFun),o}return(0,f.default)(t,e),t.prototype.componentDidMount=function(){var e=(0,u.default)({},this.state.moduleData);this.props.moduleData&&("edit"===this.props.actionType&&this.updateSetDockerFile(e),this.setState({dockerFile:e.dockerFile,moduleData:e}))},t.prototype.render=function(){var e=this,t=this.state,a=t.moduleData,i=t.panelCollapse,d=t.dockerFile,l=t.dockerFilesLoading,u=this.props.form.getFieldDecorator;return(0,r.default)(P,{},void 0,(0,r.default)(y.ModelConfigPanel,{title:"\u9009\u62e9\u5185\u5bb9",style:N},void 0,(0,r.default)(v.Form,{labelAlign:"right"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(k,{disabled:Boolean(this.props.modelId)&&Boolean(this.props.mirrorId),onChange:function(t){return e.handleSourceTypeChange(t.target.value)},value:a.deployArtifact},void 0,(0,r.default)(m.default,{value:"MODEL",style:{marginRight:195}},void 0,"\u6a21\u578b"),A)),"MODEL"===a.deployArtifact?(0,r.default)(S.default,{actionType:this.props.packageId&&"create"===this.props.actionType?"build":this.props.actionType,modelId:_.get(a,"artifactId",""),modelVersionId:_.get(a,"artifactVersionId",""),packageId:_.get(a,"packageId",""),reasonType:"OFFLINE",applicationId:this.props.applicationId,setValidateFunc:this.setPackageValidateFunc,disabled:Boolean(this.props.modelId),onApplicationChange:this.props.onApplicationChange,setModelVersionDockerfile:this.setModelVersionDockerfile,setOfflineMirrorStartCommand:function(t){return e.setStartParams("runCommand",t)}}):(0,r.default)(I.default,{mirrorId:_.get(a,"mirrorId",""),mirrorVersionId:_.get(a,"mirrorVersionId",""),applicationId:this.props.applicationId,setValidateFunc:this.setPackageValidateFunc,onApplicationChange:this.props.onApplicationChange,onMirrorInfoChangeInfo:this.handleMirrorInfoChange,actionType:this.props.actionType,mirrorType:"OFFLINE"}))),(0,r.default)(y.ModelConfigPanel,{title:"\u914d\u7f6e\u542f\u52a8\u53c2\u6570",style:N,collapse:i,onToggleExpand:function(t){e.setState({panelCollapse:t})}},void 0,(0,r.default)(v.Form,{layout:"inline",labelAlign:"right"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(M,{label:"\u6267\u884c\u547d\u4ee4"},void 0,u("runCommand",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6267\u884c\u547d\u4ee4"}],initialValue:a.runCommand||""})((0,r.default)(E,{autoSize:{minRows:3,maxRows:5},style:D,placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u6267\u884c\u547d\u4ee4",onBlur:function(t){return e.setStartParams("runCommand",t.target.value)}}))),(0,r.default)(M,{help:""},void 0,(0,r.default)(o.default,{title:"\u591a\u547d\u4ee4\u8bf7\u7528\u201c;\u201d\u9694\u79bb"},void 0,(0,r.default)(C.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),(0,r.default)(s.default,{style:L},void 0,(0,r.default)(M,{label:"\u65e5\u5fd7\u8def\u5f84",className:"sm-label"},void 0,u("logPath",{rules:[{message:"\u8bf7\u8f93\u5165\u65e5\u5fd7\u8def\u5f84"},{pattern:/^\/(?:[^/]+\/)*[^/]+$/,message:"\u8bf7\u586b\u5199\u6b63\u786e\u8def\u5f84\u683c\u5f0f"}],initialValue:a.logPath})((0,r.default)(h.default,{placeholder:"\u8bf7\u8f93\u5165\u65e5\u5fd7\u8def\u5f84",onBlur:function(t){return e.setStartParams("logPath",t.target.value)}})))),(0,r.default)(s.default,{style:L},void 0,(0,r.default)(M,{label:"\u6570\u636e\u76ee\u5f55",className:"sm-label"},void 0,u("dataPath",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6570\u636e\u76ee\u5f55"},{pattern:/^\/(?:[^/]+\/)*[^/]+$/,message:"\u8bf7\u586b\u5199\u6b63\u786e\u8def\u5f84\u683c\u5f0f"}],initialValue:a.dataPath})((0,r.default)(h.default,{placeholder:"\u8bf7\u8f93\u5165\u6570\u636e\u76ee\u5f55",onChange:function(t){return e.handleParamsChange("dataPath",t.target.value)}})))),"MODEL"===a.deployArtifact&&(0,r.default)(s.default,{style:L},void 0,(0,r.default)(M,{label:"\u5de5\u4f5c\u76ee\u5f55",className:"sm-label"},void 0,u("workPath",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5de5\u4f5c\u76ee\u5f55"},{pattern:/^\/(?:[^/]+\/)*[^/]+$/,message:"\u8bf7\u586b\u5199\u6b63\u786e\u8def\u5f84\u683c\u5f0f"}],initialValue:a.workPath})((0,r.default)(h.default,{placeholder:"\u8bf7\u8f93\u5165\u5de5\u4f5c\u76ee\u5f55",onBlur:function(t){return e.setStartParams("workPath",t.target.value)}})))),(0,r.default)(n.default,{spinning:l,tip:"\u547d\u4ee4\u751f\u6210\u4e2d\u8bf7\u7a0d\u540e...."},void 0,(0,r.default)(j.default,{getFieldDecorator:u,wrapStyle:L,labelText:"\u73af\u5883\u53d8\u91cf",envVariables:_.get(a,"runEnvParam"),onMirrorChange:function(t,a,n,o){e.handleEnvsChange(t,a,n,o)}}),"MODEL"===a.deployArtifact&&(0,r.default)(y.DockerfileContainer,{style:{paddingLeft:10},dockerFiles:d,setDockerFile:function(t){e.setDockerFile(t)}})))))},t}(g.default.PureComponent);t.default=v.Form.create()(R)},"./src/module/modelService/offlineInference/editPage/TaskParamsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.BseInfoDom=void 0;var n=b(a("./node_modules/antd/es/tooltip/index.js")),o=b(a("./node_modules/antd/es/row/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=b(a("./node_modules/babel-runtime/helpers/inherits.js")),l=b(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var u=b(a("./node_modules/react/index.js")),c=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/lodash/lodash.js"))),p=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./node_modules/react-redux/es/index.js"),g=a("./src/components/index.js"),v=b(a("./src/module/devCenter/apiDoc/SchemaTable.jsx")),_=b(a("./src/module/devCenter/components/IoSchema/SchemaItem.jsx")),y=a("./src/module/devCenter/components/IoSchema/utils.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=t.BseInfoDom=p.default.div.withConfig({displayName:"TaskParamsConfig__BseInfoDom",componentId:"ispo0b-0"})([".ant-row{display:flex;}.ant-legacy-form-item-label{width:70px;text-align:right;}.api__body-wrapper{border:1px solid #eee;padding-bottom:8px;min-width:844px;}.api-setting-container{margin-left:14px;}"]),C={marginTop:"16px"},j=m.Form.Item,S=l.default.TabPane,I='{ "type": "object", "properties": {} }',T=I,w=I,E=(0,s.default)(f.SettingOutlined,{className:"table-setting"}),D=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.validateFun=function(){n.isSubmit=!0;var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t={runParam:n.state.runParam};return{validate:e,moduleData:t}},n.handleChangeSchema=function(e){var t=n.state,a=t.runParam;a[t.currentSchemaKey]=e,n.setState({runParam:a})},n.openModal=function(e){n.setState({modalVisible:!0,currentSchemaKey:e})},n.callVisible=function(){n.setState({modalVisible:!1})},n.state={panelCollapse:!0,modalVisible:!1,runParam:c.default.get(a.moduleData,"runParam",{requestSchema:T,responseSchema:w})||{requestSchema:T,responseSchema:w},currentSchemaKey:"requestSchema"};var o=n.props.setValidateFunc;return c.default.isFunction(o)&&o("TaskParamsConfig",n.validateFun),n}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e){c.default.isEqual(this.props.deployArtifact,e.deployArtifact)||this.setState({runParam:c.default.get(this.props.moduleData,"runParam",{requestSchema:T,responseSchema:w})||{requestSchema:T,responseSchema:w}})},t.prototype.render=function(){var e=this,t=this.state,a=t.panelCollapse,r=t.modalVisible,i=t.runParam,d=t.currentSchemaKey,u=[{key:"requestSchema",title:"\u8bf7\u6c42\u62a5\u6587"},{key:"responseSchema",title:"\u54cd\u5e94\u62a5\u6587"}];return(0,s.default)(x,{},void 0,(0,s.default)(g.ModalView,{modalTitle:"\u6267\u884c\u53c2\u6570\u914d\u7f6e",closable:!0,width:1e3,height:450,centered:!0,callVisible:this.callVisible,modalVisible:r,comp:(0,s.default)(_.default,{closeModal:this.callVisible,jsonData:i[d],onSchemaConfigChange:this.handleChangeSchema})}),(0,s.default)(g.ModelConfigPanel,{title:"\u914d\u7f6e\u4efb\u52a1\u53c2\u6570",collapse:a,onToggleExpand:function(t){e.setState({panelCollapse:t})}},void 0,(0,s.default)(m.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{style:C},void 0,(0,s.default)(j,{label:"\u6267\u884c\u53c2\u6570",className:"sm-label"},void 0,(0,s.default)("div",{className:"api__body-wrapper"},void 0,(0,s.default)(l.default,{defaultActiveKey:u[0].key},void 0,u.map((function(t){return(0,s.default)(S,{tab:t.title,style:{position:"relative"}},t.key,(0,s.default)("div",{className:"section__content"},void 0,(0,s.default)("div",{className:"api-setting-container"},void 0,(0,s.default)(n.default,{title:"\u914d\u7f6e\u63a5\u53e3Schema"},void 0,(0,s.default)("span",{className:"link",onClick:function(){return e.openModal(t.key)}},void 0,E,(0,s.default)("span",{style:{color:"#1F2D3D",marginLeft:4}},void 0,"\u914d\u7f6e\u53c2\u6570")))),(0,s.default)(v.default,{wrapperStyle:{marginRight:20,flex:"0 1 auto"},data:i[t.key]?(0,y.schemaConvertTable)(JSON.parse(i[t.key]),!0):[],noImageCol:!0,noCacheCol:!0})))})))))))))},t}(u.default.PureComponent);D.defaultProps={moduleData:{}};t.default=(0,h.connect)((function(){return{}}))(m.Form.create()(D))},"./src/module/modelService/offlineInference/listPage/ModelListView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(u(a("./node_modules/react/index.js")),u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=(u(a("./node_modules/prop-types/index.js")),u(a("./node_modules/lodash/lodash.js"))),r=a("./node_modules/immutable3/dist/immutable.js"),i=a("./src/components/index.js"),d=a("./src/components/exception/index.js"),l=a("./src/module/modelService/offlineInference/listPage/components/index.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=o.default.div.withConfig({displayName:"ModelListView__ModelListViewWrapper",componentId:"sc-17b1kc7-0"})(["margin-top:15px;display:flex;flex-direction:column;align-content:flex-start;flex-wrap:wrap;transition:opacity 0.5s ease-in;flex:1 1 auto;overflow:hidden;min-height:500px;.ReactVirtualized__Grid__innerScrollContainer{overflow:visible !important;margin-bottom:50px;}"]),p=(0,n.default)(i.LoadingIndicator,{});t.default=(0,d.withErrorBoundary)((function(e){var t=e.modelData,a=void 0===t?r.List.of([]):t,o=e.onHandleAction,i=void 0===o?s.default.noop:o,d=e.loading,u=void 0!==d&&d,f=e.pagination,m=e.onPageChange;return(0,n.default)(c,{className:"animated fadeIn"},void 0,u&&p,!u&&(0,n.default)(l.ModelListTable,{pagination:f,modelData:a.toJS(),onHandleAction:i,onPageChange:m}))}))},"./src/module/modelService/offlineInference/listPage/OfflineListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/babel-runtime/helpers/jsx.js")),s=S(a("./node_modules/antd/es/modal/index.js")),r=S(a("./node_modules/antd/es/message/index.js")),i=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=S(a("./node_modules/babel-runtime/helpers/inherits.js")),u=S(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var c=a("./node_modules/react/index.js"),p=(S(c),S(a("./node_modules/prop-types/index.js")),a("./node_modules/react-router-dom/esm/react-router-dom.js")),f=a("./node_modules/immutable3/dist/immutable.js"),m=S(a("./node_modules/lodash/lodash.js")),h=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=S(a("./src/redux/services/sysManager/projectManage.js")),v=a("./src/config/ui-config.js"),_=S(a("./src/module/modelService/offlineInference/listPage/SearchBar.jsx")),y=S(a("./src/module/modelService/offlineInference/listPage/ModelListView.jsx")),b=a("./src/components/index.js"),x=S(a("./src/redux/services/offlineInference.js")),C=a("./src/routes/routeHelper.jsx"),j=a("./src/utils/history.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=h.default.div.withConfig({displayName:"OfflineListPage__PageWrapper",componentId:"sc-1oj02tz-0"})(["display:flex;flex-direction:column;flex:1 1 auto;background:#fff;padding:6px 20px;.ant-tabs-bar{border-bottom:none;font-size:14px;color:#3c3e4a;}"]),T=h.default.div.withConfig({displayName:"OfflineListPage__PageHeader",componentId:"sc-1oj02tz-1"})(["position:relative;width:100%;z-index:20;border-bottom:1px solid #e8e8e8;height:57px;.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}.saveButton{position:absolute;top:8px;}"]),w=h.default.div.withConfig({displayName:"OfflineListPage__PageBody",componentId:"sc-1oj02tz-2"})(["min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),E=h.default.div.withConfig({displayName:"OfflineListPage__ModelsBox",componentId:"sc-1oj02tz-3"})([".ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:0 8px !important;white-space:nowrap;}"]),D=u.default.TabPane,M=(0,o.default)(b.NoDataCreate,{from:"offlineService"}),k=(0,o.default)(D,{tab:"\u6d4b\u8bd5\u96c6\u7fa4"},"TEST"),P=(0,o.default)(D,{tab:"\u751f\u4ea7\u96c6\u7fa4"},"PRODUCT"),L=(0,o.default)(n.default,{className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u79bb\u7ebf\u63a8\u7406\u670d\u52a1"),N=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData(),n.fetchAllService(),g.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsData:e.data})})).catch((function(e){r.default.error(e.message)}))},n.fetchAllService=function(){n.hasFetchData=!1,x.default.getOfflineInferenceList({offset:1,limit:1}).then((function(e){var t=!0;n.hasFetchData=!0,Array.isArray(e.data)&&e.data.length>0&&(t=!1),n.setState({noData:t})})).catch((function(e){throw r.default.error(e),e}))},n.changeSearchCond=function(e,t){"refresh"!==e?(n.searchCond[e]=m.default.trim(t),n.fetchData()):n.fetchData(t)},n.fetchData=function(e){var t="intervalRefresh"===e;n.setState({listLoading:!t}),x.default.getOfflineInferenceList(n.searchCond).then((function(e){n.setState((function(a){return{modelData:e.data,listLoading:!!t&&a.listLoading,pagination:e.pagination}}))})).catch((function(){n.setState({listLoading:!1})}))},n.handleAction=function(e,t){var a=m.default.get(n,m.default.camelCase("handle_"+e+"_action"));a&&m.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.handleDeleteAction=function(e){n._handleAction(e,"delete","\u5220\u9664\u79bb\u7ebf\u63a8\u7406\u670d\u52a1")},n.handleTestAction=function(e){console.log(e),n._handleAction(e,"test","\u505c\u6b62\u79bb\u7ebf\u63a8\u7406\u670d\u52a1")},n._handleAction=function(e,t,a){s.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a+"[ "+e.taskName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(o,s){"delete"===t?x.default.deleteOfflineById(e.taskId).then((function(){r.default.success(a+"[ "+e.taskName+" ]\u6267\u884c\u6210\u529f!"),n.fetchData(),o()})).catch((function(t){s(t),r.default.error(a+"[ "+e.taskName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+t)})):alert("\u8bd5\u4e00\u8bd5")}))}})},n.handleCreateAction=function(){(0,j.navigateTo)(C.inferenceUrl.offlineCreate())},n.setShareLoading=function(e){n.setState({shareLoading:e})},n.handleEnvChange=function(e){n.setState({activeEnv:e}),n.changeSearchCond("profile",e)},n.handlePageChange=function(e){var t=e.page;n.searchCond.offset=Number(t),n.fetchData()},n.handleAction=function(e,t){var a=m.default.get(n,m.default.camelCase("handle_"+e+"_action"));a&&m.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.pubEnvType=m.default.get(a,"location.state.pubEnvType",""),n.state={modelData:[],listLoading:!1,applicationsData:[],activeEnv:n.pubEnvType||"TEST",pagination:{limit:10,offset:0,total:0},noData:!0},n.hasFetchData=!1,n.searchCond={offset:1,limit:10,taskName:"",taskIds:[],applicationIds:"",status:"",sortBy:"UPDATEAT",profile:n.pubEnvType||"TEST"},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=Array.isArray(this.state.modelData)?(0,f.List)(this.state.modelData):(0,f.List)([]);return!this.state.loading&&this.hasFetchData&&this.state.noData?M:(0,o.default)(I,{},void 0,(0,o.default)(u.default,{defaultActiveKey:this.state.activeEnv,onChange:this.handleEnvChange},void 0,k,P),!this.state.listLoading&&(0,o.default)(T,{},void 0,(0,o.default)(p.Link,{to:{pathname:C.inferenceUrl.offlineCreate(this.state.activeEnv)}},void 0,L),(0,o.default)(_.default,{applicationsData:this.state.applicationsData,statusColorMap:v.MODEL_SERVICE_OFFLINE_STATUS_COLOR_MAP,onChange:this.changeSearchCond,searchCond:this.searchCond})),(0,o.default)(w,{},void 0,(0,o.default)(E,{},void 0,(0,o.default)(y.default,{statusColorMap:v.MODEL_SERVICE_OFFLINE_STATUS_COLOR_MAP,modelData:e,loading:this.state.listLoading,onHandleAction:this.handleAction,pagination:this.state.pagination,onPageChange:this.handlePageChange}))))},t}(c.Component);t.default=N},"./src/module/modelService/offlineInference/listPage/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/input/index.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./src/module/modelService/offlineInference/modelEnums.js"),p=a("./src/components/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=i.default.Search,g=u.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-1o3x6pz-0"})(["display:flex;.search__item-wrapper{margin-left:16px;}"]),v=u.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"sc-1o3x6pz-1"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;"],(function(e){return e.color})),y={width:"130px"},b=c.REASONING_PROCESS_STATUS.getCodeAndDescList(),x=(0,n.default)(m,{value:""},void 0,"\u5168\u90e8\u5e94\u7528"),C=(0,n.default)(m,{value:"TASKNAME"},void 0,"\u4efb\u52a1\u540d\u79f0\u6392\u5e8f"),j=(0,n.default)(m,{value:"UPDATEAT"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),S=(0,n.default)(m,{value:""},void 0,"\u5168\u90e8\u72b6\u6001"),I=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("taskName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeBusiType=n.changeSelect("applicationIds"),n.changeSortField=n.changeSelect("sortBy"),n.changeStatusField=n.changeSelect("status"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(g,{className:"search-bar"},void 0,(0,n.default)(p.RefreshButton,{onRefresh:this.props.onChange,style:{marginRight:16}}),(0,n.default)(d.default,{showSearch:!0,onChange:this.changeBusiType,style:y,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528",className:"sortType-cond",value:_.get(this.props,"searchCond.applicationIds",""),filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,x,this.props.applicationsData.map((function(e){return(0,n.default)(m,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)}))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,style:y,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:"TASKNAME",className:"search-cond",value:_.get(this.props,"searchCond.sortBy","TASKNAME")},void 0,C,j)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{allowClear:!0,onChange:this.changeStatusField,style:y,placeholder:"\u72b6\u6001",className:"search-cond",value:_.get(this.props,"searchCond.status","")},void 0,S,b.map((function(t,a){return(0,n.default)(m,{value:t.code},t.code+"-"+a,(0,n.default)(v,{color:e.props.statusColorMap[t.code]}),t.desc)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(h,{style:{width:200},allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,defaultValue:_.get(this.props,"searchCond.taskName",""),onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=I},"./src/module/modelService/offlineInference/listPage/components/ModelListTable.js":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/table/index.js")),o=m(a("./node_modules/antd/es/tooltip/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var l=m(a("./node_modules/react/index.js")),u=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(m(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),p=a("./src/routes/routeHelper.jsx"),f=a("./src/module/modelService/utils.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=u.default.div.withConfig({displayName:"ModelListTable__TableDom",componentId:"sc-7r3k82-0"})(["margin-top:5px;flex:1 1 auto;width:100%;"]),g=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.onChangePage=function(e,t){n.props.onPageChange&&n.props.onPageChange({page:e,pageSize:t})},n.state={},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.pagination,a=t.limit,r=t.offset,i=t.total,d=Number(r),l=[{dataIndex:"taskName",title:"\u540d\u79f0",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"createBy",title:"\u521b\u5efa\u4eba",width:90,ellipsis:!0},{dataIndex:"resQuotaConf",title:"\u8ba1\u7b97\u8d44\u6e90",ellipsis:!0,render:function(e){var t;return t=(0,f.serviceQuotaFormat)(e),(0,s.default)(o.default,{placement:"topLeft",title:t},void 0,t)}},{dataIndex:"createAt",title:"\u521b\u5efa\u65f6\u95f4",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||""},void 0,e||"")}},{dataIndex:"updateAt",title:"\u66f4\u65b0\u65f6\u95f4",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||""},void 0,e||"")}},{dataIndex:"status",width:120,title:"\u914d\u7f6e\u72b6\u6001",render:function(e,t){return"ERROR"===e?(0,s.default)(o.default,{placement:"topLeft",title:t.message},void 0,(0,s.default)("div",{},void 0,(0,s.default)(c.StateLabel,{source:"offlineModelService",code:e}))):(0,s.default)(c.StateLabel,{source:"offlineModelService",code:e})}},{dataIndex:"currentExecCount",width:70,title:"\u6267\u884c\u6b21\u6570",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||""},void 0,e?e+"\u6b21":"--")}},{title:"\u64cd\u4f5c",width:180,render:function(t){var a=[];return _.get(t,"mirrorId")&&_.get(t,"mirrorVersionId")&&a.push({handleName:"\u67e5\u770b\u955c\u50cf",style:{display:"inline-block"},handleAction:p.modelMirrorUrl.versionDetail("service",_.get(t,"mirrorId"),"process",_.get(t,"mirrorVersionId")),handleType:"link"}),-1!==_.indexOf(["SUCCESS","ERROR","OFFLINE"],t.status)&&_.get(t,"taskId")&&a.push({handleName:"\u67e5\u770b\u4efb\u52a1",style:{display:"inline-block"},handleAction:p.inferenceUrl.offlineView(_.get(t,"taskId"),"invocation"),handleType:"link"}),-1!==_.indexOf(["SUCCESS","ERROR","OFFLINE"],t.status)&&(a.push({handleName:"\u4fee\u6539",style:{display:"inline-block"},handleAction:p.inferenceUrl.offlineEdit(_.get(t,"taskId"),_.get(t,"deployEnv")),handleType:"link"}),a.push({handleName:"\u5220\u9664",handleAction:function(){e.props.onHandleAction("DELETE",t)}})),(0,s.default)(c.ListButtons,{buttons:a,maxShowNum:2})}}];return(0,s.default)(h,{},void 0,(0,s.default)(n.default,{bordered:!0,columns:l,dataSource:this.props.modelData,rowKey:"serviceId",pagination:!1}),(0,s.default)(c.TabPagination,{currentPage:d,pageSize:a,total:i,onChange:this.onChangePage}))},t}(l.default.Component);t.default=g},"./src/module/modelService/offlineInference/listPage/components/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelService/offlineInference/listPage/components/ModelListTable.js");Object.defineProperty(t,"ModelListTable",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}})},"./src/module/modelService/offlineInference/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.REASONING_PROCESS_STATUS=t.REASONING_PROCESS=t.SERVICE_INVOCATION_STATUS=t.ENVIRONMENT=t.REASONING_MODE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=(0,s.default)({ONLINE:[1,"\u5728\u7ebf\u63a8\u7406"],OFFLINE:[2,"\u79bb\u7ebf\u63a8\u7406"]}),i=(0,s.default)({READY:["READY","\u6570\u636e\u51c6\u5907\u9636\u6bb5"],MIRROR:["MIRROR","\u955c\u50cf\u6784\u5efa\u9636\u6bb5"],DEPLOY:["DEPLOY","\u670d\u52a1\u90e8\u7f72\u9636\u6bb5"],REGISTER:["REGISTER","\u670d\u52a1\u6ce8\u518c\u9636\u6bb5"]}),d=(0,s.default)({BUILDING:["BUILDING","\u6784\u5efa\u4e2d"],SUCCESS:["SUCCESS","\u6210\u529f"],ERROR:["ERROR","\u5931\u8d25"],OFFLINE:["OFFLINE","\u5df2\u4e0b\u7ebf"],SCALE_UPDATING:["SCALE_UPDATING","\u6269\u7f29\u5bb9\u4e2d"]}),l=(0,s.default)({PRODUCT:["PRODUCT","\u751f\u4ea7\u73af\u5883"],TEST:["TEST","\u6d4b\u8bd5\u73af\u5883"],DEV:["DEV","\u5f00\u53d1\u73af\u5883"]}),u=(0,s.default)({waiting:["waiting","\u7b49\u5f85\u4e2d"],running:["running","\u6267\u884c\u4e2d"],failure:["failure","\u6267\u884c\u5931\u8d25"],success:["success","\u5df2\u5b8c\u6210"],error:["error","\u53d1\u751f\u9519\u8bef"]});t.REASONING_MODE=r,t.ENVIRONMENT=l,t.SERVICE_INVOCATION_STATUS=u,t.REASONING_PROCESS=i,t.REASONING_PROCESS_STATUS=d},"./src/module/modelService/offlineInference/viewPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/progress/index.js")),o=w(a("./node_modules/antd/es/tooltip/index.js")),s=w(a("./node_modules/antd/es/drawer/index.js")),r=w(a("./node_modules/babel-runtime/helpers/jsx.js")),i=w(a("./node_modules/antd/es/message/index.js")),d=w(a("./node_modules/antd/es/modal/index.js")),l=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=w(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/progress/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=w(a("./node_modules/react/index.js")),f=(w(a("./node_modules/prop-types/index.js")),w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./src/components/index.js"),g=a("./src/utils/history.js"),v=w(a("./src/redux/services/offlineInference.js")),y=a("./src/routes/routeHelper.jsx"),b=w(a("./src/components/button/index.js")),x=a("./src/module/modelService/utils.js"),C=w(a("./src/redux/services/sysManager/projectManage.js")),j=a("./src/module/modelService/offlineInference/modelEnums.js"),S=a("./src/module/devCenter/apiDoc/ApiDocPage.jsx"),I=w(a("./src/module/devCenter/components/ApiDoc.jsx")),T=w(a("./src/redux/services/devCenter.js"));function w(e){return e&&e.__esModule?e:{default:e}}var E=b.default.GhostButton,D=f.default.div.withConfig({displayName:"BaseInfo__DetailBaseInfoWrapper",componentId:"sc-1225v4r-0"})(["display:flex;border:1px solid #eee;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:80%;margin-right:24px;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{min-width:160px;display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}"]),M=(0,r.default)(h.LoadingIndicator,{}),k=(0,r.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),P=(0,r.default)(m.LoadingOutlined,{className:"refresh-icon"}),L=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.handleOperation=function(e){switch(e.key){case"test":n.handleTestClick();break;case"up":n._handleAction(e,"online");break;case"down":n._handleAction(e,"offline")}},n.handleTestClick=function(){n.fetchApiJson(),n.setState({visible:!0})},n.onClose=function(){n.setState({visible:!1})},n.fetchApiJson=function(){var e=_.get(n.state.baseInfo,"taskId");e&&(n.setState({loadingApiJson:!0}),T.default.getTaskApiJsonInfo(e,n.state.baseInfo.deployEnv).then((function(e){n.setState({apiJson:e.data,loadingApiJson:!1})})).catch((function(){n.setState({loadingApiJson:!1})})))},n._handleAction=function(e,t){var a=n.state.baseInfo;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+e.text+"\u4efb\u52a1[ "+_.get(a,"taskName")+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(a,o){var s=n.state.baseInfo;v.default.operationsOnlineOrOffline(s.taskId,t).then((function(){"delete"===e.key?(i.default.success(e.text+"[ "+s.taskName+" ]\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,g.navigateTo)(y.inferenceUrl.offlineList())}),2e3)):(i.default.success(e.text+"[ "+s.taskName+" ]"+("start"===e.key?"\u6267\u884c\u6210\u529f":"\u6210\u529f")+"!"),n.props.onRefresh()),a()})).catch((function(t){o(t),i.default.error(e.text+"[ "+s.taskName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+t)}))}))}})},n.callVisible=function(e){n.setState({modalVisible:!1}),e&&n.props.onRefresh()},n.callShareVisible=function(){n.setState({modalShareVisible:!1})},n.getApplicationsName=function(e){var t=e||"--";if(e&&n.state.applicationsList&&n.state.applicationsList.length>0)for(var a=0;a<n.state.applicationsList.length;a++)if(n.state.applicationsList[a].projectApplicationId===e){t=n.state.applicationsList[a].applicationName;break}return t},n.handleRefresh=function(){n.props.onRefresh(!0)},n.getModalTitle=function(e){switch(e){case"reassign":return"\u5728\u7ebf\u6269\u7f29\u5bb9";case"upgrade":return"\u5728\u7ebf\u5347\u7ea7";case"config":return"\u89c4\u683c\u914d\u7f6e"}},n.state={baseInfoLoading:!1,refreshing:!1,optPermission:(0,x.getOptOffline)(),applicationsList:[],modalVisible:!1,modalType:"reassign"},n.items=[{key:"taskId",name:"\u4efb\u52a1ID",type:"text"},{key:"createBy",name:"\u521b\u5efa\u4eba",type:"text"},{key:"createAt",name:"\u521b\u5efa\u65f6\u95f4",type:"text"},{key:"applicationId_name",name:"\u5f52\u5c5e\u5e94\u7528",type:"text"}],n.optsBtn=[{key:"test",text:"\u8bd5\u4e00\u8bd5",action:"SELECT"},{key:"up",text:"\u4e0a\u7ebf",action:"START"},{key:"down",text:"\u4e0b\u7ebf",action:"STOP"}],n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=this;C.default.getApplicationsDropDown().then((function(t){t&&e.setState({applicationsList:t.data})})).catch((function(e){i.default.error(e.message)}))},t.getDerivedStateFromProps=function(e){return{optPermission:(0,x.getOptOffline)(_.get(e.baseInfo,"status")),baseInfo:_.get(e,"baseInfo"),baseInfoLoading:_.get(e,"baseInfoLoading"),refreshing:_.get(e,"refreshing")}},t.prototype.render=function(){var e=this,t=this.state,a=t.baseInfo,i=t.optPermission,d=t.refreshing,l=t.baseInfoLoading,u=t.loadingApiJson,c=t.apiJson;return(0,r.default)(D,{},void 0,(0,r.default)(s.default,{title:"API \u6d4b\u8bd5",width:800,onClose:this.onClose,visible:this.state.visible,drawerStyle:{overFlow:"hidden"},bodyStyle:{paddingBottom:80}},void 0,u?M:(0,r.default)(S.ApiContainer,{},void 0,(0,r.default)(I.default,{apiJson:c}))),(0,r.default)("div",{className:"left__content-wrapper"},void 0,(0,r.default)("div",{className:"left__top-wrapper"},void 0,(0,r.default)("div",{className:"left__top-line1"},void 0,(0,r.default)("div",{className:"base__info-name top__line1-section"},void 0,a.taskName),(0,r.default)("div",{className:"base__info-status top__line1-section"},void 0,(0,r.default)("span",{},void 0,"ERROR"!==a.status?(0,r.default)("span",{style:{display:"flex"}},void 0,(0,r.default)(h.StateLabel,{source:"offlineModelService",code:a.status})):(0,r.default)(o.default,{placement:"topLeft",title:a.message},void 0,(0,r.default)("div",{style:{display:"flex"}},void 0,(0,r.default)(h.StateLabel,{source:"offlineModelService",code:a.status})))))),(0,r.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",a.taskDesc," ")),(0,r.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(e){return"text"===e.type?(0,r.default)("div",{className:"item__wrapper"},e.key,(0,r.default)("span",{style:{width:"80px"}},void 0,e.name,"\uff1a"),(0,r.default)("span",{},void 0,"gpu"===e.key?_.get(a,"usageRate.gpuMemory")||_.get(a,"usageRate.gpuCard",0):_.get(a,e.key))):"resQuotaType"===e.type?(0,r.default)("div",{className:"item__wrapper"},e.key,(0,r.default)("span",{style:{width:"80px",whiteSpace:"nowrap"}},void 0,e.name,"\uff1a"),(0,r.default)("span",{},void 0,j.ENVIRONMENT.getDescFromValue(a[e.key]))):(0,r.default)("div",{className:"item__wrapper"},e.key,(0,r.default)("span",{style:{width:"80px",whiteSpace:"nowrap",flexShrink:0}},void 0,e.name,"\uff1a"),(0,r.default)("span",{style:{marginRight:20,width:"25px"}},void 0,_.isNumber(_.get(a,e.key))?_.get(a,e.key):0,"%"),(0,r.default)("div",{className:"item__progress-wrapper"},void 0,(0,r.default)(n.default,{percent:_.get(a,e.key)||0,showInfo:!1})))})))),(0,r.default)("div",{className:"right__content-wrapper"},void 0,k,d&&l?P:(0,r.default)(o.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,r.default)(m.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})),(0,r.default)("div",{className:"right__bottom-wrapper"},void 0,this.optsBtn.map((function(t){return i[t.key]&&(0,r.default)(E,{action:_.upperCase(t.action,""),width:"20",txt:t.text,onClick:function(){return e.handleOperation(t)},className:"fn-left opt-btn"},t.key)})))))},t}(p.default.Component);t.default=L},"./src/module/modelService/offlineInference/viewPage/ServiceConfigInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/col/index.js")),o=v(a("./node_modules/babel-runtime/helpers/extends.js")),s=v(a("./node_modules/antd/es/row/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js")),u="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\offlineInference\\viewPage\\ServiceConfigInfo.jsx";a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var c=v(a("./node_modules/react/index.js")),p=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=a("./src/components/index.js"),h=a("./src/module/modelBase/modelEnums.js"),g=a("./src/module/modelService/components/AvailableQuota.jsx");function v(e){return e&&e.__esModule?e:{default:e}}var y=f.Form.Item,b=p.default.div.withConfig({displayName:"ServiceConfigInfo__DetailInfoWrapper",componentId:"vbxrz9-0"})(["display:flex;flex-wrap:wrap;"]),x={MODEL:"\u6a21\u578b\u6587\u4ef6",CODE:"\u670d\u52a1\u4ee3\u7801",IMPORT:"\u955c\u50cf\u5bfc\u5165",INIT:"\u5185\u7f6e"},C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.getRunEnvParamByKey=function(e,t){if(e){if("AI_JOB_DATA_PATH"===t||"AI_JOB_LOG_PATH"===t||"AI_JOB_WORK_PATH"===t){var a=_.findIndex(e,(function(e){return e.envName===t}));return _.get(e[a],"envValue","--")}for(var n="",o=0;o<e.length;o++)"AI_JOB_DATA_PATH"!==e[o].envName&&"AI_JOB_LOG_PATH"!==e[o].envName&&"AI_JOB_WORK_PATH"!==e[o].envName&&(n+=e[o].envName+"="+e[o].envValue+"\u3001");return""===n?"--":1===n.split("\u3001").length?n:n.substring(0,n.length-1)}return"--"},n}return(0,l.default)(t,e),t.prototype.render=function(){var e={layout:"inline",labelAlign:"left"},t={marginBottom:0},a={width:"50%"},i=this.props.baseInfo,d=_.get(i,"resQuotaConf",{}),l=_.get(i,"codePackageInfo.resourceVersions",[])||[],p=_.get(_.find(l,{versionId:_.get(i,"artifactVersionId")}),"versionName");return(0,r.default)(b,{},void 0,(0,r.default)(m.ModelConfigPanel,{title:"\u955c\u50cf\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:71}}),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u955c\u50cf\u540d\u79f0",style:t},void 0,_.get(i,"mirrorInfo.mirrorShowName")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u7248\u672c",style:t},void 0,_.get(i,"mirrorInfo.versionShowName")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u6765\u6e90",style:t},void 0,x[_.get(i,"mirrorInfo.versionSourceType")]||"--")))),(0,r.default)(m.ModelConfigPanel,{title:"\u542f\u52a8\u53c2\u6570",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:90}}),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(y,{label:"\u73af\u5883\u53d8\u91cf",style:t},void 0,this.getRunEnvParamByKey(i.runEnvParam,null)))),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(y,{label:"\u65e5\u5fd7\u8def\u5f84",style:t},void 0,this.getRunEnvParamByKey(i.runEnvParam,"AI_JOB_LOG_PATH"))),(0,r.default)(n.default,{},void 0,(0,r.default)(y,{style:t,label:"\u6570\u636e\u76ee\u5f55"},void 0,this.getRunEnvParamByKey(i.runEnvParam,"AI_JOB_DATA_PATH")))),(0,r.default)(s.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(y,{style:t,label:"\u5de5\u4f5c\u76ee\u5f55"},void 0,this.getRunEnvParamByKey(i.runEnvParam,"AI_JOB_WORK_PATH")))))),"MODEL"===i.deployArtifact&&(0,r.default)(m.ModelConfigPanel,{title:"\u6a21\u578b\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:121}}),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u6a21\u578bID",style:t},void 0,_.get(i,"modelInfo.modelInfo.modelId")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u6a21\u578b\u540d\u79f0",style:t},void 0,_.get(i,"modelInfo.modelInfo.modelName")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u7248\u672c",style:t},void 0,_.get(i,"modelInfo.versionInfo.versionName")||"--")),(0,r.default)(y,{label:"\u6765\u6e90",style:t},void 0,h.PUBLISH_FROM.getDescFromValue(_.get(i,"modelInfo.versionInfo.publishFrom"))||"--"))),"CODE"===i.deployArtifact&&(0,r.default)(m.ModelConfigPanel,{title:"\u4ee3\u7801\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:145}}),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u670d\u52a1\u4ee3\u7801\u540d\u79f0",style:t},void 0,_.get(i,"codePackageInfo.resourceShowName")||"--"),(0,r.default)(y,{label:"\u670d\u52a1\u4ee3\u7801\u7248\u672c",style:t},void 0,_.get(i,"codePackageInfo.codeVersionName")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u670d\u52a1\u4ee3\u7801\u7248\u672c",style:t},void 0,p||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u57fa\u7840\u955c\u50cf\u540d\u79f0",style:t},void 0,_.get(i,"baseMirrorInfo.mirrorShowName")||"--"),(0,r.default)(y,{label:"\u57fa\u7840\u955c\u50cf\u7248\u672c",style:t},void 0,_.get(i,"baseMirrorInfo.baseVersionName")||"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"\u57fa\u7840\u955c\u50cf\u7248\u672c",style:t},void 0,_.get(i,"baseMirrorInfo.versionShowName")||"--")))),(0,r.default)(m.ModelConfigPanel,{title:"\u8d44\u6e90\u914d\u7f6e",style:a},void 0,c.default.createElement(f.Form,(0,o.default)({},e,{__source:{fileName:u,lineNumber:176}}),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{label:"CPU",style:t},void 0,d.cpu||0)),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{style:t,label:"\u5185\u5b58"},void 0,d.memory)),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{style:t,label:"gpu"},void 0,(0,g.renderGpu)(d.gpu))),(0,r.default)(s.default,{},void 0,(0,r.default)(y,{style:t,label:"\u5b9e\u4f8b\u4e2a\u6570"},void 0,_.get(i,"replicaCnt","--"))))))},t}(c.default.Component);C.defaultProps={baseInfo:{}},t.default=C},"./src/module/modelService/offlineInference/viewPage/ServiceInvocationDetail.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/babel-runtime/helpers/extends.js")),o=x(a("./node_modules/antd/es/col/index.js")),s=x(a("./node_modules/antd/es/row/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/antd/es/message/index.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=x(a("./node_modules/dayjs/dayjs.min.js")),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./src/components/index.js"),g=x(a("./node_modules/react-json-view/dist/main.js")),v=a("./src/module/modelService/offlineInference/modelEnums.js"),y=a("./src/utils/commonUtil.js"),b=x(a("./src/redux/services/offlineInference.js"));function x(e){return e&&e.__esModule?e:{default:e}}var C=m.Form.Item,j=p.default.div.withConfig({displayName:"ServiceInvocationDetail__DetailInfoWrapper",componentId:"sc-155ln5n-0"})(["display:flex;flex-direction:column;.invocation-info{display:flex;&.logs-wrapper{flex-direction:column;}}.ant-collapse-content > .ant-collapse-content-box{padding:4px;}.ant-collapse-content-box > ul > li{padding-bottom:0.25em;}.image-text{width:500px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:inline-block;height:14px;font-size:12px;}"]),S=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.exportOpen=function(){b.default.downloadJobLogs(n.props.taskId,n.props.jobId).then((function(e){if("0001"===e.code)i.default.info(e.message);else if(window.navigator&&window.navigator.msSaveOrOpenBlob){var t=new Blob([e.data],{type:"application/vnd.ms-excel"});window.navigator.msSaveOrOpenBlob(t,(new Date).getTime()+".zip")}else{var a=new Blob([e.data]),n=document.createElement("a"),o=window.URL.createObjectURL(a);n.href=o,n.download=(new Date).getTime()+".zip",document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(o)}})).catch((function(e){console.error(e.message)}))},n.fetchData=function(){b.default.getJobInfoById(n.props.jobId,n.props.deployEnv).then((function(e){var t=e.data||{};n.setState({invocationInfo:t})}))},n.state={invocationInfo:{}},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.props.jobId&&this.fetchData()},t.prototype.componentDidUpdate=function(e){this.props.jobId&&this.props.jobId!==e.jobId&&this.fetchData()},t.prototype.render=function(){var e={marginBottom:0},t=this.state.invocationInfo,a=(0,y.isJsonString)(_.get(t,"runParams"))?JSON.parse(_.get(t,"runParams")):null,i=this.props;i.taskId,i.jobId;return"5ffd27c3e4b0696817d28b16","5ffd3806e4b0f44362dbd1d8",(0,r.default)(j,{},void 0,(0,r.default)(h.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,c.default.createElement(m.Form,(0,n.default)({},{layout:"inline",labelAlign:"left"},{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\offlineInference\\viewPage\\ServiceInvocationDetail.jsx",lineNumber:118}}),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:10},void 0,(0,r.default)(C,{label:"\u72b6\u6001",style:e},void 0,(0,r.default)("div",{style:{marginTop:10}},void 0,(0,r.default)(h.StateLabel,{source:"offlineInvocation",code:t.runStatus})))),(0,r.default)(o.default,{span:10},void 0,(0,r.default)(C,{label:"\u8017\u65f6",style:e},void 0,t.duration?""+t.duration:"--"))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:10},void 0,(0,r.default)(C,{label:"\u8bf7\u6c42\u65f6\u95f4",style:e},void 0,t.requestAt?(0,f.default)(t.requestAt).format("YYYY-MM-DD HH:mm:ss"):"--")),(0,r.default)(C,{label:"\u6267\u884c\u4eba",style:e},void 0,_.get(t,"triggerBy","--"))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:10},void 0,(0,r.default)(C,{label:"\u6267\u884c\u5f00\u59cb\u65f6\u95f4",style:e},void 0,t.runBeginAt?(0,f.default)(t.runBeginAt).format("YYYY-MM-DD HH:mm:ss"):"--")),(0,r.default)(C,{label:"\u6267\u884c\u7ed3\u675f\u65f6\u95f4",style:e},void 0,t.runEndAt?(0,f.default)(t.runEndAt).format("YYYY-MM-DD HH:mm:ss"):"--")),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:10},void 0,(0,r.default)(C,{label:"\u8fd0\u884c\u73af\u5883",style:e},void 0,v.ENVIRONMENT.getDescFromValue(_.get(t,"runEnv"))))))),(0,r.default)(h.ModelConfigPanel,{title:"\u6267\u884c\u53c2\u6570"},void 0,(0,r.default)("div",{className:"invocation-info",style:{width:"100%"}},void 0,(0,r.default)(g.default,{src:a}))))},t}(c.default.Component);t.default=S},"./src/module/modelService/offlineInference/viewPage/ServiceInvocations.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/table/index.js")),o=x(a("./node_modules/antd/es/drawer/index.js")),s=x(a("./node_modules/antd/es/tooltip/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/babel-runtime/helpers/extends.js")),d=x(a("./node_modules/antd/es/message/index.js")),l=x(a("./node_modules/antd/es/modal/index.js")),u=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=x(a("./node_modules/react/index.js")),m=x(a("./node_modules/dayjs/dayjs.min.js")),h=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),g=a("./src/components/index.js"),v=x(a("./src/module/modelService/offlineInference/viewPage/ServiceInvocationDetail.jsx")),y=x(a("./src/module/modelService/offlineInference/viewPage/components/SearchBar.jsx")),b=x(a("./src/redux/services/offlineInference.js"));function x(e){return e&&e.__esModule?e:{default:e}}var C=h.default.div.withConfig({displayName:"ServiceInvocations__ManagePageDom",componentId:"sc-12twqd2-0"})(["display:flex;flex-direction:column;flex:1 1 auto;"]),j=h.default.div.withConfig({displayName:"ServiceInvocations__TabsDiv",componentId:"sc-12twqd2-1"})(["width:100%;position:relative;background-color:#ffff;padding:20px;padding-top:0;margin-bottom:20px;"]),S=h.default.div.withConfig({displayName:"ServiceInvocations__PageHeader",componentId:"sc-12twqd2-2"})(["width:100%;display:flex;.search__item-wrapper{display:flex;margin-right:16px;height:32px;line-height:32px;margin-left:0;}.item-cond{width:120px;}"]),I=h.default.div.withConfig({displayName:"ServiceInvocations__PageBody",componentId:"sc-12twqd2-3"})(["display:table;min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),T=h.default.div.withConfig({displayName:"ServiceInvocations__ModelsBox",componentId:"sc-12twqd2-4"})(["margin-top:10px;flex:1 1 auto;"]),w=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.cancel=function(e,t){var a={cancel:"\u53d6\u6d88"};l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a[t]+"\u6b64\u4efb\u52a1?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(o,s){b.default.cancelJobByWaiting(e,n.props.deployEnv).then((function(){d.default.success(a[t]+"\u6210\u529f!"),n.fetchData(),o()})).catch((function(e){s(e),d.default.error(a[t]+"\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+e)}))}))}})},n.startOrStop=function(e,t){var a={start:"\u542f\u52a8",stop:"\u505c\u6b62"};l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a[t]+"\u6b64\u4efb\u52a1?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(o,s){b.default.jobStartOrStop(n.props.taskId,e,t,n.props.deployEnv).then((function(){d.default.success(a[t]+"\u6210\u529f!"),n.fetchData(),o()})).catch((function(e){s(e),d.default.error(a[t]+"\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+e)}))}))}})},n.fetchData=function(){n.setState({listLoading:!0}),b.default.getJobList(n.searchCond).then((function(e){n.setState({invocationInfo:e.data,listLoading:!1})})).catch((function(){n.setState({listLoading:!1})})),b.default.getJobStats(n.searchCond.taskId,n.searchCond.deployEnv).then((function(e){n.setState({executeCount:_.get(e,"data[0].executeCount",0),executeErrorCount:_.get(e,"data[0].executeErrorCount",0),listLoading:!1})})).catch((function(){n.setState({listLoading:!1})}))},n.changeSearchCond=function(e){n.searchCond=(0,i.default)({},n.searchCond,e),n.fetchData()},n.viewDetail=function(e){n.setState({visible:!0,currentLogId:e})},n.onClose=function(){n.setState({visible:!1})},n.state={invocationInfo:[],listLoading:!1,currentLogId:"",executeCount:0,executeErrorCount:0,visible:!1},n.searchCond={taskId:a.taskId,deployEnv:a.deployEnv,createAt:"",updateAt:"",status:"",limit:99,offset:1},n.columns=[{title:"\u4efb\u52a1ID",width:70,dataIndex:"jobId",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8bf7\u6c42\u65f6\u95f4",dataIndex:"requestAt",width:100,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u6267\u884c\u5f00\u59cb\u65f6\u95f4",dataIndex:"runBeginAt",width:130,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u6267\u884c\u7ed3\u675f\u65f6\u95f4",dataIndex:"runEndAt",width:130,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u8017\u65f6",width:85,ellipsis:!0,dataIndex:"duration",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u4efb\u52a1\u72b6\u6001",width:110,dataIndex:"runStatus",render:function(e){return(0,r.default)(g.StateLabel,{source:"offlineInvocation",code:e})}},{title:"\u4efb\u52a1\u5b50\u72b6\u6001",width:120,dataIndex:"runStatusCode",render:function(e,t){return(0,r.default)(s.default,{placement:"topLeft",title:t.runMsg},void 0,(0,r.default)("div",{},void 0,(0,r.default)(g.StateLabel,{source:"offlineSonInvocation",code:e})))}},{title:"\u64cd\u4f5c",width:150,render:function(e){var t=[];return t.push({handleName:"\u67e5\u770b\u8be6\u60c5",style:{display:"inline-block"},handleAction:function(){n.viewDetail(e.jobId)}}),-1!==_.indexOf(["failure","error"],e.runStatus)&&t.push({handleName:"\u91cd\u65b0\u6267\u884c",handleAction:function(){n.startOrStop(e.jobId,"start")}}),-1!==_.indexOf(["running"],e.runStatus)&&t.push({handleName:"\u505c\u6b62",handleAction:function(){n.startOrStop(e.jobId,"stop")}}),-1!==_.indexOf(["waiting"],e.runStatus)&&t.push({handleName:"\u53d6\u6d88",handleAction:function(){n.cancel(e.jobId,"cancel")}}),(0,r.default)(g.ListButtons,{buttons:t,maxShowNum:2})}}],n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.invocationInfo,a=e.listLoading,s=e.executeCount,i=e.executeErrorCount;return(0,r.default)(C,{},void 0,(0,r.default)(o.default,{title:"\u67e5\u770b\u8be6\u60c5",width:800,onClose:this.onClose,visible:this.state.visible,bodyStyle:{paddingBottom:80}},void 0,(0,r.default)(v.default,{deployEnv:this.props.deployEnv,taskId:this.props.taskId,jobId:this.state.currentLogId})),(0,r.default)(j,{},void 0,(0,r.default)(S,{},void 0,(0,r.default)("div",{style:{width:470,display:"flex",paddingTop:20}},void 0,(0,r.default)("div",{},void 0,(0,r.default)("p",{},void 0,"\u53d1\u751f\u8bf7\u6c42\u6b21\u6570\uff1a",s)),(0,r.default)("div",{style:{marginLeft:32}},void 0,(0,r.default)("p",{},void 0,"\u53d1\u751f\u9519\u8bef\u6b21\u6570\uff1a",i))),(0,r.default)(y.default,{searchCond:this.searchCond,onChange:this.changeSearchCond})),(0,r.default)(I,{},void 0,(0,r.default)(T,{},void 0,(0,r.default)(n.default,{dataSource:t,rowKey:"jobId",bordered:!0,columns:this.columns,loading:a})))))},t}(f.default.Component);t.default=w},"./src/module/modelService/offlineInference/viewPage/ServiceProcess.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/table/index.js")),o=v(a("./node_modules/antd/es/tooltip/index.js")),s=v(a("./node_modules/babel-runtime/helpers/jsx.js")),r=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=v(a("./node_modules/babel-runtime/helpers/inherits.js")),l=v(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js");var u=a("./node_modules/react/index.js"),c=(v(u),v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./src/redux/services/modelService.js"),f=v(a("./src/redux/services/offlineInference.js")),m=v(a("./src/module/modelService/detailPage/components/ContainerEvent.jsx")),h=a("./src/utils/authPermit.js"),g=a("./src/components/index.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=c.default.div.withConfig({displayName:"ServiceProcess__ProcessWrapper",componentId:"sc-1wy1daz-0"})([""]),b=l.default.TabPane,x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fetchData=function(){if("process"===n.state.activeTab){if(!n.props.taskId)return;n.setState({loading:!0}),(0,p.getServiceEvent)(n.props.serviceLogType,n.props.taskId).then((function(e){return n.setState({processData:e.data,loading:!1})})).catch((function(){return n.setState({loading:!1})}))}else f.default.offlineEventByTaskId(localStorage.getItem("AI.currentContext"),n.props.taskId).then((function(e){return n.setState({processData:e.data,loading:!1})})).catch((function(){return n.setState({loading:!1})}))},n.handleChange=function(e,t,a){n.setState({filteredInfo:t,sortedInfo:a})},n.handleTabChange=function(e){if(n.setState({activeTab:e}),"process"===e){if(!n.props.taskId)return;n.setState({loading:!0}),(0,p.getServiceEvent)(n.props.serviceLogType,n.props.taskId).then((function(e){return n.setState({processData:e.data,loading:!1})})).catch((function(){return n.setState({loading:!1})}))}else{var t=(0,h.getCurrentContext)().id;f.default.offlineEventByTaskId(t,n.props.taskId).then((function(e){var t=(_.get(e.data,"[0].events",[])||[]).reduce((function(e,t){return e.concat(_.get(t,"events",[])||[])}),[]);n.setState({processData:t,loading:!1})})).catch((function(){return n.setState({loading:!1})}))}},n.state={modalVisible:!1,loading:!1,processData:[],filteredInfo:null,sortedInfo:{columnKey:"operateTime",order:"descend"},activeTab:"process"},n}return(0,d.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.refreshing&&e.refreshing!==this.props.refreshing&&this.fetchData(),e.taskId!==this.props.taskId&&this.fetchData()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.sortedInfo,a=e.filteredInfo,r=e.processData,i=e.loading;t=t||{};var d=[{title:"\u4e8b\u4ef6\u540d\u79f0",dataIndex:"eventName",key:"eventName",filteredValue:(a=a||{}).name||null,onFilter:function(e,t){return t.name.includes(e)},ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c\u8005",dataIndex:"operator",key:"operator",filteredValue:a.name||null,onFilter:function(e,t){return t.name.includes(e)},ellipsis:!0},{title:"\u64cd\u4f5c\u524d",dataIndex:"oldMessage",key:"oldMessage",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u64cd\u4f5c\u540e",dataIndex:"message",key:"message",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u64cd\u4f5c\u7ed3\u679c",dataIndex:"status",key:"status",ellipsis:!0,render:function(e){return(0,s.default)(g.StateLabel,{source:"processLogs",code:e})}},{title:"\u6267\u884c\u65f6\u957f",dataIndex:"duration",key:"duration",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e||0},void 0,e||0)}},{title:"\u5f00\u59cb\u65f6\u95f4",dataIndex:"operateTime",key:"operateTime",sorter:function(e,t){return new Date(e.operateTime).getTime()-new Date(t.operateTime).getTime()},sortOrder:"operateTime"===t.columnKey&&t.order,ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7ed3\u675f\u65f6\u95f4",dataIndex:"endTime",key:"endTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}}];return(0,s.default)(y,{},void 0,(0,s.default)(l.default,{defaultActiveKey:this.state.activeTab,onChange:this.handleTabChange},void 0,(0,s.default)(b,{tab:"\u4e3b\u52a8\u4e8b\u4ef6"},"process",(0,s.default)(n.default,{rowKey:"logId",bordered:!0,loading:i,columns:d,dataSource:r,onChange:this.handleChange})),(0,s.default)(b,{tab:"event\u4e8b\u4ef6"},"event",(0,s.default)(m.default,{data:r}))))},t}(u.Component);t.default=x},"./src/module/modelService/offlineInference/viewPage/TaskParams.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/extends.js")),o=m(a("./node_modules/antd/es/row/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/row/style/index.js");var l=m(a("./node_modules/react/index.js")),u=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var p=a("./src/components/index.js"),f=m(a("./src/module/devCenter/apiDoc/ApiDocPage.jsx"));function m(e){return e&&e.__esModule?e:{default:e}}var h=c.Form.Item,g=u.default.div.withConfig({displayName:"TaskParams__DetailInfoWrapper",componentId:"qol10l-0"})(["position:relative;"]),v=function(e){function t(a){return(0,r.default)(this,t),(0,i.default)(this,e.call(this,a))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.taskId,a=e.baseInfo,r=_.get(a,"deployEnv","TEST"),i=_.get(a,"runCommand");return(0,s.default)(g,{},void 0,(0,s.default)(p.ModelConfigPanel,{title:"\u4efb\u52a1\u6267\u884c\u547d\u4ee4"},void 0,l.default.createElement(c.Form,(0,n.default)({},{layout:"inline",labelAlign:"left"},{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\offlineInference\\viewPage\\TaskParams.jsx",lineNumber:32}}),(0,s.default)(o.default,{},void 0,(0,s.default)(h,{label:"\u6267\u884c\u547d\u4ee4"},void 0,i||"--")))),(0,s.default)(p.ModelConfigPanel,{title:"\u4efb\u52a1\u6267\u884c\u53c2\u6570"},void 0,(0,s.default)(f.default,{noImageCol:!0,noCacheCol:!0,hideAnchor:!0,serviceId:t,showTest:!1,profile:r})))},t}(l.default.Component);v.defaultProps={baseInfo:{}},t.default=v},"./src/module/modelService/offlineInference/viewPage/ViewOfflinePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/babel-runtime/helpers/jsx.js")),o=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=x(a("./node_modules/babel-runtime/helpers/inherits.js")),i=x(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=x(a("./node_modules/react/index.js")),l=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/utils/history.js"),p=x(a("./src/module/modelService/offlineInference/viewPage/BaseInfo.jsx")),f=x(a("./src/module/modelService/offlineInference/viewPage/ServiceConfigInfo.jsx")),m=a("./src/components/index.js"),h=x(a("./src/module/modelService/offlineInference/viewPage/ServiceProcess.jsx")),g=x(a("./src/module/modelService/offlineInference/viewPage/ServiceInvocations.jsx")),v=a("./src/routes/routeHelper.jsx"),y=x(a("./src/redux/services/offlineInference.js")),b=x(a("./src/module/modelService/offlineInference/viewPage/TaskParams.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=i.default.TabPane,j=l.default.div.withConfig({displayName:"ViewOfflinePage__ModelServiceDetailWrapper",componentId:"sc-168cood-0"})(["width:100%;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-nav-scroll{display:flex;}.ant-tabs-tab{font-size:16px;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-active{min-height:400px;}}.service__tabs-wrapper{margin-top:20px;}.ant-tabs-content{margin-top:24px;}"]),S=l.default.div.withConfig({displayName:"ViewOfflinePage__TabContent",componentId:"sc-168cood-1"})(["background:#fff;min-height:500px;width:100%;"]),I=(0,n.default)(m.LoadingIndicator,{}),T=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){n.fetBasicInfo()},n.fetBasicInfo=function(){n.setState({baseInfoLoading:!0}),y.default.getOfflineInfo(n.state.taskId).then((function(e){n.setState({baseInfo:e.data,refreshing:!1,baseInfoLoading:!1})})).catch((function(){n.setState({refreshing:!1,baseInfoLoading:!1})}))},n.onChange=function(e){var t=n.state.baseInfo;(0,c.navigateTo)({pathname:v.inferenceUrl.offlineView(t.taskId,e),state:{unScrollToTop:!0}}),n.setState({activeTab:e})},n.handleRefresh=function(e){e&&n.setState({refreshing:!0}),n.fetchData()},n.state={baseInfoLoading:!1,refreshing:!1,taskId:_.get(a.match.params,"taskId",""),activeTab:_.get(a.match.params,"activeTab","invocation"),baseInfo:null},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.activeTab,a=e.baseInfo,o=e.baseInfoLoading,s=e.refreshing;return(0,n.default)(j,{},void 0,o&&I,!o&&a&&(0,n.default)("div",{},void 0,(0,n.default)(p.default,{baseInfo:a,baseInfoLoading:o,refreshing:s,onRefresh:this.handleRefresh}),(0,n.default)("div",{className:"service__tabs-wrapper"},void 0,(0,n.default)(i.default,{onChange:this.onChange,activeKey:t,className:"modelApply-tabs"},void 0,(0,n.default)(C,{tab:"\u4efb\u52a1\u6267\u884c"},"invocation",(0,n.default)(S,{},void 0,"invocation"===t&&(0,n.default)(g.default,{deployEnv:a.deployEnv,taskId:a.taskId,refreshing:s}))),(0,n.default)(C,{tab:"\u914d\u7f6e\u4fe1\u606f"},"config",(0,n.default)(S,{},void 0,"config"===t&&(0,n.default)(f.default,{baseInfo:a}))),(0,n.default)(C,{tab:"\u4e3b\u8981\u4e8b\u4ef6"},"process",(0,n.default)(S,{},void 0,"process"===t&&(0,n.default)(h.default,{serviceLogType:"offline-reasoning",taskId:_.get(a,"taskId"),refreshing:s}))),(0,n.default)(C,{tab:"\u4efb\u52a1\u53c2\u6570"},"io",(0,n.default)(S,{},void 0,"io"===t&&(0,n.default)(b.default,{taskId:_.get(a,"taskId"),baseInfo:a})))))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(T)},"./src/module/modelService/offlineInference/viewPage/components/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/date-picker/index.js")),d=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/date-picker/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=m(a("./node_modules/react/index.js")),u=m(a("./node_modules/dayjs/dayjs.min.js")),c=(m(a("./node_modules/prop-types/index.js")),a("./src/module/modelService/offlineInference/modelEnums.js")),p=a("./src/styles/GlobalStyle.js"),f=m(a("./node_modules/moment/moment.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=d.default.Option,g=i.default.RangePicker,v=c.SERVICE_INVOCATION_STATUS.getValueAndDescList(),_=(0,n.default)(h,{value:""},void 0,"\u5168\u90e8\u72b6\u6001"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSearchCond=function(e,t){var a={};"dates"===e?(a.createAt=t[0]?(0,u.default)(t[0]).format("YYYY-MM-DD HH:mm:ss"):void 0,a.updateAt=t[1]?(0,u.default)(t[1]).format("YYYY-MM-DD HH:mm:ss"):void 0):a[e]=t,n.props.onChange(a)},n.disabledDate=function(e){return e-1>(0,f.default)().endOf("day")},n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(p.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,"\u65f6\u95f4\u8303\u56f4\uff1a",(0,n.default)(g,{style:{width:240},onOk:function(t){return e.changeSearchCond("dates",t)},onChange:function(t){return 0===t.length?e.changeSearchCond("dates",t):null},disabledDate:this.disabledDate,showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})),(0,n.default)("span",{},void 0,(0,n.default)(d.default,{defaultValue:this.props.searchCond.status,onChange:function(t){return e.changeSearchCond("status",t)},placeholder:"\u72b6\u6001",className:"item-cond",style:{width:100}},void 0,_,v.map((function(e){return(0,n.default)(h,{value:e.code},e.code,e.desc)})))))},t}(l.default.Component);t.default=y},"./src/module/modelService/publishPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.BseInfoDom=void 0;var n=x(a("./node_modules/antd/es/row/index.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/babel-runtime/regenerator/index.js")),r=x(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),i=x(a("./node_modules/babel-runtime/helpers/extends.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js")),c=x(a("./node_modules/antd/es/input/index.js")),p=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=x(a("./node_modules/react/index.js")),m=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./node_modules/react-redux/es/index.js"),v=a("./src/utils/commonUtil.js"),y=a("./src/components/index.js"),b=a("./src/module/modelService/utils.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=t.BseInfoDom=m.default.div.withConfig({displayName:"BaseInfo__BseInfoDom",componentId:"wmw8h0-0"})([".ant-row{display:flex;}.ant-legacy-form-item-label{width:70px;text-align:right;}"]),j={width:"100%",minWidth:"550px"},S={marginTop:"16px"},I=p.default.Option,T=h.Form.Item,w=c.default.TextArea,E=function(e){function t(a){var n=this;(0,d.default)(this,t);var o=(0,l.default)(this,e.call(this,a));o.validateFun=function(){o.isSubmit=!0;var e=!1;return o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),{validate:e,moduleData:o.state.moduleData}},o.handleChangeModuleInfo=function(e,t,a){var n=(0,i.default)({},o.state.moduleData);if(n[e]=t,o.setState({moduleData:n}),"serviceBusinessTpe"===e&&t){if("reset"!==o.props.actionType){var s=a?a.props.label:_.get(_.find(o.props.applicationsList,{projectApplicationId:t}),"applicationName"),r=(0,v.createModuleNameByApply)(s,"onInference");n.serviceName=r,o.props.form.setFieldsValue({serviceName:r})}o.props.onApplicationChange&&o.props.onApplicationChange(t,!1)}"serviceName"===e&&(o.isSubmit=!1)},o.handleNameValidator=function(){var e=(0,r.default)(s.default.mark((function e(t,a,r){var i;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a&&_.trim(a)){e.next=3;break}return r(""),e.abrupt("return");case 3:if(!o.isSubmit){e.next=7;break}e.t0=o.state.nameIsRepeat,e.next=10;break;case 7:return e.next=9,(0,b.checkNameIsRepeat)(a,o.props.serviceId,"serviceName",o.props.deployEnv);case 9:e.t0=e.sent;case 10:i=e.t0,o.setState({nameIsRepeat:i}),i&&r("\u670d\u52a1\u540d\u79f0\u91cd\u590d\uff01"),r();case 14:case"end":return e.stop()}}),e,n)})));return function(t,a,n){return e.apply(this,arguments)}}(),o.state={applicationsList:[],deployShowNameRepeat:!1,moduleData:a.moduleData},o.isSubmit=!1;var u=o.props.setValidateFunc;return _.isFunction(u)&&u("baseInfo",o.validateFun),o}return(0,u.default)(t,e),t.prototype.componentDidUpdate=function(e){var t=this,a=(0,i.default)({},this.props.moduleData);_.isEqual(e.moduleData,this.props.moduleData)||(this.props.form.setFieldsValue({moduleData:a}),this.setState({moduleData:a},(function(){t.props.form.validateFields((function(){}))}))),this.props.applicationId!==e.applicationId&&Array.isArray(this.props.applicationsList)&&this.props.applicationsList.length>0&&this.handleChangeModuleInfo("serviceBusinessTpe",this.props.applicationId),!_.isEqual(e.applicationsList,this.props.applicationsList)&&this.props.applicationId&&this.handleChangeModuleInfo("serviceBusinessTpe",this.props.applicationId)},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.applicationsList,s=this.state.moduleData;return(0,o.default)(C,{},void 0,(0,o.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,o.default)(h.Form,{layout:"inline"},void 0,(0,o.default)(n.default,{},void 0,(0,o.default)(T,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,t("serviceBusinessTpe",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:s.serviceBusinessTpe||void 0})((0,o.default)(p.default,{disabled:Boolean(this.props.applicationId&&this.props.disabledApplication||"reset"===this.props.actionType),placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e",optionFilterProp:"children",onChange:function(t,a){return e.handleChangeModuleInfo("serviceBusinessTpe",t,a)},style:{width:"350px"}},void 0,Array.isArray(a)&&a.map((function(e){return(0,o.default)(I,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)})))))),(0,o.default)(n.default,{style:S},void 0,(0,o.default)(T,{label:"\u540d\u79f0",className:"sm-label"},void 0,t("serviceName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u540d\u79f0"},{validator:this.handleNameValidator},{max:50,message:"\u670d\u52a1\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc750\u4e2a\u5b57\u7b26"}],validateTrigger:"onBlur",initialValue:s.serviceName})(f.default.createElement(c.default,{style:{width:"350px"},ref:this.checkAddressRef,placeholder:"\u8bf7\u8f93\u5165\u670d\u52a1\u540d\u79f0",addonBefore:this.state.serviceAddress,onChange:function(t){return e.handleChangeModuleInfo("serviceName",t.target.value)},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\publishPage\\BaseInfo.jsx",lineNumber:163}}))),(0,o.default)(T,{label:"\u7248\u672c\u53f7",className:"sm-label"},void 0,(0,o.default)("span",{},void 0,s.versionNickName||"v1"))),(0,o.default)(n.default,{style:S},void 0,(0,o.default)(T,{label:"\u63cf\u8ff0",className:"sm-label"},void 0,t("serviceDesc",{rules:[{max:100,message:"\u63cf\u8ff0\u5185\u5bb9\u4e0d\u5f97\u8d85\u8fc7100\u4e2a\u5b57\u7b26"}],initialValue:s.serviceDesc})((0,o.default)(w,{autoSize:{minRows:3,maxRows:5},style:j,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onChange:function(t){return e.handleChangeModuleInfo("serviceDesc",t.target.value)}})))))))},t}(f.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(h.Form.create()(E))},"./src/module/modelService/publishPage/HealthCheckConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.BseInfoDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./src/components/index.js"),u=c(a("./src/module/modelService/createPage/HealthCheck.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var p=t.BseInfoDom=d.default.div.withConfig({displayName:"HealthCheckConfig__BseInfoDom",componentId:"sc-185j7zh-0"})([".ant-row{display:flex;}.ant-legacy-form-item-label{width:70px;text-align:right;}"]),f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.componentDidMount=function(){},n.setHealthCheckValidateFunc=function(e,t){n.healthCheckFuncs[e]=t},n.validateFun=function(){var e=!0,t={};return Object.keys(n.healthCheckFuncs).map((function(a){var o=n.healthCheckFuncs[a];if(_.isFunction(o)){var s=o.call();if(e&&(e=s.validate,"readinessHealthCheck"===a||"livenessHealthCheck"===a)){var r,i="readinessHealthCheck"===a?"deploymentHealthcheckReadiness":"deploymentHealthcheckLiveness";t=_.assign(t,((r={})[i]=s.moduleData?JSON.stringify(s.moduleData):"",r))}}})),e||n.setState({panelCollapse:!0}),{validate:e,moduleData:t}},n.state={panelCollapse:!0};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("healthCheckConfig",n.validateFun),n.healthCheckFuncs={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.moduleData;return(0,n.default)(p,{},void 0,(0,n.default)(l.ModelConfigPanel,{title:"\u5065\u5eb7\u68c0\u67e5",style:{width:"100%"},collapse:this.state.panelCollapse,onToggleExpand:function(t){e.setState({panelCollapse:t})}},void 0,(0,n.default)("div",{className:"check-health-wrapper"},void 0,(0,n.default)(u.default,{viewType:this.props.actionType,probeType:"readiness",setValidateFunc:this.setHealthCheckValidateFunc,moduleData:t.deploymentHealthcheckReadiness}),(0,n.default)(u.default,{viewType:this.props.actionType,probeType:"liveness",setValidateFunc:this.setHealthCheckValidateFunc,moduleData:t.deploymentHealthcheckLiveness}))))},t}(i.default.PureComponent);t.default=f},"./src/module/modelService/publishPage/MirrorVersionSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/divider/index.js")),o=_(a("./node_modules/antd/es/row/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/extends.js")),i=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=_(a("./node_modules/babel-runtime/helpers/inherits.js")),u=_(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=_(a("./node_modules/react/index.js")),p=_(a("./node_modules/lodash/lodash.js")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");_(a("./node_modules/prop-types/index.js"));var h=a("./node_modules/react-router-dom/esm/react-router-dom.js"),g=a("./src/redux/services/modelMirror.js"),v=a("./src/routes/routeHelper.jsx");function _(e){return e&&e.__esModule?e:{default:e}}var y=m.Form.Item,b=u.default.Option,x=(0,s.default)(f.PlusOutlined,{}),C=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=n.state.moduleData;return{validate:e,moduleData:t}},n.updateFormData=function(e,t){n.setState((function(a){var n=a.moduleData;return n[e]=t,{moduleData:n}}),(function(){n.props.form.setFieldsValue({felid:t})}))},n.fetchData=function(){n.fetchMirrorList(),n.props.mirrorId&&(n.updateFormData("mirrorId",n.props.mirrorId),n.fetchVersionsByMirrorId())},n.changeMirrorUpdateApplication=function(e,t,a){var o=p.default.find(t,(function(t){return t.mirrorId===e})),s=p.default.get(o,"businessType","");s&&n.props.onApplicationChange&&n.props.onApplicationChange(s,a)},n.fetchMirrorList=function(e){var t={isPage:"N",baseType:"REASONING",state:"SUCCESS",businessType:e||n.props.applicationId||"",mirrorType:n.props.mirrorType};n.setState({mirrorListLoading:!0}),(0,g.getModelMirrorList)({paramjson:t}).then((function(e){n.setState({mirrorList:e.data,mirrorListLoading:!1}),n.mirrorId&&n.changeMirrorUpdateApplication(n.mirrorId,e.data,!0)})).catch((function(){return n.setState({mirrorListLoading:!1})}))},n.fetchVersionsByMirrorId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.mirrorId;e?(n.setState({versionLoading:!0}),(0,g.getMirrorVersionList)({paramsJson:{mirrorId:e,versionState:"SUCCESS"}}).then((function(t){var a=t.data;n.setState({mirrorVersions:a,versionLoading:!1});var o=e===n.props.mirrorId?n.props.mirrorVersionId:"",s=["create","publish","import","build"].includes(n.props.actionType);o?n.handleParamsChange("mirrorVersionId",o,"type",s):(o=p.default.get(a,"[0].versionId"),n.handleParamsChange("mirrorVersionId",o,"type",!0))})).catch((function(){return n.setState({versionLoading:!1})}))):n.setState({mirrorVersions:[]})},n.fetchMirrorVersionInfo=function(e,t){e&&(0,g.getMirrorVersionInfo)(e).then((function(e){var a=p.default.get(e.data,"envVars",[])||[],o=p.default.get(e.data,"startCommand",""),s=p.default.get(e.data,"workDir",""),r=p.default.get(e.data,"logInnerPath",""),i=p.default.get(e.data,"port",""),d=p.default.get(e.data,"apiSchema","");0===(a=a.map((function(e){return{name:e.envKey,value:e.envValue,index:p.default.uniqueId()}}))).length&&(a=[{name:"",value:"",index:p.default.uniqueId()}]),n.props.form.setFieldsValue({startCommand:o}),t&&(n.props.onMirrorInfoChangeInfo&&n.props.onMirrorInfoChangeInfo({startCommand:o,envVars:a,logInnerPath:r,workDir:s,mirrorPort:i}),n.props.onApiSchemaChange&&n.props.onApiSchemaChange(d))}))},n.handleParamsChange=function(e,t,a,o){"mirrorId"===e&&(n.fetchVersionsByMirrorId(t),n.changeMirrorUpdateApplication(t,n.state.mirrorList,!1)),"mirrorVersionId"===e&&(n.fetchMirrorVersionInfo(t,o),a||n.props.onChangeMirrorVersionId&&n.props.onChangeMirrorVersionId(t)),n.setState((function(a){var n=(0,r.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},n.state={mirrorList:[],mirrorVersions:[],moduleData:{},versionLoading:!1,mirrorListLoading:!0},n.fileFuncs={};var o=n.props.setValidateFunc;return p.default.isFunction(o)&&o("MirrorVersionSelect",n.validateFun),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){e.mirrorId!==this.props.mirrorId&&(this.updateFormData("mirrorId",this.props.mirrorId),this.fetchVersionsByMirrorId()),e.mirrorVersionId!==this.props.mirrorVersionId&&this.updateFormData("mirrorVersionId",this.props.mirrorVersionId),e.applicationId!==this.props.applicationId&&this.fetchMirrorList()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.moduleData,i=a.mirrorList,d=a.mirrorVersions,l=a.mirrorListLoading,c=a.versionLoading,p={padding:"4px 8px 8px",cursor:"pointer"};return(0,s.default)(o.default,{style:{marginTop:6}},void 0,(0,s.default)(y,{label:"\u63a8\u7406\u955c\u50cf"},void 0,t("mirrorId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u63a8\u7406\u955c\u50cf"}],initialValue:l?void 0:r.mirrorId})((0,s.default)(u.default,{disabled:this.props.disabled,showSearch:!0,placeholder:"\u8bf7\u9009\u62e9\u63a8\u7406\u955c\u50cf",onChange:function(t){return e.handleParamsChange("mirrorId",t)},style:{width:"200px"},loading:l,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},dropdownRender:function(t){return(0,s.default)("div",{},void 0,t,(0,s.default)(n.default,{style:{margin:"4px 0"}}),(0,s.default)("div",{style:p,onMouseDown:function(e){return e.preventDefault()}},void 0,(0,s.default)(h.Link,{to:{pathname:v.modelMirrorUrl.create("import"),state:{applicationId:e.props.applicationId}},target:"_blank"},void 0,x," \u65b0\u589e\u63a8\u7406\u955c\u50cf")))}},void 0,Array.isArray(i)&&i.map((function(e){return(0,s.default)(b,{value:e.mirrorId},e.mirrorId,e.mirrorShowName)}))))),(0,s.default)(y,{label:"\u7248\u672c",className:"sm-label"},void 0,t("mirrorVersionId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],initialValue:c?void 0:r.mirrorVersionId})((0,s.default)(u.default,{placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:c,onChange:function(t){return e.handleParamsChange("mirrorVersionId",t,null,!0)},style:{width:"200px"}},void 0,Array.isArray(d)&&d.map((function(e){return(0,s.default)(b,{value:e.versionId},e.versionId,e.versionName)}))))))},t}(c.default.PureComponent);C.defaultProps={},t.default=m.Form.create()(C)},"./src/module/modelService/publishPage/ModeVersionSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/divider/index.js")),o=C(a("./node_modules/antd/es/row/index.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/babel-runtime/helpers/extends.js")),i=C(a("./node_modules/babel-runtime/regenerator/index.js")),d=C(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js")),p=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=C(a("./node_modules/react/index.js")),m=C(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");C(a("./node_modules/prop-types/index.js"));var v=a("./node_modules/react-router-dom/esm/react-router-dom.js"),_=C(a("./src/redux/services/modelBase.js")),y=a("./src/routes/routeHelper.jsx"),b=a("./src/utils/commonUtil.js"),x=a("./src/module/modelBase/modelEnums.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=g.Form.Item,S=p.default.Option,I=(0,s.default)(h.PlusOutlined,{}),T=function(e){function t(a){var n=this;(0,l.default)(this,t);var o=(0,u.default)(this,e.call(this,a));o.validateFun=function(){var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=o.state.moduleData,a=m.default.find(o.state.codePackages,{packageId:t.packageId});return t.modelVersionId=m.default.get(a,"modelVid"),t.mirrorVersionId=m.default.get(a,"mirrorId"),t.baseId=m.default.get(a,"mirrorId"),{validate:e,moduleData:t}},o.updateFormData=function(e,t){o.setState((function(a){var n=a.moduleData;return n[e]=t,{moduleData:n}}),(function(){o.props.form.setFieldsValue(o.state.moduleData)}))},o.fetchData=function(){if(o.fetchModelBases(),o.props.modelId){"up"!==o.props.actionType&&o.handleModelIdChange(o.props.modelId,"fetchData"),o.props.form.setFieldsValue({modelId:o.props.modelId,packageId:o.props.packageId});var e=["create","publish","import","build"].includes(o.props.actionType);o.handleParamsChange("packageId",o.props.packageId,e)}},o.fetchModelBases=function(){o.setState({modelLoading:!0}),_.default.getModelBaseList({repoId:"default",sortType:"CREATE_AT.DESC",busiType:o.props.applicationId||""}).then((function(e){o.setState({modelBases:e.data,modelLoading:!1}),o.props.modelId&&o.changeModelUpdateApplication(o.props.modelId,e.data,!0)})).catch((function(e){console.error(e),o.setState({modelLoading:!1})}))},o.fetchVersionsByModelId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props.modelId,t=arguments[1];if(e){o.setState({versionLoading:!0});var a=o.props.reasonType+"_REASONING";_.default.getModelPackages(e,{predictType:a,status:x.PACKAGES_STATUS.CREATED}).then((function(a){var n=a.data,s=e!==o.props.modelId&&t?"":o.props.packageId;s?o.updateFormData("packageId",s):(s=m.default.get(n,"[0].packageId"),o.updateFormData("packageId",s,!0)),o.props.actionType&&"reset"!==o.props.actionType&&o.handleModelVersionChange(s,n),o.setState({codePackages:n,versionLoading:!1})})).catch((function(e){console.error(e),o.setState({codePackages:[],versionLoading:!1})}))}else o.setState({codePackages:[]})},o.handleModelVersionChange=function(){var e=(0,d.default)(i.default.mark((function e(t){var a,s,r,d,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.state.codePackages;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return o.props.onApiInterfacesChange&&o.props.onApiInterfacesChange([]),e.abrupt("return");case 3:for(a=x.DEPLOY_TYPE.NORMAL,s=0;s<u.length;s++)t===u[s].packageId&&(o.props.setModelVersionDockerfile({mirrorId:u[s].mirrorId,modelVersionId:u[s].modelVid,packageId:t,modelId:o.props.modelId,baseMirrorVersionId:u[s].mirrorId}),a=u[s].modelDeployType);return e.next=7,_.default.getPackageSchema(t);case 7:r=e.sent,d=m.default.get(r,"data.schemaJson"),d=(0,b.isJsonString)(d)?JSON.parse(d):[],o.props.onApiInterfacesChange&&o.props.onApiInterfacesChange(d),o.props.onModelDeployTypeChange&&o.props.onModelDeployTypeChange(a),a!==x.DEPLOY_TYPE.NORMAL&&(l=d.map((function(e){return{apiName:e.operationName,apiUrl:e.originUrl,operation:e.operation,requestSchema:e.requestSchema,responseSchema:e.responseSchema}})),o.props.onApiSchemaChange&&o.props.onApiSchemaChange(l));case 13:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),o.handleModelIdChange=function(e,t){["upgrade"].includes(o.props.actionType)&&!t&&o.props.setParams(e),o.handleParamsChange("modelId",e),o.fetchVersionsByModelId(e,!0),o.changeModelUpdateApplication(e,o.state.modelBases,!1)},o.changeModelUpdateApplication=function(e,t,a){var n=m.default.find(t,(function(t){return t.modelId===e})),s=m.default.get(n,"busiType","");s&&o.props.applicationId!==s&&o.props.onApplicationChange(s,a)},o.handleParamsChange=function(e,t,a){"packageId"==e&&a&&o.handleModelVersionChange(t),o.setState((function(a){var n=(0,r.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},o.state={modelBases:[],codePackages:[],moduleData:{},versionLoading:!1,modelLoading:!1},o.fileFuncs={};var s=o.props.setValidateFunc;return m.default.isFunction(s)&&s("ModeVersionSelect",o.validateFun),o}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){e.modelId!==this.props.modelId&&(this.updateFormData("modelId",this.props.modelId),this.fetchVersionsByModelId(this.props.modelId,!0,this.props.actionType)),e.packageId!==this.props.packageId&&this.updateFormData("packageId",this.props.packageId),e.applicationId!==this.props.applicationId&&this.fetchModelBases()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.moduleData,i=a.codePackages,d=a.modelBases,l=a.modelLoading,u=a.versionLoading,c={width:150},f={padding:"4px 8px 8px",cursor:"pointer"};return(0,s.default)(o.default,{style:{marginTop:6}},void 0,(0,s.default)(j,{label:"\u6a21\u578b\u540d\u79f0",className:"sm-label"},void 0,t("modelId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6a21\u578b"}],initialValue:l?void 0:r.modelId})((0,s.default)(p.default,{showSearch:!0,disabled:this.props.disabled,placeholder:"\u8bf7\u9009\u62e9\u6a21\u578b",onChange:function(t){return e.handleModelIdChange(t)},style:c,loading:l,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},dropdownRender:function(t){return(0,s.default)("div",{},void 0,t,(0,s.default)(n.default,{style:{margin:"4px 0"}}),(0,s.default)("div",{style:f,onMouseDown:function(e){return e.preventDefault()}},void 0,(0,s.default)(v.Link,{to:{pathname:y.modelBaseUrl.createModelBaseModel("default"),state:{applicationId:e.props.applicationId}},target:"_blank"},void 0,I," \u65b0\u589e\u6a21\u578b")))}},void 0,Array.isArray(d)&&d.map((function(e){return(0,s.default)(S,{value:e.modelId},e.modelId,e.modelName)}))))),(0,s.default)(j,{label:"\u7248\u672c",className:"sm-label",style:{marginLeft:40}},void 0,t("packageId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],initialValue:u?void 0:r.packageId})((0,s.default)(p.default,{showSearch:!0,optionFilterProp:"children",filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:u,onChange:function(t){return e.handleParamsChange("packageId",t,!0)},style:c},void 0,Array.isArray(i)&&i.map((function(e){return(0,s.default)(S,{value:e.packageId},e.packageId,e.packageName)}))))))},t}(f.default.PureComponent);T.defaultProps={},t.default=g.Form.create()(T)},"./src/module/modelService/publishPage/ModeVersionSelectUp.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/divider/index.js")),o=C(a("./node_modules/antd/es/row/index.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/babel-runtime/helpers/extends.js")),i=C(a("./node_modules/babel-runtime/regenerator/index.js")),d=C(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js")),p=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=C(a("./node_modules/react/index.js")),m=C(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");C(a("./node_modules/prop-types/index.js"));var v=a("./node_modules/react-router-dom/esm/react-router-dom.js"),_=C(a("./src/redux/services/modelBase.js")),y=a("./src/routes/routeHelper.jsx"),b=a("./src/utils/commonUtil.js"),x=a("./src/module/modelBase/modelEnums.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=g.Form.Item,S=p.default.Option,I=(0,s.default)(h.PlusOutlined,{}),T=function(e){function t(a){var n=this;(0,l.default)(this,t);var o=(0,u.default)(this,e.call(this,a));o.validateFun=function(){var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=o.state.moduleData,a=m.default.find(o.state.codePackages,{packageId:t.packageId});return t.modelVersionId=m.default.get(a,"modelVid"),t.mirrorVersionId=m.default.get(a,"mirrorId"),t.baseId=m.default.get(a,"mirrorId"),{validate:e,moduleData:t}},o.updateFormData=function(e,t){o.setState((function(a){var n=a.moduleData;return n[e]=t,{moduleData:n}}),(function(){o.props.form.setFieldsValue(o.state.moduleData)}))},o.fetchData=function(){if(o.fetchModelBases(),o.props.modelId){o.handleModelIdChange(o.props.modelId,"fetchData"),o.props.form.setFieldsValue({modelId:o.props.modelId,packageId:o.props.packageId});var e=["create","publish","import","build"].includes(o.props.actionType);o.handleParamsChange("packageId",o.props.packageId,e)}},o.fetchModelBases=function(){o.setState({modelLoading:!0}),_.default.getModelBaseList({repoId:"default",sortType:"CREATE_AT.DESC",busiType:o.props.applicationId||""}).then((function(e){o.setState({modelBases:e.data,modelLoading:!1}),o.props.modelId&&o.changeModelUpdateApplication(o.props.modelId,e.data,!0)})).catch((function(e){console.error(e),o.setState({modelLoading:!1})}))},o.fetchVersionsByModelId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props.modelId,t=arguments[1];if(e){o.setState({versionLoading:!0});var a=o.props.reasonType+"_REASONING";_.default.getModelPackages(e,{predictType:a,status:x.PACKAGES_STATUS.CREATED}).then((function(a){var n=a.data,s=e!==o.props.modelId&&t?"":o.props.packageId;s?o.updateFormData("packageId",s):(s=m.default.get(n,"[0].packageId"),o.updateFormData("packageId",s,!0)),o.props.actionType&&"reset"!==o.props.actionType&&o.handleModelVersionChange(s,n),o.setState({codePackages:n,versionLoading:!1})})).catch((function(e){console.error(e),o.setState({codePackages:[],versionLoading:!1})}))}else o.setState({codePackages:[]})},o.handleModelVersionChange=function(){var e=(0,d.default)(i.default.mark((function e(t){var a,s,r,d,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.state.codePackages;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return o.props.onApiInterfacesChange&&o.props.onApiInterfacesChange([]),e.abrupt("return");case 3:for(a=x.DEPLOY_TYPE.NORMAL,s=0;s<u.length;s++)t===u[s].packageId&&(o.props.setModelVersionDockerfile({mirrorId:u[s].mirrorId,modelVersionId:u[s].modelVid,packageId:t,modelId:o.props.modelId,baseMirrorVersionId:u[s].mirrorId}),a=u[s].modelDeployType);return e.next=7,_.default.getPackageSchema(t);case 7:r=e.sent,d=m.default.get(r,"data.schemaJson"),d=(0,b.isJsonString)(d)?JSON.parse(d):[],o.props.onApiInterfacesChange&&o.props.onApiInterfacesChange(d),o.props.onModelDeployTypeChange&&o.props.onModelDeployTypeChange(a),a!==x.DEPLOY_TYPE.NORMAL&&(l=d.map((function(e){return{apiName:e.operationName,apiUrl:e.originUrl,operation:e.operation,requestSchema:e.requestSchema,responseSchema:e.responseSchema}})),o.props.onApiSchemaChange&&o.props.onApiSchemaChange(l));case 13:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),o.handleModelIdChange=function(e,t){["upgrade"].includes(o.props.actionType)&&!t&&o.props.setParams(e),o.handleParamsChange("modelId",e),o.fetchVersionsByModelId(e,!0),o.changeModelUpdateApplication(e,o.state.modelBases,!1)},o.changeModelUpdateApplication=function(e,t,a){var n=m.default.find(t,(function(t){return t.modelId===e})),s=m.default.get(n,"busiType","");s&&o.props.applicationId!==s&&o.props.onApplicationChange(s,a)},o.handleParamsChange=function(e,t,a){"packageId"==e&&a&&o.handleModelVersionChange(t),o.setState((function(a){var n=(0,r.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},o.state={modelBases:[],codePackages:[],moduleData:{},versionLoading:!1,modelLoading:!1},o.fileFuncs={};var s=o.props.setValidateFunc;return m.default.isFunction(s)&&s("ModeVersionSelect",o.validateFun),o}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){e.modelId!==this.props.modelId&&(this.updateFormData("modelId",this.props.modelId),this.fetchVersionsByModelId(this.props.modelId,!0,this.props.actionType)),e.packageId!==this.props.packageId&&this.updateFormData("packageId",this.props.packageId),e.applicationId!==this.props.applicationId&&this.fetchModelBases()},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.moduleData,i=a.codePackages,d=a.modelBases,l=a.modelLoading,u=a.versionLoading,c={width:150},f={padding:"4px 8px 8px",cursor:"pointer"};return(0,s.default)(o.default,{style:{marginTop:6}},void 0,(0,s.default)(j,{label:"\u6a21\u578b\u540d\u79f0",className:"sm-label"},void 0,t("modelId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6a21\u578b"}],initialValue:l?void 0:r.modelId})((0,s.default)(p.default,{showSearch:!0,disabled:this.props.disabled,placeholder:"\u8bf7\u9009\u62e9\u6a21\u578b",onChange:function(t){return e.handleModelIdChange(t)},style:c,loading:l,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},dropdownRender:function(t){return(0,s.default)("div",{},void 0,t,(0,s.default)(n.default,{style:{margin:"4px 0"}}),(0,s.default)("div",{style:f,onMouseDown:function(e){return e.preventDefault()}},void 0,(0,s.default)(v.Link,{to:{pathname:y.modelBaseUrl.createModelBaseModel("default"),state:{applicationId:e.props.applicationId}},target:"_blank"},void 0,I," \u65b0\u589e\u6a21\u578b")))}},void 0,Array.isArray(d)&&d.map((function(e){return(0,s.default)(S,{value:e.modelId},e.modelId,e.modelName)}))))),(0,s.default)(j,{label:"\u7248\u672c",className:"sm-label",style:{marginLeft:40}},void 0,t("packageId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7248\u672c"}],initialValue:u?void 0:r.packageId})((0,s.default)(p.default,{showSearch:!0,optionFilterProp:"children",filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",loading:u,onChange:function(t){return e.handleParamsChange("packageId",t,!0)},style:c},void 0,Array.isArray(i)&&i.map((function(e){return(0,s.default)(S,{value:e.packageId},e.packageId,e.packageName)}))))))},t}(f.default.PureComponent);T.defaultProps={},t.default=g.Form.create()(T)},"./src/module/modelService/publishPage/PublishServicePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=D(a("./node_modules/antd/es/button/index.js")),o=D(a("./node_modules/babel-runtime/helpers/jsx.js")),s=D(a("./node_modules/babel-runtime/helpers/extends.js")),r=D(a("./node_modules/antd/es/message/index.js")),i=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=D(a("./node_modules/babel-runtime/helpers/inherits.js")),u=D(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=D(a("./node_modules/react/index.js")),p=D(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=D(a("./node_modules/lodash/lodash.js")),m=(D(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./src/utils/history.js"),g=a("./src/routes/routeHelper.jsx"),v=D(a("./src/module/modelService/publishPage/BaseInfo.jsx")),_=D(a("./src/module/modelService/publishPage/StartParamsConfig.jsx")),y=D(a("./src/module/modelService/createPage/ComputingResource.jsx")),b=D(a("./src/module/modelService/publishPage/ServiceUrlConfig.jsx")),x=D(a("./src/module/devCenter/components/IoSchema/IoSchemaPage.jsx")),C=D(a("./src/module/modelService/publishPage/HealthCheckConfig.jsx")),j=a("./src/module/modelService/publishPage/ServiceOrchestration.jsx"),S=a("./src/redux/services/modelService.js"),I=a("./src/module/modelService/utils.js"),T=D(a("./src/redux/services/sysManager/projectManage.js")),w=a("./src/module/modelBase/modelEnums.js"),E=a("./src/module/modelService/modelEnums.js");function D(e){return e&&e.__esModule?e:{default:e}}var M=u.default.confirm,k=p.default.div.withConfig({displayName:"PublishServicePage__PublishPageDom",componentId:"sc-17ivvnu-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.ant-legacy-form-item-label{width:70px;}.lang-label-wrapper{& > .ant-legacy-form-item-label{width:82px;margin-left:-12px;}}"]),P=p.default.div.withConfig({displayName:"PublishServicePage__ConfigButtonDom",componentId:"sc-17ivvnu-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),L=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchApplications(),n.fetchServiceInfo()},n.setValidateFunc=function(e,t,a){n.validateFuncs[e]=t;var o=a||!1;console.log(o+"\u56de\u8c03"),n.setState({result:o})},n.fetchApplications=function(){T.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsList:e.data})})).catch((function(e){r.default.error(e.message)}))},n.fetchServiceInfo=function(){n.serviceId&&(0,S.getServiceInfo)(n.serviceId).then((function(e){var t=(0,I.getParseData)(e.data),a=t.allModuleData,o=t.pubEnvType,s=t.publishStep,r=t.deployId,i="MODEL"!==t.artifactType;n.setState({moduleData:a,profile:o,publishStep:s,deployId:r,isCustomApi:i})}))},n.savaOrSubmit=function(){var e={},t=!0;Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(f.default.isFunction(o)){var s=o.call();s.validate&&(e[a]=s.moduleData),t&&(t=s.validate)}}));var a=(0,I.getStructureData)(e,n.state.profile),o=n;t&&u.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){o.submitModalOk(a)},onCancel:function(){}})},n.submitModalOk=function(e){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.actionType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),"onlineEdit"===n.actionType?(0,S.onlineEditService)(n.serviceId,e).then((function(){r.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,h.navigateTo)({pathname:g.modelServiceUrl.list(),state:{pubEnvType:n.state.profile}})}),2e3)})).catch((function(){n.setState({confirmLoading:!1})})):"reset"===n.actionType?(0,S.reSetService)(n.serviceId,e).then((function(){r.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,h.navigateTo)({pathname:g.modelServiceUrl.list(),state:{pubEnvType:n.state.profile}})}),2e3)})).catch((function(){n.setState({confirmLoading:!1})})):(0,S.publishService)(e).then((function(){r.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,h.navigateTo)({pathname:g.modelServiceUrl.list(),state:{pubEnvType:n.state.profile}})}),2e3)})).catch((function(){n.setState({confirmLoading:!1})}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){var e=n;M({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u5728\u7ebf\u63a8\u7406\u670d\u52a1\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,h.navigateTo)({pathname:g.modelServiceUrl.list(),state:{pubEnvType:e.state.profile}})}})},n.handleStructureTypeChange=function(e){var t=n.state.isCustomApi;t="CODE"===e||"MIRRORVERSION"===e,n.setState({isCustomApi:t})},n.handleApplicationChange=function(e){n.setState({applicationId:e})},n.handleApiInterfacesChange=function(e){n.setState({avaInterface:e})},n.handleModelTypeChange=function(e){n.setState({modelDeployType:e})},n.handleApiSchemaChange=function(e){var t=(0,s.default)({},n.state.moduleData);t.ioSchemaPage=e,n.setState({moduleData:t})},n.actionType=f.default.get(a.match,"params.action",null),n.env=f.default.upperCase(f.default.get(a.match,"params.env","")),n.modelId=f.default.get(a.match,"params.modelId",null),n.mirrorId=f.default.get(a.match,"params.mirrorId",null),n.versionId=f.default.get(a.match,"params.versionId",null),n.serviceId=f.default.get(a.match,"params.serviceId",null),n.applicationId=f.default.get(a.location,"state.applicationId",null),n.state={moduleData:{baseInfo:{versionNickName:"v1"},startParamsConfig:{sourceType:"MODEL",mirrorPort:5e3,envVars:[{name:"",value:"",index:(new Date).getTime()}]},computingResource:{},serviceUrlConfig:{},ioSchemaPage:[],healthCheckConfig:{},serviceOrchestration:{}},publishStep:"",modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1,applicationsList:[],profile:n.env,deployId:"",applicationId:n.applicationId,disabledApplication:Boolean(n.applicationId),avaInterface:[],modelDeployType:w.DEPLOY_TYPE.NORMAL,addressType:E.SERVICE_ADDRESS_TYPE.ai,result:!1},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,s=t.moduleData,r=t.modalTxt,i=t.confirmLoading,d=t.isCustomApi,l=t.applicationId,c=t.applicationsList,p=t.publishStep,f=t.disabledApplication,m=t.avaInterface,h=t.modelDeployType,g=t.addressType;return(0,o.default)(k,{},void 0,(0,o.default)(u.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:i,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,r)),(0,o.default)(v.default,{applicationId:l,disabledApplication:f||Boolean(this.modelId||this.mirrorId),serviceId:this.serviceId,actionType:this.actionType,moduleData:s.baseInfo,applicationsList:c,onApplicationChange:this.handleApplicationChange,setValidateFunc:this.setValidateFunc,deployEnv:this.env}),(0,o.default)(_.default,{actionType:this.actionType,modelId:this.modelId,mirrorId:this.mirrorId,versionId:this.versionId,moduleData:s.startParamsConfig,onStructureTypeChange:this.handleStructureTypeChange,setValidateFunc:this.setValidateFunc,applicationId:l,onApplicationChange:this.handleApplicationChange,onApiSchemaChange:this.handleApiSchemaChange,onApiInterfacesChange:this.handleApiInterfacesChange,onModelDeployTypeChange:this.handleModelTypeChange,publishStep:p}),(0,o.default)(y.default,{pubEnvType:this.state.profile,requestQuota:s.computingResource,canModify:!0,setValidateFunc:this.setValidateFunc,source:"ONLINE_REASONING"}),(0,o.default)(b.default,{moduleData:s.serviceUrlConfig,profile:this.state.profile,actionType:this.actionType,serviceId:this.serviceId,setValidateFunc:this.setValidateFunc,onAddressTypeChange:function(t){e.setState({addressType:t})}}),"OUT_NETWORK"!==this.state.addressType&&(0,o.default)("div",{style:{marginLeft:50}},void 0,(0,o.default)(j.ServiceOrchestration,{moduleData:s.serviceOrchestration,setValidateFunc:this.setValidateFunc})),(0,o.default)(x.default,{collapse:!0,mirrorType:"ONLINE",isCustomApi:d,avaInterface:m,modelDeployType:h,schemas:s.ioSchemaPage,showFlowControl:[E.SERVICE_ADDRESS_TYPE.ai].includes(g),setValidateFunc:this.setValidateFunc}),(0,o.default)(C.default,{moduleData:s.healthCheckConfig,setValidateFunc:this.setValidateFunc}),(0,o.default)(P,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.savaOrSubmit()},type:"primary",loading:this.state.confirmLoading,disabled:!this.state.result,style:{borderRadius:4,width:110}},void 0,"\u4fdd\u5b58")))},t}(c.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(L)},"./src/module/modelService/publishPage/ServiceOrchestration.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ServiceOrchestration=t.BseInfoDom=void 0;var n,o,s=_(a("./node_modules/antd/es/row/index.js")),r=_(a("./node_modules/babel-runtime/helpers/jsx.js")),i=_(a("./node_modules/babel-runtime/helpers/extends.js")),d=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=_(a("./node_modules/babel-runtime/helpers/inherits.js")),c=_(a("./node_modules/antd/es/checkbox/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/checkbox/style/index.js");var p=_(a("./node_modules/react/index.js")),f=_(a("./node_modules/lodash/lodash.js")),m=(_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./src/redux/services/modelService.js"),v=a("./src/components/index.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=t.BseInfoDom=m.default.div.withConfig({displayName:"ServiceOrchestration__BseInfoDom",componentId:"iqxfeb-0"})([".ant-row{display:flex;}.ant-legacy-form-item-label{width:70px;text-align:right;}.ant-checkbox-disabled + span{color:rgb(0,0,0);}"]),b=h.Form.Item,x=c.default.Group,C=(n=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));o.call(n);var s=a.moduleData,r=n.getDeployArrange(s);n.state={filterOptions:[],moduleData:{deployArrange:r}};var i=n.props.setValidateFunc;return f.default.isFunction(i)&&i("serviceOrchestration",n.validateFun),n}return(0,u.default)(t,e),t.prototype.componentDidUpdate=function(e){var t=(0,i.default)({},this.props.moduleData);if(!f.default.isEqual(e.moduleData,this.props.moduleData)){var a=t,n=this.getDeployArrange(a);this.props.form.setFieldsValue({deployArrange:n}),this.setState({moduleData:{deployArrange:n}})}},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,n=a.filterOptions,o=a.moduleData,d="view"===this.props.actionType;return(0,r.default)(h.Form,{layout:"inline"},void 0,(0,r.default)(x,{onChange:this.handelFiltersChange,value:o.deployArrange},void 0,t("deployArrange",{rules:[{required:!1,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u5730\u5740"}],initialValue:o.deployArrange||[]})((0,r.default)(s.default,{},void 0,(0,r.default)(b,{label:this.props.hideLabel?"":"\u670d\u52a1\u7f16\u6392",className:"sm-label"},void 0,n.map((function(t,a){return(0,r.default)(c.default,{disabled:d,value:t.filterConfigId,style:(0,i.default)({lineHeight:"32px",width:200},e.props.itemStyle)},a,t.filterConfigName)})))))))},t}(p.default.PureComponent),o=function(){var e=this;this.componentDidMount=function(){e.fetchFilters()},this.getDeployArrange=function(e){var t=[];if(!f.default.isObject(e))return[];for(var a in e)"exReq"===a&&"aionline"===f.default.get(e[a],"exType")||"exResp"===a&&"aionline"===f.default.get(e[a],"exType")?t.push("aionlineEx"):t.push(a);return t=Array.from(new Set(t))},this.fetchFilters=function(){(0,g.getFilters)().then((function(t){var a=t.data||[],n=f.default.get(e.state.moduleData,"deployArrange",[])||[];if("reset"!==e.props.actionType&&"view"!==e.props.actionType&&Array.isArray(a)){for(var o=0;o<a.length;o++)1===Number(a[o].isCheck)&&n.push(a[o].filterConfigId);e.setState({moduleData:{deployArrange:n}})}e.setState({filterOptions:t.data})}))},this.validateFun=function(){var t=!1;e.props.form.validateFieldsAndScroll((function(e){null===e&&(t=!0)}));for(var a=f.default.get(e.state.moduleData,"deployArrange",[]),n={},o=0;o<a.length;o++){var s=a[o];if("aionlineEx"===s)n=(0,i.default)({},n,{exReq:{exType:"aionline"},exResp:{exType:"aionline"}});else if("dataRetain"===s){var r=f.default.find(e.state.filterOptions,{filterConfigId:s});n.dataRetain=f.default.get(r,"filterConfigJson")}else n[s]={}}return{validate:t,moduleData:JSON.stringify(n)}},this.handelFiltersChange=function(t){var a=(0,i.default)({},e.state.moduleData);a.deployArrange=t,e.setState({moduleData:a})}},n);C.defaultProps={wrapperStyle:{},itemStyle:{}};var j=h.Form.create()(C);t.ServiceOrchestration=j,t.default=function(e){return(0,r.default)(y,{style:e.wrapperStyle},void 0,(0,r.default)(v.ModelConfigPanel,{title:"\u670d\u52a1\u7f16\u6392",style:{width:"100%"}},void 0,p.default.createElement(j,(0,i.default)({},e,{hideLabel:!0,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\publishPage\\ServiceOrchestration.jsx",lineNumber:181}}))))}},"./src/module/modelService/publishPage/ServiceUrlConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.BseInfoDom=void 0;var n=w(a("./node_modules/antd/es/row/index.js")),o=w(a("./node_modules/antd/es/tooltip/index.js")),s=w(a("./node_modules/babel-runtime/helpers/jsx.js")),r=w(a("./node_modules/babel-runtime/regenerator/index.js")),i=w(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),d=w(a("./node_modules/babel-runtime/helpers/extends.js")),l=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=w(a("./node_modules/babel-runtime/helpers/inherits.js")),p=w(a("./node_modules/antd/es/radio/index.js")),f=w(a("./node_modules/antd/es/select/index.js")),m=w(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var h=w(a("./node_modules/react/index.js")),g=(w(a("./node_modules/prop-types/index.js")),w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),v=a("./node_modules/@ant-design/icons/es/index.js"),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=a("./node_modules/react-redux/es/index.js"),x=a("./src/redux/services/modelService.js"),C=a("./src/components/index.js"),j=a("./src/module/modelService/utils.js"),S=a("./src/utils/constants.js"),I=a("./src/utils/authPermit.js"),T=a("./src/module/modelService/modelEnums.js");function w(e){return e&&e.__esModule?e:{default:e}}var E=t.BseInfoDom=g.default.div.withConfig({displayName:"ServiceUrlConfig__BseInfoDom",componentId:"sc-1p7j6wo-0"})([".ant-row{display:flex;}&.wrapper .ant-legacy-form-item-label{width:90px;text-align:right;}.ant-input-group-compact{display:flex !important;}.ant-form-inline .ant-form-item > .ant-form-item-control-wrapper{vertical-align:bottom;}"]),D=m.default.Group,M=f.default.Option,k=y.Form.Item,P=(p.default.Group,T.SERVICE_ADDRESS_TYPE.getValueAndDescList()),L={marginTop:"16px"},N=function(e){function t(a){var n=this;(0,l.default)(this,t);var o=(0,u.default)(this,e.call(this,a));o.componentDidMount=function(){o.fetchIngress()},o.fetchIngress=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props.profile;e&&(0,x.getServiceIngress)({profile:e}).then((function(e){var t=e.data;o.setState({serviceIngress:t});var a=_.find(t,{ingressId:_.get(o.state,"moduleData.deployAdressType")})||_.get(e,"data[0]",{}),n=(0,d.default)({},o.state.moduleData);n.deployAdressType=_.get(a,"ingressId","");var s=_.get(a,"url","");o.setState({moduleData:n,serviceAddress:s,deploymentIngressAddress:n.deploymentIngressAddress})}))},o.validateFun=function(){o.isSubmit=!0;var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=(0,d.default)({},o.state.moduleData,{deploymentLinkType:o.state.addressType});return{validate:e,moduleData:t}},o.checkServiceUrlRepeat=function(){var e=(0,i.default)(r.default.mark((function e(t){var a;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.checkNameIsRepeat)(t.target.value,o.props.serviceId,"appAddress");case 2:a=e.sent,o.setState({serviceUrlRepeat:a});case 4:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),o.handleAddressValidator=function(){var e=(0,i.default)(r.default.mark((function e(t,a,s){var i;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a&&_.trim(a)){e.next=3;break}return s(""),e.abrupt("return");case 3:if(!o.isSubmit){e.next=7;break}e.t0=o.state.serviceUrlRepeat,e.next=10;break;case 7:return e.next=9,(0,j.checkNameIsRepeat)(a,o.props.serviceId,"appAddress");case 9:e.t0=e.sent;case 10:i=e.t0,o.setState({serviceUrlRepeat:i}),i&&s("\u670d\u52a1\u6807\u8bc6\u91cd\u590d"),s();case 14:case"end":return e.stop()}}),e,n)})));return function(t,a,n){return e.apply(this,arguments)}}(),o.handleParamsChange=function(e,t){var a=(0,d.default)({},o.state.moduleData);if("deployAdressType"===e){var n=_.get(_.find(o.state.serviceIngress,{ingressId:t}),"url","");n=n||wrapServiceUrl("reasoning-services",""),a[e]=t,o.setState({serviceAddress:n})}else a[e]=t;"deployAdress"===e&&(o.isSubmit=!1),o.setState({moduleData:a})},o.handleAddressTypeChange=function(e){o.setState({addressType:e.target.value}),o.props.onAddressTypeChange&&o.props.onAddressTypeChange(e.target.value)},o.state={serviceIngress:[],moduleData:a.moduleData,serviceAddress:"",deploymentIngressAddress:"",addressType:T.SERVICE_ADDRESS_TYPE.ai,serviceUrlRepeat:!1};var s=o.props.setValidateFunc;o.isSubmit=!1,_.isFunction(s)&&s("serviceUrlConfig",o.validateFun);var c=(0,I.getCurrentContext)(),p=c.role,f=c.id,m="PROJECT"===p?f:"";return o.serviceFixedAddr=((0,S.getAjaxUrl)()+"/reasoning-services/"+m+"/").replace(/\/\//g,"/"),o}return(0,c.default)(t,e),t.prototype.componentDidUpdate=function(e){var t=this;this.props.profile!==e.profile&&this.fetchIngress(this.props.profile);var a=(0,d.default)({},this.props.moduleData);if(!_.isEqual(a,e.moduleData)){var n=_.get(_.find(this.state.serviceIngress,{ingressId:a.deployAdressType}),"url",""),o=a.deploymentLinkType||P[0].code;this.setState({moduleData:a,serviceAddress:n,deploymentIngressAddress:a.deploymentIngressAddress,deploymentLinkType:o,addressType:o},(function(){t.props.onAddressTypeChange&&t.props.onAddressTypeChange(o),t.props.form.validateFields((function(){}))}))}},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,r=a.serviceIngress,i=a.moduleData,d=a.deploymentIngressAddress,l=a.serviceAddress,u=a.addressType;return(0,s.default)(E,{className:"wrapper"},void 0,(0,s.default)(C.ModelConfigPanel,{title:(0,s.default)("span",{},void 0,"\u914d\u7f6e\u670d\u52a1\u5730\u5740",(0,s.default)("span",{},void 0,(0,s.default)(o.default,{placement:"top",title:"API\u670d\u52a1\u9009\u62e9\u4f7f\u7528AI\u7f51\u5173\uff0cWeb\u670d\u52a1\u9009\u62e9\u4f7f\u7528\u81ea\u5b9a\u4e49\u57df\u540d"},void 0,(0,s.default)(v.QuestionCircleOutlined,{style:{marginLeft:8}})))),style:{width:"100%"}},void 0,(0,s.default)(y.Form,{layout:"inline"},void 0,["IN_NETWORK"].includes(u)&&(0,s.default)(h.default.Fragment,{},void 0,(0,s.default)(n.default,{style:L},void 0,(0,s.default)(k,{label:"\u66b4\u9732\u5730\u5740",className:"sm-label"},void 0,t("deployAdressType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u66b4\u9732\u5730\u5740"}],initialValue:i.deployAdressType})((0,s.default)(f.default,{placeholder:"\u8bf7\u9009\u62e9\u66b4\u9732\u5730\u5740",onChange:function(t){return e.handleParamsChange("deployAdressType",t)},style:{minWidth:240,width:"auto"}},void 0,Array.isArray(r)&&r.map((function(e){return(0,s.default)(M,{value:e.ingressId},e.ingressId,e.ingressName)})))))),(0,s.default)(k,{label:"\u670d\u52a1\u6807\u8bc6",className:"sm-label",style:{marginTop:16}},void 0,(0,s.default)(D,{compact:!0},void 0,(0,s.default)(m.default,{value:l,disabled:!0,style:{minWidth:240,width:"auto"}}),(0,s.default)(m.default,{value:this.serviceFixedAddr,disabled:!0,style:{minWidth:300,width:"auto"}}),t("deployAdress",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u6807\u8bc6"},{validator:this.handleAddressValidator},{pattern:/^(?!-)([a-z0-9-]*)+(?<!-)$/,message:"\u7531\u82f1\u6587\u5c0f\u5199\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e2d\u5212\u7ebf\u7ec4\u6210\uff0c\u4e0d\u80fd\u4ee5\u4e2d\u5212\u7ebf\u5f00\u5934\u7ed3\u5c3e"}],validateTrigger:"onBlur",initialValue:i.deployAdress})(h.default.createElement(m.default,{style:{width:200},ref:this.checkAddressRef,placeholder:"\u8bf7\u8f93\u5165\u670d\u52a1\u6807\u8bc6",onChange:function(t){return e.handleParamsChange("deployAdress",t.target.value)},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelService\\publishPage\\ServiceUrlConfig.jsx",lineNumber:234}}))))),["OUT_NETWORK"].includes(u)&&(0,s.default)(h.default.Fragment,{},void 0,(0,s.default)(n.default,{style:L},void 0,(0,s.default)(k,{label:"\u81ea\u5b9a\u4e49\u57df\u540d"},void 0,t("deploymentIngressAddress",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u81ea\u5b9a\u4e49\u57df\u540d"},{pattern:/^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/,message:"\u81ea\u5b9a\u4e49\u57df\u540d\u4e0d\u6b63\u786e"}],initialValue:d})((0,s.default)(m.default,{style:{minWidth:240,width:"auto"},placeholder:"http://nginx.ingress.com",onChange:function(t){return e.handleParamsChange("deploymentIngressAddress",t.target.value)}}))))))))},t}(h.default.PureComponent);t.default=(0,b.connect)((function(){return{}}))(y.Form.create()(N))},"./src/module/modelService/publishPage/StartParamsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=D(a("./node_modules/antd/es/spin/index.js")),o=D(a("./node_modules/antd/es/input-number/index.js")),s=D(a("./node_modules/antd/es/tooltip/index.js")),r=D(a("./node_modules/antd/es/row/index.js")),i=D(a("./node_modules/babel-runtime/helpers/jsx.js")),d=D(a("./node_modules/antd/es/message/index.js")),l=D(a("./node_modules/babel-runtime/regenerator/index.js")),u=D(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),c=D(a("./node_modules/babel-runtime/helpers/extends.js")),p=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=D(a("./node_modules/babel-runtime/helpers/inherits.js")),h=D(a("./node_modules/antd/es/input/index.js")),g=D(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var v=D(a("./node_modules/react/index.js")),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=a("./src/components/index.js"),x=D(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),C=a("./src/redux/services/modelMirror.js"),j=(D(a("./node_modules/prop-types/index.js")),D(a("./src/module/modelMirror/components/EnvVariables.jsx"))),S=D(a("./src/module/modelService/publishPage/ModeVersionSelect.jsx")),I=D(a("./src/module/modelService/publishPage/MirrorVersionSelect.jsx")),T=a("./src/module/modelService/modelEnums.js"),w=a("./src/utils/dockerFileUtil.js"),E=a("./node_modules/@ant-design/icons/es/index.js");function D(e){return e&&e.__esModule?e:{default:e}}var M=y.Form.Item,k=g.default.Group,P=h.default.TextArea,L=x.default.div.withConfig({displayName:"StartParamsConfig__StartParamsConfigDom",componentId:"d6ympp-0"})([".ant-row{display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:0;line-height:40px;width:100px;text-align:right;}.ant-form-item{margin-bottom:16px;}.dockerfile-wrapper{padding-left:0px;.ant-legacy-form-item{width:100%;}.ant-legacy-form-item-control-wrapper{width:80%;}.docker-file-container{padding-left:0;}.ant-legacy-form-item-label{width:108px;margin-left:-38px;}.from-div{line-height:22px;}.CodeMirror-code > div{line-height:18px;}}"]),N=T.MODEL_TYPE.getCodeAndDescList(),A={marginTop:16},R={width:"100%"},F={width:"100%",minWidth:"600px",marginTop:6},O=function(e){function t(a){var n=this;(0,p.default)(this,t);var o=(0,f.default)(this,e.call(this,a));o.updateSetDockerFile=function(e,t){o.setState({dockerFilesLoading:!0}),(0,w.updateSetDockerFileSort)(e,{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:"logpath",model:"model"},null,t).then((function(e){o.dockerFileSort=e;for(var t="",a=0;a<e.length;a++)t+=e[a].data+"\n";o.setState({dockerFile:t&&t.substring(0,t.length-1),dockerFilesLoading:!1})}))},o.setPackageValidateFunc=function(e,t){o.fileFuncs[e]=t},o.fetchData=function(){if(o.props.modelId){var e=(0,c.default)({},o.state.moduleData,{modelId:o.props.modelId,packageId:o.props.versionId,sourceType:"MODEL"});o.setState({moduleData:e}),o.props.onStructureTypeChange("MODEL")}else if(o.props.mirrorId){var t=(0,c.default)({},o.state.moduleData,{sourceType:"MIRRORVERSION",mirrorId:o.props.mirrorId,mirrorVersionId:o.props.versionId});o.setState({moduleData:t}),o.props.onStructureTypeChange("MIRRORVERSION")}},o.validateFun=function(){var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t?e=!0:o.setState({panelCollapse:!0})}));var t=o.state.moduleData;return"MODEL"===t.sourceType?o.fileFuncs=_.omit(o.fileFuncs,["MirrorVersionSelect"]):o.fileFuncs=_.omit(o.fileFuncs,["ModeVersionSelect"]),Object.keys(o.fileFuncs).map((function(a){var n=o.fileFuncs[a];if(_.isFunction(n)){var s=n.call();e&&(e=s.validate),t=(0,c.default)({},t,s.moduleData)}})),t=o.getOmitModuleData(t),{validate:e,moduleData:(0,c.default)({},t)}},o.getOmitModuleData=function(e){return"MODEL"===e.sourceType?e=(0,c.default)({},e,{mirrorId:"",mirrorVersionId:""}):"MIRRORVERSION"===e.sourceType&&(e=(0,c.default)({},e,{modelId:"",modelVersionId:"",packageId:"",workDir:"",dockerFile:""})),e},o.handleSourceTypeChange=function(e){o.handleParamsChange("sourceType",e),o.props.onStructureTypeChange&&o.props.onStructureTypeChange(e)},o.setParams=function(){},o.handleParamsChange=function(e,t){o.setState((function(a){var n=(0,c.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},o.handleEnvsChange=function(e){o.handleParamsChange("envVars",e)},o.handleMirrorInfoChange=function(e){o.setState((function(t){return{moduleData:(0,c.default)({},t.moduleData,e)}}),(function(){o.props.form.setFieldsValue(e)}))},o.validateMirrorPort=function(e,t,a){t&&(!/^[0-9]\d*$/.test(t)||t<1||t>65534)&&a("\u8bf7\u8f93\u51651-65534\u4e4b\u95f4\u7684\u6b63\u6574\u6570"),a()},o.setModelVersionDockerfile=function(e,t){if(e){var a={key:"",value:e,type:"model"};"reset"===o.props.actionType?(0,C.getDockerfileContent)({paramjson:a}).then((function(e){if("00000"===e.code){var n=e.data,s=o.state.moduleData;n&&(n=n?n.replace(/\\n/g,"\n"):"",s.dockerFile=n,o.updateSetDockerFile(s,o.props.actionType),o.getDockerfileContent(a,null,null,null,t||o.props.actionType))}})).catch((function(){o.setState({dockerFilesLoading:!1})})):o.getDockerfileContent(a,null,null,null,t||o.props.actionType)}},o.setStartParams=function(e,t,a){if(t){var n={key:"",value:t,type:{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:"logpath"}[e]};o.getDockerfileContent(n)}o.handleParamsChange(e,t,a)},o.handleEnvsChange=function(){var e=(0,u.default)(l.default.mark((function e(t,a,s,r){var i;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i="minus"!==a?t[s]:r).name.trim()&&i.value.trim()&&"add"!==a&&(i.key=i.name?i.name:"",i.type="env",o.getDockerfileContent(i,s,a,t));case 2:case"end":return e.stop()}}),e,n)})));return function(t,a,n,o){return e.apply(this,arguments)}}(),o.getDockerfileContent=function(e,t,a,n,s){o.setState({dockerFilesLoading:!0});var r=void 0;(0,C.getDockerfileContent)({paramjson:e}).then((function(i){if("00000"===i.code){var l=s&&"publish"!==s?o.state.dockerFile:i.data;if(l)if(l=l?l.replace(/\\n/g,"\n"):"",r=(0,w.editDockerFileByAuto)(o.dockerFileSort,l,t,a,n,e.type),o.dockerFileSort=r.dockerFileSort,s&&"publish"!==s)o.setState({dockerFilesLoading:!1});else{var u=(0,w.transitionDockerFileSort)(o.dockerFileSort);o.handleParamsChange("dockerFile",u),o.setState({dockerFile:u,dockerFilesLoading:!1})}else o.setState({dockerFilesLoading:!1})}else(i.code="99999")&&(d.default.error(i.message),o.setState({dockerFilesLoading:!1}));"env"===e.type&&o.handleParamsChange("envVars",r.array)})).catch((function(){o.setState({dockerFilesLoading:!1})}))},o.setDockerFile=function(e){o.dockerFileSort=(0,w.editDockerFileByHand)(o.dockerFileSort,e);var t=(0,w.transitionDockerFileSort)(o.dockerFileSort);o.setState({dockerFile:t}),o.handleParamsChange("dockerFile",t)};var s=o.props.setValidateFunc;return o.state={modalVisible:!1,ftpDatas:[],moduleData:a.moduleData,imageFtpPath:"",imageFileUploadType:"ftp",imageFileList:[],panelCollapse:!0,dockerFile:a.moduleData.dockerFile?a.moduleData.dockerFile:"publish"===a.actionType?"EXPOSE 5000":"",dockerFilesLoading:!1},o.checkNameRef=v.default.createRef(),o.fileFuncs={},_.isFunction(s)&&s("startParamsConfig",o.validateFun),o.dockerFileSort="publish"===a.actionType?[{type:"port",data:"EXPOSE 5000",sort:321}]:[],o}return(0,m.default)(t,e),t.prototype.componentDidUpdate=function(e){var t=(0,c.default)({},this.props.moduleData);_.isEqual(e.moduleData,this.props.moduleData)||(this.props.form.setFieldsValue(t),"reset"===e.actionType&&(this.updateSetDockerFile(t),this.setState({dockerFile:t.dockerFile})),this.setState({moduleData:t}))},t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.moduleData,d=t.panelCollapse,l=t.dockerFile,u=t.dockerFilesLoading,c=this.props.form.getFieldDecorator,p=this.props,f=p.publishStep,m=p.actionType;["DEPLOY","REGISTER"].includes(f);return!1,(0,i.default)(L,{},void 0,(0,i.default)(b.ModelConfigPanel,{title:"\u9009\u62e9\u5185\u5bb9",style:R},void 0,(0,i.default)(y.Form,{labelAlign:"right"},void 0,(0,i.default)(r.default,{},void 0,(0,i.default)(k,{disabled:Boolean(this.props.modelId)||Boolean(this.props.mirrorId)||!1,onChange:function(t){return e.handleSourceTypeChange(t.target.value)},value:a.sourceType},void 0,N.map((function(e){return(0,i.default)(g.default,{value:e.code,style:{marginRight:180}},e.code,e.desc)})))),"MODEL"===a.sourceType?(0,i.default)(S.default,{actionType:m,modelId:a.modelId,packageId:a.packageId,reasonType:"ONLINE",disabled:Boolean(this.props.modelId)||!1,applicationId:this.props.applicationId,setValidateFunc:this.setPackageValidateFunc,onApplicationChange:this.props.onApplicationChange,onApiInterfacesChange:this.props.onApiInterfacesChange,setModelVersionDockerfile:this.setModelVersionDockerfile,setParams:this.setParams,onModelDeployTypeChange:this.props.onModelDeployTypeChange,onApiSchemaChange:this.props.onApiSchemaChange}):(0,i.default)(I.default,{actionType:m,mirrorId:a.mirrorId,mirrorVersionId:a.mirrorVersionId,disabled:Boolean(this.props.mirrorId)||!1,applicationId:this.props.applicationId,setValidateFunc:this.setPackageValidateFunc,onApplicationChange:this.props.onApplicationChange,onApiSchemaChange:this.props.onApiSchemaChange,onMirrorInfoChangeInfo:this.handleMirrorInfoChange,onChangeMirrorVersionId:this.props.onChangeMirrorVersionId,mirrorType:"ONLINE"}))),(0,i.default)(b.ModelConfigPanel,{title:"\u914d\u7f6e\u542f\u52a8\u53c2\u6570",style:R,collapse:d,onToggleExpand:function(t){e.setState({panelCollapse:t})}},void 0,(0,i.default)(y.Form,{layout:"inline",labelAlign:"right"},void 0,(0,i.default)(r.default,{style:A},void 0,(0,i.default)(M,{label:"\u542f\u52a8\u547d\u4ee4",className:"sm-label"},void 0,c("startCommand",{initialValue:a.startCommand})((0,i.default)(P,{autoSize:{minRows:3,maxRows:5},style:F,placeholder:"\u8bf7\u8f93\u5165\u542f\u52a8\u547d\u4ee4",disabled:!1,onBlur:function(t){return e.setStartParams("startCommand",t.target.value)}}))),(0,i.default)(M,{help:""},void 0,(0,i.default)(s.default,{title:"\u591a\u547d\u4ee4\u8bf7\u7528\u201c;\u201d\u9694\u79bb"},void 0,(0,i.default)(E.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),-1===_.indexOf(["upgrade","onlineEdit"],this.props.actionType)&&(0,i.default)(r.default,{style:A},void 0,(0,i.default)(M,{label:"\u670d\u52a1\u7aef\u53e3",className:"sm-label"},void 0,c("mirrorPort",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u7aef\u53e3"},{validator:this.validateMirrorPort}],initialValue:a.mirrorPort})((0,i.default)(o.default,{placeholder:"\u670d\u52a1\u7aef\u53e3",onBlur:function(t){return e.setStartParams("mirrorPort",t.target.value)}})))),"MODEL"===a.sourceType&&(0,i.default)(r.default,{style:A},void 0,(0,i.default)(M,{label:"\u5de5\u4f5c\u76ee\u5f55",className:"sm-label"},void 0,c("workDir",{initialValue:a.workDir})((0,i.default)(h.default,{style:{width:200},placeholder:"\u8bf7\u8f93\u5165\u5de5\u4f5c\u76ee\u5f55",disabled:!1,onBlur:function(t){return e.setStartParams("workDir",t.target.value)}})))),(0,i.default)(r.default,{style:A},void 0,(0,i.default)(M,{label:"\u65e5\u5fd7\u8def\u5f84",className:"sm-label"},void 0,c("logInnerPath",{initialValue:a.logInnerPath})((0,i.default)(h.default,{style:{width:200},placeholder:"\u8bf7\u8f93\u5165\u65e5\u5fd7\u8def\u5f84",disabled:!1,onBlur:function(t){return e.setStartParams("logInnerPath",t.target.value)}})))),(0,i.default)(n.default,{spinning:u,tip:"\u547d\u4ee4\u751f\u6210\u4e2d\u8bf7\u7a0d\u540e...."},void 0,(0,i.default)(j.default,{getFieldDecorator:c,wrapStyle:A,labelText:"\u73af\u5883\u53d8\u91cf",disabled:!1,envVariables:a.envVars,onMirrorChange:function(t,a,n,o){e.handleEnvsChange(t,a,n,o)}}),"MODEL"===a.sourceType&&(0,i.default)(b.DockerfileContainer,{style:{paddingLeft:10},dockerFiles:l,setDockerFile:function(t){e.setDockerFile(t)}})))))},t}(v.default.PureComponent);t.default=y.Form.create()(O)},"./src/module/modelService/publishPage/StartParamsConfigUp.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=D(a("./node_modules/antd/es/spin/index.js")),o=D(a("./node_modules/antd/es/input-number/index.js")),s=D(a("./node_modules/antd/es/tooltip/index.js")),r=D(a("./node_modules/antd/es/row/index.js")),i=D(a("./node_modules/babel-runtime/helpers/jsx.js")),d=D(a("./node_modules/antd/es/message/index.js")),l=D(a("./node_modules/babel-runtime/regenerator/index.js")),u=D(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),c=D(a("./node_modules/babel-runtime/helpers/extends.js")),p=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=D(a("./node_modules/babel-runtime/helpers/inherits.js")),h=D(a("./node_modules/antd/es/input/index.js")),g=D(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var v=D(a("./node_modules/react/index.js")),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=a("./src/components/index.js"),x=D(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),C=a("./src/redux/services/modelMirror.js"),j=(D(a("./node_modules/prop-types/index.js")),D(a("./src/module/modelMirror/components/EnvVariables.jsx"))),S=D(a("./src/module/modelService/publishPage/ModeVersionSelectUp.jsx")),I=D(a("./src/module/modelService/publishPage/MirrorVersionSelect.jsx")),T=a("./src/module/modelService/modelEnums.js"),w=a("./src/utils/dockerFileUtil.js"),E=a("./node_modules/@ant-design/icons/es/index.js");function D(e){return e&&e.__esModule?e:{default:e}}var M=y.Form.Item,k=g.default.Group,P=h.default.TextArea,L=x.default.div.withConfig({displayName:"StartParamsConfigUp__StartParamsConfigDom",componentId:"sc-2kcd5o-0"})([".ant-row{display:flex;}.ant-col-1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:5.166667%;}.ant-radio-group{width:100%;}.ant-radio-wrapper{margin-right:0;line-height:40px;width:100px;text-align:right;}.ant-form-item{margin-bottom:16px;}.dockerfile-wrapper{padding-left:0px;.ant-legacy-form-item{width:100%;}.ant-legacy-form-item-control-wrapper{width:80%;}.docker-file-container{padding-left:0;}.ant-legacy-form-item-label{width:108px;margin-left:-38px;}.from-div{line-height:22px;}.CodeMirror-code > div{line-height:18px;}}"]),N=T.MODEL_TYPE.getCodeAndDescList(),A={marginTop:16},R={width:"100%"},F={width:"100%",minWidth:"600px",marginTop:6},O=function(e){function t(a){var n=this;(0,p.default)(this,t);var o=(0,f.default)(this,e.call(this,a));o.updateSetDockerFile=function(e){o.setState({dockerFilesLoading:!0}),(0,w.updateSetDockerFileSort)(e,{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:"logpath",model:"model"}).then((function(e){for(var t=[],a=0;a<e.length;a++){var n=e[a];"hand"===e[a].type&&(n.type="model"),t.push(n)}o.dockerFileSort=t,o.setState({dockerFilesLoading:!1})}))},o.setPackageValidateFunc=function(e,t){o.fileFuncs[e]=t},o.fetchData=function(){if(o.props.modelId){var e=(0,c.default)({},o.state.moduleData,{modelId:o.props.modelId,packageId:o.props.versionId,sourceType:"MODEL"});o.setState({moduleData:e}),o.props.onStructureTypeChange("MODEL")}else if(o.props.mirrorId){var t=(0,c.default)({},o.state.moduleData,{sourceType:"MIRRORVERSION",mirrorId:o.props.mirrorId,mirrorVersionId:o.props.versionId});o.setState({moduleData:t}),o.props.onStructureTypeChange("MIRRORVERSION")}},o.validateFun=function(){var e=!1;o.props.form.validateFieldsAndScroll((function(t){null===t?e=!0:o.setState({panelCollapse:!0})}));var t=o.state.moduleData;return"MODEL"===t.sourceType?o.fileFuncs=_.omit(o.fileFuncs,["MirrorVersionSelect"]):o.fileFuncs=_.omit(o.fileFuncs,["ModeVersionSelect"]),Object.keys(o.fileFuncs).map((function(a){var n=o.fileFuncs[a];if(_.isFunction(n)){var s=n.call();e&&(e=s.validate),t=(0,c.default)({},t,s.moduleData)}})),t=o.getOmitModuleData(t),{validate:e,moduleData:(0,c.default)({},t)}},o.getOmitModuleData=function(e){return"MODEL"===e.sourceType?e=(0,c.default)({},e,{mirrorId:"",mirrorVersionId:""}):"MIRRORVERSION"===e.sourceType&&(e=(0,c.default)({},e,{modelId:"",modelVersionId:"",packageId:"",workDir:"",dockerFile:""})),e},o.handleSourceTypeChange=function(e){o.handleParamsChange("sourceType",e),o.props.onStructureTypeChange&&o.props.onStructureTypeChange(e)},o.setParams=function(){},o.handleParamsChange=function(e,t){o.setState((function(a){var n=(0,c.default)({},a.moduleData);return n[e]=t,{moduleData:n}}))},o.handleEnvsChange=function(e){o.handleParamsChange("envVars",e)},o.handleMirrorInfoChange=function(e){o.setState((function(t){return{moduleData:(0,c.default)({},t.moduleData,e)}}),(function(){o.props.form.setFieldsValue(e)}))},o.validateMirrorPort=function(e,t,a){t&&(!/^[0-9]\d*$/.test(t)||t<1||t>65534)&&a("\u8bf7\u8f93\u51651-65534\u4e4b\u95f4\u7684\u6b63\u6574\u6570"),a()},o.setModelVersionDockerfile=function(e,t){if(e){var a={key:"",value:e,type:"model"};o.getDockerfileContent(a,null,null,null,t)}},o.setStartParams=function(e,t,a){if(t){var n={key:"",value:t,type:{workDir:"workdir",mirrorPort:"port",startCommand:"startcommond",logInnerPath:"logpath"}[e]};o.getDockerfileContent(n)}o.handleParamsChange(e,t,a)},o.handleEnvsChange=function(){var e=(0,u.default)(l.default.mark((function e(t,a,s,r){var i;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i="minus"!==a?t[s]:r).name.trim()&&i.value.trim()&&"add"!==a&&(i.key=i.name?i.name:"",i.type="env",o.getDockerfileContent(i,s,a,t));case 2:case"end":return e.stop()}}),e,n)})));return function(t,a,n,o){return e.apply(this,arguments)}}(),o.getDockerfileContent=function(e,t,a,n,s){o.setState({dockerFilesLoading:!0});var r=void 0;(0,C.getDockerfileContent)({paramjson:e}).then((function(i){if("00000"===i.code){var l=s?o.state.dockerFile:i.data;if(l)if(l=l?l.replace(/\\n/g,"\n"):"",r=(0,w.editDockerFileByAuto)(o.dockerFileSort,l,t,a,n,e.type),o.dockerFileSort=r.dockerFileSort,s)o.setState({dockerFilesLoading:!1});else{var u=(0,w.transitionDockerFileSort)(o.dockerFileSort);o.handleParamsChange("dockerFile",u),o.setState({dockerFile:u,dockerFilesLoading:!1})}else o.setState({dockerFilesLoading:!1})}else(i.code="99999")&&(d.default.error(i.message),o.setState({dockerFilesLoading:!1}));"env"===e.type&&o.handleParamsChange("envVars",r.array)})).catch((function(){o.setState({dockerFilesLoading:!1})}))},o.setDockerFile=function(e){o.dockerFileSort=(0,w.editDockerFileByHand)(o.dockerFileSort,e);var t=(0,w.transitionDockerFileSort)(o.dockerFileSort);o.setState({dockerFile:t}),o.handleParamsChange("dockerFile",t)};var s=o.props.setValidateFunc;return o.state={moduleData:a.moduleData,panelCollapse:!0,dockerFile:a.moduleData.dockerFile?a.moduleData.dockerFile:"publish"===a.actionType?"EXPOSE 5000":"",dockerFilesLoading:!1},o.fileFuncs={},_.isFunction(s)&&s("startParamsConfig",o.validateFun),o.dockerFileSort="publish"===a.actionType?[{type:"port",data:"EXPOSE 5000",sort:321}]:[],o}return(0,m.default)(t,e),t.prototype.componentDidMount=function(){this.updateSetDockerFile(this.props.moduleData),this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.moduleData,d=t.panelCollapse,l=t.dockerFile,u=t.dockerFilesLoading,c=this.props.form.getFieldDecorator,p=this.props,f=p.publishStep,m=p.actionType;["DEPLOY","REGISTER"].includes(f);return!1,(0,i.default)(L,{},void 0,(0,i.default)(b.ModelConfigPanel,{title:"\u9009\u62e9\u5185\u5bb9",style:R},void 0,(0,i.default)(y.Form,{labelAlign:"right"},void 0,(0,i.default)(r.default,{},void 0,(0,i.default)(k,{disabled:Boolean(this.props.modelId)||Boolean(this.props.mirrorId)||!1,onChange:function(t){return e.handleSourceTypeChange(t.target.value)},value:a.sourceType},void 0,N.map((function(e){return(0,i.default)(g.default,{value:e.code,style:{marginRight:180}},e.code,e.desc)})))),"MODEL"===a.sourceType?(0,i.default)(S.default,{actionType:m,modelId:a.modelId,packageId:a.packageId,reasonType:"ONLINE",disabled:Boolean(this.props.modelId)||!1,applicationId:this.props.applicationId,setValidateFunc:this.setPackageValidateFunc,onApplicationChange:this.props.onApplicationChange,onApiInterfacesChange:this.props.onApiInterfacesChange,setModelVersionDockerfile:this.setModelVersionDockerfile,setParams:this.setParams,onModelDeployTypeChange:this.props.onModelDeployTypeChange,onApiSchemaChange:this.props.onApiSchemaChange}):(0,i.default)(I.default,{actionType:m,mirrorId:a.mirrorId,mirrorVersionId:a.mirrorVersionId,disabled:Boolean(this.props.mirrorId)||!1,applicationId:this.props.applicationId,setValidateFunc:this.setPackageValidateFunc,onApplicationChange:this.props.onApplicationChange,onApiSchemaChange:this.props.onApiSchemaChange,onMirrorInfoChangeInfo:this.handleMirrorInfoChange,onChangeMirrorVersionId:this.props.onChangeMirrorVersionId,mirrorType:"ONLINE"}))),(0,i.default)(b.ModelConfigPanel,{title:"\u914d\u7f6e\u542f\u52a8\u53c2\u6570",style:R,collapse:d,onToggleExpand:function(t){e.setState({panelCollapse:t})}},void 0,(0,i.default)(y.Form,{layout:"inline",labelAlign:"right"},void 0,(0,i.default)(r.default,{style:A},void 0,(0,i.default)(M,{label:"\u542f\u52a8\u547d\u4ee4",className:"sm-label"},void 0,c("startCommand",{initialValue:a.startCommand})((0,i.default)(P,{autoSize:{minRows:3,maxRows:5},style:F,placeholder:"\u8bf7\u8f93\u5165\u542f\u52a8\u547d\u4ee4",disabled:!1,onBlur:function(t){return e.setStartParams("startCommand",t.target.value)}}))),(0,i.default)(M,{help:""},void 0,(0,i.default)(s.default,{title:"\u591a\u547d\u4ee4\u8bf7\u7528\u201c;\u201d\u9694\u79bb"},void 0,(0,i.default)(E.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"})))),-1===_.indexOf(["upgrade","onlineEdit"],this.props.actionType)&&(0,i.default)(r.default,{style:A},void 0,(0,i.default)(M,{label:"\u670d\u52a1\u7aef\u53e3",className:"sm-label"},void 0,c("mirrorPort",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u7aef\u53e3"},{validator:this.validateMirrorPort}],initialValue:a.mirrorPort})((0,i.default)(o.default,{disabled:!0,placeholder:"\u670d\u52a1\u7aef\u53e3",onBlur:function(t){return e.setStartParams("mirrorPort",t.target.value)}})))),"MODEL"===a.sourceType&&(0,i.default)(r.default,{style:A},void 0,(0,i.default)(M,{label:"\u5de5\u4f5c\u76ee\u5f55",className:"sm-label"},void 0,c("workDir",{initialValue:a.workDir})((0,i.default)(h.default,{style:{width:200},placeholder:"\u8bf7\u8f93\u5165\u5de5\u4f5c\u76ee\u5f55",disabled:!1,onBlur:function(t){return e.setStartParams("workDir",t.target.value)}})))),(0,i.default)(r.default,{style:A},void 0,(0,i.default)(M,{label:"\u65e5\u5fd7\u8def\u5f84",className:"sm-label"},void 0,c("logInnerPath",{initialValue:a.logInnerPath})((0,i.default)(h.default,{style:{width:200},placeholder:"\u8bf7\u8f93\u5165\u65e5\u5fd7\u8def\u5f84",disabled:!1,onBlur:function(t){return e.setStartParams("logInnerPath",t.target.value)}})))),(0,i.default)(n.default,{spinning:u,tip:"\u547d\u4ee4\u751f\u6210\u4e2d\u8bf7\u7a0d\u540e...."},void 0,(0,i.default)(j.default,{getFieldDecorator:c,wrapStyle:A,labelText:"\u73af\u5883\u53d8\u91cf",disabled:!1,envVariables:a.envVars,onMirrorChange:function(t,a,n,o){e.handleEnvsChange(t,a,n,o)}}),"MODEL"===a.sourceType&&(0,i.default)(b.DockerfileContainer,{style:{paddingLeft:10},dockerFiles:l,setDockerFile:function(t){e.setDockerFile(t)}})))))},t}(v.default.PureComponent);t.default=y.Form.create()(O)},"./src/module/modelService/style.js":function(e,t,a){"use strict";t.__esModule=!0,t.CreateModelServiceDom=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n};t.CreateModelServiceDom=s.default.div.withConfig({displayName:"style__CreateModelServiceDom",componentId:"sc-9p840-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;min-height:500px;width:100%;background:rgb(255,255,255);padding:14px 16px 50px;margin-top:0;.ant-legacy-form-item-label{width:100px;}span.ant-radio + *{padding-left:4%;padding-right:8px;}.ant-divider-horizontal{margin:0px 0 10px;}.help{margin-left:-5px;width:14px;height:14px;border:1px solid #a2b0c4;display:inline-block;border-radius:50%;text-align:center;line-height:1;cursor:pointer;}.span__wrapper{display:flex;margin-right:60px;}.span__label{flex-shrink:0;}.span__item{margin-left:16px;}.model-buttons{text-align:right;line-height:70px;padding-right:50px;}.ant-radio-wrapper{vertical-align:top;line-height:40px;}.open-check-health{position:absolute;top:-18px;left:140px;}"])},"./src/module/modelService/utils.js":function(e,t,a){"use strict";t.__esModule=!0,t.getArrayByKeyIsRedo=t.getOptOffline=t.formatOfflineData=t.checkTaskNameIsRepeat=t.checkTaskIdentifyIsRepeat=t.getUpgradeParams=t.checkUriIsRepeat=t.checkNameIsRepeat=t.getParseData=t.serviceQuotaFormat=t.getStructureData=t.getCodeServiceOptPermission=t.getOptPermission=t.getNewOptPermission=t.getAvailableInstances=t.parseDetailInfo=void 0;var n=h(a("./node_modules/babel-runtime/regenerator/index.js")),o=h(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),s=h(a("./node_modules/babel-runtime/helpers/extends.js")),r=h(a("./node_modules/lodash/lodash.js")),i=a("./src/module/modelService/modelEnums.js"),d=a("./src/module/modelService/offlineInference/modelEnums.js"),l=a("./src/module/modelService/codeService/modelEnums.js"),u=a("./src/utils/commonUtil.js"),c=h(a("./src/redux/services/offlineInference.js")),p=a("./src/redux/services/modelService.js"),f=a("./src/module/modelMirror/util.js"),m=a("./src/components/auth/AuthWrapper.jsx");function h(e){return e&&e.__esModule?e:{default:e}}var g=function(){var e=(0,o.default)(n.default.mark((function e(t,a,o,s){var i;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.checkServiceAttrRepeat)({jsonParam:{repeatValue:t,serviceId:a||"",deployEnv:s}},o);case 2:return i=e.sent,e.abrupt("return",r.default.get(i,"data.success"));case 4:case"end":return e.stop()}}),e,void 0)})));return function(t,a,n,o){return e.apply(this,arguments)}}(),v=function(){var e=(0,o.default)(n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.default.checkTaskIdentifyRepeat(t);case 2:return a=e.sent,e.abrupt("return",r.default.get(a,"data.isRepeat"));case 4:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=(0,o.default)(n.default.mark((function e(t,a,o){var s;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.default.checkNameRepeat(t,a,o);case 2:return s=e.sent,e.abrupt("return",r.default.get(s,"data.isRepeat"));case 4:case"end":return e.stop()}}),e,void 0)})));return function(t,a,n){return e.apply(this,arguments)}}(),y=function(){var e=(0,o.default)(n.default.mark((function e(t,a){var o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,checkServiceParamRepeat({jsonParam:{repeatValue:t,serviceId:a||""}});case 2:return o=e.sent,e.abrupt("return",r.default.get(o,"data.success"));case 4:case"end":return e.stop()}}),e,void 0)})));return function(t,a){return e.apply(this,arguments)}}();t.parseDetailInfo=function(e){var t=(0,u.isJsonString)(e.resQuotaConf)?r.default.get(JSON.parse(e.resQuotaConf),"request","{}"):"{}",a=e.webParams||{};(0,u.isJsonString)(a)&&(a=JSON.parse(a));var n=r.default.get(a,"mirror",{})||{};return(0,s.default)({},e,n,{deployBusinessType:e.appId,resQuotaType:e.deployEnv,quotaSetting:t,deployArrange:r.default.get(a,"deploy.deploymentConfigRespDtos[0].deployArrange"),deploymentHealthcheckReadiness:r.default.get(a,"deploy.deploymentConfigRespDtos[0].deploymentHealthcheckReadiness"),deploymentHealthcheckLiveness:r.default.get(a,"deploy.deploymentConfigRespDtos[0].deploymentHealthcheckLiveness"),mirrorName:r.default.get(n,"mirrorShowName"),mirrorVersionName:r.default.get(n,"modelVersionId"),deploymentLinkType:r.default.get(a,"deploy.deploymentLinkType"),modelId:r.default.get(n,"modelId"),modelVersionId:r.default.get(n,"modelVersionId"),modelName:r.default.get(n,"modelId"),versionName:r.default.get(n,"modelVersionId"),startCommand:r.default.get(a,"deploy.deploymentConfigRespDtos[0].deployStartcommand"),deploymentPort:r.default.get(a,"deploy.deploymentConfigRespDtos[0].deployPort"),workDir:r.default.get(n,"workDir"),logInnerPath:r.default.get(n,"logInnerPath"),deployEnvs:r.default.get(n,"envVars")})};t.getAvailableInstances=function(e){var t=e.requestQuota,a=e.availableQuota,n=0;if(!a.cpu||!a.memory||!a.gpu_card&&t.gpu_card)return n;var o=t.cpu?a.cpu/t.cpu:1/0,s=t.memory?a.memory/t.memory:1/0,r=t.gpu_card?a.gpu_card/t.gpu_card:1/0;return n=(n=Math.floor(Math.min(o,s,r)))===1/0?1:n,t.instances>n&&(t.instances=n),n},t.getNewOptPermission=function(e,t){return{viewMirror:["MIRROR","DEPLOY","REGISTER"].includes(e),view:["DEPLOY","REGISTER"].includes(e),reset:["STOPED","ERROR"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.UPDATE_MODEL_SERVICE"),start:["STOPED"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.START_MODEL_SERVICE"),restart:["SUCCESS"].includes(t)&&["REGISTER"].includes(e)&&(0,m.isAuth)("MODEL_SERVICE.RETRY_MODEL_SERVICE"),stop:["PROCESSING","SUCCESS"].includes(t)&&["DEPLOY","REGISTER"].includes(e)&&(0,m.isAuth)("MODEL_SERVICE.STOP_MODEL_SERVICE"),delete:["STOPED","ERROR"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.DELETE_MODEL_SERVICE"),success:["SUCCESS"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.ASSOCIATED_MODEL_SERVICE"),reassign:!1,impower:!1}},t.getOptPermission=function(e){var t=Number(r.default.get(e,"value"))||e||i.REASONING_SERVICE_STATUS.EDITING;return{restart:[i.REASONING_SERVICE_STATUS.RUNNING,"RUNNING"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.RETRY_MODEL_SERVICE_VERSION"),start:[i.REASONING_SERVICE_STATUS.STOP,"STOP"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.START_MODEL_SERVICE_VERSION"),stop:[i.REASONING_SERVICE_STATUS.CREATE,i.REASONING_SERVICE_STATUS.STARTING,i.REASONING_SERVICE_STATUS.RUNNING,"CREATE","STARTING","RUNNING"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.STOP_MODEL_SERVICE_VERSION"),delete:[i.REASONING_SERVICE_STATUS.ERROR,i.REASONING_SERVICE_STATUS.STOP,"STOP","ERROR"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.DELETE_MODEL_SERVICE_VERSION"),reassign:[i.REASONING_SERVICE_STATUS.RUNNING,"RUNNING"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.SCALE_MODEL_SERVICE_VERSION"),config:[i.REASONING_SERVICE_STATUS.RUNNING,"RUNNING"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.SPEC_MODEL_SERVICE_VERSION"),upgrade:[i.REASONING_SERVICE_STATUS.RUNNING,"RUNNING"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.UPGRADE_MODEL_SERVICE_VERSION"),onlineEdit:[i.REASONING_SERVICE_STATUS.RUNNING,"RUNNING"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.UPDATE_MODEL_SERVICE_VERSION"),ingressEdit:[i.REASONING_SERVICE_STATUS.RUNNING,"RUNNING"].includes(t),grayPublish:[i.REASONING_SERVICE_STATUS.RUNNING,"RUNNING"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.GRAY_MODEL_SERVICE_VERSION"),flowConfig:[i.REASONING_SERVICE_STATUS.RUNNING,"RUNNING"].includes(t)&&(0,m.isAuth)("MODEL_SERVICE.FLOW_MODEL_SERVICE_VERSION"),impower:!1}},t.getCodeServiceOptPermission=function(e){return{view:!0,edit:[l.CODE_SERVICE_STATUS.STOPPED,l.CODE_SERVICE_STATUS.ERROR].includes(e),start:[l.CODE_SERVICE_STATUS.STOPPED].includes(e),stop:[l.CODE_SERVICE_STATUS.STARTING,l.CODE_SERVICE_STATUS.RUNNING].includes(e),delete:[l.CODE_SERVICE_STATUS.ERROR,l.CODE_SERVICE_STATUS.STOPPED].includes(e),reassign:[l.CODE_SERVICE_STATUS.RUNNING].includes(e),copy:!0,code:[l.CODE_SERVICE_STATUS.RUNNING].includes(e)}},t.getStructureData=function(e,t){var a=r.default.get(e,"startParamsConfig.envVars",[]),n=(0,f.getEnvVars)(a);return(0,s.default)({},e.baseInfo,{servicePath:r.default.get(e,"serviceUrlConfig.deployAdress",""),mirror:(0,s.default)({},e.startParamsConfig,{mirrorType:"ONLINE",baseType:"REASONING"},e.ioSchemaPage,{envVars:n}),deploy:{logInnerPath:r.default.get(e,"startParamsConfig.logInnerPath",""),deployShowName:r.default.get(e,"baseInfo.serviceName",""),deployDesc:r.default.get(e,"baseInfo.serviceDesc",""),deployBusinessType:r.default.get(e,"baseInfo.serviceBusinessTpe",""),deployReplicas:r.default.get(e,"computingResource.instances_min",1),deployType:"RAPIDMODEL",deployEnvType:t,deploymentIngressAddress:r.default.get(e,"serviceUrlConfig.deploymentIngressAddress",""),deploymentLinkType:r.default.get(e,"serviceUrlConfig.deploymentLinkType",""),deploymentConfigRespDtos:[{deployStartcommand:r.default.get(e,"startParamsConfig.startCommand",""),deployEnvs:n,deployPort:r.default.get(e,"startParamsConfig.mirrorPort",""),deploymentWorkingDir:r.default.get(e,"startParamsConfig.workDir",""),deployAdressType:r.default.get(e,"serviceUrlConfig.deployAdressType",""),deployAdress:r.default.get(e,"serviceUrlConfig.deployAdress",""),deployConfig:r.default.get(e,"computingResource",{}),deployArrange:r.default.get(e,"serviceOrchestration",""),mirrorId:r.default.get(e,"startParamsConfig.mirrorId",""),mirrorVersionId:r.default.get(e,"startParamsConfig.mirrorVersionId",""),deploymentHealthcheckReadiness:r.default.get(e,"healthCheckConfig.deploymentHealthcheckReadiness",""),deploymentHealthcheckLiveness:r.default.get(e,"healthCheckConfig.deploymentHealthcheckLiveness","")}]},quota:r.default.get(e,"computingResource",{})})},t.serviceQuotaFormat=function(e,t){var a="",n="";if(e){var o=r.default.get(e,"instances_min",1),s=r.default.get(e,"cpu",0),i=r.default.get(e,"memory",0);n=r.default.get(e,"flinkClusterId");var d="";if(e.gpu&&Array.isArray(e.gpu))for(var l=0;l<e.gpu.length;l++){var u=e.gpu[l];d=d+(d?" ":"")+o*(u.gpuNumber||0)+"\u5f20 "+(u.gpuNumber>0?u.gpuModelName:"")}a=s*o+"C/"+i*o+"GB"+(d?"/"+d:"")}return n?a+","+(t[n]||n):a},t.getParseData=function(e){var t=r.default.get(e,"webParams"),a=r.default.get(e,"mirrorVersionInfo"),n=r.default.get(e,"deploymentInfo"),o=(0,u.isJsonString)(t)?JSON.parse(t):{};a=(0,u.isJsonString)(a)?JSON.parse(a):{};var i=(n=(0,u.isJsonString)(n)?JSON.parse(n):{})&&!r.default.isEmpty(n)?(0,s.default)({},n,{deployReplicas:r.default.get(n,"deploymentReplicas"),deployEnvType:r.default.get(n,"deploymentEnvType"),deploymentConfigRespDtos:r.default.get(n,"deploymentConfigRespDtos"),deployId:r.default.get(n,"deployId"),deploymentIngressAddress:r.default.get(n,"deploymentIngressAddress",""),deploymentLinkType:r.default.get(n,"deploymentLinkType","")}):r.default.get(o,"deploy"),d=r.default.get(i,"deploymentConfigRespDtos[0]"),l=a?{mirrorType:r.default.get(a,"versionType"),mirrorId:r.default.get(a,"mirrorId"),mirrorVersionId:r.default.get(a,"versionId"),modelId:r.default.get(a,"modelId"),modelVersionId:r.default.get(a,"modelVersionId"),packageId:r.default.get(a,"packageId"),workDir:r.default.get(a,"workDir"),envVars:r.default.get(a,"envVars",[])?(r.default.get(a,"envVars",[])||[]).map((function(e,t){return{name:e.envKey,value:e.envValue,index:(new Date).getTime()+t}})):[],language:r.default.get(a,"language"),baseId:r.default.get(a,"baseId"),startCommand:r.default.get(a,"startCommand")||r.default.get(d,"deployStartcommand"),baseType:"REASONING",dockerFile:r.default.get(a,"dockerFile"),mirrorShowName:r.default.get(a,"mirrorShowName"),sourceType:"CODE"===r.default.get(e,"artifactType")||"MODEL"===r.default.get(e,"artifactType")?"MODEL":"MIRRORVERSION",engine:r.default.get(a,"versionEngine"),baseMirrorId:r.default.get(a,"baseMirrorId"),mirrorPort:r.default.get(a,"port"),businessType:r.default.get(a,"businessType"),apiSchema:r.default.get(a,"apiSchema"),frame:r.default.get(a,"frame"),logInnerPath:r.default.get(a,"logInnerPath")}:(0,s.default)({},r.default.get(o,"mirror"),{sourceType:"CODE"===r.default.get(o,"mirror.sourceType")||"MODEL"===r.default.get(o,"mirror.sourceType")?"MODEL":"MIRRORVERSION"}),c=r.default.get(e,"deployEnv"),p=r.default.get(d,"deployArrange"),f=r.default.get(d,"deploymentHealthcheckReadiness"),m=r.default.get(d,"deploymentHealthcheckLiveness"),h=r.default.get(d,"deployConfig")||{};h=(0,u.isJsonString)(h)?JSON.parse(h):h;var g=r.default.get(i,"deployReplicas");h=(0,s.default)({},h,{instances_min:g});var v=r.default.get(i,"deployId");return{allModuleData:{baseInfo:{serviceBusinessTpe:r.default.get(e,"appId"),serviceName:r.default.get(e,"serviceName"),serviceDesc:r.default.get(e,"serviceDesc"),versionNickName:r.default.get(e,"versionNickName")},startParamsConfig:l||{},computingResource:h,serviceUrlConfig:{deployAdressType:r.default.get(d,"deployAdressType"),deployAdress:e.servicePath||r.default.get(d,"deployAdress"),deploymentIngressAddress:r.default.get(i,"deploymentIngressAddress"),deploymentLinkType:r.default.get(i,"deploymentLinkType")},serviceOrchestration:(0,u.isJsonString)(p)?JSON.parse(p):{},ioSchemaPage:r.default.get(l,"apiSchema",[])||[],healthCheckConfig:{deploymentHealthcheckReadiness:(0,u.isJsonString)(f)?JSON.parse(f):{},deploymentHealthcheckLiveness:(0,u.isJsonString)(m)?JSON.parse(m):{}}},pubEnvType:c,publishStep:r.default.get(e,"stage"),deployId:v,artifactType:r.default.get(e,"artifactType")}},t.checkNameIsRepeat=g,t.checkUriIsRepeat=y,t.getUpgradeParams=function(e,t,a){return{submitData:"MIRRORVERSION"===a.sourceType?{logInnerPath:a.logInnerPath,startCommand:a.startCommand,mirrorPort:a.mirrorPort,envVars:a.envVars,versionId:t.mirrorVersionId,newVersionId:a.mirrorVersionId,sourceType:a.sourceType}:(0,s.default)({},a,{eventType:"MODIFY"})}},t.checkTaskIdentifyIsRepeat=v,t.checkTaskNameIsRepeat=_,t.formatOfflineData=function(e){var t=r.default.cloneDeep(e);t.replicaCnt=r.default.get(t,"resQuotaConf.instances_min"),delete t.resQuotaConf.instances_min,t.runEnvParam.push({envName:"AI_JOB_LOG_PATH",envValue:r.default.get(t,"logPath","")}),t.runEnvParam.push({envName:"AI_JOB_DATA_PATH",envValue:r.default.get(t,"dataPath","")}),t.runEnvParam.push({envName:"AI_JOB_WORK_PATH",envValue:r.default.get(t,"workPath","")}),delete t.logPath,delete t.dataPath,delete t.workPath,delete t.envVars,"MODEL"===t.deployArtifact?(t.artifactId=r.default.get(t,"modelId"),t.artifactVersionId=r.default.get(t,"modelVersionId"),t.baseMirrorVersionId=r.default.get(t,"baseId"),t.packageId=r.default.get(t,"packageId"),delete t.codeId,delete t.codeId,delete t.modelId,delete t.modelVersionId):"CODE"===t.deployArtifact?(t.artifactId=r.default.get(t,"codeId"),t.artifactVersionId=r.default.get(t,"codeVersionId"),t.baseMirrorVersionId=r.default.get(t,"baseId"),delete t.codeId,delete t.codeVersionId,delete t.baseId,delete t.baseMirrorId,delete t.language,delete t.frame,delete t.engine,t.dockerFile=t.from+"\n"+t.dockerFile,delete t.from):"MIRRORVERSION"===t.deployArtifact&&delete t.dockerFile;for(var a=[],n=0;n<t.runEnvParam.length;n++)""!==t.runEnvParam[n].name&&""!==t.runEnvParam[n].value&&(t.runEnvParam[n].name?a.push({envName:t.runEnvParam[n].name,envValue:t.runEnvParam[n].value}):a.push(t.runEnvParam[n]));return t.runEnvParam=a,t},t.getOptOffline=function(e){return{down:[d.REASONING_PROCESS_STATUS,"SUCCESS"].includes(e),up:[i.REASONING_SERVICE_STATUS,"OFFLINE"].includes(e),test:[d.REASONING_PROCESS_STATUS,"SUCCESS"].includes(e)}},t.getArrayByKeyIsRedo=function(e,t){for(var a=!1,n=function(n){var o=r.default.cloneDeep(e);o.splice(n,1),-1!==r.default.findIndex(o,(function(a){return a[t]==e[n][t]}))&&(a=!0)},o=0;o<e.length;o++)n(o);return a}},"./src/module/modelTrain/ModelTrainTabsPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/react/index.js")),d=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),l=a("./src/components/index.js"),u=a("./src/redux/reducers/modelManage.js"),c=a("./src/redux/selectors/modelManage.js"),p=m(a("./src/module/modelTrain/components/ModelTrainTabs.jsx")),f=m(a("./src/module/modelTrain/components/ModelDeepLearnTabs.jsx"));function m(e){return e&&e.__esModule?e:{default:e}}var h=(0,n.default)(l.LoadingIndicator,{}),g=(0,n.default)(l.LoadingIndicator,{}),v=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){("create"!==this.props.action&&"guide"===this.props.createType||"deepLearn"===this.props.createType)&&this.props.dispatch(u.modelManageActions.getModelBasicInfoRequest({modelId:this.props.modelId}))},t.prototype.componentWillUnmount=function(){this.props.dispatch(u.modelManageActions.resetModelBasicInfo())},t.prototype.render=function(){return"guide"===this.props.createType?"create"!==this.props.action&&!1!==this.props.loading?h:(0,n.default)(p.default,{viewType:this.viewType,modelId:this.props.modelId,activeTab:this.props.action,modelInfo:this.props.modelInfo}):"deepLearn"===this.props.createType?"create"!==this.props.action&&!1!==this.props.loading?g:(0,n.default)(f.default,{modelInfo:this.props.modelInfo,createType:this.props.createType,modelId:this.props.modelId,activeTab:this.props.action}):void 0},t}(i.default.PureComponent);t.default=(0,d.connect)((function(e,t){return{modelId:_.get(t.match.params,"modelId"),action:_.get(t.match.params,"action"),createType:_.get(t.match.params,"createType"),loading:(0,c.selectModelBasicInfoLoading)(e),modelInfo:(0,c.selectModelBasicInfo)(e)}}))(v)},"./src/module/modelTrain/components/ModelDeepLearnTabs.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=p(a("./node_modules/react/index.js")),l=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(p(a("./node_modules/prop-types/index.js")),p(a("./src/module/modelEdit/modelDeepLearn/ModelDeepLearnConfigPage.jsx"))),c=a("./src/components/exception/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=i.default.TabPane,m=l.default.div.withConfig({displayName:"ModelDeepLearnTabs__ModelDeepLearnTabsWrapper",componentId:"sc-1etoiv8-0"})(["width:100%;position:relative;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelTrain-tabs{.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-nav-scroll{display:flex;justify-content:center;}.ant-tabs-tab{font-size:16px;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-active{padding:0 50px;min-height:400px;}}"]),h=l.default.div.withConfig({displayName:"ModelDeepLearnTabs__TabContent",componentId:"sc-1etoiv8-1"})(["background:#fff;min-height:500px;width:100%;padding:10px 30px 50px 30px;"]),g=(0,n.default)("span",{className:"page-title"},void 0,"\u6a21\u578b\u8bad\u7ec3"),v=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={},n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(){return null},t.prototype.render=function(){var e=this.props,t=e.createType,a=e.activeTab,o=e.modelId,s=e.modelInfo;return(0,n.default)(m,{},void 0,g,(0,n.default)(i.default,{activeKey:"tab-"+t,className:"modelTrain-tabs"},void 0,(0,n.default)(f,{tab:"\u53ef\u89c6\u5316\u6df1\u5ea6\u5b66\u4e60\u5efa\u6a21"},"tab-deepLearn",(0,n.default)(h,{},void 0,(0,n.default)(c.ErrorBoundary,{},void 0,(0,n.default)(u.default,{modelId:o,modelInfo:s,viewType:a}))))))},t}(d.default.PureComponent);t.default=v},"./src/module/modelTrain/components/ModelTrainTabs.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=h(a("./node_modules/react/index.js")),l=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(h(a("./node_modules/prop-types/index.js")),h(a("./src/module/modelTrain/trainProcess/ModelTrainProcessPage.jsx"))),c=h(a("./src/module/modelTrain/trainResult/ModelTrainResultPage.jsx")),p=h(a("./src/module/modelEdit/modelConfig/ModelConfigPage.jsx")),f=a("./src/constant/constantConfig.jsx"),m=a("./src/components/exception/index.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=i.default.TabPane,v=l.default.div.withConfig({displayName:"ModelTrainTabs__ModelTrainTabsWrapper",componentId:"sc-1w52osa-0"})(["width:100%;position:relative;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelTrain-tabs{.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-nav-scroll{display:flex;justify-content:center;}.ant-tabs-tab{font-size:16px;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-active{padding:0 50px;min-height:400px;}}"]),y=l.default.div.withConfig({displayName:"ModelTrainTabs__TabContent",componentId:"sc-1w52osa-1"})(["background:#fff;min-height:500px;width:100%;padding:16px;"]),b=(0,n.default)("span",{className:"page-title"},void 0,"\u6a21\u578b\u8bad\u7ec3"),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onChange=function(e){n.setState({onChangeTab:!0,tabKey:e.split("-")[1]})},n.state={processDisabled:!1,resultDisabled:!1,onChangeTab:!1,tabKey:"config"},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.activeTab,a=e.modelInfo,n=this.state.tabKey;if(_.includes(["view"],t)&&a.size>0){var o=_.toInteger(f.modelConstant.getModelTypeTrain()),s=_.toInteger(f.modelConstant.getModelTypeResolve()),r=_.toInteger(f.modelConstant.getModelTypeError());n=_.includes([o,r],a?a.toJS().status:"")&&!this.state.onChangeTab?_.includes(["view"],t)?"process":t:_.includes([s],a?a.toJS().status:"")?"result":_.includes(["edit","view","create"],t)?"config":t}else n=_.includes(["edit","view","create"],t)?"config":t;this.setState({tabKey:n})},t.getDerivedStateFromProps=function(e){var t=e.modelInfo;if(t&&t.toJS||void 0!==e.modelId&&null!==e.modelId&&""!==e.modelId){var a=null!==t?t.toJS():"",n=!1,o=!1,s=_.toInteger(f.modelConstant.getModelTypeExtraction()),r=_.toInteger(f.modelConstant.getModelTypePrepare()),i=_.toInteger(f.modelConstant.getModelTypeProcess()),d=_.toInteger(f.modelConstant.getModelTypeComit());if(void 0!==e.modelId&&null!==e.modelId&&""!==e.modelId||-1===_.indexOf([s,r,i,d],_.toInteger(a.status))){if(-1!==_.indexOf([r,i],_.toInteger(a.status)))return{processDisabled:!1,resultDisabled:!1};var l=_.toInteger(f.modelConstant.getModelTypeTrain()),u=_.toInteger(f.modelConstant.getModelTypeResolve()),c=_.toInteger(f.modelConstant.getModelTypeError());return(-1!==_.indexOf([l,u,c],_.toInteger(a.status))||void 0!==e.modelId&&null!==e.modelId&&""!==e.modelId)&&(n=!0),-1!==_.indexOf([u],_.toInteger(a.status))&&(o=!0),{processDisabled:n,resultDisabled:o}}}return null},t.prototype.render=function(){var e=this.props,t=e.activeTab,a=e.modelId,o=e.modelInfo;return(0,n.default)(v,{},void 0,b,(0,n.default)(i.default,{onChange:this.onChange,activeKey:"tab-"+this.state.tabKey,className:"modelTrain-tabs"},void 0,(0,n.default)(g,{tab:"\u6a21\u578b\u914d\u7f6e"},"tab-config",(0,n.default)(y,{},void 0,(0,n.default)(m.ErrorBoundary,{},void 0,(0,n.default)(p.default,{modelId:a,visible:"config"===this.state.tabKey,modelInfo:o,viewType:t})))),(0,n.default)(g,{disabled:this.state.processDisabled?"":"disabled",tab:"\u8bad\u7ec3\u8fc7\u7a0b"},"tab-process",(0,n.default)(y,{},void 0,(0,n.default)(m.ErrorBoundary,{},void 0,this.state.processDisabled&&(0,n.default)(u.default,{viewType:t,modelId:a,onTrainChange:this.onChange,modelInfo:o})))),(0,n.default)(g,{disabled:this.state.resultDisabled?"":"disabled",tab:"\u8bad\u7ec3\u7ed3\u679c"},"tab-result",(0,n.default)(y,{},void 0,(0,n.default)(m.ErrorBoundary,{},void 0,this.state.resultDisabled&&(0,n.default)(c.default,{modelId:a,modelInfo:o}))))))},t}(d.default.PureComponent);x.defaultProps={activeTab:"config"},t.default=x},"./src/module/modelTrain/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelTrain/modelManage/ModelManagePage.jsx");Object.defineProperty(t,"ModelManagePage",{enumerable:!0,get:function(){return i(n).default}});var o=a("./src/module/modelTrain/ModelTrainTabsPage.jsx");Object.defineProperty(t,"ModelTrainTabsPage",{enumerable:!0,get:function(){return i(o).default}});var s=a("./src/module/modelTrain/trainReport/ModelTrainReportPage.jsx");Object.defineProperty(t,"ModelTrainReportPage",{enumerable:!0,get:function(){return i(s).default}});var r=a("./src/module/modelTrain/modelManage/NotebookTransferPage.jsx");function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"NotebookTransferPage",{enumerable:!0,get:function(){return i(r).default}})},"./src/module/modelTrain/modelManage/ModelCardView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n,o=y(a("./node_modules/babel-runtime/helpers/jsx.js")),s=y(a("./node_modules/babel-runtime/helpers/extends.js")),r=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=y(a("./node_modules/babel-runtime/helpers/inherits.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelTrain\\modelManage\\ModelCardView.jsx",u=y(a("./node_modules/react/index.js")),c=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/lodash/lodash.js"))),f=(a("./node_modules/immutable3/dist/immutable.js"),a("./node_modules/react-redux/es/index.js")),m=a("./src/module/modelTrain/modelManage/components/index.js"),h=a("./src/components/index.js"),g=a("./src/components/exception/index.js"),v=a("./node_modules/react-virtualized/dist/es/index.js"),_=a("./src/redux/selectors/modelManage.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=(0,y(a("./src/containers/toJS.jsx")).default)(m.ModelCardItem),x=220,C=250,j=20,S=c.default.div.withConfig({displayName:"ModelCardView__ModelCardViewWrapper",componentId:"sc-1oux755-0"})(["display:flex;min-height:500px;flex-direction:row;justify-content:space-between;align-content:flex-start;flex-wrap:wrap;flex:1 1 auto;overflow:hidden;.ReactVirtualized__Masonry__innerScrollContainer{overflow:visible !important;margin-bottom:50px;}"]),I=(0,o.default)(h.LoadingIndicator,{}),T=(0,g.withErrorBoundary)(n=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n._initMasonry=function(e){n._colWidth=n._calcColWidth(e),n._cache||(n._cache=new v.CellMeasurerCache({defaultHeight:C,defaultWidth:n._colWidth,fixedWidth:!0,fixedHeight:!0,minWidth:n._colWidth})),n._cellPositioner||(n._cellPositioner=(0,v.createMasonryCellPositioner)({cellMeasurerCache:n._cache,columnCount:n._calculateColumnCount(e),columnWidth:n._colWidth,spacer:j}))},n._calculateColumnCount=function(e){return Math.floor(e/(x+j))},n._cellRenderer=function(e){var t=e.index,a=e.parent,r=e.style,i=n.props,d=i.modelData,l=i.onHandleAction,u=i.statusColorMap,c=(0,s.default)({},r,{top:(r.top||0)+15},{width:n._colWidth});if(0===t)return(0,o.default)(v.CellMeasurer,{cache:n._cache,index:t,parent:a},"CREATE",(0,o.default)(m.ModelCardItermCreate,{onCreateModel:l,style:c},"CREATE"));var f=d.get(t-1);return f?(0,o.default)(v.CellMeasurer,{cache:n._cache,index:t,parent:a},f.get("modelId")+p.default.uniqueId(),(0,o.default)(b,{modelInfo:f,statusColor:p.default.get(u,f.get("status"),""),style:c,dicHelper:n.props.dicHelper,"data-id":f.get("modelId"),onHandleAction:l},f.get("modelId"))):void 0},n._setMasonryRef=function(e){return n._masonry=e},n._calcColWidth=function(e){var t=void 0;if(e>0){var a=n._calculateColumnCount(e);t=x+(e-(x*a+j*(a-1)))/a}return p.default.isFinite(t)?t:x},n.renderMasonry=function(e){var t=e.height,a=e.registerChild,o=e.scrollTop;return function(e){var s=e.width,r=n.props.modelData;if(!p.default.isUndefined(s)&&0!==s)return n._width=s,n._initMasonry(s),u.default.createElement("div",{ref:a,__source:{fileName:l,lineNumber:139}},u.default.createElement(v.Masonry,{autoHeight:!0,cellCount:r.size+1,cellMeasurerCache:n._cache,cellPositioner:n._cellPositioner,cellRenderer:n._cellRenderer,height:t,scrollTop:o,overscanByPixels:500,width:s,tabIndex:-1,ref:n._setMasonryRef,__source:{fileName:l,lineNumber:140}}))}},n._handleResize=function(e){var t=e.width;p.default.isUndefined(t)||0===t||(n._colWidth=n._calcColWidth(n._width),n._masonry&&n._cache&&(n._cache.clearAll(),n.setState({columnWidth:n._colWidth},(function(){n._cellPositioner.reset({columnCount:n._calculateColumnCount(t),columnWidth:n._colWidth,spacer:j}),n._masonry&&n._masonry.clearCellPositions()}))))},n._renderAutoSizer=function(e){var t=e.height,a=e.isScrolling,s=e.registerChild,r=e.scrollTop,i=e.onChildScroll;return(0,o.default)(v.AutoSizer,{disableHeight:!0,height:t,onResize:n._handleResize,overscanByPixels:500},void 0,n.renderMasonry({height:t,isScrolling:a,registerChild:s,scrollTop:r,onChildScroll:i}))},n.state={columnWidth:x},n}return(0,d.default)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return(this.props.loading!=e.loading||this.props.modelData!==e.modelData||this.state.columnWidth!==t.columnWidth)&&(this.props.modelData!==e.modelData&&(this._cache&&this._cache.clearAll(),this._colWidth=this._calcColWidth(this._width),this._cellPositioner&&this._cellPositioner.reset({columnCount:this._calculateColumnCount(this._width),columnWidth:this._colWidth,spacer:j}),this._masonry&&this._masonry.clearCellPositions()),!0)},t.prototype.render=function(){var e=this.props.loading;return(0,o.default)(S,{className:"animated fadeIn"},void 0,e&&I,!e&&(0,o.default)(v.WindowScroller,{scrollingResetTimeInterval:500,overscanByPixels:500},void 0,this._renderAutoSizer))},t}(u.default.Component))||n;T.defaultProps={loading:!0};t.default=(0,f.connect)((function(e){return{modelData:(0,_.selectModelManageData)(e),loading:(0,_.selectDataLoading)(e)}}))(T)},"./src/module/modelTrain/modelManage/ModelCreateModal.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=h(a("./node_modules/react/index.js")),l=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/module/modelTrain/modelManage/components/index.js"),p=a("./src/redux/selectors/modelManage.js"),f=a("./src/redux/selectors/enumDic.js"),m=a("./src/components/auth/optionAuth.jsx");function h(e){return e&&e.__esModule?e:{default:e}}var g=i.default.TabPane,v=l.default.div.withConfig({displayName:"ModelCreateModal__TabsWrapper",componentId:"sc-1earn0z-0"})(["margin:-16px;.ant-tabs-nav-wrap{margin-bottom:-1px;overflow:hidden;height:50px;}.ant-tabs-nav .ant-tabs-tab{color:#1f2d3d;font-size:20px;}.ant-tabs-nav .ant-tabs-tab-active{color:#147bd1;font-weight:500;font-size:20px;}.ant-tabs-ink-bar{background-color:#147bd1;}"]),y={GUIDE:c.ModelGuide,CODE:c.ModelCode,DRAGDROP:c.ModelDragDrop},b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.callback=function(e){n.setState({tabKey:e})},n.state={tabKey:(0,m.getOneOption)("root.modelTrain.trainingMethod",a.modelClassify.list())},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.modelClassify.list();return(0,n.default)(v,{},void 0,(0,n.default)(i.default,{activeKey:this.state.tabKey,onChange:this.callback},void 0,t.map((function(t){var a=y[_.toUpper(t.code)];return a||console.error("\u7ec4\u4ef6"+t.value+"\u672a\u5b9a\u4e49"),(0,m.hasOption)("root.modelTrain.trainingMethod",t.value)&&(0,n.default)(g,{tab:""+t.txt},t.code,(0,n.default)(a,{onChang:e.onChange,data:t}))}))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{checkNameCode:(0,p.selectCheckNameCode)(e),modelClassify:(0,f.dicGroupHelper)(e,"MODELING_METHOD")}}))(b)},"./src/module/modelTrain/modelManage/ModelListView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/divider/index.js")),o=b(a("./node_modules/antd/es/table/index.js")),s=b(a("./node_modules/antd/es/tooltip/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var u=b(a("./node_modules/react/index.js")),c=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/lodash/lodash.js"))),f=(a("./node_modules/immutable3/dist/immutable.js"),b(a("./src/components/auth/funAuth.jsx"))),m=a("./src/constant/constantConfig.jsx"),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/components/index.js"),v=a("./node_modules/react-router-dom/esm/react-router-dom.js"),_=a("./src/routes/routeHelper.jsx"),y=a("./src/redux/selectors/modelManage.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=c.default.div.withConfig({displayName:"ModelListView__ModelListViewWrapper",componentId:"ewvg3i-0"})(["margin-top:15px;width:100%;transition:opacity 0.5s ease-in;"]),C=(0,r.default)(n.default,{type:"vertical"}),j=(0,r.default)(n.default,{type:"vertical"}),S=(0,r.default)("span",{},void 0,"\u4fee\u6539"),I=(0,r.default)(n.default,{type:"vertical"}),T=(0,r.default)(n.default,{type:"vertical"}),w=(0,r.default)(n.default,{type:"vertical"}),E=(0,r.default)(g.LoadingIndicator,{}),D=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.getModelEditUrl=function(e){return e.manner===n.code?_.modelTrainUrl.editModelForCode(e.modelId):_.modelTrainUrl.editModel(e.modelId,3===e.manner?"deepLearn":4===e.manner?"dragDrop":"guide",e.modelName)},n.state={},n.extraction=p.default.toInteger(m.modelConstant.getModelTypeExtraction()),n.prepare=p.default.toInteger(m.modelConstant.getModelTypePrepare()),n.process=p.default.toInteger(m.modelConstant.getModelTypeProcess()),n.comit=p.default.toInteger(m.modelConstant.getModelTypeComit()),n.train=p.default.toInteger(m.modelConstant.getModelTypeTrain()),n.resolve=p.default.toInteger(m.modelConstant.getModelTypeResolve()),n.error=p.default.toInteger(m.modelConstant.getModelTypeError()),n.code=p.default.toInteger(m.modelConstant.getModelMannerCode()),n.release=p.default.toInteger(m.modelConstant.getModelTypeRelease()),n.columns=[{dataIndex:"modelName",title:"\u6a21\u578b\u540d\u79f0",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"businessName",title:"\u4e1a\u52a1\u5206\u7c7b",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"stageBar",title:"\u8fdb\u5ea6",ellipsis:!0,render:function(e,t){return(7===t.manner&&8===t.status?100:t.stageBar>=0?100*parseInt(t.stageBar):0)+"%"}},{dataIndex:"mannerTxt",title:"\u5efa\u6a21\u65b9\u5f0f",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"stageTxt",title:"\u5f53\u524d\u9636\u6bb5",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"engineTxt",title:"\u5f15\u64ce",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"createTime",title:"\u521b\u5efa\u65f6\u95f4",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{dataIndex:"createUser",title:"\u521b\u5efa\u4eba",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u72b6\u6001",dataIndex:"status",width:110,render:function(e){return(0,r.default)(g.StateLabel,{source:"modelTrain",code:e})}},{dataIndex:"stageDuration",title:"\u5df2\u8017\u65f6",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",key:"modelId",width:230,render:function(e,t){var a=p.default.parseInt(t.status),o=p.default.parseInt(t.manner);return(0,r.default)("div",{},void 0,(0,r.default)(f.default,{permissions:["MODEL_TRAIN:COPY"],displayType:"hide",ownership:{_auth:p.default.get(t,"_auth"),_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,r.default)("a",{href:"javascript:;",onClick:function(){return n.props.onHandleAction("COPY",t)}},void 0,"\u590d\u5236")),-1!==p.default.indexOf([n.comit,n.release,n.extraction,n.prepare,n.process,n.resolve,n.error],a)&&(0,r.default)(f.default,{permissions:["MODEL_TRAIN:DELETE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,C,(0,r.default)("a",{href:"javascript:;",onClick:function(){return n.props.onHandleAction("DELETE",t)}},void 0,"\u5220\u9664")),-1!=p.default.indexOf([n.comit,n.release,n.extraction,n.prepare,n.process,n.resolve,n.error],a)&&(0,r.default)(f.default,{permissions:["MODEL_TRAIN:UPDATE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,r.default)(v.Link,{to:{pathname:n.getModelEditUrl(t)},target:"_blank"},void 0,j,S)),-1===p.default.indexOf([n.code,4],o)&&-1!=p.default.indexOf([n.extraction,n.prepare,n.process],a)&&(0,r.default)(f.default,{permissions:["MODEL_TRAIN:EXECUTE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,I,(0,r.default)("a",{href:"javascript:;",onClick:function(){return n.props.onHandleAction("EXECUTE",t)}},void 0,"\u6267\u884c")),-1===p.default.indexOf([n.code,4],o)&&a===n.train&&(0,r.default)(f.default,{permissions:["MODEL_TRAIN:EXECUTE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,T,(0,r.default)("a",{href:"javascript:;",onClick:function(){return n.props.onHandleAction("CANCELEXEC",t)}},void 0,"\u53d6\u6d88\u6267\u884c")),(0,r.default)(v.Link,{to:{pathname:n.code===o?_.modelTrainUrl.editModelForCode(t.modelId,!0):_.modelTrainUrl.viewModel(t.modelId,3===o?"deepLearn":4===o?"dragDrop":"guide",t.modelName)},target:"_blank"},void 0,w,"\u67e5\u770b"))}}],n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,a=e.modelData,n=a.size>0?a.toJS():[];return(0,r.default)(x,{},void 0,t&&E,!t&&(0,r.default)(o.default,{dataSource:n,rowKey:"modelId",bordered:!0,pagination:!1,columns:this.columns}))},t}(u.default.PureComponent);t.default=(0,h.connect)((function(e){return{modelData:(0,y.selectModelManageData)(e),loading:(0,y.selectDataLoading)(e)}}))(D)},"./src/module/modelTrain/modelManage/ModelManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=D(a("./node_modules/antd/es/button/index.js")),o=D(a("./node_modules/babel-runtime/helpers/jsx.js")),s=D(a("./node_modules/antd/es/message/index.js")),r=D(a("./node_modules/antd/es/modal/index.js")),i=D(a("./node_modules/babel-runtime/helpers/extends.js")),d=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=D(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=a("./node_modules/react/index.js"),p=(D(c),D(a("./node_modules/prop-types/index.js")),D(a("./node_modules/lodash/lodash.js"))),f=D(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=a("./node_modules/react-redux/es/index.js"),h=a("./src/utils/history.js"),g=D(a("./src/components/auth/funAuth.jsx")),v=a("./src/config/ui-config.js"),_=a("./src/redux/reducers/modelManage.js"),y=a("./node_modules/react-sticky/lib/index.js"),b=a("./src/redux/selectors/modelManage.js"),x=D(a("./src/module/modelTrain/modelManage/SearchBar.jsx")),C=D(a("./src/module/modelTrain/modelManage/ModelCreateModal.jsx")),j=D(a("./src/module/modelTrain/modelManage/ModelCardView.jsx")),S=D(a("./src/module/modelTrain/modelManage/ModelListView.jsx")),I=a("./src/components/index.js"),T=a("./src/routes/routeHelper.jsx"),w=D(a("./src/redux/selectors/enumDic.js")),E=a("./src/components/auth/switchAuth.jsx");function D(e){return e&&e.__esModule?e:{default:e}}var M=f.default.div.withConfig({displayName:"ModelManagePage__PageWrapper",componentId:"phg7bd-0"})(["display:flex;flex-direction:column;flex:1 1 auto;background:#fff;padding:20px;"]),k=f.default.div.withConfig({displayName:"ModelManagePage__PageHeader",componentId:"phg7bd-1"})(["position:relative;width:100%;z-index:20;border-bottom:1px solid #e8e8e8;height:57px;.saveButton{position:absolute;top:8px;}.search-bar{position:absolute;right:0;top:8px;}"]),P=f.default.div.withConfig({displayName:"ModelManagePage__PageBody",componentId:"phg7bd-2"})(["display:flex;min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),L=f.default.div.withConfig({displayName:"ModelManagePage__ModelsBox",componentId:"phg7bd-3"})(["flex:1 1 auto;"]),N=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.componentDidMount=function(){var e=(0,h.parseParms)(n.props.location),t=p.default.get(e,"modelingLanguage"),a=p.default.get(e,"manner"),o=p.default.get(e,"modelTypeId"),s=p.default.get(e,"execStatus"),r=p.default.get(e,"searchTxt"),i=p.default.get(e,"sortField"),d=p.default.get(e,"selectType"),l=p.default.get(e,"dsName"),u=p.default.get(e,"page"),c=p.default.get(e,"rows");n.searchCond={manner:void 0!==a?a:null,modelingLanguage:void 0!==t?t:null,modelTypeId:void 0!==o?o:"",execStatus:void 0!==s?s:null,searchTxt:void 0!==r?r:"",sortField:void 0!==i?i:"new_time",selectType:void 0!==d?d:"name",dsName:void 0!==l?l:"",page:void 0!==u?u:1,rows:void 0!==c?c:10},n.fetchData(n.searchCond)},n.toggleViewMode=function(e){n.state.viewMode!==e&&n.setState({viewMode:e})},n.changeSearchCond=function(e,t){if("viewMode"===e)n.toggleViewMode(t);else{if("manner"===e)if("string"===typeof t){var a=parseInt(t.split("&")[0]),o=parseInt(t.split("&")[1]);7===a?(n.searchCond[e]=p.default.trim(a),n.searchCond.modelingLanguage=p.default.trim(o),n.searchCond.modelTypeId=null):(n.searchCond[e]=p.default.trim(a),n.searchCond.modelTypeId=p.default.trim(o),n.searchCond.modelingLanguage=null)}else n.searchCond.modelTypeId=null,n.searchCond.modelingLanguage=null,n.searchCond[e]=p.default.trim(t);else n.searchCond["selectSearchTxt"===e?"searchTxt":e]=p.default.trim(t);"selectType"!==e&&"selectSearchTxt"!==e&&n.fetchData(n.searchCond)}},n.closeCreateModal=function(){n.props.dispatch(_.modelManageActions.resetCheckModelName()),n.setState({modalVisible:!1})},n.fetchData=function(e){"name"===e.selectType?e.dsName="":(e.dsName=e.searchTxt,e.searchTxt=""),n.props.dispatch(_.modelManageActions.getModelListRequest((0,i.default)({},e,{_SYNC:!0,_SYNC_INTERVAL:3e4})))},n.handleAction=function(e,t){var a=p.default.get(n,p.default.camelCase("handle_"+e+"_action"));a&&p.default.isFunction(a)||console.error("Action ["+e+"] processing function is not defined"),a.call(n,t)},n.handleCreateAction=function(){n.setState({modalVisible:!0})},n.handleDeleteAction=function(e){n._handleAction(e,_.modelManageActions.deleteModelRequest,"\u5220\u9664\u6a21\u578b")},n.handleCopyAction=function(e){n._handleAction(e,_.modelManageActions.copyModelRequest,"\u590d\u5236\u6a21\u578b")},n.handleCancelexecAction=function(e){r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u53d6\u6d88\u6267\u884c[ "+e.modelName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(_.modelManageActions.cancelModelRequest({modelInfo:e,status:n.props.dicHelper("MODEL_STATUS").value("CONFIGING")})),new Promise((function(e){p.default.defer((function(){var t=setInterval((function(){if(n.props.cancelModel.size>0){clearInterval(t);var a=n.props.cancelModel.toJS();a.code>0?s.default.success(a.message):s.default.error(a.message),n.props.dispatch(_.modelManageActions.resetCancelModel()),e()}}),300)}))}))}})},n.handleExecuteAction=function(e){n._handleAction(e,_.modelManageActions.executeModelRequest,"\u5f00\u59cb\u6267\u884c\u6a21\u578b",{status:n.props.dicHelper("MODEL_STATUS").value("WAITING")})},n._handleAction=function(e,t,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a+"[ "+e.modelName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(t((0,i.default)({modelInfo:e},o))),new Promise((function(t){p.default.defer((function(){var o=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(o),0===p.default.size(n.props.operateError)?("\u590d\u5236\u6a21\u578b"===a&&n.fetchData(n.searchCond),s.default.success(a+"[ "+e.modelName+" ]\u6210\u529f!")):s.default.error(a+"[ "+e.modelName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.state={viewMode:(0,E.hasFeatureAuths)("root.modelTrain.enableCard")?"CARD":"LIST",modalVisible:a.location.pathname==="/"+T.MODEL_TRAIN+"/code"},n.searchCond={dsName:"",selectType:"name",manner:null,modelingLanguage:null,modelTypeId:"",execStatus:null,searchTxt:"",sortField:"new_time",page:1,rows:10},n}return(0,u.default)(t,e),t.prototype.componentWillUnmount=function(){this.props.dispatch(_.modelManageActions.stopSyncModels())},t.prototype.render=function(){var e=this;return(0,o.default)(M,{},void 0,(0,o.default)(I.ModalView,{viewType:"view",closable:!0,onCancelType:!1,width:780,modalVisible:this.state.modalVisible,callVisible:this.closeCreateModal,comp:(0,o.default)(C.default,{modalClick:this.closeCreateModal})}),(0,o.default)(y.StickyContainer,{},void 0,(0,o.default)(y.Sticky,{},void 0,(function(t){var a=t.style,s=t.isSticky;return(0,o.default)("div",{style:(0,i.default)({},a,s&&{top:0,background:"#f5f6f9",left:0,padding:"5px 40px 0 40px",width:"100%",zIndex:20})},void 0,(0,o.default)(k,{},void 0,(0,o.default)(g.default,{permissions:["MODEL_TRAIN:CREATE"],displayType:"hide"},void 0,(0,o.default)(n.default,{onClick:function(){return e.handleAction("Create")},className:"saveButton",type:"primary"},void 0,"\u521b\u5efa\u65b0\u6a21\u578b")),(0,o.default)(x.default,{viewMode:e.state.viewMode,searchTxt:e.searchCond.searchTxt,sortField:e.searchCond.sortField,selectType:e.searchCond.selectType,onChange:e.changeSearchCond})))})),(0,o.default)(P,{},void 0,(0,o.default)(L,{},void 0,"CARD"===this.state.viewMode?(0,o.default)(j.default,{statusColorMap:v.MODEL_STATUS_COLOR_MAP,onHandleAction:this.handleAction}):(0,o.default)(S.default,{statusColorMap:v.MODEL_STATUS_COLOR_MAP,onHandleAction:this.handleAction})))))},t}(c.Component);N.defaultProps={opreateLoading:!1};t.default=(0,m.connect)((function(e){return{operateError:(0,b.selectOperateError)(e),opreateLoading:(0,b.selectOperateLoading)(e),dicHelper:(0,w.default)(e),cancelModel:(0,b.selectCancelModel)(e)}}))(N)},"./src/module/modelTrain/modelManage/NotebookTransferPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/spin/index.js")),o=_(a("./node_modules/antd/es/alert/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=_(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/alert/style/index.js");var l=a("./node_modules/react/index.js"),u=_(l),c=(_(a("./node_modules/prop-types/index.js")),_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/react-redux/es/index.js"),f=_(a("./node_modules/lodash/lodash.js")),m=a("./node_modules/react-router-dom/esm/react-router-dom.js"),h=a("./src/redux/reducers/modelManage.js"),g=a("./src/redux/selectors/modelManage.js"),v=a("./src/utils/history.js");function _(e){return e&&e.__esModule?e:{default:e}}var y=a("./node_modules/querystring-es3/index.js"),b=c.default.div.withConfig({displayName:"NotebookTransferPage__LoadingWrapper",componentId:"t6wbtg-0"})(["display:flex;justify-content:center;align-items:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"]),x=c.default.div.withConfig({displayName:"NotebookTransferPage__LoadingDiv",componentId:"t6wbtg-1"})(["padding:15px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:5px;user-select:none;"]),C=(0,s.default)(b,{},void 0,(0,s.default)(x,{},void 0,(0,s.default)(n.default,{size:"small"}),"\xa0\xa0\u5373\u5c06\u8df3\u8f6c\u81f3\u7f16\u7801\u5f0f\u5efa\u6a21Notebook\u9875\u9762\uff0c\u8bf7\u7a0d\u540e!")),j=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.formRef=u.default.createRef(),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){"create"===this.props.action?this.props.dispatch(h.modelManageActions.gotoNotebookSiteRequest({actionType:"CREATE",language:this.props.language,engine:this.props.engine,modelName:this.props.modelName})):this.props.dispatch(h.modelManageActions.gotoNotebookSiteRequest({actionType:this.props.readOnly?"VIEW":"EDIT",modelId:this.props.modelId}))},t.prototype.componentDidUpdate=function(){this.formRef.current&&(window.location=this.props.notebookUrl)},t.prototype.componentWillUnMount=function(){this.props.dispatch(h.modelManageActions.ClearNotebookUrl())},t.prototype.render=function(){if(this.props.notebookUrl&&"ERROR"!==this.props.notebookUrl){var e=-1!==this.props.notebookUrl.indexOf("?")?this.props.notebookUrl.split("?")[0]:this.props.notebookUrl;e=f.default.trim(e.split("#")[0]),e+=f.default.endsWith(e,"/")?"":"/",e+="api/user/login/web";var t=-1!==this.props.notebookUrl.indexOf("?")&&y.parse(this.props.notebookUrl.split("?")[1])||{};return(0,s.default)(b,{},void 0,u.default.createElement("form",{action:e,method:"post",ref:this.formRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelTrain\\modelManage\\NotebookTransferPage.jsx",lineNumber:78}},f.default.keys(t).map((function(e){return(0,s.default)("input",{type:"hidden",name:"user"===e?"userId":e,value:t[e]},e)}))))}return f.default.isEmpty(this.props.gotoError)&&"ERROR"!==this.props.notebookUrl?C:(0,s.default)(b,{},void 0,(0,s.default)(o.default,{message:"\u8df3\u8f6c\u81f3\u7f16\u7801\u5f0f\u5efa\u6a21notebook\u9875\u9762\u51fa\u9519!",description:f.default.join(this.props.gotoError," "),type:"error",showIcon:!0}))},t}(l.Component);t.default=(0,m.withRouter)((0,p.connect)((function(e,t){var a=(0,v.parseParms)(t.location)||{},n=f.default.get(a,"readOnly");return{modelId:f.default.get(t.match.params,"modelId"),action:f.default.get(t.match.params,"action"),modelName:f.default.get(a,"modelName"),language:f.default.get(a,"language"),engine:f.default.get(a,"engine"),gotoError:(0,g.selectGotoNoteBookError)(e),readOnly:"true"===n,notebookUrl:(0,g.selectNoteBookUrl)(e)}}))(j))},"./src/module/modelTrain/modelManage/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/tree-select/index.js")),o=y(a("./node_modules/babel-runtime/helpers/jsx.js")),s=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=y(a("./node_modules/babel-runtime/helpers/inherits.js")),d=y(a("./node_modules/antd/es/input/index.js")),l=y(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tree-select/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=y(a("./node_modules/react/index.js")),c=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./src/config/ui-config.js"),f=y(a("./src/components/selector/ToggleSelect.jsx")),m=a("./node_modules/react-redux/es/index.js"),h=a("./src/components/auth/optionAuth.jsx"),g=y(a("./src/redux/selectors/enumDic.js")),v=a("./src/components/auth/switchAuth.jsx");function y(e){return e&&e.__esModule?e:{default:e}}var b=l.default.Option,x=d.default.Search,C=c.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-12qnmc9-0"})(["display:flex;align-items:center;.sort-cond{margin-left:16px;}.ant-input-search{width:150px !important;margin-left:16px !important;}"]),j=c.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"sc-12qnmc9-1"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;"],(function(e){return e.color})),S={width:"120px"},I=(0,o.default)(b,{value:"-1"},void 0,"\u5168\u90e8"),T=(0,o.default)(b,{value:"new_time"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),w=(0,o.default)(b,{value:"create_time"},void 0,"\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),E=(0,o.default)(b,{value:"name"},void 0,"\u6a21\u578b\u540d\u79f0\u6392\u5e8f"),D=(0,o.default)(b,{value:"name"},void 0,"\u6309\u540d\u79f0\u67e5\u8be2"),M=(0,o.default)(b,{value:"dsName"},void 0,"\u6309\u6570\u636e\u6e90\u540d\u79f0\u67e5\u8be2"),k=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.changeManner=function(e){var t=e;n.props.onChange("manner",t)},n.searchOnBlur=function(e){n.props.onChange("selectSearchTxt",e.target.value)},n.doSearch=function(e){n.props.onChange("searchTxt",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.getTreeData=function(e,t){var a={0:"\u5168\u90e8",4:"\u62d6\u62fd\u5f0f",1:(0,h.hasOption)("root.modelTrain.trainingMethod","1")?e:null,7:(0,h.hasOption)("root.modelTrain.trainingMethod","7")?t:null},n=[];return Object.keys(a).map((function(o){if("string"===typeof a[o])n.push({value:"0"===o?-1:parseInt(o),title:a[o]});else if(a[o]){var s={title:"",value:"",children:[]};s.title="1"===o?"\u5411\u5bfc\u5f0f":"\u7f16\u7801\u5f0f",s.value=parseInt(o);for(var r="1"===o?e:t,i=0;i<r.length;i++)(0,h.hasOption)("1"===o?"root.modelTrain.wizardSceneFramework":"root.modelTrain.codeDevLangue",r[i].value)&&s.children.push({title:r[i].txt,value:o+"&"+r[i].value});n.push(s)}})),n},n.changeExecStatus=n.changeSelect("execStatus"),n.changeSortField=n.changeSelect("sortField"),n.changeSelectType=n.changeSelect("selectType"),n.changeViewMode=n.changeSelect("viewMode"),n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.dicHelper,a=t("MODEL_STATUS").list(),s=t("SCENE_INFO").list(),r=t("DEVELOPMENT_LANGUAGE").list(),i=this.getTreeData(s,r);return(0,o.default)(C,{className:"search-bar"},void 0,(0,o.default)(f.default,{enableCard:(0,v.hasFeatureAuths)("root.modelTrain.enableCard"),ds:p.MODEL_MGR_VIEW_MODE,onChange:this.changeViewMode,selectItem:this.props.viewMode}),(0,o.default)(n.default,{style:{width:"120px",marginLeft:16},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:i,placeholder:"\u5efa\u6a21\u65b9\u5f0f",onChange:this.changeManner}),(0,o.default)(l.default,{onChange:this.changeExecStatus,style:S,placeholder:"\u6267\u884c\u72b6\u6001",className:"sort-cond"},void 0,I,a.map((function(e){return(0,o.default)(b,{value:e.value},e.value,(0,o.default)(j,{color:p.MODEL_STATUS_COLOR_MAP[e.value]}),e.txt)}))),(0,o.default)(l.default,{onChange:this.changeSortField,style:S,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,T,w,E),(0,o.default)(l.default,{onChange:this.changeSelectType,style:S,placeholder:"\u67e5\u8be2\u6761\u4ef6",defaultValue:this.props.selectType,className:"sort-cond"},void 0,D,M),(0,o.default)(x,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onBlur:this.searchOnBlur,defaultValue:this.props.searchTxt,onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}}))},t}(u.default.Component);t.default=(0,m.connect)((function(e){return{dicHelper:(0,g.default)(e)}}))(k)},"./src/module/modelTrain/modelManage/components/ModelCardItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/progress/index.js")),o=S(a("./node_modules/antd/es/message/index.js")),s=S(a("./node_modules/antd/es/divider/index.js")),r=S(a("./node_modules/babel-runtime/helpers/extends.js")),i=S(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),d=S(a("./node_modules/babel-runtime/helpers/jsx.js")),l=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=S(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/progress/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/divider/style/index.js");var p=a("./node_modules/react/index.js"),f=S(p),m=(S(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),h=a("./src/components/Icon/index.js"),g=S(a("./src/components/button/index.js")),v=a("./src/constant/constantConfig.jsx"),y=S(a("./node_modules/copy-to-clipboard/index.js")),b=a("./src/routes/routeHelper.jsx"),x=a("./node_modules/react-router-dom/esm/react-router-dom.js"),C=S(a("./src/components/auth/funAuth.jsx")),j=a("./src/module/modelTrain/modelManage/components/modelCard-style.jsx");function S(e){return e&&e.__esModule?e:{default:e}}var I=g.default.GhostButton,T=(0,d.default)(m.CopyOutlined,{}),w=(0,d.default)(I,{action:"EDIT",txt:"\u4fee\u6539",width:"20",btnType:"small",className:"fn-right"}),E=(0,d.default)(s.default,{}),D=(0,d.default)(I,{action:"VIEW",txt:"\u67e5\u770b"}),M=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.showFuncPanel=function(){n.setState({showFuncPanel:!0})},n.hideFuncPanel=function(){n.setState({showFuncPanel:!1})},n.getModelEditUrl=function(){return n.props.modelInfo.manner===n.code?b.modelTrainUrl.editModelForCode(n.props.modelInfo.modelId):b.modelTrainUrl.editModel(n.props.modelInfo.modelId,3===n.props.modelInfo.manner?"deepLearn":4===n.props.modelInfo.manner?"dragDrop":"guide",n.props.modelInfo.modelName)},n.state={showFuncPanel:!1},n.extraction=_.toInteger(v.modelConstant.getModelTypeExtraction()),n.prepare=_.toInteger(v.modelConstant.getModelTypePrepare()),n.process=_.toInteger(v.modelConstant.getModelTypeProcess()),n.comit=_.toInteger(v.modelConstant.getModelTypeComit()),n.train=_.toInteger(v.modelConstant.getModelTypeTrain()),n.resolve=_.toInteger(v.modelConstant.getModelTypeResolve()),n.error=_.toInteger(v.modelConstant.getModelTypeError()),n.code=_.toInteger(v.modelConstant.getModelMannerCode()),n.release=_.toInteger(v.modelConstant.getModelTypeRelease()),n}return(0,c.default)(t,e),t.prototype.renderFuncPanel=function(){var e=this,t=_.parseInt(this.props.modelInfo.status),a=_.parseInt(this.props.modelInfo.manner);return(0,d.default)(j.ModelFunctionPanel,{className:"flipInX animated"},void 0,(0,d.default)(C.default,{permissions:["MODEL_TRAIN:COPY"],displayType:"hide",ownership:{_auth:_.get(this,"props.modelInfo._auth"),_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,d.default)("span",{onClick:function(){return e.props.onHandleAction("COPY",e.props.modelInfo)},title:"\u590d\u5236\u6a21\u578b",className:"model-label-r"},void 0,T)),(0,d.default)("div",{className:"clear-fix btn-group"},void 0,-1!==_.indexOf([this.comit,this.release,this.extraction,this.prepare,this.process,this.resolve,this.error],t)&&(0,d.default)(C.default,{permissions:["MODEL_TRAIN:DELETE"],displayType:"hide",ownership:{_auth:this.props.modelInfo._auth,_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,d.default)(I,{action:"DELETE",btnType:"small",width:"20",txt:"\u5220\u9664",onClick:function(){return e.props.onHandleAction("DELETE",e.props.modelInfo)},className:"fn-left"})),-1!==_.indexOf([this.comit,this.release,this.extraction,this.prepare,this.process,this.resolve,this.error],t)&&(0,d.default)(C.default,{permissions:["MODEL_TRAIN:UPDATE"],displayType:"hide",ownership:{_auth:this.props.modelInfo._auth,_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,d.default)(x.Link,{to:{pathname:this.getModelEditUrl()},target:"_blank"},void 0,w))),E,-1===_.indexOf([this.code,4],a)&&-1!==_.indexOf([this.extraction,this.prepare,this.process],t)&&(0,d.default)(C.default,{permissions:["MODEL_TRAIN:EXECUTE"],displayType:"hide",ownership:{_auth:this.props.modelInfo._auth,_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,d.default)(I,{style:{marginBottom:"5px"},action:"EXECUTE",txt:"\u6267\u884c",onClick:function(){return e.props.onHandleAction("EXECUTE",e.props.modelInfo)}})),-1===_.indexOf([this.code,4],a)&&t===this.train&&(0,d.default)(C.default,{permissions:["MODEL_TRAIN:EXECUTE"],displayType:"hide",ownership:{_auth:this.props.modelInfo._auth,_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,d.default)(I,{style:{marginBottom:"5px"},action:"CANCELEXEC",txt:"\u53d6\u6d88\u6267\u884c",onClick:function(){return e.props.onHandleAction("CANCELEXEC",e.props.modelInfo)}})),(0,d.default)(x.Link,{style:{display:"grid"},to:{pathname:this.code===a?b.modelTrainUrl.editModelForCode(this.props.modelInfo.modelId,!0):b.modelTrainUrl.viewModel(this.props.modelInfo.modelId,3===a?"deepLearn":4===a?"dragDrop":"guide",this.props.modelInfo.modelName)},target:"_blank"},void 0,D))},t.prototype.render=function(){var e=this.props,t=e.width,a=void 0===t?220:t,n=e.statusColor,o=void 0===n?"":n,s=e.modelInfo,l=void 0===s?{}:s,u=(0,i.default)(e,["width","statusColor","modelInfo"]);return f.default.createElement(j.CardWrapper,(0,r.default)({width:a,statusColor:o,onMouseEnter:this.showFuncPanel,onMouseLeave:this.hideFuncPanel},_.omit(u,["onHandleAction"]),{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelTrain\\modelManage\\components\\ModelCardItem.jsx",lineNumber:199}}),(0,d.default)(P,{modelInfo:l}),this.state.showFuncPanel&&this.renderFuncPanel())},t}(p.Component),k=(0,d.default)(h.IconSvg,{type:"LoadingAnimate",size:25,color:"#54b2f5"}),P=function(e){function t(){var a,n,s;(0,l.default)(this,t);for(var r=arguments.length,i=Array(r),d=0;d<r;d++)i[d]=arguments[d];return a=n=(0,u.default)(this,e.call.apply(e,[this].concat(i))),n.titleClick=function(e){(0,y.default)(e),o.default.success("\u590d\u5236\u6210\u529f\uff01")},s=a,(0,u.default)(n,s)}return(0,c.default)(t,e),t.prototype.render=function(){var e=this;this.extraction=_.toInteger(v.modelConstant.getModelTypeExtraction()),this.prepare=_.toInteger(v.modelConstant.getModelTypePrepare()),this.process=_.toInteger(v.modelConstant.getModelTypeProcess());var t=this.props.modelInfo,a=100*t.stageBar,o=_.toInteger(v.modelConstant.getModelMannerCode());return(0,d.default)(f.default.Fragment,{},void 0,(0,d.default)(j.ModelInfo,{className:"CODE"===t.modelTypeCode?"icon-"+t.modelTypeCode+"-"+t.devLanguage:"icon-"+t.modelTypeCode},void 0,(0,d.default)(j.ModelLabel,{},void 0,(0,d.default)("span",{className:"model-label-l"},void 0,t.mannerTxt),(0,d.default)("span",{className:"model-label-r"},void 0,t.engineTxt)),(0,d.default)("p",{title:"\u70b9\u51fb\u590d\u5236\u540d\u79f0",onClick:function(){e.titleClick(t.modelName)},className:"model-title"},void 0,t.modelName),(0,d.default)(j.ModelStatus,{},void 0,5===t.status&&k,(0,d.default)("span",{},void 0,"\u72b6\u6001: ",t.statusTxt))),(0,d.default)(j.ModelProgress,{},void 0,(0,d.default)("div",{className:"progress-chart"},void 0,(0,d.default)(n.default,{strokeColor:(6===t.status||8===t.status)&&"#00CF9B",type:"circle",status:8===t.status?"success":7===t.manner&&8!==t.status?"normal":7!==t.manner&&7===t.status?"exception":7!==t.manner&&6===t.status?"success":"normal",percent:7===t.manner&&8===t.status?100:a>=0?parseInt(a):0,width:35,strokeWidth:9})),t.manner!==o&&(0,d.default)("div",{className:"progress-stage"},void 0,(0,d.default)("p",{},void 0,t.stageTxt),(0,d.default)("p",{},void 0,"\u5df2\u8017\u65f6:",t.stageDuration," "))),(0,d.default)(j.CardFooter,{},void 0,-1!==_.indexOf([this.extraction,this.prepare,this.process],t.status)?"\u521b\u5efa\u65f6\u95f4\uff1a":"\u6267\u884c\u65f6\u95f4\uff1a",-1!==_.indexOf([this.extraction,this.prepare,this.process],t.status)?t.createTime:t.newTime))},t}(f.default.PureComponent);t.default=M},"./src/module/modelTrain/modelManage/components/ModelCardItermCreate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=p(a("./node_modules/antd/es/button/index.js")),s=p(a("./node_modules/babel-runtime/helpers/jsx.js")),r=p(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js"));a("./node_modules/antd/es/button/style/index.js");var i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(a("./node_modules/prop-types/index.js"),a("./src/components/Icon/index.js")),u=p(a("./node_modules/lodash/lodash.js")),c=p(a("./src/components/auth/funAuth.jsx"));function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.div.withConfig({displayName:"ModelCardItermCreate__CardWrapper",componentId:"sc-1e26r2o-0"})(["border:1px dashed #ccd5e0;border-radius:4px;display:flex;justify-content:center;align-items:center;flex-direction:column;margin:0 20px 0 0;width:","px;height:250px;user-select:none;.hint{color:#dcdfe4;font-weight:600;}"],(function(e){return e.width})),m=(0,s.default)("p",{},void 0,(0,s.default)(l.IconSvg,{type:"create",size:36})),h=(0,s.default)("p",{className:"hint"},void 0,"\u70b9\u51fb\u521b\u5efa\u65b0\u6a21\u578b");t.default=function(e){var t=e.width,a=void 0===t?220:t,d=e.onCreateModel,l=void 0===d?u.default.noop:d,p=(0,r.default)(e,["width","onCreateModel"]);return i.default.createElement(f,(0,n.default)({width:a},p,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelTrain\\modelManage\\components\\ModelCardItermCreate.jsx",lineNumber:27}}),m,h,(0,s.default)("p",{},void 0,(0,s.default)(c.default,{permissions:["MODEL_TRAIN:CREATE"],displayType:"hide"},void 0,(0,s.default)(o.default,{style:{backgroundColor:"#147BD1",borderColor:"#147BD1"},type:"primary",onClick:function(){return l("Create")}},void 0,"\u521b\u5efa\u65b0\u6a21\u578b"))))}},"./src/module/modelTrain/modelManage/components/ModelCode.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelGuideDesc=t.ModelCodeDiv=void 0;var n=y(a("./node_modules/babel-runtime/helpers/jsx.js")),o=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=y(a("./node_modules/babel-runtime/helpers/inherits.js")),i=y(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=y(a("./node_modules/react/index.js")),l=a("./src/components/auth/optionAuth.jsx"),u=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./node_modules/react-router-dom/esm/react-router-dom.js"),f=a("./src/redux/selectors/enumDic.js"),m=a("./src/routes/routeHelper.jsx"),h=y(a("./src/styles/images/model_manage/LogoScala.png")),g=y(a("./src/styles/images/model_manage/LogoPython.png")),v=y(a("./src/styles/images/model_manage/LogoR.png"));function y(e){return e&&e.__esModule?e:{default:e}}var b=i.default.Option,x=[{languageImg:g.default,languageName:"Python",languageId:1},{languageImg:v.default,languageName:"R",languageId:3},{languageImg:h.default,languageName:"Scala",languageId:2}],C=t.ModelCodeDiv=u.default.div.withConfig({displayName:"ModelCode__ModelCodeDiv",componentId:"ab56mk-0"})(["padding-left:15px;"]),j=t.ModelGuideDesc=u.default.div.withConfig({displayName:"ModelCode__ModelGuideDesc",componentId:"ab56mk-1"})(["h1{font-family:MicrosoftYaHei;font-size:14px;color:#1f2d3d;letter-spacing:1px;}margin-bottom:20px;"]),S=u.default.div.withConfig({displayName:"ModelCode__CodingEngine",componentId:"ab56mk-2"})(["min-height:80px;float:left;width:100%;span{font-size:14px;color:#1f2d3d;letter-spacing:0;float:left;}.selectDiv{display:inline-block;margin-left:43px;width:220px;height:22px;.inputName{width:220px;height:30px;}}"]),I=u.default.div.withConfig({displayName:"ModelCode__CodingLanguage",componentId:"ab56mk-3"})(["float:left;width:100%;min-height:120px;margin-bottom:37px;.languageTitle{font-size:14px;color:#1f2d3d;letter-spacing:0;padding-bottom:20px;}ul{float:left;padding:0px;list-style:none;display:inline-flex;li{background:#f5f6f9;cursor:pointer;margin-right:16px;border:1px solid transparent;&:hover{border:1px solid #47b2fb;}&.noSelect{display:none;cursor:not-allowed;color:#a2b0c4;&:hover{cursor:not-allowed;border:1px solid transparent;}}}}"]),T=(0,n.default)("div",{className:"languageTitle"},void 0,"\u8bf7\u9009\u62e9\u5f00\u53d1\u8bed\u8a00"),w=(0,n.default)("h1",{},void 0,"\u7f16\u7801\u5f0f\u5efa\u6a21\u7b80\u4ecb\uff1a"),E=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeEngine=function(e){n.setState({engineId:parseInt(e)})},n.state={modelNameVerify:"",engineId:parseInt((0,l.getOneOption)("root.modelTrain.codeRunEngine")),verifyError:"",modelName:""},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.engineData.list();return(0,n.default)(C,{},void 0,(0,n.default)(S,{},void 0,(0,n.default)("span",{style:{marginTop:5}},void 0,"\u8bf7\u9009\u62e9\u8ba1\u7b97\u5f15\u64ce\uff1a"),(0,n.default)(i.default,{value:this.state.engineId+"",style:{marginLeft:2,width:220},getPopupContainer:function(e){return e.parentNode},onChange:this.changeEngine},void 0,t.map((function(e){return(0,l.hasOption)("root.modelTrain.codeRunEngine",e.value)&&(0,n.default)(b,{title:e.txt,value:e.value},e.value+_.uniqueId(),e.txt)})))),(0,n.default)(I,{},void 0,T,(0,n.default)("ul",{className:"languages"},void 0,x.map((function(t,a){return(0,l.hasOption)("root.modelTrain.codeDevLangue",t.languageId)&&(0,n.default)(p.Link,{to:{pathname:m.modelTrainUrl.createModelForCode(t.languageId,e.state.modelName,e.state.engineId)},target:"_blank"},a,(0,n.default)("li",{},a,(0,n.default)("img",{title:t.languageName,src:t.languageImg})))})))),(0,n.default)(j,{},void 0,w,(0,n.default)("p",{style:{color:"#1F2D3D"}},void 0,this.props.data.desc)))},t}(d.default.PureComponent);t.default=(0,c.connect)((function(e){return{engineData:(0,f.dicGroupHelper)(e,"MODEL_ENGINE")}}))(E)},"./src/module/modelTrain/modelManage/components/ModelDragDrop.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelGuideUl=t.ModelGuideDesc=t.ModelGuideDiv=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/redux/selectors/enumDic.js"),c=a("./src/components/auth/optionAuth.jsx");function p(e){return e&&e.__esModule?e:{default:e}}var f=t.ModelGuideDiv=d.default.div.withConfig({displayName:"ModelDragDrop__ModelGuideDiv",componentId:"sc-12it2pq-0"})(["padding-left:15px;"]),m=t.ModelGuideDesc=d.default.div.withConfig({displayName:"ModelDragDrop__ModelGuideDesc",componentId:"sc-12it2pq-1"})(["h1{font-family:MicrosoftYaHei;font-size:14px;color:#1f2d3d;letter-spacing:1px;}margin-bottom:20px;"]),h=t.ModelGuideUl=d.default.ul.withConfig({displayName:"ModelDragDrop__ModelGuideUl",componentId:"sc-12it2pq-2"})(["padding:0;height:260px;li{background:#f5f6f9;height:100px;margin-right:1.8%;display:inline-block;text-align:center;padding-top:25px;width:100px;cursor:pointer;border:0.5px solid transparent;&.active{border:0.5px solid #47b2fb;background:#ffff;}&:hover{border:0.5px solid #47b2fb;background:#ffff;}.imgDiv{float:left;height:51px;width:94px;padding-right:15px;}.title{margin-top:15px;font-family:MicrosoftYaHei;font-size:14px;color:#1f2d3d;letter-spacing:1px;}}"]),g=(0,n.default)("h1",{},void 0,"\u62d6\u62fd\u5f0f\u5efa\u6a21\u7b80\u4ecb\uff1a"),v=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.openDrapDrop=function(){window.open("http://10.1.251.211:8181/modelTrain/create/dragDrop")},n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(f,{},void 0,(0,n.default)(h,{},void 0,[{txt:"\u9ed8\u8ba4\u6a21\u677f",value:"1"}].map((function(t,o){return(0,c.hasOption)("root.modelTrain.wizardSceneFramework",t.value)&&(0,n.default)("li",{onClick:function(){e.openDrapDrop()},className:"imgDiv"},o,(0,n.default)("img",{style:{marginRight:5},src:a("./src/styles/images/modelConfig/FLYC.png")}),(0,n.default)("p",{className:"title"},void 0,t.txt))}))),(0,n.default)(m,{},void 0,g,(0,n.default)("p",{style:{color:"#1F2D3D"}},void 0,this.props.data.desc)))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{sceneData:(0,u.dicGroupHelper)(e,"SCENE_INFO")}}))(v)},"./src/module/modelTrain/modelManage/components/ModelGuide.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelGuideUl=t.ModelGuideDesc=t.ModelGuideDiv=void 0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/react/index.js")),d=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/redux/selectors/enumDic.js"),c=a("./node_modules/react-router-dom/esm/react-router-dom.js"),p=a("./src/components/auth/optionAuth.jsx"),f=a("./src/routes/routeHelper.jsx");function m(e){return e&&e.__esModule?e:{default:e}}var h=t.ModelGuideDiv=d.default.div.withConfig({displayName:"ModelGuide__ModelGuideDiv",componentId:"nhoitb-0"})(["padding-left:15px;"]),g=t.ModelGuideDesc=d.default.div.withConfig({displayName:"ModelGuide__ModelGuideDesc",componentId:"nhoitb-1"})(["h1{font-family:MicrosoftYaHei;font-size:14px;color:#1f2d3d;letter-spacing:1px;}margin-bottom:20px;"]),v=t.ModelGuideUl=d.default.ul.withConfig({displayName:"ModelGuide__ModelGuideUl",componentId:"nhoitb-2"})(["padding:0;height:260px;li{background:#f5f6f9;height:100px;margin-right:16px;display:inline-block;text-align:center;padding-top:25px;width:100px;cursor:pointer;border:0.5px solid transparent;&.active{border:0.5px solid #47b2fb;background:#ffff;}&:hover{border:0.5px solid #47b2fb;background:#ffff;}.imgDiv{float:left;height:51px;width:94px;padding-right:15px;}.title{margin-top:15px;font-family:MicrosoftYaHei;font-size:14px;color:#1f2d3d;letter-spacing:1px;}}"]),y=(0,n.default)("h1",{},void 0,"\u5411\u5bfc\u5f0f\u5efa\u6a21\u7b80\u4ecb\uff1a"),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.sceneData.list(),t=["11","12"],o=_.remove(e,(function(e){return-1===_.indexOf(t,e.value)}));return(0,n.default)(h,{},void 0,(0,n.default)(v,{},void 0,o.map((function(e,t){return(0,p.hasOption)("root.modelTrain.wizardSceneFramework",e.value)&&(0,n.default)(c.Link,{to:{pathname:f.modelTrainUrl.createModelByGuide(_.get(e,"value"))},target:"_blank"},t,(0,n.default)("li",{className:"imgDiv"},t,(0,n.default)("img",{style:{marginRight:5},src:a("./src/styles/images/modelConfig sync recursive ^\\.\\/.*\\.png$")("./"+e.code+".png")}),(0,n.default)("p",{className:"title"},void 0,e.txt)))}))),(0,n.default)(g,{},void 0,y,(0,n.default)("p",{style:{color:"#1F2D3D"}},void 0,this.props.data.desc)))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{sceneData:(0,u.dicGroupHelper)(e,"SCENE_INFO")}}))(b)},"./src/module/modelTrain/modelManage/components/ModelListHeader.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=(a("./node_modules/prop-types/index.js"),a("./node_modules/polished/dist/polished.es.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.ul.withConfig({displayName:"ModelListHeader__ListHeaderWrapper",componentId:"yn00zq-0"})(["height:45px;width:100%;",";background:#e5e9f2;border:1px solid #e0e6ed;border-left:4px solid #e0e6ed;border-radius:4px;list-style:none;margin-bottom:0 0 10px 0;padding:0;height:40px;overflow:hidden;li{",";line-height:40px;padding:0 5px;float:left;}"],(0,s.clearFix)(),(0,s.ellipsis)());t.default=function(e){var t=e.columns,a=void 0===t?[]:t;return(0,n.default)(i,{},void 0,(0,n.default)("li",{style:{width:"50px",textAlign:"center"}},void 0,"\u5e8f\u53f7"),_.map(a,(function(e,t){return(0,n.default)("li",{style:{width:e.width,marginLeft:e.marginLeft}},t,e.text)})))}},"./src/module/modelTrain/modelManage/components/ModelListItem.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelFunctionPanel=void 0;var n=y(a("./node_modules/babel-runtime/helpers/extends.js")),o=y(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),s=y(a("./node_modules/babel-runtime/helpers/jsx.js")),r=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=y(a("./node_modules/babel-runtime/helpers/inherits.js")),l=a("./node_modules/react/index.js"),u=y(l),c=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(a("./node_modules/prop-types/index.js"),a("./node_modules/polished/dist/polished.es.js")),f=a("./src/constant/constantConfig.jsx"),m=a("./node_modules/react-router-dom/esm/react-router-dom.js"),h=a("./src/routes/routeHelper.jsx"),g=y(a("./node_modules/lodash/lodash.js")),v=y(a("./src/components/button/index.js")),_=y(a("./src/components/auth/funAuth.jsx"));function y(e){return e&&e.__esModule?e:{default:e}}var b=v.default.GhostButton,x=c.default.div.withConfig({displayName:"ModelListItem__ListItemWrapper",componentId:"gdc34a-0"})(["position:relative;margin-bottom:6px;overflow:hidden;border:1px solid #e0e6ed;border-left:4px solid ",";ul{",";list-style:none;margin:0;padding:0;background:#fff;li{",";line-height:40px;padding:0 5px;float:left;font-size:12px;&::after{content:'\\200B';}}}&:hover{box-shadow:0 2px 4px 0 rgba(0,0,0,0.15);}"],(function(e){return e.statusColor}),(0,p.clearFix)(),(0,p.ellipsis)()),C=t.ModelFunctionPanel=c.default.div.withConfig({displayName:"ModelListItem__ModelFunctionPanel",componentId:"gdc34a-1"})(["position:absolute;margin-left:70%;padding-right:10%;top:0;left:0;width:40%;height:100%;z-index:2;display:flex;flex-direction:row-reverse;align-items:center;background-image:linear-gradient( to left,rgba(255,255,255,0) 30%,rgba(255,255,255,0.5) 50%,rgba(255,255,255,0.8) 60%,rgba(255,255,255,1) 100% );button{margin-right:10px;}"]),j=(0,s.default)(b,{action:"EDIT",txt:"\u4fee\u6539",width:"20",btnType:"small",className:"fn-right"}),S=(0,s.default)(b,{btnType:"small",action:"VIEW",txt:"\u67e5\u770b"}),I=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.showFuncPanel=function(){n.setState({showFuncPanel:!0})},n.hideFuncPanel=function(){n.setState({showFuncPanel:!1})},n.getModelEditUrl=function(){return n.props.modelInfo.manner===n.code?h.modelTrainUrl.editModelForCode(n.props.modelInfo.modelId):h.modelTrainUrl.editModel(n.props.modelInfo.modelId,3===n.props.modelInfo.manner?"deepLearn":4===n.props.modelInfo.manner?"dragDrop":"guide",n.props.modelInfo.modelName)},n.state={showFuncPanel:!1},n.extraction=g.default.toInteger(f.modelConstant.getModelTypeExtraction()),n.prepare=g.default.toInteger(f.modelConstant.getModelTypePrepare()),n.process=g.default.toInteger(f.modelConstant.getModelTypeProcess()),n.comit=g.default.toInteger(f.modelConstant.getModelTypeComit()),n.train=g.default.toInteger(f.modelConstant.getModelTypeTrain()),n.resolve=g.default.toInteger(f.modelConstant.getModelTypeResolve()),n.error=g.default.toInteger(f.modelConstant.getModelTypeError()),n.code=g.default.toInteger(f.modelConstant.getModelMannerCode()),n.release=g.default.toInteger(f.modelConstant.getModelTypeRelease()),n}return(0,d.default)(t,e),t.prototype.renderFuncPanel=function(){var e=this,t=g.default.parseInt(this.props.modelInfo.status),a=g.default.parseInt(this.props.modelInfo.manner);return(0,s.default)(C,{},void 0,-1!=g.default.indexOf([this.comit,this.release,this.extraction,this.prepare,this.process,this.resolve,this.error],t)&&(0,s.default)(_.default,{permissions:["MODEL_TRAIN:DELETE"],displayType:"hide",ownership:{_auth:this.props.modelInfo._auth,_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,s.default)(b,{action:"DELETE",btnType:"small",width:"20",txt:"\u5220\u9664",onClick:function(){return e.props.onHandleAction("DELETE",e.props.modelInfo)},className:"fn-left"})),-1!=g.default.indexOf([this.comit,this.release,this.extraction,this.prepare,this.process,this.resolve,this.error],t)&&(0,s.default)(_.default,{permissions:["MODEL_TRAIN:UPDATE"],displayType:"hide",ownership:{_auth:this.props.modelInfo._auth,_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,s.default)(m.Link,{to:{pathname:this.getModelEditUrl()},target:"_blank"},void 0,j)),-1===g.default.indexOf([this.code,4],a)&&-1!=g.default.indexOf([this.extraction,this.prepare,this.process],t)&&(0,s.default)(_.default,{permissions:["MODEL_TRAIN:EXECUTE"],displayType:"hide",ownership:{_auth:this.props.modelInfo._auth,_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,s.default)(b,{action:"EXECUTE",btnType:"small",txt:"\u6267\u884c",onClick:function(){return e.props.onHandleAction("EXECUTE",e.props.modelInfo)}})),-1===g.default.indexOf([this.code,4],a)&&t===this.train&&(0,s.default)(_.default,{permissions:["MODEL_TRAIN:EXECUTE"],displayType:"hide",ownership:{_auth:this.props.modelInfo._auth,_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,s.default)(b,{action:"CANCELEXEC",btnType:"small",txt:"\u53d6\u6d88\u6267\u884c",onClick:function(){return e.props.onHandleAction("CANCELEXEC",e.props.modelInfo)}})),(0,s.default)(m.Link,{style:{display:"grid"},to:{pathname:this.code===a?h.modelTrainUrl.editModelForCode(this.props.modelInfo.modelId,!0):h.modelTrainUrl.viewModel(this.props.modelInfo.modelId,3===a?"deepLearn":4===a?"dragDrop":"guide",this.props.modelInfo.modelName)},target:"_blank"},void 0,S),(0,s.default)(_.default,{permissions:["MODEL_TRAIN:COPY"],displayType:"hide",ownership:{_auth:this.props.modelInfo._auth,_owner:this.props.modelInfo._owner,_group:this.props.modelInfo._group,_tenant:this.props.modelInfo._tenant}},void 0,(0,s.default)(b,{action:"COPY",btnType:"small",width:"20",txt:"\u590d\u5236",onClick:function(){return e.props.onHandleAction("COPY",e.props.modelInfo)},className:"fn-left"})))},t.prototype.render=function(){var e=this.props,t=e.columns,a=void 0===t?[]:t,r=e.modelInfo,i=void 0===r?{}:r,d=e.index,l=void 0===d?0:d,c=e.statusColor,p=void 0===c?"":c,f=(0,o.default)(e,["columns","modelInfo","index","statusColor"]);return u.default.createElement(x,(0,n.default)({statusColor:p,onMouseEnter:this.showFuncPanel,onMouseLeave:this.hideFuncPanel},f,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelTrain\\modelManage\\components\\ModelListItem.jsx",lineNumber:238}}),(0,s.default)("ul",{},void 0,(0,s.default)("li",{style:{width:"50px",textAlign:"center"}},void 0,l),g.default.map(a,(function(e,t){return(0,s.default)("li",{title:g.default.isFunction(e.render)?e.render.call(null,i):null!==i[e.name]&&""!==i[e.name]&&void 0!==i[e.name]?i[e.name]:"--",style:{width:e.width,marginLeft:1.5}},t,g.default.isFunction(e.render)?e.render.call(null,i):null!==i[e.name]&&""!==i[e.name]&&void 0!==i[e.name]?i[e.name]:"--")}))),this.state.showFuncPanel&&this.renderFuncPanel())},t}(l.Component);t.default=I},"./src/module/modelTrain/modelManage/components/ModelListItermCreate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/antd/es/button/index.js")),o=i(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/button/style/index.js");i(a("./node_modules/react/index.js"));var s=i(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),r=(a("./node_modules/prop-types/index.js"),a("./src/components/Icon/index.js"));function i(e){return e&&e.__esModule?e:{default:e}}var d=s.default.div.withConfig({displayName:"ModelListItermCreate__ListItemWrapper",componentId:"ksjkng-0"})(["border:1px dashed #ccd5e0;border-radius:4px;height:40px;user-select:none;position:relative;margin-bottom:10px;.hint{line-height:40px;color:#dcdfe4;text-align:center;cursor:pointer;}.ant-btn-primary{position:absolute;left:10px;top:5px;}"]),l=(0,o.default)(r.IconSvg,{type:"create",size:18}),u=(0,o.default)("span",{},void 0,"\u70b9\u51fb\u521b\u5efa\u65b0\u6a21\u578b");t.default=function(e){var t=e.onCreateModel;return(0,o.default)(d,{},void 0,(0,o.default)(n.default,{type:"primary",onClick:function(){return t("Create")}},void 0,"\u521b\u5efa\u65b0\u6a21\u578b"),(0,o.default)("div",{className:"hint",onClick:function(){return t("Create")}},void 0,l,u))}},"./src/module/modelTrain/modelManage/components/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelTrain/modelManage/components/ModelCardItermCreate.jsx");Object.defineProperty(t,"ModelCardItermCreate",{enumerable:!0,get:function(){return c(n).default}});var o=a("./src/module/modelTrain/modelManage/components/ModelCardItem.jsx");Object.defineProperty(t,"ModelCardItem",{enumerable:!0,get:function(){return c(o).default}});var s=a("./src/module/modelTrain/modelManage/components/ModelListItem.jsx");Object.defineProperty(t,"ModelListItem",{enumerable:!0,get:function(){return c(s).default}});var r=a("./src/module/modelTrain/modelManage/components/ModelListHeader.jsx");Object.defineProperty(t,"ModelListHeader",{enumerable:!0,get:function(){return c(r).default}});var i=a("./src/module/modelTrain/modelManage/components/ModelListItermCreate.jsx");Object.defineProperty(t,"ModelListItermCreate",{enumerable:!0,get:function(){return c(i).default}});var d=a("./src/module/modelTrain/modelManage/components/ModelGuide.jsx");Object.defineProperty(t,"ModelGuide",{enumerable:!0,get:function(){return c(d).default}});var l=a("./src/module/modelTrain/modelManage/components/ModelCode.jsx");Object.defineProperty(t,"ModelCode",{enumerable:!0,get:function(){return c(l).default}});var u=a("./src/module/modelTrain/modelManage/components/ModelDragDrop.jsx");function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ModelDragDrop",{enumerable:!0,get:function(){return c(u).default}})},"./src/module/modelTrain/modelManage/components/modelCard-style.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ModelFunctionPanel=t.CardFooter=t.ModelProgress=t.ModelStatus=t.ModelInfo=t.ModelLabel=t.CardWrapper=void 0;var n=r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),o=a("./node_modules/polished/dist/polished.es.js"),s=r(a("./src/styles/images/model_manage/model-card-bg.png"));function r(e){return e&&e.__esModule?e:{default:e}}t.CardWrapper=n.default.div.withConfig({displayName:"modelCard-style__CardWrapper",componentId:"sc-1u0jgjj-0"})(["position:relative;border:1px solid #ccd5e0;border-radius:4px;border-top:5px solid ",";width:","px;height:250px;margin-right:20px;margin-bottom:20px;user-select:none;background:#fff;cursor:pointer;&:hover{box-shadow:0 2px 4px 0 rgba(0,0,0,0.15);transition:transform 0.5s;transform:translateY(-5px);}"],(function(e){return e.statusColor}),(function(e){return e.width})),t.ModelLabel=n.default.div.withConfig({displayName:"modelCard-style__ModelLabel",componentId:"sc-1u0jgjj-1"})(["",";height:30px;.model-label-l,.model-label-r{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:5px;font-size:10px;letter-spacing:1px;line-height:14px;}.model-label-l{float:left;padding:2px 10px;background:#a1b0c1;color:#fff;}.model-label-r{float:right;padding:2px 0;color:#a2b0c4;}"],(0,o.clearFix)()),t.ModelInfo=n.default.div.withConfig({displayName:"modelCard-style__ModelInfo",componentId:"sc-1u0jgjj-2"})(["background:url(",") no-repeat;background-position-x:center;padding:10px;.model-title{word-wrap:break-word;text-align:center;height:40px;margin-top:10px;line-height:18px;font-weight:500;color:#475669;font-size:14px;}.model-creator{margin:0;text-align:center;color:#a1b0c1;}&.icon-CODE-1{background-position-y:0px;}&.icon-CODE-2{background-position-y:-160px;}&.icon-CODE-3{background-position-y:-320px;}&.icon-DROP{background-position-y:-640px;}&.icon-FLYC{background-position-y:-800px;}&.icon-GLGZ{background-position-y:-960px;}&.icon-JLFX{background-position-y:-1120px;}&.icon-SJXL{background-position-y:-1280px;}&.icon-TXFL{background-position-y:-1280px;}&.icon-QSYC{background-position-y:-1280px;}&.icon-XTGL{background-position-y:-1440px;}"],s.default),t.ModelStatus=n.default.div.withConfig({displayName:"modelCard-style__ModelStatus",componentId:"sc-1u0jgjj-3"})(["text-align:center;margin-right:5px;padding:5px;span{padding-left:5px;}"]),t.ModelProgress=n.default.div.withConfig({displayName:"modelCard-style__ModelProgress",componentId:"sc-1u0jgjj-4"})(["",";position:relative;overflow:hidden;border-top:1px solid #edecf1;border-bottom:1px solid #edecf1;height:50px;.progress-chart{float:left;width:30%;height:100%;justify-content:center;align-items:center;display:flex;.ant-progress-circle-path{stroke:#47b2fb;}.ant-progress-status-success .ant-progress-circle-path{stroke:#00cf9b;}.ant-progress-status-exception .ant-progress-circle-path{stroke:#fb6362;}}.progress-stage{height:100%;float:right;width:70%;border-left:1px solid #edecf1;padding:5px 0 0 20px;p{margin-bottom:2px;}}"],(0,o.clearFix)()),t.CardFooter=n.default.div.withConfig({displayName:"modelCard-style__CardFooter",componentId:"sc-1u0jgjj-5"})(["height:40px;line-height:40px;text-align:center;"]),t.ModelFunctionPanel=n.default.div.withConfig({displayName:"modelCard-style__ModelFunctionPanel",componentId:"sc-1u0jgjj-6"})(["position:absolute;top:70px;left:0;width:100%;height:70%;z-index:2;.model-label-r{content:'';position:absolute;top:-50px;right:15px;border-color:transparent;border-style:solid;}background-image:linear-gradient( to bottom,rgba(255,255,255,0) 30%,rgba(255,255,255,0.6) 50%,rgba(255,255,255,1) 65% );display:flex;flex-direction:column;justify-content:flex-end;padding:20px;.ant-divider{margin:10px 0;}"])},"./src/module/modelTrain/trainProcess/ModelTrainLogPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./node_modules/react-redux/es/index.js"),u=(a("./node_modules/immutable3/dist/immutable.js"),a("./src/redux/reducers/trainResult.js")),c=a("./src/redux/selectors/trainResult.js"),p=a("./src/components/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.div.withConfig({displayName:"ModelTrainLogPage__Logs",componentId:"ffmjge-0"})(["height:500px;overflow:auto;p{margin:0;overflow:hidden;span{padding:5px;&.log-time{width:130px;padding-left:0;color:RGBA(0,137,2,1);}&.log-level{width:35px;color:RGBA(83,135,208,1);}&.log-message{color:RGBA(225,229,230,1);word-wrap:break-all;}&.log-ERROR{&.log-message,&.log-level{color:RGBA(246,124,113,1);}}&.log-WARN{&.log-message,&.log-level{color:RGBA(193,176,30,1);}}}}"]),h=(0,n.default)(p.LoadingIndicator,{}),g=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(u.trainResultActions.getModelTrainLogRequest({taskId:this.props.taskId}))},t.prototype.componentWillUnmount=function(){this.props.dispatch(u.trainResultActions.resetModelTrainLog())},t.prototype.render=function(){var e=this.props,t=e.loading,a=e.trainLog,o=a&&a.toJS();return t?h:(0,n.default)(m,{},void 0,o&&o.map((function(e,t){var a=e.time,o=e.level,s=e.msg;return(0,n.default)("p",{className:"log-"+o},t,(0,n.default)("span",{className:"log-time"},void 0,a),(0,n.default)("span",{className:"log-level"},void 0,o),(0,n.default)("span",{className:"log-msg"},void 0,s))})))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{trainLog:(0,c.selectModelTrainLog)(e),loading:(0,c.selectModelTrainLogLoading)(e)}}))(g)},"./src/module/modelTrain/trainProcess/ModelTrainProcessPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=v(a("./node_modules/react/index.js")),d=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/lodash/lodash.js")),l=a("./node_modules/react-redux/es/index.js"),u=a("./node_modules/immutable3/dist/immutable.js"),c=v(a("./src/module/modelTrain/trainProcess/components/ModelTrainProcess.jsx")),p=v(a("./src/redux/selectors/enumDic.js")),f=a("./src/redux/selectors/trainResult.js"),m=a("./src/components/index.js"),h=v(a("./src/containers/toJS.jsx")),g=a("./src/redux/reducers/trainResult.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=(0,h.default)(c.default),b=(0,n.default)(m.LoadingIndicator,{}),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.state={processLogin:!0},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){var e=this;setTimeout((function(){e.setState({processLogin:!1});var t=!0;if(u.Map.isMap(e.props.modelInfo)){var a=_.toString(e.props.modelInfo.get("status"));"6"!==a&&"7"!==a||(t=!1)}e.props.dispatch(g.trainResultActions.getModelTrainProcessRequest({modelId:e.props.modelId,_SYNC:t,_SYNC_INTERVAL:1e4}))}),0)},t.prototype.componentWillUnmount=function(){this.props.dispatch(g.trainResultActions.stopSyncTrainProcess()),this.props.dispatch(g.trainResultActions.resetModelTrainProcess())},t.prototype.render=function(){var e=this.props.dicHelper("PROCESS_STAGE");return this.props.loading||(0,d.isUndefined)(this.props.loading)&&this.state.processLogin?b:(0,n.default)(y,{modelId:this.props.modelId,modelInfo:this.props.modelInfo,processData:this.props.processData,stageDic:e,exportTrainLog:this.exportTrainLog})},t}(i.default.PureComponent);t.default=(0,l.connect)((function(e){return{dicHelper:(0,p.default)(e),processData:(0,f.selectModelTrainProcess)(e),loading:(0,f.selectModelTrainProcessLoading)(e)}}))(x)},"./src/module/modelTrain/trainProcess/components/ModelTrainProcess.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/button/index.js")),o=C(a("./node_modules/antd/es/modal/index.js")),s=C(a("./node_modules/babel-runtime/helpers/extends.js")),r=C(a("./node_modules/antd/es/timeline/index.js")),i=C(a("./node_modules/babel-runtime/helpers/jsx.js")),d=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/timeline/style/index.js");var c=a("./node_modules/react/index.js"),p=C(c),f=(C(a("./node_modules/prop-types/index.js")),C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./node_modules/polished/dist/polished.es.js"),h=a("./src/utils/dateUtil.js"),g=a("./src/utils/publicPath.js"),v=C(a("./src/module/modelTrain/trainProcess/components/ProcessTimeLineItem.jsx")),y=a("./src/utils/authPermit.js"),b=C(a("./src/module/modelTrain/trainProcess/ModelTrainLogPage.jsx")),x=C(a("./src/module/modelTrain/trainReport/FeatureSelectViewPage.jsx"));function C(e){return e&&e.__esModule?e:{default:e}}var j=f.default.div.withConfig({displayName:"ModelTrainProcess__LogBox",componentId:"sc-1veuwk7-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;"]),S=f.default.div.withConfig({displayName:"ModelTrainProcess__ModelInfoPanel",componentId:"sc-1veuwk7-1"})(["display:flex;flex-direction:row;justify-content:space-between;padding:10px 0 20px 0;span{&._major{font-size:14px;}&._minor{color:#bfbfbf;margin-left:10px;}}"]),I=f.default.ul.withConfig({displayName:"ModelTrainProcess__TimelineHeader",componentId:"sc-1veuwk7-2"})(["",";background:#f5f6f9;border-radius:4px;list-style:none;margin:0;padding:0;display:flex;flex-direction:row;li{height:40px;line-height:40px;float:left;font-size:16px;color:#1f2d3d;letter-spacing:1px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.head-stage{padding-left:10px;flex:1;}.head-duration,.head-operate{flex:0 0 150px;text-align:center;}"],(0,m.clearFix)()),T=[{stageId:"1",stageName:"\u63d0\u53d6\u6570\u636e"},{stageId:"2",stageName:"\u51c6\u5907\u6570\u636e"},{stageId:"4",stageName:"\u63d0\u4ea4\u6a21\u578b"},{stageId:"7",stageName:"\u6570\u636e\u9884\u5904\u7406"},{stageId:"5",stageName:"\u8bad\u7ec3\u6a21\u578b"},{stageId:"6",stageName:"\u89e3\u6790\u7ed3\u679c"},{stageId:"FINISH",stageName:"\u8bad\u7ec3\u5b8c\u6210"}],w={padding:"20px 0 0 20px"},E=(0,i.default)(I,{},void 0,(0,i.default)("li",{className:"head-stage"},void 0,"\u91cc\u7a0b\u7891\u8fc7\u7a0b"),(0,i.default)("li",{className:"head-duration"},void 0,"\u8017\u65f6"),(0,i.default)("li",{className:"head-duration"},void 0,"\u72b6\u6001"),(0,i.default)("li",{className:"head-operate"})),D=(0,i.default)("span",{},void 0,"\u5bfc\u51fa\u65e5\u5fd7"),M=(0,i.default)("span",{},void 0,"\u5173 \u95ed"),k=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.showTrainLog=function(){n.showModal("\u6a21\u578b\u8bad\u7ec3\u65e5\u5fd7","","SHOW_LOG")},n.hideModal=function(){n.modalData={modalType:"",modalTitle:"",modalContent:""},n.setState({modalVisible:!1})},n.showModal=function(e,t,a){n.modalData={modalType:a,modalTitle:e,modalContent:t},n.setState({modalVisible:!0})},n.exportLog=function(){var e=_.get(n.props.processData,"[0].taskId","--");window.location.href=(0,g.urlFormat)("/api/trainTasks/"+e+"/actions/exportLog?token="+encodeURI((0,y.getToken)()))},n.state={modalVisible:!1},n.modalData={modalType:"",modalTitle:"",modalContent:""},n}return(0,u.default)(t,e),t.prototype.renderModelInfo=function(e,t,a){return(0,i.default)(S,{},void 0,(0,i.default)("div",{},void 0,(0,i.default)("span",{className:"_major"},void 0,a),(0,i.default)("span",{className:"_minor"},void 0,"\u6a21\u578bID : ",this.props.modelId," ")),(0,i.default)("span",{className:"_minor"},void 0,"\u4efb\u52a1ID: ",e))},t.prototype.renderProcessHead=function(){return E},t.prototype.renderProcessTimeline=function(e,t,a){var n=this,o=_.keyBy(this.props.processData,"stageId")||{},d=o[6],l={1:"processed",2:"processing",0:"error"};return(0,i.default)(r.default,{style:w},void 0,T.map((function(r){var u=r.stageId,c=r.stageName,p=o[u]||{},f=p.status,m=p.stageBar,g=p.startTime,y=p.endTime,b=p.errInfo,x=p.subStages,C=_.isUndefined(f)?"waiting":l[f+""];"FINISH"===u&&d&&d.status+""==="1"&&(C="finish");var j=m,S=(0,h.calcRelativeTime)(g,y);return(0,i.default)(v.default,{taskId:e,modelId:t,modelName:a,stageData:{stageId:u,stageName:c,startTime:g,stageStatus:C,progress:j,duration:S,errInfo:b,subStages:x},operate:(0,s.default)({},"waiting"!==C&&{5:"\u67e5\u770b\u65e5\u5fd7",7:"\u67e5\u770b\u65e5\u5fd7"},"finish"===C&&{FINISH:"\u67e5\u770b\u62a5\u544a"})[u],operateFunc:{5:n.showTrainLog,7:n.showTrainLog,FINISH:n.showTrainReport}[u],showModal:n.showModal},r.stageId)})))},t.prototype.render=function(){var e=_.get(this.props.processData,"[0].taskId","--"),t=this.props.modelInfo||{},a=t.modelId,s=t.modelName;return(0,i.default)(p.default.Fragment,{},void 0,this.renderModelInfo(e,a,s),this.renderProcessHead(),this.props.processData.length>0?this.renderProcessTimeline(e,a,s):(0,i.default)("span",{style:{fontSize:14,padding:10}},void 0,"\u6a21\u578b\u7b49\u5f85\u8bad\u7ec3\u4e2d....."),(0,i.default)(o.default,{title:this.modalData.modalTitle,style:{top:20},visible:this.state.modalVisible,maskClosable:!0,cancelText:"\u5173\u95ed",centered:!0,width:800,onCancel:this.hideModal,footer:"SHOW_LOG"===this.modalData.modalType&&(0,i.default)("div",{},void 0,(0,i.default)(n.default,{type:"primary",size:"small",onClick:this.exportLog},void 0,D),(0,i.default)(n.default,{size:"small",onClick:this.hideModal},void 0,M))},void 0,"SHOW_LOG"===this.modalData.modalType&&(0,i.default)(j,{},void 0,(0,i.default)(b.default,{taskId:e})),"SHOW_ERROR"===this.modalData.modalType&&(0,i.default)(j,{},void 0,this.modalData.modalContent," "),"SHOW_FEATURE_RESULT"===this.modalData.modalType&&(0,i.default)(x.default,{taskId:e,modelId:a,arithId:this.modalData.modalContent})))},t}(c.Component);t.default=k},"./src/module/modelTrain/trainProcess/components/ProcessTimeLineItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/button/index.js")),o=m(a("./node_modules/babel-runtime/helpers/jsx.js")),s=m(a("./node_modules/antd/es/timeline/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/timeline/style/index.js");var r=m(a("./node_modules/react/index.js")),i=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),d=a("./node_modules/polished/dist/polished.es.js"),l=a("./node_modules/@ant-design/compatible/es/index.js"),u=a("./src/utils/dateUtil.js"),c=a("./node_modules/react-router-dom/esm/react-router-dom.js"),p=a("./src/routes/routeHelper.jsx"),f=m(a("./node_modules/dayjs/dayjs.min.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=(0,i.default)(s.default.Item).withConfig({displayName:"ProcessTimeLineItem__TimeLineItem",componentId:"sc-179m485-0"})(["",";.ant-timeline-item-content{padding-bottom:10px;}h1{font-size:14px;color:#475669;font-weight:600;padding-left:5px;display:flex;flex-direction:row;justify-content:space-between;._duration,._beginTime{color:#d6dde6;font-weight:normal;margin-left:10px;}._stateOperate{margin-right:35px;font-size:12px;font-weight:normal;color:#1890ff;cursor:pointer;&:hover{color:#40a9ff;}}}.process-info{",";list-style:none;margin:0 10px;padding:0;display:flex;flex-direction:row;&:last-child{margin-bottom:20px;}li{float:left;line-height:40px;border-bottom:1px solid #dfe0e1;padding-left:20px;&.process-message{width:50%;flex:1;}&.process-duration,&.process-status,&.process-operate{flex:0 0 150px;text-align:center;.operate-link-error{color:#fb6362;cursor:pointer;&:hover{color:#ffab91;}}.operate-link{color:#1890ff;cursor:pointer;&:hover{color:#40a9ff;}}}}}.process-error{li{&.process-status,&.process-operate{color:#fb6362;i{margin-left:5px;}}}}.repeat-icon{display:flex;padding:5px;border-radius:12px;background:#47b2fb;}.ant-divider-horizontal{margin:15px 0;}.ant-timeline-item-tail{border-left:2px solid #bce3fd;}&.status-processed .ant-timeline-item-tail{border-left:1px solid #bce3fd;}&.status-finish .ant-timeline-item-tail,&.finish-timeline .ant-timeline-item-tail{visibility:hidden;}&.status-waiting .ant-timeline-item-tail,&.status-error .ant-timeline-item-tail,&.status-processing .ant-timeline-item-tail{border-left:1px solid #f2f4f8;}&.status-waiting .ant-timeline-item-content h1{color:#d6dde6;}&.status-processing .ant-timeline-item-content h1{color:#1890ff;}&.status-error .ant-timeline-item-content h1{color:#fb6362;}"],(0,d.clearFix)(),(0,d.clearFix)()),g={waiting:{icon:"clock-circle-o",style:{color:"#D6DDE6",fontSize:"14px"}},processing:{icon:"sync",style:{color:"#fff",fontSize:"14px"}},error:{icon:"exclamation-circle",style:{color:"#FB6362",fontSize:"18px"}},processed:{icon:"check-circle",style:{color:"#98D4FD",fontSize:"14px"}},finish:{icon:"check-circle",style:{color:"#00CF9B",fontSize:"24px"}}},v={waiting:"\u7b49\u5f85\u4e2d",processing:"\u8fd0\u884c\u4e2d",error:"\u8fd0\u884c\u51fa\u9519",processed:"\u5df2\u5b8c\u6210"},y=function(e){var t=g[e];return"processing"===e?(0,o.default)("div",{className:"repeat-icon"},void 0,(0,o.default)(l.Icon,{type:t.icon,spin:!0,style:t.style})):(0,o.default)(l.Icon,{type:t.icon,style:t.style})},b=(0,o.default)("i",{className:"anticon anticon-exclamation-circle"});t.default=function(e){var t=e.stageData,a=void 0===t?{}:t,s=e.operate,i=e.operateFunc,d=void 0===i?_.noop:i,l=e.showModal,m=void 0===l?_.noop:l,g=e.taskId,x=e.modelId,C=e.modelName,j=a||{},S=j.stageStatus,I=j.startTime,T=j.stageName,w=j.duration,E=j.stageId,D=j.subStages,M="\u8bc4\u4f30\u62a5\u544a:"+C+"}",k=I?(0,f.default)(I).format("YYYY MM-DD HH:mm:ss"):"--";return(0,o.default)(h,{dot:y(S),className:"status-"+S+" "+("FINISH"===E?"finish-timeline":""),style:{padding:0}},void 0,(0,o.default)("h1",{},void 0,(0,o.default)("div",{className:"_stageTitle"},void 0,"FINISH"===E?(0,o.default)("span",{},void 0,T):(0,o.default)(r.default.Fragment,{},void 0,(0,o.default)("span",{},void 0,T),(0,o.default)("span",{},void 0,"\uff08 ",v[S]," \uff09"),(0,o.default)("span",{className:"_beginTime"},void 0,"\u5f00\u59cb\u65f6\u95f4:"+(k||"--")),("processed"===S||"error"===S)&&(0,o.default)("span",{className:"_duration"},void 0,"\u8017\u65f6:"+(w||"--")))),s&&(0,o.default)("div",{className:"_stateOperate"},void 0,"\u67e5\u770b\u62a5\u544a"===s?(0,o.default)(c.Link,{to:{pathname:p.modelTrainUrl.viewTrainReport(x,g,"RECOMMEND",M)},target:"_blank"},void 0,(0,o.default)(n.default,{type:"primary",size:"small"},void 0,"\xa0\xa0",s,"\xa0\xa0")):(0,o.default)(n.default,{type:"primary",size:"small",onClick:d},void 0,"\xa0\xa0",s,"\xa0\xa0"))),"FINISH"!==E&&D&&D.map((function(e){var t=e.status,a=e.errInfo,n=e.message,s=e.id,r=e.startTime,i=e.endTime,d=e.operateType,l=(0,u.calcRelativeTime)(r,i);return(0,o.default)("ul",{className:"process-info "+(t+""==="0"?"process-error":"")},s,(0,o.default)("li",{className:"process-message"},void 0,n),(0,o.default)("li",{className:"process-duration"},void 0,l),(0,o.default)("li",{className:"process-status"},void 0,{1:"\u6210\u529f",2:"\u8fd0\u884c\u4e2d",0:"\u5931\u8d25"}[t+""],t+""==="0"&&b),(0,o.default)("li",{className:"process-operate"},void 0,t+""==="0"&&(0,o.default)("span",{className:"operate-link-error",href:"javascript:;",onClick:function(){return m("\u9519\u8bef\u4fe1\u606f",a,"SHOW_ERROR")}},void 0,"\u67e5\u770b\u539f\u56e0"),d&&""!==d&&(0,o.default)("span",{className:"operate-link",href:"javascript:;",onClick:function(){return m("\u67e5\u770b\u7279\u5f81\u7b5b\u9009\u7ed3\u679c",d,"SHOW_FEATURE_RESULT")}},void 0,"\u67e5\u770b\u7ed3\u679c")))})))}},"./src/module/modelTrain/trainReport/FeatureSelectView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./src/module/modelTrain/trainReport/section/SimpleTable.jsx"))),l=c(a("./src/module/modelTrain/trainReport/section/Section.jsx")),u=c(a("./src/module/modelTrain/trainReport/section/Chart.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this.props.extraData||{},t=e.feature_influence,a=e.feature_corr;return(0,n.default)(i.default.Fragment,{},void 0,(0,n.default)(l.default,{title:"\u7279\u5f81\u53d8\u91cf\u76f8\u5173\u5206\u6790(CORR)"},void 0,(0,n.default)(u.default,{data:a||{}})),(0,n.default)(l.default,{title:"\u6307\u6807\u5f71\u54cd\u7a0b\u5ea6"},void 0,(0,n.default)(d.default,{data:t||{}})))},t}(i.default.PureComponent);t.default=p},"./src/module/modelTrain/trainReport/FeatureSelectViewPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/react/index.js")),d=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),l=a("./node_modules/lodash/lodash.js"),u=m(a("./src/module/modelTrain/trainReport/FeatureSelectView.jsx")),c=a("./src/components/index.js"),p=a("./src/redux/reducers/trainReport.js"),f=a("./src/redux/selectors/trainReport.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=(0,n.default)(c.LoadingIndicator,{}),g=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(p.trainReportActions.getModelReportDatasRequest({modelId:this.props.modelId,taskId:this.props.taskId,arithId:this.props.arithId}))},t.prototype.render=function(){var e=this.props.modelReportDatas.toJS().extraData;return this.props.loading||(0,l.isUndefined)(this.props.loading)?(0,n.default)("div",{style:{height:500}},void 0,h):(0,n.default)(u.default,{extraData:e})},t}(i.default.PureComponent);t.default=(0,d.connect)((function(e){return{modelReportDatas:(0,f.selectModelReportDatas)(e),loading:(0,f.selectModelReportDatasLoading)(e)}}))(g)},"./src/module/modelTrain/trainReport/ModelTrainReportPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/extends.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js")),d=h(a("./node_modules/react/index.js")),l=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/lodash/lodash.js")),u=a("./node_modules/react-redux/es/index.js"),c=h(a("./src/module/modelTrain/trainReport/TrainReport.jsx")),p=a("./src/components/index.js"),f=a("./src/redux/reducers/trainReport.js"),m=a("./src/redux/selectors/trainReport.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=(0,n.default)(p.LoadingIndicator,{}),v=function(e){function t(){return(0,s.default)(this,t),(0,r.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(f.trainReportActions.getModelReportDatasRequest({modelId:this.props.modelId,taskId:this.props.taskId,arithId:this.props.arithmeticId}))},t.prototype.render=function(){var e=this.props.modelReportDatas.toJS();return this.props.loading||(0,l.isUndefined)(this.props.loading)?g:e&&d.default.createElement(c.default,(0,o.default)({},e,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelTrain\\trainReport\\ModelTrainReportPage.jsx",lineNumber:25}}))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e,t){var a=t.match.params;return{modelId:a.modelId,taskId:a.taskId,arithmeticId:a.arithId,modelReportDatas:(0,m.selectModelReportDatas)(e),loading:(0,m.selectModelReportDatasLoading)(e)}}))(v)},"./src/module/modelTrain/trainReport/TrainReport.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=a("./node_modules/react/index.js"),l=(m(d),m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/lodash/lodash.js"))),u=a("./src/components/exception/index.js"),c=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=m(a("./src/module/modelTrain/trainReport/section/index.js")),f=m(a("./src/module/modelTrain/trainReport/layout/index.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=i.default.TabPane,g=c.default.div.withConfig({displayName:"TrainReport__TrainReportWrapper",componentId:"sc-1ytdxvt-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;}}"]),v=c.default.div.withConfig({displayName:"TrainReport__TrainReportBody",componentId:"sc-1ytdxvt-1"})(["background:#fff;margin:0 50px;padding:20px 30px 0 30px;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;}}"]),_=c.default.div.withConfig({displayName:"TrainReport__ModelInfoPanel",componentId:"sc-1ytdxvt-2"})(["display:flex;flex-direction:row;justify-content:space-between;padding:0 0 10px 0;margin:0 50px;._major{font-size:14px;}._minor{color:#bfbfbf;margin-left:10px;}"]),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.handleChangeTab=function(e){n.setState({activeTab:e})},n.state={activeTab:"tab-0"},n}return(0,r.default)(t,e),t.prototype.renderModelInfo=function(){var e=this.props.reportInfo,t=l.default.get(e,"modelInfo.modelId"),a=l.default.get(e,"taskInfo.taskId");return(0,n.default)(_,{},void 0,(0,n.default)("div",{},void 0,(0,n.default)("span",{className:"_minor"},void 0,"\u6a21\u578bID : ",t," ")),(0,n.default)("span",{className:"_minor"},void 0,"\u4efb\u52a1ID: ",a))},t.prototype.renderReportTitle=function(){var e=this.props.reportInfo,t=(l.default.get(e,"modelInfo.modelName")||"--")+"-"+(l.default.get(e,"arithInfo.arithmeticName")||"--")+" - \u8bad\u7ec3\u8bc4\u4f30\u62a5\u544a",a=l.default.get(e,"taskInfo.endTime");return(0,n.default)("h2",{className:"report-title"},void 0,t,(0,n.default)("span",{},void 0,a))},t.prototype.renderTabs=function(){var e=this,t=this.props.reportData;return(0,n.default)(i.default,{onChange:this.handleChangeTab,activeKey:this.state.activeTab,className:"report-tabs"},void 0,t&&t.map((function(t,a){return(0,n.default)(h,{tab:t.tab},"tab-"+a,(0,n.default)(u.ErrorBoundary,{},void 0,l.default.get(t,"sections",[]).map((function(t,a){var o=t.title,s=t.desc,r=t.uiType,i=t.result,d=t.subSections,u=t.layout,c=p.default.comp[r],m=null;return l.default.isEmpty(d)?c||console.error("["+o+"] The uiType property configured error"):(m=f.default[u])||console.error("["+o+"] The layout property configured error"),(0,n.default)(p.default,{title:o,desc:s},"section-"+a,!l.default.isEmpty(d)&&(0,n.default)(m,{sections:d}),l.default.isEmpty(d)&&(0,n.default)(c,{data:i,reportInfo:e.props.reportInfo,extraData:e.props.extraData}))}))))})))},t.prototype.render=function(){return(0,n.default)(g,{},void 0,this.renderModelInfo(),(0,n.default)(v,{},void 0,this.renderReportTitle(),this.renderTabs()))},t}(d.Component);t.default=y},"./src/module/modelTrain/trainReport/layout/TowColumnLayout.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/prop-types/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=r(a("./src/module/modelTrain/trainReport/section/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"TowColumnLayout__SectionPanel",componentId:"f4dvq5-0"})(["display:flex;flex-direction:row;"]),d=o.default.div.withConfig({displayName:"TowColumnLayout__CardPanel",componentId:"f4dvq5-1"})(["border:1px solid #ccd5e0;border-radius:4px;margin-right:30px;flex:0.5;.card-title{height:40px;background:#f5f6f9;font-size:14px;font-weight:bold;padding:0 10px;color:#475669;align-items:center;display:flex;border-bottom:1px solid #ccd5e0;}.card-content{background:#f9fafc;padding:15px;}"]),l=function(e){var t=e.title,a=e.children;return(0,n.default)(d,{},void 0,(0,n.default)("div",{className:"card-title"},void 0,t),(0,n.default)("div",{className:"card-content"},void 0,a))};t.default=function(e){var t=e.sections;return(0,n.default)(i,{},void 0,t.map((function(e,t){var a=e.title,o=e.uiType,r=e.result,i=s.default.comp[o];return i||console.error("["+a+"] The uiType property configured error"),(0,n.default)(l,{title:a},t,r&&(0,n.default)(i,{data:r}))})))}},"./src/module/modelTrain/trainReport/layout/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/module/modelTrain/trainReport/layout/TowColumnLayout.jsx"),s=(n=o)&&n.__esModule?n:{default:n};t.default={TowColumnLayout:s.default}},"./src/module/modelTrain/trainReport/section/ArithParamTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),o(a("./node_modules/prop-types/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.table.withConfig({displayName:"ArithParamTable__ArithParamGrid",componentId:"sc-10ta2p7-0"})(["width:100%;th{background:#e5e9f2;height:40px;font-size:14px;padding:5px 10px;border-collapse:collapse;border-spacing:0;border-right:1px solid #dee2e6;border-left:1px solid #dee2e6;& > a{margin-left:20px;font-size:12px;font-weight:normal;color:#475669;text-decoration:none;&:active,&:visited{text-decoration:none;}&:hover{color:#47b2fb;}}}tbody > tr{&:nth-child(odd){background:#fff;}&:nth-child(even){background:#f9fafc;}}tbody > tr > td{padding:5px 10px;border-left:1px solid #dee2e6;border-right:1px solid #dee2e6;border-bottom:1px solid #dee2e6;height:40px;}"]);t.default=function(e){var t=e.data,a=t.header,o=t.data;return(0,n.default)(s,{},void 0,(0,n.default)("thead",{},void 0,(0,n.default)("tr",{},void 0,a.map((function(e){var t=e.name,a=e.desc;return(0,n.default)("th",{},t,a)})))),(0,n.default)("tbody",{},void 0,o.map((function(e){var t=e.PARAM_KEY,a=e.PARAM_VALUE,o=e.PARAM_DESC;return(0,n.default)("tr",{},t,(0,n.default)("td",{},void 0,t||"--"),(0,n.default)("td",{},void 0,a||"--"),(0,n.default)("td",{},void 0,o||""))}))))}},"./src/module/modelTrain/trainReport/section/Chart.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/button/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=p(a("./node_modules/react-image/es/index.js")),c=a("./node_modules/@ant-design/icons/es/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.div.withConfig({displayName:"Chart__ChartBox",componentId:"svkulq-0"})(["position:relative;display:flex;align-items:center;justify-content:center;img{width:90%;}"]),m=(0,o.default)(c.ExportOutlined,{}),h=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.updatePng=function(e){var t=e;return t&&(t+=".jpeg"),t},n.onMouseEnter=function(){n.setState({showFuncPanel:!0})},n.onMouseLeave=function(){n.setState({showFuncPanel:!1})},n.down=function(e){window.open(_.get(e,"data[0].imgUrl")+"?token="+getToken())},n.state={showFuncPanel:!0},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.data,s=t.width;return(0,o.default)(f,{width:s},void 0,(0,o.default)(n.default,{onClick:function(){e.down(a)},onMouseEnter:this.onMouseEnter,style:{position:"absolute",right:"3%",top:"0%"},className:"button-item",icon:m,type:"primary",shape:"circle",title:"\u67e5\u770b\u9ad8\u6e05\u56fe"}),(0,o.default)(u.default,{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,src:_.get(a,"data[0].imgUrl")+"?token="+getToken()}))},t}(d.default.Component);t.default=h},"./src/module/modelTrain/trainReport/section/FeatureTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/modal/index.js")),o=f(a("./node_modules/antd/es/tooltip/index.js")),s=f(a("./node_modules/antd/es/button/index.js")),r=f(a("./node_modules/babel-runtime/helpers/jsx.js")),i=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/button/style/index.js");var u=f(a("./node_modules/react/index.js")),c=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=f(a("./src/module/modelTrain/trainReport/FeatureSelectView.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=c.default.table.withConfig({displayName:"FeatureTable__FeatureGrid",componentId:"sc-1nc4gzp-0"})(["width:100%;th{background:#e5e9f2;height:40px;font-size:14px;padding:5px 10px;border-collapse:collapse;border-spacing:0;border-right:1px solid #dee2e6;border-left:1px solid #dee2e6;& > a{margin-left:20px;font-size:12px;font-weight:normal;color:#475669;text-decoration:none;&:active,&:visited{text-decoration:none;}&:hover{color:#47b2fb;}}}tbody > tr{&:nth-child(odd){background:#fff;}&:nth-child(even){background:#f9fafc;}}tbody > tr > td{padding:5px 10px;border-left:1px solid #dee2e6;border-right:1px solid #dee2e6;border-bottom:1px solid #dee2e6;height:40px;}"]),h=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.hideFeatureModal=function(){n.setState({modelVisible:!1})},n.showFeatureModal=function(){n.setState({modelVisible:!0})},n.state={modelVisible:!1},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this.props.data.data,t=_.chunk(e,5),a=_.toString(_.get(this.props.reportInfo,"modelInfo.modelTypeId"));return(0,r.default)(u.default.Fragment,{},void 0,(0,r.default)(m,{},void 0,(0,r.default)("thead",{},void 0,(0,r.default)("tr",{},void 0,(0,r.default)("th",{colSpan:5},void 0,"\u5171\u8ba1"+_.size(e)+"\u4e2a\u7279\u5f81\u6307\u6807","1"===a&&(0,r.default)(s.default,{onClick:this.showFeatureModal,type:"dashed",size:"small",style:{marginLeft:10}},void 0,"\u70b9\u51fb\u67e5\u770b\u7279\u5f81\u7b5b\u9009")))),(0,r.default)("tbody",{},void 0,t.map((function(e,t){for(;e.length<5;)e.push({});return(0,r.default)("tr",{},t,e.map((function(e,t){var a=e.KPI_NAME,n=e.KPI_DESC;return(0,r.default)("td",{},t,(0,r.default)(o.default,{title:n&&"-"!==n&&"--"!==n?n:a},void 0,a||"--"))})))})))),this.state.modelVisible&&(0,r.default)(n.default,{visible:this.state.modelVisible,onCancel:this.hideFeatureModal,footer:null,width:1e3,title:"\u67e5\u770b\u7279\u5f81\u7b5b\u9009\u7ed3\u679c"},void 0,(0,r.default)(p.default,{taskId:_.get(this.props.reportInfo,"taskInfo.taskId"),extraData:this.props.extraData})))},t}(u.default.PureComponent);t.default=h},"./src/module/modelTrain/trainReport/section/File.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./src/utils/constants.js"),u=a("./node_modules/polished/dist/polished.es.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.div.withConfig({displayName:"File__FileDom",componentId:"dpmww8-0"})(["width:100%;"]),f=d.default.ul.withConfig({displayName:"File__FileUl",componentId:"dpmww8-1"})(["margin:0;padding:0 15px 0 0;list-style:none;li{display:inline;",";line-height:40px;padding:0 5px;float:left;}"],(0,u.ellipsis)()),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.funDownload=function(e){var t=n.props.data,a=(0,l.wrapServiceUrl)(l.ServicePath.MODELING_SERVICE,t.data&&t.data[0].fileUrl);fetch(a).then((function(t){return t.blob().then((function(t){var a=document.createElement("a"),n=window.URL.createObjectURL(t);a.href=n,a.download=e,a.click(),window.URL.revokeObjectURL(n)}))}))},n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data;return(0,n.default)(p,{},void 0,(0,n.default)(f,{},void 0,t.data&&t.data.map((function(t,a){return(0,n.default)("li",{},a,(0,n.default)("span",{style:{fontWeight:700,fontSize:13}},void 0,"\u6587\u4ef6\u540d\u79f0\uff1a"),(0,n.default)("span",{title:"\u4e0b\u8f7d\u6587\u4ef6",style:{marginLeft:5}},void 0,(0,n.default)("a",{onClick:function(){return e.funDownload(t.fileTitle)},href:"javascript:void(0)"},void 0,!t.fileTitle&&t.fileUrl?t.fileUrl:t.fileTitle)))}))))},t}(i.default.Component);t.default=m},"./src/module/modelTrain/trainReport/section/ModelRuleTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/modal/index.js")),o=y(a("./node_modules/babel-runtime/helpers/extends.js")),s=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=y(a("./node_modules/babel-runtime/helpers/inherits.js")),d=y(a("./node_modules/babel-runtime/helpers/jsx.js")),l=y(a("./node_modules/antd/es/button/index.js")),u=y(a("./node_modules/antd/es/select/index.js")),c="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelTrain\\trainReport\\section\\ModelRuleTable.jsx";a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=a("./node_modules/react/index.js"),f=y(p),m=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./src/utils/publicPath.js"),g=a("./src/utils/authPermit.js"),v=y(a("./src/components/auth/funAuth.jsx"));function y(e){return e&&e.__esModule?e:{default:e}}var b=u.default.Option,x=m.default.div.withConfig({displayName:"ModelRuleTable__ToolPanel",componentId:"sc-1g5gkgv-0"})(["margin-bottom:10px;padding:0 30px 5px 5px;span{margin-right:10px;}display:flex;flex-direction:row;justify-content:space-between;"]),C=(0,m.default)(l.default).withConfig({displayName:"ModelRuleTable__GrayButton",componentId:"sc-1g5gkgv-1"})(["background:#a2b0c4 !important;color:#fff !important;span{padding:0 5px;}"]),j=m.default.div.withConfig({displayName:"ModelRuleTable__CardPanel",componentId:"sc-1g5gkgv-2"})(["border:1px solid #ccd5e0;border-radius:4px;margin-right:30px;flex:0.5;margin-bottom:20px;.card-title{height:40px;background:#f5f6f9;font-size:14px;font-weight:bold;padding:0 10px;color:#475669;align-items:center;display:flex;border-bottom:1px solid #ccd5e0;}.card-content{background:#f9fafc;padding:0 0 10px 20px;}"]),S=m.default.ul.withConfig({displayName:"ModelRuleTable__Rules",componentId:"sc-1g5gkgv-3"})(["list-style:none;margin:0 0 5px 0;padding:0;overflow:hidden;li{line-height:25px;height:25px;}"]),I=m.default.ul.withConfig({displayName:"ModelRuleTable__StatIndis",componentId:"sc-1g5gkgv-4"})(["width:100%;list-style:none;margin:0;padding:0;display:flex;li{float:left;font-size:12px;color:#475669;width:120px;height:40px;line-height:40px;& > span.label{margin-right:10px;}}"]),T=function(e){var t=e.title,a=e.children;return(0,d.default)(j,{},void 0,(0,d.default)("div",{className:"card-title"},void 0,t),(0,d.default)("div",{className:"card-content"},void 0,a))},w=(0,d.default)("span",{},void 0,"\u6392\u5e8f\u65b9\u5f0f:"),E=(0,d.default)(b,{value:"CONFIDENCE"},void 0,"\u6309\u7f6e\u4fe1\u5ea6"),D=(0,d.default)(b,{value:"TOTAL_NUM"},void 0,"\u6309\u6570\u636e\u6761\u6570"),M=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.hideModal=function(){n.setState({modelVisible:!1})},n.viewAllRules=function(){n.setState({modelVisible:!0})},n.filteRules=function(e){n.setState({sortType:e})},n.downFile=function(e,t){window.location.href=(0,h.urlFormat)("/api/models/"+e+"/tasks/"+t+"?token="+encodeURI((0,g.getToken)()))},n.state={modelVisible:!1,sortType:"CONFIDENCE"},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data,a=t.header,s=t.data;s=s&&_.orderBy(s,[this.state.sortType],["desc"]);var r=_.keyBy(a,"name"),i=_.toString(_.get(this.props.reportInfo,"arithInfo.arithmeticEnName"));return(0,d.default)("div",{},void 0,(0,d.default)(x,{},void 0,(0,d.default)("div",{},void 0,w,(0,d.default)(u.default,{style:{width:120},size:"small",getPopupContainer:function(e){return e.parentNode},defaultValue:"CONFIDENCE",onChange:this.filteRules},void 0,E,D)),(0,d.default)("div",{},void 0,(0,d.default)("span",{},void 0,"\u8f93\u51fa\u89c4\u5219\u5171 ",s&&s.length," \u6761,"),s&&s.length>5&&(0,d.default)(l.default,{type:"primary",ghost:!0,size:"small",onClick:this.viewAllRules},void 0,"\u67e5\u770b\u5168\u90e8\u89c4\u5219"),"C5"===i&&(0,d.default)(v.default,{permissions:["MODEL_TRAIN:DOWNLOAD_RULE_TREE"],displayType:"hide"},void 0,(0,d.default)(l.default,{onClick:function(){e.downFile(_.toString(_.get(e.props.reportInfo,"modelInfo.modelId")),_.toString(_.get(e.props.reportInfo,"taskInfo.taskId")))},style:{marginLeft:5},type:"primary",ghost:!0,size:"small"},void 0,"\u4e0b\u8f7d\u89c4\u5219\u6811")))),s&&_.take(s,5).map((function(t,a){return f.default.createElement(P,(0,o.default)({reportInfo:e.props.reportInfo,key:a},{idx:a,headerMap:r,item:t},{__source:{fileName:c,lineNumber:164}}))})),s&&s.length>5&&(0,d.default)(n.default,{title:"\u67e5\u770b\u5168\u90e8\u6a21\u578b\u8bad\u7ec3\u7ed3\u679c\u89c4\u5219",width:800,visible:this.state.modelVisible,footer:null,onCancel:this.hideModal},void 0,s.map((function(t,a){return f.default.createElement(P,(0,o.default)({reportInfo:e.props.reportInfo,key:a},{idx:a,headerMap:r,item:t},{__source:{fileName:c,lineNumber:175}}))}))))},t}(f.default.PureComponent);t.default=M;var k=(0,d.default)("li",{},void 0,"..."),P=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.toggleExpand=function(){n.setState({shrink:!n.state.shrink})};var o=a.item,i=o.RULE&&o.RULE.split("|")||[];return n.state={shrink:i.length>=5},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.idx,a=e.headerMap,n=e.item,o=n.RULE&&n.RULE.split("|")||[],s=this.state.shrink?_.take(o,4):o;return(0,d.default)(T,{title:"\u89c4\u5219"+(t+1)},void 0,(0,d.default)(I,{},void 0,a&&_.keys(a).map((function(e,t){return"rules"===e?null:(0,d.default)("li",{},t,(0,d.default)("span",{className:"label"},void 0,a[e].desc,":"),(0,d.default)("span",{className:"val"},void 0,n[e]))}))),(0,d.default)(S,{},void 0,s&&s.map((function(e,t){return(0,d.default)("li",{},t,e)})),_.size(o)>4&&this.state.shrink&&k,_.size(o)>4&&(0,d.default)("li",{},void 0,(0,d.default)(C,{size:"small",onClick:this.toggleExpand},void 0,this.state.shrink?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77"))))},t}(p.Component)},"./src/module/modelTrain/trainReport/section/Section.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/helpers/jsx.js")),o=d(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=d(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=d(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js");d(i),d(a("./node_modules/prop-types/index.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=d(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"Section__SectionBox",componentId:"gy655g-0"})(["padding:2px 10px 10px 10px;margin-top:5px;.section-title{border-left:3px solid #47b2fb;font-size:14px;color:#1f2d3d;line-height:14px;text-indent:10px;margin-top:10px;margin-bottom:20px;}.section-content{padding:5px 10px;}.section-desc{padding-left:15px;}"]),u=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(l,{},void 0,(0,n.default)("h2",{className:"section-title"},void 0,this.props.title),!_.isEmpty(this.props.desc)&&(0,n.default)("p",{className:"section-desc"},void 0,this.props.desc),(0,n.default)("div",{className:"section-content"},void 0,this.props.children))},t}(i.Component);t.default=u},"./src/module/modelTrain/trainReport/section/SimpleTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(s(a("./node_modules/react/index.js")),s(a("./node_modules/prop-types/index.js")),s(a("./node_modules/lodash/lodash.js")));function s(e){return e&&e.__esModule?e:{default:e}}var r=s(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.table.withConfig({displayName:"SimpleTable__SimpleGrid",componentId:"sc-1rt98dv-0"})(["width:100%;th{background:#e5e9f2;height:40px;font-size:14px;padding:5px 10px;border-collapse:collapse;border-spacing:0;border-right:1px solid #dee2e6;border-left:1px solid #dee2e6;}tbody > tr > td{height:40px;padding:5px 10px;border-left:1px solid #e5e9f2;border-right:1px solid #e5e9f2;border-bottom:1px solid #e5e9f2;}"]);t.default=function(e){var t=e.data,a=e.className,s=t.header,i=t.data;return(0,n.default)(r,{className:a},void 0,(0,n.default)("thead",{},void 0,(0,n.default)("tr",{},void 0,s&&s.map((function(e){var t=e.name,a=e.desc;return(0,n.default)("th",{},t,a)})))),(0,n.default)("tbody",{},void 0,i&&i.map((function(e,t){return(0,n.default)("tr",{},t,s.map((function(a){var s=a.name;return(0,n.default)("td",{},t+"-"+s,o.default.isNull(e[s])||o.default.isNaN(e[s])?"--":e[s])})))}))))}},"./src/module/modelTrain/trainReport/section/StatTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(i(a("./node_modules/react/index.js")),i(a("./node_modules/prop-types/index.js")),i(a("./node_modules/lodash/lodash.js"))),s=i(a("./src/module/modelTrain/trainReport/section/SimpleTable.jsx")),r=i(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function i(e){return e&&e.__esModule?e:{default:e}}var d=r.default.ul.withConfig({displayName:"StatTable__StatIndis",componentId:"sc-1qsivfw-0"})(["width:100%;list-style:none;margin:0;padding:0 0 0 10px;display:flex;flex-direction:row;li{float:left;font-size:14px;color:#475669;width:150px;height:40px;line-height:40px;& > span.label{margin-right:10px;}}"]),l=(0,r.default)(s.default).withConfig({displayName:"StatTable__SimpleTable2",componentId:"sc-1qsivfw-1"})(["tbody tr td:first-child{background:#e5e9f2;font-size:14px;color:#475669;font-weight:bold;border-bottom:1px solid #dee2e6;border-top:1px solid #dee2e6;}"]);t.default=function(e){var t=e.data,a=t.stat,s=t.list,r=o.default.keyBy(a.header,"name"),i=o.default.first(a.data);return(0,n.default)("div",{},void 0,i&&(0,n.default)(d,{},void 0,o.default.keys(r).map((function(e,t){return(0,n.default)("li",{},t,(0,n.default)("span",{className:"label"},void 0,r[e].desc,":"),(0,n.default)("span",{className:"val"},void 0,i[e]))}))),(0,n.default)(l,{data:s}))}},"./src/module/modelTrain/trainReport/section/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./src/module/modelTrain/trainReport/section/Section.jsx")),o=c(a("./src/module/modelTrain/trainReport/section/SimpleTable.jsx")),s=c(a("./src/module/modelTrain/trainReport/section/FeatureTable.jsx")),r=c(a("./src/module/modelTrain/trainReport/section/ModelRuleTable.jsx")),i=c(a("./src/module/modelTrain/trainReport/section/ArithParamTable.jsx")),d=c(a("./src/module/modelTrain/trainReport/section/Chart.jsx")),l=c(a("./src/module/modelTrain/trainReport/section/File.jsx")),u=c(a("./src/module/modelTrain/trainReport/section/StatTable.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}t.default=n.default,n.default.comp={File:l.default,Chart:d.default,SimpleTable:o.default,FeatureTable:s.default,ModelRuleTable:r.default,ArithParamTable:i.default,StatTable:u.default}},"./src/module/modelTrain/trainResult/ModelTrainResultPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/antd/es/message/index.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var d=a("./node_modules/react/index.js"),l=(h(d),a("./node_modules/react-redux/es/index.js")),u=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/immutable3/dist/immutable.js"),a("./node_modules/lodash/lodash.js")),c=h(a("./src/module/modelTrain/trainResult/components/TrainResultList.jsx")),p=a("./src/redux/reducers/trainResult.js"),f=a("./src/redux/selectors/trainResult.js"),m=a("./src/components/index.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=(0,h(a("./src/containers/toJS.jsx")).default)(c.default),v=(0,n.default)(m.LoadingIndicator,{}),y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleSelectModel=function(e,t){n.props.dispatch(p.trainResultActions.setBestModelRequest({modelId:n.props.modelId,taskId:e,arithId:t})),_.defer((function(){var a=setInterval((function(){!1===n.props.selectSetBestModelLoading&&(clearInterval(a),(0,u.isNull)(n.props.operateError)?n.setState({selectModel:{taskId:e,arithmeticId:t}}):(o.default.error("\u6a21\u578b\u7b97\u6cd5\u8bbe\u7f6e\u53d1\u5e03\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError),n.setState({selectModel:n.props.selectModel})))}),300)}))},n.state={selectModel:a.selectModel},n}return(0,i.default)(t,e),t.getDerivedStateFromProps=function(e){return e.selectModel.size>0?{selectModel:e.selectModel}:null},t.prototype.componentDidMount=function(){this.props.dispatch(p.trainResultActions.getModelTrainResultRequest({modelId:this.props.modelId}))},t.prototype.componentWillUnmount=function(){this.props.dispatch(p.trainResultActions.resetModelTrainResult())},t.prototype.render=function(){var e=this.props,t=e.modelId,a=e.trainResult,o=e.modelInfo;return this.props.loading||(0,u.isUndefined)(this.props.loading)?v:(0,n.default)(g,{modelId:t,modelName:o.get("modelName",""),modelInfo:o,trainResult:a,selectModel:this.state.selectModel,onSelectModel:this.handleSelectModel})},t}(d.Component);t.default=(0,l.connect)((function(e){return{loading:(0,f.selectModelTrainResultLoading)(e),trainResult:(0,f.selectModelTrainResult)(e),selectModel:(0,f.selectBestModelSetting)(e),selectSetBestModelLoading:(0,f.selectSetBestModelLoading)(e),operateError:(0,f.selectSetBestModelError)(e)}}))(y)},"./src/module/modelTrain/trainResult/components/RadialLine.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/radio/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./src/redux/reducers/modelManage.js"),a("./node_modules/react-redux/es/index.js")),u=(c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),a("./src/redux/selectors/modelManage.js"),a("./node_modules/recharts/es6/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Group,f=(0,n.default)(u.CartesianGrid,{strokeDasharray:"3 3"}),m=(0,n.default)(u.YAxis,{}),h=(0,n.default)(u.Legend,{}),g=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.optionDataByType=function(e,t){for(var a=[],n=0;n<t.length;n++){var o={endTime:t[n].endTime,bestArith:t[n].bestArith,optimizationFlag:t[n].optimizationFlag};o[e]=t[n][e]?Number(t[n][e]):0,a.push(o)}return a},n.formatData=function(){for(var e=[],t=[],a=n.props.arryData,o=0;o<a.length;o++){var s={endTime:a[o].endTime,bestArith:a[o].bestArith,optimizationFlag:a[o].optimizationFlag};for(var r in a[o].indexes)s[r]=a[o].indexes[r],0===o&&t.push(r);e.push(s)}for(var i=[],d=e.length-1;d>=0;d--)i.push(e[d]);n.setState({allDatas:i,datas:n.optionDataByType(t.length>0?t[0]:"",i),radioValue:t.length>0?t[0]:"",radios:t})},n.onChangeRadio=function(e){var t=e.target.value;n.setState({radioValue:t,datas:n.optionDataByType(t,n.state.allDatas)})},n.state={radioValue:"",radios:[],allDatas:[],datas:[]},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.formatData()},t.prototype.render=function(){var e=this.state,t=e.datas,a=e.radioValue,o=e.radios;return(0,n.default)("div",{},void 0,(0,n.default)("div",{width:"100%",style:{padding:"0px 0px 4.2% 8%"}},void 0,(0,n.default)(p,{onChange:this.onChangeRadio,value:a},void 0,o.map((function(e,t){return(0,n.default)(i.default,{style:{marginLeft:t>0?20:0},value:e},void 0,e)})))),(0,n.default)("div",{},void 0,(0,n.default)(u.LineChart,{width:650,height:250,data:t,margin:{top:5,right:30,left:20,bottom:5}},void 0,f,(0,n.default)(u.XAxis,{dataKey:"endTime",margin:{top:15}}),m,(0,n.default)(u.Tooltip,{content:(0,n.default)((function(e){var t=e.active,o=e.payload;e.label,e.props;return t?(0,n.default)("div",{className:"custom-tooltip"},void 0,(0,n.default)("p",{className:"label"},void 0,a+" : "+o[0].payload[a]),(0,n.default)("p",{className:"label"},void 0,"\u6700\u4f73\u7b97\u6cd5 : "+o[0].payload.bestArith),(0,n.default)("p",{className:"label"},void 0,-1===o[0].payload.optimizationFlag?"\u672a\u4f18\u5316":1===o[0].payload.optimizationFlag?"\u5df2\u4f18\u5316":"\u65e0\u4f18\u5316\u7ed3\u679c")):null}),{})}),h,(0,n.default)(u.Line,{type:"monotone",dataKey:a,stroke:"#77D042"}))))},t}(d.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(g)},"./src/module/modelTrain/trainResult/components/TrainResultItem.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.UlDom=void 0;var n=x(a("./node_modules/antd/es/button/index.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=x(a("./node_modules/babel-runtime/helpers/inherits.js")),d=x(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var l=x(a("./node_modules/react/index.js")),u=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/lodash/lodash.js"))),c=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./node_modules/@ant-design/icons/es/index.js"),f=a("./node_modules/react-router-dom/esm/react-router-dom.js"),m=a("./node_modules/polished/dist/polished.es.js"),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/utils/history.js"),v=x(a("./node_modules/react-image/es/index.js")),_=a("./src/routes/routeHelper.jsx"),y=x(a("./src/styles/images/nopic.png")),b=a("./src/utils/constants.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=d.default.confirm,j=(t.UlDom=c.default.ul.withConfig({displayName:"TrainResultItem__UlDom",componentId:"sc-1tb1ad5-0"})(["padding:0px;width:100%;list-style-type:none;"]),c.default.div.withConfig({displayName:"TrainResultItem__ResultItemWrapper",componentId:"sc-1tb1ad5-1"})([".result-mask{right:0;top:0;position:absolute;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,0.8);transition:all 0.3s ease-out;opacity:0;.mask-button{display:inline-block;cursor:pointer;background-color:transparent;border-radius:100px;text-align:center;text-decoration:none;border:1px solid #fff;padding:7px 24px;color:#fff;font-size:14px;font-weight:500;a{color:#fff;text-decoration:none;}&:hover{background-color:#fff;color:#292525;a{color:#000;}}}}.result-box{padding:5px;display:flex;flex-direction:row;justify-content:space-around;background:#ffffff;border:1px solid #e0e6ed;&:hover{.result-mask{opacity:0.8;}}&._selected{border:1px solid #47b2fb;}.result-img{position:relative;flex:1 1 65%;height:200px;max-width:300px;& > img{width:100%;height:200px;}}.result-indis{margin:0;padding:0 15px;flex:1 1 35%;& > dt{font-weight:600;font-size:14px;line-height:50px;}& > dd{",";width:200px;line-height:24px;}}}.result-checkbox{margin-top:15px;.result-rec{color:#fb6362;}}"],(0,m.ellipsis)())),S=(0,o.default)("span",{},void 0,(0,o.default)("span",{className:"result-rec"},void 0,"\u7cfb\u7edf\u63a8\u8350\u6a21\u578b")),I=(0,o.default)(p.PlayCircleOutlined,{}),T=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleSelected=function(){n.props.onChange(n.props.taskId,u.default.get(n.props.result,"arithmeticId"))},n.handleClick=function(){n.props.onClick(n.props.taskId,u.default.get(n.props.result,"arithmeticId"))},n.handleVisibleChange=function(e){e?n.setState({showPopConfirm:!n.props.selected}):n.setState({showPopConfirm:!1})},n.publishModel=function(){var e=n;C({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u5b9a\u53d1\u5e03\u6b64\u6a21\u578b\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){var t=u.default.get(e.props.result,"arithmeticId"),a=e.props.modelName,n=e.props.modelId,o=e.props.taskId;(0,g.navigateTo)(_.modelBaseUrl.createModelBaseModel("?from=1&projectId="+n+"&taskId="+o+"&arithId="+t+"&projectName="+a))}})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u53d1\u5e03\u4e2d\u8bf7\u7a0d\u7b49.........."})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.getVersionDesc=function(e){n.versionDesc=e},n.state={showPopConfirm:!1,confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u53d1\u5e03?"},n.versionDesc="",n}return(0,i.default)(t,e),t.getDerivedStateFromProps=function(e){if("{}"!==JSON.stringify(e.publishModel))return{confirmLoading:!1,modalVisible:!1,modalTxt:"\u786e\u8ba4\u53d1\u5e03?"}},t.prototype.render_checkbox=function(){var e=this.props,t=e.isSysRec,a=e.result;return(0,o.default)("div",{className:"result-checkbox"},void 0,t&&S,1===a.releaseFlag?(0,o.default)("span",{style:{marginLeft:10}},void 0,"\u5df2\u53d1\u5e03"):(0,o.default)(n.default,{style:{marginBottom:10,marginLeft:t?10:0},size:"small",icon:I,onClick:this.publishModel},void 0,"\u53d1\u5e03"))},t.prototype.render_resultBox=function(){var e=this.props,t=e.modelId,a=e.modelName,n=e.taskId,s=e.result,r=e.selected,i=u.default.get(this.props.result,"arithmeticId"),l=u.default.get(s,"arithmeticFileUrl"),c="\u8bc4\u4f30\u62a5\u544a:"+a+"-"+u.default.get(s,"arithmeticName");return(0,o.default)("div",{className:"result-box "+(r&&"_selected"),onMouseEnter:this.showFuncPanel,onMouseLeave:this.hideFuncPanel},void 0,(0,o.default)(d.default,{title:"\u586b\u5199\u53d1\u5e03\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0),(0,o.default)("dl",{className:"result-indis"},void 0,(0,o.default)("dt",{},void 0,(0,o.default)("span",{title:u.default.get(s,"arithmeticName")},void 0,u.default.get(s,"arithmeticName"))," "),u.default.get(s,"evalIndis",[]).map((function(e){for(var t in e)return(0,o.default)("dd",{},u.default.uniqueId(),(0,o.default)("span",{},void 0,t,"\uff1a"),(0,o.default)("span",{title:e[t]},void 0,e[t]))}))),(0,o.default)("div",{className:"result-img"},void 0,(0,o.default)(v.default,{src:[(0,b.wrapServiceUrl)(b.ServicePath.MODELING_SERVICE,l),y.default]}),(0,o.default)("div",{className:"result-mask"},void 0,(0,o.default)("span",{className:"mask-button",onClick:this.handleClick},void 0,(0,o.default)(f.Link,{to:{pathname:_.modelTrainUrl.viewTrainReport(t,n,i,c)},target:"_blank"},void 0,"\u67e5\u770b\u8bad\u7ec3\u62a5\u544a")))))},t.prototype.render=function(){var e=this.props.className;return(0,o.default)(j,{className:e},void 0,this.render_resultBox(),this.render_checkbox())},t}(l.default.PureComponent);T.defaultProps={result:{},selected:!1,isSysRec:!1,onChange:u.default.noop,onClick:u.default.noop};t.default=(0,h.connect)((function(){return{}}))(T)},"./src/module/modelTrain/trainResult/components/TrainResultList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/extends.js")),o=h(a("./node_modules/antd/es/button/index.js")),s=h(a("./node_modules/babel-runtime/helpers/jsx.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js")),l=h(a("./node_modules/antd/es/collapse/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/collapse/style/index.js");var u=h(a("./node_modules/react/index.js")),c=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(h(a("./node_modules/prop-types/index.js")),h(a("./src/module/modelTrain/trainResult/components/TrainResultItem.jsx"))),f=a("./src/components/index.js"),m=h(a("./src/module/modelTrain/trainResult/components/RadialLine.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var g=l.default.Panel,v=c.default.div.withConfig({displayName:"TrainResultList__TrainResultWrapper",componentId:"da7id3-0"})([".result-title{background:#f5f6f9;border-radius:4px;height:50px;font-size:18px;padding-left:30px;line-height:50px;margin:0;}.result-func{display:flex;flex-direction:row;justify-content:flex-end;margin:15px 0;button{margin-right:10px;}}.ant-collapse{margin-bottom:20px;}.ant-collapse-content > .ant-collapse-content-box{padding:20px 25px;background:#f9fafc;display:flex;justify-content:space-between;flex-direction:row;flex-wrap:wrap;}.ant-collapse-header{height:40px;background:#f5f6f9;}"]),y=(0,c.default)(p.default).withConfig({displayName:"TrainResultList__TrainResultItem2",componentId:"da7id3-1"})(["width:49%;box-sizing:border-box;"]),b=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.handelSelectModel=function(e,t){n.props.onSelectModel(e,t)},n.setActiveKeys=function(e){n.setState({expandKeys:e})},n.handleExpandAll=function(){n.setActiveKeys(_.map(n.props.trainResult,"taskId"))},n.handleShrinkAll=function(){n.setActiveKeys([])},n.callModalVisible=function(){n.setState({modalVisible:!1})},n.openModalVisible=function(){n.setState({modalVisible:!0})},n.panelHeader=function(e){return(0,s.default)("div",{},void 0,(0,s.default)("span",{},void 0,"\u8bad\u7ec3\u5b8c\u6210\u65f6\u95f4 ",e.endTime),(0,s.default)("span",{style:{marginLeft:20,fontWeight:600,fontSize:"12.5px"}},void 0,-1===e.optimizationFlag?"\u672a\u4f18\u5316":1===e.optimizationFlag?"\u5df2\u4f18\u5316":"\u65e0\u4f18\u5316\u7ed3\u679c"))},n.state={expandKeys:_.get(n.props.trainResult,[0,"taskId"]),modalVisible:!1},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.trainResult,r=t.modelId,i=t.selectModel,d=t.modelName,c=t.modelInfo,p=i.taskId,h=i.arithmeticId;return(0,s.default)(v,{},void 0,(0,s.default)(f.ModalView,{viewType:"view",modalTitle:"\u66f2\u7ebf\u8d8b\u52bf\u56fe",onCancelType:!1,width:700,callVisible:this.callModalVisible,modalVisible:this.state.modalVisible,comp:(0,s.default)(m.default,{arryData:a})}),(0,s.default)("h1",{className:"result-title"},void 0,d," \xa0- \xa0\u8bad\u7ec3\u7ed3\u679c"),(0,s.default)("div",{className:"result-func"},void 0,(0,s.default)(o.default,{style:{display:0===a.length||"{}"===JSON.stringify(a[0].indexes)?"none":""},onClick:this.openModalVisible},void 0,"\u67e5\u770b\u53d8\u5316\u8d8b\u52bf"),(0,s.default)(o.default,{onClick:this.handleExpandAll},void 0,"\u5c55\u5f00\u5168\u90e8"),(0,s.default)(o.default,{onClick:this.handleShrinkAll},void 0,"\u6536\u8d77\u5168\u90e8")),(0,s.default)(l.default,{defaultActiveKey:[_.get(a,[0,"taskId"])],activeKey:this.state.expandKeys,onChange:this.setActiveKeys},void 0,_.isArray(a)&&a.map((function(t){return(0,s.default)(g,{header:e.panelHeader(t)},t.taskId,_.isArray(t.resultData)&&t.resultData.map((function(a){return u.default.createElement(y,(0,n.default)({},t.taskId===p&&a.arithmeticId===h?{selected:!0}:{selected:!1},{result:a,modelId:r,modelInfo:c,modelName:d,taskId:t.taskId,isSysRec:t.bestArith===a.arithmeticId,onChange:e.handelSelectModel,key:a.arithmeticId,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelTrain\\trainResult\\components\\TrainResultList.jsx",lineNumber:125}}))})))}))))},t}(u.default.PureComponent);b.defaultProps={trainResult:[],bestModel:{},onSelectModel:_.noop},t.default=b},"./src/module/modelVersion/detailPage/ModelVersionDetailPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=p(a("./src/module/modelVersion/detailPage/ModelVersionInfo.jsx")),c=p(a("./src/redux/services/modelVersion.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.div.withConfig({displayName:"ModelVersionDetailPage__ModelServiceDetailWrapper",componentId:"sc-1ezaekf-0"})(["width:100%;position:relative;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}"]),m=d.default.div.withConfig({displayName:"ModelVersionDetailPage__TabContent",componentId:"sc-1ezaekf-1"})(["background:#fff;min-height:500px;width:100%;padding:16px;"]),h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){c.default.getVersionsInfo(n.modelId,n.versionId).then((function(e){return n.setState({basicInfo:e.data})}))},n.state={basicInfo:{}},n.modelId=_.get(a.match.params,"modelId"),n.versionId=_.get(a.match.params,"versionId"),n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){return(0,n.default)(f,{},void 0,(0,n.default)(m,{},void 0,(0,n.default)(u.default,{modelId:this.modelId,versionId:this.versionId,basicInfo:this.state.basicInfo})))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(h)},"./src/module/modelVersion/detailPage/ModelVersionInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/col/index.js")),o=x(a("./node_modules/antd/es/row/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/babel-runtime/helpers/extends.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js")),u=x(a("./node_modules/antd/es/input/index.js")),c=x(a("./node_modules/antd/es/select/index.js")),p="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelVersion\\detailPage\\ModelVersionInfo.jsx";a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=x(a("./node_modules/react/index.js")),m=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=a("./src/components/index.js"),_=a("./src/module/modelBase/modelEnums.js"),y=x(a("./src/redux/services/modelVersion.js")),b=x(a("./src/module/modelVersion/detailPage/components/ApiFileList.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=g.Form.Item,j=c.default.Option,S=u.default.TextArea,I=m.default.div.withConfig({displayName:"ModelVersionInfo__DetailInfoWrapper",componentId:"u25i87-0"})(["display:flex;background:#fff;width:100%;.detail__main-content{display:flex;flex-direction:column;flex-grow:1;}input,textarea{width:350px;}.edit__icon{margin-left:10px;&:hover{color:#008dff;}}.display__value{word-break:break-all;}.view__section{border-radius:4px;width:100%;padding-right:20px;}.api__section{margin-bottom:20px;h3{margin-bottom:15px;font-weight:500;}h4{margin-left:6px;margin-bottom:10px;}}"]),T=_.DATA_TYPE.getValueAndDescList(),w=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleChangeTypeStatus=function(){n.setState((function(e){return{isModifyType:!e.isModifyType}}),(function(){return n.dataTypeRef.current.focus()}))},n.handleChangeDescStatus=function(){n.setState((function(e){return{isModifyDesc:!e.isModifyDesc}}),(function(){return n.versionDescRef.current.focus()}))},n.handleBasicInfoChange=function(e,t){var a=n.state.basicInfo;a[e]=t,n.setState({basicInfo:a})},n.handleSaveBasicInfo=function(e){var t={modelInfo:{modelId:n.props.modelId},versionInfo:(0,r.default)({versionId:n.props.versionId},n.state.basicInfo)};y.default.patchVersions(t).then((function(){"dataType"===e?n.setState({isModifyType:!1}):n.setState({isModifyDesc:!1})}))},n.handleClick=function(e){e.preventDefault()},n.state={basicInfo:a.basicInfo,isModifyType:!1,isModifyDesc:!1,runInfo:""},n.dataTypeRef=f.default.createRef(),n.versionDescRef=f.default.createRef(),n}return(0,l.default)(t,e),t.getDerivedStateFromProps=function(e){return{basicInfo:e.basicInfo}},t.prototype.render=function(){var e=this,t={marginBottom:0},a={width:"100%"},i=this.state,d=i.isModifyType,l=i.isModifyDesc,u=i.basicInfo;return(0,s.default)(I,{},void 0,(0,s.default)("div",{className:"detail__main-content"},void 0,(0,s.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:a},void 0,f.default.createElement(g.Form,(0,r.default)({},{layout:"inline",labelAlign:"left"},{id:"basic-info",__source:{fileName:p,lineNumber:133}}),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(C,{label:"\u7248\u672c\u6765\u6e90",style:t},void 0,(0,s.default)("span",{className:"display__value"},void 0,_.PUBLISH_FROM.getDescFromValue(u.publishFrom)||"--"))),(0,s.default)(n.default,{span:8},void 0,(0,s.default)(C,{label:"\u521b\u5efa\u4eba",style:t},void 0,u.createBy)),(0,s.default)(n.default,{span:8},void 0,(0,s.default)(C,{label:"\u521b\u5efa\u65f6\u95f4",style:t},void 0,u.createAt))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(C,{label:"\u7248\u672c\u53f7",style:t},void 0,(0,s.default)("span",{className:"display__value"},void 0,u.versionName))),(0,s.default)(n.default,{span:8},void 0,(0,s.default)(C,{label:"\u6a21\u578b\u7248\u672c\u72b6\u6001",style:t},void 0,(0,s.default)("span",{className:"display__value",style:{height:"40px",lineHeight:"40px",display:"flex",alignItems:"center"}},void 0,(0,s.default)(v.StateLabel,{source:"modelVersion",code:u.versionStatus})))),(0,s.default)(n.default,{span:8},void 0,(0,s.default)(C,{label:"\u6570\u636e\u7c7b\u578b",style:t},void 0,d?f.default.createElement(c.default,{ref:this.dataTypeRef,placeholder:"\u8bf7\u9009\u62e9\u6570\u636e\u7c7b\u578b",value:u.dataType||_.DATA_TYPE.UNKNOW,onChange:function(t){return e.handleBasicInfoChange("dataType",t)},onBlur:function(){return e.handleSaveBasicInfo("dataType")},style:{width:"120px"},__source:{fileName:p,lineNumber:172}},T.map((function(e){return(0,s.default)(j,{value:e.code},e.code,e.desc)}))):(0,s.default)("span",{className:"display__value"},void 0,_.DATA_TYPE.getDescFromValue(u.dataType)||"--"),(0,s.default)(h.EditOutlined,{className:"edit__icon",onClick:this.handleChangeTypeStatus})))),(0,s.default)(o.default,{},void 0,(0,s.default)(C,{label:"\u6a21\u578b\u7248\u672c\u63cf\u8ff0"},void 0,l?f.default.createElement(S,{maxlength:"100",ref:this.versionDescRef,onChange:function(t){return e.handleBasicInfoChange("versionDesc",t.target.value)},autosize:{minRows:4,maxRows:6},style:{width:"600px"},placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",value:u.versionDesc,onBlur:function(){return e.handleSaveBasicInfo("versionDesc")},__source:{fileName:p,lineNumber:196}}):(0,s.default)("span",{className:"display__value",style:{width:"600px"}},void 0,u.versionDesc),(0,s.default)(h.EditOutlined,{className:"edit__icon",onClick:this.handleChangeDescStatus}))))),(0,s.default)(v.ModelConfigPanel,{title:"\u8fd0\u884c\u73af\u5883",style:a},void 0,(0,s.default)("div",{id:"running-info"},void 0,_.RUN_ENGINE.getDescFromValue(u.runEngine))),(0,s.default)(v.ModelConfigPanel,{title:"\u63a5\u53e3\u6587\u4ef6",style:a},void 0,(0,s.default)("div",{id:"request-file",className:"view__section"},void 0,(0,s.default)(b.default,{files:u.additionFiles,modelId:u.modelId,versionId:u.versionId})))))},t}(f.default.Component);t.default=w},"./src/module/modelVersion/detailPage/components/ApiFileList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/button/index.js")),o=h(a("./node_modules/babel-runtime/helpers/extends.js")),s=h(a("./node_modules/antd/es/modal/index.js")),r=h(a("./node_modules/babel-runtime/helpers/jsx.js")),i=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=h(a("./node_modules/babel-runtime/helpers/inherits.js")),u=h(a("./node_modules/antd/es/list/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/list/style/index.js");var c=h(a("./node_modules/react/index.js")),p=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=h(a("./src/module/modelVersion/detailPage/components/FilePreview.jsx")),m=a("./src/module/modelBase/modelEnums.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=u.default.Item,v=p.default.div.withConfig({displayName:"ApiFileList__PageWrapper",componentId:"sc-1leccmh-0"})(["height:100%;width:100%;overflow:auto;display:flex;align-items:center;.list__wrapper{width:100%;height:100%;}.ant-list-item{display:flex;justify-content:space-between;}.file__name{color:#475669;}.ant-list-split .ant-list-item{border-bottom:none;}"]),y=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleModelOpen=function(e){n.setState({modelVisible:!0,dataInfo:e})},n.handleCancel=function(){n.setState({modelVisible:!1})},n.state={modelVisible:!1,dataInfo:{}},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=_.groupBy(this.props.files,"fileType");return(0,r.default)(v,{},void 0,(0,r.default)(s.default,{title:"\u63a5\u53e3\u6587\u4ef6",width:"80%",style:{top:"20px"},bodyStyle:{height:"500px"},visible:this.state.modelVisible,onCancel:this.handleCancel,footer:null},void 0,c.default.createElement(f.default,(0,o.default)({fileId:this.state.dataInfo.fileId},this.props,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\modelVersion\\detailPage\\components\\ApiFileList.jsx",lineNumber:61}}))),(0,r.default)("div",{},void 0,Object.keys(t).map((function(a){return(0,r.default)(u.default,{style:{width:"500px"},className:"list__wrapper",itemLayout:"horizontal",dataSource:t[a],renderItem:function(t){return(0,r.default)(g,{actions:m.FILE_TYPE.INTERFACE===t.fileType&&-1===t.dirFlag?[(0,r.default)(n.default,{type:"primary",size:"small",onClick:function(){return e.handleModelOpen(t)}},"preview","\u9884\u89c8")]:[]},void 0,(0,r.default)("div",{className:"file__name"},void 0,m.FILE_TYPE.getDescFromValue(a),"\uff1a",t.fileName))}},a)}))))},t}(c.default.Component);t.default=y},"./src/module/modelVersion/detailPage/components/FilePreview.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),l=a("./src/components/index.js"),u=c(a("./src/redux/services/modelVersion.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.div.withConfig({displayName:"FilePreview__PageWrapper",componentId:"sc-15h8xq3-0"})(["height:100%;width:100%;overflow:auto;display:flex;flex-grow:1;.doc__wrapper{min-height:300px;background:#f0f7ff;}"]),f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.fetchData=function(){var e=n.props,t=e.modelId,a=e.versionId,o=e.fileId;u.default.getModelDocContent(t,a,o).then((function(e){return n.setState({docContent:e.data})}))},n.state={docContent:""},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){return(0,n.default)(p,{},void 0,(0,n.default)(l.ModelConfigPanel,{title:"\u6587\u4ef6\u9884\u89c8",style:{flexGrow:1}},void 0,(0,n.default)("div",{className:"doc__wrapper"},void 0,(0,n.default)("pre",{},void 0,this.state.docContent))))},t}(i.default.Component);t.default=f},"./src/module/modelVersion/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/modelVersion/listPage/ModelVersionPage.jsx");Object.defineProperty(t,"ModelVersionPage",{enumerable:!0,get:function(){return s(n).default}});var o=a("./src/module/modelVersion/detailPage/ModelVersionDetailPage.jsx");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ModelVersionDetailInfoPage",{enumerable:!0,get:function(){return s(o).default}})},"./src/module/modelVersion/listPage/ModelVersionPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/spin/index.js")),s=C(a("./node_modules/antd/es/tooltip/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/antd/es/message/index.js")),d=C(a("./node_modules/antd/es/modal/index.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=C(a("./node_modules/react/index.js")),f=(C(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/components/index.js"),h=C(a("./src/redux/services/modelVersion.js")),g=C(a("./src/module/modelVersion/listPage/component/VersionExport.jsx")),v=C(a("./src/module/modelVersion/listPage/component/SearchBar.jsx")),y=a("./src/routes/routeHelper.jsx"),b=a("./src/module/modelBase/modelEnums.js"),x=a("./src/styles/GlobalStyle.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),S=(0,r.default)(m.LoadingIndicator,{position:"relative"}),I=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.handleOnChange=function(e,t){var a=n;d.default.confirm({title:"\u63d0\u793a\u4fe1\u606f",content:"\u786e\u5b9a\u6267\u884c"+{del:"\u5220\u9664",up:"\u4e0a\u7ebf",down:"\u4e0b\u7ebf"}[t]+"\u64cd\u4f5c\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){var n=_.get(a,_.camelCase("handle_"+t));n&&_.isFunction(n)||console.error("Action ["+t+"] processing function is not defined"),a.setState({handleLoading:!0}),n.call(a,e)},onCancel:function(){}})},n.handleDown=function(e){h.default.offline(e).then((function(){i.default.success("\u4e0b\u7ebf\u6210\u529f\uff01"),n.fetchData(),n.setState({handleLoading:!1})})).catch((function(e){i.default.error(e.message),n.setState({handleLoading:!1})}))},n.handleDel=function(e){h.default.deleteVersion(e.modelId,e.versionId).then((function(){i.default.success("\u5220\u9664\u6210\u529f\uff01"),n.fetchData(),n.setState({handleLoading:!1})})).catch((function(e){i.default.error(e.message),n.setState({handleLoading:!1})}))},n.handleUp=function(e){h.default.online(e).then((function(){i.default.success("\u4e0a\u7ebf\u6210\u529f\uff01"),n.fetchData(),n.setState({handleLoading:!1})})).catch((function(e){i.default.error(e.message),n.setState({handleLoading:!1})}))},n.fetchData=function(e){n.setState({loading:"intervalRefresh"!==e}),h.default.getModelVersionList(n.searchCond).then((function(e){n.setState({versionList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({versionList:[],loading:!1}),i.default.error(e.message)}))},n.onChangePage=function(e,t){n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData()},n.exportOpen=function(e){h.default.exportVersionFile(e.modelId,e.versionId).then((function(e){if(window.navigator&&window.navigator.msSaveOrOpenBlob){var t=new Blob([e.data],{type:"application/vnd.ms-excel"});window.navigator.msSaveOrOpenBlob(t,(new Date).getTime()+".zip")}else{var a=new Blob([e.data]),n=document.createElement("a"),o=window.URL.createObjectURL(a);n.href=o,n.download=(new Date).getTime()+".zip",document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(o)}})).catch((function(e){i.default.error(e.message)}))},n.exportClose=function(){n.setState({exportVisible:!1})},n.changeSearchCond=function(e,t){"refresh"!==e?(n.searchCond[e]="dataType"===e||"publishFrom"===e?[t]:_.trim(t),n.fetchData()):n.fetchData(t)},n.setExportLoading=function(e){n.setState({exportLoading:e})},n.state={exportloading:!1,loading:!1,exportVisible:!1,versionList:[],handleLoading:!1},n.versionInfo={},n.modelId=_.get(a.match,"params.modelId",null),n.columns=[{title:j,width:"60px",dataIndex:"desc",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u7248\u672c",dataIndex:"versionName",ellipsis:!0,width:"60px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6765\u6e90",dataIndex:"publishFrom",width:70,render:function(e){var t=b.PUBLISH_FROM.getDescFromValue(e);return(0,r.default)(m.LineWrap,{title:t||"--",lineClampNum:1})}},{title:"\u6570\u636e\u7c7b\u578b",dataIndex:"dataType",width:90,render:function(e){var t=b.DATA_TYPE.getDescFromValue(e);return(0,r.default)(m.LineWrap,{title:t||"--",lineClampNum:1})}},{title:"\u8fd0\u884c\u73af\u5883",dataIndex:"runEngine",ellipsis:!0,width:"85px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:b.RUN_ENGINE.getDescFromValue(e)},void 0,b.RUN_ENGINE.getDescFromValue(e))}},{title:"\u90e8\u7f72\u6b21\u6570",dataIndex:"serviceCount",ellipsis:!0,width:"85px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,width:"100px",render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u72b6\u6001",dataIndex:"versionStatus",width:100,render:function(e){return(0,r.default)(m.StateLabel,{source:"modelVersion",code:e})}},{title:"\u64cd\u4f5c",width:250,render:function(e,t){var a=[];return a.push({handleName:"\u67e5\u770b",style:{display:"inline-block"},handleAction:y.modelVersionUrl.detail(t.modelId,t.versionId),state:{mirrorId:t.mirrorId},handleType:"link"}),-1!==_.indexOf([3,5,6],t.versionStatus)&&(a.push({handleName:"\u6784\u5efa\u955c\u50cf",style:{display:"inline-block"},handleType:"link",handleAction:y.modelMirrorUrl.create("build",t.modelId,t.versionId)}),a.push({handleName:"\u53d1\u5e03\u81f3\u6d4b\u8bd5",style:{display:"inline-block"},handleType:"link",handleAction:y.modelServiceUrl.modelPublish("test",t.modelId,t.versionId)}),a.push({handleName:"\u53d1\u5e03\u81f3\u751f\u4ea7",style:{display:"inline-block"},handleType:"link",handleAction:y.modelServiceUrl.modelPublish("product",t.modelId,t.versionId)}),a.push({handleName:"\u5bfc\u51fa",style:{display:"inline-block"},handleAction:function(){n.exportOpen(t)}}),a.push({handleName:"\u5220\u9664",style:{display:"inline-block"},handleAction:function(){n.handleOnChange(t,"del")}})),(0,r.default)(m.ListButtons,{buttons:a,maxShowNum:2})}}],n.searchCond={modelId:n.modelId,dataType:[],publishFrom:[],search:"",sortBy:"CREATE_AT.DESC"},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state.versionList;return(0,r.default)("div",{style:{width:"100%"}},void 0,(0,r.default)(m.ModalView,{modalTitle:"\u7248\u672c\u5bfc\u51fa",onCancelType:!1,width:800,confirmLoading:this.state.exportLoading,callVisible:this.exportClose,modalVisible:this.state.exportVisible,okText:"\u5bfc \u51fa",submitModalOk:function(){e.versionExport.submitModalOk()},comp:(0,r.default)(g.default,{setExportLoading:this.setExportLoading,onRef:function(t){e.versionExport=t},versionId:_.get(this,"versionInfo.versionId","")})}),(0,r.default)(o.default,{tip:"\u5904\u7406\u4e2d...",spinning:this.state.handleLoading},void 0,(0,r.default)(x.PageWrapper,{},void 0,(0,r.default)(x.PageHeader,{className:"right"},void 0,(0,r.default)(v.default,{sortField:this.searchCond.sortBy,onChange:this.changeSearchCond})),(0,r.default)(x.PageBody,{},void 0,(0,r.default)(x.TableWrapper,{},void 0,this.state.loading&&S,!this.state.loading&&(0,r.default)(n.default,{dataSource:t,rowKey:"versionId",bordered:!0,pagination:!1,columns:this.columns}))))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(I)},"./src/module/modelVersion/listPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/input/index.js")),d=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=m(a("./node_modules/react/index.js")),u=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/module/modelBase/modelEnums.js"),p=a("./src/styles/GlobalStyle.js"),f=a("./src/components/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=d.default.Option,g=i.default.Search,v={width:"130px"},y=(0,n.default)(h,{value:""},void 0,"\u9009\u62e9\u6570\u636e\u7c7b\u578b"),b=(0,n.default)(h,{value:""},void 0,"\u9009\u62e9\u6765\u6e90"),x=(0,n.default)(h,{value:"CREATE_AT.DESC"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),C=(0,n.default)(h,{value:"UPDATE_AT.DESC"},void 0,"\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f"),j=(0,n.default)(h,{value:"VERSION_NAME.DESC"},void 0,"\u6309\u540d\u79f0\u6392\u5e8f"),S=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("search",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeDataType=n.changeSelect("dataType"),n.changePublishFrom=n.changeSelect("publishFrom"),n.changeSortField=n.changeSelect("sortBy"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(p.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)(f.RefreshButton,{onRefresh:this.props.onChange}),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeDataType,style:v,placeholder:"\u9009\u62e9\u6570\u636e\u7c7b\u578b",className:"sortType-cond"},void 0,y,c.DATA_TYPE.getValueAndDescList().map((function(e,t){return(0,n.default)(h,{value:e.code},t,e.desc)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changePublishFrom,style:v,placeholder:"\u9009\u62e9\u6765\u6e90",className:"sortType-cond"},void 0,b,c.PUBLISH_FROM.getValueAndDescList().map((function(e,t){return(0,n.default)(h,{value:e.code},t,e.desc)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:v,placeholder:"\u9009\u62e9\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,x,C,j)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(g,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(S)},"./src/module/modelVersion/listPage/component/VersionExport.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/input/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/antd/es/message/index.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js")),l=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=h(a("./node_modules/react/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/components/index.js"),m=(h(a("./node_modules/prop-types/index.js")),h(a("./src/redux/services/modelBase.js")));function h(e){return e&&e.__esModule?e:{default:e}}var g=l.default.Option,v=p.Form.Item,_={width:"100%",display:"inline"},y=(0,o.default)(g,{value:""},void 0,"\u8bf7\u9009\u62e9FTP"),b=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.onRef(n),m.default.getFtpDropDown().then((function(e){e&&n.setState({ftpDatas:e.data})})).catch((function(e){s.default.error(e.message)}))},n.getModelBlur=function(e,t){if("ftpId"===t)for(var a=n.state.ftpDatas,o=0;o<a.length;o++)if(a[o].id===e){n.setState({ftpPath:a[o].storagePath});break}n.exportVersionInfo[t]=e},n.submitModalOk=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&(n.props.setExportLoading(!0),m.default.exportVersion(n.exportVersionInfo).then((function(){n.props.setExportLoading(!1),s.default.success("\u5bfc\u51fa\u6210\u529f\uff01")})).catch((function(e){n.props.setExportLoading(!1),s.default.error(e.message)})))},n.state={ftpDatas:[],ftpPath:"--"},n.exportVersionInfo={ftpId:"",saveDir:"",modelVersionId:a.versionId},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,o.default)(p.Form,{layout:"inline"},void 0,(0,o.default)(f.ModelConfigPanel,{title:"\u5bfc\u51fa\u5730\u5740",style:_},void 0,(0,o.default)(v,{help:""},void 0,t("ftpId",{rules:[{required:!0}],initialValue:this.exportVersionInfo.ftpId})((0,o.default)(l.default,{style:{width:200},onChange:function(t){return e.getModelBlur(t,"ftpId")},placeholder:"\u8bf7\u9009\u62e9"},void 0,y,this.state.ftpDatas.map((function(e,t){return(0,o.default)(g,{value:e.id},t,e.storageName)}))))),(0,o.default)(v,{},void 0,t("saveDir",{rules:[{message:"\u8bf7\u8f93\u5165\u6709\u6548\u8def\u5f84"}],initialValue:this.exportVersionInfo.saveDir})((0,o.default)(n.default,{addonBefore:this.state.ftpPath,style:{width:450},placeholder:"\u8bf7\u8f93\u8def\u5f84",onBlur:function(t){return e.getModelBlur(t.target.value,"saveDir")}})))))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(p.Form.create()(b))},"./src/module/nb-view/NotebookView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/antd/es/layout/index.js")),o=u(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/layout/style/index.js");var s=a("./node_modules/react/index.js"),r=(u(s),u(a("./node_modules/prop-types/index.js")),u(a("./src/module/nb-view/components/sidebar/Sidebar.jsx"))),i=u(a("./src/redux/services/sysManager/projectManage.js")),d=a("./src/utils/history.js"),l=u(a("./src/module/nb-view/pages/Main.jsx"));function u(e){return e&&e.__esModule?e:{default:e}}a("./src/module/nb-view/styles.css");t.default=function(e){var t=e.match,a=e.location,u=(0,s.useState)(""),c=u[0],p=u[1],f=_.get(t.params,"projectId"),m=_.get(t.params,"appId"),h=(0,d.parseParms)(a),g=_.get(h,"isFile"),v=(0,s.useState)(""),y=v[0],b=v[1];(0,s.useEffect)((function(){var e=_.get(t.params,"filepath");b(e)}),[t.params]),(0,s.useEffect)((function(){x()}),[f,m]);var x=function(){i.default.getApplicationsInfo(m,f).then((function(e){var t=e.data.applicationName;p(t)}))};return(0,o.default)("div",{className:"nb-view-main-container"},void 0,(0,o.default)(n.default,{style:{height:"100%"}},void 0,(0,o.default)(r.default,{projectId:f,appId:m,filepath:y,isFile:g,appName:c}),(0,o.default)(n.default,{style:{height:"100%"}},void 0,(0,o.default)(l.default,{projectId:f,appId:m,filepath:y,isFile:g,appName:c}))))}},"./src/module/nb-view/components/navHeader/Fatheaded.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/antd/es/button/index.js")),o=d(a("./node_modules/babel-runtime/helpers/jsx.js")),s=d(a("./node_modules/antd/es/breadcrumb/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/breadcrumb/style/index.js");d(a("./node_modules/react/index.js")),d(a("./node_modules/prop-types/index.js"));var r=a("./node_modules/js-base64/base64.js"),i=a("./src/redux/services/notebookViewService.js");function d(e){return e&&e.__esModule?e:{default:e}}a("./src/module/nb-view/components/navHeader/NavHeader.css");var l=s.default.Item;t.default=function(e){var t=e.projectId,a=e.appId,d=e.filepath,u=e.isFile,c=e.appName,p=d?decodeURIComponent(d):"",f=p?p.split("/"):[];return(0,o.default)("div",{className:"nav-header"},void 0,(0,o.default)(s.default,{style:{paddingLeft:24}},void 0,(0,o.default)(l,{},void 0,c),f.map((function(e){return(0,o.default)(l,{},e,e)}))),(0,o.default)(n.default,{type:"primary",style:{marginRight:24},onClick:function(){if("true"===u){var e=r.Base64.encode(p);(0,i.downLoadFile)(t,a,e)}},disabled:"true"!==u},void 0,"\u4e0b\u8f7d"))}},"./src/module/nb-view/components/navHeader/NavHeader.css":function(e,t,a){},"./src/module/nb-view/components/sidebar/Sidebar.css":function(e,t,a){},"./src/module/nb-view/components/sidebar/Sidebar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/spin/index.js")),o=g(a("./node_modules/antd/es/tooltip/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/antd/es/input/index.js")),i=g(a("./node_modules/antd/es/layout/index.js")),d=g(a("./node_modules/antd/es/tree/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/layout/style/index.js"),a("./node_modules/antd/es/tree/style/index.js");var l=a("./node_modules/react/index.js"),u=(g(l),g(a("./node_modules/lodash/lodash.js"))),c=(g(a("./node_modules/prop-types/index.js")),a("./src/utils/history.js")),p=a("./src/routes/routeHelper.jsx"),f=a("./src/redux/services/notebookViewService.js"),m=g(a("./src/module/nb-view/utils/treeDataMethod.js")),h=a("./node_modules/@ant-design/icons/es/index.js");function g(e){return e&&e.__esModule?e:{default:e}}a("./src/module/nb-view/components/sidebar/Sidebar.css");var v=d.default.DirectoryTree,_=i.default.Sider,y=r.default.Search,b=(0,s.default)(h.LoadingOutlined,{className:"refresh-icon"}),x=(0,s.default)(n.default,{});t.default=function(e){var t=e.projectId,a=e.appId,n=e.appName,r=(0,l.useState)(!0),i=r[0],d=r[1],g=(0,l.useState)(!1),C=g[0],j=g[1],S=(0,l.useState)([]),I=S[0],T=S[1],w=(0,l.useState)([]),E=w[0],D=w[1],M=(0,l.useState)([]),k=M[0],P=M[1],L=(0,l.useState)(""),N=L[0],A=L[1],R=(0,l.useState)(!0),F=R[0],O=R[1];(0,l.useEffect)((function(){V(d)}),[t,a]);var V=function(e){e(!0),(0,f.treeGetRequest)(t,a).then((function(t){var a=t.data||[];U(a,"README.md");var n=(0,m.default)(a);T(n),e(!1);var o=[];B(n,o),P(o)})).catch((function(t){throw e(!1),t}))},U=function(e,t){var a=u.default.find(e,{path:t}),n=[a.path];z(n,{node:{key:a.path,isLeaf:!0}})},B=function e(t,a){t.map((function(t){a.push(t.key),t.isLeaf||e(t.children,a)}))},G=[];!function e(t){for(var a=0;a<t.length;a++){var n=t[a],o=n.key;G.push({key:o,title:o}),n.children&&e(n.children)}}(I);var z=function(e,n){D(e);var o=encodeURIComponent(n.node.key);(0,c.navigateTo)(p.notebookViewUrl.view(t,a,o,n.node.isLeaf))},q=(0,s.default)("span",{className:"site-tree-search-value"},void 0,N);return(0,s.default)(_,{width:300,style:{backgroundColor:"#fff"}},void 0,(0,s.default)("div",{className:"app_name-wrapper"},void 0,(0,s.default)("span",{},void 0,n),(0,s.default)("div",{},void 0,C?b:(0,s.default)(o.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,s.default)(h.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:function(){V(j)}})))),(0,s.default)("div",{style:{display:"flex",alignItems:"center",padding:"0 20px"}},void 0,(0,s.default)(y,{placeholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",enterButton:!0,onChange:function(e){var t=e.target.value,a=G.map((function(e){return e.title.indexOf(t)>-1?function e(t,a){for(var n=void 0,o=0;o<a.length;o++){var s=a[o];s.children&&(s.children.some((function(e){return e.key===t}))?n=s.key:e(t,s.children)&&(n=e(t,s.children)))}return n}(e.key,I):null})).filter((function(e,t,a){return e&&a.indexOf(e)===t}));P(a),A(t),O(!0)}})),i?(0,s.default)("div",{style:{minHeight:"500px",display:"flex",justifyContent:"center",alignItems:"center"}},void 0,x):(0,s.default)(v,{style:{margin:"0 10px"},onSelect:z,onExpand:function(e){P(e),O(!1)},selectedKeys:E,expandedKeys:k,autoExpandParent:F,treeData:function e(t){return t.map((function(t){var a=t.title.indexOf(N),n=t.title.substr(0,a),o=t.title.substr(a+N.length),r=a>-1?(0,s.default)("span",{},void 0,n,q,o):(0,s.default)("span",{},void 0,t.title);return t.children?{title:r,key:t.key,isLeaf:t.isLeaf,children:e(t.children)}:{title:r,key:t.key,isLeaf:t.isLeaf}}))}(I),defaultExpandAll:!0}))}},"./src/module/nb-view/pages/Main.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/extends.js")),o=l(a("./node_modules/babel-runtime/helpers/jsx.js")),s="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\nb-view\\pages\\Main.jsx",r=l(a("./node_modules/react/index.js")),i=l(a("./src/module/nb-view/components/navHeader/Fatheaded.jsx")),d=l(a("./src/module/nb-view/pages/view/viewPage.jsx"));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return(0,o.default)("div",{className:"main_view",style:{height:"100%"}},void 0,r.default.createElement(i.default,(0,n.default)({},e,{__source:{fileName:s,lineNumber:7}})),r.default.createElement(d.default,(0,n.default)({},e,{__source:{fileName:s,lineNumber:8}})))}},"./src/module/nb-view/pages/view/styles.css":function(e,t,a){},"./src/module/nb-view/pages/view/viewPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/antd/es/empty/index.js")),o=c(a("./node_modules/antd/es/spin/index.js")),s=c(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/empty/style/index.js"),a("./node_modules/antd/es/spin/style/index.js");var r=a("./node_modules/react/index.js"),i=(c(r),c(a("./node_modules/prop-types/index.js")),a("./node_modules/@nteract/presentational-components/lib/index.js")),d=a("./src/redux/services/notebookViewService.js"),l=c(a("./node_modules/@nteract/notebook-preview/lib/index.js")),u=a("./node_modules/js-base64/base64.js");function c(e){return e&&e.__esModule?e:{default:e}}a("./src/module/nb-view/pages/view/styles.css");var p=/(?:\.([^.]+))?$/,f=u.Base64.encode,m=u.Base64.decode,h=(0,s.default)("div",{className:"a-style"},void 0,(0,s.default)(n.default,{description:"\u6682\u4e0d\u652f\u6301\u6e90\u7801\u5c55\u793a \u8bf7\u70b9\u51fb\u4e0b\u8f7d\u539f\u6587\u4ef6"})),g=function(e){var t=e.entry,a=t.name,n=p.exec(a);if(!n)return null;var o=(n[1]||"").toLowerCase(),r=m(t.content);switch(o){case"html":return(0,s.default)(i.Source,{language:"html"},void 0,r);case"css":case"less":case"scss":return(0,s.default)(i.Source,{language:"css"},void 0,r);case"json":return(0,s.default)(i.Source,{language:"json"},void 0,r);case"csv":return(0,s.default)(i.Source,{language:"csv"},void 0,r);case"md":case"markdown":case"rmd":return(0,s.default)(i.Source,{language:"markdown"},void 0,r);case"js":case"jsx":case"ts":case"tsx":case"vue":return(0,s.default)(i.Source,{language:"javascript"},void 0,r);case"py":case"pyx":return(0,s.default)(i.Source,{language:"python"},void 0,r);case"gif":case"jpeg":case"jpg":case"png":return(0,s.default)("img",{src:"data:image/"+o+";base64,"+t.content});case"sh":return(0,s.default)(i.Source,{language:"shell"},void 0,r);case"txt":case"text":return(0,s.default)(i.Source,{language:"text/plain"},void 0,r);case"yaml":return(0,s.default)(i.Source,{language:"yaml"},void 0,r);case"sql":return(0,s.default)(i.Source,{language:"sql"},void 0,r);case"ignore":case"gitignore":return(0,s.default)(i.Source,{language:"ignore"},void 0,r);default:return"text"===t.format?(0,s.default)(i.Source,{language:"text/plain"},void 0,r):h}},v=(0,s.default)("div",{className:"file-type"},void 0,(0,s.default)("div",{className:"a-style"},void 0,(0,s.default)(n.default,{description:"\u4ec5\u5c55\u793a\u6587\u4ef6"})));t.default=function(e){var t=e.projectId,a=e.appId,n=e.filepath,i=e.isFile,u=(0,r.useState)(!1),c=u[0],p=u[1],h=(0,r.useState)(),_=h[0],y=h[1];(0,r.useEffect)((function(){"true"===i&&n&&b()}),[n]);var b=function(){p(!0);var e=f(decodeURIComponent(n));(0,d.treeItemGetRequest)(t,a,e).then((function(e){var t=e.data;y(t),p(!1)})).catch((function(e){throw p(!1),e}))};if("true"!==i)return v;if(c)return(0,s.default)("div",{className:"loading-wrapper"},void 0,(0,s.default)(o.default,{size:"large",style:{margin:"auto"}}));if(!_||null===_.content)return null;switch(_.name.substring(_.name.lastIndexOf(".")+1)){case"ipynb":var x=JSON.parse(m(_.content));return(0,s.default)("div",{className:"ipynb"},void 0,(0,s.default)(l.default,{notebook:x}));default:return(0,s.default)("div",{className:"file-type"},void 0,(0,s.default)(g,{entry:_}))}}},"./src/module/nb-view/styles.css":function(e,t,a){},"./src/module/nb-view/utils/treeDataMethod.js":function(e,t,a){"use strict";function n(e,t,a,o){var s=t.split("/"),r=s[0],i=function(e,t){for(var a=-1,n=0;n<e.length;n++)if(e[n].title===t){a=n;break}return a}(e,r),d=a.join("/");if(-1===i){var l={title:r,key:d?d+"/"+r:r,isLeaf:!(s.length>1||"TREE"===o)};e.push(l),i=e.length-1}if(a.push(r),s.length>1){e[i].children=e[i].children?e[i].children:[];var u=s.slice(1).join("/");n(e[i].children,u,a,o)}}t.__esModule=!0,t.default=function(e){var t=function(e){for(var t=[],a=0;a<e.length;a++){var o=e[a];n(t,o.path,[],o.type)}return t}(e);return t=t.filter((function(e){return e.key&&".jupyter"!==e.key&&".gitignore"!==e.key}))}},"./src/module/ocr/component/BasicInfoForm.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=v(a("./node_modules/babel-runtime/helpers/inherits.js")),i=v(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/radio/style/index.js");var d=v(a("./node_modules/react/index.js")),l=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var p=v(a("./src/components/common/CheckName.jsx")),f=a("./src/utils/authPermit.js"),m=a("./src/redux/selectors/ocrManage.js"),h=a("./src/module/ocr/types.js"),g=v(a("./src/module/ocr/component/TemplateTypesSelect.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var _=c.Form.Item,y=i.default.Group,b=i.default.Button,x=l.default.div.withConfig({displayName:"BasicInfoForm__PageHeader",componentId:"sc-14vprgl-0"})(["width:100%;display:flex;align-items:center;"]),C=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.handleSourceChange=function(e){var t=e.target.value;n.setState({presetFlag:t}),n.props.onChange("presetFlag",t)},n.handleInputChange=function(e){n.props.onChange("templateName",e?e.trim():e)},n.state={presetFlag:n.props.templateInfo.presetFlag||h.TEMPLATE_SOURCE.custom},n.userIsAdmin=(0,f.isUserAdmin)(),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,n.default)(x,{},void 0,(0,n.default)(c.Form,{layout:"inline",hideRequiredMark:!0},void 0,this.userIsAdmin&&(0,n.default)(_,{},void 0,(0,n.default)(y,{style:{marginRight:"20px"},size:"small",value:this.state.presetFlag,onChange:this.handleSourceChange},void 0,(0,n.default)(b,{value:h.TEMPLATE_SOURCE.custom},void 0,"\u81ea\u5b9a\u4e49"),(0,n.default)(b,{value:h.TEMPLATE_SOURCE.system},void 0,"\u7cfb\u7edf\u9884\u7f6e"))),(0,n.default)(_,{label:"\u6a21\u677f\u540d\u79f0"},void 0,e("templateName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6a21\u677f\u540d\u79f0"}],initialValue:this.props.templateInfo.templateName})(d.default.createElement(p.default,{ref:this.checkNameRef,source:"ocrTemplateName",style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u6a21\u677f\u540d\u79f0",modelId:this.props.templateInfo.templateId||"",updateNameCallback:this.handleInputChange,initVerify:Boolean(this.props.templateInfo.templateName),__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\ocr\\component\\BasicInfoForm.jsx",lineNumber:64}}))),(0,n.default)(_,{label:"\u6a21\u677f\u5206\u7c7b"},void 0,(0,n.default)(g.default,{templateTypeId:this.props.templateInfo.templateTypeId,onChange:this.props.onChange,style:{width:"200px"}}))))},t}(d.default.Component);t.default=(0,u.connect)((function(e){return{ocrTemplateTypes:(0,m.selectTemplateTypes)(e)}}))(c.Form.create()(C))},"./src/module/ocr/component/DragComponent.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),l=u(d);u(a("./node_modules/prop-types/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=l.default.div.withConfig({displayName:"DragComponent__Container",componentId:"r4zz8y-0"})(["transform:",";cursor:",";",";"],(function(e){return"translate("+e.x+"px, "+e.y+"px)"}),(function(e){return e.dragAble?"move":"default"}),(function(e){return e.isDragging&&(0,d.css)(["opacity:0.8;cursor:grabbing;"])})),p=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.handleMouseDown=function(e){var t=e.clientX,a=e.clientY;window.addEventListener("mousemove",n.handleMouseMove),window.addEventListener("mouseup",n.handleMouseUp),n.props.onDragStart&&n.props.onDragStart(),n.setState({originalX:t,originalY:a,isDragging:!0})},n.handleMouseMove=function(e){e.stopImmediatePropagation();var t=e.clientX,a=e.clientY,o=n.state.isDragging,s=n.props.onDrag;o&&n.setState((function(e){return{translateX:t-e.originalX+e.lastTranslateX,translateY:a-e.originalY+e.lastTranslateY}}),(function(){s&&s({translateX:n.state.translateX,translateY:n.state.translateY})}))},n.handleMouseUp=function(){window.removeEventListener("mousemove",n.handleMouseMove),window.removeEventListener("mouseup",n.handleMouseUp),n.setState({originalX:0,originalY:0,lastTranslateX:n.state.translateX,lastTranslateY:n.state.translateY,isDragging:!1},(function(){n.props.onDragEnd&&n.props.onDragEnd()}))},n.state={isDragging:!1,originalX:0,originalY:0,translateX:0,translateY:0,lastTranslateX:0,lastTranslateY:0},n}return(0,r.default)(t,e),t.prototype.componentWillUnmount=function(){window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp)},t.prototype.render=function(){var e=this.props,t=e.dragAble,a=e.children,o=this.state,s=o.translateX,r=o.translateY,i=o.isDragging;return(0,n.default)(c,{onMouseDown:t?this.handleMouseDown:null,x:s,y:r,dragAble:t,isDragging:i},void 0,a)},t}(i.default.Component);t.default=p},"./src/module/ocr/component/ExampleJsonView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/antd/es/drawer/index.js")),o=i(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/drawer/style/index.js");i(a("./node_modules/react/index.js")),i(a("./node_modules/prop-types/index.js"));var s=i(a("./node_modules/react-json-view/dist/main.js")),r=a("./src/module/ocr/utils.js");function i(e){return e&&e.__esModule?e:{default:e}}var d=(0,o.default)("span",{},void 0,"\u6a21\u677f\u793a\u4f8bJSON");t.default=function(e){var t=e.visible,a=e.templateExampleJson,i=e.onClose;return(0,o.default)(n.default,{title:(0,o.default)("div",{},void 0,d,"(",(0,o.default)("span",{style:{cursor:"pointer",color:"#234da7"},onClick:function(){return(0,r.copy2clipboard)(JSON.stringify(a))}},void 0,"\u590d\u5236"),")"),width:400,onClose:i,visible:t,bodyStyle:{paddingBottom:80}},void 0,(0,o.default)(s.default,{src:a}))}},"./src/module/ocr/component/OcrList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/table/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/components/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.div.withConfig({displayName:"OcrList__OcrPage",componentId:"sc-9n4pnf-0"})(["width:100%;"]),m=l.default.div.withConfig({displayName:"OcrList__TableDom",componentId:"sc-9n4pnf-1"})(["margin-top:5px;flex:1 1 auto;.anticon{cursor:pointer;margin-left:10px;}.editable-cell-icon{float:right;padding-top:3px;}"]),h=(0,o.default)(c.LoadingIndicator,{}),g=function(e){function t(a){return(0,s.default)(this,t),(0,r.default)(this,e.call(this,a))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.ocrTemplateList,a=e.ocrListLoading,s=e.columns;return(0,o.default)(f,{},void 0,(0,o.default)(m,{},void 0,a&&h,!a&&(0,o.default)(n.default,{dataSource:t,rowKey:"templateId",bordered:!0,pagination:!0,columns:s})))},t}(d.default.Component);t.default=(0,u.connect)()(g)},"./src/module/ocr/component/RecognitionTest.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/spin/index.js")),o=S(a("./node_modules/antd/es/button/index.js")),s=S(a("./node_modules/babel-runtime/helpers/extends.js")),r=S(a("./node_modules/antd/es/message/index.js")),i=S(a("./node_modules/babel-runtime/helpers/jsx.js")),d=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=S(a("./node_modules/babel-runtime/helpers/inherits.js")),c=S(a("./node_modules/antd/es/tabs/index.js")),p=S(a("./node_modules/antd/es/upload/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js"),a("./node_modules/antd/es/upload/style/index.js");var f=S(a("./node_modules/react/index.js")),m=(S(a("./node_modules/prop-types/index.js")),S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=a("./node_modules/react-redux/es/index.js"),_=a("./src/redux/reducers/ocrManage.js"),y=S(a("./node_modules/react-json-view/dist/main.js")),b=a("./src/redux/selectors/ocrManage.js"),x=a("./src/module/ocr/utils.js"),C=S(a("./src/module/ocr/component/RecognizeResultForm.jsx")),j=S(a("./src/module/ocr/component/RecognizeResultTables.jsx"));function S(e){return e&&e.__esModule?e:{default:e}}var I=p.default.Dragger,T=c.default.TabPane,w=m.default.div.withConfig({displayName:"RecognitionTest__UploadImageWrapper",componentId:"sc-186d3mc-0"})(["height:100%;display:flex;flex-direction:column;.recognize-body{display:flex;height:94%;width:100%;& > span{width:50%;}}.result-text{margin:auto;text-align:center;}.recognize__result-area{width:50%;flex-shrink:0;border:1px solid #eee;display:flex;justify-content:flex-start;flex-direction:column;.ant-tabs-content{height:90%;}.ant-tabs{flex-grow:1;}.ant-tabs-tabpane{overflow:auto;}}.object-content span{width:auto;}.recognize__result-text{width:100%;padding:0 20px;}.image-wrapper{margin:20px;img{margin:0;padding:0;width:100%;height:100%;max-height:500px;object-fit:contain;}}.ant-upload-list{display:none;}.json__view-wrapper{flex-grow:1;overflow:auto;padding:0 20px;}"]),E=m.default.div.withConfig({displayName:"RecognitionTest__ButtonDom",componentId:"sc-186d3mc-1"})(["margin-top:10px;height:28px;line-height:1;text-align:right;margin-right:2.5%;"]),D=(0,i.default)(f.default.Fragment,{},void 0,(0,i.default)("p",{className:"ant-upload-drag-icon"},void 0,(0,i.default)(h.InboxOutlined,{})),(0,i.default)("p",{className:"ant-upload-text"},void 0,"\u70b9\u51fb\u6216\u62d6\u62fd\u56fe\u7247\u8fdb\u884c\u4e0a\u4f20"),(0,i.default)("p",{className:"ant-upload-hint"},void 0,"\u8bf7\u786e\u4fdd\u56fe\u7247\u6e05\u6670\u4e14\u5927\u5c0f\u4e0d\u8d85\u8fc710M")),M=(0,i.default)("span",{},void 0,"\u8bc6\u522b\u7ed3\u679c"),k=(0,i.default)("span",{},void 0,"JSON"),P=(0,i.default)(n.default,{tip:"\u8bc6\u522b\u4e2d..."}),L=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleFinishClick=function(){n.props.callVisible()},n.renderText=function(e,t){return"000000"===e.code?(0,i.default)(f.default.Fragment,{},void 0,t.fields&&t.fields.length>0&&(0,i.default)(C.default,{fields:t.fields}),t.tables&&t.tables.length>0&&(0,i.default)(j.default,{tables:t.tables})):(0,i.default)("span",{className:"no-match__text"},void 0,e.message)},n.state={imageUrl:""},n}return(0,u.default)(t,e),t.prototype.componentWillUnmount=function(){this.props.dispatch(_.ocrActions.resetRecognizeExampleJson())},t.prototype.render=function(){var e=this,t=this.props.templateTestStatus.toJS(),a="000000"===t.code?this.props.templateExampleJson?this.props.templateExampleJson.toJS():{}:t.data,n=this.state.imageUrl,d={name:"file",multiple:!1,beforeUpload:function(t){return/[\/.](gif|jpg|jpeg|tiff|png)$/i.test(t.name)?t.size/1024/1024>10?(r.default.error("\u8bf7\u4e0a\u4f20\u5c0f\u4e8e10M\u7684\u56fe\u7247"),!1):((0,x.getBase64)(t,(function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/png";e.props.dispatch(_.ocrActions.resetRecognizeExampleJson()),e.props.dispatch(_.ocrActions.recognizeOcrTemplateTestRequest({templateId:e.props.templateInfo.templateId,appId:"",imgData:t.replace("data:"+a+";base64,","")})),e.setState({imageUrl:t})})),!1):(r.default.error("\u8bf7\u9009\u62e9\u56fe\u7247\u8fdb\u884c\u4e0a\u4f20"),!1)}};return(0,i.default)(w,{imageUrl:n},void 0,(0,i.default)("div",{className:"recognize-body"},void 0,f.default.createElement(I,(0,s.default)({},d,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\ocr\\component\\RecognitionTest.jsx",lineNumber:156}}),n?(0,i.default)("div",{className:"image-wrapper"},void 0,(0,i.default)("img",{src:n,alt:""})):D),(0,i.default)("div",{className:"recognize__result-area"},void 0,t.code?(0,i.default)(c.default,{defaultActiveKey:"1"},void 0,(0,i.default)(T,{tab:M},"1",(0,i.default)("div",{className:"recognize__result-text"},void 0,this.renderText(t,a))),(0,i.default)(T,{tab:k},"2",(0,i.default)("div",{className:"json__view-wrapper"},void 0,(0,i.default)(y.default,{src:a,displayObjectSize:!1,displayDataTypes:!1})))):(0,i.default)("div",{className:"result-text"},void 0,this.props.recognizeLoading?P:"\u8bc6\u522b\u7ed3\u679c\u533a"))),(0,i.default)(E,{},void 0,(0,i.default)(o.default,{disabled:!n,onClick:this.handleFinishClick},void 0,"\u5b8c\u6210")))},t}(f.default.Component);t.default=(0,v.connect)((function(e){return{templateTestStatus:(0,b.selectTemplateTestStatus)(e),templateExampleJson:(0,b.selectTemplateEXJson)(e),recognizeLoading:(0,b.selectRecognizeTestLoading)(e)}}))(g.Form.create()(L))},"./src/module/ocr/component/RecognizePositionItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/extends.js")),o=m(a("./node_modules/antd/es/input/index.js")),s=m(a("./node_modules/antd/es/card/index.js")),r=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js")),u="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\ocr\\component\\RecognizePositionItem.jsx";a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/card/style/index.js");var c=m(a("./node_modules/react/index.js")),p=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/compatible/es/index.js");function m(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var h=f.Form.Item,g=p.default.div.withConfig({displayName:"RecognizePositionItem__ItemWrapper",componentId:"sc-27k0p8-0"})(["display:flex;flex-direction:column;align-items:center;margin-bottom:20px;.ant-form-item{margin-bottom:5px;}.item-header{display:flex;align-items:center;justify-content:flex-end;width:100%;}.close{cursor:pointer;}"]),v=(0,r.default)("span",{}),_=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleRemovePosition=function(){n.props.onPositionRemove(n.props.index)},n.handFelidChange=function(e,t){n.props.onPositionChange(e,t,n.props.index)},n.handleMouseEnter=function(){n.props.mouseEnter(n.props.index)},n.handleMouseLeave=function(){n.props.mouseLeave(n.props.index)},n.inputNameRef=c.default.createRef(),n.wrapperRef=c.default.createRef(),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.loading&&e.loading!==this.props.loading&&(this.inputNameRef&&this.inputNameRef.current.focus(),this.wrapperRef&&this.wrapperRef.current&&this.wrapperRef.current.scrollIntoView(!1))},t.prototype.render=function(){var e=this,t=this.props,a=t.position,i=t.index,d=this.props.form.getFieldDecorator,l={labelCol:{span:8},wrapperCol:{span:16}};return c.default.createElement(g,{className:"item-wrapper",ref:this.wrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,__source:{fileName:u,lineNumber:66}},(0,r.default)(s.default,{title:"",extra:this.props.loading?v:(0,r.default)("span",{className:"close",onClick:this.handleRemovePosition},void 0,"x"),style:{width:360},size:"small"},void 0,(0,r.default)(f.Form,{hideRequiredMark:!0},void 0,c.default.createElement(h,(0,n.default)({},l,{label:"\u5b57\u6bb5\u540d\u79f0",validateStatus:Boolean(a.name&&a.name.trim())?"":"error",__source:{fileName:u,lineNumber:87}}),d("name"+i,{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5b57\u6bb5\u540d\u79f0!"}],initialValue:a.name})(c.default.createElement(o.default,{placeholder:"\u5b57\u6bb5\u540d\u79f0",onChange:function(t){return e.handFelidChange("name",t.target.value)},ref:this.inputNameRef,__source:{fileName:u,lineNumber:96}}))),c.default.createElement(h,(0,n.default)({},l,{label:"\u5b57\u6bb5\u7c7b\u578b",__source:{fileName:u,lineNumber:103}}),d("type"+i,{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7c7b\u578b"}],initialValue:a.cType})((0,r.default)(o.default,{placeholder:"\u5b57\u6bb5\u7c7b\u578b",disabled:!0,onChange:function(t){return e.handFelidChange("cType",t.target.value)}}))),c.default.createElement(h,(0,n.default)({},l,{label:"\u8bc6\u522b\u7ed3\u679c",__source:{fileName:u,lineNumber:111}}),a.result))))},t}(c.default.Component);t.default=f.Form.create()(_)},"./src/module/ocr/component/RecognizeResultForm.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=o(a("./node_modules/babel-runtime/helpers/jsx.js"));o(a("./node_modules/react/index.js")),o(a("./node_modules/prop-types/index.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=o(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"RecognizeResultForm__ItemWrapper",componentId:"sc-11bw742-0"})(["display:grid;grid-template-columns:40% 60%;grid-template-rows:",";margin-bottom:20px;.ant-form-item{margin-bottom:5px;}.item-header{display:flex;align-items:center;justify-content:flex-end;width:100%;}.close{cursor:pointer;}"],(function(e){return"repeat("+e.rowNumber+", 50px)"})),r=(0,n.default)("div",{},void 0,"\u5b57\u6bb5\u540d\u79f0"),i=(0,n.default)("div",{},void 0,"\u5185\u5bb9");t.default=function(e){var t=e.fields;return(0,n.default)(s,{className:"result-wrapper",rowNumber:t.length},void 0,r,i,t.map((function(e,t){return[(0,n.default)("div",{},""+t+e.name,e.name),(0,n.default)("div",{},""+t+e.result,e.result)]})))}},"./src/module/ocr/component/RecognizeResultTables.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/antd/es/table/index.js")),o=r(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/table/style/index.js");r(a("./node_modules/react/index.js")),r(a("./node_modules/prop-types/index.js"));var s=r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=s.default.div.withConfig({displayName:"RecognizeResultTables__TablesWrapper",componentId:"ao0cyb-0"})(["display:flex;flex-direction:column;align-items:flex-start;margin-bottom:20px;border-radius:4px;.ant-form-item{margin-bottom:5px;}.item-header{display:flex;align-items:flex-start;justify-content:flex-end;width:100%;}.close{cursor:pointer;}"]),d=s.default.div.withConfig({displayName:"RecognizeResultTables__ItemWrapper",componentId:"ao0cyb-1"})(["display:flex;flex-direction:column;align-items:flex-start;margin-bottom:20px;width:auto;.ant-form-item{margin-bottom:5px;}.item-header{display:flex;align-items:center;justify-content:flex-end;width:100%;}.table-name{font-size:14px;line-height:2;}.close{cursor:pointer;}"]),l=function(e){var t=e.table,a=t.columns,s=t.result,r=t.name,i=s.map((function(e){for(var t={},n=0;n<e.length;n++)t[a[n]]=e[n];return t}));return a=a.map((function(e){return{title:e,dataIndex:e}})),(0,o.default)(d,{className:"item-wrapper"},void 0,(0,o.default)("div",{className:"table-name"},void 0,"\u8868\u683c\u540d\u79f0\uff1a",r),(0,o.default)(n.default,{columns:a,dataSource:i,pagination:!1}))};t.default=function(e){var t=e.tables;return(0,o.default)(i,{},void 0,t.map((function(e,t){return(0,o.default)(l,{table:e},t)})))}},"./src/module/ocr/component/RecognizeTableItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/divider/index.js")),o=h(a("./node_modules/babel-runtime/helpers/extends.js")),s=h(a("./node_modules/antd/es/input/index.js")),r=h(a("./node_modules/antd/es/card/index.js")),i=h(a("./node_modules/babel-runtime/helpers/jsx.js")),d=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=h(a("./node_modules/babel-runtime/helpers/inherits.js")),c="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\ocr\\component\\RecognizeTableItem.jsx";a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/card/style/index.js");var p=h(a("./node_modules/react/index.js")),f=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./node_modules/@ant-design/compatible/es/index.js");function h(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var g=m.Form.Item,v=f.default.div.withConfig({displayName:"RecognizeTableItem__ItemWrapper",componentId:"ctvj8g-0"})(["display:flex;flex-direction:column;align-items:center;margin-bottom:10px;.item-header{display:flex;align-items:center;justify-content:flex-end;width:100%;}.close{cursor:pointer;}"]),_=(0,i.default)(n.default,{}),y=(0,i.default)(n.default,{}),b=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleRemoveField=function(){n.props.onPositionRemove(n.props.index)},n.handFelidChange=function(e,t){n.props.onPositionChange(e,t,n.props.index)},n.handColumnFelidChange=function(e,t,a){n.props.onTableColumnChange(e,t,n.props.index,a)},n.handleMouseEnter=function(){n.props.mouseEnter(n.props.index)},n.handleMouseLeave=function(){n.props.mouseLeave(n.props.index)},n.wrapperRef=p.default.createRef(),n}return(0,u.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.needFocus&&e.needFocus!==this.props.needFocus&&this.wrapperRef&&this.wrapperRef.current&&this.wrapperRef.current.scrollIntoView(!1)},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a={labelCol:{span:8},wrapperCol:{span:16}},n=this.props.position;return p.default.createElement(v,{className:"item-wrapper",ref:this.wrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,__source:{fileName:c,lineNumber:65}},(0,i.default)(r.default,{title:"",extra:(0,i.default)("span",{className:"close",onClick:this.handleRemoveField},void 0,"x"),style:{width:360},size:"small"},void 0,(0,i.default)(m.Form,{hideRequiredMark:!0},void 0,(0,i.default)("div",{className:"item-table__name-wrapper"},void 0,p.default.createElement(g,(0,o.default)({},a,{label:"\u8868\u683c\u540d",__source:{fileName:c,lineNumber:83}}),t("tableName",{rules:[{required:!0,message:"Please input your username!"}],initialValue:n.tableName})((0,i.default)(s.default,{placeholder:"\u8868\u683c\u540d\u79f0",onChange:function(t){return e.handFelidChange("tableName",t.target.value)}})))),_,(0,i.default)("div",{},void 0,n.columnsContent.map((function(n,r){return(0,i.default)("div",{},r,p.default.createElement(g,(0,o.default)({},a,{label:"\u7b2c"+(r+1)+"\u5217",__source:{fileName:c,lineNumber:94}}),t("name"+r,{rules:[{required:!0,message:"Please input your username!"}],initialValue:n.name})((0,i.default)(s.default,{placeholder:"\u5b57\u6bb5\u540d\u79f0",onChange:function(t){return e.handColumnFelidChange("name",t.target.value,r)}}))),p.default.createElement(g,(0,o.default)({},a,{label:" ",colon:!1,__source:{fileName:c,lineNumber:105}}),t("cType"+r,{rules:[{required:!0,message:"Please input your Password!"}],initialValue:n.cType})((0,i.default)(s.default,{disabled:!0,placeholder:"\u5b57\u6bb5\u7c7b\u578b",onChange:function(t){return e.handColumnFelidChange("cType",t.target.value,r)}}))),y)}))))))},t}(p.default.Component);t.default=m.Form.create()(b)},"./src/module/ocr/component/ReferFieldItem.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/antd/es/input/index.js")),o=c(a("./node_modules/antd/es/spin/index.js")),s=c(a("./node_modules/antd/es/card/index.js")),r=c(a("./node_modules/babel-runtime/helpers/jsx.js")),i=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=c(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/card/style/index.js");var u=c(a("./node_modules/react/index.js"));c(a("./node_modules/prop-types/index.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"ReferFieldItem__ItemWrapper",componentId:"x2d1yt-0"})(["display:flex;flex-direction:column;align-items:center;margin-bottom:20px;.warning{margin-top:10px;color:#ff6501;}.item-header{display:flex;align-items:center;justify-content:space-between;width:100%;}.close{cursor:pointer;}"]),f=(0,r.default)("div",{className:"warning"},void 0,"\u6b64\u53c2\u7167\u5b57\u6bb5\u6846\u9009\u533a\u57df\u8bc6\u522b\u7ed3\u679c\u5728\u5b8c\u6574\u56fe\u7247\u8bc6\u522b\u7ed3\u679c\u4e2d\u4e0d\u5b58\u5728\uff0c\u4e0d\u5efa\u8bae\u4f5c\u4e3a\u53c2\u8003\u5b57\u6bb5\uff0c\u8bf7\u8c03\u6574\u6846\u9009\u4f4d\u7f6e\u6216\u9009\u62e9\u5176\u4ed6\u533a\u57df\u3002"),m=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleRemoveField=function(){n.props.onFieldRemove(n.props.index)},n.handleChangeField=function(e){n.props.onFieldChange(e,n.props.index)},n.handleMouseEnter=function(){n.props.mouseEnter(n.props.index)},n.handleMouseLeave=function(){n.props.mouseLeave(n.props.index)},n.wrapperRef=u.default.createRef(),n}return(0,l.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.loading&&e.loading!==this.props.loading&&this.wrapperRef&&this.wrapperRef.current&&this.wrapperRef.current.scrollIntoView(!1)},t.prototype.render=function(){var e=this,t=this.props,a=t.index,i=t.position;return u.default.createElement(p,{className:"item-wrapper",ref:this.wrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\ocr\\component\\ReferFieldItem.jsx",lineNumber:56}},(0,r.default)(s.default,{title:(0,r.default)("span",{},void 0,"\u53c2\u7167\u5b57\u6bb5 ",a+1),extra:!this.props.loading&&(0,r.default)("span",{className:"close",onClick:this.handleRemoveField},void 0,"x"),style:{width:360},size:"small"},void 0,(0,r.default)(o.default,{tip:"\u8bc6\u522b\u4e2d..",spinning:this.props.loading,size:"small"},void 0,(0,r.default)(n.default,{placeholder:"\u8bc6\u522b\u5185\u5bb9\u4e3a\u7a7a",value:i.name,onChange:function(t){return e.handleChangeField(t.target.value)}})),i.predictPosition&&_.isEmpty(i.predictPosition)&&f))},t}(u.default.Component);t.default=m},"./src/module/ocr/component/RotateComponent.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=void 0;var n=p(a("./node_modules/antd/es/button/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),u=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=a("./src/module/ocr/utils.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=u.default.div.withConfig({displayName:"RotateComponent__Container",componentId:"vrfn77-0"})(["position:relative;height:100%;width:100%;display:flex;flex-direction:column;overflow:hidden;.rotate-container{display:flex;flex-grow:1;align-items:center;justify-content:center;}"]),m=u.default.div.withConfig({displayName:"RotateComponent__RotateWrapper",componentId:"vrfn77-1"})([".rotate{position:absolute;left:50%;top:-20px;width:18px;height:18px;margin-left:-20px;display:flex;justify-content:center;align-items:center;cursor:pointer;}"]),h=t.ButtonDom=u.default.div.withConfig({displayName:"RotateComponent__ButtonDom",componentId:"vrfn77-2"})(["margin:10px 10% 10px 0;height:28px;text-align:right;"]),g=(0,o.default)(l.RedoOutlined,{}),v=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleMouseDown=function(e){var t=e.clientX,a=e.clientY;event.stopPropagation(),window.addEventListener("mousemove",n.handleMouseMove),window.addEventListener("mouseup",n.handleMouseUp);var o=n.getCenter(),s={x:t-o.x,y:a-o.y};n.rotateVector=s,n.props.onRotateStart&&n.props.onRotateStart(),n.setState({rotateVector:n.rotateVector}),n.startRotate=n.state.rotateAngle},n.handleMouseMove=function(e){e.stopImmediatePropagation();var t=e.clientX,a=e.clientY,o=n.getCenter(),s={x:t-o.x,y:a-o.y},r=(0,c.getAngle)(n.state.rotateVector,s,n.startRotate);n.setState({rotateAngle:r})},n.handleMouseUp=function(){window.removeEventListener("mousemove",n.handleMouseMove),window.removeEventListener("mouseup",n.handleMouseUp),n.props.onRotateEnd&&n.props.onRotateEnd()},n.getCenter=function(){var e=n.rotateRef.current.getBoundingClientRect();return{x:e.left+e.width/2,y:e.top+e.height/2}},n.closeModal=function(){n.props.callVisible()},n.saveRotate=function(){var e=n.state.rotateAngle||0;e=Number(e.toFixed(2)),n.props.onRotate(e)},n.state={rotateVector:null,rotateAngle:a.rotateAngle||0},n.rotateRef=d.default.createRef(),n.startRotate=0,n}return(0,i.default)(t,e),t.prototype.componentWillUnmount=function(){window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp)},t.prototype.render=function(){var e={transform:"rotate("+this.state.rotateAngle+"deg)"};return(0,o.default)(f,{},void 0,(0,o.default)("div",{className:"rotate-container"},void 0,d.default.createElement(m,{ref:this.rotateRef,style:e,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\ocr\\component\\RotateComponent.jsx",lineNumber:120}},(0,o.default)("div",{className:"rotate",onMouseDown:this.handleMouseDown},void 0,g),this.props.children)),(0,o.default)(h,{},void 0,(0,o.default)(n.default,{onClick:this.closeModal},void 0,"\u53d6\u6d88"),(0,o.default)(n.default,{loading:this.props.confirmLoading,onClick:this.saveRotate,style:{marginLeft:"3.1%"},type:"primary"},void 0,"\u786e\u5b9a\u63d0\u4ea4")))},t}(d.default.Component);t.default=v},"./src/module/ocr/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js")),d=g(a("./node_modules/antd/es/input/index.js")),l=g(a("./node_modules/antd/es/radio/index.js")),u=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=g(a("./node_modules/react/index.js")),p=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./src/module/ocr/types.js"),h=g(a("./src/module/ocr/component/TemplateTypesSelect.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.Option,y=l.default.Group,b=l.default.Button,x=d.default.Search,C=p.default.div.withConfig({displayName:"SearchBar__PageHeader",componentId:"y6bb2r-0"})(["width:100%;display:flex;justify-content:space-between;align-items:center;height:50px;"]),j=p.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"y6bb2r-1"})(["float:right;"]),S={width:150,marginRight:20},I=(0,o.default)(f.PlusOutlined,{}),T=(0,o.default)(b,{value:!1},void 0,"\u81ea\u5b9a\u4e49"),w=(0,o.default)(b,{value:!0},void 0,"\u7cfb\u7edf\u9884\u7f6e"),E=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.changeSelect=function(e,t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("search",e)},n.handleKeyPress=function(e){13===e.keCode&&n.doSearch(e.target.value)},n.handleSourceChange=function(e){var t=e.target.value;n.setState({presetFlag:t}),n.props.onChange("presetFlag",t)},n.state={presetFlag:!1},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this;return(0,o.default)(C,{},void 0,(0,o.default)(n.default,{onClick:function(){e.props.openModalVisible()},size:"small",type:"primary",icon:I},void 0,"\u521b\u5efa\u6a21\u677f"),(0,o.default)(j,{},void 0,(0,o.default)(y,{style:{marginRight:"20px"},size:"small",value:this.state.presetFlag,onChange:this.handleSourceChange},void 0,T,w),(0,o.default)(u.default,{onChange:function(t){return e.changeSelect("templateStatus",t)},getPopupContainer:function(e){return e.parentNode},size:"small",style:S,placeholder:"\u6a21\u677f\u72b6\u6001"},void 0,(0,o.default)(v,{value:m.TEMPLATE_STATUS.all},m.TEMPLATE_STATUS.all,"\u5168\u90e8-\u72b6\u6001"),(0,o.default)(v,{value:m.TEMPLATE_STATUS.edit},m.TEMPLATE_STATUS.edit,"\u7f16\u8f91\u4e2d"),(0,o.default)(v,{value:m.TEMPLATE_STATUS.publish},m.TEMPLATE_STATUS.publish,"\u5df2\u53d1\u5e03")),(0,o.default)(h.default,{onChange:this.changeSelect,size:"small",style:S,templateTypeId:this.props.templateTypeId}),(0,o.default)(x,{placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0\u6216Id",size:"small",style:S,onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(c.default.Component);t.default=E},"./src/module/ocr/component/TemplateTypesSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/extends.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js")),d=f(a("./node_modules/antd/es/tree-select/index.js"));a("./node_modules/antd/es/tree-select/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/module/ocr/utils.js"),p=a("./src/redux/selectors/ocrManage.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.TreeNode,h=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.renderTree=function(e){return e.map((function(e){return(0,o.default)(m,{value:e.templateTypeId,title:e.templateTypeName},e.templateTypeId,e.children&&n.renderTree(e.children))}))},n.handleTypesChange=function(e){n.setState({templateTypeId:e}),n.props.onChange("templateTypeId",e)},n.state={templateTypeId:n.props.templateTypeId||null},n}return(0,i.default)(t,e),t.getDerivedStateFromProps=function(e){return{templateTypeId:e.templateTypeId}},t.prototype.render=function(){var e=(0,c.parseTypes2Tree)(this.props.ocrTemplateTypes.toJS());return l.default.createElement(d.default,(0,n.default)({showSearch:!0,style:{width:200},value:this.state.templateTypeId,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"\u8bf7\u9009\u62e9\u6a21\u677f\u5206\u7c7b",allowClear:!0,treeDefaultExpandAll:!0},this.props,{onChange:this.handleTypesChange,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\ocr\\component\\TemplateTypesSelect.jsx",lineNumber:40}}),this.renderTree(e))},t}(l.default.Component);t.default=(0,u.connect)((function(e){return{ocrTemplateTypes:(0,p.selectTemplateTypes)(e)}}))(h)},"./src/module/ocr/component/TemplateUseDesc.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(r(a("./node_modules/react/index.js")),r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),s=(r(a("./node_modules/prop-types/index.js")),a("./src/module/ocr/utils.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"TemplateUseDesc__DescWrapper",componentId:"rjup1d-0"})(["display:flex;flex-direction:column;ul{margin:5px;padding:0px;}li{list-style:none;}"]),d=(0,n.default)("div",{},void 0,"\u60a8\u53ef\u4ee5\u6839\u636e\u4e0b\u9762api\u4f7f\u7528\u6b64\u6a21\u677f\uff1a"),l=(0,n.default)("li",{},void 0,"\u8bf7\u6c42\u65b9\u5f0f\uff1aPOST"),u=(0,n.default)("li",{},void 0,"\u8bf7\u6c42\u53c2\u6570\uff1a","{ appId: api\u63a5\u5165Id, imgData: \u9700\u8981\u8bc6\u522b\u56fe\u7247\u7684base64\u683c\u5f0f\u5b57\u4e32 }");t.default=function(e){return(0,n.default)(i,{},void 0,d,(0,n.default)("ul",{},void 0,(0,n.default)("li",{},void 0,"\u8bf7\u6c42\u8def\u5f84\uff1a",(0,s.getRequestUrl)("/ocrTemplates/"+e.templateId+"/operates/predict")),l,u))}},"./src/module/ocr/component/UploadImage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/babel-runtime/helpers/extends.js")),s=I(a("./node_modules/antd/es/spin/index.js")),r=I(a("./node_modules/babel-runtime/helpers/jsx.js")),i=I(a("./node_modules/antd/es/message/index.js")),d=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=I(a("./node_modules/babel-runtime/helpers/inherits.js")),c=I(a("./node_modules/antd/es/upload/index.js")),p="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\ocr\\component\\UploadImage.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/upload/style/index.js");var f=I(a("./node_modules/react/index.js")),m=(I(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=I(a("./src/components/common/CheckName.jsx")),v=a("./node_modules/@ant-design/icons/es/index.js"),_=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var y=a("./src/utils/history.js"),b=a("./node_modules/react-router-dom/esm/react-router-dom.js"),x=a("./src/redux/reducers/ocrManage.js"),C=a("./src/module/ocr/utils.js"),j=a("./src/redux/selectors/ocrManage.js"),S=a("./src/redux/selectors/checkName.js");function I(e){return e&&e.__esModule?e:{default:e}}var T=c.default.Dragger,w=_.Form.Item,E=h.default.div.withConfig({displayName:"UploadImage__UploadImageWrapper",componentId:"sc-82yup4-0"})(["height:100%;display:flex;position:relative;flex-direction:column;.drag__upload-wrapper{width:95%;margin:0 auto;flex-grow:1;}.image-wrapper{height:300px;width:450px;margin:0 auto;img{margin:0;padding:0;width:100%;height:100%;object-fit:contain;}}.ant-upload-list{display:none;}.btn__wrapper{margin-top:10px;height:32px;line-height:1;text-align:right;margin-right:2.5%;}"]),D=(0,r.default)(f.default.Fragment,{},void 0,(0,r.default)("p",{className:"ant-upload-drag-icon"},void 0,(0,r.default)(v.InboxOutlined,{})),(0,r.default)("p",{className:"ant-upload-text"},void 0,"\u70b9\u51fb\u6216\u62d6\u62fd\u56fe\u7247\u8fdb\u884c\u4e0a\u4f20"),(0,r.default)("p",{className:"ant-upload-hint"},void 0,"\u8bf7\u786e\u4fdd\u56fe\u7247\u6e05\u6670\u4e14\u5927\u5c0f\u4e0d\u8d85\u8fc710M")),M=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleNameChange=function(e){n.setState({templateName:e}),n.props.form.setFieldsValue({templateName:e})},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.handleNextClick=function(){var e=n.props.checkNameVerifyInfo.toJS(),t=e.verifyStatus,a=e.verifyMsg;if(-1===t)return i.default.error(a),!1;var o=n.props.subType,s=Boolean("create"===o),r=n.props.imgInfo&&n.props.imgInfo.toJS(),d={imgId:r.img?r.img.imgId:"",predictRes:r.predictRes,templateName:s?n.state.templateName:n.props.templateInfo.templateName,presetFlag:1,templateId:s?"":n.props.templateInfo.templateId,tplFields:[],tplTexts:[],tplTables:[]};n.props.dispatch(x.ocrActions.submitOcrTemplateInfoRequest({subType:o,ocrTemplateInfo:d})),n.isClickNext=!0},n.state={fileList:[],imageUrl:"",templateName:""},n.isClickNext=!1,n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){"create"===this.props.subType&&this.props.dispatch(x.ocrActions.resetOcrInfo())},t.prototype.componentWillUnmount=function(){this.props.dispatch(x.ocrActions.resetImageId())},t.prototype.componentDidUpdate=function(e){if(this.props.ocrTemplateInfo&&0!==this.props.ocrTemplateInfo.size&&"create"===this.props.subType&&!e.ocrTemplateInfo.equals(this.props.ocrTemplateInfo)){var t=this.props.ocrTemplateInfo.get("templateId");(0,y.navigateTo)("/ocr/config/"+t),this.props.callVisible()}else"replace"===this.props.subType&&this.isClickNext&&(this.isClickNext=!1,this.props.callVisible())},t.prototype.render=function(){var e=this,t=this.state,a=t.imageUrl,d=t.templateName,l=t.fileList,u=this.props.form.getFieldDecorator,c=this.props.imgInfo&&this.props.imgInfo.toJS(),m={beforeUpload:function(t){if(!/[\/.](gif|jpg|jpeg|tiff|png)$/i.test(t.name))return i.default.error("\u8bf7\u9009\u62e9\u56fe\u7247\u8fdb\u884c\u4e0a\u4f20"),!1;if(t.size/1024/1024>10)return i.default.error("\u8bf7\u4e0a\u4f20\u5c0f\u4e8e10M\u7684\u56fe\u7247"),!1;e.setState({fileList:[t],imageUrl:""});var a=new FormData;return a.append("file",t),e.props.dispatch(x.ocrActions.uploadOcrTemplateImageRequest(a)),(0,C.getBase64)(t,(function(a){var n=t.name;n=n.substring(0,n.lastIndexOf(".")),e.setState({imageUrl:a,templateName:n})})),!1},fileList:l};return(0,r.default)(E,{imageUrl:a},void 0,a&&"create"==this.props.subType&&(0,r.default)(_.Form,{layout:"inline",style:{marginLeft:"2.5%"}},void 0,(0,r.default)(w,{help:"",label:"\u6a21\u677f\u540d\u79f0"},void 0,u("templateName",{rules:[{required:!0}],initialValue:d})(f.default.createElement(g.default,{ref:this.checkNameRef,source:"ocrTemplateName",style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u6a21\u677f\u540d\u79f0",modelId:"",updateNameCallback:this.handleNameChange,initVerify:!0,__source:{fileName:p,lineNumber:178}})))),f.default.createElement(T,(0,o.default)({},m,{className:"drag__upload-wrapper",__source:{fileName:p,lineNumber:192}}),a?(0,r.default)(s.default,{tip:"upLoading...",spinning:this.props.uploadLoading},void 0,(0,r.default)("div",{className:"image-wrapper"},void 0,(0,r.default)("img",{src:a,alt:"",style:{}}))):D),(0,r.default)("div",{className:"btn__wrapper"},void 0,(0,r.default)(n.default,{disabled:!a||!(c.img&&c.img.imgId),loading:this.props.saveTemplateLoading,onClick:this.handleNextClick},void 0,"\u4e0b\u4e00\u6b65")))},t}(f.default.Component);t.default=(0,b.withRouter)((0,m.connect)((function(e){return{ocrTemplateInfo:(0,j.selectOcrTemplateInfo)(e),imgInfo:(0,j.selectUploadedImageInfo)(e),uploadLoading:(0,j.selectImageUploadLoading)(e),saveTemplateLoading:(0,j.selectSubmitOcrLoading)(e),checkNameVerifyInfo:(0,S.selectVerifyInfo)(e)}}))(_.Form.create()(M)))},"./src/module/ocr/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/ocr/page/OcrManage.jsx");Object.defineProperty(t,"OcrManage",{enumerable:!0,get:function(){return s(n).default}});var o=a("./src/module/ocr/page/OcrConfig.jsx");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"OcrConfig",{enumerable:!0,get:function(){return s(o).default}})},"./src/module/ocr/page/OcrConfig.jsx":function(e,t,a){"use strict";(function(e){t.__esModule=!0;var n=U(a("./node_modules/antd/es/spin/index.js")),o=U(a("./node_modules/antd/es/popover/index.js")),s=U(a("./node_modules/antd/es/input/index.js")),r=U(a("./node_modules/antd/es/tooltip/index.js")),i=U(a("./node_modules/antd/es/button/index.js")),d=U(a("./node_modules/babel-runtime/helpers/jsx.js")),l=U(a("./node_modules/antd/es/message/index.js")),u=U(a("./node_modules/babel-runtime/helpers/extends.js")),c=U(a("./node_modules/antd/es/modal/index.js")),p=U(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=U(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=U(a("./node_modules/babel-runtime/helpers/inherits.js")),h=U(a("./node_modules/antd/es/tabs/index.js")),g=U(a("./node_modules/antd/es/layout/index.js")),v="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\ocr\\page\\OcrConfig.jsx";a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/popover/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js"),a("./node_modules/antd/es/layout/style/index.js");var _=U(a("./node_modules/react/index.js")),y=a("./node_modules/react-redux/es/index.js"),b=U(a("./node_modules/lodash/lodash.js")),x=a("./node_modules/react-router-dom/esm/react-router-dom.js"),C=(U(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),j=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var S=a("./src/components/index.js"),I=U(a("./src/module/ocr/component/RotateComponent.jsx")),T=U(a("./src/module/ocr/component/DragComponent.jsx")),w=U(a("./src/module/ocr/component/ReferFieldItem.jsx")),E=U(a("./src/module/ocr/component/RecognizePositionItem.jsx")),D=U(a("./src/module/ocr/component/RecognizeTableItem.jsx")),M=a("./src/module/ocr/types.js"),k=U(a("./src/module/ocr/component/UploadImage.jsx")),P=U(a("./src/module/ocr/component/RecognitionTest.jsx")),L=U(a("./src/module/ocr/component/BasicInfoForm.jsx")),N=U(a("./src/module/ocr/page/PublishedPage.jsx")),A=a("./src/redux/reducers/ocrManage.js"),R=a("./src/redux/selectors/ocrManage.js"),F=a("./src/redux/selectors/checkName.js"),O=a("./src/module/ocr/page/styled.jsx"),V=a("./src/module/ocr/utils.js");function U(e){return e&&e.__esModule?e:{default:e}}var B=g.default.Header,G=g.default.Sider,z=g.default.Content,q=h.default.TabPane,K=(0,d.default)("canvas",{id:"modalCanvas"}),H=(0,d.default)(S.LoadingIndicator,{position:"relative"}),Y=(0,d.default)(n.default,{tip:"\u56fe\u7247\u52a0\u8f7d\u4e2d..."}),W=(0,d.default)("canvas",{id:"viewCanvas"}),J=(0,d.default)("h5",{},void 0,"\u53c2\u7167\u5b57\u6bb5"),Q=(0,d.default)("ul",{},void 0,(0,d.default)("li",{},void 0,"\u7528\u4e8e\u5bf9\u8bc6\u522b\u56fe\u7247\u7684\u81ea\u52a8\u77eb\u6b63\u548c\u6a21\u677f\u7684\u5339\u914d"),(0,d.default)("li",{},void 0,"\u81f3\u5c11\u9009\u62e9\u56db\u4e2a\u53c2\u7167\u5b57\u6bb5"),(0,d.default)("li",{},void 0,"\u5c3d\u91cf\u5206\u6563\u5728\u56fe\u7247\u56db\u89d2")),Z=(0,d.default)("span",{className:"use-desc"},void 0,"?"),X=(0,d.default)("h5",{},void 0,"\u8bc6\u522b\u533a"),$=(0,d.default)("ul",{},void 0,(0,d.default)("li",{},void 0,"\u9700\u8981\u8bc6\u522b\u56fe\u7247\u4e2d\u67d0\u4e00\u533a\u57df\u7684\u503c"),(0,d.default)("li",{},void 0,"\u9700\u8981\u8bbe\u7f6e\u8bc6\u522b\u533a\u540d\u79f0\uff0c\u4ee5\u4fbf\u8f93\u51fa\u7ed3\u6784\u5316key-value\u503c")),ee=(0,d.default)("span",{className:"use-desc"},void 0,"?"),te=function(t){function a(n){(0,p.default)(this,a);var o=(0,f.default)(this,t.call(this,n));return o._handleClick=function(e){o.state.optStatus===M.OPT_ENUM_STATUS.table&&o.insertTablePanelRef&&!o.insertTablePanelRef.contains(e.target)&&o.setState({optStatus:M.OPT_ENUM_STATUS.select,insertTableColumn:2})},o._handleResize=function(){o.state.templateInfo.imgAddr&&o.drawImage(!0)},o.getTemplateInfo=function(){o.isInit=!0,o.props.dispatch(A.ocrActions.getOcrTemplateInfoRequest(o.templateId))},o.onStepChange=function(e){o.setState({stepStatus:e},(function(){o.drawImage()}))},o.handleOptStatusChange=function(t){var a=t===M.OPT_ENUM_STATUS.rotate;if(t!==M.OPT_ENUM_STATUS.replace){o.optType=a?"rotate":"";var n=t===M.OPT_ENUM_STATUS.zoomIn||t===M.OPT_ENUM_STATUS.zoomOut||t===M.OPT_ENUM_STATUS.reset;o.setState({optStatus:t,modalVisible:a,viewType:o.optType},(function(){if(a)var t=e((function(){document.getElementById("modalCanvas")&&(o.drawModalImage(),clearInterval(t))}),200);n&&(o.handleScale(),o.setState({optStatus:M.OPT_ENUM_STATUS.select}))}))}else o.replaceImage()},o.replaceImage=function(){var e;c.default.confirm(((e={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u66f4\u65b0\u6a21\u677f\u56fe\u7247\u4e0d\u4f1a\u66f4\u65b0\u6a21\u677fID\uff0c\u5c06\u4f1a\u6e05\u9664\u6b64\u6a21\u677f\u4e0b\u7684\u5168\u90e8\u5386\u53f2\u7248\u672c\u8bb0\u5f55\uff0c\u8981\u7ee7\u7eed\u66f4\u65b0\u6a21\u677f\u56fe\u7247\u5417\uff1f",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",e.cancelText="\u53d6\u6d88",e.onOk=function(){o.optType="replace",o.setState({modalVisible:!0,viewType:"replace",selectFieldList:[],selectPositionList:[]})},e))},o.drawModalImage=function(){var e=document.getElementById("modalCanvas").getContext("2d"),t=o.state,a=t.cWidth,n=t.cHeight,s=(0,V.getCanvasSize)(a,n),r=s.width,i=s.height;r/i>1&&r>450?(i*=450/r,r=450):r/i<1&&i>450&&(r*=450/i,i=450);var d=new Image;d.onload=function(){e.canvas.width=r,e.canvas.height=i,e.drawImage(d,0,0,r,i)},d.src=o.preImgInfo.imgData||o.state.templateInfo.imgAddr},o.drawImage=function(e){if(o.state.templateInfo.imgAddr){var t=o.state,a=t.left,n=t.top,s=t.cWidth,r=t.cHeight,i=o.getCvsContext(),d=document.getElementById("editCanvas"),l=d.getContext("2d");l.globalAlpha=0;var u=document.createElement("canvas"),c=u.getContext("2d");o.state.rotateAngle&&c.rotate(o.state.rotateAngle*Math.PI/180);var p=new Image;p.onload=function(){var t=p.width,f=p.height;o.imageAttribute={width:t,height:f};var m=s,h=r;if(e){var g=(0,V.getCanvasSize)(t,f);m=g.width,h=g.height}i.canvas.width=m,i.canvas.height=h,c.canvas.width=m,c.canvas.height=h,d.width=m,d.height=h,l.fillStyle="rgba(255, 255, 255, 0)",c.drawImage(p,a,n,m,h);var v=i.createPattern(u,"no-repeat");i.fillStyle=v,i.fillRect(a,n,m,h),o.drawRectAndTable(m,h,t,f),o.setState({cWidth:m,cHeight:h,imageLoading:!1}),o.state.templateInfo.imgAddr!==o.preImgInfo.imgAddr&&(o.preImgInfo={imgAddr:o.state.templateInfo.imgAddr,imgData:(0,V.getImg2Base64)(p)})},p.crossOrigin="anonymous";var f=o.preImgInfo.imgData;o.state.templateInfo.imgAddr!==o.preImgInfo.imgAddr&&(f=o.state.templateInfo.imgAddr,o.setState({imageLoading:!0})),p.src=f}},o.drawRectAndTable=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.state.cWidth,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.state.cHeight,a=o.getCvsContext(),n=document.getElementById("editCanvas"),s=n.getContext("2d"),r=o.state,i=r.selectFieldList,d=r.selectPositionList;if(Array.isArray(i)&&i.length>0&&"1"===o.state.stepStatus){for(var l=0;l<i.length;l++){var c=i[l],p=(0,V.getPosition)({currentPoint:c,canvasWidth:e,canvasHeight:t,imageAttribute:o.imageAttribute}),f=p.sPercentX,m=p.sPercentY,h=p.ePercentX,g=p.ePercentY,v=p.startX,_=p.startY,y=p.endX,b=p.endY,x=p.width,C=p.height;null!==o.currentOptField&&o.op&&o.op!==M.OPT_SELECT_FELID_STATUS.drawRect&&o.currentOptField.index===l?(s.globalAlpha=.1,s.fillStyle="red",s.fillRect(v,_,x,C)):(a.globalAlpha=.1,a.fillStyle="red",a.fillRect(v,_,x,C));var j=(0,u.default)({},c,{startPoint:(0,u.default)({},c.startPoint,{x:v,y:_,percentX:f,percentY:m}),endPoint:(0,u.default)({},c.endPoint,{x:y,y:b,percentX:h,percentY:g})});i[l]=j}o.setState({selectFieldList:i})}else if(Array.isArray(d)&&d.length>0&&"2"===o.state.stepStatus){for(var S=0;S<d.length;S++){var I=d[S],T=(0,V.getPosition)({currentPoint:I,canvasWidth:e,canvasHeight:t,imageAttribute:o.imageAttribute}),w=T.sPercentX,E=T.sPercentY,D=T.ePercentX,k=T.ePercentY,P=T.startX,L=T.startY,N=T.endX,A=T.endY,R=T.width,F=T.height;null!==o.currentOptField&&o.op&&o.op!==M.OPT_SELECT_FELID_STATUS.drawRect&&o.currentOptField.index===S?o.drawTable(P,L,R,F,I.columnsPoint,"edit"):o.drawTable(P,L,R,F,I.columnsPoint,"view");var O=(0,u.default)({},I,{startPoint:(0,u.default)({},I.startPoint,{x:P,y:L,percentX:w,percentY:E}),endPoint:(0,u.default)({},I.endPoint,{x:N,y:A,percentX:D,percentY:k}),columnsPoint:I.columnsPoint});d[S]=O}o.setState({selectFieldList:i})}},o.clearImage=function(){var e=o.state,t=e.left,a=e.top,n=e.cWidth,s=e.cHeight;o.getCvsContext().clearRect(t,a,n,s)},o.clearEditCanvas=function(){var e=o.state,t=e.left,a=e.top,n=e.cWidth,s=e.cHeight,r=document.getElementById("editCanvas").getContext("2d");r.clearRect(t,a,n,s),r.save()},o.handleScale=function(){switch(o.state.optStatus){case M.OPT_ENUM_STATUS.zoomIn:o.doScale(10/9,10/9);break;case M.OPT_ENUM_STATUS.zoomOut:o.doScale(.9,.9);break;case M.OPT_ENUM_STATUS.reset:o.setState({left:0,top:0,cWidth:0,cHeight:0},(function(){o.drawImage(!0)}))}},o.doScale=function(e,t){o.state.cWidth*e>document.body.clientWidth||o.state.cHeight*t>document.body.clientHeight||o.setState((function(a){return{cWidth:a.cWidth*e,cHeight:a.cHeight*t}}),(function(){o.drawImage()}))},o.handleRotate=function(e){o.props.dispatch(A.ocrActions.getAdjustImageInfoRequest({templateId:o.templateId,angle:e}))},o.handleMouseDown=function(){o.state.optStatus===M.OPT_ENUM_STATUS.select&&(window.addEventListener("mouseup",o.handleMouseUp),o.isDrawStart=!0,o.isMouseDown=!0,null!==o.currentOptField&&o.op&&o.op!==M.OPT_SELECT_FELID_STATUS.drawRect&&o.drawImage())},o.handleMouseUp=function(){o.isMouseDown=!1,window.removeEventListener("mouseup",o.handleMouseUp),o.getReCognizeText(),o.sortColumnByPosition(),o.cutEdit2View(),o.op=M.OPT_SELECT_FELID_STATUS.noOpt},o.cutEdit2View=function(){if(o.currentOptField){var e="1"===o.state.stepStatus?"selectFieldList":"selectPositionList",t=o.state[e][o.currentOptField.index],a=t.startPoint.x,n=t.startPoint.y,s=t.endPoint.x-a,r=t.endPoint.y-n;o.drawTable(a,n,s,r,t.columnsPoint,"view"),o.currentOptField=null,o.clearEditCanvas()}},o.handleMouseMove=function(){if(event.stopImmediatePropagation(),o.props.recognizeLoading)l.default.info("\u6587\u5b57\u8bc6\u522b\u4e2d\uff0c\u8bf7\u7a0d\u540e\u518d\u64cd\u4f5c\u3002");else{var e=event,t=e.offsetX,a=e.offsetY,n=document.getElementById("editCanvas");if(n.style.cursor="default",!o.isMouseDown){var s=document.getElementById("editCanvas"),r=o.state,i=r.stepStatus,d=r.selectFieldList,u=r.selectPositionList,c="1"===i?d:u,p=(0,V.isPointInRect)(t,a,c),f=p.opStatus,m=p.canvasCursor,h=p.currentOptField;return o.op=f,s.style.cursor=m,void(o.currentOptField=h)}if(null!==o.currentOptField&&o.op&&o.op!==M.OPT_SELECT_FELID_STATUS.drawRect){if(o.currentOptField.columnPoint&&o.op===M.OPT_SELECT_FELID_STATUS.dragCol)return n.style.cursor="move",void o.dragColumn(t,a);switch(o.op){case M.OPT_SELECT_FELID_STATUS.dragRect:n.style.cursor="move",o.dragRect(t,a,"all");break;case M.OPT_SELECT_FELID_STATUS.dragLeft:n.style.cursor="w-resize",o.dragRect(t,a,"left");break;case M.OPT_SELECT_FELID_STATUS.dragTop:n.style.cursor="s-resize",o.dragRect(t,a,"top");break;case M.OPT_SELECT_FELID_STATUS.dragRight:n.style.cursor="w-resize",o.dragRect(t,a,"right");break;case M.OPT_SELECT_FELID_STATUS.dragBottom:n.style.cursor="s-resize",o.dragRect(t,a,"bottom");break;case M.OPT_SELECT_FELID_STATUS.dragLT:n.style.cursor="se-resize",o.dragRect(t,a,"LT");break;case M.OPT_SELECT_FELID_STATUS.dragRT:n.style.cursor="ne-resize",o.dragRect(t,a,"RT");break;case M.OPT_SELECT_FELID_STATUS.dragLB:n.style.cursor="ne-resize",o.dragRect(t,a,"LB");break;case M.OPT_SELECT_FELID_STATUS.dragRB:n.style.cursor="se-resize",o.dragRect(t,a,"RB")}}else o.drawRect(t,a)}},o.clearDrawRect=function(e,t){var a=document.getElementById("editCanvas").getContext("2d"),n=e[t],o=n.endPoint?n.endPoint.x-n.startPoint.x:0,s=n.endPoint?n.endPoint.y-n.startPoint.y:0;a.clearRect(n.startPoint.x,n.startPoint.y,o,s)},o.drawRect=function(e,t){var a,n=document.getElementById("editCanvas").getContext("2d"),s=o.state,r=s.stepStatus,i=s.cWidth,d=s.cHeight,l="1"===r?"selectFieldList":"selectPositionList";if(o.isDrawStart)return o.setState((function(a){var n,s=a[l];return"selectPositionList"===l&&o.tableCount>0?s.splice(s.length-o.tableCount,0,{name:"",cType:"",result:"",startPoint:{x:e,y:t,percentX:e/i,percentY:t/d}}):s.push({name:"",cType:"",result:"",startPoint:{x:e,y:t,percentX:e/i,percentY:t/d}}),(n={})[l]=s,n})),o.op=M.OPT_SELECT_FELID_STATUS.drawRect,o.drawStartPoint={startX:e,startY:t},void(o.isDrawStart=!1);var c=o.state[l],p="selectPositionList"===l&&o.tableCount>0?c.length-o.tableCount-1:c.length-1;o.clearDrawRect(c,p);var f=o.drawStartPoint,m=f.startX,h=f.startY,g=(0,V.adjustRectPosition)({startX:m,startY:h,offsetX:e,offsetY:t,cWidth:i,cHeight:d}),v=g.startPoint,_=v.x,y=v.y,b=g.endPoint.x-_,x=g.endPoint.y-y;c[p]=(0,u.default)({},c[p],g),o.setState(((a={})[l]=c,a)),n.setLineDash([5]),n.clearRect(_,y,b,x),n.globalAlpha=.1,n.fillStyle="1"===o.state.stepStatus?"red":"blue",n.fillRect(_,y,b,x);var C=Math.round(g.startPoint.x),j=Math.round(g.startPoint.y),S=Math.round(g.endPoint.x),I=Math.round(g.endPoint.y);o.currentRegPosition={index:p,position:{left:C,top:j,width:S-C,height:I-j}},o.currentOptField={index:p},o.currentOptTableIndex=-1},o.drawTable=function(e,t,a,n,s,r){var i=o.getCvsContext();"edit"===r&&(i=document.getElementById("editCanvas").getContext("2d"),o.clearEditCanvas());if(o.op===M.OPT_SELECT_FELID_STATUS.dragCol&&(i.canvas.style.cursor="w-resize"),i.beginPath(),i.globalAlpha=.1,i.fillStyle="1"===o.state.stepStatus?"red":"blue",i.fillRect(e,t,a,n),i.closePath(),Array.isArray(s)&&s.length>0){i.beginPath(),i.lineWidth=1;for(var d=0;d<s.length;d++){var l=s[d];i.moveTo(e+a*l.startPoint.percentX,t),i.lineTo(e+a*l.startPoint.percentX,t+n)}i.strokeStyle="blue",i.globalAlpha=1,i.stroke(),i.closePath()}},o.dragRect=function(e,t,a){var n="1"===o.state.stepStatus?"selectFieldList":"selectPositionList";o.setState((function(s){var r,i=s[n];o.clearDrawRect(i,o.currentOptField.index);var d=o.currentOptField.position,l=o.currentOptField.from,c=e-l.x,p=t-l.y,f=d.startPoint.x,m=d.startPoint.y,h=d.endPoint.x,g=d.endPoint.y,v=d.columnsPoint;switch(a){case"all":c=d.startPoint.x+c<0?0-d.startPoint.x:c,c=d.endPoint.x+c>s.cWidth?s.cWidth-d.endPoint.x:c,p=d.startPoint.y+p<0?0-d.startPoint.y:p,p=d.endPoint.y+p>s.cHeight?s.cHeight-d.endPoint.y:p,f=d.startPoint.x+c,m=d.startPoint.y+p,h=d.endPoint.x+c,g=d.endPoint.y+p,Array.isArray(v)&&(v=v.map((function(e){return(0,u.default)({},e,{startPoint:(0,u.default)({},e.startPoint,{x:e.startPoint.x+c,y:e.startPoint.y+p}),endPoint:(0,u.default)({},e.endPoint,{x:e.endPoint.x+c,y:e.endPoint.y+p})})})));break;case"left":f=d.startPoint.x+c,Array.isArray(d.columnsPoint)&&(v=v.map((function(e){var t=f+(h-f)*e.startPoint.percentX;return(0,u.default)({},e,{startPoint:(0,u.default)({},e.startPoint,{x:t,y:e.startPoint.y}),endPoint:(0,u.default)({},e.endPoint,{x:f+(h-f)*e.startPoint.percentX,y:e.endPoint.y})})})));break;case"top":m=d.startPoint.y+p,Array.isArray(v)&&(v=v.map((function(e){return(0,u.default)({},e,{startPoint:(0,u.default)({},e.startPoint,{x:e.startPoint.x,y:e.startPoint.y+p}),endPoint:(0,u.default)({},e.endPoint,{x:e.endPoint.x,y:e.endPoint.y})})})));break;case"right":h=d.endPoint.x+c,Array.isArray(v)&&(v=v.map((function(e){var t=f+(h-f)*e.startPoint.percentX;return(0,u.default)({},e,{startPoint:(0,u.default)({},e.startPoint,{x:t,y:e.startPoint.y}),endPoint:(0,u.default)({},e.endPoint,{x:t,y:e.endPoint.y})})})));break;case"bottom":g=d.endPoint.y+p,Array.isArray(v)&&(v=v.map((function(e){return(0,u.default)({},e,{startPoint:(0,u.default)({},e.startPoint,{x:e.startPoint.x,y:e.startPoint.y}),endPoint:(0,u.default)({},e.endPoint,{x:e.endPoint.x,y:e.endPoint.y+p})})})));break;case"LT":f=d.startPoint.x+c,m=d.startPoint.y+p,Array.isArray(v)&&(v=v.map((function(e){var t=f+(h-f)*e.startPoint.percentX;return(0,u.default)({},e,{startPoint:(0,u.default)({},e.startPoint,{x:t,y:e.startPoint.y+p}),endPoint:(0,u.default)({},e.endPoint,{x:t,y:e.endPoint.y})})})));break;case"RT":h=d.endPoint.x+c,m=d.startPoint.y+p,Array.isArray(v)&&(v=v.map((function(e){var t=f+(h-f)*e.startPoint.percentX;return(0,u.default)({},e,{startPoint:(0,u.default)({},e.startPoint,{x:t,y:e.startPoint.y+p}),endPoint:(0,u.default)({},e.endPoint,{x:t,y:e.endPoint.y})})})));break;case"LB":f=d.startPoint.x+c,g=d.endPoint.y+p,Array.isArray(v)&&(v=v.map((function(e){var t=f+(h-f)*e.startPoint.percentX;return(0,u.default)({},e,{startPoint:(0,u.default)({},e.startPoint,{x:t,y:e.startPoint.y}),endPoint:(0,u.default)({},e.endPoint,{x:t,y:e.endPoint.y+p})})})));break;case"RB":h=d.endPoint.x+c,g=d.endPoint.y+p,Array.isArray(v)&&(v=v.map((function(e){var t=f+(h-f)*e.startPoint.percentX;return(0,u.default)({},e,{startPoint:(0,u.default)({},e.startPoint,{x:t,y:e.startPoint.y}),endPoint:(0,u.default)({},e.endPoint,{x:t,y:e.endPoint.y+p})})})))}var _=o.state,y=_.cWidth,b=_.cHeight;return(d=(0,V.adjustRectPosition)({startX:f,startY:m,offsetX:h,offsetY:g,cWidth:y,cHeight:b})).columnsPoint=v,Array.isArray(v)&&v.length>0?(o.currentOptTableIndex=o.currentOptField.index,o.currentRegPosition=null):(o.currentRegPosition={index:o.currentOptField.index,position:{left:f,top:m,width:h-f,height:g-m}},o.currentOptTableIndex=-1),i[o.currentOptField.index]=(0,u.default)({},i[o.currentOptField.index],d),o.drawTable(f,m,h-f,g-m,v,"edit"),(r={})[n]=i,r}))},o.dragColumn=function(e){o.setState((function(t){var a=o.currentOptField,n=a.index,s=a.columnIndex,r=a.position,i=a.columnPoint;if(!(e<r.startPoint.x||e>r.endPoint.x)){var d=t.selectPositionList,l=o.currentOptField.from,c=e-l.x,p=(i.startPoint.x+c-r.startPoint.x)/(r.endPoint.x-r.startPoint.x),f={startPoint:{x:i.startPoint.x+c,y:i.startPoint.y,percentX:p,percentY:0},endPoint:{x:i.endPoint.x+c,y:i.endPoint.y,percentX:p,percentY:1}};r.columnsPoint[s]=(0,u.default)({},r.columnsPoint[s],f),d[n]=r;var m=r.startPoint.x,h=r.startPoint.y,g=r.endPoint.x,v=r.endPoint.y;return o.drawTable(m,h,g-m,v-h,r.columnsPoint,"edit"),{selectPositionList:d}}}))},o.sortColumnByPosition=function(){if(o.currentOptField&&o.currentOptField.columnPoint&&o.op===M.OPT_SELECT_FELID_STATUS.dragCol){var e=o.state.selectPositionList,t=e[o.currentOptField.index].columnsPoint;t=b.default.sortBy(t,(function(e){return e.startPoint.percentX})),e[o.currentOptField.index].columnsPoint=t,o.setState({selectPositionList:e})}},o.getReCognizeText=function(){if(document.getElementById("editCanvas").style.cursor="wait",document.getElementById("viewCanvas").style.cursor="wait",o.op&&o.op!==M.OPT_SELECT_FELID_STATUS.dragCol&&o.currentRegPosition){var e=o.imageAttribute.width/o.state.cWidth;o.currentRegPosition.scale=e,o.currentRegPosition.imgAddr=o.state.templateInfo.imgAddr,o.currentRegPosition.imgData=o.preImgInfo.imgData,o.currentRegPosition.imgAttr=o.imageAttribute,(0,V.getClipImg2DataUrl)(o.currentRegPosition).then((function(e){return o.props.dispatch(A.ocrActions.getImageRecognizeTextRequest(e))}))}},o.callVisible=function(e){e&&o.getTemplateInfo(),o.setState({modalVisible:!1,viewType:""})},o.handleSelectedFieldRemove=function(e){o.setState((function(t){var a=t.selectFieldList;return a.splice(e,1),{selectFieldList:a}}),o.drawImage())},o.handleSelectedFieldContentChange=function(e,t){o.setState((function(a){var n=a.selectFieldList;return n[t].name=e,{selectFieldList:n}}))},o.handleRecognizePositionRemove=function(e){o.setState((function(t){var a=t.selectPositionList;return a[e].hasOwnProperty("tableName")&&o.tableCount--,a.splice(e,1),{selectPositionList:a}}),o.drawImage())},o.handlePositionContentChange=function(e,t,a){o.setState((function(n){var o=n.selectPositionList;return o[a][e]=t,{selectPositionList:o}}))},o.handleTableColumnContentChange=function(e,t,a,n){o.setState((function(o){var s=o.selectPositionList;return s[a].columnsContent[n][e]=t,{selectPositionList:s}}))},o.textAreaMouseEnter=function(e){var t=document.getElementById("editCanvas").getContext("2d"),a="1"===o.state.stepStatus?"selectFieldList":"selectPositionList",n=o.state[a][e],s=n.startPoint.x,r=n.startPoint.y,i=n.endPoint.x-s,d=n.endPoint.y-r;t.beginPath(),t.globalAlpha=.2,t.fillStyle="1"===o.state.stepStatus?"red":"blue",t.fillRect(s,r,i,d),t.closePath()},o.textAreaMouseLeave=function(){o.clearEditCanvas()},o.handleTableColumnChange=function(e){var t=e.target.value;(!isNaN(t)&&/^-?[0-9]*(\.[0-9]*)?$/.test(t)||""===t)&&o.setState({insertTableColumn:t})},o.handleTableInsertClick=function(){o.setState({optStatus:M.OPT_ENUM_STATUS.select}),o.insertTable()},o.insertTable=function(){var e=o.state,t=e.insertTableColumn,a=e.cWidth,n=e.cHeight,s=e.selectPositionList,r=o.getCvsContext(),i=.2*a,d=.2*n,l={tableName:"",startPoint:{x:0,y:0,percentX:0,percentY:0},endPoint:{x:i,y:d,percentX:.2,percentY:.2},columnsPoint:[],columnsContent:[]};r.globalAlpha=.1,r.fillStyle="blue",r.fillRect(0,0,i,d),r.beginPath();for(var u=0;u<t;u++)if(l.columnsContent.push({name:"",cType:""}),0!==u){var c=i/t*u;r.lineWidth=1,r.moveTo(c,0),r.lineTo(c,d);var p={name:"",cType:"",startPoint:{x:c,y:0,percentX:c/i,percentY:0},endPoint:{x:c,y:d,percentX:c/i,percentY:d/d}};l.columnsPoint.push(p)}r.strokeStyle="blue",r.globalAlpha=1,r.stroke(),r.closePath(),s.push(l),o.currentOptTableIndex=s.length-1,o.setState({selectPositionList:s,insertTableColumn:2}),o.tableCount++},o.handleSaveClick=function(){if(o.optType="save",o.handleValidate()){var e=o.state.selectPositionList.length-o.tableCount,t=o.state.selectPositionList.slice(0,e),a=o.state.selectPositionList.slice(e),n=o.state.selectFieldList,s=o.imageAttribute,r=s.width,i=s.height,d=(0,V.assembleTemplateInfo)({tplTexts:t,tablePositions:a,tplFields:n,width:r,height:i,templateInfo:o.state.templateInfo});o.props.dispatch(A.ocrActions.submitOcrTemplateInfoRequest({subType:"update",ocrTemplateInfo:d})),o.saveTemplateLoading=l.default.loading("\u4fdd\u5b58\u6a21\u677f\u4e2d...",0)}},o.handleTestClick=function(){o.handleValidate()&&(o.handleSaveClick(),o.optType="test")},o.handlePublishClick=function(){o.handleValidate()&&(o.handleSaveClick(),o.optType="publish")},o.handleTemplateInfoChange=function(e,t){var a=(0,u.default)({},o.state.templateInfo);a[e]=b.default.trim(t),o.setState({templateInfo:a})},o.handleValidate=function(){var e=o.props.checkNameVerifyInfo.toJS(),t=e.verifyStatus,a=e.verifyMsg;if(-1===t)return l.default.error(a),!1;var n=o.state,s=n.templateInfo,r=n.selectFieldList,i=n.selectPositionList;if(!s||!s.templateName.trim())return l.default.error("\u6a21\u677f\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"),!1;if(r.some((function(e){return b.default.isEmpty(e.predictPosition)})))return l.default.error("\u8bf7\u8c03\u6574\u533a\u57df\u8bc6\u522b\u5ea6\u4e0d\u9ad8\u7684\u53c2\u7167\u5b57\u6bb5"),!1;if("save"!==o.optType){if(r.length<2)return l.default.error("\u53c2\u7167\u5b57\u6bb5\u6570\u91cf\u4e0d\u5e94\u5c11\u4e8e2\u4e2a"),!1;if(i.length<1)return l.default.error("\u8bc6\u522b\u533a\u6570\u91cf\u4e0d\u5e94\u5c11\u4e8e1\u4e2a"),!1;if(i.some((function(e){return!(e.tableName&&e.tableName.trim())&&!(e.name&&e.name.trim())||Array.isArray(e.columnsContent)&&e.columnsContent.length>0&&e.columnsContent.some((function(e){return!e.name.trim()}))})))return l.default.error("\u8bc6\u522b\u533a\u5b57\u6bb5\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"),!1}return!0},o.handlePublishedTest=function(){o.setState({modalVisible:!0,viewType:"test"})},o.state={templateInfo:{},optStatus:M.OPT_ENUM_STATUS.select,left:0,top:0,cWidth:0,cHeight:0,dragAble:!1,modalVisible:!1,viewType:"",needRotate:!1,rotateAngle:0,selectFieldList:[],stepStatus:"1",insertTableColumn:2,selectPositionList:[],showPublish:!1,imageLoading:!1},o.isInit=!1,o.optType="",o.templateId=o.props.match.params.templateId,o.imageAttribute={width:0,height:0},o.editCanvasRef=_.default.createRef(),o.isDrawStart=!1,o.drawStartPoint={x:0,y:0},o.isMouseDown=!1,o.op=0,o.currentOptField=null,o.currentRegPosition=null,o.tableCount=0,o.saveTemplateLoading=null,o.preImgInfo={},o}return(0,m.default)(a,t),a.prototype.componentDidMount=function(){window.addEventListener("click",this._handleClick,!0),window.addEventListener("resize",this._handleResize),this.getTemplateInfo()},a.prototype.componentWillUnmount=function(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("click",this._handleClick,!0),window.removeEventListener("resize",this._handleResize),setTimeout(this.saveTemplateLoading,0),this.saveTemplateLoading=null},a.prototype.componentDidUpdate=function(e){var t=this;if(this.props.isSubmitted&&this.props.isSubmitted!==e.isSubmitted){switch(setTimeout(this.saveTemplateLoading,0),this.saveTemplateLoading=null,this.optType){case"save":l.default.success("\u6a21\u677f\u4fdd\u5b58\u6210\u529f");break;case"replace":this.isInit=!0,this.preImgInfo={},l.default.success("\u56fe\u7247\u66ff\u6362\u6210\u529f");break;case"test":this.setState({modalVisible:!0,viewType:"test"});break;case"publish":this.props.dispatch(A.ocrActions.publishOcrTemplateRequest(this.templateId));break;case"rotate":this.isInit=!0,this.preImgInfo={},this.setState({modalVisible:!1})}this.optType=""}if(this.props.adjustedInfo.size>0&&!b.default.isEqual(this.props.adjustedInfo,e.adjustedInfo)){var a,n=this.props.ocrTemplateInfo.toJS(),o=this.props.adjustedInfo.toJS(),s=((a={templateId:n.templateId,templateName:n.templateName,templateDesc:n.templateDesc,templateTypeId:n.templateTypeId,presetFlag:n.presetFlag,templateStatus:n.templateStatus,imgId:n.imgId,tplFields:n.tplFields,tplTexts:n.tplTexts,tplTables:n.tplTables}).imgId=o.img?o.img.imgId:"",a.predictRes=o.predictRes,a);this.props.dispatch(A.ocrActions.submitOcrTemplateInfoRequest({subType:"update",ocrTemplateInfo:s}))}if(this.props.ocrTemplateInfo.size>0&&!b.default.isEqual(this.props.ocrTemplateInfo,e.ocrTemplateInfo)){var r=this.props.ocrTemplateInfo.toJS();r.imgAddr&&(r.imgAddr=(0,V.getRequestUrl)(r.imgAddr));var i=(0,V.parseTemplateInfo)(r),d=i.selectFieldList,u=i.tplTextList,c=i.tplTableList;this.tableCount=c.length;var p=u.concat(c);this.setState({templateInfo:r,selectFieldList:d,selectPositionList:p},(function(){t.state.templateInfo.imgAddr&&t.drawImage(t.isInit),t.isInit=!1}))}if(this.props.publishInfo&&this.props.publishInfo!==e.publishInfo&&(l.default.success("\u6a21\u677f\u53d1\u5e03\u6210\u529f"),this.setState({showPublish:!0})),this.props.recognizeText&&e.recognizeText!==this.props.recognizeText){var f,m=this.props.recognizeText.trim(),h="1"===this.state.stepStatus?"selectFieldList":"selectPositionList",g=this.state[h];if(document.getElementById("editCanvas").style.cursor="default",document.getElementById("viewCanvas").style.cursor="default","1"===this.state.stepStatus){var v=this.props.ocrTemplateInfo.toJS();g[this.currentRegPosition.index].name=m;var _=(0,V.textReferPosition)(m,v.predictRes),y=_.isMatch,x=_.newPosition,C=_.infoMsg;y||l.default.error(C),g[this.currentRegPosition.index].predictPosition=x}g[this.currentRegPosition.index].result=m.trim(),this.setState(((f={})[h]=g,f)),this.props.dispatch(A.ocrActions.resetRecognizeText()),this.currentRegPosition=null}},a.prototype.getCvsContext=function(){return document.getElementById("viewCanvas").getContext("2d")},a.prototype.render=function(){var e=this,t=this.state,a=t.optStatus,n=t.modalVisible,l=t.viewType,c=t.selectFieldList,p=t.selectPositionList,f=t.stepStatus,m=b.default.clone(M.OPT_ARRAY);(0!==c.length||0!==p.length)&&m.splice(3,1),"2"!==f&&m.splice(2,1);var y=this.state,A=y.rotateAngle,R=y.imageLoading,F=this.props,V=F.recognizeLoading,U=F.ocrInfoLoading,te=F.saveTemplateLoading,ae=F.publishLoading,ne=Math.max(.6*document.body.clientWidth,1100),oe=Math.max(.6*document.body.clientHeight,500),se=(document.body.clientHeight-oe)/2;return(0,d.default)(O.ConfigPageWrapper,{optStatus:a,showPublish:this.state.showPublish},void 0,(0,d.default)(S.ModalView,{viewType:this.state.viewType,modalTitle:"rotate"===l?"\u56fe\u7247\u65cb\u8f6c":"replace"===l?"\u4e0a\u4f20\u6a21\u677f\u56fe\u7247":"\u8bd5\u4e00\u8bd5",onCancelType:!1,top:se,width:ne,height:oe,callVisible:this.callVisible,modalVisible:n,comp:"rotate"===l?_.default.createElement(I.default,(0,u.default)({rotateAngle:A,onRotateStart:e.handleRotateStart,onRotate:e.handleRotate,onRotateEnd:e.handleRotateEnd},{confirmLoading:e.props.saveAdjustLoading,callVisible:e.callVisible,__source:{fileName:v,lineNumber:1316}}),K):"replace"===l?(0,d.default)(k.default,{callVisible:e.callVisible,templateInfo:e.state.templateInfo,subType:"replace"}):(0,d.default)(P.default,{callVisible:e.callVisible,templateInfo:e.state.templateInfo})},this.state.viewType),(0,d.default)(N.default,{show:this.state.showPublish,templateId:this.templateId,cancel:function(){return e.setState({showPublish:!1})},onTest:this.handlePublishedTest}),(0,d.default)(g.default,{className:"config-container"},void 0,(0,d.default)(B,{style:{backgroundColor:"#fff"}},void 0,(0,d.default)("div",{className:"header-wrapper"},void 0,(0,d.default)("div",{className:"header__left-wrapper"},void 0,(0,d.default)(x.Link,{to:"/ocr"},void 0,(0,d.default)(C.ArrowLeftOutlined,{style:{fontSize:"20px",lineHeight:1.5,marginRight:"50px",marginLeft:0}})),(0,d.default)(L.default,{templateInfo:this.state.templateInfo,onChange:this.handleTemplateInfoChange})),(0,d.default)("div",{},void 0,(0,d.default)(i.default,{type:"primary",onClick:this.handleSaveClick,loading:"save"===this.optType&&te,disabled:U||ae||te||R},void 0,"\u4fdd\u5b58"),(0,d.default)(i.default,{onClick:this.handleTestClick,disabled:U||te||ae||R},void 0,"\u8bd5\u4e00\u8bd5"),(0,d.default)(i.default,{onClick:this.handlePublishClick,disabled:U||te||R,loading:ae},void 0,"\u53d1\u5e03")))),(0,d.default)(g.default,{},void 0,(0,d.default)(z,{},void 0,U?H:[(0,d.default)("div",{className:"drawing-toolbar"},"drawing-toolbar",(0,d.default)("div",{className:"drawing-toolbar__icon-container"},void 0,m.map((function(t){return(0,d.default)("div",{className:"opt-wrapper"},t.value,(0,d.default)(r.default,{placement:"right",title:t.text},void 0,(0,d.default)(j.Icon,{type:t.type,onClick:function(){e.handleOptStatusChange(t.value)},className:a===t.value?"current":null})),"table"===t.type&&a===M.OPT_ENUM_STATUS.table&&_.default.createElement("div",{className:"insert-table",ref:function(t){return e.insertTablePanelRef=t},__source:{fileName:v,lineNumber:1400}},"\u63d2\u5165",(0,d.default)(s.default,{className:"insert-input",size:"small",onChange:e.handleTableColumnChange,placeholder:"",maxLength:25,value:e.state.insertTableColumn}),"\u5217\u8868\u683c",(0,d.default)(i.default,{type:"primary",size:"small",className:"insert-button",onClick:e.handleTableInsertClick},void 0,"\u63d2\u5165")))})))),(0,d.default)("div",{className:"image-wrapper"},"image-wrapper",(0,d.default)(T.default,{dragAble:a===M.OPT_ENUM_STATUS.drag},void 0,(0,d.default)("div",{className:"canvas-wrapper",style:{transform:"rotate("+this.state.rotateAngle+"deg)"}},void 0,R&&Y,W,_.default.createElement("canvas",{id:"editCanvas",ref:this.editCanvasRef,onMouseDown:a===M.OPT_ENUM_STATUS.select?this.handleMouseDown:null,onMouseMove:a===M.OPT_ENUM_STATUS.select?this.handleMouseMove:null,__source:{fileName:v,lineNumber:1430}}))))]),(0,d.default)(G,{theme:"light",width:380,style:{backgroundColor:"#fcfcfc"}},void 0,(0,d.default)("div",{className:"right-wrapper"},void 0,(0,d.default)(h.default,{onChange:this.onStepChange,activeKey:this.state.stepStatus,size:"large"},void 0,(0,d.default)(q,{tab:(0,d.default)("span",{},void 0,"\u7b2c1\u6b65:\u6846\u9009\u53c2\u7167\u5b57\u6bb5",(0,d.default)(o.default,{content:(0,d.default)("div",{style:{width:360,margin:"10px auto"},size:"small"},void 0,J,Q),trigger:"hover"},void 0,Z)),disabled:U||V},"1",(0,d.default)("div",{className:"field-item-list"},void 0,c.map((function(t,a){return(0,d.default)(w.default,{index:a,position:t,loading:e.currentRegPosition&&e.currentRegPosition.index===a&&V,mouseEnter:e.textAreaMouseEnter,mouseLeave:e.textAreaMouseLeave,onFieldRemove:e.handleSelectedFieldRemove,onFieldChange:e.handleSelectedFieldContentChange},a)})))),(0,d.default)(q,{tab:(0,d.default)("span",{},void 0,"\u7b2c2\u6b65:\u6846\u9009\u8bc6\u522b\u533a",(0,d.default)(o.default,{content:(0,d.default)("div",{style:{width:360,margin:"10px auto"},size:"small"},void 0,X,$),trigger:"hover"},void 0,ee)),disabled:U||V},"2",(0,d.default)("div",{className:"field-item-list"},void 0,p.map((function(t,a){return Array.isArray(t.columnsPoint)&&t.columnsPoint.length>0?(0,d.default)(D.default,{index:a,position:t,needFocus:e.currentOptTableIndex===a,mouseEnter:e.textAreaMouseEnter,mouseLeave:e.textAreaMouseLeave,onPositionRemove:e.handleRecognizePositionRemove,onPositionChange:e.handlePositionContentChange,onTableColumnChange:e.handleTableColumnContentChange},a):(0,d.default)(E.default,{index:a,position:t,loading:e.currentRegPosition&&e.currentRegPosition.index===a&&V,mouseEnter:e.textAreaMouseEnter,mouseLeave:e.textAreaMouseLeave,onPositionRemove:e.handleRecognizePositionRemove,onPositionChange:e.handlePositionContentChange},a)}))))))))))},a}(_.default.Component);t.default=(0,y.connect)((function(e){return{ocrTemplateInfo:(0,R.selectOcrTemplateInfo)(e),ocrTemplateTypes:(0,R.selectTemplateTypes)(e),ocrInfoLoading:(0,R.selectOcrInfoLoading)(e),publishInfo:(0,R.selectPublishInfo)(e),recognizeText:(0,R.selectRecognizeText)(e),recognizeLoading:(0,R.selectRecognizeLoading)(e),saveTemplateLoading:(0,R.selectSubmitOcrLoading)(e),publishLoading:(0,R.selectPublishLoading)(e),checkNameVerifyInfo:(0,F.selectVerifyInfo)(e),isSubmitted:(0,R.selectSubmittedStatus)(e),adjustedInfo:(0,R.selectAdjustedInfo)(e),saveAdjustLoading:(0,R.selectAdjustedLoading)(e)}}))(j.Form.create()(te))}).call(this,a("./node_modules/timers-browserify/main.js").setImmediate)},"./src/module/ocr/page/OcrManage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=M(a("./node_modules/antd/es/divider/index.js")),o=M(a("./node_modules/antd/es/popover/index.js")),s=M(a("./node_modules/babel-runtime/helpers/jsx.js")),r=M(a("./node_modules/antd/es/message/index.js")),i=M(a("./node_modules/antd/es/modal/index.js")),d=M(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=M(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=M(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/popover/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=M(a("./node_modules/react/index.js")),p=M(a("./node_modules/lodash/lodash.js")),f=a("./node_modules/react-redux/es/index.js"),m=(M(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),h=a("./src/utils/history.js"),g=a("./src/components/index.js"),v=M(a("./src/containers/toJS.jsx")),_=M(a("./src/module/ocr/component/SearchBar.jsx")),y=M(a("./src/module/ocr/component/OcrList.jsx")),b=M(a("./src/module/ocr/component/UploadImage.jsx")),x=M(a("./src/module/ocr/component/RecognitionTest.jsx")),C=M(a("./src/module/ocr/component/ExampleJsonView.jsx")),j=a("./src/module/ocr/types.js"),S=a("./src/module/ocr/utils.js"),I=a("./src/utils/authPermit.js"),T=M(a("./src/module/ocr/component/TemplateUseDesc.jsx")),w=a("./src/redux/selectors/ocrManage.js"),E=a("./src/redux/reducers/ocrManage.js"),D=a("./src/module/ocr/page/styled.jsx");function M(e){return e&&e.__esModule?e:{default:e}}var k=(0,v.default)(y.default),P=(0,s.default)("span",{className:"use-desc"},void 0,"?"),L=(0,s.default)(n.default,{type:"vertical"}),N=(0,s.default)(n.default,{type:"vertical"}),A=(0,s.default)(n.default,{type:"vertical"}),R=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleViewJsonClick=function(e){var t=e.templateId;n.props.dispatch(E.ocrActions.getJsonViewInfoRequest(t)),n.setState({jsonViewVisible:!0})},n.deleteTemplate=function(e){var t;i.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664Ocr\u6a21\u677f?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return n.props.dispatch(E.ocrActions.deleteOcrTemplateRequest(e.templateId)),new Promise((function(e){p.default.defer((function(){var t=setInterval((function(){if(!n.props.deleteLoading){clearInterval(t);var a=n.props.ocrTemplateDelete.toJS();"000000"===a.code?r.default.success("\u5220\u9664\u6210\u529f"):r.default.error(a.message),n.props.dispatch(E.ocrActions.resetDeleteOcrTemplate()),e()}}),500)}))}))},t))},n.cancelPublish=function(e){var t=e.templateId;n.props.dispatch(E.ocrActions.cancelOcrTemplatePublishRequest(t))},n.openModalVisible=function(e,t){"edit"===t&&(0,h.navigateTo)("/ocr/config/"+e.templateId),n.setState({modalVisible:!0,viewType:t}),n.templateInfo=e},n.closeModal=function(e){var t=n;"submit"===e?(n.setState({modalVisible:!1}),n.fetchData(n.searchCond)):i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1})}})},n.fetchData=function(e){n.props.dispatch(E.ocrActions.getOcrTemplateListRequest(e))},n.changeSearchCond=function(e,t){n.searchCond[e]=p.default.trim(t),n.fetchData(n.searchCond)},n.callRelationModalVisible=function(){n.setState({modalVisible:!1,viewType:""})},n.state={modalVisible:!1,viewType:"",jsonViewVisible:!1},n.userIsAdmin=(0,I.isUserAdmin)(),n.templateInfo={},n.searchCond={search:"",templateTypeId:"",presetFlag:!1,templateStatus:""},n.columns=[{title:"\u6a21\u677f\u540d\u79f0",dataIndex:"templateName"},{title:"\u6a21\u677f\u56fe\u7247",dataIndex:"imgThn",render:function(e){return(0,s.default)("div",{className:"img-thumbnail-wrapper"},void 0,(0,s.default)(o.default,{content:(0,s.default)("div",{className:"img__hover-card"},void 0,(0,s.default)("div",{className:"img__wrapper"},void 0,(0,s.default)("img",{src:(0,S.getRequestUrl)(e),height:"400",width:"400",style:{objectFit:"contain"}}))),placement:"right",trigger:"hover"},void 0,(0,s.default)("img",{src:(0,S.getRequestUrl)(e),width:"100",height:"80",className:"img-container"})))}},{title:"\u6a21\u677fID",dataIndex:"templateId",render:function(e){return(0,s.default)("div",{},void 0,(0,s.default)("span",{},void 0,e),(0,s.default)(m.CopyOutlined,{onClick:function(){return(0,S.copy2clipboard)(e)}}))}},{title:"\u6a21\u677f\u72b6\u6001",dataIndex:"templateStatus",render:function(e,t){return(0,s.default)("span",{style:{display:"flex",whiteSpace:"nowrap",alignItems:"center"}},void 0,j.TEMPLATE_STATUS_TEXT[e],(0,s.default)(o.default,{content:(0,s.default)(T.default,{templateId:t.templateId}),placement:"right",trigger:"hover"},void 0,2===e&&P))}},{title:"\u6a21\u677f\u5206\u7c7b",dataIndex:"templateTypeName"},{title:"\u53d1\u5e03\u65f6\u95f4",dataIndex:"publishAt"},{title:"\u4fee\u6539\u65f6\u95f4",dataIndex:"createAt"},{title:"\u64cd\u4f5c",width:200,render:function(e){return(0,s.default)("div",{},void 0,2===e.templateStatus&&(0,s.default)(c.default.Fragment,{},void 0,(0,s.default)("a",{href:"javascript:;"},void 0,(0,s.default)("span",{onClick:function(){return n.handleViewJsonClick(e)}},void 0,"\u67e5\u770bJSON")),L,(0,s.default)("a",{className:"disabled",href:"javascript:;"},void 0,(0,s.default)("span",{onClick:function(){return n.openModalVisible(e,"recognize")}},void 0,"\u8bd5\u4e00\u8bd5")),(n.userIsAdmin||1===e.presetFlag)&&(0,s.default)(c.default.Fragment,{},void 0,N,(0,s.default)("a",{href:"javascript:;"},void 0,(0,s.default)("span",{onClick:function(){return n.cancelPublish(e,"view")}},void 0,"\u53d6\u6d88\u53d1\u5e03")))),1===e.templateStatus&&(n.userIsAdmin||1===e.presetFlag)&&(0,s.default)(c.default.Fragment,{},void 0,(0,s.default)("a",{href:"javascript:;"},void 0,(0,s.default)("span",{onClick:function(){return n.openModalVisible(e,"edit")}},void 0,"\u4fee\u6539")),A,(0,s.default)("a",{href:"javascript:;"},void 0,(0,s.default)("span",{onClick:function(){n.deleteTemplate(e)}},void 0,"\u5220\u9664"))))}}],n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.componentWillUnmount=function(){this.props.dispatch(E.ocrActions.resetAllDestroy())},t.prototype.render=function(){var e=this,t=this.props,a=t.ocrTemplateList,n=t.ocrListLoading,o=t.ocrInfoLoading,r=Math.max(.6*document.body.clientWidth,1100),i=Math.max(.6*document.body.clientHeight,500),d=(document.body.clientHeight-i)/2;return(0,s.default)(D.ManagePageDom,{},void 0,(0,s.default)("div",{className:"content__wrapper"},void 0,(0,s.default)(g.ModalView,{viewType:this.state.viewType,modalTitle:"create"===this.state.viewType?"\u4e0a\u4f20\u6a21\u677f\u56fe\u7247":"\u8bd5\u4e00\u8bd5",onCancelType:!1,width:"create"===this.state.viewType?900:r,height:"create"===this.state.viewType?900:i,top:"create"===this.state.viewType?null:d,callVisible:this.callRelationModalVisible,modalVisible:this.state.modalVisible,loading:o,comp:"create"===this.state.viewType?(0,s.default)(b.default,{callVisible:this.callRelationModalVisible,subType:"create"}):(0,s.default)(x.default,{templateInfo:this.templateInfo,callVisible:this.callRelationModalVisible})}),(0,s.default)(C.default,{visible:this.state.jsonViewVisible,templateExampleJson:this.props.templateExampleJson?this.props.templateExampleJson.toJS():{},onClose:function(){return e.setState({jsonViewVisible:!1})}}),(0,s.default)(_.default,{openModalVisible:function(){e.openModalVisible(null,"create")},templateTypeId:this.searchCond.templateTypeId||null,onChange:this.changeSearchCond}),(0,s.default)(k,{ocrTemplateList:a,ocrListLoading:n,columns:this.columns})))},t}(c.default.Component);t.default=(0,f.connect)((function(e){return{ocrTemplateList:(0,w.selectOcrTemplateList)(e),ocrTemplateDelete:(0,w.selectOcrDelete)(e),ocrInfoLoading:(0,w.selectOcrInfoLoading)(e),ocrListLoading:(0,w.selectOcrTemplateListLoading)(e),deleteLoading:(0,w.selectDeleteLoading)(e),templateExampleJson:(0,w.selectTemplateEXJson)(e)}}))(R)},"./src/module/ocr/page/PublishedPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PublishedWrapper=void 0;var n=_(a("./node_modules/antd/es/divider/index.js")),o=_(a("./node_modules/antd/es/button/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=_(a("./node_modules/babel-runtime/helpers/inherits.js")),l=_(a("./node_modules/antd/es/breadcrumb/index.js")),u=_(a("./node_modules/antd/es/layout/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/breadcrumb/style/index.js"),a("./node_modules/antd/es/layout/style/index.js");var c=_(a("./node_modules/react/index.js")),p=(_(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),f=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=a("./node_modules/react-router-dom/esm/react-router-dom.js"),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./src/redux/reducers/ocrManage.js"),v=_(a("./src/module/ocr/component/TemplateUseDesc.jsx"));function _(e){return e&&e.__esModule?e:{default:e}}var y=u.default.Header,b=u.default.Content,x=l.default.Item,C=t.PublishedWrapper=f.default.div.withConfig({displayName:"PublishedPage__PublishedWrapper",componentId:"sc-1cc4t8v-0"})(["font-sze:16px;display:flex;flex-grow:1;.header-wrapper{display:flex;justify-content:space-between;align-items:center;height:100%;}.published__content-wrapper{display:flex;margin:50px;}.ant-breadcrumb{font-size:14px;}.published__content-right{margin-left:30px;display:flex;flex-direction:column;justify-content:space-between;font-size:14px;}.published__btns button{margin:0 20px 0 0;}.diver-line{margin:10px 0;}"]),j=(0,s.default)("div",{className:"header-wrapper"},void 0,(0,s.default)(l.default,{},void 0,(0,s.default)(x,{href:"/ocr"},void 0,(0,s.default)(h.UnorderedListOutlined,{}),(0,s.default)("span",{},void 0,"\u6a21\u677f\u7ba1\u7406")),(0,s.default)(x,{},void 0,"\u53d1\u5e03\u6a21\u677f"))),S=(0,s.default)(n.default,{className:"diver-line"}),I=(0,s.default)(n.default,{className:"diver-line"}),T=(0,s.default)(o.default,{type:"primary"},void 0,"\u8fd4\u56de\u5217\u8868"),w=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.state={imageUrl:""},n}return(0,d.default)(t,e),t.prototype.componentWillUnmount=function(){this.props.dispatch(g.ocrActions.resetCancelOcrTemplatePublishStatus())},t.prototype.render=function(){var e=this;return this.props.show?(0,s.default)(C,{},void 0,(0,s.default)(u.default,{},void 0,(0,s.default)(y,{style:{backgroundColor:"#fff"}},void 0,j),(0,s.default)(b,{},void 0,(0,s.default)("div",{className:"published__content-wrapper"},void 0,(0,s.default)("div",{className:"published__content-left"},void 0,(0,s.default)(h.CheckCircleTwoTone,{twoToneColor:"#52c41a",style:{fontSize:"100px"}})),(0,s.default)("div",{className:"published__content-right"},void 0,(0,s.default)("div",{className:"published__content-text"},void 0,"\u606d\u559c\u60a8\uff0c\u6a21\u677f\u5df2\u53d1\u5e03\u6210\u529f",(0,s.default)("div",{className:"published__content-id"},void 0,"\u6a21\u677fID\u4e3a\uff1a",(0,s.default)("span",{},void 0,this.props.templateId)),S,(0,s.default)(v.default,{templateId:this.props.templateId})),I,(0,s.default)("div",{className:"published__transfer"},void 0,(0,s.default)("div",{className:"published__btns"},void 0,(0,s.default)(m.Link,{to:{pathname:"/ocr"}},void 0,T),(0,s.default)(o.default,{onClick:function(){return e.props.cancel()}},void 0,"\u7ee7\u7eed\u7f16\u8f91"),(0,s.default)(o.default,{onClick:function(){return e.props.onTest()}},void 0,"\u8bd5\u4e00\u8bd5")))))))):null},t}(c.default.Component);t.default=(0,p.connect)()(w)},"./src/module/ocr/page/styled.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ManagePageDom=t.ConfigPageWrapper=void 0;var n,o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/module/ocr/types.js");t.ConfigPageWrapper=s.default.div.withConfig({displayName:"styled__ConfigPageWrapper",componentId:"sc-1n5qui8-0"})(["display:flex;flex-direction:column;flex:1 1 auto;background:#f0f2f5;.ant-layout-header{box-shadow:0 0 2px 0 rgba(0,0,0,0.15);z-index:1;}.header-wrapper{display:flex;justify-content:space-between;align-items:center;}.header__left-wrapper{display:flex;}.current{color:#108cee;}.drawing-toolbar{width:48px;height:335px;font-size:18px;position:absolute;top:50%;left:0;transform:translateY(-50%);padding:6px 0;background-color:#fff;box-shadow:0 0 4px 0 rgba(0,0,0,0.1);border-radius:0 3px 3px 0;color:#a9b1c1;text-align:center;z-index:2;svg{cursor:pointer;}}.drawing-toolbar__icon-container{display:flex;flex-direction:column;justify-content:space-around;height:100%;.ant-divider-horizontal{margin:0;}}.canvas-container{position:absolute;}.canvas-wrapper{position:relative;}#myCanvas{margin:0 auto;}#editCanvas{position:absolute;background:rgba(255,255,255,0);top:0;left:0;}.opt-wrapper{position:relative;}button{margin:auto 20px;}.insert-table{line-height:40px;font-size:14px;position:absolute;left:50px;top:-20px;width:150px;height:80px;background:rgba(0,0,0,0.5);color:#fff;}.insert-input{width:30px;margin:0 10px;}.insert-button{margin-top:0;}.right-wrapper{height:100%;}.image-wrapper{display:flex;justify-content:center;align-items:center;overflow:hidden;height:100%;}.ant-tabs{height:100%;}.field-item-list{overflow:auto;position:absolute;height:calc(100% - 80px);left:0;right:0;top:60px;bottom:0;}.config-container{visibility:",";}canvas{cursor:",";}.use-desc{display:inline-block;font-size:12px;margin-left:5px;width:12px;height:12px;border-radius:6px;background:#ccc;color:#fff;line-height:12px;text-align:center;&:hover{color:#40a9ff;color:#fff;}}"],(function(e){return e.showPublish?"hidden":"visible"}),(function(e){return e.optStatus===r.OPT_ENUM_STATUS.drag?"move !important":"default"})),t.ManagePageDom=s.default.div.withConfig({displayName:"styled__ManagePageDom",componentId:"sc-1n5qui8-1"})(["width:100%;padding:20px 50px 60px 50px;margin-bottom:20px;flex-grow:1;display:flex;.content__wrapper{background-color:#ffff;padding:20px;flex-grow:1;}.img-thumbnail-wrapper{display:flex;justify-content:flex-start;align-items:flex-start;position:relative;}.img-container{object-fit:contain;}.use-desc{display:inline-block;font-size:12px;margin-left:5px;width:12px;height:12px;border-radius:6px;background:#1890ff;color:#fff;line-height:12px;text-align:center;&:hover{color:#40a9ff;color:#fff;}}"])},"./src/module/ocr/types.js":function(e,t,a){"use strict";t.__esModule=!0;var n={drag:0,select:1,rotate:2,cut:3,zoomIn:4,zoomOut:5,reset:6,table:7,replace:8},o=[{type:"drag",value:n.drag,text:"\u62d6\u62fd"},{type:"select",value:n.select,text:"\u6846\u9009\u53c2\u7167\u5b57\u6bb5"},{type:"table",value:n.table,text:"\u63d2\u5165\u8868\u683c"},{type:"reload",value:n.rotate,text:"\u65cb\u8f6c"},{type:"zoom-in",value:n.zoomIn,text:"\u653e\u5927"},{type:"zoom-out",value:n.zoomOut,text:"\u7f29\u5c0f"},{type:"column-width",value:n.reset,text:"\u91cd\u7f6e"},{type:"interaction",value:n.replace,text:"\u66f4\u6362\u56fe\u7247"}];t.OPT_ENUM_STATUS=n,t.OPT_SELECT_FELID_STATUS={noOpt:0,drawRect:1,dragRect:2,dragLeft:3,dragTop:4,dragRight:5,dragBottom:6,dragLT:7,dragRT:8,dragLB:9,dragRB:10,dragCol:11},t.OPT_ARRAY=o,t.TEMPLATE_STATUS={all:"",edit:"EDIT",publish:"PUBLISH"},t.TEMPLATE_STATUS_TEXT={1:"\u7f16\u8f91\u4e2d",2:"\u5df2\u53d1\u5e03"},t.TEMPLATE_SOURCE={custom:1,system:2}},"./src/module/ocr/utils.js":function(e,t,a){"use strict";t.__esModule=!0,t.assembleTemplateInfo=t.textReferPosition=t.getPosition=t.parseTypes2Tree=t.formatFloat=t.getImg2Base64=t.getRequestUrl=t.getBase64=t.isPointInRect=t.parseTemplateInfo=t.getClipImg2DataUrl=t.copy2clipboard=t.adjustRectPosition=t.getCanvasSize=t.getRecognizeText=t.getAngle=void 0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=p(a("./node_modules/antd/es/message/index.js")),s=p(a("./node_modules/babel-runtime/regenerator/index.js")),r=p(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js"));a("./node_modules/antd/es/message/style/index.js");var i=a("./node_modules/tesseract.js/src/index.js"),d=p(a("./node_modules/lodash/lodash.js")),l=p(a("./node_modules/copy-to-clipboard/index.js")),u=a("./src/module/ocr/types.js"),c=a("./src/utils/constants.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=function(){var e=(0,r.default)(s.default.mark((function e(t){var a,n,o,r=t.imgAddr,d=t.position;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(0,i.createWorker)(),e.next=3,a.load();case 3:return e.next=5,a.loadLanguage("chi_sim+eng");case 5:return e.next=7,a.initialize("chi_sim+eng");case 7:return e.next=9,a.recognize(r,{rectangle:d});case 9:return n=e.sent,o=n.data.text,e.next=13,a.terminate();case 13:return e.abrupt("return",o);case 14:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}();function m(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}t.getAngle=function(e,t){var a=e.x,n=e.y,o=t.x,s=t.y,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=a*o+n*s,d=a*s-n*o,l=Math.atan2(d,i)/Math.PI*180;return(r+l+360)%360},t.getRecognizeText=f,t.getCanvasSize=function(e,t){var a=document.body.clientWidth/3,n=e/t,o=void 0,s=void 0;return e/a>1.3&&n>1?(o=1.3*a,s=1.3*a/n):e/a>1.3?(o=1.3*a*n,s=1.3*a):(o=e,s=t),{width:o,height:s}},t.adjustRectPosition=function(e){var t=e.startX,a=e.startY,n=e.offsetX,o=e.offsetY,s=e.cWidth,r=e.cHeight,i={startPoint:{x:t,y:a},endPoint:{x:n,y:o}};return t-n>0&&(i.startPoint.x=n,i.endPoint.x=t),a-o>0&&(i.startPoint.y=o,i.endPoint.y=a),i.startPoint.percentX=i.startPoint.x/s,i.startPoint.percentY=i.startPoint.y/r,i.endPoint.percentX=i.endPoint.x/s,i.endPoint.percentY=i.endPoint.y/r,i},t.copy2clipboard=function(e){(0,l.default)(e),o.default.success("\u590d\u5236\u6210\u529f\uff01")},t.getClipImg2DataUrl=function(e){return new Promise((function(t){var a=e.imgAttr,n=e.imgAddr,o=e.scale,s=e.imgData,r=e.position,i=r.left,d=r.top,l=r.width,u=r.height,c=document.createElement("canvas"),p=c.getContext("2d");c.width=a.width,c.height=a.height;var f={left:i*o,top:d*o,width:l*o,height:u*o},m=new Image,h=void 0;m.onload=function(){p.drawImage(m,0,0,a.width,a.height);var e=p.getImageData(f.left,f.top,f.width,f.height),n=document.createElement("canvas"),o=n.getContext("2d");n.width=f.width,n.height=f.height,o.putImageData(e,0,0,0,0,n.width,n.height),h=n.toDataURL("image/png"),t(h.replace("data:image/png;base64,",""))},m.src=s||n}))},t.parseTemplateInfo=function(e){for(var t=e.imgExif?JSON.parse(e.imgExif):{},a=e.tplFields||[],o=e.tplTexts||[],s=e.tplTables||[],r=a&&a.map((function(e){var a=Number(e.position.x),o=Number(e.position.y),s=a+Number(e.position.width),r=o+Number(e.position.height);return(0,n.default)({},e,{startPoint:{x:a,y:o,percentX:a/t.width,percentY:o/t.height},endPoint:{x:s,y:r,percentX:s/t.width,percentY:r/t.height}})})),i=o&&o.map((function(e){var a=Number(e.position.x),o=Number(e.position.y),s=a+Number(e.position.width),r=o+Number(e.position.height);return(0,n.default)({},e,{startPoint:{x:a,y:o,percentX:a/t.width,percentY:o/t.height},endPoint:{x:s,y:r,percentX:s/t.width,percentY:r/t.height}})})),d=[],l=0;l<s.length;l++){for(var u=[],c=[],p=s[l].tableFields||[],f=p||[],m=Number(p[0].position.x),h=Number(p[0].position.y),g=Number(p[p.length-1].position.x)+Number(p[p.length-1].position.width),v=Number(p[p.length-1].position.y)+Number(p[p.length-1].position.height),_=(0,n.default)({},s[l],{startPoint:{x:m,y:h,percentX:m/t.width,percentY:h/t.height},endPoint:{x:g,y:v,percentX:g/t.width,percentY:v/t.height}}),y=_.endPoint.x-_.startPoint.x,b=0;b<f.length;b++){var x=f[b].position;c.push({name:f[b].name,cType:f[b].cType});var C=Number(x.x)+Number(x.width),j=Number(x.y),S=Number(x.height);if(b===f.length-1)break;u.push((0,n.default)({},f[b],{startPoint:{x:C,y:j,percentX:(C-m)/y,percentY:0},endPoint:{x:C,y:j+S,percentX:(C-m)/y,percentY:1}}))}_.columnsPoint=u,_.columnsContent=c,d.push(_)}return{selectFieldList:r,tplTextList:i,tplTableList:d}},t.isPointInRect=function(e,t,a){u.OPT_SELECT_FELID_STATUS.noOpt;for(var n=null,o=a.length,s=0;s<o;s++){var r=a[s];if(r.startPoint.x>e||e>r.endPoint.x||r.startPoint.y>t||t>r.endPoint.y)u.OPT_SELECT_FELID_STATUS.noOpt,"default";else{var i=r.endPoint.x-r.startPoint.x,d=r.endPoint.y-r.startPoint.y,l=Math.min(2,i/10),c=Math.min(2,d/10);if(n={index:s,position:r,from:{x:e,y:t}},r.startPoint.x+l>=e&&r.startPoint.y+c<t&&t<r.endPoint.y-c)return{opStatus:u.OPT_SELECT_FELID_STATUS.dragLeft,canvasCursor:"w-resize",currentOptField:n};if(r.startPoint.y+c>=t&&r.startPoint.x+l<e&&e<r.endPoint.x-l)return{opStatus:u.OPT_SELECT_FELID_STATUS.dragTop,canvasCursor:"s-resize",currentOptField:n};if(r.endPoint.x-l<=e&&r.startPoint.y+c<t&&t<r.endPoint.y-c)return{opStatus:u.OPT_SELECT_FELID_STATUS.dragRight,canvasCursor:"w-resize",currentOptField:n};if(r.endPoint.y-c<=t&&r.startPoint.x+l<e&&e<r.endPoint.x-l)return{opStatus:u.OPT_SELECT_FELID_STATUS.dragBottom,canvasCursor:"s-resize",currentOptField:n};if(r.startPoint.x+l>=e&&t<=r.startPoint.y+c)return{opStatus:u.OPT_SELECT_FELID_STATUS.dragLT,canvasCursor:"se-resize",currentOptField:n};if(r.endPoint.x-l<=e&&t<=r.startPoint.y+c)return{opStatus:u.OPT_SELECT_FELID_STATUS.dragRT,canvasCursor:"ne-resize",currentOptField:n};if(r.startPoint.x+l>=e&&t>=r.endPoint.y-c)return{opStatus:u.OPT_SELECT_FELID_STATUS.dragLB,canvasCursor:"ne-resize",currentOptField:n};if(r.endPoint.x-l<=e&&t>=r.endPoint.y-c)return{opStatus:u.OPT_SELECT_FELID_STATUS.dragRB,canvasCursor:"se-resize",currentOptField:n};if(r.startPoint.x<e&&e<r.endPoint.x&&r.startPoint.y<t&&t<r.endPoint.y){var p=r.endPoint.x-r.startPoint.x;if(Array.isArray(r.columnsPoint)&&r.columnsPoint.length>0)for(var f=0;f<r.columnsPoint.length;f++){var m=r.columnsPoint[f],h=r.startPoint.x+p*m.startPoint.percentX;if(h-l<=e&&e<=h+l&&r.startPoint.y+c<=t&&t<=r.endPoint.y-c)return{opStatus:u.OPT_SELECT_FELID_STATUS.dragCol,canvasCursor:"w-resize",currentOptField:n={index:s,columnIndex:f,position:r,from:{x:e,y:t},columnPoint:m}}}return{opStatus:u.OPT_SELECT_FELID_STATUS.dragRect,canvasCursor:"move",currentOptField:n}}u.OPT_SELECT_FELID_STATUS.noOpt,"default",n=null}}return{opStatus:u.OPT_SELECT_FELID_STATUS.noOpt,canvasCursor:"default",currentOptField:n=null}},t.getBase64=function(e,t){var a=new FileReader;a.addEventListener("load",(function(){return t(a.result,e.type)})),a.readAsDataURL(e)},t.getRequestUrl=function(e){return(0,c.wrapServiceUrl)(c.ServicePath.OCR_SERVICE,e)},t.getImg2Base64=function(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height),t.toDataURL()},t.formatFloat=m,t.parseTypes2Tree=function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-1";if(!Array.isArray(t))return[];for(var n=[],o=void 0,s=0;s<t.length;s++)if(t[s].templateTypePid===a){var r=t[s];(o=e(t,t[s].templateTypeId)).length>0&&(r.children=o),n.push(r)}return n},t.getPosition=function(e){var t=e.currentPoint,a=e.canvasWidth,n=e.canvasHeight,o=e.imageAttribute,s=o.width,r=o.height,i=t.startPoint.percentX?t.startPoint.percentX:t.startPoint.x/s,d=t.startPoint.percentY?t.startPoint.percentY:t.startPoint.y/r,l=t.endPoint.percentX?t.endPoint.percentX:t.endPoint.x/s,u=t.endPoint.percentY?t.endPoint.percentY:t.endPoint.y/r,c=a*i,p=n*d,f=a*l,m=n*u;return{sPercentX:i,sPercentY:d,ePercentX:l,ePercentY:u,startX:c,startY:p,endX:f,endY:m,width:f-c,height:m-p}},t.textReferPosition=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a={isMatch:!1,newPosition:{},infoMsg:"\u8bf7\u9009\u62e9\u8fa8\u8bc6\u5ea6\u8f83\u9ad8\u7684\u533a\u57df\u4f5c\u4e3a\u53c2\u8003\u5b57\u6bb5"};if(!e||!e.trim()||!Array.isArray(t))return a;for(var n=0;n<t.length;n++){var o=t[n];if(d.default.startsWith(o.text,e)){if(a.isMatch)return{isMatch:!1,newPosition:{},infoMsg:"\u8bf7\u9009\u62e9\u552f\u4e00\u7684\u6587\u5b57\u4f5c\u4e3a\u53c2\u8003\u5b57\u6bb5"};a={isMatch:!0,newPosition:o,infoMsg:""}}}return a},t.assembleTemplateInfo=function(e){var t=e.tplTexts,a=e.tablePositions,n=e.tplFields,o=e.width,s=e.height,r=e.templateInfo;n=n.map((function(e){return{name:e.name,cType:e.cType,result:e.result,position:{x:m(o*e.startPoint.percentX,2),y:m(s*e.startPoint.percentY,2),width:m(o*(e.endPoint.percentX-e.startPoint.percentX),2),height:m(s*(e.endPoint.percentY-e.startPoint.percentY),2)},predictPosition:e.predictPosition}})),t=t.map((function(e){return{name:e.name,cType:e.cType,result:e.result,position:{x:m(o*e.startPoint.percentX,2),y:m(s*e.startPoint.percentY,2),width:m(o*(e.endPoint.percentX-e.startPoint.percentX),2),height:m(s*(e.endPoint.percentY-e.startPoint.percentY),2)}}}));for(var i=[],d=0;d<a.length;d++){for(var l=a[d],u={tableName:l.tableName,tableFields:[]},c={x:o*l.startPoint.percentX,y:s*l.startPoint.percentY,width:o*(l.endPoint.percentX-l.startPoint.percentX),height:s*(l.endPoint.percentY-l.startPoint.percentY)},p=0;p<l.columnsPoint.length;p++){var f=l.columnsPoint[p],h=l.columnsContent[p],g={name:h.name,cType:h.cType,result:h.result};if(0===p)g.position={x:m(c.x,2),y:m(c.y,2),width:m(c.width*f.startPoint.percentX,2),height:m(c.height,2)};else{var v=l.columnsPoint[p-1];g.position={x:m(c.x+c.width*v.startPoint.percentX,2),y:m(c.y,2),width:m(c.width*(f.startPoint.percentX-v.startPoint.percentX),2),height:m(c.height,2)}}u.tableFields.push(g),p===l.columnsPoint.length-1&&u.tableFields.push({name:l.columnsContent[p+1].name,cType:l.columnsContent[p+1].cType,result:l.columnsContent[p+1].result,position:{x:m(c.x+c.width*f.startPoint.percentX,2),y:m(c.y,2),width:m(c.width*(1-f.startPoint.percentX),2),height:m(c.height,2)}})}i.push(u)}return{templateId:r.templateId,templateName:r.templateName,templateDesc:r.templateDesc,templateTypeId:r.templateTypeId,presetFlag:r.presetFlag,templateStatus:r.templateStatus,imgId:r.imgId,predictRes:r.predictRes,tplFields:n,tplTexts:t,tplTables:i}}},"./src/module/platFeaturesManage/component/BottomResultPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.BottomPageDom=void 0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/collapse/index.js"));a("./node_modules/antd/es/collapse/style/index.js");var d=h(a("./node_modules/react/index.js")),l=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=h(a("./src/module/platFeaturesManage/component/RequestPage.jsx")),f=h(a("./src/module/platFeaturesManage/component/ResponsePage.jsx")),m=h(a("./src/module/platFeaturesManage/component/ResultPage.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var g=i.default.Panel,v=t.BottomPageDom=l.default.div.withConfig({displayName:"BottomResultPage__BottomPageDom",componentId:"sc-18vs633-0"})([".ant-collapse{height:100%;border:1px solid #007dd8;background:#373a46;position:relative;border-radius:6px !important;.divTop{width:90%;position:absolute;border:0.5px solid #e2f9ff;margin-left:5%;margin-top:-1px;}.divLeft{position:absolute;border:0.5px solid #e2f9ff;left:0;height:525px;margin-left:-1px;margin-top:47px;}.divRight{position:absolute;border:0.5px solid #e2f9ff;right:0;height:525px;margin-right:-0.2px;margin-top:47px;}.divBottom{width:90%;position:absolute;border:0.5px solid #e2f9ff;bottom:0;margin-left:5%;margin-bottom:-0.8px;}}.ant-collapse > .ant-collapse-item{border-bottom:1px solid #373a46;}.ant-collapse-content-box{padding:16px;background:#373a46;}.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow{right:16px;left:initial;color:#1fa9ff;}.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header{padding:12px 16px;padding-right:40px;color:#ffffff;}.ant-collapse-content{overflow:hidden;color:rgba(0,0,0,0.65);background-color:#373a46;border-top:2px solid #2a2e38;}.ant-collapse-header{padding:12px 16px;padding-right:40px;color:#ffffff;font-size:14px;}"]),_=(0,n.default)("div",{className:"divTop"}),y=(0,n.default)("div",{className:"divLeft"}),b=(0,n.default)("div",{className:"divRight"}),x=(0,n.default)("div",{className:"divBottom"}),C=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.callback=function(e){n.setState({key:e})},n.state={key:"1"},n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(v,{style:{height:this.props.height?this.props.height:"100%"}},void 0,(0,n.default)(i.default,{expandIcon:function(e){var t=e.isActive;return(0,n.default)(u.CaretRightOutlined,{style:{fontSize:"24px",color:"#E2F9FF"},rotate:t?90:0})},defaultActiveKey:["1"],onChange:this.callback,accordion:!0,expandIconPosition:"right"},void 0,_,y,b,x,(0,n.default)(g,{header:"\u8bc6\u522b\u7ed3\u679c"},"1",(0,n.default)(m.default,{recognitionDataLoading:this.props.recognitionDataLoading,height:this.props.height?"425":"455",data:this.props.data,recognitionData:this.props.recognitionData})),(0,n.default)(g,{header:"Request"},"2",(0,n.default)(p.default,{data:this.props.data,height:this.props.height?"425":"455"})),(0,n.default)(g,{header:"Response"},"3",(0,n.default)(f.default,{height:this.props.height?"425":"455",recognitionData:this.props.recognitionData}))))},t}(d.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(C)},"./src/module/platFeaturesManage/component/CanvasImage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/extends.js")),o=m(a("./node_modules/antd/es/spin/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js")),l="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\platFeaturesManage\\component\\CanvasImage.jsx";a("./node_modules/antd/es/spin/style/index.js");var u=m(a("./node_modules/react/index.js")),c=(m(a("./node_modules/prop-types/index.js")),m(a("./src/module/platFeaturesManage/component/event.js"))),p=m(a("./src/styles/images/nopic.png")),f=a("./src/module/platFeaturesManage/component/display_form/util.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.drawRects=function(e,t,a,o){_.isUndefined(o)||n.drawImage(t,a),_.isArray(e)&&e.map((function(e){var s=_.get(n.colorMap,_.get(e,"__id")),r=_.isNil(s)?"rgb(207, 19, 34)":s;t.lineWidth=2,t.strokeStyle=r;var i=void 0,d=void 0,l=void 0,u=void 0;if(!0===e.relativeCoord){var c=a.width,p=a.height;i=n.pos.x+c*e.x*n.scale,d=n.pos.y+p*e.y*n.scale,l=c*e.w*n.scale,u=p*e.h*n.scale}else i=n.pos.x+e.x*n.scale,d=n.pos.y+e.y*n.scale,l=e.w*n.scale,u=e.h*n.scale;t.strokeRect(i,d,l,u),_.isEmpty(_.get(e,"__id"))&&n.drawNoCicle(t,i+l/2,d+u/2,_.get(e,"__id")+1,r),_.isEmpty(e.t)||(t.font="18px",t.fillStyle=r,t.textAlign="left",t.fillText(e.t,i,d-5)),_.get(e,"__id")===_.get(o,"__id")&&(_.startsWith(r,"#")?t.fillStyle=(0,f.hexToRgba)(r,.5):t.fillStyle="rgb(207, 19, 34,0.5)",t.fillRect(i,d,l,u))}))},n.drawNoCicle=function(e,t,a,n,o){e.beginPath(),e.arc(t,a,6,0,2*Math.PI,!0),_.startsWith(o,"#")?e.fillStyle=(0,f.hexToRgba)(o,.3):e.fillStyle="rgb(207, 19, 34,0.3)",e.fill(),e.textAlign="center",e.fillStyle="#fff",e.closePath(),e.font="12px",e.fillText(n,t,a+3)},n.drawImage=function(e,t){e.clearRect(0,0,e.canvas.width,e.canvas.height);var a=t.width,o=t.height,s=t.width/t.height;t.width>e.canvas.width?(o=(a=e.canvas.width)/s)>e.canvas.height&&(a=(o=e.canvas.height)*s):o>e.canvas.height&&(a=(o=e.canvas.height)*s),n.scale=Math.max(a/t.width,o/t.height),n.pos={x:e.canvas.width/2-a/2,y:e.canvas.height/2-o/2},e.drawImage(t,n.pos.x,n.pos.y,a,o)},n.canvasRef=u.default.createRef(),n.imgRef=u.default.createRef(),n.pos={},n.state={imgUrl:"",loading:!0,backDisplay:!1},n}return(0,d.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.imgUrl!==t.imgUrl?{imgUrl:e.imgUrl,loading:!0,backDisplay:!1}:null},t.prototype.componentDidMount=function(){var e=this,t=this.canvasRef.current.getContext("2d"),a=this.imgRef.current;c.default.addListener("APP_SCENE:MARK_RECT",(function(n,o){e.rects=_.keyBy(n,"__id"),e.colorMap=o,e.drawRects(n,t,a)})),c.default.addListener("APP_SCENE:DISPLAY_IMG",(function(t){a.src=t,e.setState({backDisplay:!0})})),c.default.addListener("APP_SCENE:HIGHLIGHT_RECT",(function(n){e.drawRects(Object.values(e.rects),t,a,_.get(e.rects,n,null))})),a.onload=function(){e.rects=[],e.colorMap={},e.drawImage(t,a),e.setState({loading:!1}),!0!==e.state.backDisplay&&e.props.onPredict()},a.onerror=function(t){t.target.src=p.default,e.setState({loading:!1})}},t.prototype.componentWillUnmount=function(){c.default.removeAllListeners("APP_SCENE:MARK_RECT"),c.default.removeAllListeners("APP_SCENE:DISPLAY_IMG"),c.default.removeAllListeners("APP_SCENE:HIGHLIGHT_RECT")},t.prototype.render=function(){return(0,s.default)(u.default.Fragment,{},void 0,(0,s.default)(o.default,{tip:"\u56fe\u7247\u52a0\u8f7d\u4e2d..",spinning:this.state.loading,size:"small",style:{top:0,bottom:0,margin:"auto"}}),u.default.createElement("canvas",{ref:this.canvasRef,width:440,height:435,style:(0,n.default)({width:"100%"},this.state.loading&&{display:"none"}),__source:{fileName:l,lineNumber:153}}),u.default.createElement("img",{ref:this.imgRef,src:this.props.imgUrl,style:{display:"none"},__source:{fileName:l,lineNumber:159}}))},t}(u.default.Component);t.default=h},"./src/module/platFeaturesManage/component/DiscernPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TopPageDom=t.DiscernPageDom=void 0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/antd/es/upload/index.js")),s=b(a("./node_modules/babel-runtime/helpers/extends.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/antd/es/message/index.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=b(a("./node_modules/react/index.js")),f=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(b(a("./node_modules/prop-types/index.js")),a("./src/utils/constants.js")),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/components/index.js"),v=a("./src/utils/authPermit.js"),y=b(a("./src/module/platFeaturesManage/component/BottomResultPage.jsx"));function b(e){return e&&e.__esModule?e:{default:e}}var x=c.default.Search,C=t.DiscernPageDom=f.default.div.withConfig({displayName:"DiscernPage__DiscernPageDom",componentId:"sc-120xjn0-0"})(["width:100%;height:100%;margin-bottom:1px;"]),j=t.TopPageDom=f.default.div.withConfig({displayName:"DiscernPage__TopPageDom",componentId:"sc-120xjn0-1"})(["width:100%;height:120px;.leftDiv{width:30%;float:left;.ant-upload.ant-upload-select{display:inline-block;width:70%;}}.centerDiv{text-align:center;width:30%;float:right;font-size:14px;margin-top:10px;color:#ffffff;}.RightDiv{width:70%;float:left;}.ant-input-search-button{width:100%;border-top-left-radius:0;border-bottom-left-radius:0;background:#303643;border-radius:0px 2px 2px 0px;border:1px solid #007dd8;}.ant-input-group-wrapper{display:inline-block;width:100%;text-align:start;vertical-align:top;margin-bottom:20px;}.bottomUsageTips{width:100%;font-size:14px;color:#b9b9b9;letter-spacing:1px;line-height:20px;margin-top:1%;display:inline-block;}.buttonCss{color:#ffffff;background:#007dd8;border-radius:2px;width:100%;}.ant-upload-list{display:none;}.ant-input-group > .ant-input:first-child,.ant-input-group-addon:first-child{border-top-right-radius:0;border-bottom-right-radius:0;border:1px solid #e2f9ff;border-right:0px;}.ant-input{color:#b9b9b9;background-color:#303643;}"]),S=(0,r.default)(n.default,{className:"buttonCss",size:"large",type:"primary"},void 0,"\u4f20\u672c\u5730\u7167\u7247"),I=(0,r.default)("div",{className:"centerDiv"},void 0,"\u6216"),T=(0,r.default)("div",{className:"bottomUsageTips"},void 0,"\u6bcf\u6b21\u4e0a\u4f20\u7684\u56fe\u7247\u5927\u5c0f\u9650\u5236\u57282M\u4ee5\u5185\uff0c\u4ec5\u652f\u6301JPG\u3001PNG\u3001JPEG\u3001BMP\u683c\u5f0f\u7684\u56fe\u7247\u3002"),w=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.searchOnclick=function(e){if(e.trim()){var t={apiDefinition:_.get(n.props.data,"apiDefinition",null),imageUrl:e,imageId:""};n.props.requestApiService(t,e,_.uniqueId())}else i.default.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7f51\u7edc\u56fe\u7247\u5730\u5740\uff01")},n.beforeUpload=function(e){var t="image/jpeg"===e.type||"image/png"===e.type;t||i.default.error("\u8bf7\u4e0a\u4f20\u56fe\u7247\u683c\u5f0fJPG/PNG\u6587\u4ef6!");var a=e.size/1024/1024<4;return a||i.default.error("\u56fe\u7247\u4e0d\u80fd\u8d85\u8fc7 4MB!"),t&&a},n.getBase64=function(e,t){var a=new FileReader;a.addEventListener("load",(function(){return t(a.result)})),a.readAsDataURL(e)},n.imgResponse="",n.state={filePath:""},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=(0,v.getToken)(),a=this,n={name:"file",action:(0,m.wrapServiceUrl)(m.ServicePath.APP_SCENE,"sceneDemoConfigs/operations/uploadSampleImages"),headers:{Authorization:t},onChange:function(e){var t=e.file.name;if(a.setState({filePath:t}),"uploading"===e.file.status&&i.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status){var n=_.get(a.props.data,"apiDefinition",null);n?a.getBase64(e.file.originFileObj,(function(t){var o={apiDefinition:n,imageUrl:"",imageId:_.get(e.file.response,"data.fileId",""),fileExtName:_.get(e.file.response,"data.fileExtName","")};a.props.requestApiService(o,t,_.uniqueId())})):"error"===e.file.status?(0,g.NotificationWithIcon)("error",e.file.name+" \u4e0a\u4f20\u51fa\u9519\uff01"):i.default.info("\u4e0a\u4f20\u6210\u529f\u4f46\u662fapiDefinition\u5bf9\u8c61\u4e3a\u7a7a\u3001\u8bf7\u786e\u5b9a\u914d\u7f6e\u662f\u5426\u6b63\u786e")}}},d=""!==_.get(this.props.data,"usageTips","")?_.get(this.props.data,"usageTips",[]).split("/n"):[];return(0,r.default)(C,{},void 0,(0,r.default)(j,{},void 0,(0,r.default)("canvas",{id:"canvas",style:{display:"none"}}),(0,r.default)("div",{className:"leftDiv"},void 0,p.default.createElement(o.default,(0,s.default)({beforeUpload:this.beforeUpload},n,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\platFeaturesManage\\component\\DiscernPage.jsx",lineNumber:166}}),S),I),(0,r.default)("div",{className:"RightDiv"},void 0,(0,r.default)(x,{placeholder:"\u4f7f\u7528\u7f51\u7edc\u56fe\u7247\uff0c\u8bf7\u7c98\u8d34\u56fe\u7247URL",enterButton:"\u68c0 \u6d4b",size:"large",onSearch:function(t){return e.searchOnclick(t)}})),d&&(0,r.default)("div",{},void 0,T,d.map((function(e,t){return(0,r.default)("div",{className:"bottomUsageTips"},t,t+1+"\uff1a"+d[t])})))),(0,r.default)(y.default,{recognitionDataLoading:this.props.recognitionDataLoading,height:"615px",data:this.props.data,recognitionData:this.props.recognitionData}))},t}(p.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(w)},"./src/module/platFeaturesManage/component/EditPersonFaceSign.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PersonFaceSignDom=void 0;var n=T(a("./node_modules/babel-runtime/helpers/extends.js")),o=T(a("./node_modules/antd/es/input-number/index.js")),s=T(a("./node_modules/antd/es/input/index.js")),r=T(a("./node_modules/antd/es/modal/index.js")),i=T(a("./node_modules/antd/es/upload/index.js")),d=T(a("./node_modules/babel-runtime/helpers/jsx.js")),l=T(a("./node_modules/babel-runtime/regenerator/index.js")),u=T(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),c=T(a("./node_modules/antd/es/message/index.js")),p=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=T(a("./node_modules/babel-runtime/helpers/inherits.js")),h=T(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var g=T(a("./node_modules/react/index.js")),v=(T(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),y=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),b=a("./src/utils/constants.js"),x=a("./node_modules/@ant-design/icons/es/index.js"),C=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var j=a("./src/redux/selectors/sysManager/sceneDemoManager.js"),S=a("./src/redux/reducers/sysManager/sceneDemoManager.js"),I=a("./src/utils/authPermit.js");function T(e){return e&&e.__esModule?e:{default:e}}var w=C.Form.Item,E=h.default.Group,D=t.PersonFaceSignDom=y.default.div.withConfig({displayName:"EditPersonFaceSign__PersonFaceSignDom",componentId:"sc-1ttq9rf-0"})(["width:100%;display:flex;.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item{background-color:#fafafa;width:220px;height:200px;}.ant-upload-list-picture-card .ant-upload-list-item{float:left;width:220px;height:200px;margin:0 8px 8px 0;}.ant-upload-picture-card-wrapper{zoom:1;height:200px;display:inline-block;height:110px;}.form{width:65%;text-align:center;}.ant-row{position:relative;height:auto;margin-right:0;margin-left:0;margin-bottom:0px;zoom:1;display:block;box-sizing:border-box;}"]);function M(e){return new Promise((function(t,a){var n=new FileReader;n.readAsDataURL(e),n.onload=function(){return t(n.result)},n.onerror=function(e){return a(e)}}))}var k=(0,d.default)(x.PlusOutlined,{}),P=(0,d.default)("div",{className:"ant-upload-text"},void 0,"\u70b9\u51fb\u4e0a\u4f20"),L=(0,d.default)(h.default,{value:"\u7537"},void 0,"\u7537"),N=(0,d.default)(h.default,{value:"\u5973"},void 0,"\u5973"),A=function(e){function t(a){var n=this;(0,p.default)(this,t);var o=(0,f.default)(this,e.call(this,a));return o.beforeUpload=function(e){var t="image/jpeg"===e.type||"image/png"===e.type;t||c.default.error("\u8bf7\u4e0a\u4f20\u56fe\u7247\u683c\u5f0fJPG/PNG\u6587\u4ef6!");var a=e.size/1024/1024<4;return a||c.default.error("\u56fe\u7247\u4e0d\u80fd\u8d85\u8fc7 4MB!"),t&&a},o.handlePreview=function(){var e=(0,u.default)(l.default.mark((function e(t){return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.url||t.preview){e.next=4;break}return e.next=3,M(t.originFileObj);case 3:t.preview=e.sent;case 4:o.setState({previewImage:t.url||t.preview,previewVisible:!0});case 5:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),o.handleCancel=function(){return o.setState({previewVisible:!1})},o.handleChange=function(){var e=(0,u.default)(l.default.mark((function e(t){var a,s,r=t.file,i=t.fileList;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"uploading"===(a=r.status)&&c.default.success("\u6587\u4ef6\u4e0a\u4f20\u4e2d..."),"done"===a?(s=_.get(r.response,"data.fileId",""),o.faceSignInfo.faceImgId=s,c.default.success(r.name+" \u4e0a\u4f20\u6210\u529f!")):"error"===a?c.default.error(r.name+" \u6587\u4ef6\u4e0a\u4f20\u5931\u8d25!"):"removed"===a&&(o.faceSignInfo.faceImgId=""),o.setState({fileList:[].concat(i)});case 4:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),o.submitModalCancel=function(){var e=!1;if(o.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e){if(0!==o.state.fileList.length)return o.props.dispatch(S.sceneDemoActions.submitFaceSignRequest({faceSignInfo:o.faceSignInfo})),new Promise((function(e){_.defer((function(){var t=setInterval((function(){if(!o.props.submitFaceSignLoading){clearInterval(t);var a=o.props.faceSignSubmit.toJS();a.isSuccess?(o.props.callVisible(),o.props.dispatch(S.sceneDemoActions.getFaceSignListRequest()),c.default.success(a.message)):c.default.error(a.message),e()}}),500)}))}));c.default.info("\u8bf7\u4e0a\u4f20\u6ce8\u518c\u56fe\u7247")}},o.setDataBlur=function(e,t){o.faceSignInfo.faceConfig[t]=_.trim(e)},o.state={previewVisible:!1,previewImage:"",fileList:[]},o.faceSignInfo={faceImgId:"",faceConfig:{name:"",sex:"\u7537",age:"",jobNum:"",register:""}},o}return(0,m.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,l=a.previewVisible,u=a.previewImage,c=a.fileList,p=(0,d.default)("div",{style:{width:200,height:180,paddingTop:"30%"}},void 0,k,P);return(0,d.default)(D,{},void 0,(0,d.default)("div",{style:{width:220,height:200}},void 0,(0,d.default)(i.default,{beforeUpload:this.beforeUpload,headers:{Authorization:(0,I.getToken)()},action:(0,b.wrapServiceUrl)(b.ServicePath.APP_SCENE,"sceneDemoConfigs/operations/uploadSampleImages"),listType:"picture-card",fileList:c,onPreview:this.handlePreview,onChange:this.handleChange},void 0,c.length>=1?null:p)),(0,d.default)(r.default,{visible:l,footer:null,onCancel:this.handleCancel},void 0,(0,d.default)("img",{alt:"example",style:{width:"100%"},src:u})),g.default.createElement(C.Form,(0,n.default)({},{labelCol:{span:6},wrapperCol:{span:16}},{name:"nest-messages",__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\platFeaturesManage\\component\\EditPersonFaceSign.jsx",lineNumber:192}}),(0,d.default)(w,{label:"\u540d \u79f0",help:""},void 0,t("faceConfig.name",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u540d\u79f0"}],initialValue:this.faceSignInfo.faceConfig.name})((0,d.default)(s.default,{size:"small",style:{width:230},placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",onBlur:function(t){return e.setDataBlur(t.target.value,"name")}}))),(0,d.default)(w,{label:"\u6027 \u522b",help:""},void 0,t("faceConfig.sex",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6027\u522b"}],initialValue:this.faceSignInfo.faceConfig.sex})((0,d.default)(E,{style:{width:230,textAlign:"left"},onChange:function(t){return e.setDataBlur(t.target.value,"sex")},value:this.state.value},void 0,L,N))),(0,d.default)(w,{label:"\u5e74 \u9f84",help:""},void 0,t("faceConfig.age",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5e74\u9f84"}],initialValue:this.faceSignInfo.faceConfig.age})((0,d.default)(o.default,{size:"small",style:{width:230},placeholder:"\u8bf7\u8f93\u5165\u5e74\u9f84",onBlur:function(t){return e.setDataBlur(t.target.value,"age")}}))),(0,d.default)(w,{label:"\u6237 \u7c4d",help:""},void 0,t("faceConfig.register",{rules:[{message:"\u8bf7\u8f93\u5165\u6237\u7c4d"}],initialValue:this.faceSignInfo.faceConfig.register})((0,d.default)(s.default,{size:"small",style:{width:230},placeholder:"\u8bf7\u8f93\u5165\u6237\u7c4d",onBlur:function(t){return e.setDataBlur(t.target.value,"register")}}))),(0,d.default)(w,{label:"\u5de5 \u53f7"},void 0,t("faceConfig.jobNum",{initialValue:this.faceSignInfo.faceConfig.jobNum})((0,d.default)(s.default,{size:"small",style:{width:230},placeholder:"\u8bf7\u8f93\u5165\u5de5\u53f7",onBlur:function(t){return e.setDataBlur(t.target.value,"jobNum")}})))))},t}(g.default.PureComponent);t.default=(0,v.connect)((function(e){return{submitFaceSignLoading:(0,j.selectFaceSignSubmitLoading)(e),faceSignSubmit:(0,j.selectFaceSignSubmit)(e)}}))(C.Form.create()(A))},"./src/module/platFeaturesManage/component/ImagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ImagePageDom=void 0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/antd/es/message/index.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var d=g(a("./node_modules/react/index.js")),l=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/redux/reducers/sysManager/platFormManager.js"),p=a("./src/utils/constants.js"),f=g(a("./node_modules/react-image/es/index.js")),m=g(a("./src/styles/images/nopic.png")),h=g(a("./src/module/platFeaturesManage/component/CanvasImage.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=t.ImagePageDom=l.default.div.withConfig({displayName:"ImagePage__ImagePageDom",componentId:"sc-1gah234-0"})(["width:100%;height:100%;.imgCss{width:100%;height:100%;&:hover{cursor:pointer;}}ul{display:flex;text-align:center;width:100%;padding:10px 0 10px 10px;height:220px;margin-bottom:0px;float:left;list-style-type:none;li{float:left;height:100%;width:200px;margin-right:12px;&.active{border:1px solid #47b2fb;}}}.selectDiv{position:relative;display:flex;text-align:center;width:100%;padding:10px;height:70%;margin-bottom:0px;float:left;.ant-spin-nested-loading{position:relative;height:100%;}.ant-spin-container{position:relative;height:100%;transition:opacity 0.3s;}.ant-spin-blur{height:100%;clear:both;overflow:hidden;opacity:0.5;user-select:none;pointer-events:none;}}.selectDiv.scanning::after{content:'';position:absolute;width:96%;background:linear-gradient(180deg,transparent,#3e88f1);animation:scanning 0.8s linear infinite;}@keyframes scanning{0%{height:0;}to{opacity:0;height:480px;}}"]),y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.onClickSampleImages=function(e){if(e.imageThumb)if(e.imageId)if(e.imageUrl){var t=_.get(n.props.data,"apiDefinition",null);if(t){var a={apiDefinition:t,imageUrl:e.imageUrl,imageId:""};t.url?(n.setState({selectImg:e.imageUrl}),n.props.requestApiService(a)):o.default.info("\u672a\u627e\u5230\u5bf9\u5e94url\u53c2\u6570\uff01\uff0c\u8bf7\u786e\u8ba4\u914d\u7f6e\u53c2\u6570")}else o.default.info("\u672a\u627e\u5230\u5bf9\u5e94apiDefinition\u53c2\u6570\uff01\uff0c\u8bf7\u786e\u8ba4\u914d\u7f6e\u53c2\u6570")}else o.default.info("\u672a\u627e\u5230\u5bf9\u5e94imageUrl\u53c2\u6570\uff01\uff0c\u8bf7\u786e\u8ba4\u914d\u7f6e\u53c2\u6570");else o.default.info("\u672a\u627e\u5230\u5bf9\u5e94imageId\u53c2\u6570\uff01\uff0c\u8bf7\u786e\u8ba4\u914d\u7f6e\u53c2\u6570");else o.default.info("\u6b64\u9ed8\u8ba4\u56fe\u7247\u672a\u63d0\u4f9bbase64\u56fe\u7247\u53c2\u6570\u914d\u7f6e,\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458")},n.handleRequestApi=function(e){n.props.dispatch(c.platFormActions.recognitionRequest({config:{apiDefinition:e.apiDefinition,params:{imageId:e.imageId,imageUrl:e.imageUrl,sceneType:"IMG",text:"",fileExtName:e.fileExtName?e.fileExtName:""},configId:n.props.configId},dispatch:n.props.dispatch}))},n.AutoSizeImg=function(e,t,a){var n=new Image;n.src=e.src,n.width<t&&n.height<a?(e.width=n.width,e.height=n.height):t/a<=n.width/n.height?(e.width=t,e.height=t*(n.height/n.width)):(e.width=a*(n.width/n.height),e.height=a)},n.state={selectImg:_.get(n.props.data,"sampleImages[0].imageUrl","")},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.data,o=t.base64Img,s=t.config,r=t.uniqueId,i=_.get(a,"sampleImages",[]),d=_.get(this.props,"recognitionDataLoading",!1);return(0,n.default)(v,{},void 0,(0,n.default)("ul",{},void 0,i.map((function(t,a){return(0,n.default)("li",{onClick:function(){e.onClickSampleImages(t)},className:e.state.selectImg!==t.imageUrl||o?"":"active"},a,(0,n.default)(f.default,{className:"imgCss",src:[t.imageThumb,m.default],onload:230}))}))),(0,n.default)("div",{className:d?"scanning selectDiv":"selectDiv"},void 0,(0,n.default)(h.default,{onPredict:function(){e.handleRequestApi(s)},imgUrl:o||(0,p.wrapServiceUrl)(p.ServicePath.APP_SCENE,this.state.selectImg)},r)))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(y)},"./src/module/platFeaturesManage/component/MuchTextPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=u(a("./node_modules/react/index.js")),l=(u(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=i.default.TextArea,p=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.validateFun=function(){return{validate:!0,moduleData:n.sampleText}},n.onChange=function(e,t){n.sampleText[t].txt=e};var r=n.props.setValidateFunc;return _.isFunction(r)&&r("muchTextPage",n.validateFun),n.sampleText=a.sampleText,n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)("div",{style:{marginBottom:15}},void 0,this.sampleText.map((function(t,a){return(0,n.default)("div",{},t.key,(0,n.default)("div",{style:{margin:"0px 0px 10px 5px",color:"#ffff",fontSize:14}},void 0,t.title),(0,n.default)(c,{rows:4,defaultValue:t.txt,onBlur:function(t){return e.onChange(t.target.value,a)}}))})))},t}(d.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(p)},"./src/module/platFeaturesManage/component/PersonFaceSign.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.PersonFaceSignDom=void 0;var n=x(a("./node_modules/antd/es/button/index.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/antd/es/message/index.js")),r=x(a("./node_modules/antd/es/modal/index.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=x(a("./node_modules/react/index.js")),c=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./src/components/index.js"),h=x(a("./src/module/platFeaturesManage/component/EditPersonFaceSign.jsx")),g=x(a("./node_modules/react-image/es/index.js")),v=x(a("./src/styles/images/nopic.png")),y=a("./src/redux/reducers/sysManager/sceneDemoManager.js"),b=a("./src/redux/selectors/sysManager/sceneDemoManager.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=t.PersonFaceSignDom=p.default.div.withConfig({displayName:"PersonFaceSign__PersonFaceSignDom",componentId:"sc-1bvov5f-0"})([".topDiv{display:flex;margin-left:12px;margin-bottom:4px;.msgDiv{margin-left:12px;padding:3px 11px;color:#ffffff;background:#475669;border-radius:4px;}}.ant-btn-primary{color:#fff;background-color:#147bd1;border-color:#147bd1;text-shadow:0 -1px 0 rgba(0,0,0,0.12);-webkit-box-shadow:0 2px 0 rgba(0,0,0,0.045);box-shadow:0 2px 0 rgba(0,0,0,0.045);}.bottomDiv{width:100%;float:left;.configDiv{background:#fff;border:1px solid #e0e0e1;float:left;display:flex;border-radius:4px;width:31%;margin:12px;height:200px;ul{float:right;list-style-type:none;padding:0px;width:100%;li{color:rgba(0,0,0,0.65);padding-bottom:12px;}}.imgDiv{float:left;padding:12px;width:250px;height:200px;}.imgCss{width:100%;height:100%;}.delCss{color:red;font-size:16px;cursor:pointer;float:right;line-height:40px;text-align:right;margin-right:10px;}}.configDiv:hover{box-shadow:0 4px 10px 0 rgba(0,0,0,0.12);cursor:pointer;background:#f9f9f9;border:1px solid #e0e0e1;}}"]),j=(0,o.default)(f.PlusOutlined,{}),S=(0,o.default)("div",{className:"msgDiv"},void 0,"\u6f14\u793a\u754c\u9762\u6700\u591a\u53ef\u6ce8\u518c9\u4e2a\u7528\u6237\u4fe1\u606f"),I=(0,o.default)(m.LoadingIndicator,{position:"relative"}),T=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.delFaceSign=function(e){var t;r.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u6ce8\u518c\u4fe1\u606f?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return n.props.dispatch(y.sceneDemoActions.deleteFaceSignRequest(e.faceId)),new Promise((function(e){_.defer((function(){var t=setInterval((function(){if(!n.props.deleteFaceSignLoading){clearInterval(t);var a=n.props.faceSignDelete.toJS();a.isSuccess?s.default.success(a.message):s.default.error(a.message),n.props.dispatch(y.sceneDemoActions.resetDeleteFaceSign()),e()}}),500)}))}))},t))},n.callRelationModalVisible=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.editPersonFaceSign.submitModalCancel()},n.openModalVisible=function(){n.setState({modalVisible:!0})},n.state={activeKey:"1",modalVisible:!1},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.faceSignListLoading,s=t.faceSignList,r=t.submitFaceSignLoading,i=s.size>0?s.toJS():[];return(0,o.default)(C,{},void 0,(0,o.default)(m.ModalView,{modalTitle:"\u521b\u5efa\u4eba\u8138\u6ce8\u518c\u4fe1\u606f",onCancelType:!1,width:600,okText:"\u4fdd \u5b58",viewType:"edit",submitModalOk:this.submitModalOk,callVisible:this.callRelationModalVisible,modalVisible:this.state.modalVisible,confirmLoading:r,comp:(0,o.default)(h.default,{callVisible:this.callRelationModalVisible,onRef:function(t){e.editPersonFaceSign=t}})}),(0,o.default)("div",{className:"topDiv"},void 0,(0,o.default)(n.default,{disabled:9===i.length,onClick:function(){e.openModalVisible()},size:"small",type:"primary"},void 0,j,"\u6dfb\u52a0\u4eba\u8138\u6ce8\u518c\u4fe1\u606f"),S),(0,o.default)("div",{className:"bottomDiv"},void 0,a?I:0===i.length?(0,o.default)(m.NoData,{style:{textAlign:"center",width:"100%",marginTop:30}}):i.map((function(t,a){return(0,o.default)("div",{className:"configDiv"},a,(0,o.default)("div",{className:"imgDiv"},void 0,(0,o.default)(g.default,{className:"imgCss",src:[t.faceThn,v.default]})),(0,o.default)("ul",{},void 0,(0,o.default)(f.DeleteOutlined,{onClick:function(){e.delFaceSign(t)},title:"\u5220\u9664",className:"delCss"}),(0,o.default)("li",{style:{marginBottom:8,marginTop:12,color:"#007DD8",fontSize:14,fontWeight:700,height:30}},void 0,_.get(t,"faceConfig.name","\u65e0")),(0,o.default)("li",{},void 0,"\u6027 \u522b\uff1a"+_.get(t,"faceConfig.sex","\u65e0")),(0,o.default)("li",{},void 0,"\u5e74 \u9f84\uff1a"+_.get(t,"faceConfig.age","\u65e0")),(0,o.default)("li",{},void 0,"\u5de5 \u53f7\uff1a"+_.get(t,"faceConfig.jobNum","\u65e0")),(0,o.default)("li",{},void 0,"\u6237 \u7c4d\uff1a"+_.get(t,"faceConfig.register","\u65e0"))))}))))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(e){return{faceSignList:(0,b.selectFaceSignList)(e),faceSignListLoading:(0,b.selectFaceSignListLoading)(e),faceSignDelete:(0,b.selectFaceSignDelete)(e),deleteFaceSignLoading:(0,b.selectFaceSignDeleteLoading)(e),submitFaceSignLoading:(0,b.selectFaceSignSubmitLoading)(e)}}))(T)},"./src/module/platFeaturesManage/component/ReasoningResult.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(s(a("./node_modules/react/index.js")),s(a("./node_modules/prop-types/index.js")),a("./src/module/platFeaturesManage/component/display_form/index.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.reasoningResults,a=e.apiDef,s=e.data;return t.map((function(e,t){var r=e.displayForm,i=o.DISPLAY_MAP[r];return i?(0,n.default)(i,{respData:s,config:e,apiDef:a},t):(console.error("\u4e0d\u652f\u6301\u7684\u7ed3\u679c\u5c55\u73b0\u5f62\u5f0f["+r+"]"),null)}))}},"./src/module/platFeaturesManage/component/RequestPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.RequestPageDom=void 0;var n=h(a("./node_modules/babel-runtime/helpers/typeof.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/antd/es/message/index.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var l=h(a("./node_modules/react/index.js")),u=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./src/components/index.js"),f=h(a("./node_modules/copy-to-clipboard/index.js")),m=a("./src/redux/selectors/sysManager/platFormManager.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=t.RequestPageDom=u.default.div.withConfig({displayName:"RequestPage__RequestPageDom",componentId:"sc-5ju2zr-0"})(["width:auto;ul{p{font-size:14px;color:#ffffff;margin-bottom:5px;}text-align:left;width:400px;padding:0% 0 2% 0%;height:30%;margin-bottom:0px;list-style-type:none;li{width:100%;color:#ffffff;margin-bottom:16px;}}"]),v=(0,o.default)("p",{},void 0,"Params"),y=(0,o.default)("p",{},void 0,"Header"),b=(0,o.default)(p.NoData,{}),x=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.titleClick=function(e){(0,f.default)(e),s.default.success("\u590d\u5236\u6210\u529f\uff01")},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.requestConfig.size>0?this.props.requestConfig.toJS():null,a=this.props.height;return(0,o.default)(g,{style:{height:a?a+"px":"350px"}},void 0,t?(0,o.default)("div",{},void 0,(0,o.default)("ul",{},void 0,v,Object.keys(t.data).map((function(a){var s="string"!=typeof t.data[a]&&"object"==(0,n.default)(t.data[a])?JSON.stringify(t.data[a]):t.data[a];return(0,o.default)("li",{title:"\u5355\u51fb\u53ef\u590d\u5236",onClick:function(){e.titleClick(s)}},a,(0,o.default)(p.LineWrap,{title:a+' = "'+s+'"',lineClampNum:1}))}))),(0,o.default)("ul",{},void 0,(0,o.default)("p",{},void 0,t.method?t.method.toUpperCase():""),(0,o.default)("li",{title:"\u5355\u51fb\u53ef\u590d\u5236",onClick:function(){e.titleClick(t.url)}},void 0,(0,o.default)(p.LineWrap,{title:_.get(this.props.data,"apiDefinition.url","\u7a7a"),lineClampNum:1}))),(0,o.default)("ul",{},void 0,y,Object.keys(t.headers).map((function(a){var n=t.headers[a];return"string"==typeof n&&(0,o.default)("li",{title:"\u5355\u51fb\u53ef\u590d\u5236",onClick:function(){e.titleClick(n)}},a,(0,o.default)(p.LineWrap,{title:n,lineClampNum:1}))})))):b)},t}(l.default.PureComponent);t.default=(0,c.connect)((function(e){return{requestConfig:(0,m.selectRequestConfig)(e)}}))(x)},"./src/module/platFeaturesManage/component/ResponsePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ResponsePageDom=void 0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(f(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=f(a("./node_modules/react-json-view/dist/main.js")),p=a("./src/module/platFeaturesManage/component/display_form/util.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=t.ResponsePageDom=d.default.div.withConfig({displayName:"ResponsePage__ResponsePageDom",componentId:"sc-14gpcyp-0"})(["width:100%;overflow:auto;.object-size{display:none;}span{color:#ffffff;font-size:14px;}"]),h=(0,n.default)(l.NoData,{}),g=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.handleRespBody=function(e){_.isObject(e)&&Object.keys(e).map((function(t){var a=_.get(e,t);_.isString(a)&&((0,p.isJSON)(a)?a=JSON.parse(a):_.size(a)>200&&(a=a.substring(0,20)+"......")),_.isObject(a)&&n.handleRespBody(a),_.set(e,t,a)}))},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props.recognitionData&&this.props.recognitionData.size>0?this.props.recognitionData.toJS():null;_.isObject(e)&&this.handleRespBody(e);var t=this.props.height;return(0,n.default)(m,{style:{height:t?t+"px":"350px"}},void 0,e?(0,n.default)("div",{},void 0,(0,n.default)(c.default,{src:e})):h)},t}(i.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(g)},"./src/module/platFeaturesManage/component/ResultPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ResultPageDom=void 0;var n=f(a("./node_modules/antd/es/spin/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/spin/style/index.js");var d=f(a("./node_modules/react/index.js")),l=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(f(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=f(a("./src/module/platFeaturesManage/component/ReasoningResult.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=t.ResultPageDom=l.default.div.withConfig({displayName:"ResultPage__ResultPageDom",componentId:"sc-15h35fo-0"})(["width:100%;overflow:hidden;.ant-table-wrapper{zoom:1;width:99%;}.object-size{display:none;}.result-comp{margin-bottom:10px;}.ant-progress-text{color:#ffff;}.prop-grid{width:99%;.ant-progress-outer{width:90%;}tr{width:100%;th,td{padding:8px 8px;background:#373a46;font-weight:normal;color:#ffffff;}th{text-align:left;}}}ul{padding-left:0;text-align:left;width:100%;margin-bottom:10px;list-style-type:none;li{width:100%;display:flex;float:left;color:#ffffff;margin-bottom:10px;font-size:12px;span{margin-left:2%;}}}"]),h=(0,o.default)(n.default,{size:"large"}),g=(0,o.default)(u.NoData,{}),v=function(e){function t(a){return(0,s.default)(this,t),(0,r.default)(this,e.call(this,a))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.data,a=e.recognitionData,n=e.height,s=e.recognitionDataLoading,r=_.get(t,"reasoningResults",null),i=_.get(t,"apiDefinition",null);return s?(0,o.default)("div",{style:{textAlign:"center"}},void 0,h):(0,o.default)(m,{style:{height:n?n+"px":"350px"}},void 0,r&&r.length>0&&i?(0,o.default)(p.default,{data:a,apiDef:i,reasoningResults:r}):g)},t}(d.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(v)},"./src/module/platFeaturesManage/component/display_form/DisplayImage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/prop-types/index.js")),o=r(a("./src/containers/toJS.jsx")),s=r(a("./src/module/platFeaturesManage/component/event.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=function(e){var t=e.respData,a=e.config;if(_.isNil(t)||_.isEmpty(t)||!a)return null;var n=_.get(t,a.dataPath);try{if(!a.dataMapping||!_.isObject(a.dataMapping))throw"dataMapping\u4e0d\u6b63\u786e";var o=_.get(n,a.dataMapping.picXpath);s.default.emit("APP_SCENE:DISPLAY_IMG","data:image/jpg;base64,"+o)}catch(e){console.error("\u56fe\u50cf\u5750\u6807\u89e3\u6790\u9519\u8bef",e)}return null};i.propTypes={respData:n.default.any,config:n.default.object},t.default=(0,o.default)(i)},"./src/module/platFeaturesManage/component/display_form/PicMark.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(i(a("./node_modules/react/index.js")),i(a("./node_modules/prop-types/index.js")),i(a("./src/containers/toJS.jsx"))),s=a("./src/module/platFeaturesManage/component/display_form/util.js"),r=i(a("./src/module/platFeaturesManage/component/event.js"));function i(e){return e&&e.__esModule?e:{default:e}}var d=["#2296F3","#31C971","#907EEC","#FFC107","#F34871","#9C0D71","#2262F3","#87B03A","#AE50DD","#FFC107","#6640F8","#3AA5B8"];t.default=(0,o.default)((function(e){var t=e.respData,a=e.config;if(_.isNil(t)||_.isEmpty(t)||!a)return null;try{var o=(0,s.preHandleData)(t,a.dataPath,a.dataConvert);if(_.isString(o))return(0,n.default)("div",{style:{color:"#fff"}},void 0,o);var i=a.dataMapping;if(!_.isArray(i)||_.size(i)<1)throw"\u672a\u914d\u7f6edataMapping";var l=_.isArray(o)?o:[o],u=i[0].markTitleXpath,c=!0===i[0].relativeCoord,p=i[0].markCoordXpath,f=i[0].colorValueXpath,m=i[0].colorByValue,h=i[0].colorMap,g={},v=[],y=l.map((function(e,t){var a=_.get(e,u),n=_.get(e,f),o=_.get(e,p.startX),s=_.get(e,p.startY),r=_.get(e,p.endX),i=_.get(e,p.endY),l=_.get(e,p.width),y=_.get(e,p.height),b={__id:t,relativeCoord:c,t:a,x:o,y:s,w:l||r-o,h:y||i-s};if(_.includes(v,n)||v.push(n),_.isNil(h)&&!0===m){var x=v.indexOf(n);g[t]=d[x>=11?x%11:x]}else g[t]=_.get(h,n);return!!(b.x||b.y||b.w||b.h)&&b}));return r.default.emit("APP_SCENE:MARK_RECT",y.filter(Boolean),g),null}catch(e){return console.error("\u56fe\u50cf\u5750\u6807\u89e3\u6790\u9519\u8bef",e),null}}))},"./src/module/platFeaturesManage/component/display_form/PropGrid.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(i(a("./node_modules/react/index.js")),a("./src/components/index.js")),s=(i(a("./node_modules/prop-types/index.js")),a("./src/module/platFeaturesManage/component/display_form/util.js")),r=i(a("./src/containers/toJS.jsx"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)((function(e){var t=e.respData,a=e.config;if(_.isNil(t)||_.isEmpty(t)||!a)return null;try{var r=(0,s.preHandleData)(t,a.dataPath,a.dataConvert);if(!a.dataMapping||0===_.size(a.dataMapping))throw"\u672a\u914d\u7f6edataMapping";var i=_.isArray(a.dataMapping)?a.dataMapping[0]:a.dataMapping,d=_.get(i,"labelXpath","$key"),l=_.get(i,"label",""),u=_.get(i,"value.dicMap",{}),c=_.get(i,"value",{xpath:"$value"});return _.isArray(r)||(r=function(e){var t=[],a=[];for(var n in e)t.push(n),a.push(e[n]);for(var o=0,s=a.length;o<s;o++)for(var r=0;r<s-o;r++){var i=void 0,d=void 0;a[r]<a[r+1]&&(d=a[r],a[r]=a[r+1],a[r+1]=d,i=t[r],t[r]=t[r+1],t[r+1]=i)}for(var l={},u=0;u<a.length;u++)l[""+t[u]]=a[u];return l}(r)),(0,n.default)("table",{className:"prop-grid"},void 0,(0,n.default)("tbody",{},void 0,_.isArray(r)&&r.map((function(e,t){var a="$value"===c.xpath?_.get(Object.values(e),0):_.get(e,c.xpath);return!_.isNil(e)&&(0,n.default)("tr",{},t,(0,n.default)("th",{style:{fontSize:14,width:150}},void 0,(0,n.default)(o.LineWrap,{placement:"topLeft",title:"$key"===d?_.get(Object.keys(e),0)+" \uff1a":_.get(e,d,l)+" \uff1a",lineClampNum:1})),(0,n.default)("td",{},void 0,(0,s.renderUi)((0,s.getFormatValue)(_.get(u,a,a),c.format),c.uiType)))})).filter(Boolean),!_.isArray(r)&&Object.keys(r).map((function(e){var t="$value"===c.xpath?r[e]:_.get(r[e],c.xpath);return(0,n.default)("tr",{},e,(0,n.default)("th",{style:{fontSize:14,width:150}},void 0,(0,n.default)(o.LineWrap,{placement:"topLeft",title:"$key"===d?e+" \uff1a":_.get(r,d,l)+" \uff1a",lineClampNum:1})),(0,n.default)("td",{},void 0,(0,s.renderUi)((0,s.getFormatValue)(_.get(u,t,t),c.format),c.uiType)))}))))}catch(e){return(0,n.default)("div",{style:{color:"#fff"}},void 0,e)}}))},"./src/module/platFeaturesManage/component/display_form/StatGrid.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=i(a("./node_modules/babel-runtime/helpers/jsx.js")),o=(i(a("./node_modules/react/index.js")),a("./src/components/index.js")),s=(i(a("./node_modules/prop-types/index.js")),a("./src/module/platFeaturesManage/component/display_form/util.js")),r=i(a("./src/containers/toJS.jsx"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)((function(e){var t=e.respData,a=e.config;if(_.isNil(t)||_.isEmpty(t)||!a)return null;try{var r=(0,s.preHandleData)(t,a.dataPath);if(!a.dataMapping||0===_.size(a.dataMapping))throw"\u672a\u914d\u7f6edataMapping";var i=a.dataMapping;return(0,n.default)("table",{className:"prop-grid"},void 0,(0,n.default)("tbody",{},void 0,_.isArray(i)&&i.map((function(e,t){var a=_.get(e,"label"),i=_.get(r,_.get(e,"value.xpath")),d=_.get(e,"value.dicMap",{});return(0,n.default)("tr",{},t,(0,n.default)("th",{style:{fontSize:14,width:150}},void 0,(0,n.default)(o.LineWrap,{title:a,lineClampNum:1})),(0,n.default)("td",{style:{fontSize:14}},void 0,(0,n.default)("pre",{style:{margin:0}},void 0,(0,s.renderUi)((0,s.getFormatValue)(_.get(d,_.toString(i),i),_.get(e,"value.format")),_.get(e,"value.uiType")))))}))))}catch(e){return(0,n.default)("div",{style:{color:"#fff"}},void 0,e)}}))},"./src/module/platFeaturesManage/component/display_form/TableGrid.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/extends.js")),o=c(a("./node_modules/babel-runtime/helpers/jsx.js")),s=c(a("./node_modules/antd/es/table/index.js"));a("./node_modules/antd/es/table/style/index.js");c(a("./node_modules/react/index.js"));var r=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),i=(c(a("./node_modules/prop-types/index.js")),c(a("./node_modules/lodash/lodash.js"))),d=c(a("./src/containers/toJS.jsx")),l=a("./src/module/platFeaturesManage/component/display_form/util.js"),u=c(a("./src/module/platFeaturesManage/component/event.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=(0,r.default)(s.default).withConfig({displayName:"TableGrid__TableStyled",componentId:"sc-1r5hs0n-0"})([".ant-table-small{border:none;& > .ant-table-title{border-bottom:1px solid #757474;}}.ant-table-small > .ant-table-content .ant-table-header{background-color:rgb(50,52,64);}.ant-table-fixed-header > .ant-table-content > .ant-table-scroll > .ant-table-body{position:relative;background:rgb(50,52,64);padding-bottom:25px;}.ant-table-thead > tr > th,.ant-table-tbody > tr > td{padding:16px 16px;border-bottom:1px solid #757474;color:#ffffff;font-size:14px;transition:all 0.3s,border 0s;}.ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td{background-color:#4f5361;}.ant-table-thead > tr:first-child > th:first-child{border-top-left-radius:0;}.ant-table-thead > tr:first-child > th:last-child{border-top-right-radius:0;}"]),f=function(e){var t=i.default.get(e,"dataMapping");if(!i.default.isArray(t))throw"\u5c55\u793a\u8868\u683c\u65f6,dataMapping \u5c5e\u6027\u5fc5\u987b\u4e3a\u6570\u7ec4";return t.map((function(e,t){return(0,n.default)({title:i.default.get(e,"columnName","\u672a\u914d\u7f6e"),dataIndex:"col-"+t},i.default.get(e,"width")?{width:i.default.get(e,"width")}:{},{render:function(t){var a=(0,l.getFormatValue)(t,i.default.get(e,"format"));return""!==i.default.trim(i.default.get(e,"uiType"),"")?(0,l.renderUi)(a,i.default.get(e,"uiType")):a}})}))},m=function(e,t,a){var n=i.default.get(t,"dataMapping");return e.map((function(e,t){return n.reduce((function(n,o,s){n.row_key=""+t;var r=void 0;if(r=i.default.startsWith(o.xpath,"/")?i.default.get(a,o.xpath.substring(1)+"."+t):""===i.default.trim(o.xpath)||"$INDEX"===o.xpath?t+1:""===i.default.trim(o.xpath)||"$VALUE"===o.xpath?e:i.default.get(e,o.xpath),i.default.isObject(o.dicMap))if(i.default.isPlainObject(r)){var d={};i.default.each(Object.keys(r),(function(e){d[i.default.get(o.dicMap,e,e)]=i.default.get(o.dicMap,r[e],r[e])})),r=d}else{var l=i.default.get(o.dicMap,r);r=i.default.isNil(l)?r:l}return n["col-"+s]=r,n}),{})}))};t.default=(0,d.default)((function(e){var t=e.respData,a=e.config;if(i.default.isNil(t)||i.default.isEmpty(t)||!a)return null;try{var n=(0,l.preHandleData)(t,a.dataPath,a.dataConvert);if(!i.default.isArray(n))throw"\u8fd4\u56de\u6570\u636e\u7ed3\u679c"+a.dataPath+"\u4e0d\u6b63\u786e\uff0c\u5fc5\u987b\u4e3a\u6570\u7ec4\u7ed3\u6784";var s=f(a),r=m(n,a,t);return(0,o.default)(p,{onRow:function(e){return{onMouseEnter:function(){!0===i.default.get(a,"hoverRect")&&function(e){u.default.emit("APP_SCENE:HIGHLIGHT_RECT",i.default.get(e,"row_key"))}(e)},onMouseLeave:function(){!0===i.default.get(a,"hoverRect")&&u.default.emit("APP_SCENE:HIGHLIGHT_RECT",null)}}},className:"result-comp",size:"small",dataSource:r,rowKey:"row_key",bordered:!1,pagination:!1,columns:s,scroll:{y:350}})}catch(e){return(0,o.default)("div",{style:{color:"#fff"}},void 0,e)}}))},"./src/module/platFeaturesManage/component/display_form/index.js":function(e,t,a){"use strict";t.__esModule=!0,t.DISPLAY_MAP=t.util=void 0;var n=l(a("./src/module/platFeaturesManage/component/display_form/TableGrid.jsx")),o=l(a("./src/module/platFeaturesManage/component/display_form/PropGrid.jsx")),s=l(a("./src/module/platFeaturesManage/component/display_form/PicMark.jsx")),r=l(a("./src/module/platFeaturesManage/component/display_form/StatGrid.jsx")),i=l(a("./src/module/platFeaturesManage/component/display_form/DisplayImage.jsx")),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a("./src/module/platFeaturesManage/component/display_form/util.js"));function l(e){return e&&e.__esModule?e:{default:e}}t.util=d;t.DISPLAY_MAP={PROP_GRID:o.default,TABLE:n.default,PIC_MARK:s.default,STAT_GRID:r.default,DISPLAY_PIC:i.default}},"./src/module/platFeaturesManage/component/display_form/util.js":function(e,t,a){"use strict";t.__esModule=!0,t.hexToRgba=t.renderUi=t.preHandleData=t.getFormatValue=t.isJSON=t.getNum=t.ProgressDom=t.TagStyle=void 0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/extends.js")),s=u(a("./node_modules/babel-runtime/helpers/typeof.js")),r=u(a("./node_modules/antd/es/progress/index.js")),i=u(a("./node_modules/antd/es/tag/index.js"));a("./node_modules/antd/es/progress/style/index.js"),a("./node_modules/antd/es/tag/style/index.js");u(a("./node_modules/react/index.js"));var d=u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=u(a("./node_modules/numeral/numeral.js"));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.TagStyle=(0,d.default)(i.default).withConfig({displayName:"util__TagStyle",componentId:"sc-1tpuwe8-0"})(["&.ant-tag{margin-bottom:5px;color:#eef0f3;background:#3d404d;border-color:#3b4246;}"]),p=t.ProgressDom=(0,d.default)(r.default).withConfig({displayName:"util__ProgressDom",componentId:"sc-1tpuwe8-1"})([".ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:#9d9d9d;border-radius:100px;}.ant-progress-bg{position:relative;background-color:#0095fb;border-radius:100px;-webkit-transition:all 0.4s cubic-bezier(0.08,0.82,0.17,1) 0s;-o-transition:all 0.4s cubic-bezier(0.08,0.82,0.17,1) 0s;transition:all 0.4s cubic-bezier(0.08,0.82,0.17,1) 0s;}"]),f=(t.getNum=function(e){return"string"!==typeof e?(Math.round(1e4*e)/100).toFixed(2):0},t.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,s.default)(t))||!t)}catch(e){return!1}});t.getFormatValue=function(e,t){var a=void 0;if(!_.isEmpty(t)){if(_.isArray(e))return e.map((function(e){return _.isObject(e)?e:(0,l.default)(e).format(t,Math.floor)}));if(_.isObject(e)){return _.each(Object.keys(e),(function(e){a[e]=_.isObject(a[e])?a[e]:(0,l.default)(a[e]).format(t,Math.floor)})),{}}a=(0,l.default)(e).format(t,Math.floor)}return a||e},t.preHandleData=function(e,t,a){e.result&&"string"==typeof e.result&&f(e.result)&&(e.result=JSON.parse(e.result)),e.Result&&"string"==typeof e.Result&&f(e.Result)&&(e.Result=JSON.parse(e.Result));var n=void 0;if(n=""==_.trim(t)?e:_.get(e,t,null),_.isArray(a)&&a.map((function(e){"TO_JSON"===e&&n&&"string"==typeof n&&f(n)&&(n=JSON.parse(n)),"MAP_TO_LIST"===e&&_.isPlainObject(n)&&_.keys(n,(function(e){return(0,o.default)({__id:e},_.get(n,e))}))})),n&&"string"===typeof n&&(n=f(n)?JSON.parse(_gridData):e),!_.isObject(n)&&!_.isArray(n))throw"\u6570\u636e\u7ed3\u679c"+t+"\u4e0d\u6b63\u786e\uff0c\u4e0d\u662fjson\u5bf9\u8c61";return n},t.renderUi=function(e,t){if("PROGRESS_BAR"===t)return(0,n.default)(p,{percent:parseFloat(e)});if("TAG"===t){if(_.isString(e))return(0,n.default)(c,{className:"ai-tag"},void 0,"$",e);if(_.isPlainObject(e))return(0,n.default)("div",{},void 0,Object.keys(e).map((function(t){return(0,n.default)(c,{},t,t+" : "+_.get(e,t))})))}return _.isArray(e)||_.isObject(e)?JSON.stringify(e):e},t.hexToRgba=function(e,t){return"rgba("+parseInt("0x"+e.slice(1,3))+","+parseInt("0x"+e.slice(3,5))+","+parseInt("0x"+e.slice(5,7))+","+t+")"}},"./src/module/platFeaturesManage/component/event.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./node_modules/node-libs-browser/node_modules/events/events.js");t.default=new n.EventEmitter},"./src/module/platFeaturesManage/modules/DevDocs.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DevDocsDom=void 0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/utils/history.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=t.DevDocsDom=d.default.div.withConfig({displayName:"DevDocs__DevDocsDom",componentId:"sc-8841gi-0"})(["background:#f4f7ff;width:100%;height:30%;left:0;bottom:0;float:left;display:list-item;h1{font-size:24px;color:#395377;letter-spacing:4px;padding:2% 0 10px 9.3%;}ul{padding:0% 0 10% 9.3%;list-style:none;li{cursor:pointer;float:left;margin-right:10%;span{font-size:14px;color:#6b7e99;letter-spacing:0;line-height:20px;&:hover{color:#00c1de;}}}}"]),f=(0,n.default)("h1",{},void 0,"\u5f00\u53d1\u6587\u6863"),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.openNavigate=function(e){(0,u.navigateTo)(e.url+"="+n.props.platFormFeaturesConfig.title)},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data;return(0,n.default)(p,{},void 0,f,(0,n.default)("ul",{},void 0,t.map((function(t,a){return(0,n.default)("li",{onClick:function(){e.openNavigate(t)}},a,(0,n.default)("span",{},void 0,t.name))}))))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(m)},"./src/module/platFeaturesManage/modules/FuncDemo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FuncDemoRight=t.FuncDemoLeft=t.FuncDemoDom=void 0;var n=I(a("./node_modules/antd/es/upload/index.js")),o=I(a("./node_modules/babel-runtime/helpers/extends.js")),s=I(a("./node_modules/antd/es/button/index.js")),r=I(a("./node_modules/antd/es/col/index.js")),i=I(a("./node_modules/antd/es/row/index.js")),d=I(a("./node_modules/antd/es/spin/index.js")),l=I(a("./node_modules/babel-runtime/helpers/jsx.js")),u=I(a("./node_modules/antd/es/message/index.js")),c=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=I(a("./node_modules/babel-runtime/helpers/inherits.js")),m=I(a("./node_modules/antd/es/input/index.js")),h="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\platFeaturesManage\\modules\\FuncDemo.jsx";a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var g=I(a("./node_modules/react/index.js")),v=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),_=(I(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),y=a("./src/utils/constants.js"),b=a("./src/utils/authPermit.js"),x=I(a("./node_modules/react-json-view/dist/main.js")),C=a("./src/redux/selectors/sysManager/platFormManager.js"),j=a("./node_modules/@ant-design/icons/es/index.js"),S=a("./src/redux/reducers/sysManager/platFormManager.js");function I(e){return e&&e.__esModule?e:{default:e}}var T=m.default.TextArea,w=t.FuncDemoDom=v.default.div.withConfig({displayName:"FuncDemo__FuncDemoDom",componentId:"sc-1sf5tyb-0"})(["float:left;margin-bottom:5%;width:100%;.ant-upload.ant-upload-select{display:inline-block;width:100%;}h1{margin:5% 0 0 7%;font-size:24px;color:#395377;letter-spacing:4px;}"]),E=t.FuncDemoLeft=v.default.div.withConfig({displayName:"FuncDemo__FuncDemoLeft",componentId:"sc-1sf5tyb-1"})([".ant-upload-list{box-sizing:border-box;margin:0;padding:0;min-height:25px;color:rgba(0,0,0,0.65);font-size:12px;font-variant:tabular-nums;line-height:1.5;list-style:none;font-feature-settings:'tnum';zoom:1;width:330px;margin-top:-5%;margin-left:50px;margin-bottom:1%;}float:left;margin:2% 0 0 10%;width:45%;.txtSpan{font-size:12px;color:#a2b0c4;letter-spacing:0;line-height:14px;margin-left:50px;}"]),D=t.FuncDemoRight=v.default.div.withConfig({displayName:"FuncDemo__FuncDemoRight",componentId:"sc-1sf5tyb-2"})([".json-div{margin:2%;opacity:0.39;border:1px solid #e1e1e1;box-shadow:inset 0 1px 8px 0 rgba(0,0,0,0.14);height:auto;width:auto;overflow:auto;}float:right;background:#ffffff;box-shadow:0 1px 26px 0 rgba(0,0,0,0.13),10px 1px 50px 0 rgba(0,0,0,0.04);border-radius:4px;width:40%;margin-right:3%;height:420px;ul{height:20%;padding-top:2%;list-style:none;li{float:left;margin-right:80px;&:hover{.title-span{color:#475669;}}&.active{.title-span{color:#475669;}}}.title-span{cursor:pointer;margin-left:10px;font-size:14px;color:#dde0e5;letter-spacing:0;&:hover{color:#475669;}&.active{color:#475669;}}}"]),M=(0,l.default)("h1",{},void 0,"\u529f\u80fd\u6f14\u793a"),k=(0,l.default)(j.UploadOutlined,{}),P=(0,l.default)("span",{className:"txtSpan"},void 0,"\u6ce8\u518c\u56fe\u7247\u4e3a\u4e00\u5f20\u56fe\u7247\u5bf9\u5e94\u4e00\u4e2aID\uff0c\u5efa\u8bae\u56fe\u7247\u4e3a\u5355\u4eba\u5934\u50cf"),L=(0,l.default)(j.UploadOutlined,{}),N=(0,l.default)("span",{className:"txtSpan"},void 0,"\u53ef\u4ee5\u662f\u5355\u4eba\u6216\u8005\u591a\u4eba\u7684\u56fe\u7247"),A=(0,l.default)("span",{className:"title-span"},void 0,"Request"),R=(0,l.default)("span",{className:"title-span"},void 0,"Response"),F=function(e){function t(a){(0,c.default)(this,t);var n=(0,p.default)(this,e.call(this,a));return n.onClickType=function(e){n.setState({returnType:e})},n.keyTabPathUpload=function(e){var t=!0;return"png"!==e.name.substring(e.name.lastIndexOf(".")+1,e.name.length)&&(t=!1,u.default.error("\u53ea\u652f\u6301png\uff0c\u683c\u5f0f\u6587\u4ef6")),t},n.getImgBase64=function(e,t){var a=new FileReader;a.readAsDataURL(e),a.onload=function(e){"function"===typeof t&&t(e.target.result.substring(e.target.result.indexOf(",")+1,e.target.result.length))}},n.getInputBlur=function(e,t){"picture_id"===t&&n.setState({picture_id:e})},n.state={registerList:[],discernList:[],returnType:"request",requestData:{},responseData:{},result:"",_this:n,picture_id:a.data?a.data.appId:"",loading:!1},n.newRegisterData={app_id:a.data.appId,token:(0,b.getToken)(),data:[]},n.newDiscernData={app_id:a.data.appId,token:(0,b.getToken)(),data:[]},n.registerData={app_id:a.data.appId,token:(0,b.getToken)(),data:[]},n.discernData={app_id:a.data.appId,token:(0,b.getToken)(),data:[]},n}return(0,f.default)(t,e),t.getDerivedStateFromProps=function(e,t){if(e.pictureRegisterData&&e.pictureRegisterData.size>0)return{responseData:e.pictureRegisterData.toJS(),result:e.pictureRegisterData.toJS().putprocess_info,loading:!1};if(e.pictureRecognitionData&&e.pictureRecognitionData.size>0){var a=t._this.newDiscernData;a.data=[];for(var n=0;n<t.discernList.length;n++)a.data.push({picture_id:t.picture_id,picture_data:t.discernList[n].name,api_type:"11"});return{requestData:a,responseData:e.pictureRecognitionData.toJS(),result:e.pictureRecognitionData.toJS().putprocess_info,loading:!1}}},t.prototype.render=function(){var e=this,t=this,a={name:"file",headers:{Authorization:b.getToken},beforeUpload:function(e,a){var n=!1;t.discernData.data=[];for(var o=0;o<a.length&&(n=t.keyTabPathUpload(a[o]));o++)t.setState({discernList:n?a:[],loading:!0}),t.getImgBase64(a[o],(function(e){t.discernData.data.push({picture_id:t.state.picture_id,picture_data:e,api_type:"11"}),t.discernData.data.length===a.length&&t.props.dispatch(S.platFormActions.getPictureRecognitionRequest(t.discernData))}));return!1},onChange:function(e){"removed"===e.file.status&&t.setState({requestData:{},discernList:e.fileList,responseData:{}})}},u={name:"file",headers:{Authorization:b.getToken},beforeUpload:function(e){var a=t.keyTabPathUpload(e);return t.setState({registerList:a?[e]:[]}),t.getImgBase64(e,(function(a){t.registerData.data=[],t.newRegisterData.data=[],t.registerData.data.push({picture_id:t.state.picture_id,picture_data:a,api_type:"11"}),t.newRegisterData.data.push({picture_id:t.state.picture_id,picture_data:e.name,api_type:"11"}),t.props.dispatch(S.platFormActions.getPictureRegisterRequest(t.registerData)),t.setState({requestData:t.newRegisterData,loading:!0})})),!1},onChange:function(e){"removed"===e.file.status&&t.setState({requestData:{},registerList:[],responseData:{}})}};return(0,l.default)(w,{},void 0,(0,l.default)(d.default,{tip:"Loading...",spinning:this.state.loading},void 0,M,(0,l.default)(E,{},void 0,(0,l.default)(i.default,{},void 0,(0,l.default)(r.default,{},void 0,(0,l.default)("span",{style:{color:"#475669"}},void 0,"\u6ce8\u518c :"),(0,l.default)(m.default,{style:{marginLeft:"20px",width:"350px"},placeholder:"\u8f93\u5165\u4eba\u8138ID",defaultValue:this.state.picture_id,onBlur:function(t){return e.getInputBlur(t.target.value,"picture_id")}}))),(0,l.default)(i.default,{style:{marginTop:15}},void 0,(0,l.default)(r.default,{span:24},void 0,g.default.createElement(n.default,(0,o.default)({fileList:this.state.registerList,style:{width:"100%",marginLeft:19}},u,{__source:{fileName:h,lineNumber:300}}),(0,l.default)(s.default,{type:"primary",style:{width:150,marginLeft:380}},void 0,k,"\u4e0a\u4f20\u4eba\u8138\u56fe\u7247\u6ce8\u518c")),P)),(0,l.default)(i.default,{style:{marginTop:15}},void 0,(0,l.default)(r.default,{span:24},void 0,(0,l.default)("div",{style:{marginTop:8,position:"absolute"}},void 0,(0,l.default)("span",{style:{color:"#475669"}},void 0,"\u5339\u914d :")),g.default.createElement(n.default,(0,o.default)({multiple:!0,fileList:this.state.discernList,style:{width:"100%",marginLeft:19}},a,{__source:{fileName:h,lineNumber:323}}),(0,l.default)(s.default,{type:"primary",style:{width:150,marginLeft:380}},void 0,L,"\u4e0a\u4f20\u5f85\u5339\u914d\u4eba\u8138\u56fe\u7247")),N)),(0,l.default)(i.default,{},void 0,(0,l.default)(r.default,{style:{marginTop:"6%"},span:24},void 0,(0,l.default)("span",{style:{marginLeft:-23}},void 0,"\u5339\u914d\u7ed3\u679c :"),(0,l.default)(T,{placeholder:"ID\uff1a13928776354",value:this.state.result,style:{marginLeft:"20px",width:500,marginRight:10,min:0,max:450,color:"#475669"},rows:6})))),(0,l.default)(D,{},void 0,(0,l.default)("ul",{},void 0,(0,l.default)("li",{onClick:function(){e.onClickType("request")},className:"request"===this.state.returnType?"active":""},void 0,(0,l.default)("img",{style:{cursor:"pointer"},src:(0,y.buildPublicResUrl)("/images/platform/jieguo.png")}),A),(0,l.default)("li",{onClick:function(){e.onClickType("response")},className:"request"===this.state.returnType?"":"active"},void 0,(0,l.default)("img",{style:{cursor:"pointer"},src:(0,y.buildPublicResUrl)("/images/platform/jieguo.png")}),R)),(0,l.default)("div",{className:"json-div"},void 0,(0,l.default)(x.default,{style:{height:295},src:"response"===this.state.returnType?this.state.responseData:this.state.requestData})))))},t}(g.default.PureComponent);t.default=(0,_.connect)((function(e){return{pictureRegisterData:(0,C.selectPictureRegisterData)(e),pictureRecognitionData:(0,C.selectPictureRecognitionData)(e)}}))(F)},"./src/module/platFeaturesManage/modules/FuncFeatures.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FuncFeaturesDom=void 0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./node_modules/@ant-design/icons/es/index.js"),c=a("./src/utils/constants.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=t.FuncFeaturesDom=d.default.div.withConfig({displayName:"FuncFeatures__FuncFeaturesDom",componentId:"sc-1uwy6zh-0"})(["height:50%;float:left;width:100%;display:flex;.img-LeftDiv{margin:3% 0px 4% 5%;float:left;width:50%;text-align:center;}.img-RightDiv{padding:5% 0% 0 7%;float:right;width:45%;ul{list-style:none;li{span{font-family:MicrosoftYaHei;font-size:16px;letter-spacing:0;line-height:35px;}}}h1{margin-left:3%;font-size:24px;letter-spacing:4px;}}"]),m=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data;return(0,n.default)(f,{style:{background:t&&t.background?this.props.data.background:"#f5f5f6"}},void 0,(0,n.default)("div",{className:"img-LeftDiv"},void 0,(0,n.default)("img",{src:(0,c.buildPublicResUrl)("/images/platform/"+t.bgPic+".png")})),(0,n.default)("div",{className:"img-RightDiv"},void 0,(0,n.default)("h1",{style:{color:this.props.data.fontColor?"#395377":"#FFFFFF"}},void 0,"\u529f\u80fd\u7279\u6027"),(0,n.default)("ul",{},void 0,t.funcFeatures.map((function(t,a){return(0,n.default)("li",{style:{color:e.props.data.fontColor?"#6b7e99":"#FFFFFF"}},a,(0,n.default)(u.CheckOutlined,{style:{color:"#2BDDFE",marginRight:5}}),(0,n.default)("span",{},void 0,t))})))))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(m)},"./src/module/platFeaturesManage/modules/ImageConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/react/index.js")),d=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),l=a("./src/components/index.js"),u=m(a("./src/containers/toJS.jsx")),c=m(a("./src/module/platFeaturesManage/modules/ImageRecognitionPage.jsx")),p=a("./src/redux/reducers/sysManager/sceneDemoManager.js"),f=a("./src/redux/selectors/sysManager/sceneDemoManager.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=(0,u.default)(c.default),g=(0,n.default)(l.LoadingIndicator,{position:"relative"}),v=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(p.sceneDemoActions.resetSceneDemoInfo()),this.props.dispatch(p.sceneDemoActions.getSceneDemoInfoRequest(this.props.data.configId,"edit"))},t.prototype.render=function(){var e=this.props,t=e.sceneDemoInfoLoading,a=e.sceneDemoInfoEdit;return(0,n.default)("div",{},void 0,t?g:a&&(0,n.default)(h,{data:a,configId:_.get(a.toJS(),"configId","")}))},t}(i.default.PureComponent);t.default=(0,d.connect)((function(e){return{sceneDemoInfoEdit:(0,f.selectSceneDemoInfoEdit)(e),sceneDemoInfoLoading:(0,f.selectSceneDemoInfoLoading)(e)}}))(v)},"./src/module/platFeaturesManage/modules/ImageFaceConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=g(a("./node_modules/react/index.js")),l=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/components/index.js"),c=g(a("./src/module/platFeaturesManage/component/PersonFaceSign.jsx")),p=g(a("./src/containers/toJS.jsx")),f=g(a("./src/module/platFeaturesManage/modules/ImageRecognitionPage.jsx")),m=a("./src/redux/reducers/sysManager/sceneDemoManager.js"),h=a("./src/redux/selectors/sysManager/sceneDemoManager.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=i.default.TabPane,y=(0,p.default)(f.default),b=(0,n.default)(u.LoadingIndicator,{position:"relative"}),x=(0,n.default)(v,{tab:"\u4eba\u8138\u6ce8\u518c"},"2",(0,n.default)(c.default,{})),C=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.callback=function(e){"2"===e&&(n.props.dispatch(m.sceneDemoActions.resetGetFaceSignList()),n.props.dispatch(m.sceneDemoActions.getFaceSignListRequest())),n.setState({activeKey:e})},n.state={activeKey:"1"},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(m.sceneDemoActions.resetSceneDemoInfo()),this.props.dispatch(m.sceneDemoActions.getSceneDemoInfoRequest(this.props.data.configId,"edit"))},t.prototype.render=function(){var e=this.props,t=e.sceneDemoInfoLoading,a=e.sceneDemoInfoEdit;return(0,n.default)(i.default,{size:"large",activeKey:this.state.activeKey,onChange:this.callback},void 0,(0,n.default)(v,{tab:"\u4eba\u8138\u8bc6\u522b"},"1",t?b:a&&(0,n.default)(y,{data:a,configId:_.get(a.toJS(),"configId","")})),x)},t}(d.default.PureComponent);t.default=(0,l.connect)((function(e){return{sceneDemoInfoEdit:(0,h.selectSceneDemoInfoEdit)(e),sceneDemoInfoLoading:(0,h.selectSceneDemoInfoLoading)(e)}}))(C)},"./src/module/platFeaturesManage/modules/ImageRecognitionPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FuncTopDom=t.DiscernRightDom=t.ImageLeftDom=t.ImageRecognitionDom=void 0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/antd/es/message/index.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/message/style/index.js");var d=h(a("./node_modules/react/index.js")),l=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/redux/reducers/sysManager/platFormManager.js"),p=h(a("./src/module/platFeaturesManage/component/ImagePage.jsx")),f=h(a("./src/module/platFeaturesManage/component/DiscernPage.jsx")),m=a("./src/redux/selectors/sysManager/platFormManager.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=t.ImageRecognitionDom=l.default.div.withConfig({displayName:"ImageRecognitionPage__ImageRecognitionDom",componentId:"a7zbuh-0"})(["height:800px;display:flex;padding:32px;width:100%;display:flex;background-image:linear-gradient(270deg,#303643 0%,#303643 100%);border:4px solid #007dd8;border-radius:4px;"]),v=t.ImageLeftDom=l.default.div.withConfig({displayName:"ImageRecognitionPage__ImageLeftDom",componentId:"a7zbuh-1"})(["border:1px solid #007dd8;height:735px;float:left;border-radius:6px !important;width:650px;position:relative;margin-right:25px;.divTop{width:90%;position:absolute;border:0.5px solid #e2f9ff;margin-left:5%;margin-top:-1px;}.divLeft{position:absolute;border:0.5px solid #e2f9ff;left:0;height:90%;margin-left:-0.7px;margin-top:5%;}.divRight{position:absolute;border:0.5px solid #e2f9ff;right:0;height:90%;margin-right:-1.5px;margin-top:5%;}.divBottom{width:90%;position:absolute;border:0.5px solid #e2f9ff;bottom:0;margin-left:5%;margin-bottom:-1px;}"]),y=t.DiscernRightDom=l.default.div.withConfig({displayName:"ImageRecognitionPage__DiscernRightDom",componentId:"a7zbuh-2"})(["float:left;height:735px;flex:1;"]),b=t.FuncTopDom=l.default.div.withConfig({displayName:"ImageRecognitionPage__FuncTopDom",componentId:"a7zbuh-3"})(["text-align:center;padding:2% 4% 32px 4%;.centerDiv{background:#007dd8;width:2.3%;height:3px;margin-left:48.7%;margin-top:12px;margin-bottom:20px;}span{font-size:14px;color:#1f2d3d;letter-spacing:0;text-align:center;line-height:20px;}h1{font-size:24px;color:#1f2d3d;letter-spacing:5.67px;}"]),x=(0,n.default)("div",{className:"centerDiv"}),C=(0,n.default)("div",{className:"divTop"}),j=(0,n.default)("div",{className:"divLeft"}),S=(0,n.default)("div",{className:"divRight"}),I=(0,n.default)("div",{className:"divBottom"}),T=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.requestApiService=function(e,t,a){e.imageUrl!==n.state.config.imageUrl&&n.props.dispatch(c.platFormActions.resetRecognition()),e?(e.configId=n.props.configId,a?n.setState({config:e,base64Img:t||"",uniqueId:a}):n.setState({config:e,base64Img:t||""})):o.default.error("\u672a\u627e\u5230\u5bf9\u5e94apiDefinition\u53c2\u6570\uff01\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!")},n.state={base64Img:"",config:{}},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(c.platFormActions.resetRecognition());var e=_.get(this.props.data,"configJson",null);if(_.get(e,"apiDefinition",null)&&_.get(e,"sampleImages[0].imageThumb",null)){var t={apiDefinition:_.get(e,"apiDefinition",null),imageId:"",imageUrl:_.get(e,"sampleImages[0].imageUrl",null)};this.setState({config:t})}},t.prototype.componentWillUnmount=function(){this.props.dispatch(c.platFormActions.resetRecognition())},t.prototype.render=function(){var e=this,t=this.props,a=t.recognitionData,o=t.recognitionDataLoading,s=t.data,r=t.topHive,i=_.get(s,"configJson",null);return(0,n.default)("div",{},void 0,s&&(0,n.default)(b,{style:{display:!0===r?"none":""}},void 0,(0,n.default)("h1",{},void 0,s.configTitle),x,(0,n.default)("span",{},void 0,s.configDesc.indexOf("[")>0?s.configDesc.substring(0,s.configDesc.indexOf("[")):s.configDesc),s.configDesc.indexOf("[")>0&&(0,n.default)("div",{style:{padding:"10px 20% 10px 20%"}},void 0,s.configDesc.substring(s.configDesc.indexOf("[")+1,s.configDesc.length-1))),(0,n.default)(g,{},void 0,(0,n.default)(v,{},void 0,C,j,S,I,(0,n.default)(p.default,{uniqueId:this.state.uniqueId,config:this.state.config,base64Img:this.state.base64Img,data:i,configId:this.props.configId?this.props.configId:this.state.config.configId,recognitionDataLoading:o,requestApiService:function(t,a){return e.requestApiService(t,a)}})),(0,n.default)(y,{},void 0,(0,n.default)(f.default,{recognitionDataLoading:o,data:i,recognitionData:a,requestApiService:function(t,a,n){return e.requestApiService(t,a,n)}}))))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(e){return{recognitionDataLoading:(0,m.selectRecognitionDataLoading)(e),recognitionData:(0,m.selectRecognitionData)(e)}}))(T)},"./src/module/platFeaturesManage/modules/Section.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/helpers/jsx.js")),o=d(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=d(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=d(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js");d(i),d(a("./node_modules/prop-types/index.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=d(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"Section__SectionBox",componentId:"sc-1xwa7gm-0"})([""]),u=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(l,{},void 0,this.props.children)},t}(i.Component);t.default=u},"./src/module/platFeaturesManage/modules/TextConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/react/index.js")),d=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),l=a("./src/components/index.js"),u=m(a("./src/containers/toJS.jsx")),c=m(a("./src/module/platFeaturesManage/modules/TextRecognitionPage.jsx")),p=a("./src/redux/reducers/sysManager/sceneDemoManager.js"),f=a("./src/redux/selectors/sysManager/sceneDemoManager.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=(0,u.default)(c.default),g=(0,n.default)(l.LoadingIndicator,{position:"relative"}),v=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(p.sceneDemoActions.resetSceneDemoInfo()),this.props.dispatch(p.sceneDemoActions.getSceneDemoInfoRequest(this.props.data.configId,"edit"))},t.prototype.render=function(){var e=this.props.sceneDemoInfoLoading;return(0,n.default)("div",{},void 0,e?g:(0,n.default)(h,{data:this.props.sceneDemoInfoEdit}))},t}(i.default.PureComponent);t.default=(0,d.connect)((function(e){return{sceneDemoInfoEdit:(0,f.selectSceneDemoInfoEdit)(e),sceneDemoInfoLoading:(0,f.selectSceneDemoInfoLoading)(e)}}))(v)},"./src/module/platFeaturesManage/modules/TextRecognitionPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.FuncTopDom=t.DiscernRightDom=t.TextAreaDiv=t.TextLeftDom=t.TextRecognitionDom=void 0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/antd/es/upload/index.js")),s=j(a("./node_modules/babel-runtime/helpers/extends.js")),r=j(a("./node_modules/antd/es/spin/index.js")),i=j(a("./node_modules/babel-runtime/helpers/jsx.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=j(a("./node_modules/babel-runtime/helpers/inherits.js")),p=j(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var f=j(a("./node_modules/react/index.js")),m=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(j(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),g=a("./src/utils/authPermit.js"),v=a("./src/utils/constants.js"),y=j(a("./src/module/platFeaturesManage/component/MuchTextPage.jsx")),b=j(a("./src/module/platFeaturesManage/component/BottomResultPage.jsx")),x=a("./src/redux/reducers/sysManager/platFormManager.js"),C=a("./src/redux/selectors/sysManager/platFormManager.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=p.default.TextArea,I=t.TextRecognitionDom=m.default.div.withConfig({displayName:"TextRecognitionPage__TextRecognitionDom",componentId:"sc-11nuu7p-0"})(["height:700px;display:flex;background:#303643;padding:32px;border:3px transparent solid;border-radius:4px !important;width:100%;.ant-upload-list-item{position:relative;height:15px;margin-top:3px;font-size:10px;}.ant-upload-list-item-info .anticon-loading,.ant-upload-list-item-info .anticon-paper-clip{position:absolute;top:3px;font-size:10px;color:#fff;}.ant-upload-list-item .anticon-close{color:#fff;top:3px;}.ant-upload-list-item:hover .ant-upload-list-item-info{background-color:transparent;color:#395377;}.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item{background-color:transparent;color:#395377;}.ant-upload-list-item-info > span{display:block;color:#fff;}"]),T=t.TextLeftDom=m.default.div.withConfig({displayName:"TextRecognitionPage__TextLeftDom",componentId:"sc-11nuu7p-1"})(["border:1px solid #007dd8;height:630px;float:left;border-radius:6px !important;width:650px;position:relative;margin-right:25px;padding:16px;.bSkcTM textarea.ant-input{border-color:#e2f9ff;background-color:#232730;color:#fff;max-width:100%;font-size:14px;height:auto;min-height:32px;line-height:1.5;vertical-align:bottom;-webkit-transition:all 0.3s,height 0s;transition:all 0.3s,height 0s;padding-top:16px;}.divTop{width:565px;position:absolute;border:0.5px solid #e2f9ff;margin-left:25px;margin-top:-16.5px;}.divLeft{position:absolute;border:0.5px solid #e2f9ff;z-index:999;left:0;height:524px;margin-left:-1px;margin-top:31px;}.divRight{position:absolute;border:0.5px solid #e2f9ff;z-index:999;right:0;height:524px;margin-right:-1px;margin-top:31px;}.divBottom{width:565px;position:absolute;border:0.5px solid #e2f9ff;bottom:0;margin-left:25px;margin-bottom:-1px;}.RightDiv{width:100%;}.ant-input-search-button{width:100%;border-top-left-radius:0;border-bottom-left-radius:0;background:#303643;border-radius:0px 2px 2px 0px;border:1px solid #b9b9b9;}.ant-input-group-wrapper{display:inline-block;width:100%;text-align:start;vertical-align:top;margin-bottom:20px;}.bottomSpan{font-size:14px;color:#b9b9b9;letter-spacing:1px;line-height:14px;margin-top:1%;display:inline-block;}.buttonCss{color:#fff;border-radius:4px;width:15%;background:#007dd8;}.upLoadButtonCss{color:#395377;background-image:linear-gradient(270deg,#e0fbff 0%,#8ed2de 100%);border-radius:4px;}"]),w=t.TextAreaDiv=m.default.div.withConfig({displayName:"TextRecognitionPage__TextAreaDiv",componentId:"sc-11nuu7p-2"})(["textarea.ant-input{border-color:#9fc5cc;background-color:#000;color:#fff;max-width:100%;font-size:14px;height:auto;min-height:32px;line-height:1.5;vertical-align:bottom;transition:all 0.3s,height 0s;}"]),E=t.DiscernRightDom=m.default.div.withConfig({displayName:"TextRecognitionPage__DiscernRightDom",componentId:"sc-11nuu7p-3"})(["float:left;height:100%;flex:1;"]),D=t.FuncTopDom=m.default.div.withConfig({displayName:"TextRecognitionPage__FuncTopDom",componentId:"sc-11nuu7p-4"})(["text-align:center;padding:2% 4% 32px 4%;.centerDiv{background:#007dd8;width:2.3%;height:3px;margin-left:48.7%;margin-top:12px;margin-bottom:20px;}span{font-size:14px;color:#1f2d3d;letter-spacing:0;text-align:center;line-height:20px;}h1{font-size:24px;color:#1f2d3d;letter-spacing:5.67px;}"]),M=(0,i.default)("div",{className:"centerDiv"}),k=(0,i.default)("div",{className:"divTop"}),P=(0,i.default)("div",{className:"divLeft"}),L=(0,i.default)("div",{className:"divRight"}),N=(0,i.default)("div",{className:"divBottom"}),A=(0,i.default)(n.default,{className:"upLoadButtonCss",size:"large",type:"primary"},void 0,"\u4e0a\u4f20\u60c5\u611f\u6587\u4ef6"),R=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.requestApiService=function(e,t){var a=t;if("MUCH_TXT"===_.get(n.props.data,"sceneType")){var o=n.validateFuncs.muchTextPage;if(_.isFunction(o)){var s=o.call();a=[];for(var r=0;r<s.moduleData.length;r++)a.push(s.moduleData[r].txt)}}n.props.dispatch(x.platFormActions.resetRecognition()),e?n.props.dispatch(x.platFormActions.recognitionRequest({config:{apiDefinition:e,params:{imageId:"",imageUrl:"",sceneType:_.get(n.props.data,"sceneType","TXT"),text:a,uploadFile:n.filePath},configId:n.props.configId},dispatch:n.props.dispatch})):d.default.error("\u672a\u627e\u5230\u5bf9\u5e94apiDefinition\u53c2\u6570\uff01\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!")},n.onChange=function(e){var t=e.target.value;n.sampleText=t,n.setState({sampleText:t})},n.filePath="",n.state={fileList:[],sampleText:"TXT"===_.get(a.data,"sceneType","TXT")||"TXT_UPLOAD"===_.get(a.data,"sceneType","TXT")?_.get(a.data,"configJson.sampleTexts[0]",""):_.get(a.data,"configJson.sampleTexts","")},n.sampleText="TXT"===_.get(a.data,"sceneType","TXT")||"TXT_UPLOAD"===_.get(a.data,"sceneType","TXT")?_.get(a.data,"configJson.sampleTexts[0]",""):_.get(a.data,"configJson.sampleTexts",""),n.validateFuncs={},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=_.get(this.props.data,"configJson",null);_.get(e,"apiDefinition",null)&&_.get(e,"sampleTexts[0]",null)&&(this.sampleText=_.get(e,"sampleTexts[0]",null),this.requestApiService(_.get(e,"apiDefinition"),this.sampleText))},t.prototype.componentWillUnmount=function(){this.props.dispatch(x.platFormActions.resetRecognition())},t.prototype.render=function(){var e=this,t=this.props,a=t.recognitionData,l=t.recognitionDataLoading,u=t.data,c=t.topHive,p=_.get(u,"configJson",null),m=this,h=(0,g.getToken)(),x={name:"file",action:(0,v.wrapServiceUrl)(v.ServicePath.APP_SCENE,"sceneDemoConfigs/operations/uploadText"),headers:{Authorization:h},onChange:function(e){var t=[].concat(e.fileList);t=(t=t.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),m.setState({fileList:t}),"uploading"===e.file.status&&d.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status&&(m.filePath=_.get(e.file.response,"data.filePath",null),d.default.success("\u4e0a\u4f20\u6210\u529f\uff01")),"removed"===e.file.status&&(m.filePath="",m.setState({fileList:[]}))}};return(0,i.default)("div",{},void 0,u&&(0,i.default)(D,{style:{display:!0===c?"none":""}},void 0,(0,i.default)("h1",{},void 0,u.configTitle),M,(0,i.default)("span",{},void 0,u.configDesc.indexOf("[")>0?u.configDesc.substring(0,u.configDesc.indexOf("[")):u.configDesc),u.configDesc.indexOf("[")>0&&(0,i.default)("div",{style:{padding:"10px 20% 10px 20%"}},void 0,u.configDesc.substring(u.configDesc.indexOf("[")+1,u.configDesc.length-1))),(0,i.default)(I,{},void 0,(0,i.default)(T,{},void 0,k,P,L,N,(0,i.default)("div",{style:{height:"auto"}},void 0,(0,i.default)(r.default,{tip:"Loading...",size:"large",spinning:l},void 0,(0,i.default)(w,{},void 0,u&&("TXT"===u.sceneType||"TXT_UPLOAD"===u.sceneType?(0,i.default)(S,{rows:25,maxLength:5e3,value:this.state.sampleText,onChange:this.onChange}):(0,i.default)(y.default,{setValidateFunc:this.setValidateFunc,sampleText:this.state.sampleText}))))),(0,i.default)("div",{style:{marginTop:u&&"TXT_UPLOAD"===u.sceneType?13:"2%"},className:"RightDiv"},void 0,u&&"TXT_UPLOAD"===u.sceneType&&(0,i.default)("div",{style:{width:"70%",float:"left"}},void 0,f.default.createElement(o.default,(0,s.default)({},x,{fileList:this.state.fileList,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\platFeaturesManage\\modules\\TextRecognitionPage.jsx",lineNumber:340}}),A)),(0,i.default)("div",{style:{textAlign:"right"}},void 0,(0,i.default)(n.default,{onClick:function(){e.requestApiService(_.get(p,"apiDefinition"),e.sampleText)},className:"buttonCss",size:"large",type:"primary"},void 0,"\u68c0 \u6d4b")))),(0,i.default)(E,{},void 0,(0,i.default)(b.default,{data:p,recognitionData:a}))))},t}(f.default.PureComponent);t.default=(0,h.connect)((function(e){return{recognitionDataLoading:(0,C.selectRecognitionDataLoading)(e),recognitionData:(0,C.selectRecognitionData)(e)}}))(R)},"./src/module/platFeaturesManage/modules/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./src/module/platFeaturesManage/modules/DevDocs.jsx")),o=u(a("./src/module/platFeaturesManage/modules/FuncDemo.jsx")),s=u(a("./src/module/platFeaturesManage/modules/FuncFeatures.jsx")),r=u(a("./src/module/platFeaturesManage/modules/Section.jsx")),i=u(a("./src/module/platFeaturesManage/modules/ImageConfig.jsx")),d=u(a("./src/module/platFeaturesManage/modules/TextConfig.jsx")),l=u(a("./src/module/platFeaturesManage/modules/ImageFaceConfig.jsx"));function u(e){return e&&e.__esModule?e:{default:e}}t.default=r.default,r.default.comp={ImageFaceConfig:l.default,ImageConfig:i.default,TextConfig:d.default,DevDocs:n.default,FuncDemo:o.default,FuncFeatures:s.default}},"./src/module/platFeaturesManage/platFeaturesManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.TopManagePage=void 0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=a("./node_modules/react-redux/es/index.js"),u=(f(a("./node_modules/prop-types/index.js")),a("./src/redux/reducers/sysManager/platFormManager.js")),c=a("./src/redux/selectors/sysManager/platFormManager.js"),p=f(a("./src/module/platFeaturesManage/modules/index.js"));function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.div.withConfig({displayName:"platFeaturesManagePage__PlatFeaturesManagePageDiv",componentId:"sc-14kxwa9-0"})(["height:100%;width:100%;margin:0;padding:0;background:#ffffff;"]),h=(t.TopManagePage=d.default.div.withConfig({displayName:"platFeaturesManagePage__TopManagePage",componentId:"sc-14kxwa9-1"})(["height:50%;width:100%;"]),function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.componentDidMount=function(){var e=n.props.location.pathname.substring(n.props.location.pathname.lastIndexOf("/")+1,n.props.location.pathname.length);e&&n.props.dispatch(u.platFormActions.getPlatFormFeaturesConfigRequest({featureId:e}))},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.state={_this:n},n.validateFuncs={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.platFormFeaturesConfig.size>0?this.props.platFormFeaturesConfig.toJS():null;return t&&(0,n.default)(m,{},void 0,t.components.map((function(a,o){var s=p.default.comp[a.type];if("DevDocs"!==a.type)return(0,n.default)("div",{style:{margin:0===o?"0% 3% 3% 3%":""}},o,(0,n.default)(s,{setValidateFunc:function(t,a){e.setValiAdvancedDateFunc(t,a)},platFormFeaturesConfig:t,data:a.data,onChange:function(){e.getModulesData()}}))})))},t}(i.default.Component));t.default=(0,l.connect)((function(e){return{platFormFeaturesConfig:(0,c.selectPlatFormFeaturesConfig)(e)}}))(h)},"./src/module/serviceCode/codeVersions/listPage/ServiceCodeVersionList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/table/index.js")),o=x(a("./node_modules/antd/es/tooltip/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/antd/es/message/index.js")),i=x(a("./node_modules/antd/es/modal/index.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/lodash/lodash.js"))),f=x(a("./node_modules/dayjs/dayjs.min.js")),m=a("./src/components/auth/switchAuth.jsx"),h=a("./src/components/index.js"),g=x(a("./src/module/serviceCode/codeVersions/listPage/component/SearchBar.jsx")),v=a("./src/routes/routeHelper.jsx"),_=a("./src/redux/services/modelMirror.js"),y=a("./src/styles/GlobalStyle.js"),b=x(a("./src/module/serviceCode/components/ImportServiceCode.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=(0,s.default)(h.LoadingIndicator,{position:"relative"}),j=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.fetchData=function(e){n.setState({listLoading:"intervalRefresh"!==e}),(0,_.getMirrorVersionList)({paramsJson:n.searchCond}).then((function(e){n.setState({mirrorList:e.data,listLoading:!1})})).catch((function(){return n.setState({listLoading:!1})}))},n.handleDelete=function(e){var t;i.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u955c\u50cf\u7248\u672c?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t){(0,_.deleteModelMirrorVersion)(e).then((function(){t(),r.default.success("\u5220\u9664\u6210\u529f"),n.fetchData()}))}))},t))},n.exportOpen=function(e){n.setState({exportVisible:!0}),n.versionInfo=e},n.openModalVisible=function(e,t){n.templateInfo=e,n.setState({modalVisible:!0,viewType:t})},n.callVisible=function(e){n.setState({modalVisible:!1,viewType:""}),e&&n.fetchData()},n.changeSearchCond=function(e,t){"refresh"!==e?(p.default.trim(t)?n.searchCond[e]=p.default.trim(t):n.searchCond=p.default.omit(n.searchCond,[e]),n.fetchData()):n.fetchData(t)},n.exportClose=function(){n.setState({exportVisible:!1})},n.setExportLoading=function(e){n.setState({exportLoading:e})},n.mirrorId=p.default.get(a.match.params,"mirrorId"),n.entity=p.default.get(a.match.params,"entity","train"),n.state={modalVisible:!1,viewType:"",mirrorList:[],listLoading:!1},n.searchCond={mirrorId:n.mirrorId},n.columns=[{title:"\u5e8f\u53f7",width:60,dataIndex:"index",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u7248\u672c\u53f7",width:70,dataIndex:"versionName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",ellipsis:!0,dataIndex:"createCode",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD"):"")}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD"):"")}},{title:"\u72b6\u6001",width:110,dataIndex:"versionState",render:function(e,t){return"FAILURE"===e?(0,s.default)(o.default,{placement:"topLeft",title:t.errorMessage},void 0,(0,s.default)("div",{},void 0,(0,s.default)(h.StateLabel,{source:"serviceMirrorVersion",code:e}))):(0,s.default)(h.StateLabel,{source:"serviceMirrorVersion",code:e})}},{title:"\u64cd\u4f5c",width:230,render:function(e){var t="INIT"===e.versionSourceType,a=[];return a.push({handleName:"\u67e5\u770b",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelMirrorUrl.versionDetail(n.entity,n.mirrorId,e.versionId,"process"),handleType:"link"}),"SUCCESS"===e.versionState&&"train"===n.entity&&a.push({handleName:"\u65b0\u5efa\u7f16\u7801\u5efa\u6a21",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelServiceUrl.createCodeService(e.versionEngine,n.mirrorId,e.versionId),handleType:"link"}),"SUCCESS"===e.versionState&&"service"===n.entity&&"ONLINE"===e.versionType&&a.push({handleName:"\u53d1\u5e03\u5728\u7ebf\u63a8\u7406\u4efb\u52a1",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelServiceUrl.create(n.mirrorId,e.versionId),handleType:"link",state:{applicationId:e.businessType}}),"FAILURE"!==e.versionState||t||a.push({handleName:"\u4fee\u6539",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelMirrorUrl.versionEdit(n.entity,n.mirrorId,e.versionId),handleType:"link"}),"SUCCESS"!==e.versionState||"service"!==n.entity||t||a.push({handleName:"\u4fee\u6539\u63a5\u53e3\u5b9a\u4e49",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:v.modelMirrorUrl.versionApiEdit(n.mirrorId,e.versionId),handleType:"link"}),(0,m.hasFeatureAuths)("root.reaMirror.enableExport")&&"service"===n.entity&&a.push({handleName:"\u5bfc\u51fa",handleAction:function(){n.exportOpen(e)}}),"SUCCESS"!==e.versionState&&"FAILURE"!==e.versionState||t||a.push({handleName:"\u5220\u9664",handleAction:function(){n.handleDelete(e.versionId)}}),(0,s.default)(h.ListButtons,{buttons:a,maxShowNum:2})}}],n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.mirrorList,a=e.listLoading,o=e.viewType,r=e.modalVisible;return(0,s.default)("div",{style:{width:"100%"}},void 0,(0,s.default)(y.PageWrapper,{},void 0,(0,s.default)(h.ModalView,{viewType:o,modalTitle:"\u8bad\u7ec3\u955c\u50cf\u4fee\u6539",onCancelType:!1,width:1e3,callVisible:this.callVisible,modalVisible:r,comp:(0,s.default)(b.default,{baseType:"TRAIN",viewType:o,mirrorId:p.default.get(this.templateInfo,"mirrorId"),versionId:p.default.get(this.templateInfo,"versionId"),callVisible:this.callVisible})}),(0,s.default)(y.PageHeader,{className:"right"},void 0,(0,s.default)(g.default,{onChange:this.changeSearchCond,entity:this.entity})),(0,s.default)(y.PageBody,{},void 0,(0,s.default)(y.TableWrapper,{},void 0,a?C:(0,s.default)(n.default,{dataSource:t,rowKey:"versionId",bordered:!0,pagination:!0,columns:this.columns})))))},t}(c.default.Component);t.default=j},"./src/module/serviceCode/codeVersions/listPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./src/styles/GlobalStyle.js")),u=a("./src/components/index.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Option,f={width:"130px"},m=(0,n.default)(p,{value:"v_name"},void 0,"\u540d\u79f0\u6392\u5e8f"),h=(0,n.default)(p,{value:"update_time"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),g=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("mirrorShowName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("orderBy"),n.changeClassificationField=n.changeSelect("versionEngine");var r="service"===a.entity?"versionType":"purpose";return n.changeSourceField=n.changeSelect(r),n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(l.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)(u.RefreshButton,{onRefresh:this.props.onChange}),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(i.default,{id:"sort",name:"sort",onChange:this.changeSortField,style:f,placeholder:"\u6392\u5e8f\u6761\u4ef6",className:"item-cond"},void 0,m,h)))},t}(d.default.Component);t.default=g},"./src/module/serviceCode/components/ImportServiceCode.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=M(a("./node_modules/antd/es/upload/index.js")),o=M(a("./node_modules/babel-runtime/helpers/extends.js")),s=M(a("./node_modules/antd/es/button/index.js")),r=M(a("./node_modules/antd/es/row/index.js")),i=M(a("./node_modules/babel-runtime/helpers/jsx.js")),d=M(a("./node_modules/antd/es/message/index.js")),l=M(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=M(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=M(a("./node_modules/babel-runtime/helpers/inherits.js")),p=M(a("./node_modules/antd/es/radio/index.js")),f=M(a("./node_modules/antd/es/select/index.js")),m=M(a("./node_modules/antd/es/input/index.js")),h="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\serviceCode\\components\\ImportServiceCode.jsx";a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var g=M(a("./node_modules/react/index.js")),v=M(a("./node_modules/lodash/lodash.js")),_=a("./node_modules/react-redux/es/index.js"),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=M(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),x=(M(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),C=M(a("./src/module/serviceCode/components/picPreview/PicturePreviewPage.jsx")),j=a("./src/utils/commonUtil.js"),S=a("./src/redux/services/serviceCode.js"),I=a("./src/redux/selectors/checkName.js"),T=M(a("./src/components/common/CheckName.jsx")),w=a("./src/utils/publicPath.js"),E=a("./src/utils/authPermit.js"),D=a("./src/utils/constants.js");function M(e){return e&&e.__esModule?e:{default:e}}var k=y.Form.Item,P=m.default.TextArea,L=f.default.Option,N=p.default.Group,A=b.default.div.withConfig({displayName:"ImportServiceCode__ImportServiceCodeDom",componentId:"m6ixd3-0"})([".ant-form-inline .ant-form-item{display:flex;}.ant-input[disabled],.ant-input[disabled]:hover{z-index:10;}.ant-legacy-form-item-label,.ant-legacy-form-item-label,.ant-radio-wrapper{width:100px;text-align:right;}.ant-radio-wrapper{margin-right:0;margin-top:10px;}.anticon-question-circle{margin-top:12px;}.ant-form-inline .ant-form-item > .ant-legacy-form-item-label{display:flex;}.disabled .ant-input-group-addon{color:rgba(0,0,0,0.25);}.source__path-text{max-width:200px;overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;}.ant-upload-list-item .anticon-close{right:0;top:4px;}"]),R=b.default.div.withConfig({displayName:"ImportServiceCode__ButtonDom",componentId:"m6ixd3-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:30px;margin-left:-16px;margin-right:-16px;padding-right:16px;"]),F=(0,i.default)(p.default,{value:"ftp"},void 0,"FTP\u5730\u5740"),O=(0,i.default)(p.default,{value:"upload"},void 0,"\u672c\u5730\u4e0a\u4f20"),V=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.getValBlur=function(e,t,a){var o;if(n.serviceCodeData[t]=e,n.props.form.setFieldsValue(((o={})[t]=e,o)),"businessType"===t&&e){var s=(0,j.createModuleNameByApply)(a.props.label,"codePackage");n.serviceCodeData.resourceName=s,n.props.form.setFieldsValue({resourceName:s})}if("ftpId"===t){var r=v.default.find(n.state.ftpDatas,(function(t){return t.id===e}))||{};n.setState({ftpFilePath:r.storagePath})}},n.openTextDir=function(e){var t=e.lastIndexOf("/");if(t>0){var a=e.slice(0,t),o=e.slice(t+1);n.setState({ftpFilePath:a}),n.serviceCodeData.ftpFileName=o,n.props.form.setFieldsValue({fileName:o})}},n.handelCancelPreview=function(){n.setState({previewPic:!1})},n.handelPreviewPic=function(e,t){""===e?d.default.info("\u8bf7\u9009\u62e9\u5bf9\u5e94FTP\u548c\u586b\u5199\u8def\u5f84"):n.setState({previewPic:!0,ftpId:e,filePath:t})},n.fetchData=function(){var e="import"!==n.props.viewType&&n.props.resourceId;(0,S.getFtpDropDown)().then((function(t){t&&(n.setState({ftpDatas:t.data}),e&&n.serviceCodeData.ftpId&&n.getValBlur(n.serviceCodeData.ftpId,"ftpId"))})).catch((function(e){d.default.error(v.default.get(e,"message","ftp\u8def\u5f84\u67e5\u8be2\u5931\u8d25"))})),e&&(0,S.getServiceCodeInfo)(n.props.resourceId).then((function(e){var t=e.data||{};n.serviceCodeData={resourceId:t.resourceId,resourceName:t.resourceName,resourceDesc:t.resourceDesc,status:t.status,businessType:t.businessType};var a="ftp";t.ftpId?(n.getValBlur(t.ftpId,"ftpId"),n.serviceCodeData.ftpFileName=""+t.ftpFilePath+t.ftpFileName):(a="upload",n.serviceCodeData.fileId=t.fileId,n.setState({fileList:[{uid:t.fileId||11111,name:v.default.get(t,"resourceSourceFileName",""),status:"done"}]})),n.setState({uploadType:a}),n.props.form.setFieldsValue(n.serviceCodeData)})).catch()},n.saveServiceCode=function(){if(event.preventDefault(),"view"!==n.props.viewType){var e=n.props.checkNameVerifyInfo.toJS(),t=e.verifyStatus,a=e.verifyMsg;return-1===t?(d.default.error(a),!1):"upload"!==n.state.uploadType||n.serviceCodeData.fileId?void n.props.form.validateFields((function(e){if(!e){var t=n.serviceCodeData.ftpFileName;if("upload"===n.state.uploadType){if(!n.serviceCodeData.fileId)return void d.default.error("\u8bf7\u4e0a\u4f20\u670d\u52a1\u4ee3\u7801\u5305");n.serviceCodeData=v.default.omit(n.serviceCodeData,["ftpFilePath","ftpFileName","ftpId"])}else{var a=t.lastIndexOf("/");a>-1&&(n.serviceCodeData.ftpFilePath=t.slice(0,a+1),n.serviceCodeData.ftpFileName=t.slice(a+1)),n.serviceCodeData=v.default.omit(n.serviceCodeData,["fileId","fileName"])}n.setState({saveLoading:!0}),"import"===n.props.viewType?(0,S.saveServiceCodeInfo)(n.serviceCodeData).then((function(){n.setState({saveLoading:!1}),n.props.callVisible(!0)})).catch((function(){n.setState({saveLoading:!1})})):(0,S.updateServiceCodeInfo)(n.serviceCodeData).then((function(){n.setState({saveLoading:!1}),n.props.callVisible(!0)})).catch((function(){n.setState({saveLoading:!1})}))}})):(d.default.error("\u8bf7\u4e0a\u4f20\u670d\u52a1\u4ee3\u7801\u5305"),!1)}n.props.callVisible()},n.handelChangeUploadType=function(e){n.setState({uploadType:e.target.value})},n.state={ftpDatas:[],fileList:[],saveLoading:!1,ftpFilePath:"",uploadType:"ftp",usedApplications:{}},n.serviceCodeData={fileId:"",resourceName:"",ftpId:void 0,ftpFilePath:"",ftpFileName:"",resourceFileType:"CODE",resourceDesc:"",businessType:n.props.applicationId},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,l=a.ftpDatas,u=a.uploadType,c={marginTop:"16px",display:"flex"},p={width:"200px"},_="view"===this.props.viewType,b="edit"===this.props.viewType&&"FAILURE"!==this.serviceCodeData.status,j=this,S={name:"file",action:(0,w.urlFormat)("/resources/action/upload",D.ServicePath.SIC_SERVICE),headers:{Authorization:(0,E.getToken)()},onChange:function(e){var t=[].concat(e.fileList);if(t=(t=t.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),j.setState({fileList:t}),"uploading"===e.file.status&&d.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status){if(void 0!==e.file.response.data&&""!==e.file.response.data){var a=v.default.get(e.file.response,"data","");j.serviceCodeData.fileId=a,j.serviceCodeData.fileName=e.file.name}}else"error"===e.file.status?d.default.error(e.file.name+" \u4e0a\u4f20\u51fa\u9519!"):"error"===e.file.status&&(j.serviceCodeData=v.default.omit(j.serviceCodeData,"fileId"))}};return(0,i.default)(A,{},void 0,this.state.previewPic&&(0,i.default)(C.default,{openTextDir:function(t,a){return e.openTextDir(t,a)},fileType:2,ftpId:this.serviceCodeData.ftpId,filePath:this.state.ftpFilePath,onClosePreview:this.handelCancelPreview}),(0,i.default)(y.Form,{layout:"inline"},void 0,(0,i.default)(x.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,i.default)(r.default,{style:{display:"flex"}},void 0,(0,i.default)(k,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,t("businessType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5f52\u5c5e\u5e94\u7528"}],initialValue:this.serviceCodeData.businessType})((0,i.default)(f.default,{disabled:"view"===this.props.viewType||this.props.applicationId||"edit"===this.props.viewType&&this.serviceCodeData.businessType,placeholder:"\u8bf7\u9009\u62e9\u5f52\u5c5e\u5e94\u7528",optionFilterProp:"children",onChange:function(t,a){return e.getValBlur(val,"businessType",a)},style:{width:"200px"}},void 0,this.props.applicationsData.map((function(t){return(0,i.default)(L,{disabled:"edit"===e.props.viewType&&e.serviceCodeData.businessType,value:t.projectApplicationId,label:t.applicationName},t.projectApplicationId,t.applicationName)}))))),(0,i.default)(k,{label:"\u670d\u52a1\u4ee3\u7801\u540d\u79f0"},void 0,t("resourceName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u4ee3\u7801\u540d\u79f0"},{min:0,max:30,message:"\u670d\u52a1\u4ee3\u7801\u540d\u79f0\u4e0d\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.serviceCodeData.resourceName})(g.default.createElement(T.default,{disabled:_,ref:this.checkNameRef,modelId:this.serviceCodeData.resourceId||"",source:"serviceCode",style:p,placeholder:"\u8bf7\u8f93\u5165\u670d\u52a1\u4ee3\u7801\u540d\u79f0",updateNameCallback:function(t){return e.getValBlur(t,"resourceName")},__source:{fileName:h,lineNumber:364}})))),(0,i.default)(r.default,{style:c},void 0,(0,i.default)(k,{label:"\u63cf\u8ff0"},void 0,t("resourceDesc",{initialValue:this.serviceCodeData.resourceDesc})((0,i.default)(P,{disabled:_,autoSize:{minRows:4,maxRows:6},style:{width:"700px"},maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onBlur:function(t){return e.getValBlur(t.target.value,"resourceDesc")}}))))),(0,i.default)(x.ModelConfigPanel,{title:"\u4e0a\u4f20\u4ee3\u7801\u5305"},void 0,(0,i.default)(N,{name:"uploadType",disabled:_||b,value:this.state.uploadType,onChange:this.handelChangeUploadType},void 0,(0,i.default)(r.default,{style:{display:"flex"}},void 0,F,(0,i.default)(k,{},void 0,t("ftpId",{rules:[{required:"ftp"===u,message:"\u8bf7\u9009\u62e9FTP"}],initialValue:this.serviceCodeData.ftpId})((0,i.default)(f.default,{disabled:_||"ftp"!==u||b,style:p,onChange:function(t){return e.getValBlur(t,"ftpId")},placeholder:"\u8bf7\u9009\u62e9FTP"},void 0,l.map((function(e,t){return(0,i.default)(L,{value:e.id},t,e.storageName)}))))),(0,i.default)(k,{className:_?"disabled":""},void 0,t("ftpFileName",{rules:[{required:"ftp"===u,message:"\u8bf7\u8f93\u5165\u8def\u5f84\u53ca\u6587\u4ef6\u540d"},{pattern:/^\/*[^../*](?:[^/]+\/)*[^/]+$/,message:"\u8def\u5f84\u6587\u4ef6\u540d\u683c\u5f0f\u4e0d\u6b63\u786e"}],initialValue:this.serviceCodeData.ftpFileName})((0,i.default)(m.default,{allowClear:!0,disabled:_||"ftp"!==u||b,addonBefore:this.state.ftpFilePath,style:{width:"400px"},onBlur:function(t){return e.getValBlur(t.target.value,"ftpFileName")},placeholder:"\u8def\u5f84\u53ca\u6587\u4ef6\u540d"}))),(0,i.default)(k,{style:{display:"none"}},void 0,(0,i.default)(s.default,{type:"ghost",onClick:function(){e.handelPreviewPic(e.serviceCodeData.ftpId,e.state.ftpPath+e.state.ftpFilePath)}},void 0,"\u9884\u89c8"))),(0,i.default)(r.default,{style:c},void 0,O,(0,i.default)(k,{},void 0,g.default.createElement(n.default,(0,o.default)({fileList:this.state.fileList},S,{disabled:"upload"!==u||_||b,__source:{fileName:h,lineNumber:458}}),(0,i.default)(s.default,{disabled:"upload"!==u||_||b},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"))))))),(0,i.default)(R,{},void 0,(0,i.default)(s.default,{onClick:function(){return e.props.callVisible()}},void 0,"\u53d6\u6d88"),(0,i.default)(s.default,{loading:this.state.saveLoading,onClick:this.saveServiceCode,style:{marginLeft:"10px"},type:"primary"},void 0,_?"\u786e\u5b9a":"\u4fdd\u5b58")))},t}(g.default.PureComponent);V.defaultProps={applicationsData:[],usedApplications:{}};t.default=(0,_.connect)((function(e){return{checkNameVerifyInfo:(0,I.selectVerifyInfo)(e)}}))(y.Form.create()(V))},"./src/module/serviceCode/components/picPreview/PicturePreviewPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(p(i),a("./node_modules/react-redux/es/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./src/module/serviceCode/components/picPreview/components/PicturePreview.jsx"))),u=a("./src/redux/reducers/dataSource.js"),c=a("./src/redux/selectors/dataSource.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var a,n,r;(0,o.default)(this,t);for(var i=arguments.length,d=Array(i),l=0;l<i;l++)d[l]=arguments[l];return a=n=(0,s.default)(this,e.call.apply(e,[this].concat(d))),n.onChangePath=function(e){n.props.dispatch(u.dataSourceActions.getPicPreviewDataRequest({isCache:"1",fileType:n.props.fileType,ftpId:n.props.ftpId,filePath:n.props.filePath+(_.endsWith(n.props.filePath,"/")?"":"/")+e}))},r=a,(0,s.default)(n,r)}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(u.dataSourceActions.getPicPreviewDataRequest({isCache:"1",fileType:this.props.fileType,ftpId:this.props.ftpId,filePath:this.props.filePath}))},t.prototype.componentWillUnmount=function(){this.props.dispatch(u.dataSourceActions.resetPicPreviewData())},t.prototype.render=function(){var e=this.props,t=e.resultData,a=e.loading,o=t&&t.toJS&&t.toJS();return(0,n.default)(l.default,{fileType:this.props.fileType,loading:a,data:o,openTextDir:this.props.openTextDir,ftpId:this.props.ftpId,onChangePath:this.onChangePath,onClosePreview:this.props.onClosePreview})},t}(i.Component);t.default=(0,d.connect)((function(e){return{resultData:(0,c.selectPicPreviewData)(e),loading:(0,c.selectPicPreviewLoading)(e)}}))(f)},"./src/module/serviceCode/components/picPreview/components/PicturePreview.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/divider/index.js")),o=_(a("./node_modules/antd/es/button/index.js")),s=_(a("./node_modules/babel-runtime/helpers/jsx.js")),r=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=_(a("./node_modules/babel-runtime/helpers/inherits.js")),l=_(a("./node_modules/antd/es/breadcrumb/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/breadcrumb/style/index.js");var u=a("./node_modules/react/index.js"),c=(_(u),_(a("./node_modules/lodash/lodash.js"))),p=a("./src/components/index.js"),f=_(a("./node_modules/react-image/es/index.js")),m=(_(a("./node_modules/prop-types/index.js")),a("./node_modules/polished/dist/polished.es.js")),h=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/utils/constants.js"),v=_(a("./src/styles/images/nopic.png"));function _(e){return e&&e.__esModule?e:{default:e}}var y=l.default.Item,b=h.default.div.withConfig({displayName:"PicturePreview__PreviewOverlay",componentId:"gu64qa-0"})(["position:absolute;z-index:9999;background:rgba(0,0,0,0.6);top:0px;bottom:0px;left:0px;right:0px;border-radius:4px;.preview-box{margin:30px;border-radius:4px;height:480px;background:#fff;.ant-divider,.ant-divider-vertical{margin:0;}.preview-button{display:flex;justify-content:flex-end;button{margin-right:30px;}}}"]),x=(0,h.default)(l.default).withConfig({displayName:"PicturePreview__BreadcrumbDiv",componentId:"gu64qa-1"})(["padding:20px 0 10px 20px !important;.crumb-nav{color:rgba(0,0,0,0.65);&:hover{color:#1890ff;cursor:pointer;}}.crumb-nav-disable{color:#a2b0c4;}"]),C=h.default.div.withConfig({displayName:"PicturePreview__PictureList",componentId:"gu64qa-2"})([".dtqPjT{position:relative;}padding:20px;display:flex;flex-direction:row;align-items:flex-start;height:350px;overflow:auto;flex-wrap:wrap;"]),j=h.default.div.withConfig({displayName:"PicturePreview__PictureFolder",componentId:"gu64qa-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;margin-right:35px;margin-bottom:35px;.file-box{display:flex;flex-direction:column;justify-content:center;align-items:center;width:120px;height:90px;transition:all 0.2s ease-in-out;}.file-info{margin-top:15px;display:flext;justify-content:center;span{width:120px;text-align:center;",";}}.folder-text{position:relative;padding-top:12px;width:64px;.folder-text-rect1{position:absolute;top:0px;left:0px;width:60px;height:25px;z-index:3;background:#f4f4f4;border-radius:4px 4px 0 0;}.folder-text-rect2{width:68px;height:60px;background:#f4f4f4;border-radius:0 2px 4px 4px;}}.folder-icon{position:relative;padding-top:12px;width:64px;.folder-icon-rect1{position:absolute;top:0px;left:0px;width:32px;height:25px;z-index:3;background:#ffcf5c;border-radius:4px 4px 0 0;}.folder-icon-line{position:absolute;z-index:2;top:5px;left:30px;width:25px;background:#f9b552;height:1.5px;border-radius:2px 2px 0 0;}.folder-icon-rect2{width:68px;height:45px;background:#ffcf5c;border-radius:0 2px 4px 4px;}}&:hover{cursor:pointer;.file-box{transform:scale(1.4);&.pictrue{background:rgba(162,176,196,0.5);border:1px solid #ccd5e0;transform:scale(1.2);}}.file-info{color:#1890ff;}}"],(0,m.ellipsis)()),S=(0,h.default)(j).withConfig({displayName:"PicturePreview__Picture",componentId:"gu64qa-4"})([".pictrue{background:rgba(162,176,196,0.1);border:1px solid #ccd5e0;width:120px;height:90px;padding:3px;overflow:hidden;a,img{max-width:112px;max-height:75px;}}"]),I=h.default.div.withConfig({displayName:"PicturePreview__SummaryInfo",componentId:"gu64qa-5"})(["padding:10px 20px;strong{color:#1890ff;}"]),T=(0,s.default)(n.default,{}),w=(0,s.default)(p.LoadingIndicator,{position:"relative"}),E=(0,s.default)(p.NoData,{position:"relative"}),D=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-icon"},void 0,(0,s.default)("div",{className:"folder-icon-rect1"}),(0,s.default)("div",{className:"folder-icon-line"}),(0,s.default)("div",{className:"folder-icon-rect2"}))),M=(0,s.default)("div",{className:"file-box"},void 0,(0,s.default)("div",{className:"folder-text"},void 0,(0,s.default)("div",{className:"folder-text-rect1"}),(0,s.default)("div",{className:"folder-text-rect2"}))),k=(0,s.default)(n.default,{}),P=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.openDir=function(e){var t=[].concat(n.state.crumbs,[e]);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.openTextDir=function(e){n.props.openTextDir(e,n.props.ftpId)},n.changePath=function(e){var t=n.state.crumbs.slice(0,e+1);n.setState({crumbs:t}),n.props.onChangePath(t.join("/"))},n.state={crumbs:[]},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.data;return(0,s.default)(b,{className:"animated fadeIn",onClick:this.props.onClosePreview},void 0,(0,s.default)("div",{className:"preview-box",onClick:function(e){return e.stopPropagation()}},void 0,(0,s.default)(x,{},void 0,(0,s.default)(y,{className:"crumb-nav",onClick:function(){return e.changePath(-1,"\u6839\u76ee\u5f55")}},void 0,"\u6839\u76ee\u5f55"),this.state.crumbs.map((function(t,a){return(0,s.default)(y,{className:a<e.state.crumbs.length-1?"crumb-nav":"crumb-nav-disable",onClick:function(){return e.changePath(a,t)}},t,t)}))),T,(0,s.default)(C,{},void 0,this.props.loading&&w,!this.props.loading&&c.default.isEmpty(t.items)&&E,!this.props.loading&&t.items&&c.default.isArray(t.items)&&c.default.orderBy(t.items,["isDir"],["desc"]).map((function(t,a){return!0===t.isDir?(0,s.default)(j,{onClick:function(){return e.openDir(t.fileName)}},a,D,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName))):1===e.props.fileType?(0,s.default)(S,{},a,(0,s.default)("div",{className:"file-box pictrue"},void 0,(0,s.default)("a",{href:(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),target:"_blank",rel:"noreferrer noopener"},void 0,c.default.startsWith(t.thumbnail,"data:image")?(0,s.default)("img",{"data-imgurl":(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),src:t.thumbnail}):(0,s.default)(f.default,{"data-imgurl":(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.imageUrl),src:[(0,g.wrapServiceUrl)(g.ServicePath.MODELING_SERVICE,t.thumbnail),v.default],alt:t.fileName}))),(0,s.default)("div",{className:"file-info"},void 0,(0,s.default)("span",{},void 0,t.fileName))):(0,s.default)(j,{onClick:function(){return e.openTextDir(t.ftpFilePath)}},a,M,(0,s.default)("div",{className:"file-info",title:t.fileName},void 0,(0,s.default)("span",{},void 0,t.fileName)))}))),k,(0,s.default)(I,{},void 0,"\u603b\u5171",(0,s.default)("strong",{},void 0,c.default.isNumber(t.subDirCount)?t.subDirCount:"--"),"\u4e2a\u76ee\u5f55\uff0c",(0,s.default)("strong",{},void 0,c.default.isNumber(t.imageCount)?t.imageCount:"--"),1===this.props.fileType?"\u5f20\u56fe\u7247":"\u4e2a\u6587\u4ef6","\uff0c \u9ed8\u8ba4\u9884\u89c8\u5c55\u793a\u6700\u591a 10 \u4e2a\u76ee\u5f55\uff0c\u76ee\u5f55\u4e0b\u6700\u591a\u5c55\u793a 10"," ",1===this.props.fileType?"\u5f20\u56fe\u7247":"\u4e2a\u6587\u4ef6"),(0,s.default)("div",{className:"preview-button"},void 0,(0,s.default)(o.default,{onClick:this.props.onClosePreview},void 0,"\u5173\u95ed\u9884\u89c8"))))},t}(u.PureComponent);P.defaultProps={onChangePath:c.default.noop,onClosePreview:c.default.noop,data:{}},t.default=P},"./src/module/serviceCode/createPage/ImportServiceCode.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=N(a("./node_modules/antd/es/upload/index.js")),o=N(a("./node_modules/babel-runtime/helpers/extends.js")),s=N(a("./node_modules/antd/es/button/index.js")),r=N(a("./node_modules/antd/es/tooltip/index.js")),i=N(a("./node_modules/antd/es/auto-complete/index.js")),d=N(a("./node_modules/antd/es/row/index.js")),l=N(a("./node_modules/babel-runtime/helpers/jsx.js")),u=N(a("./node_modules/antd/es/message/index.js")),c=N(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=N(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=N(a("./node_modules/babel-runtime/helpers/inherits.js")),m=N(a("./node_modules/antd/es/radio/index.js")),h=N(a("./node_modules/antd/es/select/index.js")),g=N(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/auto-complete/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var v=N(a("./node_modules/react/index.js")),_=N(a("./node_modules/lodash/lodash.js")),y=a("./node_modules/react-redux/es/index.js"),b=a("./node_modules/@ant-design/icons/es/index.js"),x=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var C=N(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),j=(N(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),S=a("./src/utils/history.js"),I=N(a("./src/module/serviceCode/components/picPreview/PicturePreviewPage.jsx")),T=a("./src/utils/commonUtil.js"),w=N(a("./src/redux/services/sysManager/projectManage.js")),E=a("./src/routes/routeHelper.jsx"),D=a("./src/redux/services/serviceCode.js"),M=a("./src/redux/selectors/checkName.js"),k=a("./src/utils/publicPath.js"),P=a("./src/utils/authPermit.js"),L=a("./src/utils/constants.js");function N(e){return e&&e.__esModule?e:{default:e}}var A=x.Form.Item,R=g.default.TextArea,F=h.default.Option,O=m.default.Group,V=C.default.div.withConfig({displayName:"ImportServiceCode__ImportServiceCodeDom",componentId:"sc-10e09de-0"})(["width:100%;background:#fff;padding:16px;.ant-form-inline .ant-form-item{display:flex;}.ant-input[disabled],.ant-input[disabled]:hover{z-index:10;}.ant-legacy-form-item-label,.ant-legacy-form-item-label,.ant-radio-wrapper{width:100px;text-align:right;}.ant-radio-wrapper{margin-right:0;margin-top:10px;}.anticon-question-circle{margin-top:12px;}.ant-form-inline .ant-form-item > .ant-legacy-form-item-label{display:flex;}.disabled .ant-input-group-addon{color:rgba(0,0,0,0.25);}.source__path-text{max-width:200px;overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;}.ant-upload-list-item .anticon-close{right:0;top:4px;}"]),U=C.default.div.withConfig({displayName:"ImportServiceCode__ButtonDom",componentId:"sc-10e09de-1"})(["height:42px;text-align:right;padding-top:10px;margin-top:30px;margin-left:-16px;margin-right:-16px;padding-right:16px;"]),B=(0,l.default)(m.default,{value:"ftp"},void 0,"FTP\u5730\u5740"),G=(0,l.default)(m.default,{value:"upload"},void 0,"\u672c\u5730\u4e0a\u4f20"),z=function(e){function t(a){(0,c.default)(this,t);var n=(0,p.default)(this,e.call(this,a));return n.getValBlur=function(e,t,a){var o;if(n.serviceCodeData[t]=e,n.props.form.setFieldsValue(((o={})[t]=e,o)),"businessType"===t&&e){var s=a?a.props.label:_.default.get(_.default.find(n.state.applicationsList,{projectApplicationId:e}),"applicationName"),r=(0,T.createModuleNameByApply)(s,"codePackage",!0);n.handleCodeNameChange(r),n.serviceCodeData.resourceName=r,n.props.form.setFieldsValue({resourceName:r}),n.fetchServiceCodeList()}if("ftpId"===t){var i=_.default.find(n.state.ftpDatas,(function(t){return t.id===e}))||{};n.setState({ftpFilePath:i.storagePath})}},n.openTextDir=function(e){var t=e.lastIndexOf("/");if(t>0){var a=e.slice(0,t),o=e.slice(t+1);n.setState({ftpFilePath:a}),n.serviceCodeData.ftpFileName=o,n.props.form.setFieldsValue({fileName:o})}},n.handelCancelPreview=function(){n.setState({previewPic:!1})},n.handelPreviewPic=function(e,t){""===e?u.default.info("\u8bf7\u9009\u62e9\u5bf9\u5e94FTP\u548c\u586b\u5199\u8def\u5f84"):n.setState({previewPic:!0,ftpId:e,filePath:t})},n.fetchData=function(){(0,D.getFtpDropDown)().then((function(e){e&&n.setState({ftpDatas:e.data})})).catch((function(e){u.default.error(_.default.get(e,"message","ftp\u8def\u5f84\u67e5\u8be2\u5931\u8d25"))})),n.fetchServiceCodeList()},n.fetchServiceCodeList=function(){(0,D.getServiceCodeList)({paramjson:{isPage:"N",resourceFileType:"CODE",businessType:n.serviceCodeData.businessType}}).then((function(e){n.setState({serviceCodeList:_.default.get(e,"data",[]),listLoading:!1,usedApplications:_.default.groupBy(_.default.get(e,"data",[]),"businessType")})})).catch((function(){return n.setState({listLoading:!1,intervalRefreshLoading:!1})}))},n.fetApplications=function(){w.default.getApplicationsDropDown().then((function(e){if(e){var t=e.data;n.setState({applicationsList:t},(function(){n.applicationId&&n.getValBlur(n.applicationId,"businessType")}))}})).catch((function(e){u.default.error(e.message)}))},n.submitServiceCode=function(){event.preventDefault();var e=n.props.checkNameVerifyInfo.toJS(),t=e.verifyStatus,a=e.verifyMsg;return-1===t?(u.default.error(a),!1):"upload"!==n.state.uploadType||n.serviceCodeData.fileId?void n.props.form.validateFields((function(e){if(!e){var t=n.serviceCodeData.ftpFileName;if("upload"===n.state.uploadType){if(!n.serviceCodeData.fileId)return void u.default.error("\u8bf7\u4e0a\u4f20\u670d\u52a1\u4ee3\u7801\u5305");n.serviceCodeData=_.default.omit(n.serviceCodeData,["ftpFilePath","ftpFileName","ftpId"])}else{var a=t.lastIndexOf("/");a>-1&&(n.serviceCodeData.ftpFilePath=t.slice(0,a+1),n.serviceCodeData.ftpFileName=t.slice(a+1)),n.serviceCodeData=_.default.omit(n.serviceCodeData,["fileId","fileName"])}n.saveServiceCode()}})):(u.default.error("\u8bf7\u4e0a\u4f20\u670d\u52a1\u4ee3\u7801\u5305"),!1)},n.saveServiceCode=function(){n.setState({saveLoading:!0}),(0,D.saveServiceCodeInfo)(n.serviceCodeData).then((function(){u.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,S.navigateTo)(E.modelServiceCodeUrl.list())}),2e3)})).catch((function(){n.setState({saveLoading:!1})}))},n.handelChangeUploadType=function(e){n.setState({uploadType:e.target.value})},n.cancel=function(){confirm({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u4ee3\u7801\u5305\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,S.navigateTo)(E.modelServiceCodeUrl.list())}})},n.handleCodeNameChange=function(e){var t=_.default.find(n.state.serviceCodeList,{resourceName:e});t?n.setCodeInfo(t.resourceId):(n.serviceCodeData.resourceId="",n.serviceCodeData.resourceName=e,n.setState({currentVersionName:"v1"}))},n.setCodeInfo=function(e){e?(0,D.getServiceCodeInfo)(e).then((function(e){var t=_.default.get(e,"data",{})||{};n.serviceCodeData.resourceId=_.default.get(t,"resourceId"),n.serviceCodeData.resourceName=_.default.get(t,"resourceName"),n.serviceCodeData.resourceDesc=_.default.get(t,"resourceDesc"),n.props.form.setFieldsValue({resourceDesc:_.default.get(t,"resourceDesc")});var a=_.default.get(t,"resourceVersions"),o=_.default.get(a,"[0].versionName"),s=Number(o.replace("v","")),r="v"+(isNaN(s)?1:s+1);n.setState({currentVersionName:r})})):n.setState({currentVersionName:"v1"})},n.codeId=_.default.get(a.match,"params.codeId",null),n.applicationId=_.default.get(a,"location.state.applicationId"),n.actionType=_.default.get(a.match,"params.action",null),n.state={ftpDatas:[],fileList:[],saveLoading:!1,ftpFilePath:"",uploadType:"ftp",applicationsList:[]},n.serviceCodeData={fileId:"",resourceName:"",ftpId:void 0,ftpFilePath:"",ftpFileName:"",resourceFileType:"CODE",resourceDesc:"",businessType:n.applicationId},n}return(0,f.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(),this.fetApplications()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,c=a.ftpDatas,p=a.uploadType,f=a.serviceCodeList,m={marginTop:"16px",display:"flex"},y="view"===this.actionType,C="edit"===this.actionType&&"FAILURE"!==this.serviceCodeData.status,S=this,T={name:"file",action:(0,k.urlFormat)("/resources/action/upload",L.ServicePath.SIC_SERVICE),headers:{Authorization:(0,P.getToken)()},onChange:function(e){var t=[].concat(e.fileList);if(t=(t=t.slice(-1)).map((function(e){return e.response&&(e.url=e.response.url),e})),S.setState({fileList:t}),"uploading"===e.file.status&&u.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status){if(void 0!==e.file.response.data&&""!==e.file.response.data){var a=_.default.get(e.file.response,"data","");S.serviceCodeData.fileId=a,S.serviceCodeData.fileName=e.file.name}}else"error"===e.file.status?u.default.error(e.file.name+" \u4e0a\u4f20\u51fa\u9519!"):"error"===e.file.status&&(S.serviceCodeData=_.default.omit(S.serviceCodeData,"fileId"))}};return(0,l.default)(V,{},void 0,this.state.previewPic&&(0,l.default)(I.default,{openTextDir:function(t,a){return e.openTextDir(t,a)},fileType:2,ftpId:this.serviceCodeData.ftpId,filePath:this.state.ftpFilePath,onClosePreview:this.handelCancelPreview}),(0,l.default)(x.Form,{layout:"inline"},void 0,(0,l.default)(j.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,l.default)(d.default,{style:{display:"flex"}},void 0,(0,l.default)(A,{help:"",label:"\u5f52\u5c5e\u5e94\u7528"},void 0,t("businessType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e"}],initialValue:this.serviceCodeData.businessType})((0,l.default)(h.default,{disabled:"view"===this.actionType||Boolean(this.applicationId)||Boolean("edit"===this.actionType&&this.serviceCodeData.businessType),placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u6570\u636e",optionFilterProp:"children",onChange:function(t,a){return e.getValBlur(t,"businessType",a)},style:{width:"200px"}},void 0,this.state.applicationsList.map((function(t){return(0,l.default)(F,{disabled:"edit"===e.actionType&&e.serviceCodeData.businessType,value:t.projectApplicationId,label:t.applicationName},t.projectApplicationId,t.applicationName)})))))),(0,l.default)(d.default,{style:m},void 0,(0,l.default)(A,{label:"\u670d\u52a1\u4ee3\u7801\u540d\u79f0"},void 0,t("resourceName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u670d\u52a1\u4ee3\u7801\u540d\u79f0"},{min:0,max:30,message:"\u670d\u52a1\u4ee3\u7801\u540d\u79f0\u4e0d\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.serviceCodeData.resourceName})((0,l.default)(i.default,{dropdownStyle:{width:200},style:{width:200},placeholder:"\u8bf7\u65b0\u589e\u6216\u9009\u62e9\u4ee3\u7801\u5305",onChange:function(t){return e.handleCodeNameChange(t)},filterOption:function(e,t){return t.props.children&&t.props.children.toLowerCase().indexOf(e?e.toLowerCase():"")>=0}},void 0,Array.isArray(f)&&f.map((function(e,t){return(0,l.default)(F,{value:e.resourceName},t,e.resourceName)})))),(0,l.default)(r.default,{placement:"topLeft",title:"\u9009\u62e9\u5df2\u6709\u4ee3\u7801\u5305\uff0c\u5219\u5f53\u524d\u4ee3\u7801\u5305\u65b0\u589e\u4e00\u4e2a\u7248\u672c\uff0c\u5426\u5219\u65b0\u589e\u4e00\u4e2a\u4ee3\u7801\u5305\u53ca\u7248\u672c\u3002",arrowPointAtCenter:!0},void 0,(0,l.default)(b.QuestionCircleOutlined,{style:{fontSize:"14px",marginLeft:"16px"},className:"icon"}))),(0,l.default)(A,{label:"\u7248\u672c"},void 0,this.state.currentVersionName||"v1")),(0,l.default)(d.default,{style:m},void 0,(0,l.default)(A,{label:"\u63cf\u8ff0"},void 0,t("resourceDesc",{initialValue:this.serviceCodeData.resourceDesc})((0,l.default)(R,{disabled:y,autoSize:{minRows:4,maxRows:6},style:{width:"700px"},maxLength:100,placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onBlur:function(t){return e.getValBlur(t.target.value,"resourceDesc")}}))))),(0,l.default)(j.ModelConfigPanel,{title:"\u4e0a\u4f20\u4ee3\u7801\u5305"},void 0,(0,l.default)(O,{name:"uploadType",disabled:y||C,value:this.state.uploadType,onChange:this.handelChangeUploadType},void 0,(0,l.default)(d.default,{style:{display:"flex"}},void 0,B,(0,l.default)(A,{},void 0,t("ftpId",{rules:[{required:"ftp"===p,message:"\u8bf7\u9009\u62e9FTP"}],initialValue:this.serviceCodeData.ftpId})((0,l.default)(h.default,{disabled:y||"ftp"!==p||C,style:{width:"200px"},onChange:function(t){return e.getValBlur(t,"ftpId")},placeholder:"\u8bf7\u9009\u62e9FTP"},void 0,c.map((function(e,t){return(0,l.default)(F,{value:e.id},t,e.storageName)}))))),(0,l.default)(A,{className:y?"disabled":""},void 0,t("ftpFileName",{rules:[{required:"ftp"===p,message:"\u8bf7\u8f93\u5165\u8def\u5f84\u53ca\u6587\u4ef6\u540d"},{pattern:/^\/*[^../*](?:[^/]+\/)*[^/]+$/,message:"\u8def\u5f84\u6587\u4ef6\u540d\u683c\u5f0f\u4e0d\u6b63\u786e"}],initialValue:this.serviceCodeData.ftpFileName})((0,l.default)(g.default,{allowClear:!0,disabled:y||"ftp"!==p||C,addonBefore:this.state.ftpFilePath,style:{width:"400px"},onBlur:function(t){return e.getValBlur(t.target.value,"ftpFileName")},placeholder:"\u8def\u5f84\u53ca\u6587\u4ef6\u540d"}))),(0,l.default)(A,{style:{display:"none"}},void 0,(0,l.default)(s.default,{type:"ghost",onClick:function(){e.handelPreviewPic(e.serviceCodeData.ftpId,e.state.ftpPath+e.state.ftpFilePath)}},void 0,"\u9884\u89c8"))),(0,l.default)(d.default,{style:m},void 0,G,(0,l.default)(A,{help:""},void 0,v.default.createElement(n.default,(0,o.default)({fileList:this.state.fileList},T,{disabled:"upload"!==p||y||C,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\serviceCode\\createPage\\ImportServiceCode.jsx",lineNumber:527}}),(0,l.default)(s.default,{disabled:"upload"!==p||y||C},void 0,"\u70b9\u51fb\u4e0a\u4f20\u6587\u4ef6"))))))),(0,l.default)(U,{},void 0,(0,l.default)(s.default,{onClick:this.cancel},void 0,"\u53d6\u6d88"),(0,l.default)(s.default,{loading:this.state.saveLoading,onClick:this.submitServiceCode,style:{marginLeft:"10px"},type:"primary"},void 0,y?"\u786e\u5b9a":"\u4fdd\u5b58")))},t}(v.default.PureComponent);z.defaultProps={};t.default=(0,y.connect)((function(e){return{checkNameVerifyInfo:(0,M.selectVerifyInfo)(e)}}))(x.Form.create()(z))},"./src/module/serviceCode/detailPage/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/tooltip/index.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/antd/es/message/index.js")),r=x(a("./node_modules/antd/es/modal/index.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js")),u=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=x(a("./node_modules/dayjs/dayjs.min.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./src/components/index.js"),g=a("./src/utils/history.js"),v=a("./src/routes/routeHelper.jsx"),y=a("./src/redux/services/serviceCode.js"),b=a("./src/utils/authPermit.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=x(a("./src/components/button/index.js")).default.GhostButton,j=u.default.Option,S=p.default.div.withConfig({displayName:"BaseInfo__DetailBaseInfoWrapper",componentId:"sc-1gddbu9-0"})(["display:flex;border:1px solid #eee;padding:20px;.item__progress{height:100%;background:#2296f3;}.left__content-wrapper{width:80%;margin-right:24px;}.left__top-wrapper{padding-bottom:10px;border-bottom:1px solid #eee;}.base__info-runtime{white-space:nowrap;}.left__top-line1{display:flex;align-items:center;justify-content:space-between;.item__progress-wrapper .ant-progress-bg{height:16px !important;}}.left__top-line1-left{display:flex;}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{font-size:18px;font-weight:700;}.base__info-progress{display:flex;}.item__progress-wrapper{width:180px;height:18px;display:flex;.ant-progress-bg{height:12px !important;}}.left__bottom-wrapper{display:flex;flex-wrap:wrap;}.item__wrapper{margin-right:10px;width:calc(50% - 10px);flex-shrink:0;height:40px;line-height:40px;display:flex;align-items:center;}.right__content-wrapper{border-left:1px solid #eee;padding:0 20px;position:relative;}.refresh-icon{position:absolute;top:0;right:0;font-size:24px;}.right__top-wrapper{padding:20px 0;font-size:18px;font-weight:700;margin-right:60%;border-bottom:1px solid #eee;}.right__bottom-wrapper{min-width:200px;display:grid;grid-template-columns:repeat(3,1fr);}.opt-btn{margin-right:16px;margin-top:20px;}.item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.base__version-select{width:150px;}"]),I=(0,o.default)("span",{},void 0,"\u5207\u6362\u7248\u672c\uff1a"),T=(0,o.default)("div",{className:"right__top-wrapper"},void 0,"\u64cd\u4f5c"),w=(0,o.default)(m.LoadingOutlined,{className:"refresh-icon"}),E=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(e){n.setState({loading:!0}),(0,y.getServiceCodeInfo)(n.props.codeId).then((function(t){var a=_.get(t,"data",{})||{},o=_.get(a,"resourceVersions");o&&0!==o.length||(0,g.navigateTo)(v.modelServiceCodeUrl.list());var s=_.get(o,"[0]",{})||{};e&&(s=_.get(_.find(o,{versionId:e}))),n.setVersionInfo(s,a),n.setState({basicInfo:a,versionList:o,loading:!1})})).catch((function(){return n.setState({loading:!1})}))},n.handleDeleteAction=function(){var e=_.get(n.state.versionInfo,"versionId");e&&r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u6b64\u4ee3\u7801\u5305\u7248\u672c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){(0,y.deleteServiceCode)(n.props.codeId,{paramjson:{versionId:e}}).then((function(){Array.isArray(n.state.versionList)&&n.state.versionList.length>1?n.fetchData():(s.default.success("\u5220\u9664\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,g.navigateTo)(v.modelServiceCodeUrl.list())}),2e3)),t()})).catch((function(e){a(e),s.default.error("\u5220\u9664\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+e)}))}))}})},n.handleRefresh=function(){n.setState({refreshing:!0});var e=_.get(n.state.versionInfo,"versionId");n.fetchData(e)},n.changeResourceVersion=function(e){var t=_.find(n.state.versionList,{versionId:e},{})||{};n.setVersionInfo(t,n.state.basicInfo)},n.setVersionInfo=function(e,t){e.businessTypeName=_.get(t,"businessTypeName"),e.versionSource="LOCAL"===_.get(e,"resourceSourceType")?"\u672c\u5730\u4e0a\u4f20":"FTP\u4e0a\u4f20",e.uploadMsg="LOCAL"===_.get(e,"resourceSourceType")?_.get(e,"fileName"):(_.get(e,"ftpFilePath")+"/"+_.get(e,"ftpFileName")).replace(/\/\//g,"/"),n.setState({versionInfo:e})},n.exportOpen=function(e,t){(0,y.exportVersionFile)(e,t)},n.state={loading:!1,refreshing:!1,basicInfo:{},versionList:[],versionInfo:{}},n.items=[{key:"businessTypeName",name:"\u5f52\u5c5e\u5e94\u7528",type:"text"},{key:"versionName",name:"\u7248\u672c\u53f7",type:"text"},{key:"createTime",name:"\u521b\u5efa\u65f6\u95f4",type:"date"},{key:"createCode",name:"\u521b\u5efa\u4eba",type:"text"},{key:"versionSource",name:"\u7248\u672c\u6765\u6e90",type:"text"},{key:"uploadMsg",name:"\u4e0a\u4f20\u4fe1\u606f",type:"text"}],n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.basicInfo,s=t.versionInfo,r=t.versionList,i=t.refreshing,d=t.loading;return(0,o.default)(S,{},void 0,(0,o.default)("div",{className:"left__content-wrapper"},void 0,(0,o.default)("div",{className:"left__top-wrapper"},void 0,(0,o.default)("div",{className:"left__top-line1"},void 0,(0,o.default)("div",{className:"left__top-line1-left"},void 0,(0,o.default)("div",{className:"base__info-name top__line1-section"},void 0,a.resourceShowName),(0,o.default)("div",{className:"base__info-status top__line1-section"},void 0,"FAILURE"===s.status?(0,o.default)(n.default,{placement:"topLeft",title:s.errorMessage},void 0,(0,o.default)("div",{},void 0,(0,o.default)(h.StateLabel,{source:"serviceCode",code:s.status}))):(0,o.default)(h.StateLabel,{source:"serviceCode",code:s.status}))),(0,o.default)("div",{className:"base__version-select"},void 0,I,(0,o.default)(u.default,{onChange:this.changeResourceVersion,style:{width:80},placeholder:"\u8bf7\u9009\u62e9\u7248\u672c",value:s.versionId},void 0,Array.isArray(r)&&r.map((function(e){return(0,o.default)(j,{value:e.versionId},e.versionId,e.versionName)}))))),(0,o.default)("div",{className:"left__top-line2"},void 0,"\u63cf\u8ff0\uff1a",a.resourceDesc," ")),(0,o.default)("div",{className:"left__bottom-wrapper"},void 0,this.items.map((function(e){return"map"===e.type?(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,e.mapObj&&e.mapObj.getDesc(s[e.key]))):"date"===e.type?(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,s[e.key]?(0,f.default)(s[e.key]).format("YYYY-MM-DD HH:mm:ss"):"--")):!e.hidden&&(0,o.default)("div",{className:"item__wrapper"},e.key,(0,o.default)("span",{style:{width:"60px",whiteSpace:"nowrap",textAlign:"right",flexShrink:0}},void 0,e.name,"\uff1a"),(0,o.default)("span",{className:"item-text"},void 0,(0,o.default)(n.default,{placement:"topLeft",title:s[e.key],arrowPointAtCenter:!0},void 0,"resourceSourceType"===e.key?"LOCAL"===s[e.key]?"\u672c\u5730\u4e0a\u4f20":"FTP\u4e0a\u4f20":s[e.key])))})))),(0,o.default)("div",{className:"right__content-wrapper"},void 0,T,(0,o.default)(h.RefreshButton,{onRefresh:this.handleRefresh,style:{display:"none"}}),i&&d?w:(0,o.default)(n.default,{placement:"topLeft",title:"\u5237\u65b0",arrowPointAtCenter:!0},void 0,(0,o.default)(m.RedoOutlined,{className:"refresh-icon",style:{cursor:"pointer"},onClick:this.handleRefresh})),(0,o.default)("div",{className:"right__bottom-wrapper"},void 0,"SUCCESS"===s.status&&(0,o.default)(c.default.Fragment,{},void 0,(0,o.default)(C,{action:"START",width:"20",txt:"\u6784\u5efa\u955c\u50cf",onClick:function(){return(0,g.navigateTo)(v.modelMirrorUrl.codeCreate("build",e.props.codeId,s.versionId))},className:"fn-left opt-btn"}),(0,o.default)(C,{action:"PUBLISH",width:"20",txt:"\u53d1\u5e03\u81f3\u6d4b\u8bd5",onClick:function(){return(0,g.navigateTo)({pathname:v.modelServiceUrl.codePublish("test",e.props.codeId,s.versionId),state:{pubEnvType:e.state.profile,applicationId:s.businessType}})},className:"fn-left opt-btn"}),(0,o.default)(C,{action:"PUBLISH",width:"20",txt:"\u53d1\u5e03\u81f3\u751f\u4ea7",disabled:!(0,b.hasProductServiceAuth)(),onClick:function(){return(0,g.navigateTo)({pathname:v.modelServiceUrl.codePublish("product",e.props.codeId,s.versionId),state:{pubEnvType:e.state.profile,applicationId:s.businessType}})},className:"fn-left opt-btn"}),(0,o.default)(C,{action:"EXPORT",width:"20",txt:"\u5bfc\u51fa",onClick:function(){return e.exportOpen(e.props.codeId,s.versionId)},className:"fn-left opt-btn"})),(0,o.default)(C,{action:"EDIT",width:"20",txt:"\u4fee\u6539",onClick:function(){return(0,g.navigateTo)(v.modelServiceCodeUrl.edit(e.props.codeId))},className:"fn-left opt-btn"}),("FAILURE"===s.status||"SUCCESS"===s.status)&&(0,o.default)(C,{action:"DELETE",width:"20",txt:"\u5220\u9664",onClick:function(){return e.handleDeleteAction()},className:"fn-left opt-btn"}))))},t}(c.default.Component);t.default=E},"./src/module/serviceCode/detailPage/ServiceCodeDetail.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=c(a("./src/module/serviceCode/detailPage/BaseInfo.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.div.withConfig({displayName:"ServiceCodeDetail__ModelServiceDetailWrapper",componentId:"joc912-0"})(["width:100%;position:relative;background:#fff;padding:20px;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{margin-top:20px;.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-tab{font-size:16px;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);}}"]),f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.codeId=_.get(a.match.params,"codeId"),n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(p,{},void 0,(0,n.default)(u.default,{codeId:this.codeId}))},t}(i.default.PureComponent);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/module/serviceCode/editPage/EditCodeService.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/col/index.js")),o=b(a("./node_modules/antd/es/row/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/antd/es/message/index.js")),i=b(a("./node_modules/babel-runtime/helpers/extends.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=b(a("./node_modules/react/index.js")),f=b(a("./node_modules/dayjs/dayjs.min.js")),m=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=a("./src/components/index.js"),y=a("./src/redux/services/serviceCode.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=g.Form.Item,C=c.default.TextArea,j=m.default.div.withConfig({displayName:"EditCodeService__DetailInfoWrapper",componentId:"gqxtu9-0"})(["background:#fff;padding:20px;.edit__icon{margin-left:10px;}.display__value{word-break:break-word;}.ant-col-8{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:40%;}"]),S={labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:8}}},I=(0,s.default)(v.LoadingIndicator,{position:"relative"}),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleChangeNameStatus=function(){n.setState((function(e){return{isModifyName:!e.isModifyName}}))},n.handleChangeDescStatus=function(){n.setState((function(e){return{isModifyDesc:!e.isModifyDesc}}))},n.handleOnChange=function(e,t){var a=(0,i.default)({},n.state.baseInfo);"resourceName"===e?(a.resourceName=t,n.setState({baseInfo:a})):(a.resourceDesc=t,n.setState({baseInfo:a}))},n.handleSaveBasicInfo=function(e,t){var a=n;if(""===t||null===t)r.default.info("\u8bf7\u586b\u5199\u5bf9\u5e94\u4fe1\u606f");else{var o=n.state.baseInfo,s={resourceId:n.codeId,resourceName:o.resourceName};"resourceName"===e?(0,y.checkCodeNameRepeat)({resId:n.codeId,resName:t}).then((function(e){e.data?r.default.error("\u4ee3\u7801\u5305\u540d\u79f0\u91cd\u590d"):(o.resourceName=t,s.resourceName=t,a.setState({baseInfo:(0,i.default)({},o),isModifyName:!1}),a.saveMirrorInfo(s))})):(o.resourceDesc=t,s.resourceDesc=t,n.setState({baseInfo:(0,i.default)({},o),isModifyDesc:!1}),n.saveMirrorInfo(s))}},n.saveMirrorInfo=function(e){(0,y.updateServiceCodeInfo)(e).then((function(e){e&&r.default.success("\u4fee\u6539\u6210\u529f\uff01")})).catch((function(e){r.default.error(e.message)}))},n.state={baseInfo:{},versionInfo:{},loading:!0,isModifyName:!1,isModifyDesc:!1},n.codeId=_.get(a.match,"params.codeId",null),n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this;(0,y.getServiceCodeInfo)(this.codeId).then((function(t){t&&e.setState({baseInfo:t.data||{},loading:!1})})).catch((function(t){e.setState({loading:!1}),r.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.baseInfo,r=t.loading,d=t.isModifyName,l=t.isModifyDesc,u=_.get(a,"createTime"),m=_.get(a,"updateTime");return(0,s.default)(j,{},void 0,(0,s.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,r&&I,!r&&p.default.createElement(g.Form,(0,i.default)({},S,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\serviceCode\\editPage\\EditCodeService.jsx",lineNumber:140}}),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(x,{label:"\u4ee3\u7801\u5305\u540d\u79f0"},void 0,d?(0,s.default)(c.default,{width:150,onChange:function(t){return e.handleOnChange("resourceName",t.target.value)},value:a.resourceName,onBlur:function(t){return e.handleSaveBasicInfo("resourceName",t.target.value)}}):(0,s.default)("div",{style:{display:"flex",width:200},className:"display__value"},void 0,(0,s.default)("div",{},void 0,_.get(a,"resourceName","")),(0,s.default)("div",{},void 0,(0,s.default)(h.EditOutlined,{className:"edit__icon",onClick:this.handleChangeNameStatus}))))),(0,s.default)(n.default,{span:8},void 0,(0,s.default)(x,{label:"\u5f52\u5c5e\u5e94\u7528"},void 0,_.get(a,"businessTypeName","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(x,{label:"\u521b\u5efa\u65f6\u95f4"},void 0,u?(0,f.default)(u).format("YYYY-MM-DD"):"--")),(0,s.default)(n.default,{span:10},void 0,(0,s.default)(x,{label:"\u4fee\u6539\u65f6\u95f4"},void 0,m?(0,f.default)(m).format("YYYY-MM-DD"):"--"))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:8},void 0,(0,s.default)(x,{label:"\u521b\u5efa\u4eba"},void 0,_.get(a,"createCode")))),(0,s.default)(o.default,{style:{marginLeft:"-2%"}},void 0,(0,s.default)(n.default,{span:24},void 0,(0,s.default)(x,{labelCol:{span:2},wrapperCol:{sm:20},label:"\u63cf\u8ff0"},void 0,l?(0,s.default)(C,{autoSize:{minRows:5,maxRows:12},style:{width:850,marginRight:10,min:0,max:200,marginTop:10},value:a.resourceDesc,onChange:function(t){return e.handleOnChange("resourceDesc",t.target.value)},onBlur:function(t){return e.handleSaveBasicInfo("resourceDesc",t.target.value)},rows:8}):(0,s.default)("div",{style:{wordBreak:"break-all",wordWrap:"break-word",maxWidth:850}},void 0,_.get(a,"resourceDesc",""),(0,s.default)(h.EditOutlined,{className:"edit__icon",onClick:this.handleChangeDescStatus}))))))))},t}(p.default.PureComponent);t.default=T},"./src/module/serviceCode/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/serviceCode/listPage/ServiceCodeListPage.jsx");Object.defineProperty(t,"ServiceCodeListPage",{enumerable:!0,get:function(){return d(n).default}});var o=a("./src/module/serviceCode/codeVersions/listPage/ServiceCodeVersionList.jsx");Object.defineProperty(t,"ServiceCodeVersionListPage",{enumerable:!0,get:function(){return d(o).default}});var s=a("./src/module/serviceCode/createPage/ImportServiceCode.jsx");Object.defineProperty(t,"ImportServiceCodePage",{enumerable:!0,get:function(){return d(s).default}});var r=a("./src/module/serviceCode/detailPage/ServiceCodeDetail.jsx");Object.defineProperty(t,"ServiceCodeDetailPage",{enumerable:!0,get:function(){return d(r).default}});var i=a("./src/module/serviceCode/editPage/EditCodeService.jsx");function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"EditCodeServicePage",{enumerable:!0,get:function(){return d(i).default}})},"./src/module/serviceCode/listPage/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/extends.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js")),d=f(a("./node_modules/antd/es/input/index.js")),l=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=f(a("./node_modules/react/index.js")),c=(f(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),p=a("./src/styles/GlobalStyle.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=l.default.Option,h=d.default.Search,g={width:"130px"},v=(0,o.default)(m,{value:""},void 0,"\u5168\u90e8\u5e94\u7528"),y=(0,o.default)(m,{value:"res_Name"},void 0,"\u540d\u79f0\u6392\u5e8f"),b=(0,o.default)(m,{value:"update_time"},void 0,"\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),x=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("resName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("orderBy"),n.changeBusiType=n.changeSelect("businessType"),n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this;return(0,o.default)(p.SearchBarWrapper,{className:"search-bar"},void 0,(0,o.default)(c.RefreshButton,{onRefresh:this.props.onChange}),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(l.default,{showSearch:!0,onChange:this.changeBusiType,style:g,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528",defaultValue:this.props.businessType,className:"sortType-cond",filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,v,this.props.applicationsData.map((function(e){return(0,o.default)(m,{value:e.projectApplicationId,label:e.applicationName},e.projectApplicationId,e.applicationName)})))),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(l.default,{id:"sort",name:"sort",onChange:this.changeSortField,style:g,placeholder:"\u6392\u5e8f\u6761\u4ef6",className:"item-cond"},void 0,y,b)),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(h,{allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",style:(0,n.default)({},g,{width:"200px"}),onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(u.default.Component);t.default=x},"./src/module/serviceCode/listPage/ServiceCodeListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/button/index.js")),o=C(a("./node_modules/antd/es/tooltip/index.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/antd/es/message/index.js")),i=C(a("./node_modules/antd/es/modal/index.js")),d=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=C(a("./node_modules/react/index.js")),p=C(a("./node_modules/lodash/lodash.js")),f=C(a("./node_modules/dayjs/dayjs.min.js")),m=a("./src/components/index.js"),h=C(a("./src/module/serviceCode/components/ImportServiceCode.jsx")),g=C(a("./src/module/serviceCode/listPage/SearchBar.jsx")),v=a("./src/routes/routeHelper.jsx"),_=a("./src/redux/services/serviceCode.js"),y=a("./src/styles/GlobalStyle.js"),b=C(a("./src/redux/services/sysManager/projectManage.js")),x=a("./node_modules/react-router-dom/esm/react-router-dom.js");function C(e){return e&&e.__esModule?e:{default:e}}var j={import:"\u670d\u52a1\u4ee3\u7801\u5bfc\u5165",edit:"\u670d\u52a1\u4ee3\u7801\u4fee\u6539",view:"\u670d\u52a1\u4ee3\u7801\u67e5\u770b"},S=(0,s.default)(m.LoadingIndicator,{position:"relative"}),I=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleDelete=function(e){var t;i.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u670d\u52a1\u4ee3\u7801?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return new Promise((function(t,a){(0,_.deleteServiceCode)(e).then((function(){t(),r.default.success("\u5220\u9664\u6210\u529f"),n.fetchData()})).catch((function(){a()}))}))},t))},n.openModalVisible=function(e,t){n.templateInfo=e,n.setState({modalVisible:!0,viewType:t})},n.closeModal=function(e){var t=n;n.templateInfo=null,"submit"===e?(n.setState({modalVisible:!1}),n.fetchData()):i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1})}})},n.fetchData=function(e){n.setState({listLoading:"intervalRefresh"!==e}),(0,_.getServiceCodeList)({paramjson:n.searchCond}).then((function(e){n.setState({serviceCodeList:p.default.get(e,"data",[]),listLoading:!1,usedApplications:p.default.groupBy(p.default.get(e,"data",[]),"businessType")})})).catch((function(){return n.setState({listLoading:!1,intervalRefreshLoading:!1})}))},n.fetchApplications=function(){b.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsData:e.data})})).catch((function(e){r.default.error(e.message)}))},n.changeSearchCond=function(e,t){"refresh"!==e?(n.searchCond[e]=p.default.trim(t),"businessType"===e&&(n.applicationId=""),n.fetchData()):n.fetchData(t)},n.callVisible=function(e){n.setState({modalVisible:!1,viewType:""}),e&&n.fetchData()},n.state={modalVisible:!1,viewType:"",serviceCodeList:[],listLoading:!1,applicationsData:[],usedApplications:{}},n.applicationId=p.default.get(a,"location.state.applicationId",""),n.searchCond={isPage:"N",resourceFileType:"CODE",businessType:n.applicationId},n.columns=[{title:"\u5e8f\u53f7",width:80,dataIndex:"index",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u670d\u52a1\u4ee3\u7801\u540d\u79f0",dataIndex:"resourceName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7248\u672c\u6570\u91cf",width:100,dataIndex:"resourceVersionCount",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",width:140,dataIndex:"createCode",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",width:160,dataIndex:"createTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u66f4\u65b0\u65f6\u95f4",width:160,dataIndex:"updateTime",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,f.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u64cd\u4f5c",width:160,render:function(e){var t=[];return t.push({handleName:"\u67e5\u770b",style:{display:"inline-block"},handleType:"link",handleAction:v.modelServiceCodeUrl.detail(e.resourceId)}),t.push({handleName:"\u4fee\u6539",handleType:"link",handleAction:v.modelServiceCodeUrl.edit(e.resourceId)}),t.push({handleName:"\u5220\u9664",handleAction:function(){n.handleDelete(e.resourceId)}}),(0,s.default)(m.ListButtons,{buttons:t,maxShowNum:2})}}],n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(),this.fetchApplications()},t.prototype.render=function(){var e=this.state,t=e.viewType,a=e.modalVisible,o=e.serviceCodeList,r=e.listLoading;return(0,s.default)(y.PageWrapper,{},void 0,(0,s.default)(m.ModalView,{viewType:t,modalTitle:j[t],onCancelType:!1,width:1e3,callVisible:this.callVisible,modalVisible:a,comp:(0,s.default)(h.default,{viewType:t,resourceId:p.default.get(this.templateInfo,"resourceId"),applicationsData:this.state.applicationsData,usedApplications:this.state.usedApplications,applicationId:this.applicationId,callVisible:this.callVisible})}),(0,s.default)(y.PageHeader,{className:this.applicationId&&o.length>0?"right":""},void 0,!(this.applicationId&&o.length>0)&&(0,s.default)(n.default,{className:"import__btn",type:"primary"},void 0,(0,s.default)(x.Link,{to:v.modelServiceCodeUrl.create()},void 0,"\u5bfc\u5165\u4ee3\u7801\u5305")),(0,s.default)(g.default,{onChange:this.changeSearchCond,applicationsData:this.state.applicationsData,businessType:this.searchCond.businessType})),(0,s.default)(y.PageBody,{},void 0,(0,s.default)(y.TableWrapper,{},void 0,r?S:(0,s.default)(c.default.Fragment,{},void 0,(0,s.default)(m.ResizableTable,{dataSource:o,rowKey:"resourceId",bordered:!0,columns:this.columns})))))},t}(c.default.Component);t.default=I},"./src/module/sonApp/SonMainPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=p(a("./node_modules/babel-runtime/helpers/inherits.js")),r=p(a("./node_modules/react/index.js")),i=a("./node_modules/react-redux/es/index.js"),d=a("./node_modules/reselect/lib/index.js"),l=a("./node_modules/qiankun/es/index.js"),u=p(a("./src/containers/actions.js")),c=a("./src/utils/constants.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(a){(0,n.default)(this,t);var s=(0,o.default)(this,e.call(this,a));return s.containerRef=r.default.createRef(),s.microApp=null,s.state={activeRule:"/son-app/mark-tool"},s}return(0,s.default)(t,e),t.prototype.componentDidMount=function(){u.default.setGlobalState({integration:!0,parentData:{activeRule:this.state.activeRule,serverUrl:(0,c.getWrapPDFUrl)()}}),this.microApp=(0,l.loadMicroApp)({name:"labeling-tool-front",entry:"/mark-tool/",container:this.containerRef.current,activeRule:this.state.activeRule,props:{actions:u.default}},{sandbox:{strictStyleIsolation:!0,experimentalStyleIsolation:!0}})},t.prototype.componentWillUnmount=function(){this.microApp.unmount()},t.prototype.componentDidUpdate=function(){this.microApp.update({name:"kuitos"})},t.prototype.render=function(){return r.default.createElement("div",{ref:this.containerRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sonApp\\SonMainPage.jsx",lineNumber:47}})},t}(r.default.PureComponent);f.defaultProps={};var m=(0,d.createStructuredSelector)({});t.default=(0,i.connect)(m)(f)},"./src/module/sonApp/SonManage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/jsx.js")),o=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=l(a("./node_modules/babel-runtime/helpers/inherits.js")),i=l(a("./node_modules/react/index.js")),d=l(a("./src/module/sonApp/SonMainPage.jsx"));function l(e){return e&&e.__esModule?e:{default:e}}var u=(0,n.default)("div",{},void 0,(0,n.default)(d.default,{})),c=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.render=function(){return u},t}(i.default.Component);t.default=c},"./src/module/sonApp/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/sonApp/SonManage.jsx");Object.defineProperty(t,"SonManage",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}})},"./src/module/sysManage/apiUserManager/apiUserDetail/ApiUserDetailPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/tooltip/index.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/babel-runtime/helpers/extends.js")),r=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=x(a("./node_modules/babel-runtime/helpers/inherits.js")),l=x(a("./node_modules/antd/es/input/index.js")),u="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\apiUserManager\\apiUserDetail\\ApiUserDetailPage.jsx";a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/icons/es/index.js"),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=a("./src/utils/authPermit.js"),g=a("./src/components/index.js"),v=a("./src/redux/services/sysManager/apiUserManager.js"),y=x(a("./src/module/sysManage/apiUserManager/apiUserDetail/BaseInfo.jsx")),b=x(a("./src/module/sysManage/apiUserManager/apiUserDetail/ServiceAuth.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=l.default.TextArea,j=m.Form.Item,S=p.default.div.withConfig({displayName:"ApiUserDetailPage__DetailBaseInfoWrapper",componentId:"sc-1027x3p-0"})(["display:flex;flex-direction:column;border:1px solid #eee;padding:20px;background:#fff;.baseInfo-wrapper{border:1px solid #eee;padding:16px;}.left__content-wrapper{width:100%;margin-right:24px;}.left__top-line1{display:flex;align-items:center;}.left__top-line2{margin-top:10px;}.top__line1-section{&:not(:last-child){margin-right:16px;}}.base__info-name{font-size:18px;font-weight:700;}.lin2__item-text{margin-right:24px;}.baseInfo-body{margin-top:16px;}"]),I=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n._handleClick=function(e){n.state.isModifyName&&n.apiUserNameRef.current&&_.get(n.apiUserNameRef,"current.props.id")!==_.get(e,"target.id")&&n.handleChangeNameStatus(),n.state.isModifyDesc&&n.apiUserDescRef.current&&_.get(n.apiUserDescRef,"current.props.id")!==_.get(e,"target.id")&&n.handleChangeDescStatus()},n.fetchData=function(){n.setState({loading:!0}),(0,v.getApiUserInfo)(n.apiUserId).then((function(e){n.setState({apiUserInfo:e.data})})).catch((function(){n.setState({loading:!1})}))},n.handleChangeNameStatus=function(){n.setState((function(e){return{isModifyName:!e.isModifyName}}))},n.handleChangeDescStatus=function(){n.setState((function(e){return{isModifyDesc:!e.isModifyDesc}}))},n.getValBlur=function(e,t){var a,o;(0,v.updateApiUser)(n.apiUserId,(a={},a[e]=t,a)).then((function(){var a=(0,s.default)({},n.state.apiUserInfo);a[e]=t,n.setState({apiUserInfo:a,isModifyName:!1,isModifyDesc:!1})})),n.props.form.setFieldsValue(((o={})[e]=t,o))};var o=(0,h.getCurrentContext)(),d=o.role,l=o.id;return n.apiUserId=_.get(a.match.params,"apiUserId"),n.apiUserId||"API_USER"!==d||(n.apiUserId=l),n.apiUserNameRef=c.default.createRef(),n.apiUserDescRef=c.default.createRef(),n.state={loading:!1,isModifyName:!1,isModifyDesc:!1,apiUserInfo:{}},n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){window.addEventListener("click",this._handleClick,!0),this.fetchData()},t.prototype.componentWillMount=function(){window.removeEventListener("click",this._handleClick,!0)},t.prototype.render=function(){var e=this,t=this.state,a=t.apiUserInfo,s=t.isModifyName,r=t.isModifyDesc,i=this.props.form.getFieldDecorator;return(0,o.default)(S,{},void 0,(0,o.default)("div",{className:"baseInfo-wrapper"},void 0,(0,o.default)("div",{className:"left__content-wrapper"},void 0,(0,o.default)(m.Form,{layout:"inline"},void 0,(0,o.default)("div",{className:"left__top-wrapper"},void 0,(0,o.default)("div",{className:"left__top-line1"},void 0,s?(0,o.default)("div",{className:"left__top-line1"},void 0,i("apiUserName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165API\u7528\u6237\u540d\u79f0"},{min:0,max:30,message:"API\u7528\u6237\u540d\u79f0\u4e0d\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:a.apiUserName})(c.default.createElement(l.default,{ref:this.apiUserNameRef,placeholder:"\u8bf7\u8f93\u5165API\u7528\u6237\u540d\u79f0",onBlur:function(t){return e.getValBlur("apiUserName",t.target.value)},__source:{fileName:u,lineNumber:164}}))):(0,o.default)("div",{className:"base__info-name top__line1-section"},void 0,a.apiUserName,(0,o.default)(n.default,{title:"\u4fee\u6539"},void 0,(0,o.default)(f.FormOutlined,{onClick:this.handleChangeNameStatus,style:{marginLeft:16,fontSize:16,cursor:"pointer"}})))),(0,o.default)("div",{className:"left__top-line2"},void 0,(0,o.default)("span",{className:"lin2__item-text"},void 0,"\u521b\u5efa\u4eba\uff1a",a.userName),r?(0,o.default)("div",{},void 0,(0,o.default)(j,{label:"\u63cf\u8ff0",style:{display:"flex",marginTop:16}},void 0,i("apiUserDesc",{rules:[{max:200,message:"\u63cf\u8ff0\u4e0d\u5f97\u8d85\u8fc7200\u4e2a\u5b57\u7b26"}],initialValue:a.apiUserDesc})(c.default.createElement(C,{ref:this.apiUserDescRef,value:a.apiUserDesc,autoSize:{minRows:3,maxRows:4},style:{width:"700px"},placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onBlur:function(t){return e.getValBlur("apiUserDesc",t.target.value)},__source:{fileName:u,lineNumber:197}})))):(0,o.default)("span",{className:"lin2__item-text"},void 0,"\u63cf\u8ff0\uff1a",a.apiUserDesc,(0,o.default)(n.default,{title:"\u4fee\u6539"},void 0,(0,o.default)(f.FormOutlined,{onClick:this.handleChangeDescStatus,style:{marginLeft:16,fontSize:16,cursor:"pointer"}})))))))),(0,o.default)("div",{className:"baseInfo-body"},void 0,(0,o.default)(y.default,{apiUserInfo:a}),(0,o.default)(g.ModelConfigPanel,{title:"\u670d\u52a1\u6388\u6743\u4fe1\u606f"},void 0,(0,o.default)(b.default,{apiUserId:this.apiUserId}))))},t}(c.default.Component);t.default=m.Form.create()(I)},"./src/module/sysManage/apiUserManager/apiUserDetail/BaseInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/col/index.js")),o=h(a("./node_modules/antd/es/row/index.js")),s=h(a("./node_modules/babel-runtime/helpers/jsx.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var l=h(a("./node_modules/react/index.js")),u=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(h(a("./node_modules/prop-types/index.js")),h(a("./src/utils/constants.js"))),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/components/index.js"),m=h(a("./src/components/markdown/MarkdownView.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var g=p.Form.Item,v=u.default.div.withConfig({displayName:"BaseInfo__DetailInfoWrapper",componentId:"sc-1thq22d-0"})(["background:#fff;.ant-form-item{margin-bottom:0;}"]),_=(0,s.default)(m.default,{title:"\u83b7\u53d6token\u8bf7\u6c42",markdownUrl:"docs/get-token.md"}),y=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.docClick=function(){n.setState({modalVisible:!0})},n.callModalVisible=function(){n.setState({modalVisible:!1})},n.state={apiUserInfo:{},loading:!0,modalVisible:!1},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props.apiUserInfo;return(0,s.default)(v,{},void 0,(0,s.default)(f.ModalView,{viewType:"view",modalTitle:"\u6587\u6863\u4fe1\u606f",onCancelType:!1,width:1100,callVisible:this.callModalVisible,modalVisible:this.state.modalVisible,comp:_}),(0,s.default)(f.ModelConfigPanel,{title:"\u8ba4\u8bc1\u4fe1\u606f"},void 0,(0,s.default)(p.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)(g,{label:"API\u7528\u6237ID"},void 0,e.apiUserId)),(0,s.default)(g,{label:"\u5bc6\u94a5"},void 0,e.token)),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:6},void 0,(0,s.default)(g,{label:"token\u6709\u6548\u671f"},void 0,-1===e.validityPeriod?"\u6c38\u4e45":"\u4e34\u65f6")),-1!==e.validityPeriod&&(0,s.default)(g,{label:"\u5230\u671f\u65f6\u95f4"},void 0,e.expireTime)),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:20},void 0,(0,s.default)(g,{label:"\u83b7\u53d6token\u8bf7\u6c42"},void 0,c.default.SERVER_URL+"/aiSquare/openApi/uc/oauth/token",(0,s.default)("a",{style:{marginLeft:10},href:"javascript:;",onClick:this.docClick},void 0,"\u67e5\u770b\u6587\u6863")))))))},t}(l.default.PureComponent);t.default=y},"./src/module/sysManage/apiUserManager/apiUserDetail/ServiceAuth.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/table/index.js")),o=b(a("./node_modules/antd/es/button/index.js")),s=b(a("./node_modules/antd/es/tooltip/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/babel-runtime/helpers/extends.js")),d=b(a("./node_modules/antd/es/modal/index.js")),l=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=b(a("./node_modules/react/index.js")),f=b(a("./node_modules/lodash/lodash.js")),m=(b(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),h=b(a("./src/module/sysManage/apiUserManager/components/CreateApiUser.jsx")),g=a("./src/routes/routeHelper.jsx"),v=a("./src/utils/history.js"),_=a("./src/styles/GlobalStyle.js"),y=a("./src/redux/services/sysManager/apiUserManager.js");function b(e){return e&&e.__esModule?e:{default:e}}var x={create:"API\u7528\u6237\u65b0\u5efa",edit:"API\u7528\u6237\u4fee\u6539",view:"API\u7528\u6237\u67e5\u770b"},C=(0,r.default)(m.LoadingIndicator,{position:"relative"}),j=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.openModalVisible=function(e,t){n.apiUserInfo=e,n.setState({modalVisible:!0,viewType:t})},n.closeModal=function(e){var t=n;n.apiUserInfo=null,"submit"===e?(n.setState({modalVisible:!1}),n.fetchData()):d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1})}})},n.fetchData=function(){n.setState({listLoading:!0}),(0,y.getApiUserSerPermit)(n.props.apiUserId).then((function(e){var t=n.unionByServiceId(e.data);n.setState({apiUserList:t,listLoading:!1})})).catch((function(){return n.setState({listLoading:!1})}))},n.unionByServiceId=function(e){if(!Array.isArray(e)||0===e.length)return[];var t=[],a=f.default.groupBy(e,"serviceId");for(var n in a){var o=a[n],s=o.reduce((function(e,t){return e?e+"\u3001"+t.interfaceName:t.interfaceName}),"");t.push((0,i.default)({},o[0],{interfaceName:s}))}return t},n.callVisible=function(e){n.setState({modalVisible:!1,viewType:""}),e&&n.fetchData()},n.changeSearchCond=function(e,t){n.searchCond[e]=f.default.trim(t),n.fetchData()},n.state={modalVisible:!1,viewType:"",apiUserList:[],listLoading:!1,currentPage:1,totalCount:0},n.searchCond={},n.columns=[{title:"\u5e8f\u53f7",width:"8%",dataIndex:"index",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5e94\u7528\u540d\u79f0",dataIndex:"applicationName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u670d\u52a1\u540d\u79f0",dataIndex:"serviceName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u63a5\u53e3\u540d\u79f0",dataIndex:"interfaceName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}}],n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.viewType,s=t.currentPage,i=t.modalVisible,d=t.apiUserList,l=t.totalCount,u=t.listLoading;return(0,r.default)(_.PageWrapper,{style:{padding:0}},void 0,(0,r.default)(m.ModalView,{viewType:a,modalTitle:x[a],onCancelType:!1,width:1e3,callVisible:this.callVisible,modalVisible:i,comp:(0,r.default)(h.default,{viewType:a,apiUserId:f.default.get(this.apiUserInfo,"apiUserId"),callVisible:this.callVisible})}),(0,r.default)(_.PageHeader,{},void 0,(0,r.default)(o.default,{size:"small",onClick:function(){(0,v.navigateTo)(g.operationUrl.applyServiceCreate(e.props.apiUserId))},className:"import__btn",type:"primary"},void 0,"\u7533\u8bf7\u670d\u52a1\u6743\u9650")),(0,r.default)(_.PageBody,{},void 0,(0,r.default)(_.TableWrapper,{},void 0,u?C:(0,r.default)(p.default.Fragment,{},void 0,(0,r.default)(n.default,{dataSource:d,rowKey:"apiUserId",bordered:!0,pagination:!1,columns:this.columns}),(0,r.default)(m.TabPagination,{currentPage:s,pageSize:10,total:l,onChange:this.onChangePage})))))},t}(p.default.Component);t.default=j},"./src/module/sysManage/apiUserManager/apiUserJoin/ApiUserJoinPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/button/index.js")),o=y(a("./node_modules/antd/es/row/index.js")),s=y(a("./node_modules/babel-runtime/helpers/jsx.js")),r=y(a("./node_modules/antd/es/message/index.js")),i=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=y(a("./node_modules/babel-runtime/helpers/inherits.js")),u=y(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var c=y(a("./node_modules/react/index.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(y(a("./node_modules/prop-types/index.js")),y(a("./src/components/common/CheckName.jsx"))),g=a("./src/components/index.js"),v=a("./src/redux/selectors/checkName.js"),_=a("./src/redux/services/sysManager/apiUserManager.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=f.Form.Item,x=u.default.TextArea,C=m.default.div.withConfig({displayName:"ApiUserJoinPage__PageWrapper",componentId:"zjrb53-0"})(["overflow-x:hidden;min-height:200px;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;padding:24px 16px;border:0px;.ant-legacy-form-item-label{width:100px;}.page-footer{width:100%;text-align:right;button{margin-left:16px;}}.error-border{border:1px solid\xa0red;}"]),j={width:"100%"},S=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.submitModalOk=function(){var e=n.props.checkNameVerifyInfo.toJS(),t=e.verifyStatus,a=e.verifyMsg;if(-1===t)return r.default.error(a),!1;n.props.form.validateFieldsAndScroll((function(e){if(null===e){var t={apiUserName:n.state.apiUserName,apiUserDesc:n.state.apiUserDesc,userId:"",validityPeriod:1};n.setState({confirmLoading:!0}),(0,_.createApiUser)(t).then((function(){r.default.success("\u4fdd\u5b58\u6210\u529f"),n.setState({confirmLoading:!1}),n.props.onRefreshData("API_USER")})).catch((function(){n.setState({confirmLoading:!1})}))}}))},n.updateFormData=function(e,t){var a;n.setState(((a={})[e]=t,a))},n.state={confirmLoading:!1,apiUserName:"",apiUserDesc:""},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,s.default)(C,{},void 0,(0,s.default)(g.ModelConfigPanel,{title:"\u9996\u6b21\u767b\u5f55\uff0c\u8bf7\u5b8c\u5584API\u7528\u6237\u4fe1\u606f",style:j},void 0,(0,s.default)(f.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(b,{help:"",label:"API\u7528\u6237\u540d\u79f0"},void 0,t("name",{rules:[{required:!0,message:"API\u7528\u6237\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"},{validator:this.handleCheckNameValidate}],initialValue:this.state.apiUserName})(c.default.createElement(h.default,{ref:this.checkNameRef,source:"apiUser",style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165API\u7528\u6237\u540d\u79f0",modelId:"",updateNameCallback:function(t){return e.updateFormData("apiUserName",t)},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\apiUserManager\\apiUserJoin\\ApiUserJoinPage.jsx",lineNumber:116}})))),(0,s.default)(o.default,{style:{marginTop:16}},void 0,(0,s.default)(b,{label:"API\u7528\u6237\u63cf\u8ff0"},void 0,t("apiUserDesc",{rules:[{max:200,message:"\u63cf\u8ff0\u4e0d\u5f97\u8d85\u8fc7200\u4e2a\u5b57\u7b26"}],initialValue:this.state.apiUserDesc})((0,s.default)(x,{rows:4,style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165API\u7528\u6237\u63cf\u8ff0",onBlur:function(t){return e.updateFormData("apiUserDesc",t.target.value)}})))))),(0,s.default)("div",{className:"page-footer"},void 0,(0,s.default)(n.default,{type:"primary",onClick:this.submitModalOk,loading:this.state.confirmLoading},void 0,"\u63d0\u4ea4"),(0,s.default)(n.default,{onClick:this.props.onCancel},void 0,"\u53d6\u6d88")))},t}(c.default.PureComponent);t.default=(0,p.connect)((function(e){return{checkNameVerifyInfo:(0,v.selectVerifyInfo)(e)}}))(f.Form.create()(S))},"./src/module/sysManage/apiUserManager/apiUserList/ApiUserListPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/antd/es/tooltip/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/antd/es/message/index.js")),d=C(a("./node_modules/antd/es/modal/index.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=C(a("./node_modules/react/index.js")),f=C(a("./node_modules/lodash/lodash.js")),m=C(a("./node_modules/dayjs/dayjs.min.js")),h=a("./src/components/index.js"),g=C(a("./src/module/sysManage/apiUserManager/components/CreateApiUser.jsx")),v=C(a("./src/module/sysManage/apiUserManager/apiUserList/SearchBar.jsx")),_=a("./src/styles/GlobalStyle.js"),y=a("./src/routes/routeHelper.jsx"),b=a("./src/redux/services/sysManager/apiUserManager.js"),x=a("./src/module/sysManage/apiUserManager/modelEnums.js");function C(e){return e&&e.__esModule?e:{default:e}}var j={create:"API\u7528\u6237\u65b0\u5efa",edit:"API\u7528\u6237\u4fee\u6539",view:"API\u7528\u6237\u67e5\u770b"},S=(0,r.default)(h.LoadingIndicator,{position:"relative"}),I=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.handleChangeStatus=function(e){var t=1===e.status?"lock":"unlock",a=1===e.status?"\u7981\u7528":"\u542f\u7528";d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+a+"API\u7528\u6237["+e.apiUserName+"]?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(o,s){(0,b.updateApiUserStatus)(e.apiUserId,t).then((function(){o(),i.default.success(a+"\u6210\u529f"),n.fetchData()})).catch((function(){return s()}))}))}})},n.handleDelete=function(e){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664API\u7528\u6237["+e.apiUserName+"]?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){(0,b.deleteApiUser)(e.apiUserId).then((function(){t(),i.default.success("\u5220\u9664\u6210\u529f"),n.fetchData()})).catch((function(){return a()}))}))}})},n.openModalVisible=function(e,t){n.apiUserInfo=e,n.setState({modalVisible:!0,viewType:t})},n.closeModal=function(e){var t=n;n.apiUserInfo=null,"submit"===e?(n.setState({modalVisible:!1}),n.fetchData()):d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1})}})},n.fetchData=function(){n.setState({listLoading:!0}),(0,b.getApiUsers)(n.searchCond).then((function(e){n.setState({apiUserList:e.data,listLoading:!1})})).catch((function(){return n.setState({listLoading:!1})}))},n.callVisible=function(e){n.setState({modalVisible:!1,viewType:""}),e&&n.fetchData()},n.changeSearchCond=function(e,t){n.searchCond[e]=f.default.trim(t),n.fetchData()},n.state={modalVisible:!1,viewType:"",apiUserList:[],listLoading:!1,currentPage:1,totalCount:0},n.searchCond={apiUserType:1,sortBy:"createAt.desc"},n.columns=[{title:"\u5e8f\u53f7",width:80,dataIndex:"index",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"API\u7528\u6237\u540d\u79f0",dataIndex:"apiUserName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"API\u7528\u6237ID",dataIndex:"apiUserId",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"token\u7c7b\u578b",dataIndex:"validityPeriod",ellipsis:!0,render:function(e){return-1===e?"\u6c38\u4e45":"\u4e34\u65f6"}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"")}},{title:"\u5230\u671f\u65e5\u671f",dataIndex:"expireTime",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):""},void 0,e?(0,m.default)(e).format("YYYY-MM-DD HH:mm:ss"):"--")}},{title:"\u72b6\u6001",width:80,dataIndex:"status",render:function(e){return x.STATUS.getDescFromValue(e)}},{title:"\u64cd\u4f5c",width:160,render:function(e){var t=[];return t.push({handleName:"\u67e5\u770b",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:y.operationUrl.apiUserDetail(e.apiUserId),handleType:"link"}),t.push({handleName:"\u4fee\u6539",style:{display:"inline-block",whiteSpace:"nowrap"},handleAction:function(){n.openModalVisible(e,"edit")}}),t.push({handleName:1===e.status?"\u7981\u7528":"\u542f\u7528",handleAction:function(){n.handleChangeStatus(e)}}),t.push({handleName:"\u5220\u9664",handleAction:function(){n.handleDelete(e)}}),(0,r.default)(h.ListButtons,{buttons:t,maxShowNum:2})}}],n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.viewType,s=t.modalVisible,i=t.apiUserList,d=t.listLoading;return(0,r.default)(_.PageWrapper,{},void 0,(0,r.default)(h.ModalView,{viewType:a,modalTitle:j[a],onCancelType:!1,width:1e3,callVisible:this.callVisible,modalVisible:s,comp:(0,r.default)(g.default,{viewType:a,apiUserId:f.default.get(this.apiUserInfo,"apiUserId"),callVisible:this.callVisible})}),(0,r.default)(_.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){e.openModalVisible(null,"create")},className:"import__btn",type:"primary"},void 0,"\u65b0\u5efaAPI\u7528\u6237"),(0,r.default)(v.default,{onChange:this.changeSearchCond})),(0,r.default)(_.PageBody,{},void 0,(0,r.default)(_.TableWrapper,{},void 0,d?S:(0,r.default)(p.default.Fragment,{},void 0,(0,r.default)(n.default,{dataSource:i,rowKey:"apiUserId",bordered:!0,columns:this.columns})))))},t}(p.default.Component);t.default=I},"./src/module/sysManage/apiUserManager/apiUserList/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js")),d=p(a("./node_modules/antd/es/input/index.js")),l=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var u=p(a("./node_modules/react/index.js")),c=(p(a("./node_modules/prop-types/index.js")),a("./src/styles/GlobalStyle.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.Option,m=d.default.Search,h={width:"130px"},g=(0,o.default)(f,{value:"apiUserName.asc"},void 0,"\u540d\u79f0\u6392\u5e8f"),v=(0,o.default)(f,{value:"createAt.desc"},void 0,"\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),y=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("apiUserName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortBy"),n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this;return(0,o.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(l.default,{id:"sort",name:"sort",onChange:this.changeSortField,style:h,placeholder:"\u6392\u5e8f\u6761\u4ef6",className:"item-cond"},void 0,g,v)),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(m,{allowClear:!0,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",style:(0,n.default)({},h,{width:"200px"}),onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(u.default.Component);t.default=y},"./src/module/sysManage/apiUserManager/components/CreateApiUser.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/button/index.js")),o=S(a("./node_modules/antd/es/input-number/index.js")),s=S(a("./node_modules/antd/es/switch/index.js")),r=S(a("./node_modules/antd/es/row/index.js")),i=S(a("./node_modules/babel-runtime/helpers/jsx.js")),d=S(a("./node_modules/babel-runtime/helpers/extends.js")),l=S(a("./node_modules/antd/es/message/index.js")),u=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=S(a("./node_modules/babel-runtime/helpers/inherits.js")),f=S(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var m=S(a("./node_modules/react/index.js")),h=a("./node_modules/react-redux/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),_=(S(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),y=a("./src/utils/authPermit.js"),b=a("./src/redux/services/sysManager/apiUserManager.js"),x=a("./src/redux/selectors/checkName.js"),C=S(a("./src/components/common/CheckName.jsx")),j=S(a("./src/redux/services/sysManager/userManager.js"));function S(e){return e&&e.__esModule?e:{default:e}}var I=g.Form.Item,T=f.default.TextArea,w=v.default.div.withConfig({displayName:"CreateApiUser__CreateApiUserDom",componentId:"sc-1uuhi2v-0"})([".ant-form-inline .ant-form-item{display:flex;}.ant-input[disabled],.ant-input[disabled]:hover{z-index:10;}.ant-legacy-form-item-label,.ant-radio-wrapper{width:100px;text-align:right;}.ant-radio-wrapper{margin-right:0;margin-top:10px;}.anticon-question-circle{margin-top:12px;}.ant-form-inline .ant-form-item > .ant-legacy-form-item-label{display:flex;}.disabled .ant-input-group-addon{color:rgba(0,0,0,0.25);}.source__path-text{max-width:200px;overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;}.ant-upload-list-item .anticon-close{right:0;top:4px;}"]),E=v.default.div.withConfig({displayName:"CreateApiUser__ButtonDom",componentId:"sc-1uuhi2v-1"})(["height:42px;text-align:right;border-top:1px solid #e8e8e8;padding-top:10px;margin-top:24px;margin-left:-16px;margin-right:-16px;padding-right:16px;"]),D=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.getValBlur=function(e,t){var a;n.apiUserData[e]=t,n.props.form.setFieldsValue(((a={})[e]=t,a))},n.fetchData=function(){n.setState({userListLoading:!0}),j.default.getUsersByTenant().then((function(e){e&&n.setState({userList:e.data,userListLoading:!1})})).catch((function(){n.setState({userListLoading:!1})})),"create"!==n.props.viewType&&(0,b.getApiUserInfo)(n.props.apiUserId).then((function(e){var t=e.data||{},a=a;-1===a&&(a=void 0,n.setState({switchChecked:!0})),n.apiUserData={apiUserId:t.apiUserId,apiUserName:t.apiUserName,apiUserDesc:t.apiUserDesc,userId:t.userId,validityPeriod:0},n.props.form.setFieldsValue(n.apiUserData)})).catch()},n.saveApiUser=function(){if(event.preventDefault(),"view"!==n.props.viewType){var e=n.props.checkNameVerifyInfo.toJS(),t=e.verifyStatus,a=e.verifyMsg;if(-1===t)return l.default.error(a),!1;n.props.form.validateFields((function(e){if(!e){var t=(0,d.default)({},n.apiUserData);n.setState({saveLoading:!0}),n.state.switchChecked&&(t.validityPeriod=-1),"create"===n.props.viewType?(0,b.createApiUser)(t).then((function(){n.setState({saveLoading:!1}),n.props.callVisible(!0)})).catch((function(){n.setState({saveLoading:!1})})):(t.apiUserId=n.props.apiUserId,(0,b.updateApiUser)(n.props.apiUserId,t).then((function(){n.setState({saveLoading:!1}),n.props.callVisible(!0)})).catch((function(){n.setState({saveLoading:!1})})))}}))}else n.props.callVisible()},n.handleSwitchChange=function(e){n.setState({switchChecked:e})},n.state={saveLoading:!1,userListLoading:!1,userList:[],switchChecked:!1},n.apiUserData={validityPeriod:1},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a={marginTop:"16px",display:"flex"},d="view"===this.props.viewType;return(0,i.default)(w,{},void 0,(0,i.default)(g.Form,{layout:"inline"},void 0,(0,i.default)(_.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,i.default)(r.default,{},void 0,(0,i.default)(I,{label:"\u521b\u5efa\u4eba"},void 0,(0,y.getUser)().userName)),(0,i.default)(r.default,{style:a},void 0,(0,i.default)(I,{label:"API\u7528\u6237\u540d"},void 0,t("apiUserName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165API\u7528\u6237\u540d\u79f0"},{min:0,max:30,message:"API\u7528\u6237\u540d\u79f0\u4e0d\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.apiUserData.apiUserName})(m.default.createElement(C.default,{disabled:d,ref:this.checkNameRef,modelId:this.apiUserData.apiUserId||"",source:"apiUser",style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165API\u7528\u6237\u540d\u79f0",updateNameCallback:function(t){return e.getValBlur("apiUserName",t)},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\apiUserManager\\components\\CreateApiUser.jsx",lineNumber:200}})))),(0,i.default)(r.default,{style:a},void 0,(0,i.default)(I,{label:"API\u7528\u6237\u63cf\u8ff0"},void 0,t("apiUserDesc",{rules:[{max:200,message:"API\u7528\u6237\u63cf\u8ff0\u4e0d\u5f97\u8d85\u8fc7200\u4e2a\u5b57\u7b26"}],initialValue:this.apiUserData.apiUserDesc})((0,i.default)(T,{disabled:d,autoSize:{minRows:3,maxRows:4},style:{width:"700px"},placeholder:"\u8bf7\u8f93\u5165\u63cf\u8ff0\u5185\u5bb9",onBlur:function(t){return e.getValBlur("apiUserDesc",t.target.value)}}))))),(0,i.default)(_.ModelConfigPanel,{title:"token\u6709\u6548\u6027"},void 0,(0,i.default)(r.default,{style:{display:"flex"}},void 0,(0,i.default)(I,{label:"\u662f\u5426\u6c38\u4e45"},void 0,t("switch",{valuePropName:"checked",initialValue:this.state.switchChecked})((0,i.default)(s.default,{checkedChildren:"\u662f",unCheckedChildren:"\u5426",onChange:this.handleSwitchChange})))),(0,i.default)(r.default,{style:a},void 0,(0,i.default)(I,{label:"\u6709\u6548\u671f"},void 0,t("validityPeriod",{rules:[{required:!this.state.switchChecked,message:"\u8bf7\u8f93\u5165\u6709\u6548\u671f"}],initialValue:this.apiUserData.validityPeriod})((0,i.default)(o.default,{disabled:this.state.switchChecked,min:1,placeholder:"\u6709\u6548\u671f",onChange:function(t){return e.getValBlur("validityPeriod",t)}}))),(0,i.default)("span",{style:{lineHeight:"42px"}},void 0,"\u4e2a\u6708")))),(0,i.default)(E,{},void 0,(0,i.default)(n.default,{onClick:function(){return e.props.callVisible()}},void 0,"\u53d6\u6d88"),(0,i.default)(n.default,{loading:this.state.saveLoading,onClick:this.saveApiUser,style:{marginLeft:"10px"},type:"primary"},void 0,d?"\u786e\u5b9a":"\u4fdd\u5b58")))},t}(m.default.PureComponent);t.default=(0,h.connect)((function(e){return{checkNameVerifyInfo:(0,x.selectVerifyInfo)(e)}}))(g.Form.create()(D))},"./src/module/sysManage/apiUserManager/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.STATUS=void 0;var n,o=a("./src/utils/enums.js");var s=(0,((n=o)&&n.__esModule?n:{default:n}).default)({enable:[1,"\u6b63\u5e38"],disable:[-1,"\u5df2\u7981\u7528"]});t.STATUS=s},"./src/module/sysManage/appClassification/AppClassification.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/divider/index.js")),o=y(a("./node_modules/antd/es/table/index.js")),s=y(a("./node_modules/antd/es/button/index.js")),r=y(a("./node_modules/antd/es/tooltip/index.js")),i=y(a("./node_modules/babel-runtime/helpers/jsx.js")),d=y(a("./node_modules/antd/es/modal/index.js")),l=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=y(a("./node_modules/react/index.js")),f=a("./src/components/index.js"),m=y(a("./src/redux/services/sysManager/appClassification.js")),h=y(a("./src/module/sysManage/appClassification/component/CreateAppClassification.jsx")),g=y(a("./src/module/sysManage/appClassification/component/SearchBar.jsx")),v=a("./src/styles/GlobalStyle.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=["AI","NORMAL"],x=(0,i.default)("span",{},void 0,"\u5e8f\u53f7"),C=(0,i.default)(n.default,{type:"vertical"}),j=(0,i.default)(f.LoadingIndicator,{position:"relative"}),S=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({listLoading:!0}),m.default.getAppClassificationList(n.searchCond).then((function(e){return n.setState({appClassificationList:e.data,listLoading:!1})})).catch((function(){return n.setState({listLoading:!1})}))},n.editAppClassification=function(e,t){n.setState({viewType:t,modalVisible:!0,appClassificationInfo:e}),n.parentApplicationTypeId=e.parentApplicationTypeId},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData()},n.delAppClassification=function(e){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.parentApplicationTypeName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t){m.default.deleteAppClassification(e.parentApplicationTypeId).then((function(){n.fetchData(),t()}))}))}})},n.openModal=function(e){n.setState({modalVisible:!0,viewType:e})},n.callVisible=function(e){e&&n.fetchData(),n.setState({modalVisible:!1})},n.submitModalOk=function(){n.createAppClassificationRef.saveAppClassification()},n.state={modalVisible:!1,viewType:"",listLoading:!1,confirmLoading:!1,appClassificationList:[],appClassificationInfo:{}},n.parentApplicationTypeId="",n.columns=[{title:x,width:"20%",dataIndex:"parentApplicationTypeId",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"\u5e94\u7528\u5927\u7c7b",dataIndex:"parentApplicationTypeName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5e94\u7528\u5c0f\u7c7b",dataIndex:"applicationTypes",ellipsis:!0,render:function(e){var t=Array.isArray(e)&&0!==e.length?e.reduce((function(e,t){return""+(e?e+"\u3001"+t.applicationTypeName:t.applicationTypeName)}),""):"";return(0,i.default)(r.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u64cd\u4f5c",width:"20%",render:function(e,t){return(0,i.default)("span",{},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.editAppClassification(t,"edit")}},void 0,"\u4fee\u6539"),-1===b.indexOf(t.source)&&(0,i.default)(p.default.Fragment,{},void 0,C,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.delAppClassification(t)}},void 0,"\u5220\u9664")))}}],n.searchCond={applicationTypeName:""},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this;return(0,i.default)(v.PageWrapper,{},void 0,(0,i.default)(f.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539\u5e94\u7528\u5206\u7c7b":"\u65b0\u5efa\u5e94\u7528\u5206\u7c7b",onCancelType:!1,width:600,okText:"\u63d0 \u4ea4",submitModalOk:this.submitModalOk,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,i.default)(h.default,{onRef:function(t){e.createAppClassificationRef=t},parentApplicationTypeId:this.parentApplicationTypeId,appClassificationInfo:this.state.appClassificationInfo,viewType:this.state.viewType,closeModal:this.callVisible})},this.state.viewType),(0,i.default)(v.PageHeader,{},void 0,(0,i.default)(s.default,{onClick:function(){e.openModal("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u5e94\u7528\u5206\u7c7b"),(0,i.default)(g.default,{onChange:this.changeSearchCond})),(0,i.default)(v.PageBody,{},void 0,(0,i.default)(v.TableWrapper,{},void 0,this.state.listLoading&&j,!this.state.listLoading&&(0,i.default)(o.default,{dataSource:this.state.appClassificationList,rowKey:"parentApplicationTypeId",bordered:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=S},"./src/module/sysManage/appClassification/component/ClassificationTags.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/tooltip/index.js")),o=m(a("./node_modules/antd/es/input/index.js")),s=m(a("./node_modules/antd/es/tag/index.js")),r=m(a("./node_modules/babel-runtime/helpers/jsx.js")),i=m(a("./node_modules/antd/es/message/index.js")),d=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=m(a("./node_modules/babel-runtime/helpers/inherits.js")),c="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\appClassification\\component\\ClassificationTags.jsx";a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/tag/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=m(a("./node_modules/react/index.js")),f=a("./node_modules/@ant-design/icons/es/index.js");m(a("./node_modules/prop-types/index.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"ClassificationTags__ClassificationTagsPage",componentId:"cotlum-0"})([".edit-classify{cursor:pointer;}"]),g=(0,r.default)(f.PlusOutlined,{}),v=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n._handleClick=function(e){-1!==n.state.editIndex&&n.appClassificationRef.current&&_.get(n.appClassificationRef,"current.props.id")!==_.get(e,"target.id")&&n.handleSubClassifyInputConfirm()},n.handleClose=function(e){var t=n.state.tags.filter((function(t){return t.applicationTypeId!==e.applicationTypeId}));n.props.onTagsChange(t),n.setState({tags:t})},n.showInput=function(){n.setState({inputVisible:!0},(function(){return n.input.focus()}))},n.handleInputChange=function(e){var t=_.trim(e.target.value);t.length>30?i.default.error("\u5e94\u7528\u5c0f\u7c7b\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"):n.setState({inputValue:t})},n.handleInputConfirm=function(){var e=n.state,t=e.inputValue,a=e.tags;if(t&&!_.find(a,(function(e){return e.applicationTypeName===t}))){var o=[].concat(a,[{applicationTypeId:"",applicationTypeName:t}]);n.setState({tags:o,inputVisible:!1,inputValue:""}),n.props.onTagsChange(o)}else if(t)return void i.default.error("\u5206\u7c7b\u540d\u79f0\u91cd\u590d")},n.saveInputRef=function(e){return n.input=e},n.handleSubClassifyChance=function(e){n.setState({editIndex:e})},n.handleSubClassifyInputChange=function(e,t){if((t=_.trim(t)).length>30)i.default.error("\u5e94\u7528\u5c0f\u7c7b\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26");else{var a=n.state.tags;a[e].applicationTypeName=t,n.setState({tags:a})}},n.handleSubClassifyInputConfirm=function(e){if(void 0!==e){var t=n.state.tags;_.get(t,[e]+".applicationTypeName")?_.find(t,(function(a,n){return a.applicationTypeName===_.get(t,[e]+".applicationTypeName")&&n!==e}))?i.default.error("\u5e94\u7528\u5c0f\u7c7b\u540d\u79f0\u91cd\u590d"):(n.props.onTagsChange(t),n.setState({editIndex:-1})):i.default.error("\u8bf7\u8f93\u5165\u5e94\u7528\u5c0f\u7c7b\u540d\u79f0")}else n.setState({editIndex:-1})},n.state={tags:[],inputVisible:!1,inputValue:"",editIndex:-1},n.appClassificationRef=p.default.createRef(),n}return(0,u.default)(t,e),t.prototype.componentDidUpdate=function(e){_.isEqual(e.tags,this.props.tags)||(this.setState({tags:this.props.tags}),this.props.onTagsChange(this.props.tags))},t.prototype.componentDidMount=function(){window.addEventListener("click",this._handleClick,!0)},t.prototype.componentWillMount=function(){window.removeEventListener("click",this._handleClick,!0)},t.prototype.render=function(){var e=this,t=this.state,a=t.tags,i=t.inputVisible,d=t.inputValue,l=t.editIndex;return(0,r.default)(h,{},void 0,a.map((function(t,i){var d=t&&t.length>20,u=(0,r.default)(s.default,{closable:"NLP"!==t.source,onClose:function(){return e.handleClose(t)}},t.applicationTypeId+"-"+i,d?_.get(t,"applicationTypeName","").slice(0,20)+"...":_.get(t,"applicationTypeName",""),"NLP"!==t.source&&(0,r.default)(f.EditOutlined,{className:"edit-classify",onClick:function(){return e.handleSubClassifyChance(i)}}));return l===i?p.default.createElement(o.default,{key:t.applicationTypeId+"-"+i,style:{width:78,marginRight:8},id:""+i,value:a[i].applicationTypeName,ref:e.appClassificationRef,onChange:function(t){return e.handleSubClassifyInputChange(i,t.target.value)},onBlur:function(t){return e.handleSubClassifyInputConfirm(i,t.target.value)},onPressEnter:function(t){return e.handleSubClassifyInputConfirm(i,t.target.value)},__source:{fileName:c,lineNumber:148}}):d?(0,r.default)(n.default,{title:t},t.applicationTypeId+"-"+i,u):u})),i&&p.default.createElement(o.default,{ref:this.saveInputRef,type:"text",size:"small",style:{width:78},value:d,onChange:this.handleInputChange,onBlur:this.handleInputConfirm,onPressEnter:this.handleInputConfirm,__source:{fileName:c,lineNumber:167}}),!i&&(0,r.default)(s.default,{onClick:this.showInput,style:{background:"#fff",borderStyle:"dashed"}},void 0,g,"\u6dfb\u52a0\u5206\u7c7b"))},t}(p.default.Component);t.default=v},"./src/module/sysManage/appClassification/component/CreateAppClassification.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/col/index.js")),o=C(a("./node_modules/antd/es/row/index.js")),s=C(a("./node_modules/antd/es/modal/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/babel-runtime/helpers/extends.js")),d=C(a("./node_modules/antd/es/message/index.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=C(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(C(a("./node_modules/prop-types/index.js")),C(a("./src/components/common/CheckName.jsx"))),v=a("./src/components/index.js"),y=a("./src/redux/selectors/checkName.js"),b=C(a("./src/redux/services/sysManager/appClassification.js")),x=C(a("./src/module/sysManage/appClassification/component/ClassificationTags.jsx"));function C(e){return e&&e.__esModule?e:{default:e}}var j=["AI\u5e94\u7528","\u975eAI\u5e94\u7528"],S=m.Form.Item,I=h.default.div.withConfig({displayName:"CreateAppClassification__CreateAppClassificationPage",componentId:"np0ndm-0"})(["overflow-x:hidden;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.ant-legacy-form-item-label{width:80px;flex-shrink:0;}.ant-form-inline .ant-form-item{display:flex;}.error-border{border:1px solid\xa0red;}"]),T={width:"100%"},w=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.fetchData=function(){"create"!==n.props.viewType&&n.props.parentApplicationTypeId&&b.default.getAppClassificationInfo(n.props.parentApplicationTypeId).then((function(e){n.setState({appClassificationInfo:e.data},(function(){n.props.form.setFieldsValue({parentApplicationTypeName:n.state.appClassificationInfo.parentApplicationTypeName})}))}))},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.saveAppClassification=function(){var e=n.props.checkNameVerifyInfo.toJS(),t=e.verifyStatus,a=e.verifyMsg;if(-1===t)return d.default.error(a),!1;n.props.form.validateFieldsAndScroll((function(e){null===e&&n.setState({modalVisible:!0})}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var e="create"===n.props.viewType;b.default[e?"saveAppClassification":"updateAppClassification"]((0,i.default)({},n.state.appClassificationInfo,{applicationTypes:n.tags})).then((function(){d.default.success(e?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),n.props.closeModal(!0),n.setState({confirmLoading:!1})})).catch((function(){n.setState({confirmLoading:!1})}))},n.updateName=function(e){var t=n.state.appClassificationInfo;t.parentApplicationTypeName=e,n.setState({appClassificationInfo:t}),n.props.form.setFieldsValue({parentApplicationTypeName:e})},n.handleTagsChange=function(e){n.tags=e},n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1,appClassificationInfo:{}},n.checkNameRef=p.default.createRef(),n.tags=[],n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this),this.fetchData()},t.prototype.render=function(){var e=this.props.form.getFieldDecorator,t=this.state.appClassificationInfo,a=_.get(t,"applicationTypes",[]);return(0,r.default)(I,{},void 0,(0,r.default)(s.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,r.default)("p",{},void 0,this.state.modalTxt)),(0,r.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:T},void 0,(0,r.default)(m.Form,{layout:"inline"},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(S,{label:"\u5e94\u7528\u5927\u7c7b"},void 0,e("parentApplicationTypeName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5e94\u7528\u5927\u7c7b\u540d\u79f0"},{min:0,max:30,message:"\u5e94\u7528\u5927\u7c7b\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"},{validator:this.handleCheckNameValidate}],initialValue:t.parentApplicationTypeName})(p.default.createElement(g.default,{ref:this.checkNameRef,source:"appTopicBases",style:{width:"350px"},disabled:!!("view"===this.props.viewType||t.parentApplicationTypeId&&j.indexOf(t.parentApplicationTypeName)>-1),placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:t.parentApplicationTypeId||"",updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\appClassification\\component\\CreateAppClassification.jsx",lineNumber:169}}))))),(0,r.default)(o.default,{style:{marginTop:16}},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(S,{help:"",label:"\u5e94\u7528\u5c0f\u7c7b"},void 0,(0,r.default)(x.default,{onTagsChange:this.handleTagsChange,tags:a})))))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(e){return{checkNameVerifyInfo:(0,y.selectVerifyInfo)(e)}}))(m.Form.create()(w))},"./src/module/sysManage/appClassification/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/styles/GlobalStyle.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Search,f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("applicationTypeName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(u.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(p,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/module/sysManage/appTopicBasesManager/AppTopicBasesManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/divider/index.js")),o=C(a("./node_modules/antd/es/table/index.js")),s=C(a("./node_modules/antd/es/button/index.js")),r=C(a("./node_modules/antd/es/tooltip/index.js")),i=C(a("./node_modules/babel-runtime/helpers/jsx.js")),d=C(a("./node_modules/antd/es/message/index.js")),l=C(a("./node_modules/antd/es/modal/index.js")),u=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=C(a("./node_modules/react/index.js")),m=(C(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./src/components/index.js"),g=a("./src/redux/reducers/sysManager/appTopicBasesManager.js"),v=C(a("./src/module/sysManage/appTopicBasesManager/component/CreateAppTopicBasesConfig.jsx")),y=C(a("./src/module/sysManage/appTopicBasesManager/component/SearchBar.jsx")),b=a("./src/redux/selectors/sysManager/appTopicBasesManager.js"),x=a("./src/styles/GlobalStyle.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=(0,i.default)("span",{},void 0,"\u5e8f\u53f7"),S=(0,i.default)(n.default,{type:"vertical"}),I=(0,i.default)("div",{}),T=(0,i.default)(h.LoadingIndicator,{position:"relative"}),w=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.fetchData=function(e){n.props.dispatch(g.appTopicBasesActions.getAppTopicBasesListRequest(e))},n.editAppTopicBases=function(e,t){n.props.dispatch(g.appTopicBasesActions.resetAppTopicBasesInfo()),n.props.dispatch(g.appTopicBasesActions.getAppTopicBasesInfoRequest({id:e.id})),n.setState({viewType:t,modalVisible:!0})},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),delete n.searchCond.offset,delete n.searchCond.limit,n.fetchData(n.searchCond)},n.delAppTopicBases=function(e){l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.name+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(g.appTopicBasesActions.deleteAppTopicBasesRequest(e.id)),new Promise((function(t){_.defer((function(){var a=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(a),0===_.size(n.props.operateError)?(d.default.success("\u5220\u9664[ "+e.name+" ]\u6210\u529f!"),n.props.dispatch(g.appTopicBasesActions.resetDeleteAppTopicBases()),n.props.dispatch(g.appTopicBasesActions.getAppTopicBasesListRequest(n.searchCond))):d.default.error("\u5220\u9664[ "+e.name+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.openKpiConfig=function(e){n.props.dispatch(g.appTopicBasesActions.resetAppTopicBasesInfo()),n.setState({modalVisible:!0,viewType:e})},n.callVisible=function(e){if(void 0!==e||"view"===n.state.viewType)n.setState({modalVisible:!1,viewType:""});else{var t=n;l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1,viewType:""})}})}},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.submitModalOk=function(){n.createAppTopicBasesConfig.saveKpi()},n.state={modalVisible:!1,viewType:"",currentPage:1,confirmLoading:!1},n.columns=[{title:j,ellipsis:!0,dataIndex:"id",width:"7%",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"\u5e94\u7528\u5206\u7c7b\u540d\u79f0",dataIndex:"name",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:"20%",render:function(e,t){return(0,i.default)("span",{},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.editAppTopicBases(t,"edit")}},void 0,"\u4fee\u6539"),S,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.delAppTopicBases(t)}},void 0,"\u5220\u9664"))}}],n.searchCond={name:"",offset:1,limit:10},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(g.appTopicBasesActions.getAppTopicBasesListRequest(this.searchCond))},t.prototype.render=function(){var e=this,t=this.props.appTopicBasesPagination?this.props.appTopicBasesPagination.toJS():{},a=null!==this.props.appTopicBasesList&&void 0!==this.props.appTopicBasesList?this.props.appTopicBasesList.toJS():[];return(0,i.default)(x.PageWrapper,{},void 0,(0,i.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539\u5e94\u7528\u5206\u7c7b":"view"===this.state.viewType?"\u67e5\u770b\u5e94\u7528\u5206\u7c7b":"\u65b0\u5efa\u5e94\u7528\u5206\u7c7b",onCancelType:!1,width:600,okText:"\u63d0 \u4ea4",submitModalOk:this.submitModalOk,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:"create"===this.state.viewType?(0,i.default)(v.default,{onRef:function(t){e.createAppTopicBasesConfig=t},searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):this.props.appTopicBasesInfo.size>0?(0,i.default)(v.default,{onRef:function(t){e.createAppTopicBasesConfig=t},appTopicBasesData:this.props.appTopicBasesInfo.toJS(),searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):I},this.state.viewType),(0,i.default)(x.PageHeader,{},void 0,(0,i.default)(s.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u5e94\u7528\u5206\u7c7b"),(0,i.default)(y.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,i.default)(x.PageBody,{},void 0,(0,i.default)(x.TableWrapper,{},void 0,this.props.loading&&T,!this.props.loading&&(0,i.default)(o.default,{dataSource:a,rowKey:"id",bordered:!0,pagination:!1,columns:this.columns}),(0,i.default)("div",{style:{margin:"1.5%",textAlign:"right"}},void 0,(0,i.default)(h.TabPagination,{currentPage:t.offset,pageSize:10,total:t.total,onChange:this.onChangePage})))))},t}(f.default.PureComponent);t.default=(0,m.connect)((function(e){return{operateError:(0,b.selectOperateError)(e),opreateLoading:(0,b.selectOperateLoading)(e),appTopicBasesPagination:(0,b.selectAppTopicBasesPagination)(e),loading:(0,b.selectAppTopicBasesListLoading)(e),appTopicBasesList:(0,b.selectAppTopicBasesList)(e),appTopicBasesInfo:(0,b.selectAppTopicBasesInfo)(e)}}))(w)},"./src/module/sysManage/appTopicBasesManager/component/CreateAppTopicBasesConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateRolesConfigPage=void 0;var n=x(a("./node_modules/antd/es/col/index.js")),o=x(a("./node_modules/antd/es/row/index.js")),s=x(a("./node_modules/babel-runtime/helpers/jsx.js")),r=x(a("./node_modules/antd/es/modal/index.js")),i=x(a("./node_modules/antd/es/message/index.js")),d=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=x(a("./node_modules/react/index.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./node_modules/immutable3/dist/immutable.js"),g=(x(a("./node_modules/prop-types/index.js")),x(a("./src/components/common/CheckName.jsx"))),v=a("./src/components/index.js"),_=a("./src/redux/selectors/checkName.js"),y=a("./src/redux/reducers/sysManager/appTopicBasesManager.js"),b=a("./src/redux/selectors/sysManager/appTopicBasesManager.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=f.Form.Item,j=t.CreateRolesConfigPage=m.default.div.withConfig({displayName:"CreateAppTopicBasesConfig__CreateRolesConfigPage",componentId:"sc-1b6q2u7-0"})(["overflow-x:hidden;height:200px;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),S={width:"100%"},I=(0,s.default)("span",{},void 0,"\u5e94\u7528\u540d\u79f0 :"),T=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.closeModal=function(){n.props.closeKpiConfig()},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&n.setState({modalVisible:!0})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(y.appTopicBasesActions.submitAppTopicBasesDataRequest({subType:n.props.viewType,appTopicBasesData:n.appTopicBasesData}))},n.getNameBlur=function(e,t){n.appTopicBasesData[t]=e},n.emitEmptyName=function(){n.name.focus(),n.props.form.setFieldsValue({name:""}),n.appTopicBasesData.name=""},n.getIndiData=function(e){n.setState({operatePermits:e})},n.deleteValiFuncs=function(){n.validateFuncs={}},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.updateName=function(e){n.setState({name:e}),n.appTopicBasesData.name=e,n.props.form.setFieldsValue({name:e})},n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1,_this:n,name:"create"!==n.props.viewType?n.props.appTopicBasesData.name:""},n.checkNameRef=c.default.createRef(),n.appTopicBasesData="create"!==n.props.viewType?n.props.appTopicBasesData:{},n}return(0,u.default)(t,e),t.getDerivedStateFromProps=function(e){if("{}"!==JSON.stringify(e.submitAppTopicBasesData)){var t=(0,h.Map)(e.submitAppTopicBasesData);return 1===t.get("code")||t.get("success")?(i.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(y.appTopicBasesActions.resetSubmitAppTopicBasesData()),e.closeKpiConfig("close"),e.fetchData(e.searchCond),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(e.dispatch(y.appTopicBasesActions.resetSubmitAppTopicBasesData()),r.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"})}return null},t.prototype.componentDidMount=function(){this.props.onRef(this)},t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,s.default)(j,{},void 0,(0,s.default)(r.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,s.default)("p",{},void 0,this.state.modalTxt)),(0,s.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:S},void 0,(0,s.default)(f.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{},void 0,(0,s.default)(C,{},void 0,I,e("name",{rules:[{required:!0,min:0,max:30,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u540d\u79f0"},{validator:this.handleCheckNameValidate}],initialValue:this.state.name})(c.default.createElement(g.default,{ref:this.checkNameRef,source:"appTopicBases",style:{marginLeft:"20px",width:"350px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:this.appTopicBasesData.id||"",updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\appTopicBasesManager\\component\\CreateAppTopicBasesConfig.jsx",lineNumber:192}}))))))))},t}(c.default.PureComponent);t.default=(0,p.connect)((function(e){return{submitAppTopicBasesData:(0,b.selectSubmitAppTopicBasesData)(e),checkNameVerifyInfo:(0,_.selectVerifyInfo)(e)}}))(f.Form.create()(T))},"./src/module/sysManage/appTopicBasesManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/styles/GlobalStyle.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Search,f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("name",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(u.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(p,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/module/sysManage/contactInfo/CreateContactPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=void 0;var n=w(a("./node_modules/antd/es/button/index.js")),o=w(a("./node_modules/antd/es/upload/index.js")),s=w(a("./node_modules/antd/es/input/index.js")),r=w(a("./node_modules/antd/es/col/index.js")),i=w(a("./node_modules/antd/es/row/index.js")),d=w(a("./node_modules/babel-runtime/helpers/jsx.js")),l=w(a("./node_modules/antd/es/modal/index.js")),u=w(a("./node_modules/antd/es/message/index.js")),c=w(a("./node_modules/babel-runtime/helpers/extends.js")),p=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=w(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var h=w(a("./node_modules/react/index.js")),g=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=(w(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),y=a("./node_modules/react-redux/es/index.js"),b=w(a("./src/utils/constants.js")),x=a("./src/utils/authPermit.js"),C=a("./node_modules/@ant-design/icons/es/index.js"),j=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var S=a("./src/redux/reducers/sysManager/sysManager.js"),I=a("./src/utils/publicPath.js"),T=a("./src/redux/selectors/sysManager/sysManager.js");function w(e){return e&&e.__esModule?e:{default:e}}var E=j.Form.Item,D=t.ButtonDom=g.default.div.withConfig({displayName:"CreateContactPage__ButtonDom",componentId:"sc-1fi3ayb-0"})(["margin-top:10px;height:28px;text-align:right;margin-right:5%;margin-bottom:20px;"]),M=g.default.div.withConfig({displayName:"CreateContactPage__TabsDiv",componentId:"sc-1fi3ayb-1"})(["width:100%;position:relative;background-color:#ffff;padding:20px 50px 0 50px;margin-bottom:20px;"]),k=g.default.div.withConfig({displayName:"CreateContactPage__PageWrapper",componentId:"sc-1fi3ayb-2"})(["display:flex;flex-direction:column;flex:1 1 auto;min-height:100%;height:auto;.fXrMUz .anticon{cursor:pointer;margin-left:0px;}"]),P=(0,d.default)("div",{},void 0,(0,d.default)(C.PlusOutlined,{}),(0,d.default)("div",{className:"ant-upload-text"},void 0,"Upload")),L=(0,d.default)("p",{},void 0,"\u786e\u5b9a\u4fdd\u5b58\u6b64\u6570\u636e\uff1f"),N=function(e){function t(a){(0,p.default)(this,t);var n=(0,f.default)(this,e.call(this,a));return n.getAfficheBlur=function(e,t){var a=n.state.contactInfo;a[t]=e,n.setState({contactInfo:(0,c.default)({},a)})},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),0===n.state.fileList.length?u.default.error("\u8bf7\u4e0a\u4f20\u5fae\u4fe1\u4e8c\u7ef4\u7801\u56fe\u7247"):e&&n.setState({modalVisible:!0})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0});var e={confCode:"Contact",confTitle:"\u57fa\u7840\u8054\u7cfb\u4fe1\u606f",confDesc:"\u57fa\u7840\u8054\u7cfb\u4fe1\u606f",sortIndex:2,confJson:JSON.stringify(n.state.contactInfo)};n.props.dispatch(S.sysManagerActions.submitContactUserRequest({contactUserData:e,subType:n.subType}))},n.beforeUpload=function(e){var t="image/jpeg"===e.type;t||u.default.error("\u8bf7\u4e0a\u4f20JPG\u683c\u5f0f\u7684\u6587\u4ef6!");var a=e.size/1024/1024<10;return a||u.default.error("\u7167\u7247\u5fc5\u987b\u5c0f\u4e8e10MB\uff01"),t&&a},n.handleCancel=function(){return n.setState({previewVisible:!1})},n.handlePreview=function(e){n.setState({previewImage:e.url||e.thumbUrl,previewVisible:!0})},n.handleChange=function(e){var t=e.fileList,a=n.state.contactInfo;t.length>0&&(a.wechat="/data_images/"+t[0].name),n.setState({contactInfo:a,fileList:[].concat(t)})},n.getInputBlur=function(e,t){var a=n.state.contactInfo;a[t]=e,n.setState({contactInfo:a})},a.dispatch(S.sysManagerActions.getContactUserInfoRequest({confCode:"Contact"})),n.state={_this:n,confirmLoading:!1,modalVisible:!1,previewVisible:!1,previewImage:"",fileList:[],contactInfo:{phone:"",wechat:"",wechatQrcode:"",qq:"",email:""}},n.subType="view",n}return(0,m.default)(t,e),t.getDerivedStateFromProps=function(e,t){if("{}"!==JSON.stringify(e.submitContactUserData))return-1!==_.get(e.submitContactUserData,"code")?(u.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),e.dispatch(S.sysManagerActions.resetSubmitContactUser()),{confirmLoading:!1,modalVisible:!1}):(l.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalVisible:!1});if(e.contactUserInfo.size>0){var a=e.contactUserInfo.toJS();if(-1!==a.code&&a.data.length>0){t._this.subType="edit";var n=a.data[0].confJson.wechat.substring(a.data[0].confJson.wechat.lastIndexOf("/")+1,a.data[0].confJson.wechat.length);return e.dispatch(S.sysManagerActions.resetContactUserInfo()),{previewImage:b.default.SERVER_URL+a.data[0].confJson.wechat,fileList:a.data[0].confJson.wechat?[{uid:"-1",name:n,status:"done",url:b.default.SERVER_URL+a.data[0].confJson.wechat}]:[],contactInfo:a.data[0].confJson}}}return null},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=(0,x.getToken)(),u=this.state,p=u.previewVisible,f=u.previewImage,m=u.fileList,g={action:(0,I.urlFormat)("/api/sysSupports/actions/upload"),headers:{Authorization:a},onChange:this.handleChange},_=P;return(0,d.default)(k,{},void 0,(0,d.default)(M,{},void 0,(0,d.default)(l.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,L),(0,d.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:{width:"100%"}},void 0,(0,d.default)(j.Form,{layout:"inline"},void 0,(0,d.default)(i.default,{style:{marginBottom:"10px"}},void 0,(0,d.default)(r.default,{},void 0,(0,d.default)(E,{label:"\u8054\u7cfb\u4eba\u7535\u8bdd",help:""},void 0,t("phone",{rules:[{required:!0,min:0,max:30}],initialValue:this.state.contactInfo.phone})((0,d.default)(s.default,{style:{marginLeft:"20px",width:"450px"},placeholder:"\u8bf7\u8f93\u5165\u8054\u7cfb\u4eba\u7535\u8bdd",onBlur:function(t){return e.getInputBlur(t.target.value,"phone")}}))))),(0,d.default)(i.default,{style:{marginBottom:"10px"}},void 0,(0,d.default)(r.default,{},void 0,(0,d.default)(E,{label:"QQ\u8d26\u53f7",help:""},void 0,t("qq",{rules:[{required:!0,min:0,max:30}],initialValue:this.state.contactInfo.qq})((0,d.default)(s.default,{style:{marginLeft:"36px",width:"450px"},placeholder:"\u8bf7\u8f93\u5165\u8054\u7cfb\u4ebaQQ\u53f7",onBlur:function(t){return e.getInputBlur(t.target.value,"qq")}}))))),(0,d.default)(i.default,{style:{marginBottom:"10px"}},void 0,(0,d.default)(r.default,{},void 0,(0,d.default)(E,{label:"\u90ae\u7bb1\u5730\u5740",help:""},void 0,t("email",{rules:[{type:"email"},{required:!0}],initialValue:this.state.contactInfo.email})((0,d.default)(s.default,{style:{marginLeft:"32px",width:"450px"},placeholder:"\u8bf7\u8f93\u5165\u8054\u7cfb\u4eba\u90ae\u7bb1",onBlur:function(t){return e.getInputBlur(t.target.value,"email")}}))))),(0,d.default)(i.default,{},void 0,(0,d.default)(r.default,{},void 0,(0,d.default)(E,{label:"\u5fae\u4fe1\u4e8c\u7ef4\u7801",help:""},void 0,t("wechat",{rules:[{required:!0}],initialValue:this.state.contactInfo.wechat})((0,d.default)("div",{style:{marginLeft:20},className:"clearfix"},void 0,h.default.createElement(o.default,(0,c.default)({listType:"picture-card",fileList:m,onPreview:this.handlePreview},g,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\contactInfo\\CreateContactPage.jsx",lineNumber:310}}),m.length>=1?null:_),(0,d.default)(l.default,{visible:p,footer:null,onCancel:this.handleCancel},void 0,(0,d.default)("img",{alt:"example",style:{width:"100%"},src:f}))))))))),(0,d.default)(D,{},void 0,(0,d.default)(n.default,{onClick:this.saveKpi,style:{marginLeft:"3.1%"},type:"primary"},void 0,"\u786e\u5b9a\u4fdd\u5b58"))))},t}(h.default.PureComponent);t.default=(0,y.connect)((function(e){return{submitContactUserData:(0,T.selectSubmitContactUserData)(e),contactUserInfo:(0,T.selectContactUserInfo)(e)}}))(j.Form.create()(N))},"./src/module/sysManage/controlCentre/ControlCentrePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/jsx.js")),o=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=l(a("./node_modules/babel-runtime/helpers/inherits.js")),i=l(a("./node_modules/react/index.js")),d=(l(a("./node_modules/prop-types/index.js")),l(a("./src/containers/Menu/MenuTittle.jsx")));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(d.default,{location:this.props.location})},t}(i.default.Component);t.default=u},"./src/module/sysManage/dataBasesManager/DataBasesManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=T(a("./node_modules/antd/es/divider/index.js")),o=T(a("./node_modules/antd/es/table/index.js")),s=T(a("./node_modules/antd/es/button/index.js")),r=T(a("./node_modules/antd/es/tooltip/index.js")),i=T(a("./node_modules/babel-runtime/helpers/jsx.js")),d=T(a("./node_modules/antd/es/message/index.js")),l=T(a("./node_modules/antd/es/modal/index.js")),u=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=T(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=T(a("./node_modules/react/index.js")),m=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(T(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),g=a("./src/components/index.js"),v=a("./src/redux/reducers/sysManager/dataBasesManager.js"),y=T(a("./src/module/sysManage/dataBasesManager/component/CreateDataBasesConfig.jsx")),b=T(a("./src/module/sysManage/dataBasesManager/component/SearchBar.jsx")),x=T(a("./src/module/sysManage/dataBasesManager/component/ModalArryTable.jsx")),C=a("./src/components/auth/switchAuth.jsx"),j=T(C),S=a("./src/redux/selectors/sysManager/dataBasesManager.js"),I=a("./src/styles/GlobalStyle.js");function T(e){return e&&e.__esModule?e:{default:e}}var w=m.default.div.withConfig({displayName:"DataBasesManagePage__HeaderButtonWrapper",componentId:"sc-1fvp3pt-0"})([".saveButton{margin-right:16px;}"]),E=(0,i.default)(n.default,{type:"vertical"}),D=(0,i.default)("p",{},void 0,"\u786e\u5b9a\u540c\u6b65DACP\u6570\u636e\uff1f"),M=(0,i.default)("div",{}),k=(0,i.default)(g.LoadingIndicator,{position:"relative"}),P=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.fetchData=function(e){n.props.dispatch(v.dataBasesActions.getDataBasesListRequest(e))},n.editDataBases=function(e,t){n.props.dispatch(v.dataBasesActions.resetDataBasesInfo()),n.props.dispatch(v.dataBasesActions.getDataBasesInfoRequest({dbId:e.dbId})),n.setState({viewType:t,modalVisible:!0})},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.delDataBases=function(e){l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.dbName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(v.dataBasesActions.deleteDataBasesRequest(e.dbId)),new Promise((function(t){_.defer((function(){var a=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(a),0===_.size(n.props.operateError)?(d.default.success("\u5220\u9664[ "+e.dbName+" ]\u6210\u529f!"),n.props.dispatch(v.dataBasesActions.resetDeleteDataBases()),n.props.dispatch(v.dataBasesActions.getDataBasesListRequest(n.searchCond))):d.default.error("\u5220\u9664[ "+e.dbName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.submitSyncDacpData=function(){n.setState({confirmLoading:!0}),n.props.dispatch(v.dataBasesActions.syncDacpDataRequest())},n.openSyncDacpData=function(){!0===n.allAacp||"true"===n.allAacp?n.setState({dacpAllVisible:!0}):(n.props.dispatch(v.dataBasesActions.getDataDacpListRequest()),n.setState({dacpVisible:!0}))},n.openKpiConfig=function(e){n.props.dispatch(v.dataBasesActions.resetDataBasesInfo()),n.setState({modalVisible:!0,viewType:e})},n.callVisible=function(){n.setState({modalVisible:!1,viewType:""})},n.queryCallVisible=function(){n.setState({dacpVisible:!1})},n.submitSyncDacpData=function(e){n.setState({confirmLoading:!0}),n.props.dispatch(v.dataBasesActions.syncDacpDataRequest({arrayData:e,allAacp:n.allAacp}))},n.onCancelSyncDacpData=function(){n.setState({dacpAllVisible:!1})},n.state={dacpVisible:!1,modalVisible:!1,viewType:"",confirmLoading:!1},n.allAacp=!(0,C.hasFeatureAuths)("root.database.enableGetDacpDbs"),n.columns=[{title:"\u6570\u636e\u5e93\u540d\u79f0",dataIndex:"dbName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7c7b\u578b",dataIndex:"dbType",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u4e3b\u673aIP",dataIndex:"dbHost",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7aef\u53e3",dataIndex:"dbPort",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5e93\u540d",dataIndex:"dbDsSchema",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7528\u6237\u540d",dataIndex:"dbUsername",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8fde\u63a5\u53c2\u6570",dataIndex:"dbParam",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createUser",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:"15%",render:function(e,t){return(0,i.default)("span",{},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.editDataBases(t,"edit")}},void 0,"\u4fee\u6539"),E,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.delDataBases(t)}},void 0,"\u5220\u9664"))}}],n.searchCond={dbName:""},n}return(0,p.default)(t,e),t.getDerivedStateFromProps=function(e){if(0!==e.syncDacpData)return e.dispatch(v.dataBasesActions.resetSyncDacpData()),1===e.syncDacpData?d.default.success("\u540c\u6b65\u6210\u529f!"):d.default.error("\u540c\u6b65\u5931\u8d25!"),{dacpAllVisible:!1,dacpVisible:!1,confirmLoading:!1}},t.prototype.componentDidMount=function(){this.props.dispatch(v.dataBasesActions.getDataBasesListRequest(this.searchCond))},t.prototype.render=function(){var e=this,t=null!==this.props.dataBasesList&&void 0!==this.props.dataBasesList?this.props.dataBasesList.toJS():[],a=null!==this.props.dataDacpList&&void 0!==this.props.dataDacpList?this.props.dataDacpList.toJS():[];return(0,i.default)(I.PageWrapper,{},void 0,(0,i.default)(l.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.dacpAllVisible,okText:"\u786e\u8ba4",content:"\u786e\u8ba4\u540c\u6b65DACP\u6570\u636e\uff1f",cancelText:"\u53d6\u6d88",onOk:this.submitSyncDacpData,confirmLoading:this.state.confirmLoading,onCancel:this.onCancelSyncDacpData},void 0,D),(0,i.default)(x.default,{loading:this.props.tabLoading,closable:!0,onCancelType:!1,viewType:"view",modalTitle:"\u9009\u62e9\u540c\u6b65DACP\u6570\u636e",width:800,confirmLoading:this.state.confirmLoading,data:a,submitSyncDacpData:this.submitSyncDacpData,callVisible:this.queryCallVisible,modalVisible:this.state.dacpVisible}),(0,i.default)(g.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539\u6570\u636e\u5e93\u914d\u7f6e":"view"===this.state.viewType?"\u67e5\u770b\u6570\u636e\u5e93\u914d\u7f6e":"\u65b0\u589e\u6570\u636e\u5e93\u914d\u7f6e",onCancelType:!1,width:1150,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:"create"===this.state.viewType?(0,i.default)(y.default,{searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):this.props.dataBasesInfo.size>0?(0,i.default)(y.default,{dataBasesData:this.props.dataBasesInfo.toJS(),searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):M},this.state.viewType),(0,i.default)(I.PageHeader,{},void 0,(0,i.default)(w,{},void 0,(0,i.default)(s.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u6570\u636e\u5e93"),(0,i.default)(j.default,{optionId:"root.database.enableSyncFromDacp"},void 0,(0,i.default)(s.default,{onClick:function(){e.openSyncDacpData()},className:"dacpButton",type:"primary"},void 0,"\u540c\u6b65DACP"))),(0,i.default)(b.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,i.default)(I.PageBody,{},void 0,(0,i.default)(I.TableWrapper,{},void 0,this.props.loading&&k,!this.props.loading&&(0,i.default)(o.default,{dataSource:t,rowKey:"dbId",bordered:!0,columns:this.columns}))))},t}(f.default.PureComponent);t.default=(0,h.connect)((function(e){return{tabLoading:(0,S.selectDataDacpListLoading)(e),dataDacpList:(0,S.selectDataDacpList)(e),operateError:(0,S.selectOperateError)(e),opreateLoading:(0,S.selectOperateLoading)(e),dataBasesPagination:(0,S.selectDataBasesPagination)(e),loading:(0,S.selectDataBasesListLoading)(e),dataBasesList:(0,S.selectDataBasesList)(e),dataBasesInfo:(0,S.selectDataBasesInfo)(e),syncDacpData:(0,S.selectSyncDacpData)(e)}}))(P)},"./src/module/sysManage/dataBasesManager/component/CreateDataBasesConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.CreateRolesConfigPage=void 0;var n=E(a("./node_modules/antd/es/button/index.js")),o=E(a("./node_modules/antd/es/col/index.js")),s=E(a("./node_modules/antd/es/row/index.js")),r=E(a("./node_modules/babel-runtime/helpers/jsx.js")),i=E(a("./node_modules/antd/es/modal/index.js")),d=E(a("./node_modules/babel-runtime/regenerator/index.js")),l=E(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=E(a("./node_modules/antd/es/message/index.js")),c=E(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=E(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=E(a("./node_modules/babel-runtime/helpers/inherits.js")),m=E(a("./node_modules/antd/es/select/index.js")),h=E(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var g=E(a("./node_modules/react/index.js")),v=a("./node_modules/react-redux/es/index.js"),y=E(a("./src/redux/selectors/enumDic.js")),b=a("./node_modules/immutable3/dist/immutable.js"),x=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var C=E(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),j=(E(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),S=a("./src/redux/reducers/sysManager/dataBasesManager.js"),I=E(a("./src/redux/services/sysManager/dataBasesManager.js")),T=E(a("./src/module/sysManage/dataBasesManager/component/HiveBasesConfig.jsx")),w=a("./src/redux/selectors/sysManager/dataBasesManager.js");function E(e){return e&&e.__esModule?e:{default:e}}var D=x.Form.Item,M=h.default.TextArea,k=h.default.Password,P=m.default.Option,L=t.CreateRolesConfigPage=C.default.div.withConfig({displayName:"CreateDataBasesConfig__CreateRolesConfigPage",componentId:"sc-1coqa5q-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.ant-form-inline .ant-form-item-with-help{margin-bottom:0px;}.error-border{border:1px solid\xa0red;}.rowHeight{height:60px;}.ant-legacy-form-inline .ant-legacy-form-item > .ant-legacy-form-item-label{width:85px;}"]),N=t.ButtonDom=C.default.div.withConfig({displayName:"CreateDataBasesConfig__ButtonDom",componentId:"sc-1coqa5q-1"})(["height:28px;text-align:right;padding:10px 16px;text-align:right;background:0 0;border-top:1px solid #f0f0f0;border-radius:0 0 2px 2px;margin-left:-16px;margin-right:-16px;"]),A={width:"100%",overflow:"auto",height:400},R=(0,r.default)(P,{value:""},void 0,"\u8bf7\u9009\u62e9\u7c7b\u578b"),F=function(e){function t(a){var n=this;(0,c.default)(this,t);var o=(0,p.default)(this,e.call(this,a));return o.formatDataBasesDat=function(e){return e.dbPassword="null",e},o.closeModal=function(){o.props.closeKpiConfig()},o.testConnectData=function(){o.props.form.validateFieldsAndScroll((function(e){null===e?(delete o.dataBasesData.createTime,o.dataBasesData.dbPassword="null"===o.dataBasesData.dbPassword?null:o.dataBasesData.dbPassword,"Apache Hive"!==o.state.dbType&&"HW Hive"!==o.state.dbType||Object.keys(o.validateFuncs).map((function(e){var t=o.validateFuncs[e];if(_.isFunction(t)){var a=t.call();a.validate?_.assign(o.dataBasesData,a.moduleData):bol=!1}})),o.props.dispatch(S.dataBasesActions.testConnectDataRequest({config:o.dataBasesData})),o.setState({testConfirmLoading:!0})):u.default.info("\u6d4b\u8bd5\u8fde\u63a5\u524d\uff0c\u8bf7\u5b8c\u5584\u586b\u5199\u6570\u636e!")}))},o.saveKpi=function(){var e=!0;o.props.form.validateFieldsAndScroll((function(t){null===t&&("Apache Hive"!==o.state.dbType&&"HW Hive"!==o.state.dbType||Object.keys(o.validateFuncs).map((function(t){var a=o.validateFuncs[t];if(_.isFunction(a)){var n=a.call();n.validate?_.assign(o.dataBasesData,n.moduleData):e=!1}})),e&&o.setState({modalVisible:!0}))}))},o.submitModalCancel=function(){o.setState({modalVisible:!1})},o.submitModalOk=function(){o.dataBasesData.dbPassword="null"===o.dataBasesData.dbPassword?null:o.dataBasesData.dbPassword,o.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+o.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),o.props.dispatch(S.dataBasesActions.submitDataBasesDataRequest({subType:o.props.viewType,dataBasesData:o.dataBasesData}))},o.getModelNameBlur=function(e){o.setState({dbName:e}),o.dataBasesData.dbName=e,o.props.form.setFieldsValue({dbName:e})},o.getNameBlur=function(e,t){"dbType"===t&&(o.setState({dbType:e}),"Apache Hive"===e&&"HW Hive"!==e||(delete o.dataBasesData.hdfsPath,delete o.dataBasesData.sitePath,delete o.dataBasesData.krdPath,delete o.dataBasesData.keyTabPath,delete o.dataBasesData.principalss)),o.dataBasesData[t]=e},o.emitEmptyName=function(){o.dbName.focus(),o.props.form.setFieldsValue({dbName:""}),o.dataBasesData.dbName=""},o.getIndiData=function(e){o.setState({operatePermits:e})},o.deleteValiFuncs=function(){o.validateFuncs={}},o.setValidateFunc=function(e,t){o.validateFuncs[e]=t},o.handleCheckNameValidate=function(){var e=(0,l.default)(d.default.mark((function e(t,a,s){var r;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a){e.next=3;break}return s(),e.abrupt("return");case 3:return e.prev=3,e.next=6,I.default.checkoutNameRepeat({id:"create"===o.props.viewType?"":o.props.dataBasesData.dbId,dbName:a});case 6:if(r=e.sent,!_.get(r,"data.isRepeat")){e.next=9;break}throw Error("\u6570\u636e\u5e93\u540d\u79f0\u91cd\u590d\uff01");case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),s(e.t0);case 14:s();case 15:case"end":return e.stop()}}),e,n,[[3,11]])})));return function(t,a,n){return e.apply(this,arguments)}}(),o.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,testConfirmLoading:!1,modalVisible:!1,_this:o,dbName:"create"!==o.props.viewType?o.props.dataBasesData.dbName:"",dbType:"create"!==o.props.viewType?o.props.dataBasesData.dbType:""},o.checkNameRef=g.default.createRef(),o.dataBasesData="create"!==o.props.viewType?o.formatDataBasesDat(o.props.dataBasesData):{dbDsSchema:"",dbType:"MySQL",dbParam:""},o.validateFuncs={},o}return(0,f.default)(t,e),t.getDerivedStateFromProps=function(e){return"{}"!==JSON.stringify(e.submitDataBasesData)?1===(0,b.Map)(e.submitDataBasesData).get("code")?(u.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(S.dataBasesActions.resetSubmitDataBasesData()),e.closeKpiConfig("close"),e.fetchData(e.searchCond),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(e.dispatch(S.dataBasesActions.resetSubmitDataBasesData()),i.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):0!==e.testConnectDataCode?(e.dispatch(S.dataBasesActions.resetTestConnectData()),1===e.testConnectDataCode?u.default.success("\u6d4b\u8bd5\u8fde\u63a5\u6210\u529f!"):u.default.error("\u6d4b\u8bd5\u8fde\u63a5\u5931\u8d25!"),{testConfirmLoading:!1}):null},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.dicHelper("DATABASE_TYPE").list();return(0,r.default)(L,{},void 0,(0,r.default)(i.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,r.default)("p",{},void 0,this.state.modalTxt)),(0,r.default)(j.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:A},void 0,(0,r.default)(x.Form,{style:{paddingLeft:10},layout:"inline",labelAlign:"right"},void 0,(0,r.default)(s.default,{className:"rowHeight"},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(D,{label:"\u6570\u636e\u5e93\u540d\u79f0"},void 0,t("dbName",{rules:[{required:!0,message:"\u6570\u636e\u5e93\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"},{max:30,message:"\u6570\u636e\u5e93\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"},{validator:this.handleCheckNameValidate}],initialValue:this.state.dbName,validateTrigger:"onBlur"})((0,r.default)(h.default,{style:{width:"340px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u6570\u636e\u5e93\u540d\u79f0",onChange:function(t){return e.getNameBlur(t.target.value,"dbName")}})))),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(D,{label:"\u5e93\u540d"},void 0,t("dbDsSchema",{rules:[{required:"Hbase"!==this.state.dbType,message:"\u5e93\u540d\u4e0d\u80fd\u4e3a\u7a7a"},{max:80,message:"\u5e93\u540d\u4e0d\u5f97\u8d85\u8fc780\u4e2a\u5b57\u7b26"}],initialValue:this.dataBasesData.dbDsSchema})((0,r.default)(h.default,{placeholder:"\u8bf7\u8f93\u5165\u5e93\u540d",disabled:"view"===this.props.viewType,style:{width:"340px"},onBlur:function(t){return e.getNameBlur(t.target.value,"dbDsSchema")}}))))),(0,r.default)(s.default,{className:"rowHeight"},void 0,(0,r.default)(o.default,{span:20},void 0,(0,r.default)(D,{label:"\u7c7b\u578b"},void 0,t("dbType",{rules:[{required:!0}],initialValue:this.dataBasesData.dbType})((0,r.default)(m.default,{onChange:function(t){return e.getNameBlur(t,"dbType")},style:{width:340}},void 0,R,a.map((function(e){return(0,r.default)(P,{title:e.txt,value:e.code},e.code,e.txt)}))))))),(0,r.default)(s.default,{className:"rowHeight"},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(D,{label:"\u4e3b\u673aIP"},void 0,t("dbHost",{rules:[{required:!0,message:"\u4e3b\u673aIP\u4e0d\u80fd\u4e3a\u7a7a"},{max:200,message:"\u4e3b\u673aIP\u4e0d\u5f97\u8d85\u8fc7200\u4e2a\u5b57\u7b26"}],initialValue:this.dataBasesData.dbHost})((0,r.default)(h.default,{disabled:"view"===this.props.viewType,style:{width:"340px"},placeholder:"\u8bf7\u8f93\u5165\u4e3b\u673aIP",onBlur:function(t){return e.getNameBlur(t.target.value,"dbHost")}})))),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(D,{label:"\u7aef\u53e3"},void 0,t("dbPort ",{rules:[{required:!0,message:"\u7aef\u53e3\u4e0d\u80fd\u4e3a\u7a7a"}],initialValue:this.dataBasesData.dbPort})((0,r.default)(h.default,{disabled:"view"===this.props.viewType,style:{width:"340px"},placeholder:"\u8bf7\u8f93\u5165\u7aef\u53e3",onBlur:function(t){return e.getNameBlur(t.target.value,"dbPort")}}))))),(0,r.default)(s.default,{className:"rowHeight"},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(D,{label:"\u7528\u6237\u540d"},void 0,t("dbUsername ",{rules:[{required:"Hbase"!==this.state.dbType,message:"\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a"},{max:30,message:"\u7528\u6237\u540d\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.dataBasesData.dbUsername})((0,r.default)(h.default,{disabled:"view"===this.props.viewType,style:{width:"340px"},placeholder:"\u8bf7\u8f93\u5165\u4e3b\u673a\u7528\u6237\u540d",onBlur:function(t){return e.getNameBlur(t.target.value,"dbUsername")}})))),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(D,{label:"\u5bc6\u7801"},void 0,t("dbPassword",{rules:[{required:"Hbase"!==this.state.dbType,message:"\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a"},{max:30,message:"\u5bc6\u7801\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.dataBasesData.dbPassword})((0,r.default)(k,{visibilityToggle:!1,autoComplete:"new-password",disabled:"view"===this.props.viewType,style:{width:"340px"},placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801",onBlur:function(t){return e.getNameBlur(t.target.value,"dbPassword")}}))))),(0,r.default)(D,{label:"\u8fde\u63a5\u53c2\u6570"},void 0,t("dbParam ",{rules:[],initialValue:this.dataBasesData.dbParam})((0,r.default)(M,{disabled:"view"===this.props.viewType,autosize:{minRows:2,maxRows:4},style:{width:805,marginRight:10,min:0,max:450},placeholder:"\u9075\u5faaJDBC\u89c4\u8303",onBlur:function(t){return e.getNameBlur(t.target.value,"dbParam")},rows:3})))),(0,r.default)("div",{style:{display:"Apache Hive"===this.state.dbType||"HW Hive"===this.state.dbType?"":"none"}},void 0,(0,r.default)(T.default,{hievBasesData:this.dataBasesData,dbType:this.state.dbType,viewType:this.props.viewType,setValidateFunc:this.setValidateFunc}))),(0,r.default)(N,{},void 0,(0,r.default)(n.default,{onClick:this.closeModal},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{loading:this.state.testConfirmLoading,style:{marginLeft:8},type:"primary",onClick:this.testConnectData},void 0,"\u6d4b\u8bd5\u8fde\u63a5"),(0,r.default)(n.default,{onClick:this.saveKpi,style:{display:"view"===this.props.viewType?"none":"",marginLeft:8},type:"primary"},void 0,"\u786e\u5b9a\u63d0\u4ea4")))},t}(g.default.PureComponent);t.default=(0,v.connect)((function(e){return{dicHelper:(0,y.default)(e),testConnectDataCode:(0,w.selectTestConnectDataCode)(e),checkNameCode:(0,w.selectCheckNameCode)(e),submitDataBasesData:(0,w.selectSubmitDataBasesData)(e)}}))(x.Form.create()(F))},"./src/module/sysManage/dataBasesManager/component/HiveBasesConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.HiveBasesConfigPage=void 0;var n=T(a("./node_modules/antd/es/button/index.js")),o=T(a("./node_modules/antd/es/upload/index.js")),s=T(a("./node_modules/babel-runtime/helpers/extends.js")),r=T(a("./node_modules/antd/es/input/index.js")),i=T(a("./node_modules/antd/es/col/index.js")),d=T(a("./node_modules/antd/es/row/index.js")),l=T(a("./node_modules/babel-runtime/helpers/jsx.js")),u=T(a("./node_modules/antd/es/message/index.js")),c=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=T(a("./node_modules/babel-runtime/helpers/inherits.js")),m=T(a("./node_modules/antd/es/radio/index.js")),h="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\dataBasesManager\\component\\HiveBasesConfig.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var g=T(a("./node_modules/react/index.js")),v=a("./node_modules/react-redux/es/index.js"),y=a("./node_modules/@ant-design/icons/es/index.js"),b=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var x=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),C=a("./src/utils/constants.js"),j=a("./src/utils/authPermit.js"),S=a("./src/utils/publicPath.js"),I=(T(a("./node_modules/prop-types/index.js")),a("./src/components/index.js"));function T(e){return e&&e.__esModule?e:{default:e}}var w=b.Form.Item,E=m.default.Group,D=t.HiveBasesConfigPage=x.default.div.withConfig({displayName:"HiveBasesConfig__HiveBasesConfigPage",componentId:"sc-1m8y3yo-0"})(["overflow:hidden;height:330px;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;margin-top:30px;border:0px;.error-border{border:1px solid\xa0red;}.ant-upload-list{font-family:'Microsoft Yahei','STXihei','sans-serif';font-size:12px;line-height:1.5;color:rgba(0,0,0,0.65);box-sizing:border-box;margin:0;padding:0;list-style:none;zoom:1;display:inline-block;width:150px;padding-left:10px;padding-bottom:5px;}"]),M={width:"100%"},k=(0,l.default)("span",{},void 0,"hdfs URL:"),P=(0,l.default)(m.default,{value:"1"},void 0,"\u662f"),L=(0,l.default)(n.default,{},void 0,(0,l.default)(y.UploadOutlined,{}),"\u4e0a\u4f20keyTabPath"),N=(0,l.default)(n.default,{},void 0,(0,l.default)(y.UploadOutlined,{}),"\u4e0a\u4f20krd5config"),A=function(e){function t(a){(0,c.default)(this,t);var n=(0,p.default)(this,e.call(this,a));n.getSite=function(e){if(e){var t=e.lastIndexOf("/");return e.substring(t+1,e.length)}return e},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){"0"===n.state.kerbsVerify&&t&&(delete t.keyTabPath,delete t.krdPath,delete t.principal),"1"!==n.state.kerbsVerify||""!==n.hievBasesData.krdPath&&""!==n.hievBasesData.keyTabPath?null===t||"{}"===JSON.stringify(t)?e=!0:null!==t&&(t.keyTabPath||t.krdPath)&&u.default.info("\u8bf7\u4e0a\u4f20keytab\u6216krd5config \u6587\u4ef6\uff01"):u.default.info("\u8bf7\u4e0a\u4f20keytab\u6216krd5config \u6587\u4ef6\uff01")})),e?("0"===n.state.kerbsVerify&&(n.hievBasesData.krdPath="",n.hievBasesData.keyTabPath="",n.hievBasesData.principal=""),{validate:!0,moduleData:n.hievBasesData}):{validate:!1}},n.getNameBlur=function(e,t){"kerbsVerify"===t?n.setState({kerbsVerify:e}):n.hievBasesData[t]=e},n.keyTabPathUpload=function(e){var t=!0;return"keytab"!==e.name.substring(e.name.lastIndexOf(".")+1,e.name.length)&&(t=!1,u.default.error("\u53ea\u652f\u6301keytab\uff0c\u683c\u5f0f\u6587\u4ef6")),t},n.krd5ConfigUpload=function(e){var t=!0;return"conf"!==e.name.substring(e.name.lastIndexOf(".")+1,e.name.length)&&(t=!1,u.default.error("\u53ea\u652f\u6301conf\uff0c\u683c\u5f0f\u6587\u4ef6")),t},n.state={keyTabPathList:"Apache Hive"!==a.dbType&&"HW Hive"!==a.dbType||!a.hievBasesData.keyTabPath?[]:[{uid:"1",name:n.getSite(a.hievBasesData.keyTabPath)}],krd5ConfigList:"Apache Hive"!==a.dbType&&"HW Hive"!==a.dbType||!a.hievBasesData.krdPath?[]:[{uid:"1",name:n.getSite(a.hievBasesData.krdPath)}],kerbsVerify:a.hievBasesData.keyTabPath?"1":"0"},n.hievBasesData="Apache Hive"===a.dbType||"HW Hive"===a.dbType?n.props.hievBasesData:{hdfsPath:"",sitePath:"",krdPath:"",keyTabPath:"",principal:""};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("hiveBasesConfig",n.validateFun),n}return(0,f.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this,n=(0,j.getToken)(),c={name:"file",action:(0,S.urlFormat)("/dataBases/operates/upload",C.ServicePath.DSEM_SERVICE),data:{filesType:"dataBase"},headers:{Authorization:n},onChange:function(e){var t=e.fileList;if(t.length>1&&(t=t.slice(-1)),t=t.map((function(e){return e.response&&e.response.code,e})),"removed"!==e.file.status){var n=a.keyTabPathUpload(e.file);a.setState({keyTabPathList:n?t:[]}),n&&"uploading"===e.file.status&&0===a.state.keyTabPathList.length&&u.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status?(a.hievBasesData.keyTabPath=e.file.response.data,u.default.success(e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01")):"error"===e.file.status&&u.default.error(e.file.name+" \u4e0a\u4f20\u51fa\u9519\uff01")}else a.props.form.setFieldsValue({keyTabPath:""}),a.hievBasesData.keyTabPath="",a.setState({keyTabPathList:[]})}},p={name:"file",action:(0,S.urlFormat)("/dataBases/operates/upload",C.ServicePath.DSEM_SERVICE),headers:{Authorization:n},onChange:function(e){var t=e.fileList;if(t.length>1&&(t=t.slice(-1)),t=t.map((function(e){return e.response&&e.response.code,e})),"removed"!==e.file.status){var n=a.krd5ConfigUpload(e.file);a.setState({krd5ConfigList:n?t:[]}),n&&"uploading"===e.file.status&&0===a.state.krd5ConfigList.length&&u.default.success(e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status?(a.hievBasesData.krdPath=e.file.response.data,u.default.success(e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01")):"error"===e.file.status&&u.default.error(e.file.name+" \u4e0a\u4f20\u51fa\u9519\uff01")}else a.props.form.setFieldsValue({krdPath:""}),a.hievBasesData.krdPath="",a.setState({krd5ConfigList:[]})}};return(0,l.default)(D,{},void 0,(0,l.default)(I.ModelConfigPanel,{title:"hive\u5e93\u914d\u7f6e",style:M},void 0,(0,l.default)(b.Form,{layout:"inline"},void 0,(0,l.default)(d.default,{},void 0,(0,l.default)(i.default,{span:10},void 0,(0,l.default)(w,{help:""},void 0,(0,l.default)("span",{style:{marginLeft:"-11px"}},void 0,"hdfs\u76ee\u5f55 :"),t("hdfsPath",{rules:[{required:!0}],initialValue:this.hievBasesData.hdfsPath})((0,l.default)(r.default,{disabled:"view"===this.props.viewType,style:{marginLeft:"20px",width:"280px"},placeholder:"",onBlur:function(t){return e.getNameBlur(t.target.value,"hdfsPath")}})))),(0,l.default)(i.default,{span:14},void 0,(0,l.default)(w,{help:""},void 0,k,t("sitePath",{rules:[{required:!0}],initialValue:this.hievBasesData.sitePath})((0,l.default)(r.default,{placeholder:"\u4f8b: hdfs://ip:port",disabled:"view"===this.props.viewType,style:{marginLeft:"20px",width:"280px"},onBlur:function(t){return e.getNameBlur(t.target.value,"sitePath")}}))))),(0,l.default)(d.default,{style:{marginTop:15}},void 0,(0,l.default)(i.default,{span:20},void 0,(0,l.default)(w,{help:""},void 0,(0,l.default)("span",{style:{marginLeft:"-17px"}},void 0,"kerbs\u9a8c\u8bc1 :"),t("kerbsVerify",{initialValue:this.state.kerbsVerify})((0,l.default)(E,{style:{marginLeft:20},onChange:function(t){return e.getNameBlur(t.target.value,"kerbsVerify")}},void 0,P,(0,l.default)(m.default,{style:{marginLeft:"20px"},value:"0"},void 0,"\u5426")))))),(0,l.default)("div",{style:{display:"0"===this.state.kerbsVerify?"none":""}},void 0,(0,l.default)(d.default,{style:{marginTop:15}},void 0,(0,l.default)(i.default,{span:10},void 0,(0,l.default)(w,{help:""},void 0,(0,l.default)("span",{style:{marginRight:"18px"}},void 0,"keytab :"),t("keyTabPath",{initialValue:this.hievBasesData.keyTabPath})(g.default.createElement(o.default,(0,s.default)({fileList:this.state.keyTabPathList,style:{marginLeft:19}},c,{__source:{fileName:h,lineNumber:329}}),L)))),(0,l.default)(i.default,{span:10},void 0,(0,l.default)(w,{help:""},void 0,(0,l.default)("span",{style:{marginLeft:"-14px",marginRight:"18px"}},void 0,"krd5config :"),t("krdPath",{initialValue:this.hievBasesData.krdPath})(g.default.createElement(o.default,(0,s.default)({fileList:this.state.krd5ConfigList,style:{marginLeft:19}},p,{__source:{fileName:h,lineNumber:344}}),N))))),(0,l.default)(d.default,{style:{marginTop:15}},void 0,(0,l.default)(i.default,{span:20},void 0,(0,l.default)(w,{help:""},void 0,(0,l.default)("span",{style:{marginLeft:"-10px"}},void 0,"Principal :"),t("principal",{rules:[{required:"1"===this.state.kerbsVerify}],initialValue:this.hievBasesData.principal})((0,l.default)(r.default,{placeholder:"kerberos Principal",disabled:"view"===this.props.viewType,style:{marginLeft:"20px",width:"340px"},onBlur:function(t){return e.getNameBlur(t.target.value,"principal")}})))))))))},t}(g.default.PureComponent);t.default=(0,v.connect)((function(){return{}}))(b.Form.create()(A))},"./src/module/sysManage/dataBasesManager/component/ModalArryTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/table/index.js")),o=m(a("./node_modules/antd/es/modal/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/antd/es/message/index.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js")),u=m(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var c=m(a("./node_modules/react/index.js")),p=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./src/components/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=u.default.Search,g=p.default.div.withConfig({displayName:"ModalArryTable__ModalContentWrapper",componentId:"hcpk6a-0"})(["display:flex;flex-direction:column;margin:0 16px;.search-bar{text-align:right;}.ant-input-search{width:200px !important;margin-left:10px !important;}"]),v=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handleCancel=function(){n.props.onCancelType&&n.setState({visible:!1}),n.arrayData=[],n.props.callVisible()},n.fuzzyQuery=function(e,t){for(var a=[],o=0;o<e.length;o++){e[o].dbLabel.toUpperCase().split(t.toUpperCase()).length>1&&a.push(e[o])}n.setState({dataSource:a})},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.fuzzyQuery(n.props.data,e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.submit=function(){n.arrayData.length>0?(n.props.submitSyncDacpData(n.arrayData),n.arrayData=[]):r.default.info("\u8bf7\u9009\u62e9\u9700\u8981\u540c\u6b65DACP\u6570\u636e\u5e93")},n.arrayData=[],n.state={_this:n,visible:a.modalVisible,title:a.modalTitle,comp:a.comp,height:void 0!==a.height?a.height:"auto",width:void 0!==a.width?a.width:"auto",closable:void 0===a.closable||a.closable,dataSource:[],columns:[{title:"\u82f1\u6587\u540d\u79f0",dataIndex:"dbName",width:"25%",render:function(e){return(0,s.default)(f.LineWrap,{title:e,lineClampNum:1})}},{title:"\u4e2d\u6587\u540d\u79f0",dataIndex:"dbLabel",width:"25%",render:function(e){return(0,s.default)(f.LineWrap,{title:e,lineClampNum:1})}},{title:"\u6570\u636e\u5e93\u7c7b\u578b",dataIndex:"dsType",width:"15%",render:function(e){return(0,s.default)("span",{},void 0,e)}},{title:"\u63cf\u8ff0",dataIndex:"dbDesc",width:"25%",render:function(e){return(0,s.default)(f.LineWrap,{title:e,lineClampNum:1})}}]},n}return(0,l.default)(t,e),t.getDerivedStateFromProps=function(e,t){return{visible:e.modalVisible,title:void 0===e.modalTitle?e.renderTitle:e.modalTitle}},t.prototype.render=function(){var e=this,t={onChange:function(t,a){e.arrayData=[];for(var n=0;n<a.length;n++)e.arrayData.push(a[n].dbId)}};return(0,s.default)(o.default,{keyboard:!1,title:void 0!==this.state.title?this.state.title:"",onCancel:this.handleCancel,visible:this.state.visible,width:this.state.width,confirmLoading:this.props.confirmLoading,destroyOnClose:!0,okText:"\u786e\u8ba4",content:"\u540c\u6b65\u6570\u636e\uff1f",cancelText:"\u53d6\u6d88",onOk:function(){e.submit()},closable:this.state.closable,maskClosable:"view"===this.props.viewType},void 0,(0,s.default)(g,{},void 0,(0,s.default)("div",{className:"search-bar"},void 0,(0,s.default)(h,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",size:"small",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})),this.props.loading&&(0,s.default)(f.LoadingIndicator,{style:{marginTop:70},position:"relative"}),!this.props.loading&&(0,s.default)("div",{style:{marginTop:20,maxHeight:400,overflow:"auto"}},void 0,(0,s.default)(n.default,{rowSelection:t,dataSource:this.state.dataSource.length>0?this.state.dataSource:this.props.data,pagination:!1,columns:this.state.columns}))))},t}(c.default.PureComponent);t.default=v},"./src/module/sysManage/dataBasesManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/styles/GlobalStyle.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Search,f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("dbName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(u.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(p,{placeholder:"\u6570\u636e\u5e93\u540d\u79f0",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/module/sysManage/flinkClusterManage/createPage/CreatePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/input/index.js")),o=v(a("./node_modules/antd/es/button/index.js")),s=v(a("./node_modules/antd/es/row/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/babel-runtime/regenerator/index.js")),d=v(a("./node_modules/antd/es/message/index.js")),l=v(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=v(a("./node_modules/antd/es/radio/index.js")),c=v(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var p=a("./node_modules/react/index.js"),f=(v(p),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=(v(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),h=a("./src/redux/services/sysManager/flinkClusterService.js"),g=a("./src/module/sysManage/flinkClusterManage/modelEnums.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=g.AUTH_TYPE.getValueAndDescList(),b=c.default.Item,x=u.default.Group,C={width:300},j=f.default.div.withConfig({displayName:"CreatePage__ModalWrapper",componentId:"sc-1h4qvwx-0"})([".ant-form-horizontal .ant-form-item-label{width:110px;}"]),S=(0,r.default)(n.default,{placeholder:"\u8bf7\u8f93\u5165Flink\u96c6\u7fa4\u540d\u79f0",style:C}),I=(0,r.default)(n.default,{placeholder:"\u8bf7\u8f93\u5165REST\u5730\u5740, \u4f8b\uff1aip:port",style:C});t.default=function(e){var t=this,a=e.flinkCluster,n=e.onCancel,f=c.default.useForm()[0],v=(0,p.useState)(!1),C=v[0],T=v[1],w=(0,p.useState)(!1),E=w[0],D=w[1],M=function(){var e=(0,l.default)(i.default.mark((function e(){var a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),e.prev=1,e.next=4,f.validateFields();case 4:a=e.sent,(0,h.checkConnect)(a).then((function(e){T(!1),e.data?d.default.success("\u6d4b\u8bd5\u8fde\u63a5\u6210\u529f\uff01"):d.default.error("\u6d4b\u8bd5\u8fde\u63a5\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165")})).catch((function(){d.default.error("\u6d4b\u8bd5\u8fde\u63a5\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165")})),e.next=13;break;case 8:throw e.prev=8,e.t0=e.catch(1),T(!1),d.default.error("\u8f93\u5165\u6709\u8bef\uff0c\u8bf7\u4fee\u6539\u540e\u6d4b\u8bd5"),e.t0;case 13:case"end":return e.stop()}}),e,t,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=(0,l.default)(i.default.mark((function e(){var o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.validateFields();case 3:o=e.sent,D(!0),(a.flinkId?h.updateFlinkCluster:h.addFlinkCluster).call(t,o,a.flinkId).then((function(){d.default.success(a.flinkId?"\u4fee\u6539\u6210\u529f":"\u65b0\u589e\u6210\u529f"),D(!1),n&&n(!0)})),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),D(!1),e.t0;case 12:case"end":return e.stop()}}),e,t,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=(0,l.default)(i.default.mark((function e(n,o){var s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:return e.next=4,(0,h.checkNameRepeat)({flinkId:a.flinkId,flinkName:o});case 4:if(s=e.sent,!_.get(s,"data")){e.next=7;break}return e.abrupt("return",Promise.reject("\u540d\u79f0\u91cd\u590d\uff01"));case 7:return e.abrupt("return",Promise.resolve());case 8:case"end":return e.stop()}}),e,t)})));return function(t,a){return e.apply(this,arguments)}}();return(0,r.default)(j,{},void 0,(0,r.default)("div",{className:"ant-modal-body-children"},void 0,(0,r.default)(m.ModelConfigPanel,{title:"\u57fa\u672c\u4fe1\u606f"},void 0,(0,r.default)(c.default,{name:"flink",form:f,initialValues:a},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(b,{label:"Flink\u96c6\u7fa4\u540d\u79f0",name:"flinkName",rules:[{required:!0,message:"\u8bf7\u8f93\u5165Flink\u96c6\u7fa4\u540d\u79f0"},{max:50,message:"Flink\u96c6\u7fa4\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc750\u4e2a\u5b57\u7b26"},{validator:P}],validateTrigger:"onBlur"},void 0,S)),(0,r.default)(b,{label:"REST\u5730\u5740",name:"flinkMatserHost",rules:[{required:!0,message:"\u8bf7\u8f93\u5165REST\u5730\u5740"}],validateTrigger:["onBlur","onChange"]},void 0,I),(0,r.default)(b,{label:"\u8ba4\u8bc1\u65b9\u5f0f",name:"flinkAuth",validateTrigger:["onBlur","onChange"]},void 0,(0,r.default)(x,{},void 0,y.map((function(e){return(0,r.default)(u.default,{value:e.code,disabled:[g.AUTH_TYPE.SSL,g.AUTH_TYPE.SK].includes(e.code)},e.code,e.desc)}))))))),(0,r.default)("div",{className:"ant-modal-footer"},void 0,(0,r.default)("div",{},void 0,(0,r.default)(o.default,{onClick:n,disabled:E||C},void 0,"\u53d6\u6d88"),(0,r.default)(o.default,{onClick:M,disabled:E,loading:C,type:"primary"},void 0,"\u6d4b\u8bd5\u8fde\u63a5"),(0,r.default)(o.default,{onClick:k,loading:E,disabled:C,type:"primary"},void 0,"\u786e\u8ba4\u63d0\u4ea4"))))}},"./src/module/sysManage/flinkClusterManage/listPage/FlinkClusterList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/table/index.js")),o=v(a("./node_modules/antd/es/button/index.js")),s=v(a("./node_modules/babel-runtime/helpers/extends.js")),r=v(a("./node_modules/antd/es/message/index.js")),i=v(a("./node_modules/babel-runtime/helpers/jsx.js")),d=v(a("./node_modules/antd/es/modal/index.js")),l=v(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var u=a("./node_modules/react/index.js"),c=(v(u),a("./src/components/index.js")),p=a("./src/styles/GlobalStyle.js"),f=v(a("./src/components/table/ColumnRender.jsx")),m=a("./src/redux/services/sysManager/flinkClusterService.js"),h=v(a("./src/module/sysManage/flinkClusterManage/createPage/CreatePage.jsx")),g=a("./src/module/sysManage/flinkClusterManage/modelEnums.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=l.default.Search,b=d.default.confirm;t.default=function(){var e=[{title:"\u5e8f\u53f7",width:60,dataIndex:"index",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"Flink\u96c6\u7fa4\u540d\u79f0",dataIndex:"flinkName",ellipsis:!0,render:function(e){return(0,f.default)(e)}},{title:"REST\u5730\u5740",dataIndex:"flinkMatserHost",ellipsis:!0,render:function(e){return(0,f.default)(e)}},{title:"\u8ba4\u8bc1\u65b9\u5f0f",dataIndex:"flinkAuth",ellipsis:!0,render:function(e){return e?(0,f.default)(g.AUTH_TYPE.getDescFromValue(e)):"\u65e0"}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,f.default)(e,"date")}},{title:"\u64cd\u4f5c",width:220,render:function(e){var t=[];return t.push({handleName:"\u4fee\u6539",handleAction:function(){R(e)}}),t.push({handleName:"\u5220\u9664",handleAction:function(){F(e.flinkId)}}),(0,i.default)(c.ListButtons,{buttons:t,maxShowNum:2})}}],t=(0,u.useState)(!1),a=t[0],l=t[1],v=(0,u.useState)([]),x=v[0],C=v[1],j=(0,u.useState)({}),S=j[0],I=j[1],T=(0,u.useState)("create"),w=T[0],E=T[1],D=(0,u.useState)({flinkAuth:g.AUTH_TYPE.NO}),M=D[0],k=D[1],P=(0,u.useState)(!1),L=P[0],N=P[1];(0,u.useEffect)((function(){A()}),[S]);var A=function(){l(!0),(0,m.getFlinkClusterList)(S).then((function(e){C(_.get(e,"data.flinkInfoList")),l(!1)})).catch((function(e){throw l(!1),e}))},R=function(e){k(e),E("edit"),N(!0)},F=function(e){b({title:"\u786e\u8ba4",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5Flink\u96c6\u7fa4\u63a5\u5165\u5417\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){new Promise((function(t,a){(0,m.deleteFlinkCluster)(e).then((function(){A(),r.default.success("\u5220\u9664\u6210\u529f!"),t()})).catch((function(e){throw a(e),e}))}))}})},O=function(e){k({flinkAuth:g.AUTH_TYPE.NO}),N(!1),!0===e&&A()};return(0,i.default)(p.PageWrapper,{},void 0,(0,i.default)(d.default,{visible:L,footer:null,title:"create"===w?"\u65b0\u589eFlink\u96c6\u7fa4\u63a5\u5165":"\u4fee\u6539Flink\u96c6\u7fa4\u63a5\u5165",wrapClassName:"modal",width:800,onCancel:O,destroyOnClose:!0},void 0,(0,i.default)(h.default,{flinkCluster:M,onCancel:O})),(0,i.default)(p.PageHeader,{},void 0,(0,i.default)(o.default,{className:"import__btn",type:"primary",onClick:function(){E("create"),N(!0)}},void 0,"\u65b0\u589eFlink\u96c6\u7fa4\u63a5\u5165"),(0,i.default)(y,{placeholder:"Flink\u96c6\u7fa4\u540d\u79f0",onSearch:function(e){var t=(0,s.default)({},S,{keyword:e});I(t)},style:{width:200}})),(0,i.default)(p.PageBody,{},void 0,(0,i.default)(p.TableWrapper,{},void 0,(0,i.default)(n.default,{loading:a,bordered:!0,columns:e,dataSource:x,rowKey:"flinkId"}))))}},"./src/module/sysManage/flinkClusterManage/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.AUTH_TYPE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};t.AUTH_TYPE=(0,s.default)({NO:["none","\u65e0"],SSL:["SSL","SSL"],SK:["SASL/Kerberos","SASL/Kerberos"]})},"./src/module/sysManage/ftpBasesManager/FtpBasesManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/divider/index.js")),o=C(a("./node_modules/antd/es/table/index.js")),s=C(a("./node_modules/antd/es/button/index.js")),r=C(a("./node_modules/antd/es/tooltip/index.js")),i=C(a("./node_modules/babel-runtime/helpers/jsx.js")),d=C(a("./node_modules/antd/es/message/index.js")),l=C(a("./node_modules/antd/es/modal/index.js")),u=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=C(a("./node_modules/react/index.js")),m=(C(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./src/components/index.js"),g=a("./src/redux/reducers/sysManager/ftpBasesManager.js"),v=C(a("./src/module/sysManage/ftpBasesManager/component/CreateFtpBasesConfig.jsx")),y=C(a("./src/module/sysManage/ftpBasesManager/component/SearchBar.jsx")),b=a("./src/redux/selectors/sysManager/ftpBasesManager.js"),x=a("./src/styles/GlobalStyle.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=(0,i.default)("span",{},void 0,"\u5e8f\u53f7"),S=(0,i.default)(n.default,{type:"vertical"}),I=(0,i.default)("div",{}),T=(0,i.default)(h.LoadingIndicator,{position:"relative"}),w=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.fetchData=function(e){n.props.dispatch(g.ftpBasesActions.getFtpBasesListRequest(e))},n.editFtpBases=function(e,t){n.props.dispatch(g.ftpBasesActions.resetFtpBasesInfo()),n.props.dispatch(g.ftpBasesActions.getFtpBasesInfoRequest({id:e.id})),n.setState({viewType:t,modalVisible:!0})},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.delFtpBases=function(e){l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.storageName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(g.ftpBasesActions.deleteFtpBasesRequest(e.id)),new Promise((function(t){_.defer((function(){var a=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(a),0===_.size(n.props.operateError)?(d.default.success("\u5220\u9664[ "+e.storageName+" ]\u6210\u529f!"),n.props.dispatch(g.ftpBasesActions.resetDeleteFtpBases()),n.props.dispatch(g.ftpBasesActions.getFtpBasesListRequest(n.searchCond))):d.default.error("\u5220\u9664[ "+e.storageName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.openKpiConfig=function(e){n.props.dispatch(g.ftpBasesActions.resetFtpBasesInfo()),n.setState({modalVisible:!0,viewType:e})},n.callVisible=function(){n.setState({modalVisible:!1,viewType:""})},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.state={modalVisible:!1,viewType:"",currentPage:1,confirmLoading:!1},n.columns=[{title:j,width:"8%",dataIndex:"id",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"\u540d\u79f0",dataIndex:"storageName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u4e3b\u673aIP\u5730\u5740",dataIndex:"storageHost",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7c7b\u578b",dataIndex:"storageProtocol",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7aef\u53e3",dataIndex:"storagePort",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7528\u6237\u540d",dataIndex:"storageUsername",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u914d\u7f6e\u8def\u5f84",dataIndex:"storagePath",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:"18%",render:function(e,t){return(0,i.default)("span",{},void 0,"999"!==t.id?(0,i.default)("div",{},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.editFtpBases(t,"edit")}},void 0,"\u4fee\u6539"),S,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.delFtpBases(t)}},void 0,"\u5220\u9664")):"\u65e0\u64cd\u4f5c")}}],n.searchCond={storageName:"",offset:1,limit:10},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(g.ftpBasesActions.getFtpBasesListRequest(this.searchCond))},t.prototype.render=function(){var e=this,t=this.props.ftpBasesPagination?this.props.ftpBasesPagination.toJS():{},a=null!==this.props.ftpBasesList&&void 0!==this.props.ftpBasesList?this.props.ftpBasesList.toJS():[];return(0,i.default)(x.PageWrapper,{},void 0,(0,i.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539FTP\u914d\u7f6e":"view"===this.state.viewType?"\u67e5\u770bFTP\u914d\u7f6e":"\u65b0\u5efaFTP\u914d\u7f6e",onCancelType:!1,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:"create"===this.state.viewType?(0,i.default)(v.default,{searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):this.props.ftpBasesInfo.size>0?(0,i.default)(v.default,{ftpBasesData:this.props.ftpBasesInfo.toJS(),searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):I},this.state.viewType),(0,i.default)(x.PageHeader,{},void 0,(0,i.default)(s.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589eFTP"),(0,i.default)(y.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,i.default)(x.PageBody,{},void 0,(0,i.default)(x.TableWrapper,{},void 0,this.props.loading&&T,!this.props.loading&&(0,i.default)(o.default,{dataSource:a,rowKey:"id",bordered:!0,pagination:!1,columns:this.columns}),(0,i.default)(h.TabPagination,{currentPage:t.offset,pageSize:10,total:t.total,onChange:this.onChangePage}))))},t}(f.default.PureComponent);t.default=(0,m.connect)((function(e){return{operateError:(0,b.selectOperateError)(e),opreateLoading:(0,b.selectOperateLoading)(e),ftpBasesPagination:(0,b.selectFtpBasesPagination)(e),loading:(0,b.selectFtpBasesListLoading)(e),ftpBasesList:(0,b.selectFtpBasesList)(e),ftpBasesInfo:(0,b.selectFtpBasesInfo)(e)}}))(w)},"./src/module/sysManage/ftpBasesManager/component/CreateFtpBasesConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.CreateRolesConfigPage=void 0;var n=T(a("./node_modules/antd/es/button/index.js")),o=T(a("./node_modules/antd/es/col/index.js")),s=T(a("./node_modules/antd/es/row/index.js")),r=T(a("./node_modules/babel-runtime/helpers/jsx.js")),i=T(a("./node_modules/antd/es/modal/index.js")),d=T(a("./node_modules/babel-runtime/regenerator/index.js")),l=T(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=T(a("./node_modules/antd/es/message/index.js")),c=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=T(a("./node_modules/babel-runtime/helpers/inherits.js")),m=T(a("./node_modules/antd/es/radio/index.js")),h=T(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var g=T(a("./node_modules/react/index.js")),v=a("./node_modules/react-redux/es/index.js"),y=a("./node_modules/immutable3/dist/immutable.js"),b=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var x=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),C=(T(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),j=a("./src/redux/reducers/sysManager/ftpBasesManager.js"),S=a("./src/redux/selectors/sysManager/ftpBasesManager.js"),I=T(a("./src/redux/services/sysManager/ftpBasesManager.js"));function T(e){return e&&e.__esModule?e:{default:e}}var w=b.Form.Item,E=h.default.TextArea,D=m.default.Group,M=t.CreateRolesConfigPage=x.default.div.withConfig({displayName:"CreateFtpBasesConfig__CreateRolesConfigPage",componentId:"qwvu9e-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}.ant-legacy-form-inline .ant-legacy-form-item > .ant-legacy-form-item-label{width:85px;}"]),k=t.ButtonDom=x.default.div.withConfig({displayName:"CreateFtpBasesConfig__ButtonDom",componentId:"qwvu9e-1"})(["height:28px;text-align:right;border-top:1px solid #e8e8e8;padding:10px 20px;width:calc(100% + 32px);margin-left:-16px;"]),P={width:"100%",overflow:"auto",height:400},L=(0,r.default)(m.default,{value:"sftp"},void 0,"sftp"),N=function(e){function t(a){var n=this;(0,c.default)(this,t);var o=(0,p.default)(this,e.call(this,a));return o.formatDataBasesDat=function(e){return e.storagePassword="null",e},o.closeModal=function(){o.props.closeKpiConfig()},o.testConnectFtp=function(){o.props.form.validateFieldsAndScroll((function(e){null===e?(o.ftpBasesData.storagePassword="null"===o.ftpBasesData.storagePassword?null:o.ftpBasesData.storagePassword,o.props.dispatch(j.ftpBasesActions.testConnectFtpRequest({config:o.ftpBasesData})),o.setState({testConfirmLoading:!0})):u.default.info("\u6d4b\u8bd5\u8fde\u63a5\u524d\uff0c\u8bf7\u5b8c\u5584\u586b\u5199\u6570\u636e!")}))},o.saveKpi=function(){o.props.form.validateFieldsAndScroll((function(e){null===e&&o.setState({modalVisible:!0})}))},o.submitModalCancel=function(){o.setState({modalVisible:!1})},o.submitModalOk=function(){o.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+o.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),o.ftpBasesData.storagePort=parseInt(o.ftpBasesData.storagePort),o.ftpBasesData.storagePassword="null"===o.ftpBasesData.storagePassword?null:o.ftpBasesData.storagePassword,o.props.dispatch(j.ftpBasesActions.submitFtpBasesDataRequest({subType:o.props.viewType,ftpBasesData:o.ftpBasesData}))},o.getNameBlur=function(e,t){o.ftpBasesData[t]=e},o.handleCheckNameValidate=function(){var e=(0,l.default)(d.default.mark((function e(t,a,s){var r;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a){e.next=3;break}return s(),e.abrupt("return");case 3:return e.prev=3,e.next=6,I.default.checkNameRepeat({id:o.ftpBasesData.id,storageName:a});case 6:if(r=e.sent,!_.get(r,"data.isRepeat")){e.next=9;break}throw Error("\u540d\u79f0\u91cd\u590d\uff01");case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),s(e.t0);case 14:s();case 15:case"end":return e.stop()}}),e,n,[[3,11]])})));return function(t,a,n){return e.apply(this,arguments)}}(),o.updateFtpName=function(e){o.setState({storageName:e}),o.ftpBasesData.storageName=e,o.props.form.setFieldsValue({storageName:e})},o.emitEmptyName=function(){o.storageName.focus(),o.props.form.setFieldsValue({storageName:""}),o.ftpBasesData.storageName=""},o.getIndiData=function(e){o.setState({operatePermits:e})},o.deleteValiFuncs=function(){o.validateFuncs={}},o.setValidateFunc=function(e,t){o.validateFuncs[e]=t},o.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,testConfirmLoading:!1,modalVisible:!1,_this:o,storageName:"create"!==o.props.viewType?o.props.ftpBasesData.storageName:""},o.ftpBasesData="create"!==o.props.viewType?o.formatDataBasesDat(o.props.ftpBasesData):{storageProtocol:"sftp",storagePort:""},o}return(0,f.default)(t,e),t.getDerivedStateFromProps=function(e){return"{}"!==JSON.stringify(e.submitFtpBasesData)?1===(0,y.Map)(e.submitFtpBasesData).get("code")?(u.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(j.ftpBasesActions.resetSubmitFtpBasesData()),e.closeKpiConfig("close"),e.fetchData(e.searchCond),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(e.dispatch(j.ftpBasesActions.resetSubmitFtpBasesData()),i.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):0!==e.testConnectFtpCode?(e.dispatch(j.ftpBasesActions.resetTestConnectFtp()),1===e.testConnectFtpCode?u.default.success("\u6d4b\u8bd5\u8fde\u63a5\u6210\u529f!"):u.default.error("\u6d4b\u8bd5\u8fde\u63a5\u5931\u8d25!"),{testConfirmLoading:!1}):null},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(M,{},void 0,(0,r.default)(i.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,r.default)("p",{},void 0,this.state.modalTxt)),(0,r.default)(C.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:P},void 0,(0,r.default)(b.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(w,{label:"\u540d\u79f0"},void 0,t("storageName",{rules:[{required:!0,message:"\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"},{max:30,message:"\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"},{validator:this.handleCheckNameValidate}],initialValue:this.state.storageName,validateTrigger:"onBlur"})((0,r.default)(h.default,{style:{width:"300px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",onChange:function(t){return e.getNameBlur(t.target.value,"storageName")}}))))),(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u4e3b\u673aIP"},void 0,t("storageHost",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4e3b\u673aIP"},{max:30,message:"\u4e3b\u673aIP\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.ftpBasesData.storageHost})((0,r.default)(h.default,{disabled:"view"===this.props.viewType,style:{width:"300px"},placeholder:"\u8bf7\u8f93\u5165\u4e3b\u673aIP",onBlur:function(t){return e.getNameBlur(t.target.value,"storageHost")}})))),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u7aef\u53e3"},void 0,t("storagePort ",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7aef\u53e3"},{max:30,message:"\u7aef\u53e3\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.ftpBasesData.storagePort+""})((0,r.default)(h.default,{disabled:"view"===this.props.viewType,style:{width:"300px"},placeholder:"\u8bf7\u8f93\u5165\u7aef\u53e3",onBlur:function(t){return e.getNameBlur(t.target.value,"storagePort")}}))))),(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u7528\u6237\u540d"},void 0,t("storageUsername ",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7528\u6237\u540d"},{max:30,message:"\u7528\u6237\u540d\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.ftpBasesData.storageUsername})((0,r.default)(h.default,{disabled:"view"===this.props.viewType,style:{width:"300px"},placeholder:"\u8bf7\u8f93\u5165\u4e3b\u673a\u7528\u6237\u540d",onBlur:function(t){return e.getNameBlur(t.target.value,"storageUsername")}})))),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u5bc6\u7801"},void 0,t("storagePassword",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801"},{max:30,message:"\u5bc6\u7801\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.ftpBasesData.storagePassword})((0,r.default)(h.default,{type:"password",autoComplete:"new-password",disabled:"view"===this.props.viewType,style:{width:"300px"},placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801",onBlur:function(t){return e.getNameBlur(t.target.value,"storagePassword")}}))))),(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{span:20},void 0,(0,r.default)(w,{label:"Ftp\u5206\u7c7b"},void 0,t("storageProtocol",{rules:[{required:!0}],initialValue:this.ftpBasesData.storageProtocol})((0,r.default)(D,{onChange:function(t){return e.getNameBlur(t.target.value,"storageProtocol")}},void 0,L,(0,r.default)(m.default,{style:{marginLeft:"20px"},value:"ftp"},void 0,"ftp")))))),(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{span:24},void 0,(0,r.default)(w,{label:"\u914d\u7f6e\u8def\u5f84"},void 0,t("storagePath ",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u914d\u7f6e\u8def\u5f84"},{max:150,message:"\u914d\u7f6e\u8def\u5f84\u4e0d\u5f97\u8d85\u8fc7150\u4e2a\u5b57\u7b26"}],initialValue:this.ftpBasesData.storagePath})((0,r.default)(E,{disabled:"view"===this.props.viewType,autosize:{minRows:2,maxRows:4},style:{width:600,marginRight:10,min:0,max:200},onBlur:function(t){return e.getNameBlur(t.target.value,"storagePath")},rows:3}))))))),(0,r.default)(k,{},void 0,(0,r.default)(n.default,{loading:this.state.testConfirmLoading,onClick:this.closeModal},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{loading:this.state.testConfirmLoading,style:{marginLeft:"8px"},type:"primary",onClick:this.testConnectFtp},void 0,"\u6d4b\u8bd5\u8fde\u63a5"),(0,r.default)(n.default,{loading:this.state.testConfirmLoading,onClick:this.saveKpi,style:{display:"view"===this.props.viewType?"none":"",marginLeft:"8px"},type:"primary"},void 0,"\u786e\u5b9a\u63d0\u4ea4")))},t}(g.default.PureComponent);t.default=(0,v.connect)((function(e){return{testConnectFtpCode:(0,S.selectTestConnectFtpCode)(e),submitFtpBasesData:(0,S.selectSubmitFtpBasesData)(e)}}))(b.Form.create()(N))},"./src/module/sysManage/ftpBasesManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/styles/GlobalStyle.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Search,f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("storageName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(u.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(p,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/module/sysManage/gridDemo/GridDemo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/react/index.js")),d=a("./node_modules/react-redux/es/index.js"),l=a("./src/components/index.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,n.default)(l.LayoutGrid,{}),p=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.render=function(){return c},t}(i.default.Component);t.default=(0,d.connect)((function(){return{}}))(p)},"./src/module/sysManage/helpPage/HelpPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.HelpPageDom=void 0;var n=f(a("./node_modules/antd/es/button/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=f(a("./node_modules/react/index.js")),l=a("./node_modules/react-redux/es/index.js"),u=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=a("./src/components/index.js"),p=f(a("./src/module/sysManage/helpPage/component/GuidePage.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=t.HelpPageDom=u.default.div.withConfig({displayName:"HelpPage__HelpPageDom",componentId:"xiekwl-0"})([""]),h=(0,o.default)(p.default,{}),g=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.operationModalVisible=function(e){n.setState({modalVisible:e})},n.state={modalVisible:!1},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this;return(0,o.default)(m,{},void 0,(0,o.default)(c.ModalView,{viewType:"view",onCancelType:!1,width:1064,callVisible:function(){return e.operationModalVisible(!1)},modalVisible:this.state.modalVisible,comp:h}),(0,o.default)(n.default,{onClick:function(){return e.operationModalVisible(!0)},type:"primary"},void 0,"\u52a8\u6001\u6307\u793a"))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(g)},"./src/module/sysManage/helpPage/component/GuideDetailsPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.GuideDetailsPageDom=void 0;var n=h(a("./node_modules/antd/es/button/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=h(a("./node_modules/react/index.js")),l=a("./node_modules/react-redux/es/index.js"),u=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./src/redux/reducers/auth.js"),f=a("./src/redux/selectors/auth.js"),m=h(a("./src/module/sysManage/helpPage/component/data.json"));function h(e){return e&&e.__esModule?e:{default:e}}var g=t.GuideDetailsPageDom=u.default.div.withConfig({displayName:"GuideDetailsPage__GuideDetailsPageDom",componentId:"xm37wf-0"})(["position:relative;.ant-btn.ant-btn-sm{padding:0 19px;background:rgba(255,255,255,0.3);border:1px solid rgba(255,255,255,0.5);border-radius:15px;border-radius:15px;color:#ffffff;}.hint-div{border-radius:4px 4px 0 0;position:absolute;top:0;.close-div{cursor:pointer;float:right;margin-right:-20px;margin-top:-5px;}.title-div{border-top-left-radius:4px;border-top-right-radius:4px;padding-left:4%;background:#2396f3;.ant-popover-arrow-centre-top{top:-4px;left:40%;border-top-color:#2396f3;border-right-color:transparent;border-bottom-color:transparent;border-left-color:#2396f3;-webkit-box-shadow:-2px -2px 5px rgba(0,0,0,0.06);box-shadow:-2px -2px 5px rgba(0,0,0,0.06);position:absolute;display:block;width:8.48528137px;height:8.48528137px;background:0 0;border-style:solid;border-width:4.24264069px;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}.ant-popover-arrow-top{top:-4px;border-top-color:#2396f3;border-right-color:transparent;border-bottom-color:transparent;border-left-color:#2396f3;-webkit-box-shadow:-2px -2px 5px rgba(0,0,0,0.06);box-shadow:-2px -2px 5px rgba(0,0,0,0.06);position:absolute;display:block;width:8.48528137px;height:8.48528137px;background:0 0;border-style:solid;border-width:4.24264069px;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}.ant-popover-arrow-left{left:-4px;top:10px;border-top-color:#2396f3;border-right-color:transparent;border-bottom-color:#2396f3;border-left-color:#2396f3;-webkit-box-shadow:-3px 3px 7px rgba(0,0,0,0.07);box-shadow:-3px 3px 7px rgba(0,0,0,0.07);position:absolute;display:block;width:8.48528137px;height:8.48528137px;background:0 0;border-style:solid;border-width:4.24264069px;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}}.content-div{padding-left:4%;background:#ffffff;border-bottom-right-radius:4px;border-bottom-left-radius:4px;.ant-popover-arrow-left{left:-4px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:#fff;border-left-color:#fff;-webkit-box-shadow:-3px 3px 7px rgba(0,0,0,0.07);box-shadow:-3px 3px 7px rgba(0,0,0,0.07);position:absolute;display:block;width:8.48528137px;height:8.48528137px;background:0 0;border-style:solid;border-width:4.24264069px;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}}.nextUp-div{margin-top:10px;padding:5px;}}"]),v=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.setGuideDetailsKey=function(e){if("next"===e&&n.state.modelData.length===parseInt(n.props.guideDetailsKey))n.closeGuideDetails();else{var t="next"===e?parseInt(n.props.guideDetailsKey)+1:parseInt(n.props.guideDetailsKey)-1;n.props.dispatch(p.authActions.setGuideDetailsKey({key:t+""}))}},n.closeGuideDetails=function(){n.props.dispatch(p.authActions.setGuideDetailsKey({key:"1"})),n.props.dispatch(p.authActions.openGuideDetails(!1))},n.state={modelData:m.default},n.hintHeight=window.innerHeight/6,n.titleHeight=.25*n.hintHeight,n.contentHeight=n.hintHeight-n.titleHeight,n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.modelData,s=this.props.guideDetailsKey;return(0,o.default)(g,{},void 0,t.map((function(t){return s===t.key&&(0,o.default)("div",{},t.key,(0,o.default)("div",{},void 0,(0,o.default)("img",{style:{width:"100%",height:"100%"},src:a("./src/styles/images/sysManager sync recursive ^\\.\\/.*\\.jpg$")("./"+t.img+".jpg")})),t.hints.map((function(t,a){return(0,o.default)("div",{className:"hint-div",style:{height:e.hintHeight,width:t.size&&"small"===t.size?"8.6%":"20.1%",top:t.top+"%",left:t.left+"%"}},a,(0,o.default)("div",{style:{paddingTop:(e.titleHeight-16)/2+"px",height:e.titleHeight},className:"title-div"},void 0,!1!==t.titleDirection&&(0,o.default)("div",{className:"ant-popover-arrow-"+(t.titleDirection?t.titleDirection:"top")}),(0,o.default)("span",{style:{color:"#ffffff"}},void 0,t.title),t.close&&(0,o.default)("div",{title:"\u5173\u95ed",className:"close-div"},void 0,(0,o.default)(c.CloseCircleOutlined,{onClick:function(){return e.closeGuideDetails()},style:{fontSize:16,color:"#ffff"}}))),(0,o.default)("div",{style:{paddingTop:(e.titleHeight-16)/2+"px",height:e.contentHeight},className:"content-div"},void 0,!1!==t.contentDirection&&(0,o.default)("div",{style:{top:e.hintHeight-15+"px"},className:"ant-popover-arrow-"+(t.contentDirection?t.contentDirection:"left")}),(0,o.default)("span",{},void 0,t.content)),(t.up||t.next)&&(0,o.default)("div",{className:"nextUp-div"},void 0,t.up&&(0,o.default)(n.default,{size:"small",onClick:function(){return e.setGuideDetailsKey("up")},type:"dashed"},void 0,"\u4e0a\u4e00\u6b65"),t.next&&(0,o.default)(n.default,{onClick:function(){return e.setGuideDetailsKey("next")},style:{float:"right"},size:"small",type:"dashed"},void 0,"\u4e0b\u4e00\u6b65")))})))})))},t}(d.default.Component);t.default=(0,l.connect)((function(e){return{guideDetailsKey:(0,f.selectGuideDetailsKey)(e)}}))(v)},"./src/module/sysManage/helpPage/component/GuidePage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.HelpPageDom=t.ConfigButtonDom=void 0;var n=f(a("./node_modules/antd/es/button/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=f(a("./node_modules/react/index.js")),l=a("./node_modules/react-redux/es/index.js"),u=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./src/redux/reducers/auth.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=t.ConfigButtonDom=u.default.div.withConfig({displayName:"GuidePage__ConfigButtonDom",componentId:"sc-7zulph-0"})(["text-align:right;line-height:200px;padding-right:50px;"]),h=t.HelpPageDom=u.default.div.withConfig({displayName:"GuidePage__HelpPageDom",componentId:"sc-7zulph-1"})(["height:562px;span{text-align:center;}h1{font-size:32px;color:#000000;margin-top:52px;margin-left:40px;}h2{font-size:14px;color:#595959;margin-top:8px;margin-left:40px;}ul{margin-top:66.5px;list-style:none;li{float:left;width:116px;.text{font-size:18px;color:#000000;letter-spacing:1.93px;text-align:justify;}}.left-div{line-height:210px;float:left;width:80px;text-align:center;}}"]),g=(0,o.default)("h1",{},void 0,"\u6b22\u8fce\u4f7f\u7528\u6570\u636e\u667a\u80fd\u5e73\u53f0\uff01"),v=(0,o.default)("h2",{},void 0,"\u6570\u636e\u667a\u80fd\u5e73\u53f0\u878d\u5408\u9879\u76ee\u3001\u5e94\u7528\uff0c\u53ca\u5e94\u7528\u6d41\u6c34\u7ebf\u4e0a\u7684\u6570\u636e\u51c6\u5907-\u6a21\u578b\u5f00\u53d1-\u670d\u52a1\u90e8\u7f72\uff0c\u6700\u7ec8\u751f\u6210\u53ef\u8fd0\u884c\u7684\u670d\u52a1\u3002"),_=(0,o.default)("br",{}),y=(0,o.default)("br",{}),b=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.openGuideDetails=function(){n.props.dispatch(p.authActions.setGuideDetailsKey({key:"1"})),n.props.dispatch(p.authActions.openGuideDetails(!0))},n.state={modelData:[{title:"\u52a0\u5165\u9879\u76ee",desc:"\u83b7\u5f97\u903b\u8f91,\u9879\u76ee\u8d44\u6e90",img:"jrxm"},{title:"\u521b\u5efa\u5e94\u7528",desc:"\u4f7f\u7528\u5e94\u7528,\u5173\u8054\u6d41\u7a0b",img:"cjyy"},{title:"\u6570\u636e\u51c6\u5907",desc:"\u51c6\u5907\u8bad\u7ec3/\u63a8\u7406,\u7528\u7684\u6570\u636e",img:"sjzb"},{title:"\u6a21\u578b\u5f00\u53d1",desc:"\u5f00\u53d1\u63a8\u7406,\u7528\u7684\u6a21\u578b",img:"mxkf"},{title:"\u670d\u52a1\u90e8\u7f72",desc:"\u5c06\u6a21\u578b\u90e8\u7f72\u6210,\u53ef\u7528\u670d\u52a1",img:"fwbs"}]},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.modelData;return(0,o.default)(h,{},void 0,g,v,(0,o.default)("ul",{},void 0,t.map((function(e,n){return(0,o.default)("div",{},n,(0,o.default)("li",{},void 0,(0,o.default)("img",{style:{width:116,height:156},src:a("./src/styles/images/sysManager sync recursive ^\\.\\/.*\\.png$")("./"+e.img+".png")}),(0,o.default)("div",{style:{marginTop:12,textAlign:"center"}},void 0,(0,o.default)("span",{className:"text"},void 0,e.title),_,(0,o.default)("div",{style:{marginTop:16}},void 0,e.desc.split(",").map((function(e,t){return(0,o.default)("span",{style:{color:"#595959"}},t,e,y)}))))),n+1<t.length&&(0,o.default)("div",{className:"left-div"},void 0,(0,o.default)(c.DoubleRightOutlined,{style:{fontSize:16}})))}))),(0,o.default)(m,{},void 0,(0,o.default)(n.default,{style:{width:120},onClick:function(){return e.openGuideDetails()},type:"primary"},void 0,"\u5f00\u59cb\u6d4f\u89c8")))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(b)},"./src/module/sysManage/helpPage/component/data.json":function(e){e.exports=JSON.parse('[{"key":"1","title":"\u52a0\u5165\u9879\u76ee","img":"1-jrxm","hints":[{"top":7,"left":30,"title":"\u521b\u5efa\u9879\u76ee/\u52a0\u5165\u9879\u76ee","content":"\u521b\u5efa\u9879\u76ee\u6216\u52a0\u5165\u5df2\u6709\u9879\u76ee\uff0c\u83b7\u53d6\u9879\u76ee\u8d44\u6e90","close":true,"next":true}]},{"key":"2","title":"\u521b\u5efa\u5e94\u7528","img":"2-yygl","hints":[{"top":20,"left":7,"title":"\u5e94\u7528\u9879\u76ee","content":"\u65b0\u589e\u5e94\u7528\uff0c\u7528\u4e8e\u540e\u7eed\u6d41\u6c34\u7ebf\u6267\u884c","close":true,"up":true,"next":true,"contentDirection":false}]},{"key":"3","title":"\u6570\u636e\u51c6\u5907","img":"3-sjzb","hints":[{"top":40,"left":7,"title":"\u6570\u636e\u51c6\u5907","content":"\u7ed3\u6784\u5316\u6570\u636e/\u975e\u7ed3\u6784\u5316\u6570\u636e\u96c6\u63a5\u5165\u3001\u7ed1\u5b9a\u5e94\u7528\u3001\u6570\u636e\u5f00\u53d1\u548c\u6807\u6ce8","close":true,"up":true,"next":true,"titleDirection":false,"contentDirection":false}]},{"key":"4","title":"\u6a21\u578b\u5f00\u53d1","img":"4-mxkf","hints":[{"top":50,"left":6,"title":"\u6a21\u578b\u5f00\u53d1","content":"\u7f16\u7801\u8bad\u7ec3\u6a21\u578b\uff0c\u7b2c\u4e09\u65b9\u6a21\u578b\u3001\u4ee3\u7801\u5305\u5bfc\u5165","close":true,"up":true,"next":true,"titleDirection":false,"contentDirection":false}]},{"key":"5","title":"\u670d\u52a1\u90e8\u7f72","img":"5-fwbs","hints":[{"top":46,"left":10,"title":"\u670d\u52a1\u90e8\u7f72","content":"\u628a\u6a21\u578b\u3001\u4ee3\u7801\u5305\u3001\u63a8\u7406\u955c\u50cf\u53d1\u5e03\u6210\u63a8\u7406\u670d\u52a1","close":true,"up":true,"next":true,"titleDirection":false,"contentDirection":false}]},{"key":"6","title":"\u5176\u4f59\u529f\u80fd","img":"6-qygn","hints":[{"top":35,"left":18,"title":"\u955c\u50cf\u7ba1\u7406","content":"\u57fa\u7840\u955c\u50cf\u3001\u8bad\u7ec3\u955c\u50cf\u3001\u63a8\u7406\u955c\u50cf\u3001\u4ee3\u7801\u5305\u60c5\u51b5","titleDirection":"left","close":true,"contentDirection":false},{"top":57,"left":18,"title":"\u9879\u76ee\u914d\u7f6e","content":"\u9879\u76ee\u7684\u6570\u636e\u6e90\u3001\u7533\u8bf7\u5ba1\u6279\u3001\u8d44\u6e90\u3001\u6210\u5458\u60c5\u51b5","close":true,"up":true,"next":true,"titleDirection":"left","contentDirection":false}]}]')},"./src/module/sysManage/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/module/sysManage/messageAffiche/MessageAfficheTabs.jsx");Object.defineProperty(t,"MessageAfficheTabs",{enumerable:!0,get:function(){return ue(n).default}});var o=a("./src/module/sysManage/messageAffiche/AfficheManagePage.jsx");Object.defineProperty(t,"AfficheManagePage",{enumerable:!0,get:function(){return ue(o).default}});var s=a("./src/module/sysManage/ftpBasesManager/FtpBasesManagePage.jsx");Object.defineProperty(t,"FtpBasesManagePage",{enumerable:!0,get:function(){return ue(s).default}});var r=a("./src/module/sysManage/dataBasesManager/DataBasesManagePage.jsx");Object.defineProperty(t,"DataBasesManagePage",{enumerable:!0,get:function(){return ue(r).default}});var i=a("./src/module/sysManage/taskManager/TaskManagePage.jsx");Object.defineProperty(t,"TaskManagePage",{enumerable:!0,get:function(){return ue(i).default}});var d=a("./src/module/sysManage/taskManager/component/CreateATaskConfig.jsx");Object.defineProperty(t,"CreateATaskManagePage",{enumerable:!0,get:function(){return ue(d).default}});var l=a("./src/module/sysManage/taskManager/component/CreateBTaskConfig.jsx");Object.defineProperty(t,"CreateBTaskManagePage",{enumerable:!0,get:function(){return ue(l).default}});var u=a("./src/module/sysManage/taskManager/component/ViewATaskConfig.jsx");Object.defineProperty(t,"ViewATaskConfigPage",{enumerable:!0,get:function(){return ue(u).default}});var c=a("./src/module/sysManage/obsManager/ObsManagePage.jsx");Object.defineProperty(t,"ObsManagePage",{enumerable:!0,get:function(){return ue(c).default}});var p=a("./src/module/sysManage/appTopicBasesManager/AppTopicBasesManagePage.jsx");Object.defineProperty(t,"AppTopicBasesManagePage",{enumerable:!0,get:function(){return ue(p).default}});var f=a("./src/module/sysManage/messageAffiche/component/Details.jsx");Object.defineProperty(t,"Details",{enumerable:!0,get:function(){return ue(f).default}});var m=a("./src/module/sysManage/switch/SwitchPage.jsx");Object.defineProperty(t,"SwitchPage",{enumerable:!0,get:function(){return ue(m).default}});var h=a("./src/module/sysManage/controlCentre/ControlCentrePage.jsx");Object.defineProperty(t,"ControlCentrePage",{enumerable:!0,get:function(){return ue(h).default}});var g=a("./src/module/sysManage/contactInfo/CreateContactPage.jsx");Object.defineProperty(t,"CreateContactPage",{enumerable:!0,get:function(){return ue(g).default}});var v=a("./src/module/sysManage/interface/InterfacePage.jsx");Object.defineProperty(t,"InterfacePage",{enumerable:!0,get:function(){return ue(v).default}});var _=a("./src/module/sysManage/netDiskManager/NetDiskManagePage.jsx");Object.defineProperty(t,"NetDiskManagePage",{enumerable:!0,get:function(){return ue(_).default}});var y=a("./src/module/sysManage/sceneDemoManager/page/SceneDemoPage.jsx");Object.defineProperty(t,"SceneDemoPage",{enumerable:!0,get:function(){return ue(y).default}});var b=a("./src/module/sysManage/sceneDemoManager/page/SceneDemoInfoPage.jsx");Object.defineProperty(t,"SceneDemoInfoPage",{enumerable:!0,get:function(){return ue(b).default}});var x=a("./src/module/sysManage/gridDemo/GridDemo.jsx");Object.defineProperty(t,"GridDemo",{enumerable:!0,get:function(){return ue(x).default}});var C=a("./src/module/sysManage/helpPage/HelpPage.jsx");Object.defineProperty(t,"HelpPage",{enumerable:!0,get:function(){return ue(C).default}});var j=a("./src/module/sysManage/register/RegisterPage.jsx");Object.defineProperty(t,"RegisterPage",{enumerable:!0,get:function(){return ue(j).default}});var S=a("./src/module/sysManage/register/AiDocPage.jsx");Object.defineProperty(t,"AiDocPage",{enumerable:!0,get:function(){return ue(S).default}});var I=a("./src/module/sysManage/labelsManage/page/LabelsManage.jsx");Object.defineProperty(t,"LabelsManage",{enumerable:!0,get:function(){return ue(I).default}});var T=a("./src/module/sysManage/labelsManage/components/addServiceTypes/AddServiceTypes.jsx");Object.defineProperty(t,"AddServiceTypes",{enumerable:!0,get:function(){return ue(T).default}});var w=a("./src/module/sysManage/userActionManager/userManager/UserManagePage.jsx");Object.defineProperty(t,"UserManagePage",{enumerable:!0,get:function(){return ue(w).default}});var E=a("./src/module/sysManage/userActionManager/userGroupsManager/UserGroupsManagePage.jsx");Object.defineProperty(t,"UserGroupsManagePage",{enumerable:!0,get:function(){return ue(E).default}});var D=a("./src/module/sysManage/userActionManager/rolesManager/RolesManagePage.jsx");Object.defineProperty(t,"RolesManagePage",{enumerable:!0,get:function(){return ue(D).default}});var M=a("./src/module/sysManage/userActionManager/quotaTenantManager/QuotaTenantManagePage.jsx");Object.defineProperty(t,"QuotaTenantManagePage",{enumerable:!0,get:function(){return ue(M).default}});var k=a("./src/module/sysManage/projectManager/listPage/ProjectPage.jsx");Object.defineProperty(t,"ProjectPage",{enumerable:!0,get:function(){return ue(k).default}});var P=a("./src/module/sysManage/projectManager/details/ProjectDetailsPage.jsx");Object.defineProperty(t,"ProjectDetailsPage",{enumerable:!0,get:function(){return ue(P).default}});var L=a("./src/module/sysManage/projectManager/editPage/ProjectInfoPage.jsx");Object.defineProperty(t,"ProjectInfoPage",{enumerable:!0,get:function(){return ue(L).default}});var N=a("./src/module/sysManage/projectManager/editPage/ProjectInfoPageTab.jsx");Object.defineProperty(t,"ProjectInfoPageTab",{enumerable:!0,get:function(){return ue(N).default}});var A=a("./src/module/sysManage/projectManager/editPage/component/UserRelevance.jsx");Object.defineProperty(t,"UserRelevance",{enumerable:!0,get:function(){return ue(A).default}});var R=a("./src/module/sysManage/projectManager/editPage/component/ApplyList.jsx");Object.defineProperty(t,"ApplyList",{enumerable:!0,get:function(){return ue(R).default}});var F=a("./src/module/sysManage/projectManager/applyPage/ApplyProjectPage.jsx");Object.defineProperty(t,"ApplyProjectPage",{enumerable:!0,get:function(){return ue(F).default}});var O=a("./src/module/sysManage/projectManager/applyPage/ApplyProjectLoginPage.jsx");Object.defineProperty(t,"ApplyProjectLoginPage",{enumerable:!0,get:function(){return ue(O).default}});var V=a("./src/module/sysManage/projectManager/homePage/ProjectJoinPage.jsx");Object.defineProperty(t,"ProjectJoinPage",{enumerable:!0,get:function(){return ue(V).default}});var U=a("./src/module/sysManage/projectManager/applyPage/editPage/ApplyProjectInfo.jsx");Object.defineProperty(t,"ApplyProjectInfo",{enumerable:!0,get:function(){return ue(U).default}});var B=a("./src/module/sysManage/projectManager/applyPage/detailPage/ApplyProjectDetail.jsx");Object.defineProperty(t,"ApplyProjectDetail",{enumerable:!0,get:function(){return ue(B).default}});var G=a("./src/module/sysManage/apiUserManager/apiUserJoin/ApiUserJoinPage.jsx");Object.defineProperty(t,"ApiUserJoin",{enumerable:!0,get:function(){return ue(G).default}});var z=a("./src/module/sysManage/apiUserManager/apiUserList/ApiUserListPage.jsx");Object.defineProperty(t,"ApiUserList",{enumerable:!0,get:function(){return ue(z).default}});var q=a("./src/module/sysManage/apiUserManager/apiUserDetail/ApiUserDetailPage.jsx");Object.defineProperty(t,"ApiUserDetail",{enumerable:!0,get:function(){return ue(q).default}});var K=a("./src/module/sysManage/projectManager/approvePage/ApproveProjectPage.jsx");Object.defineProperty(t,"ApproveProjectPage",{enumerable:!0,get:function(){return ue(K).default}});var H=a("./src/module/sysManage/projectManager/resourceApprovePage/ResourceApprovePage.jsx");Object.defineProperty(t,"ResourceApprovePage",{enumerable:!0,get:function(){return ue(H).default}});var Y=a("./src/module/sysManage/projectManager/approvePage/detailPage/ApproveProjectDetail.jsx");Object.defineProperty(t,"ApproveProjectDetail",{enumerable:!0,get:function(){return ue(Y).default}});var W=a("./src/module/sysManage/projectManager/serviceApplyPage/ApplyServicePage.jsx");Object.defineProperty(t,"ApplyServicePage",{enumerable:!0,get:function(){return ue(W).default}});var J=a("./src/module/sysManage/projectManager/serviceApplyPage/editPage/ApplyServiceInfo.jsx");Object.defineProperty(t,"ApplyServiceInfo",{enumerable:!0,get:function(){return ue(J).default}});var Q=a("./src/module/sysManage/projectManager/serviceApplyPage/detailPage/ApplyServiceDetail.jsx");Object.defineProperty(t,"ApplyServiceDetail",{enumerable:!0,get:function(){return ue(Q).default}});var Z=a("./src/module/sysManage/appClassification/AppClassification.jsx");Object.defineProperty(t,"AppClassification",{enumerable:!0,get:function(){return ue(Z).default}});var X=a("./src/module/sysManage/projectManager/nlpAppCopy/NlpAppCopy.jsx");Object.defineProperty(t,"NlpAppCopy",{enumerable:!0,get:function(){return ue(X).default}});var $=a("./src/module/sysManage/menuManager/listPage/MenuTable.jsx");Object.defineProperty(t,"MenuTable",{enumerable:!0,get:function(){return ue($).default}});var ee=a("./src/module/sysManage/logsManager/LogsManager.jsx");Object.defineProperty(t,"LogsManager",{enumerable:!0,get:function(){return ue(ee).default}});var te=a("./src/module/sysManage/tenantManager/listPage/TenantsPage.jsx");Object.defineProperty(t,"TenantsPage",{enumerable:!0,get:function(){return ue(te).default}});var ae=a("./src/module/sysManage/tenantManager/editPage/TenantInfoPage.jsx");Object.defineProperty(t,"TenantInfoPage",{enumerable:!0,get:function(){return ue(ae).default}});var ne=a("./src/module/sysManage/tenantManager/editPage/TenantInfoPageTab.jsx");Object.defineProperty(t,"TenantInfoPageTab",{enumerable:!0,get:function(){return ue(ne).default}});var oe=a("./src/module/sysManage/projectManager/group/GroupList.jsx");Object.defineProperty(t,"GroupList",{enumerable:!0,get:function(){return ue(oe).default}});var se=a("./src/module/sysManage/projectManager/group/CreateGroupConfig.jsx");Object.defineProperty(t,"CreateGroupConfig",{enumerable:!0,get:function(){return ue(se).default}});var re=a("./src/module/sysManage/projectManager/group/ViewGroupConfig.jsx");Object.defineProperty(t,"ViewGroupConfig",{enumerable:!0,get:function(){return ue(re).default}});var ie=a("./src/module/sysManage/flinkClusterManage/listPage/FlinkClusterList.jsx");Object.defineProperty(t,"FlinkClusterManage",{enumerable:!0,get:function(){return ue(ie).default}});var de=a("./src/module/sysManage/kafkaManage/listPage/KafkaList.jsx");Object.defineProperty(t,"KafkaManage",{enumerable:!0,get:function(){return ue(de).default}});var le=a("./src/module/sysManage/resourceRecovery/list/ResourceRecoveryList.jsx");function ue(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ResourceRecovery",{enumerable:!0,get:function(){return ue(le).default}})},"./src/module/sysManage/interface/InterfacePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/divider/index.js")),o=w(a("./node_modules/antd/es/table/index.js")),s=w(a("./node_modules/antd/es/button/index.js")),r=w(a("./node_modules/antd/es/tooltip/index.js")),i=w(a("./node_modules/babel-runtime/helpers/jsx.js")),d=w(a("./node_modules/antd/es/modal/index.js")),l=w(a("./node_modules/antd/es/message/index.js")),u=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=w(a("./node_modules/babel-runtime/helpers/inherits.js")),f=w(a("./node_modules/antd/es/layout/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/layout/style/index.js");var m=w(a("./node_modules/react/index.js")),h=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(w(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),v=a("./src/components/index.js"),y=w(a("./src/components/auth/funAuth.jsx")),b=w(a("./src/module/sysManage/interface/RightContent/component/SearchComponent.jsx")),x=w(a("./src/module/sysManage/interface/RightContent/component/CreateConfig.jsx")),C=w(a("./src/module/sysManage/interface/RightContent/component/ModalArryTable.jsx")),j=w(a("./src/module/sysManage/interface/LeftMenu/LeftMenuPage.jsx")),S=a("./src/redux/reducers/sysManager/interfaceManager.js"),I=a("./src/redux/selectors/sysManager/interfaceManager.js"),T=w(a("./src/redux/services/sysManager/interfaceManager.js"));function w(e){return e&&e.__esModule?e:{default:e}}var E=f.default.Content,D=h.default.div.withConfig({displayName:"InterfacePage__PageWrapper",componentId:"sc-1mkf6rn-0"})(["width:100%;position:relative;"]),M=h.default.div.withConfig({displayName:"InterfacePage__PageHeader",componentId:"sc-1mkf6rn-1"})(["position:relative;width:100%;z-index:20;border-bottom:1px solid #e8e8e8;height:50px;.search-bar{position:absolute;right:0;top:10px;}.ant-divider-horizontal{margin:15px 0 0 0;}"]),k=h.default.div.withConfig({displayName:"InterfacePage__PageBody",componentId:"sc-1mkf6rn-2"})(["margin-top:15px;.ant-layout{background:#f5f6f9;margin-bottom:24px;}"]),P=h.default.div.withConfig({displayName:"InterfacePage__ModelsBox",componentId:"sc-1mkf6rn-3"})(["margin-top:25px;.ant-table-bordered .ant-table-thead > tr > th{border-right:1px solid #e8e8e8;background:#e5e9f2;padding:10px 10px;word-break:keep-all;white-space:nowrap;}.ant-table-thead{th{background:#e0e6ed;}}.ant-table-thead > tr:first-child > th:first-child{border-top-left-radius:4px;}.ant-table table{border-collapse:none;}.ant-table-tbody tr td{padding:10px 10px;word-break:keep-all;white-space:nowrap;}"]),L=h.default.div.withConfig({displayName:"InterfacePage__RightContent",componentId:"sc-1mkf6rn-4"})(["width:100%;position:relative;.content-wrap{margin-left:16px;overflow:initial;min-height:100%;min-height:calc(100vh\xa0-\xa0130px);padding:10px 24px;background:#fff;text-align:center;}"]),N=(0,i.default)(n.default,{type:"vertical"}),A=(0,i.default)(n.default,{type:"vertical"}),R=(0,i.default)(v.LoadingIndicator,{}),F=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.deleteOpenApi=function(e){e||0!==n.deleteSelectedKeys.length?d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+(e?e.apiName:n.deleteSelectedKeys.length+"\u6761")+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t){T.default.deleteOpenApi(e?[e.apiId]:n.deleteSelectedKeys,n.state.selectedKeys.groupId).then((function(a){"1"===a.code?(l.default.success("\u5220\u9664[ "+(e?e.apiName:n.deleteSelectedKeys.length+"\u6761")+" ]\u6210\u529f!"),n.fetchData(),t()):l.default.error("\u5220\u9664[ "+(e?e.apiName:n.deleteSelectedKeys.length+"\u6761")+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+a.message),n.deleteSelectedKeys=[]})).catch((function(t){l.default.error("\u5220\u9664[ "+(e?e.apiName:n.deleteSelectedKeys.length+"\u6761")+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+t.message)}))}))}}):l.default.info("\u8bf7\u9009\u62e9\u5220\u9664\u6570\u636e")},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData()},n.showOpenApiConfig=function(e,t){e&&e.apiId&&"create"!==t&&(n.setState({optApiId:e.apiId}),n.props.dispatch(S.openApiActions.getOpenApiInfoRequest(e.apiId))),n.setState({modalVisible:!0,viewType:t})},n.showOpenApi=function(){n.props.dispatch(S.openApiActions.resetBinDingApiGroupData()),n.props.dispatch(S.openApiActions.getApiArrayListRequest(n.state.selectedKeys.groupId)),n.setState({queryModalVisible:!0}),n.setOpenApiArrayListKey(n.props.openApiArrayList.toJS())},n.fetchData=function(){n.props.dispatch(S.openApiActions.getOpenApiListRequest(n.searchCond))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),delete n.searchCond.offset,delete n.searchCond.limit,n.fetchData()},n.callVisible=function(e){if(e)return n.setState({modalVisible:!1,viewType:""}),void n.fetchData();if("view"===n.state.viewType)n.setState({modalVisible:!1,viewType:""});else{var t=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1,viewType:""})}})}},n.queryCallVisible=function(){n.setState({queryModalVisible:!1})},n.setSelectedKeys=function(e){n.setState({selectedKeys:e})},n.setOpenApiArrayListKey=function(e){for(var t=0;t<e.length;t++)e[t].indexKey=t,e[t].checked=!1;return e},n.state={modalVisible:!1,viewType:"",optApiId:"",currentPage:1,confirmLoading:!1,resPermits:[],queryModalVisible:!1,selectedKeys:{groupPid:"all"}},n.deleteSelectedKeys=[],n.searchCond={apiName:"",isOpen:"",status:"",groupId:"",offset:1,limit:10},n.columns=[{title:"\u67e5\u8be2\u540d\u79f0",dataIndex:"apiName",width:"100",key:"apiName",fixed:"left",render:function(e){return(0,i.default)(v.LineWrap,{title:e,lineClampNum:1})}},{title:"API\u5206\u7ec4ID",dataIndex:"groupId",key:"groupId",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8bf7\u6c42\u7aef\u70b9",dataIndex:"endpoint",key:"endpoint",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"HTTP\u8bf7\u6c42\u65b9\u6cd5",dataIndex:"httpMethod",key:"httpMethod",render:function(e){var t="";return"get"===e?t="GET":"post"===e?t="POST":"delete"===e?t="DELETE":"patch"===e?t="PATCH":"put"===e&&(t="PUT"),(0,i.default)(v.LineWrap,{title:t,lineClampNum:1})}},{title:"API \u670d\u52a1\u7248\u672c",dataIndex:"version",key:"version",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8bf7\u6c42\u5185\u5bb9\u7c7b\u578b",dataIndex:"contentType",key:"contentType",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6269\u5c55\u6587\u6863",dataIndex:"extDoc",key:"extDoc",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"API\u6240\u5c5e\u670d\u52a1",dataIndex:"serviceId",key:"serviceId",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"YAML\u5185\u5bb9",dataIndex:"oasYaml",key:"oasYaml",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",key:"createBy",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u66f4\u65b0\u4eba",dataIndex:"updateBy",key:"updateBy",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updateTime",key:"updateTime",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u54cd\u5e94\u5185\u5bb9\u7c7b\u578b",dataIndex:"respContentType",key:"respContentType",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u662f\u5426\u662fopen Api",dataIndex:"isOpen",key:"isOpen",render:function(e){return(0,i.default)("span",{},void 0,0===e?"\u5426":"\u662f")}},{title:"\u72b6\u6001",dataIndex:"status",key:"status",render:function(e){var t="";return 1===e?t="\u7f16\u8f91":2===e?t="\u6d4b\u8bd5\u4e2d":3===e?t="\u5df2\u53d1\u5e03":4===e&&(t="\u5df2\u4e0b\u7ebf"),(0,i.default)("span",{},void 0,t)}},{title:"\u64cd\u4f5c",width:"300px",fixed:"right",key:"operation",render:function(e,t){return(0,i.default)("span",{},void 0,(0,i.default)(y.default,{permissions:["USER:UPDATE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.showOpenApiConfig(t,"edit")}},void 0,"\u4fee\u6539"),N),(0,i.default)(y.default,{permissions:["USER:UPDATE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.showOpenApiConfig(t,"view")}},void 0,"\u67e5\u770b"),A),(0,i.default)(y.default,{permissions:["USER:DELETE"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.deleteOpenApi(t)}},void 0,"\u5220\u9664")))}}],n}return(0,p.default)(t,e),t.prototype.componentDidUpdate=function(e){this.props.currentOpenApiGroupId&&e.currentOpenApiGroupId!==this.props.currentOpenApiGroupId&&(this.searchCond.groupId=this.props.currentOpenApiGroupId,this.fetchData())},t.prototype.render=function(){var e=this,t={onChange:function(t,a){e.deleteSelectedKeys=[];for(var n=0;n<a.length;n++)e.deleteSelectedKeys.push(a[n].apiId)},getCheckboxProps:function(e){return{name:e.apiName}}},a=this.props.openApiPagination?this.props.openApiPagination.toJS():{},n=this.props.openApiList.toJS()||[],r=this.props.openApiArrayList.size>0?this.setOpenApiArrayListKey(this.props.openApiArrayList.toJS()):[];return(0,i.default)(D,{},void 0,(0,i.default)(C.default,{loading:this.props.arrayListloading,closable:!0,onCancelType:!1,viewType:"view",modalTitle:"\u67e5\u770b\u5168\u91cfAPI",width:1100,data:r,callVisible:this.queryCallVisible,modalVisible:this.state.queryModalVisible,fetchData:this.fetchData,selectedKeys:this.state.selectedKeys.groupId}),(0,i.default)(v.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539\u63a5\u53e3":"view"===this.state.viewType?"\u67e5\u770b":"\u65b0\u5efa\u63a5\u53e3",onCancelType:!1,width:1200,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,i.default)(x.default,{apiId:this.state.optApiId,openApiInfo:"create"!==this.state.viewType?this.props.openApiInfo.toJS():{groupId:this.props.currentOpenApiGroupId},searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeOpenApiConfig:this.callVisible})},this.state.viewType),(0,i.default)(M,{},void 0,(0,i.default)(b.default,{apiName:this.searchCond.apiName,isOpen:this.searchCond.isOpen,status:this.searchCond.status,onChange:this.changeSearchCond})),(0,i.default)(k,{},void 0,(0,i.default)(f.default,{},void 0,(0,i.default)(j.default,{setSelectedKeys:this.setSelectedKeys}),(0,i.default)(L,{style:{width:"calc(100% - 250px)"}},void 0,(0,i.default)(E,{className:"content-wrap"},void 0,(0,i.default)(s.default,{disabled:"-1"===this.state.selectedKeys.groupPid||"all"===this.state.selectedKeys.groupPid,onClick:function(){e.showOpenApi()},style:{width:100,float:"right",margin:"0px 0px 10px 0px"},size:"small",type:"primary"},void 0,"\u589e\u52a0API"),(0,i.default)(s.default,{disabled:"-1"===this.state.selectedKeys.groupPid||"all"===this.state.selectedKeys.groupPid,onClick:function(){e.deleteOpenApi()},style:{width:100,float:"right",margin:"0px 10px 10px 0px"},size:"small",type:"primary"},void 0,"\u6279\u91cf\u5220\u9664"),(0,i.default)(P,{},void 0,this.props.loading&&R,!this.props.loading&&(0,i.default)(o.default,{rowSelection:t,rowKey:"apiId",bordered:!0,pagination:!1,columns:this.columns,dataSource:n instanceof Array?n:[],scroll:{x:1300}}),!this.props.loading&&(0,i.default)(v.TabPagination,{currentPage:a.offset,pageSize:10,total:a.total,onChange:this.onChangePage})))))))},t}(m.default.Component);t.default=(0,g.connect)((function(e){return{openApiList:(0,I.selectOpenApiList)(e),openApiPagination:(0,I.selectOpenApiPagination)(e),currentOpenApiGroupId:(0,I.selectOpenApiGroupId)(e),openApiInfo:(0,I.selectOpenApiInfo)(e),loading:(0,I.selectOpenApiListLoading)(e),openApiArrayList:(0,I.selectOpenApiArray)(e),arrayListloading:(0,I.selectOpenApiArrayLoading)(e)}}))(F)},"./src/module/sysManage/interface/LeftMenu/LeftMenuPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/antd/es/tree/index.js")),d=g(a("./node_modules/antd/es/layout/index.js"));a("./node_modules/antd/es/tree/style/index.js"),a("./node_modules/antd/es/layout/style/index.js");var l=g(a("./node_modules/react/index.js")),u=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=g(a("./node_modules/lodash/lodash.js")),f=g(a("./src/module/sysManage/interface/LeftMenu/component/OperationBtn.jsx")),m=a("./src/redux/reducers/sysManager/interfaceManager.js"),h=a("./src/redux/selectors/sysManager/interfaceManager.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=d.default.Sider,_=i.default.TreeNode,y=u.default.div.withConfig({displayName:"LeftMenuPage__LeftMenuPageWrapper",componentId:"xlvdce-0"})([".left-menu{overflow:auto;height:calc(100vh - 130px);background:#fff;}.ant-tree li .ant-tree-node-content-wrapper{width:calc(100% - 35px);position:relative;}.ant-tree li .ant-tree-node-content-wrapper .btns{position:absolute;top:50%;right:4px;display:none;background-color:#e6f7ff;transform:translateY(-50%);transition:all 0.4s;}.ant-tree li .ant-tree-node-content-wrapper:hover .btns{display:block;}.ant-tree li .ant-tree-node-content-wrapper{padding:5px;height:auto;}.ant-tree li span.ant-tree-switcher{height:34px;line-height:34px;}.ant-tree li span.ant-tree-checkbox{margin:5px 4px 0 2px;}.ant-tree li ul{padding:0 0 0 8px;}.ant-tree-child-tree > li:first-child{padding-top:4px;}.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected .btns{background-color:#bae7ff;}.ant-tree-title > div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"]),b=function(e){function t(a){(0,o.default)(this,t);var r=(0,s.default)(this,e.call(this,a));return r.onSelect=function(e,t){e.length>0&&(r.setState({selectedKeys:e}),r.props.dispatch(m.openApiActions.setSelectedOpenApiGroupId({data:e[0]})),r.props.setSelectedKeys({groupPid:t.selectedNodes[0].props.title.props.children[1].props.currentNodeData.groupPid,groupId:t.selectedNodes[0].props.title.props.children[1].props.currentNodeData.groupId}))},r.onExpand=function(e){r.setState({expandedKeys:e,autoExpandParent:!1})},r.renderTreeNodes=function(e){return e.map((function(e){return e.children?(0,n.default)(_,{title:(0,n.default)("div",{},void 0,e.groupName,(0,n.default)(f.default,{currentNodeData:e,fetchData:r.fetchData}))},e.groupId,r.renderTreeNodes(e.children)):(0,n.default)(_,{title:(0,n.default)("div",{},void 0,e.groupName,(0,n.default)(f.default,{currentNodeData:e,fetchData:r.fetchData}))},e.groupId)}))},r.fetchData=function(){r.props.dispatch(m.openApiActions.getOpenApiGroupDataRequest())},r.state={selectedKeys:[],expandedKeys:[],autoExpandParent:!0},r}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.componentDidUpdate=function(e){if(!p.default.isEqual(e.apiGroupData,this.props.apiGroupData)&&0===this.state.selectedKeys.length&&!p.default.find(this.props.apiGroupData,{groupId:this.state.selectedKeys[0]})&&this.props.apiGroupData.size>0){var t=this.props.apiGroupData.get(0).get("groupId");this.setState({selectedKeys:[t]}),this.props.dispatch(m.openApiActions.setSelectedOpenApiGroupId({data:t}))}},t.prototype.render=function(){var e=this.props.apiGroupData.toJS();return(0,n.default)(y,{},void 0,(0,n.default)(v,{width:250,className:"left-menu"},void 0,(0,n.default)(i.default,{style:{marginLeft:"5px"},onExpand:this.onExpand,onSelect:this.onSelect,selectedKeys:this.state.selectedKeys,expandedKeys:this.state.expandedKeys,autoExpandParent:this.state.autoExpandParent},void 0,this.renderTreeNodes(e))))},t}(l.default.Component);t.default=(0,c.connect)((function(e){return{apiGroupData:(0,h.selectOpenApiGroupData)(e)}}))(b)},"./src/module/sysManage/interface/LeftMenu/component/ModalConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/spin/index.js")),o=b(a("./node_modules/antd/es/col/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/antd/es/modal/index.js")),i=b(a("./node_modules/babel-runtime/helpers/extends.js")),d=b(a("./node_modules/antd/es/message/index.js")),l=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=b(a("./node_modules/babel-runtime/helpers/inherits.js")),p=b(a("./node_modules/babel-runtime/helpers/jsx.js")),f=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var m=b(a("./node_modules/react/index.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");b(a("./node_modules/prop-types/index.js"));var v=a("./node_modules/react-redux/es/index.js"),_=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),y=b(a("./src/redux/services/sysManager/interfaceManager.js"));function b(e){return e&&e.__esModule?e:{default:e}}var x=g.Form.Item,C=f.default.TextArea,j=_.default.div.withConfig({displayName:"ModalConfig__ModalConfigWrapper",componentId:"sc-1l2fplz-0"})([".ant-form-item-children{display:flex;}"]),S=(0,p.default)(h.LoadingOutlined,{style:{marginLeft:"10px",fontSize:16},spin:!0}),I=(0,p.default)(n.default,{indicator:S}),T=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.setFields=function(){n.props.form.resetFields(["groupName","groupDesc"])},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null!==t&&"{}"!==JSON.stringify(t)||(e=!0)})),e?{validate:!0,moduleData:n.treeData}:{validate:!1}},n.submitModalCancel=function(){n.setState({visible:!1}),n.setFields(),n.props.callVisible()},n.submitModalOk=function(e){e.stopPropagation();var t=n.validateFun();if(t.validate&&n.state.apiGroupNameVerify){var a=t.moduleData,o={groupId:a.groupId,groupName:a.groupName,groupDesc:a.groupDesc,groupPid:a.groupPid};n.setState({confirmLoading:!0});var s="edit"===n.props.viewType?"updateOpenApiGroup":"saveOpenApiGroup";y.default[s](o).then((function(){d.default.success("\u4fdd\u5b58[ "+o.groupName+" ]\u6210\u529f!"),n.setState({confirmLoading:!1,visible:!1}),n.setFields(),n.props.callVisible(!0)})).catch((function(){d.default.error("\u4fdd\u5b58[ "+o.groupName+" ]\u5931\u8d25!"),n.setState({confirmLoading:!1})}))}},n.getNameBlur=function(e,t){if(n.treeData[t]=e,"groupName"===t){var a=e===n.props.currentNodeData.groupName;n.validOpenApiGroupName(e,a)}},n.getDescBlur=function(e,t){n.treeData[t]=e},n.validOpenApiGroupName=function(e,t){var a=e.replace(/(^\s*)|(\s*$)/g,"");if(a.length>0&&a.length<30){if(t)return void n.setState({apiGroupNameVerify:!0,verifyMsg:"\u540d\u79f0\u53ef\u4ee5\u4f7f\u7528\uff01"});n.setState({apiGroupNameVerify:3}),y.default.checkOpenApiGroupNameRepeat(a).then((function(e){e.data?n.setState({apiGroupNameVerify:!1,verifyMsg:"\u540d\u79f0\u91cd\u590d\uff01"}):n.setState({apiGroupNameVerify:!0,verifyMsg:"\u540d\u79f0\u53ef\u4ee5\u4f7f\u7528\uff01"})}))}else n.setState({apiGroupNameVerify:!1,verifyMsg:"\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e30\uff01"})},n.showVerifyIcon=function(e,t){return null===e?(0,p.default)("div",{style:{display:"inline-block",marginTop:"10px",width:20}}):(0,p.default)("div",{style:{display:"inline-block",marginLeft:"10px"}},void 0,e&&3!==e&&(0,p.default)("span",{},void 0,(0,p.default)(h.CheckCircleOutlined,{style:{marginLeft:"2px",fontSize:16,color:"#00CF9B"}}),(0,p.default)("span",{style:{fontSize:11}},void 0,t)),!e&&3!==e&&(0,p.default)("span",{},void 0,(0,p.default)(h.CloseCircleOutlined,{style:{marginLeft:"2px",fontSize:16,color:"#FB6362"}}),(0,p.default)("span",{style:{fontSize:11}},void 0,t)),3===e&&I)},n.state={visible:a.modalVisible,confirmLoading:!1,apiGroupNameVerify:!1,verifyMsg:" "},n.treeData=(0,i.default)({},n.props.currentNodeData),n}return(0,c.default)(t,e),t.getDerivedStateFromProps=function(e){return{visible:e.modalVisible}},t.prototype.componentDidUpdate=function(e){e.currentNodeData.groupId!==this.props.currentNodeData.groupId&&(this.treeData=(0,i.default)({},this.props.currentNodeData),this.validOpenApiGroupName(this.props.currentNodeData.groupName,!0))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,p.default)(j,{onClick:function(e){e.stopPropagation()}},void 0,(0,p.default)(r.default,{title:"edit"===this.props.viewType?"\u4fee\u6539\u63a5\u53e3":"\u6dfb\u52a0\u63a5\u53e3",visible:this.state.visible,okText:"\u63d0\u4ea4",onCancelType:!1,cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,p.default)("div",{},void 0,(0,p.default)(g.Form,{layout:"inline"},void 0,(0,p.default)(s.default,{},void 0,(0,p.default)(o.default,{},void 0,(0,p.default)(x,{help:""},void 0,(0,p.default)("span",{style:{marginLeft:"19px",color:"red",fontWeight:"bolder"}},void 0,"*"),(0,p.default)("span",{style:{marginLeft:"5px"}},void 0,"\u63a5\u53e3\u540d\u79f0:"),t("groupName",{rules:[{required:!0,message:"\u540d\u79f0\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e30\uff01",min:0,max:30}],initialValue:this.treeData.groupName})((0,p.default)(f.default,{style:{marginLeft:"16px",width:"250px"},placeholder:"\u8bf7\u8f93\u5165\u63a5\u53e3\u540d\u79f0",onBlur:function(t){return e.getNameBlur(t.target.value,"groupName")}})),this.showVerifyIcon(this.state.apiGroupNameVerify,this.state.verifyMsg)))),(0,p.default)(s.default,{style:{marginTop:15}},void 0,(0,p.default)(o.default,{},void 0,(0,p.default)(x,{help:""},void 0,(0,p.default)("span",{style:{marginLeft:"19px",color:"red",fontWeight:"bolder"}},void 0,"*"),(0,p.default)("span",{style:{marginLeft:"5px"}},void 0,"\u63a5\u53e3\u63cf\u8ff0:"),t("groupDesc",{rules:[{required:!0,message:"\u63cf\u8ff0\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e100\uff01",min:0,max:100}],initialValue:this.treeData.groupDesc})((0,p.default)(C,{autosize:{minRows:2,maxRows:2},style:{marginLeft:"16px",width:250,verticalAlign:"middle"},placeholder:"\u8bf7\u8f93\u5165\u63a5\u53e3\u63cf\u8ff0...",onBlur:function(t){return e.getDescBlur(t.target.value,"groupDesc")},rows:8})))))))))},t}(m.default.Component);t.default=(0,v.connect)((function(){return{}}))(g.Form.create()(T))},"./src/module/sysManage/interface/LeftMenu/component/OperationBtn.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/tooltip/index.js")),o=v(a("./node_modules/babel-runtime/helpers/jsx.js")),s=v(a("./node_modules/antd/es/message/index.js")),r=v(a("./node_modules/antd/es/modal/index.js")),i=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=v(a("./node_modules/react/index.js")),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");v(a("./node_modules/prop-types/index.js"));var f=a("./node_modules/react-redux/es/index.js"),m=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=v(a("./src/module/sysManage/interface/LeftMenu/component/ModalConfig.jsx")),g=v(a("./src/redux/services/sysManager/interfaceManager.js"));function v(e){return e&&e.__esModule?e:{default:e}}var y=m.default.div.withConfig({displayName:"OperationBtn__OperationBtnWrapper",componentId:"hfum9w-0"})([".each-btn{margin-left:5px;font-size:16px;color:rgba(13,27,62,0.65);}"]),b=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.handlePlusClick=function(e){e.stopPropagation(),n.nodeData={groupId:"",groupName:"",groupDesc:"",groupPid:n.props.currentNodeData.groupId},n.setState({modalVisible:!0,viewType:"plus"})},n.handleEditClick=function(e){e.stopPropagation(),n.nodeData=_.cloneDeep(n.props.currentNodeData),n.setState({modalVisible:!0,viewType:"edit"})},n.handleDeleteClick=function(e){e.stopPropagation(),r.default.confirm({title:"\u60a8\u786e\u5b9a\u5220\u9664\u6b64\u63a5\u53e3\u5206\u7c7b\u5417\uff1f",content:"\u6e29\u99a8\u63d0\u793a\uff1a\u8be5\u64cd\u4f5c\u4f1a\u5220\u9664\u8be5\u5206\u7c7b\u4e0b\u6240\u6709\u63a5\u53e3\uff0c\u63a5\u53e3\u5220\u9664\u540e\u65e0\u6cd5\u6062\u590d!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e){var t=n.props.currentNodeData,a=t.groupId,o=t.groupName;g.default.deleteOpenApiGroup(a).then((function(){n.props.fetchData(),s.default.success("\u5220\u9664[ "+o+" ]\u6210\u529f!"),e()})).catch((function(){s.default.error("\u5220\u9664[ "+o+" ]\u5931\u8d25!")}))}))}})},n.callRelationModalVisible=function(e){e&&n.props.fetchData(),n.setState({modalVisible:!1})},n.state={modalVisible:!1,viewType:"",confirmLoading:!1},n.nodeData={groupId:"",groupName:"",groupDesc:"",groupPid:n.props.currentNodeData.groupId},n}return(0,l.default)(t,e),t.prototype.render=function(){return(0,o.default)(y,{},void 0,(0,o.default)(h.default,{modalVisible:this.state.modalVisible,currentNodeData:this.nodeData,viewType:this.state.viewType,callVisible:this.callRelationModalVisible}),(0,o.default)("div",{className:"btns"},void 0,(0,o.default)(n.default,{placement:"top",title:"\u6dfb\u52a0\u63a5\u53e3"},void 0,(0,o.default)(c.PlusOutlined,{className:"each-btn",onClick:this.handlePlusClick})),(0,o.default)(n.default,{placement:"top",title:"\u4fee\u6539\u63a5\u53e3"},void 0,(0,o.default)(c.EditOutlined,{className:"each-btn",onClick:this.handleEditClick})),(0,o.default)(n.default,{placement:"top",title:"\u5220\u9664\u63a5\u53e3"},void 0,(0,o.default)(c.DeleteOutlined,{className:"each-btn",onClick:this.handleDeleteClick}))))},t}(u.default.Component);t.default=(0,f.connect)((function(){return{}}))(p.Form.create()(b))},"./src/module/sysManage/interface/RightContent/component/CreateConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=void 0;var n=j(a("./node_modules/antd/es/spin/index.js")),o=j(a("./node_modules/antd/es/button/index.js")),s=j(a("./node_modules/antd/es/tree-select/index.js")),r=j(a("./node_modules/antd/es/col/index.js")),i=j(a("./node_modules/antd/es/row/index.js")),d=j(a("./node_modules/antd/es/modal/index.js")),l=j(a("./node_modules/antd/es/message/index.js")),u=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=j(a("./node_modules/babel-runtime/helpers/inherits.js")),f=j(a("./node_modules/babel-runtime/helpers/jsx.js")),m=j(a("./node_modules/antd/es/input/index.js")),h=j(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tree-select/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var g=j(a("./node_modules/react/index.js")),v=a("./node_modules/react-redux/es/index.js"),_=a("./node_modules/@ant-design/icons/es/index.js"),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),x=(j(a("./node_modules/prop-types/index.js")),j(a("./src/redux/services/sysManager/interfaceManager.js"))),C=a("./src/redux/selectors/sysManager/interfaceManager.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=h.default.Option,I=m.default.TextArea,T=y.Form.Item,w=(0,f.default)(_.LoadingOutlined,{style:{marginLeft:"10px",fontSize:16},spin:!0}),E=b.default.div.withConfig({displayName:"CreateConfig__CreateConfigPage",componentId:"sc-1i8d0oj-0"})(["overflow-x:hidden;height:350px;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}.ant-form-item-children{display:flex;}"]),D=t.ButtonDom=b.default.div.withConfig({displayName:"CreateConfig__ButtonDom",componentId:"sc-1i8d0oj-1"})(["margin-bottom:15px;height:28px;text-align:right;margin-right:2%;"]),M=(0,f.default)(n.default,{indicator:w}),k=(0,f.default)(S,{value:1},void 0,"\u662f"),P=(0,f.default)(S,{value:0},void 0,"\u5426"),L=(0,f.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u72b6\u6001"),N=(0,f.default)(S,{value:1},void 0,"\u7f16\u8f91"),A=(0,f.default)(S,{value:2},void 0,"\u6d4b\u8bd5\u4e2d"),R=(0,f.default)(S,{value:3},void 0,"\u5df2\u53d1\u5e03"),F=(0,f.default)(S,{value:4},void 0,"\u5df2\u4e0b\u7ebf"),O=(0,f.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9HTTP\u8bf7\u6c42\u65b9\u6cd5"),V=(0,f.default)(S,{value:"get"},void 0,"GET"),U=(0,f.default)(S,{value:"post"},void 0,"POST"),B=(0,f.default)(S,{value:"delete"},void 0,"DELETE"),G=(0,f.default)(S,{value:"patch"},void 0,"PATCH"),z=(0,f.default)(S,{value:"put"},void 0,"PUT"),q=(0,f.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9API \u6240\u5c5e\u670d\u52a1"),K=(0,f.default)(S,{value:"uc"},void 0,"uc"),H=(0,f.default)(S,{value:"bc"},void 0,"bc"),Y=(0,f.default)(S,{value:"dsem"},void 0,"dsem"),W=(0,f.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u8bf7\u6c42\u5185\u5bb9\u7c7b\u578b"),J=(0,f.default)(S,{value:"application/json"},void 0,"application/json"),Q=(0,f.default)(S,{value:"multipart/form-data"},void 0,"multipart/form-data"),Z=(0,f.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9\u54cd\u5e94\u5185\u5bb9\u7c7b\u578b"),X=(0,f.default)(S,{value:"application/json"},void 0,"application/json"),$=(0,f.default)(S,{value:"application/octet-stream"},void 0,"application/octet-stream"),ee=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.closeModal=function(e){n.setState({openApiInfo:{}}),n.props.closeOpenApiConfig(e)},n.saveOpenApi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),n.state.apiNameVerify||(e=!1),e&&n.setState({modalVisible:!0})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.getValBlur=function(e,t){var a;if(n.setState({openApiInfo:Object.assign({},n.state.openApiInfo,(a={},a[t]=e,a))}),"apiName"===t){var o=e===n.props.openApiInfo.apiName;n.validOpenApiName(e,o)}},n.validOpenApiName=function(e,t){var a=e?e.replace(/(^\s*)|(\s*$)/g,""):"";if(a.length>0&&a.length<30){if(t)return void n.setState({apiNameVerify:!0,verifyMsg:"\u540d\u79f0\u53ef\u4ee5\u4f7f\u7528\uff01"});n.setState({apiNameVerify:3}),x.default.checkOpenApiNameRepeat(a).then((function(e){e.data?n.setState({apiNameVerify:!1,verifyMsg:"\u540d\u79f0\u91cd\u590d\uff01"}):n.setState({apiNameVerify:!0,verifyMsg:"\u540d\u79f0\u53ef\u4ee5\u4f7f\u7528\uff01"})}))}else n.setState({apiNameVerify:!1,verifyMsg:"\u540d\u79f0\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e30\uff01"})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var e=n.state.openApiInfo,t="saveOpenApi";"edit"===n.props.viewType?(e.apiId=n.props.apiId,t="updateOpenApi"):e.apiId="",x.default[t](e).then((function(t){"1"===t.code&&(l.default.success("\u4fdd\u5b58[ "+e.apiName+" ]\u6210\u529f!"),n.setState({confirmLoading:!1,visible:!1}),n.closeModal(!0))})).catch((function(){l.default.error("\u4fdd\u5b58[ "+e.apiName+" ]\u5931\u8d25!"),n.setState({confirmLoading:!1})}))},n.showVerifyIcon=function(e,t){return null===e?(0,f.default)("div",{style:{display:"inline-block",marginTop:"10px",width:20}}):(0,f.default)("div",{style:{display:"inline-block",marginLeft:"10px",width:"150px"}},void 0,e&&3!==e&&(0,f.default)("span",{},void 0,(0,f.default)(_.CheckCircleOutlined,{style:{marginLeft:"2px",fontSize:16,color:"#00CF9B"}}),(0,f.default)("span",{style:{fontSize:11}},void 0,t)),!e&&3!==e&&(0,f.default)("span",{},void 0,(0,f.default)(_.CloseCircleOutlined,{style:{marginLeft:"2px",fontSize:16,color:"#FB6362"}}),(0,f.default)("span",{style:{fontSize:11}},void 0,t)),3===e&&M)},n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1,treeDisabled:"view"===a.viewType,openApiInfo:{},apiNameVerify:!1,verifyMsg:""},n}return(0,p.default)(t,e),t.prototype.componentDidUpdate=function(e){e.openApiInfo.apiId===this.props.openApiInfo.apiId&&e.viewType===this.props.viewType&&this.props.openApiInfo.apiId===this.state.openApiInfo.apiId||(this.setState({openApiInfo:this.props.openApiInfo}),this.validOpenApiName(this.props.openApiInfo.apiName,!0))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.props.apiGroupData.toJS();return(0,f.default)(E,{},void 0,(0,f.default)(d.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,f.default)("p",{},void 0,this.state.modalTxt)),(0,f.default)(y.Form,{labelCol:{span:6},wrapperCol:{span:16},onSubmit:this.handleSubmit},void 0,(0,f.default)(i.default,{},void 0,(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"\u67e5\u8be2\u540d\u79f0"},void 0,t("apiName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u67e5\u8be2\u540d\u79f0!"}],initialValue:this.state.openApiInfo.apiName})((0,f.default)(m.default,{disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u540d\u79f0",onBlur:function(t){return e.getValBlur(t.target.value,"apiName")}})),this.showVerifyIcon(this.state.apiNameVerify,this.state.verifyMsg))),(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"API\u5206\u7ec4ID"},void 0,t("groupId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9API\u5206\u7ec4ID!"}],initialValue:this.state.openApiInfo.groupId})((0,f.default)(s.default,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:a,placeholder:"\u8bf7\u9009\u62e9API\u5206\u7ec4ID",treeDefaultExpandAll:!0,onChange:function(t){return e.getValBlur(t,"groupId")},disabled:this.state.treeDisabled}))))),(0,f.default)(i.default,{},void 0,(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"\u8bf7\u6c42\u7aef\u70b9"},void 0,t("endpoint",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8bf7\u6c42\u7aef\u70b9!"}],initialValue:this.state.openApiInfo.endpoint})((0,f.default)(m.default,{disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u8bf7\u6c42\u7aef\u70b9",onChange:function(t){return e.getValBlur(t.target.value,"endpoint")}})))),(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"\u662f\u5426\u662fopenApi"},void 0,t("isOpen",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u662f\u5426\u662fopenApi!"}],initialValue:this.state.openApiInfo.isOpen})((0,f.default)(h.default,{placeholder:"\u8bf7\u9009\u62e9\u662f\u5426\u662fopenApi",disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"isOpen")}},void 0,k,P))))),(0,f.default)(i.default,{},void 0,(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"\u72b6\u6001"},void 0,t("status",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u72b6\u6001!"}],initialValue:this.state.openApiInfo.status})((0,f.default)(h.default,{placeholder:"\u8bf7\u9009\u62e9\u72b6\u6001",disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"status")}},void 0,L,N,A,R,F)))),(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"HTTP\u8bf7\u6c42\u65b9\u6cd5"},void 0,t("httpMethod",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9HTTP\u8bf7\u6c42\u65b9\u6cd5!"}],initialValue:this.state.openApiInfo.httpMethod})((0,f.default)(h.default,{placeholder:"\u8bf7\u9009\u62e9HTTP\u8bf7\u6c42\u65b9\u6cd5",disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"httpMethod")}},void 0,O,V,U,B,G,z))))),(0,f.default)(i.default,{},void 0,(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"API \u6240\u5c5e\u670d\u52a1"},void 0,t("serviceId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9API \u6240\u5c5e\u670d\u52a1!"}],initialValue:this.state.openApiInfo.serviceId})((0,f.default)(h.default,{placeholder:"\u8bf7\u9009\u62e9API \u6240\u5c5e\u670d\u52a1",disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"serviceId")}},void 0,q,K,H,Y)))),(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"API \u670d\u52a1\u7248\u672c"},void 0,t("version",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165API \u670d\u52a1\u7248\u672c!"}],initialValue:this.state.openApiInfo.version})((0,f.default)(m.default,{disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165API \u670d\u52a1\u7248\u672c",onChange:function(t){return e.getValBlur(t.target.value,"version")}}))))),(0,f.default)(i.default,{},void 0,(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"\u8bf7\u6c42\u5185\u5bb9\u7c7b\u578b"},void 0,t("contentType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bf7\u6c42\u5185\u5bb9\u7c7b\u578b!"}],initialValue:this.state.openApiInfo.contentType})((0,f.default)(h.default,{placeholder:"\u8bf7\u9009\u62e9\u8bf7\u6c42\u5185\u5bb9\u7c7b\u578b",disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"contentType")}},void 0,W,J,Q)))),(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"\u54cd\u5e94\u5185\u5bb9\u7c7b\u578b"},void 0,t("respContentType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u54cd\u5e94\u5185\u5bb9\u7c7b\u578b!"}],initialValue:this.state.openApiInfo.respContentType})((0,f.default)(h.default,{placeholder:"\u8bf7\u9009\u62e9\u54cd\u5e94\u5185\u5bb9\u7c7b\u578b",disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"respContentType")}},void 0,Z,X,$))))),(0,f.default)(i.default,{},void 0,(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"\u6269\u5c55\u6587\u6863"},void 0,t("extDoc",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6269\u5c55\u6587\u6863!"}],initialValue:this.state.openApiInfo.extDoc})((0,f.default)(m.default,{disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u6269\u5c55\u6587\u6863",onChange:function(t){return e.getValBlur(t.target.value,"extDoc")}})))),(0,f.default)(r.default,{span:12},void 0,(0,f.default)(T,{label:"\u5b9a\u4e49YAML"},void 0,t("oasYaml",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5b9a\u4e49YAML\u5185\u5bb9!"}],initialValue:this.state.openApiInfo.oasYaml})((0,f.default)(m.default,{disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u7b26\u5408OPENAPI\u6587\u6863\u89c4\u8303\u7684\u5b9a\u4e49YAML\u5185\u5bb9",onChange:function(t){return e.getValBlur(t.target.value,"oasYaml")}}))))),(0,f.default)(i.default,{},void 0,(0,f.default)(r.default,{pull:3},void 0,(0,f.default)(T,{label:"\u5907\u6ce8"},void 0,t("apiDesc",{rules:[{required:!1,message:"\u8bf7\u8f93\u5165\u5907\u6ce8!"}],initialValue:this.state.openApiInfo.apiDesc})((0,f.default)(I,{disabled:"view"===this.props.viewType,autosize:{minRows:2,maxRows:2},onChange:function(t){return e.getValBlur(t.target.value,"apiDesc")},rows:12})))))),(0,f.default)(D,{},void 0,(0,f.default)(o.default,{onClick:this.closeModal},void 0,"\u53d6\u6d88"),(0,f.default)(o.default,{onClick:this.saveOpenApi,style:{display:"view"===this.props.viewType?"none":"",marginLeft:"3.1%"},type:"primary"},void 0,"\u786e\u5b9a\u63d0\u4ea4")))},t}(g.default.PureComponent);t.default=(0,v.connect)((function(e){return{apiGroupData:(0,C.selectOpenApiGroupData)(e)}}))(y.Form.create()(ee))},"./src/module/sysManage/interface/RightContent/component/ModalArryTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/table/index.js")),o=b(a("./node_modules/antd/es/button/index.js")),s=b(a("./node_modules/antd/es/checkbox/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/antd/es/modal/index.js")),d=b(a("./node_modules/antd/es/message/index.js")),l=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=b(a("./node_modules/babel-runtime/helpers/inherits.js")),p=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/checkbox/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var f=b(a("./node_modules/react/index.js")),m=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/components/index.js"),v=a("./src/redux/reducers/sysManager/interfaceManager.js"),y=a("./src/redux/selectors/sysManager/interfaceManager.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=p.default.Search,C=m.default.div.withConfig({displayName:"ModalArryTable__SearchBarWrapper",componentId:"sc-1jz1919-0"})(["width:100%;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),j=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.allCheckboxState=function(){for(var e=!0,t=0;t<n.state.dataSource.length;t++)if(!n.state.dataSource[t].checked){e=!1;break}return e},n.allCheckboxOnChange=function(e){for(var t=function(t){var a=n.state.dataSource[t];n.state.dataSource[t].checked=e.target.checked;var o=_.findIndex(n.state.newDataSource,(function(e){return e.apiId==a.apiId}));n.state.newDataSource[o].checked=e.target.checked;e.target.checked,n.state.checkedNum},a=0;a<n.state.dataSource.length;a++)t(a);n.setState({checkedNum:e.target.checked?n.state.checkedNum+10:n.state.checkedNum-10,dataSource:n.state.dataSource,newDataSource:n.state.newDataSource})},n.checkboxOnChange=function(e,t){var a=_.findIndex(n.state.newDataSource,(function(e){return e.apiId==t.apiId})),o=_.findIndex(n.state.dataSource,(function(e){return e.apiId==t.apiId}));n.state.dataSource[o].checked=e.target.checked,n.state.newDataSource[a].checked=e.target.checked;var s=e.target.checked?n.state.checkedNum+1:n.state.checkedNum-1;n.setState({checkedNum:s,dataSource:n.state.dataSource,newDataSource:n.state.newDataSource})},n.getData=function(e,t){for(var a=[],o=0;o<e.length;o++){var s=e[o];s.key=o.toString(),a.push(s)}var r=t||n.state.currentPage;n.getDatasByCurrentPage(a,r)},n.getDatasByCurrentPage=function(e,t){var a=10*(t-1);a>=e.length&&n.setState({dataSource:[],newDataSource:[]});var o=10*t;o>=e.length&&(o=e.length);for(var s=[],r=a;r<o;r++)s.push(e[r]);n.setState({currentPage:1===t?1:t,dataSource:s,newDataSource:e})},n.handleCancel=function(){n.props.onCancelType&&n.setState({visible:!1,dataSource:[],newDataSource:[],currentPage:1,checkedNum:0}),n.setState({dataSource:[],newDataSource:[],currentPage:1,checkedNum:0}),n.props.callVisible()},n.fuzzyQuery=function(e,t){for(var a=[],o=0;o<e.length;o++){-1!==e[o].apiName.toUpperCase().indexOf(t.toUpperCase())&&a.push(e[o])}n.getData(a,1)},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.getData(n.state.newDataSource,e)},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.fuzzyQuery(n.props.data,e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.saveOpenApi=function(){0===n.state.checkedNum?d.default.info("\u8bf7\u9009\u62e9\u8981\u6dfb\u52a0\u7684API\uff01"):i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4fdd\u5b58\u5df2\u9009API?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){for(var e=[],t=0;t<n.state.newDataSource.length;t++)n.state.newDataSource[t].checked&&e.push(n.state.newDataSource[t].apiId);return n.props.dispatch(v.openApiActions.binDingApiGroupDataRequest({apis:e,openApiGroupId:n.props.selectedKeys})),new Promise((function(e){_.defer((function(){var t=setInterval((function(){if(!n.props.bindingLoading){clearInterval(t);var a=n.props.bindingApiGroupData.toJS();a.code>0?(d.default.success("\u4fdd\u5b58\u6210\u529f!"),n.setState({dataSource:[],newDataSource:[],currentPage:1,checkedNum:0}),n.props.callVisible()):d.default.error(a.message),n.props.fetchData(),e()}}),500)}))}))}})},n.state={_this:n,visible:a.modalVisible,title:a.modalTitle,comp:a.comp,height:void 0!==a.height?a.height:"auto",width:void 0!==a.width?a.width:"auto",closable:void 0===a.closable||a.closable,dataSource:[],newDataSource:[],currentPage:1,checkedNum:0},n.columns=[{dataIndex:"indexKey",title:function(){return(0,r.default)(s.default,{onChange:function(e){n.allCheckboxOnChange(e)},checked:n.allCheckboxState()})},width:"50px",fixed:"left",render:function(e,t,a){return(0,r.default)(s.default,{onChange:function(e){n.checkboxOnChange(e,t)},checked:t.checked})}},{title:"\u67e5\u8be2\u540d\u79f0",dataIndex:"apiName",width:"160px",key:"apiName",fixed:"left",render:function(e){return(0,r.default)("span",{},void 0,e)}},{title:"API\u5206\u7ec4ID",dataIndex:"groupId",key:1,render:function(e){return(0,r.default)("span",{},void 0,e)}},{title:"\u8bf7\u6c42\u7aef\u70b9",dataIndex:"endpoint",key:2,render:function(e){return(0,r.default)("span",{},void 0,e)}},{title:"HTTP\u8bf7\u6c42\u65b9\u6cd5",dataIndex:"httpMethod",key:3,render:function(e){var t="";return"get"===e?t="GET":"post"===e?t="POST":"delete"===e?t="DELETE":"patch"===e?t="PATCH":"put"===e&&(t="PUT"),(0,r.default)("span",{},void 0,t)}},{title:"API \u670d\u52a1\u7248\u672c",dataIndex:"version",key:4,render:function(e){return(0,r.default)("span",{},void 0,e)}},{title:"\u8bf7\u6c42\u5185\u5bb9\u7c7b\u578b",dataIndex:"contentType",key:5,render:function(e){return(0,r.default)("span",{},void 0,e)}},{title:"\u6269\u5c55\u6587\u6863",dataIndex:"extDoc",key:6,render:function(e){return(0,r.default)("span",{},void 0,e)}},{title:"API\u6240\u5c5e\u670d\u52a1",dataIndex:"serviceId",key:7,render:function(e){return(0,r.default)("span",{},void 0,e)}},{title:"\u662f\u5426\u662fopen Api",dataIndex:"isOpen",key:8,render:function(e){return(0,r.default)("span",{},void 0,0===e?"\u5426":"\u662f")}},{title:"\u72b6\u6001",dataIndex:"status",key:9,render:function(e){var t="";return 1===e?t="\u7f16\u8f91":2===e?t="\u6d4b\u8bd5\u4e2d":3===e?t="\u5df2\u53d1\u5e03":4===e&&(t="\u5df2\u4e0b\u7ebf"),(0,r.default)("span",{},void 0,t)}}],n}return(0,c.default)(t,e),t.getDerivedStateFromProps=function(e,t){return{visible:e.modalVisible,title:void 0===e.modalTitle?e.renderTitle:e.modalTitle}},t.prototype.componentDidUpdate=function(e){_.isEqual(e.data,this.props.data)||(this.props.data.length>0&&0===this.state.dataSource.length||0===this.props.data.length&&this.state.dataSource.length>0)&&this.getData(this.props.data)},t.prototype.render=function(){var e,t=this;return(0,r.default)(i.default,((e={keyboard:!1,title:void 0!==this.state.title?this.state.title:"",onCancel:this.handleCancel,visible:this.state.visible,width:this.state.width,destroyOnClose:!0,onOk:function(){return t.saveOpenApi(!1)},footer:null,closable:this.state.closable,maskClosable:"view"===this.props.viewType}).footer=[(0,r.default)(o.default,{type:"primary",onClick:this.saveOpenApi},"submit","\u4fdd\u5b58")],e),void 0,(0,r.default)(C,{className:"search-bar"},void 0,(0,r.default)("div",{style:{float:"left",margin:"5px 0px 0px 5px",fontSize:14}},void 0,"\u5df2\u7ecf\u9009\u62e9 ",this.state.checkedNum,"\u4e2a"),(0,r.default)("div",{style:{float:"right"}},void 0,(0,r.default)(x,{style:{float:"left"},placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(e){return t.doSearch(e)}}))),this.props.loading&&(0,r.default)(g.LoadingIndicator,{style:{marginTop:70},position:"relative"}),!this.props.loading&&(0,r.default)("div",{style:{marginTop:40}},void 0,(0,r.default)(n.default,{size:"small",dataSource:this.state.dataSource instanceof Array?this.state.dataSource:[],pagination:!1,columns:this.columns,scroll:{x:1300}}),(0,r.default)(g.TabPagination,{currentPage:this.state.currentPage,pageSize:10,total:this.state.newDataSource.length,onChange:this.onChangePage})))},t}(f.default.PureComponent);t.default=(0,h.connect)((function(e){return{bindingLoading:(0,y.selectBindingApiGroupDataLoading)(e),bindingApiGroupData:(0,y.selectBindingApiGroupData)(e)}}))(j)},"./src/module/sysManage/interface/RightContent/component/SearchComponent.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h=c.default.div.withConfig({displayName:"SearchComponent__SearchComponentWrapper",componentId:"tw7vzl-0"})(["display:flex;align-items:center;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),g={width:"120px"},v=(0,n.default)(f,{value:""},void 0,"\u8bf7\u9009\u62e9\u72b6\u6001"),y=(0,n.default)(f,{value:"1"},void 0,"\u7f16\u8f91"),b=(0,n.default)(f,{value:"2"},void 0,"\u6d4b\u8bd5\u4e2d"),x=(0,n.default)(f,{value:"3"},void 0,"\u5df2\u53d1\u5e03"),C=(0,n.default)(f,{value:"4"},void 0,"\u5df2\u4e0b\u7ebf"),j=(0,n.default)(f,{value:""},void 0,"\u662f\u5426\u662fopenApi"),S=(0,n.default)(f,{value:"1"},void 0,"\u662f"),I=(0,n.default)(f,{value:"0"},void 0,"\u5426"),T=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("apiName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeIsOpen=n.changeSelect("isOpen"),n.changeStatus=n.changeSelect("status"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(h,{className:"search-bar"},void 0,(0,n.default)("div",{className:"search-div"},void 0,(0,n.default)(d.default,{onChange:this.changeStatus,getPopupContainer:function(e){return e.parentNode},style:g,placeholder:"\u72b6\u6001",defaultValue:this.props.status,className:"sort-cond"},void 0,v,y,b,x,C),(0,n.default)(d.default,{onChange:this.changeIsOpen,getPopupContainer:function(e){return e.parentNode},style:g,placeholder:"\u662f\u5426\u662fopenApi",defaultValue:this.props.isOpen,className:"sort-cond"},void 0,j,S,I),(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(T)},"./src/module/sysManage/kafkaManage/createPage/CreatePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/input/index.js")),o=y(a("./node_modules/antd/es/button/index.js")),s=y(a("./node_modules/antd/es/col/index.js")),r=y(a("./node_modules/antd/es/row/index.js")),i=y(a("./node_modules/babel-runtime/helpers/jsx.js")),d=y(a("./node_modules/babel-runtime/regenerator/index.js")),l=y(a("./node_modules/antd/es/message/index.js")),u=y(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),c=y(a("./node_modules/antd/es/radio/index.js")),p=y(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var f=a("./node_modules/react/index.js"),m=(y(f),y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./src/components/index.js"),g=a("./src/redux/services/sysManager/kafkaService.js"),v=a("./src/module/sysManage/kafkaManage/modelEnums.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=v.AUTH_TYPE.getValueAndDescList(),x=p.default.Item,C=c.default.Group,j={width:240},S=m.default.div.withConfig({displayName:"CreatePage__ModalWrapper",componentId:"m91v8b-0"})([".ant-form-horizontal .ant-form-item-label{width:90px;}"]),I=(0,i.default)(n.default,{placeholder:"\u8bf7\u8f93\u5165Flink\u96c6\u7fa4\u540d\u79f0",style:j}),T=(0,i.default)(n.default,{placeholder:"\u8bf7\u8f93\u5165Broker\u5730\u5740\uff0c\u4f8b\uff1aip:port",style:j}),w=(0,i.default)(n.default,{placeholder:"\u8bf7\u8f93\u5165Group ID",style:j}),E=(0,i.default)(n.default,{placeholder:"\u8bf7\u8f93\u5165Topic",style:j}),D=(0,i.default)(n.default,{placeholder:"\u8bf7\u8f93\u5165\u7528\u6237\u540d",style:j}),M=(0,i.default)(n.default,{autoComplete:"new-password",placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801",type:"password",style:j});t.default=function(e){var t=this,a=e.kafkaInfo,n=e.onCancel,m=p.default.useForm()[0],y=(0,f.useState)(!1),j=y[0],k=y[1],P=(0,f.useState)(!1),L=P[0],N=P[1],A=function(){var e=(0,u.default)(d.default.mark((function e(){var a;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),e.prev=1,e.next=4,m.validateFields();case 4:a=e.sent,(0,g.checkConnect)(a).then((function(e){k(!1),e.data?l.default.success("\u6d4b\u8bd5\u8fde\u63a5\u6210\u529f\uff01"):l.default.error("\u6d4b\u8bd5\u8fde\u63a5\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165")})).catch((function(){l.default.error("\u6d4b\u8bd5\u8fde\u63a5\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165")})),e.next=13;break;case 8:throw e.prev=8,e.t0=e.catch(1),k(!1),l.default.error("\u8f93\u5165\u6709\u8bef\uff0c\u8bf7\u4fee\u6539\u540e\u6d4b\u8bd5"),e.t0;case 13:case"end":return e.stop()}}),e,t,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=(0,u.default)(d.default.mark((function e(){var o;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.validateFields();case 3:o=e.sent,N(!0),(a.kafkaId?g.updateKafka:g.addKafka).call(t,o,a.kafkaId).then((function(){l.default.success(a.kafkaId?"\u4fee\u6539\u6210\u529f":"\u65b0\u589e\u6210\u529f"),N(!1),n&&n(!0)})),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),N(!1),e.t0;case 12:case"end":return e.stop()}}),e,t,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=(0,u.default)(d.default.mark((function e(n,o){var s;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:return e.next=4,(0,g.checkNameRepeat)({kafkaId:a.kafkaId,kafkaName:o});case 4:if(s=e.sent,!_.get(s,"data")){e.next=7;break}return e.abrupt("return",Promise.reject("\u540d\u79f0\u91cd\u590d\uff01"));case 7:return e.abrupt("return",Promise.resolve());case 8:case"end":return e.stop()}}),e,t)})));return function(t,a){return e.apply(this,arguments)}}();return(0,i.default)(S,{},void 0,(0,i.default)("div",{className:"ant-modal-body-children"},void 0,(0,i.default)(h.ModelConfigPanel,{title:"\u57fa\u672c\u4fe1\u606f"},void 0,(0,i.default)(p.default,{name:"kafka",form:m,initialValues:a},void 0,(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(x,{label:"Kafka\u540d\u79f0",name:"kafkaName",rules:[{required:!0,message:"\u8bf7\u8f93\u5165Kafka\u540d\u79f0"},{max:50,message:"Kafka\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc750\u4e2a\u5b57\u7b26"},{validator:F}],validateTrigger:"onBlur"},void 0,I)),(0,i.default)(s.default,{span:12},void 0,(0,i.default)(x,{label:"Broker",name:"kafkaBrokerHost",rules:[{required:!0,message:"\u8bf7\u8f93\u5165Broker\u5730\u5740"}],validateTrigger:["onBlur","onChange"]},void 0,T))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(x,{label:"Group ID",name:"groupId",rules:[{required:!0,message:"\u8bf7\u8f93\u5165Group ID"},{max:100,message:"Group ID\u4e0d\u5f97\u8d85\u8fc7100\u4e2a\u5b57\u7b26"}],validateTrigger:["onBlur","onChange"]},void 0,w)),(0,i.default)(s.default,{span:12},void 0,(0,i.default)(x,{label:"Topic",name:"topic",rules:[{required:!0,message:"\u8bf7\u8f93\u5165Topic"},{max:100,message:"Topic\u4e0d\u5f97\u8d85\u8fc7100\u4e2a\u5b57\u7b26"}],validateTrigger:["onBlur","onChange"]},void 0,E))),(0,i.default)(x,{label:"\u8ba4\u8bc1\u65b9\u5f0f",name:"kafkaAuth",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8ba4\u8bc1\u65b9\u5f0f"}],validateTrigger:["onBlur","onChange"]},void 0,(0,i.default)(C,{},void 0,b.map((function(e){return(0,i.default)(c.default,{value:e.code,disabled:[v.AUTH_TYPE.SS,v.AUTH_TYPE.SK].includes(e.code)},e.code,e.desc)})))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(x,{label:"\u7528\u6237\u540d",name:"username",rules:[{max:50,message:"\u7528\u6237\u540d\u4e0d\u5f97\u8d85\u8fc750\u4e2a\u5b57\u7b26"}],validateTrigger:["onBlur","onChange"]},void 0,D)),(0,i.default)(s.default,{span:12},void 0,(0,i.default)(x,{label:"\u5bc6\u7801",name:"password",rules:[{max:50,message:"\u5bc6\u7801\u4e0d\u5f97\u8d85\u8fc750\u4e2a\u5b57\u7b26"}],validateTrigger:["onBlur","onChange"]},void 0,M)))))),(0,i.default)("div",{className:"ant-modal-footer"},void 0,(0,i.default)("div",{},void 0,(0,i.default)(o.default,{onClick:n,disabled:L||j},void 0,"\u53d6\u6d88"),(0,i.default)(o.default,{onClick:A,disabled:L,loading:j,type:"primary"},void 0,"\u6d4b\u8bd5\u8fde\u63a5"),(0,i.default)(o.default,{onClick:R,loading:L,disabled:j,type:"primary"},void 0,"\u786e\u8ba4\u63d0\u4ea4"))))}},"./src/module/sysManage/kafkaManage/listPage/KafkaList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/antd/es/table/index.js")),o=v(a("./node_modules/antd/es/button/index.js")),s=v(a("./node_modules/babel-runtime/helpers/extends.js")),r=v(a("./node_modules/antd/es/message/index.js")),i=v(a("./node_modules/babel-runtime/helpers/jsx.js")),d=v(a("./node_modules/antd/es/modal/index.js")),l=v(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var u=a("./node_modules/react/index.js"),c=(v(u),a("./src/components/index.js")),p=a("./src/styles/GlobalStyle.js"),f=v(a("./src/components/table/ColumnRender.jsx")),m=a("./src/redux/services/sysManager/kafkaService.js"),h=v(a("./src/module/sysManage/kafkaManage/createPage/CreatePage.jsx")),g=a("./src/module/sysManage/kafkaManage/modelEnums.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=l.default.Search,b=d.default.confirm;t.default=function(){var e=[{title:"\u5e8f\u53f7",width:60,dataIndex:"index",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"Kafka\u540d\u79f0",dataIndex:"kafkaName",ellipsis:!0,render:function(e){return(0,f.default)(e)}},{title:"Broker",dataIndex:"kafkaBrokerHost",ellipsis:!0,render:function(e){return(0,f.default)(e)}},{title:"Group",dataIndex:"groupId",ellipsis:!0,render:function(e){return(0,f.default)(e)}},{title:"Topic",dataIndex:"topic",ellipsis:!0,render:function(e){return(0,f.default)(e)}},{title:"\u8ba4\u8bc1\u65b9\u5f0f",dataIndex:"kafkaAuth",ellipsis:!0,render:function(e){return(0,f.default)(e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,f.default)(e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,f.default)(e,"date")}},{title:"\u64cd\u4f5c",width:220,render:function(e){var t=[];return t.push({handleName:"\u4fee\u6539",handleAction:function(){R(e)}}),t.push({handleName:"\u5220\u9664",handleAction:function(){F(e.kafkaId)}}),(0,i.default)(c.ListButtons,{buttons:t,maxShowNum:2})}}],t=(0,u.useState)(!1),a=t[0],l=t[1],v=(0,u.useState)([]),x=v[0],C=v[1],j=(0,u.useState)({}),S=j[0],I=j[1],T=(0,u.useState)("create"),w=T[0],E=T[1],D=(0,u.useState)({kafkaAuth:g.AUTH_TYPE.SP}),M=D[0],k=D[1],P=(0,u.useState)(!1),L=P[0],N=P[1];(0,u.useEffect)((function(){A()}),[S]);var A=function(){l(!0),(0,m.getKafkaList)(S).then((function(e){C(_.get(e,"data.kafkaInfoList")||[]),l(!1)})).catch((function(e){throw l(!1),e}))},R=function(e){k(e),E("edit"),N(!0)},F=function(e){b({title:"\u786e\u8ba4",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5Kafka\u63a5\u5165\u5417\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){new Promise((function(t,a){(0,m.deleteKafka)(e).then((function(){A(),r.default.success("\u5220\u9664\u6210\u529f!"),t()})).catch((function(e){throw a(e),e}))}))}})},O=function(e){k({kafkaAuth:g.AUTH_TYPE.SP}),N(!1),!0===e&&A()};return(0,i.default)(p.PageWrapper,{},void 0,(0,i.default)(d.default,{visible:L,footer:null,title:"create"===w?"\u65b0\u589eKafka\u63a5\u5165":"\u4fee\u6539Kafka\u63a5\u5165",wrapClassName:"modal",width:800,onCancel:O,destroyOnClose:!0},void 0,(0,i.default)(h.default,{kafkaInfo:M,onCancel:O})),(0,i.default)(p.PageHeader,{},void 0,(0,i.default)(o.default,{className:"import__btn",type:"primary",onClick:function(){E("create"),N(!0)}},void 0,"\u65b0\u589eKafka\u63a5\u5165"),(0,i.default)(y,{placeholder:"Kafka\u540d\u79f0",onSearch:function(e){var t=(0,s.default)({},S,{keyword:e});I(t)},style:{width:200}})),(0,i.default)(p.PageBody,{},void 0,(0,i.default)(p.TableWrapper,{},void 0,(0,i.default)(n.default,{loading:a,bordered:!0,columns:e,dataSource:x,rowKey:"kafkaId"}))))}},"./src/module/sysManage/kafkaManage/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.AUTH_TYPE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};t.AUTH_TYPE=(0,s.default)({SP:["SASL/PLAIN","SASL/PLAIN"],SS:["SASL/SCRAM","SASL/SCRAM"],SK:["SASL/Kerberos","SASL/Kerberos"]})},"./src/module/sysManage/labelsManage/components/CreateLabel.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateRolesConfigPage=void 0;var n=y(a("./node_modules/antd/es/col/index.js")),o=y(a("./node_modules/antd/es/row/index.js")),s=y(a("./node_modules/antd/es/modal/index.js")),r=y(a("./node_modules/babel-runtime/helpers/jsx.js")),i=y(a("./node_modules/antd/es/message/index.js")),d=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=y(a("./node_modules/react/index.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(y(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),g=y(a("./src/components/common/CheckName.jsx")),v=y(a("./src/redux/services/sysManager/labelsManage.js")),_=a("./src/redux/selectors/checkName.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=f.Form.Item,x=t.CreateRolesConfigPage=m.default.div.withConfig({displayName:"CreateLabel__CreateRolesConfigPage",componentId:"sc-3dqh74-0"})(["overflow-x:hidden;height:200px;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),C={width:"100%"},j=(0,r.default)("span",{},void 0,"\u6807\u7b7e\u540d\u79f0 :"),S=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.closeModal=function(){n.props.closeModal()},n.saveLabelInfo=function(){var e=n.props.checkNameVerifyInfo.toJS(),t=e.verifyStatus,a=e.verifyMsg;if(-1===t)return i.default.error(a),!1;n.setState({modalVisible:!0})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var e="create"===n.props.viewType;v.default[e?"saveLabel":"updateLabel"](n.labelInfo).then((function(){i.default.success(e?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),n.props.closeModal(!0),n.setState({confirmLoading:!1})})).catch((function(){n.setState({confirmLoading:!1})}))},n.handleInputChange=function(e){n.props.form.setFieldsValue({labelName:e}),n.labelInfo.labelName=e},n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1},n.labelInfo="create"!==n.props.viewType?n.props.labelInfo:{},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.prototype.render=function(){var e=this.props.form.getFieldDecorator;return(0,r.default)(x,{},void 0,(0,r.default)(s.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,r.default)("p",{},void 0,this.state.modalTxt)),(0,r.default)(h.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:C},void 0,(0,r.default)(f.Form,{layout:"inline"},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(b,{help:""},void 0,j,e("labelName",{rules:[{required:!0,min:0,max:30}],initialValue:this.labelInfo.labelName})(c.default.createElement(g.default,{ref:this.checkNameRef,source:"labelsManage",style:{marginLeft:"20px",width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u6807\u7b7e\u540d\u79f0",modelId:this.props.labelInfo.labelId||"",updateNameCallback:this.handleInputChange,initVerify:Boolean(this.props.labelInfo.labelName),__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\labelsManage\\components\\CreateLabel.jsx",lineNumber:122}}))))))))},t}(c.default.PureComponent);t.default=(0,p.connect)((function(e){return{checkNameVerifyInfo:(0,_.selectVerifyInfo)(e)}}))(f.Form.create()(S))},"./src/module/sysManage/labelsManage/components/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/styles/GlobalStyle.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Search,f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("labelName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(u.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(p,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/module/sysManage/labelsManage/components/addServiceTypes/AddServiceTypes.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/button/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/antd/es/message/index.js")),r=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),p(a("./src/module/sysManage/labelsManage/components/addServiceTypes/InputSelect.jsx"))),c=p(a("./src/redux/services/sysManager/labelsManage.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.handleServiceTypeClick=function(){n.setState((function(e){return{serviceTypeOpened:!e.serviceTypeOpened}}))},n.handleOptionAdd=function(e){n.setState({addBtnLoading:!0}),c.default.checkName({labelId:"",labelName:e}).then((function(t){_.get(t.data,"isRepeat")?(s.default.error("\u5206\u7c7b\u6807\u7b7e\u91cd\u590d"),n.setState({addBtnLoading:!1})):c.default.saveLabel({labelName:e}).then((function(){s.default.success("\u5206\u7c7b\u6807\u7b7e\u6dfb\u52a0\u6210\u529f"),n.props.fetchLabelsList(),n.setState({addBtnLoading:!1})}))})).catch((function(){n.setState({addBtnLoading:!1})}))},n.handleOptionRemove=function(e){c.default.deleteLabel(e.labelId).then((function(){s.default.success("\u5206\u7c7b\u6807\u7b7e\u79fb\u9664\u6210\u529f"),n.props.fetchLabelsList()}))},n.state={serviceTypeOpened:!1,addBtnLoading:!1},n}return(0,d.default)(t,e),t.prototype.render=function(){return(0,o.default)(u.default,{onOptionAdd:this.handleOptionAdd,onOptionRemove:this.handleOptionRemove,open:this.state.serviceTypeOpened,options:this.props.serviceTypeOptions,addBtnLoading:this.state.addBtnLoading,loading:this.props.loading},void 0,(0,o.default)(n.default,{onClick:this.handleServiceTypeClick,style:{marginLeft:"10px",marginTop:"4px",verticalAlign:"top",height:"32px"}},void 0,"\u65b0\u589e\u5206\u7c7b\u6807\u7b7e"))},t}(l.default.Component);t.default=f},"./src/module/sysManage/labelsManage/components/addServiceTypes/InputSelect.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/button/index.js")),o=m(a("./node_modules/babel-runtime/helpers/jsx.js")),s=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=m(a("./node_modules/babel-runtime/helpers/inherits.js")),d=m(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var l=m(a("./node_modules/react/index.js")),u=(m(a("./node_modules/prop-types/index.js")),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/@ant-design/icons/es/index.js"),p=a("./src/components/Icon/index.js"),f=a("./src/components/index.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=d.default.Search,g=u.default.span.withConfig({displayName:"InputSelect__InputSelectWrapper",componentId:"sc-1tldq7k-0"})(["position:relative;.input-select__container{position:absolute;height:300px;border:1px solid #eee;background:#fff;box-shadow:0 2px 12px 0 rgba(0,0,0,0.1);z-index:1;top:30px;left:0;width:240px;display:",";}.input-select__wrapper{display:flex;flex-direction:column;}.options__container-wrapper{margin:10px 0;height:200px;overflow:auto;border-bottom:1px solid #eee;}.search__input-wrapper{margin:5px 20px;height:30px;input{height:32px !important;}}.option__wrapper{display:flex;padding:0 25px;height:30px;line-height:30px;justify-content:space-between;&:hover{background:#e6f7ff;}}.option__remove{cursor:pointer;&:hover{color:#40a9ff;}}.option__text{text-overflow:ellipsis;width:80%;overflow:hidden;white-space:nowrap;}.nodata__wrapper{height:100%;width:100%;display:flex;justify-content:center;align-items:center;}.add-option__wrapper{display:flex;padding:0px 5px;input{margin-right:10px;}height:30px;}"],(function(e){return(e.open?"block":"none")+"}"})),v=(0,o.default)(f.LoadingIndicator,{}),_=(0,o.default)("div",{className:"nodata__wrapper"},void 0,(0,o.default)(p.IconSvg,{type:"noData",size:70})),y=(0,o.default)(c.PlusOutlined,{}),b=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n._handleClick=function(e){n.dropdownRef&&!n.dropdownRef.current.contains(e.target)&&n.setState({open:!1})},n.handleSearch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.props.options,a=t.filter((function(t){return t.labelName.toLowerCase().includes(e.toLowerCase())}));n.setState({options:a,searchText:e})},n.handleInputChange=function(e){n.setState({inputText:e.target.value})},n.handleAddClick=function(){n.props.onOptionAdd(n.state.inputText)},n.state={open:!1,searchText:"",options:a.options,inputText:""},n.dropdownRef=l.default.createRef(),n}return(0,i.default)(t,e),t.prototype.componentDidUpdate=function(e){e.open!==this.props.open&&(this.state.open!==this.props.open?this.setState({open:this.props.open,inputText:""}):this.setState({open:!this.props.open,inputText:""}),this.handleSearch(this.state.searchText,this.props.options)),e.options!==this.props.options&&this.handleSearch(this.state.searchText,this.props.options)},t.prototype.componentDidMount=function(){window.addEventListener("click",this._handleClick,!0)},t.prototype.componentWillUnmount=function(){window.removeEventListener("click",this._handleClick,!0)},t.prototype.render=function(){var e=this;return l.default.createElement(g,{open:this.state.open,ref:this.dropdownRef,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\labelsManage\\components\\addServiceTypes\\InputSelect.jsx",lineNumber:140}},this.props.children,(0,o.default)("div",{className:"input-select__container"},void 0,(0,o.default)("div",{className:"input-select__wrapper"},void 0,(0,o.default)("div",{className:"search__input-wrapper"},void 0,(0,o.default)(h,{placeholder:"\u641c\u7d22",value:this.state.searchText,onChange:function(t){return e.handleSearch(t.target.value)},allowClear:!0})),(0,o.default)("div",{className:"options__container-wrapper"},void 0,this.props.loading?v:Array.isArray(this.state.options)&&this.state.options.length>0?this.state.options.map((function(t){return(0,o.default)("div",{className:"option__wrapper"},t.labelId,(0,o.default)("div",{className:"option__text"},void 0,t.labelName),(0,o.default)("div",{className:"option__remove"},void 0,(0,o.default)(c.DeleteOutlined,{onClick:function(){return e.props.onOptionRemove(t)}})))})):_),(0,o.default)("div",{className:"add-option__wrapper"},void 0,(0,o.default)(d.default,{placeholder:"\u8f93\u5165\u6807\u7b7e\u540d\u79f0",value:this.state.inputText,onChange:this.handleInputChange}),(0,o.default)(n.default,{type:"primary",icon:y,loading:this.props.addBtnLoading,disabled:0===this.state.inputText.trim().length,onClick:this.handleAddClick},void 0,"\u6dfb\u52a0")))))},t}(l.default.Component);t.default=b},"./src/module/sysManage/labelsManage/page/LabelsManage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/divider/index.js")),o=y(a("./node_modules/antd/es/table/index.js")),s=y(a("./node_modules/antd/es/button/index.js")),r=y(a("./node_modules/antd/es/tooltip/index.js")),i=y(a("./node_modules/babel-runtime/helpers/jsx.js")),d=y(a("./node_modules/antd/es/modal/index.js")),l=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=y(a("./node_modules/react/index.js")),f=a("./src/components/index.js"),m=y(a("./src/redux/services/sysManager/labelsManage.js")),h=y(a("./src/module/sysManage/labelsManage/components/CreateLabel.jsx")),g=y(a("./src/module/sysManage/labelsManage/components/SearchBar.jsx")),v=a("./src/styles/GlobalStyle.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=(0,i.default)("span",{},void 0,"\u5e8f\u53f7"),x=(0,i.default)(n.default,{type:"vertical"}),C=(0,i.default)(f.LoadingIndicator,{position:"relative"}),j=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({listLoading:!0}),m.default.getLabelsList(n.searchCond).then((function(e){return n.setState({labelList:e.data,listLoading:!1})})).catch((function(){return n.setState({listLoading:!1})}))},n.editLabels=function(e,t){n.setState({viewType:t,modalVisible:!0,labelInfo:e})},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData()},n.delLabels=function(e){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.labelName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t){m.default.deleteLabel(e.labelId).then((function(){n.fetchData(),t()}))}))}})},n.openKpiConfig=function(e){n.setState({modalVisible:!0,viewType:e})},n.callVisible=function(e){e&&n.fetchData(),n.setState({modalVisible:!1})},n.submitModalOk=function(){n.createLabel.saveLabelInfo()},n.state={modalVisible:!1,viewType:"",listLoading:!1,confirmLoading:!1,labelList:[],labelInfo:{}},n.columns=[{title:b,width:"20%",dataIndex:"labelId",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"\u6807\u7b7e\u540d\u79f0",dataIndex:"labelName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:"20%",render:function(e,t){return(0,i.default)("span",{},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.editLabels(t,"edit")}},void 0,"\u4fee\u6539"),x,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.delLabels(t)}},void 0,"\u5220\u9664"))}}],n.searchCond={labelName:""},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this;return(0,i.default)(v.PageWrapper,{},void 0,(0,i.default)(f.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539\u6807\u7b7e":"\u65b0\u5efa\u6807\u7b7e",onCancelType:!1,width:600,okText:"\u63d0 \u4ea4",submitModalOk:this.submitModalOk,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,i.default)(h.default,{onRef:function(t){e.createLabel=t},labelInfo:this.state.labelInfo,viewType:this.state.viewType,closeModal:this.callVisible})},this.state.viewType),(0,i.default)(v.PageHeader,{},void 0,(0,i.default)(s.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u6807\u7b7e"),(0,i.default)(g.default,{onChange:this.changeSearchCond})),(0,i.default)(v.PageBody,{},void 0,(0,i.default)(v.TableWrapper,{},void 0,this.state.listLoading&&C,!this.state.listLoading&&(0,i.default)(o.default,{dataSource:this.state.labelList,rowKey:"labelId",bordered:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=j},"./src/module/sysManage/logsManager/LogsManager.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/table/index.js")),o=g(a("./node_modules/antd/es/tooltip/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/babel-runtime/helpers/extends.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var u=g(a("./node_modules/react/index.js")),c=a("./src/components/index.js"),p=g(a("./node_modules/dayjs/dayjs.min.js")),f=g(a("./src/module/sysManage/logsManager/components/SearchBar.jsx")),m=g(a("./src/redux/services/sysManager/logsManager.js")),h=a("./src/styles/GlobalStyle.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=(0,s.default)("span",{},void 0,"\u5e8f\u53f7"),_=(0,s.default)(c.LoadingIndicator,{position:"relative"}),y=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.fetchData=function(){n.setState({listLoading:!0}),m.default.getLogsList(n.searchCond).then((function(e){return n.setState({logsList:e.data,listLoading:!1,logPagination:e.pagination?{total:e.pagination.total,limit:e.pagination.limit,offset:e.pagination.offset}:{total:0,limit:0,offset:0}})})).catch((function(){return n.setState({listLoading:!1})}))},n.changeSearchCond=function(e){n.searchCond=(0,r.default)({},n.searchCond,e),n.fetchData()},n.onChangePage=function(e,t){n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData()},n.state={modalVisible:!1,viewType:"",listLoading:!1,confirmLoading:!1,logsList:[],labelInfo:{},logPagination:{total:0,limit:0,offset:0}},n.columns=[{title:v,width:"20%",dataIndex:"labelId",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u64cd\u4f5c\u7528\u6237",dataIndex:"operateBy",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c\u6a21\u5757",dataIndex:"serviceName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c\u63cf\u8ff0",dataIndex:"operateDesc",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c\u65f6\u95f4",dataIndex:"operateAt",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"IP\u5730\u5740",dataIndex:"ipAddress",width:"20%",render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}}];var l=(0,p.default)(new Date).add(0,"days").format("YYYY-MM-DD");return n.searchCond={sortBy:"DESC",sortField:"operateAt",createAt:l,offset:1,limit:10},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){return(0,s.default)(h.PageWrapper,{},void 0,(0,s.default)(h.PageHeader,{className:"right"},void 0,(0,s.default)(f.default,{onChange:this.changeSearchCond})),(0,s.default)(h.PageBody,{},void 0,(0,s.default)(h.TableWrapper,{},void 0,this.state.listLoading&&_,!this.state.listLoading&&(0,s.default)(n.default,{dataSource:this.state.logsList,rowKey:"labelId",pagination:!1,bordered:!0,columns:this.columns}),(0,s.default)("div",{style:{margin:"1.5%",textAlign:"right"}},void 0,(0,s.default)(c.TabPagination,{currentPage:this.state.logPagination.offset,pageSize:10,total:this.state.logPagination.total,onChange:this.onChangePage})))))},t}(u.default.PureComponent);t.default=y},"./src/module/sysManage/logsManager/components/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/date-picker/index.js")),o=y(a("./node_modules/babel-runtime/helpers/jsx.js")),s=y(a("./node_modules/babel-runtime/helpers/extends.js")),r=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=y(a("./node_modules/babel-runtime/helpers/inherits.js")),l=y(a("./node_modules/antd/es/input/index.js")),u=y(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/date-picker/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=y(a("./node_modules/react/index.js")),p=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/moment/moment.js"))),f=a("./src/styles/GlobalStyle.js"),m=y(a("./src/redux/services/sysManager/tenantManager.js")),h=y(a("./src/redux/services/sysManager/projectManage.js")),g=y(a("./src/redux/services/sysManager/userManager.js")),v=a("./src/utils/authPermit.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=u.default.Option,x=l.default.Search,C=l.default.Group,j=(0,o.default)(b,{value:""},void 0,"\u5168\u90e8\u79df\u6237"),S=(0,o.default)(b,{value:""},void 0,"\u5168\u90e8\u9879\u76ee"),I=(0,o.default)(b,{value:""},void 0,"\u5168\u90e8\u7528\u6237"),T=(0,o.default)(b,{value:""},void 0,"\u5168\u90e8\u6a21\u5757"),w=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fetchModulesList=function(){m.default.getRoutesList().then((function(e){n.setState({modules:e.data?e.data:[]})}))},n.fetchTenantList=function(){m.default.getTenantList({sortType:"CREATE_AT.DESC"}).then((function(e){n.setState({tenants:e.data?e.data:[]})}))},n.fetchProjectList=function(){!_.get((0,v.getUserAdditionalInfo)(),"isPlatformAdmin")||n.params.tenantId?m.default.getTenantProjects({sortType:"CREATE_AT.DESC",tenantId:n.params.tenantId}).then((function(e){n.setState({projects:e.data?e.data:[]})})):h.default.getAllProjects().then((function(e){n.setState({projects:e.data?e.data:[]})}))},n.fetchUserList=function(){n.params.projectId?h.default.getProjectUserList(n.params.projectId).then((function(e){n.setState({users:e.data?e.data:[]})})):n.params.tenantId?m.default.getTenantUsers({tenantId:n.params.tenantId}).then((function(e){n.setState({users:e.data?e.data:[]})})):g.default.loadUserList().then((function(e){n.setState({users:e.data?e.data:[]})}))},n.changeSelect=function(e){return function(t){var a,o;_.isFunction(n.props.onChange)&&(n.params=(0,s.default)({},n.params,((a={})[e]=t,a)),n.props.onChange(((o={})[e]=t,o)))}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.params=(0,s.default)({},n.params,{operateDesc:e}),n.props.onChange({operateDesc:e})},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.onChange=function(e,t){n.params=(0,s.default)({},n.params,{createAt:t}),n.props.onChange({createAt:t})},n.handleFilterChange=function(e,t){var a={};switch(e){case"tenantId":(a={projectId:"",operateBy:""})[e]=t,n.params=(0,s.default)({},n.params,a),n.fetchProjectList(),n.fetchUserList();break;case"projectId":(a={operateBy:""})[e]=t,n.params=(0,s.default)({},n.params,a),n.fetchUserList();break;default:a[e]=t,n.params=(0,s.default)({},n.params,a)}n.setState(a),n.props.onChange(a)},n.disabledDate=function(e){return e>(0,p.default)().endOf("day")},n.state={tenants:[],projects:[],users:[],modules:[],searchParams:{},projectId:"",operateBy:""},n.params={},n.changeSortField=n.changeSelect("sortField"),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.fetchTenantList(),this.fetchProjectList(),this.fetchUserList(),this.fetchModulesList()},t.prototype.render=function(){var e=this,t=this.state,a=t.tenants,s=t.projects,r=t.users,i=t.modules,d=_.get((0,v.getUserAdditionalInfo)(),"isPlatformAdmin");return(0,o.default)(f.SearchBarWrapper,{className:"search-bar"},void 0,(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(n.default,{allowClear:!1,disabledDate:this.disabledDate,onChange:this.onChange,defaultValue:(0,p.default)(new Date,"YYYY/MM/DD")})),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(C,{compact:!0},void 0,d&&(0,o.default)(u.default,{defaultValue:"",style:{width:120},onChange:function(t){return e.handleFilterChange("tenantId",t)}},void 0,j,a.map((function(e){return(0,o.default)(b,{value:e.tenantId},e.tenantId,e.tenantName)}))),(0,o.default)(u.default,{style:{width:120},defaultValue:"",value:this.state.projectId,onChange:function(t){return e.handleFilterChange("projectId",t)}},void 0,S,s.map((function(e){return(0,o.default)(b,{},e.projectId,e.projectName)}))),(0,o.default)(u.default,{style:{width:120},defaultValue:"",value:this.state.operateBy,onChange:function(t){return e.handleFilterChange("operateBy",t)}},void 0,I,r.map((function(e){return(0,o.default)(b,{value:e.userId},e.userId,e.userName)}))))),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(u.default,{style:{width:120},defaultValue:"",onChange:function(t){return e.handleFilterChange("serviceId",t)}},void 0,T,i.map((function(e){return(0,o.default)(b,{},e.routeId,e.routeName)})))),(0,o.default)("span",{className:"search__item-wrapper"},void 0,(0,o.default)(x,{placeholder:"\u8bf7\u8f93\u5165\u64cd\u4f5c\u63cf\u8ff0",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(c.default.Component);t.default=w},"./src/module/sysManage/menuManager/editPage/CreateMenusConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.default=void 0;var n=C(a("./node_modules/antd/es/input-number/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/antd/es/col/index.js")),r=C(a("./node_modules/antd/es/row/index.js")),i=C(a("./node_modules/antd/es/switch/index.js")),d=C(a("./node_modules/antd/es/tree-select/index.js")),l=C(a("./node_modules/antd/es/input/index.js")),u=C(a("./node_modules/babel-runtime/helpers/jsx.js")),c=C(a("./node_modules/babel-runtime/helpers/extends.js")),p=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),f=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=C(a("./node_modules/babel-runtime/helpers/inherits.js")),h=C(a("./node_modules/antd/es/radio/index.js")),g=C(a("./node_modules/antd/es/modal/index.js")),v=C(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/tree-select/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var _=a("./node_modules/react/index.js"),y=C(_),b=(C(a("./node_modules/prop-types/index.js")),C(a("./src/redux/services/sysManager/menuManager.js"))),x=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function C(e){return e&&e.__esModule?e:{default:e}}var j=v.default.Item,S=g.default.confirm,I=h.default.Group,T=x.default.div.withConfig({displayName:"CreateMenusConfig__BottomBtnViewWrapper",componentId:"sc-7tqfah-0"})(["position:absolute;bottom:50px;right:30px;"]),w=(0,u.default)(h.default,{value:"drawer"},void 0,"\u4e00\u7ea7\u83dc\u5355"),E=(0,u.default)(h.default,{value:""},void 0,"\u5b50\u83dc\u5355"),D=(0,u.default)(h.default,{value:"drawer",disabled:!0},void 0,"\u4e00\u7ea7\u83dc\u5355"),M=(0,u.default)(h.default,{value:""},void 0,"\u5b50\u83dc\u5355"),k=(0,u.default)(h.default,{value:"drawer"},void 0,"\u4e00\u7ea7\u83dc\u5355"),P=(0,u.default)(h.default,{value:"",disabled:!0},void 0,"\u5b50\u83dc\u5355"),L=(0,u.default)(l.default,{placeholder:"\u8bf7\u8f93\u5165\u83dc\u5355\u63cf\u8ff0"}),N=(0,u.default)(l.default,{placeholder:"\u8bf7\u8f93\u5165\u8def\u5f84\u7aef\u70b9"}),A=(0,u.default)(l.default,{placeholder:"\u8bf7\u8f93\u5165icon\u56fe\u6807"}),R=(0,u.default)(l.default,{placeholder:"\u8bf7\u8f93\u5165iframeUrl"}),F=(0,u.default)(j,{label:"\u6392\u5e8f"},void 0,(0,u.default)(j,{name:"sortIdx",noStyle:!0,initialValue:"1"},void 0,(0,u.default)(n.default,{}))),O=(0,u.default)(l.default,{placeholder:"\u8bf7\u8f93\u5165\u83dc\u5355\u5168\u8def\u5f84"}),V=function(e){function t(a){(0,p.default)(this,t);var n=(0,f.default)(this,e.call(this,a));return n.formRef=y.default.createRef(),n.changeMenu=function(e){n.setState({changeMenuType:e.target.value})},n.openModal=function(){var e=n;n.formRef.current.validateFields().then((function(t){var a=(0,c.default)({},t,{anonymousFlag:t.anonymousFlag?1:-1});S({title:"\u786e\u8ba4\u8981\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u5417\uff1f",onOk:function(){return new Promise((function(t){b.default.editPostMenu(a,e.props.menuTitleType,e.menuData.id).then((function(){t(),e.props.onCancel()})).catch((function(e){message.error(e.message)}))}))}})}))},n.switchChange=function(e){e?(n.formRef.current.setFieldsValue({moduleName:""}),n.setState({menuNameType:!0})):n.setState({menuNameType:!1})},n.getTreeData=function(){var e=[];n.handleTreeData(n.beforeMenuList,e),n.setState({TreeData:e})},n.handleTreeData=function(e,t){e.forEach((function(e){var a=[];e.children?t.push({title:e.moduleName,value:e.id,children:a}):t.push({title:e.moduleName,value:e.id}),e.children&&e.children.length>0&&n.handleTreeData(e.children,a)}))},n.menuData="add"===n.props.menuTitleType?{addition:{}}:n.props.queryFormData,n.state={changeMenuType:n.menuData.addition.menuType,menuNameType:1===n.menuData.anonymousFlag,TreeData:[]},n.beforeMenuList=n.props.beforeMenuList,n}return(0,m.default)(t,e),t.prototype.componentDidMount=function(){this.getTreeData()},t.prototype.render=function(){var e=this.state,t=e.menuNameType,a=e.TreeData,n=e.changeMenuType,p=this.props.menuTitleType;return(0,u.default)("div",{},void 0,y.default.createElement(v.default,(0,c.default)({},{labelCol:{span:5},wrapperCol:{span:19}},{ref:this.formRef,name:"formMenu",className:"form-menu",validateTrigger:"onBlur",initialValues:this.menuData,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\menuManager\\editPage\\CreateMenusConfig.jsx",lineNumber:119}}),(0,u.default)(j,{name:["addition","menuType"],label:"\u83dc\u5355\u7c7b\u578b",initialValue:"drawer"},void 0,"add"===p?(0,u.default)(I,{onChange:this.changeMenu},void 0,w,E):""===n?(0,u.default)(I,{onChange:this.changeMenu},void 0,D,M):(0,u.default)(I,{onChange:this.changeMenu},void 0,k,P)),(0,u.default)(j,{name:"moduleName",label:"\u83dc\u5355\u540d\u79f0",rules:[{required:!1,message:"\u8bf7\u8f93\u5165\u83dc\u5355\u540d\u79f0\uff01"}],hasFeedback:!0},void 0,(0,u.default)(l.default,{placeholder:"add"===p||!1===t?"\u8bf7\u8f93\u5165\u83dc\u5355\u540d\u79f0":"",disabled:t})),""===n?(0,u.default)(j,{name:"pid",label:"\u4e0a\u7ea7\u83dc\u5355",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4e0a\u7ea7\u83dc\u5355\uff01"}]},void 0,(0,u.default)(d.default,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:a,placeholder:"\u8bf7\u9009\u62e9",treeDefaultExpandAll:!0})):null,(0,u.default)(j,{name:"moduleDesc",label:"\u83dc\u5355\u63cf\u8ff0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u83dc\u5355\u63cf\u8ff0\uff01"}],hasFeedback:!0},void 0,L),(0,u.default)(j,{name:"endpoint",label:"\u8def\u5f84\u7aef\u70b9",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8def\u5f84\u7aef\u70b9\uff01"}],hasFeedback:!0},void 0,N),(0,u.default)(j,{name:["addition","icon"],label:"icon\u56fe\u6807",rules:[{required:!0,message:"\u8bf7\u8f93\u5165icon\u56fe\u6807\uff01"}],hasFeedback:!0},void 0,A),(0,u.default)(j,{name:["addition","iframeUrl"],label:"iframeUrl",rules:[{required:!0,message:"\u8bf7\u8f93\u5165iframeUrl\uff01"}],hasFeedback:!0},void 0,R),F,(0,u.default)(j,{name:"fullPath",label:"\u83dc\u5355\u5168\u8def\u5f84",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u83dc\u5355\u5168\u8def\u5f84\uff01"}],hasFeedback:!0},void 0,O),(0,u.default)(j,{name:"anonymousFlag",label:"\u662f\u5426\u533f\u540d\u83dc\u5355"},void 0,(0,u.default)(i.default,{checkedChildren:"\u662f",unCheckedChildren:"\u5426",onChange:this.switchChange,defaultChecked:t})),(0,u.default)(T,{},void 0,(0,u.default)(r.default,{},void 0,(0,u.default)(s.default,{span:24,style:{textAlign:"right"}},void 0,(0,u.default)(o.default,{style:{marginRight:"20px"},onClick:this.props.cancelMenu},void 0,"\u5173\u95ed"),"edit"===p||"add"===p?(0,u.default)(o.default,{type:"primary",onClick:this.openModal},void 0,"\u786e\u5b9a"):null)))))},t}(_.PureComponent);t.default=V},"./src/module/sysManage/menuManager/listPage/MenuTable.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.default=void 0;var n=_(a("./node_modules/antd/es/drawer/index.js")),o=_(a("./node_modules/antd/es/table/index.js")),s=_(a("./node_modules/antd/es/button/index.js")),r=_(a("./node_modules/antd/es/col/index.js")),i=_(a("./node_modules/antd/es/row/index.js")),d=_(a("./node_modules/babel-runtime/helpers/jsx.js")),l=_(a("./node_modules/antd/es/message/index.js")),u=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=_(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var f=a("./node_modules/react/index.js"),m=(_(f),a("./node_modules/@ant-design/icons/es/index.js")),h=a("./src/components/index.js"),g=_(a("./src/module/sysManage/menuManager/editPage/CreateMenusConfig.jsx")),v=_(a("./src/redux/services/sysManager/menuManager.js"));function _(e){return e&&e.__esModule?e:{default:e}}var y=(0,d.default)(m.PlusOutlined,{}),b=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.addDrawer=function(){n.menuTitleType="add",n.setState({isDrawerClosable:!0})},n.editDrawer=function(e){v.default.getMenuInfo(e.id).then((function(e){var t=e.data;n.queryData=t,n.menuTitleType="edit",n.setState({isDrawerClosable:!0})})).catch((function(e){l.default.error(e.message)}))},n.viewDrawer=function(e){v.default.getMenuInfo(e.id).then((function(e){var t=e.data;n.queryData=t,n.menuTitleType="view",n.setState({isDrawerClosable:!0})})).catch((function(e){l.default.error(e.message)}))},n.removeMenuData=function(e){var t=n;confirm({title:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u6b64\u83dc\u5355\u9879\u5417?",onOk:function(){v.default.deleteMenu(e.id).then((function(){t.getTableData(),l.default.success("\u5220\u9664\u6210\u529f\uff01")})).catch((function(e){l.default.error(e.message)}))}})},n.closeDrawer=function(){n.menuTitleType="",n.setState({isDrawerClosable:!1})},n.cancelMenu=function(){n.menuTitleType="",n.setState({isDrawerClosable:!1})},n.getTableData=function(){n.setState({loading:!0}),v.default.getMenuTableData().then((function(e){var t=e.data;n.setState({loading:!1,tableData:t})})).catch((function(e){n.setState({loading:!1,tableData:[]}),l.default.error(e.message)}))},n.handleDrawerCancel=function(){n.setState({isDrawerClosable:!1}),n.getTableData()},n.onExpand=function(e,t){if(e)n.setState({expandedRowKeys:[].concat(n.state.expandedRowKeys,[t.id])});else{var a=n.state.expandedRowKeys.filter((function(e){return e!==t.id}));n.setState({expandedRowKeys:a})}},n.state={tableData:[],isDrawerClosable:!1,expandedRowKeys:[],loading:!1},n.columns=[{title:"\u83dc\u5355\u540d\u79f0",dataIndex:"moduleName"},{title:"\u83dc\u5355\u7c7b\u578b",dataIndex:["addition","menuType"]},{title:"\u83dc\u5355\u63cf\u8ff0",dataIndex:"moduleDesc"},{title:"\u8def\u5f84\u7aef\u70b9",dataIndex:"endpoint"},{title:"iframeUrl",dataIndex:["addition","iframeUrl"]},{title:"icon\u56fe\u6807",dataIndex:["addition","icon"]},{title:"\u83dc\u5355\u5168\u8def\u5f84",dataIndex:"fullPath"},{title:"\u6392\u5e8f\u7d22\u5f15",dataIndex:"sortIdx"},{title:"\u64cd\u4f5c",dataIndex:"",width:200,render:function(e){var t=[{handleName:"\u67e5\u770b",handleAction:function(){n.viewDrawer(e)}},{handleName:"\u4fee\u6539",handleAction:function(){n.editDrawer(e)}},{handleName:"\u5220\u9664",handleAction:function(){n.removeMenuData(e)}}];return(0,d.default)(h.ListButtons,{buttons:t,maxShowNum:3})}}],n.menuTitleType="",n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.getTableData()},t.prototype.render=function(){var e=this.state,t=e.tableData,a=e.expandedRowKeys,l=e.isDrawerClosable,u=e.loading,c=this.menuTitleType;return(0,d.default)("div",{className:"menuTable"},void 0,(0,d.default)(i.default,{},void 0,(0,d.default)(r.default,{span:3,style:{margin:"17px 10px"}},void 0,(0,d.default)(s.default,{type:"primary",icon:y,onClick:this.addDrawer},void 0,"\u65b0\u589e"))),(0,d.default)("div",{},void 0,(0,d.default)(o.default,{columns:this.columns,dataSource:t,bordered:!0,loading:u,rowKey:"id",pagination:!1,expandedRowKeys:a,onExpand:this.onExpand})),(0,d.default)(n.default,{title:"edit"===c?"\u4fee\u6539\u83dc\u5355":"view"===c?"\u67e5\u770b\u83dc\u5355":"\u65b0\u589e\u83dc\u5355",placement:"right",closable:!0,onClose:this.closeDrawer,visible:l,destroyOnClose:!0,width:500},void 0,(0,d.default)(g.default,{cancelMenu:this.cancelMenu,menuTitleType:c,onCancel:"edit"===c||"add"===c?this.handleDrawerCancel:null,queryFormData:"edit"===c||"view"===c?this.queryData:null,beforeMenuList:t})))},t}(f.PureComponent);t.default=b},"./src/module/sysManage/messageAffiche/AfficheManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/pagination/index.js")),o=S(a("./node_modules/antd/es/table/index.js")),s=S(a("./node_modules/antd/es/button/index.js")),r=S(a("./node_modules/antd/es/divider/index.js")),i=S(a("./node_modules/antd/es/tooltip/index.js")),d=S(a("./node_modules/babel-runtime/helpers/jsx.js")),l=S(a("./node_modules/antd/es/message/index.js")),u=S(a("./node_modules/antd/es/modal/index.js")),c=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=S(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/pagination/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var m=S(a("./node_modules/react/index.js")),h=(S(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),g=a("./src/components/index.js"),v=a("./src/redux/reducers/affiche.js"),y=S(a("./src/module/sysManage/messageAffiche/component/ManageSearchBar.jsx")),b=S(a("./src/module/sysManage/messageAffiche/component/CreateAfficheConfig.jsx")),x=a("./src/redux/selectors/affiche.js"),C=S(a("./src/redux/selectors/enumDic.js")),j=a("./src/styles/GlobalStyle.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=(0,d.default)(r.default,{type:"vertical"}),T=(0,d.default)(g.LoadingIndicator,{position:"relative"}),w=(0,d.default)(g.LoadingIndicator,{}),E=function(e){function t(a){(0,c.default)(this,t);var n=(0,p.default)(this,e.call(this,a));return n.fetchData=function(e){n.props.dispatch(v.afficheActions.getAfficheListRequest(e))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),delete n.searchCond.offset,delete n.searchCond.limit,n.fetchData(n.searchCond)},n.editAffiche=function(e,t){n.props.dispatch(v.afficheActions.resetUpdateAffiche()),n.props.dispatch(v.afficheActions.getAfficheInfoRequest({afficheId:e.afficheId})),n.setState({viewType:t,modalVisible:!0})},n.delAffiche=function(e){u.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.afficheTitle+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(v.afficheActions.deleteAfficheRequest(e.afficheId)),new Promise((function(t){_.defer((function(){var a=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(a),0===_.size(n.props.operateError)?(l.default.success("\u5220\u9664[ "+e.afficheTitle+" ]\u6210\u529f!"),n.props.dispatch(v.afficheActions.resetDeleteAffiche()),n.props.dispatch(v.afficheActions.getAfficheListRequest(n.searchCond))):l.default.error("\u5220\u9664[ "+e.afficheTitle+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.openKpiConfig=function(e){n.props.dispatch(v.afficheActions.resetUpdateAffiche()),n.formRef&&n.formRef.props&&n.formRef.props.form&&n.formRef.props.form.resetFields(),n.setState({modalVisible:!0,viewType:e})},n.callVisible=function(e){if(void 0!==e||"view"===n.state.viewType)n.setState({modalVisible:!1,viewType:""});else{var t=n;u.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1,viewType:""})}})}},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.handleCloseModal=function(){n.setState({modalVisible:!1})},n.handleSaveAffiche=function(){n.formRef&&n.formRef.props&&n.formRef.props.form&&(0,n.formRef.props.form.validateFields)((function(e,t){if(!e){var a=(t.afficheTime||[]).map((function(e){return e.format("YYYY-MM-DD HH:mm:ss")})),o={afficheContent:t.afficheContent,afficheLevel:t.afficheLevel,effectTime:_.size(a)>0?a[0]:"",expirationTime:_.size(a)>1?a[1]:"",afficheTitle:t.afficheTitle,afficheType:t.afficheType,receiveScope:-1,receivers:[]};"create"!==n.state.viewType&&(o.afficheId=n.props.afficheData.get("afficheId")),n.props.dispatch(v.afficheActions.submitAfficheDataRequest({subType:n.state.viewType,afficheData:o}))}}))},n.formRef=null,n.state={modalVisible:!1,viewType:"",currentPage:1},n.columns=[{title:"\u516c\u544a\u6807\u9898",dataIndex:"afficheTitle",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u516c\u544a\u7ea7\u522b",dataIndex:"afficheLevel",width:"10%",render:function(e){return(0,d.default)("span",{},void 0,1===e?"\u4f4e":2===e?"\u4e2d":"\u9ad8")}},{title:"\u751f\u6548\u65f6\u95f4",dataIndex:"effectTime",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5931\u6548\u65f6\u95f4",dataIndex:"expirationTime",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u53d1\u5e03\u65f6\u95f4",dataIndex:"publishTime",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u53d1\u5e03\u4eba",dataIndex:"publisher",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u662f\u5426\u751f\u6548",dataIndex:"effective",width:"10%",render:function(e){return(0,d.default)("span",{},void 0,1===e?"\u5df2\u5931\u6548":2===e?"\u751f\u6548\u4e2d":"\u672a\u751f\u6548")}},{title:"\u63a5\u6536\u8303\u56f4",dataIndex:"receiveScope",width:"10%",render:function(e){return(0,d.default)("span",{},void 0,-1===e?"\u5168\u90e8\u7528\u6237":1===e?"\u7528\u6237\u7ec4":1===e?"\u89d2\u8272":"\u7528\u6237")}},{title:"\u64cd\u4f5c",width:"13%",render:function(e,t){return(0,d.default)("span",{},void 0,(0,d.default)("a",{href:"javascript:;",onClick:function(){return n.editAffiche(t,"view")}},void 0,"\u67e5\u770b"),I,(0,d.default)("a",{href:"javascript:;",onClick:function(){return n.editAffiche(t,"edit")}},void 0,"\u4fee\u6539"),(0,d.default)(r.default,{style:{display:3===t.effective?"":"none"},type:"vertical"}),(0,d.default)("a",{href:"javascript:;",style:{display:3===t.effective?"":"none"},onClick:function(){return n.delAffiche(t)}},void 0,"\u5220\u9664"))}}],n.searchCond={keyword:"",efficient:"",level:"",affichType:-1,sortField:"publishTime",offset:1,limit:10},n}return(0,f.default)(t,e),t.prototype.componentDidUpdate=function(e){!0===e.saveLoading&&!1===this.props.saveLoading&&(l.default.info("\u4fdd\u5b58\u516c\u544a\u6210\u529f\uff01"),this.handleCloseModal(),this.props.dispatch(v.afficheActions.getAfficheListRequest(this.searchCond)))},t.prototype.componentDidMount=function(){this.props.dispatch(v.afficheActions.resetSubmitAfficheData())},t.prototype.componentDidMount=function(){this.props.dispatch(v.afficheActions.getAfficheListRequest(this.searchCond))},t.prototype.render=function(){var e=this,t=this.props.affichePagination?this.props.affichePagination.toJS():{},a=null!==this.props.afficheList&&void 0!==this.props.afficheList?this.props.afficheList.toJS():[],r=this.props.dicHelper("AFFICHE_TYPE").list();return(0,d.default)(j.PageWrapper,{},void 0,(0,d.default)(u.default,{visible:this.state.modalVisible,width:1e3,title:"edit"===this.state.viewType?"\u4fee\u6539\u516c\u544a":"view"===this.state.viewType?"\u67e5\u770b\u516c\u544a":"\u65b0\u5efa\u516c\u544a",maskClosable:!1,okText:"\u4fdd\u5b58",confirmLoading:this.props.saveLoading,onOk:this.handleSaveAffiche,cancelText:"\u53d6\u6d88",onCancel:this.handleCloseModal},void 0,!0===this.props.getLoading?T:(0,d.default)(b.default,{wrappedComponentRef:function(t){return e.formRef=t},afficheData:"create"===this.state.viewType?{}:this.props.afficheData.toJS(),searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible,affichTypes:r})),(0,d.default)(j.PageHeader,{},void 0,(0,d.default)(s.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u521b\u5efa\u65b0\u516c\u544a"),(0,d.default)(y.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond,affichTypes:r,affichType:parseInt(this.searchCond.affichType)})),(0,d.default)(j.PageBody,{},void 0,(0,d.default)(j.TableWrapper,{},void 0,this.props.loading&&w,!this.props.loading&&(0,d.default)(o.default,{dataSource:a,rowKey:"afficheId",bordered:!0,pagination:!1,columns:this.columns}),(0,d.default)(n.default,{style:{textAlign:"right",marginTop:16},current:t.offset,pageSize:10,total:t.total,onChange:this.onChangePage}))))},t}(m.default.PureComponent);t.default=(0,h.connect)((function(e){return{operateError:(0,x.selectOperateError)(e),opreateLoading:(0,x.selectOperateLoading)(e),affichePagination:(0,x.selectAffichePagination)(e),loading:(0,x.selectAfficheListLoading)(e),afficheList:(0,x.selectAfficheList)(e),afficheData:(0,x.selectAfficheData)(e),dicHelper:(0,C.default)(e),saveLoading:(0,x.selectSaveLoading)(e),getLoading:(0,x.selectGetLoading)(e)}}))(E)},"./src/module/sysManage/messageAffiche/MessageAfficheTabs.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/tabs/index.js"));a("./node_modules/antd/es/tabs/style/index.js");var d=f(a("./node_modules/react/index.js")),l=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(f(a("./node_modules/prop-types/index.js")),a("./src/routes/routeHelper.jsx")),c=a("./src/utils/history.js"),p=f(a("./src/module/sysManage/messageAffiche/component/AfficheConfigPage.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=i.default.TabPane,h=l.default.div.withConfig({displayName:"MessageAfficheTabs__ModelApplyTabsWrapper",componentId:"sc-3syqfy-0"})(["width:100%;position:relative;.page-title{font-size:24px;color:#1f2d3d;letter-spacing:2px;position:absolute;}.modelApply-tabs{.ant-tabs-bar{margin:0 0 10px 0;}.ant-tabs-nav-scroll{display:flex;justify-content:center;}.ant-tabs-tab{font-size:16px;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-active{padding:0 50px;min-height:400px;}}"]),g=l.default.div.withConfig({displayName:"MessageAfficheTabs__TabContent",componentId:"sc-3syqfy-1"})(["background:#fff;min-height:500px;width:100%;padding:10px 10px 10px 10px;"]),v=(0,n.default)("span",{className:"page-title"},void 0,"\u6d88\u606f\u4e2d\u5fc3"),y=(0,n.default)(m,{tab:"\u516c\u544a"},"tab-affiche",(0,n.default)(g,{},void 0,(0,n.default)(g,{},void 0,(0,n.default)(p.default,{})))),b=(0,n.default)(m,{disabled:"disabled",tab:"\u6d88\u606f"},"tab-message",(0,n.default)(g,{},void 0,"111 ")),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.onChange=function(e){"tab-affiche"===e&&(0,c.navigateTo)(u.sysManageUrl.messageAffiche(e.substring(4,e.length))),n.setState({activeTab:e.substring(4,e.length)})},n.state={activeTab:_.get(a.match.params,"action")},n}return(0,r.default)(t,e),t.getDerivedStateFromProps=function(){return null},t.prototype.render=function(){return(0,n.default)(h,{},void 0,v,(0,n.default)(i.default,{onChange:this.onChange,activeKey:"tab-"+this.state.activeTab,className:"modelApply-tabs"},void 0,y,b))},t}(d.default.PureComponent);t.default=x},"./src/module/sysManage/messageAffiche/component/AfficheConfigPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/pagination/index.js")),o=b(a("./node_modules/babel-runtime/helpers/jsx.js")),s=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/pagination/style/index.js");var d=b(a("./node_modules/react/index.js")),l=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/components/index.js"),p=(b(a("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),b(a("./src/module/sysManage/messageAffiche/component/SearchBar.jsx"))),f=a("./node_modules/immutable3/dist/immutable.js"),m=a("./node_modules/react-router-dom/esm/react-router-dom.js"),h=a("./src/redux/reducers/affiche.js"),g=b(a("./src/module/sysManage/messageAffiche/component/Details.jsx")),v=a("./src/redux/selectors/affiche.js"),y=b(a("./src/redux/selectors/enumDic.js"));function b(e){return e&&e.__esModule?e:{default:e}}var x=l.default.div.withConfig({displayName:"AfficheConfigPage__AfficheConfigPageDom",componentId:"j4abrr-0"})(["ul{list-style:none;.gao{background:rgba(251,99,98,0.1);border:1px solid #fb6362;border-radius:2px;}.zhong{background:rgba(248,169,0,0.1);border:1px solid #f8a900;border-radius:2px;}.di{background:#f9fafc;border:1px solid #ccd5e0;border-radius:2px;}li{margin-bottom:1.1%;padding:15px;cursor:pointer;display:flex;.timeSpan{width:15%;float:left;font-weight:600;margin-right:1.4%;font-size:14px;color:#475669;letter-spacing:0;}.valSpan{word-wrap:break-word;width:84%;font-size:14px;color:#475669;letter-spacing:0;}}}"]),C=(0,o.default)(c.LoadingIndicator,{}),j=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.handleChangePage=function(e,t){n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.fetchData=function(e){n.props.dispatch(h.afficheActions.getAfficheListUserRequest(e))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.onClickQuery=function(e){n.setState({data:e,modalVisible:!0})},n.callVisible=function(){n.setState({modalVisible:!1})},n.state={data:null,modalVisible:!1},n.searchCond={userId:"LOGIN_USER",keyword:"",efficient:"",level:"",affichType:n.props.onlyReleaseLog?2:-1,sortField:"publishTime",offset:1,limit:10},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.render=function(){var e=this,t=this.props.loading,a=this.props.dicHelper("AFFICHE_TYPE").list(),s=0!==this.props.afficheListByUser.size?this.props.afficheListByUser.toJS():[],r=this.props.afficheListPagination.toJS();return(0,o.default)(d.default.Fragment,{},void 0,(0,o.default)(x,{},void 0,(0,o.default)(c.ModalView,{closable:!1,viewType:"view",modalTitle:null!==this.state.data?this.state.data.afficheTitle:"",width:"60%",callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,o.default)(g.default,{data:this.state.data})}),(0,o.default)(p.default,{onChange:this.changeSearchCond,affichType:parseInt(this.searchCond.affichType),sortField:this.searchCond.sortField,affichTypes:a||[],onlyReleaseLog:this.props.onlyReleaseLog}),t&&C,!t&&(0,o.default)("ul",{style:{paddingLeft:0}},void 0,s.map((function(t){return(0,o.default)("li",{onClick:function(){return e.onClickQuery(t)},className:1===t.afficheLevel?"di":2===t.afficheLevel?"zhong":"gao"},t.afficheId+_.uniqueId(),(0,o.default)("div",{className:"timeSpan"},void 0,t.publishTime),(0,o.default)("div",{className:"valSpan"},void 0,t.afficheTitle))})))),(0,o.default)("div",{style:{right:0,bottom:30,margin:"1.5%",textAlign:"right"}},void 0,(0,o.default)(n.default,{current:r.offset||0,pageSize:10,total:r.total||0,onChange:this.handleChangePage})))},t}(d.default.Component);j.defaultProps={onlyReleaseLog:!1};t.default=(0,m.withRouter)((0,u.connect)((function(e){var t=(0,v.selectAfficheListByUser)(e);return{loading:(0,v.selectAfficheListByUserLoading)(e),dicHelper:(0,y.default)(e),afficheListByUser:f.Map.isMap(t)?t.get("data"):(0,f.List)(),afficheListPagination:f.Map.isMap(t)?t.get("pagination"):(0,f.Map)()}}))(j))},"./src/module/sysManage/messageAffiche/component/CreateAfficheConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/col/index.js")),o=b(a("./node_modules/antd/es/row/index.js")),s=b(a("./node_modules/babel-runtime/helpers/extends.js")),r=b(a("./node_modules/antd/es/input/index.js")),i=b(a("./node_modules/babel-runtime/helpers/jsx.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/antd/es/date-picker/index.js")),p=b(a("./node_modules/antd/es/select/index.js")),f="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\messageAffiche\\component\\CreateAfficheConfig.jsx";a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/date-picker/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=b(a("./node_modules/react/index.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=b(a("./node_modules/react-quill/lib/index.js"));a("./node_modules/react-quill/dist/quill.snow.css");var _=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),y=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/moment/moment.js")));function b(e){return e&&e.__esModule?e:{default:e}}y.default.locale("zh-cn");var x=p.default.Option,C=g.Form.Item,j=c.default.RangePicker,S=(0,_.default)(g.Form).withConfig({displayName:"CreateAfficheConfig__FormStyle",componentId:"sc-1grp7aw-0"})(["overflow:hidden;.rich-editor{line-height:normal;.ql-editor{min-height:18em;}.ql-bubble .ql-editor{border:1px solid #ccc;border-radius:0.5em;}.ql-snow.ql-toolbar{display:block;background:#eaecec;border-top-left-radius:0.5em;border-top-right-radius:0.5em;}.ql-container{border-bottom-left-radius:0.5em;border-bottom-right-radius:0.5em;}}"]),I={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{color:[]},{background:[]}],[{align:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["link","image"]],clipboard:{matchVisual:!1}},T={labelCol:{span:4},wrapperCol:{span:20}},w=(0,i.default)(x,{value:3},void 0,"\u9ad8"),E=(0,i.default)(x,{value:2},void 0,"\u4e2d"),D=(0,i.default)(x,{value:1},void 0,"\u4f4e"),M=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleChangeContent=function(e){n.props.form.setFieldsValue({afficheContent:e})},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.afficheData,a=void 0===t?{}:t,d=e.affichTypes,l=void 0===d?[]:d,u=this.props.form,c=u.getFieldDecorator,g=u.getFieldValue,_=a.afficheTitle?(0,i.default)(h.CloseCircleOutlined,{style:{color:"#A2B0C4",cursor:"pointer"},onClick:this.emitEmpty}):null,b="create"!==this.props.viewType&&a.effectTime&&a.expirationTime?[(0,y.default)(a.effectTime,"YYYY-MM-DD HH:mm:ss"),(0,y.default)(a.expirationTime,"YYYY-MM-DD HH:mm:ss")]:null;return(0,i.default)(S,{},void 0,m.default.createElement(C,(0,s.default)({},T,{label:"\u516c\u544a\u6807\u9898",help:"",__source:{fileName:f,lineNumber:80}}),c("afficheTitle",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u516c\u544a\u6807\u9898"},{min:0,max:50,message:"\u516c\u544a\u6807\u9898\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26"}],initialValue:a.afficheTitle||""})((0,i.default)(r.default,{disabled:"view"===this.props.viewType,suffix:"view"!==this.props.viewType?_:"",placeholder:"\u8bf7\u8f93\u5165\u516c\u544a\u6807\u9898"}))),(0,i.default)(o.default,{},void 0,(0,i.default)(n.default,{span:12},void 0,(0,i.default)(C,{labelCol:{span:8},wrapperCol:{span:10},label:"\u516c\u544a\u7c7b\u522b",help:""},void 0,c("afficheType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u516c\u544a\u7c7b\u522b"}],initialValue:a.afficheType||1})((0,i.default)(p.default,{disabled:"view"===this.props.viewType,getPopupContainer:function(e){return e.parentNode},style:{width:200},placeholder:"\u8bf7\u9009\u516c\u544a\u7c7b\u522b"},void 0,l.map((function(e){return(0,i.default)(x,{title:e.txt,value:e.value&&parseInt(e.value)},e.code,e.txt)})))))),(0,i.default)(n.default,{span:12},void 0,(0,i.default)(C,{labelCol:{span:8},wrapperCol:{span:14},label:"\u516c\u544a\u7ea7\u522b",help:""},void 0,c("afficheLevel",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u516c\u544a\u91cd\u8981\u7ea7\u522b"}],initialValue:a.afficheLevel||1})((0,i.default)(p.default,{disabled:"view"===this.props.viewType,getPopupContainer:function(e){return e.parentNode},style:{width:200},placeholder:"\u8bf7\u9009\u516c\u544a\u7ea7\u522b"},void 0,w,E,D))))),m.default.createElement(C,(0,s.default)({},T,{label:"\u6709\u6548\u65f6\u95f4\u8303\u56f4",__source:{fileName:f,lineNumber:144}}),c("afficheTime",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u516c\u544a\u53d1\u5e03\u6709\u6548\u65f6\u95f4\u8303\u56f4"}],initialValue:b})((0,i.default)(j,{placeholder:["\u751f\u6548\u65f6\u95f4","\u5931\u6548\u65f6\u95f4"],disabled:"view"===this.props.viewType,format:"YYYY-MM-DD HH:mm:ss",showTime:{hideDisabledOptions:!0,defaultValue:[(0,y.default)("00:00:00","HH:mm:ss"),(0,y.default)("23:59:59","HH:mm:ss")]}}))),m.default.createElement(C,(0,s.default)({},T,{label:"\u516c\u544a\u5185\u5bb9",help:"",__source:{fileName:f,lineNumber:192}}),c("afficheContent",{rules:[{required:!1,message:"\u8bf7\u8f93\u5165\u516c\u544a\u5185\u5bb9"}],initialValue:a.afficheContent})((0,i.default)(r.default,{placeholder:"\u8bf7\u8f93\u5165\u6807\u9898\u516c\u544a",style:{display:"none"}})),"view"===this.props.viewType?(0,i.default)("div",{style:{border:"1px solid #d9d9d9",borderRadius:4},dangerouslySetInnerHTML:{__html:a.afficheContent}}):(0,i.default)(v.default,{className:"rich-editor",theme:"snow",modules:I,placeholder:"\u8bf7\u8f93\u5165\u516c\u544a\u5185\u5bb9",value:g("afficheContent")||"",onChange:this.handleChangeContent})))},t}(m.default.Component);t.default=g.Form.create()(M)},"./src/module/sysManage/messageAffiche/component/Details.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/helpers/jsx.js")),o=d(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=d(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=d(a("./node_modules/babel-runtime/helpers/inherits.js")),i=d(a("./node_modules/react/index.js"));d(a("./node_modules/prop-types/index.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=d(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"Details__DetailsDom",componentId:"sc-14wta3g-0"})(["h1{text-align:center;}section{display:flex;flex-direction:row;justify-content:space-between;padding:10px;font-size:14px;}article{margin-top:10px 0;padding:20px;}"]),u=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(l,{className:"search-bar"},void 0,(0,n.default)("h1",{},void 0,this.props.data.afficheTitle),(0,n.default)("section",{},void 0,(0,n.default)("span",{},void 0,"\u53d1\u5e03\u4eba\uff1a",this.props.data.publisher),(0,n.default)("span",{},void 0,"\u53d1\u5e03\u65f6\u95f4\uff1a",this.props.data.publishTime)),(0,n.default)("article",{style:{width:"100%",textAlign:"left"},dangerouslySetInnerHTML:{__html:this.props.data.afficheContent}}))},t}(i.default.Component);t.default=u},"./src/module/sysManage/messageAffiche/component/ManageSearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h=c.default.div.withConfig({displayName:"ManageSearchBar__SearchBarWrapper",componentId:"sc-1rr2yc5-0"})(["display:flex;align-items:center;.sort-cond{margin-left:10px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),g={width:"120px"},v=(0,n.default)(f,{value:-1},"-1","\u5168\u90e8-\u5206\u7c7b"),y=(0,n.default)(f,{value:"afficheLevel"},void 0,"\u6309\u91cd\u8981\u6392\u5e8f"),b=(0,n.default)(f,{value:"publishTime"},void 0,"\u6309\u53d1\u5e03\u65f6\u95f4\u6392\u5e8f"),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("keyword",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={},n.changeSortField=n.changeSelect("sortField"),n.changeAffichType=n.changeSelect("affichType"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(h,{className:"search-bar"},void 0,(0,n.default)("div",{className:"search-div"},void 0,(0,n.default)(d.default,{placeholder:"\u516c\u544a\u7c7b\u522b",style:g,defaultValue:this.props.affichType,onChange:this.changeAffichType},void 0,v,this.props.affichTypes.map((function(e){return(0,n.default)(f,{title:e.txt,value:e.value&&parseInt(e.value)},e.code,e.txt+"-\u5206\u7c7b")}))),(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:g,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,y,b),(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(x)},"./src/module/sysManage/messageAffiche/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/input/index.js")),d=c(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=c(a("./node_modules/react/index.js")),u=(c(a("./node_modules/prop-types/index.js")),a("./src/styles/GlobalStyle.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.Option,f=i.default.Search,m={width:"120px"},h=(0,n.default)(p,{value:-1},"-1","\u5168\u90e8-\u5206\u7c7b"),g=(0,n.default)(p,{value:"publishTime"},void 0,"\u6309\u53d1\u5e03\u65f6\u95f4\u6392\u5e8f"),v=(0,n.default)(p,{value:"afficheLevel"},void 0,"\u6309\u91cd\u8981\u7ea7\u522b\u6392\u5e8f"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("keyword",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={},n.changeSortField=n.changeSelect("sortField"),n.changeAffichType=n.changeSelect("affichType"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this,t=this.props.onlyReleaseLog;return(0,n.default)(u.SearchBarWrapper,{className:"search-bar"},void 0,!t&&(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{placeholder:"\u516c\u544a\u7c7b\u522b",style:m,defaultValue:this.props.affichType,onChange:this.changeAffichType},void 0,h,this.props.affichTypes.map((function(e){return(0,n.default)(p,{title:e.txt,value:e.value&&parseInt(e.value)},e.code,e.txt+"-\u5206\u7c7b")})))),!t&&(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,style:m,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,g,v)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(f,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=y},"./src/module/sysManage/netDiskManager/NetDiskManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/divider/index.js")),o=b(a("./node_modules/antd/es/table/index.js")),s=b(a("./node_modules/antd/es/button/index.js")),r=b(a("./node_modules/antd/es/tooltip/index.js")),i=b(a("./node_modules/babel-runtime/helpers/jsx.js")),d=b(a("./node_modules/antd/es/message/index.js")),l=b(a("./node_modules/antd/es/modal/index.js")),u=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=b(a("./node_modules/react/index.js")),m=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(b(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),g=b(a("./src/redux/services/sysManager/netDiskManager.js")),v=b(a("./src/module/sysManage/netDiskManager/component/CreateNetDiskConfig.jsx")),y=b(a("./src/module/sysManage/netDiskManager/component/SearchBar.jsx"));function b(e){return e&&e.__esModule?e:{default:e}}var x=m.default.div.withConfig({displayName:"NetDiskManagePage__TabsDiv",componentId:"sc-10gmv6d-0"})(["width:100%;position:relative;background-color:#ffff;padding:20px 50px 0 50px;margin-bottom:20px;"]),C=m.default.div.withConfig({displayName:"NetDiskManagePage__PageWrapper",componentId:"sc-10gmv6d-1"})(["display:flex;flex-direction:column;flex:1 1 auto;.fXrMUz .anticon{cursor:pointer;margin-left:0px;}"]),j=m.default.div.withConfig({displayName:"NetDiskManagePage__PageHeader",componentId:"sc-10gmv6d-2"})(["position:relative;height:52px;width:100%;z-index:20;h1{margin:0;font-size:24px;}.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}.saveButton{position:absolute;top:8px;}.deleteButton{position:absolute;margin-left:118px;width:100px;top:8px;}"]),S=m.default.div.withConfig({displayName:"NetDiskManagePage__PageBody",componentId:"sc-10gmv6d-3"})(["display:flex;min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;"]),I=m.default.div.withConfig({displayName:"NetDiskManagePage__ModelsBox",componentId:"sc-10gmv6d-4"})(["margin-top:5px;flex:1 1 auto;.ant-table-bordered .ant-table-thead > tr > th{border-right:1px solid #e8e8e8;background:#e5e9f2;padding:10px 10px;}.ant-table-thead{th{background:#e0e6ed;}}.ant-table-thead > tr:first-child > th:first-child{border-top-left-radius:4px;}.ant-table table{border-collapse:none;}.ant-table-tbody > tr > td{padding:10px 10px;word-break:break-word;}.anticon{cursor:pointer;margin-left:10px;}.editable-cell-icon{float:right;padding-top:3px;}"]),T=(0,i.default)("span",{},void 0,"\u5e8f\u53f7"),w=(0,i.default)(n.default,{type:"vertical"}),E=(0,i.default)(h.LoadingIndicator,{position:"relative"}),D=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.fetchNetDiskList=function(){n.setState({loading:!0}),g.default.getNetDiskList(n.searchCond).then((function(e){n.setState({loading:!1}),e&&n.setState({netDiskList:_.isArray(e.data)?e.data:[]})})).catch((function(){n.setState({loading:!1})}))},n.fetchNetDiskInfo=function(e){g.default.getNetDiskInfo(e).then((function(e){n.setState({loading:!1}),e&&n.setState({optNetDiskInfo:e.data||{}})})).catch((function(){n.setState({loading:!1})}))},n.delNetDisk=function(e){l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.name+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t){g.default.deleteNetDisk(e.id).then((function(a){1===a.code?(d.default.success("\u5220\u9664[ "+e.name+" ]\u6210\u529f!"),n.fetchNetDiskList(),t()):d.default.error("\u5220\u9664[ "+e.name+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+a.message)})).catch((function(t){d.default.error("\u5220\u9664[ "+e.name+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+t.message)}))}))}})},n.batchDeleteNetDisk=function(){l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u9009\u4e2d\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(e){g.default.batchDeleteNetDisk(n.state.selectedRowKeys).then((function(t){1===t.code?(d.default.success("\u5220\u9664\u6210\u529f!"),n.fetchNetDiskList(),e()):d.default.error("\u5220\u9664\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+t.message)})).catch((function(){d.default.error("\u5220\u9664\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+response.message)}))}))}})},n.editNetDisk=function(e,t){n.setState({viewType:t,modalVisible:!0,optNetDiskInfo:{}}),n.fetchNetDiskInfo(e.id)},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.searchCond.offset=1,n.searchCond.limit=10,n.fetchNetDiskList()},n.openNetDiskConfig=function(e){n.setState({modalVisible:!0,viewType:e,optNetDiskInfo:{}})},n.callVisible=function(e){if(e)return d.default.success("edit"!==n.state.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),n.setState({modalVisible:!1,viewType:""}),void n.fetchNetDiskList();if("view"===n.state.viewType)n.setState({modalVisible:!1,viewType:""});else{var t=n;l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({modalVisible:!1,viewType:""})}})}},n.onSelectChange=function(e){n.setState({selectedRowKeys:e})},n.submitModalOk=function(){n.createNetDiskConfig.saveNetDiskInfo()},n.state={netDiskList:[],selectedRowKeys:[],optNetDiskInfo:{},modalVisible:!1,loading:!1,viewType:"",confirmLoading:!1},n.columns=[{title:T,width:"8%",dataIndex:"id",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"\u540d\u79f0",dataIndex:"name",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"url",dataIndex:"url",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"token",dataIndex:"token",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u7528\u6237",dataIndex:"createUser",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5f52\u5c5e\u79df\u6237",dataIndex:"tenant",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:"15%",render:function(e,t){return(0,i.default)("span",{},void 0,"999"!==t.ftpId?(0,i.default)("div",{},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.editNetDisk(t,"edit")}},void 0,"\u4fee\u6539"),w,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.delNetDisk(t)}},void 0,"\u5220\u9664")):"\u65e0\u64cd\u4f5c")}}],n.searchCond={name:"",offset:1,limit:10},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.fetchNetDiskList()},t.prototype.render=function(){var e=this,t=this.state,a=t.netDiskList,n=t.selectedRowKeys,r={selectedRowKeys:n,onChange:this.onSelectChange},d=n.length>0;return(0,i.default)(C,{},void 0,(0,i.default)(x,{},void 0,(0,i.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539NetDisk\u914d\u7f6e":"\u65b0\u5efaNetDisk\u914d\u7f6e",onCancelType:!1,width:1200,okText:"\u786e\u5b9a\u63d0\u4ea4",submitModalOk:this.submitModalOk,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,i.default)(v.default,{onRef:function(t){e.createNetDiskConfig=t},netDiskInfo:this.state.optNetDiskInfo,viewType:this.state.viewType,callVisible:this.callVisible})},this.state.viewType),(0,i.default)(j,{},void 0,(0,i.default)(s.default,{onClick:function(){e.openNetDiskConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589eNetDisk"),(0,i.default)(s.default,{onClick:this.batchDeleteNetDisk,disabled:!d,className:"deleteButton",type:"primary"},void 0,"\u6279\u91cf\u5220\u9664"),(0,i.default)(y.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,i.default)(S,{},void 0,(0,i.default)(I,{},void 0,this.state.loading&&E,!this.state.loading&&(0,i.default)(o.default,{dataSource:a,rowKey:"id",bordered:!0,pagination:!0,columns:this.columns,rowSelection:r})))))},t}(f.default.PureComponent);t.default=D},"./src/module/sysManage/netDiskManager/component/CreateNetDiskConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateNetDiskConfigPage=void 0;var n=y(a("./node_modules/antd/es/input/index.js")),o=y(a("./node_modules/antd/es/col/index.js")),s=y(a("./node_modules/antd/es/row/index.js")),r=y(a("./node_modules/antd/es/modal/index.js")),i=y(a("./node_modules/babel-runtime/helpers/jsx.js")),d=y(a("./node_modules/antd/es/message/index.js")),l=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=y(a("./node_modules/react/index.js")),f=y(a("./node_modules/lodash/lodash.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=(y(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),_=y(a("./src/redux/services/sysManager/netDiskManager.js"));function y(e){return e&&e.__esModule?e:{default:e}}var b=h.Form.Item,x=t.CreateNetDiskConfigPage=g.default.div.withConfig({displayName:"CreateNetDiskConfig__CreateNetDiskConfigPage",componentId:"sc-1ppt27o-0"})(["overflow-x:hidden;height:300px;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),C={width:"100%"},j=(0,i.default)("span",{},void 0,"url :"),S=(0,i.default)("span",{},void 0,"token :"),I=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.closeModal=function(){n.props.callVisible()},n.getNameBlur=function(e,t){var a,o=f.default.assign(n.state.netDiskInfo,((a={})[t]=e,a));n.setState({newNetDiskInfo:o})},n.saveNetDiskInfo=function(){n.props.form.validateFields((function(e){e||n.setState({modalVisible:!0})}))},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+("edit"===n.props.viewType?"\u4fdd\u5b58":"\u63d0\u4ea4")+"\u4e2d\u8bf7\u7a0d\u7b49.........."});var e="edit"===n.props.viewType?"updateNetDiskInfo":"saveNetDiskInfo";_.default[e](n.state.netDiskInfo).then((function(e){"1"===e.code?(d.default.success("\u4fdd\u5b58[ "+n.state.netDiskInfo.name+" ]\u6210\u529f!"),n.props.callVisible(isNeedUpdateList)):d.default.error("\u4fdd\u5b58[ "+n.state.netDiskInfo.name+" ]\u5931\u8d25!"),n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:""})})).catch((function(){d.default.error("\u4fdd\u5b58[ "+n.state.netDiskInfo.name+" ]\u5931\u8d25!"),n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:""})}))},n.state={netDiskInfo:n.props.netDiskInfo,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.getDerivedStateFromProps=function(e,t){return f.default.isEqual(e.netDiskInfo,t.netDiskInfo)?null:{netDiskInfo:e.netDiskInfo}},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state.name?(0,i.default)(m.CloseCircleOutlined,{style:{color:"#A2B0C4",cursor:"pointer"},onClick:this.emitEmptyName}):null;return(0,i.default)(x,{},void 0,(0,i.default)(r.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:function(){e.setState({modalVisible:!1})}},void 0,(0,i.default)("p",{},void 0,this.state.modalTxt)),(0,i.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:C},void 0,(0,i.default)(h.Form,{layout:"inline"},void 0,(0,i.default)(s.default,{},void 0,(0,i.default)(o.default,{span:10},void 0,(0,i.default)(b,{help:""},void 0,(0,i.default)("span",{style:{marginLeft:"-10px"}},void 0,"\u540d\u79f0 :"),t("name",{rules:[{required:!0,min:0,max:30}],initialValue:this.state.netDiskInfo.name})(p.default.createElement(n.default,{disabled:"view"===this.props.viewType,style:{marginLeft:"20px",width:"350px"},suffix:"view"!==this.props.viewType?a:"",ref:function(t){return e.name=t},placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",onBlur:function(t){return e.getNameBlur(t.target.value,"name")},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\netDiskManager\\component\\CreateNetDiskConfig.jsx",lineNumber:132}})))),(0,i.default)(o.default,{span:12},void 0,(0,i.default)(b,{help:""},void 0,(0,i.default)("span",{style:{marginLeft:"-16px"}},void 0,"\u5f52\u5c5e\u79df\u6237 :"),t("tenant ",{rules:[{required:!0,min:0,max:30}],initialValue:this.state.netDiskInfo.tenant})((0,i.default)(n.default,{disabled:"view"===this.props.viewType,style:{marginLeft:"20px",width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u5f52\u5c5e\u79df\u6237",onBlur:function(t){return e.getNameBlur(t.target.value,"tenant")}}))))),(0,i.default)(s.default,{style:{marginTop:15}},void 0,(0,i.default)(o.default,{span:10},void 0,(0,i.default)(b,{help:""},void 0,j,t("url",{rules:[{required:!0,min:0,max:30}],initialValue:this.state.netDiskInfo.url})((0,i.default)(n.default,{disabled:"view"===this.props.viewType,style:{marginLeft:"20px",width:"350px"},placeholder:"\u8bf7\u8f93\u5165url",onBlur:function(t){return e.getNameBlur(t.target.value,"url")}})))),(0,i.default)(o.default,{span:12},void 0,(0,i.default)(b,{help:""},void 0,S,t("token ",{rules:[{required:!0,min:0,max:30}],initialValue:this.state.netDiskInfo.token})((0,i.default)(n.default,{disabled:"view"===this.props.viewType,style:{marginLeft:"20px",width:"350px"},placeholder:"\u8bf7\u8f93\u5165token",onBlur:function(t){return e.getNameBlur(t.target.value,"token")}}))))))))},t}(p.default.PureComponent);t.default=h.Form.create()(I)},"./src/module/sysManage/netDiskManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/helpers/jsx.js")),o=u(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=u(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=u(a("./node_modules/babel-runtime/helpers/inherits.js")),i=u(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=u(a("./node_modules/react/index.js")),l=(u(a("./node_modules/prop-types/index.js")),u(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")));function u(e){return e&&e.__esModule?e:{default:e}}var c=i.default.Search,p=l.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-1k7f17o-0"})(["display:flex;align-items:center;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("name",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(p,{className:"search-bar"},void 0,(0,n.default)("div",{className:"search-div"},void 0,(0,n.default)(c,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(d.default.Component);t.default=f},"./src/module/sysManage/obsManager/ObsManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/divider/index.js")),o=x(a("./node_modules/antd/es/table/index.js")),s=x(a("./node_modules/antd/es/button/index.js")),r=x(a("./node_modules/antd/es/tooltip/index.js")),i=x(a("./node_modules/babel-runtime/helpers/jsx.js")),d=x(a("./node_modules/antd/es/modal/index.js")),l=x(a("./node_modules/antd/es/message/index.js")),u=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var f=x(a("./node_modules/react/index.js")),m=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./src/components/index.js"),g=x(a("./src/module/sysManage/obsManager/component/CreateObsConfig.jsx")),v=x(a("./src/redux/services/sysManager/obsManager.js")),y=x(a("./src/module/sysManage/obsManager/component/SearchBar.jsx")),b=a("./src/styles/GlobalStyle.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=(0,i.default)("span",{},void 0,"\u5e8f\u53f7"),j=(0,i.default)(n.default,{type:"vertical"}),S=(0,i.default)("div",{}),I=(0,i.default)(h.LoadingIndicator,{position:"relative"}),T=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.fetchData=function(e){n.setState({loading:!0}),v.default.getObsList(e||n.searchCond).then((function(e){n.setState({obsList:e.data&&e.data.list?e.data.list:[],obsPagination:e.data?{total:e.data.total,limit:e.data.pageSize,offset:e.data.pageNum}:{total:0,limit:0,offset:0},loading:!1})})).catch((function(e){n.setState({obsList:[],loading:!1}),l.default.error(e.message)}))},n.editObsBases=function(e,t){v.default.getObsInfo(e.dbId).then((function(e){n.setState({obsInfo:e.data,viewType:t,modalVisible:!0})}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.delObsBases=function(e){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.dbName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){v.default.deleteObs(e.dbId).then((function(){n.fetchData(n.searchCond),l.default.success("\u5220\u9664\u6210\u529f\uff01"),t()})).catch((function(e){a(),l.default.error(e.message)}))}))}})},n.openKpiConfig=function(e){n.setState({modalVisible:!0,viewType:e})},n.callVisible=function(){n.setState({modalVisible:!1,viewType:""})},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.state={modalVisible:!1,viewType:"",currentPage:1,confirmLoading:!1,loading:!1,obsList:[],obsPagination:{total:0,limit:0,offset:0},obsInfo:{}},n.columns=[{title:C,width:"8%",dataIndex:"id",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"\u7a7a\u95f4\u6876\u540d",dataIndex:"dbName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u63a5\u5165\u8bc1\u4e66",dataIndex:"dbUsername",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5b89\u5168\u8bc1\u4e66",dataIndex:"dbPassword",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7c7b\u578b",dataIndex:"dbType",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6876\u540d\u79f0",dataIndex:"dbDsSchema",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u94fe\u63a5\u53c2\u6570",dataIndex:"dbParam",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:"18%",render:function(e,t){return(0,i.default)("span",{},void 0,"999"!==t.id?(0,i.default)("div",{},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.editObsBases(t,"edit")}},void 0,"\u4fee\u6539"),j,(0,i.default)("a",{href:"javascript:;",onClick:function(){return n.delObsBases(t)}},void 0,"\u5220\u9664")):"\u65e0\u64cd\u4f5c")}}],n.searchCond={dbName:"",offset:1,limit:10},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.render=function(){var e=this,t=this.state,a=t.loading,n=t.obsList,r=t.obsInfo,d=t.obsPagination;return(0,i.default)(b.PageWrapper,{},void 0,(0,i.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539\u5206\u5e03\u5f0f\u5b58\u50a8":"view"===this.state.viewType?"\u67e5\u770b\u5206\u5e03\u5f0f\u5b58\u50a8":"\u65b0\u589e\u5206\u5e03\u5f0f\u5b58\u50a8",onCancelType:!1,width:1200,callVisible:this.callVisible,modalVisible:this.state.modalVisible,destroyOnClose:!0,comp:"create"===this.state.viewType?(0,i.default)(g.default,{searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):r.dbName?(0,i.default)(g.default,{obsInfo:r,searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):S},this.state.viewType),(0,i.default)(b.PageHeader,{},void 0,(0,i.default)(s.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u5206\u5e03\u5f0f\u5b58\u50a8"),(0,i.default)(y.default,{onChange:this.changeSearchCond})),(0,i.default)(b.PageBody,{},void 0,(0,i.default)(b.TableWrapper,{},void 0,a&&I,!a&&(0,i.default)(o.default,{dataSource:n,rowKey:"id",bordered:!0,pagination:!1,columns:this.columns}),(0,i.default)(h.TabPagination,{currentPage:d.offset,pageSize:10,total:d.total,onChange:this.onChangePage}))))},t}(f.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(T)},"./src/module/sysManage/obsManager/component/CreateObsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.CreateRolesConfigPage=void 0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/antd/es/col/index.js")),s=I(a("./node_modules/antd/es/row/index.js")),r=I(a("./node_modules/antd/es/modal/index.js")),i=I(a("./node_modules/babel-runtime/helpers/jsx.js")),d=I(a("./node_modules/babel-runtime/regenerator/index.js")),l=I(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=I(a("./node_modules/antd/es/message/index.js")),c=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=I(a("./node_modules/babel-runtime/helpers/inherits.js")),m=I(a("./node_modules/antd/es/input/index.js")),h=I(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var g=I(a("./node_modules/react/index.js")),v=a("./node_modules/react-redux/es/index.js"),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),x=(I(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),C=I(a("./src/redux/services/sysManager/obsManager.js")),j=a("./src/redux/selectors/checkName.js"),S=a("./src/module/sysManage/obsManager/modelEnums.js");function I(e){return e&&e.__esModule?e:{default:e}}var T=y.Form.Item,w=h.default.Option,E=m.default.TextArea,D=t.CreateRolesConfigPage=b.default.div.withConfig({displayName:"CreateObsConfig__CreateRolesConfigPage",componentId:"sc-1w36bwq-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}.ant-form-inline .ant-form-item-with-help{margin-bottom:0px;}"]),M=t.ButtonDom=b.default.div.withConfig({displayName:"CreateObsConfig__ButtonDom",componentId:"sc-1w36bwq-1"})(["height:32px;width:calc(100% + 32px);margin-left:-16px;text-align:right;border-top:1px solid #e8e8e8;padding:10px 20px;"]),k={width:"100%",overflow:"auto",height:290},P=(0,i.default)(w,{value:""},void 0,"\u9009\u62e9\u7c7b\u578b"),L=function(e){function t(a){var n=this;(0,c.default)(this,t);var o=(0,p.default)(this,e.call(this,a));return o.formatObsData=function(e){return e.dbPassword="null",e},o.closeModal=function(e){o.props.closeKpiConfig(e),o.props.fetchData()},o.testConnectObs=function(){o.setState({verifyDsSchema:!1},(function(){o.props.form.validateFields(["dbDsSchema"],{force:!1}),o.props.form.validateFieldsAndScroll((function(e){null===e?(o.obsInfo.dbPassword="null"===o.obsInfo.dbPassword?null:o.obsInfo.dbPassword,o.setState({testConfirmLoading:!0}),C.default.testConnectObs(o.obsInfo).then((function(e){e.success?u.default.success("\u6d4b\u8bd5\u6210\u529f\uff01"):u.default.error("\u6d4b\u8bd5\u5931\u8d25\uff01"),o.setState({testConfirmLoading:!1})})).catch((function(e){o.setState({testConfirmLoading:!1}),u.default.error(e.message)}))):u.default.info("\u6d4b\u8bd5\u8fde\u63a5\u524d\uff0c\u8bf7\u5b8c\u5584\u586b\u5199\u6570\u636e!")}))}))},o.saveKpi=function(){o.setState({verifyDsSchema:!0},(function(){o.props.form.validateFields(["dbDsSchema"],{force:!0}),o.props.form.validateFieldsAndScroll((function(e){null===e&&o.setState({modalVisible:!0})}))}))},o.submitModalCancel=function(){o.setState({modalVisible:!1})},o.submitModalOk=function(){o.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+o.props.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),o.obsInfo.dbPassword="null"===o.obsInfo.dbPassword?null:o.obsInfo.dbPassword,C.default.editPostObs(o.obsInfo,o.props.viewType).then((function(){u.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),o.setState({modalVisible:!1,confirmLoading:!1}),o.closeModal("type")})).catch((function(e){o.setState({modalVisible:!1,confirmLoading:!1}),u.default.error(e.message)}))},o.getNameBlur=function(e,t){o.obsInfo[t]=e},o.handleCheckNameValidate=function(){var e=(0,l.default)(d.default.mark((function e(t,a,s){var r;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.obsInfo.dbName){e.next=3;break}return s(),e.abrupt("return");case 3:return e.prev=3,e.next=6,C.default.checkNameRepeat({dbId:o.obsInfo.dbId,dbName:a});case 6:if(r=e.sent,!_.get(r,"data.isRepeat")){e.next=9;break}throw Error("\u540d\u79f0\u91cd\u590d\uff01");case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),s(e.t0);case 14:s();case 15:case"end":return e.stop()}}),e,n,[[3,11]])})));return function(t,a,n){return e.apply(this,arguments)}}(),o.updateName=function(e){o.obsInfo.dbName=e,o.props.form.setFieldsValue({dbName:e})},o.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,testConfirmLoading:!1,modalVisible:!1,verifyDsSchema:!0},o.checkNameRef=g.default.createRef(),o.obsInfo="create"!==o.props.viewType?o.formatObsData(o.props.obsInfo):{},o}return(0,f.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,i.default)(D,{},void 0,(0,i.default)(r.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,i.default)("p",{},void 0,this.state.modalTxt)),(0,i.default)(x.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:k},void 0,(0,i.default)(y.Form,{layout:"inline"},void 0,(0,i.default)(s.default,{},void 0,(0,i.default)(o.default,{span:12},void 0,(0,i.default)(T,{label:"\u4e1a\u52a1\u540d\u79f0"},void 0,t("dbName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4e1a\u52a1\u540d\u79f0"},{max:30,message:"\u4e1a\u52a1\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"},{validator:this.handleCheckNameValidate}],initialValue:this.obsInfo.dbName,validateTrigger:"onBlur"})((0,i.default)(m.default,{style:{width:"300px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",onChange:function(t){return e.getNameBlur(t.target.value,"dbName")}})))),(0,i.default)(o.default,{span:11},void 0,(0,i.default)(T,{label:"\u670d\u52a1\u7c7b\u578b"},void 0,t("dbType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u670d\u52a1\u7c7b\u578b"}],initialValue:this.obsInfo.dbType})((0,i.default)(h.default,{style:{width:300},onChange:function(t){return e.getNameBlur(t,"dbType")},placeholder:"\u9009\u62e9\u7c7b\u578b"},void 0,P,S.OBS_TYPE.getValueAndDescList().map((function(e,t){return(0,i.default)(w,{value:e.code},t,e.desc)}))))))),(0,i.default)(s.default,{style:{marginTop:15}},void 0,(0,i.default)(o.default,{span:12},void 0,(0,i.default)(T,{label:"\u63a5\u5165\u8bc1\u4e66"},void 0,t("dbUsername ",{rules:[{required:!0,message:"\u63a5\u5165\u8bc1\u4e66\u4e0d\u80fd\u4e3a\u7a7a"},{max:100,message:"\u63a5\u5165\u8bc1\u4e66\u4e0d\u5f97\u8d85\u8fc7100\u4e2a\u5b57\u7b26"}],initialValue:this.obsInfo.dbUsername})((0,i.default)(m.default,{disabled:"view"===this.props.viewType,style:{width:"300px"},placeholder:"\u8bf7\u8f93\u5165\u63a5\u5165\u8bc1\u4e66",onBlur:function(t){return e.getNameBlur(t.target.value,"dbUsername")}})))),(0,i.default)(o.default,{span:11},void 0,(0,i.default)(T,{label:"\u5b89\u5168\u8bc1\u4e66"},void 0,t("dbPassword",{rules:[{required:!0,message:"\u5b89\u5168\u8bc1\u4e66\u4e0d\u80fd\u4e3a\u7a7a"},{max:100,message:"\u5b89\u5168\u8bc1\u4e66\u4e0d\u5f97\u8d85\u8fc7100\u4e2a\u5b57\u7b26"}],initialValue:this.obsInfo.dbPassword})((0,i.default)(m.default,{type:"password",autoComplete:"new-password",disabled:"view"===this.props.viewType,style:{width:"300px"},placeholder:"\u8bf7\u8f93\u5165\u5b89\u5168\u8bc1\u4e66",onBlur:function(t){return e.getNameBlur(t.target.value,"dbPassword")}}))))),(0,i.default)(s.default,{style:{marginTop:15}},void 0,(0,i.default)(o.default,{span:12},void 0,(0,i.default)(T,{label:"\u670d\u52a1\u5730\u5740"},void 0,t("url ",{rules:[{required:!0,message:"\u670d\u52a1\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a"},{max:100,message:"\u670d\u52a1\u5730\u5740\u4e0d\u5f97\u8d85\u8fc7100\u4e2a\u5b57\u7b26"}],initialValue:this.obsInfo.url})((0,i.default)(m.default,{disabled:"view"===this.props.viewType,style:{width:"300px"},placeholder:"\u8bf7\u8f93\u5165\u670d\u52a1\u5730\u5740",onBlur:function(t){return e.getNameBlur(t.target.value,"url")}})),(0,i.default)(n.default,{loading:this.state.testConfirmLoading,style:{marginLeft:"12px"},type:"primary",onClick:this.testConnectObs},void 0,"\u6d4b\u8bd5\u8fde\u63a5"))),(0,i.default)(o.default,{span:10,style:{paddingLeft:this.state.verifyDsSchema?0:10}},void 0,(0,i.default)(T,{label:"\u6876\u540d\u79f0"},void 0,t("dbDsSchema",{rules:[{required:this.state.verifyDsSchema,message:"\u6876\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"},{max:30,message:"\u6876\u540d\u79f0\u4e0d\u5f97\u8d85\u8fc730\u4e2a\u5b57\u7b26"}],initialValue:this.obsInfo.dbDsSchema})((0,i.default)(m.default,{disabled:"view"===this.props.viewType,style:{width:"300px",marginLeft:12},placeholder:"\u8bf7\u8f93\u5165\u6876\u540d\u79f0",onBlur:function(t){return e.getNameBlur(t.target.value,"dbDsSchema")}}))))),(0,i.default)(s.default,{style:{marginTop:20}},void 0,(0,i.default)(o.default,{style:{marginLeft:10},span:22},void 0,(0,i.default)(T,{label:"\u94fe\u63a5\u53c2\u6570"},void 0,t("dbParam ",{rules:[{max:150,message:"\u94fe\u63a5\u53c2\u6570\u957f\u5ea6\u4e0d\u5f97\u8d85\u8fc7150\u4e2a\u5b57\u7b26"}],initialValue:this.obsInfo.dbParam})((0,i.default)(E,{disabled:"view"===this.props.viewType,autosize:{minRows:2,maxRows:4},style:{width:830,marginRight:10,min:0,max:200},onBlur:function(t){return e.getNameBlur(t.target.value,"dbParam")},rows:2}))))))),(0,i.default)(M,{},void 0,(0,i.default)(n.default,{loading:this.state.testConfirmLoading,onClick:function(){e.props.closeKpiConfig()}},void 0,"\u53d6\u6d88"),(0,i.default)(n.default,{loading:this.state.testConfirmLoading,onClick:this.saveKpi,style:{display:"view"===this.props.viewType?"none":"",marginLeft:"16px"},type:"primary"},void 0,"\u786e\u5b9a\u63d0\u4ea4")))},t}(g.default.PureComponent);t.default=(0,v.connect)((function(e){return{checkNameVerifyInfo:(0,j.selectVerifyInfo)(e)}}))(y.Form.create()(L))},"./src/module/sysManage/obsManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Search,f=u.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"y2uc3n-0"})(["display:flex;align-items:center;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("dbName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(f,{className:"search-bar"},void 0,(0,n.default)("div",{className:"search-div"},void 0,(0,n.default)(p,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(m)},"./src/module/sysManage/obsManager/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.OBS_TYPE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.OBS_TYPE=(0,s.default)({HWOBS:["HWOBS","HWOBS"],OBS:["OBS","OBS"]});t.default={OBS_TYPE:r}},"./src/module/sysManage/projectManager/applyPage/ApplyProjectLoginPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/antd/es/tooltip/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/antd/es/message/index.js")),d=C(a("./node_modules/antd/es/modal/index.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=C(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=(C(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),h=C(a("./src/redux/services/sysManager/projectManage.js")),g=C(a("./src/module/sysManage/projectManager/applyPage/component/SearchBar.jsx")),v=a("./src/styles/GlobalStyle.js"),y=a("./src/module/sysManage/projectManager/modelEnums.js"),b=C(a("./src/module/sysManage/projectManager/applyPage/editPage/ApplyProjectInfo.jsx")),x=C(a("./src/module/sysManage/projectManager/applyPage/detailPage/ApplyProjectDetail.jsx"));function C(e){return e&&e.__esModule?e:{default:e}}var j=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),S=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.handleEdit=function(e,t){n.applyId=e.applyId,"view"===t?n.setState({modalVisibleView:!0,viewType:t}):n.setState({modalVisibleEdit:!0,viewType:t})},n.deleteById=function(e){var t=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664[ "+e.projectName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(a,n){h.default.deleteProjectApply(e.applyId).then((function(){t.fetchData(t.searchCond),a(),i.default.success("\u5220\u9664\u6210\u529f\uff01")})).catch((function(e){n(),i.default.error(e.message)}))})).catch((function(){return i.default.error("Oops errors!")}))}})},n.fetchData=function(e){n.setState({loading:!0}),h.default.getProjectApplyList(e).then((function(e){n.setState({projectList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({projectList:[],loading:!1}),i.default.error(e.message)}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.callModalVisible=function(e){"edit"===e?n.setState({modalVisibleEdit:!1}):n.setState({modalVisibleView:!1}),n.fetchData(n.searchCond)},n.state={loading:!1,projectList:[],selectProjectList:[],modalVisibleEdit:!1,modalVisibleView:!1,viewType:"create"},n.applyId="",n.columns=[{title:j,width:"7%",dataIndex:"applyId",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u7533\u8bf7\u65f6\u95f4",dataIndex:"applyTime",width:140,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"--")}},{title:"\u7533\u8bf7\u7c7b\u578b",dataIndex:"applyType",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,y.APPLY_TYPE.getDescFromValue(e))}},{title:"\u5ba1\u6279\u4eba",dataIndex:"approveUsers",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"--")}},{title:"\u72b6\u6001",dataIndex:"approveState",ellipsis:!0,render:function(e){return(0,r.default)(m.StateLabel,{source:"approveState",code:e})}},{title:"\u64cd\u4f5c",width:180,render:function(e,t){var a=t.approveState,o=[{handleName:"\u67e5\u770b",handleAction:function(){n.handleEdit(t,"view")}}];return-1!==_.indexOf(["FAILED","WAIT_APPROVE"],a)&&(o.push({handleName:"\u4fee\u6539",handleAction:function(){n.handleEdit(t,"edit")}}),o.push({handleName:"\u5220\u9664",handleAction:function(){n.deleteById(t)}})),(0,r.default)(m.ListButtons,{buttons:o,maxShowNum:2})}}],n.searchCond={projectName:"",approveStates:"",applyTypes:"PROJECT"},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=this;h.default.getProjectApplyList(this.searchCond).then((function(t){e.setState({projectList:t.data?t.data:[],loading:!1,selectProjectList:t.data?t.data:[]})})).catch((function(t){e.setState({projectList:[],loading:!1}),i.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.projectList,s=t.loading,i=t.selectProjectList;return(0,r.default)(v.PageWrapper,{},void 0,(0,r.default)(m.ModalView,{viewType:this.state.viewType,modalTitle:"create"===this.state.viewType?"\u65b0\u589e\u7533\u8bf7":"\u7f16\u8f91\u7533\u8bf7",onCancelType:!1,width:1010,callVisible:function(){e.callModalVisible("edit")},modalVisible:this.state.modalVisibleEdit,comp:(0,r.default)(b.default,{callVisible:function(){e.callModalVisible("edit")},applyId:this.applyId,viewType:this.state.viewType})}),(0,r.default)(m.ModalView,{viewType:this.state.viewType,modalTitle:"\u67e5\u770b\u7533\u8bf7",onCancelType:!1,width:1010,callVisible:function(){e.callModalVisible("view")},modalVisible:this.state.modalVisibleView,comp:(0,r.default)(x.default,{callVisible:function(){e.callModalVisible("view")},applyId:this.applyId,viewType:this.state.viewType})}),(0,r.default)(v.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){e.setState({modalVisibleEdit:!0,viewType:"create"})},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u7533\u8bf7"),(0,r.default)(g.default,{projectList:i,onChange:this.changeSearchCond})),(0,r.default)(v.PageBody,{},void 0,(0,r.default)(v.TableWrapper,{},void 0,(0,r.default)(n.default,{loading:s,scroll:{y:this.props.scrollY||"auto"},dataSource:a,rowKey:"applyId",bordered:!0,pagination:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(S)},"./src/module/sysManage/projectManager/applyPage/ApplyProjectPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/table/index.js")),o=S(a("./node_modules/antd/es/button/index.js")),s=S(a("./node_modules/antd/es/tooltip/index.js")),r=S(a("./node_modules/babel-runtime/helpers/jsx.js")),i=S(a("./node_modules/antd/es/message/index.js")),d=S(a("./node_modules/antd/es/modal/index.js")),l=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=S(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=S(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=(S(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),h=S(a("./src/redux/services/sysManager/projectManage.js")),g=S(a("./src/module/sysManage/projectManager/applyPage/component/SearchBar.jsx")),v=a("./src/routes/routeHelper.jsx"),y=a("./src/utils/history.js"),b=a("./src/styles/GlobalStyle.js"),x=a("./src/module/sysManage/projectManager/modelEnums.js"),C=a("./src/utils/authPermit.js"),j=S(a("./src/module/sysManage/projectManager/applyPage/editPage/ApplyProjectInfo.jsx"));function S(e){return e&&e.__esModule?e:{default:e}}var I=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),T=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.deleteById=function(e){var t=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664[ "+e.projectName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(a,n){h.default.deleteProjectApply(e.applyId).then((function(){t.fetchData(t.searchCond),a(),i.default.success("\u5220\u9664\u6210\u529f\uff01")})).catch((function(e){n(),i.default.error(e.message)}))})).catch((function(){return i.default.error("Oops errors!")}))}})},n.fetchData=function(e){n.setState({loading:!0}),h.default.getProjectApplyList(e).then((function(e){n.setState({projectList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({projectList:[],loading:!1}),i.default.error(e.message)}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.openModal=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments[1];n.setState({modalVisible:!0,viewType:e,currentApplyId:t})},n.callVisible=function(e){e&&n.fetchData(n.searchCond),n.setState({modalVisible:!1})},n.state={loading:!1,projectList:[],selectProjectList:[],modalVisible:!1,viewType:"",currentApplyId:""},n.columns=[{title:I,width:"7%",dataIndex:"applyId",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u7533\u8bf7\u65f6\u95f4",dataIndex:"applyTime",width:140,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"--")}},{title:"\u7533\u8bf7\u7c7b\u578b",dataIndex:"applyType",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,x.APPLY_TYPE.getDescFromValue(e))}},{title:"\u5ba1\u6279\u4eba",dataIndex:"approveUsers",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"--")}},{title:"\u72b6\u6001",dataIndex:"approveState",ellipsis:!0,render:function(e){return(0,r.default)(m.StateLabel,{source:"approveState",code:e})}},{title:"\u64cd\u4f5c",width:180,render:function(e,t){var a=t.approveState,o=[{handleName:"\u67e5\u770b",handleAction:function(){n.openModal("view",t.applyId)}}];return-1!==_.indexOf(["FAILED","WAIT_APPROVE"],a)&&(o.push({handleName:"\u4fee\u6539",handleAction:function(){n.openModal("edit",t.applyId)}}),o.push({handleName:"\u5220\u9664",handleAction:function(){n.deleteById(t)}})),(0,r.default)(m.ListButtons,{buttons:o,maxShowNum:2})}}],n.searchCond={projectName:"",approveStates:"",applyTypes:"PROJECT"},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=this;h.default.getProjectApplyList(this.searchCond).then((function(t){e.setState({projectList:t.data?t.data:[],loading:!1,selectProjectList:t.data?t.data:[]})})).catch((function(t){e.setState({projectList:[],loading:!1}),i.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.projectList,s=t.loading,i=t.selectProjectList,d=t.viewType,l=t.currentApplyId,u=(0,C.getUser)().orgType;return(0,r.default)(b.PageWrapper,{},void 0,(0,r.default)(m.ModalView,{modalTitle:"\u9879\u76ee\u7533\u8bf7",onCancelType:!1,width:1200,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:(0,r.default)(j.default,{callVisible:this.callVisible,viewType:d,applyId:l})}),(0,r.default)(b.PageHeader,{},void 0,(0,r.default)("div",{},void 0,(0,r.default)(o.default,{onClick:function(){return e.openModal("create")},className:"saveButton",type:"primary"},void 0,"\u7533\u8bf7\u9879\u76ee"),1===u&&(0,r.default)(o.default,{style:{marginLeft:20},onClick:function(){(0,y.navigateTo)(v.operationUrl.projectTenementCreate())},className:"saveButton",type:"primary"},void 0,"\u521b\u5efa\u9879\u76ee")),(0,r.default)(g.default,{projectList:i,onChange:this.changeSearchCond})),(0,r.default)(b.PageBody,{},void 0,(0,r.default)(b.TableWrapper,{},void 0,(0,r.default)(n.default,{loading:s,scroll:{y:this.props.scrollY||"auto"},dataSource:a,rowKey:"applyId",bordered:!0,pagination:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(T)},"./src/module/sysManage/projectManager/applyPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/input/index.js")),d=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=h(a("./node_modules/react/index.js")),u=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js"),p=a("./src/config/ui-config.js"),f=a("./src/module/sysManage/projectManager/modelEnums.js"),m=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=d.default.Option,v={width:"130px"},y=i.default.Search,b=m.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"wq9rko-0"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;"],(function(e){return e.color})),x=(0,n.default)(g,{value:""},void 0,"\u5168\u90e8"),C=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.doSearch=function(e){n.props.onChange("projectName",e)},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("projectName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeExecStatus=n.changeSelect("approveStates"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{defaultValue:"",onChange:this.changeExecStatus,style:v,placeholder:"\u6267\u884c\u72b6\u6001",className:"sort-cond"},void 0,x,f.APPROVAL_STATE.getValueAndDescList().map((function(e){return(0,n.default)(g,{value:e.code},e.code,(0,n.default)(b,{color:p.APPROVAL_STATE_COLOR_MAP[e.code]}),e.desc)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)("div",{style:{marginLeft:16}},void 0,(0,n.default)(y,{placeholder:"\u8bf7\u8f93\u5165\u9879\u76ee\u540d\u79f0\u67e5\u8be2",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}}))))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(C)},"./src/module/sysManage/projectManager/applyPage/detailPage/ApplyProjectDetail.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=void 0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/babel-runtime/helpers/extends.js")),s=j(a("./node_modules/antd/es/col/index.js")),r=j(a("./node_modules/antd/es/row/index.js")),i=j(a("./node_modules/babel-runtime/helpers/jsx.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/babel-runtime/helpers/typeof.js")),u=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=j(a("./node_modules/babel-runtime/helpers/inherits.js")),f="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\projectManager\\applyPage\\detailPage\\ApplyProjectDetail.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var m=j(a("./node_modules/react/index.js")),h=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./node_modules/react-redux/es/index.js"),v=(j(a("./node_modules/prop-types/index.js")),j(a("./src/redux/services/sysManager/projectManage.js"))),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=a("./src/components/index.js"),x=a("./src/utils/history.js"),C=a("./src/routes/routeHelper.jsx");function j(e){return e&&e.__esModule?e:{default:e}}var S=y.Form.Item,I=h.default.div.withConfig({displayName:"ApplyProjectDetail__DetailInfoWrapper",componentId:"vy9aey-0"})(["background:#fff;padding:20px;.edit__icon{margin-left:10px;}.display__value{word-break:break-word;}.ant-col-8{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:40%;}"]),T={labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:8}}},w=t.ButtonDom=h.default.div.withConfig({displayName:"ApplyProjectDetail__ButtonDom",componentId:"vy9aey-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),E=(0,i.default)(b.LoadingIndicator,{position:"relative"}),D=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.cancel=function(){(0,x.navigateTo)(C.operationUrl.applyProjectManage())},n.getUpdateapplyName=function(e,t){for(var a="--",n=0;e&&n<e.length;n++)if(t.projectId===e[n].projectId){a=e[n].projectName;break}return a},n.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,l.default)(t))||!t)}catch(e){return!1}},n.getRoleName=function(e){var t="--";if(e&&n.isJSON(e)){var a=JSON.parse(e);t=_.get(a,"[0].userRoles[0].roleName","--")}return t},n.compareDate=function(e,t){return new Date(e.replace(/-/g,"/"))<new Date(t.replace(/-/g,"/"))},n.getNewApproveBeans=function(e){if(e&&e.length>0){var t=[];return t.push(e[e.length-1]),t}return null},n.viewType=_.get(a.match,"params.action",null),n.applyId=_.get(a.match,"params.applyId",null),n.state={applyProjectInfo:{},loading:!1,applyProjectList:[]},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){var e=this;v.default.getApplyProjectCurrentUser().then((function(t){t&&e.setState({applyProjectList:t.data})})).catch((function(e){d.default.error(e.message)})),"create"!==this.viewType&&(this.setState({loading:!0}),v.default.getProjectApplyInfo(this.applyId).then((function(t){t&&e.setState({applyProjectInfo:t.data,loading:!1})})).catch((function(t){e.setState({loading:!1}),d.default.error(t.message)})))},t.prototype.render=function(){var e=this.state,t=e.applyProjectList,a=e.applyProjectInfo,d=e.loading,l=this.getNewApproveBeans(a.approveBeans);return(0,i.default)(I,{},void 0,d&&E,!d&&(0,i.default)("div",{},void 0,(0,i.default)(b.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,m.default.createElement(y.Form,(0,o.default)({},T,{__source:{fileName:f,lineNumber:151}}),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u9879\u76ee\u540d\u79f0"},void 0,this.getUpdateapplyName(t,a))),(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u9879\u76ee\u89d2\u8272"},void 0,this.getRoleName(_.get(a,"applyContent",null))))))),""!==_.get(l,"[0].approveState","")&&(0,i.default)(b.ModelConfigPanel,{title:"\u5ba1\u6279\u8be6\u60c5"},void 0,m.default.createElement(y.Form,(0,o.default)({},T,{__source:{fileName:f,lineNumber:166}}),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u5ba1 \u6279 \u4eba"},void 0,_.get(l,"[0].approveUser","--"))),(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u5ba1\u6279\u72b6\u6001"},void 0,(0,i.default)("div",{style:{marginTop:8}},void 0,(0,i.default)(b.StateLabel,{source:"approveState",code:_.get(l,"[0].approveState")}))))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u5ba1\u6279\u65f6\u95f4"},void 0,_.get(l,"[0].approveTime","--")))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:10},void 0,(0,i.default)(S,{label:"\u5ba1\u6279\u610f\u89c1"},void 0,_.get(l,"[0].approveOpinion","--"))))))),(0,i.default)(w,{},void 0,(0,i.default)(n.default,{onClick:this.cancel},void 0,"\u8fd4 \u56de")))},t}(m.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(D)},"./src/module/sysManage/projectManager/applyPage/editPage/ApplyProjectInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ConfigButtonDom=t.ApplyProjectInfoDom=void 0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/antd/es/col/index.js")),s=I(a("./node_modules/antd/es/row/index.js")),r=I(a("./node_modules/babel-runtime/helpers/jsx.js")),i=I(a("./node_modules/antd/es/message/index.js")),d=I(a("./node_modules/babel-runtime/helpers/typeof.js")),l=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=I(a("./node_modules/babel-runtime/helpers/inherits.js")),p=I(a("./node_modules/antd/es/modal/index.js")),f=I(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=I(a("./node_modules/react/index.js")),h=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=I(a("./node_modules/lodash/lodash.js")),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");I(a("./node_modules/prop-types/index.js"));var _=a("./src/utils/authPermit.js"),y=I(a("./src/redux/services/sysManager/projectManage.js")),b=a("./node_modules/react-redux/es/index.js"),x=a("./src/components/index.js"),C=a("./src/utils/history.js"),j=a("./src/routes/routeHelper.jsx"),S=a("./src/module/sysManage/projectManager/modelEnums.js");function I(e){return e&&e.__esModule?e:{default:e}}var T=f.default.Option,w=v.Form.Item,E=p.default.confirm,D=t.ApplyProjectInfoDom=h.default.div.withConfig({displayName:"ApplyProjectInfo__ApplyProjectInfoDom",componentId:"eufivb-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;"]),M=t.ConfigButtonDom=h.default.div.withConfig({displayName:"ApplyProjectInfo__ConfigButtonDom",componentId:"eufivb-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),k={width:"100%"},P=(0,r.default)(x.LoadingIndicator,{position:"relative"}),L=(0,r.default)(T,{value:""},void 0,"\u8bf7\u9009\u62e9\u9879\u76ee"),N=(0,r.default)(T,{value:""},void 0,"\u8bf7\u9009\u62e9\u9879\u76ee\u89d2\u8272"),A=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,d.default)(t))||!t)}catch(e){return!1}},n.savaOrSubmit=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&n.submitModalOk()},n.submitModalOk=function(){var e=n,t=(0,_.getUser)().orgId;n.state.orgId&&t&&t!==n.state.orgId&&"create"===n.viewType?E({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u6240\u9009\u9879\u76ee\u8ddf\u4f60\u4e0d\u5728\u540c\u4e00\u7ec4\u7ec7\uff0c\u8bf7\u6ce8\u610f\uff01",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){e.handleSave()}}):n.handleSave()},n.handleSave=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.moduleData.applyType="PROJECT",n.moduleData.applyContent.userId=(0,_.getUser)().userId||(0,_.getUserId)(),n.moduleData.applyContent=JSON.stringify([n.moduleData.applyContent]),y.default.editProjectApply("create"===n.viewType?[n.moduleData]:n.moduleData,n.viewType).then((function(e){e.success&&(n.setState({confirmLoading:!1}),i.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),n.props.callVisible?n.props.callVisible(!0):(0,C.navigateTo)(j.operationUrl.applyProjectManage()))})).catch((function(e){n.setState({confirmLoading:!1}),n.moduleData.applyContent=JSON.parse(n.moduleData.applyContent)[0],i.default.error(e.message)}))},n.cancel=function(){n.props.callVisible?n.props.callVisible():E({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u9879\u76ee\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,C.navigateTo)(j.operationUrl.applyProjectManage())}})},n.getUpdateProjectName=function(e,t){for(var a="--",n=0;n<e.length;n++)if(t.projectId===e[n].projectId){a=e[n].projectName;break}return a},n.setProjectListRoles=function(e,t){for(var a=null,o=0;o<e.length;o++)if(t===e[o].projectId){a=e[o].projectName,n.setState({roles:e[o].projectRoles});break}return a},n.getValBlur=function(e,t){if("projectId"===t&&(n.getProjectInfo(e),n.moduleData.projectName=n.setProjectListRoles(n.state.applyProjectList,e),n.props.form.setFieldsValue({roleId:""}),n.moduleData.applyContent.userRoles[0].roleName="",n.moduleData.applyContent.projectId=e),"roleId"===t){for(var a=0;a<n.state.roles.length;a++)if(e===n.state.roles[a].roleId){n.moduleData.applyContent.userRoles[0].roleName=n.state.roles[a].roleName;break}n.moduleData.applyContent.userRoles[0][t]=e}else n.moduleData[t]=e;n.props.form.setFieldsValue({type:e})},n.getProjectInfo=function(e){y.default.getProjectInfo(e).then((function(e){n.setState({orgId:g.default.get(e,"data.orgId"),orgName:g.default.get(e,"data.orgName"),projectParentName:g.default.get(e,"data.projectParentName")})}))},n.viewType=g.default.get(a.match,"params.action",n.props.viewType),n.applyId=g.default.get(a.match,"params.applyId",n.props.applyId),n.state={applyProjectInfo:{applyContent:{userRoles:[{roleName:"",roleId:"",userId:_.getUserId}]}},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,loading:!1,loadingProjects:!1,applyProjectList:[],roles:[]},n.moduleData={applyContent:{userRoles:[{roleName:"",roleId:"",userId:_.getUserId}]}},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=this;"create"!==this.viewType&&this.setState({loading:!0}),this.setState({loadingProjects:!0}),y.default.getApplyProjectCurrentUser({projectType:S.PROJECT_TYPE.PROJECT}).then((function(t){if(t){var a=t.data;e.setState({loadingProjects:!1,applyProjectList:t.data}),"create"!==e.viewType&&y.default.getProjectApplyInfo(e.applyId).then((function(t){if(t){var n=t.data;n.applyContent=n.applyContent&&e.isJSON(n.applyContent)?JSON.parse(n.applyContent).length>0&&JSON.parse(n.applyContent)[0]:[],e.setState({applyProjectInfo:n,loading:!1}),n.projectId&&e.getProjectInfo(n.projectId),e.moduleData=t.data,e.setProjectListRoles(a,g.default.get(t,"data.projectId"))}}))}})).catch((function(t){throw e.setState({loadingProjects:!1,loading:!1}),t}))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,i=a.applyProjectList,d=a.applyProjectInfo,l=a.loading,u=a.loadingProjects,c=a.roles;return(0,r.default)(D,{},void 0,"create"!==this.viewType&&l&&P,("create"===this.viewType||"create"!==this.viewType&&!l)&&(0,r.default)("div",{},void 0,(0,r.default)(x.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:k},void 0,(0,r.default)(v.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u9879\u76ee\u540d\u79f0"},void 0,"create"===this.viewType?t("projectId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u9879\u76ee"}],initialValue:d.projectId})((0,r.default)(f.default,{showSearch:!0,filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},loading:u,onChange:function(t){return e.getValBlur(t,"projectId")},style:{width:"350px"},placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee"},void 0,L,i.map((function(e,t){return(0,r.default)(T,{value:e.projectId},t,e.projectName)})))):this.getUpdateProjectName(i,d)))),(0,r.default)(s.default,{},void 0,(0,r.default)("span",{style:{marginLeft:10,lineHeight:"40px"}},void 0,"\u5f52\u5c5e\u7ec4\u7ec7\uff1a",(0,r.default)("span",{style:{marginLeft:5}},void 0,this.state.orgName||"\u65e0"))),(0,r.default)(s.default,{},void 0,(0,r.default)("span",{style:{lineHeight:"40px"}},void 0,"\u5f52\u5c5e\u9879\u76ee\u7ec4\uff1a",(0,r.default)("span",{style:{marginLeft:4}},void 0,this.state.projectParentName||"\u65e0"))),(0,r.default)(s.default,{style:{marginLeft:"create"===this.viewType?0:-9,marginTop:5}},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u9879\u76ee\u89d2\u8272"},void 0,t("roleId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u9879\u76ee\u89d2\u8272"}],initialValue:g.default.get(d,"applyContent.userRoles[0]roleId")})((0,r.default)(f.default,{showSearch:!0,filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"roleId")},style:{width:"350px"},placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee\u89d2\u8272"},void 0,N,c.map((function(e,t){return(0,r.default)(T,{value:e.roleId},t,e.roleName)})))))))))),(0,r.default)(M,{},void 0,(0,r.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,r.default)(n.default,{onClick:this.savaOrSubmit,type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(m.default.PureComponent);t.default=(0,b.connect)((function(){return{}}))(v.Form.create()(A))},"./src/module/sysManage/projectManager/approvePage/ApproveProjectPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/antd/es/tooltip/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/antd/es/message/index.js")),d=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var c=C(a("./node_modules/react/index.js")),p=a("./node_modules/react-redux/es/index.js"),f=a("./src/components/index.js"),m=C(a("./src/redux/services/sysManager/projectManage.js")),h=C(a("./src/module/sysManage/projectManager/approvePage/component/SearchBar.jsx")),g=a("./src/routes/routeHelper.jsx"),v=a("./src/utils/history.js"),y=a("./src/styles/GlobalStyle.js"),b=a("./src/module/sysManage/projectManager/modelEnums.js"),x=C(a("./src/module/sysManage/projectManager/approvePage/editPage/ApproveProjectInfo.jsx"));function C(e){return e&&e.__esModule?e:{default:e}}var j=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),S=(0,r.default)(f.LoadingIndicator,{position:"relative"}),I=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleEdit=function(e,t){"view"===t?(0,v.navigateTo)(g.operationUrl.approveProjectView(e.applyId)):n.openKpiConfig(e)},n.fetchData=function(e){n.setState({loading:!0}),m.default.getProjectApproveList(e).then((function(e){n.setState({approveList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({approveList:[],loading:!1}),i.default.error(e.message)}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.onSelectChange=function(e,t){n.approveData=[];for(var a=0;a<t.length;a++)n.approveData.push(t[a])},n.callModalVisible=function(e){e&&n.fetchData(n.searchCond),n.setState({modalVisible:!1})},n.openKpiConfig=function(e){e?(n.approveData=[e],n.setState({modalVisible:!0})):0===n.approveData.length?i.default.info("\u8bf7\u9009\u62e9\u6279\u91cf\u5ba1\u6279\u6570\u636e\uff01"):n.setState({modalVisible:!0})},n.state={loading:!1,approveList:[],modalVisible:!1},n.approveData=[],n.columns=[{title:j,width:"7%",dataIndex:"applyId",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u7533\u8bf7\u65f6\u95f4",dataIndex:"applyTime",width:140,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u7533\u8bf7\u7c7b\u578b",dataIndex:"applyType",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,b.APPLY_TYPE.getDescFromValue(e))}},{title:"\u7533\u8bf7\u4eba",dataIndex:"applyUser",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u5ba1\u6279\u4eba",dataIndex:"approveUsers",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u72b6\u6001",dataIndex:"approveState",ellipsis:!0,render:function(e){return(0,r.default)(f.StateLabel,{source:"approveState",code:e})}},{title:"\u64cd\u4f5c",width:180,render:function(e,t){var a=t.approveState,o=[{handleName:"\u67e5\u770b",handleAction:function(){n.handleEdit(t,"view")}}];return-1!==_.indexOf(["WAIT_APPROVE"],a)&&o.push({handleName:"\u5ba1\u6279",handleAction:function(){n.handleEdit(t,"approve")}}),(0,r.default)(f.ListButtons,{buttons:o,maxShowNum:2})}}],n.searchCond={sortField:"APPLY_TIME.DESC",projectName:"",approveStates:""},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.render=function(){var e=this,t=this.state,a=t.approveList,s=t.loading,i={onChange:this.onSelectChange,getCheckboxProps:function(e){return{disabled:"WAIT_APPROVE"!==e.approveState}}};return(0,r.default)(y.PageWrapper,{},void 0,(0,r.default)(f.ModalView,{viewType:this.state.viewType,modalTitle:"\u5ba1\u6279\u6570\u636e",onCancelType:!1,width:750,callVisible:this.callModalVisible,modalVisible:this.state.modalVisible,comp:(0,r.default)(x.default,{approveData:this.approveData,callVisible:this.callModalVisible})}),(0,r.default)(y.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){e.openKpiConfig()},className:"saveButton",type:"primary"},void 0,"\u6279\u91cf\u5ba1\u6279"),(0,r.default)(h.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,r.default)(y.PageBody,{},void 0,(0,r.default)(y.TableWrapper,{},void 0,s&&(0,r.default)("div",{style:{marginTop:50}},void 0,S),!s&&(0,r.default)(n.default,{rowSelection:i,dataSource:a,rowKey:"applyId",bordered:!0,pagination:!0,columns:this.columns}))))},t}(c.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(I)},"./src/module/sysManage/projectManager/approvePage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/input/index.js")),d=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=h(a("./node_modules/react/index.js")),u=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js"),p=a("./src/config/ui-config.js"),f=a("./src/module/sysManage/projectManager/modelEnums.js"),m=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=d.default.Option,v={width:"130px"},y=i.default.Search,b=m.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"sc-6mqwla-0"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"],(function(e){return e.color})),x=(0,n.default)(g,{value:"APPLY_TIME.DESC"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),C=(0,n.default)(g,{value:""},void 0,"\u5168\u90e8"),j=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("projectName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeExecStatus=n.changeSelect("approveStates"),n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:v,placeholder:"\u9009\u62e9\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,x)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{defaultValue:"",onChange:this.changeExecStatus,style:v,placeholder:"\u6267\u884c\u72b6\u6001",className:"sort-cond"},void 0,C,f.APPROVAL_STATE.getValueAndDescList().map((function(e){return(0,n.default)(g,{value:e.code},e.code,(0,n.default)(b,{color:p.APPROVAL_STATE_COLOR_MAP[e.code]}),e.desc)})))),(0,n.default)("div",{style:{marginLeft:16}},void 0,(0,n.default)(y,{placeholder:"\u8bf7\u8f93\u5165\u9879\u76ee\u540d\u79f0\u67e5\u8be2",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(j)},"./src/module/sysManage/projectManager/approvePage/detailPage/ApproveProjectDetail.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=void 0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/babel-runtime/helpers/extends.js")),s=j(a("./node_modules/antd/es/col/index.js")),r=j(a("./node_modules/antd/es/row/index.js")),i=j(a("./node_modules/babel-runtime/helpers/jsx.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/babel-runtime/helpers/typeof.js")),u=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=j(a("./node_modules/babel-runtime/helpers/inherits.js")),f="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\projectManager\\approvePage\\detailPage\\ApproveProjectDetail.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var m=j(a("./node_modules/react/index.js")),h=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=j(a("./src/redux/services/sysManager/projectManage.js")),v=a("./node_modules/react-redux/es/index.js"),y=(j(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var b=a("./src/components/index.js"),x=a("./src/utils/history.js"),C=a("./src/routes/routeHelper.jsx");function j(e){return e&&e.__esModule?e:{default:e}}var S=y.Form.Item,I=h.default.div.withConfig({displayName:"ApproveProjectDetail__DetailInfoWrapper",componentId:"xonueh-0"})(["background:#fff;padding:20px;.edit__icon{margin-left:10px;}.display__value{word-break:break-word;}.ant-col-8{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:40%;}"]),T={labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:8}}},w=t.ButtonDom=h.default.div.withConfig({displayName:"ApproveProjectDetail__ButtonDom",componentId:"xonueh-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),E=(0,i.default)(b.LoadingIndicator,{position:"relative"}),D=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.cancel=function(){(0,x.navigateTo)(C.operationUrl.approveProjectManage())},n.getUpdateapplyName=function(e,t){for(var a="--",n=0;e&&n<e.length;n++)if(t.projectId===e[n].projectId){a=e[n].projectName;break}return a},n.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,l.default)(t))||!t)}catch(e){return!1}},n.compareDate=function(e,t){return new Date(e.replace(/-/g,"/"))<new Date(t.replace(/-/g,"/"))},n.getNewApproveBeans=function(e){if(e&&e.length>0){var t=[];return t.push(e[e.length-1]),t}return null},n.getRoleName=function(e){var t="--";if(e&&n.isJSON(e)){var a=JSON.parse(e);t=_.get(a,"[0].userRoles[0].roleName","--")}return t},n.viewType=_.get(a.match,"params.action",null),n.applyId=_.get(a.match,"params.applyId",null),n.state={applyProjectInfo:{},loading:!1,applyProjectList:[]},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){var e=this;g.default.getApplyProjectCurrentUser().then((function(t){t&&e.setState({applyProjectList:t.data})})).catch((function(e){d.default.error(e.message)})),"create"!==this.viewType&&(this.setState({loading:!0}),g.default.getProjectApplyInfo(this.applyId).then((function(t){t&&e.setState({applyProjectInfo:t.data,loading:!1})})).catch((function(t){e.setState({loading:!1}),d.default.error(t.message)})))},t.prototype.render=function(){var e=this.state,t=e.applyProjectList,a=e.applyProjectInfo,d=e.loading,l=this.getNewApproveBeans(a.approveBeans);return(0,i.default)(I,{},void 0,d&&E,!d&&(0,i.default)("div",{},void 0,(0,i.default)(b.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,m.default.createElement(y.Form,(0,o.default)({},T,{__source:{fileName:f,lineNumber:151}}),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u7533\u8bf7\u4eba"},void 0,_.get(a,"applyUser","--")))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u9879\u76ee\u540d\u79f0"},void 0,this.getUpdateapplyName(t,a))),(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u9879\u76ee\u89d2\u8272"},void 0,this.getRoleName(_.get(a,"applyContent",null))))))),""!==_.get(l,"[0].approveState","")&&(0,i.default)(b.ModelConfigPanel,{title:"\u5ba1\u6279\u8be6\u60c5"},void 0,m.default.createElement(y.Form,(0,o.default)({},T,{__source:{fileName:f,lineNumber:171}}),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u5ba1 \u6279 \u4eba"},void 0,_.get(l,"[0].approveUser","--"))),(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u5ba1\u6279\u72b6\u6001"},void 0,(0,i.default)("div",{style:{marginTop:8}},void 0,(0,i.default)(b.StateLabel,{source:"approveState",code:_.get(l,"[0].approveState")}))))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u5ba1\u6279\u65f6\u95f4"},void 0,_.get(l,"[0].approveTime","--")))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:10},void 0,(0,i.default)(S,{label:"\u5ba1\u6279\u610f\u89c1"},void 0,_.get(l,"[0].approveOpinion","--"))))))),(0,i.default)(w,{},void 0,(0,i.default)(n.default,{onClick:this.cancel},void 0,"\u8fd4 \u56de")))},t}(m.default.PureComponent);t.default=(0,v.connect)((function(){return{}}))(D)},"./src/module/sysManage/projectManager/approvePage/editPage/ApproveProjectInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ConfigButtonDom=t.ApproveProjectInfoDom=void 0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/antd/es/col/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/antd/es/message/index.js")),d=b(a("./node_modules/antd/es/modal/index.js")),l=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=b(a("./node_modules/babel-runtime/helpers/inherits.js")),p=b(a("./node_modules/antd/es/radio/index.js")),f=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var m=b(a("./node_modules/react/index.js")),h=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");b(a("./node_modules/prop-types/index.js"));var v=b(a("./src/redux/services/sysManager/projectManage.js")),_=a("./node_modules/react-redux/es/index.js"),y=a("./src/components/index.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=g.Form.Item,C=f.default.TextArea,j=p.default.Group,S=t.ApproveProjectInfoDom=h.default.div.withConfig({displayName:"ApproveProjectInfo__ApproveProjectInfoDom",componentId:"sc-18behav-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;"]),I=t.ConfigButtonDom=h.default.div.withConfig({displayName:"ApproveProjectInfo__ConfigButtonDom",componentId:"sc-18behav-1"})(["text-align:right;line-height:70px;padding-right:30px;"]),T={width:"100%"},w=(0,r.default)(p.default,{value:"APPROVED"},void 0,"\u901a\u8fc7"),E=(0,r.default)(p.default,{value:"FAILED"},void 0,"\u4e0d\u901a\u8fc7"),D=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.savaOrSubmit=function(){var e=n.props.approveData;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5ba1\u6838\uff1a"+(1===e.length?e[0].projectName:e.length+"\u6761")+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){for(var o=[],s=0;s<e.length;s++)o.push({applyId:e[s].applyId,approveState:n.moduleData.approveState,approveOpinion:n.moduleData.approveOpinion});v.default.approveProject(o).then((function(e){e.success&&(i.default.success("\u5ba1\u6279\u6210\u529f\uff01"),n.props.callVisible("type"),t())})).catch((function(e){a(),i.default.error(e.message)}))}))}})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.getValBlur=function(e,t){n.moduleData[t]=e,n.props.form.setFieldsValue({type:e})},n.moduleData={approveState:"APPROVED",approveOpinion:""},n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(S,{},void 0,(0,r.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:T},void 0,(0,r.default)(g.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(x,{label:"\u5ba1\u6279\u72b6\u6001"},void 0,t("approveState",{rules:[{required:!0}],initialValue:this.moduleData.approveState})((0,r.default)(j,{onChange:function(t){return e.getValBlur(t.target.value,"approveState")},name:"radiogroup"},void 0,w,E))))),(0,r.default)(s.default,{style:{marginLeft:10,marginTop:24}},void 0,(0,r.default)(o.default,{span:24},void 0,(0,r.default)(x,{label:"\u5ba1\u6279\u610f\u89c1"},void 0,t("roleId",{rules:[{min:0,max:150,message:"\u5ba1\u6279\u610f\u89c1\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7150"}],initialValue:this.moduleData.approveOpinion})((0,r.default)(C,{autosize:{minRows:5,maxRows:8},style:{width:500,marginRight:10,min:0,max:450},onBlur:function(t){return e.getValBlur(t.target.value,"approveOpinion")},rows:8}))))))),(0,r.default)(I,{},void 0,(0,r.default)(n.default,{onClick:function(){return e.props.callVisible()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,r.default)(n.default,{onClick:this.savaOrSubmit,type:"primary",style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(m.default.PureComponent);t.default=(0,_.connect)((function(){return{}}))(g.Form.create()(D))},"./src/module/sysManage/projectManager/details/DetailsInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.DetailsInfoDom=void 0;var n=f(a("./node_modules/antd/es/col/index.js")),o=f(a("./node_modules/antd/es/row/index.js")),s=f(a("./node_modules/babel-runtime/helpers/jsx.js")),r=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-redux/es/index.js"),p=a("./src/components/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=t.DetailsInfoDom=u.default.div.withConfig({displayName:"DetailsInfo__DetailsInfoDom",componentId:"sc-172cnvr-0"})(["border:0.5px solid rgb(238,238,238);padding:10px 15px;margin-bottom:15px;.ant-col{position:relative;min-height:1px;line-height:30px;}"]),h=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.getProjectManagers=function(e){for(var t="",a=0;e&&a<e.length;a++)t+=e[a].userName+"\uff0c";return t.length>0?t.substring(0,t.length-1):"--"},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props.projectInfo;return(0,s.default)(m,{},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{style:{lineHeight:"30px",fontSize:14,fontWeight:800},span:24},void 0,_.get(e,"projectName","--"))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,"\u9879\u76ee\u8d1f\u8d23\u4eba\uff1a",(0,s.default)("div",{style:{display:"-webkit-inline-box"}},void 0,(0,s.default)(p.LineWrap,{title:this.getProjectManagers(_.get(e,"projectManagers",[])),lineClampNum:1}))),(0,s.default)(n.default,{span:8},void 0,"\u521b\u5efa\u65f6\u95f4\uff1a ",_.get(e,"createAt","--"))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,"\u63cf\u8ff0\uff1a ",_.get(e,"projectDesc","--"))))},t}(l.default.PureComponent);t.default=(0,c.connect)((function(){return{}}))(h)},"./src/module/sysManage/projectManager/details/ProjectDetailsPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ProjectDetailsPageDom=void 0;var n=C(a("./node_modules/antd/es/spin/index.js")),o=C(a("./node_modules/antd/es/table/index.js")),s=C(a("./node_modules/antd/es/tooltip/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/antd/es/message/index.js")),d=C(a("./node_modules/babel-runtime/helpers/extends.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=C(a("./node_modules/react/index.js")),f=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(C(a("./node_modules/prop-types/index.js")),C(a("./src/redux/services/sysManager/projectManage.js"))),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/components/index.js"),v=a("./src/module/sysManage/projectManager/util/dataUtil.js"),y=C(a("./src/module/sysManage/projectManager/details/DetailsInfo.jsx")),b=C(a("./src/module/sysManage/projectManager/editPage/component/ResourceQuota.jsx")),x=a("./src/utils/authPermit.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=t.ProjectDetailsPageDom=f.default.div.withConfig({displayName:"ProjectDetailsPage__ProjectDetailsPageDom",componentId:"sc-2qddde-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;.ant-col-5{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:25%;}"]),S=(0,r.default)(g.LoadingIndicator,{position:"relative"}),I=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.componentDidMount=function(){var e=(0,x.getCurrentContext)(),t=e.role,a=e.id;"PROJECT"===t&&(n.projectId=a,n.setState({loading:!0}),m.default.getProjectInfo(n.projectId).then((function(e){var t=e.data;e&&n.setState({projectInfo:t,loading:!1})})).catch((function(){n.setState({loading:!1})})))},n.expand=function(e){var t=(0,d.default)({},e);t.resQuotaConf||(t.resQuotaConf=t.applyResQuotaConf),n.setState({expandInfo:[t].concat([])})},n.onClickSave=function(e){e.validate?(n.setState({confirmLoading:!0}),m.default.expandResource(_.get(e,"moduleData.projectSetting"),n.state.projectInfo.projectId).then((function(e){m.default.getProjectInfo(n.projectId).then((function(e){var t=e.data;e&&n.setState({projectInfo:t})})).catch((function(){})),_.get(e,"data.success",!1)?(i.default.success("\u6269\u7f29\u5bb9\u6210\u529f!"),n.setState({confirmLoading:!1,expandInfo:[]})):(i.default.error("\u6269\u7f29\u5bb9\u5931\u8d25\u4fe1\u606f\uff1a"+(_.get(e,"data.message")?_.get(e,"data.message"):"--")),n.setState({confirmLoading:!1}))})).catch((function(e){i.default.error(e),n.setState({confirmLoading:!1})}))):i.default.info(e.message)},n.projectId="",n.state={projectInfo:{},loading:!1,expandInfo:[],confirmLoading:!1},n.validateFuncs={},n.columns=[{title:"\u5e8f\u53f7",width:"8%",dataIndex:"index",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u8d44\u6e90\u73af\u5883",dataIndex:"profile",ellipsis:!0,render:function(e){var t=(0,v.getResQuotaType)(e)+"\u8d44\u6e90";return(0,r.default)(s.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u603b\u8d44\u6e90",dataIndex:"resQuotaConf",ellipsis:!0,render:function(e,t){var a=""===_.get(t,"resQuotaConf.cpu","")?_.get(t,"limitSetting"):_.get(t,"resQuotaConf"),n=a?(0,v.resourceFormat)(a):"--";return(0,r.default)(s.default,{placement:"topLeft",title:n},void 0,n)}},{title:"\u5f85\u5ba1\u6279\u8d44\u6e90",dataIndex:"applyResQuotaConf",ellipsis:!0,render:function(e,t){var a=_.get(t,"applyResQuotaConf",null),n=a?(0,v.resourceFormat)(a):"--";return(0,r.default)(s.default,{placement:"topLeft",title:n||"--"},void 0,n||"--")}},{title:"\u5269\u4f59\u53ef\u7528\u8d44\u6e90",dataIndex:"availResQuota",ellipsis:!0,render:function(e,t){var a=_.get(t,"availResQuota",null),n=a?(0,v.resourceFormat)(a):"--";return(0,r.default)(s.default,{placement:"topLeft",title:n||"--"},void 0,n||"--")}},{title:"\u8d44\u6e90\u72b6\u6001",dataIndex:"status",ellipsis:!0,render:function(e,t){return"FAILED"===e?(0,r.default)(g.StateLabel,{source:"approveState",code:e}):(0,r.default)(s.default,{placement:"topLeft",title:_.get(t,"message","--")},void 0,(0,r.default)("div",{},void 0,(0,r.default)(g.StateLabel,{source:"approveState",code:e})))}},{title:"\u64cd\u4f5c",width:100,render:function(e){return"WAIT_APPROVE"!==e.status&&(0,r.default)("a",{href:"javascript:;"},void 0,(0,r.default)("span",{onClick:function(){return n.expand(e)}},void 0,"\u6269\u7f29\u5bb9"))}}],n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this.state,t=e.expandInfo,a=e.projectInfo,s=e.loading,i=e.confirmLoading;return(0,r.default)(j,{},void 0,s&&S,!s&&(0,r.default)("div",{},void 0,(0,r.default)(y.default,{projectInfo:a}),(0,r.default)(o.default,{pagination:!1,columns:this.columns,rowKey:"profile",bordered:!0,dataSource:_.get(a,"projectSetting")}),t.length>0&&(0,r.default)(n.default,{spinning:i,tip:"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49..."},void 0,(0,r.default)("div",{style:{border:"0.5px solid rgb(238, 238, 238)",padding:"10px 15px",marginTop:15,marginBottom:"15px"}},void 0,(0,r.default)(g.ModelConfigPanel,{title:"\u8d44\u6e90\u914d\u989d",hintMsg:!_.get((0,x.getUserAdditionalInfo)(),"isTenantAdmin")&&"\u5f00\u53d1/\u6d4b\u8bd5\u8d44\u6e90\u65e0\u9700\u5ba1\u6279\uff08\u8d85\u51fa\u9ed8\u8ba4\u503c\u9700\u5ba1\u6279\uff09\uff0c\u751f\u4ea7\u8d44\u6e90\u9700\u5ba1\u6279\uff1b\u5efa\u8bae\u5148\u6309\u9ed8\u8ba4\u503c\u7533\u8bf7\u8d44\u6e90\uff0c\u540e\u7eed\u8d44\u6e90\u4e0d\u8db3\u53ef\u5230\u9879\u76ee\u8bbe\u7f6e-\u9879\u76ee\u8d44\u6e90\u4e2d\u6269\u5bb9\u3002"},void 0,(0,r.default)(b.default,{confirmLoading:i,projectSetting:t,onClickSave:this.onClickSave},_.uniqueId()))))))},t}(p.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(I)},"./src/module/sysManage/projectManager/editPage/ProjectInfoPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.ProjectInfoPageDom=void 0;var n=T(a("./node_modules/antd/es/button/index.js")),o=T(a("./node_modules/babel-runtime/helpers/jsx.js")),s=T(a("./node_modules/antd/es/notification/index.js")),r=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=T(a("./node_modules/babel-runtime/helpers/inherits.js")),l=T(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=T(a("./node_modules/react/index.js")),c=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=T(a("./node_modules/lodash/lodash.js")),f=a("./src/module/sysManage/projectManager/util/dataUtil.js"),m=a("./src/utils/request.js"),h=a("./src/utils/authPermit.js"),g=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./src/redux/reducers/app.js"),_=(T(a("./node_modules/prop-types/index.js")),T(a("./src/redux/services/sysManager/projectManage.js"))),y=a("./node_modules/react-redux/es/index.js"),b=a("./src/components/index.js"),x=a("./src/utils/history.js"),C=a("./src/routes/routeHelper.jsx"),j=T(a("./src/module/sysManage/projectManager/editPage/component/ProjectInfo.jsx")),S=T(a("./src/module/sysManage/projectManager/editPage/component/ResourceQuota.jsx")),I=T(a("./src/redux/services/sysManager/userManager.js"));function T(e){return e&&e.__esModule?e:{default:e}}var w=l.default.confirm,E=t.ProjectInfoPageDom=c.default.div.withConfig({displayName:"ProjectInfoPage__ProjectInfoPageDom",componentId:"sc-1yr8yub-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;.ant-col-2{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:6%;}"]),D=t.ConfigButtonDom=c.default.div.withConfig({displayName:"ProjectInfoPage__ConfigButtonDom",componentId:"sc-1yr8yub-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),M=t.ErrorUl=c.default.ul.withConfig({displayName:"ProjectInfoPage__ErrorUl",componentId:"sc-1yr8yub-2"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),k={width:"100%"},P=(0,o.default)("br",{}),L=(0,o.default)("br",{}),N=(0,o.default)(b.LoadingIndicator,{position:"relative"}),A=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchCurrentTenantUsers()},n.fetchCurrentTenantUsers=function(){I.default.getUsersByTenant({filterPlatformAdmin:!0,filterTenantAdmin:!0}).then((function(e){e&&n.setState({projectManagersList:e.data})})).catch((function(){n.setState({projectManagersList:[]})}))},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.cancel=function(){},n.savaOrSubmit=function(){var e={},t={};if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(p.default.isFunction(o)){var s=o.call();s.validate?e[a]=s.moduleData:t[a]=s.errorMsg}})),"{}"===JSON.stringify(t)){for(var a in e)n.moduleData=p.default.assign(n.moduleData,e[a]);(0,f.isInclude)(n.state.projectManagersList,n.moduleData)?n.setState({modalVisible:!0}):l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u6240\u9009\u8d1f\u8d23\u4eba\u4e2d\u7684\u7ec4\u7ec7\u4e0e\u9879\u76ee\u5f52\u5c5e\u7ec4\u7ec7\u4e0d\u4e00\u81f4\uff0c\u662f\u5426\u4fdd\u5b58?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.setState({modalVisible:!0})}})}else{var r=n.errorDom(t);s.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:r,icon:(0,o.default)(g.FrownOutlined,{style:{color:"#f5222d"}})})}},n.exchangeProject=function(e){var t=e.split("@"),a={scopeType:t[0],scopeId:t[1]};n.props.dispatch(v.appActions.initialize()),localStorage.setItem("AI.currentContext",e),(0,m.refreshToken)(a.scopeType,a.scopeId).then((function(){return location.reload()}))},n.submitModalOk=function(){var e=n;n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var t="/operation-manage/project/tenement/create"===window.location.pathname;n.moduleData.projectType=1,_.default.saveProject(n.moduleData,n.moduleData.projectId,t).then((function(t){if(t){n.setState({confirmLoading:!1,modalVisible:!1});var a=[];if(p.default.get(t,"data.applyResult")){for(var s=p.default.get(t,"data.applyInfo"),r=0;r<s.length;r++)if(s[r].errorMessage){var i=(0,f.getResQuotaType)(s[r].resQuotaType);a.push(i+"\u8d44\u6e90\u51fa\u9519\uff1a"+s[r].errorMessage)}}else a.push(p.default.get(t,"data.applyResultMessage"));l.default.info({title:"\u521b\u5efa\u6210\u529f",okText:"\u786e\u8ba4",content:(0,o.default)("div",{},void 0,(0,o.default)("p",{style:{height:0}},void 0,p.default.get((0,h.getUserAdditionalInfo)(),"isTenantAdmin")?"\u81ea\u52a8\u8fdb\u5165\u9879\u76ee\u5217\u8868!":"\u81ea\u52a8\u8fdb\u5165\u65b0\u9879\u76ee!"),""!==a&&P,a.map((function(e,t){return(0,o.default)("div",{style:{height:40}},t,(0,o.default)("p",{style:{color:"red"}},void 0,e,"!"),L)}))),onOk:function(){p.default.get((0,h.getUserAdditionalInfo)(),"isTenantAdmin",!1)?(0,x.navigateTo)(C.operationUrl.projectManage()):(e.exchangeProject("PROJECT@"+e.moduleData.projectId),(0,x.navigateTo)("/projectSummarize"))}})}})).catch((function(){n.setState({confirmLoading:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"})}))},n.errorDom=function(e){return(0,o.default)(M,{},void 0,Object.keys(e).map((function(t){return(0,o.default)("li",{},t,e[t])})))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){w({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u9879\u76ee\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,x.navigateTo)(C.operationUrl.projectManage())}})},n.viewType=p.default.get(a.match,"params.action",null),n.projectId=p.default.get(a.match,"params.projectId",null),n.state={projectInfo:{},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1,projectManagersList:[]},n.moduleData={},n.validateFuncs={},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,s=t.projectInfo,r=t.modalTxt,i=t.confirmLoading,d=t.loading,u=t.projectManagersList;return(0,o.default)(E,{},void 0,(0,o.default)(l.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:i,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,r)),"create"!==this.viewType&&d&&N,("create"===this.viewType||"create"!==this.viewType&&!d)&&(0,o.default)("div",{},void 0,(0,o.default)(b.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:k},void 0,(0,o.default)(j.default,{viewType:this.viewType,projectId:this.projectId,projectInfo:s,setValidateFunc:this.setValidateFunc,projectManagers:u})),(0,o.default)(b.ModelConfigPanel,{title:"\u8d44\u6e90\u914d\u989d",hintMsg:p.default.get((0,h.getUserAdditionalInfo)(),"isTenantAdmin")?"":"\u5f00\u53d1/\u6d4b\u8bd5\u8d44\u6e90\u65e0\u9700\u5ba1\u6279\uff08\u8d85\u51fa\u9ed8\u8ba4\u503c\u9700\u5ba1\u6279\uff09\uff0c\u751f\u4ea7\u8d44\u6e90\u9700\u5ba1\u6279\uff1b\u5efa\u8bae\u5148\u6309\u9ed8\u8ba4\u503c\u7533\u8bf7\u8d44\u6e90\uff0c\u540e\u7eed\u8d44\u6e90\u4e0d\u8db3\u53ef\u5230\u9879\u76ee\u8bbe\u7f6e-\u9879\u76ee\u8d44\u6e90\u4e2d\u6269\u5bb9\u3002"},void 0,(0,o.default)(S.default,{viewType:this.viewType,projectSetting:s.projectSetting,setValidateFunc:this.setValidateFunc}))),(0,o.default)(D,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.savaOrSubmit(e.viewType)},type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(u.default.PureComponent);t.default=(0,y.connect)((function(){return{}}))(A)},"./src/module/sysManage/projectManager/editPage/ProjectInfoPageTab.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.ProjectInfoPageDom=void 0;var n=w(a("./node_modules/antd/es/button/index.js")),o=w(a("./node_modules/babel-runtime/helpers/jsx.js")),s=w(a("./node_modules/antd/es/notification/index.js")),r=w(a("./node_modules/antd/es/message/index.js")),i=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=w(a("./node_modules/babel-runtime/helpers/inherits.js")),u=w(a("./node_modules/antd/es/tabs/index.js")),c=w(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=w(a("./node_modules/react/index.js")),f=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=w(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=(w(a("./node_modules/prop-types/index.js")),w(a("./src/redux/services/sysManager/projectManage.js"))),v=a("./node_modules/react-redux/es/index.js"),_=a("./src/components/index.js"),y=a("./src/utils/history.js"),b=a("./src/routes/routeHelper.jsx"),x=w(a("./src/module/sysManage/projectManager/editPage/component/ProjectInfo.jsx")),C=w(a("./src/module/sysManage/projectManager/editPage/component/ResourceQuota.jsx")),j=w(a("./src/module/sysManage/projectManager/editPage/component/UserRelevance.jsx")),S=w(a("./src/module/sysManage/projectManager/editPage/component/ApplyList.jsx")),I=a("./src/module/sysManage/projectManager/util/dataUtil.js"),T=w(a("./src/redux/services/sysManager/userManager.js"));function w(e){return e&&e.__esModule?e:{default:e}}var E=c.default.confirm,D=u.default.TabPane,M=t.ProjectInfoPageDom=f.default.div.withConfig({displayName:"ProjectInfoPageTab__ProjectInfoPageDom",componentId:"sc-1ihmp3x-0"})(["display:flex;width:100%;padding:20px 20px 20px 40px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;.ant-col-2{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:6%;}"]),k=t.ConfigButtonDom=f.default.div.withConfig({displayName:"ProjectInfoPageTab__ConfigButtonDom",componentId:"sc-1ihmp3x-1"})(["text-align:right;line-height:70px;"]),P=t.ErrorUl=f.default.ul.withConfig({displayName:"ProjectInfoPageTab__ErrorUl",componentId:"sc-1ihmp3x-2"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),L={width:"100%"},N=(0,o.default)(_.LoadingIndicator,{position:"relative"}),A=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.getProjectManagers=function(e){for(var t=[],a=0;a<e.length;a++)t.push(e[a].userId);return t},n.fetchCurrentTenantUsers=function(){T.default.getUsersByTenant({filterPlatformAdmin:!0,filterTenantAdmin:!0}).then((function(e){e&&n.setState({projectManagersList:e.data})})).catch((function(){n.setState({projectManagersList:[]})}))},n.componentDidMount=function(){n.fetchCurrentTenantUsers(),"create"!==n.viewType&&(n.setState({loading:!0}),g.default.getProjectInfo(n.projectId).then((function(e){for(var t=m.default.get(e,"data",{}),a=0;t&&a<t.projectSetting.length;a++)t.projectSetting[a].resQuotaConf||(t.projectSetting[a].resQuotaConf={memory:0,cpu:0,gpu:[{gpuModelName:"",gpuNumber:0,gpuModelId:""}]});e&&(n.setState({projectInfo:t,projectManagers:n.getProjectManagers(m.default.get(e,"data.projectManagers",[])),projectGroupAdmin:n.getProjectManagers(m.default.get(e,"data.projectGroupAdmin",[])),loading:!1}),n.moduleData=m.default.get(e,"data",{}))})).catch((function(e){n.setState({projectInfo:{},loading:!1}),r.default.error(e.message)})))},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.cancel=function(){},n.savaOrSubmit=function(){var e={},t={};if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(m.default.isFunction(o)){var s=o.call();s.validate?e[a]=s.moduleData:t[a]=s.errorMsg}})),"{}"!==JSON.stringify(t)){var a=n.errorDom(t);s.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:a,icon:(0,o.default)(h.FrownOutlined,{style:{color:"#f5222d"}})})}else{for(var r in e)n.moduleData=m.default.assign(n.moduleData,e[r]);if(!(0,I.isInclude)(n.state.projectManagersList,n.moduleData))return void c.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u6240\u9009\u8d1f\u8d23\u4eba\u4e2d\u7684\u7ec4\u7ec7\u4e0e\u9879\u76ee\u5f52\u5c5e\u7ec4\u7ec7\u4e0d\u4e00\u81f4\uff0c\u662f\u5426\u4fdd\u5b58?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.setState({modalVisible:!0})}});n.setState({modalVisible:!0})}},n.setProjectManagers=function(e){n.setState({projectManagers:e})},n.formatData=function(e){if(e.projectGroupAdmin&&e.projectGroupAdmin.length>0){var t=[];if(e.projectGroupAdmin[0].userId)for(var a=0;e&&e.projectGroupAdmin&&a<e.projectGroupAdmin.length;a++)t.push(e.projectGroupAdmin[a].userId);e.projectGroupAdmin=t}return e},n.submitModalOk=function(){if(n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.moduleData.projectId=n.projectId,"create"===n.viewType){for(var e=[],t=0;n.moduleData&&n.moduleData.projectManagers&&t<n.moduleData.projectManagers.length;t++)e.push(n.moduleData.projectManagers[t].userId);n.moduleData.projectManagers=e}n.moduleData.projectType=1,n.moduleData=n.formatData(n.moduleData),g.default.updateProject(n.moduleData).then((function(e){m.default.get(e,"data.success",!1)?(r.default.success("\u7f16\u8f91\u6210\u529f\uff01"),n.setState({confirmLoading:!1,modalVisible:!1})):(r.default.error(m.default.get(e,"data.applyResultMessage")),n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}))})).catch((function(e){n.setState({confirmLoading:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),r.default.error(e.message)}))},n.errorDom=function(e){return(0,o.default)(P,{},void 0,Object.keys(e).map((function(t){return(0,o.default)("li",{},t,e[t])})))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){E({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u9879\u76ee\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,y.navigateTo)(b.operationUrl.projectManage())}})},n.onChange=function(e){"apply"===e&&g.default.getApplicationList(n.state.projectInfo.projectId).then((function(e){e&&n.setState({applyList:e.data})})).catch((function(e){r.default.error(e.message)})),n.setState({tabKey:e})},n.viewType=m.default.get(a.match,"params.action",null),n.projectId=m.default.get(a.match,"params.projectId",null),n.state={tabKey:m.default.get(a.match,"params.tab","project"),projectInfo:{},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1,projectManagers:[],projectGroupAdmin:[],projectManagersList:[]},n.moduleData={},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,s=t.projectInfo,r=t.modalTxt,i=t.confirmLoading,d=t.loading,l=t.projectManagers,p=t.projectManagersList,f=t.projectGroupAdmin;return(0,o.default)("div",{style:{width:"100%"}},void 0,(0,o.default)(M,{},void 0,(0,o.default)(c.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:i,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,r)),d&&N,"{}"!==JSON.stringify(s)&&!d&&(0,o.default)(_.ModelConfigPanel,{title:s.projectName,style:L},void 0,(0,o.default)(u.default,{activeKey:this.state.tabKey,onChange:this.onChange},void 0,(0,o.default)(D,{tab:"\u57fa\u7840\u4fe1\u606f"},"project",(0,o.default)(x.default,{viewType:this.viewType,projectInfo:s,setValidateFunc:this.setValidateFunc,projectId:this.projectId,setProjectManagers:this.setProjectManagers,projectManagers:p})),(0,o.default)(D,{tab:"\u8d44\u6e90\u914d\u7f6e\u60c5\u51b5"},"resource",(0,o.default)(C.default,{viewType:this.viewType,projectSetting:s.projectSetting,setValidateFunc:this.setValidateFunc})),(0,o.default)(D,{tab:"\u5e94\u7528\u4fe1\u606f"},"apply","apply"===this.state.tabKey&&(0,o.default)(S.default,{viewType:this.viewType,projectInfo:s})),(0,o.default)(D,{tab:"\u6210\u5458\u4fe1\u606f"},"user",(0,o.default)(j.default,{projectGroupAdmin:f,projectManagers:l,viewType:this.viewType,projectInfo:s})))),"view"!==this.viewType&&"docs"!==this.state.tabKey&&"user"!==this.state.tabKey&&(0,o.default)(k,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.savaOrSubmit()},type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58"))))},t}(p.default.PureComponent);t.default=(0,v.connect)((function(){return{}}))(A)},"./src/module/sysManage/projectManager/editPage/component/ApplyInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ProjectInfoDom=void 0;var n=x(a("./node_modules/antd/es/row/index.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/antd/es/message/index.js")),r=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=x(a("./node_modules/babel-runtime/helpers/inherits.js")),l=x(a("./node_modules/antd/es/input/index.js")),u=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=x(a("./node_modules/react/index.js")),p=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=a("./src/redux/selectors/checkName.js"),h=x(a("./src/components/common/CheckName.jsx")),g=a("./src/utils/authPermit.js"),v=x(a("./src/redux/services/sysManager/projectManage.js")),y=x(a("./src/redux/services/sysManager/appClassification.js")),b=a("./node_modules/react-redux/es/index.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=u.default.Option,j=l.default.TextArea,S=t.ProjectInfoDom=p.default.div.withConfig({displayName:"ApplyInfo__ProjectInfoDom",componentId:"sc-1y1okip-0"})([".ant-row{display:flex;}.ant-form-item{margin-bottom:16px;}.ant-legacy-form-item-label{width:80px;}"]),I=f.Form.Item,T=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.componentDidUpdate=function(e){_.isEqual(e.applicationsData,n.props.applicationsData)||n.setModelData(n.props.applicationsData)},n.setModelData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.state.applicationClassifyOptions,a=_.get(e,"parentApplicationClass",n.props.parentClassTypeId);if(n.modelData={projectApplicationId:_.get(e,"projectApplicationId",null),applicationId:_.get(e,"applicationId",""),applicationName:_.get(e,"applicationName",""),applicationDesc:_.get(e,"applicationDesc",""),applicationClass:_.get(e,"applicationClass",n.props.classTypeId),parentApplicationClass:a},n.props.form.setFieldsValue(n.modelData),a&&Array.isArray(t)&&t.length>0){var o=_.find(t,{parentApplicationTypeId:a});n.setState({applicationSubClassifyOptions:_.get(o,"applicationTypes",[])})}},n.fetchData=function(){v.default.getProjectInfo(n.projectId).then((function(e){e&&n.setState({projectName:_.get(e,"data.projectName")})})).catch((function(e){s.default.error(e.message)})),n.setState({loading:!0}),y.default.getAppClassificationList({}).then((function(e){n.setState({applicationClassifyOptions:e.data,loading:!1}),n.setModelData(n.modelData,e.data)})).catch((function(){n.setState({loading:!1})}))},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&(a(r),n.props.form.setFields({applicationName:{errors:[new Error(r)]}})),a()},n.handleCheckIdValidate=function(e,t,a){n.state.applicationIdIsRepeat&&a("\u5e94\u7528ID\u91cd\u590d"),a()},n.validateFun=function(){var e=!1;return n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u57fa\u7840\u4fe1\u606f"}},n.getModelNameBlur=function(e){n.props.form.setFieldsValue({applicationName:e}),n.modelData.applicationName=e},n.getValBlur=function(e,t){n.modelData[t]=e,n.props.form.setFieldsValue({type:e})},n.handleAppClassChange=function(e){var t=_.find(n.state.applicationClassifyOptions,{parentApplicationTypeId:e});n.setState({applicationSubClassifyOptions:_.get(t,"applicationTypes",[])}),n.modelData.applicationClass="",n.props.form.setFieldsValue({applicationClass:void 0})},n.handleAppIdChangeConfirm=function(e){_.trim(e.target.value)&&(y.default.checkAppIdRepeat({projectId:n.props.projectId,projectApplicationId:n.modelData.projectApplicationId,applicationId:e.target.value}).then((function(e){_.get(e,"data.isRepeat")?(n.props.form.setFields({applicationId:{errors:[new Error("\u5e94\u7528ID\u91cd\u590d")]}}),n.setState({applicationIdIsRepeat:!0})):(n.props.form.setFields({applicationId:{}}),n.setState({applicationIdIsRepeat:!1}))})),n.getValBlur(e.target.value,"applicationId"))},n.checkNameRef=c.default.createRef(),n.state={projectName:"",loading:!1,applicationClassifyOptions:[],applicationSubClassifyOptions:[],applicationIdIsRepeat:!1};var o=n.props.setValidateFunc;_.isFunction(o)&&o("applyInfo",n.validateFun);var d=(0,g.getCurrentContext)(),l=d.role,u=d.id;return n.projectId=a.projectId,"PROJECT"!==l||n.projectId||(n.projectId=u),n.setModelData(a.applicationsData,[]),n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,o.default)(S,{},void 0,(0,o.default)(f.Form,{layout:"horizontal"},void 0,(0,o.default)(n.default,{},void 0,(0,o.default)("span",{style:{marginLeft:6,marginBottom:16}},void 0,"\u9879\u76ee\u540d\u79f0 : "),(0,o.default)("span",{style:{marginLeft:8}},void 0,this.state.projectName)),(0,o.default)(n.default,{},void 0,(0,o.default)(I,{label:"\u5e94\u7528\u5927\u7c7b"},void 0,t("parentApplicationClass",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u5206\u7c7b"}],initialValue:this.modelData.parentApplicationClass})((0,o.default)(u.default,{showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},loading:this.state.loading,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u5927\u7c7b",onChange:function(t){return e.handleAppClassChange(t)},style:{width:"200px"}},void 0,Array.isArray(this.state.applicationClassifyOptions)&&this.state.applicationClassifyOptions.map((function(e){return(0,o.default)(C,{value:e.parentApplicationTypeId,label:e.parentApplicationTypeName},e.parentApplicationTypeId,e.parentApplicationTypeName)}))))),(0,o.default)(I,{label:"\u5e94\u7528\u5c0f\u7c7b",style:{marginLeft:24}},void 0,t("applicationClass",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u5c0f\u7c7b"}],initialValue:this.modelData.applicationClass})((0,o.default)(u.default,{loading:this.state.loading,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u5c0f\u7c7b",onChange:function(t){return e.getValBlur(t,"applicationClass")},style:{width:"200px"},showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(this.state.applicationSubClassifyOptions)&&this.state.applicationSubClassifyOptions.map((function(e){return(0,o.default)(C,{value:e.applicationTypeId,label:e.applicationTypeName},e.applicationTypeId,e.applicationTypeName)})))))),(0,o.default)(n.default,{},void 0,(0,o.default)(I,{label:"\u5e94\u7528\u540d\u79f0"},void 0,t("applicationName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5e94\u7528\u540d\u79f0"},{validator:this.handleCheckNameValidate}],initialValue:this.modelData.applicationName})(c.default.createElement(h.default,{ref:this.checkNameRef,source:"projectApplication",style:{width:"200px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:"create"===this.props.viewType?"":this.modelData.projectApplicationId,fId:this.props.projectId,updateNameCallback:this.getModelNameBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\projectManager\\editPage\\component\\ApplyInfo.jsx",lineNumber:279}}))),(0,o.default)(I,{label:"\u5e94\u7528ID",style:{marginLeft:24}},void 0,t("applicationId",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5e94\u7528ID"},{max:20,message:"\u5e94\u7528ID\u4e0d\u5f97\u8d85\u8fc720\u4e2a\u5b57\u7b26"},{pattern:/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/,message:"\u4ec5\u652f\u6301\u5c0f\u5199\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e2d\u5212\u7ebf\uff0c\u4e0d\u80fd\u4ee5\u4e2d\u5212\u7ebf\u5f00\u5934\u7ed3\u5c3e"},{validator:this.handleCheckIdValidate}],initialValue:this.modelData.applicationId})((0,o.default)(l.default,{style:{width:"200px"},disabled:"create"!==this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u5e94\u7528\u7f16\u7801",onBlur:this.handleAppIdChangeConfirm})))),(0,o.default)(n.default,{},void 0,(0,o.default)(I,{label:"\u5e94\u7528\u63cf\u8ff0"},void 0,t("applicationDesc",{rules:[{max:300,message:"\u5e94\u7528\u63cf\u8ff0\u4e0d\u5f97\u8d85\u8fc7300\u4e2a\u5b57\u7b26"}],initialValue:this.modelData.applicationDesc})((0,o.default)(j,{disabled:"view"===this.props.viewType,autoSize:{minRows:5,maxRows:8},style:{width:635,marginRight:10,min:0,max:450},onBlur:function(t){return e.getValBlur(t.target.value,"applicationDesc")},rows:8}))))))},t}(c.default.PureComponent);t.default=(0,b.connect)((function(e){return{checkNameVerifyInfo:(0,m.selectVerifyInfo)(e)}}))(f.Form.create()(T))},"./src/module/sysManage/projectManager/editPage/component/ApplyInfoPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ApplyInfoPageDom=void 0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/antd/es/modal/index.js")),s=h(a("./node_modules/antd/es/message/index.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var l=h(a("./node_modules/react/index.js")),u=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./src/components/index.js"),p=a("./node_modules/react-redux/es/index.js"),f=h(a("./src/redux/services/sysManager/projectManage.js")),m=h(a("./src/module/sysManage/projectManager/editPage/component/ApplyInfo.jsx"));function h(e){return e&&e.__esModule?e:{default:e}}var g=t.ApplyInfoPageDom=u.default.div.withConfig({displayName:"ApplyInfoPage__ApplyInfoPageDom",componentId:"sc-8c00x4-0"})([""]),v={width:"100%"},y=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.componentDidMount=function(){n.props.onRef(n),n.fetchData()},n.fetchData=function(){"create"!==n.props.viewType&&(n.setState({loading:!0}),f.default.getApplicationsInfo(n.props.projectApplicationId,n.props.projectInfo.projectId).then((function(e){e&&n.setState({applicationsData:e.data,loading:!1,checkBox:!!(_.get(e.data,"applicationSetting")&&_.get(e.data,"applicationSetting").length>0)})})).catch((function(e){n.setState({applicationsData:null,loading:!1}),s.default.error(e.message)})))},n.savaOrSubmit=function(){var e={},t=n,a=!0;Object.keys(n.validateFuncs).map((function(t){var o=n.validateFuncs[t];if(_.isFunction(o)){var s=o.call();"resourceQuota"===t?e.applicationSetting=s.moduleData:e=_.assign(e,s.moduleData),a&&(a=s.validate)}})),a&&o.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.state.checkBox||(e.applicationSetting=[]),t.props.submitModalOk(e)},onCancel:function(){}})},n.onChangeCheckBox=function(e){n.setState({checkBox:e})},n.state={applicationsData:null,checkBox:!0},n.moduleData={},n.validateFuncs={},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.viewType,a=e.projectInfo,o=e.classTypeId,s=e.parentClassTypeId,r=this.state.applicationsData;return(0,n.default)(g,{},void 0,(0,n.default)("div",{},void 0,(0,n.default)(c.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:v},void 0,(0,n.default)(m.default,{projectId:a.projectId,viewType:t,applicationsData:r,classTypeId:o,parentClassTypeId:s,setValidateFunc:this.setValidateFunc}))))},t}(l.default.PureComponent);t.default=(0,p.connect)((function(){return{}}))(y)},"./src/module/sysManage/projectManager/editPage/component/ApplyList.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ProjectInfoDom=void 0;var n=y(a("./node_modules/antd/es/divider/index.js")),o=y(a("./node_modules/antd/es/table/index.js")),s=y(a("./node_modules/antd/es/button/index.js")),r=y(a("./node_modules/antd/es/tooltip/index.js")),i=y(a("./node_modules/babel-runtime/helpers/jsx.js")),d=y(a("./node_modules/antd/es/modal/index.js")),l=y(a("./node_modules/antd/es/message/index.js")),u=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var f=y(a("./node_modules/react/index.js")),m=(y(a("./node_modules/prop-types/index.js")),y(a("./src/redux/services/sysManager/projectManage.js"))),h=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/components/index.js"),v=a("./node_modules/react-redux/es/index.js"),_=y(a("./src/module/sysManage/projectManager/editPage/component/ApplyInfoPage.jsx"));function y(e){return e&&e.__esModule?e:{default:e}}var b=t.ProjectInfoDom=h.default.div.withConfig({displayName:"ApplyList__ProjectInfoDom",componentId:"sc-1giuleu-0"})([".header{margin-bottom:16px;}"]),x=(0,i.default)("span",{},void 0,"\u5e8f\u53f7"),C=(0,i.default)(n.default,{type:"vertical"}),j=(0,i.default)(g.LoadingIndicator,{position:"relative"}),S=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.componentDidMount=function(){n.fetchData()},n.fetchData=function(){m.default.getApplicationList(n.props.projectInfo.projectId).then((function(e){e&&n.setState({applyList:e.data})})).catch((function(e){l.default.error(e.message)}))},n.handleOnChange=function(e,t){var a=n;"delete"===t?d.default.confirm({title:"\u63d0\u793a\u4fe1\u606f",content:"\u786e\u5b9a\u5220\u9664 ["+e.applicationName+"] \u64cd\u4f5c\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,o){m.default.deleteApplication(e.projectApplicationId,n.props.projectInfo.projectId).then((function(e){a.fetchData(),l.default.success(e.message),t()})).catch((function(e){o(),l.default.error(e.message)}))}))}}):(n.projectApplicationId=e.projectApplicationId,n.setState({modalVisible:!0,viewType:"edit"}))},n.callVisible=function(){n.setState({modalVisible:!1})},n.openVisible=function(){n.setState({modalVisible:!0,viewType:"create"})},n.submitModalOk=function(e){for(var t=0;e.applicationSetting&&t<e.applicationSetting.length;t++)"gpu_card"===e.applicationSetting[t].resQuotaConf.gpuType?e.applicationSetting[t].resQuotaConf.gpu_storage=0:e.applicationSetting[t].resQuotaConf.gpu_card=0,delete e.applicationSetting[t].resQuotaConf.gpuType,delete e.applicationSetting[t].resQuotaConf.max_cpu,delete e.applicationSetting[t].resQuotaConf.max_gpu_card,delete e.applicationSetting[t].resQuotaConf.max_gpu_storage,delete e.applicationSetting[t].resQuotaConf.max_memory,delete e.applicationSetting[t].resQuotaConf.max_storage;n.setState({submitloading:!0}),m.default.editApplication(e,n.props.projectInfo,n.state.viewType).then((function(){l.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),n.setState({submitloading:!1,modalVisible:!1}),n.fetchData()})).catch((function(e){n.setState({submitloading:!1}),l.default.error(e.message)}))},n.state={applyList:[],modalVisible:!1,submitloading:!1,viewType:""},n.columns=[{title:x,width:"7%",dataIndex:"index",render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"\u5e94\u7528\u540d\u79f0",dataIndex:"applicationName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5e94\u7528\u7f16\u7801",dataIndex:"applicationId",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",width:120,render:function(e){return(0,i.default)(g.LineWrap,{title:e||"--",lineClampNum:1})}},{title:"\u63cf\u8ff0",dataIndex:"applicationDesc",width:200,render:function(e){return(0,i.default)(g.LineWrap,{title:e||"--",lineClampNum:1})}}],"view"!==n.props.viewType&&n.columns.push({title:"\u64cd\u4f5c",width:220,render:function(e,t){return(0,i.default)("div",{},void 0,(0,i.default)("a",{href:"javascript:;",onClick:function(){n.handleOnChange(t,"edit")}},void 0,"\u4fee\u6539"),(0,i.default)("span",{},void 0,C,(0,i.default)("a",{href:"javascript:;",onClick:function(){n.handleOnChange(t,"delete")}},void 0,"\u5220\u9664")))}}),n}return(0,p.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.applyList;return(0,i.default)(b,{},void 0,(0,i.default)(g.ModalView,{modalTitle:"edit"===this.state.viewType?"\u5e94\u7528\u4fee\u6539":"\u5e94\u7528\u65b0\u5efa",onCancelType:!1,confirmLoading:this.state.submitloading,width:1e3,callVisible:this.callVisible,modalVisible:this.state.modalVisible,okText:"\u4fdd \u5b58",submitModalOk:function(){e.applyInfoPage.savaOrSubmit()},comp:(0,i.default)(_.default,{viewType:this.state.viewType,onRef:function(t){e.applyInfoPage=t},projectInfo:this.props.projectInfo,projectApplicationId:this.projectApplicationId,submitModalOk:this.submitModalOk})}),"view"!==this.props.viewType&&(0,i.default)("div",{className:"header"},void 0,(0,i.default)(s.default,{className:"saveButton",onClick:this.openVisible,type:"primary"},void 0,"\u65b0\u5efa\u5e94\u7528")),this.state.loading&&j,!this.state.loading&&(0,i.default)(o.default,{dataSource:t,rowKey:"applicationId",bordered:!0,pagination:!1,columns:this.columns}))},t}(f.default.PureComponent);t.default=(0,v.connect)((function(){return{}}))(S)},"./src/module/sysManage/projectManager/editPage/component/ProjectInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ProjectInfoDom=void 0;var n=j(a("./node_modules/antd/es/tooltip/index.js")),o=j(a("./node_modules/antd/es/col/index.js")),s=j(a("./node_modules/antd/es/row/index.js")),r=j(a("./node_modules/babel-runtime/helpers/jsx.js")),i=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=j(a("./node_modules/babel-runtime/helpers/inherits.js")),u=j(a("./node_modules/antd/es/select/index.js")),c=j(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=j(a("./node_modules/react/index.js")),f=(j(a("./node_modules/prop-types/index.js")),j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./src/redux/selectors/checkName.js"),v=j(a("./src/components/common/CheckName.jsx")),y=a("./node_modules/react-redux/es/index.js"),b=j(a("./src/redux/services/sysManager/userManager.js")),x=j(a("./src/redux/services/sysManager/projectManage.js")),C=a("./src/utils/authPermit.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=c.default.TextArea,I=t.ProjectInfoDom=f.default.div.withConfig({displayName:"ProjectInfo__ProjectInfoDom",componentId:"afxwnx-0"})([".ant-row{line-height:60px;display:flex;}"]),T=u.default.Option,w=h.Form.Item,E=(0,r.default)(T,{value:""},void 0,"\u8bf7\u9009\u7ec4\u7ec7\u673a\u6784"),D=(0,r.default)(T,{value:""},void 0,"\u8bf7\u9009\u62e9\u5f52\u5c5e\u9879\u76ee\u7ec4"),M=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.getSysOrgList=function(){b.default.getSysOrgList().then((function(e){n.setState({orgList:e.data})}))},n.setProjectManagers=function(e){for(var t=[],a=0;a<e.length;a++)t.push(e[a].userId);return t},n.componentDidMount=function(){n.fetchCurrentTenantUsers(),n.fetchCurrentUserTenant(),n.getSysOrgList(),n.fetchGroupListData()},n.fetchGroupListData=function(){x.default.getProjectList({projectName:"",sortType:"CREATE_AT.DESC",projectType:2}).then((function(e){n.setState({projectGroupList:e.data?e.data:[]}),"create"!==n.props.viewType&&n.getProjectGroupAdmin(e.data,_.get(n.props.projectInfo,"projectPid"))})).catch((function(e){n.setState({projectGroupList:[]}),message.error(e.message)}))},n.fetchCurrentTenantUsers=function(){b.default.getUsersByTenant({filterPlatformAdmin:!0,filterTenantAdmin:!0}).then((function(e){e&&n.setState({projectManagers:e.data})})).catch((function(){n.setState({projectManagers:[]})}))},n.fetchCurrentUserTenant=function(){var e=(0,C.getUserId)();b.default.getUserInfo({userId:e}).then((function(e){var t=e.data,a=t.tenantId,o=t.tenantId_name;a&&(n.setState({userTenants:[{tenantId:a,tenantName:o}]}),n.modelData.tenantId=a,n.props.form.setFieldsValue({tenantId:a}))}))},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=n.props.checkNameVerifyInfo.toJS(),a=t.verifyStatus,o=t.verifyMsg;return t.loading?{validate:!1,errorMsg:"\u540d\u79f0\u9a8c\u8bc1\u4e2d\u3001\u7a0d\u540e\u63d0\u4ea4!"}:-1===a?{validate:!1,errorMsg:o}:e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u57fa\u7840\u4fe1\u606f"}},n.getModelNameBlur=function(e){n.props.form.setFieldsValue({projectName:e}),n.modelData.projectName=e?e.trim():e},n.getNameBlurCallback=function(e){e&&"create"===n.props.viewType&&x.default.getProjectIdProduce(e).then((function(e){e&&(n.props.form.setFieldsValue({projectId:e.data}),n.modelData.projectId=e.data,x.default.checkAccessPathRepeat({projectId:e.data}).then((function(t){_.get(t,"data.isRepeat")?(n.props.form.setFields({projectId:{errors:[new Error("\u9879\u76eeID\u91cd\u590d")]}}),n.props.form.setFields({projectId:e.data}),n.setState({projectIdVerify:!0})):n.setState({projectIdVerify:!1})})))})).catch((function(){n.props.form.setFieldsValue({projectId:""})}))},n.getAccessPathsBlur=function(e){_.trim(e)&&(x.default.checkAccessPathRepeat({projectId:e}).then((function(e){_.get(e,"data.isRepeat")?(n.props.form.setFields({projectId:{errors:[new Error("\u9879\u76eeID\u91cd\u590d")]}}),n.setState({projectIdVerify:!0})):n.setState({projectIdVerify:!1})})),n.props.form.setFieldsValue({projectId:e}),n.modelData.projectId=e)},n.getValBlur=function(e,t){"projectManagers"===t&&"create"!==n.props.viewType&&n.props.setProjectManagers(e),"projectPid"===t&&n.getProjectGroupAdmin(n.state.projectGroupList,e),n.modelData[t]=e,n.props.form.setFieldsValue({type:e})},n.handleAccessPathRepeatValidate=function(e,t,a){n.state.projectIdVerify&&a("\u9879\u76eeID\u91cd\u590d"),a()},n.getProjectGroupAdmin=function(e,t){var a="",o=e[_.findIndex(e,(function(e){return e.projectId==t}))];if(o&&o.projectGroupAdmins)for(var s=0;o&&s<o.projectGroupAdmins.length;s++)a+=_.get(o.projectGroupAdmins[s],"userName"),s+1<o.projectGroupAdmins.length&&(a+=",");n.setState({projectGroupAdmins:a})},n.checkNameRef=p.default.createRef();var o=n.props.setValidateFunc;return _.isFunction(o)&&o("projectInfo",n.validateFun),n.state={projectManagers:[],projectIdVerify:!1,userTenants:[],orgList:[],projectGroupList:[],projectGroupAdmins:"--"},n.modelData={projectName:_.get(a.projectInfo,"projectName",""),projectDesc:_.get(a.projectInfo,"projectDesc",""),projectGroupAdmin:n.setProjectManagers(_.get(a.projectInfo,"projectGroupAdmin",[])),projectManagers:n.setProjectManagers(_.get(a.projectInfo,"projectManagers",[])),projectId:_.get(a.projectInfo,"projectId",""),projectPid:_.get(a.projectInfo,"projectPid",""),orgId:_.get(a.projectInfo,"orgId","")},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,i=a.orgList,d=a.projectGroupList,l=a.projectGroupAdmins;return(0,r.default)(I,{},void 0,(0,r.default)(h.Form,{layout:"horizontal"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u9879\u76ee\u540d\u79f0"},void 0,t("projectName",{rules:[{required:!0,message:"\u9879\u76ee\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"},{validator:this.handleCheckNameValidate}],initialValue:this.modelData.projectName})(p.default.createElement(v.default,{ref:this.checkNameRef,source:"project",style:{width:"350px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:"create"===this.props.viewType?"":this.props.projectId,updateNameCallback:this.getModelNameBlur,getNameBlurCallback:this.getNameBlurCallback,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\projectManager\\editPage\\component\\ProjectInfo.jsx",lineNumber:283}})))),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u9879\u76eeID"},void 0,t("projectId",{rules:[{required:"create"===this.props.viewType,message:"\u9879\u76eeID\u4e0d\u80fd\u4e3a\u7a7a"},{min:2,max:"create"===this.props.viewType?8:32,message:"\u9879\u76eeID\u4e0d\u80fd\u8d85\u8fc78\u4e2a\u5b57\u7b26"},{pattern:"create"===this.props.viewType&&/^[a-z][a-z0-9-]{0,6}[a-z0-9]$/,message:"\u9879\u76eeID\u7531\u5c0f\u5199\u5b57\u6bcd\u3001\u6570\u5b57\u7ec4\u6210\u4e14\u81f3\u5c112\u4e2a\u5b57\u7b26\u5fc5\u987b\u5c0f\u5199\u5b57\u6bcd\u5f00\u5934\u3001\u4e0d\u80fd\u4ee5-\u7ed3\u5c3e"},{validator:"create"===this.props.viewType&&this.handleAccessPathRepeatValidate}],initialValue:this.modelData.projectId})((0,r.default)(c.default,{disabled:"create"!==this.props.viewType,style:{width:"350px"},placeholder:"\u8bf7\u8f93\u5165\u9879\u76eeID",onBlur:function(t){return e.getAccessPathsBlur(t.target.value)}}))))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u5f52\u5c5e\u7ec4\u7ec7"},void 0,t("orgId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5f52\u5c5e\u7ec4\u7ec7"}],initialValue:this.modelData.orgId})((0,r.default)(u.default,{disabled:"edit"===this.props.viewType||"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"orgId")},getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u7ec4\u7ec7\u673a\u6784",style:{width:350},showSearch:!0,filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,E,i.map((function(e){return(0,r.default)(T,{value:e.orgId},e.orgId,e.orgName)}))))))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{style:{marginLeft:"-11px"},span:12},void 0,(0,r.default)(w,{label:"\u5f52\u5c5e\u9879\u76ee\u7ec4"},void 0,t("projectPid",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5f52\u5c5e\u9879\u76ee\u7ec4"}],initialValue:this.modelData.projectPid})((0,r.default)(u.default,{disabled:"edit"===this.props.viewType||"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"projectPid")},getPopupContainer:function(e){return e.parentNode},style:{width:350},showSearch:!0,filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,D,d.map((function(e){return(0,r.default)(T,{value:e.projectId},e.projectId,e.projectName)})))))),(0,r.default)(o.default,{style:{marginLeft:"-13px"},span:12},void 0,(0,r.default)(w,{label:"\u9879\u76ee\u7ec4\u7ba1\u7406\u5458"},void 0,l))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:" \u8d1f \u8d23 \u4eba"},void 0,t("projectManagers",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u9879\u76ee\u8d1f\u8d23\u4eba"}],initialValue:this.modelData.projectManagers})((0,r.default)(u.default,{mode:"multiple",maxTagCount:2,maxTagTextLength:4,optionFilterProp:"children",filterOption:function(e,t){return(_.get(t,"props.title","")||"").includes(e)||(_.get(t,"key","")||"").includes(e)},disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"projectManagers")},style:{width:"350px"},placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee\u8d1f\u8d23\u4eba"},void 0,this.state.projectManagers.map((function(e){return(0,r.default)(T,{title:e.userName,value:e.userId},e.userId,e.userName," ( ",e.userId," )( ",e.orgName?e.orgName:"\u65e0"," )")})))))),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:" \u79df \u6237 "},void 0,t("tenantId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u79df\u6237"}],initialValue:this.modelData.tenantId})((0,r.default)(u.default,{disabled:_.get((0,C.getUserAdditionalInfo)(),"isTenantAdmin")||"create"!==this.props.viewType,onChange:function(t){return e.getValBlur(t,"tenantId")},style:{width:"350px"},placeholder:"\u8bf7\u9009\u62e9\u79df\u6237"},void 0,this.state.userTenants.map((function(e){return(0,r.default)(T,{title:e.tenantName,value:e.tenantId},e.tenantId,e.tenantName)})))),(!Array.isArray(this.state.userTenants)||0===this.state.userTenants.length)&&(0,r.default)(n.default,{placement:"top",trigger:"hover",title:"\u4f60\u8fd8\u6ca1\u6709\u6240\u5c5e\u79df\u6237\uff0c\u65e0\u6cd5\u521b\u5efa\u3002"},void 0,(0,r.default)(m.WarningOutlined,{style:{height:40,lineHeight:"40px",color:"#FCD00D",frontSize:16,marginLeft:16}}))))),(0,r.default)(w,{style:{marginLeft:10},label:"\u9879\u76ee\u63cf\u8ff0"},void 0,t("projectDesc",{rules:[{max:300,message:"\u9879\u76ee\u63cf\u8ff0\u4e0d\u5f97\u8d85\u8fc7300\u4e2a\u5b57\u7b26"}],initialValue:this.modelData.projectDesc})((0,r.default)(S,{disabled:"view"===this.props.viewType,autosize:{minRows:5,maxRows:8},style:{width:650,marginRight:10,min:0,max:450},onBlur:function(t){return e.getValBlur(t.target.value,"projectDesc")},rows:8})))))},t}(p.default.PureComponent);t.default=(0,y.connect)((function(e){return{checkNameVerifyInfo:(0,g.selectVerifyInfo)(e)}}))(h.Form.create()(M))},"./src/module/sysManage/projectManager/editPage/component/ResourceQuota.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ConfigButtonDom=t.ResourceQuotaDom=void 0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/babel-runtime/helpers/jsx.js")),s=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=v(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=v(a("./node_modules/react/index.js")),l=(v(a("./node_modules/prop-types/index.js")),v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/utils/authPermit.js"),p=v(a("./src/module/sysManage/projectManager/editPage/component/data.json")),f=a("./src/components/auth/textAuth.jsx"),m=v(a("./src/redux/services/sysManager/projectManage.js")),h=a("./src/module/sysManage/projectManager/util/dataUtil.js"),g=v(a("./src/module/sysManage/projectManager/editPage/component/ResourceQuotaConfig.jsx"));function v(e){return e&&e.__esModule?e:{default:e}}var y=t.ResourceQuotaDom=l.default.div.withConfig({displayName:"ResourceQuota__ResourceQuotaDom",componentId:"sc-1ll317s-0"})([""]),b=t.ConfigButtonDom=l.default.div.withConfig({displayName:"ResourceQuota__ConfigButtonDom",componentId:"sc-1ll317s-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),x=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.updateSetProjectSetting=function(e){for(var t=0;e&&t<e.length;t++)e[t].resQuotaConf&&""!==e[t].resQuotaConf.cpu&&null!==e[t].resQuotaConf.cpu?e[t].resQuotaConf.gpu&&0===e[t].resQuotaConf.gpu.length&&e[t].resQuotaConf.gpu.push({gpuNumber:0,gpuModelId:"",gpuModelName:""}):e[t].applyResQuotaConf&&e[t].applyResQuotaConf.gpu&&0===e[t].applyResQuotaConf.gpu.length&&e[t].applyResQuotaConf.gpu.push({gpuNumber:0,gpuModelId:"",gpuModelName:""});return e},n.setFileValidateFunc=function(e,t){n.fileFuncs[e]=t},n.componentDidMount=function(){if(_.get((0,c.getUserAdditionalInfo)(),"isTenantAdmin",!1)){var e=_.get((0,c.getUser)(),"tenantId");m.default.getTenantsResource(e).then((function(e){e&&n.setState({availableQuota:e.data})})).catch((function(){}))}m.default.getAllGpu().then((function(e){e&&n.setState({allGpuType:e.data})})).catch((function(){n.setState({allGpuType:p.default})}))},n.validateFun=function(){var e=!0,t=[];if(Object.keys(n.fileFuncs).map((function(a){var o=n.fileFuncs[a];if(_.isFunction(o)){var s=o.call();e&&(t.push(_.get(s,"moduleData")),e=s.validate)}})),!e)return{validate:!1,error:"\u8bf7\u6b63\u786e\u586b\u5199\u8d44\u6e90\u914d\u989d\uff01"};for(var a=!1,o=0;o<t.length;o++){for(var s=0;s<t[o].resQuotaConf.gpu.length;s++)if(0!==t[o].resQuotaConf.gpu[s].gpuNumber&&""===t[o].resQuotaConf.gpu[s].gpuModelId){a=!0;break}if(a)break}if(a)return{validate:e,error:"\u8bf7\u6b63\u786e\u586b\u5199\u8d44\u6e90\u914d\u989d\uff01"};if(!t||null===t||""===t||0===t.length)return{validate:e,error:"\u8bf7\u6b63\u786e\u586b\u5199\u8d44\u6e90\u914d\u989d\uff01\u8054\u7cfb\u7ba1\u7406\u5458"};for(var r=0;t&&r<t.length;r++){for(var i=[],d=0;t[r].resQuotaConf&&d<t[r].resQuotaConf.gpu.length;d++)0!==t[r].resQuotaConf.gpu[d].gpuNumber&&i.push(t[r].resQuotaConf.gpu[d]);t[r].resQuotaConf.gpu=[].concat(i)}if(!n.props.onClickSave)return{validate:e,moduleData:{projectSetting:t}};n.props.onClickSave({validate:e,moduleData:{projectSetting:t}})};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("projectSetting",n.validateFun),n.state={allGpuType:[],availableQuota:[],modelData:"create"===a.viewType?(0,h.initResQuotaConf)((0,f.hasText)("root.app.defaultResource")):n.updateSetProjectSetting(_.get(a,"projectSetting",(0,h.initResQuotaConf)((0,f.hasText)("root.app.defaultResource"))))},n.fileFuncs={},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modelData,s=t.availableQuota,r=t.allGpuType;return(0,o.default)(y,{},void 0,a.map((function(t,a){return(0,o.default)(g.default,{viewType:e.props.viewType,index:a,data:t,setFileValidateFunc:e.setFileValidateFunc,profileName:(0,h.getResQuotaType)(t.profile),availableQuota:s,gpuTypes:(0,h.formatAllGpuType)(r,t.profile)},a)})),this.props.onClickSave&&(0,o.default)(b,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.validateFun()},type:"primary",loading:this.props.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(x)},"./src/module/sysManage/projectManager/editPage/component/ResourceQuotaConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ResourceQuotaConfigDom=void 0;var n,o,s=j(a("./node_modules/antd/es/button/index.js")),r=j(a("./node_modules/antd/es/input-number/index.js")),i=j(a("./node_modules/antd/es/col/index.js")),d=j(a("./node_modules/antd/es/row/index.js")),l=j(a("./node_modules/babel-runtime/helpers/jsx.js")),u=j(a("./node_modules/babel-runtime/helpers/extends.js")),c=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=j(a("./node_modules/babel-runtime/helpers/inherits.js")),m=j(a("./node_modules/antd/es/select/index.js")),h=j(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var g=j(a("./node_modules/react/index.js")),v=(j(a("./node_modules/prop-types/index.js")),j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),y=a("./src/utils/authPermit.js"),b=a("./node_modules/@ant-design/icons/es/index.js"),x=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var C=a("./node_modules/react-redux/es/index.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=h.default.Group,I=m.default.Option,T=t.ResourceQuotaConfigDom=v.default.div.withConfig({displayName:"ResourceQuotaConfig__ResourceQuotaConfigDom",componentId:"sc-3mptt6-0"})([".ant-radio-group{line-height:45px;}.ant-radio-wrapper{width:290px;}.ant-row{display:flex;margin-bottom:10px;}.ant-form-data-label{display:inline-block;overflow:hidden;line-height:39.9999px;white-space:nowrap;text-align:right;vertical-align:middle;width:105px;white-space:nowrap;text-align:right;flex-shrink:0;}.ant-col-6{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:250px;height:50px;}"]),w=x.Form.Item,E={width:120},D=["resQuotaConf"],M=(0,l.default)(I,{value:""},void 0,"\u8bf7\u9009\u62e9"),k=(0,l.default)(i.default,{span:6}),P=(0,l.default)(b.PlusOutlined,{}),L=(0,l.default)(b.MinusOutlined,{}),N=(n=function(e){function t(a){(0,c.default)(this,t);var n=(0,p.default)(this,e.call(this,a));o.call(n);var s=n.props,r=s.setFileValidateFunc,i=s.index,d=s.data,l=s.viewType;_.isFunction(r)&&r("setting"+i,n.validateFun);var f=_.get(d,n.getRadioValue()+".gpu",[]);return n.state={radioValue:n.getRadioValue(),gpuList:f.map((function(e){return(0,u.default)({},e,{key:_.uniqueId()})})),selectedGpuModelId:n.setSelectedGpuModelId(_.get(d,n.getRadioValue()+".gpu"),l)},n.modelData=d,n}return(0,f.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.radioValue,n=t.gpuList,o=t.selectedGpuModelId,u=this.props.form.getFieldDecorator,c=this.props,p=c.availableQuota,f=c.profileName;return(0,l.default)(T,{},void 0,(0,l.default)(x.Form,{layout:"horizontal"},void 0,(0,l.default)(S,{value:a,onChange:function(t){return e.getValBlur(t.target.value,null)}},void 0,-1!==_.indexOf(D,"resQuotaConf")&&(0,l.default)(h.default,{value:"resQuotaConf"},void 0,f,"\u96c6\u7fa4\u914d\u989d"),-1!==_.indexOf(D,"limitSetting")&&(0,l.default)(h.default,{value:"limitSetting"},void 0,f,"\u96c6\u7fa4\u9650\u989d")),_.get((0,y.getUserAdditionalInfo)(),"isTenantAdmin",!0)&&this.quotaResourceDom(p,this.props.data.profile),(0,l.default)(d.default,{},void 0,(0,l.default)(i.default,{span:6},void 0,(0,l.default)(w,{style:{marginLeft:10},label:"CPU\uff08core\uff09"},void 0,u("cpu",{rules:[{required:!0,message:"CPU\u4e0d\u80fd\u4e3a\u7a7a"}],initialValue:this.modelData[a]?this.modelData[a].cpu:""})((0,l.default)(r.default,{style:E,min:0,onChange:function(t){e.getValBlur(t,"cpu")}})))),(0,l.default)(i.default,{span:6},void 0,(0,l.default)(w,{style:{marginLeft:10},label:"\u5185\u5b58\uff08GB\uff09"},void 0,u("memory",{rules:[{required:!0,message:"\u5185\u5b58\u4e0d\u80fd\u4e3a\u7a7a"}],initialValue:this.modelData[a]?this.modelData[a].memory:""})((0,l.default)(r.default,{style:E,min:0,onChange:function(t){e.getValBlur(t,"memory")}}))))),(!n||0===n.length)&&(0,l.default)(d.default,{style:{height:50}},void 0,(0,l.default)(s.default,{type:"primary",onClick:function(){return e.saveGpuVal()},style:{marginLeft:16}},void 0,"\u6dfb \u52a0")),n.map((function(t,a){return(0,l.default)(d.default,{},t.key,(0,l.default)(i.default,{span:6},void 0,(0,l.default)(w,{style:{marginLeft:43},label:"GPU\u6570\u91cf"},void 0,u("gpuNumber-"+t.key,{initialValue:t.gpuNumber})((0,l.default)(r.default,{style:{width:120},min:0,onChange:function(t){e.getGpuValBlur(t,"gpuNumber",a)}})))),""!==t.gpuNumber&&0!==t.gpuNumber?(0,l.default)(i.default,{span:6},void 0,(0,l.default)(w,{style:{marginLeft:26},label:"GPU\u578b\u53f7"},void 0,u("gpuModelId-"+t.key,{rules:[{required:""!==t.gpuNumber&&0!==t.gpuNumber,message:"GPU\u578b\u53f7\u4e0d\u80fd\u4e3a\u7a7a"}],initialValue:t.gpuModelId})((0,l.default)(m.default,{placeholder:"\u8bf7\u9009\u62e9\u578b\u53f7",onChange:function(n){e.getGpuValBlur(n,"gpuModelId",a,e.getGpuModelIdListByNum(t.gpuNumber))},style:{width:120},showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,M,e.getGpuModelIdListByNum(t.gpuNumber).map((function(t,a){return(0,l.default)(I,{disabled:-1!==_.indexOf(o,e.props.data.profile+t.gpuModelId),value:t.gpuModelId},a,t.gpuModelId)})))))):k,(0,l.default)(w,{help:""},void 0,(0,l.default)(s.default,{onClick:e.saveGpuVal,icon:P}),(0,l.default)(s.default,{style:{marginLeft:10},onClick:function(){e.deleteGpuVal(a)},icon:L})))}))))},t}(g.default.PureComponent),o=function(){var e=this;this.setSelectedGpuModelId=function(t){for(var a=[],n=0;t&&n<t.length;n++)a.push(e.props.data.profile+t[n].gpuModelId);return a},this.getRadioValue=function(){var t=D[0];return"create"!==e.props.viewType&&_.get(e.props,"data.resQuotaConf.cpu",""),t},this.validateFun=function(){var t=!1;return e.props.form.validateFieldsAndScroll((function(e){null===e&&(t=!0)})),t?(e.modelData[e.state.radioValue].gpu=e.state.gpuList.map((function(e){return _.omit(e,["key"])})),"resQuotaConf"===e.state.radioValue?e.modelData.limitSetting={cpu:"",memory:"",gpu:[]}:e.modelData.resQuotaConf={cpu:"",memory:"",gpu:[]},{validate:!0,moduleData:e.modelData}):{validate:!1,moduleData:e.modelData}},this.getValBlur=function(t,a){null===a?e.setState({radioValue:t}):e.modelData[e.state.radioValue][a]=""===t||null===t?0:t},this.getGpuValBlur=function(t,a,n,o){if("gpuModelId"===a){var s=e.state.selectedGpuModelId;""===t?s.splice(n,1):(s[n]=e.props.data.profile+t,e.setState({selectedGpuModelId:s}));for(var r=e.state.gpuList,i=0;o&&i<o.length;i++)if(t===o[i].gpuModelId){r[n].gpuModelName=_.get(o[i],"gpuModelName");break}}if("gpuNumber"===a&&""===t){var d=e.state.gpuList,l=e.state.selectedGpuModelId;d[n][a]=0,d[n].gpuModelId="",d[n].gpuModelName="",l.splice(n,1)}else if("gpuNumber"===a&&""!==t){var u=e.state.gpuList;u[n][a]=t,u[n].gpuModelId="",u[n].gpuModelName="",e.state.selectedGpuModelId.splice(n,1)}else{e.state.gpuList[n][a]=t}},this.saveGpuVal=function(){var t=e.state.gpuList;t.push({gpuNumber:0,gpuModelId:"",gpuModelName:"",key:_.uniqueId()}),e.setState({gpuList:t.concat([])})},this.deleteGpuVal=function(t){var a=e.state.gpuList;a.splice(t,1),e.state.selectedGpuModelId.splice(t,1),e.setState({gpuList:a.concat([])})},this.getGpuModelIdListByNum=function(t){for(var a=[],n=0;n<e.props.gpuTypes.length;n++)parseInt(t)<=parseInt(e.props.gpuTypes[n].gpuNumber)&&(a=a.concat(e.props.gpuTypes[n].list));return a},this.quotaResourceDom=function(e,t){for(var a=null,n=0;e&&n<e.length;n++)e[n].resQuotaType===t&&(a=_.get(e[n],"quotaSetting"));return(0,l.default)("div",{style:{padding:"10px 16px"}},void 0,(0,l.default)("span",{style:{color:"#147BD1"}},void 0,"\u5269\u4f59\uff1aCPU\uff1a",_.get(a,"cpu","--")),(0,l.default)("span",{style:{color:"#147BD1",marginLeft:100}},void 0,"\u5185\u5b58\uff1a",_.get(a,"memory","--")),(0,l.default)("span",{style:{color:"#147BD1",marginLeft:100}},void 0,"GPU\uff1a",a&&a.gpu&&a.gpu.length>0?a.gpu.map((function(e){return _.get(e,"gpuNumber","0")+"/"+_.get(e,"gpuModelName","--")+" "})):"0"))}},n);t.default=(0,C.connect)((function(){return{}}))(x.Form.create()(N))},"./src/module/sysManage/projectManager/editPage/component/UserRelevance.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/table/index.js")),o=S(a("./node_modules/antd/es/spin/index.js")),s=S(a("./node_modules/antd/es/button/index.js")),r=S(a("./node_modules/antd/es/tooltip/index.js")),i=S(a("./node_modules/babel-runtime/helpers/jsx.js")),d=S(a("./node_modules/antd/es/modal/index.js")),l=S(a("./node_modules/antd/es/message/index.js")),u=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=S(a("./node_modules/babel-runtime/helpers/inherits.js")),f=S(a("./node_modules/antd/es/input/index.js")),m=S(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var h=S(a("./node_modules/react/index.js")),g=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=(S(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),y=a("./src/components/index.js"),b=S(a("./src/redux/services/sysManager/projectManage.js")),x=S(a("./src/redux/services/sysManager/userManager.js")),C=S(a("./src/redux/services/sysManager/rolesManager.js")),j=a("./src/utils/authPermit.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=m.default.Option,T=f.default.Search,w=g.default.div.withConfig({displayName:"UserRelevance__UserRelevanceDom",componentId:"sc-1xhjqym-0"})([".site-badge-count-4 .ant-badge-count{background-color:#fff;color:#999;box-shadow:0 0 0 1px #d9d9d9 inset;}.saveButton{float:right;}display:flex;flex-direction:column;flex:1 1 auto;background:#fff;.header{display:flex;margin-bottom:16px;.y-div{width:19px;height:18px;border-radius:50%;background-color:#e3e3e3;text-align:center;margin-top:2px;}}.selectDiv{position:absolute;z-index:999;right:5px;background:#fafafa;height:46px;padding-top:8px;width:36%;margin-top:1px;text-align:right;}"]),E=(0,i.default)("span",{},void 0,"\u5e8f\u53f7"),D=(0,i.default)(r.default,{placement:"topLeft",title:"\u9879\u76ee\u8d1f\u8d23\u4eba"},void 0,"\u9879\u76ee\u8d1f\u8d23\u4eba"),M=(0,i.default)(y.LoadingIndicator,{position:"relative"}),k=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.onChangePatchRole=function(e){n.setState({userRoles:e})},n.onDeselect=function(e,t){for(var a=[],o=0;o<t.roles.length;o++)t.roles[o].roleId!==e&&a.push(t.roles[o].roleId);var s=[{projectId:n.projectId,userId:t.userId,userRoles:a}];n.updateProjectRoles(s,n.projectId)},n.getProjectManagers=function(e){for(var t=[],a=0;a<e.length;a++)t.push(e[a].userId);return t},n.fetchData=function(){n.setState({loading:!0}),n.projectId&&b.default.getProjectUserList(n.projectId,n.userId).then((function(e){n.setState({dataList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({dataList:[],loading:!1}),l.default.error(e.message)}))},n.deleteUser=function(e){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:e?"\u786e\u8ba4\u5220\u9664[ "+e.userName+" ]?":"\u786e\u8ba4\u5220\u9664\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",confirmLoading:!0,onOk:function(){return new Promise((function(t,a){b.default.deleteProjectUser({projectId:n.projectId,userIds:e?[e.userId]:n.state.selectedRowKeys}).then((function(){n.fetchData(),l.default.success("\u5220\u9664\u6210\u529f\uff01"),n.setState({selectedRowKeys:[]}),t()})).catch((function(e){n.setState({selectedRowKeys:[]}),a(),l.default.error(e.message)}))}))}})},n.patchRole=function(e,t){if(e.length>0){var a=[];if(t)a.push({projectId:n.projectId,userId:t,userRoles:e});else for(var o=0;o<n.state.selectedRowKeys.length;o++)a.push({projectId:n.projectId,userId:n.state.selectedRowKeys[o],userRoles:e});n.setState({spinning:!0}),n.updateProjectRoles(a,n.projectId,"select")}},n.updateProjectRoles=function(e,t,a){b.default.updateProjectRoles(e,t).then((function(){a&&n.fetchData(),n.setState({selectedRowKeys:[],allRoles:[],spinning:!1}),l.default.success(a?"\u4fdd\u5b58\u6210\u529f\uff01":"\u5220\u9664\u6210\u529f\uff01")})).catch((function(e){n.setState({selectedRowKeys:[],allRoles:[],spinning:!1}),l.default.error(e.message)}))},n.onSelectChange=function(e,t){for(var a=[],o=0;o<t.length;o++)a.push(t[o].userId);n.setState({selectedRowKeys:a})},n.onChangeRole=function(e){n.setState({allRoles:e})},n.setUserIds=function(e,t){var a=!1;if(e&&0===e.length)n.saveProjectUser(e);else{for(var o=n.props.projectInfo?n.props.projectInfo:n.state.projectInfo,s=function(n){var s=_.findIndex(t,(function(t){return t.userId==e[n]}));if(_.get(t[s],"orgId")!==_.get(o,"orgId"))return a=!0,"break"},r=0;r<e.length;r++){if("break"===s(r))break}a?d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u5df2\u9009\u90e8\u5206\u7528\u6237\u7ec4\u7ec7\u548c\u5f53\u524d\u9879\u76ee\u7ec4\u7ec7\u6709\u5dee\u522b\uff0c\u662f\u5426\u786e\u8ba4\u4fdd\u5b58\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",confirmLoading:!0,onOk:function(){n.saveProjectUser(e)}}):n.saveProjectUser(e)}},n.saveProjectUser=function(e){n.setState({selectUserloading:!0});for(var t=[],a=0;a<e.length;a++)t.push({projectId:n.projectId,userId:e[a],userRoles:[]});b.default.saveProjectUser(t,n.projectId).then((function(){n.fetchData(),n.setState({selectUserloading:!1,modalVisible:!1}),l.default.success("\u4fdd\u5b58\u6210\u529f\uff01")})).catch((function(e){n.setState({selectUserloading:!1}),l.default.error(e.message)}))},n.callVisible=function(){n.setState({modalVisible:!1})},n.openVisible=function(){n.setState({modalVisible:!0})},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.userId=e,n.fetchData()},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={modalVisible:!1,selectUserloading:!1,spinning:!1,loading:!1,userList:[],roleList:[],selectedRowKeys:[],allRoles:[],dataList:[],projectManagers:a.projectManagers?a.projectManagers:[],projectGroupAdmin:a.projectGroupAdmin?a.projectGroupAdmin:[],userRoles:[],projectInfo:null},n.userId="",n.projectId=a.projectInfo?a.projectInfo.projectId:_.get((0,j.getCurrentContext)(),"id"),n.columns=[{title:E,width:80,render:function(e,t,a){return(0,i.default)("span",{},void 0,a+1)}},{title:"\u6210\u5458\u540d\u79f0",dataIndex:"userName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7528\u6237\u540d",dataIndex:"userId",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6210\u5458\u89d2\u8272",dataIndex:"roles",width:450,render:function(e,t){if(-1===_.indexOf(n.state.projectManagers,t.userId)&&-1===_.indexOf(n.state.projectGroupAdmin,t.userId)){for(var a=[],o=0;e&&o<e.length;o++)a.push(e[o].roleId);return(0,i.default)(m.default,{defaultValue:a,mode:"multiple",placeholder:"\u8bf7\u9009\u62e9\u89d2\u8272",optionFilterProp:"children",style:{width:"100%"},disabled:"view"===n.props.viewType,onBlur:function(){n.patchRole(n.state.userRoles,t.userId)},onChange:function(e){n.onChangePatchRole(e)},onDeselect:function(e){n.onDeselect(e,t)}},void 0,n.state.roleList.map((function(e){return(0,i.default)(I,{value:e.roleId,label:e.roleId},e.roleId,e.roleName)})))}return D}}],"view"!==n.props.viewType&&n.columns.push({title:"\u64cd\u4f5c",width:60,render:function(e,t){return-1===_.indexOf(n.state.projectManagers,t.userId)&&-1===_.indexOf(n.state.projectGroupAdmin,t.userId)&&(0,i.default)("a",{href:"javascript:;",onClick:function(){n.deleteUser(t)},disabled:"view"===n.props.viewType},void 0,"\u5220\u9664")}}),n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){var e=this;b.default.getProjectInfo(this.projectId).then((function(t){t&&e.setState({projectInfo:_.get(t,"data"),projectManagers:e.getProjectManagers(_.get(t,"data.projectManagers",[])),projectGroupAdmin:e.getProjectManagers(_.get(t,"data.projectGroupAdmin",[]))})})).catch((function(e){l.default.error(e.message)})),this.fetchData(),x.default.getUsersByTenant({filterPlatformAdmin:!0,filterTenantAdmin:!0}).then((function(t){e.setState({userList:t.data?t.data:[],loading:!1})})).catch((function(t){e.setState({userList:[],loading:!1}),l.default.error(t.message)})),C.default.getRolesByProjectId(this.projectId).then((function(t){e.setState({roleList:t.data?t.data:[],loading:!1})})).catch((function(t){e.setState({roleList:[],loading:!1}),l.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.dataList,r=t.loading,d=t.selectedRowKeys,l=t.allRoles,u={onChange:this.onSelectChange,getCheckboxProps:function(t){return{disabled:-1!==_.indexOf(e.state.projectManagers,t.userId)||-1!==_.indexOf(e.state.projectGroupAdmin,t.userId)}}};return(0,i.default)(w,{style:{padding:this.props.projectInfo?0:20}},void 0,(0,i.default)(y.ModalView,{onCancelType:!1,confirmLoading:this.state.selectUserloading,width:500,callVisible:this.callVisible,modalVisible:this.state.modalVisible,okText:"\u4fdd \u5b58",submitModalOk:function(){e.selectUser.submitModalOk()},comp:(0,i.default)(y.SelectUser,{onRef:function(t){e.selectUser=t},setUserIds:this.setUserIds})}),(0,i.default)("div",{className:"header"},void 0,(0,i.default)("div",{style:{width:"92%",display:"flex"}},void 0,(0,i.default)("span",{style:{fontSize:14,color:"#6c6363",fontWeight:800,marginRight:15}},void 0,"\u6210\u5458"),(0,i.default)("div",{className:"y-div"},void 0,a?a.length:0)),(0,i.default)(T,{style:{width:200,marginRight:16},placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}}),"view"!==this.props.viewType&&(0,i.default)(s.default,{className:"saveButton",onClick:this.openVisible,type:"primary"},void 0,"\u6dfb\u52a0\u6210\u5458")),(0,i.default)(o.default,{spinning:this.state.spinning,tip:"\u8bf7\u7a0d\u7b49..."},void 0,(0,i.default)("div",{className:"selectDiv",style:{display:d.length>0?"":"none"}},void 0,(0,i.default)(m.default,{mode:"multiple",placeholder:"\u6279\u91cf\u9009\u62e9\u89d2\u8272",optionFilterProp:"children",style:{minWidth:"200px",width:"auto"},value:l,onBlur:function(t){e.patchRole(t)},onChange:function(t){e.onChangeRole(t)}},void 0,this.state.roleList.map((function(e){return(0,i.default)(I,{value:e.roleId,label:e.roleId},e.roleId,e.roleName)}))),(0,i.default)("a",{href:"javascript:;",onClick:function(){e.deleteUser()},style:{marginRight:16,marginLeft:16,color:"red"}},void 0,"\u6279\u91cf\u5220\u9664")),r&&M,!r&&(0,i.default)(n.default,{rowSelection:"view"!==this.props.viewType&&u,dataSource:a,rowKey:"userId",bordered:!0,pagination:!0,columns:this.columns})))},t}(h.default.PureComponent);t.default=(0,v.connect)((function(){return{}}))(k)},"./src/module/sysManage/projectManager/editPage/component/data.json":function(e){e.exports=JSON.parse('[{"resQuotaType":"PRODUCT","gpu":[{"gpuNumber":"1","gpuModelId":"t-1","gpuModelName":"t1"},{"gpuNumber":"1","gpuModelId":"t-11","gpuModelName":"t11"},{"gpuNumber":"2","gpuModelId":"t-2","gpuModelName":"t22"}]},{"resQuotaType":"DEV","gpu":[{"gpuNumber":"1","gpuModelId":"t-1","gpuModelName":"t1"},{"gpuNumber":"1","gpuModelId":"t-11","gpuModelName":"t11"},{"gpuNumber":"2","gpuModelId":"t-2","gpuModelName":"t22"}]},{"resQuotaType":"TEST","gpu":[{"gpuNumber":"3","gpuModelId":"t-2","gpuModelName":"t22"}]}]')},"./src/module/sysManage/projectManager/group/CreateGroupConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.ProjectInfoPageDom=void 0;var n=x(a("./node_modules/antd/es/button/index.js")),o=x(a("./node_modules/babel-runtime/helpers/jsx.js")),s=x(a("./node_modules/antd/es/notification/index.js")),r=x(a("./node_modules/antd/es/message/index.js")),i=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=x(a("./node_modules/babel-runtime/helpers/inherits.js")),u=x(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=x(a("./node_modules/react/index.js")),p=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=x(a("./node_modules/lodash/lodash.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=(x(a("./node_modules/prop-types/index.js")),x(a("./src/redux/services/sysManager/projectManage.js"))),g=a("./node_modules/react-redux/es/index.js"),v=a("./src/components/index.js"),_=a("./src/utils/history.js"),y=a("./src/routes/routeHelper.jsx"),b=x(a("./src/module/sysManage/projectManager/group/component/ProjectInfo.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=u.default.confirm,j=t.ProjectInfoPageDom=p.default.div.withConfig({displayName:"CreateGroupConfig__ProjectInfoPageDom",componentId:"sc-135ghq-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;.ant-col-2{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:6%;}"]),S=t.ConfigButtonDom=p.default.div.withConfig({displayName:"CreateGroupConfig__ConfigButtonDom",componentId:"sc-135ghq-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),I=t.ErrorUl=p.default.ul.withConfig({displayName:"CreateGroupConfig__ErrorUl",componentId:"sc-135ghq-2"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),T={width:"100%"},w=(0,o.default)(v.LoadingIndicator,{position:"relative"}),E=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.componentDidMount=function(){"create"!==n.viewType&&(n.setState({loading:!0}),h.default.getProjectInfo(n.projectId).then((function(e){var t=f.default.get(e,"data",{});e&&(n.setState({projectInfo:t,projectGroupAdmin:n.getProjectManagers(f.default.get(e,"data.projectGroupAdmin",[])),loading:!1}),n.moduleData=f.default.get(e,"data",{}))})).catch((function(e){n.setState({projectInfo:{},loading:!1}),r.default.error(e.message)})))},n.getProjectManagers=function(e){for(var t=[],a=0;e&&a<e.length;a++)t.push(e[a].userId);return t},n.setProjectManagers=function(e){n.setState({projectGroupAdmin:e})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.savaOrSubmit=function(){var e={},t={};if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(f.default.isFunction(o)){var s=o.call();s.validate?e[a]=s.moduleData:t[a]=s.errorMsg}})),"{}"===JSON.stringify(t)){for(var a in e)n.moduleData=f.default.assign(n.moduleData,e[a]);n.setState({modalVisible:!0})}else{var r=n.errorDom(t);s.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:r,icon:(0,o.default)(m.FrownOutlined,{style:{color:"#f5222d"}})})}},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var e="/operation-manage/project/tenement/create"===window.location.pathname;n.moduleData.projectType=2,n.moduleData.projectId?h.default.updateProject(n.moduleData).then((function(e){e&&n.setState({confirmLoading:!1,modalVisible:!1}),r.default.success("\u4fee\u6539\u6210\u529f\uff01"),(0,_.navigateTo)(y.operationUrl.projectGroupManage())})).catch((function(){n.setState({confirmLoading:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"})})):h.default.saveProject(n.moduleData,n.moduleData.projectId,e).then((function(e){e&&n.setState({confirmLoading:!1,modalVisible:!1}),r.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),(0,_.navigateTo)(y.operationUrl.projectGroupManage())})).catch((function(){n.setState({confirmLoading:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"})}))},n.errorDom=function(e){return(0,o.default)(I,{},void 0,Object.keys(e).map((function(t){return(0,o.default)("li",{},t,e[t])})))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){C({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u9879\u76ee\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,_.navigateTo)(y.operationUrl.projectGroupManage())}})},n.viewType=f.default.get(a.match,"params.action",null),n.projectId=f.default.get(a.match,"params.projectId",null),n.state={projectInfo:{},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1,projectGroupAdmin:[]},n.moduleData={},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,s=t.projectInfo,r=t.modalTxt,i=t.confirmLoading,d=t.loading;return(0,o.default)(j,{},void 0,(0,o.default)(u.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:i,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,r)),"create"!==this.viewType&&d&&w,("create"===this.viewType||"create"!==this.viewType&&!d)&&(0,o.default)("div",{},void 0,(0,o.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:T},void 0,(0,o.default)(b.default,{viewType:this.viewType,projectId:this.projectId,projectInfo:s,setValidateFunc:this.setValidateFunc,setProjectManagers:this.setProjectManagers}))),(0,o.default)(S,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.savaOrSubmit(e.viewType)},type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(c.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(E)},"./src/module/sysManage/projectManager/group/GroupList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/table/index.js")),o=x(a("./node_modules/antd/es/button/index.js")),s=x(a("./node_modules/antd/es/tooltip/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/antd/es/message/index.js")),d=x(a("./node_modules/antd/es/modal/index.js")),l=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=x(a("./node_modules/react/index.js")),f=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/components/index.js"),h=x(a("./src/redux/services/sysManager/projectManage.js")),g=x(a("./src/module/sysManage/projectManager/group/component/SearchBar.jsx")),v=a("./src/routes/routeHelper.jsx"),y=a("./src/utils/history.js"),b=a("./src/styles/GlobalStyle.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),j=(0,r.default)("span",{},void 0,"--"),S=(0,r.default)(m.LoadingIndicator,{position:"relative"}),I=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.deleteById=function(e){var t=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664[ "+e.projectName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(a,n){h.default.deleteProjectInfo(e.projectId).then((function(){t.fetchData(t.searchCond),a(),i.default.success("\u5220\u9664\u6210\u529f\uff01")})).catch((function(){n()}))})).catch((function(){return i.default.error("Oops errors!")}))}})},n.fetchData=function(e){n.setState({loading:!0}),h.default.getProjectList(e).then((function(e){n.setState({projectList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({projectList:[],loading:!1}),i.default.error(e.message)}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.state={loading:!1,projectList:[]},n.columns=[{title:C,width:"7%",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u9879\u76ee\u7ec4\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u9879\u76ee\u7ec4\u7ba1\u7406\u5458",dataIndex:"projectGroupAdmins",width:150,ellipsis:!0,render:function(e){if(e){for(var t="",a=0;a<e.length;a++)t+=e[a].userName+",";return""!==t&&(t=t.substring(0,t.length-1)),(0,r.default)(s.default,{placement:"topLeft",title:t||"--"},void 0,t||"--")}return j}},{title:"\u79df\u6237",dataIndex:"tenantId_name",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:250,render:function(e,t){var a=[];return a.push({handleName:"\u67e5\u770b\u8be6\u60c5",style:{display:"inline-block"},handleType:"link",handleAction:v.operationUrl.projectGroupView(t.projectId)}),a.push({handleName:"\u4fee\u6539",style:{display:"inline-block"},handleType:"link",handleAction:v.operationUrl.projectGroupEdit(t.projectId)}),a.push({handleName:"\u5220\u9664",handleAction:function(){n.deleteById(t)}}),a.push({handleName:"\u67e5\u770b\u9879\u76ee",style:{display:"inline-block"},handleType:"link",state:{projectPid:t.projectId},handleAction:v.operationUrl.projectManage()}),(0,r.default)(m.ListButtons,{buttons:a,maxShowNum:4})}}],n.searchCond={projectName:"",sortType:"CREATE_AT.DESC",projectType:2},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.render=function(){var e=this.state,t=e.projectList,a=e.loading;return(0,r.default)(b.PageWrapper,{},void 0,(0,r.default)(b.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){(0,y.navigateTo)(v.operationUrl.projectGroupCreate())},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u9879\u76ee\u7ec4"),(0,r.default)(g.default,{sortField:this.searchCond.sortType,onChange:this.changeSearchCond})),(0,r.default)(b.PageBody,{},void 0,(0,r.default)(b.TableWrapper,{},void 0,a&&(0,r.default)("div",{style:{marginTop:50}},void 0,S),!a&&(0,r.default)(n.default,{dataSource:t,rowKey:"projectId",bordered:!0,pagination:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(I)},"./src/module/sysManage/projectManager/group/ViewGroupConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ProjectInfoDom=t.ConfigButtonDom=void 0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/antd/es/col/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var u=b(a("./node_modules/react/index.js")),c=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var f=a("./src/utils/history.js"),m=a("./src/components/index.js"),h=a("./node_modules/react-redux/es/index.js"),g=b(a("./src/redux/services/sysManager/userManager.js")),v=b(a("./src/redux/services/sysManager/projectManage.js")),y=a("./src/routes/routeHelper.jsx");function b(e){return e&&e.__esModule?e:{default:e}}var x={width:"100%"},C=t.ConfigButtonDom=c.default.div.withConfig({displayName:"ViewGroupConfig__ConfigButtonDom",componentId:"ji4z7y-0"})(["text-align:right;line-height:70px;padding-right:50px;"]),j=t.ProjectInfoDom=c.default.div.withConfig({displayName:"ViewGroupConfig__ProjectInfoDom",componentId:"ji4z7y-1"})(["background:#fff;padding:25px;.ant-row{line-height:60px;display:flex;}"]),S=p.Form.Item,I=(0,r.default)(m.LoadingIndicator,{position:"relative"}),T=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.componentDidMount=function(){n.setState({loading:!0}),v.default.getProjectInfo(n.projectId).then((function(e){var t=_.get(e,"data",{});e&&(n.setState({projectGroupInfo:t,projectManagersNames:n.setProjectManagersNames(t),loading:!1}),n.fetchCurrentUserTenant(t.createBy))}))},n.setProjectManagersNames=function(e){for(var t="",a=0;e&&e.projectGroupAdmin&&a<e.projectGroupAdmin.length;a++)t+=e.projectGroupAdmin[a].userName,a+1<e.projectGroupAdmin.length&&(t+=",");return t},n.fetchCurrentUserTenant=function(e){g.default.getUserInfo({userId:e}).then((function(e){var t=e.data,a=t.tenantId,o=t.tenantId_name;e.data.tenantId&&n.setState({userTenants:[{tenantId:a,tenantName:o}]})}))},n.cancel=function(){(0,f.navigateTo)(y.operationUrl.projectGroupManage())},n.state={projectGroupInfo:null,projectManagersNames:"",userTenants:[]},n.projectId=_.get(a.match,"params.projectId",null),n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.loading,i=t.projectGroupInfo,d=t.projectManagersNames,l=t.userTenants;return(0,r.default)(j,{},void 0,(0,r.default)(m.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:x},void 0,a&&I,i&&!a&&(0,r.default)(p.Form,{layout:"horizontal"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(S,{label:"\u9879\u76ee\u7ec4\u540d\u79f0"},void 0,i.projectName))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{style:{marginLeft:18},span:11},void 0,(0,r.default)(S,{label:" \u7ba1 \u7406 \u5458"},void 0,d)),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(S,{label:" \u79df \u6237 "},void 0,l&&l.length>0?l[0].tenantName:"\u672a\u627e\u5230\u6240\u5c5e\u79df\u6237"))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{style:{marginLeft:18},span:11},void 0,(0,r.default)(S,{label:" \u521b \u5efa \u4eba "},void 0,i.createBy)),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(S,{label:" \u521b\u5efa\u65f6\u95f4 "},void 0,i.createAt))),(0,r.default)(s.default,{},void 0,(0,r.default)(S,{style:{marginLeft:10},label:"\u9879\u76ee\u7ec4\u63cf\u8ff0"},void 0,i.projectDesc))),(0,r.default)(C,{},void 0,(0,r.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"))))},t}(u.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(p.Form.create()(T))},"./src/module/sysManage/projectManager/group/component/ProjectInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ProjectInfoDom=void 0;var n=j(a("./node_modules/antd/es/tooltip/index.js")),o=j(a("./node_modules/antd/es/col/index.js")),s=j(a("./node_modules/antd/es/row/index.js")),r=j(a("./node_modules/babel-runtime/helpers/jsx.js")),i=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=j(a("./node_modules/babel-runtime/helpers/inherits.js")),u=j(a("./node_modules/antd/es/select/index.js")),c=j(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=j(a("./node_modules/react/index.js")),f=(j(a("./node_modules/prop-types/index.js")),j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),m=a("./node_modules/@ant-design/icons/es/index.js"),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=a("./src/redux/selectors/checkName.js"),v=j(a("./src/components/common/CheckName.jsx")),y=a("./node_modules/react-redux/es/index.js"),b=j(a("./src/redux/services/sysManager/userManager.js")),x=j(a("./src/redux/services/sysManager/projectManage.js")),C=a("./src/utils/authPermit.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=c.default.TextArea,I=t.ProjectInfoDom=f.default.div.withConfig({displayName:"ProjectInfo__ProjectInfoDom",componentId:"sc-187z3kt-0"})([".ant-row{line-height:60px;display:flex;}"]),T=u.default.Option,w=h.Form.Item,E=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.setProjectManagers=function(e){for(var t=[],a=0;e&&a<e.length;a++)t.push(e[a].userId);return t},n.componentDidMount=function(){n.fetchCurrentTenantUsers(),n.fetchCurrentUserTenant()},n.fetchCurrentTenantUsers=function(){b.default.getUsersByTenant({filterPlatformAdmin:!0,filterTenantAdmin:!0,orgType:1}).then((function(e){e&&n.setState({projectGroupAdmin:e.data})})).catch((function(){n.setState({projectGroupAdmin:[]})}))},n.fetchCurrentUserTenant=function(){var e=(0,C.getUserId)();b.default.getUserInfo({userId:e}).then((function(e){var t=e.data,a=t.tenantId,o=t.tenantId_name;a&&(n.setState({userTenants:[{tenantId:a,tenantName:o}]}),n.modelData.tenantId=a,n.props.form.setFieldsValue({tenantId:a}))}))},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=n.props.checkNameVerifyInfo.toJS(),a=t.verifyStatus,o=t.verifyMsg;return t.loading?{validate:!1,errorMsg:"\u540d\u79f0\u9a8c\u8bc1\u4e2d\u3001\u7a0d\u540e\u63d0\u4ea4!"}:-1===a?{validate:!1,errorMsg:o}:e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u57fa\u7840\u4fe1\u606f"}},n.getModelNameBlur=function(e){n.props.form.setFieldsValue({projectName:e}),n.modelData.projectName=e?e.trim():e},n.getAccessPathsBlur=function(e){_.trim(e)&&(x.default.checkAccessPathRepeat({projectId:e}).then((function(e){_.get(e,"data.isRepeat")?(n.props.form.setFields({projectId:{errors:[new Error("\u9879\u76eeID\u91cd\u590d")]}}),n.setState({projectIdVerify:!0})):n.setState({projectIdVerify:!1})})),n.props.form.setFieldsValue({projectId:e}),n.modelData.projectId=e)},n.getValBlur=function(e,t){"projectGroupAdmin"===t&&n.props.setProjectManagers(e),n.modelData[t]=e,n.props.form.setFieldsValue({type:e})},n.handleAccessPathRepeatValidate=function(e,t,a){n.state.projectIdVerify&&a("\u9879\u76eeID\u91cd\u590d"),a()},n.checkNameRef=p.default.createRef();var o=n.props.setValidateFunc;return _.isFunction(o)&&o("projectInfo",n.validateFun),n.state={projectGroupAdmin:[],projectIdVerify:!1,userTenants:[]},n.modelData={projectName:_.get(a.projectInfo,"projectName",""),projectDesc:_.get(a.projectInfo,"projectDesc",""),projectGroupAdmin:n.setProjectManagers(_.get(a.projectInfo,"projectGroupAdmin",[])),projectId:_.get(a.projectInfo,"projectId","")},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(I,{},void 0,(0,r.default)(h.Form,{layout:"horizontal"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:"\u9879\u76ee\u7ec4\u540d\u79f0"},void 0,t("projectName",{rules:[{required:!0,message:"\u9879\u76ee\u7ec4\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"},{validator:this.handleCheckNameValidate}],initialValue:this.modelData.projectName})(p.default.createElement(v.default,{ref:this.checkNameRef,source:"project",style:{width:"350px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:"create"===this.props.viewType?"":this.props.projectId,updateNameCallback:this.getModelNameBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\projectManager\\group\\component\\ProjectInfo.jsx",lineNumber:225}}))))),(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{style:{marginLeft:10},span:11},void 0,(0,r.default)(w,{label:" \u7ba1 \u7406 \u5458 "},void 0,t("projectGroupAdmin",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u9879\u76ee\u7ec4\u7ba1\u7406\u5458"}],initialValue:this.modelData.projectGroupAdmin})((0,r.default)(u.default,{mode:"multiple",maxTagCount:2,maxTagTextLength:4,optionFilterProp:"children",filterOption:function(e,t){return(_.get(t,"props.title","")||"").includes(e)||(_.get(t,"key","")||"").includes(e)},disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"projectGroupAdmin")},style:{width:"350px"},placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee\u7ec4\u7ba1\u7406\u5458"},void 0,this.state.projectGroupAdmin.map((function(e){return(0,r.default)(T,{title:e.userName,value:e.userId},e.userId,e.userName," ( ",e.userId," )( ",e.orgName?e.orgName:"\u65e0"," )")})))))),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(w,{label:" \u79df \u6237 "},void 0,t("tenantId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u79df\u6237"}],initialValue:this.modelData.tenantId})((0,r.default)(u.default,{disabled:!0,style:{width:"350px"}},void 0,this.state.userTenants.map((function(e){return(0,r.default)(T,{title:e.tenantName,value:e.tenantId},e.tenantId,e.tenantName)})))),(!Array.isArray(this.state.userTenants)||0===this.state.userTenants.length)&&(0,r.default)(n.default,{placement:"top",trigger:"hover",title:"\u4f60\u8fd8\u6ca1\u6709\u6240\u5c5e\u79df\u6237\uff0c\u65e0\u6cd5\u521b\u5efa\u3002"},void 0,(0,r.default)(m.WarningOutlined,{style:{height:40,lineHeight:"40px",color:"#FCD00D",frontSize:16,marginLeft:16}}))))),(0,r.default)(w,{style:{marginLeft:10},label:"\u9879\u76ee\u7ec4\u63cf\u8ff0"},void 0,t("projectDesc",{rules:[{max:300,message:"\u9879\u76ee\u7ec4\u63cf\u8ff0\u4e0d\u5f97\u8d85\u8fc7300\u4e2a\u5b57\u7b26"}],initialValue:this.modelData.projectDesc})((0,r.default)(S,{disabled:"view"===this.props.viewType,autosize:{minRows:5,maxRows:8},style:{width:650,marginRight:10,min:0,max:450},onBlur:function(t){return e.getValBlur(t.target.value,"projectDesc")},rows:8})))))},t}(p.default.PureComponent);t.default=(0,y.connect)((function(e){return{checkNameVerifyInfo:(0,g.selectVerifyInfo)(e)}}))(h.Form.create()(E))},"./src/module/sysManage/projectManager/group/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h={width:"130px"},g=(0,n.default)(f,{value:"CREATE_AT.DESC"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),v=(0,n.default)(f,{value:"UPDATE_AT.DESC"},void 0,"\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("projectName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortType"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:h,placeholder:"\u9009\u62e9\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,g,v)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(y)},"./src/module/sysManage/projectManager/homePage/ProjectJoinPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ConfigButtonDom=void 0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/antd/es/table/index.js")),s=b(a("./node_modules/antd/es/tooltip/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/antd/es/message/index.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=b(a("./node_modules/react/index.js")),f=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./src/components/index.js"),g=a("./src/utils/authPermit.js"),v=b(a("./src/redux/services/sysManager/projectManage.js")),y=a("./src/module/sysManage/projectManager/modelEnums.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=c.default.Option,C=f.default.div.withConfig({displayName:"ProjectJoinPage__ProjectJoinDom",componentId:"f1g2x0-0"})(["min-height:300px;overflow:hidden;background:#fff;margin:16px 42px;padding:12px 24px 0;"]),j=t.ConfigButtonDom=f.default.div.withConfig({displayName:"ProjectJoinPage__ConfigButtonDom",componentId:"f1g2x0-1"})(["text-align:right;line-height:42px;"]),S=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({loading:!0}),v.default.getApplyProjectCurrentUser({projectType:y.PROJECT_TYPE.PROJECT}).then((function(e){n.setState({projectList:e.data?e.data:[],loading:!1}),n.modelData=e.data?e.data:[]})).catch((function(e){n.setState({projectList:[],loading:!1}),i.default.error(e.message)}))},n.savaJoin=function(){var e=[],t=!0,a=n.selectedRowKeys;if(0===a.length)t=!1,i.default.error("\u8bf7\u9009\u62e9\u8981\u52a0\u5165\u7684\u9879\u76ee\uff01");else for(var o=function(o){var s=_.filter(n.modelData,(function(e){return e.projectId===a[o]}));if(s&&!s[0].selectedRoleId)return t=!1,i.default.error(s[0].projectName+"\u9879\u76ee\u672a\u9009\u62e9\u89d2\u8272!"),"break";s&&e.push({projectId:s[0].projectId,projectName:s[0].projectName,applyType:"PROJECT",applyContent:JSON.stringify([{projectId:s[0].projectId,userRoles:[{roleId:s[0].selectedRoleId,roleName:s[0].selectedRoleName}],userId:(0,g.getUserId)()}])})},s=0;s<a.length;s++){if("break"===o(s))break}t&&(n.setState({confirmLoading:!0}),v.default.editProjectApply(e,"create").then((function(){n.setState({confirmLoading:!1}),i.default.success("\u52a0\u5165\u6210\u529f!"),n.props.onRefreshData("PROJECT")})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)})))},n.getRoleOnChange=function(e,t){for(var a=0;n.modelData&&a<n.modelData.length;a++)if(n.modelData[a].projectId===t.projectId){var o=_.filter(t.projectRoles,(function(t){return t.roleId===e}));n.modelData[a].selectedRoleId=e,n.modelData[a].selectedRoleName=o[0].roleName;break}},n.onSelectChange=function(e){n.selectedRowKeys=e},n.state={confirmLoading:!1,loading:!1,projectList:[]},n.selectedRowKeys=[],n.modelData=[],n.columns=[{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,width:120,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,width:120,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u9879\u76ee\u8d1f\u8d23\u4eba",dataIndex:"projectManagers",ellipsis:!0,width:150,render:function(e){for(var t="",a=0;e&&a<e.length;a++)t+=e[a].userName+"\uff0c";return(0,r.default)(s.default,{placement:"topLeft",title:t},void 0,t&&t.length>0?t.substring(0,t.length-1):t)}},{title:"\u9879\u76ee\u63cf\u8ff0",width:150,dataIndex:"projectDesc",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u9879\u76ee\u89d2\u8272",dataIndex:"projectRoles",width:120,render:function(e,t){return(0,r.default)(c.default,{placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee\u89d2\u8272",style:{width:"100%"},onChange:function(e){return n.getRoleOnChange(e,t)}},void 0,e.map((function(e){return(0,r.default)(x,{value:e.roleId,label:e.roleId},e.roleId,e.roleName)})))}}],n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.projectList,s=t.loading,i=t.confirmLoading,d={onChange:this.onSelectChange};return(0,r.default)(C,{},void 0,(0,r.default)(h.ModelConfigPanel,{title:"\u9996\u6b21\u767b\u5f55\uff0c\u8bf7\u9009\u62e9\u8981\u52a0\u5165\u7684\u9879\u76ee\u548c\u89d2\u8272",style:{width:"100%"}},void 0,(0,r.default)(o.default,{loading:s,size:"small",scroll:{y:400},rowSelection:d,dataSource:a,rowKey:"projectId",bordered:!0,pagination:!1,columns:this.columns}),(0,r.default)(j,{},void 0,(0,r.default)(n.default,{onClick:this.props.onCancel,style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,r.default)(n.default,{onClick:function(){return e.savaJoin()},type:"primary",loading:i,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58"))))},t}(p.default.PureComponent);t.default=(0,m.connect)((function(){return{}}))(S)},"./src/module/sysManage/projectManager/listPage/ProjectPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/table/index.js")),o=x(a("./node_modules/antd/es/button/index.js")),s=x(a("./node_modules/antd/es/tooltip/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/antd/es/message/index.js")),d=x(a("./node_modules/antd/es/modal/index.js")),l=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=x(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=x(a("./node_modules/react/index.js")),f=(x(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/components/index.js"),h=x(a("./src/redux/services/sysManager/projectManage.js")),g=x(a("./src/module/sysManage/projectManager/listPage/component/SearchBar.jsx")),v=a("./src/routes/routeHelper.jsx"),y=a("./src/utils/history.js"),b=a("./src/styles/GlobalStyle.js");function x(e){return e&&e.__esModule?e:{default:e}}var C=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),j=(0,r.default)(m.LoadingIndicator,{position:"relative"}),S=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.deleteById=function(e){var t=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664[ "+e.projectName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(a,n){h.default.deleteProjectInfo(e.projectId).then((function(){t.fetchData(t.searchCond),a(),i.default.success("\u5220\u9664\u6210\u529f\uff01")})).catch((function(e){n(),i.default.error(e.message)}))})).catch((function(){return i.default.error("Oops errors!")}))}})},n.fetchData=function(e){n.setState({loading:!0}),h.default.getProjectList(e).then((function(e){n.setState({projectList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({projectList:[],loading:!1}),i.default.error(e.message)}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.fetchGroupListData=function(){h.default.getProjectList({projectName:"",sortType:"CREATE_AT.DESC",projectType:2}).then((function(e){n.setState({projectGroupList:e.data?e.data:[]})})).catch((function(e){n.setState({projectGroupList:[]}),i.default.error(e.message)}))},n.projectPid=_.get(a.location,"state.projectPid",""),n.state={loading:!1,projectList:[],projectGroupList:[]},n.columns=[{title:C,width:"7%",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8d1f\u8d23\u4eba",dataIndex:"projectManagers",width:100,ellipsis:!0,render:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a].userName?e[a].userName+"("+e[a].userId+"),":"";return""!==t&&(t=t.substring(0,t.length-1)),(0,r.default)(s.default,{placement:"topLeft",title:t||"--"},void 0,t||"--")}},{title:"\u9879\u76ee\u7ec4",dataIndex:"projectGroupName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"--")}},{title:"\u79df\u6237",dataIndex:"tenantId_name",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:210,render:function(e,t){var a=[];return a.push({handleName:"\u67e5\u770b",style:{display:"inline-block"},handleType:"link",handleAction:v.operationUrl.projectView(t.projectId,"project")}),a.push({handleName:"\u4fee\u6539",style:{display:"inline-block"},handleType:"link",handleAction:v.operationUrl.projectEdit(t.projectId,"project")}),a.push({handleName:"\u5173\u8054\u7528\u6237",style:{display:"inline-block"},handleType:"link",handleAction:v.operationUrl.projectEdit(t.projectId,"user")}),(0,r.default)(m.ListButtons,{buttons:a,maxShowNum:2})}}],n.searchCond={projectName:"",sortType:"CREATE_AT.DESC",projectType:1,projectPid:n.projectPid},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond),this.fetchGroupListData()},t.prototype.render=function(){var e=this.state,t=e.projectList,a=e.loading;return(0,r.default)(b.PageWrapper,{},void 0,(0,r.default)(b.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){(0,y.navigateTo)(v.operationUrl.projectCreate())},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u9879\u76ee"),(0,r.default)(g.default,{sortField:this.searchCond.sortType,projectPid:this.searchCond.projectPid,onChange:this.changeSearchCond,projectGroupList:this.state.projectGroupList})),(0,r.default)(b.PageBody,{},void 0,(0,r.default)(b.TableWrapper,{},void 0,a&&(0,r.default)("div",{style:{marginTop:50}},void 0,j),!a&&(0,r.default)(n.default,{dataSource:t,rowKey:"projectId",bordered:!0,pagination:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(S)},"./src/module/sysManage/projectManager/listPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h={width:"130px"},g=(0,n.default)(f,{value:"CREATE_AT.DESC"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),v=(0,n.default)(f,{value:"UPDATE_AT.ASC"},void 0,"\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f"),y=(0,n.default)(f,{value:""},void 0,"\u8bf7\u9009\u62e9\u9879\u76ee\u7ec4"),b=(0,n.default)(f,{value:"-1"},void 0,"\u65e0"),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("projectName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortType"),n.changeProjectPid=n.changeSelect("projectPid"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:h,placeholder:"\u9009\u62e9\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,g,v)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeProjectPid,getPopupContainer:function(e){return e.parentNode},style:h,placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee\u7ec4",defaultValue:this.props.projectPid,className:"sort-cond",showSearch:!0,filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,y,b,this.props.projectGroupList.map((function(e){return(0,n.default)(f,{value:e.projectId},e.projectId,e.projectName)})))),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(x)},"./src/module/sysManage/projectManager/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.PROJECT_TYPE=t.APP_CLASSIFY_SOURCE=t.APPROVAL_STATE=t.APPLY_TYPE=t.VERSION_STATUS=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.VERSION_STATUS=(0,s.default)({EDITING:[1,"\u7f16\u8f91\u4e2d"],NO_DEPLOY:[2,"\u4e0d\u53ef\u90e8\u7f72"],WAIT_DEPLOY:[3,"\u5f85\u90e8\u7f72"],OFFLINE:[4,"\u5df2\u4e0b\u7ebf"],DEPLOYED:[5,"\u5df2\u90e8\u7f72"],DEPLOY_FAIL:[6,"\u90e8\u7f72\u5931\u8d25"],UNKNOW:[-1,"\u672a\u77e5"]}),i=t.APPLY_TYPE=(0,s.default)({PROJECT:["PROJECT","\u52a0\u5165\u9879\u76ee"],SERVICE:["SERVICE","\u670d\u52a1\u6743\u9650"],PRODUCT:["PRODUCT","\u751f\u4ea7\u8d44\u6e90"],DEV:["DEV","\u5f00\u53d1\u8d44\u6e90"],TEST:["TEST","\u6d4b\u8bd5\u8d44\u6e90"]}),d=t.APPROVAL_STATE=(0,s.default)({APPROVED:["APPROVED","\u901a\u8fc7"],FAILED:["FAILED","\u672a\u901a\u8fc7"],WAIT_APPROVE:["WAIT_APPROVE","\u5f85\u5ba1\u6279"]}),l=(t.APP_CLASSIFY_SOURCE=(0,s.default)({AI:["AI","AI\u5e94\u7528"],NORMAL:["NORMAL","\u975eAI\u5e94\u7528"],CUSTOM_BIG:["CUSTOM_BIG","\u5927\u5206\u7c7b\u81ea\u5b9a\u4e49"],NLP:["NLP","NLP"],CUSTOM_SMALL:["CUSTOM_SMALL","\u5c0f\u5206\u7c7b\u81ea\u5b9a\u4e49"]}),t.PROJECT_TYPE=(0,s.default)({PROJECT:[1,"\u9879\u76ee"],PROJECT_GROUP:[2,"\u9879\u76ee\u7ec4"]}));t.default={VERSION_STATUS:r,APPLY_TYPE:i,APPROVAL_STATE:d,PROJECT_TYPE:l}},"./src/module/sysManage/projectManager/nlpAppCopy/NlpAppCopy.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.NlpAppCopyDom=void 0;var n=E(a("./node_modules/antd/es/button/index.js")),o=E(a("./node_modules/antd/es/row/index.js")),s=E(a("./node_modules/babel-runtime/helpers/jsx.js")),r=E(a("./node_modules/antd/es/message/index.js")),i=E(a("./node_modules/babel-runtime/helpers/extends.js")),d=E(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=E(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=E(a("./node_modules/babel-runtime/helpers/inherits.js")),c=E(a("./node_modules/antd/es/modal/index.js")),p=E(a("./node_modules/antd/es/input/index.js")),f=E(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=E(a("./node_modules/react/index.js")),h=(E(a("./node_modules/prop-types/index.js")),E(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=a("./src/redux/selectors/checkName.js"),y=E(a("./src/components/common/CheckName.jsx")),b=a("./src/utils/authPermit.js"),x=E(a("./src/redux/services/sysManager/projectManage.js")),C=E(a("./src/redux/services/sysManager/appClassification.js")),j=a("./node_modules/react-redux/es/index.js"),S=a("./src/styles/GlobalStyle.js"),I=a("./src/components/index.js"),T=a("./src/utils/history.js"),w=a("./src/routes/routeHelper.jsx");function E(e){return e&&e.__esModule?e:{default:e}}var D=f.default.Option,M=p.default.TextArea,k=t.NlpAppCopyDom=h.default.div.withConfig({displayName:"NlpAppCopy__NlpAppCopyDom",componentId:"sc-14xr1k3-0"})([".ant-row{display:flex;}.ant-form-item{margin-bottom:16px;}.ant-legacy-form-item-label{width:80px;}"]),P=h.default.div.withConfig({displayName:"NlpAppCopy__BottomDom",componentId:"sc-14xr1k3-1"})(["text-align:right;line-height:70px;margin-right:0px;width:750px;"]),L=g.Form.Item;confirm=c.default.confirm;var N=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.fetchData=function(){n.appId?C.default.getNlpAppInfo(n.appId).then((function(e){n.modelData.applicationDesc=_.get(e,"data.applicationDesc"),n.props.form.setFieldsValue({applicationDesc:_.get(e,"data.applicationDesc")})})).catch((function(e){"4041"===e.code&&(n.setState({hasNoRelation:!0}),c.default.error({title:"\u672a\u914d\u7f6e\u5e94\u7528\u5173\u8054\u5173\u7cfb",content:"\u8bf7\u914d\u7f6e\u5e94\u7528\u5173\u8054\u5173\u7cfb\u540e\u8fdb\u884c\u590d\u5236\u3002"}))})):(n.setState({hasNoRelation:!0}),c.default.error({title:"\u94fe\u63a5\u7f3a\u5c11appId",content:"\u8bf7\u786e\u4fdd\u94fe\u63a5\u6b63\u786e\u3002"})),n.setState({loading:!0}),C.default.getAppClassificationList({}).then((function(e){n.setState({applicationClassifyOptions:e.data,loading:!1}),n.setModelData(e.data)})).catch((function(){n.setState({loading:!1})})),x.default.getSummaryProjectList().then((function(e){n.setState({projectList:e.data})}))},n.setModelData=function(e){var t=_.find(e,(function(e){return"AI"===e.source}))||{},a=_.get(t,"applicationTypes",[]),o=_.find(a,(function(e){return"NLP"===e.source}))||{};n.setState({applicationClassifyOptions:e,applicationSubClassifyOptions:a}),n.modelData=(0,i.default)({},n.modelData,{applicationClass:_.get(o,"applicationTypeId"),parentApplicationClass:_.get(t,"parentApplicationTypeId")}),n.props.form.setFieldsValue(n.modelData)},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&(a(r),n.props.form.setFields({applicationName:{errors:[new Error(r)]}})),a()},n.getModelNameBlur=function(e){n.props.form.setFieldsValue({applicationName:e}),n.modelData.applicationName=e},n.getValBlur=function(e,t){n.modelData[t]=e,n.props.form.setFieldsValue({type:e})},n.handleAppClassChange=function(e){var t=_.find(n.state.applicationClassifyOptions,{parentApplicationTypeId:e});n.setState({applicationSubClassifyOptions:_.get(t,"applicationTypes",[])})},n.handleAppIdChangeConfirm=function(e){_.trim(e.target.value)?(C.default.checkAppIdRepeat({projectId:n.projectId,projectApplicationId:n.modelData.projectApplicationId,applicationId:e.target.value}).then((function(e){_.get(e,"data.isRepeat")?(n.applicationIdIsRepeat=!0,n.props.form.setFields({applicationId:{errors:[new Error("\u5e94\u7528ID\u91cd\u590d")]}}),n.setState({applicationIdStatus:"error"}),r.default.error("\u5e94\u7528ID\u91cd\u590d")):(n.applicationIdIsRepeat=!1,n.setState({applicationIdStatus:"success"}))})),n.getValBlur(e.target.value,"applicationId")):n.setState({applicationIdStatus:"error"})},n.cancel=function(){confirm({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){window.close()}})},n.submit=function(){var e=n.modelData,t=n.props.checkNameVerifyInfo.toJS(),a=t.verifyStatus,o=t.verifyMsg;-1!==a?n.applicationIdIsRepeat?r.default.error("\u5e94\u7528ID\u91cd\u590d"):n.props.form.validateFieldsAndScroll((function(t){null===t&&(n.setState({submitLoading:!0}),C.default.copyNlpAppInfo(n.appId,e).then((function(){n.setState({submitLoading:!1}),(0,T.navigateTo)(w.homeUrl.projectOverview())})).catch((function(){return n.setState({submitLoading:!1})})))})):r.default.error(o)},n.checkNameRef=m.default.createRef();var o=(0,T.parseParms)(a.location);n.appId=_.get(o,"appId"),n.state={loading:!1,applicationClassifyOptions:[],applicationSubClassifyOptions:[],applicationIdStatus:"",projectList:[],hasNoRelation:!1},n.applicationIdIsRepeat=!1;var s=(0,b.getCurrentContext)(),u=s.role,p=s.id;return n.projectId=a.projectId,"PROJECT"!==u||n.projectId||(n.projectId=p),n.modelData={projectId:n.projectId},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,s.default)(S.PageWrapper,{},void 0,(0,s.default)(k,{},void 0,(0,s.default)(I.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,(0,s.default)(g.Form,{layout:"horizontal"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(L,{label:"\u9879\u76ee\u540d\u79f0"},void 0,t("projectId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u9879\u76ee"}],initialValue:this.modelData.applicationClass})((0,s.default)(f.default,{loading:this.state.loading,placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee",onChange:function(t){return e.getValBlur(t,"projectId")},style:{width:"200px"},showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,this.state.projectList.map((function(e){return(0,s.default)(D,{value:e.projectId,label:e.projectName},e.projectId,e.projectName)})))))),(0,s.default)(o.default,{},void 0,(0,s.default)(L,{label:"\u5e94\u7528\u5927\u7c7b"},void 0,t("parentApplicationClass",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u5206\u7c7b"}],initialValue:this.modelData.parentApplicationClass})((0,s.default)(f.default,{loading:this.state.loading,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u5927\u7c7b",disabled:!0,onChange:function(t){return e.handleAppClassChange(t)},style:{width:"200px"},showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(this.state.applicationClassifyOptions)&&this.state.applicationClassifyOptions.map((function(e){return(0,s.default)(D,{value:e.parentApplicationTypeId,label:e.parentApplicationTypeName},e.parentApplicationTypeId,e.parentApplicationTypeName)}))))),(0,s.default)(L,{label:"\u5e94\u7528\u5c0f\u7c7b",style:{marginLeft:24}},void 0,t("applicationClass",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5e94\u7528\u5206\u7c7b"}],initialValue:this.modelData.applicationClass})((0,s.default)(f.default,{loading:this.state.loading,placeholder:"\u8bf7\u9009\u62e9\u5e94\u7528\u5c0f\u7c7b",disabled:!0,onChange:function(t){return e.getValBlur(t,"applicationClass")},style:{width:"200px"},showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,Array.isArray(this.state.applicationSubClassifyOptions)&&this.state.applicationSubClassifyOptions.map((function(e){return(0,s.default)(D,{value:e.applicationTypeId,label:e.applicationTypeName},e.applicationTypeId,e.applicationTypeName)})))))),(0,s.default)(o.default,{},void 0,(0,s.default)(L,{help:"",label:"\u5e94\u7528\u540d\u79f0"},void 0,t("applicationName",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5e94\u7528\u540d\u79f0"},{validator:this.handleCheckNameValidate}],initialValue:this.modelData.applicationName})(m.default.createElement(y.default,{ref:this.checkNameRef,source:"projectApplication",style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:"",fId:this.projectId,updateNameCallback:this.getModelNameBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\projectManager\\nlpAppCopy\\NlpAppCopy.jsx",lineNumber:326}}))),(0,s.default)(L,{help:"",label:"\u5e94\u7528ID",style:{marginLeft:24},validateStatus:this.state.applicationIdStatus},void 0,t("applicationId",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5e94\u7528ID"}],initialValue:this.modelData.applicationId})((0,s.default)(p.default,{style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u5e94\u7528ID",onBlur:this.handleAppIdChangeConfirm})))),(0,s.default)(L,{label:"\u5e94\u7528\u63cf\u8ff0"},void 0,t("applicationDesc",{initialValue:this.modelData.applicationDesc})((0,s.default)(M,{autoSize:{minRows:5,maxRows:8},style:{width:635,marginRight:10,min:0,max:450},maxLength:300,onBlur:function(t){return e.getValBlur(t.target.value,"applicationDesc")},rows:8})))))),(0,s.default)(P,{},void 0,(0,s.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4}},void 0,"\u53d6 \u6d88"),(0,s.default)(n.default,{disabled:this.state.hasNoRelation,onClick:function(){return e.submit()},type:"primary",loading:this.state.submitLoading,style:{marginLeft:16,borderRadius:4}},void 0,"\u4fdd \u5b58")))},t}(m.default.PureComponent);t.default=(0,j.connect)((function(e){return{checkNameVerifyInfo:(0,v.selectVerifyInfo)(e)}}))(g.Form.create()(N))},"./src/module/sysManage/projectManager/resourceApprovePage/ResourceApprovePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/table/index.js")),o=S(a("./node_modules/antd/es/button/index.js")),s=S(a("./node_modules/antd/es/tooltip/index.js")),r=S(a("./node_modules/babel-runtime/helpers/jsx.js")),i=S(a("./node_modules/antd/es/message/index.js")),d=S(a("./node_modules/babel-runtime/helpers/typeof.js")),l=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=S(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=S(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=a("./src/components/index.js"),h=S(a("./src/redux/services/sysManager/projectManage.js")),g=S(a("./src/module/sysManage/projectManager/resourceApprovePage/component/SearchBar.jsx")),v=a("./src/routes/routeHelper.jsx"),y=a("./src/module/sysManage/projectManager/util/dataUtil.js"),b=a("./src/utils/history.js"),x=a("./src/styles/GlobalStyle.js"),C=a("./src/module/sysManage/projectManager/modelEnums.js"),j=S(a("./src/module/sysManage/projectManager/resourceApprovePage/editPage/ApproveProjectInfo.jsx"));function S(e){return e&&e.__esModule?e:{default:e}}var I=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),T=(0,r.default)("br",{}),w=(0,r.default)("br",{}),E=(0,r.default)(m.LoadingIndicator,{position:"relative"}),D=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,d.default)(t))||!t)}catch(e){return!1}},n.handleEdit=function(e,t){"view"===t?(0,b.navigateTo)(v.operationUrl.approveProjectView(e.applyId)):n.openKpiConfig(e)},n.fetchData=function(e){n.setState({loading:!0}),h.default.getApproveSinglesList(e).then((function(e){n.setState({approveList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({approveList:[],loading:!1}),i.default.error(e.message)}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.onSelectChange=function(e,t){n.approveData=[];for(var a=0;a<t.length;a++)n.approveData.push(t[a])},n.callModalVisible=function(e){e&&n.fetchData(n.searchCond),n.setState({modalVisible:!1})},n.openKpiConfig=function(e){e?(n.approveData=[e],n.setState({modalVisible:!0})):0===n.approveData.length?i.default.info("\u8bf7\u9009\u62e9\u6279\u91cf\u5ba1\u6279\u6570\u636e\uff01"):n.setState({modalVisible:!0})},n.state={loading:!1,approveList:[],modalVisible:!1},n.approveData=[],n.columns=[{title:I,width:70,dataIndex:"applyId",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,width:220,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u7533\u8bf7\u65f6\u95f4",dataIndex:"applyTime",width:170,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u7533\u8bf7\u7c7b\u578b",dataIndex:"applyType",width:90,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft"},void 0,C.APPLY_TYPE.getDescFromValue(e))}},{title:"\u7533\u8bf7\u5185\u5bb9",dataIndex:"applyContent",ellipsis:!0,render:function(e){var t=n.isJSON(e)?JSON.parse(e):null,a=(0,y.resourceFormat)(_.get(t,"quotaSettingLast")),o=(0,y.resourceFormat)(_.get(t,"quotaSetting"));return(0,r.default)(s.default,{placement:"topLeft",title:(0,r.default)("p",{},void 0,(0,r.default)("span",{style:{lineHeight:"25px"}},void 0,"\u7533\u8bf7\u524d\uff1a",a),T,(0,r.default)("span",{},void 0,"\u7533\u8bf7\u540e\uff1a",o||"\u65e0"))},void 0,(0,r.default)("span",{style:{lineHeight:"25px"}},void 0,"\u7533\u8bf7\u524d\uff1a",a),w,(0,r.default)("span",{},void 0,"\u7533\u8bf7\u540e\uff1a",o||"\u65e0"))}},{title:"\u7533\u8bf7\u4eba",dataIndex:"applyUser",ellipsis:!0,width:80,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u5ba1\u6279\u4eba",dataIndex:"approveUsers",ellipsis:!0,width:80,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u72b6\u6001",dataIndex:"approveState",ellipsis:!0,width:110,render:function(e){return(0,r.default)(m.StateLabel,{source:"approveState",code:e})}},{title:"\u64cd\u4f5c",width:80,render:function(e,t){var a=t.approveState,o=[];return-1!==_.indexOf(["WAIT_APPROVE"],a)&&o.push({handleName:"\u5ba1\u6279",handleAction:function(){n.handleEdit(t,"approve")}}),(0,r.default)(m.ListButtons,{buttons:o,maxShowNum:2})}}],n.searchCond={sortField:"APPLY_TIME.DESC",projectName:"",approveStates:""},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.render=function(){var e=this,t=this.state,a=t.approveList,s=t.loading,i={onChange:this.onSelectChange,getCheckboxProps:function(e){return{disabled:"WAIT_APPROVE"!==e.approveState}}};return(0,r.default)(x.PageWrapper,{},void 0,(0,r.default)(m.ModalView,{viewType:this.state.viewType,modalTitle:"\u5ba1\u6279\u6570\u636e",onCancelType:!1,width:750,callVisible:this.callModalVisible,modalVisible:this.state.modalVisible,comp:(0,r.default)(j.default,{approveData:this.approveData,callVisible:this.callModalVisible})}),(0,r.default)(x.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){e.openKpiConfig()},className:"saveButton",type:"primary"},void 0,"\u6279\u91cf\u5ba1\u6279"),(0,r.default)(g.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,r.default)(x.PageBody,{},void 0,(0,r.default)(x.TableWrapper,{},void 0,s&&(0,r.default)("div",{style:{marginTop:50}},void 0,E),!s&&(0,r.default)(n.default,{rowSelection:i,dataSource:a,rowKey:"applyId",bordered:!0,pagination:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(D)},"./src/module/sysManage/projectManager/resourceApprovePage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/babel-runtime/helpers/jsx.js")),o=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=h(a("./node_modules/babel-runtime/helpers/inherits.js")),i=h(a("./node_modules/antd/es/input/index.js")),d=h(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=h(a("./node_modules/react/index.js")),u=(h(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js"),p=a("./src/config/ui-config.js"),f=a("./src/module/sysManage/projectManager/modelEnums.js"),m=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function h(e){return e&&e.__esModule?e:{default:e}}var g=d.default.Option,v={width:"130px"},y=i.default.Search,b=m.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"bzc870-0"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"],(function(e){return e.color})),x=(0,n.default)(g,{value:"APPLY_TIME.DESC"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),C=(0,n.default)(g,{value:""},void 0,"\u5168\u90e8"),j=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("projectName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeExecStatus=n.changeSelect("approveStates"),n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:v,placeholder:"\u9009\u62e9\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,x)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{defaultValue:"",onChange:this.changeExecStatus,style:v,placeholder:"\u6267\u884c\u72b6\u6001",className:"sort-cond"},void 0,C,f.APPROVAL_STATE.getValueAndDescList().map((function(e){return(0,n.default)(g,{value:e.code},e.code,(0,n.default)(b,{color:p.APPROVAL_STATE_COLOR_MAP[e.code]}),e.desc)})))),(0,n.default)("div",{style:{marginLeft:16}},void 0,(0,n.default)(y,{placeholder:"\u8bf7\u8f93\u5165\u9879\u76ee\u540d\u79f0\u67e5\u8be2",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(j)},"./src/module/sysManage/projectManager/resourceApprovePage/editPage/ApproveProjectInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ConfigButtonDom=t.ApproveProjectInfoDom=void 0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/antd/es/col/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/antd/es/message/index.js")),d=b(a("./node_modules/antd/es/modal/index.js")),l=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=b(a("./node_modules/babel-runtime/helpers/inherits.js")),p=b(a("./node_modules/antd/es/radio/index.js")),f=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var m=b(a("./node_modules/react/index.js")),h=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");b(a("./node_modules/prop-types/index.js"));var v=b(a("./src/redux/services/sysManager/projectManage.js")),_=a("./node_modules/react-redux/es/index.js"),y=a("./src/components/index.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=g.Form.Item,C=f.default.TextArea,j=p.default.Group,S=t.ApproveProjectInfoDom=h.default.div.withConfig({displayName:"ApproveProjectInfo__ApproveProjectInfoDom",componentId:"sc-2h221r-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;"]),I=t.ConfigButtonDom=h.default.div.withConfig({displayName:"ApproveProjectInfo__ConfigButtonDom",componentId:"sc-2h221r-1"})(["text-align:right;line-height:70px;padding-right:30px;"]),T={width:"100%"},w=(0,r.default)(p.default,{value:"APPROVED"},void 0,"\u901a\u8fc7"),E=(0,r.default)(p.default,{value:"FAILED"},void 0,"\u4e0d\u901a\u8fc7"),D=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.savaOrSubmit=function(){var e=n.props.approveData;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5ba1\u6838\uff1a"+(1===e.length?e[0].projectName:e.length+"\u6761")+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){for(var o=[],s=0;s<e.length;s++)o.push({applyId:e[s].applyId,approveState:n.moduleData.approveState,approveOpinion:n.moduleData.approveOpinion});v.default.approveProject(o).then((function(e){e.success&&(i.default.success("\u5ba1\u6279\u6210\u529f\uff01"),n.props.callVisible("type"),t())})).catch((function(e){a(),i.default.error(e.message)}))}))}})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.getValBlur=function(e,t){n.moduleData[t]=e,n.props.form.setFieldsValue({type:e})},n.moduleData={approveState:"APPROVED",approveOpinion:""},n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(S,{},void 0,(0,r.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:T},void 0,(0,r.default)(g.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(x,{label:"\u5ba1\u6279\u72b6\u6001"},void 0,t("approveState",{rules:[{required:!0}],initialValue:this.moduleData.approveState})((0,r.default)(j,{onChange:function(t){return e.getValBlur(t.target.value,"approveState")},name:"radiogroup"},void 0,w,E))))),(0,r.default)(s.default,{style:{marginLeft:10,marginTop:24}},void 0,(0,r.default)(o.default,{span:24},void 0,(0,r.default)(x,{label:"\u5ba1\u6279\u610f\u89c1"},void 0,t("roleId",{rules:[{min:0,max:150,message:"\u5ba1\u6279\u610f\u89c1\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7150"}],initialValue:this.moduleData.approveOpinion})((0,r.default)(C,{autosize:{minRows:5,maxRows:8},style:{width:500,marginRight:10,min:0,max:450},onBlur:function(t){return e.getValBlur(t.target.value,"approveOpinion")},rows:8}))))))),(0,r.default)(I,{},void 0,(0,r.default)(n.default,{onClick:function(){return e.props.callVisible()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,r.default)(n.default,{onClick:this.savaOrSubmit,type:"primary",style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(m.default.PureComponent);t.default=(0,_.connect)((function(){return{}}))(g.Form.create()(D))},"./src/module/sysManage/projectManager/serviceApplyPage/ApplyServicePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/antd/es/tooltip/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/antd/es/message/index.js")),d=C(a("./node_modules/antd/es/modal/index.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=C(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=a("./src/components/index.js"),h=C(a("./src/redux/services/sysManager/projectManage.js")),g=C(a("./src/module/sysManage/projectManager/serviceApplyPage/component/SearchBar.jsx")),v=a("./src/routes/routeHelper.jsx"),y=a("./src/utils/history.js"),b=a("./src/styles/GlobalStyle.js"),x=a("./src/module/sysManage/projectManager/modelEnums.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),S=(0,r.default)(m.LoadingIndicator,{position:"relative"}),I=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.handleEdit=function(e,t){"view"===t?(0,y.navigateTo)(v.operationUrl.applyServiceView(e.applyId)):(0,y.navigateTo)(v.operationUrl.applyServiceEdit(e.applyId))},n.deleteById=function(e){var t=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664[ "+e.projectName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(a,n){h.default.deleteProjectApply(e.applyId).then((function(){t.fetchData(t.searchCond),a(),i.default.success("\u5220\u9664\u6210\u529f\uff01")})).catch((function(e){n(),i.default.error(e.message)}))})).catch((function(){return i.default.error("Oops errors!")}))}})},n.fetchData=function(e){n.setState({loading:!0}),h.default.getProjectApplyList(e).then((function(e){n.setState({projectList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({projectList:[],loading:!1}),i.default.error(e.message)}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.state={loading:!1,projectList:[],selectProjectList:[]},n.columns=[{title:j,width:"7%",dataIndex:"applyId",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u7533\u8bf7\u65f6\u95f4",dataIndex:"applyTime",width:140,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"--")}},{title:"\u7533\u8bf7\u7c7b\u578b",dataIndex:"applyType",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,x.APPLY_TYPE.getDescFromValue(e))}},{title:"\u5ba1\u6279\u4eba",dataIndex:"approveUsers",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e||"--")}},{title:"\u72b6\u6001",dataIndex:"approveState",ellipsis:!0,render:function(e){return(0,r.default)(m.StateLabel,{source:"approveState",code:e})}},{title:"\u64cd\u4f5c",width:180,render:function(e,t){var a=t.approveState,o=[{handleName:"\u67e5\u770b",handleAction:function(){n.handleEdit(t,"view")}}];return-1!==_.indexOf(["FAILED","WAIT_APPROVE"],a)&&o.push({handleName:"\u5220\u9664",handleAction:function(){n.deleteById(t)}}),(0,r.default)(m.ListButtons,{buttons:o,maxShowNum:2})}}],n.searchCond={projectName:"",approveStates:"",applyTypes:"SERVICE"},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=this;h.default.getProjectApplyList(this.searchCond).then((function(t){e.setState({projectList:t.data?t.data:[],loading:!1,selectProjectList:t.data?t.data:[]})})).catch((function(t){e.setState({projectList:[],loading:!1}),i.default.error(t.message)}))},t.prototype.render=function(){var e=this.state,t=e.projectList,a=e.loading,s=e.selectProjectList;return(0,r.default)(b.PageWrapper,{},void 0,(0,r.default)(b.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){(0,y.navigateTo)(v.operationUrl.applyServiceCreate())},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u7533\u8bf7"),(0,r.default)(g.default,{projectList:s,onChange:this.changeSearchCond})),(0,r.default)(b.PageBody,{},void 0,(0,r.default)(b.TableWrapper,{},void 0,a&&(0,r.default)("div",{style:{marginTop:50}},void 0,S),!a&&(0,r.default)(n.default,{dataSource:t,rowKey:"applyId",bordered:!0,pagination:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(I)},"./src/module/sysManage/projectManager/serviceApplyPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/select/style/index.js");var d=m(a("./node_modules/react/index.js")),l=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/styles/GlobalStyle.js"),c=a("./src/config/ui-config.js"),p=a("./src/module/sysManage/projectManager/modelEnums.js"),f=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=i.default.Option,g={width:"130px"},v=f.default.span.withConfig({displayName:"SearchBar__StatusIcon",componentId:"sc-10qfy30-0"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;"],(function(e){return e.color})),y=(0,n.default)(h,{value:""},void 0,"\u5168\u90e8"),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.doSearch=function(e){n.props.onChange("projectName",e)},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("projectName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeExecStatus=n.changeSelect("approveStates"),n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)(u.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(i.default,{defaultValue:"",onChange:this.changeExecStatus,style:g,placeholder:"\u6267\u884c\u72b6\u6001",className:"sort-cond"},void 0,y,p.APPROVAL_STATE.getValueAndDescList().map((function(e){return(0,n.default)(h,{value:e.code},e.code,(0,n.default)(v,{color:c.APPROVAL_STATE_COLOR_MAP[e.code]}),e.desc)})))))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(b)},"./src/module/sysManage/projectManager/serviceApplyPage/detailPage/ApplyServiceDetail.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=void 0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/babel-runtime/helpers/extends.js")),s=j(a("./node_modules/antd/es/col/index.js")),r=j(a("./node_modules/antd/es/row/index.js")),i=j(a("./node_modules/babel-runtime/helpers/jsx.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/babel-runtime/helpers/typeof.js")),u=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=j(a("./node_modules/babel-runtime/helpers/inherits.js")),f="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\projectManager\\serviceApplyPage\\detailPage\\ApplyServiceDetail.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var m=j(a("./node_modules/react/index.js")),h=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./node_modules/react-redux/es/index.js"),v=(j(a("./node_modules/prop-types/index.js")),j(a("./src/redux/services/sysManager/projectManage.js"))),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=a("./src/components/index.js"),x=a("./src/utils/history.js"),C=a("./src/routes/routeHelper.jsx");function j(e){return e&&e.__esModule?e:{default:e}}var S=y.Form.Item,I=h.default.div.withConfig({displayName:"ApplyServiceDetail__DetailInfoWrapper",componentId:"sc-1xfwikn-0"})(["background:#fff;padding:20px;.edit__icon{margin-left:10px;}.display__value{word-break:break-word;}.ant-col-8{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:40%;}"]),T={labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:8}}},w=t.ButtonDom=h.default.div.withConfig({displayName:"ApplyServiceDetail__ButtonDom",componentId:"sc-1xfwikn-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),E=(0,i.default)(b.LoadingIndicator,{position:"relative"}),D=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.cancel=function(){(0,x.navigateTo)(C.operationUrl.applyServiceManage())},n.getUpdateapplyName=function(e,t){for(var a="--",n=0;e&&n<e.length;n++)if(t.projectId===e[n].projectId){a=e[n].projectName;break}return a},n.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,l.default)(t))||!t)}catch(e){return!1}},n.getRoleName=function(e){var t="--";if(e&&n.isJSON(e)){var a=JSON.parse(e);t=_.get(a,"[0].userRoles[0].roleName","--")}return t},n.compareDate=function(e,t){return new Date(e.replace(/-/g,"/"))<new Date(t.replace(/-/g,"/"))},n.getNewApproveBeans=function(e){if(e&&e.length>0){var t=[];return t.push(e[e.length-1]),t}return null},n.viewType=_.get(a.match,"params.action",null),n.applyId=_.get(a.match,"params.applyId",null),n.state={applyProjectInfo:{},loading:!1,applyProjectList:[]},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){var e=this;v.default.getApplyProjectCurrentUser().then((function(t){t&&e.setState({applyProjectList:t.data})})).catch((function(e){d.default.error(e.message)})),"create"!==this.viewType&&(this.setState({loading:!0}),v.default.getProjectApplyInfo(this.applyId).then((function(t){t&&e.setState({applyProjectInfo:t.data,loading:!1})})).catch((function(t){e.setState({loading:!1}),d.default.error(t.message)})))},t.prototype.render=function(){var e=this.state,t=e.applyProjectList,a=e.applyProjectInfo,d=e.loading,l=this.getNewApproveBeans(a.approveBeans);return(0,i.default)(I,{},void 0,d&&E,!d&&(0,i.default)("div",{},void 0,(0,i.default)(b.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,m.default.createElement(y.Form,(0,o.default)({},T,{__source:{fileName:f,lineNumber:151}}),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u9879\u76ee\u540d\u79f0"},void 0,this.getUpdateapplyName(t,a))),(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u9879\u76ee\u89d2\u8272"},void 0,this.getRoleName(_.get(a,"applyContent",null))))))),""!==_.get(l,"[0].approveState","")&&(0,i.default)(b.ModelConfigPanel,{title:"\u5ba1\u6279\u8be6\u60c5"},void 0,m.default.createElement(y.Form,(0,o.default)({},T,{__source:{fileName:f,lineNumber:166}}),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u5ba1 \u6279 \u4eba"},void 0,_.get(l,"[0].approveUser","--"))),(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u5ba1\u6279\u72b6\u6001"},void 0,(0,i.default)("div",{style:{marginTop:8}},void 0,(0,i.default)(b.StateLabel,{source:"approveState",code:_.get(l,"[0].approveState")}))))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:8},void 0,(0,i.default)(S,{label:"\u5ba1\u6279\u65f6\u95f4"},void 0,_.get(l,"[0].approveTime","--")))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:10},void 0,(0,i.default)(S,{label:"\u5ba1\u6279\u610f\u89c1"},void 0,_.get(l,"[0].approveOpinion","--"))))))),(0,i.default)(w,{},void 0,(0,i.default)(n.default,{onClick:this.cancel},void 0,"\u8fd4 \u56de")))},t}(m.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(D)},"./src/module/sysManage/projectManager/serviceApplyPage/editPage/ApplyServiceInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ConfigButtonDom=t.ApplyProjectInfoDom=void 0;var n=M(a("./node_modules/antd/es/button/index.js")),o=M(a("./node_modules/antd/es/col/index.js")),s=M(a("./node_modules/antd/es/row/index.js")),r=M(a("./node_modules/antd/es/drawer/index.js")),i=M(a("./node_modules/babel-runtime/helpers/jsx.js")),d=M(a("./node_modules/antd/es/message/index.js")),l=M(a("./node_modules/babel-runtime/helpers/typeof.js")),u=M(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=M(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=M(a("./node_modules/babel-runtime/helpers/inherits.js")),f=M(a("./node_modules/antd/es/modal/index.js")),m=M(a("./node_modules/antd/es/input/index.js")),h=M(a("./node_modules/antd/es/tree/index.js")),g=M(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/drawer/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/tree/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var v=M(a("./node_modules/react/index.js")),_=M(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),y=M(a("./node_modules/lodash/lodash.js")),b=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");M(a("./node_modules/prop-types/index.js"));var x=a("./src/redux/services/sysManager/apiUserManager.js"),C=M(a("./src/redux/services/sysManager/projectManage.js")),j=a("./node_modules/react-redux/es/index.js"),S=a("./src/components/index.js"),I=a("./src/utils/history.js"),T=a("./src/routes/routeHelper.jsx"),w=M(a("./src/module/devCenter/apiDoc/ApiDocPage.jsx")),E=a("./src/redux/reducers/auth.js"),D=a("./src/utils/authPermit.js");function M(e){return e&&e.__esModule?e:{default:e}}var k=b.Form.Item,P=g.default.Option,L=h.default.TreeNode,N=m.default.Search,A=f.default.confirm,R=t.ApplyProjectInfoDom=_.default.div.withConfig({displayName:"ApplyServiceInfo__ApplyProjectInfoDom",componentId:"sc-17rupav-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;"]),F=t.ConfigButtonDom=_.default.div.withConfig({displayName:"ApplyServiceInfo__ConfigButtonDom",componentId:"sc-17rupav-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),O={width:"100%"},V=(0,i.default)(S.LoadingIndicator,{position:"relative"}),U=(0,i.default)(P,{value:""},void 0,"\u8bf7\u9009\u62e9API\u7528\u6237"),B=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));n.queryApiUserSerPermit=function(e){(0,x.getApiUserSerPermit)(e).then((function(e){for(var t=[],a=0;a<e.data.length;a++)t.push(y.default.get(e.data[a],"apiId"));n.setState({apiUserSerPermit:t})}))},n.setCheckedKeys=function(e){for(var t=[],a=0;e&&a<e.length;a++)t.push(e[a].key);return t},n.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,l.default)(t))||!t)}catch(e){return!1}},n.savaOrSubmit=function(){var e=!0;0===n.state.checkedKeys.length&&(e=!1),n.props.form.validateFieldsAndScroll((function(t){null!==t&&(e=!1)})),e?n.setState({modalVisible:!0}):d.default.error("\u8bf7\u586b\u5199\u57fa\u7840\u4fe1\u606f\u548c\u670d\u52a1\u4fe1\u606f\uff01")},n.dataFormatTreeData=function(e){for(var t=[],a=0;a<e.length;a++){n.applyContent=[];var o=e[a];-1===y.default.indexOf(n.state.expandedKeys,o.key)&&-1===y.default.indexOf(n.state.checkedKeys,o.key)||(n.setTreeData([o],n.state.checkedKeys),t.push({applyType:"SERVICE",projectId:o.key,projectName:o.title,applyContent:JSON.stringify({apiUserId:n.moduleData.apiUserId,content:n.applyContent})}))}return t},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"||"apply"===n.viewType?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var e=n.dataFormatTreeData(n.state.applyServiceList);"create"===n.viewType&&"apply"!==n.viewType||(e.applyId=n.applyId),C.default.editProjectApply(e,n.viewType).then((function(e){e.success&&(n.setState({confirmLoading:!1,modalVisible:!1}),d.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),(0,I.navigateTo)(T.operationUrl.applyServiceManage()))})).catch((function(e){throw n.setState({confirmLoading:!1}),e}))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){"view"===n.viewType?(0,I.navigateTo)(T.operationUrl.applyServiceManage()):A({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u9879\u76ee\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,I.navigateTo)(T.operationUrl.applyServiceManage())}})},n.onCheck=function(e){n.setState({checkedKeys:e})},n.generateList=function(e){for(var t=0;t<e.length;t++){var a=e[t],o=a.key,s=a.title;n.dataList.push({key:o,title:s}),a.children&&n.generateList(a.children)}},n.onChange=function(e){var t=e.target.value,a=n.dataList.map((function(e){return e.title.indexOf(t)>-1?n.getParentKey(e.key,n.state.applyServiceList):null})).filter((function(e,t,a){return e&&a.indexOf(e)===t}));n.setState({expandedKeys:a,searchValue:t,autoExpandParent:!0})},n.getParentKey=function(e,t){for(var a=void 0,o=0;o<t.length;o++){var s=t[o];s.children&&(s.children.some((function(t){return t.key===e}))?a=s.key:n.getParentKey(e,s.children)&&(a=n.getParentKey(e,s.children)))}return a},n.onExpand=function(e){n.setState({expandedKeys:e,autoExpandParent:!1})},n.getValBlur=function(e){n.moduleData.apiUserId=e,n.props.form.setFieldsValue({apiUserId:e}),e&&""!==e&&n.queryApiUserSerPermit(e)},n.lookApi=function(e){var t=e.path.split(",");n.setState({modalVisibleApi:!0,serviceId:y.default.get(t,"[2]",null),appId:e.key,profile:e.profile})},n.setApiVal=function(e,t){var a=e;return(0,i.default)("div",{style:{display:"contents"}},void 0,!t&&(0,i.default)("span",{},void 0,e.title),(0,i.default)("a",{style:{marginLeft:15,fontSize:10},onClick:function(){n.lookApi(a)}},void 0,"\u67e5\u770bAPI"))},n.callVisibleApi=function(){n.setState({modalVisibleApi:!1})},n.viewType=y.default.get(a.match,"params.action",null),n.applyId=y.default.get(a.match,"params.applyId",null),n.apiUserId=y.default.get(a.match,"params.apiUserId",""),n.state={checkedKeys:[],modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1,applyServiceList:[],expandedKeys:[],searchValue:"",autoExpandParent:!0,apiUserList:[],apiUserId:n.apiUserId,applyUser:"",modalVisibleApi:!1,serviceId:null,appId:null,apiUserSerPermit:[],profile:null},n.dataList=[],n.moduleData={apiUserId:n.apiUserId};var o=(0,I.parseParms)(a.location);return n.from=y.default.get(o,"from",null),n.appId=y.default.get(o,"appId",null),n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){var e=this;"nlp_zone"===this.from&&((0,D.getUser)()&&(0,D.getUser)().userId||this.props.dispatch(E.authActions.logoutRequest())),this.setState({loading:!0}),(0,x.getApiUsersDropDown)({apiUserType:1}).then((function(t){e.setState({apiUserList:t.data})})).catch((function(){return e.setState({})})),C.default.getProjectApisList({appId:this.appId}).then((function(t){e.setState({applyServiceList:t.data.length>0?t.data:[],loading:!1})})).catch((function(t){e.setState({applyServiceList:[],loading:!1}),d.default.error(t.message)})),"create"!==this.viewType&&"apply"!==this.viewType&&C.default.getProjectApplyInfo(this.applyId).then((function(t){if(t){var a=t.data;a.applyContent=a.applyContent&&e.isJSON(a.applyContent)?JSON.parse(a.applyContent):[],e.setState({checkedKeys:e.setCheckedKeys(a.applyContent.content),loading:!1,apiUserId:y.default.get(a,"applyContent.apiUserId",""),applyUser:y.default.get(a,"applyUser","")}),y.default.get(a,"applyContent.apiUserId")&&""!==y.default.get(a,"applyContent.apiUserId")&&e.queryApiUserSerPermit(y.default.get(a,"applyContent.apiUserId",""))}})).catch((function(t){e.setState({loading:!1}),d.default.error(t.message)}))},t.prototype.setTreeData=function(e,t){for(var a=0;a<e.length;a++)-1!==y.default.indexOf(t,e[a].key)&&(e[a].path?this.applyContent.push({key:e[a].key,title:e[a].title,path:e[a].path}):this.applyContent.push({key:e[a].key,title:e[a].title})),e[a].children&&this.setTreeData(e[a].children,t)},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,d=a.applyServiceList,l=a.modalVisible,u=a.modalTxt,c=a.confirmLoading,p=a.loading,m=a.checkedKeys,v=a.expandedKeys,_=a.autoExpandParent,x=a.searchValue,C=a.apiUserList,j=a.applyUser,I=a.apiUserId;this.generateList(d);return(0,i.default)(R,{},void 0,(0,i.default)(r.default,{title:"\u67e5\u770bAPI\u8be6\u60c5",width:700,placement:"right",closable:!1,onClose:this.callVisibleApi,visible:this.state.modalVisibleApi},void 0,this.state.serviceId&&(0,i.default)("div",{style:{minHeight:250}},void 0,(0,i.default)(w.default,{style:{padding:0},hideAnchor:!0,profile:this.state.profile,appId:this.state.appId,serviceId:this.state.serviceId,showTest:!1}))),(0,i.default)(f.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:l,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:c,onCancel:this.submitModalCancel},void 0,(0,i.default)("p",{},void 0,u)),p&&V,!p&&(0,i.default)("div",{},void 0,(0,i.default)(S.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:O},void 0,(0,i.default)(b.Form,{layout:"inline"},void 0,(0,i.default)(s.default,{},void 0,(0,i.default)(o.default,{span:12},void 0,(0,i.default)(k,{label:"\u7533\u8bf7\u7528\u6237"},void 0,"view"!==this.viewType?(0,D.getUser)().userName:j)),(0,i.default)(o.default,{span:12},void 0,(0,i.default)(k,{label:"API\u7528\u6237"},void 0,t("apiUserId",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u9879API\u7528\u6237"}],initialValue:I})((0,i.default)(g.default,{disabled:!("view"!==this.viewType&&!this.apiUserId),showSearch:!0,filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0},onChange:function(t){return e.getValBlur(t)},style:{width:"350px"},placeholder:"\u8bf7\u9009\u62e9\u9879API\u7528\u6237"},void 0,U,C.map((function(e,t){return(0,i.default)(P,{value:e.apiUserId},t,e.apiUserName)}))))))))),(0,i.default)(S.ModelConfigPanel,{title:"\u670d\u52a1\u4fe1\u606f",style:O},void 0,(0,i.default)(b.Form,{layout:"inline"},void 0,(0,i.default)(s.default,{style:{maxHeight:500,overflow:"auto"}},void 0,(0,i.default)(o.default,{span:12},void 0,(0,i.default)(k,{label:"\u540d\u79f0\u67e5\u8be2"},void 0,(0,i.default)(N,{style:{marginBottom:8},placeholder:"\u8f93\u5165\u6761\u4ef6\u53ef\u4ee5\u67e5\u8be2",onChange:this.onChange})))),(0,i.default)(s.default,{style:{maxHeight:500,overflow:"auto"}},void 0,(0,i.default)(o.default,{span:12},void 0,(0,i.default)(k,{label:"\u9879\u76eeAPI"},void 0,(0,i.default)(h.default,{checkable:!0,onCheck:this.onCheck,checkedKeys:m,onExpand:this.onExpand,expandedKeys:v,autoExpandParent:_},void 0,function t(a){return a.map((function(a){var n=a.title.indexOf(x),o=a.title.substr(0,n),s=a.title.substr(n+x.length),r=n>-1?(0,i.default)("span",{},void 0,o,(0,i.default)("span",{style:{color:"#f50"}},void 0,x),s,a.path&&e.setApiVal(a,"type")):(0,i.default)("span",{},void 0,a.title,a.path&&e.setApiVal(a,"type"));return a.children?(0,i.default)(L,{disabled:-1!==y.default.indexOf(e.state.apiUserSerPermit,a.key)||"view"===e.viewType,title:r},a.key,t(a.children)):(0,i.default)(L,{disabled:-1!==y.default.indexOf(e.state.apiUserSerPermit,a.key)||"view"===e.viewType,title:e.setApiVal(a)},a.key)}))}(d)))))))),(0,i.default)(F,{},void 0,(0,i.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),"view"!==this.viewType&&(0,i.default)(n.default,{onClick:this.savaOrSubmit,type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(v.default.PureComponent);t.default=(0,j.connect)((function(){return{}}))(b.Form.create()(B))},"./src/module/sysManage/projectManager/util/dataUtil.js":function(e,t,a){"use strict";t.__esModule=!0,t.formatAllGpuType=function(e,t){for(var a={PRODUCT:[],DEV:[],TEST:[]},n=0;n<e.length;n++){var o=_.groupBy(e[n].gpu,"gpuNumber");for(var s in o){for(var r=[],i=0;i<o[s].length;i++)r.push({gpuModelId:_.get(o[s][i],"gpuModelId"),gpuModelName:_.get(o[s][i],"gpuModelName"),checked:!1});a[e[n].resQuotaType].push({gpuNumber:s,list:r})}}if(t)return a[t];return a},t.isInclude=function(e,t){for(var a=!0,n=function(n){if(-1!==_.findIndex(t.projectManagers,(function(t){return t==e[n].userId}))&&e[n].orgId!==t.orgId)return a=!1,"break"},o=0;e&&o<e.length;o++){if("break"===n(o))break}return a},t.getResQuotaType=function(e){var t={PRODUCT:"\u751f\u4ea7",DEV:"\u5f00\u53d1",TEST:"\u6d4b\u8bd5"};if(e)return t[e];return t},t.initResQuotaConf=function(e){var t=[],a=["DEV","TEST","PRODUCT"];if(e&&function(e){if("string"==typeof e)try{return JSON.parse(e),!0}catch(e){return!1}}(e))return t=JSON.parse(e);for(var n=0;n<a.length;n++)t.push({profile:a[n],resQuotaConf:{cpu:0,memory:0,gpu:[{gpuNumber:0,gpuModelId:"",gpuModelName:""}]},limitSetting:{cpu:0,memory:0,gpu:[{gpuNumber:0,gpuModelId:"",gpuModelName:""}]}});return t},t.resourceFormat=function(e){var t="";if(e&&e.gpu){(e.cpu||0===e.cpu)&&(t+=""+e.cpu),(e.memory||0===e.memory)&&(t+="/"+e.memory+" ");for(var a=0;a<e.gpu.length;a++)t+="("+(e.gpu[a].gpuNumber||0===e.gpu[a].gpuNumber?e.gpu[a].gpuNumber:"--")+"/"+(e.gpu[a].gpuModelName?e.gpu[a].gpuModelName:"--")+") /";if(t.length>0)return t.substring(0,t.length-1)}return""===t?"--":t}},"./src/module/sysManage/register/AiDocPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/modal/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js");var d=g(a("./node_modules/react/index.js")),l=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=(g(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=g(a("./src/module/sysManage/register/data.json")),f=g(a("./src/module/sysManage/register/AiDocVerticalPage.jsx")),m=g(a("./src/module/sysManage/register/MyPdfViewer.jsx")),h=g(a("./src/styles/images/register/index2.png"));function g(e){return e&&e.__esModule?e:{default:e}}var v=l.default.div.withConfig({displayName:"AiDocPage__AiDocPageDom",componentId:"sc-8jmtin-0"})([".ai-doc-banner{position:relative;height:320px;background:url(",") no-repeat center center #000;background-color:'#242435';-moz-background-size:cover;background-size:cover;color:#fff;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;.ai-doc-banner-wrapper{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);.ai-doc-banner-title{margin-bottom:20px;font-size:52px;letter-spacing:0.87px;text-align:center;}.ai-doc-banner-info{font-size:16px;line-height:1;text-align:center;}}}.ai-doc-section{margin:0 auto;width:1120px;padding-top:70px;margin-bottom:50px;.ai-product-title{margin-bottom:70px;font-size:36px;color:#000;line-height:1;text-align:center;}.ai-product-list{width:100%;.ai-product-list-title{margin-bottom:24px;font-size:18px;color:#000;font-weight:600;}ul{display:inline-grid;margin:20px 50px;padding-left:0px;width:16%;list-style:none;li{text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;cursor:pointer;line-height:48px;border-bottom:1px solid #e5e5e5;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:#3b85f5;font-size:16px;}}}}"],h.default),_=(0,o.default)("div",{className:"ai-doc-banner"},void 0,(0,o.default)("div",{className:"ai-doc-banner-wrapper"},void 0,(0,o.default)("div",{className:"ai-doc-banner-title"},void 0,"AI\u5f00\u653e\u5e73\u53f0\u6587\u6863\u4e2d\u5fc3"),(0,o.default)("div",{className:"ai-doc-banner-info"},void 0,"\u6570\u767e\u9879\u5168\u7403\u9886\u5148\u7684\u4eba\u5de5\u667a\u80fd\u670d\u52a1\u52a9\u60a8\u8d4b\u80fd\u4ea7\u54c1\uff0cAI\u5f00\u53d1\u8005\u4e4b\u65c5\u53ef\u4ece\u8fd9\u91cc\u5f00\u59cb\u3002"))),y=(0,o.default)("div",{className:"ai-product-title"},void 0,"\u4ea7\u54c1\u4e0e\u670d\u52a1"),b=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.setHref=function(e){n.setState({visible:!0,href:e})},n.handleCancel=function(){return n.setState({visible:!1})},n.state={href:"",visible:!1},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=p.default;return(0,o.default)(v,{},void 0,(0,o.default)(n.default,{width:1120,closable:!1,onCancel:this.handleCancel,footer:null,visible:this.state.visible},void 0,(0,o.default)(m.default,{href:this.state.href})),_,(0,o.default)("div",{className:"ai-doc-section"},void 0,(0,o.default)("div",{className:"ai-product"},void 0,y,t.length<=4?(0,o.default)("div",{className:"ai-product-list"},void 0,t.map((function(t,a){return(0,o.default)("ul",{},a,(0,o.default)("span",{className:"ai-product-list-title"},void 0,t.title),t.docs.map((function(t,a){return(0,o.default)("li",{onClick:function(){e.setHref(t.href)}},a,(0,o.default)(u.LineWrap,{placement:"topLeft",title:t.text,lineClampNum:1}))})))}))):(0,o.default)(f.default,{setHref:this.setHref,data:t}))))},t}(d.default.PureComponent);t.default=(0,c.connect)()(b)},"./src/module/sysManage/register/AiDocVerticalPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/react/index.js")),d=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=(p(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),u=a("./node_modules/react-redux/es/index.js"),c=p(a("./src/styles/images/register/index2.png"));function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.div.withConfig({displayName:"AiDocVerticalPage__AiDocVerticalPageDom",componentId:"sc-19n8pxd-0"})([".ai-doc-banner{position:relative;height:320px;background:url(",") no-repeat center center #000;background-color:'#242435';-moz-background-size:cover;background-size:cover;color:#fff;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;.ai-doc-banner-wrapper{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);.ai-doc-banner-title{margin-bottom:30px;font-size:52px;letter-spacing:0.87px;line-height:60px;text-align:center;}.ai-doc-banner-info{font-size:16px;line-height:1;text-align:center;}}}.ai-doc-section{margin:0 auto;width:1120px;padding-top:70px;margin-bottom:50px;.ai-product-title{margin-bottom:70px;font-size:36px;color:#000;line-height:1;text-align:center;}.ai-product-list{width:100%;.ai-product-wrapper{padding-bottom:50px;}.ai-product-list-item{margin:0 46.66666667px 70px;display:inline-block;width:210px;vertical-align:top;font-size:16px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}.ai-product-subtitle{margin-bottom:24px;font-size:18px;color:#000;font-weight:600;line-height:1;}.ai-product-name{cursor:pointer;line-height:48px;border-bottom:1px solid #e5e5e5;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:#3b85f5;}}}"],c.default),m=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.group=function(e,t){for(var a=0,n=[];a<e.length;)n.push(e.slice(a,a+=t));return n},n.state={},n}return(0,r.default)(t,e),t.prototype.render=function(){var e=this,t=this.group(this.props.data,4);return(0,n.default)(f,{},void 0,(0,n.default)("div",{className:"ai-doc-section"},void 0,(0,n.default)("div",{className:"ai-product"},void 0,(0,n.default)("div",{className:"ai-product-list"},void 0,t.map((function(t,a){return(0,n.default)("div",{className:"ai-product-list-item"},a,t.map((function(t,a){return(0,n.default)("div",{className:"ai-product-wrapper"},a,(0,n.default)("div",{className:"ai-product-subtitle"},void 0,t.title),t.docs.map((function(t,a){return(0,n.default)("div",{onClick:function(){e.props.setHref(t.href)},className:"ai-product-name"},a,(0,n.default)(l.LineWrap,{placement:"topLeft",title:t.text,lineClampNum:1}))})))})))}))))))},t}(i.default.PureComponent);t.default=(0,u.connect)()(m)},"./src/module/sysManage/register/MyPdfViewer.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/pagination/index.js")),o=h(a("./node_modules/antd/es/button/index.js")),s=h(a("./node_modules/babel-runtime/helpers/jsx.js")),r=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/pagination/style/index.js"),a("./node_modules/antd/es/button/style/index.js");var l=a("./node_modules/react/index.js"),u=h(l),c=a("./node_modules/react-redux/es/index.js"),p=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/icons/es/index.js");a("./node_modules/react-pdf/dist/Page/AnnotationLayer.css");var m=a("./node_modules/react-pdf/dist/entry.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=p.default.div.withConfig({displayName:"MyPdfViewer__MyPdfViewerDom",componentId:"xipbr9-0"})([""]),v=(0,s.default)(f.DownloadOutlined,{}),_=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.onDocumentLoad=function(e){var t=e.numPages;n.setState({numPages:t})},n.onChangePage=function(e){n.setState({pageNumber:e})},n.onClickLink=function(e){window.location.href=e},n.state={numPages:null,pageNumber:1},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.pageNumber,r=t.numPages,i=this.props.href;return(0,s.default)(g,{},void 0,(0,s.default)(l.Fragment,{},void 0,(0,s.default)(m.Document,{loading:(0,s.default)("div",{style:{textAlign:"center",margin:50}},void 0,"\u6b63\u5728\u52a0\u8f7d\u8bf7\u7a0d\u7b49...."),error:(0,s.default)("div",{style:{textAlign:"center",margin:50}},void 0,"\u8def\u5f84\u4e0d\u5b58\u5728\u65e0\u6cd5\u8bbf\u95ee\uff01"),onLoadSuccess:this.onDocumentLoad,file:i},void 0,(0,s.default)(m.Page,{pageNumber:a,scale:1.5})),(0,s.default)(o.default,{style:{height:40,padding:"0 20px",fontSize:"16px",borderRadius:"40px",top:"40px"},type:"primary",shape:"round",icon:v,size:"large",onClick:function(){return e.onClickLink(i)}},void 0,"\u4e0b\u8f7d\u6587\u4ef6"),(0,s.default)(n.default,{style:{marginTop:10,textAlign:"right"},total:r,showTotal:function(e){return e&&"\u5171 "+e+" \u9875"},current:a,pageSize:1,onChange:this.onChangePage})))},t}(u.default.PureComponent);t.default=(0,c.connect)()(_)},"./src/module/sysManage/register/RegisterPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/babel-runtime/helpers/extends.js")),o=y(a("./node_modules/antd/es/button/index.js")),s=y(a("./node_modules/antd/es/tooltip/index.js")),r=y(a("./node_modules/babel-runtime/helpers/jsx.js")),i=y(a("./node_modules/antd/es/modal/index.js")),d=y(a("./node_modules/antd/es/message/index.js")),l=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=y(a("./node_modules/babel-runtime/helpers/inherits.js")),p=y(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var f=y(a("./node_modules/react/index.js")),m=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=y(a("./src/styles/images/register/index2.png")),_=y(a("./src/redux/services/sysManager/userManager.js"));function y(e){return e&&e.__esModule?e:{default:e}}var b=g.Form.Item,x=p.default.Password,C=m.default.div.withConfig({displayName:"RegisterPage__RegisterPageDom",componentId:"sc-1uyahj6-0"})(["position:relative;height:750px;.brand{height:300px;width:100%;background:url(",") no-repeat center center #000;position:absolute;top:0;z-index:100;padding-top:120px;}h2{text-align:center;color:#fff;font-size:32px;font-weight:normal;margin:0;}h3{text-align:center;color:#fff;font-size:14px;font-weight:normal;opacity:0.6;margin:10px 0;}.reg-form{position:relative;z-index:200;width:835px;font-size:14px;margin:0 auto;top:220px;padding:45px 20px 20px;background:#fff;box-shadow:0 4px 5px 0 rgba(0,0,0,0.09);}.login-form-button{width:416px;height:42px;color:#fff;background-color:#288aed;border:none;font-size:16px;}.login-tip{line-height:30px;text-align:right;color:#666;width:417px;margin:0 auto;font-size:14px;}.footer{text-align:center;padding:50px 0;font-size:12px;color:#b8b8b8;display:block;bottom:0;margin-top:200px;}"],v.default),j={labelCol:{span:8},wrapperCol:{span:16}},S=(0,r.default)("div",{className:"brand"},void 0,(0,r.default)("h2",{},void 0,"\u6b22\u8fce\u6ce8\u518cAI\u5e73\u53f0\u5e10\u53f7"),(0,r.default)("h3",{},void 0,"\u51c6\u5907\u5f00\u542f\u60a8\u7684AI\u4e4b\u65c5")),I=(0,r.default)("div",{className:"footer"},void 0,"Copyright \xa9 2020 All Rights Reserved."),T=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.getUserBlur=function(e,t){n.user[t]=e,"userId"===t&&(0===e.length||e.length>40?n.setState({validateStatus:"error"}):(n.setState({validateStatus:"validating"}),new Promise((function(t){_.default.checkUserName({userId:e}).then((function(e){e.data?(n.setState({validateStatus:"error"}),t()):n.setState({validateStatus:"success"})})).catch((function(){n.setState({validateStatus:"error"})}))}))))},n.submitUser=function(){var e=n,t=!1;n.props.form.validateFieldsAndScroll((function(e){if(null===e){if(n.user.password!==n.user.password2)return t=!1,void d.default.info("2\u6b21\u5bc6\u7801\u8f93\u5165\u4e00\u81f4!");t=!0}})),t&&i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u8bf7\u786e\u8ba4\u6ce8\u518c["+n.user.userId+"]\u7528\u6237\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.setState({registerLoading:!0}),delete n.user.password2,new Promise((function(t){_.default.registerUser(n.user).then((function(a){"1"===a.code?(e.props.form.setFieldsValue({userId:"",password:"",password2:"",phone:"",deptId:""}),d.default.success("\u6ce8\u518c\u6210\u529f\uff01"),t()):d.default.info(a.message),e.setState({registerLoading:!1})})).catch((function(){d.default.error(response.message),e.setState({registerLoading:!1})}))}))}})},n.state={validateStatus:"",registerLoading:!1},n.user={userId:"",password:"",password2:"",phone:"",deptId:""},n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(C,{},void 0,S,(0,r.default)("div",{className:"reg-form"},void 0,(0,r.default)("p",{className:"login-tip"},void 0,"\u5df2\u6709AI\u8d26\u53f7\uff1f",(0,r.default)("a",{style:{cursor:"pointer"},href:"/login"},void 0,"\u7acb\u5373\u767b\u5f55")),f.default.createElement(g.Form,(0,n.default)({style:{width:"417px",margin:"0 auto"}},j,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\register\\RegisterPage.jsx",lineNumber:187}}),(0,r.default)(b,{help:"error"===this.state.validateStatus?(0,r.default)("span",{style:{color:"red"}},void 0,"\u5b57\u6bb5\u89c4\u5219\u4e0d\u7b26\u8981\u6c42\u6216\u7528\u6237\u540d\u91cd\u590d"):"",hasFeedback:!0,validateStatus:this.state.validateStatus},void 0,t("userId",{rules:[{required:!0,message:"\u7528\u6237\u540d\u4e0d\u7b26\u5408\u8981\u6c42",min:0,max:100}],initialValue:this.user.userId})((0,r.default)(s.default,{title:"\u8bbe\u7f6e\u540e\u4e0d\u53ef\u66f4\u6539\uff0c\u4e2d\u82f1\u6587\u5747\u53ef\uff0c\u6700\u957f20\u4e2a\u82f1\u6587\u6216\u800510\u4e2a\u6c49\u5b57"},void 0,(0,r.default)(p.default,{style:{width:415},placeholder:"\u7528\u6237\u540d",onBlur:function(t){return e.getUserBlur(t.target.value,"userId")}})))),(0,r.default)(s.default,{title:"\u5bc6\u7801\u5fc5\u987b8\u4f4d\u62168\u4f4d\u4ee5\u4e0a\u5b57\u7b26\uff0c\u5305\u542b\u6570\u5b57\u3001\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u7279\u6b8a\u5b57\u7b26\u4e2d\u7684\u81f3\u5c113\u79cd"},void 0,(0,r.default)(b,{},void 0,t("password",{rules:[{required:!0,min:5,max:50,pattern:/^.*(?=.{8,16})(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*?() ]).*$/,message:"\u5bc6\u7801\u5fc5\u987b8\u4f4d\u62168\u4f4d\u4ee5\u4e0a\u5b57\u7b26\uff0c\u5305\u542b\u6570\u5b57\u3001\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u7279\u6b8a\u5b57\u7b26[!@#$%^&*?()]\u4e2d\u7684\u81f3\u5c113\u79cd"}],initialValue:this.user.password})((0,r.default)(x,{style:{width:415},placeholder:"\u5bc6\u7801",onBlur:function(t){return e.getUserBlur(t.target.value,"password")}})))),(0,r.default)(s.default,{title:"\u8bf7\u586b\u5199\u786e\u8ba4\u5bc6\u7801"},void 0,(0,r.default)(b,{},void 0,t("password2",{rules:[{required:!0,message:"\u786e\u8ba4\u5bc6\u7801\u5fc5\u987b\u548c\u5bc6\u7801\u4e00\u81f4"}],initialValue:this.user.password2})((0,r.default)(x,{style:{width:415},placeholder:"\u786e\u8ba4\u5bc6\u7801",onBlur:function(t){return e.getUserBlur(t.target.value,"password2")}})))),(0,r.default)(b,{},void 0,t("phone",{rules:[{required:!0,pattern:/^1([38]\d|5[0-35-9]|7[3678])\d{8}$/,message:"\u8bf7\u586b\u5199\u6b63\u786e\u7684\u624b\u673a\u53f7"}],initialValue:this.user.phone})((0,r.default)(p.default,{style:{width:415},placeholder:"\u624b\u673a\u53f7",onBlur:function(t){return e.getUserBlur(t.target.value,"phone")}}))),(0,r.default)(b,{},void 0,t("deptId",{rules:[{required:!0,message:"\u8bf7\u586b\u5199\u90e8\u95e8\u4fe1\u606f"}],initialValue:this.user.deptId})((0,r.default)(p.default,{style:{width:415},placeholder:"\u90e8\u95e8",onBlur:function(t){return e.getUserBlur(t.target.value,"deptId")}}))),(0,r.default)(b,{},void 0,(0,r.default)(o.default,{loading:this.state.registerLoading,onClick:this.submitUser,type:"primary",htmlType:"submit",className:"login-form-button"},void 0,"\u6ce8\u518c")))),I)},t}(f.default.PureComponent);t.default=(0,h.connect)()(g.Form.create()(T))},"./src/module/sysManage/register/data.json":function(e){e.exports=JSON.parse('[{"title":"\u767d\u76ae\u4e66/\u4e00\u6307\u7985","docs":[{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9665e8e4b0a45be88b6f80.pdf","text":"\u5168\u57df\u4eba\u5de5\u667a\u80fd\u5e73\u53f0\u4e00\u7eb8\u7985","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d4962e4b01763fb02e2fc.pdf","text":"AI\u5e94\u7528\u4e00\u6307\u7985","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e96659de4b0a45be88b6f7e.pdf","text":"\u5168\u57df\u4eba\u5de5\u667a\u80fd\u4ea7\u54c1\u767d\u76ae\u4e66","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9665c2e4b0a45be88b6f7f.pdf","text":"\u5168\u57df\u667a\u80fd\u8fd0\u7ef4\u4ea7\u54c1\u767d\u76ae\u4e66","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e94a9c4e4b01569a173757c.pdf","text":"\u901a\u7528OCR\u4ea7\u54c1\u767d\u76ae\u4e66","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e94a9ffe4b01569a173757d.pdf","text":"\u901a\u7528NLP\u4ea7\u54c1\u767d\u76ae\u4e66","desc":""}]},{"title":"\u573a\u666f\u6848\u4f8b","docs":[{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e94aa22e4b01569a173757e.pdf","text":"\u643a\u53f7\u8f6c\u7f51\u89e3\u51b3\u65b9\u6848","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e94aa49e4b01569a173757f.pdf","text":"\u63d0\u901f\u964d\u8d39\u6c99\u76d8\u63a8\u6f14","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e94aa69e4b01569a1737580.pdf","text":"\u8f66\u724c\u8bc6\u522b\u89e3\u51b3\u65b9\u6848","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e94aa99e4b01569a1737581.pdf","text":"\u4eba\u8138\u8bc6\u522b\u89e3\u51b3\u65b9\u6848","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene//data_images/portal/5e94aac1e4b01569a1737582.pdf","text":"\u4eba\u8bc1\u5bf9\u6bd4\u65b9\u6848","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene//data_images/portal/5e94aae8e4b01569a1737583.pdf","text":"\u89c6\u9891\u63a5\u5165\u7efc\u5408\u89e3\u51b3\u65b9\u6848","desc":""}]},{"title":"\u5b66\u672f\u6210\u679c","docs":[{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d4b94e4b01763fb02e2fd.pdf","text":"\u643a\u53f7\u8f6c\u7f51Analytics\u6838\u5fc3\u7b97\u6cd5\u88abIEEE\u5f55\u53d6","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d4ba4e4b01763fb02e2fe.pdf","text":"AI\u67b6\u6784\u3001AI\u4fe1\u4ee4\u4f53\u7cfb\u5f62\u6210\u56fd\u9645\u6807\u51c6","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d4bc0e4b01763fb02e2ff.pdf","text":"\u8de8\u57df\u667a\u80fd\u544a\u8b66\u6839\u56e0\u5206\u6790\u548c\u57fa\u4e8e\u52a8\u6001\u9608\u503c\u7684\u7f51\u7edc\u8fd0\u7ef4\u5f02\u5e38\u68c0\u6d4b\u7eb3\u5165GSMA\u667a\u80fd\u81ea\u52a8\u7f51\u7edc\u6848\u4f8b\u62a5\u544a","desc":""}]},{"title":"\u5b66\u672f\u5206\u4eab","docs":[{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d556ce4b01763fb02e30a.pdf","text":"\u8bed\u97f3\u8bc6\u522b\u6280\u672f\u539f\u7406\u7b80\u4ecb","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d56d4e4b01763fb02e30e.pdf","text":"\u5c11\u6837\u672c\u5b66\u4e60","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d512ce4b01763fb02e301.pdf","text":"\u8054\u90a6\u5b66\u4e60","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d9227e4b01763fb02e31b.pdf","text":"\u7535\u4fe1\u53cd\u6b3a\u8bc8\u6a21\u578b","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d928ce4b01763fb02e31d.pdf","text":"\u53ef\u7a7f\u6234\u8bbe\u5907\u8054\u90a6\u8fc1\u79fb\u5b66\u4e60","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d54a4e4b01763fb02e305.pdf","text":"\u672a\u77e5\u73af\u5883\u4e0b\u7684\u7a33\u5b9a\u9884\u6d4b","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d552ce4b01763fb02e307.pdf","text":"\u4e00\u79cd\u7528\u4e8e\u4eba\u8138\u6297\u6b3a\u9a97\u7684\u8d85\u8f7b\u91cf\u7ea7\u5377\u79ef\u795e\u7ecf\u7f51\u7edc","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d5559e4b01763fb02e309.pdf","text":"\u57fa\u4e8e\u6ce8\u610f\u529b\u6b63\u5219\u5316\u7684ARNOR\u6846\u67b6","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d511ae4b01763fb02e300.pdf","text":"\u544a\u8b66RCA\u89c4\u5219\u52a8\u6001\u6316\u6398","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d512ce4b01763fb02e301.pdf","text":"\u4e00\u79cd\u57fa\u4e8eIR-UWB\u7684\u65b9\u5dee\u68c0\u6d4b\u7b97\u6cd5","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d9342e4b01763fb02e31e.pdf","text":"\u4e00\u79cd\u7075\u6d3b\u77eb\u6b63\u7684\u57fa\u4e8e\u6ce8\u610f\u529b\u673a\u5236\u7684\u6587\u672c\u8bc6\u522b\u65b9\u6cd5","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d5156e4b01763fb02e302.pdf","text":"\u4e0b\u4e00\u4ee3\u4e0a\u4e0b\u6587\u611f\u77e5\u65e0\u7ebf\u7f51\u7edc\u7684\u673a\u5668\u667a\u80fd\u6280\u672f","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d5707e4b01763fb02e310.pdf","text":"\u65f6\u95f4\u5e8f\u5217Prophet\u7b97\u6cd5","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d574be4b01763fb02e312.pdf","text":"Transfer Learning-Based Outdoor Position Recovery with Telco Data","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d548fe4b01763fb02e304.pdf","text":"Google EfficientNet Rethinking Model Scaling for Convolutional Neural Networks","desc":""},{"href":"http://10.1.251.211:8182/aiSquare/openApi/appscene/data_images/portal/5e9d54dce4b01763fb02e306.pdf","text":"STATE-OF-THE-ART SPEECH RECOGNITION WITH SEQUENCE-TO-SEQUENCE MODELS","desc":""}]}]')},"./src/module/sysManage/resTransfer/ResTransferPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=v(a("./node_modules/babel-runtime/helpers/jsx.js")),o=v(a("./node_modules/antd/es/message/index.js")),s=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=v(a("./node_modules/babel-runtime/helpers/inherits.js")),d=v(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var l=a("./node_modules/react/index.js"),u=(v(l),a("./node_modules/prop-types/index.js"),a("./node_modules/react-redux/es/index.js")),c=(v(a("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),v(a("./src/module/sysManage/resTransfer/components/ResTransfer.jsx"))),p=a("./src/redux/reducers/sysManager/sysManager.js"),f=a("./src/redux/selectors/sysManager/sysManager.js"),m=a("./src/redux/reducers/sysManager/resTransfer.js"),h=a("./node_modules/immutable3/dist/immutable.js"),g=a("./src/redux/selectors/sysManager/resTransfer.js");function v(e){return e&&e.__esModule?e:{default:e}}var y=d.default.confirm,b=function(e){function t(){var a,n,i;(0,s.default)(this,t);for(var d=arguments.length,l=Array(d),u=0;u<d;u++)l[u]=arguments[u];return a=n=(0,r.default)(this,e.call.apply(e,[this].concat(l))),n.handleLoadOwnerRes=function(e){n.props.loadResList({resDomain:e})},n.handleChangeSearchTxt=function(e){n.props.changeSearch(_.trim(e))},n.handleSaveTransfer=function(e,t,a,s){var r=t;t&&!_.isArray(t)&&(r=[t]);var i=n;y({title:"\u64cd\u4f5c\u786e\u8ba4?",content:"\u786e\u5b9a\u8981\u8bbe\u7f6e\u8be5"+n.getDomainName(e)+"\u7684\u8f6c\u4ea4\u914d\u7f6e\u5417\uff1f",okText:"\u786e\u5b9a",okType:"danger",cancelText:"\u53d6\u6d88",onOk:function(){return i.props.saveTransfer({resDomain:e,resIds:r,userIds:a,groupIds:s}),new Promise((function(t){_.defer((function(){var a=setInterval((function(){!1===i.props.saveTransferLoading&&(clearInterval(a),i.props.loadResList({resDomain:e}),i.props.saveTransferError?o.default.error(i.getDomainName(e)+"\u8f6c\u4ea4\u914d\u7f6e\u5931\u8d25!"):o.default.success(i.getDomainName(e)+"\u8f6c\u4ea4\u914d\u7f6e\u6210\u529f!"),t())}),300)}))}))}})},n.getDomainName=function(e){if(h.List.isList(n.props.domainDs)){var t=n.props.domainDs.find((function(t){return t.get("domainId")===e}));if(t)return t.get("domainName")}return""},n.handleRemoveTransfer=function(e,t,a,s){var r=t;t&&!_.isArray(t)&&(r=[t]);var i=n;y({title:"\u64cd\u4f5c\u786e\u8ba4?",content:"\u786e\u5b9a\u8981\u53d6\u6d88\u8be5"+n.getDomainName(e)+"\u7684\u8f6c\u4ea4\u914d\u7f6e\u5417\uff1f",okText:"\u786e\u5b9a",okType:"danger",cancelText:"\u53d6\u6d88",onOk:function(){return i.props.removeTransfer({resDomain:e,resIds:r,userIds:a,groupIds:s}),new Promise((function(t){_.defer((function(){var a=setInterval((function(){!1===i.props.removeTransferLoading&&(clearInterval(a),i.props.loadResList({resDomain:e}),i.props.removeTransferError?o.default.error("\u53d6\u6d88"+i.getDomainName(e)+"\u8f6c\u4ea4\u914d\u7f6e\u5931\u8d25!"):o.default.success("\u53d6\u6d88"+i.getDomainName(e)+"\u8f6c\u4ea4\u914d\u7f6e\u6210\u529f!"),t())}),300)}))}))}})},i=a,(0,r.default)(n,i)}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.props.loadDomainList()},t.prototype.render=function(){return(0,n.default)(c.default,{resDs:this.props.resDs,resDomainDs:this.props.domainDs,loadOwnerRes:this.handleLoadOwnerRes,onChangeSearch:this.handleChangeSearchTxt,onCancelTransfer:this.handleRemoveTransfer,onSaveTransfer:this.handleSaveTransfer,loadResLoading:this.props.loadResLoading})},t}(l.PureComponent);t.default=(0,u.connect)((function(e){return{domainDs:(0,f.selectLoadResDomainsList)(e),resDs:(0,g.selectOwnerRes)(e),loadResLoading:(0,g.selectLoadOwnerResLoading)(e),saveTransferLoading:(0,g.selectSaveLoading)(e),removeTransferLoading:(0,g.selectRemoveLoading)(e),saveTransferError:(0,g.selectSaveError)(e),removeTransferError:(0,g.selectRemoveError)(e)}}),(function(e){return{changeSearch:function(t){return e(m.resTransferActions.changeSearch({searchTxt:t}))},loadDomainList:function(){return e(p.sysManagerActions.loadResDomainsListRequest())},loadResList:function(t){return e(m.resTransferActions.getOwnerResRequest(t))},saveTransfer:function(t){return e(m.resTransferActions.saveTransferRequest(t))},removeTransfer:function(t){return e(m.resTransferActions.removeTransferRequest(t))}}}))(b)},"./src/module/sysManage/resTransfer/TransferSettingPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/babel-runtime/helpers/jsx.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=a("./node_modules/react/index.js"),d=(m(i),m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),l=(m(a("./node_modules/react-immutable-proptypes/dist/ImmutablePropTypes.js")),m(a("./src/module/sysManage/resTransfer/components/TransferSetting.jsx"))),u=a("./src/redux/selectors/sysManager/userManager.js"),c=a("./src/redux/selectors/sysManager/userGroupsManager.js"),p=a("./src/redux/reducers/sysManager/userGroupsManager.js"),f=a("./src/redux/reducers/sysManager/userManager.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.loadUserList(),this.props.loadGroupList()},t.prototype.render=function(){var e=this.props,t=e.userDs,a=e.groupDs,o=e.onSelectUser,s=e.onSelectGroup,r=e.selectedGroup,i=e.selectedUser,d=e.validateError;return(0,n.default)(l.default,{userDs:t,groupDs:a,onSelectUser:o,onSelectGroup:s,selectedUser:i,selectedGroup:r,validateError:d})},t}(i.Component);t.default=(0,d.connect)((function(e){return{userDs:(0,u.loadUserList)(e),groupDs:(0,c.selectLoadUserGroupsList)(e)}}),(function(e){return{loadUserList:function(){return e(f.userActions.loadSysUserListRequest({tenantId:"",userType:0}))},loadGroupList:function(){return e(p.userGroupsActions.loadSysUserGroupsListRequest({tenantId:""}))}}}))(h)},"./src/module/sysManage/resTransfer/components/ResTransfer.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=g(a("./node_modules/babel-runtime/helpers/inherits.js")),i=g(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/modal/style/index.js");var d=a("./node_modules/react/index.js"),l=(g(d),a("./node_modules/prop-types/index.js"),g(a("./node_modules/lodash/lodash.js"))),u=g(a("./src/components/toJS.jsx")),c=a("./src/components/layout/index.js"),p=g(a("./src/module/sysManage/resTransfer/components/SearchPanel.jsx")),f=g(a("./src/module/sysManage/resTransfer/components/ToolBarPanel.jsx")),m=g(a("./src/module/sysManage/resTransfer/components/ResTransferList.jsx")),h=g(a("./src/module/sysManage/resTransfer/TransferSettingPage.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=i.default.confirm,_=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.handleChangeDomain=function(e){var t=l.default.find(n.props.resDomainDs,{domainId:e});n.setState({selectedDomain:{domainId:e,domainName:l.default.get(t,"domainName")}}),n.props.loadOwnerRes(e)},n.handleBatchTransfer=function(){var e=n;v({title:"\u64cd\u4f5c\u786e\u8ba4?",content:"\u786e\u5b9a\u8981\u6279\u91cf\u8bbe\u7f6e\u9009\u4e2d"+(e.state.selectedDomain.domainName||"")+"\u7684\u8f6c\u4ea4\u8bbe\u7f6e\u5417,\u6279\u91cf\u8bbe\u7f6e\u5c06\u6e05\u9664\u6240\u6709\u9009\u4e2d\u6a21\u578b\u5df2\u8bbe\u7f6e\u7684\u8f6c\u4ea4\u6570\u636e",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){e.setState({saveMode:"batch",showSetting:!0,selectedUser:[],selectedGroup:[]})}})},n.handleBatchCancel=function(){var e=n;v({title:"\u64cd\u4f5c\u786e\u8ba4?",content:"\u786e\u5b9a\u8981\u6279\u91cf\u53d6\u6d88\u9009\u4e2d"+(e.state.selectedDomain.domainName||"")+"\u7684\u8f6c\u4ea4\u8bbe\u7f6e\u5417,\u5c06\u53d6\u6d88\u6240\u6709\u7684\u7528\u6237\u53ca\u7528\u6237\u7ec4\u7684\u8f6c\u4ea4\u6570\u636e",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){e.props.onCancelTransfer(l.default.get(e.state.selectedDomain,"domainId"),e.state.selectedResIds)}})},n.handleTransfer=function(e){var t,a,o=l.default.find(n.props.resDs,{resId:e});t=l.default.map(l.default.get(o,"users",[]),(function(e){return Object.keys(e)[0]})),a=l.default.map(l.default.get(o,"groups",[]),(function(e){return Object.keys(e)[0]})),n.setState({saveMode:"single",showSetting:!0,currentResId:e,selectedUser:t,selectedGroup:a})},n.handleCancelTransfer=function(e){n.props.onCancelTransfer(l.default.get(n.state.selectedDomain,"domainId"),[e])},n.handleSelectRes=function(e){n.setState({selectedResIds:e})},n.handleCancelTransferUser=function(e,t,a){n.props.onCancelTransfer(l.default.get(n.state.selectedDomain,"domainId"),e,a?[]:[t],a?[t]:[])},n.handleCloseSetting=function(){n.setState({showSetting:!1,selectedUser:[],selectedGroup:[],validateError:""})},n.handleSaveSetting=function(){var e=l.default.get(n.state.selectedDomain,"domainId"),t=[n.state.currentResId];"batch"===n.state.saveMode&&(t=n.state.selectedResIds),l.default.isEmpty(n.state.selectedUser)&&l.default.isEmpty(n.state.selectedGroup)?n.setState({validateError:"\u8bf7\u9009\u62e9\u8981\u8f6c\u4ea4\u7684\u7528\u6237\u6216\u7528\u6237\u7ec4\uff01"}):(n.setState({validateError:null}),l.default.isEmpty(t)||(n.setState({showSetting:!1}),n.props.onSaveTransfer(e,t,n.state.selectedUser,n.state.selectedGroup)))},n.handleSelectUser=function(e){n.setState({selectedUser:l.default.uniq(e)})},n.handleSelectGroup=function(e){n.setState({selectedGroup:l.default.uniq(e)})},n.state={showSetting:!1,selectedDomain:{domainId:"MODEL",domainName:"\u6a21\u578b"},selectedResIds:[],currentResId:null,selectedUser:[],selectedGroup:[],saveMode:"",validateError:null},n}return(0,r.default)(t,e),t.prototype.componentDidMount=function(){this.props.loadOwnerRes(this.state.selectedDomain.domainId)},t.prototype.render=function(){var e=this.props,t=e.resDomainDs,a=e.resDs,o=e.onChangeSearch,s=this.state,r=s.selectedDomain,d=s.selectedResIds,u=this.state.selectedUser,g=this.state.selectedGroup;return(0,n.default)(c.ContentLayout,{style:{marginBottom:16},title:"\u8d44\u6e90\u8f6c\u4ea4"},void 0,(0,n.default)(p.default,{resDomainDs:t,selected:r,onSearch:o,onChangeDomain:this.handleChangeDomain}),(0,n.default)(f.default,{resDomain:l.default.get(r,"domainName"),selectedRes:d,onBatchTransfer:this.handleBatchTransfer,onBatchCancel:this.handleBatchCancel}),(0,n.default)(m.default,{ds:a,resDomain:l.default.get(r,"domainName"),onSelectItem:this.handleSelectRes,onCancelTransferUser:this.handleCancelTransferUser,onTransfer:this.handleTransfer,onCancelTransfer:this.handleCancelTransfer,loadResLoading:this.props.loadResLoading}),(0,n.default)(i.default,{title:(r.domainName||"")+("batch"===this.state.saveMode?"\u6279\u91cf":"")+"\u8f6c\u4ea4\u8bbe\u7f6e",visible:this.state.showSetting,onOk:this.handleSaveSetting,onCancel:this.handleCloseSetting,okText:"\u4fdd\u5b58",cancelText:"\u53d6\u6d88"},void 0,(0,n.default)(h.default,{onSelectUser:this.handleSelectUser,onSelectGroup:this.handleSelectGroup,selectedUser:u,selectedGroup:g,validateError:this.state.validateError})))},t}(d.PureComponent);t.default=(0,u.default)(_)},"./src/module/sysManage/resTransfer/components/ResTransferList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/divider/index.js")),o=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=m(a("./node_modules/babel-runtime/helpers/inherits.js")),i=m(a("./node_modules/antd/es/tag/index.js")),d=m(a("./node_modules/babel-runtime/helpers/jsx.js")),l=m(a("./node_modules/antd/es/table/index.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/tag/style/index.js"),a("./node_modules/antd/es/table/style/index.js");var u=a("./node_modules/react/index.js"),c=(m(u),m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=m(a("./node_modules/lodash/lodash.js")),f=(a("./node_modules/prop-types/index.js"),m(a("./src/components/toJS.jsx")));function m(e){return e&&e.__esModule?e:{default:e}}var h=(0,c.default)(l.default).withConfig({displayName:"ResTransferList__TableStyled",componentId:"sc-19qjtxy-0"})([".empty-desc{color:rgba(0,0,0,0.25);}"]),g=(0,d.default)("span",{className:"empty-desc"},void 0,"\u672a\u8bbe\u7f6e\u8f6c\u4ea4\u7528\u6237"),v=(0,d.default)("span",{className:"empty-desc"},void 0,"\u672a\u8bbe\u7f6e\u8f6c\u4ea4\u7528\u6237\u7ec4"),_=(0,d.default)(n.default,{type:"vertical"}),y=function(e){var t=e.resDomain,a=e.onCancelTransferUser,n=void 0===a?p.default.noop:a,o=e.onTransfer,s=void 0===o?p.default.noop:o,r=e.onCancelTransfer,l=void 0===r?p.default.noop:r;return[{title:"\u7f16\u53f7",key:"no",dataIndex:"numIndex",width:100,render:function(e,t,a){return a+1}},{title:t+"\u540d\u79f0",dataIndex:"resName",align:"left",width:300},{title:"\u8f6c\u4ea4\u7528\u6237",dataIndex:"users",width:"30%",render:function(e,t){return p.default.isArray(e)&&!p.default.isEmpty(e)?p.default.map(e,(function(e){return(0,d.default)(i.default,{title:Object.keys(e)[0],closable:!0,onClose:function(a){a.preventDefault(),n(t.resId,Object.keys(e)[0],!1)}},Object.keys(e)[0],Object.values(e)[0])})):g}},{title:"\u8f6c\u4ea4\u7528\u6237\u7ec4",width:"30%",dataIndex:"groups",render:function(e,t){return p.default.isArray(e)&&!p.default.isEmpty(e)?p.default.map(e,(function(e,a){return(0,d.default)(i.default,{closable:!0,title:Object.keys(e)[0],onClose:function(){n(t.resId,Object.keys(e)[0],!0)}},a,Object.values(e)[0])})):v}},{title:"\u64cd\u4f5c",dataIndex:"operate",width:"13%",className:"operate-col",render:function(e,t){return(0,d.default)("span",{},void 0,(0,d.default)("a",{href:"javascript:;",onClick:function(){return s(t.resId)}},void 0,"\u8f6c\u4ea4"),_,(0,d.default)("a",{href:"javascript:;",onClick:function(){return l(t.resId)}},void 0,"\u53d6\u6d88\u8f6c\u4ea4"))}}]},b=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.resDomain,a=void 0===t?"\u8d44\u6e90":t,n=e.ds,o=void 0===n?[]:n,s=e.onSelectItem,r=void 0===s?p.default.noop:s,i=e.onCancelTransferUser,l=void 0===i?p.default.noop:i,u=e.onTransfer,c=void 0===u?p.default.noop:u,f=e.onCancelTransfer,m=void 0===f?p.default.noop:f;return(0,d.default)(h,{bordered:!0,dataSource:o,columns:y({resDomain:a,onSelectItem:r,onCancelTransferUser:l,onTransfer:c,onCancelTransfer:m}),rowKey:"resId",pagination:!1,rowSelection:{onChange:r},loading:this.props.loadResLoading,size:"middle"})},t}(u.PureComponent);t.default=(0,f.default)(b)},"./src/module/sysManage/resTransfer/components/SearchPanel.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/input/index.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=a("./node_modules/react/index.js"),u=(f(l),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=f(a("./node_modules/lodash/lodash.js")),p=(a("./node_modules/prop-types/index.js"),f(a("./src/components/toJS.jsx")));function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=i.default.Search,g=u.default.div.withConfig({displayName:"SearchPanel__SearchBar",componentId:"sc-1unq25w-0"})(["display:flex;flex-direction:row;justify-content:space-between;padding:16px 0;border-bottom:1px solid #e8e8e8;.prompt-label{padding:0 10px;border-left:4px solid #147bd1;}"]),v={width:200},_={width:150},y=(0,n.default)("span",{className:"prompt-label"},void 0,"\u8bf7\u9009\u62e9\u8d44\u6e90\u7c7b\u578b:"),b=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.resDomainDs,a=void 0===t?[]:t,o=e.selected,s=void 0===o?{}:o,r=e.onChangeDomain,i=void 0===r?c.default.noop:r,l=e.onSearch,u=void 0===l?c.default.noop:l;return(0,n.default)(g,{},void 0,(0,n.default)("div",{className:"select-domain"},void 0,y,(0,n.default)(d.default,{style:_,value:s.domainName,onChange:i},void 0,a.map((function(e){return(0,n.default)(m,{value:e.domainId},e.domainId,e.domainName)})))),(0,n.default)(h,{placeholder:"\u8bf7\u8f93\u5165"+(s.domainName||"")+"\u540d\u79f0\u67e5\u8be2",style:v,allowClear:!0,onSearch:function(e){return u(e)}}))},t}(l.PureComponent);t.default=(0,p.default)(b)},"./src/module/sysManage/resTransfer/components/ToolBarPanel.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/button/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=a("./node_modules/react/index.js"),l=f(d),u=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=f(a("./node_modules/lodash/lodash.js")),p=(a("./node_modules/prop-types/index.js"),f(a("./src/components/toJS.jsx")));function f(e){return e&&e.__esModule?e:{default:e}}var m=u.default.div.withConfig({displayName:"ToolBarPanel__ToolBar",componentId:"ynf0f4-0"})(["display:flex;flex-direction:row;padding:16px 0 16px 10px;justify-content:space-between;.select-num{color:#1890ff;padding:0 3px;}button{margin-right:10px;}"]),h=function(e){function t(){return(0,s.default)(this,t),(0,r.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.selectedRes,a=void 0===t?[]:t,s=e.onBatchTransfer,r=void 0===s?c.default.noop:s,i=e.onBatchCancel,d=void 0===i?c.default.noop:i,u=e.resDomain,p=void 0===u?"\u8d44\u6e90":u;return(0,o.default)(m,{},void 0,(0,o.default)("span",{},void 0,!c.default.isEmpty(a)&&(0,o.default)(l.default.Fragment,{},void 0,"\u5df2\u9009\u62e9",(0,o.default)("span",{className:"select-num"},void 0,c.default.size(a)),"\u4e2a",p.domainName||"")),(0,o.default)("div",{},void 0,(0,o.default)(n.default,{type:"primary",size:"small",onClick:r,disabled:c.default.isEmpty(a)},void 0,"\u6279\u91cf\u8f6c\u4ea4"),(0,o.default)(n.default,{type:"primary",size:"small",onClick:d,disabled:c.default.isEmpty(a)},void 0,"\u6279\u91cf\u53d6\u6d88\u8f6c\u4ea4")))},t}(d.PureComponent);t.default=(0,p.default)(h)},"./src/module/sysManage/resTransfer/components/TransferSetting.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/antd/es/alert/index.js")),o=f(a("./node_modules/babel-runtime/helpers/jsx.js")),s=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=f(a("./node_modules/babel-runtime/helpers/inherits.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=a("./node_modules/react/index.js"),u=(f(l),a("./node_modules/prop-types/index.js"),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=f(a("./node_modules/lodash/lodash.js")),p=f(a("./src/components/toJS.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=u.default.div.withConfig({displayName:"TransferSetting__TransferSettingWrapper",componentId:"cfm4wp-0"})(["display:flex;flex-direction:column;.ant-select{margin-bottom:10px;}min-height:300px;"]),g={width:"100%"},v=(0,o.default)("h4",{className:"form-label"},void 0,"\u8f6c\u4ea4\u7528\u6237\uff1a"),_=(0,o.default)("h4",{className:"form-label"},void 0,"\u8f6c\u4ea4\u7528\u6237\u7ec4\uff1a"),y=function(e){function t(){return(0,s.default)(this,t),(0,r.default)(this,e.apply(this,arguments))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.userDs,a=void 0===t?[]:t,s=e.groupDs,r=void 0===s?[]:s,i=e.onSelectGroup,l=void 0===i?c.default.noop:i,u=e.onSelectUser,p=void 0===u?c.default.noop:u,f=e.selectedUser,y=void 0===f?[]:f,b=e.selectedGroup,x=void 0===b?[]:b;return(0,o.default)(h,{},void 0,v,(0,o.default)(d.default,{mode:"multiple",showArrow:!0,placeholder:"\u8bf7\u9009\u62e9\u7528\u6237",onChange:p,filterOption:function(e,t){return(c.default.get(t,"props.title","")||"").includes(e)||(c.default.get(t,"key","")||"").includes(e)},style:g,value:y},void 0,c.default.isArray(a)&&a.map((function(e){return(0,o.default)(m,{title:e.userName},e.userId,e.userName," ( ",e.userId," )")}))),_,(0,o.default)(d.default,{mode:"multiple",showArrow:!0,placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u7ec4",onChange:l,value:x,filterOption:function(e,t){return(t.props.title||t.key||"").includes(e)},style:g},void 0,c.default.isArray(r)&&r.map((function(e){return(0,o.default)(m,{title:e.groupName},e.groupId,e.groupName," ( ",e.groupId," )")}))),""!==c.default.trim(this.props.validateError)&&(0,o.default)(n.default,{message:this.props.validateError,type:"error"}))},t}(l.PureComponent);t.default=(0,p.default)(y)},"./src/module/sysManage/resTransfer/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/module/sysManage/resTransfer/ResTransferPage.jsx"),s=(n=o)&&n.__esModule?n:{default:n};t.default=s.default},"./src/module/sysManage/resourceRecovery/create/CreateResourceRecovery.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.PageWrapper=void 0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/antd/es/input-number/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/babel-runtime/regenerator/index.js")),i=g(a("./node_modules/antd/es/message/index.js")),d=g(a("./node_modules/babel-runtime/helpers/extends.js")),l=g(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=g(a("./node_modules/antd/es/radio/index.js")),c=g(a("./node_modules/antd/es/input/index.js")),p=g(a("./node_modules/antd/es/form/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var f=a("./node_modules/react/index.js"),m=(g(f),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=(g(a("./node_modules/prop-types/index.js")),a("./src/components/index.js"),g(a("./src/redux/services/sysManager/resourceRecovery.js")));function g(e){return e&&e.__esModule?e:{default:e}}var v=p.default.Item,_=c.default.TextArea,y=u.default.Group,b=t.PageWrapper=m.default.div.withConfig({displayName:"CreateResourceRecovery__PageWrapper",componentId:"sc-1bamayt-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;"]),x=t.ButtonDom=m.default.div.withConfig({displayName:"CreateResourceRecovery__ButtonDom",componentId:"sc-1bamayt-1"})(["height:28px;text-align:right;border-top:1px solid #e8e8e8;padding:10px 20px;width:calc(100% + 32px);margin-left:-16px;"]);t.default=function(e){var t=(0,f.useState)(!1),a=t[0],u=t[1],m=e.dataInfo,g=e.onCancel,C=p.default.useForm()[0],j=function(){var t=(0,l.default)(r.default.mark((function t(a){return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("values: ",a),u(!0),(e.dataInfo.id?h.default.updateResourceRecovery:h.default.saveResourceRecovery).call(null,(0,d.default)({},a,{id:e.dataInfo.id})).then((function(){i.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),u(!1),g(!0)})).catch((function(e){throw u(!1),e}));case 3:case"end":return t.stop()}}),t,void 0)})));return function(e){return t.apply(this,arguments)}}(),S={width:250};return(0,s.default)(b,{},void 0,(0,s.default)(p.default,{form:C,labelCol:{span:6},wrapperCol:{span:18},layout:"horizontal",onFinish:j,initialValues:m},void 0,(0,s.default)(v,{label:"\u670d\u52a1\u7f16\u7801",name:"serviceId",required:!0,rules:[{required:"\u8bf7\u8f93\u5165\u670d\u52a1\u7f16\u7801"}]},void 0,(0,s.default)(c.default,{placeholder:"\u8bf7\u8f93\u5165\u670d\u52a1\u7f16\u7801",style:S})),(0,s.default)(v,{label:"\u9879\u76ee\u7f16\u7801",name:"projectId",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9879\u76ee\u7f16\u7801!"}]},void 0,(0,s.default)(c.default,{style:S,placeholder:"\u8bf7\u8f93\u5165\u9879\u76ee\u7f16\u7801"})),(0,s.default)(v,{label:"\u8fc7\u671f\u65f6\u95f4(min)",name:"expTime",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8fc7\u671f\u65f6\u95f4"}]},void 0,(0,s.default)(o.default,{style:S,placeholder:"\u8bf7\u8f93\u5165\u8fc7\u671f\u65f6\u95f4"})),(0,s.default)(v,{label:"\u7c7b\u578b",name:"type",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7c7b\u578b!"}]},void 0,(0,s.default)(y,{options:[{label:"\u63a8\u7406\u670d\u52a1",value:1},{label:"\u7f16\u7801\u670d\u52a1",value:2}]})),(0,s.default)(v,{label:"\u5907\u6ce8",name:"remark"},void 0,(0,s.default)(_,{style:S,placeholder:"\u8bf7\u8f93\u5165\u5907\u6ce8"}))),(0,s.default)(x,{},void 0,(0,s.default)(n.default,{disabled:a,onClick:g,style:{marginRight:16}},void 0,"\u53d6\u6d88"),(0,s.default)(n.default,{loading:a,onClick:function(){C.submit()},type:"primary"},void 0,"\u786e\u5b9a\u63d0\u4ea4")))}},"./src/module/sysManage/resourceRecovery/list/ResourceRecoveryList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/table/index.js")),o=h(a("./node_modules/antd/es/button/index.js")),s=h(a("./node_modules/antd/es/message/index.js")),r=h(a("./node_modules/antd/es/modal/index.js")),i=h(a("./node_modules/antd/es/tooltip/index.js")),d=h(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js");var l=a("./node_modules/react/index.js"),u=(h(l),a("./src/components/index.js")),c=a("./src/styles/GlobalStyle.js"),p=h(a("./src/redux/services/sysManager/resourceRecovery.js")),f=h(a("./src/module/sysManage/resourceRecovery/create/CreateResourceRecovery.jsx")),m=a("./src/module/sysManage/resourceRecovery/modelEnums.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=(0,d.default)("span",{},void 0,"\u5e8f\u53f7");t.default=function(){var e=(0,l.useState)(!1),t=e[0],a=e[1],h=(0,l.useState)([]),v=h[0],_=h[1],y=(0,l.useState)(!1),b=y[0],x=y[1],C=(0,l.useState)({type:1}),j=C[0],S=C[1],I=[{title:g,width:"8%",dataIndex:"id",render:function(e,t,a){return(0,d.default)("span",{},void 0,a+1)}},{title:"\u670d\u52a1\u7f16\u7801",dataIndex:"serviceId",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u9879\u76ee\u7f16\u7801",dataIndex:"projectId",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8fc7\u671f\u65f6\u95f4(\u5206\u949f)",dataIndex:"expTime",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7c7b\u578b",dataIndex:"type",ellipsis:!0,width:110,render:function(e){return m.RESOURCE_TYPE.getDescFromValue(e)}},{title:"\u5907\u6ce8",dataIndex:"remark",ellipsis:!0,render:function(e){return(0,d.default)(i.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:"18%",render:function(e,t){var a=[{handleName:"\u4fee\u6539",handleAction:function(){S(t),E()}},{handleName:"\u5220\u9664",handleAction:function(){w(t)}}];return(0,d.default)(u.ListButtons,{buttons:a,maxShowNum:3})}}];(0,l.useEffect)((function(){T()}),[]);var T=function(){a(!0),p.default.getResourceRecoveryList({}).then((function(e){_(e.data),a(!1)})).catch((function(e){throw a(!1),e}))},w=function(e){r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u8be5\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t){p.default.deleteResourceRecovery(e.id).then((function(){T(),s.default.success("\u5220\u9664\u6210\u529f"),t()}))}))}})},E=function(){x(!0)},D=function(e){x(!1),S({}),!0===e&&T()};return(0,d.default)(c.PageWrapper,{},void 0,(0,d.default)(r.default,{title:j.id?"\u4fee\u6539\u8d44\u6e90\u56de\u6536":"\u65b0\u589e\u8d44\u6e90\u56de\u6536",visible:b,footer:null,onCancel:D,destroyOnClose:!0},void 0,(0,d.default)(f.default,{dataInfo:j,onCancel:D})),(0,d.default)(c.PageHeader,{},void 0,(0,d.default)(o.default,{className:"import__btn",type:"primary",onClick:E},void 0,"\u65b0\u589e")),(0,d.default)(c.PageBody,{},void 0,(0,d.default)(c.TableWrapper,{},void 0,(0,d.default)(n.default,{loading:t,bordered:!0,columns:I,dataSource:v,rowKey:"taskId"}))))}},"./src/module/sysManage/resourceRecovery/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.RESOURCE_TYPE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};t.RESOURCE_TYPE=(0,s.default)({REASON:[1,"\u63a8\u7406\u670d\u52a1"],CODE:[2,"\u7f16\u7801\u670d\u52a1"]})},"./src/module/sysManage/sceneDemoManager/component/ApiDefinition.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ApiDefinitionDom=void 0;var n=y(a("./node_modules/babel-runtime/helpers/extends.js")),o=y(a("./node_modules/antd/es/col/index.js")),s=y(a("./node_modules/antd/es/row/index.js")),r=y(a("./node_modules/babel-runtime/helpers/jsx.js")),i=y(a("./node_modules/babel-runtime/helpers/typeof.js")),d=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=y(a("./node_modules/babel-runtime/helpers/inherits.js")),c=y(a("./node_modules/antd/es/select/index.js")),p=y(a("./node_modules/antd/es/input/index.js")),f="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\sceneDemoManager\\component\\ApiDefinition.jsx";a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var m=y(a("./node_modules/react/index.js")),h=(y(a("./node_modules/prop-types/index.js")),y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),g=a("./node_modules/react-redux/es/index.js"),v=a("./node_modules/@ant-design/compatible/es/index.js");function y(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var b=p.default.TextArea,x=c.default.Option,C=v.Form.Item,j={labelCol:{span:3},wrapperCol:{span:18,offset:1}},S={labelCol:{span:6,offset:0},wrapperCol:{span:12,offset:2}},I=(t.ApiDefinitionDom=h.default.div.withConfig({displayName:"ApiDefinition__ApiDefinitionDom",componentId:"sc-12du67l-0"})([""]),(0,r.default)(x,{value:""},void 0,"\u8bf7\u9009\u62e9\u60c5\u666f\u7c7b\u578b")),T=(0,r.default)(x,{value:"post"},void 0,"post\u8bf7\u6c42"),w=(0,r.default)(x,{value:"patch"},void 0,"patch\u8bf7\u6c42"),E=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.setDataBlur=function(e,t){n.apiDefinition[t]=_.trim(e)},n.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,i.default)(t))||!t)}catch(e){return!1}},n.validateFun=function(){var e=!1;if(n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),n.apiDefinition.returnList,n.apiDefinition.appType&&0!==n.apiDefinition.appType.length&&n.apiDefinition.modelName&&0!==n.apiDefinition.modelName.length?n.apiDefinition.needAppReg=!0:n.apiDefinition.needAppReg=!1,e){if("object"==(0,i.default)(n.apiDefinition.paramMap))n.apiDefinition.paramMap=JSON.stringify(n.apiDefinition.paramMap);else if(!n.isJSON(n.apiDefinition.paramMap))return{validate:!1,moduleData:[],errorMsg:"\u63a5\u53e3\u5b9a\u4e49\u4e2d\u7684\u8bf7\u6c42\u53c2\u6570\u683c\u5f0f\u4e0d\u662fJSON\u5b57\u7b26\u4e32!"};return{validate:e,moduleData:{apiDefinition:n.apiDefinition}}}return{validate:!1,moduleData:[],errorMsg:"\u8bf7\u586b\u5199\u63a5\u53e3\u5b9a\u4e49\u4fe1\u606f!"}};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("apiDefinition",n.validateFun),n.apiDefinition=_.get(a.sceneDemoInfo,"configJson.apiDefinition",{method:"post",url:"",apiId:"",paramMap:"",returnList:"",modelName:"",appType:"",needAppReg:!0}),n.apiDefinition.returnList=n.apiDefinition.returnList?"true":"false",n.apiDefinition.paramMap=n.apiDefinition.paramMap&&"object"==(0,i.default)(n.apiDefinition.paramMap)?JSON.stringify(n.apiDefinition.paramMap):"",n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(v.Form,{style:{marginLeft:"-3%"},layout:"horizontal"},void 0,(0,r.default)(s.default,{style:{minHeight:80}},void 0,(0,r.default)(o.default,{span:12},void 0,m.default.createElement(C,(0,n.default)({},S,{label:"\u8bf7\u6c42\u53c2\u6570",__source:{fileName:f,lineNumber:129}}),t("paramMap",{rules:[{required:!0,message:"\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e200",min:0,max:200}],initialValue:this.apiDefinition.paramMap})((0,r.default)(p.default,{style:{width:150},placeholder:"\u8bf7\u8f93\u5165\u8bf7\u6c42\u53c2\u6570",onBlur:function(t){return e.setDataBlur(t.target.value,"paramMap")}})))),(0,r.default)(o.default,{span:12},void 0,m.default.createElement(C,(0,n.default)({},S,{label:"\u8bf7\u6c42\u65b9\u5f0f",__source:{fileName:f,lineNumber:150}}),t("method",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bf7\u6c42\u65b9\u5f0f"}],initialValue:this.apiDefinition.method})((0,r.default)(c.default,{style:{width:150},onChange:function(t){return e.setDataBlur(t,"method")},getPopupContainer:function(e){return e.parentNode}},void 0,I,T,w))))),(0,r.default)(s.default,{style:{minHeight:80}},void 0,(0,r.default)(o.default,{span:12},void 0,m.default.createElement(C,(0,n.default)({},S,{label:"modelName",__source:{fileName:f,lineNumber:175}}),t("modelName",{rules:[{message:"\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e100\uff01",min:0,max:100}],initialValue:this.apiDefinition.modelName})((0,r.default)(p.default,{style:{width:150},placeholder:"\u8bf7\u8f93\u5165modelName",onBlur:function(t){return e.setDataBlur(t.target.value,"modelName")}})))),(0,r.default)(o.default,{span:12},void 0,m.default.createElement(C,(0,n.default)({},S,{label:"appType",__source:{fileName:f,lineNumber:195}}),t("appType",{rules:[{message:"\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e100\uff01",min:0,max:100}],initialValue:this.apiDefinition.appType})((0,r.default)(p.default,{style:{width:150},placeholder:"\u8bf7\u8f93\u5165appType",onBlur:function(t){return e.setDataBlur(t.target.value,"appType")}}))))),(0,r.default)(s.default,{style:{minHeight:80}},void 0,(0,r.default)(o.default,{span:24},void 0,m.default.createElement(C,(0,n.default)({},j,{label:"api\u8def\u5f84",__source:{fileName:f,lineNumber:260}}),t("url",{rules:[{required:!0,pattern:/(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?/,message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684http\u8bf7\u6c42\uff01",min:0,max:200}],initialValue:this.apiDefinition.url})((0,r.default)(b,{rows:4,placeholder:"\u8bf7\u8f93\u5165api\u8def\u5f84",onBlur:function(t){return e.setDataBlur(t.target.value,"url")}}))))))},t}(m.default.PureComponent);t.default=(0,g.connect)()(v.Form.create()(E))},"./src/module/sysManage/sceneDemoManager/component/EditSceneDemo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.EditSceneDemoDom=void 0;var n=b(a("./node_modules/babel-runtime/helpers/extends.js")),o=b(a("./node_modules/antd/es/col/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=b(a("./node_modules/babel-runtime/helpers/inherits.js")),u=b(a("./node_modules/antd/es/input/index.js")),c=b(a("./node_modules/antd/es/select/index.js")),p="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\sceneDemoManager\\component\\EditSceneDemo.jsx";a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=b(a("./node_modules/react/index.js")),m=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/react-redux/es/index.js"),g=b(a("./src/module/sysManage/sceneDemoManager/component/UploadImg.jsx")),v=b(a("./src/module/sysManage/sceneDemoManager/component/MuchTextArea.jsx")),y=a("./node_modules/@ant-design/compatible/es/index.js");function b(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var x=c.default.Option,C=u.default.TextArea,j={labelCol:{span:3},wrapperCol:{span:18,offset:1}},S=y.Form.Item,I={labelCol:{span:6,offset:0},wrapperCol:{span:12,offset:2}},T=(t.EditSceneDemoDom=m.default.div.withConfig({displayName:"EditSceneDemo__EditSceneDemoDom",componentId:"sc-1l7p0zn-0"})([""]),(0,r.default)(x,{value:""},void 0,"\u8bf7\u9009\u62e9\u573a\u666f\u7c7b\u578b")),w=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));n.setEditFunc=function(e,t){n.validateFuncs[e]=t},n.setDataBlur=function(e,t){n.sceneDemoInfo[t]=_.trim(e),"sceneType"===t&&(n.sceneDemoInfo.sampleTexts="",n.setState({sceneType:e}))},n.validateFun=function(){var e=!1;if(n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e){if("TXT"===n.state.sceneType){var t=[];n.sceneDemoInfo.sampleTexts instanceof Array?t=n.sceneDemoInfo.sampleTexts:t.push(n.sceneDemoInfo.sampleTexts),n.sceneDemoInfo.sampleTexts=0===t.length?"":t}else if("MUCH_TXT"===n.state.sceneType){var a=n.validateFuncs.sampleTexts;if(_.isFunction(a)){var o=a.call();o.validate&&(n.sceneDemoInfo.sampleTexts=o.moduleData)}}return{validate:e,moduleData:n.sceneDemoInfo}}return{validate:!1,moduleData:[],errorMsg:"\u8bf7\u586b\u5199\u57fa\u7840\u4fe1\u606f!"}},n.state={sceneType:a.sceneDemoInfo?a.sceneDemoInfo.sceneType:""},n.validateFuncs={};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("editSceneDemo",n.validateFun),n.sceneDemoInfo={configId:_.get(a.sceneDemoInfo,"configId",""),configTitle:_.get(a.sceneDemoInfo,"configTitle",""),sampleTexts:_.get(a.sceneDemoInfo,"configJson.sampleTexts[0]",""),sceneType:_.get(a.sceneDemoInfo,"sceneType",""),configDesc:_.get(a.sceneDemoInfo,"configDesc",""),usageTips:_.get(a.sceneDemoInfo,"configJson.usageTips",""),configJson:_.get(a.sceneDemoInfo,"configJson",{})},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.form,i=t.dicSceneTypeData,d=a.getFieldDecorator;return(0,r.default)(y.Form,{style:{marginLeft:"-3%"},layout:"horizontal"},void 0,(0,r.default)(s.default,{style:{minHeight:80}},void 0,(0,r.default)(o.default,{span:12},void 0,f.default.createElement(S,(0,n.default)({},I,{label:"\u573a\u666f\u6807\u9898",__source:{fileName:p,lineNumber:100}}),d("configTitle",{rules:[{required:!0,message:"\u957f\u5ea6\u5927\u4e8e0\u5c0f\u4e8e100\uff01",min:0,max:100}],initialValue:this.sceneDemoInfo.configTitle})((0,r.default)(u.default,{style:{width:150},placeholder:"\u8bf7\u8f93\u5165\u573a\u666f\u6807\u9898",onBlur:function(t){return e.setDataBlur(t.target.value,"configTitle")}})))),(0,r.default)(o.default,{span:12},void 0,f.default.createElement(S,(0,n.default)({},I,{label:"\u573a\u666f\u7c7b\u578b",__source:{fileName:p,lineNumber:121}}),d("sceneType",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u573a\u666f\u7c7b\u578b"}],initialValue:this.sceneDemoInfo.sceneType})((0,r.default)(c.default,{style:{width:150},onChange:function(t){return e.setDataBlur(t,"sceneType")},getPopupContainer:function(e){return e.parentNode}},void 0,T,i.map((function(e,t){return(0,r.default)(x,{value:e.value},t,e.txt)}))))))),(0,r.default)(s.default,{style:{minHeight:80}},void 0,(0,r.default)(o.default,{span:24},void 0,f.default.createElement(S,(0,n.default)({},j,{label:"\u573a\u666f\u63cf\u8ff0",__source:{fileName:p,lineNumber:149}}),d("configDesc",{rules:[{message:"\u957f\u5ea6\u6700\u5927250\uff01",max:250}],initialValue:this.sceneDemoInfo.configDesc})((0,r.default)(C,{autosize:{minRows:3,maxRows:8},placeholder:"\u8bf7\u8f93\u5165\u573a\u666f\u63cf\u8ff0",onBlur:function(t){return e.setDataBlur(t.target.value,"configDesc")}}))))),(0,r.default)(s.default,{style:{minHeight:80}},void 0,(0,r.default)(o.default,{span:24},void 0,f.default.createElement(S,(0,n.default)({},j,{label:"\u4f7f\u7528\u63cf\u8ff0",__source:{fileName:p,lineNumber:170}}),d("usageTips",{rules:[{message:"\u957f\u5ea6\u6700\u5927500\uff01",max:500}],initialValue:this.sceneDemoInfo.usageTips})((0,r.default)(C,{autosize:{minRows:3,maxRows:8},placeholder:"\u8bf7\u8f93\u5165\u4f7f\u7528\u63cf\u8ff0",onBlur:function(t){return e.setDataBlur(t.target.value,"usageTips")}}))))),"IMG"===this.state.sceneType&&(0,r.default)(s.default,{style:{minHeight:120}},void 0,(0,r.default)(o.default,{span:24},void 0,f.default.createElement(S,(0,n.default)({},j,{label:"\u56fe\u7247\u4fe1\u606f",__source:{fileName:p,lineNumber:192}}),(0,r.default)(g.default,{sceneDemoInfo:this.props.sceneDemoInfo,setValidateFunc:this.props.setValidateFunc})))),"TXT"===this.state.sceneType&&(0,r.default)(s.default,{style:{minHeight:120}},void 0,(0,r.default)(o.default,{span:24},void 0,f.default.createElement(S,(0,n.default)({},j,{label:"\u6587\u672c\u4fe1\u606f",__source:{fileName:p,lineNumber:201}}),d("sampleTexts",{initialValue:this.sceneDemoInfo.sampleTexts})((0,r.default)(C,{rows:4,onBlur:function(t){return e.setDataBlur(t.target.value,"sampleTexts")}}))))),"MUCH_TXT"===this.state.sceneType&&(0,r.default)(s.default,{style:{minHeight:80}},void 0,(0,r.default)(o.default,{span:24},void 0,f.default.createElement(S,(0,n.default)({},j,{label:"\u591a \u6587 \u672c",__source:{fileName:p,lineNumber:212}}),(0,r.default)(v.default,{sceneDemoInfo:this.props.sceneDemoInfo,setValidateFunc:this.setEditFunc})))))},t}(f.default.PureComponent);t.default=(0,h.connect)()(y.Form.create()(w))},"./src/module/sysManage/sceneDemoManager/component/JsonConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.JsonConfigDom=void 0;var n=x(a("./node_modules/antd/es/button/index.js")),o=x(a("./node_modules/antd/es/col/index.js")),s=x(a("./node_modules/antd/es/row/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/babel-runtime/helpers/typeof.js")),d=x(a("./node_modules/babel-runtime/helpers/extends.js")),l=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=x(a("./node_modules/babel-runtime/helpers/inherits.js")),p=x(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var f=x(a("./node_modules/react/index.js")),m=(x(a("./node_modules/prop-types/index.js")),x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),h=a("./node_modules/react-redux/es/index.js"),g=a("./src/components/index.js"),v=x(a("./src/module/sysManage/sceneDemoManager/component/jsonschema.json")),y=a("./node_modules/@ant-design/icons/es/index.js"),b=a("./node_modules/@ant-design/compatible/es/index.js");function x(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var C=p.default.Option,j=b.Form.Item,S=t.JsonConfigDom=m.default.div.withConfig({displayName:"JsonConfig__JsonConfigDom",componentId:"sc-1bpqkwu-0"})([".jsoneditor-menu{width:100%;height:35px;padding:2px;margin:0;box-sizing:border-box;color:#ffffff;background-color:#3883fa;border-bottom:1px solid #3883fa;display:none;}div.jsoneditor-outer.has-nav-bar.has-main-menu-bar{margin-top:0px;padding-top:0px;}.jsoneditor-react-container{width:100%;height:650px;}.bqzwtX div.jsoneditor-outer.has-main-menu-bar{margin-top:0px;padding-top:0px;}div.jsoneditor-outer.has-main-menu-bar{margin-top:0px;padding-top:0px;}"]),I={dataPath:"data.data1",displayForm:"PROP_GRID",title:"\u8bc6\u522b\u7ed3\u679c",dataMapping:{labelXpath:"$key",value:{xpath:"$value",format:"%",uiType:"PROGRESS_BAR"}}},T={dataPath:"data.data2",displayForm:"TABLE",title:"\u8bc6\u522b\u7ed3\u679c",dataMapping:[{columnName:"\u6708\u57fa\u672c\u8d39",xpath:"mFee",format:""},{columnName:"\u56fd\u5185\u6d41\u91cf",xpath:"flow",format:""},{columnName:"\u56fd\u5185\u8bed\u97f3",xpath:"voice",format:""},{columnName:"\u6765\u7535\u663e\u793a\u662f\u5426\u8d60\u9001",xpath:"giveIncoming",format:""},{columnName:"189\u90ae\u7bb1\u662f\u5426\u8d60\u9001",xpath:"mail",format:""}]},w=(0,r.default)(C,{value:"PROP_GRID"},void 0,"\u5c5e\u6027\u8868\u683c"),E=(0,r.default)(C,{value:"TABLE"},void 0,"\u6570\u636e\u8868\u683c"),D=(0,r.default)(C,{value:"PIC_MARK"},void 0,"\u56fe\u50cf\u6807\u6ce8"),M=(0,r.default)(y.EyeOutlined,{}),k=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.setDisplayForm=function(e){for(var t=[],a=0;a<e.length;a++)t.push(e[a].displayForm);return t},n.setSceneDemoInfo=function(e){var t=(0,d.default)({},e);return delete t.sampleImages,delete t.apiDefinition,t},n.validateFun=function(){return n.isJSON(n.textArray)?{validate:!0,moduleData:{pageLayout:n.sceneDemoInfo.pageLayout,reasoningResults:JSON.parse(n.textArray)}}:{validate:!1,moduleData:[],errorMsg:"\u8bf7\u586b\u5199\u6b63\u786eJSON\u683c\u5f0f!"}},n.isJSON=function(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!=("undefined"===typeof t?"undefined":(0,i.default)(t))||!t)}catch(e){return!1}},n.onChangeText=function(e){n.isJSON(e)&&(n.textArray=e,n.setState({text:e}))},n.setDataBlur=function(e){for(var t=[],a=0;a<e.length;a++){var o="string"==typeof n.textArray?JSON.parse(n.textArray):n.textArray;if("PROP_GRID"===e[a]){var s=_.findIndex(o,(function(e){return"PROP_GRID"==e.displayForm}));t.push(-1!==s?o[s]:I)}else{var r=_.findIndex(o,(function(e){return"TABLE"==e.displayForm}));t.push(-1!==r?o[r]:T)}}n.textArray=JSON.stringify(t,null,2),n.setState({displayForm:e,text:JSON.stringify(t,null,2)})},n.onModeChangeSelect=function(e){n.setState({mode:e})},n.onModeChange=function(e){n.setState({mode:e})};var o=a.setValidateFunc;return _.isFunction(o)&&o("sceneDemoInfo",n.validateFun),n.state={schema:v.default,text:a.sceneDemoInfo?JSON.stringify(_.get(a.sceneDemoInfo,"configJson.reasoningResults",[]),null,2):JSON.stringify([I],null,2),mode:"code",displayForm:a.sceneDemoInfo?n.setDisplayForm(_.get(a.sceneDemoInfo,"configJson.reasoningResults",[])):["PROP_GRID"]},n.textArray=a.sceneDemoInfo?JSON.stringify(_.get(a.sceneDemoInfo,"configJson.reasoningResults",[]),null,2):JSON.stringify([I],null,2),n.sceneDemoInfo=a.sceneDemoInfo?n.setSceneDemoInfo(a.sceneDemoInfo):{pageLayout:"DEFAULT",reasoningResults:[I]},n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props,a=t.form,i=t.configId,d=a.getFieldDecorator;return(0,r.default)(S,{},void 0,(0,r.default)(b.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:21},void 0,(0,r.default)(j,{label:"\u6570\u636e\u683c\u5f0f\u9009\u62e9"},void 0,d("displayForm",{initialValue:this.state.displayForm})((0,r.default)(p.default,{mode:"tags",size:"small",style:{width:200},onChange:function(t){return e.setDataBlur(t)},getPopupContainer:function(e){return e.parentNode}},void 0,w,E,D)))),(0,r.default)(o.default,{style:{textAlign:"right"},span:3},void 0,(0,r.default)(j,{style:{marginRight:0}},void 0,(0,r.default)(n.default,{icon:M,size:"small",onClick:this.props.onTestClick,disabled:!i,style:{width:80},type:"primary"},void 0,"\u8bd5\u4e00\u8bd5")))),(0,r.default)(s.default,{style:{minHeight:80}},void 0,(0,r.default)(o.default,{span:24},void 0,(0,r.default)(g.JSONEditorReact,{schema:this.state.schema,text:this.state.text,mode:this.state.mode,modes:["code"],indentation:4,onChangeText:this.onChangeText,onModeChange:this.onModeChange})))))},t}(f.default.PureComponent);t.default=(0,h.connect)()(b.Form.create()(k))},"./src/module/sysManage/sceneDemoManager/component/MuchTextArea.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.MuchTextAreaDom=void 0;var n=f(a("./node_modules/antd/es/button/index.js")),o=f(a("./node_modules/antd/es/input/index.js")),s=f(a("./node_modules/babel-runtime/helpers/jsx.js")),r=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=f(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-redux/es/index.js"),p=a("./node_modules/@ant-design/compatible/es/index.js");function f(e){return e&&e.__esModule?e:{default:e}}a("./node_modules/@ant-design/compatible/assets/index.css");var m=p.Form.Item,h=t.MuchTextAreaDom=u.default.div.withConfig({displayName:"MuchTextArea__MuchTextAreaDom",componentId:"cmq7oc-0"})(["textarea.ant-input{max-width:100%;height:auto;min-height:32px;line-height:1.5;vertical-align:bottom;-webkit-transition:all 0.3s,height 0s;-o-transition:all 0.3s,height 0s;transition:all 0.3s,height 0s;max-width:85%;}"]),g=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.setData=function(e){for(var t=[],a=0;a<e.length;a++)t.push({key:_.uniqueId(),txt:e[a].txt,title:e[a].title});return t},n.addData=function(){var e=[].concat(n.state.data);e.push({key:_.uniqueId(),txt:"",title:""}),n.setState({data:[].concat(e)})},n.deleteData=function(e){var t=n.state.data;t.splice(e,1),n.setState({data:t.concat([])})},n.updateData=function(e,t,a){var o=[].concat(n.state.data);o[e][a]=t,n.setState({data:[].concat(o)})},n.validateFun=function(){return{validate:!0,moduleData:n.state.data}};var o=n.props.setValidateFunc;return _.isFunction(o)&&o("sampleTexts",n.validateFun),n.sampleTexts=_.get(a.sceneDemoInfo,"configJson.sampleTexts",[]),n.state={data:n.sampleTexts.length>0?n.setData(n.sampleTexts):[{key:_.uniqueId(),txt:"",title:""}]},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.data;return(0,s.default)(h,{},void 0,t.map((function(t,a){return(0,s.default)(m,{},t.key,(0,s.default)("div",{style:{marginBottom:15,display:"flex"}},void 0,(0,s.default)(o.default,{style:{width:150,marginRight:20},placeholder:"\u8f93\u5165\u6807\u9898",value:t.title,onChange:function(t){return e.updateData(a,t.target.value,"title")}}),(0,s.default)(o.default,{placeholder:"\u8f93\u5165\u5185\u5bb9",value:t.txt,onChange:function(t){return e.updateData(a,t.target.value,"txt")}}),0===a?(0,s.default)(n.default,{style:{marginLeft:20},onClick:e.addData,type:"dashed"},void 0,"\u65b0 \u589e"):(0,s.default)(n.default,{style:{marginLeft:20},onClick:function(){e.deleteData(a)},type:"dashed"},void 0,"\u5220 \u9664")))})))},t}(l.default.Component);t.default=(0,c.connect)()(p.Form.create()(g))},"./src/module/sysManage/sceneDemoManager/component/SceneDemoList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/table/index.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js");var d=p(a("./node_modules/react/index.js")),l=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=a("./src/components/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.div.withConfig({displayName:"SceneDemoList__SceneDemoPage",componentId:"sc-1u4p8lg-0"})(["width:100%;"]),m=l.default.div.withConfig({displayName:"SceneDemoList__TableDom",componentId:"sc-1u4p8lg-1"})(["height:auto;display:inline-block;width:100%;min-height:400px;"]),h=(0,o.default)(c.LoadingIndicator,{}),g=function(e){function t(a){return(0,s.default)(this,t),(0,r.default)(this,e.call(this,a))}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.sceneDemoList,a=e.sceneDemoListLoading,s=e.columns,r=t.data;return(0,o.default)(f,{},void 0,(0,o.default)(m,{},void 0,a&&h,!a&&(0,o.default)(n.default,{dataSource:r,rowKey:"configId",bordered:!0,pagination:!1,columns:s})))},t}(d.default.Component);t.default=(0,u.connect)()(g)},"./src/module/sysManage/sceneDemoManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-redux/es/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h=u.default.div.withConfig({displayName:"SearchBar__PageHeader",componentId:"sc-1mvj0ov-0"})(["position:absolute;right:0;top:8px;.ant-input-search{width:200px !important;margin-left:16px !important;}"]),g={width:150},v=(0,n.default)(f,{value:"createAt"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),y=(0,n.default)(f,{value:"updateAt"},void 0,"\u6309\u66f4\u65b0\u65f6\u95f4\u6392\u5e8f"),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("configTitle",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortBy"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(h,{},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:g,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortBy},void 0,v,y),(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",style:g,onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}}))},t}(l.default.Component);t.default=(0,c.connect)()(b)},"./src/module/sysManage/sceneDemoManager/component/UploadImg.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.UploadImgDom=void 0;var n=y(a("./node_modules/antd/es/modal/index.js")),o=y(a("./node_modules/antd/es/upload/index.js")),s=y(a("./node_modules/babel-runtime/helpers/jsx.js")),r=y(a("./node_modules/antd/es/message/index.js")),i=y(a("./node_modules/babel-runtime/regenerator/index.js")),d=y(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),l=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=y(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=y(a("./node_modules/react/index.js")),f=(y(a("./node_modules/prop-types/index.js")),a("./src/utils/constants.js")),m=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./node_modules/react-redux/es/index.js"),g=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./src/utils/authPermit.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=t.UploadImgDom=m.default.div.withConfig({displayName:"UploadImg__UploadImgDom",componentId:"sc-1wfll7w-0"})([".ant-upload-picture-card-wrapper{zoom:1;display:inline-block;width:100%;}"]);function x(e){return new Promise((function(t,a){var n=new FileReader;n.readAsDataURL(e),n.onload=function(){return t(n.result)},n.onerror=function(e){return a(e)}}))}var C=(0,s.default)("div",{},void 0,(0,s.default)(g.PlusOutlined,{}),(0,s.default)("div",{className:"ant-upload-text"},void 0,"Upload")),j=function(e){function t(a){var n=this;(0,l.default)(this,t);var o=(0,u.default)(this,e.call(this,a));o.setFileList=function(e){for(var t=[],a=0;a<e.length;a++)t.push({uid:_.get(e[a],"imageId",a),name:_.get(e[a],"imageName",a),status:"done",url:(0,f.wrapServiceUrl)(f.ServicePath.APP_SCENE,_.get(e[a],"imageThumbUrl",a)),imageExtName:_.get(e[a],"imageExtName",a)});return t},o.handleCancel=function(){return o.setState({previewVisible:!1})},o.handlePreview=function(){var e=(0,d.default)(i.default.mark((function e(t){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.url||t.preview){e.next=4;break}return e.next=3,x(t.originFileObj);case 3:t.preview=e.sent;case 4:o.setState({previewImage:t.url||t.preview,previewVisible:!0});case 5:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}(),o.validateFun=function(){return{validate:!0,moduleData:{sampleImages:o.sampleImages}}},o.handleChange=function(){var e=(0,d.default)(i.default.mark((function e(t){var a,s,d,l,u,c=t.file,p=t.fileList;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"uploading"===(a=c.status)&&r.default.success("\u6587\u4ef6\u4e0a\u4f20\u4e2d..."),"done"===a?(s=_.get(c.response,"data.fileId",""),d=_.get(c.response,"data.fileName",""),l=_.get(c.response,"data.fileExtName",""),o.sampleImages.push({imageId:s,imageName:d,uid:c.uid,imageExtName:l}),r.default.success(c.name+" \u4e0a\u4f20\u6210\u529f!")):"error"===a?r.default.error(c.name+" \u6587\u4ef6\u4e0a\u4f20\u5931\u8d25!"):"removed"===a&&(u=_.findIndex(o.sampleImages,(function(e){return e.uid==c.uid||e.imageId==c.uid})),o.sampleImages.splice(u,1)),o.setState({fileList:[].concat(p)});case 4:case"end":return e.stop()}}),e,n)})));return function(t){return e.apply(this,arguments)}}();var s=o.props.setValidateFunc;return _.isFunction(s)&&s("sampleImages",o.validateFun),o.sampleImages=_.get(a.sceneDemoInfo,"configJson.sampleImages",[]),o.state={previewVisible:!1,previewImage:"",fileList:a.sceneDemoInfo?o.setFileList(o.sampleImages):[]},o}return(0,c.default)(t,e),t.prototype.render=function(){var e=this.state,t=e.previewVisible,a=e.previewImage,r=e.fileList,i=C;return(0,s.default)(b,{},void 0,(0,s.default)(o.default,{headers:{Authorization:(0,v.getToken)()},action:(0,f.wrapServiceUrl)(f.ServicePath.APP_SCENE,"sceneDemoConfigs/operations/uploadSampleImages"),listType:"picture-card",fileList:r,multiple:!0,onPreview:this.handlePreview,onChange:this.handleChange},void 0,r.length>=3?null:i),(0,s.default)(n.default,{visible:t,footer:null,onCancel:this.handleCancel},void 0,(0,s.default)("img",{alt:"example",style:{width:"100%"},src:a})))},t}(p.default.PureComponent);t.default=(0,h.connect)()(j)},"./src/module/sysManage/sceneDemoManager/component/ViewApiDefinition.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/col/index.js")),o=p(a("./node_modules/antd/es/row/index.js")),s=p(a("./node_modules/babel-runtime/helpers/jsx.js")),r=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-redux/es/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=u.default.div.withConfig({displayName:"ViewApiDefinition__ViewApiDefinitionDom",componentId:"us28c7-0"})(["width:100%;.ant-row{padding:0 0 20px 10px;}"]),m=function(e){function t(a){return(0,r.default)(this,t),(0,i.default)(this,e.call(this,a))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props.sceneDemoInfo;return(0,s.default)(f,{},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"api\u8def\u5f84\uff1a",_.get(e,"configJson.apiDefinition.url","--"))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u8bf7\u6c42\u65b9\u5f0f\uff1a",_.get(e,"configJson.apiDefinition.method","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u8bf7\u6c42\u53c2\u6570\uff1a",_.get(e,"configJson.apiDefinition.paramMap","--"))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u8fd4\u56de\u7c7b\u578b\uff1a",_.get(e,"apiDefinition.returnList")?"\u96c6\u5408":"\u5bf9\u8c61"))))},t}(l.default.PureComponent);t.default=(0,c.connect)()(m)},"./src/module/sysManage/sceneDemoManager/component/ViewSceneDemo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/antd/es/col/index.js")),o=p(a("./node_modules/antd/es/row/index.js")),s=p(a("./node_modules/babel-runtime/helpers/jsx.js")),r=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=p(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),c=a("./node_modules/react-redux/es/index.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=u.default.div.withConfig({displayName:"ViewSceneDemo__ViewSceneDemoDom",componentId:"xt9l96-0"})(["width:100%;.ant-row{padding:0 0 20px 10px;}"]),m=function(e){function t(a){return(0,r.default)(this,t),(0,i.default)(this,e.call(this,a))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props.sceneDemoInfo;return(0,s.default)(f,{},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u573a\u666f\u6807\u9898\uff1a",_.get(e,"configTitle","--"))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u60c5\u666f\u7c7b\u578b\uff1a",_.get(e,"sceneTypeTxt","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u521b\u5efa\u4eba\uff1a",_.get(e,"createBy","--"))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u521b\u5efa\u65f6\u95f4\uff1a",_.get(e,"createAt","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u4fee\u6539\u4eba\uff1a",_.get(e,"updateBy","--"))),(0,s.default)(n.default,{span:12},void 0,(0,s.default)("span",{},void 0,"\u4fee\u6539\u65f6\u95f4\uff1a",_.get(e,"updateAt","--")))),(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{span:24},void 0,(0,s.default)("span",{},void 0,"\u573a\u666f\u63cf\u8ff0\uff1a",_.get(e,"configDesc","--")))))},t}(l.default.PureComponent);t.default=(0,c.connect)()(m)},"./src/module/sysManage/sceneDemoManager/component/jsonschema.json":function(e){e.exports=JSON.parse('{"type":"array","description":"\u63a8\u7406\u7ed3\u679c\u5c55\u793a\u5b9a\u4e49\u6570\u7ec4","items":{"description":"\u63a8\u7406\u7ed3\u679c\u5c55\u793a\u5f62\u5f0f\u5b9a\u4e49","type":"object","required":["displayForm"],"oneOf":[{"title":"STAT_GRID:\u7edf\u8ba1\u8868\u683c","required":["displayForm","dataMapping"],"properties":{"displayForm":{"type":"string","nullable":false,"default":"STAT_GRID"},"title":{"type":"string","description":"\u6807\u9898","maxLength":100},"dataPath":{"type":"string","description":"\u6570\u636e\u83b7\u53d6\u8def\u5f84"},"convertData":{"type":"array","description":"\u6570\u636e\u8f6c\u6362","items":{"type":"string","enum":["TO_JSON","MAP_TO_LIST"]}},"dataMapping":{"type":"array","items":{"description":"\u5c5e\u6027\u8868\u683c\u6570\u636e\u6620\u5c04","type":"object","required":["label","value"],"properties":{"label":{"type":"string","description":"\u5c5e\u6027Label"},"value":{"description":"\u6570\u636e\u503c\u914d\u7f6e","type":"object","required":["xpath"],"properties":{"xpath":{"type":"string","description":"\u503c\u83b7\u53d6\u8def\u5f84"},"format":{"type":"string","description":"\u683c\u5f0f\u5316\u8bbe\u7f6e"},"uiType":{"type":"string","enum":["PROGRESS_BAR","VALUE","TAG"],"description":"\u6570\u503c\u5c55\u73b0\u5f62\u5f0f * PROGRESS_BAR: \u5c55\u793a\u8fdb\u5ea6\u6761 * VALUE: \u5c55\u793a\u503c"}}}}}}}},{"title":"PROP_GRID:\u5c5e\u6027\u8868\u683c","required":["displayForm","dataMapping"],"properties":{"displayForm":{"type":"string","nullable":false,"default":"PROP_GRID"},"title":{"type":"string","description":"\u6807\u9898","maxLength":100},"dataPath":{"type":"string","description":"\u6570\u636e\u83b7\u53d6\u8def\u5f84"},"convertData":{"type":"array","description":"\u6570\u636e\u8f6c\u6362","items":{"type":"string","enum":["TO_JSON","MAP_TO_LIST"]}},"dataMapping":{"type":"object","required":["labelXpath","value"],"properties":{"labelXpath":{"type":"string","description":"\u5c5e\u6027label\u83b7\u53d6\u8def\u5f84\u914d\u7f6e"},"value":{"description":"\u6570\u636e\u503c\u914d\u7f6e","type":"object","required":["xpath"],"properties":{"xpath":{"type":"string","description":"\u503c\u83b7\u53d6\u8def\u5f84"},"format":{"type":"string","description":"\u683c\u5f0f\u5316\u8bbe\u7f6e"},"uiType":{"type":"string","enum":["PROGRESS_BAR","VALUE","TAG"],"description":"\u6570\u503c\u5c55\u73b0\u5f62\u5f0f * PROGRESS_BAR: \u5c55\u793a\u8fdb\u5ea6\u6761 * VALUE: \u5c55\u793a\u503c"}}}}}}},{"title":"TABLE:\u8868\u683c","required":["displayForm","dataMapping"],"properties":{"displayForm":{"type":"string","nullable":false,"default":"TABLE"},"title":{"type":"string","description":"\u6807\u9898","maxLength":100},"dataPath":{"type":"string","description":"\u6570\u636e\u83b7\u53d6\u8def\u5f84"},"convertData":{"type":"array","description":"\u6570\u636e\u8f6c\u6362","items":{"type":"string","enum":["TO_JSON","MAP_TO_LIST"]}},"dataMapping":{"type":"array","items":{"description":"\u6570\u636e\u503c\u914d\u7f6e","type":"object","required":["columnName","xpath"],"properties":{"columnName":{"type":"string","description":"\u5217\u540d"},"xpath":{"type":"string","description":"\u503c\u83b7\u53d6\u8def\u5f84"},"format":{"type":"string","description":"\u683c\u5f0f\u5316\u8bbe\u7f6e"},"uiType":{"type":"string","enum":["PROGRESS_BAR","VALUE","TAG"],"description":"\u6570\u503c\u5c55\u73b0\u5f62\u5f0f * PROGRESS_BAR: \u5c55\u793a\u8fdb\u5ea6\u6761 * VALUE: \u5c55\u793a\u503c"}}}}}},{"title":"PIC_MARK:\u56fe\u7247\u6807\u6ce8","required":["displayForm","dataMapping"],"properties":{"displayForm":{"type":"string","nullable":false,"default":"PIC_MARK"},"title":{"type":"string","description":"\u6807\u9898","maxLength":100},"dataPath":{"type":"string","description":"\u6570\u636e\u83b7\u53d6\u8def\u5f84"},"convertData":{"type":"array","description":"\u6570\u636e\u8f6c\u6362","items":{"type":"string","enum":["TO_JSON","MAP_TO_LIST"]}},"dataMapping":{"type":"array","items":{"description":"\u56fe\u7247\u6807\u6ce8\u6570\u636e\u6620\u5c04","type":"object","required":["markCoordXpath"],"properties":{"markTitleXpath":{"type":"string","description":"\u6807\u6ce8\u6807\u9898\u6570\u636e\u83b7\u53d6\u8def\u5f84"},"markCoordXpath":{"description":"\u6807\u6ce8\u5750\u6807\u6570\u636e\u83b7\u53d6\u8def\u5f84","type":"object","nullable":false,"required":["startX","startY"],"properties":{"startX":{"type":"string","nullable":false,"description":"\u8d77\u70b9X\u5750\u6807"},"startY":{"type":"string","nullable":false,"description":"\u8d77\u70b9Y\u5750\u6807"},"endX":{"type":"string","description":"\u7ec8\u70b9X\u5750\u6807"},"endY":{"type":"string","description":"\u7ec8\u70b9Y\u5750\u6807"},"width":{"type":"string","description":"\u5bbd\u5ea6"},"height":{"type":"string","description":"\u9ad8\u5ea6"}}}}}}}},{"title":"DISPLAY_PIC:\u56de\u663e\u56fe\u7247","required":["displayForm","dataMapping"],"properties":{"displayForm":{"type":"string","nullable":false,"default":"DISPLAY_PIC"},"title":{"type":"string","description":"\u6807\u9898","maxLength":100},"dataPath":{"type":"string","description":"\u6570\u636e\u83b7\u53d6\u8def\u5f84"},"convertData":{"type":"array","description":"\u6570\u636e\u8f6c\u6362","items":{"type":"string","enum":["TO_JSON","MAP_TO_LIST"]}},"dataMapping":{"type":"object","required":["picXpath"],"properties":{"picXpath":{"type":"string","description":"\u8fd4\u56de\u56fe\u7247base64 xpath"}}}}}]}}')},"./src/module/sysManage/sceneDemoManager/page/SceneDemoInfoPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.EditSceneDemoDom=void 0;var n=D(a("./node_modules/antd/es/button/index.js")),o=D(a("./node_modules/babel-runtime/helpers/jsx.js")),s=D(a("./node_modules/antd/es/message/index.js")),r=D(a("./node_modules/antd/es/modal/index.js")),i=D(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=D(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=D(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=D(a("./node_modules/react/index.js")),c=a("./node_modules/react-redux/es/index.js"),p=a("./src/routes/routeHelper.jsx"),f=D(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=a("./src/utils/history.js"),h=(D(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),g=a("./src/components/index.js"),v=D(a("./src/module/platFeaturesManage/modules/ImageRecognitionPage.jsx")),y=D(a("./src/module/platFeaturesManage/modules/TextRecognitionPage.jsx")),b=D(a("./src/containers/toJS.jsx")),x=a("./src/redux/selectors/enumDic.js"),C=a("./src/redux/selectors/sysManager/sceneDemoManager.js"),j=a("./src/redux/reducers/sysManager/sceneDemoManager.js"),S=D(a("./src/module/sysManage/sceneDemoManager/component/EditSceneDemo.jsx")),I=D(a("./src/module/sysManage/sceneDemoManager/component/ApiDefinition.jsx")),T=D(a("./src/module/sysManage/sceneDemoManager/component/JsonConfig.jsx")),w=D(a("./src/module/sysManage/sceneDemoManager/component/ViewSceneDemo.jsx")),E=D(a("./src/module/sysManage/sceneDemoManager/component/ViewApiDefinition.jsx"));function D(e){return e&&e.__esModule?e:{default:e}}var M=(0,b.default)(T.default),k=(0,b.default)(I.default),P=(0,b.default)(S.default),L=(0,b.default)(w.default),N=(0,b.default)(E.default),A=t.EditSceneDemoDom=f.default.div.withConfig({displayName:"SceneDemoInfoPage__EditSceneDemoDom",componentId:"tdzplz-0"})(["width:100%;float:left;margin-bottom:20px;.leftDiv{float:left;width:50%;}.rightDiv{width:50%;float:right;}.ant-row{position:relative;height:auto;margin-right:0;margin-left:0;zoom:1;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:0px;}"]),R=t.ButtonDom=f.default.div.withConfig({displayName:"SceneDemoInfoPage__ButtonDom",componentId:"tdzplz-1"})(["text-align:right;width:100%;padding:10px 40px;position:fixed;float:right;height:50px;bottom:30px;"]),F={width:"100%",display:"inline"},O=(0,o.default)(g.LoadingIndicator,{}),V=(0,o.default)(g.LoadingIndicator,{}),U=(0,o.default)(h.LeftOutlined,{}),B=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.cancel=function(){r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.props.dispatch(j.sceneDemoActions.resetSceneDemoInfo()),(0,m.navigateTo)(p.sysManageUrl.sceneDemo())}})},n.submitModalCancel=function(e){var t=n,a={},o={},i={};if(Object.keys(n.validateFuncs).map((function(e){var t=n.validateFuncs[e];if(_.isFunction(t)){var r=t.call();r.validate?"editSceneDemo"===e?(a=r.moduleData,o.sampleTexts=r.moduleData.sampleTexts):o=_.assign(o,r.moduleData):(s.default.info(r.errorMsg),i[e]=r.errorMsg)}})),"test"===e&&"{}"===JSON.stringify(i))if(n.setState({modalVisible:!0}),"create"===n.props.viewType){var d=n.props.sceneDemoSubmit.toJS();n.setState({modalVisible:!0,configId:_.get(d,"data.configId",null),testConfigJson:d.data})}else n.submitData(a,o,e);else"{}"===JSON.stringify(i)&&r.default.confirm({title:"\u63d0\u4ea4\u6570\u636e",content:"\u786e\u5b9a\u63d0\u4ea4\u672c\u6b21\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.submitData(a,o,e)},onCancel:function(){}})},n.submitData=function(e,t,a){return e.configJson=t,e.configJson.sceneType=e.sceneType,"IMG"===e.sceneType&&e.configJson.sampleTexts,e.configId=n.state.configId,e.configJson.apiDefinition.paramMap=JSON.parse(e.configJson.apiDefinition.paramMap),e.configJson.usageTips=e.usageTips,delete e.usageTips,n.props.dispatch(j.sceneDemoActions.submitSceneDemoRequest({subType:"create"===n.props.viewType&&""===e.configId?"create":"edit",sceneDemoInfo:e})),new Promise((function(e){_.defer((function(){var t=setInterval((function(){if(!n.props.selectSceneDemoSubmitLoading){clearInterval(t);var o=n.props.sceneDemoSubmit.toJS();o.isSuccess?(n.props.dispatch(j.sceneDemoActions.resetSceneDemoInfo()),"edit"===n.props.viewType&&"test"!==a?(0,m.navigateTo)("sysmgr/sceneDemo"):n.setState({configId:_.get(o,"data.configId",null),testConfigJson:o.data}),"test"!==a&&s.default.success(o.message)):s.default.error(o.message),e()}}),500)}))}))},n.callVisible=function(){n.setState({modalVisible:!1})},n.state={modalVisible:!1,testConfigJson:null,configId:_.get(n.props.match.params,"configId","")},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){"create"!==this.props.viewType&&this.props.dispatch(j.sceneDemoActions.getSceneDemoInfoRequest(_.get(this.props.match.params,"configId"),this.props.viewType))},t.prototype.render=function(){var e=this,t=this.props,a=t.viewType,s=t.dicSceneType,i=t.sceneDemoInfoView,d=t.sceneDemoInfoEdit,l=t.sceneDemoInfoLoading,u=t.selectSceneDemoSubmitLoading,c="view"===a?i:d,p=s.list();return l&&"create"!==a?O:(0,o.default)(A,{},void 0,(0,o.default)(r.default,{bodyStyle:{padding:0},width:1200,centered:!0,closable:!1,visible:this.state.modalVisible,footer:null,onCancel:this.callVisible},void 0,u?V:this.state.modalVisible&&this.state.testConfigJson&&("IMG"===_.get(this.state.testConfigJson,"sceneType","")?(0,o.default)(v.default,{topHive:!0,data:this.state.testConfigJson,configId:this.state.configId}):(0,o.default)(y.default,{topHive:!0,data:this.state.testConfigJson,configId:this.state.configId}))),(0,o.default)("div",{},void 0,(0,o.default)(n.default,{onClick:this.cancel,style:{width:100,marginBottom:10},size:"small",type:"primary"},void 0,U,"\u8fd4 \u56de")),(0,o.default)("div",{className:"leftDiv"},void 0,(0,o.default)(g.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:F},void 0,"view"!==a?(0,o.default)(P,{dicSceneTypeData:p,sceneDemoInfo:c,setValidateFunc:this.setValidateFunc}):(0,o.default)(L,{sceneDemoInfo:c})),(0,o.default)(g.ModelConfigPanel,{title:"\u63a5\u53e3\u5b9a\u4e49",sign:!0,style:F},void 0,"view"!==a?(0,o.default)(k,{dicSceneTypeData:p,sceneDemoInfo:c,setValidateFunc:this.setValidateFunc}):(0,o.default)(N,{sceneDemoInfo:c}))),(0,o.default)("div",{className:"rightDiv"},void 0,(0,o.default)(g.ModelConfigPanel,{title:"\u8fd4\u56de\u503c\u5b9a\u4e49",sign:!0,style:F},void 0,(0,o.default)(M,{configId:this.state.configId,onTestClick:function(){return e.submitModalCancel("test")},sceneDemoInfo:c,setValidateFunc:this.setValidateFunc}))),(0,o.default)(R,{},void 0,(0,o.default)(n.default,{style:{width:90},onClick:this.cancel},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{loading:u,onClick:this.submitModalCancel,style:{width:90,marginLeft:"8px"},type:"primary"},void 0,"\u4fdd \u5b58")))},t}(u.default.PureComponent);t.default=(0,c.connect)((function(e,t){return{sceneDemoSubmit:(0,C.selectSceneDemoSubmit)(e),dicSceneType:(0,x.dicGroupHelper)(e,"SCENE_DEMO_TYPE"),sceneDemoInfoView:(0,C.selectSceneDemoInfoView)(e),sceneDemoInfoEdit:(0,C.selectSceneDemoInfoEdit)(e),sceneDemoInfoLoading:(0,C.selectSceneDemoInfoLoading)(e),selectSceneDemoSubmitLoading:(0,C.selectSceneDemoSubmitLoading)(e),viewType:_.get(t.match.params,"action")}}))(B)},"./src/module/sysManage/sceneDemoManager/page/SceneDemoPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/divider/index.js")),o=w(a("./node_modules/antd/es/button/index.js")),s=w(a("./node_modules/antd/es/tooltip/index.js")),r=w(a("./node_modules/babel-runtime/helpers/jsx.js")),i=w(a("./node_modules/antd/es/message/index.js")),d=w(a("./node_modules/antd/es/modal/index.js")),l=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=w(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=w(a("./node_modules/react/index.js")),f=w(a("./node_modules/lodash/lodash.js")),m=a("./node_modules/react-redux/es/index.js"),h=a("./src/routes/routeHelper.jsx"),g=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),v=(w(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/icons/es/index.js")),_=w(a("./src/containers/toJS.jsx")),y=w(a("./src/module/sysManage/sceneDemoManager/component/SearchBar.jsx")),b=a("./src/utils/history.js"),x=a("./src/components/index.js"),C=w(a("./src/module/sysManage/sceneDemoManager/component/SceneDemoList.jsx")),j=w(a("./src/module/platFeaturesManage/modules/ImageRecognitionPage.jsx")),S=w(a("./src/module/platFeaturesManage/modules/TextRecognitionPage.jsx")),I=a("./src/redux/selectors/sysManager/sceneDemoManager.js"),T=a("./src/redux/reducers/sysManager/sceneDemoManager.js");function w(e){return e&&e.__esModule?e:{default:e}}var E=(0,_.default)(C.default),D=g.default.div.withConfig({displayName:"SceneDemoPage__SceneDemoPageDom",componentId:"bkxdcm-0"})(["width:100%;background-color:#ffff;padding:20px 50px 0 50px;"]),M=g.default.div.withConfig({displayName:"SceneDemoPage__PageHeader",componentId:"bkxdcm-1"})(["position:relative;height:58px;width:100%;z-index:20;.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}.saveButton{position:absolute;top:8px;}"]),k=(0,r.default)(n.default,{type:"vertical"}),P=(0,r.default)(n.default,{type:"vertical"}),L=(0,r.default)(x.LoadingIndicator,{}),N=(0,r.default)(v.PlusOutlined,{}),A=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.test=function(e){n.setState({modalVisible:!0}),n.configId=e.configId,n.props.dispatch(T.sceneDemoActions.getSceneDemoInfoRequest(e.configId,"edit"))},n.deleteSceneDemo=function(e){var t;d.default.confirm(((t={title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\u60c5\u666f\u6f14\u793a\u914d\u7f6e?",okText:"\u786e\u8ba4"}).title="\u64cd\u4f5c\u786e\u8ba4",t.cancelText="\u53d6\u6d88",t.onOk=function(){return n.props.dispatch(T.sceneDemoActions.deleteSceneDemoRequest(e.configId)),new Promise((function(e){f.default.defer((function(){var t=setInterval((function(){if(!n.props.deleteLoading){clearInterval(t);var a=n.props.sceneDemoDelete.toJS();a.isSuccess?i.default.success(a.message):i.default.error(a.message),n.fetchData(n.searchCond),n.props.dispatch(T.sceneDemoActions.resetDeleteSceneDemo()),e()}}),500)}))}))},t))},n.openModalVisible=function(e,t){n.props.dispatch(T.sceneDemoActions.resetSceneDemoInfo()),"create"!==t?(0,b.navigateTo)(h.sysManageUrl.sceneDemoEdit(e.configId,"edit")):(0,b.navigateTo)(h.sysManageUrl.sceneDemoEdit(null,"create")),n.setState({viewType:t})},n.fetchData=function(e){n.props.dispatch(T.sceneDemoActions.getSceneDemoListRequest(e))},n.changeSearchCond=function(e,t){n.searchCond[e]=f.default.trim(t),delete n.searchCond.limit,n.fetchData(n.searchCond)},n.onChangePage=function(e,t){n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.callVisible=function(){n.props.dispatch(T.sceneDemoActions.resetSceneDemoInfo()),n.setState({modalVisible:!1,testConfigJson:""})},n.state={viewType:"",modalVisible:!1,testConfigJson:""},n.configId="",n.searchCond={configTitle:"",sortBy:"createAt"},n.columns=[{title:"\u5e8f\u53f7",dataIndex:"configId",width:80,render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u573a\u666f\u6807\u9898",dataIndex:"configTitle",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u60c5\u666f\u7c7b\u578b",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)},dataIndex:"sceneTypeTxt"},{title:"\u573a\u666f\u63cf\u8ff0",dataIndex:"configDesc",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)},dataIndex:"createBy"},{title:"\u64cd\u4f5c",width:180,render:function(e){return(0,r.default)("div",{},void 0,(0,r.default)("a",{href:"javascript:;"},void 0,(0,r.default)("span",{onClick:function(){return n.test(e)}},void 0,"\u8bd5\u4e00\u8bd5")),k,(0,r.default)("a",{href:"javascript:;"},void 0,(0,r.default)("span",{onClick:function(){return n.openModalVisible(e,"edit")}},void 0,"\u4fee\u6539")),P,(0,r.default)("a",{href:"javascript:;"},void 0,(0,r.default)("span",{onClick:function(){n.deleteSceneDemo(e)}},void 0,"\u5220\u9664")))}}],n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.componentWillUnmount=function(){this.props.dispatch(T.sceneDemoActions.resetAllDestroy())},t.getDerivedStateFromProps=function(e){return"{}"!==JSON.stringify(e.sceneDemoInfoEdit)&&e.sceneDemoInfoEdit?{testConfigJson:e.sceneDemoInfoEdit.toJS()}:null},t.prototype.render=function(){var e=this,t=this.props,a=t.sceneDemoList,n=t.sceneDemoListLoading,s=t.sceneDemoInfoLoading;return(0,r.default)(D,{},void 0,(0,r.default)(d.default,{bodyStyle:{padding:0},width:1200,closable:!1,centered:!0,visible:this.state.modalVisible,footer:null,onCancel:this.callVisible},void 0,s?L:this.state.modalVisible&&this.state.testConfigJson&&("IMG"===f.default.get(this.state.testConfigJson,"configJson.sceneType","")?(0,r.default)(j.default,{topHive:!0,data:this.state.testConfigJson,configId:this.configId}):(0,r.default)(S.default,{topHive:!0,data:this.state.testConfigJson,configId:this.configId}))),(0,r.default)(M,{},void 0,(0,r.default)(o.default,{onClick:function(){e.openModalVisible(null,"create")},className:"saveButton",type:"primary",icon:N},void 0,"\u521b\u5efa\u60c5\u666f\u6f14\u793a\u914d\u7f6e"),(0,r.default)(y.default,{sortBy:this.searchCond.sortBy,onChange:this.changeSearchCond})),(0,r.default)(E,{sceneDemoList:a,sceneDemoListLoading:n,columns:this.columns,onChangePage:this.onChangePage}))},t}(p.default.Component);t.default=(0,m.connect)((function(e){return{sceneDemoInfoEdit:(0,I.selectSceneDemoInfoEdit)(e),sceneDemoInfoLoading:(0,I.selectSceneDemoInfoLoading)(e),sceneDemoList:(0,I.selectSceneDemoList)(e),sceneDemoDelete:(0,I.selectSceneDemoDelete)(e),sceneDemoListLoading:(0,I.selectSceneDemoListLoading)(e),deleteLoading:(0,I.selectDeleteLoading)(e)}}))(A)},"./src/module/sysManage/switch/SwitchPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/table/index.js")),o=y(a("./node_modules/antd/es/message/index.js")),s=y(a("./node_modules/antd/es/button/index.js")),r=y(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=y(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=y(a("./node_modules/babel-runtime/helpers/inherits.js")),l=y(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/button/style/index.js");var u=y(a("./node_modules/react/index.js")),c=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(y(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),f=y(a("./node_modules/lodash/lodash.js")),m=y(a("./src/module/sysManage/switch/component/EditCell.jsx")),h=y(a("./src/module/sysManage/switch/component/SearchBar.jsx")),g=a("./src/redux/selectors/sysManager/switchManager.js"),v=a("./src/redux/reducers/sysManager/switchManager.js"),_=a("./src/styles/GlobalStyle.js");function y(e){return e&&e.__esModule?e:{default:e}}var b=c.default.div.withConfig({displayName:"SwitchPage__SwitchPageDom",componentId:"sc-87trf6-0"})(["width:100%;height:100%;position:relative;background-color:#ffff;padding:24px 16px;margin-bottom:20px;.ant-col.ant-form-item-control-wrapper{width:100% !important;}.ant-row.ant-form-item{width:100% !important;}.ant-form-inline .ant-form-item-with-help{margin-bottom:0px;}[data-row-key^='option_featureTitle']{color:rgba(0,0,0,0.85);background:#fafafa !important;}[data-row-key^='option_featureTitle'] > td{background:#fafafa;}[data-row-key^='option_featureTitle'] > td:hover{background:#fafafa !important;}[data-row-key^='option_featureTitle']:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td{background:#fafafa !important;}.ant-table-thead > tr > th{background:#fafafa !important;}.header{position:relative;height:56px;z-index:20;}"]),x=function(e){var t={children:e,props:{}};return e||(t.props.colSpan=0),t},C=[],j=function(e,t){var a=e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase()),n=e.substr(0,a),o=e.substr(a+t.length),s=e.substr(a,t.length);return a>-1?(0,l.default)("span",{},void 0,n,(0,l.default)("span",{style:{color:"#f50"}},void 0,s),o):(0,l.default)("span",{},void 0,e)},S=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.fetchModulesData=function(){n.props.dispatch(v.switchActions.getSwitchModulesDataRequest())},n.updateOptionCell=function(e,t){var a=function e(t,a,n,o){for(var s=0;s<t.length;s++){if(o)return{data:t,isUpdate:o};if(t[s].optionId&&t[s].optionId===a)return t[s].configValue=n,{data:t,isUpdate:o=!0};if(Array.isArray(t[s].children)){var r=e(t[s].children,a,n,o);t[s].children=r.data,o=r.isUpdate}}return{data:t,isUpdate:o}}(n.state.switchModules,e,t,!1).data;n.setState({isSave:!0,switchModules:a})},n.isEditing=function(e){return e.optionId===n.state.editingKey},n.onExpand=function(e,t){var a=n.state.expandedRowKeys;if(e)t.optionId?a.push(t.optionId):a.push(t.id),Array.isArray(t.children)&&t.children[0]&&t.children[0].isOption&&!t.children[0].isLoaded&&n.props.dispatch(v.switchActions.getModulesOptionsRequest(t.id));else{var o=t.optionId?t.optionId:t.id;a=a.filter((function(e){return e!==o}))}n.setState({expandedRowKeys:a})},n.onSearchChange=function(e){for(var t=[],a=0;a<C.length;a++){var o=C[a];if(o.name&&o.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())){var s=o.paths.slice(0,-1);t=t.concat(s)}}t=f.default.uniq(t),n.setState({expandedRowKeys:t,searchValue:e})},n.state={switchModules:[],moduleOptions:[],loadedModules:!1,isSave:!1,saveLoading:!1,saveError:!1,editingKey:"",searchValue:"",expandedRowKeys:[]},n.columns=[{key:"1",width:"15%",title:"\u6a21\u5757\u540d\u79f0",dataIndex:"name",render:function(e,t,a){var o=n.state.searchValue;return(e&&n.state.searchValue?j(e,o):e)||a}},{key:"2",width:"15%",colSpan:6,title:"\u6a21\u5757\u63cf\u8ff0",dataIndex:"desc",render:function(e){return e?{children:e,props:{colSpan:6}}:{children:null,props:{align:"center",colSpan:0}}}},{key:"3",width:"20%",colSpan:0,title:"optionName",dataIndex:"optionName",render:function(e){var t={children:e,props:{}};if(e){var a=n.state.searchValue,o=j(e,a);t.children=o}else t.props.colSpan=0;return t}},{key:"4",width:"20%",colSpan:0,title:"configType",dataIndex:"configType",ellipsis:!0,render:function(e,t){var a="";if(t.configType){var o=n.isEditing(t);a=(0,l.default)(m.default,{updateOptionCell:n.updateOptionCell,record:t,value:t.configValue?t.configValue:t.defaultValue,editable:o,configType:t.configType})}var s={children:a,props:{}};return e||(s.props.colSpan=0),s}},{key:"5",width:"20%",colSpan:0,title:"optionDesc",dataIndex:"optionDesc",render:x},{key:"6",width:"10%",colSpan:0,title:"configDesc",dataIndex:"configDesc",render:x},{key:"7",width:"10%",colSpan:0,title:"",dataIndex:"optionId",render:function(e,t){var a="";if(e&&-1!==e.indexOf("featureTitle"))return"\u64cd\u4f5c";if(e){var o=n.state.editingKey,r=n.isEditing(t);a=r?(0,l.default)(s.default,{type:"primary",loading:r&&n.props.saveLoading,onClick:function(){return n.save(t)}},void 0,"\u4fdd\u5b58"):(0,l.default)(s.default,{disabled:""!==o,onClick:function(){return n.edit(t.optionId)},type:"primary"},void 0,"\u4fee\u6539")}var i={children:a,props:{}};return e||(i.props.colSpan=0),i}}],n}return(0,d.default)(t,e),t.prototype.componentDidMount=function(){this.fetchModulesData()},t.getDerivedStateFromProps=function(e,t){var a=e.switchModules.toJS(),n=e.moduleOptions.toJS(),s=t.switchModules;return e.saveLoading!==t.saveLoading?(o.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),{isSave:!1,editingKey:""}):f.default.isEmpty(s)||f.default.isEmpty(n)||f.default.isEqual(n,t.moduleOptions)?t.loadedModules||f.default.isEqual(a,s)?null:(function e(t,a){if(Array.isArray(t.children)&&t.children.length>0){a=t.id?a+"#"+t.id:a;for(var n=0;n<t.children.length;n++)t.path=a,C.push({id:t.children[n].id,name:t.children[n].name,paths:a.split("#")}),e(t.children[n],a)}else a=t.id?a?a+"#"+t.id:t.id:a,C.push({id:t.id,name:t.name,paths:a.split("#")}),t.path=a,t.children=[{optionId:"featureTitle"+t.id,optionName:"\u529f\u80fd\u70b9",optionDesc:"\u529f\u80fd\u70b9\u63cf\u8ff0",configDesc:"\u914d\u7f6e\u8bf4\u660e",configType:"ddd",defaultValue:"\u5f53\u524d\u8bbe\u7f6e\u503c",pid:t.id,isOption:!0,name:"\u5e8f\u53f7",isLoaded:!1}]}({children:a},""),{loadedModules:!0,switchModules:a}):{switchModules:s=function e(t,a,n){for(var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=0;s<t.length;s++){if(t[s].pid===a){var r=t[0];delete r.pid,r.isLoaded=!0,t=[r].concat(n);for(var i=o.split("#"),d=0;d<n.length;d++)i.push(n[d].optionId),C.push({id:n[d].optionId,name:n[d].optionName,paths:i});return t}Array.isArray(t[s].children)&&(t[s].children=e(t[s].children,a,n,t[s].path))}return t}(s,n[0]&&n[0].moduleId,n)}},t.prototype.edit=function(e){this.setState({editingKey:e})},t.prototype.save=function(e){var t=e.moduleId,a=e.optionId,n=e.configValue,o=e.defaultValue;this.props.dispatch(v.switchActions.updateModuleOptionRequest({moduleId:t,optionId:a,configValue:n||o}))},t.prototype.render=function(){var e=this.state,t=e.expandedRowKeys,a=e.switchModules,o=f.default.get(a[0],"children",[]);return(0,l.default)(b,{},void 0,(0,l.default)(_.PageHeader,{className:"right"},void 0,(0,l.default)(h.default,{onChange:this.onSearchChange})),(0,l.default)(_.PageBody,{},void 0,(0,l.default)(n.default,{rowKey:function(e){return e.id||(e.optionId?"option_"+e.optionId:"pid_"+e.pid)},className:"table-switch",onExpand:this.onExpand,expandedRowKeys:t,columns:this.columns,bordered:!0,dataSource:o,pagination:!1})))},t}(u.default.Component);t.default=(0,p.connect)((function(e){return{switchModules:(0,g.selectSwitchModulesData)(e),optionInfo:(0,g.selectModuleOptionInfo)(e),moduleOptions:(0,g.selectModuleOptions)(e),saveLoading:(0,g.selectOperateLoading)(e),saveError:(0,g.selectOperateError)(e)}}))(S)},"./src/module/sysManage/switch/component/EditCell.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/input/index.js")),o=g(a("./node_modules/babel-runtime/helpers/typeof.js")),s=g(a("./node_modules/antd/es/switch/index.js")),r=g(a("./node_modules/babel-runtime/helpers/jsx.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var c=g(a("./node_modules/react/index.js")),p=g(a("./node_modules/lodash/lodash.js")),f=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=g(a("./src/redux/selectors/enumDic.js"));function g(e){return e&&e.__esModule?e:{default:e}}var v=m.Form.Item,_=u.default.Option,y=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.changeValue=function(e,t,a){var o="switch"===a?e?"1":"-1":e,s=n.props.updateOptionCell;p.default.isFunction(s)&&s(t.optionId,o)},n.state={},n}return(0,l.default)(t,e),t.prototype.getOptionSource=function(){var e,t=this.props.record,a=t.optionSource,n=t.configType,o=this.props.record.defaultValue?this.props.record.defaultValue.split(","):"";if(e=o,"[object Array]"===Object.prototype.toString.call(e)){var s=[];return 4===n&&(s=this.props.dicHelper(a).list()),o.map((function(e,t){return(0,r.default)(_,{value:e},t,4===n&&s.length>0?s[p.default.findIndex(s,(function(t){return t.value==e}))].txt:e)}))}},t.prototype.render=function(){var e=this,t=this.props.record.configType,a=this.props.value,i=this.props.editable;if(1===t)return(0,r.default)(s.default,{disabled:!i,checked:1===Number(a),onChange:function(t){e.changeValue(t,e.props.record,"switch")}});if(!i){if(4!==t)return a;var d=function(){for(var t=a.split(","),n=e.props.dicHelper(e.props.record.optionSource).list(),o="",s=function(e){n[p.default.findIndex(n,(function(a){return a.value==t[e]}))]&&(o+=n[p.default.findIndex(n,(function(a){return a.value==t[e]}))].txt+"\uff0c")},r=0;r<t.length;r++)s(r);return{v:o.length>0?o.substring(0,o.length-1):o}}();if("object"===("undefined"===typeof d?"undefined":(0,o.default)(d)))return d.v}if(2===t){var l=m.Form.create({})((function(t){var o=t.form.getFieldDecorator;return(0,r.default)(m.Form,{layout:"inline"},void 0,(0,r.default)(v,{label:""},void 0,o("input_value",{initialValue:a,rules:[{required:!0,message:"\u503c\u4e0d\u80fd\u4e3a\u7a7a\u54e6\uff01"}]})((0,r.default)(n.default,{type:"text",placeholder:"\u8bf7\u8f93\u5165\u6587\u5b57",onBlur:function(t){e.changeValue(t.target.value,e.props.record)}}))))}));return(0,r.default)(l,{})}if(3===t)return(0,r.default)(u.default,{value:a,onChange:function(t){e.changeValue(t,e.props.record)},style:{width:"100%"}},void 0,this.getOptionSource());if(4===t){var c=m.Form.create({})((function(t){var n=t.form.getFieldDecorator;return(0,r.default)(m.Form,{layout:"inline"},void 0,(0,r.default)(v,{label:""},void 0,n("multiple_value",{initialValue:a?a.split(","):a,rules:[{required:!0,message:"\u5fc5\u987b\u8981\u9009\u4e00\u9879\u54e6\uff01"}]})((0,r.default)(u.default,{mode:"multiple",onChange:function(t){e.changeValue(String(t),e.props.record)},style:{width:"100%"}},void 0,e.getOptionSource()))))}));return(0,r.default)(c,{})}return null},t}(c.default.Component);t.default=(0,f.connect)((function(e){return{dicHelper:(0,h.default)(e)}}))(y)},"./src/module/sysManage/switch/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/input/style/index.js");var d=c(a("./node_modules/react/index.js")),l=(c(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),u=a("./src/styles/GlobalStyle.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=i.default.Search,f=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.doSearch=function(e){n.props.onChange(e)},n.handleFocus=function(e){e.target.select()},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(u.SearchBarWrapper,{},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(p,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",className:"search-bar",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(d.default.Component);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/module/sysManage/taskManager/TaskManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=I(a("./node_modules/antd/es/table/index.js")),o=I(a("./node_modules/antd/es/button/index.js")),s=I(a("./node_modules/antd/es/tooltip/index.js")),r=I(a("./node_modules/babel-runtime/helpers/jsx.js")),i=I(a("./node_modules/antd/es/modal/index.js")),d=I(a("./node_modules/antd/es/message/index.js")),l=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=I(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=I(a("./node_modules/react/index.js")),f=(I(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./src/components/index.js"),v=I(a("./src/redux/services/sysManager/taskManager.js")),y=I(a("./src/module/sysManage/taskManager/component/SearchBar.jsx")),b=a("./src/utils/history.js"),x=a("./src/styles/GlobalStyle.js"),C=(a("./src/module/sysManage/taskManager/modelEnums.js"),a("./src/routes/routeHelper.jsx")),j=a("./src/components/auth/textAuth.jsx"),S=I(a("./src/module/sysManage/taskManager/component/PublishTaskConfig.jsx"));function I(e){return e&&e.__esModule?e:{default:e}}var T=m.default.div.withConfig({displayName:"TaskManagePage__DropdownButtonWrapper",componentId:"sc-18fzobi-0"})([".ant-dropdown-menu{position:relative;margin-left:10px;padding:4px 0;text-align:left;list-style-type:none;background-color:#fff;background-clip:padding-box;border-radius:4px;outline:none;box-shadow:0 2px 8px rgba(0,0,0,0.15);}"]),w=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),E=(0,r.default)(h.PlusOutlined,{}),D=(0,r.default)(g.LoadingIndicator,{position:"relative"}),M=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.redirectImgCvatUpdate=function(e){v.default.updateStatus(e).then((function(){n.fetchData(),(0,b.navigateTo)("/sysmgr/task/iframe_load/redirectImgCvat?url="+(0,j.hasText)("root.app.imageMark")+"/"+_.get(e,"additionInfo.CVAT_ID",null))})).catch((function(e){d.default.error(e.message)}))},n.redirectTxtCvatUpdate=function(e){v.default.updateStatus(e).then((function(){n.fetchData(),(0,b.navigateTo)("/sysmgr/task/iframe_load/redirectTxtCvat?url="+(0,j.hasText)("root.app.textMark")+"/"+_.get(e,"additionInfo.DOCCANO_ID",null))})).catch((function(e){d.default.error(e.message)}))},n.annotationTask=function(e){31===e.taskScene?n.redirectImgCvatUpdate(e):n.redirectTxtCvatUpdate(e)},n.developTask=function(e){(0,b.navigateTo)("/sysmgr/task/iframe_load/dacpDevelop?url="+(0,j.hasText)("root.app.dacpPath")+"/open/procDetailEdit/"+e.taskId+"/all/"+e.projectId)},n.register=function(e){(0,b.navigateTo)("/sysmgr/task/iframe_load/dacpDevelop?url="+(0,j.hasText)("root.app.dacpPath")+"/open/tab/add/"+e.projectId)},n.publishTask=function(e){n.setState({modalVisible:!0,publishTaskLoading:!0,taskInfo:e}),v.default.selectPublishResult(e).then((function(e){n.setState({publishTask:e,publishTaskLoading:!1})})).catch((function(e){n.setState({publishTask:e,publishTaskLoading:!1})}))},n.developModel=function(){},n.openTask=function(e,t){11===e.taskScene?(0,b.navigateTo)(C.taskAUrl.editBTask(t,e.taskId,e.taskScene)):(0,b.navigateTo)(C.taskAUrl.editATask(t,e.taskId,e.taskScene))},n.fetchData=function(e){n.setState({loading:"intervalRefresh"!==e}),v.default.getAnnotationTaskList(n.searchCond).then((function(e){n.setState({annotationTaskList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({annotationTaskList:[],loading:!1}),d.default.error(e.message)}))},n.changeSearchCond=function(e,t){"refresh"!==e?(n.searchCond[e]=_.trim(t),n.fetchData()):n.fetchData(t)},n.delAnnotationTaskBases=function(e){i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.taskName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(t,a){v.default.deleteAnnotationTask(e.taskId,e.taskScene).then((function(){n.fetchData(),d.default.success("\u5220\u9664\u6210\u529f\uff01"),t()})).catch((function(e){a(),d.default.error(e.message)}))}))}})},n.openDataType=function(e){e&&"2"!==e?(0,b.navigateTo)(C.taskAUrl.createBTask("create",n.appId)):(0,b.navigateTo)(C.taskAUrl.createATask("create",n.appId))},n.callModalVisible=function(){n.setState({modalVisible:!1})},n.setModalloading=function(e){n.setState({confirmLoading:e})},n.state={modalVisible:!1,viewType:"",currentPage:1,loading:!1,annotationTaskList:[],confirmLoading:!1,publishTaskLoading:!1,publishTask:null,taskInfo:null},n.appId=_.get(a.location,"state.applicationId",null),n.columns=[{title:w,width:"60px",dataIndex:"id",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"taskName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6570\u636e\u96c6",dataIndex:"inputDsId_name",ellipsis:!0,render:function(e,t){return(0,r.default)(s.default,{placement:"topLeft",title:e&&""!==e?e:t.inputDsId},void 0,e&&""!==e?e:t.inputDsId)}},{title:"\u6570\u636e\u5468\u671f",dataIndex:"inputDsCycle",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u72b6\u6001",dataIndex:"status",ellipsis:!0,width:110,render:function(e,t){return t.message||"-1"!==e&&"-2"!==e?(0,r.default)(s.default,{placement:"topLeft",title:t.message},void 0,(0,r.default)("div",{},void 0,(0,r.default)(g.StateLabel,{source:"annotationTask",code:e}))):(0,r.default)(g.StateLabel,{source:"annotationTask",code:e})}},{title:"\u64cd\u4f5c",width:200,render:function(e,t){var a=t.status,o=[{handleName:"\u67e5\u770b",handleAction:function(){n.openTask(t,"view")}}];return-1!==_.indexOf([2,3,-2],a)&&o.push({handleName:2===t.taskType?"\u6807\u6ce8":"\u5f00\u53d1",handleAction:function(){2===t.taskType?n.annotationTask(t):n.developTask(t)}}),-1!==_.indexOf([2],a)&&11===t.taskScene&&o.push({handleName:"\u6ce8\u518c",handleAction:function(){n.register(t)}}),-1!==_.indexOf([3,-2],a)&&o.push({handleName:"\u53d1\u5e03",handleAction:function(){n.publishTask(t)}}),-1!==_.indexOf([-1],a)&&o.push({handleName:"\u4fee\u6539",handleAction:function(){n.openTask(t,"edit")}}),-1===_.indexOf([1,-2],a)&&o.push({handleName:"\u5220\u9664",handleAction:function(){n.delAnnotationTaskBases(t)}}),(0,r.default)(g.ListButtons,{buttons:o,maxShowNum:3})}}],n.searchCond={search:"",sortBy:"CREATE_AT.DESC",offset:null,limit:null},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.loading,s=t.publishTaskLoading,i=t.publishTask,d=t.annotationTaskList,l=t.modalVisible,u=t.taskInfo,c=t.confirmLoading;return(0,r.default)(x.PageWrapper,{},void 0,(0,r.default)(g.ModalView,{modalTitle:"\u53d1\u5e03\u6807\u6ce8\u7ed3\u679c",onCancelType:!1,width:800,callVisible:this.callModalVisible,modalVisible:l,okText:"\u4fdd \u5b58",confirmLoading:s||c,submitModalOk:i&&!i.success?null:function(){e.publishTaskConfig.submitModalOk()},comp:(0,r.default)(S.default,{publishTaskLoading:s,publishTask:i,setModalloading:this.setModalloading,taskInfo:u,callVisible:this.callModalVisible,onRef:function(t){e.publishTaskConfig=t}})}),(0,r.default)(x.PageHeader,{},void 0,(0,r.default)(T,{},void 0,(0,r.default)(o.default,{onClick:function(){e.openDataType("1")},type:"primary"},void 0,E,"\u65b0\u589e\u5f00\u53d1\u4efb\u52a1")),(0,r.default)(y.default,{sortField:this.searchCond.sortBy,onChange:this.changeSearchCond})),(0,r.default)(x.PageBody,{},void 0,(0,r.default)(x.TableWrapper,{},void 0,a&&D,!a&&(0,r.default)(n.default,{dataSource:d,rowKey:"id",bordered:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(M)},"./src/module/sysManage/taskManager/component/CreateATaskConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.CreateATaskConfigPage=void 0;var n=k(a("./node_modules/antd/es/button/index.js")),o=k(a("./node_modules/antd/es/checkbox/index.js")),s=k(a("./node_modules/antd/es/input-number/index.js")),r=k(a("./node_modules/antd/es/col/index.js")),i=k(a("./node_modules/antd/es/row/index.js")),d=k(a("./node_modules/babel-runtime/helpers/jsx.js")),l=k(a("./node_modules/antd/es/message/index.js")),u=k(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=k(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=k(a("./node_modules/babel-runtime/helpers/inherits.js")),f=k(a("./node_modules/antd/es/input/index.js")),m=k(a("./node_modules/antd/es/modal/index.js")),h=k(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/checkbox/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var g=k(a("./node_modules/react/index.js")),v=a("./node_modules/react-redux/es/index.js"),y=a("./node_modules/@ant-design/icons/es/index.js"),b=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var x=k(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),C=(k(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),j=a("./src/utils/history.js"),S=k(a("./src/components/common/CheckName.jsx")),I=a("./src/redux/selectors/checkName.js"),T=a("./src/module/sysManage/taskManager/modelEnums.js"),w=k(a("./src/redux/services/sysManager/taskManager.js")),E=k(a("./src/redux/services/dataSource.js")),D=k(a("./src/redux/services/sysManager/projectManage.js")),M=a("./src/routes/routeHelper.jsx");function k(e){return e&&e.__esModule?e:{default:e}}var P=b.Form.Item,L=h.default.Option,N=m.default.confirm,A=f.default.TextArea,R=t.CreateATaskConfigPage=x.default.div.withConfig({displayName:"CreateATaskConfig__CreateATaskConfigPage",componentId:"sc-1qwc4tg-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;.deploy-clsaaName{border:1px solid #ebedf0;height:60px;padding:10px 15px;border-radius:4px;margin-left:71px;}p{background-color:#ffffff;color:#000000d9;position:absolute;top:-8.5px;left:100px;z-index:999;}"]),F=t.ButtonDom=x.default.div.withConfig({displayName:"CreateATaskConfig__ButtonDom",componentId:"sc-1qwc4tg-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),O={width:"100%"},V=(0,d.default)(L,{value:""},void 0,"\u9009\u62e9\u5f00\u53d1\u573a\u666f"),U=(0,d.default)("p",{},void 0,"\u573a\u666f\u5c5e\u6027\u914d\u7f6e"),B=(0,d.default)(L,{value:""},void 0,"\u8bf7\u9009\u62e9\u62c6\u5206\u65b9\u5f0f"),G=(0,d.default)(L,{value:"by_num"},void 0,"\u56fe\u50cf\u6570\u91cf\u62c6\u5206"),z=(0,d.default)(C.LoadingIndicator,{position:"relative"}),q=(0,d.default)(L,{value:""},void 0,"\u9009\u62e9\u6570\u636e\u96c6"),K=(0,d.default)(L,{value:""},void 0,"\u8bf7\u9009\u62e9\u5468\u671f"),H=(0,d.default)(L,{value:""},void 0,"\u9009\u62e9\u6570\u636e\u96c6"),Y=(0,d.default)(L,{value:""},void 0,"\u8bf7\u9009\u62e9\u5468\u671f"),W=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.componentDidMount=function(){D.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsList:e.data})})).catch((function(e){l.default.error(e.message)}));var e=_.get(n.props.match,"params.taskId",null);n.viewType=_.get(n.props.match,"params.action",null),n.appId="create"===n.viewType?_.get(n.props.match,"params.appId",null):null,"create"!==n.viewType&&(n.setState({loading:!0}),w.default.getAnnotationInfo(e,21).then((function(e){n.taskInfo=e.data,n.setState({taskInfo:e.data?e.data:{},loading:!1,method:31===_.get(e,"data.taskScene")?_.get(e,"data.additionInfo.JOB_SPLIT_METHOD"):_.get(e,"data.additionInfo.TXT_IMPORT_METHOD"),taskScene:_.get(e,"data.taskScene"),num:_.get(e,"data.additionInfo.JOB_SPLIT_NUM",0)}),n.queryDataSource(-1!==(n.taskInfo.taskScene+"").indexOf("2")?"text":"img",n.appId),n.queryCycle(n.taskInfo.inputDsId)})).catch((function(e){n.setState({loading:!1}),l.default.error(e.message)})));var t=_.get(n.props.match,"params.inputDsId",null),a=_.get(n.props.match,"params.taskScene",null),o=_.get(n.props.match,"params.inputDsName",null),s=_.get(n.props.match,"params.inputDsCycle",null),r=_.get(n.props.match,"params.excludeDataType",null);t&&o&&s&&r&&(n.setState({source:1,inputDsName:o,inputDsCycle:s,excludeDataType:r}),n.taskInfo.inputDsId=t,n.taskInfo.inputDsCycle=s),"--"!==T.TASK_SCENE.getDescFromValue(a)&&(n.taskInfo.taskScene=a,n.setState({matchTaskScene:a,taskScene:a}))},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){0===n.state.source?null===t&&(e=!0):null!==t&&(t.taskName||t.taskScene)||(e=!0)})),e&&n.setState({modalVisible:!0})},n.queryDataSource=function(e,t){E.default.getDataSourceListSummary({status:10,dataType:[e],appId:t}).then((function(e){e&&n.setState({dataSourceList:e.data})})).catch((function(e){l.default.error(e.message)}))},n.queryCycle=function(e){e&&E.default.getDataCyclesList({dsId:e,status:10}).then((function(e){n.setState({cycleList:e.data?e.data:[]})})).catch((function(e){l.default.error(e.message)})),n.setState({cycleList:[]})},n.submitModalOk=function(){n.taskInfo.taskType=2,n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),31===n.taskInfo.taskScene?(n.taskInfo.additionInfo.JOB_SPLIT_METHOD=n.state.method,n.taskInfo.additionInfo.TXT_IMPORT_METHOD=null,"by_num"===n.state.method&&(n.taskInfo.additionInfo.JOB_SPLIT_NUM=n.state.num)):(n.taskInfo.additionInfo.JOB_SPLIT_METHOD=null,n.taskInfo.additionInfo.TXT_IMPORT_METHOD=n.state.method,n.taskInfo.additionInfo.JOB_SPLIT_NUM=null),w.default.editPostAnnotation(n.taskInfo,n.viewType).then((function(){l.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),n.setState({confirmLoading:!1,modalVisible:!1}),(0,j.navigateTo)(M.taskAUrl.taskManage())})).catch((function(e){n.setState({confirmLoading:!1}),l.default.error(e.message)}))},n.getValueBlur=function(e,t){n.taskInfo[t]=e,n.props.form.setFieldsValue({type:e}),"inputDsId"===t&&(e&&""!==e&&n.queryCycle(e),n.props.form.setFieldsValue({inputDsCycle:""})),"taskScene"===t&&(n.props.form.setFieldsValue({inputDsId:"",method:"",inputDsCycle:""}),n.queryDataSource(-1!==(e+"").indexOf(2)?"text":"img",n.appId),n.queryCycle(""),n.setState({taskScene:e,method:""})),"method"===t&&n.setState({method:e}),"method2"===t&&n.setState({method:e?"by_file":"by_line"}),"num"===t&&n.setState({num:e})},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.updateName=function(e){n.taskInfo.taskName=e?e.trim():e,n.props.form.setFieldsValue({taskName:e})},n.closeModal=function(){"view"===n.viewType?(0,j.navigateTo)(M.taskAUrl.taskManage()):N({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u5f00\u53d1\u4efb\u52a1\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,j.navigateTo)(M.taskAUrl.taskManage())}})},n.state={source:0,taskInfo:{taskScene:"",inputDsId:"",inputDsCycle:"",additionInfo:{}},loading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,applicationsList:[],inputDsName:"",inputDsCycle:"",dataSourceList:[],cycleList:[],excludeDataType:"",method:"",taskScene:"",matchTaskScene:"",num:0},n.checkNameRef=g.default.createRef(),n.viewType="",n.appId="",n.taskInfo={additionInfo:{}},n}return(0,p.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,l=a.taskInfo,u=a.source,c=a.inputDsCycle,p=a.inputDsName,f=a.dataSourceList,v=a.cycleList,_=a.excludeDataType,x=a.loading,j=a.method,I=a.taskScene,w=a.num,E=a.matchTaskScene;return(0,d.default)(R,{},void 0,(0,d.default)(m.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,d.default)("p",{},void 0,this.state.modalTxt)),(0,d.default)(C.ModelConfigPanel,{title:"\u573a\u666f\u914d\u7f6e",sign:!0,style:O},void 0,(0,d.default)(b.Form,{layout:"inline"},void 0,(0,d.default)(i.default,{},void 0,(0,d.default)(r.default,{span:12},void 0,(0,d.default)(P,{label:"\u5f00\u53d1\u573a\u666f"},void 0,"create"===this.viewType&&""!==E?(0,d.default)("span",{style:{marginLeft:10}},void 0,T.TASK_SCENE.getDescFromValue(E)):t("taskScene",{rules:[{required:"view"!==this.viewType,message:"\u8bf7\u9009\u62e9\u5f00\u53d1\u573a\u666f"}],initialValue:l.taskScene})((0,d.default)(h.default,{onChange:function(t){return e.getValueBlur(t,"taskScene")},style:{width:300},disabled:"view"===this.viewType,className:"sortType-cond"},void 0,V,T.TASK_SCENE.getValueAndDescList().map((function(e,t){if(11!==e.code)if("text"===_){if(-1!==e.code2.indexOf("TXT_"))return(0,d.default)(L,{value:e.code},t,e.desc)}else{if("img"!==_)return(0,d.default)(L,{value:e.code},t,e.desc);if(-1!==e.code2.indexOf("IMG_"))return(0,d.default)(L,{value:e.code},t,e.desc)}}))))))),I&&(0,d.default)(i.default,{style:{display:"flex",marginTop:15}},void 0,U,(0,d.default)(r.default,{span:15,className:"deploy-clsaaName"},void 0,31===I&&(0,d.default)("div",{},void 0,(0,d.default)(P,{label:"\u62c6\u5206\u65b9\u5f0f"},void 0,t("method",{rules:[{required:31===I,message:"\u8bf7\u9009\u62e9\u62c6\u5206\u65b9\u5f0f"}],initialValue:j})((0,d.default)(h.default,{onChange:function(t){return e.getValueBlur(t,"method")}},void 0,B,G))),"by_num"===j&&(0,d.default)(P,{label:"\u62c6\u5206\u6570\u91cf"},void 0,t("num",{rules:[{required:"by_num"===j,message:"\u8bf7\u9009\u62e9\u62c6\u5206\u6570\u91cf"}],initialValue:w})((0,d.default)(s.default,{onChange:function(t){return e.getValueBlur(t,"num")},placeholder:"\u8bf7\u586b\u5199\u62c6\u5206\u6570\u91cf"})))),31!==I&&""!==I&&(0,d.default)(P,{},void 0,t("method",{initialValue:"by_file"===j})((0,d.default)(o.default,{onChange:function(t){e.getValueBlur(t.target.checked,"method2")}},void 0,"txt\u6587\u4ef6\u6309\u6587\u4ef6\u5bfc\u5165\uff08\u9ed8\u8ba4\u6309\u6362\u884c\u5bfc\u5165\u6587\u672c\uff09"))),31!==I&&""!==I&&(0,d.default)(P,{},void 0,(0,d.default)(y.QuestionCircleOutlined,{style:{fontSize:16,color:"#a2b0c4",cursor:"pointer",marginLeft:"2%"},title:"excel\u548ccsv\u53c2\u8003\u683c\u5f0f\uff1atext,label 'Terrible customer service.','negative Really great transaction.','positive'\u3001'Great price','positive'"})))))),(0,d.default)(C.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:O},void 0,x&&(0,d.default)("div",{style:{height:"86.5%"}},void 0,z),!x&&(0,d.default)(b.Form,{layout:"inline"},void 0,(0,d.default)(i.default,{},void 0,(0,d.default)(r.default,{span:12},void 0,(0,d.default)(P,{label:"\u4efb\u52a1\u540d\u79f0"},void 0,t("taskName",{rules:[{required:"view"!==this.viewType,min:0,max:30,message:"\u8bf7\u8f93\u5165\u540d\u79f0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc730"},{validator:this.handleCheckNameValidate}],initialValue:l.taskName})(g.default.createElement(S.default,{ref:this.checkNameRef,source:"annotation",style:{width:"300px"},disabled:"view"===this.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:l.taskId||"",updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\taskManager\\component\\CreateATaskConfig.jsx",lineNumber:492}}))))),(0,d.default)(i.default,{style:{marginTop:15}},void 0,(0,d.default)(r.default,{style:{paddingLeft:0!==u?25:0},span:12},void 0,(0,d.default)(P,{label:"\u6570\u636e\u96c6"},void 0,t("inputDsId",{rules:[{required:"view"!==this.viewType&&0===u,message:"\u8bf7\u9009\u62e9\u6570\u636e\u96c6"}],initialValue:l.inputDsId})(0===u?(0,d.default)(h.default,{disabled:"view"===this.viewType,showSearch:!0,onChange:function(t){return e.getValueBlur(t,"inputDsId")},style:{width:300,marginLeft:11},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,q,f.map((function(e,t){return(0,d.default)(L,{value:e.dsId},t,e.name)}))):(0,d.default)("span",{style:{width:300}},void 0,p)))),(0,d.default)(r.default,{span:12},void 0,(0,d.default)(P,{label:"\u6570\u636e\u5468\u671f"},void 0,t("inputDsCycle",{rules:[{required:"view"!==this.viewType&&0===u,min:0,max:30,message:"\u8bf7\u9009\u62e9\u6570\u636e\u5468\u671f"}],initialValue:l.inputDsCycle})(0===u?(0,d.default)(h.default,{disabled:"view"===this.viewType,onChange:function(t){return e.getValueBlur(t,"inputDsCycle")},style:{width:300}},void 0,K,v.map((function(e){return(0,d.default)(L,{value:e.dsCycle},e.id,null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")}))):(0,d.default)("span",{},void 0,c))))),4===l.status&&"view"===this.viewType&&(0,d.default)(i.default,{style:{marginTop:15}},void 0,(0,d.default)(r.default,{span:12,style:{marginLeft:-23}},void 0,(0,d.default)(P,{label:"\u8f93\u51fa\u6570\u636e\u96c6"},void 0,t("inputDsId",{rules:[{required:"view"!==this.viewType,message:"\u8bf7\u9009\u62e9\u8f93\u51fa\u6570\u636e\u96c6"}],initialValue:l.outputDsId})(0===u?(0,d.default)(h.default,{disabled:"view"===this.viewType,showSearch:!0,onChange:function(t){return e.getValueBlur(t,"inputDsId")},style:{width:300,marginLeft:11},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,H,f.map((function(e,t){return(0,d.default)(L,{value:e.dsId},t,e.name)}))):(0,d.default)("span",{style:{width:300,marginLeft:11}},void 0,p)))),(0,d.default)(r.default,{span:12,style:{marginLeft:23}},void 0,(0,d.default)(P,{label:"\u8f93\u51fa\u5468\u671f"},void 0,t("inputDsCycle",{rules:[{required:"view"!==this.viewType,min:0,max:30,message:"\u8bf7\u9009\u62e9\u8f93\u51fa\u5468\u671f"}],initialValue:l.outputDsCycle})(0===u?(0,d.default)(h.default,{disabled:"view"===this.viewType,onChange:function(t){return e.getValueBlur(t,"inputDsCycle")},style:{width:300}},void 0,Y,v.map((function(e){return(0,d.default)(L,{value:e.dsCycle},e.id,null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")}))):(0,d.default)("span",{},void 0,c))))),(0,d.default)(i.default,{style:{marginTop:20}},void 0,(0,d.default)(r.default,{style:{marginLeft:10},span:22},void 0,(0,d.default)(P,{label:"\u6807\u6ce8\u63cf\u8ff0"},void 0,t("taskDesc ",{rules:[{min:0,max:150,message:"\u6807\u6ce8\u63cf\u8ff0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7150"}],initialValue:l.taskDesc})((0,d.default)(A,{disabled:"view"===this.viewType,autosize:{minRows:2,maxRows:2},style:{width:750,marginRight:10,min:0,max:200},onBlur:function(t){return e.getValueBlur(t.target.value,"taskDesc")},rows:8}))))))),(0,d.default)(F,{},void 0,(0,d.default)(n.default,{onClick:this.closeModal},void 0,"\u53d6\u6d88"),(0,d.default)(n.default,{onClick:this.saveKpi,style:{display:"view"===this.viewType?"none":"",marginLeft:"16px"},type:"primary"},void 0,"\u786e\u5b9a\u63d0\u4ea4")))},t}(g.default.PureComponent);t.default=(0,v.connect)((function(e){return{checkNameVerifyInfo:(0,I.selectVerifyInfo)(e)}}))(b.Form.create()(W))},"./src/module/sysManage/taskManager/component/CreateBTaskConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.CreateATaskConfigPage=void 0;var n=w(a("./node_modules/antd/es/button/index.js")),o=w(a("./node_modules/antd/es/col/index.js")),s=w(a("./node_modules/antd/es/row/index.js")),r=w(a("./node_modules/babel-runtime/helpers/jsx.js")),i=w(a("./node_modules/antd/es/message/index.js")),d=w(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=w(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=w(a("./node_modules/babel-runtime/helpers/inherits.js")),c=w(a("./node_modules/antd/es/input/index.js")),p=w(a("./node_modules/antd/es/modal/index.js")),f=w(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=w(a("./node_modules/react/index.js")),h=a("./node_modules/react-redux/es/index.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),y=(w(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),b=a("./src/utils/history.js"),x=w(a("./src/components/common/CheckName.jsx")),C=a("./src/redux/selectors/checkName.js"),j=w(a("./src/redux/services/sysManager/taskManager.js")),S=w(a("./src/redux/services/dataSource.js")),I=w(a("./src/redux/services/sysManager/projectManage.js")),T=a("./src/routes/routeHelper.jsx");function w(e){return e&&e.__esModule?e:{default:e}}var E=g.Form.Item,D=f.default.Option,M=p.default.confirm,k=c.default.TextArea,P=t.CreateATaskConfigPage=v.default.div.withConfig({displayName:"CreateBTaskConfig__CreateATaskConfigPage",componentId:"yqndz2-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;"]),L=t.ButtonDom=v.default.div.withConfig({displayName:"CreateBTaskConfig__ButtonDom",componentId:"yqndz2-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),N={width:"100%"},A=(0,r.default)(y.LoadingIndicator,{position:"relative"}),R=(0,r.default)(D,{value:""},void 0,"\u9009\u62e9\u6570\u636e\u96c6"),F=(0,r.default)(D,{value:""},void 0,"\u8bf7\u9009\u62e9\u5468\u671f"),O=(0,r.default)(D,{value:""},void 0,"\u9009\u62e9\u6570\u636e\u96c6"),V=(0,r.default)(D,{value:""},void 0,"\u8bf7\u9009\u62e9\u5468\u671f"),U=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.componentDidMount=function(){I.default.getApplicationsDropDown().then((function(e){e&&n.setState({applicationsList:e.data})})).catch((function(e){i.default.error(e.message)}));var e=_.get(n.props.match,"params.taskId",null);n.viewType=_.get(n.props.match,"params.action",null),"create"!==n.viewType&&(n.setState({loading:!0}),j.default.getAnnotationInfo(e,11).then((function(e){n.taskInfo=e.data,n.setState({taskInfo:e.data?e.data:{},loading:!1}),n.queryDataSource("db,file,ftp"),n.queryCycle(n.taskInfo.inputDsId)})).catch((function(e){n.setState({loading:!1}),i.default.error(e.message)}))),"create"===n.viewType&&n.queryDataSource("db,file,ftp");var t=_.get(n.props.match,"params.inputDsId",null),a=_.get(n.props.match,"params.inputDsName",null),o=_.get(n.props.match,"params.inputDsCycle",null);t&&a&&o&&(n.setState({source:1,inputDsName:a,inputDsCycle:o}),n.taskInfo.inputDsId=t,n.taskInfo.inputDsCycle=o)},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){0===n.state.source?null===t&&(e=!0):null===t?e=!0:t.taskName||(e=!0)})),e&&n.setState({modalVisible:!0})},n.queryDataSource=function(e){S.default.getDataSourceListSummary({status:10,dataType:[e]}).then((function(e){e&&n.setState({dataSourceList:e.data})})).catch((function(e){i.default.error(e.message)}))},n.queryCycle=function(e){e&&S.default.getDataCyclesList({dsId:e,status:10}).then((function(e){n.setState({cycleList:e.data?e.data:[]})})).catch((function(e){i.default.error(e.message)})),n.setState({cycleList:[]})},n.submitModalOk=function(){n.taskInfo.taskType=1,n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),j.default.editPostAnnotation(n.taskInfo,n.viewType).then((function(){i.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),n.setState({confirmLoading:!1,modalVisible:!1}),(0,b.navigateTo)(T.taskAUrl.taskManage())})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)}))},n.getValueBlur=function(e,t){n.taskInfo[t]=e,n.props.form.setFieldsValue({type:e}),"inputDsId"===t&&(e&&""!==e&&n.queryCycle(e),n.props.form.setFieldsValue({inputDsCycle:""}))},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.updateName=function(e){n.taskInfo.taskName=e?e.trim():e,n.props.form.setFieldsValue({taskName:e})},n.closeModal=function(){"view"===n.viewType?(0,b.navigateTo)(T.taskAUrl.taskManage()):M({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u5f00\u53d1\u4efb\u52a1\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,b.navigateTo)(T.taskAUrl.taskManage())}})},n.state={source:0,taskInfo:{taskScene:11,inputDsId:"",inputDsCycle:"",additionInfo:{}},loading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,applicationsList:[],inputDsName:"",inputDsCycle:"",dataSourceList:[],cycleList:[]},n.checkNameRef=m.default.createRef(),n.viewType="",n.taskInfo={taskScene:11,additionInfo:{}},n}return(0,u.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state,i=a.taskInfo,d=a.source,l=a.inputDsCycle,u=a.inputDsName,c=a.dataSourceList,h=a.cycleList,v=a.loading;return(0,r.default)(P,{},void 0,(0,r.default)(p.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,r.default)("p",{},void 0,this.state.modalTxt)),(0,r.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:N},void 0,v&&(0,r.default)("div",{style:{height:"86.5%"}},void 0,A),!v&&(0,r.default)(g.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:20},void 0,(0,r.default)(E,{label:"\u4efb\u52a1\u540d\u79f0"},void 0,t("taskName",{rules:[{required:"view"!==this.viewType,min:0,max:30,message:"\u8bf7\u8f93\u5165\u540d\u79f0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc730"},{validator:this.handleCheckNameValidate}],initialValue:i.taskName})(m.default.createElement(x.default,{ref:this.checkNameRef,source:"annotation",style:{width:"300px"},disabled:"view"===this.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:i.taskId||"",updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\taskManager\\component\\CreateBTaskConfig.jsx",lineNumber:292}}))))),(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(E,{label:"\u6570\u636e\u96c6"},void 0,t("inputDsId",{rules:[{required:"view"!==this.viewType&&0===d,message:"\u8bf7\u9009\u62e9\u6570\u636e\u96c6"}],initialValue:i.inputDsId})(0===d?(0,r.default)(f.default,{disabled:"view"===this.viewType,showSearch:!0,onChange:function(t){return e.getValueBlur(t,"inputDsId")},style:{width:300,marginLeft:11},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,R,c.map((function(e,t){return(0,r.default)(D,{value:e.dsId},t,e.name)}))):(0,r.default)("span",{style:{width:300,marginLeft:23}},void 0,u)))),(0,r.default)(o.default,{span:12},void 0,(0,r.default)(E,{label:"\u6570\u636e\u5468\u671f"},void 0,t("inputDsCycle",{rules:[{required:"view"!==this.viewType&&0===d,min:0,max:30,message:"\u8bf7\u9009\u62e9\u6570\u636e\u5468\u671f"}],initialValue:i.inputDsCycle})(0===d?(0,r.default)(f.default,{disabled:"view"===this.viewType,onChange:function(t){return e.getValueBlur(t,"inputDsCycle")},style:{width:300}},void 0,F,h.map((function(e){return(0,r.default)(D,{value:e.dsCycle},e.id,null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")}))):(0,r.default)("span",{},void 0,l))))),4===i.status&&"view"===this.viewType&&(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{span:12,style:{marginLeft:-23}},void 0,(0,r.default)(E,{label:"\u8f93\u51fa\u6570\u636e\u96c6"},void 0,t("inputDsId",{rules:[{required:"view"!==this.viewType,message:"\u8bf7\u9009\u62e9\u8f93\u51fa\u6570\u636e\u96c6"}],initialValue:i.outputDsId})(0===d?(0,r.default)(f.default,{disabled:"view"===this.viewType,showSearch:!0,onChange:function(t){return e.getValueBlur(t,"inputDsId")},style:{width:300,marginLeft:11},filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,O,c.map((function(e,t){return(0,r.default)(D,{value:e.dsId},t,e.name)}))):(0,r.default)("span",{style:{width:300,marginLeft:11}},void 0,u)))),(0,r.default)(o.default,{span:12,style:{marginLeft:23}},void 0,(0,r.default)(E,{label:"\u8f93\u51fa\u5468\u671f"},void 0,t("inputDsCycle",{rules:[{required:"view"!==this.viewType,min:0,max:30,message:"\u8bf7\u9009\u62e9\u8f93\u51fa\u5468\u671f"}],initialValue:i.outputDsCycle})(0===d?(0,r.default)(f.default,{disabled:"view"===this.viewType,onChange:function(t){return e.getValueBlur(t,"inputDsCycle")},style:{width:300}},void 0,V,h.map((function(e){return(0,r.default)(D,{value:e.dsCycle},e.id,null!==e.dsCycleDisplay?e.dsCycleDisplay:"null")}))):(0,r.default)("span",{},void 0,l))))),(0,r.default)(s.default,{style:{marginTop:20}},void 0,(0,r.default)(o.default,{style:{marginLeft:10},span:22},void 0,(0,r.default)(E,{label:"\u4efb\u52a1\u63cf\u8ff0"},void 0,t("taskDesc ",{rules:[{min:0,max:150,message:"\u6807\u6ce8\u63cf\u8ff0\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7150"}],initialValue:i.taskDesc})((0,r.default)(k,{disabled:"view"===this.viewType,autosize:{minRows:2,maxRows:2},style:{width:750,marginRight:10,min:0,max:200},onBlur:function(t){return e.getValueBlur(t.target.value,"taskDesc")},rows:8}))))))),(0,r.default)(L,{},void 0,(0,r.default)(n.default,{onClick:this.closeModal},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{onClick:this.saveKpi,style:{display:"view"===this.viewType?"none":"",marginLeft:"16px"},type:"primary"},void 0,"\u786e\u5b9a\u63d0\u4ea4")))},t}(m.default.PureComponent);t.default=(0,h.connect)((function(e){return{checkNameVerifyInfo:(0,C.selectVerifyInfo)(e)}}))(g.Form.create()(U))},"./src/module/sysManage/taskManager/component/PublishTaskConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateATaskConfigPage=void 0;var n=b(a("./node_modules/antd/es/input/index.js")),o=b(a("./node_modules/antd/es/col/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/antd/es/spin/index.js")),i=b(a("./node_modules/babel-runtime/helpers/jsx.js")),d=b(a("./node_modules/antd/es/message/index.js")),l=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=b(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/spin/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var p=b(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=(b(a("./node_modules/prop-types/index.js")),a("./src/utils/publicPath.js")),g=a("./src/utils/constants.js"),v=a("./src/utils/authPermit.js"),_=a("./src/components/index.js"),y=b(a("./src/redux/services/sysManager/taskManager.js"));function b(e){return e&&e.__esModule?e:{default:e}}var x={width:"100%"},C=t.CreateATaskConfigPage=m.default.div.withConfig({displayName:"PublishTaskConfig__CreateATaskConfigPage",componentId:"sc-13yzfdy-0"})(["width:100%;padding:16px;.descValue{opacity:0.65;font-family:PingFangSC-Regular;font-size:14px;color:#000000;line-height:22px;}.display__value{word-break:break-all;margin-left:20px;margin-right:20px;}"]),j=(0,i.default)("span",{},void 0,"\u7ed3\u679c\u6587\u4ef6\uff1a"),S=(0,i.default)("span",{},void 0,"\u7ed3\u679c\u6587\u4ef6\uff1a"),I=(0,i.default)(o.default,{span:20},void 0,(0,i.default)("span",{className:"descValue"},void 0,"\u6807\u6ce8\u7ed3\u679c\u5c06\u4e0e\u539f\u59cb\u6570\u636e\u4fdd\u5b58\u5728\u540c\u4e00\u4e2a\u76ee\u5f55\u4e2d\uff0c\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u96c6\u5468\u671f")),T=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.componentDidMount=function(){n.props.onRef(n)},n.getUserBlur=function(){n.setState({isModifyType:!1})},n.submitModalOk=function(){n.props.setModalloading(!0),y.default.savePublishResult({taskId:n.props.taskInfo.taskId}).then((function(){d.default.success("\u53d1\u5e03\u6807\u6ce8\u6210\u529f\uff01"),n.props.callVisible(),n.props.setModalloading(!1)})).catch((function(e){n.props.setModalloading(!1),d.default.error(e.message)}))},n.downFile=function(e){window.location.href=(0,h.urlFormat)(e+"?token="+encodeURI((0,v.getToken)()),g.ServicePath.SC_SERVICE)},n.fileNameRef=p.default.createRef(),n.state={isModifyType:!1},n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.isModifyType,a=this.props,d=a.publishTaskLoading,l=a.publishTask;return(0,i.default)(r.default,{spinning:d,tip:"\u6b63\u5728\u83b7\u53d6\u53d1\u5e03\u6587\u4ef6........"},void 0,(0,i.default)(C,{},void 0,(0,i.default)(_.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:x},void 0,l&&l.success?l.data.length>0?l.data.map((function(a,r){return(0,i.default)(s.default,{style:{lineHeight:"40px"}},r,t?(0,i.default)(o.default,{span:20},void 0,j,p.default.createElement(n.default,{value:a.fileName,ref:e.fileNameRef,style:{marginLeft:"20px",width:"200px"},onBlur:function(t){return e.getUserBlur(t.target.value)},__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\taskManager\\component\\PublishTaskConfig.jsx",lineNumber:95}})):(0,i.default)(o.default,{span:20},void 0,S,(0,i.default)("a",{href:"javascript:;",onClick:function(){e.downFile(a.url)},title:"\u70b9\u51fb\u4e0b\u8f7d\u6587\u4ef6",className:"display__value"},void 0,a.fileName?a.fileName:"--")))})):(0,i.default)("span",{style:{color:"red"}},void 0,"\u672a\u751f\u6210\u6587\u4ef6"):(0,i.default)("span",{style:{color:"red"}},void 0,l&&l.error),!d&&(0,i.default)(o.default,{style:{marginTop:20}},void 0,I))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(T)},"./src/module/sysManage/taskManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/antd/es/input/index.js")),d=f(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=f(a("./node_modules/react/index.js")),u=(f(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./src/components/index.js");function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.Option,h=i.default.Search,g=c.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"v2xxmn-0"})(["display:flex;align-items:center;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),v={width:"130px"},y=(0,n.default)(m,{value:"CREATE_AT.DESC"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),b=(0,n.default)(m,{value:"TASK_NAME.DESC"},void 0,"\u6309\u540d\u79f0\u6392\u5e8f"),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("search",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortBy"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(g,{className:"search-bar"},void 0,(0,n.default)(p.RefreshButton,{onRefresh:this.props.onChange}),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:v,placeholder:"\u9009\u62e9\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,y,b)),(0,n.default)("div",{className:"search-div"},void 0,(0,n.default)(h,{placeholder:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(x)},"./src/module/sysManage/taskManager/component/ViewATaskConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=void 0;var n=j(a("./node_modules/antd/es/button/index.js")),o=j(a("./node_modules/antd/es/input/index.js")),s=j(a("./node_modules/antd/es/col/index.js")),r=j(a("./node_modules/antd/es/row/index.js")),i=j(a("./node_modules/babel-runtime/helpers/jsx.js")),d=j(a("./node_modules/antd/es/message/index.js")),l=j(a("./node_modules/babel-runtime/helpers/extends.js")),u=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=j(a("./node_modules/babel-runtime/helpers/inherits.js")),f="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\taskManager\\component\\ViewATaskConfig.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var m=j(a("./node_modules/react/index.js")),h=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(j(a("./node_modules/prop-types/index.js")),a("./node_modules/@ant-design/compatible/es/index.js"));a("./node_modules/@ant-design/compatible/assets/index.css");var v=j(a("./src/redux/services/sysManager/taskManager.js")),y=a("./src/components/index.js"),b=a("./src/utils/history.js"),x=a("./src/routes/routeHelper.jsx"),C=a("./src/module/sysManage/taskManager/modelEnums.js");function j(e){return e&&e.__esModule?e:{default:e}}var S=g.Form.Item,I=h.default.div.withConfig({displayName:"ViewATaskConfig__DetailInfoWrapper",componentId:"sc-1rtntcp-0"})(["background:#fff;padding:20px;.edit__icon{margin-left:10px;&:hover{color:#008dff;}}.display__value{word-break:break-word;}.ant-col-8{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:40%;}"]),T={labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:8}}},w=t.ButtonDom=h.default.div.withConfig({displayName:"ViewATaskConfig__ButtonDom",componentId:"sc-1rtntcp-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),E=(0,i.default)(y.LoadingIndicator,{position:"relative"}),D=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.closeModal=function(){(0,b.navigateTo)(x.taskAUrl.taskManage())},n.handleChangeTypeStatus=function(){n.setState((function(e){return{isModifyName:!e.isModifyName}}))},n.handleOnChange=function(e){var t=n.state.taskInfo;t.taskName=e,n.setState({taskInfo:(0,l.default)({},t)})},n.handleSaveBasicInfo=function(e){if(""===e||null===e)d.default.info("\u8bf7\u586b\u5199\u5bf9\u5e94\u4fe1\u606f");else{var t=n.state.taskInfo;t.taskName=e,n.setState({taskInfo:(0,l.default)({},t),isModifyName:!1}),v.default.editPostAnnotation(t,"edit").then((function(){d.default.success("\u4fee\u6539\u6210\u529f\uff01")})).catch((function(e){d.default.error(e.message)}))}},n.taskId=_.get(a.match,"params.taskId",null),n.taskScene=_.get(a.match,"params.taskScene",null),n.state={taskInfo:{},loading:!0,isModifyName:!1},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){var e=this;v.default.getAnnotationInfo(this.taskId,this.taskScene?parseInt(this.taskScene):null).then((function(t){e.setState({taskInfo:t.data?t.data:{},loading:!1})})).catch((function(t){e.setState({loading:!1}),d.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.state,a=t.taskInfo,d=t.loading,u=t.isModifyName;return(0,i.default)(I,{},void 0,d&&E,!d&&(0,i.default)("div",{},void 0,(0,i.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f"},void 0,m.default.createElement(g.Form,(0,l.default)({},T,{__source:{fileName:f,lineNumber:114}}),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u4efb\u52a1\u540d\u79f0"},void 0,u?(0,i.default)(o.default,{width:100,onChange:function(t){return e.handleOnChange(t.target.value)},value:_.get(a,"taskName"),onBlur:function(t){return e.handleSaveBasicInfo(t.target.value)}}):(0,i.default)("span",{className:"display__value"},void 0,_.get(a,"taskName","--"))))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u5f00\u53d1\u4eba\u5458"},void 0,_.get(a,"createBy","--"))),31!==_.get(a,"taskScene")&&11!==_.get(a,"taskScene")&&(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u5bfc\u5165\u65b9\u5f0f"},void 0,"by_file"===_.get(a,"additionInfo.TXT_IMPORT_METHOD")?"\u6587\u4ef6\u5bfc\u5165":"\u6362\u884c\u5bfc\u5165"))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u5b8c\u6210\u65f6\u95f4"},void 0,_.get(a,"updateAt","--"))),(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u521b\u5efa\u65f6\u95f4"},void 0,_.get(a,"createAt","--")))))),(0,i.default)(y.ModelConfigPanel,{title:"\u4efb\u52a1\u8be6\u60c5"},void 0,m.default.createElement(g.Form,(0,l.default)({},T,{__source:{fileName:f,lineNumber:157}}),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u4efb\u52a1\u7c7b\u578b"},void 0,C.TASK_TYPE.getDescFromValue(_.get(a,"taskType","--")))),(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u5f00\u53d1\u573a\u666f"},void 0,C.TASK_SCENE.getDescFromValue(_.get(a,"taskScene","--"))))),31===_.get(a,"taskScene")&&(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u62c6\u5206\u65b9\u5f0f"},void 0,"by_dir"===_.get(a,"additionInfo.JOB_SPLIT_METHOD")?"\u76ee\u5f55\u62c6\u5206":"\u56fe\u50cf\u6570\u91cf\u62c6\u5206")),"by_num"===_.get(a,"additionInfo.JOB_SPLIT_METHOD")&&(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u62c6\u5206\u6570\u91cf"},void 0,_.get(a,"additionInfo.JOB_SPLIT_NUM","--")))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u8f93\u5165\u6570\u636e\u96c6"},void 0,_.get(a,"inputDsId_name")&&""!==_.get(a,"inputDsId_name")?_.get(a,"inputDsId_name"):_.get(a,"inputDsId"))),(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u8f93\u5165\u5468\u671f"},void 0,_.get(a,"inputDsCycle","--")))),(0,i.default)(r.default,{},void 0,(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u8f93\u51fa\u6570\u636e\u96c6"},void 0,_.get(a,"outputDsId_name")&&""!==_.get(a,"outputDsId_name")?_.get(a,"outputDsId_name"):_.get(a,"outputDsId"))),(0,i.default)(s.default,{span:12},void 0,(0,i.default)(S,{label:"\u8f93\u51fa\u5468\u671f"},void 0,_.get(a,"outputDsCycle","--"))))))),(0,i.default)(w,{},void 0,(0,i.default)(n.default,{onClick:this.closeModal},void 0,"\u8fd4 \u56de")))},t}(m.default.PureComponent);t.default=D},"./src/module/sysManage/taskManager/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.STATUS=t.TASK_SCENE=t.TASK_TYPE=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.TASK_TYPE=(0,s.default)({DB_DEV_TASK:[1,"\u5f00\u53d1\u4efb\u52a1"],DATA_MARK_TASK:[2,"\u6807\u6ce8\u4efb\u52a1"]}),i=t.TASK_SCENE=(0,s.default)({DB_DEV:[11,"\u7ed3\u6784\u5316\u6570\u636e"],TXT_CLASSIFY:[21,"\u6587\u672c\u5206\u7c7b"],TXT_NAMED_ENTITY:[22,"\u547d\u540d\u5b9e\u4f53"],TXT_SEMANTIC_ANALYZE:[23,"\u8bed\u4e49\u5206\u6790"],IMG_CLASSIFY:[31,"\u56fe\u50cf\u5206\u7c7b"]}),d=t.STATUS=(0,s.default)({PREPARE:[1,"\u521b\u5efa\u4e2d"],WAIT_DEV:[2,"\u53ef\u5f00\u53d1"],DEVELOPING:[3,"\u5f00\u53d1\u4e2d"],FINSISHED:[4,"\u5df2\u5b8c\u6210"],ERROR:[-1,"\u53d1\u751f\u9519\u8bef"],PUBLISH_ERROR:[-2,"\u53d1\u5e03\u5931\u8d25"]});t.default={STATUS:d,TASK_SCENE:i,TASK_TYPE:r}},"./src/module/sysManage/tenantManager/editPage/TenantInfoPage.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.ProjectInfoPageDom=void 0;var n=C(a("./node_modules/antd/es/button/index.js")),o=C(a("./node_modules/antd/es/message/index.js")),s=C(a("./node_modules/babel-runtime/helpers/jsx.js")),r=C(a("./node_modules/antd/es/notification/index.js")),i=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=C(a("./node_modules/babel-runtime/helpers/inherits.js")),u=C(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=C(a("./node_modules/react/index.js")),p=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=C(a("./node_modules/lodash/lodash.js")),m=a("./node_modules/@ant-design/icons/es/index.js"),h=(C(a("./node_modules/prop-types/index.js")),C(a("./src/redux/services/sysManager/tenantManager.js"))),g=a("./node_modules/react-redux/es/index.js"),v=a("./src/components/index.js"),_=a("./src/utils/history.js"),y=a("./src/routes/routeHelper.jsx"),b=C(a("./src/module/sysManage/tenantManager/editPage/component/TenantInfo.jsx")),x=C(a("./src/module/sysManage/tenantManager/editPage/component/ResourceQuota.jsx"));function C(e){return e&&e.__esModule?e:{default:e}}var j=u.default.confirm,S=t.ProjectInfoPageDom=p.default.div.withConfig({displayName:"TenantInfoPage__ProjectInfoPageDom",componentId:"sc-11qzykv-0"})(["display:flex;width:100%;padding:16px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;.ant-col-2{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:6%;}"]),I=t.ConfigButtonDom=p.default.div.withConfig({displayName:"TenantInfoPage__ConfigButtonDom",componentId:"sc-11qzykv-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),T=t.ErrorUl=p.default.ul.withConfig({displayName:"TenantInfoPage__ErrorUl",componentId:"sc-11qzykv-2"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),w={width:"100%"},E=(0,s.default)(v.LoadingIndicator,{position:"relative"}),D=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.cancel=function(){},n.savaOrSubmit=function(){var e={},t={};if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(f.default.isFunction(o)){var s=o.call();s.validate?e[a]=s.moduleData:t[a]=s.errorMsg}})),"{}"===JSON.stringify(t)){for(var a in e)n.moduleData=f.default.assign(n.moduleData,e[a]);n.setState({modalVisible:!0})}else{var o=n.errorDom(t);r.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:o,icon:(0,s.default)(m.FrownOutlined,{style:{color:"#f5222d"}})})}},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),h.default.createOrUpdateTenant(n.moduleData,n.moduleData.tenantId).then((function(e){e&&(o.default.success("\u4fdd\u5b58\u6210\u529f,\u754c\u9762\u5373\u5c06\u8df3\u8f6c\uff01"),setTimeout((function(){return(0,_.navigateTo)(y.sysManageUrl.tenants())}),2e3))})).catch((function(){n.setState({confirmLoading:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"})}))},n.errorDom=function(e){return(0,s.default)(T,{},void 0,Object.keys(e).map((function(t){return(0,s.default)("li",{},t,e[t])})))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){j({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u9879\u76ee\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,_.navigateTo)(y.operationUrl.projectManage())}})},n.viewType=f.default.get(a.match,"params.action",null),n.tenantId=f.default.get(a.match,"params.tenantId",null),n.state={tenantInfo:{},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1},n.moduleData={},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,o=t.tenantInfo,r=t.modalTxt,i=t.confirmLoading,d=t.loading;return(0,s.default)(S,{},void 0,(0,s.default)(u.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:i,onCancel:this.submitModalCancel},void 0,(0,s.default)("p",{},void 0,r)),"create"!==this.viewType&&d&&E,("create"===this.viewType||"create"!==this.viewType&&!d)&&(0,s.default)("div",{},void 0,(0,s.default)(v.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",style:w},void 0,(0,s.default)(b.default,{viewType:this.viewType,tenantId:this.tenantId,tenantInfo:o,setValidateFunc:this.setValidateFunc})),(0,s.default)(v.ModelConfigPanel,{title:"\u8d44\u6e90\u914d\u989d"},void 0,(0,s.default)(x.default,{viewType:this.viewType,tenantSetting:o.tenantSetting,setValidateFunc:this.setValidateFunc}))),(0,s.default)(I,{},void 0,(0,s.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,s.default)(n.default,{onClick:function(){return e.savaOrSubmit(e.viewType)},type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(c.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(D)},"./src/module/sysManage/tenantManager/editPage/TenantInfoPageTab.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ErrorUl=t.ConfigButtonDom=t.TenantInfoPageDom=void 0;var n=I(a("./node_modules/antd/es/button/index.js")),o=I(a("./node_modules/babel-runtime/helpers/jsx.js")),s=I(a("./node_modules/antd/es/notification/index.js")),r=I(a("./node_modules/antd/es/message/index.js")),i=I(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=I(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=I(a("./node_modules/babel-runtime/helpers/inherits.js")),u=I(a("./node_modules/antd/es/tabs/index.js")),c=I(a("./node_modules/antd/es/modal/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/notification/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/tabs/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=I(a("./node_modules/react/index.js")),f=I(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=I(a("./node_modules/lodash/lodash.js")),h=a("./node_modules/@ant-design/icons/es/index.js"),g=(I(a("./node_modules/prop-types/index.js")),I(a("./src/redux/services/sysManager/tenantManager.js"))),v=a("./node_modules/react-redux/es/index.js"),_=a("./src/components/index.js"),y=a("./src/utils/history.js"),b=a("./src/routes/routeHelper.jsx"),x=I(a("./src/module/sysManage/tenantManager/editPage/component/TenantInfo.jsx")),C=I(a("./src/module/sysManage/tenantManager/editPage/component/ResourceQuota.jsx")),j=I(a("./src/module/sysManage/tenantManager/editPage/component/UserRelevance.jsx")),S=I(a("./src/module/sysManage/tenantManager/editPage/component/ProjectList.jsx"));function I(e){return e&&e.__esModule?e:{default:e}}var T=c.default.confirm,w=u.default.TabPane,E=t.TenantInfoPageDom=f.default.div.withConfig({displayName:"TenantInfoPageTab__TenantInfoPageDom",componentId:"euprbx-0"})(["display:flex;width:100%;padding:20px 20px 20px 40px;flex-direction:column;background-color:#ffff;border:0px;margin-bottom:20px;.ant-col-2{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:6%;}"]),D=t.ConfigButtonDom=f.default.div.withConfig({displayName:"TenantInfoPageTab__ConfigButtonDom",componentId:"euprbx-1"})(["text-align:right;line-height:70px;"]),M=t.ErrorUl=f.default.ul.withConfig({displayName:"TenantInfoPageTab__ErrorUl",componentId:"euprbx-2"})(["float:left;width:95%;list-style-type:none;margin-left:-40px;h1{font-size:14px;margin-top:7px;}li{span{font-size:11px;color:#395377;letter-spacing:1px;}}"]),k={width:"100%"},P=(0,o.default)(_.LoadingIndicator,{position:"relative"}),L=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.componentDidMount=function(){"create"!==n.viewType&&(n.setState({loading:!0}),g.default.getTenantInfo(n.tenantId).then((function(e){for(var t=m.default.get(e,"data",{}),a=m.default.get(t,"tenantSetting",[])||[],o=0;t&&o<a.length;o++)a[o].resQuotaConf||(a[o].resQuotaConf={memory:0,cpu:0,gpu:[{gpuModelName:"",gpuNumber:0,gpuModelId:""}]});e&&(n.setState({tenantInfo:t,loading:!1}),n.moduleData=m.default.get(e,"data",{}))})).catch((function(e){n.setState({tenantInfo:{},loading:!1}),r.default.error(e.message)})))},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.cancel=function(){},n.savaOrSubmit=function(){var e={},t={};if(Object.keys(n.validateFuncs).map((function(a){var o=n.validateFuncs[a];if(m.default.isFunction(o)){var s=o.call();s.validate?e[a]=s.moduleData:t[a]=s.errorMsg}})),"{}"!==JSON.stringify(t)){var a=n.errorDom(t);s.default.open({message:"\u63d0\u4ea4\u4fe1\u606f\u6709\u8bef\uff1a",placement:"bottomRight",description:a,icon:(0,o.default)(h.FrownOutlined,{style:{color:"#f5222d"}})})}else{for(var r in e)n.moduleData=m.default.assign(n.moduleData,e[r]);n.setState({modalVisible:!0})}},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.viewType==="create"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.moduleData.tenantId=n.tenantId,g.default.createOrUpdateTenant(n.moduleData,n.moduleData.tenantId).then((function(e){m.default.get(e,"data.success",!1)?(r.default.success("\u4fee\u6539\u6210\u529f\uff01"),n.setState({confirmLoading:!1,modalVisible:!1})):(r.default.error(m.default.get(e,"data.applyResultMessage")),n.setState({confirmLoading:!1,modalVisible:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}))})).catch((function(e){n.setState({confirmLoading:!1,modalTxt:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),r.default.error(e.message)}))},n.errorDom=function(e){return(0,o.default)(M,{},void 0,Object.keys(e).map((function(t){return(0,o.default)("li",{},t,e[t])})))},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.cancel=function(){T({title:"\u63d0\u793a\u4fe1\u606f\uff01",content:"\u786e\u8ba4\u653e\u5f03\u6b64\u6b21\u64cd\u4f5c\uff0c\u8fd4\u56de\u79df\u6237\u5217\u8868\u4e48?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){(0,y.navigateTo)(b.sysManageUrl.tenants())}})},n.onChange=function(e){n.setState({tabKey:e})},n.viewType=m.default.get(a.match,"params.action",null),n.tenantId=m.default.get(a.match,"params.tenantId",null),n.state={tabKey:m.default.get(a.match,"params.tab","info"),tenantInfo:{},modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",modalVisible:!1,confirmLoading:!1,loading:!1},n.moduleData={},n.validateFuncs={},n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modalVisible,s=t.tenantInfo,r=t.modalTxt,i=t.confirmLoading,d=t.loading;return(0,o.default)("div",{style:{width:"100%"}},void 0,(0,o.default)(E,{},void 0,(0,o.default)(c.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:a,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:i,onCancel:this.submitModalCancel},void 0,(0,o.default)("p",{},void 0,r)),d&&P,"{}"!==JSON.stringify(s)&&!d&&(0,o.default)(_.ModelConfigPanel,{title:s.tenantName,style:k},void 0,(0,o.default)(u.default,{activeKey:this.state.tabKey,onChange:this.onChange},void 0,(0,o.default)(w,{tab:"\u57fa\u7840\u4fe1\u606f"},"info",(0,o.default)(x.default,{viewType:this.viewType,tenantInfo:s,setValidateFunc:this.setValidateFunc,tenantId:this.tenantId})),(0,o.default)(w,{tab:"\u8d44\u6e90\u914d\u7f6e\u60c5\u51b5"},"resource",(0,o.default)(C.default,{viewType:this.viewType,tenantSetting:s.tenantSetting,setValidateFunc:this.setValidateFunc})),(0,o.default)(w,{tab:"\u9879\u76ee\u4fe1\u606f"},"project","project"===this.state.tabKey&&(0,o.default)(S.default,{viewType:this.viewType,tenantId:m.default.get(s,"tenantId")})),(0,o.default)(w,{tab:"\u6210\u5458\u4fe1\u606f"},"user",(0,o.default)(j.default,{viewType:this.viewType,tenantId:m.default.get(s,"tenantId")})))),"view"!==this.viewType&&"docs"!==this.state.tabKey&&"user"!==this.state.tabKey&&(0,o.default)(D,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.cancel()},style:{borderRadius:4,width:110,marginRight:16}},void 0,"\u53d6 \u6d88"),(0,o.default)(n.default,{onClick:function(){return e.savaOrSubmit()},type:"primary",loading:this.state.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58"))))},t}(p.default.PureComponent);t.default=(0,v.connect)((function(){return{}}))(L)},"./src/module/sysManage/tenantManager/editPage/component/ProjectList.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/table/index.js")),o=g(a("./node_modules/antd/es/tooltip/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/antd/es/message/index.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var u=g(a("./node_modules/react/index.js")),c=(g(a("./node_modules/prop-types/index.js")),g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),p=a("./src/components/index.js"),f=g(a("./src/redux/services/sysManager/tenantManager.js")),m=a("./src/styles/GlobalStyle.js"),h=g(a("./src/module/sysManage/tenantManager/editPage/component/SearchBar.jsx"));function g(e){return e&&e.__esModule?e:{default:e}}var v=(0,c.default)(m.PageWrapper).withConfig({displayName:"ProjectList__PPageWrapper",componentId:"u0kstr-0"})([".y-div{width:19px;height:18px;border-radius:50%;background-color:#e3e3e3;text-align:center;margin-top:2px;}"]),y=(0,s.default)("span",{},void 0,"\u5e8f\u53f7"),b=(0,s.default)(p.LoadingIndicator,{position:"relative"}),x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({loading:!0}),f.default.getTenantProjects(n.searchCond).then((function(e){n.setState({projectList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({projectList:[],loading:!1}),r.default.error(e.message)}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData()},n.state={loading:!1,projectList:[]},n.columns=[{title:y,width:"7%",render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8d1f\u8d23\u4eba",dataIndex:"projectManagers",width:100,ellipsis:!0,render:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a].userName+",";return""!==t&&(t=t.substring(0,t.length-1)),(0,s.default)(o.default,{placement:"topLeft",title:t||"--"},void 0,t||"--")}},{title:"\u9879\u76ee\u63cf\u8ff0",dataIndex:"projectDesc",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createAt",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}}],n.searchCond={sortType:"CREATE_AT.DESC",tenantId:a.tenantId},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this.state,t=e.projectList,a=e.loading;return(0,s.default)(v,{},void 0,(0,s.default)(m.PageHeader,{className:"right"},void 0,(0,s.default)("div",{style:{width:"92%",display:"flex"}},void 0,(0,s.default)("span",{style:{fontSize:14,color:"#6c6363",fontWeight:800,marginRight:15}},void 0,"\u9879\u76ee"),(0,s.default)("div",{className:"y-div"},void 0,t?t.length:0)),(0,s.default)(h.default,{sortField:this.searchCond.sortType,onChange:this.changeSearchCond})),(0,s.default)(m.PageBody,{},void 0,(0,s.default)(m.TableWrapper,{},void 0,a&&(0,s.default)("div",{style:{marginTop:50}},void 0,b),!a&&(0,s.default)(n.default,{dataSource:t,rowKey:"projectId",bordered:!0,pagination:!0,columns:this.columns}))))},t}(u.default.PureComponent);t.default=x},"./src/module/sysManage/tenantManager/editPage/component/ResourceQuota.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ConfigButtonDom=t.ResourceQuotaDom=void 0;var n=h(a("./node_modules/antd/es/button/index.js")),o=h(a("./node_modules/babel-runtime/helpers/jsx.js")),s=h(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=h(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=h(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js");var d=h(a("./node_modules/react/index.js")),l=(h(a("./node_modules/prop-types/index.js")),h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),u=a("./node_modules/react-redux/es/index.js"),c=h(a("./src/redux/services/sysManager/tenantManager.js")),p=a("./src/module/sysManage/tenantManager/util/dataUtil.js"),f=h(a("./src/module/sysManage/tenantManager/editPage/component/ResourceQuotaConfig.jsx")),m=a("./src/utils/authPermit.js");function h(e){return e&&e.__esModule?e:{default:e}}var g=t.ResourceQuotaDom=l.default.div.withConfig({displayName:"ResourceQuota__ResourceQuotaDom",componentId:"efbbbb-0"})([""]),v=t.ConfigButtonDom=l.default.div.withConfig({displayName:"ResourceQuota__ConfigButtonDom",componentId:"efbbbb-1"})(["text-align:right;line-height:70px;padding-right:50px;"]),y=[{profile:"DEV",resQuotaConf:{cpu:0,memory:0,gpu:[]}},{profile:"TEST",resQuotaConf:{cpu:0,memory:0,gpu:[]}},{profile:"PRODUCT",resQuotaConf:{cpu:0,memory:0,gpu:[]}}],b=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));n.updateSetProjectSetting=function(e){for(var t=0;e&&t<e.length;t++)e[t].resQuotaConf&&""!==e[t].resQuotaConf.cpu&&null!==e[t].resQuotaConf.cpu?e[t].resQuotaConf.gpu&&0===e[t].resQuotaConf.gpu.length&&e[t].resQuotaConf.gpu.push({gpuNumber:0,gpuModelId:"",gpuModelName:""}):e[t].applyResQuotaConf&&e[t].applyResQuotaConf.gpu&&0===e[t].applyResQuotaConf.gpu.length&&e[t].applyResQuotaConf.gpu.push({gpuNumber:0,gpuModelId:"",gpuModelName:""});return e},n.setFileValidateFunc=function(e,t){n.fileFuncs[e]=t},n.componentDidMount=function(){c.default.getSystemQuota(n.tenantId).then((function(e){e&&n.setState({availableQuota:e.data})}))},n.validateFun=function(){var e=!0,t=[];if(Object.keys(n.fileFuncs).map((function(a){var o=n.fileFuncs[a];if(_.isFunction(o)){var s=o.call();e&&(t.push(s.moduleData),e=s.validate)}})),!e)return{validate:e,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u8d44\u6e90\u914d\u989d\uff01",error:"\u8bf7\u6b63\u786e\u586b\u5199\u8d44\u6e90\u914d\u989d\uff01"};for(var a=!1,o=0;o<t.length;o++){for(var s=0;s<t[o].resQuotaConf.gpu.length;s++)if(0!==t[o].resQuotaConf.gpu[s].gpuNumber&&""===t[o].resQuotaConf.gpu[s].gpuModelId){a=!0;break}if(a)break}if(a)return{validate:e,error:"\u8bf7\u6b63\u786e\u586b\u5199\u8d44\u6e90\u914d\u989d\uff01"};if(!t||null===t||""===t||0===t.length)return{validate:e,error:"\u8bf7\u6b63\u786e\u586b\u5199\u8d44\u6e90\u914d\u989d\uff01\u8054\u7cfb\u7ba1\u7406\u5458"};for(var r=0;t&&r<t.length;r++){for(var i=[],d=0;t[r].resQuotaConf&&d<t[r].resQuotaConf.gpu.length;d++)0!==t[r].resQuotaConf.gpu[d].gpuNumber&&i.push(t[r].resQuotaConf.gpu[d]);t[r].resQuotaConf.gpu=[].concat(i)}if(!n.props.onClickSave)return{validate:e,moduleData:{tenantSetting:t}};n.props.onClickSave({validate:e,moduleData:{tenantSetting:t}})},n.tenantId=_.get((0,m.getUser)(),"tenantId");var o=n.props.setValidateFunc;_.isFunction(o)&&o("tenantSetting",n.validateFun);var i=_.get(a,"tenantSetting");return i=!Array.isArray(i)||_.isEmpty(i)?y:i,n.state={availableQuota:[],modelData:"create"===a.viewType?y:n.updateSetProjectSetting(i)},n.fileFuncs={},n}return(0,i.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.modelData,s=t.availableQuota;return(0,o.default)(g,{},void 0,a.map((function(t,a){return(0,o.default)(f.default,{viewType:e.props.viewType,index:a,data:t,setFileValidateFunc:e.setFileValidateFunc,profileName:(0,p.getResQuotaType)(t.profile),availableQuota:(0,p.getAvaEnvResQuota)(s,t.profile)},a)})),this.props.onClickSave&&(0,o.default)(v,{},void 0,(0,o.default)(n.default,{onClick:function(){return e.validateFun()},type:"primary",loading:this.props.confirmLoading,style:{borderRadius:4,width:110}},void 0,"\u4fdd \u5b58")))},t}(d.default.PureComponent);t.default=(0,u.connect)((function(){return{}}))(b)},"./src/module/sysManage/tenantManager/editPage/component/ResourceQuotaConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ResourceQuotaConfigDom=void 0;var n,o,s=C(a("./node_modules/antd/es/button/index.js")),r=C(a("./node_modules/antd/es/input-number/index.js")),i=C(a("./node_modules/antd/es/col/index.js")),d=C(a("./node_modules/antd/es/row/index.js")),l=C(a("./node_modules/babel-runtime/helpers/jsx.js")),u=C(a("./node_modules/babel-runtime/helpers/extends.js")),c=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),p=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),f=C(a("./node_modules/babel-runtime/helpers/inherits.js")),m=C(a("./node_modules/antd/es/select/index.js")),h=C(a("./node_modules/antd/es/radio/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input-number/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var g=C(a("./node_modules/react/index.js")),v=(C(a("./node_modules/prop-types/index.js")),C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),_=a("./node_modules/@ant-design/icons/es/index.js"),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=a("./node_modules/react-redux/es/index.js"),x=C(a("./node_modules/lodash/lodash.js"));function C(e){return e&&e.__esModule?e:{default:e}}var j=h.default.Group,S=m.default.Option,I=t.ResourceQuotaConfigDom=v.default.div.withConfig({displayName:"ResourceQuotaConfig__ResourceQuotaConfigDom",componentId:"b70sio-0"})([".ant-radio-group{line-height:45px;}.ant-radio-wrapper{width:290px;}.ant-row{display:flex;margin-bottom:10px;}.ant-form-data-label{display:inline-block;overflow:hidden;line-height:39.9999px;white-space:nowrap;text-align:right;vertical-align:middle;width:105px;white-space:nowrap;text-align:right;flex-shrink:0;}.ant-col-6{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:300px;height:50px;}"]),T=y.Form.Item,w={width:120},E=(0,l.default)(S,{value:""},void 0,"\u8bf7\u9009\u62e9"),D=(0,l.default)(i.default,{span:6}),M=(0,l.default)(_.PlusOutlined,{}),k=(0,l.default)(_.MinusOutlined,{}),P=(n=function(e){function t(a){(0,c.default)(this,t);var n=(0,p.default)(this,e.call(this,a));o.call(n);var s=n.props,r=s.setFileValidateFunc,i=s.index,d=s.data;x.default.isFunction(r)&&r("setting"+i,n.validateFun);var l=x.default.get(d,"resQuotaConf.gpu",[])||[];return n.state={radioValue:"resQuotaConf",gpuList:l.map((function(e){return(0,u.default)({},e,{key:x.default.uniqueId()})}))},n.modelData=d,n.usedQuota=JSON.parse(JSON.stringify(d)),n}return(0,f.default)(t,e),t.prototype.render=function(){var e=this,t=this.state,a=t.radioValue,n=t.gpuList,o=t.selectedGpuModelId,u=this.props.form.getFieldDecorator,c=this.props,p=c.availableQuota,f=c.profileName;return(0,l.default)(I,{},void 0,(0,l.default)(y.Form,{layout:"horizontal"},void 0,(0,l.default)(j,{value:a,onChange:function(t){return e.getValBlur(t.target.value,null)}},void 0,(0,l.default)(h.default,{value:"resQuotaConf"},void 0,f,"\u96c6\u7fa4\u914d\u989d")),this.quotaResourceDom(p),(0,l.default)(d.default,{},void 0,(0,l.default)(i.default,{span:6},void 0,(0,l.default)(T,{style:{marginLeft:10},label:"CPU\uff08core\uff09"},void 0,u("cpu",{rules:[{required:!0,message:"CPU\u4e0d\u80fd\u4e3a\u7a7a"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"CPU","cpu")}}],initialValue:this.modelData[a]?this.modelData[a].cpu:""})((0,l.default)(r.default,{style:w,min:0,onChange:function(t){e.getValBlur(t,"cpu")}})))),(0,l.default)(i.default,{span:6},void 0,(0,l.default)(T,{style:{marginLeft:10},label:"\u5185\u5b58\uff08GB\uff09"},void 0,u("memory",{rules:[{required:!0,message:"\u5185\u5b58\u4e0d\u80fd\u4e3a\u7a7a"},{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"\u5185\u5b58","memory")}}],initialValue:this.modelData[a]?this.modelData[a].memory:""})((0,l.default)(r.default,{style:w,min:0,onChange:function(t){e.getValBlur(t,"memory")}}))))),(!n||0===n.length)&&(0,l.default)(d.default,{style:{height:50}},void 0,(0,l.default)(s.default,{type:"primary",onClick:function(){return e.saveGpuVal()},style:{marginLeft:16}},void 0,"\u6dfb \u52a0")),Array.isArray(n)&&n.map((function(t,a){return(0,l.default)(d.default,{},t.key,(0,l.default)(i.default,{span:6},void 0,(0,l.default)(T,{style:{marginLeft:43},label:"GPU\u6570\u91cf"},void 0,u("gpuNumber-"+t.key,{rules:[{validator:function(t,a,n){return e.handleMinValidator(t,a,n,"GPU","gpuNumber")}}],initialValue:t.gpuNumber})((0,l.default)(r.default,{style:{width:120},min:0,onChange:function(t){e.getGpuValBlur(t,"gpuNumber",a)}})))),""!==t.gpuNumber&&0!==t.gpuNumber?(0,l.default)(i.default,{span:6},void 0,(0,l.default)(T,{style:{marginLeft:26},label:"GPU\u578b\u53f7"},void 0,u("gpuModelId-"+t.key,{rules:[{required:!0,message:"GPU\u578b\u53f7\u4e0d\u80fd\u4e3a\u7a7a"}],initialValue:t.gpuModelId})((0,l.default)(m.default,{placeholder:"\u8bf7\u9009\u62e9\u578b\u53f7",onChange:function(t){e.getGpuValBlur(t,"gpuModelId",a)},style:{width:120},showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},void 0,E,e.getAvaGpuTypes(t).map((function(t,a){return(0,l.default)(S,{disabled:-1!==x.default.indexOf(o,e.props.data.profile+t.gpuModelId),value:t.gpuModelId},a,t.gpuModelId)})))))):D,(0,l.default)(T,{help:""},void 0,(0,l.default)(s.default,{onClick:e.saveGpuVal,icon:M}),(0,l.default)(s.default,{style:{marginLeft:10},onClick:function(){e.deleteGpuVal(a)},icon:k})))}))))},t}(g.default.PureComponent),o=function(){var e=this;this.validateFun=function(){var t=!1;return e.props.form.validateFieldsAndScroll((function(e){null===e&&(t=!0)})),t?(e.modelData[e.state.radioValue].gpu=e.state.gpuList.map((function(e){return x.default.omit(e,["key"])})),{validate:!0,moduleData:e.modelData}):{validate:!1,moduleData:e.modelData}},this.getValBlur=function(t,a){null===a?e.setState({radioValue:t}):e.modelData[e.state.radioValue][a]=""===t||null===t?0:t},this.setAvailableRes=function(t){var a=e.usedQuota[e.state.radioValue],n=Number(x.default.get(t,"cpu",0)||0),o=Number(x.default.get(a,"cpu",0)||0),s=Number(x.default.get(t,"memory",0)||0),r=Number(x.default.get(a,"memory",0)||0),i=x.default.get(t,"gpu",[])||[],d={gpuModelId:x.default.get(a,"gpu[0].gpuModelId",""),gpuNumber:Number(x.default.get(a,"gpu[0].gpuNumber",0)||0),gpuModelName:x.default.get(a,"gpu[0].gpuModelId","")};if(d.gpuModelId){var l=x.default.findIndex(t.gpu,{gpuModelId:d.gpuModelId});l>-1?i[l]=(0,u.default)({},t.gpu[l],{gpuNumber:parseFloat(t.gpu[l].gpuNumber)+1*parseFloat(d.gpuNumber)}):i.push({gpuModelId:d.gpuModelId,gpuNumber:d.gpuNumber,gpuModelName:d.gpuModelName})}return{cpu:n+1*o,memory:s+1*r,gpu:i}},this.handleMinValidator=function(t,a,n,o,s){var r=x.default.cloneDeep(e.props.availableQuota);"edit"===e.props.viewType&&(r=e.setAvailableRes(r));var i=r,d=i.cpu,l=i.memory,u=i.gpu,c=u?u.reduce((function(e,t){return e<t.gpuNumber?t.gpuNumber:e}),0):0,p=parseFloat(d),f=parseFloat(l),m=Math.floor(c);a<0&&"gpuNumber"!==s&&n(o+"\u4e0d\u5f97\u5c0f\u4e8e\u96f6"),"gpuNumber"!==s||/^[0-9]\d*$/.test(a)||n(o+"\u5fc5\u987b\u4e3a\u81ea\u7136\u6570"),"cpu"===s&&a>p&&n("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+p),"memory"===s&&a>f&&n("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+f),"gpuNumber"===s&&a>m&&n("\u53ef\u5206\u914d"+o+"\u4e0d\u8db3\uff0c\u4e0d\u5f97\u5927\u4e8e"+m),n()},this.getGpuValBlur=function(t,a,n){var o,s=[].concat(e.state.gpuList);s[n][a]=t,s[n].gpuModelId="",e.props.form.setFieldsValue(((o={})["gpuModelId-"+s[n].key]="",o)),e.setState({gpuList:s})},this.saveGpuVal=function(){var t=e.state.gpuList;t.push({gpuNumber:0,gpuModelId:"",gpuModelName:"",key:x.default.uniqueId()}),e.setState({gpuList:t.concat([])})},this.deleteGpuVal=function(t){var a=[].concat(e.state.gpuList);a.splice(t,1),e.setState({gpuList:a})},this.quotaResourceDom=function(e){return(0,l.default)("div",{style:{padding:"10px 16px"}},void 0,(0,l.default)("span",{style:{color:"#147BD1"}},void 0,"\u7cfb\u7edf\u5269\u4f59\uff1aCPU\uff1a",x.default.get(e,"cpu","--")),(0,l.default)("span",{style:{color:"#147BD1",marginLeft:100}},void 0,"\u5185\u5b58\uff1a",x.default.get(e,"memory","--")),(0,l.default)("span",{style:{color:"#147BD1",marginLeft:100}},void 0,"GPU\uff1a",e&&e.gpu&&e.gpu.length>0?e.gpu.map((function(e){return x.default.get(e,"gpuNumber","0")>0?x.default.get(e,"gpuNumber","0")+"/"+x.default.get(e,"gpuModelName","--")+" ":""})):"0"))},this.getAvaGpuTypes=function(t){for(var a=x.default.get(e.props.availableQuota,"gpu",[])||[],n=e.usedQuota[e.state.radioValue],o=x.default.get(n,"gpu[0].gpuModelId",""),s=Number(x.default.get(n,"gpu[0].gpuNumber",0)||0),r=(x.default.get(n,"gpu[0].gpuModelId",""),[]),i=0;i<a.length;i++){var d=a[i];("edit"===e.props.viewType&&d.gpuModelId===o&&t.gpuNumber<=d.gpuNumber+s||t.gpuNumber<=d.gpuNumber)&&r.push(d)}return r}},n);t.default=(0,b.connect)((function(){return{}}))(y.Form.create()(P))},"./src/module/sysManage/tenantManager/editPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h={width:"130px"},g=(0,n.default)(f,{value:"CREATE_AT.DESC"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),v=(0,n.default)(f,{value:"UPDATE_AT.ASC"},void 0,"\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("projectName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortType"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:h,placeholder:"\u9009\u62e9\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,g,v)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(y)},"./src/module/sysManage/tenantManager/editPage/component/TenantInfo.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ProjectInfoDom=void 0;var n=b(a("./node_modules/antd/es/col/index.js")),o=b(a("./node_modules/antd/es/row/index.js")),s=b(a("./node_modules/babel-runtime/helpers/jsx.js")),r=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=b(a("./node_modules/babel-runtime/helpers/inherits.js")),l=b(a("./node_modules/antd/es/select/index.js")),u=b(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var c=b(a("./node_modules/react/index.js")),p=(b(a("./node_modules/prop-types/index.js")),b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"))),f=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var m=a("./src/redux/selectors/checkName.js"),h=b(a("./src/components/common/CheckName.jsx")),g=a("./node_modules/react-redux/es/index.js"),v=b(a("./src/redux/services/sysManager/userManager.js")),y=b(a("./src/redux/services/sysManager/tenantManager.js"));function b(e){return e&&e.__esModule?e:{default:e}}var x=u.default.TextArea,C=l.default.Option,j=t.ProjectInfoDom=p.default.div.withConfig({displayName:"TenantInfo__ProjectInfoDom",componentId:"sc-1wmpbcv-0"})([".ant-row{line-height:60px;display:flex;}"]),S=f.Form.Item,I=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));n.componentDidMount=function(){"create"===n.props.viewType?n.fetchNoTenantUser():n.fetchTenantUser()},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.validateFun=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)}));var t=n.props.checkNameVerifyInfo.toJS(),a=t.verifyStatus,o=t.verifyMsg;return t.loading?{validate:!1,errorMsg:"\u540d\u79f0\u9a8c\u8bc1\u4e2d\u3001\u7a0d\u540e\u63d0\u4ea4!"}:-1===a?{validate:!1,errorMsg:o}:e?{validate:!0,moduleData:n.modelData}:{validate:!1,errorMsg:"\u8bf7\u6b63\u786e\u586b\u5199\u57fa\u7840\u4fe1\u606f"}},n.getModelNameBlur=function(e){n.props.form.setFieldsValue({tenantName:e}),n.modelData.tenantName=e?e.trim():e},n.getValBlur=function(e,t){n.modelData[t]=e,n.props.form.setFieldsValue({type:e})},n.fetchNoTenantUser=function(){v.default.getUsersByTenant({filterPlatformAdmin:!0,filterTenantAdmin:!0,filterJoinedUser:!0}).then((function(e){n.setState({userList:e.data?e.data:[]})}))},n.fetchTenantUser=function(){y.default.getTenantUsers({tenantId:n.modelData.tenantId}).then((function(e){n.setState({userList:e.data?e.data:[]})}))},n.checkNameRef=c.default.createRef();var o=n.props.setValidateFunc;_.isFunction(o)&&o("tenantInfo",n.validateFun),n.state={userList:[]};var s=(_.get(a.tenantInfo,"tenantMemberManagers",[])||[]).map((function(e){return e.userId}));return n.modelData={tenantName:_.get(a.tenantInfo,"tenantName",""),tenantDesc:_.get(a.tenantInfo,"tenantDesc",""),tenantId:_.get(a.tenantInfo,"tenantId",""),tenantManagers:s},n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state.userList;return(0,s.default)(j,{},void 0,(0,s.default)(f.Form,{layout:"horizontal"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{},void 0,(0,s.default)(S,{label:"\u79df\u6237\u540d\u79f0"},void 0,t("tenantName",{rules:[{required:!0,message:"\u79df\u6237\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a"},{max:30,message:"\u79df\u6237\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc730\u4e2a\u5b57\u7b26"},{validator:this.handleCheckNameValidate}],initialValue:this.modelData.tenantName})(c.default.createElement(h.default,{ref:this.checkNameRef,source:"tenant",style:{width:"350px"},disabled:"view"===this.props.viewType,placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0",modelId:"create"===this.props.viewType?"":this.props.tenantId,updateNameCallback:this.getModelNameBlur,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\tenantManager\\editPage\\component\\TenantInfo.jsx",lineNumber:147}})))),(0,s.default)(S,{label:"\u79df\u6237\u7ba1\u7406\u5458",style:{marginLeft:32}},void 0,t(" tenantManagers",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u79df\u6237\u7ba1\u7406\u5458"}],initialValue:this.modelData.tenantManagers})((0,s.default)(l.default,{mode:"multiple",allowClear:!0,disabled:"view"===this.props.viewType,onChange:function(t){return e.getValBlur(t,"tenantManagers")},getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u79df\u6237\u7ba1\u7406\u5458",style:{marginLeft:"20px",width:350},filterOption:function(e,t){return(_.get(t,"props.title","")||"").includes(e)||(_.get(t,"key","")||"").includes(e)}},void 0,a.map((function(e){return(0,s.default)(C,{title:e.userName,value:e.userId},e.userId,e.userName," ( ",e.userId," )")})))))),(0,s.default)(S,{style:{marginLeft:10},label:"\u79df\u6237\u63cf\u8ff0"},void 0,t("tenantDesc",{rules:[{max:200,message:"\u79df\u6237\u63cf\u8ff0\u4e0d\u80fd\u8d85\u8fc7200\u4e2a\u5b57\u7b26"}],initialValue:this.modelData.tenantDesc})((0,s.default)(x,{disabled:"view"===this.props.viewType,autoSize:{minRows:5,maxRows:8},style:{width:650,marginRight:10,min:0,max:450},onBlur:function(t){return e.getValBlur(t.target.value,"tenantDesc")},rows:8})))))},t}(c.default.PureComponent);t.default=(0,g.connect)((function(e){return{checkNameVerifyInfo:(0,m.selectVerifyInfo)(e)}}))(f.Form.create()(I))},"./src/module/sysManage/tenantManager/editPage/component/UserRelevance.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/table/index.js")),o=g(a("./node_modules/antd/es/tooltip/index.js")),s=g(a("./node_modules/babel-runtime/helpers/jsx.js")),r=g(a("./node_modules/antd/es/message/index.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js")),u=g(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var c=g(a("./node_modules/react/index.js")),p=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(g(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/components/index.js"),h=g(a("./src/redux/services/sysManager/tenantManager.js"));function g(e){return e&&e.__esModule?e:{default:e}}var v=u.default.Search,_=p.default.div.withConfig({displayName:"UserRelevance__UserRelevanceDom",componentId:"dhyvrz-0"})([".site-badge-count-4 .ant-badge-count{background-color:#fff;color:#999;box-shadow:0 0 0 1px #d9d9d9 inset;}.saveButton{float:right;}display:flex;flex-direction:column;flex:1 1 auto;background:#fff;.header{display:flex;margin-bottom:16px;.y-div{width:19px;height:18px;border-radius:50%;background-color:#e3e3e3;text-align:center;margin-top:2px;}}.selectDiv{position:absolute;z-index:999;right:5px;background:#fafafa;height:46px;padding-top:8px;width:36%;margin-top:1px;text-align:right;}"]),y=(0,s.default)("span",{},void 0,"\u5e8f\u53f7"),b=(0,s.default)(m.LoadingIndicator,{position:"relative"}),x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.fetchData=function(){n.setState({loading:!0}),h.default.getTenantUsers({tenantId:n.tenantId,userName:n.userName}).then((function(e){n.setState({dataList:e.data?e.data:[],loading:!1})})).catch((function(e){n.setState({dataList:[],loading:!1}),r.default.error(e.message)}))},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.userName=e,n.fetchData()},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.state={loading:!1,dataList:[]},n.userName="",n.tenantId=a.tenantId,n.columns=[{title:y,width:80,render:function(e,t,a){return(0,s.default)("span",{},void 0,a+1)}},{title:"\u6210\u5458\u540d\u79f0",dataIndex:"userName",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7528\u6237\u540d",dataIndex:"userId",ellipsis:!0,render:function(e){return(0,s.default)(o.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u89d2\u8272",dataIndex:"roles",ellipsis:!0,render:function(e){var t=Array.isArray(e)?e.filter((function(e){return e.roleId&&e.roleId.startsWith("TENANT")})).map((function(e){return e.roleName})).join("\u3001"):"";return(0,s.default)(o.default,{placement:"topLeft",title:t},void 0,t)}}],n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData()},t.prototype.render=function(){var e=this,t=this.state,a=t.dataList,o=t.loading;return(0,s.default)(_,{style:{padding:20}},void 0,(0,s.default)("div",{className:"header"},void 0,(0,s.default)("div",{style:{width:"92%",display:"flex"}},void 0,(0,s.default)("span",{style:{fontSize:14,color:"#6c6363",fontWeight:800,marginRight:15}},void 0,"\u6210\u5458"),(0,s.default)("div",{className:"y-div"},void 0,a?a.length:0)),(0,s.default)(v,{style:{width:200,marginRight:16},placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})),o&&b,!o&&(0,s.default)(n.default,{dataSource:a,rowKey:"tenantId",bordered:!0,pagination:!0,columns:this.columns}))},t}(c.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(x)},"./src/module/sysManage/tenantManager/listPage/TenantsPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/table/index.js")),o=C(a("./node_modules/antd/es/button/index.js")),s=C(a("./node_modules/antd/es/tooltip/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/antd/es/message/index.js")),d=C(a("./node_modules/antd/es/modal/index.js")),l=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=C(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=C(a("./node_modules/react/index.js")),f=(C(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./src/components/index.js"),h=C(a("./src/redux/services/sysManager/tenantManager.js")),g=C(a("./src/module/sysManage/tenantManager/listPage/component/SearchBar.jsx")),v=a("./src/routes/routeHelper.jsx"),y=a("./src/utils/history.js"),b=a("./src/styles/GlobalStyle.js"),x=a("./src/module/sysManage/tenantManager/modelEnums.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=(0,r.default)(m.LoadingIndicator,{position:"relative"}),S=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.deleteById=function(e){var t=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664[ "+e.tenantName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(a,n){h.default.deleteTenant(e.tenantId).then((function(){t.fetchData(t.searchCond),a(),i.default.success("\u5220\u9664\u6210\u529f\uff01")})).catch((function(e){throw n(),e}))}))}})},n.handleTenantStatusChange=function(e,t){var a=n,o={deactivate:"\u505c\u7528",enable:"\u542f\u7528"}[e];d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4"+o+"\u79df\u6237[ "+t.tenantName+" ]?",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return new Promise((function(n,s){h.default.updateTenantStatus(e,t.tenantId).then((function(){a.fetchData(a.searchCond),n(),i.default.success(o+"\u6210\u529f")})).catch((function(e){throw s(),e}))}))}})},n.fetchData=function(e){n.setState({loading:!0}),h.default.getTenantList(e).then((function(e){n.setState({tenantList:e.data?e.data:[],loading:!1})})).catch((function(e){throw n.setState({tenantList:[],loading:!1}),e}))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.state={loading:!1,tenantList:[]},n.columns=[{title:"\u5e8f\u53f7",width:"7%",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u79df\u6237\u540d",dataIndex:"tenantName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u79df\u6237\u7ba1\u7406\u5458",dataIndex:"tenantMemberManagers",ellipsis:!0,render:function(e){return e=_.isArray(e)?e.reduce((function(e,t){return(e?e+"\u3001":"")+t.userName}),""):e,(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u79df\u6237\u63cf\u8ff0",dataIndex:"tenantDesc",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e||"--"},void 0,e||"--")}},{title:"\u72b6\u6001",dataIndex:"status",width:100,ellipsis:!0,render:function(e){var t=x.TENANT_STATUS.getDescFromValue(e)||"--";return(0,r.default)(s.default,{placement:"topLeft",title:t},void 0,t)}},{title:"\u521b\u5efa\u4eba",dataIndex:"createBy",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",width:180,ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u64cd\u4f5c",width:210,render:function(e,t){var a=[];return a.push({handleName:"\u67e5\u770b",style:{display:"inline-block"},handleType:"link",handleAction:v.sysManageUrl.tenantView(t.tenantId,"info")}),a.push({handleName:"\u4fee\u6539",style:{display:"inline-block"},handleType:"link",handleAction:v.sysManageUrl.tenantEdit(t.tenantId,"info")}),1===Number(t.status)?a.push({handleName:"\u505c\u7528",handleAction:function(){n.handleTenantStatusChange("deactivate",t)}}):a.push({handleName:"\u542f\u7528",handleAction:function(){n.handleTenantStatusChange("enable",t)}}),a.push({handleName:"\u5220\u9664",handleAction:function(){n.deleteById(t)}}),(0,r.default)(m.ListButtons,{buttons:a,maxShowNum:2})}}],n.searchCond={tenantName:"",sortBy:"CREATE_TIME.DESC"},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchData(this.searchCond)},t.prototype.render=function(){var e=this.state,t=e.tenantList,a=e.loading;return(0,r.default)(b.PageWrapper,{},void 0,(0,r.default)(b.PageHeader,{},void 0,(0,r.default)(o.default,{onClick:function(){(0,y.navigateTo)(v.sysManageUrl.tenantCreate())},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u79df\u6237"),(0,r.default)(g.default,{sortField:this.searchCond.sortType,onChange:this.changeSearchCond})),(0,r.default)(b.PageBody,{},void 0,(0,r.default)(b.TableWrapper,{},void 0,a&&(0,r.default)("div",{style:{marginTop:50}},void 0,j),!a&&(0,r.default)(n.default,{dataSource:t,rowKey:"tenantId",bordered:!0,pagination:!0,columns:this.columns}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(S)},"./src/module/sysManage/tenantManager/listPage/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h={width:"130px"},g=(0,n.default)(f,{value:"CREATE_TIME.DESC"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),v=(0,n.default)(f,{value:"UPDATE_TIME.DESC"},void 0,"\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f"),y=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("tenantName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortBy"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:h,placeholder:"\u9009\u62e9\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,g,v)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(y)},"./src/module/sysManage/tenantManager/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.TENANT_STATUS=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.TENANT_STATUS=(0,s.default)({1:[1,"\u6b63\u5e38"],"-1":[-1,"\u5df2\u505c\u7528"]});t.default={TENANT_STATUS:r}},"./src/module/sysManage/tenantManager/util/dataUtil.js":function(e,t,a){"use strict";t.__esModule=!0,t.formatAllGpuType=function(e,t){for(var a={PRODUCT:[],DEV:[],TEST:[]},n=0;n<e.length;n++){var o=s.default.groupBy(e[n].gpu,"gpuNumber");for(var r in o){for(var i=[],d=0;d<o[r].length;d++)i.push({gpuModelId:s.default.get(o[r][d],"gpuModelId"),gpuModelName:s.default.get(o[r][d],"gpuModelName"),checked:!1});a[e[n].resQuotaType].push({gpuNumber:r,list:i})}}if(t)return a[t];return a},t.getResQuotaType=function(e){var t={PRODUCT:"\u751f\u4ea7",DEV:"\u5f00\u53d1",TEST:"\u6d4b\u8bd5"};if(e)return t[e];return t},t.initResQuotaConf=function(e){var t=[],a=["DEV","TEST","PRODUCT"];if(e&&function(e){if("string"==typeof e)try{return JSON.parse(e),!0}catch(e){return!1}}(e))return t=JSON.parse(e);for(var n=0;n<a.length;n++)t.push({profile:a[n],resQuotaConf:{cpu:0,memory:0,gpu:[{gpuNumber:0,gpuModelId:"",gpuModelName:""}]}});return t},t.resourceFormat=function(e){var t="";if(e&&e.gpu){(e.cpu||0===e.cpu)&&(t+=""+e.cpu),(e.memory||0===e.memory)&&(t+="/"+e.memory+" ");for(var a=0;a<e.gpu.length;a++)t+="("+(e.gpu[a].gpuNumber||0===e.gpu[a].gpuNumber?e.gpu[a].gpuNumber:"--")+"/"+(e.gpu[a].gpuModelName?e.gpu[a].gpuModelName:"--")+") /";if(t.length>0)return t.substring(0,t.length-1)}return""===t?"--":t},t.getAvaEnvResQuota=function(e,t){return s.default.get(s.default.findLast(e,{resQuotaType:t}),"quotaSetting",{})||{}},t.getAvaEnvGpu=function(e,t){return s.default.findLast(e,{resQuotaType:t})||{}};var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n}},"./src/module/sysManage/userActionManager/permissionManager/ModulePermissionPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=g(a("./node_modules/antd/es/button/index.js")),o=g(a("./node_modules/babel-runtime/helpers/jsx.js")),s=g(a("./node_modules/antd/es/message/index.js")),r=g(a("./node_modules/antd/es/modal/index.js")),i=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var u=g(a("./node_modules/react/index.js")),c=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=a("./node_modules/react-redux/es/index.js"),f=(g(a("./node_modules/prop-types/index.js")),g(a("./src/module/sysManage/userActionManager/permissionManager/component/LeftTreePage.jsx"))),m=g(a("./src/module/sysManage/userActionManager/permissionManager/component/RightOperationPage.jsx")),h=g(a("./src/redux/services/sysManager/permissionManage.js"));function g(e){return e&&e.__esModule?e:{default:e}}var v=c.default.div.withConfig({displayName:"ModulePermissionPage__ModulePermissionDom",componentId:"d9e0a5-0"})(["display:flex;"]),_=c.default.div.withConfig({displayName:"ModulePermissionPage__LeftDom",componentId:"d9e0a5-1"})(["border:1px solid #ededed;max-height:365px;margin-right:24px;border-radius:4px;overflow-y:auto;overflow-x:hidden;"]),y=c.default.div.withConfig({displayName:"ModulePermissionPage__RightDom",componentId:"d9e0a5-2"})(["width:900px;max-height:365px;overflow-x:auto;"]),b=c.default.div.withConfig({displayName:"ModulePermissionPage__BottomDom",componentId:"d9e0a5-3"})(["width:102.8%;padding-right:16px;padding-top:8px;background:transparent;border-top:1px solid #e8e8e8;border-radius:0 0 4px 4px;margin-left:-16px;margin-top:16px;text-align:right;margin-bottom:-8px;"]),x=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.setSelectTreeId=function(e){n.state.operationList.length>0&&n.selectTreeId!==e?r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u5207\u6362\u6a21\u5757\u8d44\u6e90\u662f\u5426\u4fdd\u5b58\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.selectTreeId=e||null,n.saveOperation(1)},onCancel:function(){n.selectTreeId=e||null,n.getOperateByMenuId(n.selectTreeId)}}):(n.selectTreeId=e||null,n.getOperateByMenuId(n.selectTreeId))},n.getOperateByMenuId=function(e){n.setState({operationLogin:!0}),h.default.getOperateByMenuId(e,n.props.roleId).then((function(e){n.setState({operationList:e.data,operationLogin:!1})})).catch((function(){n.setState({operationList:[],operationLogin:!1})}))},n.updateOperationList=function(e,t){for(var a=[].concat(n.state.operationList),o=0;o<a.length;o++)if(e.domainId===a[o].domainId&&e.actionId===a[o].actionId){a[o].resourceScope=t;break}n.setState({operationList:a.concat([])})},n.saveOperation=function(e){var t=n.state.operationList,a=[],o=n;if(0===t.length)s.default.info("\u8bf7\u9009\u62e9\u9700\u8981\u4fdd\u5b58\u7684\u6570\u636e\uff01");else{for(var i=0;i<t.length;i++)a.push({permissionId:t[i].permissionId,resourceScope:t[i].resourceScope});e?(n.add(a),n.getOperateByMenuId(n.selectTreeId)):r.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u662f\u5426\u4fdd\u5b58\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){o.add(a)}})}},n.add=function(e){n.setState({saveLoading:!0}),h.default.saveOperation(e,n.props.roleId).then((function(e){-1!==e.code?(s.default.success("\u4fdd\u5b58\u6210\u529f!"),n.setState({saveLoading:!1})):s.default.info("\u4fdd\u5b58\u51fa\u9519!")})).catch((function(){s.default.info("\u4fdd\u5b58\u5931\u8d25!"),n.setState({saveLoading:!1})}))},n.state={saveLoading:!1,treeData:[],operationList:[],operationLogin:!1},n.selectTreeId="",n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){var e=this;h.default.getMenuTreeData().then((function(t){e.setState({treeData:t.data})})).catch((function(){e.setState({treeData:[]})}))},t.prototype.render=function(){var e=this,t=this.state,a=t.saveLoading,s=t.treeData,r=t.operationList,i=t.operationLogin,d=r;return(0,o.default)("div",{},void 0,(0,o.default)(v,{},void 0,(0,o.default)(_,{},void 0,(0,o.default)(f.default,{setSelectTreeId:this.setSelectTreeId,treeData:s})),(0,o.default)(y,{},void 0,(0,o.default)(m.default,{updateOperationList:this.updateOperationList,operationList:d,operationLogin:i}))),(0,o.default)(b,{},void 0,(0,o.default)(n.default,{loading:a,onClick:function(){e.saveOperation()},type:"primary"},void 0,"\u4fdd \u5b58")))},t}(u.default.Component);t.default=(0,p.connect)((function(){return{}}))(x)},"./src/module/sysManage/userActionManager/permissionManager/ResourcePermissionPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/helpers/jsx.js")),o=c(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=c(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=c(a("./node_modules/babel-runtime/helpers/inherits.js")),i=c(a("./node_modules/react/index.js")),d=c(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=a("./node_modules/react-redux/es/index.js"),u=(c(a("./node_modules/prop-types/index.js")),c(a("./src/module/sysManage/userActionManager/permissionManager/component/TopResourcePage.jsx")));function c(e){return e&&e.__esModule?e:{default:e}}var p=d.default.div.withConfig({displayName:"ResourcePermissionPage__ResourcePermissionDom",componentId:"sc-1j5mgy5-0"})(["width:100%;height:auto;"]),f=function(e){function t(a){return(0,o.default)(this,t),(0,s.default)(this,e.call(this,a))}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)("div",{},void 0,(0,n.default)(p,{},void 0,(0,n.default)(u.default,{id:this.props.id,type:this.props.type})))},t}(i.default.Component);t.default=(0,l.connect)((function(){return{}}))(f)},"./src/module/sysManage/userActionManager/permissionManager/ResourcePermissionUserPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=f(a("./node_modules/babel-runtime/helpers/jsx.js")),o=f(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=f(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=f(a("./node_modules/babel-runtime/helpers/inherits.js")),i=f(a("./node_modules/react/index.js")),d=f(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),l=a("./node_modules/react-redux/es/index.js"),u=(f(a("./node_modules/prop-types/index.js")),f(a("./src/redux/services/sysManager/permissionManage.js"))),c=f(a("./src/module/sysManage/userActionManager/permissionManager/component/TopProjectUserPage.jsx")),p=f(a("./src/module/sysManage/userActionManager/permissionManager/component/ButtomProjectUserPage.jsx"));function f(e){return e&&e.__esModule?e:{default:e}}var m=d.default.div.withConfig({displayName:"ResourcePermissionUserPage__ResourcePermissionUserDom",componentId:"sc-1cagle1-0"})(["width:100%;height:auto;"]),h=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.getPermitScope=function(){n.setState({loadLoading:!0}),u.default.getPermitScope(n.props.domainId,n.props.resourceId).then((function(e){n.setState({dataList:e.data,loadLoading:!1})}))},n.state={dataList:[],loadLoading:!1},n.getPermitScope(),n}return(0,r.default)(t,e),t.prototype.render=function(){return(0,n.default)("div",{},void 0,(0,n.default)(m,{},void 0,(0,n.default)(c.default,{getPermitScope:this.getPermitScope,resourceId:this.props.resourceId,domainId:this.props.domainId}),(0,n.default)(p.default,{dataList:this.state.dataList,loadLoading:this.state.loadLoading,getPermitScope:this.getPermitScope,resourceId:this.props.resourceId,domainId:this.props.domainId})))},t}(i.default.Component);t.default=(0,l.connect)((function(){return{}}))(h)},"./src/module/sysManage/userActionManager/permissionManager/component/ButtomProjectUserPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/table/index.js")),o=m(a("./node_modules/antd/es/tag/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/antd/es/message/index.js")),i=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/tag/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var u=m(a("./node_modules/react/index.js")),c=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),p=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),f=m(a("./src/redux/services/sysManager/permissionManage.js"));function m(e){return e&&e.__esModule?e:{default:e}}var h=c.default.div.withConfig({displayName:"ButtomProjectUserPage__ButtomProjectUserPageDom",componentId:"sc-65pk07-0"})(["margin-top:32px;.empty-desc{color:rgba(0,0,0,0.25);}"]),g=(0,s.default)("span",{className:"empty-desc"},void 0,"\u672a\u8bbe\u7f6e\u7528\u6237"),v=(0,s.default)("span",{className:"empty-desc"},void 0,"\u672a\u8bbe\u7f6e\u7528\u6237\u7ec4"),y=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.onCancelTransferUser=function(e,t,a){var o={domainId:n.props.domainId,resourceId:n.props.resourceId,data:{projectId:a,userIds:[],groupIds:[]}};"userGroup"===e?o.data.groupIds.push(t):o.data.userIds.push(t),f.default.delResourcesByUsers(o).then((function(){n.props.getPermitScope(),r.default.success("\u5220\u9664\u6210\u529f\uff01")})).catch((function(){r.default.error("\u5220\u9664\u5931\u8d25\uff01")}))},n.columns=[{title:"\u5e8f\u53f7",dataIndex:"numIndex",width:100,render:function(e,t,a){return a+1}},{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",width:200},{title:"\u7528\u6237",dataIndex:"users",width:"30%",render:function(e,t){return _.isArray(e)&&!_.isEmpty(e)?_.map(e,(function(e){return(0,s.default)(o.default,{title:Object.keys(e)[0],closable:!0,onClose:function(a){a.preventDefault(),n.onCancelTransferUser("user",e.userId,t.projectId)}},Object.keys(e)[0],e.userName)})):g}},{title:"\u7528\u6237\u7ec4",width:"30%",dataIndex:"userGroups",render:function(e,t){return _.isArray(e)&&!_.isEmpty(e)?_.map(e,(function(e){return(0,s.default)(o.default,{title:Object.keys(e)[0],closable:!0,onClose:function(a){a.preventDefault(),n.onCancelTransferUser("userGroup",e.groupId,t.projectId)}},Object.keys(e)[0],e.groupName)})):v}}],n}return(0,l.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.dataList,a=e.loadLoading;return(0,s.default)(h,{},void 0,(0,s.default)(n.default,{bordered:!0,dataSource:t,columns:this.columns,rowKey:"projectId",pagination:!1,loading:a}))},t}(u.default.Component);t.default=(0,p.connect)((function(){return{}}))(y)},"./src/module/sysManage/userActionManager/permissionManager/component/LeftTreePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=p(a("./node_modules/babel-runtime/helpers/jsx.js")),s=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=p(a("./node_modules/babel-runtime/helpers/inherits.js")),d=p(a("./node_modules/antd/es/tree/index.js"));a("./node_modules/antd/es/tree/style/index.js");var l=p(a("./node_modules/react/index.js")),u=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.TreeNode,m=u.default.div.withConfig({displayName:"LeftTreePage__LeftTreePageDom",componentId:"sc-12j2wpz-0"})(["width:200px;max-width:200px;"]),h=function(e){function t(a){(0,s.default)(this,t);var i=(0,r.default)(this,e.call(this,a));return i.renderTreeNodes=function(e){return e.map((function(e){return e.children?(0,o.default)(f,{title:e.title,dataRef:e},e.key,i.renderTreeNodes(e.children)):l.default.createElement(f,(0,n.default)({key:e.key},e,{__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\userActionManager\\permissionManager\\component\\LeftTreePage.jsx",lineNumber:25}}))}))},i.onSelect=function(e){i.props.setSelectTreeId(e[0])},i.state={},i}return(0,i.default)(t,e),t.prototype.render=function(){var e=this.props.treeData;return(0,o.default)(m,{},void 0,(0,o.default)(d.default,{onSelect:this.onSelect},void 0,this.renderTreeNodes(e)))},t}(l.default.Component);t.default=(0,c.connect)((function(){return{}}))(h)},"./src/module/sysManage/userActionManager/permissionManager/component/RightOperationPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=m(a("./node_modules/antd/es/table/index.js")),o=m(a("./node_modules/antd/es/radio/index.js")),s=m(a("./node_modules/babel-runtime/helpers/jsx.js")),r=m(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),d=m(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/radio/style/index.js");var l=m(a("./node_modules/react/index.js")),u=m(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(m(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),p=a("./src/components/index.js"),f=a("./src/module/sysManage/userActionManager/permissionManager/modelEnums.js");function m(e){return e&&e.__esModule?e:{default:e}}var h=u.default.div.withConfig({displayName:"RightOperationPage__RightOperationDom",componentId:"sc-1laab1k-0"})([""]),g=function(e){function t(a){(0,r.default)(this,t);var n=(0,i.default)(this,e.call(this,a));return n.setColumns=function(){for(var e=[{title:"\u6a21\u5757\u540d\u79f0",dataIndex:"domainName",width:150,render:function(e){return(0,s.default)(p.LineWrap,{title:e||"--",lineClampNum:1})}},{title:"\u64cd\u4f5c\u540d\u79f0",dataIndex:"operateName",width:150,render:function(e){return(0,s.default)(p.LineWrap,{title:e||"--",lineClampNum:1})}}],t=f.OPERATE_STATUS.getCodeAndDescList(),a=function(a){e.push({title:t[a].desc,width:50,align:"center",render:function(e,r){return(0,s.default)(o.default,{onChange:function(e){n.onChange(e,r)},value:t[a].code,checked:r.resourceScope===t[a].code})}})},r=0;r<t.length;r++)a(r);return e},n.onChange=function(e,t){n.props.updateOperationList(t,e.target.value)},n.state={},n.columns=n.setColumns(),n}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.operationLogin,a=e.operationList;return(0,s.default)(h,{},void 0,(0,s.default)(n.default,{loading:t,dataSource:a,rowKey:"actionId",bordered:!0,pagination:!1,columns:this.columns}))},t}(l.default.Component);t.default=(0,c.connect)((function(){return{}}))(g)},"./src/module/sysManage/userActionManager/permissionManager/component/TopProjectUserPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/antd/es/col/index.js")),s=b(a("./node_modules/antd/es/row/index.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/antd/es/message/index.js")),d=b(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=b(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=b(a("./node_modules/babel-runtime/helpers/inherits.js")),c=b(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=b(a("./node_modules/react/index.js")),f=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=(b(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var g=b(a("./src/redux/services/sysManager/permissionManage.js")),v=b(a("./src/redux/services/sysManager/projectManage.js")),_=b(a("./src/redux/services/sysManager/userManager.js")),y=b(a("./src/redux/services/sysManager/userGroupsManager.js"));function b(e){return e&&e.__esModule?e:{default:e}}var x=c.default.Option,C=f.default.div.withConfig({displayName:"TopProjectUserPage__TopResourcePageDom",componentId:"sc-1geilql-0"})(["border:1px solid #ededed;padding:16px;.saveDiv{margin-top:16px;text-align:right;}"]),j=h.Form.Item,S=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.getValBlur=function(e,t){"projectId"===t&&(_.default.getUserByProjectId(e).then((function(e){n.setState({userList:e.data})})),y.default.getUserGroupByProjectId(e).then((function(e){n.setState({userGroupList:e.data})})),n.props.form.setFieldsValue({userIds:[],groupIds:[]})),n.props.form.setFieldsValue({type:e}),n.modelData[t]=e},n.saveModelData=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&g.default.saveResourceByUsers(n.modelData).then((function(){n.props.getPermitScope(),i.default.success("\u4fdd\u5b58\u6210\u529f\uff01")})).catch((function(){i.default.error("\u4fdd\u5b58\u5931\u8d25\uff01")}))},n.state={userList:[],userGroupList:[],projectList:[]},n.modelData={domainId:a.domainId,resourceId:a.resourceId,projectId:"",userIds:[],groupIds:[]},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this;v.default.getUserProjectList().then((function(t){e.setState({projectList:t.data})}))},t.prototype.render=function(){var e=this,t=this.state,a=t.userList,i=t.userGroupList,d=t.projectList,l=this.props.form.getFieldDecorator;return(0,r.default)(C,{},void 0,(0,r.default)(h.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{span:8},void 0,(0,r.default)(j,{help:"",label:"\u9879\u76ee"},void 0,l("projectId",{rules:[{required:!0}],initialValue:this.modelData.projectId})((0,r.default)(c.default,{style:{width:160},onChange:function(t){return e.getValBlur(t,"projectId")},placeholder:"\u8bf7\u9009\u62e9\u9879\u76ee"},void 0,d.map((function(e,t){return(0,r.default)(x,{value:e.projectId},t,e.projectName)})))))),(0,r.default)(o.default,{span:8},void 0,(0,r.default)(j,{help:"",label:"\u7528\u6237"},void 0,l("userIds",{initialValue:this.modelData.userIds})((0,r.default)(c.default,{style:{width:160},mode:"multiple",maxTagCount:1,maxTagTextLength:4,onChange:function(t){return e.getValBlur(t,"userIds")},placeholder:"\u8bf7\u9009\u62e9\u7528\u6237"},void 0,a.map((function(e,t){return(0,r.default)(x,{value:e.userId},t,e.userName)})))))),(0,r.default)(o.default,{span:8},void 0,(0,r.default)(j,{help:"",label:"\u7528\u6237\u7ec4"},void 0,l("groupIds",{initialValue:this.modelData.groupIds})((0,r.default)(c.default,{style:{width:160},mode:"multiple",maxTagCount:1,maxTagTextLength:4,onChange:function(t){return e.getValBlur(t,"groupIds")},placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u7ec4"},void 0,i.map((function(e,t){return(0,r.default)(x,{value:e.groupId},t,e.groupName)})))))))),(0,r.default)("div",{className:"saveDiv"},void 0,(0,r.default)(n.default,{type:"primary",onClick:function(){e.saveModelData()}},void 0,"\u4fdd\u5b58")))},t}(p.default.Component);t.default=(0,m.connect)((function(){return{}}))(h.Form.create()(S))},"./src/module/sysManage/userActionManager/permissionManager/component/TopResourcePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=_(a("./node_modules/antd/es/table/index.js")),o=_(a("./node_modules/antd/es/button/index.js")),s=_(a("./node_modules/antd/es/popconfirm/index.js")),r=_(a("./node_modules/antd/es/tooltip/index.js")),i=_(a("./node_modules/babel-runtime/helpers/jsx.js")),d=_(a("./node_modules/antd/es/message/index.js")),l=_(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=_(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=_(a("./node_modules/babel-runtime/helpers/inherits.js")),p=_(a("./node_modules/antd/es/radio/index.js")),f=_(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/popconfirm/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var m=_(a("./node_modules/react/index.js")),h=_(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(_(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),v=_(a("./src/redux/services/sysManager/permissionManage.js"));function _(e){return e&&e.__esModule?e:{default:e}}var y=f.default.Option,b=p.default.Group,x=h.default.div.withConfig({displayName:"TopResourcePage__TopResourcePageDom",componentId:"sc-1pxg32o-0"})([".typeDiv{border:1px solid #ededed;height:60px;padding:14px;border-radius:4px;}.resourceDiv{border:1px solid #ededed;height:90px;padding:14px;border-radius:4px;margin-top:16px;margin-bottom:16px;.saveButton{float:right;margin-top:32px;position:relative;}}"]),C=(0,i.default)(p.default,{value:"READ"},void 0,"\u4ec5\u67e5\u770b"),j=(0,i.default)(p.default,{value:"WRITE"},void 0,"\u53ef\u4fee\u6539"),S=(0,i.default)("a",{href:"javascript:;"},void 0,"\u5220\u9664"),I=(0,i.default)("span",{},void 0,"\u9009\u62e9\u8d44\u6e90\u5206\u7c7b\uff1a"),T=(0,i.default)("span",{},void 0,"\u9009\u62e9\u6570\u636e\u8d44\u6e90\uff1a"),w=(0,i.default)(p.default,{value:"READ"},void 0,"\u4ec5\u67e5\u770b"),E=(0,i.default)(p.default,{value:"WRITE"},void 0,"\u53ef\u4fee\u6539"),D=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.delResource=function(e){n.setState({tableLogin:!0}),v.default.delResourcesById(n.props.id,e,n.props.type).then((function(){n.getResourcesList(n.state.typeId),d.default.success("\u5220\u9664\u6210\u529f\uff01")})).catch((function(){d.default.error("\u5220\u9664\u5931\u8d25\uff01")}))},n.getResources=function(e){v.default.getResources(n.props.id,e,n.props.type).then((function(e){n.setState({resourceData:[].concat(e.data)})})).catch((function(){n.setState({resourceData:[]})}))},n.selectChange=function(e,t){"typeId"===t?(n.setState({typeId:e,tableLogin:!0}),n.getResources(e),n.getResourcesList(e)):"operateId"===t?n.setState({operateId:e}):"resourceId"===t&&n.setState({resourceId:e})},n.getResourcesList=function(e){n.setState({tableLogin:!0}),v.default.getResourcesList(n.props.id,e,n.props.type).then((function(e){n.setState({tableLogin:!1,resourceDataList:e.data})})).catch((function(){n.setState({tableLogin:!1,resourceDataList:[]})}))},n.updateResourcesById=function(e){n.setState({tableLogin:!0}),v.default.updateResourcesById(e,n.props.id,n.props.type).then((function(){n.getResourcesList(n.state.typeId)})).catch((function(){d.default.error("\u4fdd\u5b58\u5931\u8d25\uff01")}))},n.saveOperation=function(){for(var e=[],t=0;t<n.state.resourceId.length;t++)e.push({resourceType:n.state.typeId,resourceId:n.state.resourceId[t],action:n.state.operateId});n.setState({saveLoading:!0}),v.default.saveResourcesById(n.props.id,e,n.props.type).then((function(){n.setState({saveLoading:!1,resourceId:[]}),n.getResourcesList(n.state.typeId),d.default.success("\u4fdd\u5b58\u6210\u529f\uff01")})).catch((function(){n.setState({saveLoading:!1,resourceId:[]}),d.default.error("\u4fdd\u5b58\u5931\u8d25\uff01")}))},n.state={resourceDataList:[],resourceType:[],resourceData:[],typeId:"",resourceId:[],operateId:"READ",saveLoading:!1},n.columns=[{title:"\u9879\u76ee\u540d\u79f0",dataIndex:"projectName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u8d44\u6e90\u6570\u636e",dataIndex:"resourceName",ellipsis:!0,render:function(e){return(0,i.default)(r.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u6388\u6743\u5206\u7c7b",dataIndex:"action",ellipsis:!0,render:function(e,t){return(0,i.default)(b,{onChange:function(e){return n.updateResourcesById({resourceType:t.resourceType,resourceId:t.resourceId,action:e.target.value})},value:e},void 0,C,j)}},{title:"\u64cd\u4f5c",width:"18%",render:function(e,t){return(0,i.default)(s.default,{title:"\u786e\u5b9a\u5220\u9664?",onConfirm:function(){n.delResource([{resourceType:t.resourceType,resourceId:t.resourceId,action:t.action}])}},void 0,S)}}],n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){var e=this;v.default.getResourcesType().then((function(t){e.setState({resourceType:t.data})})).catch((function(){e.setState({resourceType:[]})}))},t.prototype.render=function(){var e=this,t=this.state,a=t.resourceType,s=t.resourceData,r=t.saveLoading,d=t.resourceId,l=t.typeId,u=t.operateId,c=t.tableLogin,p=t.resourceDataList;return(0,i.default)(x,{},void 0,(0,i.default)("div",{className:"typeDiv"},void 0,I,(0,i.default)(f.default,{value:l,style:{width:"350px"},placeholder:"\u8bf7\u9009\u62e9\u8d44\u6e90\u5206\u7c7b",onChange:function(t){e.selectChange(t,"typeId")}},void 0,a.map((function(e){return(0,i.default)(y,{title:e.domainName,value:e.domainId},e.domainId,e.domainName)})))),(0,i.default)("div",{className:"resourceDiv"},void 0,T,(0,i.default)(f.default,{value:d,style:{width:"350px",marginRight:16},mode:"multiple",maxTagCount:3,maxTagTextLength:3,placeholder:"\u8bf7\u9009\u62e9\u6570\u636e\u8d44\u6e90",onChange:function(t){e.selectChange(t,"resourceId")}},void 0,s.map((function(e){return(0,i.default)(y,{title:e.resourceName,value:e.resourceId},e.resourceId,e.resourceName)}))),(0,i.default)(b,{value:u,onChange:function(t){e.selectChange(t.target.value,"operateId")}},void 0,w,E),(0,i.default)(o.default,{disabled:""===l||0===d.length,className:"saveButton",loading:r,onClick:function(){e.saveOperation()},type:"primary"},void 0,"\u4fdd \u5b58")),(0,i.default)("div",{},void 0,(0,i.default)(n.default,{loading:c,dataSource:p,rowKey:"resourceId",bordered:!0,pagination:!1,columns:this.columns})))},t}(m.default.Component);t.default=(0,g.connect)((function(){return{}}))(D)},"./src/module/sysManage/userActionManager/permissionManager/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.OPERATE_STATUS=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.OPERATE_STATUS=(0,s.default)({REJECT:[4,"\u65e0\u6743\u9650"],OWNER:[1,"\u4ec5\u81ea\u5df1"],PROJECT:[2,"\u9879\u76ee\u5185"],PLATFORM:[3,"\u5e73\u53f0\u5185"]});t.default={OPERATE_STATUS:r}},"./src/module/sysManage/userActionManager/quotaTenantManager/QuotaTenantManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=S(a("./node_modules/antd/es/table/index.js")),o=S(a("./node_modules/antd/es/button/index.js")),s=S(a("./node_modules/antd/es/tooltip/index.js")),r=S(a("./node_modules/babel-runtime/helpers/jsx.js")),i=S(a("./node_modules/antd/es/modal/index.js")),d=S(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=S(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=S(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var c=S(a("./node_modules/react/index.js")),p=S(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),f=(S(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=S(a("./src/components/auth/funAuth.jsx")),h=a("./src/components/index.js"),g=a("./src/redux/reducers/sysManager/quotaTenantManager.js"),v=a("./src/redux/reducers/sysManager/userManager.js"),y=a("./src/redux/selectors/sysManager/userManager.js"),b=S(a("./src/module/sysManage/userActionManager/quotaTenantManager/component/SearchBar.jsx")),x=S(a("./src/module/sysManage/userActionManager/quotaTenantManager/component/ViewQuotaTenantConfig.jsx")),C=a("./src/redux/reducers/sysManager/sysManager.js"),j=a("./src/redux/selectors/sysManager/quotaTenantManager.js");function S(e){return e&&e.__esModule?e:{default:e}}var I=p.default.div.withConfig({displayName:"QuotaTenantManagePage__PageWrapper",componentId:"sc-396ntl-0"})(["display:flex;background:#fff;padding:20px;flex-direction:column;flex:1 1 auto;.fXrMUz .anticon{cursor:pointer;margin-left:0px;}"]),T=p.default.div.withConfig({displayName:"QuotaTenantManagePage__PageHeader",componentId:"sc-396ntl-1"})(["position:relative;height:50px;width:100%;z-index:20;h1{margin:0;font-size:24px;}.ant-divider-horizontal{margin:15px 0 0 0;}.search-bar{position:absolute;right:0;top:8px;}.saveButton{position:absolute;top:8px;}"]),w=p.default.div.withConfig({displayName:"QuotaTenantManagePage__PageBody",componentId:"sc-396ntl-2"})(["display:block;min-height:500px;flex-direction:row;flex-wrap:nowrap;"]),E=p.default.div.withConfig({displayName:"QuotaTenantManagePage__ModelsBox",componentId:"sc-396ntl-3"})(["margin-top:5px;flex:1 1 auto;.anticon{cursor:pointer;margin-left:10px;}.editable-cell-icon{float:right;padding-top:3px;}"]),D=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),M=(0,r.default)("span",{},void 0,"\u9ed8\u8ba4\u6240\u6709\u672a\u6307\u5b9a\u7684\u7528\u6237"),k=(0,r.default)("div",{}),P=(0,r.default)(h.LoadingIndicator,{position:"relative"}),L=function(e){function t(n){(0,d.default)(this,t);var o=(0,l.default)(this,e.call(this,n));return o.fetchData=function(e){o.props.dispatch(g.quotaTenantActions.getSysQuotaTenantListRequest(e))},o.editRelation=function(e,t){var a=[];if(o.quotaTenantId=e.quotaTenantId,"power"!==t){for(var n=0;n<e["roles"===t?"roles":"userMap"].length;n++)a.push(e["roles"===t?"roles":"userMap"][n]["roles"===t?"roleId":"USER_ID"]);"roles"===t?o.props.dispatch(rolesActions.loadSysRolesListRequest({quotaTenantId:""})):"users"===t&&o.props.dispatch(v.userActions.loadSysUserListRequest({tenantId:"",userType:0})),o.quotaTenantId=e.quotaTenantId,o.setState({targetKeys:[].concat(a),relationModalVisible:!0,relationType:t})}else o.props.dispatch(C.sysManagerActions.loadResDomainsListRequest()),o.groupResScopePermit=e.groupResScopePermit,o.setState({resPermits:o.formatResPermits(e.resPermits),resPermitsModalVisible:!0,selectedItems:o.getSelectedItems(e.resPermits)})},o.getSelectedItems=function(e){var t=_.reduce(e,(function(e,t){return e[t.resDomain]=e[t.resDomain],e}),{}),a=[];return Object.keys(t).forEach((function(e){a.push(e)})),a},o.changeSearchCond=function(e,t){o.searchCond[e]=_.trim(t),delete o.searchCond.offset,delete o.searchCond.limit,o.fetchData(o.searchCond)},o.viewQuotaTenant=function(e){o.quotaTenantId=e.quotaTenantId,o.props.dispatch(g.quotaTenantActions.resetSubmitQuotaTenantInfo()),o.props.dispatch(g.quotaTenantActions.getQuotaTenantInfoRequest({quotaTenantId:e.quotaTenantId}))},o.closeQuotaTenant=function(e){if(void 0!==e)o.setState({modalViewVisible:!1});else{var t=o;i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.props.dispatch(g.quotaTenantActions.resetSubmitQuotaTenantInfo()),t.setState({modalViewVisible:!1})}})}},o.onChangePage=function(e,t){o.setState({currentPage:e}),o.searchCond.offset=parseInt(e),o.searchCond.limit=parseInt(t),o.fetchData(o.searchCond)},o.callRelationModalVisible=function(e){if(void 0!==e||"view"===o.state.viewType)o.setState({relationModalVisible:!1,modalViewVisible:!1,viewType:""});else{var t=o;i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.props.dispatch(g.quotaTenantActions.resetSubmitQuotaTenantInfo()),t.setState({relationModalVisible:!1,modalViewVisible:!1,viewType:""})}})}},o.handleChange=function(e,t){if("select"===t)o.setState({targetKeys:[].concat(e)});else{var a=o;i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4fdd\u5b58\u6b64\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){a.setState({confirmLoading:!0}),"users"===a.state.relationType&&a.props.dispatch(g.quotaTenantActions.submitTenantUserDataRequest({quotaTenantId:a.quotaTenantId,config:e}))}})}},o.callResPermitsModalVisible=function(e){if(void 0!==e||"view"===o.state.viewType)o.setState({resPermitsModalVisible:!1,viewType:""});else{var t=o;i.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({resPermitsModalVisible:!1,viewType:""})}})}},o.openModalViewVisible=function(){o.setState({modalViewVisible:!0})},o.submitModalOk=function(){o.viewQuotaTenantConfig.saveKpi()},o.state={modalVisible:!1,modalViewVisible:!1,viewType:"",currentPage:1,relationType:"",confirmLoading:!1,_this:o},o.groupResScopePermit={},o.validateFuncs={},o.quotaTenantId="",o.columns=[{title:D,width:"6%",dataIndex:"quotaTenantId",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u79df\u6237\u540d\u79f0",dataIndex:"quotaTenantName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5df2\u5173\u8054\u7528\u6237",dataIndex:"userMap",width:"22%",render:function(e,t){if(-1===t.quotaTenantId.indexOf("default",t.quotaTenantId.length-7)){for(var a="",n=0;n<e.length;n++)a+=e[n].USER_NAME+"\u3001";return a=a.substring(0,a.length-1),(0,r.default)(h.LineWrap,{title:a||"\u65e0",lineClampNum:1})}return M}},{title:"\u914d\u7f6e",width:"15%",render:function(e,t){return-1===t.quotaTenantId.indexOf("default",t.quotaTenantId.length-7)?(0,r.default)("div",{},void 0,(0,r.default)(m.default,{permissions:["QUOTA_TENANT:BINDING_USER"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,r.default)("a",{href:"javascript:;"},void 0,(0,r.default)("img",{style:{width:20,height:20},onClick:function(){return o.editRelation(t,"users")},title:"\u7528\u6237",onFocus:function(){return null},onBlur:function(){return null},src:a("./src/styles/images/sysManager/user.png")})))):k}},{title:"\u64cd\u4f5c",width:"12%",render:function(e,t){return(0,r.default)("span",{},void 0,(0,r.default)(m.default,{permissions:["QUOTA_TENANT:CONF"],displayType:"hide",ownership:{_auth:t._auth,_owner:t._owner,_group:t._group,_tenant:t._tenant}},void 0,(0,r.default)("a",{href:"javascript:;",onClick:function(){return o.viewQuotaTenant(t)}},void 0,"\u67e5\u770b")))}}],o.searchCond={quotaTenantName:"",sortField:"CREATETIME",offset:1,limit:10},o}return(0,u.default)(t,e),t.getDerivedStateFromProps=function(e,t){return 0!==e.rolesRelationCode?(-1!==e.rolesRelationCode?((0,h.NotificationWithIcon)("success","\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(g.quotaTenantActions.resetTenantRelationData()),t._this.fetchData(t._this.searchCond)):i.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{resPermitsModalVisible:!1,confirmLoading:!1,relationModalVisible:!1}):1===e.quotaTenantInfoCode?{modalViewVisible:!0}:null},t.prototype.componentDidMount=function(){this.props.dispatch(g.quotaTenantActions.getSysQuotaTenantListRequest(this.searchCond))},t.prototype.render=function(){var e=this,t=this.props.quotaTenantPagination?this.props.quotaTenantPagination.toJS():{},a=null!==this.props.quotaTenantList&&void 0!==this.props.quotaTenantList?this.props.quotaTenantList.toJS():[];return(0,r.default)(I,{},void 0,(0,r.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"\u4e92\u8054\u7f51\u4e2d\u5fc3",onCancelType:!1,width:900,okText:"\u786e\u5b9a\u63d0\u4ea4",submitModalOk:this.submitModalOk,callVisible:this.callRelationModalVisible,modalVisible:this.state.modalViewVisible,comp:(0,r.default)(x.default,{onRef:function(t){e.viewQuotaTenantConfig=t},quotaTenantInfo:this.props.quotaTenantInfo,quotaTenantId:this.quotaTenantId,closeQuotaTenant:this.closeQuotaTenant})}),(0,r.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"users"===this.state.relationType?"\u7528\u6237\u4fe1\u606f":"\u89d2\u8272\u4fe1\u606f",onCancelType:!1,width:500,callVisible:this.callRelationModalVisible,modalVisible:this.state.relationModalVisible,comp:(0,r.default)(h.TransferView,{listStyle:{width:260,height:300},title:"userName",dataKey:"userId",viewType:this.state.viewType,dataSource:this.props.usersDataSource.toJS(),confirmLoading:this.state.confirmLoading,targetKeys:this.state.targetKeys,handleChange:function(t,a){return e.handleChange(t,a)}})}),(0,r.default)(T,{},void 0,(0,r.default)(m.default,{permissions:["QUOTA_TENANT:CONF"],displayType:"hide"},void 0,(0,r.default)(o.default,{onClick:function(){e.openModalViewVisible()},className:"saveButton",size:"small",type:"primary"},void 0,"\u65b0\u589e\u79df\u6237")),(0,r.default)(b.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,r.default)(w,{},void 0,(0,r.default)(E,{},void 0,this.props.loading&&P,!this.props.loading&&(0,r.default)(n.default,{dataSource:a,rowKey:"quotaTenantId",bordered:!0,pagination:!1,columns:this.columns})),(0,r.default)(h.TabPagination,{currentPage:t.offset,pageSize:10,total:t.total,onChange:this.onChangePage})))},t}(c.default.PureComponent);t.default=(0,f.connect)((function(e){return{usersDataSource:(0,y.loadUserList)(e),operateError:(0,j.selectOperateError)(e),opreateLoading:(0,j.selectOperateLoading)(e),quotaTenantPagination:(0,j.selectQuotaTenantPagination)(e),loading:(0,j.selectQuotaTenantListLoading)(e),quotaTenantList:(0,j.selectQuotaTenantList)(e),rolesRelationCode:(0,j.selectQuotaTenantRelationCode)(e),quotaTenantInfo:(0,j.selectQuotaTenantInfo)(e),quotaTenantInfoCode:(0,j.selectQuotaTenantInfoCode)(e)}}))(L)},"./src/module/sysManage/userActionManager/quotaTenantManager/component/HiveConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.HiveConfigPage=void 0;var n=j(a("./node_modules/antd/es/upload/index.js")),o=j(a("./node_modules/babel-runtime/helpers/extends.js")),s=j(a("./node_modules/antd/es/button/index.js")),r=j(a("./node_modules/antd/es/col/index.js")),i=j(a("./node_modules/antd/es/row/index.js")),d=j(a("./node_modules/babel-runtime/helpers/jsx.js")),l=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=j(a("./node_modules/babel-runtime/helpers/inherits.js")),p=j(a("./node_modules/antd/es/input/index.js")),f="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\userActionManager\\quotaTenantManager\\component\\HiveConfig.jsx";a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var m=j(a("./node_modules/react/index.js")),h=a("./node_modules/react-redux/es/index.js"),g=a("./node_modules/@ant-design/icons/es/index.js"),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var y=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),b=a("./src/utils/authPermit.js"),x=a("./src/components/index.js"),C=a("./src/utils/publicPath.js");j(a("./node_modules/prop-types/index.js"));function j(e){return e&&e.__esModule?e:{default:e}}var S=p.default.TextArea,I=v.Form.Item,T=t.HiveConfigPage=y.default.div.withConfig({displayName:"HiveConfig__HiveConfigPage",componentId:"sc-1fn5d0u-0"})(["overflow-x:hidden;margin:auto;border:0px;"]),w=(0,d.default)("span",{},void 0,"IP\u5730\u5740"),E=(0,d.default)("span",{},void 0,"Principal :"),D=(0,d.default)("span",{},void 0,"keytab :"),M=(0,d.default)(g.UploadOutlined,{}),k=(0,d.default)(g.UploadOutlined,{}),P=(0,d.default)("span",{},void 0,"\u96c6\u7fa4Host :"),L=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.getNameBlur=function(e,t){n.data[t]=e},n.keyTabPathUpload=function(e){var t=!0;return"keytab"!==e.name.substring(e.name.lastIndexOf(".")+1,e.name.length)&&(t=!1,(0,x.NotificationWithIcon)("error","\u53ea\u652f\u6301keytab\uff0c\u683c\u5f0f\u6587\u4ef6\uff01")),t},n.krd5ConfigUpload=function(e){var t=!0;return"conf"!==e.name.substring(e.name.lastIndexOf(".")+1,e.name.length)&&(t=!1,(0,x.NotificationWithIcon)("error","\u53ea\u652f\u6301conf\uff0c\u683c\u5f0f\u6587\u4ef6\uff01")),t},n.validateFun=function(){var e=!1,t=n;return n.props.form.validateFieldsAndScroll((function(a){null!==a?(a.keytabUploadFileId||a.krbconfUploadFileId)&&(0,x.NotificationWithIcon)("error","\u8bf7\u4e0a\u4f20Hive\u7684keytab\u6216krd5config \u6587\u4ef6\uff01"):""!==t.data.krbconfUploadFileId&&""!==t.data.keytabUploadFileId||((0,x.NotificationWithIcon)("error","\u8bf7\u4e0a\u4f20Hive\u7684keytab\u6216krd5config \u6587\u4ef6\uff01"),a.krbconfUploadFileId="false"),null!==a&&"{}"!==JSON.stringify(a)||(e=!0)})),e?(n.data.platformId="hive",{validate:!0,moduleData:n.data}):{validate:!1}},n.state={keyTabPathList:a.data&&"1"===a.data.isUpdateConf?[{uid:"1",name:"keyTabPath\u6587\u4ef6",status:"done",response:"Server Error 500",url:""}]:[],krd5ConfigList:a.data&&"1"===a.data.isUpdateConf?[{uid:"1",name:"krd5Config\u6587\u4ef6",status:"done",response:"Server Error 500",url:""}]:[]},n.data=n.props.data?n.props.data:{isUpdateConf:"",masterAddr:"",principal:"",keytabUploadFileId:"",krbconfUploadFileId:"",hosts:""},n.data.isUpdateConf="";var o=n.props.setValidateFunc;return _.isFunction(o)&&o("hive",n.validateFun),n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this,l=(0,b.getToken)(),u={name:"file",action:(0,C.urlFormat)("/api/commons/actions/uploadFiles"),data:{filesType:"dataBase"},headers:{Authorization:l},onChange:function(e){var t=e.fileList;t.length>1&&(t=t.slice(-1)),t=t.map((function(e){return e.response&&e.response.code,e}));var n=a.keyTabPathUpload(e.file);a.setState({keyTabPathList:n?t:[]}),n&&"uploading"===e.file.status&&0===a.state.keyTabPathList.length&&(0,x.NotificationWithIcon)("info",e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status?(a.data.keytabUploadFileId=e.file.response.data+e.file.name,a.data.isUpdateConf=1,(0,x.NotificationWithIcon)("success",e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01")):"error"===e.file.status&&(0,x.NotificationWithIcon)("error",e.file.name+" \u4e0a\u4f20\u51fa\u9519\uff01")}},c={name:"file",action:(0,C.urlFormat)("/api/commons/actions/uploadFiles"),data:{filesType:"dataBase"},headers:{Authorization:l},onChange:function(e){var t=e.fileList;t.length>1&&(t=t.slice(-1)),t=t.map((function(e){return e.response&&e.response.code,e}));var n=a.krd5ConfigUpload(e.file);a.setState({krd5ConfigList:n?t:[]}),n&&"uploading"===e.file.status&&0===a.state.krd5ConfigList.length&&(0,x.NotificationWithIcon)("info",e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status?(a.data.krbconfUploadFileId=e.file.response.data+e.file.name,a.data.isUpdateConf=1,(0,x.NotificationWithIcon)("success",e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01")):"error"===e.file.status&&(0,x.NotificationWithIcon)("error",e.file.name+" \u4e0a\u4f20\u51fa\u9519\uff01")}};return(0,d.default)(T,{},void 0,(0,d.default)(v.Form,{layout:"horizontal"},void 0,(0,d.default)(i.default,{style:{marginTop:15}},void 0,(0,d.default)(r.default,{span:11},void 0,(0,d.default)(I,{help:""},void 0,w,t("masterAddr",{rules:[{required:!0,min:0,max:30}],initialValue:this.data.masterAddr})(m.default.createElement(p.default,{style:{marginLeft:"28px",width:"250px"},ref:function(t){return e.nameInput=t},placeholder:"\u8bf7\u8f93\u5165\u96c6\u7fa4IP\u5730\u5740",onBlur:function(t){return e.getNameBlur(t.target.value,"masterAddr")},__source:{fileName:f,lineNumber:204}})))),(0,d.default)(r.default,{span:10},void 0,(0,d.default)(I,{help:""},void 0,E,t("principal",{rules:[{required:!0}],initialValue:this.data.principal})((0,d.default)(p.default,{placeholder:"kerberos Principal",style:{marginLeft:"20px",width:"250px"},onBlur:function(t){return e.getNameBlur(t.target.value,"principal")}}))))),(0,d.default)(i.default,{},void 0,(0,d.default)(r.default,{span:11},void 0,(0,d.default)(I,{help:""},void 0,D,t("keytabUploadFileId",{rules:[{required:!0}],initialValue:this.data.keytabUploadFileId})(m.default.createElement(n.default,(0,o.default)({fileList:this.state.keyTabPathList,style:{marginLeft:19}},u,{__source:{fileName:f,lineNumber:237}}),(0,d.default)(s.default,{style:{width:250}},void 0,M,"\u4e0a\u4f20keyTabPath"))))),(0,d.default)(r.default,{span:10},void 0,(0,d.default)(I,{help:""},void 0,(0,d.default)("span",{style:{marginLeft:"-12px"}},void 0,"krd5config :"),t("krbconfUploadFileId",{rules:[{required:!0}],initialValue:this.data.krbconfUploadFileId})(m.default.createElement(n.default,(0,o.default)({fileList:this.state.krd5ConfigList,style:{marginLeft:19}},c,{__source:{fileName:f,lineNumber:253}}),(0,d.default)(s.default,{style:{width:250}},void 0,k,"\u4e0a\u4f20krd5config")))))),(0,d.default)(i.default,{},void 0,(0,d.default)(r.default,{span:24},void 0,(0,d.default)(I,{help:""},void 0,P,t("hosts ",{rules:[{max:200}],initialValue:this.data.hosts})((0,d.default)(S,{autosize:{minRows:2,maxRows:2},style:{marginLeft:"6px",width:650,min:0,max:200},onBlur:function(t){return e.getNameBlur(t.target.value,"hosts")},rows:8})))))))},t}(m.default.PureComponent);t.default=(0,h.connect)((function(){return{}}))(v.Form.create()(L))},"./src/module/sysManage/userActionManager/quotaTenantManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h=c.default.div.withConfig({displayName:"SearchBar__SearchBarWrapper",componentId:"sc-1vqxc9d-0"})(["display:flex;align-items:center;.sort-cond{margin-left:16px;}.ant-input-search{width:200px !important;margin-left:16px !important;}"]),g={width:"120px"},v=(0,n.default)(f,{value:"CREATETIME"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),y=(0,n.default)(f,{value:"UPDATETIME"},void 0,"\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f"),b=(0,n.default)(f,{value:"NAME"},void 0,"\u6309\u540d\u79f0\u6392\u5e8f"),x=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("quotaTenantName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(h,{className:"search-bar"},void 0,(0,n.default)("div",{className:"search-div"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},size:"small",style:g,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,v,y,b),(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",size:"small",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(x)},"./src/module/sysManage/userActionManager/quotaTenantManager/component/SparkConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.SparkConfigPage=void 0;var n=j(a("./node_modules/antd/es/upload/index.js")),o=j(a("./node_modules/babel-runtime/helpers/extends.js")),s=j(a("./node_modules/antd/es/button/index.js")),r=j(a("./node_modules/antd/es/col/index.js")),i=j(a("./node_modules/antd/es/row/index.js")),d=j(a("./node_modules/babel-runtime/helpers/jsx.js")),l=j(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=j(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=j(a("./node_modules/babel-runtime/helpers/inherits.js")),p=j(a("./node_modules/antd/es/input/index.js")),f="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\userActionManager\\quotaTenantManager\\component\\SparkConfig.jsx";a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var m=j(a("./node_modules/react/index.js")),h=a("./src/components/index.js"),g=a("./node_modules/react-redux/es/index.js"),v=a("./node_modules/@ant-design/icons/es/index.js"),y=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var b=j(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),x=a("./src/utils/authPermit.js"),C=a("./src/utils/publicPath.js");j(a("./node_modules/prop-types/index.js"));function j(e){return e&&e.__esModule?e:{default:e}}var S=p.default.TextArea,I=y.Form.Item,T=t.SparkConfigPage=b.default.div.withConfig({displayName:"SparkConfig__SparkConfigPage",componentId:"sc-4dml7f-0"})(["overflow-x:hidden;margin:auto;border:0px;"]),w=(0,d.default)("span",{},void 0,"IP\u5730\u5740"),E=(0,d.default)("span",{},void 0,"keytab :"),D=(0,d.default)(v.UploadOutlined,{}),M=(0,d.default)(v.UploadOutlined,{}),k=(0,d.default)("span",{},void 0,"\u96c6\u7fa4Host :"),P=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));n.getSparkNameBlur=function(e,t){n.data[t]=e},n.keySparkTabPathUpload=function(e){var t=!0;return"keytab"!==e.name.substring(e.name.lastIndexOf(".")+1,e.name.length)&&(t=!1,(0,h.NotificationWithIcon)("error","\u53ea\u652f\u6301keytab\uff0c\u683c\u5f0f\u6587\u4ef6\uff01")),t},n.krd5SparkConfigUpload=function(e){var t=!0;return"conf"!==e.name.substring(e.name.lastIndexOf(".")+1,e.name.length)&&(t=!1,(0,h.NotificationWithIcon)("error","\u53ea\u652f\u6301conf\uff0c\u683c\u5f0f\u6587\u4ef6\uff01")),t},n.validateFun=function(){var e=!1,t=n;return n.props.form.validateFieldsAndScroll((function(a){null!==a?(a.keytabUploadFileId||a.krbconfUploadFileId)&&(0,h.NotificationWithIcon)("error","\u8bf7\u4e0a\u4f20Spark\u7684keytab\u6216krd5config \u6587\u4ef6\uff01"):""!==t.data.krbconfUploadFileId&&""!==t.data.keytabUploadFileId||((0,h.NotificationWithIcon)("error","\u8bf7\u4e0a\u4f20Spark\u7684keytab\u6216krd5config \u6587\u4ef6\uff01"),a.krbconfUploadFileId="false"),null!==a&&"{}"!==JSON.stringify(a)||(e=!0)})),e?(n.data.platformId="spark",{validate:!0,moduleData:n.data}):{validate:!1}},n.state={keyTabPathList:a.data&&"1"===a.data.isUpdateConf?[{uid:"1",name:"keyTabPath\u6587\u4ef6",status:"done",response:"Server Error 500",url:""}]:[],krd5ConfigList:a.data&&"1"===a.data.isUpdateConf?[{uid:"1",name:"krd5Config\u6587\u4ef6",status:"done",response:"Server Error 500",url:""}]:[]},n.data=n.props.data?n.props.data:{isUpdateConf:"",masterAddr:"",principal:"",keytabUploadFileId:"",krbconfUploadFileId:"",hosts:""},n.data.isUpdateConf="";var o=n.props.setValidateFunc;return _.isFunction(o)&&o("spark",n.validateFun),n}return(0,c.default)(t,e),t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this,l=(0,x.getToken)(),u={name:"file",action:(0,C.urlFormat)("/api/commons/actions/uploadFiles"),data:{filesType:"dataBase"},headers:{Authorization:l},onChange:function(e){var t=e.fileList;t.length>1&&(t=t.slice(-1)),t=t.map((function(e){return e.response&&e.response.code,e}));var n=a.keySparkTabPathUpload(e.file);a.setState({keyTabPathList:n?t:[]}),n&&"uploading"===e.file.status&&0===a.state.keyTabPathList.length&&(0,h.NotificationWithIcon)("info",e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status?(a.data.keytabUploadFileId=e.file.response.data+e.file.name,a.data.isUpdateConf=1,(0,h.NotificationWithIcon)("success",e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01")):"error"===e.file.status&&(0,h.NotificationWithIcon)("error",e.file.name+" \u4e0a\u4f20\u51fa\u9519\uff01")}},c={name:"file",action:(0,C.urlFormat)("/api/commons/actions/uploadFiles"),data:{filesType:"dataBase"},headers:{Authorization:l},onChange:function(e){var t=e.fileList;t.length>1&&(t=t.slice(-1)),t=t.map((function(e){return e.response&&e.response.code,e}));var n=a.krd5SparkConfigUpload(e.file);a.setState({krd5ConfigList:n?t:[]}),n&&"uploading"===e.file.status&&0===a.state.krd5ConfigList.length&&(0,h.NotificationWithIcon)("info",e.file.name+" \u4e0a\u4f20\u4e2d\uff0c\u8bf7\u7a0d\u540e.........."),"done"===e.file.status?(a.data.krbconfUploadFileId=e.file.response.data+e.file.name,a.data.isUpdateConf=1,(0,h.NotificationWithIcon)("success",e.file.name+" \u4e0a\u4f20\u6210\u529f\uff01")):"error"===e.file.status&&(0,h.NotificationWithIcon)("error",e.file.name+" \u4e0a\u4f20\u51fa\u9519\uff01")}};return(0,d.default)(T,{},void 0,(0,d.default)(y.Form,{layout:"horizontal"},void 0,(0,d.default)(i.default,{style:{marginTop:15}},void 0,(0,d.default)(r.default,{span:11},void 0,(0,d.default)(I,{help:""},void 0,w,t("masterAddr",{rules:[{required:!0,min:0,max:30}],initialValue:this.data.masterAddr})(m.default.createElement(p.default,{style:{marginLeft:"28px",width:"250px"},ref:function(t){return e.nameInput=t},placeholder:"\u8bf7\u8f93\u5165\u96c6\u7fa4IP\u5730\u5740",onBlur:function(t){return e.getSparkNameBlur(t.target.value,"masterAddr")},__source:{fileName:f,lineNumber:204}})))),(0,d.default)(r.default,{span:10},void 0,(0,d.default)(I,{help:""},void 0,(0,d.default)("span",{style:{marginLeft:"-10px"}},void 0,"Principal :"),t("principal",{rules:[{required:!0}],initialValue:this.data.principal})((0,d.default)(p.default,{placeholder:"kerberos Principal",style:{marginLeft:"28px",width:"250px"},onBlur:function(t){return e.getSparkNameBlur(t.target.value,"principal")}}))))),(0,d.default)(i.default,{},void 0,(0,d.default)(r.default,{span:11},void 0,(0,d.default)(I,{help:""},void 0,E,t("keytabUploadFileId",{rules:[{required:!0}],initialValue:this.data.keytabUploadFileId})(m.default.createElement(n.default,(0,o.default)({fileList:this.state.keyTabPathList,style:{marginLeft:19}},u,{__source:{fileName:f,lineNumber:237}}),(0,d.default)(s.default,{style:{width:250}},void 0,D,"\u4e0a\u4f20keyTabPath"))))),(0,d.default)(r.default,{span:10},void 0,(0,d.default)(I,{help:""},void 0,(0,d.default)("span",{style:{marginLeft:"-12px"}},void 0,"krd5config :"),t("krbconfUploadFileId",{rules:[{required:!0}],initialValue:this.data.krbconfUploadFileId})(m.default.createElement(n.default,(0,o.default)({fileList:this.state.krd5ConfigList,style:{marginLeft:19}},c,{__source:{fileName:f,lineNumber:253}}),(0,d.default)(s.default,{style:{width:250}},void 0,M,"\u4e0a\u4f20krd5config")))))),(0,d.default)(i.default,{},void 0,(0,d.default)(r.default,{span:24},void 0,(0,d.default)(I,{help:""},void 0,k,t("hosts ",{rules:[{max:200}],initialValue:this.data.hosts})((0,d.default)(S,{autosize:{minRows:2,maxRows:2},style:{marginLeft:"6px",width:650,min:0,max:200},onBlur:function(t){return e.getSparkNameBlur(t.target.value,"hosts")},rows:8})))))))},t}(m.default.PureComponent);t.default=(0,g.connect)((function(){return{}}))(y.Form.create()(P))},"./src/module/sysManage/userActionManager/quotaTenantManager/component/ViewQuotaTenantConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.BlueUl=t.GreenUl=t.ViewQuotaTenantConfigPage=void 0;var n=g(a("./node_modules/babel-runtime/helpers/jsx.js")),o=g(a("./node_modules/antd/es/modal/index.js")),s=g(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),r=g(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),i=g(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/modal/style/index.js");var d=g(a("./node_modules/react/index.js")),l=a("./node_modules/react-redux/es/index.js"),u=g(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),c=(g(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),p=g(a("./src/module/sysManage/userActionManager/quotaTenantManager/component/HiveConfig.jsx")),f=a("./src/redux/reducers/sysManager/quotaTenantManager.js"),m=g(a("./src/module/sysManage/userActionManager/quotaTenantManager/component/SparkConfig.jsx")),h=a("./src/redux/selectors/sysManager/quotaTenantManager.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=t.ViewQuotaTenantConfigPage=u.default.div.withConfig({displayName:"ViewQuotaTenantConfig__ViewQuotaTenantConfigPage",componentId:"sc-1363gth-0"})(["overflow-x:hidden;height:500px;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;"]),y=(t.GreenUl=u.default.ul.withConfig({displayName:"ViewQuotaTenantConfig__GreenUl",componentId:"sc-1363gth-1"})(["line-height:40px;background-image:-webkit-linear-gradient(left,#1dcfab 30%,#46cf8f 100%);height:40px;list-style-type:none;border-radius:2px;float:left;width:45%;li{font-size:18px;color:#ffffff;float:left;}"]),t.BlueUl=u.default.ul.withConfig({displayName:"ViewQuotaTenantConfig__BlueUl",componentId:"sc-1363gth-2"})(["line-height:40px;background-image:-webkit-linear-gradient(left,#00c0fa 30%,#2f95fa 100%);height:40px;list-style-type:none;border-radius:2px;float:left;width:45%;li{font-size:18px;color:#ffffff;float:left;}"]),{width:"100%"}),b=function(e){function t(a){(0,s.default)(this,t);var n=(0,r.default)(this,e.call(this,a));return n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.checkOnChange=function(e){!0!==e&&!1!==e||(n.checkbox=e)},n.saveKpi=function(){var e=!0;n.quotaTenantInfo=[],Object.keys(n.validateFuncs).map((function(t){var a=null;if("spark"===t?n.checkbox&&(a=n.validateFuncs[t]):a=n.validateFuncs[t],_.isFunction(a)){var o=a.call();o&&(o.validate?n.quotaTenantInfo.push(o.moduleData):e=!1)}})),e&&n.setState({modalVisible:!0})},n.submitModalCancel=function(){n.setState({modalVisible:!1}),n.props.dispatch(f.quotaTenantActions.resetSubmitQuotaTenantInfo())},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(f.quotaTenantActions.submitQuotaTenantInfoRequest({quotaTenantId:n.props.quotaTenantId,config:n.quotaTenantInfo}))},n.getQuotaTenantInfoByType=function(e){var t=n.props.quotaTenantInfo.size>0?n.props.quotaTenantInfo.toJS():{},a=null;if(t.quotaTenantConfigBeans)for(var o=0;o<t.quotaTenantConfigBeans.length;o++)if(t.quotaTenantConfigBeans[o].platformId===e){a=t.quotaTenantConfigBeans[o];break}return a},n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1},n.checkbox=n.props.quotaTenantInfo.size>0&&n.props.quotaTenantInfo.toJS().quotaTenantConfigBeans.length>1,n.quotaTenantInfo=[],n.validateFuncs={},n}return(0,i.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.getDerivedStateFromProps=function(e){if("{}"!==JSON.stringify(e.submitQuotaTenantInfo)){var t=e.submitQuotaTenantInfo.toJS();return 1===t.code||"1"===t.code?((0,c.NotificationWithIcon)("success","\u7f16\u8f91\u6210\u529f\uff01"),e.closeQuotaTenant("close"),e.dispatch(f.quotaTenantActions.resetSubmitQuotaTenantInfo()),{modalVisible:!1,confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(e.dispatch(f.quotaTenantActions.resetSubmitQuotaTenantInfo()),o.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"})}return null},t.prototype.render=function(){var e=this;return(0,n.default)(v,{},void 0,(0,n.default)(o.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,n.default)("p",{},void 0,this.state.modalTxt)),(0,n.default)(c.ModelConfigPanel,{title:"Hive",style:y},void 0,(0,n.default)(p.default,{data:this.getQuotaTenantInfoByType("hive"),setValidateFunc:this.setValidateFunc})),(0,n.default)(c.ModelConfigPanel,{title:"Spark",checkboxTitle:"\u662f\u5426\u652f\u6301",checkbox:!(!this.checkbox&&null===this.getQuotaTenantInfoByType("spark")),onChange:function(t){return e.checkOnChange(t)},style:y},void 0,(0,n.default)(m.default,{data:this.getQuotaTenantInfoByType("spark"),setValidateFunc:this.setValidateFunc})))},t}(d.default.PureComponent);t.default=(0,l.connect)((function(e){return{submitQuotaTenantInfo:(0,h.selectSubmitQuotaTenantInfo)(e)}}))(b)},"./src/module/sysManage/userActionManager/rolesManager/RolesManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=M(a("./node_modules/antd/es/table/index.js")),o=M(a("./node_modules/antd/es/button/index.js")),s=M(a("./node_modules/antd/es/tooltip/index.js")),r=M(a("./node_modules/babel-runtime/helpers/jsx.js")),i=M(a("./node_modules/antd/es/message/index.js")),d=M(a("./node_modules/antd/es/modal/index.js")),l=M(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=M(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=M(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var p=M(a("./node_modules/react/index.js")),f=(M(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=M(a("./src/components/auth/funAuth.jsx")),h=a("./src/components/index.js"),g=a("./src/redux/reducers/sysManager/rolesManager.js"),v=a("./src/redux/reducers/sysManager/userGroupsManager.js"),y=a("./src/redux/reducers/sysManager/userManager.js"),b=M(a("./src/module/sysManage/userActionManager/rolesManager/component/CreateRolesConfig.jsx")),x=M(a("./src/module/sysManage/userActionManager/rolesManager/component/ModuleMenuPage.jsx")),C=M(a("./src/module/sysManage/userActionManager/permissionManager/ModulePermissionPage.jsx")),j=a("./src/redux/selectors/sysManager/userManager.js"),S=a("./src/redux/selectors/sysManager/userGroupsManager.js"),I=M(a("./src/module/sysManage/userActionManager/rolesManager/component/SearchBar.jsx")),T=a("./src/module/sysManage/userActionManager/userUtil.js"),w=a("./src/utils/authPermit.js"),E=a("./src/redux/selectors/sysManager/rolesManager.js"),D=a("./src/styles/GlobalStyle.js");function M(e){return e&&e.__esModule?e:{default:e}}var k=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),P=(0,r.default)(h.LoadingIndicator,{position:"relative"}),L=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.fetchData=function(e){n.props.dispatch(g.rolesActions.getSysRolesListRequest(e))},n.callRelationModalVisible=function(e){void 0!==e||n.state.viewType,n.setState({relationModalVisible:!1,viewType:""})},n.editRelation=function(e,t){for(var a=[],o=0;e["userGroups"===t?"groups":"users"]&&o<e["userGroups"===t?"groups":"users"].length;o++)a.push(e["userGroups"===t?"groups":"users"][o]["userGroups"===t?"groupId":"userId"]);n.roleId=e.roleId,"userGroups"===t?(n.props.dispatch(v.userGroupsActions.loadSysUserGroupsListRequest({tenantId:""})),n.setState({targetKeys:[].concat(a),relationModalVisible:!0,relationType:t})):"users"===t?(n.props.dispatch(y.userActions.loadSysUserListRequest({tenantId:"",userType:0})),n.setState({targetKeys:[].concat(a),relationModalVisible:!0,relationType:t})):"power"===t?n.setState({resPermitsModalVisible:!0,permissions:n.updatePermissions(e.permissions)}):"menu"===t&&n.setState({menuModalVisible:!0})},n.addOperatePermitsClick=function(){var e=n.state.permissions,t={roleId:n.roleId,moduleId:"",permissionId:"",permitType:"1",key:_.uniqueId()};n.setState({permissions:[].concat(e,[t])})},n.updatePermissions=function(e){for(var t=[],a=0;a<e.length;a++){var o={roleId:n.props.roleData.roleId,moduleId:e[a].moduleId,permissionId:e[a].permissionId,permitType:"1",key:_.uniqueId()};t.push(o)}return t},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),n.fetchData(n.searchCond)},n.editRoles=function(e,t){n.props.dispatch(g.rolesActions.resetRolesInfo()),n.props.dispatch(g.rolesActions.getSysRolesInfoRequest({roleId:e.roleId})),n.setState({viewType:t,modalVisible:!0})},n.delRoles=function(e){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.roleName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(g.rolesActions.deleteRolesRequest(e.roleId)),new Promise((function(t){_.defer((function(){var a=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(a),0===_.size(n.props.operateError)?(i.default.success("\u5220\u9664[ "+e.roleName+" ]\u6210\u529f!"),n.props.dispatch(g.rolesActions.resetDeleteRoles()),n.props.dispatch(g.rolesActions.getSysRolesListRequest(n.searchCond))):i.default.error("\u5220\u9664[ "+e.roleName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.openKpiConfig=function(e){n.props.dispatch(g.rolesActions.resetSubmitRolesData()),n.setState({modalVisible:!0,viewType:e})},n.callVisible=function(e){void 0!==e||n.state.viewType,n.setState({modalVisible:!1,viewType:""})},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.handleChange=function(e,t){if("select"===t)n.setState({targetKeys:[].concat(e)});else if(0===e.length)i.default.info("\u8bf7\u9009\u62e9\u6570\u636e\uff01");else{var a=n;d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4fdd\u5b58\u6b64\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){a.setState({confirmLoading:!0}),"userGroups"===a.state.relationType?a.props.dispatch(g.rolesActions.submitRolesGroupsDataRequest({roleId:a.roleId,config:e})):a.props.dispatch(g.rolesActions.submitRolesUserDataRequest({roleId:a.roleId,config:e}))}})}},n.getIndiData=function(e){n.setState({permissions:[].concat(e)})},n.callResPermitsModalVisible=function(){n.setState({resPermitsModalVisible:!1})},n.callMenuModalVisible=function(){n.setState({menuModalVisible:!1})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.submitModalOk=function(){n.createRolesConfig.saveKpi()},n.state={modalVisible:!1,viewType:"",currentPage:1,relationType:"",relationModalVisible:!1,targetKeys:[],_this:n,confirmLoading:!1,permissions:[],menuModalVisible:!1},n.validateFuncs={},n.roleId="",n.columns=[{title:k,width:"7%",dataIndex:"roleId",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u89d2\u8272\u540d\u79f0",dataIndex:"roleName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u89d2\u8272\u7c7b\u578b",dataIndex:"scopeType",ellipsis:!0,render:function(e){return(0,r.default)("span",{},void 0,"PROJECT"===e?"\u9879\u76ee\u89d2\u8272":"\u79df\u6237\u89d2\u8272")}},{title:"\u79df\u6237",dataIndex:"tenantId",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u89d2\u8272\u63cf\u8ff0",dataIndex:"roleDesc",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5df2\u5173\u8054\u7528\u6237",dataIndex:"users",width:"17%",render:function(e){var t="";if(e){for(var a=0;a<e.length;a++)t+=e[a].userName+"\u3001";t=t.substring(0,t.length-1)}return(0,r.default)(h.LineWrap,{title:t||"\u65e0",lineClampNum:1})}},{title:"\u5df2\u5173\u8054\u7528\u6237\u7ec4",dataIndex:"groups",width:"17%",render:function(e){var t="";if(e){for(var a=0;a<e.length;a++)t+=e[a].groupName+"\u3001";t=t.substring(0,t.length-1)}return(0,r.default)(h.LineWrap,{title:t||"\u65e0",lineClampNum:1})}},{title:"\u64cd\u4f5c",width:"250px",render:function(e,t){var a=[{handleName:"\u4fee\u6539",handleAction:function(){n.editRoles(t,"edit")}},{handleName:"\u5220\u9664",handleAction:function(){n.delRoles(t)}}],o=[];return(0,w.getUserAdditionalInfo)().isPlatformAdmin?o.push("PLATFORM"):(0,w.getUserAdditionalInfo)().isProjectAdmin?o.push("PROJECT"):(0,w.getUserAdditionalInfo)().isTenantAdmin&&o.push("TENANT"),-1!==_.indexOf(o,t.scopeType)&&(a.push({handleName:"\u7ed1\u5b9a\u7528\u6237",handleAction:function(){n.editRelation(t,"users")}}),a.push({handleName:"\u7ed1\u5b9a\u7528\u6237\u7ec4",handleAction:function(){n.editRelation(t,"userGroups")}})),a.push({handleName:"\u7ed1\u5b9a\u83dc\u5355",handleAction:function(){n.editRelation(t,"menu")}}),(0,r.default)(h.ListButtons,{buttons:a,maxShowNum:3})}}],n.columns=(0,T.dataFormat)(n.columns),n.searchCond={roleName:"",sortField:"CREATE_AT",offset:1,limit:10},n}return(0,c.default)(t,e),t.getDerivedStateFromProps=function(e,t){return 0!==e.rolesRelationCode?(-1!==e.rolesRelationCode?(i.default.success("\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(g.rolesActions.resetRolesRelationData()),t._this.fetchData(t._this.searchCond)):d.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{resPermitsModalVisible:!1,confirmLoading:!1,relationModalVisible:!1}):null},t.prototype.componentDidMount=function(){this.props.dispatch(g.rolesActions.getSysRolesListRequest(this.searchCond))},t.prototype.render=function(){var e=this,t=this.props.rolePagination?this.props.rolePagination.toJS():{},a=null!==this.props.roleList&&void 0!==this.props.roleList?this.props.roleList.toJS():[];return(0,r.default)(D.PageWrapper,{},void 0,(0,r.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"\u6a21\u5757\u6743\u9650",onCancelType:!1,width:1200,callVisible:this.callResPermitsModalVisible,modalVisible:this.state.resPermitsModalVisible,comp:(0,r.default)(C.default,{roleId:this.roleId})}),(0,r.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"\u83dc\u5355\u6743\u9650",onCancelType:!1,width:600,callVisible:this.callMenuModalVisible,modalVisible:this.state.menuModalVisible,comp:(0,r.default)(x.default,{roleId:this.roleId,callVisible:this.callMenuModalVisible})}),(0,r.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"users"===this.state.relationType?"\u7528\u6237\u4fe1\u606f":"\u7528\u6237\u7ec4\u4fe1\u606f",onCancelType:!1,width:500,callVisible:this.callRelationModalVisible,modalVisible:this.state.relationModalVisible,comp:(0,r.default)(h.TransferView,{title:"users"===this.state.relationType?"userName":"groupName",dataKey:"users"===this.state.relationType?"userId":"groupId",viewType:this.state.viewType,dataSource:"users"===this.state.relationType?this.props.usersDataSource.toJS():this.props.userGroupsDataSource.toJS(),confirmLoading:this.state.confirmLoading,targetKeys:this.state.targetKeys,handleChange:function(t,a){return e.handleChange(t,a)}})}),(0,r.default)(h.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539\u89d2\u8272":"view"===this.state.viewType?"\u67e5\u770b\u89d2\u8272":"\u65b0\u5efa\u89d2\u8272",onCancelType:!1,width:800,okText:"\u786e\u5b9a\u63d0\u4ea4",submitModalOk:this.submitModalOk,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:"create"===this.state.viewType?(0,r.default)(b.default,{onRef:function(t){e.createRolesConfig=t},searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):this.props.roleData.size>0?(0,r.default)(b.default,{onRef:function(t){e.createRolesConfig=t},roleData:this.props.roleData.toJS(),searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):(0,r.default)(h.LoadingIndicator,{style:{height:100}})},this.state.viewType),(0,r.default)(D.PageHeader,{},void 0,(0,r.default)(m.default,{permissions:["ROLE:CREATE"],displayType:"hide"},void 0,(0,r.default)(o.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u89d2\u8272")),(0,r.default)(I.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,r.default)(D.PageBody,{},void 0,(0,r.default)(D.TableWrapper,{},void 0,this.props.loading&&P,!this.props.loading&&(0,r.default)(n.default,{dataSource:a,rowKey:"roleId",bordered:!0,pagination:!1,columns:this.columns}),(0,r.default)(h.TabPagination,{currentPage:t.offset,pageSize:10,total:t.total,onChange:this.onChangePage}))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(e){return{userGroupsDataSource:(0,S.selectLoadUserGroupsList)(e),usersDataSource:(0,j.loadUserList)(e),operateError:(0,E.selectOperateError)(e),opreateLoading:(0,E.selectOperateLoading)(e),rolePagination:(0,E.selectRolesPagination)(e),loading:(0,E.selectRolesListLoading)(e),roleList:(0,E.selectRolesList)(e),roleData:(0,E.selectRolesInfo)(e),rolesRelationCode:(0,E.selectRolesRelationCode)(e)}}))(L)},"./src/module/sysManage/userActionManager/rolesManager/component/CreateRolesConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateRolesConfigPage=void 0;var n=T(a("./node_modules/antd/es/col/index.js")),o=T(a("./node_modules/antd/es/row/index.js")),s=T(a("./node_modules/babel-runtime/helpers/jsx.js")),r=T(a("./node_modules/antd/es/modal/index.js")),i=T(a("./node_modules/antd/es/message/index.js")),d=T(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=T(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=T(a("./node_modules/babel-runtime/helpers/inherits.js")),c=T(a("./node_modules/antd/es/select/index.js")),p=T(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var f=T(a("./node_modules/react/index.js")),m=a("./node_modules/react-redux/es/index.js"),h=a("./node_modules/immutable3/dist/immutable.js"),g=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var v=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),y=(T(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),b=a("./src/redux/reducers/sysManager/rolesManager.js"),x=a("./src/redux/selectors/sysManager/rolesManager.js"),C=a("./src/utils/authPermit.js"),j=a("./src/redux/selectors/sysManager/quotaTenantManager.js"),S=T(a("./src/components/common/CheckName.jsx")),I=a("./src/redux/selectors/checkName.js");function T(e){return e&&e.__esModule?e:{default:e}}var w=p.default.TextArea,E=c.default.Option,D=g.Form.Item,M=t.CreateRolesConfigPage=v.default.div.withConfig({displayName:"CreateRolesConfig__CreateRolesConfigPage",componentId:"xp9dhq-0"})(["overflow-x:hidden;height:auto;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),k={width:"100%"},P=(0,s.default)("span",{},void 0,"\u89d2\u8272\u540d\u79f0 :"),L=(0,s.default)(E,{value:""},void 0,"\u8bf7\u9009\u79df\u6237"),N=(0,s.default)("span",{},void 0,"\u89d2\u8272\u5907\u6ce8 :"),A=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.closeModal=function(){n.props.closeKpiConfig()},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&n.setState({modalVisible:!0})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."});var e=(0,C.getPlatformFlag)(),t={roleId:_.get(n,"roleData.roleId",""),roleName:_.get(n,"roleData.roleName"),roleDesc:_.get(n,"roleData.roleDesc")};e&&(t.tenantId=_.get(n,"roleData.tenantId")),n.props.dispatch(b.rolesActions.submitRolesDataRequest({subType:n.props.viewType,roleData:t}))},n.getRolesBlur=function(e,t){n.roleData[t]=e},n.emitEmptyRolesName=function(){n.rolesName.focus(),n.props.form.setFieldsValue({rolesName:""}),n.roleData.rolesName=""},n.deleteValiFuncs=function(){n.validateFuncs={}},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.updateName=function(e){n.setState({roleName:e}),n.roleData.roleName=e,n.props.form.setFieldsValue({roleName:e})},n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1,_this:n,roleName:"create"!==n.props.viewType?n.props.roleData.roleName:""},n.checkNameRef=f.default.createRef(),n.roleData="create"!==n.props.viewType?n.props.roleData:{tenantId:"",users:[],groups:[]},n.validateFuncs={},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.getDerivedStateFromProps=function(e){if("{}"!==JSON.stringify(e.submitRolesData)){var t=(0,h.Map)(e.submitRolesData);return 1===t.get("code")||"0000"===t.get("code")?(i.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(b.rolesActions.resetSubmitRolesData()),e.closeKpiConfig("close"),e.fetchData(e.searchCond),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(e.dispatch(b.rolesActions.resetSubmitRolesData()),r.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"})}return null},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=(0,C.getPlatformFlag)(),i=this.props.sysQuotaTenantDown?this.props.sysQuotaTenantDown.toJS():{};return(0,s.default)(M,{},void 0,(0,s.default)(r.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,s.default)("p",{},void 0,this.state.modalTxt)),(0,s.default)(y.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:k},void 0,(0,s.default)(g.Form,{style:{paddingLeft:16},layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{},void 0,(0,s.default)(D,{help:""},void 0,P,t("roleName",{rules:[{required:!0,min:0,max:30},{validator:this.handleCheckNameValidate}],initialValue:this.state.roleName})(f.default.createElement(S.default,{ref:this.checkNameRef,source:"role",style:{marginLeft:"20px",width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u89d2\u8272\u767b\u5f55\u540d",modelId:"create"===this.props.viewType?"":this.props.roleData.roleId,updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\userActionManager\\rolesManager\\component\\CreateRolesConfig.jsx",lineNumber:197}}))))),a&&(0,s.default)(o.default,{style:{marginTop:15}},void 0,(0,s.default)(n.default,{span:20},void 0,(0,s.default)(D,{help:""},void 0,(0,s.default)("span",{style:{marginLeft:20}},void 0,"\u79df \u6237 :"),t("tenantId ",{rules:[{required:!0}],initialValue:this.roleData.tenantId})((0,s.default)(c.default,{disabled:"view"===this.props.viewType,onChange:function(t){return e.getRolesBlur(t,"tenantId")},getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u79df\u6237",style:{marginLeft:"20px",width:200}},void 0,L,i.map((function(e){return(0,s.default)(E,{title:e.tenantName,value:e.tenantId},e.tenantId,e.tenantName)}))))))),(0,s.default)(o.default,{style:{marginTop:20}},void 0,(0,s.default)(n.default,{span:24},void 0,(0,s.default)(D,{help:""},void 0,N,t("roleDesc ",{rules:[{max:100}],initialValue:this.roleData.roleDesc})((0,s.default)(w,{disabled:"view"===this.props.viewType,autosize:{minRows:2,maxRows:2},style:{marginLeft:"20px",width:530,marginRight:10,min:0,max:450},onBlur:function(t){return e.getRolesBlur(t.target.value,"roleDesc")},rows:8}))))))))},t}(f.default.PureComponent);t.default=(0,m.connect)((function(e){return{checkNameVerifyInfo:(0,I.selectVerifyInfo)(e),submitRolesData:(0,x.selectSubmitRolesData)(e),sysQuotaTenantDown:(0,j.selectSysQuotaTenantDown)(e)}}))(g.Form.create()(A))},"./src/module/sysManage/userActionManager/rolesManager/component/ModuleMenuPage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/button/index.js")),o=x(a("./node_modules/antd/es/col/index.js")),s=x(a("./node_modules/antd/es/row/index.js")),r=x(a("./node_modules/babel-runtime/helpers/jsx.js")),i=x(a("./node_modules/antd/es/message/index.js")),d=x(a("./node_modules/antd/es/modal/index.js")),l=x(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),u=x(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=x(a("./node_modules/babel-runtime/helpers/inherits.js")),p=x(a("./node_modules/antd/es/input/index.js")),f=x(a("./node_modules/antd/es/tree/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/tree/style/index.js");var m=x(a("./node_modules/react/index.js")),h=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./node_modules/react-redux/es/index.js"),v=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");x(a("./node_modules/prop-types/index.js"));var _=a("./src/components/index.js"),y=x(a("./src/redux/services/sysManager/sysManager.js")),b=x(a("./node_modules/lodash/lodash.js"));function x(e){return e&&e.__esModule?e:{default:e}}var C=f.default.TreeNode,j=p.default.Search,S=v.Form.Item,I=h.default.div.withConfig({displayName:"ModuleMenuPage__ModuleMenuPageDom",componentId:"sc-6u0nb0-0"})(["width:100%;max-height:500px;"]),T=h.default.div.withConfig({displayName:"ModuleMenuPage__BottomDom",componentId:"sc-6u0nb0-1"})(["width:106%;padding-right:16px;padding-top:8px;background:transparent;border-top:1px solid #e8e8e8;border-radius:0 0 4px 4px;margin-left:-16px;margin-top:50px;text-align:right;margin-bottom:-8px;"]),w=(0,r.default)(_.LoadingIndicator,{position:"relative"}),E=function(e){function t(a){(0,l.default)(this,t);var n=(0,u.default)(this,e.call(this,a));return n.fetchMenuTreeByRole=function(e){y.default.loadMenuTreeByRoleId(e).then((function(e){for(var t=[],a=0;a<e.data.length;a++)t.push(e.data[a].moduleId);n.setState({checkedKeys:t})})).catch((function(){n.setState({checkedKeys:[]})}))},n.fetchAllMenuTreeData=function(){n.setState({treeDataLogin:!0}),y.default.loadAllMenuTree().then((function(e){var t=e.data;n.generateList(t),n.setState({treeData:t,treeDataLogin:!1})})).catch((function(){n.setState({treeData:[],treeDataLogin:!1})}))},n.saveOperation=function(){d.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u662f\u5426\u4fdd\u5b58\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){n.setState({saveLoading:!0}),y.default.bangdingMenuOrRole(n.props.roleId,n.state.checkedKeys).then((function(){n.setState({saveLoading:!1}),n.props.callVisible(),i.default.success("\u7ed1\u5b9a\u6210\u529f\uff01")})).catch((function(){n.setState({saveLoading:!1}),i.default.error("\u7ed1\u5b9a\u5931\u8d25\uff01")}))}})},n.onExpand=function(e){n.setState({expandedKeys:e,autoExpandParent:!1})},n.onCheck=function(e,t){var a=e.checked,o=b.default.get(t,"node.key"),s=[].concat(a),r=[];n.getChildrenKeys(r,o),b.default.get(t,"checked")&&r.length>0?s=Array.from(new Set([].concat(s,r))):!b.default.get(t,"checked")&&r.length>0&&(s=s.filter((function(e){return!r.includes(e)}))),n.setState({checkedKeys:s})},n.onChange=function(e){var t=e.target.value,a=n.dataList.map((function(e){return e.title.indexOf(t)>-1?n.getParentKey(e.key,n.state.treeData):null})).filter((function(e,t,a){return e&&a.indexOf(e)===t}));n.setState({expandedKeys:a,searchValue:t,autoExpandParent:!0})},n.getParentKey=function(e,t){for(var a=void 0,o=0;o<t.length;o++){var s=t[o];s.children&&(s.children.some((function(t){return t.key===e}))?a=s.key:n.getParentKey(e,s.children)&&(a=n.getParentKey(e,s.children)))}return a},n.getChildrenKeys=function(e,t){if(!n.keyChildrenKeys[t])return e;for(var a=0;a<n.keyChildrenKeys[t].length;a++){var o=n.keyChildrenKeys[t][a];e.push(o),o&&n.getChildrenKeys(e,o)}},n.generateList=function(e,t){for(var a=0;a<e.length;a++){var o=e[a],s=o.key,r=o.title;n.dataList.push({key:s,title:r}),t&&(n.keyChildrenKeys[t]?n.keyChildrenKeys[t].push(s):n.keyChildrenKeys[t]=[s]),o.children&&n.generateList(o.children,s)}},n.handleExpand=function(e){var t=[];"open"===e&&(t=n.dataList.map((function(e){return e.key}))),n.setState({expandedKeys:t})},n.state={saveLoading:!1,treeData:[],treeDataLogin:!1,selectTreeDataByRoleId:[],expandedKeys:[],checkedKeys:[],autoExpandParent:!0,searchValue:""},n.dataList=[],n.keyChildrenKeys={},n}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this.fetchAllMenuTreeData(),this.fetchMenuTreeByRole(this.props.roleId)},t.prototype.render=function(){var e=this,t=this.state,a=t.saveLoading,i=t.treeData,d=t.searchValue,l=t.treeDataLogin,u=t.checkedKeys,c=t.expandedKeys,p=t.autoExpandParent;return(0,r.default)("div",{},void 0,(0,r.default)(I,{},void 0,l&&w,!l&&(0,r.default)(v.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(S,{label:"\u540d\u79f0\u67e5\u8be2"},void 0,(0,r.default)(j,{placeholder:"\u8f93\u5165\u6761\u4ef6\u53ef\u4ee5\u67e5\u8be2",onChange:this.onChange}))),(0,r.default)(o.default,{span:8},void 0,(0,r.default)(n.default,{type:"link",onClick:function(){return e.handleExpand("open")}},void 0,"\u5c55\u5f00"),(0,r.default)(n.default,{type:"link",onClick:this.handleExpand},void 0,"\u6536\u8d77"))),(0,r.default)(s.default,{style:{maxHeight:300,overflow:"auto"}},void 0,(0,r.default)(o.default,{span:12},void 0,(0,r.default)(S,{label:"\u83dc\u5355\u6570\u636e"},void 0,(0,r.default)(f.default,{checkable:!0,checkStrictly:!0,onCheck:this.onCheck,checkedKeys:u,onExpand:this.onExpand,expandedKeys:c,autoExpandParent:p},void 0,function e(t){return t.map((function(t){var a=t.title.indexOf(d),n=t.title.substr(0,a),o=t.title.substr(a+d.length),s=a>-1?(0,r.default)("span",{style:{whiteSpace:"nowrap"}},void 0,n,(0,r.default)("span",{style:{color:"#f50"}},void 0,d),o):(0,r.default)("span",{style:{whiteSpace:"nowrap"}},void 0,t.title);return t.children?(0,r.default)(C,{title:s},t.key,e(t.children)):(0,r.default)(C,{title:s},t.key)}))}(i))))))),(0,r.default)(T,{},void 0,(0,r.default)(n.default,{loading:a,onClick:function(){e.saveOperation()},type:"primary"},void 0,"\u4fdd \u5b58")))},t}(m.default.Component);t.default=(0,g.connect)((function(){return{}}))(v.Form.create()(E))},"./src/module/sysManage/userActionManager/rolesManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h={width:"120px"},g=(0,n.default)(f,{value:"CREATE_AT"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),v=(0,n.default)(f,{value:"UPDATE_AT"},void 0,"\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f"),y=(0,n.default)(f,{value:"ROLE_NAME"},void 0,"\u6309\u540d\u79f0\u6392\u5e8f"),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("roleName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,style:h,placeholder:"\u6392\u5e8f\u6761\u4ef6",getPopupContainer:function(e){return e.parentNode},defaultValue:this.props.sortField,className:"sort-cond"},void 0,g,v,y)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(b)},"./src/module/sysManage/userActionManager/userGroupsManager/UserGroupsManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=M(a("./node_modules/antd/es/table/index.js")),o=M(a("./node_modules/antd/es/button/index.js")),s=M(a("./node_modules/antd/es/tooltip/index.js")),r=M(a("./node_modules/babel-runtime/helpers/jsx.js")),i=M(a("./node_modules/babel-runtime/helpers/extends.js")),d=M(a("./node_modules/antd/es/message/index.js")),l=M(a("./node_modules/antd/es/modal/index.js")),u=M(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=M(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=M(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=M(a("./node_modules/react/index.js")),m=(M(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=a("./node_modules/immutable3/dist/immutable.js"),g=M(a("./src/components/auth/funAuth.jsx")),v=a("./src/components/index.js"),y=a("./src/redux/reducers/sysManager/rolesManager.js"),b=a("./src/redux/reducers/sysManager/userGroupsManager.js"),x=a("./src/redux/reducers/sysManager/userManager.js"),C=a("./src/redux/selectors/sysManager/rolesManager.js"),j=M(a("./src/module/sysManage/userActionManager/userGroupsManager/component/CreateUserGroupsConfig.jsx")),S=a("./src/redux/selectors/sysManager/userManager.js"),I=M(a("./src/module/sysManage/userActionManager/userGroupsManager/component/SearchBar.jsx")),T=M(a("./src/module/sysManage/userActionManager/permissionManager/ResourcePermissionPage.jsx")),w=a("./src/module/sysManage/userActionManager/userUtil.js"),E=a("./src/redux/selectors/sysManager/userGroupsManager.js"),D=a("./src/styles/GlobalStyle.js");function M(e){return e&&e.__esModule?e:{default:e}}var k=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),P=(0,r.default)(v.LoadingIndicator,{position:"relative"}),L=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.fetchData=function(e){n.props.dispatch(b.userGroupsActions.getSysUserGroupsListRequest(e))},n.callRelationModalVisible=function(e){void 0!==e||n.state.viewType,n.setState({relationModalVisible:!1,viewType:""})},n.editRelation=function(e,t){var a=[];if(n.groupId=e.groupId,"power"!==t){for(var o=0;e["roles"===t?"roles":"users"]&&o<e["roles"===t?"roles":"users"].length;o++)a.push(e["roles"===t?"roles":"users"][o]["roles"===t?"roleId":"userId"]);"roles"===t?n.props.dispatch(y.rolesActions.loadSysRolesListRequest({tenantId:""})):"users"===t&&n.props.dispatch(x.userActions.loadSysUserListRequest({tenantId:"",userType:0})),n.groupId=e.groupId,n.setState({targetKeys:[].concat(a),relationModalVisible:!0,relationType:t})}else n.setState({resPermits:n.formatResPermits(e.resPermits),resPermitsModalVisible:!0})},n.formatResPermits=function(e){var t=_.reduce(e,(function(e,t){return e[t.resDomain]=e[t.resDomain]||[],e[t.resDomain].push(t.resId),e}),{}),a=[];return Object.keys(t).forEach((function(e){var n={resDomain:e.toString(),resId:t[e],labelId:"",labelValue:"",key:_.uniqueId()};a.push(n)})),a},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),delete n.searchCond.offset,delete n.searchCond.limit,n.fetchData(n.searchCond)},n.editUserGroups=function(e,t){n.props.dispatch(b.userGroupsActions.resetUserGroupsInfo()),n.props.dispatch(b.userGroupsActions.getSysUserGroupsInfoRequest({groupId:e.groupId})),n.setState({viewType:t,modalVisible:!0})},n.delUserGroups=function(e){l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.groupName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(b.userGroupsActions.deleteUserGroupsRequest(e.groupId)),new Promise((function(t){_.defer((function(){var a=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(a),0===_.size(n.props.operateError)?(d.default.success("\u5220\u9664[ "+e.groupName+" ]\u6210\u529f!"),n.props.dispatch(b.userGroupsActions.resetDeleteUserGroups()),n.props.dispatch(b.userGroupsActions.getSysUserGroupsListRequest(n.searchCond))):d.default.error("\u5220\u9664[ "+e.groupName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.openKpiConfig=function(e){n.props.dispatch(b.userGroupsActions.resetSubmitUserGroupsData()),n.setState({modalVisible:!0,viewType:e})},n.callVisible=function(e){void 0!==e||n.state.viewType,n.setState({modalVisible:!1,viewType:""})},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.handleChange=function(e,t){if("select"===t)n.setState({targetKeys:[].concat(e)});else{var a=n;l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4fdd\u5b58\u6b64\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){a.setState({confirmLoading:!0}),"users"===a.state.relationType?a.props.dispatch(b.userGroupsActions.submitGroupsUserDataRequest({groupId:a.groupId,config:e})):a.props.dispatch(b.userGroupsActions.submitGroupsRolesDataRequest({groupId:a.groupId,config:e}))}})}},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.deleteValiFuncs=function(){n.validateFuncs={}},n.resHandleChange=function(e,t){var a=n,o=!0,s={};Object.keys(n.validateFuncs).map((function(e){var t=n.validateFuncs[e];if(_.isFunction(t)){var a=t.call();a.validate?s[e]=a.moduleData:o=!1}})),o&&l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4fdd\u5b58\u6b64\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){a.setState({confirmLoading:!0});for(var n=0;n<e.length;n++)delete e[n].key;t.resPermits=0===e.length?[]:a.getResPermits(e),delete t.dataScopeType,delete t.dataScope,a.props.dispatch(b.userGroupsActions.submitUserGroupsDataRequest({subType:"edit",userGroupsData:t}))}})},n.getResPermits=function(e){for(var t=[],a=0;a<e.length;a++)for(var n=0;n<e[a].resId.length;n++){var o=(0,i.default)({},e[a]);o.resId=e[a].resId[n],t.push(o)}return t},n.callResPermitsModalVisible=function(){n.setState({resPermitsModalVisible:!1,viewType:""})},n.submitModalOk=function(){n.createUserGroupsConfig.saveKpi()},n.state={modalVisible:!1,viewType:"",currentPage:1,relationType:"",relationModalVisible:!1,resPermitsModalVisible:!1,targetKeys:[],_this:n,confirmLoading:!1,resPermits:[]},n.validateFuncs={},n.groupId="",n.columns=[{title:k,width:"7%",dataIndex:"groupId",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:"\u7528\u6237\u7ec4\u540d\u79f0",dataIndex:"groupName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u79df\u6237",dataIndex:"tenantId",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5df2\u7ed1\u5b9a\u89d2\u8272",dataIndex:"roles",width:"20%",render:function(e){var t="";if(e){for(var a=0;a<e.length;a++)t+=e[a].roleName+"\u3001";t=t.substring(0,t.length-1)}return(0,r.default)(v.LineWrap,{title:t||"\u65e0",lineClampNum:1})}},{title:"\u5df2\u5173\u8054\u7528\u6237",dataIndex:"users",width:"22%",render:function(e){var t="";if(e){for(var a=0;a<e.length;a++)t+=e[a].userName+"\u3001";t=t.substring(0,t.length-1)}return(0,r.default)(v.LineWrap,{title:t||"\u65e0",lineClampNum:1})}},{title:"\u64cd\u4f5c",width:"230px",render:function(e,t){var a=[{handleName:"\u4fee\u6539",handleAction:function(){n.editUserGroups(t,"edit")}},{handleName:"\u5220\u9664",handleAction:function(){n.delUserGroups(t)}}];return a.push({handleName:"\u7ed1\u5b9a\u7528\u6237",handleAction:function(){n.editRelation(t,"users")}},{handleName:"\u7ed1\u5b9a\u89d2\u8272",handleAction:function(){n.editRelation(t,"roles")}},{handleName:"\u7ed1\u5b9a\u8d44\u6e90",handleAction:function(){n.editRelation(t,"power")}}),(0,r.default)(v.ListButtons,{buttons:a,maxShowNum:3})}}],n.columns=(0,w.dataFormat)(n.columns),n.searchCond={groupName:"",sortField:"CREATE_AT",offset:1,limit:10},n}return(0,p.default)(t,e),t.getDerivedStateFromProps=function(e,t){if(0!==e.userGroupsRelationCode)return-1!==e.userGroupsRelationCode?(d.default.success("\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(b.userGroupsActions.resetUserGroupsRelationData()),t._this.fetchData(t._this.searchCond)):l.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,relationModalVisible:!1,resPermitsModalVisible:!1};if("{}"!==JSON.stringify(e.submitUserGroupsData)){var a=(0,h.Map)(e.submitUserGroupsData);return 1===a.get("code")||"0000"===a.get("code")?(d.default.success("edit"!==t.viewType?"\u4fdd\u5b58\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(b.userGroupsActions.resetSubmitUserGroupsData()),t._this.callVisible("close"),t._this.callResPermitsModalVisible("close"),t._this.fetchData(t._this.searchCond),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,relationModalVisible:!1,resPermitsModalVisible:!1}):(e.dispatch(b.userGroupsActions.resetSubmitUserGroupsData()),l.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,relationModalVisible:!1,resPermitsModalVisible:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"})}return null},t.prototype.componentDidMount=function(){this.props.dispatch(b.userGroupsActions.getSysUserGroupsListRequest(this.searchCond))},t.prototype.render=function(){var e=this,t=this.props.userGroupsPagination?this.props.userGroupsPagination.toJS():{},a=null!==this.props.userGroupsList&&void 0!==this.props.userGroupsList?this.props.userGroupsList.toJS():[];return(0,r.default)(D.PageWrapper,{},void 0,(0,r.default)(v.ModalView,{viewType:this.state.viewType,modalTitle:"\u9009\u62e9\u8d44\u6e90\u8303\u56f4",onCancelType:!1,width:800,callVisible:this.callResPermitsModalVisible,modalVisible:this.state.resPermitsModalVisible,comp:(0,r.default)(T.default,{id:this.groupId,type:"groups"})}),(0,r.default)(v.ModalView,{viewType:this.state.viewType,modalTitle:"users"===this.state.relationType?"\u7528\u6237\u4fe1\u606f":"\u89d2\u8272\u4fe1\u606f",onCancelType:!1,width:700,callVisible:this.callRelationModalVisible,modalVisible:this.state.relationModalVisible,comp:(0,r.default)(v.TransferView,{listStyle:{width:260,height:300},title:"users"===this.state.relationType?"userName":"roleName",dataKey:"users"===this.state.relationType?"userId":"roleId",viewType:this.state.viewType,dataSource:"users"===this.state.relationType?this.props.usersDataSource.toJS():this.props.rolesDataSource.toJS(),confirmLoading:this.state.confirmLoading,targetKeys:this.state.targetKeys,handleChange:function(t,a){return e.handleChange(t,a)}})}),(0,r.default)(v.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539\u7528\u6237\u7ec4":"view"===this.state.viewType?"\u67e5\u770b\u7528\u6237\u7ec4":"\u65b0\u5efa\u7528\u6237\u7ec4",onCancelType:!1,width:800,okText:"\u786e\u5b9a\u63d0\u4ea4",submitModalOk:this.submitModalOk,callVisible:this.callVisible,modalVisible:this.state.modalVisible,comp:"create"===this.state.viewType?(0,r.default)(j.default,{onRef:function(t){e.createUserGroupsConfig=t},searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):this.props.userGroupsData.size>0?(0,r.default)(j.default,{onRef:function(t){e.createUserGroupsConfig=t},userGroupsData:this.props.userGroupsData.toJS(),searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):(0,r.default)(v.LoadingIndicator,{style:{height:100}})},this.state.viewType),(0,r.default)(D.PageHeader,{},void 0,(0,r.default)(g.default,{permissions:["USER_GROUP:CREATE"],displayType:"hide"},void 0,(0,r.default)(o.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u7528\u6237\u7ec4")),(0,r.default)(I.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,r.default)(D.PageBody,{},void 0,(0,r.default)(D.TableWrapper,{},void 0,this.props.loading&&P,!this.props.loading&&(0,r.default)(n.default,{dataSource:a,rowKey:"groupId",bordered:!0,pagination:!1,columns:this.columns}),(0,r.default)(v.TabPagination,{currentPage:t.offset,pageSize:10,total:t.total,onChange:this.onChangePage}))))},t}(f.default.PureComponent);t.default=(0,m.connect)((function(e){return{rolesDataSource:(0,C.loadRolesList)(e),usersDataSource:(0,S.loadUserList)(e),operateError:(0,E.selectOperateError)(e),opreateLoading:(0,E.selectOperateLoading)(e),userGroupsPagination:(0,E.selectUserGroupsPagination)(e),loading:(0,E.selectUserGroupsListLoading)(e),userGroupsList:(0,E.selectUserGroupsList)(e),userGroupsData:(0,E.selectUserGroupsInfo)(e),userGroupsRelationCode:(0,E.selectUserGroupsRelationCode)(e),submitUserGroupsData:(0,E.selectSubmitUserGroupsData)(e)}}))(L)},"./src/module/sysManage/userActionManager/userGroupsManager/component/CreateUserGroupsConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateUserGroupsConfigPage=void 0;var n=C(a("./node_modules/antd/es/col/index.js")),o=C(a("./node_modules/antd/es/row/index.js")),s=C(a("./node_modules/antd/es/modal/index.js")),r=C(a("./node_modules/babel-runtime/helpers/jsx.js")),i=C(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),d=C(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),l=C(a("./node_modules/babel-runtime/helpers/inherits.js")),u=C(a("./node_modules/antd/es/input/index.js")),c=C(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var p=C(a("./node_modules/react/index.js")),f=a("./node_modules/react-redux/es/index.js"),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=(C(a("./node_modules/prop-types/index.js")),a("./src/utils/authPermit.js")),v=a("./src/redux/selectors/sysManager/quotaTenantManager.js"),_=a("./src/components/index.js"),y=a("./src/redux/reducers/sysManager/userGroupsManager.js"),b=C(a("./src/components/common/CheckName.jsx")),x=a("./src/redux/selectors/checkName.js");function C(e){return e&&e.__esModule?e:{default:e}}var j=m.Form.Item,S=c.default.Option,I=u.default.TextArea,T=t.CreateUserGroupsConfigPage=h.default.div.withConfig({displayName:"CreateUserGroupsConfig__CreateUserGroupsConfigPage",componentId:"sc-1qfse3q-0"})(["overflow-x:hidden;height:auto;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}"]),w={width:"100%"},E=(0,r.default)(S,{value:""},void 0,"\u8bf7\u9009\u79df\u6237"),D=function(e){function t(a){(0,i.default)(this,t);var n=(0,d.default)(this,e.call(this,a));return n.closeModal=function(){n.props.closeKpiConfig()},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&n.setState({modalVisible:!0})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(y.userGroupsActions.submitUserGroupsDataRequest({subType:n.props.viewType,userGroupsData:n.userGroupsData}))},n.getUserBlur=function(e,t){n.userGroupsData[t]=e},n.updateName=function(e){n.userGroupsData.groupName=e,n.setState({groupName:e}),n.props.form.setFieldsValue({groupName:e})},n.emitEmptyGroupName=function(){n.groupName.focus(),n.props.form.setFieldsValue({groupName:""}),n.userGroupsData.groupName=""},n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.checkNameRef=p.default.createRef(),n.state={modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1,_this:n},n.validateFuncs={},n.userGroupsData="create"!==n.props.viewType?n.props.userGroupsData:{tenantId:"",resDomain:"all"},n}return(0,l.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this)},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=(0,g.getPlatformFlag)(),i=this.props.sysQuotaTenantDown?this.props.sysQuotaTenantDown.toJS():{};return(0,r.default)(T,{},void 0,(0,r.default)(s.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,r.default)("p",{},void 0,this.state.modalTxt)),(0,r.default)(_.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:w},void 0,(0,r.default)(m.Form,{style:{paddingLeft:16},layout:"inline"},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(n.default,{},void 0,(0,r.default)(j,{help:""},void 0,(0,r.default)("span",{style:{marginLeft:"-12px"}},void 0,"\u7528\u6237\u7ec4\u540d\u79f0 :"),t("groupName",{rules:[{required:!0,min:0,max:30},{validator:this.handleCheckNameValidate}],initialValue:this.userGroupsData.groupName})(p.default.createElement(b.default,{ref:this.checkNameRef,source:"userGroup",style:{marginLeft:"20px",width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u7528\u6237\u7ec4\u540d\u79f0",modelId:"create"===this.props.viewType?"":this.props.userGroupsData.groupId,updateNameCallback:this.updateName,__source:{fileName:"C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\userActionManager\\userGroupsManager\\component\\CreateUserGroupsConfig.jsx",lineNumber:158}}))))),a&&(0,r.default)(o.default,{style:{marginTop:15}},void 0,(0,r.default)(n.default,{span:20},void 0,(0,r.default)(j,{help:""},void 0,(0,r.default)("span",{style:{marginLeft:20}},void 0,"\u79df \u6237 :"),t("tenantId ",{rules:[{required:!0}],initialValue:this.userGroupsData.tenantId})((0,r.default)(c.default,{disabled:"view"===this.props.viewType,onChange:function(t){return e.getUserBlur(t,"tenantId")},getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u79df\u6237",style:{marginLeft:"20px",width:200}},void 0,E,i.map((function(e){return(0,r.default)(S,{title:e.tenantName,value:e.tenantId},e.tenantId,e.tenantName)}))))))),(0,r.default)(o.default,{style:{marginTop:20}},void 0,(0,r.default)(n.default,{span:24},void 0,(0,r.default)(j,{help:""},void 0,(0,r.default)("span",{style:{marginLeft:"-12px"}},void 0,"\u7528\u6237\u7ec4\u5907\u6ce8 :"),t("groupDesc ",{rules:[{max:100}],initialValue:this.userGroupsData.groupDesc})((0,r.default)(I,{disabled:"view"===this.props.viewType,autosize:{minRows:2,maxRows:2},style:{marginLeft:"20px",width:530,marginRight:10,min:0,max:450},onBlur:function(t){return e.getUserBlur(t.target.value,"groupDesc")},rows:4}))))))))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(e){return{checkNameVerifyInfo:(0,x.selectVerifyInfo)(e),sysQuotaTenantDown:(0,v.selectSysQuotaTenantDown)(e)}}))(m.Form.create()(D))},"./src/module/sysManage/userActionManager/userGroupsManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h={width:"120px"},g=(0,n.default)(f,{value:"CREATE_AT"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),v=(0,n.default)(f,{value:"UPDATE_AT"},void 0,"\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f"),y=(0,n.default)(f,{value:"GROUP_NAME "},void 0,"\u6309\u540d\u79f0\u6392\u5e8f"),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("groupName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar",style:{display:"flex",justifyContent:"flex-end"}},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:h,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,g,v,y)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(b)},"./src/module/sysManage/userActionManager/userManager/UserManagePage.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=P(a("./node_modules/antd/es/table/index.js")),o=P(a("./node_modules/antd/es/button/index.js")),s=P(a("./node_modules/antd/es/tooltip/index.js")),r=P(a("./node_modules/babel-runtime/helpers/jsx.js")),i=P(a("./node_modules/babel-runtime/helpers/extends.js")),d=P(a("./node_modules/antd/es/message/index.js")),l=P(a("./node_modules/antd/es/modal/index.js")),u=P(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),c=P(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),p=P(a("./node_modules/babel-runtime/helpers/inherits.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/modal/style/index.js");var f=P(a("./node_modules/react/index.js")),m=(P(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),h=P(a("./src/components/auth/funAuth.jsx")),g=a("./src/utils/authPermit.js"),v=a("./src/components/index.js"),y=P(a("./src/module/sysManage/userActionManager/userManager/component/BingDingGitConfig.jsx")),b=a("./src/redux/reducers/sysManager/userManager.js"),x=a("./src/redux/reducers/sysManager/userGroupsManager.js"),C=a("./src/redux/reducers/sysManager/rolesManager.js"),j=P(a("./src/module/sysManage/userActionManager/userManager/component/CreateUserConfig.jsx")),S=P(a("./src/module/sysManage/userActionManager/permissionManager/ResourcePermissionPage.jsx")),I=a("./src/module/sysManage/userActionManager/userUtil.js"),T=P(a("./src/module/sysManage/userActionManager/userManager/component/SearchBar.jsx")),w=P(a("./src/redux/services/sysManager/userManager.js")),E=a("./src/redux/selectors/sysManager/userManager.js"),D=a("./src/redux/selectors/sysManager/rolesManager.js"),M=a("./src/redux/selectors/sysManager/userGroupsManager.js"),k=a("./src/styles/GlobalStyle.js");function P(e){return e&&e.__esModule?e:{default:e}}var L=(0,r.default)("span",{},void 0,"\u5e8f\u53f7"),N=(0,r.default)(s.default,{placement:"topLeft",title:"\u7528\u6237\u540d"},void 0,"\u7528\u6237\u540d"),A=(0,r.default)(s.default,{placement:"topLeft",title:"\u4e2d\u6587\u540d"},void 0,"\u4e2d\u6587\u540d"),R=(0,r.default)(v.LoadingIndicator,{position:"relative"}),F=function(e){function t(a){(0,u.default)(this,t);var n=(0,c.default)(this,e.call(this,a));return n.bangDingGit=function(e){n.userId=e.userId,n.setState({gitModalVisible:!0})},n.fetchData=function(e){n.props.dispatch(b.userActions.getSysUserListRequest(e))},n.changeSearchCond=function(e,t){n.searchCond[e]=_.trim(t),delete n.searchCond.offset,delete n.searchCond.limit,n.fetchData(n.searchCond)},n.initializePws=function(e){l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u91cd\u7f6e\u5bc6\u7801\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){w.default.initializePws(e.userId).then((function(e){e&&d.default.success("\u91cd\u7f6e\u5bc6\u7801\u6210\u529f\uff01\u5bc6\u7801\u662f\uff1a"+e.data)})).catch((function(){d.default.error("\u91cd\u7f6e\u5bc6\u7801\u5931\u8d25\uff01")}))}})},n.unlockAccount=function(e){n.props.dispatch(b.userActions.unfastenUserRequest(e.userId))},n.editUser=function(e,t){n.props.dispatch(b.userActions.resetUserInfo()),n.props.dispatch(b.userActions.getSysUserInfoRequest({userId:e.userId})),n.setState({viewType:t,modalVisible:!0})},n.delUser=function(e){l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u5220\u9664\uff1a"+e.userName+" \u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){return n.props.dispatch(b.userActions.deleteUserRequest(e.userId)),new Promise((function(t){_.defer((function(){var a=setInterval((function(){!1===n.props.opreateLoading&&(clearInterval(a),0===_.size(n.props.operateError)?(d.default.success("\u5220\u9664[ "+e.userName+" ]\u6210\u529f!"),n.props.dispatch(b.userActions.resetDeleteUser()),n.props.dispatch(b.userActions.getSysUserListRequest(n.searchCond))):d.default.error("\u5220\u9664[ "+e.userName+" ]\u5931\u8d25\uff01 \u9519\u8bef\u4fe1\u606f\uff1a"+n.props.operateError.join(",")),t())}),300)}))}))}})},n.openKpiConfig=function(e){n.props.dispatch(b.userActions.resetSubmitUserData()),n.setState({modalVisible:!0,viewType:e})},n.callGitModalVisible=function(e){n.setState({gitModalVisible:!1}),e&&n.fetchData(n.searchCond)},n.callResPermitsModalVisible=function(e){if(void 0!==e||"view"===n.state.viewType)n.setState({resPermitsModalVisible:!1,viewType:""});else{var t=n;l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u8fd4\u56de\u5c06\u4e0d\u4fdd\u5b58\u5df2\u586b\u5199\u6570\u636e!",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({resPermitsModalVisible:!1,viewType:""})}})}},n.callRelationModalVisible=function(e){void 0!==e||n.state.viewType,n.setState({relationModalVisible:!1,viewType:""})},n.callVisible=function(e){void 0!==e||n.state.viewType,n.setState({modalVisible:!1,viewType:""})},n.onChangePage=function(e,t){n.setState({currentPage:e}),n.searchCond.offset=parseInt(e),n.searchCond.limit=parseInt(t),n.fetchData(n.searchCond)},n.handleChange=function(e,t){if("select"===t)n.setState({targetKeys:[].concat(e)});else{var a=n;l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4fdd\u5b58\u6b64\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){a.setState({confirmLoading:!0}),"userGroups"===a.state.relationType?a.props.dispatch(b.userActions.submitUserGroupsDataRequest({userId:a.userId,config:e})):"roles"===a.state.relationType&&a.props.dispatch(b.userActions.submitUserRolesDataRequest({userId:a.userId,config:e}))}})}},n.editRelation=function(e,t){var a=[];if(n.userId=e.userId,"power"!==t){for(var o=0;o<e["userGroups"===t?"groups":"roles"].length;o++)a.push(e["userGroups"===t?"groups":"roles"][o]["userGroups"===t?"groupId":"roleId"]);"userGroups"===t?n.props.dispatch(x.userGroupsActions.loadSysUserGroupsListRequest({tenantId:""})):"roles"===t&&n.props.dispatch(C.rolesActions.loadSysRolesListRequest({tenantId:""})),n.setState({targetKeys:[].concat(a),relationModalVisible:!0,relationType:t})}else n.setState({resPermits:n.formatResPermits(e.resPermits),resPermitsModalVisible:!0,selectedItems:n.getSelectedItems(e.resPermits)})},n.formatResPermits=function(e){var t=_.reduce(e,(function(e,t){return e[t.resDomain]=e[t.resDomain]||[],e[t.resDomain].push(t.resId),e}),{}),a=[];return Object.keys(t).forEach((function(e){var n={resDomain:e.toString(),resId:t[e],labelId:"",labelValue:"",key:_.uniqueId()};a.push(n)})),a},n.getSelectedItems=function(e){var t=_.reduce(e,(function(e,t){return e[t.resDomain]=e[t.resDomain],e}),{}),a=[];return Object.keys(t).forEach((function(e){a.push(e)})),a},n.getResData=function(e){n.setState({resPermits:e,selectedItems:n.getSelectedItems(e)})},n.setValidateFunc=function(e,t){n.validateFuncs[e]=t},n.deleteValiFuncs=function(){n.validateFuncs={}},n.resHandleChange=function(e){var t=n,a=!0,o={};Object.keys(n.validateFuncs).map((function(e){var t=n.validateFuncs[e];if(_.isFunction(t)){var s=t.call();s.validate?o[e]=s.moduleData:a=!1}})),a&&l.default.confirm({title:"\u64cd\u4f5c\u786e\u8ba4",content:"\u786e\u8ba4\u4fdd\u5b58\u6b64\u6570\u636e\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){t.setState({confirmLoading:!0});for(var a=0;a<e.length;a++)delete e[a].key;t.props.dispatch(b.userActions.submitUserResourceDataRequest({userId:t.userId,config:0===e.length?[]:t.getResPermits(e)}))}})},n.getResPermits=function(e){for(var t=[],a=0;a<e.length;a++)for(var n=0;n<e[a].resId.length;n++){var o=(0,i.default)({},e[a]);o.resId=e[a].resId[n],t.push(o)}return t},n.addResPermitsClick=function(){var e=n.state.resPermits,t={resDomain:"",resId:"",labelId:"",labelValue:"",key:_.uniqueId()};n.setState({resPermits:[].concat(e,[t])})},n.submitModalOk=function(){n.createUserConfig.saveKpi()},n.state={modalVisible:!1,viewType:"",currentPage:1,relationType:"",relationModalVisible:!1,resPermitsModalVisible:!1,targetKeys:[],_this:n,confirmLoading:!1,resPermits:[],selectedItems:[],gitModalVisible:!1},n.validateFuncs={},n.userId="",n.columns=[{title:L,width:"7%",dataIndex:"desc",render:function(e,t,a){return(0,r.default)("span",{},void 0,a+1)}},{title:N,dataIndex:"userId",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u90ae\u7bb1",dataIndex:"email",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u7535\u8bdd",dataIndex:"phone",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u79df\u6237",dataIndex:"tenantId_name",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:A,dataIndex:"userName",ellipsis:!0,render:function(e){return(0,r.default)(s.default,{placement:"topLeft",title:e},void 0,e)}},{title:"\u5f52\u5c5e\u7528\u6237\u7ec4",dataIndex:"groups",width:"13%",render:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a].groupName+"\u3001";return t=t.substring(0,t.length-1),(0,r.default)(v.LineWrap,{title:t||"\u65e0",lineClampNum:1})}},{title:"\u7ec4\u7ec7",dataIndex:"orgName",width:"8%",render:function(e){return(0,r.default)(v.LineWrap,{title:e||"--",lineClampNum:1})}},{title:"\u5df2\u7ed1\u5b9a\u89d2\u8272",dataIndex:"roles",width:"13%",render:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a].roleName+"\u3001";return t=t.substring(0,t.length-1),(0,r.default)(v.LineWrap,{title:t||"\u65e0",lineClampNum:1})}},{title:"git\u8d26\u6237",dataIndex:"gitUsername",width:"8%",ellipsis:!0,render:function(e){return(0,r.default)(v.LineWrap,{title:e||"--",lineClampNum:1})}},{title:"\u64cd\u4f5c",width:"230px",render:function(e,t){var a=(0,g.getUserAdditionalInfo)(),o=[];return"ADMIN"!==t.userId&&3!==t.userType&&o.push({handleName:"\u91cd\u7f6e\u5bc6\u7801",handleAction:function(){n.initializePws(t)}}),(0,g.getUser)().userId!==t.userId&&"ADMIN"!==t.userId&&3!==t.userType&&(o.push({handleName:"\u4fee\u6539",handleAction:function(){n.editUser(t,"edit")}},{handleName:"\u5220\u9664",handleAction:function(){n.delUser(t)}}),-1===t.status&&o.push({handleName:"\u89e3\u9501",handleAction:function(){n.unlockAccount(t)}}),o.push({handleName:"\u7ed1\u5b9a\u7528\u6237\u7ec4",handleAction:function(){n.editRelation(t,"userGroups")}},{handleName:"\u7ed1\u5b9a\u8d44\u6e90",handleAction:function(){n.editRelation(t,"power")}})),(_.get(a,"isPlatformAdmin",!1)||_.get(a,"isTenantAdmin",!1))&&"ADMIN"!==t.userId&&3!==t.userType&&o.push({handleName:"\u7ed1\u5b9aGit",handleAction:function(){n.bangDingGit(t)}}),(0,r.default)(v.ListButtons,{buttons:o,maxShowNum:3})}}],n.columns=(0,I.dataFormat)(n.columns),n.searchCond={userType:"1,2",userName:"",sortField:"CREATETIME",offset:1,limit:10},n}return(0,p.default)(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(b.userActions.getSysUserListRequest(this.searchCond))},t.getDerivedStateFromProps=function(e,t){return 0!==e.userRelationCode?(-1!==e.userRelationCode?(d.default.success("\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(b.userActions.resetUserRelationData()),t._this.fetchData(t._this.searchCond)):l.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,relationModalVisible:!1,resPermitsModalVisible:!1}):(0!==e.unfastenUserCode&&(-1!==e.unfastenUserCode?(d.default.success("\u89e3\u9501\u6210\u529f\uff01"),t._this.fetchData(t._this.searchCond),e.dispatch(b.userActions.resetUnfastenUser())):(d.default.error("\u89e3\u9501\u5931\u8d25\uff01"),e.dispatch(b.userActions.resetUnfastenUser()))),null)},t.prototype.render=function(){var e=this,t=this.props.userPagination?this.props.userPagination.toJS():{},a=null!==this.props.userList&&void 0!==this.props.userList?this.props.userList.toJS():[];return(0,r.default)(k.PageWrapper,{},void 0,(0,r.default)(v.ModalView,{viewType:this.state.viewType,modalTitle:"\u9009\u62e9\u8d44\u6e90\u8303\u56f4",onCancelType:!1,width:800,callVisible:this.callResPermitsModalVisible,modalVisible:this.state.resPermitsModalVisible,comp:(0,r.default)(S.default,{id:this.userId,type:"users"})}),(0,r.default)(v.ModalView,{viewType:this.state.viewType,modalTitle:"\u7ed1\u5b9aGit",onCancelType:!1,width:550,callVisible:this.callGitModalVisible,modalVisible:this.state.gitModalVisible,comp:(0,r.default)(y.default,{closeGitClick:this.callGitModalVisible,userId:this.userId})}),(0,r.default)(v.ModalView,{viewType:this.state.viewType,modalTitle:"roles"===this.state.relationType?"\u89d2\u8272\u4fe1\u606f":"\u7528\u6237\u7ec4\u4fe1\u606f",onCancelType:!1,width:500,callVisible:this.callRelationModalVisible,modalVisible:this.state.relationModalVisible,comp:(0,r.default)(v.TransferView,{title:"roles"===this.state.relationType?"roleName":"groupName",dataKey:"roles"===this.state.relationType?"roleId":"groupId",viewType:this.state.viewType,dataSource:"roles"===this.state.relationType?this.props.rolesDataSource.toJS():this.props.userGroupsDataSource.toJS(),confirmLoading:this.state.confirmLoading,targetKeys:this.state.targetKeys,handleChange:function(t,a){return e.handleChange(t,a)}})}),(0,r.default)(v.ModalView,{viewType:this.state.viewType,modalTitle:"edit"===this.state.viewType?"\u4fee\u6539\u7528\u6237":"view"===this.state.viewType?"\u67e5\u770b\u7528\u6237":"\u65b0\u5efa\u7528\u6237",onCancelType:!1,width:900,callVisible:this.callVisible,modalVisible:this.state.modalVisible,okText:"\u786e\u5b9a\u63d0\u4ea4",submitModalOk:this.submitModalOk,comp:"create"===this.state.viewType?(0,r.default)(j.default,{onRef:function(t){e.createUserConfig=t},searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):this.props.userData.size>0?(0,r.default)(j.default,{onRef:function(t){e.createUserConfig=t},userData:this.props.userData.toJS(),searchCond:this.searchCond,fetchData:this.fetchData,viewType:this.state.viewType,closeKpiConfig:this.callVisible}):(0,r.default)(v.LoadingIndicator,{style:{height:100}})},this.state.viewType),(0,r.default)(k.PageHeader,{},void 0,(0,r.default)(h.default,{permissions:["USER:CREATE"],displayType:"hide"},void 0,(0,r.default)(o.default,{onClick:function(){e.openKpiConfig("create")},className:"saveButton",type:"primary"},void 0,"\u65b0\u589e\u7528\u6237")),(0,r.default)(T.default,{sortField:this.searchCond.sortField,onChange:this.changeSearchCond})),(0,r.default)(k.PageBody,{},void 0,(0,r.default)(k.TableWrapper,{},void 0,this.props.loading&&R,!this.props.loading&&(0,r.default)(n.default,{dataSource:a,rowKey:"userId",bordered:!0,pagination:!1,columns:this.columns}),(0,r.default)(v.TabPagination,{currentPage:t.offset,pageSize:10,total:t.total,onChange:this.onChangePage}))))},t}(f.default.PureComponent);t.default=(0,m.connect)((function(e){return{userGroupsDataSource:(0,M.selectLoadUserGroupsList)(e),rolesDataSource:(0,D.loadRolesList)(e),operateError:(0,E.selectOperateError)(e),opreateLoading:(0,E.selectOperateLoading)(e),userPagination:(0,E.selectUserPagination)(e),loading:(0,E.selectUserListLoading)(e),userList:(0,E.selectUserList)(e),userData:(0,E.selectUserInfo)(e),userRelationCode:(0,E.selectUserRelationCode)(e),unfastenUserCode:(0,E.selectUnfastenUserCode)(e)}}))(F)},"./src/module/sysManage/userActionManager/userManager/component/BingDingGitConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.ButtonDom=t.CreateDisposeConfigPage=void 0;var n=v(a("./node_modules/antd/es/button/index.js")),o=v(a("./node_modules/antd/es/col/index.js")),s=v(a("./node_modules/antd/es/row/index.js")),r=v(a("./node_modules/babel-runtime/helpers/jsx.js")),i=v(a("./node_modules/antd/es/message/index.js")),d=v(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=v(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=v(a("./node_modules/babel-runtime/helpers/inherits.js")),c=v(a("./node_modules/antd/es/input/index.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js");var p=v(a("./node_modules/react/index.js")),f=(v(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),m=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var h=v(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=v(a("./src/redux/services/sysManager/gitManager.js"));function v(e){return e&&e.__esModule?e:{default:e}}var y=m.Form.Item,b=c.default.Password,x=t.CreateDisposeConfigPage=h.default.div.withConfig({displayName:"BingDingGitConfig__CreateDisposeConfigPage",componentId:"sc-1co4ug5-0"})(["display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}height:200px;"]),C=t.ButtonDom=h.default.div.withConfig({displayName:"BingDingGitConfig__ButtonDom",componentId:"sc-1co4ug5-1"})(["margin-top:10px;height:28px;text-align:right;margin-left:-6%;bottom:0px;padding-top:12px;position:absolute;bottom:0;clear:both;width:100%;"]),j=(0,r.default)("span",{},void 0,"Git\u8d26\u6237 :"),S=(0,r.default)("span",{},void 0,"Git\u5bc6\u7801 :"),I=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));return n.updateGit=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e&&(n.setState({confirmLoading:!0}),g.default.testGitLink(n.gitData).then((function(e){e.data?"update"===n.state.type?g.default.updateGit([n.gitData]).then((function(e){e.success&&(n.setState({confirmLoading:!1}),i.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),n.props.closeGitClick("type"))})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)})):g.default.saveGit([n.gitData]).then((function(e){e.success&&(n.setState({confirmLoading:!1}),i.default.success("\u4fdd\u5b58\u6210\u529f\uff01"),n.props.closeGitClick())})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)})):(n.setState({confirmLoading:!1}),i.default.info("\u6d4b\u8bd5\u8fde\u63a5Git\u8d26\u53f7\u5931\u8d25\uff01,\u4e0d\u80fd\u4fdd\u5b58\uff01"))})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)})))},n.getUserBlur=function(e,t){n.gitData[t]=e},n.closeGitClick=function(){n.props.form.setFieldsValue({username:"",password:""}),n.props.closeGitClick()},n.testConnect=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t&&(e=!0)})),e?(n.setState({confirmLoading:!0}),g.default.testGitLink(n.gitData).then((function(e){n.setState({confirmLoading:!1}),e.data?i.default.success("\u8fde\u63a5\u6210\u529f\uff01"):i.default.info("\u8fde\u63a5\u5931\u8d25\uff01")})).catch((function(e){n.setState({confirmLoading:!1}),i.default.error(e.message)}))):i.default.info("\u8bf7\u6b63\u786e\u586b\u5199\u8d26\u6237\u3001\u5bc6\u7801\uff01")},n.state={confirmLoading:!1,type:""},n.gitData={userId:a.userId,username:"",password:""},n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){var e=this;g.default.getGitByUserId(this.props.userId).then((function(t){t.data?(e.props.form.setFieldsValue({username:_.get(t,"data.username",""),password:_.get(t,"data.password","")}),e.gitData.username=_.get(t,"data.username",""),e.gitData.password=_.get(t,"data.password",""),e.setState({type:"update"})):e.setState({type:"create"})})).catch((function(t){e.props.form.setFieldsValue({username:"",password:""}),i.default.error(t.message)}))},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator;return(0,r.default)(x,{},void 0,(0,r.default)(m.Form,{layout:"inline"},void 0,(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(y,{},void 0,j,t("username",{rules:[{required:!0,min:4,max:20,message:"\u957f\u5ea6\u5fc5\u987b4\u4f4d\u62164\u4f4d\u4ee5\u4e0a20\u4f4d\u4ee5\u5185\u5b57\u7b26"}],initialValue:this.gitData.username})((0,r.default)(c.default,{disabled:"update"===this.state.type,style:{marginLeft:"20px",width:"350px"},placeholder:"\u8bf7\u8f93\u5165Git\u8d26\u6237",onBlur:function(t){return e.getUserBlur(t.target.value,"username")}}))))),(0,r.default)(s.default,{style:{marginTop:15}},void 0,(0,r.default)(o.default,{},void 0,(0,r.default)(y,{},void 0,S,t("password",{rules:[{required:!0,min:8,max:16,message:"\u5bc6\u7801\u5fc5\u987b8\u4f4d\u62168\u4f4d\u4ee5\u4e0a16\u4f4d\u4ee5\u5185\u5b57\u7b26"}],initialValue:this.gitData.password})((0,r.default)(b,{autoComplete:"new-password",style:{marginLeft:"20px",width:"250px"},placeholder:"\u8bf7\u8f93\u5165Git\u5bc6\u7801",onBlur:function(t){return e.getUserBlur(t.target.value,"password")}})),(0,r.default)(n.default,{loading:this.state.confirmLoading,style:{marginLeft:"8px"},type:"primary",onClick:this.testConnect},void 0,"\u6d4b\u8bd5\u8fde\u63a5"))))),(0,r.default)(C,{style:{marginBottom:50}},void 0,(0,r.default)(n.default,{style:{width:100,height:28},loading:this.state.confirmLoading,onClick:this.closeGitClick},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{loading:this.state.confirmLoading,style:{width:100,height:28,marginLeft:"3.1%"},onClick:this.updateGit,type:"primary"},void 0,"\u4fdd\u5b58")))},t}(p.default.PureComponent);t.default=(0,f.connect)((function(){return{}}))(m.Form.create()(I))},"./src/module/sysManage/userActionManager/userManager/component/CreateUserConfig.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.CreateUserConfigPage=void 0;var n=P(a("./node_modules/antd/es/col/index.js")),o=P(a("./node_modules/antd/es/row/index.js")),s=P(a("./node_modules/babel-runtime/helpers/jsx.js")),r=P(a("./node_modules/antd/es/modal/index.js")),i=P(a("./node_modules/antd/es/message/index.js")),d=P(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),l=P(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),u=P(a("./node_modules/babel-runtime/helpers/inherits.js")),c=P(a("./node_modules/antd/es/radio/index.js")),p=P(a("./node_modules/antd/es/input/index.js")),f=P(a("./node_modules/antd/es/select/index.js")),m="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\sysManage\\userActionManager\\userManager\\component\\CreateUserConfig.jsx";a("./node_modules/antd/es/col/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var h=P(a("./node_modules/react/index.js")),g=a("./node_modules/react-redux/es/index.js"),v=a("./node_modules/immutable3/dist/immutable.js"),y=a("./node_modules/@ant-design/icons/es/index.js"),b=a("./node_modules/@ant-design/compatible/es/index.js");a("./node_modules/@ant-design/compatible/assets/index.css");var x=P(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),C=(P(a("./node_modules/prop-types/index.js")),a("./src/components/index.js")),j=a("./src/redux/reducers/sysManager/userManager.js"),S=a("./src/redux/selectors/sysManager/userManager.js"),I=a("./src/redux/selectors/sysManager/quotaTenantManager.js"),T=P(a("./src/components/common/CheckName.jsx")),w=a("./src/redux/selectors/checkName.js"),E=P(a("./src/redux/services/sysManager/tenantManager.js")),D=P(a("./src/redux/services/sysManager/userManager.js")),M=a("./src/utils/authPermit.js"),k=a("./src/module/sysManage/userActionManager/userManager/modelEnums.js");function P(e){return e&&e.__esModule?e:{default:e}}var L=f.default.Option,N=p.default.TextArea,A=p.default.Password,R=b.Form.Item,F=c.default.Group,O=t.CreateUserConfigPage=x.default.div.withConfig({displayName:"CreateUserConfig__CreateUserConfigPage",componentId:"sc-1f5spla-0"})(["overflow-x:hidden;height:auto;overflow-x:auto;display:flex;flex-direction:column;background-color:#ffff;margin:auto;margin-bottom:10px;border:0px;.error-border{border:1px solid\xa0red;}.ant-legacy-form-item-label{width:80px;}.ant-form-inline .ant-form-item-with-help{margin-bottom:0px;}"]),V={width:"100%"},U=(0,s.default)(c.default,{value:-1},void 0,"\u4e0d\u8be6"),B=(0,s.default)(L,{value:""},void 0,"\u8bf7\u9009\u79df\u6237"),G=(0,s.default)(L,{value:""},void 0,"\u8bf7\u9009\u7ec4\u7ec7\u673a\u6784"),z=function(e){function t(a){(0,d.default)(this,t);var n=(0,l.default)(this,e.call(this,a));n.handleCheckNameValidate=function(e,t,a){var o=n.props.checkNameVerifyInfo.toJS(),s=o.verifyStatus,r=o.verifyMsg;-1===s&&a(r),a()},n.closeModal=function(){n.props.closeKpiConfig()},n.saveKpi=function(){var e=!1;n.props.form.validateFieldsAndScroll((function(t){null===t?e=!0:t.password&&t.password.errors&&t.password.errors.length>0?t.password.errors[0].message&&i.default.error("7\u4f4d\u4ee5\u4e0a\u5305\u542b\u5b57\u7b26\u6570\u5b57\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u7279\u6b8a\u5b57\u7b26\u81f3\u5c113\u79cd"):t.gender&&t.gender.errors&&t.gender.errors.length>0&&t.gender.errors[0].message&&i.default.error("\u8bf7\u9009\u62e9\u7528\u6237\u6027\u522b")})),e&&n.setState({modalVisible:!0})},n.submitModalCancel=function(){n.setState({modalVisible:!1})},n.submitModalOk=function(){n.setState({confirmLoading:!0,modalTxt:"\u6570\u636e"+n.subType==="save"?"\u4fdd\u5b58":"\u63d0\u4ea4\u4e2d\u8bf7\u7a0d\u7b49.........."}),n.props.dispatch(j.userActions.submitUserDataRequest({subType:n.props.viewType,userData:n.userData}))},n.updateName=function(e){n.setState({userId:e}),n.userData.userId=e,n.props.form.setFieldsValue({userId:e})},n.getUserBlur=function(e,t){n.userData[t]=e},n.selectChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];if("orgId"===t)for(var a=0;n.state.orgList&&a<n.state.orgList.length;a++)if(n.state.orgList[a].orgId===e){n.userData.orgType=n.state.orgList[a].orgType,n.setState({orgType:n.userData.orgType});break}n.userData[t]=e},n.emitEmptyUserId=function(){n.userId.focus(),n.props.form.setFieldsValue({userId:""}),n.userData.userId="",n.setState({userId:""})},n.emitEmptyUserName=function(){n.userName.focus(),n.props.form.setFieldsValue({userName:""}),n.userData.userName=""},n.getSysTenants=function(){E.default.getTenantList({filterDisabledTenant:"1"}).then((function(e){var t=e.data;!_.find(t,{tenantId:n.userData.tenantId})&&(n.userData.tenantId=""),n.setState({sysQuotaTenantDown:e.data})}))},n.getSysOrgList=function(){D.default.getSysOrgList().then((function(e){n.setState({orgList:e.data})}))},n.checkNameRef=h.default.createRef(),n.state={userNameVerify:null,verifyMsg:"",modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?",confirmLoading:!1,modalVisible:!1,_this:n,userId:"create"!==n.props.viewType?n.props.userData.userId:"",sysQuotaTenantDown:[],orgList:[],orgType:"create"!==n.props.viewType?n.props.userData.orgType:""};var o=(0,M.getUser)();return n.userData="create"!==n.props.viewType?n.props.userData:{tenantId:_.get(o,"tenantId"),gender:1},n.editDisabledTenant="edit"===n.props.viewType&&n.props.userData.tenantId,n.editDisabledOrg="edit"===n.props.viewType&&n.props.userData.orgId,n}return(0,u.default)(t,e),t.prototype.componentDidMount=function(){this.props.onRef(this),this.getSysTenants(),this.getSysOrgList()},t.getDerivedStateFromProps=function(e){if("{}"!==JSON.stringify(e.submitUserData)){var t=(0,v.Map)(e.submitUserData);return 1===t.get("code")||"0000"===t.get("code")?(i.default.success("edit"!==e.viewType?"\u521b\u5efa\u6210\u529f\uff01":"\u4fee\u6539\u6210\u529f\uff01"),e.dispatch(j.userActions.resetSubmitUserData()),e.closeKpiConfig&&e.closeKpiConfig("close"),e.fetchData&&e.fetchData(e.searchCond),{modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"}):(e.dispatch(j.userActions.resetSubmitUserData()),r.default.error({title:"\u9519\u8bef\u63d0\u793a\u4fe1\u606f",content:"\u63d0\u4ea4\u4fe1\u606f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!"}),{confirmLoading:!1,modalTxt:"\u786e\u8ba4\u63d0\u4ea4\u6b64\u6b21\u6570\u636e\u4e48?"})}return null},t.prototype.render=function(){var e=this,t=this.props.form.getFieldDecorator,a=this.state.userName?(0,s.default)(y.CloseCircleOutlined,{style:{color:"#A2B0C4",cursor:"pointer"},onClick:this.emitEmptyUserName}):null,i=_.get((0,M.getUserAdditionalInfo)(),"isPlatformAdmin"),d=this.state,l=d.sysQuotaTenantDown,u=d.orgList,g=d.orgType;return(0,s.default)(O,{},void 0,(0,s.default)(r.default,{title:"\u63d0\u793a\u4fe1\u606f",visible:this.state.modalVisible,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:this.submitModalOk,confirmLoading:this.state.confirmLoading,onCancel:this.submitModalCancel},void 0,(0,s.default)("p",{},void 0,this.state.modalTxt)),(0,s.default)(C.ModelConfigPanel,{title:"\u57fa\u7840\u4fe1\u606f",sign:!0,style:V},void 0,(0,s.default)(b.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{},void 0,(0,s.default)(n.default,{},void 0,(0,s.default)(R,{label:"\u7528\u6237\u767b\u5f55\u540d"},void 0,t("userId",{rules:[{required:"create"===this.props.viewType,min:0,max:100,message:"\u7528\u6237\u767b\u5f55\u540d\u4e0d\u80fd\u4e3a\u7a7a\u3001\u5c0f\u4e8e100\u4f4d"},{validator:this.handleCheckNameValidate}],initialValue:this.state.userId})(h.default.createElement(T.default,{disabled:"view"===this.props.viewType||"edit"===this.props.viewType,ref:this.checkNameRef,source:"users",style:{width:"250px"},placeholder:"\u8bf7\u8f93\u5165\u8981\u521b\u5efa\u7684\u7528\u6237\u767b\u5f55\u540d",modelId:"",updateNameCallback:this.updateName,__source:{fileName:m,lineNumber:255}}))))),(0,s.default)(o.default,{style:{marginTop:15}},void 0,(0,s.default)(n.default,{span:11},void 0,(0,s.default)(R,{label:"\u7528\u6237\u4e2d\u6587\u540d"},void 0,t("userName",{rules:[{required:!0,min:0,max:15,message:"\u7528\u6237\u4e2d\u6587\u540d\u4e0d\u80fd\u4e3a\u7a7a\u3001\u5c0f\u4e8e15\u4f4d"}],initialValue:this.userData.userName})(h.default.createElement(p.default,{disabled:"view"===this.props.viewType,style:{width:"250px"},suffix:"view"!==this.props.viewType?a:"",ref:function(t){return e.userName=t},placeholder:"\u8bf7\u8f93\u5165\u8981\u521b\u5efa\u7684\u7528\u6237\u4e2d\u6587\u540d",onBlur:function(t){return e.getUserBlur(t.target.value,"userName")},__source:{fileName:m,lineNumber:282}})))),"create"===this.props.viewType&&(0,s.default)(n.default,{span:13},void 0,(0,s.default)(R,{label:"\u7528\u6237\u5bc6\u7801"},void 0,t("password",{rules:[{required:!0,min:5,max:50,pattern:/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,message:"\u5bc6\u7801\u81f3\u5c118\u4f4d\u5b57\u7b26\uff0c\u5305\u542b\u6570\u5b57\u3001\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u7279\u6b8a\u5b57\u7b26\u4e2d\u7684\u81f3\u5c113\u79cd"}],initialValue:this.userData.password})(h.default.createElement(A,{visibilityToggle:!1,autoComplete:"new-password",disabled:"view"===this.props.viewType,style:{width:"250px"},ref:function(t){return e.password=t},placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801",onBlur:function(t){return e.getUserBlur(t.target.value,"password")},__source:{fileName:m,lineNumber:308}}))))),(0,s.default)(o.default,{style:{marginTop:15}},void 0,(0,s.default)(n.default,{span:11},void 0,(0,s.default)(R,{label:"\u90ae \u7bb1"},void 0,t("email",{rules:[{required:!0,pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"\u90ae\u7bb1\u5730\u5740\u683c\u5f0f\u4e0d\u6b63\u786e"}],initialValue:this.userData.email})((0,s.default)(p.default,{disabled:"view"===this.props.viewType,style:{width:"250px"},placeholder:"\u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740",onBlur:function(t){return e.getUserBlur(t.target.value,"email")}})))),(0,s.default)(n.default,{},void 0,(0,s.default)(R,{label:"\u8054\u7cfb\u7535\u8bdd"},void 0,t("phone",{rules:[{required:!0,pattern:/^((?:(?:\+|00)86)?1\d{10}|([0-9]{3,4}-)?[0-9]{7,8})*$/,message:"\u8054\u7cfb\u7535\u8bdd\u683c\u5f0f\u4e0d\u6b63\u786e"}],initialValue:this.userData.phone})((0,s.default)(p.default,{disabled:"view"===this.props.viewType,style:{width:"250px"},placeholder:"\u8bf7\u8f93\u5165\u8054\u7cfb\u7535\u8bdd",onBlur:function(t){return e.getUserBlur(t.target.value,"phone")}}))))),(0,s.default)(o.default,{style:{marginTop:15}},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)(R,{label:"\u8eab\u4efd\u8bc1"},void 0,t("identityCard",{rules:[{pattern:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,message:"\u8eab\u4efd\u8bc1\u683c\u5f0f\u4e0d\u6b63\u786e"}],initialValue:this.userData.identityCard})((0,s.default)(p.default,{disabled:"view"===this.props.viewType,style:{width:"250px"},placeholder:"\u8bf7\u8f93\u5165\u8eab\u4efd\u8bc1",onBlur:function(t){return e.getUserBlur(t.target.value,"identityCard")}}))))),(0,s.default)(o.default,{style:{marginTop:15}},void 0,(0,s.default)(n.default,{span:20},void 0,(0,s.default)(R,{label:"\u7528\u6237\u6027\u522b"},void 0,t("gender",{rules:[{required:!0}],initialValue:this.userData.gender})((0,s.default)(F,{onChange:function(t){return e.selectChange(t.target.value,"gender")}},void 0,U,(0,s.default)(c.default,{style:{marginLeft:"20px"},value:1},void 0,"\u7537"),(0,s.default)(c.default,{style:{marginLeft:"20px"},value:2},void 0,"\u5973")))))),(0,s.default)(o.default,{style:{marginTop:20}},void 0,(0,s.default)(n.default,{span:24},void 0,(0,s.default)(R,{label:"\u7528\u6237\u5907\u6ce8"},void 0,t("memo",{rules:[{max:100}],initialValue:this.userData.memo})((0,s.default)(N,{disabled:"view"===this.props.viewType,autosize:{minRows:2,maxRows:4},style:{width:530,marginRight:10,min:0,max:450},onBlur:function(t){return e.getUserBlur(t.target.value,"memo")},rows:3}))))))),(0,s.default)(C.ModelConfigPanel,{title:"\u7ec4\u7ec7\u4fe1\u606f",sign:!0,style:V},void 0,(0,s.default)(b.Form,{layout:"inline"},void 0,(0,s.default)(o.default,{style:{marginTop:15}},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)(R,{label:"\u79df \u6237"},void 0,t("tenantId",{rules:[{required:!i,message:"\u8bf7\u9009\u62e9\u79df\u6237"}],initialValue:this.userData.tenantId})((0,s.default)(f.default,{allowClear:!0,disabled:this.editDisabledTenant||"create"===this.props.viewType&&!i&&this.userData.tenantId,onChange:function(t){return e.selectChange(t,"tenantId")},getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u79df\u6237",style:{width:200}},void 0,B,l.map((function(e){return(0,s.default)(L,{title:e.tenantName,value:e.tenantId},e.tenantId,e.tenantName)}))))))),(0,s.default)(o.default,{style:{marginTop:15}},void 0,(0,s.default)(n.default,{span:12},void 0,(0,s.default)(R,{label:"\u7ec4 \u7ec7"},void 0,t("orgId",{rules:[{required:!i,message:"\u8bf7\u9009\u62e9\u7ec4\u7ec7"}],initialValue:this.userData.orgId})((0,s.default)(f.default,{showSearch:!0,filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0},disabled:this.editDisabledOrg,onChange:function(t){return e.selectChange(t,"orgId")},getPopupContainer:function(e){return e.parentNode},placeholder:"\u8bf7\u9009\u7ec4\u7ec7\u673a\u6784",style:{width:200}},void 0,G,u.map((function(e){return(0,s.default)(L,{value:e.orgId},e.orgId,e.orgName)})))))),g&&(0,s.default)(R,{span:12},void 0,(0,s.default)(R,{},void 0,(0,s.default)("span",{style:{marginLeft:20}},void 0,"\u7ec4\u7ec7\u7c7b\u578b\uff1a",k.ORG_TYPES.getDescFromValue(g))))))))},t}(h.default.PureComponent);t.default=(0,g.connect)((function(e){return{checkNameVerifyInfo:(0,w.selectVerifyInfo)(e),submitUserData:(0,S.selectSubmitUserData)(e),sysQuotaTenantDown:(0,I.selectSysQuotaTenantDown)(e)}}))(b.Form.create()(z))},"./src/module/sysManage/userActionManager/userManager/component/SearchBar.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/jsx.js")),o=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=p(a("./node_modules/babel-runtime/helpers/inherits.js")),i=p(a("./node_modules/antd/es/input/index.js")),d=p(a("./node_modules/antd/es/select/index.js"));a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var l=p(a("./node_modules/react/index.js")),u=(p(a("./node_modules/prop-types/index.js")),a("./node_modules/react-redux/es/index.js")),c=a("./src/styles/GlobalStyle.js");function p(e){return e&&e.__esModule?e:{default:e}}var f=d.default.Option,m=i.default.Search,h={width:"120px"},g=(0,n.default)(f,{value:"CREATETIME"},void 0,"\u6309\u521b\u5efa\u65f6\u95f4\u6392\u5e8f"),v=(0,n.default)(f,{value:"UPDATETIME"},void 0,"\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f"),y=(0,n.default)(f,{value:"NAME"},void 0,"\u6309\u540d\u79f0\u6392\u5e8f"),b=function(e){function t(a){(0,o.default)(this,t);var n=(0,s.default)(this,e.call(this,a));return n.changeSelect=function(e){return function(t){_.isFunction(n.props.onChange)&&n.props.onChange(e,t)}},n.handleFocus=function(e){e.target.select()},n.doSearch=function(e){n.props.onChange("userName",e)},n.handleKeyPress=function(e){13===e.keyCode&&n.doSearch(e.target.value)},n.changeSortField=n.changeSelect("sortField"),n}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this;return(0,n.default)(c.SearchBarWrapper,{className:"search-bar"},void 0,(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(d.default,{onChange:this.changeSortField,getPopupContainer:function(e){return e.parentNode},style:h,placeholder:"\u6392\u5e8f\u6761\u4ef6",defaultValue:this.props.sortField,className:"sort-cond"},void 0,g,v,y)),(0,n.default)("span",{className:"search__item-wrapper"},void 0,(0,n.default)(m,{placeholder:"\u8bf7\u8f93\u5165\u67e5\u8be2\u6761\u4ef6",onFocus:this.handleFocus,onKeyUp:this.handleKeyPress,onSearch:function(t){return e.doSearch(t)}})))},t}(l.default.Component);t.default=(0,u.connect)((function(){return{}}))(b)},"./src/module/sysManage/userActionManager/userManager/modelEnums.js":function(e,t,a){"use strict";t.__esModule=!0,t.ORG_TYPES=void 0;var n,o=a("./src/utils/enums.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.ORG_TYPES=(0,s.default)({1:[1,"\u7532\u65b9"],2:[2,"\u4e59\u65b9"]});t.default={ORG_TYPES:r}},"./src/module/sysManage/userActionManager/userUtil.js":function(e,t,a){"use strict";t.__esModule=!0,t.dataFormat=function(e){var t=[].concat(e),a=(0,o.getPlatformFlag)();if(a&&-1===a){var n=r.default.findIndex(e,(function(e){return"tenantId"==e.dataIndex}));t.splice(n,1)}return t};var n,o=a("./src/utils/authPermit.js"),s=a("./node_modules/lodash/lodash.js"),r=(n=s)&&n.__esModule?n:{default:n}},"./src/module/taskSchedule/jobMgmt/JobManagement.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/jsx.js"));t.default=function(){return i};s(a("./node_modules/react/index.js"));var o=s(a("./src/module/taskSchedule/jobMgmt/component/JobItems.jsx"));function s(e){return e&&e.__esModule?e:{default:e}}var r=s(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")).default.div.withConfig({displayName:"JobManagement__JobManage",componentId:"sc-1ymuwtu-0"})(["padding:20px;"]),i=(0,n.default)(r,{},void 0,(0,n.default)(o.default,{}))},"./src/module/taskSchedule/jobMgmt/component/JobCreate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=w(a("./node_modules/antd/es/upload/index.js")),o=w(a("./node_modules/antd/es/input/index.js")),s=w(a("./node_modules/antd/es/divider/index.js")),r=w(a("./node_modules/antd/es/button/index.js")),i=w(a("./node_modules/antd/es/space/index.js")),d=w(a("./node_modules/babel-runtime/helpers/jsx.js")),l=w(a("./node_modules/babel-runtime/helpers/extends.js")),u=w(a("./node_modules/babel-runtime/regenerator/index.js")),c=w(a("./node_modules/antd/es/message/index.js")),p=w(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),f=w(a("./node_modules/antd/es/steps/index.js")),m=w(a("./node_modules/antd/es/radio/index.js")),h=w(a("./node_modules/antd/es/form/index.js")),g=w(a("./node_modules/antd/es/select/index.js")),v="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\taskSchedule\\jobMgmt\\component\\JobCreate.jsx";t.default=function(){var e=this,t=h.default.useForm()[0],a=f.default.Step,x=(0,I.useHistory)(),w=(0,I.useParams)().id,K=(0,y.useState)("none"),H=K[0],Y=K[1],W=(0,y.useState)("none"),J=W[0],Q=W[1],Z=(0,y.useState)("none"),X=Z[0],$=Z[1],ee=(0,y.useState)(null),te=ee[0],ae=ee[1],ne=(0,y.useState)(null),oe=ne[0],se=ne[1],re=(0,y.useState)(0),ie=re[0],de=re[1],le=(0,y.useState)([]),ue=le[0],ce=le[1],pe=(0,y.useState)([]),fe=pe[0],me=pe[1],he=h.default.useForm()[0],ge=h.default.useForm()[0],ve=h.default.useForm()[0],_e=(0,y.useState)(he),ye=_e[0],be=_e[1],xe=h.default.useForm()[0],Ce=h.default.useForm()[0],je=(0,y.useState)(""),Se=je[0],Ie=je[1],Te=(0,y.useRef)(null),we=(0,y.useState)(""),Ee=we[0],De=we[1],Me=(0,y.useState)(null),ke=Me[0],Pe=Me[1],Le=(0,y.useState)(!1),Ne=Le[0],Ae=Le[1],Re=(0,y.useState)([]),Fe=Re[0],Oe=Re[1],Ve=(0,y.useState)([]),Ue=Ve[0],Be=Ve[1],Ge=(0,y.useState)([]),ze=Ge[0],qe=Ge[1],Ke=(0,y.useState)([]),He=Ke[0],Ye=Ke[1],We=(0,y.useState)([]),Je=We[0],Qe=We[1];(0,y.useEffect)((function(){w&&Xe(w)}),[w]),(0,y.useEffect)((function(){Ze("java"),Ze("python")}),[]);var Ze=function(){var t=(0,p.default)(u.default.mark((function t(a){var n,o,s;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={file_type:a},e.next=3,(0,T.getFileUri)(n);case 3:o=e.sent,200===(s=o.data).code?"java"===a?Be(s.data):qe(s.data):c.default.error(s.msg);case 6:case"end":return e.stop()}}),t,e)})));return function(e){return t.apply(this,arguments)}}(),Xe=function(){var a=(0,p.default)(u.default.mark((function a(n){var o,s,r,i;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.getJobInfo)(n);case 2:if(o=e.sent,200!==(s=o.data).code){e.next=29;break}t.setFieldValue("type",s.data.type),nt(s.data.type),e.t0=s.data.type,e.next="Python"===e.t0?10:"Java"===e.t0?14:"Dag"===e.t0?18:26;break;case 10:return Ce.setFieldsValue({name:s.data.name,tag:s.data.tag,image_url:s.data.image_url,script_file:"fromList",execute_command:s.data.execute_command}),ae("fromList"),se(s.data.script_file),e.abrupt("break",27);case 14:return xe.setFieldsValue({name:s.data.name,tag:s.data.tag,image_url:s.data.image_url,script_file:"fromList",execute_command:s.data.execute_command}),ae("fromList"),se(s.data.script_file),e.abrupt("break",27);case 18:return he.setFieldsValue({name:s.data.name,tag:s.data.tag,dag_url:s.data.dag_url}),Pe(s.data.dag_url),r=[],i=[],s.data.hd_relation.forEach((function(e){"input"===e.type?r.push(e):i.push(e)})),r.forEach((function(e,t){ge.setFieldValue("datasource"+t,e.datasource_id),ge.setFieldValue("sourceTable"+t,e.table)})),i.forEach((function(e,t){ve.setFieldValue("datasource"+t,e.datasource_id),ve.setFieldValue("sourceTable"+t,e.table)})),e.abrupt("break",27);case 26:return e.abrupt("break",27);case 27:e.next=30;break;case 29:c.default.error(s.msg);case 30:case"end":return e.stop()}}),a,e)})));return function(e){return a.apply(this,arguments)}}(),$e=function(e){De(e.target.value)},et=function(e){Ee?(e.preventDefault(),fe.find((function(e){return e===Ee}))?c.default.error("\u5b58\u5728\u540c\u540d\u6807\u7b7e"):(me([].concat(fe,[Ee])),ye.setFieldValue("tag",Ee),De(""),setTimeout((function(){Te.current&&Te.current.focus()}),0))):c.default.error("\u8bf7\u8f93\u5165\u81ea\u5b9a\u4e49\u4f5c\u4e1a\u6807\u7b7e\u540d\u79f0")},tt=function(e){ae(e.target.value)},at={onRemove:function(e){var t=Fe.indexOf(e),a=Fe.slice();a.splice(t,1),Oe(a)},beforeUpload:function(e){return Oe([].concat(Fe,[e])),!1},fileList:Fe},nt=function(e){"Java"===e?(Y("block"),$("none"),Q("none"),Ie("Java"),be(xe)):"Python"===e?(Y("none"),$("none"),Q("block"),Ie("Python"),be(Ce)):"Dag"===e&&(Y("none"),$("block"),Q("none"),Ie("Dag"),be(he))},ot=function(e){de(ie+e)},st=function(){var t=(0,p.default)(u.default.mark((function t(){var a,n,o,s,r,i,d;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.getFileInfomation)(ke);case 2:if(a=e.sent,200!==(n=a.data).code){e.next=22;break}if(o=n.data.nodes.filter((function(e){return"datasource"===e.op})),s=n.data.nodes.filter((function(e){return"outputsource"===e.op})),r=[],o.forEach((function(e,t){r.push({type:"input",datasource_id:ge.getFieldValue("datasource"+t),node_uuid:e.id,table:ge.getFieldValue("sourceTable"+t)})})),s.forEach((function(e,t){r.push({type:"output",datasource_id:ve.getFieldValue("datasource"+t),node_uuid:e.id,table:ve.getFieldValue("sourceTable"+t)})})),i=(0,l.default)({},he.getFieldValue(),{script_file:"",type:Se,dag_uuid:"test",image_url:"",relation_list:r,execute_command:""}),d={},!w){e.next=18;break}return e.next=15,(0,T.updateJobInfo)(state.id,i);case 15:d=e.sent,e.next=21;break;case 18:return e.next=20,(0,T.createJob)(i);case 20:d=e.sent;case 21:200===d.data.code?x.goBack():c.default.error(d.data.msg);case 22:case"end":return e.stop()}}),t,e)})));return function(){return t.apply(this,arguments)}}();(0,y.useEffect)((function(){switch(ie){case 0:be(he);break;case 1:be(ge);break;case 2:be(ve)}dt(),lt(),rt(),it()}),[ie]);var rt=function(){var t=(0,p.default)(u.default.mark((function t(){var a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.getConstantsTypes)("pythonImage");case 2:0!==(a=e.sent).data.length&&Ye(a.data.data.map((function(e){return{label:e.split("/").pop(),value:e}})));case 4:case"end":return e.stop()}}),t,e)})));return function(){return t.apply(this,arguments)}}(),it=function(){var t=(0,p.default)(u.default.mark((function t(){var a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.getConstantsTypes)("javaImage");case 2:0!==(a=e.sent).data.length&&Qe(a.data.data.map((function(e){return{label:e.split("/").pop(),value:e}})));case 4:case"end":return e.stop()}}),t,e)})));return function(){return t.apply(this,arguments)}}(),dt=function(){var t=(0,p.default)(u.default.mark((function t(){var a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.getConstantsTypes)("\u4f5c\u4e1a\u7c7b\u578b");case 2:0!==(a=e.sent).data.length&&ce(a.data.data.map((function(e){return{label:e,value:e}})));case 4:case"end":return e.stop()}}),t,e)})));return function(){return t.apply(this,arguments)}}(),lt=function(){var t=(0,p.default)(u.default.mark((function t(){var a,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.getConstantsTypes)("\u4f5c\u4e1a\u6807\u7b7e");case 2:a=e.sent,200===(n=a.data).code?me(n.data):c.default.error(n.msg);case 5:case"end":return e.stop()}}),t,e)})));return function(){return t.apply(this,arguments)}}(),ut=function(){var t=(0,p.default)(u.default.mark((function t(){var a,n,o,s,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(0,l.default)({},ye.getFieldValue(),{type:Se,dag_uuid:"",dag_url:"",relation_list:[]}),"fromList"!==te){e.next=5;break}a.script_file=oe,e.next=14;break;case 5:return n=new FormData,Fe.forEach((function(e){n.append("file",e)})),n.append("project_id","test"),n.append("file_type","Java"===Se?"java":"python"),e.next=11,(0,T.uploadFile)(n);case 11:o=e.sent,200===(s=o.data).code?a.script_file=s.data:c.default.error(s.msg);case 14:if(r={},!w){e.next=21;break}return e.next=18,(0,T.updateJobInfo)(w,a);case 18:r=e.sent,e.next=24;break;case 21:return e.next=23,(0,T.createJob)(a);case 23:r=e.sent;case 24:200===r.data.code?x.goBack():c.default.error(r.data.msg);case 25:case"end":return e.stop()}}),t,e)})));return function(){return t.apply(this,arguments)}}(),ct=function(){ye.validateFields().then((function(){null!==oe||Fe.length>0?ut():c.default.error("\u8bf7\u9009\u62e9\u811a\u672c")})).catch((function(e){c.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))},pt=function(){x.goBack()},ft=function(e){se(e)},mt=function(){var t=(0,p.default)(u.default.mark((function t(a){var n,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.deleteTag)({type:"\u4f5c\u4e1a\u6807\u7b7e",val:a});case 2:n=e.sent,200===(o=n.data).code?(ye.setFieldValue("tag",null),c.default.success("\u5220\u9664\u6210\u529f"),lt()):c.default.error(o.msg);case 5:case"end":return e.stop()}}),t,e)})));return function(e){return t.apply(this,arguments)}}(),ht=(0,d.default)(r.default,{type:"text",icon:z,onClick:et},void 0,"\u6dfb\u52a0\u5206\u7c7b"),gt=(0,d.default)(r.default,{type:"text",icon:q,onClick:et},void 0,"\u6dfb\u52a0\u5206\u7c7b");return(0,d.default)(E,{},void 0,(0,d.default)(D,{},void 0,(0,d.default)("div",{},void 0,A,b.default.createElement(h.default,(0,l.default)({},L,{form:t,name:"control-hooks",__source:{fileName:v,lineNumber:550}}),(0,d.default)(k,{name:"type",label:"\u9009\u62e9\u4f5c\u4e1a\u7c7b\u578b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4f5c\u4e1a\u7c7b\u578b"}]},void 0,(0,d.default)(g.default,{placeholder:"\u8bf7\u9009\u62e9\u4f5c\u4e1a\u7c7b\u578b...",onSelect:nt,options:ue})))),(0,d.default)("div",{className:"DagInfo",style:{display:X}},void 0,(0,d.default)(f.default,{labelPlacement:"vertical",size:"small",current:ie},void 0,(0,d.default)(a,{title:"\u6b65\u9aa41: \u914d\u7f6e\u4f5c\u4e1a\u4fe1\u606f"}),(0,d.default)(a,{title:"\u6b65\u9aa42: \u5b9a\u4e49\u8f93\u5165\u6570\u636e\u6e90"}),(0,d.default)(a,{title:"\u6b65\u9aa43: \u5b9a\u4e49\u8f93\u51fa\u6570\u636e\u6e90"})),R,0===ie&&(0,d.default)(C.default,{ConfigDataForm:he,SelectDag:function(e){return Pe(e)}}),1===ie&&(0,d.default)(j.default,{InputDataForm:ge,dagData:ke,checkSync:function(e){return Ae(e)}}),2===ie&&(0,d.default)(S.default,{OutputDataForm:ve,dagData:ke,checkSync:function(e){return Ae(e)}}),(0,d.default)(i.default,{style:{margin:"20px"}},void 0,(0,d.default)(r.default,{onClick:function(){0!==ie?ot(-1):x.goBack()}},void 0,0===ie?"\u53d6\u6d88":"\u4e0a\u4e00\u6b65"),(0,d.default)(r.default,{type:"primary",onClick:function(){ye.validateFields().then((function(){0===ie||Ne?2===ie?st():ot(1):c.default.error("\u8bf7\u68c0\u67e5\u5b57\u6bb5\u5bf9\u5e94\u5173\u7cfb")})).catch((function(e){c.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))}},void 0,2===ie?"\u63d0\u4ea4":"\u4e0b\u4e00\u6b65"))),(0,d.default)("div",{className:"JaPyInfo",style:{display:H}},void 0,F,b.default.createElement(h.default,(0,l.default)({},L,{form:xe,name:"control-hooks",__source:{fileName:v,lineNumber:617}}),(0,d.default)(k,{name:"name",label:"\u4f5c\u4e1a\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4f5c\u4e1a\u540d\u79f0"}]},void 0,O),(0,d.default)(k,{shouldUpdate:!0,name:"tag",label:"\u4f5c\u4e1a\u6807\u7b7e",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4f5c\u4e1a\u6807\u7b7e"}]},void 0,(0,d.default)(g.default,{showSearch:!0,optionFilterProp:"label",placeholder:"\u8bf7\u9009\u62e9\u4f5c\u4e1a\u6807\u7b7e...",allowClear:!0,optionLabelProp:"label",dropdownRender:function(e){return(0,d.default)("div",{},void 0,e,(0,d.default)(s.default,{style:{margin:"8px 0"}}),(0,d.default)(i.default,{style:{padding:"0 8px 4px"}},void 0,b.default.createElement(o.default,{placeholder:"\u6dfb\u52a0\u4f5c\u4e1a\u6807\u7b7e",ref:Te,value:Ee,onChange:$e,__source:{fileName:v,lineNumber:662}}),ht))}},void 0,fe.map((function(e){return(0,d.default)(M,{value:e,label:e},e,(0,d.default)(i.default,{},void 0,(0,d.default)(_.DeleteOutlined,{onClick:function(){return mt(e)}}),(0,d.default)("span",{},void 0,e)))})))),(0,d.default)(k,{name:"image_url",label:"\u914d\u7f6e\u6267\u884c\u7684\u955c\u50cf",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u914d\u7f6e\u6267\u884c\u7684\u955c\u50cf"}]},void 0,(0,d.default)(g.default,{placeholder:"\u8bf7\u9009\u62e9\u955c\u50cf...",allowClear:!0,showSearch:!0,optionFilterProp:"label"},void 0,Je.map((function(e){return(0,d.default)(M,{value:e.value,label:e.label},e.value,e.label)})))),(0,d.default)(k,{label:"\u914d\u7f6e\u6267\u884c\u7684Java\u811a\u672c",name:"script_file",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u914d\u7f6e\u6267\u884c\u7684Java\u811a\u672c"}]},void 0,(0,d.default)(P,{onChange:tt},void 0,(0,d.default)(i.default,{direction:"vertical",className:"jsSel"},void 0,(0,d.default)(m.default,{value:"fromList"},void 0,(0,d.default)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()}},void 0,(0,d.default)(g.default,{showSearch:!0,optionFilterProp:"label",placeholder:"\u5728\u5de5\u4f5c\u76ee\u5f55\u4e2d\u9009\u62e9",allowClear:!0,className:"javaSelect",value:oe,onChange:ft,disabled:"fromList"!==te},void 0,Ue.map((function(e){return(0,d.default)(M,{value:e.uri,label:e.name},e.uri,e.name)}))))),(0,d.default)(m.default,{value:"fromLocal"},void 0,b.default.createElement(n.default,(0,l.default)({},at,{accept:".jar",__source:{fileName:v,lineNumber:741}}),(0,d.default)(r.default,{disabled:"fromLocal"!==te,type:"primary",className:"upButton"},void 0,"\u672c\u5730\u4e0a\u4f20")))))),(0,d.default)(k,{label:"\u6267\u884c\u547d\u4ee4",name:"execute_command",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6267\u884c\u547d\u4ee4"}]},void 0,V),b.default.createElement(k,(0,l.default)({},N,{__source:{fileName:v,lineNumber:762}}),(0,d.default)("div",{className:"JaPySubmit"},void 0,(0,d.default)("div",{className:"Cancel"},void 0,(0,d.default)(r.default,{onClick:pt},void 0,"\u53d6\u6d88")),(0,d.default)("div",{className:"Submit"},void 0,(0,d.default)(r.default,{onClick:ct},void 0,"\u63d0\u4ea4")))))),(0,d.default)("div",{className:"JaPyInfo",style:{display:J}},void 0,U,b.default.createElement(h.default,(0,l.default)({},L,{form:Ce,name:"control-hooks",__source:{fileName:v,lineNumber:783}}),(0,d.default)(k,{name:"name",label:"\u4f5c\u4e1a\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4f5c\u4e1a\u540d\u79f0"}]},void 0,B),(0,d.default)(k,{name:"tag",label:"\u4f5c\u4e1a\u6807\u7b7e",rules:[{required:!0,message:"\u8bf7\u9009\u5219\u4f5c\u4e1a\u6807\u7b7e"}]},void 0,(0,d.default)(g.default,{showSearch:!0,optionFilterProp:"label",placeholder:"\u8bf7\u9009\u62e9\u4f5c\u4e1a\u6807\u7b7e...",allowClear:!0,optionLabelProp:"label",dropdownRender:function(e){return(0,d.default)("div",{},void 0,e,(0,d.default)(s.default,{style:{margin:"8px 0"}}),(0,d.default)(i.default,{style:{padding:"0 8px 4px"}},void 0,b.default.createElement(o.default,{placeholder:"\u6dfb\u52a0\u4f5c\u4e1a\u6807\u7b7e",ref:Te,value:Ee,onChange:$e,__source:{fileName:v,lineNumber:826}}),gt))}},void 0,fe.map((function(e){return(0,d.default)(M,{value:e,label:e},e,(0,d.default)(i.default,{},void 0,(0,d.default)(_.DeleteOutlined,{onClick:function(){return mt(e)}}),(0,d.default)("span",{},void 0,e)))})))),(0,d.default)(k,{name:"image_url",label:"\u914d\u7f6e\u6267\u884c\u7684\u955c\u50cf",rules:[{required:!0,message:"\u8bf7\u914d\u7f6e\u6267\u884c\u7684\u955c\u50cf"}]},void 0,(0,d.default)(g.default,{showSearch:!0,optionFilterProp:"label",placeholder:"\u8bf7\u9009\u62e9\u955c\u50cf...",allowClear:!0},void 0,He.map((function(e){return(0,d.default)(M,{value:e.value,label:e.label},e.value,e.label)})))),(0,d.default)(k,{label:"\u914d\u7f6e\u6267\u884c\u7684Python\u811a\u672c",name:"script_file",rules:[{required:!0,message:"\u8bf7\u914d\u7f6e\u6267\u884c\u7684Python\u811a\u672c"}]},void 0,(0,d.default)(P,{onChange:tt,className:"PyScript_file"},void 0,(0,d.default)(i.default,{direction:"vertical"},void 0,(0,d.default)(m.default,{value:"fromList"},void 0,(0,d.default)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()}},void 0,(0,d.default)(g.default,{showSearch:!0,optionFilterProp:"label",placeholder:"\u5728\u5de5\u4f5c\u76ee\u5f55\u4e2d\u9009\u62e9",allowClear:!0,className:"javaSelect",value:oe,onChange:ft,disabled:"fromList"!==te},void 0,ze.map((function(e){return(0,d.default)(M,{value:e.uri,label:e.name},e.uri,e.name)}))))),(0,d.default)(m.default,{value:"fromLocal"},void 0,b.default.createElement(n.default,(0,l.default)({},at,{accept:".py",__source:{fileName:v,lineNumber:903}}),(0,d.default)(r.default,{className:"upButton",type:"primary",disabled:"fromLocal"!==te},void 0,"\u4e0a\u4f20main\u6587\u4ef6")))))),G,b.default.createElement(k,(0,l.default)({},N,{__source:{fileName:v,lineNumber:915}}),(0,d.default)("div",{className:"JaPySubmit"},void 0,(0,d.default)("div",{className:"Cancel"},void 0,(0,d.default)(r.default,{onClick:pt},void 0,"\u53d6\u6d88")),(0,d.default)("div",{className:"Submit"},void 0,(0,d.default)(r.default,{onClick:ct},void 0,"\u63d0\u4ea4"))))))))},a("./node_modules/antd/es/upload/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/steps/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var _=a("./node_modules/@ant-design/icons/es/index.js"),y=a("./node_modules/react/index.js"),b=w(y),x=w(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),C=w(a("./src/module/taskSchedule/jobMgmt/component/JobStepOne.jsx")),j=w(a("./src/module/taskSchedule/jobMgmt/component/JobStepTwo.jsx")),S=w(a("./src/module/taskSchedule/jobMgmt/component/JobStepThree.jsx")),I=a("./node_modules/react-router-dom/esm/react-router-dom.js"),T=a("./src/module/taskSchedule/jobMgmt/services/index.js");function w(e){return e&&e.__esModule?e:{default:e}}var E=x.default.div.withConfig({displayName:"JobCreate__JobCre",componentId:"l5ekai-0"})(["padding:20px;"]),D=x.default.div.withConfig({displayName:"JobCreate__CreContent",componentId:"l5ekai-1"})(["background-color:#ffffff;padding:20px 10px;.creTitle{width:120px;height:60px;margin-left:15px;display:flex;}.bluetTitle{background-color:rgba(24,129,218,1);width:3px;height:16px;margin-top:25px;line-height:67px;}.creText{width:105px;height:20px;margin-left:10px;overflow-wrap:break-word;color:rgba(74,74,74,1);font-size:14px;letter-spacing:1px;text-align:center;white-space:nowrap;line-height:67px;font-weight:800;}.ant-form-item-control-input{width:295px;}.JaPyInfo{.JaPySubmit{display:flex;.Submit{margin-left:20px;.ant-btn{color:#1890ff;border-color:#1890ff;}}.Cancel{.ant-btn{color:#1890ff;border-color:#1890ff;}}}.javaSelect{width:370px;}}.DagInfo{.ant-steps-item-icon{width:42px;height:42px;line-height:42px;}.ant-steps-item-tail{font-size:1px;margin-left:67px;}.ant-steps-label-vertical .ant-steps-item-content{width:220px;}}"]),M=g.default.Option,k=h.default.Item,P=m.default.Group,L={labelCol:{span:4},wrapperCol:{span:8}},N={wrapperCol:{offset:4,span:8}},A=(0,d.default)("div",{className:"creTitle"},void 0,(0,d.default)("div",{className:"bluetTitle"}),(0,d.default)("span",{className:"creText"},void 0,"\u914d\u7f6e\u4f5c\u4e1a\u7c7b\u578b")),R=(0,d.default)("div",{className:"creTitle"},void 0,(0,d.default)("div",{className:"bluetTitle"}),(0,d.default)("span",{className:"creText"},void 0,"\u914d\u7f6e\u4f5c\u4e1a\u4fe1\u606f")),F=(0,d.default)("div",{className:"creTitle"},void 0,(0,d.default)("div",{className:"bluetTitle"}),(0,d.default)("span",{className:"creText"},void 0,"\u914d\u7f6e\u4f5c\u4e1a\u4fe1\u606f")),O=(0,d.default)(o.default,{placeholder:"\u8bf7\u8f93\u5165\u4f5c\u4e1a\u540d\u79f0...",allowClear:!0}),V=(0,d.default)(o.default,{placeholder:"\u8bf7\u8f93\u5165\u6267\u884c\u547d\u4ee4...",allowClear:!0}),U=(0,d.default)("div",{className:"creTitle"},void 0,(0,d.default)("div",{className:"bluetTitle"}),(0,d.default)("span",{className:"creText"},void 0,"\u914d\u7f6e\u4f5c\u4e1a\u4fe1\u606f")),B=(0,d.default)(o.default,{placeholder:"\u8bf7\u8f93\u5165\u4f5c\u4e1a\u540d\u79f0...",allowClear:!0}),G=(0,d.default)(k,{label:"\u6267\u884c\u547d\u4ee4",name:"execute_command"},void 0,(0,d.default)(o.default,{placeholder:"python main.py",allowClear:!0})),z=(0,d.default)(_.PlusOutlined,{}),q=(0,d.default)(_.PlusOutlined,{})},"./src/module/taskSchedule/jobMgmt/component/JobItems.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/table/index.js")),o=x(a("./node_modules/antd/es/button/index.js")),s=x(a("./node_modules/antd/es/popconfirm/index.js")),r=x(a("./node_modules/antd/es/message/index.js")),i=x(a("./node_modules/antd/es/input/index.js")),d=x(a("./node_modules/babel-runtime/regenerator/index.js")),l=x(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=x(a("./node_modules/babel-runtime/helpers/extends.js")),c=x(a("./node_modules/babel-runtime/helpers/jsx.js")),p=x(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),f=x(a("./node_modules/antd/es/form/index.js")),m="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\taskSchedule\\jobMgmt\\component\\JobItems.jsx";a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/popconfirm/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var h=a("./node_modules/react/index.js"),g=x(h),v=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),_=a("./node_modules/react-router-dom/esm/react-router-dom.js"),y=a("./src/module/taskSchedule/jobMgmt/services/index.js"),b=(x(a("./node_modules/prop-types/index.js")),a("./src/routes/routeHelper.jsx"));function x(e){return e&&e.__esModule?e:{default:e}}var C=g.default.createContext(null),j=f.default.Item,S=v.default.div.withConfig({displayName:"JobItems",componentId:"sc-1mb1fd9-0"})(["background-color:#ffffff;.delButton{margin-left:40px;}.actionBtn{cursor:pointer;color:#1890ff;}.ant-table-wrapper{margin-right:12px;.ant-table{margin-left:16px;}}"]),I=function(e){e.index;var t=(0,p.default)(e,["index"]),a=f.default.useForm()[0];return(0,c.default)(f.default,{form:a,component:!1},void 0,(0,c.default)(C.Provider,{value:a},void 0,g.default.createElement("tr",(0,u.default)({},t,{__source:{fileName:m,lineNumber:33}}))))},T=function(e){var t=e.title,a=e.editable,n=e.children,o=e.dataIndex,s=e.record,r=e.handleSave,f=(0,p.default)(e,["title","editable","children","dataIndex","record","handleSave"]),v=(0,h.useState)(!1),_=v[0],y=v[1],b=(0,h.useRef)(null),x=(0,h.useContext)(C);(0,h.useEffect)((function(){_&&b.current.focus()}),[_]);var S=function(){var e;y(!_),x.setFieldsValue(((e={})[o]=s[o],e))},I=function(){var e=(0,l.default)(d.default.mark((function e(){var t;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,x.validateFields();case 3:t=e.sent,S(),r((0,u.default)({},s,t)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log("Save failed:",e.t0);case 11:case"end":return e.stop()}}),e,void 0,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),T=n;return a&&(T=_?(0,c.default)(j,{style:{margin:0},name:o,rules:[{required:!0,message:t+" is required."}]},void 0,g.default.createElement(i.default,{ref:b,onPressEnter:I,onBlur:I,__source:{fileName:m,lineNumber:82}})):(0,c.default)("div",{className:"editable-cell-value-wrap",style:{paddingRight:24},onClick:S},void 0,n)),g.default.createElement("td",(0,u.default)({},f,{__source:{fileName:m,lineNumber:97}}),T)},w=(0,c.default)("span",{className:"delButton actionBtn"},void 0,"\u5220\u9664");t.default=function(){var e=(0,h.useState)(!1),t=e[0],a=e[1],i=function(){var e=(0,l.default)(d.default.mark((function e(){var t,n,o;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"test",a(!0),e.next=4,(0,y.getJobDataList)("test");case 4:t=e.sent,200===(n=t.data).code?(o=n.data.map((function(e){return{key:e.id,name:e.name,type:e.type,tag:e.tag,create_time:e.create_time,update_time:e.update_time}})),m(o)):r.default.error(n.msg),a(!1);case 8:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}();(0,h.useEffect)((function(){i()}),[]);var p=(0,h.useState)(),f=p[0],m=p[1],g=(0,_.useHistory)(),v=function(){var e=(0,l.default)(d.default.mark((function e(t){var a,n;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.deleteJob)(t);case 2:a=e.sent,200===a.data.code?(n=f.filter((function(e){return e.key!==t})),m(n),r.default.success("\u5220\u9664\u6210\u529f")):r.default.error("\u5220\u9664\u5931\u8d25");case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),x=function(e){var t=new Date(1e3*Number(e));return t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate())+" "+(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())},C=function(e){var t=[].concat(f),a=t.findIndex((function(t){return e.key===t.key})),n=t[a];t.splice(a,1,(0,u.default)({},n,e)),m(t)},j={body:{row:I,cell:T}},E=[{title:"\u4f5c\u4e1a\u540d\u79f0",dataIndex:"name",width:"16.6%"},{title:"\u4f5c\u4e1a\u7c7b\u578b",dataIndex:"type",width:"16.6%"},{title:"\u4f5c\u4e1a\u5206\u7c7b",dataIndex:"tag",width:"16.6%"},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"create_time",width:"16.6%",render:function(e){return x(e)}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"update_time",width:"16.6%",render:function(e){return x(e)}},{title:"\u64cd\u4f5c",dataIndex:"operation",width:"16.6%",render:function(e,t){return f.length>=1?(0,c.default)("div",{},void 0,(0,c.default)("span",{className:"actionBtn",onClick:function(){return e=t.key,void g.push(b.jobManageUrl.edit(e));var e}},void 0,"\u7f16\u8f91"),(0,c.default)(s.default,{title:"\u786e\u8ba4\u5220\u9664\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onConfirm:function(){return v(t.key)}},void 0,w)):null}}].map((function(e){return e.editable?(0,u.default)({},e,{onCell:function(t){return{record:t,editable:e.editable,dataIndex:e.dataIndex,title:e.title,handleSave:C}}}):e}));return(0,c.default)(S,{},void 0,(0,c.default)(_.Link,{to:"/task/jobManage/create"},void 0,(0,c.default)(o.default,{type:"primary",style:{float:"right",marginBottom:16,marginTop:"18px",marginRight:"16px",fontSize:"12px"}},void 0,"\u521b\u5efa\u4f5c\u4e1a")),(0,c.default)(n.default,{components:j,rowClassName:function(){return"editable-row"},bordered:!0,loading:t,dataSource:f,columns:E}))}},"./src/module/taskSchedule/jobMgmt/component/JobStepOne.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/button/index.js")),o=y(a("./node_modules/babel-runtime/helpers/extends.js")),s=y(a("./node_modules/antd/es/input/index.js")),r=y(a("./node_modules/antd/es/space/index.js")),i=y(a("./node_modules/antd/es/divider/index.js")),d=y(a("./node_modules/babel-runtime/helpers/jsx.js")),l=y(a("./node_modules/antd/es/message/index.js")),u=y(a("./node_modules/babel-runtime/regenerator/index.js")),c=y(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),p=y(a("./node_modules/antd/es/form/index.js")),f=y(a("./node_modules/antd/es/select/index.js")),m="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\taskSchedule\\jobMgmt\\component\\JobStepOne.jsx";t.default=function(e){var t=this,a=e.ConfigDataForm,y=e.SelectDag,I=(0,g.useRef)(null),T=(0,g.useState)(""),w=T[0],E=T[1],D=(0,g.useState)([]),M=D[0],k=D[1],P=(0,g.useState)([]),L=P[0],N=P[1];(0,g.useEffect)((function(){var e=a.getFieldValue("DagJobName");e&&a.setFieldValue("DagJobName",e),A(),R()}),[]);var A=function(){var e=(0,c.default)(u.default.mark((function e(){var a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.getConstantsTypes)("\u4f5c\u4e1a\u6807\u7b7e");case 2:200===(a=e.sent).data.code&&k(a.data.data);case 4:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=(0,c.default)(u.default.mark((function e(){var a,n,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={file_type:"dag"},e.next=3,(0,_.getFileUri)(a);case 3:n=e.sent,200===(o=n.data).code?N(o.data):l.default.error(o.msg);case 6:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),F=function(e){E(e.target.value)},O=function(){var e=(0,c.default)(u.default.mark((function e(n){var o,s;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.deleteTag)({type:"\u4f5c\u4e1a\u6807\u7b7e",val:n});case 2:o=e.sent,200===(s=o.data).code?(a.setFieldValue("tag",null),l.default.success("\u5220\u9664\u6210\u529f"),A()):l.default.error(s.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=(0,c.default)(u.default.mark((function e(n){var o,s;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.deleteFile)(n);case 2:o=e.sent,200===(s=o.data).code?(a.setFieldValue("dag_url",null),l.default.success("\u5220\u9664\u6210\u529f"),R()):l.default.error(s.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}(),U=(0,d.default)(n.default,{type:"text",icon:S,onClick:function(e){w?(e.preventDefault(),M.find((function(e){return e===w}))?l.default.error("\u5b58\u5728\u540c\u540d\u6807\u7b7e"):(k([].concat(M,[w])),a.setFieldValue("tag",w),E(""),setTimeout((function(){I.current&&I.current.focus()}),0))):l.default.error("\u8bf7\u8f93\u5165\u81ea\u5b9a\u4e49\u4f5c\u4e1a\u6807\u7b7e\u540d\u79f0")}},void 0,"\u6dfb\u52a0\u5206\u7c7b");return(0,d.default)("div",{},void 0,v.default.createElement(p.default,(0,o.default)({},C,{form:a,name:"control-hooks",__source:{fileName:m,lineNumber:105}}),(0,d.default)(x,{name:"name",label:"\u4f5c\u4e1a\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4f5c\u4e1a\u540d\u79f0"}]},void 0,j),(0,d.default)(x,{name:"tag",label:"\u4f5c\u4e1a\u6807\u7b7e",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4f5c\u4e1a\u6807\u7b7e"}]},void 0,(0,d.default)(f.default,{showSearch:!0,optionFilterProp:"label",placeholder:"\u8bf7\u9009\u62e9\u4f5c\u4e1a\u6807\u7b7e...",allowClear:!0,optionLabelProp:"label",dropdownRender:function(e){return(0,d.default)("div",{},void 0,e,(0,d.default)(i.default,{style:{margin:"8px 0"}}),(0,d.default)(r.default,{style:{padding:"0 8px 4px"}},void 0,v.default.createElement(s.default,{placeholder:"\u6dfb\u52a0\u4f5c\u4e1a\u6807\u7b7e",ref:I,value:w,onChange:F,__source:{fileName:m,lineNumber:153}}),U))}},void 0,M.map((function(e){return(0,d.default)(b,{value:e,label:e},e,(0,d.default)(r.default,{},void 0,(0,d.default)(h.DeleteOutlined,{onClick:function(){return O(e)}}),(0,d.default)("span",{},void 0,e)))})))),(0,d.default)(x,{className:"mirrorLeft",name:"dag_url",label:"\u9009\u62e9DAG\u7b97\u5b50",rules:[{required:!0,message:"\u8bf7\u9009\u62e9DAG\u7b97\u5b50"}]},void 0,(0,d.default)(f.default,{showSearch:!0,optionFilterProp:"label",placeholder:"\u8bf7\u9009\u62e9DAG\u7b97\u5b50",allowClear:!0,optionLabelProp:"label",onDropdownVisibleChange:function(e){e&&R()},onSelect:function(e){return y(e)}},void 0,L.map((function(e){return(0,d.default)(b,{value:e.uri,label:e.name},e.uri,(0,d.default)(r.default,{},void 0,(0,d.default)(h.DeleteOutlined,{onClick:function(){return V(e.uri)}}),(0,d.default)("span",{},void 0,e.name)))}))))))},a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/form/style/index.js"),a("./node_modules/antd/es/select/style/index.js");var h=a("./node_modules/@ant-design/icons/es/index.js"),g=a("./node_modules/react/index.js"),v=y(g),_=a("./src/module/taskSchedule/jobMgmt/services/index.js");y(a("./node_modules/prop-types/index.js"));function y(e){return e&&e.__esModule?e:{default:e}}var b=f.default.Option,x=p.default.Item,C={labelCol:{span:4},wrapperCol:{span:8}},j=(0,d.default)(s.default,{placeholder:"\u8bf7\u8f93\u5165\u4f5c\u4e1a\u540d\u79f0...",allowClear:!0}),S=(0,d.default)(h.PlusOutlined,{})},"./src/module/taskSchedule/jobMgmt/component/JobStepThree.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/tooltip/index.js")),o=y(a("./node_modules/antd/es/button/index.js")),s=y(a("./node_modules/antd/es/alert/index.js")),r=y(a("./node_modules/antd/es/row/index.js")),i=y(a("./node_modules/babel-runtime/helpers/jsx.js")),d=y(a("./node_modules/babel-runtime/helpers/extends.js")),l=y(a("./node_modules/babel-runtime/regenerator/index.js")),u=y(a("./node_modules/antd/es/message/index.js")),c=y(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),p=y(a("./node_modules/antd/es/select/index.js")),f=y(a("./node_modules/antd/es/form/index.js"));t.default=function(e){var t=this,a=e.OutputDataForm,m=e.dagData,y=e.checkSync,S=(0,g.useState)([]),I=S[0],T=S[1],w=(0,g.useState)([]),E=w[0],D=w[1],M=(0,g.useState)([]),k=M[0],P=M[1],L=(0,g.useState)("none"),N=L[0],A=L[1],R=(0,g.useState)([]),F=R[0],O=R[1],V=(0,g.useState)({}),U=V[0],B=V[1],G=(0,g.useState)({}),z=G[0],q=G[1],K=(0,g.useState)({}),H=K[0],Y=K[1],W=(0,g.useState)({}),J=W[0],Q=W[1],Z=(0,g.useState)({}),X=Z[0],$=Z[1],ee=function(){var e=(0,c.default)(l.default.mark((function e(a){var n,o,s;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.getFileInfomation)(a);case 2:n=e.sent,200===(o=n.data).code?(s=o.data.nodes.filter((function(e){return"outputsource"===e.op})),T(s)):u.default.error(o.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}(),te=function(){var e=(0,c.default)(l.default.mark((function e(){var a,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.getLocalSource)();case 2:a=e.sent,200===(n=a.data).code?D(n.data):u.default.error(n.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=(0,c.default)(l.default.mark((function e(){var a,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.getLocalSourceTable)();case 2:a=e.sent,200===(n=a.data).code?P(n.data.table_list):u.default.error(n.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=(0,c.default)(l.default.mark((function e(a,n){var o,s,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===a){e.next=6;break}return e.next=3,(0,h.getLocalTableSchema)(a);case 3:o=e.sent,200===(s=o.data).code?(r=s.data.map((function(e){var t=e.split(":");return{dataField:t[1],dataType:t[2]}})),oe(r,I[n]&&I[n].data.output_source,n)):u.default.error(s.msg);case 6:case"end":return e.stop()}}),e,t)})));return function(t,a){return e.apply(this,arguments)}}(),oe=function(e,t,a){var n=[],o=[],s=!0;t.forEach((function(t){var a=e.find((function(e){return e.dataField===t.dataField}));if(a){var r=a.dataType.split("(")[0],i=t.dataType===r||["varchar","string"].includes(t.dataType)&&["varchar","string"].includes(r)||["int","bigint"].includes(t.dataType)&&["int","bigint"].includes(r);i||(s=!1),o.push({datasource:a,dag:t,result:i}),e=e.filter((function(e){return e!==a}))}else n.push(t)})),n.length>e.length?n.forEach((function(t,a){o.push({datasource:e[a],dag:t,result:!1})})):e.forEach((function(e,t){o.push({datasource:e,dag:n[t],result:!1})})),0===n.length&&s?$({index:a,state:!0}):$({index:a,state:!1}),Y({index:a,list:o})};(0,g.useEffect)((function(){te()}),[]),(0,g.useEffect)((function(){ee(m)}),[m]),(0,g.useEffect)((function(){I.forEach((function(e,t){var n=a.getFieldValue("sourceTable"+t);ae(),ne(n,t)}))}),[I]);var se=function(e,t){var a=(0,d.default)({},z);a[e]=t,q(a)};return(0,g.useEffect)((function(){var e=(0,d.default)({},J);e[X.index]=X.state,Q(e),se(X.index,!0)}),[X]),(0,g.useEffect)((function(){var e=(0,d.default)({},U);e[H.index]=H.list,B(e)}),[H]),(0,g.useEffect)((function(){var e=!0;Object.keys(J).filter((function(e){return"undefined"!==e})).forEach((function(t){J[t]||(e=!1)})),y(e)}),[J]),(0,i.default)(b,{},void 0,(0,i.default)("div",{className:"StepTwo-content"},void 0,(0,i.default)("div",{className:"content-item"},void 0,(0,i.default)(f.default,{name:"control-hooks",form:a,className:"form"},void 0,I.map((function(e,t){return(0,i.default)("div",{},t,(0,i.default)(r.default,{},void 0,(0,i.default)(x,{name:"datasource"+t,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90!"}],label:"Dag\u8282\u70b9 "+e.name,className:"dtsource"},void 0,(0,i.default)(p.default,{showSearch:!0,optionFilterProp:"label",onSelect:function(e){return ae()}},void 0,E.map((function(e){return(0,i.default)(C,{value:e.id,label:e.datasource_name},e.id,e.datasource_name)})))),(0,i.default)(x,{name:"sourceTable"+t,label:"\u9009\u62e9\u8868",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8868!"}],className:"item-choseList"},void 0,(0,i.default)(p.default,{showSearch:!0,optionFilterProp:"label",onChange:function(e){se(t,!1),ne(e,t)}},void 0,k.map((function(e){return(0,i.default)(C,{value:e,label:e},e,e)})))),(0,i.default)(s.default,{type:J[t]?"success":"warning",showIcon:!0,className:"stateIcon"}),(0,i.default)(o.default,{type:"primary",disabled:!z[t],onClick:function(){return function(e){A("block"),O(U[e])}(t)}},void 0,"\u7ed3\u6784\u9884\u89c8")),(0,i.default)(r.default,{},void 0,(0,i.default)("div",{className:"dataSourceType"},void 0,"\u6570\u636e\u6e90\u7c7b\u578b:",E.find((function(e){return e.id===a.getFieldValue("datasource"+t)}))&&E.find((function(e){return e.id===a.getFieldValue("datasource"+t)})).datasource)))}))))),(0,i.default)("div",{className:"structure-detail",style:{display:N}},void 0,j,(0,i.default)("div",{className:"detail-content"},void 0,F&&F.map((function(e,t){return(0,i.default)("div",{className:"detail-item"},t,(0,i.default)("div",{className:"dataSource "+(e&&e.datasource&&e.datasource.dataField?"":"nonData")},void 0,(0,i.default)(n.default,{title:(e&&e.datasource&&e.datasource.dataField)+"."+(e&&e.datasource&&e.datasource.dataType)},void 0,(0,i.default)("span",{},void 0,(e&&e.datasource&&e.datasource.dataField)+"."+(e&&e.datasource&&e.datasource.dataType)))),(0,i.default)("span",{className:"icon"},void 0,(0,i.default)("img",{src:e&&e.result?_.default:v.default,alt:"",style:{width:"20px",height:"20px"}})),(0,i.default)("div",{className:"dataSource Dagdatasource "+(e&&e.dag&&e.dag.dataField?"":"nonData")},void 0,(0,i.default)("span",{},void 0,(e&&e.dag&&e.dag.dataField)+"."+(e&&e.dag&&e.dag.dataType))))})))))},a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var m=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./src/module/taskSchedule/jobMgmt/services/index.js"),g=a("./node_modules/react/index.js"),v=(y(g),y(a("./src/module/taskSchedule/jobMgmt/style/img/warning.png"))),_=y(a("./src/module/taskSchedule/jobMgmt/style/img/sync.png"));y(a("./node_modules/prop-types/index.js"));function y(e){return e&&e.__esModule?e:{default:e}}var b=m.default.div.withConfig({displayName:"JobStepThree__StepTwo",componentId:"sc-1q3nvfc-0"})(["display:flex;.StepTwo-content{min-width:50%;margin:20px 30px 0;padding:20px;height:450px;overflow-y:auto;border:1px solid #c8d3e9;.dtsource{.ant-form-item-label{width:200px;}.ant-select{width:80%;}}.ant-row{margin-left:0;}.content-item{.item-choseList{.ant-form-item-control-input{width:160px;.ant-select{width:100%;}}}.stateIcon{display:inline-flex;height:32px;background-color:#fff;border:none;}.dataSourceType{margin-bottom:24px;color:#7d7d7d;}.form{flex-wrap:nowrap;}}}.structure-detail{display:flex;width:416px;height:450px;border:1px solid #c8d3e9;margin-top:20px;margin-left:60px;border-radius:2px;flex-wrap:wrap;flex-direction:column;.detail-title{width:100%;height:44px;margin-top:26px;color:#4a4a4a;border-bottom:1px solid #c8d3e9;.datasourceFont{margin-left:85px;}.schemaFont{margin-left:115px;}}.detail-content{height:350px;overflow:auto;::-webkit-scrollbar{display:none;}}.detail-item{display:flex;.icon{display:inline-block;text-align:center;height:40px;width:50px;color:#c8d3e9;line-height:50px;}.dataSource{margin-left:41px;margin-top:13px;width:130px;height:33px;line-height:33px;text-align:center;background-color:#eef5fe;border-radius:2px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:0 5px;}.Dagdatasource{margin-left:10px;}.nonData{color:transparent;background:transparent;}}}"]),x=f.default.Item,C=p.default.Option,j=(0,i.default)("div",{className:"detail-title"},void 0,(0,i.default)("span",{className:"datasourceFont"},void 0,"\u6570\u636e\u6e90"),(0,i.default)("span",{className:"schemaFont"},void 0,"Dag\u8f93\u51fa\u6e90\u7ed3\u6784"))},"./src/module/taskSchedule/jobMgmt/component/JobStepTwo.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=y(a("./node_modules/antd/es/tooltip/index.js")),o=y(a("./node_modules/antd/es/button/index.js")),s=y(a("./node_modules/antd/es/alert/index.js")),r=y(a("./node_modules/antd/es/row/index.js")),i=y(a("./node_modules/babel-runtime/helpers/jsx.js")),d=y(a("./node_modules/babel-runtime/helpers/extends.js")),l=y(a("./node_modules/babel-runtime/regenerator/index.js")),u=y(a("./node_modules/antd/es/message/index.js")),c=y(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),p=y(a("./node_modules/antd/es/select/index.js")),f=y(a("./node_modules/antd/es/form/index.js"));t.default=function(e){var t=this,a=e.InputDataForm,m=e.dagData,y=e.checkSync,S=(0,g.useState)([]),I=S[0],T=S[1],w=(0,g.useState)([]),E=w[0],D=w[1],M=(0,g.useState)([]),k=M[0],P=M[1],L=(0,g.useState)("none"),N=L[0],A=L[1],R=(0,g.useState)([]),F=R[0],O=R[1],V=(0,g.useState)({}),U=V[0],B=V[1],G=(0,g.useState)({}),z=G[0],q=G[1],K=(0,g.useState)({}),H=K[0],Y=K[1],W=(0,g.useState)({}),J=W[0],Q=W[1],Z=(0,g.useState)({}),X=Z[0],$=Z[1],ee=function(){var e=(0,c.default)(l.default.mark((function e(a){var n,o,s;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.getFileInfomation)(a);case 2:n=e.sent,200===(o=n.data).code?(s=o.data.nodes.filter((function(e){return"datasource"===e.op})),T(s)):u.default.error(o.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(t){return e.apply(this,arguments)}}(),te=function(){var e=(0,c.default)(l.default.mark((function e(){var a,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.getLocalSource)();case 2:a=e.sent,200===(n=a.data).code?D(n.data):u.default.error(n.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=(0,c.default)(l.default.mark((function e(){var a,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.getLocalSourceTable)();case 2:a=e.sent,200===(n=a.data).code?P(n.data.table_list):u.default.error(n.msg);case 5:case"end":return e.stop()}}),e,t)})));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=(0,c.default)(l.default.mark((function e(a,n){var o,s,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===a){e.next=6;break}return e.next=3,(0,h.getLocalTableSchema)(a);case 3:o=e.sent,200===(s=o.data).code?(r=s.data.map((function(e){var t=e.split(":");return{dataField:t[1],dataType:t[2]}})),oe(r,I[n]&&I[n].data.input_source,n)):u.default.error(s.msg);case 6:case"end":return e.stop()}}),e,t)})));return function(t,a){return e.apply(this,arguments)}}(),oe=function(e,t,a){var n=[],o=[],s=!0;(t=t.filter((function(e){return e.dataSelect}))).forEach((function(t){var a=e.find((function(e){return e.dataField===t.dataField}));if(a){var r=a.dataType.split("(")[0],i=t.dataType===r||["varchar","string"].includes(t.dataType)&&["varchar","string"].includes(r)||["int","bigint"].includes(t.dataType)&&["int","bigint"].includes(r);i||(s=!1),o.push({datasource:a,dag:t,result:i}),e=e.filter((function(e){return e!==a}))}else n.push(t)})),n.length>e.length?n.forEach((function(t,a){o.push({datasource:e[a],dag:t,result:!1})})):e.forEach((function(e,t){o.push({datasource:e,dag:n[t],result:!1})})),0===n.length&&s?$({index:a,state:!0}):$({index:a,state:!1}),Y({index:a,list:o})};(0,g.useEffect)((function(){te()}),[]),(0,g.useEffect)((function(){ee(m)}),[m]),(0,g.useEffect)((function(){I.forEach((function(e,t){var n=a.getFieldValue("sourceTable"+t);ae(),ne(n,t)}))}),[I]);var se=function(e,t){var a=(0,d.default)({},z);a[e]=t,q(a)};return(0,g.useEffect)((function(){var e=(0,d.default)({},J);e[X.index]=X.state,Q(e),se(X.index,!0)}),[X]),(0,g.useEffect)((function(){var e=(0,d.default)({},U);e[H.index]=H.list,B(e)}),[H]),(0,g.useEffect)((function(){var e=!0;Object.keys(J).filter((function(e){return"undefined"!==e})).forEach((function(t){J[t]||(e=!1)})),y(e)}),[J]),(0,i.default)(b,{},void 0,(0,i.default)("div",{className:"StepTwo-content"},void 0,(0,i.default)("div",{className:"content-item"},void 0,(0,i.default)(f.default,{name:"control-hooks",form:a,className:"form"},void 0,I.map((function(e,t){return(0,i.default)("div",{},t,(0,i.default)(r.default,{},void 0,(0,i.default)(x,{name:"datasource"+t,rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6570\u636e\u6e90!"}],label:"Dag\u8282\u70b9 "+e.name,className:"dtsource"},void 0,(0,i.default)(p.default,{showSearch:!0,optionFilterProp:"label",onSelect:function(e){return ae()}},void 0,E.map((function(e){return(0,i.default)(C,{value:e.id,label:e.datasource_name},e.id,e.datasource_name)})))),(0,i.default)(x,{name:"sourceTable"+t,label:"\u9009\u62e9\u8868",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8868!"}],className:"item-choseList"},void 0,(0,i.default)(p.default,{showSearch:!0,optionFilterProp:"label",onChange:function(e){se(t,!1),ne(e,t)}},void 0,k.map((function(e){return(0,i.default)(C,{value:e,label:e},e,e)})))),(0,i.default)(s.default,{type:J[t]?"success":"warning",showIcon:!0,className:"stateIcon"}),(0,i.default)(o.default,{type:"primary",onClick:function(){return function(e){A("block"),O(U[e])}(t)},disabled:!z[t]},void 0,"\u7ed3\u6784\u9884\u89c8")),(0,i.default)(r.default,{},void 0,(0,i.default)("div",{className:"dataSourceType"},void 0,"\u6570\u636e\u6e90\u7c7b\u578b:",E.find((function(e){return e.id===a.getFieldValue("datasource"+t)}))&&E.find((function(e){return e.id===a.getFieldValue("datasource"+t)})).datasource)))}))))),(0,i.default)("div",{className:"structure-detail",style:{display:N}},void 0,j,(0,i.default)("div",{className:"detail-content"},void 0,F&&F.map((function(e,t){return(0,i.default)("div",{className:"detail-item"},t,(0,i.default)("div",{className:"dataSource "+(e&&e.datasource&&e.datasource.dataField?"":"nonData")},void 0,(0,i.default)(n.default,{title:(e&&e.datasource&&e.datasource.dataField)+"."+(e&&e.datasource&&e.datasource.dataType)},void 0,(0,i.default)("span",{},void 0,(e&&e.datasource&&e.datasource.dataField)+"."+(e&&e.datasource&&e.datasource.dataType)))),(0,i.default)("span",{className:"icon"},void 0,(0,i.default)("img",{src:e&&e.result?_.default:v.default,alt:"",style:{width:"20px",height:"20px"}})),(0,i.default)("div",{className:"dataSource Dagdatasource "+(e&&e.dag&&e.dag.dataField?"":"nonData")},void 0,(0,i.default)("span",{},void 0,(e&&e.dag&&e.dag.dataField)+"."+(e&&e.dag&&e.dag.dataType))))})))))},a("./node_modules/antd/es/tooltip/style/index.js"),a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/alert/style/index.js"),a("./node_modules/antd/es/row/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var m=y(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),h=a("./src/module/taskSchedule/jobMgmt/services/index.js"),g=a("./node_modules/react/index.js"),v=(y(g),y(a("./src/module/taskSchedule/jobMgmt/style/img/warning.png"))),_=y(a("./src/module/taskSchedule/jobMgmt/style/img/sync.png"));y(a("./node_modules/prop-types/index.js"));function y(e){return e&&e.__esModule?e:{default:e}}var b=m.default.div.withConfig({displayName:"JobStepTwo__StepTwo",componentId:"lxeers-0"})(["display:flex;.StepTwo-content{min-width:50%;margin:20px 30px 0;padding:20px;height:450px;overflow-y:auto;border:1px solid #c8d3e9;.dtsource{.ant-form-item-label{width:200px;}.ant-select{width:80%;}}.ant-row{margin-left:0;}.content-item{.item-choseList{.ant-form-item-control-input{width:160px;.ant-select{width:100%;}}}.stateIcon{display:inline-flex;height:32px;background-color:#fff;border:none;}.dataSourceType{margin-bottom:24px;color:#7d7d7d;}.form{flex-wrap:nowrap;}}}.structure-detail{display:flex;width:416px;height:450px;border:1px solid #c8d3e9;margin-top:20px;margin-left:60px;border-radius:2px;flex-wrap:wrap;flex-direction:column;.detail-title{width:100%;height:44px;margin-top:26px;color:#4a4a4a;border-bottom:1px solid #c8d3e9;.datasourceFont{margin-left:85px;}.schemaFont{margin-left:115px;}}.detail-content{height:350px;overflow:auto;::-webkit-scrollbar{display:none;}}.detail-item{display:flex;.icon{display:inline-block;text-align:center;height:40px;width:50px;color:#c8d3e9;line-height:50px;}.dataSource{margin-left:41px;margin-top:13px;width:130px;height:33px;line-height:33px;text-align:center;background-color:#eef5fe;border-radius:2px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:0 5px;}.Dagdatasource{margin-left:10px;}.nonData{color:transparent;background:transparent;}}}"]),x=f.default.Item,C=p.default.Option,j=(0,i.default)("div",{className:"detail-title"},void 0,(0,i.default)("span",{className:"datasourceFont"},void 0,"\u6570\u636e\u6e90"),(0,i.default)("span",{className:"schemaFont"},void 0,"Dag\u8f93\u5165\u6e90\u7ed3\u6784"))},"./src/module/taskSchedule/jobMgmt/services/index.js":function(e,t,a){"use strict";t.__esModule=!0,t.getLocalTableSchema=t.getLocalSourceTable=t.getLocalSource=t.deleteFile=t.uploadFile=t.updateJobInfo=t.deleteTag=t.getJobInfo=t.getTableSchemaInfo=t.getTableNameInfo=t.getDataSourceInfo=t.getFileInfomation=t.getFileUri=t.deleteJob=t.createJob=t.getConstantsTypes=t.getJobDataList=void 0;var n=s(a("./node_modules/babel-runtime/helpers/extends.js")),o=s(a("./src/utils/requestForOcr.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.getJobDataList=function(e){return(0,o.default)({url:"/jpt/jm_homework/?project_id="+e,method:"get"})},t.getConstantsTypes=function(e){return(0,o.default)({url:"/jpt/constants/?type="+e,method:"get"})},t.createJob=function(e){return(0,o.default)({url:"/jpt/jm_homework/",method:"post",data:(0,n.default)({},e)})},t.deleteJob=function(e){return(0,o.default)({url:"/jpt/jm_homework/?jm_id="+e,method:"delete"})},t.getFileUri=function(e){return(0,o.default)({url:"/jpt/files/directory?project_id="+e.project_id+"&user_id="+e.user_id+"&file_type="+e.file_type,method:"get"})},t.getFileInfomation=function(e){return(0,o.default)({url:"/jpt/files/dag_content?uri="+e,method:"get"})},t.getDataSourceInfo=function(e){return(0,o.default)({url:"/jpt/datasource/?page="+e.page+"&size="+e.size,method:"get"})},t.getTableNameInfo=function(e){return(0,o.default)({url:"/jpt/datasource/table_names?ds_id="+e,method:"post"})},t.getTableSchemaInfo=function(e){return(0,o.default)({url:"/jpt/datasource/table_schema?ds_id="+e.id+"&table_name="+e.table_name,method:"post"})},t.getJobInfo=function(e){return(0,o.default)({url:"/jpt/jm_homework/info?homework_id="+e,methods:"get"})},t.deleteTag=function(e){return(0,o.default)({url:"/jpt/constants/?type="+e.type+"&value="+e.val,method:"delete"})},t.updateJobInfo=function(e,t){return(0,o.default)({url:"/jpt/jm_homework/?jm_id="+e,method:"put",data:(0,n.default)({},t)})},t.uploadFile=function(e){return(0,o.default)({url:"/jpt/files/upload_file",method:"post",data:e})},t.deleteFile=function(e){return(0,o.default)({url:"/jpt/files/dag?uri="+e,method:"delete"})},t.getLocalSource=function(){return(0,o.default)({url:"/jpt/jm_homework/ailab_source",method:"get"})},t.getLocalSourceTable=function(){return(0,o.default)({url:"/jpt/jm_homework/ailab_table",method:"get"})},t.getLocalTableSchema=function(e){return(0,o.default)({url:"/jpt/jm_homework/ailab_table_schema?table_name="+e,method:"get"})}},"./src/module/taskSchedule/jobMgmt/style/img/sync.png":function(e,t,a){e.exports=a.p+"assets/images/sync.5e704dd.png"},"./src/module/taskSchedule/jobMgmt/style/img/warning.png":function(e,t,a){e.exports=a.p+"assets/images/warning.b1dc057.png"},"./src/module/taskSchedule/taskLog/TaskLog.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/jsx.js"));t.default=function(){return d};r(a("./node_modules/react/index.js"));var o=r(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),s=r(a("./src/module/taskSchedule/taskLog/component/LogTable.jsx"));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.default.div.withConfig({displayName:"TaskLog__TSLog",componentId:"sc-1xaav3y-0"})(["padding:20px;.icon_wrapper{margin-right:15px;}.link_btn{display:flex;justify-content:end;margin-bottom:20px;}"]),d=(0,n.default)(i,{},void 0,(0,n.default)(s.default,{}))},"./src/module/taskSchedule/taskLog/component/LogTable.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=h(a("./node_modules/antd/es/table/index.js")),o=h(a("./node_modules/antd/es/message/index.js")),s=h(a("./node_modules/babel-runtime/regenerator/index.js")),r=h(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),i=h(a("./node_modules/antd/es/space/index.js")),d=h(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/space/style/index.js");var l=a("./node_modules/react/index.js"),u=(h(l),h(a("./node_modules/moment/moment.js"))),c=a("./node_modules/react-router-dom/esm/react-router-dom.js"),p=a("./src/module/taskSchedule/taskLog/services/index.js"),f=h(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),m=a("./src/routes/routeHelper.jsx");function h(e){return e&&e.__esModule?e:{default:e}}var g=f.default.div.withConfig({displayName:"LogTable__LogList",componentId:"sc-38y9wj-0"})([""]),v=null;t.default=function(){var e=(0,l.useState)([]),t=e[0],a=e[1],f=(0,l.useState)(!1),h=f[0],_=f[1],y=(0,l.useState)(1),b=y[0],x=y[1],C=(0,l.useState)(10),j=C[0],S=C[1],I=(0,l.useState)(0),T=I[0],w=I[1],E=(0,c.useHistory)(),D=(0,c.useParams)(),M=D.taskId,k=D.page,P=D.pageSize,L=[{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"jobName",key:"jobName"},{title:"\u4efb\u52a1\u7c7b\u578b",dataIndex:"taskType",key:"taskType"},{title:"\u4efb\u52a1\u6807\u7b7e",dataIndex:"taskTag",key:"taskTag"},{title:"\u5f00\u59cb\u65f6\u95f4",dataIndex:"startTime",key:"startTime"},{title:"\u4efb\u52a1\u72b6\u6001",dataIndex:"handleResult",key:"handleResult",render:function(e){return(0,d.default)("span",{style:{color:3===e?"#FF4D4F":2===e?"#52C41A":"#4A4A4A"}},void 0,3===e?"\u5931\u8d25":2===e?"\u6210\u529f":1===e?"\u8fd0\u884c\u4e2d":0===e?"\u961f\u5217\u4e2d":"\u6682\u65e0")}},{title:"\u64cd\u4f5c",key:"operation",render:function(e,t){return(0,d.default)(i.default,{size:"middle"},void 0,(0,d.default)("span",{onClick:function(){var e;e=t.key,E.push(m.taskLogUrl.logWatcher(e,M,b,j))},style:{color:"#1890ff",cursor:"pointer"}},void 0,"\u67e5\u770b"))}}],N=function(){var e=(0,r.default)(s.default.mark((function e(){var t,n,o,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,(0,p.getLogList)({page:i,size:d,id:M});case 3:t=e.sent,200===(n=t.data).code&&(w(n.data.extra_data.total),x(n.data.extra_data.page),S(n.data.extra_data.size),o=[],r=n.data.item.map((function(e){return[0,1].includes(e.execute_result)&&o.push(e.id),{key:e.id,jobName:e.job_name,startTime:(0,u.default)(1e3*Math.round(e.start_time)).format("YYYY.MM.DD HH:mm:ss"),handleResult:e.result,taskType:e.job_type,taskTag:e.job_tag,afJobId:e.af_job_id,runId:e.run_id}})),a(r),A(o)),_(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),A=function(){var e=(0,r.default)(s.default.mark((function e(n){var r,i,d,l;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===n.length){e.next=6;break}return e.next=3,(0,p.refreshLogsStatus)(n.toString());case 3:r=e.sent,200===(i=r.data).code?(d=[],l=[],Object.keys(i.data).forEach((function(e){[2,3].includes(i.data[e])?l=t.map((function(t){return t.id===e&&(t.execute_result=i.data[e]),t})):d.push(e)})),0!==l.length&&a(l),clearTimeout(v),v=setTimeout((function(){A(d)}),1e4)):o.default.error(i.msg);case 6:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){N()}),[]),(0,l.useEffect)((function(){N()}),[localStorage.getItem("AI.user_role_id")]),(0,l.useEffect)((function(){N(k||1,P||10)}),[M,k,P]),(0,l.useEffect)((function(){return function(){clearTimeout(v)}}),[]),(0,d.default)(g,{},void 0,(0,d.default)(n.default,{columns:L,dataSource:t,bordered:!0,loading:h,pagination:{current:b,total:T,pageSize:j,onChange:function(e,t){N(e,t)}}}))}},"./src/module/taskSchedule/taskLog/component/TaskLogWatcher.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=x(a("./node_modules/antd/es/button/index.js")),o=x(a("./node_modules/antd/es/checkbox/index.js")),s=x(a("./node_modules/antd/es/input/index.js")),r=x(a("./node_modules/antd/es/card/index.js")),i=x(a("./node_modules/antd/es/space/index.js")),d=x(a("./node_modules/antd/es/table/index.js")),l=x(a("./node_modules/babel-runtime/regenerator/index.js")),u=x(a("./node_modules/antd/es/message/index.js")),c=x(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),p=x(a("./node_modules/babel-runtime/helpers/jsx.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/checkbox/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/card/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var f=a("./node_modules/react/index.js"),m=(x(f),a("./node_modules/react-router-dom/esm/react-router-dom.js")),h=x(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),g=a("./src/module/taskSchedule/taskLog/services/index.js"),v=x(a("./node_modules/moment/moment.js")),_=a("./node_modules/@ant-design/icons/es/index.js"),y=x(a("./node_modules/mark.js/dist/mark.js")),b=a("./src/routes/routeHelper.jsx");function x(e){return e&&e.__esModule?e:{default:e}}var C=h.default.div.withConfig({displayName:"TaskLogWatcher__LogWrapper",componentId:"sc-84cwvh-0"})(["padding:20px;display:flex;height:100vh;column-gap:20px;.job-list{flex:1;}.log-info{width:70%;}.refresh{height:50px;display:flex;justify-content:space-between;}.log{background-color:#012b36;height:calc(100% - 50px);width:100%;overflow-y:scroll;color:#638691;padding:8px 10px;::-webkit-scrollbar{display:none;}}.node_list{width:100%;height:100%;}.node_table{overflow:auto;height:650px::-webkit-scrollbar{display:none;}}.ant-table-selection-column{display:none !important;}"]),j=null;t.default=function(){var e=(0,m.useParams)(),t=e.id,a=e.taskId,h=e.page,x=e.pageSize,S=(0,m.useHistory)(),I=(0,f.useState)("\u6682\u65e0\u65e5\u5fd7"),T=I[0],w=I[1],E=(0,f.useState)([]),D=E[0],M=E[1],k=(0,f.useState)({}),P=k[0],L=k[1],N=(0,f.useState)(!1),A=N[0],R=N[1],F=(0,f.useState)(!1),O=F[0],V=F[1],U=(0,f.useState)(null),B=U[0],G=U[1],z=(0,f.useState)([]),q=z[0],K=z[1],H=(0,f.useState)(0),Y=H[0],W=H[1],J=[{title:"\u5e8f\u53f7",dataIndex:"index",key:"index"},{title:"\u4f5c\u4e1a\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u6267\u884c\u65f6\u95f4",dataIndex:"executeTime",key:"executeTime"},{title:"\u6267\u884c\u7ed3\u679c",dataIndex:"handleResult",key:"handleResult",render:function(e){return(0,p.default)("span",{style:{color:3===e?"#FF4D4F":2===e?"#52C41A":"#4A4A4A"}},void 0,3===e?"\u5931\u8d25":2===e?"\u6210\u529f":1===e?"\u8fd0\u884c\u4e2d":"\u961f\u5217\u4e2d")}}],Q=function(){var e=(0,c.default)(l.default.mark((function e(){var a,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),e.next=3,(0,g.getAllTask)(t);case 3:a=e.sent,200===(n=a.data).code?Z(n.data):u.default.error(n.msg),R(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),Z=function(e){var t=e.map((function(e,t){return{key:t,id:e.id,index:t+1,executeTime:(0,v.default)(1e3*Math.round(e.execute_time)).format("YYYY.MM.DD HH:mm:ss"),name:e.name,log:e.log,handleResult:e.execute_result,task_id:e.task_id,job_id:e.job_id,af_run_id:e.af_run_id}}));M(t),X(t[0])},X=function(){var e=(0,c.default)(l.default.mark((function e(t){return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:L(t),$(t);case 2:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),$=function(){var e=(0,c.default)(l.default.mark((function e(t){var a,n,o,s,r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={job_id:t.job_id,task_id:t.task_id,af_run_id:t.af_run_id},e.next=3,(0,g.getTaskLog)(a);case 3:n=e.sent,200===(o=n.data).code?(w(o.data.log),[2,3].includes(o.data.status)?clearInterval(j):(s=D.findIndex((function(e){return e.key===t.key})),(r=[].concat(D))[s]&&(r[s].handleResult=o.data.status,M(r)))):u.default.error(o.msg);case 6:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){O?(clearInterval(j),j=setInterval((function(){$(P)}),5e3)):clearInterval(j)}),[O,P]);(0,f.useEffect)((function(){Q()}),[t]),(0,f.useEffect)((function(){return function(){clearInterval(j)}}),[]);var ee=(0,p.default)(d.default,{columns:J,dataSource:D,showHeader:!1,className:"node_table",loading:A,pagination:{position:["none","none"]},onRow:function(e){return{onClick:function(){return X(e)}}},rowSelection:{type:"radio",columnWidth:"0",selectedRowKeys:[P.key]}}),te=(0,p.default)(i.default,{},void 0,(0,p.default)("span",{},void 0,Y,"/",q.length),(0,p.default)(_.UpOutlined,{onClick:function(){if(q.length){var e=document.getElementById("log");q[Y-1].style.backgroundColor="#fffd38",Y-1>0?(W(Y-1),q[Y-2].style.backgroundColor="#fd9640",e.scrollTop=q[Y-2].offsetTop-250,e.scrollLeft=q[Y-2].offsetLeft-e.clientWidth+150):(W(q.length),q[q.length-1].style.backgroundColor="#fd9640",e.scrollTop=q[q.length-1].offsetTop-250,e.scrollLeft=q[q.length-1].offsetLeft-e.clientWidth+150)}}}),(0,p.default)(_.DownOutlined,{onClick:function(){if(q.length){var e=document.getElementById("log");q[Y-1].style.backgroundColor="#fffd38",Y+1<=q.length?(W(Y+1),q[Y].style.backgroundColor="#fd9640",e.scrollTop=q[Y].offsetTop-250,e.scrollLeft=q[Y].offsetLeft-e.clientWidth+150):(W(1),q[0].style.backgroundColor="#fd9640",e.scrollTop=q[0].offsetTop-250,e.scrollLeft=q[0].offsetLeft-e.clientWidth+150)}}}));return(0,p.default)(C,{},void 0,(0,p.default)("div",{className:"job-list"},void 0,(0,p.default)(r.default,{size:"small",title:"\u8282\u70b9\u5217\u8868",bordered:!1,className:"node_list",headStyle:{padding:"10px 15px",fontSize:"14px",fontWeight:"700"}},void 0,ee)),(0,p.default)("div",{className:"log-info"},void 0,(0,p.default)(r.default,{bordered:!1,style:{height:"100%",width:"100%"},bodyStyle:{height:"100%",width:"100%"}},void 0,(0,p.default)("div",{className:"refresh"},void 0,(0,p.default)(i.default,{},void 0,(0,p.default)(s.default,{value:B,onChange:function(e){G(e.target.value),W(0);var t=new y.default(document.querySelector("#log"));t.unmark({done:function(){var a=[];if(t.mark(e.target.value,{each:function(e){e.style.backgroundColor="#fffd38",e.style.padding=0,a.push(e)}}),a.length>0){W(1);var n=document.getElementById("log");a[0].style.backgroundColor="#fd9640",n.scrollTop=a[0].offsetTop-250,n.scrollLeft=a[0].offsetLeft-n.clientWidth+150}K(a)}})},addonAfter:te,placeholder:"\u8f93\u5165\u5173\u952e\u8bcd"})),(0,p.default)(i.default,{},void 0,(0,p.default)(o.default,{onChange:function(e){V(e.target.checked)},checked:O},void 0,"\u81ea\u52a8\u5237\u65b0"),(0,p.default)(n.default,{onClick:function(){$(P)}},void 0,"\u5237\u65b0"),(0,p.default)(n.default,{type:"primary",onClick:function(){S.push(b.taskLogUrl.list({taskId:a,page:h,pageSize:x}))}},void 0,"\u8fd4\u56de\u4e0a\u4e00\u7ea7"))),(0,p.default)("pre",{className:"log",id:"log"},void 0,T))))}},"./src/module/taskSchedule/taskLog/services/index.js":function(e,t,a){"use strict";t.__esModule=!0,t.getTaskLog=t.getAllTask=t.refreshLogsStatus=t.getJobLog=t.getLogInfo=t.getLogList=void 0;var n,o=a("./src/utils/requestForOcr.js"),s=(n=o)&&n.__esModule?n:{default:n};t.getLogList=function(e){return(0,s.default)({url:"/jpt/jm_job_log/?page="+e.page+"&size="+e.size+(e.id?"&job_id="+e.id:""),method:"get"})},t.getLogInfo=function(e){return(0,s.default)({url:"/jpt/jm_job_log/logs?run_id="+e,method:"get"})},t.getJobLog=function(e){return(0,s.default)({url:"/jpt/files/jm_job_log/?uri="+e,method:"get"})},t.refreshLogsStatus=function(e){return(0,s.default)({url:"/jpt/jm_job_log/logs_status/"+e,method:"get"})},t.getAllTask=function(e){return(0,s.default)({url:"/jpt/jm_job_log/all_task?run_id="+e,method:"get"})},t.getTaskLog=function(e){return(0,s.default)({url:"/jpt/jm_job_log/task_log/"+e.job_id+"/"+e.af_run_id+"/"+e.task_id,method:"get"})}},"./src/module/taskSchedule/taskMgmt/TaskMgmtView.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=T(a("./node_modules/antd/es/button/index.js")),o=T(a("./node_modules/antd/es/table/index.js")),s=T(a("./node_modules/antd/es/popconfirm/index.js")),r=T(a("./node_modules/antd/es/menu/index.js")),i=T(a("./node_modules/antd/es/dropdown/index.js")),d=T(a("./node_modules/antd/es/space/index.js")),l=T(a("./node_modules/antd/es/switch/index.js")),u=T(a("./node_modules/antd/es/popover/index.js")),c=T(a("./node_modules/babel-runtime/helpers/jsx.js")),p=T(a("./node_modules/babel-runtime/regenerator/index.js")),f=T(a("./node_modules/antd/es/message/index.js")),m=T(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js"));a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/table/style/index.js"),a("./node_modules/antd/es/popconfirm/style/index.js"),a("./node_modules/antd/es/menu/style/index.js"),a("./node_modules/antd/es/dropdown/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/switch/style/index.js"),a("./node_modules/antd/es/popover/style/index.js"),a("./node_modules/antd/es/message/style/index.js");var h=a("./node_modules/react/index.js"),g=(T(h),a("./node_modules/@ant-design/icons/es/index.js")),v=a("./node_modules/react-router-dom/esm/react-router-dom.js"),_=T(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),y=T(a("./src/module/taskSchedule/taskMgmt/style/img/err.png")),b=T(a("./src/module/taskSchedule/taskMgmt/style/img/success.png")),x=a("./src/module/taskSchedule/taskMgmt/services/index.js"),C=T(a("./node_modules/copy-to-clipboard/index.js")),j=T(a("./node_modules/moment/moment.js")),S=a("./src/routes/routeHelper.jsx"),I=a("./src/utils/requestForOcr.js");function T(e){return e&&e.__esModule?e:{default:e}}var w=_.default.div.withConfig({displayName:"TaskMgmtView__TaskMgmtWrapper",componentId:"sc-16gmiyk-0"})(["padding:20px;.icon_wrapper{margin-right:15px;}.link_btn{display:flex;justify-content:end;margin-bottom:20px;}"]),E=(0,c.default)(g.EllipsisOutlined,{}),D=(0,c.default)("div",{className:"link_btn"},void 0,(0,c.default)(v.Link,{to:"/task/taskManage/create"},void 0,(0,c.default)(n.default,{type:"primary"},void 0,"\u521b\u5efa\u79bb\u7ebf\u4efb\u52a1")));t.default=function(){var e=(0,h.useState)(!1),t=e[0],a=e[1],n=(0,h.useState)([]),g=n[0],_=n[1],T=(0,h.useState)(null),M=T[0],k=T[1],P=(0,h.useState)([]),L=P[0],N=P[1],A=(0,h.useState)(!1),R=A[0],F=A[1],O=(0,h.useState)(!1),V=O[0],U=O[1],B=(0,v.useHistory)(),G=function(){var e=(0,m.default)(p.default.mark((function e(t,a){var n,o;return p.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return U(!0),e.next=3,(0,x.updateJmJobStatus)({id:a,status:t?1:0});case 3:n=e.sent,200===(o=n.data).code?f.default.success(o.data.status?"\u5f00\u542f\u6210\u529f":"\u5173\u95ed\u6210\u529f"):f.default.error(o.msg),U(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(t,a){return e.apply(this,arguments)}}(),z=function(){var e=(0,m.default)(p.default.mark((function e(t){var a,n;return p.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=8;break}return F(!0),e.next=4,(0,x.executeJmJob)(t);case 4:a=e.sent,200===(n=a.data).code?f.default.success("\u5f00\u59cb\u6267\u884c"):f.default.error(n.msg),F(!1);case 8:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),q=function(){var e=(0,m.default)(p.default.mark((function e(t){var a,n;return p.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.deleteJmJob)(t);case 2:a=e.sent,200===(n=a.data).code?(f.default.success("\u5220\u9664\u6210\u529f"),Y()):f.default.error(n.msg);case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),K=function(){var e=(0,m.default)(p.default.mark((function e(t){var a,n,o;return p.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.getApi)(t);case 2:a=e.sent,200===(n=a.data).code?(o=""+I.baseURL+n.data,(0,C.default)(o),f.default.success("\u590d\u5236\u6210\u529f")):f.default.error(n.msg);case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),H=function(){var e=(0,m.default)(p.default.mark((function e(t){var a,n;return p.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("\u6267\u884c\u4e00\u6b21"===t.executionCycle){e.next=6;break}return e.next=3,(0,x.getCronNext)(t.executionCycle);case 3:a=e.sent,200===(n=a.data).code?N(n.data):f.default.error(n.msg);case 6:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),Y=function(){var e=(0,m.default)(p.default.mark((function e(){var t,n,o;return p.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.next=3,(0,x.getJmJobList)();case 3:t=e.sent,200===(n=t.data).code&&(o=n.data.map((function(e){return{key:e.id,taskName:e.name,taskType:e.type,taskTag:e.tag,executionCycle:1===e.cron_type?"\u6267\u884c\u4e00\u6b21":e.cron_expression,historicalRuntime:e.history,taskState:1===e.status,update_time:e.update_time?(0,j.default)(1e3*e.update_time).format("YYYY.MM.DD HH:mm:ss"):"\u65e0"}})),_(o)),a(!1);case 7:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}();(0,h.useEffect)((function(){Y()}),[]);var W=[{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"taskName",key:"taskName"},{title:"\u4efb\u52a1\u7c7b\u578b",dataIndex:"taskType",key:"taskType"},{title:"\u4efb\u52a1\u6807\u7b7e",dataIndex:"taskTag",key:"taskTag"},{title:"\u5b9a\u65f6\u89c4\u5219",dataIndex:"executionCycle",key:"executionCycle"},{title:"\u4e0b\u6b21\u6267\u884c\u65f6\u95f4",key:"action",align:"center",render:function(e,t){return"\u6267\u884c\u4e00\u6b21"===t.executionCycle?(0,c.default)("span",{style:{color:"#bfbfbf",cursor:"no-drop"}},void 0,"\u67e5\u770b"):(0,c.default)(u.default,{content:J,trigger:"click",placement:"bottom"},void 0,(0,c.default)("span",{onClick:function(){H(t)},style:{color:"#1890ff",cursor:"pointer"}},void 0,"\u67e5\u770b"))}},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"update_time",key:"update_time"},{title:"\u5386\u53f2\u8fd0\u884c\u60c5\u51b5",dataIndex:"historicalRuntime",key:"historicalRuntime",align:"center",render:function(e){return(0,c.default)("div",{},void 0,e.map((function(e,t){return(0,c.default)("img",{src:2!==e.execute_result?y.default:b.default,alt:"",className:"icon_wrapper"},t)})))}},{title:"\u72b6\u6001",dataIndex:"taskState",key:"taskState",render:function(e,t){return(0,c.default)(l.default,{checkedChildren:"\u5f00\u542f",unCheckedChildren:"\u5173\u95ed",loading:V,defaultChecked:e,onChange:function(e){return G(e,t.key)}})}},{title:"\u64cd\u4f5c",key:"operation",render:function(e,t){return(0,c.default)(d.default,{size:"middle"},void 0,(0,c.default)("span",{onClick:function(){z(t.key)},style:R?{color:"#bfbfbf",cursor:"no-drop"}:{color:"#1890ff",cursor:"pointer"}},void 0,"\u6267\u884c\u4e00\u6b21"),(0,c.default)("span",{onClick:function(){var e;e=t.key,B.push(S.taskLogUrl.list({taskId:e}))},style:{color:"#1890ff",cursor:"pointer"}},void 0,"\u67e5\u770b\u65e5\u5fd7"),(0,c.default)(i.default,{overlay:Q,trigger:["click"],onClick:function(){return k(t.key)}},void 0,E))}}],J=(0,c.default)("div",{},void 0,L.map((function(e,t){return(0,c.default)("p",{},t,e)}))),Q=(0,c.default)(r.default,{items:[{label:(0,c.default)("span",{onClick:function(){var e;e=M,B.push(S.taskManageUrl.edit(e))},style:{color:"#1890ff",cursor:"pointer"}},void 0,"\u7f16\u8f91"),key:"0"},{label:(0,c.default)(s.default,{title:"\u786e\u8ba4\u5220\u9664\uff1f",okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onConfirm:function(){return q(M)}},void 0,(0,c.default)("span",{style:{color:"#1890ff",cursor:"pointer"}},void 0,"\u5220\u9664")),key:"1"},{label:(0,c.default)("span",{onClick:function(){K(M)},style:{color:"#1890ff",cursor:"pointer"}},void 0,"API\u8c03\u7528"),key:"2"}]});return(0,c.default)(w,{},void 0,D,(0,c.default)(o.default,{columns:W,dataSource:g,bordered:!0,loading:t}))}},"./src/module/taskSchedule/taskMgmt/component/AlgoNode.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.AlgoNode=void 0;var n=l(a("./node_modules/babel-runtime/helpers/jsx.js")),o=l(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),s=l(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),r=l(a("./node_modules/babel-runtime/helpers/inherits.js")),i=l(a("./node_modules/react/index.js")),d=l(a("./node_modules/styled-components/dist/styled-components.browser.esm.js"));a("./node_modules/@antv/x6-react-shape/es/index.js");l(a("./node_modules/prop-types/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=d.default.div.withConfig({displayName:"AlgoNode__NodeWrapper",componentId:"ivsszh-0"})(["width:100%;height:100%;.node{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;height:100%;background-color:#fff;border:1px solid #c2c8d5;border-right:10px solid #5f95ff;border-radius:8px;box-shadow:0 2px 5px 1px rgba(0,0,0,0.06);}.node .label{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;margin-left:8px;color:#666;font-size:12px;}.node .status{flex-shrink:0;}.node .uri{padding:0 5px;color:#1890ff;background:rgba(24,129,218,0.17);}"]),c=t.AlgoNode=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,r.default)(t,e),t.prototype.shouldComponentUpdate=function(){var e=this.props.node;return!(!e||!e.hasChanged("data"))},t.prototype.render=function(){var e=this.props.node,t=e&&e.getData(),a=t.label,o=t.status,s=void 0===o?"default":o;return(0,n.default)(u,{},void 0,(0,n.default)("div",{className:"node "+s},void 0,(0,n.default)("span",{className:"label"},void 0,a)))},t}(i.default.Component);t.default=c},"./src/module/taskSchedule/taskMgmt/component/TaskChartEditor.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.default=void 0;var n=p(a("./node_modules/babel-runtime/helpers/classCallCheck.js")),o=p(a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),s=p(a("./node_modules/babel-runtime/helpers/inherits.js")),r=p(a("./node_modules/babel-runtime/helpers/jsx.js")),i="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\taskSchedule\\taskMgmt\\component\\TaskChartEditor.jsx",d=p(a("./node_modules/react/index.js")),l=p(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),u=a("./node_modules/@antv/x6/es/index.js"),c=p(a("./src/module/taskSchedule/taskMgmt/component/AlgoNode.jsx"));p(a("./node_modules/prop-types/index.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=l.default.div.withConfig({displayName:"TaskChartEditor__EditorWrapper",componentId:"anctxx-0"})(["margin-top:20px;height:550px;background:#f0f2f5;border-radius:2px;border:1px solid #c8d3e9;.task{font-family:sans-serif;padding:0;display:flex;position:relative;height:100%;}.task-stencil{width:200px;position:relative;border-right:1px solid #c8d3e9;}.task-content{flex:3;height:100%;position:relative;}.task-graph{height:100% !important;width:auto !important;}.x6-graph-scroller{border:1px solid #f0f0f0;margin-left:-1px;}"]),m=[];u.Graph.registerNode("task-node",{inherit:"react-shape",width:160,height:50,component:(0,r.default)(c.default,{}),ports:{groups:{top:{position:"top",attrs:{circle:{r:4,magnet:!0,stroke:"#C2C8D5",strokeWidth:1,fill:"#fff"}}},bottom:{position:"bottom",attrs:{circle:{r:4,magnet:!0,stroke:"#C2C8D5",strokeWidth:1,fill:"#fff"}}}}}},!0),u.Graph.registerEdge("task-edge",{inherit:"edge",attrs:{line:{stroke:"#C2C8D5",strokeWidth:1,targetMarker:"block"}}},!0),u.Graph.registerConnector("algo-connector",(function(e,t){var a=Math.abs(t.y-e.y),n=Math.floor(a/3*2),o=e.x,s=e.y+4+n,r=t.x,i=t.y-4-n;return u.Path.normalize("M "+e.x+" "+e.y+"\n L "+e.x+" "+(e.y+4)+"\n C "+o+" "+s+" "+r+" "+i+" "+t.x+" "+(t.y-4)+"\n L "+t.x+" "+t.y+"\n ")}),!0);var h=u.Addon.Stencil,g=[],v=function(e){function t(a){(0,n.default)(this,t);var s=(0,o.default)(this,e.call(this,a));return s.refContainer=function(e){s.container=e},s.refStencil=function(e){s.stencilContainer=e},s.handleWorkNodes=function(e){m=e.map((function(e){return{shape:"task-node",data:{homework_id:e.id,label:e.name,type:"work"},ports:{items:[{id:"topPort",group:"top"},{id:"bottomPort",group:"bottom"}]}}})),s.loadStencil(s.state.taskGraph)},s.state={taskGraph:null,selectedNodeData:{},contextMenu:null},s}return(0,s.default)(t,e),t.prototype.componentWillReceiveProps=function(e){e.json!==this.props.json&&this.state.taskGraph.fromJSON(JSON.parse(e.json)),e.jmWorkList!==this.props.jmWorkList&&this.handleWorkNodes(e.jmWorkList)},t.prototype.componentDidMount=function(){this.props.onRef(this),this.handleWorkNodes(this.props.jmWorkList);var e=new u.Graph({container:this.container,background:{color:"#f0f2f5"},panning:{enabled:!0,eventTypes:["leftMouseDown","mouseWheel"]},mousewheel:{enabled:!0,modifiers:"ctrl",factor:1.1,maxScale:1.5,minScale:.5},highlighting:{magnetAdsorbed:{name:"stroke",args:{attrs:{fill:"#fff",stroke:"#31d0c6",strokeWidth:4}}}},connecting:{snap:!0,allowBlank:!1,allowLoop:!1,highlight:!0,connector:"algo-connector",connectionPoint:"anchor",anchor:"center",validateMagnet:function(e){return"top"!==e.magnet.getAttribute("port-group")},validateConnection:function(e){var t=e.targetPort,a=e.sourceCell,n=e.targetCell;return!g.find((function(e){return e&&e.source===a&&a.id&&e&&e.target===n&&n.id}))&&"topPort"===t},createEdge:function(){return e.createEdge({shape:"task-edge",attrs:{line:{strokeDasharray:"5 5"}},zIndex:-1})}},selecting:{enabled:!0,multiple:!0,rubberEdge:!0,rubberNode:!0,modifiers:"shift",rubberband:!0},keyboard:{enabled:!0,global:!0}});e.bindKey(["delete","backspace"],(function(){e.getSelectedCells().forEach((function(e){e.remove()}))})),e.on("edge:connected",(function(e){var t=e.edge;g.push({source:t.getSourceCell()&&t.getSourceCell().id,target:t.getTargetCell()&&t.getTargetCell().id}),t.attr({line:{strokeDasharray:""}})})),e.on("edge:removed",(function(e){var t=e.edge,a=t.store.data.source.cell,n=t.store.data.target.cell,o=g.indexOf({source:a,target:n});g.splice(o,1)})),this.loadStencil(e),e.centerContent(),this.setState({taskGraph:e})},t.prototype.loadStencil=function(e){var t=new h({title:"\u4f5c\u4e1a\u68c0\u7d22",target:e,search:function(e,t){return-1!==e.data.label.indexOf(t)},placeholder:"\u641c\u7d22\u4f5c\u4e1a",notFoundText:"\u672a\u627e\u5230\u76f8\u5173\u4f5c\u4e1a",scaled:!0,stencilGraphWidth:200,stencilGraphHeight:200,layoutOptions:{columns:1,dx:55,rowHeight:"compact"},groups:[{name:"work",title:"\u4f5c\u4e1a"}],getDropNode:function(e){return e.clone()}});this.stencilContainer.appendChild(t.container),t.load(m,"work"),t.resizeGroup("work",{width:200,height:80*m.length})},t.prototype.componentWillUnmount=function(){this.state.taskGraph.dispose()},t.prototype.render=function(){return(0,r.default)(f,{},void 0,(0,r.default)("div",{className:"task"},void 0,d.default.createElement("div",{className:"task-stencil",ref:this.refStencil,__source:{fileName:i,lineNumber:386}}),(0,r.default)("div",{className:"task-content"},void 0,d.default.createElement("div",{className:"task-graph",ref:this.refContainer,__source:{fileName:i,lineNumber:389}}))))},t}(d.default.Component);t.default=v},"./src/module/taskSchedule/taskMgmt/component/TaskCreate.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=b(a("./node_modules/antd/es/button/index.js")),o=b(a("./node_modules/antd/es/space/index.js")),s=b(a("./node_modules/babel-runtime/helpers/extends.js")),r=b(a("./node_modules/babel-runtime/helpers/jsx.js")),i=b(a("./node_modules/antd/es/message/index.js")),d=b(a("./node_modules/babel-runtime/regenerator/index.js")),l=b(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),u=b(a("./node_modules/antd/es/select/index.js")),c=b(a("./node_modules/antd/es/form/index.js")),p="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\taskSchedule\\taskMgmt\\component\\TaskCreate.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var f=a("./node_modules/react/index.js"),m=b(f),h=b(a("./src/module/taskSchedule/taskMgmt/component/TaskForm.jsx")),g=b(a("./src/module/taskSchedule/taskMgmt/component/TaskChartEditor.jsx")),v=b(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),_=a("./node_modules/react-router-dom/esm/react-router-dom.js"),y=a("./src/module/taskSchedule/taskMgmt/services/index.js");function b(e){return e&&e.__esModule?e:{default:e}}var x=v.default.div.withConfig({displayName:"TaskCreate__TaskCreater",componentId:"sc-1y37h7r-0"})(["margin:20px;background:#fff;height:100%;padding:15px 25px;.tasktype_label{padding-left:12px;border-left:3px solid #1890ff;font-size:14px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#4a4a4a;line-height:20px;letter-spacing:1px;}.tasktype_form{margin-top:20px;}.tasktype_btns{margin:20px 20px 0px;}"]),C={labelCol:{span:3},wrapperCol:{span:10}},j=c.default.Item,S=u.default.Option,I=(0,r.default)("div",{className:"tasktype_label"},void 0,"\u914d\u7f6e\u4efb\u52a1\u7c7b\u578b\uff1a"),T=(0,r.default)(S,{value:"singleTask"},void 0,"\u5355\u4f5c\u4e1a\u79bb\u7ebf\u4efb\u52a1"),w=(0,r.default)(S,{value:"multitasking"},void 0,"\u591a\u4f5c\u4e1a\u79bb\u7ebf\u4efb\u52a1"),E=(0,r.default)("div",{className:"tasktype_label"},void 0,"\u914d\u7f6e\u4efb\u52a1\u4fe1\u606f\uff1a"),D=(0,r.default)("div",{className:"tasktype_label"},void 0,"\u4f5c\u4e1a\u7f16\u6392\uff1a");t.default=function(){var e=(0,_.useHistory)(),t=(0,_.useParams)().id,a=(0,f.useState)(null),v=a[0],b=a[1],S=(0,f.useState)(null),M=S[0],k=S[1],P=(0,f.useState)([]),L=P[0],N=P[1],A=(0,f.useState)(null),R=A[0],F=A[1],O=c.default.useForm()[0],V=c.default.useForm()[0],U=(0,f.useRef)();(0,f.useEffect)((function(){t&&B(t)}),[t]),(0,f.useEffect)((function(){G()}),[]);var B=function(){var e=(0,l.default)(d.default.mark((function e(t){var a,n,o;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.getJmJobInfo)(t);case 2:a=e.sent,200===(n=a.data).code&&(o=n.data.type,O.setFieldValue("taskType",o),b("\u5355\u4f5c\u4e1a\u79bb\u7ebf\u4efb\u52a1"===o?"singleTask":"multitasking"),F(n.data));case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),G=function(){var e=(0,l.default)(d.default.mark((function e(){var t,a;return d.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.getJmHomeworkList)("test");case 2:t=e.sent,200===(a=t.data).code?N(a.data):i.default.error(a.msg);case 5:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=M&&M.state.taskGraph.getCells(),t=[],a=[];return e.forEach((function(e){"task-node"===e.shape?t.push({id:e.id,homework_id:e.data.homework_id,homework_name:e.data.label}):a.push({source:e.source.cell,target:e.target.cell})})),{nodes:t,edges:a}};return(0,r.default)(x,{},void 0,I,m.default.createElement(c.default,(0,s.default)({},C,{form:O,className:"tasktype_form",__source:{fileName:p,lineNumber:187}}),(0,r.default)(j,{name:"taskType",label:"\u9009\u62e9\u4efb\u52a1\u7c7b\u578b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4efb\u52a1\u7c7b\u578b!"}]},void 0,(0,r.default)(u.default,{placeholder:"\u9009\u62e9\u4efb\u52a1\u7c7b\u578b",onChange:function(e){b(e)},allowClear:!0},void 0,T,w))),E,m.default.createElement(h.default,{taskForm:V,taskType:v,jmWorkList:L,taskInfo:R,ref:U,__source:{fileName:p,lineNumber:196}}),"multitasking"===v&&D,"multitasking"===v&&(0,r.default)(g.default,{onRef:function(e){k(e)},jmWorkList:L,json:R&&R.json_str}),(0,r.default)(o.default,{className:"tasktype_btns"},void 0,(0,r.default)(n.default,{onClick:function(){return e.goBack()}},void 0,"\u53d6\u6d88"),(0,r.default)(n.default,{type:"primary",onClick:function(){var t=V.getFieldsValue();O.validateFields().then((function(){V.validateFields().then((0,l.default)(d.default.mark((function a(){var n,o,s,r,l,u,c;return d.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=[],o=[],s="","singleTask"===v?(s="\u5355\u4f5c\u4e1a\u79bb\u7ebf\u4efb\u52a1",n=[{id:1,homework_id:t.job,homework_name:L.find((function(e){return e.id===t.job})).name,start_point:1}]):(s="\u591a\u4f5c\u4e1a\u79bb\u7ebf\u4efb\u52a1",r=z(),n=r.nodes,o=r.edges),l={name:t.taskName,type:s,tag:t.taskTag,cron_type:t.executionCycle,user_id:"test",user_name:"test",project_id:"test",nodes:n,edges:o},"multitasking"===v&&(l.json_str=JSON.stringify(M&&M.state.taskGraph.toJSON())),u=U.current&&U.current.getCronData,2===t.executionCycle&&(l.cron_expression=u),c={},null===state){a.next=16;break}return l.id=state.id,a.next=13,(0,y.updateJmJobInfo)(l);case 13:c=a.sent,a.next=19;break;case 16:return a.next=18,(0,y.createJmJob)(l);case 18:c=a.sent;case 19:200===c.data.code?e.goBack():i.default.error(c.data.msg);case 20:case"end":return a.stop()}}),a,void 0)})))).catch((function(e){i.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))})).catch((function(e){i.default.error("\u8bf7\u68c0\u67e5\u8868\u5355\u6570\u636e\u662f\u5426\u5b8c\u6574")}))}},void 0,"\u63d0\u4ea4")))}},"./src/module/taskSchedule/taskMgmt/component/TaskForm.jsx":function(e,t,a){"use strict";t.__esModule=!0;var n=C(a("./node_modules/antd/es/button/index.js")),o=C(a("./node_modules/babel-runtime/helpers/extends.js")),s=C(a("./node_modules/antd/es/input/index.js")),r=C(a("./node_modules/antd/es/space/index.js")),i=C(a("./node_modules/antd/es/divider/index.js")),d=C(a("./node_modules/babel-runtime/helpers/jsx.js")),l=C(a("./node_modules/babel-runtime/regenerator/index.js")),u=C(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),c=C(a("./node_modules/antd/es/message/index.js")),p=C(a("./node_modules/antd/es/radio/index.js")),f=C(a("./node_modules/antd/es/select/index.js")),m=C(a("./node_modules/antd/es/form/index.js")),h="C:\\Users\\leo\\workspace\\aihub-web\\src\\module\\taskSchedule\\taskMgmt\\component\\TaskForm.jsx";a("./node_modules/antd/es/button/style/index.js"),a("./node_modules/antd/es/input/style/index.js"),a("./node_modules/antd/es/space/style/index.js"),a("./node_modules/antd/es/divider/style/index.js"),a("./node_modules/antd/es/message/style/index.js"),a("./node_modules/antd/es/radio/style/index.js"),a("./node_modules/antd/es/select/style/index.js"),a("./node_modules/antd/es/form/style/index.js");var g=a("./node_modules/react/index.js"),v=C(g),_=C(a("./node_modules/styled-components/dist/styled-components.browser.esm.js")),y=a("./node_modules/@ant-design/icons/es/index.js"),b=a("./src/module/taskSchedule/taskMgmt/services/index.js"),x=C(a("./src/components/cronSelect/CronSelect.jsx"));C(a("./node_modules/prop-types/index.js"));function C(e){return e&&e.__esModule?e:{default:e}}var j=_.default.div.withConfig({displayName:"TaskForm__FormWrapper",componentId:"sc-1ewg5qj-0"})([".singletask_form{margin-top:20px;}.form_executionCycle{margin-left:10px;}"]),S=m.default.Item,I=f.default.Option,T=p.default.Group,w={labelCol:{span:3},wrapperCol:{span:10}},E=(0,d.default)(s.default,{}),D=(0,d.default)(p.default,{value:1},void 0,"\u53ea\u6267\u884c\u4e00\u6b21\uff0c\u4e0b\u6b21\u624b\u52a8\u6267\u884c"),M=(0,d.default)(y.PlusOutlined,{}),k=(0,g.forwardRef)((function(e,t){var a=e.taskForm,_=e.taskType,C=e.taskInfo,k=e.jmWorkList,P=(0,g.useState)(null),L=P[0],N=P[1],A=(0,g.useState)([]),R=A[0],F=A[1],O=(0,g.useState)([]),V=O[0],U=O[1],B=(0,g.useState)(null),G=B[0],z=B[1],q=(0,g.useState)(null),K=q[0],H=q[1],Y=(0,g.useRef)(null),W=function(e){z(e.target.value)},J=function(){var e=(0,u.default)(l.default.mark((function e(t){var n,o;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.deleteTag)({type:"\u4efb\u52a1\u6807\u7b7e",val:t});case 2:n=e.sent,200===(o=n.data).code?(a.setFieldValue("taskTag",null),c.default.success("\u5220\u9664\u6210\u529f"),Q()):c.default.error(o.msg);case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}(),Q=function(){var e=(0,u.default)(l.default.mark((function e(){var t,a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.getTagList)("\u4efb\u52a1\u6807\u7b7e");case 2:t=e.sent,200===(a=t.data).code?F(a.data):c.default.error(a.msg);case 5:case"end":return e.stop()}}),e,void 0)})));return function(){return e.apply(this,arguments)}}();(0,g.useEffect)((function(){Q()}),[]),(0,g.useEffect)((function(){U(k)}),[k]),(0,g.useEffect)((function(){null!==C&&function(e){N(e.cron_type),2===e.cron_type&&H(e.cron_expression_dict),a.setFieldsValue({taskName:e.name,taskTag:e.tag,job:e.nodes[0].homework_id,executionCycle:e.cron_type})}(C)}),[C]);var Z=(0,d.default)(n.default,{type:"text",icon:M,onClick:function(e){G?(e.preventDefault(),R.find((function(e){return e===G}))?c.default.error("\u5b58\u5728\u540c\u540d\u6807\u7b7e"):(F([].concat(R,[G])),a.setFieldValue("taskTag",G),z(null),setTimeout((function(){Y.current&&Y.current.focus()}),0))):c.default.error("\u8bf7\u8f93\u5165\u81ea\u5b9a\u4e49\u4f5c\u4e1a\u6807\u7b7e\u540d\u79f0")}},void 0,"\u6dfb\u52a0\u65b0\u5206\u7c7b");return(0,d.default)(j,{},void 0,v.default.createElement(m.default,(0,o.default)({},w,{form:a,className:"singletask_form",__source:{fileName:h,lineNumber:116}}),(0,d.default)(S,{name:"taskName",label:"\u4efb\u52a1\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4efb\u52a1\u540d\u79f0!"}]},void 0,E),(0,d.default)(S,{name:"taskTag",label:"\u4efb\u52a1\u6807\u7b7e",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4efb\u52a1\u6807\u7b7e!"}]},void 0,(0,d.default)(f.default,{showSearch:!0,optionFilterProp:"label",placeholder:"\u9009\u62e9\u4efb\u52a1\u6807\u7b7e",allowClear:!0,optionLabelProp:"label",dropdownRender:function(e){return(0,d.default)(g.Fragment,{},void 0,e,(0,d.default)(i.default,{style:{margin:"8px 0"}}),(0,d.default)(r.default,{style:{padding:"0 8px 4px"}},void 0,v.default.createElement(s.default,{placeholder:"\u8bf7\u8f93\u5165",ref:Y,value:G,onChange:W,__source:{fileName:h,lineNumber:140}}),Z))}},void 0,R.map((function(e){return(0,d.default)(I,{value:e,label:e},e,(0,d.default)(r.default,{},void 0,(0,d.default)(y.DeleteOutlined,{onClick:function(){return J(e)}}),(0,d.default)("span",{},void 0,e)))})))),"multitasking"!==_&&(0,d.default)(S,{name:"job",label:"\u9009\u62e9\u4f5c\u4e1a",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4f5c\u4e1a!"}]},void 0,(0,d.default)(f.default,{showSearch:!0,optionFilterProp:"label",placeholder:"\u9009\u62e9\u4f5c\u4e1a",allowClear:!0},void 0,V.map((function(e){return(0,d.default)(I,{value:e.id,label:e.name},e.id,e.name)})))),(0,d.default)(S,{name:"executionCycle",label:"\u6267\u884c\u7b56\u7565",rules:[{required:!0,message:"\u8bf7\u8bbe\u7f6e\u6267\u884c\u7b56\u7565!"}]},void 0,(0,d.default)(T,{onChange:function(e){N(e.target.value)}},void 0,(0,d.default)(r.default,{direction:"vertical"},void 0,D,(0,d.default)(p.default,{value:2},void 0,"\u5b9a\u65f6\u89c4\u5219",2===L?(0,d.default)(r.default,{className:"form_executionCycle"},void 0,v.default.createElement(x.default,{cron_data:K,ref:t,__source:{fileName:h,lineNumber:177}})):null))))))}));t.default=k},"./src/module/taskSchedule/taskMgmt/services/index.js":function(e,t,a){"use strict";t.__esModule=!0,t.getApi=t.getCronNext=t.deleteTag=t.getJmHomeworkList=t.executeJmJob=t.updateJmJobStatus=t.getJmJobInfo=t.deleteJmJob=t.createJmJob=t.updateJmJobInfo=t.getJmJobList=t.getTagList=void 0;var n=s(a("./node_modules/babel-runtime/helpers/extends.js")),o=s(a("./src/utils/requestForOcr.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.getTagList=function(e){return(0,o.default)({url:"/jpt/constants/?type="+e,method:"get"})},t.getJmJobList=function(){return(0,o.default)({url:"/jpt/jm_job_info/",method:"get"})},t.updateJmJobInfo=function(e){return(0,o.default)({url:"/jpt/jm_job_info/",method:"put",data:(0,n.default)({},e)})},t.createJmJob=function(e){return(0,o.default)({url:"/jpt/jm_job_info/",method:"post",data:(0,n.default)({},e)})},t.deleteJmJob=function(e){return(0,o.default)({url:"/jpt/jm_job_info/?jm_job_id="+e,method:"delete"})},t.getJmJobInfo=function(e){return(0,o.default)({url:"/jpt/jm_job_info/info?jm_job_id="+e,method:"get"})},t.updateJmJobStatus=function(e){return(0,o.default)({url:"/jpt/jm_job_info/status",method:"put",data:(0,n.default)({},e)})},t.executeJmJob=function(e){return(0,o.default)({url:"/jpt/jm_job_info/execute/"+e,method:"post"})},t.getJmHomeworkList=function(e){return(0,o.default)({url:"/jpt/jm_homework/?project_id="+e,method:"get"})},t.deleteTag=function(e){return(0,o.default)({url:"/jpt/constants/?type="+e.type+"&value="+e.val,method:"delete"})},t.getCronNext=function(e){return(0,o.default)({url:"/jpt/jm_job_info/cron_next_execute?cron_expression="+e,method:"get"})},t.getApi=function(e){return(0,o.default)({url:"/jpt/jm_job_info/api/"+e,method:"get"})}},"./src/module/taskSchedule/taskMgmt/style/img/err.png":function(e,t,a){e.exports=a.p+"assets/images/err.eeac8f0.png"},"./src/module/taskSchedule/taskMgmt/style/img/success.png":function(e,t,a){e.exports=a.p+"assets/images/success.2402fe8.png"},"./src/redux/actionTypeHelper.js":function(e,t,a){"use strict";t.__esModule=!0,t.getActionCreator=t.REQUEST_TYPE=t.ATION_TYPE_SUFFIX=void 0,t.default=function(e,t){var a={},n=void 0;if(!(e instanceof Object)||Array.isArray(e))throw new Error("Argument must be an object.");for(n in e)if(e.hasOwnProperty(n)){var o=e[n];if(a[n]=t&&s.default.trim(t).length>0?s.default.toUpper(t)+"/"+n:n,o===i)s.default.assign(a,d(n,t)),a[n]=n;else{var r=l(n,t);a[n]=r}}return a},t.getActionMap=function(e){return s.default.reduce(Object.values(e),(function(e,t){var a;return s.default.assign(e,((a={})[t]=function(e){return e},a))}),{})};var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.ATION_TYPE_SUFFIX={REQUEST:"REQUEST",SUCCESS:"SUCCESS",FAILURE:"FAILURE"},i=t.REQUEST_TYPE=1;function d(e,t){return s.default.reduce(Object.keys(r),(function(a,n){var o,r=e+"_"+n,i=t&&s.default.trim(t).length>0?s.default.toUpper(t)+"/"+r:r;return s.default.assign(a,((o={})[r]=i,o))}),{})}function l(e,t){return t&&s.default.trim(t).length>0?s.default.toUpper(t)+"/"+e:e}t.getActionCreator=function(e,t,a){var n=s.default.camelCase(t+"_"+r[s.default.toUpper(a)]),o=s.default.get(e,n);return o&&s.default.isFunction(o)?o:null}},"./src/redux/configureStore.js":function(e,t,a){"use strict";t.__esModule=!0;d(a("./node_modules/babel-runtime/helpers/typeof.js"));t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!1,s=[l];if(t){var d=a("./node_modules/redux-logger/dist/redux-logger.js"),u=d.createLogger;s.push(u({collapsed:!0,predicate:function(e,t){return!_.startsWith(t.type,"FLOW_DIAGRAM")}}))}var c=[n.applyMiddleware.apply(void 0,s)],p=n.compose,f=(0,n.createStore)(i.default,(0,o.fromJS)(e),p.apply(void 0,c));0;return l.run(r.default),f};var n=a("./node_modules/redux/es/redux.js"),o=a("./node_modules/immutable3/dist/immutable.js"),s=d(a("./node_modules/redux-saga/es/index.js")),r=d(a("./src/redux/sagas/index.js")),i=d(a("./src/redux/reducers/index.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=(0,s.default)()},"./src/redux/reducers/affiche.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.afficheActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_AFFICHE_LIST_USER:i.REQUEST_TYPE,GET_AFFICHE_LIST:i.REQUEST_TYPE,GET_AFFICHE_MESSAGE_DATA:i.REQUEST_TYPE,STOP_AFFICHE_MESSAGE_DATA:void 0,PATCH_MARK_ALL_READ:i.REQUEST_TYPE,RESET_PATCH_MARK_ALL_READ:void 0,DELETE_AFFICHE:i.REQUEST_TYPE,RESET_DELETE_AFFICHE:void 0,RESET_UPDATE_AFFICHE:void 0,SUBMIT_AFFICHE_DATA:i.REQUEST_TYPE,RESET_SUBMIT_AFFICHE_DATA:void 0,GET_AFFICHE_INFO:i.REQUEST_TYPE,PATCH_MARK_READ:i.REQUEST_TYPE,RESET_PATCH_MARK_READ:void 0},"AFFICHE"),u=t.initialState=(0,s.fromJS)({afficheMesData:{},markAllReadCode:0,markReadCode:0,afficheList:[],afficheListByUser:[],delAfficheCode:0,afficheData:{},submitAfficheData:{},affichePagination:{total:0,limit:0,offset:0}}),c=(0,r.createActions)((0,i.getActionMap)(l)).affiche;t.afficheActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_AFFICHE_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,afficheData:t.payload.data})},n[l.RESET_SUBMIT_AFFICHE_DATA]=function(e){return e.merge({submitAfficheData:{}})},n[l.SUBMIT_AFFICHE_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitAfficheData:t.payload})},n[l.SUBMIT_AFFICHE_DATA_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitAfficheData:t.payload})},n[l.RESET_UPDATE_AFFICHE]=function(e){return e.merge({afficheData:{}})},n[l.RESET_DELETE_AFFICHE]=function(e){return e.merge({delAfficheCode:0})},n[l.DELETE_AFFICHE_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delAfficheCode:t.payload.code})},n[l.GET_AFFICHE_LIST_USER_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,afficheListByUser:t.payload})},n[l.GET_AFFICHE_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,affichePagination:t.payload.pagination,afficheList:t.payload.data})},n[l.GET_AFFICHE_MESSAGE_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,afficheMesData:t.payload.data})},n[l.PATCH_MARK_ALL_READ_SUCCESS]=function(e,t){return e.merge({markAllReadCode:t.payload.code})},n[l.RESET_PATCH_MARK_ALL_READ]=function(e){return e.merge({markAllReadCode:0})},n[l.PATCH_MARK_READ_SUCCESS]=function(e,t){return e.merge({markReadCode:t.payload.code})},n[l.RESET_PATCH_MARK_READ]=function(e){return e.merge({markReadCode:0})},n),u)},"./src/redux/reducers/app.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.appActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({INITIALIZE:void 0,READY_LAUNCH:void 0,READY_LAUNCH_FALSE:void 0,SETTING_INTEGRATION:void 0,SETTING_HIDDEN_MENU:void 0,SET_TOP_MENU_SELECTED:void 0,SHOW_USER_INFO_COMPLETION:void 0,HIDE_USER_INFO_COMPLETION:void 0},"app"),u=t.initialState=(0,s.fromJS)({isReadyLaunch:!1,integration:null,hideMenuBar:!1,topMenuSelectedKey:"",showUserInfoCompletionModal:!1}),c=(0,r.createActions)((0,i.getActionMap)(l)).app;t.appActions=c,t.default=(0,r.handleActions)(((n={})[l.READY_LAUNCH_FALSE]=function(e){return e.set("isReadyLaunch",!1)},n[l.READY_LAUNCH]=function(e){return e.set("isReadyLaunch",!0)},n[l.SETTING_INTEGRATION]=function(e,t){return e.set("integration",t.payload)},n[l.SETTING_HIDDEN_MENU]=function(e){return e.set("hideMenuBar",!0)},n[l.SET_TOP_MENU_SELECTED]=function(e,t){return e.set("topMenuSelectedKey",t.payload)},n[l.SHOW_USER_INFO_COMPLETION]=function(e){return e.set("showUserInfoCompletionModal",!0)},n[l.HIDE_USER_INFO_COMPLETION]=function(e){return e.set("showUserInfoCompletionModal",!1)},n),u)},"./src/redux/reducers/auth.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.authActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o},l=a("./src/utils/authPermit.js");var u=t.types=(0,d.default)({LOGIN:i.REQUEST_TYPE,LOGOUT:i.REQUEST_TYPE,VERIFY_LOGIN:i.REQUEST_TYPE,SHOW_LOGIN:void 0,HIDE_LOGIN:void 0,SET_AUTH_FAILURE:void 0,SET_GUIDE_DETAILS_KEY:void 0,OPEN_GUIDE_DETAILS:void 0,SHOW_BIND_GIT:void 0,HIDE_BIND_GIT:void 0},"auth"),c=t.initialState=(0,s.fromJS)({isAuthenticated:(0,l.isAuth)(),logining:!1,user:null,showLoginModal:!1,loginErrorState:!1,guideDetailsKey:"1",openGuideDetails:!1,showBindGitModal:!1}),p=(0,r.createActions)((0,i.getActionMap)(u)).auth;t.authActions=p,t.default=(0,r.handleActions)(((n={})[u.OPEN_GUIDE_DETAILS]=function(e,t){return e.set("openGuideDetails",t.payload)},n[u.SET_GUIDE_DETAILS_KEY]=function(e,t){return e.set("guideDetailsKey",t.payload.key)},n[u.SHOW_LOGIN]=function(e){return e.set("showLoginModal",!0)},n[u.HIDE_LOGIN]=function(e){return e.set("showLoginModal",!1)},n[u.LOGIN_REQUEST]=function(e){return e.merge({logining:!0,error:null})},n[u.LOGIN_SUCCESS]=function(e,t){return(0,l.setLoginData)(t.payload.data),e.merge({isAuthenticated:!0,logining:!1,error:null,user:t.payload.data.user})},n[u.LOGIN_FAILURE]=function(e,t){return e.merge({error:t.payload.message,isAuthenticated:!1,logining:!1,loginErrorState:!0})},n[u.LOGOUT_REQUEST]=function(e){return e.merge({logouting:!0})},n[u.LOGOUT_SUCCESS]=function(e){return e.merge({isAuthenticated:!1,logouting:!1,user:null})},n[u.LOGOUT_FAILURE]=function(e){return e.merge({logouting:!1})},n[u.VERIFY_LOGIN_REQUEST]=function(e){return e.merge({logining:!0,error:null})},n[u.VERIFY_LOGIN_SUCCESS]=function(e,t){return e.merge({isAuthenticated:!0,logining:!1,error:null,user:t.payload.data.user})},n[u.VERIFY_LOGIN_FAILURE]=function(e,t){return e.merge({error:t.payload.message,isAuthenticated:!1,logining:!1})},n[u.SET_AUTH_FAILURE]=function(e){return e.merge({isAuthenticated:!1})},n[u.SHOW_BIND_GIT]=function(e){return e.set("showBindGitModal",!0)},n[u.HIDE_BIND_GIT]=function(e){return e.set("showBindGitModal",!1)},n),c)},"./src/redux/reducers/busiTypes.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.busiTypesActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({SAVE_BUSI_TYPES:i.REQUEST_TYPE,RESET_SAVE_BUSI_TYPES:void 0,CHECK_MODEL_NAME:i.REQUEST_TYPE,RESET_CHECK_MODEL_NAME:void 0,GET_BUSINESS_TYPE_DATA:i.REQUEST_TYPE},"BUSI_TYPES"),u=t.initialState=(0,s.fromJS)({modelApplyNum:[],saveBusiTypes:{},checkNameCode:0,businessTypeData:[]}),c=(0,r.createActions)((0,i.getActionMap)(l)).busiTypes;t.busiTypesActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_BUSINESS_TYPE_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,businessTypeData:t.payload.data})},n[l.CHECK_MODEL_NAME_REQUEST]=function(e){return e.merge({checkNameCode:3})},n[l.CHECK_MODEL_NAME_SUCCESS]=function(e,t){return e.merge({checkNameCode:t.payload.code,error:!1})},n[l.CHECK_MODEL_NAME_FAILURE]=function(e,t){return e.merge({error:t.payload.message,checkNameCode:t.payload.code})},n[l.RESET_CHECK_MODEL_NAME]=function(e){return e.merge({checkNameCode:0})},n[l.RESET_SAVE_BUSI_TYPES]=function(e){return e.merge({saveBusiTypes:{}})},n[l.SAVE_BUSI_TYPES_SUCCESS]=function(e,t){return e.merge({saveBusiTypes:t.payload,error:t.payload.message})},n),u)},"./src/redux/reducers/checkName.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.checkNameActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l={1:"\u540d\u79f0\u53ef\u4ee5\u4f7f\u7528\uff01","-1":"\u540d\u79f0\u91cd\u590d\uff01"},u=t.types=(0,d.default)({CHECK_NAME_AVAILABLE:i.REQUEST_TYPE,SET_NAME_AVAILABLE_STATUS:null},"CHECK_NAME"),c=t.initialState=(0,s.fromJS)({verifyInfo:{verifyStatus:0,verifyMsg:"",loading:!1}}),p=(0,r.createActions)((0,i.getActionMap)(u)).checkName;t.checkNameActions=p,t.default=(0,r.handleActions)(((n={})[u.CHECK_NAME_AVAILABLE_REQUEST]=function(e){return e.merge({verifyInfo:{verifyStatus:0,verifyMsg:"",loading:!0}})},n[u.CHECK_NAME_AVAILABLE_SUCCESS]=function(e,t){var a=t.payload.data.isRepeat||!0===t.payload.data?-1:1;return e.merge({verifyInfo:{verifyStatus:a,verifyMsg:l[a],loading:!1}})},n[u.CHECK_NAME_AVAILABLE_FAILURE]=function(e,t){return e.merge({verifyInfo:{verifyStatus:0,verifyMsg:t.payload.message,loading:!1}})},n[u.SET_NAME_AVAILABLE_STATUS]=function(e,t){return e.merge({verifyInfo:{verifyStatus:t.payload.verifyStatus,verifyMsg:t.payload.verifyMsg}})},n),c)},"./src/redux/reducers/dashboard.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.dashboardActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_FEATURE:i.REQUEST_TYPE,GET_BUSINESS:i.REQUEST_TYPE,GET_CAPACITY:i.REQUEST_TYPE,GET_SYS_STATE:i.REQUEST_TYPE},"dashboard"),u=t.initialState=(0,s.fromJS)({featureData:null,businessData:null,capacityData:null,sysStateData:null}),c=(0,r.createActions)((0,i.getActionMap)(l)).dashboard;t.dashboardActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_FEATURE_REQUEST]=function(e){return e.merge({error:null})},n[l.GET_FEATURE_SUCCESS]=function(e,t){return e.merge({featureData:t.payload.data,error:!1})},n[l.GET_FEATURE_FAILURE]=function(e,t){return e.merge({error:t.payload.message,code:t.payload.code})},n[l.GET_BUSINESS_REQUEST]=function(e){return e.merge({error:null})},n[l.GET_BUSINESS_SUCCESS]=function(e,t){return e.merge({businessData:t.payload.data,error:!1})},n[l.GET_BUSINESS_FAILURE]=function(e,t){return e.merge({error:t.payload.message,code:t.payload.code})},n[l.GET_CAPACITY_REQUEST]=function(e){return e.merge({error:null})},n[l.GET_CAPACITY_SUCCESS]=function(e,t){return e.merge({capacityData:t.payload.data,error:!1})},n[l.GET_CAPACITY_FAILURE]=function(e,t){return e.merge({error:t.payload.message,code:t.payload.code})},n[l.GET_SYS_STATE_REQUEST]=function(e){return e.merge({error:null})},n[l.GET_SYS_STATE_SUCCESS]=function(e,t){return e.merge({sysStateData:t.payload.data,error:!1})},n[l.GET_SYS_STATE_FAILURE]=function(e,t){return e.merge({error:t.payload.message,code:t.payload.code})},n),u)},"./src/redux/reducers/dataBases.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.dataBasesActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_DATA_BASES_ARRAY:i.REQUEST_TYPE,GET_DATA_BASES_DOWN:i.REQUEST_TYPE,RESET_DATA_BASES:void 0},"DATA_BASES"),u=t.initialState=(0,s.fromJS)({dataBasesArray:[],dataBasesArrayDown:[]}),c=(0,r.createActions)((0,i.getActionMap)(l)).dataBases;t.dataBasesActions=c,t.default=(0,r.handleActions)(((n={})[l.RESET_DATA_BASES]=function(e){return e.merge({dataBasesArray:[],dataBasesArrayDown:[]})},n[l.GET_DATA_BASES_ARRAY_SUCCESS]=function(e,t){return e.merge({dataBasesArray:t.payload.data,error:t.payload.message})},n[l.GET_DATA_BASES_DOWN_SUCCESS]=function(e,t){return e.merge({dataBasesArrayDown:t.payload.data,error:t.payload.message})},n),u)},"./src/redux/reducers/dataDispose.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.dataDisposeActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_DATA_DISPOSE_LIST:i.REQUEST_TYPE,CANCEL_EXECUTE:i.REQUEST_TYPE,RESET_CANCEL_EXECUTE:void 0,RESET_DATA_DISPOSE_LIST:void 0,RESET_DELETE_DATA_DISPOSE:void 0,DELETE_DATA_DISPOSE:i.REQUEST_TYPE,RESET_EXECUTE_DATA_DISPOSE:void 0,EXECUTE_DATA_DISPOSE:i.REQUEST_TYPE,GET_DATA_DISPOSE:i.REQUEST_TYPE,RESET_GET_DATA_DISPOSE:void 0,SUBMIT_DATA_DISPOSE:i.REQUEST_TYPE,RESET_SUBMIT_DATA_DISPOSE:void 0,DELETE_DATA_DISPOSE_FROM_STATE:void 0,UPDATE_DATA_DISPOSE_FROM_STATE:void 0},"DATA_DISPOSE"),u=t.initialState=(0,s.fromJS)({dataDisposeList:[],delDataDispose:0,exeDataDispose:0,checkNameCode:0,submitDataDispose:{},dataDispose:{},cancelExecute:{}}),c=(0,r.createActions)((0,i.getActionMap)(l)).dataDispose;t.dataDisposeActions=c,t.default=(0,r.handleActions)(((n={})[l.UPDATE_DATA_DISPOSE_FROM_STATE]=function(e,t){var a=t.payload.taskId;return e.updateIn(["dataDisposeList",e.get("dataDisposeList").findKey((function(e){return e.get("taskId")===a}))],(function(e){return e.set("status","7")}))},n[l.DELETE_DATA_DISPOSE_FROM_STATE]=function(e,t){return e.deleteIn(["dataDisposeList",e.get("dataDisposeList").findKey((function(e){return e.get("taskId")===t.payload.taskId}))])},n[l.CANCEL_EXECUTE_SUCCESS]=function(e,t){return e.merge({cancelExecute:{code:t.payload.code,message:t.payload.message},error:!1})},n[l.RESET_CANCEL_EXECUTE]=function(e){return e.merge({cancelExecute:{}})},n[l.SUBMIT_DATA_DISPOSE_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitDataDispose:t.payload.data})},n[l.RESET_SUBMIT_DATA_DISPOSE]=function(e){return e.merge({submitDataDispose:{}})},n[l.GET_DATA_DISPOSE_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,dataDispose:t.payload.data})},n[l.RESET_GET_DATA_DISPOSE]=function(e){return e.merge({dataDispose:{}})},n[l.EXECUTE_DATA_DISPOSE_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,exeDataDispose:t.payload.code})},n[l.RESET_EXECUTE_DATA_DISPOSE]=function(e){return e.merge({exeDataDispose:0})},n[l.DELETE_DATA_DISPOSE_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delDataDispose:t.payload.code})},n[l.RESET_DELETE_DATA_DISPOSE]=function(e){return e.merge({delDataDispose:0})},n[l.RESET_DATA_DISPOSE_LIST]=function(e){return e.merge({dataDisposeList:[]})},n[l.GET_DATA_DISPOSE_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,dataDisposeList:t.payload.data})},n),u)},"./src/redux/reducers/dataSource.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.dataSourceActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_TABLE_NAME:i.REQUEST_TYPE,CLEAN_DATA_SOURCE:i.REQUEST_TYPE,CLEAN_DATA_SOURCE_CYCLES:i.REQUEST_TYPE,RESET_CLEAN:void 0,RESET_DATA_PARAM_ARITHMETIC_LIST:void 0,CANCEL_EXECUTE:i.REQUEST_TYPE,RESET_CANCEL_EXECUTE:void 0,GET_DEEPLEARN_ARITHMETIC:i.REQUEST_TYPE,REFRESH_DATA_CYCLES_LIST:i.REQUEST_TYPE,STOP_INTERVAL_GET_CYCLES:void 0,RESET_TABLE_NAME:void 0,GET_DATA_SOURCE_QUOTE:i.REQUEST_TYPE,RESET_GET_DATA_SOURCE_QUOTE:void 0,GET_DATA_SOURCE_ERROR_LOGS:i.REQUEST_TYPE,DELETE_DATA_SOURCE_INFO:i.REQUEST_TYPE,DELETE_DATA_SOURCE_FROM_STATE:void 0,GET_DATA_SOURCE_INFO:i.REQUEST_TYPE,SAVE_DATA_SOURCE:i.REQUEST_TYPE,GET_FTP_PREVIEW_DATA:i.REQUEST_TYPE,GET_DB_PREVIEW_DATA:i.REQUEST_TYPE,GET_DB_HEADER_DATA:i.REQUEST_TYPE,GET_FILE_PREVIEW_DATA:i.REQUEST_TYPE,GET_DATA_SOURCE_LIST:i.REQUEST_TYPE,GET_DATA_CYCLES_LIST:i.REQUEST_TYPE,GET_DATA_SOURCE_AUDIT_LIST:i.REQUEST_TYPE,GET_DATA_KPI_TYPE_LIST:i.REQUEST_TYPE,GET_DATA_PARAM_MODELTYPE_LIST:i.REQUEST_TYPE,GET_DATA_PARAM_ARITHMETIC_LIST:i.REQUEST_TYPE,CLEAR_DATA_SOURCE_AUDIT_LIST:i.REQUEST_TYPE,CLEAR_DATA_KPI_TYPE_LIST:void 0,GET_ARITHMETIC_LIST:i.REQUEST_TYPE,RESET_DATAS_ARITHMETIC:void 0,RESET_DATA_CYCLES_LIST:void 0,SAVE_SOURCE_META_DATAS:i.REQUEST_TYPE,RESET_SAVE_SOURCE_META_DATAS:void 0,UPLOAD_META_DATA:i.REQUEST_TYPE,RESET_DB_PREVIEW_DATA:void 0,RESET_SAVE_DATA_SOURCE:void 0,RESET_DATA_SOURCE_LIST:void 0,RESET_DELETE_DATA_SOURCE_LIST:void 0,RESET_DELETE_CYCLES_BY_SOURCES_ID:void 0,DELETE_CYCLES_BY_SOURCES_ID:i.REQUEST_TYPE,DELETE_CYCLES_BY_SOURCES_ID_FROM_STATE:void 0,GET_PIC_PREVIEW_DATA:i.REQUEST_TYPE,RESET_PIC_PREVIEW_DATA:void 0,GET_CYCLES_REVIEW:i.REQUEST_TYPE,RESET_GET_CYCLES_REVIEW:void 0,GET_FILE_CONTENT_DATA:i.REQUEST_TYPE,RESET_FILE_CONTENT_DATA:void 0,GET_SOURCE_DROP_DOWN:i.REQUEST_TYPE},"DATA_SOURCE"),u=t.initialState=(0,s.fromJS)({sourceDropDown:[],cleanDataCode:0,fileContentData:{},cyclesReviewCode:0,checkNameCode:0,uploadMetaData:[],datasSources:[],datasSourcesInfo:void 0,datasCycles:[],datasSourcesAudit:[],datasKpiType:[],datasParam:[],datasArithmetic:[],metaDatas:[],dbPreviewData:{headers:[]},dbHeaderData:{},sourcesPagination:{total:0,limit:0,offset:0},saveDataSource:{},deleteCyclesBySourcesIdCode:{},delDatasSources:{},errorLogs:"",dataSourceQuote:{},picPreviewData:{},deepLearnArithmetic:[],tableNames:[],cancelExecute:{}}),c=(0,r.createActions)((0,i.getActionMap)(l)).dataSource;t.dataSourceActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_SOURCE_DROP_DOWN_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,sourceDropDown:t.payload.data})},n[l.GET_DB_HEADER_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,dbHeaderData:t.payload.data})},n[l.CLEAN_DATA_SOURCE_CYCLES_SUCCESS]=function(e,t){return e.merge({cleanDataCode:t.payload.code,error:!1})},n[l.CLEAN_DATA_SOURCE_SUCCESS]=function(e,t){return e.merge({cleanDataCode:t.payload.code,error:!1})},n[l.RESET_CLEAN]=function(e){return e.merge({cleanDataCode:0})},n[l.CANCEL_EXECUTE_SUCCESS]=function(e,t){return e.merge({cancelExecute:{code:t.payload.code,message:t.payload.message},error:!1})},n[l.RESET_CANCEL_EXECUTE]=function(e){return e.merge({cancelExecute:{}})},n[l.RESET_FILE_CONTENT_DATA]=function(e){return e.merge({fileContentData:{}})},n[l.GET_FILE_CONTENT_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,fileContentData:t.payload.data})},n[l.RESET_TABLE_NAME]=function(e){return e.merge({tableNames:[]})},n[l.GET_TABLE_NAME_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,tableNames:t.payload.data})},n[l.GET_TABLE_NAME_FAILURE]=function(e,t){return e.merge({error:t.payload.message,tableNames:[t.payload.message]})},n[l.GET_CYCLES_REVIEW_SUCCESS]=function(e,t){return e.merge({cyclesReviewCode:t.payload.code,error:!1})},n[l.GET_DEEPLEARN_ARITHMETIC_SUCCESS]=function(e,t){return e.merge({deepLearnArithmetic:t.payload.data,error:!1})},n[l.RESET_GET_CYCLES_REVIEW]=function(e){return e.merge({cyclesReviewCode:0,error:!1})},n[l.REFRESH_DATA_CYCLES_LIST_SUCCESS]=function(e,t){return e.merge({datasCycles:t.payload.data,error:!1})},n[l.GET_DATA_SOURCE_QUOTE_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,dataSourceQuote:t.payload.data})},n[l.RESET_GET_DATA_SOURCE_QUOTE]=function(e){return e.merge({dataSourceQuote:{}})},n[l.DELETE_CYCLES_BY_SOURCES_ID_SUCCESS]=function(e,t){return e.merge({deleteCyclesBySourcesIdCode:{code:t.payload.code,message:t.payload.message}})},n[l.RESET_DELETE_CYCLES_BY_SOURCES_ID]=function(e){return e.merge({deleteCyclesBySourcesIdCode:{}})},n[l.DELETE_CYCLES_BY_SOURCES_ID_FROM_STATE]=function(e,t){return e.deleteIn(["datasCycles",e.get("datasCycles").findKey((function(e){return e.get("dsCycle")===t.payload.dsCycle}))])},n[l.GET_DATA_SOURCE_ERROR_LOGS_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,errorLogs:t.payload.data})},n[l.RESET_DELETE_DATA_SOURCE_LIST]=function(e){return e.merge({delDatasSources:{}})},n[l.DELETE_DATA_SOURCE_FROM_STATE]=function(e,t){return e.deleteIn(["datasSources",e.get("datasSources").findKey((function(e){return e.get("dsId")===t.payload.dsId}))])},n[l.DELETE_DATA_SOURCE_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delDatasSources:{code:t.payload.code,message:t.payload.message}})},n[l.GET_DATA_SOURCE_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,datasSourcesInfo:t.payload.data})},n[l.SAVE_DATA_SOURCE_SUCCESS]=function(e,t){return e.merge({saveDataSource:t.payload.data,error:!1})},n[l.SAVE_DATA_SOURCE_FAILURE]=function(e){return e.merge({saveDataSource:{code:-1},error:!1})},n[l.GET_FTP_PREVIEW_DATA_SUCCESS]=function(e,t){return e.merge({dbPreviewData:t.payload.data,error:!1})},n[l.GET_FTP_PREVIEW_DATA_FAILURE]=function(e,t){return e.merge({dbPreviewData:{headers:[],message:t.payload.message},error:!1})},n[l.GET_FILE_PREVIEW_DATA_SUCCESS]=function(e,t){return e.merge({dbPreviewData:t.payload.data,error:!1})},n[l.GET_DB_PREVIEW_DATA_SUCCESS]=function(e,t){return e.merge({dbPreviewData:t.payload.data,error:!1})},n[l.GET_DB_PREVIEW_DATA_FAILURE]=function(e,t){return e.merge({dbPreviewData:{headers:[],message:t.payload.message},error:!1})},n[l.RESET_SAVE_DATA_SOURCE]=function(e){return e.merge({saveDataSource:{},datasSourcesInfo:void 0})},n[l.RESET_DATA_SOURCE_LIST]=function(e){return e.merge({datasSources:[]})},n[l.RESET_DB_PREVIEW_DATA]=function(e){return e.merge({dbPreviewData:{headers:[]}})},n[l.UPLOAD_META_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,uploadMetaData:t.payload.data})},n[l.RESET_SAVE_SOURCE_META_DATAS]=function(e){return e.merge({metaDatas:[],error:!1})},n[l.SAVE_SOURCE_META_DATAS_SUCCESS]=function(e,t){return e.merge({metaDatas:t.payload.data,error:!1})},n[l.RESET_DATA_CYCLES_LIST]=function(e){return e.merge({datasCycles:[],error:!1})},n[l.GET_DATA_SOURCE_LIST_SUCCESS]=function(e,t){return e.merge({datasSources:t.payload.data,sourcesPagination:t.payload.pagination,error:!1})},n[l.GET_DATA_CYCLES_LIST_REQUEST]=function(e){return e.merge({datasCycles:[],error:!1})},n[l.GET_DATA_CYCLES_LIST_SUCCESS]=function(e,t){return e.merge({datasCycles:t.payload.data,error:!1})},n[l.CLEAR_DATA_KPI_TYPE_LIST]=function(e){return e.merge({datasKpiType:[],error:!1})},n[l.CLEAR_DATA_SOURCE_AUDIT_LIST_REQUEST]=function(e){return e.merge({datasSourcesAudit:[],error:!1})},n[l.GET_DATA_SOURCE_AUDIT_LIST_SUCCESS]=function(e,t){return e.merge({datasSourcesAudit:t.payload.data,error:!1})},n[l.GET_DATA_KPI_TYPE_LIST_SUCCESS]=function(e,t){return e.merge({datasKpiType:t.payload.data,error:!1})},n[l.GET_DATA_PARAM_MODELTYPE_LIST_SUCCESS]=function(e,t){return e.merge({datasParam:t.payload.data,error:!1})},n[l.GET_DATA_PARAM_ARITHMETIC_LIST_SUCCESS]=function(e,t){return e.merge({datasParam:t.payload.data,error:!1})},n[l.RESET_DATA_PARAM_ARITHMETIC_LIST]=function(e){return e.merge({datasParam:[]})},n[l.GET_ARITHMETIC_LIST_SUCCESS]=function(e,t){return e.merge({datasArithmetic:t.payload.data,error:!1})},n[l.RESET_DATAS_ARITHMETIC]=function(e){return e.merge({datasArithmetic:[],error:!1})},n[l.GET_PIC_PREVIEW_DATA_SUCCESS]=function(e,t){return e.merge({picPreviewData:t.payload.data,error:!1})},n[l.GET_PIC_PREVIEW_DATA_FAILURE]=function(e){return e.merge({picPreviewData:{},error:!0})},n[l.RESET_PIC_PREVIEW_DATA]=function(e){return e.merge({picPreviewData:{},error:!1})},n),u)},"./src/redux/reducers/devCenter.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.devCenterActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_API_GROUPS:i.REQUEST_TYPE,GET_APIS:i.REQUEST_TYPE,GET_API_DOC_URL:i.REQUEST_TYPE,GET_API_JSON:i.REQUEST_TYPE,RESET_API:void 0,CLEAR_APIS:void 0},"DEV_CENTER"),u=t.initialState=(0,s.fromJS)({api_groups:[],apis:[],api_doc:{},static_doc:{}}),c=(0,r.createActions)((0,i.getActionMap)(l)).devCenter;t.devCenterActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_API_GROUPS_SUCCESS]=function(e,t){return e.merge({api_groups:t.payload&&t.payload.data||[]})},n[l.GET_API_GROUPS_FAILURE]=function(e){return e.merge({api_groups:[]})},n[l.GET_APIS_SUCCESS]=function(e,t){return e.merge({apis:t.payload&&t.payload.data||[]})},n[l.GET_APIS_FAILURE]=function(e){return e.merge({apis:[]})},n[l.GET_API_JSON_SUCCESS]=function(e,t){return e.merge({api_doc:t.payload&&t.payload.data||{}})},n[l.GET_API_JSON_FAILURE]=function(e){return e.merge({api_doc:{}})},n[l.GET_API_DOC_URL_SUCCESS]=function(e,t){return e.merge({static_doc:t.payload&&t.payload.data||{}})},n[l.GET_API_DOC_URL_FAILURE]=function(e){return e.merge({static_doc:{}})},n[l.RESET_API]=function(){return u},n[l.CLEAR_APIS]=function(e){return e.merge({apis:[]})},n),u)},"./src/redux/reducers/dragDrop/dragDropModel.js":function(e,t,a){"use strict";t.__esModule=!0,t.dragDropModelActions=t.initialState=t.types=void 0;var n,o=g(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),s=g(a("./node_modules/babel-runtime/helpers/extends.js")),r=a("./node_modules/immutable3/dist/immutable.js"),i=g(a("./node_modules/lodash/lodash.js")),d=a("./node_modules/redux-actions/es/index.js"),l=a("./src/redux/actionTypeHelper.js"),u=g(l),c=a("./src/module/dragDrop/constant.js"),p=a("./src/module/dragDrop/config.jsx"),f=a("./src/module/dragDrop/flow_arrange/utils/commonUtil.js"),m=a("./src/redux/reducers/dragDrop/flowNodes.js"),h=a("./src/redux/reducers/dragDrop/flowLinks.js");function g(e){return e&&e.__esModule?e:{default:e}}var v=t.types=(0,u.default)({CREATE_MODEL:l.REQUEST_TYPE,UPDATE_MODEL_INFO:l.REQUEST_TYPE,GET_DRAG_MODEL:l.REQUEST_TYPE,SAVE_DRAG_MODEL_JSON:l.REQUEST_TYPE,AUTO_SAVE_DRAG_MODEL_JSON:l.REQUEST_TYPE,EXECUTE_DRAG_MODEL:l.REQUEST_TYPE,PAUSE_EXECUTE_DRAG_MODEL:l.REQUEST_TYPE,UPDATE_EXEC_STATUS:l.REQUEST_TYPE,SAVE_MODEL_RESULT:l.REQUEST_TYPE,DELETE_MODEL_RESULT:l.REQUEST_TYPE,PUBLISH_MODEL_TO_REPO:l.REQUEST_TYPE,GET_NODE_EXEC_LOG:l.REQUEST_TYPE,CLEAR_NODE_EXEC_LOG:void 0,GET_NODE_EXEC_RESULT:l.REQUEST_TYPE,DOWNLOAD_IPYNB:l.REQUEST_TYPE,RESET_DRAG_DROP_MODEL:void 0,ADD_MODEL_FLOW:void 0,GET_JUPYTER_INFO:l.REQUEST_TYPE,ADD_JUPYTER_EXEC_LOG:void 0,CLEAR_JUPYTER_EXEC_LOG:void 0,UPDATE_SESSION_STATUS:void 0},"DRAG_DROP_MODEL"),_=t.initialState=(0,r.fromJS)({model_info:{},save_models:[],exec_logs:[],jupyter_info:null,kernelId:null,sessionId:null,isConnected:!1}),y=(0,d.createActions)((0,l.getActionMap)(v)).dragDropModel;function b(e,t,a){return i.default.isPlainObject(t)?e.withMutations((function(e){var n=["flowDiagram","present"];return i.default.mapKeys(t,(function(a,o){var s=e.getIn([].concat(n,["nodes",o]));i.default.isNil(s)||(s.get("status")!==t[o]&&e.setIn([].concat(n,["nodes",o,"status"]),i.default.get(t[o],"status")),22!==t[o].status&&-2!==t[o].status||e.setIn([].concat(n,["nodes_exec_info",o]),(0,r.fromJS)(i.default.omit(a,"status"))))})),a&&e.mergeIn([].concat(n,["component_setting","consolePanel"]),{expand:!0,show:!0}),e})):e}t.dragDropModelActions=y,t.default=(0,d.handleActions)(((n={})[v.GET_DRAG_MODEL_SUCCESS]=function(e,t){var a=t.payload&&t.payload.data||{},n=a.modelInfo,d=a.modelConf,l=a.models,u=a.sessionId,c=a.kernelId;return e.withMutations((function(e){e.setIn(["dragDropModel","model_info"],(0,r.fromJS)((0,s.default)({},n,{engine:i.default.toString(n.engine)}))),e.setIn(["dragDropModel","save_models"],(0,r.fromJS)(l||[])),e.setIn(["dragDropModel","sessionId"],(0,r.fromJS)(u)),e.setIn(["dragDropModel","kernelId"],(0,r.fromJS)(c)),i.default.isNil(d)||i.default.isNil(d.nodes)||function(e,t,a){if(i.default.isPlainObject(t)){var n=t.links,d=void 0===n?[]:n,l=t.nodes,u=void 0===l?[]:l,c=t.position,p=(0,o.default)(t,["links","nodes","position"]),f={},m={};i.default.filter(u,(function(e){return!i.default.isNil(e.id)&&!i.default.isNil(e.position)})).map((function(e){f[e.id]=i.default.get(e,"execInfo"),m[e.id]=i.default.omit(e,"execInfo")})),e.mergeIn(["flowDiagram","present"],(0,r.fromJS)((0,s.default)({modelId:i.default.get(a,"modelId"),nodes:m,links:i.default.keyBy(d,"id")},p))),e.mergeIn(["flowDiagram","present","nodes_exec_info"],f),e.mergeIn(["flowDiagram","present","canvas","position"],c)}}(e,d,n)}))},n[v.EXECUTE_DRAG_MODEL_SUCCESS]=function(e,t){var a=t.payload.data,n=a.taskId,o=a.taskLog,s=void 0===o?{}:o;return e.withMutations((function(e){e.setIn(["dragDropModel","sessionId"],n),b(e,i.default.get(s,"nodes",{}),!0)}))},n[v.PAUSE_EXECUTE_DRAG_MODEL_SUCCESS]=function(e,t){var a=t.payload.data,n=a.taskId,o=a.taskLog,s=void 0===o?{}:o;return e.withMutations((function(e){e.setIn(["dragDropModel","sessionId"],n),b(e,i.default.get(s,"nodes",{}))}))},n[v.UPDATE_EXEC_STATUS_SUCCESS]=function(e,t){return b(e,i.default.get(t.payload,"data.nodes",{}))},n[v.CREATE_MODEL_SUCCESS]=function(e,t){var a=t.payload&&t.payload.data||{},n=a.modelId,o=a.modelName,s=a.modelDesc,d=a.businessType,l=a.engine,u=a.businessTypeName;return e.setIn(["dragDropModel","model_info"],(0,r.fromJS)({modelId:n,modelName:o,modelDesc:s,businessType:d,engine:i.default.toString(l),businessTypeName:u}))},n[v.UPDATE_MODEL_INFO_SUCCESS]=function(e,t){var a=t.payload&&t.payload.data||{},n=a.modelName,o=a.modelDesc,s=a.businessType,r=a.engine,d=a.businessTypeName;return e.mergeIn(["dragDropModel","model_info"],{modelName:n,modelDesc:o,businessType:s,engine:i.default.toString(r),businessTypeName:d})},n[v.SAVE_MODEL_RESULT_SUCCESS]=function(e,t){var a=t.payload&&t.payload.data||{};return e.updateIn(["dragDropModel","save_models"],(function(e){return(e||(0,r.List)()).push((0,r.fromJS)(a))}))},n[v.GET_NODE_EXEC_LOG_SUCCESS]=function(e,t){var a=t.payload&&t.payload.data||{},n=(i.default.isArray(a)?a:[a]).map((function(e){var t=i.default.get(e,"output_type");if(!t)return!1;var a={type:t};return"error"===t?(i.default.set(a,"output",i.default.get(e,"result.evalue")),i.default.set(a,"trace",i.default.get(e,"result.traceback"))):i.default.set(a,"output",i.default.get(e,"result.text")),a})).filter(Boolean);return e.setIn(["flowDiagram","present","node_log"],(0,r.fromJS)(n))},n[v.CLEAR_NODE_EXEC_LOG]=function(e){return e.setIn(["flowDiagram","present","node_log"],(0,r.List)())},n[v.GET_NODE_EXEC_RESULT_SUCCESS]=function(e,t){return e.setIn(["flowDiagram","present","nodes_result"],(0,r.fromJS)(t.payload.data||[]))},n[v.RESET_DRAG_DROP_MODEL]=function(e){return e.update("dragDropModel",(function(){return _}))},n[v.ADD_JUPYTER_EXEC_LOG]=function(e,t){return e.updateIn(["dragDropModel","exec_logs"],(function(e){return(e||(0,r.List)()).withMutations((function(e){return e.push((0,r.fromJS)(t.payload.log)),e.count()>=p.exec_log_count?e.slice(e.count()-p.exec_log_count,p.exec_log_count):e}))}))},n[v.GET_JUPYTER_INFO_SUCCESS]=function(e,t){return e.setIn(["dragDropModel","jupyter_info"],(0,r.fromJS)(t.payload.data))},n[v.CLEAR_JUPYTER_EXEC_LOG]=function(e){return e.setIn(["dragDropModel","exec_logs"],(0,r.List)())},n[v.UPDATE_SESSION_STATUS]=function(e,t){return e.setIn(["dragDropModel","isConnected"],t.payload.isConnected||!1)},n[v.ADD_MODEL_FLOW]=function(e,t){var a,n=t.payload,o=n.flowNode,d=n.modelId,l=n.position,u=n.onlyModelNode,p=e.getIn(["dragDropModel","save_models"]).find((function(e){return e.get("nodeModelId")===d})),g=(p||(0,r.Map)()).get("modelConf");if(u)return e.mergeIn(["flowDiagram","present","nodes"],((a={})[o.id]=(0,m.initFlowNode)(e,(0,s.default)({},o,{config:{modelPath:p.get("nodeModelFile"),arithId:p.get("arithId"),modelId:d,output:{modelPath:p.get("nodeModelFile"),modelId:d}}}),l,e.get("pickNodes")),a));if(i.default.isNil(g))return console.warn("\u6a21\u578b["+d+"]\u6d41\u7a0bjson\u4e0d\u5b58\u5728"),e;var v={},_=(g.get("nodes")||(0,r.List)()).reduce((function(e,t){return{min_x:Math.min(t.getIn(["position","x"]),e.min_x),min_y:Math.min(t.getIn(["position","y"]),e.min_y),max_x:Math.max(t.getIn(["position","x"]),e.max_x),max_y:Math.max(t.getIn(["position","y"]),e.max_y)}}),{min_x:Number.MAX_VALUE,min_y:Number.MAX_VALUE,max_x:Number.MIN_VALUE,max_y:Number.MIN_VALUE}),y={x:_.min_x-l.x,y:_.min_y-l.y},b=void 0,x=void 0,C=void 0,j=(g.get("nodes")||(0,r.List)()).reduce((function(t,a){var n=(0,f.generateId)(),l=a.get("position"),u=l.get("x"),h=l.get("y");v[a.get("id")]=n;var g=void 0;if(!0===a.getIn(["properties","isModelSrc"])){var _=(0,m.initFlowNode)(e,(0,s.default)({},o,{id:n,config:{modelPath:p.get("nodeModelFile"),arithId:p.get("arithId"),modelId:d,output:{modelPath:p.get("nodeModelFile"),modelId:d}}}),{x:u-y.x-100,y:h-y.y},e.get("pickNodes"));x=n,b=a.get("id"),C=i.default.get(i.default.find(i.default.get(_,"ports",[]),{type:"output"}),"id"),g=(0,r.fromJS)(_).set("status",c.FLOW_NODE_STATUS.CONF_OK)}else g=a.merge({id:n,status:c.FLOW_NODE_STATUS.CONF_OK,position:{x:u-y.x,y:h-y.y}});return t.set(n,g)}),(0,r.Map)());if(i.default.isNil(b))return e;var S=function(e,t,a){var n=(0,f.generateId)(),o=e.getIn(["pickNodes","entities",c.EXEC_PREDICT_NODE_ID]),s=(0,m.initFlowNode)(e,{id:n,type:c.EXEC_PREDICT_NODE_ID,title:o.get("nodeName"),memo:o.get("nodeDesc"),status:c.FLOW_NODE_STATUS.CONF_WAIT},{x:t.min_x-a.x,y:t.max_y-a.y+120},e.get("pickNodes")),d=void 0,l=void 0;return i.default.filter(i.default.get(s,"ports",[]),(function(e){"input"===e.type&&(i.default.includes(i.default.get(e,"properties.inputType",[]),"model")?d=e.id:l=e.id)})),{id:n,data:(0,r.fromJS)(s),modelPortId:d,dataPortId:l}}(e,_,y),I=S.id,T=S.data,w=S.modelPortId,E=S.dataPortId;j=j.set(I,(0,r.fromJS)(T));var D=(g.get("links")||(0,r.List)()).reduce((function(e,t){var a=t.getIn(["from","nodeId"]),n=t.getIn(["to","nodeId"]);if(!v[a]||!v[n])return e;var o=(0,f.generateId)(),s=e.set(o,t.set("id",o).setIn(["from","nodeId"],v[a]).setIn(["to","nodeId"],v[n]).set("status",c.FLOW_NODE_STATUS.CONF_WAIT));return n===b&&(s=s.setIn([o,"to","nodeId"],I).setIn([o,"to","portId"],E),j=j.setIn([I,"input"],(0,r.fromJS)((0,h.getLinkToNodeInput)(j,(s.get(o)||(0,r.Map)()).toJS())))),s}),(0,r.Map)()),M=(0,f.generateId)(),k={id:M,from:{nodeId:x,portId:C},to:{nodeId:I,portId:w}};return D=D.set(M,(0,r.fromJS)(k)),j=j.setIn([I,"input"],(0,r.fromJS)((0,h.getLinkToNodeInput)(j,k))),e.withMutations((function(e){e.mergeIn(["flowDiagram","present","nodes"],j),e.mergeIn(["flowDiagram","present","links"],D)}))},n),_)},"./src/redux/reducers/dragDrop/flowDiagram.js":function(e,t,a){"use strict";t.__esModule=!0,t.flowDiagramActions=t.types=t.initialState=void 0;var n,o=v(a("./node_modules/babel-runtime/helpers/extends.js")),s=a("./src/module/dragDrop/undo/index.js"),r=v(s),i=v(a("./node_modules/lodash/lodash.js")),d=a("./node_modules/immutable3/dist/immutable.js"),l=a("./node_modules/redux-actions/es/index.js"),u=a("./src/redux/actionTypeHelper.js"),c=v(u),p=a("./src/redux/reducers/dragDrop/flowNodes.js"),f=v(p),m=a("./src/redux/reducers/dragDrop/flowLinks.js"),h=v(m),g=a("./src/redux/selectors/dragDrop/flowDiagramSelector.js");function v(e){return e&&e.__esModule?e:{default:e}}var _=t.initialState=(0,d.fromJS)({canvas:{rect:{},position:{x:0,y:0},zoomScale:1},hovered:null,selected:null,contextMenu:null,nodes:{},nodes_exec_info:{},nodes_result:[],nodes_tmp_position:{},node_active_ports:[],node_log:[],links:{},link_tmp:{},kernel_connectd:!0,conf_error:[],component_setting:{configPanel:{show:!1,lock:!1},consolePanel:{show:!0,expand:!1,height:200}}}),y=t.types=(0,c.default)({UPDATE_CANVAS_RECT:void 0,UPDATE_CANVAS_POSITION:void 0,UPDATE_CANVAS_ZOOM_SCALE:void 0,UPDATE_CANVAS_BEST_VIEW:void 0,UPDATE_CONTEXT_MENU:void 0,UPDATE_SELECTED:void 0,UPDATE_HOVERED:void 0,CLEAR_FLOW_DIAGRAM:void 0,REMOVE_ELEMENT:void 0,SET_NODE_PORT_ACTIVE:void 0,CLEAR_NODE_PORT_ACTIVE:void 0,RESET_DIAGRAM:void 0,UPDATE_COMP_SETTING:void 0,TOGGLE_CONSOLE:void 0,SET_CONFIG_ERR_LOG:void 0,SET_EXECUTE_LOGS:void 0,SET_EXECUTE_NODES:void 0,RESET_NODE_RESULT:void 0},"FLOW_DIAGRAM"),b=(0,l.createActions)((0,u.getActionMap)(y)).flowDiagram,x=(t.flowDiagramActions=(0,o.default)({},b,p.flowNodesActions,m.flowLinksActions),(0,l.handleActions)(((n={})[y.UPDATE_COMP_SETTING]=function(e,t){var a=t.payload,n=a.comp,o=a.setting;return e.mergeIn(["component_setting",n],o)},n[y.TOGGLE_CONSOLE]=function(e){return e.mergeIn(["component_setting","consolePanel"],{expand:!0,show:!0})},n[y.UPDATE_CANVAS_RECT]=function(e,t){var a=t.payload.rect;return e.isEmpty()?_.updateIn(["canvas","rect"],(function(){return(0,d.Map)(a)})):e.updateIn(["canvas","rect"],(function(){return(0,d.Map)(a)}))},n[y.UPDATE_CANVAS_POSITION]=function(e,t){return e.updateIn(["canvas","position"],(function(){return(0,d.Map)(t.payload.position)}))},n[y.UPDATE_CANVAS_ZOOM_SCALE]=function(e,t){return e.updateIn(["canvas","zoomScale"],(function(){return t.payload.zoomScale}))},n[y.UPDATE_CANVAS_BEST_VIEW]=function(e){return e.updateIn(["canvas","position"],(function(){return(0,d.fromJS)((0,g.selectCanvasBestView)(e))}))},n[y.UPDATE_CONTEXT_MENU]=function(e,t){return e.update("contextMenu",(function(){return(0,d.fromJS)(t.payload.contextMenu)}))},n[y.UPDATE_SELECTED]=function(e,t){var a=(0,d.fromJS)(t.payload.selected);return e.get("selected")&&a&&e.get("selected").equals(a)?e:e.withMutations((function(e){t.payload.selected&&"node"===t.payload.selected.type?e.mergeIn(["component_setting","configPanel"],{show:!0}):e.mergeIn(["component_setting","configPanel"],{show:!1}),e.update("selected",(function(){return a}))}))},n[y.UPDATE_HOVERED]=function(e,t){return e.update("hovered",(function(){return(0,d.fromJS)(t.payload.hovered)}))},n[l.combineActions.apply(void 0,Object.values(p.flowNodesActions))]=function(e,t){return(0,f.default)(e,t)},n[l.combineActions.apply(void 0,Object.values(m.flowLinksActions))]=function(e,t){return(0,h.default)(e,t)},n[y.CLEAR_FLOW_DIAGRAM]=function(e){return e.withMutations((function(e){e.set("links",(0,d.Map)()),e.set("nodes",(0,d.Map)()),e.set("hovered",null),e.set("selected",null),e.set("contextMenu",null),e.set("node_active_ports",(0,d.List)()),e.set("link_tmp",(0,d.Map)()),e.setIn(["canvas","position"],_.getIn(["canvas","position"])),e.set("logs",_.get("logs"))}))},n[y.REMOVE_ELEMENT]=function(e,t){return e.withMutations((function(e){var a=t.payload,n=a.nodeIds,o=void 0===n?[]:n,s=a.linkIds,r=void 0===s?[]:s;i.default.isArray(r)&&r.map((function(t){return(0,m.removeNodeLink)(e,t)})),i.default.isArray(o)&&o.map((function(t){return(0,p.removeFlowNode)(e,t)}))}))},n[y.SET_NODE_PORT_ACTIVE]=function(e,t){return e.set("node_active_ports",(0,d.fromJS)(t.payload.portIds||[]))},n[y.CLEAR_NODE_PORT_ACTIVE]=function(e){return e.get("node_active_ports").isEmpty()?e:e.set("node_active_ports",(0,d.fromJS)([]))},n[y.RESET_DIAGRAM]=function(e){return e.merge(_)},n[y.RESET_NODE_RESULT]=function(e){return e.set("nodes_result",null)},n[y.SET_CONFIG_ERR_LOG]=function(e,t){return e.withMutations((function(e){e.mergeIn(["component_setting","consolePanel"],{expand:!0,show:!0}),e.setIn(["conf_error"],(0,d.fromJS)(t.payload.configError||[]))}))},n),_)),C=(0,r.default)(x,{limit:50,initTypes:["@@redux-undo/INIT"],groupBy:(0,s.groupByActionTypes)(["FLOW_DIAGRAM/UPDATE_CANVAS_POSITION","FLOW_DIAGRAM/UPDATE_NODE_POSITION"]),filter:(0,s.includeAction)(["FLOW_DIAGRAM/CLEAR_FLOW_DIAGRAM","FLOW_DIAGRAM/ADD_NODE","FLOW_DIAGRAM/REMOVE_NODE","FLOW_DIAGRAM/UPDATE_NODE_CONF","FLOW_DIAGRAM/ADD_LINK","FLOW_DIAGRAM/REMOVE_LINK","FLOW_DIAGRAM/REMOVE_ELEMENT"])});t.default=C},"./src/redux/reducers/dragDrop/flowLinks.js":function(e,t,a){"use strict";t.__esModule=!0,t.removeNodeLink=t.flowLinksActions=t.types=t.initialState=void 0;var n,o=u(a("./node_modules/babel-runtime/helpers/extends.js"));t.getLinkToNodeInput=h;var s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=u(i),l=a("./src/redux/reducers/dragDrop/utils.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=t.initialState=(0,s.fromJS)({}),p=t.types=(0,d.default)({ADD_LINK:void 0,REMOVE_LINK:void 0,SET_TMP_LINK:void 0,REMOVE_TMP_LINK:void 0},"FLOW_DIAGRAM"),f=(0,r.createActions)((0,i.getActionMap)(p)).flowDiagram;t.flowLinksActions=f;var m=t.removeNodeLink=function(e,t){var a=e.get("links"),n=e.get("nodes"),o=a.get(t),s=o.get("to"),r=o.get("from"),i=s.get("nodeId"),d=n.getIn([i,"input"]).toJS();return _.remove(d,(function(e){return e.id===r.get("portId")})),e.withMutations((function(e){(0,l.updateSubNodesStatus)(e,i),e.removeIn(["links",t]),e.hasIn(["nodes",i])&&e.mergeIn(["nodes",i],{input:d})}))};function h(e,t){var a=t.from,n=t.to,o=a.nodeId,r=a.portId,i=n.nodeId,d=e.getIn([i,"input"]).toJS(),l=(e.getIn([o,"ports"])||(0,s.List)()).find((function(e){return e.get("id")===r}))||{},u=l.getIn(["properties","outputType"]),c=e.get(o),p=c.get("type");return d.push({id:r,type:u,nodeId:c.get("id"),nodeType:"model"===p?c.getIn(["config","arithId"],p):p,nodeName:c.get("title"),variable:l.get("variable")||u+"_"+_.replace(l.get("id"),"-","_")}),d}t.default=(0,r.handleActions)(((n={})[p.ADD_LINK]=function(e,t){var a=t.payload,n=a.id,o=a.from,r=a.to,i=h(e.get("nodes"),t.payload);return e.withMutations((function(e){e.setIn(["links",n],(0,s.fromJS)({id:n,from:o,to:r})),e.mergeIn(["nodes",r.nodeId],{input:i})}))},n[p.REMOVE_LINK]=function(e,t){return m(e,t.payload.id)},n[p.SET_TMP_LINK]=function(e,t){var a=t.payload,n=a.id,s=a.from,r=a.to;if(r&&r.position){var i=e.get("canvas"),d=i.get("position"),l=i.get("zoomScale"),u=i.get("rect");r.position={x:(r.position.x-d.get("x")-u.get("left"))/l,y:(r.position.y-d.get("y")-u.get("top"))/l}}return e.mergeIn(["link_tmp"],(0,o.default)({id:n},s&&{from:s},r&&{to:r}))},n[p.REMOVE_TMP_LINK]=function(e){return e.update("link_tmp",(function(){return(0,s.Map)()}))},n),c)},"./src/redux/reducers/dragDrop/flowNodes.js":function(e,t,a){"use strict";t.__esModule=!0,t.removeFlowNode=t.flowNodesActions=t.types=t.initialState=void 0;var n,o=c(a("./node_modules/babel-runtime/helpers/extends.js"));t.initFlowNode=g;var s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=c(i),l=c(a("./src/redux/selectors/dragDrop/index.js")),u=a("./src/redux/reducers/dragDrop/utils.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=t.initialState=(0,s.fromJS)({}),f=t.types=(0,d.default)({ADD_NODE:void 0,REMOVE_NODE:void 0,UPDATE_NODE_CONF:void 0,UPDATE_NODE_STATUS:void 0,UPDATE_NODE_POSITION:void 0},"FLOW_DIAGRAM"),m=(0,r.createActions)((0,i.getActionMap)(f)).flowDiagram;t.flowNodesActions=m;var h=t.removeFlowNode=function(e,t){e.withMutations((function(e){e.removeIn(["nodes",t]),(0,u.updateSubNodesStatus)(e,t)}))};function g(e,t,a,n){var s=l.default.pickNode.getFuncHelper(n).buildNodePorts(t.type)||[],r=_.groupBy(s,"type"),i=[];return!0===_.get(r,"output.0.properties.dynamic",!1)?(s=_.get(r,"input"),_.set(t,"properties.dynamicOuput",!0)):i=_.get(r,"output",[]).map((function(e){var t=_.get(e,"properties.outputType");return{id:e.id,type:t,variable:t+"_"+_.replace(e.id,"-","_")}})),(0,o.default)({},t,{position:a,ports:s,input:[],output:i})}t.default=(0,r.handleActions)(((n={})[f.ADD_NODE]=function(e,t){var a=t.payload,n=void 0===a?{}:a,o=t.pickNodes,r=n.flowNode,i=void 0===r?{}:r,d=n.position,l=g(e,i,void 0===d?{}:d,o);return e.setIn(["nodes",i.id],(0,s.fromJS)(l))},n[f.REMOVE_NODE]=function(e,t){return h(e,t.payload.id)},n[f.UPDATE_NODE_CONF]=function(e,t){var a=t.payload,n=a.id,o=a.data,s=a.validateSub,r=a.updateFlow,i=t.pickNodes;return e.withMutations((function(e){var t=o,a=e.getIn(["nodes",n]);!0===r&&(0,u.updateFlowStatus)(e,n),a&&e.updateIn(["nodes",n],(function(e){return e.merge(t)})),!0===s&&(0,u.updateValidateSubNodesStatus)(e,n,i),a&&!0===a.getIn(["properties","dynamicOuput"],!1)&&(0,u.dynamicUpdateNodeOutputPorts)(e,a,_.get(o,"config",{}))}))},n[f.UPDATE_NODE_STATUS]=function(e,t){var a=t.payload,n=a.nodeId,o=a.status,s=t.pickNodes,r=l.default.pickNode.getFuncHelper(s),i=e.getIn(["nodes",n,"type"]),d=i&&r.getNodeMainType(i);return"algorithm"!==_.get(d,"type")&&e.getIn(["nodes",n])?e.setIn(["nodes",n,"status"],o):e},n[f.UPDATE_NODE_POSITION]=function(e,t){var a=t.payload,n=a.id,o=a.position;return!0===a.isTemp?e.setIn(["nodes_tmp_position",n],(0,s.fromJS)(o)):e.withMutations((function(e){e.removeIn(["nodes_tmp_position",n]),e.getIn(["nodes",n])&&e.updateIn(["nodes",n],(function(e){return e.merge({position:o})}))}))},n),p)},"./src/redux/reducers/dragDrop/index.js":function(e,t,a){"use strict";t.__esModule=!0,t.flowDiagramActions=t.flowDiagramActionTypes=t.flowDiagramReducer=t.pickNodesActions=t.pickNodesActionTypes=t.pickNodeReducer=t.dragDropModelActions=t.dragDropModelActionTypes=t.modelReducer=void 0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=a("./src/redux/reducers/dragDrop/dragDropModel.js");Object.defineProperty(t,"dragDropModelActionTypes",{enumerable:!0,get:function(){return o.types}}),Object.defineProperty(t,"dragDropModelActions",{enumerable:!0,get:function(){return o.dragDropModelActions}});var s=a("./src/redux/reducers/dragDrop/pickNodes.js");Object.defineProperty(t,"pickNodesActionTypes",{enumerable:!0,get:function(){return s.types}}),Object.defineProperty(t,"pickNodesActions",{enumerable:!0,get:function(){return s.pickNodesActions}});var r=a("./src/redux/reducers/dragDrop/flowDiagram.js");Object.defineProperty(t,"flowDiagramActionTypes",{enumerable:!0,get:function(){return r.types}}),Object.defineProperty(t,"flowDiagramActions",{enumerable:!0,get:function(){return r.flowDiagramActions}});var i=p(a("./node_modules/lodash/lodash.js")),d=a("./node_modules/immutable3/dist/immutable.js"),l=p(o),u=p(s),c=p(r);function p(e){return e&&e.__esModule?e:{default:e}}t.modelReducer=l.default,t.pickNodeReducer=u.default,t.flowDiagramReducer=c.default;t.default=function(e,t){var a=e||(0,d.Map)();if(i.default.startsWith(t.type,"@@redux/INIT")||i.default.startsWith(t.type,"@@redux-undo")||i.default.startsWith(t.type,"DRAG_DROP_MODEL")||i.default.startsWith(t.type,"PICK_NODES")||i.default.startsWith(t.type,"FLOW_DIAGRAM")){var o=a.get("flowDiagram"),s=a.get("dragDropModel"),r=a.get("pickNodes");return a.withMutations((function(e){e.set("flowDiagram",(0,c.default)(o,(0,n.default)({},t,{model:s,pickNodes:r}))),(0,l.default)(e,(0,n.default)({},t,{model:s,flow:o})),e.set("pickNodes",(0,u.default)(r,t))}))}return a}},"./src/redux/reducers/dragDrop/pickNodes.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.pickNodesActions=t.initialState=t.types=void 0;var o=a("./node_modules/immutable3/dist/immutable.js"),s=u(a("./node_modules/lodash/lodash.js")),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=u(i),l=a("./node_modules/normalizr/dist/normalizr.es.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=t.types=(0,d.default)({GET_PICK_NODES:i.REQUEST_TYPE,FILTER_PICK_NODES:void 0,RESET_PICK_NODES:void 0},"PICK_NODES"),p=t.initialState=(0,o.fromJS)({entities:{},result:[],tree:[],filter_pickNodes:null}),f=(0,r.createActions)((0,i.getActionMap)(c)).pickNodes;t.pickNodesActions=f,t.default=(0,r.handleActions)(((n={})[c.GET_PICK_NODES_SUCCESS]=function(e,t){return e.merge(m(t.payload.data||[]))},n[c.FILTER_PICK_NODES]=function(e,t){var a=t.payload.name,n=""===s.default.trim(a)?null:h(e,s.default.trim(a));return e.merge({filter_pickNodes:n})},n[c.RESET_PICK_NODES]=function(e){return e.clear()},n),p);var m=function(e){var t=new l.schema.Entity("pickNodes",void 0,{idAttribute:function(e){return e.nodeId},processStrategy:function(e){return s.default.omit(e,["validFlag","sortIndex"])}}),a=(0,l.normalize)({pickNodes:e},{pickNodes:[t]}),n=s.default.get(a,"entities.pickNodes",{}),o=n.model;o&&(o.nodeTypeId=-1,o.typeIds=["model"],o.typeNames=["\u6a21\u578b"]),n.model=n.model||{};var r=g(n,e);return{entities:s.default.get(a,"entities.pickNodes",{}),result:s.default.get(a,"result.pickNodes",[]),tree:r}},h=function(e,t){var a=e.getIn(["entities"]);return e.getIn(["result"]).map((function(e){return a.get(e)})).filter((function(e){return-1!==(e.get("nodeName")||"").indexOf(t)})).map((function(e){return e.get("nodeId")}))},g=function(e,t){var a=s.default.groupBy(t,"nodeTypeId");return(a[-1]||[]).map((function(t){return v(e,a,t.nodeId)}))},v=function e(t,a,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=t[n];if(!r)return{};var i=a[n]||[];o=[].concat(o,[n]),s=[].concat(s,[r.nodeName]);var d=i.map((function(n){return e(t,a,n.nodeId,o,s)}));return r.typeIds=o,r.typeNames=s,{key:n,title:r.nodeName||n,desc:r.nodeDesc||n,children:d}}},"./src/redux/reducers/dragDrop/utils.js":function(e,t,a){"use strict";t.__esModule=!0,t.updateValidateSubNodesStatus=function(e,t,a){var n=e.get("links").filter((function(e){return e.getIn(["from","nodeId"])===t})).valueSeq().map((function(t){var a=t.getIn(["to","nodeId"]),n=e.getIn(["nodes",a]);return!!(n&&n.get("status")>=i.FLOW_NODE_STATUS.CONF_OK)&&a})).filter(Boolean).toJS();if(0===_.size(n))return;var o=r.default.pickNode.getFuncHelper(a),s=d.validateNodesConfig(n,e.get("nodes"),e.get("links"),o);_.isArray(s)&&s.map((function(t){return e.hasIn(["nodes",t.nodeId])&&e.setIn(["nodes",t.nodeId,"status"],i.FLOW_NODE_STATUS.CONF_ERR)}))},t.updateSubNodesStatus=function(e,t){var a=d.getNodesInRearFlowByNodeId({nodeId:t,flowLinks:e.get("links")});_.isArray(a)&&a.map((function(t){return e.hasIn(["nodes",t])&&e.setIn(["nodes",t,"status"],i.FLOW_NODE_STATUS.CONF_WAIT)}))},t.updateFlowStatus=function(e,t){var a=d.getNodesInRearFlowByNodeId({nodeId:t,flowLinks:e.get("links")});a=(a||[]).filter((function(e){return e!==t})),_.isArray(a)&&a.map((function(t){e.getIn(["nodes",t])&&e.hasIn(["nodes",t])&&e.setIn(["nodes",t,"status"],i.FLOW_NODE_STATUS.CONF_OK)}))},t.dynamicUpdateNodeOutputPorts=function(e,t,a){for(var n=_.values(a.output||{}),s=t.get("ports").groupBy((function(e){return e.get("type")})),r=s.get("output")||(0,o.List)(),i=n.map((function(e){return e.variable&&{variable:e.variable,name:e.variable,type:e.type}})).filter(Boolean),d=(0,l.buildOutputPorts)(i),c=0;c<d.length;c++){var p=r.get(c);p&&_.set(d[c],"id",p.get("id"))}var f=_.size(d),m=r.count();if(m>f)for(var h=function(t){var a=r.getIn([f+t,"id"]),n=e.get("links").find((function(e){return e.getIn(["from","portId"])===a}));n&&e.removeIn(["links",n.get("id")])},g=0;g<m-f;g++)h(g);var v=d.map((function(t){var a=t.name,n=_.get(t,"properties.outputType","dataset");return _.set(t,"name",("model"===n?"\u6a21\u578b":"\u6570\u636e\u96c6")+"-"+a),_.set(t,"variable",t.variable),u(t.id,t.variable,e),{id:t.id,type:n,variable:t.variable||t.id}}));e.updateIn(["nodes",t.get("id")],(function(e){var t=s.get("input");return e.withMutations((function(e){e.set("ports",t.concat((0,o.fromJS)(d))),e.set("output",(0,o.fromJS)(v))}))}))};var n,o=a("./node_modules/immutable3/dist/immutable.js"),s=a("./src/redux/selectors/dragDrop/index.js"),r=(n=s)&&n.__esModule?n:{default:n},i=a("./src/module/dragDrop/constant.js"),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a("./src/module/dragDrop/flow_arrange/utils/diagramUtil.js")),l=a("./src/module/dragDrop/flow_arrange/utils/pickNodeUtil.js");var u=function(e,t,a){(a.get("links")||Map()||Map()).filter((function(t){return t.getIn(["from","portId"])===e})).valueSeq().toList().map((function(n){var s=n.getIn(["to","nodeId"]);a.updateIn(["nodes",s,"input"],(function(a){return(a||(0,o.List)()).map((function(a){return a.get("id")===e?a.set("variable",t):a}))}))}))}},"./src/redux/reducers/enumDic.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.enumDicActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({LOAD_ENUM_DIC:i.REQUEST_TYPE},"ENUM_DIC"),u=t.initialState=(0,s.fromJS)({}),c=(0,r.createActions)((0,i.getActionMap)(l)).enumDic;t.enumDicActions=c,t.default=(0,r.handleActions)(((n={})[l.LOAD_ENUM_DIC_SUCCESS]=function(e,t){return e.merge(t.payload)},n),u)},"./src/redux/reducers/externalModel.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.externalModelActions=t.initialState=t.types=void 0;var o=a("./node_modules/immutable3/dist/immutable.js"),s=l(a("./node_modules/lodash/lodash.js")),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=l(i);function l(e){return e&&e.__esModule?e:{default:e}}var u=t.types=(0,d.default)({VALIDATE_REPEAT:i.REQUEST_TYPE,GET_EXTERNAL_MODEL_LIST:i.REQUEST_TYPE,DELETE_EXTERNAL_MODEL:i.REQUEST_TYPE,SAVE_EXTERNAL_MODEL:i.REQUEST_TYPE,DEPLOY_EXTERNAL_MODEL:i.REQUEST_TYPE,COMMIT_TRAIN:i.REQUEST_TYPE,STOP_TRAIN:i.REQUEST_TYPE,RESET_EXTERNAL_MODEL:void 0},"EXTERNAL_MODEL"),c=t.initialState=(0,o.fromJS)({external_models:[],models_pagination:{limit:10,offset:1},external_model:{},validate_repeat:null}),p=(0,r.createActions)((0,i.getActionMap)(u)).externalModel;t.externalModelActions=p,t.default=(0,r.handleActions)(((n={})[u.VALIDATE_REPEAT_SUCCESS]=function(e,t){return e.merge({validate_repeat:t.payload&&t.payload.data&&t.payload.data.isRepeat,error:!1})},n[u.GET_EXTERNAL_MODEL_LIST_SUCCESS]=function(e,t){var a=t.payload&&t.payload.data||[];return s.default.isArray(a)&&s.default.map(a,(function(e){s.default.isString(e.uploadPath)&&(e.uploadPath=JSON.parse(e.uploadPath))})),e.merge({external_models:a,models_pagination:t.payload.pagination,error:!1})},n[u.SAVE_EXTERNAL_MODEL_SUCCESS]=function(e,t){return e.merge({external_model:t.payload&&t.payload.data||{},error:!1})},n[u.DEPLOY_EXTERNAL_MODEL_SUCCESS]=function(e,t){return e.merge({external_model:t.payload&&t.payload.data||{},error:!1})},n[u.RESET_EXTERNAL_MODEL]=function(e){return e.clear()},n),c)},"./src/redux/reducers/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./node_modules/redux-immutable/dist/index.js"),o=a("./node_modules/immutable3/dist/immutable.js"),s=a("./src/redux/reducers/app.js"),r=K(s),i=K(a("./src/redux/reducers/ui.js")),d=K(a("./src/redux/reducers/locale.js")),l=a("./src/redux/reducers/auth.js"),u=K(l),c=K(a("./src/redux/reducers/dashboard.js")),p=K(a("./src/redux/reducers/modelManage.js")),f=K(a("./src/redux/reducers/trainReport.js")),m=K(a("./src/redux/reducers/trainResult.js")),h=K(a("./src/redux/reducers/busiTypes.js")),g=K(a("./src/redux/reducers/enumDic.js")),v=K(a("./src/redux/reducers/indiSet.js")),_=K(a("./src/redux/reducers/dataSource.js")),y=K(a("./src/redux/reducers/modelBase.js")),b=K(a("./src/redux/reducers/dataBases.js")),x=K(a("./src/redux/reducers/dataDispose.js")),C=K(a("./src/redux/reducers/affiche.js")),j=K(a("./src/redux/reducers/sysManager/sysManager.js")),S=K(a("./src/redux/reducers/sysManager/userManager.js")),I=K(a("./src/redux/reducers/sysManager/rolesManager.js")),T=K(a("./src/redux/reducers/sysManager/userGroupsManager.js")),w=K(a("./src/redux/reducers/sysManager/appTopicBasesManager.js")),E=K(a("./src/redux/reducers/sysManager/ftpBasesManager.js")),D=K(a("./src/redux/reducers/sysManager/dataBasesManager.js")),M=K(a("./src/redux/reducers/sysManager/quotaTenantManager.js")),k=K(a("./src/redux/reducers/sysManager/platFormManager.js")),P=K(a("./src/redux/reducers/sysManager/annotationManager.js")),L=K(a("./src/redux/reducers/sysManager/switchManager.js")),N=K(a("./src/redux/reducers/externalModel.js")),A=K(a("./src/redux/reducers/devCenter.js")),R=K(a("./src/redux/reducers/sysManager/resTransfer.js")),F=K(a("./src/redux/reducers/dragDrop/index.js")),O=K(a("./src/redux/reducers/sysManager/interfaceManager.js")),V=K(a("./src/redux/reducers/sysManager/tagGroupsManager.js")),U=K(a("./src/redux/reducers/sysManager/clientAppManager.js")),B=K(a("./src/redux/reducers/sysManager/apiPermissionConfManager.js")),G=K(a("./src/redux/reducers/sysManager/sceneDemoManager.js")),z=K(a("./src/redux/reducers/checkName.js")),q=K(a("./src/redux/reducers/ocrManage.js"));function K(e){return e&&e.__esModule?e:{default:e}}var H=(0,o.fromJS)({app:s.initialState,auth:l.initialState}),Y=(0,n.combineReducers)({app:r.default,ui:i.default,modelBase:y.default,locale:d.default,auth:u.default,dashboard:c.default,modelManage:p.default,trainReport:f.default,trainResult:m.default,enumDic:g.default,indiSet:v.default,dataSource:_.default,busiTypes:h.default,dataBases:b.default,dataDispose:x.default,affiche:C.default,sysManager:j.default,userManager:S.default,rolesManager:I.default,userGroupsManager:T.default,appTopicBasesManager:w.default,ftpBasesManager:E.default,dataBasesManager:D.default,quotaTenantManager:M.default,externalModel:N.default,platFormManager:k.default,devCenter:A.default,resTransfer:R.default,interfaceManager:O.default,dragDrop:F.default,annotationManager:P.default,tagGroupsManager:V.default,clientAppManager:U.default,apiPermissionConfManager:B.default,switchManager:L.default,checkName:z.default,ocrManage:q.default,sceneDemoManager:G.default});t.default=function(e,t){return"AUTH/LOGOUT_SUCCESS"===t.type&&(e=H),Y(e,t)}},"./src/redux/reducers/indiSet.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.indiSetActions=t.initialState=t.types=void 0;var o=a("./node_modules/immutable3/dist/immutable.js"),s=u(a("./node_modules/lodash/lodash.js")),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=u(i),l=a("./node_modules/normalizr/dist/normalizr.es.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=t.types=(0,d.default)({LOAD_INDI_LIST:i.REQUEST_TYPE,CANCEL_EXECUTE:i.REQUEST_TYPE,RESET_CANCEL_EXECUTE:void 0,GET_KPI_TYPES_LIST:i.REQUEST_TYPE,GET_KPI_DATA_LIST:i.REQUEST_TYPE,GET_KPI_SET_LIST:i.REQUEST_TYPE,CHECK_KPI_NAME:i.REQUEST_TYPE,SUBMIT_KPI_DATA:i.REQUEST_TYPE,UPDATE_KPI_DATA:i.REQUEST_TYPE,DELETE_KPI_SET:i.REQUEST_TYPE,GET_REVIEW_RESULT:i.REQUEST_TYPE,FILTER_INDI_LIST:void 0,SEARCH_INDI:void 0,RESET_FILTER:void 0,RESET_ALL:void 0,RESET_CHECK_KPI_NAME:void 0,RESET_SUBMIT_KPI_DATA:void 0,RESET_KPI_SET_LIST:void 0,RESET_UPDATE_KPI_DATA:void 0,RESET_DELETE_KPI_SET:void 0,RESET_REVIEW_RESULT:void 0,GET_DIAGRAM_MAP:i.REQUEST_TYPE},"INDI_SET"),p=t.initialState=(0,o.fromJS)({kpiTypesData:null,kpiData:null,kpiSetData:[],checkCode:0,submitKpiMsg:{},updateKpiData:{},deleteKpiSet:{},reviewResult:[],diagramMap:"",cancelExecuteCode:0}),f=(0,r.createActions)((0,i.getActionMap)(c)).indiSet;t.indiSetActions=f,t.default=(0,r.handleActions)(((n={})[c.CANCEL_EXECUTE_SUCCESS]=function(e,t){return e.merge({cancelExecuteCode:t.payload.code,error:!1})},n[c.RESET_CANCEL_EXECUTE]=function(e){return e.merge({cancelExecuteCode:0})},n[c.GET_DIAGRAM_MAP_SUCCESS]=function(e,t){return e.merge({diagramMap:t.payload.data,error:!1})},n[c.RESET_REVIEW_RESULT]=function(e){return e.merge({reviewResult:[]})},n[c.GET_REVIEW_RESULT_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,reviewResult:t.payload.data})},n[c.RESET_DELETE_KPI_SET]=function(e){return e.merge({deleteKpiSet:{},reviewResult:[]})},n[c.RESET_UPDATE_KPI_DATA]=function(e){return e.merge({updateKpiData:{}})},n[c.UPDATE_KPI_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,updateKpiData:t.payload.data})},n[c.DELETE_KPI_SET_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,deleteKpiSet:t.payload})},n[c.SUBMIT_KPI_DATA_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitKpiMsg:t.payload})},n[c.SUBMIT_KPI_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitKpiMsg:t.payload})},n[c.RESET_SUBMIT_KPI_DATA]=function(e){return e.merge({submitKpiMsg:{}})},n[c.RESET_KPI_SET_LIST]=function(e){return e.merge({kpiSetData:[],reviewResult:[]})},n[c.CHECK_KPI_NAME_REQUEST]=function(e){return e.merge({checkCode:3})},n[c.CHECK_KPI_NAME_SUCCESS]=function(e,t){return e.merge({checkCode:t.payload.code,error:!1})},n[c.CHECK_KPI_NAME_FAILURE]=function(e,t){return e.merge({error:t.payload.message,checkCode:t.payload.code})},n[c.RESET_CHECK_KPI_NAME]=function(e){return e.merge({checkCode:0})},n[c.GET_KPI_SET_LIST_SUCCESS]=function(e,t){return e.merge({kpiSetData:t.payload.data,error:!1})},n[c.GET_KPI_DATA_LIST_SUCCESS]=function(e,t){return e.merge({kpiData:t.payload.data,error:!1})},n[c.GET_KPI_TYPES_LIST_SUCCESS]=function(e,t){return e.merge({kpiTypesData:t.payload.data,error:!1})},n[c.LOAD_INDI_LIST_SUCCESS]=function(e,t){var a=m(t.payload.data||[]);return e.merge(a)},n[c.FILTER_INDI_LIST]=function(e,t){var a=t.payload.classifyId;return-1!==a?e.set("indiSelector.filterResult",h(e,a)):e.delete("indiSelector.filterResult")},n[c.SEARCH_INDI]=function(e,t){var a=t.payload.text;return s.default.isEmpty(a)?e.delete("indiSelector.filterResult"):e.set("indiSelector.filterResult",g(e,s.default.trim(a)))},n[c.RESET_FILTER]=function(e){return e.delete("indiSelector.filterResult")},n[c.RESET_ALL]=function(e){return e.clear()},n),p);var m=function(e){var t=new l.schema.Entity("indi",void 0,{idAttribute:"id",processStrategy:function(e,t){return s.default.omit(s.default.merge(e,{classifyId:t.id}),["indiType","indiConf","dataId","kpiClass"])}}),a=new l.schema.Entity("classify",{indis:[t]},{idAttribute:"id",processStrategy:function(e){return s.default.omit(s.default.merge(e,{indis:e.nodes}),["val","nodes"])}}),n=(0,l.normalize)({classify:e},{classify:[a]}),o=s.default.reduce(e,(function(e,t){return e.concat(s.default.map(t.nodes,"id"))}),[]);return n.result=s.default.merge(n.result,{indi:o}),n},h=function(e,t){return e.getIn(["entities","classify",t,"indis"])},g=function(e,t){var a=e.getIn(["entities","indi"]),n=e.getIn(["result","indi"]);if(n&&a){var r=[];return n.map((function(e){var n=a.get(e);if(n){var o=n.get("text"),i=(n.get("spell")||"").replace(/\s/g,""),d=n.get("initials");(s.default.startsWith(d,t)||s.default.startsWith(i,t)||s.default.includes(o,t))&&r.push(e)}})),(0,o.List)(r)}}},"./src/redux/reducers/locale.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.localeActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/utils/constants.js");var d=((o=i)&&o.__esModule?o:{default:o}).default.DEFAULT_LOCALE,l=t.types={CHANGE_LOCALE:"locale/CHANGE_LOCALE"},u=t.initialState=(0,s.fromJS)({locale:d}),c=r.createActions.apply(void 0,Object.keys(l)).locale;t.localeActions=c,t.default=(0,r.handleActions)(((n={})[l.CHANGE_LOCALE]=function(e,t){return e.set("locale",(0,s.fromJS)(t.payload))},n),u)},"./src/redux/reducers/modelBase.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.modelBaseActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_MODEL_BASE_LIST:i.REQUEST_TYPE,GET_MODEL_BASE_INFO:i.REQUEST_TYPE,DELETE_MODEL_BASE:i.REQUEST_TYPE,DELETE_MODEL_BASE_FROM_STATE:void 0},"MODEL_BASE"),u=t.initialState=(0,s.fromJS)({modelBaseList:[],modelBaseInfo:{},handleCode:0}),c=(0,r.createActions)((0,i.getActionMap)(l)).modelBase;t.modelBaseActions=c,t.default=(0,r.handleActions)(((n={})[l.DELETE_MODEL_BASE_FROM_STATE]=function(e,t){return e.deleteIn(["modelBaseList",e.get("modelBaseList").findKey((function(e){return e.get("modelId")===t.payload.modelId}))])},n[l.DELETE_MODEL_BASE_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,handleCode:t.payload.code})},n[l.GET_MODEL_BASE_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,modelBaseInfo:t.payload.data})},n[l.GET_MODEL_BASE_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,modelBaseList:t.payload.data})},n[l.GET_MODEL_BASE_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,modelBaseList:t.payload.data})},n),u)},"./src/redux/reducers/modelManage.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.modelManageActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({PUBLISH_MODEL:i.REQUEST_TYPE,COPY_MODEL:i.REQUEST_TYPE,GET_MONITOR_DATA:i.REQUEST_TYPE,CHECK_MODEL_NAME:i.REQUEST_TYPE,GET_MODEL_LIST:i.REQUEST_TYPE,EXECUTE_MODEL:i.REQUEST_TYPE,CANCEL_MODEL:i.REQUEST_TYPE,DELETE_MODEL:i.REQUEST_TYPE,DELETE_MODEL_FROM_STATE:void 0,UPDATE_MODEL_FROM_STATE:void 0,RESET_MODEL_STATE:void 0,GET_MODULES_CONFIG_DATA:i.REQUEST_TYPE,SUBMIT_MODEL_DATA:i.REQUEST_TYPE,GET_CREATE_MODEL_ID:i.REQUEST_TYPE,RESET_MODEL_CONFIG:void 0,GET_MODEL_BASIC_INFO:i.REQUEST_TYPE,RESET_MODEL_LIST_DATA:void 0,RESET_MODEL_BASIC_INFO:void 0,GOTO_NOTEBOOK_SITE:i.REQUEST_TYPE,RESET_CHECK_MODEL_NAME:void 0,STOP_SYNC_MODELS:void 0,STOP_SYNC_MONITOR_DATA:void 0,RESET_CANCEL_MODEL:void 0,RESET_COPY_MODEL:void 0,SET_NOTEBOOK_URL:void 0,CLEAR_NOTEBOOK_URL:void 0},"MODEL_MANAGE"),u=t.initialState=(0,s.fromJS)({modelData:[],checkNameCode:0,modulesConfigData:{},submitModelData:{},createModelId:"",modelBasicInfo:{},modelTaskResult:{},modelTrainResult:[],modelTrainProcess:[],monitorData:{},cancelModel:{},copyCode:{},publishCode:{},notebook_url:null}),c=(0,r.createActions)((0,i.getActionMap)(l)).modelManage;t.modelManageActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_MONITOR_DATA_SUCCESS]=function(e,t){return e.merge({monitorData:t.payload.data||[]})},n[l.GET_MODEL_LIST_SUCCESS]=function(e,t){return e.merge({modelData:t.payload.data||[]})},n[l.DELETE_MODEL_FROM_STATE]=function(e,t){return e.deleteIn(["modelData",e.get("modelData").findKey((function(e){return e.get("modelId")===t.payload.modelId}))])},n[l.UPDATE_MODEL_FROM_STATE]=function(e,t){var a=t.payload,n=a.modelId,o=a.status;return e.updateIn(["modelData",e.get("modelData").findKey((function(e){return e.get("modelId")===n}))],(function(e){return e.set("status",o)}))},n[l.COPY_MODEL_SUCCESS]=function(e,t){return e.merge({copyCode:{code:t.payload.code,message:t.payload.message}})},n[l.PUBLISH_MODEL_SUCCESS]=function(e,t){return e.merge({publishCode:t.payload})},n[l.RESET_PUBLISH_MODEL]=function(e){return e.merge({publishCode:{}})},n[l.RESET_COPY_MODEL]=function(e){return e.merge({copyCode:{}})},n[l.CHECK_MODEL_NAME_REQUEST]=function(e){return e.merge({checkNameCode:3})},n[l.CANCEL_MODEL_SUCCESS]=function(e,t){return e.merge({cancelModel:{code:t.payload.code,message:t.payload.message},error:!1})},n[l.RESET_CANCEL_MODEL]=function(e){return e.merge({cancelModel:{}})},n[l.CHECK_MODEL_NAME_SUCCESS]=function(e,t){return e.merge({checkNameCode:t.payload.code,error:!1})},n[l.CHECK_MODEL_NAME_FAILURE]=function(e,t){return e.merge({error:t.payload.message,checkNameCode:t.payload.code})},n[l.RESET_CHECK_MODEL_NAME]=function(e){return e.merge({checkNameCode:0})},n[l.GET_UPDATA_MODELS_DATA_REQUEST]=function(e){return e.merge({loadding:!0,error:null})},n[l.RESET_MODEL_STATE]=function(e){return e.clear()},n[l.GET_MODULES_CONFIG_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,modulesConfigData:t.payload.data})},n[l.SUBMIT_MODEL_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitModelData:t.payload.data})},n[l.SUBMIT_MODEL_DATA_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitModelData:t.payload.data})},n[l.RESET_MODEL_CONFIG]=function(e){return e.merge({modulesConfigData:{},modelBasicInfo:{},submitModelData:{}})},n[l.GET_CREATE_MODEL_ID_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,createModelId:t.payload.data})},n[l.GET_MODEL_BASIC_INFO_SUCCESS]=function(e,t){return e.merge({modelBasicInfo:t.payload.data})},n[l.RESET_MODEL_LIST_DATA]=function(e){return e.merge({modelData:{}})},n[l.RESET_MODEL_BASIC_INFO]=function(e){return e.merge({modelBasicInfo:{}})},n[l.SET_NOTEBOOK_URL]=function(e,t){return e.merge({notebook_url:t.payload})},n[l.CLEAR_NOTEBOOK_URL]=function(e){return e.merge({notebook_url:null})},n),u)},"./src/redux/reducers/ocrManage.js":function(e,t,a){"use strict";t.__esModule=!0,t.ocrActions=t.initialState=t.types=void 0;var n,o=l(a("./node_modules/babel-runtime/helpers/extends.js")),s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=l(i);function l(e){return e&&e.__esModule?e:{default:e}}var u=t.types=(0,d.default)({GET_OCR_TEMPLATE_LIST:i.REQUEST_TYPE,GET_OCR_TEMPLATE_TYPES:i.REQUEST_TYPE,GET_OCR_TEMPLATE_INFO:i.REQUEST_TYPE,GET_ADJUST_IMAGE_INFO:i.REQUEST_TYPE,GET_JSON_VIEW_INFO:i.REQUEST_TYPE,DELETE_OCR_TEMPLATE:i.REQUEST_TYPE,RECOGNIZE_OCR_TEMPLATE_TEST:i.REQUEST_TYPE,CANCEL_OCR_TEMPLATE_PUBLISH:i.REQUEST_TYPE,SUBMIT_OCR_TEMPLATE_INFO:i.REQUEST_TYPE,UPLOAD_OCR_TEMPLATE_IMAGE:i.REQUEST_TYPE,GET_IMAGE_RECOGNIZE_TEXT:i.REQUEST_TYPE,GET_IMAGE_RECOGNIZE_INFO:i.REQUEST_TYPE,PUBLISH_OCR_TEMPLATE:i.REQUEST_TYPE,RESET_IMAGE_ID:void 0,RESET_SUBMIT_OCR:void 0,RESET_OCR_INFO:void 0,RESET_DELETE_OCR_TEMPLATE:void 0,RESET_RECOGNIZE_TEXT:void 0,RESET_RECOGNIZE_EXAMPLE_JSON:void 0,RESET_CANCEL_OCR_TEMPLATE_PUBLISH_STATUS:void 0,RESET_ALL_DESTROY:void 0},"OCR_MANAGE"),c=t.initialState=(0,s.fromJS)({ocrTemplateList:[],ocrTemplateTypes:[],ocrTemplateInfo:{},templateExampleJson:{},templateTestStatus:{},imgInfo:{},adjustedInfo:{},isSubmitted:!1,ocrTemplateDelete:{},publishInfo:"",recognizeText:"",templateTestCode:""}),p=(0,r.createActions)((0,i.getActionMap)(u)).ocrManage;t.ocrActions=p;var f=(0,r.handleActions)(((n={})[u.GET_OCR_TEMPLATE_LIST_SUCCESS]=function(e,t){return e.merge({error:!1,ocrTemplateList:t.payload.data})},n[u.GET_OCR_TEMPLATE_TYPES_SUCCESS]=function(e,t){return e.merge({error:!1,ocrTemplateTypes:t.payload.data})},n[u.GET_OCR_TEMPLATE_INFO_SUCCESS]=function(e,t){return e.merge({error:!1,ocrTemplateInfo:t.payload.data})},n[u.GET_ADJUST_IMAGE_INFO_SUCCESS]=function(e,t){return e.merge({error:!1,adjustedInfo:t.payload.data})},n[u.GET_JSON_VIEW_INFO_SUCCESS]=function(e,t){return e.merge({error:!1,templateExampleJson:t.payload.data})},n[u.DELETE_OCR_TEMPLATE_SUCCESS]=function(e,t){return e.merge({error:!1,ocrTemplateDelete:t.payload,ocrTemplateList:e.get("ocrTemplateList").toJS().filter((function(e){return e.templateId!==t.payload.data}))})},n[u.RESET_DELETE_OCR_TEMPLATE]=function(e){return e.merge({ocrTemplateDelete:{}})},n[u.CANCEL_OCR_TEMPLATE_PUBLISH_SUCCESS]=function(e,t){return e.merge({error:!1,ocrTemplateList:[].concat(e.get("ocrTemplateList").toJS().map((function(e){return e.templateId===t.payload.data?(0,o.default)({},e,{templateStatus:1}):e})))})},n[u.RESET_CANCEL_OCR_TEMPLATE_PUBLISH_STATUS]=function(e){return e.merge({error:!1,publishInfo:""})},n[u.RECOGNIZE_OCR_TEMPLATE_TEST_SUCCESS]=function(e,t){return e.merge({templateTestStatus:{code:t.payload.code,message:t.payload.message,data:t.payload},templateExampleJson:t.payload.data})},n[u.PUBLISH_OCR_TEMPLATE_SUCCESS]=function(e,t){return e.merge({error:!1,publishInfo:t.payload.data})},n[u.UPLOAD_OCR_TEMPLATE_IMAGE_SUCCESS]=function(e,t){return e.merge({error:!1,imgInfo:t.payload.data})},n[u.GET_IMAGE_RECOGNIZE_TEXT_SUCCESS]=function(e,t){return e.merge({error:!1,recognizeText:t.payload.data+" "})},n[u.SUBMIT_OCR_TEMPLATE_INFO_REQUEST]=function(e){return e.merge({isSubmitted:!1})},n[u.SUBMIT_OCR_TEMPLATE_INFO_SUCCESS]=function(e,t){return e.merge({error:!1,ocrTemplateInfo:t.payload.data,isSubmitted:!0})},n[u.SUBMIT_OCR_TEMPLATE_INFO_FAILURE]=function(e,t){return e.merge({error:!0,ocrTemplateInfo:t.payload.data})},n[u.RESET_IMAGE_ID]=function(e){return e.merge({imgInfo:{}})},n[u.RESET_SUBMIT_OCR]=function(e){return e.merge({ocrTemplateInfo:{}})},n[u.RESET_OCR_INFO]=function(e){return e.merge({ocrTemplateInfo:{}})},n[u.RESET_RECOGNIZE_TEXT]=function(e){return e.merge({recognizeText:""})},n[u.RESET_RECOGNIZE_EXAMPLE_JSON]=function(e){return e.merge({templateExampleJson:{},templateTestStatus:{}})},n[u.RESET_ALL_DESTROY]=function(e){return e.merge({ocrTemplateList:[],ocrTemplateTypes:[],ocrTemplateInfo:{},templateExampleJson:{}})},n),c);t.default=f},"./src/redux/reducers/sysManager/annotationManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.annotationActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_ANNOTATION_LIST:i.REQUEST_TYPE,SUBMIT_ANNOTATION_DATA:i.REQUEST_TYPE,GET_ANNOTATION_INFO:i.REQUEST_TYPE,DELETE_ANNOTATION:i.REQUEST_TYPE,RESET_SUBMIT_ANNOTATION_DATA:void 0,RESET_ANNOTATION_INFO:void 0,RESET_DELETE_ANNOTATION:void 0,PUT_HANDLE_STATUS:i.REQUEST_TYPE,SET_OPERATE_ANNOTATION_MASK_ID:void 0,PUT_APPROVAL_STATUS:i.REQUEST_TYPE,PUT_APPROVAL_FAIL_STATUS:i.REQUEST_TYPE,PUBLISH_ANNOTATION_TASK:i.REQUEST_TYPE,SUBMIT_ANNOTATION_TASK:i.REQUEST_TYPE},"ANNOTATION_MANAGER"),u=t.initialState=(0,s.fromJS)({annotationList:{data:[],pagination:{total:0,limit:0,offset:0}},checkNameCode:0,submitAnnotationData:{},annotationInfo:{},annotationDelete:{},handleInfo:{code:0,message:""},operateMaskId:""}),c=(0,r.createActions)((0,i.getActionMap)(l)).annotationManager;t.annotationActions=c,t.default=(0,r.handleActions)(((n={})[l.PUT_HANDLE_STATUS_SUCCESS]=function(e){return e.merge({handleInfo:action.payload})},n[l.RESET_PUT_HANDLE_STATUS]=function(e){return e.merge({handleInfo:{code:0,message:""}})},n[l.GET_ANNOTATION_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,annotationList:t.payload})},n[l.SUBMIT_ANNOTATION_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitAnnotationData:t.payload})},n[l.SUBMIT_ANNOTATION_DATA_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitAnnotationData:t.payload})},n[l.RESET_SUBMIT_ANNOTATION_DATA]=function(e){return e.merge({submitAnnotationData:{}})},n[l.GET_ANNOTATION_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,annotationInfo:t.payload.data})},n[l.RESET_ANNOTATION_INFO]=function(e){return e.merge({annotationInfo:{}})},n[l.DELETE_ANNOTATION_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,annotationDelete:t.payload})},n[l.RESET_DELETE_ANNOTATION]=function(e){return e.merge({annotationDelete:{}})},n[l.SET_OPERATE_ANNOTATION_MASK_ID]=function(e,t){return e.merge({operateMaskId:t.payload})},n[l.PUT_APPROVAL_STATUS_SUCCESS]=function(e,t){return e.merge({handleInfo:t.payload})},n[l.PUT_APPROVAL_STATUS_FAILURE]=function(e,t){return e.merge({handleInfo:t.payload})},n[l.PUT_APPROVAL_FAIL_STATUS_SUCCESS]=function(e,t){return e.merge({handleInfo:t.payload})},n[l.PUT_APPROVAL_FAIL_STATUS_FAILURE]=function(e,t){return e.merge({handleInfo:t.payload})},n[l.PUBLISH_ANNOTATION_TASK_SUCCESS]=function(e,t){return e.merge({handleInfo:t.payload})},n[l.PUBLISH_ANNOTATION_TASK_FAILURE]=function(e,t){return e.merge({handleInfo:t.payload})},n[l.SUBMIT_ANNOTATION_TASK_SUCCESS]=function(e,t){return e.merge({handleInfo:t.payload})},n[l.SUBMIT_ANNOTATION_TASK_FAILURE]=function(e,t){return e.merge({handleInfo:t.payload})},n),u)},"./src/redux/reducers/sysManager/apiPermissionConfManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.apiPermissionConfActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({BINDING_CLIENT_TO_API:i.REQUEST_TYPE,GET_API_PERMISSION_CONF_LOAD:i.REQUEST_TYPE,GET_API_PERMISSION_CONF_LIST:i.REQUEST_TYPE,GET_API_PERMISSION_CONF_INFO:i.REQUEST_TYPE,DELETE_API_PERMISSION_CONF:i.REQUEST_TYPE,SUBMIT_API_PERMISSION_CONF:i.REQUEST_TYPE,RESET_SUBMIT_API_PERMISSION_CONF:void 0,RESET_API_PERMISSION_CONF_INFO:void 0,RESET_BINDING_CLIENT_TO_API:void 0,RESET_DELETE_API_PERMISSION_CONF:void 0,RESET_ALL_DESTROY:void 0},"API_PERMISSION_CONF_MANAGER"),u=t.initialState=(0,s.fromJS)({apiPermissionConfLoad:[],apiPermissionConfList:{data:[],pagination:{total:0,limit:0,offset:0}},apiPermissionConfSubmit:{},apiPermissionConfInfo:{},apiPermissionConfDelete:{},bindingClientToApi:{}}),c=(0,r.createActions)((0,i.getActionMap)(l)).apiPermissionConfManager;t.apiPermissionConfActions=c,t.default=(0,r.handleActions)(((n={})[l.BINDING_CLIENT_TO_API_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,bindingClientToApi:t.payload})},n[l.RESET_BINDING_CLIENT_TO_API]=function(e){return e.merge({bindingClientToApi:{}})},n[l.GET_API_PERMISSION_CONF_LOAD_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,apiPermissionConfLoad:t.payload.data})},n[l.GET_API_PERMISSION_CONF_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,apiPermissionConfList:t.payload})},n[l.DELETE_API_PERMISSION_CONF_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,apiPermissionConfDelete:t.payload})},n[l.RESET_DELETE_API_PERMISSION_CONF]=function(e){return e.merge({apiPermissionConfDelete:{}})},n[l.SUBMIT_API_PERMISSION_CONF_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,apiPermissionConfSubmit:t.payload})},n[l.SUBMIT_API_PERMISSION_CONF_FAILURE]=function(e,t){return e.merge({error:t.payload.message,apiPermissionConfSubmit:t.payload})},n[l.RESET_SUBMIT_API_PERMISSION_CONF]=function(e){return e.merge({apiPermissionConfSubmit:{}})},n[l.GET_API_PERMISSION_CONF_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,apiPermissionConfInfo:t.payload.data})},n[l.RESET_API_PERMISSION_CONF_INFO]=function(e){return e.merge({apiPermissionConfInfo:{}})},n[l.RESET_ALL_DESTROY]=function(e){return e.merge({apiPermissionConfList:{data:[],pagination:{total:0,limit:0,offset:0}},apiPermissionConfSubmit:{},apiPermissionConfInfo:{},apiPermissionConfDelete:{}})},n),u)},"./src/redux/reducers/sysManager/appTopicBasesManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.appTopicBasesActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_APP_TOPIC_BASES_LIST:i.REQUEST_TYPE,SUBMIT_APP_TOPIC_BASES_DATA:i.REQUEST_TYPE,GET_APP_TOPIC_BASES_INFO:i.REQUEST_TYPE,DELETE_APP_TOPIC_BASES:i.REQUEST_TYPE,CHECK_APP_TOPIC_BASES_NAME:i.REQUEST_TYPE,RESET_SUBMIT_APP_TOPIC_BASES_DATA:void 0,RESET_APP_TOPIC_BASES_INFO:void 0,RESET_DELETE_APP_TOPIC_BASES:void 0,RESET_CHECK_APP_TOPIC_BASES_NAME:void 0},"APP_TOPIC_BASES_MANAGER"),u=t.initialState=(0,s.fromJS)({appTopicBasesList:[],checkNameCode:0,submitAppTopicBasesData:{},appTopicBasesInfo:{},delAppTopicBasesCode:0,appTopicBasesPagination:{total:0,limit:0,offset:0}}),c=(0,r.createActions)((0,i.getActionMap)(l)).appTopicBasesManager;t.appTopicBasesActions=c,t.default=(0,r.handleActions)(((n={})[l.CHECK_APP_TOPIC_BASES_NAME_REQUEST]=function(e){return e.merge({checkNameCode:3})},n[l.CHECK_APP_TOPIC_BASES_NAME_SUCCESS]=function(e,t){return e.merge({checkNameCode:t.payload.data.isRepeat,error:!1})},n[l.RESET_APP_TOPIC_BASES_MODEL_NAME]=function(e){return e.merge({checkNameCode:0})},n[l.GET_APP_TOPIC_BASES_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,appTopicBasesPagination:t.payload.pagination,appTopicBasesList:t.payload.data})},n[l.SUBMIT_APP_TOPIC_BASES_DATA_FAILURE]=function(e,t){return e.merge({submitAppTopicBasesData:t.payload})},n[l.SUBMIT_APP_TOPIC_BASES_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitAppTopicBasesData:t.payload})},n[l.RESET_SUBMIT_APP_TOPIC_BASES_DATA]=function(e){return e.merge({submitAppTopicBasesData:{}})},n[l.GET_APP_TOPIC_BASES_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,appTopicBasesInfo:t.payload.data})},n[l.RESET_APP_TOPIC_BASES_INFO]=function(e){return e.merge({appTopicBasesInfo:{}})},n[l.DELETE_APP_TOPIC_BASES_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delAppTopicBasesCode:t.payload.code})},n[l.RESET_DELETE_APP_TOPIC_BASES]=function(e){return e.merge({delAppTopicBasesCode:0})},n),u)},"./src/redux/reducers/sysManager/clientAppManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.clientAppActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_CLIENT_APP_LOAD:i.REQUEST_TYPE,GET_CLIENT_APP_LIST:i.REQUEST_TYPE,GET_CLIENT_APP_INFO:i.REQUEST_TYPE,DELETE_CLIENT_APP:i.REQUEST_TYPE,SUBMIT_CLIENT_APP:i.REQUEST_TYPE,BINDING_API_TO_CLIENT:i.REQUEST_TYPE,RESET_SUBMIT_CLIENT_APP:void 0,RESET_CLIENT_APP_INFO:void 0,RESET_DELETE_CLIENT_APP:void 0,RESET_BINDING_API_TO_CLIENT:void 0,RESET_ALL_DESTROY:void 0},"CLIENT_APP_MANAGER"),u=t.initialState=(0,s.fromJS)({clientAppLoad:[],clientAppList:{data:[],pagination:{total:0,limit:0,offset:0}},clientAppSubmit:{},clientAppInfo:{},clientAppDelete:{},bindingApiToclient:{}}),c=(0,r.createActions)((0,i.getActionMap)(l)).clientAppManager;t.clientAppActions=c,t.default=(0,r.handleActions)(((n={})[l.BINDING_API_TO_CLIENT_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,bindingApiToclient:t.payload})},n[l.RESET_BINDING_API_TO_CLIENT]=function(e){return e.merge({bindingApiToclient:{}})},n[l.RESET_BINDING_API_TO_CLIENT]=function(e){return e.merge({bindingApiToclient:{}})},n[l.GET_CLIENT_APP_LOAD_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,clientAppLoad:t.payload.data})},n[l.GET_CLIENT_APP_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,clientAppList:t.payload})},n[l.DELETE_CLIENT_APP_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,clientAppDelete:t.payload})},n[l.RESET_DELETE_CLIENT_APP]=function(e){return e.merge({clientAppDelete:{}})},n[l.SUBMIT_CLIENT_APP_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,clientAppSubmit:t.payload})},n[l.SUBMIT_CLIENT_APP_FAILURE]=function(e,t){return e.merge({error:t.payload.message,clientAppSubmit:t.payload})},n[l.RESET_SUBMIT_CLIENT_APP]=function(e){return e.merge({clientAppSubmit:{}})},n[l.GET_CLIENT_APP_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,clientAppInfo:t.payload.data})},n[l.RESET_CLIENT_APP_INFO]=function(e){return e.merge({clientAppInfo:{}})},n[l.RESET_ALL_DESTROY]=function(e){return e.merge({clientAppList:{data:[],pagination:{total:0,limit:0,offset:0}},clientAppSubmit:{},clientAppInfo:{},clientAppDelete:{},bindingApiToclient:{}})},n),u)},"./src/redux/reducers/sysManager/dataBasesManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.dataBasesActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_DATA_DACP_LIST:i.REQUEST_TYPE,SYNC_DACP_DATA:i.REQUEST_TYPE,TEST_CONNECT_DATA:i.REQUEST_TYPE,GET_DATA_BASES_LIST:i.REQUEST_TYPE,SUBMIT_DATA_BASES_DATA:i.REQUEST_TYPE,GET_DATA_BASES_INFO:i.REQUEST_TYPE,DELETE_DATA_BASES:i.REQUEST_TYPE,RESET_SUBMIT_DATA_BASES_DATA:void 0,RESET_DATA_BASES_INFO:void 0,RESET_DELETE_DATA_BASES:void 0,RESET_TEST_CONNECT_DATA:void 0,RESET_SYNC_DACP_DATA:void 0},"DATA_BASES_MANAGER"),u=t.initialState=(0,s.fromJS)({syncDacpData:0,dataDacpList:[],dataBasesList:[],checkNameCode:0,submitDataBasesData:{},dataBasesInfo:{},delDataBasesCode:0,dataBasesPagination:{total:0,limit:0,offset:0},testConnectDataCode:0}),c=(0,r.createActions)((0,i.getActionMap)(l)).dataBasesManager;t.dataBasesActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_DATA_DACP_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,dataDacpList:t.payload.data})},n[l.SYNC_DACP_DATA_SUCCESS]=function(e){return e.merge({syncDacpData:1})},n[l.RESET_SYNC_DACP_DATA]=function(e){return e.merge({syncDacpData:0})},n[l.TEST_CONNECT_DATA_SUCCESS]=function(e,t){return e.merge({testConnectDataCode:t.payload.code})},n[l.TEST_CONNECT_DATA_FAILURE]=function(e,t){return e.merge({testConnectDataCode:t.payload.code})},n[l.RESET_DATA_BASES_MODEL_NAME]=function(e){return e.merge({checkNameCode:0})},n[l.RESET_TEST_CONNECT_DATA]=function(e){return e.merge({testConnectDataCode:0})},n[l.GET_DATA_BASES_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,dataBasesPagination:t.payload.data?{total:t.payload.data.total,limit:t.payload.data.pageSize,offset:t.payload.data.pageNum}:{total:0,limit:0,offset:0},dataBasesList:t.payload.data?t.payload.data.list:[]})},n[l.SUBMIT_DATA_BASES_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitDataBasesData:t.payload})},n[l.SUBMIT_DATA_BASES_DATA_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitDataBasesData:t.payload})},n[l.RESET_SUBMIT_DATA_BASES_DATA]=function(e){return e.merge({submitDataBasesData:{}})},n[l.GET_DATA_BASES_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,dataBasesInfo:t.payload.data})},n[l.RESET_DATA_BASES_INFO]=function(e){return e.merge({dataBasesInfo:{}})},n[l.DELETE_DATA_BASES_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delDataBasesCode:t.payload.code})},n[l.RESET_DELETE_DATA_BASES]=function(e){return e.merge({delDataBasesCode:0})},n),u)},"./src/redux/reducers/sysManager/ftpBasesManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.ftpBasesActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_FTP_FILE:i.REQUEST_TYPE,TEST_CONNECT_FTP:i.REQUEST_TYPE,GET_FTP_BASES_LIST:i.REQUEST_TYPE,GET_FTP_ARRAY:i.REQUEST_TYPE,SUBMIT_FTP_BASES_DATA:i.REQUEST_TYPE,GET_FTP_BASES_INFO:i.REQUEST_TYPE,DELETE_FTP_BASES:i.REQUEST_TYPE,CHECK_FTP_BASES_NAME:i.REQUEST_TYPE,RESET_SUBMIT_FTP_BASES_DATA:void 0,RESET_FTP_BASES_INFO:void 0,RESET_DELETE_FTP_BASES:void 0,RESET_CHECK_FTP_BASES_NAME:void 0,RESET_TEST_CONNECT_FTP:void 0,RESET_FTP_FILE:void 0},"FTP_BASES_MANAGER"),u=t.initialState=(0,s.fromJS)({ftpFiles:[],ftpBasesList:[],ftpBasesArray:[],checkNameCode:0,submitFtpBasesData:{},ftpBasesInfo:{},delFtpBasesCode:0,ftpBasesPagination:{total:0,limit:0,offset:0},testConnectFtpCode:0}),c=(0,r.createActions)((0,i.getActionMap)(l)).ftpBasesManager;t.ftpBasesActions=c,t.default=(0,r.handleActions)(((n={})[l.TEST_CONNECT_FTP_SUCCESS]=function(e,t){return e.merge({testConnectFtpCode:t.payload.code})},n[l.TEST_CONNECT_FTP_FAILURE]=function(e,t){return e.merge({testConnectFtpCode:t.payload.code})},n[l.GET_FTP_FILE_FAILURE]=function(e,t){return e.merge({error:t.payload.message,ftpFiles:[]})},n[l.GET_FTP_FILE_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,ftpFiles:t.payload.data})},n[l.RESET_FTP_FILE]=function(e){return e.merge({ftpFiles:[]})},n[l.CHECK_FTP_BASES_NAME_REQUEST]=function(e){return e.merge({checkNameCode:3})},n[l.CHECK_FTP_BASES_NAME_SUCCESS]=function(e,t){return e.merge({checkNameCode:t.payload.data.isRepeat,error:!1})},n[l.RESET_FTP_BASES_MODEL_NAME]=function(e){return e.merge({checkNameCode:0})},n[l.RESET_TEST_CONNECT_FTP]=function(e){return e.merge({testConnectFtpCode:0})},n[l.GET_FTP_ARRAY_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,ftpBasesArray:t.payload.data})},n[l.GET_FTP_BASES_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,ftpBasesPagination:t.payload.data?{total:t.payload.data.total,limit:t.payload.data.pageSize,offset:t.payload.data.pageNum}:{total:0,limit:0,offset:0},ftpBasesList:t.payload.data?t.payload.data.list:[]})},n[l.SUBMIT_FTP_BASES_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitFtpBasesData:t.payload})},n[l.SUBMIT_FTP_BASES_DATA_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitFtpBasesData:t.payload})},n[l.RESET_SUBMIT_FTP_BASES_DATA]=function(e){return e.merge({submitFtpBasesData:{}})},n[l.GET_FTP_BASES_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,ftpBasesInfo:t.payload.data})},n[l.RESET_FTP_BASES_INFO]=function(e){return e.merge({ftpBasesInfo:{}})},n[l.DELETE_FTP_BASES_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delFtpBasesCode:t.payload.code})},n[l.RESET_DELETE_FTP_BASES]=function(e){return e.merge({delFtpBasesCode:0})},n),u)},"./src/redux/reducers/sysManager/interfaceManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.openApiActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_OPEN_API_LIST:i.REQUEST_TYPE,LOAD_OPEN_API_TREE:i.REQUEST_TYPE,GET_OPEN_API_INFO:i.REQUEST_TYPE,GET_OPEN_API_GROUP_DATA:i.REQUEST_TYPE,SET_SELECTED_OPEN_API_GROUP_ID:void 0,GET_API_ARRAY_LIST:i.REQUEST_TYPE,BIN_DING_API_GROUP_DATA:i.REQUEST_TYPE,RESET_BIN_DING_API_GROUP_DATA:void 0},"OPEN_API_MANAGER"),u=t.initialState=(0,s.fromJS)({binDingApiGroupData:{},loadOpenApiTree:[],openApiList:[],openApiArray:[],openApiPagination:{total:0,limit:1,offset:10},apiGroupData:[],openApiInfo:{},selectedOpenApiGroupId:""}),c=(0,r.createActions)((0,i.getActionMap)(l)).openApiManager;function p(e){var t=e.filter((function(e){return["all",null].includes(e.groupPid)}));return function t(a,n){return n.map((function(n){n.key=n.groupId,n.value=n.groupId,n.title=n.groupName,n.children=a.filter((function(e){return e.groupPid==n.groupId})),n.children&&n.children.length>0&&n.children.map((function(n){n.key=n.groupId,n.value=n.groupId,n.title=n.groupName,n.children=a.filter((function(e){return e.groupPid==n.groupId})),t(e,n.children)}))}))}(e,t),t}t.openApiActions=c,t.default=(0,r.handleActions)(((n={})[l.LOAD_OPEN_API_TREE_SUCCESS]=function(e,t){return e.merge({loadOpenApiTree:t.payload.data})},n[l.BIN_DING_API_GROUP_DATA_SUCCESS]=function(e,t){return e.merge({binDingApiGroupData:t.payload})},n[l.RESET_BIN_DING_API_GROUP_DATA]=function(e){return e.merge({binDingApiGroupData:{},openApiArray:[]})},n[l.GET_API_ARRAY_LIST_SUCCESS]=function(e,t){return e.merge({openApiArray:t.payload.data})},n[l.GET_OPEN_API_LIST_SUCCESS]=function(e,t){return e.merge({openApiList:t.payload.data,openApiPagination:t.payload.pagination})},n[l.GET_OPEN_API_GROUP_DATA_SUCCESS]=function(e,t){return e.merge({apiGroupData:p(t.payload.data)})},n[l.GET_OPEN_API_INFO_SUCCESS]=function(e,t){return e.merge({openApiInfo:t.payload.data})},n[l.SET_SELECTED_OPEN_API_GROUP_ID]=function(e,t){return e.merge({selectedOpenApiGroupId:t.payload.data})},n),u)},"./src/redux/reducers/sysManager/platFormManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.platFormActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_PLAT_FORM_FEATURES:i.REQUEST_TYPE,GET_PLAT_FORM_FEATURES_CONFIG:i.REQUEST_TYPE,GET_PLAT_FORM_SOLUTIONS:i.REQUEST_TYPE,GET_PICTURE_REGISTER:i.REQUEST_TYPE,GET_PICTURE_RECOGNITION:i.REQUEST_TYPE,SET_REQUEST_CONFIG:void 0,RESET_PICTURE:void 0,RESET_PLAT_FORM_FEATURES_CONFIG:void 0,RECOGNITION:i.REQUEST_TYPE,RESET_RECOGNITION:void 0},"PLAT_FORM_MANAGER"),u=t.initialState=(0,s.fromJS)({platFormFeaturesData:[],platFormFeaturesConfig:{},platFormSolutionsData:[],pictureRegisterData:{},pictureRecognitionData:{},recognitionData:{},requestConfig:{}}),c=(0,r.createActions)((0,i.getActionMap)(l)).platFormManager;t.platFormActions=c,t.default=(0,r.handleActions)(((n={})[l.SET_REQUEST_CONFIG]=function(e,t){return e.merge({requestConfig:t.payload,error:!1})},n[l.RECOGNITION_SUCCESS]=function(e,t){return e.merge({recognitionData:t.payload.data.body,message:"",error:!1})},n[l.RESET_RECOGNITION]=function(e){return e.merge({recognitionData:{}})},n[l.RESET_PLAT_FORM_FEATURES_CONFIG]=function(e){return e.merge({platFormFeaturesConfig:{}})},n[l.RESET_PICTURE]=function(e){return e.merge({pictureRegisterData:{},pictureRecognitionData:{}})},n[l.GET_PICTURE_REGISTER_SUCCESS]=function(e,t){return e.merge({pictureRegisterData:t.payload.data,error:!1})},n[l.GET_PICTURE_RECOGNITION_SUCCESS]=function(e,t){return e.merge({pictureRecognitionData:t.payload.data,error:!1})},n[l.GET_PLAT_FORM_FEATURES_SUCCESS]=function(e,t){return e.merge({platFormFeaturesData:t.payload.data,error:!1})},n[l.GET_PLAT_FORM_FEATURES_CONFIG_SUCCESS]=function(e,t){return e.merge({platFormFeaturesConfig:t.payload.data,error:!1})},n[l.GET_PLAT_FORM_SOLUTIONS_SUCCESS]=function(e,t){return e.merge({platFormSolutionsData:t.payload.data,error:!1})},n),u)},"./src/redux/reducers/sysManager/quotaTenantManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.quotaTenantActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_SYS_QUOTA_TENANT_LIST:i.REQUEST_TYPE,GET_QUOTA_TENANT_INFO:i.REQUEST_TYPE,GET_QUOTA_TENANT_DOWN:i.REQUEST_TYPE,SUBMIT_QUOTA_TENANT_INFO:i.REQUEST_TYPE,RESET_QUOTA_TENANT_INFO:void 0,RESET_SUBMIT_QUOTA_TENANT_INFO:void 0,DELETE_QUOTA_TENANT:i.REQUEST_TYPE,RESET_DELETE_QUOTA_TENANT:void 0,SUBMIT_TENANT_USER_DATA:i.REQUEST_TYPE,RESET_TENANT_RELATION_DATA:void 0},"QUOTA_TENANT_MANAGER"),u=t.initialState=(0,s.fromJS)({sysQuotaTenantDown:[],sysQuotaTenantList:[],quotaTenantInfoCode:0,quotaTenantInfo:{},submitQuotaTenantInfo:{},delQuotaTenantCode:0,quotaTenantPagination:{total:0,limit:0,offset:0},quotaTenantRelationCode:0}),c=(0,r.createActions)((0,i.getActionMap)(l)).quotaTenantManager;t.quotaTenantActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_QUOTA_TENANT_DOWN_SUCCESS]=function(e,t){return e.merge({sysQuotaTenantDown:t.payload.data,error:t.payload.message})},n[l.SUBMIT_QUOTA_TENANT_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitQuotaTenantInfo:t.payload})},n[l.SUBMIT_QUOTA_TENANT_INFO_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitQuotaTenantInfo:t.payload})},n[l.RESET_SUBMIT_QUOTA_TENANT_INFO]=function(e){return e.merge({submitQuotaTenantInfo:{},quotaTenantInfoCode:0})},n[l.GET_QUOTA_TENANT_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,quotaTenantInfo:t.payload.data,quotaTenantInfoCode:1})},n[l.RESET_QUOTA_TENANT_INFO]=function(e){return e.merge({quotaTenantInfo:{},quotaTenantInfoCode:0})},n[l.RESET_TENANT_RELATION_DATA]=function(e){return e.merge({quotaTenantRelationCode:0})},n[l.SUBMIT_TENANT_USER_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,quotaTenantRelationCode:t.payload.code})},n[l.GET_SYS_QUOTA_TENANT_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,quotaTenantPagination:t.payload.pagination,sysQuotaTenantList:t.payload.data})},n[l.DELETE_QUOTA_TENANT_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delQuotaTenantCode:t.payload.code})},n[l.RESET_DELETE_QUOTA_TENANT]=function(e){return e.merge({delQuotaTenantCode:0})},n),u)},"./src/redux/reducers/sysManager/resTransfer.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.resTransferActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_OWNER_RES:i.REQUEST_TYPE,SAVE_TRANSFER:i.REQUEST_TYPE,REMOVE_TRANSFER:i.REQUEST_TYPE,CHANGE_SEARCH:void 0,RESET_STATE:void 0},"RES_TRANSFER"),u=t.initialState=(0,s.fromJS)({owner_res:[],search_txt:""}),c=(0,r.createActions)((0,i.getActionMap)(l)).resTransfer;t.resTransferActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_OWNER_RES_SUCCESS]=function(e,t){return e.merge({owner_res:t.payload&&t.payload.data||[]})},n[l.GET_OWNER_RES_FAILURE]=function(e){return e.merge({owner_res:[]})},n[l.CHANGE_SEARCH]=function(e,t){return e.merge({search_txt:t.payload&&t.payload.searchTxt})},n[l.RESET_STATE]=function(){return u},n),u)},"./src/redux/reducers/sysManager/rolesManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.rolesActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_SYS_ROLES_LIST:i.REQUEST_TYPE,SUBMIT_ROLES_DATA:i.REQUEST_TYPE,GET_SYS_ROLES_INFO:i.REQUEST_TYPE,DELETE_ROLES:i.REQUEST_TYPE,CHECK_ROLES_NAME:i.REQUEST_TYPE,RESET_SUBMIT_ROLES_DATA:void 0,RESET_GET_SYS_ROLES_LIST:void 0,RESET_DELETE_ROLES:void 0,LOAD_SYS_ROLES_LIST:i.REQUEST_TYPE,SUBMIT_ROLES_GROUPS_DATA:i.REQUEST_TYPE,SUBMIT_ROLES_USER_DATA:i.REQUEST_TYPE,SUBMIT_ROLES_PERMISSIONS_DATA:i.REQUEST_TYPE,RESET_ROLES_RELATION_DATA:void 0,RESET_CHECK_ROLES_NAME:void 0,RESET_ROLES_INFO:void 0},"ROLES_MANAGER"),u=t.initialState=(0,s.fromJS)({loadRolesList:[],sysRolesList:[],checkNameCode:0,submitRolesData:{},rolesInfo:{},delRolesCode:0,rolesPagination:{total:0,limit:0,offset:0},rolesRelationCode:0}),c=(0,r.createActions)((0,i.getActionMap)(l)).rolesManager;t.rolesActions=c,t.default=(0,r.handleActions)(((n={})[l.CHECK_ROLES_NAME_REQUEST]=function(e){return e.merge({checkNameCode:3})},n[l.CHECK_ROLES_NAME_SUCCESS]=function(e,t){return e.merge({checkNameCode:t.payload.data,error:!1})},n[l.RESET_ROLES_MODEL_NAME]=function(e){return e.merge({checkNameCode:0})},n[l.RESET_ROLES_RELATION_DATA]=function(e){return e.merge({rolesRelationCode:0})},n[l.SUBMIT_ROLES_PERMISSIONS_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,rolesRelationCode:t.payload.code})},n[l.SUBMIT_ROLES_GROUPS_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,rolesRelationCode:t.payload.code})},n[l.SUBMIT_ROLES_USER_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,rolesRelationCode:t.payload.code})},n[l.LOAD_SYS_ROLES_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,loadRolesList:t.payload.data})},n[l.GET_SYS_ROLES_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,rolesPagination:t.payload.pagination,sysRolesList:t.payload.data})},n[l.SUBMIT_ROLES_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitRolesData:t.payload})},n[l.SUBMIT_ROLES_DATA_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitRolesData:t.payload})},n[l.RESET_SUBMIT_ROLES_DATA]=function(e){return e.merge({submitRolesData:{}})},n[l.GET_SYS_ROLES_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,rolesInfo:t.payload.data})},n[l.RESET_ROLES_INFO]=function(e){return e.merge({rolesInfo:{}})},n[l.DELETE_ROLES_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delRolesCode:t.payload.code})},n[l.RESET_DELETE_ROLES]=function(e){return e.merge({delRolesCode:0})},n),u)},"./src/redux/reducers/sysManager/sceneDemoManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.sceneDemoActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({SUBMIT_FACE_SIGN:i.REQUEST_TYPE,GET_FACE_SIGN_LIST:i.REQUEST_TYPE,DELETE_FACE_SIGN:i.REQUEST_TYPE,GET_SCENE_DEMO_LIST:i.REQUEST_TYPE,GET_SCENE_DEMO_INFO:i.REQUEST_TYPE,DELETE_SCENE_DEMO:i.REQUEST_TYPE,SUBMIT_SCENE_DEMO:i.REQUEST_TYPE,RESET_GET_FACE_SIGN_LIST:void 0,DELETE_FACE_SIGN_STATE:void 0,RESET_SUBMIT_SCENE_DEMO:void 0,RESET_SCENE_DEMO_INFO:void 0,RESET_DELETE_FACE_SIGN:void 0,RESET_DELETE_SCENE_DEMO:void 0,RESET_ALL_DESTROY:void 0},"SCENE_DEMO_MANAGER"),u=t.initialState=(0,s.fromJS)({faceSignList:[],sceneDemoList:{data:[]},sceneDemoSubmit:{},sceneDemoInfo:{},sceneDemoDelete:{},faceSignDelete:{},faceSignSubmit:{}}),c=(0,r.createActions)((0,i.getActionMap)(l)).sceneDemoManager;t.sceneDemoActions=c,t.default=(0,r.handleActions)(((n={})[l.SUBMIT_FACE_SIGN_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,faceSignSubmit:{isSuccess:!0,data:t.payload.data,message:t.payload.message}})},n[l.SUBMIT_FACE_SIGN_FAILURE]=function(e,t){return e.merge({error:t.payload.message,faceSignSubmit:{isSuccess:!1,message:t.payload.message}})},n[l.RESET_DELETE_FACE_SIGN]=function(e){return e.merge({faceSignDelete:{}})},n[l.DELETE_FACE_SIGN_STATE]=function(e,t){return e.deleteIn(["faceSignList",e.get("faceSignList").findKey((function(e){return e.get("faceId")===t.payload.faceId}))])},n[l.DELETE_FACE_SIGN_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,faceSignDelete:{isSuccess:!0,message:t.payload.message}})},n[l.DELETE_FACE_SIGN_FAILURE]=function(e,t){return e.merge({error:t.payload.message,faceSignDelete:{isSuccess:!1,message:t.payload.message}})},n[l.GET_FACE_SIGN_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,faceSignList:t.payload.data})},n[l.GET_SCENE_DEMO_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,sceneDemoList:t.payload})},n[l.DELETE_SCENE_DEMO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,sceneDemoDelete:{isSuccess:!0,message:t.payload.message}})},n[l.DELETE_SCENE_DEMO_FAILURE]=function(e,t){return e.merge({error:t.payload.message,sceneDemoDelete:{isSuccess:!1,message:t.payload.message}})},n[l.RESET_DELETE_SCENE_DEMO]=function(e){return e.merge({sceneDemoDelete:{}})},n[l.SUBMIT_SCENE_DEMO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,sceneDemoSubmit:{isSuccess:!0,data:t.payload.data,message:t.payload.message}})},n[l.SUBMIT_SCENE_DEMO_FAILURE]=function(e,t){return e.merge({error:t.payload.message,sceneDemoSubmit:{isSuccess:!1,message:t.payload.message}})},n[l.RESET_SUBMIT_SCENE_DEMO]=function(e){return e.merge({sceneDemoSubmit:{}})},n[l.GET_SCENE_DEMO_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,sceneDemoInfo:t.payload.data})},n[l.RESET_SCENE_DEMO_INFO]=function(e){return e.merge({sceneDemoInfo:{}})},n[l.RESET_ALL_DESTROY]=function(e){return e.merge({sceneDemoList:{data:[]},sceneDemoSubmit:{},sceneDemoInfo:{},sceneDemoDelete:{}})},n),u)},"./src/redux/reducers/sysManager/switchManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.switchActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_SWITCH_MODULES_DATA:i.REQUEST_TYPE,GET_MODULES_OPTIONS:i.REQUEST_TYPE,UPDATE_MODULE_OPTION:i.REQUEST_TYPE},"SWITCH_MANAGER"),u=t.initialState=(0,s.fromJS)({switchModules:[],moduleOptions:[],moduleOptionInfo:{},errorInfo:{code:1,message:""}}),c=(0,r.createActions)((0,i.getActionMap)(l)).switchManager;t.switchActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_SWITCH_MODULES_DATA_SUCCESS]=function(e,t){return e.merge({switchModules:t.payload&&t.payload.data||[]})},n[l.GET_MODULES_OPTIONS_SUCCESS]=function(e,t){return e.merge({moduleOptions:t.payload&&t.payload.data||[]})},n[l.UPDATE_MODULE_OPTION_SUCCESS]=function(e,t){return e.merge({moduleOptionInfo:t.payload&&t.payload.data||[]})},n),u)},"./src/redux/reducers/sysManager/sysManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.sysManagerActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_SYS_HELP_LIST:i.REQUEST_TYPE,SUBMIT_CONTACT_USER:i.REQUEST_TYPE,RESET_SUBMIT_CONTACT_USER:void 0,GET_CONTACT_USER_INFO:i.REQUEST_TYPE,RESET_CONTACT_USER_INFO:void 0,LOAD_MODULES_LIST:i.REQUEST_TYPE,LOAD_RES_PERMISSION:i.REQUEST_TYPE,LOAD_RES_DOMAINS_LIST:i.REQUEST_TYPE,LOAD_RES_DOMAINS_RESOURCES_LIST:i.REQUEST_TYPE,RESET_RES_PERMISSION:void 0,UPDATE_LOAD_DOMAINS:void 0},"SYS_MANAGER"),u=t.initialState=(0,s.fromJS)({sysHelpList:[],submitContactUserData:{},contactUserInfo:{},loadModulesList:[],loadResPermissionList:[],loadResDomainsList:[],loadResDomainsResourcesList:[]}),c=(0,r.createActions)((0,i.getActionMap)(l)).sysManager;t.sysManagerActions=c,t.default=(0,r.handleActions)(((n={})[l.UPDATE_LOAD_DOMAINS]=function(e,t){for(var a=t.payload.domainId,n=e.get("loadResDomainsResourcesList").toJS(),o=0;o<n.length;o++)n[o].domainId=a;return e.merge({loadResDomainsResourcesList:(0,s.fromJS)(n)})},n[l.LOAD_RES_DOMAINS_RESOURCES_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,loadResDomainsResourcesList:t.payload.data})},n[l.LOAD_RES_DOMAINS_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,loadResDomainsList:t.payload.data})},n[l.RESET_RES_PERMISSION]=function(e){return e.merge({loadResPermissionList:[]})},n[l.LOAD_RES_PERMISSION_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,loadResPermissionList:t.payload.data})},n[l.LOAD_MODULES_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,loadModulesList:t.payload.data})},n[l.GET_SYS_HELP_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,sysHelpList:t.payload.data})},n[l.SUBMIT_CONTACT_USER_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitContactUserData:t.payload.data})},n[l.RESET_SUBMIT_CONTACT_USER]=function(e){return e.merge({submitContactUserData:{}})},n[l.GET_CONTACT_USER_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,contactUserInfo:t.payload})},n[l.RESET_CONTACT_USER_INFO]=function(e){return e.merge({contactUserInfo:{}})},n),u)},"./src/redux/reducers/sysManager/tagGroupsManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.tagGroupsActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_TAG_GROUPS_LIST_BY_MARK_TYPE:i.REQUEST_TYPE,GET_TAG_GROUPS_LIST:i.REQUEST_TYPE,GET_TAG_GROUPS_INFO:i.REQUEST_TYPE,DELETE_TAG_GROUPS:i.REQUEST_TYPE,SUBMIT_TAG_GROUPS:i.REQUEST_TYPE,RESET_TAG_GROUPS_LIST_BY_MARK_TYPE:void 0,RESET_SUBMIT_TAG_GROUPS:void 0,RESET_TAG_GROUPS_INFO:void 0,RESET_DELETE_TAG_GROUPS:void 0,RESET_ALL_DESTROY:void 0},"TAG_GROUPS_MANAGER"),u=t.initialState=(0,s.fromJS)({tagGroupsList:{data:[],pagination:{total:0,limit:0,offset:0}},tagGroupsSubmit:{},tagGroupsInfo:{},tagGroupsDelete:{},tagGroupsListByMarkType:[]}),c=(0,r.createActions)((0,i.getActionMap)(l)).tagGroupsManager;t.tagGroupsActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_TAG_GROUPS_LIST_BY_MARK_TYPE_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,tagGroupsListByMarkType:t.payload.data})},n[l.RESET_TAG_GROUPS_LIST_BY_MARK_TYPE]=function(e){return e.merge({tagGroupsListByMarkType:[]})},n[l.GET_TAG_GROUPS_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,tagGroupsList:t.payload})},n[l.RESET_CHECK_NAME]=function(e){return e.merge({tagGroupsCheckName:0})},n[l.DELETE_TAG_GROUPS_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,tagGroupsDelete:t.payload})},n[l.RESET_DELETE_TAG_GROUPS]=function(e){return e.merge({tagGroupsDelete:{}})},n[l.SUBMIT_TAG_GROUPS_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,tagGroupsSubmit:t.payload})},n[l.SUBMIT_TAG_GROUPS_FAILURE]=function(e,t){return e.merge({error:t.payload.message,tagGroupsSubmit:t.payload})},n[l.RESET_SUBMIT_TAG_GROUPS]=function(e){return e.merge({tagGroupsSubmit:{}})},n[l.GET_TAG_GROUPS_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,tagGroupsInfo:t.payload.data})},n[l.RESET_TAG_GROUPS_INFO]=function(e){return e.merge({tagGroupsInfo:{}})},n[l.RESET_ALL_DESTROY]=function(e){return e.merge({tagGroupsList:{data:[],pagination:{total:0,limit:0,offset:0}},tagGroupsSubmit:{},tagGroupsInfo:{},tagGroupsDelete:{}})},n),u)},"./src/redux/reducers/sysManager/userGroupsManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.userGroupsActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_SYS_USER_GROUPS_LIST:i.REQUEST_TYPE,SUBMIT_USER_GROUPS_DATA:i.REQUEST_TYPE,GET_SYS_USER_GROUPS_INFO:i.REQUEST_TYPE,DELETE_USER_GROUPS:i.REQUEST_TYPE,CHECK_USER_GROUPS_NAME:i.REQUEST_TYPE,SUBMIT_USER_GROUPS_RESOURCE_DATA:i.REQUEST_TYPE,GET_USER_GROUPS_RESOURCE_DATA:i.REQUEST_TYPE,RESET_SUBMIT_USER_GROUPS_DATA:void 0,RESET_GET_SYS_USER_GROUPS_LIST:void 0,RESET_DELETE_USER_GROUPS:void 0,RESET_USER_GROUPS_RELATION_DATA:void 0,LOAD_SYS_USER_GROUPS_LIST:i.REQUEST_TYPE,SUBMIT_GROUPS_ROLES_DATA:i.REQUEST_TYPE,SUBMIT_GROUPS_USER_DATA:i.REQUEST_TYPE,RESET_GROUPS_RELATION_DATA:void 0,RESET_CHECK_USER_GROUPS_NAME:void 0,RESET_USER_GROUPS_INFO:void 0},"USER_GROUPS_MANAGER"),u=t.initialState=(0,s.fromJS)({loadUserGroupsList:[],resourceRelation:[],sysUserGroupsList:[],submitUserGroupsData:{},userGroupsInfo:{},delUserGroupsCode:0,checkNameCode:0,userGroupsPagination:{total:0,limit:0,offset:0},userGroupsRelationCode:0}),c=(0,r.createActions)((0,i.getActionMap)(l)).userGroupsManager;t.userGroupsActions=c,t.default=(0,r.handleActions)(((n={})[l.SUBMIT_GROUPS_ROLES_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userGroupsRelationCode:t.payload.code})},n[l.SUBMIT_GROUPS_USER_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userGroupsRelationCode:t.payload.code})},n[l.CHECK_USER_GROUPS_NAME_REQUEST]=function(e){return e.merge({checkNameCode:3})},n[l.CHECK_USER_GROUPS_NAME_SUCCESS]=function(e,t){return e.merge({checkNameCode:t.payload.data,error:!1})},n[l.RESET_CHECK_USER_GROUPS_NAME]=function(e){return e.merge({checkNameCode:0})},n[l.LOAD_SYS_USER_GROUPS_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,loadUserGroupsList:t.payload.data})},n[l.GET_USER_GROUPS_RESOURCE_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,resourceRelation:t.payload.data})},n[l.SUBMIT_USER_GROUPS_RESOURCE_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userGroupsRelationCode:t.payload.code})},n[l.RESET_USER_GROUPS_RELATION_DATA]=function(e){return e.merge({userGroupsRelationCode:0})},n[l.GET_SYS_USER_GROUPS_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userGroupsPagination:t.payload.pagination,sysUserGroupsList:t.payload.data})},n[l.SUBMIT_USER_GROUPS_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitUserGroupsData:t.payload})},n[l.SUBMIT_USER_GROUPS_DATA_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitUserGroupsData:t.payload})},n[l.RESET_SUBMIT_USER_GROUPS_DATA]=function(e){return e.merge({submitUserGroupsData:{}})},n[l.GET_SYS_USER_GROUPS_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userGroupsInfo:t.payload.data})},n[l.RESET_USER_GROUPS_INFO]=function(e){return e.merge({userGroupsInfo:{}})},n[l.DELETE_USER_GROUPS_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delUserGroupsCode:t.payload.code})},n[l.RESET_DELETE_USER_GROUPS]=function(e){return e.merge({delUserGroupsCode:0})},n),u)},"./src/redux/reducers/sysManager/userManager.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.userActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({UNFASTEN_USER:i.REQUEST_TYPE,RESET_UNFASTEN_USER:void 0,UPDATE_PASS:i.REQUEST_TYPE,RESET_UPDATE_PASS:void 0,GET_SYS_USER_LIST:i.REQUEST_TYPE,SUBMIT_USER_DATA:i.REQUEST_TYPE,GET_SYS_USER_INFO:i.REQUEST_TYPE,DELETE_USER:i.REQUEST_TYPE,CHECK_USER_NAME:i.REQUEST_TYPE,SUBMIT_USER_GROUPS_DATA:i.REQUEST_TYPE,SUBMIT_USER_ROLES_DATA:i.REQUEST_TYPE,SUBMIT_USER_RESOURCE_DATA:i.REQUEST_TYPE,GET_USER_GROUPS_DATA:i.REQUEST_TYPE,GET_USER_ROLES_DATA:i.REQUEST_TYPE,GET_USER_RESOURCE_DATA:i.REQUEST_TYPE,RESET_SUBMIT_USER_DATA:void 0,RESET_GET_SYS_USER_LIST:void 0,RESET_DELETE_USER:void 0,RESET_USER_RELATION_DATA:void 0,LOAD_SYS_USER_LIST:i.REQUEST_TYPE,RESET_CHECK_USER_NAME:void 0,RESET_USER_INFO:void 0,GET_SYS_PERMITS:i.REQUEST_TYPE,SET_USER_JOINED_PROJECT:void 0,SET_PROJECT_APPLICATIONS:void 0},"USER_MANAGER"),u=t.initialState=(0,s.fromJS)({permitsData:{},loadUserList:[],checkNameCode:0,userGroupsRelation:[],rolesRelation:[],resourceRelation:[],sysUserList:[],submitUserData:{},userInfo:{},delUserCode:0,userPagination:{total:0,limit:0,offset:0},userRelationCode:0,updatePawData:{},unfastenUserCode:0,userJoinedProjects:[],projectApplications:[]}),c=(0,r.createActions)((0,i.getActionMap)(l)).userManager;t.userActions=c,t.default=(0,r.handleActions)(((n={})[l.UNFASTEN_USER_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,unfastenUserCode:t.payload.code})},n[l.RESET_UNFASTEN_USER]=function(e){return e.merge({unfastenUserCode:0})},n[l.UPDATE_PASS_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,updatePawData:{code:t.payload.code,message:t.payload.message}})},n[l.UPDATE_PASS_FAILURE]=function(e,t){return e.merge({error:t.payload.message,updatePawData:{code:t.payload.code,message:t.payload.message}})},n[l.RESET_UPDATE_PASS]=function(e){return e.merge({updatePawData:{}})},n[l.GET_SYS_PERMITS_SUCCESS]=function(e,t){return e.merge({permitsData:t.payload.data})},n[l.CHECK_USER_NAME_REQUEST]=function(e){return e.merge({checkNameCode:3})},n[l.CHECK_USER_NAME_SUCCESS]=function(e,t){return e.merge({checkNameCode:t.payload.data,error:!1})},n[l.RESET_USER_MODEL_NAME]=function(e){return e.merge({checkNameCode:0})},n[l.LOAD_SYS_USER_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,loadUserList:t.payload.data})},n[l.GET_USER_GROUPS_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userGroupsRelation:t.payload.data})},n[l.GET_USER_ROLES_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,rolesRelation:t.payload.data})},n[l.GET_USER_RESOURCE_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,resourceRelation:t.payload.data})},n[l.SUBMIT_USER_GROUPS_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userRelationCode:t.payload.code})},n[l.SUBMIT_USER_ROLES_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userRelationCode:t.payload.code})},n[l.SUBMIT_USER_RESOURCE_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userRelationCode:t.payload.code})},n[l.RESET_USER_RELATION_DATA]=function(e){return e.merge({userRelationCode:0})},n[l.GET_SYS_USER_LIST_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userPagination:t.payload.pagination,sysUserList:t.payload.data})},n[l.SUBMIT_USER_DATA_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,submitUserData:t.payload})},n[l.SUBMIT_USER_DATA_FAILURE]=function(e,t){return e.merge({error:t.payload.message,submitUserData:t.payload})},n[l.RESET_SUBMIT_USER_DATA]=function(e){return e.merge({submitUserData:{}})},n[l.GET_SYS_USER_INFO_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,userInfo:t.payload.data})},n[l.RESET_USER_INFO]=function(e){return e.merge({userInfo:{}})},n[l.DELETE_USER_SUCCESS]=function(e,t){return e.merge({error:t.payload.message,delUserCode:t.payload.code})},n[l.RESET_DELETE_USER]=function(e){return e.merge({delUserCode:0})},n[l.SET_USER_JOINED_PROJECT]=function(e,t){return e.merge({userJoinedProjects:t.payload})},n[l.SET_PROJECT_APPLICATIONS]=function(e,t){return e.merge({projectApplications:t.payload})},n),u)},"./src/redux/reducers/trainReport.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.trainReportActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_MODEL_REPORT_HEAD:i.REQUEST_TYPE,RESET_REPORT_HEAD:void 0,GET_MODEL_REPORT_DATAS:i.REQUEST_TYPE},"TRAIN_REPORT"),u=t.initialState=(0,s.fromJS)({reportHead:{},modelReportDatas:{}}),c=(0,r.createActions)((0,i.getActionMap)(l)).trainReport;t.trainReportActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_MODEL_REPORT_DATAS_SUCCESS]=function(e,t){return e.merge({modelReportDatas:t.payload.data})},n[l.GET_MODEL_REPORT_HEAD_SUCCESS]=function(e,t){return e.merge({reportHead:t.payload.data||{}})},n[l.RESET_REPORT_HEAD]=function(e){return e.merge({reportHead:{}})},n),u)},"./src/redux/reducers/trainResult.js":function(e,t,a){"use strict";var n;t.__esModule=!0,t.trainResultActions=t.initialState=t.types=void 0;var o,s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./node_modules/redux-actions/es/index.js"),i=a("./src/redux/actionTypeHelper.js"),d=(o=i)&&o.__esModule?o:{default:o};var l=t.types=(0,d.default)({GET_BEST_MODEL:i.REQUEST_TYPE,SET_BEST_MODEL:i.REQUEST_TYPE,GET_MODEL_TRAIN_RESULT:i.REQUEST_TYPE,GET_MODEL_TRAIN_PROCESS:i.REQUEST_TYPE,RESET_MODEL_TRAIN_RESULT:void 0,RESET_MODEL_TRAIN_PROCESS:void 0,GET_MODEL_TRAIN_LOG:i.REQUEST_TYPE,RESET_MODEL_TRAIN_LOG:void 0,STOP_SYNC_TRAIN_PROCESS:void 0},"TRAIN_RESULT"),u=t.initialState=(0,s.fromJS)({trainResult:[],trainProcess:[],bestModelSetting:{},trainLog:[]}),c=(0,r.createActions)((0,i.getActionMap)(l)).trainResult;t.trainResultActions=c,t.default=(0,r.handleActions)(((n={})[l.GET_BEST_MODEL_SUCCESS]=function(e,t){return e.merge({bestModelSetting:t.payload.data||{}})},n[l.GET_MODEL_TRAIN_RESULT_SUCCESS]=function(e,t){return e.merge({trainResult:t.payload.data||[]})},n[l.GET_MODEL_TRAIN_PROCESS_SUCCESS]=function(e,t){return e.merge({trainProcess:t.payload.data||[]})},n[l.GET_MODEL_TRAIN_LOG_SUCCESS]=function(e,t){return e.merge({trainLog:t.payload.data||[]})},n[l.RESET_MODEL_TRAIN_RESULT]=function(e){return e.merge({trainResult:[],bestModelSetting:{}})},n[l.RESET_MODEL_TRAIN_PROCESS]=function(e){return e.merge({trainProcess:[]})},n[l.RESET_MODEL_TRAIN_LOG]=function(e){return e.merge({trainLog:[]})},n),u)},"./src/redux/reducers/ui.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./node_modules/immutable3/dist/immutable.js"),o=a("./node_modules/redux-immutable/dist/index.js");t.default=(0,o.combineReducers)({loading:function(e,t){e=e||(0,n.fromJS)({});var a=t.type,o=/(.*)_(REQUEST|SUCCESS|FAILURE)/.exec(a);if(!o)return e;var s=o[1],r=o[2];return e.set(s,"REQUEST"===r)},error:function(e,t){e=e||(0,n.fromJS)({});var a=t.type,o=t.payload,s=/(.*)_(REQUEST|FAILURE)/.exec(a);if(!s)return e;var r=s[1],i=s[2];return e.set(r,"FAILURE"===i?o.error||o.message||"error":null)}})},"./src/redux/sagas/affiche.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=q;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/affiche.js"),r=d(a("./src/redux/services/affiche.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(w),u=n.default.mark(E),c=n.default.mark(D),p=n.default.mark(M),f=n.default.mark(k),m=n.default.mark(P),h=n.default.mark(L),g=n.default.mark(N),v=n.default.mark(A),_=n.default.mark(R),y=n.default.mark(F),b=n.default.mark(O),x=n.default.mark(V),C=n.default.mark(U),j=n.default.mark(B),S=n.default.mark(G),I=n.default.mark(z),T=n.default.mark(q);function w(e){var t,a=e.afficheId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.afficheActions,s.types.PATCH_MARK_READ),e.next=3,(0,o.call)(t,r.default.patchMarkRead,{afficheId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function E(e){var t,a=e.afficheId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.afficheActions,s.types.GET_AFFICHE_INFO),e.next=3,(0,o.call)(t,r.default.getAfficheInfo,{afficheId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function D(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.afficheActions,s.types.SUBMIT_AFFICHE_DATA),a.next=3,(0,o.call)(t,"edit"!==e.subType?r.default.savePostAffiche:r.default.updatePutAffiche,e.afficheData);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),c,this)}function M(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.afficheActions,s.types.DELETE_AFFICHE),a.next=3,(0,o.call)(t,r.default.deleteAffiche,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),p,this)}function k(e){var t,a=e.userId,d=e.keyword,l=e.efficient,u=e.level,c=e.sortField,p=e.offset,m=e.limit,h=e.affichType;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.afficheActions,s.types.GET_AFFICHE_LIST_USER),e.next=3,(0,o.call)(t,r.default.getAfficheListByUserId,{userId:a,keyword:d,efficient:l,level:u,sortField:c,offset:p,limit:m,affichType:h});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function P(e){var t,a=e.keyword,d=e.efficient,l=e.level,u=e.sortField,c=e.affichType,p=e.offset,f=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.afficheActions,s.types.GET_AFFICHE_LIST),e.next=3,(0,o.call)(t,r.default.getAfficheList,{keyword:a,efficient:d,level:l,sortField:u,affichType:c,offset:p,limit:f});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function L(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.afficheActions,s.types.PATCH_MARK_ALL_READ),t.next=3,(0,o.call)(e,r.default.patchMarkAllRead);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),h,this)}function N(e){var t,a=e.userId,d=e._SYNC_INTERVAL;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.afficheActions,s.types.GET_AFFICHE_MESSAGE_DATA),e.next=3,(0,o.call)(t,r.default.getAfficheMesData,{userId:a,_SYNC_INTERVAL:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),g,this)}function A(e,t){return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.prev=0;case 1:return a.next=4,(0,i.delay)(t||5e3);case 4:return console.log(":::get GET_AFFICHE_MESSAGE_DATA_REQUEST list"),a.next=7,(0,o.call)(N,e);case 7:a.next=1;break;case 9:return a.prev=9,a.next=12,(0,o.cancelled)();case 12:if(!a.sent){a.next=14;break}console.log("canceled sync model list");case 14:return a.finish(9);case 15:case"end":return a.stop()}}),v,this,[[0,,9,15]])}function R(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=void 0,t.next=3,(0,o.takeLatest)(s.types.GET_AFFICHE_MESSAGE_DATA_REQUEST,n.default.mark((function t(a){var s,r,i,d,l;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=a.payload,i=(r=s||{})._SYNC,d=r._SYNC_INTERVAL,l={userId:s.userId,_SYNC_INTERVAL:d},!e){t.next=6;break}return t.next=6,(0,o.cancel)(e);case 6:if(!0===i){t.next=11;break}return console.log(":::start sync model list,interval:"+d/1e3+"s"),t.next=10,(0,o.fork)(A,l,d);case 10:e=t.sent;case 11:return t.next=13,(0,o.call)(N,l);case 13:case"end":return t.stop()}}),t,this)})));case 3:return t.next=5,(0,o.takeLatest)(s.types.STOP_AFFICHE_MESSAGE_DATA,n.default.mark((function t(){return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}return console.log(":::cancel sync model list"),t.next=4,(0,o.cancel)(e);case 4:case"end":return t.stop()}}),t,this)})));case 5:case"end":return t.stop()}}),_,this)}function F(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.PATCH_MARK_ALL_READ_REQUEST);case 3:return e.next=5,(0,o.call)(L);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),y,this)}function O(){var e,t,a,r,i,d,l,u,c;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_AFFICHE_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.keyword,r=t.efficient,i=t.level,d=t.sortField,l=t.affichType,u=t.offset,c=t.limit,n.next=8,(0,o.call)(P,{keyword:a,efficient:r,level:i,sortField:d,affichType:l,offset:u,limit:c});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),b,this)}function V(){var e,t,a,r,i,d,l,u,c,p;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_AFFICHE_LIST_USER_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userId,r=t.keyword,i=t.efficient,d=t.level,l=t.sortField,u=t.offset,c=t.limit,p=t.affichType,n.next=8,(0,o.call)(k,{userId:a,keyword:r,efficient:i,level:d,sortField:l,offset:u,limit:c,affichType:p});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),x,this)}function U(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_AFFICHE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(M,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),C,this)}function B(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_AFFICHE_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.afficheData,n.next=8,(0,o.call)(D,{afficheData:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),j,this)}function G(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_AFFICHE_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.afficheId,n.next=8,(0,o.call)(E,{afficheId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),S,this)}function z(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.PATCH_MARK_READ_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.afficheId,n.next=8,(0,o.call)(w,{afficheId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),I,this)}function q(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(z)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(G)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(B)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(R)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(F)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(O)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(V)]);case 14:return e.next=16,(0,o.all)([(0,o.fork)(U)]);case 16:case"end":return e.stop()}}),T,this)}},"./src/redux/sagas/app.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./node_modules/babel-runtime/regenerator/index.js"),s=(n=o)&&n.__esModule?n:{default:n};t.intializeFlow=h,t.readyLaunchFalse=g,t.default=v;var r=a("./node_modules/redux-saga/es/effects.js"),i=a("./src/redux/reducers/app.js"),d=a("./src/redux/sagas/enumDic.js"),l=a("./src/utils/authPermit.js"),u=a("./src/redux/sagas/sysManager/userManager.js"),c=a("./src/redux/sagas/sysManager/switchManager.js");var p=s.default.mark(h),f=s.default.mark(g),m=s.default.mark(v);function h(){var e,t,a;return s.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,r.take)(i.types.INITIALIZE);case 3:if(_.isEmpty((0,l.getToken)())){n.next=29;break}return n.next=6,(0,r.call)(d.initLoadEnumDic);case 6:return n.t0=n.sent,n.next=9,(0,r.call)(u.getSysPermits);case 9:return n.t1=n.sent,n.next=12,(0,r.call)(c.getSwitchOptions);case 12:return n.t2=n.sent,n.next=15,(0,r.call)(u.getUserJoinedProjects);case 15:if(n.t3=n.sent,e=[n.t0,n.t1,n.t2,n.t3],t=localStorage.getItem("AI.currentContext"),a=t?t.split("@"):[],"PROJECT"!==_.get(a,"[0]")||!_.get(a,"[1]")){n.next=25;break}return n.t4=e,n.next=23,(0,r.call)(u.getProjectApplications,_.get(a,"[1]"));case 23:n.t5=n.sent,n.t4.push.call(n.t4,n.t5);case 25:return n.next=27,(0,r.all)(e);case 27:n.next=31;break;case 29:return n.next=31,(0,r.all)([(0,r.call)(d.initLoadEnumDic),(0,r.call)(c.getSwitchOptions)]);case 31:return n.next=33,(0,r.put)(i.appActions.readyLaunch());case 33:n.next=0;break;case 35:case"end":return n.stop()}}),p,this)}function g(){return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,r.take)(i.types.READY_LAUNCH_FALSE);case 3:return e.next=5,(0,r.put)(i.appActions.readyLaunchFalse());case 5:e.next=0;break;case 7:case"end":return e.stop()}}),f,this)}function v(){return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,r.all)([(0,r.fork)(h)]);case 2:return e.next=4,(0,r.all)([(0,r.fork)(g)]);case 4:case"end":return e.stop()}}),m,this)}},"./src/redux/sagas/auth.js":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=b;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/auth.js"),r=l(a("./src/redux/services/auth.js")),i=a("./src/redux/sagas/utils.js"),d=a("./src/utils/authPermit.js");l(a("./node_modules/crypto-js/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=n.default.mark(h),c=n.default.mark(g),p=n.default.mark(v),f=n.default.mark(y),m=n.default.mark(b);function h(e){var t,a=e.code,d=e.grant_type,l=e.redirect_uri,c=e.client_id,p=e.client_secret;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.authActions,s.types.LOGIN),e.next=3,(0,o.call)(t,r.default.loginAuth,{code:a,grant_type:d,redirect_uri:l,client_id:c,client_secret:p});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function g(){var e,t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=3,(0,o.take)(s.types.LOGOUT_REQUEST);case 3:return e=(e=(0,d.getToken)())?_.trim(e.replace("Bearer","")):e,(0,d.removeLoginData)(),t=(0,i.getApiFetch)(s.authActions,s.types.LOGOUT),a.next=9,(0,o.call)(t,r.default.logout,{token:e});case 9:a.next=0;break;case 11:case"end":return a.stop()}}),c,this)}function v(){var e,t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=3,(0,o.take)(s.types.LOGIN_REQUEST);case 3:return e=a.sent,t=e.payload,a.next=7,(0,o.call)(h,t);case 7:a.next=0;break;case 9:case"end":return a.stop()}}),p,this)}function y(){var e,t,a,l,u,c,p,m;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.VERIFY_LOGIN_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.search,l=(0,i.getApiFetch)(s.authActions,s.types.VERIFY_LOGIN),u=_.get((0,d.getUser)(),"userId",""),n.next=10,(0,o.call)(l,r.default.verifyLogin,{search:a,userId:u});case 10:c=n.sent,p=c.success,m=c.result,p?"1"===m.code&&(localStorage.setItem("AI.token",m.data.access_token?"Bearer "+m.data.access_token:""),localStorage.setItem("AI.refreshToken",m.data.refresh_token)):"ERROR"===m.data.ssoType?notification.error({key:"SYSTEM_ERROR",message:"\u7cfb\u7edf\u9519\u8bef",description:m.error}):window.location.href=m.data.ssoLoginUrl,n.next=0;break;case 16:case"end":return n.stop()}}),f,this)}function b(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(v)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(g)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(y)]);case 6:case"end":return e.stop()}}),m,this)}},"./src/redux/sagas/busiTypes.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=C;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/busiTypes.js"),r=d(a("./src/redux/services/busiTypes.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(g),u=n.default.mark(v),c=n.default.mark(_),p=n.default.mark(y),f=n.default.mark(b),m=n.default.mark(x),h=n.default.mark(C);function g(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.busiTypesActions,s.types.GET_BUSINESS_TYPE_DATA),t.next=3,(0,o.call)(e,r.default.getBusinessTypeData);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),l,this)}function v(e){var t,a=e.name;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.busiTypesActions,s.types.CHECK_MODEL_NAME),e.next=3,(0,o.call)(t,r.default.checkModelName,{name:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function _(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.busiTypesActions,s.types.SAVE_BUSI_TYPES),a.next=3,(0,o.call)(t,"add"===e.subType?r.default.savePostBusiTypes:r.default.updatePutBusiTypes,e.appTopicType);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),c,this)}function y(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SAVE_BUSI_TYPES_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.appTopicType,n.next=8,(0,o.call)(_,{appTopicType:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),p,this)}function b(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CHECK_MODEL_NAME_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.name,n.next=8,(0,o.call)(v,{name:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),f,this)}function x(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_BUSINESS_TYPE_DATA_REQUEST);case 3:return e.next=5,(0,o.call)(g);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),m,this)}function C(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(x)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(b)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(y)]);case 6:case"end":return e.stop()}}),h,this)}},"./src/redux/sagas/checkName.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=m;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/checkName.js"),r=d(a("./src/redux/services/checkName.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(p),u=n.default.mark(f),c=n.default.mark(m);function p(e){var t,a=e.params,d=e.url,u=e.basePath;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.checkNameActions,s.types.CHECK_NAME_AVAILABLE),e.next=3,(0,o.call)(t,r.default.checkName,{params:a,url:d,basePath:u});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function f(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CHECK_NAME_AVAILABLE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.params,r=t.url,i=t.basePath,n.next=8,(0,o.call)(p,{params:a,url:r,basePath:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),u,this)}function m(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(f)]);case 2:case"end":return e.stop()}}),c,this)}},"./src/redux/sagas/dashboard.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=T;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/dashboard.js"),r=d(a("./src/redux/services/dashboard.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(_),u=n.default.mark(y),c=n.default.mark(b),p=n.default.mark(x),f=n.default.mark(C),m=n.default.mark(j),h=n.default.mark(S),g=n.default.mark(I),v=n.default.mark(T);function _(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.dashboardActions,s.types.GET_FEATURE),t.next=3,(0,o.call)(e,r.default.getFeature);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),l,this)}function y(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.dashboardActions,s.types.GET_BUSINESS),t.next=3,(0,o.call)(e,r.default.getBusiness);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),u,this)}function b(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.dashboardActions,s.types.GET_SYS_STATE),t.next=3,(0,o.call)(e,r.default.getSysState);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),c,this)}function x(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.dashboardActions,s.types.GET_CAPACITY),t.next=3,(0,o.call)(e,r.default.getCapacity);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),p,this)}function C(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_FEATURE_REQUEST);case 3:return e.next=5,(0,o.call)(_);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),f,this)}function j(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_BUSINESS_REQUEST);case 3:return e.next=5,(0,o.call)(y);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),m,this)}function S(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_CAPACITY_REQUEST);case 3:return e.next=5,(0,o.call)(x);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),h,this)}function I(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_SYS_STATE_REQUEST);case 3:return e.next=5,(0,o.call)(b);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),g,this)}function T(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(C)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(j)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(S)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(I)]);case 8:case"end":return e.stop()}}),v,this)}},"./src/redux/sagas/dataBases.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=m;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/dataBases.js"),r=d(a("./src/redux/services/dataBases.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(p),u=n.default.mark(f),c=n.default.mark(m);function p(e){var t,a=e.dbType;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.dataBasesActions,s.types.GET_DATA_BASES_DOWN),e.next=3,(0,o.call)(t,r.default.getDataBasesArrayDown,{dbType:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function f(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_BASES_DOWN_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dbType,n.next=8,(0,o.call)(p,{dbType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),u,this)}function m(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(f)]);case 2:case"end":return e.stop()}}),c,this)}},"./src/redux/sagas/dataDispose.js":function(e,t,a){"use strict";t.__esModule=!0;var n=u(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=R;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/dataDispose.js"),r=a("./src/redux/reducers/dataSource.js"),i=a("./src/redux/reducers/indiSet.js"),d=u(a("./src/redux/services/dataDispose.js")),l=a("./src/redux/sagas/utils.js");function u(e){return e&&e.__esModule?e:{default:e}}var c=n.default.mark(S),p=n.default.mark(I),f=n.default.mark(T),m=n.default.mark(w),h=n.default.mark(E),g=n.default.mark(D),v=n.default.mark(M),_=n.default.mark(k),y=n.default.mark(P),b=n.default.mark(L),x=n.default.mark(N),C=n.default.mark(A),j=n.default.mark(R);function S(e){var t,a=e.dsId,r=e.qt,i=e.sort;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,l.getApiFetch)(s.dataDisposeActions,s.types.GET_DATA_DISPOSE_LIST),e.next=3,(0,o.call)(t,d.default.getDataDisposeList,{dsId:a,qt:r,sort:i});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function I(e){var t,a=e.taskId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,l.getApiFetch)(s.dataDisposeActions,s.types.EXECUTE_DATA_DISPOSE),e.next=3,(0,o.call)(t,d.default.executeDataDispose,{taskId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),p,this)}function T(e){var t,a=e.taskId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,l.getApiFetch)(s.dataDisposeActions,s.types.GET_DATA_DISPOSE),e.next=3,(0,o.call)(t,d.default.getDataDispose,{taskId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function w(e){var t,a=e.taskId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,l.getApiFetch)(s.dataDisposeActions,s.types.DELETE_DATA_DISPOSE),e.next=3,(0,o.call)(t,d.default.deleteDataDispose,{taskId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function E(e){var t,a=e.taskId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,l.getApiFetch)(s.dataDisposeActions,s.types.CANCEL_EXECUTE),e.next=3,(0,o.call)(t,d.default.cancelExecute,{taskId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),h,this)}function D(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,l.getApiFetch)(s.dataDisposeActions,s.types.SUBMIT_DATA_DISPOSE),a.next=3,(0,o.call)(t,"create"===e.subType?d.default.savePostModel:d.default.updatePutModel,e.modelConfig);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),g,this)}function M(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_DISPOSE_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.qt,i=t.sort,n.next=8,(0,o.call)(S,{dsId:a,qt:r,sort:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),v,this)}function k(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.EXECUTE_DATA_DISPOSE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.taskId,n.next=8,(0,o.call)(I,{taskId:a});case 8:if(r=n.sent,!r.success){n.next=13;break}return n.next=13,(0,o.put)(s.dataDisposeActions.updateDataDisposeFromState({taskId:a}));case 13:n.next=0;break;case 15:case"end":return n.stop()}}),_,this)}function P(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_DATA_DISPOSE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.taskId,n.next=8,(0,o.call)(w,{taskId:a});case 8:if(r=n.sent,!r.success){n.next=13;break}return n.next=13,(0,o.put)(s.dataDisposeActions.deleteDataDisposeFromState({taskId:a}));case 13:n.next=0;break;case 15:case"end":return n.stop()}}),y,this)}function L(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_DISPOSE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.taskId,n.next=8,(0,o.call)(T,{taskId:a});case 8:if(d=n.sent,1!==(l=d.result).code){n.next=15;break}return n.next=13,(0,o.put)(r.dataSourceActions.getDataSourceAuditListRequest({dsId:l.data.dsId,dsCycle:l.data.dsCycle,kpiClass:null,kpiName:null}));case 13:return n.next=15,(0,o.put)(i.indiSetActions.loadIndiListRequest({dsId:l.data.dsId,dsCycle:l.data.dsCycle,kpiName:null}));case 15:n.next=0;break;case 17:case"end":return n.stop()}}),b,this)}function N(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_DATA_DISPOSE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.modelConfig,n.next=8,(0,o.call)(D,{modelConfig:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),x,this)}function A(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CANCEL_EXECUTE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.taskId,n.next=8,(0,o.call)(E,{taskId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),C,this)}function R(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(A)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(N)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(L)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(k)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(P)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(M)]);case 12:case"end":return e.stop()}}),j,this)}},"./src/redux/sagas/dataSource.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=gt;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/dataSource.js"),r=a("./src/redux/sagas/utils.js"),i=d(a("./src/redux/services/dataSource.js"));function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(fe),u=n.default.mark(me),c=n.default.mark(he),p=n.default.mark(ge),f=n.default.mark(ve),m=n.default.mark(_e),h=n.default.mark(ye),g=n.default.mark(be),v=n.default.mark(xe),_=n.default.mark(Ce),y=n.default.mark(je),b=n.default.mark(Se),x=n.default.mark(Ie),C=n.default.mark(Te),j=n.default.mark(we),S=n.default.mark(Ee),I=n.default.mark(De),T=n.default.mark(Me),w=n.default.mark(ke),E=n.default.mark(Pe),D=n.default.mark(Le),M=n.default.mark(Ne),k=n.default.mark(Ae),P=n.default.mark(Re),L=n.default.mark(Fe),N=n.default.mark(Oe),A=n.default.mark(Ve),R=n.default.mark(Ue),F=n.default.mark(Be),O=n.default.mark(Ge),V=n.default.mark(ze),U=n.default.mark(qe),B=n.default.mark(Ke),G=n.default.mark(He),z=n.default.mark(Ye),q=n.default.mark(We),K=n.default.mark(Je),H=n.default.mark(Qe),Y=n.default.mark(Ze),W=n.default.mark(Xe),J=n.default.mark($e),Q=n.default.mark(et),Z=n.default.mark(tt),X=n.default.mark(at),$=n.default.mark(nt),ee=n.default.mark(ot),te=n.default.mark(st),ae=n.default.mark(rt),ne=n.default.mark(it),oe=n.default.mark(dt),se=n.default.mark(lt),re=n.default.mark(ut),ie=n.default.mark(ct),de=n.default.mark(pt),le=n.default.mark(ft),ue=n.default.mark(mt),ce=n.default.mark(ht),pe=n.default.mark(gt);function fe(e){var t,a=e.modelTypeId,d=e.engine;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_ARITHMETIC_LIST),e.next=3,(0,o.call)(t,i.default.getDataArithmeticList,{modelTypeId:a,engine:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function me(e){var t,a=e.dsId,d=e.dsCycle;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DATA_KPI_TYPE_LIST),e.next=3,(0,o.call)(t,i.default.getDataKpiTypeList,{dsId:a,dsCycle:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function he(e){var t,a=e.dsId,d=e.dsCycle,l=e.kpiClass,u=e.kpiName;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DATA_SOURCE_AUDIT_LIST),e.next=3,(0,o.call)(t,i.default.getDataSourceAuditList,{dsId:a,dsCycle:d,kpiClass:l,kpiName:u});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function ge(e){var t,a=e.ftpId,d=e.filePath;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_FILE_CONTENT_DATA),e.next=3,(0,o.call)(t,i.default.getFileContentData,{ftpId:a,filePath:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),p,this)}function ve(e){var t,a=e.dbName;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_TABLE_NAME),e.next=3,(0,o.call)(t,i.default.getTableNameData,{dbName:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function _e(e){var t,a=e.type,d=e.name,l=e.dsType,u=e.dataType,c=e.status,p=e.offset,f=e.limit,h=e.sortField,g=e.excludeDataType,v=e.appId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DATA_SOURCE_LIST),e.next=3,(0,o.call)(t,"paging"!==a?i.default.getDataSourceListSummary:i.default.getDataSourceList,{excludeDataType:g,name:d,dsType:l,dataType:u,status:c,offset:p,limit:f,sortField:h,appId:v});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function ye(e){var t,a=e.dsId,d=e.status,l=e._SYNC_INTERVAL;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DATA_CYCLES_LIST),e.next=3,(0,o.call)(t,i.default.getDataCyclesList,{dsId:a,status:d,_SYNC_INTERVAL:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),h,this)}function be(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.SAVE_DATA_SOURCE),a.next=3,(0,o.call)(t,"add"===e.subType?i.default.savePostSource:i.default.updatePutSource,e.modelConfig);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),g,this)}function xe(e){var t,a=e.dsId,d=e.cycleId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.CANCEL_EXECUTE),e.next=3,(0,o.call)(t,i.default.cancelExecute,{dsId:a,cycleId:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),v,this)}function Ce(e){var t,a=e.dsId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.CLEAN_DATA_SOURCE),e.next=3,(0,o.call)(t,i.default.cancelDataSource,{dsId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),_,this)}function je(e){var t,a=e.dsType;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_SOURCE_DROP_DOWN),e.next=3,(0,o.call)(t,i.default.getDropDownData,{dsType:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),y,this)}function Se(e){var t,a=e.metaTplPath,d=e.dataTitleView,l=e.headers;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DB_HEADER_DATA),e.next=3,(0,o.call)(t,i.default.getDbHeaderData,{metaTplPath:a,dataTitleView:d,headers:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),b,this)}function Ie(e){var t,a=e.dsId,d=e.cycleId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.CLEAN_DATA_SOURCE_CYCLES),e.next=3,(0,o.call)(t,i.default.cancelDataSourceCycles,{dsId:a,cycleId:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),x,this)}function Te(e){var t,a=e.viewType,d=e.workFlag,l=e.isUpdate,u=e.modelId,c=e.modelTypeId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DATA_PARAM_MODELTYPE_LIST),e.next=3,(0,o.call)(t,i.default.getDataParamModList,{viewType:a,workFlag:d,isUpdate:l,modelId:u,modelTypeId:c});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),C,this)}function we(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DEEPLEARN_ARITHMETIC),t.next=3,(0,o.call)(e,i.default.getDeepLearnArithmetic);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),j,this)}function Ee(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DATA_SOURCE_INFO),a.next=3,(0,o.call)(t,i.default.getDatasSourcesInfo,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),S,this)}function De(e){var t,a=e.dsId,d=e.cycleId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.UPLOAD_META_DATA),e.next=3,(0,o.call)(t,i.default.uploadMetaData,{dsId:a,cycleId:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),I,this)}function Me(e){var t,a=e.dsId,d=e.cycleId,l=e.fieldConfig;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.SAVE_SOURCE_META_DATAS),e.next=3,(0,o.call)(t,i.default.saveSourceMetaDatas,{dsId:a,cycleId:d,fieldConfig:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),T,this)}function ke(e){var t,a=e.ftpFileName,d=e.type,l=e.filePath,u=e.fileSplitChar,c=e.fileheaderFlag,p=e.ftpId,f=e.metaTplPath,m=e.dataTitleView;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_FTP_PREVIEW_DATA),e.next=3,(0,o.call)(t,i.default.getFtpPreviewDataList,{ftpFileName:a,type:d,filePath:l,fileSplitChar:u,fileheaderFlag:c,ftpId:p,metaTplPath:f,dataTitleView:m});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),w,this)}function Pe(e){var t,a=e.type,d=e.filePath,l=e.fileSplitChar,u=e.fileheaderFlag,c=e.metaTplPath,p=e.dataTitleView;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_FILE_PREVIEW_DATA),e.next=3,(0,o.call)(t,i.default.getFilePreviewDataList,{type:a,filePath:d,fileSplitChar:l,fileheaderFlag:u,metaTplPath:c,dataTitleView:p});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),E,this)}function Le(e){var t,a=e.type,d=e.dbId,l=e.tableName,u=e.cycleMask,c=e.sqlSentence,p=e.metaTplPath,f=e.dataTitleView;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DB_PREVIEW_DATA),e.next=3,(0,o.call)(t,i.default.getDbPreviewDataList,{type:a,dbId:d,tableName:l,cycleMask:u,sqlSentence:c,metaTplPath:p,dataTitleView:f});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),D,this)}function Ne(e){var t,a=e.dsId,d=e.cycleId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DATA_SOURCE_ERROR_LOGS),e.next=3,(0,o.call)(t,i.default.getDatasSourcesErrLogs,{dsId:a,cycleId:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),M,this)}function Ae(e){var t,a=e.dsId,d=e.dsCycle;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DATA_SOURCE_QUOTE),e.next=3,(0,o.call)(t,i.default.getDataSourceQuote,{dsId:a,dsCycle:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),k,this)}function Re(e){var t,a=e.dsId,d=e.dsCycle;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_CYCLES_REVIEW),e.next=3,(0,o.call)(t,i.default.getCyclesReview,{dsId:a,dsCycle:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),P,this)}function Fe(e){var t,a=e.viewType,d=e.workFlag,l=e.isUpdate,u=e.modelId,c=e.arithmeticId,p=e.name;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_DATA_PARAM_ARITHMETIC_LIST),e.next=3,(0,o.call)(t,i.default.getDataParamAriList,{viewType:a,workFlag:d,isUpdate:l,modelId:u,arithmeticId:c,name:p||null});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),L,this)}function Oe(e){var t,a=e.dsCycle,d=e.dsId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.DELETE_CYCLES_BY_SOURCES_ID),e.next=3,(0,o.call)(t,i.default.deleteCyclesBySourcesIdSend,{dsCycle:a,dsId:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),N,this)}function Ve(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,r.getApiFetch)(s.dataSourceActions,s.types.DELETE_DATA_SOURCE_INFO),a.next=3,(0,o.call)(t,i.default.delDatasSources,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),A,this)}function Ue(){var e,t,a,r,i,d,l,u,c,p,f,m;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_SOURCE_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=void 0!==t&&void 0!==t.type?t.type:"",r=void 0!==t&&void 0!==t.name?t.name:"",i=void 0!==t&&void 0!==t.dsType?t.dsType:"",d=void 0!==t&&void 0!==t.dataType?t.dataType:"",l=void 0!==t&&void 0!==t.status?t.status:"",u=void 0!==t&&void 0!==t.offset?t.offset:"",c=void 0!==t&&void 0!==t.limit?t.limit:"",p=void 0!==t&&void 0!==t.sortField?t.sortField:"",f=void 0!==t&&void 0!==t.appId?t.appId:"",m=void 0!==t&&void 0!==t.excludeDataType?t.excludeDataType:"",n.next=17,(0,o.call)(_e,{type:a,name:r,dsType:i,dataType:d,status:l,offset:u,limit:c,sortField:p,excludeDataType:m,appId:f});case 17:n.next=0;break;case 19:case"end":return n.stop()}}),R,this)}function Be(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.takeEvery)(s.types.GET_DATA_CYCLES_LIST_REQUEST,n.default.mark((function e(t){var a,s,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.payload,s=a.dsId,r=a.status,e.next=3,(0,o.call)(ye,{dsId:s,status:r});case 3:case"end":return e.stop()}}),e,this)})));case 2:case"end":return e.stop()}}),F,this)}function Ge(){var e,t,a,r,i,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_SOURCE_AUDIT_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.dsCycle,i=t.kpiClass,d=t.kpiName,n.next=8,(0,o.call)(he,{dsId:a,dsCycle:r,kpiClass:i,kpiName:d});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),O,this)}function ze(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_KPI_TYPE_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.dsCycle,n.next=8,(0,o.call)(me,{dsId:a,dsCycle:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),V,this)}function qe(){var e,t,a,r,i,d,l,u;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_PARAM_MODELTYPE_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.viewType,r=t.workFlag,i=t.isUpdate,d=t.modelId,l=t.modelTypeId,u=t.type,n.next=8,(0,o.call)(Te,{viewType:a,workFlag:r,isUpdate:i,modelId:d,modelTypeId:l,type:u});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),U,this)}function Ke(){var e,t,a,r,i,d,l,u,c;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_PARAM_ARITHMETIC_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.viewType,r=t.workFlag,i=t.isUpdate,d=t.modelId,l=t.arithmeticId,u=t.type,c=t.name,n.next=8,(0,o.call)(Fe,{viewType:a,workFlag:r,isUpdate:i,modelId:d,arithmeticId:l,type:u,name:c});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),B,this)}function He(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_ARITHMETIC_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelTypeId,r=t.engine,n.next=8,(0,o.call)(fe,{modelTypeId:a,engine:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),G,this)}function Ye(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SAVE_SOURCE_META_DATAS_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.cycleId,i=t.fieldConfig,n.next=8,(0,o.call)(Me,{dsId:a,cycleId:r,fieldConfig:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),z,this)}function We(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.UPLOAD_META_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.cycleId,n.next=8,(0,o.call)(De,{dsId:a,cycleId:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),q,this)}function Je(){var e,t,a,r,i,d,l,u,c;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DB_PREVIEW_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.type,r=t.dbId,i=t.tableName,d=t.cycleMask,l=t.sqlSentence,u=t.metaTplPath,c=t.dataTitleView,n.next=8,(0,o.call)(Le,{type:a,dbId:r,tableName:i,cycleMask:d,sqlSentence:l,metaTplPath:u,dataTitleView:c});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),K,this)}function Qe(){var e,t,a,r,i,d,l,u;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_FILE_PREVIEW_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.type,r=t.filePath,i=t.fileSplitChar,d=t.fileheaderFlag,l=t.metaTplPath,u=t.dataTitleView,n.next=8,(0,o.call)(Pe,{type:a,filePath:r,fileSplitChar:i,fileheaderFlag:d,metaTplPath:l,dataTitleView:u});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),H,this)}function Ze(){var e,t,a,r,i,d,l,u,c,p;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_FTP_PREVIEW_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.ftpFileName,r=t.type,i=t.filePath,d=t.fileSplitChar,l=t.fileheaderFlag,u=t.ftpId,c=t.metaTplPath,p=t.dataTitleView,n.next=8,(0,o.call)(ke,{ftpFileName:a,type:r,filePath:i,fileSplitChar:d,fileheaderFlag:l,ftpId:u,metaTplPath:c,dataTitleView:p});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),Y,this)}function Xe(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SAVE_DATA_SOURCE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.modelConfig,n.next=8,(0,o.call)(be,{modelConfig:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),W,this)}function $e(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_SOURCE_ERROR_LOGS_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.cycleId,n.next=8,(0,o.call)(Ne,{dsId:a,cycleId:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),J,this)}function et(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_SOURCE_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,n.next=8,(0,o.call)(Ee,{dsId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),Q,this)}function tt(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_DATA_SOURCE_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(Ve,a);case 8:if(r=n.sent,!r.success){n.next=13;break}return n.next=13,(0,o.put)(s.dataSourceActions.deleteDataSourceFromState({dsId:a}));case 13:n.next=0;break;case 15:case"end":return n.stop()}}),Z,this)}function at(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_CYCLES_BY_SOURCES_ID_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsCycle,r=t.dsId,n.next=8,(0,o.call)(Oe,{dsCycle:a,dsId:r});case 8:if(i=n.sent,!i.success){n.next=13;break}return n.next=13,(0,o.put)(s.dataSourceActions.deleteCyclesBySourcesIdFromState({dsCycle:a,dsId:r}));case 13:n.next=0;break;case 15:case"end":return n.stop()}}),X,this)}function nt(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_SOURCE_QUOTE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.dsCycle,n.next=8,(0,o.call)(Ae,{dsId:a,dsCycle:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),$,this)}function ot(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_CYCLES_REVIEW_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.dsCycle,n.next=8,(0,o.call)(Re,{dsId:a,dsCycle:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),ee,this)}function st(e,t){return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.prev=0;case 1:return a.next=4,(0,r.delay)(t||5e3);case 4:return console.log("get datasource list"),a.next=7,(0,o.call)(ye,e);case 7:a.next=1;break;case 9:return a.prev=9,a.next=12,(0,o.cancelled)();case 12:if(!a.sent){a.next=14;break}console.log("canceled sync datasource list");case 14:return a.finish(9);case 15:case"end":return a.stop()}}),te,this,[[0,,9,15]])}function rt(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=void 0,t.next=3,(0,o.takeLatest)(s.types.REFRESH_DATA_CYCLES_LIST_REQUEST,n.default.mark((function t(a){var s,r,i,d,l;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=a.payload,i=(r=s||{})._SYNC,d=r._SYNC_INTERVAL,l={dsId:s.dsId,status:s.status,_SYNC_INTERVAL:d},!e){t.next=6;break}return t.next=6,(0,o.cancel)(e);case 6:if(!0!==i){t.next=11;break}return console.log(":::start sync datasource list,interval:"+d/1e3+"s"),t.next=10,(0,o.fork)(st,l,d);case 10:e=t.sent;case 11:return t.next=13,(0,o.call)(ye,l);case 13:case"end":return t.stop()}}),t,this)})));case 3:return t.next=5,(0,o.takeLatest)(s.types.STOP_INTERVAL_GET_CYCLES,n.default.mark((function t(){return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}return console.log(":::cancel sync datasource list"),t.next=4,(0,o.cancel)(e);case 4:case"end":return t.stop()}}),t,this)})));case 5:case"end":return t.stop()}}),ae,this)}function it(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_DEEPLEARN_ARITHMETIC_REQUEST);case 3:return e.next=5,(0,o.call)(we);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),ne,this)}function dt(){var e,t,a,d,l,u,c;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_PIC_PREVIEW_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.ftpId,d=t.filePath,l=t.fileType,u=t.isCache,c=(0,r.getApiFetch)(s.dataSourceActions,s.types.GET_PIC_PREVIEW_DATA),n.next=9,(0,o.call)(c,i.default.getPicPreviewData,{isCache:u,fileType:l,ftpId:a,filePath:d});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),oe,this)}function lt(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_TABLE_NAME_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dbName,n.next=8,(0,o.call)(ve,{dbName:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),se,this)}function ut(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_FILE_CONTENT_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.ftpId,r=t.filePath,n.next=8,(0,o.call)(ge,{ftpId:a,filePath:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),re,this)}function ct(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CANCEL_EXECUTE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.cycleId,n.next=8,(0,o.call)(xe,{dsId:a,cycleId:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),ie,this)}function pt(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CLEAN_DATA_SOURCE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,n.next=8,(0,o.call)(Ce,{dsId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),de,this)}function ft(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CLEAN_DATA_SOURCE_CYCLES_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.cycleId,n.next=8,(0,o.call)(Ie,{dsId:a,cycleId:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),le,this)}function mt(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DB_HEADER_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.metaTplPath,r=t.dataTitleView,i=t.headers,n.next=8,(0,o.call)(Se,{metaTplPath:a,dataTitleView:r,headers:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),ue,this)}function ht(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_SOURCE_DROP_DOWN_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsType,n.next=8,(0,o.call)(je,{dsType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),ce,this)}function gt(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(ht)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(mt)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(pt)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(ft)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(ct)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(ut)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(lt)]);case 14:return e.next=16,(0,o.all)([(0,o.fork)(ot)]);case 16:return e.next=18,(0,o.all)([(0,o.fork)(it)]);case 18:return e.next=20,(0,o.all)([(0,o.fork)(rt)]);case 20:return e.next=22,(0,o.all)([(0,o.fork)(nt)]);case 22:return e.next=24,(0,o.all)([(0,o.fork)(at)]);case 24:return e.next=26,(0,o.all)([(0,o.fork)($e)]);case 26:return e.next=28,(0,o.all)([(0,o.fork)(tt)]);case 28:return e.next=30,(0,o.all)([(0,o.fork)(et)]);case 30:return e.next=32,(0,o.all)([(0,o.fork)(Xe)]);case 32:return e.next=34,(0,o.all)([(0,o.fork)(Ze)]);case 34:return e.next=36,(0,o.all)([(0,o.fork)(Qe)]);case 36:return e.next=38,(0,o.all)([(0,o.fork)(Je)]);case 38:return e.next=40,(0,o.all)([(0,o.fork)(We)]);case 40:return e.next=42,(0,o.all)([(0,o.fork)(Ye)]);case 42:return e.next=44,(0,o.all)([(0,o.fork)(Ue)]);case 44:return e.next=46,(0,o.all)([(0,o.fork)(Be)]);case 46:return e.next=48,(0,o.all)([(0,o.fork)(Ge)]);case 48:return e.next=50,(0,o.all)([(0,o.fork)(ze)]);case 50:return e.next=52,(0,o.all)([(0,o.fork)(Ke)]);case 52:return e.next=54,(0,o.all)([(0,o.fork)(qe)]);case 54:return e.next=56,(0,o.all)([(0,o.fork)(He)]);case 56:return e.next=58,(0,o.all)([(0,o.fork)(dt)]);case 58:case"end":return e.stop()}}),pe,this)}},"./src/redux/sagas/devCenter.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=_;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/devCenter.js"),r=d(a("./src/redux/services/devCenter.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(m),u=n.default.mark(h),c=n.default.mark(g),p=n.default.mark(v),f=n.default.mark(_);function m(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_API_GROUPS_REQUEST);case 3:return e=n.sent,t=e.payload,a=(t||{}).isOpen,d=(0,i.getApiFetch)(s.devCenterActions,s.types.GET_API_GROUPS),n.next=9,(0,o.call)(d,r.default.getApiGroups,a);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),l,this)}function h(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_APIS_REQUEST);case 3:return e=n.sent,t=e.payload,a=(t||{}).groupId,d=(0,i.getApiFetch)(s.devCenterActions,s.types.GET_APIS),n.next=9,(0,o.call)(d,r.default.getApisByGroupId,a);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),u,this)}function g(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_API_JSON_REQUEST);case 3:return e=n.sent,t=e.payload,a=(t||{}).apiId,d=(0,i.getApiFetch)(s.devCenterActions,s.types.GET_API_JSON),n.next=9,(0,o.call)(d,r.default.getApiJson,{apiId:a});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),c,this)}function v(){var e,t,a,d,l,u;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_API_DOC_URL_REQUEST);case 3:return e=n.sent,t=e.payload,d=(a=t||{}).apiGroup,l=a.serviceId,u=(0,i.getApiFetch)(s.devCenterActions,s.types.GET_API_DOC_URL),n.next=9,(0,o.call)(u,r.default.getApiDocUrl,{serviceId:l,apiGroup:d});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),p,this)}function _(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(m)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(h)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(g)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(v)]);case 8:case"end":return e.stop()}}),f,this)}},"./src/redux/sagas/dragDropModel.js":function(e,t,a){"use strict";t.__esModule=!0;var n=p(a("./node_modules/babel-runtime/helpers/extends.js")),o=p(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=G;var s=a("./node_modules/redux-saga/es/effects.js"),r=p(a("./node_modules/lodash/lodash.js")),i=a("./src/redux/reducers/dragDrop/index.js"),d=p(a("./src/redux/services/dragDropModel.js")),l=a("./src/redux/sagas/utils.js"),u=p(a("./node_modules/js-file-download/file-download.js")),c=p(a("./src/module/dragDrop/events.js"));function p(e){return e&&e.__esModule?e:{default:e}}var f=o.default.mark(E),m=o.default.mark(D),h=o.default.mark(M),g=o.default.mark(k),v=o.default.mark(P),_=o.default.mark(L),y=o.default.mark(N),b=o.default.mark(A),x=o.default.mark(R),C=o.default.mark(F),j=o.default.mark(O),S=o.default.mark(V),I=o.default.mark(U),T=o.default.mark(B),w=o.default.mark(G);function E(){var e;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,(0,s.take)(i.pickNodesActionTypes.GET_PICK_NODES_REQUEST);case 3:return e=(0,l.getApiFetch)(i.pickNodesActions,i.pickNodesActionTypes.GET_PICK_NODES),t.next=6,(0,s.call)(e,d.default.getPickNodeList);case 6:t.next=0;break;case 8:case"end":return t.stop()}}),f,this)}function D(){var e,t,a,n,r;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.GET_DRAG_MODEL_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelId,n=t.isPredict,r=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.GET_DRAG_MODEL),o.next=9,(0,s.call)(r,d.default.getDragModel,{modelId:a,isPredict:n});case 9:o.next=0;break;case 11:case"end":return o.stop()}}),m,this)}function M(){var e,t,a,n;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.CREATE_MODEL_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelInfo,n=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.CREATE_MODEL),o.next=9,(0,s.call)(n,d.default.createModel,a);case 9:o.next=0;break;case 11:case"end":return o.stop()}}),h,this)}function k(){var e,t,a,n;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.UPDATE_MODEL_INFO_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelInfo,n=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.UPDATE_MODEL_INFO),o.next=9,(0,s.call)(n,d.default.updateModelInfo,a);case 9:o.next=0;break;case 11:case"end":return o.stop()}}),g,this)}function P(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.takeLatest)(i.dragDropModelActionTypes.SAVE_DRAG_MODEL_JSON_REQUEST,o.default.mark((function e(t){var a,u,c,p,f,m;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.payload,u=a.modelId,c=a.modelJson,p=a.isPredict,f=a._SYNC_INTERVAL,m=(0,l.getApiFetch)(i.dragDropModelActions,r.default.isNil(f)?i.dragDropModelActionTypes.SAVE_DRAG_MODEL_JSON:i.dragDropModelActionTypes.AUTO_SAVE_DRAG_MODEL_JSON),e.next=5,(0,s.call)(m,d.default.saveDragModelJSON,(0,n.default)({modelId:u,modelJson:c,isPredict:p},f&&{_SYNC_INTERVAL:f}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));case 2:case"end":return e.stop()}}),v,this)}function L(){var e,t,a,n,l,u,c;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.EXECUTE_DRAG_MODEL_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelId,n=t.modelJson,l=t.isPredict,u=t.execToNode,o.prev=6,o.next=9,(0,s.call)(d.default.executeDragModel,{modelId:a,modelJson:n,isPredict:l,nodeId:u});case 9:if(1!==(c=o.sent).code){o.next=13;break}return o.next=13,(0,s.put)(i.dragDropModelActions.executeDragModelSuccess({data:c.data}));case 13:o.next=24;break;case 15:if(o.prev=15,o.t0=o.catch(6),"-6001"!==r.default.toString(r.default.get(o.t0,"code"))){o.next=22;break}return o.next=20,(0,s.put)(i.dragDropModelActions.executeDragModelFailure({error:"@KERNEL_SESSION_EXPIRE@"+(null!==u?u:"")}));case 20:o.next=24;break;case 22:return o.next=24,(0,s.put)(i.dragDropModelActions.executeDragModelFailure({error:r.default.get(o.t0,"message")||r.default.get(o.t0,"error")||"error"}));case 24:o.next=0;break;case 26:case"end":return o.stop()}}),_,this,[[6,15]])}function N(){var e,t,a,n,r;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.PAUSE_EXECUTE_DRAG_MODEL_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelId,n=t.isPredict,r=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.PAUSE_EXECUTE_DRAG_MODEL),o.next=9,(0,s.call)(r,d.default.pauseExecuteDragModel,{modelId:a,isPredict:n});case 9:o.next=0;break;case 11:case"end":return o.stop()}}),y,this)}function A(){var e,t,a,n,r;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.UPDATE_EXEC_STATUS_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelId,n=t.isPredict,r=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.UPDATE_EXEC_STATUS),o.next=9,(0,s.call)(r,d.default.getUpdateExecStatus,{modelId:a,isPredict:n});case 9:o.next=0;break;case 11:case"end":return o.stop()}}),b,this)}function R(){var e,t,a,n,r,u,c,p,f,m;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.SAVE_MODEL_RESULT_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelId,n=t.nodeModelName,r=t.nodeModelDesc,u=t.nodeModelFile,c=t.arithId,p=t.modelConf,f=t.isPredict,m=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.SAVE_MODEL_RESULT),o.next=9,(0,s.call)(m,d.default.saveModelResult,{modelId:a,nodeModelName:n,nodeModelDesc:r,nodeModelFile:u,modelConf:p,arithId:c,isPredict:f});case 9:o.next=0;break;case 11:case"end":return o.stop()}}),x,this)}function F(){var e,t,a,n,r,u;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.GET_NODE_EXEC_LOG_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelId,n=t.nodeId,r=t.isPredict,u=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.GET_NODE_EXEC_LOG),o.next=9,(0,s.call)(u,d.default.getNodeExecLog,{modelId:a,nodeId:n,isPredict:r});case 9:o.next=0;break;case 11:case"end":return o.stop()}}),C,this)}function O(){var e,t,a,n,r,u,c,p,f;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.GET_NODE_EXEC_RESULT_REQUEST);case 3:if(e=o.sent,t=e.payload,a=t.modelId,n=t.nodeId,r=t.isPredict,u=t.type,c=t.airthNodeId,p=t.predictNodeId,f=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.GET_NODE_EXEC_RESULT),"GET_DATA"!==u){o.next=12;break}return o.next=10,(0,s.call)(f,d.default.getNodeExecData,{modelId:a,nodeId:n,isPredict:r});case 10:o.next=14;break;case 12:return o.next=14,(0,s.call)(f,d.default.getNodeExecResult,{modelId:a,nodeId:n,isPredict:r,airthNodeId:c,predictNodeId:p});case 14:o.next=0;break;case 16:case"end":return o.stop()}}),j,this)}function V(){var e,t,a,n,c,p,f,m,h;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.DOWNLOAD_IPYNB_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelId,n=t.modelJson,c=t.isPredict,p=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.DOWNLOAD_IPYNB),o.next=9,(0,s.call)(p,d.default.downloadIpynb,{modelId:a,modelJson:n,isPredict:c});case 9:f=o.sent,m=f.success,h=f.result,!0===m&&(0,u.default)(JSON.stringify(r.default.get(h,"data",{})),a+".ipynb"),o.next=0;break;case 15:case"end":return o.stop()}}),S,this)}function U(){var e,t,a,n,u,p,f,m;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,(0,s.take)(i.dragDropModelActionTypes.PUBLISH_MODEL_TO_REPO_REQUEST);case 3:return e=o.sent,t=e.payload,a=t.modelId,n=t.modelJson,u=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.PUBLISH_MODEL_TO_REPO),o.next=9,(0,s.call)(u,d.default.publishModelToRepo,{modelId:a,modelJson:n});case 9:p=o.sent,f=p.success,m=p.result,!0===f&&c.default.emit("DRAGDROP:PUBLISH_MODEL_REPO",{modelId:r.default.get(m,"data.repoModel.modelId"),version:r.default.get(m,"data.repoModelVersion.version")}),o.next=0;break;case 15:case"end":return o.stop()}}),I,this)}function B(){var e;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,(0,s.take)(i.dragDropModelActionTypes.GET_JUPYTER_INFO_REQUEST);case 3:return e=(0,l.getApiFetch)(i.dragDropModelActions,i.dragDropModelActionTypes.GET_JUPYTER_INFO),t.next=6,(0,s.call)(e,d.default.getJupyterInfo);case 6:t.next=0;break;case 8:case"end":return t.stop()}}),T,this)}function G(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.all)([(0,s.fork)(E)]);case 2:return e.next=4,(0,s.all)([(0,s.fork)(D)]);case 4:return e.next=6,(0,s.all)([(0,s.fork)(k)]);case 6:return e.next=8,(0,s.all)([(0,s.fork)(M)]);case 8:return e.next=10,(0,s.all)([(0,s.fork)(P)]);case 10:return e.next=12,(0,s.all)([(0,s.fork)(L)]);case 12:return e.next=14,(0,s.all)([(0,s.fork)(N)]);case 14:return e.next=16,(0,s.all)([(0,s.fork)(A)]);case 16:return e.next=18,(0,s.all)([(0,s.fork)(R)]);case 18:return e.next=20,(0,s.all)([(0,s.fork)(F)]);case 20:return e.next=22,(0,s.all)([(0,s.fork)(O)]);case 22:return e.next=24,(0,s.all)([(0,s.fork)(V)]);case 24:return e.next=26,(0,s.all)([(0,s.fork)(U)]);case 26:return e.next=28,(0,s.all)([(0,s.fork)(B)]);case 28:case"end":return e.stop()}}),w,this)}},"./src/redux/sagas/enumDic.js":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/helpers/extends.js")),o=l(a("./node_modules/babel-runtime/regenerator/index.js"));t.initLoadEnumDic=f,t.default=v;var s=a("./node_modules/redux-saga/es/effects.js"),r=l(a("./node_modules/lodash/lodash.js")),i=a("./src/redux/reducers/enumDic.js"),d=l(a("./src/redux/services/enumDic.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=o.default.mark(f),c=o.default.mark(m),p=o.default.mark(v);function f(){var e,t;return o.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,(0,s.call)(d.default.getEnumDicList);case 3:return e=a.sent,t=g(h(e.data)),a.next=7,(0,s.put)(i.enumDicActions.loadEnumDicSuccess(t));case 7:return a.abrupt("return",!0);case 10:return a.prev=10,a.t0=a.catch(0),a.next=14,(0,s.put)(i.enumDicActions.loadEnumDicFailure(a.t0));case 14:return a.abrupt("return",!1);case 15:case"end":return a.stop()}}),u,this,[[0,10]])}function m(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,s.take)(i.types.LOAD_ENUM_DIC_REQUEST);case 3:return e.next=5,(0,s.call)(f);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),c,this)}var h=function(e){return r.default.isArray(e)?e.map((function(e){return{group:r.default.get(e,"enumGroup"),code:r.default.get(e,"enumCode"),value:r.default.get(e,"enumValue"),txt:r.default.get(e,"enumTxt"),desc:r.default.get(e,"enumDesc"),enumSortIndex:r.default.get(e,"enumSortIndex"),enumDefFlag:r.default.get(e,"enumDefFlag")}})):[]},g=function(e){var t=r.default.groupBy(e,"group"),a={dicHash:{},dicData:{},dicMap:{}};try{Object.keys(t).map((function(e){var o=r.default.map(t[e],(function(e){return r.default.omit(e,["group"])}));a.dicHash[e]=r.default.keyBy(o,"value"),a.dicData[e]=r.default.map(o,"value"),a.dicMap[e]=o.reduce((function(e,t){var a,o=t.code,s=t.value;return(0,n.default)({},e,((a={})[o]=s,a))}),{})}))}catch(e){console.error("Convert of enum dictionary data error\uff01"+e)}return a};function v(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.all)([(0,s.fork)(m)]);case 2:case"end":return e.stop()}}),p,this)}},"./src/redux/sagas/externalModel.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=S;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/externalModel.js"),r=d(a("./src/redux/services/externalModel.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(v),u=n.default.mark(_),c=n.default.mark(y),p=n.default.mark(b),f=n.default.mark(x),m=n.default.mark(C),h=n.default.mark(j),g=n.default.mark(S);function v(){var e,t,a,d,u,c;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_EXTERNAL_MODEL_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelName,d=t.limit,u=t.offset,c=(0,i.getApiFetch)(s.externalModelActions,s.types.GET_EXTERNAL_MODEL_LIST),n.next=9,(0,o.call)(c,r.default.getExternalModelList,{modelName:a,limit:d,offset:u});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),l,this)}function _(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.takeLatest)(s.types.VALIDATE_REPEAT_REQUEST,n.default.mark((function e(t){var a,d,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.payload,d=a.modelId,l=a.modelName,u=(0,i.getApiFetch)(s.externalModelActions,s.types.VALIDATE_REPEAT),e.next=5,(0,o.call)(u,r.default.validateRepeat,{modelId:d,modelName:l});case 5:case"end":return e.stop()}}),e,this)})));case 2:case"end":return e.stop()}}),u,this)}function y(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SAVE_EXTERNAL_MODEL_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.externalModelActions,s.types.SAVE_EXTERNAL_MODEL),d=t.model,n.next=9,(0,o.call)(a,r.default.saveExternalModel,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),c,this)}function b(){var e,t,a,d,l,u;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DEPLOY_EXTERNAL_MODEL_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelId,d=t.deployFtp,l=t.deployPath,u=(0,i.getApiFetch)(s.externalModelActions,s.types.DEPLOY_EXTERNAL_MODEL),n.next=9,(0,o.call)(u,r.default.deployExternalModel,{modelId:a,deployFtp:d,deployPath:l});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),p,this)}function x(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_EXTERNAL_MODEL_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.externalModelActions,s.types.DELETE_EXTERNAL_MODEL),d=t.modelId,n.next=9,(0,o.call)(a,r.default.deleteExternalModel,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),f,this)}function C(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.COMMIT_TRAIN_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.externalModelActions,s.types.COMMIT_TRAIN),d=t.modelId,n.next=9,(0,o.call)(a,r.default.commitTrain,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),m,this)}function j(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.STOP_TRAIN_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.externalModelActions,s.types.STOP_TRAIN),d=t.modelId,n.next=9,(0,o.call)(a,r.default.stopTrain,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),h,this)}function S(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(v)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(_)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(y)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(b)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(x)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(C)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(j)]);case 14:case"end":return e.stop()}}),g,this)}},"./src/redux/sagas/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=B(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=z;var o=a("./node_modules/redux-saga/es/effects.js"),s=B(a("./src/redux/sagas/app.js")),r=B(a("./src/redux/sagas/auth.js")),i=B(a("./src/redux/sagas/dashboard.js")),d=B(a("./src/redux/sagas/modelManage.js")),l=B(a("./src/redux/sagas/trainResult.js")),u=B(a("./src/redux/sagas/trainReport.js")),c=B(a("./src/redux/sagas/enumDic.js")),p=B(a("./src/redux/sagas/indiSet.js")),f=B(a("./src/redux/sagas/dataSource.js")),m=B(a("./src/redux/sagas/busiTypes.js")),h=B(a("./src/redux/sagas/modelBase.js")),g=B(a("./src/redux/sagas/dataBases.js")),v=B(a("./src/redux/sagas/dataDispose.js")),_=B(a("./src/redux/sagas/affiche.js")),y=B(a("./src/redux/sagas/sysManager/sysManager.js")),b=B(a("./src/redux/sagas/sysManager/userManager.js")),x=B(a("./src/redux/sagas/sysManager/rolesManager.js")),C=B(a("./src/redux/sagas/sysManager/userGroupsManager.js")),j=B(a("./src/redux/sagas/sysManager/appTopicBasesManager.js")),S=B(a("./src/redux/sagas/sysManager/ftpBasesManager.js")),I=B(a("./src/redux/sagas/sysManager/dataBasesManager.js")),T=B(a("./src/redux/sagas/sysManager/quotaTenantManager.js")),w=B(a("./src/redux/sagas/sysManager/platFormManager.js")),E=B(a("./src/redux/sagas/sysManager/annotationManager.js")),D=B(a("./src/redux/sagas/sysManager/interfaceManager.js")),M=B(a("./src/redux/sagas/sysManager/tagGroupsManager.js")),k=B(a("./src/redux/sagas/sysManager/clientAppManager.js")),P=B(a("./src/redux/sagas/sysManager/apiPermissionConfManager.js")),L=B(a("./src/redux/sagas/sysManager/switchManager.js")),N=B(a("./src/redux/sagas/sysManager/sceneDemoManager.js")),A=B(a("./src/redux/sagas/externalModel.js")),R=B(a("./src/redux/sagas/devCenter.js")),F=B(a("./src/redux/sagas/resTransfer.js")),O=B(a("./src/redux/sagas/dragDropModel.js")),V=B(a("./src/redux/sagas/checkName.js")),U=B(a("./src/redux/sagas/ocrManage.js"));function B(e){return e&&e.__esModule?e:{default:e}}var G=n.default.mark(z);function z(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(N.default)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(P.default)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(k.default)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(h.default)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(w.default)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(T.default)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(I.default)]);case 14:return e.next=16,(0,o.all)([(0,o.fork)(S.default)]);case 16:return e.next=18,(0,o.all)([(0,o.fork)(j.default)]);case 18:return e.next=20,(0,o.all)([(0,o.fork)(C.default)]);case 20:return e.next=22,(0,o.all)([(0,o.fork)(g.default)]);case 22:return e.next=24,(0,o.all)([(0,o.fork)(s.default)]);case 24:return e.next=26,(0,o.all)([(0,o.fork)(c.default)]);case 26:return e.next=28,(0,o.all)([(0,o.fork)(r.default)]);case 28:return e.next=30,(0,o.all)([(0,o.fork)(i.default)]);case 30:return e.next=32,(0,o.all)([(0,o.fork)(d.default)]);case 32:return e.next=34,(0,o.all)([(0,o.fork)(l.default)]);case 34:return e.next=36,(0,o.all)([(0,o.fork)(u.default)]);case 36:return e.next=38,(0,o.all)([(0,o.fork)(p.default)]);case 38:return e.next=40,(0,o.all)([(0,o.fork)(f.default)]);case 40:return e.next=42,(0,o.all)([(0,o.fork)(m.default)]);case 42:return e.next=44,(0,o.all)([(0,o.fork)(v.default)]);case 44:return e.next=46,(0,o.all)([(0,o.fork)(_.default)]);case 46:return e.next=48,(0,o.all)([(0,o.fork)(y.default)]);case 48:return e.next=50,(0,o.all)([(0,o.fork)(b.default)]);case 50:return e.next=52,(0,o.all)([(0,o.fork)(x.default)]);case 52:return e.next=54,(0,o.all)([(0,o.fork)(A.default)]);case 54:return e.next=56,(0,o.all)([(0,o.fork)(R.default)]);case 56:return e.next=58,(0,o.all)([(0,o.fork)(F.default)]);case 58:return e.next=60,(0,o.all)([(0,o.fork)(O.default)]);case 60:return e.next=62,(0,o.all)([(0,o.fork)(E.default)]);case 62:return e.next=64,(0,o.all)([(0,o.fork)(D.default)]);case 64:return e.next=66,(0,o.all)([(0,o.fork)(M.default)]);case 66:return e.next=68,(0,o.all)([(0,o.fork)(L.default)]);case 68:return e.next=70,(0,o.all)([(0,o.fork)(V.default)]);case 70:return e.next=72,(0,o.all)([(0,o.fork)(U.default)]);case 72:case"end":return e.stop()}}),G,this)}},"./src/redux/sagas/indiSet.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=X;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/indiSet.js"),r=d(a("./src/redux/services/indiSet.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(k),u=n.default.mark(P),c=n.default.mark(L),p=n.default.mark(N),f=n.default.mark(A),m=n.default.mark(R),h=n.default.mark(F),g=n.default.mark(O),v=n.default.mark(V),_=n.default.mark(U),y=n.default.mark(B),b=n.default.mark(G),x=n.default.mark(z),C=n.default.mark(q),j=n.default.mark(K),S=n.default.mark(H),I=n.default.mark(Y),T=n.default.mark(W),w=n.default.mark(J),E=n.default.mark(Q),D=n.default.mark(Z),M=n.default.mark(X);function k(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.takeLatest)(s.types.LOAD_INDI_LIST_REQUEST,n.default.mark((function e(t){var a,d,l,u,c;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.payload,d=a.dsId,l=a.dsCycle,u=a.auditFlag,c=(0,i.getApiFetch)(s.indiSetActions,s.types.LOAD_INDI_LIST),e.next=4,(0,o.call)(c,r.default.getIndiListByDsId,{dsId:d,dsCycle:l,auditFlag:u});case 4:case"end":return e.stop()}}),e,this)})));case 2:case"end":return e.stop()}}),l,this)}function P(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.indiSetActions,s.types.GET_KPI_TYPES_LIST),t.next=3,(0,o.call)(e,r.default.getKpiTypesList);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),u,this)}function L(e){var t,a=e.typeId,d=e.kpisetName,l=e.dsId,u=e.excludeDataType;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.indiSetActions,s.types.GET_KPI_DATA_LIST),e.next=3,(0,o.call)(t,r.default.getKpiDataList,{typeId:a,kpisetName:d,dsId:l,excludeDataType:u});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function N(e){var t,a=e.kpisetId,d=e.cycle;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.indiSetActions,s.types.GET_KPI_SET_LIST),e.next=3,(0,o.call)(t,r.default.getKpiSetDataList,{kpisetId:a,cycle:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),p,this)}function A(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.indiSetActions,s.types.DELETE_KPI_SET),a.next=3,(0,o.call)(t,r.default.deleteKpiSet,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),f,this)}function R(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.indiSetActions,s.types.UPDATE_KPI_DATA),a.next=3,(0,o.call)(t,r.default.updateKpiData,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),m,this)}function F(e){var t,a=e.kpisetId,d=e.kpisetName;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.indiSetActions,s.types.CHECK_KPI_NAME),e.next=3,(0,o.call)(t,r.default.checkKpiNames,{kpisetId:a,kpisetName:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),h,this)}function O(e){var t,a=e.kpisetParam,d=e.subType;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.indiSetActions,s.types.SUBMIT_KPI_DATA),e.next=3,(0,o.call)(t,"edit"!==d?r.default.submitKpiData:r.default.submitUpdataKpiData,a);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),g,this)}function V(e){var t,a=e.kpisetId,d=e.dsCycle,l=e.kpiName,u=e.kpiClass;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.indiSetActions,s.types.GET_REVIEW_RESULT),e.next=3,(0,o.call)(t,r.default.getReviewResult,{kpisetId:a,dsCycle:d,kpiName:l,kpiClass:u});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),v,this)}function U(e){var t,a=e.kpisetId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.indiSetActions,s.types.CANCEL_EXECUTE),e.next=3,(0,o.call)(t,r.default.cancelExecute,{kpisetId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),_,this)}function B(e){var t,a=e.dsId,d=e.dsCycle,l=e.fieldEnName;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.indiSetActions,s.types.GET_DIAGRAM_MAP),e.next=3,(0,o.call)(t,r.default.getDiagramUrl,{dsId:a,dsCycle:d,fieldEnName:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),y,this)}function G(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_KPI_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.kpisetParam,r=t.subType,n.next=8,(0,o.call)(O,{kpisetParam:a,subType:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),b,this)}function z(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_KPI_SET_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.kpisetId,r=t.cycle,n.next=8,(0,o.call)(N,{kpisetId:a,cycle:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),x,this)}function q(){var e,t,a,r,i,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_KPI_DATA_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.typeId,r=t.kpisetName,i=t.dsId,d=t.excludeDataType,n.next=8,(0,o.call)(L,{typeId:a,kpisetName:r,dsId:i,excludeDataType:d});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),C,this)}function K(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_KPI_TYPES_LIST_REQUEST);case 3:return e.next=5,(0,o.call)(P);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),j,this)}function H(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CHECK_KPI_NAME_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.kpisetId,r=t.kpisetName,n.next=8,(0,o.call)(F,{kpisetId:a,kpisetName:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),S,this)}function Y(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.UPDATE_KPI_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(R,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),I,this)}function W(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_KPI_SET_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(A,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),T,this)}function J(){var e,t,a,r,i,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_REVIEW_RESULT_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.kpisetId,r=t.dsCycle,i=t.kpiName,d=t.kpiClass,n.next=8,(0,o.call)(V,{kpisetId:a,dsCycle:r,kpiName:i,kpiClass:d});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),w,this)}function Q(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DIAGRAM_MAP_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dsId,r=t.dsCycle,i=t.fieldEnName,n.next=8,(0,o.call)(B,{dsId:a,dsCycle:r,fieldEnName:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),E,this)}function Z(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CANCEL_EXECUTE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.kpisetId,n.next=8,(0,o.call)(U,{kpisetId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),D,this)}function X(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(Z)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(Q)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(J)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(W)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(Y)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(H)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(k)]);case 14:return e.next=16,(0,o.all)([(0,o.fork)(K)]);case 16:return e.next=18,(0,o.all)([(0,o.fork)(q)]);case 18:return e.next=20,(0,o.all)([(0,o.fork)(z)]);case 20:return e.next=22,(0,o.all)([(0,o.fork)(G)]);case 22:case"end":return e.stop()}}),M,this)}},"./src/redux/sagas/modelBase.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=_;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/modelBase.js"),r=d(a("./src/redux/services/modelBase.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(m),u=n.default.mark(h),c=n.default.mark(g),p=n.default.mark(v),f=n.default.mark(_);function m(e){var t,a=e.modelId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.modelBaseActions,s.types.DELETE_MODEL_BASE),e.next=3,(0,o.call)(t,r.default.deleteModelBase,{modelId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function h(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_MODEL_BASE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelInfo,n.next=8,(0,o.call)(m,{modelId:a.modelId});case 8:if(r=n.sent,!r.success){n.next=13;break}return n.next=13,(0,o.put)(s.modelBaseActions.deleteModelBaseFromState({modelId:a.modelId}));case 13:n.next=0;break;case 15:case"end":return n.stop()}}),u,this)}function g(){var e,t,a,d,l,u,p,f,m,h;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_MODEL_BASE_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.modelBaseActions,s.types.GET_MODEL_BASE_LIST),d=t.repoId,l=t.modelName,u=t.sortType,p=t.dataType,f=t.publishFrom,m=t.labels,h=t.busiType,n.next=9,(0,o.call)(a,r.default.getModelBaseList,{repoId:d,modelName:l,sortType:u,dataType:p,publishFrom:f,labels:m,busiType:h});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),c,this)}function v(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_MODEL_BASE_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.modelBaseActions,s.types.GET_MODEL_BASE_INFO),d=t,n.next=9,(0,o.call)(a,r.default.getModelBaseInfo,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),p,this)}function _(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(h)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(v)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(g)]);case 6:case"end":return e.stop()}}),f,this)}},"./src/redux/sagas/modelManage.js":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=ce;var o=l(a("./node_modules/lodash/lodash.js")),s=a("./node_modules/redux-saga/es/effects.js"),r=a("./src/redux/sagas/utils.js"),i=l(a("./src/redux/services/modelManage.js")),d=a("./src/redux/reducers/modelManage.js");function l(e){return e&&e.__esModule?e:{default:e}}var u=n.default.mark(O),c=n.default.mark(V),p=n.default.mark(U),f=n.default.mark(B),m=n.default.mark(G),h=n.default.mark(z),g=n.default.mark(q),v=n.default.mark(K),_=n.default.mark(H),y=n.default.mark(Y),b=n.default.mark(W),x=n.default.mark(J),C=n.default.mark(Q),j=n.default.mark(Z),S=n.default.mark(X),I=n.default.mark($),T=n.default.mark(ee),w=n.default.mark(te),E=n.default.mark(ae),D=n.default.mark(ne),M=n.default.mark(oe),k=n.default.mark(se),P=n.default.mark(re),L=n.default.mark(ie),N=n.default.mark(de),A=n.default.mark(le),R=n.default.mark(ue),F=n.default.mark(ce);function O(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.SUBMIT_MODEL_DATA),a.next=3,(0,s.call)(t,i.default.submitPostModel,e.modelConfig);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),u,this)}function V(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.SUBMIT_MODEL_DATA),a.next=3,(0,s.call)(t,"save"===e.subType?i.default.savePostModel:i.default.updatePutModel,JSON.parse(e.modelConfig));case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),c,this)}function U(e){var t,a=e.modelId,o=e.componentId,l=e.viewType;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.GET_MODULES_CONFIG_DATA),e.next=3,(0,s.call)(t,i.default.getModulesConfigData,{modelId:a,componentId:o,viewType:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),p,this)}function B(e){var t,a=e.modelId,o=e.manner;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.CANCEL_MODEL),e.next=3,(0,s.call)(t,i.default.cancelModel,{modelId:a,manner:o});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function G(e){var t,a=e.modelId,o=e.manner;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.DELETE_MODEL),e.next=3,(0,s.call)(t,i.default.deleteModel,{modelId:a,manner:o});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function z(e){var t,a=e.modelId,o=e.manner;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.EXECUTE_MODEL),e.next=3,(0,s.call)(t,i.default.executeModel,{modelId:a,manner:o});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),h,this)}function q(e){var t,a=e.modelId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.COPY_MODEL),e.next=3,(0,s.call)(t,i.default.copyModel,{modelId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),g,this)}function K(e){var t,a=e.modelInfo;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.PUBLISH_MODEL),e.next=3,(0,s.call)(t,i.default.publishModel,{modelInfo:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),v,this)}function H(e){var t,a=e.modelId,o=e.taskId,l=e.algName;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.GET_MONITOR_DATA),e.next=3,(0,s.call)(t,i.default.getMonitorData,{modelId:a,taskId:o,algName:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),_,this)}function Y(e){var t,a=e.manner,o=e.modelTypeId,l=e.dsName,u=e.state,c=e.sortType,p=e.modelName,f=e.page,m=e.rows,h=e.language,g=e._SYNC_INTERVAL;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.GET_MODEL_LIST),e.next=3,(0,s.call)(t,i.default.getModelList,{manner:a,modelTypeId:o,state:u,sortType:c,modelName:p,page:f,rows:m,language:h,dsName:l,_SYNC_INTERVAL:g});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),y,this)}function W(e){var t,a=e.modelId,o=e.modelName;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,r.getApiFetch)(d.modelManageActions,d.types.CHECK_MODEL_NAME),a=void 0!==a?a:"",e.next=4,(0,s.call)(t,""!==a?i.default.checkModelName:i.default.checkCodeName,""!==a?{modelId:a,modelName:o}:{modelName:o});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),b,this)}function J(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,r.getApiFetch)(d.modelManageActions,d.types.GET_CREATE_MODEL_ID),t.next=3,(0,s.call)(e,i.default.getCreateModelId);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),x,this)}function Q(e,t){return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.prev=0;case 1:return a.next=4,(0,r.delay)(t||5e3);case 4:return console.log(":::get model list"),a.next=7,(0,s.call)(Y,e);case 7:a.next=1;break;case 9:return a.prev=9,a.next=12,(0,s.cancelled)();case 12:if(!a.sent){a.next=14;break}console.log("canceled sync model list");case 14:return a.finish(9);case 15:case"end":return a.stop()}}),C,this,[[0,,9,15]])}function Z(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=void 0,t.next=3,(0,s.takeLatest)(d.types.GET_MODEL_LIST_REQUEST,n.default.mark((function t(a){var o,r,i,d,l;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=a.payload,i=(r=o||{})._SYNC,d=r._SYNC_INTERVAL,l={modelTypeId:o.modelTypeId||null,state:o.execStatus||"-1",sortType:o.sortField,modelName:o.searchTxt,dsName:o.dsName,manner:o.manner,page:o.page,rows:o.rows,language:o.modelingLanguage,_SYNC_INTERVAL:d||null},!e){t.next=6;break}return t.next=6,(0,s.cancel)(e);case 6:if(!0!==i){t.next=11;break}return console.log(":::start sync model list,interval:"+d/1e3+"s"),t.next=10,(0,s.fork)(Q,l,d);case 10:e=t.sent;case 11:return t.next=13,(0,s.call)(Y,l);case 13:case"end":return t.stop()}}),t,this)})));case 3:return t.next=5,(0,s.takeLatest)(d.types.STOP_SYNC_MODELS,n.default.mark((function t(){return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}return console.log(":::cancel sync model list"),t.next=4,(0,s.cancel)(e);case 4:case"end":return t.stop()}}),t,this)})));case 5:case"end":return t.stop()}}),j,this)}function X(e,t){return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.prev=0;case 1:return a.next=4,(0,r.delay)(t||5e3);case 4:return console.log(":::get model list"),a.next=7,(0,s.call)(H,e);case 7:a.next=1;break;case 9:return a.prev=9,a.next=12,(0,s.cancelled)();case 12:if(!a.sent){a.next=14;break}console.log("canceled sync model list");case 14:return a.finish(9);case 15:case"end":return a.stop()}}),S,this,[[0,,9,15]])}function $(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=void 0,t.next=3,(0,s.takeLatest)(d.types.GET_MONITOR_DATA_REQUEST,n.default.mark((function t(a){var o,r,i,d,l;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=a.payload,i=(r=o||{})._SYNC,d=r._SYNC_INTERVAL,l={modelId:o.modelId,taskId:o.taskId,algName:o.algName},!e){t.next=6;break}return t.next=6,(0,s.cancel)(e);case 6:if(!0!==i){t.next=11;break}return console.log(":::start sync model list,interval:"+d/1e3+"s"),t.next=10,(0,s.fork)(X,l,d);case 10:e=t.sent;case 11:return t.next=13,(0,s.call)(H,l);case 13:case"end":return t.stop()}}),t,this)})));case 3:return t.next=5,(0,s.takeLatest)(d.types.STOP_SYNC_MONITOR_DATA,n.default.mark((function t(){return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}return console.log(":::cancel sync model list"),t.next=4,(0,s.cancel)(e);case 4:case"end":return t.stop()}}),t,this)})));case 5:case"end":return t.stop()}}),I,this)}function ee(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.PUBLISH_MODEL_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelInfo,n.next=8,(0,s.call)(K,{modelInfo:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),T,this)}function te(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.COPY_MODEL_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelInfo,n.next=8,(0,s.call)(q,{modelId:a.modelId});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),w,this)}function ae(){var e,t,a,o,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.EXECUTE_MODEL_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelInfo,o=t.newStatus,n.next=8,(0,s.call)(z,{modelId:a.modelId,manner:a.manner});case 8:if(r=n.sent,!r.success){n.next=13;break}return n.next=13,(0,s.put)(d.modelManageActions.updateModelFromState({modelId:a.modelId,status:o}));case 13:n.next=0;break;case 15:case"end":return n.stop()}}),E,this)}function ne(){var e,t,a,o,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.CANCEL_MODEL_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelInfo,o=t.newStatus,n.next=8,(0,s.call)(B,{modelId:a.modelId,manner:a.manner});case 8:if(r=n.sent,!r.success){n.next=13;break}return n.next=13,(0,s.put)(d.modelManageActions.updateModelFromState({modelId:a.modelId,status:o}));case 13:n.next=0;break;case 15:case"end":return n.stop()}}),D,this)}function oe(){var e,t,a,o;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.DELETE_MODEL_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelInfo,n.next=8,(0,s.call)(G,{modelId:a.modelId,manner:a.manner});case 8:if(o=n.sent,!o.success){n.next=13;break}return n.next=13,(0,s.put)(d.modelManageActions.deleteModelFromState({modelId:a.modelId}));case 13:n.next=0;break;case 15:case"end":return n.stop()}}),M,this)}function se(){var e,t,a,o;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.CHECK_MODEL_NAME_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelId,o=t.modelName,n.next=8,(0,s.call)(W,{modelId:a,modelName:o});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),k,this)}function re(){var e,t,a,o,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.GET_MODULES_CONFIG_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelId,o=t.componentId,r=t.viewType,n.next=8,(0,s.call)(U,{modelId:a,componentId:o,viewType:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),P,this)}function ie(){var e,t,a,o;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.SUBMIT_MODEL_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,o=t.modelConfig,n.next=8,(0,s.call)("save"===a||"update"===a?V:O,{modelConfig:o,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),L,this)}function de(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,s.take)(d.types.GET_CREATE_MODEL_ID_REQUEST);case 3:return e.next=5,(0,s.call)(J);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),N,this)}function le(){var e,t,a,o;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.GET_MODEL_BASIC_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelId,o=(0,r.getApiFetch)(d.modelManageActions,d.types.GET_MODEL_BASIC_INFO),n.next=9,(0,s.call)(o,i.default.getModelInfoByModelId,{modelId:a});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),A,this)}function ue(){var e,t,a,l,u,c,p,f,m,h;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,s.take)(d.types.GOTO_NOTEBOOK_SITE_REQUEST);case 3:if(e=n.sent,t=e.payload,a=t.actionType,l=t.language,u=t.modelName,c=t.engine,p=t.modelId,f=(0,r.getApiFetch)(d.modelManageActions,d.types.GOTO_NOTEBOOK_SITE),m=void 0,"CREATE"!==a){n.next=14;break}return n.next=11,(0,s.call)(f,i.default.getCreateNotebookUrl,{language:l,modelName:u,engine:c});case 11:m=n.sent,n.next=17;break;case 14:return n.next=16,(0,s.call)(f,i.default.getEditNotebookUrl,{modelId:p});case 16:m=n.sent;case 17:if(h=null,1!==o.default.get(m,["result","code"])){n.next=24;break}if(!(h=o.default.get(m,["result","data"],null))){n.next=24;break}return"VIEW"===a&&(h+="&readonly"),n.next=24,(0,s.put)(d.modelManageActions.setNotebookUrl(h));case 24:if(h){n.next=27;break}return n.next=27,(0,s.put)(d.modelManageActions.setNotebookUrl("ERROR"));case 27:n.next=0;break;case 29:case"end":return n.stop()}}),R,this)}function ce(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.all)([(0,s.fork)($)]);case 2:return e.next=4,(0,s.all)([(0,s.fork)(Z)]);case 4:return e.next=6,(0,s.all)([(0,s.fork)(te)]);case 6:return e.next=8,(0,s.all)([(0,s.fork)(ee)]);case 8:return e.next=10,(0,s.all)([(0,s.fork)(ae)]);case 10:return e.next=12,(0,s.all)([(0,s.fork)(ne)]);case 12:return e.next=14,(0,s.all)([(0,s.fork)(oe)]);case 14:return e.next=16,(0,s.all)([(0,s.fork)(se)]);case 16:return e.next=18,(0,s.all)([(0,s.fork)(re)]);case 18:return e.next=20,(0,s.all)([(0,s.fork)(ie)]);case 20:return e.next=22,(0,s.all)([(0,s.fork)(de)]);case 22:return e.next=24,(0,s.all)([(0,s.fork)(le)]);case 24:return e.next=26,(0,s.all)([(0,s.fork)(ue)]);case 26:case"end":return e.stop()}}),F,this)}},"./src/redux/sagas/ocrManage.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=P;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/ocrManage.js"),r=d(a("./src/redux/services/ocrManage.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(x),u=n.default.mark(C),c=n.default.mark(j),p=n.default.mark(S),f=n.default.mark(I),m=n.default.mark(T),h=n.default.mark(w),g=n.default.mark(E),v=n.default.mark(D),_=n.default.mark(M),y=n.default.mark(k),b=n.default.mark(P);function x(){var e,t,a,d,u,c,p,f;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_OCR_TEMPLATE_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.GET_OCR_TEMPLATE_LIST),d=(0,i.getApiFetch)(s.ocrActions,s.types.GET_OCR_TEMPLATE_TYPES),u=t.presetFlag,c=t.templateTypeId,p=t.search,f=t.templateStatus,n.next=10,[(0,o.call)(d,r.default.ocrTemplateTypes),(0,o.call)(a,r.default.ocrTemplateList,{presetFlag:u,templateTypeId:c,search:p,templateStatus:f})];case 10:n.next=0;break;case 12:case"end":return n.stop()}}),l,this)}function C(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_OCR_TEMPLATE_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.GET_OCR_TEMPLATE_INFO),d=(0,i.getApiFetch)(s.ocrActions,s.types.GET_OCR_TEMPLATE_TYPES),l=t,n.next=10,[(0,o.call)(d,r.default.ocrTemplateTypes),(0,o.call)(a,r.default.ocrTemplateInfo,l)];case 10:n.next=0;break;case 12:case"end":return n.stop()}}),u,this)}function j(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_ADJUST_IMAGE_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.GET_ADJUST_IMAGE_INFO),d=t.templateId,l=t.angle,n.next=9,(0,o.call)(a,r.default.adjustImage,{templateId:d,angle:l});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),c,this)}function S(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_JSON_VIEW_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.GET_JSON_VIEW_INFO),d=t,n.next=9,(0,o.call)(a,r.default.getTemplateExampleJson,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),p,this)}function I(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_OCR_TEMPLATE_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.DELETE_OCR_TEMPLATE),d=t,n.next=9,(0,o.call)(a,r.default.ocrTemplateDelete,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),f,this)}function T(){var e,t,a,d,l,u;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.RECOGNIZE_OCR_TEMPLATE_TEST_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.RECOGNIZE_OCR_TEMPLATE_TEST),d=t.templateId,l=t.appId,u=t.imgData,n.next=9,(0,o.call)(a,r.default.ocrTemplateRecognizeTest,{templateId:d,appId:l,imgData:u});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),m,this)}function w(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.PUBLISH_OCR_TEMPLATE_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.PUBLISH_OCR_TEMPLATE),d=t,n.next=9,(0,o.call)(a,r.default.ocrTemplatePublish,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),h,this)}function E(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CANCEL_OCR_TEMPLATE_PUBLISH_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.CANCEL_OCR_TEMPLATE_PUBLISH),d=t,n.next=9,(0,o.call)(a,r.default.ocrTemplateCancelPublish,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),g,this)}function D(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.UPLOAD_OCR_TEMPLATE_IMAGE_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.UPLOAD_OCR_TEMPLATE_IMAGE),d=t,n.next=9,(0,o.call)(a,r.default.ocrTemplateImageUpload,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),v,this)}function M(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_OCR_TEMPLATE_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.SUBMIT_OCR_TEMPLATE_INFO),d=t.subType,l=t.ocrTemplateInfo,n.next=9,(0,o.call)(a,"create"===d?r.default.ocrTemplateCreate:r.default.ocrTemplateUpdate,l);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),_,this)}function k(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_IMAGE_RECOGNIZE_TEXT_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.ocrActions,s.types.GET_IMAGE_RECOGNIZE_TEXT),d=t,n.next=9,(0,o.call)(a,r.default.imageRecognize,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),y,this)}function P(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(x)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(C)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(j)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(S)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(I)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(w)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(D)]);case 14:return e.next=16,(0,o.all)([(0,o.fork)(E)]);case 16:return e.next=18,(0,o.all)([(0,o.fork)(T)]);case 18:return e.next=20,(0,o.all)([(0,o.fork)(M)]);case 20:return e.next=22,(0,o.all)([(0,o.fork)(k)]);case 22:case"end":return e.stop()}}),b,this)}},"./src/redux/sagas/resTransfer.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=g;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/resTransfer.js"),r=d(a("./src/redux/services/sysManager/resTransfer.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(f),u=n.default.mark(m),c=n.default.mark(h),p=n.default.mark(g);function f(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_OWNER_RES_REQUEST);case 3:return e=n.sent,t=e.payload,a=(t||{}).resDomain,d=(0,i.getApiFetch)(s.resTransferActions,s.types.GET_OWNER_RES),n.next=9,(0,o.call)(d,r.default.getOwnerResList,a);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),l,this)}function m(){var e,t,a,d,l,c,p,f;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SAVE_TRANSFER_REQUEST);case 3:return e=n.sent,t=e.payload,d=(a=t||{}).resDomain,l=a.resIds,c=a.userIds,p=a.groupIds,f=(0,i.getApiFetch)(s.resTransferActions,s.types.SAVE_TRANSFER),n.next=9,(0,o.call)(f,r.default.saveTransfer,{resDomain:d,resIds:l,userIds:c,groupIds:p});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),u,this)}function h(){var e,t,a,d,l,u,p,f;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.REMOVE_TRANSFER_REQUEST);case 3:return e=n.sent,t=e.payload,d=(a=t||{}).resDomain,l=a.resIds,u=a.userIds,p=a.groupIds,f=(0,i.getApiFetch)(s.resTransferActions,s.types.REMOVE_TRANSFER),n.next=9,(0,o.call)(f,r.default.removeTransfer,{resDomain:d,resIds:l,userIds:u,groupIds:p});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),c,this)}function g(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(f)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(m)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(h)]);case 6:case"end":return e.stop()}}),p,this)}},"./src/redux/sagas/sysManager/annotationManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=q;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/annotationManager.js"),r=d(a("./src/redux/services/sysManager/annotationManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(w),u=n.default.mark(E),c=n.default.mark(D),p=n.default.mark(M),f=n.default.mark(k),m=n.default.mark(P),h=n.default.mark(L),g=n.default.mark(N),v=n.default.mark(A),_=n.default.mark(R),y=n.default.mark(F),b=n.default.mark(O),x=n.default.mark(V),C=n.default.mark(U),j=n.default.mark(B),S=n.default.mark(G),I=n.default.mark(z),T=n.default.mark(q);function w(e){var t,a=e.markTaskId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.annotationActions,s.types.GET_ANNOTATION_INFO),e.next=3,(0,o.call)(t,r.default.getAnnotationInfo,{markTaskId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function E(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.annotationActions,s.types.SUBMIT_ANNOTATION_DATA),a.next=3,(0,o.call)(t,"edit"!==e.subType?r.default.savePostAnnotation:r.default.updatePutAnnotation,e.modelConfig);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),u,this)}function D(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.annotationActions,s.types.DELETE_ANNOTATION),a.next=3,(0,o.call)(t,r.default.deleteAnnotation,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),c,this)}function M(e){var t,a=e.markTaskName,d=e.offset,l=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.annotationActions,s.types.GET_ANNOTATION_LIST),e.next=3,(0,o.call)(t,r.default.getAnnotationList,{markTaskName:a,offset:d,limit:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),p,this)}function k(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.annotationActions,s.types.PUT_APPROVAL_STATUS),a.next=3,(0,o.call)(t,r.default.approvalMark,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),f,this)}function P(e){var t,a=e.markTaskId,d=e.opinion;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.annotationActions,s.types.PUT_APPROVAL_FAIL_STATUS),e.next=3,(0,o.call)(t,r.default.approvalFailMark,{markTaskId:a,opinion:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function L(e){var t,a=e.markTaskId,d=e.ftpId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.annotationActions,s.types.PUBLISH_ANNOTATION_TASK),e.next=3,(0,o.call)(t,r.default.publishAnnotationTask,{markTaskId:a,ftpId:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),h,this)}function N(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.annotationActions,s.types.SUBMIT_ANNOTATION_TASK),a.next=3,(0,o.call)(t,r.default.submitMark,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),g,this)}function A(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_ANNOTATION_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.markTaskName,r=t.offset,i=t.limit,n.next=8,(0,o.call)(M,{markTaskName:a,offset:r,limit:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),v,this)}function R(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_ANNOTATION_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(D,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),_,this)}function F(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_ANNOTATION_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.modelConfig,n.next=8,(0,o.call)(E,{modelConfig:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),y,this)}function O(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_ANNOTATION_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.markTaskId,n.next=8,(0,o.call)(w,{markTaskId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),b,this)}function V(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.PUT_HANDLE_STATUS_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(tagGroupsActions,s.types.PUT_HANDLE_STATUS),r=t,n.next=9,(0,o.call)(a,tagGroupsApi.tagGroupsListByMarkType,r);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),x,this)}function U(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.PUT_APPROVAL_STATUS_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(k,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),C,this)}function B(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.PUT_APPROVAL_FAIL_STATUS_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(P,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),j,this)}function G(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.PUBLISH_ANNOTATION_TASK_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(L,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),S,this)}function z(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_ANNOTATION_TASK_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.markTaskId,n.next=8,(0,o.call)(N,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),I,this)}function q(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(V)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(O)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(F)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(A)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(R)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(U)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(B)]);case 14:return e.next=16,(0,o.all)([(0,o.fork)(G)]);case 16:return e.next=18,(0,o.all)([(0,o.fork)(z)]);case 18:case"end":return e.stop()}}),T,this)}},"./src/redux/sagas/sysManager/apiPermissionConfManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=C;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/apiPermissionConfManager.js"),r=d(a("./src/redux/services/sysManager/apiPermissionConfManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(g),u=n.default.mark(v),c=n.default.mark(_),p=n.default.mark(y),f=n.default.mark(b),m=n.default.mark(x),h=n.default.mark(C);function g(){var e,t,a,d,u;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.BINDING_CLIENT_TO_API_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.apiPermissionConfActions,s.types.BINDING_CLIENT_TO_API),d=t.apiPermissionId,u=t.apiIds,n.next=9,(0,o.call)(a,r.default.bangdingClientToApi,{apiPermissionId:d,apiIds:u});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),l,this)}function v(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,(0,o.take)(s.types.GET_API_PERMISSION_CONF_LOAD_REQUEST);case 3:return e=(0,i.getApiFetch)(s.apiPermissionConfActions,s.types.GET_API_PERMISSION_CONF_LOAD),t.next=6,(0,o.call)(e,r.default.apiPermissionConfLoad);case 6:t.next=0;break;case 8:case"end":return t.stop()}}),u,this)}function _(){var e,t,a,d,l,u,p;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_API_PERMISSION_CONF_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.apiPermissionConfActions,s.types.GET_API_PERMISSION_CONF_LIST),d=t.apiPermissionName,l=t.offset,u=t.limit,p=t.sortField,n.next=9,(0,o.call)(a,r.default.apiPermissionConfList,{apiPermissionName:d,offset:l,limit:u,sortField:p});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),c,this)}function y(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_API_PERMISSION_CONF_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.apiPermissionConfActions,s.types.GET_API_PERMISSION_CONF_INFO),d=t,n.next=9,(0,o.call)(a,r.default.apiPermissionConfInfo,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),p,this)}function b(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_API_PERMISSION_CONF_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.apiPermissionConfActions,s.types.DELETE_API_PERMISSION_CONF),d=t,n.next=9,(0,o.call)(a,r.default.apiPermissionConfDelete,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),f,this)}function x(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_API_PERMISSION_CONF_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.apiPermissionConfActions,s.types.SUBMIT_API_PERMISSION_CONF),d=t.subType,l=t.apiPermissionConfInfo,n.next=9,(0,o.call)(a,"create"===d?r.default.apiPermissionConfSubmitPost:r.default.apiPermissionConfSubmitPut,l);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),m,this)}function C(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(g)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(v)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(_)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(y)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(b)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(x)]);case 12:case"end":return e.stop()}}),h,this)}},"./src/redux/sagas/sysManager/appTopicBasesManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=M;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/appTopicBasesManager.js"),r=d(a("./src/redux/services/sysManager/appTopicBasesManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(b),u=n.default.mark(x),c=n.default.mark(C),p=n.default.mark(j),f=n.default.mark(S),m=n.default.mark(I),h=n.default.mark(T),g=n.default.mark(w),v=n.default.mark(E),_=n.default.mark(D),y=n.default.mark(M);function b(e){var t,a=e.id,d=e.name;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.appTopicBasesActions,s.types.CHECK_APP_TOPIC_BASES_NAME),e.next=3,(0,o.call)(t,r.default.checkName,{id:a,name:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function x(e){var t,a=e.id;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.appTopicBasesActions,s.types.GET_APP_TOPIC_BASES_INFO),e.next=3,(0,o.call)(t,r.default.getAppTopicBasesInfo,{id:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function C(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.appTopicBasesActions,s.types.SUBMIT_APP_TOPIC_BASES_DATA),a.next=3,(0,o.call)(t,"edit"!==e.subType?r.default.savePostAppTopicBases:r.default.updatePutAppTopicBases,e.appTopicBasesData);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),c,this)}function j(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.appTopicBasesActions,s.types.DELETE_APP_TOPIC_BASES),a.next=3,(0,o.call)(t,r.default.deleteAppTopicBases,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),p,this)}function S(e){var t,a=e.name,d=e.offset,l=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.appTopicBasesActions,s.types.GET_APP_TOPIC_BASES_LIST),e.next=3,(0,o.call)(t,r.default.getAppTopicBasesList,{name:a,offset:d,limit:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function I(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_APP_TOPIC_BASES_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.name,r=t.offset,i=t.limit,n.next=8,(0,o.call)(S,{name:a,offset:r,limit:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),m,this)}function T(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_APP_TOPIC_BASES_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(j,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),h,this)}function w(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_APP_TOPIC_BASES_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.appTopicBasesData,n.next=8,(0,o.call)(C,{appTopicBasesData:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),g,this)}function E(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_APP_TOPIC_BASES_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.id,n.next=8,(0,o.call)(x,{id:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),v,this)}function D(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CHECK_APP_TOPIC_BASES_NAME_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.id,r=t.name,n.next=8,(0,o.call)(b,{id:a,name:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),_,this)}function M(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(D)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(E)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(w)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(I)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(T)]);case 10:case"end":return e.stop()}}),y,this)}},"./src/redux/sagas/sysManager/clientAppManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=C;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/clientAppManager.js"),r=d(a("./src/redux/services/sysManager/clientAppManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(g),u=n.default.mark(v),c=n.default.mark(_),p=n.default.mark(y),f=n.default.mark(b),m=n.default.mark(x),h=n.default.mark(C);function g(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,(0,o.take)(s.types.GET_CLIENT_APP_LOAD_REQUEST);case 3:return e=(0,i.getApiFetch)(s.clientAppActions,s.types.GET_CLIENT_APP_LOAD),t.next=6,(0,o.call)(e,r.default.clientAppLoad);case 6:t.next=0;break;case 8:case"end":return t.stop()}}),l,this)}function v(){var e,t,a,d,l,c,p;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_CLIENT_APP_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.clientAppActions,s.types.GET_CLIENT_APP_LIST),d=t.clientappName,l=t.offset,c=t.limit,p=t.sortField,n.next=9,(0,o.call)(a,r.default.clientAppList,{clientappName:d,offset:l,limit:c,sortField:p});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),u,this)}function _(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_CLIENT_APP_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.clientAppActions,s.types.GET_CLIENT_APP_INFO),d=t,n.next=9,(0,o.call)(a,r.default.clientAppInfo,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),c,this)}function y(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_CLIENT_APP_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.clientAppActions,s.types.DELETE_CLIENT_APP),d=t,n.next=9,(0,o.call)(a,r.default.clientAppDelete,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),p,this)}function b(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_CLIENT_APP_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.clientAppActions,s.types.SUBMIT_CLIENT_APP),d=t.subType,l=t.clientAppInfo,n.next=9,(0,o.call)(a,"create"===d?r.default.clientAppSubmitPost:r.default.clientAppSubmitPut,l);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),f,this)}function x(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.BINDING_API_TO_CLIENT_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.clientAppActions,s.types.BINDING_API_TO_CLIENT),d=t.clientappId,l=t.apiIds,n.next=9,(0,o.call)(a,r.default.bangdingApiToclient,{clientappId:d,apiIds:l});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),m,this)}function C(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(g)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(x)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(v)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(_)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(y)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(b)]);case 12:case"end":return e.stop()}}),h,this)}},"./src/redux/sagas/sysManager/dataBasesManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=R;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/dataBasesManager.js"),r=d(a("./src/redux/services/sysManager/dataBasesManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(j),u=n.default.mark(S),c=n.default.mark(I),p=n.default.mark(T),f=n.default.mark(w),m=n.default.mark(E),h=n.default.mark(D),g=n.default.mark(M),v=n.default.mark(k),_=n.default.mark(P),y=n.default.mark(L),b=n.default.mark(N),x=n.default.mark(A),C=n.default.mark(R);function j(e){var t,a=e.arrayData,d=e.allAacp;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.dataBasesActions,s.types.SYNC_DACP_DATA),e.next=3,(0,o.call)(t,!0===d||"true"===d?r.default.syncDacpDataAll:r.default.syncDacpData,!0===d||"true"===d?null:a);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function S(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.dataBasesActions,s.types.TEST_CONNECT_DATA),a.next=3,(0,o.call)(t,r.default.testConnectDataCode,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),u,this)}function I(e){var t,a=e.dbId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.dataBasesActions,s.types.GET_DATA_BASES_INFO),e.next=3,(0,o.call)(t,r.default.getDataBasesInfo,{dbId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function T(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.dataBasesActions,s.types.SUBMIT_DATA_BASES_DATA),a.next=3,(0,o.call)(t,"edit"!==e.subType?r.default.savePostDataBases:r.default.updatePutDataBases,e.dataBasesData);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),p,this)}function w(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.dataBasesActions,s.types.DELETE_DATA_BASES),a.next=3,(0,o.call)(t,r.default.deleteDataBases,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),f,this)}function E(e){var t,a=e.dbName,d=e.offset,l=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.dataBasesActions,s.types.GET_DATA_BASES_LIST),e.next=3,(0,o.call)(t,r.default.getDataBasesList,{dbName:a,offset:d,limit:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function D(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_BASES_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dbName,r=t.offset,i=t.limit,n.next=8,(0,o.call)(E,{dbName:a,offset:r,limit:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),h,this)}function M(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_DATA_BASES_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(w,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),g,this)}function k(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_DATA_BASES_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.dataBasesData,n.next=8,(0,o.call)(T,{dataBasesData:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),v,this)}function P(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_DATA_BASES_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.dbId,n.next=8,(0,o.call)(I,{dbId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),_,this)}function L(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.TEST_CONNECT_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(S,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),y,this)}function N(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SYNC_DACP_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.arrayData,r=t.allAacp,n.next=8,(0,o.call)(j,{arrayData:a,allAacp:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),b,this)}function A(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,(0,o.take)(s.types.GET_DATA_DACP_LIST_REQUEST);case 3:return e=(0,i.getApiFetch)(s.dataBasesActions,s.types.GET_DATA_DACP_LIST),t.next=6,(0,o.call)(e,r.default.dataDacpList);case 6:t.next=0;break;case 8:case"end":return t.stop()}}),x,this)}function R(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(A)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(N)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(L)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(P)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(k)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(D)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(M)]);case 14:case"end":return e.stop()}}),C,this)}},"./src/redux/sagas/sysManager/ftpBasesManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=O;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/ftpBasesManager.js"),r=d(a("./src/redux/services/sysManager/ftpBasesManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(S),u=n.default.mark(I),c=n.default.mark(T),p=n.default.mark(w),f=n.default.mark(E),m=n.default.mark(D),h=n.default.mark(M),g=n.default.mark(k),v=n.default.mark(P),_=n.default.mark(L),y=n.default.mark(N),b=n.default.mark(A),x=n.default.mark(R),C=n.default.mark(F),j=n.default.mark(O);function S(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.ftpBasesActions,s.types.TEST_CONNECT_FTP),a.next=3,(0,o.call)(t,r.default.testConnectFtpCode,e.config);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),l,this)}function I(e){var t,a=e.ftpId,d=e.ftpPath;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.ftpBasesActions,s.types.GET_FTP_FILE),e.next=3,(0,o.call)(t,r.default.getFtpFileDatas,{ftpId:a,ftpPath:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function T(e){var t,a=e.id;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.ftpBasesActions,s.types.GET_FTP_BASES_INFO),e.next=3,(0,o.call)(t,r.default.getFtpBasesInfo,{id:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function w(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.ftpBasesActions,s.types.SUBMIT_FTP_BASES_DATA),a.next=3,(0,o.call)(t,"edit"!==e.subType?r.default.savePostFtpBases:r.default.updatePutFtpBases,e.ftpBasesData);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),p,this)}function E(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.ftpBasesActions,s.types.DELETE_FTP_BASES),a.next=3,(0,o.call)(t,r.default.deleteFtpBases,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),f,this)}function D(e){var t,a=e.storageName,d=e.offset,l=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.ftpBasesActions,s.types.GET_FTP_BASES_LIST),e.next=3,(0,o.call)(t,r.default.getFtpBasesList,{storageName:a,offset:d,limit:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function M(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.ftpBasesActions,s.types.GET_FTP_ARRAY),t.next=3,(0,o.call)(e,r.default.getFtpBasesArray);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),h,this)}function k(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_FTP_ARRAY_REQUEST);case 3:return e.next=5,(0,o.call)(M);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),g,this)}function P(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_FTP_BASES_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.storageName,r=t.offset,i=t.limit,n.next=8,(0,o.call)(D,{storageName:a,offset:r,limit:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),v,this)}function L(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_FTP_BASES_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(E,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),_,this)}function N(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_FTP_BASES_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.ftpBasesData,n.next=8,(0,o.call)(w,{ftpBasesData:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),y,this)}function A(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_FTP_BASES_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.id,n.next=8,(0,o.call)(T,{id:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),b,this)}function R(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.TEST_CONNECT_FTP_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(S,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),x,this)}function F(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_FTP_FILE_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.ftpId,r=t.ftpPath,n.next=8,(0,o.call)(I,{ftpId:a,ftpPath:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),C,this)}function O(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(F)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(R)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(A)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(N)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(P)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(k)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(L)]);case 14:case"end":return e.stop()}}),j,this)}},"./src/redux/sagas/sysManager/interfaceManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=E;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/interfaceManager.js"),r=d(a("./src/redux/services/sysManager/interfaceManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(y),u=n.default.mark(b),c=n.default.mark(x),p=n.default.mark(C),f=n.default.mark(j),m=n.default.mark(S),h=n.default.mark(I),g=n.default.mark(T),v=n.default.mark(w),_=n.default.mark(E);function y(e){var t,a=e.apiName,d=e.isOpen,u=e.status,c=e.groupId,p=e.offset,f=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.openApiActions,s.types.GET_OPEN_API_LIST),e.next=3,(0,o.call)(t,r.default.getOpenApiList,{apiName:a,isOpen:d,status:u,groupId:c,offset:p,limit:f});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function b(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.openApiActions,s.types.GET_OPEN_API_GROUP_DATA),t.next=3,(0,o.call)(e,r.default.getOpenApiGroupData);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),u,this)}function x(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.openApiActions,s.types.GET_OPEN_API_INFO),a.next=3,(0,o.call)(t,r.default.getOpenApiInfo,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),c,this)}function C(){var e,t,a,r,i,d,l,u;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_OPEN_API_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.apiName,r=t.isOpen,i=t.status,d=t.groupId,l=t.offset,u=t.limit,n.next=8,(0,o.call)(y,{apiName:a,isOpen:r,status:i,groupId:d,offset:l,limit:u});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),p,this)}function j(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_API_ARRAY_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.openApiActions,s.types.GET_API_ARRAY_LIST),n.next=8,(0,o.call)(a,r.default.getOpenApiArrayList,t);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),f,this)}function S(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_OPEN_API_GROUP_DATA_REQUEST);case 3:return e.next=5,(0,o.call)(b);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),m,this)}function I(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_OPEN_API_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(x,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),h,this)}function T(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.BIN_DING_API_GROUP_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.openApiActions,s.types.BIN_DING_API_GROUP_DATA),d=t.openApiGroupId,l=t.apis,n.next=9,(0,o.call)(a,r.default.bindingApiGroupData,{openApiGroupId:d,apis:l});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),g,this)}function w(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,(0,o.take)(s.types.LOAD_OPEN_API_TREE_REQUEST);case 3:return e=(0,i.getApiFetch)(s.openApiActions,s.types.LOAD_OPEN_API_TREE),t.next=6,(0,o.call)(e,r.default.loadOpenApiTree);case 6:t.next=0;break;case 8:case"end":return t.stop()}}),v,this)}function E(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(w)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(T)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(j)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(C)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(S)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(I)]);case 12:case"end":return e.stop()}}),_,this)}},"./src/redux/sagas/sysManager/platFormManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=L;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/platFormManager.js"),r=d(a("./src/redux/services/sysManager/platFormManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(C),u=n.default.mark(j),c=n.default.mark(S),p=n.default.mark(I),f=n.default.mark(T),m=n.default.mark(w),h=n.default.mark(E),g=n.default.mark(D),v=n.default.mark(M),y=n.default.mark(k),b=n.default.mark(P),x=n.default.mark(L);function C(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.platFormActions,s.types.GET_PLAT_FORM_SOLUTIONS),t.next=3,(0,o.call)(e,r.default.getPlatFormSolutionsData);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),l,this)}function j(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.platFormActions,s.types.GET_PLAT_FORM_FEATURES),t.next=3,(0,o.call)(e,r.default.getPlatFormFeaturesData);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),u,this)}function S(e){var t,a=e.featureId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.platFormActions,s.types.GET_PLAT_FORM_FEATURES_CONFIG),e.next=3,(0,o.call)(t,r.default.getPlatFormFeaturesConfig,{featureId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function I(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.platFormActions,s.types.GET_PICTURE_RECOGNITION),e.data=_.uniq(e.data),a.next=4,(0,o.call)(t,r.default.getPictureRecognition,e);case 4:return a.abrupt("return",a.sent);case 5:case"end":return a.stop()}}),p,this)}function T(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.platFormActions,s.types.GET_PICTURE_REGISTER),a.next=3,(0,o.call)(t,r.default.getPictureRegister,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),f,this)}function w(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_PLAT_FORM_FEATURES_CONFIG_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.featureId,n.next=8,(0,o.call)(S,{featureId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),m,this)}function E(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_PLAT_FORM_FEATURES_REQUEST);case 3:return e.next=5,(0,o.call)(j);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),h,this)}function D(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_PLAT_FORM_SOLUTIONS_REQUEST);case 3:return e.next=5,(0,o.call)(C);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),g,this)}function M(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_PICTURE_REGISTER_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(T,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),v,this)}function k(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_PICTURE_RECOGNITION_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(I,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),y,this)}function P(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.takeLatest)(s.types.RECOGNITION_REQUEST,n.default.mark((function e(t){var a,d,l,u;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.payload,d=a.config,l=a.dispatch,u=(0,i.getApiFetch)(s.platFormActions,s.types.RECOGNITION),e.next=4,(0,o.call)(u,r.default.recognition,{config:d,dispatch:l});case 4:case"end":return e.stop()}}),e,this)})));case 2:case"end":return e.stop()}}),b,this)}function L(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(P)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(M)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(k)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(E)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(w)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(D)]);case 12:case"end":return e.stop()}}),x,this)}},"./src/redux/sagas/sysManager/quotaTenantManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=N;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/quotaTenantManager.js"),r=d(a("./src/redux/services/sysManager/quotaTenantManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(C),u=n.default.mark(j),c=n.default.mark(S),p=n.default.mark(I),f=n.default.mark(T),m=n.default.mark(w),h=n.default.mark(E),g=n.default.mark(D),v=n.default.mark(M),_=n.default.mark(k),y=n.default.mark(P),b=n.default.mark(L),x=n.default.mark(N);function C(e){var t,a=e.quotaTenantId,d=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.quotaTenantActions,s.types.SUBMIT_QUOTA_TENANT_INFO),e.next=3,(0,o.call)(t,r.default.updateQuotaTenantInfo,{quotaTenantId:a,config:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function j(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.quotaTenantActions,s.types.GET_QUOTA_TENANT_DOWN),t.next=3,(0,o.call)(e,r.default.getSysQuotaTenantDown);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),u,this)}function S(e){var t,a=e.quotaTenantId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.quotaTenantActions,s.types.GET_QUOTA_TENANT_INFO),e.next=3,(0,o.call)(t,r.default.getQuotaTenantInfo,{quotaTenantId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function I(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.quotaTenantActions,s.types.DELETE_QUOTA_TENANT),a.next=3,(0,o.call)(t,r.default.deleteQuotaTenant,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),p,this)}function T(e){var t,a=e.quotaTenantId,d=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.quotaTenantActions,s.types.SUBMIT_TENANT_USER_DATA),e.next=3,(0,o.call)(t,r.default.updateTenantUser,{quotaTenantId:a,config:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function w(e){var t,a=e.quotaTenantName,d=e.sortField,l=e.offset,u=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.quotaTenantActions,s.types.GET_SYS_QUOTA_TENANT_LIST),e.next=3,(0,o.call)(t,r.default.getQuotaTenantList,{quotaTenantName:a,sortField:d,offset:l,limit:u});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function E(){var e,t,a,r,i,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_SYS_QUOTA_TENANT_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.quotaTenantName,r=t.sortField,i=t.offset,d=t.limit,n.next=8,(0,o.call)(w,{quotaTenantName:a,sortField:r,offset:i,limit:d});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),h,this)}function D(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_QUOTA_TENANT_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(I,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),g,this)}function M(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_TENANT_USER_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.quotaTenantId,r=t.config,n.next=8,(0,o.call)(T,{quotaTenantId:a,config:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),v,this)}function k(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_QUOTA_TENANT_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.quotaTenantId,n.next=8,(0,o.call)(S,{quotaTenantId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),_,this)}function P(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_QUOTA_TENANT_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.quotaTenantId,r=t.config,n.next=8,(0,o.call)(C,{quotaTenantId:a,config:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),y,this)}function L(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_QUOTA_TENANT_DOWN_REQUEST);case 3:return e.next=5,(0,o.call)(j);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),b,this)}function N(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(L)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(P)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(k)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(M)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(E)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(D)]);case 12:case"end":return e.stop()}}),x,this)}},"./src/redux/sagas/sysManager/rolesManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=H;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/rolesManager.js"),r=d(a("./src/redux/services/sysManager/rolesManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(E),u=n.default.mark(D),c=n.default.mark(M),p=n.default.mark(k),f=n.default.mark(P),m=n.default.mark(L),h=n.default.mark(N),g=n.default.mark(A),v=n.default.mark(R),_=n.default.mark(F),y=n.default.mark(O),b=n.default.mark(V),x=n.default.mark(U),C=n.default.mark(B),j=n.default.mark(G),S=n.default.mark(z),I=n.default.mark(q),T=n.default.mark(K),w=n.default.mark(H);function E(e){var t,a=e.roleId,d=e.roleName;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.rolesActions,s.types.CHECK_ROLES_NAME),e.next=3,(0,o.call)(t,r.default.checkRoleName,{roleId:a,roleName:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function D(e){var t,a=e.roleId,d=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.rolesActions,s.types.SUBMIT_ROLES_GROUPS_DATA),e.next=3,(0,o.call)(t,r.default.updateRolesGroups,{roleId:a,config:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function M(e){var t,a=e.roleId,d=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.rolesActions,s.types.SUBMIT_ROLES_PERMISSIONS_DATA),e.next=3,(0,o.call)(t,r.default.updateRolesPermissions,{roleId:a,config:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function k(e){var t,a=e.roleId,d=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.rolesActions,s.types.SUBMIT_ROLES_USER_DATA),e.next=3,(0,o.call)(t,r.default.updateRolesUser,{roleId:a,config:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),p,this)}function P(e){var t,a=e.tenantId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.rolesActions,s.types.LOAD_SYS_ROLES_LIST),e.next=3,(0,o.call)(t,r.default.loadRolesList,{tenantId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function L(e){var t,a=e.roleId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.rolesActions,s.types.GET_SYS_ROLES_INFO),e.next=3,(0,o.call)(t,r.default.getRolesInfo,{roleId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function N(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.rolesActions,s.types.SUBMIT_ROLES_DATA),a.next=3,(0,o.call)(t,"edit"!==e.subType?r.default.savePostRoles:r.default.updatePutRoles,e.roleData);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),h,this)}function A(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.rolesActions,s.types.DELETE_ROLES),a.next=3,(0,o.call)(t,r.default.deleteRoles,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),g,this)}function R(e){var t,a=e.roleName,d=e.sortField,l=e.offset,u=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.rolesActions,s.types.GET_SYS_ROLES_LIST),e.next=3,(0,o.call)(t,r.default.getRolesList,{roleName:a,sortField:d,offset:l,limit:u});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),v,this)}function F(){var e,t,a,r,i,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_SYS_ROLES_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.roleName,r=t.sortField,i=t.offset,d=t.limit,n.next=8,(0,o.call)(R,{roleName:a,sortField:r,offset:i,limit:d});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),_,this)}function O(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_ROLES_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(A,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),y,this)}function V(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_ROLES_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.roleData,n.next=8,(0,o.call)(N,{roleData:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),b,this)}function U(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_SYS_ROLES_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.roleId,n.next=8,(0,o.call)(L,{roleId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),x,this)}function B(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.LOAD_SYS_ROLES_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.tenantId,n.next=8,(0,o.call)(P,{tenantId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),C,this)}function G(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_ROLES_GROUPS_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.roleId,r=t.config,n.next=8,(0,o.call)(D,{roleId:a,config:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),j,this)}function z(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_ROLES_USER_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.roleId,r=t.config,n.next=8,(0,o.call)(k,{roleId:a,config:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),S,this)}function q(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_ROLES_PERMISSIONS_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.roleId,r=t.config,n.next=8,(0,o.call)(M,{roleId:a,config:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),I,this)}function K(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CHECK_ROLES_NAME_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.roleId,r=t.roleName,n.next=8,(0,o.call)(E,{roleId:a,roleName:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),T,this)}function H(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(K)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(G)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(q)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(z)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(B)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(U)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(V)]);case 14:return e.next=16,(0,o.all)([(0,o.fork)(F)]);case 16:return e.next=18,(0,o.all)([(0,o.fork)(O)]);case 18:case"end":return e.stop()}}),w,this)}},"./src/redux/sagas/sysManager/sceneDemoManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=S;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/sceneDemoManager.js"),r=d(a("./src/redux/services/sysManager/sceneDemoManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(v),u=n.default.mark(_),c=n.default.mark(y),p=n.default.mark(b),f=n.default.mark(x),m=n.default.mark(C),h=n.default.mark(j),g=n.default.mark(S);function v(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_FACE_SIGN_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.sceneDemoActions,s.types.SUBMIT_FACE_SIGN),d=t.faceSignInfo,n.next=9,(0,o.call)(a,r.default.faceSignSubmitPost,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),l,this)}function _(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,(0,o.take)(s.types.GET_FACE_SIGN_LIST_REQUEST);case 3:return e=(0,i.getApiFetch)(s.sceneDemoActions,s.types.GET_FACE_SIGN_LIST),t.next=6,(0,o.call)(e,r.default.faceSignList);case 6:t.next=0;break;case 8:case"end":return t.stop()}}),u,this)}function y(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_FACE_SIGN_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.sceneDemoActions,s.types.DELETE_FACE_SIGN),d=t,n.next=9,(0,o.call)(a,r.default.faceSignDelete,d);case 9:if(l=n.sent,!l.success){n.next=14;break}return n.next=14,(0,o.put)(s.sceneDemoActions.deleteFaceSignState({faceId:d}));case 14:n.next=0;break;case 16:case"end":return n.stop()}}),c,this)}function b(){var e,t,a,d,l,u,c;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_SCENE_DEMO_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.sceneDemoActions,s.types.GET_SCENE_DEMO_LIST),d=t.configTitle,l=t.offset,u=t.limit,c=t.sortBy,n.next=9,(0,o.call)(a,r.default.sceneDemoList,{configTitle:d,offset:l,limit:u,sortBy:c});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),p,this)}function x(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_SCENE_DEMO_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.sceneDemoActions,s.types.GET_SCENE_DEMO_INFO),d=t,n.next=9,(0,o.call)(a,r.default.sceneDemoInfo,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),f,this)}function C(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_SCENE_DEMO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.sceneDemoActions,s.types.DELETE_SCENE_DEMO),d=t,n.next=9,(0,o.call)(a,r.default.sceneDemoDelete,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),m,this)}function j(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_SCENE_DEMO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.sceneDemoActions,s.types.SUBMIT_SCENE_DEMO),d=t.subType,l=t.sceneDemoInfo,n.next=9,(0,o.call)(a,"create"===d?r.default.sceneDemoSubmitPost:r.default.sceneDemoSubmitPut,l);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),h,this)}function S(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(v)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(_)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(b)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(x)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(C)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(y)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(j)]);case 14:case"end":return e.stop()}}),g,this)}},"./src/redux/sagas/sysManager/switchManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=l(a("./node_modules/babel-runtime/regenerator/index.js"));t.getSwitchOptions=S,t.default=I;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/switchManager.js"),r=l(a("./src/redux/services/sysManager/switchManager.js")),i=a("./src/redux/sagas/utils.js"),d=a("./src/utils/authPermit.js");function l(e){return e&&e.__esModule?e:{default:e}}var u=n.default.mark(_),c=n.default.mark(y),p=n.default.mark(b),f=n.default.mark(x),m=n.default.mark(C),h=n.default.mark(j),g=n.default.mark(S),v=n.default.mark(I);function _(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.switchActions,s.types.GET_SWITCH_MODULES_DATA),t.next=3,(0,o.call)(e,r.default.getSwitchModulesData);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),u,this)}function y(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.switchActions,s.types.GET_MODULES_OPTIONS),a.next=3,(0,o.call)(t,r.default.getModuleOptions,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),c,this)}function b(e){var t,a=e.moduleId,d=e.optionId,l=e.configValue;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.switchActions,s.types.UPDATE_MODULE_OPTION),e.next=3,(0,o.call)(t,r.default.updateModuleOption,{moduleId:a,optionId:d,configValue:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),p,this)}function x(){var e,t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=3,(0,o.take)(s.types.GET_SWITCH_MODULES_DATA_REQUEST);case 3:return e=a.sent,t=e.payload,a.next=7,(0,o.call)(_,t);case 7:a.next=0;break;case 9:case"end":return a.stop()}}),f,this)}function C(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_MODULES_OPTIONS_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(y,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),m,this)}function j(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.UPDATE_MODULE_OPTION_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.moduleId,r=t.optionId,i=t.configValue,n.next=8,(0,o.call)(b,{moduleId:a,optionId:r,configValue:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),h,this)}function S(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.call)(r.default.getSwitchOptions);case 2:e=t.sent,(0,d.saveSwitchData)(e.data);case 4:case"end":return t.stop()}}),g,this)}function I(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(x)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(C)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(j)]);case 6:case"end":return e.stop()}}),v,this)}},"./src/redux/sagas/sysManager/sysManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=O;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/sysManager.js"),r=d(a("./src/redux/services/sysManager/sysManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(S),u=n.default.mark(I),c=n.default.mark(T),p=n.default.mark(w),f=n.default.mark(E),m=n.default.mark(D),h=n.default.mark(M),g=n.default.mark(k),v=n.default.mark(P),_=n.default.mark(L),y=n.default.mark(N),b=n.default.mark(A),x=n.default.mark(R),C=n.default.mark(F),j=n.default.mark(O);function S(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.sysManagerActions,s.types.LOAD_RES_DOMAINS_LIST),t.next=3,(0,o.call)(e,r.default.loadResDomainsList);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),l,this)}function I(e){var t,a=e.domainId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.sysManagerActions,s.types.LOAD_RES_DOMAINS_RESOURCES_LIST),e.next=3,(0,o.call)(t,r.default.loadResDomainsResourcesList,{domainId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function T(e){var t,a=e.moduleId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.sysManagerActions,s.types.LOAD_RES_PERMISSION),e.next=3,(0,o.call)(t,r.default.loadResPermissionList,{moduleId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function w(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.sysManagerActions,s.types.LOAD_MODULES_LIST),t.next=3,(0,o.call)(e,r.default.loadModulesList);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),p,this)}function E(e){var t,a=e.confCode;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.sysManagerActions,s.types.GET_CONTACT_USER_INFO),e.next=3,(0,o.call)(t,r.default.getContactUserInfo,{confCode:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function D(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.sysManagerActions,s.types.SUBMIT_CONTACT_USER),a.next=3,(0,o.call)(t,"edit"!==e.subType?r.default.savePostContactUser:r.default.updatePutContactUser,e.contactUserData);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),m,this)}function M(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.getApiFetch)(s.sysManagerActions,s.types.GET_SYS_HELP_LIST),t.next=3,(0,o.call)(e,r.default.getSysHelpList);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),h,this)}function k(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.GET_SYS_HELP_LIST_REQUEST);case 3:return e.next=5,(0,o.call)(M);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),g,this)}function P(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_CONTACT_USER_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.contactUserData,n.next=8,(0,o.call)(D,{contactUserData:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),v,this)}function L(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_CONTACT_USER_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.confCode,n.next=8,(0,o.call)(E,{confCode:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),_,this)}function N(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.LOAD_MODULES_LIST_REQUEST);case 3:return e.next=5,(0,o.call)(w);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),y,this)}function A(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.takeEvery)(s.types.LOAD_RES_PERMISSION_REQUEST,n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.payload.moduleId,e.next=3,(0,o.call)(T,{moduleId:a});case 3:case"end":return e.stop()}}),e,this)})));case 2:case"end":return e.stop()}}),b,this)}function R(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,o.take)(s.types.LOAD_RES_DOMAINS_LIST_REQUEST);case 3:return e.next=5,(0,o.call)(S);case 5:e.next=0;break;case 7:case"end":return e.stop()}}),x,this)}function F(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.takeEvery)(s.types.LOAD_RES_DOMAINS_RESOURCES_LIST_REQUEST,n.default.mark((function e(t){var a,r;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.payload.domainId,e.next=3,(0,o.call)(I,{domainId:a});case 3:if(r=e.sent,!r.success||"null"===a){e.next=8;break}return e.next=8,(0,o.put)(s.sysManagerActions.updateLoadDomains({domainId:a}));case 8:case"end":return e.stop()}}),e,this)})));case 2:case"end":return e.stop()}}),C,this)}function O(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(R)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(F)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(A)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(N)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(L)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(P)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(k)]);case 14:case"end":return e.stop()}}),j,this)}},"./src/redux/sagas/sysManager/tagGroupsManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=b;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/tagGroupsManager.js"),r=d(a("./src/redux/services/sysManager/tagGroupsManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(h),u=n.default.mark(g),c=n.default.mark(v),p=n.default.mark(_),f=n.default.mark(y),m=n.default.mark(b);function h(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_TAG_GROUPS_LIST_BY_MARK_TYPE_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.tagGroupsActions,s.types.GET_TAG_GROUPS_LIST_BY_MARK_TYPE),d=t,n.next=9,(0,o.call)(a,r.default.tagGroupsListByMarkType,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),l,this)}function g(){var e,t,a,d,l,c,p;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_TAG_GROUPS_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.tagGroupsActions,s.types.GET_TAG_GROUPS_LIST),d=t.tagGroupName,l=t.offset,c=t.limit,p=t.sortField,n.next=9,(0,o.call)(a,r.default.tagGroupsList,{tagGroupName:d,offset:l,limit:c,sortField:p});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),u,this)}function v(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_TAG_GROUPS_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.tagGroupsActions,s.types.GET_TAG_GROUPS_INFO),d=t,n.next=9,(0,o.call)(a,r.default.tagGroupsInfo,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),c,this)}function _(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_TAG_GROUPS_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.tagGroupsActions,s.types.DELETE_TAG_GROUPS),d=t,n.next=9,(0,o.call)(a,r.default.tagGroupsDelete,d);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),p,this)}function y(){var e,t,a,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_TAG_GROUPS_REQUEST);case 3:return e=n.sent,t=e.payload,a=(0,i.getApiFetch)(s.tagGroupsActions,s.types.SUBMIT_TAG_GROUPS),d=t.subType,l=t.tagGroupsInfo,n.next=9,(0,o.call)(a,"create"===d?r.default.tagGroupsSubmitPost:r.default.tagGroupsSubmitPut,l);case 9:n.next=0;break;case 11:case"end":return n.stop()}}),f,this)}function b(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(h)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(g)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(v)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(_)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(y)]);case 10:case"end":return e.stop()}}),m,this)}},"./src/redux/sagas/sysManager/userGroupsManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=Q;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/sysManager/userGroupsManager.js"),r=d(a("./src/redux/services/sysManager/userGroupsManager.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(M),u=n.default.mark(k),c=n.default.mark(P),p=n.default.mark(L),f=n.default.mark(N),m=n.default.mark(A),h=n.default.mark(R),g=n.default.mark(F),v=n.default.mark(O),_=n.default.mark(V),y=n.default.mark(U),b=n.default.mark(B),x=n.default.mark(G),C=n.default.mark(z),j=n.default.mark(q),S=n.default.mark(K),I=n.default.mark(H),T=n.default.mark(Y),w=n.default.mark(W),E=n.default.mark(J),D=n.default.mark(Q);function M(e){var t,a=e.groupId,d=e.groupName;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.CHECK_USER_GROUPS_NAME),e.next=3,(0,o.call)(t,r.default.checkGroupsName,{groupId:a,groupName:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),l,this)}function k(e){var t,a=e.groupId,d=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.SUBMIT_GROUPS_ROLES_DATA),e.next=3,(0,o.call)(t,r.default.updateGroupsRoles,{groupId:a,config:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function P(e){var t,a=e.groupId,d=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.SUBMIT_GROUPS_USER_DATA),e.next=3,(0,o.call)(t,r.default.updateGroupsUser,{groupId:a,config:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),c,this)}function L(e){var t,a=e.tenantId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.LOAD_SYS_USER_GROUPS_LIST),e.next=3,(0,o.call)(t,r.default.loadUserGroupsList,{tenantId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),p,this)}function N(e){var t,a=e.groupId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.GET_USER_GROUPS_RESOURCE_DATA),e.next=3,(0,o.call)(t,r.default.getResourceByUserGroups,{groupId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function A(e){var t,a=e.groupId,d=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.SUBMIT_USER_GROUPS_RESOURCE_DATA),e.next=3,(0,o.call)(t,r.default.updateUserGroupsResource,{groupId:a,config:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function R(e){var t,a=e.groupId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.GET_SYS_USER_GROUPS_INFO),e.next=3,(0,o.call)(t,r.default.getUserGroupsInfo,{groupId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),h,this)}function F(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.SUBMIT_USER_GROUPS_DATA),a.next=3,(0,o.call)(t,"edit"!==e.subType?r.default.savePostUserGroups:r.default.updatePutUserGroups,e.userGroupsData);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),g,this)}function O(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.DELETE_USER_GROUPS),a.next=3,(0,o.call)(t,r.default.deleteUserGroups,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),v,this)}function V(e){var t,a=e.groupName,d=e.sortField,l=e.offset,u=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.userGroupsActions,s.types.GET_SYS_USER_GROUPS_LIST),e.next=3,(0,o.call)(t,r.default.getUserGroupsList,{groupName:a,sortField:d,offset:l,limit:u});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),_,this)}function U(){var e,t,a,r,i,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_SYS_USER_GROUPS_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.groupName,r=t.sortField,i=t.offset,d=t.limit,n.next=8,(0,o.call)(V,{groupName:a,sortField:r,offset:i,limit:d});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),y,this)}function B(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.DELETE_USER_GROUPS_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(O,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),b,this)}function G(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_USER_GROUPS_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,r=t.userGroupsData,n.next=8,(0,o.call)(F,{userGroupsData:r,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),x,this)}function z(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_SYS_USER_GROUPS_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.groupId,n.next=8,(0,o.call)(R,{groupId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),C,this)}function q(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_USER_GROUPS_RESOURCE_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.groupId,r=t.config,n.next=8,(0,o.call)(A,{groupId:a,config:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),j,this)}function K(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_USER_GROUPS_RESOURCE_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.groupId,n.next=8,(0,o.call)(N,{groupId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),S,this)}function H(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.LOAD_SYS_USER_GROUPS_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.tenantId,n.next=8,(0,o.call)(L,{tenantId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),I,this)}function Y(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_GROUPS_ROLES_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.groupId,r=t.config,n.next=8,(0,o.call)(k,{groupId:a,config:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),T,this)}function W(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SUBMIT_GROUPS_USER_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.groupId,r=t.config,n.next=8,(0,o.call)(P,{groupId:a,config:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),w,this)}function J(){var e,t,a,r;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.CHECK_USER_GROUPS_NAME_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.groupId,r=t.groupName,n.next=8,(0,o.call)(M,{groupId:a,groupName:r});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),E,this)}function Q(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(J)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(W)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(Y)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(H)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(K)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(q)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(z)]);case 14:return e.next=16,(0,o.all)([(0,o.fork)(G)]);case 16:return e.next=18,(0,o.all)([(0,o.fork)(U)]);case 18:return e.next=20,(0,o.all)([(0,o.fork)(B)]);case 20:case"end":return e.stop()}}),D,this)}},"./src/redux/sagas/sysManager/userManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=c(a("./node_modules/babel-runtime/regenerator/index.js"));t.getSysPermits=_e,t.getUserJoinedProjects=ye,t.getProjectApplications=be,t.default=xe;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/app.js"),r=a("./src/redux/reducers/sysManager/userManager.js"),i=c(a("./src/redux/services/sysManager/userManager.js")),d=c(a("./src/redux/services/sysManager/projectManage.js")),l=a("./src/utils/authPermit.js"),u=a("./src/redux/sagas/utils.js");function c(e){return e&&e.__esModule?e:{default:e}}var p=n.default.mark(q),f=n.default.mark(K),m=n.default.mark(H),h=n.default.mark(Y),g=n.default.mark(W),v=n.default.mark(J),_=n.default.mark(Q),y=n.default.mark(Z),b=n.default.mark(X),x=n.default.mark($),C=n.default.mark(ee),j=n.default.mark(te),S=n.default.mark(ae),I=n.default.mark(ne),T=n.default.mark(oe),w=n.default.mark(se),E=n.default.mark(re),D=n.default.mark(ie),M=n.default.mark(de),k=n.default.mark(le),P=n.default.mark(ue),L=n.default.mark(ce),N=n.default.mark(pe),A=n.default.mark(fe),R=n.default.mark(me),F=n.default.mark(he),O=n.default.mark(ge),V=n.default.mark(ve),U=n.default.mark(_e),B=n.default.mark(ye),G=n.default.mark(be),z=n.default.mark(xe);function q(e){var t,a=e.userId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.CHECK_USER_NAME),e.next=3,(0,o.call)(t,i.default.checkUserName,{userId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),p,this)}function K(e){var t,a=e.tenantId,s=e.userType;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.LOAD_SYS_USER_LIST),e.next=3,(0,o.call)(t,i.default.loadUserList,{tenantId:a,userType:s});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),f,this)}function H(e){var t,a=e.userId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.GET_USER_GROUPS_DATA),e.next=3,(0,o.call)(t,i.default.getUserGroupsByUser,{userId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),m,this)}function Y(e){var t,a=e.userId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.GET_USER_ROLES_DATA),e.next=3,(0,o.call)(t,i.default.getRolesByUser,{userId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),h,this)}function W(e){var t,a=e.userId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.GET_USER_RESOURCE_DATA),e.next=3,(0,o.call)(t,i.default.getResourceByUser,{userId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),g,this)}function J(e){var t,a=e.userId,s=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.SUBMIT_USER_GROUPS_DATA),e.next=3,(0,o.call)(t,i.default.updateUserGroups,{userId:a,config:s});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),v,this)}function Q(e){var t,a=e.userId,s=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.SUBMIT_USER_ROLES_DATA),e.next=3,(0,o.call)(t,i.default.updateUserRoles,{userId:a,config:s});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),_,this)}function Z(e){var t,a=e.userId,s=e.config;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.SUBMIT_USER_RESOURCE_DATA),e.next=3,(0,o.call)(t,i.default.updateUserResource,{userId:a,config:s});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),y,this)}function X(e){var t,a=e.userId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.GET_SYS_USER_INFO),e.next=3,(0,o.call)(t,i.default.getUserInfo,{userId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),b,this)}function $(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.UNFASTEN_USER),a.next=3,(0,o.call)(t,i.default.unfastenUser,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),x,this)}function ee(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.UPDATE_PASS),a.next=3,(0,o.call)(t,i.default.updatePawData,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),C,this)}function te(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.SUBMIT_USER_DATA),a.next=3,(0,o.call)(t,"edit"!==e.subType?i.default.savePostUser:i.default.updatePutUser,e.userData);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),j,this)}function ae(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.DELETE_USER),a.next=3,(0,o.call)(t,i.default.deleteUser,e);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),S,this)}function ne(e){var t,a=e.userType,s=e.userName,d=e.sortField,l=e.offset,c=e.limit;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,u.getApiFetch)(r.userActions,r.types.GET_SYS_USER_LIST),e.next=3,(0,o.call)(t,i.default.getUserList,{userType:a,userName:s,sortField:d,offset:l,limit:c});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),I,this)}function oe(){var e,t,a,s,i,d,l;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.GET_SYS_USER_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userType,s=t.userName,i=t.sortField,d=t.offset,l=t.limit,n.next=8,(0,o.call)(ne,{userType:a,userName:s,sortField:i,offset:d,limit:l});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),T,this)}function se(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.DELETE_USER_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(ae,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),w,this)}function re(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.UPDATE_PASS_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)(ee,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),E,this)}function ie(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.UNFASTEN_USER_REQUEST);case 3:return e=n.sent,t=e.payload,a=t,n.next=8,(0,o.call)($,a);case 8:n.next=0;break;case 10:case"end":return n.stop()}}),D,this)}function de(){var e,t,a,s;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.SUBMIT_USER_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.subType,s=t.userData,n.next=8,(0,o.call)(te,{userData:s,subType:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),M,this)}function le(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.GET_SYS_USER_INFO_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userId,n.next=8,(0,o.call)(X,{userId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),k,this)}function ue(){var e,t,a,s;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.SUBMIT_USER_GROUPS_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userId,s=t.config,n.next=8,(0,o.call)(J,{userId:a,config:s});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),P,this)}function ce(){var e,t,a,s;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.SUBMIT_USER_ROLES_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userId,s=t.config,n.next=8,(0,o.call)(Q,{userId:a,config:s});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),L,this)}function pe(){var e,t,a,s;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.SUBMIT_USER_RESOURCE_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userId,s=t.config,n.next=8,(0,o.call)(Z,{userId:a,config:s});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),N,this)}function fe(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.GET_USER_GROUPS_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userId,n.next=8,(0,o.call)(H,{userId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),A,this)}function me(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.GET_USER_ROLES_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userId,n.next=8,(0,o.call)(Y,{userId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),R,this)}function he(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.GET_USER_RESOURCE_DATA_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userId,n.next=8,(0,o.call)(W,{userId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),F,this)}function ge(){var e,t,a,s;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.LOAD_SYS_USER_LIST_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.tenantId,s=t.userType,n.next=8,(0,o.call)(K,{tenantId:a,userType:s});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),O,this)}function ve(){var e,t,a;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(r.types.CHECK_USER_NAME_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.userId,n.next=8,(0,o.call)(q,{userId:a});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),V,this)}function _e(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.call)(i.default.getSysPermits);case 2:if(e=t.sent,(0,l.saveLoginData)(e.data),!(0,l.lackRequiredUserInfo)(e.data)){t.next=7;break}return t.next=7,(0,o.put)(s.appActions.showUserInfoCompletion());case 7:case"end":return t.stop()}}),U,this)}function ye(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.call)(i.default.getUserJoinedProject);case 2:return e=t.sent,t.next=5,(0,o.put)(r.userActions.setUserJoinedProject(e.data));case 5:case"end":return t.stop()}}),B,this)}function be(e){var t;return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,o.call)(d.default.getApplicationList,e);case 2:return t=a.sent,a.next=5,(0,o.put)(r.userActions.setProjectApplications(t.data));case 5:case"end":return a.stop()}}),G,this)}function xe(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(ie)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(re)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(ve)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(ge)]);case 8:return e.next=10,(0,o.all)([(0,o.fork)(fe)]);case 10:return e.next=12,(0,o.all)([(0,o.fork)(me)]);case 12:return e.next=14,(0,o.all)([(0,o.fork)(he)]);case 14:return e.next=16,(0,o.all)([(0,o.fork)(pe)]);case 16:return e.next=18,(0,o.all)([(0,o.fork)(ce)]);case 18:return e.next=20,(0,o.all)([(0,o.fork)(ue)]);case 20:return e.next=22,(0,o.all)([(0,o.fork)(le)]);case 22:return e.next=24,(0,o.all)([(0,o.fork)(de)]);case 24:return e.next=26,(0,o.all)([(0,o.fork)(oe)]);case 26:return e.next=28,(0,o.all)([(0,o.fork)(se)]);case 28:case"end":return e.stop()}}),z,this)}},"./src/redux/sagas/trainReport.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=g;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/trainReport.js"),r=d(a("./src/redux/services/trainReport.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(f),u=n.default.mark(m),c=n.default.mark(h),p=n.default.mark(g);function f(){var e,t,a,d,u,c;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_MODEL_REPORT_HEAD_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelId,d=t.taskId,u=t.arithId,c=(0,i.getApiFetch)(s.trainReportActions,s.types.GET_MODEL_REPORT_HEAD),n.next=9,(0,o.call)(c,r.default.getModelReportBasicInfo,{modelId:a,taskId:d,arithId:u});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),l,this)}function m(e){var t,a=e.modelId,d=e.taskId,l=e.arithId;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.trainReportActions,s.types.GET_MODEL_REPORT_DATAS),e.next=3,(0,o.call)(t,r.default.getModelReportDatas,{taskId:d,arithId:l,modelId:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function h(){var e,t,a,r,i;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_MODEL_REPORT_DATAS_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelId,r=t.taskId,i=t.arithId,n.next=8,(0,o.call)(m,{modelId:a,taskId:r,arithId:i});case 8:n.next=0;break;case 10:case"end":return n.stop()}}),c,this)}function g(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(h)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(f)]);case 4:case"end":return e.stop()}}),p,this)}},"./src/redux/sagas/trainResult.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./node_modules/babel-runtime/regenerator/index.js"));t.default=C;var o=a("./node_modules/redux-saga/es/effects.js"),s=a("./src/redux/reducers/trainResult.js"),r=d(a("./src/redux/services/trainResult.js")),i=a("./src/redux/sagas/utils.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=n.default.mark(g),u=n.default.mark(v),c=n.default.mark(_),p=n.default.mark(y),f=n.default.mark(b),m=n.default.mark(x),h=n.default.mark(C);function g(){var e,t,a,d,u;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_MODEL_TRAIN_RESULT_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelId,d=(0,i.getApiFetch)(s.trainResultActions,s.types.GET_MODEL_TRAIN_RESULT),u=(0,i.getApiFetch)(s.trainResultActions,s.types.GET_BEST_MODEL),n.next=10,[(0,o.call)(d,r.default.getModelTrainResult,{modelId:a}),(0,o.call)(u,r.default.getBestModel,{modelId:a})];case 10:n.next=0;break;case 12:case"end":return n.stop()}}),l,this)}function v(e){var t,a=e.modelId,d=e._SYNC_INTERVAL;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,i.getApiFetch)(s.trainResultActions,s.types.GET_MODEL_TRAIN_PROCESS),e.next=3,(0,o.call)(t,r.default.getModelTrainProcess,{modelId:a,_SYNC_INTERVAL:d});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),u,this)}function _(e,t){return n.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.prev=0;case 1:return a.next=4,(0,i.delay)(t||5e3);case 4:return console.log(":::get model train process"),a.next=7,(0,o.call)(v,e);case 7:a.next=1;break;case 9:return a.prev=9,a.next=12,(0,o.cancelled)();case 12:if(!a.sent){a.next=14;break}console.log("canceled sync model train process");case 14:return a.finish(9);case 15:case"end":return a.stop()}}),c,this,[[0,,9,15]])}function y(){var e;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=void 0,t.next=3,(0,o.takeLatest)(s.types.GET_MODEL_TRAIN_PROCESS_REQUEST,n.default.mark((function t(a){var s,r,i,d,l;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=a.payload,i=(r=s||{})._SYNC,d=r._SYNC_INTERVAL,l={modelId:s.modelId,_SYNC_INTERVAL:d},!e){t.next=6;break}return t.next=6,(0,o.cancel)(e);case 6:if(!0!==i){t.next=11;break}return console.log(":::start sync model train process,interval:"+d/1e3+"s"),t.next=10,(0,o.fork)(_,l,d);case 10:e=t.sent;case 11:return t.next=13,(0,o.call)(v,l);case 13:case"end":return t.stop()}}),t,this)})));case 3:return t.next=5,(0,o.takeLatest)(s.types.STOP_SYNC_TRAIN_PROCESS,n.default.mark((function t(){return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}return console.log(":::cancel sync model train process"),t.next=4,(0,o.cancel)(e);case 4:case"end":return t.stop()}}),t,this)})));case 5:case"end":return t.stop()}}),p,this)}function b(){var e,t,a,d,l,u;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.SET_BEST_MODEL_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.modelId,d=t.taskId,l=t.arithId,u=(0,i.getApiFetch)(s.trainResultActions,s.types.SET_BEST_MODEL),n.next=9,(0,o.call)(u,r.default.setBestModel,{modelId:a,taskId:d,arithId:l});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),f,this)}function x(){var e,t,a,d;return n.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,(0,o.take)(s.types.GET_MODEL_TRAIN_LOG_REQUEST);case 3:return e=n.sent,t=e.payload,a=t.taskId,d=(0,i.getApiFetch)(s.trainResultActions,s.types.GET_MODEL_TRAIN_LOG),n.next=9,(0,o.call)(d,r.default.getModelTrainLog,{taskId:a});case 9:n.next=0;break;case 11:case"end":return n.stop()}}),m,this)}function C(){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.all)([(0,o.fork)(g)]);case 2:return e.next=4,(0,o.all)([(0,o.fork)(y)]);case 4:return e.next=6,(0,o.all)([(0,o.fork)(b)]);case 6:return e.next=8,(0,o.all)([(0,o.fork)(x)]);case 8:case"end":return e.stop()}}),h,this)}},"./src/redux/sagas/utils.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./node_modules/babel-runtime/regenerator/index.js"),s=(n=o)&&n.__esModule?n:{default:n};t.getApiFetch=function(e,t){return s.default.mark((function a(n,o){var d;return s.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,(0,r.call)(n,o);case 3:return d=a.sent,a.next=6,(0,r.put)((0,i.getActionCreator)(e,t,i.ATION_TYPE_SUFFIX.SUCCESS)(d));case 6:return a.abrupt("return",{success:!0,result:d});case 9:return a.prev=9,a.t0=a.catch(0),a.next=13,(0,r.put)((0,i.getActionCreator)(e,t,i.ATION_TYPE_SUFFIX.FAILURE)(a.t0));case 13:return a.abrupt("return",{success:!1,result:a.t0});case 14:case"end":return a.stop()}}),a,this,[[0,9]])}))},t.delay=function(e){return new Promise((function(t){setTimeout((function(){return t(!0)}),e)}))};var r=a("./node_modules/redux-saga/es/effects.js"),i=a("./src/redux/actionTypeHelper.js")},"./src/redux/selectors/affiche.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectGetLoading=t.selectSaveLoading=t.selectMarkAllReadCode=t.selectAfficheMesData=t.selectAfficheListLoading=t.selectAfficheList=t.selectAfficheListByUser=t.selectAfficheListByUserLoading=t.selectSubmitAfficheData=t.selectAfficheData=t.selectAffichePagination=t.selectMarkReadCode=t.selectOperateError=t.selectOperateLoading=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("affiche")},r=(0,n.createSelector)(s,(function(e){return e.get("afficheMesData")})),i=(0,n.createSelector)(s,(function(e){return e.get("markAllReadCode")})),d=(0,n.createSelector)(s,(function(e){return e.get("markReadCode")})),l=(0,n.createSelector)(s,(function(e){return e.get("afficheList")})),u=(0,n.createSelector)(s,(function(e){return e.get("afficheListByUser")})),c=(0,n.createSelector)(s,(function(e){return e.get("submitAfficheData")})),p=(0,n.createSelector)(s,(function(e){return e.get("affichePagination")})),f=(0,n.createSelector)(s,(function(e){return e.get("afficheData")}));t.selectOperateLoading=function(e){return(0,o.loadingSelector)("AFFICHE",["DELETE_AFFICHE"])(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("AFFICHE",["DELETE_AFFICHE"])(e)},t.selectMarkReadCode=d,t.selectAffichePagination=p,t.selectAfficheData=f,t.selectSubmitAfficheData=c,t.selectAfficheListByUserLoading=function(e){return(0,o.loadingSelector)("AFFICHE","GET_AFFICHE_LIST_USER")(e)},t.selectAfficheListByUser=u,t.selectAfficheList=l,t.selectAfficheListLoading=function(e){return(0,o.loadingSelector)("AFFICHE","GET_AFFICHE_LIST")(e)},t.selectAfficheMesData=r,t.selectMarkAllReadCode=i,t.selectSaveLoading=function(e){return(0,o.loadingSelector)("AFFICHE",["SUBMIT_AFFICHE_DATA"])(e)},t.selectGetLoading=function(e){return(0,o.loadingSelector)("AFFICHE",["GET_AFFICHE_INFO"])(e)}},"./src/redux/selectors/app.js":function(e,t,a){"use strict";t.__esModule=!0,t.errorSelector=t.loadingSelector=t.selectShowUserInfoCompletionModal=t.selectTopMenuSelectedKey=t.selectHideMenuBarSetting=t.selectIntegrationSetting=t.selectReadyLaunch=void 0;var n,o=a("./node_modules/reselect/lib/index.js"),s=a("./node_modules/lodash/lodash.js"),r=(n=s)&&n.__esModule?n:{default:n};var i=function(e){return e.get("app")},d=(t.selectReadyLaunch=(0,o.createSelector)(i,(function(e){return e.get("isReadyLaunch")})),t.selectIntegrationSetting=(0,o.createSelector)(i,(function(e){return e.get("integration")})),t.selectHideMenuBarSetting=(0,o.createSelector)(i,(function(e){return e.get("hideMenuBar")})),t.selectTopMenuSelectedKey=(0,o.createSelector)(i,(function(e){return e.get("topMenuSelectedKey")})),t.selectShowUserInfoCompletionModal=(0,o.createSelector)(i,(function(e){return e.get("showUserInfoCompletionModal")})),function(e,t){return r.default.toUpper(e)+"/"+r.default.toUpper(t)});t.loadingSelector=function(e,t){return function(a){return r.default.isArray(t)?r.default.some(t,(function(t){return!0===a.getIn(["ui","loading",d(e,t)],!1)})):a.getIn(["ui","loading",d(e,t)])}},t.errorSelector=function(e,t){return function(a){return r.default.isArray(t)?r.default.compact(r.default.map(t,(function(t){return a.getIn(["ui","error",d(e,t)])}))):a.getIn(["ui","error",d(e,t)])}}},"./src/redux/selectors/auth.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectLoginErrorState=t.selectShowBindGitModal=t.selectShowLoginModal=t.selectError=t.selectIsAuthenticated=t.selectLogging=t.selectAuth=t.selectGuideDetailsKey=t.selectOpenGuideDetails=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/utils/authPermit.js"),s=function(e){return e.get("auth")},r=(0,n.createSelector)(s,(function(e){return e.get("logining")})),i=(0,n.createSelector)(s,(function(e){return e.get("openGuideDetails")})),d=(0,n.createSelector)(s,(function(e){return e.get("guideDetailsKey")})),l=(0,n.createSelector)(s,(function(e){return e.get("isAuthenticated")&&(0,o.isAuth)()})),u=(0,n.createSelector)(s,(function(e){return e.get("error")})),c=(0,n.createSelector)(s,(function(e){return e.get("showLoginModal")})),p=(0,n.createSelector)(s,(function(e){return e.get("loginErrorState")})),f=(0,n.createSelector)(s,(function(e){return e.get("showBindGitModal")}));t.selectOpenGuideDetails=i,t.selectGuideDetailsKey=d,t.selectAuth=s,t.selectLogging=r,t.selectIsAuthenticated=l,t.selectError=u,t.selectShowLoginModal=c,t.selectShowBindGitModal=f,t.selectLoginErrorState=p},"./src/redux/selectors/busiTypes.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectModelApplyNum=t.selectSaveBusiTypes=t.selectCheckNameCode=t.selectGetBusinessTypeData=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=function(e){return e.get("busiTypes")},s=(0,n.createSelector)(o,(function(e){return e.get("modelApplyNum")})),r=(0,n.createSelector)(o,(function(e){return e.get("saveBusiTypes")})),i=(0,n.createSelector)(o,(function(e){return e.get("checkNameCode")})),d=(0,n.createSelector)(o,(function(e){return e.get("businessTypeData")}));t.selectGetBusinessTypeData=d,t.selectCheckNameCode=i,t.selectSaveBusiTypes=r,t.selectModelApplyNum=s},"./src/redux/selectors/checkName.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectCheckNameError=t.selectCheckNameLoading=t.selectVerifyInfo=t.selectCheckName=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("checkName")},r=(0,n.createSelector)(s,(function(e){return e.get("verifyInfo")}));t.selectCheckName=s,t.selectVerifyInfo=r,t.selectCheckNameLoading=function(e){return(0,o.loadingSelector)("CHECK_NAME",["CHECK_NAME_AVAILABLE"])(e)},t.selectCheckNameError=function(e){return(0,o.errorSelector)("CHECK_NAME",["CHECK_NAME_AVAILABLE"])(e)}},"./src/redux/selectors/dashboard.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectSysStateData=t.selectCapacityData=t.selectBusinessData=t.selectFeatureData=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=function(e){return e.get("dashboard")},s=(0,n.createSelector)(o,(function(e){return e.get("featureData")})),r=(0,n.createSelector)(o,(function(e){return e.get("businessData")})),i=(0,n.createSelector)(o,(function(e){return e.get("capacityData")})),d=(0,n.createSelector)(o,(function(e){return e.get("sysStateData")}));t.selectFeatureData=s,t.selectBusinessData=r,t.selectCapacityData=i,t.selectSysStateData=d},"./src/redux/selectors/dataDispose.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectDataDisposeList=t.selectDataDisposeListLoading=t.selectDeldataDispose=t.selectExedataDispose=t.selectDataDispose=t.selectSubmitDataDispose=t.selectCheckNameCode=t.selectCancelExecute=void 0;var n,o=a("./node_modules/reselect/lib/index.js"),s=a("./node_modules/dayjs/dayjs.min.js"),r=(n=s)&&n.__esModule?n:{default:n},i=a("./src/redux/selectors/app.js"),d=a("./src/utils/dateUtil.js");var l=function(e){return e.get("dataDispose")},u=(0,o.createSelector)((function(e){return e.getIn(["dataDispose","dataDisposeList"])}),(function(e){if(0===e.size)return[];var t={0:"\u5f85\u6267\u884c",7:"\u6267\u884c\u4e2d",9:"\u5931\u8d25",10:"\u6210\u529f",8:"\u505c\u6b62"};return e.map((function(e){var a="\u65e0";if(null!==e.get("startTime")&&""!==e.get("startTime")&&null!==e.get("endTime")&&""!==e.get("endTime")){var n=(0,r.default)(e.get("startTime")),o=(0,r.default)(e.get("endTime"));a=(0,d.calcRelativeTime)(n,o)}return e.merge({createTime:c(e.get("startTime")),updateTime:c(e.get("updateTime")),statusTxt:t[e.get("status")],stageDuration:a})})).toJS()}));function c(e){if(null===e||""===e||void 0===e)return"\u7a7a";var t=new Date(e);return t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate())+" "+(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}var p=(0,o.createSelector)(l,(function(e){return e.get("delDataDispose")})),f=(0,o.createSelector)(l,(function(e){return e.get("cancelExecute")})),m=(0,o.createSelector)(l,(function(e){return e.get("exeDataDispose")})),h=(0,o.createSelector)(l,(function(e){return e.get("dataDispose")})),g=(0,o.createSelector)(l,(function(e){return e.get("submitDataDispose")})),v=(0,o.createSelector)(l,(function(e){return e.get("checkNameCode")}));t.selectCancelExecute=f,t.selectCheckNameCode=v,t.selectSubmitDataDispose=g,t.selectDataDispose=h,t.selectExedataDispose=m,t.selectDeldataDispose=p,t.selectDataDisposeListLoading=function(e){return(0,i.loadingSelector)("DATA_DISPOSE","GET_DATA_DISPOSE_LIST")(e)},t.selectDataDisposeList=u},"./src/redux/selectors/dataSource.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectPicPreviewLoading=t.selectPicPreviewData=t.getFieldSimpleById=t.selectDatasArithmetic=t.selectDatasParam=t.selectDatasKpiType=t.selectDatasSourcesAudit=t.selectCyclesData=t.selectSourceData=t.saveSourceMetaDatas=t.uploadMetaData=t.selectSourceDataLoading=t.selectCyclesDataLoading=t.selectSourcesPagination=t.selectDbPreviewDataList=t.selectSaveDataSource=t.selectDatasSourcesInfo=t.selectDbPreviewDataListLoading=t.selectOperateLoading=t.selectOperateError=t.selectDatasSourcesErrLogs=t.selectDbPreviewError=t.selectFilePreviewError=t.selectFtpPreviewError=t.deleteCyclesBySourcesIdCode=t.selectDataSourceQuote=t.selectDataSourceQuoteLoading=t.selectDataSourceAuditListLoading=t.selectDeepLearnArithmetic=t.selectCyclesReviewCode=t.selectTableNames=t.selectFileContentData=t.selectFileContentDataLoading=t.selectCancelExecute=t.selectCleanDataCode=t.selectTableNamesLoading=t.selectDbHeaderData=t.selectSourceDropDown=t.selectDatasSourcesInfoLoading=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("dataSource")},r=(0,n.createSelector)(s,(function(e){return e.get("datasSourcesInfo")?e.get("datasSourcesInfo").toJS():e.get("datasSourcesInfo")})),i=(0,n.createSelector)(s,(function(e){return e.get("dbHeaderData")})),d=(0,n.createSelector)(s,(function(e){return e.get("saveDataSource")})),l=(0,n.createSelector)(s,(function(e){return e.get("sourcesPagination")})),u=(0,n.createSelector)(s,(function(e){return e.get("tableNames")})),c=(0,n.createSelector)(s,(function(e){return e.get("dbPreviewData")})),p=(0,n.createSelector)(s,(function(e){return e.get("cyclesReviewCode")})),f=(0,n.createSelector)(s,(function(e){return e.get("dataSourceQuote")})),m=(0,n.createSelector)((function(e){return e.getIn(["dataSource","datasSources"])}),(function(e){return e.size>0?e.map((function(e){return e.merge({dataTypeTxt:{db:"\u6570\u636e\u5e93",ftp:"FTP",file:"\u672c\u5730\u6587\u4ef6",local:"local",img:"\u56fe\u7247\u6587\u4ef6",text:"\u672c\u5730\u6587\u4ef6",audio:"\u97f3\u9891\u6587\u4ef6",video:"\u89c6\u9891\u6587\u4ef6"}[e.get("dataType").toLowerCase()]})})):e})),h=(0,n.createSelector)(s,(function(e){return e.get("deleteCyclesBySourcesIdCode")})),g=(0,n.createSelector)(s,(function(e){return e.get("errorLogs")})),v=(0,n.createSelector)(s,(function(e){return e.get("datasCycles")})),_=(0,n.createSelector)(s,(function(e){return e.get("datasSourcesAudit")})),y=(0,n.createSelector)(s,(function(e){return e.get("datasKpiType")})),b=(0,n.createSelector)(s,(function(e){return e.get("deepLearnArithmetic")})),x=(0,n.createSelector)(s,(function(e){return e.get("metaDatas")})),C=(0,n.createSelector)(s,(function(e){return e.get("datasParam")})),j=(0,n.createSelector)(s,(function(e){return e.get("datasArithmetic")})),S=(0,n.createSelector)(s,(function(e){return e.get("picPreviewData")})),I=(0,n.createSelector)(s,(function(e){return e.get("fileContentData")})),T=(0,n.createSelector)(s,(function(e){return e.get("cancelExecute")})),w=(0,n.createSelector)(s,(function(e){return e.get("cleanDataCode")})),E=(0,n.createSelector)(s,(function(e){return e.get("sourceDropDown")})),D=(0,n.createSelector)(s,(function(e){return e.get("uploadMetaData")}));t.selectDatasSourcesInfoLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE","GET_DATA_SOURCE_INFO")(e)},t.selectSourceDropDown=E,t.selectDbHeaderData=i,t.selectTableNamesLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE","GET_TABLE_NAME")(e)},t.selectCleanDataCode=w,t.selectCancelExecute=T,t.selectFileContentDataLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE","GET_FILE_CONTENT_DATA")(e)},t.selectFileContentData=I,t.selectTableNames=u,t.selectCyclesReviewCode=p,t.selectDeepLearnArithmetic=b,t.selectDataSourceAuditListLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE",["GET_DATA_SOURCE_AUDIT_LIST"])(e)},t.selectDataSourceQuoteLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE","GET_DATA_SOURCE_QUOTE")(e)},t.selectDataSourceQuote=f,t.deleteCyclesBySourcesIdCode=h,t.selectFtpPreviewError=function(e){return(0,o.errorSelector)("DATA_SOURCE",["GET_FTP_PREVIEW_DATA"])(e)},t.selectFilePreviewError=function(e){return(0,o.errorSelector)("DATA_SOURCE",["GET_FILE_PREVIEW_DATA"])(e)},t.selectDbPreviewError=function(e){return(0,o.errorSelector)("DATA_SOURCE",["GET_DB_PREVIEW_DATA"])(e)},t.selectDatasSourcesErrLogs=g,t.selectOperateError=function(e){return(0,o.errorSelector)("DATA_SOURCE",["DELETE_DATA_SOURCE_INFO","CLEAN_DATA_SOURCE","CLEAN_DATA_SOURCE_CYCLES"])(e)},t.selectOperateLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE",["DELETE_DATA_SOURCE_INFO","CLEAN_DATA_SOURCE","CLEAN_DATA_SOURCE_CYCLES"])(e)},t.selectDbPreviewDataListLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE",["GET_DB_PREVIEW_DATA","GET_FTP_PREVIEW_DATA","GET_FILE_PREVIEW_DATA"])(e)},t.selectDatasSourcesInfo=r,t.selectSaveDataSource=d,t.selectDbPreviewDataList=c,t.selectSourcesPagination=l,t.selectCyclesDataLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE","GET_DATA_CYCLES_LIST")(e)},t.selectSourceDataLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE","GET_DATA_SOURCE_LIST")(e)},t.uploadMetaData=D,t.saveSourceMetaDatas=x,t.selectSourceData=m,t.selectCyclesData=v,t.selectDatasSourcesAudit=_,t.selectDatasKpiType=y,t.selectDatasParam=C,t.selectDatasArithmetic=j,t.getFieldSimpleById=function(e,t){if(t){var a=t.fieldId,n=t.fieldEnName;if(void 0!==a&&""!==a){var o=e.getIn(["dataSource"]).get("datasSourcesAudit").find((function(e){return e.get("fieldId")===a}));if(o)return o}else if(void 0!==n&&""!==n){var s=e.getIn(["dataSource"]).get("datasSourcesAudit").find((function(e){return e.get("fieldEnName")===n}));if(s)return s}}return null},t.selectPicPreviewData=S,t.selectPicPreviewLoading=function(e){return(0,o.loadingSelector)("DATA_SOURCE","GET_PIC_PREVIEW_DATA")(e)}},"./src/redux/selectors/dragDrop/flowDiagramSelector.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectNodeResultExtIds=t.selectIsInRunningFlowForContextMenu=t.selectIsInRunningFlowForSelected=t.selectFlowStatus=t.selectSaveModelPath=t.selectNodeResult=t.selectNodeTempPosition=t.selectNodeExecInfo=t.selectNodeExecLog=t.selectExecResult=t.selectExecInfo=t.selectConfigError=t.selectNodeInput=t.selectFlowError=t.selectRunningNode=t.selectAllowRedoCount=t.selectAllowUndoCount=t.selectActiveNodePorts=t.selectTmpLink=t.selectCanvasBestView=t.selectRunFinished=t.selectHaveNodeRunning=t.getFlowNodeById=t.selectContextMenu=t.selectHovered=t.selectSelected=t.selectZoomScale=t.selectCanvasPosition=t.selectCanvasRect=t.selectCanvasEnv=t.selectFlowLinks=t.selectFlowNodes=t.selectIsExpandConsolePanel=t.selectIsLockConfigPanel=t.selectConsolePanelSetting=t.selectConfigPanelSetting=t.selectCompSetting=void 0;var n,o=a("./node_modules/babel-runtime/helpers/extends.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./node_modules/immutable3/dist/immutable.js"),i=a("./src/module/dragDrop/constant.js"),d=a("./node_modules/reselect/lib/index.js"),l=a("./src/module/dragDrop/config.jsx"),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a("./src/module/dragDrop/flow_arrange/utils/diagramUtil.js")),c=a("./src/redux/selectors/dragDrop/pickNodeSelector.js");var p=function(e){return e.getIn(["dragDrop","flowDiagram"])},f=function(e){return p(e).get("present")},m=t.selectCompSetting=function(e){return f(e).get("component_setting")||(0,r.Map)()},h=(t.selectConfigPanelSetting=function(e){return m(e).get("configPanel")},t.selectConsolePanelSetting=function(e){return m(e).get("consolePanel")},t.selectIsLockConfigPanel=function(e){return!0===m(e).getIn(["configPanel","lock"])},t.selectIsExpandConsolePanel=function(e){return!0===m(e).getIn(["consolePanel","expand"])},t.selectFlowNodes=function(e){var t=f(e);return r.Map.isMap(t)?t.get("nodes"):(0,r.Map)()}),g=t.selectFlowLinks=function(e){var t=f(e);return r.Map.isMap(t)?t.get("links"):(0,r.Map)()},v=(t.selectCanvasEnv=function(e){return f(e).get("canvas")},t.selectCanvasRect=function(e){return f(e).getIn(["canvas","rect"])},t.selectCanvasPosition=function(e){return f(e).getIn(["canvas","position"])},t.selectZoomScale=function(e){return f(e).getIn(["canvas","zoomScale"])},t.selectSelected=function(e){return f(e).get("selected")}),y=(t.selectHovered=function(e){return f(e).get("hovered")},t.selectContextMenu=function(e){return f(e).get("contextMenu")}),b=(t.getFlowNodeById=function(e,t){return h(e).get(t)},t.selectHaveNodeRunning=(0,d.createSelector)([h],(function(e){if(e.isEmpty())return!1;var t=e.values(),a=Array.isArray(t),n=0;for(t=a?t:t[Symbol.iterator]();;){var o;if(a){if(n>=t.length)break;o=t[n++]}else{if((n=t.next()).done)break;o=n.value}var s=o;if(s.get("status")===i.FLOW_NODE_STATUS.EXEC_RUNNING||s.get("status")===i.FLOW_NODE_STATUS.EXEC_WAIT)return!0}return!1})),t.selectRunFinished=(0,d.createSelector)([h],(function(e){return!e.isEmpty()&&_.isNil(e.find((function(e){return e.get("status")!==i.FLOW_NODE_STATUS.EXEC_OK})))})),t.selectCanvasBestView=(0,d.createSelector)([function(e){return e.get("nodes")},function(e){return e.getIn(["canvas","rect"])}],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Map)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.Map)(),a=[],n=[];if(e.isEmpty())return{x:0,y:0};var o=e.values(),s=Array.isArray(o),i=0;for(o=s?o:o[Symbol.iterator]();;){var d;if(s){if(i>=o.length)break;d=o[i++]}else{if((i=o.next()).done)break;d=i.value}var u=d;a.push(u.getIn(["position","x"])),n.push(u.getIn(["position","y"]))}var c=_.min(a),p=_.max(a),f=_.min(n),m=_.max(n),h=t.get("height")||500,g=t.get("width")||800;return{x:g/2-(p-c)/2-c-l.styleVar.flow_node_width/2,y:h/2-(m-f)/2-f-l.styleVar.flow_node_height/2}})),t.selectTmpLink=function(e){return f(e).get("link_tmp")},t.selectActiveNodePorts=function(e){return f(e).get("node_active_ports")},t.selectAllowUndoCount=function(e){return(function(e){return p(e).get("past")}(e)||(0,r.List)()).size},t.selectAllowRedoCount=function(e){return(function(e){return p(e).get("future")}(e)||(0,r.List)()).size},t.selectRunningNode=(0,d.createSelector)([h],(function(e){if(e.isEmpty())return null;var t=e.values(),a=Array.isArray(t),n=0;for(t=a?t:t[Symbol.iterator]();;){var o;if(a){if(n>=t.length)break;o=t[n++]}else{if((n=t.next()).done)break;o=n.value}var s=o;if(s.get("status")===i.FLOW_NODE_STATUS.EXEC_RUNNING)return s}return null})),t.selectFlowError=function(e){return f(e).getIn(["conf_error"])},t.selectNodeInput=(0,d.createSelector)([h,g,v],(function(e,t,a){return null!==a&&"node"===a.get("type")?u.getNodeInputParams(e,t,a.getIn(["data","id"])):[]})),t.selectConfigError=(0,d.createSelector)([f,h],(function(e,t){return(e.get("conf_error")||(0,r.List)()).map((function(e){return e.set("nodeTitle",t.getIn([e.get("nodeId"),"title"]))}))})),t.selectExecInfo=function(e){return f(e).get("nodes_exec_info")||(0,r.Map)()}),x=t.selectExecResult=function(e){return f(e).get("nodes_result")||(0,r.Map)()},C=(t.selectNodeExecLog=function(e){return f(e).get("node_log")},t.selectNodeExecInfo=function(e,t){return b(e).get(t)});t.selectNodeTempPosition=function(e,t){return f(e).getIn(["nodes_tmp_position",t])},t.selectNodeResult=function(e){return x(e)},t.selectSaveModelPath=function(e,t){return(C(e,t)||(0,r.Map)()).getIn(["output","modelPath"])},t.selectFlowStatus=(0,d.createSelector)([h],(function(e){if(e.isEmpty())return i.MODEL_STATUS.CONF_WAIT;var t=0,a=e.values(),n=Array.isArray(a),o=0;for(a=n?a:a[Symbol.iterator]();;){var s;if(n){if(o>=a.length)break;s=a[o++]}else{if((o=a.next()).done)break;s=o.value}var r=s;if(r.get("status")===i.FLOW_NODE_STATUS.EXEC_ERR)return i.MODEL_STATUS.EXEC_ERROR;if(r.get("status")===i.FLOW_NODE_STATUS.EXEC_RUNNING)return i.MODEL_STATUS.EXEC_RUNNING;r.get("status")===i.FLOW_NODE_STATUS.EXEC_OK&&t++}return t===e.count()?i.MODEL_STATUS.EXEC_OK:i.MODEL_STATUS.CONF_WAIT})),t.selectIsInRunningFlowForSelected=(0,d.createSelector)([h,g,v],(function(e,t,a){var n=a&&a.get("type"),o=a&&a.getIn(["data","id"]);return!("node"!==n&&"link"!==n||!o)&&j(e,t,n,o)})),t.selectIsInRunningFlowForContextMenu=(0,d.createSelector)([h,g,y],(function(e,t,a){var n=a&&a.get("type"),o=a&&a.getIn(["data","id"]);return!("node"!==n&&"link"!==n||!o)&&j(e,t,n,o)}));function j(e,t,a,n){if(!a)return!1;var o=[];if("link"===a){var s=t.getIn([n,"to","nodeId"]);o=u.getNodesInRearFlowByNodeId({nodeId:s,flowLinks:t})}"node"===a&&(o=u.getNodesInRearFlowByNodeId({nodeId:n,flowLinks:t}));for(var r=0;r<_.size(o);r++){var d=e.getIn([o[r],"status"]);if(d===i.FLOW_NODE_STATUS.EXEC_RUNNING||d===i.FLOW_NODE_STATUS.EXEC_WAIT)return!0}return!1}t.selectNodeResultExtIds=function(e,t){var a=(0,c.selectPickNodeMap)(e),n=h(e),o=g(e),d=n.getIn([t,"type"]);if(!d)return{};var l=a.get(d);return"estimate"===(l&&l.getIn(["typeIds",0]))?function e(t,a,n,o,d){if(d>2)return{};for(var l=t.valueSeq().filter((function(e){return e.getIn(["to","nodeId"])===o})).map((function(e){return e.getIn(["from","nodeId"])})).toList(),u={},c=0;c<l.count();c++){var p=a.getIn([l.get(c),"type"]);_.startsWith(p+"_","predict")&&(u=(0,s.default)({},u,{predictNodeId:l.get(c)}));var f=(n.getIn([p,"typeIds"])||(0,r.List)()).toArray();if(!_.isEmpty(f)){_.size(f)>0&&f[0]===i.PICK_NODE_TYPE.ARITH&&(u=(0,s.default)({},u,{arithNodeId:l.get(c)}));var m=e(t,a,n,l.get(c),d+1);u=(0,s.default)({},u,m)}}return u}(o,n,a,t,1):{}}},"./src/redux/selectors/dragDrop/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./src/redux/selectors/dragDrop/flowDiagramSelector.js")),o=r(a("./src/redux/selectors/dragDrop/modelSelector.js")),s=r(a("./src/redux/selectors/dragDrop/pickNodeSelector.js"));function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}t.default={flow:n,model:o,pickNode:s}},"./src/redux/selectors/dragDrop/modelSelector.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectExecLogs=t.selectKernelId=t.selectSessionId=t.selectJupyterInfo=t.selectSessionConnected=t.selectError=t.selectLoading=t.selectSaveModels=t.selectModelInfo=void 0;var n=a("./src/redux/selectors/app.js"),o=a("./node_modules/immutable3/dist/immutable.js"),s=a("./node_modules/reselect/lib/index.js"),r=a("./src/redux/selectors/dragDrop/flowDiagramSelector.js");t.selectModelInfo=function(e){return e.getIn(["dragDrop","dragDropModel","model_info"])||(0,o.Map)()},t.selectSaveModels=function(e){return e.getIn(["dragDrop","dragDropModel","save_models"])||(0,o.List)()},t.selectLoading=function(e,t){return(0,n.loadingSelector)("DRAG_DROP_MODEL",_.toUpper(t))(e)},t.selectError=function(e,t){return(0,n.errorSelector)("DRAG_DROP_MODEL",_.toUpper(t))(e)},t.selectSessionConnected=function(e){return e.getIn(["dragDrop","dragDropModel","isConnected"])},t.selectJupyterInfo=function(e){return e.getIn(["dragDrop","dragDropModel","jupyter_info"])},t.selectSessionId=function(e){return e.getIn(["dragDrop","dragDropModel","sessionId"])},t.selectKernelId=function(e){return e.getIn(["dragDrop","dragDropModel","kernelId"])},t.selectExecLogs=(0,s.createSelector)([r.selectFlowNodes,function(e){return e.getIn(["dragDrop","dragDropModel","exec_logs"])}],(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,o.List)();return t.map((function(t){var a=t.get("nodeId"),n=t.get("type"),o=t.get("message");if(a&&"info"===n){var s="init"===a?"\u521d\u59cb\u5316":e.getIn([a,"title"]);return t.set("message",_.replace(o,"@NODE_ID@",s))}return t}))}))},"./src/redux/selectors/dragDrop/pickNodeSelector.js":function(e,t,a){"use strict";t.__esModule=!0,t.getFuncHelper=t.hasPickNodesLoaded=t.selectPickNodeTreeWithFilter=t.selectPickNodes=t.selectFilterPickNodeAry=t.selectPickNodeTree=t.selectPickNodeAry=t.selectPickNodeMap=t.selectError=t.selectLoading=void 0;var n=c(a("./node_modules/antd/es/message/index.js"));a("./node_modules/antd/es/message/style/index.js");var o=a("./src/redux/selectors/app.js"),s=c(a("./node_modules/lodash/lodash.js")),r=a("./node_modules/reselect/lib/index.js"),i=a("./node_modules/immutable3/dist/immutable.js"),d=u(a("./src/module/dragDrop/flow_arrange/utils/pickNodeUtil.js")),l=u(a("./src/module/dragDrop/flow_arrange/utils/diagramUtil.js"));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function c(e){return e&&e.__esModule?e:{default:e}}n.default.config({maxCount:1,top:100});t.selectLoading=function(e,t){return(0,o.loadingSelector)("PICK_NODES",s.default.toUpper(t))(e)},t.selectError=function(e,t){return(0,o.errorSelector)("PICK_NODES",s.default.toUpper(t))(e)};var p=t.selectPickNodeMap=function(e){return e.getIn(["dragDrop","pickNodes","entities"])||e.get("entities")},f=t.selectPickNodeAry=function(e){return e.getIn(["dragDrop","pickNodes","result"])},m=t.selectPickNodeTree=function(e){return e.getIn(["dragDrop","pickNodes","tree"])},h=t.selectFilterPickNodeAry=function(e){return e.getIn(["dragDrop","pickNodes","filter_pickNodes"])},g=(t.selectPickNodes=(0,r.createSelector)([p,f],(function(e,t){return t.map((function(t){return e.get(t)}))})),t.selectPickNodeTreeWithFilter=(0,r.createSelector)([h,m],(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.List)();return s.default.isNil(e)?t:g(t,e)})),t.hasPickNodesLoaded=(0,r.createSelector)([p],(function(e){return i.Map.isMap(e)&&!e.isEmpty()})),function e(t,a){return t.isEmpty()?(0,i.List)():t.map((function(t){var n=t.get("key"),o=t.get("children")||(0,i.List)();if(o.isEmpty())return a.includes(n)?t:null;var s=e(o,a);return s.isEmpty()?null:t.set("children",s)})).filter((function(e){return null!==e}))});t.getFuncHelper=(0,r.createSelector)([p],(function(e){var t=i.Map.isMap(e)?e.toJS():{};return{buildNodePorts:function(e){return d.buildNodePorts(t,e)},getNodeMainType:function(e){return d.getNodeMainType(t,e)},getRecursionNodeTypeIds:function(e){return d.getNodeTypeIds(t,e)},getRecursionNodeTypeNames:function(e){return d.getNodeTypeNames(t,e)},getNodeTips:function(e){return s.default.get(d.getPickNode(t,e),"confTips",[])},getNodeSetting:function(e){return s.default.get(d.getPickNode(t,e),"nodeSetting",{})},getNodeBindRule:function(e){return s.default.get(d.getPickNode(t,e),"bindRule",{})},getConfigComp:function(e){return s.default.get(d.getPickNode(t,e),"confComp")},getContextMenu:function(e){return s.default.get(d.getPickNode(t,e),"contextMenu",[])},validateNodeLinking:function(e,a,n,o){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return l.validateNodeLinking(t,e,a,n,o,s)}}}))},"./src/redux/selectors/enumDic.js":function(e,t,a){"use strict";t.__esModule=!0,t.dicGroupHelper=void 0;var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./node_modules/reselect/lib/index.js");var i=(0,r.createSelector)((function(e){return e.get("enumDic")}),(function(e){return e?e.toJS():{}})),d=function(e,t,a){this.dicMap=t,this.dicHash=e,this.dicData=a};d.prototype={list:function(){var e=this;return this.dicData.map((function(t){return s.default.get(e.dicHash,t)}))},text:function(e){var t=this;return s.default.isArray(e)?e.map((function(e){return s.default.get(t.dicHash,e+".txt")})):s.default.get(this.dicHash,e+".txt")},code:function(e){var t=this;return s.default.isArray(e)?e.map((function(e){return s.default.get(t.dicHash,e+".txt")})):s.default.get(this.dicHash,e+".code")},get:function(e){var t=this;return s.default.isArray(e)?e.map((function(e){return s.default.get(t.dicHash,e)})):s.default.get(this.dicHash,e)},getByCode:function(e){var t=this;return s.default.isArray(e)?e.map((function(e){return s.default.get(t.dicHash,dicMap[e])})):s.default.get(this.dicHash,this.dicMap[e])},value:function(e){var t=this;return s.default.isArray(e)?e.map((function(e){return s.default.get(t.dicHash,t.dicMap[e]+".value")})):s.default.get(this.dicHash,this.dicMap[e]+".value")},has:function(e){return s.default.has(this.dicHash,e)},in:function(e,t){var a=this;return s.default.map(t,(function(e){return a.dicMap[e]})).includes(e)}};t.dicGroupHelper=(0,r.createSelector)((function(e,t){var a=i(e);return{dicHash:s.default.get(a,["dicHash",t],{}),dicMap:s.default.get(a,["dicMap",t],{}),dicData:s.default.get(a,["dicData",t],[])}}),(function(e){var t=e.dicHash,a=e.dicMap,n=e.dicData;return new d(t,a,n)}));var l=(0,r.createSelector)(i,(function(e){return function(t){var a=s.default.get(e,["dicHash",t],{}),n=s.default.get(e,["dicMap",t],{}),o=s.default.get(e,["dicData",t],[]);return new d(a,n,o)}}));t.default=l},"./src/redux/selectors/externalModel.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectStopTrainLoading=t.selectCommitTrainLoading=t.selectDeleteModelLoading=t.selectDeployModelLoading=t.selectSaveModelLoading=t.selectValidateRepeatLoading=t.selectFetchListLoading=t.selectExternalModelPagination=t.selectValidateRepeat=t.selectExternalModelList=void 0;var n=a("./src/redux/selectors/app.js");t.selectExternalModelList=function(e){return e.getIn(["externalModel","external_models"])},t.selectValidateRepeat=function(e){return e.getIn(["externalModel","validate_repeat"])},t.selectExternalModelPagination=function(e){return e.getIn(["externalModel","models_pagination"])},t.selectFetchListLoading=function(e){return(0,n.loadingSelector)("EXTERNAL_MODEL","GET_EXTERNAL_MODEL_LIST")(e)},t.selectValidateRepeatLoading=function(e){return(0,n.loadingSelector)("EXTERNAL_MODEL","VALIDATE_REPEAT")(e)},t.selectSaveModelLoading=function(e){return(0,n.loadingSelector)("EXTERNAL_MODEL","SAVE_EXTERNAL_MODEL")(e)},t.selectDeployModelLoading=function(e){return(0,n.loadingSelector)("EXTERNAL_MODEL","DEPLOY_EXTERNAL_MODEL")(e)},t.selectDeleteModelLoading=function(e){return(0,n.loadingSelector)("EXTERNAL_MODEL","DELETE_EXTERNAL_MODEL")(e)},t.selectCommitTrainLoading=function(e){return(0,n.loadingSelector)("EXTERNAL_MODEL","COMMIT_TRAIN")(e)},t.selectStopTrainLoading=function(e){return(0,n.loadingSelector)("EXTERNAL_MODEL","STOP_TRAIN")(e)}},"./src/redux/selectors/indiSet.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectSubmitKpiMsg=t.selectKpiSetDataList=t.selectIndiIdByField=t.selectIndiItem=t.selectIndiList=t.selectIndiClassify=t.selectKpiTypesList=t.selectKpiDataList=t.selectKpiCheckName=t.selectUpdateKpiData=t.selectDeleteKpiSet=t.selectReviewResult=t.selectKpiDataLoading=t.selectReviewLoading=t.selectDiagramMap=t.selectCancelExecute=t.selectAllIndi=void 0;var n=a("./node_modules/immutable3/dist/immutable.js"),o=a("./node_modules/reselect/lib/index.js"),s=a("./src/redux/selectors/app.js"),r=function(e){return e.get("indiSet")},i=function(e){return e.getIn(["indiSet","entities","indi"])},d=function(e,t){var a=e.getIn(["indiSet","result","indi"]);return a&&_.isArray(t)?a.filter((function(e){return _.includes(t,e)})):a},l=(0,o.createSelector)((function(e){return e.getIn(["indiSet","entities","classify"])}),(function(e,t){if(!_.isArray(t))return e.getIn(["indiSet","result","classify"]);var a=i(e);return a?(0,n.List)(_.uniq(_.map(t,(function(e){return a.getIn([e,"classifyId"],null)}))).filter((function(e){return null!==e}))):void 0}),(function(e,t){return t&&e&&t.map((function(t){return e.get(t)}))})),u=(0,o.createSelector)(i,d,(function(e,t){var a=e.getIn(["indiSet","indiSelector.filterResult"]);return a&&_.isArray(t)?a.filter((function(e){return _.includes(t,e)})):a}),(function(e,t,a){if(e&&t)return(a||t).map((function(t){return e.get(t)}))})),c=(0,o.createSelector)(i,d,(function(e,t){if(e&&t)return t.map((function(t){return e.get(t)}))})),p=(0,o.createSelector)(r,(function(e){return e.get("checkCode")})),f=(0,o.createSelector)(r,(function(e){return e.get("kpiTypesData")})),m=(0,o.createSelector)(r,(function(e){return e.get("cancelExecuteCode")})),h=(0,o.createSelector)(r,(function(e){return e.get("kpiData")})),g=(0,o.createSelector)(r,(function(e){return e.get("kpiSetData")})),v=(0,o.createSelector)(r,(function(e){return e.get("submitKpiMsg")})),y=(0,o.createSelector)(r,(function(e){return e.get("updateKpiData")})),b=(0,o.createSelector)(r,(function(e){return e.get("deleteKpiSet")})),x=(0,o.createSelector)(r,(function(e){return e.get("reviewResult")})),C=(0,o.createSelector)(r,(function(e){return e.get("diagramMap")}));t.selectAllIndi=c,t.selectCancelExecute=m,t.selectDiagramMap=C,t.selectReviewLoading=function(e){return(0,s.loadingSelector)("INDI_SET","GET_REVIEW_RESULT")(e)},t.selectKpiDataLoading=function(e){return(0,s.loadingSelector)("INDI_SET","GET_KPI_DATA_LIST")(e)},t.selectReviewResult=x,t.selectDeleteKpiSet=b,t.selectUpdateKpiData=y,t.selectKpiCheckName=p,t.selectKpiDataList=h,t.selectKpiTypesList=f,t.selectIndiClassify=l,t.selectIndiList=u,t.selectIndiItem=function(e,t){return e.getIn(["indiSet","entities","indi",t.selectedId])},t.selectIndiIdByField=function(e,t){var a=i(e);if(!a)return null;var n=a.filter((function(e){return e.get("val")===t}));return n?n.keys().next().value:null},t.selectKpiSetDataList=g,t.selectSubmitKpiMsg=v},"./src/redux/selectors/modelBase.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectModelBaseLoading=t.selectModelBaseList=t.selectModelBaseInfoLoading=t.selectModelBaseInfo=t.selectHandleCode=t.selectOperateLoading=t.selectOperateError=void 0;var n=a("./src/redux/selectors/app.js"),o=a("./node_modules/reselect/lib/index.js"),s=a("./node_modules/immutable3/dist/immutable.js"),r=a("./src/module/modelBase/modelEnums.js"),i=(0,o.createSelector)((function(e){return e.getIn(["modelBase","modelBaseList"])}),(function(e){return e?e.map((function(e){return e.merge({dataTypeText:r.DATA_TYPE.getDescFromValue(e.get("dataType")),publishFromText:r.PUBLISH_FROM.getDescFromValue(e.get("publishFrom"))})})):s.List.of([])})),d=(0,o.createSelector)((function(e){return e.get("modelBase")}),(function(e){return e.get("handleCode")})),l=(0,o.createSelector)((function(e){return e.getIn(["modelBase","modelBaseInfo"])}),(function(e){return 0===e.size?null:e.merge({dataTypeText:r.DATA_TYPE.getDescFromValue(e.get("dataType")),publishFromText:r.PUBLISH_FROM.getDescFromValue(e.get("publishFrom"))})}));t.selectOperateError=function(e){return(0,n.errorSelector)("MODEL_BASE",["DELETE_MODEL_BASE"])(e)},t.selectOperateLoading=function(e){return(0,n.loadingSelector)("MODEL_BASE",["DELETE_MODEL_BASE"])(e)},t.selectHandleCode=d,t.selectModelBaseInfo=l,t.selectModelBaseInfoLoading=function(e){return(0,n.loadingSelector)("MODEL_BASE","GET_MODEL_BASE_INFO")(e)},t.selectModelBaseList=i,t.selectModelBaseLoading=function(e){return(0,n.loadingSelector)("MODEL_BASE","GET_MODEL_BASE_LIST")(e)}},"./src/redux/selectors/modelManage.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectNoteBookUrl=t.selectGotoNoteBookError=t.selectModelBasicInfoLoading=t.selectModelBasicInfo=t.getCreateModelId=t.submitModel=t.selectGetModulesConfigData=t.selectGetBusinessTypeData=t.selectCheckNameCode=t.selectOperateLoading=t.selectOperateError=t.selectDataLoading=t.selectModelManageData=t.selectModelList=t.selectMonitorData=t.selectCancelModel=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=a("./node_modules/immutable3/dist/immutable.js"),r=l(a("./src/redux/selectors/enumDic.js")),i=l(a("./node_modules/dayjs/dayjs.min.js")),d=a("./src/utils/dateUtil.js");function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return e.get("modelManage")},c=function(e){return e.getIn(["modelManage","modelData"])},p=(0,n.createSelector)(u,(function(e){return e.get("checkNameCode")})),f=(0,n.createSelector)(u,(function(e){return e.get("cancelModel")})),m=(0,n.createSelector)(u,(function(e){return e.get("businessTypeData")})),h=(0,n.createSelector)(u,(function(e){return e.get("createModelId")})),g=(0,n.createSelector)(u,(function(e){return e.get("modulesConfigData")})),v=(0,n.createSelector)(u,(function(e){return e.get("submitModelData")})),_=(0,n.createSelector)(c,r.default,(function(e,t){if(!e)return s.List.of([]);var a=t("MODELING_METHOD"),n=t("MODEL_ENGINE"),o=t("MODEL_STATUS"),r=t("PROCESS_STAGE"),l=t("SCENE_INFO");return e.map((function(e){var t=(0,i.default)(e.get("newTime")),s=(0,i.default)(e.get("endTime")),u=(0,d.calcRelativeTime)(t,s);return e.merge({mannerTxt:a.text(e.get("manner")),engineTxt:n.text(e.get("engine")),statusTxt:o.text(e.get("status")),stageTxt:r.text(e.get("stageId")),modelTypeTxt:l.text(e.get("modelTypeId")),modelTypeCode:7===e.get("manner")?"CODE":4===e.get("manner")?"DROP":l.code(e.get("modelTypeId")),stageDuration:u})}))})),y=(0,n.createSelector)((function(e){return e.getIn(["modelManage","monitorData"])}),(function(e){if(0===e.size)return null;var t=(0,i.default)(e.get("startTime")),a=(0,i.default)(e.get("endTime")),n=(0,d.calcRelativeTime)(t,a);return e.merge({stageDuration:n})}));t.selectCancelModel=f,t.selectMonitorData=y,t.selectModelList=c,t.selectModelManageData=_,t.selectDataLoading=function(e){return(0,o.loadingSelector)("MODEL_MANAGE","GET_MODEL_LIST")(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("MODEL_MANAGE",["DELETE_MODEL","EXECUTE_MODEL","COPY_MODEL"])(e)},t.selectOperateLoading=function(e){return(0,o.loadingSelector)("MODEL_MANAGE",["DELETE_MODEL","EXECUTE_MODEL","COPY_MODEL"])(e)},t.selectCheckNameCode=p,t.selectGetBusinessTypeData=m,t.selectGetModulesConfigData=g,t.submitModel=v,t.getCreateModelId=h,t.selectModelBasicInfo=function(e){return e.getIn(["modelManage","modelBasicInfo"])},t.selectModelBasicInfoLoading=function(e){return(0,o.loadingSelector)("MODEL_MANAGE","GET_MODEL_BASIC_INFO")(e)},t.selectGotoNoteBookError=function(e){return(0,o.errorSelector)("MODEL_MANAGE",["GOTO_NOTEBOOK_SITE"])(e)},t.selectNoteBookUrl=function(e){return e.getIn(["modelManage","notebook_url"])}},"./src/redux/selectors/ocrManage.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectAdjustedLoading=t.selectAdjustedInfo=t.selectPublishLoading=t.selectRecognizeTestLoading=t.selectSubmitOcrLoading=t.selectRecognizeLoading=t.selectRecognizeText=t.selectPublishInfo=t.selectImageUploadLoading=t.selectSubmittedStatus=t.selectUploadedImageInfo=t.selectTemplateEXJson=t.selectTemplateTestStatus=t.selectOcrDelete=t.selectOcrInfoLoading=t.selectOcrTemplateListLoading=t.selectDeleteLoading=t.selectOcrSubmit=t.selectOcrTemplateInfo=t.selectTemplateTypes=t.selectOcrTemplateList=void 0;var n=a("./src/redux/selectors/app.js"),o=a("./node_modules/reselect/lib/index.js"),s=function(e){return e.getIn(["ocrManage"])},r=function(e){return e.getIn(["ocrManage","ocrTemplateTypes"])},i=(0,o.createSelector)((function(e){return e.getIn(["ocrManage","ocrTemplateList"])}),r,(function(e,t){return e.map((function(e){var a=t.find((function(t){return t.get("templateTypeId")===e.get("templateTypeId")}));return e.set("templateTypeName",a?a.get("templateTypeName"):"")}))})),d=(0,o.createSelector)((function(e){return e.getIn(["ocrManage","ocrTemplateInfo"])}),r,(function(e,t){if(e){var a=t.find((function(t){return t.get("templateTypeId")===e.get("templateTypeId")}));return a?e.merge({templateTypeName:a.get("templateTypeName")}):e}}));t.selectOcrTemplateList=i,t.selectTemplateTypes=function(e){return s(e).get("ocrTemplateTypes")},t.selectOcrTemplateInfo=d,t.selectOcrSubmit=function(e){return s(e).get("ocrSubmit")},t.selectDeleteLoading=function(e){return(0,n.loadingSelector)("OCR_MANAGE","DELETE_OCR_TEMPLATE")(e)},t.selectOcrTemplateListLoading=function(e){return(0,n.loadingSelector)("OCR_MANAGE",["GET_OCR_TEMPLATE_LIST","GET_OCR_TEMPLATE_TYPES"])(e)},t.selectOcrInfoLoading=function(e){return(0,n.loadingSelector)("OCR_MANAGE",["GET_OCR_TEMPLATE_INFO","GET_OCR_TEMPLATE_TYPES"])(e)},t.selectOcrDelete=function(e){return s(e).get("ocrTemplateDelete")},t.selectTemplateTestStatus=function(e){return s(e).get("templateTestStatus")},t.selectTemplateEXJson=function(e){return s(e).get("templateExampleJson")},t.selectUploadedImageInfo=function(e){return s(e).get("imgInfo")},t.selectSubmittedStatus=function(e){return s(e).get("isSubmitted")},t.selectImageUploadLoading=function(e){return(0,n.loadingSelector)("OCR_MANAGE","UPLOAD_OCR_TEMPLATE_IMAGE")(e)},t.selectPublishInfo=function(e){return s(e).get("publishInfo")},t.selectRecognizeText=function(e){return s(e).get("recognizeText")},t.selectRecognizeLoading=function(e){return(0,n.loadingSelector)("OCR_MANAGE",["GET_IMAGE_RECOGNIZE_TEXT"])(e)},t.selectSubmitOcrLoading=function(e){return(0,n.loadingSelector)("OCR_MANAGE",["SUBMIT_OCR_TEMPLATE_INFO"])(e)},t.selectRecognizeTestLoading=function(e){return(0,n.loadingSelector)("OCR_MANAGE",["RECOGNIZE_OCR_TEMPLATE_TEST"])(e)},t.selectPublishLoading=function(e){return(0,n.loadingSelector)("OCR_MANAGE",["PUBLISH_OCR_TEMPLATE"])(e)},t.selectAdjustedInfo=function(e){return s(e).get("adjustedInfo")},t.selectAdjustedLoading=function(e){return(0,n.loadingSelector)("OCR_MANAGE",["GET_ADJUST_IMAGE_INFO"])(e)}},"./src/redux/selectors/sysManager/appTopicBasesManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectSubmitAppTopicBasesData=t.selectAppTopicBasesList=t.selectCheckNameCode=t.selectAppTopicBasesPagination=t.selectOperateLoading=t.selectAppTopicBasesInfo=t.selectOperateError=t.selectAppTopicBasesListLoading=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("appTopicBasesManager")},r=(0,n.createSelector)(s,(function(e){return e.get("appTopicBasesList")})),i=(0,n.createSelector)(s,(function(e){return e.get("submitAppTopicBasesData")})),d=(0,n.createSelector)(s,(function(e){return e.get("appTopicBasesPagination")})),l=(0,n.createSelector)(s,(function(e){return e.get("appTopicBasesInfo")})),u=(0,n.createSelector)(s,(function(e){return e.get("checkNameCode")}));t.selectAppTopicBasesListLoading=function(e){return(0,o.loadingSelector)("APP_TOPIC_BASES_MANAGER","GET_APP_TOPIC_BASES_LIST")(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("APP_TOPIC_BASES_MANAGER",["DELETE_APP_TOPIC_BASES"])(e)},t.selectAppTopicBasesInfo=l,t.selectOperateLoading=function(e){return(0,o.loadingSelector)("APP_TOPIC_BASES_MANAGER",["DELETE_APP_TOPIC_BASES"])(e)},t.selectAppTopicBasesPagination=d,t.selectCheckNameCode=u,t.selectAppTopicBasesList=r,t.selectSubmitAppTopicBasesData=i},"./src/redux/selectors/sysManager/dataBasesManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectSubmitDataBasesData=t.selectDataBasesList=t.selectCheckNameCode=t.selectDataBasesPagination=t.selectOperateLoading=t.selectDataBasesInfo=t.selectOperateError=t.selectDataBasesListLoading=t.selectTestConnectDataCode=t.selectSyncDacpData=t.selectDataDacpListLoading=t.selectDataDacpList=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("dataBasesManager")},r=(0,n.createSelector)(s,(function(e){return e.get("dataBasesList")})),i=(0,n.createSelector)(s,(function(e){return e.get("dataDacpList")})),d=(0,n.createSelector)(s,(function(e){return e.get("submitDataBasesData")})),l=(0,n.createSelector)(s,(function(e){return e.get("dataBasesPagination")})),u=(0,n.createSelector)(s,(function(e){return e.get("syncDacpData")})),c=(0,n.createSelector)(s,(function(e){return e.get("dataBasesInfo")})),p=(0,n.createSelector)(s,(function(e){return e.get("checkNameCode")})),f=(0,n.createSelector)(s,(function(e){return e.get("testConnectDataCode")}));t.selectDataDacpList=i,t.selectDataDacpListLoading=function(e){return(0,o.loadingSelector)("DATA_BASES_MANAGER","GET_DATA_DACP_LIST")(e)},t.selectSyncDacpData=u,t.selectTestConnectDataCode=f,t.selectDataBasesListLoading=function(e){return(0,o.loadingSelector)("DATA_BASES_MANAGER","GET_DATA_BASES_LIST")(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("DATA_BASES_MANAGER",["DELETE_DATA_BASES"])(e)},t.selectDataBasesInfo=c,t.selectOperateLoading=function(e){return(0,o.loadingSelector)("DATA_BASES_MANAGER",["DELETE_DATA_BASES"])(e)},t.selectDataBasesPagination=l,t.selectCheckNameCode=p,t.selectDataBasesList=r,t.selectSubmitDataBasesData=d},"./src/redux/selectors/sysManager/ftpBasesManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectSubmitFtpBasesData=t.selectFtpBasesList=t.selectCheckNameCode=t.selectFtpBasesPagination=t.selectOperateLoading=t.selectFtpBasesInfo=t.selectOperateError=t.selectFtpBasesListLoading=t.selectTestConnectFtpCode=t.selectFtpFiles=t.selectFtpBasesArray=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("ftpBasesManager")},r=(0,n.createSelector)(s,(function(e){return e.get("ftpBasesList")})),i=(0,n.createSelector)((function(e){return e.getIn(["ftpBasesManager","ftpBasesArray"])}),(function(e){return e?e.map((function(e){return e.merge({ftpId:e.get("id"),ftpName:e.get("storageName"),ftpFilepath:e.get("storagePath")})})):List.of([])})),d=(0,n.createSelector)(s,(function(e){return e.get("submitFtpBasesData")})),l=(0,n.createSelector)(s,(function(e){return e.get("ftpBasesPagination")})),u=(0,n.createSelector)(s,(function(e){return e.get("ftpFiles")})),c=(0,n.createSelector)(s,(function(e){return e.get("ftpBasesInfo")})),p=(0,n.createSelector)(s,(function(e){return e.get("checkNameCode")})),f=(0,n.createSelector)(s,(function(e){return e.get("testConnectFtpCode")}));t.selectFtpBasesArray=i,t.selectFtpFiles=u,t.selectTestConnectFtpCode=f,t.selectFtpBasesListLoading=function(e){return(0,o.loadingSelector)("FTP_BASES_MANAGER","GET_FTP_BASES_LIST")(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("FTP_BASES_MANAGER",["DELETE_FTP_BASES"])(e)},t.selectFtpBasesInfo=c,t.selectOperateLoading=function(e){return(0,o.loadingSelector)("FTP_BASES_MANAGER",["DELETE_FTP_BASES"])(e)},t.selectFtpBasesPagination=l,t.selectCheckNameCode=p,t.selectFtpBasesList=r,t.selectSubmitFtpBasesData=d},"./src/redux/selectors/sysManager/interfaceManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectOpenApiGroupId=t.selectOpenApiPagination=t.selectOpenApiInfo=t.selectOpenApiGroupData=t.selectOpenApiList=t.selectOpenApiArray=t.selectOpenApiListLoading=t.selectOpenApiArrayLoading=t.selectBindingApiGroupData=t.selectBindingApiGroupDataLoading=t.selectLoadOpenApiTree=t.selectLoadOpenApiTreeLoading=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("interfaceManager")},r=(0,n.createSelector)(s,(function(e){return e.get("openApiList")})),i=(0,n.createSelector)(s,(function(e){return e.get("loadOpenApiTree")})),d=(0,n.createSelector)(s,(function(e){return e.get("binDingApiGroupData")})),l=(0,n.createSelector)(s,(function(e){return e.get("openApiArray")})),u=(0,n.createSelector)(s,(function(e){return e.get("openApiPagination")})),c=(0,n.createSelector)(s,(function(e){return e.get("apiGroupData")})),p=(0,n.createSelector)(s,(function(e){return e.get("openApiInfo")})),f=(0,n.createSelector)(s,(function(e){return e.get("selectedOpenApiGroupId")}));t.selectLoadOpenApiTreeLoading=function(e){return(0,o.loadingSelector)("OPEN_API_MANAGER","LOAD_OPEN_API_TREE")(e)},t.selectLoadOpenApiTree=i,t.selectBindingApiGroupDataLoading=function(e){return(0,o.loadingSelector)("OPEN_API_MANAGER","BIN_DING_API_GROUP_DATA")(e)},t.selectBindingApiGroupData=d,t.selectOpenApiArrayLoading=function(e){return(0,o.loadingSelector)("OPEN_API_MANAGER","GET_API_ARRAY_LIST")(e)},t.selectOpenApiListLoading=function(e){return(0,o.loadingSelector)("OPEN_API_MANAGER","GET_OPEN_API_LIST")(e)},t.selectOpenApiArray=l,t.selectOpenApiList=r,t.selectOpenApiGroupData=c,t.selectOpenApiInfo=p,t.selectOpenApiPagination=u,t.selectOpenApiGroupId=f},"./src/redux/selectors/sysManager/platFormManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectDataLoading=t.selectPlatFormSolutionsData=t.selectPlatFormFeaturesConfig=t.selectPlatFormFeaturesData=t.selectPlatFormSolutionsDataLoading=t.selectPlatFormFeaturesConfigLoading=t.selectPlatFormFeaturesDataLoading=t.selectPictureRecognitionData=t.selectPictureRegisterData=t.selectRecognitionDataLoading=t.selectRecognitionData=t.selectRequestConfig=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("platFormManager")},r=(0,n.createSelector)(s,(function(e){return e.get("requestConfig")})),i=(0,n.createSelector)(s,(function(e){return e.get("recognitionData")})),d=(0,n.createSelector)(s,(function(e){return e.get("platFormFeaturesData")})),l=(0,n.createSelector)(s,(function(e){return e.get("platFormFeaturesConfig")})),u=(0,n.createSelector)(s,(function(e){return e.get("platFormSolutionsData")})),c=(0,n.createSelector)(s,(function(e){return e.get("pictureRegisterData")})),p=(0,n.createSelector)(s,(function(e){return e.get("pictureRecognitionData")}));t.selectRequestConfig=r,t.selectRecognitionData=i,t.selectRecognitionDataLoading=function(e){return(0,o.loadingSelector)("PLAT_FORM_MANAGER","RECOGNITION")(e)},t.selectPictureRegisterData=c,t.selectPictureRecognitionData=p,t.selectPlatFormFeaturesDataLoading=function(e){return(0,o.loadingSelector)("PLAT_FORM_MANAGER","GET_PLAT_FORM_FEATURES")(e)},t.selectPlatFormFeaturesConfigLoading=function(e){return(0,o.loadingSelector)("PLAT_FORM_MANAGER","GET_PLAT_FORM_FEATURES_CONFIG")(e)},t.selectPlatFormSolutionsDataLoading=function(e){return(0,o.loadingSelector)("PLAT_FORM_MANAGER","GET_PLAT_FORM_SOLUTIONS")(e)},t.selectPlatFormFeaturesData=d,t.selectPlatFormFeaturesConfig=l,t.selectPlatFormSolutionsData=u,t.selectDataLoading=function(e){return(0,o.loadingSelector)("GET_PICTURE_REGISTER","GET_PICTURE_RECOGNITION")(e)}},"./src/redux/selectors/sysManager/quotaTenantManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectQuotaTenantListLoading=t.selectOperateError=t.selectOperateLoading=t.selectQuotaTenantPagination=t.selectQuotaTenantList=t.selectQuotaTenantRelationCode=t.selectQuotaTenantInfo=t.selectSubmitQuotaTenantInfo=t.selectQuotaTenantInfoCode=t.selectSysQuotaTenantDown=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("quotaTenantManager")},r=(0,n.createSelector)(s,(function(e){return e.get("sysQuotaTenantList")})),i=(0,n.createSelector)(s,(function(e){return e.get("quotaTenantPagination")})),d=(0,n.createSelector)(s,(function(e){return e.get("quotaTenantRelationCode")})),l=(0,n.createSelector)(s,(function(e){return e.get("quotaTenantInfo")})),u=(0,n.createSelector)(s,(function(e){return e.get("quotaTenantInfoCode")})),c=(0,n.createSelector)(s,(function(e){return e.get("submitQuotaTenantInfo")})),p=(0,n.createSelector)(s,(function(e){return e.get("sysQuotaTenantDown")}));t.selectSysQuotaTenantDown=p,t.selectQuotaTenantInfoCode=u,t.selectSubmitQuotaTenantInfo=c,t.selectQuotaTenantInfo=l,t.selectQuotaTenantRelationCode=d,t.selectQuotaTenantList=r,t.selectQuotaTenantPagination=i,t.selectOperateLoading=function(e){return(0,o.loadingSelector)("QUOTA_TENANT_MANAGER",["DELETE_QUOTA_TENANT"])(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("QUOTA_TENANT_MANAGER",["DELETE_QUOTA_TENANT"])(e)},t.selectQuotaTenantListLoading=function(e){return(0,o.loadingSelector)("QUOTA_TENANT_MANAGER","GET_SYS_QUOTA_TENANT_LIST")(e)}},"./src/redux/selectors/sysManager/resTransfer.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectRemoveError=t.selectSaveError=t.selectRemoveLoading=t.selectSaveLoading=t.selectLoadOwnerResLoading=t.selectOwnerRes=void 0;var n,o=a("./node_modules/immutable3/dist/immutable.js"),s=a("./node_modules/reselect/lib/index.js"),r=a("./node_modules/lodash/lodash.js"),i=(n=r)&&n.__esModule?n:{default:n},d=a("./src/redux/selectors/app.js");var l=(0,s.createSelector)((function(e){return e.getIn(["resTransfer","owner_res"])||(0,o.List)()}),(function(e){return e.getIn(["resTransfer","search_txt"])}),(function(e,t){return t&&""!==i.default.trim(t)?e.filter((function(e){return-1!==e.get("resName").indexOf(t)})):e}));t.selectOwnerRes=l,t.selectLoadOwnerResLoading=function(e){return(0,d.loadingSelector)("RES_TRANSFER","GET_OWNER_RES")(e)},t.selectSaveLoading=function(e){return(0,d.loadingSelector)("RES_TRANSFER","SAVE_TRANSFER")(e)},t.selectRemoveLoading=function(e){return(0,d.loadingSelector)("RES_TRANSFER","REMOVE_TRANSFER")(e)},t.selectSaveError=function(e){return(0,d.errorSelector)("RES_TRANSFER","SAVE_TRANSFER")(e)},t.selectRemoveError=function(e){return(0,d.errorSelector)("RES_TRANSFER","REMOVE_TRANSFER")(e)}},"./src/redux/selectors/sysManager/rolesManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectRolesListLoading=t.selectRolesInfo=t.selectOperateError=t.selectOperateLoading=t.selectRolesPagination=t.selectSubmitRolesData=t.selectRolesList=t.loadRolesList=t.selectRolesRelationCode=t.selectCheckNameCode=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("rolesManager")},r=(0,n.createSelector)(s,(function(e){return e.get("sysRolesList")})),i=(0,n.createSelector)(s,(function(e){return e.get("submitRolesData")})),d=(0,n.createSelector)(s,(function(e){return e.get("rolesPagination")})),l=(0,n.createSelector)(s,(function(e){return e.get("rolesRelationCode")})),u=(0,n.createSelector)(s,(function(e){return e.get("rolesInfo")})),c=(0,n.createSelector)(s,(function(e){return e.get("checkNameCode")})),p=(0,n.createSelector)(s,(function(e){return e.get("loadRolesList")}));t.selectCheckNameCode=c,t.selectRolesRelationCode=l,t.loadRolesList=p,t.selectRolesList=r,t.selectSubmitRolesData=i,t.selectRolesPagination=d,t.selectOperateLoading=function(e){return(0,o.loadingSelector)("ROLES_MANAGER",["DELETE_ROLES"])(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("ROLES_MANAGER",["DELETE_ROLES"])(e)},t.selectRolesInfo=u,t.selectRolesListLoading=function(e){return(0,o.loadingSelector)("ROLES_MANAGER","GET_SYS_ROLES_LIST")(e)}},"./src/redux/selectors/sysManager/sceneDemoManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectSceneDemoDelete=t.selectSceneDemoInfoLoading=t.selectSceneDemoListLoading=t.selectDeleteLoading=t.selectSceneDemoSubmit=t.selectSceneDemoInfoEdit=t.selectSceneDemoInfoView=t.selectSceneDemoList=t.selectSceneDemoSubmitLoading=t.selectFaceSignList=t.selectFaceSignListLoading=t.selectFaceSignDelete=t.selectFaceSignDeleteLoading=t.selectFaceSignSubmit=t.selectFaceSignSubmitLoading=void 0;var n,o=a("./src/redux/selectors/app.js"),s=a("./node_modules/reselect/lib/index.js"),r=a("./src/redux/selectors/enumDic.js"),i=(n=r)&&n.__esModule?n:{default:n};var d=function(e){return e.getIn(["sceneDemoManager"])},l=function(e){return e.getIn(["sceneDemoManager","sceneDemoInfo"])},u=(0,s.createSelector)((function(e){return e.getIn(["sceneDemoManager","sceneDemoList"])}),i.default,(function(e,t){if(0===e.get("data").size)return e;var a=t("SCENE_DEMO_TYPE");return e.merge({data:e.get("data").map((function(e){return e.merge({sceneTypeTxt:a.text(e.get("sceneType"))})}))})})),c=(0,s.createSelector)(l,i.default,(function(e,t){if(0===e.size)return null;var a=t("CLIENT_APP_TYPE");return e.merge({sceneTypeTxt:a.text(e.get("sceneType"))})})),p=(0,s.createSelector)(l,(function(e){return 0===e.size?null:e.merge({sceneType:e.get("sceneType")+""})}));t.selectFaceSignSubmitLoading=function(e){return(0,o.loadingSelector)("SCENE_DEMO_MANAGER","SUBMIT_FACE_SIGN")(e)},t.selectFaceSignSubmit=function(e){return d(e).get("faceSignSubmit")},t.selectFaceSignDeleteLoading=function(e){return(0,o.loadingSelector)("SCENE_DEMO_MANAGER",["DELETE_FACE_SIGN"])(e)},t.selectFaceSignDelete=function(e){return d(e).get("faceSignDelete")},t.selectFaceSignListLoading=function(e){return(0,o.loadingSelector)("SCENE_DEMO_MANAGER","GET_FACE_SIGN_LIST")(e)},t.selectFaceSignList=function(e){return e.getIn(["sceneDemoManager","faceSignList"])},t.selectSceneDemoSubmitLoading=function(e){return(0,o.loadingSelector)("SCENE_DEMO_MANAGER","SUBMIT_SCENE_DEMO")(e)},t.selectSceneDemoList=u,t.selectSceneDemoInfoView=c,t.selectSceneDemoInfoEdit=p,t.selectSceneDemoSubmit=function(e){return d(e).get("sceneDemoSubmit")},t.selectDeleteLoading=function(e){return(0,o.loadingSelector)("SCENE_DEMO_MANAGER",["DELETE_SCENE_DEMO"])(e)},t.selectSceneDemoListLoading=function(e){return(0,o.loadingSelector)("SCENE_DEMO_MANAGER","GET_SCENE_DEMO_LIST")(e)},t.selectSceneDemoInfoLoading=function(e){return(0,o.loadingSelector)("SCENE_DEMO_MANAGER","GET_SCENE_DEMO_INFO")(e)},t.selectSceneDemoDelete=function(e){return d(e).get("sceneDemoDelete")}},"./src/redux/selectors/sysManager/switchManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectOperateError=t.selectOperateLoading=t.selectModuleOptions=t.selectModuleOptionInfo=t.selectSwitchModulesData=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("switchManager")},r=(0,n.createSelector)(s,(function(e){return e.get("switchModules")})),i=(0,n.createSelector)(s,(function(e){return e.get("moduleOptions")})),d=(0,n.createSelector)(s,(function(e){return e.get("moduleOptionInfo")}));t.selectSwitchModulesData=r,t.selectModuleOptionInfo=d,t.selectModuleOptions=i,t.selectOperateLoading=function(e){return(0,o.loadingSelector)("SWITCH_MANAGER",["UPDATE_MODULE_OPTION"])(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("SWITCH_MANAGER",["UPDATE_MODULE_OPTION"])(e)}},"./src/redux/selectors/sysManager/sysManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectContactUserInfo=t.selectSubmitContactUserData=t.selectSysHelpList=t.selectLoadResPermissionList=t.selectLoadModulesList=t.selectLoadResDomainsResourcesList=t.selectLoadResDomainsList=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=function(e){return e.get("sysManager")},s=(0,n.createSelector)(o,(function(e){return e.get("sysHelpList")})),r=(0,n.createSelector)(o,(function(e){return e.get("submitContactUserData")})),i=(0,n.createSelector)(o,(function(e){return e.get("loadModulesList")})),d=(0,n.createSelector)(o,(function(e){return e.get("contactUserInfo")})),l=(0,n.createSelector)(o,(function(e){return e.get("loadResPermissionList")})),u=(0,n.createSelector)(o,(function(e){return e.get("loadResDomainsList")})),c=(0,n.createSelector)(o,(function(e){return e.get("loadResDomainsResourcesList")}));t.selectLoadResDomainsList=u,t.selectLoadResDomainsResourcesList=c,t.selectLoadModulesList=i,t.selectLoadResPermissionList=l,t.selectSysHelpList=s,t.selectSubmitContactUserData=r,t.selectContactUserInfo=d},"./src/redux/selectors/sysManager/tagGroupsManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectTagGroupsDelete=t.selectTagGroupsInfoLoading=t.selectTagGroupsListLoading=t.selectDeleteLoading=t.selectTagGroupsSubmit=t.selectTagGroupsInfo=t.selectTagGroupsList=t.selectTagGroupsListByMarkType=void 0;var n,o=a("./src/redux/selectors/app.js"),s=a("./node_modules/reselect/lib/index.js"),r=a("./node_modules/immutable3/dist/immutable.js"),i=a("./src/redux/selectors/enumDic.js"),d=(n=i)&&n.__esModule?n:{default:n};var l=function(e){return e.getIn(["tagGroupsManager"])},u=(0,s.createSelector)((function(e){return e.getIn(["tagGroupsManager","tagGroupsList"])}),d.default,(function(e,t){if(!e)return r.List.of([]);var a=t("TAG_GROUPS_MARK_TYPE");return e.merge({data:e.get("data").map((function(e){return e.merge({markTypeTxt:a.text(e.get("markType"))})}))})})),c=(0,s.createSelector)((function(e){return e.getIn(["tagGroupsManager","tagGroupsInfo"])}),d.default,(function(e,t){if(!e)return r.List.of([]);var a=t("TAG_GROUPS_MARK_TYPE");return e.merge({markTypeTxt:a.text(e.get("markType"))})}));t.selectTagGroupsListByMarkType=function(e){return l(e).get("tagGroupsListByMarkType")},t.selectTagGroupsList=u,t.selectTagGroupsInfo=c,t.selectTagGroupsSubmit=function(e){return l(e).get("tagGroupsSubmit")},t.selectDeleteLoading=function(e){return(0,o.loadingSelector)("TAG_GROUPS_MANAGER",["DELETE_TAG_GROUPS"])(e)},t.selectTagGroupsListLoading=function(e){return(0,o.loadingSelector)("TAG_GROUPS_MANAGER","GET_TAG_GROUPS_LIST")(e)},t.selectTagGroupsInfoLoading=function(e){return(0,o.loadingSelector)("TAG_GROUPS_MANAGER","GET_TAG_GROUPS_INFO")(e)},t.selectTagGroupsDelete=function(e){return l(e).get("tagGroupsDelete")}},"./src/redux/selectors/sysManager/userGroupsManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectUserGroupsListLoading=t.selectUserGroupsInfo=t.selectOperateError=t.selectOperateLoading=t.selectUserGroupsPagination=t.selectSubmitUserGroupsData=t.selectUserGroupsList=t.selectResourceRelation=t.selectLoadUserGroupsList=t.selectCheckNameCode=t.selectUserGroupsRelationCode=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("userGroupsManager")},r=(0,n.createSelector)(s,(function(e){return e.get("sysUserGroupsList")})),i=(0,n.createSelector)(s,(function(e){return e.get("submitUserGroupsData")})),d=(0,n.createSelector)(s,(function(e){return e.get("userGroupsPagination")})),l=(0,n.createSelector)(s,(function(e){return e.get("checkNameCode")})),u=(0,n.createSelector)(s,(function(e){return e.get("resourceRelation")})),c=(0,n.createSelector)(s,(function(e){return e.get("loadUserGroupsList")})),p=(0,n.createSelector)(s,(function(e){return e.get("userGroupsRelationCode")})),f=(0,n.createSelector)(s,(function(e){return e.get("userGroupsInfo")}));t.selectUserGroupsRelationCode=p,t.selectCheckNameCode=l,t.selectLoadUserGroupsList=c,t.selectResourceRelation=u,t.selectUserGroupsList=r,t.selectSubmitUserGroupsData=i,t.selectUserGroupsPagination=d,t.selectOperateLoading=function(e){return(0,o.loadingSelector)("USER_GROUPS_MANAGER",["DELETE_USER_GROUPS"])(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("USER_GROUPS_MANAGER",["DELETE_USER_GROUPS"])(e)},t.selectUserGroupsInfo=f,t.selectUserGroupsListLoading=function(e){return(0,o.loadingSelector)("USER_GROUPS_MANAGER","GET_SYS_USER_GROUPS_LIST")(e)}},"./src/redux/selectors/sysManager/userManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectProjectApplications=t.selectUserJoinedProjects=t.selectUserListLoading=t.selectUserInfo=t.selectOperateError=t.selectOperateLoading=t.selectUserPagination=t.selectSubmitUserData=t.selectUserList=t.selectUserRelationCode=t.selectResourceRelation=t.selectRolesRelation=t.selectUserGroupsRelation=t.loadUserList=t.selectCheckNameCode=t.selectUpdatePawData=t.selectUnfastenUserCode=void 0;var n=a("./node_modules/reselect/lib/index.js"),o=a("./src/redux/selectors/app.js"),s=function(e){return e.get("userManager")},r=(0,n.createSelector)(s,(function(e){return e.get("sysUserList")})),i=(0,n.createSelector)(s,(function(e){return e.get("submitUserData")})),d=(0,n.createSelector)(s,(function(e){return e.get("userPagination")})),l=(0,n.createSelector)(s,(function(e){return e.get("userInfo")})),u=(0,n.createSelector)(s,(function(e){return e.get("userRelationCode")})),c=(0,n.createSelector)(s,(function(e){return e.get("userGroupsRelation")})),p=(0,n.createSelector)(s,(function(e){return e.get("unfastenUserCode")})),f=(0,n.createSelector)(s,(function(e){return e.get("updatePawData")})),m=(0,n.createSelector)(s,(function(e){return e.get("checkNameCode")})),h=(0,n.createSelector)(s,(function(e){return e.get("loadUserList")})),g=(0,n.createSelector)(s,(function(e){return e.get("rolesRelation")})),v=(0,n.createSelector)(s,(function(e){return e.get("resourceRelation")})),_=(0,n.createSelector)(s,(function(e){return e.get("userJoinedProjects")})),y=(0,n.createSelector)(s,(function(e){return e.get("projectApplications")}));t.selectUnfastenUserCode=p,t.selectUpdatePawData=f,t.selectCheckNameCode=m,t.loadUserList=h,t.selectUserGroupsRelation=c,t.selectRolesRelation=g,t.selectResourceRelation=v,t.selectUserRelationCode=u,t.selectUserList=r,t.selectSubmitUserData=i,t.selectUserPagination=d,t.selectOperateLoading=function(e){return(0,o.loadingSelector)("USER_MANAGER",["DELETE_USER"])(e)},t.selectOperateError=function(e){return(0,o.errorSelector)("USER_MANAGER",["DELETE_USER"])(e)},t.selectUserInfo=l,t.selectUserListLoading=function(e){return(0,o.loadingSelector)("USER_MANAGER","GET_SYS_USER_LIST")(e)},t.selectUserJoinedProjects=_,t.selectProjectApplications=y},"./src/redux/selectors/trainReport.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectModelReportHeadLoading=t.selectModelReportHead=t.selectModelReportDatas=t.selectModelReportDatasLoading=void 0;var n=a("./src/redux/selectors/app.js"),o=(0,a("./node_modules/reselect/lib/index.js").createSelector)((function(e){return e.get("trainReport")}),(function(e){return e.get("modelReportDatas")}));t.selectModelReportDatasLoading=function(e){return(0,n.loadingSelector)("TRAIN_REPORT","GET_MODEL_REPORT_DATAS")(e)},t.selectModelReportDatas=o,t.selectModelReportHead=function(e){return e.getIn(["trainReport","reportHead"])},t.selectModelReportHeadLoading=function(e){return(0,n.loadingSelector)("TRAIN_REPORT","GET_MODEL_REPORT_HEAD")(e)}},"./src/redux/selectors/trainResult.js":function(e,t,a){"use strict";t.__esModule=!0,t.selectModelTrainLogError=t.selectModelTrainLogLoading=t.selectModelTrainLog=t.selectSetBestModelError=t.selectSetBestModelLoading=t.selectBestModelSetting=t.selectModelTrainProcessLoading=t.selectModelTrainResultLoading=t.selectModelTrainProcess=t.selectModelTrainResult=void 0;var n=a("./src/redux/selectors/app.js");t.selectModelTrainResult=function(e){return e.getIn(["trainResult","trainResult"])},t.selectModelTrainProcess=function(e){return e.getIn(["trainResult","trainProcess"])},t.selectModelTrainResultLoading=function(e){return(0,n.loadingSelector)("TRAIN_RESULT","GET_MODEL_TRAIN_RESULT","GET_BEST_MODEL")(e)},t.selectModelTrainProcessLoading=function(e){return(0,n.loadingSelector)("TRAIN_RESULT","GET_MODEL_TRAIN_PROCESS")(e)},t.selectBestModelSetting=function(e){return e.getIn(["trainResult","bestModelSetting"])},t.selectSetBestModelLoading=function(e){return(0,n.loadingSelector)("TRAIN_RESULT","SET_BEST_MODEL")(e)},t.selectSetBestModelError=function(e){return(0,n.errorSelector)("TRAIN_RESULT","SET_BEST_MODEL")(e)},t.selectModelTrainLog=function(e){return e.getIn(["trainResult","trainLog"])},t.selectModelTrainLogLoading=function(e){return(0,n.loadingSelector)("TRAIN_RESULT","GET_MODEL_TRAIN_LOG")(e)},t.selectModelTrainLogError=function(e){return(0,n.errorSelector)("TRAIN_RESULT","GET_MODEL_TRAIN_LOG")(e)}},"./src/redux/services/affiche.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={patchMarkRead:function(e){var t=e.afficheId;return(0,s.default)({url:"/affiches/"+t+"/actions/markRead",method:"patch"})},getAfficheInfo:function(e){var t=e.afficheId;return(0,s.default)({url:"/affiches/"+t,method:"get"})},savePostAffiche:function(e){return(0,s.default)({url:"/affiches",method:"post",data:e})},updatePutAffiche:function(e){return(0,s.default)({url:"/affiches/"+e.afficheId,method:"put",data:e})},deleteAffiche:function(e){return(0,s.default)({url:"/affiches/"+e,method:"delete"})},getAfficheListByUserId:function(e){var t=e.userId,a=e.keyword,n=e.efficient,o=e.level,r=e.sortField,i=e.offset,d=e.limit,l=e.affichType;return(0,s.default)({url:"/users/"+t+"/affiches",method:"get",params:{keyword:a,efficient:n,level:o,sortField:r,affichType:l,offset:i,limit:d}})},getAfficheMesData:function(e){var t=e.userId,a=e._SYNC_INTERVAL;return(0,s.default)({url:"/"+t+"/reminds",sync:a,method:"get"})},patchMarkAllRead:function(){return(0,s.default)({url:"/affiches/actions/markAllRead",method:"patch"})},getAfficheList:function(e){var t=e.keyword,a=e.efficient,n=e.level,o=e.sortField,r=e.affichType,i=e.offset,d=e.limit;return(0,s.default)({url:"/affiches",method:"get",params:{keyword:t,efficient:a,level:n,sortField:o,affichType:r,offset:i,limit:d}})}}},"./src/redux/services/auth.js":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./src/utils/request.js")),o=a("./src/utils/constants.js"),s=r(a("./node_modules/qs/lib/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}t.default={loginAuth:function(e){var t=e.code,a=e.scopeType,o=void 0===a?"PROJECT":a;return(0,n.default)({basePath:"relative",url:"/aiSquare/openApi/uc/oauth/login/token",method:"post",data:{code:t,scopeType:o}})},loginBasicAuth:function(e){var t=e.userId,a=e.password;return(0,n.default)({basePath:o.ServicePath.AUTHC_SERVICE,url:"/oauth/token",method:"post",headers:{Authorization:"Basic Y2xpZW50X3Bvc3RtYW5fcHc6c2VjcmV0","Content-Type":"application/x-www-form-urlencoded"},data:s.default.stringify({grant_type:"password",username:t,password:a,scope:"all"})})},logout:function(e){var t=e.token;return(0,n.default)({basePath:"relative",url:"/aiSquare/openApi/uc/oauth/logout?token="+t,method:"get"})},verifyLogin:function(e){var t=e.search,a=e.userId;return(0,n.default)({basePath:o.ServicePath.AUTHC_SERVICE,url:"/authc/sso"+t,method:"get",params:{userId:a}})}}},"./src/redux/services/busiTypes.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={getBusinessTypeData:function(){return(0,s.default)({url:"/appTopicTypes",method:"get"})},checkModelName:function(e){var t=e.name;return(0,s.default)({url:"/busiTypes/actions/checkRepeat",method:"get",params:{name:t}})},savePostBusiTypes:function(e){return(0,s.default)({url:"/busiTypes",method:"post",data:JSON.stringify(e)})},updatePutBusiTypes:function(e){return(0,s.default)({url:"/busiTypes/"+e.id,method:"put",data:e})}}},"./src/redux/services/checkName.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={checkName:function(e){var t=e.params,a=e.url,n=e.basePath;return(0,s.default)({basePath:n||r.ServicePath.MODELING_SERVICE,url:a,method:"get",params:t})}}},"./src/redux/services/codeService.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={jumpCodeModel:function(e){return(0,s.default)({url:"/codeModels/"+e.id+"/actions/"+e.actionId+"/operates/code",basePath:r.ServicePath.CODE_MODEL,method:"post",data:{pflag:e.pflag}})},jumpCodeModelById:function(e,t){return(0,s.default)({url:"/codeModels/"+e+"/operates/code",basePath:r.ServicePath.CODE_MODEL,method:"post",data:{pflag:t}})},extendModelInference:function(e,t,a){return(0,s.default)({url:"/codeModels/"+e+"/actions/"+t+"operates/capacity",basePath:r.ServicePath.CODE_MODEL,method:"patch",data:{params:{instances_max:a}}})},stop:function(e){return(0,s.default)({url:"/codeModels/"+e.id+"/actions/"+e.actionId+"/operates/stop",basePath:r.ServicePath.CODE_MODEL,method:"post"})},start:function(e){return(0,s.default)({url:"/codeModels/"+e.id+"/actions/"+e.actionId+"/operates/start",basePath:r.ServicePath.CODE_MODEL,method:"patch"})},deleteCodeService:function(e){return(0,s.default)({basePath:r.ServicePath.CODE_MODEL,url:"/codeModels/"+e,method:"delete"})},getCodeServiceList:function(e){var t=e.statu,a=e.bzTaskName,n=e.sort,o=e.businessType,i=e.mirrorVersionId,d=e.offset,l=e.limit,u=e.owner;return(0,s.default)({url:"/codeModels",method:"get",basePath:r.ServicePath.CODE_MODEL,params:{params:{pageNum:d,pageSize:l,statu:t,bzTaskName:a,sort:n,businessType:o,mirrorVersionId:i,owner:u}}})},editPostCodeService:function(e,t){return(0,s.default)({url:"create"===t?"/codeModels/actions":"/codeModels/"+e.id+"/actions",basePath:r.ServicePath.CODE_MODEL,method:"create"===t?"post":"patch",data:e})},getCodeServiceInfo:function(e){return(0,s.default)({url:"/codeModels/"+e,basePath:r.ServicePath.CODE_MODEL,method:"get"})},getPubCodeServiceInfo:function(e){return(0,s.default)({url:"/codeModels/"+e+"/pbmodel",basePath:r.ServicePath.CODE_MODEL,method:"get"})},jumpCodeModelByTemplate:function(e){return(0,s.default)({url:"/codeModels/operates/codeByRepoModel",basePath:r.ServicePath.CODE_MODEL,method:"post",data:e})},getModelTrees:function(e){return(0,s.default)({basePath:r.ServicePath.CODE_MODEL,url:"/codeModels/"+e+"/anb/modelTrees",method:"get"})},publishModelInterface:function(e){return(0,s.default)({basePath:r.ServicePath.CODE_MODEL,url:"/codeModels/operates/pushCode",method:"post",data:e})}}},"./src/redux/services/dashboard.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={getFeature:function(){return(0,s.default)({url:"/dashboard/feature",method:"get"})},getBusiness:function(){return(0,s.default)({url:"/dashboard/business",method:"get"})},getCapacity:function(){return(0,s.default)({url:"/dashboard/capacity",method:"get"})},getSysState:function(){return(0,s.default)({url:"/dashboard/item",method:"get"})}}},"./src/redux/services/dataBases.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getDataBasesArrayDown:function(e){var t=e.dbType;return(0,s.default)({url:"/dataBases/operates/baseInfo",method:"get",basePath:r.ServicePath.DSEM_SERVICE,params:{dbType:t}})}}},"./src/redux/services/dataDispose.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={savePostModel:function(e){return(0,s.default)({url:"/dataDisposeTasks",method:"post",data:e})},updatePutModel:function(e){return(0,s.default)({url:"/dataDisposeTasks/"+e.taskId,method:"put",data:e})},getDataDispose:function(e){var t=e.taskId;return(0,s.default)({url:"/dataDisposeTasks/"+t,method:"get"})},executeDataDispose:function(e){var t=e.taskId;return(0,s.default)({url:"/dataDisposeTasks/"+t,method:"patch"})},deleteDataDispose:function(e){var t=e.taskId;return(0,s.default)({url:"/dataDisposeTasks/"+t,method:"delete"})},cancelExecute:function(e){var t=e.taskId;return(0,s.default)({url:"/dataDisposeTasks/"+t+"/actions/stop",method:"post"})},getDataDisposeList:function(e){var t=e.dsId,a=e.qt,n=e.sort;return(0,s.default)({url:"/dataDisposeTasks",method:"get",params:{dsId:t,qt:a,sort:n}})}}},"./src/redux/services/dataSource.js":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./src/utils/request.js")),o=a("./src/utils/constants.js"),s=r(a("./node_modules/qs/lib/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}t.default={transferData:function(e){return(0,n.default)({basePath:o.ServicePath.DSEM_SERVICE,url:"/dataSources/cycles/operates/transfer-data",method:"post",data:e})},getDatasSourcesInfo:function(e){var t=e.dsId;return(0,n.default)({url:"/datasources/"+t,method:"get"})},savePostSource:function(e){return(0,n.default)({url:"/datasources",method:"post",data:e})},cancelExecute:function(e){var t=e.dsId,a=e.cycleId;return(0,n.default)({url:"/datasources/"+t+"/dsCycles/"+a+"/actions/stop",method:"post"})},getDropDownData:function(e){var t=e.dsType,a=e.structuredFlag;return(0,n.default)({url:"/datasources/actions/dropDown",method:"get",params:{dsType:t,structuredFlag:a}})},cancelDataSource:function(e){var t=e.dsId;return(0,n.default)({url:"/datasources/"+t+"/actions/clean",method:"post"})},getDbHeaderData:function(e){var t=e.metaTplPath,a=e.dataTitleView,o=e.headers;return(0,n.default)({url:"/datasources/actions/fileDescPreview",method:"post",data:JSON.stringify({headers:o,metaTplPath:t,dataTitleView:a})})},cancelDataSourceCycles:function(e){var t=e.dsId,a=e.cycleId;return(0,n.default)({url:"/datasources/"+t+"/dsCycles/"+a+"/actions/clean",method:"post"})},updatePutSource:function(e){return(0,n.default)({url:"/datasources/"+JSON.parse(e).dsId,method:"put",data:e})},getFtpPreviewDataList:function(e){var t=e.ftpFileName,a=e.type,o=e.filePath,s=e.fileSplitChar,r=e.fileheaderFlag,i=e.ftpId,d=e.metaTplPath,l=e.dataTitleView;return(0,n.default)({url:"/datasources/actions/ftpDataPreview",method:"post",data:JSON.stringify({ftpFileName:t,type:a,filePath:o,fileSplitChar:s,fileheaderFlag:r,ftpId:i,metaTplPath:d,dataTitleView:l})})},getFilePreviewDataList:function(e){var t=e.type,a=e.filePath,o=e.fileSplitChar,s=e.fileheaderFlag,r=e.metaTplPath,i=e.dataTitleView;return(0,n.default)({url:"/datasources/actions/fileDataPreview",method:"post",data:JSON.stringify({type:t,filePath:a,fileSplitChar:"\\t"===o?"\t":o,fileheaderFlag:s,metaTplPath:r,dataTitleView:i})})},getDbPreviewDataList:function(e){var t=e.type,a=e.dbId,s=e.tableName,r=e.cycleMask,i=e.sqlSentence,d=e.metaTplPath,l=e.dataTitleView;return(0,n.default)({basePath:o.ServicePath.DSEM_SERVICE,url:"/dataSources/actions/dbDataPreview",method:"post",data:JSON.stringify({type:t,dbId:a,tableName:s,cycleMask:r,sqlSentence:i,metaTplPath:d,dataTitleView:l})})},deleteCyclesBySourcesIdSend:function(e){var t=e.dsCycle,a=e.dsId;return(0,n.default)({url:"/dsCycles/"+t+"/dataSources/"+a,method:"delete"})},delDatasSources:function(e){return(0,n.default)({url:"/datasources/"+e,method:"delete"})},getDataCyclesList:function(e){var t=e.dsId,a=e.status,o=e._SYNC_INTERVAL;return(0,n.default)({url:"/datasources/"+t+"/dsCycles",method:"get",sync:o,params:{dsId:t,status:a}})},getDataSourceListSummary:function(e){var t=e.name,a=e.dsType,o=e.dataType,r=e.status,i=e.offset,d=e.limit,l=e.sortField,u=e.excludeDataType,c=e.appId;return(0,n.default)({url:"/datasources/actions/summary",method:"get",paramsSerializer:function(e){return s.default.stringify(e,{indices:!1})},params:{name:t,dsType:a,dataType:o,status:r,offset:i,limit:d,sortField:l,excludeDataType:u,appId:c}})},getDataSourceList:function(e){var t=e.name,a=e.dsType,o=e.dataType,s=e.status,r=e.offset,i=e.limit,d=e.sortField,l=e.appId;return(0,n.default)({url:"/datasources",method:"get",params:{name:t,dsType:a,dataType:o,status:s,offset:r,limit:i,sortField:d,appId:l}})},getDeepLearnArithmetic:function(){return(0,n.default)({url:"/arithmetics/learning",method:"get"})},getTableNameData:function(e){var t=e.dbName;return(0,n.default)({basePath:o.ServicePath.DSEM_SERVICE,url:"/dataBases/"+t+"/operates/schemas",method:"get"})},getDataSourceAuditList:function(e){var t=e.dsId,a=e.dsCycle,o=e.kpiClass,s=e.kpiName;return(0,n.default)({url:"/datasources/"+t+"/audit",method:"get",params:{dsId:t,dsCycle:a,kpiClass:o,kpiName:s}})},getDataKpiTypeList:function(e){var t=e.dsId,a=e.dsCycle;return(0,n.default)({url:"/kpis/kpiType",method:"get",params:{dsId:t,dsCycle:a}})},getDatasSourcesErrLogs:function(e){var t=e.dsId,a=e.cycleId;return(0,n.default)({url:"/datasources/"+t+"/dsCycles/"+a+"/actions/errLogs",method:"get"})},getDataSourceQuote:function(e){var t=e.dsId,a=e.dsCycle;return(0,n.default)({url:"/dsCycles/"+a+"/dataSources/"+t+"/actions/quote",method:"get"})},getCyclesReview:function(e){var t=e.dsId,a=e.dsCycle;return(0,n.default)({url:"/datasources/"+t+"/dsCycles/"+a+"/actions/examine",method:"patch"})},getDataParamAriList:function(e){var t=e.viewType,a=e.workFlag,o=e.isUpdate,s=e.modelId,r=e.arithmeticId,i=e.name;return(0,n.default)({url:"/modelParams/arithmeticId",method:"get",params:{viewType:t,workFlag:a,isUpdate:o,modelId:s,arithmeticId:r,arithmeticName:i}})},getDataParamModList:function(e){var t=e.viewType,a=e.workFlag,o=e.isUpdate,s=e.modelId,r=e.modelTypeId;return(0,n.default)({url:"/modelParams/modelTypeId",method:"get",params:{viewType:t,workFlag:a,isUpdate:o,modelId:s,modelTypeId:r}})},getDataArithmeticList:function(e){var t=e.modelTypeId,a=e.engine;return(0,n.default)({url:"/modelParams/"+t+"/"+a,method:"get"})},saveSourceMetaDatas:function(e){var t=e.dsId,a=e.cycleId,o=e.fieldConfig;return(0,n.default)({url:"/datasources/"+t+"/dsCycles/"+a+"/metaDatas",method:"put",data:o})},uploadMetaData:function(e){var t=e.dsId,a=e.cycleId;return(0,n.default)({url:"datasources/"+t+"/dsCycles/"+a+"/metaDatas/actions/uploadMetaData",method:"post"})},downMetaDataTemplate:function(){return(0,n.default)({url:"datasources/dsCycles/metadata/actions/downloadTpl",method:"get"})},downMetaDataFields:function(e){var t=e.dsId,a=e.cycleId;return(0,n.default)({url:"datasources/"+t+"/dsCycles/"+a+"/metaDatas/actions/download",method:"post"})},getPicPreviewData:function(e){var t=e.isCache,a=e.ftpId,o=e.filePath,s=e.fileType;return(0,n.default)({url:"datasources/actions/imageDirPreview",method:"get",params:{isCache:t,fileType:s,ftpId:a,filePath:o}})},getFileContentData:function(e){var t=e.ftpId,a=e.filePath;return(0,n.default)({url:"datasources/actions/filePreview",method:"get",params:{ftpId:t,filePath:a}})},getDataSourceIndex:function(e){return(0,n.default)({url:"/datasources/"+e.dsId+"/kpis",method:"get",params:e})},getDataSourceTag:function(e){return(0,n.default)({basePath:o.ServicePath.GUIDE_TRAIN,url:"/datasources/getname",method:"get",params:e})},getDataSourceLabel:function(e){return(0,n.default)({basePath:o.ServicePath.GUIDE_TRAIN,url:"/datasources/getlable",method:"get",params:e})}}},"./src/redux/services/devCenter.js":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/extends.js")),o=r(a("./src/utils/request.js")),s=a("./src/utils/constants.js");function r(e){return e&&e.__esModule?e:{default:e}}t.default={getApiGroups:function(e){return(0,o.default)({url:"/apiGroups",basePath:s.ServicePath.USER_CENTER_SERVICE,method:"get",params:{isOpen:e}})},getApisByGroupId:function(e){return(0,o.default)({url:"/apiGroups/"+e+"/apis",basePath:s.ServicePath.USER_CENTER_SERVICE,method:"get"})},getApiJson:function(e){var t=e.apiId;return(0,o.default)({url:"/apis/"+t+"/api-docs",basePath:s.ServicePath.USER_CENTER_SERVICE,method:"get"})},getApiDocUrl:function(e){var t=e.serviceId,a=e.apiGroup;return(0,o.default)({url:"/apis/static-docs",basePath:s.ServicePath.USER_CENTER_SERVICE,method:"get",params:(0,n.default)({},t&&{serviceId:t},a&&{apiGroup:a})})},getServices:function(){return(0,o.default)({url:"/open_services/views/labelValue",basePath:s.ServicePath.USER_CENTER_SERVICE,method:"get"})},getServicesApi:function(e){return(0,o.default)({basePath:s.ServicePath.APIS_SERVICE,url:"/services/"+e+"/apis",method:"get"})},getApiJsonInfo:function(e,t,a,n){return(0,o.default)({basePath:s.ServicePath.APIS_SERVICE,url:"/apis/"+e+"/api-doc/"+t,method:"get",params:{apiBelonging:a,serviceId:n}})},getTaskApiJsonInfo:function(e,t){return(0,o.default)({basePath:s.ServicePath.APIS_SERVICE,url:"/apis/"+e+"/api-task-doc/"+t,method:"get"})},getApiRulesUISchema:function(){return(0,o.default)({basePath:s.ServicePath.APIS_SERVICE,url:"/bizCodeRules/operations/init",method:"get"})},getApiRulesInfo:function(e){return(0,o.default)({basePath:s.ServicePath.APIS_SERVICE,url:"/apis/"+e+"/bizCodeRules",method:"get"})},saveApiRulesInfo:function(e,t){return(0,o.default)({basePath:s.ServicePath.APIS_SERVICE,url:"/apis/"+e+"/bizCodeRules",method:"post",data:t})}}},"./src/redux/services/dragDropModel.js":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/extends.js")),o=r(a("./src/utils/request.js")),s=a("./src/utils/constants.js");function r(e){return e&&e.__esModule?e:{default:e}}t.default={getPickNodeList:function(){return(0,o.default)({url:"/dragModel/dragNodes",basePath:s.ServicePath.MODELING_SERVICE,method:"get"})},createModel:function(e){return(0,o.default)({url:encodeURI("/dragModel/models/"),method:"post",data:JSON.stringify(e)})},updateModelInfo:function(e){return(0,o.default)({url:encodeURI("/dragModel/models/"+e.modelId+"/basic"),method:"patch",data:JSON.stringify(e)})},getDragModel:function(e){var t=e.modelId,a=e.isPredict;return(0,o.default)({url:"/dragModel/models/"+t,params:{predict:!0===a?1:-1},basePath:s.ServicePath.MODELING_SERVICE,method:"get"})},saveDragModelJSON:function(e){var t=e.modelId,a=e.modelJson,n=e.isPredict;return(0,o.default)({url:"/dragModel/models/"+t,basePath:s.ServicePath.MODELING_SERVICE,method:"patch",params:{predict:!0===n?1:-1},data:JSON.stringify(a)})},executeDragModel:function(e){var t=e.modelId,a=e.modelJson,r=e.nodeId,i=e.isPredict;return(0,o.default)({url:"/dragModel/models/"+t+"/execute",params:(0,n.default)({predict:!0===i?1:-1},r&&{nodeId:r}),basePath:s.ServicePath.MODELING_SERVICE,data:JSON.stringify(a),method:"post"})},pauseExecuteDragModel:function(e){var t=e.modelId,a=e.isPredict;return(0,o.default)({url:"/dragModel/models/"+t+"/stop",params:{predict:!0===a?1:-1},basePath:s.ServicePath.MODELING_SERVICE,method:"post"})},getUpdateExecStatus:function(e){var t=e.modelId,a=e.isPredict;return(0,o.default)({url:"dragModel/models/"+t+"/actions/getModelTaskLog",basePath:s.ServicePath.MODELING_SERVICE,params:{predict:!0===a?1:-1},method:"get"})},saveModelResult:function(e){var t=e.modelId,a=e.nodeModelName,n=e.nodeModelDesc,r=e.nodeModelFile,i=e.arithId,d=e.modelConf,l=e.isPredict;return(0,o.default)({url:"/dragModel/models/"+t+"/nodeModels",basePath:s.ServicePath.MODELING_SERVICE,params:{predict:!0===l?1:-1},method:"post",data:JSON.stringify({modelId:t,nodeModelName:a,nodeModelDesc:n,nodeModelFile:r,modelConf:d,arithId:i})})},deleteModelResult:function(e){var t=e.modelId,a=e.nodeModelId,n=e.isPredict;return(0,o.default)({url:"/dragModel/models/"+t+"/nodeModels/"+a+" delete",basePath:s.ServicePath.MODELING_SERVICE,params:{predict:!0===n?1:-1},method:"delete"})},publishModelToRepo:function(e){var t=e.modelId,a=e.modelJson;return(0,o.default)({url:"/repo/models",basePath:s.ServicePath.MODELING_SERVICE,method:"post",data:JSON.stringify({modelId:t,source:4,modelConf:a})})},getNodeExecLog:function(e){var t=e.modelId,a=e.nodeId,n=e.isPredict;return(0,o.default)({url:"/dragModel/models/"+t+"/nodes/"+a+"/log",basePath:s.ServicePath.MODELING_SERVICE,params:{predict:!0===n?1:-1},method:"get"})},getNodeExecResult:function(e){var t=e.modelId,a=e.nodeId,r=e.isPredict,i=e.airthNodeId,d=e.predictNodeId;return(0,o.default)({url:"/dragModel/models/"+t+"/nodes/"+a+"/result",basePath:s.ServicePath.MODELING_SERVICE,params:(0,n.default)({predict:!0===r?1:-1},i&&{airthNodeId:i},d&&{predictNodeId:d}),method:"get"})},getNodeExecData:function(e){var t=e.modelId,a=e.nodeId,n=e.isPredict;return(0,o.default)({url:"/dragModel/models/"+t+"/nodes/"+a+"/data",basePath:s.ServicePath.MODELING_SERVICE,params:{predict:!0===n?1:-1},method:"get"})},downloadIpynb:function(e){var t=e.modelId,a=e.modelJson,n=e.isPredict;return(0,o.default)({url:"/dragModel/models/"+t+"/actions/downLoadFile",basePath:s.ServicePath.MODELING_SERVICE,method:"post",data:JSON.stringify(a),params:{predict:!0===n?1:-1}})},getJupyterInfo:function(){return(0,o.default)({url:"/dragModel/models/jupyterServerConfig",basePath:s.ServicePath.MODELING_SERVICE,method:"get"})}}},"./src/redux/services/enumDic.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={getEnumDicList:function(){return(0,s.default)({url:"/enumDics",method:"get"})}}},"./src/redux/services/externalModel.js":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/extends.js")),o=s(a("./src/utils/request.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.default={validateRepeat:function(e){var t=e.modelId,a=e.modelName;return(0,o.default)({url:"/externalModels/actions/checkRepeat",method:"get",params:(0,n.default)({},t?{modelId:t}:{},{modelName:a})})},getExternalModelList:function(e){var t=e.modelName,a=e.limit,n=e.offset;return(0,o.default)({url:"/externalModels",method:"get",params:{modelName:t,limit:a,offset:n}})},saveExternalModel:function(e){return(0,o.default)({url:e.modelId?"/externalModels/"+e.modelId:"/externalModels",method:e.modelId?"put":"post",data:JSON.stringify(e)})},deployExternalModel:function(e){var t=e.modelId,a=e.deployFtp,n=e.deployPath;return(0,o.default)({url:"/externalModels/"+t+"/actions/release",method:"post",params:{deployFtp:a,deployPath:n}})},deleteExternalModel:function(e){return(0,o.default)({url:"/externalModels/"+e,method:"delete"})},commitTrain:function(e){return(0,o.default)({url:"/externalModels/"+e+"/actions/commitTrain",method:"put"})},stopTrain:function(e){return(0,o.default)({url:"/externalModels/"+e+"/actions/stopTrain",method:"put"})}}},"./src/redux/services/flowTaskService.js":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./src/utils/request.js")),o=a("./src/utils/constants.js"),s=r(a("./node_modules/qs/lib/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=o.ServicePath.STREAMING_REASONING;t.default={getFlowTaskList:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-task",method:"get",params:e})},deleteFlowTaskById:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-task/"+e,method:"delete"})},checkNameRepeat:function(e,t,a){return(0,n.default)({basePath:i,url:"/streaming-reasoning-task/operations/check-name-repeat",method:"get",params:{taskId:e,taskName:t,deployEnv:a}})},checkTaskIdentifyRepeat:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-task/operations/check-repeat",method:"get",params:{taskIdentify:e}})},createFlowTaskInfo:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-task",method:"post",data:e})},editFlowTaskInfo:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-task/"+e.taskId,method:"patch",data:e})},getFlowTaskInfo:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-task/"+e,method:"get"})},generateTaskIdentify:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-task/"+e+"/taskIdentify",method:"get"})},handleJob:function(e,t){return(0,n.default)({basePath:i,url:"/streaming-reasoning-action/"+e+"/jobs",method:"post",data:t})},updateSpec:function(e,t){return(0,n.default)({basePath:i,url:"/streaming-reasoning-task/"+e+"/operations/spec-update",method:"patch",data:t})},getJobInfoById:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-action/config/"+e,method:"get"})},downloadJobLogs:function(e,t){return(0,n.default)({basePath:i,url:"/job-specs/"+e+"/jobs/"+t+"/operations/download",method:"post"})},jobStartOrStop:function(e,t){return(0,n.default)({basePath:i,url:"/streaming-reasoning-action/"+e+"/operations/"+t,method:"stop"===t?"delete":"post"})},getJobList:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-action/"+e.taskId,method:"get",params:e})},getJobStats:function(e){return(0,n.default)({basePath:i,url:"/streaming-reasoning-action/operations/count",method:"get",paramsSerializer:function(e){return s.default.stringify(e,{indices:!1})},params:{taskIdQuerys:[e]}})},cancelJobByWaiting:function(e,t){return(0,n.default)({basePath:o.ServicePath.JOBS_SERVE,serviceType:""+t,url:"/jobs/"+e,method:"delete"})}}},"./src/redux/services/grayTaskService.js":function(e,t,a){"use strict";t.__esModule=!0,t.publishGrayTask=t.getServiceApiUsers=t.getTaskServiceMonitor=t.getStrategy=t.getServiceVersions=t.configGrayPolicy=t.checkGrayTaskNameRepeat=t.deleteGrayTask=t.getGrayTaskListByServiceId=t.cancelGrayVersion=t.selectGrayVersion=t.deployGrayVersion=t.createGrayTask=t.getGrayTaskInfo=t.getGrayTaskList=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");var i=r.ServicePath.SC_SERVICE;t.getGrayTaskList=function(e){return(0,s.default)({basePath:i,url:"/taskRelease",method:"get",params:e})},t.getGrayTaskInfo=function(e){return(0,s.default)({basePath:i,url:"/taskRelease/"+e,method:"get"})},t.createGrayTask=function(e){return(0,s.default)({basePath:i,url:"/taskRelease",method:"post",data:e})},t.deployGrayVersion=function(e,t){return(0,s.default)({basePath:i,url:"/taskRelease/"+e+"/create",method:"post",data:t})},t.selectGrayVersion=function(e,t){return(0,s.default)({basePath:i,url:"/taskRelease/"+e+"/selected",method:"post",data:t})},t.cancelGrayVersion=function(e,t){return(0,s.default)({basePath:i,url:"taskRelease/"+e+"/operates/cancel",method:"post",data:t})},t.getGrayTaskListByServiceId=function(e){return(0,s.default)({basePath:i,url:"/taskRelease/"+e+"/operates/service",method:"get"})},t.deleteGrayTask=function(e){return(0,s.default)({basePath:i,url:"/taskRelease/"+e,method:"delete"})},t.checkGrayTaskNameRepeat=function(e){return(0,s.default)({basePath:i,url:"/taskRelease/operates/check-name-repeat",method:"get",params:e})},t.configGrayPolicy=function(e,t){return(0,s.default)({basePath:i,url:"/taskRelease/"+e+"/operates/strategy",method:"post",data:t})},t.getServiceVersions=function(e){return(0,s.default)({basePath:i,url:"/taskRelease/"+e+"/operates/service",method:"get"})},t.getStrategy=function(e){return(0,s.default)({basePath:i,url:"/taskRelease/"+e+"/operates/strategy",method:"get"})},t.getTaskServiceMonitor=function(e,t){return(0,s.default)({basePath:i,url:"/taskRelease/"+e+"/operates/chart",method:"get",params:t})},t.getServiceApiUsers=function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/api-users/"+e+"/list",method:"get",params:t})},t.publishGrayTask=function(e){return(0,s.default)({basePath:i,url:"/taskRelease/"+e+"/operates/confirm",method:"post"})}},"./src/redux/services/homePage.js":function(e,t,a){"use strict";t.__esModule=!0,t.getAppPipeline=t.getApplicationClass=t.getProjectSerInvokeTrend=t.getProjectSerInvokeTop=t.getProjectResUsage=t.getProjectResAssign=t.getProjectOverview=t.getHomePageConfig=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");var i=r.ServicePath.SIC_SERVICE;t.getHomePageConfig=function(){return(0,s.default)({basePath:i,url:"/home/config",method:"get"})},t.getProjectOverview=function(e){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/projects/"+e+"/stats/overview",method:"get"})},t.getProjectResAssign=function(e){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/projects/"+e+"/stats/res-assign-overview",method:"get"})},t.getProjectResUsage=function(e){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/projects/"+e+"/stats/res-usage-overview",method:"get"})},t.getProjectSerInvokeTop=function(e,t){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,serviceType2Mc:"PRODUCT",url:"/projects/"+e+"/statistics/svc-invoke-top/services",method:"get",params:t})},t.getProjectSerInvokeTrend=function(e,t){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,serviceType2Mc:"PRODUCT",url:"/project/"+e+"/statistics/svc-invoke-period/services",method:"get",params:t})},t.getApplicationClass=function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/"+e+"/appTypes",method:"get"})},t.getAppPipeline=function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/"+e+"/appTypes/"+t+"/apps",method:"get"})}},"./src/redux/services/indiSet.js":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./src/utils/request.js")),o=s(a("./node_modules/qs/lib/index.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.default={getDiagramUrl:function(e){var t=e.dsId,a=e.dsCycle,o=e.fieldEnName;return(0,n.default)({url:"/kpisets/"+t+"/"+a+"/"+o,method:"get"})},cancelExecute:function(e){var t=e.kpisetId;return(0,n.default)({url:"/kpisets/"+t+"/actions/stop",method:"post"})},getReviewResult:function(e){var t=e.kpisetId,a=e.dsCycle,o=e.kpiName,s=e.kpiClass;return(0,n.default)({url:"kpisets/"+(""!==t?t:null)+"/kpis/reviewResult",method:"get",params:{dsCycle:a,kpiName:o,kpiClass:s}})},deleteKpiSet:function(e){return(0,n.default)({url:"/kpisets/"+e,method:"delete"})},checkKpiNames:function(e){var t=e.kpisetId,a=e.kpisetName;return(0,n.default)({url:"/kpisets/action/checkRepeat",method:"get",params:{kpisetId:t,kpisetName:a}})},getIndiListByDsId:function(e){var t=e.dsId,a=e.dsCycle,o=e.auditFlag,s=void 0!==o&&o;return(0,n.default)({url:"/datasources/"+t+"/kpis",method:"get",params:{dsId:t,dsCycle:a,auditFlag:s}})},updateKpiData:function(e){return(0,n.default)({url:"/kpisets/"+e,method:"get"})},getKpiTypesList:function(){return(0,n.default)({url:"/kpisetTypes",method:"get"})},getKpiDataList:function(e){var t=e.typeId,a=e.kpisetName,s=e.dsId,r=e.excludeDataType;return(0,n.default)({url:"/kpisets",method:"get",paramsSerializer:function(e){return o.default.stringify(e,{indices:!1})},params:{typeId:t,excludeDataType:r,kpisetName:a,dsId:s}})},getKpiSetDataList:function(e){var t=e.kpisetId,a=e.cycle;return(0,n.default)({url:"/kpisets/"+t+"/kpis",method:"get",params:{kpisetId:t,cycle:a}})},submitUpdataKpiData:function(e){return(0,n.default)({url:"/kpisets/"+e.kpisetId,method:"put",data:e})},submitKpiData:function(e){return(0,n.default)({url:"/kpisets",method:"post",data:e})}}},"./src/redux/services/modelBase.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={saveShare:function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/MODELS/"+t+"/share-setting",method:"post",data:e})},loadShare:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/MODELS/"+e+"/share-setting",method:"get"})},getService:function(){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/service",method:"get",params:{serviceInferenceType:"OFFLINE",isPage:"N"}})},getMirrors:function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/mirror?typeName="+e+"&isPage=N",method:"get",params:{sourceTypes:"PRESET,IMPORT"}})},getMirrorType:function(){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/mirrorType?tServer=SIC&type=MIRROR_TYPE",method:"get"})},exportVersion:function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/mirror/export",method:"post",data:e})},getFtpDropDown:function(){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/storages/operates/baseInfo",method:"get"})},pushToRepo:function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/repositories/"+t+"/operators/pushToRepo",method:"post",data:e})},patchModelBase:function(e){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/"+e.modelId,method:"patch",data:e})},editModelBase:function(e){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/"+e.modelId,method:"put",data:e})},deleteModelBase:function(e){var t=e.modelId;return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/"+t,method:"delete"})},deleteCodePackages:function(e){var t=e.modelId,a=e.versionId,n=e.packageId;return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/"+t+"/versions/"+a+"/packages/"+n,method:"delete"})},getModelBaseInfo:function(e){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/"+e,method:"get"})},getPackagesByModelId:function(e){var t=e.modelId,a=e.versionId;return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/"+t+"/versions/"+a+"/packages",method:"get"})},getModelBaseList:function(e){var t=e.repoId,a=void 0===t?"default":t,n=e.busiType,o=e.modelName,i=e.sortType,d=e.dataType,l=e.publishFrom,u=e.labels;return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/user/repositories/"+a+"/models",method:"get",params:{search:o,sortBy:i,dataType:d,publishFrom:l,labels:u,busiTypes:n}})},getModelBaseListByRepoId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/repositories/"+e+"/models",method:"get"})},getRepositories:function(e){return(0,s.default)({basePath:r.ServicePath.ANB_SERVICE,url:"/model/repo/modelInfo",method:"get",params:{projectId:e}})},getNextVersion:function(e){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/modelId/operations/getLastVersion",method:"get",params:e})},getNewVersionByModelId:function(e){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/modelId/operations/getMaxVersion",method:"get",params:e})},publishModel:function(e){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/model/operations/pushModel",method:"post",data:e})},getModelPackages:function(e,t){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/"+e+"/packages",method:"get",params:t})},getPackageSchema:function(e){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/packages/"+e+"/schemas",method:"get"})},getPackageInterfaceFile:function(e,t,a,n){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/"+e+"/versions/"+t+"/packages/"+a+"/types/"+n+"/files",method:"get"})}}},"./src/redux/services/modelLearn.js":function(e,t,a){"use strict";t.__esModule=!0,t.getApplicationsList=t.getLearnApplicationsList=t.getApplicationsInfo=t.getModelServiceInfo=t.getDeployId=t.getServicesApi=t.getModelServiceList=t.getSharedSubmitedList=t.getSharedList=t.getModulesTree=t.getEchoInfo=t.getParamsJson=t.getParamsList=t.createAppAiops=t.gitUploadPublishModel=t.gitUpload=t.createAppAi=t.submitCode=t.insertComponents=t.insertParams=t.getIdeCheak=t.getIdeCopy=t.getIdeAdd=t.saveBased=t.modifyLearnStatus=t.checkApplicationName=t.checkLearnName=t.delBased=t.shareOrNo=t.getUserInfo=t.getBasedList=t.getLenovoLearnName=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.getLenovoLearnName=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/lenovo",method:"get",params:e})},t.getBasedList=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/list",method:"get",params:e})},t.getUserInfo=function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+e+"/basic-info",method:"get"})},t.shareOrNo=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/sign",method:"get",params:e})},t.delBased=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/delete",method:"delete",params:e})},t.checkLearnName=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/check",method:"get",params:e})},t.checkApplicationName=function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/applications/operations/checkNameRepeat",method:"get",params:e})},t.modifyLearnStatus=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/status",method:"put",data:e})},t.saveBased=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/preservation",method:"post",data:e})},t.getIdeAdd=function(e,t){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/add/ide?taskId="+e,method:"post",data:t})},t.getIdeCopy=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/copy/ide",method:"get",params:e})},t.getIdeCheak=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/cheak/ide",method:"get",params:e})},t.insertParams=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/index/ide",method:"post",data:e})},t.insertComponents=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/code/ide",method:"post",data:e})},t.submitCode=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/add",method:"post",data:e})},t.createAppAi=function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/"+e+"/applications",method:"post",data:t})},t.gitUpload=function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/resources",method:"post",data:e})},t.gitUploadPublishModel=function(e){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/model/operations/pushModel",method:"post",data:e})},t.createAppAiops=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/application/add",method:"post",data:e})},t.getParamsList=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/parameters",method:"get",params:e})},t.getParamsJson=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/parameters/json",method:"get",params:e})},t.getEchoInfo=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/id",method:"get",params:e})},t.getModulesTree=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/assembly",method:"get",params:e})},t.getSharedList=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/sign/list",method:"get",params:e})},t.getSharedSubmitedList=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/learningcenter/by/list",method:"get",params:e})},t.getModelServiceList=function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/deploy",method:"get",params:e})},t.getServicesApi=function(e,t){return(0,s.default)({basePath:r.ServicePath.APIS_SERVICE,url:"/services/"+e+"/apis/"+t,method:"get"})},t.getDeployId=function(e){return(0,s.default)({basePath:r.ServicePath.LEARN_SERVICE,url:"/api/aiops/application/get",method:"post",params:e})},t.getModelServiceInfo=function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/deploy/"+e,method:"get"})},t.getApplicationsInfo=function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+t+"/applications/"+e,method:"get"})},t.getLearnApplicationsList=function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes/normal_applications",method:"get"})},t.getApplicationsList=function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/"+e+"/applications?applicationClass="+t,method:"get"})}},"./src/redux/services/modelManage.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={getMonitorData:function(e){var t=e.modelId,a=e.taskId,n=e.algName;return(0,s.default)({url:"/models/"+t+"/monitorData",method:"get",params:{modelId:t,taskId:a,algName:n}})},getModelList:function(e){var t=e.manner,a=e.modelTypeId,n=e.dsName,o=e.state,r=e.sortType,i=e.modelName,d=e.page,l=e.rows,u=e.language,c=e._SYNC_INTERVAL;return(0,s.default)({url:"/models",method:"get",sync:c,params:{manner:t,modelTypeId:a,state:o,sortType:r,modelName:i,dsName:n,page:d,rows:l,language:u}})},copyModel:function(e){var t=e.modelId;return(0,s.default)({url:"/models/"+t+"/copy",method:"post"})},publishModel:function(e){var t=e.modelInfo;return(0,s.default)({url:"/repo/models",method:"post",params:{modelId:t.modelId,source:"7"===t.manner?2:"4"===t.manner?"3":"1"}})},executeModel:function(e){var t=e.modelId,a=e.manner;return(0,s.default)({url:"/models/"+t+"/action/execute",method:"post",params:{manner:a}})},cancelModel:function(e){var t=e.modelId,a=e.manner;return(0,s.default)({url:"/models/"+t+"/action/cancel",method:"post",params:{manner:a}})},deleteModel:function(e){var t=e.modelId,a=e.manner;return(0,s.default)({url:"/models/"+t,method:"delete",params:{manner:a}})},checkModelName:function(e){var t=e.modelId,a=e.modelName;return(0,s.default)({url:encodeURI("/models/"+t+"/"+a+"/action/checkRepeat"),method:"get"})},checkCodeName:function(e){var t=e.modelName;return(0,s.default)({url:encodeURI("/models/"+t+"/action/checkRepeat"),method:"get"})},getModulesConfigData:function(e){var t=e.modelId,a=e.componentId,n=e.viewType;return(0,s.default)({url:"/models/"+t,method:"get",params:{modelId:t,componentId:a,viewType:n}})},submitPostModel:function(e){return(0,s.default)({url:"/models/submit",method:"post",data:e})},savePostModel:function(e){return(0,s.default)({url:"/models",method:"post",data:JSON.stringify(e)})},updatePutModel:function(e){return(0,s.default)({url:"/models/"+e.sceneId,method:"put",data:JSON.stringify(e)})},getCreateModelId:function(){return(0,s.default)({url:"/models/modelId/action/getModelId",method:"get"})},getModelInfoByModelId:function(e){var t=e.modelId;return(0,s.default)({url:"/models/"+t+"/modelInfo",method:"get"})},getCreateNotebookUrl:function(e){var t=e.language,a=e.modelName,n=e.engine;return(0,s.default)({url:"/expertModels?engine="+n,method:"post",data:{devLanguage:t,modelName:a,engine:n}})},getEditNotebookUrl:function(e){var t=e.modelId;return(0,s.default)({url:"/expertModels/"+t,method:"put"})},syncNotebookModels:function(){return(0,s.default)({url:"/expertModels/sync",method:"get"})}}},"./src/redux/services/modelMirror.js":function(e,t,a){"use strict";t.__esModule=!0,t.downLoadMirrorVersionDockerFile=t.getMirrorVersionDockFileMsg=t.getDockerfileContent=t.editMirrorBuild=t.saveMirrorBuild=t.getPackageCommond=t.getDockerCommond=t.getNextVersion=t.getLanguageData=t.checkMirrorNameRepeat=t.getMirrorVersionResource=t.deleteModelMirrorVersion=t.exportMirrorVersion=t.getMirrorVersionInfo=t.getMirrorVersionList=t.createServiceMirror=t.deleteModelMirror=t.updateModelMirrorApiInfo=t.updateMirrorVersionInfo=t.updateModelMirrorInfo=t.saveModelMirrorInfo=t.getModelMirrorInfo=t.getModelMirrorList=t.getFtpDropDown=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js"),i=a("./src/utils/publicPath.js"),d=a("./src/utils/downLoadFile.js");var l=r.ServicePath.SIC_SERVICE;t.getFtpDropDown=function(){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/storages/operates/baseInfo",method:"get"})},t.getModelMirrorList=function(e){return(0,s.default)({basePath:l,url:"/mirror",method:"get",params:e})},t.getModelMirrorInfo=function(e){return(0,s.default)({basePath:l,url:"/mirror/"+e,method:"get"})},t.saveModelMirrorInfo=function(e){return(0,s.default)({basePath:l,url:"/mirror/import",method:"post",data:e})},t.updateModelMirrorInfo=function(e){return(0,s.default)({basePath:l,url:"/mirror/"+e.mirrorId,method:"patch",data:e})},t.updateMirrorVersionInfo=function(e){return(0,s.default)({basePath:l,url:"/mirror/"+e.mirrorVersionId,method:"put",data:e})},t.updateModelMirrorApiInfo=function(e){return(0,s.default)({basePath:l,url:"/mirror/"+e.mirrorVersionId+"/api",method:"put",data:e})},t.deleteModelMirror=function(e){return(0,s.default)({basePath:l,url:"/mirror/"+e,method:"delete"})},t.createServiceMirror=function(e){return(0,s.default)({basePath:l,url:"/mirror/build",method:"post",data:e})},t.getMirrorVersionList=function(e){return(0,s.default)({basePath:l,url:"/mirror/version",method:"get",params:e})},t.getMirrorVersionInfo=function(e){return(0,s.default)({basePath:l,url:"/mirror/version/"+e,method:"get"})},t.exportMirrorVersion=function(e){return(0,s.default)({basePath:l,url:"/mirror/export",method:"post",data:e})},t.deleteModelMirrorVersion=function(e){return(0,s.default)({basePath:l,url:"/mirror/version/"+e,method:"delete"})},t.getMirrorVersionResource=function(e){return(0,s.default)({basePath:l,url:"/resources",method:"get",params:e})},t.checkMirrorNameRepeat=function(e){return(0,s.default)({basePath:l,url:"/mirror/checkMirrorName",method:"get",params:e})},t.getLanguageData=function(e){return(0,s.default)({basePath:l,url:"/environment/operate/baseinfo",method:"get",params:e})},t.getNextVersion=function(e){return(0,s.default)({basePath:l,url:"/mirror/operate/nextVersion?mirrorName="+e.mirrorShowName+"&mirrorId="+e.mirrorId,method:"get"})},t.getDockerCommond=function(e){return(0,s.default)({basePath:l,url:"/mirror/operate/resources",method:"get",params:e})},t.getPackageCommond=function(e){return(0,s.default)({basePath:l,url:"/resources/operate/valiOnlinePackage",method:"get",params:e})},t.saveMirrorBuild=function(e){return(0,s.default)({basePath:l,url:"/mirror/build",method:"post",data:e})},t.editMirrorBuild=function(e){return(0,s.default)({basePath:l,url:"/mirror/build/"+e.mirrorId,method:"put",data:e})},t.getDockerfileContent=function(e){return(0,s.default)({basePath:l,url:"/mirror/operate/dockerCommond",method:"get",params:e})},t.getMirrorVersionDockFileMsg=function(e){return(0,s.default)({basePath:l,url:"/dockerFile/"+e+"/operations/get",method:"get"})},t.downLoadMirrorVersionDockerFile=function(e){(0,d.authDownLoadFile)((0,i.urlFormat)("/dockerFile/"+e+"/operations/download",l))}},"./src/redux/services/modelService.js":function(e,t,a){"use strict";t.__esModule=!0,t.getHistoryMirror=t.modifyFlowConfig=t.getServiceVersionList=t.getServiceInvokeSummary=t.getLogDownloadTaskList=t.downLoadLogTaskFile=t.logDownloadTaskCreate=t.downLoadLogFile=t.updateIngressAddress=t.getServiceMonitorInfo=t.getServiceConfigInfo=t.getResourceSpecs=t.updateServiceConfig=t.onlineEditService=t.getInstancesEvent=t.configServiceQuota=t.upgradeService=t.getServiceResUseTend=t.checkServiceAttrRepeat=t.modifyService=t.deleteService=t.reSetService=t.getServiceInfo=t.getServiceList=t.publishService=t.getFilters=t.getServiceInstLogs=t.getServiceInstList=t.getServiceStatsOverview=t.checkServiceParamRepeat=t.getServiceIngress=t.getServiceInvocationDetail=t.getRecentlyServiceInvocation=t.getServiceInvocation=t.getServiceEvent=t.getModelApiInfo=t.getModelAvailableQuota=t.operateModelService=t.getModelServiceDetailInfo=t.getModelServiceInfo=t.submitModelService=t.modifyModelService=t.reassignResourceQuota=t.getServiceModelInfo=t.getModelServiceList=t.getPipeline=t.getPipelineInfoByIds=t.cancelTask=t.rerunTask=t.createTask=t.getProgressResule=t.getModelServiceSummaryList=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js"),i=a("./src/utils/publicPath.js"),d=a("./src/utils/downLoadFile.js");t.getModelServiceSummaryList=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/rapid/search",method:"get",params:e})},t.getProgressResule=function(e,t,a){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/export-tasks/"+e+"/jobs/"+t+"/progress",method:"get",serviceType2Mc:""+(a||"PRODUCT")})},t.createTask=function(e,t,a){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/export-tasks/"+e+"/jobs",method:"post",data:t,serviceType2Mc:""+(a||"PRODUCT")})},t.rerunTask=function(e,t,a){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/export-tasks/"+e+"/jobs/"+t+"/operations/rerun",method:"post",serviceType2Mc:""+(a||"PRODUCT")})},t.cancelTask=function(e,t,a){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/export-tasks/"+e+"/operations/"+t+"/cancel",method:"post",serviceType2Mc:""+(a||"PRODUCT")})},t.getPipelineInfoByIds=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/"+e+"/operations/getPipelinePlan",method:"get",params:{mirrorVersionId:t}})},t.getPipeline=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/operations/getPipelinePlan",method:"get",params:e})},t.getModelServiceList=function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/deploy",method:"get",params:e})},t.getServiceModelInfo=function(e){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/models/modelId/versions/versionId/services/"+e,method:"get"})},t.reassignResourceQuota=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/"+e.resQuotaId+"/operations/reassign",method:"post",data:e})},t.modifyModelService=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/operations/modify",method:"put",data:e})},t.submitModelService=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/operations/deploy",method:"post",data:e})},t.getModelServiceInfo=function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/deploy/"+e,method:"get"})},t.getModelServiceDetailInfo=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/"+e+"/serviceBasic",method:"get"})},t.operateModelService=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/"+t.resQuotaId+"/operations/"+e,method:"post",data:t})},t.getModelAvailableQuota=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"current";return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/projects/"+t+"/available-foot-quota",method:"get",params:{quotaType:e}})},t.getModelApiInfo=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/rapidDeployment/"+e+"/apis/"+t,method:"get"})},t.getServiceEvent=function(e,t){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/"+e+"/"+t+"/logs",method:"get"})},t.getServiceInvocation=function(e,t){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,serviceType2Mc:t,url:"/reasoning-services/"+e.serviceId+"/svc-invoke-logs",method:"get",params:e})},t.getRecentlyServiceInvocation=function(e,t){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,serviceType2Mc:t.env,url:"/reasoning-service/"+e+"/statistics/svc-invoke-period/services",method:"get",params:t})},t.getServiceInvocationDetail=function(e,t,a){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,serviceType2Mc:a,url:"/svc-invoke-logs/"+e,method:"get",params:t})},t.getServiceIngress=function(e){return(0,s.default)({basePath:r.ServicePath.APIS_SERVICE,url:"/routeIngress",method:"get",params:e})},t.checkServiceParamRepeat=function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/deploy/checkDeployParameterRepetition",method:"get",params:e})},t.getServiceStatsOverview=function(e,t){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/services/"+e+"/"+t+"/stats/overview",method:"get"})},t.getServiceInstList=function(e,t){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/services/"+e+"/"+t+"/stats/srv-inst-list",method:"get"})},t.getServiceInstLogs=function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/deploy/getAppLog",method:"get",params:e})},t.getFilters=function(e){return(0,s.default)({basePath:r.ServicePath.APIS_SERVICE,url:"/routeFilterConfigs",method:"get",params:e})},t.publishService=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/rapidDeployment/operates/start",method:"post",data:e})},t.getServiceList=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/rapid/page",method:"get",params:e})},t.getServiceInfo=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/rapid/"+e,method:"get"})},t.reSetService=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/rapidDeployment/"+e+"/operates/reset",method:"patch",data:t})},t.deleteService=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/rapid/"+e,method:"delete"})},t.modifyService=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/rapid/"+e,method:"put",data:t})},t.checkServiceAttrRepeat=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/rapid/repeat/"+t,method:"get",params:e})},t.getServiceResUseTend=function(e,t,a){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/projects/"+e+"/services/"+t+"/usage-trend",method:"get",params:a})},t.upgradeService=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/rapidDeployment/"+e+"/operates/online/upgrade/"+t.sourceType,method:"patch",data:t})},t.configServiceQuota=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/"+e+"/operations/spec",method:"post",data:t})},t.getInstancesEvent=function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/deploy/event/"+e,method:"get"})},t.onlineEditService=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/rapidDeployment/"+e+"/onlineModify",method:"patch",data:t})},t.updateServiceConfig=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/rapidDeployment/"+e+"/operates/online/modify",method:"patch",data:t})},t.getResourceSpecs=function(e){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/resourceSpecs",method:"get",params:e})},t.getServiceConfigInfo=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/"+e+"/serviceConfig",method:"get"})},t.getServiceMonitorInfo=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/"+e+"/serviceMonitor",method:"get"})},t.updateIngressAddress=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/updateIngress",method:"post",data:{serviceId:e,deploymentIngressAddress:t}})},t.downLoadLogFile=function(e,t,a,n){(0,d.authDownLoadFile)((0,i.urlFormat)("/svc-invoke-logs/"+e+"/operations/download?scope="+t+"&profile="+a+"&requestAt="+n,r.ServicePath.MC_SERVICE,a,!0))},t.logDownloadTaskCreate=function(e,t){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,serviceType2Mc:t,url:"/svc-invoke-logs/download-tasks",method:"post",data:e})},t.downLoadLogTaskFile=function(e,t){(0,d.authDownLoadFile)((0,i.urlFormat)("/svc-invoke-logs/"+e+"/operations/obtainStream",r.ServicePath.MC_SERVICE,t,!0))},t.getLogDownloadTaskList=function(e,t,a){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:e,method:"get",params:t,serviceType2Mc:""+(a||"PRODUCT")})},t.getServiceInvokeSummary=function(e,t){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,serviceType2Mc:t.env,url:"/reasoning-services/"+e+"/statistics/svc-invoke-summary",method:"get",params:t})},t.getServiceVersionList=function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/"+e+"/version/info",method:"get"})},t.modifyFlowConfig=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/rapidDeployment/"+e+"/apis/operates/update/strategyFilter",method:"post",data:t})},t.getHistoryMirror=function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/"+e+"/historyMirror",method:"get",params:t})}},"./src/redux/services/modelVersion.js":function(e,t,a){"use strict";t.__esModule=!0;var n=d(a("./src/utils/request.js")),o=a("./src/utils/constants.js"),s=d(a("./node_modules/qs/lib/index.js")),r=a("./src/utils/publicPath.js"),i=a("./src/utils/downLoadFile.js");function d(e){return e&&e.__esModule?e:{default:e}}t.default={exportVersionFile:function(e,t){(0,i.authDownLoadFile)((0,r.urlFormat)("/models/"+e+"/versions/"+t+"/operations/export",o.ServicePath.REPO_SERVICE))},exportPackageFile:function(e,t,a){(0,i.authDownLoadFile)((0,r.urlFormat)("/models/"+e+"/versions/"+t+"/packages/"+a+"/operations/exportPackage",o.ServicePath.REPO_SERVICE))},online:function(e){return(0,n.default)({basePath:o.ServicePath.REPO_SERVICE,url:"/models/"+e.modelId+"/versions/"+e.versionId+"/operations/online",method:"patch"})},offline:function(e){return(0,n.default)({basePath:o.ServicePath.REPO_SERVICE,url:"/models/"+e.modelId+"/versions/"+e.versionId+"/operations/offline",method:"patch"})},deleteVersion:function(e,t){return(0,n.default)({basePath:o.ServicePath.REPO_SERVICE,url:"/models/"+e+"/versions/"+t,method:"delete"})},getVersionsInfo:function(e,t){return(0,n.default)({basePath:o.ServicePath.REPO_SERVICE,url:"/models/"+e+"/versions/"+t,method:"get"})},getVersionsModelInfo:function(e,t){return(0,n.default)({basePath:o.ServicePath.REPO_SERVICE,url:"/models/"+e+"/versions/"+t+"/info",method:"get"})},patchVersions:function(e){return(0,n.default)({basePath:o.ServicePath.REPO_SERVICE,url:"/models/"+e.modelInfo.modelId+"/versions/"+e.versionInfo.versionId,method:"patch",data:e.versionInfo})},getModelVersionList:function(e){var t=e.modelId,a=e.search,r=e.sortBy,i=e.dataType,d=e.publishFrom,l=e.status;return(0,n.default)({basePath:o.ServicePath.REPO_SERVICE,url:"/models/"+t+"/versions",method:"get",paramsSerializer:function(e){return s.default.stringify(e,{indices:!1})},params:{status:l,search:a,sortBy:r,dataType:i,publishFrom:d}})},getModelDocContent:function(e,t,a){return(0,n.default)({basePath:o.ServicePath.REPO_SERVICE,url:"/models/"+e+"/versions/"+t+"/files/"+a,method:"get"})},importModelInterface:function(e,t,a){return(0,n.default)({basePath:o.ServicePath.REPO_SERVICE,url:"/models/"+e+"/versions/"+t+"/packages",method:"post",data:a})}}},"./src/redux/services/notebookViewService.js":function(e,t,a){"use strict";t.__esModule=!0,t.downLoadFile=t.updateRequest=t.treeItemGetRequest=t.treeGetRequest=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js"),i=a("./src/utils/publicPath.js"),d=a("./src/utils/downLoadFile.js");var l=r.ServicePath.NB_VIEW;t.treeGetRequest=function(e,t){return(0,s.default)({url:"/nb-view/projects/"+e+"/apps/"+t+"/tree?ref=master",basePath:l,method:"get"})},t.treeItemGetRequest=function(e,t,a){return(0,s.default)({url:"/nb-view/projects/"+e+"/apps/"+t+"/files/"+a+"?ref=master",basePath:l,method:"get"})},t.updateRequest=function(e,t,a){return(0,s.default)({url:"/nb-view/projects/"+e+"/apps/"+t+"/operations/download?filePath="+a+"&ref=master",basePath:l,method:"get"})},t.downLoadFile=function(e,t,a){(0,d.authDownLoadFile)((0,i.urlFormat)("/nb-view/projects/"+e+"/apps/"+t+"/operations/download?filePath="+a+"&ref=master",l))}},"./src/redux/services/ocrManage.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={ocrTemplateList:function(e){var t=e.presetFlag,a=e.templateTypeId,n=e.search,o=e.templateStatus;return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates",method:"get",params:{presetFlag:t,templateTypeId:a,search:n,templateStatus:o,sortBy:"createAt.desc"}})},ocrTemplateTypes:function(){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplateTypes",method:"get"})},ocrTemplateInfo:function(e){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/"+e,method:"get"})},adjustImage:function(e){var t=e.templateId,a=e.angle;return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/"+t+"/operates/adjustImg?angle="+a,method:"get"})},getTemplateExampleJson:function(e){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/"+e+"/operates/jsonExampleView",method:"get"})},ocrTemplateDelete:function(e){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/"+e,method:"delete"})},ocrTemplatePublish:function(e){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/"+e+"/operates/publish",method:"post"})},ocrTemplateCancelPublish:function(e){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/"+e+"/operates/cancelPublish",method:"post"})},ocrTemplateRecognizeTest:function(e){var t=e.templateId,a=e.appId,n=e.imgData;return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/"+t+"/operates/test",method:"post",data:{appId:a,imgData:n}})},ocrTemplateImageUpload:function(e){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/operates/uploadImg",method:"post",data:e})},ocrTemplateCreate:function(e){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates",method:"post",data:e})},ocrTemplateUpdate:function(e){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/"+e.templateId,method:"patch",data:e})},imageRecognize:function(e){return(0,s.default)({basePath:r.ServicePath.OCR_SERVICE,url:"/ocrTemplates/operates/predictImgData",method:"post",data:{appId:"",imgData:e}})}}},"./src/redux/services/offlineInference.js":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./src/utils/request.js")),o=a("./src/utils/constants.js"),s=r(a("./node_modules/qs/lib/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}t.default={getOfflineInferenceList:function(e){var t=e.taskName,a=e.taskIds,r=e.applicationIds,i=e.status,d=e.sortBy,l=e.profile,u=e.limit,c=e.offset;return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/offline-reasoning-tasks",method:"get",paramsSerializer:function(e){return s.default.stringify(e,{indices:!1})},params:{taskName:t,taskIds:a,applicationIds:r?[r]:[],status:i,sortBy:d,profile:l,limit:u,offset:c}})},deleteOfflineById:function(e){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:encodeURI("/offline-reasoning-tasks/"+e),method:"delete"})},checkNameRepeat:function(e,t,a){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/offline-reasoning-tasks/operations/check-name-repeat",method:"get",params:{taskId:e,taskName:t,deployEnv:a}})},createTaskIdentify:function(e){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/offline-reasoning-tasks/"+e+"/taskIdentify",method:"get"})},checkTaskIdentifyRepeat:function(e){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/offline-reasoning-tasks/operations/check-repeat",method:"get",params:{taskIdentify:e}})},createOfflineInfo:function(e){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/offline-reasoning-tasks",method:"post",data:e})},editOfflineInfo:function(e){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/offline-reasoning-tasks/"+e.taskId,method:"patch",data:e})},getOfflineInfo:function(e){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/offline-reasoning-tasks/"+e,method:"get"})},downloadJobLogs:function(e,t){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/job-specs/"+e+"/jobs/"+t+"/operations/download",method:"post"})},offlineEventByTaskId:function(e,t){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/project/"+e+"/job-specs/"+t+"/event",method:"get"})},operationsOnlineOrOffline:function(e,t){return(0,n.default)({basePath:o.ServicePath.JOBS_MANAGE,url:"/offline-reasoning-tasks/"+e+"/operations/"+t,method:"patch"})},jobStartOrStop:function(e,t,a,s){return(0,n.default)({basePath:o.ServicePath.JOBS_SERVE,serviceType:""+s,url:"/jobs/"+t+"/operations/"+("stop"===a?"kill":"retry"),method:"stop"===a?"delete":"post"})},getJobList:function(e){var t=e.createAt,a=e.updateAt,s=e.status,r=e.taskId,i=e.deployEnv,d=e.limit,l=e.offset,u=e.type;return(0,n.default)({basePath:o.ServicePath.JOBS_SERVE,url:"/"+(u||"offline-reasoning")+"-job-specs/jobs",method:"get",serviceType:""+i,params:{runBeginAt:t,runEndAt:a,runStatus:s,jobSpecIdQuery:r,limit:d,offset:l}})},getJobStats:function(e,t){return(0,n.default)({basePath:o.ServicePath.JOBS_SERVE,url:"/offline-reasoning-job-specs/stats",method:"get",serviceType:""+t,paramsSerializer:function(e){return s.default.stringify(e,{indices:!1})},params:{jobSpecIdQuerys:[e]}})},getJobInfoById:function(e,t){return(0,n.default)({basePath:o.ServicePath.JOBS_SERVE,serviceType:""+t,url:"/jobs/"+e,method:"get"})},cancelJobByWaiting:function(e,t){return(0,n.default)({basePath:o.ServicePath.JOBS_SERVE,serviceType:""+t,url:"/jobs/"+e,method:"delete"})}}},"./src/redux/services/serviceCode.js":function(e,t,a){"use strict";t.__esModule=!0,t.exportVersionFile=t.checkCodeNameRepeat=t.deleteServiceCodeVersion=t.deleteServiceCode=t.updateServiceCodeInfo=t.saveServiceCodeInfo=t.getServiceCodeInfo=t.getServiceCodeList=t.getFtpDropDown=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js"),i=a("./src/utils/downLoadFile.js"),d=a("./src/utils/publicPath.js");var l=r.ServicePath.SIC_SERVICE;t.getFtpDropDown=function(){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/storages/operates/baseInfo",method:"get"})},t.getServiceCodeList=function(e){return(0,s.default)({basePath:l,url:"/resources",method:"get",params:e})},t.getServiceCodeInfo=function(e){return(0,s.default)({basePath:l,url:"/resources/"+e,method:"get"})},t.saveServiceCodeInfo=function(e){return(0,s.default)({basePath:l,url:"/resources",method:"post",data:e})},t.updateServiceCodeInfo=function(e){return(0,s.default)({basePath:l,url:"/resources/"+e.resourceId,method:"put",data:e})},t.deleteServiceCode=function(e,t){return(0,s.default)({basePath:l,url:"/resources/"+e,method:"delete",params:t})},t.deleteServiceCodeVersion=function(e){return(0,s.default)({basePath:l,url:"/resourcesVersion/"+e,method:"delete"})},t.checkCodeNameRepeat=function(e){return(0,s.default)({basePath:l,url:"/resources/checkResourcesName",method:"get",params:e})},t.exportVersionFile=function(e,t){(0,i.authDownLoadFile)((0,d.urlFormat)("/resources/"+e+"/versions/"+t+"/operations/export",r.ServicePath.SIC_SERVICE))}},"./src/redux/services/sysManager/annotationManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={submitMark:function(e){return(0,s.default)({url:"/markTasks/"+e+"/actions/mark",method:"put"})},approvalMark:function(e){return(0,s.default)({url:"/markTasks/"+e+"/actions/approval",method:"put"})},approvalFailMark:function(e){var t=e.markTaskId,a=e.opinion;return(0,s.default)({url:"/markTasks/"+t+"/actions/approvalFail",method:"put",data:{opinion:a}})},deleteAnnotation:function(e){return(0,s.default)({url:"/markTasks/"+e,method:"delete"})},getAnnotationList:function(e){var t=e.markTaskName,a=e.offset,n=e.limit;return(0,s.default)({url:"/markTasks",method:"get",params:{markTaskName:t,offset:a,limit:n}})},savePostAnnotation:function(e){return(0,s.default)({url:"/markTasks",method:"post",data:e})},updatePutAnnotation:function(e){return(0,s.default)({url:"/markTasks/"+e.markTaskId,method:"put",data:e})},getAnnotationInfo:function(e){var t=e.markTaskId;return(0,s.default)({url:"/markTasks/"+t,method:"get"})},publishAnnotationTask:function(e){var t=e.markTaskId,a=e.ftpId;return(0,s.default)({url:"/markTasks/"+t,method:"get",params:{ftpId:a}})}}},"./src/redux/services/sysManager/apiPermissionConfManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={bangdingClientToApi:function(e){var t=e.apiPermissionId,a=e.apiIds;return(0,s.default)({url:"/apiPermissionConf/"+t+"/actions/clientApps",method:"put",basePath:r.ServicePath.USER_CENTER_SERVICE,data:a})},apiPermissionConfLoad:function(){return(0,s.default)({url:"/apiPermissionConf/actions/loadApiPermissionConfs",method:"get",basePath:r.ServicePath.USER_CENTER_SERVICE})},apiPermissionConfList:function(e){var t=e.apiPermissionName,a=e.offset,n=e.limit,o=e.sortField;return(0,s.default)({url:"/apiPermissionConf",method:"get",basePath:r.ServicePath.USER_CENTER_SERVICE,params:{apiPermissionName:t,offset:a,limit:n,sortField:o}})},loadApiPermissionConfs:function(){return(0,s.default)({url:"/apiPermissionConf/actions/loadApiPermissionConfs",method:"get",basePath:r.ServicePath.USER_CENTER_SERVICE})},apiPermissionConfDelete:function(e){return(0,s.default)({url:"/apiPermissionConf/"+e,basePath:r.ServicePath.USER_CENTER_SERVICE,method:"delete"})},apiPermissionConfSubmitPost:function(e){return(0,s.default)({url:"/apiPermissionConf",method:"post",basePath:r.ServicePath.USER_CENTER_SERVICE,data:e})},apiPermissionConfSubmitPut:function(e){return(0,s.default)({url:"/apiPermissionConf/"+e.apiPermissionId,method:"put",basePath:r.ServicePath.USER_CENTER_SERVICE,data:e})},apiPermissionConfInfo:function(e){return(0,s.default)({url:"/apiPermissionConf/"+e,basePath:r.ServicePath.USER_CENTER_SERVICE,method:"get"})}}},"./src/redux/services/sysManager/apiUserManager.js":function(e,t,a){"use strict";t.__esModule=!0,t.getApiUsersDropDown=t.getApiUserSerPermit=t.deleteApiUser=t.updateApiUser=t.createApiUser=t.getApiUserInfo=t.updateApiUserStatus=t.getApiUsers=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.getApiUsers=function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/api-users/list",method:"get",params:e})},t.updateApiUserStatus=function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/api-users/"+e+"/operations/"+t,method:"patch"})},t.getApiUserInfo=function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/api-users/"+e,method:"get"})},t.createApiUser=function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/api-users",method:"post",data:e})},t.updateApiUser=function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/api-users/"+e,method:"patch",data:t})},t.deleteApiUser=function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/api-users/"+e,method:"delete"})},t.getApiUserSerPermit=function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/api-users/"+e+"/permit",method:"get"})},t.getApiUsersDropDown=function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/api-users/basic-list",method:"get",params:e})}},"./src/redux/services/sysManager/appClassification.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getDatasourceByApplicationId:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/"+e+"/datasource",method:"get"})},bindingDatasource:function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/"+e+"/operations/binding-datasource",method:"patch",data:t})},checkAppIdRepeat:function(e){var t=e.projectId,a=e.projectApplicationId,n=e.applicationId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/applications/operations/checkIdRepeat",method:"get",params:{projectId:t,projectApplicationId:a,applicationId:n}})},deleteAppClassification:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes/"+e,method:"delete"})},getAppClassificationList:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes",method:"get",params:e})},saveAppClassification:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes",method:"post",data:e})},updateAppClassification:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes/"+e.parentApplicationTypeId,method:"put",data:e})},getAppClassificationInfo:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes/"+e,method:"get"})},getNlpAppInfo:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/"+e,method:"get"})},copyNlpAppInfo:function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/nlpApplications/"+e+"/operations/copy-applications",method:"post",data:t})}}},"./src/redux/services/sysManager/appTopicBasesManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getDatasourceByApplicationId:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/"+e+"/datasource",method:"get"})},bindingDatasource:function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/"+e+"/operations/binding-datasource",method:"patch",data:t})},checkName:function(e){var t=e.id,a=e.name;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationType/checkNameRepeat",method:"get",params:{id:t,name:a}})},deleteAppTopicBases:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes/"+e,method:"delete"})},getAppTopicBasesList:function(e){var t=e.name,a=e.offset,n=e.limit;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes",method:"get",params:{name:t,offset:a,limit:n}})},savePostAppTopicBases:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes",method:"post",data:e})},updatePutAppTopicBases:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes/"+e.id,method:"put",data:e})},getAppTopicBasesInfo:function(e){var t=e.id;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/applications/applicationTypes/"+t,method:"get"})}}},"./src/redux/services/sysManager/clientAppManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={bangdingApiToclient:function(e){var t=e.clientappId,a=e.apiIds;return(0,s.default)({url:"/clientApp/"+t+"/actions/apiPermissionConfs",method:"put",basePath:r.ServicePath.USER_CENTER_SERVICE,data:a})},clientAppLoad:function(){return(0,s.default)({url:"/clientApp/actions/loadClientApps",method:"get",basePath:r.ServicePath.USER_CENTER_SERVICE})},clientAppList:function(e){var t=e.clientappName,a=e.offset,n=e.limit,o=e.sortField;return(0,s.default)({url:"/clientApp",method:"get",basePath:r.ServicePath.USER_CENTER_SERVICE,params:{clientappName:t,offset:a,limit:n,sortField:o}})},clientAppDelete:function(e){return(0,s.default)({url:"/clientApp/"+e,basePath:r.ServicePath.USER_CENTER_SERVICE,method:"delete"})},clientAppSubmitPost:function(e){return(0,s.default)({url:"/clientApp",method:"post",basePath:r.ServicePath.USER_CENTER_SERVICE,data:e})},clientAppSubmitPut:function(e){return(0,s.default)({url:"/clientApp/"+e.clientappId,method:"put",basePath:r.ServicePath.USER_CENTER_SERVICE,data:e})},clientAppInfo:function(e){return(0,s.default)({url:"/clientApp/"+e,basePath:r.ServicePath.USER_CENTER_SERVICE,method:"get"})}}},"./src/redux/services/sysManager/dataBasesManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={dataDacpList:function(){return(0,s.default)({url:"/dataBases/actions/getDacpDbs",method:"get"})},syncDacpDataAll:function(e){return(0,s.default)({url:"/dataBases/syncDacpData",method:"post",data:e})},syncDacpData:function(e){return(0,s.default)({url:"/dataBases/actions/syncDacpDbs",method:"post",data:e})},deleteDataBases:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/delete/"+e,method:"delete"})},getDataBasesList:function(e){var t=e.dbName;return(0,s.default)({url:"/dataBases/operates/selectPageList",method:"get",basePath:r.ServicePath.DSEM_SERVICE,params:{paramsJson:{dbInfo:{dbName:t}}}})},testConnectDataCode:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/dataBases/operates/testConnectDB",method:"post",data:e.config})},savePostDataBases:function(e){return(0,s.default)({url:"/dataBases",basePath:r.ServicePath.DSEM_SERVICE,method:"post",data:e})},updatePutDataBases:function(e){return(0,s.default)({url:"/dataBases/"+e.dbId,basePath:r.ServicePath.DSEM_SERVICE,method:"put",data:e})},getDataBasesInfo:function(e){var t=e.dbId;return(0,s.default)({url:"/dataBases/"+t,basePath:r.ServicePath.DSEM_SERVICE,method:"get"})},checkoutNameRepeat:function(e){return(0,s.default)({url:"/dataBases/operates/valiName",basePath:r.ServicePath.DSEM_SERVICE,method:"get",params:e})}}},"./src/redux/services/sysManager/devOpsMonitorManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./node_modules/babel-runtime/helpers/extends.js")),o=r(a("./src/utils/request.js")),s=a("./src/utils/constants.js");function r(e){return e&&e.__esModule?e:{default:e}}t.default={getPromethus:function(e){return(0,o.default)({url:"/promethus/overview",basePath:s.ServicePath.MC_SERVICE,method:"get",params:{type:e}})},getResourceInfo:function(e){return(0,o.default)({url:"/promethus/detail",basePath:s.ServicePath.MC_SERVICE,method:"get",params:{type:e}})},getOverviewInfo:function(e){return(0,o.default)({url:"/platform/statistics/svc-invoke-summary",basePath:s.ServicePath.MC_SERVICE,method:"get",params:e})},getAllTopTen:function(e,t){return(0,o.default)({url:""+e.url,basePath:s.ServicePath.MC_SERVICE,method:"get",params:t?(0,n.default)({},e.params,{projectId:t}):e.params})},getFluctuate:function(e){return(0,o.default)({url:"/platform/statistics/"+e+"/wave",basePath:s.ServicePath.MC_SERVICE,method:"get"})},getProjectList:function(e){return(0,o.default)({url:"/projects",basePath:s.ServicePath.MC_SERVICE,method:"get",params:e})},getServicesList:function(e){return(0,o.default)({url:"/services",basePath:s.ServicePath.MC_SERVICE,method:"get",params:e})}}},"./src/redux/services/sysManager/dispatchTaskManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n=r(a("./src/utils/request.js")),o=a("./src/utils/constants.js"),s=r(a("./node_modules/qs/lib/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}t.default={getDispatchTaskList:function(e){return(0,n.default)({url:"/dispatchTasks",basePath:o.ServicePath.SC_SERVICE,method:"get",paramsSerializer:function(e){return s.default.stringify(e,{indices:!1})},params:e})},createDispatchTask:function(e){return(0,n.default)({url:"/dispatchTasks",basePath:o.ServicePath.SC_SERVICE,method:"post",data:e})},updateDispatchTask:function(e){return(0,n.default)({url:"/dispatchTasks/"+e.dispatchTaskId,basePath:o.ServicePath.SC_SERVICE,method:"patch",data:e})},getDispatchTaskInfo:function(e){return(0,n.default)({url:"/dispatchTasks/"+e,basePath:o.ServicePath.SC_SERVICE,method:"get"})},deleteDispatchTaskInfo:function(e){return(0,n.default)({basePath:o.ServicePath.SC_SERVICE,url:"/dispatchTasks/"+e,method:"delete"})},onlineDispatchTask:function(e){return(0,n.default)({url:"/dispatchTasks/"+e+"/operations/online",basePath:o.ServicePath.SC_SERVICE,method:"patch"})},offlineDispatchTask:function(e){return(0,n.default)({url:"/dispatchTasks/"+e+"/operations/offline",basePath:o.ServicePath.SC_SERVICE,method:"patch"})}}},"./src/redux/services/sysManager/flinkClusterService.js":function(e,t,a){"use strict";t.__esModule=!0,t.checkConnect=t.checkNameRepeat=t.deleteFlinkCluster=t.updateFlinkCluster=t.getFlinkClusterInfo=t.addFlinkCluster=t.getFlinkClusterList=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=a("./src/utils/constants.js").ServicePath.DSEM_SERVICE;t.getFlinkClusterList=function(e){return(0,s.default)({basePath:r,url:"/flink",method:"get",params:e})},t.addFlinkCluster=function(e){return(0,s.default)({basePath:r,url:"/flink",method:"post",data:e})},t.getFlinkClusterInfo=function(e){return(0,s.default)({basePath:r,url:"/flink/"+e,method:"get"})},t.updateFlinkCluster=function(e,t){return(0,s.default)({basePath:r,url:"/flink/"+t,method:"patch",data:e})},t.deleteFlinkCluster=function(e,t){return(0,s.default)({basePath:r,url:"/flink/"+e,method:"delete",data:t})},t.checkNameRepeat=function(e){return(0,s.default)({basePath:r,url:"/flink/checkRepeat",method:"get",params:e})},t.checkConnect=function(e){return(0,s.default)({basePath:r,url:"/flink/testConnect",method:"post",data:e})}},"./src/redux/services/sysManager/ftpBasesManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getNfsPreview:function(e,t){return(0,s.default)({url:"/storages/"+e+"/operates/showCurrList",basePath:r.ServicePath.DSEM_SERVICE,method:"get",params:{id:e,storagePath:t}})},getFtpBasesArray:function(){return(0,s.default)({url:"/storages/operates/baseInfo",basePath:r.ServicePath.DSEM_SERVICE,method:"get"})},getFtpFileDatas:function(e){var t=e.ftpId,a=e.ftpPath;return(0,s.default)({url:"/storages/"+t+"/operates/showCurrList",basePath:r.ServicePath.DSEM_SERVICE,method:"get",params:{storagePath:a}})},getFtpBasesList:function(e){var t=e.storageName,a=e.offset,n=e.limit;return(0,s.default)({url:"/storages/operates/selectPageList",method:"get",basePath:r.ServicePath.DSEM_SERVICE,params:{paramsJson:{storageInfo:{storageName:t},page:{pageNum:a,pageSize:n}}}})},testConnectFtpCode:function(e){return(0,s.default)({url:"/storages/operates/test",method:"post",basePath:r.ServicePath.DSEM_SERVICE,data:e})},savePostFtpBases:function(e){return(0,s.default)({url:"/storages",method:"post",basePath:r.ServicePath.DSEM_SERVICE,data:e})},updatePutFtpBases:function(e){return(0,s.default)({url:"/storages/"+e.id,method:"put",basePath:r.ServicePath.DSEM_SERVICE,data:e})},getFtpBasesInfo:function(e){var t=e.id;return(0,s.default)({url:"/storages/"+t,basePath:r.ServicePath.DSEM_SERVICE,method:"get"})},deleteFtpBases:function(e){return(0,s.default)({url:"/storages/"+e,basePath:r.ServicePath.DSEM_SERVICE,method:"delete"})},checkStorageInfo:function(e){return(0,s.default)({url:"/storages/operates/checkStorageInfo",basePath:r.ServicePath.DSEM_SERVICE,method:"post",data:e})},checkNameRepeat:function(e){return(0,s.default)({url:"/storages/operates/valiName",basePath:r.ServicePath.DSEM_SERVICE,method:"get",params:e})}}},"./src/redux/services/sysManager/gitManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getGitByUserId:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/gitLab/users/"+e,method:"get"})},saveGit:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/gitLab/operations/binding-user",method:"post",data:e})},updateGit:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/gitLab/operations/binding-user",method:"patch",data:e})},testGitLink:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/gitLab/users/operations/test-password",method:"post",data:e})}}},"./src/redux/services/sysManager/interfaceManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={bindingApiGroupData:function(e){var t=e.openApiGroupId,a=e.apis;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApiGroup/"+t+"/actions/bindingOpenApis",method:"put",data:a})},loadOpenApiTree:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApi/actions/loadOpenApiTree",method:"get"})},getOpenApiArrayList:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApiGroup/"+e+"/actions/preBindingOpenApis",method:"get"})},getOpenApiList:function(e){var t=e.apiName,a=e.isOpen,n=e.status,o=e.offset,i=e.limit,d=e.groupId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApi/actions/loadOpenApiGroupRef",method:"get",params:{apiName:t,isOpen:a,status:n,groupId:d,offset:o,limit:i}})},getOpenApiInfo:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApi/"+e,method:"get"})},saveOpenApi:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApi",method:"post",data:e})},updateOpenApi:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApi/"+e.apiId,method:"put",data:e})},deleteOpenApi:function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"openApiGroup/"+t+"/actions/unbindingOpenApis",method:"delete",data:e})},checkOpenApiNameRepeat:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"openApi/actions/checkRepeat",method:"get",params:{openApiName:e}})},getOpenApiGroupData:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApiGroup",method:"get"})},saveOpenApiGroup:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApiGroup",method:"post",data:e})},updateOpenApiGroup:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApiGroup/"+e.groupId,method:"put",data:e})},deleteOpenApiGroup:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApiGroup/"+e,method:"delete"})},checkOpenApiGroupNameRepeat:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/openApiGroup/actions/checkRepeat",method:"get",params:{openApiGroupName:e}})}}},"./src/redux/services/sysManager/kafkaService.js":function(e,t,a){"use strict";t.__esModule=!0,t.checkNameRepeat=t.checkConnect=t.deleteKafka=t.updateKafka=t.getKafkaInfo=t.addKafka=t.getKafkaList=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=a("./src/utils/constants.js").ServicePath.DSEM_SERVICE;t.getKafkaList=function(e){return(0,s.default)({basePath:r,url:"/kafka",method:"get",params:e})},t.addKafka=function(e){return(0,s.default)({basePath:r,url:"/kafka",method:"post",data:e})},t.getKafkaInfo=function(e){return(0,s.default)({basePath:r,url:"/kafka/"+e,method:"get"})},t.updateKafka=function(e,t){return(0,s.default)({basePath:r,url:"/kafka/"+t,method:"patch",data:e})},t.deleteKafka=function(e){return(0,s.default)({basePath:r,url:"/kafka/"+e,method:"delete"})},t.checkConnect=function(e){return(0,s.default)({basePath:r,url:"/kafka/testConnect",method:"post",data:e})},t.checkNameRepeat=function(e){return(0,s.default)({basePath:r,url:"/kafka/checkRepeat",method:"get",params:e})}},"./src/redux/services/sysManager/labelsManage.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={checkName:function(e){var t=e.labelId,a=e.labelName;return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/labels/operations/checkName",method:"get",params:{labelId:t,labelName:a}})},deleteLabel:function(e){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/labels/"+e,method:"delete"})},getLabelsList:function(e){var t=e.labelName;return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/labels",method:"get",params:{labelName:t}})},saveLabel:function(e){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/labels",method:"post",data:e})},updateLabel:function(e){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/labels/"+e.labelId,method:"PATCH",data:e})},getLabelInfo:function(e){var t=e.labelId;return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/labels/"+t,method:"get"})}}},"./src/redux/services/sysManager/logsManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getLogsList:function(e){return(0,s.default)({basePath:r.ServicePath.MC_SERVICE,url:"/operateLogs",method:"get",params:e})},getTrainTaskList:function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/services/training/page",method:"get",params:e})}}},"./src/redux/services/sysManager/menuManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={deleteMenu:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/modules/"+e,method:"delete"})},getMenuInfo:function(e){return(0,s.default)({url:"/modules/"+e,basePath:r.ServicePath.AUTH_SERVICE,method:"get"})},editPostMenu:function(e,t,a){return(0,s.default)({url:"add"===t?"/modules":"/modules/"+a,basePath:r.ServicePath.AUTH_SERVICE,method:"add"===t?"post":"patch",data:e})},getMenuTableData:function(){return(0,s.default)({url:"/list",method:"get",basePath:r.ServicePath.AUTH_SERVICE})},getMenuList:function(){return(0,s.default)({method:"get",basePath:r.ServicePath.AUTH_SERVICE})}}},"./src/redux/services/sysManager/netDiskManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getNetDiskList:function(e){var t=e.name;return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/netDisk",method:"get",params:{name:t}})},getNetDiskInfo:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/netDisk/"+e,method:"get"})},saveNetDiskInfo:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/netDisk",method:"post",data:e})},updateNetDiskInfo:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/netDisk/"+e.id,method:"put",data:e})},deleteNetDisk:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/netDisk/"+e,method:"delete"})},batchDeleteNetDisk:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/netDisk",method:"delete",data:e})}}},"./src/redux/services/sysManager/noticeMessage.js":function(e,t,a){"use strict";t.__esModule=!0,t.setReadNotice=t.getNoticeMessage=void 0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.getNoticeMessage=function(e){return(0,s.default)({basePath:r.ServicePath.AUTHC_SERVICE,url:"/users/messages",method:"get",params:e})},t.setReadNotice=function(e){return(0,s.default)({basePath:r.ServicePath.AUTHC_SERVICE,url:"/users/messages",method:"patch",data:e})}},"./src/redux/services/sysManager/obsManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={deleteObs:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/obs/"+e,method:"delete"})},getObsList:function(e){var t=e.dbName,a=e.offset,n=e.limit;return(0,s.default)({url:"/obs/operates/selectPageList",method:"get",basePath:r.ServicePath.DSEM_SERVICE,params:{paramsJson:{dbInfo:{dbName:t},page:{pageNum:a,pageSize:n}}}})},testConnectObs:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/obs/operates/testConnect",method:"post",data:e.config})},editPostObs:function(e,t){return(0,s.default)({url:"create"===t?"/obs":"/obs/"+e.dbId,basePath:r.ServicePath.DSEM_SERVICE,method:"create"===t?"post":"put",data:e})},getObsInfo:function(e){return(0,s.default)({url:"/obs/"+e,basePath:r.ServicePath.DSEM_SERVICE,method:"get"})},checkNameRepeat:function(e){return(0,s.default)({url:"/obs/operates/valiName",basePath:r.ServicePath.DSEM_SERVICE,method:"get",params:e})}}},"./src/redux/services/sysManager/permissionManage.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={delResourcesByUsers:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/domains/"+e.domainId+"/resources/"+e.resourceId+"/operations/permit",method:"delete",data:e.data})},getPermitScope:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/domains/"+e+"/resources/"+t+"/permit-scope",method:"get"})},saveResourceByUsers:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/domains/"+e.domainId+"/resources/"+e.resourceId+"/operations/permit",method:"post",data:{projectId:e.projectId,userIds:e.userIds,groupIds:e.groupIds}})},updateResourcesById:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/"+a+"/"+t+"/operations/authorization",method:"patch",data:e})},saveResourcesById:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/"+a+"/"+e+"/operations/authorization",method:"post",data:t})},getResourcesList:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/"+a+"/"+e+"/domains/"+t+"/resources/permit-scopes",method:"get"})},delResourcesById:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/"+a+"/"+e+"/operations/authorization",method:"delete",data:t})},getResources:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/"+a+"/"+e+"/domains/"+t+"/resources",method:"get"})},getResourcesType:function(){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/domains",method:"get"})},getResourcesByMenuId:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/modules/"+e+"/resources/operations",method:"get"})},getMenuTreeData:function(){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/users/modules",method:"get"})},getOperateByMenuId:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"roles/"+t+"/modules/"+e+"/resources/operations",method:"get"})},saveOperation:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/roles/"+t+"/operations/authorization",method:"post",data:e})}}},"./src/redux/services/sysManager/platFormManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={recognition:function(e){var t=e.config,a=e.dispatch;return(0,s.default)({basePath:r.ServicePath.APP_SCENE,url:"/sceneDemoConfigs/"+t.configId+"/operations/predict",dispatch:a,method:"post",data:{apiDefinition:t.apiDefinition,params:t.params}})},getPictureRecognition:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/onlineApps/predict",method:"post",data:JSON.stringify(e)})},getPictureRegister:function(e){return(0,s.default)({basePath:r.ServicePath.DSEM_SERVICE,url:"/onlineApps/feature",method:"post",data:JSON.stringify(e)})},getPlatFormFeaturesData:function(){return(0,s.default)({basePath:r.ServicePath.MODELING_SERVICE,url:"/platform/features",method:"get"})},getPlatFormFeaturesConfig:function(e){var t=e.featureId;return(0,s.default)({basePath:r.ServicePath.MODELING_SERVICE,url:"/platform/features/"+t,method:"get"})},getPlatFormSolutionsData:function(){return(0,s.default)({basePath:r.ServicePath.MODELING_SERVICE,url:"/platform/solutions",method:"get"})}}},"./src/redux/services/sysManager/preTasksManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={deletePreTask:function(e){return(0,s.default)({basePath:r.ServicePath.DATA_PRE,url:"/data-pre-tasks/"+e,method:"delete"})},getPreTaskList:function(e){return(0,s.default)({url:"/data-pre-tasks",method:"get",basePath:r.ServicePath.DATA_PRE,params:e})},saveOrUpdatePreTask:function(e,t){return(0,s.default)({url:"create"===t?"/data-pre-tasks":"/data-pre-tasks/"+e.taskId,basePath:r.ServicePath.DATA_PRE,method:"create"===t?"post":"patch",data:e})},getPreTaskInfo:function(e){return(0,s.default)({url:"/data-pre-tasks/"+e,basePath:r.ServicePath.DATA_PRE,method:"get"})},checkoutNameRepeat:function(e){return(0,s.default)({url:"/data-pre-tasks/operations/check-name-repeat",basePath:r.ServicePath.DATA_PRE,method:"get",params:e})},stopPreTask:function(e){return(0,s.default)({url:"/data-pre-tasks/"+e+"/operations/stop",basePath:r.ServicePath.DATA_PRE,method:"patch"})},publishPreTask:function(e){return(0,s.default)({url:"/data-pre-results/"+e+"/operations/publish",basePath:r.ServicePath.DATA_PRE,method:"post"})},getDataPreTaskResults:function(e){return(0,s.default)({url:"/data-pre-task-results/"+e.taskId,basePath:r.ServicePath.DATA_PRE,method:"get",params:e})}}},"./src/redux/services/sysManager/projectManage.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js"),i=a("./src/utils/authPermit.js");t.default={expandResource:function(e,t){for(var a=_.cloneDeep(e),n=0;a&&n<a.length;n++){for(var o=[],i=0;a[n].resQuotaConf&&i<a[n].resQuotaConf.gpu.length;i++)0!==a[n].resQuotaConf.gpu[i].gpuNumber&&o.push(a[n].resQuotaConf.gpu[i]);a[n].resQuotaConf.gpu=o}return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+t+"/resources",method:"put",data:a})},getTenantsResource:function(e){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/tenants/"+e+"/available-quota",method:"get"})},getAllGpu:function(){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/tenants/"+(0,i.getUser)().tenantId+"/all-gpu",method:"get"})},getProjectIdProduce:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+e+"/projectId",method:"get"})},getProjectApisList:function(e){var t=e.appId;return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/apis",method:"get",params:{appId:t}})},approveProject:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/approveSingles",method:"post",data:e})},getApproveSinglesList:function(e){var t=e.projectName,a=e.approveStates,n=e.sortField,o=e.applyType;return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/approveSingles/resource",method:"get",params:{search:t,approveStates:a,sortBy:n,applyType:o||null}})},getProjectApproveList:function(e){var t=e.projectName,a=e.approveStates,n=e.sortField,o=e.applyType;return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/approveSingles",method:"get",params:{search:t,approveStates:a,sortBy:n,applyType:o||null}})},getProjectApplyInfo:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/applySingles/"+e,method:"get"})},editProjectApply:function(e,t){return(0,s.default)({url:"create"===t||"apply"===t?"/applySingles":"/applySingles/"+e.applyId,basePath:r.ServicePath.AUTH_SERVICE,method:"create"===t||"apply"===t?"post":"patch",data:e})},deleteProjectApply:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/applySingles/"+e,method:"delete"})},getProjectApplyList:function(e){var t=e.projectName,a=e.approveStates,n=e.applyTypes;return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/applySingles",method:"get",params:{search:t,approveStates:a,applyTypes:n}})},getApplyProjectCurrentUser:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/apply-project",method:"get",params:e})},getApplicationsDropDown:function(){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/applications",method:"get"})},getApplicationsInfo:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+t+"/applications/"+e,method:"get"})},deleteApplication:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+t+"/applications/"+e,method:"delete"})},deleteApplication2:function(e,t){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/repositories/deleteApplications/"+t+"/"+e,method:"post"})},getDeleteApplicationMessage:function(e,t){return(0,s.default)({basePath:r.ServicePath.REPO_SERVICE,url:"/repositories/getDeleteApplicationMessage/"+t+"/"+e,method:"get"})},updateApplication:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+t.projectId+"/applications/"+e.projectApplicationId,method:"patch",data:e})},editApplication:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"create"===a?"/projects/"+t.projectId+"/applications":"/projects/"+t.projectId+"/applications/"+e.projectApplicationId,method:"create"===a?"post":"patch",data:e})},getApplicationList:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+e+"/applications",method:"get"})},getModelAvailableQuotaByProjectId:function(e){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/projects/"+e+"/available-quota",method:"get"})},getModelAvailableQuota:function(e){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/projects/"+e+"/available-foot-quota",method:"get"})},saveProjectUser:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+t+"/operations/binding-members",method:"post",data:e})},updateProjectRoles:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+t+"/operations/change-members-roles",method:"patch",data:e})},saveProject:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects?apply="+a,method:"post",data:e})},updateProject:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+e.projectId,method:"patch",data:e})},deleteProjectUser:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+e.projectId+"/operations/unbinding-members/",method:"delete",data:{projectId:e.projectId,userIds:e.userIds}})},getProjectUserList:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+e+"/members",method:"get",params:{projectId:e,userName:t,userId:t}})},getProjectList:function(e){var t=e.projectName,a=e.sortType,n=e.projectPid,o=e.projectType,i=e.orgId;return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects",method:"get",params:{projectName:t,sortBy:a,projectPid:n,projectType:o,orgId:i}})},getUserProjectList:function(){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/tenants/projects",method:"get"})},getSummaryProjectList:function(){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/summary-list",method:"get"})},deleteProjectInfo:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+e,method:"delete"})},getProjectInfo:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/"+e,method:"get"})},getIngressInfo:function(){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/routeIngress/",method:"get"})},checkAccessPathRepeat:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects/operations/check-path-repeat",method:"get",params:e})},getProjectAvailableQuota:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"current";return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/projects/"+t+"/available-quota",method:"get",params:{quotaType:e}})},getProjectGpuTypes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"current";return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/projects/"+t+"/all-gpu",method:"get",params:{quotaTypes:e}})},getAllProjects:function(){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/all-projects",method:"get"})},memoryCheck:function(e){return(0,s.default)({basePath:r.ServicePath.SIC_SERVICE,url:"/resourcesCheck",method:"post",data:e})}}},"./src/redux/services/sysManager/quotaTenantManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getSysQuotaTenantDown:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/tenants/actions/dropDown",method:"get"})},updateTenantUser:function(e){var t=e.quotaTenantId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/quotaTenant/"+t+"/users",method:"put",data:a})},updateQuotaTenantInfo:function(e){var t=e.quotaTenantId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/quotaTenant/"+t,method:"put",data:a})},getQuotaTenantInfo:function(e){var t=e.quotaTenantId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/quotaTenant/"+t,method:"get"})},deleteQuotaTenant:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/quotaTenant/"+e,method:"delete"})},getQuotaTenantList:function(e){var t=e.quotaTenantName,a=e.sortField,n=e.offset,o=e.limit;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/quotaTenant",method:"get",params:{quotaTenantName:t,sortField:a,offset:n,limit:o}})}}},"./src/redux/services/sysManager/resTransfer.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getOwnerResList:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/resDomains/actions/getOwnerResList",method:"get",params:{resDomain:e}})},saveTransfer:function(e){var t=e.resDomain,a=e.resIds,n=e.userIds,o=e.groupIds;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/resDomains/actions/saveTransfer",method:"put",data:{resDomain:t,resIds:a,userIds:n,groupIds:o}})},removeTransfer:function(e){var t=e.resDomain,a=e.resIds,n=e.userIds,o=e.groupIds;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/resDomains/actions/removeTransfer",method:"put",data:{resDomain:t,resIds:a,userIds:n,groupIds:o}})}}},"./src/redux/services/sysManager/resourceRecovery.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=a("./src/utils/constants.js").ServicePath.RESOURCE_RECOVERY;t.default={getResourceRecoveryList:function(e){return(0,s.default)({basePath:r,url:"/tp/white-list",method:"get",params:e})},saveResourceRecovery:function(e){return(0,s.default)({basePath:r,url:"/tp/white-list",method:"post",data:e})},updateResourceRecovery:function(e){return(0,s.default)({basePath:r,url:"/tp/white-list",method:"put",data:e})},deleteResourceRecovery:function(e){return(0,s.default)({basePath:r,url:"/tp/white-list/"+e,method:"delete"})}}},"./src/redux/services/sysManager/rolesManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getRolesByProjectId:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/"+e+"/roles",method:"get"})},checkRoleName:function(e){var t=e.roleId,a=e.roleName;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/roles/actions/checkRepeat",method:"get",params:{roleId:t,roleName:a}})},updateRolesPermissions:function(e){var t=e.roleId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/roles/"+t+"/permissions",method:"patch",data:a})},updateRolesGroups:function(e){var t=e.roleId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/roles/"+t+"/groups",method:"patch",data:a})},updateRolesUser:function(e){var t=e.roleId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/roles/"+t+"/users",method:"patch",data:a})},loadRolesList:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/tenants/_current/roles/lists/simple-list",method:"get"})},deleteRoles:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/roles/"+e,method:"delete"})},getRolesList:function(e){var t=e.roleName,a=e.sortField,n=e.offset,o=e.limit;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/tenants/_current/roles",method:"get",params:{roleName:t,sortField:a,offset:n,limit:o}})},savePostRoles:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/roles",method:"post",data:e})},updatePutRoles:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/roles/"+e.roleId,method:"patch",data:e})},getRolesInfo:function(e){var t=e.roleId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/roles/"+t,method:"get"})}}},"./src/redux/services/sysManager/sceneDemoManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={faceSignList:function(e){return(0,s.default)({url:"/sceneDemoConfigs/faceConfigs",basePath:r.ServicePath.APP_SCENE,method:"get",params:e})},faceSignDelete:function(e){return(0,s.default)({basePath:r.ServicePath.APP_SCENE,url:"/sceneDemoConfigs/faceConfigs/"+e,method:"delete"})},faceSignSubmitPost:function(e){return(0,s.default)({basePath:r.ServicePath.APP_SCENE,url:"/sceneDemoConfigs/faceConfigs",method:"post",data:e})},sceneDemoList:function(e){var t=e.configTitle,a=e.offset,n=e.limit,o=e.sortBy;return(0,s.default)({url:"/sceneDemoConfigs",basePath:r.ServicePath.APP_SCENE,method:"get",params:{search:t,offset:a,limit:n,sortBy:o}})},sceneDemoDelete:function(e){return(0,s.default)({basePath:r.ServicePath.APP_SCENE,url:"/sceneDemoConfigs/"+e,method:"delete"})},sceneDemoSubmitPost:function(e){return(0,s.default)({basePath:r.ServicePath.APP_SCENE,url:"/sceneDemoConfigs",method:"post",data:e})},sceneDemoSubmitPut:function(e){return(0,s.default)({basePath:r.ServicePath.APP_SCENE,url:"/sceneDemoConfigs/"+e.configId,method:"patch",data:e})},sceneDemoInfo:function(e){return(0,s.default)({basePath:r.ServicePath.APP_SCENE,url:"/sceneDemoConfigs/"+e,method:"get"})}}},"./src/redux/services/sysManager/switchManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={getSwitchOptions:function(){return(0,s.default)({url:"/configModules/options",method:"get"})},getSwitchModulesData:function(){return(0,s.default)({url:"/configModules",method:"get"})},getModuleOptions:function(e){return(0,s.default)({url:"/configModules/"+e+"/options",method:"get"})},updateModuleOption:function(e){var t=e.moduleId,a=e.optionId,n=e.configValue;return(0,s.default)({url:"/configModules/"+t+"/options",method:"put",data:{configValue:n,optionId:a}})}}},"./src/redux/services/sysManager/sysManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={bangdingMenuOrRole:function(e,t){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/modules/"+e+"/moduleInfo",method:"post",data:t})},loadMenuTreeByRoleId:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/modules/"+e+"/moduleInfo",method:"get"})},loadAllMenuTree:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/modules/allMenu",method:"get"})},loadMenuTree:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/modules/menuTree",method:"get"})},loadResDomainsList:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/resDomains/actions/loadResDomains",method:"get"})},loadResDomainsResourcesList:function(e){var t=e.domainId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/resDomains/"+t+"/resources",method:"get"})},loadResPermissionList:function(e){var t=e.moduleId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/permissions/actions/loadPermissions",method:"get",params:{moduleId:t}})},loadModulesList:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/modules/actions/loadModules",method:"get"})},getSysHelpList:function(){return(0,s.default)({url:"/sysSupports",method:"get"})},savePostContactUser:function(e){return(0,s.default)({url:"/sysSupports",method:"post",data:e})},updatePutContactUser:function(e){return(0,s.default)({url:"/sysSupports/"+e.confCode,method:"put",data:e})},getContactUserInfo:function(e){var t=e.confCode;return(0,s.default)({url:"/sysSupports/"+t,method:"get"})}}},"./src/redux/services/sysManager/tagGroupsManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={tagGroupsDelete:function(e){return(0,s.default)({url:"/tagGroups/"+e,method:"delete"})},tagGroupsListByMarkType:function(e){return(0,s.default)({url:"/tagGroups/markType/"+e,method:"get"})},tagGroupsList:function(e){var t=e.tagGroupName,a=e.offset,n=e.limit,o=e.sortField;return(0,s.default)({url:"/tagGroups",method:"get",params:{tagGroupName:t,offset:a,limit:n,sortField:o}})},tagGroupsSubmitPost:function(e){return(0,s.default)({url:"/tagGroups",method:"post",data:e})},tagGroupsSubmitPut:function(e){return(0,s.default)({url:"/tagGroups/"+e.tagGroupId,method:"put",data:e})},tagGroupsInfo:function(e){return(0,s.default)({url:"/tagGroups/"+e,method:"get"})}}},"./src/redux/services/sysManager/taskManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={updateStatus:function(e){return(0,s.default)({url:"/data-dev-tasks/mark-tasks/"+e.taskId+"/operations/start-mark",basePath:r.ServicePath.SC_SERVICE,method:"patch"})},selectPublishResult:function(e){return(0,s.default)({url:"/data-dev-tasks/mark-tasks/"+e.taskId+"/operations/get-mark-result",basePath:r.ServicePath.SC_SERVICE,method:"get"})},savePublishResult:function(e){return(0,s.default)({url:"/data-dev-tasks/mark-tasks/"+e.taskId+"/operations/publish",basePath:r.ServicePath.SC_SERVICE,method:"post"})},deleteAnnotationTask:function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/data-dev-tasks/"+(11===t?"db":"mark")+"-tasks/"+e,method:"delete"})},getAnnotationTaskList:function(e){var t=e.search,a=e.sortBy,n=e.offset,o=e.limit;return(0,s.default)({url:"/data-dev-tasks",method:"get",basePath:r.ServicePath.SC_SERVICE,params:{search:t,sortBy:a,offset:n,limit:o}})},editPostAnnotation:function(e,t){return(0,s.default)({url:"create"===t?"/data-dev-tasks/"+(11===e.taskScene?"db":"mark")+"-tasks":"/data-dev-tasks/"+(11===e.taskScene?"db":"mark")+"-tasks/"+e.taskId,basePath:r.ServicePath.SC_SERVICE,method:"create"===t?"post":"patch",data:e})},getAnnotationInfo:function(e,t){return(0,s.default)({url:"/data-dev-tasks/"+(11===t?"db-tasks":"mark-tasks")+"/"+e,basePath:r.ServicePath.SC_SERVICE,method:"get"})}}},"./src/redux/services/sysManager/tenantManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getRoutesList:function(){return(0,s.default)({basePath:r.ServicePath.APIS_SERVICE,url:"/routes",method:"get",params:{serviceType:1}})},getSystemQuota:function(){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/platforms/available-quota",method:"get"})},getSystemGpuInfo:function(){return(0,s.default)({basePath:r.ServicePath.RES_SERVICE,url:"/platforms/all-gpu",method:"get"})},getTenantList:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/tenants",method:"get",params:e})},createOrUpdateTenant:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/tenants"+(t?"/"+t:""),method:t?"patch":"post",data:e})},deleteTenant:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/tenants/"+e,method:"delete"})},updateTenantStatus:function(e,t){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/tenants/"+e+"/"+t,method:"delete"})},getTenantInfo:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/tenants/"+e,method:"get"})},getTenantProjects:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/projects",method:"get",params:e})},getTenantUsers:function(e){return(0,s.default)({basePath:r.ServicePath.AUTH_SERVICE,url:"/tenants/users",method:"get",params:e})}}},"./src/redux/services/sysManager/userGroupsManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getUserGroupByProjectId:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/"+e+"/user-groups",method:"get"})},checkGroupsName:function(e){var t=e.groupId,a=e.groupName;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups/actions/checkRepeat",method:"get",params:{groupId:t,groupName:a}})},updateGroupsRoles:function(e){var t=e.groupId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups/"+t+"/roles",method:"patch",data:a})},updateGroupsUser:function(e){var t=e.groupId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups/"+t+"/users",method:"patch",data:a})},loadUserGroupsList:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/tenant/user-groups",method:"get"})},getResourceByUserGroups:function(e){var t=e.groupId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups/"+t+"/resources",method:"get"})},updateUserGroupsResource:function(e){var t=e.groupId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups/"+t+"/resources",method:"put",data:a})},deleteUserGroups:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups/"+e,method:"delete"})},getUserGroupsList:function(e){var t=e.groupName,a=e.sortField,n=e.offset,o=e.limit;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups",method:"get",params:{groupName:t,sortField:a,offset:n,limit:o}})},savePostUserGroups:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups",method:"post",data:e})},updatePutUserGroups:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups/"+e.groupId,method:"patch",data:e})},getUserGroupsInfo:function(e){var t=e.groupId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user-groups/"+t,method:"get"})}}},"./src/redux/services/sysManager/userManager.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getSysOrgList:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/organizations",method:"get"})},initializePws:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+e+"/operations/reset-password",method:"patch"})},getUserByProjectId:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/"+e+"/users",method:"get"})},getUsersByTenant:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/summary-list",method:"get",params:e})},registerUser:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/actions/register",method:"post",data:e})},deleteUser:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+e,method:"delete"})},getUserList:function(e){var t=e.userName,a=e.userType,n=e.sortField,o=e.offset,i=e.limit;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users",method:"get",params:{userName:t,userType:a,sortField:n,offset:o,limit:i}})},savePostUser:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users",method:"post",data:e})},updatePutUser:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+e.userId,method:"patch",data:e})},unfastenUser:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+e+"/operations/unlock",method:"patch"})},updatePawData:function(e){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+e.userId+"/operations/change-password",method:"patch",data:{oldPwd:e.oldPwd,newPwd:e.newPwd}})},getUserInfo:function(e){var t=e.userId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+t,method:"get"})},updateUserGroups:function(e){var t=e.userId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+t+"/groups",method:"patch",data:a})},updateUserRoles:function(e){var t=e.userId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+t+"/roles",method:"patch",data:a})},updateUserResource:function(e){var t=e.userId,a=e.config;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+t+"/resources",method:"put",data:a})},getUserGroupsByUser:function(e){var t=e.userId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+t+"/groups",method:"get"})},getRolesByUser:function(e){var t=e.userId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+t+"/roles",method:"get"})},getResourceByUser:function(e){var t=e.userId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/"+t+"/resources",method:"get"})},checkUserName:function(e){var t=e.userId;return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/actions/checkRepeat",method:"get",params:{userId:t}})},getSysPermits:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/user/login-info",method:"get"})},loadUserList:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/summary-list",method:"get"})},getUserContexts:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/users/current/contexts",method:"get"})},getUserJoinedProject:function(){return(0,s.default)({basePath:r.ServicePath.USER_CENTER_SERVICE,url:"/projects/list/joined-list",method:"get"})}}},"./src/redux/services/trainReport.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={getModelReportBasicInfo:function(e){var t=e.modelId,a=e.taskId,n=e.arithId;return(0,s.default)({url:"/models/"+t+"/"+a+"/"+n,method:"get"})},getModelReportDatas:function(e){var t=e.taskId,a=e.arithId;return(0,s.default)({url:"/trainTasks/"+t+"/ariths/"+a+"/report",method:"get"})}}},"./src/redux/services/trainResult.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default={setBestModel:function(e){var t=e.modelId,a=e.taskId,n=e.arithId;return(0,s.default)({url:"/models/"+t+"/bestArithmetic",method:"put",data:{modelId:t,taskId:a,arithmeticId:n}})},getBestModel:function(e){var t=e.modelId;return(0,s.default)({url:"/models/"+t+"/bestArithmetic",method:"get"})},getModelTrainResult:function(e){var t=e.modelId;return(0,s.default)({url:"/models/"+t+"/result",method:"get"})},getModelTrainProcess:function(e){var t=e.modelId,a=e._SYNC_INTERVAL;return(0,s.default)({url:"/models/"+t+"/process",sync:a,method:"get"})},getModelInfoByModelId:function(e){var t=e.modelId;return(0,s.default)({url:"/models/"+t+"/modelInfo",method:"get"})},getModelTrainLog:function(e){var t=e.taskId;return(0,s.default)({url:"/trainTasks/"+t+"/trainLog",method:"get"})}}},"./src/redux/services/trainTask.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getTrainTaskList:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks",method:"get",params:e})},deleteTrainTaskInfo:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/"+e,method:"delete"})},saveOrEditTrainTaskInfo:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"edit"===t?"/guide-train-tasks/"+e.taskId:"/guide-train-tasks",method:"edit"===t?"patch":"post",data:e})},getTaskNameIdentify:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/"+e+"/taskIdentify",method:"get"})},getTaskIdentify:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/operations/check-identify-repeat",method:"get",params:{taskIdentify:e}})},getTrainTaskInfo:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/"+e,method:"get"})},scaleTrainTaskInfo:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/"+t+"/operations/scale",method:"patch",data:e})},updateTrainTaskInfo:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/"+t+"/operations/spec-update",method:"patch",data:e})},killOrRetryJobs:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.JOBS_SERVE,serviceType:""+a,url:"/jobs/"+e+"/operations/"+t,method:"kill"===t?"delete":"post"})},publishModel:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/"+t+"/"+e+"/PRODUCT/operations/publishResult",method:"post"})},configChange:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/"+e+"/operations/configchange",method:"patch",data:t})},nowExecute:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/"+e+"/jobs",method:"post",data:t})},getAlgorithms:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-params/"+e+"/"+t,method:"get"})},getTemplateAlgParams:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-params/templateTypeId",method:"get",params:e})},getAlgorithmParams:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-params/arithmeticId",method:"get",params:e})},getTaskJobInfo:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-actions/config/"+e,method:"get"})},executeTask:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-actions/"+e,method:"post",data:t})},getTaskJobList:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-actions/"+e,method:"get",params:t})},getTaskJobCount:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-actions/operations/count",method:"get",params:{taskIdQuerys:e}})},retryOrRestartJob:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-actions/"+e+"/operations/"+t,method:"stop"===t?"delete":"post"})},getTaskJobProcess:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/operations/getprocess",method:"get",params:{taskActionId:e}})},getTaskJobLog:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/operations/getlog",method:"get",params:{taskActionId:e}})},getTaskJobLogResult:function(e,t){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/operations/getreport",method:"get",params:{taskActionId:e,algorithm:t}})},getTaskTrainResult:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/operations/getresult",method:"get",params:{taskId:e}})},publishModelFromTrainResult:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-tasks/"+e+"/"+t+"/operations/publishModel",method:"post",data:a})},getDataSourceLabel:function(e){return(0,s.default)({basePath:r.ServicePath.GUIDE_TRAIN,url:"/guide-train-actions/getname",method:"get",params:e})}}},"./src/redux/services/trainTemplate.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/utils/request.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");t.default={getTrainTemplateListByByApp:function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/byApp",method:"get",params:e})},getTrainTemplateList:function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template",method:"get",params:e})},getTrainTemplateInfo:function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/"+e,method:"get"})},deleteTrainTemplateInfo:function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/"+e,method:"delete"})},saveTrainTemplateInfo:function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template",method:"post",data:e})},checkTemplateNameRepeat:function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/checkByName",method:"get",params:e})},getTemplateVersionList:function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/"+e+"/versions",method:"get"})},getTemplateVersionInfo:function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/"+e+"/version/"+t,method:"get"})},updateTrainTemplateInfo:function(e){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/"+e.templateId,method:"patch",data:e})},updateTrainTemplateVersionInfo:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/"+e+"/version/"+t,method:"patch",data:a})},deleteTrainTemplateVersion:function(e,t){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/"+e+"/version/"+t,method:"delete"})},importInterface:function(e,t,a){return(0,s.default)({basePath:r.ServicePath.SC_SERVICE,url:"/template/"+e+"/version/"+t+"/action/relationInterface",method:"post",data:a})}}},"./src/routes/application.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/sysManage/index.js"),r=(0,n.withErrorBoundary)(n.NotFoundPage),i=[{path:"/"+o.APPLICATION+"/second-dev",component:s.NlpAppCopy,exact:!0},{component:r}];t.default=i},"./src/routes/datamgr.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=y(a("./src/module/dataMgr/dataSource/dataSourceHome/DataSourcePage.jsx")),r=y(a("./src/module/dataMgr/dataSource/dataSourceEdit/CreateDataSourcePage.jsx")),i=y(a("./src/module/dataMgr/dataSource/dataSourceEdit/CreateFileSourcePage.jsx")),d=y(a("./src/module/dataMgr/dataExplore/DataExplorePage2.jsx")),l=y(a("./src/module/dataMgr/dataExplore/DataExplorePage3.jsx")),u=y(a("./src/module/dataMgr/dataExplore/DataExplorePage4.jsx")),c=y(a("./src/module/dataMgr/dataDispose/DataDisposePage.jsx")),p=y(a("./src/module/dataMgr/preTaskManager/PreTaskManagePage.jsx")),f=y(a("./src/module/dataMgr/preTaskManager/detailPage/ViewPreTaskPage.jsx")),m=y(a("./src/module/dataMgr/preTaskManager/editPage/PreTaskInfoPage.jsx")),h=y(a("./src/module/dataMgr/datasourceDev/DatasourceDevView.jsx")),g=y(a("./src/module/dataMgr/datasourceDev/component/SyncTaskAdd.jsx")),v=y(a("./src/module/dataMgr/datasourceDev/component/LogWatcher.jsx")),_=y(a("./src/module/dataMgr/datasourceDev/component/EditSyncView.jsx"));function y(e){return e&&e.__esModule?e:{default:e}}var b=(0,n.withErrorBoundary)(n.NotFoundPage),x=(0,n.withErrorBoundary)(s.default),C=(0,n.withErrorBoundary)(d.default),j=(0,n.withErrorBoundary)(l.default),S=(0,n.withErrorBoundary)(u.default),I=(0,n.withErrorBoundary)(c.default),T=[{path:"/"+o.DATA_MANAGE+"/pre-task/:taskId/:action(detail)/:activeTab",component:f.default,exact:!0},{path:"/"+o.DATA_MANAGE+"/pre-task/:action(create)/:dsId?/:dsCycle?",component:m.default,exact:!0},{path:"/"+o.DATA_MANAGE+"/pre-task/:taskId/:action(edit)",component:m.default,exact:!0},{path:"/"+o.DATA_MANAGE+"/pre-task",component:p.default,exact:!0},{path:"/"+o.DATA_MANAGE+"/dataSource/nostructure/:action(add)/:appId?",component:i.default},{path:"/"+o.DATA_MANAGE+"/dataSource/nostructure/:action(edit)/:dsId/:appId",component:i.default},{path:"/"+o.DATA_MANAGE+"/dataSource/structure/:action(add)/:appId?",component:r.default},{path:"/"+o.DATA_MANAGE+"/dataSource/structure/:action(edit)/:dsId/:appId",component:r.default},{path:"/"+o.DATA_MANAGE+"/:tab(dataSource)",component:x,permissionId:"DATA_SOURCE:LIST",exact:!0},{path:"/"+o.DATA_MANAGE+"/:tab(dataExplorer)/:action(2)",component:C,permissionId:"DATA_EXPLORER:LIST",exact:!0},{path:"/"+o.DATA_MANAGE+"/:tab(dataExplorer)/:action(3)",component:j,permissionId:"DATA_EXPLORER:LIST",exact:!0},{path:"/"+o.DATA_MANAGE+"/:tab(dataExplorer)/:action(4)",component:S,permissionId:"DATA_EXPLORER:LIST",exact:!0},{path:"/"+o.DATA_MANAGE+"/:tab(dataDispose)",component:I,permissionId:"DATA_DISPOSE:LIST",exact:!0},{path:"/"+o.DATA_MANAGE+"/dataSourceDev",component:h.default,exact:!0},{path:"/"+o.DATA_MANAGE+"/dataSourceDev/:key/:logId/:page/:pageSize",component:h.default,exact:!0},{path:"/"+o.DATA_MANAGE+"/dataSourceDev/syncCreate",component:g.default,exact:!0},{path:"/"+o.DATA_MANAGE+"/dataSourceDev/editSync/:id/:page/:pageSize",component:_.default,exact:!0},{path:"/"+o.DATA_MANAGE+"/dataSourceDev/logWatcher/:id/:logId/:page/:pageSize",component:v.default,exact:!0},{component:b}];t.default=T},"./src/routes/devCenter.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/components/exception/index.js"),s=a("./src/module/devCenter/Loadable.js"),r=(n=s)&&n.__esModule?n:{default:n},i=a("./src/routes/routeHelper.jsx");var d=(0,o.withErrorBoundary)(o.NotFoundPage),l=[{path:"/"+i.DEV_CENTER+"/:type(internal)/:tab(api-test)",component:r.default},{path:"/"+i.DEV_CENTER+"/:type(internal)/:tab(api-doc)",component:r.default},{path:"/"+i.DEV_CENTER+"/:tab(api-doc)",component:r.default},{path:"/"+i.DEV_CENTER+"/:tab(api-test)",component:r.default},{component:d}];t.default=l},"./src/routes/externalModel.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/components/exception/index.js"),s=a("./src/routes/routeHelper.jsx"),r=a("./src/module/externalModel/ExternalModelPage.jsx"),i=(n=r)&&n.__esModule?n:{default:n};var d=(0,o.withErrorBoundary)(i.default),l=(0,o.withErrorBoundary)(o.NotFoundPage),u=[{path:"/"+s.EXTERNAL_MODEL,component:d,exact:!0},{component:l}];t.default=u},"./src/routes/flowReasonTask.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/flowReasonTask/index.js"),r=(0,n.withErrorBoundary)(n.NotFoundPage),i=[{path:"/"+o.FLOW_TASK+"/:env?",component:s.FlowReasonTaskListPage,exact:!0},{path:"/"+o.FLOW_TASK+"/:action(create)/:env",component:s.EditFlowTaskPage,exact:!0},{path:"/"+o.FLOW_TASK+"/:action(create)/:env/:modelId/:packageId/:applicationId",component:s.EditFlowTaskPage,exact:!0},{path:"/"+o.FLOW_TASK+"/:taskId/:action(view)/:activeTab(invocation|config)",component:s.ViewTaskPage,exact:!0},{path:"/"+o.FLOW_TASK+"/:taskId/:action(edit)/:env",component:s.EditFlowTaskPage,exact:!0},{component:r}];t.default=i},"./src/routes/grayTask.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/module/grayTask/index.js"),s=a("./src/routes/routeHelper.jsx"),r=(0,n.withErrorBoundary)(n.NotFoundPage),i=[{path:"/"+s.GRAY_TASK+"/:action(create|edit|view)/:env(product|test)/taskId/:taskId?/step/:step/:serviceId?",component:o.CreateGrayTaskPage,exact:!0},{path:"/"+s.GRAY_TASK+"/view/:env(product|test)/:step/:taskId",component:o.CreateGrayTaskPage,exact:!0},{path:"/"+s.GRAY_TASK,component:o.GrayTaskListPage,exact:!0},{component:r}];t.default=i},"./src/routes/homePage.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/homePage/index.js"),r=a("./src/module/sysManage/index.js"),i=(0,n.withErrorBoundary)(s.ProjectOverviewPage),d=(0,n.withErrorBoundary)(s.ApplicationManagePage),l=(0,n.withErrorBoundary)(r.UserRelevance),u=(0,n.withErrorBoundary)(r.ApplyList),c=(0,n.withErrorBoundary)(n.NotFoundPage),p=[{path:"/"+o.HOME_PAGE+"/project",component:i,exact:!0},{path:"/"+o.HOME_PAGE+"/index",component:s.HomeIndexRedirectPage,exact:!0},{path:"/"+o.HOME_PAGE+"/project",component:i,exact:!0},{path:"/"+o.HOME_PAGE+"/applications",component:d,exact:!0},{path:"/"+o.HOME_PAGE+"/userRelevance",component:l,exact:!0},{path:"/"+o.HOME_PAGE+"/applications-list",component:u,exact:!0},{component:c}];t.default=p},"./src/routes/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/components/exception/index.js"),s=a("./src/containers/index.js"),r=a("./src/module/explain/index.js"),i=a("./src/module/ocr/index.js"),d=a("./src/module/homePage/index.js"),l=a("./src/module/jiutian/index.js"),u=a("./src/routes/routeHelper.jsx"),c=a("./src/routes/loadModuleRouters.js"),p=(n=c)&&n.__esModule?n:{default:n};var f=(0,o.withErrorBoundary)(s.IntroducePage),m=(0,o.withErrorBoundary)(o.NotFoundPage),h=(0,o.withErrorBoundary)(o.NotPermissionPage),g=(0,o.withErrorBoundary)(o.TimeoutPage),v=(0,o.withErrorBoundary)(i.OcrManage),_=(0,o.withErrorBoundary)(i.OcrConfig),y=(0,o.withErrorBoundary)(s.IFrameContainer),b=[{path:"/jiutian/train",component:l.JiutianPage},{path:"/"+u.SON_APP,component:(0,p.default)(u.SON_APP)},{path:"/"+u.MODEL_LEARN,component:(0,p.default)(u.MODEL_LEARN)},{path:"/projectSummarize",component:d.ProjectOverviewPage,exact:!0},{path:"/timeout",component:g},{path:"/help",component:f,exact:!0},{path:"/intro",component:f,exact:!0},{path:"/systemExplain",component:r.SystemExplain},{path:"/ocr",component:v,exact:!0},{path:"/ocr/config/:templateId",component:_,exact:!0},{path:"/integrate/:tab",component:y,exact:!0},{path:"/iframe_load/:tab",component:y,exact:!0},{path:"/sysmgr/task/iframe_load/:tab",component:y,exact:!0},{path:"/login",component:s.AIDevelopment},{path:"/"+u.HOME_PAGE,component:(0,p.default)(u.HOME_PAGE)},{path:"/"+u.OPERATION_MANAGE,component:(0,p.default)(u.OPERATION_MANAGE)},{path:"/"+u.PLAT_FORM_MANAGE,component:(0,p.default)(u.PLAT_FORM_MANAGE)},{path:"/"+u.SYSTEM_MANAGE,component:(0,p.default)(u.SYSTEM_MANAGE)},{path:"/"+u.MODEL_INFERENCE,component:(0,p.default)(u.MODEL_INFERENCE)},{path:"/"+u.MODEL_TRAIN,component:(0,p.default)(u.MODEL_TRAIN)},{path:"/"+u.MODEL_BASE+"/"+u.MODEL_VERSION,component:(0,p.default)(u.MODEL_VERSION)},{path:"/"+u.MODEL_BASE,component:(0,p.default)(u.MODEL_BASE)},{path:"/"+u.INFERENCE,component:(0,p.default)(u.INFERENCE)},{path:"/"+u.MODEL_SERVICE,component:(0,p.default)(u.MODEL_SERVICE)},{path:"/"+u.MODEL_MIRROR,component:(0,p.default)(u.MODEL_MIRROR)},{path:"/"+u.DATA_MANAGE,component:(0,p.default)(u.DATA_MANAGE)},{path:"/"+u.SYSTEM_MANAGE,component:(0,p.default)(u.SYSTEM_MANAGE)},{path:"/"+u.EXTERNAL_MODEL,component:(0,p.default)(u.EXTERNAL_MODEL)},{path:"/"+u.DEV_CENTER,component:(0,p.default)(u.DEV_CENTER)},{path:"/"+u.TAGS_MANAGE,component:(0,p.default)(u.TAGS_MANAGE)},{path:"/"+u.SERVICE_CODE,component:(0,p.default)(u.SERVICE_CODE)},{path:"/"+u.APPLICATION,component:(0,p.default)(u.APPLICATION)},{path:"/"+u.TRAIN_TASK,component:(0,p.default)(u.TRAIN_TASK)},{path:"/"+u.TRAIN_TEMPLATE,component:(0,p.default)(u.TRAIN_TEMPLATE)},{path:"/"+u.NOTEBOOK_VIEW,component:(0,p.default)(u.NOTEBOOK_VIEW)},{path:"/"+u.GRAY_TASK,component:(0,p.default)(u.GRAY_TASK)},{path:"/"+u.FLOW_TASK,component:(0,p.default)(u.FLOW_TASK)},{path:"/"+u.TASK_SCHEDULE,component:(0,p.default)(u.TASK_SCHEDULE)},{path:"/notPermission",component:h},{component:m}];t.default=b},"./src/routes/inference.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/modelService/index.js"),r=(0,n.withErrorBoundary)(n.NotFoundPage),i=[{path:"/"+o.INFERENCE+"/offline",component:s.OfflineListPage,exact:!0},{path:"/"+o.INFERENCE+"/offline/:action(create)/:env",component:s.EditOfflinePage,exact:!0},{path:"/"+o.INFERENCE+"/offline/:action(create)/:env/:modelId?/:packageId?/:applicationId",component:s.EditOfflinePage,exact:!0},{path:"/"+o.INFERENCE+"/offline/:taskId/:action(view)/:activeTab(invocation|config|process|io|logs)",component:s.ViewOfflinePage,exact:!0},{path:"/"+o.INFERENCE+"/offline/:taskId/:action(edit)/:env",component:s.EditOfflinePage,exact:!0},{component:r}];t.default=i},"./src/routes/loadModuleRouters.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=A(a("./node_modules/babel-runtime/helpers/extends.js")),s=A(a("./node_modules/babel-runtime/helpers/objectWithoutProperties.js")),r=A(a("./node_modules/babel-runtime/helpers/jsx.js")),i="C:\\Users\\leo\\workspace\\aihub-web\\src\\routes\\loadModuleRouters.js",d=A(a("./node_modules/react/index.js")),l=a("./node_modules/react-router-dom/esm/react-router-dom.js"),u=a("./src/routes/routeHelper.jsx"),c=A(a("./src/routes/modelTrain.js")),p=A(a("./src/routes/modelVersion.js")),f=A(a("./src/routes/modelBase.js")),m=a("./src/components/exception/index.js"),h=A(a("./src/routes/datamgr.js")),g=A(a("./src/routes/inference.js")),v=A(a("./src/routes/modelService.js")),_=A(a("./src/routes/modelMirror.js")),y=A(a("./src/routes/sysmgr.js")),b=A(a("./src/routes/externalModel.js")),x=A(a("./src/routes/devCenter.js")),C=A(a("./src/routes/platform.js")),j=A(a("./src/routes/serviceCode.js")),S=A(a("./src/routes/homePage.js")),I=A(a("./src/routes/operation.js")),T=A(a("./src/routes/application.js")),w=A(a("./src/routes/modelLearn.js")),E=A(a("./src/routes/trainTask.js")),D=A(a("./src/routes/trainTemplate.js")),M=A(a("./src/routes/notebookView.js")),k=A(a("./src/routes/grayTask.js")),P=A(a("./src/routes/flowReasonTask.js")),L=A(a("./src/routes/sonApp.js")),N=A(a("./src/routes/taskSchedule.js"));function A(e){return e&&e.__esModule?e:{default:e}}var R=((n={})[u.SON_APP]=L.default,n[u.TRAIN_TASK]=E.default,n[u.MODEL_VERSION]=p.default,n[u.MODEL_BASE]=f.default,n[u.MODEL_TRAIN]=c.default,n[u.INFERENCE]=g.default,n[u.MODEL_SERVICE]=v.default,n[u.MODEL_MIRROR]=_.default,n[u.DATA_MANAGE]=h.default,n[u.SYSTEM_MANAGE]=y.default,n[u.EXTERNAL_MODEL]=b.default,n[u.DEV_CENTER]=x.default,n[u.PLAT_FORM_MANAGE]=C.default,n[u.SERVICE_CODE]=j.default,n[u.HOME_PAGE]=S.default,n[u.OPERATION_MANAGE]=I.default,n[u.APPLICATION]=T.default,n[u.MODEL_LEARN]=w.default,n[u.TRAIN_TEMPLATE]=D.default,n[u.NOTEBOOK_VIEW]=M.default,n[u.GRAY_TASK]=k.default,n[u.FLOW_TASK]=P.default,n[u.TASK_SCHEDULE]=N.default,n);(0,r.default)(m.NotPermissionPage,{});t.default=function(e){return function(){var t=R[e];return(0,r.default)(l.Switch,{},void 0,t.map((function(e){var t=e.component,a=e.props,n=(0,s.default)(e,["component","props"]);return d.default.createElement(l.Route,(0,o.default)({},n,{key:e.path||"notFound",render:function(e){return d.default.createElement(t,(0,o.default)({},e,a,{routes:n.routes,__source:{fileName:i,lineNumber:92}}))},__source:{fileName:i,lineNumber:86}}))}))," ")}}},"./src/routes/modelBase.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/modelBase/index.js"),r=(0,n.withErrorBoundary)(s.ModelBaseManagePage),i=(0,n.withErrorBoundary)(s.ModelBaseInfoPage),d=(0,n.withErrorBoundary)(n.NotFoundPage),l=[{path:"/"+o.MODEL_BASE,component:r,exact:!0},{path:"/"+o.MODEL_BASE+"/:action(create)/:repoId",component:i},{path:"/"+o.MODEL_BASE+"/:modelId/:versionId/:action(view)",component:s.ModelBaseDetailPage},{path:"/"+o.MODEL_BASE+"/:modelId/:action(edit)",component:s.ModelBaseInfoDetail},{component:d}];t.default=l},"./src/routes/modelLearn.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/modelLearn/index.js"),r=(0,n.withErrorBoundary)(s.LearnBusiness),i=(0,n.withErrorBoundary)(s.LearnBased),d=(0,n.withErrorBoundary)(s.CreatePage),l=(0,n.withErrorBoundary)(s.CodePage),u=(0,n.withErrorBoundary)(s.LearnAbility),c=(0,n.withErrorBoundary)(s.LearnAbilityDetail),p=(0,n.withErrorBoundary)(n.NotFoundPage),f=[{path:"/"+o.MODEL_LEARN+"/learnBusiness",component:r,name:"list",exact:!0},{path:"/"+o.MODEL_LEARN+"/learnBased",component:i,name:"list",exact:!0},{path:"/"+o.MODEL_LEARN+"/learnBased/:id?/:action(create)/:taskId?",component:d,name:"create",exact:!0},{path:"/"+o.MODEL_LEARN+"/learnBased/:id?/:action(edit)/:taskId?",component:d,name:"edit",exact:!0},{path:"/"+o.MODEL_LEARN+"/learnBased/:id?/:action(see)/:taskId?",component:d,name:"see",exact:!0},{path:"/"+o.MODEL_LEARN+"/learnBased/:id?/:action(copy)/:taskId?",component:d,name:"copy",exact:!0},{path:"/"+o.MODEL_LEARN+"/:action(create)/code",component:l},{path:"/"+o.MODEL_LEARN+"/:action(edit)/code",component:l,exact:!0},{path:"/"+o.MODEL_LEARN+"/:action(see)/code",component:l,exact:!0},{path:"/"+o.MODEL_LEARN+"/:action(copy)/code",component:l,exact:!0},{path:"/"+o.MODEL_LEARN+"/learnAbility",component:u,name:"list",exact:!0},{path:"/"+o.MODEL_LEARN+"/learnAbility/:id?/:action(detail)/:taskId?",component:c,name:"detail",exact:!0},{component:p}];t.default=f},"./src/routes/modelMirror.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/modelMirror/index.js"),r=(0,n.withErrorBoundary)(s.ImportMirrorPage),i=(0,n.withErrorBoundary)(s.BaseMirrorListPage),d=(0,n.withErrorBoundary)(s.ServiceMirrorListPage),l=(0,n.withErrorBoundary)(s.CreateServiceMirrorPage),u=(0,n.withErrorBoundary)(s.ServiceMirrorVersionListPage),c=(0,n.withErrorBoundary)(s.ServiceVersionDetailPage),p=(0,n.withErrorBoundary)(s.ServiceMirrorEditPage),f=(0,n.withErrorBoundary)(s.ServiceMirrorVersionEditPage),m=(0,n.withErrorBoundary)(s.CreateTrainMirrorPage),h=(0,n.withErrorBoundary)(n.NotFoundPage),g=[{path:"/"+o.MODEL_MIRROR+"/modelMirror/:mirrorId/versions",component:s.BaseVersionListPage,exact:!0},{path:"/"+o.MODEL_MIRROR+"/modelMirror/:action(create)/import",component:r},{path:"/"+o.MODEL_MIRROR+"/modelMirror/:action(edit)/import/:mirrorId",component:s.ServiceMirrorEditPage},{path:"/"+o.MODEL_MIRROR+"/modelMirror/detail/:mirrorId/:versionId?",component:s.BaseMirrorDetailPage},{path:"/"+o.MODEL_MIRROR+"/modelMirror/:action(create)/define",component:s.CreateDefineConfig},{path:"/"+o.MODEL_MIRROR+"/modelMirror/:action(edit)/:mirrorId",component:p},{path:"/"+o.MODEL_MIRROR+"/modelMirror",component:s.BaseMirrorListPage},{path:"/"+o.MODEL_MIRROR+"/modelMirror",component:i,exact:!0},{path:"/"+o.MODEL_MIRROR+"/:entity(service|train)",component:d,exact:!0},{path:"/"+o.MODEL_MIRROR+"/:entity(service|train)/edit/:mirrorId",component:p,exact:!0},{path:"/"+o.MODEL_MIRROR+"/:entity(service|train)/:mirrorId/versions",component:u,exact:!0},{path:"/"+o.MODEL_MIRROR+"/service/:mirrorId/editApi/:versionId",component:f,exact:!0},{path:"/"+o.MODEL_MIRROR+"/service/:mirrorId/:action(edit)/:versionId",component:l,exact:!0},{path:"/"+o.MODEL_MIRROR+"/train/:mirrorId/:action(edit)/:versionId",component:m,exact:!0},{path:"/"+o.MODEL_MIRROR+"/train/:action(build|import)",component:m,exact:!0},{path:"/"+o.MODEL_MIRROR+"/:entity(service|train)/:mirrorId/:tab(process|deployInfo|info|dockerfile)/:versionId?",component:c,exact:!0},{path:"/"+o.MODEL_MIRROR+"/service/:modelId?/:action(build|import)/:versionId?",component:l,exact:!0},{path:"/"+o.MODEL_MIRROR+"/service/code/:codeId?/:action(build|import)/:versionId?",component:l,exact:!0},{component:h}];t.default=g},"./src/routes/modelService.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/components/exception/index.js"),s=a("./src/routes/routeHelper.jsx"),r=a("./src/module/modelService/index.js"),i=a("./src/module/modelService/jptService/JptMgmt.jsx"),d=(n=i)&&n.__esModule?n:{default:n};var l=(0,o.withErrorBoundary)(r.ModelServiceListPage),u=(0,o.withErrorBoundary)(r.ModelServiceDetailPage),c=(0,o.withErrorBoundary)(r.CreateServicePage),p=(0,o.withErrorBoundary)(r.ModelServiceEditPage),f=(0,o.withErrorBoundary)(r.ServiceInvocationDetail),m=(0,o.withErrorBoundary)(r.PublishServicePage),h=(0,o.withErrorBoundary)(o.NotFoundPage),g=[{path:"/"+s.MODEL_SERVICE+"/codeService/:action(create)/:engine?/:mirrorId?/:versionId?/:type",component:r.EditManagePage,name:"edit",exact:!0},{path:"/"+s.MODEL_SERVICE+"/codeService/:action(create)/:engine?/:mirrorId?/:versionId?",component:r.EditManagePage,name:"edit",exact:!0},{path:"/"+s.MODEL_SERVICE+"/codeService/:action(edit|view)/:modelId",component:r.EditManagePage,name:"edit",exact:!0},{path:"/"+s.MODEL_SERVICE+"/codeService",component:r.ListManagePage,name:"list",exact:!0},{path:"/"+s.MODEL_SERVICE,component:l,name:"list",exact:!0},{path:"/"+s.MODEL_SERVICE+"/:mirrorId?/:action(create)/:versionId?",component:c,name:"create",exact:!0},{path:"/"+s.MODEL_SERVICE+"/:action(publish)/:env/:mirrorId?/:versionId?",component:m,name:"create",exact:!0},{path:"/"+s.MODEL_SERVICE+"/code/:action(publish)/:env/:codeId/:versionId?",component:m,name:"create",exact:!0},{path:"/"+s.MODEL_SERVICE+"/model/:action(publish)/:env/:modelId/:versionId?",component:m,name:"create",exact:!0},{path:"/"+s.MODEL_SERVICE+"/:action(reset)/:serviceId",component:m,name:"reset",exact:!0},{path:"/"+s.MODEL_SERVICE+"/:action(onlineEdit)/:serviceId",component:m,name:"onlineEdit",exact:!0},{path:"/"+s.MODEL_SERVICE+"/edit/:serviceId",component:c,name:"edit",exact:!0},{path:"/"+s.MODEL_SERVICE+"/view/:serviceId",component:p,name:"edit",exact:!0},{path:"/"+s.MODEL_SERVICE+"/businessId/:businessId/detail/:tab/:rapidServiceId?",component:u,name:"detail",exact:!0},{path:"/"+s.MODEL_SERVICE+"/:businessId?/detail/:tab/:serviceId?",component:u,name:"detail",exact:!0},{path:"/"+s.MODEL_SERVICE+"/:serviceId/invocation/:logId",component:f,name:"detail",exact:!0},{path:"/"+s.MODEL_SERVICE+"/codeServiceDetail/:serviceId/:tab",component:r.CodeServiceDetailPage,name:"detail",exact:!0},{path:"/"+s.MODEL_SERVICE+"/codeService/code/publish",component:r.PublishCodePage,exact:!0},{path:"/"+s.MODEL_SERVICE+"/visualProgramming",component:d.default,exact:!0},{component:h}];t.default=g},"./src/routes/modelTrain.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/components/exception/index.js"),s=a("./src/module/modelTrain/index.js"),r=a("./src/routes/routeHelper.jsx"),i=a("./src/module/dragDrop/index.js"),d=(n=i)&&n.__esModule?n:{default:n};var l=(0,o.withErrorBoundary)(s.ModelManagePage),u=(0,o.withErrorBoundary)(s.ModelTrainTabsPage),c=(0,o.withErrorBoundary)(d.default),p=(0,o.withErrorBoundary)(o.NotFoundPage),f=(0,o.withErrorBoundary)(s.ModelTrainReportPage),m=[{path:"/"+r.MODEL_TRAIN,component:l,exact:!0},{path:"/"+r.MODEL_TRAIN+"/:action(create)/:createType(guide)/:sceneId",permissionId:"MODEL_TRAIN:CREATE",component:u},{path:"/"+r.MODEL_TRAIN+"/:action(create)/:createType(dragDrop)",component:c,props:{mode:"create"}},{path:"/"+r.MODEL_TRAIN+"/:action(create)/:createType(deepLearn)",component:u},{path:"/"+r.MODEL_TRAIN+"/:action(create)/code",component:s.NotebookTransferPage},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(edit)/code",component:s.NotebookTransferPage,exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(edit)/:createType(guide)",component:u,permissionId:"MODEL_TRAIN:UPDATE",exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(edit)/:createType(dragDrop)",component:c,exact:!0,props:{mode:"edit",isPredict:!1}},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(edit)/:createType(dragDrop_predict)",component:c,exact:!0,props:{mode:"edit",isPredict:!0}},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(edit)/:createType(deepLearn)",component:u,exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(view)/:createType(guide)",component:u,exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(view)/:createType(dragDrop)",component:c,props:{mode:"view",isPredict:!1},exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(view)/:createType(dragDrop_predict)",component:c,props:{mode:"view",isPredict:!0},exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(view)/:createType(deepLearn)",component:u,exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(process)/:createType(guide)",component:u,exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(process)/:createType(deepLearn)",component:u,exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(result)/:createType(guide)",component:u,exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(result)/:createType(deepLearn)",component:u,exact:!0},{path:"/"+r.MODEL_TRAIN+"/:modelId/:action(report)/:taskId/:arithId",component:f,exact:!0},{component:p}];t.default=m},"./src/routes/modelVersion.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/modelVersion/index.js"),r=(0,n.withErrorBoundary)(s.ModelVersionPage),i=(0,n.withErrorBoundary)(s.ModelVersionDetailInfoPage),d=(0,n.withErrorBoundary)(n.NotFoundPage),l=[{path:"/"+o.MODEL_BASE+"/"+o.MODEL_VERSION+"/:modelId",component:r,exact:!0},{path:"/"+o.MODEL_BASE+"/"+o.MODEL_VERSION+"/:modelId/:versionId",component:i,exact:!0},{component:d}];t.default=l},"./src/routes/notebookView.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/components/exception/index.js"),s=a("./src/module/nb-view/NotebookView.jsx"),r=(n=s)&&n.__esModule?n:{default:n},i=a("./src/routes/routeHelper.jsx");var d=(0,o.withErrorBoundary)(o.NotFoundPage),l=[{path:"/"+i.NOTEBOOK_VIEW+"/projects/:projectId/apps/:appId/:filepath?",component:r.default},{component:d}];t.default=l},"./src/routes/operation.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/sysManage/index.js"),r=(0,n.withErrorBoundary)(n.NotFoundPage),i=[{path:"/"+o.OPERATION_MANAGE+"/apiUser",component:s.ApiUserList,exact:!0},{path:"/"+o.OPERATION_MANAGE+"/apiUser/:apiUserId?",component:s.ApiUserDetail,exact:!0},{path:"/"+o.OPERATION_MANAGE+"/project/approve-resource/",component:s.ResourceApprovePage},{path:"/"+o.OPERATION_MANAGE+"/service-api/:action(apply)",component:s.ApplyServiceInfo},{path:"/"+o.OPERATION_MANAGE+"/service-api/:action(create)/:apiUserId?",component:s.ApplyServiceInfo},{path:"/"+o.OPERATION_MANAGE+"/service-api/:applyId/:action(edit)",component:s.ApplyServiceInfo},{path:"/"+o.OPERATION_MANAGE+"/service-api/:applyId/:action(view)",component:s.ApplyServiceInfo},{path:"/"+o.OPERATION_MANAGE+"/service-api",component:s.ApplyServicePage},{path:"/"+o.OPERATION_MANAGE+"/approve-project/:applyId/:action(view)",component:s.ApproveProjectDetail},{path:"/"+o.OPERATION_MANAGE+"/approve-project",component:s.ApproveProjectPage},{path:"/"+o.OPERATION_MANAGE+"/apply-project/:action(create)",component:s.ApplyProjectInfo},{path:"/"+o.OPERATION_MANAGE+"/apply-project/:applyId/:action(edit)",component:s.ApplyProjectInfo},{path:"/"+o.OPERATION_MANAGE+"/apply-project/:applyId/:action(view)",component:s.ApplyProjectDetail},{path:"/"+o.OPERATION_MANAGE+"/apply-project",component:s.ApplyProjectPage},{path:"/"+o.OPERATION_MANAGE+"/project/:action(resource)",component:s.ProjectDetailsPage},{path:"/"+o.OPERATION_MANAGE+"/project/:projectId/:action(edit)/:tab(project|user|docs|apply)",component:s.ProjectInfoPageTab},{path:"/"+o.OPERATION_MANAGE+"/project/:projectId/:action(view)/:tab(project|user|docs|apply)",component:s.ProjectInfoPageTab},{path:"/"+o.OPERATION_MANAGE+"/project/list/:action(create)",component:s.ProjectInfoPage},{path:"/"+o.OPERATION_MANAGE+"/project/:action(create)",component:s.ProjectInfoPage},{path:"/"+o.OPERATION_MANAGE+"/project/tenement/:action(create)",component:s.ProjectInfoPage},{path:"/"+o.OPERATION_MANAGE+"/items-group/:action(create)",component:s.CreateGroupConfig},{path:"/"+o.OPERATION_MANAGE+"/project",component:s.ProjectPage,exact:!0},{path:"/"+o.OPERATION_MANAGE+"/items-group/:projectId/:action(edit)",component:s.CreateGroupConfig},{path:"/"+o.OPERATION_MANAGE+"/items-group/:projectId/:action(view)",component:s.ViewGroupConfig},{path:"/"+o.OPERATION_MANAGE+"/items-group",component:s.GroupList},{path:"/"+o.OPERATION_MANAGE+"/nlp-app/:appId/copy",component:s.NlpAppCopy,exact:!0},{path:"/"+o.OPERATION_MANAGE+"/apply-project/req",component:s.ApplyProjectLoginPage,exact:!0},{path:"/"+o.OPERATION_MANAGE+"/join-project",component:s.ProjectJoinPage,exact:!0},{component:r}];t.default=i},"./src/routes/platform.js":function(e,t,a){"use strict";t.__esModule=!0,t.PlatFeature=void 0;var n,o=a("./src/components/exception/index.js"),s=a("./src/module/platFeaturesManage/platFeaturesManagePage.jsx"),r=(n=s)&&n.__esModule?n:{default:n},i=a("./src/routes/routeHelper.jsx"),d=a("./src/containers/index.js");var l=(0,o.withErrorBoundary)(o.NotFoundPage),u=(0,o.withErrorBoundary)(d.Dashboard),c=(0,o.withErrorBoundary)(r.default),p=[{path:"/"+i.PLAT_FORM_MANAGE+"/features/:dataId",component:c,exact:!0},{path:"/dashboard",component:u,exact:!0},{component:l}];t.PlatFeature=c;t.default=p},"./src/routes/routeHelper.jsx":function(e,t,a){"use strict";t.__esModule=!0,t.jptServiceUrl=t.taskManageUrl=t.taskLogUrl=t.jobManageUrl=t.datasourceDevUrl=t.flowTaskUrl=t.grayTaskUrl=t.notebookViewUrl=t.trainTemplateUrl=t.trainTaskUrl=t.modelLearnUrl=t.modelRepoUrl=t.dragDropUrl=t.sysManageUrl=t.dataMgrUrl=t.modelTrainUrl=t.inferenceUrl=t.modelServiceCodeUrl=t.modelMirrorUrl=t.modelServiceUrl=t.preTaksUrl=t.modelBaseUrl=t.taskAUrl=t.operationUrl=t.modelVersionUrl=t.homeUrl=t.APPLICATION=t.introduceUrl=t.TASK_SCHEDULE=t.FLOW_TASK=t.SON_APP=t.GRAY_TASK=t.NOTEBOOK_VIEW=t.TRAIN_TEMPLATE=t.TRAIN_TASK=t.MODEL_LEARN=t.INTRODUCE=t.OPERATION_MANAGE=t.HOME_PAGE=t.SERVICE_CODE=t.MODEL_VERSION=t.MODEL_BASE=t.DEV_CENTER=t.PLAT_FORM_MANAGE=t.EXTERNAL_MODEL=t.SYSTEM_MANAGE=t.DATA_MANAGE=t.MODEL_MIRROR=t.MODEL_SERVICE=t.INFERENCE=t.MODEL_TRAIN=void 0;var n,o=a("./node_modules/lodash/lodash.js"),s=(n=o)&&n.__esModule?n:{default:n};var r=t.MODEL_TRAIN="modelTrain",i=t.INFERENCE="inference",d=t.MODEL_SERVICE="modelService",l=t.MODEL_MIRROR="modelMirror",u=t.DATA_MANAGE="datamgr",c=t.SYSTEM_MANAGE="sysmgr",p=(t.EXTERNAL_MODEL="externalModel",t.PLAT_FORM_MANAGE="platform"),f=(t.DEV_CENTER="dev-center",t.MODEL_BASE="modelBase"),m=t.MODEL_VERSION="modelVersion",h=t.SERVICE_CODE="serviceCode",g=t.HOME_PAGE="home",v=t.OPERATION_MANAGE="operation-manage",_=t.INTRODUCE="introduce",y=t.MODEL_LEARN="modelLearn",b=t.TRAIN_TASK="trainTask",x=t.TRAIN_TEMPLATE="trainTemplate",C=(t.NOTEBOOK_VIEW="nb-view",t.GRAY_TASK="grayTask"),j=t.SON_APP="son-app",S=t.FLOW_TASK="flowTask",I=t.TASK_SCHEDULE="task",T=(t.introduceUrl={index:function(){return"/"+_+"/ai-development"},learnAbility:function(){return"/"+_+"/learnAbility"}},t.APPLICATION="applications",t.homeUrl={index:function(){return"/"},modelVersion:function(){return"/"+m},modelBase:function(){return"/"+f},modelTrain:function(){return"/"+r},inference:function(){return"/"+i},modelRepo:function(){return"/"+d},projectOverview:function(){return"/"+g+"/project"},projectMember:function(){return"/"+g+"/userRelevance"},applications:function(){return"/"+g+"/applications"}},t.modelVersionUrl={modelVersion:function(e){return"/"+f+"/"+m+"/"+e},detail:function(e,t){return"/"+f+"/"+m+"/"+e+"/"+t}},t.operationUrl={projectGroupManage:function(){return"/"+v+"/items-group"},projectGroupCreate:function(){return"/"+v+"/items-group/create"},projectGroupView:function(e){return"/"+v+"/items-group/"+e+"/view"},projectGroupEdit:function(e){return"/"+v+"/items-group/"+e+"/edit"},projectManage:function(){return"/"+v+"/project"},projectCreate:function(){return"/"+v+"/project/list/create"},projectTenementCreate:function(){return"/"+v+"/project/tenement/create"},projectResource:function(){return"/"+v+"/project/resource"},projectEdit:function(e,t){return"/"+v+"/project/"+e+"/edit/"+t},projectView:function(e,t){return"/"+v+"/project/"+e+"/view/"+t},apiUsers:function(){return"/"+v+"/apiUser"},apiUserDetail:function(e){return"/"+v+"/apiUser/"+e},applyProjectManage:function(){return"/"+v+"/apply-project/req"},applyProjectCreate:function(){return"/"+v+"/apply-project/create"},applyProjectEdit:function(e){return"/"+v+"/apply-project/"+e+"/edit"},applyProjectView:function(e){return"/"+v+"/apply-project/"+e+"/view"},approveProjectManage:function(){return"/"+v+"/approve-project"},approveProjectView:function(e){return"/"+v+"/approve-project/"+e+"/view"},applyServiceManage:function(){return"/"+v+"/service-api"},applyServiceCreate:function(e){return"/"+v+"/service-api/create"+(e?"/"+e:"")},applyServiceEdit:function(e){return"/"+v+"/service-api/"+e+"/edit"},applyServiceView:function(e){return"/"+v+"/service-api/"+e+"/view"},applyProjectReq:function(){return"/"+v+"/apply-project/req"},joinProject:function(){return"/"+v+"/join-project"},applyQuota:function(){return"/"+v+"/project/approve-resource"}},t.taskAUrl={taskManage:function(){return"/"+c+"/task"},createATask:function(e){return"/"+c+"/task/labelTask/"+e},editATask:function(e,t,a){return"/"+c+"/task/labelTask/"+e+"/"+t+"/"+a},editMarkTool:function(e,t,a,n){return"/"+j+"/mark-tool/add/"+e+"/"+encodeURIComponent(t)+"/"+a+"/"+n},createPreTask:function(e,t){return"/"+j+"/mark-tool/add/"+e+"/"+encodeURIComponent(dsName)+"/"+t+"/"+dataType},editATaskByDataSource:function(e,t,a,n,o,s){return"/"+c+"/task/labelTask/"+e+"/"+t+"/"+a+"/"+n+"/"+o+"/"+s},createBTask:function(e){return"/"+c+"/task/developTask/"+e},editBTask:function(e,t,a){return"/"+c+"/task/developTask/"+e+"/"+t+"/"+a},editBTaskByDataSource:function(e,t,a,n,o){return"/"+c+"/task/developTask/"+e+"/"+t+"/"+a+"/"+n+"/"+o}},t.modelBaseUrl={modelBaseManage:function(){return"/"+f},detail:function(e){return"/"+f+"/"+e+"/detail/:tab"},createModelBaseModel:function(e,t){return"/"+f+"/create/"+e+(void 0===t?"":"/"+t)},viewModel:function(e,t){return"/"+f+"/"+e+"/"+t+"/view"},editModel:function(e){return"/"+f+"/"+e+"/edit"}},t.preTaksUrl={list:function(){return"/"+u+"/pre-task"},detail:function(e,t){return"/"+u+"/pre-task/"+e+"/detail/"+t},create:function(e,t){return"/"+u+"/pre-task/create"+(e&&t?"?dsId="+e+"&dsCycle="+t:"")},edit:function(e){return"/"+u+"/pre-task/"+e+"/edit"}},t.modelServiceUrl={codeServiceList:function(){return"/"+d+"/codeService"},createCodeService:function(e,t,a,n){return"/"+d+"/codeService/create"+(e?"/"+e:"")+(t?"/"+t:"")+(a?"/"+a:"")+(n?"/"+n:"")},editCodeService:function(e,t){return"/"+d+"/codeService/"+e+"/"+t},detailCodeService:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"monitoring";return"/"+d+"/codeServiceDetail/"+e+"/"+t},list:function(){return"/"+d},detail:function(e,t,a){return"/"+d+(a?"/"+a:"")+"/detail/"+t+(e?"/"+e:"")},serviceDetail:function(e,t,a){return"/"+d+"/businessId/"+a+"/detail/"+t+"/"+e},invocation:function(e,t){return"/"+d+"/"+e+"/invocation/"+t+"/"},create:function(e,t){return"/"+d+(e?"/"+e:"")+"/create"+(t?"/"+t:"")},edit:function(e){return"/"+d+"/edit/"+e},view:function(e){return"/"+d+"/view/"+e},reset:function(e){return"/"+d+"/reset/"+e},onlineEdit:function(e){return"/"+d+"/onlineEdit/"+e},publish:function(e,t,a){return"/"+d+"/publish/"+e+(t?"/"+t:"")+(a?"/"+a:"")},modelPublish:function(e,t,a){return"/"+d+"/model/publish/"+e+"/"+t+(a?"/"+a:"")},codePublish:function(e,t,a){return"/"+d+"/code/publish/"+e+"/"+t+(a?"/"+a:"")}},t.modelMirrorUrl={modelMirrorList:function(){return"/"+l+"/modelMirror"},importCreate:function(){return"/"+l+"/modelMirror/create/import"},importEdit:function(e,t){return"/"+l+"/modelMirror/edit/import/"+e+"/"+t},baseDetail:function(e,t){return"/"+l+"/modelMirror/detail/"+e+(t?"/"+t:"")},list:function(e){return"/"+l+"/"+e},versionList:function(e,t){return"/"+l+"/"+e+"/"+t+"/versions"},versionDetail:function(e,t,a,n){return"/"+l+"/"+e+"/"+t+"/"+a+(n?"/"+n:"")},versionEdit:function(e,t,a){return"/"+l+"/"+e+"/"+t+"/edit/"+a},versionApiEdit:function(e,t){return"/"+l+"/service/"+e+"/editApi/"+t},codeCreate:function(e,t,a){return"/"+l+"/service/code/"+t+"/"+e+(a?"/"+a:"")},trainCreate:function(e){return"/"+l+"/train/"+e},create:function(e,t,a){return"/"+l+"/service"+(t?"/"+t:"")+"/"+e+(a?"/"+a:"")},edit:function(e,t){return"/"+l+"/"+e+"/edit/"+t},createDefineModel:function(){return"/"+l+"/modelMirror/create/define"},editDefineModel:function(e,t){return"/"+l+"/modelMirror/edit/define/"+e+"/"+t},baseVersionList:function(e){return"/"+l+"/modelMirror/"+e+"/versions"}},t.modelServiceCodeUrl={list:function(){return"/"+h},create:function(){return"/"+h+"/import"},edit:function(e){return"/"+h+"/edit/"+e},detail:function(e){return"/"+h+"/"+e+"/detail"},versionList:function(e){return"/"+h+"/"+e+"}/versions"}},t.inferenceUrl={offlineList:function(){return"/"+i+"/offline"},offlineView:function(e,t){return"/"+i+"/offline/"+e+"/view/"+t},offlineCreate:function(e){return"/"+i+"/offline/create/"+e},offlineEdit:function(e,t){return"/"+i+"/offline/"+e+"/edit/"+t},modelPublish:function(e,t,a,n){return"/"+i+"/offline/create/"+e+"/"+t+(a?"/"+a:"")+"/"+n}},t.modelTrainUrl={modelManage:function(){return"/"+r},createModel:function(e,t){return"/"+r+"/create"+(e?"/"+e:"")+(t?"/"+t:"")},createModelByGuide:function(e){return T.createModel("guide",e)},createModelByDrapDrop:function(){return T.createModel("dragDrop")},createModelByDeepLearn:function(){return T.createModel("deepLearn")},createModelForCode:function(e,t,a){return T.createModel("code")+"?language="+e+"&modelName="+encodeURIComponent(t)+"&engine="+encodeURIComponent(a)+"&__hm__"},viewModel:function(e,t,a){return"/"+r+"/"+e+"/view/"+t+"?__title="+encodeURIComponent(a)},editModel:function(e,t,a){return"/"+r+"/"+e+"/edit/"+t+"?__title="+encodeURIComponent(a)},editModelForCode:function(e,t){return"/"+r+"/"+e+"/edit/code?"+(t?"readOnly=true&":"")+"__hm__"},viewTrainProcess:function(e,t){return"/"+r+"/"+e+"/process/guide?__title="+encodeURIComponent(t)},viewTrainResult:function(e,t){return"/"+r+"/"+e+"/result/guide?__title="+encodeURIComponent(t)},viewTrainReport:function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"\u6d4b\u8bd5";return"/"+r+"/"+e+"/report/"+t+"/"+a+"?__hm__"+(s.default.isEmpty(n)?"":"&__title="+encodeURIComponent(n))}}),w=(t.dataMgrUrl={structureCreate:function(e){return"/"+u+"/dataSource/structure/add"+(e?"/"+e:"")},structureEdit:function(e,t){return"/"+u+"/dataSource/structure/edit/"+e+"/"+t},noStructureCreate:function(e){return"/"+u+"/dataSource/nostructure/add"+(e?"/"+e:"")},noStructureEdit:function(e,t){return"/"+u+"/dataSource/nostructure/edit/"+e+"/"+t},datasourceMgr:function(){return"/"+u+"/dataSource"},dataExplorer:function(){return"/"+u+"/dataExplorer"},dataDispose:function(){return"/"+u+"/dataDispose"},dataExplorerParam:function(e,t,a){return"/"+u+"/dataExplorer?dsId="+e+"&dsCycle="+t+"&kpiTypeId="+a}},t.sysManageUrl={login:function(){return"/login"},sceneDemoEdit:function(e,t){return e?"/"+c+"/sceneDemo/"+e+"/"+t:"/"+c+"/sceneDemo/"+t},sceneDemo:function(){return"/"+c+"/sceneDemo"},featuresByDataId:function(e){return"/"+p+"/features/"+e},dataBases:function(){return"/"+c+"/dataBases"},ftpBases:function(){return"/"+c+"/ftpBases"},netDisk:function(){return"/"+c+"/netDisk"},appTopicBases:function(){return"/"+c+"/appTopicBases"},messageAffiche:function(e){return"/"+c+"/messageAffiche/"+e},userTabsUrl:function(e){return"/"+c+"/"+e},tenants:function(){return"/"+c+"/tenants"},tenantCreate:function(){return"/"+c+"/tenants/create"},tenantView:function(e,t){return"/"+c+"/tenants/"+e+"/view/"+t},tenantEdit:function(e,t){return"/"+c+"/tenants/"+e+"/edit/"+t}},t.dragDropUrl={editModel:function(e,t){return"/"+r+"/"+e+"/edit/dragDrop?__title="+encodeURIComponent(t)},viewModel:function(e,t){return"/"+r+"/"+e+"/view/dragDrop?__title="+encodeURIComponent(t)},createModel:function(){return"/"+r+"/create/dragDrop"}},t.modelRepoUrl={viewModel:function(e){return"/"+f+"/"+e+"/view/1,1,1,1"}},t.modelLearnUrl={createModel:function(e,t,a){return"/"+y+"/"+e+(t?"/"+t:"")+(a?"/"+a:"")},createModelForCode:function(e){return""+w.createModel(e,"code")},pagebased:function(){return"/"+y+"/learnBased"},create:function(e,t){return"/"+y+"/learnBased"+(e?"/"+e:"")+"/create"+(t?"/"+t:"")},edit:function(e,t){return"/"+y+"/learnBased"+(e?"/"+e:"")+"/edit"+(t?"/"+t:"")},see:function(e,t){return"/"+y+"/learnBased"+(e?"/"+e:"")+"/see"+(t?"/"+t:"")},copy:function(e,t){return"/"+y+"/learnBased"+(e?"/"+e:"")+"/copy"+(t?"/"+t:"")},detail:function(e,t){return"/"+y+"/learnAbility"+(e?"/"+e:"")+"/detail"+(t?"/"+t:"")},detailNoAuth:function(e,t){return"/introduce/learnAbility"+(e?"/"+e:"")+"/detail"+(t?"/"+t:"")}});t.trainTaskUrl={trainTaskManage:function(e){return"/"+b+(e?"/"+e:"")},createTrainTask:function(e,t,a){return"/"+b+"/create/"+e+"/"+t+(a?"/"+a:"")},createInitTemTrainTask:function(e,t,a,n){return"/"+b+"/"+n+"/create/"+e+"/"+t+(a?"/"+a:"")},detail:function(e,t){return"/"+b+"/"+e+"/view/"+t},jobDetail:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"config",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"/"+b+"/"+e+"/invocation/"+t+"/"+a+(n?"/"+n:"")},jobDetailReport:function(e,t,a){return"/"+b+"/"+e+"/invocation/"+t+"/result/"+a+"/report"},edit:function(e){return"/"+b+"/edit/"+e},editInit:function(e,t){return"/"+b+"/init-tmp/"+e+"/edit/"+t}},t.trainTemplateUrl={list:function(){return"/"+x},create:function(e){return"/"+x+"/create/"+e},edit:function(e){return"/"+x+"/edit/"+e},detail:function(e,t){return"/"+x+"/detail/"+e+(t?"/"+t:"")}},t.notebookViewUrl={view:function(e,t,a,n){return"/nb-view/projects/"+e+"/apps/"+t+"/"+encodeURIComponent(a)+"?isFile="+n}},t.grayTaskUrl={list:function(){return"/"+C},create:function(e){var t=e.action,a=e.profile,n=e.taskId,o=e.step,s=e.serviceId;return"/"+C+"/"+t+"/"+a+"/taskId"+(n?"/"+n:"")+"/step/"+o+(s?"/"+s:"")},detail:function(e){return"/"+C+"/create/"+e},edit:function(e){return"/"+C+"/create/"+e}},t.flowTaskUrl={list:function(e){return"/"+S+(e?"/"+e:"")},view:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"invocation";return"/"+S+"/"+e+"/view/"+t},create:function(e){return"/"+S+"/create/"+e},publish:function(e,t,a,n){return"/"+S+"/create/"+e+"/"+t+"/"+a+"/"+n},edit:function(e,t){return"/"+S+"/"+e+"/edit/"+t}},t.datasourceDevUrl={list:function(e){var t=e.key,a=void 0===t?1:t,n=e.logId,o=void 0===n?null:n,s=e.page,r=void 0===s?1:s,i=e.pageSize;return"/"+u+"/dataSourceDev/"+a+"/"+o+"/"+r+"/"+(void 0===i?10:i)},createSync:function(){return"/"+u+"/dataSourceDev/syncCreate"},editSync:function(e,t,a){return"/"+u+"/dataSourceDev/editSync/"+e+"/"+t+"/"+a},logWatcher:function(e,t,a,n){return"/"+u+"/dataSourceDev/logWatcher/"+e+"/"+t+"/"+a+"/"+n}},t.jobManageUrl={list:function(){return"/"+I+"/jobManage"},edit:function(e){return"/"+I+"/jobManage/"+e+"/edit"},create:function(){return"/"+I+"/jobManage/create"}},t.taskLogUrl={list:function(e){var t=e.taskId,a=void 0===t?null:t,n=e.page,o=void 0===n?1:n,s=e.pageSize;return"/"+I+"/taskLog/"+a+"/"+o+"/"+(void 0===s?10:s)},logWatcher:function(e,t,a,n){return"/"+I+"/taskLog/"+e+"/"+t+"/"+a+"/"+n+"/log"}},t.taskManageUrl={list:function(){return"/"+I+"/taskManage"},edit:function(e){return"/"+I+"/taskManage/"+e+"/edit"},create:function(){return"/"+I+"/taskManage/create"}},t.jptServiceUrl={list:function(){return"/"+d+"/visualProgramming"}}},"./src/routes/serviceCode.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/serviceCode/index.js"),r=(0,n.withErrorBoundary)(s.ServiceCodeListPage),i=(0,n.withErrorBoundary)(n.NotFoundPage),d=[{path:"/"+o.SERVICE_CODE,component:r,exact:!0},{path:"/"+o.SERVICE_CODE+"/:codeId/versions",component:s.ServiceCodeVersionListPage,exact:!0},{path:"/"+o.SERVICE_CODE+"/:action(import)",component:s.ImportServiceCodePage,exact:!0},{path:"/"+o.SERVICE_CODE+"/:action(edit)/:codeId",component:s.EditCodeServicePage,exact:!0},{path:"/"+o.SERVICE_CODE+"/:codeId/detail",component:s.ServiceCodeDetailPage,exact:!0},{component:i}];t.default=d},"./src/routes/sonApp.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=a("./src/module/sonApp/index.js"),r=[{path:"/"+o.SON_APP+"/*",component:s.SonManage},{component:n.NotFoundPage}];t.default=r},"./src/routes/sysmgr.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./src/components/exception/index.js"),s=a("./src/routes/routeHelper.jsx"),r=a("./src/module/explain/index.js"),i=a("./src/module/devOpsMonitor/index.js"),d=a("./src/module/dispatch/index.js"),l=a("./src/module/sysManage/resTransfer/index.js"),u=(n=l)&&n.__esModule?n:{default:n},c=a("./src/module/sysManage/index.js"),p=a("./src/module/dataLabel/tagGroupsManage/index.js");var f=(0,o.withErrorBoundary)(o.NotFoundPage),m=(0,o.withErrorBoundary)(c.UserManagePage),h=(0,o.withErrorBoundary)(c.UserGroupsManagePage),g=(0,o.withErrorBoundary)(c.RolesManagePage),v=(0,o.withErrorBoundary)(c.QuotaTenantManagePage),_=(0,o.withErrorBoundary)(p.TagGroupsPage),y=(0,o.withErrorBoundary)(c.LabelsManage),b=(0,o.withErrorBoundary)(c.LogsManager),x=(0,o.withErrorBoundary)(c.TenantsPage),C=(0,o.withErrorBoundary)(c.TenantInfoPage),j=(0,o.withErrorBoundary)(c.TenantInfoPageTab),S=[{path:"/"+s.SYSTEM_MANAGE+"/dispatchTaskList",component:d.DispatchTaskList},{path:"/"+s.SYSTEM_MANAGE+"/devOps/index",component:i.DevOpsMonitorIndexPage},{path:"/"+s.SYSTEM_MANAGE+"/devOps/project",component:i.ProjectList},{path:"/"+s.SYSTEM_MANAGE+"/devOps/services/:type",component:i.ServicesList},{path:"/"+s.SYSTEM_MANAGE+"/menu",component:c.MenuTable},{path:"/"+s.SYSTEM_MANAGE+"/help",component:c.HelpPage},{path:"/"+s.SYSTEM_MANAGE+"/gridDemo",component:c.GridDemo},{path:"/"+s.SYSTEM_MANAGE+"/sceneDemo/:action(create)",component:c.SceneDemoInfoPage},{path:"/"+s.SYSTEM_MANAGE+"/sceneDemo/:configId/:action(edit)",component:c.SceneDemoInfoPage},{path:"/"+s.SYSTEM_MANAGE+"/sceneDemo",component:c.SceneDemoPage},{path:"/"+s.SYSTEM_MANAGE+"/task",component:c.TaskManagePage,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/task/labelTask/:action(create)/:inputDsId/:inputDsName/:inputDsCycle/:excludeDataType/:taskScene",component:c.CreateATaskManagePage},{path:"/"+s.SYSTEM_MANAGE+"/task/labelTask/:action(create)",component:c.CreateATaskManagePage},{path:"/"+s.SYSTEM_MANAGE+"/task/labelTask/:action(create|edit)/:taskId",component:c.CreateATaskManagePage},{path:"/"+s.SYSTEM_MANAGE+"/task/developTask/:action(create)/:inputDsId/:inputDsName/:inputDsCycle/:taskScene",component:c.CreateBTaskManagePage},{path:"/"+s.SYSTEM_MANAGE+"/task/developTask/:action(create)",component:c.CreateBTaskManagePage},{path:"/"+s.SYSTEM_MANAGE+"/task/developTask/:action(create|edit)/:taskId",component:c.CreateBTaskManagePage},{path:"/"+s.SYSTEM_MANAGE+"/task/developTask/:action(view)/:taskId/:taskScene",component:c.ViewATaskConfigPage},{path:"/"+s.SYSTEM_MANAGE+"/task/labelTask/:action(view)/:taskId/:taskScene",component:c.ViewATaskConfigPage},{path:"/"+s.SYSTEM_MANAGE+"/:tab(tagGroups)",component:_,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/:tab(clientManage)",component:c.ControlCentrePage},{path:"/"+s.SYSTEM_MANAGE+"/:tab(apiManage)",component:c.ControlCentrePage},{path:"/"+s.SYSTEM_MANAGE+"/interfacePage",component:c.InterfacePage},{path:"/"+s.SYSTEM_MANAGE+"/sysSwitch",component:c.SwitchPage},{path:"/"+s.SYSTEM_MANAGE+"/dataBases",component:c.DataBasesManagePage},{path:"/"+s.SYSTEM_MANAGE+"/obsInfo",component:c.ObsManagePage},{path:"/"+s.SYSTEM_MANAGE+"/ftpBases",component:c.FtpBasesManagePage},{path:"/"+s.SYSTEM_MANAGE+"/netDisk",component:c.NetDiskManagePage},{path:"/"+s.SYSTEM_MANAGE+"/appTopicBases",component:c.AppClassification},{path:"/"+s.SYSTEM_MANAGE+"/systemAffiche",component:c.AfficheManagePage},{path:"/"+s.SYSTEM_MANAGE+"/messageAffiche/:action(affiche)",component:c.MessageAfficheTabs,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/messageAffiche/:action(message)",component:c.MessageAfficheTabs,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/arithmeticExplain",component:r.ArithmeticExplain},{path:"/"+s.SYSTEM_MANAGE+"/contactInfo",component:c.CreateContactPage},{path:"/"+s.SYSTEM_MANAGE+"/:tab(user)",component:m,permissionId:"USER:LIST",exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/:tab(userGroup)",component:h,permissionId:"USER_GROUP:LIST",exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/:tab(roles)",component:g,permissionId:"ROLE:LIST",exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/:tab(tenant)",component:v,permissionId:"QUOTA_TENANT:LIST",exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/resTransfer",component:u.default,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/labels",component:y,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/logs",component:b,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/tenants",component:x,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/tenants/:action(create)",component:C,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/tenants/:tenantId/:action(edit|view)/:tab(info|user|docs|project)",component:j,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/flinkCluster",component:c.FlinkClusterManage,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/kafka",component:c.KafkaManage,exact:!0},{path:"/"+s.SYSTEM_MANAGE+"/resourceRecovery",component:c.ResourceRecovery,exact:!0},{component:f}];t.default=S},"./src/routes/taskSchedule.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/routes/routeHelper.jsx"),s=c(a("./src/module/taskSchedule/jobMgmt/JobManagement.jsx")),r=c(a("./src/module/taskSchedule/jobMgmt/component/JobCreate.jsx")),i=c(a("./src/module/taskSchedule/taskLog/TaskLog.jsx")),d=c(a("./src/module/taskSchedule/taskLog/component/TaskLogWatcher.jsx")),l=c(a("./src/module/taskSchedule/taskMgmt/TaskMgmtView.jsx")),u=c(a("./src/module/taskSchedule/taskMgmt/component/TaskCreate.jsx"));function c(e){return e&&e.__esModule?e:{default:e}}var p=(0,n.withErrorBoundary)(n.NotFoundPage),f=[{path:"/"+o.TASK_SCHEDULE+"/jobManage",component:s.default,exact:!0},{path:"/"+o.TASK_SCHEDULE+"/jobManage/:id/edit",component:r.default,exact:!0},{path:"/"+o.TASK_SCHEDULE+"/jobManage/create",component:r.default,exact:!0},{path:"/"+o.TASK_SCHEDULE+"/taskManage",component:l.default,exact:!0},{path:"/"+o.TASK_SCHEDULE+"/taskManage/:id/edit",component:u.default,exact:!0},{path:"/"+o.TASK_SCHEDULE+"/taskManage/create",component:u.default,exact:!0},{path:"/"+o.TASK_SCHEDULE+"/taskLog",component:i.default,exact:!0},{path:"/"+o.TASK_SCHEDULE+"/taskLog/:taskId/:page/:pageSize",component:i.default,exact:!0},{path:"/"+o.TASK_SCHEDULE+"/taskLog/:id/:taskId/:page/:pageSize/log",component:d.default,exact:!0},{component:p}];t.default=f},"./src/routes/trainTask.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/module/modelGuide/index.js"),s=a("./src/routes/routeHelper.jsx"),r=(0,n.withErrorBoundary)(o.TrainTaskListPage),i=(0,n.withErrorBoundary)(n.NotFoundPage),d=[{path:"/"+s.TRAIN_TASK+"/:param?",component:r,exact:!0},{path:"/"+s.TRAIN_TASK+"/:taskId/:action(view)/:activeTab(invocation|config|process|io|logs)",component:o.ViewTrainTaskPage,exact:!0},{path:"/"+s.TRAIN_TASK+"/:action(create)/:templateId/:versionsId/:appId?",component:o.EditManagePage,exact:!0},{path:"/"+s.TRAIN_TASK+"/:type/:action(create)/:templateId/:versionsId/:appId?",component:o.EditInitTemplateTaskPage,exact:!0},{path:"/"+s.TRAIN_TASK+"/:action(edit)/:taskId",component:o.EditManagePage,exact:!0},{path:"/"+s.TRAIN_TASK+"/init-tmp/:type/:action(edit)/:taskId",component:o.EditInitTemplateTaskPage,exact:!0},{path:"/"+s.TRAIN_TASK+"/:taskId/invocation/:jobId/:activeTab(config|process|result)/:taskType?",component:o.ViewTrainTaskJobPage,exact:!0},{path:"/"+s.TRAIN_TASK+"/:taskId/invocation/:jobId/result/:arithId/report",component:o.ViewTrainTaskJobReportPage,exact:!0},{component:i}];t.default=d},"./src/routes/trainTemplate.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/components/exception/index.js"),o=a("./src/module/modelGuide/index.js"),s=a("./src/routes/routeHelper.jsx"),r=(0,n.withErrorBoundary)(o.TrainTemplateListPage),i=(0,n.withErrorBoundary)(o.CreateTrainTemplatePage),d=(0,n.withErrorBoundary)(o.TrainTemplateDetailPage),l=(0,n.withErrorBoundary)(o.EditTrainTemplatePage),u=(0,n.withErrorBoundary)(n.NotFoundPage),c=[{path:"/"+s.TRAIN_TEMPLATE,component:r,exact:!0},{path:"/"+s.TRAIN_TEMPLATE+"/create/:source?",component:i,exact:!0},{path:"/"+s.TRAIN_TEMPLATE+"/edit/:templateId",component:l,exact:!0},{path:"/"+s.TRAIN_TEMPLATE+"/detail/:templateId/:versionId?",component:d,exact:!0},{component:u}];t.default=c},"./src/styles/GlobalStyle.js":function(e,t,a){"use strict";t.__esModule=!0,t.StatusIcon=t.PageHeader2=t.SearchBarWrapper=t.TableWrapper=t.PageBody=t.PageHeader=t.PageWrapper=t.colorMap=void 0;var n=(0,r(a("./node_modules/babel-runtime/helpers/taggedTemplateLiteralLoose.js")).default)(["\n html {\n touch-action: pan-y;\n }\n body {\n width: 100% !important;\n height:auto !important;\n min-height: 100vh !important;\n flex-direction: column !important;\n display: flex !important;\n font-size: "," !important;\n font-family:"," !important;\n color: "," !important;\n background:"," !important;\n }\n a {\n color: #147BD1;\n }\n .link{\n color: rgb(20, 123, 209);\n text-decoration: none;\n background-color: transparent;\n outline: none;\n cursor: pointer;\n transition: color .3s;\n &:hover{\n color: #40a9ff;\n }\n }\n /**antd\u8986\u84cb\u6a23\u5f0f\u958b\u59cb\uff08\u5f8c\u671f\u6709\u65f6\u95f4\u8fc1\u79fb\uff09 */\n .dbVmsS .modelApply-tabs .ant-tabs-ink-bar {\n height: 4px;\n background: #147BD1;\n }\n .ant-table-bordered .ant-table-thead > tr > th {\n border-right: 1px solid #f0f0f0;\n background: #fafafa !important;\n height: 48px;\n }\n .ant-table-fixed {\n table-layout: fixed;\n }\n .ant-legacy-form label {\n font-size: 12px;\n }\n .ant-input-group-addon:first-child, .json-schema-react-editor .object-style .name-item .ant-input-group>.ant-input:first-child {\n border-bottom-right-radius: 0px;\n border-top-right-radius: 0px;\n }\n .ant-table-thead > tr > th,\n .ant-table-tbody > tr > td {\n word-wrap: break-word;\n word-break: break-all;\n height: 48px;\n padding: 14px 16px;\n overflow-wrap: break-word;\n }\n .ant-table-thead {\n th {\n background: #e0e6ed;\n }\n }\n\n .ant-input-sm {\n padding: 1px 8px;\n }\n .ant-radio-inner::after {\n top: 3px;\n }\n .ant-radio-inner {\n border-color: #147bd1;\n }\n .ant-radio-checked .ant-radio-inner {\n border-color: #147bd1;\n }\n .ant-modal-header {\n height: 50px;\n padding: 14px 24px;\n border-radius: 4px 4px 0px 0px;\n }\n /**antd\u8986\u84cb\u6a23\u5f0f\u7ed3\u675f\uff08\u5f8c\u671f\u6709\u65f6\u95f4\u8fc1\u79fb\uff09 */\n .clear-fix{\n &::after {\n display: block;\n visibility: hidden;\n font-size: 0;\n content: \"\";\n height: 0;\n clear: both;\n }\n }\n .fn-left{\n float:left;\n }\n .fn-right{\n float:right;\n }\n #ai-mdp-app{\n display: flex;\n flex-direction: column;\n flex:1 1 auto;\n overflow-x: hidden;\n }\n @font-face {\n font-family: \"iconfont\";\n src:\n url('./iconfont/mdp-font/iconfont.woff') format('woff'),\n url('./iconfont/mdp-font/iconfont.ttf') format('truetype'),\n url('./iconfont/mdp-font/iconfont.svg#iconfont') format('svg');\n }\n .ant-modal-close-x {\n width: 40px;\n height: 40px;\n line-height: 45px;\n }\n .ant-modal-body {\n padding: 16px;\n }\n .ant-modal-footer {\n padding: 10 px 16px;\n }\n .select__dropdown .ant-dropdown-menu-item {\n text-align: center;\n }\n .ant-btn.ant-btn-sm {\n padding: 0 8px;\n }\n .ant-btn {\n padding: 0 16px;\n border-radius: 4px;\n }\n button.ant-btn-icon-only {\n padding: 0;\n }\n .ant-btn > .anticon + span, .ant-btn > span + .anticon {\n margin-left: 4px;\n }\n .ant-btn-primary:hover, .ant-btn-primary:focus {\n background: #147bd1;\n border-color: #147bd1;\n }\n .ant-btn-primary {\n background: #147bd1;\n border-color: #147bd1;\n }\n .ant-btn-primary:hover {\n opacity: 0.85;\n }\n .tooltip-error {\n .ant-tooltip-arrow::before,\n .ant-tooltip-inner,\n .ant-tooltip-content {\n background: #d11429;\n }\n }\n .ant-table-placeholder{\n .empty-wrapper .svg-icon{\n width: 120px;\n height: 120px;\n }\n }\n .ant-menu-dark,\n .ant-menu-submenu.ant-menu-dark .ant-menu-sub {\n color: rgba(255, 255, 255, 0.65) !important;\n background: #191919 !important;\n }\n .ant-legacy-form .ant-legacy-form-item-label label{\n font-size: 12px;\n }\n .has-error .ant-select-selector{\n background-color: #fff;\n border-color: #ff4d4f!important;\n }\n .ant-table-selection-column{\n width: 60px;\n }\n .ant-table-content .ant-table-thead > tr > th.ant-table-selection-column,\n .ant-table-content .ant-table-tbody > tr > td.ant-table-selection-column{\n padding: 0;\n }\n\n .project-tree-select__wrapper{\n .ant-select-tree-list-holder{\n overflow: hidden;\n }\n ::-webkit-scrollbar {\n width: 3px;\n }\n }\n\n .project-group-select__wrapper{\n .ant-select-tree-title{\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 165px;\n display: list-item;\n }\n }\n\n .project-select__wrapper {\n .ant-select-tree-title{\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 145px;\n display: list-item;\n }\n }\n\n /** \u5411\u5bfc\u6a21\u677f\u4e34\u65f6\u6837\u5f0f\uff0c\u540e\u671f\u9884\u89c8\u4ee3\u7801\u653e\u5728\u9879\u76ee\u4e2d\uff0c\u975e\u6253\u5305\u7ec4\u4ef6 */\n .json-schema-react-editor-import-modal .data-source__form .data-source__dsCycle{\n margin-left: -4px;\n margin-bottom: 16px;\n flex-grow: 1;\n margin-right: 0;\n width: 100% !important;\n }\n .json-schema-react-editor-import-modal .data-source__form .data-source__dsId{\n margin-bottom: 16px;\n margin-left: 6px;\n flex-grow: 1;\n margin-right: 0;\n width: 100% !important;\n }\n .json-schema-react-editor-import-modal .ant-form-item-control{\n width:100%;\n max-width: 100%;\n flex-grow: 1;\n padding-right: 6px;\n input {\n width: 100% !important;\n }\n }\n .json-schema-react-editor-import-modal .ant-form-item-control{\n padding-right: 15px;\n }\n .json-schema-react-editor-import-modal .ant-form-item-control .ant-select-single{\n width: 100% !important;\n }\n .json-schema-react-editor-import-modal .data-source__dsCycle .ant-form-item-control{\n padding-right: 8px;\n }\n "],["\n html {\n touch-action: pan-y;\n }\n body {\n width: 100% !important;\n height:auto !important;\n min-height: 100vh !important;\n flex-direction: column !important;\n display: flex !important;\n font-size: "," !important;\n font-family:"," !important;\n color: "," !important;\n background:"," !important;\n }\n a {\n color: #147BD1;\n }\n .link{\n color: rgb(20, 123, 209);\n text-decoration: none;\n background-color: transparent;\n outline: none;\n cursor: pointer;\n transition: color .3s;\n &:hover{\n color: #40a9ff;\n }\n }\n /**antd\u8986\u84cb\u6a23\u5f0f\u958b\u59cb\uff08\u5f8c\u671f\u6709\u65f6\u95f4\u8fc1\u79fb\uff09 */\n .dbVmsS .modelApply-tabs .ant-tabs-ink-bar {\n height: 4px;\n background: #147BD1;\n }\n .ant-table-bordered .ant-table-thead > tr > th {\n border-right: 1px solid #f0f0f0;\n background: #fafafa !important;\n height: 48px;\n }\n .ant-table-fixed {\n table-layout: fixed;\n }\n .ant-legacy-form label {\n font-size: 12px;\n }\n .ant-input-group-addon:first-child, .json-schema-react-editor .object-style .name-item .ant-input-group>.ant-input:first-child {\n border-bottom-right-radius: 0px;\n border-top-right-radius: 0px;\n }\n .ant-table-thead > tr > th,\n .ant-table-tbody > tr > td {\n word-wrap: break-word;\n word-break: break-all;\n height: 48px;\n padding: 14px 16px;\n overflow-wrap: break-word;\n }\n .ant-table-thead {\n th {\n background: #e0e6ed;\n }\n }\n\n .ant-input-sm {\n padding: 1px 8px;\n }\n .ant-radio-inner::after {\n top: 3px;\n }\n .ant-radio-inner {\n border-color: #147bd1;\n }\n .ant-radio-checked .ant-radio-inner {\n border-color: #147bd1;\n }\n .ant-modal-header {\n height: 50px;\n padding: 14px 24px;\n border-radius: 4px 4px 0px 0px;\n }\n /**antd\u8986\u84cb\u6a23\u5f0f\u7ed3\u675f\uff08\u5f8c\u671f\u6709\u65f6\u95f4\u8fc1\u79fb\uff09 */\n .clear-fix{\n &::after {\n display: block;\n visibility: hidden;\n font-size: 0;\n content: \"\";\n height: 0;\n clear: both;\n }\n }\n .fn-left{\n float:left;\n }\n .fn-right{\n float:right;\n }\n #ai-mdp-app{\n display: flex;\n flex-direction: column;\n flex:1 1 auto;\n overflow-x: hidden;\n }\n @font-face {\n font-family: \"iconfont\";\n src:\n url('./iconfont/mdp-font/iconfont.woff') format('woff'),\n url('./iconfont/mdp-font/iconfont.ttf') format('truetype'),\n url('./iconfont/mdp-font/iconfont.svg#iconfont') format('svg');\n }\n .ant-modal-close-x {\n width: 40px;\n height: 40px;\n line-height: 45px;\n }\n .ant-modal-body {\n padding: 16px;\n }\n .ant-modal-footer {\n padding: 10 px 16px;\n }\n .select__dropdown .ant-dropdown-menu-item {\n text-align: center;\n }\n .ant-btn.ant-btn-sm {\n padding: 0 8px;\n }\n .ant-btn {\n padding: 0 16px;\n border-radius: 4px;\n }\n button.ant-btn-icon-only {\n padding: 0;\n }\n .ant-btn > .anticon + span, .ant-btn > span + .anticon {\n margin-left: 4px;\n }\n .ant-btn-primary:hover, .ant-btn-primary:focus {\n background: #147bd1;\n border-color: #147bd1;\n }\n .ant-btn-primary {\n background: #147bd1;\n border-color: #147bd1;\n }\n .ant-btn-primary:hover {\n opacity: 0.85;\n }\n .tooltip-error {\n .ant-tooltip-arrow::before,\n .ant-tooltip-inner,\n .ant-tooltip-content {\n background: #d11429;\n }\n }\n .ant-table-placeholder{\n .empty-wrapper .svg-icon{\n width: 120px;\n height: 120px;\n }\n }\n .ant-menu-dark,\n .ant-menu-submenu.ant-menu-dark .ant-menu-sub {\n color: rgba(255, 255, 255, 0.65) !important;\n background: #191919 !important;\n }\n .ant-legacy-form .ant-legacy-form-item-label label{\n font-size: 12px;\n }\n .has-error .ant-select-selector{\n background-color: #fff;\n border-color: #ff4d4f!important;\n }\n .ant-table-selection-column{\n width: 60px;\n }\n .ant-table-content .ant-table-thead > tr > th.ant-table-selection-column,\n .ant-table-content .ant-table-tbody > tr > td.ant-table-selection-column{\n padding: 0;\n }\n\n .project-tree-select__wrapper{\n .ant-select-tree-list-holder{\n overflow: hidden;\n }\n ::-webkit-scrollbar {\n width: 3px;\n }\n }\n\n .project-group-select__wrapper{\n .ant-select-tree-title{\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 165px;\n display: list-item;\n }\n }\n\n .project-select__wrapper {\n .ant-select-tree-title{\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 145px;\n display: list-item;\n }\n }\n\n /** \u5411\u5bfc\u6a21\u677f\u4e34\u65f6\u6837\u5f0f\uff0c\u540e\u671f\u9884\u89c8\u4ee3\u7801\u653e\u5728\u9879\u76ee\u4e2d\uff0c\u975e\u6253\u5305\u7ec4\u4ef6 */\n .json-schema-react-editor-import-modal .data-source__form .data-source__dsCycle{\n margin-left: -4px;\n margin-bottom: 16px;\n flex-grow: 1;\n margin-right: 0;\n width: 100% !important;\n }\n .json-schema-react-editor-import-modal .data-source__form .data-source__dsId{\n margin-bottom: 16px;\n margin-left: 6px;\n flex-grow: 1;\n margin-right: 0;\n width: 100% !important;\n }\n .json-schema-react-editor-import-modal .ant-form-item-control{\n width:100%;\n max-width: 100%;\n flex-grow: 1;\n padding-right: 6px;\n input {\n width: 100% !important;\n }\n }\n .json-schema-react-editor-import-modal .ant-form-item-control{\n padding-right: 15px;\n }\n .json-schema-react-editor-import-modal .ant-form-item-control .ant-select-single{\n width: 100% !important;\n }\n .json-schema-react-editor-import-modal .data-source__dsCycle .ant-form-item-control{\n padding-right: 8px;\n }\n "]),o=a("./node_modules/styled-components/dist/styled-components.browser.esm.js"),s=r(o);function r(e){return e&&e.__esModule?e:{default:e}}var i=(0,o.createGlobalStyle)(n,(function(e){return e.theme.font.size.base}),(function(e){return e.theme.font.family.default}),(function(e){return e.theme.color.primary}),(function(e){return e.theme.bgcolor.primary}));t.default=i;var d=s.default.div.withConfig({displayName:"GlobalStyle__PageWrapper",componentId:"epnofx-0"})(["display:flex;flex-direction:column;flex:1 1 auto;background:#fff;padding:",";",";"],(function(e){return e.padding?e.padding:"24px 16px"}),(function(e){return e.style})),l=s.default.div.withConfig({displayName:"GlobalStyle__PageHeader",componentId:"epnofx-1"})(["position:relative;width:100%;z-index:20;justify-content:space-between;display:flex;&.right{justify-content:flex-end;}"]),u=s.default.div.withConfig({displayName:"GlobalStyle__PageHeader2",componentId:"epnofx-2"})(["position:relative;width:100%;z-index:20;display:block;&.right{justify-content:flex-end;}"]),c=s.default.div.withConfig({displayName:"GlobalStyle__PageBody",componentId:"epnofx-3"})(["display:flex;min-height:500px;position:relative;flex-direction:row;flex-wrap:nowrap;flex:1 1 auto;margin-top:16px;"]),p=s.default.div.withConfig({displayName:"GlobalStyle__TableWrapper",componentId:"epnofx-4"})(["flex:1 1 auto;"]),f=s.default.div.withConfig({displayName:"GlobalStyle__SearchBarWrapper",componentId:"epnofx-5"})(["float:right;display:flex;justify-content:flex-end;.search__item-wrapper{margin-left:16px;}"]),m=s.default.span.withConfig({displayName:"GlobalStyle__StatusIcon",componentId:"epnofx-6"})(["width:8px;height:8px;border-radius:3px;background:",";display:inline-block;margin-right:10px;"],(function(e){return e.color}));t.colorMap={main:"#147BD1",success:"#6dc41f",sub_success:function(e){return"rgba(109,196,31,"+e+")"},error:"#d11429",sub_error:function(e){return"rgba(209,20,41,"+e+")"},warn:"#eda30f",sub_warn:function(e){return"rgba(237,163,15,"+e+")"},info:"#147bd1",sub_info:function(e){return"rgba(20,123,209,"+e+")"},invalid:"#a0a0a0",invalid_info:function(e){return"rgba(0,0,0,"+e+")"}},t.PageWrapper=d,t.PageHeader=l,t.PageBody=c,t.TableWrapper=p,t.SearchBarWrapper=f,t.PageHeader2=u,t.StatusIcon=m},"./src/styles/animate.css":function(e,t,a){},"./src/styles/ant-default.less":function(e,t,a){},"./src/styles/audioPlayer/styles.css":function(e,t,a){},"./src/styles/iconsvg sync recursive \\.svg$":function(e,t,a){var n={"./403.svg":"./src/styles/iconsvg/403.svg","./404.svg":"./src/styles/iconsvg/404.svg","./ApacheHive.svg":"./src/styles/iconsvg/ApacheHive.svg","./DB2LINUXX8664.svg":"./src/styles/iconsvg/DB2LINUXX8664.svg","./GBASE.svg":"./src/styles/iconsvg/GBASE.svg","./HWHive.svg":"./src/styles/iconsvg/HWHive.svg","./Hbase.svg":"./src/styles/iconsvg/Hbase.svg","./LoadingAnimate.svg":"./src/styles/iconsvg/LoadingAnimate.svg","./MySQL.svg":"./src/styles/iconsvg/MySQL.svg","./Oracle.svg":"./src/styles/iconsvg/Oracle.svg","./PostgreSQL.svg":"./src/styles/iconsvg/PostgreSQL.svg","./Vertica.svg":"./src/styles/iconsvg/Vertica.svg","./addProject.svg":"./src/styles/iconsvg/addProject.svg","./apiChange.svg":"./src/styles/iconsvg/apiChange.svg","./applications.svg":"./src/styles/iconsvg/applications.svg","./belle.svg":"./src/styles/iconsvg/belle.svg","./bianma.svg":"./src/styles/iconsvg/bianma.svg","./bulb.svg":"./src/styles/iconsvg/bulb.svg","./cancelExec.svg":"./src/styles/iconsvg/cancelExec.svg","./canvas_clear.svg":"./src/styles/iconsvg/canvas_clear.svg","./canvas_revert.svg":"./src/styles/iconsvg/canvas_revert.svg","./card.svg":"./src/styles/iconsvg/card.svg","./cloese.svg":"./src/styles/iconsvg/cloese.svg","./code-box.svg":"./src/styles/iconsvg/code-box.svg","./config.svg":"./src/styles/iconsvg/config.svg","./connected.svg":"./src/styles/iconsvg/connected.svg","./console.svg":"./src/styles/iconsvg/console.svg","./copy.svg":"./src/styles/iconsvg/copy.svg","./create.svg":"./src/styles/iconsvg/create.svg","./data.svg":"./src/styles/iconsvg/data.svg","./dataDistribution.svg":"./src/styles/iconsvg/dataDistribution.svg","./datesetCount.svg":"./src/styles/iconsvg/datesetCount.svg","./delete.svg":"./src/styles/iconsvg/delete.svg","./delete2.svg":"./src/styles/iconsvg/delete2.svg","./disconnected.svg":"./src/styles/iconsvg/disconnected.svg","./edit.svg":"./src/styles/iconsvg/edit.svg","./execute.svg":"./src/styles/iconsvg/execute.svg","./execute2.svg":"./src/styles/iconsvg/execute2.svg","./expand.svg":"./src/styles/iconsvg/expand.svg","./export.svg":"./src/styles/iconsvg/export.svg","./extend.svg":"./src/styles/iconsvg/extend.svg","./face.svg":"./src/styles/iconsvg/face.svg","./find.svg":"./src/styles/iconsvg/find.svg","./fullscreen.svg":"./src/styles/iconsvg/fullscreen.svg","./help.svg":"./src/styles/iconsvg/help.svg","./help1.svg":"./src/styles/iconsvg/help1.svg","./impower.svg":"./src/styles/iconsvg/impower.svg","./jiedian.svg":"./src/styles/iconsvg/jiedian.svg","./jkgl.svg":"./src/styles/iconsvg/jkgl.svg","./jupyter.svg":"./src/styles/iconsvg/jupyter.svg","./list.svg":"./src/styles/iconsvg/list.svg","./log.svg":"./src/styles/iconsvg/log.svg","./look.svg":"./src/styles/iconsvg/look.svg","./menu/bqgl.svg":"./src/styles/iconsvg/menu/bqgl.svg","./menu/bzrw.svg":"./src/styles/iconsvg/menu/bzrw.svg","./menu/dataDevelopment.svg":"./src/styles/iconsvg/menu/dataDevelopment.svg","./menu/datamgr.svg":"./src/styles/iconsvg/menu/datamgr.svg","./menu/dispatch.svg":"./src/styles/iconsvg/menu/dispatch.svg","./menu/fbscc.svg":"./src/styles/iconsvg/menu/fbscc.svg","./menu/flbqgl.svg":"./src/styles/iconsvg/menu/flbqgl.svg","./menu/ftp.svg":"./src/styles/iconsvg/menu/ftp.svg","./menu/fwdm.svg":"./src/styles/iconsvg/menu/fwdm.svg","./menu/fwjx.svg":"./src/styles/iconsvg/menu/fwjx.svg","./menu/home.svg":"./src/styles/iconsvg/menu/home.svg","./menu/jcjxgl.svg":"./src/styles/iconsvg/menu/jcjxgl.svg","./menu/jsgl.svg":"./src/styles/iconsvg/menu/jsgl.svg","./menu/jtpz.svg":"./src/styles/iconsvg/menu/jtpz.svg","./menu/kgpz.svg":"./src/styles/iconsvg/menu/kgpz.svg","./menu/learningPiece.svg":"./src/styles/iconsvg/menu/learningPiece.svg","./menu/lxtl.svg":"./src/styles/iconsvg/menu/lxtl.svg","./menu/model.svg":"./src/styles/iconsvg/menu/model.svg","./menu/modelBase.svg":"./src/styles/iconsvg/menu/modelBase.svg","./menu/modelInference.svg":"./src/styles/iconsvg/menu/modelInference.svg","./menu/modelTrain.svg":"./src/styles/iconsvg/menu/modelTrain.svg","./menu/mxgl.svg":"./src/styles/iconsvg/menu/mxgl.svg","./menu/mxkf.svg":"./src/styles/iconsvg/menu/mxkf.svg","./menu/nbfw.svg":"./src/styles/iconsvg/menu/nbfw.svg","./menu/operationManagement.svg":"./src/styles/iconsvg/menu/operationManagement.svg","./menu/rwgl.svg":"./src/styles/iconsvg/menu/rwgl.svg","./menu/sjkpz.svg":"./src/styles/iconsvg/menu/sjkpz.svg","./menu/sjts.svg":"./src/styles/iconsvg/menu/sjts.svg","./menu/sjycl.svg":"./src/styles/iconsvg/menu/sjycl.svg","./menu/sjygl.svg":"./src/styles/iconsvg/menu/sjygl.svg","./menu/specialArea.svg":"./src/styles/iconsvg/menu/specialArea.svg","./menu/users.svg":"./src/styles/iconsvg/menu/users.svg","./menu/xljx.svg":"./src/styles/iconsvg/menu/xljx.svg","./menu/xtgg.svg":"./src/styles/iconsvg/menu/xtgg.svg","./menu/yhgl.svg":"./src/styles/iconsvg/menu/yhgl.svg","./menu/yhzgl.svg":"./src/styles/iconsvg/menu/yhzgl.svg","./menu/yyflpz.svg":"./src/styles/iconsvg/menu/yyflpz.svg","./menu/zxtl.svg":"./src/styles/iconsvg/menu/zxtl.svg","./message.svg":"./src/styles/iconsvg/message.svg","./modelCount.svg":"./src/styles/iconsvg/modelCount.svg","./noData.svg":"./src/styles/iconsvg/noData.svg","./node-arith.svg":"./src/styles/iconsvg/node-arith.svg","./node-code.svg":"./src/styles/iconsvg/node-code.svg","./node-db.svg":"./src/styles/iconsvg/node-db.svg","./node-eval.svg":"./src/styles/iconsvg/node-eval.svg","./node-res.svg":"./src/styles/iconsvg/node-res.svg","./notebookTrain.svg":"./src/styles/iconsvg/notebookTrain.svg","./offService.svg":"./src/styles/iconsvg/offService.svg","./onlineService.svg":"./src/styles/iconsvg/onlineService.svg","./out.svg":"./src/styles/iconsvg/out.svg","./pause-circle.svg":"./src/styles/iconsvg/pause-circle.svg","./processing.svg":"./src/styles/iconsvg/processing.svg","./project.svg":"./src/styles/iconsvg/project.svg","./projectCount.svg":"./src/styles/iconsvg/projectCount.svg","./projectManage.svg":"./src/styles/iconsvg/projectManage.svg","./projectMember.svg":"./src/styles/iconsvg/projectMember.svg","./publish.svg":"./src/styles/iconsvg/publish.svg","./publish1.svg":"./src/styles/iconsvg/publish1.svg","./publishCancel.svg":"./src/styles/iconsvg/publishCancel.svg","./publishSuccess.svg":"./src/styles/iconsvg/publishSuccess.svg","./purge.svg":"./src/styles/iconsvg/purge.svg","./reasonRate.svg":"./src/styles/iconsvg/reasonRate.svg","./reasoningResources.svg":"./src/styles/iconsvg/reasoningResources.svg","./reassign.svg":"./src/styles/iconsvg/reassign.svg","./redo.svg":"./src/styles/iconsvg/redo.svg","./restart.svg":"./src/styles/iconsvg/restart.svg","./runInstances.svg":"./src/styles/iconsvg/runInstances.svg","./save.svg":"./src/styles/iconsvg/save.svg","./search.svg":"./src/styles/iconsvg/search.svg","./select.svg":"./src/styles/iconsvg/select.svg","./settings.svg":"./src/styles/iconsvg/settings.svg","./share.svg":"./src/styles/iconsvg/share.svg","./shares.svg":"./src/styles/iconsvg/shares.svg","./signout.svg":"./src/styles/iconsvg/signout.svg","./sjjghkf.svg":"./src/styles/iconsvg/sjjghkf.svg","./start.svg":"./src/styles/iconsvg/start.svg","./stop.svg":"./src/styles/iconsvg/stop.svg","./sysmgr.svg":"./src/styles/iconsvg/sysmgr.svg","./trainRate.svg":"./src/styles/iconsvg/trainRate.svg","./trainResources.svg":"./src/styles/iconsvg/trainResources.svg","./tuili.svg":"./src/styles/iconsvg/tuili.svg","./undo.svg":"./src/styles/iconsvg/undo.svg","./updatePws.svg":"./src/styles/iconsvg/updatePws.svg","./upgrade.svg":"./src/styles/iconsvg/upgrade.svg","./user.svg":"./src/styles/iconsvg/user.svg","./userCount.svg":"./src/styles/iconsvg/userCount.svg","./view.svg":"./src/styles/iconsvg/view.svg","./wizardTrain.svg":"./src/styles/iconsvg/wizardTrain.svg","./xiangmu.svg":"./src/styles/iconsvg/xiangmu.svg","./xmgl.svg":"./src/styles/iconsvg/xmgl.svg","./zoom_revert.svg":"./src/styles/iconsvg/zoom_revert.svg","./zujian.svg":"./src/styles/iconsvg/zujian.svg","./zygl.svg":"./src/styles/iconsvg/zygl.svg"};function o(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="./src/styles/iconsvg sync recursive \\.svg$"},"./src/styles/iconsvg/403.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-403",use:"icon-403-usage",viewBox:"0 0 300 250",content:'<symbol viewBox="0 0 300 250" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-403">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>403</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <linearGradient x1="22.5860964%" y1="24.7330768%" x2="81.6200014%" y2="78.4814365%" id="icon-403_linearGradient-1">\r\n <stop stop-color="#D8DDE2" offset="0%" />\r\n <stop stop-color="#C4C9CE" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="icon-403_linearGradient-2">\r\n <stop stop-color="#F8F9FA" offset="0%" />\r\n <stop stop-color="#EEF0F4" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-403_linearGradient-3">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-403_linearGradient-4">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="24.9131944%" y1="24.7330768%" x2="78.9358581%" y2="78.4814365%" id="icon-403_linearGradient-5">\r\n <stop stop-color="#D8DDE2" offset="0%" />\r\n <stop stop-color="#C4C9CE" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-403_linearGradient-6">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="72.8395392%" y1="0%" x2="72.8395392%" y2="100%" id="icon-403_linearGradient-7">\r\n <stop stop-color="#DEE1E5" offset="0%" />\r\n <stop stop-color="#F1F2F4" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="icon-403_linearGradient-8">\r\n <stop stop-color="#F8F9FA" offset="0%" />\r\n <stop stop-color="#EEF0F4" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="100%" y1="0%" x2="0%" y2="0%" id="icon-403_linearGradient-9">\r\n <stop stop-color="#FFFFFF" stop-opacity="0" offset="0%" />\r\n <stop stop-color="#FFFFFF" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-403_linearGradient-10">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-403_linearGradient-11">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="49.9425452%" y1="24.7330768%" x2="50.06627%" y2="78.4814365%" id="icon-403_linearGradient-12">\r\n <stop stop-color="#D8DDE2" offset="0%" />\r\n <stop stop-color="#C4C9CE" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="24.7330768%" x2="107.671468%" y2="78.4814365%" id="icon-403_linearGradient-13">\r\n <stop stop-color="#D8DDE2" offset="0%" />\r\n <stop stop-color="#C4C9CE" offset="100%" />\r\n </linearGradient>\r\n </defs>\r\n <g id="icon-403_\u6846\u67b6\u5e03\u5c40" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-403_5.\u7f3a\u7701\u9875-403" transform="translate(-584.000000, -395.000000)">\r\n <g id="icon-403_\u7f16\u7ec4-22">\r\n <g id="icon-403_\u7f16\u7ec4-3" transform="translate(548.000000, 313.000000)">\r\n <g id="icon-403_403">\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-2" stroke="#EEF0F4" stroke-width="1.33333333" opacity="0" x="0" y="0" width="400" height="400" />\r\n <g id="icon-403_\u7f16\u7ec4-11" transform="translate(36.000000, 82.666667)">\r\n <rect id="icon-403_\u77e9\u5f62" fill="url(#icon-403_linearGradient-1)" x="76" y="0" width="129.333333" height="174.666667" />\r\n <polygon id="icon-403_\u77e9\u5f62\u5907\u4efd-41" fill="url(#icon-403_linearGradient-2)" points="76 160 189.333333 160 205.333333 174.666667 76 174.666667" />\r\n <polygon id="icon-403_\u77e9\u5f62\u5907\u4efd-40" fill="#DEE1E5" points="189.333333 0 205.333333 0 205.333333 174.666667 189.333333 160" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-54" fill="url(#icon-403_linearGradient-3)" x="53.3333333" y="96" width="38.6666667" height="14.6666667" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-55" fill="url(#icon-403_linearGradient-4)" x="205.333333" y="52" width="30.6666667" height="14.6666667" />\r\n <polygon id="icon-403_\u77e9\u5f62\u5907\u4efd-39" fill="url(#icon-403_linearGradient-5)" points="76 -5.68434189e-14 189.333333 -5.68434189e-14 189.333333 160 76 160" />\r\n <path d="M149.333333,72.0158851 L149.333333,77.3492185 L154.666667,77.3545082 L154.666667,104.021175 L112,103.978857 L112,77.3121906 L117.333333,77.3174803 L117.333333,71.984147 C117.333333,63.147591 124.496777,55.9912518 133.333333,56.000008 C142.169889,56.0087803 149.333333,63.1793291 149.333333,72.0158851 Z M138.666667,88.0053058 L128,87.9947264 L128,93.3280597 L138.666667,93.3386391 L138.666667,88.0053058 Z M133.333333,66.6666801 C130.387815,66.6637613 128,69.0492077 128,71.9947264 L128,77.3280597 L138.666667,77.3386391 L138.666667,72.0053058 C138.666667,69.0597871 136.278852,66.6696042 133.333333,66.6666801 Z" id="icon-403_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-403_linearGradient-6)" />\r\n <rect id="icon-403_\u77e9\u5f62" fill="url(#icon-403_linearGradient-7)" x="50.6666667" y="174.666667" width="181.333333" height="18.6666667" />\r\n <polygon id="icon-403_\u77e9\u5f62\u5907\u4efd-47" fill="url(#icon-403_linearGradient-8)" points="50.6666667 193.333333 232 193.333333 242.666667 202.666667 61.3333333 202.666667" />\r\n <polygon id="icon-403_\u77e9\u5f62\u5907\u4efd-49" fill="url(#icon-403_linearGradient-8)" points="61.3333333 221.333333 242.666667 221.333333 253.333333 230.666667 72 230.666667" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-48" fill="url(#icon-403_linearGradient-7)" x="61.3333333" y="202.666667" width="181.333333" height="18.6666667" />\r\n <path d="M242.666667,204 L61.3333333,204 L61.3333333,202.666667 L242.666667,202.666667 L242.666667,204 Z" id="icon-403_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-403_linearGradient-9)" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-50" fill="url(#icon-403_linearGradient-7)" x="72" y="230.666667" width="181.333333" height="18.6666667" />\r\n <path d="M253.333333,232 L72,232 L72,230.666667 L253.333333,230.666667 L253.333333,232 Z" id="icon-403_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-403_linearGradient-9)" />\r\n <path d="M232,176 L50.6666667,176 L50.6666667,174.666667 L232,174.666667 L232,176 Z" id="icon-403_\u5f62\u72b6\u7ed3\u5408\u5907\u4efd-10" fill="url(#icon-403_linearGradient-9)" />\r\n <rect id="icon-403_\u77e9\u5f62" fill="url(#icon-403_linearGradient-4)" x="216" y="88" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-51" fill="url(#icon-403_linearGradient-4)" x="228" y="117.333333" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-58" fill="url(#icon-403_linearGradient-10)" x="205.333333" y="117.333333" width="16" height="14.6666667" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-52" fill="url(#icon-403_linearGradient-4)" x="18.6666667" y="96" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-56" fill="url(#icon-403_linearGradient-4)" x="0" y="137.333333" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-53" fill="url(#icon-403_linearGradient-4)" x="38.6666667" y="114.666667" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-57" fill="url(#icon-403_linearGradient-11)" x="30.6666667" y="37.3333333" width="17.3333333" height="14.6666667" />\r\n <rect id="icon-403_\u77e9\u5f62" fill="url(#icon-403_linearGradient-12)" x="270.666667" y="92" width="5.33333333" height="157.333333" />\r\n <circle id="icon-403_\u692d\u5706\u5f62" fill="url(#icon-403_linearGradient-13)" cx="269.333333" cy="66.6666667" r="26.6666667" />\r\n <circle id="icon-403_\u692d\u5706\u5f62\u5907\u4efd-7" fill="#DEE1E5" cx="273.333333" cy="66.6666667" r="26.6666667" />\r\n <g id="icon-403_\u7f16\u7ec4-2" transform="translate(273.333333, 66.666667) rotate(-315.000000) translate(-273.333333, -66.666667) translate(261.333333, 54.666667)" fill="#FFFFFF">\r\n <rect id="icon-403_\u77e9\u5f62" x="9.33333333" y="0" width="5.33333333" height="24" />\r\n <rect id="icon-403_\u77e9\u5f62\u5907\u4efd-59" transform="translate(12.000000, 12.000000) rotate(-270.000000) translate(-12.000000, -12.000000) " x="9.33333333" y="0" width="5.33333333" height="24" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/404.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 306 278",content:'<symbol viewBox="0 0 306 278" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-404">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>\u7f16\u7ec4 10</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <linearGradient x1="0%" y1="49.4156318%" x2="100%" y2="50.5843682%" id="icon-404_linearGradient-1">\r\n <stop stop-color="#CFD3D8" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="49.7777778%" x2="100%" y2="50.2222222%" id="icon-404_linearGradient-2">\r\n <stop stop-color="#CFD3D8" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="49.3079585%" x2="100%" y2="50.6920415%" id="icon-404_linearGradient-3">\r\n <stop stop-color="#CFD3D8" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="icon-404_linearGradient-4">\r\n <stop stop-color="#F8F9FA" offset="0%" />\r\n <stop stop-color="#EEF0F4" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="48.3033241%" x2="100%" y2="51.6966759%" id="icon-404_linearGradient-5">\r\n <stop stop-color="#CFD3D8" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="7.10494491%" y1="0%" x2="92.8950551%" y2="100%" id="icon-404_linearGradient-6">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="icon-404_linearGradient-7">\r\n <stop stop-color="#F8F9FA" offset="0%" />\r\n <stop stop-color="#E9EBEF" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="36.1495845%" x2="100%" y2="63.8504155%" id="icon-404_linearGradient-8">\r\n <stop stop-color="#D4D8DE" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="49.4854022%" x2="100%" y2="50.5145978%" id="icon-404_linearGradient-9">\r\n <stop stop-color="#CFD3D8" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="0%" x2="87.7197099%" y2="100%" id="icon-404_linearGradient-10">\r\n <stop stop-color="#C4C9CE" offset="0%" />\r\n <stop stop-color="#E4E6E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="37.5%" x2="159.009962%" y2="62.5%" id="icon-404_linearGradient-11">\r\n <stop stop-color="#C4C9CE" offset="0%" />\r\n <stop stop-color="#E4E6E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="49.5402515%" x2="159.009962%" y2="50.4597485%" id="icon-404_linearGradient-12">\r\n <stop stop-color="#C4C9CE" offset="0%" />\r\n <stop stop-color="#E4E6E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="100%" y1="50%" x2="-5.68434189e-12%" y2="50%" id="icon-404_linearGradient-13">\r\n <stop stop-color="#CFD3D8" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="100%" y1="50%" x2="-5.68434189e-12%" y2="50%" id="icon-404_linearGradient-14">\r\n <stop stop-color="#CFD3D8" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="icon-404_linearGradient-15">\r\n <stop stop-color="#F8F9FA" offset="0%" />\r\n <stop stop-color="#EEF0F4" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="19.7530864%" x2="100%" y2="80.2469136%" id="icon-404_linearGradient-16">\r\n <stop stop-color="#CFD3D8" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="45.7465278%" x2="100%" y2="54.2534722%" id="icon-404_linearGradient-17">\r\n <stop stop-color="#CFD3D8" offset="0%" />\r\n <stop stop-color="#E0E3E9" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="27.2889484%" y1="44.9543502%" x2="65.3972967%" y2="55.0456498%" id="icon-404_linearGradient-18">\r\n <stop stop-color="#F6F7F9" offset="0%" />\r\n <stop stop-color="#CFD3D8" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="icon-404_linearGradient-19">\r\n <stop stop-color="#F8F9FA" offset="0%" />\r\n <stop stop-color="#E2E5EC" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="54.7885778%" x2="100%" y2="47.538959%" id="icon-404_linearGradient-20">\r\n <stop stop-color="#FCFCFC" offset="0%" />\r\n <stop stop-color="#E9EBEF" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="-2.84217094e-12%" y1="50%" x2="100%" y2="50%" id="icon-404_linearGradient-21">\r\n <stop stop-color="#C4C9CE" offset="0%" />\r\n <stop stop-color="#E4E6E9" offset="100%" />\r\n </linearGradient>\r\n </defs>\r\n <g id="icon-404_\u6846\u67b6\u5e03\u5c40" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-404_5.\u7f3a\u7701\u9875-404" transform="translate(-594.000000, -374.000000)">\r\n <g id="icon-404_\u7f16\u7ec4-21">\r\n <g id="icon-404_\u7f16\u7ec4-3" transform="translate(548.000000, 313.000000)">\r\n <g id="icon-404_\u7f16\u7ec4-10">\r\n <rect id="icon-404_\u77e9\u5f62" stroke="#EEF0F4" stroke-width="1.33333333" opacity="0" x="0" y="0" width="400" height="400" />\r\n <g id="icon-404_\u7f16\u7ec4-7" transform="translate(46.712029, 61.333333)">\r\n <rect id="icon-404_\u77e9\u5f62" fill="url(#icon-404_linearGradient-1)" x="3.95463804" y="201.333333" width="98.6666667" height="10.6666667" rx="5.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-12" fill="url(#icon-404_linearGradient-2)" x="95.954638" y="224" width="160" height="10.6666667" rx="5.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-13" fill="url(#icon-404_linearGradient-3)" x="197.287971" y="257.333333" width="90.6666667" height="10.6666667" rx="5.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-11" fill="url(#icon-404_linearGradient-4)" x="10.6213047" y="100" width="85.3333333" height="106.666667" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-9" fill="url(#icon-404_linearGradient-5)" x="27.954638" y="136" width="50.6666667" height="9.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-14" fill="url(#icon-404_linearGradient-5)" x="27.954638" y="152" width="50.6666667" height="9.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-15" fill="url(#icon-404_linearGradient-5)" x="27.954638" y="168" width="50.6666667" height="9.33333333" />\r\n <path d="M206.621305,0 L206.621305,162.666667 L69.2879714,162.666667 C61.9241747,162.666667 55.954638,156.69713 55.954638,149.333333 L55.954638,0 L206.621305,0 Z" id="icon-404_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-404_linearGradient-6)" />\r\n <path d="M229.287971,94.6666667 C236.651768,94.6666667 242.621305,100.636203 242.621305,108 L242.621305,149.333333 L242.620305,149.410667 L242.621305,229.333333 L109.287971,229.333333 L109.287305,162.666667 L82.6213047,162.666667 L82.6213047,108 C82.6213047,100.636203 88.5908414,94.6666667 95.954638,94.6666667 L229.287971,94.6666667 Z" id="icon-404_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-404_linearGradient-7)" />\r\n <rect id="icon-404_\u77e9\u5f62" fill="url(#icon-404_linearGradient-8)" x="129.287971" y="114.666667" width="25.3333333" height="13.3333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-4" fill="url(#icon-404_linearGradient-9)" x="129.287971" y="140" width="92" height="9.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-7" fill="url(#icon-404_linearGradient-9)" x="129.287971" y="156" width="92" height="9.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-8" fill="url(#icon-404_linearGradient-9)" x="129.287971" y="172" width="92" height="9.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-9" fill="url(#icon-404_linearGradient-5)" x="129.287971" y="202.666667" width="50.6666667" height="9.33333333" />\r\n <path d="M69.2879714,162.666667 L69.5982752,162.663127 C76.7140954,162.500624 82.4528166,156.763363 82.6176617,149.648122 L82.6213047,149.333333 L82.6213047,108 C82.6213047,100.636203 88.5908414,94.6666667 95.954638,94.6666667 C103.318435,94.6666667 109.287971,100.636203 109.287971,108 L109.286971,146.666667 L109.287971,146.666667 L109.287971,162.666667 L69.2879714,162.666667 Z" id="icon-404_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-404_linearGradient-10)" />\r\n <path d="M95.954638,94.6666667 C103.318435,94.6666667 109.287971,100.636203 109.287971,108 L109.286971,146.666667 L109.287971,146.666667 L109.287971,162.666667 L107.954638,162.666667 L107.954638,146.666667 L107.953638,146.666667 L107.954638,108 C107.954638,100.859903 102.342282,95.0306427 95.2884163,94.6830653 C95.5091987,94.6721589 95.731277,94.6666667 95.954638,94.6666667 Z" id="icon-404_\u5f62\u72b6\u7ed3\u5408" fill="#FFFFFF" />\r\n <rect id="icon-404_\u77e9\u5f62" fill="url(#icon-404_linearGradient-11)" x="82.6213047" y="26.6666667" width="26.6666667" height="13.3333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-4" fill="url(#icon-404_linearGradient-12)" x="82.6213047" y="52" width="97.3333333" height="9.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-7" fill="url(#icon-404_linearGradient-12)" x="82.6213047" y="68" width="97.3333333" height="9.33333333" />\r\n <g id="icon-404_\u7f16\u7ec4" transform="translate(255.600149, 59.315699) rotate(-330.000000) translate(-255.600149, -59.315699) translate(248.600149, 31.815699)">\r\n <rect id="icon-404_\u77e9\u5f62" fill="url(#icon-404_linearGradient-13)" x="0" y="0" width="13.3333333" height="34.6666667" rx="6.66666667" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-10" fill="url(#icon-404_linearGradient-14)" x="0" y="41.3333333" width="13.3333333" height="13.3333333" rx="6.66666667" />\r\n </g>\r\n <g id="icon-404_\u7f16\u7ec4\u5907\u4efd" transform="translate(280.750470, 86.043370) rotate(-300.000000) translate(-280.750470, -86.043370) translate(273.750470, 58.543370)">\r\n <rect id="icon-404_\u77e9\u5f62" fill="url(#icon-404_linearGradient-13)" x="0" y="0" width="13.3333333" height="34.6666667" rx="6.66666667" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-10" fill="url(#icon-404_linearGradient-14)" x="0" y="41.3333333" width="13.3333333" height="13.3333333" rx="6.66666667" />\r\n </g>\r\n <path d="M210.621305,202.666667 L271.954638,202.666667 L271.954638,261.333333 C271.954638,262.069713 271.357684,262.666667 270.621305,262.666667 L211.954638,262.666667 C211.218258,262.666667 210.621305,262.069713 210.621305,261.333333 L210.621305,202.666667 L210.621305,202.666667 Z" id="icon-404_\u77e9\u5f62" fill="url(#icon-404_linearGradient-15)" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-16" fill="url(#icon-404_linearGradient-16)" x="225.287971" y="220" width="12" height="9.33333333" />\r\n <rect id="icon-404_\u77e9\u5f62\u5907\u4efd-17" fill="url(#icon-404_linearGradient-17)" x="225.287971" y="236" width="32" height="9.33333333" />\r\n <polygon id="icon-404_\u77e9\u5f62" fill="url(#icon-404_linearGradient-18)" points="-4.8316906e-13 251.760332 91.4059144 247.597672 91.4059144 276.634411 38.1234679 274.264339" />\r\n <path d="M38.9021745,219.075231 C45.6274203,207.628201 59.9863665,203.212551 72.0116099,208.452853 L72.0249819,208.427213 L105.433011,221.108142 L78.0725811,273.001084 L48.7356302,254.305065 L48.7659144,254.243339 L48.4422449,254.063554 C36.1007085,247.061385 31.7910558,231.638287 38.689691,219.443761 Z" id="icon-404_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-404_linearGradient-19)" />\r\n <circle id="icon-404_\u692d\u5706\u5f62" fill="url(#icon-404_linearGradient-20)" transform="translate(92.739248, 247.597672) rotate(-330.000000) translate(-92.739248, -247.597672) " cx="92.7392477" cy="247.597672" r="29.3333333" />\r\n <path d="M67.3358359,232.931005 C75.4360122,218.901088 93.3759974,214.094084 107.405914,222.19426 C108.446127,222.794827 109.435641,223.449485 110.372953,224.152629 C109.600188,223.600913 108.793915,223.081145 107.954638,222.596588 C93.9247211,214.496412 75.9847359,219.303416 67.8845595,233.333333 C60.3837534,246.325111 63.9506716,262.669716 75.6598708,271.449247 C63.5149792,262.773989 59.7189701,246.123804 67.3358359,232.931005 Z" id="icon-404_\u5f62\u72b6\u7ed3\u5408" fill="#FFFFFF" />\r\n <circle id="icon-404_\u692d\u5706\u5f62\u5907\u4efd-2" fill="url(#icon-404_linearGradient-21)" transform="translate(94.072581, 248.931005) rotate(-330.000000) translate(-94.072581, -248.931005) " cx="94.0725811" cy="248.931005" r="14.6666667" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/ApacheHive.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-ApacheHive",use:"icon-ApacheHive-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-ApacheHive"><defs><style type="text/css"></style></defs><path d="M948.223929 540.204361c-5.326903-7.19661-12.594068-10.971303-20.990112-10.971302-8.995763 0-17.709305 4.2333-25.435078 8.007992-1.97554 0.952493-3.915803 1.904985-5.78551 2.716368-2.222483 0.98777-4.480243 1.97554-6.808557 2.610535-1.799153 0.493885-3.316085 0.740828-4.480243 0.740827-1.340545 0-3.033865 0-5.22107-6.596892-6.843835-20.566783-15.310435-41.733283-25.223413-62.970338-4.51552-9.666035-10.230475-19.04985-15.769042-28.151445-10.44214-17.180143-20.31984-33.44307-21.519276-49.635443-1.26999-17.144865 5.891343-35.524443 13.440728-54.962346 3.880525-9.912978 7.831605-20.143453 10.72436-30.444482 2.081373-7.47883 4.79774-21.483998-0.634995-31.432253l-1.164157-2.151927c-17.039033-31.220588-34.677783-63.4995-55.279843-93.344266-21.02539-30.47976-59.160368-48.647673-102.022531-48.647673-33.972233 0-64.945878 12.13546-82.866848 32.4553-8.960485 10.124643-15.698488 11.324078-20.002343 11.324078-5.92662 0-13.12323-2.53998-22.648155-7.972715-64.698935-36.864988-135.818376-67.7328-211.453336-91.756778-12.84101-4.09219-24.12981-6.06773-34.536673-6.06773-22.29538 0-40.745513 9.207428-56.479278 28.116167-4.021635 4.833018-8.819375 9.17215-13.899335 13.758225-4.127468 3.704138-8.254935 7.443553-12.029628 11.42991-28.186723 29.880043-57.114273 45.543253-91.01595 49.317946-13.652393 1.516933-29.562545 10.30103-38.628863 21.272332-45.1552 54.785958-45.966583 106.961381-2.53998 164.216764 4.480243 5.92662 9.03104 11.85324 13.934612 17.427085 40.9219 46.495745 66.3217 85.759603 82.372963 127.281221 5.538568 14.357943 15.23988 21.342888 29.597823 21.342888 1.340545 0 2.751645-0.070555 4.2333-0.176388 31.32642-2.610535 62.723395-4.93885 94.614256-7.302442l19.155682-1.4111c-0.14111 0.211665-0.246943 0.42333-0.388052 0.634995-32.243635 50.482103-41.239398 109.536638-28.222 185.841871 11.57102 67.909188 46.037138 129.856478 99.623661 179.068591 48.68295 44.696593 103.539463 67.344748 163.087883 67.344748l3.38664-0.035277c49.917663-0.740828 91.298171-23.530093 131.302856-45.613808 6.49106-3.598305 13.017398-7.161333 19.649568-10.72436 5.468013-2.998588 5.07996-8.784098 4.903572-11.218245l-0.105832-2.469425v-9.912978l-25.999518 2.187205c-11.747408 1.023048-23.42426 2.046095-35.13639 2.716368-2.8222 0.176388-5.679678 0.388053-8.537155 0.599717-4.974128 0.42333-9.948255 0.811383-14.781273 0.811383-13.722948 0-23.600648-3.10442-30.373927-18.62652-2.293038-5.22107-6.20884-9.419093-9.701313-13.087953-1.97554-2.11665-5.326903-5.6444-5.609123-6.561615 0.42333-1.799153 4.550798-6.103008 7.020223-8.678265 2.363593-2.469425 4.691908-4.974128 6.561615-7.372997l7.937438-10.371586-12.452958-3.915802c-32.31419-10.15992-39.36969-17.321253-38.346643-28.64533l37.076653 20.813725 14.39322-20.707893-4.691907-5.397457c-2.751645-3.139698-5.573845-6.244118-8.396046-9.31326-6.738003-7.372998-13.12323-14.322665-18.3443-21.977883-1.234713-1.799153-1.69332-5.432735-2.11665-9.101595 2.857478-0.740828 5.820788-1.446378 9.101595-1.446378 0.352775 0 0.670273 0 1.023048 0.035278 8.537155 3.316085 16.580425 9.348538 20.990113 15.733765 13.440728 19.402625 32.17308 30.05643 59.019257 33.513625 6.561615 0.84666 13.052675 1.904985 19.579013 2.998588 9.948255 1.622765 19.89651 3.24553 29.91532 4.127467 13.087953 1.164158 24.764805 1.763875 35.700831 1.763875 59.760085 0 102.869191-18.06208 135.606711-56.902608 37.25304-44.16743 49.564888-97.295346 56.655665-143.403038 2.716368-17.49764-1.799153-38.346643-10.971303-50.729046z m-141.356943 200.023427c-17.285975 0-34.57195-5.573845-51.328763-16.615703l-2.046095-1.340545c-27.869225-18.273745-54.150963-35.524443-70.166948-74.294415l-5.150515-12.452958-37.358873 36.088883 11.112413 18.20319s7.725773-0.458608 8.713542-0.458607c2.010818 0 3.38664 0.14111 4.303855 0.317497-0.42333 1.340545-1.446378 3.704138-3.704137 7.514108-5.044683 8.60771-10.265753 17.144865-15.698488 26.070072-1.164158-2.610535-2.222483-5.326903-3.24553-8.04327-3.10442-7.972715-6.279395-16.22765-12.347125-22.930375-24.623695-27.269508-32.631688-54.115685-25.96424-87.064871 2.610535-12.735178-12.382403-32.73752-24.870638-37.217762-22.118993-7.90216-31.396975-22.365935-31.996692-49.882386-0.388053-18.273745-1.340545-36.54749-2.363593-56.479278l-1.904985-38.911082-10.195198 1.763875c-13.68767 2.363593-27.198953 4.550798-40.569125 6.702725-30.515038 4.93885-59.336755 9.560203-88.370138 16.051262-25.435078 5.679678-50.870155 12.946843-75.423296 19.967065-16.50987 4.727185-33.01974 9.419093-49.600165 13.687671-5.326903 1.375823-10.30103 2.081373-14.851828 2.081372-13.96989 0-25.011748-6.63217-34.783615-20.919558C201.822579 422.271678 172.401144 383.113653 143.967479 345.260895L131.937851 329.174355c-15.733765-20.990113-19.47318-43.638268-11.359355-69.285011C129.962311 230.291522 143.649981 217.662177 166.368691 217.662177c6.984945 0 15.063493 1.199435 24.023978 3.563027 12.206015 3.24553 24.517863 7.372998 36.441658 11.359355 9.666035 3.24553 19.33207 6.49106 29.103937 9.31326 6.455783 1.904985 12.946843 2.469425 19.190961 3.033865 2.575258 0.211665 5.185793 0.458608 7.725772 0.776105l7.725773 0.98777 6.455782-21.942605L229.868192 189.087401c3.10442-2.857478 6.20884-5.714955 9.242705-8.501877 13.511283-12.41768 26.24646-24.165088 38.24081-36.935543 13.934613-14.851828 29.245048-22.083715 46.777965-22.083715 8.713543 0 18.097358 1.83443 27.869226 5.468012 34.71306 12.911565 65.580873 25.96424 94.40259 39.863576 24.941193 12.029628 49.917663 25.152858 74.082751 37.852757 17.427085 9.17215 34.889448 18.309023 52.457643 27.163676 39.299135 19.790678 66.286423 48.330175 82.478795 87.311813 6.879113 16.50987 16.545148 31.714473 25.928963 46.460468l6.808558 10.794915c3.10442 5.009405 7.514108 8.642988 11.394632 11.85324 1.481655 1.199435 2.96331 2.434148 4.303855 3.704137l5.50329 5.185793 16.474593-11.99435-7.725773-18.379578c-1.940263-4.65663-4.09219-9.277983-6.244117-13.899335-4.550798-9.630758-8.819375-18.76763-10.794915-28.116168-11.85324-55.950115-37.852758-95.672581-79.268543-121.142936 13.793503-18.414855 39.263858-30.691425 65.122265-30.691425 17.744583 0 33.196128 5.856065 43.532435 16.474593 19.261515 19.825955 35.947773 43.32077 52.069591 66.074758 4.727185 6.667448 9.419093 13.299618 14.216832 19.861233 7.831605 10.759638 8.537155 22.683433 2.081373 35.348055-1.058325 2.081373-1.83443 4.37441-2.53998 6.63217l-0.811383 2.504702c-5.36218 14.710718-9.912978 26.034795-13.54656 35.136391-15.839598 39.546078-15.627933 42.544665 5.6444 80.15048 4.79774 8.4666 10.72436 19.014573 17.92097 32.59641l9.8777 18.450133c6.561615 12.170738 13.087953 24.306198 19.226238 36.653323 1.375823 2.751645 2.328315 6.032453 3.24553 9.524925l-30.656148 1.97554 12.558791 32.73752H781.749406l-2.328315 22.930375 17.321252 3.174975-16.9332 28.398388 38.875805-12.382403-9.03104 27.975058 20.602061 11.782685 33.936955-61.52396c6.702725 6.06773 14.81655 10.936025 24.41203 10.936025 10.794915 0 21.483998-5.92662 35.101113-19.579013 0.317498 2.222483 0.42333 4.586075 0.14111 6.526338-7.408275 49.10628-23.56537 88.334861-49.388501 119.837668-18.76763 22.895098-42.156613 35.030558-67.59169 35.030558z m-212.546939 169.720054l-9.136873-1.516933c2.716368-0.246943 5.432735-0.42333 8.18438-0.56444 0.28222 0.634995 0.634995 1.340545 0.952493 2.081373z m-213.887484-382.655046c-1.305268-8.18438 0.176388-18.167913 1.023047-19.684845 11.676853-6.91439 26.422848-10.371585 40.886623-13.54656 1.340545 2.046095 3.10442 5.115238 4.65663 8.431323 8.678265 18.414855 17.250698 36.864988 25.787853 55.350398 17.07431 36.82971 34.71306 74.929411 53.163193 111.935508 4.762463 9.560203 11.041858 18.06208 17.92097 26.563958-69.602508-37.605815-129.715368-82.090743-143.438316-169.049782z m-14.463775 135.359769c42.826885 47.166018 98.741723 70.343336 153.280738 88.229028 5.36218 1.763875 10.195198 5.291625 11.14769 7.408275 2.575258 5.6444 3.774693 12.206015 3.139698 16.686258-1.763875 0.529163-4.586075 1.023048-7.549385 1.023047-2.151928 0-3.351363-0.28222-3.598305-0.42333-43.849933-18.520688-91.262893-39.687188-145.025804-64.663658-2.8222-1.305268-6.63217-6.385228-7.161332-9.560202-2.11665-12.629345-3.210253-25.858408-4.2333-38.699418z m69.673063 151.411031c37.746925 10.406863 73.412478 20.249285 109.571915 31.32642 2.575258 0.776105 5.997175 5.07996 9.066318 9.03104-4.09219 2.786923-8.290213 5.538568-11.535743 5.92662-6.385228 0.70555-12.629345 1.058325-18.732352 1.058325-43.779378 0-79.303821-17.77986-103.927516-51.64626l15.557378 4.303855z" fill="#333333" p-id="2398" /><path d="M772.012816 283.560547l-2.610535-7.267165c-1.375823-3.915803-2.716368-7.866883-4.056913-11.817963-7.972715-23.70648-16.22765-48.189065-38.593585-65.89837l-5.256348-4.162745-19.437902 13.158508 48.82406 87.840975 21.131223-11.85324zM723.929583 449.117856c-33.01974 0-50.552658 13.652393-56.937886 44.202708l-3.880525 18.555965 114.193269-57.361216-29.880043-3.739415c-8.960485-1.12888-16.65098-1.658043-23.494815-1.658042zM526.940021 274.564785c-13.617115 0-27.975058 2.293038-42.61522 6.808557l-32.913908 10.124643 94.684811 21.201777c-2.151928 1.340545-40.49857 24.870638-40.49857 24.870638l35.206945-1.55221 3.704137-0.105833c31.32642 0 51.22293 17.321253 74.999966 47.307128l16.121818-7.443552c-12.27657-63.323113-52.91625-101.211148-108.689979-101.211148zM720.71933 509.371826c-8.572433 0.035278-15.839598 5.150515-22.260102 9.701313-2.25776 1.587488-4.550798 3.210253-6.808558 4.51552l-9.101595 5.150515 17.144865 22.612878-14.39322 18.379577h18.76763l17.77986 0.211665c3.316085 0 6.420505-0.105833 9.560203-0.352775 15.769043-1.234713 25.54091-5.856065 29.880043-14.146277 4.162745-7.937438 2.751645-17.744583-4.303855-29.915321-6.808558-11.782685-25.752575-16.157095-36.265271-16.157095z" fill="#333333" p-id="2399" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/DB2LINUXX8664.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-DB2LINUXX8664",use:"icon-DB2LINUXX8664-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-DB2LINUXX8664"><defs><style type="text/css"></style></defs><path d="M233.3 894.2V647.3h80.5c82.7 0 123.9 40.2 123.9 120.5 0 38.1-11.5 68.9-34.8 91.9-23.3 23-53.1 34.7-89.6 34.7h-80v-0.2z m49.7-204v160.9h27.1c23.6 0 42-7.5 55.5-22.3 13.5-15 20.2-35 20.2-60.4 0-24.5-7.1-43.7-21-57.5-14.1-13.8-32.2-20.6-54.7-20.6H283v-0.1zM477 894.2V647.3h82.7c25.3 0 44.9 5.1 58.7 15.3 13.8 10.2 20.5 24.3 20.5 42.4 0 13.4-4.3 25.2-12.8 35.2-8.5 10-19.2 17-32.2 20.9v0.7c16.2 2.2 29.3 8.5 39.3 19.2 9.9 10.7 14.9 24 14.9 40 0 22.5-7.5 40.3-22.6 53.6-15.1 13.3-35.6 19.9-61.6 19.9H477v-0.3z m49.6-207.6v61.1h23.6c11.4 0 20.2-2.9 26.8-8.7 6.6-5.8 9.8-13.8 9.8-24.2 0-18.9-13-28.4-39.1-28.4l-21.1 0.2z m0 100.5v67.7h29.5c12.5 0 22.3-3.1 29.3-9.2S596 830.9 596 820c0-10.4-3.5-18.5-10.6-24.3-7.1-5.8-17-8.7-30-8.7l-28.8 0.1zM732.6 851.5h98.8v42.9H676.5V876c0-12.9 2.2-24.7 6.7-35.2s10.6-20.6 18.4-29.8c7.9-9.2 19.9-19.9 36.4-32.3 15.1-11.9 25.5-22.5 31.6-31.6 6.1-9.2 9-18.9 9-29.3 0-22.3-11.4-33.3-34.3-33.3-20 0-39.1 8.5-57.4 25.5v-46c20.4-14 43.1-20.9 68.6-20.9 23.3 0 41.7 6.3 55.2 18.9 13.5 12.6 20.4 29.9 20.4 52.1 0 12.4-1.9 23.5-5.9 33.3-3.8 9.9-9.6 19.2-17 28.1-7.4 8.7-19.2 19.2-35.6 31.5-15.7 11.9-26.3 21.1-31.7 27.6-5.4 6.5-8.3 11.9-8.3 16.9z" p-id="854" /><path d="M82.1 171.6h173.3v26H82.1zM280 171.6v26h247.1s-25.8-26-58.2-26H280zM576.3 171.6v26.2h149.9l-8.8-26.2zM973.3 171.6H833.6l-8.8 26.2h148.5zM82.1 222.6h173.3v26H82.1zM280 248.7h276.8s-2.6-20.6-9-26H280v26zM576.3 248.7H743l-7.5-26.1H576.3zM973.3 248.7v-26.1H815.7l-7.7 26.1zM132.4 272h75v26h-75zM330.5 272h75v26h-75zM479.3 298h75s5.1-13.8 5.1-26h-80.2v26h0.1zM626.8 272v26h133.1l-8.8-26zM791.1 298h134.6v-26H800zM132.4 322.7h75v26h-75zM330.5 348.7h192.7s15.6-13.8 20.7-26H330.5v26zM775.6 344.8l-6.4-22.1H626.8v26h75v-15l5.2 15h138.5l5-15v15h75.2v-26H783.1zM132.4 373.4h75v26h-75zM330.5 399.6h213.4c-5.1-12.4-20.7-26-20.7-26H330.5v26zM626.8 373.4h75v26h-75zM837.6 373.4H715.9l9.2 26.2h103.6zM849.3 373.4h75v26h-75zM132.4 424.2h75v26h-75zM330.5 424.2h75v26h-75zM554.3 424.2h-75v26h80.2c-0.1-12.3-5.2-26-5.2-26zM626.8 424.2h75v26h-75zM820.8 424.2h-88l9.1 26.1h69.9zM849.3 424.2h75v26h-75zM83.4 473.6h173.3v26H83.4zM557 473.6H280v26h267.8c5.2-5.4 9.2-26 9.2-26zM577.7 473.6h124.1v26H577.7zM802.5 473.6h-52.9l9.2 26h34.7zM849.3 473.6h125.5v26H849.3zM83.4 524.6h173.3v26H83.4zM527.2 524.6H280v26h188.9c33.6-0.1 58.3-26 58.3-26zM577.7 524.6h124.1v26H577.7zM776.7 550.5l9.3-25.9h-19.7l9.3 25.9zM849.3 524.6h125.5v26H849.3z" p-id="855" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/GBASE.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-GBASE",use:"icon-GBASE-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-GBASE"><defs><style type="text/css"></style></defs><path d="M512 1024c-212.032 0-384-85.952-384-192v-108.032C128 830.08 299.968 896 512 896s384-65.92 384-172.032V832c0 106.048-171.968 192-384 192z m0-192c-212.032 0-384-85.952-384-192v-108.032C128 638.08 299.968 704 512 704s384-65.92 384-172.032V640c0 106.048-171.968 192-384 192z m0-192c-212.032 0-384-85.952-384-192v-108.032C128 446.08 299.968 512 512 512s384-65.92 384-172.032V448c0 106.048-171.968 192-384 192z m0-192c-212.032 0-384-85.952-384-192V192c0-106.048 171.968-192 384-192s384 85.952 384 192v64c0 106.048-171.968 192-384 192z" fill="" p-id="2687" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/HWHive.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-HWHive",use:"icon-HWHive-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-HWHive"><defs><style type="text/css"></style></defs><path d="M446.50124 183.429683s-71.363328-3.247974-116.870777 55.568596c-45.528939 58.814524-11.337209 148.651598 10.248411 194.994066 21.584598 46.341445 135.480624 228.190119 139.664923 232.190223 4.151553 4.010337 9.154497 2.322905 9.42772-1.276063 0.275269-3.569292 13.010315-264.227893 2.76088-328.498686-10.248412-64.272839-40.591487-145.927557-45.231157-152.978136zM199.86091 304.604486c-8.156774 0.87288-66.697051 59.253522-71.973218 116.331495-5.301749 57.07388 19.128663 95.057983 87.341231 140.499941 68.664869 48.689932 231.852532 138.264017 234.849796 130.547265 3.001357-7.696286-63.235207-125.387755-117.44076-210.986295-54.201459-85.596494-124.656091-177.262216-132.777049-176.392406z m21.946848 526.487969c49.38578 22.079878 126.322034-27.508517 147.604756-41.930994 19.792788-15.121396 56.353472-42.919509 56.353473-42.919509l-279.836383 7.489578s26.491351 55.276954 75.878154 77.360925z m7.030114-226.13532c-50.083675-25.069979-153.122423-82.662675-157.154249-81.560574-4.030803 1.100054-19.553335 72.743768 12.670577 126.742613 32.223912 53.998845 94.978165 70.511937 123.777071 74.924433 32.379455 4.613064 222.75841 2.551102 221.482347-1.277086-1.122567-3.341095-150.662395-93.782943-200.775746-118.829386z m464.281185-365.957833c-45.503357-58.81657-116.869754-55.568596-116.869754-55.568596-4.63353 7.048533-34.983769 88.703251-45.231157 152.978137-10.249435 64.271816 2.517333 324.928371 2.789532 328.500732 0.275269 3.595898 5.244444 5.281283 9.423627 1.27504 4.1536-4.002151 118.081349-185.850825 139.667993-232.19227 21.553898-46.342468 55.748698-136.177496 10.219759-194.993043zM951.064874 523.395538c-4.02978-1.103124-107.068528 56.492642-157.151179 81.560574-50.083675 25.045419-199.652156 115.488291-200.748117 118.829385-1.302669 3.827165 189.076286 5.891174 221.455741 1.277087 28.79686-4.412496 91.551112-20.925588 123.777071-74.924434 32.253588-53.997821 16.697287-125.643582 12.666484-126.742612zM653.344169 789.161461c21.278629 14.421454 98.245581 64.010873 147.634432 41.930994 49.384757-22.086018 75.881225-77.360925 75.881224-77.360925l-279.837406-7.489578c-0.002047 0 36.556591 27.802206 56.32175 42.919509z m241.551428-368.226503c-5.304819-57.07695-63.84305-115.457592-71.970148-116.331495-8.151657-0.86981-78.608336 90.795912-132.809795 176.393429-54.207599 85.59854-120.439046 203.293079-117.438713 210.986295 3.000334 7.715729 166.212556-81.857333 234.851842-130.547265 68.208475-45.442982 92.672656-83.426061 87.366814-140.500964z" p-id="2555" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/Hbase.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-Hbase",use:"icon-Hbase-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-Hbase"><defs><style type="text/css"></style></defs><path d="M39.978 415.318H76.93v151.613H39.978z" p-id="704" /><path d="M64.975 473.825h162.3v36.952h-162.3z" p-id="705" /><path d="M190.177 474.126h36.952v91.981h-36.952zM190.177 415.318h36.952v36.027h-36.952zM425.663 504.135c-3.084-6.186-7.078-10.254-14.783-13.424 6.959-2.921 8.485-7.1 11.966-12.537 3.48-5.439 5.22-12.135 5.22-20.09 0-12.429-3.838-22.248-11.513-29.458-7.677-7.208-18.102-13.277-31.276-13.277H241.628v36.41l147.963-0.001s2.885 0.8 3.079 3.9c0.197 3.135 0.205 6.519 0.205 6.519s0.36 4.466-0.616 8.725c-0.744 3.247-4.061 3.194-5.709 3.194l-111.192 0.039v34.064l113.578-0.037s2.387-0.116 3.657 0.73c1.521 1.014 1.913 2.61 1.913 2.61s0.143 9.822-0.027 17.714c-0.021 0.938 0.247 0.855-0.776 2.216-0.995 1.325-2.458 0.94-2.458 0.94l-116.557 0.144 0.155 33.593h116.056c13.361 0 17.847-2.021 26.021-9.295 8.391-7.467 13.197-18.277 13.197-31.329 0.001-8.453-1.155-14.732-4.454-21.35z" p-id="706" /><path d="M241.629 474.126h34.489v91.981h-34.489zM478.379 566.107V459.969c0-5.442 4.413-9.854 9.854-9.854h96.075c5.441 0 9.854 4.412 9.854 9.854v106.139h32.847V453.533c0-20.409-16.545-36.953-36.953-36.953H481.664c-20.408 0-36.952 16.544-36.952 36.953v112.575h33.667z" p-id="707" /><path d="M475.506 483.679h120.3v33.257h-120.3zM783.645 474.107l-94.146-0.201c-12.044 0-11.218-5.404-11.218-10.551 0-5.947-0.826-12.195 11.218-12.195l102.483 0.084h24.634V415.44H689.499c-25.628 0-46.478 20.85-46.478 46.478s20.85 46.478 46.478 46.478h127.117v-9.114l-32.971-25.175z" p-id="708" /><path d="M650.411 530.831l127.118-0.265c12.044 0 11.218-5.404 11.218-10.551 0-5.948 0.826-12.195-11.218-12.195l-110.694-10.593-16.424-25.127h127.118c25.627 0 46.477 17.943 46.477 46.478 0 25.629-14.69 46.479-40.318 46.479H650.411v-34.226zM837.944 415.439h160.742v35.906H837.944zM837.944 529.991h160.742v35.906H837.944zM837.944 473.331h152.428v35.906H837.944z" p-id="709" /><path d="M873.851 415.439l0.128 150.306h-35.905l-0.13-150.306zM125.052 398.396h-16.153v-21.942H54.044v-16.153h54.854v-9.692c0-3.499-1.167-5.249-3.5-5.249H59.63c-2.244 0-3.365 1.745-3.365 5.237v47.8H40.112v-47.829c0-5.823 1.817-10.837 5.451-15.047 3.635-4.209 8.323-6.314 14.067-6.314h45.769c5.832 0 10.566 2.105 14.201 6.314 3.635 4.21 5.452 9.225 5.452 15.047v47.828zM307.314 352.628c0 6.192-1.706 11.488-5.116 15.884-3.681 4.937-8.526 7.404-14.538 7.404h-50.882v22.48h-16.154v-69.19h67.036c6.011 0 10.857 2.469 14.538 7.403 3.41 4.489 5.116 9.827 5.116 16.019z m-16.153 0c0-4.846-1.167-7.269-3.5-7.269h-50.882v14.403h50.882c2.333 0 3.5-2.376 3.5-7.134zM487.826 398.396h-16.153v-21.942h-54.854v-16.153h54.854v-9.692c0-3.499-1.167-5.249-3.5-5.249h-45.768c-2.244 0-3.365 1.745-3.365 5.237v47.8h-16.154v-47.829c0-5.823 1.817-10.837 5.452-15.047 3.634-4.209 8.323-6.314 14.067-6.314h45.768c5.832 0 10.566 2.105 14.201 6.314 3.634 4.21 5.452 9.225 5.452 15.047v47.828zM659.589 398.396h-53.575c-6.281 0-11.622-2.083-16.019-6.247-4.398-4.165-6.596-9.38-6.596-15.653v-25.391c0-6.27 2.197-11.488 6.596-15.653 4.396-4.165 9.737-6.247 16.019-6.247h53.575v16.153h-53.575c-4.308 0-6.461 1.922-6.461 5.767v25.349c0 3.845 2.153 5.767 6.461 5.767h53.575v16.155zM829.064 398.396H812.91v-26.519h-41.594v26.519h-16.153v-69.19h16.153v26.518h41.594v-26.518h16.154v69.19zM998.539 345.359h-57.748v10.365h53.979v16.153h-53.979v10.365h57.614v16.154h-73.768v-69.19h73.901v16.153z" p-id="710" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/LoadingAnimate.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-LoadingAnimate",use:"icon-LoadingAnimate-usage",viewBox:"0 0 24 30",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 30" id="icon-LoadingAnimate">\r\n <rect x="0" y="12.0871" width="4" height="6.82578">\r\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>\r\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>\r\n </rect>\r\n <rect x="10" y="9.91289" width="4" height="11.1742">\r\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>\r\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>\r\n </rect>\r\n <rect x="20" y="5.91289" width="4" height="19.1742">\r\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>\r\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>\r\n </rect>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/MySQL.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-MySQL",use:"icon-MySQL-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-MySQL"><defs><style type="text/css"></style></defs><path d="M699.946667 242.176c-4.906667 0-8.234667 0.597333-11.690667 1.408v0.554667h0.597333c2.304 4.437333 6.229333 7.68 9.130667 11.648 2.304 4.565333 4.266667 9.130667 6.570667 13.653333l0.597333-0.64c4.010667-2.816 5.973333-7.338667 5.973333-14.208-1.706667-2.005333-1.962667-4.010667-3.413333-5.973333-1.706667-2.858667-5.376-4.266667-7.68-6.528zM246.186667 805.12h-39.552a2169.770667 2169.770667 0 0 0-11.52-188.16h-0.341334l-60.16 188.16H104.533333l-59.733333-188.16h-0.426667a3110.058667 3110.058667 0 0 0-8.32 188.16H0c2.346667-83.882667 8.192-162.56 17.493333-235.946667h49.066667l56.96 173.397334h0.341333L181.333333 569.173333h46.72c10.325333 85.973333 16.384 164.693333 18.261334 235.946667z m171.392-174.08c-16.128 87.253333-37.376 150.741333-63.658667 190.293333-20.565333 30.549333-43.093333 45.781333-67.541333 45.781334-6.528 0-14.506667-1.962667-24.149334-5.888v-21.077334c4.693333 0.725333 10.24 1.109333 16.469334 1.109334 11.434667 0 20.608-3.2 27.605333-9.472 8.405333-7.68 12.586667-16.298667 12.586667-25.813334 0-6.613333-3.285333-20.053333-9.813334-40.277333L265.813333 631.04h38.826667l31.018667 100.693333c6.997333 22.869333 9.941333 38.826667 8.746666 47.914667 17.066667-45.397333 28.928-95.018667 35.626667-148.608h37.546667z m525.866666 174.08h-112.213333v-235.946667h37.76v206.933334h74.453333z m-141.653333 5.76l-43.349333-21.333333c3.84-3.242667 7.552-6.741333 10.88-10.666667 18.474667-21.589333 27.648-53.674667 27.648-96.128 0-78.08-30.634667-117.162667-91.946667-117.162667-30.037333 0-53.504 9.898667-70.4 29.738667-18.346667 21.674667-27.562667 53.589333-27.562667 95.786667 0 41.472 8.106667 71.936 24.490667 91.306666 14.933333 17.493333 37.418667 26.24 67.541333 26.24 11.264 0 21.589333-1.408 30.933334-4.181333l56.533333 32.938667 15.36-26.538667zM661.333333 757.888c-9.6-15.36-14.378667-40.106667-14.378666-74.069333 0-59.434667 18.090667-89.173333 54.186666-89.173334 18.901333 0 32.853333 7.125333 41.685334 21.333334 9.557333 15.445333 14.336 39.936 14.336 73.514666 0 59.904-18.090667 89.941333-54.186667 89.941334-18.986667 0-32.853333-7.125333-41.728-21.333334z m-70.741333-18.133333c0 20.053333-7.338667 36.522667-22.016 49.322666s-34.261333 19.2-59.050667 19.2c-23.168 0-45.397333-7.338667-67.114666-21.973333l10.112-20.309333c18.688 9.386667 35.541333 13.994667 50.773333 13.994666 14.165333 0 25.301333-3.114667 33.408-9.386666a32.170667 32.170667 0 0 0 12.8-26.24c0-14.08-9.813333-26.026667-27.648-36.053334-16.554667-9.088-49.621333-28.032-49.621333-28.032-18.005333-13.098667-26.965333-27.136-26.965334-50.218666 0-19.2 6.698667-34.56 20.053334-46.293334 13.44-11.861333 30.72-17.706667 52.053333-17.706666 21.845333 0 41.813333 5.802667 59.733333 17.493333l-9.088 20.309333a116.309333 116.309333 0 0 0-45.397333-9.813333c-12.074667 0-21.418667 2.901333-27.904 8.789333a29.226667 29.226667 0 0 0-10.581333 22.357334c0 13.994667 9.984 26.026667 28.416 36.266666 16.768 9.173333 50.645333 28.586667 50.645333 28.586667 18.474667 13.013333 27.648 26.88 27.648 49.834667z" fill="" p-id="720" /><path d="M990.890667 490.069333c-22.826667-0.597333-40.533333 1.706667-55.338667 8.021334-4.266667 1.706667-11.093333 1.706667-11.690667 7.125333 2.346667 2.261333 2.688 5.973333 4.693334 9.130667 3.413333 5.717333 9.301333 13.354667 14.762666 17.365333 5.973333 4.693333 11.946667 9.216 18.218667 13.226667 11.093333 6.826667 23.68 10.88 34.56 17.749333 6.186667 4.010667 12.501333 9.088 18.773333 13.354667 3.114667 2.133333 5.12 5.973333 9.130667 7.338666v-0.853333c-1.962667-2.56-2.56-6.272-4.48-9.130667-2.858667-2.858667-5.717333-5.418667-8.533333-8.234666a137.514667 137.514667 0 0 0-29.653334-28.8c-9.130667-6.229333-29.098667-14.933333-32.853333-25.386667l-0.554667-0.597333c6.229333-0.554667 13.653333-2.816 19.626667-4.522667 9.685333-2.56 18.56-2.005333 28.586667-4.522667 4.522667-1.152 9.088-2.56 13.653333-4.010666v-2.56c-5.12-5.12-8.96-12.074667-14.250667-16.853334a378.325333 378.325333 0 0 0-47.104-35.114666c-8.96-5.717333-20.309333-9.386667-29.738666-14.250667-3.413333-1.706667-9.130667-2.56-11.093334-5.418667-5.12-6.229333-8.106667-14.506667-11.733333-21.930666a754.773333 754.773333 0 0 1-23.338667-49.621334c-5.12-11.178667-8.234667-22.314667-14.506666-32.554666-29.44-48.512-61.312-77.909333-110.336-106.666667-10.538667-5.973333-23.168-8.533333-36.522667-11.690667-7.125333-0.341333-14.250667-0.853333-21.333333-1.152-4.693333-2.005333-9.216-7.424-13.226667-10.026666-16.213333-10.24-58.197333-32.426667-70.144-3.072-7.68 18.517333 11.392 36.778667 18.005333 46.165333 4.906667 6.528 11.093333 13.994667 14.506667 21.333333 2.005333 4.949333 2.56 10.026667 4.565333 15.189334 4.522667 12.544 8.832 26.538667 14.805334 38.272 3.114667 5.973333 6.528 12.245333 10.538666 17.621333 2.304 3.114667 6.229333 4.565333 7.125334 9.685333-4.010667 5.802667-4.266667 14.250667-6.570667 21.333334-10.24 32.298667-6.229333 72.234667 8.277333 96 4.565333 7.082667 15.445333 22.784 29.994667 16.768 12.8-5.12 9.984-21.333333 13.653333-35.626667 0.853333-3.413333 0.298667-5.674667 2.048-7.978667v0.64c4.010667 8.021333 8.021333 15.658667 11.690667 23.68 8.789333 13.994667 24.149333 28.501333 36.992 38.186667 6.826667 5.12 12.245333 13.994667 20.778667 17.152v-0.853333h-0.64c-1.834667-2.474667-4.266667-3.669333-6.570667-5.674667a146.986667 146.986667 0 0 1-14.933333-17.066667 373.76 373.76 0 0 1-31.872-51.968c-4.693333-8.96-8.618667-18.602667-12.373334-27.434666-1.706667-3.413333-1.706667-8.533333-4.565333-10.24-4.266667 6.229333-10.538667 11.648-13.653333 19.328-5.418667 12.288-5.973333 27.392-8.021334 43.093333-1.152 0.298667-0.597333 0-1.152 0.597333-9.130667-2.218667-12.245333-11.690667-15.658666-19.626666-8.533333-20.266667-9.941333-52.821333-2.56-76.16 2.005333-5.973333 10.538667-24.832 7.125333-30.549334-1.792-5.418667-7.424-8.533333-10.538667-12.928a105.728 105.728 0 0 1-10.24-18.218666c-6.826667-15.957333-10.24-33.621333-17.664-49.578667-3.413333-7.381333-9.386667-15.104-14.250666-21.888-5.418667-7.68-11.392-13.098667-15.701334-22.186667-1.408-3.114667-3.413333-8.277333-1.152-11.690666 0.597333-2.304 1.792-3.2 4.010667-3.84 3.754667-3.072 14.293333 0.938667 18.005333 2.645333 10.538667 4.266667 19.413333 8.277333 28.245334 14.250667 4.010667 2.816 8.32 8.234667 13.44 9.642666h5.973333c9.130667 2.005333 19.413333 0.597333 27.946667 3.114667 15.146667 4.864 28.8 11.946667 41.045333 19.626667a253.994667 253.994667 0 0 1 88.96 97.536c3.413333 6.570667 4.906667 12.586667 8.021333 19.413333 5.973333 14.08 13.354667 28.288 19.413334 41.898667 5.973333 13.44 11.733333 27.136 20.309333 38.272 4.266667 5.973333 21.418667 9.088 29.098667 12.202666 5.674667 2.56 14.506667 4.906667 19.626666 8.021334 9.813333 5.973333 19.370667 12.8 28.586667 19.370666 4.693333 3.242667 18.901333 10.368 19.754667 16.128z" fill="" p-id="721" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/Oracle.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-Oracle",use:"icon-Oracle-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-Oracle"><defs><style type="text/css"></style></defs><path d="M670.62528 711.899955h-316.933062c-57.361215 0-103.363076-14.287388-127.492886-71.40166H175.999449c28.292555 71.401661 94.931753 114.228546 177.692769 114.228546h316.545009c82.902126 0 149.541324-42.826885 177.728047-114.228546h-49.847108C773.988356 697.612568 728.021773 711.899955 670.62528 711.899955zM353.727495 312.100045H670.62528c57.361215 0 103.363076 14.287388 127.492886 71.40166h49.847108c-28.186723-71.401661-94.825921-114.228546-177.728047-114.228546h-316.545009c-82.761016 0-149.400214 42.826885-177.692769 114.228546h50.23516c24.12981-57.14955 70.131671-71.401661 127.492886-71.40166zM313.616977 513.569849c0-47.095463-39.193303-85.406828-87.382368-85.406828H151.375754c-48.189065 0-87.382368 38.311365-87.382369 85.406828s39.193303 85.406828 87.382369 85.406828h74.894133c48.189065 0 87.347091-38.346643 87.34709-85.406828z m-207.996141 0c0-24.658973 20.531505-44.73187 45.754918-44.731871h74.894133c25.223413 0 45.754918 20.072898 45.754917 44.731871s-20.531505 44.73187-45.754917 44.73187H151.375754c-25.25869 0-45.754918-20.072898-45.754918-44.73187z m416.73311-22.471768c0-34.71306-28.892273-62.970338-64.416715-62.970338h-124.882351v171.342819H374.647053v-83.325456l79.44493 83.325456h56.867331l-43.779378-45.896028c31.18531-4.409688 55.17401-30.726703 55.17401-62.476453z m-64.416715 22.471768H374.647053V468.837978h83.290178c12.594068 0 22.789265 10.089365 22.789265 22.436491 0.035278 12.27657-10.195198 22.29538-22.789265 22.29538z m170.249216-44.767148h86.500431l41.592173-40.674958h-128.092604c-48.189065 0-87.382368 38.311365-87.382368 85.406828s39.193303 85.406828 87.382368 85.406828h85.442106l41.592173-40.674957h-127.069556c-25.25869 0-45.754918-20.072898-45.754918-44.731871 0.035278-24.658973 20.566783-44.73187 45.790195-44.73187z m188.487684 81.561581v-122.201261h-49.917663v171.025321h143.297206l49.917663-48.788783H816.674131z" fill="#333333" p-id="2910" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/PostgreSQL.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-PostgreSQL",use:"icon-PostgreSQL-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-PostgreSQL"><defs><style type="text/css"></style></defs><path d="M897.586312 255.98826a30.286688 30.286688 0 0 1 30.250564 30.250563v451.518741a30.286688 30.286688 0 0 1-30.250564 30.250564H126.178879a30.286688 30.286688 0 0 1-30.250563-30.250564V286.238823a30.286688 30.286688 0 0 1 30.250563-30.250563h771.407433m0-31.988147H126.178879A62.23871 62.23871 0 0 0 63.940169 286.238823v451.518741a62.23871 62.23871 0 0 0 62.23871 62.238711h771.407433A62.23871 62.23871 0 0 0 959.825022 737.757564V286.238823a62.23871 62.23871 0 0 0-62.23871-62.23871z" fill="" p-id="789" /><path d="M633.939682 369.100947a101.361424 101.361424 0 0 0-18.531812-26.370804 34.108648 34.108648 0 0 0-11.086575-7.647533 33.335586 33.335586 0 0 0-13.084253-2.720167h-34.144773A74.271744 74.271744 0 0 0 522.394793 322.229552a73.422821 73.422821 0 0 0-40.459316 10.132891h-33.667931c-15.302291 0-28.093938 2.239712-38.020919 6.563802-9.052772 3.941171-15.894731 9.710236-20.363319 17.097673-2.889951 4.804544-4.56251 11.339446-5.057414 19.9515-0.390143 6.574639-0.093923 14.399182 0.885047 23.235208 1.705071 15.40344 5.144113 30.947764 7.56806 39.574268l0.505741 1.80622c2.145789 7.669208 5.386146 19.261524 10.010069 29.889319 6.054448 13.918727 12.914469 22.675279 20.952145 26.771785a23.148509 23.148509 0 0 0 9.518777 2.553994q0.505741 0.021675 1.011483 0.021675a25.214824 25.214824 0 0 0 9.341767-1.867631 30.45286 30.45286 0 0 0 15.602124-14.193272l2.051865-3.901434q1.174043 1.083732 2.431171 2.087989a61.154979 61.154979 0 0 0 11.534518 7.28629 71.165047 71.165047 0 0 1-9.204495 6.408466c-0.307057 0.180622-0.624952 0.361244-0.939234 0.538254a14.424469 14.424469 0 0 0-7.149016 14.630377 14.20411 14.20411 0 0 0 10.79758 12.069159 59.00919 59.00919 0 0 0 13.532196 1.578636 57.600339 57.600339 0 0 0 6.697462-0.390144 58.637109 58.637109 0 0 0 12.600187-2.911626v20.273008a36.351973 36.351973 0 0 0 2.752678 13.929564 35.763145 35.763145 0 0 0 7.481361 11.371958 34.657739 34.657739 0 0 0 11.0938 7.629471 33.895514 33.895514 0 0 0 13.589995 2.788803h0.039737a33.956926 33.956926 0 0 0 13.579158-2.763516 34.711926 34.711926 0 0 0 11.10825-7.647533 35.712571 35.712571 0 0 0 7.499423-11.368346 36.301399 36.301399 0 0 0 2.763516-13.936789v-25.735015c1.231842 0.086699 2.528707 0.130048 3.785836 0.130048a63.752322 63.752322 0 0 0 18.318677-2.79964 85.567841 85.567841 0 0 0 22.176763-10.476073 11.70069 11.70069 0 0 0 5.057415-11.989685 11.462269 11.462269 0 0 0-9.031098-9.251456 87.247625 87.247625 0 0 1-21.468724-7.091218l37.930608-51.838498a51.932422 51.932422 0 0 0 4.688946-53.287087z m-194.710458 114.658812c-2.940525 1.17043-5.368084 1.123469-7.871504-0.14811-3.27287-1.665334-8.355571-6.36873-13.994589-19.322936-4.197654-9.648824-7.264615-20.619801-9.294805-27.880804l-0.512966-1.827894a256.772159 256.772159 0 0 1-7.083993-37.070848c-2.528707-22.89925 0.59244-31.005563 2.051865-33.425897 2.810477-4.652821 7.362151-8.402533 13.528584-11.086576 8.084638-3.518516 18.91473-5.33196 32.208505-5.331959h16.082578c-8.467557 10.3677-13.857316 23.480853-15.764683 38.400225-0.411818 3.215071-0.722488 6.567414-0.899497 9.955882l-0.032512 0.205909v56.736966l0.046961 0.28177c0.050574 0.693588 0.588828 6.480715 4.446913 13.727268l-5.028515 9.572963a15.40344 15.40344 0 0 1-7.878729 7.214041z m27.241402-21.916667a27.205278 27.205278 0 0 1-3.941171-9.616313v-48.309145H474.313231a10.996264 10.996264 0 0 0-0.155335 1.806219c0 5.180237 4.100118 9.421241 9.157533 9.421241s9.157533-4.183204 9.157532-9.363442c0-0.307057 0-0.60689-0.043349-0.910335a16.255975 16.255975 0 0 1 10.895116 15.428727v10.898728a76.128538 76.128538 0 0 1-9.703011 37.28037 73.946625 73.946625 0 0 1-6.061673 9.135858 50.371848 50.371848 0 0 1-13.178177-7.246552 35.156256 35.156256 0 0 1-7.907629-8.525356z m21.815519 47.098978a43.746635 43.746635 0 0 1-13.149278-0.469617 86.517912 86.517912 0 0 0 16.053679-12.38344 26.732048 26.732048 0 0 1 8.496456 9.945044 45.108525 45.108525 0 0 1-11.400857 2.911626z m69.290191-2.041028v34.552979a20.52949 20.52949 0 0 1-5.888276 14.47143 19.64083 19.64083 0 0 1-14.178823 5.953299h-0.018062a19.615543 19.615543 0 0 1-14.171598-5.964136 20.52949 20.52949 0 0 1-5.873825-14.449756V518.384986c0-13.550258-6.245907-25.944536-16.367961-33.769079a89.321165 89.321165 0 0 0 5.418658-8.500069 91.680087 91.680087 0 0 0 11.689853-44.902616v-10.905953a31.984534 31.984534 0 0 0-2.423947-12.257005 31.428219 31.428219 0 0 0-6.585476-10.006456 30.745468 30.745468 0 0 0-9.753585-6.791385 29.983243 29.983243 0 0 0-11.964398-2.528708h-24.203341c0.0289-0.205909 0.057799-0.44433 0.090311-0.686363 1.083732-8.539806 3.558252-16.255975 7.318802-22.985949a52.22503 52.22503 0 0 1 13.488847-15.775521c10.3677-8.099088 23.748173-12.253393 37.677738-11.700689s26.89822 5.732941 36.594006 14.597865a52.18168 52.18168 0 0 1 12.224493 16.711143 61.884691 61.884691 0 0 1 5.277773 19.843127h-6.863634a28.574392 28.574392 0 0 0-20.551165 8.771002 30.019367 30.019367 0 0 0-8.510906 21.082193 75.536098 75.536098 0 0 0 6.108635 29.892932 73.180788 73.180788 0 0 0 17.372218 24.828293q2.564832 2.402272 5.321123 4.580573c-0.054187 0.057799-0.097536 0.122823-0.14811 0.180622a42.854363 42.854363 0 0 0-11.075738 28.841712z m2.615405-99.63829a9.229781 9.229781 0 0 0 9.031098 7.925691 9.031097 9.031097 0 0 0 6.990069-3.323444l-0.028899 40.845847v0.455167a42.493119 42.493119 0 0 1-0.657464 10.718107q-1.047607-0.90311-2.051866-1.845957c-11.837962-11.061288-18.625735-26.890995-18.625735-43.435965a14.64844 14.64844 0 0 1 5.34641-11.335834z m30.192765 91.145447c-5.935237 1.77732-11.693465 2.467296-17.187984 2.069927a27.454536 27.454536 0 0 1 6.347055-12.047484c0.614115-0.682751 1.246291-1.423301 1.874856-2.22165a97.01566 97.01566 0 0 0 19.597481 7.947366 66.692847 66.692847 0 0 1-10.631408 4.26629z m33.769079-103.362715a36.124389 36.124389 0 0 1-6.81306 18.181405l-26.255206 35.875131 0.0289-52.52125a38.425513 38.425513 0 0 0-0.075862-5.010453v-0.025287c-0.820024-17.065161-6.426529-32.074845-16.136764-43.876683h16.331836a18.809969 18.809969 0 0 1 7.383825 1.535287 19.200113 19.200113 0 0 1 6.260357 4.302414 86.181955 86.181955 0 0 1 15.746621 22.397122 36.395322 36.395322 0 0 1 3.529353 19.145926zM169.13439 665.158379h-29.444989v38.768695h-11.776551v-99.128937h42.204124q31.894223 1.473875 34.350682 28.953698-0.494904 30.915252-35.333266 31.406544z m-1.961554-51.043762h-27.483435v41.221541h27.479823q25.511044 0 25.518268-21.591548-0.986196-19.131477-25.514656-19.629993zM251.577472 629.825114q32.389127 1.470263 33.85939 38.291853-0.494904 36.803528-35.333265 37.294819-32.873194-1.965167-34.841974-36.80714 1.484712-37.793336 36.315849-38.779532zM250.598501 697.561957q23.06181-0.978971 23.556714-29.44499-0.989808-27.971115-23.556714-29.44499-22.577743 0.989808-23.556715 29.936282 0.978971 26.981306 23.556715 28.953698zM355.124421 648.963816l-11.285259 1.961554q-3.439042-12.755522-17.664827-12.759134-16.689468 0.494904-17.177147 12.282292-1.473875 8.832413 20.121285 12.282292h0.982584a37.999245 37.999245 0 0 1 6.863634 1.961555q21.587935 4.909304 21.100255 19.629993-0.494904 20.12851-29.936281 20.612576-27.971115 0.978971-32.873194-21.100255l10.79758-2.452846q2.944138 16.689468 21.591547 16.194563t19.145926-13.250426q0.978971-8.832413-15.21198-12.282292h-1.473875a60.32773 60.32773 0 0 1-6.863634-1.961554q-26.00956-4.418013-25.026977-19.629994 0.978971-19.622768 26.992144-20.608964 25.008915-0.018062 29.918219 19.12064zM388.983811 605.780721v26.00956h15.703272V640.124178h-15.703272v46.618524q-0.494904 11.296097 8.341122 10.79758c2.944138 0 5.230812-0.491292 6.863633-1.473875l1.961555 5.888275q-4.418013 2.944138-12.282293 2.944138-16.194564 0.484067-15.703272-16.685855V640.124178h-11.77655v-8.341122h11.77655v-22.574131zM467.995075 631.298989h10.79758v62.325409q1.954329 37.782499-35.333265 35.824557-21.103868-0.494904-28.953698-15.21198l9.323705-2.452846q6.863634 8.337509 20.612576 8.832413 24.037169 0.484067 23.556715-22.574131v-9.814997q-6.38318 12.766359-25.518269 12.759135-29.939894-0.989808-30.423961-34.841974 0.978971-34.838361 31.406544-36.315848 17.664826 0 24.535686 13.250426v-11.776551z m0 37.786111v-8.832413q-1.470263-20.117672-21.100256-21.591547-22.577743 0.989808-23.556714 27.479823 0.484067 26.995756 22.574131 27.479823 21.587935-0.484067 22.082839-24.535686zM506.76377 665.158379v38.291853h-10.79758v-71.663563h10.79758v13.250426q5.393371-14.724301 19.145926-15.211981a27.66767 27.66767 0 0 1 13.250426 3.43543l-4.418013 10.306288q-3.933946-3.428205-10.79758-3.43543-16.696693 0.989808-17.180759 25.026977zM600.983402 681.844235l11.776551 1.961554q-6.863634 21.598772-33.371711 21.100256-35.333265-1.473875-36.315849-36.315849 1.473875-37.287595 35.333266-38.768694 33.85939 0.494904 34.350681 39.259986v2.470908H554.870619q0.978971 24.051618 24.044393 25.518269 18.629348-0.498517 22.06839-15.22643zM554.870619 663.196825h46.600462q-0.494904-24.037169-23.065422-24.535685-22.090064 1.463038-23.53504 24.535685zM624.540116 674.482084l11.776551-3.435429q2.944138 26.00956 30.423961 25.518268 24.532073-0.484067 26.00956-19.145926 1.473875-13.250426-25.026977-19.145926a1.390789 1.390789 0 0 1-0.982583-0.491292q-1.470263-0.484067-5.396984-1.473875-34.849198-5.888275-33.371711-26.500852 1.473875-25.511044 35.333265-26.500852 33.85939 0 39.259986 26.500852l-12.282292 2.944138q-3.439042-19.622768-26.00956-20.121285-22.082839 0.989808-24.044394 17.177147-1.473875 12.282292 26.500852 17.664826c0.982583 0 2.286674 0.328732 3.926721 0.982584 1.961554 0.328732 3.251195 0.661076 3.926721 0.982583q31.894223 7.857055 30.423961 27.971115-1.965167 26.995756-37.294819 27.971114-36.79269 0.997033-43.172258-30.89719zM778.141019 703.435782l23.556714 22.574131-13.250426 3.926721-22.086451-25.511044Q719.23659 702.944491 717.791614 654.852091q1.954329-49.562662 48.583692-51.527829 44.649745 2.944138 47.601107 51.036537-1.000646 39.751278-35.835394 49.074983z m-48.583691-49.074983q1.470263 39.267211 35.333265 41.221541 35.333265-1.473875 36.315849-41.221541-1.965167-38.76147-35.824557-41.22154-33.863002 2.944138-35.824557 41.22154zM895.917365 703.927074h-65.269546v-99.128937h11.285259v90.310973h53.980675v8.832414z" fill="" p-id="790" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/Vertica.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-Vertica",use:"icon-Vertica-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-Vertica"><defs><style type="text/css"></style></defs><path d="M700.16 625.92a88.32 88.32 0 1 0 88.32 88.32 88.32 88.32 0 0 0-88.32-88.32z m0 130.986667a42.666667 42.666667 0 1 1 42.666667-42.666667 42.666667 42.666667 0 0 1-42.666667 42.666667z m233.386667-88.746667a31.146667 31.146667 0 0 0-28.586667-29.013333h-2.133333A49.92 49.92 0 0 1 853.333333 589.226667a55.466667 55.466667 0 0 1 4.266667-18.773334 36.693333 36.693333 0 0 0-13.653333-42.666666l-58.453334-32a34.133333 34.133333 0 0 0-14.506666-2.986667 42.666667 42.666667 0 0 0-28.16 11.093333 74.666667 74.666667 0 0 1-39.68 23.04 75.946667 75.946667 0 0 1-40.533334-23.466666 39.253333 39.253333 0 0 0-28.16-11.52 30.72 30.72 0 0 0-14.08 2.986666l-59.306666 32.426667a36.693333 36.693333 0 0 0-12.373334 42.666667 53.76 53.76 0 0 1 4.693334 18.773333 49.92 49.92 0 0 1-53.333334 51.2h-2.56c-14.08 0-25.173333 11.52-28.586666 29.013333a314.88 314.88 0 0 0-4.693334 46.08 315.733333 315.733333 0 0 0 5.12 45.653334 31.573333 31.573333 0 0 0 29.013334 29.013333h2.133333a49.92 49.92 0 0 1 49.92 49.92 72.533333 72.533333 0 0 1-4.266667 18.773333 37.12 37.12 0 0 0 13.226667 44.8l57.6 31.573334a32.853333 32.853333 0 0 0 14.506667 2.986666 37.973333 37.973333 0 0 0 28.16-11.946666 78.506667 78.506667 0 0 1 42.666666-24.32 76.373333 76.373333 0 0 1 42.666667 24.746666 40.106667 40.106667 0 0 0 23.04 12.373334 37.546667 37.546667 0 0 0 15.786667-3.413334l58.026666-32a35.413333 35.413333 0 0 0 12.373334-42.666666 57.173333 57.173333 0 0 1-4.266667-18.773334 49.92 49.92 0 0 1 49.92-49.92h2.133333a31.146667 31.146667 0 0 0 28.586667-29.013333 239.786667 239.786667 0 0 0 8.106667-48.64 248.32 248.32 0 0 0-5.12-46.08z m-42.666667 76.8a95.146667 95.146667 0 0 0-83.2 94.293333 101.546667 101.546667 0 0 0 5.12 29.013334l-42.666667 23.04c-3.84-3.413333-9.813333-8.96-17.066666-14.506667a93.013333 93.013333 0 0 0-53.333334-20.906667 90.026667 90.026667 0 0 0-52.906666 20.48 180.906667 180.906667 0 0 0-17.066667 14.506667l-40.106667-22.613333a85.333333 85.333333 0 0 0 5.12-28.586667A95.146667 95.146667 0 0 0 512 744.96a208.213333 208.213333 0 0 1-2.986667-30.72A208.213333 208.213333 0 0 1 512 682.666667a95.573333 95.573333 0 0 0 85.333333-93.44 85.333333 85.333333 0 0 0-5.12-28.586667l42.666667-23.893333a142.08 142.08 0 0 0 17.066667 14.08 91.306667 91.306667 0 0 0 52.053333 19.626666 90.026667 90.026667 0 0 0 51.2-19.2 195.84 195.84 0 0 0 17.066667-13.653333l42.666666 23.04a98.133333 98.133333 0 0 0-5.12 28.586667A95.573333 95.573333 0 0 0 890.453333 682.666667a213.333333 213.333333 0 0 1 2.56 30.293333 217.6 217.6 0 0 1-2.56 32z m-501.333333-128zM439.893333 85.333333C244.053333 85.333333 85.333333 170.666667 85.333333 272.213333v506.453334C85.333333 866.986667 244.053333 938.666667 439.893333 938.666667v-53.333334c-167.68 0-303.786667-47.786667-303.786666-106.666666v-77.653334a489.813333 489.813333 0 0 0 253.44 75.946667V725.333333c-144.213333-8.106667-253.44-52.053333-253.44-104.96v-79.36a489.386667 489.386667 0 0 0 253.013333 75.946667v-52.906667C245.333333 554.666667 136.106667 512 136.106667 458.666667V368.213333c61.866667 54.186667 174.933333 90.453333 303.786666 90.453334a480 480 0 0 0 304.213334-90.453334v72.106667h50.346666V272.213333C794.453333 170.666667 635.733333 85.333333 439.893333 85.333333z m0 320c-167.68 0-303.786667-59.733333-303.786666-133.12s136.106667-133.546667 303.786666-133.546666 304.213333 59.733333 304.213334 133.546666-136.106667 133.12-304.213334 133.12z" p-id="4560" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/addProject.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-addProject",use:"icon-addProject-usage",viewBox:"0 0 18 18",content:'<symbol viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-addProject">\r\n <title>\u6dfb\u52a0</title>\r\n <g id="icon-addProject_\u7ec4\u4ef6" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-addProject_header" transform="translate(-436.000000, -20.000000)" fill="#636262">\r\n <g id="icon-addProject_\u9879\u76ee\u5217\u8868" transform="translate(264.000000, 14.000000)">\r\n <g id="icon-addProject_\u6dfb\u52a0" transform="translate(172.000000, 6.000000)">\r\n <path d="M9,3.375 C9.31066017,3.375 9.5625,3.62683983 9.5625,3.9375 L9.5625,8.4375 L14.0625,8.4375 C14.3731602,8.4375 14.625,8.68933983 14.625,9 C14.625,9.31066017 14.3731602,9.5625 14.0625,9.5625 L9.5625,9.5625 L9.5625,14.0625 C9.5625,14.3731602 9.31066017,14.625 9,14.625 C8.68933983,14.625 8.4375,14.3731602 8.4375,14.0625 L8.4375,9.5625 L3.9375,9.5625 C3.62683983,9.5625 3.375,9.31066017 3.375,9 C3.375,8.68933983 3.62683983,8.4375 3.9375,8.4375 L8.4375,8.4375 L8.4375,3.9375 C8.4375,3.62683983 8.68933983,3.375 9,3.375 Z" id="icon-addProject_\u8def\u5f84" />\r\n <path d="M9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 Z M9,1.125 C4.6507576,1.125 1.125,4.6507576 1.125,9 C1.125,13.3492424 4.6507576,16.875 9,16.875 C13.3492424,16.875 16.875,13.3492424 16.875,9 C16.875,4.6507576 13.3492424,1.125 9,1.125 Z" id="icon-addProject_\u692d\u5706\u5f62" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/apiChange.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-apiChange",use:"icon-apiChange-usage",viewBox:"0 0 12 12",content:'<symbol viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-apiChange">\r\n <title>\u63a5\u53e3\u53d8\u66f4</title>\r\n <g id="icon-apiChange_\u6a21\u578b\u63a8\u7406" stroke="none" stroke-width="1">\r\n <g id="icon-apiChange_\u63a5\u53e3\u53d8\u66f4" transform="translate(-9.000000, -6.000000)">\r\n <g transform="translate(9.000000, 6.000000)" id="icon-apiChange_\u5f62\u72b6\u7ed3\u5408">\r\n <path d="M6.484,0 C6.761,0 6.993,0.203 7.034,0.477 L7.034,0.477 L7.07,0.73 C9.113,1.181 10.712,2.783 11.172,4.837 L11.172,4.837 L11.428,4.869 C11.705,4.903 11.915,5.142 11.915,5.424 L11.915,5.424 L11.915,6.53 C11.915,6.808 11.713,7.043 11.44,7.084 L11.44,7.084 L11.192,7.12 C10.764,9.205 9.165,10.844 7.103,11.313 L7.103,11.313 L7.079,11.509 C7.044,11.79 6.809,12 6.528,12 L6.528,12 L5.431,12 C5.156,12 4.922,11.796 4.881,11.523 L4.881,11.523 L4.853,11.339 C2.756,10.914 1.099,9.26 0.658,7.15 L0.658,7.15 L0.487,7.129 C0.21,7.094 -1.77635684e-14,6.856 -1.77635684e-14,6.573 L-1.77635684e-14,6.573 L-1.77635684e-14,5.467 C-1.77635684e-14,5.19 0.203,4.954 0.475,4.914 L0.475,4.914 L0.662,4.888 C1.109,2.797 2.732,1.166 4.808,0.722 L4.808,0.722 L4.836,0.489 C4.871,0.209 5.106,0 5.388,0 L5.388,0 Z M6.463,0.584 L5.415,0.584 L5.337,1.207 L5.312,1.231 C3.161,1.507 1.452,3.219 1.168,5.385 L1.168,5.385 L1.144,5.41 L0.586,5.492 L0.586,6.547 L1.141,6.617 L1.166,6.641 C1.443,8.83 3.174,10.56 5.35,10.821 L5.35,10.821 L5.374,10.846 L5.457,11.411 L6.505,11.411 L6.575,10.833 L6.601,10.808 C8.737,10.504 10.419,8.783 10.684,6.621 L10.684,6.621 L10.708,6.597 L11.332,6.504 L11.332,5.449 L10.697,5.369 L10.673,5.344 C10.375,3.212 8.696,1.527 6.578,1.235 L6.578,1.235 L6.554,1.211 L6.463,0.584 Z M5.9582,1.7914 C7.4062,1.7914 8.7392,2.5414 9.5032,3.7734 C9.9172,4.4404 10.1362,5.2124 10.1342136,5.9994 C10.1342136,6.9494 9.8192,7.8614 9.2382,8.6034 C8.4482,9.6184 7.2382,10.2094 5.9582,10.2084013 C4.6692,10.2084013 3.4652,9.6144 2.6722,8.5974 C2.0932,7.8564 1.7792,6.9414 1.7811905,5.9994 C1.7811905,5.2114 1.9982,4.4484 2.4062,3.7834 C3.1672,2.5444 4.5122,1.7914 5.9582,1.7914 Z M8.6482,4.6234 L8.1422,4.6234 L8.1422,7.1284 L8.6482,7.1284 L8.6482,4.6234 Z M6.6352,4.6234 L5.8232,4.6234 L5.8232,7.1284 L6.3292,7.1284 L6.3292,6.1834 L6.6582,6.1834 C6.8872,6.1834 7.0622,6.1714 7.1832,6.1474 C7.2722,6.1284 7.3592,6.0884 7.4452,6.0284 C7.5312,5.9684 7.6022,5.8864 7.6582,5.7814 C7.7142,5.6764 7.7422,5.5474 7.7422,5.3944 C7.7422,5.1944 7.6932,5.0314 7.5962,4.9054 C7.5002,4.7794 7.3802,4.6984 7.2362,4.6604 C7.1422,4.6354 6.9422,4.6234 6.6352,4.6234 L6.6352,4.6234 Z M4.5522,4.6234 L4.0162,4.6234 L3.0412,7.1284 L3.5782,7.1284 L3.7842,6.5594 L4.7862,6.5594 L5.0052,7.1284 L5.5542,7.1284 L4.5522,4.6234 Z M4.2785,5.2073 L4.6235,6.1373 L3.9395,6.1373 L4.2785,5.2073 Z M6.5735,5.047 C6.7555,5.047 6.8765,5.053 6.9375,5.064 C7.0195,5.079 7.0865,5.116 7.1405,5.175 C7.1945,5.234 7.2205,5.31 7.2205,5.401 C7.2205,5.475 7.2025,5.54 7.1645,5.595 C7.1255,5.651 7.0735,5.692 7.0055,5.718 C6.9385,5.745 6.8045,5.758 6.6055,5.758 L6.6055,5.758 L6.3295,5.758 L6.3295,5.047 Z" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/applications.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-applications",use:"icon-applications-usage",viewBox:"0 0 70 67",content:'<symbol viewBox="0 0 70 67" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-applications">\r\n <title>\u7f16\u7ec4 14</title>\r\n <g id="icon-applications_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-applications_\u7f16\u7ec4-14">\r\n <g id="icon-applications_\u7f16\u7ec4-9">\r\n <rect id="icon-applications_\u77e9\u5f62\u5907\u4efd" fill="#DA615D" x="0" y="0" width="70" height="67" rx="4" />\r\n <path d="M34.3047719,41.2818519 C34.3047719,44.4390962 31.7453716,46.9984681 28.5881557,46.9984681 C25.4309397,46.9984681 22.8715111,44.4390962 22.8715111,41.2818519 C22.8715111,38.124636 25.4309397,35.5652357 28.5881556,35.5652357 L32.3992237,35.5652357 L34.3047719,35.5652357 L34.3047719,37.4707839 L34.3047719,41.2818519 L34.3047719,41.2818519 Z M35.5751657,41.2818519 C35.5751657,44.4390962 38.1345659,46.9984681 41.2917819,46.9984681 C44.4489978,46.9984681 47.0083981,44.4390962 47.0083981,41.2818519 C47.0083981,38.124636 44.4489978,35.5652357 41.2917819,35.5652357 L37.4807139,35.5652357 L35.5751657,35.5652357 L35.5751657,37.4707839 L35.5751657,41.2818519 L35.5751657,41.2818519 Z M34.3047719,28.578254 C34.3047719,25.4210097 31.7453716,22.8616378 28.5881557,22.8616378 C25.4309397,22.8616378 22.8715111,25.4210097 22.8715111,28.578254 C22.8715111,31.7354983 25.4309397,34.2948702 28.5881556,34.2948702 L32.3992237,34.2948702 L34.3047719,34.2948702 L34.3047719,32.3893221 L34.3047719,28.578254 L34.3047719,28.578254 Z M35.5751657,28.578254 L35.5751657,28.578254 C35.5751657,25.4210097 38.1345659,22.8616378 41.2917819,22.8616378 C44.4489978,22.8616378 47.0083981,25.4210381 47.0083981,28.578254 C47.0083981,31.73547 44.4489978,34.2948702 41.2917819,34.2948702 L37.4807139,34.2948702 L35.5751657,34.2948702 L35.5751657,32.3893221 L35.5751657,28.578254 L35.5751657,28.578254 Z" id="icon-applications_\u5f62\u72b6" fill="#FFFFFF" fill-rule="nonzero" />\r\n </g>\r\n <rect id="icon-applications_\u77e9\u5f62" fill="#000000" fill-rule="nonzero" opacity="0" x="22" y="22" width="26" height="26" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/belle.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-belle",use:"icon-belle-usage",viewBox:"0 0 14 15",content:'<symbol viewBox="0 0 14 15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-belle">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u6d88\u606f</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-belle_\u7ec4\u4ef6" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-belle_Navi" transform="translate(-1353.000000, -23.000000)">\r\n <g id="icon-belle_Navi/Icons">\r\n <g transform="translate(1280.000000, 17.882581)">\r\n <g id="icon-belle_icon/\u6d88\u606f" transform="translate(72.000000, 4.117419)">\r\n <g>\r\n <polygon id="icon-belle_\u8def\u5f84" points="0 0 16 0 16 16 0 16" />\r\n <path d="M14.6666667,13.3333333 L1.33333333,13.3333333 L1.33333333,12 L2,12 L2,7.354 C2,4.02866667 4.68666667,1.33333333 8,1.33333333 C11.3133333,1.33333333 14,4.02866667 14,7.354 L14,12 L14.6666667,12 L14.6666667,13.3333333 Z M3.33333333,12 L12.6666667,12 L12.6666667,7.354 C12.6666667,4.76533333 10.5773333,2.66666667 8,2.66666667 C5.42266667,2.66666667 3.33333333,4.76533333 3.33333333,7.354 L3.33333333,12 Z M6.33333333,14 L9.66666667,14 C9.66666667,14.9204746 8.92047458,15.6666667 8,15.6666667 C7.07952542,15.6666667 6.33333333,14.9204746 6.33333333,14 L6.33333333,14 Z" id="icon-belle_\u5f62\u72b6" fill="#FFFFFF" fill-rule="nonzero" opacity="0.65" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/bianma.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-bianma",use:"icon-bianma-usage",viewBox:"0 0 54 52",content:'<symbol viewBox="0 0 54 52" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-bianma">\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-bianma_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-bianma_\u9996\u9875\u5907\u4efd" transform="translate(-859.000000, -181.000000)">\r\n <g transform="translate(859.000000, 181.000000)">\r\n <g id="icon-bianma_\u7f16\u7ec4-5\u5907\u4efd" fill="#2296F3">\r\n <rect id="icon-bianma_\u77e9\u5f62\u5907\u4efd" x="0" y="0" width="54" height="52" rx="4" />\r\n </g>\r\n <g id="icon-bianma_\u4ee3\u7801\u5907\u4efd" transform="translate(15.000000, 14.000000)" fill-rule="nonzero">\r\n <rect id="icon-bianma_\u77e9\u5f62" fill="#000000" opacity="0" x="0" y="0" width="25" height="25" />\r\n <path d="M22.5175235,0 L2.48155981,0 C1.13474336,0.00404401051 0.0439374675,1.0948499 0.039893457,2.44166636 L0.039893457,22.5583336 C0.0439374675,23.9051501 1.13474336,24.995956 2.48155981,25 L22.5175235,25 C23.8642898,24.9959551 24.9550074,23.9051005 24.958883,22.5583336 L24.958883,2.4428938 C24.9556814,1.09564768 23.8647674,0.00404808391 22.5175235,0 Z M10.4475845,9.81545581 L6.11843674,12.3316886 L10.4475845,14.702164 L10.4475845,16.6859987 L4.38683899,13.0574069 L4.38683899,11.6541469 L10.4475845,7.73496091 L10.4475845,9.81545581 Z M12.1794891,18.7183169 L10.8618424,18.7183169 L12.7818507,6.28413792 L14.0991906,6.28413792 L12.1794891,18.7183169 Z M20.6119375,13.0580207 L14.5508851,16.6856918 L14.5508851,14.7018571 L18.8800329,12.3313817 L14.5508851,9.81514895 L14.5508851,7.73465405 L20.6119375,11.6541469 L20.6119375,13.0580207 Z" id="icon-bianma_\u5f62\u72b6" fill="#FFFFFF" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/bulb.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-bulb",use:"icon-bulb-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-bulb">\r\n <path d="M281.674 253.424c11.553-14.585 24.288-28.14 38.208-40.267l-68.978-69.013c-10.828-10.867-28.404-10.867-39.275 0-10.831 10.831-10.831 28.404 0 39.235l70.046 70.043zM506.013 142.469c0.268 0 0.494 0 0.802 0 9.109 0 18.109 0.571 26.955 1.487l0-93.986c0-15.327-12.432-27.757-27.76-27.757s-27.721 12.429-27.721 27.757l0 93.968c8.846-0.895 17.842-1.469 26.956-1.469 0.27 0 0.534 0 0.762 0zM730.414 253.388l69.971-70.007c10.866-10.831 10.866-28.404 0-39.235-10.794-10.867-28.405-10.867-39.277 0l-69.018 69.013c13.958 12.123 26.695 25.664 38.324 40.227zM213.494 450.225c0-13.403 1.07-26.519 2.633-39.483l-98.682 0c-15.289 0-27.722 12.432-27.722 27.757 0 15.328 12.434 27.757 27.722 27.757l96.393 0c-0.229-5.28-0.345-10.581-0.345-16.033zM894.563 410.745l-98.643 0c1.6 12.964 2.633 26.082 2.633 39.483 0 5.45-0.115 10.753-0.305 16.033l96.315 0c15.332 0 27.722-12.429 27.722-27.757s-12.39-27.757-27.722-27.757zM745.017 638.262c-11.286 16.547-23.218 30.843-34.695 43.77l50.787 50.829c10.868 10.831 28.483 10.831 39.277 0 10.866-10.867 10.866-28.404 0-39.275l-55.37-55.324zM211.627 693.585c-10.831 10.867-10.831 28.404 0 39.275 10.868 10.831 28.448 10.831 39.275 0l50.83-50.863c-11.475-12.889-23.412-27.222-34.699-43.731l-55.403 55.324zM760.039 450.225c0.037-57.556-19.138-110.785-51.438-153.414-28.33-37.442-66.806-66.802-111.379-84.036l0.229-1.222-19.026-5.586c-14.798-4.29-30.051-7.265-45.605-8.867l-2.211-0.246-0.075 0-0.079-0.019c-7.623-0.724-15.557-1.279-23.83-1.279l-1.218 0c-8.276 0-16.207 0.557-23.833 1.279l-0.115 0.019-2.286 0.246c-15.535 1.6-30.791 4.575-45.549 8.867l-18.416 5.374 0.19 1.222c-44.802 17.214-83.505 46.651-111.99 84.244-32.258 42.628-51.438 95.854-51.438 153.414 0 41.274 7.132 75.207 18.227 103.29 16.661 42.114 42.094 70.559 62.533 92.138 10.22 10.754 19.22 19.941 25.317 27.795 6.254 7.892 9.265 13.995 10.141 18.837 4.459 23.565 4.917 53.306 4.917 60.854l0 2.174c0 34.085 27.609 61.617 61.659 61.655l142.51 0c34.092-0.037 61.659-27.609 61.659-61.655l0-2.097c-0.037-7.474 0.458-37.291 4.919-60.893 0.608-3.278 2.058-7.017 4.917-11.591 4.88-7.97 14.11-17.883 25.548-29.819 17.083-17.959 38.815-40.604 56.091-72.805 17.312-32.161 29.703-73.706 29.626-127.882zM701.813 537.676c-13.614 34.336-34.053 57.575-53.763 78.391-9.841 10.411-19.487 20.095-27.911 30.812-8.311 10.562-15.745 22.65-18.606 37.481-5.377 28.94-5.607 59.978-5.638 68.862 0 1.181 0 1.828 0 2.096-0.037 10.295-8.314 18.606-18.608 18.606l-142.51 0c-5.223 0-9.761-2.059-13.194-5.45-3.391-3.434-5.412-7.934-5.412-13.154 0-0.268 0-0.953 0-2.172-0.037-8.957-0.306-39.921-5.682-68.783-1.828-9.797-5.834-18.571-10.674-26.348-8.579-13.612-19.559-24.819-30.889-36.832-17.116-17.842-35.232-37.119-49.341-63.41-14.07-26.309-24.517-59.745-24.557-107.54 0.037-47.947 15.862-91.95 42.706-127.427 26.845-35.442 64.595-62.209 108.175-75.246l5.377-1.638c10.524-2.708 21.315-4.861 32.429-6.026l0.075 0 2.06-0.229c6.519-0.627 12.847-1.03 19.103-1.066l1.105 0.115 1.106-0.076c6.212 0 12.579 0.42 19.063 1.03l-0.079 0 2.137 0.229 0.037 0c11.093 1.163 21.887 3.277 32.372 6.026l5.451 1.638c43.582 13.037 81.329 39.807 108.175 75.246 26.801 35.478 42.666 79.482 42.666 127.427 0.003 36.409-6.094 64.511-15.169 87.446zM532.782 197.107l0.079 0zM479.17 197.107l0 0c0 0 0.037 0 0.075 0l-0.075 0zM576.706 833.825l-141.369 0c-14.604 0-26.499 11.822-26.499 26.539 0 14.564 11.899 26.465 26.499 26.465l141.369 0c14.604 0 26.499-11.899 26.499-26.465 0-14.721-11.899-26.539-26.499-26.539zM576.706 900.704l-141.369 0c-14.604 0-26.499 11.857-26.499 26.464 0 14.678 11.899 26.539 26.499 26.539l141.369 0c14.604 0 26.499-11.857 26.499-26.539 0-14.605-11.899-26.464-26.499-26.464zM518.406 968.116l-72.805 0c0 0.801-0.154 1.561-0.154 2.404 0 14.643 22.498 26.499 43.297 26.499l34.546 0c20.818 0 43.277-11.857 43.277-26.499 0-0.837-0.115-1.6-0.115-2.404l-48.044 0z" p-id="2169" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/cancelExec.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-cancelExec",use:"icon-cancelExec-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-cancelExec">\r\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/canvas_clear.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-canvas_clear",use:"icon-canvas_clear-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-canvas_clear">\r\n <path d="M436.3 998.9c-36.9 0-71.5-14.3-97.5-40.3l-273-272.9c-53.7-53.7-53.7-141.2 0-195l423-423c53.7-53.8 141.2-53.7 194.9 0l273 273c53.7 53.7 53.7 141.2 0 194.9l-423 423c-25.9 26-60.5 40.3-97.4 40.3z m150-916.3c-21.2 0-42.3 8.1-58.5 24.2l-423 423c-32.2 32.3-32.2 84.8 0 117l273 272.9c31.1 31.1 85.8 31.2 117 0l423-423c15.5-15.5 24.1-36.3 24.1-58.5 0-22.2-8.6-43-24.1-58.5l-273-273c-16.1-16-37.3-24.1-58.5-24.1z" />\r\n <path d="M586.4 894.6c-7.1 0-14.1-2.7-19.5-8.1L138 457.6c-10.8-10.8-10.8-28.2 0-39L423.6 133c10.8-10.8 28.2-10.8 39 0l428.9 429c10.8 10.8 10.8 28.2 0 39L605.9 886.5c-5.4 5.4-12.4 8.1-19.5 8.1zM196.5 438.1L586.4 828 833 581.5 443.1 191.6 196.5 438.1zM969.4 998.9H424c-15.2 0-27.6-12.3-27.6-27.6 0-15.2 12.3-27.6 27.6-27.6h545.4c15.2 0 27.6 12.3 27.6 27.6s-12.4 27.6-27.6 27.6z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/canvas_revert.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-canvas_revert",use:"icon-canvas_revert-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-canvas_revert">\r\n <path d="M732.16 153.6h152.2688v153.6h61.44V92.16H732.16v61.44zM139.5712 307.2V153.6H302.08V92.16H78.1312v215.04h61.44zM302.08 890.88H139.5712v-153.6h-61.44v215.04H302.08v-61.44zM884.4288 737.28v153.6H732.16v61.44h213.7088v-215.04h-61.44zM732.16 742.4H291.84V302.08h440.32z m-378.88-61.44h317.44V363.52H353.28z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/card.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-card",use:"icon-card-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-card">\r\n <path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z" />\r\n <path d="M0 0h24v24H0z" fill="none" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/cloese.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-cloese",use:"icon-cloese-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-cloese">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/cloese</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-cloese_\u6a21\u578b\u8bad\u7ec3_\u6a21\u578b\u5e93" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-cloese_HoverBtns" transform="translate(-1076.000000, -616.000000)">\r\n <g id="icon-cloese_icon/cloese" transform="translate(1076.000000, 616.000000)">\r\n <g id="icon-cloese_\u77e9\u5f62">\r\n <rect fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <rect fill="#FFF" transform="translate(6.949747, 6.949747) rotate(45.000000) translate(-6.949747, -6.949747) " x="5.94974747" y="0.949747468" width="2" height="12" rx="1" />\r\n <rect fill="#FFF" transform="translate(6.949747, 6.949747) rotate(-45.000000) translate(-6.949747, -6.949747) " x="5.94974747" y="0.949747468" width="2" height="12" rx="1" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/code-box.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-code-box",use:"icon-code-box-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-code-box">\r\n <path fill="none" d="M0 0h24v24H0z" />\r\n <path d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2v14h16V5H4zm16 7l-3.536 3.536-1.414-1.415L17.172 12 15.05 9.879l1.414-1.415L20 12zM6.828 12l2.122 2.121-1.414 1.415L4 12l3.536-3.536L8.95 9.88 6.828 12zm4.416 5H9.116l3.64-10h2.128l-3.64 10z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/config.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-config",use:"icon-config-usage",viewBox:"0 0 11 11",content:'<symbol viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-config">\r\n <title>\u89c4\u683c\u8c03\u6574</title>\r\n <g id="icon-config_\u6a21\u578b\u63a8\u7406" stroke="none" stroke-width="1">\r\n <g id="icon-config_\u89c4\u683c\u8c03\u6574" transform="translate(-9.000000, -6.000000)">\r\n <g transform="translate(9.000000, 6.000000)" id="icon-config_Fill-1">\r\n <path d="M8.094,3.905 L4.377,3.905 L4.377,4.076 C4.377,4.262 4.226,4.414 4.039,4.414 C3.853,4.414 3.701,4.262 3.701,4.076 L3.701,3.905 L2.907,3.905 C2.718,3.905 2.565,3.752 2.565,3.564 C2.565,3.375 2.718,3.222 2.907,3.222 L3.701,3.222 L3.701,3.051 C3.701,2.865 3.853,2.714 4.039,2.714 C4.226,2.714 4.377,2.865 4.377,3.051 L4.377,3.222 L8.094,3.222 C8.282,3.222 8.436,3.375 8.436,3.564 C8.436,3.752 8.282,3.905 8.094,3.905 M8.094,5.841 L7.299,5.841 L7.299,6.012 C7.299,6.198 7.148,6.35 6.961,6.35 C6.775,6.35 6.623,6.198 6.623,6.012 L6.623,5.841 L2.907,5.841 C2.718,5.841 2.565,5.688 2.565,5.5 C2.565,5.311 2.718,5.158 2.907,5.158 L6.623,5.158 L6.623,4.988 C6.623,4.801 6.775,4.65 6.961,4.65 C7.148,4.65 7.299,4.801 7.299,4.988 L7.299,5.158 L8.094,5.158 C8.282,5.158 8.436,5.311 8.436,5.5 C8.436,5.688 8.282,5.841 8.094,5.841 M8.094,7.777 L4.377,7.777 L4.377,7.948 C4.377,8.134 4.226,8.286 4.039,8.286 C3.853,8.286 3.701,8.134 3.701,7.948 L3.701,7.777 L2.907,7.777 C2.718,7.777 2.565,7.624 2.565,7.436 C2.565,7.247 2.718,7.094 2.907,7.094 L3.701,7.094 L3.701,6.924 C3.701,6.737 3.853,6.586 4.039,6.586 C4.226,6.586 4.377,6.737 4.377,6.924 L4.377,7.094 L8.094,7.094 C8.282,7.094 8.436,7.247 8.436,7.436 C8.436,7.624 8.282,7.777 8.094,7.777 M5.5,0 C2.463,0 0,2.462 0,5.5 C0,8.537 2.463,11 5.5,11 C8.537,11 11,8.537 11,5.5 C11,2.462 8.537,0 5.5,0" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/connected.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-connected",use:"icon-connected-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" id="icon-connected"><path d="M512.002 917.903c-223.891 0-405.98-182.116-405.98-405.929 0-223.89 182.113-406.004 405.98-406.004 223.867 0 405.98 182.164 405.98 406.004 0 223.816-182.116 405.93-405.98 405.93z m0-854.6c-247.39 0-448.698 201.255-448.698 448.722 0 247.416 201.255 448.671 448.698 448.671 247.443 0 448.698-201.255 448.698-448.67 0-247.417-201.31-448.723-448.698-448.723z m-86.476 569.823l207.67-207.695c10.079-10.079 10.079-26.551 0-36.631-10.078-10.08-26.548-10.08-36.627 0L388.9 596.495c-10.078 10.08-10.078 26.551 0 36.631 10.02 10.08 26.549 10.08 36.627 0z m68.532-35.94c3.629 5.068 4.262 10.425 4.262 13.42 0 3.57-0.864 10.482-6.68 16.3L382.794 735.764c-5.817 5.817-12.67 6.681-16.298 6.681-3.57 0-10.481-0.864-16.298-6.681l-61.91-61.917c-5.816-5.817-6.68-12.671-6.68-16.3 0-3.628 0.864-10.482 6.68-16.3L397.134 532.39c5.817-5.817 12.67-6.681 16.298-6.681 2.534 0 6.68 0.46 10.885 2.707l33.056-33.06c-27.067-22.349-67.495-20.85-92.835 4.434L255.692 608.648c-26.894 26.897-26.894 70.844 0 97.741l61.91 61.917c26.895 26.898 70.836 26.898 97.73 0L524.18 659.448c25.972-25.976 26.836-67.965 2.59-95.035l-32.71 32.773zM768.303 317.61l-61.909-61.916c-26.894-26.899-70.836-26.899-97.73 0L499.816 364.552c-25.282 25.285-26.779 65.718-4.434 92.846l33.057-33.06c-2.246-4.263-2.707-8.41-2.707-10.887 0-3.57 0.864-10.482 6.68-16.3L641.26 288.294c5.816-5.817 12.67-6.68 16.297-6.68 3.57 0 10.482 0.863 16.298 6.68l61.91 61.916c5.817 5.818 6.68 12.672 6.68 16.3 0 3.572-0.863 10.483-6.68 16.3L626.919 491.67c-5.816 5.816-12.67 6.68-16.298 6.68-2.994 0-8.35-0.633-13.418-4.262l-32.711 32.715c27.067 24.248 68.993 23.442 95.023-2.592l108.846-108.858c26.837-26.898 26.837-70.902-0.057-97.742z" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/console.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-console",use:"icon-console-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-console">\r\n <path fill="none" d="M0 0h24v24H0z" />\r\n <path d="M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2v14h16V5H4zm16 7l-3.536 3.536-1.414-1.415L17.172 12 15.05 9.879l1.414-1.415L20 12zM6.828 12l2.122 2.121-1.414 1.415L4 12l3.536-3.536L8.95 9.88 6.828 12zm4.416 5H9.116l3.64-10h2.128l-3.64 10z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/copy.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-copy",use:"icon-copy-usage",viewBox:"0 0 121 138.94",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 121 138.94" id="icon-copy"><defs><style>#icon-copy .cls-1{fill:#1890ff;}</style></defs><title>\u8d44\u6e90 17</title><g id="icon-copy_\u56fe\u5c42_2" data-name="\u56fe\u5c42 2"><g id="icon-copy_\u56fe\u5c42_1-2" data-name="\u56fe\u5c42 1"><path class="cls-1" d="M117.66,3.34A11.41,11.41,0,0,0,109.59,0H43A11.4,11.4,0,0,0,31.55,11.43V22.49H11.41A11.4,11.4,0,0,0,0,33.9v93.64a11.4,11.4,0,0,0,11.43,11.4H84a11.42,11.42,0,0,0,11.58-11.4V107.1h13.92A11.4,11.4,0,0,0,121,95.84V11.4A11.4,11.4,0,0,0,117.66,3.34ZM85.18,121.52A6.19,6.19,0,0,1,79,127.71H17.37a6.19,6.19,0,0,1-6.19-6.19v-81a6.19,6.19,0,0,1,6.19-6.19H79a6.19,6.19,0,0,1,6.19,6.19Zm21.93-25.21H95.53V33.9A11.42,11.42,0,0,0,84,22.49H42.35V15.37A4.63,4.63,0,0,1,47,10.74h58.39A4.63,4.63,0,0,1,110,15.37V92.89h0A3.48,3.48,0,0,1,107.11,96.31Z" /><path class="cls-1" d="M68.82,75.53H52.65V59.37q0-3.73-3.73-3.73H46.44q-3.73,0-3.73,3.73V75.53H26.55q-3.74,0-3.73,3.73v2.48q0,3.74,3.73,3.73H42.71v16.16q0,3.74,3.73,3.73h2.48q3.73,0,3.73-3.73V85.47H68.82c2.48,0,3.73-1.24,3.73-3.73V79.26C72.55,76.77,71.3,75.53,68.82,75.53Z" /></g></g></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/create.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-create",use:"icon-create-usage",viewBox:"0 0 488.8 488.8",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 488.8 488.8" id="icon-create">\r\n <path d="M488.8,383V9.9c0-5.5-4.4-9.9-9.9-9.9H105.8c-5.5,0-9.9,4.4-9.9,9.9V383c0,5.5,4.4,9.9,9.9,9.9\t\t\th373.1C484.4,392.9,488.8,388.5,488.8,383z M469,373.1H115.7V19.8H469V373.1L469,373.1z" />\r\n <path d="M9.9,488.8H383c5.5,0,9.9-4.4,9.9-9.9s-4.4-9.9-9.9-9.9H19.8V105.8c0-5.5-4.4-9.9-9.9-9.9\t\t\tS0,100.3,0,105.8v373.1C0,484.4,4.4,488.8,9.9,488.8z" />\r\n <path d="M211.8,206.3h70.7V277c0,5.5,4.4,9.9,9.9,9.9s9.9-4.4,9.9-9.9v-70.7H373c5.5,0,9.9-4.4,9.9-9.9\t\t\ts-4.4-9.9-9.9-9.9h-70.7v-70.7c0-5.5-4.4-9.9-9.9-9.9s-9.9,4.4-9.9,9.9v70.7h-70.7c-5.5,0-9.9,4.4-9.9,9.9 S206.3,206.3,211.8,206.3z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/data.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-data",use:"icon-data-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-data"><path fill="none" d="M0 0h24v24H0z" /><path d="M11 19V9H4v10h7zm0-12V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h8zm2-2v14h7V5h-7zM5 16h5v2H5v-2zm9 0h5v2h-5v-2zm0-3h5v2h-5v-2zm0-3h5v2h-5v-2zm-9 3h5v2H5v-2z" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/dataDistribution.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-dataDistribution",use:"icon-dataDistribution-usage",viewBox:"0 0 15 15",content:'<symbol viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-dataDistribution">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u6570\u636e\u5206\u53d1</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-dataDistribution_\u7ec4\u4ef6" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-dataDistribution_NaviSelect-Copy-2" transform="translate(-16.000000, -18.000000)">\r\n <g id="icon-dataDistribution_-icon/\u6570\u636e\u5206\u53d1">\r\n <g transform="translate(16.816667, 18.620000)">\r\n <g>\r\n <rect id="icon-dataDistribution_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M11.2228,0 C10.2678,0 9.4938,0.774 9.4938,1.729 C9.4938,1.978 9.5488,2.213 9.6428,2.426 L8.2728,3.424 C7.7378,2.943 7.0368,2.642 6.2608,2.642 C4.5908,2.642 3.2378,3.996 3.2378,5.665 C3.2378,6.456 3.5478,7.168 4.0438,7.707 L2.6948,9.131 C2.4418,9.001 2.1588,8.921 1.8538,8.921 C0.8298,8.921 -0.0002,9.751 -0.0002,10.775 C-0.0002,11.8 0.8298,12.63 1.8538,12.63 C2.8788,12.63 3.7088,11.8 3.7088,10.775 C3.7088,10.339 3.5518,9.943 3.2998,9.626 L4.6388,8.209 C5.1078,8.509 5.6628,8.688 6.2608,8.688 C7.0318,8.688 7.7278,8.391 8.2628,7.916 L10.5068,10.104 C10.2568,10.432 10.1018,10.837 10.1018,11.281 C10.1018,12.357 10.9738,13.229 12.0498,13.229 C13.1258,13.229 13.9978,12.357 13.9978,11.281 C13.9978,10.206 13.1258,9.333 12.0498,9.333 C11.7018,9.333 11.3788,9.432 11.0958,9.592 L8.7798,7.334 C9.0978,6.856 9.2838,6.283 9.2838,5.665 C9.2838,5.054 9.0988,4.487 8.7878,4.011 L10.1138,3.045 C10.4148,3.299 10.7988,3.458 11.2228,3.458 C12.1778,3.458 12.9518,2.684 12.9518,1.729 C12.9518,0.774 12.1778,0 11.2228,0 M12.0498,10.333 C12.5728,10.333 12.9978,10.759 12.9978,11.281 C12.9978,11.804 12.5728,12.229 12.0498,12.229 C11.5268,12.229 11.1018,11.804 11.1018,11.281 C11.1018,11.026 11.2098,10.831 11.3018,10.711 L11.4178,10.56 L11.5888,10.463 C11.7408,10.377 11.8948,10.333 12.0498,10.333 M1.8538,9.921 C1.9798,9.921 2.1088,9.955 2.2388,10.021 L2.4018,10.105 L2.5168,10.25 C2.6048,10.359 2.7088,10.54 2.7088,10.775 C2.7088,11.247 2.3258,11.63 1.8538,11.63 C1.3838,11.63 0.9998,11.247 0.9998,10.775 C0.9998,10.305 1.3838,9.921 1.8538,9.921 M6.2608,3.642 C6.8878,3.642 7.3378,3.928 7.6048,4.167 L7.8228,4.363 L7.9518,4.56 C8.1688,4.892 8.2838,5.274 8.2838,5.665 C8.2838,6.062 8.1668,6.448 7.9468,6.781 L7.8218,6.969 L7.5978,7.168 C7.3308,7.406 6.8828,7.688 6.2608,7.688 C5.8818,7.688 5.5068,7.577 5.1778,7.367 L4.9648,7.231 L4.7798,7.029 C4.4298,6.65 4.2378,6.166 4.2378,5.665 C4.2378,4.55 5.1448,3.642 6.2608,3.642 M11.2228,1 C11.6248,1 11.9518,1.327 11.9518,1.729 C11.9518,2.131 11.6248,2.458 11.2228,2.458 C11.0128,2.458 10.8538,2.362 10.7588,2.281 L10.6198,2.165 L10.5568,2.022 C10.5148,1.927 10.4938,1.828 10.4938,1.729 C10.4938,1.327 10.8208,1 11.2228,1" fill="#AEAEAE" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/datesetCount.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-datesetCount",use:"icon-datesetCount-usage",viewBox:"0 0 70 67",content:'<symbol viewBox="0 0 70 67" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-datesetCount">\r\n <title>\u7f16\u7ec4 4</title>\r\n <g id="icon-datesetCount_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-datesetCount_\u7f16\u7ec4-4">\r\n <rect id="icon-datesetCount_\u77e9\u5f62\u5907\u4efd" fill="#57BCA1" x="0" y="0" width="70" height="67" rx="4" />\r\n <path d="M35.0556199,37.3506085 L35.0556199,43.7197021 C35.0556199,43.8316258 35.0984634,43.9438232 35.1839314,44.0295648 C35.2658227,44.1121225 35.3773463,44.1584757 35.49363,44.1582873 L38.71455,44.1582873 C38.9566362,44.1580453 39.1528045,43.9618158 39.1529704,43.7197294 L39.1529704,35.2323468 L35.8778532,38.0513699 L35.0556199,37.3505811 L35.0556199,37.3506085 Z M21.2898189,43.7195653 C21.2898189,43.831489 21.3328265,43.9442609 21.4185408,44.029428 C21.5004567,44.1120324 21.612042,44.1583907 21.7283762,44.1581509 L24.9485848,44.1581509 C25.0648795,44.1583939 25.1764234,44.1120322 25.2582834,44.029428 C25.3407601,43.947413 25.387103,43.835879 25.3870327,43.7195653 L25.3870327,37.2224611 L21.2898189,40.6020332 L21.2898189,43.7195379 L21.2898189,43.7195653 Z M28.1713104,34.9245086 L28.1713104,43.7195653 C28.1713104,43.8358624 28.2176195,43.9473723 28.3000323,44.029428 C28.3821051,44.1118153 28.493604,44.1581499 28.6098951,44.1581499 L31.831499,44.1581499 C31.9441067,44.1581499 32.0561672,44.1151423 32.1413344,44.029428 C32.2237124,43.9473602 32.2699878,43.8358463 32.2699195,43.7195653 L32.2699195,34.9794171 L30.2220239,33.2360221 L28.1713104,34.9245086 L28.1713104,34.9245086 Z M41.9385039,43.7195653 C41.9380914,43.8358886 41.9840682,43.9475778 42.066255,44.0298981 C42.1484417,44.1122184 42.2600561,44.1583764 42.37638,44.1581509 L45.5986953,44.1581509 C45.7149994,44.1584012 45.8265546,44.112039 45.9084212,44.029428 C45.9908341,43.9473723 46.0371431,43.8358624 46.0371431,43.7195653 L46.0371431,29.3053671 L41.9385614,32.8344262 L41.9385614,43.7195653 L41.9385039,43.7195653 Z M41.2318358,21.8419859 C41.1741093,21.8419859 41.119064,21.8754737 41.096247,21.9324889 C41.0727186,21.9889296 41.0879573,22.0512523 41.1283112,22.0921533 L44.2083073,25.1197579 L35.8778532,32.2926178 L30.2220239,27.4754096 L21.2664273,34.8628698 L21.2664273,38.0540784 L30.2221607,30.6671927 L35.8778532,35.4831151 L45.9405949,26.8209935 L48.4849383,29.3234237 C48.5273366,29.3644247 48.5900651,29.3762669 48.6444933,29.3535454 C48.6985783,29.3309533 48.7338736,29.2781025 48.7338736,29.2194886 L48.7338736,21.9873975 C48.7338736,21.9486995 48.7182786,21.9116318 48.6908253,21.884358 C48.6633719,21.8570843 48.6262033,21.8419859 48.5875055,21.8419859 L41.2318085,21.8419859 L41.2318358,21.8419859 Z" id="icon-datesetCount_\u5f62\u72b6" fill="#FFFFFF" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/delete.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-delete",use:"icon-delete-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-delete">\r\n<path d="M790.24 281.76l1.248 604.192c0 31.712-13.088 48.672-44.896 48.672l-461.504-1.28c-31.776 0-45.792-14.496-45.792-46.144l0-605.44-71.52 0 0 605.728c0 63.552 51.712 115.2 115.232 115.2l460.8 0c63.552 0 115.232-51.68 115.232-115.2l0-605.728-68.864 0zM335.744 411.392l0 428.928c0 2.784 0.416 5.472 1.12 8.032 21.088 0 42.208-0.032 63.328-0.192 0.672-2.464 1.088-5.152 1.088-7.84l0-428.736c-21.856-0.096-43.68-0.16-65.536-0.192l0 0zM624.992 412.928l0 427.424c0 2.208 0.256 4.384 0.704 6.496 21.344-0.128 42.72-0.16 64.032-0.224 0.448-2.048 0.672-4.096 0.672-6.336l0-427.168c-21.792-0.032-43.616-0.096-65.408-0.192l0 0zM978.912 165.664l-255.904 0 0-72.192c1.12-58.112-46.752-72.128-94.528-72.128l-229.952 0c-59.36 0-93.216 22.304-93.216 70.112l-0.256 74.208-259.968 0 0 70.496 933.792 0 0-70.496 0.032 0zM657.504 165.664l-288.032 0 0-50.496c0-16 11.296-29.92 27.296-29.92l230.432 1.248c16 0 30.08 11.488 30.08 27.488l0.224 51.68zM482.688 412.96l0 427.36c0 2.208 0.256 4.416 0.704 6.496 21.152-0.096 42.304-0.16 63.456-0.16 0.448-2.08 0.672-4.096 0.672-6.336l0-427.168c-21.632-0.032-43.232-0.096-64.864-0.192l0 0z" p-id="2557" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/delete2.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-delete2",use:"icon-delete2-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-delete2"><path fill="none" d="M0 0h24v24H0z" /><path d="M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm1 2H6v12h12V8zm-4.586 6l1.768 1.768-1.414 1.414L12 15.414l-1.768 1.768-1.414-1.414L10.586 14l-1.768-1.768 1.414-1.414L12 12.586l1.768-1.768 1.414 1.414L13.414 14zM9 4v2h6V4H9z" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/disconnected.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-disconnected",use:"icon-disconnected-usage",viewBox:"0 0 1157 1024",content:'<symbol viewBox="0 0 1157 1024" xmlns="http://www.w3.org/2000/svg" id="icon-disconnected">\r\n <path d="M1087.841 618.409l-328.56 113.734c-8.142 2.825-16.338 2.706-24.538 3.329L685.24 601.526l27.685-9.605c8.525 25.836 36.457 39.478 62.383 30.517l234.665-81.255c25.925-8.963 39.99-37.152 31.466-62.987l-61.841-186.932c-8.544-25.807-36.476-39.449-62.401-30.486L682.55 342c-25.923 8.963-40.008 37.182-31.466 62.988l-34.115 11.796-48.074-130.153c10.014-9.422 21.99-17.063 35.805-21.885l328.494-113.697c51.849-17.926 107.718 9.36 124.802 60.975l92.758 280.437c17.087 51.615-11.092 108.004-62.913 125.948zM608.06 18.576l41.074 20.553-91.074 140.263-41.074-20.552L608.06 18.576zM419.735 640.27c-17.127-20.91-14.092-51.675 6.76-68.716l63.708-52.093 64.607 73.52-66.282 54.183c-20.843 17.09-51.646 13.987-68.793-6.894z m356.104-174.295c8.543 25.806-5.542 54.024-31.464 62.988l-76.182 26.382-34.145-92.356 79.438-27.51c25.894-8.985 53.858 4.678 62.353 30.496zM433.253 502.84c-17.118-20.864-47.92-23.965-68.792-6.896L175.63 650.366c-20.87 17.071-23.885 47.807-6.74 68.688l124.064 151.218c17.108 20.939 47.93 24.012 68.754 6.953l188.876-154.433c20.853-17.042 23.869-47.777 6.742-68.686l29.803-24.395 90.01 102.382c-6.009 13.287-14.722 25.586-26.784 35.457L385.967 983.745c-41.676 34.105-103.319 27.957-137.545-13.843L62.334 742.996C28.07 701.253 5.385 682.292 47.088 648.21l293.116-258.785c7.415-6.061 15.972-9.314 24.368-12.883L457.9 482.7l-24.646 20.14zM143.125 310.138l203.468-39.253 9.418 47.939-203.515 39.261-9.37-47.947zM351.19 36.072l41.899-26.05 27.616 178.484-41.927 26.033L351.19 36.072z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/edit.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-edit">\r\n <path class="icon-svg" d="M125.961 898.039l197.99-62.226 458.205-458.205-135.764-135.764-458.205 458.205zM748.215 140.02l-56.568 56.569 135.765 135.764 56.568-56.568c18.745-18.745 18.745-49.137 0-67.882l-67.882-67.882c-18.745-18.746-49.137-18.746-67.883-0.001z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/execute.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-execute",use:"icon-execute-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-execute">\r\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/execute2.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-execute2",use:"icon-execute2-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-execute2"><path fill="none" d="M0 0h24v24H0z" /><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM10.622 8.415l4.879 3.252a.4.4 0 0 1 0 .666l-4.88 3.252a.4.4 0 0 1-.621-.332V8.747a.4.4 0 0 1 .622-.332z" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/expand.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-expand",use:"icon-expand-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-expand">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path class="icon-svg" d="M691.264315 443.308525c-4.233418-2.908236-9.380648-4.614088-14.892175-4.614088s-10.658757 1.705851-14.922874 4.614088L497.838977 606.173846c-10.324136 10.32209-27.042913 10.32209-37.381375 0L301.338604 447.572642c-4.843308-5.376451-11.81714-8.771781-19.61371-8.771781-14.602579 0-26.433022 11.831466-26.433022 26.434046 0 5.953595 1.979074 11.42112 5.298679 15.835663l5.298679 5.299703 175.884846 175.86745c20.647249 20.650319 54.114478 20.650319 74.763774 0l177.590698-177.556928 1.794879-1.811252c4.264117-4.690836 6.884804-10.903328 6.884804-17.740036C702.808232 456.069153 698.238147 448.075085 691.264315 443.308525z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/export.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-export",use:"icon-export-usage",viewBox:"0 0 14 15",content:'<symbol viewBox="0 0 14 15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-export">\r\n \x3c!-- Generator: Sketch 57.1 (83088) - https://sketch.com --\x3e\r\n <title>Group 4</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <filter x="-5.5%" y="-7.2%" width="110.9%" height="114.5%" filterUnits="objectBoundingBox" id="icon-export_filter-1">\r\n <feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>\r\n <feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>\r\n <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>\r\n <feMerge>\r\n <feMergeNode in="shadowMatrixOuter1"></feMergeNode>\r\n <feMergeNode in="SourceGraphic"></feMergeNode>\r\n </feMerge>\r\n </filter>\r\n <linearGradient x1="50%" y1="0%" x2="50%" y2="99.6512277%" id="icon-export_linearGradient-2">\r\n <stop stop-color="#FFFFFF" stop-opacity="0" offset="0%" />\r\n <stop stop-color="#FFFFFF" stop-opacity="0.9" offset="34.0302136%" />\r\n <stop stop-color="#FFFFFF" offset="100%" />\r\n </linearGradient>\r\n </defs>\r\n <g id="icon-export_Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-export_CardHover" transform="translate(-42.000000, -83.000000)">\r\n <g filter="url(#icon-export_filter-1)">\r\n <rect id="icon-export_Base" fill="url(#icon-export_linearGradient-2)" x="2" y="0.457831325" width="218" height="165.542169" rx="4" />\r\n <g id="icon-export_Divider" transform="translate(0.000000, 61.000000)"></g>\r\n <g id="icon-export_Btn/Delete" transform="translate(21.000000, 78.630522)">\r\n <path d="M0.5,3.99712505 L0.5,18.0751641 C0.5,20.0077675 2.06614638,21.5722892 3.99989145,21.5722892 L81.0001086,21.5722892 C82.9304891,21.5722892 84.5,20.0049857 84.5,18.0751641 L84.5,3.99712505 C84.5,2.06452164 82.9338536,0.5 81.0001086,0.5 L3.99989145,0.5 C2.06951085,0.5 0.5,2.06730345 0.5,3.99712505 Z" id="icon-export_BG" stroke="#47B2FB" fill="#FFFFFF" />\r\n <g id="icon-export_Group-4" transform="translate(21.000000, 3.598394)" fill="#59B9FB">\r\n <g id="icon-export_\u5bfc\u51fa" transform="translate(0.000000, 1.000000)">\r\n <g id="icon-export_\u5f62\u72b6">\r\n <path d="M13.125,12.7710843 L0.875,12.7710843 C0.379166662,12.7710843 0,12.3810843 0,11.8710843 L0,1.67108434 C0,1.16108433 0.379166662,0.771084337 0.875,0.771084337 L5.19166666,0.771084337 C5.425,0.771084337 5.65833332,0.861084337 5.80416666,1.04108434 L6.7375,2.00108434 C6.9125,2.18108434 7.11666666,2.27108434 7.35,2.27108434 L13.125,2.27108434 C13.6208333,2.27108434 14,2.66108434 14,3.17108434 L14,11.8710843 C14,12.3810843 13.6208333,12.7710843 13.125,12.7710843 Z M7.37916666,4.55108433 C7.2625,4.43108434 7.11666666,4.37108433 6.94166666,4.37108433 C6.79583332,4.37108433 6.62083332,4.43108434 6.50416666,4.55108433 L4.05416666,7.25108433 C3.70416666,7.64108433 3.96666666,8.24108433 4.49166666,8.24108433 L5.83333334,8.24108433 L5.83333334,10.0410843 C5.83333334,10.3710843 6.09583334,10.6410843 6.41666666,10.6410843 L7.58333334,10.6410843 C7.90416668,10.6410843 8.16666668,10.3710843 8.16666666,10.0410843 L8.16666666,8.24108433 L9.39166666,8.24108433 C9.8875,8.24108433 10.15,7.61108433 9.82916666,7.25108433 L7.37916666,4.55108433 L7.37916666,4.55108433 Z" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/extend.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-extend",use:"icon-extend-usage",viewBox:"0 0 13 11",content:'<symbol viewBox="0 0 13 11" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-extend">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/ \u6269\u7f29\u5bb9</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <polygon id="icon-extend_path-1" points="0 0 14 0 14 14 0 14" />\r\n </defs>\r\n <g class="icon-svg" id="icon-extend_\u7ec4\u4ef6" stroke="none" stroke-width="1" fill-rule="evenodd">\r\n <g id="icon-extend_icon/-\u6269\u7f29\u5bb9" transform="translate(-1.000000, -1.000000)">\r\n <g>\r\n <mask id="icon-extend_mask-2" fill="white">\r\n <use xlink:href="#icon-extend_path-1" />\r\n </mask>\r\n <g id="icon-extend_Clip-2"></g>\r\n <g mask="url(#icon-extend_mask-2)">\r\n <g transform="translate(1.000000, 1.000000)">\r\n <path class="icon-svg" d="M11.4115,8.4196 L11.0075,8.4196 L11.0075,8.0106 C11.0075,7.8516 10.8775,7.7216 10.7175,7.7216 L10.7095,7.7216 C10.5495,7.7216 10.4195,7.8516 10.4195,8.0106 L10.4195,8.4196 L10.0155,8.4196 C9.8525,8.4196 9.7215,8.5506 9.7215,8.7136 C9.7215,8.8766 9.8525,9.0076 10.0155,9.0076 L10.4195,9.0076 L10.4195,9.4166 C10.4195,9.5756 10.5495,9.7056 10.7095,9.7056 L10.7175,9.7056 C10.8775,9.7056 11.0075,9.5756 11.0075,9.4166 L11.0075,9.0076 L11.4115,9.0076 C11.5745,9.0076 11.7055,8.8766 11.7055,8.7136 C11.7055,8.5506 11.5745,8.4196 11.4115,8.4196" id="icon-extend_Fill-3" />\r\n <path class="icon-svg" d="M10.7133,10.1598 C9.9163,10.1598 9.2673,9.5108 9.2673,8.7138 C9.2673,7.9158 9.9163,7.2668 10.7133,7.2668 C11.5113,7.2668 12.1593,7.9158 12.1593,8.7138 C12.1593,9.5108 11.5113,10.1598 10.7133,10.1598 L10.7133,10.1598 Z M8.0203,5.1908 C7.7973,6.3718 6.6593,7.1498 5.4783,6.9268 C4.5973,6.7608 3.9083,6.0718 3.7423,5.1908 L1.2493,5.1908 C1.0803,5.1938 0.9373,5.2978 0.8723,5.4428 C0.8773,5.4278 0.8813,5.4158 0.8813,5.4158 L1.2553,4.3518 L1.2553,4.3518 L1.2543,4.3548 L4.1193,4.3548 C4.3473,4.3548 4.5333,4.5408 4.5333,4.7688 L4.5333,4.7768 C4.5333,5.5218 5.1363,6.1248 5.8813,6.1248 C6.6263,6.1248 7.2293,5.5208 7.2293,4.7768 C7.2253,4.5478 7.4073,4.3588 7.6363,4.3548 L7.6433,4.3548 L10.5133,4.3548 L10.5153,4.3548 L10.9013,5.4608 L10.8993,5.4638 C10.9163,5.5098 10.9283,5.5588 10.9283,5.6118 L10.9273,5.6128 C10.9273,5.3828 10.7433,5.1948 10.5133,5.1908 L8.0203,5.1908 Z M1.9503,2.6708 L9.8293,2.6708 L10.0943,3.4948 L1.6703,3.4948 L1.9503,2.6708 Z M11.7013,6.6598 C11.7213,6.6688 11.7443,6.6738 11.7643,6.6838 L11.7643,5.6118 C11.7643,5.4698 11.7363,5.3358 11.6923,5.2078 C11.6883,5.1838 11.6903,5.1598 11.6823,5.1368 L10.2583,1.0928 C10.2303,1.0088 10.1763,0.9378 10.1083,0.8888 C10.0393,0.8398 9.9553,0.8128 9.8663,0.81377318 L5.8373,0.81377318 C5.8373,0.81377318 5.8373,0.81377318 5.8373,0.81377318 L1.9133,0.81377318 C1.7343,0.8128 1.5743,0.9248 1.5143,1.0928 L0.3813,4.3518 L0.1413,5.0438 C0.0533,5.2158 0.0003,5.4068 0.0003,5.6118 L0.0003,7.0098 L0.0003,8.4508 C0.0003,8.8838 0.2183,9.2648 0.5503,9.4918 C0.6833,9.5818 0.8353,9.6478 0.9983,9.6818 C1.0793,9.6988 1.1643,9.7078 1.2503,9.7088 L8.6643,9.7088 C9.0343,10.4708 9.8093,10.9998 10.7133,10.9998 C11.9763,10.9998 13.0003,9.9758 13.0003,8.7138 C13.0003,7.8058 12.4673,7.0288 11.7013,6.6598 L11.7013,6.6598 Z" id="icon-extend_Fill-1" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/face.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-face",use:"icon-face-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-face">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path class="icon-svg" d="M512 32a480 480 0 1 0 0 960 480 480 0 0 0 0-960z m-3.072 168.192a144.64 144.64 0 1 1 0 289.28 144.64 144.64 0 0 1 0-289.28zM256 774.144c-1.472-148.224 70.976-240.256 161.792-276.416l93.248 155.584 98.24-152c87.616 38.4 157.248 129.344 158.656 272.96-161.088 63.872-330.88 68.48-511.936-0.128z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/find.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-find",use:"icon-find-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-find">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path d="M909.016 820.828H841a30 30 0 0 1 0-60h38.016a20 20 0 0 0 20-20V145.185a20 20 0 0 0-20-20H352a20 20 0 0 0-20 20v28h370.016a50 50 0 0 1 50 50v223.36a29.989 29.989 0 1 1-59.507 5.283h-0.493V253.185a20 20 0 0 0-20-20H145a20 20 0 0 0-20 20v625.643a20 20 0 0 0 20 20h337a30 30 0 0 1 0 60H115a50 50 0 0 1-50-50V223.185a50 50 0 0 1 50-50h157v-58a50 50 0 0 1 50-50h587.016a50 50 0 0 1 50 50v655.643a50 50 0 0 1-50 50z m-663.037-484H572.74a29.979 29.979 0 1 1 0 59.957H245.979a29.979 29.979 0 1 1 0-59.957z m0 290.043h74.912a29.979 29.979 0 0 1 29.979 29.978 29.979 29.979 0 0 1-29.979 29.979h-74.912A29.979 29.979 0 0 1 216 656.849a29.979 29.979 0 0 1 29.979-29.978zM216 511.807a29.979 29.979 0 0 1 29.979-29.979h140.935a29.979 29.979 0 0 1 29.979 29.979v0.042a29.979 29.979 0 0 1-29.979 29.979H245.979A29.979 29.979 0 0 1 216 511.849v-0.042z m163 177.521c0-107.419 87.081-194.5 194.5-194.5S768 581.909 768 689.328a193.618 193.618 0 0 1-37.9 115.356l84.115 84.115a30 30 0 1 1-42.425 42.429l-84.3-84.3a193.6 193.6 0 0 1-113.99 36.9c-107.419 0-194.5-87.081-194.5-194.5z m194.5 134.5a134.5 134.5 0 1 0-134.5-134.5 134.5 134.5 0 0 0 134.5 134.5z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/fullscreen.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-fullscreen"><path fill="none" d="M0 0h24v24H0z" /><path d="M20 3h2v6h-2V5h-4V3h4zM4 3h4v2H4v4H2V3h2zm16 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/help.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-help",use:"icon-help-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-help">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path class="icon-svg" d="M512.697 63.445c-247.538 0-448.208 200.65-448.208 448.208 0 247.52 200.67 448.208 448.208 448.208s448.208-200.688 448.208-448.208c0-247.558-200.669-448.208-448.208-448.208z m-1.709 671.693c-25.55 0-46.26-21.301-46.26-47.563s20.71-47.563 46.26-47.563c25.562 0 46.27 21.3 46.27 47.563s-20.71 47.563-46.27 47.563z m129.224-298.916c-6.384 12.292-13.97 22.87-22.752 31.77-8.78 8.936-24.557 23.928-47.299 45.047-6.291 5.945-11.334 11.16-15.12 15.684-3.792 4.487-6.619 8.608-8.462 12.366a60.048 60.048 0 0 0-4.303 11.197c-1.013 3.756-2.544 10.322-4.58 19.733-3.517 19.95-14.524 29.91-33.026 29.91-9.612 0-17.709-3.248-24.266-9.775-6.574-6.53-9.848-16.195-9.848-29.072 0-16.086 2.398-30.055 7.204-41.836 4.814-11.819 11.188-22.178 19.15-31.077 7.96-8.9 18.684-19.515 32.18-31.807 11.835-10.724 20.398-18.821 25.66-24.293a81.893 81.893 0 0 0 13.324-18.273c3.61-6.712 5.415-14.007 5.415-21.849 0-15.355-5.509-28.305-16.504-38.845-11.017-10.542-25.205-15.831-42.594-15.831-20.355 0-35.336 5.325-44.948 15.976-9.62 10.65-17.754 26.298-24.42 47.053-6.291 21.666-18.22 32.499-35.791 32.499-10.35 0-19.103-3.794-26.217-11.38-7.121-7.587-10.678-15.794-10.678-24.584 0-18.238 5.635-36.695 16.915-55.406 11.28-18.676 27.757-34.177 49.396-46.433 21.63-12.293 46.889-18.42 75.742-18.42 26.826 0 50.49 5.143 71.026 15.392 20.534 10.25 36.392 24.22 47.58 41.837 11.19 17.654 16.789 36.84 16.789 57.558 0 16.305-3.191 30.604-9.573 42.86z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/help1.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-help1",use:"icon-help1-usage",viewBox:"0 0 16 16",content:'<symbol viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-help1">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u6a21\u578b\u8bad\u7ec3</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-help1_\u7ec4\u4ef6" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" fill-opacity="0.65">\r\n <g id="icon-help1_Navi" transform="translate(-1312.000000, -22.000000)" fill="#FFFFFF">\r\n <g id="icon-help1_Navi/Icons">\r\n <g transform="translate(1280.000000, 17.882581)">\r\n <g id="icon-help1_icon/\u6280\u672f\u652f\u6301" transform="translate(32.000000, 4.117419)">\r\n <g>\r\n <path d="M12.8488,12.8482286 C11.5528,14.1430857 9.83165714,14.8573714 8.0008,14.8573714 C6.16765714,14.8573714 4.44651429,14.1430857 3.15165714,12.8482286 C1.8568,11.5533714 1.14365714,9.83108571 1.14365714,8.00022857 C1.14365714,6.16822857 1.8568,4.44594286 3.15165714,3.15108571 C4.44651429,1.85622857 6.1688,1.14308571 8.0008,1.14308571 C9.83165714,1.14308571 11.5528,1.85622857 12.8488,3.15222857 C14.1436571,4.44708571 14.8568,6.16822857 14.8568,8.00022857 C14.8568,9.83108571 14.1436571,11.5533714 12.8488,12.8482286 M13.6568,2.34308571 C12.1459429,0.832228571 10.1368,0.000228571429 8.0008,0.000228571429 C5.86365714,0.000228571429 3.85451429,0.832228571 2.34365714,2.34308571 C0.831657143,3.85394286 -0.000342857143,5.86308571 -0.000342857143,8.00022857 C-0.000342857143,10.1362286 0.831657143,12.1453714 2.34365714,13.6573714 C3.85451429,15.1682286 5.86365714,16.0002286 8.0008,16.0002286 C10.1368,16.0002286 12.1459429,15.1670857 13.6568,13.6573714 C15.1676571,12.1465143 15.9996571,10.1362286 15.9996571,8.00022857 C15.9996571,5.86308571 15.1676571,3.85394286 13.6568,2.34308571" id="icon-help1_Fill-1" />\r\n <path d="M10.2070857,4.07931429 C9.67794286,3.60731429 8.98765714,3.37074286 8.13508571,3.37074286 C7.16708571,3.37074286 6.40365714,3.65531429 5.84137143,4.22331429 C5.27908571,4.79245714 4.99908571,5.56617143 4.99908571,6.54788571 L5.00022857,6.54788571 C5.01508571,6.85531429 5.26994286,7.10102857 5.5808,7.10102857 C5.8928,7.10102857 6.14651429,6.85531429 6.16137143,6.54788571 L6.16137143,6.52502857 C6.16251429,6.52388571 6.16251429,6.5216 6.16251429,6.51931429 L6.16251429,6.51474286 C6.17165714,5.06102857 6.80937143,4.33417143 8.08022857,4.33417143 C8.56937143,4.33417143 8.97394286,4.47588571 9.2928,4.76045714 C9.61165714,5.04388571 9.77051429,5.40845714 9.77051429,5.85302857 C9.77051429,6.37074286 9.47451429,6.89531429 8.88365714,7.42674286 L8.44365714,7.81874286 C8.0128,8.20388571 7.73622857,8.53874286 7.61508571,8.82217143 C7.49394286,9.10674286 7.43337143,9.56502857 7.43337143,10.1981714 L7.43337143,10.1993143 C7.43222857,10.2153143 7.43108571,10.2313143 7.43108571,10.2473143 C7.43108571,10.5467429 7.67337143,10.7890286 7.9728,10.7890286 C8.25737143,10.7890286 8.49165714,10.5684571 8.51222857,10.2884571 L8.51451429,10.2873143 L8.51908571,10.0873143 C8.51908571,9.43702857 8.8288,8.85988571 9.44708571,8.35588571 C10.4836571,7.50788571 11.0002286,6.69645714 11.0002286,5.9216 C11.0002286,5.16502857 10.7362286,4.55131429 10.2070857,4.07931429" id="icon-help1_Fill-3" />\r\n <path d="M7.26845714,12.1294857 C7.26845714,12.5340571 7.59645714,12.8609143 8.00102857,12.8609143 C8.40331429,12.8609143 8.73131429,12.5340571 8.73131429,12.1294857 C8.73131429,11.7249143 8.40331429,11.3980571 8.00102857,11.3980571 C7.59645714,11.3980571 7.26845714,11.7249143 7.26845714,12.1294857" id="icon-help1_Fill-5" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/impower.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-impower",use:"icon-impower-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-impower">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>ICON/\u6388\u6743</title>\r\n <desc>Created with Sketch.</desc>\r\n <g class="icon-svg" id="icon-impower_\u6a21\u578b\u7ba1\u7406" stroke="none" stroke-width="1" fill-rule="evenodd">\r\n <g id="icon-impower_ICON/\u6388\u6743">\r\n <g>\r\n <rect id="icon-impower_\u77e9\u5f62" fill-opacity="0.01" x="0" y="0" width="14" height="14" />\r\n <path class="icon-svg" d="M11.704,4.4975 C11.513,4.3545 11.298,4.2455 11.07,4.1765 L7.373,2.9905 C6.979,2.8685 6.557,2.8685 6.162,2.9905 L2.449,4.1435 C2.224,4.2135 2.012,4.3225 1.823,4.4645 L1.823,3.8225 C1.831,3.4365 2.105,3.1085 2.482,3.0315 L6.467,1.8875 C6.658,1.8325 6.861,1.8325 7.052,1.8875 L11.045,3.0315 C11.435,3.1115 11.712,3.4575 11.704,3.8545 L11.704,4.4975 Z M9.884,6.0925 L6.591,10.2095 L6.508,10.2585 L6.459,10.2585 C6.405,10.2695 6.349,10.2695 6.294,10.2585 C6.211,10.2555 6.13,10.2265 6.064,10.1765 L3.594,7.7055 C3.432,7.5445 3.432,7.2835 3.594,7.1215 C3.755,6.9595 4.017,6.9595 4.178,7.1215 L6.319,9.2625 C6.319,9.2625 9.128,5.7585 9.256,5.5875 C9.372,5.4315 9.602,5.4105 9.769,5.5215 C9.958,5.6475 10.01,5.9025 9.884,6.0925 L9.884,6.0925 Z M11.276,1.2185 L7.282,0.0735 C6.941,-0.0245 6.579,-0.0245 6.237,0.0735 L2.251,1.2185 C1.523,1.3975 1.008,2.0485 1,2.7985 L1,8.6115 C1.107,11.6895 3.686,14.0985 6.764,13.9965 C9.841,14.0985 12.42,11.6895 12.527,8.6115 L12.527,2.7985 C12.519,2.0485 12.004,1.3975 11.276,1.2185 L11.276,1.2185 Z" id="icon-impower_Fill-1" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/jiedian.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-jiedian",use:"icon-jiedian-usage",viewBox:"0 0 54 52",content:'<symbol viewBox="0 0 54 52" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-jiedian">\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-jiedian_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-jiedian_\u9996\u9875\u5907\u4efd" transform="translate(-109.000000, -181.000000)">\r\n <g transform="translate(109.000000, 181.000000)">\r\n <g id="icon-jiedian_\u7f16\u7ec4-5\u5907\u4efd" fill="#2296F3">\r\n <rect id="icon-jiedian_\u77e9\u5f62\u5907\u4efd" x="0" y="0" width="54" height="52" rx="4" />\r\n </g>\r\n <g id="icon-jiedian_\u7f16\u7ec4\u5907\u4efd" transform="translate(15.000000, 13.000000)" fill="#FFFFFF" fill-rule="nonzero">\r\n <polygon id="icon-jiedian_\u8def\u5f84" points="16.0714286 25 16.0714286 17.8571429 19.6428571 17.8571429 19.6428571 12.5 5.35714286 12.5 5.35714286 17.8571429 8.92857143 17.8571429 8.92857143 25 0 25 0 17.8571429 3.57142857 17.8571429 3.57142857 10.7142857 11.6071429 10.7142857 11.6071429 7.14285714 7.14285714 7.14285714 7.14285714 0 17.8571429 0 17.8571429 7.14285714 13.3928571 7.14285714 13.3928571 10.7142857 21.4285714 10.7142857 21.4285714 17.8571429 25 17.8571429 25 25" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/jkgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-jkgl",use:"icon-jkgl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-jkgl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u76d1\u63a7\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-jkgl_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-jkgl_icon/\u76d1\u63a7\u7ba1\u7406">\r\n <g id="icon-jkgl_icon/\u6570\u636e\u5f00\u53d1-" stroke-width="1" fill="#FFFFFF" fill-opacity="0.01">\r\n <rect id="icon-jkgl_\u77e9\u5f62" x="0" y="0" width="14" height="14" />\r\n </g>\r\n <path d="M3.789,3.896 L4.347,6.129 L4.751,4.802 C4.814,4.611 4.993,4.482 5.196,4.482 C5.316,4.482 5.431,4.528 5.519,4.612 L6.352,5.446 L12.756,5.411 L12.736,2.048 C12.736,1.987 12.686,1.936 12.623,1.936 L1.481,1.936 C1.418,1.936 1.367,1.987 1.367,2.048 L1.367,5.43 L2.132,5.41 L2.919,3.812 C3,3.65 3.156,3.553 3.336,3.553 C3.55,3.553 3.732,3.691 3.789,3.896 Z M1.367,9.709 C1.367,9.771 1.418,9.821 1.481,9.821 L12.623,9.821 C12.686,9.821 12.736,9.771 12.736,9.709 L12.736,6.327 L6.123,6.347 C6.003,6.347 5.889,6.301 5.801,6.218 L5.377,5.794 L4.71,7.884 C4.646,8.078 4.471,8.204 4.267,8.204 C4.054,8.204 3.872,8.067 3.815,7.863 L3.177,5.311 L2.828,6.088 C2.75,6.243 2.594,6.343 2.419,6.347 L1.367,6.347 L1.367,9.709 Z M0.9,13.311 C0.643,13.311 0.433,13.101 0.433,12.843 C0.433,12.585 0.643,12.375 0.9,12.375 L6.604,12.375 L6.584,10.738 L1.481,10.758 C0.902,10.758 0.433,10.287 0.433,9.709 L0.433,2.048 C0.433,1.47 0.902,1 1.481,1 L12.623,1 C13.201,1 13.671,1.47 13.671,2.048 L13.671,9.709 C13.671,10.287 13.201,10.758 12.623,10.758 L7.5,10.758 L7.52,12.395 L13.203,12.375 C13.461,12.375 13.671,12.585 13.671,12.843 C13.671,13.101 13.461,13.311 13.203,13.311 L0.9,13.311 Z" id="icon-jkgl_Fill-1" fill="#DCDCDC" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/jupyter.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-jupyter",use:"icon-jupyter-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-jupyter">\r\n <path d="M863.52294 68.684056c1.675221 39.587489-28.740137 73.044383-67.959316 74.743367S723.22022 114.402141 721.533118 74.850295 750.237612 1.770269 789.44491 0.071286s72.367166 29.025281 74.042387 68.61277M524.249126 768.997674c-156.425236 0-292.652773-56.826819-363.558576-140.754197C214.345143 778.728213 356.845847 886.322541 524.249126 886.322541s309.903984-107.594329 363.558576-258.067183c-70.917684 83.939259-207.145221 140.754198-363.558576 140.754197M524.249126 222.673687c156.437117 0 292.652773 56.814938 363.558576 140.754198-53.666473-150.484736-196.179059-258.079065-363.558576-258.079065s-309.903984 107.594329-363.558576 258.079065c70.917684-83.95114 207.145221-140.754198 363.558576-140.754198M339.962947 935.117805c1.996008 47.024995-34.157873 86.731294-80.790794 88.798588s-85.959029-34.454898-87.919394-81.503654 34.145992-86.731294 80.731389-88.798588 85.959029 34.454898 87.919394 81.503654M191.01086 190.095987a52.121944 52.121944 0 1 1 49.365552-54.308047A51.824919 51.824919 0 0 1 191.01086 190.095987z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/list.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon" viewBox="0 0 1024 1024" id="icon-list">\r\n <path d="M323.199 300.255v-124.892h615.538v124.893l-615.538-0.001zM77.228 667.303h122.982v122.983h-122.982v-122.983zM77.228 421.335h122.982v122.982h-122.982v-122.982zM77.228 175.364h122.982v122.982h-122.982v-122.982zM938.123 546.226h-614.924v-124.893h614.925v124.893h-0.001zM938.123 792.193h-614.924v-124.89h614.925v124.89h-0.001zM938.123 792.193z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/log.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-log",use:"icon-log-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-log"><path fill="none" d="M0 0h24v24H0z" /><path d="M6 4v16h12V7.828L14.172 4H6zM5 2h10l4.707 4.707a1 1 0 0 1 .293.707V21a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm8 8v8h-2v-6H8v-2h5zm-5 3h2v2H8v-2zm6 0h2v2h-2v-2zm0-3h2v2h-2v-2zm-6 6h2v2H8v-2zm6 0h2v2h-2v-2z" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/look.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-look",use:"icon-look-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" id="icon-look"><g class="icon-svg" fill-rule="evenodd"><path d="m7.28711667 3.19176667c-.371.546-.3255 1.246.1015 1.56333333.427.315 1.0745.12366667 1.4455-.42466667.371-.54833333.32433333-1.25066666-.1015-1.56566666-.427-.31266667-1.07566667-.12366667-1.4455.427" /><path d="m7.79415 10.3569667s-1.12466667.7046666-.84583333-.1855c0 0 .091-.38850003.39783333-1.20400003.245-.65216667.64516667-1.57383334 1.13633333-2.79883334 0 0 .25666667-.61833333-.82016666-.50166666-.46433334.05016666-1.03483334.2625-1.505.50166666-.616.31266667-1.09083334.679-1.2425.81433334l.36983333.224s2.08483333-1.5575 1.55866667-.259c-.52616667 1.295-1.37433334 3.20833333-1.3475 3.98533333.02566666.7781667 1.4525.3173333 1.4525.3173333s.38383333-.1656666.82016666-.4083333c.57633334-.322 1.24133334-.7618333 1.24133334-.7618333l-.34183334-.24150003z" /><path d="m7 12.8333333c-3.2165 0-5.83333333-2.6168333-5.83333333-5.8333333s2.61683333-5.83333333 5.83333333-5.83333333 5.8333333 2.61683333 5.8333333 5.83333333-2.6168333 5.8333333-5.8333333 5.8333333m0-12.8333333c-3.86516667 0-7 3.13483333-7 7 0 3.8651667 3.13483333 7 7 7 3.8651667 0 7-3.1348333 7-7 0-3.86516667-3.1348333-7-7-7" /></g></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/bqgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-bqgl",use:"icon-bqgl-usage",viewBox:"0 0 12 14",content:'<symbol viewBox="0 0 12 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-bqgl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>ICON/\u6807\u7b7e\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <polygon id="icon-bqgl_path-1" points="0 -1 14 -1 14 13 0 13" />\r\n </defs>\r\n <g id="icon-bqgl_\u6570\u636e\u5f00\u53d1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-bqgl_\u6570\u636e\u5f00\u53d1-/-\u6570\u636e\u6807\u6ce8-/\u6807\u6ce8\u4efb\u52a1\u7ba1\u7406" transform="translate(-17.000000, -225.000000)">\r\n <g id="icon-bqgl_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-bqgl_ICON/\u6807\u7b7e\u7ba1\u7406">\r\n <g transform="translate(16.000000, 165.000000)">\r\n <g transform="translate(0.000000, 1.000000)">\r\n <mask id="icon-bqgl_mask-2" fill="white">\r\n <use xlink:href="#icon-bqgl_path-1" />\r\n </mask>\r\n <g id="icon-bqgl_Clip-2"></g>\r\n <path d="M12.2636058,-1 C12.5381058,-1 12.7656258,-0.79993 12.8083848,-0.537571 L12.8156058,-0.448 L12.8156058,12.301 C12.8156058,12.547 12.6136058,12.726 12.3906058,12.726 C12.3472725,12.726 12.3034947,12.7188889 12.2601614,12.7043704 L12.1956058,12.677 L7.25660585,10.105 C7.19560585,10.074 7.12760585,10.057 7.06060585,10.057 C7.01727251,10.057 6.97349474,10.0641111 6.93134659,10.0777407 L6.86960585,10.103 L1.72360585,12.691 C1.66160585,12.722 1.59660585,12.737 1.53360585,12.737 C1.33627251,12.737 1.15474165,12.5955679 1.11683767,12.3913649 L1.10960585,12.312 L1.10960585,-0.448 C1.10960585,-0.7225 1.30967585,-0.95002 1.57203485,-0.992779 L1.66160585,-1 L12.2636058,-1 Z M11.8256058,-0.011 L2.09860585,-0.011 L2.09860585,11.395 L6.42560585,9.219 C6.62160585,9.12 6.84160585,9.068 7.06060585,9.068 C7.24140585,9.068 7.42220585,9.1032 7.59020585,9.17104 L7.71360585,9.228 L11.8256058,11.369 L11.8256058,-0.011 Z M8.75870585,4.5145 C9.03170585,4.5145 9.25370585,4.7365 9.25370585,5.0095 C9.25370585,5.25216667 9.07829844,5.45374691 8.84758239,5.49554664 L8.75870585,5.5035 L5.16570585,5.5035 C4.89270585,5.5035 4.67170585,5.2825 4.67170585,5.0095 C4.67170585,4.76683333 4.84632313,4.56446296 5.0768636,4.52248765 L5.16570585,4.5145 L8.75870585,4.5145 Z M9.46800585,2.2819 C9.74100585,2.2819 9.96200585,2.5029 9.96200585,2.7769 C9.96200585,3.01956667 9.78738856,3.22114691 9.5568481,3.26294664 L9.46800585,3.2709 L4.45700585,3.2709 C4.18400585,3.2709 3.96200585,3.0499 3.96200585,2.7769 C3.96200585,2.53334444 4.13741325,2.33166543 4.3681293,2.28985473 L4.45700585,2.2819 L9.46800585,2.2819 Z" id="icon-bqgl_\u5f62\u72b6" fill="#595959" mask="url(#icon-bqgl_mask-2)" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/bzrw.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-bzrw",use:"icon-bzrw-usage",viewBox:"0 0 13 14",content:'<symbol viewBox="0 0 13 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-bzrw">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>ICON/\u6807\u6ce8\u4efb\u52a1</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <polygon id="icon-bzrw_path-1" points="0 0 14 0 14 13.9998 0 13.9998" />\r\n </defs>\r\n <g id="icon-bzrw_\u6570\u636e\u5f00\u53d1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-bzrw_\u6570\u636e\u5f00\u53d1-/-\u6570\u636e\u6807\u6ce8-/\u6807\u6ce8\u4efb\u52a1\u7ba1\u7406" transform="translate(-17.000000, -105.000000)">\r\n <g id="icon-bzrw_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-bzrw_ICON/\u6807\u6ce8\u4efb\u52a1">\r\n <g transform="translate(16.000000, 45.000000)">\r\n <g>\r\n <mask id="icon-bzrw_mask-2" fill="white">\r\n <use xlink:href="#icon-bzrw_path-1" />\r\n </mask>\r\n <g id="icon-bzrw_Clip-2"></g>\r\n <path d="M3.662,7.927 C3.39,7.927 3.169,7.706 3.169,7.433 C3.169,7.161 3.39,6.94 3.662,6.94 L7.132,6.94 C7.404,6.94 7.625,7.161 7.625,7.433 C7.625,7.706 7.404,7.927 7.132,7.927 L3.662,7.927 Z M3.662,10.53 C3.39,10.53 3.169,10.308 3.169,10.036 C3.169,9.764 3.39,9.543 3.662,9.543 L10.602,9.543 C10.874,9.543 11.096,9.764 11.096,10.036 C11.096,10.308 10.874,10.53 10.602,10.53 L3.662,10.53 Z M8.059,3.983 L9.301,3.399 L10.625,3.928 L10.615,0.982 L9.301,0.987 L8.056,0.987 L8.059,3.983 Z M1.986,13.073 L12.338,13.013 L12.306,0.982 L11.523,0.987 L11.53,4.623 C11.53,4.895 11.308,5.116 11.036,5.116 C10.973,5.116 10.912,5.104 10.853,5.081 L9.279,4.452 L7.749,5.081 C7.694,5.104 7.63,5.116 7.566,5.116 C7.294,5.116 7.073,4.895 7.073,4.623 L7.073,0.985 L1.986,0.986 L1.986,13.073 Z M1.927,14 C1.415,14 1,13.584 1,13.073 L1,0.927 C1,0.416 1.415,0 1.927,0 L12.338,0 C12.849,0 13.265,0.416 13.265,0.927 L13.265,13.073 C13.265,13.584 12.849,14 12.338,14 L1.927,14 Z" id="icon-bzrw_Fill-1" fill="#595959" mask="url(#icon-bzrw_mask-2)" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/dataDevelopment.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-dataDevelopment",use:"icon-dataDevelopment-usage",viewBox:"0 0 14 13",content:'<symbol viewBox="0 0 14 13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-dataDevelopment">\r\n <title>ICON/\u955c\u50cf\u955c\u50cf</title>\r\n <defs>\r\n <polygon id="icon-dataDevelopment_path-1" points="0 0 14 0 14 14 0 14" />\r\n </defs>\r\n <g id="icon-dataDevelopment_\u65b0\u624b\u6307\u5f15\u4fee\u6539" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-dataDevelopment_\u6a21\u578b\u63a8\u7406-\u67e5\u770b\u7248\u672c\u5907\u4efd-19" transform="translate(-16.000000, -305.000000)">\r\n <g id="icon-dataDevelopment_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-dataDevelopment_\u8fd0\u8425\u7ba1\u7406" transform="translate(0.000000, 232.000000)">\r\n <g id="icon-dataDevelopment_ICON/\u8bad\u7ec3\u955c\u50cf\u7ba1\u7406" transform="translate(16.000000, 12.000000)">\r\n <mask id="icon-dataDevelopment_mask-2" fill="white">\r\n <use xlink:href="#icon-dataDevelopment_path-1" />\r\n </mask>\r\n <g id="icon-dataDevelopment_Clip-6"></g>\r\n <path d="M10.7128508,5.89160525 C10.7960967,5.87650957 10.88103,5.8846235 10.9592137,5.91424878 L11.034835,5.95098161 C11.034835,5.95098161 11.7657992,6.40989038 12.1137822,7.34582275 C13.1307323,7.24518486 13.8366977,7.74233604 13.8366977,7.74233604 C13.9516921,7.84213528 14.0104392,7.99015684 13.9984722,8.13864432 L13.9826906,8.22741066 C13.9826906,8.22741066 13.8656963,8.65109618 13.4867149,9.02043723 C13.1547312,9.34348486 12.56676,9.60614975 11.7927979,9.65244318 C11.7034689,9.85573171 11.6052515,10.0514165 11.5011085,10.2403921 L11.238825,10.6950517 L11.238825,10.6950517 C9.84089349,12.8839258 7.51000768,14 4.8171396,14 C3.06322552,14 1.83028592,13.3287453 1.06632334,12.4431319 L0.937454657,12.2833692 L0.937454657,12.2833692 L0.818335492,12.1190778 C0.818335492,12.1190778 0.604345975,11.7909983 0.59934622,11.7829473 C0.391356409,11.42367 0.134368998,10.679956 0.132369096,10.6658667 C0.0393736519,10.3035703 0.000375562324,9.94529944 0.000375562324,9.62325819 C-0.00262429072,9.49444169 0.0123749745,9.36562519 0.044373407,9.24083421 C0.0573727701,9.19152164 0.0703721333,9.13315167 0.0883712516,9.09390289 C0.10637037,9.05566049 0.147368361,9.00534155 0.147368361,9.00534155 C0.21536503,8.91275469 0.315360132,8.84850746 0.426362694,8.82496625 L0.511350531,8.81513594 L8.93293797,8.81513594 C9.27092142,8.81815508 9.60590501,8.74368304 9.91089007,8.59473896 C9.98788629,8.55549018 10.0418836,8.51322227 10.1008808,8.47699263 C10.0178848,8.26766582 9.88689124,8.07645383 9.86689222,7.86008237 C9.81389482,7.27135072 9.96388747,6.80237815 10.1288794,6.49442621 C10.2958712,6.18546789 10.5088608,5.99526228 10.5088608,5.99526228 C10.5678579,5.94393695 10.6378545,5.90871369 10.7128508,5.89160525 Z M10.9168408,7.0811451 C10.8458443,7.25021676 10.7708479,7.44142875 10.8008465,7.7725274 C10.8200455,7.97460829 10.8686831,8.14319688 10.9508551,8.28602217 L11.0188358,8.38843129 C11.1008318,8.49510745 11.1328302,8.63197498 11.1068315,8.76381061 C11.0828327,8.89564625 11.0028366,9.01137982 10.8878422,9.07880721 C10.911841,9.0647179 10.8278451,9.1271134 10.7268501,9.19655354 C10.626855,9.26700006 10.4868618,9.34952313 10.3188701,9.4320462 C9.95888771,9.60983981 9.56974011,9.71564936 9.17225958,9.74598051 L8.93293797,9.75509383 L0.963328389,9.75509383 C0.970661363,9.87720113 0.983771832,9.99841388 1.00325236,10.1187321 L1.03732476,10.2985384 L1.13931977,10.6950517 C1.18956731,10.851292 1.26287621,11.0239489 1.33351338,11.1663201 L1.40230688,11.2968663 C1.77128881,12.026491 2.23326618,12.2811048 2.23326618,12.2811048 C2.82123737,12.7420264 3.64419706,13.0600421 4.8171396,13.0600421 C6.95773039,13.0600421 8.75157824,12.3611776 9.97990534,10.8991548 L10.1438787,10.6950517 L10.31987,10.4605654 C10.6098558,10.0429182 10.8538439,9.57293925 11.0628336,9.04962222 C11.13783,8.86646126 11.3188211,8.74871493 11.5158114,8.75676596 C12.258775,8.78393819 12.6157576,8.55247105 12.8297471,8.345157 C12.8637454,8.31194649 12.8477462,8.31697839 12.872745,8.28578064 C12.6828793,8.22942342 12.4233451,8.19464045 12.0780652,8.26435774 L11.8887932,8.30892735 C11.6348056,8.35823992 11.3898176,8.19017465 11.34082,7.93354803 C11.2782517,7.59885516 11.1356056,7.35288794 10.9903357,7.16902868 L10.9168408,7.0811451 Z M3.1881194,10.38398 C3.54610186,10.38398 3.83808756,10.6778426 3.83808756,11.0381263 C3.83808756,11.3994163 3.54610186,11.6932789 3.1881194,11.6932789 C2.82913699,11.6932789 2.53715129,11.3994163 2.53715129,11.0381263 C2.53715129,10.6778426 2.82913699,10.38398 3.1881194,10.38398 Z M3.1881194,10.7422509 C3.02612734,10.7422509 2.8941338,10.8750929 2.8941338,11.0381263 C2.8941338,11.2011597 3.02612734,11.3340017 3.1881194,11.3340017 C3.35011147,11.3340017 3.482105,11.2011597 3.482105,11.0381263 C3.482105,10.8750929 3.35011147,10.7422509 3.1881194,10.7422509 Z M7.22682155,1 C7.92678726,1 8.49775929,1.57363597 8.49775929,2.27910757 C8.49775929,2.98457918 7.92678726,3.55821515 7.22682155,3.55821515 C7.05283008,3.55821515 6.8828384,3.52198551 6.72384619,3.45254536 L6.35286437,3.88428191 C6.482858,4.09763424 6.55385452,4.34620982 6.55385452,4.59881092 C6.55385452,4.83027807 6.49685731,5.05268781 6.38786265,5.25195083 L6.57185364,5.43611816 C6.81384178,5.29723788 7.08582846,5.22578498 7.36781465,5.22578498 C8.26477071,5.22578498 8.9957349,5.96044157 8.9957349,6.86416981 C8.9957349,7.76689168 8.26477071,8.50154828 7.36781465,8.50154828 C6.46985864,8.50154828 5.73989439,7.76689168 5.73989439,6.86416981 C5.73989439,6.53407754 5.8398895,6.21404905 6.02388048,5.94232675 L5.86888808,5.78633802 C5.66389812,5.90509073 5.43090953,5.9684926 5.19392114,5.9684926 C4.9559328,5.9684926 4.72894392,5.90710349 4.52595386,5.79036354 L4.14397258,6.13857063 C4.23796797,6.31971883 4.28696557,6.51998823 4.28696557,6.72730229 C4.28696557,7.43277389 3.71699349,8.00640986 3.01602783,8.00640986 C2.31606212,8.00640986 1.74509009,7.43277389 1.74509009,6.72730229 C1.74509009,6.02283706 2.31606212,5.44819471 3.01602783,5.44819471 C3.23201725,5.44819471 3.43800716,5.50253917 3.62399805,5.60518982 L4.00297948,5.25899548 C3.89198492,5.0577197 3.83298781,4.83027807 3.83298781,4.59881092 C3.83298781,4.34520344 3.90398433,4.09662786 4.03597787,3.88126277 L3.5760004,3.41832848 C3.46200598,3.46462191 3.34001196,3.488775 3.21601803,3.488775 C2.68404409,3.488775 2.25106531,3.05200656 2.25106531,2.51761937 C2.25106531,1.98121942 2.68404409,1.54646374 3.21601803,1.54646374 C3.74799197,1.54646374 4.18097076,1.98121942 4.18097076,2.51761937 C4.18097076,2.64744225 4.15497204,2.77424599 4.10497449,2.8929987 L4.58495097,3.37606057 C4.77294176,3.27944819 4.98093157,3.23013563 5.19392114,3.23013563 C5.40791066,3.23013563 5.61590047,3.28045457 5.80589116,3.37706695 L6.15787392,2.96847712 C6.02688034,2.7641822 5.95588381,2.52466402 5.95588381,2.27910757 C5.95588381,1.57363597 6.52585589,1 7.22682155,1 Z M7.36781465,5.97352449 C6.87983855,5.97352449 6.482858,6.37305691 6.482858,6.86416981 C6.482858,7.35427634 6.87983855,7.75280238 7.36781465,7.75280238 C7.85579074,7.75280238 8.25277129,7.35427634 8.25277129,6.86416981 C8.25277129,6.37305691 7.85579074,5.97352449 7.36781465,5.97352449 Z M3.01602783,6.19593423 C2.72504209,6.19593423 2.4880537,6.43444603 2.4880537,6.72730229 C2.4880537,7.02015854 2.72504209,7.25867034 3.01602783,7.25867034 C3.30701358,7.25867034 3.54400197,7.02015854 3.54400197,6.72730229 C3.54400197,6.43444603 3.30701358,6.19593423 3.01602783,6.19593423 Z M5.19392114,3.97787515 C4.8539378,3.97787515 4.57695136,4.2566421 4.57695136,4.59881092 C4.57695136,4.94097975 4.8539378,5.2197467 5.19392114,5.2197467 C5.53390449,5.2197467 5.81089092,4.94097975 5.81089092,4.59881092 C5.81089092,4.2566421 5.53390449,3.97787515 5.19392114,3.97787515 Z M7.22682155,1.7487459 C6.93483586,1.7487459 6.69884742,1.98625132 6.69884742,2.27910757 C6.69884742,2.57196383 6.93483586,2.81047563 7.22682155,2.81047563 C7.5178073,2.81047563 7.75479569,2.57196383 7.75479569,2.27910757 C7.75479569,1.98625132 7.5178073,1.7487459 7.22682155,1.7487459 Z M3.21601803,2.29420326 C3.09402401,2.29420326 2.99502886,2.39383477 2.99502886,2.51761937 C2.99502886,2.6403976 3.09402401,2.74002911 3.21601803,2.74002911 C3.33901201,2.74002911 3.43800716,2.6403976 3.43800716,2.51761937 C3.43800716,2.39383477 3.33901201,2.29420326 3.21601803,2.29420326 Z" id="icon-dataDevelopment_\u5f62\u72b6" fill="#595959" mask="url(#icon-dataDevelopment_mask-2)" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/datamgr.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-datamgr",use:"icon-datamgr-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-datamgr">\r\n <title>icon/\u6570\u636e\u51c6\u5907</title>\r\n <g id="icon-datamgr_\u65b0\u624b\u6307\u5f15\u4fee\u6539" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-datamgr_\u6a21\u578b\u63a8\u7406-\u67e5\u770b\u7248\u672c\u5907\u4efd-19" transform="translate(-16.000000, -185.000000)">\r\n <g id="icon-datamgr_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-datamgr_-icon/\u6570\u636e\u5206\u53d1" transform="translate(16.000000, 125.000000)">\r\n <rect id="icon-datamgr_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M11.2228,0 C10.2678,0 9.4938,0.774 9.4938,1.729 C9.4938,1.978 9.5488,2.213 9.6428,2.426 L8.2728,3.424 C7.7378,2.943 7.0368,2.642 6.2608,2.642 C4.5908,2.642 3.2378,3.996 3.2378,5.665 C3.2378,6.456 3.5478,7.168 4.0438,7.707 L2.6948,9.131 C2.4418,9.001 2.1588,8.921 1.8538,8.921 C0.8298,8.921 -0.0002,9.751 -0.0002,10.775 C-0.0002,11.8 0.8298,12.63 1.8538,12.63 C2.8788,12.63 3.7088,11.8 3.7088,10.775 C3.7088,10.339 3.5518,9.943 3.2998,9.626 L4.6388,8.209 C5.1078,8.509 5.6628,8.688 6.2608,8.688 C7.0318,8.688 7.7278,8.391 8.2628,7.916 L10.5068,10.104 C10.2568,10.432 10.1018,10.837 10.1018,11.281 C10.1018,12.357 10.9738,13.229 12.0498,13.229 C13.1258,13.229 13.9978,12.357 13.9978,11.281 C13.9978,10.206 13.1258,9.333 12.0498,9.333 C11.7018,9.333 11.3788,9.432 11.0958,9.592 L8.7798,7.334 C9.0978,6.856 9.2838,6.283 9.2838,5.665 C9.2838,5.054 9.0988,4.487 8.7878,4.011 L10.1138,3.045 C10.4148,3.299 10.7988,3.458 11.2228,3.458 C12.1778,3.458 12.9518,2.684 12.9518,1.729 C12.9518,0.774 12.1778,0 11.2228,0 M12.0498,10.333 C12.5728,10.333 12.9978,10.759 12.9978,11.281 C12.9978,11.804 12.5728,12.229 12.0498,12.229 C11.5268,12.229 11.1018,11.804 11.1018,11.281 C11.1018,11.026 11.2098,10.831 11.3018,10.711 L11.4178,10.56 L11.5888,10.463 C11.7408,10.377 11.8948,10.333 12.0498,10.333 M1.8538,9.921 C1.9798,9.921 2.1088,9.955 2.2388,10.021 L2.4018,10.105 L2.5168,10.25 C2.6048,10.359 2.7088,10.54 2.7088,10.775 C2.7088,11.247 2.3258,11.63 1.8538,11.63 C1.3838,11.63 0.9998,11.247 0.9998,10.775 C0.9998,10.305 1.3838,9.921 1.8538,9.921 M6.2608,3.642 C6.8878,3.642 7.3378,3.928 7.6048,4.167 L7.8228,4.363 L7.9518,4.56 C8.1688,4.892 8.2838,5.274 8.2838,5.665 C8.2838,6.062 8.1668,6.448 7.9468,6.781 L7.8218,6.969 L7.5978,7.168 C7.3308,7.406 6.8828,7.688 6.2608,7.688 C5.8818,7.688 5.5068,7.577 5.1778,7.367 L4.9648,7.231 L4.7798,7.029 C4.4298,6.65 4.2378,6.166 4.2378,5.665 C4.2378,4.55 5.1448,3.642 6.2608,3.642 M11.2228,1 C11.6248,1 11.9518,1.327 11.9518,1.729 C11.9518,2.131 11.6248,2.458 11.2228,2.458 C11.0128,2.458 10.8538,2.362 10.7588,2.281 L10.6198,2.165 L10.5568,2.022 C10.5148,1.927 10.4938,1.828 10.4938,1.729 C10.4938,1.327 10.8208,1 11.2228,1" fill="#595959" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/dispatch.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-dispatch",use:"icon-dispatch-usage",viewBox:"0 0 14 13",content:'<symbol viewBox="0 0 14 13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-dispatch">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u8c03\u5ea6</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <polygon id="icon-dispatch_path-1" points="0 0 14 0 14 14 0 14" />\r\n </defs>\r\n <g id="icon-dispatch_\u7ec4\u4ef6" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-dispatch_NaviSelect-Copy-4\u590d\u5236" transform="translate(-26.000000, -21.000000)">\r\n <g id="icon-dispatch_icon/\u8c03\u5ea6">\r\n <g transform="translate(26.000000, 20.000000)">\r\n <g>\r\n <mask id="icon-dispatch_mask-2" fill="white">\r\n <use xlink:href="#icon-dispatch_path-1" />\r\n </mask>\r\n <g id="icon-dispatch_Clip-2"></g>\r\n <path d="M5.0312,9.3778 C5.8332,9.3778 6.5392,9.8908 6.7892,10.6528 L6.7892,10.6528 L6.8002,10.6868 L6.8592,10.7558 L12.5912,10.7558 C12.8532,10.7558 13.0662,10.9688 13.0662,11.2308 C13.0662,11.4928 12.8532,11.7058 12.5912,11.7058 L12.5912,11.7058 L6.8232,11.7058 L6.7892,11.8088 C6.6062,12.3658 6.1652,12.8068 5.6082,12.9898 C5.4202,13.0508 5.2262,13.0828 5.0302,13.0828 C4.2292,13.0828 3.5232,12.5708 3.2732,11.8088 L3.2732,11.8088 L3.2622,11.7748 L3.2032,11.7058 L0.4752,11.7058 C0.2132,11.7058 0.0002,11.4928 0.0002,11.2308 C0.0002,10.9688 0.2132,10.7558 0.4752,10.7558 L0.4752,10.7558 L3.2392,10.7558 L3.2732,10.6528 C3.4562,10.0958 3.8972,9.6538 4.4542,9.4718 C4.6422,9.4098 4.8362,9.3778 5.0312,9.3778 Z M5.0322,10.3308 C4.5352,10.3308 4.1312,10.7348 4.1312,11.2308 C4.1312,11.7268 4.5352,12.1308 5.0312,12.1308 C5.2082,12.1308 5.3802,12.0788 5.5282,11.9808 C5.7802,11.8138 5.9312,11.5328 5.9312,11.2308 C5.9312,10.7338 5.5282,10.3308 5.0322,10.3308 Z M10.0312,5.1889 C10.8332,5.1889 11.5392,5.7019 11.7892,6.4639 L11.7892,6.4639 L11.8002,6.4979 L11.8592,6.5669 L12.5912,6.5669 C12.8532,6.5669 13.0662,6.7799 13.0662,7.0419 C13.0662,7.3039 12.8532,7.5169 12.5912,7.5169 L12.5912,7.5169 L11.8232,7.5169 L11.7892,7.6199 C11.6062,8.1769 11.1652,8.6179 10.6082,8.8009 C10.4202,8.8619 10.2262,8.8939 10.0302,8.8939 C9.2292,8.8939 8.5232,8.3819 8.2732,7.6199 L8.2732,7.6199 L8.2622,7.5859 L8.2032,7.5169 L0.4752,7.5169 C0.2132,7.5169 0.0002,7.3039 0.0002,7.0419 C0.0002,6.7799 0.2132,6.5669 0.4752,6.5669 L0.4752,6.5669 L8.2392,6.5669 L8.2732,6.4639 C8.4562,5.9069 8.8972,5.4649 9.4542,5.2829 C9.6422,5.2209 9.8362,5.1889 10.0312,5.1889 Z M10.0322,6.1419 C9.5352,6.1419 9.1312,6.5459 9.1312,7.0419 C9.1312,7.5379 9.5352,7.9419 10.0312,7.9419 C10.2082,7.9419 10.3802,7.8899 10.5282,7.7919 C10.7802,7.6249 10.9312,7.3439 10.9312,7.0419 C10.9312,6.5449 10.5282,6.1419 10.0322,6.1419 Z M3.535,1 C4.335,1 5.042,1.513 5.292,2.275 L5.292,2.275 L5.303,2.309 L5.362,2.378 L12.591,2.378 C12.853,2.378 13.066,2.591 13.066,2.853 C13.066,3.115 12.853,3.328 12.591,3.328 L12.591,3.328 L5.326,3.328 L5.292,3.431 C5.109,3.988 4.667,4.43 4.111,4.612 C3.923,4.673 3.728,4.705 3.533,4.705 C2.732,4.705 2.026,4.193 1.776,3.431 L1.776,3.431 L1.765,3.397 L1.706,3.328 L0.475,3.328 C0.213,3.328 1.42108547e-14,3.115 1.42108547e-14,2.853 C1.42108547e-14,2.591 0.213,2.378 0.475,2.378 L0.475,2.378 L1.742,2.378 L1.776,2.275 C1.959,1.718 2.4,1.276 2.957,1.094 C3.145,1.032 3.339,1 3.535,1 Z M3.535,1.953 C3.038,1.953 2.634,2.357 2.634,2.853 C2.634,3.349 3.038,3.753 3.534,3.753 C3.711,3.753 3.883,3.701 4.031,3.603 C4.284,3.435 4.434,3.155 4.434,2.852 C4.434,2.356 4.031,1.953 3.535,1.953 Z" fill="#AEAEAE" mask="url(#icon-dispatch_mask-2)" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/fbscc.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-fbscc",use:"icon-fbscc-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-fbscc">\r\n <title>ICON/\u5206\u5e03\u5f0f\u5b58\u50a8</title>\r\n <g id="icon-fbscc_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-fbscc_ICON/\u5206\u5e03\u5f0f\u5b58\u50a8">\r\n <rect id="icon-fbscc_\u77e9\u5f62" fill="#FFFFFF" opacity="0.01" x="0" y="0" width="14" height="14" />\r\n <path d="M11,1.59876636 C11.4100746,1.59333419 11.8049437,1.75383876 12.0949357,2.04383071 C12.3849276,2.33382265 12.5454322,2.7286918 12.54,3.13876636 L12.54,5.52876636 C12.5458103,5.64183858 12.5034294,5.7520765 12.4233698,5.83213612 C12.3433101,5.91219574 12.2330722,5.95457661 12.12,5.94876636 C12.0060804,5.9543675 11.8949763,5.91226156 11.8133825,5.83256527 C11.7317886,5.75286899 11.6870805,5.6427862 11.69,5.52876636 L11.69,4.98876636 L0.8,5.03876636 L0.85,10.5987664 C0.847276278,10.7825872 0.919097526,10.9596784 1.04909275,11.0896736 C1.17908798,11.2196688 1.35617916,11.2914901 1.54,11.2887664 L8.21,11.2887664 C8.32307222,11.2829561 8.43331014,11.325337 8.51336976,11.4053966 C8.59342938,11.4854562 8.63581025,11.5956941 8.63,11.7087664 C8.63560114,11.822686 8.5934952,11.9337901 8.51379891,12.0153839 C8.43410263,12.0969777 8.32401984,12.1416859 8.21,12.1387664 L1.54,12.1788784 C1.12367299,12.1817102 0.724124865,12.0148649 0.433528031,11.7167201 C0.142931197,11.4185752 -0.0136162059,11.0148811 -6.6965964e-14,10.5987664 L-6.6965964e-14,3.13876636 C-0.00543216913,2.7286918 0.155072403,2.33382265 0.445064347,2.04383071 C0.735056292,1.75383876 1.12992544,1.59333419 1.54,1.59876636 L11,1.59876636 Z M11.57,6.07876636 C11.7049267,6.08060861 11.8226338,6.16392371 11.8715268,6.28517873 L11.89,6.34876636 C11.991637,6.75675589 12.3595537,7.04199469 12.78,7.03876636 C12.8727618,7.05337379 12.9672382,7.05337379 13.06,7.03876636 L13.16,7.03876636 C13.2778653,7.03822775 13.3876013,7.09877174 13.45,7.19876636 L13.89,7.95876636 C13.9790192,8.0938107 13.9532709,8.27404918 13.83,8.37876636 C13.6413595,8.54234522 13.5320932,8.77908875 13.53,9.02876636 C13.5294335,9.27903241 13.6391861,9.51682973 13.83,9.67876636 C13.9508248,9.78900957 13.9760318,9.96965944 13.89,10.1087664 L13.45,10.8587664 C13.3932778,10.9657318 13.281043,11.0315246 13.16,11.0287664 L13.06,11.0287664 L12.92,11.0214875 L12.78,11.0287664 C12.3951039,11.0268378 12.0552258,11.2664617 11.923207,11.6195605 L11.89,11.7287664 C11.8608211,11.8817598 11.7257266,11.991524 11.57,11.9888662 L10.68,11.9888662 C10.5513792,11.9878034 10.4376378,11.9126369 10.3843521,11.8003191 L10.36,11.7287664 C10.2711815,11.3542533 9.95821954,11.0804075 9.58395545,11.0353063 L9.47,11.0287664 C9.37691896,11.0190612 9.28308104,11.0190612 9.19,11.0287664 L9.09,11.0287664 C8.96895696,11.0315246 8.85672223,10.9657318 8.8,10.8587664 L8.36,10.1087664 C8.27794245,9.96884653 8.30277508,9.79087933 8.42,9.67876636 C8.6108139,9.51682973 8.72056651,9.27903241 8.72,9.02876636 C8.71794954,8.7811948 8.61286736,8.54566577 8.43,8.37876636 C8.30339517,8.27685638 8.27329056,8.09622872 8.36,7.95876636 L8.8,7.19876636 C8.86239871,7.09877174 8.97213468,7.03822775 9.09,7.03876636 L9.2,7.03876636 C9.28934999,7.05406355 9.38065001,7.05406355 9.47,7.03876636 C9.85222392,7.04170121 10.191035,6.80623346 10.3258394,6.45686832 L10.36,6.34876636 C10.3886088,6.19395855 10.5225856,6.08091565 10.68,6.07876636 L11.57,6.07876636 Z M11.34,6.72876636 L10.89,6.72876636 L10.8351562,6.79626636 C10.828125,6.80564136 10.8225,6.81376636 10.82,6.81876636 C10.6636041,7.17910477 10.3677032,7.46057148 10,7.59876636 C9.81994861,7.67543344 9.62565023,7.71292962 9.43,7.70876636 C9.34359792,7.71834353 9.25640208,7.71834353 9.17,7.70876636 L8.9,8.13876636 C8.93758038,8.22060758 8.98456348,8.2977941 9.04,8.36876636 C9.17006214,8.59376955 9.23901054,8.84887866 9.24,9.10876636 C9.2399522,9.36878002 9.17093904,9.62412871 9.04,9.84876636 C8.99905589,9.91612324 8.95220481,9.97970684 8.9,10.0387664 L9.14,10.4887664 L9.43,10.4887664 L9.47,10.4687664 C9.65293261,10.4806228 9.83234376,10.5246293 10,10.5987664 C10.1700158,10.6748844 10.3256299,10.7797547 10.46,10.9087664 C10.5630811,11.0058598 10.6501524,11.1182533 10.7182866,11.2417391 L10.78,11.3687664 C10.78,11.3687664 10.84,11.4787664 10.87,11.4787664 L11.32,11.4787664 L11.3748437,11.4197039 C11.381875,11.4112664 11.3875,11.4037664 11.39,11.3987664 C11.463579,11.2248824 11.5725586,11.0682243 11.71,10.9387664 C11.853852,10.7950584 12.0234726,10.6797164 12.21,10.5987664 C12.3914441,10.5267593 12.5847911,10.4894467 12.78,10.4887664 L13.04,10.4887664 L13.31,10.0587664 C13.270138,9.97815924 13.2232923,9.90119849 13.17,9.82876636 C13.039061,9.60412871 12.9700478,9.34878002 12.97,9.08876636 C12.9709895,8.82887866 13.0399379,8.57376955 13.17,8.34876636 L13.31,8.15876636 L13.07,7.70876636 L12.78,7.70876636 C12.5843498,7.71292962 12.3900514,7.67543344 12.21,7.59876636 C12.038486,7.52988246 11.8821885,7.42794934 11.75,7.29876636 C11.6502066,7.19888141 11.5643119,7.08629989 11.4944452,6.96408244 L11.43,6.83876636 C11.43,6.83876636 11.37,6.72876636 11.34,6.72876636 Z M11.13,7.80876636 C11.7958809,7.86756497 12.3065319,8.42529444 12.3065319,9.09376636 C12.3065319,9.76223828 11.7958809,10.3199677 11.13,10.3787664 C10.6438498,10.4216944 10.175096,10.1865931 9.91877367,9.7712815 C9.66245137,9.35596986 9.66245137,8.83156286 9.91877367,8.41625122 C10.175096,8.00093958 10.6438498,7.76583833 11.13,7.80876636 Z M3.07,6.59876636 C3.12779105,6.62849413 3.17105566,6.68038778 3.1899029,6.74258366 C3.20875014,6.80477955 3.20156857,6.87195992 3.17,6.92876636 L2.45,8.15876636 L3.17,9.50876636 C3.2056457,9.56950263 3.21512885,9.64210076 3.19628035,9.70995535 C3.17743185,9.77780994 3.13186417,9.83511616 3.07,9.86876636 C3.03267044,9.89687766 2.98667567,9.9110299 2.94,9.90876636 C2.8438736,9.9063843 2.75626778,9.85305902 2.71,9.76876636 L1.79,8.20876636 L2.71,6.72876636 C2.7404653,6.66967374 2.7934997,6.62678463 2.85550628,6.60851618 L2.92,6.59876636 C2.96919334,6.5860647 3.02080666,6.5860647 3.07,6.59876636 Z M6,6.59876636 C6.09211983,6.59690187 6.1788307,6.64214233 6.23,6.71876636 L7.15,8.21876636 L6.2,9.73876636 C6.15831738,9.81192907 6.08378435,9.86037554 6,9.86876636 L5.87,9.86876636 C5.76724947,9.787994 5.73404638,9.64688088 5.79,9.52876636 L6.51,8.29876636 L5.76,6.98876636 C5.71560625,6.92745318 5.69898991,6.85032001 5.71420087,6.77616654 C5.72941184,6.70201307 5.77505292,6.63765065 5.84,6.59876636 C5.89144306,6.57868505 5.94855694,6.57868505 6,6.59876636 Z M11.2076133,8.38854013 L11.1121805,8.37963283 L11.13,8.37876636 C10.9354087,8.37561118 10.7478281,8.45136487 10.61,8.58876636 C10.4721457,8.72218107 10.3960582,8.906965 10.4,9.09876636 C10.3968448,9.29335771 10.4725985,9.48093828 10.61,9.61876636 C10.8929071,9.87806334 11.3270929,9.87806334 11.61,9.61876636 C11.8136796,9.41025498 11.8737975,9.10056384 11.7629247,8.83099086 C11.6659111,8.59511451 11.4542551,8.42951793 11.2076133,8.38854013 Z M5.29,6.79876636 C5.41169839,6.87935827 5.45453182,7.03784196 5.39,7.16876636 L4,9.59876636 C3.95270252,9.68072536 3.86461114,9.73051614 3.77,9.72876636 L3.64,9.72876636 C3.5911562,9.69994257 3.55533072,9.65336945 3.54,9.59876636 C3.5102607,9.51465092 3.5102607,9.4228818 3.54,9.33876636 L4.93,6.92876636 C4.98059446,6.84520972 5.07237411,6.79549575 5.17,6.79876636 L5.29,6.79876636 Z M11,2.44876636 L1.54,2.44876636 C1.35617916,2.44604264 1.17908798,2.51786389 1.04909275,2.64785911 C0.919097526,2.77785434 0.847276278,2.95494552 0.849854498,3.13876636 L0.849854498,4.22876636 L11.72,4.22876636 L11.67,3.22876636 C11.7026119,3.03293898 11.6467003,2.83273247 11.5173435,2.68213795 C11.3879867,2.53154344 11.198506,2.44606944 11,2.44876636 Z M7.995,2.9956618 C8.21769384,2.9956618 8.40689511,3.1585469 8.44,3.37876636 C8.44558682,3.49799121 8.40136785,3.61417436 8.31792419,3.69951446 C8.23448054,3.78485456 8.11932028,3.8316729 8,3.82876636 C7.87982663,3.83153007 7.76375458,3.78500753 7.67875671,3.70000965 C7.59375884,3.61501178 7.54723629,3.49893973 7.55,3.37876636 C7.58310489,3.1585469 7.77230616,2.9956618 7.995,2.9956618 Z M9.215,2.9956618 C9.43769384,2.9956618 9.62689511,3.1585469 9.66,3.37876636 C9.66276371,3.49893973 9.61624116,3.61501178 9.53124329,3.70000965 C9.44624542,3.78500753 9.33017337,3.83153007 9.21,3.82876636 C9.09067972,3.8316729 8.97551946,3.78485456 8.89207581,3.69951446 C8.80863215,3.61417436 8.76441318,3.49799121 8.77,3.37876636 C8.80310489,3.1585469 8.99230616,2.9956618 9.215,2.9956618 Z M10.41,2.93876636 C10.5275215,2.93599999 10.6410517,2.9814681 10.724175,3.06459136 C10.8072983,3.14771463 10.8527664,3.26124487 10.85,3.37876636 C10.8555868,3.49799121 10.8113678,3.61417436 10.7279242,3.69951446 C10.6444805,3.78485456 10.5293203,3.8316729 10.41,3.82876636 C10.2898266,3.83153007 10.1737546,3.78500753 10.0887567,3.70000965 C10.0037588,3.61501178 9.95723629,3.49893973 9.96,3.37876636 C9.95709346,3.25944608 10.0039118,3.14428582 10.0892519,3.06084217 C10.174592,2.97739851 10.2907752,2.93317954 10.41,2.93876636 Z" fill="#595959" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/flbqgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-flbqgl",use:"icon-flbqgl-usage",viewBox:"0 0 15 14",content:'<symbol viewBox="0 0 15 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-flbqgl">\r\n <title>ICON/\u5206\u7c7b\u6807\u7b7e\u7ba1\u7406</title>\r\n <defs>\r\n <polygon id="icon-flbqgl_path-1" points="0 0 14 0 14 14 0 14" />\r\n </defs>\r\n <g id="icon-flbqgl_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-flbqgl_ICON/\u5206\u7c7b\u6807\u7b7e\u7ba1\u7406" transform="translate(0.857143, 0.000000)">\r\n <mask id="icon-flbqgl_mask-2" fill="white">\r\n <use xlink:href="#icon-flbqgl_path-1" />\r\n </mask>\r\n <g id="icon-flbqgl_Clip-2"></g>\r\n <path d="M11.368,0 C11.6479,0 11.8792,0.20331 11.922661,0.470691 L11.9299883,0.594979648 L11.9299883,0.594979648 L11.928,6.209 C11.926,6.486 11.701,6.711 11.424,6.711 C11.1768889,6.711 10.9716543,6.5324321 10.9290974,6.29820439 L10.9210031,6.19102843 L10.9210031,6.19102843 L10.922,1.008 L1.009,1.008 L1.009,12.632 L5.418,10.415 C5.618,10.314 5.842,10.261 6.065,10.261 C6.2498,10.261 6.43396,10.29684 6.605192,10.36596 L6.731,10.424 L7.388,10.767 C7.573,10.844 7.703,11.023 7.703,11.235 C7.703,11.513 7.478,11.738 7.2,11.738 C7.126,11.738 7.056,11.72 6.993,11.691 L6.986,11.693 L6.265,11.318 C6.202,11.286 6.134,11.27 6.065,11.27 C6.021,11.27 5.97655556,11.2766667 5.93374074,11.29 L5.871,11.315 L0.627,13.953 C0.563,13.985 0.497,14 0.433,14 C0.231222222,14 0.046037037,13.8561975 0.00737585734,13.6479561 L0,13.567 L0,0.562 C0,0.2821 0.20412,0.0508 0.471663,0.007339 L0.563,0 L11.368,0 Z M11.1709,7.4638 C11.3179,7.4638 11.4639,7.5038 11.5899,7.5788 L13.5999,8.7688 C13.8549,8.9218 14.0119,9.1988 14.0109095,9.4948 L14.0109095,11.7158 C14.0119,12.0158 13.8509,12.2968 13.5909,12.4468 L11.5809,13.6038 C11.4569,13.6748 11.3149,13.7138 11.1719,13.7138 C11.0279,13.7138 10.8859,13.6748 10.7609,13.6038 L8.7519,12.4468 C8.4909,12.2958 8.3309,12.0148 8.33189072,11.7148 L8.33189072,9.4938 C8.33189072,9.1988 8.4889,8.9208 8.7419,8.7688 L10.7519,7.5788 C10.8779,7.5038 11.0239,7.4638 11.1709,7.4638 Z M11.1699,8.3198 L9.1619,9.5068 L9.1739,11.7328 L11.1849,12.8748 L13.1809,11.7138 L13.1689,9.4878 L11.1699,8.3198 Z M11.1761,9.0653 C12.0181,9.0693 12.6981,9.7523 12.6981,10.5883 C12.6962111,11.3806889 12.087779,12.0339296 11.31339,12.1040663 L11.1721,12.1103 C10.7641,12.1083 10.3821,11.9483 10.0961,11.6603 C9.8091,11.3713 9.6531,10.9883 9.65409049,10.5823 C9.6581,9.7463 10.3411,9.0653 11.1761,9.0653 Z M11.1741,9.8823 C10.9851,9.8823 10.8071,9.9573 10.6741,10.0913 C10.5411,10.2253 10.4681,10.4023 10.4690799,10.5903 C10.4711,10.9783 10.7871,11.2933 11.1751,11.2933 C11.5651,11.2923 11.8801,10.9753 11.8801,10.5883 C11.8801,10.1993 11.5631,9.8823 11.1741,9.8823 Z M7.7962,5.6201 C8.0742,5.6201 8.3002,5.8461 8.3002,6.1241 C8.3002,6.37121111 8.1216321,6.5772358 7.88670206,6.61996831 L7.7962,6.6281 L4.1342,6.6281 C3.8562,6.6281 3.6302,6.4021 3.6302,6.1241 C3.6302,5.87698889 3.8087679,5.6709642 4.04369794,5.62823169 L4.1342,5.6201 L7.7962,5.6201 Z M8.5189,3.345 C8.7969,3.345 9.0229,3.571 9.0229,3.849 C9.0229,4.09611111 8.8443321,4.3021358 8.60940206,4.34486831 L8.5189,4.353 L3.4119,4.353 C3.1339,4.353 2.9079,4.127 2.9079,3.849 C2.9079,3.60188889 3.0864679,3.3958642 3.32139794,3.35313169 L3.4119,3.345 L8.5189,3.345 Z" id="icon-flbqgl_\u5f62\u72b6" fill="#595959" mask="url(#icon-flbqgl_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/ftp.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-ftp",use:"icon-ftp-usage",viewBox:"0 0 15 14",content:'<symbol viewBox="0 0 15 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-ftp">\r\n <title>ICON/FTP\u914d\u7f6e</title>\r\n <defs>\r\n <polygon id="icon-ftp_path-1" points="0 0 13.9999 0 13.9999 14 0 14" />\r\n </defs>\r\n <g id="icon-ftp_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-ftp_ICON/FTP\u914d\u7f6e" transform="translate(0.142857, 0.000000)">\r\n <mask id="icon-ftp_mask-2" fill="white">\r\n <use xlink:href="#icon-ftp_path-1" />\r\n </mask>\r\n <g id="icon-ftp_Clip-8"></g>\r\n <path d="M11.712,0 C12.8349565,0 13.7547977,0.870102079 13.8326611,1.97319405 L13.838,2.125 L13.838,10.127 L7.383,10.127 L7.383,11.647 L10.396,11.647 C10.5185714,11.647 10.6205714,11.7314898 10.6472128,11.8450525 L10.654,11.904 L10.654,12.067 L13.811,12.067 C13.8976667,12.067 13.9711389,12.1260278 13.9932222,12.2064676 L14,12.257 L14,12.878 C14,12.9646667 13.9409722,13.0381389 13.8611111,13.0602222 L13.811,13.067 L10.654,13.067 L10.654,13.231 C10.654,13.3527143 10.5695102,13.4545918 10.4553178,13.4812157 L10.396,13.488 L3.523,13.488 C3.40042857,13.488 3.29842857,13.4035102 3.27178717,13.2899475 L3.265,13.231 L3.265,13.067 L0.19,13.067 C0.1025,13.067 0.0288888889,13.0079722 0.00678240741,12.9281111 L0,12.878 L0,12.257 C0,12.1695 0.0590277778,12.0958889 0.139467593,12.0737824 L0.19,12.067 L3.265,12.067 L3.265,11.904 C3.265,11.7822857 3.3494898,11.6804082 3.46368222,11.6537843 L3.523,11.647 L6.536,11.647 L6.536,10.127 L2.207,10.127 C1.08404348,10.127 0.165117202,9.25598299 0.0873333607,8.15368661 L0.082,8.002 L0.082,0 L11.712,0 Z M11.712,1.062 L1.145,1.062 L1.145,8.002 C1.145,8.54893333 1.55964889,9.00004444 2.09218815,9.05776178 L2.208,9.064 L12.775,9.064 L12.775,2.125 C12.775,1.57713333 12.3603511,1.12596 11.8278119,1.06823852 L11.712,1.062 Z M8.0968,3.0933 L8.0968,3.7793 L7.0318,3.7793 L7.0318,7.0283 L6.2358,7.0283 L6.2358,3.7793 L5.1748,3.7793 L5.1748,3.0933 L8.0968,3.0933 Z M10.0069,3.0938 C10.9349,3.0938 11.3989,3.5078 11.3989,4.3388 C11.3989,4.7418 11.2589,5.0658 10.9779,5.3078 C10.7387571,5.51608571 10.4467163,5.63106531 10.1036668,5.65336851 L9.9279,5.6568 L9.5179,5.6568 L9.5179,7.0278 L8.7239,7.0278 L8.7239,3.0938 L10.0069,3.0938 Z M4.6538,3.0938 L4.6538,3.7788 L3.3228,3.7788 L3.3228,4.7908 L4.5478,4.7908 L4.5478,5.4768 L3.3228,5.4768 L3.3228,7.0278 L2.5288,7.0278 L2.5288,3.0938 L4.6538,3.0938 Z M9.9339,3.7288 L9.5179,3.7288 L9.5179,5.0068 L9.9239,5.0068 C10.4769,5.0068 10.7529,4.7908 10.7529,4.3598 C10.7529,3.97388333 10.5235042,3.76526528 10.0647125,3.73317558 L9.9339,3.7288 Z" id="icon-ftp_\u5f62\u72b6" fill="#595959" mask="url(#icon-ftp_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/fwdm.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-fwdm",use:"icon-fwdm-usage",viewBox:"0 0 14 13",content:'<symbol viewBox="0 0 14 13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-fwdm">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u670d\u52a1\u4ee3\u7801</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-fwdm_\u6a21\u578b\u63a8\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-fwdm_\u63a8\u7406-\u8be6\u7ec6\u4fe1\u606f" transform="translate(-17.000000, -226.000000)" fill="#595959">\r\n <g id="icon-fwdm_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-fwdm_\u63a8\u7406">\r\n <g transform="translate(0.000000, 32.000000)">\r\n <g id="icon-fwdm_icon/\u670d\u52a1\u4ee3\u7801" transform="translate(17.000000, 134.000000)">\r\n <g id="icon-fwdm_\u5f62\u72b6">\r\n <path fill="#595959" d="M13.296,0.0001 C13.6498333,0.0001 13.9431667,0.263106944 13.9895984,0.605029977 L13.996,0.7001 L13.996,11.8961 C13.996,12.25085 13.7321528,12.5434194 13.39086,12.5897175 L13.296,12.5961 L0.7,12.5961 C0.34525,12.5961 0.0526805556,12.3330931 0.00638252315,11.99117 L4.70734562e-14,11.8961 L4.70734562e-14,0.7001 C4.70734562e-14,0.34535 0.263006944,0.0527805556 0.604929977,0.00648252315 L0.7,0.0001 L13.296,0.0001 Z M13.021,1.0281 L0.976,1.0281 L0.976,11.5681 L13.021,11.5681 L13.021,1.0281 Z M9.462,8.7311 L9.462,9.5601 L6.043,9.5601 L6.043,8.7311 L9.462,8.7311 Z M3.7509,5.7283 L5.5089,7.4873 L3.7509,9.2463 L3.1639,8.6593 L4.3369,7.4873 L3.1639,6.3153 L3.7509,5.7283 Z" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/fwjx.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-fwjx",use:"icon-fwjx-usage",viewBox:"0 0 14 13",content:'<symbol viewBox="0 0 14 13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-fwjx">\r\n <title>\u63a8\u7406\u955c\u50cf\u7ba1\u7406</title>\r\n <defs>\r\n <polygon id="icon-fwjx_path-1" points="0 0 13.99977 0 13.99977 14 0 14" />\r\n </defs>\r\n <g id="icon-fwjx_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-fwjx_\u63a8\u7406\u955c\u50cf\u7ba1\u7406" transform="translate(0.000000, -1.000000)">\r\n <mask id="icon-fwjx_mask-2" fill="white">\r\n <use xlink:href="#icon-fwjx_path-1" />\r\n </mask>\r\n <g id="icon-fwjx_Clip-8"></g>\r\n <path d="M10.7133756,5.3763 C10.8243756,5.3573 10.9383756,5.3773 11.0353756,5.4353 C11.0353756,5.4353 11.7663756,5.8913 12.1143756,6.8223 C13.1313756,6.7213 13.8373756,7.2163 13.8373756,7.2163 C13.9753756,7.3343 14.0323756,7.5223 13.9823756,7.6973 C13.9823756,7.6973 13.8663756,8.1193 13.4873756,8.4863 C13.1553756,8.8073 12.5673756,9.0673 11.7933756,9.1133 C11.6593756,9.4163 11.5053756,9.7023 11.3413756,9.9743 C11.2953756,10.0513 11.2393756,10.1493 11.2393756,10.1493 C9.84137558,12.3243 7.51037558,13.4333 4.81737558,13.4333 C3.06337558,13.4333 1.83037558,12.7663 1.06637558,11.8863 C0.975375581,11.7823 0.896375581,11.6753 0.818375581,11.5653 C0.818375581,11.5653 0.604375581,11.2383 0.599375581,11.2303 C0.423375581,10.9282231 0.21229274,10.3526432 0.150298202,10.1742099 L0.132375581,10.1203 C0.0393755807,9.7613 0.000375580722,9.4053 0.000375580722,9.0843 C-0.00262441928,8.9563 0.0123755807,8.8283 0.0443755807,8.7043 C0.0573755807,8.6553 0.0703755807,8.5973 0.0883755807,8.5593 C0.106375581,8.5203 0.147375581,8.4713 0.147375581,8.4713 C0.232375581,8.3553 0.367375581,8.2853 0.511375581,8.2813 L0.511375581,8.2813 L8.93337558,8.2813 C9.27137558,8.2853 9.60637558,8.2103 9.91137558,8.0623 C9.98737558,8.0243 10.0423756,7.9823 10.1013756,7.9453 C10.0183756,7.7373 9.88737558,7.5473 9.86737558,7.3333 C9.81437558,6.7473 9.96437558,6.2823 10.1293756,5.9753 C10.2963756,5.6683 10.5093756,5.4793 10.5093756,5.4793 C10.5673756,5.4283 10.6383756,5.3933 10.7133756,5.3763 Z M10.9183756,6.5593 C10.8463756,6.7263 10.7713756,6.9173 10.8013756,7.2453 C10.8243756,7.4973 10.8953756,7.6953 11.0193756,7.8583 C11.1013756,7.9633 11.1333756,8.0993 11.1073756,8.2303 C11.0833756,8.3613 11.0033756,8.4763 10.8883756,8.5433 C10.9123756,8.5303 10.8283756,8.5913 10.7273756,8.6603 C10.6273756,8.7303 10.4873756,8.8123 10.3193756,8.8943 C9.88737558,9.1063 9.41337558,9.2163 8.93337558,9.2153 L8.93337558,9.2153 L0.963375581,9.2153 C0.974375581,9.3973 0.998375581,9.5773 1.03737558,9.7553 L1.03737558,9.7553 L1.13937558,10.1493 C1.20637558,10.3573 1.31437558,10.5923 1.40237558,10.7483 C1.77137558,11.4723 2.23337558,11.7263 2.23337558,11.7263 C2.82137558,12.1833 3.64437558,12.4993 4.81737558,12.4993 C7.05537558,12.4993 8.91437558,11.7403 10.1443756,10.1493 L10.1443756,10.1493 L10.3193756,9.9163 C10.6093756,9.5013 10.8543756,9.0353 11.0633756,8.5153 C11.1383756,8.3323 11.3193756,8.2153 11.5163756,8.2233 C12.2593756,8.2513 12.6163756,8.0203 12.8303756,7.8143 C12.8643756,7.7813 12.8483756,7.7873 12.8733756,7.7563 C12.6563756,7.6923 12.3483756,7.6553 11.9253756,7.7703 L11.9253756,7.7703 L11.8893756,7.7783 C11.6353756,7.8273 11.3903756,7.6603 11.3413756,7.4053 C11.2683756,7.0173 11.0863756,6.7493 10.9183756,6.5593 L10.9183756,6.5593 Z M3.18777558,9.8406 C3.54577558,9.8406 3.83777558,10.1326 3.83777558,10.4906 C3.83777558,10.8496 3.54577558,11.1416 3.18777558,11.1416 C2.82877558,11.1416 2.53677558,10.8496 2.53677558,10.4906 C2.53677558,10.1326 2.82877558,9.8406 3.18777558,9.8406 Z M3.18777558,10.1966 C3.02577558,10.1966 2.89377558,10.3286 2.89377558,10.4906 C2.89377558,10.6526 3.02577558,10.7846 3.18777558,10.7846 C3.34977558,10.7846 3.48177558,10.6526 3.48177558,10.4906 C3.48177558,10.3286 3.34977558,10.1966 3.18777558,10.1966 Z M2.32817558,5.3784 L3.54817558,6.0124 L3.54817558,7.3394 L2.37917558,8.0024 L1.21017558,7.3394 L1.21017558,6.0124 L2.32817558,5.3784 Z M5.13137558,5.3784 L6.35137558,6.0124 L6.35137558,7.3394 L5.18237558,8.0024 L4.01337558,7.3394 L4.01337558,6.0124 L5.13137558,5.3784 Z M7.93417558,5.3784 L9.15417558,6.0124 L9.15417558,7.3394 L7.98517558,8.0024 L6.81617558,7.3394 L6.81617558,6.0124 L7.93417558,5.3784 Z M3.20017558,6.4254 L2.50217558,6.8324 L2.50617558,7.5404 L3.20017558,7.1404 L3.20017558,6.4254 Z M6.00337558,6.4254 L5.30537558,6.8324 L5.30937558,7.5404 L6.00337558,7.1404 L6.00337558,6.4254 Z M8.80617558,6.4254 L8.10817558,6.8324 L8.11217558,7.5404 L8.80617558,7.1404 L8.80617558,6.4254 Z M1.55817558,6.4414 L1.55817558,7.1404 L2.20417558,7.5064 L2.20417558,6.8014 L1.55817558,6.4414 Z M4.36137558,6.4414 L4.36137558,7.1404 L5.00737558,7.5064 L5.00737558,6.8014 L4.36137558,6.4414 Z M7.16417558,6.4414 L7.16417558,7.1404 L7.81117558,7.5064 L7.81117558,6.8014 L7.16417558,6.4414 Z M7.98517558,5.7474 L7.32717558,6.1194 L7.98617558,6.4984 L8.64117558,6.1184 L7.98517558,5.7474 Z M2.37917558,5.7474 L1.72117558,6.1194 L2.38017558,6.4984 L3.03517558,6.1184 L2.37917558,5.7474 Z M5.18237558,5.7474 L4.52437558,6.1194 L5.18337558,6.4984 L5.83837558,6.1184 L5.18237558,5.7474 Z M3.72957558,3.1894 L4.94957558,3.8234 L4.94957558,5.1504 L3.78057558,5.8134 L2.61157558,5.1504 L2.61157558,3.8234 L3.72957558,3.1894 Z M6.53277558,3.1894 L7.75277558,3.8234 L7.75277558,5.1504 L6.58377558,5.8134 L5.41477558,5.1504 L5.41477558,3.8234 L6.53277558,3.1894 Z M4.60157558,4.2364 L3.90357558,4.6424 L3.90757558,5.3514 L4.60157558,4.9504 L4.60157558,4.2364 Z M7.40477558,4.2364 L6.70677558,4.6424 L6.71077558,5.3514 L7.40477558,4.9504 L7.40477558,4.2364 Z M2.95957558,4.2524 L2.95957558,4.9504 L3.60657558,5.3174 L3.60657558,4.6124 L2.95957558,4.2524 Z M5.76277558,4.2524 L5.76277558,4.9504 L6.40977558,5.3174 L6.40977558,4.6124 L5.76277558,4.2524 Z M3.78057558,3.5574 L3.12257558,3.9304 L3.78157558,4.3094 L4.43657558,3.9294 L3.78057558,3.5574 Z M6.58377558,3.5574 L5.92577558,3.9304 L6.58477558,4.3094 L7.23977558,3.9294 L6.58377558,3.5574 Z M5.13137558,1 L6.35137558,1.634 L6.35137558,2.961 L5.18237558,3.624 L4.01237558,2.961 L4.01237558,1.634 L5.13137558,1 Z M6.00337558,2.047 L5.30537558,2.454 L5.30937558,3.163 L6.00337558,2.761 L6.00337558,2.047 Z M4.36137558,2.063 L4.36137558,2.761 L5.00737558,3.129 L5.00737558,2.423 L4.36137558,2.063 Z M5.18237558,1.368 L4.52437558,1.741 L5.18337558,2.12 L5.83737558,1.74 L5.18237558,1.368 Z" id="icon-fwjx_\u5f62\u72b6\u7ed3\u5408" fill="#595959" mask="url(#icon-fwjx_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/home.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-home",use:"icon-home-usage",viewBox:"0 0 13 12",content:'<symbol viewBox="0 0 13 12" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-home">\r\n <title>icon/\u9879\u76ee\u6982\u8ff0</title>\r\n <g id="icon-home_\u65b0\u624b\u6307\u5f15\u4fee\u6539" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-home_\u6a21\u578b\u63a8\u7406-\u67e5\u770b\u7248\u672c\u5907\u4efd-19" transform="translate(-16.000000, -106.000000)" fill="#595959">\r\n <g id="icon-home_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-home_\u7f16\u7ec4" transform="translate(16.000000, 45.000000)">\r\n <g id="icon-home_icon/home" transform="translate(0.000000, 0.500000)">\r\n <path d="M5.83625606,0.681847812 C6.12339259,0.39547775 6.58812046,0.39547775 6.87525699,0.681847812 L6.87525699,0.681847812 L12.3583403,6.16347839 C12.5685277,6.3736124 12.6314288,6.68967299 12.5177106,6.96426942 C12.4039924,7.23886585 12.1360519,7.4179155 11.8388398,7.41792092 L11.8388398,7.41792092 L10.7880717,7.41792092 L10.7880717,11.8423913 C10.7880717,12.187392 10.5083934,12.4670703 10.1633927,12.4670703 L10.1633927,12.4670703 L2.5414377,12.4670703 C2.19643703,12.4670703 1.91675873,12.187392 1.91675873,11.8423913 L1.91675873,11.8423913 L1.91675873,7.41792092 L0.873254304,7.41792092 C0.576042205,7.4179155 0.308101786,7.23886585 0.194383566,6.96426942 C0.0806653469,6.68967299 0.14356648,6.3736124 0.353753842,6.16347839 L0.353753842,6.16347839 Z M7.07094131,8.71521933 L5.63359858,8.71521933 L5.63359858,11.3051674 L7.07094131,11.3051674 L7.07094131,8.71521933 Z M6.3559018,1.80510776 L1.9039746,6.25587277 L2.45354682,6.25587277 C2.79854748,6.25587277 3.07822578,6.53555107 3.07822578,6.88055173 L3.07822578,6.88055173 L3.07822578,11.3051674 L4.61696988,11.3051674 L4.61696988,8.35232443 C4.61696988,7.99127722 4.90965648,7.69859063 5.27070369,7.69859063 L5.27070369,7.69859063 L7.43354565,7.69859063 C7.79459286,7.69859063 8.08727946,7.99127722 8.08727946,8.35232443 L8.08727946,8.35232443 L8.08727946,11.3051674 L9.62587828,11.3051674 L9.62587828,6.88084228 C9.62587828,6.53584161 9.90555658,6.25616331 10.2505572,6.25616331 L10.2505572,6.25616331 L10.807829,6.25616331 L6.3559018,1.80510776 Z" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/jcjxgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-jcjxgl",use:"icon-jcjxgl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-jcjxgl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u57fa\u7840\u955c\u50cf\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-jcjxgl_\u6a21\u578b\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-jcjxgl_\u6a21\u578b\u7ba1\u7406-\u57fa\u7840\u955c\u50cf\u7ba1\u7406" transform="translate(-16.000000, -145.000000)">\r\n <g id="icon-jcjxgl_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-jcjxgl_icon/\u57fa\u7840\u955c\u50cf\u7ba1\u7406">\r\n <g transform="translate(16.000000, 85.000000)">\r\n <g>\r\n <rect id="icon-jcjxgl_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M6.598,11.928 L7.4,11.928 L7.4,2 L6.598,2 L6.598,11.928 Z M1.15463195e-14,11.927 L5.883,11.928 L5.883,3.614 L1.15463195e-14,11.927 Z M1.595,11.123 L5.13,6.133 L5.13,11.124 L1.595,11.123 Z M8.115,11.927 L13.999,11.926 L8.115,3.621 L8.115,11.927 Z M8.869,11.124 L8.869,6.138 L12.399,11.125 L8.869,11.124 Z" id="icon-jcjxgl_Fill-1" fill="#595959" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/jsgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-jsgl",use:"icon-jsgl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-jsgl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u89d2\u8272\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-jsgl_\u7528\u6237\u4e2d\u5fc3" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-jsgl_\u7528\u6237\u4e2d\u5fc3-\u9879\u76ee\u5217\u8868" transform="translate(-16.000000, -185.000000)">\r\n <g id="icon-jsgl_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-jsgl_icon/\u89d2\u8272\u7ba1\u7406">\r\n <g transform="translate(16.000000, 125.000000)">\r\n <g>\r\n <rect id="icon-jsgl_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M4.732,7.30818493 C7.346,7.30818493 9.464,9.86318493 9.464,12.2121849 C9.464,12.4541849 9.268,12.6501849 9.027,12.6501849 L9.011,12.6471849 L9.011,12.6501849 L0.423,12.6501849 C0.193,12.6301849 0,12.4441849 0,12.2121849 C0,9.86318493 2.119,7.30818493 4.732,7.30818493 Z M4.744,8.19418493 C2.89117241,8.19418493 1.36648751,9.8404917 0.988116118,11.4625607 L0.952,11.6361849 L8.525,11.6361849 C8.219,9.96018493 6.653,8.19418493 4.744,8.19418493 Z M13.5516,9.66828493 C13.7936,9.66828493 13.9886,9.86328493 13.9886,10.1052849 C13.9886,10.3301738 13.8345259,10.5100257 13.6303229,10.5472163 L13.5516,10.5542849 L10.6736,10.5542849 C10.4316,10.5542849 10.2356,10.3582849 10.2356,10.1052849 C10.2356,9.89017381 10.3904642,9.71219851 10.5948428,9.67530413 L10.6736,9.66828493 L13.5516,9.66828493 Z M13.5629,7.00858493 C13.8049,7.00858493 13.9999,7.20458493 13.9999,7.44558493 C13.9999,7.6713627 13.8458259,7.8505232 13.6416229,7.88754926 L13.5629,7.89458493 L9.4989,7.89458493 C9.2459,7.89458493 9.0499,7.69958493 9.0619,7.44558493 C9.0619,7.2313627 9.21597407,7.05269604 9.42017709,7.01563705 L9.4989,7.00858493 L13.5629,7.00858493 Z M4.7323,2.00008493 C6.0333,1.98908493 7.0923,3.04808493 7.0923,4.34908493 C7.0923,5.66108493 6.0333,6.72008493 4.7323,6.72008493 C3.4313,6.72008493 2.3723,5.66108493 2.3723,4.36108493 C2.3723,3.05908493 3.4313,2.00008493 4.7323,2.00008493 Z M4.7323,2.88708493 C3.9153,2.88708493 3.2583,3.55408493 3.2583,4.36108493 C3.2583,5.16608493 3.9153,5.83408493 4.7323,5.83408493 C5.5493,5.83408493 6.2063,5.16608493 6.2063,4.36108493 C6.2063,3.55408493 5.5383,2.88708493 4.7323,2.88708493 Z M13.5627,4.34868493 C13.8047,4.34868493 14.0007,4.54468493 14.0007,4.78668493 C14.0007,5.01157381 13.8458358,5.19142567 13.6414572,5.22861634 L13.5627,5.23568493 L8.6127,5.23568493 C8.3597,5.23568493 8.1637,5.03968493 8.1757,4.78668493 C8.1757,4.57157381 8.32977407,4.39280838 8.53397709,4.35573842 L8.6127,4.34868493 L13.5627,4.34868493 Z" id="icon-jsgl_\u5f62\u72b6" fill="#595959" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/jtpz.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-jtpz",use:"icon-jtpz-usage",viewBox:"0 0 14 12",content:'<symbol viewBox="0 0 14 12" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-jtpz">\r\n <title>ICON/\u4e5d\u5929</title>\r\n <defs>\r\n <polygon id="icon-jtpz_path-1" points="0 0 14 0 14 14 0 14" />\r\n </defs>\r\n <g id="icon-jtpz_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-jtpz_ICON/\u4e5d\u5929" transform="translate(-0.000000, -1.000000)">\r\n <mask id="icon-jtpz_mask-2" fill="white">\r\n <use xlink:href="#icon-jtpz_path-1" />\r\n </mask>\r\n <g id="icon-jtpz_Clip-6"></g>\r\n <path d="M12.577,1 C13.3911111,1 14.0616142,1.62527469 14.1336019,2.42091667 L14.14,2.563 L14.14,11.362 C14.14,12.1761111 13.5147253,12.8466142 12.7190833,12.9186019 L12.577,12.925 L1.563,12.925 C0.748888889,12.925 0.0783858025,12.2997253 0.00639814815,11.5040833 L0,11.362 L0,2.563 C0,1.74888889 0.625274691,1.0783858 1.42091667,1.00639815 L1.563,1 L12.577,1 Z M13.138,4.311 L0.991,4.37 L1.001,11.362 C1.001,11.6401 1.20512,11.87203 1.471934,11.915635 L1.563,11.923 L12.577,11.923 C12.8551,11.923 13.08703,11.71888 13.130635,11.452795 L13.138,11.362 L13.138,4.311 Z M4.3338,5.244 C4.3988,5.244 4.4628,5.266 4.5128,5.307 C4.5718,5.355 4.6098,5.423 4.6168,5.499 C4.62213333,5.54966667 4.61413333,5.59944444 4.59398519,5.64448148 L4.5548,5.708 L2.6908,8.009 L4.5548,10.223 C4.6038,10.282 4.6258,10.356 4.6168,10.432 C4.6098,10.508 4.5718,10.576 4.5128,10.624 C4.4618,10.665 4.3998,10.687 4.3338,10.687 C4.2693,10.687 4.2076125,10.665625 4.15759688,10.6266719 L4.1118,10.582 L2.1378,8.145 C2.0698,8.0618 2.0562,7.94852 2.096488,7.853288 L2.1368,7.786 L4.1118,5.349 C4.1668,5.282 4.2478,5.244 4.3338,5.244 Z M10.1256,5.2434 C10.19085,5.2434 10.252725,5.264775 10.3027875,5.30372813 L10.3486,5.3484 L12.3226,7.7864 C12.3898,7.8696 12.40388,7.98288 12.363304,8.078112 L12.3226,8.1454 L10.3486,10.5814 C10.2926,10.6494 10.2126,10.6874 10.1266,10.6874 C10.0606,10.6874 9.9986,10.6654 9.9466,10.6244 C9.8876,10.5764 9.8506,10.5074 9.8426,10.4314 C9.83726667,10.3814 9.84526667,10.3318444 9.86541481,10.2865852 L9.9046,10.2224 L11.7696,7.9214 L9.9046,5.7084 C9.8056,5.5864 9.8246,5.4064 9.9466,5.3074 C9.9976,5.2664 10.0616,5.2434 10.1256,5.2434 Z M5.6203,6.4912 L5.615425,6.805575 L5.615425,6.805575 L5.6053,7.1192 L6.4743,7.1192 L6.4743,8.7402 C6.4743,8.8502 6.48263333,8.88103333 6.52707778,8.88825556 L6.5583,8.8902 L6.7483,8.8902 C6.8203,8.8902 6.8323,8.8002 6.8443,8.3912 C6.9283,8.4602 7.0783,8.5262 7.1773,8.5502 C7.1473,9.01474545 7.0726719,9.19912562 6.84973426,9.22881007 L6.7783,9.2332 L6.4923,9.2332 C6.2106,9.2332 6.11682,9.13519 6.100881,8.8444 L6.0983,8.7402 L6.0983,7.4712 L5.5813,7.4712 C5.5123,8.1932 5.3113,8.8632 4.6643,9.2992 C4.6043,9.2052 4.4873,9.0822 4.3853,9.0162 C4.91421667,8.67978333 5.10450139,8.1795125 5.17721725,7.6239934 L5.1943,7.4712 L4.4693,7.4712 L4.4693,7.1192 L5.2123,7.1192 L5.21755,6.805575 L5.21755,6.805575 L5.2183,6.4912 L5.6203,6.4912 Z M9.9641,6.6832 L9.9641,7.0502 L8.9421,7.0502 L8.940225,7.47045 L8.940225,7.47045 L8.9361,7.5852 L10.0811,7.5852 L10.0811,7.9522 L9.0321,7.9522 C9.2431,8.4302 9.6271,8.7812 10.2141,8.9352 C10.1261,9.0102 10.0181,9.1662 9.9671,9.2682 C9.4021,9.0882 9.0381,8.7392 8.7861,8.2462 C8.6201,8.6462 8.2811,9.0252 7.6041,9.2782 C7.5571,9.1872 7.4481,9.0372 7.3701,8.9682 C8.00626667,8.74178333 8.3071625,8.39772778 8.4476353,8.04772025 L8.4821,7.9522 L7.4751,7.9522 L7.4751,7.5852 L8.5571,7.5852 L8.56385,7.46745 L8.56385,7.46745 L8.5661,7.3542 L8.5661,7.0502 L7.5831,7.0502 L7.5831,6.6832 L9.9641,6.6832 Z M12.577,2.001 L1.563,2.001 C1.284,2.001 1.05198,2.20512 1.008366,2.471934 L1.001,2.563 L1.001,3.81 L13.208,3.8 L13.138,2.563 C13.138,2.284 12.93388,2.05198 12.667795,2.008366 L12.577,2.001 Z M4.8355,2.6523 C5.0415,2.6523 5.2075,2.8193 5.2075,3.0243 C5.2075,3.2293 5.0415,3.3963 4.8355,3.3963 C4.6295,3.3963 4.4635,3.2293 4.4635,3.0243 C4.4635,2.8193 4.6295,2.6523 4.8355,2.6523 Z M3.3218,2.6523 C3.5278,2.6523 3.6938,2.8193 3.6938,3.0243 C3.6938,3.2293 3.5278,3.3963 3.3218,3.3963 C3.1168,3.3963 2.9498,3.2293 2.9498,3.0243 C2.9498,2.8193 3.1168,2.6523 3.3218,2.6523 Z M1.8086,2.6523 C2.0146,2.6523 2.1806,2.8193 2.1806,3.0243 C2.1806,3.2293 2.0146,3.3963 1.8086,3.3963 C1.6026,3.3963 1.4366,3.2293 1.4366,3.0243 C1.4366,2.8193 1.6026,2.6523 1.8086,2.6523 Z" id="icon-jtpz_\u5f62\u72b6" fill="#595959" mask="url(#icon-jtpz_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/kgpz.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-kgpz",use:"icon-kgpz-usage",viewBox:"0 0 13 13",content:'<symbol viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-kgpz">\r\n <title>ICON/\u5e94\u7528\u7ba1\u7406</title>\r\n <defs>\r\n <polygon id="icon-kgpz_path-1" points="0.474886459 0.434298752 14.4748865 0.434298752 14.4748865 14.4342988 0.474886459 14.4342988" />\r\n </defs>\r\n <g id="icon-kgpz_\u65b0\u624b\u6307\u5f15\u4fee\u6539" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-kgpz_\u6a21\u578b\u63a8\u7406-\u67e5\u770b\u7248\u672c\u5907\u4efd-19" transform="translate(-16.000000, -146.000000)">\r\n <g id="icon-kgpz_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-kgpz_ICON/\u5e94\u7528\u7ba1\u7406" transform="translate(15.000000, 85.000000)">\r\n <mask id="icon-kgpz_mask-2" fill="white">\r\n <use xlink:href="#icon-kgpz_path-1" />\r\n </mask>\r\n <g id="icon-kgpz_Clip-2"></g>\r\n <path d="M13.0627,12.7044 C13.0627,12.8974 12.9077,13.0524 12.7147,13.0524 L9.2607,13.0524 C9.0677,13.0524 8.9127,12.8974 8.9127,12.7044 L8.9127,9.2504 C8.9127,9.0574 9.0677,8.9024 9.2607,8.9024 L12.7147,8.9024 C12.9077,8.9024 13.0627,9.0574 13.0627,9.2504 L13.0627,12.7044 Z M13.3027,7.9664 L8.6747,7.9664 C8.2897,7.9664 7.9787,8.2784 7.9787,8.6624 L7.9787,13.2904 C7.9787,13.6754 8.2897,13.9874 8.6747,13.9874 L13.3027,13.9874 C13.6867,13.9874 13.9987,13.6754 13.9987,13.2904 L13.9987,8.6624 C13.9987,8.2784 13.6867,7.9664 13.3027,7.9664 L13.3027,7.9664 Z M6.0857,12.7104 C6.0857,12.9034 5.9307,13.0584 5.7377,13.0584 L2.2837,13.0584 C2.0907,13.0584 1.9357,12.9034 1.9357,12.7104 L1.9357,9.2564 C1.9357,9.0634 2.0907,8.9084 2.2837,8.9084 L5.7377,8.9084 C5.9307,8.9084 6.0857,9.0634 6.0857,9.2564 L6.0857,12.7104 Z M6.3247,7.9734 L1.6967,7.9734 C1.3117,7.9734 0.9997,8.2854 0.9997,8.6694 L0.9997,13.2974 C0.9997,13.6824 1.3117,13.9944 1.6967,13.9944 L6.3247,13.9944 C6.7087,13.9944 7.0207,13.6824 7.0207,13.2974 L7.0207,8.6694 C7.0207,8.2844 6.7087,7.9734 6.3247,7.9734 L6.3247,7.9734 Z M6.0857,5.7384 C6.0857,5.9314 5.9307,6.0864 5.7377,6.0864 L2.2837,6.0864 C2.0907,6.0864 1.9357,5.9314 1.9357,5.7384 L1.9357,2.2844 C1.9357,2.0914 2.0907,1.9354 2.2837,1.9354 L5.7377,1.9354 C5.9307,1.9354 6.0857,2.0914 6.0857,2.2844 L6.0857,5.7384 Z M6.3247,1.0014 L1.6967,1.0014 C1.3117,1.0014 0.9997,1.3134 0.9997,1.6974 L0.9997,6.3254 C0.9997,6.7104 1.3117,7.0214 1.6967,7.0214 L6.3247,7.0214 C6.7087,7.0214 7.0207,6.7104 7.0207,6.3254 L7.0207,1.6974 C7.0207,1.3134 6.7097,1.0014 6.3247,1.0014 L6.3247,1.0014 Z M10.9867,0.9994 L10.9787,0.9994 C9.3137,0.9994 7.9647,2.3494 7.9647,4.0134 C7.9647,5.6774 9.3137,7.0264 10.9787,7.0264 L10.9867,7.0264 C12.6507,7.0264 13.9997,5.6774 13.9997,4.0134 C13.9997,2.3494 12.6507,0.9994 10.9867,0.9994 L10.9867,0.9994 Z M10.9867,1.9284 C11.5437,1.9284 12.0677,2.1444 12.4607,2.5394 C12.8547,2.9324 13.0717,3.4554 13.0717,4.0134 C13.0717,4.5704 12.8557,5.0944 12.4607,5.4874 C12.0677,5.8804 11.5437,6.0984 10.9867,6.0984 L10.9787,6.0984 C10.4207,6.0984 9.8967,5.8814 9.5037,5.4874 C9.1107,5.0944 8.8937,4.5704 8.8937,4.0134 C8.8937,3.4554 9.1097,2.9324 9.5037,2.5394 C9.8967,2.1454 10.4207,1.9284 10.9787,1.9284 L10.9867,1.9284 L10.9867,1.9284 Z" fill="#595959" fill-rule="nonzero" mask="url(#icon-kgpz_mask-2)" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/learningPiece.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-learningPiece",use:"icon-learningPiece-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-learningPiece">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u5b66\u4ef6</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-learningPiece_icon/\u5b66\u4ef6" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <rect id="icon-learningPiece_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <g transform="translate(1.000000, 1.000000)" fill="#AEAEAE">\r\n <path d="M7.93337143,7.67417143 C7.9068,7.7196 7.86908571,7.75817143 7.82365714,7.78474286 C7.72337143,7.84302857 7.62051429,7.87217143 7.51851429,7.87217143 C7.33851429,7.87217143 7.17137143,7.77617143 7.08137143,7.62017143 C6.98622857,7.45388571 6.99394286,7.2516 7.1028,7.06474286 C7.12937143,7.01931429 7.1688,6.97988571 7.21422857,6.95417143 C7.31365714,6.89588571 7.41651429,6.86588571 7.51851429,6.86588571 C7.69851429,6.86588571 7.86565714,6.96274286 7.95565714,7.1196 C8.0508,7.28502857 8.04222857,7.48731429 7.93337143,7.67417143 M9.34508571,4.10502857 C9.37165714,4.0596 9.41108571,4.02017143 9.45651429,3.99445714 C9.5568,3.93531429 9.6588,3.90617143 9.7608,3.90617143 C9.9408,3.90617143 10.1088,4.00302857 10.1979429,4.15902857 C10.2930857,4.32531429 10.2853714,4.5276 10.1756571,4.71445714 C10.1490857,4.75988571 10.1113714,4.79845714 10.0659429,4.82417143 C9.96565714,4.88331429 9.8628,4.91245714 9.7608,4.91245714 C9.5808,4.91245714 9.41365714,4.8156 9.32451429,4.6596 C9.22851429,4.49417143 9.23708571,4.29102857 9.34508571,4.10502857 M4.95308571,5.65217143 C4.8528,5.7096 4.74994286,5.7396 4.64794286,5.7396 L4.64794286,5.7396 C4.4688,5.7396 4.3008,5.64274286 4.2108,5.48674286 C4.11565714,5.32045714 4.12422857,5.11902857 4.23308571,4.93217143 C4.2588,4.88674286 4.29822857,4.84731429 4.34365714,4.82074286 C4.44394286,4.76331429 4.54594286,4.73331429 4.64794286,4.73331429 C4.82794286,4.73331429 4.99508571,4.83017143 5.08508571,4.98617143 C5.18022857,5.15245714 5.17251429,5.35474286 5.0628,5.5416 C5.03708571,5.58702857 4.99851429,5.62474286 4.95308571,5.65217143 M2.7108,7.76417143 C2.68422857,7.8096 2.64651429,7.84817143 2.60108571,7.87388571 C2.5008,7.93302857 2.39794286,7.96217143 2.29594286,7.96217143 C2.11594286,7.96217143 1.9488,7.86531429 1.8588,7.70931429 C1.76365714,7.54388571 1.77222857,7.34074286 1.88022857,7.15474286 C1.9068,7.10931429 1.94622857,7.06988571 1.9908,7.04417143 C2.09194286,6.98502857 2.19394286,6.95588571 2.29594286,6.95588571 C2.47594286,6.95588571 2.64308571,7.05274286 2.73308571,7.2096 C2.82822857,7.37502857 2.82051429,7.57731429 2.7108,7.76417143 M8.44422857,6.72445714 L9.40251429,5.48074286 C9.51737143,5.51931429 9.63651429,5.54674286 9.7608,5.54674286 C9.98194286,5.54674286 10.1979429,5.48502857 10.4053714,5.36417143 C10.5339429,5.28874286 10.6410857,5.1816 10.7156571,5.05302857 C10.9488,4.65531429 10.9599429,4.21388571 10.7482286,3.84445714 C10.5450857,3.49131429 10.1670857,3.27188571 9.7608,3.27188571 C9.54051429,3.27188571 9.32451429,3.3336 9.11794286,3.45445714 C8.98851429,3.52902857 8.88137143,3.63702857 8.80594286,3.7656 C8.57365714,4.16417143 8.56165714,4.60474286 8.77422857,4.97502857 C8.80422857,5.02645714 8.84451429,5.06845714 8.88137143,5.11474286 L7.94708571,6.32674286 C7.81165714,6.27102857 7.66851429,6.23245714 7.51851429,6.23245714 C7.29822857,6.23245714 7.08137143,6.29331429 6.87565714,6.41417143 C6.8268,6.44245714 6.78565714,6.47845714 6.74365714,6.51531429 L5.72108571,5.60931429 C5.82565714,5.28874286 5.79994286,4.9596 5.63451429,4.6716 C5.43308571,4.31845714 5.05422857,4.09988571 4.64794286,4.09988571 C4.42765714,4.09988571 4.21165714,4.16074286 4.00508571,4.2816 C3.87651429,4.35617143 3.76851429,4.46331429 3.69308571,4.59274286 C3.46937143,4.97588571 3.45565714,5.39502857 3.64251429,5.75588571 L2.89937143,6.5016 C2.72022857,6.38845714 2.51365714,6.3216 2.29594286,6.3216 C2.07565714,6.3216 1.85965714,6.38331429 1.65222857,6.50417143 C1.52365714,6.57874286 1.41565714,6.68674286 1.34108571,6.81531429 C1.10794286,7.21388571 1.0968,7.65445714 1.30937143,8.02474286 C1.51165714,8.37702857 1.88965714,8.59645714 2.29594286,8.59645714 L2.29594286,8.59645714 C2.51622857,8.59645714 2.73308571,8.53474286 2.93965714,8.41388571 C3.06822857,8.33845714 3.17622857,8.23131429 3.2508,8.10274286 C3.46594286,7.73502857 3.48308571,7.33388571 3.31851429,6.98245714 L4.0788,6.22045714 C4.24937143,6.31902857 4.4448,6.37388571 4.64794286,6.37388571 L4.64794286,6.37388571 C4.86822857,6.37388571 5.08508571,6.31217143 5.29251429,6.19131429 C5.31737143,6.17674286 5.33708571,6.15617143 5.36022857,6.13902857 L6.42222857,7.08188571 C6.34851429,7.37417143 6.38108571,7.67245714 6.53194286,7.93474286 C6.73422857,8.28702857 7.11222857,8.50645714 7.51851429,8.50645714 C7.7388,8.50645714 7.95565714,8.44474286 8.16308571,8.32388571 C8.2908,8.24931429 8.39794286,8.14131429 8.47337143,8.0136 C8.70565714,7.61502857 8.71765714,7.17445714 8.50508571,6.80417143 C8.48794286,6.77502857 8.46394286,6.75188571 8.44422857,6.72445714" id="icon-learningPiece_Fill-1" />\r\n <path d="M11.1430286,8.57142857e-05 L9.07902857,8.57142857e-05 L9.07902857,0.00522857143 C9.07645714,0.00522857143 9.07388571,0.00351428571 9.07131429,0.00351428571 C8.8356,0.00351428571 8.6436,0.194657143 8.6436,0.430371429 C8.6436,0.666085714 8.8356,0.857228571 9.07131429,0.857228571 C9.07388571,0.857228571 9.07645714,0.856371429 9.07902857,0.856371429 L9.07902857,0.857228571 L11.1430286,0.857228571 L11.1430286,2.92122857 L11.1447429,2.92122857 C11.1473143,3.15522857 11.3376,3.3438 11.5716,3.3438 C11.8056,3.3438 11.9958857,3.15522857 11.9984571,2.92122857 L12.0001714,2.92122857 L12.0001714,0.857228571 C12.0001714,0.384085714 11.6161714,8.57142857e-05 11.1430286,8.57142857e-05" id="icon-learningPiece_Fill-3" />\r\n <path d="M0.00308571429,2.92225714 C0.00308571429,3.15797143 0.194228571,3.34997143 0.429942857,3.34997143 C0.665657143,3.34997143 0.857657143,3.15797143 0.857657143,2.92225714 C0.857657143,2.92225714 0.8568,2.9214 0.8568,2.9214 L0.857657143,2.9214 L0.857657143,0.8574 L2.9088,0.8574 C2.90965714,0.8574 2.91051429,0.8574 2.91222857,0.8574 C2.91308571,0.8574 2.91394286,0.8574 2.9148,0.8574 L2.9208,0.8574 L2.9208,0.855685714 C3.15222857,0.850542857 3.33908571,0.663685714 3.33908571,0.430542857 C3.33908571,0.198257143 3.15222857,0.0105428571 2.9208,0.0054 L2.9208,0.000257142857 L0.857657143,0.000257142857 C0.383657143,0.000257142857 0.000514285714,0.384257143 0.000514285714,0.8574 L0.000514285714,2.9214 L0.00308571429,2.9214 L0.00308571429,2.92225714 Z" id="icon-learningPiece_Fill-5" />\r\n <path d="M2.91942857,11.1412286 C2.916,11.1412286 2.91342857,11.1429429 2.91085714,11.1429429 L0.857142857,11.1429429 L0.857142857,9.0798 L0.857142857,9.07894286 C0.857142857,8.84322857 0.666,8.65208571 0.430285714,8.65208571 C0.194571429,8.65208571 0.00342857143,8.84322857 0.00342857143,9.07894286 L0,9.07894286 L0,11.1429429 C0,11.6160857 0.384,12.0000857 0.857142857,12.0000857 L2.92114286,12.0000857 L2.92114286,11.9949429 C3.156,11.9940857 3.34628571,11.8029429 3.34628571,11.5680857 C3.34628571,11.3323714 3.15514286,11.1412286 2.91942857,11.1412286" id="icon-learningPiece_Fill-7" />\r\n <path d="M11.5711714,8.664 C11.3397429,8.664 11.1537429,8.84914286 11.1468857,9.07885714 L11.1426,9.07885714 L11.1426,11.1428571 L9.11717143,11.1428571 C9.1146,11.1428571 9.11202857,11.1411429 9.1086,11.1411429 C9.10602857,11.1411429 9.10345714,11.1428571 9.10002857,11.1428571 L9.0786,11.1428571 L9.0786,11.1471429 C8.85745714,11.1634286 8.68174286,11.3425714 8.68174286,11.568 C8.68174286,11.7934286 8.85745714,11.9734286 9.0786,11.9888571 L9.0786,12 L11.1426,12 C11.6166,12 11.9997429,11.616 11.9997429,11.1428571 L11.9997429,9.07885714 L11.9963143,9.07885714 C11.9894571,8.84914286 11.8034571,8.664 11.5711714,8.664" id="icon-learningPiece_Fill-9" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/lxtl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-lxtl",use:"icon-lxtl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-lxtl">\r\n <title>ICON/\u79bb\u7ebf\u63a8\u7406\u4efb\u52a1</title>\r\n <defs>\r\n <polygon id="icon-lxtl_path-1" points="0 0 14 0 14 14 0 14" />\r\n </defs>\r\n <g id="icon-lxtl_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-lxtl_ICON/\u79bb\u7ebf\u63a8\u7406\u4efb\u52a1">\r\n <mask id="icon-lxtl_mask-2" fill="white">\r\n <use xlink:href="#icon-lxtl_path-1" />\r\n </mask>\r\n <g id="icon-lxtl_Clip-12"></g>\r\n <path d="M11.575,0 C12.3382941,0 12.9740311,0.580207612 13.0520185,1.31876735 L13.06,1.459 L13.06,7.31 L12.901,7.178 C12.72925,7.037 12.5141875,6.897125 12.3068594,6.77946875 L12.104,6.67 L12.109,4.29 L12.109,1.473 C12.1054444,1.217 11.9177901,1.00445679 11.6745638,0.96038546 L11.581,0.952 L1.479,0.952 C1.223,0.952 1.00808642,1.13688889 0.961381344,1.38024691 L0.952,1.474 L0.952,12.345 C0.954666667,12.6001111 1.1414321,12.8125556 1.38517421,12.8566159 L1.479,12.865 L7.176,12.865 C7.364,13.1186 7.57312,13.32868 7.801312,13.509576 L7.976,13.64 L8.227,13.817 L1.413,13.875 C0.711823529,13.8204118 0.0859411765,13.2378789 0.00806452269,12.4984008 L0,12.358 L0,1.46 C0.00752941176,0.702352941 0.592608997,0.0775778547 1.33171586,0.00669651944 L1.472,0 L11.575,0 Z M10.3143,6.8112 C12.2463,6.8112 13.8173,8.3822 13.8173,10.3142 C13.8173,12.2452 12.2463,13.8172 10.3143,13.8172 C8.3823,13.8172 6.8113,12.2452 6.8113,10.3142 C6.8113,8.3822 8.3823,6.8112 10.3143,6.8112 Z M10.3143,7.7622 C8.9073,7.7622 7.7633,8.9072 7.7633,10.3142 C7.7633,11.7202 8.9073,12.8652 10.3143,12.8652 C11.7213,12.8652 12.8653,11.7202 12.8653,10.3142 C12.8653,8.9072 11.7213,7.7622 10.3143,7.7622 Z M9.8081,8.577 C10.0409889,8.577 10.2343716,8.7452963 10.2744704,8.96670645 L10.2821,9.052 L10.2821,10.289 L11.5731,10.33 C11.8401,10.33 12.0481,10.527 12.0551,10.787 C12.0581,10.913 12.0131,11.032 11.9271,11.123 C11.8626,11.192 11.7806625,11.2385 11.6905687,11.259125 L11.5981,11.271 L9.8151,11.295 C9.57598889,11.2807778 9.38349506,11.1045802 9.34226598,10.8787805 L9.3341,10.792 L9.3341,9.052 C9.3341,8.79 9.5471,8.577 9.8081,8.577 Z M6.1893,7.15 C6.3823,7.15 6.5393,7.307 6.5393,7.5 C6.5393,7.668875 6.41909687,7.8101875 6.25975117,7.84287695 L6.1893,7.85 L2.3663,7.85 C2.1733,7.85 2.0163,7.693 2.0163,7.5 C2.0163,7.331125 2.13650312,7.1898125 2.29584883,7.15712305 L2.3663,7.15 L6.1893,7.15 Z M7.2762,5.15 C7.4692,5.15 7.6262,5.307 7.6262,5.5 C7.6262,5.668875 7.50599688,5.8101875 7.34665117,5.84287695 L7.2762,5.85 L2.3662,5.85 C2.1732,5.85 2.0162,5.693 2.0162,5.5 C2.0162,5.331125 2.13640313,5.1898125 2.29574883,5.15712305 L2.3662,5.15 L7.2762,5.15 Z M8.84775329,2.9552 C8.96518187,2.83777143 9.14432472,2.82099592 9.27938595,2.90487347 L9.34275329,2.9552 L9.98975329,3.6012 L10.6357533,2.9552 C10.7727533,2.8182 10.9937533,2.8182 11.1307533,2.9552 C11.2481819,3.07262857 11.2649574,3.25177143 11.1810798,3.38683265 L11.1307533,3.4502 L10.4847533,4.0962 L11.1307533,4.7432 C11.2677533,4.8802 11.2677533,5.1012 11.1307533,5.2382 C11.0627533,5.3062 10.9727533,5.3412 10.8837533,5.3412 C10.8162533,5.3412 10.7487533,5.3215125 10.6905345,5.28298125 L10.6357533,5.2382 L9.98975329,4.5922 L9.34275329,5.2382 C9.27475329,5.3062 9.25024971,5.31966482 9.16124971,5.31966482 C9.07124971,5.31966482 8.91575329,5.3062 8.84775329,5.2382 C8.73032472,5.12077143 8.71354921,4.94162857 8.79742676,4.80656735 L8.84775329,4.7432 L9.49375329,4.0962 L8.84775329,3.4502 C8.71075329,3.3132 8.71075329,3.0922 8.84775329,2.9552 Z M7.2762,3.15 C7.4692,3.15 7.6262,3.307 7.6262,3.5 C7.6262,3.668875 7.50599688,3.8101875 7.34665117,3.84287695 L7.2762,3.85 L2.3662,3.85 C2.1732,3.85 2.0162,3.693 2.0162,3.5 C2.0162,3.331125 2.13640313,3.1898125 2.29574883,3.15712305 L2.3662,3.15 L7.2762,3.15 Z" id="icon-lxtl_\u5f62\u72b6" fill="#595959" mask="url(#icon-lxtl_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/model.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-model",use:"icon-model-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-model"><path d="M990.579 254.137L518.623 4 51.03 249.604v508.277l462.94 251.418 29.323-15.581h0.714v-0.379L990.578 756.05V254.137z m-58.721 25.467l-210.532 95.191-212.707-119.166-199.73 110.892-200.409-90.614L518.518 60.533l413.34 219.071zM337.317 434.248l156.69 70.847V692.89l-156.69-89.951V434.248z m206.691 75.593l137.784-62.298v154.308L544.008 679.24V509.841z m-19.751-45.943L365.661 392.19l142.849-79.311 156.205 87.512-140.458 63.507zM101.03 327.412l186.287 84.229V631.89l206.69 118.652v191.019L101.03 728.139V327.412z m442.978 609.307V736.586l187.784-105.472V424.936l208.787-94.401v395.464l-396.571 210.72z" fill="#AEAEAE" /></symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/modelBase.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-modelBase",use:"icon-modelBase-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-modelBase">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u6a21\u578b\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-modelBase_\u7ec4\u4ef6" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-modelBase_icon/\u6a21\u578b\u7ba1\u7406">\r\n <g>\r\n <rect id="icon-modelBase_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M7.03307685,2.122 L3.46007685,3.789 L7.03407685,5.402 C7.06807685,5.418 7.10407685,5.427 7.14207685,5.427 C7.17807685,5.427 7.21407685,5.418 7.24707685,5.402 L10.6410768,3.82 L7.24607685,2.122 C7.21307685,2.106 7.17707685,2.098 7.14007685,2.098 C7.10307685,2.098 7.06707685,2.106 7.03307685,2.122 Z M6.92507685,6.478 L1.72607685,4.052 C1.64907685,4.015 1.59007685,3.952 1.56107685,3.872 C1.53107685,3.791 1.53607685,3.704 1.57307685,3.627 C1.60507685,3.559 1.66007685,3.505 1.72607685,3.473 L6.92607685,1.047 C6.99407685,1.016 7.06607685,1 7.14207685,1 C7.21607685,1 7.28707685,1.016 7.35607685,1.047 L12.5550768,3.473 C12.6320768,3.509 12.6910768,3.573 12.7200768,3.653 C12.7490768,3.733 12.7460768,3.82 12.7100768,3.896 C12.6770768,3.965 12.6220768,4.019 12.5550768,4.051 L7.35507685,6.478 C7.28707685,6.51 7.21607685,6.525 7.14007685,6.525 C7.06407685,6.525 6.99207685,6.51 6.92507685,6.478 Z M8.77100595,8.06571279 C8.68100595,8.10771279 8.62200595,8.19871279 8.62200595,8.29771279 L8.62200595,12.1797128 L12.0400059,10.5467128 C12.1310059,10.5047128 12.1890059,10.4147128 12.1890059,10.3157128 L12.1890059,6.51071279 L8.77100595,8.06571279 Z M7.63300595,13.3657128 L7.60400595,13.2387128 L7.60400595,7.80671279 C7.60400595,7.60771279 7.72100595,7.42571279 7.90100595,7.34371279 L12.7780059,5.12371279 L12.8840059,5.10371279 C13.0640059,5.10471279 13.2070059,5.24871279 13.2070059,5.42271279 L13.2070059,10.8047128 C13.2070059,11.0017128 13.0910059,11.1827128 12.9120059,11.2667128 L8.03700595,13.5297128 L7.92400595,13.5497128 C7.79700595,13.5497128 7.68500595,13.4777128 7.63300595,13.3657128 Z M2.01605731,10.3157128 C2.01605731,10.4147128 2.07505731,10.5047128 2.16605731,10.5467128 L5.62705731,12.1537128 L5.58505731,8.29871279 C5.58505731,8.19971279 5.52505731,8.10771279 5.43505731,8.06671279 L2.01605731,6.51071279 L2.01605731,10.3157128 Z M6.26305731,13.5507128 L6.15505731,13.5227128 L1.29405731,11.2677128 C1.11205731,11.1837128 0.997057309,11.0017128 1.00005731,10.8037128 L1.00005731,5.42171279 C1.00005731,5.24671279 1.14105731,5.10371279 1.31805731,5.10371279 L1.44405731,5.13071279 L6.30305731,7.34371279 C6.48605731,7.42471279 6.60305731,7.60671279 6.60305731,7.80671279 L6.60305731,13.2317128 C6.60305731,13.4077128 6.46105731,13.5507128 6.28505731,13.5507128 L6.26305731,13.5507128 Z" fill="#AEAEAE" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/modelInference.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-modelInference",use:"icon-modelInference-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-modelInference">\r\n <title>Icon/\u63a8\u7406\u670d\u52a1</title>\r\n <g id="icon-modelInference_\u65b0\u624b\u6307\u5f15\u4fee\u6539" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-modelInference_\u6a21\u578b\u63a8\u7406-\u67e5\u770b\u7248\u672c\u5907\u4efd-19" transform="translate(-16.000000, -265.000000)">\r\n <g id="icon-modelInference_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-modelInference_\u63a8\u7406" transform="translate(0.000000, 192.000000)">\r\n <g id="icon-modelInference_icon/\u6a21\u578b\u63a8\u7406" transform="translate(16.000000, 13.000000)">\r\n <rect id="icon-modelInference_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M11.574,11.264 L12.999,11.264 L12.999,9.833 L11.574,9.833 L11.574,11.264 Z M6.287,11.268 L7.711,11.268 L7.711,9.837 L6.287,9.837 L6.287,11.268 Z M1,11.262 L2.424,11.262 L2.424,9.831 L1,9.831 L1,11.262 Z M6.288,3.431 L7.712,3.431 L7.712,2 L6.288,2 L6.288,3.431 Z M13.499,8.833 L12.788,8.833 L12.788,6.735 C12.788,6.459 12.563,6.235 12.288,6.235 L7.5,6.235 L7.5,4.431 L8.211,4.431 C8.488,4.431 8.711,4.207 8.711,3.931 L8.711,1.5 C8.711,1.224 8.488,1 8.211,1 L5.788,1 C5.511,1 5.288,1.224 5.288,1.5 L5.288,3.931 C5.288,4.207 5.511,4.431 5.788,4.431 L6.5,4.431 L6.5,6.235 L1.711,6.235 C1.435,6.235 1.211,6.459 1.211,6.735 L1.211,8.832 L0.5,8.832 C0.224,8.832 -1.02140518e-13,9.056 -1.02140518e-13,9.332 L-1.02140518e-13,11.762 C-1.02140518e-13,12.039 0.224,12.262 0.5,12.262 L2.924,12.262 C3.201,12.262 3.424,12.039 3.424,11.762 L3.424,9.332 C3.424,9.056 3.201,8.832 2.924,8.832 L2.211,8.832 L2.211,7.235 L6.5,7.235 L6.5,8.837 L5.788,8.837 C5.511,8.837 5.288,9.061 5.288,9.337 L5.288,11.768 C5.288,12.044 5.511,12.268 5.788,12.268 L8.211,12.268 C8.488,12.268 8.711,12.044 8.711,11.768 L8.711,9.337 C8.711,9.061 8.488,8.837 8.211,8.837 L7.5,8.837 L7.5,7.235 L11.788,7.235 L11.788,8.833 L11.074,8.833 C10.797,8.833 10.574,9.057 10.574,9.333 L10.574,11.764 C10.574,12.04 10.797,12.264 11.074,12.264 L13.499,12.264 C13.775,12.264 13.999,12.04 13.999,11.764 L13.999,9.333 C13.999,9.057 13.775,8.833 13.499,8.833 L13.499,8.833 Z" fill="#595959" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/modelTrain.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-modelTrain",use:"icon-modelTrain-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-modelTrain">\r\n <title>icon/\u6570\u636e\u5f00\u53d1</title>\r\n <g id="icon-modelTrain_\u65b0\u624b\u6307\u5f15\u4fee\u6539" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-modelTrain_\u6a21\u578b\u63a8\u7406-\u67e5\u770b\u7248\u672c\u5907\u4efd-19" transform="translate(-16.000000, -225.000000)">\r\n <g id="icon-modelTrain_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-modelTrain_icon/\u6570\u636e\u5f00\u53d1-" transform="translate(16.000000, 165.000000)">\r\n <rect id="icon-modelTrain_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M13.0209372,1 C13.5236434,1 13.9369443,1.37852551 13.9934224,1.86735678 L14,1.982 L14,12.675 C14,13.1782857 13.6226067,13.5936224 13.1352375,13.6503885 L13.0209372,13.657 L0.979062812,13.657 C0.477282438,13.657 0.0631879871,13.2776122 0.00659174081,12.7894585 L0,12.675 L0,1.982 C0,1.47778571 0.378252996,1.0632449 0.864946705,1.0065973 L0.979062812,1 L13.0209372,1 Z M13.0209372,4.9 L0.979062812,4.9 L0.979062812,12.674 L13.0209372,12.674 L13.0209372,4.9 Z M7.52961117,6.1348 C7.58245264,5.9948 7.84366899,5.9068 8.01016949,5.9688 C8.14604757,6.01937143 8.23431339,6.18896327 8.22913359,6.32454927 L8.21854437,6.3888 L6.45982054,11.2468 C6.40598205,11.3858 6.1557328,11.4418 6.01515454,11.3898 C5.88516949,11.343425 5.74449776,11.180675 5.74742842,11.0462531 L5.75792622,10.9908 L7.52961117,6.1348 Z M9.02033898,6.5225 C9.13741632,6.40678571 9.34385822,6.41303061 9.46700482,6.4826691 L9.52083749,6.5225 L11.4600199,8.4675 C11.5472582,8.555 11.5617979,8.68902778 11.5036391,8.79261574 L11.4600199,8.8505 L9.60857428,10.7015 C9.5108674,10.7985 9.23270189,10.8595 9.07218345,10.7015 C8.93958126,10.569375 8.95888273,10.3155156 9.03591141,10.1844434 L9.07218345,10.1365 L10.6634098,8.6535 L9.02033898,7.0535 C8.91565304,6.9395 8.88075773,6.6615 9.02033898,6.5225 Z M4.47906281,6.5225 C4.58374875,6.4185 4.86291127,6.4185 4.96759721,6.5225 C5.05732802,6.61164286 5.0701467,6.86682653 5.00605327,7.00907726 L4.96759721,7.0695 L3.34346959,8.6535 L4.92671984,10.1575 C5.03140578,10.2625 5.04636092,10.5605 4.92671984,10.6775 C4.80022433,10.802625 4.5599919,10.8014219 4.43511847,10.7341836 L4.389332,10.7015 L2.53988036,8.8495 C2.45264207,8.76116667 2.43810236,8.62769444 2.49626122,8.52489352 L2.53988036,8.4675 L4.47906281,6.5225 Z M13.0209372,1.981 L0.979062812,1.981 L0.979062812,3.9 L13.0209372,3.9 L13.0209372,1.981 Z M2.18723829,2.442 L2.2331007,2.442 C2.50827517,2.455 2.72063809,2.689 2.70767697,2.964 C2.69571286,3.222 2.49032901,3.428 2.2331007,3.44 C1.95792622,3.453 1.72562313,3.24 1.71266201,2.964 C1.6997009,2.689 1.91206381,2.455 2.18723829,2.442 Z M5.17537388,2.442 L5.22123629,2.442 C5.49541376,2.455 5.70877368,2.689 5.69581256,2.964 C5.68384845,3.222 5.4774676,3.428 5.22123629,3.44 C4.94606181,3.453 4.71276171,3.24 4.70079761,2.964 C4.68783649,2.689 4.9001994,2.455 5.17537388,2.442 Z M3.68085743,2.442 L3.72671984,2.442 C4.00089731,2.455 4.21425723,2.689 4.20129611,2.964 C4.189332,3.222 3.98295115,3.428 3.72671984,3.44 C3.45154536,3.453 3.21824526,3.24 3.20628116,2.964 C3.19332004,2.689 3.40568295,2.455 3.68085743,2.442 Z" id="icon-modelTrain_icon/\u6570\u636e\u5f00\u53d1" fill="#595959" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/mxgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-mxgl",use:"icon-mxgl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-mxgl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u6a21\u578b\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-mxgl_\u6a21\u578b\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-mxgl_\u6a21\u578b\u7ba1\u7406-\u57fa\u7840\u955c\u50cf\u7ba1\u7406" transform="translate(-16.000000, -105.000000)">\r\n <g id="icon-mxgl_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-mxgl_icon/\u6a21\u578b\u7ba1\u7406">\r\n <g transform="translate(16.000000, 45.000000)">\r\n <g>\r\n <rect id="icon-mxgl_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="13.8352941" />\r\n <path d="M7.03307685,2.09703529 L3.46007685,3.74442353 L7.03407685,5.33844706 C7.06807685,5.35425882 7.10407685,5.36315294 7.14207685,5.36315294 C7.17807685,5.36315294 7.21407685,5.35425882 7.24707685,5.33844706 L10.6410768,3.77505882 L7.24607685,2.09703529 C7.21307685,2.08122353 7.17707685,2.07331765 7.14007685,2.07331765 C7.10307685,2.07331765 7.06707685,2.08122353 7.03307685,2.09703529 Z M6.92507685,6.40178824 L1.72607685,4.00432941 C1.64907685,3.96776471 1.59007685,3.90550588 1.56107685,3.82644706 C1.53107685,3.7464 1.53607685,3.66042353 1.57307685,3.58432941 C1.60507685,3.51712941 1.66007685,3.46376471 1.72607685,3.43214118 L6.92607685,1.03468235 C6.99407685,1.00404706 7.06607685,0.988235294 7.14207685,0.988235294 C7.21607685,0.988235294 7.28707685,1.00404706 7.35607685,1.03468235 L12.5550768,3.43214118 C12.6320768,3.46771765 12.6910768,3.53096471 12.7200768,3.61002353 C12.7490768,3.68908235 12.7460768,3.77505882 12.7100768,3.85016471 C12.6770768,3.91835294 12.6220768,3.97171765 12.5550768,4.00334118 L7.35507685,6.40178824 C7.28707685,6.43341176 7.21607685,6.44823529 7.14007685,6.44823529 C7.06407685,6.44823529 6.99207685,6.43341176 6.92507685,6.40178824 Z M8.77100595,7.97082205 C8.68100595,8.01232793 8.62200595,8.10225734 8.62200595,8.20009264 L8.62200595,12.0364221 L12.0400059,10.4226338 C12.1310059,10.3811279 12.1890059,10.2921868 12.1890059,10.1943515 L12.1890059,6.43411617 L8.77100595,7.97082205 Z M7.63300595,13.2084691 L7.60400595,13.0829632 L7.60400595,7.71486911 C7.60400595,7.51821029 7.72100595,7.33835146 7.90100595,7.25731617 L12.7780059,5.06343382 L12.8840059,5.04366911 C13.0640059,5.04465734 13.2070059,5.18696323 13.2070059,5.35891617 L13.2070059,10.6775985 C13.2070059,10.8722809 13.0910059,11.0511515 12.9120059,11.1341632 L8.03700595,13.3705397 L7.92400595,13.3903044 C7.79700595,13.3903044 7.68500595,13.3191515 7.63300595,13.2084691 Z M2.01605731,10.1943515 C2.01605731,10.2921868 2.07505731,10.3811279 2.16605731,10.4226338 L5.62705731,12.0107279 L5.58505731,8.20108087 C5.58505731,8.10324558 5.52505731,8.01232793 5.43505731,7.97181029 L2.01605731,6.43411617 L2.01605731,10.1943515 Z M6.26305731,13.3912926 L6.15505731,13.3636221 L1.29405731,11.1351515 C1.11205731,11.0521397 0.997057309,10.8722809 1.00005731,10.6766103 L1.00005731,5.35792793 C1.00005731,5.18498676 1.14105731,5.04366911 1.31805731,5.04366911 L1.44405731,5.07035146 L6.30305731,7.25731617 C6.48605731,7.33736323 6.60305731,7.51722205 6.60305731,7.71486911 L6.60305731,13.0760456 C6.60305731,13.249975 6.46105731,13.3912926 6.28505731,13.3912926 L6.26305731,13.3912926 Z" fill="#595959" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/mxkf.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-mxkf",use:"icon-mxkf-usage",viewBox:"0 0 14 11",content:'<symbol viewBox="0 0 14 11" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-mxkf">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>ICON/\u6a21\u578b\u914d\u7f6e</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-mxkf_\u6a21\u578b\u8bad\u7ec3" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-mxkf_\u8bad\u7ec3-\u6a21\u578b\u914d\u7f6e" transform="translate(-15.000000, -187.000000)" fill="#147BD1">\r\n <g id="icon-mxkf_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-mxkf_ICON/\u6a21\u578b\u914d\u7f6e">\r\n <g transform="translate(15.000000, 127.000000)">\r\n <g id="icon-mxkf_\u5f62\u72b6">\r\n <path fill="#595959" d="M13.2864,-3.55271368e-15 C13.6354,-3.55271368e-15 13.9204,0.284 13.9204,0.634 L13.9204,9.872 C13.9204,10.221 13.6354,10.505 13.2864,10.505 L0.6324,10.505 C0.2834,10.505 0.0004,10.221 0.0004,9.872 L0.0004,0.634 C0.0004,0.284 0.2834,-3.55271368e-15 0.6324,-3.55271368e-15 L13.2864,-3.55271368e-15 Z M13.0604,3.298 L0.8394,3.298 L0.8394,9.542 L13.0094,9.612 L13.0604,3.298 Z M6.9593,3.807 C7.0083,3.807 7.0573,3.82 7.1003,3.844 L9.1183,5.01 C9.2053,5.06 9.2583,5.153 9.2583,5.253 L9.2583,7.583 C9.2583,7.684 9.2053,7.778 9.1183,7.828 L7.0773,9.006 L6.9593,9.03 L6.9323,9.03 L6.8193,8.993 L4.8003,7.827 C4.7143,7.778 4.6603,7.684 4.6603,7.583 L4.6603,5.253 C4.6603,5.153 4.7143,5.06 4.8003,5.01 L6.8413,3.831 L6.9593,3.807 Z M5.2233,5.76 L5.2233,7.453 L6.6793,8.265 L6.6793,6.548 L5.2233,5.76 Z M8.6983,5.763 L7.2423,6.602 L7.2423,8.259 L8.7233,7.405 L8.6983,5.763 Z M6.9323,4.398 L5.4813,5.264 L7.0073,6.146 L8.4383,5.268 L6.9323,4.398 Z M0.8394,0.894 L0.8394,2.351 L13.0684,2.351 L13.0794,0.964 L0.8394,0.894 Z M1.7091431,1.40454108 C1.84721429,1.40454108 1.9591431,1.5164699 1.9591431,1.65454108 C1.9591431,1.79261227 1.84721429,1.90454108 1.7091431,1.90454108 C1.57107192,1.90454108 1.4591431,1.79261227 1.4591431,1.65454108 C1.4591431,1.5164699 1.57107192,1.40454108 1.7091431,1.40454108 Z M2.70832382,1.40454108 C2.84639501,1.40454108 2.95832382,1.5164699 2.95832382,1.65454108 C2.95832382,1.79261227 2.84639501,1.90454108 2.70832382,1.90454108 C2.57025263,1.90454108 2.45832382,1.79261227 2.45832382,1.65454108 C2.45832382,1.5164699 2.57025263,1.40454108 2.70832382,1.40454108 Z M3.71561672,1.40454108 C3.85368791,1.40454108 3.96561672,1.5164699 3.96561672,1.65454108 C3.96561672,1.79261227 3.85368791,1.90454108 3.71561672,1.90454108 C3.57754554,1.90454108 3.46561672,1.79261227 3.46561672,1.65454108 C3.46561672,1.5164699 3.57754554,1.40454108 3.71561672,1.40454108 Z" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/nbfw.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-nbfw",use:"icon-nbfw-usage",viewBox:"0 0 15 12",content:'<symbol viewBox="0 0 15 12" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-nbfw">\r\n <title>ICON/\u5185\u90e8\u670d\u52a1API</title>\r\n <defs>\r\n <polygon id="icon-nbfw_path-1" points="0 14 14 14 14 0 0 0" />\r\n </defs>\r\n <g id="icon-nbfw_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-nbfw_ICON/\u5185\u90e8\u670d\u52a1API" transform="translate(0.571429, -1.000000)">\r\n <mask id="icon-nbfw_mask-2" fill="white">\r\n <use xlink:href="#icon-nbfw_path-1" />\r\n </mask>\r\n <g id="icon-nbfw_Clip-8"></g>\r\n <path d="M7.172,1.12600653 C7.258,1.12600653 7.344,1.12900653 7.431,1.13500653 C8.274,1.18700653 9.066,1.50000653 9.722,2.03900653 C10.329,2.54000653 10.772,3.20200653 11.003,3.95200653 C12.773,4.40700653 14,5.94000653 14,7.69300653 C14,9.70510028 12.4139746,11.3540036 10.425636,11.4550951 L10.232,11.4600065 L7.755,11.4600065 L8.142,11.8620065 C8.233,11.9450065 8.287,12.0590065 8.291,12.1830065 C8.296,12.3060065 8.253,12.4250065 8.17,12.5150065 C8.083,12.6110065 7.959,12.6650065 7.83,12.6650065 C7.7415,12.6650065 7.6575,12.6402565 7.58517188,12.5953972 L7.517,12.5440065 L5.84,11.0060065 L7.428,9.38000653 C7.516,9.29300653 7.632,9.24500653 7.755,9.24500653 C7.879,9.24500653 7.996,9.29300653 8.084,9.38100653 C8.23625,9.53500653 8.259875,9.76939716 8.15085547,9.94751434 L8.096,10.0200065 L7.633,10.5030065 L10.232,10.5360065 C11.8,10.5360065 13.075,9.26000653 13.075,7.69200653 C13.075,6.32063153 12.0932274,5.14946834 10.7625001,4.89758805 L10.587,4.87000653 L10.189,4.82100653 L10.193,4.50800653 C9.899,3.08300653 8.631,2.05100653 7.177,2.05100653 C5.54060714,2.05100653 4.19804592,3.33419531 4.10423592,4.94834317 L4.099,5.12900653 L4.121,5.79800653 L3.591,5.72100653 C3.507,5.71200653 3.422,5.70800653 3.338,5.70800653 C2.007,5.70800653 0.924,6.79000653 0.924,8.12100653 C0.924,9.39876653 1.9220928,10.4479697 3.17952384,10.5298616 L3.338,10.5350065 L4.213,10.5350065 C4.469,10.5400065 4.673,10.7520065 4.669,11.0070065 C4.66455556,11.2283399 4.50603704,11.410167 4.29598491,11.4513522 L4.215,11.4600065 L3.338,11.4600065 C2.448,11.4600065 1.609,11.1130065 0.979,10.4810065 C0.347,9.85000653 0,9.01200653 0,8.12100653 C0,6.43832796 1.26738138,5.01786622 2.91985222,4.80916109 L3.105,4.79100653 L3.196,4.70300653 C3.413,2.66400653 5.123,1.12600653 7.172,1.12600653 Z M7.9953,5.96740653 C8.6503,5.96740653 9.1543,6.19540653 9.1543,6.89540653 C9.1543,7.52540653 8.71177556,7.83222431 8.13649378,7.87033334 L8.0113,7.87440653 L7.6153,7.87440653 L7.6153,8.92640653 L7.0233,8.92640653 L7.0233,5.96740653 L7.9953,5.96740653 Z M10.2837,5.96800653 L10.2837,8.92600653 L9.6917,8.92600653 L9.6917,5.96800653 L10.2837,5.96800653 Z M5.7232,5.96790653 L6.6742,8.92590653 L6.0552,8.92590653 L5.8472,8.16590653 L4.8872,8.16590653 L4.6792,8.92590653 L4.0792,8.92590653 L5.0272,5.96790653 L5.7232,5.96790653 Z M5.3712,6.41490653 L5.3552,6.41490653 C5.30453333,6.63090653 5.24853333,6.85223986 5.19075556,7.06705468 L5.0152,7.70690653 L5.7192,7.70690653 L5.54245926,7.06616579 L5.3712,6.41490653 Z M7.9513,6.43540653 L7.6153,6.43540653 L7.6153,7.40740653 L7.9703,7.40740653 C8.3793,7.40740653 8.5743,7.23540653 8.5743,6.89540653 C8.5743,6.58580653 8.40015,6.46088653 8.067888,6.43899853 L7.9513,6.43540653 Z" id="icon-nbfw_\u5f62\u72b6" fill="#595959" mask="url(#icon-nbfw_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/operationManagement.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-operationManagement",use:"icon-operationManagement-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-operationManagement">\r\n <title>icon/AI\u670d\u52a1\u8fd0\u8425</title>\r\n <g id="icon-operationManagement_\u65b0\u624b\u6307\u5f15\u4fee\u6539" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-operationManagement_\u6a21\u578b\u63a8\u7406-\u67e5\u770b\u7248\u672c\u5907\u4efd-19" transform="translate(-16.000000, -346.000000)" fill="#595959">\r\n <g id="icon-operationManagement_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-operationManagement_\u8fd0\u8425\u7ba1\u7406\u5907\u4efd" transform="translate(0.000000, 272.000000)">\r\n <g id="icon-operationManagement_icon/\u9879\u76ee\u7ba1\u7406" transform="translate(16.000000, 14.000000)">\r\n <path d="M4.6665,3.55271368e-15 C5.64840476,3.55271368e-15 6.45343878,0.758276644 6.52788214,1.72111003 L6.5335,1.867 L12.1335,1.867 C13.1154048,1.867 13.9204388,2.62436961 13.9948821,3.58711662 L14.0005,3.733 L14.0005,11.2 C14.0005,12.1819048 13.2422234,12.9869388 12.27939,13.0613821 L12.1335,13.067 L1.8665,13.067 C0.884595238,13.067 0.080468254,12.3087234 0.00611127308,11.34589 L0.0005,11.2 L0.0005,1.867 C0.0005,0.885095238 0.757869615,0.0800612245 1.72061662,0.00561785984 L1.8665,3.55271368e-15 L4.6665,3.55271368e-15 Z M12.1335,2.8 L0.9335,2.8 L0.9335,11.2 C0.9335,11.6791429 1.29391837,12.0737857 1.75774453,12.1277187 L1.8665,12.134 L12.1335,12.134 C12.6126429,12.134 13.0064235,11.7735816 13.0602332,11.3089548 L13.0665,11.2 L13.0665,3.733 C13.0665,3.25478571 12.7069439,2.86020918 12.2424402,2.80628098 L12.1335,2.8 Z M6.0376,4.1999 C6.1546,4.1999 6.2656,4.2489 6.3436,4.3339 C6.4436,4.4459 6.7616,4.7339 7.0156,4.7339 C7.2706,4.7339 7.5846,4.4509 7.6856,4.3419 C7.78393333,4.2369 7.92879444,4.19231667 8.06636389,4.21914537 L8.1566,4.2479 L8.9816,4.7349 C9.10931429,4.83432857 9.16649796,4.99620612 9.13488863,5.15063178 L9.08247464,5.31099621 C9.06176327,5.3783898 9.0376,5.47675714 9.0376,5.5699 C9.0376,6.02866923 9.36138698,6.40734379 9.78008157,6.4628868 L9.8866,6.4699 L9.9146,6.4699 C10.0320286,6.46732857 10.1310898,6.55953265 10.1790373,6.7106172 L10.1986,6.7909 C10.2016,6.8069 10.2666,7.1789 10.2666,7.4699 C10.2666,7.7609 10.2016,8.1319 10.1976,8.1489 C10.1676,8.31861429 10.0810286,8.43616531 9.97063207,8.46439854 L9.9136,8.4709 L9.8856,8.4709 C9.4176,8.4709 9.0366,8.8739 9.0366,9.3709 C9.0366,9.44075714 9.05019184,9.51355306 9.06572536,9.57401662 L9.1106,9.7139 C9.17145714,9.8639 9.14121224,10.0322673 9.0381277,10.1509904 L8.9806,10.2059 L8.1416,10.6979 L8.1316,10.7019 C7.9706,10.7689 7.7846,10.7259 7.6686,10.5949 C7.5676,10.4779 7.2446,10.1709 6.9826,10.1709 C6.7196,10.1709 6.3936,10.4789 6.2986,10.5869 C6.2206,10.6739 6.1096,10.7229 5.9926,10.7229 C5.9566,10.7235667 5.9206,10.7184556 5.88578519,10.7084556 L5.8266,10.6859 L5.0246,10.2109 C4.89174286,10.1063286 4.83382449,9.94371633 4.86469913,9.78918571 L4.93247464,9.57301662 C4.94800816,9.51255306 4.9616,9.43975714 4.9616,9.3699 C4.9616,8.91113077 4.63696095,8.53245621 4.2189218,8.4769132 L4.1126,8.4699 L4.0796,8.4699 C3.96474286,8.4699 3.86825306,8.37659388 3.82098776,8.22713615 L3.8016,8.1479 C3.7986,8.1319 3.7336,7.7619 3.7336,7.4699 C3.7336,7.1779 3.7986,6.8069 3.8016,6.7909 C3.8316,6.62118571 3.91743673,6.50436939 4.02762332,6.47634606 L4.0846,6.4699 L4.1136,6.4699 C4.5816,6.4699 4.9626,6.0669 4.9626,5.5699 C4.9626,5.4069 4.8886,5.2289 4.8886,5.2269 C4.82688571,5.0769 4.85774286,4.90706327 4.96164956,4.78855015 L5.0276,4.7279 L5.8736,4.2369 C5.9316,4.2109 5.9846,4.1999 6.0376,4.1999 Z M6.2416,5.1439 L6.2176,5.1369 L6.2176,5.1369 L5.5746,5.5119 L5.60304444,5.59256667 C5.62793333,5.67145556 5.6586,5.7939 5.6586,5.9199 C5.6586,6.4899 5.2366,6.9559 4.7086,6.9849 L4.6867691,7.13475131 C4.67398776,7.23332857 4.6606,7.3619 4.6606,7.4699 C4.6646,7.6309 4.6816,7.7929 4.7096,7.9519 C5.2376,7.9809 5.6586,8.4479 5.6586,9.0159 C5.6566,9.1099 5.64304444,9.20256667 5.61852593,9.29271481 L5.5736,9.4259 L6.1816,9.7869 C6.1896,9.7859 6.1966,9.7849 6.2026,9.7819 L6.2741,9.706775 C6.3146,9.6669 6.3701,9.6159 6.4356,9.5649 C6.6306,9.4129 6.8146,9.3359 6.9856,9.3359 C7.1586,9.3359 7.3446,9.4139 7.5406,9.5699 C7.6246,9.6359 7.7036,9.7089 7.7746,9.7899 L7.7816,9.794025 L7.7956,9.7949 L8.4256,9.4259 L8.39715556,9.34541852 C8.37226667,9.26623333 8.3416,9.1429 8.3416,9.0169 C8.3416,8.4479 8.7636,7.9809 9.2906,7.9529 L9.31324431,7.80320612 C9.32621224,7.70483878 9.3396,7.57675714 9.3396,7.4699 C9.3396,7.2809 9.2986,7.0309 9.2906,6.9859 C8.7626,6.9559 8.3416,6.4899 8.3416,5.9209 C8.3416,5.8264 8.35885,5.7334 8.377975,5.6594 L8.4256,5.5119 L7.8056,5.1449 C7.7956,5.1449 7.7876,5.1479 7.7806,5.1519 L7.732264,5.20038 C7.69168,5.23998 7.6282,5.2983 7.5496,5.3559 C7.3586,5.4989 7.1786,5.5719 7.0136,5.5719 C6.8456,5.5719 6.6646,5.4979 6.4726,5.3529 C6.3416,5.2539 6.2526,5.1549 6.2416,5.1439 Z M7.0007,6.5276 C7.47334286,6.5276 7.8632102,6.88974286 7.91569489,7.357018 L7.92170181,7.4666 C7.92170181,7.9866 7.5087,8.4056 6.9997,8.4056 C6.4907,8.4056 6.0777,7.9856 6.0777,7.4666 C6.0777,6.9476 6.4917,6.5276 7.0007,6.5276 Z M4.6665,0.933 L1.8665,0.933 C1.38828571,0.933 0.993709184,1.29341837 0.939780977,1.75804519 L0.9335,1.867 L5.6005,1.867 C5.6005,1.38785714 5.24008163,0.993214286 4.77545481,0.939281341 L4.6665,0.933 Z" id="icon-operationManagement_\u5f62\u72b6" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/rwgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-rwgl",use:"icon-rwgl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-rwgl">\r\n <g id="icon-rwgl_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-rwgl_ICON/\u5f00\u53d1\u4efb\u52a1\u7ba1\u7406">\r\n <rect id="icon-rwgl_\u77e9\u5f62" fill="#FFFFFF" opacity="0.01" x="0" y="0" width="14" height="14" />\r\n <path d="M9.18100989,7.95755949 C9.52106372,7.89880711 9.86323475,8.04942502 10.0498313,8.34 C10.1815417,8.47877233 10.2611546,8.65749287 10.2774844,8.84597837 L10.2795988,9.09 L12.5473043,10.39 L12.6361091,10.3192787 C12.7906988,10.2115471 12.9764234,10.155161 13.1666776,10.16 C13.395533,10.1706053 13.6109492,10.2712345 13.7660711,10.44 C14.089303,10.7832957 14.0759314,11.3231604 13.7361014,11.65 C13.6113779,11.7693457 13.4534162,11.8460163 13.2847973,11.8710483 L13.1566877,11.88 L13.0327411,11.860986 C12.9514907,11.8422873 12.873424,11.8117085 12.8010738,11.7702419 L12.6971527,11.7 L10.908962,12.86 C10.9193249,12.9463563 10.9193249,13.0336437 10.908962,13.12 C10.8875542,13.6124164 10.482276,14.0004661 9.98989194,14.0000338 C9.71945176,14.0015811 9.45992647,13.8933362 9.27061972,13.7 C8.93394557,13.3225114 8.96058035,12.7448408 9.33055907,12.4 C9.37756879,12.3626713 9.42753998,12.3293282 9.47994933,12.3002897 L9.56032659,12.26 L9.29059951,9.74 C9.14821391,9.71751361 9.0144976,9.65922279 8.90162787,9.57135204 L8.82107459,9.5 C8.54221189,9.2965283 8.41203047,8.94578295 8.49052524,8.60940715 C8.56902002,8.27303135 8.84095605,8.01631187 9.18100989,7.95755949 Z M9.95992227,12.64 L9.87851465,12.6470045 C9.79836555,12.6611722 9.72289462,12.6964979 9.66022551,12.75 C9.51533399,12.9224578 9.52021101,13.1756049 9.67163733,13.3423424 C9.82306365,13.5090799 10.0743472,13.5379945 10.259619,13.41 C10.3337283,13.3233765 10.3760267,13.213995 10.3794977,13.1 C10.3810686,12.9820543 10.3382776,12.8678293 10.259619,12.78 C10.2027692,12.71493 10.1273677,12.6700788 10.0446553,12.6506972 L9.95992227,12.64 Z M6.47344998,1.37667655e-13 C10.0997808,1.37667655e-13 12.9868595,1.19 12.9868595,2.7 L12.9868595,8.7 C13.0007589,8.82799658 12.9615945,8.95609693 12.8785131,9.05438334 C12.7954317,9.15266975 12.6757084,9.21253586 12.5473043,9.22 C12.3029373,9.21456279 12.1076887,9.0146747 12.107749,8.77 L12.107749,6.72 C10.3642581,7.55795225 8.44682245,7.96924706 6.51340955,7.92 C4.55922934,7.98739405 2.62208863,7.53539726 0.899090275,6.61 L0.899090275,7.72 C0.899090275,8.59 3.18677553,9.55 6.48343987,9.55 L7.48242907,9.55 C7.72518872,9.55 7.92198431,9.74699471 7.92198431,9.99 C7.92198431,10.2330053 7.72518872,10.43 7.48242907,10.43 L6.48343987,10.43 C4.53653863,10.4882121 2.60818215,10.036658 0.889100383,9.12 L0.889100383,10.24 C0.889100383,11.1 3.17678564,12.06 6.47344998,12.06 C6.6477674,12.0518201 6.82132656,12.0317738 6.99292436,12 L7.42248971,12 C7.53921089,11.9859581 7.65668722,12.019305 7.74866986,12.0925898 C7.8406525,12.1658745 7.89947512,12.2729891 7.91199442,12.39 C7.91199442,12.6 7.75215615,12.84 7.34257058,12.88 L7.03288393,12.88 C6.84772443,12.9108306 6.66093158,12.9308643 6.47344998,12.94 C3.24671488,12.94 0.479514813,11.94 0.0599393517,10.62 L-8.8817842e-15,10.42 L-8.8817842e-15,2.7 C-8.8817842e-15,1.19 2.8471192,1.37667655e-13 6.47344998,1.37667655e-13 Z M10.0398414,9.55 L9.95778108,9.61606689 L9.86741242,9.66967287 L9.86741242,9.66967287 L9.77011432,9.71 L10.0298515,12.14 C10.2052007,12.1541724 10.3718395,12.2183165 10.5106623,12.3235292 L10.6092652,12.41 L12.2875671,11.35 C12.2500089,11.2278269 12.2406194,11.0992933 12.2593985,10.9739399 L12.2875671,10.85 L10.0398414,9.55 Z M13.0967483,10.64 C13.0042795,10.6425972 12.9157506,10.6780446 12.847001,10.74 C12.7750118,10.8113668 12.7345097,10.9085792 12.7345097,11.01 C12.7345097,11.1114208 12.7750118,11.2086332 12.847001,11.28 C12.9168641,11.3492219 13.0087895,11.3916919 13.1067382,11.4 C13.2093495,11.4038807 13.3095151,11.3680711 13.3864552,11.3 C13.448698,11.2281242 13.4808961,11.1350135 13.4763642,11.04 C13.4797341,10.9403671 13.4438562,10.8433987 13.3764653,10.77 C13.3083852,10.6856231 13.2050732,10.6376083 13.0967483,10.64 Z M9.46042767,8.54 C9.36375555,8.53592245 9.26971748,8.57212753 9.20069048,8.64 C9.12748926,8.70704775 9.08429038,8.80074002 9.08081178,8.9 C9.07744189,8.99963292 9.1133198,9.09660129 9.1807107,9.17 C9.24541987,9.24632556 9.34044265,9.2902266 9.44044789,9.29 C9.51417315,9.29539886 9.58722388,9.27852368 9.6504975,9.24241173 L9.71017497,9.2 L9.7613501,9.14263363 C9.80672538,9.08098263 9.83426498,9.00738445 9.84004356,8.93 C9.84273924,8.82749646 9.80393733,8.72825288 9.73245127,8.65481138 C9.66096522,8.58136988 9.56286307,8.53996449 9.46042767,8.54 Z M0.889100383,4.1 L0.889100383,5.22 C0.889100383,6.07 3.27668456,7 6.47344998,7 C9.6702154,7 12.0677895,6 12.0677895,5.19 L12.0677895,4.19 C10.3242985,5.02795225 8.40686288,5.43924706 6.47344998,5.39 C4.52939809,5.4768517 2.59854261,5.03081881 0.889100383,4.1 Z M6.47344998,0.88 C3.27668456,0.88 0.889100383,1.84 0.889100383,2.7 C0.889100383,3.56 3.27668456,4.52 6.47344998,4.52 C9.6702154,4.52 12.0677895,3.52 12.0677895,2.7 C12.0677895,1.88 9.68020529,0.88 6.47344998,0.88 Z" fill="#595959" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/sjkpz.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-sjkpz",use:"icon-sjkpz-usage",viewBox:"0 0 13 14",content:'<symbol viewBox="0 0 13 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sjkpz">\r\n <title>ICON/\u6570\u636e\u5e93\u914d\u7f6e</title>\r\n <defs>\r\n <polygon id="icon-sjkpz_path-1" points="0 0 14 0 14 13.9993 0 13.9993" />\r\n </defs>\r\n <g id="icon-sjkpz_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-sjkpz_ICON/\u6570\u636e\u5e93\u914d\u7f6e" transform="translate(-1.000000, 0.000000)">\r\n <mask id="icon-sjkpz_mask-2" fill="white">\r\n <use xlink:href="#icon-sjkpz_path-1" />\r\n </mask>\r\n <g id="icon-sjkpz_Clip-2"></g>\r\n <path d="M7.125,0 C9.99527027,0 13.0785427,0.841595325 13.2431095,2.68689791 L13.25,2.843 L13.25,11.156 C13.25,13.109 10.075,14 7.125,14 C4.25375676,14 1.17140467,13.1565113 1.00688838,11.3120275 L1,11.156 L1,2.843 C1,0.889 4.174,0 7.125,0 Z M12.375,9.521 C11.471,10.453 9.291,10.937 7.125,10.937 C5.05745455,10.937 2.97715289,10.496 2.00606067,9.64531067 L1.875,9.521 L1.875,11.156 C1.875,12.242 4.225,13.125 7.125,13.125 C9.93615152,13.125 12.2320119,12.2947043 12.3685736,11.2541491 L12.375,11.156 L12.375,9.521 Z M11.062,10.9375 C11.304,10.9375 11.5,11.1325 11.5,11.3745 C11.5,11.6155 11.304,11.8115 11.062,11.8115 C10.821,11.8115 10.625,11.6155 10.625,11.3745 C10.625,11.1325 10.821,10.9375 11.062,10.9375 Z M12.375,6.896 C11.471,7.828 9.291,8.312 7.125,8.312 C5.05745455,8.312 2.97715289,7.871 2.00606067,7.02031067 L1.875,6.896 L1.875,8.544 L1.875,8.544 C1.875,9.624 4.226,10.499 7.125,10.499 C9.93615152,10.499 12.2320119,9.67622681 12.3685736,8.64159844 L12.375,8.544 L12.373,8.531 L12.375,8.531 L12.375,6.896 Z M11.062,8.3125 C11.304,8.3125 11.5,8.5075 11.5,8.7495 C11.5,8.9905 11.304,9.1865 11.062,9.1865 C10.821,9.1865 10.625,8.9905 10.625,8.7495 C10.625,8.5075 10.821,8.3125 11.062,8.3125 Z M12.375,4.402 C11.228,5.276 9.126,5.687 7.125,5.687 C5.23516667,5.687 3.25435185,5.32039815 2.07467953,4.54338855 L1.875,4.402 L1.875,5.919 L1.875,5.919 C1.875,7 4.226,7.875 7.125,7.875 C9.93615152,7.875 12.2320119,7.05222681 12.3685736,6.01668662 L12.373,5.906 L12.375,5.906 L12.375,4.402 Z M11.062,5.6875 C11.304,5.6875 11.5,5.8825 11.5,6.1245 C11.5,6.3655 11.304,6.5615 11.062,6.5615 C10.821,6.5615 10.625,6.3655 10.625,6.1245 C10.625,5.8825 10.821,5.6875 11.062,5.6875 Z M7.125,0.874 C4.225,0.874 1.875,1.755 1.875,2.843 C1.875,3.93 4.225,4.812 7.125,4.812 C10.024,4.812 12.375,3.93 12.375,2.843 C12.375,1.755 10.024,0.874 7.125,0.874 Z" id="icon-sjkpz_\u5f62\u72b6" fill="#595959" mask="url(#icon-sjkpz_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/sjts.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-sjts",use:"icon-sjts-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sjts">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>ICON/\u6570\u636e\u63a2\u7d22</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <polygon id="icon-sjts_path-1" points="0 0.0002 14 0.0002 14 14 0 14" />\r\n </defs>\r\n <g id="icon-sjts_\u6570\u636e\u96c6\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-sjts_\u6570\u636e\u96c6\u7ba1\u7406-\u6570\u636e\u6e90\u914d\u7f6e" transform="translate(-16.000000, -145.000000)">\r\n <g id="icon-sjts_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-sjts_\u7f16\u7ec4">\r\n <g transform="translate(16.000000, 85.000000)">\r\n <g id="icon-sjts_ICON/\u6570\u636e\u63a2\u7d22">\r\n <g>\r\n <mask id="icon-sjts_mask-2" fill="white">\r\n <use xlink:href="#icon-sjts_path-1" />\r\n </mask>\r\n <g id="icon-sjts_Clip-4"></g>\r\n <path d="M6.6278,0.0002 C10.2878,0.0002 13.2548,2.9672 13.2548,6.6272 C13.2548,8.1412625 12.7467922,9.53755156 11.8914516,10.6537442 L11.7158,10.8732 L13.9618,13.1182 C14.00005,13.15645 14.0096125,13.2132625 13.9904875,13.2612156 L13.9618,13.3052 L13.3048,13.9612 C13.26655,14.0002 13.2097375,14.00995 13.1617844,13.99045 L13.1178,13.9612 L10.8728,11.7162 C9.7228,12.6762 8.2428,13.2542 6.6278,13.2542 C2.9668,13.2542 -0.0002,10.2872 -0.0002,6.6272 C-0.0002,2.9672 2.9668,0.0002 6.6278,0.0002 Z M6.5998,1.1812 C3.5938,1.1812 1.1578,3.6172 1.1578,6.6232 C1.1578,9.6282 3.5938,12.0642 6.5998,12.0642 C6.79046667,12.0642 6.97802222,12.0517556 7.16335556,12.0307185 L7.4398,11.9932 C7.4988,11.9842 7.5588,11.9772 7.6168,11.9662 C7.8498,11.9222 8.0758,11.8632 8.2968,11.7912 C8.3958,11.7592 8.4898,11.7222 8.5858,11.6852 C8.7208,11.6322 8.8538,11.5722 8.9838,11.5092 C9.1628,11.4222 9.3348,11.3252 9.5028,11.2202 L9.7128,11.0822 L9.7128,11.0822 C10.7498,10.3622 11.4518,9.4292 11.8728,8.0522 C12.0211333,7.48886667 12.0451611,7.12831111 12.04905,7.02377407 L12.0498,6.9922 C12.0578,6.8702 12.0618,6.7492 12.0618,6.6272 C12.0618,4.3742 10.6908,2.4422 8.7378,1.6182 C8.0818,1.3372 7.3588,1.1812 6.5998,1.1812 Z M5.1134,3.8596 L5.129025,3.872975 L5.129025,3.872975 L7.1574,6.6666 L8.6134,4.8916 C8.6594,4.8356 8.7414,4.8276 8.7974,4.8736 L8.8164,4.8916 L8.8164,4.8916 L10.5394,7.0006 L11.5918038,7.00066433 C11.5655381,7.36325648 11.5005216,7.71509684 11.4008753,8.05206436 L10.1024,8.0516 C10.0634,8.0516 10.0254,8.0336 10.0004,8.0036 L8.7134,6.4266 L7.2144,8.2536 C7.1684,8.3106 7.0854,8.3176 7.0294,8.2726 L7.0064,8.2476 L7.0064,8.2476 L5.0354,5.5296 L3.2404,7.9976 C3.2154,8.0316 3.1764,8.0516 3.1344,8.0516 L1.83312467,8.05206436 C1.73347844,7.71509684 1.66846193,7.36325648 1.64219619,7.00066433 L2.6654,7.0006 L4.9294,3.8886 C4.9724,3.8296 5.0544,3.8166 5.1134,3.8596 Z" id="icon-sjts_\u5f62\u72b6" fill="#595959" mask="url(#icon-sjts_mask-2)" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/sjycl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-sjycl",use:"icon-sjycl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sjycl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>ICON/\u6570\u636e\u9884\u5904\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-sjycl_\u6570\u636e\u96c6\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-sjycl_\u6570\u636e\u96c6\u7ba1\u7406-\u6570\u636e\u6e90\u914d\u7f6e" transform="translate(-16.000000, -185.000000)">\r\n <g id="icon-sjycl_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-sjycl_ICON/\u6570\u636e\u9884\u5904\u7406">\r\n <g transform="translate(16.000000, 125.000000)">\r\n <g>\r\n <rect id="icon-sjycl_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M4.6041,11.8735 C4.6671,11.8735 4.7281,11.8875 4.7861,11.9145 C5.4971,12.2445 6.2531,12.4115 7.0331,12.4115 C7.8141,12.4115 8.5701,12.2445 9.2811,11.9145 C9.3381,11.8875 9.3991,11.8745 9.4611,11.8745 C9.6271,11.8745 9.7791,11.9715 9.8501,12.1215 C9.9491,12.3355 9.8561,12.5905 9.6441,12.6915 C8.8331,13.0675 7.9311,13.2665 7.0321,13.2665 C6.1351,13.2665 5.2331,13.0675 4.4241,12.6915 C4.3201,12.6445 4.2411,12.5585 4.2021,12.4505 C4.1621,12.3425 4.1681,12.2265 4.2161,12.1215 C4.2851,11.9715 4.4381,11.8735 4.6041,11.8735 Z M5.2327,10.5297 C5.2967,10.5297 5.3577,10.5427 5.4147,10.5707 C5.9267,10.8077 6.4707,10.9277 7.0327,10.9277 C7.5947,10.9277 8.1387,10.8077 8.6507,10.5697 C8.7077,10.5437 8.7687,10.5307 8.8307,10.5307 C8.9957,10.5307 9.1487,10.6277 9.2197,10.7777 C9.3177,10.9907 9.2257,11.2467 9.0127,11.3467 C8.3997,11.6327 7.7147,11.7827 7.0327,11.7827 C6.3537,11.7827 5.6687,11.6327 5.0527,11.3477 C4.9487,11.2997 4.8697,11.2137 4.8307,11.1067 C4.7907,10.9987 4.7967,10.8827 4.8447,10.7777 C4.9137,10.6267 5.0667,10.5297 5.2327,10.5297 Z M1.102,7.7595 L3.354,7.7655 L4.436,9.6445 L3.377,11.6045 L1.177,11.6045 L0,9.6595 L1.102,7.7595 Z M10.6655,7.7595 L12.9175,7.7655 L13.9995,9.6445 L12.9405,11.6045 L10.7405,11.6045 L9.5635,9.6595 L10.6655,7.7595 Z M2.878,8.5715 L1.621,8.5715 L0.991,9.6595 L1.645,10.7905 L2.92,10.7885 L3.514,9.6615 L2.878,8.5715 Z M12.4415,8.5715 L11.1845,8.5715 L10.5545,9.6595 L11.2085,10.7905 L12.4835,10.7885 L13.0775,9.6615 L12.4415,8.5715 Z M10.225,1.9313 C10.31,1.9313 10.392,1.9563 10.462,2.0033 C10.8,2.2303 11.115,2.4873 11.397,2.7693 C11.987,3.3573 12.443,4.0413 12.753,4.8033 C13.053,5.5403 13.205,6.3183 13.205,7.1173 C13.205,7.3533 13.012,7.5463 12.776,7.5463 C12.54,7.5463 12.347,7.3533 12.347,7.1173 C12.347,5.7033 11.795,4.3743 10.792,3.3753 C10.539,3.1253 10.268,2.9033 9.986,2.7163 C9.891,2.6533 9.826,2.5553 9.804,2.4433 C9.781,2.3303 9.804,2.2163 9.868,2.1213 C9.947,2.0033 10.081,1.9313 10.225,1.9313 Z M4.5912,3.2162 C4.7302,3.2162 4.8622,3.2842 4.9422,3.3972 C5.0762,3.5912 5.0292,3.8592 4.8372,3.9942 C4.6562,4.1202 4.4842,4.2652 4.3252,4.4232 C3.6032,5.1412 3.2052,6.0982 3.2052,7.1152 C3.2062,7.2292 3.1632,7.3382 3.0822,7.4192 C3.0012,7.5012 2.8932,7.5462 2.7782,7.5462 C2.5422,7.5462 2.3502,7.3532 2.3502,7.1172 C2.3502,5.8712 2.8372,4.6992 3.7212,3.8162 C3.9122,3.6262 4.1222,3.4502 4.3452,3.2932 C4.4182,3.2422 4.5022,3.2162 4.5912,3.2162 Z M9.4744,3.2157 C9.5634,3.2157 9.6484,3.2437 9.7204,3.2947 C9.9464,3.4517 10.1554,3.6287 10.3434,3.8187 C11.2284,4.6987 11.7154328,5.8707 11.7154328,7.1187 C11.7164,7.2307 11.6724,7.3377 11.5924,7.4187 C11.5104,7.5007 11.4034,7.5457 11.2884,7.5457 C11.0514,7.5457 10.8594,7.3537 10.8594,7.1167 C10.8594,6.1007 10.4614,5.1447 9.7384,4.4237 C9.5814,4.2677 9.4104,4.1237 9.2274,3.9947 C9.1344,3.9297 9.0714,3.8317 9.0514,3.7197 C9.0314,3.6067 9.0574,3.4927 9.1234,3.3987 C9.2034,3.2847 9.3344,3.2157 9.4744,3.2157 Z M3.7372,2.0029 C3.8772,2.0029 4.0082,2.0709 4.0882,2.1849 C4.2232,2.3789 4.1762,2.6469 3.9832,2.7819 C3.7312,2.9579 3.4932,3.1579 3.2742,3.3769 C2.2702,4.3739 1.7172,5.7029 1.7172,7.1169 C1.7172,7.3539 1.5252,7.5459 1.2892,7.5459 C1.0532,7.5459 0.8602,7.3539 0.8602,7.1169 C0.8602,6.3179 1.0122,5.5399 1.3122,4.8029 C1.6232,4.0389 2.0802,3.3549 2.6682,2.7689 C2.9202,2.5179 3.1972,2.2859 3.4922,2.0799 C3.5642,2.0299 3.6492,2.0029 3.7372,2.0029 Z M5.903,1 L8.155,1.006 L9.238,2.885 L8.179,4.845 L5.979,4.845 L4.801,2.9 L5.903,1 Z M7.681,1.812 L6.423,1.812 L5.793,2.9 L6.447,4.031 L7.722,4.029 L8.316,2.902 L7.681,1.812 Z" id="icon-sjycl_\u5f62\u72b6" fill="#595959" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/sjygl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-sjygl",use:"icon-sjygl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sjygl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>ICON/\u6570\u636e\u6e90\u914d\u7f6e</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <polygon id="icon-sjygl_path-1" points="0 0 14 0 14 13.9998 0 13.9998" />\r\n </defs>\r\n <g id="icon-sjygl_\u6570\u636e\u96c6\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-sjygl_\u6570\u636e\u96c6\u7ba1\u7406-\u6570\u636e\u6e90\u914d\u7f6e" transform="translate(-16.000000, -105.000000)">\r\n <g id="icon-sjygl_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-sjygl_ICON/\u6570\u636e\u6e90\u914d\u7f6e">\r\n <g transform="translate(16.000000, 45.000000)">\r\n <g>\r\n <mask id="icon-sjygl_mask-2" fill="white">\r\n <use xlink:href="#icon-sjygl_path-1" />\r\n </mask>\r\n <g id="icon-sjygl_Clip-2"></g>\r\n <path fill="#595959" d="M6.58533749,-0.0002 C10.0389954,-0.0002 12.8669331,1.29390319 13.0133802,2.91191888 L13.0193375,3.0438 L13.0193375,6.8478 C13.0183375,7.1108 12.8113375,7.3188 12.5563375,7.3188 C12.3287819,7.3188 12.1391523,7.15445432 12.0998217,6.93883841 L12.0923375,6.8558 L12.0933375,4.5718 C11.9563375,4.6808 11.8053375,4.7868 11.6403375,4.8868 C10.4673375,5.6408 8.58533749,6.0868 6.58533749,6.0868 C4.43548749,6.0868 2.41740249,5.5678625 1.22812836,4.72289688 L1.04733749,4.5868 L1.04733749,5.5098 L1.07733749,6.9988 C1.07733749,7.83564848 3.0952475,9.04015904 6.28216505,9.11330305 L6.58433749,9.1168 C6.85333749,9.1168 7.05833749,9.3228 7.05833749,9.5778 C7.05833749,9.80535556 6.89399181,9.99419506 6.67767356,10.0333501 L6.59433749,10.0408 C4.43023749,10.04175 2.41504999,9.52286 1.22781599,8.67875413 L1.04733749,8.5428 L1.04733749,9.4668 L1.07733749,10.9548 C1.07733749,11.8188 3.22333749,13.0718 6.58533749,13.0718 C6.83233749,13.0938 7.02333749,13.2948 7.02333749,13.5368 C7.02333749,13.7519111 6.87242391,13.9346272 6.66681623,13.98311 L6.56033749,13.9998 L6.54333749,13.9978 C3.11304801,13.9870895 0.302790396,12.6927044 0.157257647,11.0857587 L0.151337487,10.9548 L0.151337487,3.0438 C0.151337487,1.3648 3.03733749,-0.0002 6.58533749,-0.0002 Z M10.2351375,12.4262 C10.3611375,12.4262 10.4665661,12.5143633 10.4941171,12.6321242 L10.5011375,12.6932 L10.5011375,12.8322 L13.3661375,12.8032 C13.5901375,12.8032 13.7731375,12.9852 13.7731375,13.2092 C13.7731375,13.4052 13.6330281,13.5690438 13.4479383,13.6069422 L13.3661375,13.6152 L10.4711375,13.6152 L10.5011375,13.7252 C10.5011375,13.8512 10.4137089,13.9573633 10.2961579,13.9851242 L10.2351375,13.9922 L8.82513749,13.9922 C8.69913749,13.9922 8.59297422,13.9040367 8.56521329,13.7862758 L8.55813749,13.7252 L8.55813749,13.5862 L8.09213749,13.6152 C7.86813749,13.6152 7.68613749,13.4332 7.68613749,13.2092 C7.68613749,13.0132 7.82548124,12.8493563 8.01037967,12.8114578 L8.09213749,12.8032 L8.58813749,12.8032 L8.55813749,12.6932 C8.55813749,12.5672 8.64630075,12.4610367 8.76406169,12.4332758 L8.82513749,12.4262 L10.2351375,12.4262 Z M13.1289375,10.1688 C13.2549375,10.1688 13.3611008,10.2562286 13.3888617,10.3744093 L13.3959375,10.4358 L13.3959375,10.5748 L13.4379375,10.5718 C13.6159375,10.5718 13.7729375,10.7438 13.7729375,10.9518 C13.7729375,11.1478 13.6328281,11.3124094 13.4477383,11.3504992 L13.3659375,11.3588 L13.3959375,11.4678 C13.3959375,11.5938 13.3077742,11.6999633 13.1900133,11.7277242 L13.1289375,11.7348 L11.7189375,11.7348 C11.5937946,11.7348 11.4877538,11.6466367 11.4600104,11.5288758 L11.4529375,11.4678 L11.4529375,11.3288 L8.09193749,11.3588 C7.86793749,11.3588 7.68593749,11.1758 7.68593749,10.9518 C7.68593749,10.7558 7.82528124,10.5919563 8.01017967,10.5540578 L8.09193749,10.5458 L11.4819375,10.5448 L11.4529375,10.4358 C11.4529375,10.3089429 11.5411008,10.2033918 11.6582319,10.1758233 L11.7189375,10.1688 L13.1289375,10.1688 Z M10.6973375,7.9107 C10.8233375,7.9107 10.9295008,7.99886327 10.9572617,8.1166242 L10.9643375,8.1777 L10.9643375,8.3177 L13.3663375,8.2877 C13.5903375,8.2877 13.7733375,8.4697 13.7733375,8.6947 C13.7733375,8.8907 13.6332281,9.05454375 13.4481383,9.09244219 L13.3663375,9.1007 L10.9353375,9.1007 L10.9643375,9.2107 C10.9643375,9.3367 10.8761742,9.44286327 10.7584133,9.4706242 L10.6973375,9.4777 L9.28833749,9.4777 C9.16233749,9.4777 9.05617422,9.38953673 9.02841329,9.2717758 L9.02133749,9.2107 L9.02133749,9.0707 L8.09233749,9.1007 C7.86833749,9.1007 7.68633749,8.9187 7.68633749,8.6947 C7.68633749,8.497825 7.82568124,8.33387188 8.01057967,8.29595977 L8.09233749,8.2877 L9.05133749,8.2877 L9.02133749,8.1777 C9.02133749,8.0517 9.10950075,7.94553673 9.22726169,7.9177758 L9.28833749,7.9107 L10.6973375,7.9107 Z M6.58533749,0.9258 C3.22333749,0.9258 1.07733749,2.1798 1.07733749,3.0438 C1.07733749,3.9068 3.22333749,5.1608 6.58533749,5.1608 C9.94733749,5.1608 12.0933375,3.9068 12.0933375,3.0438 C12.0933375,2.1798 9.94733749,0.9258 6.58533749,0.9258 Z" id="icon-sjygl_\u5f62\u72b6" mask="url(#icon-sjygl_mask-2)" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/specialArea.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-specialArea",use:"icon-specialArea-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-specialArea">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u4e13\u533a</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-specialArea_icon/\u4e13\u533a" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <rect id="icon-specialArea_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <g transform="translate(2.000000, 1.000000)" fill="#AEAEAE">\r\n <path d="M0.833333333,11.1428571 L9.16666667,11.1428571 L9.16666667,0.857142857 L0.833333333,0.857142857 L0.833333333,11.1428571 Z M9.22833333,0 L0.771666667,0 C0.345,0 0,0.354857143 0,0.793714286 L0,11.2062857 C0,11.6451429 0.345,12 0.771666667,12 L9.22833333,12 C9.65416667,12 10,11.6451429 10,11.2062857 L10,0.793714286 C10,0.354857143 9.65416667,0 9.22833333,0 L9.22833333,0 Z" id="icon-specialArea_Fill-1" />\r\n <path d="M5.46083333,3.13954286 L7.65833333,3.13954286 C7.88833333,3.13954286 8.075,2.94754286 8.075,2.71097143 C8.075,2.4744 7.88833333,2.2824 7.65833333,2.2824 L5.46083333,2.2824 C5.23083333,2.2824 5.04416667,2.4744 5.04416667,2.71097143 C5.04416667,2.94754286 5.23083333,3.13954286 5.46083333,3.13954286" id="icon-specialArea_Fill-3" />\r\n <path d="M2.342,4.85382857 L7.65783333,4.85382857 C7.88866667,4.85382857 8.0745,4.66182857 8.0745,4.42525714 C8.0745,4.18868571 7.88866667,3.99668571 7.65783333,3.99668571 L2.342,3.99668571 C2.112,3.99668571 1.92533333,4.18868571 1.92533333,4.42525714 C1.92533333,4.66182857 2.112,4.85382857 2.342,4.85382857" id="icon-specialArea_Fill-4" />\r\n <path d="M5.44008333,9.43586466 C4.69591667,9.43586466 4.09091667,8.83033903 4.09091667,8.08552583 C4.09091667,7.34154668 4.69591667,6.73602105 5.44008333,6.73602105 C6.18425,6.73602105 6.78925,7.34154668 6.78925,8.08552583 C6.78925,8.83033903 6.18425,9.43586466 5.44008333,9.43586466 M5.44008333,5.68594286 C4.11591667,5.68594286 3.04258333,6.76020871 3.04258333,8.08552583 C3.04258333,9.411677 4.11591667,10.4859429 5.44008333,10.4859429 C6.76425,10.4859429 7.83758333,9.411677 7.83758333,8.08552583 C7.83758333,6.76020871 6.76425,5.68594286 5.44008333,5.68594286" id="icon-specialArea_Fill-5" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/users.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-users",use:"icon-users-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-users">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u7528\u6237</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-users_icon/\u7528\u6237" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-users_\u7f16\u7ec4">\r\n <rect id="icon-users_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M12.2698949,8.6314 C12.7833949,8.6314 13.205497,9.01768571 13.2631773,9.51483149 L13.2698949,9.6314 L13.2698949,13.0034 C13.2698949,13.5159714 12.8844714,13.9388694 12.3866482,13.9966682 L12.2698949,14.0034 L6.73589491,14.0034 C6.22239491,14.0034 5.80029287,13.6171143 5.74261248,13.1199685 L5.73589491,13.0034 L5.73589491,9.6314 C5.73589491,9.11882857 6.12131838,8.69593061 6.61914163,8.63813178 L6.73589491,8.6314 L12.2698949,8.6314 Z M12.2698949,9.6314 L6.73589491,9.6314 L6.73589491,13.0034 L12.2698949,13.0034 L12.2698949,9.6314 Z M10.8745949,10.3428 C10.9865949,10.3428 11.0935949,10.3918 11.1685949,10.4778 C11.3045949,10.6408 11.2845949,10.8838 11.1215949,11.0208 L9.60259491,12.2918 L8.90559491,11.5918 L8.38059491,12.0378 C8.31059491,12.0958 8.22259491,12.1288 8.13159491,12.1288 C8.01759491,12.1288 7.91059491,12.0788 7.83859491,11.9928 C7.70059491,11.8318 7.72059491,11.5878 7.88259491,11.4508 L8.94959491,10.5458 L9.65059491,11.2488 L10.6265949,10.4318 C10.6955949,10.3738 10.7845949,10.3428 10.8745949,10.3428 Z M6.36649491,1.77635684e-14 C8.11849491,1.77635684e-14 9.54349491,1.425 9.54349491,3.177 C9.54349491,4.26 8.98749491,5.267 8.08049491,5.849 C8.96849491,6.121 9.78549491,6.608 10.4564949,7.268 C10.5484949,7.359 10.5984949,7.48 10.5995395,7.609 C10.6004949,7.738 10.5524949,7.858 10.4614949,7.949 C10.3704949,8.042 10.2494949,8.093 10.1184949,8.093 C9.99149491,8.093 9.87149491,8.044 9.78049491,7.955 C8.86449491,7.054 7.65249491,6.557 6.36649491,6.556 C5.08849491,6.556 3.87949491,7.048 2.96349491,7.941 C2.05049491,8.833 1.52949491,10.026 1.49749491,11.3 C1.49127269,11.5337778 1.32307516,11.7225185 1.10106144,11.7615748 L1.00749491,11.769 C0.877494911,11.767 0.757494911,11.713 0.668494911,11.62 C0.578494911,11.527 0.530494911,11.405 0.534494911,11.276 C0.574494911,9.749 1.19849491,8.32 2.29149491,7.254 C2.96249491,6.602 3.77449491,6.118 4.65249491,5.849 C3.74549491,5.268 3.19049491,4.262 3.19049491,3.177 C3.19049491,1.425 4.61549491,1.77635684e-14 6.36649491,1.77635684e-14 Z M6.36649491,0.962 C5.14549491,0.962 4.15149491,1.956 4.15149491,3.177 C4.15149491,4.398 5.14549491,5.391 6.36649491,5.391 C7.58749491,5.391 8.58149491,4.398 8.58149491,3.177 C8.58149491,1.956 7.58749491,0.962 6.36649491,0.962 Z" id="icon-users_icon/\u7528\u6237" fill="#DCDCDC" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/xljx.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-xljx",use:"icon-xljx-usage",viewBox:"0 0 14 13",content:'<symbol viewBox="0 0 14 13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-xljx">\r\n <title>ICON/\u8bad\u7ec3\u955c\u50cf\u7ba1\u7406</title>\r\n <defs>\r\n <polygon id="icon-xljx_path-1" points="0 0.0826 14 0.0826 14 14.0826 0 14.0826" />\r\n </defs>\r\n <g id="icon-xljx_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-xljx_ICON/\u8bad\u7ec3\u955c\u50cf\u7ba1\u7406" transform="translate(0.000000, -1.082600)">\r\n <mask id="icon-xljx_mask-2" fill="white">\r\n <use xlink:href="#icon-xljx_path-1" />\r\n </mask>\r\n <g id="icon-xljx_Clip-6"></g>\r\n <path d="M10.7133756,5.9432 C10.7966256,5.9282 10.8815631,5.9362625 10.9597506,5.9657 L11.0353756,6.0022 C11.0353756,6.0022 11.7663756,6.4582 12.1143756,7.3882 C13.1313756,7.2882 13.8373756,7.7822 13.8373756,7.7822 C13.9523756,7.88136667 14.0111256,8.02845 13.999158,8.1759963 L13.9833756,8.2642 C13.9833756,8.2642 13.8663756,8.6852 13.4873756,9.0522 C13.1553756,9.3732 12.5673756,9.6342 11.7933756,9.6802 C11.7040422,9.8822 11.60582,10.0766444 11.5016719,10.2644222 L11.2393756,10.7162 L11.2393756,10.7162 C9.84137558,12.8912 7.51037558,14.0002 4.81737558,14.0002 C3.06337558,14.0002 1.83037558,13.3332 1.06637558,12.4532 L0.937500581,12.29445 L0.937500581,12.29445 L0.818375581,12.1312 C0.818375581,12.1312 0.604375581,11.8052 0.599375581,11.7972 C0.391375581,11.4402 0.134375581,10.7012 0.132375581,10.6872 C0.0393755807,10.3272 0.000375580722,9.9712 0.000375580722,9.6512 C-0.00262441928,9.5232 0.0123755807,9.3952 0.0443755807,9.2712 C0.0573755807,9.2222 0.0703755807,9.1642 0.0883755807,9.1252 C0.106375581,9.0872 0.147375581,9.0372 0.147375581,9.0372 C0.215375581,8.9452 0.315375581,8.88136 0.426383581,8.857968 L0.511375581,8.8482 L8.93337558,8.8482 C9.27137558,8.8512 9.60637558,8.7772 9.91137558,8.6292 C9.98837558,8.5902 10.0423756,8.5482 10.1013756,8.5122 C10.0183756,8.3042 9.88737558,8.1142 9.86737558,7.8992 C9.81437558,7.3142 9.96437558,6.8482 10.1293756,6.5422 C10.2963756,6.2352 10.5093756,6.0462 10.5093756,6.0462 C10.5683756,5.9952 10.6383756,5.9602 10.7133756,5.9432 Z M10.9173756,7.1252 C10.8463756,7.2932 10.7713756,7.4832 10.8013756,7.8122 C10.8205756,8.013 10.8692156,8.18052 10.9513916,8.32244 L11.0193756,8.4242 C11.1013756,8.5302 11.1333756,8.6662 11.1073756,8.7972 C11.0833756,8.9282 11.0033756,9.0432 10.8883756,9.1102 C10.9123756,9.0962 10.8283756,9.1582 10.7273756,9.2272 C10.6273756,9.2972 10.4873756,9.3792 10.3193756,9.4612 C9.95937558,9.63786667 9.57020891,9.74300556 9.17270891,9.77314444 L8.93337558,9.7822 L0.963375581,9.7822 C0.970708914,9.90353333 0.983820025,10.0239778 1.00330151,10.1435333 L1.03737558,10.3222 L1.13937558,10.7162 C1.18962558,10.87145 1.26293808,11.0430125 1.33357871,11.1844812 L1.40237558,11.3142 C1.77137558,12.0392 2.23337558,12.2922 2.23337558,12.2922 C2.82137558,12.7502 3.64437558,13.0662 4.81737558,13.0662 C6.95807123,13.0662 8.75200696,12.3717652 9.98039424,10.9190094 L10.1443756,10.7162 L10.3203756,10.4832 C10.6103756,10.0682 10.8543756,9.6012 11.0633756,9.0812 C11.1383756,8.8992 11.3193756,8.7822 11.5163756,8.7902 C12.2593756,8.8172 12.6163756,8.5872 12.8303756,8.3812 C12.8643756,8.3482 12.8483756,8.3532 12.8733756,8.3222 C12.6835006,8.2662 12.4239537,8.2316375 12.0786568,8.30091289 L11.8893756,8.3452 C11.6353756,8.3942 11.3903756,8.2272 11.3413756,7.9722 C11.2788042,7.63962857 11.1361511,7.39522041 10.9908741,7.21252653 L10.9173756,7.1252 Z M3.18827558,10.4071 C3.54627558,10.4071 3.83827558,10.6991 3.83827558,11.0571 C3.83827558,11.4161 3.54627558,11.7081 3.18827558,11.7081 C2.82927558,11.7081 2.53727558,11.4161 2.53727558,11.0571 C2.53727558,10.6991 2.82927558,10.4071 3.18827558,10.4071 Z M3.18827558,10.7631 C3.02627558,10.7631 2.89427558,10.8951 2.89427558,11.0571 C2.89427558,11.2191 3.02627558,11.3511 3.18827558,11.3511 C3.35027558,11.3511 3.48227558,11.2191 3.48227558,11.0571 C3.48227558,10.8951 3.35027558,10.7631 3.18827558,10.7631 Z M7.22717558,1.0826 C7.92717558,1.0826 8.49817558,1.6526 8.49817558,2.3536 C8.49817558,3.0546 7.92717558,3.6246 7.22717558,3.6246 C7.05317558,3.6246 6.88317558,3.5886 6.72417558,3.5196 L6.35317558,3.9486 C6.48317558,4.1606 6.55417558,4.4076 6.55417558,4.6586 C6.55417558,4.8886 6.49717558,5.1096 6.38817558,5.3076 L6.57217558,5.4906 C6.81417558,5.3526 7.08617558,5.2816 7.36817558,5.2816 C8.26517558,5.2816 8.99617558,6.0116 8.99617558,6.9096 C8.99617558,7.8066 8.26517558,8.5366 7.36817558,8.5366 C6.47017558,8.5366 5.74017558,7.8066 5.74017558,6.9096 C5.74017558,6.5816 5.84017558,6.2636 6.02417558,5.9936 L5.86917558,5.8386 C5.66417558,5.9566 5.43117558,6.0196 5.19417558,6.0196 C4.95617558,6.0196 4.72917558,5.9586 4.52617558,5.8426 L4.14417558,6.1886 C4.23817558,6.3686 4.28717558,6.5676 4.28717558,6.7736 C4.28717558,7.4746 3.71717558,8.0446 3.01617558,8.0446 C2.31617558,8.0446 1.74517558,7.4746 1.74517558,6.7736 C1.74517558,6.0736 2.31617558,5.5026 3.01617558,5.5026 C3.23217558,5.5026 3.43817558,5.5566 3.62417558,5.6586 L4.00317558,5.3146 C3.89217558,5.1146 3.83317558,4.8886 3.83317558,4.6586 C3.83317558,4.4066 3.90417558,4.1596 4.03617558,3.9456 L3.57617558,3.4856 C3.46217558,3.5316 3.34017558,3.5556 3.21617558,3.5556 C2.68417558,3.5556 2.25117558,3.1216 2.25117558,2.5906 C2.25117558,2.0576 2.68417558,1.6256 3.21617558,1.6256 C3.74817558,1.6256 4.18117558,2.0576 4.18117558,2.5906 C4.18117558,2.7196 4.15517558,2.8456 4.10517558,2.9636 L4.58517558,3.4436 C4.77317558,3.3476 4.98117558,3.2986 5.19417558,3.2986 C5.40817558,3.2986 5.61617558,3.3486 5.80617558,3.4446 L6.15817558,3.0386 C6.02717558,2.8356 5.95617558,2.5976 5.95617558,2.3536 C5.95617558,1.6526 6.52617558,1.0826 7.22717558,1.0826 Z M7.36817558,6.0246 C6.88017558,6.0246 6.48317558,6.4216 6.48317558,6.9096 C6.48317558,7.3966 6.88017558,7.7926 7.36817558,7.7926 C7.85617558,7.7926 8.25317558,7.3966 8.25317558,6.9096 C8.25317558,6.4216 7.85617558,6.0246 7.36817558,6.0246 Z M3.01617558,6.2456 C2.72517558,6.2456 2.48817558,6.4826 2.48817558,6.7736 C2.48817558,7.0646 2.72517558,7.3016 3.01617558,7.3016 C3.30717558,7.3016 3.54417558,7.0646 3.54417558,6.7736 C3.54417558,6.4826 3.30717558,6.2456 3.01617558,6.2456 Z M5.19417558,4.0416 C4.85417558,4.0416 4.57717558,4.3186 4.57717558,4.6586 C4.57717558,4.9986 4.85417558,5.2756 5.19417558,5.2756 C5.53417558,5.2756 5.81117558,4.9986 5.81117558,4.6586 C5.81117558,4.3186 5.53417558,4.0416 5.19417558,4.0416 Z M7.22717558,1.8266 C6.93517558,1.8266 6.69917558,2.0626 6.69917558,2.3536 C6.69917558,2.6446 6.93517558,2.8816 7.22717558,2.8816 C7.51817558,2.8816 7.75517558,2.6446 7.75517558,2.3536 C7.75517558,2.0626 7.51817558,1.8266 7.22717558,1.8266 Z M3.21617558,2.3686 C3.09417558,2.3686 2.99517558,2.4676 2.99517558,2.5906 C2.99517558,2.7126 3.09417558,2.8116 3.21617558,2.8116 C3.33917558,2.8116 3.43817558,2.7126 3.43817558,2.5906 C3.43817558,2.4676 3.33917558,2.3686 3.21617558,2.3686 Z" id="icon-xljx_\u5f62\u72b6" fill="#595959" mask="url(#icon-xljx_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/xtgg.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-xtgg",use:"icon-xtgg-usage",viewBox:"0 0 15 14",content:'<symbol viewBox="0 0 15 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-xtgg">\r\n <title>ICON/\u7cfb\u7edf\u516c\u544a</title>\r\n <defs>\r\n <polygon id="icon-xtgg_path-1" points="0.0002 0.572 13.9996625 0.572 13.9996625 14.572 0.0002 14.572" />\r\n </defs>\r\n <g id="icon-xtgg_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-xtgg_ICON/\u7cfb\u7edf\u516c\u544a" transform="translate(0.428571, 0.000000)">\r\n <mask id="icon-xtgg_mask-2" fill="white">\r\n <use xlink:href="#icon-xtgg_path-1" />\r\n </mask>\r\n <g id="icon-xtgg_Clip-8"></g>\r\n <path d="M7.0002,0.5715 C7.43035385,0.5715 7.78552544,0.89358284 7.83762194,1.30965567 L7.8442,1.4155 L7.8402,1.4355 L10.8442,4.5595 L12.5642,4.5595 C13.1882,4.5565 13.7432,4.9575 13.9362,5.5525 C13.99095,5.71825 13.9990125,5.889625 13.9996219,6.06114062 L13.9992,12.5795 C13.9982,12.8645 13.9162,13.1605 13.7462,13.3915 C13.5008667,13.7257222 13.1480765,13.942216 12.7426115,13.9897112 L12.5882,13.9995 L1.5682,13.9995 C1.3742,13.9995 1.1812,13.9985 0.9932,13.9365 C0.5532,13.7925 0.2232,13.4615 0.0702,13.0265 C0.0297,12.9125 0.010575,12.7911875 0.00354375,12.6697344 L0.0002,12.5485 L0.0002,6.1425 C0.0002,5.8055 0.0362,5.4685 0.2412,5.1845 C0.5102,4.8105 0.9042,4.5815 1.3682,4.5605 L3.1562,4.5595 L6.1642,1.4595 L6.1562,1.4155 L6.1562,1.4155 C6.1562,0.9495 6.5342,0.5715 7.0002,0.5715 Z M1.516075,5.498 L1.3482,5.5025 C1.3082,5.5115 1.2672,5.5225 1.2272,5.5355 C1.1932,5.5525 1.1602,5.5715 1.1282,5.5935 L1.0422,5.6755 L1.0422,5.6755 L1.0312,5.6925 C1.0112,5.7225 0.9932,5.7545 0.9772,5.7865 C0.9632,5.8265 0.9522,5.8675 0.9442,5.9085 L0.94195,5.941625 L0.94195,5.941625 L0.9412,12.4375 C0.9412,12.5095 0.9392,12.5815 0.9442,12.6535 C0.9532,12.6935 0.9642,12.7335 0.9772,12.7725 C0.9942,12.8075 1.0132,12.8405 1.0342,12.8725 L1.09979259,12.9419444 L1.09979259,12.9419444 L1.125325,12.96425 L1.125325,12.96425 L1.1342,12.9695 C1.1642,12.9895 1.1952,13.0075 1.2272,13.0235 C1.2672,13.0375 1.3082,13.0485 1.3492,13.0565 L1.4232,13.0595 L1.4232,13.0595 L12.6502,13.0565 C12.6912,13.0475 12.7322,13.0365 12.7712,13.0225 C12.8062,13.0055 12.8392,12.9865 12.8712,12.9655 L12.9572,12.8835 L13.0222,12.7725 L13.0222,12.7725 C13.0362,12.7325 13.0472,12.6915 13.0562,12.6505 L13.0582875,12.5835 L13.0582875,6.1215 C13.0582875,6.0495 13.0590889,5.9775 13.0552,5.9055 C13.0472,5.8655 13.0362,5.8255 13.0222,5.7865 L12.9652,5.6865 L12.9652,5.6865 L12.8832,5.6015 L12.8662,5.5895 C12.8352,5.5695 12.8042,5.5515 12.7722,5.5355 C12.7322,5.5225 12.6922,5.5115 12.6512,5.5025 L12.5762,5.4995 L1.6832,5.4995 L1.516075,5.498 L1.516075,5.498 Z M7.0054,10.8012 C7.2684,10.8012 7.4634,11.0182 7.4754,11.2712 C7.48517778,11.4960889 7.30058519,11.6925333 7.08667023,11.7334112 L7.0054,11.7412 L3.6054,11.7412 C3.3424,11.7412 3.1474,11.5252 3.1354,11.2712 C3.12473333,11.0454222 3.31001728,10.8496691 3.52409684,10.8089558 L3.6054,10.8012 L7.0054,10.8012 Z M4.0201,8.748525 L4.4346,8.7504 L10.3936,8.7504 C10.6566,8.7504 10.8516,8.9664 10.8636,9.2204 C10.8742667,9.44528889 10.6897728,9.64094321 10.4751665,9.68164554 L10.3816,9.6894 L9.9676,9.69165 L9.9676,9.69165 L9.5536,9.6894 L3.5936,9.6894 C3.3316,9.6894 3.1366,9.4734 3.1236,9.2204 C3.11382222,8.99462222 3.29841481,8.79886914 3.51232977,8.75815583 L3.6056,8.7504 L4.0201,8.748525 L4.0201,8.748525 Z M4.0313,6.816925 L4.4453,6.8188 L10.4053,6.8188 C10.6683,6.8188 10.8633,7.0358 10.8753,7.2898 C10.8859667,7.51468889 10.7006827,7.71034321 10.4866032,7.75104554 L10.3933,7.7588 L9.9793,7.76105 L9.9793,7.76105 L9.5653,7.7588 L3.6053,7.7588 C3.3423,7.7588 3.1473,7.5438 3.1353,7.2898 C3.12463333,7.06313333 3.30991728,6.86728148 3.52399684,6.8265572 L3.6173,6.8188 L4.0313,6.816925 L4.0313,6.816925 Z M7.2742,2.2045 C7.1872,2.2345 7.0972,2.2595 7.0002,2.2595 C6.94086667,2.2595 6.88464444,2.24838889 6.82975556,2.23327778 L6.7482,2.2085 L4.4672,4.5595 L9.5392,4.5595 L7.2742,2.2045 Z" id="icon-xtgg_\u5f62\u72b6" fill="#595959" mask="url(#icon-xtgg_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/yhgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-yhgl",use:"icon-yhgl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-yhgl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u7528\u6237\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-yhgl_\u7528\u6237\u4e2d\u5fc3" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-yhgl_\u7528\u6237\u4e2d\u5fc3-\u9879\u76ee\u5217\u8868" transform="translate(-16.000000, -105.000000)" fill="#595959">\r\n <g id="icon-yhgl_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-yhgl_icon/\u7528\u6237\u7ba1\u7406">\r\n <g transform="translate(16.000000, 45.000000)">\r\n <g id="icon-yhgl_\u5f62\u72b6">\r\n <path fill="#595959" d="M6.0921,-0.0001 C8.0751,-0.0001 9.6881,1.6049 9.6881,3.5769 C9.6881,4.60543333 9.25080222,5.56689111 8.47946237,6.24907067 L8.3091,6.3909 L8.2901,6.3969 L8.1571,6.4969 L8.3391,6.5749 C8.6131,6.6839 8.8731,6.8129 9.1211,6.9569 L9.2191,6.9389 L9.2191,6.9389 C9.4021,6.9389 9.5731,7.0089 9.7021,7.1369 C9.8381,7.2739 10.1031,7.4759 10.2741,7.4759 C10.4341,7.4759 10.7101,7.2739 10.8471,7.1369 C10.9751,7.0089 11.1461,6.9389 11.3301,6.9389 C11.3854333,6.9389 11.4403222,6.94512222 11.4938778,6.95786296 L11.5731,6.9819 L12.4981,7.4899 C12.7238778,7.65256667 12.8208654,7.91794938 12.7602674,8.16454472 L12.7301,8.2559 C12.7001,8.3429 12.6651,8.4399 12.6651,8.5299 C12.6651,8.88281667 12.9365097,9.18363611 13.2782927,9.23132187 L13.3731,9.2379 C13.6246556,9.2379 13.8090506,9.38723333 13.8953826,9.63392743 L13.9231,9.7309 C13.9461,9.7969 14.0001,10.1879 14.0001,10.4599 L13.9950038,10.5859758 C13.9861408,10.7150429 13.9648143,10.9050429 13.9241,11.1629 C13.8923857,11.3866143 13.7725082,11.5589 13.6167356,11.6363052 L13.5361,11.6669 L13.5361,11.6809 L13.4281,11.6989 C13.0071,11.6989 12.6831,12.0239 12.6831,12.4069 C12.6831,12.4719 12.6931,12.5709 12.7461,12.6739 C12.8527667,12.9299 12.7950877,13.2056531 12.6137982,13.3698232 L12.5401,13.4259 L11.6251,13.9309 C11.5331,13.9769 11.4411,13.9999 11.3511,13.9999 C11.1951,13.9999 10.9851,13.9449 10.8591,13.7939 C10.7551,13.6689 10.4541,13.4249 10.2741,13.4249 C10.0851,13.4249 9.7971,13.6499 9.6881,13.7759 C9.5521,13.9139 9.3761,13.9879 9.2021,13.9879 C9.14276667,13.9879 9.08565556,13.9803444 9.03076667,13.9643444 L8.9501,13.9339 L8.8681,13.8879 L0.5161,13.8879 C0.259211111,13.8879 0.0513098765,13.7156531 0.00828106996,13.4814254 L0.0001,13.3909 L0.0001,12.1669 C0.0001,9.7802 1.40643889,7.64953778 3.60397189,6.67188656 L4.0171,6.4969 L3.8841,6.3969 L3.8651,6.3909 C2.9881,5.7039 2.4861,4.6789 2.4861,3.5769 C2.4861,1.6685129 3.99671394,0.103830281 5.89139355,0.00486884965 L6.0921,-0.0001 Z M9.2171,7.7739 L8.6231,8.0999 C8.6631,8.2349 8.6941,8.3869 8.6941,8.5489 C8.6941,9.2492125 8.21158047,9.85636094 7.54399624,10.0292198 L7.4081,10.0579 L7.38132222,10.3567519 C7.37865556,10.4000111 7.3771,10.4405667 7.3771,10.4779 C7.3771,10.6249 7.3921,10.7719 7.4081,10.9049 C8.1671,11.0459 8.6941,11.6749 8.6941,12.4069 C8.6941,12.4955667 8.68432222,12.5869 8.66535926,12.6794185 L8.6301,12.8189 L9.1781,13.0929 C9.2551,13.0219 9.3321,12.9609 9.4091,12.8989 C9.7261,12.6869 10.0231,12.5779 10.2741,12.5779 C10.5391,12.5779 10.8361,12.6939 11.1361,12.9139 L11.2721,13.0204 L11.2721,13.0204 L11.3691,13.1089 L11.9211,12.8029 C11.8811,12.6829 11.8541,12.5409 11.8541,12.3889 C11.8541,11.6399 12.4071,10.9989 13.1461,10.8789 C13.1611,10.7399 13.1721,10.5889 13.1721,10.4599 C13.1721,10.3169 13.1581,10.1449 13.1421,10.0319 C12.3821,9.8919 11.8541,9.2629 11.8541,8.5299 C11.8541,8.42656667 11.8629889,8.33523333 11.8822481,8.24641852 L11.9191,8.1139 L11.3671,7.8099 C11.3001,7.8689 11.2221,7.9289 11.1321,7.9889 C10.8381,8.1859 10.5561,8.2859 10.2931,8.2859 C10.0461,8.2859 9.7721,8.1829 9.4541,7.9699 C9.37535,7.9144 9.3101,7.8583375 9.26088125,7.81394687 L9.2171,7.7739 Z M6.5931,7.1539 L5.5811,7.1539 C3.06824706,7.40042941 1.14793824,9.43024343 1.03715264,11.9203001 L1.0321,12.1479 L1.0321,12.9269 L6.6691,12.8749 L7.7791,12.8389 C7.7831,12.7995667 7.78843333,12.7597889 7.79865556,12.7207519 L7.8181,12.6629 C7.8421,12.5929 7.8841,12.4719 7.8841,12.3889 C7.8841,12.0369 7.61269028,11.7353167 7.27090729,11.6874972 L7.1761,11.6809 C6.91565556,11.6809 6.7358037,11.5347272 6.65269808,11.2852237 L6.6261,11.1869 C6.6251,11.1849 6.5491,10.7839 6.5491,10.4599 C6.5491,10.1349 6.6251,9.7349 6.6251,9.7349 C6.6691,9.4489 6.8771,9.2379 7.1211,9.2379 C7.5421,9.2379 7.8661,8.9149 7.8661,8.5299 C7.8661,8.4069 7.8021,8.2599 7.8011,8.2589 C7.6911,7.9939 7.7721,7.6929 7.9901,7.5289 C7.6381,7.3841 7.27394,7.26234 6.88738,7.19434 L6.5931,7.1539 Z M10.2563,9.0343 C11.0413,9.0343 11.6803,9.6743 11.6803,10.4593 C11.6803,11.2453 11.0413,11.8843 10.2563,11.8843 C9.4703,11.8843 8.8303,11.2453 8.8303,10.4593 C8.8303,9.6743 9.4703,9.0343 10.2563,9.0343 Z M10.2563,9.8813 C9.9363,9.8813 9.6743,10.1373 9.6593,10.4653 C9.6593,10.7893 9.9263,11.0563 10.2563,11.0563 C10.4133,11.0563 10.5723,10.9923 10.6803,10.8843 C10.7883,10.7763 10.8523,10.6173 10.8523,10.4593 C10.8373,10.1373 10.5753,9.8813 10.2563,9.8813 Z M6.0871,1.0139 C4.6651,1.0169 3.5101,2.1659 3.5101,3.5769 C3.5101,4.9889 4.6651,6.1369 6.0871,6.1399 C7.5081,6.1369 8.6641,4.9889 8.6641,3.5769 C8.6641,2.1659 7.5081,1.0169 6.0871,1.0139 Z" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/yhzgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-yhzgl",use:"icon-yhzgl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-yhzgl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u7528\u6237\u7ec4</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-yhzgl_\u7528\u6237\u4e2d\u5fc3" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-yhzgl_\u7528\u6237\u4e2d\u5fc3-\u9879\u76ee\u5217\u8868" transform="translate(-16.000000, -145.000000)">\r\n <g id="icon-yhzgl_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-yhzgl_icon/\u7528\u6237\u7ec4">\r\n <g transform="translate(16.000000, 85.000000)">\r\n <g>\r\n <rect id="icon-yhzgl_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path fill="#595959" d="M6.9529238,2.008 C8.58063808,2.04078571 9.88290594,3.31677679 9.99178167,4.90974604 L10.0069238,5.189 L10.0069238,5.189 L9.9899238,5.338 L9.9899238,5.338 C9.9809238,5.513 9.9659238,5.686 9.9299238,5.853 L9.8859238,6 C9.8409238,6.165 9.7879238,6.325 9.7189238,6.478 L9.6249238,6.656 L9.6249238,6.656 C9.5569238,6.784 9.4829238,6.908 9.3969238,7.025 C9.3439238,7.099 9.2869238,7.167 9.2269238,7.236 C9.1519238,7.323 9.0729238,7.404 8.9889238,7.481 C8.9389238,7.527 8.8999238,7.582 8.8469238,7.626 C8.9579238,7.67 9.0559238,7.735 9.1609238,7.788 C9.1869238,7.73533333 9.21781269,7.68533333 9.25744232,7.64096296 L9.3239238,7.579 L9.3529238,7.555 L10.0829238,7.131 L10.1179238,7.131 C10.1799238,7.106 10.2459238,7.093 10.3129238,7.092 C10.4739238,7.093 10.6269238,7.16 10.7369238,7.278 C10.8389238,7.4 10.9749238,7.491 11.1259238,7.54 C11.2779238,7.501 11.4119238,7.411 11.5059238,7.287 C11.6189238,7.166 11.7749238,7.095 11.9399238,7.092 C11.9912571,7.09333333 12.0425905,7.10088889 12.0918497,7.11496296 L12.1639238,7.141 L12.8709238,7.555 C13.0704238,7.695875 13.1604394,7.94164062 13.1074746,8.17305078 L13.0759238,8.271 C13.0499238,8.333 13.0369238,8.4 13.0369238,8.467 C13.0359238,8.724 13.2369238,8.938 13.4949238,8.953 C13.7242571,8.953 13.9180349,9.11181481 13.9695027,9.32830864 L13.9819238,9.412 L13.9819238,9.441 C14.0059238,9.63 14.0059238,9.822 13.9819238,10.011 C13.9779238,10.1403333 13.9685905,10.2696667 13.9539238,10.3984074 L13.9279238,10.591 C13.9156738,10.807125 13.7633144,10.9842031 13.5599453,11.0351445 L13.4699238,11.049 L13.4359238,11.049 C13.1769238,11.062 12.9729238,11.276 12.9729238,11.536 L12.9831738,11.6205 L12.9831738,11.6205 L13.0069238,11.702 L13.0069238,11.741 C13.0926738,11.953625 13.0436738,12.1930469 12.8894004,12.3540879 L12.7879238,12.443 L12.0909238,12.852 C12.0179238,12.872 11.9429238,12.884 11.8669238,12.886 C11.7049238,12.886 11.5499238,12.819 11.4379238,12.701 C11.3419238,12.57 11.2079238,12.473 11.0529238,12.423 C10.9009238,12.469 10.7659238,12.559 10.6629238,12.681 C10.6369238,12.71 10.5979238,12.715 10.5669238,12.737 C10.4933238,12.8434 10.3851638,12.92484 10.2552438,12.95316 L10.1539238,12.964 L2.1019238,12.964 L2.0579238,12.506 L2.0579238,12.019 C2.0629238,10.088 3.2389238,8.353 5.0309238,7.633 C4.9469238,7.565 4.8829238,7.48 4.8079238,7.405 L4.7189238,7.314 L4.7189238,7.314 C4.6189238,7.204 4.5259238,7.092 4.4419238,6.97 L4.3717988,6.8615 L4.3717988,6.8615 L4.3069238,6.75 C4.2479238,6.649 4.1899238,6.55 4.1439238,6.443 L4.0785488,6.27175 L4.0785488,6.27175 L4.0229238,6.096 C3.9959238,6.009 3.9639238,5.925 3.9449238,5.836 C3.9149238,5.694 3.9049238,5.546 3.8939238,5.398 L3.8809238,5.2975 L3.8809238,5.2975 L3.8709238,5.197 L3.8719238,5.155 L3.8719238,5.155 C3.8709238,5.093 3.8859238,5.034 3.8889238,4.972 C3.8959238,4.828 3.9009238,4.683 3.9279238,4.545 C3.9479238,4.436 3.9869238,4.335 4.0179238,4.23 C4.0449238,4.142 4.0629238,4.05 4.0979238,3.965 C4.1579238,3.814 4.2369238,3.673 4.3199238,3.534 L4.3709238,3.438 L4.3709238,3.438 C4.8837363,2.6439375 5.74635349,2.09508984 6.74536594,2.01722607 L6.9529238,2.008 Z M7.1419238,8.303 L6.9949238,8.303 L6.9309238,8.31 L6.7359238,8.31 C4.78398831,8.31483871 3.18137645,9.82654527 3.0419481,11.752105 L3.0329238,11.946 L9.0779238,11.946 C9.07659046,11.892 9.08059046,11.838 9.09318306,11.7851852 L9.1189238,11.707 C9.1429238,11.646 9.1589238,11.582 9.1629238,11.517 C9.1629238,11.257 8.9589238,11.042 8.6999238,11.03 C8.4419238,11.03 8.2279238,10.829 8.2119238,10.572 L8.2119238,10.484 L8.2119238,10.484 C8.1879238,10.322 8.1739238,10.159 8.1689238,9.996 L8.1832988,9.752125 L8.1832988,9.752125 L8.2119238,9.509 L8.2119238,9.436 C8.2119238,9.20666667 8.37073861,9.01209877 8.58653011,8.96115775 L8.6699238,8.949 L8.7039238,8.949 C8.8169238,8.943 8.9149238,8.894 8.9949238,8.826 C8.5162988,8.543375 7.9764238,8.35645312 7.39405661,8.31279883 L7.1419238,8.303 Z M11.8039238,8.062 L11.7356738,8.121 L11.7356738,8.121 L11.6629238,8.174 C11.3292874,8.46218182 10.8493701,8.48838017 10.4898885,8.25259504 L10.3155488,8.122375 L10.3155488,8.122375 L10.2489238,8.067 L9.9469238,8.247 C9.9689238,8.338 9.9799238,8.431 9.9809238,8.525 C10.0019238,9.095 9.6259238,9.602 9.0749238,9.748 C9.0699238,9.831 9.0699238,9.914 9.0749238,9.996 C9.0699238,10.079 9.0699238,10.162 9.0749238,10.245 C9.6179238,10.403 9.9879238,10.903 9.9809238,11.468 L9.9702988,11.60525 L9.9702988,11.60525 L9.9469238,11.741 L10.2399238,11.911 C10.2809238,11.868 10.3269238,11.829 10.3759238,11.794 C10.5509238,11.628 10.7819238,11.532 11.0239238,11.527 C11.2759238,11.534 11.5159238,11.638 11.6919238,11.819 L11.8179238,11.921 L12.1059238,11.741 C12.0839238,11.65 12.0729238,11.556 12.0719238,11.463 C12.0479238,10.897 12.4209238,10.39 12.9679238,10.245 C12.9729238,10.154 12.9829238,10.062 12.9969238,9.972 C13.0009238,9.896 13.0009238,9.819 12.9969238,9.743 C12.4549238,9.585 12.0839238,9.085 12.0909238,8.52 L12.1015488,8.38025 L12.1015488,8.38025 L12.1249238,8.242 L11.8039238,8.062 Z M11.0243238,8.934 C11.5903238,8.955 12.0423238,9.415 12.0523238,9.982 C12.0523238,10.5158667 11.6507416,10.9565244 11.1321401,11.0177843 L11.0193238,11.025 L11.0243238,11.039 C10.4483238,11.034 9.9853238,10.563 9.9913238,9.987 C9.9857238,9.4494 10.3886749,9.00326667 10.9099229,8.94129333 L11.0243238,8.934 Z M11.0957711,9.6456582 L11.0193238,9.636 L11.0243238,9.651 C10.8383238,9.651 10.6873238,9.802 10.6883238,9.987 C10.6883238,10.173 10.8383238,10.323 11.0243238,10.323 C11.2023238,10.308 11.3413238,10.161 11.3453238,9.982 C11.3523238,9.821875 11.2452457,9.6831875 11.0957711,9.6456582 L11.0957711,9.6456582 Z M4.3097238,2 L4.3097238,3.033 L4.2017238,3.033 C3.1807238,3.042 2.3147238,3.788 2.1557238,4.797 C1.9647238,5.814 2.5057238,6.826 3.4567238,7.234 C3.6447238,7.322 3.7647238,7.512 3.7637238,7.721 C3.7637238,7.874 3.6770538,8.09909 3.3185478,8.327015 L3.1887238,8.403 L3.1597238,8.403 C2.2337238,8.623 1.4287238,9.193 0.912723798,9.991 C0.854323798,10.0814 0.768403798,10.1494 0.668275798,10.185272 L0.590723798,10.206 L0.498723798,10.22 C0.398723798,10.22 0.302723798,10.19 0.220723798,10.132 C-0.00227620214,9.977 -0.0662762021,9.674 0.0747237979,9.441 C0.606723798,8.624 1.3777238,7.991 2.2817238,7.628 C1.2767238,6.807 0.873723798,5.455 1.2637238,4.217 C1.62358743,2.97227273 2.72331057,2.09383058 4.00364989,2.0069768 L4.1877238,2 L4.3097238,2 Z M6.9309238,3.033 C5.7549238,3.001 4.7759238,3.928 4.7439238,5.103 C4.7109238,6.279 5.6389238,7.258 6.8139238,7.29 C7.9899238,7.323 8.9689238,6.396 9.0009238,5.22 L9.0019238,5.162 L9.0019238,5.162 C9.0159238,4.004 8.0899238,3.052 6.9309238,3.033 Z M9.6645238,2.01465824 C10.7425238,2.0107 11.7415238,2.5787 12.2905238,3.5057 C12.8150571,4.37276667 12.8944527,5.43322 12.5157019,6.3642843 L12.4275238,6.5617 L12.3645238,6.6727 L11.4675238,6.2197 L11.5205238,6.1127 C11.8435238,5.4517 11.8085238,4.6717 11.4285238,4.0417 C11.0888315,3.46477692 10.4909617,3.09320296 9.83075957,3.03945148 L9.6645238,3.0327 L9.5425238,3.0327 L9.5425238,2.01465824 L9.6645238,2.01465824 Z" id="icon-yhzgl_\u5f62\u72b6" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/yyflpz.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-yyflpz",use:"icon-yyflpz-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-yyflpz">\r\n <title>ICON/\u5e94\u7528\u5206\u7c7b\u914d\u7f6e</title>\r\n <defs>\r\n <polygon id="icon-yyflpz_path-1" points="0 0 14 0 14 14 0 14" />\r\n </defs>\r\n <g id="icon-yyflpz_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-yyflpz_ICON/\u5e94\u7528\u5206\u7c7b\u914d\u7f6e" transform="translate(0.285714, 0.000000)">\r\n <mask id="icon-yyflpz_mask-2" fill="white">\r\n <use xlink:href="#icon-yyflpz_path-1" />\r\n </mask>\r\n <g id="icon-yyflpz_Clip-2"></g>\r\n <path d="M2.09626683,1.313 C1.86426683,1.313 1.67526683,1.502 1.67526683,1.734 L1.67526683,4.814 C1.67526683,5.047 1.86426683,5.235 2.09626683,5.235 L5.17626683,5.235 C5.40926683,5.235 5.59726683,5.047 5.59726683,4.814 L5.59726683,1.734 C5.59726683,1.502 5.40926683,1.313 5.17626683,1.313 L2.09626683,1.313 Z M1.78826683,6.24 C1.16126683,6.24 0.670266827,5.749 0.670266827,5.122 L0.670266827,1.427 C0.670266827,0.799 1.16126683,0.308 1.78826683,0.308 L5.48426683,0.308 C6.11126683,0.308 6.60226683,0.799 6.60226683,1.427 L6.60226683,5.122 C6.60226683,5.749 6.11126683,6.24 5.48426683,6.24 L1.78826683,6.24 Z M8.87126683,1.313 C8.63926683,1.313 8.45026683,1.502 8.45026683,1.734 L8.45026683,4.814 C8.45026683,5.047 8.63926683,5.235 8.87126683,5.235 L11.9512668,5.235 C12.1832668,5.235 12.3732668,5.047 12.3732668,4.814 L12.3732668,1.734 C12.3732668,1.502 12.1832668,1.313 11.9512668,1.313 L8.87126683,1.313 Z M8.56426683,6.24 C7.93726683,6.24 7.44526683,5.749 7.44526683,5.122 L7.44526683,1.427 C7.44526683,0.799 7.93726683,0.308 8.56426683,0.308 L12.2592668,0.308 C12.8872668,0.308 13.3782668,0.799 13.3782668,1.427 L13.3782668,5.122 C13.3782668,5.749 12.8872668,6.24 12.2592668,6.24 L8.56426683,6.24 Z M8.45026683,10.204 C8.45026683,11.2 9.26126683,12.011 10.2582668,12.011 C10.8782668,12.011 11.3122668,11.708 11.5682668,11.452 C11.9032668,11.085 12.0652668,10.675 12.0652668,10.204 C12.0652668,9.207 11.2542668,8.396 10.2582668,8.396 C9.26126683,8.396 8.45026683,9.207 8.45026683,10.204 Z M12.8002668,13.206 L12.0002668,12.405 C11.4882668,12.8 10.8752668,13.016 10.2582668,13.016 C8.70726683,13.016 7.44526683,11.754 7.44526683,10.204 C7.44526683,8.653 8.70726683,7.392 10.2582668,7.392 C11.8082668,7.392 13.0702668,8.653 13.0702668,10.204 C13.0702668,10.706 12.9402668,11.183 12.6922668,11.594 L13.5672668,12.468 C13.6332668,12.534 13.6702668,12.621 13.6702668,12.713 C13.6702668,12.805 13.6342668,12.892 13.5672668,12.959 L13.3212668,13.205 C13.2132668,13.281 13.1302668,13.308 13.0492668,13.308 C12.9552668,13.308 12.8672668,13.272 12.8002668,13.206 Z M2.09626683,8.396 C1.86426683,8.396 1.67526683,8.585 1.67526683,8.817 L1.67526683,11.897 C1.67526683,12.13 1.86426683,12.319 2.09626683,12.319 L5.17626683,12.319 C5.40926683,12.319 5.59726683,12.13 5.59726683,11.897 L5.59726683,8.817 C5.59726683,8.585 5.40926683,8.396 5.17626683,8.396 L2.09626683,8.396 Z M1.78826683,13.324 C1.16126683,13.324 0.670266827,12.832 0.670266827,12.205 L0.670266827,8.51 C0.670266827,7.883 1.16126683,7.392 1.78826683,7.392 L5.48426683,7.392 C6.11126683,7.392 6.60226683,7.883 6.60226683,8.51 L6.60226683,12.205 C6.60226683,12.832 6.11126683,13.324 5.48426683,13.324 L1.78826683,13.324 Z" id="icon-yyflpz_Fill-1" fill="#595959" mask="url(#icon-yyflpz_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/menu/zxtl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-zxtl",use:"icon-zxtl-usage",viewBox:"0 0 14 13",content:'<symbol viewBox="0 0 14 13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-zxtl">\r\n <title>ICON/\u5728\u7ebf\u63a8\u7406\u670d\u52a1</title>\r\n <defs>\r\n <polygon id="icon-zxtl_path-1" points="0.0006 1.0003 14 1.0003 14 15.0003 0.0006 15.0003" />\r\n </defs>\r\n <g id="icon-zxtl_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-zxtl_ICON/\u5728\u7ebf\u63a8\u7406\u670d\u52a1" transform="translate(0.000000, -1.000000)">\r\n <g id="icon-zxtl_\u7f16\u7ec4" transform="translate(0.000000, 0.488000)"></g>\r\n <mask id="icon-zxtl_mask-2" fill="white">\r\n <use xlink:href="#icon-zxtl_path-1" />\r\n </mask>\r\n <g id="icon-zxtl_Clip-2"></g>\r\n <path d="M11.7731,12.4416 C12.0621,12.4416 12.2961,12.6756 12.2961,12.9646 C12.2961,13.2214889 12.1112111,13.434921 11.8671508,13.4791789 L11.7731,13.4876 L2.2271,13.4876 C1.9381,13.4876 1.7041,13.2536 1.7041,12.9646 C1.7041,12.7077111 1.88898889,12.494279 2.13304925,12.4500211 L2.2271,12.4416 L11.7731,12.4416 Z M13.5786,1.0003 C13.7857111,1.0003 13.9580568,1.14884321 13.9937989,1.34549616 L14.0006,1.4213 L14.0006,11.1233 C14.0006,11.3295222 13.8512667,11.5017691 13.6544381,11.5375003 L13.5786,11.5443 L0.4216,11.5443 C0.214488889,11.5443 0.0429333333,11.3949667 0.00736680384,11.1988405 L0.0006,11.1233 L0.0006,1.4213 C0.0006,1.21418889 0.14914321,1.04263333 0.345796159,1.0070668 L0.4216,1.0003 L13.5786,1.0003 Z M12.5376,2.0413 L1.4626,2.0413 C1.25548889,2.0413 1.08393333,2.19063333 1.0483668,2.38746187 L1.0416,2.4633 L1.0416,10.0813 C1.0416,10.2884111 1.19014321,10.4607568 1.38679616,10.4964989 L1.4626,10.5033 L12.5376,10.5033 C12.7447111,10.5033 12.9162667,10.3539667 12.9518332,10.1571381 L12.9586,10.0813 L12.9586,2.4633 C12.9586,2.25618889 12.8100568,2.08384321 12.6134038,2.0481011 L12.5376,2.0413 Z M11.4191,7.717 C11.5191,7.621 11.6771,7.622 11.7731,7.721 C11.8531,7.8035 11.8650444,7.92697222 11.8100907,8.02139352 L11.7691,8.074 L10.6681,9.15 C10.6201,9.197 10.5571,9.221 10.4931,9.221 C10.4557667,9.221 10.4179889,9.21255556 10.3833222,9.19566667 L10.3341,9.164 L9.6261,8.577 C9.5201,8.489 9.5051,8.331 9.5931,8.225 C9.66726667,8.13583333 9.78865556,8.11125 9.88840093,8.15645833 L9.9451,8.192 L10.4801,8.635 L11.4191,7.717 Z M8.2604,8.1023 C8.4434,8.1023 8.5914,8.2503 8.5914,8.4343 C8.5914,8.594425 8.4780875,8.72775313 8.32716367,8.7585832 L8.2604,8.7653 L2.6554,8.7653 C2.4724,8.7653 2.3234,8.6173 2.3234,8.4343 C2.3234,8.2733 2.43747812,8.1398625 2.58859336,8.10901875 L2.6554,8.1023 L8.2604,8.1023 Z M11.4191,5.3972 C11.5191,5.3012 11.6771,5.3022 11.7731,5.4012 C11.8531,5.4837 11.8650444,5.60717222 11.8100907,5.70159352 L11.7691,5.7542 L10.6681,6.8302 C10.6201,6.8772 10.5571,6.9012 10.4931,6.9012 C10.4557667,6.9012 10.4179889,6.89275556 10.3833222,6.87586667 L10.3341,6.8442 L9.6261,6.2572 C9.5201,6.1692 9.5051,6.0112 9.5931,5.9052 C9.66726667,5.81686667 9.78865556,5.79242222 9.88840093,5.837075 L9.9451,5.8722 L10.4801,6.3152 L11.4191,5.3972 Z M8.2604,5.7824 C8.4434,5.7824 8.5914,5.9304 8.5914,6.1144 C8.5914,6.274525 8.4780875,6.40785313 8.32716367,6.4386832 L8.2604,6.4454 L2.6554,6.4454 C2.4724,6.4454 2.3234,6.2974 2.3234,6.1144 C2.3234,5.9534 2.43747812,5.8199625 2.58859336,5.78911875 L2.6554,5.7824 L8.2604,5.7824 Z M11.4191,3.1833 C11.5191,3.0873 11.6771,3.0883 11.7731,3.1873 C11.8531,3.2698 11.8650444,3.39327222 11.8100907,3.48769352 L11.7691,3.5403 L10.6681,4.6163 C10.6201,4.6633 10.5571,4.6873 10.4931,4.6873 C10.4557667,4.6873 10.4179889,4.67885556 10.3833222,4.66196667 L10.3341,4.6303 L9.6261,4.0433 C9.5201,3.9553 9.5051,3.7973 9.5931,3.6913 C9.66726667,3.60296667 9.78865556,3.57852222 9.88840093,3.623175 L9.9451,3.6583 L10.4801,4.1013 L11.4191,3.1833 Z M8.2604,3.5686 C8.4434,3.5686 8.5914,3.7166 8.5914,3.8996 C8.5914,4.059725 8.4780875,4.19381875 8.32716367,4.22484023 L8.2604,4.2316 L2.6554,4.2316 C2.4724,4.2316 2.3234,4.0826 2.3234,3.8996 C2.3234,3.739475 2.43747812,3.60614688 2.58859336,3.5753168 L2.6554,3.5686 L8.2604,3.5686 Z" id="icon-zxtl_\u5f62\u72b6" fill="#595959" mask="url(#icon-zxtl_mask-2)" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/message.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-message">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path class="icon-svg" d="M513.4 97.2c-220.5 0-399.2 156.4-399.2 349.3 0 110.3 58.5 208.4 149.7 272.5v176.7l174.9-106.1c24.2 4 49.1 6.3 74.6 6.3 220.5 0 399.2-156.4 399.2-349.3 0.1-193-178.7-349.4-399.2-349.4z m124.8 474.1H388.7c-13.8 0-25-11.2-25-25s11.2-25 25-25h249.5c13.8 0 25 11.2 25 25s-11.2 25-25 25z m49.9-149.8H338.8c-13.8 0-25-11.2-25-25s11.2-25 25-25h349.3c13.8 0 25 11.2 25 25 0 13.9-11.2 25-25 25z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/modelCount.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-modelCount",use:"icon-modelCount-usage",viewBox:"0 0 70 67",content:'<symbol viewBox="0 0 70 67" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-modelCount">\r\n <title>\u7f16\u7ec4</title>\r\n <g id="icon-modelCount_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-modelCount_\u7f16\u7ec4">\r\n <g id="icon-modelCount_\u7f16\u7ec4-10">\r\n <rect id="icon-modelCount_\u77e9\u5f62\u5907\u4efd" fill="#EDB577" x="0" y="0" width="70" height="67" rx="4" />\r\n <path d="M35.5057837,33.4318271 C35.2527004,33.4225679 35.0088763,33.3577539 34.7835704,33.2435578 L25.6417081,28.9411419 C24.8731991,28.5985535 24.5275244,27.6973301 24.8701127,26.9288211 C25.0244318,26.5831463 25.2991198,26.3084584 25.6417081,26.1572257 L34.3298723,22.0461654 C35.0728649,21.6974075 35.9325297,21.6974075 36.6755223,22.0461654 L45.3667729,26.1572257 C46.1352819,26.499814 46.4809567,27.4010374 46.1383683,28.1695465 C45.9840492,28.5152212 45.7093613,28.7899092 45.3667729,28.9411419 L36.2249106,33.2404714 C36.0026912,33.3577539 35.7557806,33.4225679 35.5057837,33.4318271 Z M33.1447018,47.3977038 C32.9101368,47.3977038 32.6786582,47.3390626 32.4718706,47.2279528 L24.2127134,43.3545439 C23.6880286,43.079856 23.3639585,42.5366528 23.3700446,41.9471539 L23.3700446,32.0707328 C23.3732177,31.5151841 23.6695103,31.0059311 24.1448131,30.721984 C24.5861656,30.4719871 25.1262824,30.4719871 25.567635,30.721984 L33.8113602,34.5923066 C34.3082677,34.8608218 34.626165,35.3762475 34.6477696,35.9410553 L34.6477696,45.829822 C34.6415969,46.3822843 34.351477,46.8915372 33.8792606,47.1785707 C33.6570411,47.3112851 33.4039578,47.3884447 33.1447018,47.3977038 L33.1447018,47.3977038 Z M37.8637793,47.3978197 C37.6076096,47.3978197 37.3545263,47.3298034 37.1292204,47.2032618 C36.657004,46.9162283 36.3668842,46.4069753 36.3607114,45.854513 L36.3607114,35.9379689 C36.3730569,35.3762475 36.6816951,34.8639081 37.1693434,34.5892202 L45.4686235,30.6942066 C45.9068897,30.462728 46.4377473,30.4750735 46.863668,30.7281568 C47.3420571,31.0090175 47.6352634,31.5213569 47.6383498,32.0769056 L47.6383498,41.9471539 C47.6506953,42.53048 47.3389708,43.0736832 46.8297178,43.3545439 L38.5396968,47.2310392 C38.3298229,47.3421489 38.0983443,47.4007902 37.8637793,47.3978197 L37.8637793,47.3978197 Z" id="icon-modelCount_\u5f62\u72b6" fill="#FFFFFF" fill-rule="nonzero" />\r\n </g>\r\n <g id="icon-modelCount_\u6a21\u578b\u7ba1\u7406" transform="translate(21.000000, 20.000000)" fill="#000000" fill-rule="nonzero" opacity="0">\r\n <rect id="icon-modelCount_\u77e9\u5f62" x="0" y="0" width="29" height="29" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/noData.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-noData",use:"icon-noData-usage",viewBox:"0 0 53 45",content:'<symbol viewBox="0 0 53 45" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-noData">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>\u65e0\u6570\u636e</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <linearGradient x1="91.2340926%" y1="24.5507183%" x2="45.9515947%" y2="59.9190793%" id="icon-noData_linearGradient-1">\r\n <stop stop-color="#D7DFEE" offset="0%" />\r\n <stop stop-color="#EBEFF6" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="100%" y1="15.0653331%" x2="4.07455978%" y2="84.9346669%" id="icon-noData_linearGradient-2">\r\n <stop stop-color="#D6DCE9" stop-opacity="0.480823864" offset="0%" />\r\n <stop stop-color="#DBDEE8" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="10.413447%" x2="18.1302607%" y2="88.2413582%" id="icon-noData_linearGradient-3">\r\n <stop stop-color="#D1DAED" offset="0%" />\r\n <stop stop-color="#EBEFF6" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="61.1423736%" x2="86.734694%" y2="89.1583562%" id="icon-noData_linearGradient-4">\r\n <stop stop-color="#F8F9FA" offset="0%" />\r\n <stop stop-color="#E1E6F0" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="0%" x2="100%" y2="0%" id="icon-noData_linearGradient-5">\r\n <stop stop-color="#3099F1" offset="0%" />\r\n <stop stop-color="#61B5FB" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="38.4507935%" y1="27.6876083%" x2="86.734694%" y2="100%" id="icon-noData_linearGradient-6">\r\n <stop stop-color="#DBDFE6" offset="0%" />\r\n <stop stop-color="#E9EDF1" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-noData_linearGradient-7">\r\n <stop stop-color="#AEB6C2" stop-opacity="0.448918269" offset="0%" />\r\n <stop stop-color="#C6CDDC" stop-opacity="0.389805507" offset="100%" />\r\n </linearGradient>\r\n </defs>\r\n <g id="icon-noData_\u6846\u67b6\u5e03\u5c40" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-noData_\u65e0\u6570\u636e-\u7a7a\u72b6\u6001" transform="translate(-604.000000, -780.000000)">\r\n <g id="icon-noData_\u7f16\u7ec4-2" transform="translate(601.000000, 769.000000)">\r\n <g id="icon-noData_\u65e0\u6570\u636e">\r\n <g id="icon-noData_\u7f16\u7ec4">\r\n <rect id="icon-noData_\u77e9\u5f62" x="0" y="0" width="60" height="60" />\r\n <g id="icon-noData_\u7f16\u7ec4-4" transform="translate(30.355880, 20.110659) rotate(17.000000) translate(-30.355880, -20.110659) translate(20.105880, 7.860659)">\r\n <path d="M13.9303357,7.20542986 L17.3544145,8.7040724 L19.3121695,1.2 L13.9303357,7.20542986 Z M10.1895212,5.63485647 L13.1234564,6.88842045 C13.1234564,6.88570552 19.3121695,1.2 19.3121695,1.2 L10.1895212,5.63485647 Z" id="icon-noData_\u5f62\u72b6" fill="url(#icon-noData_linearGradient-1)" fill-rule="nonzero" transform="translate(14.750845, 4.952036) rotate(-13.000000) translate(-14.750845, -4.952036) " />\r\n <path d="M14.7771572,11.8492012 C12.4722126,15.4251198 10.0562774,16.8328043 7.52935185,16.0722547 C3.73896345,14.9314303 5.4895004,11.8113058 7.82681616,12.7368562 C10.1641319,13.6624066 10.0567515,18.4205098 1.5,22.9472951" id="icon-noData_\u8def\u5f84-3" stroke="url(#icon-noData_linearGradient-2)" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" transform="translate(8.138579, 17.398248) rotate(-15.000000) translate(-8.138579, -17.398248) " />\r\n <polygon id="icon-noData_\u8def\u5f84" fill="url(#icon-noData_linearGradient-3)" fill-rule="nonzero" points="14.3299769 7.71934183 14.4611314 10.326494 16.4114492 8.05912598" />\r\n </g>\r\n </g>\r\n <g id="icon-noData_\u7f16\u7ec4\u5907\u4efd-2" transform="translate(3.300000, 27.600000)">\r\n <polygon id="icon-noData_\u8def\u5f84" fill="#E4E8EF" fill-rule="nonzero" points="45.4135 0.10000002 22.4135 0.10000002 29.627 10.1 52.627 10.1" />\r\n <polygon id="icon-noData_\u8def\u5f84" fill="url(#icon-noData_linearGradient-4)" points="20.9135 0.10000002 44.9135 0.10000002 44.9135 28.1 20.9135 28.1" />\r\n <polygon id="icon-noData_\u8def\u5f84" fill="url(#icon-noData_linearGradient-5)" points="34.7 7.60000002 41.7 7.60000002 41.7 9.6 34.7 9.6" />\r\n <polygon id="icon-noData_\u8def\u5f84" fill="url(#icon-noData_linearGradient-6)" points="7.41349998 0.10000002 31.4135 0.10000002 31.4135 28.1 7.41349998 28.1" />\r\n <path d="M12.2,13.6 L27.2,13.6 L27.2,15.6 L12.2,15.6 L12.2,13.6 Z M12.2,17.1 L19.2,17.1 L19.2,19.1 L12.2,19.1 L12.2,17.1 Z" id="icon-noData_\u5f62\u72b6" fill="url(#icon-noData_linearGradient-7)" />\r\n <polygon id="icon-noData_\u8def\u5f84" fill="#F0F2F8" fill-rule="nonzero" points="7.2135 0.10000002 30.2135 0.10000002 23 10.1 -6.39488462e-15 10.1" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/node-arith.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-node-arith",use:"icon-node-arith-usage",viewBox:"0 0 186.1 205.36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 186.1 205.36" id="icon-node-arith">\r\n <path d="M57.18 121.06a2.34 2.34 0 0 1-1.06-4.42l3.68-1.88a2.33 2.33 0 1 1 2.12 4.16l-3.68 1.88a2.24 2.24 0 0 1-1.06.26zm11-5.64a2.34 2.34 0 0 1-1.02-4.42l3.68-1.88a2.34 2.34 0 0 1 2.16 4.17l-3.68 1.88a2.36 2.36 0 0 1-1.1.25zm11-5.63a2.34 2.34 0 0 1-1.06-4.43l3.68-1.88a2.34 2.34 0 0 1 2.2 4.17l-3.68 1.88a2.37 2.37 0 0 1-1.06.26z" />\r\n <path d="M128.79 120.9a2.22 2.22 0 0 1-1-.24L124 118.8a2.34 2.34 0 1 1 2.06-4.2l3.81 1.86a2.34 2.34 0 0 1-1 4.44zm-11.44-5.59a2.34 2.34 0 0 1-1-.24l-3.81-1.87a2.34 2.34 0 1 1 2-4.2l3.82 1.86a2.35 2.35 0 0 1-1 4.45zm-11.43-5.6a2.35 2.35 0 0 1-1-.24l-3.81-1.87a2.34 2.34 0 0 1 2.06-4.2l3.81 1.87a2.34 2.34 0 0 1-1 4.44z" />\r\n <path d="M93.87 85.48a2.34 2.34 0 0 1-2.34-2.34V80a2.34 2.34 0 1 1 4.68 0v3.13a2.34 2.34 0 0 1-2.34 2.35zm0-12.49a2.34 2.34 0 0 1-2.34-2.34V66a2.34 2.34 0 1 1 4.68 0v4.68A2.34 2.34 0 0 1 93.87 73zm0-10.8a2.34 2.34 0 0 1-2.34-2.34v-4.68a2.34 2.34 0 1 1 4.68 0v4.68a2.34 2.34 0 0 1-2.34 2.34z" />\r\n <path d="M175.19 132.93v-63a16.12 16.12 0 0 0-5.09-31.33 15.89 15.89 0 0 0-11.85 5.32l-48-23.48a16.28 16.28 0 0 0 .6-4.33 16 16 0 1 0-32 0 15.72 15.72 0 0 0 .19 2.29L29.17 43.89a15.91 15.91 0 0 0-11.82-5.29A16.12 16.12 0 0 0 12 69.89v62.72a16.12 16.12 0 0 0 4 31.7 15.87 15.87 0 0 0 10.56-4L79.21 186a17 17 0 0 0-.32 3.21 16 16 0 1 0 31.61-3.5l49.35-25.2a15.87 15.87 0 0 0 10.25 3.76 16.12 16.12 0 0 0 5.09-31.38zM170.1 46.6a8.12 8.12 0 1 1-8 8.11 8.07 8.07 0 0 1 8-8.11zM94.89 8a8.12 8.12 0 1 1-8 8.11 8.06 8.06 0 0 1 8-8.11zM82.15 25.82a15.88 15.88 0 0 0 24.15 1.58L154.54 51a16.15 16.15 0 0 0-.44 3.7 16.4 16.4 0 0 0 .51 4L106.9 83.07a15.88 15.88 0 0 0-24.19.2L32.79 58.84a16.08 16.08 0 0 0 .56-4.13 15.89 15.89 0 0 0-.46-3.71zm12.74 76a8.12 8.12 0 1 1 8-8.12 8.07 8.07 0 0 1-8 8.11zM9.35 54.71a8 8 0 1 1 8 8.12 8.07 8.07 0 0 1-8-8.12zM16 156.31a8.12 8.12 0 1 1 8-8.12 8.07 8.07 0 0 1-8 8.12zm15.07-2.74a16.1 16.1 0 0 0-11.06-21v-62a15.86 15.86 0 0 0 8.86-4.74l50.35 24.64a16.28 16.28 0 0 0-.33 3.22 16.1 16.1 0 0 0 12 15.58v64.4a16 16 0 0 0-8.17 5.17zm63.82 43.79a8.12 8.12 0 1 1 8-8.11 8.07 8.07 0 0 1-8 8.11zm4-23.7v-64.38a16.11 16.11 0 0 0 12-15.59 16.56 16.56 0 0 0-.38-3.48l47.94-24.48a15.88 15.88 0 0 0 8.76 4.82v61.81a16.11 16.11 0 0 0-12 21.6l-48.28 24.66a16 16 0 0 0-8.06-4.96zm71.23-17.35a8.12 8.12 0 1 1 8-8.12 8.07 8.07 0 0 1-8.02 8.12z" />\r\n <path d="M143.9 70.48v-.15-.37-.21c0-.07 0-.21-.07-.31s-.05-.14-.07-.21a2.49 2.49 0 0 0-.11-.29l-.09-.21-.15-.26-.12-.19A2.15 2.15 0 0 0 143 68c0-.06-.1-.12-.15-.18l-.2-.21-.18-.16a2.11 2.11 0 0 0-.23-.19l-.2-.14h-.08l-.18-.1-.15-.08-46.45-22.76a4 4 0 0 0-3.57 0l-45 23-.13.08-.16.09-.09.06-.21.15-.22.18-.18.16-.2.22a1.24 1.24 0 0 0-.14.18c-.07.08-.12.16-.18.24l-.12.19a2.44 2.44 0 0 0-.14.28l-.09.19c0 .1-.08.21-.11.31a1.06 1.06 0 0 0-.06.19 2.71 2.71 0 0 0-.09.41.52.52 0 0 1 0 .11 4.41 4.41 0 0 0 0 .52v56.32a4 4 0 0 0 2.24 3.59l46.42 22.75h.06a4.07 4.07 0 0 0 .74.26h.15a3.72 3.72 0 0 0 .81.09 4 4 0 0 0 .84-.09h.14a4.11 4.11 0 0 0 .76-.29h.07l45-23a4 4 0 0 0 2.18-3.55V70.51zm-8 53.91l-37 18.9V100.6a8 8 0 0 1-8 0v42.78l-38.5-18.84v-47.4L86.91 94v-.32a8 8 0 0 1 3.73-6.75L69.68 76.69l-12.31-6 36.09-18.46L131 70.59 99.08 86.88a8 8 0 0 1 3.81 6.81 1.7 1.7 0 0 1 0 .22l8.11-4.17L135.91 77z" opacity=".7" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/node-code.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-node-code",use:"icon-node-code-usage",viewBox:"0 0 174.9 159.2",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 174.9 159.2" id="icon-node-code">\r\n <path d="M0 5.43V135.2a5.42 5.42 0 0 0 5.43 5.42h164a5.42 5.42 0 0 0 5.42-5.42V5.43A5.43 5.43 0 0 0 169.48 0H5.43A5.43 5.43 0 0 0 0 5.43zm161.71 127H13.17A5.43 5.43 0 0 1 7.74 127V13.62a5.43 5.43 0 0 1 5.43-5.43h148.54a5.43 5.43 0 0 1 5.43 5.43V127a5.43 5.43 0 0 1-5.43 5.44z" />\r\n <g opacity=".7">\r\n <path d="M46.4 28.28l-26.87 32a4.87 4.87 0 0 0 0 6.28l26.9 32.07a4.89 4.89 0 0 0 6.88.6 4.87 4.87 0 0 0 .6-6.88L32.28 66.58a4.89 4.89 0 0 1 0-6.28l21.61-25.73a4.9 4.9 0 0 0-.61-6.89 4.89 4.89 0 0 0-6.88.6zM121.77 27.68a4.87 4.87 0 0 0-.6 6.88l21.61 25.74a4.88 4.88 0 0 1 0 6.27l-21.65 25.8a4.87 4.87 0 0 0 .6 6.88 4.88 4.88 0 0 0 6.87-.6l26.88-32a4.88 4.88 0 0 0 0-6.27l-26.84-32.09a4.88 4.88 0 0 0-6.87-.61z" />\r\n <rect x="45.51" y="60.99" width="83.99" height="9.76" rx="4.88" ry="4.88" transform="rotate(-69.73 87.509 65.871)" />\r\n </g>\r\n <rect x=".53" y="151.02" width="173.83" height="8.19" rx="4.09" ry="4.09" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/node-db.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-node-db",use:"icon-node-db-usage",viewBox:"0 0 160.06 183.5",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160.06 183.5" id="icon-node-db">\r\n <path d="M80 0C59.35 0 39.27 3.29 25 9 13.57 13.56 0 22 0 36.09v111.32c0 24.8 41.49 36.09 80 36.09 20.68 0 40.76-3.29 55.08-9 11.39-4.55 24.95-12.94 24.95-27.08V36.09C160.06 11.29 118.58 0 80 0zm72.31 75v72.38c0 15.91-31.76 28.37-72.31 28.37S7.72 163.32 7.72 147.41V52.9l3.21 2.46C24.52 65.73 51 72.17 80 72.17s55.51-6.44 69.1-16.81l3.21-2.46zM80 64.45C39.48 64.45 7.72 52 7.72 36.09S39.48 7.72 80 7.72s72.31 12.46 72.31 28.37S120.58 64.45 80 64.45z" />\r\n <path d="M80 102.07c-40.55 0-72.31-12.46-72.31-28.36v16.81L10.93 93C24.52 103.35 51 109.79 80 109.79s55.51-6.44 69.1-16.81l3.21-2.46V73.71c.03 15.9-31.73 28.36-72.31 28.36z" />\r\n <path d="M80 138.16c-40.55 0-72.31-12.46-72.31-28.37v16.82l3.21 2.45C24.52 139.44 51 145.88 80 145.88s55.51-6.44 69.1-16.82l3.21-2.45v-16.82c.03 15.91-31.73 28.37-72.31 28.37z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/node-eval.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-node-eval",use:"icon-node-eval-usage",viewBox:"0 0 173.95 184.64",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 173.95 184.64" id="icon-node-eval">\r\n <path d="M13.13 117.09c-10.9 0-13.13-4.75-13.13-11.9V79.42c0-8 4.3-11.87 13.13-11.87h147.69c4.83 0 8 .88 10.11 2.77s3 4.78 3 9.13v25.77c0 7.66-4.66 11.87-13.13 11.87zm-1.24-41.47a4.5 4.5 0 0 0-4.37 4.62v24.07a4.5 4.5 0 0 0 4.37 4.62h150.17a4.51 4.51 0 0 0 4.38-4.62V80.24a4.51 4.51 0 0 0-4.38-4.62z" />\r\n <g>\r\n <path d="M146.83 88.48h-17.61a2.13 2.13 0 0 0-2.22 2.07v4.16a2.13 2.13 0 0 0 2.19 2.07h17.61a2.14 2.14 0 0 0 2.2-2.07v-4.16a2.14 2.14 0 0 0-2.17-2.07z" />\r\n <rect x="24.51" y="88.58" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n <rect x="41.38" y="88.58" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n <rect x="58.25" y="88.58" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n <rect x="75.12" y="88.58" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n </g>\r\n <path d="M13.13 49.55C2.23 49.55 0 44.79 0 37.65V11.88C0 3.89 4.3 0 13.13 0h147.69c4.83 0 8 .88 10.11 2.77s3 4.78 3 9.13v25.77c0 7.66-4.66 11.88-13.13 11.88zM11.89 8.07a4.51 4.51 0 0 0-4.37 4.62v24.07a4.5 4.5 0 0 0 4.37 4.62h150.17a4.51 4.51 0 0 0 4.38-4.62V12.69a4.52 4.52 0 0 0-4.38-4.62z" />\r\n <g>\r\n <path d="M146.83 20.93h-17.61A2.13 2.13 0 0 0 127 23v4.15a2.14 2.14 0 0 0 2.19 2.08h17.61a2.15 2.15 0 0 0 2.2-2.08V23a2.14 2.14 0 0 0-2.17-2.07z" />\r\n <rect x="24.51" y="21.03" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n <rect x="41.38" y="21.03" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n <rect x="58.25" y="21.03" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n <rect x="75.12" y="21.03" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n </g>\r\n <path d="M13.13 184.64c-10.9 0-13.13-4.76-13.13-11.9V147c0-8 4.3-11.88 13.13-11.88h147.69c4.83 0 8 .88 10.11 2.78s3 4.77 3 9.12v25.77c0 7.66-4.66 11.88-13.13 11.88zm-1.24-41.47a4.5 4.5 0 0 0-4.37 4.61v24.08a4.5 4.5 0 0 0 4.37 4.61h150.17a4.51 4.51 0 0 0 4.38-4.61v-24.08a4.51 4.51 0 0 0-4.38-4.61z" />\r\n <g>\r\n <path d="M146.83 156h-17.61a2.13 2.13 0 0 0-2.22 2.1v4.15a2.14 2.14 0 0 0 2.19 2.08h17.61a2.14 2.14 0 0 0 2.2-2.08v-4.15a2.14 2.14 0 0 0-2.17-2.1z" />\r\n <rect x="24.51" y="156.13" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n <rect x="41.38" y="156.13" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n <rect x="58.25" y="156.13" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n <rect x="75.12" y="156.13" width="8.3" height="8.3" rx="1.62" ry="1.62" />\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/node-res.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-node-res",use:"icon-node-res-usage",viewBox:"0 0 186.1 205.36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 186.1 205.36" id="icon-node-res">\r\n <path d="M175.19 132.93v-63a16.12 16.12 0 0 0-5.09-31.33 15.89 15.89 0 0 0-11.85 5.32l-48-23.48a16.28 16.28 0 0 0 .6-4.33 16 16 0 1 0-32 0 15.72 15.72 0 0 0 .19 2.29L29.17 43.89a15.91 15.91 0 0 0-11.82-5.29A16.12 16.12 0 0 0 12 69.89v62.72a16.12 16.12 0 0 0 4 31.7 15.87 15.87 0 0 0 10.56-4L79.21 186a17 17 0 0 0-.32 3.21 16 16 0 1 0 31.61-3.5l49.35-25.2a15.87 15.87 0 0 0 10.25 3.76 16.12 16.12 0 0 0 5.09-31.38zM170.1 46.6a8.12 8.12 0 1 1-8 8.11 8.07 8.07 0 0 1 8-8.11zM94.89 8a8.12 8.12 0 1 1-8 8.11 8.06 8.06 0 0 1 8-8.11zM9.35 54.71a8 8 0 1 1 8 8.12 8.07 8.07 0 0 1-8-8.12zM16 156.31a8.12 8.12 0 1 1 8-8.12 8.07 8.07 0 0 1-8 8.12zm78.89 41.05a8.12 8.12 0 1 1 8-8.11 8.07 8.07 0 0 1-8 8.11zm59.21-49.17a16.24 16.24 0 0 0 1.07 5.77l-48.28 24.66a16 16 0 0 0-8-5v-26.07h-8v26.12a16 16 0 0 0-8.17 5.17l-51.65-25.27a16.1 16.1 0 0 0-11.06-21v-62a15.86 15.86 0 0 0 8.86-4.74l25.58 12.52 4-6.95-25.66-12.56a15.47 15.47 0 0 0 .1-7.87l49.26-25.15a15.88 15.88 0 0 0 24.15 1.58L154.54 51a16.15 16.15 0 0 0-.44 3.7 16.4 16.4 0 0 0 .51 4L131 70.78l4 6.94 23.48-12a15.88 15.88 0 0 0 8.76 4.82v61.81a16.09 16.09 0 0 0-13.14 15.84zm16 8.12a8.12 8.12 0 1 1 8-8.12 8.07 8.07 0 0 1-8 8.12z" />\r\n <path d="M94.89 29.33v25.38M133.73 126.7l26.16 15.59M54.37 123.76l-26.15 15.58" />\r\n <g opacity=".7">\r\n <path d="M121.69 54.71H68.1l-26.8 46.42 26.8 46.42h53.59l26.8-46.42zm-4.61 84.84H72.71l-22.18-38.42 22.18-38.42h44.37l22.18 38.42z" />\r\n <path d="M82.89 73.13h8v8h-8zM98.89 73.13h8v8h-8zM82.89 121.13h8v8h-8zM98.89 121.13h8v8h-8zM66.89 89.13h8v8h-8zM82.89 89.13h8v8h-8zM98.89 89.13h8v8h-8zM114.89 89.13h8v8h-8zM66.89 105.13h8v8h-8zM82.89 105.13h8v8h-8zM98.89 105.13h8v8h-8zM114.89 105.13h8v8h-8z" />\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/notebookTrain.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-notebookTrain",use:"icon-notebookTrain-usage",viewBox:"0 0 70 67",content:'<symbol viewBox="0 0 70 67" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-notebookTrain">\r\n <title>\u7f16\u7ec4 6</title>\r\n <g id="icon-notebookTrain_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-notebookTrain_\u7f16\u7ec4-6">\r\n <rect id="icon-notebookTrain_\u77e9\u5f62\u5907\u4efd" fill="#DA615D" x="0" y="0" width="70" height="67" rx="4" />\r\n <g id="icon-notebookTrain_\u7ec8\u7aef" transform="translate(20.000000, 20.000000)" fill-rule="nonzero">\r\n <rect id="icon-notebookTrain_\u77e9\u5f62" fill="#000000" opacity="0" x="0" y="0" width="29" height="29" />\r\n <path d="M25.7045455,11.2045455 L3.29545454,11.2045455 C2.93144868,11.2045455 2.63636363,11.4996305 2.63636363,11.8636364 L2.63636363,23.7272727 C2.63636363,24.4552844 3.22653375,25.0454545 3.95454546,25.0454545 L25.0454545,25.0454545 C25.7734662,25.0454545 26.3636364,24.4552844 26.3636364,23.7272727 L26.3636364,11.8636364 C26.3636364,11.4996305 26.0685513,11.2045455 25.7045455,11.2045455 L25.7045455,11.2045455 Z M10.6509091,17.9338636 L7.3884091,21.1963636 C7.12996494,21.4548078 6.71094417,21.4548078 6.45250001,21.1963636 C6.19405585,20.9379195 6.19405585,20.5188987 6.4525,20.2604545 L9.22727273,17.4659091 L6.4525,14.6713636 C6.28531594,14.5041796 6.22002313,14.2605035 6.28121675,14.0321258 C6.34241036,13.8037482 6.52079363,13.6253649 6.7491713,13.5641713 C6.97754897,13.5029777 7.22122504,13.5682705 7.3884091,13.7354545 L10.6509091,16.9979545 C10.7756834,17.1217098 10.8458671,17.2901707 10.8458671,17.4659091 C10.8458671,17.6416475 10.7756834,17.8101084 10.6509091,17.9338636 Z M17.1363636,21.75 L13.1818182,21.75 C12.8178123,21.75 12.5227273,21.4549149 12.5227273,21.0909091 C12.5227273,20.7269032 12.8178123,20.4318182 13.1818182,20.4318182 L17.1363636,20.4318182 C17.5003695,20.4318182 17.7954545,20.7269032 17.7954545,21.0909091 C17.7954545,21.4549149 17.5003695,21.75 17.1363636,21.75 Z M25.0454545,3.95454546 L3.95454546,3.95454546 C3.22653375,3.95454546 2.63636363,4.54471556 2.63636363,5.27272727 L2.63636363,9.22727273 C2.63636363,9.59127859 2.93144868,9.88636363 3.29545454,9.88636363 L25.7045455,9.88636363 C26.0685513,9.88636363 26.3636364,9.59127859 26.3636364,9.22727273 L26.3636364,5.27272727 C26.3636364,4.54471556 25.7734662,3.95454546 25.0454545,3.95454546 Z M6.26136363,7.9090909 C5.71535485,7.9090909 5.27272727,7.46646332 5.27272727,6.92045454 C5.27272727,6.37444575 5.71535485,5.93181817 6.26136363,5.93181817 C6.80737242,5.93181817 7.25,6.37444575 7.25,6.92045454 C7.25,7.46646332 6.80737242,7.9090909 6.26136363,7.9090909 L6.26136363,7.9090909 Z M8.89772727,7.9090909 C8.35171848,7.9090909 7.9090909,7.46646332 7.9090909,6.92045454 C7.9090909,6.37444575 8.35171848,5.93181817 8.89772727,5.93181817 C9.44373606,5.93181817 9.88636363,6.37444575 9.88636363,6.92045454 C9.88636363,7.46646332 9.44373606,7.9090909 8.89772727,7.9090909 Z M11.5340909,7.9090909 C10.9880821,7.9090909 10.5454545,7.46646332 10.5454545,6.92045454 C10.5454545,6.37444575 10.9880821,5.93181817 11.5340909,5.93181817 C12.0800997,5.93181817 12.5227273,6.37444575 12.5227273,6.92045454 C12.5227273,7.46646332 12.0800997,7.9090909 11.5340909,7.9090909 Z" id="icon-notebookTrain_\u5f62\u72b6" fill="#FFFFFF" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/offService.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-offService",use:"icon-offService-usage",viewBox:"0 0 70 67",content:'<symbol viewBox="0 0 70 67" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-offService">\r\n <title>\u7f16\u7ec4 12</title>\r\n <g id="icon-offService_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-offService_\u7f16\u7ec4-12">\r\n <g id="icon-offService_\u7f16\u7ec4-11">\r\n <rect id="icon-offService_\u77e9\u5f62\u5907\u4efd" fill="#2296F3" x="0" y="0" width="70" height="67" rx="4" />\r\n <path d="M47.3132453,30.4652555 C40.7529721,25.021764 31.2462104,25.021764 24.6859372,30.4652555 L23,27.5045061 C30.6261233,21.4985004 41.3738717,21.4985004 49,27.5045061 L47.3132453,30.4652555 Z M45.7256206,33.237505 L44.071371,36.1413794 C41.9408526,33.9813939 39.0335071,32.7654187 35.9995912,32.7654187 C32.9656754,32.7654187 30.0583299,33.9813939 27.9278115,36.1413794 L26.2735619,33.2366925 C31.8025554,28.2594719 40.1970429,28.2598226 45.7256206,33.237505 L45.7256206,33.237505 Z M31.5312484,36.3250044 L36.17956,40.4443786 L40.8278716,36.3250044 L43.3295586,38.5439415 L38.681247,42.6625032 L43.3279336,46.7810649 L40.8246216,49.000002 L36.17631,44.8806278 L31.5312484,49.000002 L29.0295613,46.7810649 L33.676248,42.6625032 L29.0295613,38.5439415 L31.5312484,36.3250044 Z" id="icon-offService_\u5f62\u72b6" fill="#FFFFFF" fill-rule="nonzero" />\r\n </g>\r\n <g id="icon-offService_\u6a21\u578b\u7ba1\u7406" transform="translate(21.000000, 20.000000)" fill="#000000" fill-rule="nonzero" opacity="0">\r\n <rect id="icon-offService_\u77e9\u5f62" x="0" y="0" width="29" height="29" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/onlineService.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-onlineService",use:"icon-onlineService-usage",viewBox:"0 0 70 67",content:'<symbol viewBox="0 0 70 67" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-onlineService">\r\n <title>\u7f16\u7ec4 8</title>\r\n <g id="icon-onlineService_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-onlineService_\u7f16\u7ec4-8">\r\n <g id="icon-onlineService_\u7f16\u7ec4-13">\r\n <rect id="icon-onlineService_\u77e9\u5f62\u5907\u4efd" fill="#57BCA1" x="0" y="0" width="70" height="67" rx="4" />\r\n <path d="M46.5878218,44.030141 L42.0808009,39.4956212 C45.1599882,34.99546 44.3054542,28.873217 40.1134081,25.4003866 C35.9213619,21.9275562 29.7853539,22.2586019 25.9864823,26.1625527 C22.1876107,30.0665036 21.988724,36.2455801 25.5285856,40.3886349 C29.0684471,44.5316897 35.1703106,45.2614587 39.5769003,42.0687813 L44.0481513,46.5673128 C44.7577572,47.1787115 45.8155369,47.1376048 46.4761536,46.4729574 C47.1367703,45.8083101 47.1776277,44.7440765 46.5699368,44.030141 L46.5878218,44.030141 Z M28.9353231,38.5419325 C26.35916,35.9485091 26.3599885,31.7451177 28.9371736,29.1527224 C31.5143587,26.5603271 35.6922594,26.5603271 38.2694445,29.1527224 C40.8466296,31.7451177 40.8474581,35.9485091 38.271295,38.5419325 C37.0335236,39.7879971 35.3543031,40.4880912 33.6033091,40.4880912 C31.852315,40.4880912 30.1730945,39.7879971 28.9353231,38.5419325 L28.9353231,38.5419325 Z" id="icon-onlineService_\u5f62\u72b6" fill="#FFFFFF" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/out.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-out",use:"icon-out-usage",viewBox:"0 0 18 21",content:'<symbol viewBox="0 0 18 21" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-out">\r\n \x3c!-- Generator: Sketch 57.1 (83088) - https://sketch.com --\x3e\r\n <title>\u4e0b\u7ebf</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <filter x="-5.5%" y="-7.2%" width="110.9%" height="114.5%" filterUnits="objectBoundingBox" id="icon-out_filter-1">\r\n <feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>\r\n <feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>\r\n <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>\r\n <feMerge>\r\n <feMergeNode in="shadowMatrixOuter1"></feMergeNode>\r\n <feMergeNode in="SourceGraphic"></feMergeNode>\r\n </feMerge>\r\n </filter>\r\n </defs>\r\n <g id="icon-out_Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-out_CardHover" transform="translate(-136.000000, -82.000000)" fill="#8D9AAD" fill-rule="nonzero">\r\n <g filter="url(#icon-out_filter-1)" id="icon-out_Btn/Edit">\r\n <g transform="translate(112.000000, 75.630522)">\r\n <g id="icon-out_Group-2" transform="translate(28.000000, 6.598394)">\r\n <g id="icon-out_\u5f62\u72b6" transform="translate(0.000000, 1.771084)">\r\n <path d="M3.09859155,7.93220339 L3.09859155,4.40677966 C3.09859155,3.8779661 3.47417841,3.52542374 4.03755868,3.52542374 L5.91549296,3.52542374 C6.47887324,3.52542374 6.8544601,3.87796611 6.85446009,4.40677966 L6.85446009,7.93220339 L9.48356807,7.93220339 C9.57746479,7.93220339 9.76525821,8.02033899 9.85915493,8.02033899 C10.0469484,8.19661017 10.0469484,8.46101695 9.85915493,8.63728814 L5.35211268,12.8677966 C5.16431926,13.0440678 4.88262911,13.0440678 4.69483568,12.8677966 L0.187793423,8.72542373 C0.0938967045,8.63728814 0,8.46101695 0,8.37288136 C0,8.10847458 0.187793423,7.93220339 0.469483564,7.93220339 L3.09859155,7.93220339 Z M3.56807511,1.76271186 L6.38497652,1.76271186 C6.66666666,1.76271186 6.85446009,1.93898304 6.85446009,2.20338984 C6.85446009,2.46779663 6.66666666,2.6440678 6.38497652,2.6440678 L3.56807511,2.6440678 C3.28638497,2.6440678 3.09859155,2.46779662 3.09859155,2.20338984 C3.09859155,1.93898306 3.28638497,1.76271186 3.56807511,1.76271186 Z M3.56807511,0 L6.38497652,0 C6.66666666,0 6.85446009,0.176271182 6.85446009,0.440677962 C6.85446009,0.705084742 6.66666666,0.881355937 6.38497652,0.881355937 L3.56807511,0.881355937 C3.28638497,0.881355937 3.09859155,0.705084742 3.09859155,0.440677962 C3.09859155,0.176271182 3.28638497,0 3.56807511,0 L3.56807511,0 Z" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/pause-circle.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-pause-circle",use:"icon-pause-circle-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-pause-circle">\r\n <path fill="none" d="M0 0h24v24H0z" />\r\n <path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zM9 9v6h2V9H9zm4 0v6h2V9h-2z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/processing.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-processing",use:"icon-processing-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-processing">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path d="M513.652405 117.787423c-16.209027 0-29.350001 13.139017-29.350001 29.35v733.751974c0 16.210984 13.140974 29.350001 29.350001 29.35s29.350001-13.139017 29.350001-29.35V147.137423c0-16.209027-13.140974-29.350001-29.350001-29.35zM352.769398 248.829306h-0.039133c-0.397203-15.86074-13.352294-28.604511-29.310868-28.604511s-28.913664 12.741814-29.310867 28.604511h-0.025437v0.48134c-0.001957 0.08805-0.013697 0.174143-0.013696 0.26415s0.01174 0.1761 0.013696 0.26415V778.459851c0 16.210984 13.140974 29.350001 29.350001 29.350001s29.350001-13.139017 29.350001-29.350001c0-0.090007-0.013697-0.1761-0.013697-0.266107V248.829306zM733.22563 248.829306h-0.039133c-0.397203-15.86074-13.352294-28.604511-29.310868-28.604511s-28.913664 12.741814-29.310867 28.604511h-0.025437v0.48134c-0.001957 0.08805-0.013697 0.174143-0.013696 0.26415s0.01174 0.1761 0.013696 0.26415V778.459851c0 16.210984 13.140974 29.350001 29.350001 29.350001s29.350001-13.139017 29.350001-29.350001c0-0.090007-0.013697-0.1761-0.013697-0.266107V248.829306zM133.090513 337.436958c-16.209027 0-29.350001 13.139017-29.350001 29.35v294.145707c0 16.210984 13.140974 29.350001 29.350001 29.350001s29.350001-13.139017 29.350001-29.350001v-294.145707c0-16.210984-13.140974-29.350001-29.350001-29.35zM894.092984 337.436958c-16.20707 0-29.350001 13.139017-29.350001 29.35v294.145707c0 16.210984 13.14293 29.350001 29.350001 29.350001 16.210984 0 29.350001-13.139017 29.35-29.350001v-294.145707c0-16.210984-13.139017-29.350001-29.35-29.35z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/project.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-project",use:"icon-project-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-project">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u9879\u76ee\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-project_icon/\u9879\u76ee\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-project_\u9879\u76ee\u7ba1\u7406" transform="translate(0.000000, 0.389392)" fill="#DCDCDC" fill-rule="nonzero">\r\n <path d="M12.103619,1.85714286 L6.51733333,1.85714286 C6.51733333,0.831471179 5.6836449,0 4.6552381,0 L1.86209524,0 C0.833688435,0 1.33226763e-14,0.831471179 1.33226763e-14,1.85714286 L1.33226763e-14,11.1428571 C1.33226763e-14,12.1685288 0.833688435,13 1.86209524,13 L12.103619,13 C13.1320259,13 13.9657143,12.1685288 13.9657143,11.1428571 L13.9657143,3.71428571 C13.9657143,2.68861404 13.1320259,1.85714286 12.103619,1.85714286 Z M1.86209524,0.928571429 L4.6552381,0.928571429 C5.1694415,0.928571429 5.58628571,1.34430702 5.58628571,1.85714286 L0.931047619,1.85714286 C0.931047619,1.34430702 1.34789184,0.928571429 1.86209524,0.928571429 Z M13.0346667,11.1428571 C13.0346667,11.655693 12.6178224,12.0714286 12.103619,12.0714286 L1.86209524,12.0714286 C1.34789184,12.0714286 0.931047619,11.655693 0.931047619,11.1428571 L0.931047619,2.78571429 L12.103619,2.78571429 C12.6178224,2.78571429 13.0346667,3.20144988 13.0346667,3.71428571 L13.0346667,11.1428571 Z" id="icon-project_\u5f62\u72b6" />\r\n <path d="M9.86050532,6.45265957 C9.39321809,6.45265957 9.01343085,6.05053191 9.01343085,5.55531915 C9.01343085,5.39242021 9.08696809,5.21369681 9.08696809,5.21276596 C9.15902867,5.03875333 9.10608989,4.83804298 8.95757979,4.72220745 L8.13470745,4.23630319 L8.12632979,4.23257979 C7.96710145,4.16573325 7.78310872,4.20468332 7.66462766,4.33031915 C7.5650266,4.43922872 7.25132979,4.7212766 6.99720745,4.7212766 C6.74308511,4.7212766 6.42659574,4.43364362 6.32699468,4.32287234 C6.24856159,4.23729729 6.13775657,4.18865118 6.02167553,4.18879617 C5.96842557,4.18845835 5.91572132,4.19957069 5.86715426,4.22140957 L5.85784574,4.22513298 L5.01449468,4.71569149 L5.00611702,4.7212766 C4.85739955,4.83736087 4.80413421,5.03824729 4.87579787,5.21276596 C4.87579787,5.21462766 4.94933511,5.39242021 4.94933511,5.55531915 C4.94933511,6.05053191 4.56954787,6.45265957 4.10226064,6.45265957 L4.07433511,6.45265957 C3.9375,6.44986702 3.82672872,6.57553191 3.79135638,6.77287234 C3.78856383,6.78869681 3.72340426,7.15824468 3.72340426,7.44960106 C3.72340426,7.74095745 3.78856383,8.11050532 3.79135638,8.12632979 C3.82672872,8.32087766 3.93470745,8.4474734 4.06875,8.4474734 L4.10132979,8.4474734 C4.56861702,8.4474734 4.94840426,8.84960106 4.94840426,9.34481383 C4.94840426,9.50771277 4.87486702,9.68643617 4.87486702,9.68736702 C4.80347281,9.86142404 4.85630301,10.0617227 5.00425532,10.1779255 L5.01170213,10.1835106 L5.81130319,10.6573138 L5.81968085,10.6610372 C5.86902242,10.683622 5.92273238,10.6950632 5.97699468,10.6945479 C6.09338675,10.6943653 6.20428127,10.6450037 6.28231383,10.5586436 C6.37632979,10.4515957 6.70212766,10.143484 6.96369681,10.143484 C7.22526596,10.143484 7.54734043,10.449734 7.64880319,10.5670213 C7.7639512,10.6978648 7.94978452,10.7405765 8.11050532,10.6731383 L8.11981383,10.6694149 L8.94734043,10.1844415 L8.95664894,10.1788564 C9.10405008,10.062292 9.15677364,9.86239761 9.08603723,9.68829787 C9.08603723,9.68736702 9.0125,9.50864362 9.0125,9.34574468 C9.0125,8.85053191 9.39228723,8.44840426 9.85957447,8.44840426 L9.8875,8.44840426 C10.0234043,8.45119681 10.1351064,8.32460106 10.1704787,8.12726064 C10.1742021,8.11050532 10.2393617,7.7400266 10.2393617,7.44960106 C10.2393617,7.15917553 10.1742021,6.78869681 10.1714096,6.77287234 C10.1360372,6.57553191 10.025266,6.44986702 9.88843085,6.45265957 L9.86050532,6.45265957 Z M8.31901596,8.99295213 C8.31901596,9.18191489 8.38789894,9.36343085 8.40279255,9.40066489 L7.77539894,9.76928191 C7.76422872,9.77021277 7.75585106,9.76648936 7.75398936,9.76369681 C7.68295125,9.68351659 7.60474589,9.60998486 7.52034574,9.54401596 C7.32486702,9.38949468 7.13962766,9.31130319 6.96742021,9.31130319 C6.79707447,9.31130319 6.61276596,9.38763298 6.41821809,9.5393617 C6.28789894,9.64082447 6.19760638,9.74321809 6.18643617,9.75531915 C6.18037862,9.75851777 6.17372134,9.76041986 6.1668883,9.76090426 L5.55904255,9.40066489 C5.61148008,9.27060944 5.64016997,9.13220437 5.64375,8.99202128 C5.64375,8.42513298 5.22393617,7.95970745 4.69707447,7.93085106 C4.66865722,7.77188832 4.65216621,7.61102318 4.64773936,7.44960106 C4.64773936,7.26156915 4.68869681,7.01023936 4.69614362,6.96648936 C5.22300532,6.93763298 5.64375,6.47220745 5.64375,5.9043883 C5.64375,5.71542553 5.57486702,5.53484043 5.5599734,5.49667553 L6.19946809,5.12340426 C6.2125,5.12340426 6.22180851,5.12712766 6.22460106,5.12992021 C6.23577128,5.14109043 6.32513298,5.23976064 6.45545213,5.33843085 C6.6462766,5.48364362 6.82779255,5.55718085 6.99441489,5.55718085 C7.15917553,5.55718085 7.33882979,5.48457447 7.52965426,5.34215426 C7.6599734,5.24534574 7.74840426,5.14853723 7.75957447,5.13829787 C7.76656594,5.13398407 7.77463073,5.13172593 7.78284574,5.13178191 L8.40279255,5.49667553 C8.38789894,5.53390957 8.31901596,5.71635638 8.31901596,5.90531915 C8.31901596,6.47220745 8.73882979,6.93763298 9.26569149,6.96742021 C9.27406915,7.01210106 9.3150266,7.26156915 9.3150266,7.44960106 C9.3150266,7.63670213 9.27406915,7.88803191 9.26569149,7.93178191 C8.73976064,7.95970745 8.31901596,8.42513298 8.31901596,8.99295213 Z" id="icon-project_\u5f62\u72b6" />\r\n <path d="M6.98138298,8.38324468 C7.48930869,8.38324468 7.90106383,7.96398793 7.90106383,7.44680851 C7.90106383,6.92962909 7.48930869,6.51037234 6.98138298,6.51037234 C6.47345727,6.51037234 6.06170213,6.92962909 6.06170213,7.44680851 C6.06170213,7.96398793 6.47345727,8.38324468 6.98138298,8.38324468 Z" id="icon-project_\u8def\u5f84" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/projectCount.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-projectCount",use:"icon-projectCount-usage",viewBox:"0 0 70 67",content:'<symbol viewBox="0 0 70 67" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-projectCount">\r\n <title>\u7f16\u7ec4 5</title>\r\n <g id="icon-projectCount_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-projectCount_\u7f16\u7ec4-5">\r\n <rect id="icon-projectCount_\u77e9\u5f62\u5907\u4efd" fill="#2296F3" x="0" y="0" width="70" height="67" rx="4" />\r\n <g id="icon-projectCount_\u6210\u5458\u5907\u4efd" opacity="0.984026228" transform="translate(21.000000, 18.000000)" fill="#FFFFFF" fill-rule="nonzero">\r\n <path d="M17.5503072,14.2380952 L15.1533213,23.2406031 C14.8294043,22.578654 13.7928699,18.871739 14.1167869,18.2097899 C14.1167869,18.2097899 14.5054873,17.5478408 14.5054873,17.4816459 C14.6998375,16.8196968 14.6350541,16.8196968 14.5054873,16.4887222 L12.4324185,16.4887222 C12.4324185,18.3421797 13.4041695,17.3492561 12.7563355,19.7984678 C12.4324185,20.9899762 12.1085015,22.2476795 12.0437181,23.4391879 C11.071967,21.5857304 10.2297828,15.6281884 9.32281519,14.3042901 C4.01057626,15.3634087 0.77140618,18.6731543 0.317922369,24.4321115 C0.123572164,27.2122978 0.706622779,28.0728317 4.91754388,28.8009757 C9.6467322,29.6615095 22.1499287,30.058679 25.7130158,27.7418571 C26.9439004,26.8813233 27.0734672,25.8883996 26.879117,24.101137 C26.0369328,18.2097899 22.7977627,15.3634087 17.5503072,14.2380952 L17.5503072,14.2380952 Z" id="icon-projectCount_\u8def\u5f84" />\r\n <path d="M10.6299076,13.9003836 C13.8897203,14.4124055 13.3681503,14.2844 16.5627667,13.9003836 C15.3892341,11.4042764 16.2367854,11.9162984 17.2799254,10.252227 C19.1054205,7.37210341 19.8225793,0.523809524 13.6941315,0.523809524 C7.95686128,0.523809524 7.76127252,6.5400677 9.97794512,10.3802325 C10.8254964,11.7242902 11.8686365,11.8522957 10.6299076,13.7723781 C10.7603002,13.7723781 10.6299076,13.9003836 10.6299076,13.9003836 L10.6299076,13.9003836 Z" id="icon-projectCount_\u8def\u5f84" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/projectManage.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-projectManage",use:"icon-projectManage-usage",viewBox:"0 0 14 12",content:'<symbol viewBox="0 0 14 12" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-projectManage">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u5207\u6362\u9879\u76ee</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-projectManage_\u6a21\u578b\u63a8\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.65">\r\n <g id="icon-projectManage_\u63a8\u7406-\u5207\u6362\u9879\u76ee\u6f14\u793a" transform="translate(-1314.000000, -74.000000)" fill="#000000">\r\n <g id="icon-projectManage_\u7f16\u7ec4-3" transform="translate(1302.000000, 64.000000)">\r\n <g id="icon-projectManage_\u7f16\u7ec4" transform="translate(12.000000, 10.000000)">\r\n <g id="icon-projectManage_icon/\u5207\u6362\u9879\u76ee">\r\n <g>\r\n <path d="M1.09375,3.6203125 C1.3796875,3.6203125 1.6109375,3.3890625 1.6109375,3.103125 L1.6109375,1.228125 C1.6109375,1.128125 1.6921875,1.046875 1.7921875,1.046875 L2.871875,1.046875 C2.9375,1.046875 2.9984375,1.0828125 3.0296875,1.140625 L3.4484375,1.890625 C3.6625,2.275 4.0703125,2.5140625 4.5109375,2.5140625 L12.2078125,2.5140625 C12.3078125,2.5140625 12.3890625,2.5953125 12.3890625,2.6953125 L12.3890625,3.103125 C12.3890625,3.3890625 12.6203125,3.6203125 12.90625,3.6203125 C13.1921875,3.6203125 13.4234375,3.3890625 13.4234375,3.103125 L13.4234375,2.6953125 C13.4234375,2.025 12.878125,1.4796875 12.2078125,1.4796875 L4.5109375,1.4796875 C4.4453125,1.4796875 4.384375,1.44375 4.353125,1.3859375 L3.934375,0.6359375 C3.7203125,0.2515625 3.3125,0.0125 2.871875,0.0125 L1.7921875,0.0125 C1.121875,0.0125 0.5765625,0.5578125 0.5765625,1.228125 L0.5765625,3.103125 C0.5765625,3.3890625 0.8078125,3.6203125 1.09375,3.6203125 Z M13.70625,4.25 C13.4796875,3.9875 13.1515625,3.8375 12.8046875,3.8375 L1.19375,3.8375 C0.846875,3.8375 0.51875,3.9875 0.2921875,4.25 C0.065625,4.5125 -0.034375,4.859375 0.0171875,5.2015625 L0.85,10.75625 C0.9375,11.34375 1.4328125,11.76875 2.025,11.76875 L11.9703125,11.76875 C12.5546875,11.76875 13.059375,11.3328125 13.1453125,10.75625 L13.978125,5.2015625 C14.0328125,4.859375 13.9328125,4.5125 13.70625,4.25 Z M12.9578125,5.0484375 L12.125,10.603125 C12.1140625,10.678125 12.0484375,10.734375 11.971875,10.734375 L2.028125,10.734375 C1.9515625,10.734375 1.8875,10.6796875 1.875,10.603125 L1.0421875,5.0484375 C1.0328125,4.9875 1.0609375,4.9453125 1.078125,4.925 C1.0953125,4.9046875 1.1328125,4.871875 1.1953125,4.871875 L12.80625,4.871875 C12.8671875,4.871875 12.90625,4.9046875 12.9234375,4.925 C12.9390625,4.9453125 12.9671875,4.9875 12.9578125,5.0484375 Z" id="icon-projectManage_\u5f62\u72b6" fill-rule="nonzero" />\r\n <path d="M9.253125,6.1359375 L4.746875,6.1359375 C4.4609375,6.1359375 4.2296875,6.3671875 4.2296875,6.653125 C4.2296875,6.9390625 4.4609375,7.1703125 4.746875,7.1703125 L9.2515625,7.1703125 C9.5375,7.1703125 9.76875,6.9390625 9.76875,6.653125 C9.76875,6.3671875 9.5390625,6.1359375 9.253125,6.1359375 Z" id="icon-projectManage_\u8def\u5f84" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/projectMember.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-projectMember",use:"icon-projectMember-usage",viewBox:"0 0 32 32",content:'<symbol viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-projectMember">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>\u9879\u76ee\u6570</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-projectMember_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-projectMember_\u9996\u9875-\u9879\u76ee\u8d1f\u8d23\u4eba" transform="translate(-185.000000, -270.000000)">\r\n <g id="icon-projectMember_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-projectMember_\u5e94\u7528\u60c5\u51b5" transform="translate(40.000000, 129.000000)">\r\n <g transform="translate(0.000000, 35.000000)" id="icon-projectMember_\u9879\u76ee\u6570">\r\n <g>\r\n <g transform="translate(145.000000, 46.000000)">\r\n <g>\r\n <rect id="icon-projectMember_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="1.13686838e-13" width="32" height="32" />\r\n <path d="M28.4207723,32 C29.4150022,32 30.2600976,31.6520195 30.9560586,30.9560586 C31.6520195,30.2600976 32,29.4150022 32,28.4207723 L32,3.5792277 C32,2.58499778 31.6520195,1.73990235 30.9560586,1.04394141 C30.2600976,0.34798047 29.4150022,0 28.4207723,0 L3.5792277,0 C2.58499778,0 1.73990235,0.34798047 1.04394141,1.04394141 C0.34798047,1.73990235 0,2.58499778 0,3.5792277 L0,28.4207723 C0,29.4150022 0.34798047,30.2600976 1.04394141,30.9560586 C1.73990235,31.6520195 2.58499778,32 3.5792277,32 L28.4207723,32 Z M15.9786951,16 C15.0128717,15.9857967 14.1251664,15.7443409 13.3155792,15.2756325 C12.505992,14.8069241 11.8597426,14.1606747 11.3768309,13.3368842 C10.8939192,12.5130937 10.6524634,11.6182867 10.6524634,10.6524634 C10.6524634,9.68664004 10.8939192,8.79893475 11.3768309,7.98934754 C11.8597426,7.17976032 12.5130937,6.53351087 13.3368842,6.0505992 C14.1606747,5.56768753 15.0483799,5.32623169 16,5.32623169 C16.9516201,5.32623169 17.8393253,5.56768753 18.6631158,6.0505992 C19.4869063,6.53351087 20.1402574,7.17976032 20.6231691,7.98934754 C21.1060808,8.79893475 21.3475366,9.68664004 21.3475366,10.6524634 C21.3475366,11.6182867 21.1060808,12.5130937 20.6231691,13.3368842 C20.1402574,14.1606747 19.4869063,14.8140257 18.6631158,15.2969374 C17.8393253,15.7798491 16.9445184,16.0142033 15.9786951,16 Z M26.6737683,26.6737683 L5.32623169,26.6737683 L5.32623169,24.8841545 C5.32623169,23.7762983 5.99378606,22.7678651 7.32889481,21.8588549 C8.436751,21.0918775 9.88548602,20.4811363 11.6750999,20.0266312 C13.2658677,19.6005326 14.7075011,19.3874834 16,19.3874834 C17.2924989,19.3874834 18.7341323,19.6005326 20.3249001,20.0266312 C22.114514,20.4811363 23.563249,21.0918775 24.6711052,21.8588549 C26.0062139,22.7678651 26.6737683,23.7762983 26.6737683,24.8841545 L26.6737683,26.6737683 Z" id="icon-projectMember_\u9879\u76ee\u6210\u5458" fill="#2296F3" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/publish.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-publish",use:"icon-publish-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-publish">\r\n <path d="M43.050667 573.312 466.858667 734.762667 512.256 665.770667 250.069333 562.602667 888.405333 218.624 822.528 781.781333 621.568 706.474667 568.106667 773.333333 899.370667 899.541333 980.949333 84.010667Z" />\r\n <path d="M857.770667 188.032 423.338667 715.818667 423.338667 947.2 488.576 947.2 488.576 739.2 920.234667 214.784Z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/publish1.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-publish1",use:"icon-publish1-usage",viewBox:"0 0 14 13",content:'<symbol viewBox="0 0 14 13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-publish1">\r\n <title>ICON/\u53d1\u5e03\u5728\u7ebf\u63a8\u7406\u670d\u52a1</title>\r\n <g id="icon-publish1_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-publish1_\u7f16\u7ec4" fill="#147BD1" fill-rule="nonzero">\r\n <g id="icon-publish1_ICON/\u53d1\u5e03\u5728\u7ebf\u63a8\u7406\u670d\u52a1">\r\n <path d="M12.54,5.58 C12.4700655,5.49794068 12.3078163,5.45046785 12.2,5.45 L11.2,5.45 L11.2,1.17 C11.205822,0.85268047 11.0802477,0.54706202 10.8530087,0.325503931 C10.6257696,0.103945842 10.3170705,-0.0138522277 10,2.05564732e-16 L4,2.05564732e-16 C3.68977364,-0.0027448581 3.39159823,0.119968428 3.17317,0.340279659 C2.95474177,0.56059089 2.8345924,0.859808628 2.84,1.17 L2.84,5.41 L1.84,5.41 C1.73641489,5.40676004 1.63700778,5.45094098 1.57,5.53 C0.631359872,6.45313142 0.139590465,6.9386087 0.094691779,6.98643182 C0.02734375,7.0581665 -1.86517468e-14,7.08 -1.86517468e-14,7.16 L-1.86517468e-14,11.24 C0.0326370503,12.2413773 0.868483938,13.0280567 1.87,13 L12.13,13 C13.1315161,13.0280567 13.9673629,12.2413773 14,11.24 L14,7.16 C13.9955446,7.0694778 13.9516983,6.98543893 13.88,6.93 L12.54,5.58 Z M12.05,6.18 L12.99,7.12 L11.2,7.12 L11.2,6.18 L12.05,6.18 Z M3.62,1.18 C3.61450804,1.07579938 3.65210578,0.973925087 3.72397352,0.898274839 C3.79584125,0.822624592 3.89565485,0.779864632 4,0.78 L10.06,0.78 C10.1642624,0.777218173 10.2650849,0.81741338 10.3388358,0.891164239 C10.4125866,0.964915098 10.4527818,1.06573764 10.45,1.17 L10.45,7.17 L3.62,7.17 L3.62,1.18 Z M2,6.18 L2.84,6.18 L2.84,7.18 L1,7.18 L2,6.18 Z M13.2200083,11.24 C13.2211429,11.5215726 13.103524,11.7905792 12.8960389,11.9809324 C12.6885539,12.1712857 12.410432,12.2653441 12.13,12.24 L1.87,12.24 C1.58956803,12.2653441 1.31144612,12.1712857 1.10396106,11.9809324 C0.896476013,11.7905792 0.778857093,11.5215726 0.779991748,11.24 L0.779991748,7.94 L13.2200083,7.94 L13.2200083,11.24 Z" id="icon-publish1_\u5f62\u72b6" />\r\n <path d="M7.27,2.23 C7.19884799,2.15792576 7.10126179,2.11816842 7,2.12 C6.89873821,2.11816842 6.80115201,2.15792576 6.73,2.23 L5.52,3.44 C5.41996563,3.53646171 5.37899178,3.6789637 5.41251289,3.81382686 C5.446034,3.94869002 5.54895741,4.05542541 5.68251289,4.09382686 C5.81606836,4.13222831 5.95996563,4.09646171 6.06,4 L6.62,3.45 L6.62,5.9 C6.62,6.1098682 6.7901318,6.28 7,6.28 C7.2098682,6.28 7.38,6.1098682 7.38,5.9 L7.38,3.43 L7.94,4 C8.08911688,4.14911688 8.33088312,4.14911688 8.48,4 C8.62911688,3.85088312 8.62911688,3.60911688 8.48,3.46 L7.27,2.23 Z" id="icon-publish1_\u8def\u5f84" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/publishCancel.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-publishCancel",use:"icon-publishCancel-usage",viewBox:"0 0 400 400",content:'<symbol viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-publishCancel">\r\n <title>\u53d1\u5e03\u5931\u8d25</title>\r\n <defs>\r\n <linearGradient x1="22.5860964%" y1="24.7330768%" x2="81.6200014%" y2="78.4814365%" id="icon-publishCancel_linearGradient-1">\r\n <stop stop-color="#D8DDE2" offset="0%" />\r\n <stop stop-color="#C4C9CE" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="icon-publishCancel_linearGradient-2">\r\n <stop stop-color="#F8F9FA" offset="0%" />\r\n <stop stop-color="#EEF0F4" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-publishCancel_linearGradient-3">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-publishCancel_linearGradient-4">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="24.9131944%" y1="24.7330768%" x2="78.9358581%" y2="78.4814365%" id="icon-publishCancel_linearGradient-5">\r\n <stop stop-color="#D8DDE2" offset="0%" />\r\n <stop stop-color="#C4C9CE" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="72.8395392%" y1="0%" x2="72.8395392%" y2="100%" id="icon-publishCancel_linearGradient-6">\r\n <stop stop-color="#DEE1E5" offset="0%" />\r\n <stop stop-color="#F1F2F4" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="icon-publishCancel_linearGradient-7">\r\n <stop stop-color="#F8F9FA" offset="0%" />\r\n <stop stop-color="#EEF0F4" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="100%" y1="0%" x2="0%" y2="0%" id="icon-publishCancel_linearGradient-8">\r\n <stop stop-color="#FFFFFF" stop-opacity="0" offset="0%" />\r\n <stop stop-color="#FFFFFF" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-publishCancel_linearGradient-9">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="50%" x2="100%" y2="50%" id="icon-publishCancel_linearGradient-10">\r\n <stop stop-color="#F1F2F4" offset="0%" />\r\n <stop stop-color="#DEE1E5" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="49.9425452%" y1="24.7330768%" x2="50.06627%" y2="78.4814365%" id="icon-publishCancel_linearGradient-11">\r\n <stop stop-color="#D8DDE2" offset="0%" />\r\n <stop stop-color="#C4C9CE" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="24.7330768%" x2="107.671468%" y2="78.4814365%" id="icon-publishCancel_linearGradient-12">\r\n <stop stop-color="#D8DDE2" offset="0%" />\r\n <stop stop-color="#C4C9CE" offset="100%" />\r\n </linearGradient>\r\n </defs>\r\n <g id="icon-publishCancel_\u9875\u9762-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-publishCancel_\u53d1\u5e03" transform="translate(-400.000000, -249.000000)">\r\n <g id="icon-publishCancel_\u53d1\u5e03\u5931\u8d25" transform="translate(400.000000, 249.000000)">\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-2" stroke="#EEF0F4" stroke-width="1.33333333" opacity="0" x="0" y="0" width="400" height="400" />\r\n <g id="icon-publishCancel_\u7f16\u7ec4-11" transform="translate(36.000000, 82.666667)">\r\n <rect id="icon-publishCancel_\u77e9\u5f62" fill="url(#icon-publishCancel_linearGradient-1)" x="76" y="0" width="129.333333" height="174.666667" />\r\n <polygon id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-41" fill="url(#icon-publishCancel_linearGradient-2)" points="76 160 189.333333 160 205.333333 174.666667 76 174.666667" />\r\n <polygon id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-40" fill="#DEE1E5" points="189.333333 0 205.333333 0 205.333333 174.666667 189.333333 160" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-54" fill="url(#icon-publishCancel_linearGradient-3)" x="53.3333333" y="96" width="38.6666667" height="14.6666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-55" fill="url(#icon-publishCancel_linearGradient-4)" x="205.333333" y="52" width="30.6666667" height="14.6666667" />\r\n <polygon id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-39" fill="url(#icon-publishCancel_linearGradient-5)" points="77 -2.84217094e-13 190.333333 -2.84217094e-13 190.333333 160 77 160" />\r\n <g id="icon-publishCancel_\u7f16\u7ec4-3" transform="translate(133.500000, 80.000000) rotate(45.000000) translate(-133.500000, -80.000000) translate(98.000000, 45.000000)" fill="#FFFFFF">\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd" x="33" y="0" width="5.33333333" height="70" rx="2.66666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-62" transform="translate(35.666667, 35.000000) rotate(-270.000000) translate(-35.666667, -35.000000) " x="33" y="0" width="5.33333333" height="70" rx="2.66666667" />\r\n </g>\r\n <rect id="icon-publishCancel_\u77e9\u5f62" fill="url(#icon-publishCancel_linearGradient-6)" x="50.6666667" y="174.666667" width="181.333333" height="18.6666667" />\r\n <polygon id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-47" fill="url(#icon-publishCancel_linearGradient-7)" points="50.6666667 193.333333 232 193.333333 242.666667 202.666667 61.3333333 202.666667" />\r\n <polygon id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-49" fill="url(#icon-publishCancel_linearGradient-7)" points="61.3333333 221.333333 242.666667 221.333333 253.333333 230.666667 72 230.666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-48" fill="url(#icon-publishCancel_linearGradient-6)" x="61.3333333" y="202.666667" width="181.333333" height="18.6666667" />\r\n <path d="M242.666667,204 L61.3333333,204 L61.3333333,202.666667 L242.666667,202.666667 L242.666667,204 Z" id="icon-publishCancel_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-publishCancel_linearGradient-8)" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-50" fill="url(#icon-publishCancel_linearGradient-6)" x="72" y="230.666667" width="181.333333" height="18.6666667" />\r\n <path d="M253.333333,232 L72,232 L72,230.666667 L253.333333,230.666667 L253.333333,232 Z" id="icon-publishCancel_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-publishCancel_linearGradient-8)" />\r\n <path d="M232,176 L50.6666667,176 L50.6666667,174.666667 L232,174.666667 L232,176 Z" id="icon-publishCancel_\u5f62\u72b6\u7ed3\u5408\u5907\u4efd-10" fill="url(#icon-publishCancel_linearGradient-8)" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62" fill="url(#icon-publishCancel_linearGradient-4)" x="216" y="88" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-51" fill="url(#icon-publishCancel_linearGradient-4)" x="228" y="117.333333" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-58" fill="url(#icon-publishCancel_linearGradient-9)" x="205.333333" y="117.333333" width="16" height="14.6666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-52" fill="url(#icon-publishCancel_linearGradient-4)" x="18.6666667" y="96" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-56" fill="url(#icon-publishCancel_linearGradient-4)" x="0" y="137.333333" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-53" fill="url(#icon-publishCancel_linearGradient-4)" x="38.6666667" y="114.666667" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-57" fill="url(#icon-publishCancel_linearGradient-10)" x="30.6666667" y="37.3333333" width="17.3333333" height="14.6666667" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62" fill="url(#icon-publishCancel_linearGradient-11)" x="270.666667" y="92" width="5.33333333" height="157.333333" />\r\n <circle id="icon-publishCancel_\u692d\u5706\u5f62" fill="url(#icon-publishCancel_linearGradient-12)" cx="269.333333" cy="66.6666667" r="26.6666667" />\r\n <circle id="icon-publishCancel_\u692d\u5706\u5f62\u5907\u4efd-7" fill="#DEE1E5" cx="273.333333" cy="66.6666667" r="26.6666667" />\r\n <g id="icon-publishCancel_\u7f16\u7ec4-2" transform="translate(272.833333, 66.666667) rotate(45.000000) translate(-272.833333, -66.666667) translate(260.333333, 54.666667)" fill="#FFFFFF">\r\n <rect id="icon-publishCancel_\u77e9\u5f62" x="10.3333333" y="-1.25055521e-12" width="4" height="24" rx="2" />\r\n <rect id="icon-publishCancel_\u77e9\u5f62\u5907\u4efd-59" transform="translate(12.333333, 12.000000) rotate(-270.000000) translate(-12.333333, -12.000000) " x="10.3333333" y="-1.25055521e-12" width="4" height="24" rx="2" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/publishSuccess.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-publishSuccess",use:"icon-publishSuccess-usage",viewBox:"0 0 400 400",content:'<symbol viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-publishSuccess">\r\n <title>\u53d1\u5e03\u6210\u529f</title>\r\n <defs>\r\n <linearGradient x1="22.5860964%" y1="24.7330768%" x2="81.6200014%" y2="78.4814365%" id="icon-publishSuccess_linearGradient-1">\r\n <stop stop-color="#D8DDE2" offset="0%" />\r\n <stop stop-color="#C4C9CE" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="23.7529824%" y1="50%" x2="107.671468%" y2="50.3662721%" id="icon-publishSuccess_linearGradient-2">\r\n <stop stop-color="#6FBEFF" offset="0%" />\r\n <stop stop-color="#147BD1" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="46.3646876%" x2="107.671468%" y2="54.0978048%" id="icon-publishSuccess_linearGradient-3">\r\n <stop stop-color="#6FBEFF" offset="0%" />\r\n <stop stop-color="#147BD1" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="44.2206093%" x2="107.671468%" y2="56.5146575%" id="icon-publishSuccess_linearGradient-4">\r\n <stop stop-color="#6FBEFF" offset="0%" />\r\n <stop stop-color="#147BD1" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="24.9131944%" y1="24.7330768%" x2="78.9358581%" y2="78.4814365%" id="icon-publishSuccess_linearGradient-5">\r\n <stop stop-color="#6FBEFF" offset="0%" />\r\n <stop stop-color="#147BD1" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="49.7322493%" x2="107.671468%" y2="50.3018145%" id="icon-publishSuccess_linearGradient-6">\r\n <stop stop-color="#6FBEFF" offset="0%" />\r\n <stop stop-color="#147BD1" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="49.9402932%" x2="107.671468%" y2="50.0673028%" id="icon-publishSuccess_linearGradient-7">\r\n <stop stop-color="#6FBEFF" offset="0%" />\r\n <stop stop-color="#53A9F1" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="100%" y1="0%" x2="0%" y2="0%" id="icon-publishSuccess_linearGradient-8">\r\n <stop stop-color="#FFFFFF" stop-opacity="0" offset="0%" />\r\n <stop stop-color="#FFFFFF" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="28.7687659%" x2="107.671468%" y2="73.9323181%" id="icon-publishSuccess_linearGradient-9">\r\n <stop stop-color="#6FBEFF" offset="0%" />\r\n <stop stop-color="#147BD1" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="0%" y1="31.909481%" x2="107.671468%" y2="70.3920344%" id="icon-publishSuccess_linearGradient-10">\r\n <stop stop-color="#6FBEFF" offset="0%" />\r\n <stop stop-color="#147BD1" offset="100%" />\r\n </linearGradient>\r\n <linearGradient x1="50%" y1="25.0357755%" x2="50%" y2="78.2845869%" id="icon-publishSuccess_linearGradient-11">\r\n <stop stop-color="#6FBEFF" offset="0%" />\r\n <stop stop-color="#147BD1" offset="100%" />\r\n </linearGradient>\r\n </defs>\r\n <g id="icon-publishSuccess_\u9875\u9762-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-publishSuccess_\u53d1\u5e03" transform="translate(-880.000000, -249.000000)">\r\n <g id="icon-publishSuccess_\u53d1\u5e03\u6210\u529f" transform="translate(880.000000, 249.000000)">\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-2" stroke="#EEF0F4" stroke-width="1.33333333" opacity="0" x="0" y="0" width="400" height="400" />\r\n <g id="icon-publishSuccess_\u7f16\u7ec4-11" transform="translate(36.000000, 82.666667)">\r\n <rect id="icon-publishSuccess_\u77e9\u5f62" fill="url(#icon-publishSuccess_linearGradient-1)" x="76" y="0" width="129.333333" height="174.666667" />\r\n <polygon id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-41" fill="url(#icon-publishSuccess_linearGradient-2)" points="76 160 189.333333 160 205.333333 174.666667 76 174.666667" />\r\n <polygon id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-40" fill="#6FBDFF" points="189.333333 0 205.333333 0 205.333333 174.666667 189.333333 160" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-54" fill="url(#icon-publishSuccess_linearGradient-3)" x="53.3333333" y="96" width="38.6666667" height="14.6666667" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-55" fill="url(#icon-publishSuccess_linearGradient-4)" x="205.333333" y="52" width="30.6666667" height="14.6666667" />\r\n <polygon id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-39" fill="url(#icon-publishSuccess_linearGradient-5)" points="77 -2.84217094e-13 190.333333 -2.84217094e-13 190.333333 160 77 160" />\r\n <g id="icon-publishSuccess_\u7f16\u7ec4-3" transform="translate(135.974874, 80.353553) rotate(45.000000) translate(-135.974874, -80.353553) translate(121.474874, 43.853553)" fill="#FFFFFF">\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd" x="23.3060005" y="0.795346323" width="5.33333333" height="70" rx="2.66666667" />\r\n <path d="M14.04647,54.9723484 L14.1506623,54.9723484 C15.5820959,54.9723484 16.7581915,56.1024915 16.8152124,57.5327889 L17.7253215,80.3617313 C17.7816963,81.7758235 16.6810489,82.9678726 15.2669567,83.0242475 C15.2329483,83.0256033 15.1989164,83.0262814 15.164881,83.0262814 L15.0606887,83.0262814 C13.6292551,83.0262814 12.4531595,81.8961383 12.3961386,80.4658409 L11.4860295,57.6368985 C11.4296546,56.2228063 12.5303021,55.0307572 13.9443943,54.9743823 C13.9784026,54.9730265 14.0124346,54.9723484 14.04647,54.9723484 Z" id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-62" transform="translate(14.605675, 68.999315) rotate(-270.000000) translate(-14.605675, -68.999315) " />\r\n </g>\r\n <rect id="icon-publishSuccess_\u77e9\u5f62" fill="url(#icon-publishSuccess_linearGradient-6)" x="50.6666667" y="174.666667" width="181.333333" height="18.6666667" />\r\n <polygon id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-47" fill="url(#icon-publishSuccess_linearGradient-7)" points="50.6666667 193.333333 232 193.333333 242.666667 202.666667 61.3333333 202.666667" />\r\n <polygon id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-49" fill="url(#icon-publishSuccess_linearGradient-7)" points="61.3333333 221.333333 242.666667 221.333333 253.333333 230.666667 72 230.666667" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-48" fill="url(#icon-publishSuccess_linearGradient-6)" x="61.3333333" y="202.666667" width="181.333333" height="18.6666667" />\r\n <path d="M242.666667,204 L61.3333333,204 L61.3333333,202.666667 L242.666667,202.666667 L242.666667,204 Z" id="icon-publishSuccess_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-publishSuccess_linearGradient-8)" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-50" fill="url(#icon-publishSuccess_linearGradient-6)" x="72" y="230.666667" width="181.333333" height="18.6666667" />\r\n <path d="M253.333333,232 L72,232 L72,230.666667 L253.333333,230.666667 L253.333333,232 Z" id="icon-publishSuccess_\u5f62\u72b6\u7ed3\u5408" fill="url(#icon-publishSuccess_linearGradient-8)" />\r\n <path d="M232,176 L50.6666667,176 L50.6666667,174.666667 L232,174.666667 L232,176 Z" id="icon-publishSuccess_\u5f62\u72b6\u7ed3\u5408\u5907\u4efd-10" fill="url(#icon-publishSuccess_linearGradient-8)" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62" fill="url(#icon-publishSuccess_linearGradient-4)" x="216" y="88" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-51" fill="url(#icon-publishSuccess_linearGradient-4)" x="228" y="117.333333" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-58" fill="url(#icon-publishSuccess_linearGradient-9)" x="205.333333" y="117.333333" width="16" height="14.6666667" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-52" fill="url(#icon-publishSuccess_linearGradient-4)" x="18.6666667" y="96" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-56" fill="url(#icon-publishSuccess_linearGradient-4)" x="0" y="137.333333" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-53" fill="url(#icon-publishSuccess_linearGradient-4)" x="38.6666667" y="114.666667" width="30.6666667" height="14.6666667" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-57" fill="url(#icon-publishSuccess_linearGradient-10)" x="30.6666667" y="37.3333333" width="17.3333333" height="14.6666667" />\r\n <rect id="icon-publishSuccess_\u77e9\u5f62" fill="url(#icon-publishSuccess_linearGradient-11)" x="270.666667" y="92" width="5.33333333" height="157.333333" />\r\n <circle id="icon-publishSuccess_\u692d\u5706\u5f62" fill="#1064AB" cx="269.333333" cy="66.6666667" r="26.6666667" />\r\n <circle id="icon-publishSuccess_\u692d\u5706\u5f62\u5907\u4efd-7" fill="#147BD1" cx="273.333333" cy="66.6666667" r="26.6666667" />\r\n <g id="icon-publishSuccess_\u7f16\u7ec4-2" transform="translate(272.610913, 64.151353) rotate(45.000000) translate(-272.610913, -64.151353) translate(265.110913, 51.651353)" fill="#FFFFFF">\r\n <rect id="icon-publishSuccess_\u77e9\u5f62" x="10.3333333" y="-7.95807864e-13" width="4" height="24" rx="2" />\r\n <path d="M6.88761574,15.6377717 L6.99127014,15.6377717 C8.05451818,15.6377717 8.93191014,16.4696909 8.98844127,17.531435 L9.52533834,27.6152131 C9.58102274,28.6610545 8.77834192,29.5540176 7.73250054,29.609702 C7.69892175,29.6114899 7.66530135,29.6123843 7.631675,29.6123843 L7.5280206,29.6123843 C6.46477256,29.6123843 5.5873806,28.7804651 5.53084947,27.7187209 L4.9939524,17.6349428 C4.938268,16.5891014 5.74094882,15.6961383 6.7867902,15.6404539 C6.82036899,15.6386661 6.85398939,15.6377717 6.88761574,15.6377717 Z" id="icon-publishSuccess_\u77e9\u5f62\u5907\u4efd-59" transform="translate(7.259645, 22.625078) rotate(-270.000000) translate(-7.259645, -22.625078) " />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/purge.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-purge",use:"icon-purge-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-purge">\r\n <path d="M572.16 998.802286c-14.08 0-30.244571-2.852571-47.689143-11.044572l-3.584-1.682285L51.968 520.996571l-0.950857-1.243428A142.665143 142.665143 0 0 1 29.257143 474.112c-9.947429-36.937143-1.938286-70.765714 23.186286-97.901714l0.548571-0.585143 305.517714-307.017143 3.181715-1.645714c2.816-1.462857 70.107429-35.328 119.734857 4.754285l1.097143 0.877715 122.843428 127.890285 149.394286-152.173714 0.548571-0.438857a96.475429 96.475429 0 0 1 37.888-19.309714c20.772571-5.485714 53.430857-6.985143 91.282286 17.042285l2.048 1.353143 85.138286 85.906286c4.900571 3.949714 16.64 14.957714 22.966857 33.316571 6.802286 19.565714 8.96 51.529143-19.382857 92.928l-0.950857 1.536-1.316572 1.316572-147.529143 154.477714 116.150857 122.697143c3.510857 3.510857 14.299429 15.286857 19.821715 35.84 5.302857 19.858286 6.619429 52.041143-17.408 93.549714l-1.499429 2.633143-299.446857 299.885714c-1.316571 1.243429-13.421714 13.129143-33.718857 20.955429a104.886857 104.886857 0 0 1-37.193143 6.802286z m-25.490286-50.761143c38.802286 15.945143 64.256-8.96 64.475429-9.216l295.350857-295.716572c11.081143-20.041143 15.213714-38.729143 11.958857-53.979428a38.253714 38.253714 0 0 0-8.192-17.261714l-0.841143-0.694858-0.146285-0.292571-146.358858-154.587429 176.201143-184.502857c12.580571-18.870857 17.188571-35.730286 13.494857-48.859428a29.330286 29.330286 0 0 0-9.069714-14.518857l-1.865143-1.206858-0.877714-1.206857-82.541714-83.236571c-17.956571-10.898286-35.474286-14.445714-52.004572-10.678857a55.442286 55.442286 0 0 0-20.772571 9.545143l-157.842286 160.658285-23.442286 22.454857-151.990857-158.281142c-22.857143-17.334857-57.234286-4.644571-67.328-0.292572l-299.812571 301.385143c-14.08 15.36-18.176 33.243429-12.397714 54.637714 3.84 14.299429 11.081143 25.563429 13.348571 28.891429l460.653714 456.96zM237.677714 221.988571l558.445715 563.346286-31.926858 32.109714L205.824 254.134857l31.853714-32.146286z m12.653715 261.302858l31.890285 32.109714L180.48 618.057143l-31.853714-32.109714 101.705143-102.656z m252.489142 250.697142l31.853715 32.182858-101.741715 102.619428-31.853714-32.109714 101.741714-102.692572z m-78.08-173.604571l31.853715 32.109714-147.382857 148.699429-31.853715-32.109714 147.382857-148.699429z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/reasonRate.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-reasonRate",use:"icon-reasonRate-usage",viewBox:"0 0 40 40",content:'<symbol viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-reasonRate">\r\n <title>ICON/\u63a8\u7406\u8d44\u6e90\u5229\u7528\u7387</title>\r\n <g id="icon-reasonRate_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-reasonRate_ICON/\u63a8\u7406\u8d44\u6e90\u5229\u7528\u7387">\r\n <circle id="icon-reasonRate_\u692d\u5706\u5f62" fill="#2296F3" cx="20" cy="20" r="20" />\r\n <g id="icon-reasonRate_zhujijiankong" transform="translate(12.000000, 11.000000)" fill="#FFFFFF" fill-rule="nonzero">\r\n <path d="M15.2373728,0.019622093 L0.664698401,0.019622093 C0.303465643,0.019622093 0.0106286337,0.312459103 0.0106286337,0.67369186 L0.0106286337,11.6751453 C0.0106286337,12.0363781 0.303465643,12.3292151 0.664698401,12.3292151 L15.2373728,12.3292151 C15.5986056,12.3292151 15.8914426,12.0363781 15.8914426,11.6751453 L15.8914426,0.67369186 C15.8914426,0.312459103 15.5986056,0.019622093 15.2373728,0.019622093 Z M14.5833031,1.32776163 L14.5833031,3.84421877 L1.31876817,3.84421877 L1.31876817,1.32776163 L14.5833031,1.32776163 Z M1.31876817,11.0168159 L1.31876817,4.66312631 L14.5833031,4.66312631 L14.5833031,11.034157 L1.31876817,11.0168159 Z" id="icon-reasonRate_\u5f62\u72b6" />\r\n <path d="M12.0964847,5.52168567 C12.3606504,5.32162788 12.7369779,5.37359763 12.9370357,5.63776334 C13.1170877,5.87551248 13.0929974,6.20411266 12.8938021,6.41329734 L12.8209581,6.47831433 L9.3043467,9.14151191 C9.13456087,9.27009398 8.91189863,9.29757019 8.71887541,9.22015288 L8.62521574,9.17268556 L6.393,7.784 L4.36995716,9.36912383 C4.13516359,9.55301336 3.8062155,9.53426302 3.5938233,9.33849127 L3.52763182,9.26671281 C3.34374229,9.03191925 3.36249263,8.70297115 3.55826438,8.49057895 L3.63004284,8.42438747 L5.98381575,6.58092048 C6.15389741,6.4477131 6.37979572,6.41778827 6.57564448,6.49578649 L6.67066721,6.54380067 L8.908,7.935 L12.0964847,5.52168567 Z" id="icon-reasonRate_\u8def\u5f84-3" />\r\n <path d="M2.65307049,1.88165417 L3.30714026,1.88165417 L3.30714026,3.41217743 L2.65307049,3.41217743 L2.65307049,1.88165417 Z M4.3274891,1.88165417 L4.98155887,1.88165417 L4.98155887,3.41217743 L4.3274891,3.41217743 L4.3274891,1.88165417 Z M9.76934956,14.5336589 C9.57384297,13.9916704 9.14709388,13.5649213 8.60510538,13.3694147 L8.60510538,12.2705775 L7.29696584,12.2705775 L7.29696584,13.3694147 C6.75497734,13.5649213 6.32822825,13.9916704 6.13272166,14.5336589 L0.664698401,14.5336589 C0.303465643,14.5336589 0.0106286337,14.8264959 0.0106286337,15.1877287 C0.0106286337,15.5489614 0.303465643,15.8417984 0.664698401,15.8417984 L6.13272166,15.8417984 C6.39982446,16.6179834 7.13017811,17.1390406 7.95103561,17.1390406 C8.77189312,17.1390406 9.50224676,16.6179834 9.76934956,15.8417984 L15.2373728,15.8417984 C15.5986056,15.8417984 15.8914426,15.5489614 15.8914426,15.1877287 C15.8914426,14.8264959 15.5986056,14.5336589 15.2373728,14.5336589 L9.76934956,14.5336589 Z M7.32312863,15.1877287 C7.32312863,14.8409452 7.60425216,14.5598217 7.95103561,14.5598217 C8.29781906,14.5598217 8.57894259,14.8409452 8.57894259,15.1877287 C8.57894259,15.5345121 8.29781906,15.8156356 7.95103561,15.8156356 C7.60425216,15.8156356 7.32312863,15.5345121 7.32312863,15.1877287 Z" id="icon-reasonRate_\u5f62\u72b6" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/reasoningResources.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-reasoningResources",use:"icon-reasoningResources-usage",viewBox:"0 0 40 40",content:'<symbol viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-reasoningResources">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>\u63a8\u7406\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-reasoningResources_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-reasoningResources_\u9996\u9875-\u9879\u76ee\u8d1f\u8d23\u4eba" transform="translate(-752.000000, -480.000000)">\r\n <g id="icon-reasoningResources_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-reasoningResources_2" transform="translate(40.000000, 368.000000)">\r\n <g id="icon-reasoningResources_\u6307\u6807\u5361">\r\n <g id="icon-reasoningResources_2" transform="translate(692.000000, 34.000000)">\r\n <g id="icon-reasoningResources_\u63a8\u7406\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5" transform="translate(20.000000, 18.000000)">\r\n <circle id="icon-reasoningResources_\u692d\u5706\u5f62" fill="#2296F3" cx="20" cy="20" r="20" />\r\n <g id="icon-reasoningResources_zhujijiankong" transform="translate(12.000000, 11.000000)" fill="#FFFFFF" fill-rule="nonzero">\r\n <path d="M15.2373728,0.019622093 L0.664698401,0.019622093 C0.303465643,0.019622093 0.0106286337,0.312459103 0.0106286337,0.67369186 L0.0106286337,11.6751453 C0.0106286337,12.0363781 0.303465643,12.3292151 0.664698401,12.3292151 L15.2373728,12.3292151 C15.5986056,12.3292151 15.8914426,12.0363781 15.8914426,11.6751453 L15.8914426,0.67369186 C15.8914426,0.312459103 15.5986056,0.019622093 15.2373728,0.019622093 Z M14.5833031,1.32776163 L14.5833031,5.85392442 L1.31876817,5.85392442 L1.31876817,1.32776163 L14.5833031,1.32776163 Z M1.31876817,11.0210756 L1.31876817,6.50799419 L14.5833031,6.50799419 L14.5833031,11.034157 L1.31876817,11.0210756 Z" id="icon-reasoningResources_\u5f62\u72b6" />\r\n <path d="M2.65307049,2.63590116 L3.30714026,2.63590116 L3.30714026,4.16642442 L2.65307049,4.16642442 L2.65307049,2.63590116 Z M4.3274891,2.63590116 L4.98155887,2.63590116 L4.98155887,4.16642442 L4.3274891,4.16642442 L4.3274891,2.63590116 Z M2.65307049,8.1431686 L3.30714026,8.1431686 L3.30714026,9.67369186 L2.65307049,9.67369186 L2.65307049,8.1431686 Z M4.3274891,8.1431686 L4.98155887,8.1431686 L4.98155887,9.67369186 L4.3274891,9.67369186 L4.3274891,8.1431686 Z M9.76934956,14.5336589 C9.57384297,13.9916704 9.14709388,13.5649213 8.60510538,13.3694147 L8.60510538,12.2705775 L7.29696584,12.2705775 L7.29696584,13.3694147 C6.75497734,13.5649213 6.32822825,13.9916704 6.13272166,14.5336589 L0.664698401,14.5336589 C0.303465643,14.5336589 0.0106286337,14.8264959 0.0106286337,15.1877287 C0.0106286337,15.5489614 0.303465643,15.8417984 0.664698401,15.8417984 L6.13272166,15.8417984 C6.39982446,16.6179834 7.13017811,17.1390406 7.95103561,17.1390406 C8.77189312,17.1390406 9.50224676,16.6179834 9.76934956,15.8417984 L15.2373728,15.8417984 C15.5986056,15.8417984 15.8914426,15.5489614 15.8914426,15.1877287 C15.8914426,14.8264959 15.5986056,14.5336589 15.2373728,14.5336589 L9.76934956,14.5336589 Z M7.32312863,15.1877287 C7.32312863,14.8409452 7.60425216,14.5598217 7.95103561,14.5598217 C8.29781906,14.5598217 8.57894259,14.8409452 8.57894259,15.1877287 C8.57894259,15.5345121 8.29781906,15.8156356 7.95103561,15.8156356 C7.60425216,15.8156356 7.32312863,15.5345121 7.32312863,15.1877287 Z" id="icon-reasoningResources_\u5f62\u72b6" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/reassign.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-reassign",use:"icon-reassign-usage",viewBox:"0 0 13 11",content:'<symbol viewBox="0 0 13 11" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-reassign">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/ \u6269\u7f29\u5bb9</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <polygon id="icon-reassign_path-1" points="0 0 14 0 14 14 0 14" />\r\n </defs>\r\n <g id="icon-reassign_\u6a21\u578b\u63a8\u7406-\u6a21\u578b\u7ba1\u7406" stroke="none" stroke-width="1" fill-rule="evenodd">\r\n <g id="icon-reassign_\u6a21\u578b\u63a8\u7406-\u5361\u7247\u89c6\u56fe" transform="translate(-829.000000, -261.000000)">\r\n <g id="icon-reassign_icon/-\u6269\u7f29\u5bb9" transform="translate(828.000000, 260.000000)">\r\n <g>\r\n <mask id="icon-reassign_mask-2" fill="white">\r\n <use xlink:href="#icon-reassign_path-1" />\r\n </mask>\r\n <g id="icon-reassign_Clip-2"></g>\r\n <g mask="url(#icon-reassign_mask-2)">\r\n <g transform="translate(1.000000, 1.000000)">\r\n <path d="M11.4115,8.4196 L11.0075,8.4196 L11.0075,8.0106 C11.0075,7.8516 10.8775,7.7216 10.7175,7.7216 L10.7095,7.7216 C10.5495,7.7216 10.4195,7.8516 10.4195,8.0106 L10.4195,8.4196 L10.0155,8.4196 C9.8525,8.4196 9.7215,8.5506 9.7215,8.7136 C9.7215,8.8766 9.8525,9.0076 10.0155,9.0076 L10.4195,9.0076 L10.4195,9.4166 C10.4195,9.5756 10.5495,9.7056 10.7095,9.7056 L10.7175,9.7056 C10.8775,9.7056 11.0075,9.5756 11.0075,9.4166 L11.0075,9.0076 L11.4115,9.0076 C11.5745,9.0076 11.7055,8.8766 11.7055,8.7136 C11.7055,8.5506 11.5745,8.4196 11.4115,8.4196" id="icon-reassign_Fill-3" />\r\n <path d="M10.7133,10.1598 C9.9163,10.1598 9.2673,9.5108 9.2673,8.7138 C9.2673,7.9158 9.9163,7.2668 10.7133,7.2668 C11.5113,7.2668 12.1593,7.9158 12.1593,8.7138 C12.1593,9.5108 11.5113,10.1598 10.7133,10.1598 L10.7133,10.1598 Z M8.0203,5.1908 C7.7973,6.3718 6.6593,7.1498 5.4783,6.9268 C4.5973,6.7608 3.9083,6.0718 3.7423,5.1908 L1.2493,5.1908 C1.0803,5.1938 0.9373,5.2978 0.8723,5.4428 C0.8773,5.4278 0.8813,5.4158 0.8813,5.4158 L1.2553,4.3518 L1.2553,4.3518 L1.2543,4.3548 L4.1193,4.3548 C4.3473,4.3548 4.5333,4.5408 4.5333,4.7688 L4.5333,4.7768 C4.5333,5.5218 5.1363,6.1248 5.8813,6.1248 C6.6263,6.1248 7.2293,5.5208 7.2293,4.7768 C7.2253,4.5478 7.4073,4.3588 7.6363,4.3548 L7.6433,4.3548 L10.5133,4.3548 L10.5153,4.3548 L10.9013,5.4608 L10.8993,5.4638 C10.9163,5.5098 10.9283,5.5588 10.9283,5.6118 L10.9273,5.6128 C10.9273,5.3828 10.7433,5.1948 10.5133,5.1908 L8.0203,5.1908 Z M1.9503,2.6708 L9.8293,2.6708 L10.0943,3.4948 L1.6703,3.4948 L1.9503,2.6708 Z M11.7013,6.6598 C11.7213,6.6688 11.7443,6.6738 11.7643,6.6838 L11.7643,5.6118 C11.7643,5.4698 11.7363,5.3358 11.6923,5.2078 C11.6883,5.1838 11.6903,5.1598 11.6823,5.1368 L10.2583,1.0928 C10.2303,1.0088 10.1763,0.9378 10.1083,0.8888 C10.0393,0.8398 9.9553,0.8128 9.8663,0.81377318 L5.8373,0.81377318 C5.8373,0.81377318 5.8373,0.81377318 5.8373,0.81377318 L1.9133,0.81377318 C1.7343,0.8128 1.5743,0.9248 1.5143,1.0928 L0.3813,4.3518 L0.1413,5.0438 C0.0533,5.2158 0.0003,5.4068 0.0003,5.6118 L0.0003,7.0098 L0.0003,8.4508 C0.0003,8.8838 0.2183,9.2648 0.5503,9.4918 C0.6833,9.5818 0.8353,9.6478 0.9983,9.6818 C1.0793,9.6988 1.1643,9.7078 1.2503,9.7088 L8.6643,9.7088 C9.0343,10.4708 9.8093,10.9998 10.7133,10.9998 C11.9763,10.9998 13.0003,9.9758 13.0003,8.7138 C13.0003,7.8058 12.4673,7.0288 11.7013,6.6598 L11.7013,6.6598 Z" id="icon-reassign_Fill-1" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/redo.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-redo",use:"icon-redo-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-redo">\r\n <path d="M263.098 760.902c135.513 135.513 354.028 137.436 491.898 5.771 0.098-0.093 0.2-0.19 0.305-0.292a8 8 0 0 1 11.196 0.116l33.948 33.948 0.101 0.103a8 8 0 0 1-0.204 11.312l-0.34 0.328c-162.89 156.401-421.736 154.39-582.158-6.032-162.459-162.458-162.459-425.854 0-588.312 162.458-162.459 425.854-162.459 588.312 0 22.13 22.128 41.472 46.369 57.844 72.295V168a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v216c0 17.673-14.327 32-32 32H680a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8h145.653c-16.584-32.493-38.303-62.454-64.751-88.902-137.465-137.464-360.339-137.464-497.804 0-137.464 137.465-137.464 360.339 0 497.804z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/restart.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-restart",use:"icon-restart-usage",viewBox:"0 0 12 12",content:'<symbol viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-restart">\r\n <title>\u91cd\u542f</title>\r\n <g id="icon-restart_\u6a21\u578b\u63a8\u7406" stroke="none" stroke-width="1">\r\n <g id="icon-restart_\u542f\u52a8" transform="translate(-21.000000, -6.000000)">\r\n <g id="icon-restart_\u91cd\u542f" transform="translate(21.000000, 6.000000)">\r\n <path d="M10.1013,7.7744 C9.8373,8.3024 9.5443,8.7714 9.1343,9.1814 C8.7243,9.5914 8.2543,9.9144 7.7273,10.1484 C7.2003,10.3824 6.6143,10.5004 5.9983,10.5004 C5.3823,10.5004 4.7963,10.4124 4.2693,10.1484 C3.7423,9.8844 3.2723,9.5914 2.8623,9.1814 C2.4523,8.7714 2.1293,8.3024 1.8953,7.7744 C1.6613,7.2474 1.5433,6.6604 1.5433,6.0454 C1.5433,5.6934 1.5733,5.3414 1.6613,5.0194 C1.7483,4.6684 1.8663,4.3454 2.0123,4.0524 C2.1593,3.7594 2.3343,3.4664 2.5693,3.2024 C2.6773,3.0804 2.8483,2.9204 3.0013,2.7844 C3.1833,2.6224 3.4603,2.6334 3.6283,2.8104 C3.8053,2.9944 3.7943,3.2914 3.6023,3.4594 C2.8563,4.1124 2.3973,5.0614 2.3933,6.1194 C2.3863,7.9954 3.8613,9.5784 5.7333,9.7014 C7.8013,9.8364 9.5443,8.1744 9.5443,6.1334 C9.5443,5.0144 9.1243,4.0934 8.3433,3.4484 C8.1493,3.2874 8.1343,2.9934 8.3063,2.8094 L8.3183,2.7964 C8.4853,2.6174 8.7653,2.6074 8.9443,2.7754 C9.0613,2.8854 9.1873,3.0094 9.2813,3.1144 C9.5153,3.3784 9.6913,3.6714 9.8673,3.9934 C10.0423,4.3164 10.2133,4.7624 10.2723,4.9854 C10.3293,5.2074 10.4203,5.5924 10.4533,6.0454 C10.4823,6.4434 10.3353,7.2474 10.1013,7.7744 L10.1013,7.7744 Z M5.4783,2.0224 C5.4783,1.7334 5.7113,1.5004 5.9993,1.5004 C6.2883,1.5004 6.5223,1.7334 6.5223,2.0224 L6.5223,5.2564 C6.5223,5.5454 6.2883,5.7794 5.9993,5.7794 C5.7113,5.7794 5.4783,5.5454 5.4783,5.2564 L5.4783,2.0224 Z M5.9993,0.0004 C2.6863,0.0004 -0.0007,2.6864 -0.0007,6.0004 C-0.0007,9.3144 2.6863,12.0004 5.9993,12.0004 C9.3143,12.0004 11.9993,9.3144 11.9993,6.0004 C11.9993,2.6864 9.3143,0.0004 5.9993,0.0004 L5.9993,0.0004 Z" id="icon-restart_Fill-1" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/runInstances.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-runInstances",use:"icon-runInstances-usage",viewBox:"0 0 32 32",content:'<symbol viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-runInstances">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title> \u8fd0\u884c\u5b9e\u4f8b</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-runInstances_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-runInstances_\u9996\u9875-\u9879\u76ee\u8d1f\u8d23\u4eba" transform="translate(-1223.000000, -271.000000)">\r\n <g id="icon-runInstances_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-runInstances_\u5e94\u7528\u60c5\u51b5" transform="translate(40.000000, 129.000000)">\r\n <g transform="translate(0.000000, 35.000000)" id="icon-runInstances_\u8fd0\u884c\u5b9e\u4f8b\u6570">\r\n <g transform="translate(1038.000000, 0.000000)">\r\n <g id="icon-runInstances_-\u8fd0\u884c\u5b9e\u4f8b" transform="translate(145.000000, 47.000000)">\r\n <g>\r\n <rect id="icon-runInstances_\u77e9\u5f62" fill="#FFFFFF" opacity="0.01" x="0" y="0" width="32" height="32" />\r\n <path d="M26.2757574,28.6833445 C26.793951,28.6833445 27.21408,29.1034735 27.21408,29.6218735 C27.21408,30.1402735 26.793951,30.5601961 26.2757574,30.5601961 L5.63059613,30.5601961 C5.11219613,30.5601961 4.6920671,30.1402735 4.6920671,29.6218735 C4.6920671,29.1034735 5.11219613,28.6833445 5.63059613,28.6833445 L26.2757574,28.6833445 Z M30.9677419,1 C31.4491134,1 31.8457512,1.36243213 31.8999577,1.82910291 L31.906271,1.93852903 L31.906271,24.4605419 C31.906271,24.9419134 31.5440169,25.3383731 31.0772062,25.3925543 L30.9677419,25.3988645 L0.938529032,25.3988645 C0.457157604,25.3988645 0.0605198157,25.0367884 0.0063132512,24.5700032 L0,24.4605419 L0,1.93852903 C0,1.45734931 0.362254115,1.0605472 0.829064761,1.00631619 L0.938529032,1 L30.9677419,1 Z M24.1490581,13.5906581 C24.0016975,13.3475039 23.7109524,13.2397413 23.4463251,13.3172493 L23.3486452,13.3550968 L20.5857032,14.6999226 C20.2780903,14.8496 20.1500903,15.2201806 20.2999742,15.5277935 C20.4348697,15.8046452 20.748864,15.9360103 21.0341122,15.8502495 L21.1278452,15.8135226 L22.2916129,15.2470194 C21.3693935,17.8592516 18.8769032,19.7363097 15.9531355,19.7363097 C12.8154839,19.7363097 10.1741419,17.5751742 9.43710968,14.6633806 C9.41171613,14.2614194 9.10369032,13.9222194 8.68934194,13.8737032 C8.22338065,13.8192 7.8011871,14.1528258 7.74668387,14.6189935 L7.75060645,14.6542968 C8.50374194,18.493471 11.8899613,21.3879226 15.9531355,21.3879226 C19.5830039,21.3879226 22.6712,19.0771801 23.8321468,15.8470128 L23.9176258,15.5967484 L24.5150968,16.5811097 C24.6315355,16.7731097 24.8359226,16.8792258 25.0450581,16.8792258 C25.1546839,16.8792258 25.2655484,16.8503226 25.3658839,16.7892129 C25.6289858,16.6296052 25.7307148,16.3051128 25.6191474,16.0285473 L25.5739871,15.9384258 L24.1490581,13.5906581 Z M15.9531355,4.64139355 C12.3574366,4.64139355 9.29230986,6.90833053 8.10622593,10.0906784 L8.01651613,10.3437935 L7.46136774,9.45749677 C7.27989677,9.16763871 6.89775484,9.07989677 6.60769032,9.26136774 C6.34681806,9.42469161 6.24965987,9.75055897 6.36512929,10.0254057 L6.41156129,10.1148387 L7.86931613,12.4425806 C7.98596129,12.6292129 8.18745806,12.7332645 8.39452903,12.7332645 C8.45729032,12.7332645 8.52051039,12.7237219 8.58210944,12.704086 L8.67303226,12.6669935 L11.4167742,11.2833548 C11.7221161,11.1293419 11.8449548,10.7569032 11.6909419,10.4515613 C11.5521445,10.1765677 11.2364222,10.0497363 10.9522219,10.1393953 L10.8589419,10.1773935 L9.60433548,10.8099613 C10.5189161,8.18348387 13.0188387,6.29300645 15.9531355,6.29300645 C19.0862452,6.29300645 21.7242839,8.44836129 22.4656516,11.3539613 C22.4817548,11.8089806 22.8533677,12.1737806 23.3125161,12.1737806 C23.7258323,12.1737806 24.0675025,11.8774824 24.143045,11.4860467 L24.1569032,11.3770839 L24.1651613,11.3770839 L24.1593806,11.351071 L24.1620645,11.3240258 L24.1620645,11.3240258 C24.1620645,11.2887226 24.1496774,11.256929 24.1319226,11.2269935 C23.3127226,7.46193548 19.9634581,4.64139355 15.9531355,4.64139355 Z" id="icon-runInstances_\u5f62\u72b6" fill="#2296F3" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/save.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-save",use:"icon-save-usage",viewBox:"64 64 896 896",content:'<symbol viewBox="64 64 896 896" class="" fill="currentColor" aria-hidden="true" id="icon-save">\r\n <path d="M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/search.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-search">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path class="icon-svg" d="M936.264796 854.339926 757.429759 675.519214c46.499034-63.167668 74.019831-141.124158 74.019831-225.397516 0-210.099089-170.944324-381.038296-381.054669-381.038296s-381.048529 170.939207-381.048529 381.038296c0 210.105229 170.939207 381.043413 381.048529 381.043413 84.275405 0 162.234965-27.519774 225.40468-74.018807l178.832991 178.818665c11.270694 11.264555 26.03598 16.902972 40.813544 16.902972 14.776542 0 29.54285-5.638417 40.818661-16.902972C958.801069 913.419486 958.801069 876.874151 936.264796 854.339926zM163.139567 450.121697c0-158.388357 128.86188-287.25126 287.256376-287.25126s287.261493 128.86188 287.261493 287.25126c0 158.390403-128.866996 287.252283-287.261493 287.252283S163.139567 608.512101 163.139567 450.121697z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/select.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-select",use:"icon-select-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-select">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path class="icon-svg" d="M987.52 367.36c-108.16-146.56-266.88-239.36-444.16-239.36-177.28 0-335.36 92.8-444.16 239.36-48 64.64-48 160.64 0 225.28C208 739.2 366.72 832 543.36 832c177.28 0 335.36-92.8 444.16-239.36C1035.52 528 1035.52 432 987.52 367.36zM544 704C420.48 704 320 603.52 320 480S420.48 256 544 256C667.52 256 768 356.48 768 480S667.52 704 544 704zM544 320C455.68 320 384 391.68 384 480S455.68 640 544 640C632.32 640 704 568.32 704 480S632.32 320 544 320z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/settings.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-settings",use:"icon-settings-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="icon-settings">\r\n <path fill="none" d="M0 0h24v24H0z" />\r\n <path d="M2 12c0-.865.11-1.703.316-2.504A3 3 0 0 0 4.99 4.867a9.99 9.99 0 0 1 4.335-2.505 3 3 0 0 0 5.348 0 9.99 9.99 0 0 1 4.335 2.505 3 3 0 0 0 2.675 4.63c.206.8.316 1.638.316 2.503 0 .865-.11 1.703-.316 2.504a3 3 0 0 0-2.675 4.629 9.99 9.99 0 0 1-4.335 2.505 3 3 0 0 0-5.348 0 9.99 9.99 0 0 1-4.335-2.505 3 3 0 0 0-2.675-4.63C2.11 13.704 2 12.866 2 12zm4.804 3c.63 1.091.81 2.346.564 3.524.408.29.842.541 1.297.75A4.993 4.993 0 0 1 12 18c1.26 0 2.438.471 3.335 1.274.455-.209.889-.46 1.297-.75A4.993 4.993 0 0 1 17.196 15a4.993 4.993 0 0 1 2.77-2.25 8.126 8.126 0 0 0 0-1.5A4.993 4.993 0 0 1 17.195 9a4.993 4.993 0 0 1-.564-3.524 7.989 7.989 0 0 0-1.297-.75A4.993 4.993 0 0 1 12 6a4.993 4.993 0 0 1-3.335-1.274 7.99 7.99 0 0 0-1.297.75A4.993 4.993 0 0 1 6.804 9a4.993 4.993 0 0 1-2.77 2.25 8.126 8.126 0 0 0 0 1.5A4.993 4.993 0 0 1 6.805 15zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/share.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-share",use:"icon-share-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-share">\r\n \x3c!-- Generator: Sketch 57.1 (83088) - https://sketch.com --\x3e\r\n <title>\u5f62\u72b6</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-share_Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-share_Card_0" transform="translate(-182.000000, -55.000000)" fill="#47B2FB" fill-rule="nonzero">\r\n <g id="icon-share_\u5206\u4eab">\r\n <g transform="translate(182.000000, 55.000000)">\r\n <path d="M13.4,6.07999999 C13.08,6.07999999 12.8,6.35999999 12.8,6.67999999 L12.8,10.4 C12.8,11.72 11.68,12.84 10.36,12.84 L4.04,12.84 C2.48000001,12.84 1.2,11.6 1.2,10.04 L1.2,3.4 C1.2,2.2 2.19999999,1.2 3.39999999,1.2 L6.56,1.2 C6.88000001,1.2 7.16,0.920000007 7.16,0.600000001 C7.16,0.279999994 6.88000001,0 6.56,0 L3.39999999,0 C1.51999999,0 0,1.52000001 0,3.4 L0,10 C0,12.2 1.8,14 4.04,14 L10.36,14 C12.36,14 14,12.36 14,10.36 L14,6.67999999 C14,6.35999999 13.72,6.07999999 13.4,6.07999999 Z M10.12,1.48 L11.64,1.48 L5.96,7.36 C5.72,7.6 5.72,7.96 5.96,8.2 C6.08,8.32 6.24,8.35999999 6.36,8.35999999 C6.51999999,8.35999999 6.68,8.27999999 6.8,8.16000001 L12.52,2.28 L12.52,3.96 C12.52,4.28000001 12.8,4.56 13.12,4.56 C13.44,4.56 13.72,4.28000001 13.72,3.96 L13.72,1.2 C13.72,0.680000007 13.28,0.24 12.76,0.24 L10.12,0.24 C9.79999998,0.24 9.51999999,0.519999994 9.51999999,0.840000001 C9.51999999,1.16000001 9.79999998,1.48 10.12,1.48 L10.12,1.48 Z" id="icon-share_\u5f62\u72b6" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/shares.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-shares",use:"icon-shares-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-shares">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u5206\u4eab</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-shares_\u6a21\u578b\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-shares_icon/\u5206\u4eab">\r\n <g>\r\n <rect id="icon-shares_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M6.22357578,6.85567406 C6.22357578,8.5741708 4.83026061,9.96745395 3.11179589,9.96745395 C1.39331517,9.96745395 0,8.5741708 0,6.85567406 C0,5.13720934 1.39331517,3.74384616 3.11179589,3.74384616 C4.83026061,3.74384616 6.22357578,5.13722534 6.22357578,6.85567406 Z M3.11182791,6.85567406 L11.6160288,2.33383491 L3.11182791,6.85567406 Z M3.11182791,6.85567406 L11.6661651,11.1039567 L3.11182791,6.85567406 Z M14,11.1025 C14,12.392485 12.9546294,13.4378076 11.6661651,13.4378076 C10.376148,13.4378076 9.33231418,12.392485 9.33231418,11.1025 C9.33231418,9.81395557 10.376148,8.76864904 11.6661651,8.76864904 C12.9546454,8.76864904 14,9.81395557 14,11.1025 Z M13.9498477,2.33383491 C13.9498477,3.62236329 12.9044771,4.66766982 11.6160288,4.66766982 C10.3275324,4.66766982 9.28217788,3.62236329 9.28217788,2.33383491 C9.28217788,1.04538656 10.3275324,-8.8817842e-15 11.6160288,-8.8817842e-15 C12.9045092,-8.8817842e-15 13.9498477,1.04538656 13.9498477,2.33383491 Z M9.77562442,2.6598976 L10.2956848,3.61711812 L5.85138642,6.03171703 L5.33132602,5.07449651 L9.77562442,2.6598976 Z M10.1640513,9.66040668 L9.68712259,10.6398645 L5.4116501,8.55800283 L5.88857886,7.57854497 L10.1640513,9.66040668 Z" id="icon-shares_\u5f62\u72b6" fill="#177CD1" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/signout.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-signout",use:"icon-signout-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-signout">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u9000\u51fa</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-signout_AI\u5e73\u53f0-\u6a21\u578b\u63a8\u7406-\u6a21\u578b\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-signout_\u6a21\u578b\u63a8\u7406-\u4e2a\u4eba\u4e2d\u5fc3" transform="translate(-1301.000000, -128.000000)">\r\n <g id="icon-signout_\u7f16\u7ec4-3" transform="translate(1288.000000, 54.000000)">\r\n <g id="icon-signout_icon/\u9000\u51fa" transform="translate(12.000000, 73.000000)">\r\n <g>\r\n <polygon id="icon-signout_\u8def\u5f84" points="0 0 14 0 14 14 0 14" />\r\n <path class="icon-svg" d="M3.65458333,2.22075 L4.32366667,3.17683333 C2.65509118,4.34495045 1.93686203,6.46029895 2.54925543,8.4028787 C3.16164884,10.3454584 4.96317852,11.6664593 7,11.6664593 C9.03682148,11.6664593 10.8383512,10.3454584 11.4507446,8.4028787 C12.063138,6.46029895 11.3449088,4.34495045 9.67633333,3.17683333 L10.3454167,2.22075 C11.9057758,3.31165414 12.8347043,5.09611172 12.8333348,7 C12.8333348,10.22175 10.22175,12.8333333 7,12.8333333 C3.77825,12.8333333 1.16666515,10.22175 1.16666515,7 C1.16529565,5.09611172 2.0942242,3.31165414 3.65458333,2.22075 L3.65458333,2.22075 Z M6.41666667,7 L6.41666667,1.16666667 L7.58333333,1.16666667 L7.58333333,7 L6.41666667,7 Z" id="icon-signout_\u5f62\u72b6" fill="#000000" fill-rule="nonzero" opacity="0.65" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/sjjghkf.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-sjjghkf",use:"icon-sjjghkf-usage",viewBox:"0 0 14 15",content:'<symbol viewBox="0 0 14 15" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sjjghkf">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u7ed3\u6784\u5316\u6570\u636e\u5f00\u53d1</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-sjjghkf_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-sjjghkf_icon/\u7ed3\u6784\u5316\u6570\u636e\u5f00\u53d1">\r\n <g id="icon-sjjghkf_icon/\u6570\u636e\u5f00\u53d1-" stroke-width="1" fill="#FFFFFF" fill-opacity="0.01">\r\n <rect id="icon-sjjghkf_\u77e9\u5f62" x="0" y="0" width="14" height="14" />\r\n </g>\r\n <path d="M3.855,2.7239 L6.106,4.7819 L13.436,4.7579 C13.7132,4.757 13.94423,4.95941 13.987664,5.224433 L13.995,5.3149 L13.995,13.4789 C13.995,13.7561 13.79331,13.98551 13.527711,14.02862 L13.437,14.0359 L0.557,14.0359 C0.2807,14.0359 0.05057,13.83421 0.007307,13.56934 L-1.13686838e-13,13.4789 L-1.13686838e-13,3.2809 C-1.13686838e-13,3.0046 0.2025,2.77447 0.466803,2.731207 L0.557,2.7239 L3.855,2.7239 Z M3.519,3.6609 L1.194,3.6849 C1.06714286,3.68575714 0.960122449,3.77477755 0.932134111,3.89402536 L0.925,3.9559 L0.925,12.8009 C0.925,12.9294714 1.01463265,13.0367367 1.13470262,13.0647601 L1.197,13.0719 L12.798,13.0719 C12.9265714,13.0719 13.0338367,12.983002 13.0618601,12.863142 L13.069,12.8009 L13.069,6.0299 C13.069,5.90132857 12.980102,5.79332857 12.860242,5.76509534 L12.798,5.7579 L5.771,5.7579 L3.519,3.6609 Z M7.8869,6.6167 C7.9399,6.6167 7.9889,6.6247 8.0319,6.6407 C8.20515,6.70545 8.3018375,6.91030937 8.28913633,7.06970977 L8.2769,7.1347 L6.5119,11.9947 C6.4589,12.1337 6.2769,12.1967 6.1309,12.1967 C6.0789,12.1967 6.0299,12.1887 5.9889,12.1737 C5.8809,12.1357 5.7659,12.0287 5.7139,11.9137 C5.6899,11.8617 5.67923333,11.8114778 5.6819,11.7648111 L5.6959,11.6977 L7.4709,6.8427 C7.5259,6.7007 7.7249,6.6167 7.8869,6.6167 Z M9.268,7.1006 C9.35575,7.1006 9.4429375,7.1236625 9.5093125,7.1630375 L9.568,7.2076 L11.512,9.1526 C11.6225714,9.26317143 11.6383673,9.43325306 11.5600175,9.56145714 L11.513,9.6216 L9.656,11.4726 C9.588,11.5406 9.458,11.5866 9.333,11.5866 C9.25,11.5866 9.13,11.5666 9.034,11.4726 C8.96,11.3996 8.919,11.2886 8.919,11.1616 C8.919,11.052 8.9478,10.94496 8.99516,10.870688 L9.034,10.8216 L10.63,9.3376 L8.982,7.8246 C8.849,7.6816 8.824,7.3636 8.982,7.2076 C9.052,7.1386 9.154,7.1006 9.268,7.1006 Z M4.7136,7.1121 C4.8326,7.1121 4.9396,7.1481 5.0006,7.2081 C5.113475,7.319225 5.12835,7.61333437 5.04455508,7.77690469 L5.0026,7.8381 L3.3716,9.4241 L4.9586,10.8421 C5.0226,10.9061 5.0626,11.0251 5.0626,11.1531 C5.0626,11.2781 5.0236,11.3851 4.9596,11.4491 C4.8836,11.5241 4.7636,11.5671 4.6306,11.5671 C4.53985,11.5671 4.4536,11.54685 4.39125625,11.5122562 L4.3376,11.4731 L2.4816,9.6201 C2.4196,9.5571 2.3856,9.4741 2.3856,9.3861 C2.3856,9.3201 2.404725,9.2569125 2.44044375,9.2032875 L2.4816,9.1531 L4.4266,7.2081 C4.4866,7.1481 4.5946,7.1121 4.7136,7.1121 Z M4.851,1 L7.029,3.137 L11.984,3.112 L13.582,3.112 C13.77975,3.112 13.9445781,3.25210938 13.9826953,3.43920898 L13.991,3.522 L13.991,3.663 C13.991,3.86075 13.8508906,4.02557813 13.6644609,4.06369531 L13.582,4.072 L6.614,4.072 L4.436,1.935 L1.936,1.942 L0.404,1.941 C0.208,1.941 0.0456875,1.80165625 0.008171875,1.61742773 L-6.57252031e-14,1.536 L-6.57252031e-14,1.405 C-6.57252031e-14,1.209 0.1378125,1.04592188 0.322328125,1.00821484 L0.404,1 L4.851,1 Z" id="icon-sjjghkf_\u5f62\u72b6" fill="#DCDCDC" />\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/start.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-start",use:"icon-start-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-start">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u542f\u52a8</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-start_\u6a21\u578b\u8bad\u7ec3_\u6a21\u578b\u7ba1\u7406" stroke="none" stroke-width="1" fill-rule="evenodd">\r\n <g id="icon-start_icon/\u542f\u52a8">\r\n <g>\r\n <rect id="icon-start_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <polygon id="icon-start_\u542f\u52a8" fill-rule="nonzero" points="4 1 12.1 7 4 13" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/stop.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-stop",use:"icon-stop-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-stop">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path class="icon-svg" d="M163.386696 158.717861l705.252399 0 0 705.21556-705.252399 0 0-705.21556Z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/sysmgr.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-sysmgr",use:"icon-sysmgr-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sysmgr">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u7cfb\u7edf\u8bbe\u7f6e</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-sysmgr_\u7ec4\u4ef6" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-sysmgr_icon/\u7cfb\u7edf\u8bbe\u7f6e">\r\n <g>\r\n <rect id="icon-sysmgr_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="14" height="14" />\r\n <path d="M13.5,1 C13.775,1 14,1.224 14,1.5 L14,1.5 L14,12.5 C14,12.776 13.775,13 13.5,13 L13.5,13 L0.5,13 C0.224,13 0,12.776 0,12.5 L0,12.5 L0,1.5 C0,1.224 0.224,1 0.5,1 L0.5,1 Z M13,2 L1,2 L1,12 L13,12 L13,2 Z M10.6211,2.619 C10.8501,2.619 11.0361,2.805 11.0361,3.033 L11.0361,7.589 C11.6881,7.727 12.1611,8.336 12.1611,9.042 C12.1611,9.746 11.6861,10.359 11.0071,10.534 L11.0361,10.967 C11.0361,11.196 10.8501,11.382 10.6211,11.382 C10.3921,11.382 10.2061,11.196 10.2061,10.967 L10.2061,10.495 C9.5541,10.358 9.0811,9.749 9.0811,9.042 C9.0811,8.34 9.5561,7.727 10.2351,7.551 L10.2061,3.033 C10.2061,2.805 10.3921,2.619 10.6211,2.619 Z M7.0254,2.6237 C7.2544,2.6237 7.4404,2.8097 7.4404,3.0387 L7.4404,3.0387 L7.4114,3.9767 C8.0904,4.1517 8.5654,4.7647 8.5654,5.4687 C8.5654,6.1747 8.0924,6.7837 7.4404,6.9217 L7.4404,6.9217 L7.4404,10.9677 C7.4404,11.1957 7.2544,11.3817 7.0254,11.3817 C6.7964,11.3817 6.6104,11.1957 6.6104,10.9677 L6.6104,10.9677 L6.6394,6.9597 C5.9604,6.7837 5.4854,6.1707 5.4854,5.4687 C5.4854,4.7617 5.9584,4.1527 6.6104,4.0157 L6.6104,4.0157 L6.6104,3.0377 C6.6104,2.8097 6.7964,2.6237 7.0254,2.6237 Z M3.3779,2.6184 C3.6069,2.6184 3.7929,2.8044 3.7929,3.0334 L3.7929,6.5934 C4.4449,6.7314 4.9179,7.3404 4.9179,8.0464 C4.9179,8.7504 4.4429,9.3634 3.7639,9.5384 L3.7929,10.9664 C3.7929,11.1954 3.6069,11.3814 3.3779,11.3814 C3.1489,11.3814 2.9629,11.1954 2.9629,10.9674 L2.9629,9.4994 C2.3109,9.3624 1.8379,8.7534 1.8379,8.0464 C1.8379,7.3444 2.3129,6.7314 2.9919,6.5554 L2.9629,3.0334 C2.9629,2.8044 3.1489,2.6184 3.3779,2.6184 Z M10.6211,8.332 C10.2291,8.332 9.9111,8.651 9.9111,9.042 C9.9111,9.434 10.2291,9.753 10.6211,9.753 C11.0131,9.753 11.3311,9.434 11.3311,9.042 C11.3311,8.651 11.0131,8.332 10.6211,8.332 Z M3.3779,7.3364 C2.9859,7.3364 2.6679,7.6554 2.6679,8.0464 C2.6679,8.4384 2.9859,8.7574 3.3779,8.7574 C3.7699,8.7574 4.0879,8.4384 4.0879,8.0464 C4.0879,7.6554 3.7699,7.3364 3.3779,7.3364 Z M7.0254,4.7577 C6.6334,4.7577 6.3154,5.0767 6.3154,5.4687 C6.3154,5.8597 6.6334,6.1787 7.0254,6.1787 C7.4174,6.1787 7.7354,5.8597 7.7354,5.4687 C7.7354,5.0767 7.4174,4.7577 7.0254,4.7577 Z" fill="#DCDCDC" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/trainRate.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-trainRate",use:"icon-trainRate-usage",viewBox:"0 0 40 40",content:'<symbol viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-trainRate">\r\n <title>\u8bad\u7ec3\u8d44\u6e90\u5229\u7528\u7387</title>\r\n <g id="icon-trainRate_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-trainRate_\u8bad\u7ec3\u8d44\u6e90\u5229\u7528\u7387">\r\n <circle id="icon-trainRate_\u692d\u5706\u5f62" fill="#2296F3" cx="20" cy="20" r="20" />\r\n <g id="icon-trainRate_icon_nav_training_model" transform="translate(11.000000, 11.000000)" fill="#FFFFFF" fill-rule="nonzero">\r\n <path d="M17.4,0 C17.5591299,0 17.7117422,0.0632140925 17.8242641,0.175735919 C17.9367859,0.288257745 18,0.440870094 18,0.599999991 L18,17.4 C18,17.5591299 17.9367859,17.7117422 17.8242641,17.8242641 C17.7117422,17.9367859 17.5591299,18 17.4,18 L0.599999991,18 C0.440870094,18 0.288257745,17.9367859 0.175735919,17.8242641 C0.0632140925,17.7117422 0,17.5591299 0,17.4 L0,0.599999991 C0,0.268629146 0.268629146,0 0.599999991,0 L17.4,0 Z M16.8,1.19999998 L1.19999998,1.19999998 L1.19999998,16.8 L16.8,16.8 L16.8,1.19999998 Z M15.4106443,5.56287596 C15.6252371,5.76464492 15.6583215,6.08708853 15.5036019,6.32580652 L15.4367664,6.41100191 L10.5855199,11.5705801 C10.4088824,11.7584442 10.1352598,11.8100582 9.90568901,11.708353 L9.82194034,11.6629933 L6.381,9.432 L3.40396987,12.1436309 C3.1861827,12.3419477 2.8621451,12.3499528 2.63613072,12.1772046 L2.55636913,12.1039699 C2.35805234,11.8861827 2.35004723,11.5621451 2.52279542,11.3361307 L2.59603013,11.2563691 L5.9159517,8.23325153 C6.09235748,8.07261658 6.34412896,8.03373491 6.55757711,8.12591178 L6.6463771,8.17346727 L10.054,10.383 L14.5625184,5.58899809 C14.7895084,5.34758115 15.1692274,5.33588587 15.4106443,5.56287596 Z" id="icon-trainRate_\u5f62\u72b6" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/trainResources.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-trainResources",use:"icon-trainResources-usage",viewBox:"0 0 40 40",content:'<symbol viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-trainResources">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>\u8bad\u7ec3\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-trainResources_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-trainResources_\u9996\u9875-\u9879\u76ee\u8d1f\u8d23\u4eba" transform="translate(-60.000000, -480.000000)">\r\n <g id="icon-trainResources_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-trainResources_2" transform="translate(40.000000, 368.000000)">\r\n <g id="icon-trainResources_\u6307\u6807\u5361">\r\n <g id="icon-trainResources_1" transform="translate(0.000000, 34.000000)">\r\n <g id="icon-trainResources_\u8bad\u7ec3\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5" transform="translate(20.000000, 18.000000)">\r\n <circle id="icon-trainResources_\u692d\u5706\u5f62" fill="#2296F3" cx="20" cy="20" r="20" />\r\n <g id="icon-trainResources_icon_nav_training_model" transform="translate(11.000000, 11.000000)" fill="#FFFFFF" fill-rule="nonzero">\r\n <path d="M17.4,0 C17.5591299,0 17.7117422,0.0632140925 17.8242641,0.175735919 C17.9367859,0.288257745 18,0.440870094 18,0.599999991 L18,17.4 C18,17.5591299 17.9367859,17.7117422 17.8242641,17.8242641 C17.7117422,17.9367859 17.5591299,18 17.4,18 L0.599999991,18 C0.440870094,18 0.288257745,17.9367859 0.175735919,17.8242641 C0.0632140925,17.7117422 0,17.5591299 0,17.4 L0,0.599999991 C0,0.268629146 0.268629146,0 0.599999991,0 L17.4,0 Z M16.8,1.19999998 L1.19999998,1.19999998 L1.19999998,16.8 L16.8,16.8 L16.8,1.19999998 Z M4.19999999,12 C5.19411254,12 5.99999999,12.8058874 5.99999999,13.8 C5.99999999,14.7941125 5.19411254,15.6 4.19999999,15.6 C3.20588744,15.6 2.39999999,14.7941125 2.39999999,13.8 C2.39999999,12.8058874 3.20588744,12 4.19999999,12 Z M6.59999998,2.39999999 C6.75912988,2.39999999 6.91174223,2.46321408 7.02426406,2.57573591 C7.13678589,2.68825774 7.2,2.84087008 7.2,2.99999998 L7.2,6.35159998 L11.6484,10.8 L15,10.8 C15.3313708,10.8 15.6,11.0686291 15.6,11.4 L15.6,15 C15.6,15.3313708 15.3313708,15.6 15,15.6 L11.4,15.6 C11.0686291,15.6 10.8,15.3313708 10.8,15 L10.8,11.6484 L6.35159998,7.2 L2.99999998,7.2 C2.84087008,7.2 2.68825774,7.13678589 2.57573591,7.02426406 C2.46321408,6.91174223 2.39999999,6.75912988 2.39999999,6.59999998 L2.39999999,2.99999998 C2.39999999,2.66862914 2.66862914,2.39999999 2.99999998,2.39999999 L6.59999998,2.39999999 Z M4.19999999,13.2 C3.86862914,13.2 3.59999999,13.4686291 3.59999999,13.8 C3.59999999,14.1313708 3.86862914,14.4 4.19999999,14.4 C4.53137084,14.4 4.8,14.1313708 4.8,13.8 C4.8,13.4686291 4.53137084,13.2 4.19999999,13.2 Z M14.4,12 L12,12 L12,14.4 L14.4,14.4 L14.4,12 Z M13.8,2.39999999 C14.7941125,2.39999999 15.6,3.20588744 15.6,4.19999999 C15.6,5.19411254 14.7941125,5.99999999 13.8,5.99999999 C12.8058874,5.99999999 12,5.19411254 12,4.19999999 C12,3.20588744 12.8058874,2.39999999 13.8,2.39999999 Z M5.99999999,3.6 L3.6,3.6 L3.6,5.99999999 L5.99879998,5.99999999 L5.99999999,5.99879998 L5.99999999,3.6 Z M13.8,3.6 C13.4686291,3.6 13.2,3.86862915 13.2,4.19999999 C13.2,4.53137084 13.4686291,4.79999998 13.8,4.79999998 C14.1313708,4.79999998 14.4,4.53137084 14.4,4.19999999 C14.4,3.86862915 14.1313708,3.6 13.8,3.6 Z" id="icon-trainResources_\u5f62\u72b6" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/tuili.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-tuili",use:"icon-tuili-usage",viewBox:"0 0 54 52",content:'<symbol viewBox="0 0 54 52" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-tuili">\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-tuili_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-tuili_\u9996\u9875\u5907\u4efd" transform="translate(-1109.000000, -181.000000)">\r\n <g transform="translate(1109.000000, 181.000000)">\r\n <rect id="icon-tuili_\u77e9\u5f62\u5907\u4efd" fill="#EDB577" x="0" y="0" width="54" height="52" rx="4" />\r\n <g id="icon-tuili_\u7f16\u7ec4\u5907\u4efd" transform="translate(15.000000, 14.000000)" fill="#FFFFFF" fill-rule="nonzero">\r\n <path d="M8.15569196,13.6328125 C7.75669643,14.2354911 7.42466518,14.8297991 7.17075893,15.3989955 C6.61551339,16.6462054 6.51227679,17.6590402 6.90290179,18.0496652 C7.29352679,18.4402902 8.30636161,18.3342634 9.55357143,17.781808 C10.1199777,17.530692 10.7142857,17.1986607 11.3169643,16.796875 C10.7561384,16.3364955 10.1981027,15.8342634 9.65680804,15.2929688 C9.11830357,14.7544643 8.61328125,14.1964286 8.15569196,13.6328125 L8.15569196,13.6328125 Z M13.5909598,16.796875 C14.1936384,17.1958705 14.7879464,17.5279018 15.3543527,17.781808 C16.0993304,18.1138393 16.7633929,18.28125 17.2572545,18.28125 C17.5920759,18.28125 17.8487723,18.203125 18.0050223,18.0496652 C18.3928571,17.6618304 18.2896205,16.6462054 17.7371652,15.3989955 C17.4832589,14.8297991 17.1512277,14.2354911 16.7522321,13.6328125 C16.2918527,14.1964286 15.7896205,14.7516741 15.2483259,15.2929688 C14.7098214,15.8342634 14.1517857,16.3364955 13.5909598,16.796875 L13.5909598,16.796875 Z M10.6166295,14.3359375 C11.2165179,14.9358259 11.8331473,15.4854911 12.4553571,15.9737723 C13.0747768,15.4854911 13.6941964,14.9358259 14.2940848,14.3359375 C14.8939732,13.7360491 15.4436384,13.1194196 15.9319196,12.5 C15.4436384,11.8805804 14.8939732,11.2611607 14.2940848,10.6612723 C13.6941964,10.0613839 13.077567,9.51171875 12.4581473,9.0234375 C11.8387277,9.51171875 11.219308,10.0613839 10.6194196,10.6612723 C10.0223214,11.2611607 9.47265625,11.8777902 8.984375,12.4972098 C9.46707589,13.1166295 10.0167411,13.7360491 10.6166295,14.3359375 L10.6166295,14.3359375 Z M11.3169643,8.19754464 C10.7142857,7.79854911 10.1199777,7.46651786 9.55078125,7.21261161 C8.80580357,6.88058036 8.14174107,6.71316964 7.64787946,6.71316964 C7.31305804,6.71316964 7.05636161,6.79129464 6.90011161,6.94475446 C6.51227679,7.33258929 6.61551339,8.34821429 7.16796875,9.59542411 C7.421875,10.1646205 7.75390625,10.7561384 8.15290179,11.358817 C8.61328125,10.7979911 9.11551339,10.2399554 9.65401786,9.69866071 C10.1981027,9.16015625 10.7533482,8.65792411 11.3169643,8.19754464 L11.3169643,8.19754464 Z M17.2572545,6.71316964 C16.7606027,6.71316964 16.0993304,6.88337054 15.3543527,7.21261161 C14.7851562,7.46651786 14.1908482,7.79854911 13.5881696,8.19754464 C14.1517857,8.65792411 14.7070312,9.16015625 15.2483259,9.70145089 C15.7896205,10.2427455 16.2918527,10.7979911 16.7522321,11.3616071 C17.1512277,10.7589286 17.4832589,10.1646205 17.7371652,9.59542411 C18.2924107,8.34821429 18.3956473,7.33537946 18.0050223,6.94475446 C17.8487723,6.78850446 17.5920759,6.71316964 17.2572545,6.71316964 L17.2572545,6.71316964 Z" id="icon-tuili_\u5f62\u72b6" />\r\n <path d="M21.9419643,0.0223214286 L3.01339286,0.0223214286 C1.36160714,0.0223214286 0.00837053571,1.37555804 0.00837053571,3.02734375 L0.00837053571,21.9587054 C0.00837053571,23.6104911 1.36160714,24.9637277 3.01339286,24.9637277 L21.9447545,24.9637277 C23.5965402,24.9637277 24.9497768,23.6104911 24.9497768,21.9587054 L24.9497768,3.02734375 C24.9469866,1.37555804 23.5965402,0.0223214286 21.9419643,0.0223214286 Z M18.9760045,14.8493304 C19.3498884,15.6919643 19.5563616,16.4564732 19.5898438,17.1205357 C19.6372768,18.1166295 19.2773438,18.6969866 18.9648438,19.0094866 C18.671875,19.2996652 18.1417411,19.6372768 17.2516741,19.6372768 C17.1958705,19.6372768 17.1372768,19.6344866 17.0758929,19.6316964 C16.4118304,19.5982143 15.6473214,19.3917411 14.8046875,19.0178571 C14.0457589,18.6830357 13.2533482,18.2198661 12.452567,17.6590402 C11.6517857,18.2198661 10.859375,18.6802455 10.1004464,19.0178571 C9.2578125,19.3917411 8.49330357,19.5982143 7.82924107,19.6316964 C7.76785714,19.6344866 7.70926339,19.6344866 7.65345982,19.6344866 C6.76618304,19.6344866 6.23604911,19.296875 5.94308036,19.0039062 C5.63058036,18.6914062 5.27064732,18.1110491 5.31808036,17.1149554 C5.3515625,16.4508929 5.55803571,15.6863839 5.93191964,14.84375 C6.26953125,14.0876116 6.72991071,13.2924107 7.29073661,12.4944196 C6.72991071,11.6964286 6.26674107,10.9012277 5.93191964,10.1422991 C5.55803571,9.29966518 5.3515625,8.53515625 5.31808036,7.87109375 C5.27064732,6.875 5.63058036,6.29464286 5.94308036,5.98214286 C6.25558036,5.66964286 6.8359375,5.30970982 7.83203125,5.35714286 C8.49609375,5.390625 9.26060268,5.59709821 10.1032366,5.97098214 C10.859375,6.30859375 11.6545759,6.76897321 12.452567,7.32979911 C13.2533482,6.76897321 14.0485491,6.30580357 14.8074777,5.96819196 C15.6501116,5.59430804 16.4146205,5.38783482 17.078683,5.35435268 C18.0747768,5.30691964 18.6551339,5.66685268 18.9676339,5.97935268 C19.2801339,6.29185268 19.640067,6.87220982 19.5926339,7.86830357 C19.5591518,8.53236607 19.3526786,9.296875 18.9787946,10.1395089 C18.641183,10.8984375 18.1808036,11.6936384 17.6199777,12.4916295 C18.1752232,13.2979911 18.6383929,14.0904018 18.9760045,14.8493304 L18.9760045,14.8493304 Z" id="icon-tuili_\u5f62\u72b6" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/undo.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-undo",use:"icon-undo-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-undo">\r\n <path d="M896.512 229.888C814.336 147.712 705.024 102.4 588.8 102.4s-225.536 45.2608-307.712 127.488S153.6 421.376 153.6 537.6v66.2016L43.7248 493.9264a25.6 25.6 0 0 0-36.1984 36.1984l153.6 153.6a25.4976 25.4976 0 0 0 36.2496 0l153.6-153.6a25.6 25.6 0 0 0-36.1984-36.1984l-109.8752 109.8752V537.6c0-211.7632 172.2368-384 384-384s384 172.2368 384 384-172.2368 384-384 384a25.6 25.6 0 0 0 0 51.2c116.224 0 225.536-45.2608 307.712-127.488s127.488-191.488 127.488-307.712c0-116.224-45.2608-225.536-127.488-307.712z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/updatePws.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-updatePws",use:"icon-updatePws-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-updatePws">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u4e2a\u4eba\u8bbe\u7f6e</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-updatePws_AI\u5e73\u53f0-\u6a21\u578b\u63a8\u7406-\u6a21\u578b\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-updatePws_\u6a21\u578b\u63a8\u7406-\u4e2a\u4eba\u4e2d\u5fc3" transform="translate(-1301.000000, -96.000000)">\r\n <g id="icon-updatePws_\u7f16\u7ec4-3" transform="translate(1288.000000, 54.000000)">\r\n <g id="icon-updatePws_icon/\u4e2a\u4eba\u8bbe\u7f6e" transform="translate(12.000000, 41.000000)">\r\n <g>\r\n <polygon id="icon-updatePws_\u8def\u5f84" points="0 0 14 0 14 14 0 14" />\r\n <path d="M1.94833333,9.91666667 C1.70174123,9.49024096 1.51005448,9.03434795 1.37783333,8.55983333 C1.96459147,8.26140228 2.33423747,7.65893959 2.3344837,7.00064928 C2.33472993,6.34235896 1.96553472,5.73961991 1.379,5.44075 C1.64268761,4.48728382 2.14475894,3.61663874 2.83791667,2.91083333 C3.38993075,3.26971811 4.09666542,3.2883893 4.66685897,2.95915209 C5.23705252,2.62991487 5.57419158,2.00849732 5.53933333,1.351 C6.49723061,1.10344624 7.50238413,1.10384774 8.46008333,1.35216667 C8.42553345,2.0096493 8.76292925,2.63088489 9.33323338,2.95986863 C9.90353752,3.28885236 10.6102274,3.26990453 11.1620833,2.91083333 C11.4998333,3.255 11.7996667,3.64641667 12.0516667,4.08333333 C12.30425,4.52025 12.49325,4.97583333 12.6221667,5.44016667 C12.0354085,5.73859772 11.6657625,6.34106041 11.6655163,6.99935072 C11.6652701,7.65764104 12.0344653,8.26038009 12.621,8.55925 C12.3573124,9.51271618 11.8552411,10.3833613 11.1620833,11.0891667 C10.6100693,10.7302819 9.90333458,10.7116107 9.33314103,11.0408479 C8.76294748,11.3700851 8.42580842,11.9915027 8.46066667,12.649 C7.50276939,12.8965538 6.49761587,12.8961523 5.53991667,12.6478333 C5.57446655,11.9903507 5.23707075,11.3691151 4.66676662,11.0401314 C4.09646248,10.7111476 3.38977261,10.7300955 2.83791667,11.0891667 C2.49316136,10.7373847 2.19426371,10.3434278 1.94833333,9.91666667 Z M5.25,10.031 C5.87161572,10.3895333 6.33899298,10.9649266 6.5625,11.6468333 C6.85358333,11.67425 7.14583333,11.6748333 7.43691667,11.6474167 C7.66056818,10.9654144 8.12816448,10.3900072 8.75,10.0315833 C9.37137675,9.67206662 10.1036383,9.55469703 10.80625,9.702 C10.9754167,9.464 11.12125,9.21025 11.2425833,8.94483333 C10.7639173,8.41017396 10.4994846,7.71762217 10.5,7 C10.5,6.265 10.7741667,5.57841667 11.2425833,5.05516667 C11.1203919,4.78983638 10.9739355,4.53636918 10.8050833,4.298 C10.1029151,4.44518018 9.37112892,4.32802791 8.75,3.969 C8.12838428,3.61046675 7.66100702,3.03507341 7.4375,2.35316667 C7.14641667,2.32575 6.85416667,2.32516667 6.56308333,2.35258333 C6.33943182,3.03458558 5.87183552,3.60999284 5.25,3.96841667 C4.62862325,4.32793338 3.89636168,4.44530297 3.19375,4.298 C3.02491323,4.5361666 2.87882682,4.78966948 2.75741667,5.05516667 C3.23608273,5.58982604 3.50051538,6.28237783 3.5,7 C3.5,7.735 3.22583333,8.42158333 2.75741667,8.94483333 C2.87960813,9.21016362 3.02606452,9.46363082 3.19491667,9.702 C3.89708486,9.55481982 4.62887108,9.67197209 5.25,10.031 Z M7,8.75 C6.03350169,8.75 5.25,7.96649831 5.25,7 C5.25,6.03350169 6.03350169,5.25 7,5.25 C7.96649831,5.25 8.75,6.03350169 8.75,7 C8.75,7.96649831 7.96649831,8.75 7,8.75 Z M7,7.58333333 C7.3221661,7.58333333 7.58333333,7.3221661 7.58333333,7 C7.58333333,6.6778339 7.3221661,6.41666667 7,6.41666667 C6.6778339,6.41666667 6.41666667,6.6778339 6.41666667,7 C6.41666667,7.3221661 6.6778339,7.58333333 7,7.58333333 Z" id="icon-updatePws_\u5f62\u72b6" fill="#000000" fill-rule="nonzero" opacity="0.65" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/upgrade.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-upgrade",use:"icon-upgrade-usage",viewBox:"0 0 9 11",content:'<symbol viewBox="0 0 9 11" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-upgrade">\r\n <title>\u5347\u7ea7</title>\r\n <g id="icon-upgrade_\u6a21\u578b\u63a8\u7406" stroke="none" stroke-width="1">\r\n <g id="icon-upgrade_\u542f\u52a8\u5907\u4efd" transform="translate(-24.000000, -6.000000)">\r\n <g id="icon-upgrade_\u5347\u7ea7" transform="translate(24.000000, 6.000000)">\r\n <path d="M6.875,10.3452 C7.056,10.3452 7.203,10.4922 7.203,10.6732 C7.203,10.8522 7.056,11.0002 6.875,11.0002 L6.875,11.0002 L1.965,11.0002 C1.784,11.0002 1.638,10.8522 1.638,10.6732 C1.638,10.4922 1.784,10.3452 1.965,10.3452 L1.965,10.3452 Z M6.0567,9.2536 C6.2377,9.2536 6.3847,9.4016 6.3847,9.5816 C6.3847,9.7616 6.2377,9.9086 6.0567,9.9086 L6.0567,9.9086 L2.7837,9.9086 C2.6037,9.9086 2.4557,9.7616 2.4557,9.5816 C2.4557,9.4016 2.6037,9.2536 2.7837,9.2536 L2.7837,9.2536 Z M4.4197,0.0002 C4.7837,0.0002 5.1207,0.1442 5.3687,0.4092 L5.3687,0.4092 L8.6817,3.9042 C8.8397,4.0702 8.8837,4.3132 8.7907,4.5232 C8.6987,4.7332 8.4937,4.8692 8.2637,4.8692 L8.2637,4.8692 L6.5447,4.8692 L6.5447,7.9772 C6.5477,8.4302 6.1827,8.7962 5.7297,8.7962 L5.7297,8.7962 L3.1107,8.7962 C2.6607,8.7962 2.2917,8.4272 2.2917,7.9772 L2.2917,7.9772 L2.2917,4.8692 L0.5737,4.8692 C0.2567,4.8702 -0.000300000001,4.6132 -0.000300000001,4.2972 C-0.000300000001,4.1512 0.0557,4.0102 0.1567,3.9042 L0.1567,3.9042 L3.4707,0.4092 C3.7217,0.1442 4.0577,0.0002 4.4197,0.0002 Z" id="icon-upgrade_\u5f62\u72b6\u7ed3\u5408" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/user.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-user">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u4e2a\u4eba\u4e2d\u5fc3</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-user_AI\u5e73\u53f0-\u6a21\u578b\u63a8\u7406-\u6a21\u578b\u7ba1\u7406" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-user_\u6a21\u578b\u63a8\u7406-\u4e2a\u4eba\u4e2d\u5fc3" transform="translate(-1302.000000, -63.000000)">\r\n <g id="icon-user_\u7f16\u7ec4-3" transform="translate(1288.000000, 54.000000)">\r\n <g id="icon-user_icon/\u4e2a\u4eba\u4e2d\u5fc3" transform="translate(12.000000, 9.000000)">\r\n <g>\r\n <polygon id="icon-user_\u8def\u5f84" points="0 0 14 0 14 14 0 14" />\r\n <path d="M2.33333333,12.8333333 C2.33333333,10.2560045 4.42267117,8.16666667 7,8.16666667 C9.57732883,8.16666667 11.6666667,10.2560045 11.6666667,12.8333333 L10.5,12.8333333 C10.5,10.9003367 8.93299662,9.33333333 7,9.33333333 C5.06700338,9.33333333 3.5,10.9003367 3.5,12.8333333 L2.33333333,12.8333333 L2.33333333,12.8333333 Z M7,7.58333333 C5.06625,7.58333333 3.5,6.01708333 3.5,4.08333333 C3.5,2.14958333 5.06625,0.583333333 7,0.583333333 C8.93375,0.583333333 10.5,2.14958333 10.5,4.08333333 C10.5,6.01708333 8.93375,7.58333333 7,7.58333333 Z M7,6.41666667 C8.28916667,6.41666667 9.33333333,5.3725 9.33333333,4.08333333 C9.33333333,2.79416667 8.28916667,1.75 7,1.75 C5.71083333,1.75 4.66666667,2.79416667 4.66666667,4.08333333 C4.66666667,5.3725 5.71083333,6.41666667 7,6.41666667 Z" id="icon-user_\u5f62\u72b6" fill="#000000" fill-rule="nonzero" opacity="0.65" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/userCount.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-userCount",use:"icon-userCount-usage",viewBox:"0 0 32 32",content:'<symbol viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-userCount">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>\u7528\u6237\u6570</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-userCount_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-userCount_\u9996\u9875-\u7ba1\u7406\u5458" transform="translate(-702.000000, -270.000000)">\r\n <g id="icon-userCount_Content" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-userCount_\u5e94\u7528\u60c5\u51b5" transform="translate(40.000000, 129.000000)">\r\n <g transform="translate(0.000000, 35.000000)" id="icon-userCount_\u9879\u76ee\u6570\u5907\u4efd-3">\r\n <g transform="translate(552.000000, 0.000000)">\r\n <g id="icon-userCount_\u7528\u6237\u6570" transform="translate(110.000000, 46.000000)">\r\n <g>\r\n <rect id="icon-userCount_\u77e9\u5f62" fill-opacity="0.01" fill="#FFFFFF" x="0" y="0" width="32" height="32" />\r\n <path d="M30.9244444,27.3066667 C29.5288889,25.3866667 22.4177778,26.1866667 21.3333333,24 C19.1822222,19.6622222 20.0622222,20.4444444 21.4577778,19.3955556 C22.8533333,18.3466667 22.7111111,15.7333333 23.52,14.7911111 C24.3288889,13.8488889 24.7111111,11.0844445 24.4088889,10.0533333 C24,8.68444447 23.3777777,9.43111113 23.28,8.39111113 C23.0755556,6.16 23.6355556,4.32888891 22.3911111,3.24444444 C21.1466667,2.15999997 19.6533333,0 17.1822222,0 C16.1337732,0.0259760473 15.1115255,0.332957329 14.2222222,0.888888875 C8.88888887,0.32 8.88888887,6.16 8.72,8.39111113 C8.62222222,9.43111113 8,8.68444447 7.59111112,10.0533333 C7.28888891,11.0844445 7.66222225,13.8311111 8.48,14.7911111 C9.29777775,15.7511111 9.22666666,18.3911111 10.5422222,19.3955556 C11.8577778,20.4 12.8177778,19.6622222 10.6666667,24 C9.58222222,26.1866667 2.47111109,25.3866667 1.07555556,27.3066667 C0,28.7644444 0,32 0,32 L32,32 C32,32 32,28.7644444 30.9244444,27.3066667 Z" id="icon-userCount_\u7528\u6237" fill="#2296F3" fill-rule="nonzero" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/view.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-view",use:"icon-view-usage",viewBox:"0 0 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" id="icon-view">\r\n <defs>\r\n <style type="text/css"></style>\r\n </defs>\r\n <path class="icon-svg" d="M987.52 367.36c-108.16-146.56-266.88-239.36-444.16-239.36-177.28 0-335.36 92.8-444.16 239.36-48 64.64-48 160.64 0 225.28C208 739.2 366.72 832 543.36 832c177.28 0 335.36-92.8 444.16-239.36C1035.52 528 1035.52 432 987.52 367.36zM544 704C420.48 704 320 603.52 320 480S420.48 256 544 256C667.52 256 768 356.48 768 480S667.52 704 544 704zM544 320C455.68 320 384 391.68 384 480S455.68 640 544 640C632.32 640 704 568.32 704 480S632.32 320 544 320z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/wizardTrain.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-wizardTrain",use:"icon-wizardTrain-usage",viewBox:"0 0 70 67",content:'<symbol viewBox="0 0 70 67" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-wizardTrain">\r\n <title>\u7f16\u7ec4 7</title>\r\n <g id="icon-wizardTrain_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-wizardTrain_\u7f16\u7ec4-7">\r\n <rect id="icon-wizardTrain_\u77e9\u5f62\u5907\u4efd" fill="#EDB577" x="0" y="0" width="70" height="67" rx="4" />\r\n <g id="icon-wizardTrain_\u5411\u5bfc,\u6307\u5bfc,\u65b9\u5411,\u9762\u5305\u5c51_jurassic" transform="translate(24.000000, 23.000000)" fill-rule="nonzero">\r\n <rect id="icon-wizardTrain_\u77e9\u5f62" fill="#000000" opacity="0" x="8" y="18" width="16" height="16" />\r\n <path d="M24.809375,7.975 L23.03125,5.84375 L21.49375,4 L13.484375,4 L13.484375,0.934375 C13.484375,0.41875 13.0375,0 12.484375,0 C11.93125,0 11.484375,0.41875 11.484375,0.934375 L11.484375,4 L0.5,4 L0.5,16 L11.48125,16 L11.48125,27.065625 C11.48125,27.58125 11.928125,28 12.48125,28 C13.034375,28 13.48125,27.58125 13.48125,27.065625 L13.48125,16 L21.490625,16 L22.6125,14.65625 L24.809375,12.025 L26.5,10 L24.809375,7.975 Z" id="icon-wizardTrain_\u8def\u5f84" fill="#FFFFFF" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/xiangmu.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-xiangmu",use:"icon-xiangmu-usage",viewBox:"0 0 54 52",content:'<symbol viewBox="0 0 54 52" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-xiangmu">\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-xiangmu_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-xiangmu_\u9996\u9875\u5907\u4efd" transform="translate(-609.000000, -181.000000)">\r\n <g transform="translate(609.000000, 181.000000)">\r\n <g id="icon-xiangmu_\u7f16\u7ec4-5\u5907\u4efd" fill="#DA615D">\r\n <rect id="icon-xiangmu_\u77e9\u5f62\u5907\u4efd" x="0" y="0" width="54" height="52" rx="4" />\r\n </g>\r\n <g id="icon-xiangmu_\u9879\u76ee\u5907\u4efd" transform="translate(14.000000, 13.000000)" fill-rule="nonzero">\r\n <rect id="icon-xiangmu_\u77e9\u5f62" fill="#000000" opacity="0" x="0" y="0" width="26" height="26" />\r\n <path d="M21.7285714,3.9 C21.5428571,3.71428571 21.3571429,3.34285715 20.9857143,3.15714285 C20.8,2.97142856 20.6142857,2.6 20.4285714,2.41428571 C20.2428571,2.04285715 19.8714286,1.85714285 19.5,1.85714285 L7.24285715,1.85714285 C6.87142859,1.85714285 6.5,1.85714285 6.31428571,2.04285715 C6.12857141,2.22857144 5.94285715,2.22857144 5.75714285,2.41428571 L5.2,2.97142856 L4.27142856,3.9 C4.08571427,4.27142856 3.71428571,4.64285715 3.52857144,5.01428571 L22.6571429,5.01428571 C22.2857143,4.64285715 22.1,4.27142856 21.7285714,3.9 L21.7285714,3.9 Z M21.9142857,16.3428571 L4.08571429,16.3428571 C3.34285715,16.3428571 2.78571429,16.5285714 2.41428571,16.9 C2.04285715,17.4571429 1.85714285,17.8285714 1.85714285,18.3857143 L1.85714285,21.9142857 C1.85714285,22.6571429 2.04285715,23.2142857 2.6,23.5857143 C2.97142856,23.9571429 3.52857144,24.1428571 4.08571429,24.1428571 L21.7285714,24.1428571 C22.4714286,24.1428571 23.0285714,23.9571429 23.4,23.5857143 C23.7714286,23.2142857 23.9571429,22.6571429 23.9571429,22.1 L23.9571429,18.3857143 C23.9571429,17.8285714 23.7714286,17.2714286 23.4,16.9 C23.2142857,16.5285714 22.6571429,16.3428571 21.9142857,16.3428571 Z M14.8571429,20.8 C14.6714286,20.9857143 14.6714286,20.9857143 14.4857143,20.9857143 L11.7,20.9857143 C11.5142857,20.9857143 11.3285714,20.9857143 11.1428571,20.8 C11.1428571,20.6142857 10.9571429,20.4285714 10.9571429,20.2428571 C10.9571429,20.0571429 10.9571429,19.8714286 11.1428571,19.8714286 C11.3285714,19.6857143 11.3285714,19.6857143 11.7,19.6857143 L14.3,19.6857143 C14.4857143,19.6857143 14.6714286,19.6857143 14.6714286,19.8714286 C14.8571429,20.0571429 14.8571429,20.0571429 14.8571429,20.2428571 C15.0428571,20.4285714 14.8571429,20.6142857 14.8571429,20.8 Z M23.5857143,7.61428571 C23.2142857,7.24285715 22.6571429,7.05714285 21.9142857,7.05714285 L4.08571429,7.05714285 C3.34285715,7.05714285 2.78571429,7.24285715 2.41428571,7.61428571 C2.04285715,7.98571427 1.85714285,8.35714285 1.85714285,8.91428571 L1.85714285,12.6285714 C1.85714285,13.1857143 2.04285715,13.7428571 2.41428571,14.1142857 C2.78571427,14.4857143 3.34285715,14.6714286 4.08571429,14.6714286 L21.9142857,14.6714286 C22.6571429,14.6714286 23.2142857,14.4857143 23.5857143,14.1142857 C23.9571429,13.7428571 24.1428571,13.1857143 24.1428571,12.6285714 L24.1428571,8.91428571 C24.1428571,8.35714285 23.9571429,7.98571427 23.5857143,7.61428571 Z M14.3,11.5142857 L11.7,11.5142857 C11.5142857,11.5142857 11.3285714,11.5142857 11.3285714,11.3285714 C11.1428571,11.1428571 11.1428571,11.1428571 10.9571429,10.7714286 C10.9571429,10.5857143 10.9571429,10.4 11.1428571,10.4 C11.3285714,10.2142857 11.3285714,10.2142857 11.7,10.2142857 L14.3,10.2142857 C14.4857143,10.2142857 14.6714286,10.2142857 14.6714286,10.4 C14.8571429,10.4 15.0428571,10.5857143 15.0428571,10.7714286 C14.8571429,11.3285714 14.6714286,11.5142857 14.3,11.5142857 L14.3,11.5142857 Z" id="icon-xiangmu_\u5f62\u72b6" fill="#FFFFFF" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/xmgl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-xmgl",use:"icon-xmgl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-xmgl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u9879\u76ee\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-xmgl_\u7528\u6237\u4e2d\u5fc3" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-xmgl_\u7528\u6237\u4e2d\u5fc3-\u9879\u76ee\u5217\u8868" transform="translate(-16.000000, -226.000000)" fill="#147BD1">\r\n <g id="icon-xmgl_left" transform="translate(0.000000, 60.000000)">\r\n <g id="icon-xmgl_icon/\u9879\u76ee\u7ba1\u7406">\r\n <g transform="translate(16.000000, 166.000000)">\r\n <g id="icon-xmgl_\u5f62\u72b6">\r\n <path fill="#595959" d="M4.6665,3.55271368e-15 C5.64840476,3.55271368e-15 6.45343878,0.758276644 6.52788214,1.72111003 L6.5335,1.867 L12.1335,1.867 C13.1154048,1.867 13.9204388,2.62436961 13.9948821,3.58711662 L14.0005,3.733 L14.0005,11.2 C14.0005,12.1819048 13.2422234,12.9869388 12.27939,13.0613821 L12.1335,13.067 L1.8665,13.067 C0.884595238,13.067 0.080468254,12.3087234 0.00611127308,11.34589 L0.0005,11.2 L0.0005,1.867 C0.0005,0.885095238 0.757869615,0.0800612245 1.72061662,0.00561785984 L1.8665,3.55271368e-15 L4.6665,3.55271368e-15 Z M12.1335,2.8 L0.9335,2.8 L0.9335,11.2 C0.9335,11.6791429 1.29391837,12.0737857 1.75774453,12.1277187 L1.8665,12.134 L12.1335,12.134 C12.6126429,12.134 13.0064235,11.7735816 13.0602332,11.3089548 L13.0665,11.2 L13.0665,3.733 C13.0665,3.25478571 12.7069439,2.86020918 12.2424402,2.80628098 L12.1335,2.8 Z M6.0376,4.1999 C6.1546,4.1999 6.2656,4.2489 6.3436,4.3339 C6.4436,4.4459 6.7616,4.7339 7.0156,4.7339 C7.2706,4.7339 7.5846,4.4509 7.6856,4.3419 C7.78393333,4.2369 7.92879444,4.19231667 8.06636389,4.21914537 L8.1566,4.2479 L8.9816,4.7349 C9.10931429,4.83432857 9.16649796,4.99620612 9.13488863,5.15063178 L9.08247464,5.31099621 C9.06176327,5.3783898 9.0376,5.47675714 9.0376,5.5699 C9.0376,6.02866923 9.36138698,6.40734379 9.78008157,6.4628868 L9.8866,6.4699 L9.9146,6.4699 C10.0320286,6.46732857 10.1310898,6.55953265 10.1790373,6.7106172 L10.1986,6.7909 C10.2016,6.8069 10.2666,7.1789 10.2666,7.4699 C10.2666,7.7609 10.2016,8.1319 10.1976,8.1489 C10.1676,8.31861429 10.0810286,8.43616531 9.97063207,8.46439854 L9.9136,8.4709 L9.8856,8.4709 C9.4176,8.4709 9.0366,8.8739 9.0366,9.3709 C9.0366,9.44075714 9.05019184,9.51355306 9.06572536,9.57401662 L9.1106,9.7139 C9.17145714,9.8639 9.14121224,10.0322673 9.0381277,10.1509904 L8.9806,10.2059 L8.1416,10.6979 L8.1316,10.7019 C7.9706,10.7689 7.7846,10.7259 7.6686,10.5949 C7.5676,10.4779 7.2446,10.1709 6.9826,10.1709 C6.7196,10.1709 6.3936,10.4789 6.2986,10.5869 C6.2206,10.6739 6.1096,10.7229 5.9926,10.7229 C5.9566,10.7235667 5.9206,10.7184556 5.88578519,10.7084556 L5.8266,10.6859 L5.0246,10.2109 C4.89174286,10.1063286 4.83382449,9.94371633 4.86469913,9.78918571 L4.93247464,9.57301662 C4.94800816,9.51255306 4.9616,9.43975714 4.9616,9.3699 C4.9616,8.91113077 4.63696095,8.53245621 4.2189218,8.4769132 L4.1126,8.4699 L4.0796,8.4699 C3.96474286,8.4699 3.86825306,8.37659388 3.82098776,8.22713615 L3.8016,8.1479 C3.7986,8.1319 3.7336,7.7619 3.7336,7.4699 C3.7336,7.1779 3.7986,6.8069 3.8016,6.7909 C3.8316,6.62118571 3.91743673,6.50436939 4.02762332,6.47634606 L4.0846,6.4699 L4.1136,6.4699 C4.5816,6.4699 4.9626,6.0669 4.9626,5.5699 C4.9626,5.4069 4.8886,5.2289 4.8886,5.2269 C4.82688571,5.0769 4.85774286,4.90706327 4.96164956,4.78855015 L5.0276,4.7279 L5.8736,4.2369 C5.9316,4.2109 5.9846,4.1999 6.0376,4.1999 Z M6.2416,5.1439 L6.2176,5.1369 L6.2176,5.1369 L5.5746,5.5119 L5.60304444,5.59256667 C5.62793333,5.67145556 5.6586,5.7939 5.6586,5.9199 C5.6586,6.4899 5.2366,6.9559 4.7086,6.9849 L4.6867691,7.13475131 C4.67398776,7.23332857 4.6606,7.3619 4.6606,7.4699 C4.6646,7.6309 4.6816,7.7929 4.7096,7.9519 C5.2376,7.9809 5.6586,8.4479 5.6586,9.0159 C5.6566,9.1099 5.64304444,9.20256667 5.61852593,9.29271481 L5.5736,9.4259 L6.1816,9.7869 C6.1896,9.7859 6.1966,9.7849 6.2026,9.7819 L6.2741,9.706775 C6.3146,9.6669 6.3701,9.6159 6.4356,9.5649 C6.6306,9.4129 6.8146,9.3359 6.9856,9.3359 C7.1586,9.3359 7.3446,9.4139 7.5406,9.5699 C7.6246,9.6359 7.7036,9.7089 7.7746,9.7899 L7.7816,9.794025 L7.7956,9.7949 L8.4256,9.4259 L8.39715556,9.34541852 C8.37226667,9.26623333 8.3416,9.1429 8.3416,9.0169 C8.3416,8.4479 8.7636,7.9809 9.2906,7.9529 L9.31324431,7.80320612 C9.32621224,7.70483878 9.3396,7.57675714 9.3396,7.4699 C9.3396,7.2809 9.2986,7.0309 9.2906,6.9859 C8.7626,6.9559 8.3416,6.4899 8.3416,5.9209 C8.3416,5.8264 8.35885,5.7334 8.377975,5.6594 L8.4256,5.5119 L7.8056,5.1449 C7.7956,5.1449 7.7876,5.1479 7.7806,5.1519 L7.732264,5.20038 C7.69168,5.23998 7.6282,5.2983 7.5496,5.3559 C7.3586,5.4989 7.1786,5.5719 7.0136,5.5719 C6.8456,5.5719 6.6646,5.4979 6.4726,5.3529 C6.3416,5.2539 6.2526,5.1549 6.2416,5.1439 Z M7.0007,6.5276 C7.47334286,6.5276 7.8632102,6.88974286 7.91569489,7.357018 L7.92170181,7.4666 C7.92170181,7.9866 7.5087,8.4056 6.9997,8.4056 C6.4907,8.4056 6.0777,7.9856 6.0777,7.4666 C6.0777,6.9476 6.4917,6.5276 7.0007,6.5276 Z M4.6665,0.933 L1.8665,0.933 C1.38828571,0.933 0.993709184,1.29341837 0.939780977,1.75804519 L0.9335,1.867 L5.6005,1.867 C5.6005,1.38785714 5.24008163,0.993214286 4.77545481,0.939281341 L4.6665,0.933 Z" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/zoom_revert.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-zoom_revert",use:"icon-zoom_revert-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-zoom_revert">\r\n <path d="M96 64a32 32 0 0 0-32 32v819.264a32 32 0 0 0 32 32h819.264a32 32 0 0 0 32-32V96a32 32 0 0 0-32-32H96z m0-64h819.264a96 96 0 0 1 96 96v819.264a96 96 0 0 1-96 96H96a96 96 0 0 1-96-96V96A96 96 0 0 1 96 0z m220.16 256h42.688v505.6h-54.72V326.912C274.048 359.424 236.736 382.08 192 396.16v-58.048c21.376-6.4 44.032-16.32 66.752-30.464 22.656-15.616 41.344-32.64 57.408-51.712zM510.72 433.024c10.688 0 20.736 4.288 28.736 12.8a42.432 42.432 0 0 1 12.032 30.4 44.16 44.16 0 0 1-12.032 31.168 40.832 40.832 0 0 1-28.736 12.032 37.568 37.568 0 0 1-28.672-12.032 44.16 44.16 0 0 1-12.032-31.168c0-12.032 4.032-21.952 12.032-30.464a35.84 35.84 0 0 1 28.672-12.736z m0 236.096c10.688 0 20.736 4.224 28.736 12.736a42.432 42.432 0 0 1 12.032 30.464 44.16 44.16 0 0 1-12.032 31.168 40.832 40.832 0 0 1-28.736 12.032 37.568 37.568 0 0 1-28.672-12.032 44.16 44.16 0 0 1-12.032-31.168c0-12.032 4.032-21.952 12.032-30.464a35.84 35.84 0 0 1 28.672-12.8zM705.472 256h42.752v505.6h-54.784V326.912c-30.016 32.576-67.392 55.232-112.128 69.376v-58.048c21.376-6.4 44.096-16.32 66.752-30.464 22.72-15.616 41.408-32.64 57.408-51.712z" />\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/zujian.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-zujian",use:"icon-zujian-usage",viewBox:"0 0 54 52",content:'<symbol viewBox="0 0 54 52" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-zujian">\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n <desc>Created with Sketch.</desc>\r\n <g id="icon-zujian_\u9996\u9875" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-zujian_\u9996\u9875\u5907\u4efd" transform="translate(-359.000000, -181.000000)">\r\n <g id="icon-zujian_\u7f16\u7ec4-21\u5907\u4efd" transform="translate(359.000000, 181.000000)">\r\n <g id="icon-zujian_\u7f16\u7ec4-5\u5907\u4efd" fill="#57BCA1">\r\n <rect id="icon-zujian_\u77e9\u5f62\u5907\u4efd" x="0" y="0" width="54" height="52" rx="4" />\r\n </g>\r\n <g id="icon-zujian_\u7ec4\u4ef6\u5907\u4efd" transform="translate(12.000000, 11.000000)" fill-rule="nonzero">\r\n <rect id="icon-zujian_\u77e9\u5f62" fill="#000000" opacity="0" x="0" y="0" width="30" height="30" />\r\n <path d="M26.7919922,19.1455078 C26.6308594,19.1455078 26.4697266,19.1777344 26.3232422,19.2421875 L26.3173828,19.2451172 L26.3115234,19.2451172 L14.9472656,24.0878906 L3.58007813,19.2480469 L3.57421875,19.2480469 L3.56835938,19.2451172 C3.421875,19.1835938 3.26660156,19.1484375 3.09960938,19.1484375 C2.42285156,19.1484375 1.875,19.7138672 1.875,20.4111328 C1.875,20.9384766 2.18847656,21.3867188 2.63085938,21.5771484 L14.4638672,26.6191406 L14.4755859,26.6220703 C14.7744141,26.7509766 15.1142578,26.7509766 15.4130859,26.6220703 L15.4189453,26.6191406 C15.421875,26.6191406 15.421875,26.6162109 15.4248047,26.6162109 L27.2578125,21.5742188 C27.7001953,21.3837891 28.0136836,20.9355469 28.0136836,20.4082031 C28.0166016,19.7109375 27.46875,19.1455078 26.7919922,19.1455078 Z M26.7919922,13.6816406 C26.5605469,13.6757813 26.3232422,13.7753906 26.3232422,13.7753906 L14.9472656,18.6210938 L3.56835938,13.7753906 C3.56835938,13.7753906 3.26660156,13.6816406 3.09960938,13.6816406 C2.42285156,13.6816406 1.875,14.2441406 1.875,14.9414063 C1.875,15.4658203 2.18847656,15.9169922 2.63085938,16.1044922 L14.4638672,21.1435547 C14.4667969,21.1435547 14.4667969,21.1464844 14.4697266,21.1464844 L14.4726563,21.1494141 C14.6191406,21.2109375 14.7744141,21.2460938 14.9414063,21.2460938 C15.1083984,21.2460938 15.2666016,21.2109375 15.4101563,21.1494141 L15.4160156,21.1464844 C15.4189453,21.1464844 15.4189453,21.1464844 15.421875,21.1435547 L27.2548828,16.1044922 C27.6972656,15.9169922 28.0107422,15.4658203 28.0136836,14.9414063 C28.0166016,14.2441406 27.46875,13.6816406 26.7919922,13.6816406 L26.7919922,13.6816406 Z M2.63085938,10.640625 L14.4638672,15.6826172 C14.4667969,15.6826172 14.4667969,15.6826172 14.4697266,15.6855469 L14.4726563,15.6884766 C14.6191406,15.75 14.7744141,15.7822266 14.9414063,15.7822266 C15.1025391,15.7822266 15.2607422,15.75 15.4101563,15.6884766 L15.4160156,15.6855469 L15.421875,15.6826172 L27.2548828,10.6435547 C27.6972656,10.453125 28.0107422,10.0048828 28.0136719,9.48046875 C28.0136719,8.953125 27.7001953,8.50488281 27.2578125,8.31445313 L15.4248047,3.26953125 C15.421875,3.26953125 15.421875,3.26953125 15.4189453,3.26660156 L15.4130859,3.26367188 C15.1142578,3.13476563 14.7744141,3.13476563 14.4755859,3.26367188 L14.4726562,3.26660156 L2.63085938,8.31152344 C2.18847656,8.49902344 1.875,8.95019531 1.875,9.47753906 C1.875,10.0019531 2.18847656,10.4501953 2.63085938,10.640625 Z" id="icon-zujian_\u5f62\u72b6" fill="#FFFFFF" />\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/iconsvg/zygl.svg":function(e,t,a){"use strict";a.r(t);var n=a("./node_modules/svg-baker-runtime/browser-symbol.js"),o=a.n(n),s=a("./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js"),r=a.n(s),i=new o.a({id:"icon-zygl",use:"icon-zygl-usage",viewBox:"0 0 14 14",content:'<symbol viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-zygl">\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n <title>icon/\u8d44\u6e90\u7ba1\u7406</title>\r\n <desc>Created with Sketch.</desc>\r\n <defs>\r\n <polygon id="icon-zygl_path-1" points="0 0.0004 12.308 0.0004 12.308 12.3629 0 12.3629" />\r\n </defs>\r\n <g id="icon-zygl_\u6d59\u6c5f\u5e73\u53f0\u9875\u9762\u65b0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="icon-zygl_icon/\u8d44\u6e90\u7ba1\u7406">\r\n <g id="icon-zygl_icon/\u6570\u636e\u5f00\u53d1-" fill="#FFFFFF" fill-opacity="0.01">\r\n <rect id="icon-zygl_\u77e9\u5f62" x="0" y="0" width="14" height="14" />\r\n </g>\r\n <g id="icon-zygl_\u7f16\u7ec4" transform="translate(1.000000, 1.000000)">\r\n <mask id="icon-zygl_mask-2" fill="white">\r\n <use xlink:href="#icon-zygl_path-1" />\r\n </mask>\r\n <g id="icon-zygl_Clip-2"></g>\r\n <path d="M2.0604,0.9724 C1.4794,0.9724 0.9684,1.4824 0.9684,2.0634 L0.9684,3.6394 C0.9684,4.2214 1.4794,4.7304 2.0604,4.7304 L4.7274,4.7304 L4.7274,2.0634 C4.7274,1.4824 4.2164,0.9724 3.6364,0.9724 L2.0604,0.9724 Z M2.0604,5.7004 C0.9054,5.7004 -0.0006,4.7954 -0.0006,3.6394 L-0.0006,2.0634 C-0.0006,0.9084 0.9054,0.0024 2.0604,0.0024 L3.6364,0.0024 C4.7914,0.0024 5.6974,0.9084 5.6974,2.0634 L5.6974,5.7004 L2.0604,5.7004 Z M10.2484,4.7274 C10.8284,4.7274 11.3384,4.2184 11.3384,3.6374 L11.3384,2.0604 C11.3384,1.4794 10.8284,0.9704 10.2484,0.9704 L8.6714,0.9704 C8.0904,0.9704 7.5804,1.4794 7.5804,2.0604 L7.5804,4.7274 L10.2484,4.7274 Z M6.6104,5.6984 L6.6104,2.0604 C6.6104,0.9054 7.5154,0.0004 8.6714,0.0004 L10.2484,0.0004 C11.4034,0.0004 12.3084,0.9054 12.3084,2.0604 L12.3084,3.6374 C12.3084,4.7924 11.4034,5.6984 10.2484,5.6984 L6.6104,5.6984 Z M2.0604,7.6314 C1.4794,7.6314 0.9684,8.1404 0.9684,8.7224 L0.9684,10.2984 C0.9684,10.8794 1.4794,11.3894 2.0604,11.3894 L3.6364,11.3894 C4.2164,11.3894 4.7274,10.8794 4.7274,10.2984 L4.7274,7.6314 L2.0604,7.6314 Z M2.0604,12.3594 C0.9054,12.3594 -0.0006,11.4534 -0.0006,10.2984 L-0.0006,8.7224 C-0.0006,7.5664 0.9054,6.6614 2.0604,6.6614 L5.6974,6.6614 L5.6974,10.2984 C5.6974,11.4534 4.7914,12.3594 3.6364,12.3594 L2.0604,12.3594 Z M7.5794,10.3014 C7.5794,10.8834 8.0884,11.3924 8.6694,11.3924 L10.2464,11.3924 C10.8274,11.3924 11.3374,10.8834 11.3374,10.3014 L11.3374,8.7254 C11.3374,8.1444 10.8274,7.6344 10.2464,7.6344 L7.5794,7.6344 L7.5794,10.3014 Z M8.6694,12.3634 C7.5134,12.3634 6.6094,11.4574 6.6094,10.3014 L6.6094,6.6644 L10.2464,6.6644 C11.4024,6.6644 12.3074,7.5694 12.3074,8.7254 L12.3074,10.3014 C12.3074,11.4574 11.4024,12.3634 10.2464,12.3634 L8.6694,12.3634 Z" id="icon-zygl_Fill-1" fill="#DCDCDC" mask="url(#icon-zygl_mask-2)" />\r\n </g>\r\n </g>\r\n </g>\r\n</symbol>'});r.a.add(i);t.default=i},"./src/styles/images sync recursive ^\\.\\/.*$":function(e,t,a){var n={"./Icon01@2x.png":"./src/styles/images/Icon01@2x.png","./Icon02@2x.png":"./src/styles/images/Icon02@2x.png","./Icon03@2x.png":"./src/styles/images/Icon03@2x.png","./Icon04@2x.png":"./src/styles/images/Icon04@2x.png","./Img4G@2x.jpg":"./src/styles/images/Img4G@2x.jpg","./ImgSafe@2x.jpg":"./src/styles/images/ImgSafe@2x.jpg","./ImgiPhoneX@2x.jpg":"./src/styles/images/ImgiPhoneX@2x.jpg","./LOGO.svg":"./src/styles/images/LOGO.svg","./NoBusinessData.png":"./src/styles/images/NoBusinessData.png","./admin.svg":"./src/styles/images/admin.svg","./ai-mdp-logo.png":"./src/styles/images/ai-mdp-logo.png","./dashboard/IconAPIs.png":"./src/styles/images/dashboard/IconAPIs.png","./dashboard/IconAssist.png":"./src/styles/images/dashboard/IconAssist.png","./dashboard/IconAuto.png":"./src/styles/images/dashboard/IconAuto.png","./dashboard/IconCode.png":"./src/styles/images/dashboard/IconCode.png","./dashboard/IconDataManagement.png":"./src/styles/images/dashboard/IconDataManagement.png","./dashboard/IconDiskSpace.png":"./src/styles/images/dashboard/IconDiskSpace.png","./dashboard/IconFrame.png":"./src/styles/images/dashboard/IconFrame.png","./dashboard/IconHistogram.png":"./src/styles/images/dashboard/IconHistogram.png","./dashboard/IconManual.png":"./src/styles/images/dashboard/IconManual.png","./dashboard/IconModelUsed.png":"./src/styles/images/dashboard/IconModelUsed.png","./dashboard/IconOverview.png":"./src/styles/images/dashboard/IconOverview.png","./dashboard/IconPreMs.png":"./src/styles/images/dashboard/IconPreMs.png","./dashboard/IconPreprocess.png":"./src/styles/images/dashboard/IconPreprocess.png","./dashboard/IconSources.png":"./src/styles/images/dashboard/IconSources.png","./dashboard/IconTick.png":"./src/styles/images/dashboard/IconTick.png","./dashboard/IconVisual.png":"./src/styles/images/dashboard/IconVisual.png","./icon/cpt-left.png":"./src/styles/images/icon/cpt-left.png","./icon/cpt-right.png":"./src/styles/images/icon/cpt-right.png","./icon/notice-im.svg":"./src/styles/images/icon/notice-im.svg","./icon/notice-msg.svg":"./src/styles/images/icon/notice-msg.svg","./icon/notice-todo.svg":"./src/styles/images/icon/notice-todo.svg","./introduce/banner.png":"./src/styles/images/introduce/banner.png","./introduce/development.jpg":"./src/styles/images/introduce/development.jpg","./introduce/yili-development.jpeg":"./src/styles/images/introduce/yili-development.jpeg","./login/BG@2x.png":"./src/styles/images/login/BG@2x.png","./modelConfig/CODE-1.png":"./src/styles/images/modelConfig/CODE-1.png","./modelConfig/CODE-2.png":"./src/styles/images/modelConfig/CODE-2.png","./modelConfig/CODE-3.png":"./src/styles/images/modelConfig/CODE-3.png","./modelConfig/DROP.png":"./src/styles/images/modelConfig/DROP.png","./modelConfig/FLYC.png":"./src/styles/images/modelConfig/FLYC.png","./modelConfig/GLGZ.png":"./src/styles/images/modelConfig/GLGZ.png","./modelConfig/JLFX.png":"./src/styles/images/modelConfig/JLFX.png","./modelConfig/QSYC.png":"./src/styles/images/modelConfig/QSYC.png","./modelConfig/SJXL.png":"./src/styles/images/modelConfig/SJXL.png","./modelConfig/TXFL.png":"./src/styles/images/modelConfig/TXFL.png","./modelConfig/XTGL.png":"./src/styles/images/modelConfig/XTGL.png","./modelConfig/deeplearing.png":"./src/styles/images/modelConfig/deeplearing.png","./model_base/dataType1.svg":"./src/styles/images/model_base/dataType1.svg","./model_base/dataType2.svg":"./src/styles/images/model_base/dataType2.svg","./model_base/dataType3.svg":"./src/styles/images/model_base/dataType3.svg","./model_base/dataType4.svg":"./src/styles/images/model_base/dataType4.svg","./model_base/dataType5.svg":"./src/styles/images/model_base/dataType5.svg","./model_base/dataType9.svg":"./src/styles/images/model_base/dataType9.svg","./model_manage/Assist.png":"./src/styles/images/model_manage/Assist.png","./model_manage/Auto.png":"./src/styles/images/model_manage/Auto.png","./model_manage/Code.png":"./src/styles/images/model_manage/Code.png","./model_manage/IconDeepLeaning.png":"./src/styles/images/model_manage/IconDeepLeaning.png","./model_manage/IconDrag.png":"./src/styles/images/model_manage/IconDrag.png","./model_manage/IconWizard.png":"./src/styles/images/model_manage/IconWizard.png","./model_manage/LogoPython.png":"./src/styles/images/model_manage/LogoPython.png","./model_manage/LogoR.png":"./src/styles/images/model_manage/LogoR.png","./model_manage/LogoScala.png":"./src/styles/images/model_manage/LogoScala.png","./model_manage/model-card-bg.png":"./src/styles/images/model_manage/model-card-bg.png","./modellearn/addCard.svg":"./src/styles/images/modellearn/addCard.svg","./modellearn/bannerBg.png":"./src/styles/images/modellearn/bannerBg.png","./modellearn/bannerBg2.png":"./src/styles/images/modellearn/bannerBg2.png","./modellearn/ecType-add-0.svg":"./src/styles/images/modellearn/ecType-add-0.svg","./modellearn/ecType-add-1.svg":"./src/styles/images/modellearn/ecType-add-1.svg","./modellearn/introIcon/1.svg":"./src/styles/images/modellearn/introIcon/1.svg","./modellearn/introIcon/10.svg":"./src/styles/images/modellearn/introIcon/10.svg","./modellearn/introIcon/2.svg":"./src/styles/images/modellearn/introIcon/2.svg","./modellearn/introIcon/3.svg":"./src/styles/images/modellearn/introIcon/3.svg","./modellearn/introIcon/4.svg":"./src/styles/images/modellearn/introIcon/4.svg","./modellearn/introIcon/5.svg":"./src/styles/images/modellearn/introIcon/5.svg","./modellearn/introIcon/6.svg":"./src/styles/images/modellearn/introIcon/6.svg","./modellearn/introIcon/7.svg":"./src/styles/images/modellearn/introIcon/7.svg","./modellearn/introIcon/8.svg":"./src/styles/images/modellearn/introIcon/8.svg","./modellearn/introIcon/9.svg":"./src/styles/images/modellearn/introIcon/9.svg","./nopic.png":"./src/styles/images/nopic.png","./prd_intro_bg.jpg":"./src/styles/images/prd_intro_bg.jpg","./projectUser.svg":"./src/styles/images/projectUser.svg","./register/index2.png":"./src/styles/images/register/index2.png","./register/indexbg.png":"./src/styles/images/register/indexbg.png","./sysManager/1-jrxm.jpg":"./src/styles/images/sysManager/1-jrxm.jpg","./sysManager/2-yygl.jpg":"./src/styles/images/sysManager/2-yygl.jpg","./sysManager/3-sjzb.jpg":"./src/styles/images/sysManager/3-sjzb.jpg","./sysManager/4-mxkf.jpg":"./src/styles/images/sysManager/4-mxkf.jpg","./sysManager/5-fwbs.jpg":"./src/styles/images/sysManager/5-fwbs.jpg","./sysManager/6-qygn.jpg":"./src/styles/images/sysManager/6-qygn.jpg","./sysManager/cjyy.png":"./src/styles/images/sysManager/cjyy.png","./sysManager/fwbs.png":"./src/styles/images/sysManager/fwbs.png","./sysManager/jrxm.png":"./src/styles/images/sysManager/jrxm.png","./sysManager/mxkf.png":"./src/styles/images/sysManager/mxkf.png","./sysManager/power.png":"./src/styles/images/sysManager/power.png","./sysManager/powerHover.png":"./src/styles/images/sysManager/powerHover.png","./sysManager/role.png":"./src/styles/images/sysManager/role.png","./sysManager/roleHover.png":"./src/styles/images/sysManager/roleHover.png","./sysManager/sjzb.png":"./src/styles/images/sysManager/sjzb.png","./sysManager/user.png":"./src/styles/images/sysManager/user.png","./sysManager/userHover.png":"./src/styles/images/sysManager/userHover.png","./sysManager/zuhu.png":"./src/styles/images/sysManager/zuhu.png","./sysManager/zuhuHover.png":"./src/styles/images/sysManager/zuhuHover.png","./tenant.svg":"./src/styles/images/tenant.svg","./user.png":"./src/styles/images/user.png"};function o(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="./src/styles/images sync recursive ^\\.\\/.*$"},"./src/styles/images/Icon01@2x.png":function(e,t,a){e.exports=a.p+"assets/images/Icon01@2x.4830ae1.png"},"./src/styles/images/Icon02@2x.png":function(e,t,a){e.exports=a.p+"assets/images/Icon02@2x.5d09f88.png"},"./src/styles/images/Icon03@2x.png":function(e,t,a){e.exports=a.p+"assets/images/Icon03@2x.3e1d71f.png"},"./src/styles/images/Icon04@2x.png":function(e,t,a){e.exports=a.p+"assets/images/Icon04@2x.40d4fc5.png"},"./src/styles/images/Img4G@2x.jpg":function(e,t,a){e.exports=a.p+"assets/images/Img4G@2x.fb22ba5.jpg"},"./src/styles/images/ImgSafe@2x.jpg":function(e,t,a){e.exports=a.p+"assets/images/ImgSafe@2x.a3cf480.jpg"},"./src/styles/images/ImgiPhoneX@2x.jpg":function(e,t,a){e.exports=a.p+"assets/images/ImgiPhoneX@2x.0be6268.jpg"},"./src/styles/images/LOGO.svg":function(e,t,a){e.exports=a.p+"assets/images/LOGO.ef46d18.svg"},"./src/styles/images/NoBusinessData.png":function(e,t,a){e.exports=a.p+"assets/images/NoBusinessData.2180333.png"},"./src/styles/images/admin.svg":function(e,t,a){e.exports=a.p+"assets/images/admin.35ea25f.svg"},"./src/styles/images/ai-mdp-logo.png":function(e,t,a){e.exports=a.p+"assets/images/ai-mdp-logo.18ded91.png"},"./src/styles/images/dashboard/IconAPIs.png":function(e,t,a){e.exports=a.p+"assets/images/IconAPIs.9b1ea53.png"},"./src/styles/images/dashboard/IconAssist.png":function(e,t,a){e.exports=a.p+"assets/images/IconAssist.d910531.png"},"./src/styles/images/dashboard/IconAuto.png":function(e,t,a){e.exports=a.p+"assets/images/IconAuto.f03baf4.png"},"./src/styles/images/dashboard/IconCode.png":function(e,t,a){e.exports=a.p+"assets/images/IconCode.cd37541.png"},"./src/styles/images/dashboard/IconDataManagement.png":function(e,t,a){e.exports=a.p+"assets/images/IconDataManagement.8eada64.png"},"./src/styles/images/dashboard/IconDiskSpace.png":function(e,t,a){e.exports=a.p+"assets/images/IconDiskSpace.b3f31ae.png"},"./src/styles/images/dashboard/IconFrame.png":function(e,t,a){e.exports=a.p+"assets/images/IconFrame.795ac7f.png"},"./src/styles/images/dashboard/IconHistogram.png":function(e,t,a){e.exports=a.p+"assets/images/IconHistogram.a874fb4.png"},"./src/styles/images/dashboard/IconManual.png":function(e,t,a){e.exports=a.p+"assets/images/IconManual.38f76ed.png"},"./src/styles/images/dashboard/IconModelUsed.png":function(e,t,a){e.exports=a.p+"assets/images/IconModelUsed.2745e22.png"},"./src/styles/images/dashboard/IconOverview.png":function(e,t,a){e.exports=a.p+"assets/images/IconOverview.d8a9f82.png"},"./src/styles/images/dashboard/IconPreMs.png":function(e,t,a){e.exports=a.p+"assets/images/IconPreMs.fa99701.png"},"./src/styles/images/dashboard/IconPreprocess.png":function(e,t,a){e.exports=a.p+"assets/images/IconPreprocess.556cf4d.png"},"./src/styles/images/dashboard/IconSources.png":function(e,t,a){e.exports=a.p+"assets/images/IconSources.a754e54.png"},"./src/styles/images/dashboard/IconTick.png":function(e,t,a){e.exports=a.p+"assets/images/IconTick.7d60e03.png"},"./src/styles/images/dashboard/IconVisual.png":function(e,t,a){e.exports=a.p+"assets/images/IconVisual.55be378.png"},"./src/styles/images/icon/cpt-left.png":function(e,t,a){e.exports=a.p+"assets/images/cpt-left.52b5b19.png"},"./src/styles/images/icon/cpt-right.png":function(e,t,a){e.exports=a.p+"assets/images/cpt-right.18cfc42.png"},"./src/styles/images/icon/notice-im.svg":function(e,t,a){e.exports=a.p+"assets/images/notice-im.e793fb2.svg"},"./src/styles/images/icon/notice-msg.svg":function(e,t,a){e.exports=a.p+"assets/images/notice-msg.2dec628.svg"},"./src/styles/images/icon/notice-todo.svg":function(e,t,a){e.exports=a.p+"assets/images/notice-todo.7b34fca.svg"},"./src/styles/images/introduce/banner.png":function(e,t,a){e.exports=a.p+"assets/images/banner.7293e09.png"},"./src/styles/images/introduce/development.jpg":function(e,t,a){e.exports=a.p+"assets/images/development.15ab959.jpg"},"./src/styles/images/introduce/yili-development.jpeg":function(e,t,a){e.exports=a.p+"assets/images/yili-development.187a62e.jpeg"},"./src/styles/images/login/BG@2x.png":function(e,t,a){e.exports=a.p+"assets/images/BG@2x.a30a15e.png"},"./src/styles/images/modelConfig sync recursive ^\\.\\/.*\\.png$":function(e,t,a){var n={"./CODE-1.png":"./src/styles/images/modelConfig/CODE-1.png","./CODE-2.png":"./src/styles/images/modelConfig/CODE-2.png","./CODE-3.png":"./src/styles/images/modelConfig/CODE-3.png","./DROP.png":"./src/styles/images/modelConfig/DROP.png","./FLYC.png":"./src/styles/images/modelConfig/FLYC.png","./GLGZ.png":"./src/styles/images/modelConfig/GLGZ.png","./JLFX.png":"./src/styles/images/modelConfig/JLFX.png","./QSYC.png":"./src/styles/images/modelConfig/QSYC.png","./SJXL.png":"./src/styles/images/modelConfig/SJXL.png","./TXFL.png":"./src/styles/images/modelConfig/TXFL.png","./XTGL.png":"./src/styles/images/modelConfig/XTGL.png","./deeplearing.png":"./src/styles/images/modelConfig/deeplearing.png"};function o(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="./src/styles/images/modelConfig sync recursive ^\\.\\/.*\\.png$"},"./src/styles/images/modelConfig/CODE-1.png":function(e,t,a){e.exports=a.p+"assets/images/CODE-1.425b6b9.png"},"./src/styles/images/modelConfig/CODE-2.png":function(e,t,a){e.exports=a.p+"assets/images/CODE-2.fb910fe.png"},"./src/styles/images/modelConfig/CODE-3.png":function(e,t,a){e.exports=a.p+"assets/images/CODE-3.eb8bebc.png"},"./src/styles/images/modelConfig/DROP.png":function(e,t,a){e.exports=a.p+"assets/images/DROP.fc6ab15.png"},"./src/styles/images/modelConfig/FLYC.png":function(e,t,a){e.exports=a.p+"assets/images/FLYC.3cfc97a.png"},"./src/styles/images/modelConfig/GLGZ.png":function(e,t,a){e.exports=a.p+"assets/images/GLGZ.039d08c.png"},"./src/styles/images/modelConfig/JLFX.png":function(e,t,a){e.exports=a.p+"assets/images/JLFX.68d7a1b.png"},"./src/styles/images/modelConfig/QSYC.png":function(e,t,a){e.exports=a.p+"assets/images/QSYC.2f5f352.png"},"./src/styles/images/modelConfig/SJXL.png":function(e,t,a){e.exports=a.p+"assets/images/SJXL.2f5f352.png"},"./src/styles/images/modelConfig/TXFL.png":function(e,t,a){e.exports=a.p+"assets/images/TXFL.3cfc97a.png"},"./src/styles/images/modelConfig/XTGL.png":function(e,t,a){e.exports=a.p+"assets/images/XTGL.2f31f8e.png"},"./src/styles/images/modelConfig/deeplearing.png":function(e,t,a){e.exports=a.p+"assets/images/deeplearing.b4b5573.png"},"./src/styles/images/model_base/dataType1.svg":function(e,t,a){e.exports=a.p+"assets/images/dataType1.dbf0808.svg"},"./src/styles/images/model_base/dataType2.svg":function(e,t,a){e.exports=a.p+"assets/images/dataType2.6561849.svg"},"./src/styles/images/model_base/dataType3.svg":function(e,t,a){e.exports=a.p+"assets/images/dataType3.45051bd.svg"},"./src/styles/images/model_base/dataType4.svg":function(e,t,a){e.exports=a.p+"assets/images/dataType4.1a42b72.svg"},"./src/styles/images/model_base/dataType5.svg":function(e,t,a){e.exports=a.p+"assets/images/dataType5.56c2a93.svg"},"./src/styles/images/model_base/dataType9.svg":function(e,t,a){e.exports=a.p+"assets/images/dataType9.4a773eb.svg"},"./src/styles/images/model_manage/Assist.png":function(e,t,a){e.exports=a.p+"assets/images/Assist.b73317a.png"},"./src/styles/images/model_manage/Auto.png":function(e,t,a){e.exports=a.p+"assets/images/Auto.9978835.png"},"./src/styles/images/model_manage/Code.png":function(e,t,a){e.exports=a.p+"assets/images/Code.fd9a807.png"},"./src/styles/images/model_manage/IconDeepLeaning.png":function(e,t,a){e.exports=a.p+"assets/images/IconDeepLeaning.5f22b32.png"},"./src/styles/images/model_manage/IconDrag.png":function(e,t,a){e.exports=a.p+"assets/images/IconDrag.873ce65.png"},"./src/styles/images/model_manage/IconWizard.png":function(e,t,a){e.exports=a.p+"assets/images/IconWizard.14a3b60.png"},"./src/styles/images/model_manage/LogoPython.png":function(e,t,a){e.exports=a.p+"assets/images/LogoPython.db8b3a1.png"},"./src/styles/images/model_manage/LogoR.png":function(e,t,a){e.exports=a.p+"assets/images/LogoR.e442039.png"},"./src/styles/images/model_manage/LogoScala.png":function(e,t,a){e.exports=a.p+"assets/images/LogoScala.b69b4f4.png"},"./src/styles/images/model_manage/model-card-bg.png":function(e,t,a){e.exports=a.p+"assets/images/model-card-bg.84b09d2.png"},"./src/styles/images/modellearn/addCard.svg":function(e,t,a){e.exports=a.p+"assets/images/addCard.c8bfc09.svg"},"./src/styles/images/modellearn/bannerBg.png":function(e,t,a){e.exports=a.p+"assets/images/bannerBg.5b036c0.png"},"./src/styles/images/modellearn/bannerBg2.png":function(e,t,a){e.exports=a.p+"assets/images/bannerBg2.a5616d3.png"},"./src/styles/images/modellearn/ecType-add-0.svg":function(e,t,a){e.exports=a.p+"assets/images/ecType-add-0.774c64f.svg"},"./src/styles/images/modellearn/ecType-add-1.svg":function(e,t,a){e.exports=a.p+"assets/images/ecType-add-1.c2802ff.svg"},"./src/styles/images/modellearn/introIcon sync recursive ^\\.\\/.*\\.svg$":function(e,t,a){var n={"./1.svg":"./src/styles/images/modellearn/introIcon/1.svg","./10.svg":"./src/styles/images/modellearn/introIcon/10.svg","./2.svg":"./src/styles/images/modellearn/introIcon/2.svg","./3.svg":"./src/styles/images/modellearn/introIcon/3.svg","./4.svg":"./src/styles/images/modellearn/introIcon/4.svg","./5.svg":"./src/styles/images/modellearn/introIcon/5.svg","./6.svg":"./src/styles/images/modellearn/introIcon/6.svg","./7.svg":"./src/styles/images/modellearn/introIcon/7.svg","./8.svg":"./src/styles/images/modellearn/introIcon/8.svg","./9.svg":"./src/styles/images/modellearn/introIcon/9.svg"};function o(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="./src/styles/images/modellearn/introIcon sync recursive ^\\.\\/.*\\.svg$"},"./src/styles/images/modellearn/introIcon/1.svg":function(e,t,a){e.exports=a.p+"assets/images/1.f99a92d.svg"},"./src/styles/images/modellearn/introIcon/10.svg":function(e,t,a){e.exports=a.p+"assets/images/10.685915a.svg"},"./src/styles/images/modellearn/introIcon/2.svg":function(e,t,a){e.exports=a.p+"assets/images/2.0b7f796.svg"},"./src/styles/images/modellearn/introIcon/3.svg":function(e,t,a){e.exports=a.p+"assets/images/3.685915a.svg"},"./src/styles/images/modellearn/introIcon/4.svg":function(e,t,a){e.exports=a.p+"assets/images/4.89b6b3a.svg"},"./src/styles/images/modellearn/introIcon/5.svg":function(e,t,a){e.exports=a.p+"assets/images/5.1e52dd5.svg"},"./src/styles/images/modellearn/introIcon/6.svg":function(e,t,a){e.exports=a.p+"assets/images/6.748fc9f.svg"},"./src/styles/images/modellearn/introIcon/7.svg":function(e,t,a){e.exports=a.p+"assets/images/7.2ae3565.svg"},"./src/styles/images/modellearn/introIcon/8.svg":function(e,t,a){e.exports=a.p+"assets/images/8.f99a92d.svg"},"./src/styles/images/modellearn/introIcon/9.svg":function(e,t,a){e.exports=a.p+"assets/images/9.0b7f796.svg"},"./src/styles/images/nopic.png":function(e,t,a){e.exports=a.p+"assets/images/nopic.d115666.png"},"./src/styles/images/prd_intro_bg.jpg":function(e,t,a){e.exports=a.p+"assets/images/prd_intro_bg.0e7d0fd.jpg"},"./src/styles/images/projectUser.svg":function(e,t,a){e.exports=a.p+"assets/images/projectUser.47bf136.svg"},"./src/styles/images/register/index2.png":function(e,t,a){e.exports=a.p+"assets/images/index2.af9b2dd.png"},"./src/styles/images/register/indexbg.png":function(e,t,a){e.exports=a.p+"assets/images/indexbg.4fdd4ee.png"},"./src/styles/images/sysManager sync recursive ^\\.\\/.*\\.jpg$":function(e,t,a){var n={"./1-jrxm.jpg":"./src/styles/images/sysManager/1-jrxm.jpg","./2-yygl.jpg":"./src/styles/images/sysManager/2-yygl.jpg","./3-sjzb.jpg":"./src/styles/images/sysManager/3-sjzb.jpg","./4-mxkf.jpg":"./src/styles/images/sysManager/4-mxkf.jpg","./5-fwbs.jpg":"./src/styles/images/sysManager/5-fwbs.jpg","./6-qygn.jpg":"./src/styles/images/sysManager/6-qygn.jpg"};function o(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="./src/styles/images/sysManager sync recursive ^\\.\\/.*\\.jpg$"},"./src/styles/images/sysManager sync recursive ^\\.\\/.*\\.png$":function(e,t,a){var n={"./cjyy.png":"./src/styles/images/sysManager/cjyy.png","./fwbs.png":"./src/styles/images/sysManager/fwbs.png","./jrxm.png":"./src/styles/images/sysManager/jrxm.png","./mxkf.png":"./src/styles/images/sysManager/mxkf.png","./power.png":"./src/styles/images/sysManager/power.png","./powerHover.png":"./src/styles/images/sysManager/powerHover.png","./role.png":"./src/styles/images/sysManager/role.png","./roleHover.png":"./src/styles/images/sysManager/roleHover.png","./sjzb.png":"./src/styles/images/sysManager/sjzb.png","./user.png":"./src/styles/images/sysManager/user.png","./userHover.png":"./src/styles/images/sysManager/userHover.png","./zuhu.png":"./src/styles/images/sysManager/zuhu.png","./zuhuHover.png":"./src/styles/images/sysManager/zuhuHover.png"};function o(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="./src/styles/images/sysManager sync recursive ^\\.\\/.*\\.png$"},"./src/styles/images/sysManager/1-jrxm.jpg":function(e,t,a){e.exports=a.p+"assets/images/1-jrxm.b8e8397.jpg"},"./src/styles/images/sysManager/2-yygl.jpg":function(e,t,a){e.exports=a.p+"assets/images/2-yygl.a30e854.jpg"},"./src/styles/images/sysManager/3-sjzb.jpg":function(e,t,a){e.exports=a.p+"assets/images/3-sjzb.f37ef7f.jpg"},"./src/styles/images/sysManager/4-mxkf.jpg":function(e,t,a){e.exports=a.p+"assets/images/4-mxkf.e75415d.jpg"},"./src/styles/images/sysManager/5-fwbs.jpg":function(e,t,a){e.exports=a.p+"assets/images/5-fwbs.95465b5.jpg"},"./src/styles/images/sysManager/6-qygn.jpg":function(e,t,a){e.exports=a.p+"assets/images/6-qygn.ce97861.jpg"},"./src/styles/images/sysManager/cjyy.png":function(e,t,a){e.exports=a.p+"assets/images/cjyy.930b083.png"},"./src/styles/images/sysManager/fwbs.png":function(e,t,a){e.exports=a.p+"assets/images/fwbs.38c3388.png"},"./src/styles/images/sysManager/jrxm.png":function(e,t,a){e.exports=a.p+"assets/images/jrxm.0d4f870.png"},"./src/styles/images/sysManager/mxkf.png":function(e,t,a){e.exports=a.p+"assets/images/mxkf.16fa38b.png"},"./src/styles/images/sysManager/power.png":function(e,t,a){e.exports=a.p+"assets/images/power.4b8da95.png"},"./src/styles/images/sysManager/powerHover.png":function(e,t,a){e.exports=a.p+"assets/images/powerHover.5ac8fc5.png"},"./src/styles/images/sysManager/role.png":function(e,t,a){e.exports=a.p+"assets/images/role.4778502.png"},"./src/styles/images/sysManager/roleHover.png":function(e,t,a){e.exports=a.p+"assets/images/roleHover.fa94f2a.png"},"./src/styles/images/sysManager/sjzb.png":function(e,t,a){e.exports=a.p+"assets/images/sjzb.ff925f7.png"},"./src/styles/images/sysManager/user.png":function(e,t,a){e.exports=a.p+"assets/images/user.c428351.png"},"./src/styles/images/sysManager/userHover.png":function(e,t,a){e.exports=a.p+"assets/images/userHover.d52a671.png"},"./src/styles/images/sysManager/zuhu.png":function(e,t,a){e.exports=a.p+"assets/images/zuhu.31d30f8.png"},"./src/styles/images/sysManager/zuhuHover.png":function(e,t,a){e.exports=a.p+"assets/images/zuhuHover.47b4a3c.png"},"./src/styles/images/tenant.svg":function(e,t,a){e.exports=a.p+"assets/images/tenant.e203679.svg"},"./src/styles/images/user.png":function(e,t,a){e.exports=a.p+"assets/images/user.8e6af17.png"},"./src/styles/index.js":function(e,t,a){"use strict";t.__esModule=!0;var n=a("./src/styles/GlobalStyle.js");Object.defineProperty(t,"GlobalStyle",{enumerable:!0,get:function(){return s(n).default}});var o=a("./src/styles/theme/index.js");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"getTheme",{enumerable:!0,get:function(){return s(o).default}});t.loadSvgIcons=function(){var e,t=a("./src/styles/iconsvg sync recursive \\.svg$");(e=t).keys().map(e)}},"./src/styles/labelStudio/css/main.css":function(e,t,a){},"./src/styles/labelStudio/css/styled.css":function(e,t,a){},"./src/styles/media/prd_intro_bg.mp4":function(e,t,a){e.exports=a.p+"assets/media/prd_intro_bg.e7f6078.mp4"},"./src/styles/theme sync recursive ^\\.\\/.*$":function(e,t,a){var n={"./":"./src/styles/theme/index.js","./default":"./src/styles/theme/default.js","./default.js":"./src/styles/theme/default.js","./index":"./src/styles/theme/index.js","./index.js":"./src/styles/theme/index.js","./zyzx":"./src/styles/theme/zyzx.js","./zyzx.js":"./src/styles/theme/zyzx.js"};function o(e){var t=s(e);return a(t)}function s(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=s,e.exports=o,o.id="./src/styles/theme sync recursive ^\\.\\/.*$"},"./src/styles/theme/default.js":function(e,t,a){"use strict";t.__esModule=!0,t.default={color:{primary:"#395377",secondary:"#53C1DE",title:"rgba(0, 0, 0, 0.65)",comment:"#787d82",alert:"#FF4258",success:"mediumseagreen",info:"#4C98E6",link:"#41bbe1",thinGrey:"#A2B0C4"},bgcolor:{primary:"#F5F6F9",header:"#191919",footer:"#191919",blue:"#147BD1",grey:"#F5F6F9"},font:{family:{default:"Microsoft Yahei, STXihei, sans-serif",yahei:"MicrosoftYaHei",light:"HelveticaNeue-Light"},size:{base:"12px",small:"11px",xsmall:"9px",large:"20px",xlarge:"30px"}},border:{primary:"1px solid #E2E4E6"},padding:{},margin:{},box_shadow:{},icon:{size:16,color:{primary:"#A2B0C4",primary_hover:"#fff"},marginRight:5},comp:{mainnav:{color:"#a2b0c4",active_color:"#FFFFFF",active_bg:"#242a39"}}}},"./src/styles/theme/index.js":function(e,t,a){"use strict";t.__esModule=!0,t.default=function(e){return a("./src/styles/theme sync recursive ^\\.\\/.*$")("./"+e).default}},"./src/styles/theme/zyzx.js":function(e,t,a){"use strict";t.__esModule=!0,t.default={color:{primary:"#395377",secondary:"#53C1DE",title:"rgba(0, 0, 0, 0.65)",comment:"#787d82",alert:"#FF4258",success:"mediumseagreen",info:"#4C98E6",link:"#41bbe1",thinGrey:"#A2B0C4"},bgcolor:{primary:"#F5F6F9",header:"#007FCC",footer:"#303643",blue:"#147BD1",grey:"#F5F6F9"},font:{family:{default:"Microsoft Yahei, STXihei, sans-serif",yahei:"MicrosoftYaHei",light:"HelveticaNeue-Light"},size:{base:"12px",small:"11px",xsmall:"9px",large:"20px",xlarge:"30px"}},border:{primary:"1px solid #E2E4E6"},padding:{},margin:{},box_shadow:{},icon:{size:16,color:{primary:"#A2B0C4",primary_hover:"#fff"}},comp:{mainnav:{color:"#fff",active_color:"#FFFFFF",active_bg:"#007FCC"}}}},"./src/utils/authPermit.js":function(e,t,a){"use strict";t.__esModule=!0,t.lackRequiredUserInfo=t.hasProductServiceAuth=t.getCurrentContext=t.isOwner=t.hasPermit=t.updateExpiredTime=t.isAuth=t.isExpired=t.isUserAdmin=t.getExpireTime=t.getPlatformFlag=t.getButtonPermits=t.getPermits=t.getIframeUrl=t.getUserId=t.getUserContextslInfo=t.getUserAdditionalInfo=t.getUser=t.getRefreshToken=t.getToken=t.getLoginInfo=t.getSwitchInfo=t.removeLoginData=t.setLoginData=t.saveSwitchData=t.saveLoginData=t.setIframeUrl=t.setUserId=t.redirectLogin=void 0;var n=c(a("./node_modules/babel-runtime/helpers/extends.js"));t.encryptByDES=function(e,t){var a=r.default.enc.Utf8.parse(t);return r.default.DES.encrypt(e,a,{mode:r.default.mode.ECB,padding:r.default.pad.Pkcs7}).toString()};var o=c(a("./node_modules/lodash/lodash.js")),s=c(a("./node_modules/js-cookie/src/js.cookie.js")),r=c(a("./node_modules/crypto-js/index.js")),i=a("./src/utils/dateUtil.js"),d=a("./src/utils/history.js"),l=a("./src/routes/routeHelper.jsx"),u=a("./src/utils/commonUtil.js");function c(e){return e&&e.__esModule?e:{default:e}}function p(e){var t="",a=JSON.parse(localStorage.getItem("AI.SWITCH_OPTIONS"));return a&&o.default.forOwn(a,(function(a,n){n===e&&""!==a&&(t=a)})),t}t.redirectLogin=function(e){var t=window.location.search,a=l.sysManageUrl.login(),n=e||o.default.get(window,"location.pathname",""),s=(t=t?t+"&referUrl="+n:n?"referUrl="+n:"")?a+"?"+t:a;(0,d.navigateTo)(s)},t.setUserId=function(e){localStorage.setItem("AI.ONE_USER_ID",e)},t.setIframeUrl=function(e){localStorage.setItem("AI.iframeUrl",e)};var f=t.saveLoginData=function(e){localStorage.setItem("AI.LOGIN_INFO",JSON.stringify((0,n.default)({},e))),localStorage.setItem("AI.isAppliedProject",o.default.get(e,"applied"))},m=(t.saveSwitchData=function(e){localStorage.setItem("AI.SWITCH_OPTIONS",JSON.stringify((0,n.default)({},e)))},t.setLoginData=function(e){console.log("userData",e);var t=o.default.get(e,"user_id");localStorage.setItem("AI.ONE_USER_ID",t),localStorage.setItem("AI.token",e.access_token?"Bearer "+e.access_token:""),localStorage.setItem("AI.refreshToken",e.refresh_token),localStorage.setItem("AI.expiresIn",e.expires_in),localStorage.setItem("AI.overTimeData",(0,i.getOverTime)(e.expires_in)),e.scopeType&&e.scopeId&&localStorage.setItem("AI.currentContext",e.scopeType+"@"+e.scopeId);var a=(0,d.parseParms)(window.location).state;o.default.isEmpty(a)||void 0===a?window.top.location.href=encodeURI(window.top.location.origin):window.top.location.href=encodeURI(window.top.location.origin+a)},t.removeLoginData=function(){Object.keys(localStorage).forEach((function(e){return-1!==e.indexOf("AI.")&&"AI.SWITCH_OPTIONS"!==e?localStorage.removeItem(e):""})),localStorage.removeItem("token"),s.default.remove("ssoToken"),s.default.remove("AI-SESSIONID"),s.default.remove("AI-sessionid"),s.default.remove("doccano_sessionid"),s.default.remove("doccano_jwt"),s.default.remove("cvat_sessionid")},t.getSwitchInfo=function(){return JSON.parse(localStorage.getItem("AI.SWITCH_OPTIONS"))},t.getLoginInfo=function(){return JSON.parse(localStorage.getItem("AI.LOGIN_INFO"))}),h=t.getToken=function(){var e=localStorage.getItem("AI.token");return e||(e=s.default.get("ssoToken")?"Bearer "+s.default.get("ssoToken"):null),e},g=(t.getRefreshToken=function(){return localStorage.getItem("AI.refreshToken")},t.getUser=function(){return o.default.get(m(),"userInfo",{})||{}}),v=t.getUserAdditionalInfo=function(){return o.default.get(m(),"additionalInfo",{})},_=(t.getUserContextslInfo=function(){return o.default.get(m(),"contexts",{})},t.getUserId=function(){return localStorage.getItem("AI.ONE_USER_ID")},t.getIframeUrl=function(){return localStorage.getItem("AI.iframeUrl")},t.getPermits=function(){return o.default.get(m(),"permissions",[])}),y=(t.getButtonPermits=function(){return o.default.get(m(),"buttonPermissions",[])},t.getPlatformFlag=function(){for(var e=!1,t=o.default.get(m(),"contexts",[]),a=0;a<t.length;a++)if(t[a].current&&"PLATFORM"===t[a].current.type){e=!0;break}return e},t.getExpireTime=function(){return o.default.get(m(),"expireTime",{})},t.isUserAdmin=function(){var e=o.default.get(m(),"roles",[]);if(e.length>0){var t=p("root.datasource.adminRoles");if(t){for(var a=!1,n=t.split(","),s=0;s<n.length;s++){for(var r=0;r<e.length;r++)if(e[r]===n[s]){a=!0;break}if(a)break}return a}}return!1},t.isExpired=function(){var e=h();return!!o.default.isNil(e)});t.isAuth=function(){return!y()},t.updateExpiredTime=function(){var e=m();f((0,n.default)({},e))},t.hasPermit=function(e,t,a){var n=_(),s=o.default.get(n,[e,t]);return!(!s||"ALL"!==o.default.toUpper(s))||!!(s&&o.default.isArray(s)&&o.default.includes(s,a))},t.isOwner=function(e){var t=g();return t&&t.userId===e},t.getCurrentContext=function(){var e=localStorage.getItem("AI.currentContext"),t=e?e.split("@"):[];return{role:t[0],id:t[1]}},t.hasProductServiceAuth=function(){var e=o.default.get(m(),"roles",[])||[];return Boolean(o.default.find(e,(function(e){return["PROJECT_ADMIN","SERVICE_DEVOPS"].includes(e)})))},t.lackRequiredUserInfo=function(e){if(o.default.get(v(),"isPlatformAdmin"))return!1;var t=p("root.app.userInfoCompletion");t=(0,u.isJsonString)(t)?JSON.parse(t):{};var a=o.default.get(t,"isShow"),n=o.default.get(t,"required"),s=o.default.get(e,"userInfo",{})||{};return a&&n.some((function(e){return!s[e]}))}},"./src/utils/commonUtil.js":function(e,t,a){"use strict";t.__esModule=!0,t.throttle=t.debounce=t.bytesToSize=t.repCode=t.Interval=t.isImageUrl=t.isBase64=t.isJsonString=t.createModuleNameByApply=void 0;var n=s(a("./node_modules/babel-runtime/helpers/typeof.js")),o=s(a("./node_modules/lodash/lodash.js"));function s(e){return e&&e.__esModule?e:{default:e}}t.createModuleNameByApply=function(e,t,a){var n={onOffline:"\u79bb\u7ebf\u63a8\u7406\u670d\u52a1",onInference:"\u5728\u7ebf\u63a8\u7406\u670d\u52a1",codeService:"\u7f16\u7801\u670d\u52a1",modelBase:"\u6a21\u578b\u7ba1\u7406",codePackage:"\u4ee3\u7801\u5305",inferenceMirror:"\u63a8\u7406\u955c\u50cf",trainTask:"\u5411\u5bfc\u4efb\u52a1",flowTask:"\u6d41\u5f0f\u63a8\u7406\u4efb\u52a1"};return a?e+"-"+n[t]:e+"-"+n[t]+"-"+function(e){var t="",a=[];for(;a.length<e;){var n=parseInt(9*Math.random());-1==a.indexOf(n)&&(t+=n,a.push(n))}return t}(3)};t.isJsonString=function(e){try{if("object"==(0,n.default)(JSON.parse(e)))return!0}catch(e){}return!1},t.isBase64=function(e){return"string"===typeof e&&""!==e&&""!==e.trim()&&"true"!==e&&new RegExp("^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$").test(e)},t.isImageUrl=function(e){if("string"!==typeof e||""===e||""===e.trim()||"true"===e)return!1;var t=new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/),a=new RegExp(/\.(png|jpe?g|gif|svg|bmp|ico)(\?.*)?$/),n=e.substring(e.lastIndexOf("."));return t.test(e)&&a.test(n)},t.Interval=function(){var e={};return{start:function(t,a,n){e[n]=setInterval((function(){o.default.isFunction(t)&&t()}),a)},clear:function(){for(var t in e)clearInterval(e[t]);e={}},getTimeInterval:function(){return e}}}(),t.repCode=function(e){var t,a,n=e.match(/(\d+)([^\d]*)$/i)[1];return e.replace(/(\d+)([^\d]*)$/i,(t=Number(n)+1,a=n.length,(Array(a).join(0)+t).slice(-a)+"$2"))};t.bytesToSize=function(e){if(0===e)return"0 B";if(!e||isNaN(e))return"--";var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]},t.debounce=function(e,t){var a=void 0;return function(){var n=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){e.apply(n,o)}),t)}},t.throttle=function(e,t){var a=0;return function(){var n=Date.now(),o=this,s=arguments;n-a>t&&(e.apply(o,s),a=n)}}},"./src/utils/constants.js":function(e,t,a){"use strict";t.__esModule=!0,t.ServicePath=t.getDataBaseType=t.wrapServiceUrl=t.getWrapPDFUrl=t.wrapPDFUrl=t.wrapServiceHost=t.buildWebUrl=t.buildPublicResUrl=t.getFunc=t.getUrlPath=t.getNewApiUrlByServiceType=t.getApiUrlByServiceType=t.getNewApiUrl=t.getApiUrl=t.getAjaxUrl=t.getTokenRemainTime=void 0;var n=i(a("./node_modules/lodash/lodash.js")),o=i(a("./src/config/app-config.js")),s=i(a("./src/config/app-feature-config.js")),r=a("./src/utils/switchConfig.js");function i(e){return e&&e.__esModule?e:{default:e}}var d=window._MLP_ENVS,l=function(){var e=function e(t){return Object.keys(t).map((function(a){n.default.isPlainObject(n.default.get(t,a))&&e(n.default.get(t,a));var o=n.default.get(d,a);if(n.default.isNil(o)){var s=n.default.get(Object({NODE_ENV:"production",PUBLIC_URL:"",API_BASE_PATH:"aiSquare/openApi/",CONTEXT_PATH:"",ENABLE_MOCK_API:"false",ENABLE_PROXY_API:"true",LOGIN_URL:"http://ailab-test.digitalyili.com",SERVER_PROXY:"http://ailab-test.digitalyili.com",SERVER_PROXY_ANB:"http://ailab-test.digitalyili.com",SERVER_PROXY_APIS:"http://ailab-test.digitalyili.com",SERVER_PROXY_APPSCENE:"http://ailab-test.digitalyili.com",SERVER_PROXY_BC:"http://ailab-test.digitalyili.com",SERVER_PROXY_CODE_MODEL:"http://ailab-test.digitalyili.com",SERVER_PROXY_DATA_PRE:"http://ailab-test.digitalyili.com",SERVER_PROXY_DSEM:"http://ailab-test.digitalyili.com",SERVER_PROXY_GUIDE_TRAIN:"http://ailab-test.digitalyili.com",SERVER_PROXY_JOBS_SERVE:"http://ailab-test.digitalyili.com",SERVER_PROXY_MC:"http://ailab-test.digitalyili.com",SERVER_PROXY_NB_VIEW:"http://ailab-test.digitalyili.com",SERVER_PROXY_OCR:"http://ailab-test.digitalyili.com",SERVER_PROXY_OPT:"http://ailab-test.digitalyili.com",SERVER_PROXY_OR:"http://ailab-test.digitalyili.com",SERVER_PROXY_PROJECT:"http://ailab-test.digitalyili.com",SERVER_PROXY_REPO:"http://ailab-test.digitalyili.com",SERVER_PROXY_RES:"http://ailab-test.digitalyili.com",SERVER_PROXY_ROUTE:"http://ailab-test.digitalyili.com",SERVER_PROXY_SC:"http://ailab-test.digitalyili.com/",SERVER_PROXY_SIC:"http://ailab-test.digitalyili.com",SERVER_PROXY_STREAMING_REASONING:"http://ailab-test.digitalyili.com",SERVER_PROXY_UC:"http://ailab-test.digitalyili.com",SERVER_PROXY_UCC:"http://ailab-test.digitalyili.com",SERVER_PROXY_UPLOAD:"http://ailab-test.digitalyili.com",SERVER_URL:"http://ailab-test.digitalyili.com",WEB_URL:"http://ailab-test.digitalyili.com"}),a);n.default.isNil(s)||(t[a]=s)}else t[a]=o})),t}(o.default);return e.HOME_PATH=e.HOMEPATH,e.FEATURE_SUPPORT=s.default,e}();t.default=l;t.getTokenRemainTime=function(){return l.TOKEN_REMAIN_TIMEOUT},t.getAjaxUrl=function(){return"/"+l.API_BASE_PATH},t.getApiUrl=function(){return l.SERVER_URL+"/"+l.API_BASE_PATH+"<%=BASE_PATH%>/"+l.API_ROOT},t.getNewApiUrl=function(){return l.SERVER_URL+"/"+l.API_BASE_PATH+"<%=BASE_PATH%>/"},t.getApiUrlByServiceType=function(e,t,a){return n.default.get(a?r.serviceType2McUrls:r.serviceTypeUrls,""+e,l.SERVER_URL)+"/"+l.API_BASE_PATH+t+"/"+l.API_ROOT},t.getNewApiUrlByServiceType=function(e,t,a){return n.default.get(a?r.serviceType2McUrls:r.serviceTypeUrls,""+e,l.SERVER_URL)+"/"+l.API_BASE_PATH+t+"/"},t.getUrlPath=function(e,t,a){return n.default.replace("/"+l.API_BASE_PATH+t+"/"+(e?l.API_ROOT+"/":"")+a,"//","/")},t.getFunc=function(e){return n.default.get(l,"FEATURE_SUPPORT."+e,!0)},t.buildPublicResUrl=function(e){return u(e)};var u=t.buildWebUrl=function(e){return l.CONTEXT_PATH&&""!==n.default.trim(l.CONTEXT_PATH)?n.default.startsWith(l.CONTEXT_PATH,"/")?(l.CONTEXT_PATH+"/"+e).replace("//","/"):("/"+l.CONTEXT_PATH+"/"+e).replace("//","/"):n.default.startsWith(e,"/")?e.replace("//","/"):("/"+e).replace("//","/")};t.wrapServiceHost=function(){return l.SERVER_URL},t.wrapPDFUrl=function(e){return l.SERVER_URL+e},t.getWrapPDFUrl=function(){return l.SERVER_URL},t.wrapServiceUrl=function(e,t,a,o){return n.default.startsWith(t,"/")&&(t=t.slice(1)),n.default.get(o?r.serviceType2McUrls:r.serviceTypeUrls,""+a,l.SERVER_URL)+"/"+l.API_BASE_PATH+e+"/"+t},t.getDataBaseType=function(e){return e?e=(e=e.replace(/\s+/g,"")).replace(/[/]/g,""):""},t.ServicePath={MODELING_SERVICE:"bc",AUTH_SERVICE:"uc",AUTHC_SERVICE:"uc",USER_CENTER_SERVICE:"uc",DSEM_SERVICE:"dsem",CODE_MODEL:"codemodel",OCR_SERVICE:"ocr",REPO_SERVICE:"ammc",SC_SERVICE:"soc",RES_SERVICE:"rcc",APP_SCENE:"appscene",SIC_SERVICE:"sic",OPT_SERVICE:"biz",ANB_SERVICE:"anb",APIS_SERVICE:"scc",MC_SERVICE:"mc",ROUTE_SERVICE:"route",UPLOAD_SERVICE:"upload",LEARN_SERVICE:"learning",JOBS_MANAGE:"job-manage",JOBS_SERVE:"job-serve",GUIDE_TRAIN:"guide-train",NB_VIEW:"gitlab",DATA_PRE:"data-pre",STREAMING_REASONING:"streaming-reasoning",RESOURCE_RECOVERY:"tp"}},"./src/utils/dateUtil.js":function(e,t,a){"use strict";t.__esModule=!0,t.getCronTypeByCronTrigger=function(e){var t=e.split(" ");if(t.length>5){if("?"!==t[5])return"3";if(-1===_.indexOf(["?","*"],t[3]))return"2";if("*"===t[3]&&"*"===t[4]&&"?"===t[4])return"4"}},t.dataFormatCron=function(e,t,a,n){var o="0 "+n;"2"===e?o+=" "+a+" "+t+" * ?":"3"===e?o+=" "+a+" ? * "+t:"4"===e&&(o+=" "+a+" * * ?");return o},t.cronFormatData=function(e,t){var a={};"2"===e?(a.minute=t.split(" ")[1],a.time=t.split(" ")[2],a.data=t.split(" ")[3]):"3"===e?(a.minute=t.split(" ")[1],a.time=t.split(" ")[2],a.data=t.split(" ")[5]):"4"===e&&(a.minute=t.split(" ")[1],a.time=t.split(" ")[2]);return a},t.calcRelativeTime=function(e,t){var a=(0,s.default)(e),n=(0,s.default)(t),o="--";if(a.isValid()&&n.isValid()){var r=n.diff(a)/1e3;r/60<1?o=r+"\u79d2":r/60/60<1?Math.round(r/60)>0&&(o=Math.round(r/60)+"\u5206",Math.round(r%60)>0&&(o+=Math.round(r%60)+"\u79d2")):r/60/60/60<1&&(o=Math.round(r/60/60)+"\u5c0f\u65f6",Math.round(r%60/60)&&(o+=Math.round(r%60/60)+"\u5206"),Math.round(r%60%60)&&(o+=Math.round(r%60%60)+"\u79d2"))}return o},t.cronToChines=function(e){var t="";e&&(t=e.split(" "));var a=i(t[0],"second"),n=i(t[1],"min"),o=i(t[2],"hour"),s=function(e){var t=null,a="";"*"==e||"?"==e||(-1!=e.indexOf("LX")?(""==(t=e.split("LX"))[0]&&(t[0]=1),a="\u6bcf\u65ec\u5012\u6570"+t[0]+"\u5929"):-1!=e.indexOf("L")?(""==(t=e.split("L"))[0]&&(t[0]=1),a="\u6bcf\u6708\u5012\u6570"+t[0]+"\u5929"):(t=e.split(","),a=t.length>1?"\u6bcf\u6708["+e+"]\u53f7":"\u6bcf\u6708"+e+"\u53f7"));return a}(t[3]),r=function(e){var t=null,a="";"*"==e||"?"==e||(t=e.split(","),a=t.length>1?"["+e+"]\u6708":e+"\u6708");return a}(t[4]),l=function(e){var t=null,a="";if("*"==e);else if("?"==e);else if((t=e.split(",")).length>1){for(var n="",o=0;o<t.length;o++)n+=d[t[o]]+",";n=n.substring(0,n.length-1),a="\u5468["+n+"]"}else a="\u5468"+d[e];return a}(t[5]);return r+l+(""===s?"\u6bcf\u5929":s)+o+n+a},t.getMin2Time=function(e){var t=l(e%60),a=l(Math.floor(e/60)%60),n=l(Math.floor(e/60/60)%24),o=l(Math.floor(e/60/60/24));return{secs:isNaN(t)?0:t,mins:isNaN(a)?0:a,hours:isNaN(n)?0:n,days:isNaN(o)?0:o}},t.getOverTime=function(e){var t=u(),a=parseInt((e-(0,r.getTokenRemainTime)())/60);return function(e,t){var a=new Date(e.replace("-","/"));a.setMinutes(a.getMinutes()+t,a.getSeconds(),0);var n=new Date(a),o=n.getFullYear(),s=n.getMonth()+1;s=s<10?"0"+s:s;var r=n.getDate();r=r<10?"0"+r:r;var i=n.getHours();i=i<10?"0"+i:i;var d=n.getMinutes();return o+"-"+s+"-"+r+" "+i+":"+(d=d<10?"0"+d:d)}(t,a)},t.overTime=function(){var e=!1;(function(e,t){var a=e,n=t;if(a>n)return-1;var o=a.substr(0,10).split("-"),s=n.substr(0,10).split("-"),r=new Date(o[1]+-+o[2]+-+o[0]),i=new Date(s[1]+-+s[2]+-+s[0]),d=parseInt(Math.abs(i-r)/1e3/60),l=60*parseInt(a.substr(11,2))+parseInt(a.substr(14,2)),u=60*parseInt(n.substr(11,2))+parseInt(n.substr(14,2));return 60*(d+(u-l))})(u(),localStorage.getItem("AI.overTimeData"))<=(0,r.getTokenRemainTime)()&&(e=!0);return e};var n,o=a("./node_modules/dayjs/dayjs.min.js"),s=(n=o)&&n.__esModule?n:{default:n},r=a("./src/utils/constants.js");function i(e,t){var a="";if("*"==e);else if("?"==e);else{var n="\u79d2";"min"==t?n="\u5206":"hour"==t&&(n="\u70b9"),a=e.split(",").length>1?"["+e+"]"+n:e+n}return a}var d=["","\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"];function l(e){return 0===e?0:e<10?"0"+e:""+e}function u(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a=a<10?"0"+a:a;var n=e.getDate();n=n<10?"0"+n:n;var o=e.getHours();o=o<10?"0"+o:o;var s=e.getMinutes();s=s<10?"0"+s:s;var r=e.getSeconds();return t+"-"+a+"-"+n+" "+o+":"+s+":"+(r=r<10?"0"+r:r)}},"./src/utils/dockerFileUtil.js":function(e,t,a){"use strict";t.__esModule=!0,t.getDockerfileAsync=t.updateSetDockerFileSort=void 0;var n=i(a("./node_modules/babel-runtime/regenerator/index.js")),o=i(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js"));t.updateSetDockerFileSort=function(){var e=(0,o.default)(n.default.mark((function e(t,a,o,r){var i,l,u=this;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=[],l=[],!s.default.get(t,"dockerFile")||""===s.default.get(t,"dockerFile")){e.next=4;break}return e.delegateYield(n.default.mark((function e(){var c,p,f,m,h,g,v;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=s.default.get(t,"dockerFile").split("\n"),e.t0=n.default.keys(a);case 2:if((e.t1=e.t0()).done){e.next=8;break}if(p=e.t1.value,!s.default.get(t,p)){e.next=6;break}return e.delegateYield(n.default.mark((function e(){var o,i,f,m;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={key:"",value:s.default.get(t,p),type:a[p]},e.next=3,d({paramjson:o});case 3:for(i=(i=e.sent).split("\n"),f=function(e){var t=s.default.findIndex(c,(function(t){return t===i[e]}));-1!==t?l.push({key:a[p],val:c[t]}):"reset"===r?l.push({type:a[p],data:i[e],sort:s.default.random(99,999)}):l.push({key:a[p],val:null})},m=0;i&&m<i.length;m++)f(m);case 7:case"end":return e.stop()}}),e,u)}))(),"t2",6);case 6:e.next=2;break;case 8:f=s.default.get(t,o||"envVars",[]),m=0;case 10:if(!(m<f.length)){e.next=16;break}if(!f[m].value){e.next=13;break}return e.delegateYield(n.default.mark((function e(){var t,a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={key:f[m].name,value:f[m].value,type:"env"},e.next=3,d({paramjson:t});case 3:a=e.sent,-1!==s.default.findIndex(c,(function(e){return e===a}))&&l.push({key:m+"env",val:a});case 6:case"end":return e.stop()}}),e,u)}))(),"t3",13);case 13:m++,e.next=10;break;case 16:for(h=0,g=function(e){var t=s.default.findIndex(l,(function(t){return t.val===c[e]}));-1!==t?(i.push({type:-1!==l[t].key.indexOf("env")?"auto":l[t].key,data:c[e],sort:-1!==l[t].key.indexOf("env")?h:e}),-1!==l[t].key.indexOf("env")&&(h+=1)):i.push({type:"hand",data:c[e],sort:s.default.random(99,999)})},v=0;v<c.length;v++)g(v);case 19:case"end":return e.stop()}}),e,u)}))(),"t0",4);case 4:return"reset"===r&&(i=i.concat(l)),e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));return function(t,a,n,o){return e.apply(this,arguments)}}();t.orderDockerFile=l,t.editDockerFileByAuto=function(e,t,a,n,o,r){var i={dockerFileSort:e,array:[]};if("env"!==r){var d=[],u=t.split("\n");if("model"===r){for(var c=[],p=0;p<e.length;p++)"model"!==e[p].type&&c.push(e[p]);e=c,i.dockerFileSorts=c}for(var f=0;f<u.length;f++)if("model"!==r){for(var m=-1,h=0;h<e.length;h++)if(e[h].type===r&&-1===s.default.indexOf(d,h)){m=h,d.push(h);break}-1!==m?e[m]={type:r,data:u[f],sort:m}:(e.push({type:r,data:u[f],sort:s.default.random(99,999)}),d.push(e.length>0?e.length-1:0))}else d.push({type:r,data:u[f],sort:s.default.random(99,999)});i.dockerFileSort="model"===r?d.concat(e):e}else if(t&&"env"===r){var g=s.default.findIndex(i.dockerFileSort,(function(e){return"minus"===n?"auto"===e.type&&e.data===t:"auto"===e.type&&e.sort===a}));-1!==g?"edit"===n?i.dockerFileSort[g].data=t:"minus"===n&&i.dockerFileSort.splice(g,1):"minus"!==n&&i.dockerFileSort.push({type:"auto",data:t,sort:a})}o&&"env"===r&&(i=l(i.dockerFileSort,o,n));return i},t.editDockerFileByHand=function(e,t){if(!t||!t.trim())return[];var a=t&&t.split("\n");if(a.length<e.length){for(var n=[],o=function(t){-1!==s.default.findIndex(a,(function(a){return a===e[t].data}))&&n.push(e[t])},r=0;r<e.length;r++)o(r);e=n}else if(a.length===e.length)for(r=0;r<a.length;r++)e[r]?e[r].data!==a[r]&&(e[r].type=-1!==s.default.indexOf(["auto","hand"],e[r].type)?"hand":e[r].type,e[r].data=a[r]):e.push({type:-1!==s.default.indexOf(["auto","hand"],e[r].type)?"hand":e[r].type,data:a[r],sort:r});else if(a.length>e.length){for(var i=[],d=function(t){var n=s.default.findIndex(e,(function(e){return e.data===a[t]}));-1!==n?i.push(e[n]):i.push({type:"hand",data:a[t],sort:999})},l=0;l<a.length;l++)d(l);e=i}return e},t.transitionDockerFileSort=function(e){for(var t="",a=0;e&&a<e.length;a++)t+=e[a].data+"\n";t&&"\n"===t.substring(t.length-1,t.length)&&(t=t.substring(0,t.lastIndexOf("\n")));return t};var s=i(a("./node_modules/lodash/lodash.js")),r=a("./src/redux/services/modelMirror.js");function i(e){return e&&e.__esModule?e:{default:e}}var d=t.getDockerfileAsync=function(){var e=(0,o.default)(n.default.mark((function e(t){var a;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getDockerfileContent)(t).then((function(e){var t="";return"00000"===e.code&&(t=e.data),t}));case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}();function l(e,t,a){var n={dockerFileSort:e,array:t},o=s.default.findIndex(e,(function(e){return"auto"===e.type}));if("minus"===a&&-1===o)return n.array=t,n;for(var r=[],i=function(a){var n=s.default.findIndex(e,(function(e){return"auto"===e.type&&e.sort===parseInt(t[a].index)}));-1!==n&&(e[n].sort=a),t[a].index=a,r.push(t[a])},d=0;d<t.length;d++)i(d);var l=function(t){if("auto"===e[t].type){var a=s.default.findIndex(r,(function(a){return parseInt(a.index)===e[t].sort}));-1!==a&&(n.array[a]={name:r[a].name,value:r[a].value,key:r[a].key,type:r[a].type,index:a},e[t].sort=a)}};for(d=0;e&&d<e.length;d++)l(d);return n}},"./src/utils/downLoadFile.js":function(e,t,a){"use strict";t.__esModule=!0,t.authDownLoadFile=t.downLoadFlowFile=void 0;var n=a("./src/utils/authPermit.js");t.downLoadFlowFile=function(e){if(window.navigator&&window.navigator.msSaveOrOpenBlob){var t=new Blob([e.data],{type:"application/vnd.ms-excel"});window.navigator.msSaveOrOpenBlob(t,(new Date).getTime()+".zip")}else{var a=new Blob([e.data]),n=document.createElement("a"),o=window.URL.createObjectURL(a);n.href=o,n.download=(new Date).getTime()+".zip",document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(o)}},t.authDownLoadFile=function(e){var t=(0,n.getToken)();e=e&&e.includes("?")?e+"&token="+t:e+"?token="+t,window.open(e)}},"./src/utils/dragDropUtil.js":function(e,t,a){"use strict";t.__esModule=!0;var n=s(a("./node_modules/babel-runtime/helpers/extends.js"));t.verifyArray=function(e,t,a){for(var n=!0,s="",r=function(r){var i=o.default.filter(e,(function(e){return a?-1!==e.field.indexOf(t[r].field.replace(a,"")):-1!==e.field.indexOf(t[r].field)}));i&&0===i.length&&(s+=t[r].field+",",n=!1)},i=0;i<t.length;i++)r(i);return{validate:n,error:s?s.substring(0,s.length-1)+"\u8f93\u5165\u53c2\u6570\u4e0d\u5305\u542b\u4ee5\u4e0a\u53c2\u6570\uff0c\u8bf7\u786e\u5b9a":""}},t.setFormatConfigData=function(e,t,a){for(var s=[],r=[],i=o.default.get(t,"output",[]),d=o.default.get(t,"field",null),l=(0,n.default)({},t),u=function(t){var n=o.default.filter(e,(function(e){return a?-1!==e.field.indexOf(i[t].field.replace(a,"")):-1!==e.field.indexOf(i[t].field)}));n&&n.length>0&&r.push(i[t])},c=0;c<i.length;c++)u(c);if(l.output=r,d){var p=function(t){var a=o.default.filter(e,(function(e){return-1!==e.field.indexOf(d[t])}));a&&a.length>0&&s.push(d[t]),l.field=s};for(c=0;c<d.length;c++)p(c)}return l},t.verificationParms=function(e,t,a){for(var n=!0,s=[],r=0;r<e.length;r++)s.push(e[r].field);for(var i=0;i<a.length;i++)-1===o.default.indexOf(s,t[a[i]])&&(n=!1);return n},t.clearConfigData=function(e,t,a){var s=(0,n.default)({},t),r=[],i=[];return a.forEach((function(e){r.push(o.default.get(t,e,null))})),r.forEach((function(t){var a=o.default.filter(e,(function(e){return e.field===t}));i.push(a)})),i.forEach((function(e,t){e&&e.length>0?s[a[t]]=r[t]:s[a[t]]=""})),s},t.contrastInput=function(e,t,a){var n=t;if(!(t&&t.length>0))return[];for(var s=function(s){-1===o.default.findIndex(t,(function(t){return a?t.field===e[s].field||t.field+a===e[s].field+a:t.field===e[s].field}))&&n.push(e[s])},r=0;r<e.length;r++)s(r);return n};var o=s(a("./node_modules/lodash/lodash.js"));function s(e){return e&&e.__esModule?e:{default:e}}},"./src/utils/enums.js":function(e,t,a){"use strict";t.__esModule=!0;var n,o=a("./node_modules/babel-runtime/helpers/extends.js"),s=(n=o)&&n.__esModule?n:{default:n};t.default=function(e){var t={},a={},n=[],o=[],r=Object.keys(e),i=Array.isArray(r),d=0;for(r=i?r:r[Symbol.iterator]();;){var l;if(i){if(d>=r.length)break;l=r[d++]}else{if((d=r.next()).done)break;l=d.value}var u=l,c=e[u],p=c[0],f=c[1];n.push({code:u,desc:f}),o.push({code:e[u][0],desc:f,code2:u}),t[u]=p,a[p]=f}return(0,s.default)({},t,{getDesc:function(t){return e[t]&&e[t][1]||"--"},getDescFromValue:function(e){return a[e]||"--"},getDescFromCode:function(e){return t[e]||"--"},getCodeAndDescList:function(){return n||[]},getValueAndDescList:function(){return o||[]}})}},"./src/utils/history.js":function(e,t,a){"use strict";t.__esModule=!0,t.navigateTo=function(e){d.push(e)},t.goHomePage=function(){d.push(s.default.HOME_PATH)},t.parseParms=function(e){var t=o.default.get(e,"search");if(t)return t=o.default.startsWith(t,"?")?t.substr(1):t,i.parse(t)||{};return{}},t.urlParamDel=function(e){"string"==typeof e&&(e=[e]);for(var t=window.location,a={},n=t.search.substr(1).split("&"),s=0;s<n.length;s++)n[s]=n[s].split("="),a[n[s][0]]=n[s][1];for(var r=0;r<e.length;r++)delete a[e[r]];var i=t.origin+t.pathname+"?"+JSON.stringify(a).replace(/[\"\{\}]/g,"").replace(/\:/g,"=").replace(/\,/g,"&");i&&o.default.endsWith(i,"?")&&(i=i.slice(0,i.length-1));return i},t.getMenuByUrl=function(e){var t=window.location.pathname;return function e(t,a){for(var n={menu:{},id:"",fid:""},s=t,r=["/sysmgr/user","/sysmgr/userGroup"],i=0;i<s.length;i++)if(-1!==o.default.indexOf(r,a)){if(""!==s[i].addition.url&&a===s[i].addition.url)return n.menu=l||s[i].addition,n.id=s[i].id,n.fid=l?l.id:"",n}else if(""!==s[i].addition.url&&-1!==a.indexOf(s[i].addition.url))return n.menu=l||s[i].addition,n.id=s[i].id,n.fid=l?l.id:s[i].id,n;if(""===n.id)for(var d=0;d<s.length;d++){if(""!==s[d].addition.url&&-1!==a.indexOf(s[d].addition.url))return n.menu=l||s[d].addition,n.id=s[d].id,n.fid=l?l.id:"",n;if(s[d].children){s[d].addition.icon&&""!==s[d].addition.icon&&(l=s[d].addition.level?l:s[d]);var u=e(s[d].children,a);if(u&&""!==u.id)return u}}return null}(e,t)},t.setParentMenu=function(){l=null};var n=a("./node_modules/history/esm/history.js"),o=r(a("./node_modules/lodash/lodash.js")),s=r(a("./src/utils/constants.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=a("./node_modules/querystring-es3/index.js"),d=(0,n.createBrowserHistory)({basename:s.default.CONTEXT_PATH}),l=null;t.default=d},"./src/utils/menu.json":function(e){e.exports=JSON.parse('[{"id":"MODEL_TRAIN","name":"\u6a21\u578b\u8bad\u7ec3","url":"/modelTrain","menuType":""},{"id":"REPO_MODEL","name":"\u6a21\u578b\u7ba1\u7406","url":"/modelBase"},{"id":"DATAMGR","name":"\u6570\u636e\u7ba1\u7406","url":"","menuType":"tabs","children":[{"id":"DATA_SOURCE","name":"\u6570\u636e\u6e90\u7ba1\u7406","url":"/datamgr/dataSource"},{"id":"DATASOURCE_DEV","name":"\u6570\u636e\u6e90\u5f00\u53d1","url":"/datamgr/datasourceDev"},{"id":"DATA_EXPLORER","name":"\u6570\u636e\u63a2\u7d22","url":"/datamgr/dataExplorer"},{"id":"DATA_DISPOSE","name":"\u6570\u636e\u9884\u5904\u7406","url":"/datamgr/dataDispose"}]},{"id":"EXTERNAL_MODEL","name":"\u7b2c\u4e09\u65b9\u6a21\u578b\u7ba1\u7406","url":"/externalModel","menuType":""},{"id":"USER_CENTER","name":"\u7528\u6237\u4e2d\u5fc3","url":"","menuType":"tabs","children":[{"id":"USER","name":"\u7528\u6237","url":"/sysmgr/user"},{"id":"USER_GROUP","name":"\u7528\u6237\u7ec4","url":"/sysmgr/userGroup"},{"id":"ROLE","name":"\u89d2\u8272","url":"/sysmgr/roles"},{"id":"QUOTA_TENANT","name":"\u79df\u6237","url":"/sysmgr/tenant"}]},{"id":"SYSMGR","name":"\u7cfb\u7edf\u7ba1\u7406","url":"","menuType":"","children":[{"id":"DB_SETTING","name":"\u6570\u636e\u5e93\u914d\u7f6e","url":"/sysmgr/dataBases"},{"id":"FTP_SETTING","name":"FTP\u914d\u7f6e","url":"/sysmgr/ftpBases"},{"id":"NET_DISK_SETTING","name":"NetDisk\u7ba1\u7406","url":"/sysmgr/netDisk"},{"id":"APP_TOPIC_BASES","name":"\u4e1a\u52a1\u5206\u7c7b\u914d\u7f6e","url":"/sysmgr/appTopicBases"},{"id":"REGARD","name":"\u7cfb\u7edf\u516c\u544a","url":"/sysmgr/systemAffiche"},{"id":"RES_TRANSFER","name":"\u8d44\u6e90\u8f6c\u4ea4","url":"/sysmgr/resTransfer"},{"id":"SCENE_DEMO","name":"AI\u6f14\u793a\u914d\u7f6e","url":"/sysmgr/sceneDemo"},{"id":"DEV_HELP","name":"\u5f00\u53d1\u8005\u4e2d\u5fc3","url":"/dev-center/api-test"},{"id":"DEV_API","name":"\u5185\u90e8\u670d\u52a1API","url":"/dev-center/internal/api-test"},{"id":"LINKMAN","name":"\u8054\u7cfb\u4eba\u7ef4\u62a4","url":"/sysmgr/contactInfo"},{"id":"ABOUT","name":"\u5173\u4e8e","url":"/systemExplain"},{"id":"SWITCH","name":"\u4ea7\u54c1\u529f\u80fd\u8bbe\u7f6e","url":"/sysmgr/sysSwitch"},{"id":"CONTROL","name":"\u7ba1\u63a7\u4e2d\u5fc3","url":"","menuType":"tabs","children":[{"id":"ANNOTATION","name":"\u6807\u6ce8\u4efb\u52a1\u7ba1\u7406","url":"/sysmgr/annotation"},{"id":"TAG_GROUPS","name":"\u6807\u7b7e\u7ec4\u7ba1\u7406","url":"/sysmgr/tagGroups"}]},{"id":"API_EMPOWER","name":"\u5ba2\u6237\u7aefAPI\u8d4b\u6743","url":"","menuType":"tabs","children":[{"id":"CLIENT_MANAGE","name":"\u5ba2\u6237\u7aef\u7ba1\u7406","url":"/sysmgr/clientManage"},{"id":"API_MANAGE","name":"API\u7ba1\u7406","url":"/sysmgr/apiManage"}]}]}]')},"./src/utils/menuData.js":function(e,t,a){"use strict";t.__esModule=!0;var n=function(){var e=[];return{getMenuData:function(){return e},setMenuData:function(t){e=t}}}();t.default=n},"./src/utils/publicPath.js":function(e,t,a){"use strict";t.__esModule=!0,t.urlFormat=function(e,t,a,n){return(0,o.wrapServiceUrl)(t||o.ServicePath.MODELING_SERVICE,e,a,n)},t.checkUrlByAllowRouters=function(e,t){var a=function(e){for(var t=[],a=0;a<i.default.length;a++){if(i.default[a].children)for(var n=0;n<i.default[a].children.length;n++)t.push(i.default[a].children[n]);t.push(i.default[a])}for(var o=0;o<t.length&&t[o].url!==e.match.url;o++);return!1}(e);if(!a)if(t.permissionId)for(var n=(0,s.getPermits)(),o=0;o<n.length;o++){var r=n[o].split(":"),d=r&&r.length>=2?r[0]+":"+r[1]:"";d!==t.permissionId&&d!==r[0]+":ALL"||(a=!0)}else a=!0;return a};var n,o=a("./src/utils/constants.js"),s=a("./src/utils/authPermit.js"),r=a("./src/utils/menu.json"),i=(n=r)&&n.__esModule?n:{default:n}},"./src/utils/request.js":function(e,t,a){"use strict";t.__esModule=!0,t.refreshToken=void 0;var n=h(a("./node_modules/babel-runtime/regenerator/index.js")),o=h(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),s=h(a("./node_modules/antd/es/modal/index.js")),r=h(a("./node_modules/antd/es/notification/index.js"));a("./node_modules/antd/es/modal/style/index.js"),a("./node_modules/antd/es/notification/style/index.js");var i=h(a("./node_modules/axios/index.js")),d=h(a("./node_modules/lodash/lodash.js")),l=h(a("./node_modules/qs/lib/index.js")),u=a("./src/utils/constants.js"),c=h(a("./node_modules/nprogress/nprogress.js"));a("./node_modules/nprogress/nprogress.css");var p=a("./src/utils/authPermit.js"),f=h(a("./node_modules/crypto-js/index.js")),m=a("./src/components/auth/switchAuth.jsx");function h(e){return e&&e.__esModule?e:{default:e}}var g=!0,v=[];i.default.defaults.retry=4,i.default.defaults.retryDelay=1e4;var _=d.default.template((0,u.getApiUrl)()),y=d.default.template((0,u.getNewApiUrl)()),b=["codemodel","project","dsem","ocr","appscene","ammc","soc","sic","biz","rcc","scc","labels","mc","route","upload","uc","learning","job-manage","job-serve","guide-train","gitlab","data-pre","streaming-reasoning","tp"];function x(e){c.default.done();var t=e.response||{},a=t.statusText,n=t.status,o=d.default.get(e.response||{},["data","message"])||e.message||"\u8bf7\u6c42\u670d\u52a1\u51fa\u9519",s=d.default.get(e.response||{},["data","code"])||e.code||-1;if(404===n&&(o="\u8bf7\u6c42\u7684\u8d44\u6e90["+d.default.get(e.response,["config","url"])+"]\u4e0d\u5b58\u5728\uff01"),"4016"===s||"4019"===s){if(g){var i=(0,p.getCurrentContext)(),l=i.role,u=i.id;I(l,u)}g=!1;var f=e.config;return new Promise((function(e){var t;t=function(){e(C(f))},console.dir("callback:\u52a0\u5165"+t),v.push(t)}))}if("1310002"===s){var m=(new Date).getTime(),h=T()-m;localStorage.setItem("AI.timeDeviation",h)}return"ECONNABORTED"===s&&(o="\u670d\u52a1\u8fde\u63a5\u5931\u8d25\u6216\u8bf7\u6c42\u8d85\u65f6\uff01"),401!==n||d.default.includes(window.location.pathname,"/login")?"4035"===s||"4018"===s?j("\u767b\u5f55\u8d85\u65f6"):r.default.error({key:"SYSTEM_ERROR",message:"\u7cfb\u7edf\u9519\u8bef",description:o}):j("\u6388\u6743\u5931\u8d25"),Promise.reject({success:!1,code:s,message:o||a,error:o||a,data:d.default.get(e.response,"data.data",{})})}c.default.configure({showSpinner:!0,easing:"ease",speed:500});var C=function(e){var t=(0,p.getToken)();return console.dir("2\u6b21\u8bf7\u6c42"+t),e.headers.Authorization=t,S(e)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"\u767b\u5f55\u8d85\u65f6";w();var t=5,a=s.default.warn({title:e,content:"\u7cfb\u7edf"+e+","+t+" \u79d2\u540e\u81ea\u52a8\u8df3\u8f6c\u81f3\u767b\u5f55\u9875\u9762\uff01",okText:"\u7acb\u5373\u8df3\u8f6c\u81f3\u767b\u5f55\u9875\u9762",onOk:function(){clearInterval(n),a.destroy(),window.location.reload()}}),n=setInterval((function(){t-=1,a.update&&a.update({content:e+","+t+" \u79d2\u540e\u81ea\u52a8\u8df3\u8f6c\u81f3\u767b\u5f55\u9875\u9762\uff01"})}),1e3);return setTimeout((function(){clearInterval(n),a.destroy();(0,p.getToken)();window.location.reload()}),1e3*t),a},S=i.default.create({timeout:12e5,headers:{"Content-Type":"application/json;charset=UTF-8",Accept:"application/json"}});S.interceptors.request.use((function(e){var t=(0,p.getToken)(),a=-1!==e.url.indexOf("/authc/sso")||-1!==e.url.indexOf("/oauth/token");t&&!a&&(e.headers.Authorization=t),e.dispatch&&e.dispatch(platFormActions.setRequestConfig(e));var n=-1===d.default.indexOf(b,e.basePath)&&"/oauth/token"!==e.url,o=e.basePath||u.ServicePath.MODELING_SERVICE,s=e.url;if(e.serviceType){var r=d.default.toUpper(e.serviceType);e.baseURL=n?(0,u.getApiUrlByServiceType)(r,o):(0,u.getNewApiUrlByServiceType)(r,o)}else if(e.serviceType2Mc){var i=d.default.toUpper(e.serviceType2Mc);e.baseURL=n?(0,u.getApiUrlByServiceType)(i,o,!0):(0,u.getNewApiUrlByServiceType)(i,o,!0)}else"relative"===e.basePath?e.baseURL="/":e.baseURL=n?_({BASE_PATH:o}):y({BASE_PATH:o});!e.sync&&d.default.isEmpty({})&&c.default.start();var h=e.params||{};return(0,m.hasFeatureAuths)("root.app.enableSignature")&&(h=function(e){var t=e.params,a=e.isOld,n=e.basePath,o=e.urlPath,s=localStorage.getItem("AI.timeDeviation"),r=(new Date).getTime();if(!s){var i=T();s=i-r,localStorage.setItem("AI.timeDeviation",s)}var c=(0,u.getUrlPath)(a,n,o);delete t.sign,t.signTimestamp=r+Number(s);var p=function(e,t){var a=t.split("?"),n=l.default.parse(a[1]);e=Object.assign({},e,n);var o={};Object.keys(e).sort().forEach((function(t){d.default.isNull(e[t])||d.default.isUndefined(e[t])||(o[t]=e[t])}));var s="";for(var r in o)if(Array.isArray(o[r]))for(var i=e[r].sort(),u=0;u<i.length;u++)s=s?s+"&"+r+"="+i[u]:r+"="+i[u];else s=s?s+"&"+r+"="+o[r]:r+"="+o[r];var c=a[0]+"?"+s;return function(e,t){var a=f.default.enc.Utf8.parse(t);return f.default.DES.encrypt(e,a,{mode:f.default.mode.ECB,padding:f.default.pad.Pkcs7}).toString()}(c,"5ebe2294ecd0e0f08eab7690d2a6ee69")}(t,c);return t.sign=p,t}({params:h,isOld:n,basePath:o,urlPath:s})),e.params=h,e.data=e.data||{},e}),(function(e){return Promise.reject(e)}));var I=t.refreshToken=function(){var e=(0,o.default)(n.default.mark((function e(t,a){var o,s;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log((0,p.getToken)()),console.log("refreshToken\u8fc7\u671f\u6b63\u5728\u53bb\u6362\u53d6\u5f00\u59cb~~~"),o=(0,p.getRefreshToken)(),e.next=5,i.default.post((0,u.getAjaxUrl)()+(u.ServicePath.AUTH_SERVICE+"/oauth/token"),l.default.stringify({grant_type:"refresh_token",refresh_token:o,client_id:"AI_FRONT",client_secret:"23dfd110-6864-4d53-a7fb-8e671687a7bf",scopeType:t,scopeId:a}),{headers:{Authorization:"Basic QUlfRlJPTlQ6MjNkZmQxMTAtNjg2NC00ZDUzLWE3ZmItOGU2NzE2ODdhN2Jm","Content-Type":"application/x-www-form-urlencoded",__ai_refresh_token:o}}).then((function(e){return console.log("refreshToken\u8fc7\u671f\u6362\u53d6\u6210\u529f"),localStorage.setItem("AI.token",e.data.access_token?"Bearer "+e.data.access_token:""),localStorage.setItem("AI.refreshToken",e.data.refresh_token),localStorage.setItem("AI.expiresIn",e.data.expires_in),console.dir("\u65b0"+e.data.access_token),v.forEach((function(e){e()})),v=[],g=!0,!0})).catch((function(e){return console.log("refreshToken\u8fc7\u671f\u6362\u53d6\u5931\u8d25"+e),j(),!1}));case 5:return s=e.sent,e.abrupt("return",s);case 7:case"end":return e.stop()}}),e,void 0)})));return function(t,a){return e.apply(this,arguments)}}();function T(){var e=null;(e=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveObject("Microsoft")).open("GET","/",!1),e.send(null);var t=e.getResponseHeader("Date");return t=new Date(t).getTime()}function w(){var e=(0,p.getToken)();(0,p.removeLoginData)(),S({basePath:"relative",url:"/aiSquare/openApi/uc/oauth/logout?token="+e,method:"get"})}S.interceptors.response.use((function(e){return function(e){if(c.default.done(),e&&e.status>=200&&e.status<300){var t=e.data;if(t.code&&t.code>0||!0===t.success||"1"===t.code||"string"===typeof t.code){var a=e.headers.authorization||e.headers.Authorization;return a&&localStorage.setItem("AI.token",a),Promise.resolve({success:!0,code:t.code,message:t.message,data:d.default.get(t,"data",t.value||""),pagination:t.pagination})}return t.code&&t.code<0||!1===t.success?Promise.reject({success:t.success,code:t.code,message:t.message,error:t.error||t.errors||""}):Promise.resolve({data:d.default.get(t,"data",t.value)||e.data,datalearn:e.data})}return Promise.reject({success:!1,code:d.default.get(e||{},"status",-1),message:d.default.get(e||{},"statusText","\u8bf7\u6c42\u5f02\u5e38"),error:d.default.get(e||{},"statusText","\u8bf7\u6c42\u5f02\u5e38"),data:d.default.get(e,"result.data",{})})}(e)}),(function(e){return x(e)})),t.default=S},"./src/utils/requestForOcr.js":function(e,t,a){"use strict";t.__esModule=!0,t.getRoleId=t.baseURL=void 0;var n=r(a("./node_modules/babel-runtime/regenerator/index.js")),o=r(a("./node_modules/babel-runtime/helpers/asyncToGenerator.js")),s=r(a("./node_modules/axios/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}var i=t.baseURL="http://192.168.199.110:18082",d=s.default.create({baseURL:i,timeout:12e5,headers:{"Content-Type":"application/json;charset=UTF-8",Accept:"application/json"}});d.interceptors.request.use((function(e){return e.headers.Authorization=localStorage.getItem("AI.jpt_token"),e})),d.interceptors.response.use((function(e){return 200===e.status?Promise.resolve(e):Promise.reject(e)}),(function(e){if(console.log("err",e),e.response.status){switch(e.response.status){case 401:break;case 403:e.response.data={code:404,msg:"\u8bf7\u9009\u62e9\u9879\u76ee"};break;default:e.response.data={code:404,msg:"\u63a5\u53e3\u9519\u8bef"}}return Promise.resolve(e.response)}}));t.getRoleId=function(){var e=(0,o.default)(n.default.mark((function e(t){var a,o;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=JSON.parse(localStorage.getItem("AI.LOGIN_INFO")),e.next=3,s.default.post(i+"/jpt/auth/switch",{project_id:t,user_id:a.userInfo.userId,user_name:a.userInfo.userName,role_ids:a.roles}).then((function(e){localStorage.setItem("AI.user_role_id",e.data.data.role_id),localStorage.setItem("AI.jpt_token",e.data.data.token_type+" "+e.data.data.access_token)})).catch((function(e){return console.log("\u83b7\u53d6roleId\u5931\u8d25"+e),!1}));case 3:return o=e.sent,e.abrupt("return",o);case 5:case"end":return e.stop()}}),e,void 0)})));return function(t){return e.apply(this,arguments)}}();t.default=d},"./src/utils/switchConfig.js":function(e,t,a){"use strict";t.__esModule=!0;var n=t.getSwitchInfo=function(){return JSON.parse(localStorage.getItem("AI.SWITCH_OPTIONS"))},o=t.hasText=function(e){var t="",a=n();return a&&_.forOwn(a,(function(a,n){n===e&&""!==a&&(t=a)})),t};t.serviceTypeUrls={PRODUCT:o("root.app.productGatewayPath"),TEST:o("root.app.testGatewayPath"),DEV:o("root.app.devGatewayPath")},t.serviceType2McUrls={PRODUCT:o("root.app.mcProductGatewayPath"),TEST:o("root.app.mcTestGatewayPath")}},0:function(e,t){},1:function(e,t,a){a("./node_modules/react-app-polyfill/ie11.js"),e.exports=a("./src/index.js")},10:function(e,t){},2:function(e,t){},3:function(e,t){},4:function(e,t){},5:function(e,t){},6:function(e,t){},7:function(e,t){},8:function(e,t){},9:function(e,t){}},[[1,9,2,0]]]);
|