text: /**
   * brightcove-multi-playlist
   * @version 0.0.1
   * @copyright 2017 Kevin Reynolds
   * @license Apache-2.0
   */
  !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.videojsPlayerDebugger=t()}}(function(){return function t(e,l,n){function i(s,a){if(!l[s]){if(!e[s]){var r="function"==typeof require&&require;if(!a&&r)return r(s,!0);if(o)return o(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=l[s]={exports:{}};e[s][0].call(c.exports,function(t){var l=e[s][1][t];return i(l?l:t)},c,c.exports,t,e,l,n)}return l[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,l){"use strict";function n(t,e){function l(t,e,i){for(var o=0;o<t.childNodes.length&&!i;o++){for(var s=t.childNodes[o],a=void 0!=s.className?s.className.split(" "):[],r=0,d=a.length;r<d;r++)if(a[r]==e){i=!0,n=t.childNodes[o];break}if(i)break;l(t.childNodes[o],e,i)}}var n=null;return l(t,e,!1),n}Object.defineProperty(l,"__esModule",{value:!0});var i={},o=void 0,s=void 0,a=void 0,r=void 0,d=videojs.extend(videojs.Button,{constructor:function(t,e){videojs.Button.call(this,t,e),t.on("loadstart",function(){console.log(o)}),this.on("click",function(){})},createEl:function(){return videojs.Button.prototype.createEl.call(this,"div",{className:"vjs-playlist-button vjs-menu-button vjs-menu-button-popup vjs-control vjs-button",innerHTML:'<div class="vjs-menu playlistModal vjs-icons-chapters" role="presentation"><ul id="vjs-playlist-menu" class="vjs-playlist-menu vjs-menu-content"role="menu"></ul></div><span class="vjs-control-text">Playlist</span></div>'},{"aria-live":"polite"})}}),c=function(t){videojs.registerComponent("playlistModalButton",d);var e=t.controlBar.children().map(function(t){return t.name()}).indexOf("FullscreenToggle")-1;t.controlBar.playlistButton=t.controlBar.addChild("playlistModalButton",null,e),t.controlBar.playlistButton.el().setAttribute("tabindex",0),s=n(t.controlBar.playlistButton.el_,"vjs-playlist-menu"),console.log(s);for(var l=0;l<o.playlists.length;l++)0==l&&t.catalog.getPlaylist(o.playlists[l].id,function(e,l){t.catalog.load(l),t.playlist.currentItem(0),t.play()}),t.catalog.getPlaylist(o.playlists[l].id,function(e,l){a=t.catalog.data,r="<li class='vjs-playlist-title' id='"+a.id+"'>"+a.name+"</li><ul style='display:none;'>";for(var n=0;n<l.length;n++)r+="<div class='vjs-video-title vjs-menu-item' playlistId='"+a.id+"'id='"+l[n].id+"'>"+l[n].name+"<img class='vjs-thumbnail' style='pointer-events:none;'src="+l[n].thumbnail+"></img></div>";r+="</ul>",s.innerHTML+=r;for(var i=0;i<s.childNodes.length;i++){var o=s.childNodes;if("vjs-playlist-title"===s.childNodes[i].className)s.childNodes[i].addEventListener("click",function(t){t.stopPropagation(),"none"===t.target.nextSibling.style.display?t.target.nextSibling.style.display="block":t.target.nextSibling.style.display="none"});else if("UL"===s.childNodes[i].tagName)for(var o=s.childNodes[i],d=0;d<o.childNodes.length;d++)o.childNodes[d].addEventListener("click",function(e){t.catalog.getPlaylist(e.currentTarget.attributes.playlistId.value,function(l,n){t.catalog.load(n);for(var i=0;i<n.length;i++)e.target.id===n[i].id&&(t.playlist.currentItem(i),t.play())})})}})},u=function(t){if(o=t)for(var e=0;e<o.playlists.length;e++)console.log(o.playlists[e].id)},f=function(t,e){console.log("Brightcove Player multiPlaylist loaded");var l=document.createElement("link");l.rel="stylesheet",l.href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css",document.body.appendChild(l),u(e),c(t)},p=function(t){var e=this;this.ready(function(){o=t,f(e,videojs.mergeOptions(i,o))})};videojs.plugin("multiPlaylist",p),p.VERSION="0.0.1",l.default=p,e.exports=l.default},{}]},{},[1])(1)});