Liferay.Loader.define("data-engine-taglib@3.3.26/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({keywords:e,onAddRule:t,onDeleteRule:l,onEditRule:d,rules:i}){const c=i.map(((e,t)=>({loc:t,rule:e}))).filter((({rule:{name:t}})=>new RegExp(e,"ig").test(t[themeDisplay.getDefaultLanguageId()])));return u.default.createElement(u.default.Fragment,null,c.length?u.default.createElement(n.default.ContentCol,{className:"rule-list"},u.default.createElement("hr",null),c.map((({loc:e,rule:t},a)=>u.default.createElement(o.default,{key:a,loc:e,onDeleteRule:l,onEditRule:d,rule:t})))):u.default.createElement(r.default,{emptyState:{button:()=>u.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=d(l("@frontend-taglib-clay$clayui/button")),n=d(l("@frontend-taglib-clay$clayui/layout")),u=d(l("liferay!frontend-js-react-web$react")),r=d(l("../empty-state/EmptyState.es")),o=d(l("./RuleItem"));function d(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=RuleList.js.map