define(["exports","./../dialoghelper/dialoghelper.js","./../layoutmanager.js","./../common/globalize.js","./../loading/loading.js","./../emby-elements/emby-input/emby-input.js","./../emby-elements/emby-button/emby-button.js","./../emby-elements/emby-button/paper-icon-button-light.js","./../emby-elements/emby-scroller/emby-scroller.js"],function(_exports,_dialoghelper,_layoutmanager,_globalize,_loading,_embyInput,_embyButton,_paperIconButtonLight,_embyScroller){function LoadingDialog(options){this.options=options}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["material-icons","formDialogStyle","flexStyles"]),LoadingDialog.prototype.show=function(){var instance=this;return _loading.default.show(),require(["dialogTemplateHtml"]).then(function(responses){return function(instance,options,template){var dialogOptions={removeOnClose:!0,scrollY:!1},enableTvLayout=_layoutmanager.default.tv;return enableTvLayout&&(dialogOptions.size="fullscreen"),(dialogOptions=_dialoghelper.default.createDialog(dialogOptions)).classList.add("formDialog"),dialogOptions.innerHTML=_globalize.default.translateHtml(template,"sharedcomponents"),dialogOptions.classList.add("align-items-center"),dialogOptions.classList.add("justify-items-center"),(template=dialogOptions.querySelector(".formDialogContent")).style["flex-grow"]="initial",template.style["max-width"]="50%",template.style["max-height"]="60%",enableTvLayout?dialogOptions.querySelector(".formDialogHeader").style.marginTop="15%":dialogOptions.classList.add("dialog-fullscreen-lowres"),dialogOptions.querySelector(".formDialogHeaderTitle").innerHTML=options.title,dialogOptions.querySelector(".dialogContentInner").innerHTML=options.text,instance.dlg=dialogOptions,_dialoghelper.default.open(dialogOptions).then(function(){_loading.default.hide()})}(instance,instance.options,responses[0])})},LoadingDialog.prototype.setTitle=function(title){},LoadingDialog.prototype.setText=function(text){},LoadingDialog.prototype.hide=function(){this.dlg&&(_dialoghelper.default.close(this.dlg),this.dlg=null)},LoadingDialog.prototype.destroy=function(){this.dlg=null,this.options=null},_exports.default=LoadingDialog});