diff --git a/dist/bright.min.js b/dist/bright.min.js index e3400c2..7ea443e 100644 --- a/dist/bright.min.js +++ b/dist/bright.min.js @@ -1 +1 @@ -!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):"object"==typeof exports?exports.Bright=e():n.Bright=e()}(this,function(){return function(n){function e(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return n[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=n,e.c=t,e.p="",e(0)}([function(n,e,t){function r(n,e){function t(){var t=u(e);t.id=x,n.innerHTML="",window.brightcove.createExperience(t,n,!0)}function r(){m&&b&&_.load(b)}function l(){var n=window.brightcove.api,e=n.getExperience(x);m=e.getModule(n.modules.APIModules.VIDEO_PLAYER)}function s(){var n=window.brightcove.api.events.MediaEvent;m.addEventListener(n.CHANGE,d("load",_)),m.addEventListener(n.PLAY,d("play",_)),m.addEventListener(n.STOP,d("pause",_)),m.addEventListener(n.COMPLETE,d("ended",_)),h.trigger("init",_)}function d(){var n=arguments;return function(){h.trigger.apply(null,n)}}function v(n){if(!n)throw new Error("missing video id");var e="cueVideoByID";"string"==typeof n&&(e="cueVideoByReferenceID"),m[e](n),b=n}function g(n){var e="play";"number"==typeof n&&(e="loadVideoByID"),"string"==typeof n&&(e="loadVideoByReferenceID"),setTimeout(function(){m[e](n),b=n})}function y(){m.pause()}var h=o();e=i({},p,e);var m,b,x="bright"+a++;c[x]=l,f[x]=s;var _=Object.freeze({init:t,load:v,play:g,pause:y,on:h.on,once:h.once,off:h.off});return _.on("init",r),_}t(1);var o=t(3),i=t(4),u=t(2),a=0,f={},c={},p={isVid:!0,isUI:!0,includeAPI:!0,wmode:"transparent",bgcolor:"#ffffff",templateLoadHandler:"__brightcoveTemplateHandlers.load",templateReadyHandler:"__brightcoveTemplateHandlers.ready"};if("undefined"!=typeof window.__brightcoveTemplateHandlers){var l="global variable __brightcoveTemplateHandlers is already defined. ";throw l+='Did you load "bright" more than once?',new Error(l)}window.__brightcoveTemplateHandlers={ready:function(n){var e=n.target.experience.id;f[e]()},load:function(n){c[n]()}},n.exports=r},function(){Object.freeze||(Object.prototype.freeze=function(n){return n})},function(n){function e(n){var e=document.createElement("object");for(var r in n)e.appendChild(t(r,n[r]));return e}function t(n,e){var t=document.createElement("param");return t.name=n,t.value=e,t}n.exports=e},function(n){function e(){function n(n,e){i[n]||(i[n]=[]),i[n].push(e)}function e(n,e){arguments.length||(i={});var t=i[n];t&&(1===arguments.length&&delete i[n],t.some(function(n,r){return n===e||n.listener===e?(t.splice(r,1),!0):void 0}))}function t(n){var e=[].slice.call(arguments,1),t=i[n];t&&(t=t.slice(0),t.forEach(function(n){n.apply(null,e)}))}function r(n){return arguments.length?!(!i[n]||!i[n].length):!!Object.keys(i).length}function o(n,e){function t(){u.off(n,t),e.apply(null,arguments)}t.listener=e,u.on(n,t)}var i={},u=Object.freeze({on:n,off:e,trigger:t,hasListeners:r,once:o});return u}n.exports=e},function(n,e,t){var r=t(6),o=t(5),i=t(7),u=function(n,e,t){var u,a=n,f=a;if(!a)return f;var c=arguments,p=0,l="number"==typeof t?2:c.length;if(l>3&&"function"==typeof c[l-2])var s=r(c[--l-1],c[l--],2);else l>2&&"function"==typeof c[l-1]&&(s=c[--l]);for(;++p2?o(n,17,i(arguments,2),null,e):o(n,1,null,null,e)}var o=t(16),i=t(17);n.exports=r},function(n){function e(n){return n}n.exports=e},function(n){function e(){}n.exports=e},function(n,e,t){function r(n,e,t,f,l,s){var d=1&e,v=2&e,g=4&e,y=16&e,h=32&e;if(!v&&!u(n))throw new TypeError;y&&!t.length&&(e&=-17,y=t=!1),h&&!f.length&&(e&=-33,h=f=!1);var m=n&&n.__bindData__;if(m&&m!==!0)return m=a(m),m[2]&&(m[2]=a(m[2])),m[3]&&(m[3]=a(m[3])),!d||1&m[1]||(m[4]=l),!d&&1&m[1]&&(e|=8),!g||4&m[1]||(m[5]=s),y&&c.apply(m[2]||(m[2]=[]),t),h&&p.apply(m[3]||(m[3]=[]),f),m[1]|=e,r.apply(null,m);var b=1==e||17===e?o:i;return b([n,e,t,f,l,s])}var o=t(18),i=t(19),u=t(20),a=t(17),f=[],c=f.push,p=f.unshift;n.exports=r},function(n){function e(n,e,t){e||(e=0),"undefined"==typeof t&&(t=n?n.length:0);for(var r=-1,o=t-e||0,i=Array(0>o?0:o);++r3&&"function"==typeof c[l-2])var s=r(c[--l-1],c[l--],2);else l>2&&"function"==typeof c[l-1]&&(s=c[--l]);for(;++p2?o(n,17,i(arguments,2),null,e):o(n,1,null,null,e)}var o=t(16),i=t(17);n.exports=r},function(n){function e(n){return n}n.exports=e},function(n){function e(){}n.exports=e},function(n,e,t){function r(n,e,t,a,l,s){var v=1&e,d=2&e,g=4&e,y=16&e,h=32&e;if(!d&&!u(n))throw new TypeError;y&&!t.length&&(e&=-17,y=t=!1),h&&!a.length&&(e&=-33,h=a=!1);var m=n&&n.__bindData__;if(m&&m!==!0)return m=f(m),m[2]&&(m[2]=f(m[2])),m[3]&&(m[3]=f(m[3])),!v||1&m[1]||(m[4]=l),!v&&1&m[1]&&(e|=8),!g||4&m[1]||(m[5]=s),y&&c.apply(m[2]||(m[2]=[]),t),h&&p.apply(m[3]||(m[3]=[]),a),m[1]|=e,r.apply(null,m);var b=1==e||17===e?o:i;return b([n,e,t,a,l,s])}var o=t(18),i=t(19),u=t(20),f=t(17),a=[],c=a.push,p=a.unshift;n.exports=r},function(n){function e(n,e,t){e||(e=0),"undefined"==typeof t&&(t=n?n.length:0);for(var r=-1,o=t-e||0,i=Array(0>o?0:o);++r