import{a as s,c as a}from"./js/runtime-dom.esm-bundler.dc49ee3e.js";import{l as r}from"./js/index.4b887428.js";import"./js/translations.e71e2202.js";import{_ as c}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./js/default-i18n.65d58dd6.js";import{c as p,$ as l,a4 as f,o as m}from"./js/runtime-core.esm-bundler.ce5add0b.js";import"./js/helpers.633a054c.js";const d="all-in-one-seo-pack",w={data(){return{interval:null,display:!1,strings:{newNotifications:u("You have new notifications!",d)}}},methods:{showNotificationsPopup(){if(this.interval&&window.aioseoNotifications&&parseInt(window.aioseoNotifications.newNotifications)){this.display=!0;const i=document.querySelector("#wp-admin-bar-aioseo-main");i&&i.classList.add("new-notifications")}},hideNotificationsPopup(){this.interval=null,setTimeout(()=>{this.display=!1;const i=document.querySelector("#wp-admin-bar-aioseo-main");i&&i.classList.remove("new-notifications")},500)}},created(){this.interval=setInterval(this.showNotificationsPopup,500),this.showNotificationsPopup(),setTimeout(()=>{this.interval=null,this.display=!1},5e3)}};function _(i,o,N,v,e,t){return e.display?(m(),p("div",{key:0,onClick:o[0]||(o[0]=s((...n)=>t.hideNotificationsPopup&&t.hideNotificationsPopup(...n),["stop"])),onMouseover:o[1]||(o[1]=(...n)=>t.hideNotificationsPopup&&t.hideNotificationsPopup(...n)),class:"aioseo-menu-new-notifications"},l(e.strings.newNotifications),33)):f("",!0)}const h=c(w,[["render",_]]),y=document.querySelector("#aioseo-menu-new-notifications");if(y){const i=a({...h,name:"Standalone/Notifications"});r(i),i.mount("#aioseo-menu-new-notifications")}
