File: /www/server/panel/BTPanel/static/js/index569.js
import{_ as N}from"./index138.js?v=1777008528";import{k as U,p as $,a3 as z,j as O,_ as j}from"./utils-lib.js?v=1777008528";import{c as A,v as F,I as L,J as v,z as e,x as n,y as d,A as s,e as l,C as r,F as c,aT as q,O as u,B as k,D as a,G as p,K as y,am as G,an as J,H as K,ap as M,a$ as Q}from"./base-lib.js?v=1777008528";import{_ as R}from"./index108.js?v=1777008528";import{i as g,v as W,b as m,a as V,e as X,h as Y,s as Z,p as ee,c as C,d as te,f as se,g as i,j as oe,k as ne,o as le,l as ae,n as ie,q as re}from"./useController27.js?v=1777008528";import"./index110.js?v=1777008528";import"./validator.js?v=1777008528";import"./column.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index107.js?v=1777008528";import"./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang.js?v=1777008528";import"./site.js?v=1777008528";import"./useStore3.js?v=1777008528";import"./useController5.js?v=1777008528";import"./useController4.js?v=1777008528";import"./useMethod3.js?v=1777008528";import"./index118.js?v=1777008528";import"./useController26.js?v=1777008528";import"./useStore14.js?v=1777008528";const pe={class:"border-b border-dashed border-darker mb-[2.2rem] pb-[2.2rem]"},me={class:"flex mb-[20px]"},de={class:"border-b border-dashed border-darker my-[2.2rem] pb-[2.2rem]"},ue={class:"flex mb-[20px]"},_e={class:"my-[2.2rem] relative"},ce={class:"flex mb-[20px] items-center"},ke={class:"title-span"},fe={class:"ml-[2rem]"},ve={class:"ml-[2rem]"},xe={class:"w-[37rem] ml-[2rem]"},be={key:1},ye={class:"text-small flex items-center font-bold"},ge=A({__name:"index",setup(Ve,{expose:P}){return F(g),P({init:g}),(Ce,t)=>{const _=U,w=G,H=J,I=$,x=K,f=z,b=M,S=R,T=Q,E=O,h=N,B=L("bt-loading");return v((n(),d("div",null,[s("div",pe,[s("div",me,[t[10]||(t[10]=s("div",{class:"title-span"},"PHP版本",-1)),l(H,{modelValue:e(m).phpVersion,"onUpdate:modelValue":t[0]||(t[0]=o=>e(m).phpVersion=o),placeholder:"请选择PHP版本",class:"!w-[14rem] mr-1rem",onChange:e(X)},{default:r(()=>[(n(!0),d(c,null,q(e(m).options,(o,D)=>(n(),u(w,{key:D,label:o.title,value:o.key,disabled:!o.status},{default:r(()=>[s("span",null,[s("span",null,k(o.label),1),o.status?p("",!0):(n(),d(c,{key:0},[t[6]||(t[6]=a(" [ ",-1)),l(_,{class:"my-[4px]",onClick:Pe=>e(V)(o.key)},{default:r(()=>[...t[5]||(t[5]=[a("未安装",-1)])]),_:1},8,["onClick"]),t[7]||(t[7]=a(" ] ",-1))],64))])]),_:2},1032,["label","value","disabled"]))),128))]),_:1},8,["modelValue","onChange"]),v(l(I,{modelValue:e(m).other,"onUpdate:modelValue":[t[1]||(t[1]=o=>e(m).other=o),e(Y)],ref:"otherInput",class:"mr-[.5rem]",width:"30rem",placeholder:"连接配置,如:1.1.1.1:9001或unix:/tmp/php.sock"},null,8,["modelValue","onUpdate:modelValue"]),[[y,e(m).phpVersion==="other"]]),e(m).toggleShow?(n(),u(x,{key:0,type:"primary",class:"mr-1rem",onClick:e(Z)},{default:r(()=>[...t[8]||(t[8]=[a("切换",-1)])]),_:1},8,["onClick"])):p("",!0),e(m).noInstall?(n(),u(x,{key:1,type:"primary",onClick:t[2]||(t[2]=o=>e(V)())},{default:r(()=>[...t[9]||(t[9]=[a("安装",-1)])]),_:1})):p("",!0)]),l(f,{options:e(ee)[e(m).helpIndex],class:"ml-[20px] mt-[20px]"},null,8,["options"])]),s("div",de,[s("div",ue,[t[11]||(t[11]=s("div",{class:"title-span"},"session隔离",-1)),l(b,{modelValue:e(C).status,"onUpdate:modelValue":t[3]||(t[3]=o=>e(C).status=o),onChange:e(te)},null,8,["modelValue","onChange"])]),l(f,{options:e(se),class:"ml-[20px] mt-[20px]"},null,8,["options"])]),s("div",_e,[s("div",ce,[s("div",ke,[l(S,{name:"icon-ltd",size:"1.6",class:"mr-[4px]"}),t[12]||(t[12]=a(" 站点防护 ",-1))]),l(b,{modelValue:e(i).status,"onUpdate:modelValue":t[4]||(t[4]=o=>e(i).status=o),onChange:e(oe)},null,8,["modelValue","onChange"]),s("span",fe,"今日:"+k(e(i).today),1),s("span",ve,"总告警数:"+k(e(i).total),1),v(s("div",xe,[l(T,{type:"warning",closable:!1},{title:r(()=>[t[14]||(t[14]=s("span",null,"未启用PHP安全告警,请先",-1)),e(i).safeTip.alarmTip?(n(),u(_,{key:0,type:"danger",onClick:e(ne),class:"!inline-block"},{default:r(()=>[...t[13]||(t[13]=[a("设置告警",-1)])]),_:1},8,["onClick"])):p("",!0),e(i).safeTip.allTip?(n(),d("span",be,"和")):p("",!0),e(i).safeTip.safeTip?(n(),u(_,{key:2,type:"danger",onClick:e(le)},{default:r(()=>[a("开启PHP-"+k(e(i).version)+"防护",1)]),_:1},8,["onClick"])):p("",!0)]),_:1})],512),[[y,e(i).safeTip.show]])]),l(f,{options:e(ae),class:"ml-[20px] mt-[20px]"},null,8,["options"]),e(i).tips?(n(),u(h,{key:0},{content:r(()=>[l(E,{icon:"el-warning",size:"20",class:"mr-[8px]",color:"orange"}),s("div",ye,[e(i).tipsIndex===0?(n(),d(c,{key:0},[a("当前PHP版本不兼容此功能,请切换其他PHP版本")],64)):p("",!0),e(i).tipsIndex===1?(n(),d(c,{key:1},[t[16]||(t[16]=a(" 如需使用【PHP网站安全告警】功能,请先安装, ",-1)),l(_,{onClick:e(ie)},{default:r(()=>[...t[15]||(t[15]=[a("点击安装",-1)])]),_:1},8,["onClick"])],64)):p("",!0),e(i).tipsIndex===2?(n(),d(c,{key:2},[t[18]||(t[18]=a(" 如需使用【PHP网站安全告警】功能,请先购买, ",-1)),l(_,{onClick:e(re)},{default:r(()=>[...t[17]||(t[17]=[a("点击购买",-1)])]),_:1},8,["onClick"])],64)):p("",!0)])]),_:1})):p("",!0)])])),[[B,e(W)]])}}}),Ge=j(ge,[["__scopeId","data-v-6f8d7a11"]]);export{Ge as default};