import{aH as l,a as m,cb as d,bV as f,de as _,ff as g,f as E,o as C,aK as L,p as a,j as c,c as h,d3 as B,aJ as e}from"./index.bde7963b.js";import{B as T}from"./index.54dd68f7.js";const b=m({name:"ErrorAction",components:{Icon:d,Tooltip:f,Badge:T},setup(){const{t:o}=h(),{push:n}=_(),t=g(),r=E(()=>t.getErrorLogListCount);function s(){n(B.ERROR_LOG_PAGE).then(()=>{t.setErrorLogListCount(0)})}return{t:o,getCount:r,handleToErrorList:s}}});function k(o,n,t,r,s,I){const u=e("Icon"),i=e("Badge"),p=e("Tooltip");return C(),L(p,{title:o.t("layout.header.tooltipErrorLog"),placement:"bottom",mouseEnterDelay:.5,onClick:o.handleToErrorList},{default:a(()=>[c(i,{count:o.getCount,offset:[0,10],overflowCount:99},{default:a(()=>[c(u,{icon:"ion:bug-outline"})]),_:1},8,["count"])]),_:1},8,["title","mouseEnterDelay","onClick"])}var v=l(b,[["render",k]]);export{v as default};
