import{u as D,w as ot,B as I,d as X,b as et,a1 as it,I as at,a8 as rt,j as Z}from"./app-core.ae890a3f.js";import{a as U,_ as j,b as G,c as K,L as Q,u as lt}from"./Index.3216ad8e.js";import{C as B}from"./Tabs.b5aef6dd.js";import{C as $}from"./Index.ab3bcf62.js";import{C as ut}from"./SettingsRow.0c329e43.js";import{S as dt}from"./Short.a6939547.js";import{_ as W}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as o,a as k}from"./vendor-other.7b559694.js";import{aq as p,f as s,i as A,Q as e,R as l,j as J,U as b,a0 as g,ae as f,M as c,o as ct,v as r,S as T,P as O,aE as E,r as H,u as R}from"./vendor-vue-ui.de3ab35f.js";import{S as q,a as M,b as F}from"./InternalOutbound.dca1dd65.js";import{S as N}from"./External.934835f7.js";import{S as z}from"./Suggestion.94b951e4.js";import{C as tt}from"./Index.52399193.js";import{C as nt}from"./Blur.5e231db6.js";import{C as st}from"./Index.43bf246d.js";import{R as pt}from"./RequiredPlans.c6bcf6ea.js";import"./vendor-lodash.8e35bd59.js";import"./WpTable.65c7870f.js";import"./ScrollTo.f4df02aa.js";import"./Tooltip.ae7a1028.js";import"./Table.199a0fd0.js";import"./Button.a549093d.js";import"./Slide.e6618126.js";import"./Download.aee86410.js";import"./EditablePhrase.136366c7.js";import"./Close.098d4b76.js";import"./Editor.10fec9a8.js";import"./vendor-quill.fa67f709.js";import"./Input.8918dec2.js";import"./Pencil.405b16d2.js";import"./Trash.d35f8063.js";import"./Caret.a017b70a.js";import"./Plus.97dee933.js";import"./PostTypes.bcb4ad24.js";import"./postStatus.ff1bf93a.js";import"./Plus.d276bd63.js";import"./ProBadge.fd60f711.js";import"./Information.278772ab.js";import"./Row.6337df55.js";const Y="all-in-one-seo-pack",gt={setup(){return{postEditorStore:D()}},components:{CoreSettingsRow:ut,SvgRightArrowShort:dt},data(){return{strings:{title:o("Link Assistant",Y),description:o("Here you can view an overview of your existing links as well as find suggestions for new internal links. Click on the button below to view the Link Assistant panel.",Y),button:o("Open Link Assistant",Y)}}}},kt={class:"aioseo-link-assistant-sidebar"},mt={class:"aioseo-sidebar-content-title"};function bt(v,m,i,a,t,u){const S=p("svg-right-arrow-short"),_=p("base-button"),h=p("core-settings-row");return s(),A("div",kt,[v.$root.$data.screenContext==="sidebar"?(s(),e(h,{key:0,class:"snippet-description-row open-link-assistant-copy"},{content:l(()=>[J("div",mt,b(t.strings.title),1),J("p",null,b(t.strings.description),1),g(_,{class:"open-link-assistant-modal gray small",onClick:m[0]||(m[0]=L=>a.postEditorStore.currentPost.linkAssistant.modalOpen=!0)},{default:l(()=>[g(S),f(" "+b(t.strings.button),1)]),_:1})]),_:1})):c("",!0)])}const V=W(gt,[["render",bt]]),ft={key:0,class:"aioseo-tab-content aioseo-link-assistant"},vt={key:0},St={__name:"Links",props:{parentComponentContext:String},setup(v){const m="aioseo-pro",i=D(),a=ot();window.aioseoBus.$on("updatingLinks",w=>{i.currentPost.linkAssistant.updatingLinks=w});const t=H(0),u=H("inbound-internal"),S=H("suggestions-inbound"),_=R(()=>a.metaBoxTabs.linkAssistant||"inbound-internal"),h=R(()=>[{slug:"inbound-internal",icon:q,name:k("%1$s %2$s",i.currentPost.linkAssistant.links.inboundInternal.totals.total,o("Inbound Internal",m))},{slug:"outbound-internal",icon:M,name:k("%1$s %2$s",i.currentPost.linkAssistant.links.outboundInternal.totals.total,o("Outbound Internal",m))},{slug:"affiliate",icon:F,name:k("%1$s %2$s",i.currentPost.linkAssistant.links.affiliate.totals.total,o("Affiliate",m))},{slug:"external",icon:N,name:k("%1$s %2$s",i.currentPost.linkAssistant.links.external.totals.total,o("External",m))},{slug:"link-suggestions",icon:z,name:k("%1$s %2$s",C(i.currentPost.linkAssistant).length+i.currentPost.linkAssistant.links.suggestionsInbound.totals.total,o("Link Suggestions",m))}]),L=R(()=>k(o('Links & Suggestions for "%1$s"',m),window.wp.data.select("core/editor").getEditedPostAttribute("title"))),P=(w,n)=>{u.value=w,a.changeTabSettings({setting:"linkAssistant",value:w}),n&&(S.value=n)},{filteredSuggestionsOutbound:C}=lt();return ct(()=>{u.value=a.metaBoxTabs.linkAssistant||"inbound-internal"}),(w,n)=>(s(),A("div",null,[r(I).isActive("aioseo-link-assistant")?(s(),A("div",ft,[w.$root.$data.screenContext==="metabox"?(s(),A("div",vt,[(s(),e(r(B),{class:"link-tabs",internal:"",key:t.value,tabs:h.value,active:_.value,showSaveButton:!1,onChanged:n[0]||(n[0]=d=>P(d))},{"var-tab-icon":l(({tab:d})=>[(s(),e(T(d.icon),{class:O([{warning:d.warning}])},null,8,["class"]))]),_:1},8,["tabs","active"])),(s(),e(E,null,[u.value==="inbound-internal"?(s(),e(r(U),{key:0,post:r(i).currentPost.linkAssistant,metabox:"",onOpenSuggestions:n[1]||(n[1]=d=>P("link-suggestions","suggestions-inbound")),onLinksUpdated:n[2]||(n[2]=d=>t.value++)},null,8,["post"])):c("",!0)],1024)),(s(),e(E,null,[u.value==="outbound-internal"?(s(),e(r(j),{key:0,post:r(i).currentPost.linkAssistant,metabox:"",onOpenSuggestions:n[3]||(n[3]=d=>P("link-suggestions","suggestions-outbound")),onLinksUpdated:n[4]||(n[4]=d=>t.value++)},null,8,["post"])):c("",!0)],1024)),(s(),e(E,null,[u.value==="affiliate"?(s(),e(r(G),{key:0,post:r(i).currentPost.linkAssistant,onLinksUpdated:n[5]||(n[5]=d=>t.value++),metabox:""},null,8,["post"])):c("",!0)],1024)),(s(),e(E,null,[u.value==="external"?(s(),e(r(K),{key:0,post:r(i).currentPost.linkAssistant,onLinksUpdated:n[6]||(n[6]=d=>t.value++),metabox:""},null,8,["post"])):c("",!0)],1024)),u.value==="link-suggestions"?(s(),e(r(Q),{key:0,post:r(i).currentPost.linkAssistant,filteredSuggestionsOutbound:r(C)(r(i).currentPost.linkAssistant),initialTab:S.value,onSuggestionsTabChanged:n[7]||(n[7]=d=>S.value=d),onLinksUpdated:n[8]||(n[8]=d=>t.value++),metabox:""},null,8,["post","filteredSuggestionsOutbound","initialTab"])):c("",!0)])):c("",!0),g(r($),{show:r(i).currentPost.linkAssistant.modalOpen&&w.$root.$data.screenContext==="sidebar",classes:["aioseo-link-assistant-modal"],onClose:n[18]||(n[18]=d=>r(i).currentPost.linkAssistant.modalOpen=!1)},{headerTitle:l(()=>[f(b(L.value),1)]),body:l(()=>[(s(),e(r(B),{class:"link-tabs",internal:"",key:t.value,tabs:h.value,active:_.value,showSaveButton:!1,onChanged:n[9]||(n[9]=d=>P(d))},{"var-tab-icon":l(({tab:d})=>[(s(),e(T(d.icon),{class:O([{warning:d.warning}])},null,8,["class"]))]),_:1},8,["tabs","active"])),u.value==="inbound-internal"?(s(),e(r(U),{key:0,post:r(i).currentPost.linkAssistant,metabox:"",onOpenSuggestions:n[10]||(n[10]=d=>P("link-suggestions","suggestions-inbound")),onLinksUpdated:n[11]||(n[11]=d=>t.value++)},null,8,["post"])):c("",!0),u.value==="outbound-internal"?(s(),e(r(j),{key:1,post:r(i).currentPost.linkAssistant,metabox:"",onOpenSuggestions:n[12]||(n[12]=d=>P("link-suggestions","suggestions-outbound")),onLinksUpdated:n[13]||(n[13]=d=>t.value++)},null,8,["post"])):c("",!0),u.value==="affiliate"?(s(),e(r(G),{key:2,post:r(i).currentPost.linkAssistant,onLinksUpdated:n[14]||(n[14]=d=>t.value++),metabox:""},null,8,["post"])):c("",!0),u.value==="external"?(s(),e(r(K),{key:3,post:r(i).currentPost.linkAssistant,onLinksUpdated:n[15]||(n[15]=d=>t.value++),metabox:""},null,8,["post"])):c("",!0),u.value==="link-suggestions"?(s(),e(r(Q),{key:4,post:r(i).currentPost.linkAssistant,filteredSuggestionsOutbound:r(C)(r(i).currentPost.linkAssistant),initialTab:S.value,onSuggestionsTabChanged:n[16]||(n[16]=d=>S.value=d),onLinksUpdated:n[17]||(n[17]=d=>t.value++),metabox:""},null,8,["post","filteredSuggestionsOutbound","initialTab"])):c("",!0)]),_:1},8,["show"]),v.parentComponentContext!=="modal"?(s(),e(r(V),{key:1})):c("",!0)])):c("",!0)]))}},y="aioseo-pro",yt={setup(){return{addonsStore:rt(),linkAssistantStore:at(),pluginsStore:it(),postEditorStore:D(),rootStore:et(),links:X}},components:{CoreAlert:tt,CoreBlur:nt,CoreMainTabs:B,CoreModal:$,Cta:st,LinkAssistantInboundInternal:U,LinksSideBar:V,SvgLinkAffiliate:F,SvgLinkExternal:N,SvgLinkInternalInbound:q,SvgLinkInternalOutbound:M,SvgLinkSuggestion:z},props:{parentComponentContext:String},data(){return{addons:I,activeTab:"inbound-internal",activeSuggestionTab:"suggestions-inbound",mockedPostData:{links:{inboundInternal:{rows:[{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"AIOSEO also allows you to create video sitemaps and comes with tons of different SEO tools.",anchor:"video sitemaps",url:"#",context:{postTitle:"How to Create WordPress Image Sitemap",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"You may also want to check out how to name your image files for SEO in WordPress and write alt text for images.",anchor:"how to name your image files for SEO in WordPress",url:"#",context:{postTitle:"What’s the Best Image Format for Your Website?",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"To learn more, please check out our post on image SEO: how to best optimize your images in WordPress. ",anchor:"image SEO",url:"#",context:{postTitle:"How to Write Alt Text for Images for SEO",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"So let’s now move on to showing you exactly how easy it is to import and export redirects using the best redirect plugin for WordPress.",anchor:"best redirect plugin for WordPress",url:"#",context:{postTitle:"How to Easily Import and Export Redirects in WordPress",permalink:"#",editLink:"#",postType:{singular:"Post"}}}],totals:{total:6}},outboundInternal:{totals:{total:12}},affiliate:{totals:{total:8}},external:{totals:{total:24}},suggestionsInbound:{totals:{total:9}},suggestionsOutbound:{totals:{total:9}}}},strings:{ctaButtonText:o("Activate Link Assistant",y),ctaHeader:o("Enable Link Assistant on Your Site",y),ctaDescription:o("Get relevant suggestions for adding internal links to all your content as well as finding any orphaned posts that have no internal links.",y),linkOpportunities:o("Actionable Link Suggestions",y),orphanedPosts:o("See Orphaned Posts",y),affiliateLinks:o("See Affiliate Links",y),domainReports:o("Top Domain Reports",y),activateError:o("An error occurred while activating the addon. Please upload it manually or contact support for more information.",y),permissionWarning:o("You currently don't have permission to activate this addon. Please ask a site administrator to activate first.",y)},failed:!1,activationLoading:!1}},computed:{initialTab(){return"inbound-internal"},tabs(){return[{slug:"inbound-internal",icon:"svg-link-internal-inbound",name:k("%1$s %2$s",this.mockedPostData.links.inboundInternal.totals.total,o("Inbound Internal",y))},{slug:"outbound-internal",icon:"svg-link-internal-outbound",name:k("%1$s %2$s",this.mockedPostData.links.outboundInternal.totals.total,o("Outbound Internal",y))},{slug:"affiliate",icon:"svg-link-affiliate",name:k("%1$s %2$s",this.mockedPostData.links.affiliate.totals.total,o("Affiliate",y))},{slug:"external",icon:"svg-link-external",name:k("%1$s %2$s",this.mockedPostData.links.external.totals.total,o("External",y))},{slug:"link-suggestions",icon:"svg-link-suggestion",name:k("%1$s %2$s",this.mockedPostData.links.suggestionsOutbound.totals.total+this.mockedPostData.links.suggestionsInbound.totals.total,o("Link Suggestions",y))}]},modalHeader(){return k(o('Links & Suggestions for "%1$s"',y),window.wp.data.select("core/editor").getEditedPostAttribute("title"))}},methods:{activateAddon(){this.failed=!1,this.activationLoading=!0;const v=I.getAddon("aioseo-link-assistant");this.pluginsStore.installPlugins([{plugin:v.basename}]).then(m=>{if(m.body.failed.length){this.activationLoading=!1,this.failed=!0;return}const i=[this.linkAssistantStore.getPostData()];Promise.all(i).then(()=>{this.activationLoading=!1,v.hasMinimumVersion=!0,v.isActive=!0,this.addonsStore.updateAddon(v)})}).catch(()=>{this.activationLoading=!1})}}},xt={class:"aioseo-tab-content aioseo-link-assistant"},_t={key:0};function ht(v,m,i,a,t,u){const S=p("core-main-tabs"),_=p("link-assistant-inbound-internal"),h=p("core-blur"),L=p("core-alert"),P=p("cta"),C=p("core-modal"),w=p("links-side-bar");return s(),A("div",xt,[v.$root.$data.screenContext==="metabox"?(s(),A("div",_t,[g(h,null,{default:l(()=>[g(S,{class:"link-tabs",internal:"",tabs:u.tabs,active:u.initialTab,showSaveButton:!1},{"var-tab-icon":l(({tab:n})=>[(s(),e(T(n.icon),{class:O([{warning:n.warning}])},null,8,["class"]))]),_:1},8,["tabs","active"]),t.activeTab==="inbound-internal"?(s(),e(_,{key:0,post:t.mockedPostData,metabox:""},null,8,["post"])):c("",!0)]),_:1}),g(P,{"cta-button-visible":t.addons.userCanInstallOrActivate("aioseo-link-assistant"),"cta-button-visible-warning":t.strings.permissionWarning,"cta-link":a.rootStore.aioseo.urls.aio.featureManager+"&aioseo-activate=aioseo-link-assistant","cta-button-action":"","cta-button-loading":t.activationLoading,onCtaButtonClick:u.activateAddon,"same-tab":"","button-text":t.strings.ctaButtonText,"learn-more-link":a.links.getDocUrl("link-assistant"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks],hideBonus:""},{"header-text":l(()=>[f(b(t.strings.ctaHeader),1)]),description:l(()=>[t.failed?(s(),e(L,{key:0,type:"red"},{default:l(()=>[f(b(t.strings.activateError),1)]),_:1})):c("",!0),f(" "+b(t.strings.ctaDescription),1)]),"learn-more-text":l(()=>[f(b(t.strings.learnMoreText),1)]),_:1},8,["cta-button-visible","cta-button-visible-warning","cta-link","cta-button-loading","onCtaButtonClick","button-text","learn-more-link","feature-list"])])):c("",!0),g(C,{show:a.postEditorStore.currentPost.linkAssistant.modalOpen&&v.$root.$data.screenContext==="sidebar",classes:["aioseo-link-assistant-modal"],onClose:m[0]||(m[0]=n=>a.postEditorStore.currentPost.linkAssistant.modalOpen=!1)},{headerTitle:l(()=>[f(b(u.modalHeader),1)]),body:l(()=>[g(h,null,{default:l(()=>[g(S,{class:"link-tabs",internal:"",tabs:u.tabs,active:u.initialTab,showSaveButton:!1},{"var-tab-icon":l(({tab:n})=>[(s(),e(T(n.icon),{class:O([{warning:n.warning}])},null,8,["class"]))]),_:1},8,["tabs","active"]),t.activeTab==="inbound-internal"?(s(),e(_,{key:0,post:t.mockedPostData,metabox:""},null,8,["post"])):c("",!0)]),_:1}),g(P,{"cta-button-visible":t.addons.userCanInstallOrActivate("aioseo-link-assistant"),"cta-button-visible-warning":t.strings.permissionWarning,"cta-link":a.rootStore.aioseo.urls.aio.featureManager+"&aioseo-activate=aioseo-link-assistant","cta-button-action":"","cta-button-loading":t.activationLoading,onCtaButtonClick:u.activateAddon,"same-tab":"","button-text":t.strings.ctaButtonText,"learn-more-link":a.links.getDocUrl("link-assistant"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks],hideBonus:""},{"header-text":l(()=>[f(b(t.strings.ctaHeader),1)]),description:l(()=>[t.failed?(s(),e(L,{key:0,type:"red"},{default:l(()=>[f(b(t.strings.activateError),1)]),_:1})):c("",!0),f(" "+b(t.strings.ctaDescription),1)]),"learn-more-text":l(()=>[f(b(t.strings.learnMoreText),1)]),_:1},8,["cta-button-visible","cta-button-visible-warning","cta-link","cta-button-loading","onCtaButtonClick","button-text","learn-more-link","feature-list"])]),_:1},8,["show"]),i.parentComponentContext!=="modal"?(s(),e(w,{key:1})):c("",!0)])}const Pt=W(yt,[["render",ht]]),x="all-in-one-seo-pack",wt={setup(){return{licenseStore:Z(),postEditorStore:D(),links:X}},components:{CoreAlert:tt,CoreBlur:nt,CoreMainTabs:B,CoreModal:$,Cta:st,LinkAssistantInboundInternal:U,LinksSideBar:V,SvgLinkAffiliate:F,SvgLinkExternal:N,SvgLinkInternalInbound:q,SvgLinkInternalOutbound:M,SvgLinkSuggestion:z,RequiredPlans:pt},props:{parentComponentContext:String},data(){return{activeTab:"inbound-internal",activeSuggestionTab:"suggestions-inbound",mockedPostData:{links:{inboundInternal:{rows:[{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"AIOSEO also allows you to create video sitemaps and comes with tons of different SEO tools.",anchor:"video sitemaps",url:"#",context:{postTitle:"How to Create WordPress Image Sitemap",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"You may also want to check out how to name your image files for SEO in WordPress and write alt text for images.",anchor:"how to name your image files for SEO in WordPress",url:"#",context:{postTitle:"What’s the Best Image Format for Your Website?",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"To learn more, please check out our post on image SEO: how to best optimize your images in WordPress. ",anchor:"image SEO",url:"#",context:{postTitle:"How to Write Alt Text for Images for SEO",permalink:"#",editLink:"#",postType:{singular:"Post"}}},{phrase:"So let’s now move on to showing you exactly how easy it is to import and export redirects using the best redirect plugin for WordPress.",anchor:"best redirect plugin for WordPress",url:"#",context:{postTitle:"How to Easily Import and Export Redirects in WordPress",permalink:"#",editLink:"#",postType:{singular:"Post"}}}],totals:{total:6}},outboundInternal:{totals:{total:12}},affiliate:{totals:{total:8}},external:{totals:{total:24}},suggestionsInbound:{totals:{total:9}},suggestionsOutbound:{totals:{total:9}}}},strings:{ctaButtonText:o("Unlock Link Assistant",x),ctaHeader:k(o("Link Assistant is a %1$s Feature",x),"PRO"),linkAssistantDescription:o("Get relevant suggestions for adding internal links to all your content as well as finding any orphaned posts that have no internal links.",x),thisFeatureRequires:o("This feature requires one of the following plans:",x),linkOpportunities:o("Actionable Link Suggestions",x),orphanedPosts:o("See Orphaned Posts",x),affiliateLinks:o("See Affiliate Links",x),domainReports:o("Top Domain Reports",x)}}},computed:{initialTab(){return"inbound-internal"},tabs(){return[{slug:"inbound-internal",icon:"svg-link-internal-inbound",name:k("%1$s %2$s",this.mockedPostData.links.inboundInternal.totals.total,o("Inbound Internal",x))},{slug:"outbound-internal",icon:"svg-link-internal-outbound",name:k("%1$s %2$s",this.mockedPostData.links.outboundInternal.totals.total,o("Outbound Internal",x))},{slug:"affiliate",icon:"svg-link-affiliate",name:k("%1$s %2$s",this.mockedPostData.links.affiliate.totals.total,o("Affiliate",x))},{slug:"external",icon:"svg-link-external",name:k("%1$s %2$s",this.mockedPostData.links.external.totals.total,o("External",x))},{slug:"link-suggestions",icon:"svg-link-suggestion",name:k("%1$s %2$s",this.mockedPostData.links.suggestionsOutbound.totals.total+this.mockedPostData.links.suggestionsInbound.totals.total,o("Link Suggestions",x))}]},modalHeader(){return k(o('Links & Suggestions for "%1$s"',x),window.wp.data.select("core/editor").getEditedPostAttribute("title"))}}},At={class:"aioseo-tab-content aioseo-link-assistant"},Lt={key:0};function Ct(v,m,i,a,t,u){const S=p("core-main-tabs"),_=p("link-assistant-inbound-internal"),h=p("core-blur"),L=p("required-plans"),P=p("cta"),C=p("core-modal"),w=p("links-side-bar");return s(),A("div",At,[v.$root.$data.screenContext==="metabox"?(s(),A("div",Lt,[g(h,null,{default:l(()=>[g(S,{class:"link-tabs",internal:"",tabs:u.tabs,active:u.initialTab,showSaveButton:!1},{"var-tab-icon":l(({tab:n})=>[(s(),e(T(n.icon),{class:O([{warning:n.warning}])},null,8,["class"]))]),_:1},8,["tabs","active"]),t.activeTab==="inbound-internal"?(s(),e(_,{key:0,post:t.mockedPostData,metabox:""},null,8,["post"])):c("",!0)]),_:1}),g(P,{"cta-link":a.links.getPricingUrl("link-assistant","link-assistant-upsell","metabox","liteUpgrade"),"button-text":t.strings.ctaButtonText,"learn-more-link":a.links.getUpsellUrl("link-assistant","metabox","liteUpgrade"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks],"hide-bonus":!a.licenseStore.isUnlicensed},{"header-text":l(()=>[f(b(t.strings.ctaHeader),1)]),description:l(()=>[g(L,{addon:"aioseo-link-assistant"}),f(" "+b(t.strings.linkAssistantDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list","hide-bonus"])])):c("",!0),g(C,{show:a.postEditorStore.currentPost.linkAssistant.modalOpen&&v.$root.$data.screenContext==="sidebar",classes:["aioseo-link-assistant-modal"],onClose:m[0]||(m[0]=n=>a.postEditorStore.currentPost.linkAssistant.modalOpen=!1)},{headerTitle:l(()=>[f(b(u.modalHeader),1)]),body:l(()=>[g(h,null,{default:l(()=>[g(S,{class:"link-tabs",internal:"",tabs:u.tabs,active:u.initialTab,showSaveButton:!1},{"var-tab-icon":l(({tab:n})=>[(s(),e(T(n.icon),{class:O([{warning:n.warning}])},null,8,["class"]))]),_:1},8,["tabs","active"]),t.activeTab==="inbound-internal"?(s(),e(_,{key:0,post:t.mockedPostData,metabox:""},null,8,["post"])):c("",!0)]),_:1}),g(P,{"cta-link":a.links.getPricingUrl("link-assistant","link-assistant-upsell","metabox","liteUpgrade"),"button-text":t.strings.ctaButtonText,"learn-more-link":a.links.getUpsellUrl("link-assistant","metabox","liteUpgrade"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks],"hide-bonus":!a.licenseStore.isUnlicensed},{"header-text":l(()=>[f(b(t.strings.ctaHeader),1)]),description:l(()=>[g(L,{addon:"aioseo-link-assistant"}),f(" "+b(t.strings.linkAssistantDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list","hide-bonus"])]),_:1},8,["show"]),i.parentComponentContext!=="modal"?(s(),e(w,{key:1})):c("",!0)])}const Tt=W(wt,[["render",Ct]]),Ot={setup(){return{addons:I,licenseStore:Z()}},components:{Links:St,LinksActivate:Pt,LinksLite:Tt},props:{parentComponentContext:String}},Et={class:"aioseo-tab-content aioseo-link-assistant"};function It(v,m,i,a,t,u){const S=p("Links",!0),_=p("LinksLite"),h=p("LinksActivate");return s(),A("div",Et,[!a.licenseStore.isUnlicensed&&a.addons.isActive("aioseo-link-assistant")&&!a.addons.requiresUpgrade("aioseo-link-assistant")?(s(),e(S,{key:0,parentComponentContext:i.parentComponentContext},null,8,["parentComponentContext"])):c("",!0),a.licenseStore.isUnlicensed||a.addons.requiresUpgrade("aioseo-link-assistant")?(s(),e(_,{key:1,parentComponentContext:i.parentComponentContext},null,8,["parentComponentContext"])):c("",!0),!a.licenseStore.isUnlicensed&&!a.addons.isActive("aioseo-link-assistant")&&a.addons.canActivate("aioseo-link-assistant")&&!a.addons.requiresUpgrade("aioseo-link-assistant")?(s(),e(h,{key:2,parentComponentContext:i.parentComponentContext},null,8,["parentComponentContext"])):c("",!0)])}const Sn=W(Ot,[["render",It]]);export{Sn as default};