import{E as p,b as S}from"./app-core.a6d808ce.js";import{u}from"./vendor-vue-ui.de3ab35f.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};
