/* 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,W as n,ay as d,a as g,w as c,b as r,S as v,v as m,l as u,t as B,az as p,aA as f,aR as C,_ as U}from"./index-2b50ecca.js";import{n as b,a as j,b as Q}from"./index-5cdf9bd7.js";import"./http-aa208300.js";/* empty css                 */const w="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==",k=a=>(p("data-v-9308141d"),a=a(),f(),a),x={class:"noticebody"},D=["onClick"],E=k((()=>o("img",{class:"logo",src:w},null,-1))),I={key:1,class:"logo",src:w},N={class:"msg"},V={class:"notices"},y={class:"notices"},X={style:{display:"flex","justify-content":"center"}},h=[k((()=>o("label",{style:{color:"darkgray"}}," 暂无新通知",-1)))],R=["innerHTML"],z={class:"dialog-footer"},M=U(a({__name:"notices",setup(a){const p=e(!1),f=e({}),U=e({}),w=()=>{f.value.id>0&&b(f.value.id),p.value=!1};return l((()=>{j({limit:3}).then((a=>{U.value=a.data}))})),(a,e)=>{const l=C,b=v,j=m;return t(),s(A,null,[o("div",x,[(t(!0),s(A,null,i(U.value,((a,e)=>(t(),s("div",{class:"notice-item",onClick:e=>{Q(a.id).then((a=>{p.value=!0,f.value.id=a.data.id,f.value.title=a.data.title,f.value.content=a.data.content}))},key:e},[0==a.is_read?(t(),u(l,{key:0,"is-dot":"",class:"item"},{default:c((()=>[E])),_:1})):(t(),s("img",I)),o("div",N,[o("label",V,B(a.title),1),o("label",y,B(a.created_at),1)])],8,D)))),128))]),n(o("div",X,h,512),[[d,U.value.length<1]]),g(j,{draggable:"",modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=a=>p.value=a),title:f.value.title,width:"30%",center:""},{footer:c((()=>[o("span",z,[g(b,{onClick:w},{default:c((()=>[r("我知道了")])),_:1})])])),default:c((()=>[o("div",{class:"flex flex-wrap break-all",innerHTML:f.value.content},null,8,R)])),_:1},8,["modelValue","title"])],64)}}}),[["__scopeId","data-v-9308141d"]]);export{M as default};
