import{d as a,a0 as e,a5 as s,o as n,r as t,c as l,w as o,L as u,u as c,i,h as r,j as m,k as d,O as g,a as h,b as p,g as f,F as _,a3 as k,C as v,f as C,t as b,D as y,l as j,a9 as w,_ as x}from"./index-CY26MUkV.js";import{u as L}from"./useUserStore.Cw6yzw5k.js";const D=[{code:"zh-Hans",name:"简体中文"},{code:"en",name:"English"}],E=x(a({__name:"language",setup(a){const{nowLanguage:x}=e(L()),{styles:E}=s();n(()=>{z()});const S=t([]),z=()=>{S.value=D.map(a=>{let e=!1;return x.value.name===a.code&&(e=!0),{code:a.code,name:a.name,isChoice:e}})};return(a,e)=>{const s=r(d("up-navbar"),m),n=i,t=r(d("up-icon"),g);return h(),l(n,{class:"setting-container",style:u({...c(E)})},{default:o(()=>[p(s,{title:a.$t("LanguageSetting"),border:"",autoBack:!0},null,8,["title"]),(h(!0),f(_,null,k(S.value,(a,e)=>(h(),l(n,{class:"setting-item",key:e,onClick:e=>(a=>{x.value.name!==a.code&&(j.set("language",a.code),S.value.forEach(a=>a.isChoice=!1),a.isChoice=!0,w({url:"/app/main/whitePage?path=1"}))})(a)},{default:o(()=>[p(n,null,{default:o(()=>[C(b(a.name),1)]),_:2},1024),v(p(t,{name:"checkbox-mark"},null,512),[[y,a.isChoice]])]),_:2},1032,["onClick"]))),128))]),_:1},8,["style"])}}}),[["__scopeId","data-v-018908e6"]]);export{E as default};
