(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[6],{"+e4k":function(e,t,n){"use strict";var a=n("tAuX"),l=n("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("g9YV");var u=l(n("wCAj"));n("IzEo");var r=l(n("bx4M"));n("miYZ");var d=l(n("tsqr"));n("5NDa");var i=l(n("5rEg"));n("OaEy");var o=l(n("2fM7")),f=a(n("q1tI")),v=n("Hx5s"),c=n("MuoO"),p=l(n("he5r")),E=function(e){var t=e.dispatch,n=e.environment,a=function(e){return e._id===p.default.environment.UPDATE_STATS_CRON?f.default.createElement(o.default,{value:e.value,style:{width:"200px"},onChange:c(p.default.inputType.SELECT,e)},f.default.createElement(o.default.Option,{value:"0 0/5 * * * *"},"\u6bcf5\u5206\u949f"),f.default.createElement(o.default.Option,{value:"0 0/10 * * * *"},"\u6bcf10\u5206\u949f"),f.default.createElement(o.default.Option,{value:"0 0/30 * * * *"},"\u6bcf30\u5206\u949f"),f.default.createElement(o.default.Option,{value:"0 0 * * * *"},"\u6bcf1\u5c0f\u65f6"),f.default.createElement(o.default.Option,{value:"0 0 0/6 * * *"},"\u6bcf6\u5c0f\u65f6"),f.default.createElement(o.default.Option,{value:"0 0 0/12 * * *"},"\u6bcf12\u5c0f\u65f6"),f.default.createElement(o.default.Option,{value:"0 0 0 * * *"},"\u6bcf\u5929")):e._id===p.default.environment.ENABLE_CHROME_DEBUG?f.default.createElement(o.default,{value:e.value,style:{width:"200px"},onChange:c(p.default.inputType.SELECT,e)},f.default.createElement(o.default.Option,{value:"Y"},"\u5f00\u542f"),f.default.createElement(o.default.Option,{value:"N"},"\u5173\u95ed")):f.default.createElement(i.default,{value:e.value,style:{width:"200px"},onChange:c(p.default.inputType.INPUT,e),onBlur:E(e),placeholder:e.label})},l=[{title:"\u53d8\u91cf\u540d",dataIndex:"label",key:"label",width:"180px"},{title:"\u53d8\u91cf\u503c",dataIndex:"value",key:"value",width:"180px",render:function(e,t){return a(t)}}],c=function(e,a){return function(l){e===p.default.inputType.SELECT?(a.value=l,E(a)()):a.value=l.target.value;var u=n.environments?n.environments.map(function(e){return e._id===a._id&&(e.value=a.value),e}):[];t({type:"environment/saveEnvironmentList",payload:u})}},E=function(e){return function(){t({type:"environment/saveEnvironment",payload:e}),d.default.success("\u4fdd\u5b58\u6210\u529f, \u8bf7\u91cd\u542f\u670d\u52a1\u5668\u4f7f\u7cfb\u7edf\u8bbe\u7f6e\u751f\u6548"),TDAPP.onEvent("\u7cfb\u7edf\u8bbe\u7f6e-\u66f4\u65b0\u8bbe\u7f6e")}};return(0,f.useEffect)(function(){t&&t({type:"environment/fetchEnvironmentList"})},[]),TDAPP.onEvent("\u7cfb\u7edf\u8bbe\u7f6e-\u8bbf\u95ee\u9875\u9762"),f.default.createElement(v.PageHeaderWrapper,null,f.default.createElement(r.default,null,f.default.createElement(u.default,{dataSource:n.environments?n.environments.filter(function(e){return![p.default.environment.WECHAT_ACCESS_TOKEN].includes(e._id||"")}):[],columns:l,rowKey:function(e){return e._id}})))},m=(0,c.connect)(function(e){var t=e.environment;return{environment:t}})(E);t.default=m}}]);