Liferay.Loader.define("@liferay/content-dashboard-web@2.0.83/js/transformers/panelStateHandler",["module","exports","require","../components/SidebarPanelInfoView/SidebarPanelInfoView","../utils/constants","./ActionsComponentPropsTransformer"],(function(e,n,a){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.handleSessionOnSidebarOpen=n.handlePanelStateFromSession=void 0;const{default:e}=a("../components/SidebarPanelInfoView/SidebarPanelInfoView"),{OPEN_PANEL_VALUE:o}=a("../utils/constants"),t=a("./ActionsComponentPropsTransformer"),handlePanelStateFromSession=({currentRowId:n,namespace:a,panelState:s,selectedItemFetchURL:i,selectedItemRowId:r,singlePageApplicationEnabled:l})=>{if(!r||s!==o||r!==n)return;[i,a,r].every(Boolean)&&(t.showSidebar({View:e,fetchURL:i,portletNamespace:a,singlePageApplicationEnabled:l}),t.selectRow(a,r))};n.handlePanelStateFromSession=handlePanelStateFromSession;const handleSessionOnSidebarOpen=({panelState:e,rowId:n,selectedItemRowId:a})=>{e!==o&&Liferay.Util.Session.set("com.liferay.content.dashboard.web_panelState",o),a!==n&&Liferay.Util.Session.set("com.liferay.content.dashboard.web_selectedItemRowId",n)};n.handleSessionOnSidebarOpen=handleSessionOnSidebarOpen}}));
//# sourceMappingURL=panelStateHandler.js.map