{"version":3,"file":"static/js/46056.2f163e31.chunk.js","mappings":"2KAEO,IAAKA,EAA0B,SAA1BA,GAA0B,OAA1BA,EAAAA,EAA0B,mBAA1BA,EAAAA,EAA0B,yBAA1BA,EAAAA,EAA0B,mBAA1BA,CAA0B,MAM1BC,EAAqB,SAArBA,GAAqB,OAArBA,EAAAA,EAAqB,qBAArBA,EAAAA,EAAqB,qCAArBA,CAAqB,MAgEjC,MAAMC,EAA8C,CAClDC,YAAa,GACbC,SAAU,EACVC,iBAAkB,GAClBC,kBAAkB,EAClBC,iBAAiB,EACjBC,YAAa,EACbC,sBAAuB,KACvBC,eAAgB,KAChBC,aAAc,EACdC,YAAa,KACbC,UAAW,EACXC,oBAAoB,EACpBC,WAAYd,EAAsBe,QAClCC,kBAAkB,GAGdC,GAA4BC,EAAAA,EAAAA,eAEhC,CACAC,QAASlB,EACTmB,gBAAiB,CACfR,UAAW,EACXS,WAAY,GACZd,YAAa,EACbe,uBAAuB,EACvBC,mBAAoBxB,EAA2ByB,OAC/CC,eAAe,EACfC,sBAAsB,EACtBC,qBAAqB,EACrBC,sBAAuB,EACvBd,WAAYd,EAAsBe,QAClCC,kBAAkB,KAITa,EACXC,IAGEC,EAAAA,EAAAA,KAACd,EAA0Be,SAAQ,CAACC,MAAOH,EAAMG,MAAMC,SACpDJ,EAAMI,WAKAC,EACXA,KACSC,EAAAA,EAAAA,YAAWnB,E","sources":["newelements/Casino/Games/__partials/providers/CasinoGamesConfigsContext.tsx"],"sourcesContent":["import { createContext, ReactElement, ReactNode, useContext } from 'react';\n\nexport enum CasinoGamesLoadMoreBtnType {\n BUTTON,\n LAZY_LOAD,\n SLIDER\n}\n\nexport enum CasinoGamesLayoutType {\n CLASSIC,\n PERSONALIZATION\n}\n\nexport type CasinoGamesComputedConfigs = {\n loadMoreButtonType: CasinoGamesLoadMoreBtnType;\n loadMoreButtonEnabled: boolean;\n gamesPerRow: number;\n gamesRows: number;\n gamesLimit: number;\n arrowsEnabled: boolean;\n categoryNameVisible: boolean;\n leftSideBarAvailable: boolean;\n gamesCountForSkeleton: number;\n layoutType: CasinoGamesLayoutType;\n nextSlideOnHover?: boolean;\n};\n\nexport type CasinoGamesConfigs = {\n isFirstCasinoElement: boolean;\n categoryIds: string;\n customCategoryIds: string;\n providerIds: string;\n moduleId: number;\n casinoGamesLimit: number;\n showCategoryName: boolean;\n showLoadMoreBtn: boolean;\n bindWithCategories: boolean;\n bindWithProviders: boolean;\n gamesPerRow: number;\n groupAllByCategories: boolean;\n aspectRatio: string;\n casinoPlayRealBtnSize: string;\n casinoNameSize: string;\n loadMoreType: number;\n gamesRows: number;\n showArrowForMobile: boolean;\n mobileCustomSettings: boolean;\n mobileShowLoadMoreBtn: boolean;\n mobileLoadMoreType: number;\n mobileCasinoGamesLimit: number;\n mobileGamesRows: number;\n mobileGamesPerRow: number;\n mobileShowArrow: boolean;\n layoutType: CasinoGamesLayoutType;\n skipQueryKeysCheck: boolean;\n favorite?: {\n useAlternativeTitle?: boolean;\n disableProviders?: boolean;\n };\n nextSlideOnHover?: boolean;\n gameTitle: boolean;\n categoriesLength?: number;\n};\n\nexport type CasinoGamesConfigsProviderProps = {\n children: ReactNode;\n value: {\n configs: Partial<CasinoGamesConfigs>;\n computedConfigs: CasinoGamesComputedConfigs;\n };\n};\n\nconst defaultConfigs: Partial<CasinoGamesConfigs> = {\n categoryIds: '',\n moduleId: 1,\n casinoGamesLimit: 10,\n showCategoryName: true,\n showLoadMoreBtn: true,\n gamesPerRow: 8,\n casinoPlayRealBtnSize: '44',\n casinoNameSize: '16',\n loadMoreType: 0,\n aspectRatio: '70',\n gamesRows: 1,\n showArrowForMobile: true,\n layoutType: CasinoGamesLayoutType.CLASSIC,\n nextSlideOnHover: false\n};\n\nconst CasinoGamesConfigsContext = createContext<\n CasinoGamesConfigsProviderProps['value']\n>({\n configs: defaultConfigs,\n computedConfigs: {\n gamesRows: 1,\n gamesLimit: 16,\n gamesPerRow: 6,\n loadMoreButtonEnabled: false,\n loadMoreButtonType: CasinoGamesLoadMoreBtnType.BUTTON,\n arrowsEnabled: false,\n leftSideBarAvailable: false,\n categoryNameVisible: true,\n gamesCountForSkeleton: 6,\n layoutType: CasinoGamesLayoutType.CLASSIC,\n nextSlideOnHover: false\n }\n});\n\nexport const CasinoGamesConfigsProvider = (\n props: CasinoGamesConfigsProviderProps\n): ReactElement => {\n return (\n <CasinoGamesConfigsContext.Provider value={props.value}>\n {props.children}\n </CasinoGamesConfigsContext.Provider>\n );\n};\n\nexport const useCasinoGamesConfigsValues =\n (): CasinoGamesConfigsProviderProps['value'] => {\n return useContext(CasinoGamesConfigsContext);\n };\n"],"names":["CasinoGamesLoadMoreBtnType","CasinoGamesLayoutType","defaultConfigs","categoryIds","moduleId","casinoGamesLimit","showCategoryName","showLoadMoreBtn","gamesPerRow","casinoPlayRealBtnSize","casinoNameSize","loadMoreType","aspectRatio","gamesRows","showArrowForMobile","layoutType","CLASSIC","nextSlideOnHover","CasinoGamesConfigsContext","createContext","configs","computedConfigs","gamesLimit","loadMoreButtonEnabled","loadMoreButtonType","BUTTON","arrowsEnabled","leftSideBarAvailable","categoryNameVisible","gamesCountForSkeleton","CasinoGamesConfigsProvider","props","_jsx","Provider","value","children","useCasinoGamesConfigsValues","useContext"],"sourceRoot":""}