(()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},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,{createErrorNotice:()=>f,createInfoNotice:()=>l,createNotice:()=>a,createSuccessNotice:()=>d,createWarningNotice:()=>p,removeNotice:()=>w});var n={};e.r(n),e.d(n,{getNotices:()=>b}),window.wp.notices;const i=window.wp.data,o=window.lodash;var r,c=(r=(e=[],t)=>{switch(t.type){case"CREATE_NOTICE":return[...(0,o.reject)(e,{id:t.notice.id}),t.notice];case"REMOVE_NOTICE":return(0,o.reject)(e,{id:t.id})}return e},(e={},t)=>{const n=t.context;if(void 0===n)return e;const i=r(e[n],t);return i===e[n]?e:{...e,[n]:i}});const s="global",u="info";function a(e=u,t,n={}){const{speak:i=!0,isDismissible:r=!0,context:c=s,id:a=(0,o.uniqueId)(c),actions:d=[],type:l="default",__unstableHTML:f,icon:p=null,explicitDismiss:w=!1,onDismiss:y=null}=n;return{type:"CREATE_NOTICE",context:c,notice:{id:a,status:e,content:t=String(t),spokenMessage:i?t:null,__unstableHTML:f,isDismissible:r,actions:d,type:l,icon:p,explicitDismiss:w,onDismiss:y}}}function d(e,t){return a("success",e,t)}function l(e,t){return a("info",e,t)}function f(e,t){return a("error",e,t)}function p(e,t){return a("warning",e,t)}function w(e,t=s){return{type:"REMOVE_NOTICE",id:e,context:t}}const y=[];function b(e,t=s){return e[t]||y}(0,i.registerStore)("core/notices2",{reducer:c,actions:t,selectors:n}),(window.wc=window.wc||{}).notices={}})();