import{S as e}from"./index-4SW2EnHr.js";import{d as n,w as t,E as l,e as a,Q as o}from"./main-D8Z-8iPZ.js";const s={ssh:"SSH",aliyun:"阿里云",tencentcloud:"腾讯云",btpanel:"宝塔面板","1panel":"1Panel",mail:"邮件",dingtalk:"钉钉",wecom:"企业微信",feishu:"飞书",webhook:"WebHook","tencentcloud-cdn":"腾讯云CDN","tencentcloud-cos":"腾讯云COS","aliyun-cdn":"阿里云CDN","aliyun-oss":"阿里云OSS","1panel-site":"1Panel网站","btpanel-site":"宝塔面板网站"},c=n({name:"TypeIcon",props:{icon:{type:String,required:!0},type:{type:String,default:"default"},align:{type:String,default:"left"},text:{type:Boolean,default:!0}},setup(n){const c=t((()=>(["mail","dingtalk","wecom","feishu","webhook"].includes(n.icon)?"notify-":"resources-")+({ssh:"ssh",aliyun:"aliyun",tencentcloud:"tencentcloud",btpanel:"btpanel","1panel":"1panel",mail:"mail",dingtalk:"dingtalk",wecom:"wecom",feishu:"feishu",webhook:"webhook","tencentcloud-cdn":"tencentcloud","tencentcloud-cos":"tencentcloud","aliyun-cdn":"aliyun","aliyun-oss":"aliyun","1panel-site":"1panel","btpanel-site":"btpanel"}[n.icon]||"default"))),i=t((()=>s[n.icon]||n.icon));return l((()=>n.icon),(e=>{})),l((()=>n.type),(e=>{})),()=>a(o,{bordered:!1,class:"cursor-pointer",type:n.type},{default:()=>[a("span",{class:"text-[12px] color-[#333]"},[n.text&&a("span",null,[i.value])])],avatar:()=>a(e,{iconName:c.value,size:"1.6rem",class:"mr-0"},null)})}});export{c as A};
