import{d as h,a as x,b as l,k as n,f as c,h as t,F as v,l as k,g as o,t as r,w,j as g,v as C,u as V,X as y,I as B,_ as N}from"./index-B_cVej0C.js";const P={class:"flex items-center"},F={class:"flex-1"},I={class:"wp-4"},U=h({name:"Preferences",__name:"Preferences",setup(b){const i=x([{title:"账户密码",illustrate:"其他用户的消息将以站内信的形式通知",checked:!0},{title:"系统消息",illustrate:"系统消息将以站内信的形式通知",checked:!0},{title:"待办任务",illustrate:"待办任务将以站内信的形式通知",checked:!0}]);function d(_,s){B(`${s.title}设置成功`,{type:"success"})}return(_,s)=>{const u=l("el-text"),p=l("el-switch"),m=l("el-divider");return c(),n("div",{class:C(["min-w-[180px]",V(y)()?"max-w-[100%]":"max-w-[70%]"])},[s[0]||(s[0]=t("h3",{class:"my-8!"},"偏好设置",-1)),(c(!0),n(v,null,k(i.value,(e,f)=>(c(),n("div",{key:f},[t("div",P,[t("div",F,[t("p",null,r(e.title),1),t("p",I,[o(u,{class:"mx-1",type:"info"},{default:w(()=>[g(r(e.illustrate),1)]),_:2},1024)])]),o(p,{modelValue:e.checked,"onUpdate:modelValue":a=>e.checked=a,"inline-prompt":"","active-text":"是","inactive-text":"否",onChange:a=>d(a,e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),o(m)]))),128))],2)}}}),z=N(U,[["__scopeId","data-v-c240ec83"]]);export{z as default};