import{d as l,c as r,a as t,k as s,e as d,y as m,o as n}from"./index-BaNRFt4f.js";const p={class:"flex items-center gap-1.5 ml-auto"},u=["disabled"],f=l({__name:"FilterToolbar",props:{hasFilters:{type:Boolean},loading:{type:Boolean}},emits:["clear","refresh"],setup(o){return(i,e)=>(n(),r("div",p,[o.hasFilters?(n(),r("button",{key:0,onClick:e[0]||(e[0]=a=>i.$emit("clear")),class:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-gray-500 hover:text-red-600 hover:bg-red-50 rounded transition",title:"Limpiar filtros"},[...e[2]||(e[2]=[t("svg",{class:"w-3.5 h-3.5",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1),s(" Limpiar ",-1)])])):d("",!0),t("button",{onClick:e[1]||(e[1]=a=>i.$emit("refresh")),disabled:o.loading,class:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-gray-500 hover:text-primary-600 hover:bg-primary-50 rounded transition disabled:opacity-50",title:"Refrescar"},[(n(),r("svg",{class:m(["w-3.5 h-3.5",{"animate-spin":o.loading}]),fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[...e[3]||(e[3]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"},null,-1)])],2)),e[4]||(e[4]=s(" Refrescar ",-1))],8,u)]))}});export{f as _};
