import{c as i}from"./WpTable.36ecda37.js";import{n as r}from"./vueComponentNormalizer.67c9b86e.js";import"./index.7b63dad7.js";import"./SaveChanges.68e73792.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(s){e.site=s},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)}},o={};var u=r(c,a,l,!1,_,null,null,null);function _(e){for(let t in o)this[t]=o[t]}const d=function(){return u.exports}();export{d as C};
