import{r as s}from"./index-B-YXshIJ.js";import{u as o,b as n}from"./query-hooks-C0Pc4MKj.js";const c=()=>{const t=o();return Math.round(t/7)},x=()=>{const t=n();return s.useCallback(a=>{const e=new Date(t[2]);e.setDate(e.getDate()+(a+0)*7);const r=new Date(new Date(e).setDate(e.getDate()+7));return{startDate:e,endDate:r,weekIndex:a}},[t])};export{x as a,c as u};
