import{u as a,c as e}from"./stores-85b9805a.js";import{a as o}from"./api-df6a1153.js";async function d(t){if(t.orders&&t.orders.length>0||t.tickets&&t.tickets.length>0){const r=await o.apiCall("orders",{method:"POST"},{orders:t.orders,tickets:t.tickets});a.update(s=>(s.orders=r.orders,s.tickets=r.tickets,s))}}async function n(){e.set(await o.apiCall("status"))}export{d as a,n as l};