import{_ as s,w as a,c as r}from"./js/_plugin-vue_export-helper.BLXtEB-G.js";import{l as c}from"./js/links.C572zDFG.js";import{c as l,t as p,b as u,o as f}from"./js/runtime-core.esm-bundler.DMBo7TXk.js";import{t as m}from"./js/translations.Buvln_cw.js";import"./js/default-i18n.Bd0Z306Z.js";import"./js/helpers.D5tYIqKS.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 w(o,i,y,N,e,t){return e.display?(f(),l("div",{key:0,onClick:i[0]||(i[0]=a((...n)=>t.hideNotificationsPopup&&t.hideNotificationsPopup(...n),["stop"])),onMouseover:i[1]||(i[1]=(...n)=>t.hideNotificationsPopup&&t.hideNotificationsPopup(...n)),class:"aioseo-menu-new-notifications"},p(e.strings.newNotifications),33)):u("",!0)}const h=s(d,[["render",w]]),_=document.querySelector("#aioseo-menu-new-notifications");if(_){const o=r({...h,name:"Standalone/Notifications"});c(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")}
