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