1 line
6.4 KiB
JavaScript
1 line
6.4 KiB
JavaScript
(this.webpackJsonp=this.webpackJsonp||[]).push([[209],{"9C/b":function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),a=n("17x9"),i=n.n(a),c=n("m1lR"),p=n.n(c),s=n("4p7I"),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a=function(e){var t=function(t){var n=t.wrappedComponentRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return o.a.createElement(s.a,{children:function(t){return o.a.createElement(e,l({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i.a.func},p()(t,e)}},m1lR:function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a=Object.defineProperty,i=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,l=s&&s(Object);e.exports=function e(t,n,u){if("string"!=typeof n){if(l){var f=s(n);f&&f!==l&&e(t,f,u)}var m=i(n);c&&(m=m.concat(c(n)));for(var g=0;g<m.length;++g){var b=m[g];if(!(r[b]||o[b]||u&&u[b])){var h=p(n,b);try{a(t,b,h)}catch(e){}}}return t}return t}},nsQ0:function(e,t,n){},qmW9:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("q1tI"),o=n.n(r),a=n("Ozcj"),i=n("sYIF"),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=window.$;function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return function(n){function r(e){p(this,r);var t=s(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.onDelegateClick=function(e){var n=e.target.src||e.target.getAttribute("src")||e.target.getAttribute("href"),r=e.target.innerHTML.trim();if(Object(i.bb)(n.trim())||Object(i.bb)(r)||"IMG"==e.target.tagName)return-1===n.indexOf("/images/avatars/User")&&-1===n.indexOf("kindeditor/plugins/emoticons")&&t.setState({showImage:!0,imageSrc:n}),e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.originalEvent.preventDefault(),!1},t.onImageLayerClose=function(){t.setState({showImage:!1,imageSrc:""})},t.MdifHasAnchorJustScorll=function(){var e=decodeURI(t.props.location.hash).replace("#","");if(e){var n=document.getElementsByName(e);n&&0!=n.length&&n[n.length-1].scrollIntoView()}},t.state={showImage:!1,imageSrc:""},t}return l(r,n),c(r,[{key:"componentDidMount",value:function(){var t=this;this.props.wrappedComponentRef&&this.props.wrappedComponentRef(this.refs.wrappedComponentRef),setTimeout((function(){u(e.parentSelector||".commentsDelegateParent").delegate(e.imgSelector||".J_Comment_Reply .comment_content img, .J_Comment_Reply .childrenCommentsView img","click",t.onDelegateClick)}),1200)}},{key:"componentWillUnmount",value:function(){u(e.parentSelector||".commentsDelegateParent","click",this.onDelegateClick)}},{key:"render",value:function(){return this.MdifHasAnchorJustScorll(),o.a.createElement(o.a.Fragment,null,o.a.createElement(a.a,Object.assign({},this.state,{onImageLayerClose:this.onImageLayerClose})),o.a.createElement(t,Object.assign({},this.props,{ref:"wrappedComponentRef"})))}}]),r}(r.Component)}}},vabz:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n.n(r),a=n("jKe7"),i=n("2INN"),c=n("9C/b"),p=n("sYIF"),s=n("1thW"),l=n("5A3O"),u=(n("nsQ0"),n("CnBM")),f=n.n(u),m=n("HUFq"),g=n("qmW9"),b=(n("vDqi"),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}());function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=f()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(3),n.e(4),n.e(129)]).then(n.bind(null,"MByq"))},loading:m.a}),O=f()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(5),n.e(171)]).then(n.bind(null,"9hAI"))},loading:m.a}),v=f()({loader:function(){return n.e(178).then(n.bind(null,"NUct"))},loading:m.a}),j=function(e){function t(){return h(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),b(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"newMain clearfix"},o.a.createElement(a.a,this.props,o.a.createElement(i.a,{path:"/projects/:projectsType/new",render:function(t){return o.a.createElement(d,Object.assign({},e.props,t,e.state))}}),o.a.createElement(i.a,{path:"/projects/:projectsId",render:function(t){return o.a.createElement(v,Object.assign({},e.props,t,e.state))}}),o.a.createElement(i.a,{exact:!0,path:"/projects",render:function(t){return o.a.createElement(O,Object.assign({},e.props,t,e.state))}}),o.a.createElement(i.a,{exact:!0,path:"/",render:function(t){return o.a.createElement(O,Object.assign({},e.props,t,e.state))}})))}}]),t}(r.Component);t.default=Object(c.a)(Object(g.a)({imgSelector:".imageLayerParent img, .imageLayerParent .imageTarget",parentSelector:".newMain"})(Object(s.a)()(Object(p.v)()(Object(l.a)(j)))))}}]); |