"use strict";var Clock=function(){function n(){var n=Preferences.Lights.TIME_OF_THE_DAY,t=parseInt(n),e=Math.round(60*(n-t));return t<10&&(t="0"+t),e<10&&(e="0"+e),{hours:t,minutes:e}}function t(){var t=n(),e="";return e+='<span class="hours">'+t.hours+"</span>",e+='<span class="delimiter">:</span>',e+='<span class="minutes">'+t.minutes+"</span>"}function e(){r.html(t());setInterval(function(){r.html(t())},330)}function s(){r.fadeOut(250),a=!1}function u(){r.fadeIn(250),a=!0}function i(n){"undefined"!=typeof n?u():a?s:u()}function c(n){return r=$('<div class="clock-container onscreenGui"></div>'),n.append(r),e(),r.click(function(){gui.getMainMenu().showLights()}),{ToggleClock:i}}var r=null,a=!0;return c}();