import{A as a,Q as o,o as e,i as d,j as u,c as s,b as r,F as p,r as _,t as m,e as f,a0 as h}from"./app-13978987.js";const k={key:0,class:"validation-errors"},v={class:"flex flex-col"},B={__name:"ValidationErrors",setup(b){const t=a(()=>o().props.errors),n=()=>o().props.errors=[],c=a(()=>Object.keys(t.value).length>0);return(g,x)=>(e(),d(h,{name:"slide-right"},{default:u(()=>[c.value?(e(),s("div",k,[r("div",{class:"flex justify-end"},[r("button",{class:"btn btn-danger btn-sm",onClick:n},"X")]),r("div",v,[(e(!0),s(p,null,_(t.value,(l,i)=>(e(),s("p",{key:i},"* "+m(l.replace(/[.,]/g," ")),1))),128))])])):f("",!0)]),_:1}))}};export{B as default};
