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