import{_ as s,o as a,c as r,t as c,g as p,a as u,b as l}from"./js/_plugin-vue_export-helper.2d9794a3.js";import{s as f}from"./js/index.02a5ed9a.js";import{t as m}from"./js/vuex.esm-bundler.8589b2dd.js";import"./js/isArrayLikeObject.c492f682.js";import"./js/default-i18n.ab92175e.js";import"./js/_commonjsHelpers.f84db168.js";import"./js/helpers.de7566d0.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,g,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")}
