import{S as e}from"./index-K1QYmvkf.js";import{d as n,l,w as t,c as a,N as o}from"./main-DKqTMGci.js";const c={ssh:"SSH",aliyun:"阿里云",tencentcloud:"腾讯云",btpanel:"宝塔面板","1panel":"1Panel",huaweicloud:"华为云",cloudflare:"Cloudflare",mail:"邮件",dingtalk:"钉钉",wecom:"企业微信",feishu:"飞书",webhook:"WebHook","tencentcloud-cdn":"腾讯云CDN","tencentcloud-cos":"腾讯云COS","aliyun-cdn":"阿里云CDN","aliyun-oss":"阿里云OSS","1panel-site":"1Panel网站","btpanel-site":"宝塔面板网站"},i=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 i=l((()=>(["mail","dingtalk","wecom","feishu","webhook"].includes(n.icon)?"notify-":"resources-")+({ssh:"ssh",aliyun:"aliyun",tencentcloud:"tencentcloud",btpanel:"btpanel","1panel":"1panel",huaweicloud:"huaweicloud",cloudflare:"cloudflare",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"))),u=l((()=>c[n.icon]||n.icon));return t((()=>n.icon),(e=>{})),t((()=>n.type),(e=>{})),()=>a(o,{type:n.type,size:"small"},{default:()=>[a(e,{icon:i.value,size:"1.2rem",class:"mr-[0.4rem]"},null),a("span",{class:"text-[12px]"},[n.text&&a("span",null,[u.value])])]})}});export{i as A};
