text: H5P.ActionBar=function(t,e){"use strict";function ActionBar(t){e.call(this);var n=this,r=!1,o=H5P.jQuery('<ul class="h5p-actions"></ul>'),addActionButton=function(t,e){var handler=function(){n.trigger(t)};H5P.jQuery("<li/>",{class:"h5p-button h5p-noselect h5p-"+(e||t),role:"button",tabindex:0,title:H5P.t(t+"Description"),html:H5P.t(t),on:{click:handler,keypress:function(t){32===t.which&&(handler(),t.preventDefault())}},appendTo:o}),r=!0};(t.export||t.copy)&&addActionButton("reuse","export"),t.copyright&&addActionButton("copyrights"),t.embed&&addActionButton("embed"),t.icon&&(H5P.jQuery('<li><a class="h5p-link" href="http://h5p.org" target="_blank" title="'+H5P.t("h5pDescription")+'"></a></li>').appendTo(o),r=!0),n.getDOMElement=function(){return o},n.hasActions=function(){return r}}return ActionBar.prototype=Object.create(e.prototype),ActionBar.prototype.constructor=ActionBar,ActionBar}(H5P.jQuery,H5P.EventDispatcher);