import{V as s,r as a}from"./main.84523976.js";const d=s("state",()=>({current_state:a({state:{layout:"app",is_show_sidebar:!0,is_show_search:!1,is_dark_mode:!1,dark_mode:"light",locale:null,menu_style:"vertical",layout_style:"full",countryList:[{code:"zh",name:"Chinese"},{code:"da",name:"Danish"},{code:"en",name:"English"},{code:"fr",name:"French"},{code:"de",name:"German"},{code:"el",name:"Greek"},{code:"hu",name:"Hungarian"},{code:"it",name:"Italian"},{code:"ja",name:"Japanese"},{code:"pl",name:"Polish"},{code:"pt",name:"Portuguese"},{code:"ru",name:"Russian"},{code:"es",name:"Spanish"},{code:"sv",name:"Swedish"},{code:"tr",name:"Turkish"}]},mutations:{setLayout(o,e){o.layout=e},toggleSideBar(o,e){o.is_show_sidebar=e},toggleSearch(o,e){o.is_show_search=e},toggleLocale(o,e){e=e||"es",i18n.global.locale.value=e,localStorage.setItem("i18n_locale",e),o.locale=e},toggleDarkMode(o,e){e=e||"light",localStorage.setItem("dark_mode",e),o.dark_mode=e,e=="light"?o.is_dark_mode=!1:e=="dark"?o.is_dark_mode=!0:e=="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?o.is_dark_mode=!0:o.is_dark_mode=!1),o.is_dark_mode?document.querySelector("body").classList.add("dark"):document.querySelector("body").classList.remove("dark")},toggleMenuStyle(o,e){e=e||"",localStorage.setItem("menu_style",e),o.menu_style=e,!e||e==="vertical"?o.is_show_sidebar=!0:e==="collapsible-vertical"&&(o.is_show_sidebar=!1)},toggleLayoutStyle(o,e){e=e||"",localStorage.setItem("layout_style",e),o.layout_style=e}},getters:{layout(o){return o.layout}},actions:{},modules:{}})}));export{d as u};
