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,UACd,GAAAJ,EAAAC,GAAA,EAACU,KAAAA,CAAGR,UAAWC,IAAAA,iCAAAA,UACZtB,EAAE,mCAxBJ,IA8BX,oBC5DA8B,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/RollCompetition/Button/V1/index.tsx","webpack://_N_E/./src/components/RollCompetition/Button/V1/styles.module.scss"],"sourcesContent":["import { useRollCompetitions } from '@/api/roll-competitions';\nimport { useUserAccount } from '@/api/user';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport {\n useLottiePlayer,\n useModalNavigation,\n useTranslation,\n} from '@starsoft/common/hooks';\nimport { useCallback } from 'react';\nimport styles from './styles.module.scss';\n\nexport default function RollPointGameButton() {\n const { t } = useTranslation('common');\n const { isAuthorized } = useUserAccount();\n const { navigateToModal } = useModalNavigation();\n const { isPending, rollCompetition } = useRollCompetitions();\n\n const { lottieAnimationRef } = useLottiePlayer({\n path: '/roll-competition-egg.json',\n });\n\n const handleOpenRollCompetitionModal = useCallback(() => {\n if (!isAuthorized) {\n navigateToModal(ModalsKey.Login);\n return;\n }\n\n navigateToModal(ModalsKey.RollCompetition);\n }, [isAuthorized, navigateToModal]);\n\n if (!isPending && !rollCompetition?.cycle) {\n return null;\n }\n\n return (\n