Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/plugins/page_content/components/ContentFilter",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","@liferay/layout-js-components-web","liferay!frontend-js-react-web$react"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function ContentFilter({contentTypes:e,onChangeInput:t,onChangeSelect:n,selectedType:i}){return o.default.createElement("div",{className:"flex-shrink-0 page-editor__page-contents__content-filter px-3"},o.default.createElement("p",{className:"mb-4 page-editor__page-contents__content-filter__help"},Liferay.Language.get("content-filtering-help")),o.default.createElement(r.default,{alignmentPosition:r.Align.BottomLeft,className:"mb-2",closeOnClick:!0,menuElementAttrs:{containerProps:{className:"cadmin"}},trigger:o.default.createElement(a.default,{"aria-label":Liferay.Language.get("filter-by-content-type"),className:"form-control form-control-select form-control-sm text-left",displayType:"unstyled",size:"sm",type:"button"},o.default.createElement("span",null,i))},o.default.createElement(r.default.ItemList,{role:"listbox"},null==e?void 0:e.map((e=>o.default.createElement(o.default.Fragment,{key:e},o.default.createElement(r.default.Item,{onClick:()=>n(e),symbolRight:i===e?"check":void 0},e)))))),o.default.createElement(l.SearchForm,{className:"mb-3",label:Liferay.Language.get("search-content"),onChange:t}))};var a=_interopRequireDefault(n("@frontend-taglib-clay$clayui/button")),r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=a?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(n,r,l):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n("@frontend-taglib-clay$clayui/drop-down")),l=n("@liferay/layout-js-components-web"),o=_interopRequireDefault(n("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=ContentFilter.js.map