{"version":3,"file":"static/js/24747.20dfc98c.chunk.js","mappings":"+LAKO,MAAMA,EAAwBA,KACnC,IAAIC,EAAAA,EAAAA,KACF,OAAO,EAGT,MAAMC,EAAiB,IAAIC,OAAO,GAAGC,EAAAA,GAAcC,UAAUC,WAE7D,QACIC,OAAOC,SAASC,KAAKC,MAAMR,IAC7BE,EAAAA,GAAcO,eACdP,EAAAA,GAAcQ,oBAAoB,EAIzBC,EAAsBC,IAClB,CAAEC,YAAaD,GAAS,IAK5BE,EAAwBA,CACnCC,EACAC,QAGMD,EAASE,aAAiBD,GAC7BD,EAASG,KAAOC,EAAAA,KAAaJ,EAASE,aAI9BG,EAAwB,YAExBC,EAAwBA,KACnC,MAAMC,EAAc,IAAIC,gBAAgBlB,OAAOC,SAASkB,QAUxD,OARAF,EAAYG,OAAO,QACnBH,EAAYG,OAAO,SACnBH,EAAYG,OAAO,UACnBH,EAAYG,OAAO,WACnBH,EAAYG,OAAO,WACnBH,EAAYG,OAAO,YACnBH,EAAYG,OAAO,YAEZH,CAAW,C","sources":["utils/casino/casino.ts"],"sourcesContent":["import { FAVORITE } from 'utils/constants/casino/casino-element-names';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { isMobile } from 'utils/is-mobile';\nimport { NewCasinoCategory } from 'interfaces/new-casino';\n\nexport const leftSideBarCasinoMain = (): boolean => {\n  if (isMobile()) {\n    return false;\n  }\n\n  const matchCasinoUrl = new RegExp(`${SpringConfigs.PAGE_URLS.casino}/`);\n\n  return (\n    !!window.location.href.match(matchCasinoUrl) &&\n    SpringConfigs.LEFT_SIDE_BAR &&\n    SpringConfigs.LEFT_SIDE_BAR_CASINO\n  );\n};\n\nexport const recentPlayedParams = (catId?: number): { category_id: number } => {\n  const params = { category_id: catId || 0 };\n\n  return params;\n};\n\nexport const isShowGamesCountBadge = (\n  category: NewCasinoCategory,\n  gamesCount?: boolean\n): boolean => {\n  return !!(\n    (!!+category.games_count && !!gamesCount) ||\n    (category.id === FAVORITE && +category.games_count)\n  );\n};\n\nexport const SELECT_PROVIDERS_TYPE = 'providers';\n\nexport const clearCasinoPopupQuery = (): URLSearchParams => {\n  const querySearch = new URLSearchParams(window.location.search);\n\n  querySearch.delete('mode');\n  querySearch.delete('login');\n  querySearch.delete('gameId');\n  querySearch.delete('preview');\n  querySearch.delete('profile');\n  querySearch.delete('accounts');\n  querySearch.delete('settings');\n\n  return querySearch;\n};\n"],"names":["leftSideBarCasinoMain","isMobile","matchCasinoUrl","RegExp","SpringConfigs","PAGE_URLS","casino","window","location","href","match","LEFT_SIDE_BAR","LEFT_SIDE_BAR_CASINO","recentPlayedParams","catId","category_id","isShowGamesCountBadge","category","gamesCount","games_count","id","FAVORITE","SELECT_PROVIDERS_TYPE","clearCasinoPopupQuery","querySearch","URLSearchParams","search","delete"],"sourceRoot":""}