mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-12-13 02:20:41 +01:00
aa6520daac
* Added frontend development files/environment * More items-categories related removals * Improvements in pages templates (inc. static pages) * Improvements in video player * Added empty home page message + cta * Updates in media, playlist and management pages * Improvements in material icons font loading * Replaced media & playlists links in frontend dev-env * frontend package version update * chnaged frontend dev url port * static files update * Changed default position of theme switcher * enabled frontend docker container
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)},u={timeout:null,maxContentLength:null},!e){n.next=8;break}return n.next=6,(0,r.get)(t,u).then(a).catch(c||null);case 6:n.next=9;break;case 8:(0,r.get)(t,u).then(a).catch(c||null);case 9:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function l(n,t,e,r,o,i){return f.apply(this,arguments)}function f(){return(f=u(regeneratorRuntime.mark((function n(t,e,o,i,u,a){var c,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l=function(n){a instanceof Function&&a(n)},c=function(n){u instanceof Function&&u(n)},e=e||{},!i){n.next=8;break}return n.next=6,(0,r.post)(t,e,o||null).then(c).catch(l||null);case 6:n.next=9;break;case 8:(0,r.post)(t,e,o||null).then(c).catch(l||null);case 9:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function s(n,t,e,r,o,i){return p.apply(this,arguments)}function p(){return(p=u(regeneratorRuntime.mark((function n(t,e,o,i,u,a){var c,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l=function(n){a instanceof Function&&a(n)},c=function(n){u instanceof Function&&u(n)},e=e||{},!i){n.next=8;break}return n.next=6,(0,r.put)(t,e,o||null).then(c).catch(l||null);case 6:n.next=9;break;case 8:(0,r.put)(t,e,o||null).then(c).catch(l||null);case 9:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function v(n,t,e,r,o){return d.apply(this,arguments)}function d(){return(d=u(regeneratorRuntime.mark((function n(t,e,r,i,u){var a,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=function(n){u instanceof Function&&u(n)},a=function(n){i instanceof Function&&i(n)},e=e||{},!r){n.next=8;break}return n.next=6,o().delete(t,e||null).then(a).catch(c||null);case 6:n.next=9;break;case 8:o().delete(t,e||null).then(a).catch(c||null);case 9:case"end":return n.stop()}}),n)})))).apply(this,arguments)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.m=t,n=[],r.O=function(t,e,o,i){if(!e){var u=1/0;for(l=0;l<n.length;l++){e=n[l][0],o=n[l][1],i=n[l][2];for(var a=!0,c=0;c<e.length;c++)(!1&i||u>=i)&&Object.keys(r.O).every((function(n){return r.O[n](e[c])}))?e.splice(c--,1):(a=!1,i<u&&(u=i));a&&(n.splice(l--,1),t=o())}return t}i=i||0;for(var l=n.length;l>0&&n[l-1][2]>i;l--)n[l]=n[l-1];n[l]=[e,o,i]},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,{a:t}),t},r.d=function(n,t){for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.j=40,function(){var n={40:0};r.O.j=function(t){return 0===n[t]};var t=function(t,e){var o,i,u=e[0],a=e[1],c=e[2],l=0;for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var f=c(r);for(t&&t(e);l<u.length;l++)i=u[l],r.o(n,i)&&n[i]&&n[i][0](),n[u[l]]=0;return r.O(f)},e=self.webpackChunkmediacms_frontend=self.webpackChunkmediacms_frontend||[];e.forEach(t.bind(null,0)),e.push=t.bind(null,e.push.bind(e))}();var o=r.O(void 0,[431],(function(){return r(4938)}));o=r.O(o)}(); |