(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[7050],{2873:e=>{e.exports=function(){return this.wp.hooks}()},3075:e=>{e.exports=function(){return this.wp.i18n}()},8601:e=>{e.exports=function(){return this.wp.element}()},17232:e=>{e.exports=function(){return this.wp.domReady}()},19581:e=>{e.exports=function(){return this.itsec.core["solid-welcome"]}()},31987:e=>{e.exports=function(){return this.wp.data}()},35145:e=>{e.exports=function(){return this.itsec.core["admin-notices-api"]}()},39959:e=>{e.exports=function(){return this.wp.components}()},43848:(e,t,n)=>{"use strict";var o=n(51609),i=n(3075),s=n(8601),c=n(17232),r=n.n(c),a=n(2873),l=n(19581),u=n(39959),d=(n(35145),n(46942)),m=n.n(d),p=n(79487),h=n(31987),w=n(88356),b=n(37192);function f(){const[e,t]=(0,s.useState)(!1),{notices:n,noticesLoaded:c}=(0,h.useSelect)((e=>({notices:e("ithemes-security/admin-notices").getNotices(),noticesLoaded:e("ithemes-security/admin-notices").areNoticesLoaded()})));return(0,o.createElement)(p.b,{theme:w.$f},(0,o.createElement)(u.Button,{id:"itsec-admin-notices-toolbar-trigger",className:m()("ab-item ab-empty-item",{"itsec-admin-notices-toolbar--has-notices":n.length>0}),onClick:()=>t(!e),"aria-expanded":e},(0,o.createElement)("span",{className:"it-icon-itsec"}),(0,o.createElement)("span",{className:"itsec-toolbar-text"},(0,i.__)("Security","better-wp-security")),n.length>0&&(0,o.createElement)("span",{className:"itsec-admin-notices-toolbar-bubble"},(0,o.createElement)("span",{className:"itsec-admin-notices-toolbar-bubble__count"},n.length))),e&&(0,o.createElement)(u.Popover,{className:"itsec-admin-notices-toolbar__popover",noArrow:!0,expandOnMobile:!0,focusOnMount:"container",position:"bottom center",headerTitle:(0,i.__)("Security","better-wp-security"),onClose:()=>t(!1),onFocusOutside:()=>t(!1)},(0,o.createElement)(b.A,{notices:n,loaded:c,close:()=>t(!1)})))}const x=function({portalEl:e}){return(0,o.createElement)(u.SlotFillProvider,null,(0,s.createPortal)((0,o.createElement)(u.Popover.Slot,null),e),(0,o.createElement)(f,null))};n.p=window.itsecWebpackPublicPath,(0,i.setLocaleData)({"":{}},"better-wp-security"),r()((()=>{const e=document.getElementById("wp-admin-bar-itsec_admin_bar_menu"),t=document.getElementById("itsec-admin-notices-root");return(0,s.render)((0,o.createElement)(x,{portalEl:t}),e)})),(0,a.addAction)("ithemes-security.admin-notices.triggerAction","ithemes-security/admin-notices/solid-welcome",(function(e,t,n){if("welcome-solidwp"!==t||"open"!==n)return;const i=document.createElement("div");i.classList.add("solid-welcome-container"),document.body.appendChild(i),(0,s.render)((0,o.createElement)(l.App,{onClose:()=>{i.remove()}}),i)}))},46627:e=>{e.exports=function(){return this.itsec.packages.data}()},51609:e=>{"use strict";e.exports=window.React},55933:e=>{e.exports=function(){return this.wp.primitives}()},62247:e=>{e.exports=function(){return this.wp.isShallowEqual}()},66087:e=>{"use strict";e.exports=window.lodash},77172:e=>{e.exports=function(){return this.wp.url}()},79860:e=>{e.exports=function(){return this.wp.keycodes}()},89897:e=>{e.exports=function(){return this.wp.compose}()},89959:e=>{e.exports=function(){return this.wp.date}()}},e=>{e.O(0,[9427,8356,222,3733,1588,2932,2238,4933],(()=>e(e.s=43848)));var t=e.O();((window.itsec=window.itsec||{}).core=window.itsec.core||{})["admin-notices"]=t}]);