import{u as A,d as h}from"./vue-router.53cc8f39.js";import{g as v,ad as k,a as R}from"./index.e0fdfdc6.js";import{a as i}from"./addons.9f9e1bb8.js";import{R as S,a as b}from"../link-assistant.7f421dcd.js";import{C as y}from"./Index.7f8ffa1a.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.e9c09fe4.js";import"./translations.5e539ab1.js";import{_ as L}from"./default-i18n.368c2d5c.js";import"./helpers.b1696305.js";import"./upperFirst.f1673ffa.js";import"./runtime-dom.esm-bundler.dc49ee3e.js";import"./index.b24095c1.js";import"./index.6dbf4bd7.js";import"./Button.277f0e3d.js";import"./Input.94feb999.js";import"./Index.2a391835.js";import"./Close.ccd53ef3.js";import"./Pencil.d82df6a1.js";import"./Trash.87a7d946.js";import"./Select.2339c1ce.js";import"./Caret.cd869c5d.js";import"./Toggle.78d1886d.js";import"./index.d80c2c2c.js";import"./dynamic-import-helper.ead4d3a0.js";import"./preload-helper.5f06849a.js";import"./license.09950db1.js";/* empty css             */import"./params.af7ed354.js";import"./Tabs.9cad5d60.js";import"./ProBadge.e6ec5f9a.js";import"./Information.98ebb530.js";import"./Slide.3003ef51.js";import"./Header.7289cdcd.js";import"./ScrollAndHighlight.65c440ec.js";import"./ScrollTo.81bea8a7.js";import"./LicenseKeyBar.ef8b714c.js";import"./LogoGear.32164283.js";import"./AnimatedNumber.987856b6.js";import"./numbers.5e9084c0.js";import"./Logo.3715aad2.js";import"./Support.1c4a9051.js";import"./date.bb1bcec3.js";import"./datetime.f197aeae.js";import"./constants.cb29e214.js";import"./Url.1c574b17.js";import"./Exclamation.fc507dc9.js";import"./Gear.0f79dbf5.js";import"./AddonConditions.88221402.js";import"./Index.98b153be.js";import"./Row.bb9acf3f.js";import"./Blur.92695742.js";import"./Card.a415c187.js";import"./Tooltip.23c7170d.js";import"./InternalOutbound.5b420e7d.js";import"./External.5f8a6285.js";import"./SeoSiteScore.326bb2a0.js";import"./DonutChartWithLegend.1bca9e7f.js";import"./DonutChart.2ca39914.js";import"./Loading.ecf9741f.js";import"./Row.fec407d2.js";import"./RequiredPlans.a441f3ff.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};
