(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["redirects-pro-partials-SiteAliases-vue"],{cb4b:function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("core-card",{attrs:{slug:"fullSiteRedirectsAliases",disabled:t.redirectOptions.fullSite.relocate.enabled},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" "+t._s(t.strings.siteAliases)+" ")]},proxy:!0},{key:"disabled",fn:function(){return[t._v(" "+t._s(t.strings.descriptionClosed)+" ")]},proxy:!0}])},[e("div",{staticClass:"aioseo-section-description"},[t._v(" "+t._s(t.strings.description)+" ")]),e("table",{staticClass:"redirects-options-table",attrs:{cellspacing:"0",cellpadding:"0"}},[e("thead",[e("tr",[e("td",[t._v(t._s(t.strings.aliasedDomain))]),e("td"),e("td",[t._v(t._s(t.strings.alias))]),e("td")])]),e("tbody",[t.parsedAliases.length?t._e():e("tr",{staticClass:"even"},[e("td",{attrs:{colspan:"4"}},[t._v(t._s(t.strings.addAliasesMessage))])]),t._l(t.parsedAliases,(function(s,i){return e("tr",{key:i,class:{even:0===i%2}},[e("td",{staticClass:"aliased-domain"},[e("base-input",{attrs:{size:"medium"},on:{input:function(s){return t.updatePage("aliasedDomain",s,i)}},model:{value:s.aliasedDomain,callback:function(e){t.$set(s,"aliasedDomain",e)},expression:"row.aliasedDomain"}})],1),e("td",{staticClass:"arrow-col"},[e("div",[e("svg-right-arrow")],1)]),e("td",[t._v(" "+t._s(t.$aioseo.urls.mainSiteUrl)+" ")]),e("td",{staticClass:"actions"},[e("core-tooltip",{attrs:{type:"action"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._v(" "+t._s(t.strings.delete)+" ")]},proxy:!0}],null,!0)},[e("svg-trash",{nativeOn:{click:function(s){return t.removeRow(i)}}})],1)],1)])}))],2)]),e("base-button",{attrs:{size:"medium",type:"blue"},on:{click:t.addRow}},[e("svg-circle-plus"),t._v(" "+t._s(t.strings.addNew)+" ")],1)],1)},a=[],n=e("5530"),l=(e("d81d"),e("2f62")),r={aliasedDomain:null},d={data:function(){return{strings:{siteAliases:this.$t.__("Site Aliases",this.$td),descriptionClosed:this.$t.__("Site aliases are disabled because you have relocated your site to another domain.",this.$td),description:this.$t.__("A site alias is another domain that you want to be redirected to this site. For example, an old domain, or a subdomain. This will redirect all URLs, including WordPress login and admin. You will need to configure your system (DNS and server) to pass requests for these domains to this WordPress install.",this.$td),aliasedDomain:this.$t.__("Aliased Domain",this.$td),alias:this.$t.__("Alias",this.$td),addNew:this.$t.__("Add New",this.$td),delete:this.$t.__("Delete",this.$td),addAliasesMessage:this.$t.__("Add an alias redirect by clicking in 'Add New'.",this.$td)},validRelocationURL:null}},computed:Object(n["a"])(Object(n["a"])({},Object(l["c"])("redirects",["redirectOptions"])),{},{parsedAliases:function(){return this.redirectOptions.fullSite.aliases.map((function(t){return t?JSON.parse(t):{}}))}}),methods:{removeRow:function(t){this.$delete(this.redirectOptions.fullSite.aliases,t),0===this.redirectOptions.fullSite.aliases.length&&this.addRow()},addRow:function(){this.redirectOptions.fullSite.aliases.push(JSON.stringify(Object(n["a"])({},r)))},updatePage:function(t,s,e){var i=JSON.parse(this.redirectOptions.fullSite.aliases[e]);i[t]=s,this.$set(this.redirectOptions.fullSite.aliases,e,JSON.stringify(i))}},mounted:function(){0===this.redirectOptions.fullSite.aliases.length&&this.addRow()}},o=d,c=e("2877"),u=Object(c["a"])(o,i,a,!1,null,null,null);s["default"]=u.exports}}]);