mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-12-13 10:30:42 +01:00
1 line
45 KiB
JavaScript
1 line
45 KiB
JavaScript
!function(){"use strict";var t={858:function(t,e,n){var r=n(2667),i=(n(7441),n(5101),n(5466)),o=n(3074),s=n.n(o),a=n(8204),l=n(4426),c=n(4830),u=n(9174),p=(n(2701),n(5261)),f=n(7448),h=n(7207),d=n(2836);function y(t){return(y="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 m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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,n){return e&&b(t.prototype,e),n&&b(t,n),t}function g(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&&_(t,e)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(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=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?O(t):e}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(6912),n(3562);var k=function(t){g(n,t);var e=w(n);function n(t){var r;return m(this,n),(r=e.call(this,t)).onSelectOption=r.onSelectOption.bind(O(r)),r}return v(n,[{key:"onSelectOption",value:function(){this.props.onSelect(this.props.id)}},{key:"render",value:function(){return i.createElement("div",{className:"media-filter-option"},i.createElement("button",{className:this.props.selected?"active":"",onClick:this.onSelectOption},this.props.label))}}]),n}(i.PureComponent),P=function(t){g(n,t);var e=w(n);function n(t){var r;return m(this,n),(r=e.call(this,t)).state={selected:r.props.default},r.onSelectOption=r.onSelectOption.bind(O(r)),r}return v(n,[{key:"onSelectOption",value:function(t){this.setState({selected:t},(function(){"function"==typeof this.props.onSelect&&this.props.onSelect(this.state.selected)}))}},{key:"renderOptions",value:function(t){for(var e=[],n=0;n<this.props.items.length;)this.props.hideOptionOnSelect?this.props.items[n].id!==t&&e.push(i.createElement(k,{key:this.props.items[n].id,id:this.props.items[n].id,label:this.props.items[n].label,selected:this.props.items[n].id===t,onSelect:this.onSelectOption})):e.push(i.createElement(k,{key:this.props.items[n].id,id:this.props.items[n].id,label:this.props.items[n].label,selected:this.props.items[n].id===t,onSelect:this.onSelectOption})),n+=1;return e}},{key:"render",value:function(){return i.createElement("div",{className:"media-filter-option-list"},this.renderOptions(this.state.selected))}}]),n}(i.PureComponent),C=function(t){g(n,t);var e=w(n);function n(t){var r;return m(this,n),(r=e.call(this,t)).state={value:r.props.default,visiblePopup:!1},r.triggerButtonDomElem=null,r.onSelectOption=r.onSelectOption.bind(O(r)),r.onPopupsDisplayChange=r.onPopupsDisplayChange.bind(O(r)),r.popup=new h.Z(i.createElement("button",{className:"popup-trigger","aria-label":"Filter"},i.createElement("span",{className:"filter-button-label"},i.createElement("span",{className:"filter-button-label-text"},r.props.label),i.createElement(f.Z,{type:"arrow_drop_down"}))),i.createElement("div",{className:"main-options"},i.createElement(d.W8,null,i.createElement(P,{items:r.props.options,default:r.state.value,onSelect:r.onSelectOption,hideOptionOnSelect:r.props.hideOptionOnSelect}))),r.onPopupsDisplayChange),r}return v(n,[{key:"updatePopupContent",value:function(){this.popup.setComponent(i.createElement("div",{className:"main-options"},i.createElement(d.W8,null,i.createElement(P,{items:this.props.options,default:this.state.value,onSelect:this.onSelectOption,hideOptionOnSelect:this.props.hideOptionOnSelect}))))}},{key:"onSelectOption",value:function(t){this.setState({value:t},(function(){if(this.props.updateTriggerButtonOnChange&&null!==this.triggerButtonDomElem)for(var t=0;t<this.props.options.length;){if(this.state.value===this.props.options[t].id){this.triggerButtonDomElem.innerHTML=this.props.options[t].label;break}t+=1}this.popup.setOpenPopupState(!1),this.updatePopupContent(),"function"==typeof this.props.onSelect&&this.props.onSelect(this.state.value)}))}},{key:"onPopupsDisplayChange",value:function(){this.setState({visiblePopup:this.popup.isPopupOpen()},(function(){this.state.visiblePopup&&this.props.updateTriggerButtonOnChange&&(this.triggerButtonDomElem=this.refs.MediaFilter.querySelector(".filter-button-label-text"))}))}},{key:"render",value:function(){return i.createElement("div",{ref:"MediaFilter",className:"media-filter"},this.popup.triggerComponent(),this.state.visiblePopup?this.popup.contentComponent():null)}}]),n}(i.PureComponent),j=function(t){g(n,t);var e=w(n);function n(t){var r;return m(this,n),(r=e.call(this,t)).popup=new h.Z(i.createElement("button",{className:"popup-trigger","aria-label":"Filter"},i.createElement(f.Z,{type:"sort"}),i.createElement("span",{className:"filter-button-label"},i.createElement("span",{className:"filter-button-label-text"},r.props.label))),i.createElement("div",{className:"main-options"},i.createElement(d.W8,null,i.createElement(P,{items:r.props.options,default:r.state.value,onSelect:r.onSelectOption}))),r.onPopupsDisplayChange),r}return n}(C),T=function(t){g(n,t);var e=w(n);function n(t){var r;return m(this,n),(r=e.call(this,t)).state={selectedFilterTypeId:"all",selectedSortId:"date_added_desc"},r.typeFilters=[{id:"all",label:"All media types"},{id:"video",label:"Video"},{id:"audio",label:"Audio"},{id:"image",label:"Images"},{id:"pdf",label:"Pdf"}],r.sortingOptions=[{id:"date_added_desc",label:"Upload date (newest)"},{id:"date_added_asc",label:"Upload date (oldest)"},{id:"most_views",label:"View count"},{id:"most_likes",label:"Like count"}],r.args={sort_by:null,ordering:null,media_type:null},r.onSelectFilterTypeOption=r.onSelectFilterTypeOption.bind(O(r)),r.onSelectSortOption=r.onSelectSortOption.bind(O(r)),r.updateFiltersArgs(),r}return v(n,[{key:"updateFiltersArgs",value:function(){if("function"==typeof this.props.onFiltersUpdate){switch(this.state.selectedFilterTypeId){case"video":this.args.media_type="video";break;case"audio":this.args.media_type="audio";break;case"image":this.args.media_type="image";break;case"pdf":this.args.media_type="pdf";break;default:this.args.media_type=null}switch(this.state.selectedSortId){case"most_views":this.args.sort_by="views",this.args.ordering=null;break;case"most_likes":this.args.sort_by="likes",this.args.ordering=null;break;case"date_added_asc":this.args.sort_by=null,this.args.ordering="asc";break;default:this.args.sort_by=null,this.args.ordering=null}this.props.onFiltersUpdate(this.args)}}},{key:"onSelectFilterTypeOption",value:function(t){this.setState({selectedFilterTypeId:t},(function(){this.updateFiltersArgs()}))}},{key:"onSelectSortOption",value:function(t){this.setState({selectedSortId:t},(function(){this.updateFiltersArgs()}))}},{key:"render",value:function(){return i.createElement("div",{className:"media-filters-row"},i.createElement("div",{className:"media-filters-row-inner"},i.createElement("div",{className:"media-type-filters"},i.createElement(C,{label:this.typeFilters[0].label,default:this.typeFilters[0].id,options:this.typeFilters,onSelect:this.onSelectFilterTypeOption,updateTriggerButtonOnChange:!0,hideOptionOnSelect:!0})),i.createElement("div",{className:"media-filters-sort"},i.createElement(j,{label:"SORT BY",default:this.sortingOptions[0].id,options:this.sortingOptions,onSelect:this.onSelectSortOption,updateTriggerButtonOnChange:!1,hideOptionOnSelect:!1}))))}}]),n}(i.PureComponent);function R(t){return(R="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 N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(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 A(t,e,n){return e&&F(t.prototype,e),n&&F(t,n),t}function x(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&&D(t,e)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(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=I(t);if(e){var i=I(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return U(this,n)}}function U(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?L(t):e}function L(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(6116);var q=function(t){x(n,t);var e=Z(n);function n(t){var r;return N(this,n),(r=e.call(this,t)).state={active:t.active},r.onButtonClick=r.onButtonClick.bind(L(r)),r}return A(n,[{key:"onButtonClick",value:function(){this.setState({active:!this.state.active},(function(){"function"==typeof this.props.onClick&&this.props.onClick()}))}},{key:"render",value:function(){return i.createElement("div",{className:"mi-filters-toggle"},i.createElement("button",{className:this.state.active?"active":"","aria-label":"Filter",onClick:this.onButtonClick},i.createElement(f.Z,{type:"filter_list"}),i.createElement("span",{className:"filter-button-label"},i.createElement("span",{className:"filter-button-label-text"},"FILTERS"))))}}]),n}(i.PureComponent);q.propTypes={onClick:s().instanceOf(Function),active:s().bool},q.defaultProps={active:!1};var M=function(t){x(n,t);var e=Z(n);function n(t){var r;return N(this,n),(r=e.call(this,t)).state={isHidden:t.hidden,filter_media_type:"all",filter_upload_date:"all",filter_sort_by:"date_added_desc"},r.onFilterSelect=r.onFilterSelect.bind(L(r)),r.onWindowResize=r.onWindowResize.bind(L(r)),l.Z.on("window_resize",r.onWindowResize),r}return A(n,[{key:"onWindowResize",value:function(){this.refs.MiFiltersRow.style.height=24+this.refs.MiFiltersRowInner.offsetHeight+"px"}},{key:"componentDidUpdate",value:function(t){t.hidden!==this.props.hidden&&(this.refs.MiFiltersRow.style.height=24+this.refs.MiFiltersRowInner.offsetHeight+"px",this.setState({isHidden:this.props.hidden},(function(){this.props.hidden&&(this.refs.MiFiltersRow.style.height="")})))}},{key:"onFilterSelect",value:function(t){var e={media_type:this.state.filter_media_type,upload_date:this.state.filter_upload_date,sort_by:this.state.filter_sort_by};switch(t.currentTarget.getAttribute("filter")){case"media_type":this.setState({filter_media_type:t.currentTarget.getAttribute("value")},(function(){e.media_type=this.state.filter_media_type,this.props.onFiltersUpdate(e)}));break;case"upload_date":this.setState({filter_upload_date:t.currentTarget.getAttribute("value")},(function(){e.upload_date=this.state.filter_upload_date,this.props.onFiltersUpdate(e)}));break;case"sort_by":this.setState({filter_sort_by:t.currentTarget.getAttribute("value")},(function(){e.sort_by=this.state.filter_sort_by,this.props.onFiltersUpdate(e)}))}}},{key:"render",value:function(){return i.createElement("div",{ref:"MiFiltersRow",className:"mi-filters-row"+(this.state.isHidden?" hidden":"")},i.createElement("div",{ref:"MiFiltersRowInner",className:"mi-filters-row-inner"},i.createElement("div",{className:"mi-filter"},i.createElement("div",{className:"mi-filter-title"},"MEDIA TYPE"),i.createElement("div",{className:"mi-filter-options"},i.createElement("div",{className:"all"===this.state.filter_media_type?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"media_type",value:"all"},i.createElement("span",null,"All"),"all"===this.state.filter_media_type?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"video"===this.state.filter_media_type?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"media_type",value:"video"},i.createElement("span",null,"Video"),"video"===this.state.filter_media_type?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"audio"===this.state.filter_media_type?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"media_type",value:"audio"},i.createElement("span",null,"Audio"),"audio"===this.state.filter_media_type?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"image"===this.state.filter_media_type?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"media_type",value:"image"},i.createElement("span",null,"Image"),"image"===this.state.filter_media_type?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"pdf"===this.state.filter_media_type?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"media_type",value:"pdf"},i.createElement("span",null,"Pdf"),"pdf"===this.state.filter_media_type?i.createElement(f.Z,{type:"close"}):null)))),i.createElement("div",{className:"mi-filter"},i.createElement("div",{className:"mi-filter-title"},"UPLOAD DATE"),i.createElement("div",{className:"mi-filter-options"},i.createElement("div",{className:"all"===this.state.filter_upload_date?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"upload_date",value:"all"},i.createElement("span",null,"All"),"all"===this.state.filter_upload_date?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"today"===this.state.filter_upload_date?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"upload_date",value:"today"},i.createElement("span",null,"Today"),"today"===this.state.filter_upload_date?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"this_week"===this.state.filter_upload_date?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"upload_date",value:"this_week"},i.createElement("span",null,"This week"),"this_week"===this.state.filter_upload_date?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"this_month"===this.state.filter_upload_date?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"upload_date",value:"this_month"},i.createElement("span",null,"This month"),"this_month"===this.state.filter_upload_date?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"this_year"===this.state.filter_upload_date?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"upload_date",value:"this_year"},i.createElement("span",null,"This year"),"this_year"===this.state.filter_upload_date?i.createElement(f.Z,{type:"close"}):null)))),i.createElement("div",{className:"mi-filter"},i.createElement("div",{className:"mi-filter-title"},"SORT BY"),i.createElement("div",{className:"mi-filter-options"},i.createElement("div",{className:"date_added_desc"===this.state.filter_sort_by?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"sort_by",value:"date_added_desc"},i.createElement("span",null,"Upload date (newest)"),"date_added_desc"===this.state.filter_sort_by?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"date_added_asc"===this.state.filter_sort_by?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"sort_by",value:"date_added_asc"},i.createElement("span",null,"Upload date (oldest)"),"date_added_asc"===this.state.filter_sort_by?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"most_views"===this.state.filter_sort_by?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"sort_by",value:"most_views"},i.createElement("span",null,"View count"),"most_views"===this.state.filter_sort_by?i.createElement(f.Z,{type:"close"}):null)),i.createElement("div",{className:"most_likes"===this.state.filter_sort_by?"active":""},i.createElement("button",{onClick:this.onFilterSelect,filter:"sort_by",value:"most_likes"},i.createElement("span",null,"Like count"),"most_likes"===this.state.filter_sort_by?i.createElement(f.Z,{type:"close"}):null))))))}}]),n}(i.PureComponent);function W(t){return(W="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 V(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 B(t,e){return(B=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function H(t,e){return!e||"object"!==W(e)&&"function"!=typeof e?Q(t):e}function Q(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}M.propTypes={hidden:s().bool},M.defaultProps={hidden:!1};var Y=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&&B(t,e)}(a,t);var e,n,r,o,s=(r=a,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(t){return!1}}(),function(){var t,e=z(r);if(o){var n=z(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return H(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=s.call(this,t,"search-results")).state={validQuery:!1,requestUrl:null,filterArgs:"",resultsTitle:null,resultsCount:null,searchQuery:c.Z.get("search-query"),searchCategories:c.Z.get("search-categories"),searchTags:c.Z.get("search-tags"),searchCountries:c.Z.get("search-countries"),searchLanguages:c.Z.get("search-languages"),searchTopics:c.Z.get("search-topics"),hiddenFilters:!0},e.getCountFunc=e.getCountFunc.bind(Q(e)),e.updateRequestUrl=e.updateRequestUrl.bind(Q(e)),e.onFilterArgsUpdate=e.onFilterArgsUpdate.bind(Q(e)),e.onToggleFiltersClick=e.onToggleFiltersClick.bind(Q(e)),e.onFiltersUpdate=e.onFiltersUpdate.bind(Q(e)),e.didMount=!1,e.updateRequestUrl(),e}return e=a,(n=[{key:"componentDidMount",value:function(){this.didMount=!0}},{key:"onToggleFiltersClick",value:function(){this.setState({hiddenFilters:!this.state.hiddenFilters})}},{key:"onFiltersUpdate",value:function(t){var e={media_type:null,upload_date:null,sort_by:null,ordering:null};switch(t.media_type){case"video":case"audio":case"image":case"pdf":e.media_type=t.media_type}switch(t.upload_date){case"today":case"this_week":case"this_month":case"this_year":e.upload_date=t.upload_date}switch(t.sort_by){case"most_views":e.sort_by="views";break;case"most_likes":e.sort_by="likes";break;case"date_added_asc":e.ordering="asc"}var n=[];for(var r in e)null!==e[r]&&n.push(r+"="+e[r]);this.setState({filterArgs:n.length?"&"+n.join("&"):""},(function(){this.updateRequestUrl()}))}},{key:"updateRequestUrl",value:function(){var t=this.state.searchQuery||this.state.searchCategories||this.state.searchTags||this.state.searchCountries||this.state.searchLanguages||this.state.searchTopics,e=null;null!==this.state.resultsCount&&(t?this.state.searchCategories?(e=null===this.state.resultsCount||0===this.state.resultsCount?"No":this.state.resultsCount,e+=' media in category "'+this.state.searchCategories+'"'):this.state.searchTags?(e=null===this.state.resultsCount||0===this.state.resultsCount?"No":this.state.resultsCount,e+=' media in tag "'+this.state.searchTags+'"'):this.state.searchTopics?(e=null===this.state.resultsCount||0===this.state.resultsCount?"No":this.state.resultsCount,e+=' media in topic "'+this.state.searchTopics+'"'):this.state.searchCountries?(e=null===this.state.resultsCount||0===this.state.resultsCount?"No":this.state.resultsCount,e+=' media in country "'+this.state.searchCountries+'"'):this.state.searchLanguages?(e=null===this.state.resultsCount||0===this.state.resultsCount?"No":this.state.resultsCount,e+=' media in language "'+this.state.searchLanguages+'"'):e=null===this.state.resultsCount||0===this.state.resultsCount?'No results for "'+this.state.searchQuery+'"':this.state.resultsCount+" result"+(1<this.state.resultsCount?"s":"")+' for "'+this.state.searchQuery+'"':e='No results for "'+this.state.searchQuery+'"');var n=(this.state.searchQuery||"")+(this.state.searchTags?"&t="+this.state.searchTags:"")+(this.state.searchCategories?"&c="+this.state.searchCategories:"")+(this.state.searchTopics?"&topic="+this.state.searchTopics:"")+(this.state.searchLanguages?"&language="+this.state.searchLanguages:"")+(this.state.searchCountries?"&country="+this.state.searchCountries:""),r=this.props.api_url_prefix+n+this.state.filterArgs;this.didMount?this.setState({validQuery:t,requestUrl:r,resultsTitle:e}):(this.state.validQuery=t,this.state.requestUrl=r,this.state.resultsTitle=e)}},{key:"onFilterArgsUpdate",value:function(t){var e=[];for(var n in t)null!==t[n]&&e.push(n+"="+t[n]);this.setState({filterArgs:e.length?"&"+e.join("&"):""},(function(){this.updateRequestUrl()}))}},{key:"getCountFunc",value:function(t){this.setState({resultsCount:t},(function(){this.updateRequestUrl()}))}},{key:"pageContent",value:function(){return i.createElement(u._,{className:"search-results-wrap items-list-hor",title:null===this.state.resultsTitle?null:this.state.resultsTitle},i.createElement(T,{onFiltersUpdate:this.onFilterArgsUpdate}),this.state.validQuery?i.createElement(p.J,{key:this.state.requestUrl,singleLinkContent:!1,horizontalItemsOrientation:!0,itemsCountCallback:this.getCountFunc,requestUrl:this.state.requestUrl,preferSummary:!0,hideViews:!l.Z.get("config-media-item").displayViews,hideAuthor:!l.Z.get("config-media-item").displayAuthor,hideDate:!l.Z.get("config-media-item").displayPublishDate}):null)}}])&&V(e.prototype,n),a}(a.T);Y.propTypes={api_url_prefix:s().string.isRequired},Y.defaultProps={api_url_prefix:l.Z.get("api-search-query")},(0,r.X)("page-search",Y)},5261:function(t,e,n){n.d(e,{J:function(){return _}}),n(5101),n(5466),n(6116);var r=n(4426),i=n(8421);function o(t){return(o="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 s(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 a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=n(5953);function f(t){return(f="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 h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=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&&b(t,e)}(i,t);var e,n,r=(e=i,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(t){return!1}}(),function(){var t,r=g(e);if(n){var i=g(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return v(this,t)});function i(){return m(this,i),r.apply(this,arguments)}return i}(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&&a(t,e)}(h,t);var e,n,o,p,f=(o=h,p=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=u(o);if(p){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return l(this,t)});function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=f.call(this,t)).onWindowScroll=e.onWindowScroll.bind(c(e)),e.onDocumentVisibilityChange=e.onDocumentVisibilityChange.bind(c(e)),e}return e=h,(n=[{key:"componentDidMount",value:function(){this.listHandler=new i.g(this.props.pageItems,this.props.maxItems,this.props.firstItemRequestUrl,this.props.requestUrl,this.onItemsCount,this.onItemsLoad),r.Z.on("window_scroll",this.onWindowScroll),r.Z.on("document_visibility_change",this.onDocumentVisibilityChange)}},{key:"componentWillUnmount",value:function(){r.Z.removeListener("window_scroll",this.onWindowScroll),r.Z.removeListener("document_visibility_change",this.onDocumentVisibilityChange)}},{key:"onWindowScroll",value:function(){void 0!==this.refs.ItemsList&&window.scrollY+2*window.outerHeight>=this.refs.ItemsList.offsetTop+this.refs.ItemsList.offsetHeight&&this.listHandler.loadItems()}},{key:"onDocumentVisibilityChange",value:function(){document.hidden||setTimeout(this.onWindowScroll,10)}},{key:"afterItemsLoad",value:function(){this.onWindowScroll(),this.listHandler.loadedAllItems()&&r.Z.removeListener("window_scroll",this.onWindowScroll)}}])&&s(e.prototype,n),h}(p.g));_.defaultProps=d(d({},p.g.defaultProps),{},{pageItems:2})},3562:function(t,e,n){n.d(e,{o:function(){return f}}),n(5101),n(9751),n(3233);var r=n(5466),i=n(6116),o=n(3074),s=n.n(o);function a(t){return(a="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 l(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 c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=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&&c(t,e)}(a,t);var e,n,r,o,s=(r=a,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(t){return!1}}(),function(){var t,e=p(r);if(o){var n=p(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=s.call(this,t)).state={current:e.props.initPage&&void 0!==e.props.pages[e.props.initPage]?e.props.initPage:Object.keys(e.props.pages).length?Object.keys(e.props.pages)[0]:null},e.changePageElements=[],e}return e=a,(n=[{key:"componentDidMount",value:function(){this.initEvents()}},{key:"componentDidUpdate",value:function(){this.initEvents()}},{key:"UNSAFE_componentWillUpdate",value:function(){this.clearEvents()}},{key:"componentWillUnmount",value:function(){this.clearEvents()}},{key:"initEvents",value:function(){var t,e,n=i.findDOMNode(this),r=n.querySelectorAll(this.props.pageChangeSelector);if(r.length)for(t=0;t<r.length;)(e=(e=r[t].getAttribute(this.props.pageIdSelectorAttr))?e.trim():e)&&(this.changePageElements[t]={id:e,elem:r[t]},this.changePageElements[t].listener=this.changePageListener.bind(this,t),this.changePageElements[t].elem.addEventListener("click",this.changePageElements[t].listener)),t+=1;this.props.focusFirstItemOnPageChange&&n.focus()}},{key:"clearEvents",value:function(){for(var t=0;t<this.changePageElements.length;)this.changePageElements[t].elem.removeEventListener("click",this.changePageElements[t].listener),t+=1;this.changePageElements=[]}},{key:"changePageListener",value:function(t,e){e.preventDefault(),e.stopPropagation(),this.changePage(this.changePageElements[t].id)}},{key:"changePage",value:function(t){void 0!==this.props.pages[t]&&this.setState({current:t},(function(){void 0!==this.props.pageChangeCallback&&this.props.pageChangeCallback(t)}))}},{key:"render",value:function(){return this.props.pages[this.state.current]||null}}])&&l(e.prototype,n),a}(r.PureComponent);f.propTypes={initPage:s().string,pages:s().object.isRequired,pageChangeSelector:s().string.isRequired,pageIdSelectorAttr:s().string.isRequired,focusFirstItemOnPageChange:s().bool,pageChangeCallback:s().func},f.defaultProps={focusFirstItemOnPageChange:!0}},6912:function(t,e,n){n.d(e,{Z:function(){return v}}),n(5101),n(9808);var r=n(5466),i=(n(6116),n(3074)),o=n.n(i),s=n(7448);function a(t){return(a="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 l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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 p(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function f(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&&h(t,e)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(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=m(t);if(e){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){f(n,t);var e=d(n);function n(t){var i;c(this,n);var o=(i=e.call(this,t)).props.text?i.props.icon&&"right"!==i.props.iconPos?1:0:-1,a=i.props.icon?i.props.text&&"right"===i.props.iconPos?1:0:-1;switch(i.itemAttr=i.props.itemAttr||{},i.children=[],i.className=void 0!==i.itemAttr.className?i.itemAttr.className+" ":"",i.itemAttr.className,-1<o&&(i.children[o]=r.createElement("span",{key:"Text"},i.props.text)),-1<a&&(i.children[a]=r.createElement("span",{key:"Icon",className:"right"===i.props.iconPos?"menu-item-icon-right":"menu-item-icon"},r.createElement(s.Z,{type:i.props.icon}))),i.props.itemType){case"link":i.children=r.createElement("a",l({},i.props.linkAttr||{},{href:i.props.link,title:i.props.text||null}),i.children),i.className+="link-item"+(i.props.active?" active":"");break;case"button":case"open-subpage":i.children=r.createElement("button",l({},i.props.buttonAttr||{},{key:"button"}),i.children);break;case"label":i.children=r.createElement("button",l({},i.props.buttonAttr||{},{key:"button"}),r.createElement("span",null,i.props.text||null)),i.className="label-item";break;case"div":i.children=r.createElement("div",l({},i.props.divAttr||{},{key:"div"}),i.props.text||null)}return i.className=void 0!==i.className?" "+i.className:"",i}return p(n,[{key:"render",value:function(){return r.createElement("li",l({},this.itemAttr,{className:this.className}),this.children)}}]),n}(r.PureComponent),v=function(t){f(n,t);var e=d(n);function n(){return c(this,n),e.apply(this,arguments)}return p(n,[{key:"render",value:function(){for(var t=0,e=[];t<this.props.items.length;)e.push(r.createElement(b,l({key:t},this.props.items[t]))),t+=1;return e.length?r.createElement("div",{className:"nav-menu"+(this.props.removeVerticalPadding?" pv0":"")},r.createElement("nav",null,r.createElement("ul",null,e))):null}}]),n}(r.PureComponent);b.defaultProps={itemType:"link",iconPos:"left",active:!1},b.propTypes={itemType:o().oneOf(["link","open-subpage","button","label","div"]),link:o().string,icon:o().string,iconPos:o().oneOf(["left","right"]),text:o().string,active:o().bool,divAttr:o().object,buttonAttr:o().object,itemAttr:o().object,linkAttr:o().object},v.defaultProps={removeVerticalPadding:!1},v.propTypes={removeVerticalPadding:o().bool,items:o().arrayOf(o().shape(b.propTypes)).isRequired}},7188:function(t,e,n){n(9751),n(3233)},9009:function(t,e,n){n(6394),n(5334),n(7588),n(4559),n(6028)},6203:function(t,e,n){n(2322),n(9268),n(3233),e.Z=function(){var t,e,n,r=null;if(document.cookie&&""!==document.cookie)for(e=document.cookie.split(";"),t=0;t<e.length;){if("csrftoken="===(n=e[t].trim()).substring(0,10)){r=decodeURIComponent(n.substring(10));break}t+=1}return r}},1712:function(t,e,n){n(6394),n(5334),n(7588);var r=n(4559);function i(t,e,n,r,i,o,s){try{var a=t[o](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var s=t.apply(e,n);function a(t){i(s,r,o,a,l,"next",t)}function l(t){i(s,r,o,a,l,"throw",t)}a(void 0)}))}}function s(){return(s=o(regeneratorRuntime.mark((function t(e,n,i,o){var s,a,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=function(t){if(o instanceof Function){var e=t;if(void 0===t.response)e={type:"network",error:t};else if(void 0!==t.response.status)switch(t.response.status){case 401:e={type:"private",error:t,message:"Media is private"};break;case 400:e={type:"unavailable",error:t,message:"Media is unavailable"}}o(e)}},a=function(t){i instanceof Function&&i(t)},s={timeout:null,maxContentLength:null},!n){t.next=8;break}return t.next=6,(0,r.get)(e,s).then(a).catch(l||null);case 6:t.next=9;break;case 8:(0,r.get)(e,s).then(a).catch(l||null);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}n(6028),e.Z=function(t,e,n,r){return s.apply(this,arguments)}},8420:function(t,e,n){n.d(e,{A_:function(){return r.Z},GH:function(){return i.Z},v$:function(){return o.Z},uf:function(){return s.Z},$4:function(){return a.Z},m5:function(){return l.Z}});var r=n(1712),i=(n(9752),n(84)),o=(n(9009),n(1438)),s=n(4135),a=n(3140),l=(n(1752),n(7514),n(1569),n(6203));n(7188)},9752:function(t,e,n){n(6394),n(5334),n(7588),n(4559),n(6028)},2701:function(t,e,n){n.d(e,{s:function(){return f}}),n(5101);var r=n(5466),i=(n(6116),n(3074)),o=n.n(i);function s(t){return(s="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 a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(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 c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=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&&c(t,e)}(f,t);var e,n,i,o,s=(i=f,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(t){return!1}}(),function(){var t,e=p(i);if(o){var n=p(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function f(){return a(this,f),s.apply(this,arguments)}return e=f,(n=[{key:"render",value:function(){return r.createElement("div",{className:(void 0===this.props.className||null===this.props.className?"":this.props.className+" ")+"media-list-header",style:this.props.style},r.createElement("h2",null,this.props.title),void 0===this.props.viewAllLink||null===this.props.viewAllLink?null:r.createElement("h3",null,r.createElement("a",{href:this.props.viewAllLink,alt:this.props.viewAllText,title:this.props.viewAllText},this.props.viewAllText)))}}])&&l(e.prototype,n),f}(r.PureComponent);f.propTypes={style:o().object,className:o().string,title:o().string.isRequired,viewAllLink:o().string,viewAllText:o().string},f.defaultProps={viewAllText:"VIEW ALL"}},3085:function(t,e,n){n.d(e,{G:function(){return h}}),n(5101);var r=n(5466),i=(n(6116),n(3074)),o=n.n(i),s=n(2701);function a(t){return(a="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 l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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 u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=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&&u(t,e)}(h,t);var e,n,i,o,a=(i=h,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(t){return!1}}(),function(){var t,e=f(i);if(o){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function h(){return l(this,h),a.apply(this,arguments)}return e=h,(n=[{key:"render",value:function(){return r.createElement("div",{className:(void 0===this.props.className||null===this.props.className?"":this.props.className+" ")+"media-list-row",style:this.props.style},void 0===this.props.title||null===this.props.title?null:r.createElement(s.s,{title:this.props.title,viewAllLink:this.props.viewAllLink,viewAllText:this.props.viewAllText}),this.props.children||null)}}])&&c(e.prototype,n),h}(r.PureComponent);h.propTypes={style:o().object,className:o().string,title:o().string,viewAllLink:o().string,viewAllText:o().string},h.defaultProps={}},9174:function(t,e,n){n.d(e,{_:function(){return h}}),n(5101);var r=n(5466),i=(n(6116),n(3074)),o=n.n(i),s=n(3085);function a(t){return(a="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 l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(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 u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=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&&u(t,e)}(h,t);var e,n,i,o,a=(i=h,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(t){return!1}}(),function(){var t,e=f(i);if(o){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function h(){return l(this,h),a.apply(this,arguments)}return e=h,(n=[{key:"render",value:function(){return r.createElement("div",{className:(void 0===this.props.className||null===this.props.className?"":this.props.className+" ")+"media-list-wrapper",style:this.props.style},r.createElement(s.G,{title:this.props.title,viewAllLink:this.props.viewAllLink,viewAllText:this.props.viewAllText},this.props.children||null))}}])&&c(e.prototype,n),h}(r.PureComponent);h.propTypes={style:o().object,className:o().string},h.defaultProps={}}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.m=t,n.x=function(){},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.j=464,function(){var t={464:0},e=[[858,431]],r=function(){},i=function(i,o){for(var s,a,l=o[0],c=o[1],u=o[2],p=o[3],f=0,h=[];f<l.length;f++)a=l[f],n.o(t,a)&&t[a]&&h.push(t[a][0]),t[a]=0;for(s in c)n.o(c,s)&&(n.m[s]=c[s]);for(u&&u(n),i&&i(o);h.length;)h.shift()();return p&&e.push.apply(e,p),r()},o=self.webpackChunk_mediacms_frontend=self.webpackChunk_mediacms_frontend||[];function s(){for(var r,i=0;i<e.length;i++){for(var o=e[i],s=!0,a=1;a<o.length;a++){var l=o[a];0!==t[l]&&(s=!1)}s&&(e.splice(i--,1),r=n(n.s=o[0]))}return 0===e.length&&(n.x(),n.x=function(){}),r}o.forEach(i.bind(null,0)),o.push=i.bind(null,o.push.bind(o));var a=n.x;n.x=function(){return n.x=a||function(){},(r=s)()}}(),n.x()}(); |