import{d as x,r as y,o as S,f as t,i as c,w as u,j as g,H as M,aB as B,p as b,v as l,h as d,F as _,x as m,y as p}from"./index-htML_UHV.js";const N={class:"bg-white p-2"},V=["onClick"],w=["onClick"],z=["onClick"],E=["onClick"],T=x({__name:"Notify",setup(F){let s=y("SYSTEM");const a=y({}),r=o=>{},C=(o,f)=>{s.value=o.props.name,v()},v=()=>{B(s.value).then(o=>{a.value=o})};return S(()=>{v()}),(o,f)=>{const i=b("el-tab-pane"),h=b("el-tabs");return l(),t("div",N,[c(h,{modelValue:g(s),"onUpdate:modelValue":f[0]||(f[0]=e=>M(s)?s.value=e:s=e),type:"card",class:"demo-tabs",onTabClick:C},{default:u(()=>[c(i,{label:"系统消息",name:"SYSTEM"},{default:u(()=>[d("ul",null,[(l(!0),t(_,null,m(a.value.records,(e,n)=>(l(),t("li",{key:n,onClick:k=>r(e),class:"mt-1 mb-1",style:{"font-size":"16px"}},p(e.content),9,V))),128))])]),_:1}),c(i,{label:"短息消息",name:"SMS"},{default:u(()=>[d("ul",null,[(l(!0),t(_,null,m(a.value.records,(e,n)=>(l(),t("li",{key:n,onClick:k=>r(e),class:"mt-1 mb-1",style:{"font-size":"16px"}},p(e.content),9,w))),128))])]),_:1}),c(i,{label:"邮件消息",name:"MAIL"},{default:u(()=>[d("ul",null,[(l(!0),t(_,null,m(a.value.records,(e,n)=>(l(),t("li",{key:n,onClick:k=>r(e),class:"mt-1 mb-1",style:{"font-size":"16px"}},p(e.content),9,z))),128))])]),_:1}),c(i,{label:"公众号消息",name:"OFFICIAL"},{default:u(()=>[d("ul",null,[(l(!0),t(_,null,m(a.value.records,(e,n)=>(l(),t("li",{key:n,onClick:k=>r(e),class:"mt-1 mb-1",style:{"font-size":"16px"}},p(e.content),9,E))),128))])]),_:1})]),_:1},8,["modelValue"])])}}});export{T as default};
