text: /**
   * @file post-submit-button.js
   */
  
  import videojs from'video.js';
  import KomentButton from'../koment-button';
  let Component = videojs.getComponent('Component');
  /**
   * The button component for toggling and selecting koment
   * Chapters act much differently than other text tracks
   * Cues are navigation vs. other tracks of alternative languages
   *
   * @param {Object} player  Player object
   * @param {Object=} options Object of option names and values
   * @param {Function=} ready    Ready callback function
   * @extends Button
   * @class PostSubmitButton
   */
  class PostSubmitButton extends KomentButton {
  
    constructor (player, options, ready) {
      super(player, options, ready)
    }
  
    /**
     * Allow sub components to stack CSS class names
     *
     * @return {String} The constructed class name
     * @method buildCSSClass
     */
    buildCSSClass () {
      return `kmt-post-submit-button ${super.buildCSSClass()}`
    }
  
    /**
     * Handle click on text track
     *
     * @method handleClick
     */
    handleClick (event) {
      super.handleClick(event);
      this.player_.trigger('submit');
    }
  }
  
  PostSubmitButton.prototype.controlText_ = 'Send';
  
  Component.registerComponent('PostSubmitButton', PostSubmitButton);
  export default PostSubmitButton
  