Liferay.Loader.define("@liferay/object-js-components-web@1.0.58/components/CodeEditor/index",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","../FieldBase","./CodeMirrorEditor","./Sidebar","./index.scss","./Collapsible","./Element"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"CodeMirrorEditor",{enumerable:!0,get:function get(){return i.default}}),Object.defineProperty(r,"SidebarCategory",{enumerable:!0,get:function get(){return l.SidebarCategory}}),Object.defineProperty(r,"Collapsible",{enumerable:!0,get:function get(){return u.Collapsible}}),Object.defineProperty(r,"Element",{enumerable:!0,get:function get(){return c.Element}}),r.default=void 0;var n=_interopRequireDefault(t("liferay!frontend-js-react-web$classnames")),o=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache();if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(t,o,a):t[o]=e[o]}t.default=e,r&&r.set(e,t);return t}(t("liferay!frontend-js-react-web$react")),a=t("../FieldBase"),i=_interopRequireDefault(t("./CodeMirrorEditor")),l=t("./Sidebar");t("./index.scss");var u=t("./Collapsible"),c=t("./Element");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return(_extends=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var d=o.default.forwardRef(((e,r)=>{let{CustomSidebarContent:t,className:u,error:c,mode:d,sidebarElements:f}=e,s=_objectWithoutProperties(e,["CustomSidebarContent","className","error","mode","sidebarElements"]);const b=(0,o.useRef)(null);return o.default.createElement(a.FieldBase,{className:(0,n.default)("lfr-objects__code-editor",u),errorMessage:c},o.default.createElement("div",{className:"form-control lfr-objects__code-editor-source"},o.default.createElement(i.default,_extends({lineWrapping:!0,mode:d,ref:e=>{b.current=e,r&&(r instanceof Function?r(e):r.current=e)}},s)),f&&o.default.createElement(l.Sidebar,{CustomSidebarContent:t,editorRef:b,elements:f})))}));r.default=d}}));
//# sourceMappingURL=index.js.map