(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["chunk-2d0cb704"],{"4a56":function(t,i,n){"use strict";n.r(i);var a=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",[n("blur"),n("cta",{attrs:{"cta-link":t.$aioseo.urls.aio.featureManager+"&aioseo-activate=aioseo-link-assistant","cta-button-action":"","cta-button-loading":t.activationLoading,"same-tab":"","button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getDocUrl("link-assistant"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks]},on:{"cta-button-click":t.activateAddon},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t.failed?n("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.strings.activateError)+" ")]):t._e(),t._v(" "+t._s(t.strings.ctaDescription)+" ")]},proxy:!0},{key:"learn-more-text",fn:function(){return[t._v(" "+t._s(t.strings.learnMoreText)+" ")]},proxy:!0}])})],1)},e=[],s=n("5530"),o=(n("d3b7"),n("3ca3"),n("ddb0"),n("2f62")),r=n("2585"),d={components:{Blur:r["default"]},data:function(){return{strings:{ctaButtonText:this.$t.__("Activate Link Assistant",this.$tdPro),ctaHeader:this.$t.__("Enable Link Assistant on your Site",this.$tdPro),ctaDescription:this.$t.__("Get relevant suggestions for adding internal links to all your content as well as finding any orphaned posts that have no internal links.",this.$td),linkOpportunities:this.$t.__("Actionable Link Suggestions",this.$td),orphanedPosts:this.$t.__("See Orphaned Posts",this.$td),affiliateLinks:this.$t.__("See Affiliate Links",this.$td),domainReports:this.$t.__("Top Domain Reports",this.$td),activateError:this.$t.__("An error occurred while activating the addon. Please upload it manually or contact support for more information.",this.$td),permissionWarning:this.$t.__("You currently don't have permission to activate this addon. Please ask a site administrator to activate first.",this.$td)},failed:!1,activationLoading:!1}},methods:Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({},Object(o["b"])("linkAssistant",["getMenuData"])),Object(o["b"])(["installPlugins"])),Object(o["d"])(["updateAddon"])),{},{activateAddon:function(){var t=this;this.failed=!1,this.activationLoading=!0;var i=this.$addons.getAddon("aioseo-link-assistant");this.installPlugins([{plugin:i.basename}]).then((function(n){if(n.body.failed.length)return t.activationLoading=!1,void(t.failed=!0);var a=[t.getMenuData()];Promise.all(a).then((function(){t.activationLoading=!1,i.isActive=!0,t.updateAddon(i)}))})).catch((function(){t.activationLoading=!1}))}})},c=d,l=n("2877"),u=Object(l["a"])(c,a,e,!1,null,null,null);i["default"]=u.exports}}]);