import{bW as b,bX as x,bY as g,bZ as v,b_ as y,b$ as N}from"./bootstrap-Bqxdt4iG.js";import{_ as k}from"./Switch.vue_vue_type_script_setup_true_lang-Bq9OHPJn.js";import{a1 as p,ai as o,aj as l,a9 as e,ak as s,az as u,ap as $,F as V,aq as w,p as t,ax as _,ay as f,E as B}from"../jse/index-index-BUJ_4tQs.js";const F={class:"space-y-4"},S={class:"space-y-0.5"},C=p({__name:"notification-setting",props:{formSchema:{default:()=>[]}},emits:["change"],setup(c,{emit:n}){const r=n;function i(m,d){r("change",{fieldName:m,value:d})}return(m,d)=>(l(),o(e(b),{class:"space-y-8"},{default:s(()=>[u("div",F,[(l(!0),$(V,null,w(c.formSchema,a=>(l(),o(e(x),{key:a.fieldName,type:"checkbox",name:a.fieldName},{default:s(()=>[t(e(g),{class:"flex flex-row items-center justify-between rounded-lg border p-4"},{default:s(()=>[u("div",S,[t(e(v),{class:"text-base"},{default:s(()=>[_(f(a.label),1)]),_:2},1024),t(e(y),null,{default:s(()=>[_(f(a.description),1)]),_:2},1024)]),t(e(N),null,{default:s(()=>[t(e(k),{"model-value":a.value,"onUpdate:modelValue":h=>i(a.fieldName,h)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["name"]))),128))])]),_:1}))}}),U=p({__name:"notification-setting",setup(c){const n=B(()=>[{value:!0,fieldName:"accountPassword",label:"账户密码",description:"其他用户的消息将以站内信的形式通知"},{value:!0,fieldName:"systemMessage",label:"系统消息",description:"系统消息将以站内信的形式通知"},{value:!0,fieldName:"todoTask",label:"待办任务",description:"待办任务将以站内信的形式通知"}]);return(r,i)=>(l(),o(e(C),{"form-schema":n.value},null,8,["form-schema"]))}});export{U as _};
