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 */
2025-06-11 14:48:30 +03:00
(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),o=n(4903)(),a=n(8396),s=n(7570);if(o){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||!a(t,"value"))return!1;try{l(e,d)}catch(e){return e===c}}}else{var h=i("Object.prototype.toString");r=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===h(e)}}e.exports=r},160:function(e){"use strict";e.exports=function(e,t,n,r,i,o,a,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,o,a,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 o},toggleMediaAutoPlay:function(){return a}});var r=n(7143),i=n.n(r);function o(e){i().dispatch({type:"INIT_PAGE",page:e})}function a(){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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=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),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(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=a(n(4388)),t.PageActions=a(n(266)),t.PlaylistPageActions=a(n(7500)),t.PlaylistViewActions=a(n(8322)),t.ProfilePageActions=a(n(8759)),t.SearchFieldActions=a(n(1981)),t.VideoViewerActions=a(n(2586))},333:function(e){"use strict";e.exports=Math.round},338:function(e,t,n){var r=n(5187),i=n(5541),o=n(3844);e.exports=function(e){return r(e)||i(e)||o()}},384:function(e,t,n){"use strict";n.r(t),n.d(t,{useItemListSync:function(){return a}});var r=n(9471),i=n(4876),o=n(1838);function a(e){const t=(0,r.useRef)(null),n=(0,r.useRef)(null),[a,s,l,c,u,d,h]=(0,i.useItemList)(e,t);let p={list:"items-list",listOuter:"items-list-outer"+("string"==typeof e.className?" "+e.className.trim():"")};function f(){l.loadItems()}return(0,r.useEffect)((()=>{h()}),[a]),[s,a,l,c,p,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,o.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=