import{_ as x,i as y,e as c,r as v,o as i,c as _,a as t,b as o,w as s,F as h,y as b,D as $,z as g,O as k,N as C,d as l,t as a,k as N}from"./index-20f16f2f.js";const S={name:"PageMasterTimetableIndex",setup(){const m=y(N.resourceStore),r=y(N.generalTimetableScope),p=c(()=>m.resources.value.filter(d=>!d.disabled)),u=c(()=>{const d=$.today();return g(d,r.dateRange.value[0])<0?r.dateRange.value[0]:g(r.dateRange.value[1],d)<=0?k(r.dateRange.value[1],C({days:-1})):d});return{resources:p,todayCropped:u,currentClassroom:c(()=>r.classroom.value)}}},K=t("h1",null,"Index",-1),R=t("h1",null,"教室",-1),T=t("h1",null,"講師",-1),B=t("thead",null,[t("tr",null,[t("th",null,"氏名"),t("th",null,"リンク")])],-1),D={style:{"margin-inline-end":".5em"}},F=t("rp",null,"(",-1),V=t("rp",null,")",-1),w=t("rp",null,"(",-1),I=t("rp",null,")",-1),j=t("h1",null,"生徒",-1),z=t("thead",null,[t("tr",null,[t("th",null,"学年"),t("th",null,"氏名"),t("th",null,"リンク")])],-1),E={style:{"margin-inline-end":"1em"}},L=t("rp",null,"(",-1),M=t("rp",null,")",-1),O=t("rp",null,"(",-1),P=t("rp",null,")",-1);function q(m,r,p,u,d,A){const n=v("router-link");return i(),_(h,null,[K,t("p",null,[o(n,{to:`./datetimeline/${u.todayCropped.isoFormat()}`},{default:s(()=>[l("時間割表")]),_:1},8,["to"])]),t("p",null,[o(n,{to:"./events/index"},{default:s(()=>[l("イベント一覧")]),_:1})]),t("p",null,[o(n,{to:"./resourcehourcopy"},{default:s(()=>[l("可能時間曜日別一括複製")]),_:1})]),t("p",null,[o(n,{to:"./eventintegrity"},{default:s(()=>[l("整合性チェック")]),_:1})]),t("section",null,[R,o(n,{to:`./resources/${u.currentClassroom}/resourcehours`},{default:s(()=>[l("開室時間入力")]),_:1},8,["to"])]),t("section",null,[T,t("table",null,[B,t("tbody",null,[(i(!0),_(h,null,b(u.resources.filter(e=>e.type==="teacher"),e=>(i(),_("tr",{key:e.id},[t("td",null,[t("ruby",D,[l(a(e.lastName)+" ",1),F,t("rt",null,a(e.lastNameKana),1),V]),t("ruby",null,[l(a(e.firstName)+" ",1),w,t("rt",null,a(e.firstNameKana),1),I])]),t("td",null,[o(n,{to:`./resources/${e.id}/index`},{default:s(()=>[l("詳細")]),_:2},1032,["to"]),l(),o(n,{to:`./resources/${e.id}/timeline`},{default:s(()=>[l("時間割表")]),_:2},1032,["to"]),l(),o(n,{to:`./resources/${e.id}/resourcehours`},{default:s(()=>[l("可能時間入力")]),_:2},1032,["to"]),l(),o(n,{to:`./resources/${e.id}/lessons`},{default:s(()=>[l("授業入力")]),_:2},1032,["to"])])]))),128))])])]),t("section",null,[j,t("table",null,[z,t("tbody",null,[(i(!0),_(h,null,b(u.resources.filter(e=>e.type==="student"),e=>{var f;return i(),_("tr",{key:e.id},[t("td",null,a(((f=e.grade)==null?void 0:f.label)??"[無し]"),1),t("td",null,[t("ruby",E,[l(a(e.lastName)+" ",1),L,t("rt",null,a(e.lastNameKana),1),M]),t("ruby",null,[l(a(e.firstName)+" ",1),O,t("rt",null,a(e.firstNameKana),1),P])]),t("td",null,[o(n,{to:`./resources/${e.id}/index`},{default:s(()=>[l("詳細")]),_:2},1032,["to"]),l(),o(n,{to:`./resources/${e.id}/timeline`},{default:s(()=>[l("時間割表")]),_:2},1032,["to"]),l(),o(n,{to:`./resources/${e.id}/resourcehours`},{default:s(()=>[l("可能時間入力")]),_:2},1032,["to"])])])}),128))])])])],64)}const H=x(S,[["render",q]]);export{H as default};
