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