import{_ as r}from"./Brk5FU9k.js";import{d as m,a as c,o as d,f as _,b as x,E as f,Z as l,g as e}from"./dVzHJMF1.js";import{u as g}from"./BJptszXB.js";const w={class:"flex gap-1"},b=m({__name:"AnexoButtons",props:{anexo:{}},setup(u){const i=u.anexo.uuid+"_view",{pending:n,executeDownloadAnexo:t}=g();return(o,a)=>{const s=r;return d(),c("div",w,[_(s,{mode:"downloadFile",loading:e(n)[o.anexo.uuid],disabled:e(n)[o.anexo.uuid],onClick:a[0]||(a[0]=l(p=>e(t)(o.anexo,!1),["stop"]))},null,8,["loading","disabled"]),o.anexo.tipo==="application/pdf"||o.anexo.tipo.includes("image")?(d(),x(s,{key:0,mode:"visualizationFile",loading:e(n)[i],disabled:e(n)[i],onClick:a[1]||(a[1]=l(p=>e(t)(o.anexo,!0,i),["stop"]))},null,8,["loading","disabled"])):f("",!0)])}}}),A=Object.assign(b,{__name:"UiAnexoButtons"});export{A as _};
