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