(()=>{"use strict";var e={479(e,t,n){n.d(t,{b:()=>i});const i=e=>t=>(n={},i)=>{const r=i[e];if(void 0===r)return n;const s=t(n[r],i);return s===n[r]?n:{...n,[r]:s}}},790(e){e.exports=window.ReactJSXRuntime},427(e){e.exports=window.wp.components},143(e){e.exports=window.wp.data},22(e,t,n){function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}n.d(t,{A:()=>r});const r=function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}},809(e,t,n){n.d(t,{A:()=>a});var i=n(22),r=n(427),s=n(143),o=n(642),c=n(790);function a({children:e,className:t,pinnedNoticesClassName:n,dismissibleNoticesClassName:a,context:l}){const u=(0,s.useSelect)(e=>e(o.M).getNotices(l),[l]),{removeNotice:d}=(0,s.useDispatch)(o.M),p=u.filter(({isDismissible:e,type:t})=>e&&"default"===t),f=u.filter(({isDismissible:e,type:t})=>!e&&"default"===t),m=f.length>0,N=p.length>0||function(e){return null!=e&&!1!==e&&""!==e}(e);return m||N?(0,c.jsxs)("div",{className:(0,i.A)("notices-inline-notices-wrapper",t),children:[m&&(0,c.jsx)(r.NoticeList,{notices:f,className:(0,i.A)("components-notices__pinned",n)}),N&&(0,c.jsx)(r.NoticeList,{notices:p,className:(0,i.A)("components-notices__dismissible",a),onRemove:e=>d(e,l),children:e})]}):null}},591(e,t,n){n.d(t,{A:()=>a});var i=n(22),r=n(427),s=n(143),o=n(642),c=n(790);function a({className:e,context:t}){const n=(0,s.useSelect)(e=>e(o.M).getNotices(t),[t]),{removeNotice:a}=(0,s.useDispatch)(o.M),l=n.filter(({type:e})=>"snackbar"===e).slice(-3);return(0,c.jsx)(r.SnackbarList,{notices:l,className:(0,i.A)("components-notices__snackbar",e),onRemove:e=>a(e,t)})}},455(e,t,n){n.r(t),n.d(t,{createErrorNotice:()=>a,createInfoNotice:()=>c,createNotice:()=>s,createSuccessNotice:()=>o,createWarningNotice:()=>l,removeAllNotices:()=>d,removeNotice:()=>u,removeNotices:()=>p});var i=n(425),r=0;function s(e=i.B,t,n={}){const{speak:s=!0,isDismissible:o=!0,context:c=i.A,id:a=`${c}${++r}`,actions:l=[],type:u="default",__unstableHTML:d,icon:p=null,explicitDismiss:f=!1,onDismiss:m}=n;return{type:"CREATE_NOTICE",context:c,notice:{id:a,status:e,content:t=String(t),spokenMessage:s?t:null,__unstableHTML:d,isDismissible:o,actions:l,type:u,icon:p,explicitDismiss:f,onDismiss:m}}}function o(e,t){return s("success",e,t)}function c(e,t){return s("info",e,t)}function a(e,t){return s("error",e,t)}function l(e,t){return s("warning",e,t)}function u(e,t=i.A){return{type:"REMOVE_NOTICE",id:e,context:t}}function d(e="default",t=i.A){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function p(e,t=i.A){return{type:"REMOVE_NOTICES",ids:e,context:t}}},425(e,t,n){n.d(t,{A:()=>i,B:()=>r});var i="global",r="info"},642(e,t,n){n.d(t,{M:()=>c});var i=n(143),r=n(241),s=n(455),o=n(472),c=(0,i.createReduxStore)("core/notices",{reducer:r.A,actions:s,selectors:o});(0,i.register)(c)},472(e,t,n){n.r(t),n.d(t,{getNotices:()=>s});var i=n(425),r=[];function s(e,t=i.A){return e[t]||r}},241(e,t,n){n.d(t,{A:()=>i});var i=(0,n(479).b)("context")((e=[],t)=>{switch(t.type){case"CREATE_NOTICE":return[...e.filter(({id:e})=>e!==t.notice.id),t.notice];case"REMOVE_NOTICE":return e.filter(({id:e})=>e!==t.id);case"REMOVE_NOTICES":return e.filter(({id:e})=>!t.ids.includes(e));case"REMOVE_ALL_NOTICES":return e.filter(({type:e})=>e!==t.noticeType);default:return e}})}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};n.r(i),n.d(i,{InlineNotices:()=>s.A,SnackbarNotices:()=>o.A,store:()=>r.M});var r=n(642),s=n(809),o=n(591);(window.wp=window.wp||{}).notices=i})();