Liferay.Loader.define("layout-taglib@11.0.6/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 l=f(a("@frontend-taglib-clay$clayui/form")),r=c(a("@frontend-taglib-clay$clayui/icon")),n=c(a("@frontend-taglib-clay$clayui/layout")),u=(c(a("liferay!frontend-js-react-web$prop-types")),f(a("liferay!frontend-js-react-web$react"))),o=a("./SelectLayoutTree.es");function c(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();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}const e=({followURLOnTitleClick:e,itemSelectorSaveEvent:t,multiSelection:a,nodes:c,selectedLayoutIds:i})=>{const[f,s]=(0,u.useState)(),y=!c.length;return u.default.createElement(n.default.ContainerFluid,{className:"p-4 select-layout"},u.default.createElement(l.default.Group,null,u.default.createElement(l.ClayInput.Group,null,u.default.createElement(l.ClayInput.GroupItem,{prepend:!0},u.default.createElement(l.ClayInput,{"aria-label":Liferay.Language.get("search"),className:"input-group-inset input-group-inset-after",disabled:y,onChange:e=>s(e.target.value),placeholder:"".concat(Liferay.Language.get("search")),type:"text"}),u.default.createElement(l.ClayInput.GroupInsetItem,{after:!0},u.default.createElement("div",{className:"link-monospaced"},u.default.createElement(r.default,{symbol:"search"})))))),y?u.default.createElement(d,null):u.default.createElement(o.SelectLayoutTree,{filter:f,followURLOnTitleClick:e,itemSelectorSaveEvent:t,items:c,multiSelection:a,selectedLayoutIds:i}))},d=()=>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 s=e;t.default=s}}));
//# sourceMappingURL=SelectLayout.es.js.map