Liferay.Loader.define("@liferay/object-js-components-web@1.0.58/components/CodeEditor/Sidebar",["module","exports","require","liferay!frontend-js-react-web$react","./Collapsible","./Element","./Sidebar.scss"],(function(e,l,t){window;Object.defineProperty(l,"__esModule",{value:!0}),l.Sidebar=function Sidebar({CustomSidebarContent:e,editorRef:l,elements:t}){return a.default.createElement("div",{className:"lfr-objects__code-editor-sidebar"},a.default.createElement("div",{className:"px-3"},a.default.createElement("h5",{className:"my-3"},Liferay.Language.get("elements")),e,null==t?void 0:t.map((({items:e,label:t})=>a.default.createElement(r.Collapsible,{key:t,label:t},e.map((e=>{var t;return a.default.createElement(n.Element,{helpText:null!==(t=e.helpText)&&void 0!==t?t:e.tooltip,key:e.label,label:e.label,onClick:()=>(e=>{var t;return null===(t=l.current)||void 0===t?void 0:t.replaceSelection(e.content)})(e)})})))))))};var a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("liferay!frontend-js-react-web$react")),r=t("./Collapsible"),n=t("./Element");t("./Sidebar.scss")}));
//# sourceMappingURL=Sidebar.js.map