관리-도구
편집 파일: Network.ftjr0n1b.js
import{n as p,u as S}from"./index.ba51ghj9.js";import{f as u}from"./runtime-dom.esm-bundler.h3clfjuw.js";const g=()=>{const s=p(),i=S(),r=u(()=>JSON.parse(JSON.stringify(s.networkData.sites.sites))),a=u(()=>{const t=[];return r.value.forEach(n=>{s.activeSites.some(o=>o.domain===n.domain&&o.path===n.path)&&t.push(e(n))}),t}),e=t=>`${t.blog_id}_${t.domain}_${t.path}`,c=(t,n)=>(i.aioseo.urls.mainSiteUrl+"/").includes(`${i.aioseo.data.isSsl?"https":"http"}://${t}${n}`),l=t=>r.value.find(n=>e(n)===t);return{getSites:r,activeSitesIds:a,getUniqueSiteId:e,isMainSite:c,isSiteActive:t=>a.value.includes(e(t)),parseSiteValue:t=>{const n=[];return t.forEach(o=>{n.push(l(o))}),n}}};export{g as u};