mediacms/static/js/_commons.js

2 lines
649 KiB
JavaScript
Raw Normal View History

2020-12-16 12:48:37 +01:00
/*! For license information please see _commons.js.LICENSE.txt */
(self.webpackChunk_mediacms_frontend=self.webpackChunk_mediacms_frontend||[]).push([[431],{920:function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e){return"string"==typeof e||e instanceof String}function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function i(e,t){return"boolean"==typeof(n=e)||n instanceof Boolean?e:t;var n}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,function(e,t){e(t={exports:{}},t.exports)}((function(e,t){e.exports=function(){function e(t){return(e="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})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){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 u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?u(e):t}function p(e){var t=l();return function(){var n,r=a(e);if(t){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}var d="0.0.1",f=null;function h(){var n=videojs.getComponent("Component"),a=videojs.getComponent("ClickableComponent"),s=videojs.getComponent("Button"),l=videojs.extend(n,{constructor:function(){n.apply(this,arguments),this.setAttribute("class",this.buildCSSClass())},buildCSSClass:function(){return""}}),f=videojs.extend(a,{buildCSSClass:function(){return""}}),h=O("vjs-settings-panel"),m=O("vjs-settings-panel-inner"),y=O("vjs-setting-panel-title"),v=O("vjs-settings-menu"),g=_(f,"vjs-settings-menu-item"),b=O("vjs-setting-menu-item-label"),w=O("vjs-setting-menu-item-content");function S(t,n,r,i,o){var a=!!r&&1===r.nodeType;if(!a)switch(e(r)){case"string":r=""===(r=r.trim())?null:r;break;case"number":r=r.toString();break;default:r=null}switch(e(i)){case"string":i=""===(i=i.trim())?null:i;break;default:i=null}o&&Object.keys(o).length||(o=null),(r||o)&&(t.constructor=function(){var e;if(n.apply(this,arguments),r&&(a?this.el_.appendChild(r):this.el_.innerHTML=r),o)for(e in o)o.hasOwnProperty(e)&&this.el_.setAttribute(e,o[e])}),i&&(t.buildCSSClass=function(){return i+" "+n.prototype.buildCSSClass.call(this)})}function k(e,t){return videojs.extend(e,t)}function P(e,t){return{extend:e,methods:t}}function _(e,t,n,r){var i={};return S(i,e,n,t,r),k(e,i)}function E(e,t,n,r){var i={};return S(i,e,n,t,r),P(e,i)}function O(e,t,n){return _(l,e,t,n)}function C(e){function t(e,n,r,i,o){var a,s=!1;for(a in r[o]=void 0===r[o]?[]:r[o],n)n.hasOwnProperty(a)&&(n[a]&&n[a].children?t(a,n[a].children,r,i,o+1)&&(s=!0,r[o].push(a),i[a]=e):(s=!0,r[