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B,EAAAC,GAAA,EAACqB,EAAoBA,CAAgC,GAAGgB,CAAO,EAApC,oBAAsB/B,MAAA,CAAFsB,OAIvD,0DC/Ce,SAASU,IACtB,GAAM,CAAEf,EAAAA,CAAC,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,CAAAA,EAAe,gBACvB,CAAEe,gBAAAA,CAAe,CAAEC,OAAAA,CAAM,CAAEC,QAAAA,CAAO,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,CAAAA,EAC3CC,EAAAA,CAASA,CAACL,kBAAkB,EAG9B,MACE,GAAAvC,EAAAC,GAAA,EAAC4C,EAAAA,CAAKA,CAAAA,CAACH,QAASA,EAASI,KAAML,WAC7B,GAAAzC,EAAA0B,IAAA,EAACxB,MAAAA,CAAIC,UAAWC,IAAAA,SAAgB,CAAE2C,QAASP,YACzC,GAAAxC,EAAAC,GAAA,EAAC+C,EAAAA,CAAWA,CAAAA,CAACN,QAASA,EAASO,MAAOzB,EAAE,uBACxC,GAAAxB,EAAAC,GAAA,EAACoC,EAAyBA,CAAAA,OAIlC,oFCnBO,IAAMnB,EAAiB,IAAIgC,IAAgC,CAChE,CAACjB,EAAAA,CAAkBA,CAACE,MAAM,CAAE,UAAU,CACtC,CAACF,EAAAA,CAAkBA,CAACC,KAAK,CAAE,UAAU,CACrC,CAACD,EAAAA,CAAkBA,CAACG,MAAM,CAAE,UAAU,CACvC,2CCNWH,mCAAAA,EAAAA,GAAAA,CAAAA,EAAAA,CAAAA,CAAAA,wECCZkB,EAAAC,OAAA,EAAkB,sGCAlBD,EAAAC,OAAA,EAAkB,8SCAlBD,EAAAC,OAAA,EAAkB,mVCAlBD,EAAAC,OAAA,EAAkB,4XCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/Crash/TrendPopup/Content/TrendGrid/Skeleton/index.tsx","webpack://_N_E/./src/components/Crash/TrendPopup/Content/TrendGrid/index.tsx","webpack://_N_E/./src/components/Crash/TrendTutorialModal/Content/Example/index.tsx","webpack://_N_E/./src/constants/trenball-examples.ts","webpack://_N_E/./src/components/Crash/TrendTutorialModal/Content/index.tsx","webpack://_N_E/./src/components/Crash/TrendTutorialModal/index.tsx","webpack://_N_E/./src/constants/trenball-colors.ts","webpack://_N_E/./src/models/crash/trenball/color/index.ts","webpack://_N_E/./src/components/Crash/TrendPopup/Content/TrendGrid/Skeleton/styles.module.scss","webpack://_N_E/./src/components/Crash/TrendPopup/Content/TrendGrid/styles.module.scss","webpack://_N_E/./src/components/Crash/TrendTutorialModal/Content/Example/styles.module.scss","webpack://_N_E/./src/components/Crash/TrendTutorialModal/Content/styles.module.scss","webpack://_N_E/./src/components/Crash/TrendTutorialModal/styles.module.scss"],"sourcesContent":["import { useMemo } from 'react';\nimport styles from '../styles.module.scss';\nimport skeleton from './styles.module.scss';\n\nexport default function TrendPopupContentTrendGridSkeleton() {\n const Grid = useMemo(\n () =>\n Array.from({ length: 16 })?.map((_, colIdx) => (\n \n {Array.from({ length: 6 }).map((_, rowIndex) => (\n \n ))}\n \n )),\n [],\n );\n\n return
{Grid}
;\n}\n","import styles from './styles.module.scss';\nimport { useMemo } from 'react';\nimport { trenballColors } from '@/constants/trenball-colors';\nimport TrendPopupContentTrendGridSkeleton from './Skeleton';\nimport { TrendPopupContentTrendGridProps } from './props';\nimport { ErrorCard } from '@starsoft/common/components';\n\nexport default function TrendPopupContentTrendGrid({\n data,\n error,\n isLoading,\n refetch,\n}: TrendPopupContentTrendGridProps) {\n const Grid = useMemo(\n () =>\n data?.map((row, colIdx) => (\n \n {row.map((color, rowIndex) => (\n \n \n \n ))}\n \n )),\n [data],\n );\n\n if (error) {\n return refetch?.()} />;\n }\n\n if (isLoading) {\n return ;\n }\n\n return
{Grid}
;\n}\n","import TrendPopupContentTrendGrid from '@/components/Crash/TrendPopup/Content/TrendGrid';\nimport { TrendTutorialExampleProps } from './props';\nimport styles from './styles.module.scss';\nimport useTranslation from 'next-translate/useTranslation';\nimport { trenballColors } from '@/constants/trenball-colors';\nimport { Fragment } from 'react';\n\nexport default function TrendTutorialExample({\n data,\n multipliers,\n}: TrendTutorialExampleProps) {\n const { t } = useTranslation('smash-racing');\n\n return (\n
\n \n\n
\n \n {t('trend_explanation')}\n \n\n
\n {multipliers.map((multiplier, i) => (\n \n \n {multiplier.value}\n \n\n {i !== multipliers.length - 1 && (\n \n )}\n \n ))}\n
\n
\n
\n );\n}\n","import { TrendTutorialExampleProps } from '@/components/Crash/TrendTutorialModal/Content/Example/props';\nimport { CrashTrenballColor } from '@/models/crash/trenball/color';\n\nexport const trenballExamples: TrendTutorialExampleProps[] = [\n {\n data: [\n [\n CrashTrenballColor.Green,\n CrashTrenballColor.Green,\n CrashTrenballColor.Green,\n null,\n null,\n null,\n ],\n [CrashTrenballColor.Orange, null, null, null, null, null],\n [\n CrashTrenballColor.Green,\n CrashTrenballColor.Yellow,\n null,\n null,\n null,\n null,\n ],\n [null, null, null, null, null, null],\n [null, null, null, null, null, null],\n [null, null, null, null, null, null],\n ],\n multipliers: [\n {\n color: CrashTrenballColor.Green,\n value: 5.64,\n },\n {\n color: CrashTrenballColor.Green,\n value: 2.63,\n },\n {\n color: CrashTrenballColor.Green,\n value: 4.15,\n },\n {\n color: CrashTrenballColor.Orange,\n value: 1.82,\n },\n {\n color: CrashTrenballColor.Green,\n value: 2.31,\n },\n {\n color: CrashTrenballColor.Yellow,\n value: 18.78,\n },\n ],\n },\n {\n data: [\n [\n CrashTrenballColor.Green,\n CrashTrenballColor.Yellow,\n CrashTrenballColor.Green,\n CrashTrenballColor.Green,\n CrashTrenballColor.Green,\n CrashTrenballColor.Green,\n ],\n [\n CrashTrenballColor.Orange,\n CrashTrenballColor.Orange,\n null,\n null,\n null,\n null,\n ],\n [CrashTrenballColor.Green, null, null, null, null, null],\n [null, null, null, null, null, null],\n [null, null, null, null, null, null],\n [null, null, null, null, null, null],\n ],\n multipliers: [\n {\n color: CrashTrenballColor.Green,\n value: 2.25,\n },\n {\n color: CrashTrenballColor.Yellow,\n value: 18.12,\n },\n {\n color: CrashTrenballColor.Green,\n value: 4.21,\n },\n {\n color: CrashTrenballColor.Green,\n value: 3.24,\n },\n {\n color: CrashTrenballColor.Green,\n value: 2.14,\n },\n {\n color: CrashTrenballColor.Green,\n value: 3.31,\n },\n {\n color: CrashTrenballColor.Orange,\n value: 1.32,\n },\n {\n color: CrashTrenballColor.Orange,\n value: 1.96,\n },\n {\n color: CrashTrenballColor.Green,\n value: 4.46,\n },\n ],\n },\n];\n","import { trenballColors } from '@/constants/trenball-colors';\nimport TrendTutorialExample from './Example';\nimport { trenballExamples } from '@/constants/trenball-examples';\nimport styles from './styles.module.scss';\nimport { CrashTrenballColor } from '@/models/crash/trenball/color';\n\nexport default function TrendTutorialModalContent() {\n return (\n
\n \n \n \n ≥2×\n
\n\n \n \n {`<2×`}\n \n\n \n \n ≥10×\n \n \n\n {trenballExamples.map((example, i) => (\n \n ))}\n \n );\n}\n","import { useModal } from '@/hooks/modals/useModal';\nimport useTranslation from 'next-translate/useTranslation';\nimport TrendTutorialModalContent from './Content';\nimport styles from './styles.module.scss';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { Modal, ModalHeader } from '@starsoft/common/components';\n\nexport default function TrendTutorialModal() {\n const { t } = useTranslation('smash-racing');\n const { handleContainer, isOpen, onClose } = useModal(\n ModalsKey.TrendTutorialModal,\n );\n\n return (\n \n
\n \n \n
\n
\n );\n}\n","import { CrashTrenballColor } from '@/models/crash/trenball/color';\n\nexport const trenballColors = new Map([\n [CrashTrenballColor.Orange, '#EC6300'],\n [CrashTrenballColor.Green, '#3BC016'],\n [CrashTrenballColor.Yellow, '#E2B40C'],\n]);\n","export enum CrashTrenballColor {\n Orange = 'orange',\n Yellow = 'yellow',\n Green = 'green',\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"cell\":\"styles_cell__IiDDG\",\"skeleton-animation\":\"styles_skeleton-animation__UsUvP\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__yyP2U\",\"container__column\":\"styles_container__column__56D8a\",\"container__column__cell\":\"styles_container__column__cell__hT8fN\",\"container__column__cell__dot\":\"styles_container__column__cell__dot__Gtd_O\",\"skeleton-animation\":\"styles_skeleton-animation___F2Gk\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__5QDtR\",\"container__card\":\"styles_container__card__jwoFU\",\"container__card__label\":\"styles_container__card__label__WBkGt\",\"container__card__row\":\"styles_container__card__row__o4F1U\",\"container__card__icon\":\"styles_container__card__icon__cenH1\",\"skeleton-animation\":\"styles_skeleton-animation__aIoV3\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__jgJjG\",\"container__row\":\"styles_container__row__S7xK1\",\"container__row--center\":\"styles_container__row--center__9NWtZ\",\"container__row--small\":\"styles_container__row--small__VcSCh\",\"container__dot\":\"styles_container__dot__EgWGo\",\"container__label\":\"styles_container__label__scHa3\",\"skeleton-animation\":\"styles_skeleton-animation__DEZaB\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__olxXL\",\"skeleton-animation\":\"styles_skeleton-animation__bqKPt\"};"],"names":["TrendPopupContentTrendGridSkeleton","Grid","useMemo","Array","from","length","map","_","colIdx","jsx_runtime","jsx","div","className","styles","rowIndex","skeleton","concat","TrendPopupContentTrendGrid","param","data","error","isLoading","refetch","row","color","style","backgroundColor","trenballColors","get","undefined","ErrorCard","TrendTutorialExample","multipliers","t","useTranslation","jsxs","span","multiplier","i","Fragment","value","trenballExamples","CrashTrenballColor","Green","Orange","Yellow","TrendTutorialModalContent","example","TrendTutorialModal","handleContainer","isOpen","onClose","useModal","ModalsKey","Modal","open","onClick","ModalHeader","title","Map","module","exports"],"sourceRoot":""}