(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 tag, found <"+a.tagName+">")}(),V(a,e),t.push(a))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;et&&(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);eg[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 .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-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-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-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&&a30?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=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;r0)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;nt)||(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","<","==","!=",">=","<="],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;a0?(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;c0&&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)&&10&&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 no&&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=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;a0&&(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 .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;os?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;o1){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;s0){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;o0&&""===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;t1)for(var o=0;o0&&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;c0&&function(e,t,a){for(var n=0;n1?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 .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-1}},onChange:function(e,a){var n=t.props.selectedIndiData,o=t.props.dataSource;if(0!==n.length){for(var s=0;s0?(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;t0){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;t0?{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 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;s0&&(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;s0?(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;o1?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)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 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;o0){for(var l=0;l=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=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 .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;o0&&(t=!0),n.setState({hasData:t})}))},n.changeSearchConds=function(e,t){if(-1!==e.indexOf(","))for(var a=e.split(","),o=0;o3&&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;l1?t.split("@")[0]:t,s=0;s=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;s1?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")-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 e0?y/h:1/0));if(n.props.verifyMemoryNum&&"\u5185\u5b58"==o?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.memoryNumber0&&(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=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(!(n0&&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;a0?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":[">",">"],"<":["<","<"],"==":["==","=="],"!=":["!=","!="],">=":[">=",">="],"<=":["<=","<="]});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;nt[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;a0?(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;a0?(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;a0?n.filtrateData(n.state.kpiData,"yes"):n.state.kpiData,i=0;i1&&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.length0?n.filtrateData(s,"yes"):s;if(e.target.checked){for(var i=0;i0?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.length0&&(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=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;n0){for(var n=0;n0?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;o0?n.props.allIndi.toJS():[],a=0;a0?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;a0?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;a0||e.headersByIndex.length>0){for(var a=e.headers.length>0?e.headers:e.headersByIndex,o=0;o0?(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;o0?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;o0?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;n0?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;o0&&!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=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=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;_=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;a0&&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=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=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;d0?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;n0)for(var a=0;a(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.memoryNumber0&&(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")-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 e0?y/h:1/0));if(e.props.verifyMemoryNum&&"\u5185\u5b58"==o?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-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-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;a65534)&&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=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 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;s0&&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;l0)for(var a=0;a0&&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;i0?{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:a0?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;o0?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;o0){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;t0&&-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;a3&&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;a0&&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;o0?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;n0?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;s0&&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;a0)for(var a=n.props.deepLearnArithmetic.toJS(),o=0;o=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;d0?o.substring(0,o.length-1):o},propertyFlag:"false"}},dataFilter:function(e,t){for(var a=0;a=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[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;r0?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;a0)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;o0&&!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;o0&&(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-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-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;r0?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;r0&&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;d0?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;s0))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;d0?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;d0?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 .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&&s0&&-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;a0&&""===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;s3?"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;a1&&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;a0&&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;o0?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;l0&&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=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&&s0&&-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&&s0&&-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;o1&&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-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;o0)for(var a=0;a0&&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;o0})})).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;r0&&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&&h0?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")-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 e0?y/h:1/0));if(n.props.verifyMemoryNum&&"\u5185\u5b58"==o?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.memoryNumber0&&(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-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-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;a0?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 .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 ea},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;a0){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=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;a0&&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 .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=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=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 .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-]*)+(? 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;a65534)&&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;a65534)&&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;l0?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;n0){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=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=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-1?function e(t,a){for(var n=void 0,o=0;o-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;n1||"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 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;n10)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;l0&&"2"===o.state.stepStatus){for(var S=0;Sdocument.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;ds.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(!(er.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;u0&&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;le||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&&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.x0)for(var f=0;f1&&void 0!==arguments[1]?arguments[1]:"-1";if(!Array.isArray(t))return[];for(var n=[],o=void 0,s=0;s0&&(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 .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.width0?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 .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;n0?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;r0?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 .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;o1&&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;n0?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 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;t0?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=e.length&&n.setState({dataSource:[],newDataSource:[]});var o=10*t;o>=e.length&&(o=e.length);for(var s=[],r=a;r0?(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&&n0){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;n0&&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;a0){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;s0?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;r0){var t=[];if(e.projectGroupAdmin[0].userId)for(var a=0;e&&e.projectGroupAdmin&&a1&&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=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=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&&n0?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;o0){var a=[];if(t)a.push({projectId:n.projectId,userId:t,userRoles:e});else for(var o=0;o0?"":"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&&a0?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&&a0?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=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;a0){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-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;o0?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=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;n0)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=[];a40?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;u0?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=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;s0){a=t.id?a+"#"+t.id:a;for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:"",s=0;s0?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;r0?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=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 ep&&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;i0)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;o1&&(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;o0&&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"]&&o0?(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;a0?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-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"]&&o0?(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;o0?(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()[\]\\.,;:\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;cf)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;g0&&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;o0?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;c0&&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&&n1&&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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n 403\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n \u7f16\u7ec4 10\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:''});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:''});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:''});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:''});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:''});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:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:''});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:''});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:''});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:''});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:'\r\n \u6dfb\u52a0\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u63a5\u53e3\u53d8\u66f4\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u7f16\u7ec4 14\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u6d88\u606f\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n'});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:'\r\n \r\n'});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:'\r\n \r\n \r\n'});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:'\r\n \r\n'});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:'\r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/cloese\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n'});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:'\r\n \u89c4\u683c\u8c03\u6574\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:''});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:'\r\n \r\n \r\n'});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:'\u8d44\u6e90 17'});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:'\r\n \r\n \r\n \r\n'});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:''});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u6570\u636e\u5206\u53d1\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u7f16\u7ec4 4\r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n\r\n'});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:''});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:'\r\n \r\n'});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:'\r\n \r\n'});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:'\r\n \r\n'});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:''});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:'\r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 57.1 (83088) - https://sketch.com --\x3e\r\n Group 4\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/ \u6269\u7f29\u5bb9\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n'});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:''});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:'\r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u6a21\u578b\u8bad\u7ec3\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n ICON/\u6388\u6743\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u76d1\u63a7\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n'});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:'\r\n \r\n'});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:''});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:''});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n ICON/\u6807\u7b7e\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n ICON/\u6807\u6ce8\u4efb\u52a1\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u955c\u50cf\u955c\u50cf\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n icon/\u6570\u636e\u51c6\u5907\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u8c03\u5ea6\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u5206\u5e03\u5f0f\u5b58\u50a8\r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u5206\u7c7b\u6807\u7b7e\u7ba1\u7406\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/FTP\u914d\u7f6e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u670d\u52a1\u4ee3\u7801\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u63a8\u7406\u955c\u50cf\u7ba1\u7406\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n icon/\u9879\u76ee\u6982\u8ff0\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u57fa\u7840\u955c\u50cf\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u89d2\u8272\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u4e5d\u5929\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u5e94\u7528\u7ba1\u7406\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u5b66\u4ef6\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u79bb\u7ebf\u63a8\u7406\u4efb\u52a1\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:''});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u6a21\u578b\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n Icon/\u63a8\u7406\u670d\u52a1\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n icon/\u6570\u636e\u5f00\u53d1\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u6a21\u578b\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n ICON/\u6a21\u578b\u914d\u7f6e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u5185\u90e8\u670d\u52a1API\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n icon/AI\u670d\u52a1\u8fd0\u8425\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u6570\u636e\u5e93\u914d\u7f6e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n ICON/\u6570\u636e\u63a2\u7d22\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n ICON/\u6570\u636e\u9884\u5904\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n ICON/\u6570\u636e\u6e90\u914d\u7f6e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u4e13\u533a\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u7528\u6237\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u8bad\u7ec3\u955c\u50cf\u7ba1\u7406\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u7cfb\u7edf\u516c\u544a\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u7528\u6237\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u7528\u6237\u7ec4\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u5e94\u7528\u5206\u7c7b\u914d\u7f6e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n ICON/\u5728\u7ebf\u63a8\u7406\u670d\u52a1\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u7f16\u7ec4\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n \u65e0\u6570\u636e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u7f16\u7ec4 6\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u7f16\u7ec4 12\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u7f16\u7ec4 8\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 57.1 (83088) - https://sketch.com --\x3e\r\n \u4e0b\u7ebf\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u9879\u76ee\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u7f16\u7ec4 5\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u5207\u6362\u9879\u76ee\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n \u9879\u76ee\u6570\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n'});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:'\r\n ICON/\u53d1\u5e03\u5728\u7ebf\u63a8\u7406\u670d\u52a1\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u53d1\u5e03\u5931\u8d25\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u53d1\u5e03\u6210\u529f\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n'});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:'\r\n ICON/\u63a8\u7406\u8d44\u6e90\u5229\u7528\u7387\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n \u63a8\u7406\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/ \u6269\u7f29\u5bb9\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n'});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:'\r\n \u91cd\u542f\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n \u8fd0\u884c\u5b9e\u4f8b\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:''});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:'\r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 57.1 (83088) - https://sketch.com --\x3e\r\n \u5f62\u72b6\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u5206\u4eab\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u9000\u51fa\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u7ed3\u6784\u5316\u6570\u636e\u5f00\u53d1\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u542f\u52a8\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u7cfb\u7edf\u8bbe\u7f6e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u8bad\u7ec3\u8d44\u6e90\u5229\u7528\u7387\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n \u8bad\u7ec3\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u4e2a\u4eba\u8bbe\u7f6e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u5347\u7ea7\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u4e2a\u4eba\u4e2d\u5fc3\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n \u7528\u6237\u6570\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n \r\n \r\n \r\n'});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:'\r\n \u7f16\u7ec4 7\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u9879\u76ee\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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:'\r\n \x3c!-- Generator: Sketch 60 (88103) - https://sketch.com --\x3e\r\n icon/\u8d44\u6e90\u7ba1\u7406\r\n Created with Sketch.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});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;a0){var t=p("root.datasource.adminRoles");if(t){for(var a=!1,n=t.split(","),s=0;st&&(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;on)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&&m0?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.lengthe.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;l0&&r.push(i[t])},c=0;c0&&s.push(d[t]),l.field=s};for(c=0;c0?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=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=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=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]]]);