(this.webpackJsonph5=this.webpackJsonph5||[]).push([[162],{1268:function(e,t,n){},2370:function(e,t,n){"use strict";n.r(t);var r=n(8),o=n(7),a=n(10),i=n(9),c=n(11),u=n(0),l=n.n(u),s=(n(1268),n(264),n(28)),p=n(695),f=n(192),d=n(66),b=n(14),y=n(15),h=n.n(y),v=n(6),m=n.n(v),O=h()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(199)]).then(n.bind(null,2343))},loading:b.a}),g=h()({loader:function(){return n.e(214).then(n.bind(null,1949))},loading:b.a}),j=h()({loader:function(){return Promise.all([n.e(3),n.e(5),n.e(6),n.e(7),n.e(91)]).then(n.bind(null,2247))},loading:b.a}),w=h()({loader:function(){return n.e(215).then(n.bind(null,2248))},loading:b.a}),C=function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(a.a)(this,Object(i.a)(t).call(this,e))).getDetail=function(e){var t="/libraries/".concat(e,".json");m.a.get(t).then((function(e){e&&(n.setState({CaseDetail:e.data,praise_count:e.data.praise_count,cover:e.data.cover,creator:e.data.creator,operation:e.data.operation,user_praised:e.data.operation.user_praised,tags:e.data.tags,attachments:e.data.attachments}),window.document.title=e.data.title)})).catch((function(e){}))},n.praisePoint=function(e){var t=n.state.praise_count;m.a.post("/praise_tread/like.json",{object_id:e,object_type:"library"}).then((function(e){e&&n.setState({praise_count:parseInt(t)+1,user_praised:!0})})).catch((function(e){}))},n.state={praise_count:0,CaseDetail:void 0,cover:void 0,creator:void 0,operation:void 0,tags:void 0,attachments:void 0,user_praised:!0},n}return Object(c.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{className:"newMain"},l.a.createElement(d.e,this.props,l.a.createElement(d.c,{exact:!0,path:"/moop_cases",render:function(t){return l.a.createElement(O,Object.assign({},e.props,t,e.state))}}),l.a.createElement(d.c,{exact:!0,path:"/moop_cases/new",render:function(t){return l.a.createElement(j,Object.assign({},e.props,t,e.state))}}),l.a.createElement(d.c,{exact:!0,path:"/moop_cases/:caseID",render:function(t){return l.a.createElement(g,Object.assign({},e.props,t,e.state,{getDetail:e.getDetail,praisePoint:e.praisePoint}))}}),l.a.createElement(d.c,{exact:!0,path:"/moop_cases/:caseID/edit",render:function(t){return l.a.createElement(j,Object.assign({},e.props,t,e.state,{getDetail:e.getDetail}))}}),l.a.createElement(d.c,{exact:!0,path:"/moop_cases/:caseID/publish_success",render:function(t){return l.a.createElement(w,Object.assign({},e.props,t,e.state,{getDetail:e.getDetail}))}})))}}]),t}(u.Component);t.default=Object(f.a)()(Object(s.w)()(Object(p.a)(C)))},462:function(e,t,n){"use strict";var r=n(0),o=n(1),a=n(182),i=n(12),c=n.n(i),u=n(75),l=n.n(u),s=n(77);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return(d=Object.assign||function(e){for(var t=1;t