System.register(["./page_layout-legacy.js?v=1763625242172","./alarm-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172"],(function(e,l){"use strict";var a,t,n,i,s,o,r,u,d,p,m,c,h,f,g,v;return{setters:[e=>{a=e.x},e=>{t=e.c,n=e.o},e=>{i=e.d},e=>{s=e.k,o=e.ad,r=e.P,u=e.ae,d=e.r,p=e.R,m=e.a2,c=e.V,h=e.X,f=e.F,g=e.j},e=>{v=e.dV}],execute:function(){e("_",s({__name:"index",props:o({multiple:{type:Boolean,default:!0}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const{t:l}=r(),{loading:s,setLoading:o}=i(),w=u(e,"value"),b=d([]),_=d([{name:"mail",title:l("Config.Alarm.index_3"),ps:l("Config.Alarm.index_36"),help:"https://www.bt.cn/bbs/thread-66183-1-1.html",list:[]},{name:"dingding",title:l("Config.Alarm.index_5"),ps:l("Config.Alarm.index_37"),help:"https://www.bt.cn/bbs/thread-108081-1-1.html",list:[]},{name:"weixin",title:l("Config.Alarm.index_6"),ps:l("Config.Alarm.index_38"),help:"https://www.bt.cn/bbs/thread-108116-1-1.html",list:[]},{name:"feishu",title:l("Config.Alarm.index_4"),ps:l("Config.Alarm.index_39"),help:"https://www.aapanel.com/forum/d/16942-aapanel-how-does-set-lark-or-feishu-notification",list:[]},{name:"tg",title:"Telegram",ps:"Use Telegram to send and receive panel notifications",help:"https://www.aapanel.com/forum/d/5115-how-to-add-telegram-to-panel-notifications",list:[]}]),x=async()=>{try{o(!0);const{message:e}=await t({refresh:0});b.value=[],a(e)&&(_.value.forEach((l=>{l.list=e.filter((e=>e.sender_type===l.name))})),_.value.forEach((a=>{const t=e.filter((e=>e.used&&e.sender_type===a.name));t.length>0?t.forEach((e=>{b.value.push({label:`${e.data.title} (${a.title})`,value:e.id})})):b.value.push({label:()=>h(f,null,[a.title,g("["),h("a",{class:"bt-link",onClick:()=>{n({row:a,onRefresh:x})}},[l("Public.Btn.Conf")]),g("]")]),value:a.name,disabled:!0})})))}finally{o(!1)}};return x(),(e,l)=>{const a=v;return p(),m(a,{value:w.value,"onUpdate:value":l[0]||(l[0]=e=>w.value=e),loading:c(s),options:c(b),multiple:e.multiple,"max-tag-count":"responsive",placeholder:e.$t("Config.Alarm.index_86")},null,8,["value","loading","options","multiple","placeholder"])}}}))}}}));
