Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.121/admin/js/thunks/fieldDelete.es",["module","exports","require","@frontend-taglib-clay$clayui/button","data-engine-js-components-web","liferay!frontend-js-react-web$react"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=function fieldDelete({action:e,modalDispatch:a,onClose:t,rules:r}){return d=>{n.RulesSupport.findRuleByFieldName(e.payload.fieldName,null,r)?a({payload:{body:Liferay.Language.get("a-rule-is-applied-to-this-field"),footer:[null,null,i.default.createElement(l.default.Group,{key:3,spaced:!0},i.default.createElement(l.default,{displayType:"secondary",onClick:t},Liferay.Language.get("cancel")),i.default.createElement(l.default,{displayType:"danger",onClick:()=>{t(),d(e)}},Liferay.Language.get("confirm")))],header:Liferay.Language.get("delete-field-with-rule-applied"),size:"md"},type:1}):d(e)}};var l=_interopRequireDefault(t("@frontend-taglib-clay$clayui/button")),n=t("data-engine-js-components-web"),i=_interopRequireDefault(t("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=fieldDelete.es.js.map