import{b as l,c,a as d}from"./vendor-redux-a1f00e6b.js";import{b as i}from"./ContactService-92281a90.js";import{c as u}from"./ScheduleService-7228f0a3.js";import{F as p}from"./index-c62ac197.js";const s="calendar",r=l(s+"/getCategory",async()=>(await u()).data),g=l(`${s}/getContacts`,async()=>(await i({})).data.$values),C={total:0,pageIndex:1,pageSize:10,query:"",sort:{order:"",key:""}},m={loading:!1,deleteConfirmation:!1,selectedProduct:"",CategoryList:[],tableData:C,filterData:{name:"",category:["bags","cloths","devices","shoes","watches"],status:[0,1,2],productStatus:0},grossInvestmentVolumeData:[],grossInvestmentVolumeStackedData:[],incrementAFBRData:[],netGrowthABRData:[],projectStagePieChartData:[],pipelinePieChartData:[],allContacts:[]},n=c({name:`${s}`,initialState:m,reducers:{updateProductList:(a,e)=>{a.CategoryList=e.payload},setTableData:(a,e)=>{a.tableData=e.payload},setFilterData:(a,e)=>{a.filterData=e.payload},toggleDeleteConfirmation:(a,e)=>{a.deleteConfirmation=e.payload},setSelectedProduct:(a,e)=>{a.selectedProduct=e.payload}},extraReducers:a=>{a.addCase(r.fulfilled,(e,t)=>{var o;e.CategoryList=(o=t==null?void 0:t.payload)==null?void 0:o.$values,e.loading=!1}).addCase(r.pending,e=>{e.loading=!0}).addCase(g.fulfilled,(e,t)=>{e.allContacts=t.payload})}});n.actions;const y=n.reducer,h=d({data:y}),A=p;export{r as a,g,h as r,A as u};
