Liferay.Loader.define("frontend-editor-ckeditor-web@5.0.65/editor/Editor",["module","exports","require","frontend-editor-ckeditor-web$ckeditor4-react","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../css/editor.scss"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.Editor=void 0;var n=c(r("frontend-editor-ckeditor-web$ckeditor4-react")),o=(c(r("liferay!frontend-js-react-web$prop-types")),function(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 r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var c=n?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(r,o,c):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r("../css/editor.scss");const e="/o/frontend-editor-ckeditor-web/ckeditor/",d=Liferay.ThemeDisplay.getPathContext(),l=d?d+e:e,u=(0,o.forwardRef)(((e,t)=>{let{contents:r="",name:i}=e,c=a(e,["contents","name"]);return(0,o.useEffect)((()=>{Liferay.once("beforeScreenFlip",(()=>{window.CKEDITOR&&!Object.keys(window.CKEDITOR.instances).length&&delete window.CKEDITOR}))}),[]),o.default.createElement(n.default,f({contents:r,name:i,ref:t},c))}));t.Editor=u,n.default.editorUrl="".concat(l,"ckeditor.js"),window.CKEDITOR_BASEPATH=l}}));
//# sourceMappingURL=Editor.js.map