Liferay.Loader.define("analytics-reports-web@2.0.38/js/AnalyticsReportsApp",["module","exports","require","@liferay/frontend-js-react-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./components/AnalyticsReports"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({context:e,portletNamespace:t}){const{analyticsReportsDataURL:r}=e,[s,c]=(0,a.useState)(!1),f=document.getElementById("".concat(t,"analyticsReportsPanelToggleId")),[l]=i();return(0,n.useEventListener)("mouseenter",(()=>c(!0)),{once:!0},f),(0,n.useEventListener)("focus",(()=>c(!0)),{once:!0},f),a.default.createElement(o.default,{analyticsReportsDataURL:r,hoverOrFocusEventTriggered:s,isPanelStateOpen:l})};var n=r("@liferay/frontend-js-react-web"),a=(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=s();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 o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),o=c(r("./components/AnalyticsReports"));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}const e=async e=>{e("open"===await Liferay.Util.Session.get("com.liferay.analytics.reports.web_panelState"))},i=()=>{const[t,r]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{e(r)}),[]),[t]}}}));
//# sourceMappingURL=AnalyticsReportsApp.js.map