(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[24],{2873:t=>{t.exports=function(){return this.wp.hooks}()},3075:t=>{t.exports=function(){return this.wp.i18n}()},8601:t=>{t.exports=function(){return this.wp.element}()},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,o)=>{"use strict";o.d(e,{A:()=>d});var n=o(51609),i=o(39959),s=o(3075),r=o(8601),c=o(31987),a=o(79057),u=o(60158);const p=(0,o(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:o,noticesLoaded:d}=(0,c.useSelect)((t=>({notices:t("ithemes-security/admin-notices").getNotices(),noticesLoaded:t("ithemes-security/admin-notices").areNoticesLoaded()})),[]);return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(p,{"aria-expanded":t,onClick:()=>!t&&e(!0),icon:a.A,text:(0,s.__)("Alerts","better-wp-security"),noticesCount:o.length}),t&&(0,n.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,n.createElement)(u.A,{notices:o,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},73213:(t,e,o)=>{"use strict";o.r(e);var n=o(51609),i=o(38125),s=o(4319),r=(o(35145),o(49508));o.p=window.itsecWebpackPublicPath,(0,i.registerPlugin)("itsec-admin-notices-toolbar",{render:()=>(0,n.createElement)(s.PB,null,(0,n.createElement)(r.A,null))})},75795:t=>{"use strict";t.exports=window.ReactDOM},76154:t=>{"use strict";t.exports=window.moment},77172:t=>{t.exports=function(){return this.wp.url}()},79860:t=>{t.exports=function(){return this.wp.keycodes}()},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,8363,2932,3520,4319,5596,2871],(()=>t(t.s=73213)));var e=t.O();((window.itsec=window.itsec||{}).core=window.itsec.core||{}).global=e}]);