import{e as i}from"./js/elemLoaded.9a6eb745.js";import{s as r,_ as c}from"./js/default-i18n.3881921e.js";class l{constructor(){this.plugins(),this.pluginsInstall()}plugins(){if(this.selector=document.querySelector('tr[data-plugin="'+window.aioseoPlugins.basename+'"]'),!this.selector)return;this.selector.classList.add("aioseo-plugin-row");const t=this.selector.querySelectorAll("span.proupgrade a, span.docs a, span.support a");t.length&&t.forEach(e=>{e.setAttribute("target","_blank")});const n=this.selector.querySelectorAll(".column-description .active a");n.length&&n.forEach(e=>{e.setAttribute("target","_blank")})}pluginsInstall(){const t=window.aioseoPlugins.conflictingPlugins;t&&t.forEach(n=>{i(".plugin-card.plugin-card-"+n,n+"InstallPlugin"),document.addEventListener("animationstart",function(e){if(n+"InstallPlugin"!==e.animationName||(this.selector=document.querySelector(".plugin-card.plugin-card-"+n),!this.selector)||this.selector.querySelector(".notice"))return;const o=document.createElement("div");o.classList.add("notice","inline","notice-error","notice-alt");const s=r(c("%1$sThis plugin is known to conflict with %2$s.%3$s We don't recommend that you activate this plugin in order to prevent conflicts.","all-in-one-seo-pack"),"<strong>","All in One SEO","</strong>");o.innerHTML=`<p>${s}</p>`,this.selector.prepend(o)})})}}new l;
