import{d as c,O as o,o as r,w as i,g as e}from"./index-123c6a88.js";import{S as _,b as d,a as n}from"./index-d3763f9b.js";import{C as u}from"./index-6b7987bf.js";const w="_cellGroup_jr4w3_1",m="_cell_jr4w3_1",h="_iconTeacher_jr4w3_13",j="_username_jr4w3_20",k="_name_jr4w3_20",v="_attendance_jr4w3_29",p="_noLink_jr4w3_36",f="_attendanceItem_jr4w3_36",g="_weekAttendance_jr4w3_51",A="_value_jr4w3_51",G="_classAttendance_jr4w3_56",y="_error_jr4w3_63",I="_success_jr4w3_66",L="_teacherAttendanceDetail_jr4w3_69",S="_className_jr4w3_76",C="_timer_jr4w3_97",T="_skeletionTitle_jr4w3_101",N="_detailCellGroup_jr4w3_104",x="_detailGroup_jr4w3_107",W="_detailItem_jr4w3_114",D="_detailStatus_jr4w3_121",b="_statusName_jr4w3_128",B="_img_jr4w3_131",M="_sign_jr4w3_135",O="_locate_jr4w3_143",t={cellGroup:w,cell:m,iconTeacher:h,username:j,name:k,class:"_class_jr4w3_24",attendance:v,noLink:p,attendanceItem:f,weekAttendance:g,value:A,classAttendance:G,error:y,success:I,teacherAttendanceDetail:L,className:S,timer:C,skeletionTitle:T,detailCellGroup:N,detailGroup:x,detailItem:W,detailStatus:D,statusName:b,img:B,sign:M,locate:O},z=c({name:"skeleton-modal",props:{show:{type:Boolean,default:!1},showCount:{type:Array,default:()=>[1,2,3,4,5,6,5,6]},isLink:{type:Boolean,default:!0}},setup(a,{slots:s}){const l=o({loading:!1});return r(()=>{l.loading=a.show}),i(()=>a.show,()=>{l.loading=a.show}),()=>e(_,{loading:l.loading,style:"flex-wrap: wrap"},{template:()=>e("div",{style:{height:a.isLink?"calc(100vh - var(--header-height))":"auto",overflow:"hidden",width:"100%"}},[a.showCount.map(()=>e("div",{class:t.cellGroup},[e(u,{center:!0,isLink:a.isLink,clickable:!1,class:t.cell},{icon:()=>e(d,{class:t.iconTeacher},null),title:()=>e("div",{class:t.username,style:{width:"80px"}},[e(n,{rowWidth:"50%"},null),e(n,{style:{marginTop:"4px"}},null)]),value:()=>e("div",{class:[t.attendance,a.isLink?"":t.noLink]},[e("div",{class:[t.attendanceItem]},[e(n,{class:t.value,rowWidth:"40%"},null),e(n,{class:t.value,rowWidth:"40%"},null)]),e("div",{class:[t.attendanceItem]},[e(n,{class:t.value,rowWidth:"40%"},null),e(n,{class:t.value,rowWidth:"40%"},null)])])})]))]),default:()=>s.default&&s.default()})}});export{z as S,t as s};
