import{F as t,q as e,a}from"./public.js?v=1764830988434";import{m as i}from"./page_layout.js?v=1764830988434";import{a as o}from"./soft.js?v=1764830988434";import{j as s}from"./site.js?v=1764830988434";import{u as n}from"./useModal2.js?v=1764830988434";import{P as r}from"./vue.js?v=1764830988434";const m=()=>{const{t:m}=r();return{setSiteStatus:(t,e)=>{a({title:"".concat(m("1"===t?"Site.PHP.index_21_2":"Site.PHP.index_21_3")," ").concat(m("Site.PHP.index_21_1",[e.name])),content:m("1"===t?"Site.PHP.index_22":"Site.PHP.index_23"),onConfirm:async()=>{await s("1"===t,{id:e.id,name:e.name}),e.status=t}})},openMonitor:async a=>{await t({source:142}),await e("monitor"),o({name:"monitor",title:"Website statistics-v2",admin:!0});const i=setInterval(()=>{window.document.getElementsByClassName("layui-layer-page")[0]&&(clearInterval(i),setTimeout(()=>{document.querySelectorAll(".mt_select_list li").forEach(t=>{t.getAttribute("data-name")===a&&t.click()})},1200))},50)},openSiteWaf:async a=>{const o=i.loading("Loading, please wait...");try{await t({source:216}),await e("btwaf"),n({row:{siteName:a}})}finally{o.close()}}}};export{m as u};
