Liferay.Loader.define("data-engine-js-components-web@1.0.79/js/core/thunks/pageReset.es",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$react","../../utils/rulesSupport","../../utils/visitors.es"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=function({action:e,modalDispatch:a,onClose:t,pages:u,rules:o}){const d=u[e.payload.pageIndex],s=new r.PagesVisitor([d]);return r=>{let u=!1;s.mapFields((e=>{(0,n.findRuleByFieldName)(e.fieldName,null,o)&&(u=!0)})),u?a({payload:{body:Liferay.Language.get("a-rule-is-applied-to-fields-of-this-page"),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(),r(e)}},Liferay.Language.get("confirm")))],header:Liferay.Language.get("reset-page-with-rule-applied-to-field"),size:"md"},type:1}):r(e)}};var l=u(t("@frontend-taglib-clay$clayui/button")),i=u(t("liferay!frontend-js-react-web$react")),n=t("../../utils/rulesSupport"),r=t("../../utils/visitors.es");function u(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=pageReset.es.js.map