import{u as r,aN as c,j as e,aI as o,$ as m,i as d}from"../index.js";function x(){const{t}=r(),{currentLanguage:a,supportedLanguages:n,getLanguageName:l,changeLanguage:i}=c();return e.jsxs("div",{className:"flex flex-col gap-y-0.5 my-4",children:[e.jsx("p",{className:"text-sm leading-6 font-semibold text-white",children:t("customization.items.display-language.title")}),e.jsx("p",{className:"text-xs text-white/60",children:t("customization.items.display-language.description")}),e.jsx("div",{className:"flex items-center gap-x-4",children:e.jsx("select",{name:"userLang",className:"border-none bg-theme-settings-input-bg mt-2 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-fit py-2 px-4",defaultValue:a||"en",onChange:s=>i(s.target.value),children:n.map(s=>e.jsx("option",{value:s,children:l(s)},s))})})]})}function u(){const{t}=r(),{theme:a,setTheme:n,availableThemes:l}=o();return e.jsxs("div",{className:"flex flex-col gap-y-0.5 my-4",children:[e.jsx("p",{className:"text-sm leading-6 font-semibold text-white",children:t("customization.items.theme.title")}),e.jsx("p",{className:"text-xs text-white/60",children:t("customization.items.theme.description")}),e.jsx("div",{className:"flex items-center gap-x-4",children:e.jsx("select",{value:a,onChange:i=>n(i.target.value),className:"border-none bg-theme-settings-input-bg mt-2 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-fit py-2 px-4",children:Object.entries(l).map(([i,s])=>e.jsx("option",{value:i,children:s},i))})})]})}function h(){const{t}=r();return e.jsxs("div",{className:"w-screen h-screen overflow-hidden bg-theme-bg-container flex",children:[e.jsx(m,{}),e.jsx("div",{style:{height:d?"100%":"calc(100% - 32px)"},className:"relative md:ml-[2px] md:mr-[16px] md:my-[16px] md:rounded-[16px] bg-theme-bg-secondary w-full h-full overflow-y-scroll p-4 md:p-0",children:e.jsxs("div",{className:"flex flex-col w-full px-1 md:pl-6 md:pr-[86px] md:py-6 py-16",children:[e.jsxs("div",{className:"w-full flex flex-col gap-y-1 pb-6 border-white light:border-theme-sidebar-border border-b-2 border-opacity-10",children:[e.jsx("div",{className:"items-center",children:e.jsx("p",{className:"text-lg leading-6 font-bold text-white",children:t("customization.interface.title")})}),e.jsx("p",{className:"text-xs leading-[18px] font-base text-white text-opacity-60",children:t("customization.interface.description")})]}),e.jsx(u,{}),e.jsx(x,{})]})})]})}export{h as default};
