"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[16949],{7274:function(e,t,u){u.r(t),u(96244);var o=u(8566),n=u(89100);function i(){o.Ay.show();var e=this;return ApiClient.getServerConfiguration().then((function(t){t.MinResumePct=e.querySelector("#txtMinResumePct").value,t.MaxResumePct=e.querySelector("#txtMaxResumePct").value,t.MinAudiobookResume=e.querySelector("#txtMinAudiobookResume").value,t.MaxAudiobookResume=e.querySelector("#txtMaxAudiobookResume").value,t.MinResumeDurationSeconds=e.querySelector("#txtMinResumeDuration").value,ApiClient.updateServerConfiguration(t).then(n.default.processServerConfigurationUpdateResult)})),!1}$(document).on("pageinit","#playbackConfigurationPage",(function(){$(".playbackConfigurationForm").off("submit",i).on("submit",i)})).on("pageshow","#playbackConfigurationPage",(function(){o.Ay.show();var e=this;ApiClient.getServerConfiguration().then((function(t){!function(e,t){e.querySelector("#txtMinResumePct").value=t.MinResumePct,e.querySelector("#txtMaxResumePct").value=t.MaxResumePct,e.querySelector("#txtMinAudiobookResume").value=t.MinAudiobookResume,e.querySelector("#txtMaxAudiobookResume").value=t.MaxAudiobookResume,e.querySelector("#txtMinResumeDuration").value=t.MinResumeDurationSeconds,o.Ay.hide()}(e,t)}))}))}}]);