import{d,O as i,o as c,w as o,g as e}from"./index-e308c7ec.js";import{S as _,b as r,a as n}from"./index-72730134.js";import{C as u}from"./index-46b2caad.js";const m="_cellGroup_d9dxi_1",x="_cell_d9dxi_1",h="_iconTeacher_d9dxi_13",k="_username_d9dxi_20",w="_name_d9dxi_20",v="_attendance_d9dxi_33",p="_noLink_d9dxi_40",f="_attendanceItem_d9dxi_40",g="_weekAttendance_d9dxi_55",A="_value_d9dxi_55",G="_classAttendance_d9dxi_60",y="_error_d9dxi_67",I="_success_d9dxi_70",L="_teacherAttendanceDetail_d9dxi_73",S="_className_d9dxi_83",C="_timer_d9dxi_104",T="_skeletionTitle_d9dxi_108",N="_detailCellGroup_d9dxi_111",W="_detailGroup_d9dxi_114",D="_detailItem_d9dxi_121",b="_detailStatus_d9dxi_128",B="_statusName_d9dxi_135",M="_img_d9dxi_138",O="_sign_d9dxi_142",P="_locate_d9dxi_150",t={cellGroup:m,cell:x,iconTeacher:h,username:k,name:w,class:"_class_d9dxi_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:W,detailItem:D,detailStatus:b,statusName:B,img:M,sign:O,locate:P},z=d({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=i({loading:!1});return c(()=>{l.loading=a.show}),o(()=>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(r,{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};
