/* empty css             *//* empty css                  *//* empty css                   *//* empty css                  *//* empty css                 */import{d as a,m as e,x as l,o as t,c as s,e as o,F as A,y as i,z as n,a as d,w as r,b as c,U as g,v,l as u,t as m,av as B,aw as f,aW as p,_ as C}from"./index-0ffeeea6.js";import{n as U,a as b,b as j}from"./index-bb32c924.js";import"./http-ffb58baa.js";/* empty css                 */const k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAmpJREFUaEPtmU12gjAQx2fwBNX2GO3rDSoLzqQ7ZKdnciHeoM8eo9WeQNIXMJhvEg3WtLBUgfnNV+Y/IkR+YeT2wwDw2xEcIvBvIvA6/5wy2PflUxkK/CYp9Dw7bBBICwAIxW45WYSA6BXgZb5fAIFca2ggiN4ArMYDAAEsP1bj9NooBAfQGc6Mlb/brSbC+8l6TNMqByAlZt9OcEEBtF7nUoUWckWSDfO6BoCIEUlSzL6sBR8MQClUaomU5w4ApwgIGAVmB2PBewOwdlhBUncVQvBN6DAaw5k5XQD189aPU4BjDoDnrgVghDAC1C+zGWmqPkt3cQFgjz3XQ/MJZgetrcqHXd3D1jUSrFLbIeUD0ERjzNeENgoCgPwCk7G0qyCSLf0+gap0PVn9AWg6VW3R66IgACjeRygYhI+hJnBfgFMU+MJWoiAA8J0k1EHDwwQAUGrBCBByXvHpQrroibUgng2RADxszm01SgA2YtTxEeogkgj8KQBx0IskAvx5ECVA9CkUfReKGKAZr83z0N0XMVnz3lelZmQAqsS0TqN0oKvFBJItnUavXUz5DnOiqNELfVXQzPaSsDZLGAY4wmPhogl8AOTcB9ALfAXAVdTIWBSmC8QVQJaT8vzDv9tZEzdanVsPGgJj0xEuAKrx9h2R91aC2s0vao9klGvBNOK+C0BNG/M2gvnvIgDZ+dQwHYicVl0AjYRs26Z1HxQUgFdcNpB6TcMte+XNnG3jYd7iXHJXxz0uq5lQmjtICul4TGnV/vbe1+vWtApkfNMZb3RF/RdTnz66WQT6ghgA+vKs63OHCLh6qq/f/QCe7jhPJbE+lQAAAABJRU5ErkJggg==",w=a=>(B("data-v-7220afc8"),a=a(),f(),a),Q={class:"noticebody"},x=["onClick"],D=w((()=>o("img",{class:"logo",src:k},null,-1))),E={key:1,class:"logo",src:k},I={class:"msg"},N={class:"notices"},V={class:"notices"},h={key:0,style:{display:"flex","justify-content":"center"}},y=[w((()=>o("label",{style:{color:"darkgray"}}," 暂无新通知",-1)))],X=["innerHTML"],z={class:"dialog-footer"},M=C(a({__name:"notices",setup(a){const B=e(!1),f=e({}),C=e({}),k=()=>{f.value,f.value.id>0&&0==f.value.is_read&&U(f.value.id).then((a=>{w()})),B.value=!1},w=()=>{b({limit:3}).then((a=>{C.value=a.data}))};return l((()=>{w()})),(a,e)=>{const l=p,U=g,b=v;return t(),s(A,null,[o("div",Q,[(t(!0),s(A,null,i(C.value,((a,e)=>(t(),s("div",{class:"notice-item",onClick:e=>{return l=a,f.value=l,void j(l.id).then((a=>{B.value=!0,f.value.id=a.data.id,f.value.title=a.data.title,f.value.content=a.data.content}));var l},key:e},[0==a.is_read?(t(),u(l,{key:0,"is-dot":"",class:"item"},{default:r((()=>[D])),_:1})):(t(),s("img",E)),o("div",I,[o("label",N,m(a.title),1),o("label",V,m(a.created_at),1)])],8,x)))),128))]),C.value.lenght<1?(t(),s("div",h,y)):n("",!0),d(b,{draggable:"",modelValue:B.value,"onUpdate:modelValue":e[0]||(e[0]=a=>B.value=a),title:f.value.title,width:"30%",center:""},{footer:r((()=>[o("span",z,[d(U,{onClick:k},{default:r((()=>[c("我知道了")])),_:1})])])),default:r((()=>[o("div",{class:"flex flex-wrap break-all",innerHTML:f.value.content},null,8,X)])),_:1},8,["modelValue","title"])],64)}}}),[["__scopeId","data-v-7220afc8"]]);export{M as default};
