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,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,o,t){return o&&_defineProperties(e.prototype,o),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,o){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return("string"===o?String:Number)(e);t=t.call(e,o||"default");if("object"!=_typeof(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}var DownloadIcon=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"createIcon",value:function(){$("#downloadIcon").length||this.getTemplateIcon().appendTo("body")}},{key:"deleteIcon",value:function(){$("#downloadIcon").length&&$("#downloadIcon").remove()}},{key:"erreurIcon",value:function(){$("#downloadIcon").length&&setTimeout(function(){$("#downloadIcon").remove()},1e4)}},{key:"getTemplateIcon",value:function(){var e=$("<div/>").attr("id","downloadIcon"),o=$("<img/>").attr("src","images/svg/download-light.svg");return e.append(o),e}}]))();