import{_ as s}from"./index133.js?v=1761009159";import{d as t,b as e,_ as a}from"./utils-lib.js?v=1761009159";import{c as o,q as r,M as n,A as l,y as i,e as c,B as p}from"./base-lib.js?v=1761009159";import{multiCreate as m}from"./site.js?v=1761009159";import{u}from"./useStore4.js?v=1761009159";const f={class:"flex items-center font-bold text-1.4rem"},d=a(o({__name:"masker",props:{compData:{type:null,required:!0,default:{}}},setup(a){const{siteInfo:o}=u(),d=a,_=e(),h=async()=>{const s=_.load("正在开启防篡改");try{const{data:s}=await m({paths:JSON.stringify([{path:o.value.path+"/",ps:o.value.name}])});s.length&&s[0].status?(_.success("开启防篡改成功"),d.compData.init()):_.error("开启防篡改失败")}catch(t){}finally{s.close()}};return(e,a)=>{const o=t,m=s;return r(),n(m,null,{content:l((()=>[i("div",f,[a[1]||(a[1]=i("span",null,"当前站点目录未启用防篡改，",-1)),c(o,{onClick:h,class:"!font-bold !text-[1.2rem]"},{default:l((()=>a[0]||(a[0]=[p("点击开启")]))),_:1})])])),_:1})}}}),[["__file","/Users/chudong/project/linux-10/src/views/site/views/php-model/tamper-proof-core/tamper-core/masker.vue"]]);export{d as M};
