import{n as s,V as o}from"./js/_plugin-vue2_normalizer.61652a7c.js";import{s as a}from"./js/index.ec9852b3.js";import{t as r}from"./js/translations.c394afe3.js";import"./js/vuex.esm.8fdeb4b6.js";import"./js/isArrayLikeObject.9b4b678d.js";import"./js/default-i18n.3a91e0e5.js";const c={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)}};var u=function(){var n=this,i=n._self._c;return n.display?i("div",{staticClass:"aioseo-menu-new-notifications",on:{click:function(e){return e.stopPropagation(),n.hideNotificationsPopup.apply(null,arguments)},mouseover:n.hideNotificationsPopup}},[n._v(n._s(n.strings.newNotifications))]):n._e()},l=[],p=s(c,u,l,!1,null,null,null,null);const f=p.exports,m=document.querySelector("#aioseo-menu-new-notifications");m&&(o.prototype.$t=r,o.prototype.$td="all-in-one-seo-pack",o.prototype.$tdPro="aioseo-pro",new o({store:a,render:t=>t(f)}).$mount("#aioseo-menu-new-notifications"));
