Liferay.Loader.define("@liferay/template-web@1.0.51/js/ddm_template_editor/components/ClosableAlert",["module","exports","require","@frontend-taglib-clay$clayui/alert","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ClosableAlert=function ClosableAlert({id:e,message:t,visible:r}){const[i,l]=(0,n.useState)(!!r);return i&&n.default.createElement(a.default,{className:"mb-3 mx-3",displayType:"warning",id:e,onClose:()=>l(!1),title:Liferay.Language.get("warning")},t)};var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/alert")),n=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=ClosableAlert.js.map