Files
easystream-main/f_scripts/shared/videojs/videojs-settings-menu.min.js
SamiAhmed7777 0b7e2d0a5b feat: Add comprehensive documentation suite and reorganize project structure
- Created complete documentation in docs/ directory
- Added PROJECT_OVERVIEW.md with feature highlights and getting started guide
- Added ARCHITECTURE.md with system design and technical details
- Added SECURITY.md with comprehensive security implementation guide
- Added DEVELOPMENT.md with development workflows and best practices
- Added DEPLOYMENT.md with production deployment instructions
- Added API.md with complete REST API documentation
- Added CONTRIBUTING.md with contribution guidelines
- Added CHANGELOG.md with version history and migration notes
- Reorganized all documentation files into docs/ directory for better organization
- Updated README.md with proper documentation links and quick navigation
- Enhanced project structure with professional documentation standards
2025-10-21 00:39:45 -07:00

7 lines
7.5 KiB
JavaScript

/**
* videojs-settings-menu
* @version 0.0.2
* @copyright 2016 Fruitsapje <hero@streamone.nl>
* @license MIT
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.videojsSettingsMenu=e()}}(function(){return function e(t,n,o){function i(u,l){if(!n[u]){if(!t[u]){var s="function"==typeof require&&require;if(!l&&s)return s(u,!0);if(r)return r(u,!0);var a=new Error("Cannot find module '"+u+"'");throw a.code="MODULE_NOT_FOUND",a}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return i(n?n:e)},f,f.exports,e,t,n,o)}return n[u].exports}for(var r="function"==typeof require&&require,u=0;u<o.length;u++)i(o[u]);return i}({1:[function(e,t,n){(function(o){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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)}Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function(e,t,n){for(var o=!0;o;){var i=e,r=t,u=n;o=!1,null===i&&(i=Function.prototype);var l=Object.getOwnPropertyDescriptor(i,r);if(void 0!==l){if("value"in l)return l.value;var s=l.get;if(void 0===s)return;return s.call(u)}var a=Object.getPrototypeOf(i);if(null===a)return;e=a,t=r,n=u,o=!0,l=a=void 0}},a="undefined"!=typeof window?window.videojs:"undefined"!=typeof o?o.videojs:null,f=i(a),d=e("./settings-menu-item.js"),c=i(d),p=f.default.getComponent("MenuButton"),h=f.default.getComponent("Menu"),v=f.default.getComponent("Component"),y=function(e){function t(e,n){r(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n),this.el_.setAttribute("aria-label","Settings Menu"),this.on("mouseleave",f.default.bind(this,this.hideChildren))}return u(t,e),l(t,[{key:"buildCSSClass",value:function(){return"vjs-settings-menu vjs-icon-cog "+s(Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"createMenu",value:function(){var e=new h(this.player()),t=this.options_.entries;if(t){var n=function(){f.default.hasClass(this.el_,"open")?f.default.removeClass(this.el_,"open"):f.default.addClass(this.el_,"open")},o=!0,i=!1,r=void 0;try{for(var u,l=t[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var s=u.value,a=new c.default(this.player(),this.options_,s);e.addChild(a),a.on("click",f.default.bind(this,this.hideChildren)),a.on("click",n)}}catch(e){i=!0,r=e}finally{try{!o&&l.return&&l.return()}finally{if(i)throw r}}}return e}},{key:"hideChildren",value:function(){var e=!0,t=!1,n=void 0;try{for(var o,i=this.menu.children()[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var r=o.value;r.hideSubMenu()}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}}]),t}(p);y.prototype.controlText_="Settings Menu",v.registerComponent("SettingsMenuButton",y),n.default=y,t.exports=n.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./settings-menu-item.js":2}],2:[function(e,t,n){(function(e){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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)}Object.defineProperty(n,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=function(e,t,n){for(var o=!0;o;){var i=e,r=t,u=n;o=!1,null===i&&(i=Function.prototype);var l=Object.getOwnPropertyDescriptor(i,r);if(void 0!==l){if("value"in l)return l.value;var s=l.get;if(void 0===s)return;return s.call(u)}var a=Object.getPrototypeOf(i);if(null===a)return;e=a,t=r,n=u,o=!0,l=a=void 0}},s="undefined"!=typeof window?window.videojs:"undefined"!=typeof e?e.videojs:null,a=o(s),f=a.default.getComponent("MenuItem"),d=a.default.getComponent("PlaybackRateMenuButton"),c=a.default.getComponent("Component"),p=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},h=function(e){function t(e,n,o){i(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n);var r=p(o),u=a.default.getComponent(r);if(!u)throw new Error("Component "+r+" does not exist");this.subMenu=new u(this.player(),n);var s=a.default.bind(this,this.update),f=function(){setTimeout(s,0)},d=!0,h=!1,v=void 0;try{for(var y,b=this.subMenu.menu.children()[Symbol.iterator]();!(d=(y=b.next()).done);d=!0){var m=y.value;m instanceof c&&m.on("click",f)}}catch(e){h=!0,v=e}finally{try{!d&&b.return&&b.return()}finally{if(h)throw v}}this.update()}return r(t,e),u(t,[{key:"createEl",value:function(){var e=a.default.createEl("li",{className:"vjs-menu-item"});return this.settingsSubMenuTitleEl_=a.default.createEl("div",{className:"vjs-settings-sub-menu-title"}),e.appendChild(this.settingsSubMenuTitleEl_),this.settingsSubMenuValueEl_=a.default.createEl("div",{className:"vjs-settings-sub-menu-value"}),e.appendChild(this.settingsSubMenuValueEl_),this.settingsSubMenuEl_=a.default.createEl("div",{className:"vjs-settings-sub-menu vjs-hidden"}),e.appendChild(this.settingsSubMenuEl_),e}},{key:"handleClick",value:function(){a.default.removeClass(this.el_,"open"),l(Object.getPrototypeOf(t.prototype),"handleClick",this).call(this),a.default.hasClass(this.settingsSubMenuEl_,"vjs-hidden")?a.default.removeClass(this.settingsSubMenuEl_,"vjs-hidden"):a.default.addClass(this.settingsSubMenuEl_,"vjs-hidden")}},{key:"update",value:function(){if(this.settingsSubMenuTitleEl_.innerHTML=this.subMenu.controlText_+":",this.settingsSubMenuEl_.appendChild(this.subMenu.menu.el_),this.subMenu instanceof d)this.settingsSubMenuValueEl_.innerHTML=this.subMenu.labelEl_.innerHTML;else{var e=!0,t=!1,n=void 0;try{for(var o,i=this.subMenu.menu.children_[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var r=o.value;r instanceof c&&(r.options_.selected||r.hasClass("vjs-selected"))&&(this.settingsSubMenuValueEl_.innerHTML=r.options_.label)}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}}},{key:"hideSubMenu",value:function(){a.default.hasClass(this.el_,"open")&&(a.default.addClass(this.settingsSubMenuEl_,"vjs-hidden"),a.default.removeClass(this.el_,"open"))}}]),t}(f);h.prototype.contentElType="button",a.default.registerComponent("SettingsMenuItem",h),n.default=h,t.exports=n.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,n){"use strict";e("./components/settings-menu-button.js"),e("./components/settings-menu-item.js")},{"./components/settings-menu-button.js":1,"./components/settings-menu-item.js":2}]},{},[3])(3)});