{"version":3,"file":"static/js/23184.15553579.chunk.js","mappings":"wLAKO,MAAMA,EAAqB,SAACC,GACjC,QAAIA,GAC6B,UAFsBC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAE3CG,aAIjB,EAEaC,EAAoBC,IAC/BC,EAAAA,EAAaC,SACXC,EAAAA,EAAAA,GAAe,aAAc,0BAC7B,GAAGH,IACJ,EAGUI,EAAwBA,KACnC,MAAMC,EAAwDC,SAC5DL,EAAAA,EAAaM,SAAQJ,EAAAA,EAAAA,GAAe,aAAc,4BAG9CK,EAAWC,OAAOC,KAAKC,EAAAA,GAC1BC,QAAOC,IAASA,KAAUA,IAC1BC,KAAID,IAASA,IAEVE,EAA0CP,EAASQ,SACvDX,GAEEA,GACCY,EAAAA,GAAcC,qBAEnB,OAAOV,EAASI,QAAOO,IAASA,IAAMH,SAASD,EAAkB,C","sources":["utils/sportsbook/live-games-helper.ts"],"sourcesContent":["import LocalStorage from 'utils/bom-dom-manipulation/local-storage';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { EMatchStreamingTypes } from 'interfaces/match-streaming';\n\nexport const shouldShowLiveTime = (isLive: boolean, sport = ''): boolean => {\n if (isLive) {\n return sport.toLowerCase() !== 'golf';\n } else {\n return false;\n }\n};\n\nexport const streamTabOnclick = (tabMode: EMatchStreamingTypes): void => {\n LocalStorage.setItem(\n storageKeyName('sportsbook', 'STREAM_ACTIVE_TAB_MODE'),\n `${tabMode}`\n );\n};\n\nexport const isActiveStreamTabMode = (): boolean => {\n const STREAM_ACTIVE_TAB_MODE: EMatchStreamingTypes | number = parseInt(\n LocalStorage.getItem(storageKeyName('sportsbook', 'STREAM_ACTIVE_TAB_MODE'))\n );\n\n const allTypes = Object.keys(EMatchStreamingTypes)\n .filter(item => +item === +item)\n .map(item => +item);\n\n const ACTIVE_STREAM_TAB: EMatchStreamingTypes = allTypes.includes(\n STREAM_ACTIVE_TAB_MODE\n )\n ? STREAM_ACTIVE_TAB_MODE\n : +SpringConfigs.IS_ACTIVE_STREAM_TAB;\n\n return allTypes.filter(mode => +mode).includes(ACTIVE_STREAM_TAB);\n};\n"],"names":["shouldShowLiveTime","isLive","arguments","length","undefined","toLowerCase","streamTabOnclick","tabMode","LocalStorage","setItem","storageKeyName","isActiveStreamTabMode","STREAM_ACTIVE_TAB_MODE","parseInt","getItem","allTypes","Object","keys","EMatchStreamingTypes","filter","item","map","ACTIVE_STREAM_TAB","includes","SpringConfigs","IS_ACTIVE_STREAM_TAB","mode"],"sourceRoot":""}