import { u as useState } from './state-DQnwRar-.mjs'; import { computed } from 'vue'; function useLoading() { const count = useState("app:loading", () => 0); const loading = computed(() => count.value > 0); function begin() { count.value++; } function end() { count.value = Math.max(0, count.value - 1); } return { count, loading, begin, end }; } export { useLoading as u }; //# sourceMappingURL=useLoading-D6mc40Wj.mjs.map