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 OldVersionMessage=(()=>_createClass(function e(t){_classCallCheck(this,e),this.instanceMethodType=t,this.generateHtml()},[{key:"generateHtml",value:function(){var e=document.getElementsByTagName("body")[0],t=document.createElement("div"),n=(t.classList.add("old-version-background"),document.createElement("div")),r=(n.classList.add("old-version-message-background"),this.generateMessageTitle()),i=this.generateMessageText(this.instanceMethodType);n.appendChild(r),n.appendChild(i),t.appendChild(n),e.appendChild(t)}},{key:"generateMessageTitle",value:function(){var e=document.createElement("p");return e.classList.add("old-version-message-text-title"),e.innerHTML="Écran incompatible",e}},{key:"generateMessageText",value:function(e){var e="webos"===e?"webOS":"Tizen",t=document.createElement("div"),n=document.createElement("p"),r=document.createElement("p");return t.classList.add("old-version-message-text-container"),n.classList.add("old-version-message-text"),r.classList.add("old-version-message-text"),n.innerHTML="Votre version de "+e+" est trop ancienne pour utiliser cette application.",r.innerHTML="La version minimale requise est 4.0.",t.appendChild(n),t.appendChild(r),t}}]))();