"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8e3],{58e3:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}}),n(52077),n(72482),n(25901),n(92189),n(63238),n(61418);var i=n(47518),o=n(90914),r=n(78695),l=n(74227),a=n(44614),s=n(83094),c=(n(85427),n(78066),n(21865),n(83225),n(6626),(i.Z.tv||i.Z.xboxOne)&&window.confirm?function(e){"string"==typeof e&&(e={label:"",text:e});var t=("<br/>","\n",(e.label||"").split("<br/>").join("\n")),n=prompt(t,e.text||"");return n?Promise.resolve(n):Promise.reject(n)}:function(e){return"string"==typeof e&&(e={title:"",text:e}),function(e){var t={removeOnClose:!0,scrollY:!1};r.Z.tv&&(t.size="fullscreen");var n,i=o.default.createDialog(t);return i.classList.add("formDialog"),i.innerHTML=a.ZP.translateHtml('<div class="formDialogHeader"> <button is="paper-icon-button-light" class="btnCancel autoSize" tabindex="-1" title="${ButtonBack}"> <span class="material-icons arrow_back" aria-hidden="true"></span> </button> <h3 class="formDialogHeaderTitle"></h3> </div> <div class="formDialogContent smoothScrollY"> <div class="dialogContentInner dialog-content-centered" style="padding-top:2em"> <form> <div class="inputContainer"> <input is="emby-input" type="text" id="txtInput" label=""/> <div class="fieldDescription"></div> </div> <div class="formDialogFooter"> <button is="emby-button" type="submit" class="raised btnSubmit block formDialogFooterItem button-submit"> <span class="submitText"></span> </button> </div> </form> </div> </div> ',"core"),r.Z.tv?l.default.centerFocus.on(i.querySelector(".formDialogContent"),!1):(i.querySelector(".dialogContentInner").classList.add("dialogContentInner-mini"),i.classList.add("dialog-fullscreen-lowres")),i.querySelector(".btnCancel").addEventListener("click",(function(){o.default.close(i)})),i.querySelector(".formDialogHeaderTitle").innerText=e.title||"",e.description?i.querySelector(".fieldDescription").innerText=e.description:i.querySelector(".fieldDescription").classList.add("hide"),function(e,t){var n=e.querySelector("#txtInput");n.label?n.label(t.label||""):n.setAttribute("label",t.label||""),n.value=t.value||""}(i,e),i.querySelector("form").addEventListener("submit",(function(e){return n=i.querySelector("#txtInput").value,e.preventDefault(),e.stopPropagation(),setTimeout((function(){o.default.close(i)}),300),!1})),i.querySelector(".submitText").innerText=e.confirmText||a.ZP.translate("ButtonOk"),i.style.minWidth="".concat(Math.min(400,s.ZP.getWindowSize().innerWidth-50),"px"),o.default.open(i).then((function(){return r.Z.tv&&l.default.centerFocus.off(i.querySelector(".formDialogContent"),!1),n||Promise.reject()}))}(e)})}}]);