import{g as f,m as h,f3 as S,C as p,P as g,o as k,Q as n,w as a,b as l,B as x,d as v,t as b,q as d,r as B}from"./Czresmtb.js";import s from"./CCyh6GyX.js";import{_ as w}from"./TP8I8QlK.js";import{_ as L}from"./DlAUqK2U.js";const A=f({__name:"theme-switcher",setup(y){const{t}=h(),{store:o}=S(),r=p(()=>{switch(o.value){case"dark":return"Dark";case"light":return"Light";default:return"Auto"}}),c=p(()=>{switch(o.value){case"dark":return"ri:moon-fill";case"light":return"ri:sun-fill";default:return"ri:contrast-2-line"}}),i=[{label:()=>n("div",{class:"flex items-center"},[n(s,{name:"ri:sun-fill",class:"mr-2"}),t("Light")]),key:"light"},{label:()=>n("div",{class:"flex items-center"},[n(s,{name:"ri:moon-fill",class:"mr-2"}),t("Dark")]),key:"dark"},{label:()=>n("div",{class:"flex items-center"},[n(s,{name:"ri:contrast-2-line",class:"mr-2"}),t("Auto")]),key:"auto"}],u=e=>{(e==="light"||e==="dark"||e==="auto")&&(o.value=e)};return(e,C)=>{const _=x,m=w;return k(),g(m,{options:i,trigger:"click",onSelect:u},{default:a(()=>[l(_,{text:!0,block:""},{icon:a(()=>[l(d(s),{name:c.value},null,8,["name"])]),default:a(()=>[v(" "+b(d(t)(r.value)),1)]),_:1})]),_:1})}}}),D=f({__name:"language-switcher",setup(y){const{locale:t,setLocale:o}=h(),r={en:{text:"English",icon:"ri:translate"},zh:{text:"中文",icon:"ri:translate-2"},tr:{text:"Türkçe",icon:"ri:translate"}},c=p(()=>r[t.value]||r.en),i=B([{label:"English",key:"en"},{label:"中文",key:"zh"},{label:"Türkçe",key:"tr"}]),u=async e=>{await o(e)};return(e,C)=>{const _=x,m=w;return k(),g(m,{options:i.value,trigger:"click",onSelect:u},{default:a(()=>[l(_,{text:!0,block:""},{icon:a(()=>[l(d(s),{name:c.value.icon},null,8,["name"])]),default:a(()=>[v(" "+b(c.value.text),1)]),_:1})]),_:1},8,["options"])}}}),E=L(D,[["__scopeId","data-v-fe2552a2"]]);export{A as _,E as a};
