import{a as s,c as a}from"./js/runtime-dom.esm-bundler.36191dca.js";import{l as r}from"./js/index.6205915e.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{a3 as p,t as l,b as f,o as m}from"./js/runtime-core.esm-bundler.50cb9e6d.js";import"./js/helpers.7981a424.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")}
