Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ViewObjectDefinitions/FoldersListSidebar",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/list","@liferay/object-js-components-web","liferay!frontend-js-react-web$react","../../utils/constants"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function FoldersListSideBar({foldersList:e,selectedFolder:t,setSelectedFolder:r,setShowModal:f}){return i.default.createElement("div",{className:"lfr__object-web-view-object-definitions-folder-list-container"},i.default.createElement("div",{className:"lfr__object-web-view-object-definitions-folder-list-header"},i.default.createElement("span",{className:"lfr__object-web-view-object-definitions-folder-list-title mb-0"},Liferay.Language.get("object-folders").toUpperCase()),i.default.createElement("div",{className:"d-flex"},i.default.createElement(a.default,{"aria-label":Liferay.Language.get("add-object-folder"),className:"component-action",displayType:"unstyled",monospaced:!0,onClick:()=>f((e=>_objectSpread(_objectSpread({},e),{},{addFolder:!0})))},i.default.createElement(l.default,{symbol:"plus"})))),i.default.createElement(n.default,{className:"lfr__object-web-view-object-definitions-folder-list"},e.map((e=>i.default.createElement(n.default.Item,{action:!0,active:t.externalReferenceCode===e.externalReferenceCode,className:"cursor-pointer lfr__object-web-view-object-definitions-folder-list-item",flex:!0,key:e.name,onClick:()=>{r(e)}},i.default.createElement("span",{className:"lfr__object-web-view-object-definitions-folder-list-item-label"},(0,o.getLocalizableLabel)(c.defaultLanguageId,e.label,e.name)))))))};var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),l=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),n=_interopRequireDefault(r("@frontend-taglib-clay$clayui/list")),o=r("@liferay/object-js-components-web"),i=_interopRequireDefault(r("liferay!frontend-js-react-web$react")),c=r("../../utils/constants");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=FoldersListSidebar.js.map