Liferay.Loader.define("@liferay/content-dashboard-web@2.0.73/js/transformers/panelStateHandler",["module","exports","require","../components/SidebarPanelInfoView/SidebarPanelInfoView","../components/SidebarPanelInfoView/SidebarPanelInfoViewCollapsable","../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"),{default:o}=a("../components/SidebarPanelInfoView/SidebarPanelInfoViewCollapsable"),{OPEN_PANEL_VALUE:t}=a("../utils/constants"),s=a("./ActionsComponentPropsTransformer"),i=({currentRowId:n,namespace:a,panelState:i,selectedItemFetchURL:l,selectedItemRowId:r,singlePageApplicationEnabled:d})=>{if(!r||i!==t||r!==n)return;[l,a,r].every(Boolean)&&(s.showSidebar({View:Liferay.FeatureFlags["LPS-161013"]?e:o,fetchURL:l,portletNamespace:a,singlePageApplicationEnabled:d}),s.selectRow(a,r))};n.handlePanelStateFromSession=i;const l=({panelState:e,rowId:n,selectedItemRowId:a})=>{e!==t&&Liferay.Util.Session.set("com.liferay.content.dashboard.web_panelState",t),a!==n&&Liferay.Util.Session.set("com.liferay.content.dashboard.web_selectedItemRowId",n)};n.handleSessionOnSidebarOpen=l}}));
//# sourceMappingURL=panelStateHandler.js.map