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