mediacms/static/js/index.js

1 wiersz
24 KiB
JavaScript

!function(){"use strict";var e={5227:function(e,t,n){var i=n(2667),r=(n(5101),n(5466)),o=n(3074),s=n.n(o),l=n(1589),a=n(1346),u=n(5809),c=n(3085),d=(n(6116),n(1088)),f=n(5953);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 h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(r,e);var t,n,i=(t=r,n=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(e){return!1}}(),function(){var e,i=w(t);if(n){var r=w(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return g(this,e)});function r(){return b(this,r),i.apply(this,arguments)}return r}((0,d.t)(f.g));S.defaultProps=m(m({},f.g.defaultProps),{},{pageItems:24});var _=n(4236),O=n(8204),x=n(4426);function k(e){return(k="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 R(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?I(e):t}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(d,e);var t,n,i,o,s=(i=d,o=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(e){return!1}}(),function(){var e,t=L(i);if(o){var n=L(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return j(this,e)});function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=s.call(this,e,"home")).state={loadedLatest:!1,visibleLatest:!1,loadedFeatured:!1,visibleFeatured:!1,loadedRecommended:!1,visibleRecommended:!1},t.onLoadLatest=t.onLoadLatest.bind(I(t)),t.onLoadFeatured=t.onLoadFeatured.bind(I(t)),t.onLoadRecommended=t.onLoadRecommended.bind(I(t)),t}return t=d,(n=[{key:"onLoadLatest",value:function(e){this.setState({loadedLatest:!0,visibleLatest:0<e})}},{key:"onLoadFeatured",value:function(e){this.setState({loadedFeatured:!0,visibleFeatured:0<e})}},{key:"onLoadRecommended",value:function(e){this.setState({loadedRecommended:!0,visibleRecommended:0<e})}},{key:"pageContent",value:function(){var e=this;return r.createElement(l.x,null,(function(t){return r.createElement(a.k,null,(function(n){return r.createElement(u.s,{className:"items-list-ver"},!x.Z.get("config-enabled").pages.featured||!x.Z.get("config-enabled").pages.featured.enabled||e.state.loadedFeatured&&!e.state.visibleFeatured?null:r.createElement(c.G,{title:e.props.featured_title,style:e.state.visibleFeatured?null:{display:"none"},viewAllLink:e.props.featured_view_all_link?t.featured:null},e.props.featured_hero_player?r.createElement(S,{firstItemViewer:!0,pageItems:30,maxItems:30,className:"feat-first-item",requestUrl:n.featured,itemsCountCallback:e.onLoadFeatured,hideViews:!x.Z.get("config-media-item").displayViews,hideAuthor:!x.Z.get("config-media-item").displayAuthor,hideDate:!x.Z.get("config-media-item").displayPublishDate}):r.createElement(_.J,{requestUrl:n.featured,itemsCountCallback:e.onLoadFeatured,hideViews:!x.Z.get("config-media-item").displayViews,hideAuthor:!x.Z.get("config-media-item").displayAuthor,hideDate:!x.Z.get("config-media-item").displayPublishDate})),!x.Z.get("config-enabled").pages.recommended||!x.Z.get("config-enabled").pages.recommended.enabled||e.state.loadedRecommended&&!e.state.visibleRecommended?null:r.createElement(c.G,{title:e.props.recommended_title,style:e.state.visibleRecommended?null:{display:"none"},viewAllLink:e.props.recommended_view_all_link?t.recommended:null},r.createElement(_.J,{requestUrl:n.recommended,itemsCountCallback:e.onLoadRecommended,hideViews:!x.Z.get("config-media-item").displayViews,hideAuthor:!x.Z.get("config-media-item").displayAuthor,hideDate:!x.Z.get("config-media-item").displayPublishDate})),e.state.loadedLatest&&!e.state.visibleLatest?null:r.createElement(c.G,{title:e.props.latest_title,style:e.state.visibleLatest?null:{display:"none"},viewAllLink:e.props.latest_view_all_link?t.latest:null},r.createElement(S,{pageItems:30,requestUrl:n.media,itemsCountCallback:e.onLoadLatest,hideViews:!x.Z.get("config-media-item").displayViews,hideAuthor:!x.Z.get("config-media-item").displayAuthor,hideDate:!x.Z.get("config-media-item").displayPublishDate})))}))}))}}])&&R(t.prototype,n),d}(O.T);C.propTypes={latest_title:s().string.isRequired,featured_title:s().string.isRequired,recommended_title:s().string.isRequired,latest_view_all_link:s().bool.isRequired,featured_view_all_link:s().bool.isRequired,recommended_view_all_link:s().bool.isRequired,featured_hero_player:s().bool.isRequired},C.defaultProps={featured_title:x.Z.get("config-options").pages.home.sections.featured.title,recommended_title:x.Z.get("config-options").pages.home.sections.recommended.title,latest_title:x.Z.get("config-options").pages.home.sections.latest.title,latest_view_all_link:!1,featured_view_all_link:!0,recommended_view_all_link:!0,featured_hero_player:!1},(0,i.X)("page-home",C)},4236:function(e,t,n){n.d(t,{J:function(){return x}}),n(5101);var i=n(5466),r=(n(6116),n(4426)),o=n(1395),s=n(8421),l=n(2431),a=n(8024);function u(e){return(u="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 c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=n(5953);function y(e){return(y="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 b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(r,e);var t,n,i=(t=r,n=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(e){return!1}}(),function(){var e,i=O(t);if(n){var r=O(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return _(this,e)});function r(){return w(this,r),i.apply(this,arguments)}return r}(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(b,e);var t,n,u,m,y=(u=b,m=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(e){return!1}}(),function(){var e,t=h(u);if(m){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function b(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(t=y.call(this,e)).state.displayNext=!1,t.state.displayPrev=!1,t.classname.listOuter="items-list-outer list-inline list-slider"+(e.className?" "+e.className:""),t.sliderRecalTimeout=null,t.inlineSlider=null,t.pendingChangeSlide=!0,t.nextSlide=t.nextSlide.bind(p(t)),t.prevSlide=t.prevSlide.bind(p(t)),t.updateSlider=t.updateSlider.bind(p(t)),t.onWinResize=t.onWinResize.bind(p(t)),t.onWinResizeUpdate=t.onWinResizeUpdate.bind(p(t)),t.onSidebarVisibilityChange=t.onSidebarVisibilityChange.bind(p(t),!1),t.resizeTimeout=null,t}return t=b,(n=[{key:"componentDidMount",value:function(){this.listHandler=new s.g(this.props.pageItems,this.props.maxItems,this.props.firstItemRequestUrl,this.props.requestUrl,this.onItemsCount,this.onItemsLoad),r.Z.on("window_resize",this.onWinResize),r.Z.on("changed_page_sidebar_visibility",this.onSidebarVisibilityChange)}},{key:"componentWillUnmount",value:function(){this.listHandler.cancelAll(),this.listHandler=null,r.Z.removeListener("window_resize",this.onWinResize),r.Z.removeListener("changed_page_sidebar_visibility",this.onSidebarVisibilityChange)}},{key:"onSidebarVisibilityChange",value:function(){clearTimeout(this.sliderRecalTimeout),this.sliderRecalTimeout=setTimeout(function(){this.updateSliderButtonsView(),this.sliderRecalTimeout=setTimeout(function(){this.sliderRecalTimeout=null,this.updateSlider()}.bind(this),50)}.bind(this),150)}},{key:"afterItemsLoad",value:function(){this.updateSlider(!0)}},{key:"updateSliderButtonsView",value:function(){this.setState({displayPrev:this.inlineSlider?this.inlineSlider.hasPreviousSlide():this.state.displayPrev,displayNext:this.inlineSlider?this.inlineSlider.hasNextSlide():this.state.displayNext})}},{key:"onWinResize",value:function(){null!==this.inlineSlider?(clearTimeout(this.resizeTimeout),(0,a.Ec)(this.refs.itemsListWrap,"resizing"),this.inlineSlider.updateDataStateOnResize(this.state.items.length,this.listHandler.loadedAllItems()),this.inlineSlider.scrollToCurrentSlide(),this.resizeTimeout=setTimeout(this.onWinResizeUpdate,200)):this.updateSlider(!1)}},{key:"onWinResizeUpdate",value:function(){this.inlineSlider.updateDataStateOnResize(this.state.items.length,this.listHandler.loadedAllItems()),this.inlineSlider.scrollToCurrentSlide(),(0,a.dt)(this.refs.itemsListWrap,"resizing"),this.resizeTimeout=null}},{key:"updateSlider",value:function(e){void 0!==this.refs.itemsListWrap&&(null===this.inlineSlider&&(this.inlineSlider=new o.Z(this.refs.itemsListWrap,".item")),this.inlineSlider.updateDataState(this.state.items.length,this.listHandler.loadedAllItems(),!e),!this.listHandler.loadedAllItems()&&this.inlineSlider.loadItemsToFit()?this.listHandler.loadItems(this.inlineSlider.itemsFit()):(this.updateSliderButtonsView(),this.pendingChangeSlide&&(this.pendingChangeSlide=!1,this.inlineSlider.scrollToCurrentSlide())))}},{key:"nextSlide",value:function(){this.inlineSlider.nextSlide(),this.updateSliderButtonsView(),!this.listHandler.loadedAllItems()&&this.inlineSlider.loadMoreItems()?(this.pendingChangeSlide=!0,this.listHandler.loadItems(this.inlineSlider.itemsFit())):this.inlineSlider.scrollToCurrentSlide()}},{key:"prevSlide",value:function(){this.inlineSlider.previousSlide(),this.updateSliderButtonsView(),this.inlineSlider.scrollToCurrentSlide()}},{key:"renderBeforeListWrap",value:function(){return this.state.displayPrev?i.createElement("span",{className:"previous-slide"},i.createElement(l.M,{buttonShadow:!0,onClick:this.prevSlide},i.createElement("i",{className:"material-icons"},"keyboard_arrow_left"))):null}},{key:"renderAfterListWrap",value:function(){return this.state.displayNext?i.createElement("span",{className:"next-slide"},i.createElement(l.M,{buttonShadow:!0,onClick:this.nextSlide},i.createElement("i",{className:"material-icons"},"keyboard_arrow_right"))):null}}])&&c(t.prototype,n),b}(m.g));x.defaultProps=v(v({},m.g.defaultProps),{},{pageItems:12})},1395:function(e,t,n){function i(e,t,n){return e.scrollLeft?1+Math.ceil(e.scrollLeft/t):n}function r(e,t){void 0!==e&&(this.data={dom:{wrapper:e,firstItem:e.querySelector(t)},item:{width:null}},this.data.item.width=this.data.dom.firstItem.offsetWidth,this.state={initedAllStateValues:!1,currentSlide:1,maxSlideIndex:null,slideItemsFit:null,slideItems:null,totalItems:null,wrapper:{width:null,scrollWidth:null}})}n.d(t,{Z:function(){return r}}),r.prototype.updateDataStateOnResize=function(e,t){this.data.item.width=this.data.dom.firstItem.offsetWidth,this.state.wrapper.width=this.data.dom.wrapper.offsetWidth,this.state.wrapper.scrollWidth=this.data.dom.wrapper.scrollWidth,this.state.slideItemsFit=Math.floor(this.state.wrapper.width/this.data.item.width),this.state.slideItems=Math.max(1,this.state.slideItemsFit),t&&this.state.slideItems<=this.state.slideItems&&(this.state.itemsLengthFit=this.state.slideItems),this.state.totalItems=e,this.state.maxSlideIndex=Math.max(this.state.totalItems-this.state.slideItemsFit+1),this.state.currentSlide=Math.min(this.state.currentSlide,this.state.maxSlideIndex||1)},r.prototype.updateDataState=function(e,t,n){!n&&this.state.initedAllStateValues||(this.state.initedAllStateValues=!0,this.state.wrapper.width=this.data.dom.wrapper.offsetWidth,this.state.wrapper.scrollWidth=this.data.dom.wrapper.scrollWidth,this.state.slideItemsFit=Math.floor(this.state.wrapper.width/this.data.item.width),this.state.slideItems=Math.max(1,this.state.slideItemsFit),t&&this.state.slideItems<=this.state.slideItems&&(this.state.itemsLengthFit=this.state.slideItems)),this.state.totalItems=e,this.state.maxSlideIndex=Math.max(1,this.state.totalItems-this.state.slideItemsFit+1),this.state.currentSlide=Math.min(this.state.currentSlide,this.state.maxSlideIndex)},r.prototype.nextSlide=function(){this.state.currentSlide=Math.min(i(this.data.dom.wrapper,this.data.item.width,this.state.currentSlide)+this.state.slideItems,this.state.maxSlideIndex)},r.prototype.previousSlide=function(){this.state.currentSlide=Math.max(1,i(this.data.dom.wrapper,this.data.item.width,this.state.currentSlide)-this.state.slideItems)},r.prototype.scrollToCurrentSlide=function(){this.data.dom.wrapper.scrollLeft=this.data.item.width*(this.state.currentSlide-1)},r.prototype.hasNextSlide=function(){return this.state.currentSlide<this.state.maxSlideIndex},r.prototype.hasPreviousSlide=function(){return 1<this.state.currentSlide},r.prototype.currentSlide=function(){return this.state.currentSlide},r.prototype.loadItemsToFit=function(){return 2*this.state.slideItemsFit>this.state.totalItems},r.prototype.loadMoreItems=function(){return this.state.currentSlide+this.state.slideItemsFit>=this.state.maxSlideIndex},r.prototype.itemsFit=function(){return this.state.slideItemsFit}},1088:function(e,t,n){n.d(t,{t:function(){return c}}),n(5101);var i=n(5466);function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(6116);var c=function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,r,c,d=(r=f,c=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(e){return!1}}(),function(){var e,t=u(r);if(c){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=d.call(this,e)).onClickLoadMore=t.onClickLoadMore.bind(a(t)),t}return t=f,(n=[{key:"onClickLoadMore",value:function(){this.listHandler.loadItems()}},{key:"renderAfterListWrap",value:function(){return 1>this.listHandler.totalPages()||this.listHandler.loadedAllItems()?null:i.createElement("button",{className:"load-more",onClick:this.onClickLoadMore},"SHOW MORE")}}])&&o(t.prototype,n),f}(e)}},1346:function(e,t,n){n.d(t,{k:function(){return s}});var i=n(5466),r=n(4547),o=i.createContext((0,r.v)(window.MediaCMS).api),s=o.Consumer;t.Z=o},2880:function(e,t,n){var i=n(5466),r=n(4547),o=i.createContext((0,r.v)(window.MediaCMS).member);o.Consumer,t.Z=o},9009:function(e,t,n){n(6394),n(5334),n(7588),n(4559),n(6028)},6203:function(e,t,n){n(2322),n(9268),n(3233),t.Z=function(){var e,t,n,i=null;if(document.cookie&&""!==document.cookie)for(t=document.cookie.split(";"),e=0;e<t.length;){if("csrftoken="===(n=t[e].trim()).substring(0,10)){i=decodeURIComponent(n.substring(10));break}e+=1}return i}},1712:function(e,t,n){n(6394),n(5334),n(7588);var i=n(4559);function r(e,t,n,i,r,o,s){try{var l=e[o](s),a=l.value}catch(e){return void n(e)}l.done?t(a):Promise.resolve(a).then(i,r)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function l(e){r(s,i,o,l,a,"next",e)}function a(e){r(s,i,o,l,a,"throw",e)}l(void 0)}))}}function s(){return(s=o(regeneratorRuntime.mark((function e(t,n,r,o){var s,l,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=function(e){if(o instanceof Function){var t=e;if(void 0===e.response)t={type:"network",error:e};else if(void 0!==e.response.status)switch(e.response.status){case 401:t={type:"private",error:e,message:"Media is private"};break;case 400:t={type:"unavailable",error:e,message:"Media is unavailable"}}o(t)}},l=function(e){r instanceof Function&&r(e)},s={timeout:null,maxContentLength:null},!n){e.next=8;break}return e.next=6,(0,i.get)(t,s).then(l).catch(a||null);case 6:e.next=9;break;case 8:(0,i.get)(t,s).then(l).catch(a||null);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}n(6028),t.Z=function(e,t,n,i){return s.apply(this,arguments)}},8420:function(e,t,n){n.d(t,{A_:function(){return i.Z},GH:function(){return r.Z},v$:function(){return o.Z},uf:function(){return s.Z},$4:function(){return l.Z},m5:function(){return a.Z}});var i=n(1712),r=(n(9752),n(84)),o=(n(9009),n(1438)),s=n(4135),l=n(3140),a=(n(1752),n(7514),n(1569),n(6203));n(7188)},9752:function(e,t,n){n(6394),n(5334),n(7588),n(4559),n(6028)},2701:function(e,t,n){n.d(t,{s:function(){return s}});var i=n(5466),r=n(3074),o=n.n(r);function s(e){return i.createElement("div",{className:(void 0===e.className||null===e.className?"":e.className+" ")+"media-list-header",style:e.style},i.createElement("h2",null,e.title),void 0===e.viewAllLink||null===e.viewAllLink?null:i.createElement("h3",null,i.createElement("a",{href:e.viewAllLink,title:e.viewAllText||e.viewAllLink},e.viewAllText||e.viewAllLink)))}s.propTypes={style:o().object,className:o().string,title:o().string.isRequired,viewAllLink:o().string,viewAllText:o().string},s.defaultProps={viewAllText:"VIEW ALL"}},3085:function(e,t,n){n.d(t,{G:function(){return l}});var i=n(5466),r=n(3074),o=n.n(r),s=n(2701);function l(e){return i.createElement("div",{className:(void 0===e.className||null===e.className?"":e.className+" ")+"media-list-row",style:e.style},void 0===e.title||null===e.title?null:i.createElement(s.s,{title:e.title,viewAllLink:e.viewAllLink,viewAllText:e.viewAllText}),e.children||null)}l.propTypes={style:o().object,className:o().string,title:o().string,viewAllLink:o().string,viewAllText:o().string}},5809:function(e,t,n){n.d(t,{s:function(){return s}});var i=n(5466),r=n(3074),o=n.n(r);function s(e){return i.createElement("div",{className:(void 0===e.className||null===e.className?"":e.className+" ")+"media-list-wrapper",style:e.style},e.children||null)}s.propTypes={style:o().object,className:o().string}}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.m=e,n.x=function(){},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.j=826,function(){var e={826:0},t=[[5227,431]],i=function(){},r=function(r,o){for(var s,l,a=o[0],u=o[1],c=o[2],d=o[3],f=0,p=[];f<a.length;f++)l=a[f],n.o(e,l)&&e[l]&&p.push(e[l][0]),e[l]=0;for(s in u)n.o(u,s)&&(n.m[s]=u[s]);for(c&&c(n),r&&r(o);p.length;)p.shift()();return d&&t.push.apply(t,d),i()},o=self.webpackChunk_mediacms_frontend=self.webpackChunk_mediacms_frontend||[];function s(){for(var i,r=0;r<t.length;r++){for(var o=t[r],s=!0,l=1;l<o.length;l++){var a=o[l];0!==e[a]&&(s=!1)}s&&(t.splice(r--,1),i=n(n.s=o[0]))}return 0===t.length&&(n.x(),n.x=function(){}),i}o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o));var l=n.x;n.x=function(){return n.x=l||function(){},(i=s)()}}(),n.x()}();