/*! phoscon-app 2024-01-19 */

$(document).ready(function(){initApp(),app.currentSite=SETTINGS_VIEW;var theme=localStorage.getItem("app.theme")||"Bright";$ts=$("#themeSelect"),$ts.html(""),$("link").each(function(l){if(this.title){var dis=this.title===theme?"":' disabled="disabled"';$ts.append('<option value="'+this.title+'"'+dis+">"+this.title+"</option>"),this.title===theme&&$ts.val(theme)}}),loadLanguage(),initSidenavBackButton(),screenMin(SCREEN_MIN_WIDTH_TABLET_PORTRAIT)&&openNav(),document.querySelector("#langSelect").value=app.lang||"en",$(document).on("change","#langSelect",function(){app.lang=$(this).val(),localStorage.setItem("app.lang",app.lang),app.Devicetype.sendMessage("CHANGED_LANGUAGE",app.lang),getLangJSON(),loadLanguage()}),$(document).on("change","#themeSelect",function(){app.theme=$(this).val(),setTheme(app.theme)})});