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