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AlBD,EAAAC,OAAA,EAAkB,gSCAlBD,EAAAC,OAAA,EAAkB,kNCAlBD,EAAAC,OAAA,EAAkB,0uBCAlBD,EAAAC,OAAA,EAAkB,6yBCAlBD,EAAAC,OAAA,EAAkB,4ICAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/api/passkeys/queries/usePasskeys/service.ts","webpack://_N_E/./src/api/passkeys/queries/usePasskeys/index.ts","webpack://_N_E/./src/api/passkeys/queries/useUserHasPassKey/service.ts","webpack://_N_E/./src/api/passkeys/queries/useUserHasPassKey/index.ts","webpack://_N_E/./src/api/passkeys/queries/index.ts","webpack://_N_E/./src/api/passkeys/mutations/useDeletePassKey/service.ts","webpack://_N_E/./src/api/passkeys/mutations/useDeletePassKey/index.ts","webpack://_N_E/./src/api/passkeys/mutations/index.ts","webpack://_N_E/./src/api/passkeys/index.ts","webpack://_N_E/./src/api/passkeys/queryKey.ts","webpack://_N_E/./src/api/referral-vouchers/queries/useReferralVoucherByCode/service.ts","webpack://_N_E/./src/api/referral-vouchers/queries/useReferralVoucherByCode/index.tsx","webpack://_N_E/./src/api/referral-vouchers/queries/useReferralVoucherMe/service.ts","webpack://_N_E/./src/api/referral-vouchers/queries/useReferralVoucherMe/index.ts","webpack://_N_E/./src/api/referral-vouchers/queries/index.ts","webpack://_N_E/./src/api/referral-vouchers/index.ts","webpack://_N_E/./src/api/referral-vouchers/mutations/useCreateReferralVoucher/service.ts","webpack://_N_E/./src/api/referral-vouchers/mutations/useCreateReferralVoucher/index.ts","webpack://_N_E/./src/api/referral-vouchers/mutations/useEditReferralVoucher/service.ts","webpack://_N_E/./src/api/referral-vouchers/mutations/useEditReferralVoucher/index.ts","webpack://_N_E/./src/api/referral-vouchers/mutations/index.ts","webpack://_N_E/./src/api/referral-vouchers/mutations/useDeleteReferralVoucher/service.ts","webpack://_N_E/./src/api/referral-vouchers/mutations/useDeleteReferralVoucher/index.ts","webpack://_N_E/./src/api/referral-vouchers/queryKeys.ts","webpack://_N_E/./src/hooks/auth/useAuthSearchParams/index.tsx","webpack://_N_E/./src/components/AuthModal/Layout/index.tsx","webpack://_N_E/./src/api/email-providers/queryKey.ts","webpack://_N_E/./src/api/email-providers/queries/useEmailProviders/service.ts","webpack://_N_E/./src/api/email-providers/queries/useEmailProviders/index.ts","webpack://_N_E/./src/api/email-providers/queries/index.ts","webpack://_N_E/./src/api/email-providers/index.ts","webpack://_N_E/./src/components/AuthModal/Content/Common/EmailInput/index.tsx","webpack://_N_E/./src/api/iam/mutations/useRefresh/service.ts","webpack://_N_E/./src/api/iam/mutations/useRefresh/index.ts","webpack://_N_E/./src/hooks/auth/useAuthForm/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Content/Steps/Email/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Content/Steps/Password/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Content/Steps/Form/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Content/Steps/OriginRenderer/Brazil/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Content/Steps/OriginRenderer/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Content/Steps/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Layout/Requires2fa/variants.ts","webpack://_N_E/./src/components/AuthModal/Content/Login/Layout/Requires2fa/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/OAuth/Button/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/OAuth/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Layout/Opt/index.tsx","webpack://_N_E/./src/hooks/auth/useAuthFormState/index.tsx","webpack://_N_E/./src/hooks/auth/useAuthFormButtonLabel/index.tsx","webpack://_N_E/./src/api/iam/mutations/usePassKeyLogin/service.ts","webpack://_N_E/./src/api/iam/mutations/usePassKeyLogin/index.ts","webpack://_N_E/./src/api/iam/mutations/useGeneratePassKeyAuthentication/service.ts","webpack://_N_E/./src/api/iam/mutations/useGeneratePassKeyAuthentication/index.ts","webpack://_N_E/./src/components/AuthModal/Content/Common/PassKeyButton/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Layout/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/Content/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Login/index.tsx","webpack://_N_E/./src/api/recovery-passwords/mutations/useGenerateRecoveryPasswordToken/service.ts","webpack://_N_E/./src/api/recovery-passwords/mutations/useGenerateRecoveryPasswordToken/index.ts","webpack://_N_E/./src/api/recovery-passwords/mutations/useRecoveryPasswordReset/service.ts","webpack://_N_E/./src/api/recovery-passwords/mutations/useRecoveryPasswordReset/index.ts","webpack://_N_E/./src/api/recovery-passwords/mutations/index.ts","webpack://_N_E/./src/api/recovery-passwords/index.ts","webpack://_N_E/./src/components/AuthModal/Content/RecoverPassword/Content/GenerateRecoveryPasswordToken/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/RecoverPassword/Content/ResetPassword/Renderer/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/RecoverPassword/Content/ResetPassword/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Common/IdentifierInput/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Register/Content/Email/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Register/Content/Password/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Register/Content/Steps/index.tsx","webpack://_N_E/./src/hooks/register/useRegisterVoucher/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Register/Content/ReferralVoucherInput/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Register/Layout/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/Register/index.tsx","webpack://_N_E/./src/components/AuthModal/Content/options.tsx","webpack://_N_E/./src/components/AuthModal/Content/index.tsx","webpack://_N_E/./src/hooks/auth/useIsKycAuthStep/index.tsx","webpack://_N_E/../../packages/common/src/components/PasswordInput/BarPasswordStrong/props.ts","webpack://_N_E/../../packages/common/src/components/PasswordInput/BarPasswordStrong/index.tsx","webpack://_N_E/../../packages/common/src/components/ResendCodeButton/index.tsx","webpack://_N_E/../../packages/common/src/components/TransTextWithDefault/index.tsx","webpack://_N_E/../../packages/common/src/components/TransWithDefault/index.tsx","webpack://_N_E/../../packages/common/src/components/ValidateCodeInput/index.tsx","webpack://_N_E/../../packages/common/src/utils/object/get.ts","webpack://_N_E/./src/components/AuthModal/Content/Common/PassKeyButton/styles.module.scss","webpack://_N_E/./src/components/AuthModal/Content/Login/Layout/Requires2fa/styles.module.scss","webpack://_N_E/./src/components/AuthModal/Content/Login/Layout/styles.module.scss","webpack://_N_E/./src/components/AuthModal/Content/OAuth/Button/styles.module.scss","webpack://_N_E/./src/components/AuthModal/Content/OAuth/styles.module.scss","webpack://_N_E/./src/components/AuthModal/Content/RecoverPassword/Content/GenerateRecoveryPasswordToken/styles.module.scss","webpack://_N_E/./src/components/AuthModal/Content/RecoverPassword/Content/ResetPassword/styles.module.scss","webpack://_N_E/./src/components/AuthModal/Content/Register/Content/ReferralVoucherInput/styles.module.scss","webpack://_N_E/./src/components/AuthModal/Content/Register/Layout/styles.module.scss","webpack://_N_E/../../packages/common/src/components/PasswordInput/BarPasswordStrong/styles.module.scss","webpack://_N_E/../../packages/common/src/components/ResendCodeButton/styles.module.scss","webpack://_N_E/../../packages/common/src/components/ValidateCodeInput/styles.module.scss"],"sourcesContent":["import { QueryFunctionContext } from '@tanstack/react-query';\nimport { UsePasskeysQueryKeyProps } from './props';\nimport baseAPI from '@/api';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { UserPasskey } from '@/models/user-passkey';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchPasskeys({\n queryKey,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const { limit, page } = queryKey[1];\n\n const response: AxiosResponse> =\n await baseAPI.get>('/passkeys', {\n params: {\n page,\n limit,\n },\n });\n\n return response.data;\n}\n","import { useState } from 'react';\nimport { PasskeysQueryKeys } from '../../queryKey';\nimport { PaginatedRequest } from '@/models/pagination/paginated-request';\nimport { UsePasskeysQueryKeyProps } from './props';\nimport { useQuery } from '@tanstack/react-query';\nimport { fetchPasskeys } from './service';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { usePaginatedQuery } from '@starsoft/common/hooks';\nimport { UserPasskey } from '@/models/user-passkey';\n\nexport function usePasskeys() {\n const [page, setPage] = useState(1);\n\n const filter: PaginatedRequest = {\n page,\n limit: 8,\n };\n const queryKey: UsePasskeysQueryKeyProps = [\n PasskeysQueryKeys.Passkey,\n filter,\n ];\n\n const { data, isPending, error, refetch } = useQuery<\n PaginatedResponse,\n AxiosError,\n PaginatedResponse,\n UsePasskeysQueryKeyProps\n >({ queryKey, queryFn: fetchPasskeys });\n\n const { fetchNextPage, fetchPreviousPage, setCurrentPage } =\n usePaginatedQuery({\n data,\n page,\n setPage,\n });\n\n return {\n page,\n error,\n refetch,\n isPending,\n fetchNextPage,\n setCurrentPage,\n fetchPreviousPage,\n passkeys: data,\n };\n}\n","import { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseUserHasPassKeyQueryKeyProps } from './props';\nimport baseAPI from '@/api';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchUserHasPassKey({\n queryKey,\n}: QueryFunctionContext): Promise {\n const { email } = queryKey[1];\n\n const response: AxiosResponse = await baseAPI.get(\n '/passkeys/user-has-passkey',\n {\n params: {\n email,\n },\n },\n );\n\n return response.data;\n}\n","import { PasskeysQueryKeys } from '../../queryKey';\nimport {\n UseUserHasPassKeyQueryKeyProps,\n UseUserHasPassKeyQueryProps,\n} from './props';\nimport { useQuery } from '@tanstack/react-query';\nimport { fetchUserHasPassKey } from './service';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { useDebounce } from '@starsoft/common/hooks';\nimport { UserHasPasskeyQueryDto } from '@/services/dto/passkey/user-has-passkey-query.dto';\n\nexport function useUserHasPassKey({ email }: UseUserHasPassKeyQueryProps) {\n const debouncedEmail = useDebounce(email);\n const isEmailValid = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(debouncedEmail);\n\n const filter: UserHasPasskeyQueryDto = {\n email: debouncedEmail,\n };\n\n const queryKey: UseUserHasPassKeyQueryKeyProps = [\n PasskeysQueryKeys.UserHasPasskey,\n filter,\n ];\n\n const { data, isPending, error, refetch, fetchStatus } = useQuery<\n boolean,\n AxiosError,\n boolean,\n UseUserHasPassKeyQueryKeyProps\n >({\n queryKey,\n queryFn: fetchUserHasPassKey,\n enabled: isEmailValid,\n staleTime: 6 * 1000 * 60,\n });\n\n return {\n userHasPassKey: data,\n error,\n refetch,\n isPending: isPending && fetchStatus !== 'idle',\n };\n}\n","export { usePasskeys } from './usePasskeys';\nexport { useUserHasPassKey } from './useUserHasPassKey';\n","import baseAPI from '@/api';\nimport { UserPasskey } from '@/models/user-passkey';\n\nexport async function fetchDeletePassKey(id: number) {\n const response = await baseAPI.delete(`/passkeys/${id}`);\n\n return response.data;\n}\n","import { useMutation, useQueryClient } from '@tanstack/react-query';\nimport { PasskeysQueryKeys } from '../../queryKey';\nimport { fetchDeletePassKey } from './service';\n\nexport function useDeletePassKey() {\n const queryClient = useQueryClient();\n\n function onSuccess() {\n queryClient.invalidateQueries({ queryKey: [PasskeysQueryKeys.Passkey] });\n }\n const { mutate, isPending, isError } = useMutation({\n mutationFn: fetchDeletePassKey,\n onSuccess,\n });\n\n return {\n deletePassKey: mutate,\n loadingDeletePassKey: isPending,\n isError,\n };\n}\n","export * from './useDeletePassKey';\n","export * from './queries';\nexport * from './mutations';\n","export enum PasskeysQueryKeys {\n Passkey = '/passkeys',\n UserHasPasskey = '/passkeys/user-has-passkey',\n}\n","import baseAPI from '@/api';\nimport { ReferralVoucher } from '@/models/referral-voucher';\nimport { ReferralVoucherByCodeRequest } from '@/services/dto/referral-vouchers/referral-voucher-by-code-request.dto';\nimport { QueryFunctionContext } from '@tanstack/react-query';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchReferralVoucherByCode({\n queryKey,\n}: QueryFunctionContext): Promise {\n const { voucher } = queryKey[1] as ReferralVoucherByCodeRequest;\n\n const response: AxiosResponse =\n await baseAPI.get('referral-vouchers/by-code', {\n params: {\n voucher,\n },\n });\n\n return response.data;\n}\n","import { ReferralVouchersQueryKeys } from '../../queryKeys';\nimport { UseReferralVoucherByCodeProps } from './props';\nimport { useQuery } from '@tanstack/react-query';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { fetchReferralVoucherByCode } from './service';\nimport { AuthService } from '@/services/AuthService';\nimport { ReferralVoucherByCodeRequest } from '@/services/dto/referral-vouchers/referral-voucher-by-code-request.dto';\nimport { useEffect } from 'react';\nimport { ReferralVoucher } from '@/models/referral-voucher';\n\nexport function useReferralVoucherByCode(\n options: UseReferralVoucherByCodeProps,\n) {\n const { enabled, voucher, refetchOnMount = true } = options ?? {};\n const queryKey = [\n ReferralVouchersQueryKeys.ByCode,\n {\n voucher,\n } as ReferralVoucherByCodeRequest,\n ];\n\n const { data, isPending, error, refetch, isError, fetchStatus, isSuccess } =\n useQuery>({\n queryKey,\n queryFn: fetchReferralVoucherByCode,\n enabled: enabled && !!voucher,\n refetchOnMount,\n });\n\n function onSuccess() {\n if (!data) {\n return;\n }\n\n AuthService.setVoucher(data?.code);\n }\n\n useEffect(onSuccess, [data]);\n\n function onError() {\n if (!error) {\n return;\n }\n\n AuthService.removeVoucher();\n }\n useEffect(onError, [error]);\n\n return {\n voucher: data,\n isLoading: isPending && fetchStatus !== 'idle',\n error,\n isError,\n refetch,\n isSuccess,\n };\n}\n","import { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseReferralVoucherMeQueryKey } from './props';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { ReferralVoucherWithStats } from '@/models/referral-voucher/with-stats';\nimport baseAPI from '@/api';\nimport { PaginatedRequestWithDateFilter } from '@/models/pagination/paginated-request-with-date-filter.dto';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchReferralVoucherMe({\n queryKey,\n}: QueryFunctionContext): Promise<\n PaginatedResponse\n> {\n const params: PaginatedRequestWithDateFilter = queryKey[1];\n\n const response: AxiosResponse> =\n await baseAPI.get>(\n '/referral-vouchers/me',\n {\n params,\n },\n );\n\n return response.data;\n}\n","import { DateFilter } from '@starsoft/common/models';\nimport { UseReferralVoucherMeQueryKey } from './props';\nimport { ReferralVouchersQueryKeys } from '../../queryKeys';\nimport { useState } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { fetchReferralVoucherMe } from './service';\nimport { ReferralVoucherWithStats } from '@/models/referral-voucher/with-stats';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { usePaginatedQuery } from '@starsoft/common/hooks';\n\nexport function useReferralVoucherMe({ endDate, startDate }: DateFilter) {\n const [page, setPage] = useState(1);\n const queryKey: UseReferralVoucherMeQueryKey = [\n ReferralVouchersQueryKeys.Me,\n {\n page,\n limit: 10,\n endDate,\n startDate,\n },\n ];\n\n const { data, isPending, error, refetch } = useQuery<\n PaginatedResponse,\n AxiosError,\n PaginatedResponse,\n UseReferralVoucherMeQueryKey\n >({\n queryKey,\n queryFn: fetchReferralVoucherMe,\n staleTime: 5 * 1000,\n });\n\n const { fetchNextPage, fetchPreviousPage, setCurrentPage } =\n usePaginatedQuery({\n page,\n setPage,\n data,\n queryParams: {\n endDate,\n startDate,\n },\n });\n\n return {\n error,\n refetch,\n isLoading: isPending,\n fetchNextPage,\n setCurrentPage,\n fetchPreviousPage,\n referralVouchers: data,\n page,\n };\n}\n","export { useReferralVoucherByCode } from './useReferralVoucherByCode';\nexport { useReferralVoucherMe } from './useReferralVoucherMe';\n","export * from './queries';\nexport * from './mutations';\n","import baseAPI from '@/api';\nimport { ReferralVoucher } from '@/models/referral-voucher';\nimport { CreateReferralVoucherRequestDto } from '@/services/dto/referral-vouchers/create-referral-voucher-request.dto';\nimport { AxiosResponse } from 'axios';\n\nexport async function createReferralVoucher(\n data: CreateReferralVoucherRequestDto,\n): Promise {\n const response: AxiosResponse =\n await baseAPI.post('/referral-vouchers', data);\n\n return response.data;\n}\n","import {\n QueryClient,\n useMutation,\n useQueryClient,\n} from '@tanstack/react-query';\nimport { createReferralVoucher } from './service';\nimport { ReferralVouchersQueryKeys } from '../../queryKeys';\nimport { useModal } from '@/hooks/modals/useModal';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { useNotificationService } from '@/hooks/notifications/useNotificationService';\n\nexport function useCreateReferralVoucher() {\n const queryClient: QueryClient = useQueryClient();\n const { onClose } = useModal(ModalsKey.CreateReferralVoucher);\n const { NotificationsService } = useNotificationService();\n\n function onSuccess() {\n NotificationsService.success({\n title: 'create_referral_voucher_success_title',\n message: 'create_referral_voucher_success_description',\n });\n queryClient.invalidateQueries({\n queryKey: [ReferralVouchersQueryKeys.Me],\n });\n onClose();\n }\n\n const { isPending, isError, data, error, mutate } = useMutation({\n mutationFn: createReferralVoucher,\n onSuccess,\n });\n\n return {\n isPending,\n isError,\n data,\n error,\n createReferralVoucher: mutate,\n };\n}\n","import baseAPI from '@/api';\nimport { Success } from '@/models/success';\nimport { EditReferralVoucherRequestDto } from '@/services/dto/referral-vouchers/edit-referral-voucher-request.dto';\nimport { AxiosResponse } from 'axios';\n\nexport async function editReferralVoucher({\n voucherId,\n ...data\n}: EditReferralVoucherRequestDto): Promise {\n const response: AxiosResponse = await baseAPI.patch(\n `/referral-vouchers/${voucherId}`,\n data,\n );\n\n return response.data;\n}\n","import {\n QueryClient,\n useMutation,\n useQueryClient,\n} from '@tanstack/react-query';\nimport { editReferralVoucher } from './service';\nimport { ReferralVouchersQueryKeys } from '../../queryKeys';\nimport { useModal } from '@/hooks/modals/useModal';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { useNotificationService } from '@/hooks/notifications/useNotificationService';\n\nexport function useEditReferralVoucher() {\n const queryClient: QueryClient = useQueryClient();\n const { onClose } = useModal(ModalsKey.EditReferralVoucher);\n const { NotificationsService } = useNotificationService();\n\n function onSuccess() {\n NotificationsService.success({\n title: 'edit_referral_voucher_title',\n message: 'edit_referral_voucher_description',\n });\n queryClient.invalidateQueries({\n queryKey: [ReferralVouchersQueryKeys.Me],\n });\n queryClient.invalidateQueries({\n queryKey: [ReferralVouchersQueryKeys.ByCode],\n });\n onClose();\n }\n\n const { isPending, isError, data, error, mutate } = useMutation({\n mutationFn: editReferralVoucher,\n onSuccess,\n });\n\n return {\n isPending,\n isError,\n data,\n error,\n editVoucher: mutate,\n };\n}\n","export { useCreateReferralVoucher } from './useCreateReferralVoucher';\nexport { useDeleteReferralVoucher } from './useDeleteReferralVoucher';\nexport { useEditReferralVoucher } from './useEditReferralVoucher';\n","import baseAPI from '@/api';\nimport { Success } from '@/models/success';\nimport { DeleteReferralVoucherRequestDto } from '@/services/dto/referral-vouchers/delete-referral-voucher-request.dto';\nimport { AxiosResponse } from 'axios';\n\nexport async function deleteReferralVoucher({\n voucherId,\n}: DeleteReferralVoucherRequestDto): Promise {\n const response: AxiosResponse = await baseAPI.delete(\n `/referral-vouchers/${voucherId}`,\n );\n return response.data;\n}\n","import {\n QueryClient,\n useMutation,\n useQueryClient,\n} from '@tanstack/react-query';\nimport { deleteReferralVoucher } from './service';\nimport { ReferralVouchersQueryKeys } from '../../queryKeys';\nimport { useModal } from '@/hooks/modals/useModal';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { useNotificationService } from '@/hooks/notifications/useNotificationService';\n\nexport function useDeleteReferralVoucher() {\n const queryClient: QueryClient = useQueryClient();\n const { onClose } = useModal(ModalsKey.DeleteReferralVoucher);\n const { NotificationsService } = useNotificationService();\n\n function onSuccess() {\n NotificationsService.success({\n title: 'delete_referral_voucher_title',\n message: 'delete_referral_voucher_description',\n });\n queryClient.invalidateQueries({\n queryKey: [ReferralVouchersQueryKeys.Me],\n });\n onClose();\n }\n\n const { isPending, isError, data, error, mutate } = useMutation({\n mutationFn: deleteReferralVoucher,\n onSuccess,\n });\n\n return {\n isPending,\n isError,\n data,\n error,\n deleteVoucher: mutate,\n };\n}\n","export enum ReferralVouchersQueryKeys {\n ByCode = 'referral-vouchers/by-code',\n Me = '/referral-vouchers/me',\n}\n","import { AuthStep } from '@/enums/auth/authStep';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { useCurrentModal } from '@/hooks/modals/useCurrentModal';\nimport { useSearchParams } from '@starsoft/common/hooks';\nimport { useRouter } from 'next/router';\nimport { useCallback } from 'react';\nimport { AuthSearchParamValues } from './props';\n\nexport default function useAuthSearchParams() {\n const search: URLSearchParams = useSearchParams();\n const step: AuthStep = (search.get('step') as AuthStep) ?? AuthStep.Form;\n const { push } = useRouter();\n const modal: string | undefined = useCurrentModal(ModalsKey);\n\n const handleSetAuthSearchParams = useCallback(\n (\n searchKey: K,\n value: AuthSearchParamValues[K],\n ) => {\n search.set(searchKey, value);\n push({\n search: search.toString(),\n hash: modal,\n });\n },\n [search, push, modal],\n );\n\n return {\n handleSetAuthSearchParams,\n step,\n };\n}\n","import { CookiesKey } from '@/enums/cookiesKey';\nimport { usePathname } from '@/hooks/usePathname';\nimport { Modal } from '@starsoft/common/components';\nimport { setCookie } from 'cookies-next';\nimport { useEffect } from 'react';\nimport { AuthModalLayoutProps } from './props';\n\nimport useModalVersion from '@/hooks/modals/useModalVersion';\nimport { SettingLayoutComponentId } from '@starsoft/common/models';\nimport dynamic from 'next/dynamic';\n\nconst LayoutV1 = dynamic(() => import('./v1'), { ssr: true });\nconst LayoutV2 = dynamic(() => import('./v2'), { ssr: true });\nconst LayoutV3 = dynamic(() => import('./v3'), { ssr: true });\n\nexport default function AuthModalLayout(props?: AuthModalLayoutProps) {\n const { open, id = '1', closeModalOnClickOutside } = props ?? {};\n const pathname: string = usePathname();\n const { version } = useModalVersion();\n\n function persistClientRouter() {\n if (!open) {\n return;\n }\n\n setCookie(CookiesKey.ClientRouter, pathname, {\n sameSite: 'strict',\n });\n }\n\n useEffect(persistClientRouter, [pathname, open]);\n\n function renderLayout() {\n switch (id?.toString()) {\n case SettingLayoutComponentId.DefaultLogin?.toString():\n default:\n return ;\n case SettingLayoutComponentId.MinimalLogin?.toString():\n return ;\n case SettingLayoutComponentId.LoginV3?.toString():\n return ;\n }\n }\n\n return (\n \n {renderLayout()}\n \n );\n}\n","export enum EmailProvidersQueryKeys {\n Primary = '/email-providers',\n}\n","import { QueryFunctionContext } from '@tanstack/react-query';\nimport { UseEmailProvidersQueryKeyProps } from './props';\nimport baseAPI from '@/api';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { EmailProviders } from '@/models/email-providers';\n\nexport async function fetchEmailProviders({\n queryKey,\n pageParam,\n}: QueryFunctionContext) {\n const { limit } = queryKey[1];\n\n const response = await baseAPI.get>(\n '/email-providers',\n {\n params: {\n page: pageParam,\n limit,\n },\n },\n );\n\n return response.data;\n}\n","import { EmailProvidersQueryKeys } from '../../queryKey';\nimport { PaginatedRequest } from '@/models/pagination/paginated-request';\nimport {\n UseEmailProvidersProps,\n UseEmailProvidersQueryKeyProps,\n} from './props';\nimport { InfiniteData } from '@tanstack/react-query';\nimport { useInfiniteQuery } from '@starsoft/common/services/query-client';\nimport { fetchEmailProviders } from './service';\nimport { PaginatedResponse } from '@/models/pagination/paginated-response.dto';\nimport { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport {\n useInfiniteQueryCallbacks,\n useInfiniteQueryReset,\n} from '@starsoft/common/hooks';\nimport { EmailProviders } from '@/models/email-providers';\nimport { useMemo } from 'react';\n\nexport function useEmailProviders(options?: UseEmailProvidersProps) {\n const { enabled = true } = options ?? {};\n const filter: PaginatedRequest = {\n limit: 8,\n };\n\n const queryKey: UseEmailProvidersQueryKeyProps = [\n EmailProvidersQueryKeys.Primary,\n filter,\n ];\n\n const { getNextPageParam, getPreviousPageParam } =\n useInfiniteQueryCallbacks();\n useInfiniteQueryReset(queryKey);\n\n const { data, isPending, error, refetch, ...rest } = useInfiniteQuery<\n PaginatedResponse,\n AxiosError,\n InfiniteData>,\n UseEmailProvidersQueryKeyProps\n >({\n queryKey,\n queryFn: fetchEmailProviders,\n getNextPageParam,\n getPreviousPageParam,\n initialPageParam: 1,\n enabled,\n });\n\n const emailProviders = useMemo(\n () => data?.pages?.flatMap(page => page?.data),\n [data],\n );\n\n return {\n ...rest,\n error,\n refetch,\n isLoading: isPending,\n emailProviders,\n };\n}\n","export { useEmailProviders } from './useEmailProviders';\n","export * from './queries';\n","import {\n FormGroup,\n Input,\n SelectInput,\n SelectOptionWithHighlight,\n} from '@starsoft/common/components';\nimport { useFormContext } from 'react-hook-form';\nimport useTranslation from 'next-translate/useTranslation';\nimport { RegisterFormProps } from '@/types/register/props';\nimport { AuthModalContentRegisterEmailInputProps } from './props';\nimport { useEmailProviders } from '@/api/email-providers';\nimport React, { useCallback, useMemo } from 'react';\nimport { EmailProviders } from '@/models/email-providers';\nimport { LoginFormProps } from '@/types/login/props';\n\nexport default function AuthModalContentEmailInput({\n isValidEmail,\n}: AuthModalContentRegisterEmailInputProps) {\n const { t: tCommon } = useTranslation('common');\n const { t } = useTranslation('register');\n const {\n setValue,\n formState: { touchedFields },\n watch,\n } = useFormContext();\n\n const email: string = watch('email');\n const domain: string = email?.split('@')?.[1];\n\n const {\n emailProviders,\n isLoading,\n error,\n refetch,\n hasNextPage,\n fetchNextPage,\n isFetchingNextPage,\n } = useEmailProviders();\n\n const emailHasOneOfProvidersExternal: boolean = useMemo(\n () => emailProviders?.some(provider => email?.includes(provider?.domain)),\n [emailProviders, email],\n );\n\n const options: EmailProviders[] = useMemo(() => {\n if (!domain) {\n return emailProviders;\n }\n\n return emailProviders?.filter(provider =>\n provider?.domain?.includes(domain),\n );\n }, [domain, emailProviders]);\n\n const handleChange = useCallback(\n (\n e: React.ChangeEvent,\n handleOpen: VoidFunction,\n open: boolean,\n ) => {\n const { value } = e.target;\n const emailHasOneOfProviders = emailProviders?.some(provider =>\n value.includes(provider?.domain),\n );\n\n if (\n emailHasOneOfProviders === open &&\n e.target == document?.activeElement\n ) {\n handleOpen();\n }\n\n setValue('email', value);\n\n if (!value) {\n handleOpen();\n }\n },\n [setValue, emailProviders],\n );\n\n const loadMore = useCallback(fetchNextPage, [fetchNextPage]);\n\n const handleSetEmailProvider = useCallback(\n (e: EmailProviders) => {\n setValue('email', `${email?.split('@')?.[0]}@${e?.domain}`, {\n shouldDirty: true,\n });\n },\n [setValue, email],\n );\n\n return (\n e?.domain}\n getOptionValue={e => e?.id}\n value={undefined}\n isAsync\n hasNextPage={hasNextPage}\n loadMore={loadMore}\n loadingMore={isLoading || isFetchingNextPage}\n setValue={handleSetEmailProvider}\n error={error}\n refetch={refetch}\n customComponents={{\n customInput({ handleOpen, open }) {\n return (\n \n handleChange(e, handleOpen, open)}\n isError={!isValidEmail && touchedFields?.email}\n errorMessage={tCommon('invalid_email')}\n onFocus={() => {\n if (\n !open &&\n !emailHasOneOfProvidersExternal &&\n email?.length > 0\n ) {\n handleOpen();\n }\n }}\n icon={isValidEmail ? 'fa-solid fa-circle-check' : undefined}\n hasPaddingRight\n />\n \n );\n },\n customOption: ({ handleSelect, key, option, selected }) => (\n \n ),\n }}\n />\n );\n}\n","import baseAPI from '@/api';\nimport { RefreshAuthorizationOutputDto } from '@/services/dto/user-sessions/refresh-authorization-output.dto';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchRefresh(): Promise {\n const response: AxiosResponse =\n await baseAPI.post('iam/refresh');\n\n return response.data;\n}\n","import { AxiosError } from 'axios';\nimport { GenericError } from '@/models/generic-error';\nimport { useMutation } from '@tanstack/react-query';\nimport { fetchRefresh } from './service';\nimport { AuthService } from '@/services/AuthService';\nimport { RefreshAuthorizationOutputDto } from '@/services/dto/user-sessions/refresh-authorization-output.dto';\nimport { ErrorService } from '@starsoft/common/services';\n\nexport function useRefresh() {\n function onSuccess(data: RefreshAuthorizationOutputDto) {\n AuthService.setToken(data.accessToken);\n AuthService.setRefreshToken(data.refreshToken);\n }\n\n function onError(error: AxiosError) {\n ErrorService.onError(error);\n AuthService.logOut();\n }\n\n const { mutate, isPending, error, mutateAsync } = useMutation({\n onError,\n onSuccess,\n mutationFn: fetchRefresh,\n });\n\n return {\n refreshTokens: mutate,\n refreshTokensAsync: mutateAsync,\n isPending,\n error,\n };\n}\n","import { useLogin, useRegister } from '@/api/iam';\nimport { useRefresh } from '@/api/iam/mutations/useRefresh';\nimport { useReferralVoucherByCode } from '@/api/referral-vouchers';\nimport { useUserAccount } from '@/api/user';\nimport { AuthStep } from '@/enums/auth/authStep';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { useSystemConfiguration } from '@/hooks/theme/useSystemConfiguration';\nimport { useLoginCallback } from '@/hooks/useLogInCallback';\nimport { AuthLoginRequestDto } from '@/services/dto/auth/auth-login-request.dto';\nimport { useKycMeByOriginId } from '@starsoft/common/api';\nimport { CreateKycRequestDto } from '@starsoft/common/dto';\nimport {\n KycCheckpointId,\n KycIdentityOriginId,\n KYCStatus,\n} from '@starsoft/common/enums';\nimport {\n useCurrentModal,\n useDebounce,\n useKycFormSubmission,\n useKycNavigation,\n useNotificationService,\n} from '@starsoft/common/hooks';\nimport { useUserIdentityValidateByOriginId } from '@starsoft/common/hooks/user-identity/useUserIdentityValidateByOriginId';\nimport { Either } from '@starsoft/common/interfaces';\nimport { useEffect } from 'react';\nimport { Path } from 'react-hook-form';\nimport useAuthSearchParams from '../useAuthSearchParams';\nimport { UseAuthFormProps } from './props';\n\nexport default function useAuthForm({ methods }: UseAuthFormProps) {\n const { step } = useAuthSearchParams();\n const { refreshTokensAsync } = useRefresh();\n const loginCallback = useLoginCallback();\n const modal: Either = useCurrentModal(\n ModalsKey,\n ) as Either;\n\n const { watch, setValue } = methods ?? {};\n const NotificationsService = useNotificationService();\n\n const { isPartialAuthorized } = useUserAccount();\n const { originId } = useSystemConfiguration();\n const kycMeByOriginIdQuery = useKycMeByOriginId({\n enabled:\n modal === ModalsKey.Login && isPartialAuthorized && step === AuthStep.Kyc,\n });\n const { kyc } = kycMeByOriginIdQuery;\n\n const {\n handleSetKycAndStepSearchParams,\n kycCheckpointIdSearch: kycCheckpointId,\n } = useKycNavigation({\n externalEnabled:\n modal === ModalsKey.Login && isPartialAuthorized && step === AuthStep.Kyc,\n });\n const { handleKycSubmission, isLoadingKycSubmission } =\n useKycFormSubmission({\n kyc,\n methods,\n externalOriginId: originId,\n enabled:\n modal === ModalsKey.Login &&\n step === AuthStep.Kyc &&\n kycCheckpointId?.toString() ===\n KycCheckpointId.VerifiedEmail?.toString(),\n });\n\n const isFormStep = step === AuthStep.Form;\n\n const useLoginMutation = useLogin();\n const useRegisterMutation = useRegister();\n const { mutate: login, requires2fa } = useLoginMutation;\n const { mutate: register } = useRegisterMutation;\n\n //user validation by origin\n const identifier = watch('identity.identifier' as Path);\n const birthDate = watch('identity.birthDate' as Path);\n const name = watch('identity.name' as Path);\n const formVoucher = watch('voucher' as Path);\n\n const debouncedVoucher = useDebounce(String(formVoucher) ?? '', 500);\n\n const useReferralVoucherByCodeQuery = useReferralVoucherByCode({\n refetchOnMount: 'always',\n voucher: debouncedVoucher,\n enabled:\n !!debouncedVoucher &&\n debouncedVoucher?.length >= 21 &&\n modal === ModalsKey.Register &&\n step === AuthStep.Form,\n });\n const { voucher: voucherData } = useReferralVoucherByCodeQuery;\n\n const debouncedIdentifier = useDebounce(identifier);\n const debouncedName = useDebounce(name);\n const debouncedBirthDate = useDebounce(birthDate);\n\n const payload = {\n identifier: String(debouncedIdentifier),\n name: debouncedName ? String(debouncedName) : undefined,\n birthDate: birthDate ? String(debouncedBirthDate) : undefined,\n originId: originId?.toString(),\n };\n\n const useUserIdentityValidateByOriginIdQuery =\n useUserIdentityValidateByOriginId({\n payload,\n originId: originId?.toString(),\n enabled: step == AuthStep.Kyc && !!identifier,\n });\n\n //form validation\n const email = watch('email' as Path);\n const password = watch('password' as Path);\n const emailPattern: RegExp =\n /^(?!.*\\s)[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$/i;\n const isValidEmail = emailPattern.test(String(email));\n const isPasswordEmpty = String(password)?.length === 0;\n const isValidPasswordLength =\n String(password)?.length >= 4 && String(password)?.length <= 128;\n const isValidPassword = isValidPasswordLength && !isPasswordEmpty;\n\n const isInvalidForm =\n !isValidEmail ||\n !isValidPassword ||\n (originId?.toString() === KycIdentityOriginId.Brazil?.toString() &&\n step === AuthStep.Form &&\n modal === ModalsKey.Register\n ? !identifier\n : false);\n\n const onSubmit = async ({\n email,\n password,\n ...data\n }: AuthLoginRequestDto & CreateKycRequestDto) => {\n const invalid: boolean =\n email?.trim?.().length == 0 || password?.trim?.().length == 0;\n\n if (invalid) {\n NotificationsService.error({\n title: 'form_error_title',\n message: 'form_error_description',\n });\n return;\n }\n\n switch (step) {\n case AuthStep.Form:\n switch (modal) {\n case ModalsKey.Register:\n register({\n email,\n password,\n voucher: voucherData?.code,\n identityId:\n originId?.toString() === KycIdentityOriginId.Brazil?.toString()\n ? data?.identityId\n : undefined,\n });\n break;\n case ModalsKey.Login:\n login({ email, password, code: data?.code });\n break;\n }\n break;\n case AuthStep.Kyc:\n const kycResponse = await handleKycSubmission(\n data as CreateKycRequestDto,\n );\n\n if (kycResponse?.status === KYCStatus.Verified) {\n const tokens = await refreshTokensAsync();\n loginCallback(tokens);\n return;\n }\n\n if (kycResponse?.stage?.checkpoint?.id) {\n handleSetKycAndStepSearchParams(\n kycResponse?.stage?.checkpoint?.id,\n AuthStep.Kyc,\n );\n }\n break;\n }\n };\n\n const onError = () => {\n NotificationsService.error({\n title: 'form_error_title',\n message: 'form_error_description',\n });\n };\n\n function handleResetOtpCode() {\n if (!requires2fa) {\n setValue('code' as Path, undefined, { shouldDirty: false });\n }\n }\n\n useEffect(handleResetOtpCode, [requires2fa, setValue]);\n\n return {\n isInvalidForm,\n isValidEmail,\n isValidPassword,\n email,\n isFormStep,\n step,\n useLoginMutation: {\n ...useLoginMutation,\n isLoading: isLoadingKycSubmission || useLoginMutation?.isLoading,\n },\n useUserIdentityValidateByOriginIdQuery,\n onSubmit,\n onError,\n kycMeByOriginIdQuery,\n useReferralVoucherByCodeQuery,\n voucherData,\n useRegisterMutation,\n kycCheckpointId,\n };\n}\n","import { useFormContext } from 'react-hook-form';\nimport AuthModalContentEmailInput from '@/components/AuthModal/Content/Common/EmailInput';\nimport { LoginFormProps } from '@/types/login/props';\nimport useAuthForm from '@/hooks/auth/useAuthForm';\n\nexport default function LoginEmailContent() {\n const methods = useFormContext();\n const { isValidEmail } = useAuthForm({ methods });\n\n return ;\n}\n","import { useFormContext } from 'react-hook-form';\nimport useTranslation from 'next-translate/useTranslation';\nimport { FormGroup, Input } from '@starsoft/common/components';\nimport { AuthLoginRequestDto } from '@/services/dto/auth/auth-login-request.dto';\n\nexport default function LoginPasswordContent() {\n const { register } = useFormContext();\n const { t } = useTranslation('login');\n\n return (\n \n \n \n );\n}\n","import LoginEmailContent from '../Email';\nimport LoginPasswordContent from '../Password';\n\nexport default function AuthModalContentLoginStepsForm() {\n return (\n <>\n \n \n \n );\n}\n","import { AuthStep } from '@/enums/auth/authStep';\nimport useAuthSearchParams from '@/hooks/auth/useAuthSearchParams';\nimport UserIdentityForm from '@starsoft/common/components/KYC/UserIdentity/Form';\nimport AuthModalContentLoginStepsForm from '../../Form';\nimport { useSystemConfiguration } from '@/hooks/theme/useSystemConfiguration';\n\nexport default function AuthModalContentLoginStepsOriginRendererBrazil() {\n const { step } = useAuthSearchParams();\n const { originId } = useSystemConfiguration();\n\n switch (step) {\n case AuthStep.Form:\n return ;\n case AuthStep.Kyc:\n return ;\n default:\n return ;\n }\n}\n","import { useSystemConfiguration } from '@/hooks/theme/useSystemConfiguration';\nimport { OriginId } from '@starsoft/common/models/origin/id';\nimport AuthModalContentLoginStepsOriginRendererBrazil from './Brazil';\nimport AuthModalContentLoginStepsForm from '../Form';\n\nexport default function AuthModalContentLoginStepsOriginRenderer() {\n const { originId } = useSystemConfiguration();\n switch (originId?.toString()) {\n case OriginId.Brazil?.toString():\n return ;\n default:\n return ;\n }\n}\n","import AuthModalContentLoginStepsOriginRenderer from './OriginRenderer';\n\nexport default function AuthModalContentLoginSteps() {\n return ;\n}\n","import { Transition, Variants } from 'framer-motion';\n\nconst transition: Transition = { duration: 0.3, ease: 'circIn' };\n\nexport const slideInRight: Variants = {\n hidden: {\n x: 200,\n pointerEvents: 'none',\n transition,\n },\n visible: {\n x: 0,\n transition,\n pointerEvents: 'all',\n },\n};\n","import { useFormContext } from 'react-hook-form';\nimport styles from './styles.module.scss';\nimport { AuthLoginRequestDto } from '@/services/dto/auth/auth-login-request.dto';\nimport { Requires2faProps } from './props';\nimport useTranslation from 'next-translate/useTranslation';\nimport { FormGroup } from '@starsoft/common/components';\nimport { ValidateCodeInput } from '@starsoft/common/components';\nimport { Button } from '@starsoft/common/components';\nimport { m as motion } from 'framer-motion';\nimport { slideInRight } from './variants';\nimport { AuthService } from '@/services/AuthService';\n\nexport default function Requires2faContent({\n onClose,\n isLoading,\n}: Requires2faProps) {\n const { t } = useTranslation('login');\n const { setValue, watch } = useFormContext();\n\n function handleCode(code: string) {\n setValue('code', code);\n }\n\n const code = watch('code');\n\n return (\n \n \n \n {t('back_button')}\n \n \n \n \n \n {t('submit_label')}\n \n \n );\n}\n","import useTranslation from 'next-translate/useTranslation';\nimport { OAuthButtonProps } from './props';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { AuthService } from '@/services/AuthService';\nimport { Image } from '@starsoft/common/components';\nimport styles from './styles.module.scss';\nimport Link from '@/components/core/Link';\nimport { useModal } from '@/hooks/modals/useModal';\n\nexport default function OAuthButton({\n image,\n label,\n to,\n icon,\n pageRedirect,\n}: OAuthButtonProps) {\n const { t } = useTranslation('login');\n const { isOpen: isRegisterPage } = useModal(ModalsKey.Register);\n const voucher = AuthService.getVoucher();\n\n if (pageRedirect) {\n return (\n \n {icon && }\n {image && (\n \n )}\n {t(label)}\n \n );\n }\n\n return (\n \n {icon && }\n {image && (\n \n )}\n {t(label)}\n \n );\n}\n","import OAuthButton from './Button';\nimport styles from './styles.module.scss';\nimport { OAuthProps } from './props';\nimport { useModal } from '@starsoft/common/hooks';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { LocalStorageKey } from '@/enums/localStorageKey';\n\nexport default function OAuthRow({ direction = 'row', voucher }: OAuthProps) {\n const { isOpen: isRegisterModalOpen } = useModal(ModalsKey.Register);\n\n return (\n
\n \n \n\n \n
\n \n );\n}\n","import useTranslation from 'next-translate/useTranslation';\nimport styles from '../styles.module.scss';\nimport { AuthModalContentLoginLayoutOptProps } from './props';\nimport OAuthRow from '../../../OAuth';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport Link from '@/components/core/Link';\n\nexport default function AuthModalContentLoginLayoutOpt({\n isVariant,\n showOauth,\n}: AuthModalContentLoginLayoutOptProps) {\n const { t: tRegister } = useTranslation('register');\n const { t } = useTranslation('login');\n\n return (\n <>\n {showOauth && (\n <>\n \n {tRegister('register_label_binding')}\n \n \n \n )}\n {!isVariant && (\n \n {t('register_text')}\n \n {t('register_label')}\n \n \n )}\n \n );\n}\n","import { useSystemConfiguration } from '@/hooks/theme/useSystemConfiguration';\nimport useAuthForm from '../useAuthForm';\nimport { UseAuthFormStateProps } from './props';\nimport { AuthStep } from '@/enums/auth/authStep';\nimport { OriginId } from '@starsoft/common/models/origin/id';\nimport { UserIdentity } from '@starsoft/common/models';\nimport { UserIdentityStatus } from '@starsoft/common/enums';\nimport { Path } from 'react-hook-form';\nimport { KycCheckpointId } from '@/enums/kycCheckpointId';\n\nexport function useAuthFormState({ methods }: UseAuthFormStateProps) {\n const {\n isInvalidForm,\n step,\n kycCheckpointId,\n useUserIdentityValidateByOriginIdQuery: {\n data: personalIdentityLookup,\n error: errorPersonalIdentityLookup,\n },\n } = useAuthForm({ methods });\n const { watch } = methods;\n\n const { originId } = useSystemConfiguration();\n const identifier = watch('identity.identifier' as Path);\n const code = watch('code' as Path);\n\n switch (step) {\n case AuthStep.Form:\n return isInvalidForm;\n case AuthStep.Kyc:\n switch (originId) {\n case OriginId.Brazil:\n switch (BigInt(kycCheckpointId)) {\n case KycCheckpointId.Identity:\n case KycCheckpointId.VerifiedTaxId:\n return (\n !identifier ||\n (personalIdentityLookup as unknown as UserIdentity)?.status ==\n UserIdentityStatus.Invalid ||\n !!errorPersonalIdentityLookup\n );\n case KycCheckpointId.DocumentSubmission:\n return true;\n case KycCheckpointId.VerifiedEmail:\n return !!code && typeof code === 'string' && code.length === 6;\n }\n }\n }\n}\n","import useAuthForm from '../useAuthForm';\nimport { UseAuthFormButtonLabelProps } from './props';\nimport { AuthStep } from '@/enums/auth/authStep';\nimport useTranslation from 'next-translate/useTranslation';\nimport { KycCheckpointId } from '@starsoft/common/enums';\nimport { useCurrentModal } from '@starsoft/common/hooks';\nimport { Either } from '@starsoft/common/interfaces';\nimport { ModalsKey } from '@/enums/modalsKey';\n\nexport function useAuthFormButtonLabel({\n methods,\n}: UseAuthFormButtonLabelProps) {\n const { t } = useTranslation('login');\n const modal: Either = useCurrentModal(\n ModalsKey,\n ) as Either;\n\n const {\n step,\n kycMeByOriginIdQuery: { firstValidStep },\n } = useAuthForm({ methods });\n\n switch (step) {\n case AuthStep.Form:\n switch (modal) {\n case ModalsKey.Register:\n return t('register_label');\n case ModalsKey.Login:\n return t('submit_label');\n default:\n return t('submit_label');\n }\n case AuthStep.Kyc:\n switch (firstValidStep?.toString()) {\n case KycCheckpointId.AddressVerification?.toString():\n return t('common:address_verification_label');\n case KycCheckpointId.CriminalRecordCheck?.toString():\n return t('common:criminal_record_check_label');\n case KycCheckpointId.DocumentSubmission?.toString():\n return t('common:document_submission_label');\n case KycCheckpointId.Identity?.toString():\n return t('common:identity_label');\n case KycCheckpointId.VerifiedTaxId?.toString():\n return t('common:verified_tax_id_label');\n case KycCheckpointId.ProofOfResidence?.toString():\n return t('common:proof_of_residence_label');\n case KycCheckpointId.ProofOfIncome?.toString():\n return t('common:proof_of_income_label');\n case KycCheckpointId.VerifiedEmail?.toString():\n return t('common:verified_email_label');\n case KycCheckpointId.VerifiedPhoneNumber?.toString():\n return t('common:verified_phone_number_label');\n default:\n return t('submit_label');\n }\n }\n}\n","import baseAPI from '@/api';\nimport { AxiosResponse } from 'axios';\nimport {\n AuthLoginRequestDto,\n AuthLoginResponseDto,\n} from '@starsoft/common/dto';\nimport { AuthenticationResponseJSON } from '@simplewebauthn/browser';\nimport { LocalStorageKey } from '@/enums/localStorageKey';\n\nexport async function fetchPassKeyLogin(\n data: Pick & {\n payload: AuthenticationResponseJSON;\n },\n): Promise {\n const response: AxiosResponse =\n await baseAPI.post('/iam/passkey-login', data, {\n headers: {\n 'x-device-id': localStorage.getItem(LocalStorageKey.UserUUID),\n },\n });\n return response.data;\n}\n","import { useMutation } from '@tanstack/react-query';\nimport { fetchPassKeyLogin } from './service';\nimport { UsePassKeyLoginProps } from './props';\nimport { useLoginCallback } from '@/hooks/useLogInCallback';\nimport { LoginByEmailSuccessOutputDto } from '@starsoft/common/dto';\n\nexport function usePassKeyLogin(props?: UsePassKeyLoginProps) {\n const { externalOnSuccess: externalSuccess }: UsePassKeyLoginProps =\n props ?? {};\n const login = useLoginCallback();\n const { mutate, isPending, isSuccess } = useMutation({\n mutationFn: fetchPassKeyLogin,\n onSuccess: data => {\n login(data as LoginByEmailSuccessOutputDto);\n },\n });\n\n return {\n passKeyLogin: mutate,\n isPending,\n isSuccess,\n };\n}\n","import baseAPI from '@/api';\nimport { Success } from '@/models/success';\nimport { AxiosResponse } from 'axios';\nimport {\n PublicKeyCredentialRequestOptionsJSON,\n RegistrationResponseJSON,\n} from '@simplewebauthn/browser';\nimport { AuthLoginRequestDto } from '@starsoft/common/dto';\n\nexport async function fetchGeneratePassKeyAuthentication(\n data: Pick,\n): Promise {\n const response: AxiosResponse =\n await baseAPI.post(\n '/iam/generate-passkey-authentication',\n data,\n );\n return response.data;\n}\n","import { useMutation } from '@tanstack/react-query';\nimport { fetchGeneratePassKeyAuthentication } from './service';\nimport { UseGeneratePassKeyAuthenticationProps } from './props';\n\nexport function useGeneratePassKeyAuthentication(\n props?: UseGeneratePassKeyAuthenticationProps,\n) {\n const {\n externalOnSuccess: externalSuccess,\n }: UseGeneratePassKeyAuthenticationProps = props ?? {};\n const { mutate, isPending, isSuccess } = useMutation({\n mutationFn: fetchGeneratePassKeyAuthentication,\n onSuccess: externalSuccess,\n });\n\n return {\n generatePassKeyAuthentication: mutate,\n isPending,\n isSuccess,\n };\n}\n","import useTranslation from 'next-translate/useTranslation';\nimport styles from './styles.module.scss';\nimport { Button } from '@starsoft/common/components';\nimport { useSearchParams } from '@starsoft/common/hooks';\nimport { AuthStep } from '@/enums/auth/authStep';\nimport { useVerifyPassKeyRegistration } from '@/api/iam/mutations/useVerifyPassKeyRegistration';\nimport { useCallback } from 'react';\nimport {\n PublicKeyCredentialRequestOptionsJSON,\n startAuthentication,\n} from '@simplewebauthn/browser';\nimport { useGenerateRegistrationOptions } from '@/api/iam/mutations/useGenerateRegistrationOptions';\nimport { usePassKeyLogin } from '@/api/iam/mutations/usePassKeyLogin';\nimport { useGeneratePassKeyAuthentication } from '@/api/iam/mutations/useGeneratePassKeyAuthentication';\nimport { useFormContext } from 'react-hook-form';\nimport { AuthLoginRequestDto } from '@starsoft/common/dto';\nimport { getComputedColor } from '@starsoft/common/utils';\n\nexport default function PassKeyButton() {\n const { t } = useTranslation('common');\n const search = useSearchParams();\n const isKyc = search.get('step') === AuthStep.Kyc;\n const { watch } = useFormContext();\n const { passKeyLogin, isPending: pendingPassKeyLogin } = usePassKeyLogin();\n const email = watch('email');\n\n const onSuccess = async (data: PublicKeyCredentialRequestOptionsJSON) => {\n try {\n const credential = await startAuthentication({\n optionsJSON: data,\n });\n passKeyLogin({\n email,\n payload: credential,\n });\n } catch (error) {\n console.log(error);\n }\n };\n\n const { generatePassKeyAuthentication, isPending } =\n useGeneratePassKeyAuthentication({\n externalOnSuccess: onSuccess,\n });\n\n function handleClick() {\n generatePassKeyAuthentication({ email });\n }\n\n if (isKyc) {\n return null;\n }\n\n return (\n
\n {/*
\n
\n \n {t('make_login_easier')}\n \n
\n
*/}\n \n \n {t('passkey_label')}\n \n
\n );\n}\n","import { FormProvider, useForm } from 'react-hook-form';\nimport useTranslation from 'next-translate/useTranslation';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport Link from '@/components/core/Link';\nimport styles from './styles.module.scss';\nimport { Animation } from '@starsoft/common/components';\nimport { Button } from '@starsoft/common/components';\nimport { AnimatePresence } from 'framer-motion';\nimport { AuthLoginRequestDto } from '@/services/dto/auth/auth-login-request.dto';\nimport { memo, PropsWithChildren } from 'react';\nimport { AuthService } from '@/services/AuthService';\nimport Requires2faContent from './Requires2fa';\nimport useAuthForm from '@/hooks/auth/useAuthForm';\nimport { SettingLayoutComponentId } from '@starsoft/common/models';\nimport AuthModalContentLoginLayoutOpt from './Opt';\nimport { useAuthFormState } from '@/hooks/auth/useAuthFormState';\nimport { useAuthFormButtonLabel } from '@/hooks/auth/useAuthFormButtonLabel';\nimport { CookiesKey, KycCheckpointId } from '@starsoft/common/enums';\nimport { useSystemConfiguration } from '@/hooks/theme/useSystemConfiguration';\nimport { OriginId } from '@starsoft/common/models/origin/id';\nimport { getCookie } from 'cookies-next';\nimport PassKeyButton from '../../Common/PassKeyButton';\nimport { useUserHasPassKey } from '@/api/passkeys';\nimport { Collapse } from '@mui/material';\nfunction LoginLayout({\n children,\n id = 1n,\n}: PropsWithChildren<{ id?: bigint }>) {\n const methods = useForm();\n const { handleSubmit } = methods;\n const { t } = useTranslation('login');\n const {\n isFormStep,\n step,\n email,\n kycCheckpointId,\n useLoginMutation: { isLoading, requires2fa, onClose },\n onSubmit,\n onError,\n } = useAuthForm({ methods });\n\n const { userHasPassKey } = useUserHasPassKey({\n email,\n });\n const formState = useAuthFormState({ methods });\n const label = useAuthFormButtonLabel({ methods });\n const isVariant =\n id?.toString() === SettingLayoutComponentId.LoginV3?.toString();\n const { originId } = useSystemConfiguration();\n\n return (\n \n \n \n \n \n {requires2fa && (\n \n )}\n \n {children}\n {isFormStep && (\n \n {t('forgot_password')}\n \n )}\n {kycCheckpointId?.toString() !==\n KycCheckpointId.DocumentSubmission?.toString() && (\n
\n \n {label}\n \n
\n )}\n \n \n \n \n \n
\n \n \n );\n}\n\nexport default memo(LoginLayout);\n","import React from 'react';\nimport AuthModalContentLoginSteps from './Steps';\nimport LoginLayout from '../Layout';\n\nexport default function LoginModal({ id }: { id: bigint }) {\n return (\n \n \n \n );\n}\n","import LoginModal from './Content';\n\nexport default function AuthModalContentLogin({ id }: { id: bigint }) {\n return ;\n}\n","import baseAPI from '@/api';\nimport { Success } from '@/models/success';\nimport { GenerateRecoveryPasswordTokenInputDto } from '@/services/dto/recovery-passwords/generate-recovery-password-token-input.dto';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchGenerateRecoveryPasswordToken(\n data: GenerateRecoveryPasswordTokenInputDto,\n): Promise {\n const response: AxiosResponse = await baseAPI.post(\n '/recovery-passwords/generate-token',\n data,\n );\n return response.data;\n}\n","import { ModalsKey } from '@/enums/modalsKey';\nimport { useModalNavigation } from '@/hooks/modals/useModalNavigation';\nimport { useMutation } from '@tanstack/react-query';\nimport { fetchGenerateRecoveryPasswordToken } from './service';\nimport { GenerateRecoveryPasswordTokenInputDto } from '@/services/dto/recovery-passwords/generate-recovery-password-token-input.dto';\nimport { Success } from '@/models/success';\nimport { useDispatch } from 'react-redux';\nimport { setRecoverEmail } from '@/lib/store/auth/actions';\n\nexport function useGenerateRecoveryPasswordToken() {\n const { navigateToModal } = useModalNavigation();\n const dispatch = useDispatch();\n\n function onSuccess(_: Success, input: GenerateRecoveryPasswordTokenInputDto) {\n navigateToModal(ModalsKey.RecoverPasswordReset);\n dispatch(setRecoverEmail(input.email));\n }\n\n const { mutate, isPending } = useMutation({\n mutationFn: fetchGenerateRecoveryPasswordToken,\n onSuccess,\n });\n\n return {\n generateRecoveryPasswordToken: mutate,\n isPending,\n };\n}\n","import baseAPI from '@/api';\nimport { Success } from '@/models/success';\nimport { RecoveryPasswordResetInputDto } from '@/services/dto/recovery-passwords/recovery-password-reset-input.dto';\nimport { AxiosResponse } from 'axios';\n\nexport async function fetchRecoveryPasswordReset(\n data: RecoveryPasswordResetInputDto,\n): Promise {\n const response: AxiosResponse = await baseAPI.patch(\n '/recovery-passwords/reset',\n data,\n );\n return response.data;\n}\n","import { ModalsKey } from '@/enums/modalsKey';\nimport { useModalNavigation } from '@/hooks/modals/useModalNavigation';\nimport { useMutation } from '@tanstack/react-query';\nimport { fetchRecoveryPasswordReset } from './service';\nimport { useNotificationService } from '@/hooks/notifications/useNotificationService';\n\nexport function useRecoveryPasswordReset() {\n const { navigateToModal } = useModalNavigation();\n const { NotificationsService } = useNotificationService();\n\n function onSuccess() {\n NotificationsService.success({\n title: 'recover_password_title',\n message: 'change_password_success_text',\n });\n navigateToModal(ModalsKey.Login);\n }\n\n const { mutate, isPending } = useMutation({\n mutationFn: fetchRecoveryPasswordReset,\n onSuccess,\n });\n\n return {\n reset: mutate,\n isPending,\n };\n}\n","export { useGenerateRecoveryPasswordToken } from './useGenerateRecoveryPasswordToken';\nexport { useRecoveryPasswordReset } from './useRecoveryPasswordReset';\n","export * from './mutations';\n","import { useForm } from 'react-hook-form';\nimport styles from './styles.module.scss';\nimport { GenerateRecoveryPasswordTokenInputDto } from '@/services/dto/recovery-passwords/generate-recovery-password-token-input.dto';\nimport { useModalNavigation } from '@/hooks/modals/useModalNavigation';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { Button, Input } from '@starsoft/common/components';\nimport useTranslation from 'next-translate/useTranslation';\nimport { useGenerateRecoveryPasswordToken } from '@/api/recovery-passwords';\n\nexport default function GenerateRecoveryPasswordToken() {\n const { t } = useTranslation();\n const { watch, register, handleSubmit } =\n useForm();\n const { navigateToModal } = useModalNavigation();\n const { generateRecoveryPasswordToken, isPending } =\n useGenerateRecoveryPasswordToken();\n const email: string | undefined = watch('email');\n\n function handleBack() {\n navigateToModal(ModalsKey.Login);\n }\n\n function onSubmit(data: GenerateRecoveryPasswordTokenInputDto) {\n if (!data?.email) {\n return;\n }\n\n generateRecoveryPasswordToken(data);\n }\n\n return (\n
\n \n\n
\n \n\n \n
\n \n );\n}\n","import { useForm, useFormContext } from 'react-hook-form';\nimport { FormProps } from '../props';\nimport { ResetPasswordRendererProps } from './props';\nimport VerificationCode from '@/components/SmsConfirmation';\nimport styles from '../styles.module.scss';\nimport useTranslation from 'next-translate/useTranslation';\nimport {\n BarPasswordStrong,\n FormGroup,\n Input,\n ValidateCodeInput,\n} from '@starsoft/common/components';\nimport { ChangeEvent, useState } from 'react';\nimport zxcvbn, { ZXCVBNResult } from 'zxcvbn';\n\nexport default function ResetPasswordRenderer({\n showPassword,\n isPending,\n}: ResetPasswordRendererProps) {\n const { t } = useTranslation();\n const [passwordStrength, setPasswordStrength] = useState(\n null,\n );\n const {\n watch,\n register,\n setValue,\n formState: { touchedFields, dirtyFields },\n } = useFormContext();\n\n const password: string | undefined = watch('password');\n const passwordConfirmation: string | undefined = watch(\n 'passwordConfirmation',\n );\n const isPasswordEmpty: boolean = password?.length === 0;\n const isValidPasswordLength: boolean =\n password?.length >= 4 && password?.length <= 128;\n const isValidPassword: boolean = isValidPasswordLength && !isPasswordEmpty;\n\n function handlePasswordChange(e: ChangeEvent) {\n const newPassword = e.target.value;\n setPasswordStrength(zxcvbn(newPassword));\n }\n\n function getPasswordError(): string | undefined {\n if (isPasswordEmpty) {\n return t('common:empty_password');\n }\n\n if (!isValidPasswordLength) {\n return t('common:invalid_password_length');\n }\n }\n\n if (!showPassword) {\n return (\n \n {\n setValue('code', value);\n }}\n />\n \n );\n }\n\n return (\n <>\n \n\n \n\n {dirtyFields?.password && !!passwordStrength && password !== '' && (\n \n )}\n \n );\n}\n","import { FormProvider, useForm } from 'react-hook-form';\nimport styles from './styles.module.scss';\nimport { useModalNavigation } from '@/hooks/modals/useModalNavigation';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { Button } from '@starsoft/common/components';\nimport useTranslation from 'next-translate/useTranslation';\nimport { useRecoveryPasswordReset } from '@/api/recovery-passwords';\nimport { FormProps } from './props';\nimport { useState } from 'react';\nimport { Nullable } from '@starsoft/common/interfaces';\nimport { useSelector } from 'react-redux';\nimport { RootState } from '@/lib/store';\nimport { useNotificationService } from '@/hooks/notifications/useNotificationService';\nimport ResetPasswordRenderer from './Renderer';\n\nexport default function ResetPassword() {\n const { t } = useTranslation();\n const [showPassword, setShowPassword] = useState(false);\n const methods = useForm();\n const { handleSubmit, watch } = methods;\n const { NotificationsService } = useNotificationService();\n const { navigateToModal } = useModalNavigation();\n const { reset, isPending } = useRecoveryPasswordReset();\n\n const selectedEmail: Nullable = useSelector(\n (state: RootState) => state.auth.recoverEmail,\n );\n\n const code: string | undefined = watch('code');\n const password: string | undefined = watch('password');\n const passwordConfirmation: string | undefined = watch(\n 'passwordConfirmation',\n );\n const isPasswordEmpty: boolean = password?.length === 0;\n const isValidPasswordLength: boolean =\n password?.length >= 4 && password?.length <= 128;\n\n const isValidPassword: boolean = isValidPasswordLength && !isPasswordEmpty;\n const isDisabled: boolean = !showPassword\n ? !code\n : !password || !passwordConfirmation || !isValidPassword;\n\n function handleBack() {\n if (!showPassword) {\n navigateToModal(ModalsKey.RecoverPassword);\n return;\n }\n\n setShowPassword(false);\n }\n\n function onSubmit(data: FormProps) {\n if (!showPassword) {\n setShowPassword(true);\n return;\n }\n\n if (!data?.code || !data?.password || !data?.passwordConfirmation) {\n return;\n }\n\n if (data.password != data.passwordConfirmation) {\n NotificationsService.error({\n title: 'confirm_password_error_title',\n message: 'confirm_password_error_description',\n });\n return;\n }\n\n reset({\n password: data.password,\n code: data.code,\n email: selectedEmail as string,\n });\n }\n\n return (\n \n
\n
\n \n
\n
\n \n \n
\n
\n
\n );\n}\n","import { useSystemConfiguration } from '@/hooks/theme/useSystemConfiguration';\nimport UserIdentitiesFormContentPersonalIdentityLookUp from '@starsoft/common/components/KYC/UserIdentity/Form/Content/PersonalIdentityLookUp';\nimport { KycIdentityOriginId } from '@starsoft/common/enums';\nimport useTranslation from 'next-translate/useTranslation';\n\nexport default function AuthModalContentIdentifierInput() {\n const { t } = useTranslation('common');\n const { originId } = useSystemConfiguration();\n\n if (originId?.toString() !== KycIdentityOriginId.Brazil?.toString()) {\n return null;\n }\n\n return (\n \n );\n}\n","import { useFormContext } from 'react-hook-form';\nimport { RegisterFormProps } from '@/types/register/props';\nimport AuthModalContentRegisterEmailInput from '../../../Common/EmailInput';\nimport useAuthForm from '@/hooks/auth/useAuthForm';\n\nexport default function AuthModalRegisterEmailContent(): JSX.Element {\n const methods = useFormContext();\n const { isValidEmail } = useAuthForm({ methods });\n\n return ;\n}\n","import { useFormContext } from 'react-hook-form';\nimport { RegisterFormProps } from '@/types/register/props';\nimport { FormGroup, PasswordInput } from '@starsoft/common/components';\nimport useTranslation from 'next-translate/useTranslation';\n\nexport default function AuthModalRegisterPasswordContent(): JSX.Element {\n const {\n watch,\n register,\n formState: { touchedFields, dirtyFields },\n } = useFormContext();\n const password = watch('password');\n\n const { t } = useTranslation('register');\n\n return (\n \n \n \n );\n}\n","import AuthModalContentIdentifierInput from '../../../Common/IdentifierInput';\nimport AuthModalRegisterEmailContent from '../Email';\nimport AuthModalRegisterPasswordContent from '../Password';\n\nexport default function AuthModalContentRegisterSteps() {\n return (\n <>\n \n \n \n \n );\n}\n","import { useSearchParams, usePathname } from '@starsoft/common/hooks';\nimport { UseRegisterVoucherProps } from './props';\nimport { AuthService } from '@/services/AuthService';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { useEffect } from 'react';\n\nexport default function useRegisterVoucher({\n setValue,\n}: UseRegisterVoucherProps) {\n const search: URLSearchParams = useSearchParams();\n const pathname: string = usePathname();\n\n const searchVoucher = search.get('voucher');\n const parsedSearchVoucher = searchVoucher\n ?.replace(`${pathname}`, '')\n ?.replace(ModalsKey.Register, '')\n ?.replaceAll('/', '');\n const cookieVoucher = AuthService.getVoucher();\n\n const coallescedVoucher = parsedSearchVoucher ?? cookieVoucher;\n\n function handleUpdateCookieVoucher() {\n if (parsedSearchVoucher) {\n AuthService.setVoucher(parsedSearchVoucher);\n }\n setValue('voucher', coallescedVoucher);\n }\n\n useEffect(handleUpdateCookieVoucher, [\n parsedSearchVoucher,\n setValue,\n coallescedVoucher,\n ]);\n\n return {\n voucher: coallescedVoucher,\n };\n}\n","import useTranslation from 'next-translate/useTranslation';\nimport { ReferralVoucherInputProps } from './props';\nimport { useToggle } from '@starsoft/common/hooks';\nimport { Input } from '@starsoft/common/components';\nimport { useFormContext } from 'react-hook-form';\nimport { RegisterFormProps } from '@/types/register/props';\nimport styles from './styles.module.scss';\nimport { useEffect, useState } from 'react';\n\nexport default function ReferralVoucherInput({\n isError,\n isLoading,\n hasDefaultVoucher,\n voucherData,\n}: ReferralVoucherInputProps) {\n const { register, resetField, watch } = useFormContext();\n const voucher = watch('voucher');\n const { t } = useTranslation('register');\n const [open, setOpen] = useState(false);\n\n function onErase() {\n resetField('voucher', {\n defaultValue: null,\n });\n setOpen(false);\n }\n\n function onMount() {\n if (!voucher || !voucherData) {\n return;\n }\n\n setOpen(true);\n }\n\n useEffect(onMount, [voucher, voucherData, setOpen]);\n\n return open && typeof window != 'undefined' ? (\n \n ) : (\n
setOpen(true)}>\n {t('promotional_code')}\n \n
\n );\n}\n","import Link from '@/components/core/Link';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport useAuthForm from '@/hooks/auth/useAuthForm';\nimport { useAuthFormButtonLabel } from '@/hooks/auth/useAuthFormButtonLabel';\nimport { useAuthFormState } from '@/hooks/auth/useAuthFormState';\nimport useRegisterVoucher from '@/hooks/register/useRegisterVoucher';\nimport { useSystemConfiguration } from '@/hooks/theme/useSystemConfiguration';\nimport { AuthService } from '@/services/AuthService';\nimport { RegisterFormProps } from '@/types/register/props';\nimport {\n Animation,\n Button,\n TransWithDefault,\n} from '@starsoft/common/components';\nimport { SettingLayoutComponentId } from '@starsoft/common/models';\nimport { OriginId } from '@starsoft/common/models/origin/id';\nimport useTranslation from 'next-translate/useTranslation';\nimport { PropsWithChildren } from 'react';\nimport { FormProvider, useForm } from 'react-hook-form';\nimport OAuthRow from '../../OAuth';\nimport ReferralVoucherInput from '../Content/ReferralVoucherInput';\nimport styles from './styles.module.scss';\n\nexport default function RegisterLayout({\n children,\n id = 1n,\n}: PropsWithChildren<{ id: bigint }>): JSX.Element {\n const isVariant =\n id?.toString() === SettingLayoutComponentId.LoginV3?.toString();\n const { t } = useTranslation('register');\n const formMethods = useForm();\n\n const { handleSubmit, watch, setValue } = formMethods;\n\n const { voucher } = useRegisterVoucher({ setValue });\n const {\n isFormStep,\n step,\n onError,\n onSubmit,\n voucherData,\n useRegisterMutation: { isLoading: isLoadingRegister },\n useReferralVoucherByCodeQuery: {\n isLoading: isLoadingVoucherCode,\n isError: isErrorVoucherCode,\n },\n } = useAuthForm({\n methods: formMethods,\n });\n const formState = useAuthFormState({ methods: formMethods });\n const label = useAuthFormButtonLabel({ methods: formMethods });\n const { originId } = useSystemConfiguration();\n\n const formVoucher = watch('voucher');\n\n return (\n \n {formVoucher && voucherData && isFormStep && (\n \n {t('sponsor_label')} {/* @ts-ignore */}\n {voucherData?.user?.player?.username}\n \n )}\n \n \n {children}\n {isFormStep && (\n <>\n \n\n
\n \n\n ,\n ,\n ]}\n />\n
\n \n )}\n\n \n {label}\n \n \n
\n {isFormStep && (\n <>\n \n {t('register_label_binding')}\n \n {originId !== OriginId.Brazil && (\n \n )}\n {!isVariant && (\n \n {t('login_text')}\n \n {t('login_label')}\n \n \n )}\n \n )}\n \n );\n}\n","import { parseToBigInt } from '@starsoft/common/utils/parsers';\nimport AuthModalContentRegisterSteps from './Content/Steps';\nimport RegisterLayout from './Layout';\n\nexport default function AuthModalRegisterContent({ id }: { id: bigint }) {\n return (\n \n \n \n );\n}\n","import { ModalsKey } from '@/enums/modalsKey';\nimport AuthModalLoginContent from './Login';\nimport GenerateRecoveryPasswordToken from './RecoverPassword/Content/GenerateRecoveryPasswordToken';\nimport ResetPassword from './RecoverPassword/Content/ResetPassword';\nimport AuthModalRegisterContent from './Register';\nimport { parseToBigInt } from '@starsoft/common/utils/parsers';\n\nexport const authModalOptions: Partial<\n Record<\n ModalsKey,\n { key: string; title: string; component: (id?: bigint) => JSX.Element }\n >\n> = {\n [ModalsKey.Login]: {\n key: ModalsKey.Login,\n title: 'app_login',\n component: (id?: bigint) => (\n \n ),\n },\n [ModalsKey.Register]: {\n key: ModalsKey.Register,\n title: 'app_register',\n component: (id?: bigint) => ,\n },\n [ModalsKey.RecoverPassword]: {\n key: ModalsKey.RecoverPassword,\n title: 'recover_password_title',\n component: () => ,\n },\n [ModalsKey.RecoverPasswordReset]: {\n key: ModalsKey.RecoverPasswordReset,\n title: 'recover_password_reset_title',\n component: () => ,\n },\n};\n","import { AuthStep } from '@/enums/auth/authStep';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport useAuthSearchParams from '@/hooks/auth/useAuthSearchParams';\nimport { useIsKycAuthStep } from '@/hooks/auth/useIsKycAuthStep';\nimport { useModal } from '@/hooks/modals/useModal';\nimport { useModalNavigation } from '@/hooks/modals/useModalNavigation';\nimport { RootState } from '@/lib/store';\nimport { AuthService } from '@/services/AuthService';\nimport { Animation } from '@starsoft/common/components';\nimport { CookiesKey } from '@starsoft/common/enums';\nimport { useSearchParams } from '@starsoft/common/hooks';\nimport { parseToBigInt } from '@starsoft/common/utils/parsers';\nimport { getCookie } from 'cookies-next';\nimport { useRouter } from 'next/router';\nimport { useCallback } from 'react';\nimport { useSelector } from 'react-redux';\nimport AuthModalLayout from '../Layout';\nimport { authModalOptions } from './options';\n\nexport default function AuthModalsOptions({ id }: { id: string }) {\n const { asPath } = useRouter();\n const { navigateToModal } = useModalNavigation();\n const currentRoute = asPath?.split('#')?.[1];\n const { isKyc } = useIsKycAuthStep();\n const search = useSearchParams();\n const modal = search.get('modal');\n const { key, title, component } =\n authModalOptions?.[modal ?? currentRoute] ?? {};\n\n const { isOpen, handleContainer, onClose } = useModal(key ?? modal);\n const { step } = useAuthSearchParams();\n const isAdminView = useSelector(\n (state: RootState) => state.theme.isAdminView,\n );\n\n const showBackButton =\n [ModalsKey.Login, ModalsKey.Register].includes(currentRoute as ModalsKey) &&\n step != AuthStep.Form;\n\n const handleCloseModal = useCallback(() => {\n if (key == ModalsKey.Register) {\n navigateToModal(ModalsKey.CancelRegister);\n return;\n }\n\n onClose(true);\n }, [key, onClose, navigateToModal]);\n\n const shouldOpenModal =\n (!AuthService.isAuthorized() &&\n getCookie(CookiesKey.HasKyc) === 'false' &&\n isOpen) ||\n isOpen ||\n (isAdminView && modal === ModalsKey.Login);\n\n function getDescription(): string {\n switch (key) {\n case ModalsKey.RecoverPassword:\n return 'recover_password_description';\n case ModalsKey.RecoverPasswordReset:\n return 'recover_password_reset_description';\n default:\n return '';\n }\n }\n\n return (\n \n \n {component && component(id)}\n \n \n );\n}\n","import { useSearchParams } from '@starsoft/common/hooks';\nimport { AuthStep } from '@/enums/auth/authStep';\n\nexport function useIsKycAuthStep() {\n const search = useSearchParams();\n const isKyc = search.get('step') === AuthStep.Kyc;\n\n return {\n isKyc,\n };\n}\n","export interface BarPasswordStrongProps {\n forceScore: 0 | 1 | 2 | 3 | 4;\n}\n\nexport enum PasswordStrengthLevel {\n Warning = 'warning',\n Danger = 'danger',\n Success = 'success',\n}\n","import styles from './styles.module.scss';\nimport { BarPasswordStrongProps, PasswordStrengthLevel } from './props';\nimport { useTranslation } from '../../../hooks';\n\nexport function BarPasswordStrong({ forceScore }: BarPasswordStrongProps) {\n const { t } = useTranslation('common');\n function getStregthLevel(): PasswordStrengthLevel {\n switch (Math.max(0, forceScore)) {\n case 0:\n case 1:\n return PasswordStrengthLevel.Danger;\n case 2:\n return PasswordStrengthLevel.Warning;\n case 3:\n case 4:\n return PasswordStrengthLevel.Success;\n default:\n return PasswordStrengthLevel.Danger;\n }\n }\n const stregthLevel: PasswordStrengthLevel = getStregthLevel();\n function getStep(): number {\n switch (stregthLevel) {\n case PasswordStrengthLevel.Danger:\n return 1;\n case PasswordStrengthLevel.Warning:\n return 2;\n case PasswordStrengthLevel.Success:\n return 3;\n default:\n return 0;\n }\n }\n const step: number = getStep();\n return (\n
\n
\n = 1 ? styles[`container__progress__force--${stregthLevel}`] : ''}`}\n />\n = 2 ? styles[`container__progress__force--${stregthLevel}`] : ''}`}\n />\n = 3 ? styles[`container__progress__force--${stregthLevel}`] : ''}`}\n />\n
\n\n \n {t(`label_${stregthLevel}`)}\n \n
\n );\n}\n","import { useEffect, useMemo, useState } from 'react';\nimport styles from './styles.module.scss';\nimport { ResendCodeButtonProps } from './props';\nimport { useTranslation } from '../../hooks';\n\n/**\n * ResendCodeButton Component\n * A button component that handles resending verification codes with a countdown timer.\n * The button becomes disabled for 60 seconds after a successful code resend.\n *\n * @component\n * @param {Object} props - Component props\n * @param {() => void} props.onClick - Callback function when button is clicked\n * @param {boolean} props.isLoading - Whether the button is in loading state\n * @param {boolean} props.isSuccess - Whether the last resend attempt was successful\n * @param {boolean} props.isSkeleton - Whether to show a skeleton loading state\n * @returns {JSX.Element} Button component with countdown timer\n *\n * @example\n * handleResendCode()}\n * isLoading={false}\n * isSuccess={false}\n * isSkeleton={false}\n * />\n */\nexport function ResendCodeButton({\n onClick,\n isLoading,\n isSuccess,\n isSkeleton,\n}: ResendCodeButtonProps) {\n const { t } = useTranslation('common');\n\n // State to track when SMS was last sent (initialized to 60s from now)\n const [smsSendAt, setSmsSendAt] = useState(\n new Date(new Date().getTime() + 60000),\n );\n\n // State to track current time for countdown\n const [currentDate, setCurrentDate] = useState(new Date());\n\n // Disable button if countdown not finished\n const isButtonDisabled: boolean = smsSendAt > currentDate;\n\n // Calculate remaining seconds in countdown\n const difference: number = useMemo(\n () =>\n (smsSendAt &&\n Math.trunc(\n Math.abs(\n ((smsSendAt as Date).getTime() - currentDate.getTime()) as number,\n ) / 1000,\n )) ||\n 0,\n [smsSendAt, currentDate],\n );\n\n /**\n * Handles successful resend by resetting countdown timer\n * Called when isSuccess prop changes\n */\n function onSuccess() {\n if (!isSuccess) {\n return;\n }\n\n setSmsSendAt(new Date(new Date().getTime() + 60000));\n }\n\n useEffect(onSuccess, [isSuccess]);\n\n /**\n * Sets up interval to update current time every second\n * Cleans up interval on unmount\n * @returns {() => void} Cleanup function to clear interval\n */\n function onMount() {\n let intervalId: NodeJS.Timeout;\n\n intervalId = setInterval(() => setCurrentDate(new Date()), 1000);\n\n return () => {\n clearInterval(intervalId);\n };\n }\n\n useEffect(onMount, []);\n\n if (isSkeleton) {\n return
;\n }\n\n return (\n \n {t('resend_code')}{' '}\n {isButtonDisabled ? `- ${difference > 60 ? 60 : difference}` : ''}\n \n );\n}\n","import { TransText } from '@starsoft/common/interfaces/trans-text';\nimport { ComponentType } from 'react';\nimport { TransWithDefault } from '../TransWithDefault';\nimport { useSettingsStore } from '@starsoft/common/hooks/useSettingsStore';\nimport { CommonSettings } from '@starsoft/common/interfaces';\n\n/**\n * TransTextWithDefault Component\n * This component is responsible for rendering a translation text component with default fallback.\n * It utilizes the settings store to determine the appropriate translation component to use.\n *\n * @param {TransText} props - The properties for the component.\n * @param {object} props.components - Custom components to be used within the translation text.\n * @param {string} props.i18nKey - The internationalization key for the translation.\n * @param {object} props.values - The values to be interpolated in the translation string.\n *\n * @returns {JSX.Element} The rendered translation component or a default translation component if none is specified.\n *\n * @example\n * // Usage example:\n * , br:
}}\n * i18nKey=\"example_key\"\n * values={{ name: 'John' }}\n * />\n */\nexport function TransTextWithDefault({ components, ...props }: TransText) {\n const { state } = useSettingsStore();\n const settings: CommonSettings = state.settings;\n\n // Retrieve the TransText component from settings, if available\n const TransText: ComponentType =\n settings.translationComponents.TransText;\n\n // If no TransText component is found, use the default translation component\n if (!TransText) {\n return ;\n }\n\n // Render the TransText component with provided components and props\n return (\n ,\n br:
,\n p:

,\n div:

,\n span: ,\n ...components,\n }}\n {...props}\n />\n );\n}\n","import { useSettingsStore } from '@starsoft/common/hooks/useSettingsStore';\nimport { CommonSettings } from '@starsoft/common/interfaces';\nimport { Trans as ITrans } from '@starsoft/common/interfaces/trans';\nimport { ComponentType } from 'react';\n\n/**\n * TransWithDefault Component\n * This component is responsible for rendering a translation component with default fallback.\n * It utilizes the settings store to determine the appropriate translation component to use.\n *\n * @param {ITrans} props - The properties for the component.\n * @param {object} props.components - Custom components to be used within the translation text.\n * @param {string} props.i18nKey - The internationalization key for the translation.\n * @param {object} props.values - The values to be interpolated in the translation string.\n *\n * @returns {JSX.Element} The rendered translation component with provided components and props.\n *\n * @example\n * // Usage example:\n * , br:
}}\n * i18nKey=\"example_key\"\n * values={{ name: 'John' }}\n * />\n */\nexport function TransWithDefault({ components, ...props }: ITrans) {\n const { state } = useSettingsStore();\n const settings: CommonSettings = state.settings;\n const Trans: ComponentType = settings.translationComponents.Trans;\n\n // Render the Trans component with provided components and props\n return (\n ,\n br:
,\n p:

,\n ul:

    ,\n li:
  • ,\n ...components,\n }}\n {...props}\n />\n );\n}\n","import { useCallback, useEffect, useRef } from 'react';\nimport { ValidateCodeInputProps } from './props';\nimport styles from './styles.module.scss';\nimport { KeyboardKey } from '@starsoft/common/enums';\n\n/**\n * ValidateCodeInput component is responsible for rendering a series of input fields\n * that allow users to enter a code. It handles user interactions such as typing,\n * pasting, and navigating between inputs using arrow keys.\n *\n * @param {ValidateCodeInputProps} props - The properties for the component.\n * @param {Function} props.setValue - A function to set the value of the code entered.\n * @param {number} [props.maxLength=6] - The maximum length of the code.\n * @param {boolean} props.isContainerColor - Flag to apply container color style.\n * @param {boolean} props.isLoading - Flag to indicate loading state.\n * @param {boolean} props.withMaxWidth - Flag to apply max width style.\n * @param {boolean} props.isDefaultColor - Flag to apply default color style.\n *\n * @returns {JSX.Element} The rendered component.\n */\nexport function ValidateCodeInput({\n setValue,\n maxLength = 6,\n isContainerColor,\n isLoading,\n withMaxWidth,\n isDefaultColor,\n}: ValidateCodeInputProps) {\n // Ref to store references to input elements\n const inputRefs = useRef<(HTMLInputElement | null)[]>([]);\n\n // Effect to ensure inputRefs array matches the maxLength\n useEffect(() => {\n inputRefs.current = inputRefs.current.slice(0, maxLength);\n }, [maxLength]);\n\n /**\n * handleSetValue is a callback function that aggregates the values from all input fields\n * and sets the combined value using the setValue function.\n */\n const handleSetValue = useCallback(() => {\n const value = inputRefs.current\n .map(input => input?.value ?? '')\n .filter(value => value !== '')\n .join('');\n\n setValue(value);\n }, [setValue]);\n\n /**\n * handleArrowLeft moves the focus to the previous input field when the left arrow key is pressed.\n *\n * @param {any} e - The event object from the keydown event.\n */\n function handleArrowLeft(e: any) {\n const previousInput = e.target.previousElementSibling as HTMLInputElement;\n if (!previousInput) return;\n setTimeout(() => {\n previousInput.selectionStart = previousInput.selectionEnd =\n previousInput.value.length;\n previousInput.focus();\n }, 0);\n }\n\n /**\n * handleArrowRight moves the focus to the next input field when the right arrow key is pressed.\n *\n * @param {any} e - The event object from the keydown event.\n */\n function handleArrowRight(e: any) {\n const nextInput = e.target.nextElementSibling as HTMLInputElement;\n if (!nextInput) return;\n nextInput.focus();\n }\n\n /**\n * handleChange processes the input change event, ensuring only numeric values are entered,\n * and moves focus to the next input if applicable.\n *\n * @param {any} e - The event object from the change event.\n */\n function handleChange(e: any) {\n e.target.value = e.target.value.replace(/[^0-9]/g, '');\n\n handleSetValue();\n\n if (Object.values(KeyboardKey).includes(e?.code) || !e.target.value) {\n return;\n }\n\n handleArrowRight(e);\n }\n\n /**\n * handleBackspace moves the focus to the previous input field if the current input is empty\n * and the backspace key is pressed.\n *\n * @param {any} e - The event object from the keydown event.\n */\n function handleBackspace(e: any) {\n const input = e.target;\n\n if (input.value !== '') {\n return;\n }\n\n if (!input?.previousElementSibling) return;\n input.previousElementSibling.focus();\n }\n\n /**\n * handlePaste is a callback function that handles the paste event, ensuring only numeric\n * values are pasted into the input fields.\n *\n * @param {any} e - The event object from the paste event.\n */\n const handlePaste = useCallback(\n (e: any) => {\n e.preventDefault();\n const paste = e.clipboardData.getData('text')?.replace(/[^0-9]/g, '');\n inputRefs.current.forEach((input, i) => {\n if (!input) {\n return;\n }\n\n input.value = paste[i] || '';\n });\n\n handleSetValue();\n },\n [handleSetValue],\n );\n\n /**\n * handleMount sets up event listeners for paste and keydown events on the input fields\n * and ensures the first input is focused if none are focused.\n */\n function handleMount() {\n if (typeof window == 'undefined' || typeof document == 'undefined') {\n return;\n }\n\n const hasSomeInputFocused = inputRefs.current?.some(\n ref => ref == document.activeElement,\n );\n\n inputRefs.current.forEach((input, index) => {\n if (index == 0 && !hasSomeInputFocused) {\n input?.focus();\n }\n\n input?.addEventListener('paste', handlePaste);\n input?.addEventListener('keydown', e => {\n switch (e.code) {\n case KeyboardKey.BACKSPACE:\n handleBackspace(e);\n break;\n case KeyboardKey.ARROW_LEFT:\n handleArrowLeft(e);\n break;\n case KeyboardKey.ARROW_RIGHT:\n handleArrowRight(e);\n break;\n default:\n }\n });\n });\n }\n\n // Effect to handle component mount logic\n useEffect(handleMount, [handlePaste, inputRefs]);\n\n // Render loading skeleton if isLoading is true\n if (isLoading) {\n return (\n \n {Array.from({ length: maxLength }).map((_, index) => (\n \n ))}\n
\n );\n }\n\n // Render input fields for code entry\n return (\n \n {Array.from({ length: maxLength }).map((_, index) => (\n (inputRefs.current[index] = el)}\n />\n ))}\n
\n );\n}\n","import { FieldPath, FieldValues } from 'react-hook-form';\n\nexport function get>(\n object: T,\n path: K,\n): T[K] {\n const keys = path.split('.') as (keyof T)[];\n let result: T | T[K] = object;\n\n for (const key of keys) {\n result = result?.[key];\n }\n\n return result as T[K];\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__D5_p2\",\"container__divider\":\"styles_container__divider__5_3h4\",\"container__divider__line\":\"styles_container__divider__line__8_DDG\",\"container__divider__text\":\"styles_container__divider__text__fRfW9\",\"skeleton-animation\":\"styles_skeleton-animation__i9iQG\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__ed_HX\",\"container__button\":\"styles_container__button__2YFMK\",\"skeleton-animation\":\"styles_skeleton-animation__kXc7L\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__HAdu3\",\"container--variant\":\"styles_container--variant__0I3a_\",\"container__column\":\"styles_container__column__kUiPJ\",\"container__row\":\"styles_container__row__Vxr52\",\"container__form\":\"styles_container__form__CbhrU\",\"container__form__link\":\"styles_container__form__link__ripKt\",\"container__form__link--variant\":\"styles_container__form__link--variant__Yz6wW\",\"container__binding\":\"styles_container__binding__zP9an\",\"container__text\":\"styles_container__text__bCrES\",\"container__text__highlight\":\"styles_container__text__highlight___CEcv\",\"container__button\":\"styles_container__button__4q3M7\",\"skeleton-animation\":\"styles_skeleton-animation__uzGmk\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"link\":\"styles_link__F174J\",\"link__icon\":\"styles_link__icon__mB8cn\",\"skeleton-animation\":\"styles_skeleton-animation__IAvih\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__LMyJ9\",\"container--column\":\"styles_container--column__DGiDa\",\"container__text\":\"styles_container__text__9vSFw\",\"container__grid\":\"styles_container__grid__Bf4sx\",\"container__grid--column\":\"styles_container__grid--column__Ddp4l\",\"skeleton-animation\":\"styles_skeleton-animation__LP9MD\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__dx6ev\",\"container__buttons\":\"styles_container__buttons__YGiJF\",\"skeleton-animation\":\"styles_skeleton-animation__hx9q6\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__EzFLl\",\"container__content\":\"styles_container__content__hNA9w\",\"container__content__input\":\"styles_container__content__input__Ngth0\",\"container__buttons\":\"styles_container__buttons__HSMb1\",\"skeleton-animation\":\"styles_skeleton-animation__tECcp\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__4Vzuj\",\"container__label\":\"styles_container__label__dNyI8\",\"container__icon\":\"styles_container__icon__BYU9v\",\"skeleton-animation\":\"styles_skeleton-animation__X3j7D\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__c0_HG\",\"container--variant\":\"styles_container--variant__FLltK\",\"container__input\":\"styles_container__input__BiK6o\",\"container__column\":\"styles_container__column__YM3Rf\",\"container__row\":\"styles_container__row__UQjTD\",\"container__form\":\"styles_container__form__7o0OO\",\"container__form__link\":\"styles_container__form__link__jV4W9\",\"container__binding\":\"styles_container__binding__g29xD\",\"container__text\":\"styles_container__text__xwMNA\",\"container__text__highlight\":\"styles_container__text__highlight__vusrc\",\"container__label\":\"styles_container__label__ubnRI\",\"container__terms\":\"styles_container__terms__53nM0\",\"container__email\":\"styles_container__email__F9ur4\",\"skeleton-animation\":\"styles_skeleton-animation__q_iUh\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__joSuJ\",\"container__progress\":\"styles_container__progress___WS2B\",\"container__progress__force\":\"styles_container__progress__force__Gwv0i\",\"container__progress__force--danger\":\"styles_container__progress__force--danger__9EoMj\",\"container__progress__force--warning\":\"styles_container__progress__force--warning__TxOFb\",\"container__progress__force--success\":\"styles_container__progress__force--success__bqRx0\",\"container__label-force\":\"styles_container__label-force__YGJjA\",\"container__label-force--danger\":\"styles_container__label-force--danger__AWoTa\",\"container__label-force--warning\":\"styles_container__label-force--warning__J_KA3\",\"container__label-force--success\":\"styles_container__label-force--success__mjiWf\",\"skeleton-animation\":\"styles_skeleton-animation__qh3WW\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"skeleton\":\"styles_skeleton__XZRCs\",\"skeleton-animation\":\"styles_skeleton-animation__mp1uP\",\"button\":\"styles_button__D3i0q\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container__input__skeleton\":\"styles_container__input__skeleton__yfRIO\",\"skeleton-animation\":\"styles_skeleton-animation__YnQBM\",\"container\":\"styles_container__RrqWl\",\"container__input\":\"styles_container__input__fnGzI\",\"container__input--container-color\":\"styles_container__input--container-color__XD_OP\",\"container__input--default-color\":\"styles_container__input--default-color__mCOjL\",\"container__input--max-width\":\"styles_container__input--max-width___gcVZ\"};"],"names":["fetchPasskeys","param","queryKey","limit","page","response","baseAPI","get","params","data","usePasskeys","setPage","useState","PasskeysQueryKeys","Passkey","isPending","error","refetch","useQuery","queryFn","fetchNextPage","fetchPreviousPage","setCurrentPage","usePaginatedQuery","passkeys","fetchUserHasPassKey","email","useUserHasPassKey","debouncedEmail","useDebounce","isEmailValid","test","UserHasPasskey","fetchStatus","enabled","staleTime","userHasPassKey","fetchDeletePassKey","id","delete","concat","useDeletePassKey","queryClient","useQueryClient","mutate","isError","useMutation","mutationFn","onSuccess","invalidateQueries","deletePassKey","loadingDeletePassKey","fetchReferralVoucherByCode","voucher","useReferralVoucherByCode","options","refetchOnMount","ReferralVouchersQueryKeys","ByCode","isSuccess","useEffect","AuthService","setVoucher","code","removeVoucher","isLoading","fetchReferralVoucherMe","useReferralVoucherMe","endDate","startDate","Me","queryParams","referralVouchers","createReferralVoucher","post","useCreateReferralVoucher","onClose","useModal","ModalsKey","CreateReferralVoucher","NotificationsService","useNotificationService","success","title","message","editReferralVoucher","voucherId","patch","useEditReferralVoucher","EditReferralVoucher","editVoucher","deleteReferralVoucher","useDeleteReferralVoucher","DeleteReferralVoucher","deleteVoucher","useAuthSearchParams","search","useSearchParams","step","AuthStep","Form","push","useRouter","modal","useCurrentModal","handleSetAuthSearchParams","useCallback","searchKey","value","set","toString","hash","LayoutV1","dynamic","Promise","all","__webpack_require__","e","then","bind","ssr","LayoutV2","LayoutV3","AuthModalLayout","props","open","closeModalOnClickOutside","pathname","usePathname","version","useModalVersion","setCookie","CookiesKey","ClientRouter","sameSite","jsx_runtime","jsx","Modal","renderLayout","SettingLayoutComponentId","DefaultLogin","MinimalLogin","LoginV3","EmailProvidersQueryKeys","fetchEmailProviders","pageParam","AuthModalContentEmailInput","isValidEmail","t","tCommon","useTranslation","setValue","formState","touchedFields","watch","useFormContext","domain","split","emailProviders","hasNextPage","isFetchingNextPage","useEmailProviders","Primary","getNextPageParam","getPreviousPageParam","useInfiniteQueryCallbacks","useInfiniteQueryReset","rest","useInfiniteQuery","initialPageParam","useMemo","pages","flatMap","emailHasOneOfProvidersExternal","some","provider","includes","filter","handleChange","handleOpen","document","target","activeElement","loadMore","handleSetEmailProvider","shouldDirty","SelectInput","getOptionLabel","getOptionValue","undefined","isAsync","loadingMore","customComponents","customInput","FormGroup","label","Input","type","placeholder","onChange","errorMessage","onFocus","length","icon","hasPaddingRight","customOption","_split","handleSelect","key","option","selected","SelectOptionWithHighlight","_this","description","fetchRefresh","useAuthForm","KycCheckpointId","String","KycIdentityOriginId","methods","refreshTokensAsync","useRefresh","mutateAsync","onError","ErrorService","logOut","setToken","accessToken","setRefreshToken","refreshToken","refreshTokens","loginCallback","useLoginCallback","isPartialAuthorized","useUserAccount","originId","useSystemConfiguration","kycMeByOriginIdQuery","useKycMeByOriginId","Login","Kyc","kyc","handleSetKycAndStepSearchParams","kycCheckpointIdSearch","kycCheckpointId","useKycNavigation","externalEnabled","handleKycSubmission","isLoadingKycSubmission","useKycFormSubmission","externalOriginId","VerifiedEmail","isFormStep","useLoginMutation","useLogin","useRegisterMutation","useRegister","login","requires2fa","register","identifier","birthDate","name","formVoucher","debouncedVoucher","useReferralVoucherByCodeQuery","Register","voucherData","debouncedIdentifier","debouncedName","debouncedBirthDate","payload","useUserIdentityValidateByOriginIdQuery","useUserIdentityValidateByOriginId","password","emailPattern","isPasswordEmpty","isValidPassword","isValidPasswordLength","isInvalidForm","Brazil","onSubmit","kycResponse","trim","identityId","status","KYCStatus","Verified","stage","checkpoint","LoginEmailContent","LoginPasswordContent","autoFocus","focusOnMount","registerOptions","required","AuthModalContentLoginStepsForm","jsxs","Fragment","AuthModalContentLoginStepsOriginRendererBrazil","UserIdentityForm","usePartialForm","AuthModalContentLoginStepsOriginRenderer","OriginId","AuthModalContentLoginSteps","transition","duration","ease","slideInRight","hidden","x","pointerEvents","visible","Requires2faContent","motion","div","className","styles","variants","initial","animate","exit","button","onClick","i","ValidateCodeInput","Button","form","disabled","Number","isloading","isAuthorized","OAuthButton","image","to","pageRedirect","isOpen","isRegisterPage","getVoucher","Link","href","Image","src","width","height","alt","secondarySkeleton","a","OAuthRow","direction","isRegisterModalOpen","process","localStorage","getItem","LocalStorageKey","UserUUID","AuthModalContentLoginLayoutOpt","isVariant","showOauth","tRegister","span","useAuthFormState","personalIdentityLookup","errorPersonalIdentityLookup","BigInt","Identity","VerifiedTaxId","UserIdentityStatus","Invalid","DocumentSubmission","useAuthFormButtonLabel","firstValidStep","AddressVerification","CriminalRecordCheck","ProofOfResidence","ProofOfIncome","VerifiedPhoneNumber","fetchPassKeyLogin","headers","fetchGeneratePassKeyAuthentication","PassKeyButton","isKyc","passKeyLogin","pendingPassKeyLogin","usePassKeyLogin","externalOnSuccess","externalSuccess","generatePassKeyAuthentication","useGeneratePassKeyAuthentication","credential","startAuthentication","optionsJSON","console","log","isTransparent","style","color","getComputedColor","Layout","memo","children","useForm","handleSubmit","Animation","triggerOnce","FormProvider","AnimatePresence","mode","RecoverPassword","getCookie","HasKyc","Collapse","in","sx","LoginModal","LoginLayout","AuthModalContentLogin","fetchGenerateRecoveryPasswordToken","fetchRecoveryPasswordReset","GenerateRecoveryPasswordToken","navigateToModal","useModalNavigation","generateRecoveryPasswordToken","useGenerateRecoveryPasswordToken","dispatch","useDispatch","_","input","RecoverPasswordReset","setRecoverEmail","isSecondary","ResetPasswordRenderer","showPassword","passwordStrength","setPasswordStrength","dirtyFields","passwordConfirmation","newPassword","zxcvbn","BarPasswordStrong","forceScore","score","ResetPassword","setShowPassword","reset","useRecoveryPasswordReset","selectedEmail","useSelector","state","auth","recoverEmail","AuthModalContentIdentifierInput","UserIdentitiesFormContentPersonalIdentityLookUp","minimalForm","AuthModalRegisterEmailContent","AuthModalContentRegisterEmailInput","AuthModalRegisterPasswordContent","PasswordInput","isTouched","isDirty","AuthModalContentRegisterSteps","ReferralVoucherInput","hasDefaultVoucher","resetField","setOpen","onErase","defaultValue","showEraserButton","showSpinner","readOnly","hideLock","RegisterLayout","formMethods","useRegisterVoucher","searchVoucher","parsedSearchVoucher","replace","replaceAll","cookieVoucher","coallescedVoucher","isLoadingRegister","isLoadingVoucherCode","isErrorVoucherCode","strong","user","player","username","TransWithDefault","i18nKey","components","p","AuthModalRegisterContent","parseToBigInt","authModalOptions","component","AuthModalLoginContent","AuthModalsOptions","asPath","currentRoute","useIsKycAuthStep","handleContainer","isAdminView","theme","showBackButton","handleCloseModal","CancelRegister","shouldOpenModal","getDescription","isFullHeight","withBackButton","PasswordStrengthLevel","stregthLevel","getStregthLevel","Math","max","Danger","Warning","Success","getStep","ResendCodeButton","isSkeleton","smsSendAt","setSmsSendAt","Date","getTime","currentDate","setCurrentDate","isButtonDisabled","difference","trunc","abs","intervalId","setInterval","clearInterval","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","TransTextWithDefault","useSettingsStore","TransText","settings","translationComponents","br","Trans","ul","li","maxLength","isContainerColor","withMaxWidth","isDefaultColor","inputRefs","useRef","current","slice","handleSetValue","map","join","handleArrowRight","nextInput","nextElementSibling","focus","Object","values","KeyboardKey","handlePaste","preventDefault","paste","clipboardData","getData","forEach","hasSomeInputFocused","ref","index","addEventListener","BACKSPACE","handleBackspace","previousElementSibling","ARROW_LEFT","handleArrowLeft","previousInput","setTimeout","selectionStart","selectionEnd","ARROW_RIGHT","gridTemplateColumns","Array","from","el","object","path","keys","result","module","exports"],"sourceRoot":""}