import{d as s,r as a,a as e,c as t,o as l,e as r,f as i,h as n,l as o,m as c,p as m,z as d,F as p,G as u}from"./index-ip5gDR6L.js";/* empty css                     *//* empty css               *//* empty css                  */import{d as v}from"./dashboard-C-Wq9kTO.js";import{E as x}from"./index-CGPOeeHR.js";import{E as f}from"./index-D1xXI5gl.js";import{E as h}from"./index-DbRz3Zuu.js";const b={class:"art-card h-128 p-5 mb-5 max-sm:mb-4"},y={class:"art-card-header"},j={class:"title"},g={class:"text-danger"},_={class:"h-[calc(100%-40px)] overflow-auto"},k={class:"flex-1"},w={class:"text-sm font-medium"},z={class:"text-g-500 mt-1"},E=s({__name:"todo-list",setup(s){const E=a([]),P=e(!1),T=t(()=>E.length),A=()=>{return s=this,a=null,e=function*(){P.value=!0;try{const{list:s}=yield v(50);E.splice(0,E.length,...s)}catch(s){}finally{P.value=!1}},new Promise((t,l)=>{var r=s=>{try{n(e.next(s))}catch(a){l(a)}},i=s=>{try{n(e.throw(s))}catch(a){l(a)}},n=s=>s.done?t(s.value):Promise.resolve(s.value).then(r,i);n((e=e.apply(s,a)).next())});var s,a,e};return l(()=>{A()}),(s,a)=>{const e=x,t=f,l=h;return i(),r("div",b,[n("div",y,[n("div",j,[a[1]||(a[1]=n("h4",null,"代办事项",-1)),n("p",null,[a[0]||(a[0]=o("待处理",-1)),n("span",g,c(T.value),1)])])]),n("div",_,[m(l,null,{default:d(()=>[(i(!0),r(p,null,u(E,s=>(i(),r("div",{class:"flex items-center h-17.5 border-b border-g-300 text-sm last:border-b-0 px-3",key:s.userId},[m(e,{src:s.avatar,size:32,class:"mr-3"},null,8,["src"]),n("div",k,[n("p",w,c(s.nickname),1),n("p",z,c(s.taskLabel),1)]),m(t,{type:"bind_mobile"===s.taskType?"warning":"info",size:"small"},{default:d(()=>[o(c("bind_mobile"===s.taskType?"待绑定":"待加入"),1)]),_:2},1032,["type"])]))),128))]),_:1})])])}}});export{E as _};
