import{b as i}from"./ToolsSettings.0bc46799.js";import"./index.9d9c8f08.js";import{n as r}from"./vueComponentNormalizer.58b0a173.js";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aioseo-network-site-selector"},[n("base-select",{attrs:{size:"medium",options:e.sites},model:{value:e.site,callback:function(o){e.site=o},expression:"site"}})],1)},l=[];const c={mixins:[i],props:{showNetwork:Boolean},data(){return{site:null,network:{value:"network",label:this.$t.__("Network Admin (no site)",this.$td)}}},watch:{site(e){let t=this.$aioseo.data.network.sites.sites.find(n=>this.getUniqueSiteId(n)===e.value);e.value==="network"&&(t={blog_id:"network"}),this.$emit("selected-site",t)}},computed:{sites(){const e=this.getSites.filter(t=>!t.parentDomain).map(t=>({value:this.getUniqueSiteId(t),label:`${t.domain}${t.path}`}));return this.showNetwork?[this.network].concat(e):e}},created(){this.showNetwork&&(this.site=this.network)}},s={};var u=r(c,a,l,!1,_,null,null,null);function _(e){for(let t in s)this[t]=s[t]}const h=function(){return u.exports}();export{h as C};
