import{u as A,d as h}from"./vue-router.41e9d860.js";import{i as v,al as k,a as R}from"./index.4b887428.js";import{a as i}from"./addons.9cee8bbb.js";import{R as S,a as b}from"../link-assistant.11cb1cf0.js";import{C as y}from"./Index.d5e64911.js";import{_ as u}from"./_plugin-vue_export-helper.eefbdd86.js";import{o as a,c as m,W as f,f as U,l as E,a2 as T,R as g,a1 as $,a5 as q}from"./runtime-core.esm-bundler.ce5add0b.js";import x from"./Overview.30319147.js";import"./translations.e71e2202.js";import{_ as L}from"./default-i18n.65d58dd6.js";import"./helpers.633a054c.js";import"./upperFirst.5dc701f8.js";import"./runtime-dom.esm-bundler.dc49ee3e.js";import"./index.20093c86.js";import"./index.f5fa0cce.js";import"./Button.9a301412.js";import"./Input.f04bee4d.js";import"./Index.2a391835.js";import"./Close.ccd53ef3.js";import"./Pencil.d82df6a1.js";import"./Trash.87a7d946.js";import"./Select.f950b4c6.js";import"./Caret.cd869c5d.js";import"./Toggle.11571651.js";import"./index.d80c2c2c.js";import"./dynamic-import-helper.c6869e54.js";import"./preload-helper.5f06849a.js";import"./license.388ee2cc.js";/* empty css             */import"./params.af7ed354.js";import"./Tabs.13bb57b9.js";import"./ProBadge.e6ec5f9a.js";import"./Information.98ebb530.js";import"./Slide.3003ef51.js";import"./Header.ab7dd0a5.js";import"./ScrollAndHighlight.f49826ae.js";import"./ScrollTo.81bea8a7.js";import"./LicenseKeyBar.40cfe2b2.js";import"./LogoGear.32164283.js";import"./AnimatedNumber.97e7e241.js";import"./numbers.cdba2587.js";import"./Logo.3715aad2.js";import"./Support.1c4a9051.js";import"./date.f7db1924.js";import"./datetime.f197aeae.js";import"./constants.bc5863fe.js";import"./Url.9f0afcb2.js";import"./Exclamation.fc507dc9.js";import"./Gear.0f79dbf5.js";import"./AddonConditions.a6214a89.js";import"./Index.72794c8a.js";import"./Row.bb9acf3f.js";import"./Blur.92695742.js";import"./Card.597c7ae2.js";import"./Tooltip.23c7170d.js";import"./InternalOutbound.5b420e7d.js";import"./External.5f8a6285.js";import"./SeoSiteScore.67f514f9.js";import"./DonutChartWithLegend.f0fcceca.js";import"./DonutChart.16da12c9.js";import"./Loading.ecf9741f.js";import"./Row.fec407d2.js";import"./RequiredPlans.515ee73d.js";const M=()=>({getExcludedActivationTabs:(t,e)=>{var r;if(!v().isUnlicensed&&i.isActive(e)&&!i.requiresUpgrade(e))return[];const s=[];return(r=t==null?void 0:t.options)!=null&&r.routes&&t.options.routes.forEach(o=>{if(!o.meta||!o.meta.middleware)return;(Array.isArray(o.meta.middleware)?o.meta.middleware:[o.meta.middleware]).some(d=>d===S)&&s.push(o.name)}),s}}),B=()=>({getExcludedUpdateTabs:(t,e)=>{if(!v().isUnlicensed&&i.hasMinimumVersion(e)&&!i.requiresUpgrade(e))return[];const s=[];return t.options.routes.forEach(r=>{if(!r.meta||!r.meta.middleware)return;(Array.isArray(r.meta.middleware)?r.meta.middleware:[r.meta.middleware]).some(p=>p===b)&&s.push(r.name)}),s}}),C={};function D(n,t){return a(),m("div")}const N=u(C,[["render",D]]),P={};function V(n,t){return a(),m("div")}const W=u(P,[["render",V]]),j={};function z(n,t){return a(),m("div")}const F=u(j,[["render",z]]),G={};function H(n,t){return a(),m("div")}const I=u(G,[["render",H]]),J={class:"aioseo-link-assistant"},se={__name:"Main",setup(n){const t="all-in-one-seo-pack",e=A(),c=h(),s=f(()=>e.name==="overview"?x:e.name==="domains-report"?N:e.name==="links-report"?W:e.name==="post-report"?F:e.name==="settings"?I:x),{getExcludedActivationTabs:r}=M(),{getExcludedUpdateTabs:o}=B(),p={pageName:L("Link Assistant",t)},d=f(()=>{const _=(i.isActive("aioseo-link-assistant")?o(c,"aioseo-link-assistant"):r(c,"aioseo-link-assistant"))||[];return _.push("post-report"),_}),l=k(),w=R();return U(()=>{window.aioseoBus.$on("changes-saved",()=>{l.getMenuData()}),w.isPro&&l.suggestionsScan.percent!==100&&i.isActive("aioseo-link-assistant")&&!i.requiresUpgrade("aioseo-link-assistant")&&i.hasMinimumVersion("aioseo-link-assistant")&&l.pollSuggestionsScan()}),(_,K)=>(a(),m("div",J,[E(g(y),{"page-name":p.pageName,"exclude-tabs":d.value,showTabs:g(e).name!=="post-report"},{default:T(()=>[(a(),$(q(s.value)))]),_:1},8,["page-name","exclude-tabs","showTabs"])]))}};export{se as default};
