"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8170],{99388:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}}),n(61013);var r=n(28469),o=n(56705),s=n(44614),i=(n(78066),n(664),n(15359),n(76543)),a=n(61642);function l(){o.ZP.show();var e=this;return ApiClient.getServerConfiguration().then((function(t){t.EnableSlowResponseWarning=e.querySelector("#chkSlowResponseWarning").checked,t.SlowResponseThresholdMs=e.querySelector("#txtSlowResponseWarning").value,ApiClient.updateServerConfiguration(t).then((function(){i.ZP.processServerConfigurationUpdateResult()}),(function(){(0,a.Z)(s.ZP.translate("ErrorDefault")),i.ZP.processServerConfigurationUpdateResult()}))})),!1}function c(e){e.querySelector(".logsForm").addEventListener("submit",l),e.addEventListener("viewbeforeshow",(function(){o.ZP.show();var t=ApiClient;t.getJSON(t.getUrl("System/Logs")).then((function(n){var o="";o+='<div class="paperList">',o+=n.map((function(e){var n=t.getUrl("System/Logs/Log",{name:e.Name}),o="";o+='<a is="emby-linkbutton" href="'+(n+="&api_key="+t.accessToken())+'" target="_blank" class="listItem listItem-border" style="color:inherit;">',o+='<div class="listItemBody two-line">',o+="<h3 class='listItemBodyText'>"+e.Name+"</h3>";var s=r.ZP.parseISO8601Date(e.DateModified,!0),i=r.ZP.toLocaleDateString(s);return o+='<div class="listItemBodyText secondary">'+(i+=" "+r.ZP.getDisplayTime(s))+"</div>",(o+="</div>")+"</a>"})).join(""),o+="</div>",e.querySelector(".serverLogs").innerHTML=o})),t.getServerConfiguration().then((function(t){e.querySelector("#chkSlowResponseWarning").checked=t.EnableSlowResponseWarning,e.querySelector("#txtSlowResponseWarning").value=t.SlowResponseThresholdMs})),o.ZP.hide()}))}}}]);