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