import{r as t}from"./index.CN1lNsL-.js";const s="/api/system/manageclass/week_schedule/",r="/api/system/manageclass/";function p(e){return t({url:s+"?week_offset=0",method:"get",params:e})}function h(e){return t({url:s+e+"/",method:"get"})}function b(e){return t({url:r,method:"post",data:e})}function g(e){return t({url:r+e.id+"/",method:"put",data:e})}function y(){return t({url:s+"?week_offset=0",method:"get"})}function L(){return t({url:"/api/system/app_user/?user_type=1",method:"get"})}function _(e){return t({url:r+e+"/",method:"delete",data:{id:e}})}function k(e){return t({url:s+"?week_offset="+e,method:"get"})}function w(e){return t({url:"/api/system/manageclass/copy-schedule/",method:"post",data:e})}async function G(e){const o=e.data.schedule;return e.data.time_labels.map((c,i)=>{var u;const n={timeLabel:c};for(let a=1;a<=7;a++){const l=((u=o[a])==null?void 0:u[i+1])||[];n[`day${a}`]=l}return n})}export{b as A,w as C,_ as D,y as G,g as U,k as a,h as b,p as c,L as d,G as g};
