Liferay.Loader.define("@liferay/search-experiences-web@3.0.7/sxp_blueprint_admin/js/utils/toasts",["module","exports","require","frontend-js-web","./sessionStorage"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.openErrorToast=function(e){(0,n.openToast)(a({message:Liferay.Language.get("an-unexpected-error-occurred"),title:Liferay.Language.get("error"),type:"danger"},e))},t.openSuccessToast=i,t.openInitialSuccessToast=function(){const e=sessionStorage.getItem(o.SESSION_IDS.SUCCESS_MESSAGE);e&&(i({message:e}),sessionStorage.removeItem(o.SESSION_IDS.SUCCESS_MESSAGE))},t.setInitialSuccessToast=function(e){return sessionStorage.setItem(o.SESSION_IDS.SUCCESS_MESSAGE,e)};var n=r("frontend-js-web"),o=r("./sessionStorage");function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){(0,n.openToast)(a({message:Liferay.Language.get("your-request-completed-successfully"),title:Liferay.Language.get("success"),type:"success"},e))}}}));
//# sourceMappingURL=toasts.js.map