import{_ as b,i as f,e as d,P as v,r as g,o as s,c as a,F as y,a as k,b as t,w as l,d as r,f as m,U as h,N as R,t as S,k as x}from"./index-20f16f2f.js";import{D}from"./DateAndResourceTimeTable-5ccd4f8a.js";import"./timeline-435273bb.js";const N={name:"PageMasterTimetableResourcesIdTimeline",components:{DateAndResourceTimeTable:D},props:{id:{type:String,required:!0}},setup(u){const c=f(x.resourceStore),n=f(x.generalTimetableScope),e=d(()=>c.resources.value.find(o=>o.id===n.classroom.value)??null),_=d(()=>c.resources.value.find(o=>o.id===u.id)??null),p=d(()=>[...h(...n.dateRange.value,R({days:1}))]);return{getResourceDisplayText:v,classroom:e,resource:_,dates:p}}},F={key:1},V={key:2};function j(u,c,n,e,_,p){const o=g("router-link"),T=g("date-and-resource-time-table");return s(),a(y,null,[e.classroom&&e.resource?(s(),a(y,{key:0},[k("h1",null,[t(o,{to:"./index"},{default:l(()=>[r(S(e.getResourceDisplayText(e.resource)),1)]),_:1}),r("の時間割表 ")]),k("p",null,[t(o,{to:`/printingtimeline?classroom=${e.classroom.id}&mode=resource-date&resource=${e.resource.id}&date=${e.dates.map(i=>i.isoFormat()).join(",")}`},{default:l(()=>[r("印刷用")]),_:1},8,["to"]),r(),t(o,{to:`/printingtimeline?classroom=${e.classroom.id}&mode=resource-date&resource=${e.resource.id}&date=${e.dates.map(i=>i.isoFormat()).join(",")}&hideconfidence=y`},{default:l(()=>[r("印刷用（外部送信用）")]),_:1},8,["to"])]),t(T,{classroom:e.classroom,mode:"resource",resources:[e.resource],dates:e.dates,class:"timetable"},null,8,["classroom","resources","dates"])],64)):m("",!0),e.classroom?m("",!0):(s(),a("p",F,"教室がみつかりません。")),e.resource?m("",!0):(s(),a("p",V,"リソースがみつかりません。"))],64)}const I=b(N,[["render",j],["__scopeId","data-v-7547d181"]]);export{I as default};
