function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}var HorairePlayer=(()=>_createClass(function e(t){_classCallCheck(this,e),this.turnOnScreen(t),this.instanceMethodType=t,this.initializeHorairePlayer(t)},[{key:"initializeHorairePlayer",value:function(t){var r=this,n=JSON.parse(localStorage.getItem("playlistLocale")),o=new HoraireAffiche;function e(){var e;n.lesHoraires.horaire?(e=o.checkIfSkipElementPlayer(n.lesHoraires))&&"on"===localStorage.getItem("screenState")?r.turnOffScreen(t):e||"off"!==localStorage.getItem("screenState")||(r.turnOnScreen(t),r.instanceMethodType.reboot(function(){})):3===(e=moment()).hour()&&30===e.minute()&&r.instanceMethodType.reboot(function(){})}e(),setInterval(function(){e()},3e4)}},{key:"turnOffScreen",value:function(e){localStorage.setItem("screenState","off"),e.setScreenOff(e)}},{key:"turnOnScreen",value:function(e){localStorage.setItem("screenState","on"),e.setScreenOn(e)}}]))();