{"version":3,"file":"static/chunks/87128.a75ebc972f7342e3.js","mappings":"gOAOe,SAASA,IACtB,GAAM,CAAEC,EAAAA,CAAC,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,CAAAA,EAAe,UACvBC,EAAWC,CAAAA,EAAAA,EAAAA,EAAAA,IAEXC,EAA4BC,CAAAA,EAAAA,EAAAA,EAAAA,EAChC,GAAsBC,EAAMC,OAAO,CAACC,SAAS,EAG/C,SAASC,IACPP,EAASQ,CAAAA,EAAAA,EAAAA,EAAAA,EAAgB,CAACN,GAC5B,CAEA,MACE,GAAAO,EAAAC,GAAA,EAACC,MAAAA,CAAIC,UAAWC,IAAAA,SAAAA,UACd,GAAAJ,EAAAC,GAAA,EAACI,EAAAA,CAAaA,CAAAA,CACZC,eAAgBjB,EACdI,EAAmB,kBAAoB,8BAGxCA,EACC,GAAAO,EAAAC,GAAA,EAACM,SAAAA,CACCJ,UAAWC,GAAAA,CAAAA,yBAAAA,CACXI,QAASV,WAET,GAAAE,EAAAC,GAAA,EAACQ,IAAAA,CAAEN,UAAW,GAA6BO,MAAA,CAA1BN,IAAAA,eAAAA,CAA0B,yBAG7C,GAAAJ,EAAAC,GAAA,EAACM,SAAAA,CACCJ,UAAWC,IAAAA,iBAAAA,CACXI,QAASV,WAET,GAAAE,EAAAC,GAAA,EAACQ,IAAAA,CAAEN,UAAW,GAA6BO,MAAA,CAA1BN,IAAAA,eAAAA,CAA0B,4BAMvD,8GCpCO,SAASL,EAAgBY,CAAe,EAC7C,MAAO,CAAEC,KAAMC,EAAAA,CAAcA,CAACC,QAAQ,CAAEC,QAASJ,CAAO,CAC1D,CAwBO,SAASK,IACd,MAAO,CACLJ,KAAMC,EAAAA,CAAcA,CAACI,iBAAiB,CAE1C,qBCrCAC,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/SideBar/Header/CollapseButton/V1/index.tsx","webpack://_N_E/./src/lib/store/side-bar/actions.ts","webpack://_N_E/./src/components/SideBar/Header/CollapseButton/V1/styles.module.scss"],"sourcesContent":["import { collapseSideBar } from '@/lib/store/side-bar/actions';\nimport { RootState } from '@/lib/store';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { ToolTip as CustomToolTip } from '@starsoft/common/components';\nimport useTranslation from 'next-translate/useTranslation';\nimport styles from './styles.module.scss';\n\nexport default function CollapseButtonV1() {\n const { t } = useTranslation('common');\n const dispatch = useDispatch();\n\n const collapsedSidebar: boolean = useSelector(\n (state: RootState) => state.sideBar.collapsed,\n );\n\n function onMinimizeButtonClick() {\n dispatch(collapseSideBar(!collapsedSidebar));\n }\n\n return (\n
\n \n {collapsedSidebar ? (\n \n \n \n ) : (\n \n \n \n )}\n \n
\n );\n}\n","import {\n CollapseSideBarPayload,\n SetClickedSportCollapsedPayload,\n SideBarActions,\n SidebarBasePayload,\n ToggleHeaderVisibilityPayload,\n} from './props';\n\nexport function collapseSideBar(toggle: boolean): CollapseSideBarPayload {\n return { type: SideBarActions.Collapse, payload: toggle };\n}\n\nexport function setClickedSportCollapsed(\n sportSlug: string,\n): SetClickedSportCollapsedPayload {\n return {\n type: SideBarActions.SetClickedSportCollapsed,\n payload: {\n sportSlug,\n },\n };\n}\n\nexport function removeClickedSportCollapsed(\n sportSlug: string,\n): SetClickedSportCollapsedPayload {\n return {\n type: SideBarActions.RemoveClickedSportCollapsed,\n payload: {\n sportSlug,\n },\n };\n}\n\nexport function toggleOpenSidebar(): SidebarBasePayload {\n return {\n type: SideBarActions.ToggleOpenSidebar,\n };\n}\n\nexport function toggleHeaderVisibility(): ToggleHeaderVisibilityPayload {\n return {\n type: SideBarActions.ToggleHeader,\n };\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__7cHk6\",\"container--v2\":\"styles_container--v2__iryG_\",\"container__icon\":\"styles_container__icon__O8HoL\",\"container__button\":\"styles_container__button__U_FOA\",\"container__icon-button\":\"styles_container__icon-button__5mBGu\",\"container__icon-button--v2\":\"styles_container__icon-button--v2__0ieNh\",\"skeleton-animation\":\"styles_skeleton-animation__avDv1\"};"],"names":["CollapseButtonV1","t","useTranslation","dispatch","useDispatch","collapsedSidebar","useSelector","state","sideBar","collapsed","onMinimizeButtonClick","collapseSideBar","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","div","className","styles","CustomToolTip","titleComponent","button","onClick","i","concat","toggle","type","SideBarActions","Collapse","payload","toggleOpenSidebar","ToggleOpenSidebar","module","exports"],"sourceRoot":""}