import{u as p,w as m,r as e}from"./app-DZcRemIr.js";function f(){const v=p(),c=e(!1),t=e(!1),n=e(!1),l=e(""),r=e("local"),o=()=>{c.value=!1,t.value=!1,n.value=!1,l.value="",r.value="local"},i=u=>{r.value==="local"&&o(),r.value="local",n.value=!0,l.value=u},a=u=>{r.value==="local"&&o(),r.value="local",t.value=!0,l.value=u},w=u=>{r.value==="local"&&o(),r.value="local",c.value=!0,l.value=u};return m(()=>v.props.flash,u=>{(u!=null&&u.success||u!=null&&u.error||u!=null&&u.warning)&&(o(),r.value="flash",u.success?(c.value=!0,l.value=u.success):u.error?(t.value=!0,l.value=u.error):u.warning&&(n.value=!0,l.value=u.warning),setTimeout(()=>{r.value==="flash"&&(o(),v.props.flash={})},5e3))},{deep:!0,immediate:!0}),{success:c,error:t,warning:n,message:l,showWarning:i,showError:a,showSuccess:w,clear:o}}export{f as u};
