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B,GAAAJ,EAAAM,GAAA,EAACY,EAAoBA,CAAAA,IAG3B,qBCnBAO,EAAAC,OAAA,EAAkB,2TCAlBD,EAAAC,OAAA,EAAkB,gHCAlBD,EAAAC,OAAA,EAAkB,oKCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/constants/translateCountries.ts","webpack://_N_E/../../node_modules/next-translate/lib/esm/setLanguage.js","webpack://_N_E/./src/hooks/useSetLanguage.ts","webpack://_N_E/./src/components/LanguageModal/Content/Languages/Language/index.tsx","webpack://_N_E/./src/components/LanguageModal/Content/Languages/index.tsx","webpack://_N_E/./src/components/LanguageModal/Content/index.tsx","webpack://_N_E/./src/components/LanguageModal/index.tsx","webpack://_N_E/./src/components/LanguageModal/Content/Languages/Language/styles.module.scss","webpack://_N_E/./src/components/LanguageModal/Content/Languages/styles.module.scss","webpack://_N_E/./src/components/LanguageModal/Content/styles.module.scss","webpack://_N_E/./src/components/LanguageModal/styles.module.scss"],"sourcesContent":["import { LanguageProps } from '@/types/translate/props';\n\nexport const languageList: LanguageProps[] = [\n {\n id: 1,\n name: 'Portuguese',\n lang: 'pt',\n image: 'br.svg',\n },\n {\n id: 2,\n name: 'English',\n lang: 'en',\n image: 'us.svg',\n },\n {\n id: 3,\n name: 'Spanish',\n lang: 'es',\n image: 'es.svg',\n },\n {\n id: 4,\n name: 'French',\n lang: 'fr',\n image: 'fr.svg',\n },\n {\n id: 5,\n name: 'German',\n lang: 'de',\n image: 'de.svg',\n },\n {\n id: 6,\n name: 'Russian',\n lang: 'ru',\n image: 'ru.svg',\n },\n {\n id: 7,\n name: 'China',\n lang: 'zh',\n image: 'cn.svg',\n },\n {\n id: 8,\n name: 'Indonesia',\n lang: 'id',\n image: 'id.svg',\n },\n {\n id: 9,\n name: 'Hindi',\n lang: 'hi',\n image: 'in.svg',\n },\n {\n id: 10,\n name: 'Italian',\n lang: 'it',\n image: 'it.svg',\n },\n];\n","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport Router from 'next/router';\nexport default function setLanguage(locale, scroll) {\n if (scroll === void 0) { scroll = true; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4, Router.push({\n pathname: Router.pathname,\n query: Router.query,\n }, Router.asPath, { locale: locale, scroll: scroll })];\n case 1: return [2, _a.sent()];\n }\n });\n });\n}\n","import { useCallback } from 'react';\nimport { setCookie } from 'cookies-next';\nimport { CookiesKey } from '@/enums/cookiesKey';\nimport i18nSetLanguage from 'next-translate/setLanguage';\nimport { QueryClient, useQueryClient } from '@tanstack/react-query';\nimport { store } from '@/lib/store';\nimport { setHasSlotSession } from '@/lib/store/casino/actions';\n\nexport function useSetLanguage() {\n const queryClient: QueryClient = useQueryClient();\n\n const setLanguage = useCallback(\n async (language: string) => {\n store.dispatch(setHasSlotSession(false));\n\n queryClient;\n setCookie(CookiesKey.Lang, language, {\n sameSite: 'strict',\n maxAge: 31536000,\n });\n setCookie(CookiesKey.CasinoLang, language, {\n sameSite: 'strict',\n maxAge: 31536000,\n });\n setCookie('NEXT_LOCALE', language);\n await i18nSetLanguage(language);\n },\n [queryClient],\n );\n\n return setLanguage;\n}\n","import { memo } from 'react';\nimport { LanguageProps } from '@/types/translate/props';\nimport styles from './styles.module.scss';\nimport useTranslation from 'next-translate/useTranslation';\nimport { useSetLanguage } from '@/hooks/useSetLanguage';\nimport { useModal } from '@starsoft/common/hooks';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { Image, Input } from '@starsoft/common/components';\n\nfunction Language({ lang, image, name }: LanguageProps) {\n const { t, lang: currentLang } = useTranslation('common');\n const isSelected: boolean = currentLang?.slice(0, 2) === lang;\n const setLanguage = useSetLanguage();\n const { onClose } = useModal(ModalsKey.Language);\n\n async function onClick() {\n try {\n await setLanguage(lang);\n } finally {\n onClose();\n }\n }\n\n return (\n \n
\n \n {t(lang)}\n
\n\n \n \n );\n}\n\nexport default memo(Language);\n","import { useMemo } from 'react';\nimport { languageList } from '@/constants/translateCountries';\nimport styles from './styles.module.scss';\nimport Language from './Language';\n\nexport default function LanguageList() {\n const Languages: JSX.Element[] = useMemo(\n () =>\n languageList.map(language => (\n \n )),\n [],\n );\n\n return
{Languages}
;\n}\n","import styles from './styles.module.scss';\nimport LanguageList from './Languages';\n\nexport default function LanguageModalContent() {\n return (\n
\n \n
\n );\n}\n","import LanguageModalContent from './Content';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport useTranslation from 'next-translate/useTranslation';\nimport styles from './styles.module.scss';\nimport { ModalWithVersion } from '../core/Modal/WithVersion';\n\nexport default function LanguageModal() {\n const { t } = useTranslation('common');\n\n return (\n \n \n \n );\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__TovYG\",\"container__row\":\"styles_container__row__Arw2p\",\"container__title\":\"styles_container__title__Rwx0m\",\"container__image\":\"styles_container__image__bs6Gx\",\"container--selected\":\"styles_container--selected__6aMy4\",\"skeleton-animation\":\"styles_skeleton-animation__Mco0M\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__Xl4GL\",\"skeleton-animation\":\"styles_skeleton-animation__2LnKx\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__pUdP7\",\"container__header\":\"styles_container__header__NAKZg\",\"skeleton-animation\":\"styles_skeleton-animation__95wav\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__1YYWM\",\"skeleton-animation\":\"styles_skeleton-animation__SiBHO\"};"],"names":["languageList","id","name","lang","image","__generator","thisArg","body","f","y","t","g","_","label","sent","trys","ops","next","verb","Symbol","iterator","n","v","step","op","call","done","value","pop","length","push","e","Languages_Language","memo","param","currentLang","useTranslation","isSelected","slice","setLanguage","useSetLanguage","queryClient","useQueryClient","useCallback","language","store","dispatch","setHasSlotSession","setCookie","CookiesKey","Lang","sameSite","maxAge","CasinoLang","i18nSetLanguage","locale","scroll","_arguments","P","generator","_a","router_default","pathname","query","asPath","Promise","resolve","reject","fulfilled","rejected","result","adopt","then","apply","onClose","useModal","ModalsKey","Language","onClick","jsx_runtime","jsxs","div","className","styles","concat","jsx","Image","src","process","alt","Input","type","checked","LanguageList","Languages","useMemo","map","LanguageModalContent","LanguageModal","ModalWithVersion","modal","title","smallMobilePadding","fitContent","module","exports"],"sourceRoot":""}