(()=>{"use strict";var e={479(e,t,n){n.d(t,{b:()=>o});const o=e=>t=>(n={},o)=>{const i=o[e];if(void 0===i)return n;const s=t(n[i],o);return s===n[i]?n:{...n,[i]: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 o(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=o(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=o(e))&&(i&&(i+=" "),i+=t);return i}},809(e,t,n){n.d(t,{A:()=>a});var o=n(22),i=n(427),s=n(143),c=n(642),r=n(790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='2c1d02983b']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","2c1d02983b"),e.appendChild(document.createTextNode(".components-notices__dismissible,.components-notices__pinned{color:#1e1e1e}.components-notices__dismissible .components-notice,.components-notices__pinned .components-notice{border-bottom:1px solid #0003;box-sizing:border-box;min-height:64px;padding:0 12px}.components-notices__dismissible .components-notice .components-notice__dismiss,.components-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}")),document.head.appendChild(e)}function a({children:e,pinnedNoticesClassName:t,dismissibleNoticesClassName:n,context:a}){const d=(0,s.useSelect)(e=>e(c.M).getNotices(a),[a]),{removeNotice:p}=(0,s.useDispatch)(c.M),u=d.filter(({isDismissible:e,type:t})=>e&&"default"===t),l=d.filter(({isDismissible:e,type:t})=>!e&&"default"===t);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.NoticeList,{notices:l,className:(0,o.A)("components-notices__pinned",t)}),(0,r.jsx)(i.NoticeList,{notices:u,className:(0,o.A)("components-notices__dismissible",n),onRemove:e=>p(e,a),children:e})]})}},591(e,t,n){n.d(t,{A:()=>a});var o=n(22),i=n(427),s=n(143),c=n(642),r=n(790);function a({className:e,context:t}){const n=(0,s.useSelect)(e=>e(c.M).getNotices(t),[t]),{removeNotice:a}=(0,s.useDispatch)(c.M),d=n.filter(({type:e})=>"snackbar"===e).slice(-3);return(0,r.jsx)(i.SnackbarList,{notices:d,className:(0,o.A)("components-notices__snackbar",e),onRemove:e=>a(e,t)})}},455(e,t,n){n.r(t),n.d(t,{createErrorNotice:()=>a,createInfoNotice:()=>r,createNotice:()=>s,createSuccessNotice:()=>c,createWarningNotice:()=>d,removeAllNotices:()=>u,removeNotice:()=>p,removeNotices:()=>l});var o=n(425),i=0;function s(e=o.B,t,n={}){const{speak:s=!0,isDismissible:c=!0,context:r=o.A,id:a=`${r}${++i}`,actions:d=[],type:p="default",__unstableHTML:u,icon:l=null,explicitDismiss:m=!1,onDismiss:f}=n;return{type:"CREATE_NOTICE",context:r,notice:{id:a,status:e,content:t=String(t),spokenMessage:s?t:null,__unstableHTML:u,isDismissible:c,actions:d,type:p,icon:l,explicitDismiss:m,onDismiss:f}}}function c(e,t){return s("success",e,t)}function r(e,t){return s("info",e,t)}function a(e,t){return s("error",e,t)}function d(e,t){return s("warning",e,t)}function p(e,t=o.A){return{type:"REMOVE_NOTICE",id:e,context:t}}function u(e="default",t=o.A){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function l(e,t=o.A){return{type:"REMOVE_NOTICES",ids:e,context:t}}},425(e,t,n){n.d(t,{A:()=>o,B:()=>i});var o="global",i="info"},642(e,t,n){n.d(t,{M:()=>r});var o=n(143),i=n(241),s=n(455),c=n(472),r=(0,o.createReduxStore)("core/notices",{reducer:i.A,actions:s,selectors:c});(0,o.register)(r)},472(e,t,n){n.r(t),n.d(t,{getNotices:()=>s});var o=n(425),i=[];function s(e,t=o.A){return e[t]||i}},241(e,t,n){n.d(t,{A:()=>o});var o=(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(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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 o={};n.r(o),n.d(o,{InlineNotices:()=>s.A,SnackbarNotices:()=>c.A,store:()=>i.M});var i=n(642),s=n(809),c=n(591);(window.wp=window.wp||{}).notices=o})();