File: /www/server/panel/BTPanel/static/js/useMethod2.js
import{M as l,k as p,l as i,m as o,e as h,_ as c}from"./utils-lib.js?v=1777008528";import"./base-lib.js?v=1777008528";import{g as d}from"./useStore.js?v=1777008528";import{s as m}from"./config.js?v=1777008528";const{refs:{panelConfig:n,safeConfig:u},getConfigData:w}=d(),k=async e=>!u.value.panelSSl&&e?(n.value.passkey_status=!1,l.error("请先启用面板SSL,再开启Passkey")):/^[\d.]+$/.test(window.location.hostname)&&e?l.error("当前访问地址非域名,请使用绑定了有效证书的域名访问后再开启Passkey。"):await p({loading:"正在设置Passkey配置,请稍候...",request:m({status:e}),message:!0,success:t=>{t.status||(n.value.passkey_status=!n.value.passkey_status),w()}}),y=async()=>{const e=[],{data:a}=await i();return o(a.data)&&a.data.length&&a.data.forEach(t=>{var s,r;e.push({...t.template,module:t.send_type_list,title:t.title,type:t.source,tid:t.id,name:t.load_cls.name,advancedShow:t.advanced_default,used:t.used,tags:t.tags,can_create:(s=t.can_create)!=null?s:!0,is_pro:(r=t.is_pro)!=null?r:!1,description:t.description})}),e},v=e=>{h({title:"风险操作",component:()=>c(()=>import("./index125.js?v=1777008528"),__vite__mapDeps([]),import.meta.url),area:50,showFooter:!0,compData:e})},P=e=>o(e)?[{name:"wx_account",title:"微信公众号",ps:"宝塔微信公众号,用于接收面板消息推送",help:"https://www.bt.cn/bbs/thread-108309-1-1.html"},{name:"mail",title:"邮箱",ps:"宝塔邮箱消息通道,用于接收面板消息推送",help:"https://www.bt.cn/bbs/thread-108097-1-1.html"},{name:"dingding",title:"钉钉",ps:"宝塔钉钉消息通道,用于接收面板消息推送",help:"https://www.bt.cn/bbs/thread-108081-1-1.html"},{name:"feishu",title:"飞书",ps:"宝塔飞书消息通道,用于接收面板消息推送",help:"https://www.bt.cn/bbs/thread-108274-1-1.html"},{name:"weixin",title:"企业微信",ps:"宝塔企业微信消息通道,用于接收面板消息推送",help:"https://www.bt.cn/bbs/thread-108116-1-1.html"},{name:"sms",title:"短信通知",ps:"宝塔短信通知,用于接收面板消息推送",help:"https://www.bt.cn/bbs/thread-108758-1-1.html"},{name:"webhook",title:"自定义消息通道",ps:"宝塔自定义API信息通道,用于接收面板消息推送",help:"https://www.bt.cn/bbs/thread-143326-1-1.html"}].map(s=>({name:s.name,type:s.name,title:s.title,ps:s.ps,help:s.help,list:e.filter(r=>r.sender_type===s.name)})):[];export{P as a,y as g,v as o,k as s};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}