{"version":3,"names":["e","o","exports","module","require","define","amd","self","videojsSeekButtons","videojs","this","hasOwnProperty","default","getComponent","t","r","registerPlugin","plugin","n","ready","addClass","forward","controlBar","seekForward","addChild","direction","seconds","el","insertBefore","firstChild","nextSibling","back","seekBack","mergeOptions","VERSION","s","call","options_","controlText","localize","replace","prototype","Object","create","constructor","__proto__","buildCSSClass","handleClick","player_","currentTime","registerComponent"],"sources":["video.js.videojs-seek-buttons.min.js"],"sourcesContent":["/*! @name videojs-seek-buttons @version 1.5.0 @license Apache-2.0 */\n!function(e,o){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=o(require(\"video.js\")):\"function\"==typeof define&&define.amd?define([\"video.js\"],o):(e=e||self).videojsSeekButtons=o(e.videojs)}(this,function(e){\"use strict\";var o=(e=e&&e.hasOwnProperty(\"default\")?e.default:e).getComponent(\"Button\"),t={},r=e.registerPlugin||e.plugin,n=function(o){var r=this;this.ready(function(){!function(e,o){e.addClass(\"vjs-seek-buttons\"),o.forward&&o.forward>0&&(e.controlBar.seekForward=e.controlBar.addChild(\"seekButton\",{direction:\"forward\",seconds:o.forward}),e.controlBar.el().insertBefore(e.controlBar.seekForward.el(),e.controlBar.el().firstChild.nextSibling)),o.back&&o.back>0&&(e.controlBar.seekBack=e.controlBar.addChild(\"seekButton\",{direction:\"back\",seconds:o.back}),e.controlBar.el().insertBefore(e.controlBar.seekBack.el(),e.controlBar.el().firstChild.nextSibling))}(r,e.mergeOptions(t,o))})};n.VERSION=\"1.5.0\";var s=function(e){var o,t;function r(o,t){var r;return\"forward\"===(r=e.call(this,o,t)||this).options_.direction?r.controlText(r.localize(\"Seek forward {{seconds}} seconds\").replace(\"{{seconds}}\",r.options_.seconds)):\"back\"===r.options_.direction&&r.controlText(r.localize(\"Seek back {{seconds}} seconds\").replace(\"{{seconds}}\",r.options_.seconds)),r}t=e,(o=r).prototype=Object.create(t.prototype),o.prototype.constructor=o,o.__proto__=t;var n=r.prototype;return n.buildCSSClass=function(){return\"vjs-seek-button skip-\"+this.options_.direction+\" skip-\"+this.options_.seconds+\" \"+e.prototype.buildCSSClass.call(this)},n.handleClick=function(){var e=this.player_.currentTime();\"forward\"===this.options_.direction?this.player_.currentTime(e+this.options_.seconds):\"back\"===this.options_.direction&&this.player_.currentTime(e-this.options_.seconds)},r}(o);return e.registerComponent(\"SeekButton\",s),r(\"seekButtons\",n),n});\n"],"mappings":";CACC,SAASA,EAAEC,GAAG,iBAAiBC,SAAS,oBAAoBC,OAAOA,OAAOD,QAAQD,EAAEG,QAAQ,aAAa,mBAAmBC,QAAQA,OAAOC,IAAID,OAAO,CAAC,YAAYJ,IAAID,EAAEA,GAAGO,MAAMC,mBAAmBP,EAAED,EAAES,QAAQ,CAAjN,CAAmNC,MAAK,SAASV,GAAG,aAAa,IAAIC,GAAGD,EAAEA,GAAGA,EAAEW,eAAe,WAAWX,EAAEY,QAAQZ,GAAGa,aAAa,UAAUC,EAAE,CAAC,EAAEC,EAAEf,EAAEgB,gBAAgBhB,EAAEiB,OAAOC,EAAE,SAASjB,GAAG,IAAIc,EAAEL,KAAKA,KAAKS,OAAM,YAAY,SAASnB,EAAEC,GAAGD,EAAEoB,SAAS,oBAAoBnB,EAAEoB,SAASpB,EAAEoB,QAAQ,IAAIrB,EAAEsB,WAAWC,YAAYvB,EAAEsB,WAAWE,SAAS,aAAa,CAACC,UAAU,UAAUC,QAAQzB,EAAEoB,UAAUrB,EAAEsB,WAAWK,KAAKC,aAAa5B,EAAEsB,WAAWC,YAAYI,KAAK3B,EAAEsB,WAAWK,KAAKE,WAAWC,cAAc7B,EAAE8B,MAAM9B,EAAE8B,KAAK,IAAI/B,EAAEsB,WAAWU,SAAShC,EAAEsB,WAAWE,SAAS,aAAa,CAACC,UAAU,OAAOC,QAAQzB,EAAE8B,OAAO/B,EAAEsB,WAAWK,KAAKC,aAAa5B,EAAEsB,WAAWU,SAASL,KAAK3B,EAAEsB,WAAWK,KAAKE,WAAWC,aAAa,CAAte,CAAwef,EAAEf,E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