(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[2266],{33632:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(6293),i=n(64893),s=n(95122),r=n(48015),c=n(14776);const a=(0,o.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(c.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 u=n(3967);const l=(0,n(52117).Z)(i.ToolbarButton,{shouldForwardProp:e=>"noticesCount"!==e,target:"e17c85xw0"})("&::after{position:absolute;left:-6px;top:-6px;z-index:1;min-width:24px;padding:4px;font-size:11px;color:",(({theme:e})=>e.colors.text.white),";background:",(({theme:e})=>e.colors.primary.base),";border-radius:12px;content:'",(({noticesCount:e})=>e),"';opacity:",(({noticesCount:e})=>e?1:0),";transition:opacity 1000ms ease-in-out;}");function p(){const[e,t]=(0,o.useState)(!1),{notices:n,noticesLoaded:c}=(0,r.useSelect)((e=>({notices:e("ithemes-security/admin-notices").getNotices(),noticesLoaded:e("ithemes-security/admin-notices").areNoticesLoaded()})),[]);return(0,o.createElement)(React.Fragment,null,(0,o.createElement)(l,{"aria-expanded":e,onClick:()=>!e&&t(!0),icon:a,text:(0,s.__)("Alerts","better-wp-security"),noticesCount:n.length}),e&&(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:()=>t(!1),onFocusOutside:()=>t(!1)},(0,o.createElement)(u.Z,{notices:n,loaded:c})))}},22959:(e,t,n)=>{"use strict";n.r(t);var o=n(6293),i=n(3571),s=(n(97157),n(20567)),r=n(33632),c=n(8262);n.p=window.itsecWebpackPublicPath,(0,i.registerPlugin)("itsec-admin-notices-toolbar",{render:()=>(0,o.createElement)(s.ge,null,(0,o.createElement)(r.Z,null))}),(0,i.registerPlugin)("itsec-solid-welcome",{render:()=>(0,o.createElement)(c.Z,null)})},97157:e=>{e.exports=function(){return this.itsec.core["admin-notices-api"]}()},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},87514:e=>{e.exports=function(){return this.wp.apiFetch}()},64893:e=>{e.exports=function(){return this.wp.components}()},9576:e=>{e.exports=function(){return this.wp.compose}()},48015:e=>{e.exports=function(){return this.wp.data}()},82521:e=>{e.exports=function(){return this.wp.date}()},6293:e=>{e.exports=function(){return this.wp.element}()},95122:e=>{e.exports=function(){return this.wp.i18n}()},81834:e=>{e.exports=function(){return this.wp.isShallowEqual}()},81019:e=>{e.exports=function(){return this.wp.keycodes}()},3571:e=>{e.exports=function(){return this.wp.plugins}()},14776:e=>{e.exports=function(){return this.wp.primitives}()},73470:e=>{e.exports=function(){return this.wp.url}()},99196:e=>{"use strict";e.exports=window.React},91850:e=>{"use strict";e.exports=window.ReactDOM},92819:e=>{"use strict";e.exports=window.lodash},76292:e=>{"use strict";e.exports=window.moment}},e=>{e.O(0,[7271,1930,5307,5257,3627,976,1511,567,6179,5896,2939],(()=>(22959,e(e.s=22959))));var t=e.O();((window.itsec=window.itsec||{}).core=window.itsec.core||{}).global=t}]);