import{a as t,F as e,q as a}from"./public.js?v=1763625242172";import{m as i}from"./page_layout.js?v=1763625242172";import{a as o}from"./soft.js?v=1763625242172";import{k as s}from"./site.js?v=1763625242172";import{u as n}from"./useModal2.js?v=1763625242172";import{P as r}from"./vue.js?v=1763625242172";const m=()=>{const{t:m}=r();return{setSiteStatus:(e,a)=>{t({title:"".concat(m("1"===e?"Site.PHP.index_21_2":"Site.PHP.index_21_3")," ").concat(m("Site.PHP.index_21_1",[a.name])),content:m("1"===e?"Site.PHP.index_22":"Site.PHP.index_23"),onConfirm:async()=>{await s("1"===e,{id:a.id,name:a.name}),a.status=e}})},openMonitor:async t=>{await e({source:142}),await a("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((e=>{e.getAttribute("data-name")===t&&e.click()}))}),1200))}),50)},openSiteWaf:async t=>{const o=i.loading("Loading, please wait...");try{await e({source:216}),await a("btwaf"),n({row:{siteName:t}})}finally{o.close()}}}};export{m as u};
