import{d as i,Q as s,R as r,z as m,o as p,c as v,dz as f}from"./index-D3rICic-.js";const b=i({name:"StatusSwitch",__name:"status-switch",props:s({disabled:Boolean},{value:{default:0},valueModifiers:{}}),emits:s(["fetch"],["update:value"]),setup(a,{emit:t}){const n=a,o=r(a,"value"),u=t,e=m(!1),c=l=>{e.value=!0,u("fetch",l,()=>{e.value=!1})};return(l,_)=>{const d=f;return p(),v(d,{value:o.value,loading:e.value,"rubber-band":!1,"checked-value":1,"unchecked-value":0,disabled:n.disabled,"onUpdate:value":c},null,8,["value","loading","disabled"])}}});export{b as _};
