Files
mediacms/static/js/_commons.js
T

2 lines
1.1 MiB
JavaScript
Raw Normal View History

2020-12-16 13:48:37 +02:00
/*! For license information please see _commons.js.LICENSE.txt */
(self.webpackChunkmediacms_frontend=self.webpackChunkmediacms_frontend||[]).push([[276],{70:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},78:function(e,t,n){"use strict";var r,i=n(4449),a=n(4903)(),o=n(8396),s=n(7570);if(a){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},d={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=u),r=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!t||!o(t,"value"))return!1;try{l(e,d)}catch(e){return e===c}}}else{var p=i("Object.prototype.toString");r=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===p(e)}}e.exports=r},160:function(e){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},239:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(9471);class i extends r.PureComponent{render(){return this.props.children?r.createElement("div",{className:"profile-page-content"+(this.props.enabledContactForm?" with-cform":"")},this.props.children):null}}},266:function(e,t,n){"use strict";n.r(t),n.d(t,{addNotification:function(){return s},initPage:function(){return a},toggleMediaAutoPlay:function(){return o}});var r=n(7143),i=n.n(r);function a(e){i().dispatch({type:"INIT_PAGE",page:e})}function o(){i().dispatch({type:"TOGGLE_AUTO_PLAY"})}function s(e,t){i().dispatch({type:"ADD_NOTIFICATION",notification:e,notificationId:t})}},278:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},285:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),o=0;o<n.length;o++)"default"!==n[o]&&i(t,e,n[o]);return a(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.VideoViewerActions=t.SearchFieldActions=t.ProfilePageActions=t.PlaylistViewActions=t.PlaylistPageActions=t.PageActions=t.MediaPageActions=void 0,t.MediaPageActions=o(n(4388)),t.PageActions=o(n(266)),t.PlaylistPageActions=o(n(7500)),t.PlaylistViewActions=o(n(8322)),t.ProfilePageActions=o(n(8759)),t.SearchFieldActions=o(n(1981)),t.VideoViewerActions=o(n(2586))},333:function(e){"use strict";e.exports=Math.round},338:function(e,t,n){var r=n(5187),i=n(5541),a=n(3844);e.exports=function(e){return r(e)||i(e)||a()}},384:function(e,t,n){"use strict";n.r(t),n.d(t,{useItemListSync:function(){return o}});var r=n(9471),i=n(4876),a=n(1838);function o(e){const t=(0,r.useRef)(null),n=(0,r.useRef)(null),[o,s,l,c,u,d,p]=(0,i.useItemList)(e,t);let h={list:"items-list",listOuter:"items-list-outer"+("string"==typeof e.className?" "+e.className.trim():"")};function f(){l.loadItems()}return(0,r.useEffect)((()=>{p()}),[o]),[s,o,l,c,h,n,t,d,u,function(){return null},function(){return l?1>l.totalPages()||l.loadedAllItems()?null:r.createElement("button",{className:"load-more",onClick:f},(0,a.translateString)("SHOW MORE")):null}]}},403:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n=