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KAAK,SAAS,YAAY,EAC5B,EAEO,CACT,CAxDA,CAwDE,UAUF,cAAc,UAAU,aAAe,iBAEvC,IAAI,OAAS,QAAQ,UAAU,UAC3B,UAAY,QAAQ,aAAa,aAEjC,SAAW,CAAC,EAEhB,UAAU,kBAAkB,eAAgB,cAC5C,UAAU,kBAAkB,gBAAiB,eAO7C,IAAI,cAEJ,SAAU,GAgBR,SAAS,EAAc,EAAQ,GAC7B,IAAI,EAUJ,OAPA,EAAQ,EAAQ,KAAK,KAAM,IAAW,MAChC,QAAU,QAAQ,aAAa,SAAU,GAE/C,EAAM,OAAO,OAAM,WACjB,EAAM,OAAO,SAAS,oBACxB,IAEO,CACT,CAEA,OA7BA,eAAe,EAAe,GA6BvB,CACT,CA/BA,CA+BE,QAGF,cAAc,aAAe,CAAC,EAE9B,cAAc,QAAU,QAExB,QAAQ,eAAe,gBAAiB,eAExC,OAAO,QAAU","file":"/npm/@youon/videojs-replayforward@1.0.1/dist/videojs-replayforward.cjs.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.19.2.\n * Original file: /npm/@youon/videojs-replayforward@1.0.1/dist/videojs-replayforward.cjs.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*! @name @youon/videojs-replayforward @version 1.0.1 @license MIT */\n'use strict';\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar videojs = _interopDefault(require('video.js'));\n\nfunction _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n  subClass.__proto__ = superClass;\n}\n\nvar version = \"1.0.1\";\n\nvar Button = videojs.getComponent('Button'); // eslint-disable-line\n\n/**\r\n * The initial play button that shows before the video has played. The hiding of the\r\n * `BigPlayButton` get done via CSS and `Player` states.\r\n *\r\n * @extends Button\r\n */\n\nvar ReplayButton =\n/*#__PURE__*/\nfunction (_Button) {\n  _inheritsLoose(ReplayButton, _Button);\n\n  /**\r\n   * The constructor\r\n   *\r\n   * @param {Player} player\r\n   *        The `Player` that this class should be attached to.\r\n   *\r\n   * @param {Object} [options]\r\n   *        Object of option names and values.\r\n   */\n  function ReplayButton(player, options) {\n    var _this;\n\n    _this = _Button.call(this, player, options) || this;\n    _this.secs_ = -10;\n    return _this;\n  }\n  /**\r\n   * Builds the default DOM `className`.\r\n   *\r\n   * @return {string}\r\n   *         The DOM `className` for this object. Always returns 'vjs-big-play-button'.\r\n   */\n\n\n  var _proto = ReplayButton.prototype;\n\n  _proto.buildCSSClass = function buildCSSClass() {\n    // return 'vjs-pip-button';\n    return \"vjs-replay-10-control \" + _Button.prototype.buildCSSClass.call(this);\n  };\n  /**\r\n   * This gets called when a `BigPlayButton` \"clicked\". See {@link ClickableComponent}\r\n   * for more detailed information on what a click can be.\r\n   *\r\n   * @param {EventTarget~Event} event\r\n   *        The `keydown`, `tap`, or `click` event that caused this function to be\r\n   *        called.\r\n   *\r\n   * @listens tap\r\n   * @listens click\r\n   */\n\n\n  _proto.handleClick = function handleClick(event) {\n    var time = this.player().currentTime() + this.secs_;\n\n    if (time < 0) {\n      time = 0;\n    }\n\n    this.player().currentTime(time);\n  };\n\n  return ReplayButton;\n}(Button);\n/**\r\n * The text that should display over the `BigPlayButton`s controls.\r\n * Added to for localization.\r\n *\r\n * @type {string}\r\n * @private\r\n */\n\n\nReplayButton.prototype.controlText_ = 'Replay Button';\n\nvar Button$1 = videojs.getComponent('Button'); // eslint-disable-line\n\n/**\r\n * The initial play button that shows before the video has played. The hiding of the\r\n * `BigPlayButton` get done via CSS and `Player` states.\r\n *\r\n * @extends Button\r\n */\n\nvar ForwardButton =\n/*#__PURE__*/\nfunction (_Button) {\n  _inheritsLoose(ForwardButton, _Button);\n\n  /**\r\n   * The constructor\r\n   *\r\n   * @param {Player} player\r\n   *        The `Player` that this class should be attached to.\r\n   *\r\n   * @param {Object} [options]\r\n   *        Object of option names and values.\r\n   */\n  function ForwardButton(player, options) {\n    var _this;\n\n    _this = _Button.call(this, player, options) || this;\n    _this.secs_ = 10;\n    return _this;\n  }\n  /**\r\n   * Builds the default DOM `className`.\r\n   *\r\n   * @return {string}\r\n   *         The DOM `className` for this object. Always returns 'vjs-big-play-button'.\r\n   */\n\n\n  var _proto = ForwardButton.prototype;\n\n  _proto.buildCSSClass = function buildCSSClass() {\n    return \"vjs-forward-10-control \" + _Button.prototype.buildCSSClass.call(this);\n  };\n  /**\r\n   * This gets called when a `BigPlayButton` \"clicked\". See {@link ClickableComponent}\r\n   * for more detailed information on what a click can be.\r\n   *\r\n   * @param {EventTarget~Event} event\r\n   *        The `keydown`, `tap`, or `click` event that caused this function to be\r\n   *        called.\r\n   *\r\n   * @listens tap\r\n   * @listens click\r\n   */\n\n\n  _proto.handleClick = function handleClick(event) {\n    var time = this.player().currentTime() + this.secs_;\n\n    if (time < 0) {\n      time = 0;\n    }\n\n    this.player().currentTime(time);\n  };\n\n  return ForwardButton;\n}(Button$1);\n/**\r\n * The text that should display over the `BigPlayButton`s controls.\r\n * Added to for localization.\r\n *\r\n * @type {string}\r\n * @private\r\n */\n\n\nForwardButton.prototype.controlText_ = 'Forward Button';\n\nvar Plugin = videojs.getPlugin('plugin');\nvar Component = videojs.getComponent('Component'); // Default options for the plugin.\n\nvar defaults = {}; // Register the Components\n\nComponent.registerComponent('ReplayButton', ReplayButton);\nComponent.registerComponent('ForwardButton', ForwardButton);\n/**\n * An advanced Video.js plugin. For more information on the API\n *\n * See: https://blog.videojs.com/feature-spotlight-advanced-plugins/\n */\n\nvar Replayforward =\n/*#__PURE__*/\nfunction (_Plugin) {\n  _inheritsLoose(Replayforward, _Plugin);\n\n  /**\n   * Create a Replayforward plugin instance.\n   *\n   * @param  {Player} player\n   *         A Video.js Player instance.\n   *\n   * @param  {Object} [options]\n   *         An optional options object.\n   *\n   *         While not a core part of the Video.js plugin architecture, a\n   *         second argument of options is a convenient way to accept inputs\n   *         from your plugin's caller.\n   */\n  function Replayforward(player, options) {\n    var _this;\n\n    // the parent class will add player under this.player\n    _this = _Plugin.call(this, player) || this;\n    _this.options = videojs.mergeOptions(defaults, options);\n\n    _this.player.ready(function () {\n      _this.player.addClass('vjs-replayforward');\n    });\n\n    return _this;\n  }\n\n  return Replayforward;\n}(Plugin); // Define default values for the plugin's `state` object here.\n\n\nReplayforward.defaultState = {}; // Include the version number.\n\nReplayforward.VERSION = version; // Register the plugin with video.js.\n\nvideojs.registerPlugin('replayforward', Replayforward);\n\nmodule.exports = Replayforward;\n"]}