import{_ as s}from"./js/_plugin-vue_export-helper.58be9317.js";import{c as a,t as r,H as c,b as l,o as p,Y as u}from"./js/vue.runtime.esm-bundler.78401fbe.js";import{l as f}from"./js/links.574d4fd4.js";import{t as m}from"./js/translations.6e7b2383.js";import"./js/default-i18n.3881921e.js";import"./js/isArrayLikeObject.59b68b05.js";const d={data(){return{interval:null,display:!1,strings:{newNotifications:this.$t.__("You have new notifications!",this.$td)}}},methods:{showNotificationsPopup(){if(this.interval&&window.aioseoNotifications&&parseInt(window.aioseoNotifications.newNotifications)){this.display=!0;const o=document.querySelector("#wp-admin-bar-aioseo-main");o&&o.classList.add("new-notifications")}},hideNotificationsPopup(){this.interval=null,setTimeout(()=>{this.display=!1;const o=document.querySelector("#wp-admin-bar-aioseo-main");o&&o.classList.remove("new-notifications")},500)}},created(){this.interval=setInterval(this.showNotificationsPopup,500),this.showNotificationsPopup(),setTimeout(()=>{this.interval=null,this.display=!1},5e3)}};function _(o,t,y,N,e,i){return e.display?(p(),a("div",{key:0,onClick:t[0]||(t[0]=c((...n)=>i.hideNotificationsPopup&&i.hideNotificationsPopup(...n),["stop"])),onMouseover:t[1]||(t[1]=(...n)=>i.hideNotificationsPopup&&i.hideNotificationsPopup(...n)),class:"aioseo-menu-new-notifications"},r(e.strings.newNotifications),33)):l("",!0)}const w=s(d,[["render",_]]),h=document.querySelector("#aioseo-menu-new-notifications");if(h){const o=u({...w,name:"Standalone/Notifications"});f(o),o.config.globalProperties.$t=m,o.config.globalProperties.$td="all-in-one-seo-pack",o.config.globalProperties.$tdPro="aioseo-pro",o.mount("#aioseo-menu-new-notifications")}
