Liferay.Loader.define("data-engine-taglib@3.3.53/data_layout_builder/js/components/rules/RuleList",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/layout","liferay!frontend-js-react-web$react","../empty-state/EmptyState.es","./RuleItem"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function _default({keywords:e,onAddRule:t,onDeleteRule:l,onEditRule:o,rules:d}){const f=d.map(((e,t)=>({loc:t,rule:e}))).filter((({rule:{name:t}})=>new RegExp(e,"ig").test(t[themeDisplay.getDefaultLanguageId()])));return r.default.createElement(r.default.Fragment,null,f.length?r.default.createElement(u.default.ContentCol,{className:"rule-list"},r.default.createElement("hr",null),f.map((({loc:e,rule:t},a)=>r.default.createElement(i.default,{key:a,loc:e,onDeleteRule:l,onEditRule:o,rule:t})))):r.default.createElement(n.default,{emptyState:{button:()=>r.default.createElement(a.default,{displayType:"secondary",onClick:t},Liferay.Language.get("create-new-rule")),description:Liferay.Language.get("there-are-no-rules-description"),title:Liferay.Language.get("there-are-no-rules")},keywords:e,small:!0}))};var a=_interopRequireDefault(l("@frontend-taglib-clay$clayui/button")),u=_interopRequireDefault(l("@frontend-taglib-clay$clayui/layout")),r=_interopRequireDefault(l("liferay!frontend-js-react-web$react")),n=_interopRequireDefault(l("../empty-state/EmptyState.es")),i=_interopRequireDefault(l("./RuleItem"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=RuleList.js.map