import{aj as l,r as u,y as n,z as r,R as p}from"./index-Bb2UEb_P.js";const B=l("basket",()=>{const t=u({});async function c(){const e=await n.post(r.basket);t.value=e.data}async function i(e){if((await n.post(r.deleteFromBasket,{RowsIDs:[e],TableID:"Basket"})).data.Status===p){const s={};for(const a in t.value){const o=t.value[a].filter(f=>f.ID!==e);o.length>0&&(s[a]=o)}t.value=s}}return{basketList:t,fetchBasket:c,deleteFromBasket:i}});export{B as u};
