var v=(i,r,a)=>new Promise((e,d)=>{var l=t=>{try{s(a.next(t))}catch(o){d(o)}},n=t=>{try{s(a.throw(t))}catch(o){d(o)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(l,n);s((a=a.apply(i,r)).next())});import{d as h}from"./notice-manage-9888f022.js";import{_ as x}from"./index.vue_vue_type_style_index_0_lang-f807b015.js";import{d as g,r as k,K as C,j as _,o as c,h as f,w as u,e as N,k as w,b as m,t as y,c as p,F as B,v as V,i as D}from"./index-90c78f99.js";const L={class:"text-center font-semibold text-24 mb-16"},T=["innerHTML"],$={key:0,class:"mt-16"},j=m("p",null,"附件：",-1),S=g({__name:"notice-dialog",props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(i,{emit:r}){const a=i,e=k(),d=()=>v(this,null,function*(){const l=yield h(a.data&&a.data.id);e.value=l.data});return C(()=>a.visible,l=>{l&&d()}),(l,n)=>{const s=_("el-button"),t=_("el-dialog");return c(),f(t,{"model-value":i.visible,title:"公告详情",width:"772px","destroy-on-close":"",onClose:n[1]||(n[1]=o=>r("close"))},{footer:u(()=>[N(s,{onClick:n[0]||(n[0]=o=>r("close"))},{default:u(()=>[w(" 关闭 ")]),_:1})]),default:u(()=>[m("div",null,[m("p",L,y(e.value&&e.value.title),1),m("div",{innerHTML:e.value&&e.value.content},null,8,T),e.value&&e.value.attachment?(c(),p("div",$,[j,(c(!0),p(B,null,V(JSON.parse(e.value.attachment),(o,b)=>(c(),f(x,{key:b,"file-name":o.fileName,"file-id":o.fileId},null,8,["file-name","file-id"]))),128))])):D("",!0)])]),_:1},8,["model-value"])}}});export{S as _};
