var fiboFiltersAdmin;(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{initialize:()=>m,initializeNotifications:()=>p});const o=window.React,n=window.wp.element,c=window.lodash;var i=e.n(c);window.wp.notices;const r=window.wp.components,a=window.wp.data,s=(0,window.wp.compose.compose)([(0,a.withSelect)(e=>({notices:e("core/notices").getNotices()})),(0,a.withDispatch)(e=>({onRemove:e("core/notices").removeNotice}))])(({notices:e,onRemove:t})=>{const n=(0,c.filter)(e,{type:"default"}),i=(0,c.filter)(e,{type:"snackbar"});return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(r.NoticeList,{notices:n,className:"components-editor-notices__pinned"}),(0,o.createElement)(r.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:t}))});const l=()=>((0,n.useEffect)(()=>{i().get(window,"fiboFiltersNotications",[]).forEach(e=>{var t;(function(e,t,o="success",n="default"){switch(o){case"success":(0,a.dispatch)("core/notices").createSuccessNotice(e,{id:t,type:n});break;case"error":(0,a.dispatch)("core/notices").createErrorNotice(e,{id:t,type:n});break;case"warning":(0,a.dispatch)("core/notices").createWarningNotice(e,{id:t,type:n});break;case"info":(0,a.dispatch)("core/notices").createInfoNotice(e,{id:t,type:n});break;default:(0,a.dispatch)("core/notices").createNotice(e,{id:t,type:n})}})(e.message,t,"success","snackbar")})},[]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s,null))),d=()=>null;function m(e){const t=document.getElementById(e);(0,n.hydrate)((0,o.createElement)(d,null),t)}function p(e){const t=document.getElementById(e);(0,n.render)((0,o.createElement)(l,null),t)}fiboFiltersAdmin=t})();