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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),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 n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}var WidgetHeure=(()=>_createClass(function e(){_classCallCheck(this,e),this.setTime()},[{key:"timeInterval",value:function(){var e=this,n=this,r=(this.widgetHeureInterval=setInterval(function(){e.setTime()},1e3),setInterval(function(){var e=document.getElementById("hourContainer"),t=document.getElementsByClassName("screenMultiple")[0];null==e&&null==t&&(clearInterval(n.widgetHeureInterval),clearInterval(r),sessionStorage.setItem("IsIntervalWidgetHeureLaunch","false"))},5e3));return n.widgetHeureInterval}},{key:"buildTemplate",value:function(e,t){var n=document.getElementById("hourContainer"),r=document.getElementsByClassName("screenMultiple")[0],n=(null!=n&&!r||"true"===sessionStorage.getItem("IsIntervalWidgetHeureLaunch")||(this.timeInterval(),sessionStorage.setItem("IsIntervalWidgetHeureLaunch","true")),$("#widgetTemplate").clone()),r=$("<div>"),t=(r.attr("id","hourContainer").css("text-align","center"),0<e.background.length&&n.attr("style","background-image:url(".concat(t.instanceMethodType.pathMedia+e.background,")")),$("<p>")),e=(t.attr("id","widgetHour"),t.css("font-size","5vw"),$("<p>"));return e.attr("id","widgetDate"),e.css("font-size","3vw"),t.appendTo(r),e.appendTo(r),r.appendTo(n),n}},{key:"setTime",value:function(){var e=$("#widgetDate"),t=$("#widgetHour"),n=new Date,r=n.getHours(),o=(r<10&&(r="0"+r),n.getMinutes()),i=(o<10&&(o="0"+o),n.getSeconds()),t=(t.text(r+":"+o+":"+(i=i<10?"0"+i:i)),n.toLocaleString("default",{weekday:"long"})),r=n.toLocaleString("default",{month:"long"}),t=t.charAt(0).toUpperCase()+t.slice(1),o=n.getDate();e.text("".concat(t," ").concat(o," ").concat(r," ").concat(n.getFullYear()))}}]))();