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