import{_ as l}from"./Du23p2ZK.js";import m from"./DgZ9OEJo.js";import{u}from"./oBAm95WQ.js";import{v as d,r as f,_ as g,o as r,c as a,p as x,w as S,d as s,t as _,q as c,b,J as v}from"./CChoqk00.js";const y=d({__name:"ApiStateHandler",props:{error:{type:String,default:""}},setup(n,{expose:o}){o();const e=f(!1);u(()=>{e.value=!0},300);const t={loadingState:e};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}}),k={key:1,class:"text-gray-600 text-sm"};function h(n,o,e,t,A,B){const i=l,p=m;return r(),a(v,null,[e.error?(r(),x(i,{key:0},{default:S(()=>[s(_(e.error),1)]),_:1})):c("",!0),!e.error&&t.loadingState?(r(),a("div",k,[b(p,{name:"svg-spinners:bouncing-ball",class:"size-3"}),s(" "+_(n.$t("loadingData")),1)])):c("",!0)],64)}const j=Object.assign(g(y,[["render",h],["__file","ApiStateHandler.vue"]]),{__name:"ApiStateHandler"});export{j as _};
