(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[6],{IEow:function(e,t,a){"use strict";var l=a("tAuX"),r=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("+L6B");var u=r(a("2/Rp"));a("7Kak");var d=r(a("9yH6"));a("IzEo");var n=r(a("bx4M")),o=r(a("2Taf")),f=r(a("vZ4D")),s=r(a("l4Ni")),i=r(a("ujKo")),c=r(a("MhPg"));a("5NDa");var m=r(a("5rEg"));a("y8nQ");var p=r(a("Vl3Y")),g=l(a("q1tI")),b=a("y1Nh"),y=a("MuoO"),E=a("Y2fQ"),v=r(a("C967")),h=r(a("ReNc")),M=r(a("RPD5")),j=r(a("G+o6")),I=a("N71U"),O=function(e,t,a,l){var r,u=arguments.length,d=u<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,a):l;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)d=Reflect.decorate(e,t,a,l);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(d=(u<3?r(d):u>3?r(t,a,d):r(t,a))||d);return u>3&&d&&Object.defineProperty(t,a,d),d},w=p.default.Item,L=m.default.TextArea,k=function(e){function t(){var e;return(0,o.default)(this,t),e=(0,s.default)(this,(0,i.default)(t).apply(this,arguments)),e.handleStore=function(){var t=e.props.dispatch;t({type:"adminArticle/add",payload:e.props.form.getFieldsValue()})},e}return(0,c.default)(t,e),(0,f.default)(t,[{key:"render",value:function(){var e=this.props.form,t=e.getFieldDecorator;return g.default.createElement(b.PageHeaderWrapper,null,g.default.createElement(n.default,{bordered:!1},g.default.createElement(w,Object.assign({},I.formItemLayout,{label:(0,E.formatMessage)({id:"Category"})}),t("category_id",{rules:[{required:!0}]})(g.default.createElement(h.default,null))),g.default.createElement(w,Object.assign({},I.formItemLayout,{label:(0,E.formatMessage)({id:"Title"})}),t("title",{rules:[{required:!0}]})(g.default.createElement(m.default,null))),g.default.createElement(w,Object.assign({},I.formItemLayout,{label:(0,E.formatMessage)({id:"Author"})}),t("author",{rules:[{required:!0}]})(g.default.createElement(m.default,null))),g.default.createElement(w,Object.assign({},I.formItemLayout,{label:(0,E.formatMessage)({id:"Keywords"})}),t("keywords",{rules:[{required:!0}]})(g.default.createElement(m.default,null))),g.default.createElement(w,Object.assign({},I.formItemLayout,{label:(0,E.formatMessage)({id:"Tag"})}),t("tag_ids",{rules:[]})(g.default.createElement(v.default,null))),g.default.createElement(w,Object.assign({},I.formItemLayout,{label:(0,E.formatMessage)({id:"Cover"})}),t("cover",{rules:[]})(g.default.createElement(j.default,{apiUrl:"/api/articleImages"}))),g.default.createElement(w,Object.assign({},I.formItemLayout,{label:(0,E.formatMessage)({id:"Description"})}),t("description",{rules:[]})(g.default.createElement(L,null))),g.default.createElement(w,Object.assign({},I.formItemLayout,{label:(0,E.formatMessage)({id:"Content"})}),t("markdown",{rules:[{required:!0}]})(g.default.createElement(M.default,null))),g.default.createElement(w,Object.assign({},I.formItemLayout,{label:(0,E.formatMessage)({id:"Topping"})}),t("is_top",{rules:[{required:!0}]})(g.default.createElement(d.default.Group,null,g.default.createElement(d.default,{value:1},(0,E.formatMessage)({id:"Yes"})),g.default.createElement(d.default,{value:0},(0,E.formatMessage)({id:"No"}))))),g.default.createElement(u.default,{type:"primary",htmlType:"submit",onClick:this.handleStore},(0,E.formatMessage)({id:"Submit"}))))}}]),t}(g.Component);k=O([(0,y.connect)(function(e){var t=e.adminArticle;return{article:t.current_data}})],k);var q=p.default.create()(k);t.default=q}}]);