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C0G,EACJ,wDAIIC,EAAQH,GAEVC,CAAAA,EACEG,CAAAA,EAAAA,EAAAA,EAAAA,EAAiBF,GACjBG,IAAMD,CAAAA,EAAAA,EAAAA,EAAAA,EAAiBF,IAAeI,KAAK,CAAC,IAAKzE,QAAQ,IAIzD0E,EAAOR,GAETE,CAAAA,EACEI,IAAMD,CAAAA,EAAAA,EAAAA,EAAAA,EAAiBF,IAAeI,KAAK,CAAC,IAAKzE,QAAQ,GACzDuE,CAAAA,EAAAA,EAAAA,EAAAA,EAAiBF,EAAAA,EAGvB,MAAO,oHAKQ7F,MAAAA,CAAT8F,EAAM,KACNI,MAAAA,CADSlG,EAAS,mBACViC,MAAA,CAARiE,EAAK,KAA6BjE,MAAA,CAA1B,IAAMoD,KAAKc,IAAI,CAACnG,GAAU,oBAG1C,sBChDFoG,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/SideBar/Content/RewardsSection/Rewards/Reward/V1/Badge/styles.ts","webpack://_N_E/./src/components/SideBar/Content/RewardsSection/Rewards/Reward/V1/Badge/Progress/styles.ts","webpack://_N_E/./src/components/SideBar/Content/RewardsSection/Rewards/Reward/V1/Badge/Progress/index.tsx","webpack://_N_E/./src/components/SideBar/Content/RewardsSection/Rewards/Reward/V1/Badge/index.tsx","webpack://_N_E/./src/components/SideBar/Content/RewardsSection/Rewards/Reward/V1/index.tsx","webpack://_N_E/./src/hooks/useRewardState.ts","webpack://_N_E/./src/models/userReward/user-reward-status.enum.ts","webpack://_N_E/./src/utils/progress/GetProgress/index.ts","webpack://_N_E/../../packages/common/src/components/CircularProgress/index.ts","webpack://_N_E/./src/components/SideBar/Content/RewardsSection/Rewards/Reward/V1/styles.module.scss"],"sourcesContent":["import styled from 'styled-components';\n\nexport const Container = styled.div`\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background-color: ${({ theme }) => theme.vars.palette.background.default};\n display: flex;\n z-index: 2;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: -8px;\n right: -8px;\n`;\n\nexport const Icon = styled.i`\n font-size: 10px;\n color: ${({ theme }) => theme.vars.palette.text.secondary};\n`;\n","import { CircularProgress } from '@starsoft/common/components';\nimport styled from 'styled-components';\n\nexport const Progress = styled(CircularProgress)`\n width: 18px;\n height: 18px;\n position: absolute;\n top: -8px;\n z-index: 2;\n right: -8px;\n\n &::after {\n content: '';\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background-color: ${({ theme }) => theme.vars.palette.background.default};\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n`;\n","import { useEffect, useState } from 'react';\nimport { BadgeProps } from '../props';\nimport { Progress } from './styles';\nimport getProgress from '@/utils/progress/GetProgress';\n\nexport default function BadgeProgress({ reward }: BadgeProps) {\n const [progress, setProgress] = useState(0);\n\n function handleInterval() {\n setProgress(getProgress({ reward }));\n\n const timer = setInterval(() => {\n setProgress(getProgress({ reward }));\n }, 60 * 1000);\n\n return () => {\n clearInterval(timer);\n };\n }\n\n useEffect(handleInterval, [reward, getProgress]);\n\n return ;\n}\n","import { UserRewardStatus } from '@/models/userReward/user-reward-status.enum';\nimport { BadgeProps } from './props';\nimport { Container, Icon } from './styles';\nimport BadgeProgress from './Progress';\nimport { RewardId } from '@/enums/reward-id';\n\nexport default function Badge({ reward }: BadgeProps) {\n const isLevelUp: boolean = reward?.id === RewardId.LevelUp;\n\n if (!reward?.userReward) {\n return (\n