mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-28 11:13:36 +01:00
1 line
7.3 KiB
JavaScript
1 line
7.3 KiB
JavaScript
|
!function(){"use strict";var n,t={4938:function(n,t,e){var r=e(2541),o=e(4982);(0,r.X)("page-profile-media",o.a)},7446:function(n,t,e){e(2070),e(5466);var r=e(3074),o=e.n(r);e(2299),o().string.isRequired,o().string.isRequired,o().func.isRequired},2915:function(n,t,e){e(2004),e(8407),e(6394),e(8288),e(5677),e(2129),e(4655),e(288),e(4458),e(3675);var r=e(5466),o=e(3074),i=e.n(o),u=e(2299);function a(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function c(n){var t,e,o=(t=(0,r.useState)(n.active),e=2,function(n){if(Array.isArray(n))return n}(t)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var r,o,i=[],u=!0,a=!1;try{for(e=e.call(n);!(u=(r=e.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(n){a=!0,o=n}finally{try{u||null==e.return||e.return()}finally{if(a)throw o}}return i}}(t,e)||function(n,t){if(n){if("string"==typeof n)return a(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(n,t):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],c=o[1];return r.createElement("div",{className:"mi-filters-toggle"},r.createElement("button",{className:i?"active":"","aria-label":"Filter",onClick:function(){c(!i),void 0!==n.onClick&&n.onClick()}},r.createElement(u.O,{type:"filter_list"}),r.createElement("span",{className:"filter-button-label"},r.createElement("span",{className:"filter-button-label-text"},"FILTERS"))))}c.propTypes={onClick:i().func,active:i().bool},c.defaultProps={active:!1}},4234:function(n,t,e){e.d(t,{CircleIconButton:function(){return r.M},MaterialIcon:function(){return o.O},NavigationContentApp:function(){return i.o},NavigationMenuList:function(){return u.S},Notifications:function(){return a.T},PopupMain:function(){return c.W8},PopupTop:function(){return c.HF},SpinnerLoader:function(){return l.i},UserThumbnail:function(){return f.q}});var r=e(7714),o=(e(7446),e(2915),e(2299)),i=e(2917),u=e(5671),a=e(2436),c=(e(5517),e(940)),l=e(6309),f=e(6142)},6191:function(n,t,e){e.d(t,{PageHeader:function(){return r.m},PageMain:function(){return o.r},PageSidebar:function(){return i.$}});var r=e(6006),o=e(9198),i=e(2947);e(1542)},1450:function(n,t,e){function r(){var n,t,e,r=null;if(document.cookie&&""!==document.cookie)for(t=document.cookie.split(";"),n=0;n<t.length;){if("csrftoken="===(e=t[n].trim()).substring(0,10)){r=decodeURIComponent(e.substring(10));break}n+=1}return r}e.d(t,{o:function(){return r}}),e(2322),e(9268),e(3233)},1397:function(n,t,e){e.d(t,{U:function(){return i}}),e(2322),e(3296),e(6394),e(4669);var r=e(137),o=e.n(r);function i(n,t){var e=o()(n,{});return""!==e.origin&&"null"!==e.origin&&e.origin||(e=o()(t+"/"+n.replace(/^\//g,""),{})),e.toString()}},447:function(n,t,e){e.d(t,{A_:function(){return a},j0:function(){return l},GH:function(){return s},Jl:function(){return v}}),e(7588),e(6394),e(5334);var r=e(4559),o=e.n(r);function i(n,t,e,r,o,i,u){try{var a=n[i](u),c=a.value}catch(n){return void e(n)}a.done?t(c):Promise.resolve(c).then(r,o)}function u(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var u=n.apply(t,e);function a(n){i(u,r,o,a,c,"next",n)}function c(n){i(u,r,o,a,c,"throw",n)}a(void 0)}))}}function a(n,t,e,r){return c.apply(this,arguments)}function c(){return(c=u(regeneratorRuntime.mark((function n(t,e,o,i){var u,a,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=function(n){if(i instanceof Function){var t=n;if(void 0===n.response)t={type:"network",error:n};else if(void 0!==n.response.status)switch(n.response.status){case 401:t={type:"private",error:n,message:"Media is private"};break;case 400:t={type:"unavailable",error:n,message:"Media is unavailable"}}i(t)}},a=function(n){o instanceof Function&&o(n)},
|