(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[23],{UXIQ:function(e,a,t){"use strict";var l=t("tAuX"),n=t("g09b");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,t("+L6B");var d=n(t("2/Rp"));t("5NDa");var i=n(t("5rEg"));t("sRBo");var u=n(t("kaz8"));t("IzEo");var r=n(t("bx4M")),s=n(t("p0pE")),o=n(t("2Taf")),f=n(t("vZ4D")),c=n(t("l4Ni")),p=n(t("ujKo")),m=n(t("MhPg"));t("y8nQ");var g=n(t("Vl3Y")),b=l(t("q1tI")),h=t("y1Nh"),v=t("MuoO"),y=n(t("QyDL")),E=t("Y2fQ"),A=function(e,a,t,l){var n,d=arguments.length,i=d<3?a:null===l?l=Object.getOwnPropertyDescriptor(a,t):l;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(e,a,t,l);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(i=(d<3?n(i):d>3?n(a,t,i):n(a,t))||i);return d>3&&i&&Object.defineProperty(a,t,i),i},M=g.default.Item,V=function(e){return Object.keys(e).map(function(a){return e[a]}).join(",")},O=function(e){function a(){var e;return(0,o.default)(this,a),e=(0,c.default)(this,(0,p.default)(a).apply(this,arguments)),e.state={updateModalVisible:!1,formValues:{},updateFormValues:{id:0,value:""}},e.columns=[{title:(0,E.formatMessage)({id:"Name"}),dataIndex:"name"},{title:"\u503c",dataIndex:"value"},{title:(0,E.formatMessage)({id:"Handle"}),width:110,render:function(a,t){return b.default.createElement(b.Fragment,null,b.default.createElement("a",{onClick:function(){return e.handleUpdateModalVisible(!0,t)}},(0,E.formatMessage)({id:"Edit"})))}}],e.handleStandardTableChange=function(a,t,l){var n=e.props.dispatch,d=e.state.formValues,i=Object.keys(t).reduce(function(e,a){var l=(0,s.default)({},e);return l[a]=V(t[a]),l},{}),u=(0,s.default)({currentPage:a.current,pageSize:a.pageSize},d,i);l.field&&(u.sorter="".concat(l.field,"_").concat(l.order)),n({type:"adminAndconfigAndindex/fetch",payload:u})},e.handleUpdateModalVisible=function(a,t){e.setState({updateModalVisible:!!a,updateFormValues:t||{id:0,value:""}})},e.handleUpdate=function(a){var t=e.props.dispatch;t({type:"adminAndconfigAndindex/update",payload:a}),e.handleUpdateModalVisible()},e.handleSubmit=function(a){var t=e.props,l=t.adminAndconfigAndindex.data,n=t.dispatch,d=t.form;a.preventDefault(),d.validateFieldsAndScroll(function(e,a){e||Object.keys(a).forEach(function(e){a[e]!==l.list[e].value&&n({type:"adminAndconfigAndindex/update",payload:{id:e,value:a[e]}})})})},e}return(0,m.default)(a,e),(0,f.default)(a,[{key:"componentDidMount",value:function(){var e=this.props.dispatch;e({type:"adminAndconfigAndindex/fetch"})}},{key:"render",value:function(){var e=this.props,a=e.adminAndconfigAndindex.data,t=e.form.getFieldDecorator,l=this.state,n=l.updateModalVisible,s=l.updateFormValues,o={handleUpdateModalVisible:this.handleUpdateModalVisible,handleUpdate:this.handleUpdate},f={labelCol:{xs:{span:24},sm:{span:7}},wrapperCol:{xs:{span:24},sm:{span:12},md:{span:10}}},c={wrapperCol:{xs:{span:24,offset:0},sm:{span:10,offset:7}}};return 0===a.list.length?b.default.createElement(h.PageHeaderWrapper,null):b.default.createElement(h.PageHeaderWrapper,null,b.default.createElement(r.default,{bordered:!1},b.default.createElement(g.default,{onSubmit:this.handleSubmit,hideRequiredMark:!0,style:{marginTop:8}},b.default.createElement(M,Object.assign({},f,{label:(0,E.formatMessage)({id:"Type"})}),t("204",{initialValue:a.list[204].value})(b.default.createElement(u.default.Group,null,b.default.createElement(u.default,{value:"public"},(0,E.formatMessage)({id:"Local"})),b.default.createElement(u.default,{value:"oss_uploads"},(0,E.formatMessage)({id:"Aliyun OSS"}))))),b.default.createElement(M,Object.assign({},f,{label:(0,E.formatMessage)({id:"Aliyun AccessKeyID"})}),t("200",{initialValue:a.list[200].value})(b.default.createElement(i.default,null))),b.default.createElement(M,Object.assign({},f,{label:(0,E.formatMessage)({id:"Aliyun AccessKeySecret"})}),t("201",{initialValue:a.list[201].value})(b.default.createElement(i.default,null))),b.default.createElement(M,Object.assign({},f,{label:(0,E.formatMessage)({id:"Aliyun BUCKET"})}),t("202",{initialValue:a.list[202].value})(b.default.createElement(i.default,null))),b.default.createElement(M,Object.assign({},f,{label:(0,E.formatMessage)({id:"Aliyun ENDPOINT"})}),t("203",{initialValue:a.list[203].value})(b.default.createElement(i.default,null))),b.default.createElement(M,Object.assign({},c,{style:{marginTop:32}}),b.default.createElement(d.default,{type:"primary",htmlType:"submit"},(0,E.formatMessage)({id:"Submit"}))))),b.default.createElement(y.default,Object.assign({},o,{updateModalVisible:n,updateFormValues:s})))}}]),a}(b.Component);O=A([(0,v.connect)(function(e){var a=e.adminAndconfigAndindex,t=e.loading;return{adminAndconfigAndindex:a,loading:t.models.adminAndconfigAndindex}})],O);var j=g.default.create()(O);a.default=j}}]);