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