import{l as t,h as e,A as a}from"./utils-lib.js?v=20260328163632";import{k as s,r as p,V as l,W as n,X as c,Z as i,Y as o,F as h,L as m,O as r,a1 as w,a3 as d,N as b,j as x,ax as u}from"./base-lib.js?v=20260328163632";import{N as f,g as v}from"./naive-ui.js?v=20260328163632";const k={class:"p-[20px]"},g={class:"flex text-[21px] items-center"},y={class:""},D={class:"my-[20px] py-[15px] pl-32px list-disc bg-[var(--bg-color-28)]"},C=["innerHTML"],T={key:0,class:"overflow-hidden py-12px text-center"},_={class:"mt-4px"},j={class:"flex justify-center"},L={class:"text-[12px]"},A=["innerHTML"],H={key:1},M=s({__name:"index",props:{compData:{}},setup(a,{expose:s}){const M=a,F=p(!1),I=p(!1),N=u((()=>{F.value=!1}),2500);return s({onConfirm:async t=>{if(!I.value)return F.value=!0,void N();await M.compData.onConfirm(),t()},onCancel:t=>{t(),M.compData.onCancel&&M.compData.onCancel()}}),(a,s)=>{const p=f,u=v;return l(),n("div",k,[c("div",g,[s[1]||(s[1]=c("i",{class:"svgtofont-el-warning-filled text-[#f4c500] !text-[30px] pr-4"},null,-1)),c("p",y,i(a.compData.title||o(t)("风险操作，此功能不懂请勿开启!")),1)]),c("ul",D,[(l(!0),n(h,null,m(a.compData.content,((t,e)=>(l(),n("li",{class:"min-h-[24px]",key:e,innerHTML:t},null,8,C)))),128))]),a.compData.isShowAppCode?(l(),n("div",T,[c("div",_,i(o(t)("Android/IOS应用 扫码下载")),1),c("div",j,[r(o(e),{src:"other/bt_app.png",class:"block w-[120px] h-[120px]"})])])):w("",!0),r(u,{show:o(F),class:"popper-danger",width:160,placement:"top-start"},{trigger:d((()=>[r(p,{checked:o(I),"onUpdate:checked":s[0]||(s[0]=t=>b(I)?I.value=t:null),class:"mt-12px px-16px"},{default:d((()=>[c("div",L,[a.compData.checkTip?(l(),n("span",{key:0,innerHTML:a.compData.checkTip},null,8,A)):(l(),n("span",H,i(o(t)("我已了解详情,并愿意承担风险！")),1))])])),_:1},8,["checked"])])),default:d((()=>[x(i(o(t)("请勾选，已了解风险选项"))+" ",1)])),_:1},8,["show"])])}}}),F=e=>{a({title:t("风险操作"),component:M,area:500,showFooter:!0,compData:e})},I=e=>[{name:"wx_account",title:t("微信公众号"),ps:t("宝塔微信公众号，用于接收面板消息推送"),help:"https://www.bt.cn/bbs/thread-108309-1-1.html"},{name:"mail",title:t("邮箱"),ps:t("宝塔邮箱消息通道，用于接收面板消息推送"),help:"https://www.bt.cn/bbs/thread-108097-1-1.html"},{name:"dingding",title:t("钉钉"),ps:t("宝塔钉钉消息通道，用于接收面板消息推送"),help:"https://www.bt.cn/bbs/thread-108081-1-1.html"},{name:"feishu",title:t("飞书"),ps:t("宝塔飞书消息通道，用于接收面板消息推送"),help:"https://www.bt.cn/bbs/thread-108274-1-1.html"},{name:"weixin",title:t("企业微信"),ps:t("宝塔企业微信消息通道，用于接收面板消息推送"),help:"https://www.bt.cn/bbs/thread-108116-1-1.html"},{name:"sms",title:t("短信通知"),ps:t("宝塔短信通知，用于接收面板消息推送"),help:"https://www.bt.cn/bbs/thread-108758-1-1.html"},{name:"webhook",title:t("自定义消息通道"),ps:t("宝塔自定义API信息通道，用于接收面板消息推送"),help:"https://www.bt.cn/bbs/thread-143326-1-1.html"}].map((t=>({name:t.name,type:t.name,title:t.title,ps:t.ps,help:t.help,list:e[t.name]})));export{I as a,F as o};
