import{al as u,r as f,am as i,an as l}from"./index-CmCGXBst.js";const m=u("notes",()=>{const t=f([]);async function a(){await i.post(l.notes).then(e=>{const o=e?.data;o&&(t.value=Object.keys(o).reduce((s,n)=>(c(n)&&(s[n]=o[n]),s),{}))})}function c(e){return document.cookie.match(RegExp(`(?:^|;\\s*)${e}=([^;]*)`))===null}function r(e){t.value&&t.value[e]&&delete t.value[e]}return{notesList:t,fetchNotes:a,deleteNote:r}});export{m as u};
