1import{u as e}from"./runtime-dom.esm-bundler-DyrtEVhK.js";import{be as t,aD as l,gb as a}from"./index-BHKElW5-.js";/* empty css */import{_ as o}from"./_plugin-vue_export-helper-BCo6x5W8.js";import{u as i,p as n,q as s,v as r,x as d,y as c,I as u,E as p,C as y,c as v,n as f}from"./runtime-core.esm-bundler-CSn0hs_e.js";const g=["disabled"],b={key:0,class:"loading-container"},m={key:2,class:"label"},k={key:3,class:"hotkey"},_=o({__name:"ToolbarButton",props:{icon:{type:String,default:""},label:{type:String,default:""},isActive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},title:{type:String,default:""},loading:{type:Boolean,default:!1},placement:{type:String,default:"right"},iconColor:{type:String,default:"#CBCBCC"},iconSize:{type:String,default:"0.833rem"},activeIconColor:{type:String,default:"#FFF"},bgColor:{type:String,default:"#transparent"},activeBgColor:{type:String,default:"#32353D"},hotkey:{type:String,default:""},titleHotkey:{type:String,default:""},tag:{type:Object,default:()=>({label:"",type:""})}},emits:["click"],setup(o,{expose:_,emit:C}){e(e=>({v1dd4ef4c:i(j),ffb2fd44:i($),f86a8cb4:i(h),v32e13174:i(x),fd5ef780:i(T)}));const S=o,{iconColor:h,hotkey:B,activeBgColor:x,bgColor:j,placement:F,titleHotkey:I,activeIconColor:T,iconSize:$,tag:w}=S,z=C,A=v(null),D=v(null),H=()=>{t.value.buttonRef===A.value&&l()},M=e=>{H(),f(()=>{z("click",e)})};return n(H),_({manualTrigger:()=>{D.value.click()}}),(e,t)=>{var l,n,v,f,_;return s(),r("div",{ref_key:"container",ref:A,class:"toolbar-btn-container",onMouseenter:t[0]||(t[0]=e=>{return t=e,void(S.loading||S.disabled||!S.title||a({event:t,title:S.title,placement:F,hotkey:I,i18n:!1}));var t}),onMouseleave:H},[d("button",{ref_key:"button",ref:D,class:p(["toolbar-button",{active:o.isActive}]),disabled:o.loading||o.disabled,onClick:M},[c(e.$slots,"prefix",{},void 0,!0),o.loading?(s(),r("div",b,[...t[1]||(t[1]=[d("img",{src:"https://image.ark.art/assets/agent/svg/rotate.svg",alt:""},null,-1)])])):u("",!0),o.icon?(s(),r("i",{key:1,class:p(["iconfont",o.icon])},null,2)):u("",!0),c(e.$slots,"icon",{},void 0,!0),o.label?(s(),r("span",m,y(o.label),1)):u("",!0),i(B)?(s(),r("span",k,y(i(B)),1)):u("",!0),c(e.$slots,"default",{},void 0,!0)],10,g),(null==(l=i(w))?void 0:l.label)?(s(),r("div",{key:0,class:p(["tag",{hot:"hot"===(null==(n=i(w))?void 0:n.type),commom:"commom"===(null==(v=i(w))?void 0:v.type),beta:"beta"===(null==(f=i(w))?void 0:f.type),new:"new"===(null==(_=i(w))?void 0:_.type)}])},y(i(w).label),3)):u("",!0)],544)}}},[["__scopeId","data-v-117e9bb9"]]);export{_ as T};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.