define(["exports","./../emby-apiclient/events.js"],function(_exports,_events){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["css!modules/loading/loading.css"]);var loadingElem,isHidden,loading={show:function(){var elem=loadingElem;elem||(elem=document.createElement("div"),(loadingElem=elem).classList.add("mdl-spinner"),elem.innerHTML='<div class="mdl-spinner__layer mdl-spinner__layer-1"><div class="mdl-spinner__circle-clipper mdl-spinner__left"><div class="mdl-spinner__circle mdl-spinner__circleLeft"></div></div><div class="mdl-spinner__circle-clipper mdl-spinner__right"><div class="mdl-spinner__circle mdl-spinner__circleRight"></div></div></div>',document.body.appendChild(elem)),isHidden&&(isHidden=!1,_events.default.trigger(loading,"loading-state-change",[!0]),elem.classList.remove("hide"))},hide:function(){var elem=loadingElem;elem&&!isHidden&&(isHidden=!0,_events.default.trigger(loading,"loading-state-change",[!1]),elem.classList.add("hide"))}};_exports.default=loading});