Liferay.Loader.define("layout-taglib@13.0.5/select_layout/js/SelectLayout.es",["module","exports","require","@frontend-taglib-clay$clayui/empty-state","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/layout","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./SelectLayoutTree.es"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=_interopRequireDefault(a("@frontend-taglib-clay$clayui/empty-state")),r=_interopRequireWildcard(a("@frontend-taglib-clay$clayui/form")),n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),u=_interopRequireDefault(a("@frontend-taglib-clay$clayui/layout")),i=(_interopRequireDefault(a("liferay!frontend-js-react-web$prop-types")),_interopRequireWildcard(a("liferay!frontend-js-react-web$react"))),c=a("./SelectLayoutTree.es");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}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 a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=l?Object.getOwnPropertyDescriptor(e,r):null;n&&(n.get||n.set)?Object.defineProperty(a,r,n):a[r]=e[r]}return a.default=e,t&&t.set(e,a),a}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const SelectLayout=({followURLOnTitleClick:e,itemSelectorSaveEvent:t,multiSelection:a,nodes:l,selectedLayoutIds:o})=>{const[f,d]=(0,i.useState)(),s=!l.length;return i.default.createElement(u.default.ContainerFluid,{className:"p-4 select-layout"},i.default.createElement(r.default.Group,null,i.default.createElement(r.ClayInput.Group,null,i.default.createElement(r.ClayInput.GroupItem,{prepend:!0},i.default.createElement(r.ClayInput,{"aria-label":Liferay.Language.get("search"),className:"input-group-inset input-group-inset-after",disabled:s,onChange:e=>d(e.target.value),placeholder:"".concat(Liferay.Language.get("search")),type:"text"}),i.default.createElement(r.ClayInput.GroupInsetItem,{after:!0},i.default.createElement("div",{className:"link-monospaced"},i.default.createElement(n.default,{symbol:"search"})))))),s?i.default.createElement(EmptyState,null):i.default.createElement(c.SelectLayoutTree,{filter:f,followURLOnTitleClick:e,itemSelectorSaveEvent:t,items:l,multiSelection:a,selectedLayoutIds:o}))},EmptyState=()=>i.default.createElement(u.default.Sheet,null,i.default.createElement(l.default,{className:"mt-0",description:Liferay.Language.get("there-are-no-pages"),imgSrc:"".concat(themeDisplay.getPathThemeImages(),"/states/empty_state.gif"),title:null}));var o=SelectLayout;t.default=o}}));
//# sourceMappingURL=SelectLayout.es.js.map