(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["redirects-pro-partials-CanonicalSettings-vue"],{2264:function(t,e,s){},"350a":function(t,e,s){"use strict";s("2264")},"3af2":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("core-card",{attrs:{slug:"fullSiteRedirectsCanonical",toggles:t.redirectOptions.fullSite.canonical.enabled,disabled:t.redirectOptions.fullSite.relocate.enabled},scopedSlots:t._u([{key:"header",fn:function(){return[t.redirectOptions.fullSite.relocate.enabled?t._e():s("base-toggle",{model:{value:t.redirectOptions.fullSite.canonical.enabled,callback:function(e){t.$set(t.redirectOptions.fullSite.canonical,"enabled",e)},expression:"redirectOptions.fullSite.canonical.enabled"}}),t._v(" "+t._s(t.strings.canonicalSettings)+" ")]},proxy:!0},{key:"disabled",fn:function(){return[t._v(" "+t._s(t.strings.descriptionClosed)+" ")]},proxy:!0}])},[t.redirectOptions.fullSite.canonical.enabled?s("div",[s("div",{staticClass:"urls aioseo-row"},[s("div",{staticClass:"preview"},[s("div",{staticClass:"canonical-address"},[s("div",{staticClass:"desc"},[t._v(t._s(t.strings.currentSiteAddress)+":")]),s("div",{staticClass:"address"},[t._v(t._s(t.$aioseo.urls.mainSiteUrl))])]),s("div",{staticClass:"right-arrow"},[s("svg-right-arrow")],1),s("div",{staticClass:"canonical-address"},[s("div",{staticClass:"desc"},[t._v(t._s(t.strings.newSiteAddress)+":")]),s("div",{staticClass:"address"},[t._v(t._s(t.canonicalSiteAddress))])])]),t.canonicalSiteAddress!==t.$aioseo.urls.mainSiteUrl?s("div",[s("core-alert",{attrs:{type:"red"},domProps:{innerHTML:t._s(t.strings.configureSiteUrl)}})],1):t._e()]),s("core-settings-row",{staticClass:"http-to-https",attrs:{name:t.strings.httpToHttps},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-toggle",{model:{value:t.redirectOptions.fullSite.canonical.httpToHttps,callback:function(e){t.$set(t.redirectOptions.fullSite.canonical,"httpToHttps",e)},expression:"redirectOptions.fullSite.canonical.httpToHttps"}}),t._v(" "+t._s(t.strings.httpToHttpsDesc)+" "),t.redirectOptions.fullSite.canonical.httpToHttps?s("core-alert",{attrs:{type:"yellow"},domProps:{innerHTML:t._s(t.strings.httpsAlert)}}):t._e()]},proxy:!0}],null,!1,3691266634)}),s("core-settings-row",{attrs:{name:t.strings.preferredDomain,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-select",{attrs:{size:"large",options:t.preferredDomainOptions,value:t.preferredDomainValue},on:{input:function(e){return t.redirectOptions.fullSite.canonical.preferredDomain=e.value}}})]},proxy:!0}],null,!1,313125584)})],1):t._e()])},r=[],n=s("5530"),a=(s("ac1f"),s("5319"),s("466d"),s("4de4"),s("2f62")),o={data:function(){return{strings:{canonicalSettings:this.$t.__("Canonical Settings",this.$td),descriptionClosed:this.$t.__("Canonical Settings are disabled because you have relocated your site to another domain.",this.$td),currentSiteAddress:this.$t.__("Your current site address",this.$td),newSiteAddress:this.$t.__("Your new site address",this.$td),httpToHttps:this.$t.__("Redirect from HTTP to HTTPS",this.$td),httpToHttpsDesc:this.$t.__("Force a redirect from HTTP to HTTPS",this.$td),preferredDomain:this.$t.__("Preferred domain",this.$td),configureSiteUrl:this.$t.sprintf(this.$t.__("You'll need to update your Site Address URL to match your new site address. %1$sUpdate Site Address URL%2$s.",this.$td),'<a href="'.concat(this.$aioseo.urls.admin.generalSettings,'">'),"</a>"),httpsAlert:this.$t.sprintf(this.$t.__("%1$sWarning:%2$s ensure your HTTPS is working before forcing a redirect. %3$s",this.$td),"<strong>","</strong>",this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"redirectCanonicalHttps",!0))},preferredDomainOptions:[{label:this.$t.__("Leave domain as-is",this.td),value:""},{label:this.$t.__("Add www to domain",this.td),value:"add-www"},{label:this.$t.__("Remove www from domain",this.td),value:"remove-www"}]}},computed:Object(n["a"])(Object(n["a"])({},Object(a["c"])("redirects",["redirectOptions"])),{},{canonicalSiteAddress:function(){var t=this.$aioseo.urls.mainSiteUrl;switch(this.redirectOptions.fullSite.canonical.httpToHttps&&(t=t.replace(/^http:/,"https:")),this.redirectOptions.fullSite.canonical.preferredDomain){case"add-www":t=t.match(/:\/\/www./)?t:t.replace(/:\/\//,"://www.");break;case"remove-www":t=t.replace(/:\/\/www./,"://");break}return t},preferredDomainValue:function(){var t=this,e=this.preferredDomainOptions.filter((function(e){return e.value===t.redirectOptions.fullSite.canonical.preferredDomain}));return e||(e=this.preferredDomainOptions.filter((function(t){return""===t.value}))),e}})},l=o,c=(s("350a"),s("2877")),d=Object(c["a"])(l,i,r,!1,null,"18d5a666",null);e["default"]=d.exports}}]);