Liferay.Loader.define("@liferay/object-web@1.0.145/js/components/DangerModal",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/modal","@liferay/object-js-components-web","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function DangerModal({children:e,errorMessage:t,observer:r,onClose:u,onDelete:c,placeholder:d,title:i,token:f}){const[s,p]=(0,o.useState)();return o.default.createElement(l.default,{observer:r,status:"danger"},o.default.createElement(l.default.Header,null,i),o.default.createElement(l.default.Body,null,e,o.default.createElement(n.Input,{error:void 0!==s&&s.toLowerCase()!==f.toLowerCase()?t:"",onChange:({target:{value:e}})=>{p(e)},placeholder:d,value:s})),o.default.createElement(l.default.Footer,{last:o.default.createElement(a.default.Group,{spaced:!0},o.default.createElement(a.default,{displayType:"secondary",onClick:u},Liferay.Language.get("cancel")),o.default.createElement(a.default,{disabled:f.toLocaleLowerCase()!==(null==s?void 0:s.toLocaleLowerCase()),displayType:"danger",onClick:c},Liferay.Language.get("delete")))}))};var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),l=_interopRequireDefault(r("@frontend-taglib-clay$clayui/modal")),n=r("@liferay/object-js-components-web"),o=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 l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}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=DangerModal.js.map