import{_ as e}from"./index111.js?v=1761009159";import{_ as a}from"./index326.js?v=1761009159";import{p as t,k as l}from"./validator.js?v=1761009159";import{u as n,aH as i,b as s,_ as u}from"./utils-lib.js?v=1761009159";import{c as o,g as r,b as c,r as p,au as w,w as d,q as m,aO as f,H as v,I as g,y as _,v as b,x,L as y,N as h,D as k,B as I,e as j,Q as S}from"./base-lib.js?v=1761009159";import"./index112.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const P=["src"],W=u(o({__name:"index",setup(u){const o=r(()=>c().path),{iframezIndex:W,menuControl:N,routerActive:A,iframeActive:H,mainHeight:B,payment:C}=n(),V=p("/software"),z=p(null),D=p(null),E=p(!1),L=p(null),O=w("pluginWafInfo",{setup:!1,endtime:-1}),R=r(()=>N.value.collapse?"60px":"184px"),T=[["/waf","/btwaf/index"]],q=p(),M=p(!1),Q=p("waf"),U=p([{name:"waf",show:!0,meta:{title:"防火墙"}}]),{warn:F}=s(),G=r(()=>{var e,a;return{title:"Nginx防火墙-功能介绍",imgSrc:"/soft_ico/ico-btwaf.png",productSrc:"https://www.bt.cn/new/product_nginx_firewall.html",ps:"Nginx防火墙是保护Web应用程序免受各种网络攻击，检测过滤恶意请求限制访问频率，增强应用程序的安全，易于配置和使用，是保护Web应用程序安全的重要工具之一",source:25,desc:["仅支持Nginx","抵御CC攻击","关键词拦截","拦截恶意扫描","阻止黑客入侵"],tabImgs:[{title:"概览",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/waf/nginx_firewall_1.png"},{title:"攻击地图",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/waf/nginx_firewall_2.png"},{title:"攻击报表",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/waf/nginx_firewall_3.png"},{title:"全局设置",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/waf/nginx_firewall_4.png"},{title:"站点设置",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/waf/nginx_firewall_5.png"},{title:"封锁记录",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/waf/nginx_firewall_6.png"},{title:"操作日志",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/waf/nginx_firewall_7.png"}],pluginInfo:O.value,isInstall:!(null==(e=O.value)?void 0:e.setup)&&(null==(a=O.value)?void 0:a.endtime)>-1}});d(()=>A.value,async e=>{var a;if(q.value=T.filter(e=>-1!==e.indexOf(A.value))[0]||[],q.value.length){W.value=996;const e=null==(a=L.value)?void 0:a.contentWindow;A.value===q.value[0]&&e&&(null==e?void 0:e.location.pathname)===q.value[1]?e.location.reload():(E.value=!0,D.value=(new Date).getTime(),V.value=q.value[1],H.value=q.value[1])}},{immediate:!0});const J=()=>{var e;const a=null==(e=L.value)?void 0:e.contentWindow,t=null==a?void 0:a.document.getElementById("#app");a&&!t&&(H.value=q.value[1],W.value=998)},K=()=>{var e;const a=null==(e=L.value)?void 0:e.contentWindow;a&&(a.document.getElementById("#app")||(W.value=998))},X=async e=>{try{if(e.setup){const a=null==e?void 0:e.version;if(!a)return;a.replace(/\./g,"")<955&&(await l({type:"u",name:"btwaf",pluginInfo:e}),setTimeout(()=>{F("当前插件版本过低，请升级防火墙插件版本至9.5.5及以上版本")},1e3))}}catch(a){}};return m(()=>{window.pay=t,(async()=>{if("/waf"===o.value)try{M.value=!0;const e=await i({sName:"btwaf"});O.value=e.data,X(e.data),M.value=!1}catch(e){M.value=!1}})()}),(t,l)=>{var n;const i=f("compatible-load-file"),s=f("compatible-load"),u=a,r=e,c=v("bt-loading");return g((b(),x("div",{class:"w-full",style:y({"min-height":_(B)+"px"}),key:_(D)},[_(E)?(b(),x("div",{key:0,ref_key:"maskRef",ref:z,class:"mask",style:y({left:_(R)})},["/files"===_(A)?(b(),h(i,{key:0})):(b(),h(s,{key:1}))],4)):k("",!0),-1!==_(O).endtime&&(null==(n=_(O))?void 0:n.setup)||"/waf"!==_(o)?(b(),x("iframe",{key:2,ref_key:"frameRef",ref:L,id:"ifrramApp",class:"ifrramApp",style:y({zIndex:_(W)}),src:_(V),onLoad:J,onMouseenter:K},null,44,P)):(b(),h(r,{key:1,modelValue:_(Q),"onUpdate:modelValue":l[0]||(l[0]=e=>S(Q)?Q.value=e:null),options:_(U)},{default:I(()=>[j(u,{data:_(G),class:"p-[4rem]"},null,8,["data"])]),_:1},8,["modelValue","options"]))],4)),[[c,_(M)],[c,"正在加载页面，请稍后...","title"]])}}}),[["__scopeId","data-v-520c38d3"]]);export{W as default};
