mediacms/static/js/liked.js

1 line
12 KiB
JavaScript
Raw Normal View History

!function(){"use strict";var t={1513:function(t,e,n){var r=n(2667),o=(n(5101),n(5466)),i=n(3074),u=n.n(i),a=n(1346),c=n(2880),l=n(8204),f=n(4426),s=n(9174),p=n(5261),h=(n(6116),n(2259)),y=n(612),d=n(5464);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?w(t):e}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(8170);var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(c,t);var e,n,r,i,u=(r=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_(r);if(i){var n=_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return g(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this,t,"author-liked")).state={resultsCount:null},e.getCountFunc=e.getCountFunc.bind(w(e)),e}return e=c,(n=[{key:"getCountFunc",value:function(t){this.setState({resultsCount:t})}},{key:"pageContent",value:function(){var t=this;return[this.state.author?o.createElement(y.Z,{key:"ProfilePagesHeader",author:this.state.author,type:"liked"}):null,this.state.author?o.createElement(d.Z,{key:"ProfilePagesContent"},o.createElement(a.k,null,(function(e){return o.createElement(s._,{title:t.props.title+(null!==t.state.resultsCount?" ("+t.state.resultsCount+")":""),className:"items-list-ver"},o.createElement(p.J,{itemsCountCallback:t.getCountFunc,requestUrl:e.user.liked,hideAuthor:!f.Z.get("config-media-item").displayAuthor,hideViews:!f.Z.get("config-media-item").displayViews,hideDate:!f.Z.get("config-media-item").displayPublishDate,canEdit:!1}))}))):null]}}])&&b(e.prototype,n),c}(h.G);h.G.propTypes={title:u().string.isRequired},h.G.defaultProps={title:"My favorites"};var P=n(8024);function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e,n){return e&&D(t.prototype,e),n&&D(t,n),t}function R(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=F(t);if(e){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}fun