var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
(()=>{"use strict";var i={d:(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(i,t)=>Object.prototype.hasOwnProperty.call(i,t),r:i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})}},t={};i.r(t),i.d(t,{addNotice:()=>s,addSnackbarNotice:()=>r,dismissNotification:()=>d});var e={};i.r(e),i.d(e,{getNotifications:()=>c,getNotificationsByType:()=>u});const n=window.wp.i18n,o=window.wp.data,a=window.wp.coreData;function r(i){var t,e,n,o;return{type:"ADD_NOTIFICATION",notification:{...i,autoHide:null===(t=i?.autoHide)||void 0===t||t,isDismissible:null===(e=i?.isDismissible)||void 0===e||e,duration:null!==(n=i?.duration)&&void 0!==n?n:5e3,type:null!==(o=i.type)&&void 0!==o?o:"info",notificationType:"snackbar"}}}function s(i){var t,e,n,o;return{type:"ADD_NOTIFICATION",notification:{...i,autoHide:null!==(t=i?.autoHide)&&void 0!==t&&t,isDismissible:null===(e=i?.isDismissible)||void 0===e||e,duration:null!==(n=i?.duration)&&void 0!==n?n:5e3,type:null!==(o=i.type)&&void 0!==o?o:"info",notificationType:"notice"}}}function d(i){return{type:"DISMISS_NOTIFICATION",id:i}}function c(i){return i}function u(i,t){return i.filter((i=>i.notificationType===t))}const l=(0,o.createReduxStore)("givewp/campaign-notifications",{reducer(i=[],t){switch(t.type){case"ADD_NOTIFICATION":return i.filter((i=>i.id===t.notification.id)).length||i.push(t.notification),i;case"DISMISS_NOTIFICATION":return i.filter((i=>i.id!==t.id))}return i},actions:t,selectors:e});(0,o.register)(l),(0,o.dispatch)(a.store).addEntities([{name:"campaign",kind:"givewp",baseURL:"/givewp/v3/campaigns",baseURLParams:{},plural:"campaigns",label:(0,n.__)("Campaign","give"),supportsPagination:!0}])})();
}