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A2B,GAC3ByW,0BAA2B,GAC3B5W,0BAA2B,IAGhB6W,EAAkC,CAC7CxC,MAAO,EACPtW,OAAQ,GAGGK,EAAkB,CAC7BC,mBAAmBhP,GAEfA,EAAKmP,cAAgBW,EAAeuX,2BACpCrnB,EAAKoP,oBAAsBU,EAAeE,+B,0DC1BzC,MAAMyR,EAAyBruB,EAAAA,GAAcq0B,gBAChD,IAAInJ,OAAOlrB,EAAAA,GAAcq0B,gBAAiB,KAC1C,GACSC,EAA+B,U","sources":["components/Login/hooks/useFaceIdLogin.tsx","components/Login/hooks/useLoginCallback.ts","elements/Accounts/hooks/useGpsTracking.ts","elements/Accounts/_partials/components/GpsTracking/index.tsx","elements/Accounts/views/LoyaltyPointsVersionsWrapper/index.tsx","elements/Accounts/views/index.tsx","elements/Accounts/hooks/useHandlePreferredLanguage.ts","hooks/auth/useLoginLimit.ts","elements/Accounts/index.tsx","elements/Accounts/hooks/useFetchSectionsData.ts","elements/Accounts/hooks/useSeonIntegration.ts","elements/Accounts/hooks/useCheckDepositReturnUrl.ts","elements/Accounts/layout/index.tsx","hooks/auth/useAccountLogout.ts","services/account/get-remaining-session-duration.ts","hooks/auth/useRestoreLogin.ts","hooks/auth/useUpdateUser.ts","hooks/auth/useUserNotifications.ts","utils/account/payment.ts","utils/account/push-notifications.ts","utils/account/user-info.ts","utils/bom-dom-manipulation/append-script.ts","utils/constants/account/payment.ts","utils/constants/account/reg-fields-json.ts","utils/constants/account/user-status.ts","utils/constants/price-separator.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { getCookie } from 'utils/bom-dom-manipulation/cookies';\nimport { login } from 'services/authentication';\nimport { useLoginCallback } from 'components/Login/hooks/useLoginCallback';\nimport { useAccountLogout } from 'hooks/auth/useAccountLogout';\nimport { modalAlert } from 'hooks/usePopup';\n\ntype ReturnType = {\n removeSecret: () => void;\n loginWithFaceId: () => void;\n setCredentials: (username: string, password: string) => void;\n showConfirmationPopup: (username: string, password: string) => void;\n credentialsExist: boolean;\n};\n\nexport type TStatus = {\n hasTouchId: boolean;\n hasSecret: boolean;\n};\n\ntype TGetAuth = {\n success: boolean;\n secret: string;\n error: string;\n};\n\nexport const useFaceIdLogin = (): ReturnType => {\n const [credentialsExist, setCredentialsExist] = useState(false);\n const accountLogout = useAccountLogout();\n\n const { t } = useTranslation();\n\n const { loginCallback } = useLoginCallback({\n rememberMe: false,\n password: null,\n username: null\n });\n\n useEffect(() => {\n if (window.median?.auth) {\n window.median.auth.status({\n callbackFunction: (data: TStatus) => {\n if (data && data.hasTouchId && data.hasSecret) {\n setCredentialsExist(true);\n }\n }\n });\n }\n }, []);\n\n const removeSecret = () => {\n if (window.median?.auth) {\n window.median.auth.delete();\n setCredentialsExist(false);\n }\n };\n\n const loginWithFaceId = () => {\n if (window.median?.auth) {\n window.median.auth.status({\n callbackFunction: (data: TStatus) => {\n if (data && data.hasTouchId && data.hasSecret) {\n window.median.auth.get({\n callbackFunction: (res: TGetAuth) => {\n if (res && res.success && res.secret) {\n const credentials = JSON.parse(res.secret);\n const username = credentials.username;\n const password = credentials.password;\n\n if (username && password) {\n login({ username, password }, loginCallback);\n }\n } else if (res && res.error) {\n accountLogout();\n } else {\n accountLogout();\n }\n },\n callbackOnCancel: 'true'\n });\n }\n }\n });\n }\n };\n\n const setCredentials = (username: string, password: string) => {\n if (window.median?.auth) {\n removeSecret();\n window.median.auth.status({\n callbackFunction: (data: TStatus) => {\n if (data && data.hasTouchId) {\n const secret = JSON.stringify({\n username: username,\n password: password\n });\n\n window.median.auth.save({ secret: secret });\n }\n },\n prompt: 'PROMPT'\n });\n }\n };\n\n const showConfirmationPopup = (username: string, password: string): void => {\n if (window.median?.auth) {\n window.median.auth.status({\n callbackFunction: (data: TStatus) => {\n if (data && data.hasTouchId) {\n modalAlert({\n text: getCookie('isIOSWrapperApp')\n ? t('account.faceIdConfirmationInfoIos')\n : t('account.faceIdConfirmationInfoAndroid'),\n icon: {\n lib: 'account',\n name: getCookie('isIOSWrapperApp') ? 'FaceId' : 'Biometrics',\n theme: 'colored'\n },\n successBtn: {\n text: t('account.ok'),\n onClick: () => {\n setCredentials(username, password);\n }\n },\n cancelBtn: {\n text: t('account.cancel')\n },\n closable: false\n });\n }\n },\n prompt: 'PROMPT'\n });\n }\n };\n\n return {\n removeSecret,\n loginWithFaceId,\n setCredentials,\n credentialsExist,\n showConfirmationPopup\n };\n};\n","import { useRef, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport qs from 'qs';\nimport { checkAndStoreFcmToken } from 'utils/account/push-notifications';\nimport { setUserLoginLimitStartTimeLS } from 'utils/account/user-info';\nimport LocalStorage from 'utils/bom-dom-manipulation/local-storage';\nimport { setCookieLoginCredentials } from 'utils/bom-dom-manipulation/login-credentials';\nimport { sendPostMessage } from 'utils/bom-dom-manipulation/send-post-message-to-iframe';\nimport SessionStorage from 'utils/bom-dom-manipulation/session-storage';\nimport { VAIX_IFRAME_ID } from 'utils/constants/app/iframe-ids';\nimport { CookieExpiration } from 'utils/constants/dateInfo/dateInfo';\nimport {\n MILLISECONDS_IN_SECOND,\n SECONDS_PER_MINUTE\n} from 'utils/constants/dateInfo/time-numbers';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { loginState } from 'utils/sportsbook/api-post-message-sender';\nimport {\n AuthData,\n LoginResponse,\n ProfileData\n} from 'interfaces/authentication';\nimport { AfterSignIn } from 'services/afterSignIn';\nimport {\n getUser,\n sendRestoreLoginPostMsg,\n setTermsAndConditionVersion\n} from 'services/authentication';\nimport { getUserAllNotifications } from 'services/sportsbook/notifications';\nimport { getSavedLocation } from 'components/QueryRoute';\nimport { useUpdateUser } from 'hooks/auth/useUpdateUser';\nimport { setLoginLimit, setUserData, setUserLoggedIn } from 'store/actions';\nimport { setShowAdditionalInfo } from 'store/actions/app-data';\nimport { getRegFieldData } from 'store/selectors/app-data';\n\ntype TLoginCallbackProps = {\n rememberMe: boolean;\n userGroups?: string | null;\n username: string | null;\n password: string | null;\n inPopup?: boolean;\n};\n\ntype ReturnType = {\n loginCallback: (data: LoginResponse) => void;\n updateAuthData: () => void;\n isTwoFactorPopupVisible: boolean;\n qrCodeOrigin?: string;\n};\n\nconst TWO_FACTOR_AUTHENTICATION_STATUS = 4;\n\nexport const useLoginCallback = ({\n rememberMe,\n userGroups,\n inPopup\n}: TLoginCallbackProps): ReturnType => {\n const authData = useRef();\n const [isTwoFactorPopupVisible, setIsTwoFactorPopupVisible] = useState(false);\n const [qrCodeOrigin, setQrCodeOrigin] = useState();\n const dispatch = useDispatch();\n const history = useHistory();\n\n const regFieldsData = useSelector(getRegFieldData);\n\n const personalId = regFieldsData?.find(\n field => field && field.formType === 'personalId'\n );\n\n const loginCallback = (data: LoginResponse) => {\n const {\n auth_token,\n user_id,\n qr_code_origin,\n authentication_status,\n jwe_token\n } = data;\n\n authData.current = {\n auth_token,\n user_id,\n qr_code_origin,\n jwe_token\n };\n\n if (authentication_status === TWO_FACTOR_AUTHENTICATION_STATUS) {\n setIsTwoFactorPopupVisible(true);\n setQrCodeOrigin(qr_code_origin);\n\n return;\n }\n\n if (SpringConfigs.ADD_INFO_AFTER_LOGIN) {\n dispatch(setShowAdditionalInfo(true));\n LocalStorage.setItem(\n storageKeyName('customPopup', 'SHOW_ADDITIONAL_INFO'),\n 'true'\n );\n }\n\n checkAndStoreFcmToken();\n\n updateAuthData();\n\n sendPostMessage({ type: 'userId', value: data.user_id }, VAIX_IFRAME_ID);\n\n window.popupIframe && sendRestoreLoginPostMsg(data);\n\n if (SpringConfigs.IFRAME_SPORTSBOOK) {\n loginState('loggedIn');\n }\n\n if (\n SpringConfigs.LOGIN_LIMIT_POPUP ||\n SpringConfigs.PLAYER_ACTIVITY_CHECK\n ) {\n setUserLoginLimitStartTimeLS();\n }\n };\n\n const updateAuthData = () => {\n LocalStorage.setItem(\n storageKeyName('account', 'AUTH_DATA'),\n JSON.stringify(authData.current)\n );\n getUser(\n (data: ProfileData) => {\n storeUser(data);\n\n if (\n data.terms_and_conditions_version !== 'v2' &&\n SpringConfigs.SHOW_ADDITIONAL_CHECKBOX_FOR_LOGIN &&\n SpringConfigs.VERIFICATION_TYPE === 0\n ) {\n setTermsAndConditionVersion('v2', () => {});\n }\n },\n updateUser,\n 'login',\n false,\n !!(\n personalId?.editForm.showOnEditProfile &&\n personalId.editForm.personalIdType === '2' &&\n personalId?.editForm.sendCPFAsDocNumber === '1'\n )\n );\n\n if (SpringConfigs.PUSH_NOTIFICATIONS_ENABLED) {\n getUserAllNotifications();\n }\n };\n\n const { updateUser } = useUpdateUser();\n\n const storeUser = (userData: ProfileData) => {\n setCookieLoginCredentials('loginCredentials', {\n rememberMe,\n userGroups: userGroups || '',\n jwe_token: authData?.current?.jwe_token || ''\n });\n\n dispatch(\n setUserData({\n ...userData,\n last_login_date:\n userData.last_login_date ||\n Math.floor(new Date().getTime() / MILLISECONDS_IN_SECOND)\n })\n );\n dispatch(\n setLoginLimit((userData.session_duration || 0) * SECONDS_PER_MINUTE)\n );\n\n userData.active_time_in_casino &&\n SessionStorage.setItem(\n storageKeyName('account', 'ACTIVE_TIME_IN_CASINO'),\n `${userData.active_time_in_casino}`\n );\n\n const afterSignIn = new AfterSignIn();\n afterSignIn.setAfterExecutionCallback(() => {\n if (afterSignIn.isActionsExist()) {\n !inPopup && getSavedLocation();\n } else {\n const savedLocation = getSavedLocation();\n\n const splitLocation = savedLocation.split('?');\n\n const parsedQuery = qs.parse(splitLocation[1], {\n ignoreQueryPrefix: true\n }) as Record;\n\n if (parsedQuery['accounts'] && parsedQuery['login']) {\n delete parsedQuery.accounts;\n delete parsedQuery.login;\n }\n\n const updatedLocation = `${splitLocation[0]}?${qs.stringify(\n parsedQuery\n )}`;\n\n history.push(updatedLocation);\n }\n\n dispatch(setUserLoggedIn(true));\n LocalStorage.setItem(\n storageKeyName('account', 'PARENT_ACCOUNT_CURRENCY'),\n userData.currency\n );\n\n setCookieLoginCredentials(\n 'sbuser',\n {\n rememberMe,\n userGroups: userGroups ? userGroups || '' : ''\n },\n CookieExpiration.DAYS_15\n );\n });\n afterSignIn.executeActions();\n };\n\n return {\n loginCallback,\n updateAuthData,\n isTwoFactorPopupVisible,\n qrCodeOrigin\n };\n};\n","import { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport LocalStorage from 'utils/bom-dom-manipulation/local-storage';\nimport {\n MILLISECONDS_IN_SECOND,\n SECONDS_PER_MINUTE\n} from 'utils/constants/dateInfo/time-numbers';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { CommandNames } from 'utils/constants/swarm/swarm-command-names';\nimport { GLOBALS } from 'utils/generic/global-variables';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { isMobile } from 'utils/is-mobile';\nimport { swarmCommand } from 'services/get-swarm-data';\nimport { useAccountLogout } from 'hooks/auth/useAccountLogout';\nimport { setGeoLocationShakeData } from 'store/actions/app-data';\nimport {\n resetGpsTrackingParams,\n updateGpsTrackingParams\n} from 'store/actions/user-data';\nimport { getGeolocationShakeData } from 'store/selectors/app-data';\nimport { getIsConnected } from 'store/selectors/socket';\nimport { getGpsTrackingParams } from 'store/selectors/user-data';\n\nexport const useGpsTracking = (): {\n popupType: string | undefined;\n checkLocation: typeof checkLocation;\n gpsLogout: typeof gpsLogout;\n} => {\n const dispatch = useDispatch();\n const accountLogout = useAccountLogout();\n const gpsTrackingParams = useSelector(getGpsTrackingParams);\n const geolocationShakeData = useSelector(getGeolocationShakeData);\n const socetReConnect = useSelector(getIsConnected);\n\n const [needCheckGeoLocation, setNeedCheckGeoLocation] = useState(true);\n\n const sendGetGeoToken = useMemo(() => {\n return gpsTrackingParams.sendGeoToken;\n }, [gpsTrackingParams.sendGeoToken]);\n\n const sendGetGeoTokenAction = useMemo(() => {\n return gpsTrackingParams.action;\n }, [gpsTrackingParams.action]);\n\n useEffect(() => {\n socetReConnect && checkLocation();\n }, [socetReConnect]);\n\n useEffect(() => {\n if (sendGetGeoTokenAction) {\n checkLocation();\n clearCheckInterval();\n } else if (gpsTrackingParams.popupType) {\n clearCheckInterval();\n } else if (needCheckGeoLocation) {\n setCheckInterval();\n }\n }, [sendGetGeoTokenAction, gpsTrackingParams.popupType]);\n\n const clearCheckInterval = useCallback(() => {\n if (gpsTrackingParams.checkInterval) {\n clearInterval(gpsTrackingParams.checkInterval);\n\n updateGpsTrackingParams({\n checkInterval: 0\n });\n }\n }, [gpsTrackingParams.checkInterval]);\n\n const setCheckInterval = useCallback(() => {\n if (!gpsTrackingParams.checkInterval) {\n const interval = setInterval(() => {\n checkLocation();\n }, SpringConfigs.GPS_TRACKING_CHECKING_INTERVAL * SECONDS_PER_MINUTE * MILLISECONDS_IN_SECOND);\n\n dispatch(\n updateGpsTrackingParams({\n checkInterval: interval\n })\n );\n }\n }, [gpsTrackingParams.checkInterval]);\n\n useEffect(() => {\n if (geolocationShakeData) {\n if (GLOBALS.geolocationWindow) {\n GLOBALS.geolocationWindow.close();\n GLOBALS.geolocationWindow = null;\n }\n\n if (geolocationShakeData !== 'confirm_geo_token') {\n dispatch(\n updateGpsTrackingParams({\n popupType: 'shakeError'\n })\n );\n } else {\n gpsTrackingParams.validateGeoRestrictionSuccessCallback?.();\n\n dispatch(setGeoLocationShakeData(null));\n dispatch(resetGpsTrackingParams());\n }\n }\n }, [geolocationShakeData]);\n\n const checkLocation = useCallback(() => {\n navigator.geolocation.getCurrentPosition(\n onGeoLocationSuccess,\n onGeoLocationError,\n {\n enableHighAccuracy: true,\n timeout: 5000,\n maximumAge: 0\n }\n );\n }, [gpsTrackingParams]);\n\n const onGeoLocationError = useCallback(() => {\n dispatch(\n updateGpsTrackingParams({\n popupType: 'error'\n })\n );\n }, []);\n\n const onGeoLocationSuccess = useCallback(\n pos => {\n const crd = pos.coords;\n sendValidateGeoCommand(crd.latitude, crd.longitude);\n },\n [gpsTrackingParams]\n );\n\n const sendValidateGeoCommand = useCallback(\n (lat: number, lng: number) => {\n const params = {\n lat: lat,\n lng: lng\n };\n\n if (\n !gpsTrackingParams.popupType &&\n !gpsTrackingParams.loadingValidateGeoRestriction\n ) {\n dispatch(\n updateGpsTrackingParams({\n loadingValidateGeoRestriction: true\n })\n );\n\n swarmCommand(\n CommandNames.VALIDATE_GEO_RESTRICTION,\n params,\n validateGeoRestrictionCallback,\n null,\n (data: any) => {\n checksErrorCallback(data);\n\n dispatch(\n updateGpsTrackingParams({\n loadingValidateGeoRestriction: false\n })\n );\n }\n );\n }\n },\n [gpsTrackingParams]\n );\n\n const gpsLogout = useCallback(() => {\n const authData = !!JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'AUTH_DATA'))\n );\n\n if (authData) {\n accountLogout();\n }\n }, []);\n\n const validateGeoRestrictionCallback = useCallback(\n (data: any) => {\n dispatch(\n updateGpsTrackingParams({\n loadingValidateGeoRestriction: false\n })\n );\n\n if (!data.result) {\n dispatch(\n updateGpsTrackingParams({\n popupType: 'error'\n })\n );\n } else {\n if (sendGetGeoToken && sendGetGeoTokenAction) {\n sendGetGeoTokenCommand();\n }\n }\n },\n [gpsTrackingParams]\n );\n\n const sendGetGeoTokenCommand = useCallback(() => {\n if (!gpsTrackingParams.loadingGetGeoToken) {\n dispatch(\n updateGpsTrackingParams({\n loadingGetGeoToken: true\n })\n );\n\n swarmCommand(\n CommandNames.GET_GEO_TOKEN,\n {\n action: sendGetGeoTokenAction\n },\n getGeoTokenCallback,\n null,\n (data: null) => {\n checksErrorCallback(data);\n\n dispatch(\n updateGpsTrackingParams({\n loadingGetGeoToken: false\n })\n );\n }\n );\n }\n }, [gpsTrackingParams]);\n\n const getGeoTokenCallback = useCallback(\n (data: any) => {\n dispatch(\n updateGpsTrackingParams({\n loadingGetGeoToken: false\n })\n );\n\n if (data.result === 0) {\n const gpsTrackingLink = `${SpringConfigs.GPS_TRACKING_URL}/?token=${data.details.token}&language=eng&geoDataWriteInterval=50&geoDataListenDuration=20000&siteId=${SpringConfigs.PARTNER_ID}&websocketUrl=${SpringConfigs.SWARM_URL}`;\n\n if (!isMobile()) {\n dispatch(\n updateGpsTrackingParams({\n popupType: 'qr-popup',\n trackingLink: gpsTrackingLink,\n trackingDuration: data.details.duration\n })\n );\n } else {\n dispatch(\n updateGpsTrackingParams({\n popupType: 'confirm',\n trackingLink: gpsTrackingLink\n })\n );\n }\n } else {\n checksErrorCallback(data);\n }\n },\n [gpsTrackingParams]\n );\n\n const checksErrorCallback = useCallback(\n // @Todo FIX_MY_TYPE @todo-account\n (errorData: Record | null = null) => {\n gpsLogout();\n gpsTrackingParams.validateGeoRestrictionCancelCallback?.();\n\n if (errorData) {\n setNeedCheckGeoLocation(false);\n dispatch(\n updateGpsTrackingParams({\n popupType: 'error',\n errorPopupTitle: errorData.msg,\n errorPopupMsg: errorData.data\n })\n );\n } else {\n setCheckInterval();\n dispatch(resetGpsTrackingParams());\n }\n },\n [gpsTrackingParams]\n );\n\n return {\n popupType: gpsTrackingParams.popupType,\n checkLocation: checkLocation,\n gpsLogout: gpsLogout\n };\n};\n","import { memo, ReactElement, Suspense } from 'react';\nimport { lazy } from 'utils/generic/lazy';\nimport { useGpsTracking } from '../../../hooks/useGpsTracking';\n\nconst { GpsTrackingPopup } = lazy(\n () =>\n import(/* webpackChunkName: \"gps-tracking-popup\" */ './gpsTrackingPopup')\n);\n\nexport const GpsTracking = memo((): ReactElement | null => {\n const GpsTrackingParams = useGpsTracking();\n\n return GpsTrackingParams.popupType ? (\n \n \n \n ) : null;\n});\n","import { Suspense } from 'react';\nimport { useSelector } from 'react-redux';\nimport { lazy } from 'utils/generic/lazy';\nimport 'components/AccountUI/index.less';\nimport { getPartnerConfigs } from 'store/selectors/socket';\n\nconst { LoyaltyPoints } = lazy(\n () => import(/* webpackChunkName: \"loyalty-points\" */ '../LoyaltyPoints')\n);\n\nconst { LoyaltyPointsNew } = lazy(\n () =>\n import(/* webpackChunkName: \"loyalty-points-v2\" */ '../LoyaltyPointsNew')\n);\n\nexport const LoyaltyPointsVersionsWrapper = () => {\n const partnerConfigs = useSelector(getPartnerConfigs);\n\n const isLoyaltyV2 = !!partnerConfigs?.is_loyalty_v2;\n\n return (\n \n {isLoyaltyV2 ? : }\n \n );\n};\n","import { FC, Suspense, useCallback } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { lazy } from 'utils/generic/lazy';\nimport { isMobile } from 'utils/is-mobile';\nimport { LoyaltyPointsVersionsWrapper } from './LoyaltyPointsVersionsWrapper';\nimport { Loading } from 'components/Loading';\nimport { addQuery, QueryRoute, updateQuery } from 'components/QueryRoute';\nimport { getSectionsData } from 'store/selectors/app-data';\nimport { getIsLoggedIn, getUser } from 'store/selectors/user-data';\nimport { AccountsLayout } from '../layout';\n\n/* prettier-ignore-start */ /* eslint-disable */\nconst { Login } = lazy(() => import(/* webpackChunkName: \"login\" */ './Login'));\nconst { Wallet } = lazy(() => import(/* webpackChunkName: \"wallet\" */ './Wallet'));\nconst { ProfilePreview } = lazy(() => import(/* webpackChunkName: \"profile\" */ './Profile'));\nconst { Register } = lazy(() => import(/* webpackChunkName: \"register\" */ './Register'));\nconst { Messages } = lazy(() => import(/* webpackChunkName: \"account-messages\" */ './Messages'));\nconst { NewPassword } = lazy(() => import(/* webpackChunkName: \"new-password\" */ './NewPassword'));\nconst { BonusIframe } = lazy(() => import(/* webpackChunkName: \"bonus-iframe\" */ './BonusIframe'));\nconst { BonusesMenu } = lazy(() => import(/* webpackChunkName: \"bonuses-menu\" */ './Bonuses/Menu'));\nconst { Settings } = lazy(() => import(/* webpackChunkName: \"settings\" */ './Settings/Menu'));\nconst { MyCards } = lazy(() => import(/* webpackChunkName: \"my-cards\" */ './MyCards/index'));\nconst { Bonuses } = lazy(() => import(/* webpackChunkName: \"bonuses\" */ './Bonuses/Bonus'));\nconst { Rewards } = lazy(() => import(/* webpackChunkName: \"rewards\" */ './Rewards'));\nconst { ForgotPassword } = lazy(() => import(/* webpackChunkName: \"forgot-password\" */ './Forgot/Password'));\nconst { BalanceHistoryPage } = lazy(() => import(/* webpackChunkName: \"account-balance\" */ './AccountBalance'));\nconst { AccountStakeAndEarn } = lazy(() => import(/* webpackChunkName: \"account-stake-and-earb\" */ './AccountStakeAndEarn'));\nconst { Limits } = lazy(() => import(/* webpackChunkName: \"settings-limits\" */ './Settings/Limits'));\nconst { Statement } = lazy(() => import(/* webpackChunkName: \"statment\" */ './Statement/index'));\nconst { CustomerJourneyLayout } = lazy(() => import(/* webpackChunkName: \"customer-journey\" */ './CustomerJourney'));\nconst { TimeOut } = lazy(() => import(/* webpackChunkName: \"settings-timeout\" */ './Settings/TimeOut'));\nconst { GamStop } = lazy(() => import(/* webpackChunkName: \"settings-gamstop\" */ './Settings/GamStop'));\nconst { ReferFriend } = lazy(() => import(/* webpackChunkName: \"refer-a-friend\" */ './Bonuses/ReferFriend'));\nconst { LoginLimit } = lazy(() => import(/* webpackChunkName: \"settings-login-limit\" */ './Settings/LoginLimit'));\nconst { BetingHistoryLayout } = lazy(() => import(/* webpackChunkName: \"betting-history\" */ './BetingHistory/index'));\nconst { RealityCheck } = lazy(() => import(/* webpackChunkName: \"settings-reality-check\" */ './Settings/RealityCheck'));\nconst { ProfileEdit } = lazy(() => import(/* webpackChunkName: \"settings-profile\" */ './Settings/EditeProfile'));\nconst { SelfExclusion } = lazy(() => import(/* webpackChunkName: \"settings-self-exclusion\" */ './Settings/SelfExclusion'));\nconst { NotificationSettings } = lazy(() => import(/* webpackChunkName: \"settings-notifications\" */ './Settings/Notifications'));\nconst { AccountStatus } = lazy(() => import(/* webpackChunkName: \"account-status\" */ './Settings/AccountStatus'));\nconst { ChangePassword } = lazy(() => import(/* webpackChunkName: \"settings-change-pass\" */ './Settings/ChangePassword'));\nconst { MySessions } = lazy(() => import(/* webpackChunkName: \"settings-my-session\" */ './Settings/Sessions/index'));\nconst { BonusManagement } = lazy(() => import(/* webpackChunkName: \"bonus-management\" */ './Bonuses/BonusManagement'));\nconst { Documents } = lazy(() => import(/* webpackChunkName: \"settings-documents\" */ './Settings/Documents/index'));\nconst { AccumulatedProfit } = lazy(() => import(/* webpackChunkName: \"settings-profit\" */ './Settings/AccumulatedProfit'));\nconst { VerifyAccount } = lazy(() => import(/* webpackChunkName: \"settings-verify-account\" */ './Settings/VerifyAccount/index'));\nconst { TwoFactorAuth } = lazy(() => import(/* webpackChunkName: \"settings-two-factor\" */ './Settings/TwoFactorAuth/index'));\nconst { SaferGambling } = lazy(() => import(/* webpackChunkName: \"settings-safer-gambling\" */ './Settings/SaferGambling/index'));\nconst { CurrentSession } = lazy(() => import(/* webpackChunkName: \"settings-current-session\" */ './Settings/SessionInformation/index'));\nconst { AvailabilityPeriod } = lazy(() => import(/* webpackChunkName: \"settings-availability-period\" */ './Settings/AvailabilityPeriod/index'));\nconst { ForgotUsername } = lazy(() => import(/* webpackChunkName: \"forgot-username\" */ './Forgot/Username'));\nconst { BankAccount } = lazy(() => import(/* webpackChunkName: \"bank-account\" */ './BankAccount'));\nconst { TransferToFriend } = lazy(() => import(/* webpackChunkName: \"transfer-to-friend-section\" */ './TransferToFriend/ViewWithVerifyChecker'));\n\n/* prettier-ignore-end */ /* eslint-enable */\n\nexport const Accounts: FC> = props => {\n const history = useHistory();\n const user = useSelector(getUser);\n const isLoggedIn = useSelector(getIsLoggedIn);\n const accountSections = useSelector(getSectionsData);\n\n const checkIsSectionVisible = (sectionType: string): boolean => {\n if (accountSections?.myProfile) {\n return !accountSections.myProfile.find(\n section => section.sectionType === sectionType\n )?.hidden;\n }\n\n return false;\n };\n\n const redirectToProfile = useCallback(() => {\n history.push(updateQuery({ accounts: '*', settings: '*', profile: '*' }));\n }, []);\n\n if (user.pending || (isLoggedIn && !accountSections?.myProfile)) {\n return null;\n }\n\n return (\n \n }>\n !isLoggedIn && props.signInBtn}\n onCatch={() =>\n history.push(addQuery({ accounts: undefined, login: undefined }))\n }\n excludes={[]}\n render={() => (\n \n )}\n />\n\n \n \n \n !isLoggedIn && props.signUpBtn}\n onCatch={() =>\n history.push(\n updateQuery({ accounts: undefined, register: undefined })\n )\n }\n render={() => (\n \n )}\n />\n\n \n \n \n \n checkIsSectionVisible('tabBetLimit')}\n onCatch={redirectToProfile}\n />\n \n \n \n \n \n \n\n \n checkIsSectionVisible('tabGamstop')}\n onCatch={redirectToProfile}\n />\n \n \n checkIsSectionVisible('loginLimit')}\n onCatch={redirectToProfile}\n />\n {SpringConfigs.SHOW_ACCOUNT_SESSION && (\n \n )}\n checkIsSectionVisible('saferGambling')}\n onCatch={redirectToProfile}\n />\n checkIsSectionVisible('availability-period')}\n onCatch={redirectToProfile}\n />\n checkIsSectionVisible('current-session-info')}\n onCatch={redirectToProfile}\n />\n checkIsSectionVisible('tabNotifications')}\n onCatch={redirectToProfile}\n />\n checkIsSectionVisible('tabTimeOut')}\n onCatch={redirectToProfile}\n />\n \n checkIsSectionVisible('tabSelfExclusion')}\n onCatch={redirectToProfile}\n />\n checkIsSectionVisible('tabDocuments')}\n onCatch={redirectToProfile}\n />\n checkIsSectionVisible('tabVerifyAccount')}\n onCatch={redirectToProfile}\n />\n \n \n \n \n \n checkIsSectionVisible('twoFactorAuthentication')}\n onCatch={redirectToProfile}\n />\n {\n return ;\n }}\n />\n \n \n \n \n \n \n );\n};\n","import { useEffect } from 'react';\nimport { useSelector } from 'react-redux';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { CommandNames } from 'utils/constants/swarm/swarm-command-names';\nimport { GLOBALS } from 'utils/generic/global-variables';\nimport { swarmCommand } from 'services/get-swarm-data';\nimport { getIsLoggedIn } from 'store/selectors/user-data';\n\nconst lang = document.documentElement.lang || 'en';\n\nconst PREFERRED_LANGUAGE_MAPPING: Record = {\n 'pt-br': 'por'\n};\n\nexport const useHandlePreferredLanguage = () => {\n const isLoggedIn = useSelector(getIsLoggedIn);\n\n useEffect(() => {\n if (isLoggedIn) {\n swarmCommand(\n CommandNames.SET_PREFERRED_LANGUAGE,\n {\n language:\n GLOBALS.languageConfigs.swarmLangPrefix ||\n PREFERRED_LANGUAGE_MAPPING[lang] ||\n PREFERRED_LANGUAGE_MAPPING[lang.slice(0, 2)] ||\n SpringConfigs.LANGUAGE_PREFIX ||\n 'eng'\n },\n () => {}\n );\n }\n }, [isLoggedIn]);\n};\n","import { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport dayjs from 'dayjs';\nimport qs from 'qs';\nimport { deleteCookie } from 'utils/bom-dom-manipulation/cookies';\nimport LS from 'utils/bom-dom-manipulation/local-storage';\nimport { MILLISECONDS_IN_SECOND } from 'utils/constants/dateInfo/time-numbers';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { showToastError } from 'utils/generic/show-toast-error';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { ECasinoGameMode } from 'interfaces/casino-data';\nimport { logout } from 'services/authentication';\nimport { getSavedLocation, saveCurrentLocation } from 'components/QueryRoute';\nimport {\n removeUserData,\n setClientGamingStateInfo,\n setUserOptIns\n} from 'store/actions/user-data';\nimport { getSectionsData } from 'store/selectors/app-data';\nimport {\n getIsLoggedIn,\n getLoginLimit,\n getUser\n} from 'store/selectors/user-data';\nimport { useOpenLoginPopup } from '../account/useOpenLoginPopup';\nimport { useSearchParams } from '../useSearchParams';\n\nexport const useLoginLimit = (): void => {\n const [limitTimeout, setLimitTimeout] = useState>(null);\n\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const history = useHistory();\n const isLoggedIn = useSelector(getIsLoggedIn);\n const loginLimit = useSelector(getLoginLimit);\n const { last_login_date: lastLogin } = useSelector(getUser);\n const accountSections = useSelector(getSectionsData);\n const searchParams = useSearchParams();\n const openLoginPopup = useOpenLoginPopup();\n\n const removeUser = () => {\n dispatch(removeUserData());\n dispatch(setUserOptIns(null));\n dispatch(setClientGamingStateInfo(null));\n\n deleteCookie('loginCredentials');\n\n const { accounts } = qs.parse(window.location.search, {\n ignoreQueryPrefix: true\n });\n\n accounts && history.push(getSavedLocation());\n };\n\n useEffect(() => {\n const loginLimitTabEnabled =\n accountSections &&\n !accountSections?.myProfile?.find(tab => tab?.formType === 'loginLimit')\n ?.hidden;\n\n if (loginLimitTabEnabled && isLoggedIn && loginLimit && lastLogin) {\n const limitStartTime = LS.getItem(\n storageKeyName('account', 'LOGIN_LIMIT_START_TIME')\n );\n\n const delay = lastLogin + loginLimit - dayjs().unix();\n\n const timer = delay > 0 ? delay : 1;\n\n if (!SpringConfigs.LOGIN_LIMIT_POPUP) {\n setLimitTimeout(\n setTimeout(\n () => {\n logout(() => {\n removeUser();\n showToastError(t('account.sessionExpired'));\n\n if (searchParams.mode === ECasinoGameMode.REAL) {\n saveCurrentLocation();\n openLoginPopup();\n }\n });\n },\n limitStartTime !== 'null'\n ? +limitStartTime\n : timer * MILLISECONDS_IN_SECOND\n )\n );\n }\n }\n\n return () => {\n if (limitTimeout) {\n clearTimeout(limitTimeout);\n setLimitTimeout(null);\n }\n };\n }, [isLoggedIn, loginLimit, lastLogin, accountSections]);\n};\n","import {\n ReactElement,\n Suspense,\n useCallback,\n useEffect,\n useLayoutEffect,\n useMemo,\n useState\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport cc from 'classcat';\nimport dayjs from 'dayjs';\nimport QueryString from 'qs';\nimport LocalStorage from 'utils/bom-dom-manipulation/local-storage';\nimport SessionStorage from 'utils/bom-dom-manipulation/session-storage';\nimport { RegFieldsDefaultsJson } from 'utils/constants/account/reg-fields-json';\nimport {\n checkUserStatus,\n userActiveStep\n} from 'utils/constants/account/user-status';\nimport { HOUR_PER_DAY } from 'utils/constants/dateInfo/time-numbers';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { GLOBALS } from 'utils/generic/global-variables';\nimport { lazy } from 'utils/generic/lazy';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { isMobile } from 'utils/is-mobile';\nimport { showToastSuccess } from 'utils/swarm/swarm-success-handler';\nimport {\n EAccountWidgetLayoutType,\n UserOptInsResponse\n} from 'interfaces/account-settings';\nimport { EFavoriteTabsTypes } from 'interfaces/generic';\nimport { PartnerConfig } from 'interfaces/partner-config';\nimport {\n getAccountJson,\n getPlayerOptIns,\n setSelfExclusion\n} from 'services/account-settings';\nimport { AfterSignIn } from 'services/afterSignIn';\nimport { GpsTracking } from './_partials/components/GpsTracking';\nimport { AuthSectionSkeleton } from './_partials/Skeleton/AuthSectionSkeleton';\nimport { useCheckDepositReturnUrl } from './hooks/useCheckDepositReturnUrl';\nimport { useFetchSectionsData } from './hooks/useFetchSectionsData';\nimport { useSeonIntegration } from './hooks/useSeonIntegration';\nimport { Accounts as Pages } from './views';\nimport { useHandlePreferredLanguage } from 'elements/Accounts/hooks/useHandlePreferredLanguage';\nimport { Loading } from 'components/Loading';\nimport { Popup } from 'components/Popup';\nimport {\n addQueryInString,\n getSavedLocation,\n QueryRoute,\n updateQuery\n} from 'components/QueryRoute';\nimport { Portal } from 'components/Shared/Portal';\nimport { ChangeThemeSkeleton } from 'newcomponents/Shared/account/ChangeTheme/ChangeThemeSkeleton';\nimport { useAccountLogout } from 'hooks/auth/useAccountLogout';\nimport { useLoginLimit } from 'hooks/auth/useLoginLimit';\nimport { useRestoreLogin } from 'hooks/auth/useRestoreLogin';\nimport { useUserNotifications } from 'hooks/auth/useUserNotifications';\nimport { useSearchParams } from 'hooks/useSearchParams';\nimport { useFetchAccountParams } from 'newhooks/account/useFetchAccountParams';\nimport { resetPayments, setClientGamingStateInfo } from 'store/actions';\nimport { setRegField } from 'store/actions/app-data';\nimport {\n removeUserData,\n setPaymentDepositPromo,\n setShowAutoidentVerificationModal,\n setUserOptIns\n} from 'store/actions/user-data';\nimport {\n getPersonalizedGenericSettings,\n getRegFieldData,\n getRemainingSessionDuration,\n getSectionsData,\n getShowAdditionalInfo\n} from 'store/selectors/app-data';\nimport { getPartnerConfigs } from 'store/selectors/socket';\nimport {\n getCashbackNotifications,\n getIsLoggedIn,\n getLoyaltyNotifications,\n getPendingSuperBets,\n getRegIsFinished,\n getShouldGetUserOptIns,\n getUser,\n getUserOptIns\n} from 'store/selectors/user-data';\nimport './index.less';\n\nif (SpringConfigs.IS_RTL) {\n import('./rtl.less');\n}\n\nconst { LoyaltyCurrentLevelBadge } = lazy(\n () =>\n import(\n /* webpackChunkName: \"LoyaltyCurrentLevelBadge\" */ 'newcomponents/Shared/account/LoyaltyCurrentLevelBadge'\n )\n);\n\nconst { FavoriteOnHeaderPopup } = lazy(\n () =>\n import(\n /* webpackChunkName: \"favorite-on-header-popup\" */ './_partials/Favorites/FavoriteOnHeaderPopup'\n )\n);\n\nconst { BankIDIntegration } = lazy(\n () =>\n import(\n /* webpackChunkName: \"bank-id-integration\" */ './views/Verification/BankIDIntegration'\n )\n);\n\nconst { ChangeTheme } = lazy(\n () =>\n import(\n /* webpackChunkName: \"change-theme-switcher\" */ 'newcomponents/Shared/account/ChangeTheme'\n )\n);\n\nconst { ProfileInfo } = lazy(\n () =>\n import(/* webpackChunkName: \"accounts-pages\" */ 'components/ProfileInfo')\n);\n\nconst { CryptoWallets } = lazy(\n () =>\n import(\n /* webpackChunkName: \"crypto-wallets\" */ 'newcomponents/Shared/account/CryptoWallets'\n )\n);\n\nconst { Login } = lazy(\n () => import(/* webpackChunkName: \"accounts-login\" */ 'components/Login')\n);\n\nconst { RegisterOnPage } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-register-on-page\" */ './views/RegisterOnPage'\n )\n);\n\nconst { VerifyEmailModal } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-verify-email-modal\" */ './views/Verification/VerifyEmailModal'\n )\n);\n\nconst { CheckEmailModal } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-check-email-modal\" */ './views/Verification/CheckEmailModal'\n )\n);\n\nconst { DocumentUploadModal } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-tru-narrative-document-upload-modal\" */ 'components/DocumentUploadModal'\n )\n);\n\nconst { CounterOfferModal } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-counter-offer-modal\" */ 'components/CounterOfferModal'\n )\n);\n\nconst { LoginFreeze } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-login-freeze\" */ 'newcomponents/Shared/LoginFreeze'\n )\n);\n\nconst { RemainingSessionDurationModal } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-remaining-session-duration-modal\" */ 'newcomponents/Shared/account/RemainingSessionDurationModal'\n )\n);\n\nconst { PlayerInfo } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-player-info-modal\" */ 'components/PlayerInfo'\n )\n);\n\nconst { AdditionalInfoPopup } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-additional-info-popup\" */ 'newcomponents/Shared/account/AdditionalInfoPopup'\n )\n);\n\nconst { AuthSection } = lazy(\n () =>\n import(\n /* webpackChunkName: \"accounts-auth-section\" */ './_partials/AuthSection'\n )\n);\n\nconst { AutoidentVerificationModal } = lazy(\n () =>\n import(\n /* webpackChunkName: \"account-autoident-verification-modal\" */ 'components/AutoidentVerificationModal'\n )\n);\n\nconst { TermsAndConditions } = lazy(\n () =>\n import(\n /* webpackChunkName: \"terms-and-conditions\" */ './_partials/TermsAndConditions'\n )\n);\n\nconst { NotVerifiedMessage } = lazy(\n () =>\n import(\n /* webpackChunkName: \"not-verified-message\" */ './_partials/NotVerifiedMessage'\n )\n);\n\nconst { VerifyAccountModalRedirect } = lazy(\n () =>\n import(\n /* webpackChunkName: \"verify-account-modal\" */ './_partials/components/VerifyAccountModalRedirect'\n )\n);\n\nconst { AccountGenericModals } = lazy(\n () =>\n import(\n /* webpackChunkName: \"account-generic-modals\" */ 'elements/Accounts/modals/AccountGenericModals'\n )\n);\n\nconst { NotificationCards } = lazy(\n () =>\n import(\n /* webpackChunkName: \"notification-cashback-cards\" */ 'newcomponents/UI/Notification/NotificationCards'\n )\n);\n\nconst { PlayerActivityChecker } = lazy(\n () =>\n import(\n /* webpackChunkName: \"player-activity-checker\" */ 'newcomponents/Shared/account/PlayerActivityChecker'\n )\n);\n\nexport type TAccountConfigs = {\n accountLayout: EAccountWidgetLayoutType;\n slideView?: 'signin' | 'signup';\n horizontalView?: boolean;\n accountSignInButtonType?: string;\n accountSignInButtonStyle?: string;\n accountSignInButtonIcon?: string;\n accountSignUpButtonType?: string;\n accountSignUpButtonStyle?: string;\n accountSignUpButtonIcon?: string;\n accountPrevButtonStyle?: string;\n accountNextButtonStyle?: string;\n accountButtonsDistance?: string | number;\n mounted: boolean;\n signInBtn?: boolean;\n signUpBtn?: boolean;\n favorite?: string;\n favoriteTabs?: EFavoriteTabsTypes[];\n fromIframe?: boolean;\n signInPopupAlias?: string;\n signUpPopupAlias?: string;\n inPopup?: boolean;\n};\n\ntype Props = {\n configs: TAccountConfigs;\n};\n\nexport const Accounts = ({ configs }: Props): ReactElement | null => {\n const {\n accountLayout: _layout,\n slideView,\n horizontalView,\n accountSignInButtonStyle,\n accountSignUpButtonStyle,\n accountButtonsDistance,\n mounted,\n accountPrevButtonStyle,\n accountNextButtonStyle,\n signInBtn,\n signUpBtn,\n favorite,\n favoriteTabs: _favoriteTabs,\n fromIframe,\n signInPopupAlias,\n signUpPopupAlias,\n inPopup\n } = configs;\n\n useLoginLimit();\n useRestoreLogin();\n useUserNotifications();\n useFetchSectionsData();\n useSeonIntegration();\n useCheckDepositReturnUrl();\n useHandlePreferredLanguage();\n\n const { accountParams } = useFetchAccountParams();\n\n const layout = _layout || 'popup';\n\n const favoriteTabs: EFavoriteTabsTypes[] | undefined = _favoriteTabs?.map(\n item => String(item) as EFavoriteTabsTypes\n );\n\n const [showBankModal, setShowBankModal] = useState(false);\n const [visible, setVisible] = useState(false);\n const [routeHistory, setRouteHistory] = useState([]);\n const [onPageCurrentSlide, setOnPageCurrentSlide] = useState<\n 'signin' | 'signup' | undefined\n >(layout === EAccountWidgetLayoutType.onPage ? slideView : undefined);\n\n const { t } = useTranslation();\n const history = useHistory();\n const dispatch = useDispatch();\n\n const queries = useSearchParams();\n const accountLogout = useAccountLogout();\n const restoreLogin = useRestoreLogin(true);\n\n const isLoggedIn = useSelector(getIsLoggedIn);\n const isRegFinished = useSelector(getRegIsFinished);\n const user = useSelector(getUser);\n const showAdditionalInfo = useSelector(getShowAdditionalInfo);\n const pendingSuperBets = useSelector(getPendingSuperBets);\n const regFieldsData = useSelector(getRegFieldData);\n const userOptIns = useSelector(getUserOptIns);\n const shouldGetOptIns = useSelector(getShouldGetUserOptIns);\n const remainingSessionDuration = useSelector(getRemainingSessionDuration);\n const partnerConfigs = useSelector(getPartnerConfigs) as PartnerConfig;\n const accountSections = useSelector(getSectionsData);\n const cashbackNotifications = useSelector(getCashbackNotifications);\n const loyaltyNotifications = useSelector(getLoyaltyNotifications);\n const { accountSettings } = useSelector(getPersonalizedGenericSettings);\n\n const isLoyaltyV2 =\n partnerConfigs?.is_using_loyalty_program && partnerConfigs.is_loyalty_v2;\n\n const additionalInfoPopupInLS = JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'ADDITIONAL_INFO_POPUP'))\n );\n\n const auth_data_x =\n JSON.parse(LocalStorage.getItem(storageKeyName('account', 'AUTH_DATA'))) &&\n !SpringConfigs.MOCKED_DATA;\n\n const customPopupAlias = LocalStorage.getItem(\n storageKeyName('account', 'POPUP_OPEN')\n );\n\n const showAdditionalInfoLS = JSON.parse(\n LocalStorage.getItem(storageKeyName('customPopup', 'SHOW_ADDITIONAL_INFO'))\n );\n\n const customPopupOpen =\n customPopupAlias !== 'null' && customPopupAlias !== 'undefined';\n\n window.hasPopup = signInPopupAlias || signUpPopupAlias;\n\n const isInPopup = inPopup === undefined ? false : inPopup;\n\n const openCustomPopup =\n Object.keys(queries).length > 1 &&\n queries.accounts &&\n ((queries.login && signInPopupAlias) ||\n (queries.register && signUpPopupAlias)) &&\n !queries.mode &&\n !queries.multiview &&\n !queries.preview;\n\n useEffect(() => {\n const authData = JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'AUTH_DATA'))\n );\n\n if (openCustomPopup && !authData && !isInPopup) {\n const casinoGameUrl = JSON.parse(\n LocalStorage.getItem(storageKeyName('casino', 'SELECTED_GAME_URL'))\n );\n\n const prevRoutes =\n JSON.parse(\n SessionStorage.getItem(storageKeyName('app', 'PREVIOUS_URL'))\n ) || {};\n\n const callBackUrl = casinoGameUrl\n ? `${casinoGameUrl.pathname}?${casinoGameUrl.search}`\n : prevRoutes?.login\n ? prevRoutes?.login\n : '';\n\n if (queries.login && signInPopupAlias) {\n LocalStorage.setItem(\n storageKeyName('account', 'POPUP_OPEN'),\n signInPopupAlias\n );\n\n LocalStorage.removeItem(storageKeyName('casino', 'SELECTED_GAME_URL'));\n window.openPopup?.(signInPopupAlias, true, callBackUrl);\n }\n\n if (queries.register && signUpPopupAlias) {\n LocalStorage.setItem(\n storageKeyName('account', 'POPUP_OPEN'),\n signUpPopupAlias\n );\n window.openPopup?.(signUpPopupAlias, true, callBackUrl);\n }\n }\n }, [openCustomPopup, isLoggedIn, user.pending]);\n\n useEffect(() => {\n const authData = JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'AUTH_DATA'))\n );\n\n if (!authData && !queries.accounts) {\n LocalStorage.removeItem(storageKeyName('casino', 'SELECTED_GAME_URL'));\n }\n }, [isLoggedIn, queries.accounts]);\n\n useEffect(() => {\n if (typeof window.selfExclude !== 'function') {\n window.selfExclude = (\n periodObj = {\n value: 1,\n label: '1 days',\n type: 'days',\n amount: 1,\n show: true,\n name: 'days-1',\n user,\n reason: '11'\n },\n exclusionType = 1\n ) => {\n setSelfExclusion(periodObj, exclusionType, accountLogout);\n };\n }\n\n if (signInPopupAlias || signUpPopupAlias) {\n window.addEventListener('message', handleCustomPopupClose, false);\n }\n\n return () => {\n window.removeEventListener('message', handleCustomPopupClose);\n };\n }, []);\n\n useEffect(() => {\n if (isLoggedIn) {\n const searchObject = QueryString.parse(window.location.search, {\n ignoreQueryPrefix: true\n });\n\n if (searchObject && searchObject?.kycaid) {\n history.replace('/', {});\n showToastSuccess(t('account.success'));\n }\n }\n\n if (!isLoggedIn) {\n dispatch(resetPayments());\n dispatch(setPaymentDepositPromo(null));\n }\n }, [isLoggedIn]);\n\n useLayoutEffect(() => {\n if (window.refreshWhenLoggedIn || (customPopupOpen && isInPopup)) {\n const afterSignIn = new AfterSignIn();\n afterSignIn.setFinalExecutionCallback(() => {\n history.push(\n addQueryInString(getSavedLocation(undefined, true, true, true), {\n login: undefined,\n register: undefined\n })\n );\n\n if (window.refreshWhenLoggedIn) {\n GLOBALS.casino.blockCasinoGamePopupOpening = true;\n }\n\n if (customPopupOpen && isInPopup) {\n window.parent.closePopup(customPopupAlias);\n\n LocalStorage.removeItem(storageKeyName('account', 'POPUP_OPEN'));\n\n if (window.refreshWhenLoggedIn) {\n setTimeout(() => {\n window.parent.location.reload();\n }, 0);\n }\n } else {\n if (window.refreshWhenLoggedIn) {\n window.location.reload();\n }\n }\n });\n }\n }, []);\n\n useEffect(() => {\n if (\n isLoggedIn &&\n checkUserStatus.bankIdIntergration(user) &&\n (SpringConfigs.IS_BANK_ID_INTEGRATION_ENABLED ||\n +accountParams?.diiaVerification === 1)\n ) {\n setShowBankModal(true);\n } else {\n setShowBankModal(false);\n }\n }, [isLoggedIn, user.active_step, user.active_step_state]);\n\n useEffect(() => {\n if (isMobile()) {\n if (queries.accounts) {\n document.documentElement.classList.add(\n 'accountModal--html--overflow--hidden'\n );\n document.body.classList.add('accountModal--html--overflow--hidden');\n } else {\n document.documentElement.classList.remove(\n 'accountModal--html--overflow--hidden'\n );\n document.body.classList.remove('accountModal--html--overflow--hidden');\n }\n }\n }, [queries.accounts]);\n\n const showCounterOfferModals = useMemo(() => {\n return !(\n pendingSuperBets === null || Object.keys(pendingSuperBets).length === 0\n );\n }, [pendingSuperBets]);\n\n const onClose = useCallback((val: boolean) => {\n setVisible(val);\n LocalStorage.removeItem(\n storageKeyName('account', 'OPEN_CHECK_EMAIL_MODAL')\n );\n }, []);\n\n const sessionVisibilityRefresh = JSON.parse(\n LocalStorage.getItem(\n storageKeyName('account', 'SESSION_VISIBILITY_REFRESH')\n )\n );\n\n if (\n window.refreshWhenLoggedIn &&\n SpringConfigs.ADD_INFO_AFTER_LOGIN &&\n showAdditionalInfo\n ) {\n LocalStorage.setItem(\n storageKeyName('account', 'SESSION_VISIBILITY_REFRESH'),\n JSON.stringify(1)\n );\n }\n\n useEffect(() => {\n if (isMobile()) {\n import(\n /* webpackChunkName: \"accounts-mobile-layout\" */ /* webpackPreload: true */ './layout/Mobile'\n );\n } else {\n import(\n /* webpackChunkName: \"accounts-desktop-layout\" */ /* webpackPreload: true */ './layout/Desktop'\n );\n }\n }, []);\n\n useEffect(() => {\n const authData = JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'AUTH_DATA'))\n );\n\n if (!authData?.auth_token) {\n dispatch(removeUserData());\n dispatch(setClientGamingStateInfo(null));\n\n LocalStorage.removeItem(\n storageKeyName('account', 'LOGIN_LIMIT_START_TIME')\n );\n }\n }, []);\n\n useEffect(() => {\n if (\n SpringConfigs.IFRAME_SPORTSBOOK &&\n queries.user_id &&\n queries.auth_token\n ) {\n restoreLogin({\n auth_token: queries.auth_token,\n user_id: queries.user_id\n });\n }\n }, [queries.user_id, queries.auth_token]);\n\n const showDocumentUploadModal =\n (user.active_step === userActiveStep.USER_ACTIVE_STEP_VALUE_27 &&\n user.active_step_state ===\n userActiveStep.USER_ACTIVE_STEP_STATE_VALUE_5) ||\n (SpringConfigs.SELFIE_WITH_DOCUMENTS && !user.is_verified);\n\n const showAutoidentVerificationModal = useMemo(() => {\n const checkAutoident =\n !!(\n SpringConfigs.MGA_ACCOUNT_TYPE || SpringConfigs.CANADIAN_ACCOUNT_TYPE\n ) &&\n user.active_step === userActiveStep.USER_ACTIVE_STEP_VALUE_33 &&\n user.active_step_state === userActiveStep.USER_ACTIVE_STEP_STATE_VALUE_5;\n\n dispatch(setShowAutoidentVerificationModal(checkAutoident));\n\n return checkAutoident;\n }, [user]);\n\n const showVerifyAccountModal =\n SpringConfigs.SHOW_VERIFY_ACCOUNT_MODAL &&\n user.active_step === userActiveStep.USER_ACTIVE_STEP_VALUE_50 &&\n user.active_step_state === userActiveStep.USER_ACTIVE_STEP_STATE_VALUE_5;\n\n const showNotVerifiedMessage =\n (SpringConfigs.SHOW_BRAZIL_USER_UNVERIFIED_MESSAGE &&\n user.active_step_state ===\n userActiveStep.USER_ACTIVE_STEP_STATE_VALUE_5 &&\n user.active_step === userActiveStep.USER_ACTIVE_STEP_VALUE_41) ||\n (SpringConfigs.SHOW_USER_UNVERIFIED_MESSAGE &&\n user.active_step_state ===\n userActiveStep.USER_ACTIVE_STEP_STATE_VALUE_5 &&\n user.active_step === userActiveStep.USER_ACTIVE_STEP_VALUE_40) ||\n (Boolean(Number(accountParams?.accountVerificationReminder)) &&\n !user.is_verified);\n\n useEffect(() => {\n if (isLoggedIn && !userOptIns && shouldGetOptIns) {\n getPlayerOptIns((resp: UserOptInsResponse) => {\n if (resp && resp.details.length) {\n dispatch(setUserOptIns(resp.details));\n }\n });\n }\n }, [isLoggedIn, userOptIns, shouldGetOptIns]);\n\n useEffect(() => {\n if (queries.accounts) {\n queries.login &&\n !routeHistory.includes('login') &&\n setRouteHistory(prev => [...prev, 'login']);\n queries.register &&\n !routeHistory.includes('register') &&\n setRouteHistory(prev => [...prev, 'register']);\n }\n }, [queries.accounts]);\n\n useEffect(() => {\n if (isMobile() && queries.login) {\n import(\n /* webpackChunkName: \"accounts-nested-modal-login\" */ 'components/Login/Nested'\n );\n import(/* webpackChunkName: \"login\" */ './views/Login');\n }\n }, [routeHistory, queries.accounts]);\n\n useEffect(() => {\n if (!SpringConfigs.ACCOUNT_REGISTRATION_JSON_PATH && !regFieldsData) {\n dispatch(setRegField(RegFieldsDefaultsJson));\n\n return;\n }\n\n !regFieldsData &&\n getAccountJson(SpringConfigs.ACCOUNT_REGISTRATION_JSON_PATH)\n .then(data => {\n dispatch(setRegField(data));\n })\n .catch(() => {\n dispatch(setRegField(RegFieldsDefaultsJson));\n });\n }, [queries.register, onPageCurrentSlide]);\n\n const termsAndConditionsShowModal = useMemo(() => {\n const userVersion = Number(user?.terms_and_conditions_version);\n const currentVersion = Number(accountParams?.tcVersion);\n\n return (\n +accountParams?.termsConditionsCustom === 1 &&\n userVersion < currentVersion &&\n SpringConfigs.TERMS_POPUP_LINK?.length\n );\n }, [\n user?.terms_and_conditions_version,\n accountParams?.tcVersion,\n accountParams?.termsConditionsCustom\n ]);\n\n useEffect(() => {\n isRegFinished && handleSetVisible();\n }, [isRegFinished]);\n\n const handleSetVisible = () => {\n const checkEmailModal = JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'OPEN_CHECK_EMAIL_MODAL'))\n );\n\n if (checkEmailModal) {\n setVisible(true);\n }\n };\n\n const handleCustomPopupClose = (event: MessageEvent) => {\n if (event.data.action !== 'closePopup') {\n return;\n }\n\n const authData = JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'AUTH_DATA'))\n );\n\n if (event.data.url && authData) {\n LocalStorage.removeItem(storageKeyName('account', 'POPUP_OPEN'));\n history.push(event.data.url);\n\n return;\n }\n\n if (!accountParams?.autologinX) {\n history.push(\n updateQuery({\n accounts: undefined,\n login: undefined,\n register: undefined\n })\n );\n handleSetVisible();\n }\n\n const location = window.location.search;\n\n if (\n location.includes('accounts=') &&\n (location.includes('login=') || location.includes('register='))\n ) {\n LocalStorage.removeItem(storageKeyName('account', 'POPUP_OPEN'));\n history.push(\n updateQuery({\n accounts: undefined,\n login: undefined,\n register: undefined\n })\n );\n }\n };\n\n const shouldShowPlayerInfo = () => {\n if (!accountSettings) {\n return false;\n }\n\n if (!accountSettings?.playerInfoShowDate) {\n return true;\n }\n\n const today = dayjs();\n const playerInfoShowDate = dayjs(\n accountSettings.playerInfoShowDate,\n 'YYYY/MM/DD HH:mm:ss'\n );\n\n const diffInHours = today.diff(playerInfoShowDate, 'hour', true);\n\n if (!dayjs(playerInfoShowDate).isValid() || diffInHours < 0) {\n return true;\n }\n\n return diffInHours >= HOUR_PER_DAY;\n };\n\n if (\n SpringConfigs.SHOW_ACCOUNT_ADDITIONAL_INFO_MODAL &&\n isLoggedIn &&\n additionalInfoPopupInLS == null\n ) {\n LocalStorage.setItem(\n storageKeyName('account', 'ADDITIONAL_INFO_POPUP'),\n JSON.stringify({\n count: 1\n })\n );\n }\n\n if (fromIframe) {\n return null;\n }\n\n return (\n <>\n {!!Number(favorite) && (\n \n \n \n )}\n {SpringConfigs.GPS_TRACKING_ENABLED && (\n \n \n \n )}\n {isLoggedIn && !user.pending && accountSections?.myProfile && (\n <>\n {SpringConfigs.IOVATION_ENABLED &&\n !SpringConfigs.IOVATION_HIDE_UPLOAD &&\n showDocumentUploadModal && (\n \n \n \n )}\n {showVerifyAccountModal && (\n \n \n \n )}\n {SpringConfigs.DOC_UPLOAD_TRU_NARRATIVE &&\n showDocumentUploadModal && (\n \n \n \n )}\n {SpringConfigs.LOGIN_FREEZE && (\n \n \n \n )}\n {SpringConfigs.PLAYER_ACTIVITY_CHECK && (\n \n \n \n )}\n {((SpringConfigs.ADD_INFO_AFTER_LOGIN &&\n (showAdditionalInfo || showAdditionalInfoLS)) ||\n sessionVisibilityRefresh) &&\n shouldShowPlayerInfo() && (\n \n \n \n )}\n\n {SpringConfigs.SHOW_ACCOUNT_ADDITIONAL_INFO_MODAL &&\n additionalInfoPopupInLS?.count === 1 && (\n \n \n \n )}\n\n {showAutoidentVerificationModal && (\n \n \n \n )}\n {showCounterOfferModals && (\n \n \n \n )}\n {termsAndConditionsShowModal && (\n \n \n \n )}\n {showNotVerifiedMessage ? (\n \n \n \n ) : null}\n \n )}\n {auth_data_x && !isInPopup ? (\n \n {!!partnerConfigs?.secondary_wallet_currencies?.length && (\n \n \n \n )}\n \n \n \n \n ) : onPageCurrentSlide === 'signin' ? (\n
\n }>\n \n \n {SpringConfigs.THEME_SWITCHER && !isMobile() && !isInPopup && (\n }>\n \n \n )}\n
\n ) : onPageCurrentSlide === 'signup' && !openCustomPopup ? (\n
\n }>\n \n \n
\n ) : (\n }>\n \n \n )}\n {mounted && !openCustomPopup && !customPopupOpen && (\n \n {isMobile() &&\n !openCustomPopup &&\n Object.keys(queries).length > 1 &&\n queries.accounts &&\n !customPopupOpen && (\n \n )}\n \n )}\n\n {!openCustomPopup &&\n !isMobile() &&\n Object.keys(queries).length > 1 &&\n queries.accounts &&\n !customPopupOpen && (\n \n )}\n \n \n \n\n {/* portal here */}\n\n {showBankModal && (\n \n setShowBankModal(false)}\n />\n \n )}\n\n {visible && (\n \n \n \n )}\n\n {!!remainingSessionDuration?.isOpen && (\n \n \n \n )}\n\n {queries.accounts && (\n \n \n \n )}\n\n {isLoggedIn &&\n (Boolean(loyaltyNotifications?.length) ||\n Boolean(cashbackNotifications?.length)) && (\n \n \n \n )}\n\n {isLoggedIn && isLoyaltyV2 && (\n \n \n \n \n \n )}\n \n );\n};\n","import { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { getAccountJson } from 'services/account-settings';\nimport { setSectionsData } from 'store/actions/app-data';\nimport { getSectionsData } from 'store/selectors/app-data';\nimport { getIsLoggedIn } from 'store/selectors/user-data';\n\nexport const useFetchSectionsData = (): void => {\n const dispatch = useDispatch();\n const sectionsData = useSelector(getSectionsData);\n const isLoggedIn = useSelector(getIsLoggedIn);\n\n useEffect(() => {\n if (isLoggedIn) {\n if (!sectionsData?.sections && SpringConfigs.SECTIONS_JSON) {\n getAccountJson(SpringConfigs.SECTIONS_JSON)\n .then(data => {\n dispatch(setSectionsData(data));\n })\n .catch(() => {\n dispatch(setSectionsData([]));\n });\n }\n\n if (!SpringConfigs.SECTIONS_JSON) {\n dispatch(setSectionsData([]));\n }\n }\n }, [isLoggedIn]);\n};\n","import { useEffect } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { appendScript } from 'utils/bom-dom-manipulation/append-script';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { setSeonSessionData } from 'store/actions/app-data';\n\nexport const useSeonIntegration = (): void => {\n const dispatch = useDispatch();\n\n useEffect(() => {\n if (SpringConfigs.SEON_INTEGRATION && !window.seon) {\n appendScript(\n 'https://cdn.deviceinf.com/js/v5/agent.js',\n 'seonScript',\n () => {\n if (window.seon) {\n window.seon?.getBase64Session((data: any) => {\n if (data) {\n dispatch(setSeonSessionData(data));\n } else {\n console.error('Failed to retrieve session data');\n }\n });\n }\n }\n );\n }\n }, []);\n};\n","import { useLayoutEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport qs from 'qs';\nimport { depositSuccessDataTracking } from 'utils/account/payment';\nimport LocalStorage from 'utils/bom-dom-manipulation/local-storage';\nimport {\n DepositStatusMessages,\n StatusUrlNames\n} from 'utils/constants/account/payment';\nimport { showToastError } from 'utils/generic/show-toast-error';\nimport { showToastWarning } from 'utils/generic/show-toast-warning';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { appendCustomCode } from 'utils/other/customCode';\nimport { AppendCustomCodes } from 'interfaces/generic';\nimport { addQuery } from 'components/QueryRoute';\nimport { useFetchAccountParams } from 'newhooks/account/useFetchAccountParams';\nimport { getIsLoggedIn, getUser } from 'store/selectors/user-data';\n\nexport const useCheckDepositReturnUrl = () => {\n const history = useHistory();\n const { t } = useTranslation();\n const isLoggedIn = useSelector(getIsLoggedIn);\n const user: Record = useSelector(getUser);\n const { accountParams } = useFetchAccountParams();\n\n const customCode = () => {\n if (\n accountParams &&\n +accountParams[AppendCustomCodes.APPEND_CUSTOM_CODE_DEPOSIT_FAIL]\n ) {\n const paymentInfo = JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'PAYMENT_DATA'))\n );\n\n appendCustomCode(\n accountParams[AppendCustomCodes.CUSTOM_CODE_DEPOSIT_FAIL],\n {\n ...user,\n ...paymentInfo\n }\n );\n }\n };\n\n useLayoutEffect(() => {\n if (isLoggedIn) {\n const searchObject = qs.parse(history.location.search, {\n ignoreQueryPrefix: true\n });\n\n if (searchObject && searchObject.message) {\n switch (searchObject.message) {\n case StatusUrlNames.CANCEL:\n showToastError(t(`account.${DepositStatusMessages.CANCEL}`));\n customCode();\n break;\n case StatusUrlNames.FAIL:\n showToastError(t(`account.${DepositStatusMessages.FAIL}`));\n customCode();\n break;\n case StatusUrlNames.PENDING:\n showToastWarning(t(`account.${DepositStatusMessages.PENDING}`));\n break;\n case StatusUrlNames.SUCCESS:\n depositSuccessDataTracking(user);\n\n LocalStorage.setItem(\n storageKeyName('account', 'DEPOSIT_AMOUNT'),\n 'true'\n );\n break;\n default:\n showToastWarning(searchObject.message as string);\n break;\n }\n\n history.push(\n addQuery({\n message: undefined\n })\n );\n }\n }\n }, [isLoggedIn, accountParams]);\n};\n","import { ReactElement, Suspense, useCallback } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { lazy } from 'utils/generic/lazy';\nimport { isMobile } from 'utils/is-mobile';\nimport { ECasinoGameMode, ICasinoCachedGames } from 'interfaces/casino-data';\nimport { AfterSignIn } from 'services/afterSignIn';\nimport { UtilsCasino } from 'newelements/Casino/GameSingleViewRenderer/__partials/GameViewContainer/utils';\nimport { Loading } from 'components/Loading';\nimport { addQuery, getSavedLocation, updateQuery } from 'components/QueryRoute';\nimport { useCasinoSingleGameClose } from 'hooks/casino/useCasinoSingleGameClose';\nimport { useSearchParams } from 'hooks/useSearchParams';\nimport { useFetchAccountParams } from 'newhooks/account/useFetchAccountParams';\nimport { AccountsModalProvider } from 'providers/AccountsModalProvider';\nimport {\n resetPostGridHiddenParams,\n setAfterSignInActions,\n setForgotPasswordOpen,\n setForgotUsernameOpen,\n setHigherZIndex\n} from 'store/actions/app-data';\nimport {\n setFastRegData,\n setShowCancelRegisterPopup\n} from 'store/actions/user-data';\nimport {\n getForgotPasswordOpen,\n getForgotUsernameOpen,\n getHigherZIndex\n} from 'store/selectors/app-data';\nimport { getActiveGames } from 'store/selectors/new-casino';\nimport { getIsLoggedIn } from 'store/selectors/user-data';\n\nconst { MobileLayout } = lazy(\n () => import(/* webpackChunkName: \"accounts-mobile-layout\" */ './Mobile')\n);\n\nconst { DesktopLayout } = lazy(\n () => import(/* webpackChunkName: \"accounts-desktop-layout\" */ './Desktop')\n);\n\ntype Props = {\n children: ReactElement;\n};\n\nexport const AccountsLayout = (props: Props): ReactElement => {\n const history = useHistory();\n const dispatch = useDispatch();\n const { accountParams } = useFetchAccountParams();\n const higherZindex = useSelector(getHigherZIndex);\n const { register } = useSearchParams();\n const forgotPass = useSelector(getForgotPasswordOpen);\n const forgotUsername = useSelector(getForgotUsernameOpen);\n const activeGames = useSelector(getActiveGames) as ICasinoCachedGames;\n const { handleCloseClick } = useCasinoSingleGameClose();\n const isLoggedIn = useSelector(getIsLoggedIn);\n\n const closeModal = useCallback(() => {\n const firstActiveGame = Object.values(activeGames)[0];\n\n if (\n firstActiveGame &&\n (!firstActiveGame.data.types.funMode || !SpringConfigs.CASINO_FUN_MODE)\n ) {\n handleCloseClick();\n\n return;\n }\n\n if (forgotPass) {\n dispatch(setForgotPasswordOpen(false));\n }\n\n if (forgotUsername) {\n dispatch(setForgotUsernameOpen(false));\n }\n\n if (higherZindex) {\n dispatch(setHigherZIndex(false));\n }\n\n if (register && Number(accountParams?.exitConfirmPopup)) {\n dispatch(setShowCancelRegisterPopup(true));\n } else {\n const location = decodeURI(getSavedLocation());\n\n if (location.includes('accounts=') && !location.includes('login=')) {\n history.push(updateQuery({ accounts: undefined, login: undefined }));\n\n return;\n }\n\n const fullPath = `${history.location.pathname}${history.location.search}`;\n const decodedPath = decodeURI(fullPath);\n\n if (location === decodedPath) {\n const searchParams = Object.fromEntries(\n new URLSearchParams(window.location.search)\n );\n\n if (location.includes('multiview=')) {\n const gamesInfo =\n UtilsCasino.extractGameInfoFromSearchParams(searchParams);\n\n const queryToUpdate = addQuery({\n [UtilsCasino.encodeGameIdWithPrefix(\n gamesInfo[0].order,\n gamesInfo[0].id\n )]: ECasinoGameMode.FUN,\n [UtilsCasino.encodeGameIdWithPrefix(\n gamesInfo[1].order,\n gamesInfo[1].id\n )]: ECasinoGameMode.FUN,\n accounts: undefined,\n login: undefined\n });\n\n history.push({\n ...queryToUpdate,\n search: UtilsCasino.normalizeStringifiedQuery(queryToUpdate.search)\n });\n } else {\n const query = {\n accounts: undefined,\n login: undefined,\n ...(searchParams.mode === ECasinoGameMode.REAL && !isLoggedIn\n ? { mode: ECasinoGameMode.FUN }\n : {})\n };\n\n history.push(addQuery(query));\n }\n } else {\n history.push(location);\n }\n\n SpringConfigs.POSTGRID_API_KEY && dispatch(resetPostGridHiddenParams());\n dispatch(setFastRegData(null));\n }\n\n const afterSignIn = new AfterSignIn();\n afterSignIn.removeActions();\n dispatch(setAfterSignInActions({}));\n }, [accountParams, register, higherZindex, activeGames]);\n\n return (\n \n {isMobile() && (\n }>\n {props.children}\n \n )}\n {!isMobile() && (\n \n \n {props.children}\n \n \n )}\n \n );\n};\n","import { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport { deleteCookie } from 'utils/bom-dom-manipulation/cookies';\nimport LS from 'utils/bom-dom-manipulation/local-storage';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { loginState } from 'utils/sportsbook/api-post-message-sender';\nimport { logout } from 'services/authentication';\nimport { FavoritePersonalization } from 'services/favorite-personalization';\nimport { addQueryInString, getSavedLocation } from 'components/QueryRoute';\nimport { setClientGamingStateInfo, setOneSignalSubId } from 'store/actions';\nimport { setUserNotifications } from 'store/actions/sport-data';\nimport { removeUserData, setUserOptIns } from 'store/actions/user-data';\nimport { getFirebaseToken, getOneSignalSubId } from 'store/selectors/app-data';\n\nexport const useAccountLogout = (params?: {\n source: number;\n}): ((shouldRedirect?: boolean) => void) => {\n const { clearDataFromStorage } = FavoritePersonalization();\n\n const dispatch = useDispatch();\n const history = useHistory();\n\n const firebaseToken = useSelector(getFirebaseToken);\n const oneSignalSubId = useSelector(getOneSignalSubId);\n\n const removeUser = (shouldRedirect?: boolean) => {\n shouldRedirect &&\n history.push(\n addQueryInString(getSavedLocation(), {\n accounts: undefined,\n login: undefined,\n register: undefined\n })\n );\n dispatch(removeUserData());\n dispatch(setUserOptIns(null));\n dispatch(setUserNotifications({}));\n dispatch(setClientGamingStateInfo(null));\n\n LS.removeItem(storageKeyName('account', 'LOGIN_LIMIT_START_TIME'));\n LS.removeItem(storageKeyName('account', 'LOGIN_LIMIT_POPUP_START_TIME'));\n LS.removeItem(storageKeyName('account', 'IS_LOGOUT'));\n deleteCookie('sbuser');\n deleteCookie('loginCredentials');\n LS.removeItem(storageKeyName('account', 'ADDITIONAL_INFO_POPUP'));\n LS.removeItem(storageKeyName('account', 'PARENT_ACCOUNT_CURRENCY'));\n\n if (window.refreshWhenLoggedIn) {\n window.mustRefreshForSessionVisibility = true;\n window.location.reload();\n }\n\n if (SpringConfigs.IFRAME_SPORTSBOOK) {\n loginState('loggedOut');\n }\n\n if (SpringConfigs.WRAPPER_APP && window.median?.auth) {\n window.median.auth.delete();\n }\n\n if (\n SpringConfigs.USER_PERSONALIZATION_ENABLED &&\n !SpringConfigs.MOCKED_DATA\n ) {\n clearDataFromStorage();\n }\n };\n\n return (shouldRedirect?: boolean) => {\n const additionalParams: {\n fcm_token?: string;\n subscription_id?: string;\n } = {};\n\n if (firebaseToken) {\n additionalParams.fcm_token = firebaseToken;\n }\n\n if (oneSignalSubId) {\n additionalParams.subscription_id = oneSignalSubId;\n dispatch(setOneSignalSubId(''));\n }\n\n logout(() => removeUser(shouldRedirect), {\n ...additionalParams,\n ...params\n });\n };\n};\n","import {\n MILLISECONDS_IN_SECOND,\n SECONDS_PER_MINUTE,\n setTimeOutGreatestValue\n} from 'utils/constants/dateInfo/time-numbers';\nimport { CommandNames } from 'utils/constants/swarm/swarm-command-names';\nimport { getGenericAccountCommand } from 'services/account-settings';\n\nconst durations: {\n [key: string]: ReturnType;\n} = {};\n\nexport const clearRemainingSessionDurations = (): void => {\n Object.keys(durations).forEach((timeout: string) => {\n clearTimeout(durations[timeout]);\n\n delete durations[timeout];\n });\n};\n\nexport const remainingSessionDuration = (\n configs: { [key: string]: number },\n callback: (type: string) => void\n): void => {\n const createTimer = (key: string, time: number) => {\n function longTimeout(callback: () => void, timeout: number) {\n if (timeout <= 0) {\n callback();\n } else {\n durations[key] = setTimeout(function () {\n longTimeout(callback, timeout - setTimeOutGreatestValue);\n }, Math.min(timeout, setTimeOutGreatestValue));\n }\n }\n\n longTimeout(function () {\n callback(key);\n clearRemainingSessionDurations();\n }, time * MILLISECONDS_IN_SECOND * SECONDS_PER_MINUTE);\n };\n\n getGenericAccountCommand(\n CommandNames.GET_REMAINING_SESSION_DURATION.toUpperCase(),\n ({ details }: { details: { [key: string]: number } }) => {\n const times = Object.values(details || {});\n\n if (times?.length) {\n const timer = Math.min(...times);\n\n Object.entries(details || {}).forEach(([key, time]) => {\n time === timer &&\n configs[key] &&\n !durations[key] &&\n createTimer(key, time);\n });\n }\n }\n );\n};\n","import { useCallback, useEffect, useMemo } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport qs from 'qs';\nimport { checkAndStoreFcmToken } from 'utils/account/push-notifications';\nimport { getCookie } from 'utils/bom-dom-manipulation/cookies';\nimport LocalStorage from 'utils/bom-dom-manipulation/local-storage';\nimport { getCookieLoginCredentials } from 'utils/bom-dom-manipulation/login-credentials';\nimport { sendPostMessage } from 'utils/bom-dom-manipulation/send-post-message-to-iframe';\nimport SessionStorage from 'utils/bom-dom-manipulation/session-storage';\nimport { VAIX_IFRAME_ID } from 'utils/constants/app/iframe-ids';\nimport { Key } from 'utils/constants/app/local-storage-keys';\nimport { SECONDS_PER_MINUTE } from 'utils/constants/dateInfo/time-numbers';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { appendCustomCode } from 'utils/other/customCode';\nimport { ProfileData } from 'interfaces/authentication';\nimport {\n clearRemainingSessionDurations,\n remainingSessionDuration\n} from 'services/account/get-remaining-session-duration';\nimport { removeUserFromStorage, restoreLogin } from 'services/authentication';\nimport { FavoritePersonalization } from 'services/favorite-personalization';\nimport { getUserAllNotifications } from 'services/sportsbook/notifications';\nimport { useAccountLogout } from './useAccountLogout';\nimport { useUpdateUser } from './useUpdateUser';\nimport { TStatus, useFaceIdLogin } from 'components/Login/hooks/useFaceIdLogin';\nimport {\n addQuery,\n saveCurrentLocation,\n updateQuery\n} from 'components/QueryRoute';\nimport { useFetchAccountParams } from 'newhooks/account/useFetchAccountParams';\nimport { setRemainingSessionDurationModal } from 'store/actions/app-data';\nimport { batchActions } from 'store/actions/batch';\nimport {\n removeUserData,\n setClientGamingStateInfo,\n setLoginLimit,\n setUserData,\n setUserLoggedIn\n} from 'store/actions/user-data';\nimport { getRegFieldData } from 'store/selectors/app-data';\nimport { getPartnerConfigs } from 'store/selectors/socket';\nimport { getIsLoggedIn, getRememberMe } from 'store/selectors/user-data';\n\nexport const useRestoreLogin = (\n isFunction = false,\n refreshWhenLoggedIn = false\n): Function => {\n const history = useHistory();\n const dispatch = useDispatch();\n const accountLogout = useAccountLogout();\n const isLoggedIn = useSelector(getIsLoggedIn);\n const regFieldsData = useSelector(getRegFieldData);\n // @Todo FIX_MY_TYPE create selector with reselect @todo-account\n const shouldRestore: boolean = useSelector(\n ({ socket }: { socket: { isConnected: boolean } }) => socket.isConnected\n );\n\n const partnerConfigs = useSelector(getPartnerConfigs);\n const { accountParams } = useFetchAccountParams();\n const rememberMeSelector = useSelector(getRememberMe);\n\n const { loginWithFaceId } = useFaceIdLogin();\n const { clearDataFromStorage } = FavoritePersonalization();\n\n const rememberMe = useMemo(() => {\n return +accountParams?.rememberMeTick === 0 || partnerConfigs?.single_login\n ? false\n : rememberMeSelector;\n }, [\n accountParams?.rememberMeTick,\n rememberMeSelector,\n partnerConfigs?.single_login\n ]);\n\n const { jwe_token } = getCookieLoginCredentials();\n\n const storeUser = useCallback(\n (userData: ProfileData) => {\n const customCodeAfterLogin: Key[] = [\n 'CUSTOM_CODE_REG_AFTER_REFRESH',\n 'CUSTOM_CODE_LOGIN_AFTER_REFRESH'\n ];\n\n customCodeAfterLogin.forEach(elem => {\n const elemCustomCode = LocalStorage.getItem(\n storageKeyName('account', elem)\n );\n\n if (elem) {\n appendCustomCode(elemCustomCode, userData);\n LocalStorage.removeItem(storageKeyName('account', elem as Key));\n }\n });\n\n userData.active_time_in_casino &&\n SessionStorage.setItem(\n storageKeyName('account', 'ACTIVE_TIME_IN_CASINO'),\n `${userData.active_time_in_casino}`\n );\n\n dispatch(\n batchActions(\n setUserData(userData),\n setUserLoggedIn(true),\n setLoginLimit((userData.session_duration || 0) * SECONDS_PER_MINUTE)\n )\n );\n\n checkAndStoreFcmToken();\n\n if (SpringConfigs.PUSH_NOTIFICATIONS_ENABLED) {\n getUserAllNotifications();\n }\n\n sendPostMessage(\n { type: 'userId', value: userData.user_id },\n VAIX_IFRAME_ID\n );\n LocalStorage.removeItem(\n storageKeyName('account', 'SWITCH_MULTI_ACCOUNT')\n );\n },\n [dispatch]\n );\n\n useEffect(() => {\n const checkRemainingSession =\n !isFunction && Number(accountParams?.sessionLimits || 0);\n\n if (checkRemainingSession) {\n if (!isLoggedIn) {\n clearRemainingSessionDurations();\n\n return;\n }\n\n remainingSessionDuration(\n {\n RemainingDailyDuration: Number(accountParams?.showDailySession || 0),\n RemainingWeeklyDuration: Number(\n accountParams?.showWeeklySession || 0\n ),\n RemainingMonthlyDuration: Number(\n accountParams?.showMonthlySession || 0\n )\n },\n (type: string) => {\n accountLogout(true);\n\n dispatch(\n setRemainingSessionDurationModal({\n type,\n isOpen: true\n })\n );\n }\n );\n }\n }, [accountParams, isLoggedIn, isFunction]);\n\n const deleteUser = () => {\n removeUserFromStorage();\n dispatch(removeUserData());\n dispatch(setClientGamingStateInfo(null));\n\n if (\n SpringConfigs.USER_PERSONALIZATION_ENABLED &&\n !SpringConfigs.MOCKED_DATA\n ) {\n clearDataFromStorage();\n }\n };\n\n const { updateUser } = useUpdateUser();\n\n const handle = useCallback(\n (credentials = null) => {\n const auth_data_x = JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'AUTH_DATA'))\n );\n\n const mustLogIn = auth_data_x?.auth_token;\n const mustLoginEncrypted = rememberMe && jwe_token;\n const queries =\n credentials ||\n qs.parse(history.location.search, {\n ignoreQueryPrefix: true\n });\n\n const personalId = regFieldsData?.find(\n field => field && field.formType === 'personalId'\n );\n\n const isOverridePersonalId = !!(\n personalId &&\n personalId.editForm.showOnEditProfile &&\n personalId.editForm.personalIdType === '2' &&\n personalId.editForm.sendCPFAsDocNumber === '1'\n );\n\n if (queries.auth_token) {\n const customAuthData = {\n auth_token: queries.auth_token as string\n };\n\n history.replace(\n addQuery({ auth_token: undefined, user_id: undefined })\n );\n\n restoreLogin(\n customAuthData,\n storeUser,\n updateUser,\n () => deleteUser(),\n isOverridePersonalId,\n true\n );\n } else if (mustLoginEncrypted) {\n restoreLogin(\n { jwe_token: jwe_token, auth_token: mustLogIn },\n storeUser,\n updateUser,\n () => deleteUser(),\n isOverridePersonalId,\n refreshWhenLoggedIn\n );\n } else if (mustLogIn) {\n restoreLogin(\n auth_data_x,\n storeUser,\n updateUser,\n () => deleteUser(),\n isOverridePersonalId,\n refreshWhenLoggedIn\n );\n }\n\n if (isLoggedIn || mustLogIn || mustLoginEncrypted) {\n if (queries.login || queries.register) {\n saveCurrentLocation();\n history.replace(updateQuery({ accounts: '*', profile: '*' }));\n }\n } else {\n if (queries.settings || queries.profile) {\n saveCurrentLocation();\n history.replace(updateQuery({ accounts: '*', login: '*' }));\n }\n }\n },\n [isLoggedIn, storeUser, rememberMe, regFieldsData]\n );\n\n useEffect(() => {\n if (regFieldsData && shouldRestore && !isFunction) {\n const isFirstLaunch = getCookie('isWrapperFirstLaunch');\n\n if (window.median?.auth && isFirstLaunch) {\n window.median.auth.status({\n callbackFunction: (data: TStatus) => {\n if (data && data.hasTouchId && data.hasSecret) {\n loginWithFaceId();\n } else {\n handle();\n }\n },\n prompt: 'PROMPT'\n });\n } else {\n handle();\n }\n }\n }, [shouldRestore, regFieldsData]);\n\n return handle;\n};\n","import { useCallback, useMemo } from 'react';\nimport { useDispatch } from 'react-redux';\nimport LocalStorage from 'utils/bom-dom-manipulation/local-storage';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { ProfileData } from 'interfaces/authentication';\nimport { useAccountLogout } from 'hooks/auth/useAccountLogout';\nimport { useFetchAccountParams } from 'newhooks/account/useFetchAccountParams';\nimport { setPendingSuperBets, updateUserData } from 'store/actions';\nimport { updateOpenBets } from 'store/actions/betslip';\n\ntype TArgs = {\n updateUser: (userData: ProfileData) => void;\n};\n\nexport const useUpdateUser = (): TArgs => {\n const dispatch = useDispatch();\n const { accountParams } = useFetchAccountParams();\n const accountLogout = useAccountLogout();\n\n const updateUser = useCallback(\n (userData: ProfileData) => {\n const switchMultiAccount = LocalStorage.getItem(\n storageKeyName('account', 'SWITCH_MULTI_ACCOUNT')\n );\n\n LocalStorage.removeItem(\n storageKeyName('account', 'SWITCH_MULTI_ACCOUNT')\n );\n\n if (userData) {\n if (userData.logout && !JSON.parse(switchMultiAccount)) {\n if (\n +accountParams?.singleSignIn ||\n SpringConfigs.IS_MULTI_ACCOUNT_DISABLED\n ) {\n accountLogout(true);\n }\n } else {\n dispatch(updateUserData(userData));\n\n if (userData.super_bet) {\n dispatch(setPendingSuperBets(userData.super_bet));\n dispatch(updateOpenBets());\n }\n }\n }\n },\n [accountParams?.singleSignIn]\n );\n\n const result = useMemo(\n () => ({\n updateUser\n }),\n [updateUser]\n );\n\n return result;\n};\n","import { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport LocalStorage from 'utils/bom-dom-manipulation/local-storage';\nimport { CommandNames } from 'utils/constants/swarm/swarm-command-names';\nimport { GLOBALS } from 'utils/generic/global-variables';\nimport RidGenerator from 'utils/swarm/rid-generator';\nimport { NotificationsTypes } from 'interfaces/authentication';\nimport { BetTicketMin } from 'interfaces/bet-data';\nimport { UserTriggeringRules } from 'interfaces/notifications';\nimport {\n authCommand,\n subscribeToUserNotifications,\n unsubscribeCommand\n} from 'services/authentication';\nimport {\n setCashbackNotifications,\n setLoyaltyNotifications\n} from 'store/actions';\nimport { updateBetTickets } from 'store/actions/betslip';\nimport { getIsLoggedIn, getUser } from 'store/selectors/user-data';\n\nexport const markAsReadNotification = (\n id: number | number[],\n list?: boolean\n) => {\n authCommand(\n {\n command: CommandNames.MARK_AS_READ_NOTIFICATION,\n params: { [list ? 'notification_id_list' : 'notification_id']: id },\n rid: RidGenerator.gForCommand()\n },\n null\n );\n};\n\nexport const useUserNotifications = (): void => {\n const isLoggedIn = useSelector(getIsLoggedIn);\n const user = useSelector(getUser);\n const dispatch = useDispatch();\n\n const openPopupTriggering = (data: any) => {\n if (window.refreshWhenLoggedIn && window.mustRefreshForSessionVisibility) {\n return false;\n }\n\n const popupTriggeringRules: UserTriggeringRules[] = [];\n let popupOpened = false;\n\n const comparision: Record = {\n '1': 'is',\n '2': 'isNot',\n '3': 'startsWith',\n '4': 'endsWith',\n '5': 'contains',\n '6': 'doesNotContains'\n };\n\n for (const key in data) {\n const rule: UserTriggeringRules = {};\n\n if (\n data[key].ClientId === user.id &&\n data[key].Id &&\n !data[key].Page?.Value\n ) {\n let openedPopupsList = LocalStorage.getItem(\n 'openedPopupsListByLanguage'\n );\n\n const currentLanguageId = GLOBALS.languageConfigs.id;\n openedPopupsList = openedPopupsList ? JSON.parse(openedPopupsList) : {};\n\n if (\n openedPopupsList &&\n currentLanguageId &&\n openedPopupsList[currentLanguageId] &&\n openedPopupsList[currentLanguageId].length &&\n openedPopupsList[currentLanguageId].indexOf(data[key].Id) + 1\n ) {\n popupOpened = false;\n } else {\n window.openPopup?.(data[key].Alias);\n markAsReadNotification(+key);\n popupOpened = true;\n break;\n }\n }\n\n if (\n data[key].ClientId === user.id &&\n data[key].Id &&\n data[key].Page.Comparison &&\n data[key].Page.Value\n ) {\n rule.triggeringUrlValue = data[key].Page.Value;\n rule.triggeringUrlRule =\n comparision[data[key].Page.Comparison as keyof typeof comparision];\n rule.alias = data[key].Alias;\n rule.id = data[key].Id;\n rule.enableTriggeringRule = 1;\n rule.triggeringTime = 0;\n rule.key = +key;\n popupTriggeringRules.push(rule);\n }\n }\n\n if (\n !popupOpened &&\n popupTriggeringRules.length &&\n !window.triggeringRuleIsWorked\n ) {\n window.popupTriggeringRules = popupTriggeringRules;\n window.openPopupsWithInterval?.(null, true);\n }\n };\n\n const setCashbackData = (data: {\n [key: string]: { cashback: NotificationsTypes };\n }) => {\n const tickets = Object.entries(data || {});\n\n if (tickets.length) {\n const cashbackData: Array = [];\n\n tickets.forEach(([ticketId, ticket]) => {\n if (ticket.cashback) {\n cashbackData.push({\n ...ticket.cashback,\n id: +ticketId,\n Amount: ticket.cashback.Amount || 0,\n RewordType: ticket.cashback.RewordType || 0,\n markAsRead: false,\n bonusType: 'cashback'\n });\n }\n });\n\n dispatch(setCashbackNotifications(cashbackData));\n }\n };\n\n const setLoyaltyData = (data: {\n [key: string]: { LevelUpBonus: NotificationsTypes };\n }) => {\n const tickets = Object.entries(data || {});\n\n if (tickets.length) {\n const loyaltyData: Array = [];\n\n tickets.forEach(([ticketId, ticket]) => {\n if (ticket.LevelUpBonus) {\n loyaltyData.push({\n ...ticket.LevelUpBonus,\n id: +ticketId,\n Amount: ticket.LevelUpBonus.Amount || 0,\n bonusType: 'loyalty'\n });\n }\n });\n\n dispatch(setLoyaltyNotifications(loyaltyData));\n }\n };\n\n useEffect(() => {\n const rid = RidGenerator.gForSubscribe();\n\n if (\n isLoggedIn &&\n !user.pending &&\n !window.mustRefreshForSessionVisibility\n ) {\n subscribeToUserNotifications(\n (data: any) => {\n openPopupTriggering(data);\n setCashbackData(data);\n setLoyaltyData(data);\n },\n (data: any) => {\n if (data && data.cashout) {\n const tickets = Object.keys(data.cashout).map(\n (ticketId: string) =>\n ({\n id: +ticketId,\n amount: data.cashout[ticketId].amount\n } as BetTicketMin)\n );\n\n dispatch(updateBetTickets(tickets));\n }\n\n openPopupTriggering(data);\n setCashbackData(data);\n setLoyaltyData(data);\n },\n rid\n );\n }\n\n return () => {\n unsubscribeCommand(rid);\n };\n }, [isLoggedIn, user.pending]);\n};\n","import { FormInstance } from 'antd';\nimport { Rule } from 'antd/lib/form';\nimport dayjs from 'dayjs';\nimport i18n from 'i18next';\nimport LocalStorage from 'utils/bom-dom-manipulation/local-storage';\nimport {\n DEFAULT_FIAT_CURRENCY,\n DEFAULT_FIAT_CURRENCY_ID,\n MAX_MONTH_VALUE,\n YEAR_FORMAT_FOUR_DIGITS\n} from 'utils/constants/account/payment';\nimport { PRICE_SEPARATOR_REGEXP } from 'utils/constants/price-separator';\nimport { EAccount } from 'utils/constants/store/query-keys';\nimport { currencyFormat } from 'utils/generic/currency-format';\nimport { storageKeyName } from 'utils/generic/storage-key-name';\nimport { thousandSeparator } from 'utils/helpers/validators';\nimport { appendCustomCode } from 'utils/other/customCode';\nimport { AccountParamsType, AppendCustomCodes } from 'interfaces/generic';\nimport { queryClient } from 'stores/query/query-client';\n\nexport const isValidRegex = function (regex: string) {\n try {\n new RegExp(regex);\n\n return true;\n } catch (e) {\n return false;\n }\n};\n\nexport const generateNumberRules = (field: Record): Rule[] => {\n const fieldRules: Rule[] = [\n {\n required: true,\n message: `${field?.lang.replace(/:/g, '')} ${i18n.t(\n 'validationMessages.isRequired'\n )}`\n }\n ];\n\n if (field?.regexp && isValidRegex(field?.regexp)) {\n fieldRules.push({\n validator: (_, value) => {\n if (!new RegExp(field.regexp).test(value)) {\n return Promise.reject(`${i18n.t('validationMessages.notValid')}`);\n }\n\n return Promise.resolve();\n }\n });\n } else {\n fieldRules.push({\n validator: (_, value) => {\n const cloneValue = value?.replaceAll(' ', '');\n\n if (Number.isNaN(Number(cloneValue))) {\n return Promise.reject(\n `${field.lang} ${i18n.t('validationMessages.mustBeNumber')}`\n );\n }\n\n if (field.minLenght && cloneValue.length < field.minLenght) {\n return Promise.reject(\n `${i18n.t('validationMessages.minimumIs', {\n field: field.lang.toLowerCase().replace(/:/g, '')\n })} ${field.minLenght}`\n );\n }\n\n if (field.maxLenght && cloneValue.length > field.maxLenght) {\n return Promise.reject(\n `${i18n.t('validationMessages.maximumIs', {\n field: field.lang.toLowerCase().replace(/:/g, '')\n })} ${field.maxLenght}`\n );\n }\n\n return Promise.resolve();\n }\n });\n }\n\n return fieldRules;\n};\n\nexport const generateTextRules = (field: Record): Rule[] => {\n const fieldRules: Rule[] = [\n {\n required: true,\n message: `${field?.lang.replace(/:/g, '')} ${i18n.t(\n 'validationMessages.isRequired'\n )}`\n }\n ];\n\n if (field?.regexp && isValidRegex(field?.regexp)) {\n fieldRules.push({\n validator: (_, value) => {\n if (!new RegExp(field.regexp).test(value)) {\n return Promise.reject(`${i18n.t('validationMessages.notValid')}`);\n }\n\n return Promise.resolve();\n }\n });\n } else {\n fieldRules.push({\n validator: (_, value) => {\n const cloneValue = value?.replaceAll(' ', '');\n\n if (!/^[a-zA-Z]+$/.test(cloneValue)) {\n return Promise.reject(`${i18n.t('validationMessages.onlyLetters')}`);\n }\n\n return Promise.resolve();\n }\n });\n }\n\n return fieldRules;\n};\n\nexport const generateDateRules = (\n yearFormat: number,\n form: FormInstance,\n name: string\n): Rule[] => {\n const fieldRules: Rule[] = [\n {\n required: true,\n message: i18n.t('account.required')\n }\n ];\n\n fieldRules.push({\n validator: (_, value) => {\n const date = value.split(/[/.]/);\n\n if (Number(date[0]) > MAX_MONTH_VALUE) {\n form.setFields([\n {\n name: [name],\n errors: [`${i18n.t('validationMessages.invalidDate')}`]\n }\n ]);\n\n return Promise.reject(`${i18n.t('validationMessages.invalidDate')}`);\n }\n\n if (\n !Number(date[1]) ||\n date[1].toString().length < yearFormat ||\n (date[1] < dayjs().year() && yearFormat === YEAR_FORMAT_FOUR_DIGITS)\n ) {\n form.setFields([\n {\n name: [name],\n errors: [`${i18n.t('validationMessages.invalidDate')}`]\n }\n ]);\n\n return Promise.reject(`${i18n.t('validationMessages.invalidDate')}`);\n }\n\n return Promise.resolve();\n }\n });\n\n return fieldRules;\n};\n\nexport const generateRules = (\n fieldName: string,\n field: Record,\n currency: string,\n data: Record,\n balance?: number,\n isWithdraw?: boolean\n): Rule[] => {\n const lang = data.translations?.[fieldName] || field.lang || '';\n\n const fieldRules: Rule[] = [\n {\n required: true,\n message: `${lang.replace(/:/g, '')} ${i18n.t(\n 'validationMessages.isRequired'\n )}`\n }\n ];\n\n const isAmount = ['eamount', 'amount', 'displayamount'].includes(fieldName);\n\n const isCpf = fieldName === 'accountNumber' || fieldName === 'cpf';\n\n const minRule = Number(data?.info_notes?.[currency]?.min);\n const maxRule = Number(data?.info_notes?.[currency]?.max);\n const currencyObj = currencyFormat(currency);\n const minLength = Number(field?.minLenght);\n const maxLength = Number(field?.maxLenght);\n\n if (field?.regexp && isValidRegex(field?.regexp)) {\n fieldRules.push({\n validator: (_, value) => {\n let val = value;\n\n if (isAmount) {\n val = value?.toString()?.replaceAll(PRICE_SEPARATOR_REGEXP, '');\n }\n\n if (!new RegExp(field.regexp).test(val)) {\n return Promise.reject(`${i18n.t('validationMessages.notValid')}`);\n }\n\n return Promise.resolve();\n }\n });\n } else {\n minLength &&\n fieldRules.push({\n validator: (_, value) => {\n return value.replace(/[^0-9]/g, '').length < minLength\n ? Promise.reject(\n `${lang} ${i18n.t('validationMessages.minCharacter', {\n count: minLength\n })}`\n )\n : Promise.resolve();\n }\n });\n\n maxLength &&\n fieldRules.push({\n validator: (_, value) => {\n return value.replace(/[^0-9]/g, '').length > maxLength\n ? Promise.reject(\n `${lang} ${i18n.t('validationMessages.maxCharacter', {\n count: maxLength\n })}`\n )\n : Promise.resolve();\n }\n });\n\n isCpf &&\n fieldRules.push({\n validator: (_, value) => {\n value = value.trim();\n const regex = /^[0-9.-]+$/;\n\n return !regex.test(value)\n ? Promise.reject(\n `${lang} ${i18n.t('validationMessages.mustBeNumber')}`\n )\n : Promise.resolve();\n }\n });\n\n (isAmount || (field?.mask && !isNaN(field?.mask))) &&\n fieldRules.push({\n validator: (_, value) => {\n if (isAmount) {\n value = value.replace(PRICE_SEPARATOR_REGEXP, '');\n }\n\n return Number.isNaN(Number(value))\n ? Promise.reject(\n `${lang} ${i18n.t('validationMessages.mustBeNumber')}`\n )\n : Promise.resolve();\n }\n });\n minRule &&\n isAmount &&\n fieldRules.push({\n validator: (_, value) => {\n return Number(\n value?.toString()?.replaceAll(PRICE_SEPARATOR_REGEXP, '')\n ) < minRule\n ? Promise.reject(\n `${i18n.t('validationMessages.minimumIs', {\n field: lang.toLowerCase().replace(/:/g, '')\n })} ${\n currencyObj.placement === 'left' ? currencyObj.currency : ''\n } ${thousandSeparator(minRule)} ${\n currencyObj.placement === 'right' ? currencyObj.currency : ''\n }`\n )\n : Promise.resolve();\n }\n });\n maxRule &&\n isAmount &&\n fieldRules.push({\n validator: (_, value) => {\n return Number(\n value?.toString()?.replaceAll(PRICE_SEPARATOR_REGEXP, '')\n ) > maxRule\n ? Promise.reject(\n `${i18n.t('validationMessages.maximumIs', {\n field: lang.toLowerCase().replace(/:/g, '')\n })} ${\n currencyObj.placement === 'left' ? currencyObj.currency : ''\n } ${thousandSeparator(maxRule)} ${\n currencyObj.placement === 'right' ? currencyObj.currency : ''\n }`\n )\n : Promise.resolve();\n }\n });\n\n if (fieldName === 'email') {\n fieldRules.push({\n message: i18n.t(`account.emailInput`),\n type: 'email'\n });\n }\n }\n\n typeof balance === 'number' &&\n isWithdraw &&\n isAmount &&\n fieldRules.push({\n validator: (_, value) => {\n return Number(\n value?.toString()?.replaceAll(PRICE_SEPARATOR_REGEXP, '')\n ) > balance\n ? Promise.reject(`${i18n.t('validationMessages.excessBalance')}`)\n : Promise.resolve();\n }\n });\n\n return fieldRules;\n};\n\nexport const depositSuccessDataTracking = (user: Record): void => {\n const paymentInfo = JSON.parse(\n LocalStorage.getItem(storageKeyName('account', 'PAYMENT_DATA'))\n );\n\n const accountParams: AccountParamsType = queryClient.getQueryData([\n EAccount['AccountParams']\n ]);\n\n if (accountParams) {\n if (+accountParams[AppendCustomCodes.APPEND_CUSTOM_CODE_DEPOSIT]) {\n appendCustomCode(accountParams[AppendCustomCodes.CUSTOM_CODE_DEPOSIT], {\n ...user,\n ...paymentInfo\n });\n }\n\n if (\n +accountParams[AppendCustomCodes.APPEND_CUSTOM_CODE_FIRST_DEPOSIT] &&\n LocalStorage.getItem(storageKeyName('account', 'FIRST_DEPOSIT')) === '1'\n ) {\n appendCustomCode(\n accountParams[AppendCustomCodes.CUSTOM_CODE_FIRST_DEPOSIT],\n {\n ...user,\n ...paymentInfo\n }\n );\n LocalStorage.setItem(storageKeyName('account', 'FIRST_DEPOSIT'), 'null');\n }\n }\n};\n\nexport const getCurrencyName = (currency: string) => {\n if (currency === DEFAULT_FIAT_CURRENCY_ID) {\n return DEFAULT_FIAT_CURRENCY;\n }\n\n return currency;\n};\n","import { storeFcmToken } from 'services/authentication';\nimport store from 'store';\n\nexport const checkAndStoreFcmToken = (): void => {\n const firebaseToken = store.getState().appData.fireBaseToken;\n\n if (firebaseToken) {\n storeFcmToken(firebaseToken);\n }\n};\n","import dayjs from 'dayjs';\nimport { ProfileData } from 'interfaces/authentication';\nimport LocalStorage from '../bom-dom-manipulation/local-storage';\nimport { storageKeyName } from '../generic/storage-key-name';\n\nexport const getUserName = (user: ProfileData): string => {\n const name =\n user?.first_name !== null && user?.last_name !== null\n ? `${user.first_name} ${user.last_name}`\n : user.username;\n\n return name || '';\n};\n\nexport const getUserAvatarName = (user: ProfileData): string => {\n return getUserName(user).substr(0, 2).toUpperCase();\n};\n\nexport const ITEMS_WITH_BADGE = ['bonuses', 'messages'];\n\nexport const setUserLoginLimitStartTimeLS = () =>\n LocalStorage.setItem(\n storageKeyName('account', 'LOGIN_LIMIT_POPUP_START_TIME'),\n String(dayjs().unix())\n );\n","export const appendScript = (\n src: string,\n id: string,\n callback: Function\n): void => {\n const scriptElement = document.createElement('script');\n const tag = document.getElementsByTagName('script')[0];\n\n scriptElement.src = src;\n scriptElement.type = 'text/javascript';\n scriptElement.async = true;\n scriptElement.id = id;\n\n scriptElement.onload = () => {\n callback();\n };\n\n tag?.parentNode?.insertBefore(scriptElement, tag);\n};\n","import SpringConfigs from 'utils/constants/swarm/spring-configs';\n\nexport const DEFAULT_CRYPTO_CURRENCY = 'FTN';\nexport const DEFAULT_FIAT_CURRENCY = 'USDT';\n// in user profile we are getting USDT name as TUS\nexport const DEFAULT_FIAT_CURRENCY_ID = 'TUS';\n\nexport const CURRENCY_NAME_LIST_COUNT = 2;\n\nexport const PaymentMethodTypes = {\n POST: 'post',\n GET: 'get',\n IFRAME: 'iframe',\n FORM_DRAW: 'formdraw',\n MESSAGE: 'message'\n};\n\nexport const StatusUrlNames = {\n CANCEL: 'cancel',\n FAIL: 'fail',\n PENDING: 'pending',\n SUCCESS: 'success'\n};\n\nexport const DepositStatusMessages = {\n CANCEL: 'depositStatusMessageCancel',\n FAIL: 'depositStatusMessageFail',\n PENDING: 'depositStatusMessagePending',\n SUCCESS: 'depositStatusMessageDone'\n};\n\nexport const WithdrawStatusMessages = {\n SUCCESS: 'withdrawSuccess'\n};\n\nexport const PaymentStatusValues: Record = {\n '-2': 'Rejected',\n '-1': 'Canceled',\n '0': 'New',\n ...(SpringConfigs.HIDE_WITHDRAWAL_ALLOWED_DATE ? {} : { '1': 'Allowed' }),\n '2': 'Pending',\n '3': 'Paid',\n '4': 'RollBacked'\n};\n\nexport enum TWO_WALLET_TYPES {\n sport = 'sport',\n casino = 'casino'\n}\n\nexport const IS_ACTIVE_TWO_WALLET =\n !SpringConfigs.CASINO_SPORTSBOOK_SWITCHER &&\n !!SpringConfigs.IS_TWO_WALLET_ACTIVE;\n\nexport const IS_ACTIVE_TWO_WALLET_SPORT = [0, 1].includes(\n SpringConfigs.CASINO_SPORTSBOOK_SWITCHER\n)\n ? TWO_WALLET_TYPES.sport\n : TWO_WALLET_TYPES.casino;\n\nexport enum EBankVerificationTypes {\n BANK_ID = 1,\n DIIA = 2\n}\nexport const MAX_MONTH_VALUE = 12;\nexport const YEAR_FORMAT_FOUR_DIGITS = 4;\nexport const TEST_LENGTH = 100;\nexport const CONFIRM_MODAL_PADDING = {\n _12: 12,\n _0: 0\n};\nexport const CONFIRM_MODAL_WIDTH = {\n _350: 350,\n _420: 420\n};\nexport const CASHOUT_AROUND = 0.01;\nexport const POS_WIN_AND_CASH_OUT_MIN_DIFFERENCE = 0.02;\n/* eslint-disable no-magic-numbers */\nexport enum EPaymentStatusValuesTypes {\n Rejected = -2,\n Canceled = -1,\n New = 0,\n Allowed = 1,\n Pending = 2,\n Paid = 3,\n RollBacked = 4\n}\n","import { TField } from 'interfaces/authentication';\n\nexport const RegFieldsDefaultsJson = [\n {\n type: 'text',\n formType: 'username',\n editForm: {\n showOnRegFields: '1',\n required: '1',\n showOnEditProfile: '1',\n usernameInMyProfile: '1'\n }\n },\n {\n type: 'text',\n formType: 'address',\n editForm: {\n showOnRegFields: '1',\n required: '1',\n showOnEditProfile: '1'\n }\n },\n {\n type: 'text',\n formType: 'province',\n editForm: {\n showOnRegFields: '1',\n required: '1',\n showOnEditProfile: '1'\n }\n },\n {\n type: 'text',\n formType: 'city',\n editForm: {\n showOnRegFields: '1',\n required: '1',\n showOnEditProfile: '1'\n }\n },\n {\n label: 'Account Number',\n type: 'accountNumber',\n formType: 'accountNumber',\n name: 'iban',\n hasSettings: true,\n hidden: true,\n editForm: {\n label: 'Account Number',\n showOnRegFields: '1',\n showOnEditProfile: '1',\n required: '0',\n disabled: '0',\n customValidation: '0',\n customValidationCode: '',\n uploadDoc: '0',\n showAccountNumberPrefix: '1',\n accountNumberPrefix: 'FR'\n },\n params: {\n validations: {\n required: true\n }\n }\n },\n {\n type: 'radio',\n formType: 'gender',\n editForm: {\n showOnRegFields: '0',\n showOnEditProfile: '1',\n required: '1',\n disabled: '1'\n },\n params: {\n btnInfo: {\n male: 'M',\n female: 'F'\n },\n validations: {\n required: true\n }\n }\n },\n {\n type: 'text',\n formType: 'first_name',\n formLabel: 'firstName',\n editForm: {\n showOnRegFields: '1',\n required: '1',\n showOnEditProfile: '1',\n disabled: '1',\n onlyLetters: '1'\n }\n },\n {\n type: 'text',\n formType: 'last_name',\n formLabel: 'lastName',\n editForm: {\n showOnRegFields: '1',\n required: '1',\n showOnEditProfile: '1',\n disabled: '1',\n onlyLetters: '1'\n }\n },\n {\n type: 'date',\n formType: 'birthDate',\n name: 'birth_date',\n editForm: {\n disabled: '1',\n dateType: '1',\n label: 'Birth Date',\n ageLimit: '18',\n showOnRegFields: '0',\n showOnEditProfile: '1',\n required: '1'\n }\n },\n {\n type: 'email',\n formType: 'email',\n editForm: {\n showOnRegFields: '1',\n showOnEditProfile: '1',\n required: '1',\n disabled: '1'\n }\n },\n {\n type: 'password',\n formType: 'password',\n editForm: {\n showOnRegFields: '1'\n },\n params: {\n validations: {\n required: true\n }\n }\n },\n {\n type: 'password',\n confirm: true,\n formType: 'passwordConfirmation',\n name: 'password_confirmation',\n editForm: {\n showOnRegFields: '0'\n },\n params: {\n validations: {\n required: true\n }\n }\n },\n {\n type: 'select',\n formType: 'country',\n fromData: 'countries',\n name: 'country_code',\n editForm: {\n showOnRegFields: '1',\n required: '1',\n showOnEditProfile: '1',\n disabled: '1'\n }\n },\n {\n type: 'mobile-number',\n formType: 'mobileNumber',\n name: 'phone',\n editForm: {\n showOnRegFields: '0',\n showOnEditProfile: '1',\n required: '1',\n disabled: '1'\n }\n },\n {\n type: 'select',\n formType: 'currency',\n fromData: 'currencyList',\n inParams: true,\n name: 'currency_name',\n editForm: {\n showOnRegFields: '0',\n required: '1'\n }\n },\n {\n type: 'select',\n formType: 'occupation',\n fromData: 'occupations',\n name: 'occupation',\n editForm: {\n showOnRegFields: '0',\n showOnEditProfile: '1',\n required: '0'\n }\n },\n {\n type: 'text',\n formType: 'promoCode',\n name: 'promo_code',\n editForm: {\n showOnRegFields: '0',\n required: '0'\n }\n },\n {\n type: 'checkbox',\n formType: 'T&C_Checkbox',\n name: 'tccheckbox',\n editForm: {\n showOnRegFields: '1',\n required: '1'\n }\n },\n {\n type: 'zipCode',\n formType: 'zipCode',\n editForm: {\n showOnRegFields: '1',\n required: '1',\n showOnEditProfile: '1',\n disabled: '1'\n }\n }\n] as TField[];\n","import { ProfileData } from 'interfaces/authentication';\n\nexport const userActiveStep = {\n USER_ACTIVE_STEP_STATE_VALUE_0: 0, // Data Processing\n USER_ACTIVE_STEP_STATE_VALUE_5: 5, // Waiting Client\n USER_ACTIVE_STEP_STATE_VALUE_3: 3, // KYC Failed\n USER_ACTIVE_STEP_STATE_VALUE_4: 4, // KYC Expired\n USER_ACTIVE_STEP_STATE_VALUE_7: 7, // Waiting for Provider\n USER_ACTIVE_STEP_VALUE_21: 21,\n USER_ACTIVE_STEP_VALUE_27: 27,\n USER_ACTIVE_STEP_VALUE_33: 33,\n USER_ACTIVE_STEP_VALUE_35: 35,\n USER_ACTIVE_STEP_VALUE_37: 37,\n USER_ACTIVE_STEP_VALUE_40: 40, // Signicat Germany\n USER_ACTIVE_STEP_VALUE_41: 41, // Signicat Brazil\n USER_ACTIVE_STEP_VALUE_42: 42, // Legitimuz Brazil\n USER_ACTIVE_STEP_VALUE_50: 50\n};\n\nexport const CLIENT_PRODUCT_STATE_CATEGORIES = {\n sport: 1,\n casino: 2\n};\n\nexport const checkUserStatus = {\n bankIdIntergration(user: ProfileData | Record): boolean {\n return (\n user.active_step === userActiveStep.USER_ACTIVE_STEP_VALUE_35 &&\n user.active_step_state === userActiveStep.USER_ACTIVE_STEP_STATE_VALUE_5\n );\n }\n};\n","import SpringConfigs from 'utils/constants/swarm/spring-configs';\n\nexport const PRICE_SEPARATOR_REGEXP = SpringConfigs.PRICE_SEPARATOR\n ? new RegExp(SpringConfigs.PRICE_SEPARATOR, 'g')\n : '';\nexport const INVALID_NUMBER_REMOVAL_REGEX = /[^0-9.]/g;\n"],"names":["useFaceIdLogin","credentialsExist","setCredentialsExist","useState","accountLogout","useAccountLogout","t","useTranslation","loginCallback","useLoginCallback","rememberMe","password","username","useEffect","_window$median","window","median","auth","status","callbackFunction","data","hasTouchId","hasSecret","removeSecret","_window$median2","delete","setCredentials","_window$median4","secret","JSON","stringify","save","prompt","loginWithFaceId","_window$median3","get","res","success","credentials","parse","login","error","callbackOnCancel","showConfirmationPopup","_window$median5","modalAlert","text","getCookie","icon","lib","name","theme","successBtn","onClick","cancelBtn","closable","_ref","userGroups","inPopup","authData","useRef","isTwoFactorPopupVisible","setIsTwoFactorPopupVisible","qrCodeOrigin","setQrCodeOrigin","dispatch","useDispatch","history","useHistory","regFieldsData","useSelector","getRegFieldData","personalId","find","field","formType","updateAuthData","LocalStorage","setItem","storageKeyName","current","getUser","storeUser","terms_and_conditions_version","SpringConfigs","SHOW_ADDITIONAL_CHECKBOX_FOR_LOGIN","VERIFICATION_TYPE","setTermsAndConditionVersion","updateUser","editForm","showOnEditProfile","personalIdType","sendCPFAsDocNumber","PUSH_NOTIFICATIONS_ENABLED","getUserAllNotifications","useUpdateUser","userData","_authData$current","setCookieLoginCredentials","jwe_token","setUserData","last_login_date","Math","floor","Date","getTime","MILLISECONDS_IN_SECOND","setLoginLimit","session_duration","SECONDS_PER_MINUTE","active_time_in_casino","SessionStorage","afterSignIn","AfterSignIn","setAfterExecutionCallback","isActionsExist","getSavedLocation","splitLocation","split","parsedQuery","qs","ignoreQueryPrefix","accounts","updatedLocation","push","setUserLoggedIn","currency","CookieExpiration","DAYS_15","executeActions","auth_token","user_id","qr_code_origin","authentication_status","ADD_INFO_AFTER_LOGIN","setShowAdditionalInfo","checkAndStoreFcmToken","sendPostMessage","type","value","VAIX_IFRAME_ID","popupIframe","sendRestoreLoginPostMsg","IFRAME_SPORTSBOOK","loginState","LOGIN_LIMIT_POPUP","PLAYER_ACTIVITY_CHECK","setUserLoginLimitStartTimeLS","useGpsTracking","gpsTrackingParams","getGpsTrackingParams","geolocationShakeData","getGeolocationShakeData","socetReConnect","getIsConnected","needCheckGeoLocation","setNeedCheckGeoLocation","sendGetGeoToken","useMemo","sendGeoToken","sendGetGeoTokenAction","action","checkLocation","clearCheckInterval","popupType","setCheckInterval","useCallback","checkInterval","clearInterval","updateGpsTrackingParams","interval","setInterval","GPS_TRACKING_CHECKING_INTERVAL","_gpsTrackingParams$va","GLOBALS","geolocationWindow","close","validateGeoRestrictionSuccessCallback","call","setGeoLocationShakeData","resetGpsTrackingParams","navigator","geolocation","getCurrentPosition","onGeoLocationSuccess","onGeoLocationError","enableHighAccuracy","timeout","maximumAge","pos","crd","coords","sendValidateGeoCommand","latitude","longitude","lat","lng","params","loadingValidateGeoRestriction","swarmCommand","CommandNames","VALIDATE_GEO_RESTRICTION","validateGeoRestrictionCallback","checksErrorCallback","gpsLogout","getItem","result","sendGetGeoTokenCommand","loadingGetGeoToken","GET_GEO_TOKEN","getGeoTokenCallback","gpsTrackingLink","GPS_TRACKING_URL","details","token","PARTNER_ID","SWARM_URL","isMobile","trackingLink","trackingDuration","duration","_gpsTrackingParams$va2","errorData","arguments","length","undefined","validateGeoRestrictionCancelCallback","errorPopupTitle","msg","errorPopupMsg","GpsTrackingPopup","lazy","GpsTracking","memo","_jsx","Suspense","fallback","children","LoyaltyPoints","LoyaltyPointsNew","LoyaltyPointsVersionsWrapper","partnerConfigs","getPartnerConfigs","isLoyaltyV2","is_loyalty_v2","Login","Wallet","ProfilePreview","Register","Messages","NewPassword","BonusIframe","BonusesMenu","Settings","MyCards","Bonuses","Rewards","ForgotPassword","BalanceHistoryPage","AccountStakeAndEarn","Limits","Statement","CustomerJourneyLayout","TimeOut","GamStop","ReferFriend","LoginLimit","BetingHistoryLayout","RealityCheck","ProfileEdit","SelfExclusion","NotificationSettings","AccountStatus","ChangePassword","MySessions","BonusManagement","Documents","AccumulatedProfit","VerifyAccount","TwoFactorAuth","SaferGambling","CurrentSession","AvailabilityPeriod","ForgotUsername","BankAccount","TransferToFriend","Accounts","props","user","isLoggedIn","getIsLoggedIn","accountSections","getSectionsData","checkIsSectionVisible","sectionType","_accountSections$myPr","myProfile","section","hidden","redirectToProfile","updateQuery","settings","profile","pending","AccountsLayout","_jsxs","Loading","QueryRoute","includes","shouldMount","signInBtn","onCatch","addQuery","excludes","render","accountNextButtonStyle","signUpBtn","component","register","setVisible","accountSignUpButtonStyle","accountPrevButtonStyle","SHOW_ACCOUNT_SESSION","routeProps","location","search","lang","document","documentElement","PREFERRED_LANGUAGE_MAPPING","useLoginLimit","limitTimeout","setLimitTimeout","loginLimit","getLoginLimit","lastLogin","searchParams","useSearchParams","openLoginPopup","useOpenLoginPopup","_accountSections$myPr2","tab","limitStartTime","LS","delay","dayjs","unix","timer","setTimeout","logout","removeUser","removeUserData","setUserOptIns","setClientGamingStateInfo","deleteCookie","showToastError","mode","ECasinoGameMode","REAL","saveCurrentLocation","clearTimeout","IS_RTL","LoyaltyCurrentLevelBadge","FavoriteOnHeaderPopup","BankIDIntegration","ChangeTheme","ProfileInfo","CryptoWallets","RegisterOnPage","VerifyEmailModal","CheckEmailModal","DocumentUploadModal","CounterOfferModal","LoginFreeze","RemainingSessionDurationModal","PlayerInfo","AdditionalInfoPopup","AuthSection","AutoidentVerificationModal","TermsAndConditions","NotVerifiedMessage","VerifyAccountModalRedirect","AccountGenericModals","NotificationCards","PlayerActivityChecker","_partnerConfigs$secon","configs","accountLayout","_layout","slideView","horizontalView","accountSignInButtonStyle","accountButtonsDistance","mounted","favorite","favoriteTabs","_favoriteTabs","fromIframe","signInPopupAlias","signUpPopupAlias","useRestoreLogin","useUserNotifications","useFetchSectionsData","sectionsData","sections","SECTIONS_JSON","getAccountJson","then","setSectionsData","catch","useSeonIntegration","SEON_INTEGRATION","seon","appendScript","_window$seon","getBase64Session","setSeonSessionData","console","useCheckDepositReturnUrl","accountParams","useFetchAccountParams","customCode","AppendCustomCodes","APPEND_CUSTOM_CODE_DEPOSIT_FAIL","paymentInfo","appendCustomCode","CUSTOM_CODE_DEPOSIT_FAIL","useLayoutEffect","searchObject","message","StatusUrlNames","CANCEL","DepositStatusMessages","FAIL","PENDING","showToastWarning","SUCCESS","depositSuccessDataTracking","useHandlePreferredLanguage","SET_PREFERRED_LANGUAGE","language","languageConfigs","swarmLangPrefix","slice","LANGUAGE_PREFIX","layout","map","item","String","showBankModal","setShowBankModal","visible","routeHistory","setRouteHistory","onPageCurrentSlide","setOnPageCurrentSlide","EAccountWidgetLayoutType","onPage","queries","restoreLogin","isRegFinished","getRegIsFinished","showAdditionalInfo","getShowAdditionalInfo","pendingSuperBets","getPendingSuperBets","userOptIns","getUserOptIns","shouldGetOptIns","getShouldGetUserOptIns","remainingSessionDuration","getRemainingSessionDuration","cashbackNotifications","getCashbackNotifications","loyaltyNotifications","getLoyaltyNotifications","accountSettings","getPersonalizedGenericSettings","is_using_loyalty_program","additionalInfoPopupInLS","auth_data_x","MOCKED_DATA","customPopupAlias","showAdditionalInfoLS","customPopupOpen","hasPopup","isInPopup","openCustomPopup","Object","keys","multiview","preview","casinoGameUrl","prevRoutes","callBackUrl","pathname","_window$openPopup","_window","_window$openPopup2","_window2","removeItem","openPopup","selfExclude","periodObj","label","amount","show","reason","exclusionType","setSelfExclusion","addEventListener","handleCustomPopupClose","removeEventListener","QueryString","kycaid","replace","showToastSuccess","resetPayments","setPaymentDepositPromo","refreshWhenLoggedIn","setFinalExecutionCallback","addQueryInString","casino","blockCasinoGamePopupOpening","parent","closePopup","reload","checkUserStatus","bankIdIntergration","IS_BANK_ID_INTEGRATION_ENABLED","diiaVerification","active_step","active_step_state","classList","add","body","remove","showCounterOfferModals","onClose","val","sessionVisibilityRefresh","showDocumentUploadModal","userActiveStep","USER_ACTIVE_STEP_VALUE_27","USER_ACTIVE_STEP_STATE_VALUE_5","SELFIE_WITH_DOCUMENTS","is_verified","showAutoidentVerificationModal","checkAutoident","MGA_ACCOUNT_TYPE","CANADIAN_ACCOUNT_TYPE","USER_ACTIVE_STEP_VALUE_33","setShowAutoidentVerificationModal","showVerifyAccountModal","SHOW_VERIFY_ACCOUNT_MODAL","USER_ACTIVE_STEP_VALUE_50","showNotVerifiedMessage","SHOW_BRAZIL_USER_UNVERIFIED_MESSAGE","USER_ACTIVE_STEP_VALUE_41","SHOW_USER_UNVERIFIED_MESSAGE","USER_ACTIVE_STEP_VALUE_40","Boolean","Number","accountVerificationReminder","getPlayerOptIns","resp","prev","ACCOUNT_REGISTRATION_JSON_PATH","setRegField","RegFieldsDefaultsJson","termsAndConditionsShowModal","_SpringConfigs$TERMS_","userVersion","currentVersion","tcVersion","termsConditionsCustom","TERMS_POPUP_LINK","handleSetVisible","event","url","autologinX","SHOW_ACCOUNT_ADDITIONAL_INFO_MODAL","count","_Fragment","favoriteTypes","GPS_TRACKING_ENABLED","IOVATION_ENABLED","IOVATION_HIDE_UPLOAD","DOC_UPLOAD_TRU_NARRATIVE","LOGIN_FREEZE","shouldShowPlayerInfo","playerInfoShowDate","today","diffInHours","diff","isValid","HOUR_PER_DAY","className","cc","secondary_wallet_currencies","favoriteEnabled","inline","horizontal","THEME_SWITCHER","ChangeThemeSkeleton","AuthSectionSkeleton","Popup","open","animationType","Pages","isOpen","Portal","MobileLayout","DesktopLayout","higherZindex","getHigherZIndex","forgotPass","getForgotPasswordOpen","forgotUsername","getForgotUsernameOpen","activeGames","getActiveGames","handleCloseClick","useCasinoSingleGameClose","closeModal","firstActiveGame","values","types","funMode","CASINO_FUN_MODE","setForgotPasswordOpen","setForgotUsernameOpen","setHigherZIndex","exitConfirmPopup","setShowCancelRegisterPopup","decodeURI","fullPath","fromEntries","URLSearchParams","gamesInfo","UtilsCasino","extractGameInfoFromSearchParams","queryToUpdate","encodeGameIdWithPrefix","order","id","FUN","normalizeStringifiedQuery","query","POSTGRID_API_KEY","resetPostGridHiddenParams","setFastRegData","removeActions","setAfterSignInActions","AccountsModalProvider","clearDataFromStorage","FavoritePersonalization","firebaseToken","getFirebaseToken","oneSignalSubId","getOneSignalSubId","shouldRedirect","additionalParams","fcm_token","subscription_id","setOneSignalSubId","setUserNotifications","mustRefreshForSessionVisibility","WRAPPER_APP","USER_PERSONALIZATION_ENABLED","durations","clearRemainingSessionDurations","forEach","callback","getGenericAccountCommand","GET_REMAINING_SESSION_DURATION","toUpperCase","times","min","entries","_ref2","key","time","createTimer","longTimeout","setTimeOutGreatestValue","isFunction","shouldRestore","socket","isConnected","rememberMeSelector","getRememberMe","rememberMeTick","single_login","getCookieLoginCredentials","elem","elemCustomCode","batchActions","sessionLimits","RemainingDailyDuration","showDailySession","RemainingWeeklyDuration","showWeeklySession","RemainingMonthlyDuration","showMonthlySession","setRemainingSessionDurationModal","deleteUser","removeUserFromStorage","handle","mustLogIn","mustLoginEncrypted","isOverridePersonalId","customAuthData","isFirstLaunch","switchMultiAccount","singleSignIn","IS_MULTI_ACCOUNT_DISABLED","updateUserData","super_bet","setPendingSuperBets","updateOpenBets","markAsReadNotification","list","authCommand","command","MARK_AS_READ_NOTIFICATION","rid","RidGenerator","gForCommand","openPopupTriggering","popupTriggeringRules","popupOpened","comparision","_data$key$Page","rule","ClientId","Id","Page","Value","openedPopupsList","currentLanguageId","indexOf","Alias","Comparison","triggeringUrlValue","triggeringUrlRule","alias","enableTriggeringRule","triggeringTime","_window$openPopupsWit","triggeringRuleIsWorked","openPopupsWithInterval","setCashbackData","tickets","cashbackData","ticketId","ticket","cashback","Amount","RewordType","markAsRead","bonusType","setCashbackNotifications","setLoyaltyData","loyaltyData","LevelUpBonus","setLoyaltyNotifications","gForSubscribe","subscribeToUserNotifications","cashout","updateBetTickets","unsubscribeCommand","isValidRegex","regex","RegExp","e","generateNumberRules","fieldRules","required","i18n","regexp","validator","_","test","Promise","resolve","reject","cloneValue","replaceAll","isNaN","minLenght","toLowerCase","maxLenght","generateTextRules","generateDateRules","yearFormat","form","date","MAX_MONTH_VALUE","toString","year","YEAR_FORMAT_FOUR_DIGITS","setFields","errors","generateRules","fieldName","balance","isWithdraw","_data$translations","_data$info_notes","_data$info_notes$curr","_data$info_notes2","_data$info_notes2$cur","translations","isAmount","isCpf","minRule","info_notes","maxRule","max","currencyObj","currencyFormat","minLength","maxLength","_value$toString","PRICE_SEPARATOR_REGEXP","trim","mask","_value$toString2","placement","thousandSeparator","_value$toString3","_value$toString4","queryClient","getQueryData","EAccount","APPEND_CUSTOM_CODE_DEPOSIT","CUSTOM_CODE_DEPOSIT","APPEND_CUSTOM_CODE_FIRST_DEPOSIT","CUSTOM_CODE_FIRST_DEPOSIT","getCurrencyName","DEFAULT_FIAT_CURRENCY_ID","DEFAULT_FIAT_CURRENCY","store","getState","appData","fireBaseToken","storeFcmToken","getUserName","first_name","last_name","getUserAvatarName","substr","ITEMS_WITH_BADGE","src","_tag$parentNode","scriptElement","createElement","tag","getElementsByTagName","async","onload","parentNode","insertBefore","DEFAULT_CRYPTO_CURRENCY","CURRENCY_NAME_LIST_COUNT","PaymentMethodTypes","POST","GET","IFRAME","FORM_DRAW","MESSAGE","WithdrawStatusMessages","PaymentStatusValues","HIDE_WITHDRAWAL_ALLOWED_DATE","TWO_WALLET_TYPES","IS_ACTIVE_TWO_WALLET","CASINO_SPORTSBOOK_SWITCHER","IS_TWO_WALLET_ACTIVE","IS_ACTIVE_TWO_WALLET_SPORT","sport","EBankVerificationTypes","TEST_LENGTH","CONFIRM_MODAL_PADDING","_12","_0","CONFIRM_MODAL_WIDTH","_350","_420","CASHOUT_AROUND","POS_WIN_AND_CASH_OUT_MIN_DIFFERENCE","EPaymentStatusValuesTypes","showOnRegFields","usernameInMyProfile","hasSettings","disabled","customValidation","customValidationCode","uploadDoc","showAccountNumberPrefix","accountNumberPrefix","validations","btnInfo","male","female","formLabel","onlyLetters","dateType","ageLimit","confirm","fromData","inParams","USER_ACTIVE_STEP_STATE_VALUE_0","USER_ACTIVE_STEP_STATE_VALUE_3","USER_ACTIVE_STEP_STATE_VALUE_4","USER_ACTIVE_STEP_STATE_VALUE_7","USER_ACTIVE_STEP_VALUE_21","USER_ACTIVE_STEP_VALUE_35","USER_ACTIVE_STEP_VALUE_37","USER_ACTIVE_STEP_VALUE_42","CLIENT_PRODUCT_STATE_CATEGORIES","PRICE_SEPARATOR","INVALID_NUMBER_REMOVAL_REGEX"],"sourceRoot":""}