import{bW as h,bX as y,bY as v,bZ as N,b_ as x,b$ as g}from"./bootstrap-Bqxdt4iG.js";import{_ as $}from"./Switch.vue_vue_type_script_setup_true_lang-Bq9OHPJn.js";import{a1 as p,ai as n,aj as l,a9 as e,ak as s,az as d,ap as k,F,aq as V,p as t,ax as f,ay as _,E as w}from"../jse/index-index-BUJ_4tQs.js";const B={class:"space-y-4"},S={class:"space-y-0.5"},C=p({__name:"security-setting",props:{formSchema:{default:()=>[]}},emits:["change"],setup(r,{emit:c}){const o=c;function i(u,m){o("change",{fieldName:u,value:m})}return(u,m)=>(l(),n(e(h),{class:"space-y-8"},{default:s(()=>[d("div",B,[(l(!0),k(F,null,V(r.formSchema,a=>(l(),n(e(y),{key:a.fieldName,type:"checkbox",name:a.fieldName},{default:s(()=>[t(e(v),{class:"flex flex-row items-center justify-between rounded-lg border p-4"},{default:s(()=>[d("div",S,[t(e(N),{class:"text-base"},{default:s(()=>[f(_(a.label),1)]),_:2},1024),t(e(x),null,{default:s(()=>[f(_(a.description),1)]),_:2},1024)]),t(e(g),null,{default:s(()=>[t(e($),{"model-value":a.value,"onUpdate:modelValue":b=>i(a.fieldName,b)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["name"]))),128))])]),_:1}))}}),A=p({__name:"security-setting",setup(r){const c=w(()=>[{value:!0,fieldName:"accountPassword",label:"账户密码",description:"当前密码强度：强"},{value:!0,fieldName:"securityPhone",label:"密保手机",description:"已绑定手机：138****8293"},{value:!0,fieldName:"securityQuestion",label:"密保问题",description:"未设置密保问题，密保问题可有效保护账户安全"},{value:!0,fieldName:"securityEmail",label:"备用邮箱",description:"已绑定邮箱：ant***sign.com"},{value:!1,fieldName:"securityMfa",label:"MFA 设备",description:"未绑定 MFA 设备，绑定后，可以进行二次确认"}]);return(o,i)=>(l(),n(e(C),{"form-schema":c.value},null,8,["form-schema"]))}});export{A as _};
