"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[23827],{79120:function(e,t,a){a.r(t),a(44962),a(86584),a(78557),a(90076),a(83994),a(82367);var n=a(22696),o=a.n(n),r=(a(96244),a(8566)),u=a(5898),i=a(89100),c=a(41177);function l(){r.Ay.show();var e=this;return ApiClient.getNamedConfiguration(s).then((function(t){t.UserId=e.querySelector("#selectUser").value||null,t.ReleaseDateFormat=e.querySelector("#selectReleaseDateFormat").value,t.SaveImagePathsInNfo=e.querySelector("#chkSaveImagePaths").checked,t.EnablePathSubstitution=e.querySelector("#chkEnablePathSubstitution").checked,t.EnableExtraThumbsDuplication=e.querySelector("#chkEnableExtraThumbs").checked,ApiClient.updateNamedConfiguration(s,t).then((function(){var e;i.default.processServerConfigurationUpdateResult(),(e=[]).push(u.Ay.translate("MetadataSettingChangeHelp")),(0,c.A)({text:e.join("<br/><br/>")})}))})),!1}var s="xbmcmetadata";$(document).on("pageinit","#metadataNfoPage",(function(){$(".metadataNfoForm").off("submit",l).on("submit",l)})).on("pageshow","#metadataNfoPage",(function(){r.Ay.show();var e=this,t=ApiClient.getUsers(),a=ApiClient.getNamedConfiguration(s);Promise.all([t,a]).then((function(t){!function(e,t,a){var n='<option value="" selected="selected">'+u.Ay.translate("None")+"</option>";n+=a.map((function(e){return'<option value="'+e.Id+'">'+o()(e.Name)+"</option>"})).join("");var i=e.querySelector("#selectUser");i.innerHTML=n,i.value=t.UserId||"",e.querySelector("#selectReleaseDateFormat").value=t.ReleaseDateFormat,e.querySelector("#chkSaveImagePaths").checked=t.SaveImagePathsInNfo,e.querySelector("#chkEnablePathSubstitution").checked=t.EnablePathSubstitution,e.querySelector("#chkEnableExtraThumbs").checked=t.EnableExtraThumbsDuplication,r.Ay.hide()}(e,t[1],t[0])}))}))}}]);