import{aj as u,r,y as n,z as s}from"./index-Bb2UEb_P.js";const d=u("content",()=>{const a=r({}),o=r([]),c=r([]),i=r([]);async function p(){let t="error";try{const e=await n.post(s.news,{});a.value=e.data}catch(e){console.error("Error fetching news:",e),t="error"}return t}async function h(){let t="error";return await n.post(s.contacts,{},{headers:{"Content-Type":"application/json"}}).then(e=>{e?.headers?.["content-type"]!=="text/html; charset=utf-8"?i.value=e?.data:t="error"}).catch(()=>{t="error"}),t}async function l(){let t="error";return await n.post(s.partners,{},{headers:{"Content-Type":"application/json"}}).then(e=>{e?.headers?.["content-type"]!=="text/html; charset=utf-8"?o.value=e?.data:t="error"}).catch(()=>{t="error"}),t}async function f(){let t="error";return await n.post(s.clients,{},{headers:{"Content-Type":"application/json"}}).then(e=>{e?.headers?.["content-type"]!=="text/html; charset=utf-8"?c.value=e?.data:t="error"}).catch(()=>{t="error"}),t}return{news:a,partnersList:o,clientsList:c,contacts:i,fetchContacts:h,fetchNews:p,fetchPartners:l,fetchClients:f}});export{d as u};
