mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-12-04 14:13:29 +01:00
2 lines
574 KiB
JavaScript
2 lines
574 KiB
JavaScript
|
/*! 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 o(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 o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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 o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}var f="0.0.1";function d(t,n){t.getChild("ControlBar").getChild("ProgressControl").getChild("SeekBar").removeChild("MouseTimeDisplay");var r=-1,o={frame:{width:160,height:120}};function i(){var t,n,r,o=Array.prototype.slice.call(arguments),a=o.shift()||{};for(t in o)for(r in n=o[t])n.hasOwnProperty(r)&&(a[r]="object"===e(n[r])?i(a[r],n[r]):n[r]);return a}function a(e){return window.getComputedStyle?window.getComputedStyle(e):e.currentStyle}function s(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}}function l(e){return"HTML"!==e.nodeName&&"static"===s(e)("position")?l(e.offsetParent):e}function u(){m?(r=(f.left+f.right+1.5*y.frame.width)/2,p.inner.style.height=f.top+f.bottom+1.5*y.frame.height+"px",p.inner.style.width=f.left+f.right+1.5*y.frame.width+"px"):(r=(f.left+f.right+y.frame.width)/2,p.inner.style.height=f.top+f.bottom+y.frame.height+"px",p.inner.style.width=f.left+f.right+y.frame.width+"px"),p.inner.style.left=-1*r+"px"}var c,p={wrap:document.createElement("div"),inner:document.createElement("div"),img:document.createElement("img"),timeDisplay:document.createElement("div"),timeDisplayInner:document.createElement("div")},f={top:0,left:0,right:0,bottom:0},d=t.controlBar.childNameIndex_.ProgressControl,h=(d.childNameIndex_.SeekBar,t.duration()),m=t.isFullscreen(),y=i({},o,n);p.wrap.className="vjs-preview-thumb",p.inner.className="vjs-preview-thumb-inner",p.inner.style.backgroundImage="url("+y.url+")",p.timeDisplay.className="vjs-preview-thumb-time-display"
|