(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[7063],{3075:t=>{t.exports=function(){return this.wp.i18n}()},8601:t=>{t.exports=function(){return this.wp.element}()},24740:t=>{t.exports=function(){return this.itsec.dashboard.api}()},31987:t=>{t.exports=function(){return this.wp.data}()},35145:t=>{t.exports=function(){return this.itsec.core["admin-notices-api"]}()},38125:t=>{t.exports=function(){return this.wp.plugins}()},39959:t=>{t.exports=function(){return this.wp.components}()},46627:t=>{t.exports=function(){return this.itsec.packages.data}()},49508:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var o=n(51609),i=n(39959),s=n(3075),r=n(8601),c=n(31987),a=n(79057),u=n(60158);const p=(0,n(81923).A)(i.ToolbarButton,{shouldForwardProp:t=>"noticesCount"!==t,target:"e17c85xw0"})("&::after{position:absolute;left:-6px;top:-6px;z-index:1;min-width:24px;padding:4px;font-size:11px;color:",(({theme:t})=>t.colors.text.white),";background:",(({theme:t})=>t.colors.primary.base),";border-radius:12px;content:'",(({noticesCount:t})=>t),"';opacity:",(({noticesCount:t})=>t?1:0),";transition:opacity 1000ms ease-in-out;}");function d(){const[t,e]=(0,r.useState)(!1),{notices:n,noticesLoaded:d}=(0,c.useSelect)((t=>({notices:t("ithemes-security/admin-notices").getNotices(),noticesLoaded:t("ithemes-security/admin-notices").areNoticesLoaded()})),[]);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(p,{"aria-expanded":t,onClick:()=>!t&&e(!0),icon:a.A,text:(0,s.__)("Alerts","better-wp-security"),noticesCount:n.length}),t&&(0,o.createElement)(i.Popover,{className:"itsec-admin-bar-admin-notices__content",expandOnMobile:!0,focusOnMount:"container",position:"bottom left",headerTitle:(0,s.__)("Notifications","better-wp-security"),onClose:()=>e(!1),onFocusOutside:()=>e(!1)},(0,o.createElement)(u.A,{notices:n,loaded:d})))}},51609:t=>{"use strict";t.exports=window.React},55933:t=>{t.exports=function(){return this.wp.primitives}()},62247:t=>{t.exports=function(){return this.wp.isShallowEqual}()},66087:t=>{"use strict";t.exports=window.lodash},77172:t=>{t.exports=function(){return this.wp.url}()},79860:t=>{t.exports=function(){return this.wp.keycodes}()},83052:(t,e,n)=>{"use strict";n.r(e);var o=n(51609),i=n(38125),s=(n(35145),n(24740)),r=n(49508);n.p=window.itsecWebpackPublicPath,(0,i.registerPlugin)("itsec-admin-notices-dashboard-admin-bar",{render:()=>(0,o.createElement)(s.AdminBarFill,null,(0,o.createElement)(r.A,null))})},85631:t=>{t.exports=function(){return this.wp.apiFetch}()},89897:t=>{t.exports=function(){return this.wp.compose}()},89959:t=>{t.exports=function(){return this.wp.date}()},96126:t=>{t.exports=function(){return this.wp.deprecated}()}},t=>{t.O(0,[9427,6843,2038,9819,2932,3520,5596,2871],(()=>t(t.s=83052)));var e=t.O();((window.itsec=window.itsec||{}).core=window.itsec.core||{})["admin-notices-dashboard-admin-bar"]=e}]);