(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"+e4k":function(A,o,n){"use strict";n.r(o);var L=n("IzEo"),D=n("bx4M"),y=n("g9YV"),P=n("wCAj"),I=n("miYZ"),M=n("tsqr"),K=n("5NDa"),j=n("5rEg"),U=n("OaEy"),a=n("2fM7"),O=n("q1tI"),F=n.n(O),T=n("Hx5s"),m=n("9kvl"),i=n("he5r"),e=n("nKUr"),R=n.n(e),h=function(E){var _=E.dispatch,s=E.environment,f=function(t){return t._id===i.a.environment.UPDATE_STATS_CRON?Object(e.jsxs)(a.a,{value:t.value,style:{width:"200px"},onChange:v(i.a.inputType.SELECT,t),children:[Object(e.jsx)(a.a.Option,{value:"0 0/5 * * * *",children:"\u6BCF5\u5206\u949F"}),Object(e.jsx)(a.a.Option,{value:"0 0/10 * * * *",children:"\u6BCF10\u5206\u949F"}),Object(e.jsx)(a.a.Option,{value:"0 0/30 * * * *",children:"\u6BCF30\u5206\u949F"}),Object(e.jsx)(a.a.Option,{value:"0 0 * * * *",children:"\u6BCF1\u5C0F\u65F6"}),Object(e.jsx)(a.a.Option,{value:"0 0 0/6 * * *",children:"\u6BCF6\u5C0F\u65F6"}),Object(e.jsx)(a.a.Option,{value:"0 0 0/12 * * *",children:"\u6BCF12\u5C0F\u65F6"}),Object(e.jsx)(a.a.Option,{value:"0 0 0 * * *",children:"\u6BCF\u5929"})]}):t._id===i.a.environment.ENABLE_CHROME_DEBUG?Object(e.jsxs)(a.a,{value:t.value,style:{width:"200px"},onChange:v(i.a.inputType.SELECT,t),children:[Object(e.jsx)(a.a.Option,{value:"Y",children:"\u5F00\u542F"}),Object(e.jsx)(a.a.Option,{value:"N",children:"\u5173\u95ED"})]}):Object(e.jsx)(j.a,{value:t.value,style:{width:"200px"},onChange:v(i.a.inputType.INPUT,t),onBlur:d(t),placeholder:t.label})},B=[{title:"\u53D8\u91CF\u540D",dataIndex:"label",key:"label",width:"180px"},{title:"\u53D8\u91CF\u503C",dataIndex:"value",key:"value",width:"180px",render:function(t,u){return f(u)}}],v=function(t,u){return function(C){t===i.a.inputType.SELECT?(u.value=C,d(u)()):u.value=C.target.value;var x=s.environments?s.environments.map(function(r){return r._id===u._id&&(r.value=u.value),r}):[];_({type:"environment/saveEnvironmentList",payload:x})}},d=function(t){return function(){_({type:"environment/saveEnvironment",payload:t}),M.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 Object(O.useEffect)(function(){_&&_({type:"environment/fetchEnvironmentList"})},[]),TDAPP.onEvent("\u7CFB\u7EDF\u8BBE\u7F6E-\u8BBF\u95EE\u9875\u9762"),Object(e.jsx)(T.a,{children:Object(e.jsx)(D.a,{children:Object(e.jsx)(P.a,{dataSource:s.environments?s.environments.filter(function(l){return![i.a.environment.WECHAT_ACCESS_TOKEN].includes(l._id||"")}):[],columns:B,rowKey:function(t){return t._id}})})})};o.default=Object(m.a)(function(c){var E=c.environment;return{environment:E}})(h)}}]);
