Created
September 22, 2018 03:59
-
-
Save shravan-shandilya/85dd59e5a270a2b03a02e024b784146b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function e(t,n,r){function i(a,u){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(o)return o(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var s=n[a]={exports:{}};t[a][0].call(s.exports,function(e){var n=t[a][1][e];return i(n||e)},s,s.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){this.message=e}Object.defineProperty(n,"__esModule",{value:!0});var u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=window.videojs;if(!c)throw new a('video-bug: "videojs" is undefined!');var p=c.getComponent("ClickableComponent"),s=function(e){function t(e,n){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return o(t,e),u(t,[{key:"createEl",value:function(){var e=this.options(),t=c.createEl("span",{className:"vjs-bug vjs-bug-"+e.position}),n=c.createEl("img",{},{src:e.imgSrc});if(e.link){var r=c.createEl("a",{},{href:e.link,target:"_blank"});r.appendChild(n),t.appendChild(r)}else t.className+=" no-link",t.appendChild(n);return t.style.opacity=e.opacity,t.style.padding=e.padding,e.width&&(t.width=e.width),e.height&&(t.height=e.height),t}}]),t}(p),l={height:!1,imgSrc:"",link:null,opacity:.7,padding:"0px",position:"br",width:!1},f=c.registerPlugin||c.plugin,d=function(e){switch(e.position){case"tl":case"tr":case"bl":case"br":break;default:e.position="br"}e.opacity>1&&(e.opacity=1),e.opacity<0&&(e.opacity=0)},h=function(e,t){d(t),c.registerComponent("BugComponent",s),e.addChild("BugComponent",t,1)},g=function(e){var t=this;this.ready(function(){h(t,c.mergeOptions(l,e))})};f("bug",g),g.VERSION="1.0.0-rc.3",n.default=g},{}]},{},[1]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment