Liferay.Loader.define("journal-web@5.0.100/js/data_engine/panels/BasicInfoPanel.es",["module","exports","require","@frontend-taglib-clay$clayui/loading-indicator","@liferay/frontend-js-react-web","frontend-js-web","liferay!frontend-js-react-web$react"],(function(e,t,r){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({url:t}){const[r,n]=(0,u.useState)(!0),[c,f]=(0,u.useState)(""),i=(0,l.useIsMounted)();return(0,u.useEffect)((()=>{(0,o.fetch)(t).then((e=>e.text())).then((e=>{i()&&(f(e),n(!1))})).catch((e=>{}))}),[i,t]),u.default.createElement("div",{className:"sidebar-sm"},u.default.createElement("div",{className:"sidebar-header"},u.default.createElement("p",{className:"component-title h4"},Liferay.Language.get("properties"))),u.default.createElement("div",{className:"sidebar-body"},r?u.default.createElement(a.default,null):u.default.createElement(e,{content:c})))};var a=(n=r("@frontend-taglib-clay$clayui/loading-indicator"))&&n.__esModule?n:{default:n},l=r("@liferay/frontend-js-react-web"),o=r("frontend-js-web"),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=n?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}class e extends u.default.Component{constructor(e){super(e),this._ref=u.default.createRef()}componentDidMount(){this._ref.current&&((0,o.runScriptsInElement)(this._ref.current),this._ref.current.addEventListener("change",this._handleOnChange))}shouldComponentUpdate(){return!1}render(){return u.default.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.content},ref:this._ref})}}}}));
//# sourceMappingURL=BasicInfoPanel.es.js.map