ruạṛ
import{u as o,cl as r,f as p,a as h,r as x,e as f,j as n,C as y,c as a,S as N,m as c}from"./bundle.9abe88c8.js";function w(){const[t]=o(),m=r(),{recurringInvoice:e}=m,{dateFormat:l}=p(),{data:d,isLoading:i}=h({queryKey:["/api/v1/recurring_invoices",e==null?void 0:e.id,"slider"],queryFn:()=>x("GET",f("/api/v1/recurring_invoices/:id?include=activities.history&show_dates=true",{id:e==null?void 0:e.id})).then(s=>s.data.data),enabled:!!(e!=null&&e.id),staleTime:1/0});return n(y,{title:t("schedule"),className:"w-full xl:w-2/3",children:[i&&a("div",{className:"flex justify-center",children:a(N,{})}),!i&&n("div",{className:"flex px-6 pt-2 pb-3 font-medium text-sm",children:[a("span",{className:"w-1/2",children:t("send_date")}),a("span",{className:"w-1/2",children:t("due_date")})]}),d==null?void 0:d.recurring_dates.map((s,u)=>n("div",{className:"flex px-6 py-2 text-sm",children:[a("span",{className:"w-1/2",children:c(s.send_date,l)}),a("span",{className:"w-1/2",children:c(s.due_date,l)})]},u))]})}export{w as default};
cải xoăn