Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ViewObjectDefinitions/ModalDeleteFolder",["module","exports","require","@frontend-taglib-clay$clayui/modal","frontend-js-web","liferay!frontend-js-react-web$react","../DangerModal","./objectDefinitionUtil"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ModalDeleteFolder=function ModalDeleteFolder({folder:e,handleOnClose:t}){const{observer:n,onClose:d}=(0,o.useModal)({onClose:()=>{t()}});return l.default.createElement(o.ClayModalProvider,null,l.default.createElement(r.default,{errorMessage:(0,a.sub)(Liferay.Language.get("input-does-not-match-x"),"".concat(e.name)),observer:n,onClose:d,onDelete:async()=>{await(0,i.deleteFolder)(null==e?void 0:e.id,null==e?void 0:e.name),setTimeout((()=>window.location.reload()),1500),d()},placeholder:Liferay.Language.get("confirm-folder-name"),title:Liferay.Language.get("delete-object-folder"),token:e.name},l.default.createElement("p",null,Liferay.Language.get("deleting-an-object-folder-will-move-its-object-definitions")),l.default.createElement("p",{dangerouslySetInnerHTML:{__html:(0,a.sub)(Liferay.Language.get("please-enter-x-to-confirm"),"<strong>".concat(e.name,"</strong>"))}})))};var o=n("@frontend-taglib-clay$clayui/modal"),a=n("frontend-js-web"),l=_interopRequireDefault(n("liferay!frontend-js-react-web$react")),r=_interopRequireDefault(n("../DangerModal")),i=n("./objectDefinitionUtil");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=ModalDeleteFolder.js.map