import{_ as s,o as a,c as r,t as c,D as p,f as u,A as l}from"./js/_plugin-vue_export-helper.a81c6319.js";import{s as f}from"./js/index.4dbecc01.js";import{t as m}from"./js/vuex.esm-bundler.55d3d5b3.js";import"./js/default-i18n.0e8bc810.js";import"./js/_commonjsHelpers.f84db168.js";import"./js/helpers.51e5fd9c.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 t=document.querySelector("#wp-admin-bar-aioseo-main");t&&t.classList.add("new-notifications")}},hideNotificationsPopup(){this.interval=null,setTimeout(()=>{this.display=!1;const t=document.querySelector("#wp-admin-bar-aioseo-main");t&&t.classList.remove("new-notifications")},500)}},created(){this.interval=setInterval(this.showNotificationsPopup,500),this.showNotificationsPopup(),setTimeout(()=>{this.interval=null,this.display=!1},5e3)}};function _(t,o,y,N,e,i){return e.display?(a(),r("div",{key:0,onClick:o[0]||(o[0]=p((...n)=>i.hideNotificationsPopup&&i.hideNotificationsPopup(...n),["stop"])),onMouseover:o[1]||(o[1]=(...n)=>i.hideNotificationsPopup&&i.hideNotificationsPopup(...n)),class:"aioseo-menu-new-notifications"},c(e.strings.newNotifications),33)):u("",!0)}const w=s(d,[["render",_]]),h=document.querySelector("#aioseo-menu-new-notifications");if(h){const t=l(w);t.use(f),t.config.globalProperties.$t=m,t.config.globalProperties.$td="all-in-one-seo-pack",t.config.globalProperties.$tdPro="aioseo-pro",t.mount("#aioseo-menu-new-notifications")}
