(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}()},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(99032);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))})},88053:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var o=n(51609),i=n(55933);const s=(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}))},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 l=n(37192);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: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)(p,{"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)(l.A,{notices:n,loaded:a})))}}},t=>{t.O(0,[9427,8356,2038,3733,2932,3520,2238,4933],(()=>t(t.s=83052)));var e=t.O();((window.itsec=window.itsec||{}).core=window.itsec.core||{})["admin-notices-dashboard-admin-bar"]=e}]);