(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[24],{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}()},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,n)=>{"use strict";n.r(e);var o=n(51609),i=n(38125),s=n(4319),r=(n(35145),n(99032));n.p=window.itsecWebpackPublicPath,(0,i.registerPlugin)("itsec-admin-notices-toolbar",{render:()=>(0,o.createElement)(s.PB,null,(0,o.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}()},99032:(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(55933);const u=(0,o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(a.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"}));var p=n(37192);const l=(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:a}=(0,c.useSelect)((t=>({notices:t("ithemes-security/admin-notices").getNotices(),noticesLoaded:t("ithemes-security/admin-notices").areNoticesLoaded()})),[]);return(0,o.createElement)(React.Fragment,null,(0,o.createElement)(l,{"aria-expanded":t,onClick:()=>!t&&e(!0),icon:u,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)(p.A,{notices:n,loaded:a})))}}},t=>{t.O(0,[9427,8356,2038,3733,6815,2932,3520,4319,2238,4933],(()=>t(t.s=73213)));var e=t.O();((window.itsec=window.itsec||{}).core=window.itsec.core||{}).global=e}]);