@getpara/react-sdk 2.0.0-alpha.32 → 2.0.0-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evm/actions/getViemAccount.d.ts +22 -0
- package/dist/evm/actions/getViemAccount.js +20 -0
- package/dist/evm/actions/getViemClient.d.ts +7659 -0
- package/dist/evm/actions/getViemClient.js +25 -0
- package/dist/evm/actions/index.d.ts +2 -0
- package/dist/evm/actions/index.js +3 -0
- package/dist/evm/hooks/index.d.ts +2 -0
- package/dist/evm/hooks/index.js +3 -0
- package/dist/evm/hooks/useViemAccount.d.ts +26 -0
- package/dist/evm/hooks/useViemAccount.js +32 -0
- package/dist/evm/hooks/useViemClient.d.ts +7663 -0
- package/dist/evm/hooks/useViemClient.js +30 -0
- package/dist/evm/index.d.ts +2 -0
- package/dist/evm/index.js +3 -0
- package/dist/index.d.ts +3 -5
- package/dist/index.js +4 -4
- package/dist/provider/ParaProvider.d.ts +1 -2
- package/dist/provider/ParaProvider.js +13 -106
- package/package.json +11 -29
- package/styles.css/package.json +1 -1
- package/dist/cli/cli.mjs +0 -50
- package/dist/modal/ParaModal.d.ts +0 -2
- package/dist/modal/ParaModal.js +0 -305
- package/dist/modal/components/Account/Account.d.ts +0 -5
- package/dist/modal/components/Account/Account.js +0 -148
- package/dist/modal/components/Account/AccountProfile.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfile.js +0 -168
- package/dist/modal/components/Account/AccountProfileLink.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfileLink.js +0 -206
- package/dist/modal/components/Account/AccountProfileLinkOptions.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfileLinkOptions.js +0 -111
- package/dist/modal/components/Account/AccountProfileUnlink.d.ts +0 -1
- package/dist/modal/components/Account/AccountProfileUnlink.js +0 -47
- package/dist/modal/components/AddFunds/AddFunds.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFunds.js +0 -69
- package/dist/modal/components/AddFunds/AddFundsAsset.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsAsset.js +0 -125
- package/dist/modal/components/AddFunds/AddFundsAwaiting.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsAwaiting.js +0 -78
- package/dist/modal/components/AddFunds/AddFundsContext.d.ts +0 -31
- package/dist/modal/components/AddFunds/AddFundsContext.js +0 -160
- package/dist/modal/components/AddFunds/AddFundsDone.d.ts +0 -6
- package/dist/modal/components/AddFunds/AddFundsDone.js +0 -49
- package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsProvider.js +0 -109
- package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsReceive.js +0 -83
- package/dist/modal/components/AddFunds/AddFundsSettings.d.ts +0 -1
- package/dist/modal/components/AddFunds/AddFundsSettings.js +0 -237
- package/dist/modal/components/AddFunds/MoonPayEmbed.d.ts +0 -2
- package/dist/modal/components/AddFunds/MoonPayEmbed.js +0 -7
- package/dist/modal/components/AddFunds/common.d.ts +0 -19
- package/dist/modal/components/AddFunds/common.js +0 -24
- package/dist/modal/components/AddFunds/index.d.ts +0 -3
- package/dist/modal/components/AddFunds/index.js +0 -4
- package/dist/modal/components/AuthInput/AuthInput.d.ts +0 -20
- package/dist/modal/components/AuthInput/AuthInput.js +0 -277
- package/dist/modal/components/AuthInput/hooks/useDropdownPosition.d.ts +0 -7
- package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +0 -33
- package/dist/modal/components/AuthInput/phoneMasks.d.ts +0 -247
- package/dist/modal/components/AuthInput/phoneMasks.js +0 -253
- package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +0 -9
- package/dist/modal/components/AuthMainStep/AuthMainStep.js +0 -50
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +0 -9
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +0 -164
- package/dist/modal/components/AuthOptions/AuthOptions.d.ts +0 -9
- package/dist/modal/components/AuthOptions/AuthOptions.js +0 -85
- package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.d.ts +0 -1
- package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +0 -18
- package/dist/modal/components/AwaitingIFrameStep/AwaitingIFrameStep.d.ts +0 -1
- package/dist/modal/components/AwaitingIFrameStep/AwaitingIFrameStep.js +0 -12
- package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.d.ts +0 -1
- package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.js +0 -10
- package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.d.ts +0 -1
- package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +0 -18
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +0 -5
- package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +0 -49
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +0 -1
- package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +0 -62
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +0 -1
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +0 -48
- package/dist/modal/components/Body/AnimatedHeightWrapper.d.ts +0 -6
- package/dist/modal/components/Body/AnimatedHeightWrapper.js +0 -29
- package/dist/modal/components/Body/Body.d.ts +0 -11
- package/dist/modal/components/Body/Body.js +0 -354
- package/dist/modal/components/ChainSwitch/ChainSwitch.d.ts +0 -1
- package/dist/modal/components/ChainSwitch/ChainSwitch.js +0 -95
- package/dist/modal/components/ChainSwitch/config.d.ts +0 -7
- package/dist/modal/components/ChainSwitch/config.js +0 -17
- package/dist/modal/components/Controls/Controls.d.ts +0 -5
- package/dist/modal/components/Controls/Controls.js +0 -78
- package/dist/modal/components/Controls/Selects.d.ts +0 -2
- package/dist/modal/components/Controls/Selects.js +0 -173
- package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.d.ts +0 -1
- package/dist/modal/components/ExternalWalletNetworkSelectStep/ExternalWalletNetworkSelectStep.js +0 -75
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.d.ts +0 -8
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +0 -175
- package/dist/modal/components/ExternalWalletStep/config.d.ts +0 -7
- package/dist/modal/components/ExternalWalletStep/config.js +0 -17
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +0 -1
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +0 -39
- package/dist/modal/components/ExternalWallets/ExternalWallets.d.ts +0 -1
- package/dist/modal/components/ExternalWallets/ExternalWallets.js +0 -184
- package/dist/modal/components/Footer/Footer.d.ts +0 -1
- package/dist/modal/components/Footer/Footer.js +0 -95
- package/dist/modal/components/Header/Header.d.ts +0 -1
- package/dist/modal/components/Header/Header.js +0 -43
- package/dist/modal/components/Header/hooks/useStepTitle.d.ts +0 -3
- package/dist/modal/components/Header/hooks/useStepTitle.js +0 -62
- package/dist/modal/components/Hero/Hero.d.ts +0 -1
- package/dist/modal/components/Hero/Hero.js +0 -116
- package/dist/modal/components/IFrameStep/IFrameStep.d.ts +0 -1
- package/dist/modal/components/IFrameStep/IFrameStep.js +0 -70
- package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +0 -5
- package/dist/modal/components/LoginDoneStep/LoginDoneStep.js +0 -44
- package/dist/modal/components/ModalContent/ModalContent.d.ts +0 -10
- package/dist/modal/components/ModalContent/ModalContent.js +0 -88
- package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +0 -3
- package/dist/modal/components/OAuth/FarcasterOAuthStep.js +0 -31
- package/dist/modal/components/OAuth/OAuth.d.ts +0 -6
- package/dist/modal/components/OAuth/OAuth.js +0 -79
- package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +0 -8
- package/dist/modal/components/OAuth/TelegramOAuthStep.js +0 -74
- package/dist/modal/components/OnRampComponents/AddingFunds.d.ts +0 -1
- package/dist/modal/components/OnRampComponents/AddingFunds.js +0 -23
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.d.ts +0 -9
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +0 -77
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.d.ts +0 -6
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +0 -107
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.d.ts +0 -5
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +0 -132
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.d.ts +0 -5
- package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +0 -27
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.d.ts +0 -12
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +0 -160
- package/dist/modal/components/Waiting/Waiting.d.ts +0 -6
- package/dist/modal/components/Waiting/Waiting.js +0 -17
- package/dist/modal/components/WalletCard/PartnerIcon.d.ts +0 -6
- package/dist/modal/components/WalletCard/PartnerIcon.js +0 -34
- package/dist/modal/components/WalletCard/WalletCard.d.ts +0 -18
- package/dist/modal/components/WalletCard/WalletCard.js +0 -128
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.d.ts +0 -6
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +0 -83
- package/dist/modal/components/common.d.ts +0 -59
- package/dist/modal/components/common.js +0 -261
- package/dist/modal/components/index.d.ts +0 -1
- package/dist/modal/components/index.js +0 -2
- package/dist/modal/constants/constants.d.ts +0 -40
- package/dist/modal/constants/constants.js +0 -142
- package/dist/modal/constants/defaults.d.ts +0 -5
- package/dist/modal/constants/defaults.js +0 -10
- package/dist/modal/constants/oAuthLogos.d.ts +0 -17
- package/dist/modal/constants/oAuthLogos.js +0 -158
- package/dist/modal/constants/walletTypeConfig.d.ts +0 -6
- package/dist/modal/constants/walletTypeConfig.js +0 -13
- package/dist/modal/hooks/useGoBack.d.ts +0 -1
- package/dist/modal/hooks/useGoBack.js +0 -43
- package/dist/modal/hooks/useTelegramLogin.d.ts +0 -12
- package/dist/modal/hooks/useTelegramLogin.js +0 -65
- package/dist/modal/index.d.ts +0 -8
- package/dist/modal/index.js +0 -29
- package/dist/modal/stores/index.d.ts +0 -1
- package/dist/modal/stores/index.js +0 -2
- package/dist/modal/stores/modal/actions.d.ts +0 -3
- package/dist/modal/stores/modal/actions.js +0 -135
- package/dist/modal/stores/modal/useModalStore.d.ts +0 -103
- package/dist/modal/stores/modal/useModalStore.js +0 -73
- package/dist/modal/types/commonTypes.d.ts +0 -6
- package/dist/modal/types/commonTypes.js +0 -1
- package/dist/modal/types/modalProps.d.ts +0 -129
- package/dist/modal/types/modalProps.js +0 -12
- package/dist/modal/utils/authInputHelpers.d.ts +0 -5
- package/dist/modal/utils/authInputHelpers.js +0 -41
- package/dist/modal/utils/authLayoutHelpers.d.ts +0 -3
- package/dist/modal/utils/authLayoutHelpers.js +0 -8
- package/dist/modal/utils/countryCodes.d.ts +0 -8
- package/dist/modal/utils/countryCodes.js +0 -45
- package/dist/modal/utils/getMailtoLink.d.ts +0 -1
- package/dist/modal/utils/getMailtoLink.js +0 -10
- package/dist/modal/utils/getTileButtonFlex.d.ts +0 -1
- package/dist/modal/utils/getTileButtonFlex.js +0 -20
- package/dist/modal/utils/getWalletDisplayName.d.ts +0 -5
- package/dist/modal/utils/getWalletDisplayName.js +0 -22
- package/dist/modal/utils/isPasskeySupported.d.ts +0 -1
- package/dist/modal/utils/isPasskeySupported.js +0 -15
- package/dist/modal/utils/openPopup.d.ts +0 -6
- package/dist/modal/utils/openPopup.js +0 -60
- package/dist/modal/utils/routeMobileExternalWallet.d.ts +0 -1
- package/dist/modal/utils/routeMobileExternalWallet.js +0 -31
- package/dist/modal/utils/steps.d.ts +0 -136
- package/dist/modal/utils/steps.js +0 -279
- package/dist/modal/utils/stringFormatters.d.ts +0 -5
- package/dist/modal/utils/stringFormatters.js +0 -19
- package/dist/modal/utils/validateOnRampConfig.d.ts +0 -5
- package/dist/modal/utils/validateOnRampConfig.js +0 -32
- package/dist/provider/actions/getEmbeddedAccount.d.ts +0 -26
- package/dist/provider/actions/getEmbeddedAccount.js +0 -52
- package/dist/provider/actions/getWallet.d.ts +0 -5
- package/dist/provider/actions/getWallet.js +0 -18
- package/dist/provider/actions/index.d.ts +0 -47
- package/dist/provider/actions/index.js +0 -79
- package/dist/provider/actions/utils.d.ts +0 -4
- package/dist/provider/actions/utils.js +0 -34
- package/dist/provider/components/CosmosWalletWrapper.d.ts +0 -11
- package/dist/provider/components/CosmosWalletWrapper.js +0 -43
- package/dist/provider/components/EvmWalletWrapper.d.ts +0 -12
- package/dist/provider/components/EvmWalletWrapper.js +0 -43
- package/dist/provider/components/ExternalWalletWrapper.d.ts +0 -8
- package/dist/provider/components/ExternalWalletWrapper.js +0 -140
- package/dist/provider/components/SolanaWalletWrapper.d.ts +0 -9
- package/dist/provider/components/SolanaWalletWrapper.js +0 -44
- package/dist/provider/external/getParaCosmosConnector.d.ts +0 -7
- package/dist/provider/external/getParaCosmosConnector.js +0 -19
- package/dist/provider/external/getParaCosmosLib.d.ts +0 -4
- package/dist/provider/external/getParaCosmosLib.js +0 -16
- package/dist/provider/external/getParaEvmConnector.d.ts +0 -7
- package/dist/provider/external/getParaEvmConnector.js +0 -19
- package/dist/provider/external/getParaEvmLib.d.ts +0 -4
- package/dist/provider/external/getParaEvmLib.js +0 -16
- package/dist/provider/external/getParaSolanaConnector.d.ts +0 -7
- package/dist/provider/external/getParaSolanaConnector.js +0 -19
- package/dist/provider/external/getParaSolanaLib.d.ts +0 -4
- package/dist/provider/external/getParaSolanaLib.js +0 -16
- package/dist/provider/external/stubs/CosmosExternalWalletContextStub.d.ts +0 -2
- package/dist/provider/external/stubs/CosmosExternalWalletContextStub.js +0 -8
- package/dist/provider/external/stubs/EvmExternalWalletContextStub.d.ts +0 -2
- package/dist/provider/external/stubs/EvmExternalWalletContextStub.js +0 -8
- package/dist/provider/external/stubs/SolanaExternalWalletContextStub.d.ts +0 -2
- package/dist/provider/external/stubs/SolanaExternalWalletContextStub.js +0 -8
- package/dist/provider/hooks/index.d.ts +0 -3
- package/dist/provider/hooks/index.js +0 -4
- package/dist/provider/hooks/mutations/core.d.ts +0 -27
- package/dist/provider/hooks/mutations/core.js +0 -66
- package/dist/provider/hooks/mutations/index.d.ts +0 -3
- package/dist/provider/hooks/mutations/index.js +0 -9
- package/dist/provider/hooks/mutations/useLinkAccount.d.ts +0 -9
- package/dist/provider/hooks/mutations/useLinkAccount.js +0 -18
- package/dist/provider/hooks/mutations/utils.d.ts +0 -12
- package/dist/provider/hooks/mutations/utils.js +0 -90
- package/dist/provider/hooks/queries/core.d.ts +0 -4
- package/dist/provider/hooks/queries/core.js +0 -16
- package/dist/provider/hooks/queries/index.d.ts +0 -4
- package/dist/provider/hooks/queries/index.js +0 -11
- package/dist/provider/hooks/queries/useAccount.d.ts +0 -94
- package/dist/provider/hooks/queries/useAccount.js +0 -138
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +0 -5
- package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +0 -24
- package/dist/provider/hooks/queries/useWallet.d.ts +0 -5
- package/dist/provider/hooks/queries/useWallet.js +0 -26
- package/dist/provider/hooks/queries/useWalletBalance.d.ts +0 -6
- package/dist/provider/hooks/queries/useWalletBalance.js +0 -55
- package/dist/provider/hooks/queries/utils.d.ts +0 -7
- package/dist/provider/hooks/queries/utils.js +0 -25
- package/dist/provider/hooks/utils/index.d.ts +0 -3
- package/dist/provider/hooks/utils/index.js +0 -10
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.d.ts +0 -3
- package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +0 -74
- package/dist/provider/hooks/utils/useClient.d.ts +0 -5
- package/dist/provider/hooks/utils/useClient.js +0 -10
- package/dist/provider/hooks/utils/useEventListeners.d.ts +0 -2
- package/dist/provider/hooks/utils/useEventListeners.js +0 -157
- package/dist/provider/hooks/utils/useFormattedBiometricHints.d.ts +0 -4
- package/dist/provider/hooks/utils/useFormattedBiometricHints.js +0 -27
- package/dist/provider/hooks/utils/useInternalClient.d.ts +0 -5
- package/dist/provider/hooks/utils/useInternalClient.js +0 -10
- package/dist/provider/hooks/utils/useModal.d.ts +0 -11
- package/dist/provider/hooks/utils/useModal.js +0 -27
- package/dist/provider/hooks/utils/useWalletState.d.ts +0 -15
- package/dist/provider/hooks/utils/useWalletState.js +0 -48
- package/dist/provider/index.d.ts +0 -6
- package/dist/provider/index.js +0 -11
- package/dist/provider/providers/AccountLinkProvider.d.ts +0 -47
- package/dist/provider/providers/AccountLinkProvider.js +0 -452
- package/dist/provider/providers/AuthProvider.d.ts +0 -37
- package/dist/provider/providers/AuthProvider.js +0 -553
- package/dist/provider/providers/CosmosExternalWalletProvider.d.ts +0 -7
- package/dist/provider/providers/CosmosExternalWalletProvider.js +0 -66
- package/dist/provider/providers/EvmExternalWalletProvider.d.ts +0 -7
- package/dist/provider/providers/EvmExternalWalletProvider.js +0 -74
- package/dist/provider/providers/ExternalWalletProvider.d.ts +0 -59
- package/dist/provider/providers/ExternalWalletProvider.js +0 -596
- package/dist/provider/providers/SolanaExternalWalletProvider.d.ts +0 -7
- package/dist/provider/providers/SolanaExternalWalletProvider.js +0 -66
- package/dist/provider/stores/getters.d.ts +0 -4
- package/dist/provider/stores/getters.js +0 -13
- package/dist/provider/stores/setters.d.ts +0 -1
- package/dist/provider/stores/setters.js +0 -7
- package/dist/provider/stores/slices/analytics.d.ts +0 -3
- package/dist/provider/stores/slices/analytics.js +0 -9
- package/dist/provider/stores/slices/client.d.ts +0 -3
- package/dist/provider/stores/slices/client.js +0 -9
- package/dist/provider/stores/slices/config.d.ts +0 -3
- package/dist/provider/stores/slices/config.js +0 -9
- package/dist/provider/stores/slices/externalWallets.d.ts +0 -3
- package/dist/provider/stores/slices/externalWallets.js +0 -46
- package/dist/provider/stores/slices/index.d.ts +0 -5
- package/dist/provider/stores/slices/index.js +0 -6
- package/dist/provider/stores/slices/modal.d.ts +0 -3
- package/dist/provider/stores/slices/modal.js +0 -18
- package/dist/provider/stores/slices/wallet.d.ts +0 -3
- package/dist/provider/stores/slices/wallet.js +0 -13
- package/dist/provider/stores/types.d.ts +0 -76
- package/dist/provider/stores/types.js +0 -1
- package/dist/provider/stores/useStore.d.ts +0 -17
- package/dist/provider/stores/useStore.js +0 -34
- package/dist/provider/types/externalWalletProviders.d.ts +0 -12
- package/dist/provider/types/externalWalletProviders.js +0 -1
- package/dist/provider/types/provider.d.ts +0 -161
- package/dist/provider/types/provider.js +0 -1
- package/dist/provider/types/query.d.ts +0 -3
- package/dist/provider/types/query.js +0 -1
- package/dist/provider/types/utils.d.ts +0 -45
- package/dist/provider/types/utils.js +0 -1
- package/dist/provider/utils/constants.d.ts +0 -5
- package/dist/provider/utils/constants.js +0 -10
- package/dist/provider/utils/paraConfigTypeGuards.d.ts +0 -7
- package/dist/provider/utils/paraConfigTypeGuards.js +0 -13
- package/dist/provider/utils/renameMutations.d.ts +0 -5
- package/dist/provider/utils/renameMutations.js +0 -18
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
__async
|
|
4
|
-
} from "../../../chunk-MMUBH76A.js";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
7
|
-
CpslButton,
|
|
8
|
-
CpslIcon,
|
|
9
|
-
CpslInput,
|
|
10
|
-
CpslSelect,
|
|
11
|
-
CpslSelectItem,
|
|
12
|
-
CpslSpinner,
|
|
13
|
-
CpslText
|
|
14
|
-
} from "@getpara/react-components";
|
|
15
|
-
import { useEffect, useMemo, useRef, useState } from "react";
|
|
16
|
-
import { safeStyled } from "@getpara/react-common";
|
|
17
|
-
import countryCodes from "../../utils/countryCodes.js";
|
|
18
|
-
import { MOBILE_SIZE } from "../../constants/constants.js";
|
|
19
|
-
import { useDropdownPosition } from "./hooks/useDropdownPosition.js";
|
|
20
|
-
import { defaultPhoneMask, phoneMasks } from "./phoneMasks.js";
|
|
21
|
-
import { extractAuthInfo } from "@getpara/user-management-client";
|
|
22
|
-
import parsePhoneNumberFromString from "libphonenumber-js";
|
|
23
|
-
import { isCcMatch, validateInput } from "../../utils/authInputHelpers.js";
|
|
24
|
-
const DEFAULT_COUNTRY = { label: "United States", value: "+1", selectedLabel: "US", icon: "US" };
|
|
25
|
-
const AuthInput = ({
|
|
26
|
-
defaultAuth,
|
|
27
|
-
disableEmailLogin,
|
|
28
|
-
disablePhoneLogin,
|
|
29
|
-
onSubmit: _onSubmit,
|
|
30
|
-
isSubmitting,
|
|
31
|
-
disableSubmitButton,
|
|
32
|
-
children: Children,
|
|
33
|
-
error: propsError,
|
|
34
|
-
sticky = false
|
|
35
|
-
}) => {
|
|
36
|
-
var _a, _b, _c;
|
|
37
|
-
const inputRef = useRef(null);
|
|
38
|
-
const { dropdownMaxHeight, dropdownWidth } = useDropdownPosition(inputRef);
|
|
39
|
-
const [authInfo, storedNationalNumber, storedCountryCode] = useMemo(() => {
|
|
40
|
-
if (!defaultAuth) {
|
|
41
|
-
return [void 0, void 0, void 0];
|
|
42
|
-
}
|
|
43
|
-
const authInfo2 = extractAuthInfo(defaultAuth);
|
|
44
|
-
if (!authInfo2 || (authInfo2 == null ? void 0 : authInfo2.authType) !== "phone") {
|
|
45
|
-
return [authInfo2, void 0, void 0];
|
|
46
|
-
}
|
|
47
|
-
const parsed = parsePhoneNumberFromString(authInfo2.identifier);
|
|
48
|
-
return [authInfo2, parsed == null ? void 0 : parsed.nationalNumber, parsed == null ? void 0 : parsed.countryCallingCode];
|
|
49
|
-
}, [defaultAuth]);
|
|
50
|
-
const [countryCode, setCountryCode] = useState(storedCountryCode != null ? storedCountryCode : "+1");
|
|
51
|
-
const [identifier, setIdentifier] = useState(
|
|
52
|
-
(() => {
|
|
53
|
-
if (!(authInfo == null ? void 0 : authInfo.authType) || ["telegram", "farcaster", "externalWallet"].includes(authInfo == null ? void 0 : authInfo.authType)) {
|
|
54
|
-
return "";
|
|
55
|
-
}
|
|
56
|
-
if (authInfo.authType !== "phone") {
|
|
57
|
-
return authInfo.identifier;
|
|
58
|
-
}
|
|
59
|
-
return storedNationalNumber != null ? storedNationalNumber : "";
|
|
60
|
-
})()
|
|
61
|
-
);
|
|
62
|
-
const [identifierType, setIdentifierType] = useState(
|
|
63
|
-
authInfo && (authInfo.authType === "email" || authInfo.authType === "phone") ? authInfo.authType : void 0
|
|
64
|
-
);
|
|
65
|
-
const [matchedCountryCode, setMatchedCountryCode] = useState(
|
|
66
|
-
(_a = countryCodes.find((option) => isCcMatch(countryCode, option))) != null ? _a : DEFAULT_COUNTRY
|
|
67
|
-
);
|
|
68
|
-
const [error, setError] = useState(propsError || void 0);
|
|
69
|
-
const [isPending, setIsPending] = useState(isSubmitting || false);
|
|
70
|
-
const [search, setSearch] = useState("");
|
|
71
|
-
const setCountryCodes = (countyCodeInput) => {
|
|
72
|
-
setCountryCode(countyCodeInput.value);
|
|
73
|
-
setMatchedCountryCode(countyCodeInput);
|
|
74
|
-
};
|
|
75
|
-
const isEmail = identifierType === "email";
|
|
76
|
-
const isPhone = identifierType === "phone";
|
|
77
|
-
const isUnknown = !identifierType;
|
|
78
|
-
const filteredCountryCodes = search ? countryCodes.filter(
|
|
79
|
-
(cc) => cc.selectedLabel.toLowerCase().includes(search.toLowerCase()) || cc.label.toLowerCase().includes(search.toLowerCase()) || cc.value.toLowerCase().includes(search.toLowerCase())
|
|
80
|
-
) : countryCodes;
|
|
81
|
-
const handleSearchInput = (ev) => {
|
|
82
|
-
setSearch(ev.detail);
|
|
83
|
-
};
|
|
84
|
-
const handleIdentifierInput = (ev) => {
|
|
85
|
-
var _a2;
|
|
86
|
-
if (!sticky) {
|
|
87
|
-
setError(void 0);
|
|
88
|
-
}
|
|
89
|
-
const newIdentifier = (_a2 = ev.detail.value) != null ? _a2 : "";
|
|
90
|
-
let isNewPhone = false, isNewEmail = false;
|
|
91
|
-
if (!disablePhoneLogin) {
|
|
92
|
-
const countryCodeInputMatch = countryCodes.find((option) => isCcMatch(newIdentifier, option));
|
|
93
|
-
if (countryCodeInputMatch) {
|
|
94
|
-
setCountryCodes(countryCodeInputMatch);
|
|
95
|
-
setIdentifierType("phone");
|
|
96
|
-
setIdentifier("");
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
isNewPhone = !isEmail && isPhone ? /\d+$/.test(newIdentifier) : /\d\d\d+$/.test(newIdentifier);
|
|
100
|
-
}
|
|
101
|
-
if (!disableEmailLogin) {
|
|
102
|
-
isNewEmail = /\D.*$/.test(newIdentifier);
|
|
103
|
-
}
|
|
104
|
-
setIdentifierType(isNewEmail ? "email" : isNewPhone ? "phone" : void 0);
|
|
105
|
-
setIdentifier(newIdentifier);
|
|
106
|
-
};
|
|
107
|
-
const handleCountryCodeInput = (ev) => {
|
|
108
|
-
const matchedCountryCode2 = countryCodes.find((code) => code.selectedLabel === ev.detail);
|
|
109
|
-
if (matchedCountryCode2) {
|
|
110
|
-
setCountryCodes(matchedCountryCode2);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
const onSubmit = () => __async(void 0, null, function* () {
|
|
114
|
-
setError(void 0);
|
|
115
|
-
try {
|
|
116
|
-
const auth = validateInput(identifier, countryCode, identifierType);
|
|
117
|
-
_onSubmit(auth);
|
|
118
|
-
} catch (err) {
|
|
119
|
-
setError(err.message);
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
useEffect(() => {
|
|
123
|
-
setIsPending(isSubmitting);
|
|
124
|
-
}, [isSubmitting]);
|
|
125
|
-
useEffect(() => {
|
|
126
|
-
if (propsError === null || propsError === void 0 && !sticky) {
|
|
127
|
-
setError(void 0);
|
|
128
|
-
}
|
|
129
|
-
if (propsError) {
|
|
130
|
-
setError(propsError);
|
|
131
|
-
setIsPending(false);
|
|
132
|
-
}
|
|
133
|
-
}, [propsError, sticky]);
|
|
134
|
-
useEffect(() => {
|
|
135
|
-
if (!sticky || isSubmitting) {
|
|
136
|
-
setIsPending(isSubmitting);
|
|
137
|
-
}
|
|
138
|
-
}, [error]);
|
|
139
|
-
if (disableEmailLogin && disablePhoneLogin) {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
return /* @__PURE__ */ jsxs(
|
|
143
|
-
"form",
|
|
144
|
-
{
|
|
145
|
-
onSubmit: (e) => __async(void 0, null, function* () {
|
|
146
|
-
e.preventDefault();
|
|
147
|
-
onSubmit();
|
|
148
|
-
}),
|
|
149
|
-
style: { width: "100%" },
|
|
150
|
-
children: [
|
|
151
|
-
/* @__PURE__ */ jsxs(
|
|
152
|
-
StyledInput,
|
|
153
|
-
{
|
|
154
|
-
ref: inputRef,
|
|
155
|
-
id: "authInput",
|
|
156
|
-
placeholder: isEmail || disablePhoneLogin ? "Enter email" : isPhone || disableEmailLogin ? "Enter phone" : "Enter email or phone",
|
|
157
|
-
onCpslInput: handleIdentifierInput,
|
|
158
|
-
value: identifier,
|
|
159
|
-
errorText: error,
|
|
160
|
-
autofocus: true,
|
|
161
|
-
inputMode: "email",
|
|
162
|
-
onKeyDown: (e) => __async(void 0, null, function* () {
|
|
163
|
-
return e.key === "Enter" && onSubmit();
|
|
164
|
-
}),
|
|
165
|
-
contrastText: true,
|
|
166
|
-
isPhone,
|
|
167
|
-
mask: identifierType === "phone" ? (_c = phoneMasks[(_b = matchedCountryCode.selectedLabel) != null ? _b : ""]) != null ? _c : defaultPhoneMask : void 0,
|
|
168
|
-
enterkeyhint: "go",
|
|
169
|
-
noAutoDisable: true,
|
|
170
|
-
disabled: isPending,
|
|
171
|
-
"data-testid": "auth-input",
|
|
172
|
-
children: [
|
|
173
|
-
/* @__PURE__ */ jsxs(IconContainer, { slot: "start", children: [
|
|
174
|
-
!disableEmailLogin && (isUnknown || isEmail) && /* @__PURE__ */ jsx(CpslIcon, { "aria-label": "email", icon: "mail" }),
|
|
175
|
-
!disablePhoneLogin && isUnknown && /* @__PURE__ */ jsx(CpslIcon, { "aria-label": "phone", icon: "phone" }),
|
|
176
|
-
isPhone && /* @__PURE__ */ jsxs(
|
|
177
|
-
CountryCodeSelect,
|
|
178
|
-
{
|
|
179
|
-
selectedValue: matchedCountryCode.selectedLabel,
|
|
180
|
-
onCpslSelectValueChange: handleCountryCodeInput,
|
|
181
|
-
showFormattedSelectedItem: true,
|
|
182
|
-
autoWidth: true,
|
|
183
|
-
dropdownMaxHeight,
|
|
184
|
-
anchorElId: "authInput",
|
|
185
|
-
$width: dropdownWidth != null ? dropdownWidth : 0,
|
|
186
|
-
showSearch: true,
|
|
187
|
-
searchPlaceholder: "Search Countries",
|
|
188
|
-
onCpslSearchChange: handleSearchInput,
|
|
189
|
-
"data-testid": "country-code-select",
|
|
190
|
-
children: [
|
|
191
|
-
matchedCountryCode && /* @__PURE__ */ jsxs(SelectedItem, { slot: "selected-item", children: [
|
|
192
|
-
/* @__PURE__ */ jsx(CpslText, { children: matchedCountryCode.selectedLabel }),
|
|
193
|
-
/* @__PURE__ */ jsx(CpslText, { children: matchedCountryCode.value })
|
|
194
|
-
] }),
|
|
195
|
-
filteredCountryCodes.map((cc) => /* @__PURE__ */ jsxs(StyledSelectItem, { slot: "items", value: cc.selectedLabel, children: [
|
|
196
|
-
/* @__PURE__ */ jsx(CpslText, { children: cc.label }),
|
|
197
|
-
/* @__PURE__ */ jsx(CpslText, { children: cc.value })
|
|
198
|
-
] }, cc.selectedLabel))
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
)
|
|
202
|
-
] }),
|
|
203
|
-
identifier && !disableSubmitButton && /* @__PURE__ */ jsx(CpslButton, { slot: "end", size: "small", fullWidth: true, disabled: isPending, onClick: onSubmit, children: isPending ? /* @__PURE__ */ jsx(CpslSpinner, { size: 16 }) : /* @__PURE__ */ jsx(CpslIcon, { icon: "arrowNarrow" }) })
|
|
204
|
-
]
|
|
205
|
-
},
|
|
206
|
-
"email"
|
|
207
|
-
),
|
|
208
|
-
Children && /* @__PURE__ */ jsx(ChildContainer, { children: /* @__PURE__ */ jsx(Children, { onSubmit, isPending, isSubmitting: isPending }) })
|
|
209
|
-
]
|
|
210
|
-
}
|
|
211
|
-
);
|
|
212
|
-
};
|
|
213
|
-
const IconContainer = safeStyled.div`
|
|
214
|
-
height: 100%;
|
|
215
|
-
display: flex;
|
|
216
|
-
align-items: center;
|
|
217
|
-
gap: 8px;
|
|
218
|
-
padding-right: 12px;
|
|
219
|
-
border-right: 1px solid var(--cpsl-color-background-16);
|
|
220
|
-
|
|
221
|
-
& cpsl-icon {
|
|
222
|
-
--icon-color: var(--cpsl-color-contrast);
|
|
223
|
-
}
|
|
224
|
-
`;
|
|
225
|
-
const CountryCodeSelect = safeStyled(CpslSelect)`
|
|
226
|
-
--container-height: 100%;
|
|
227
|
-
--container-padding-start: 0px;
|
|
228
|
-
--container-padding-end: 0px;
|
|
229
|
-
--container-border-width: 0px;
|
|
230
|
-
--container-gap: 4px;
|
|
231
|
-
--container-background-color: transparent;
|
|
232
|
-
--container-box-shadow: none;
|
|
233
|
-
|
|
234
|
-
&::part(dropdown) {
|
|
235
|
-
width: ${({ $width }) => `${$width - 2}px`};
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
&::part(popover) {
|
|
239
|
-
@media (max-width: ${MOBILE_SIZE}px) {
|
|
240
|
-
top: unset !important;
|
|
241
|
-
bottom: 16px;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
cpsl-auth-modal.force-mobile-media & {
|
|
245
|
-
top: unset !important;
|
|
246
|
-
bottom: 16px;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
`;
|
|
250
|
-
const StyledSelectItem = safeStyled(CpslSelectItem)`
|
|
251
|
-
&::part(inner-container) {
|
|
252
|
-
justify-content: space-between;
|
|
253
|
-
}
|
|
254
|
-
`;
|
|
255
|
-
const SelectedItem = safeStyled.div`
|
|
256
|
-
display: flex;
|
|
257
|
-
gap: 4px;
|
|
258
|
-
align-items: center;
|
|
259
|
-
`;
|
|
260
|
-
const StyledInput = safeStyled(CpslInput)`
|
|
261
|
-
--container-background-color: var(--cpsl-color-background-8);
|
|
262
|
-
--input-background-color: var(--cpsl-color-background-8);
|
|
263
|
-
--container-padding-end: 8px;
|
|
264
|
-
width: 100%;
|
|
265
|
-
`;
|
|
266
|
-
const ChildContainer = safeStyled.div`
|
|
267
|
-
display: flex;
|
|
268
|
-
flex-direction: column;
|
|
269
|
-
align-items: center;
|
|
270
|
-
justify-content: center;
|
|
271
|
-
gap: 8px;
|
|
272
|
-
margin-top: 24px;
|
|
273
|
-
width: 100%;
|
|
274
|
-
`;
|
|
275
|
-
export {
|
|
276
|
-
AuthInput
|
|
277
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from 'react';
|
|
2
|
-
export declare const useDropdownPosition: (inputRef: MutableRefObject<HTMLCpslInputElement | HTMLDivElement | null>) => {
|
|
3
|
-
dropdownMaxHeight: number | undefined;
|
|
4
|
-
dropdownWidth: number | undefined;
|
|
5
|
-
mobileAnchor: number | undefined;
|
|
6
|
-
resize: () => void;
|
|
7
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "../../../../chunk-MMUBH76A.js";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
const useDropdownPosition = (inputRef) => {
|
|
5
|
-
const [dropdownMaxHeight, setDropdownMaxHeight] = useState();
|
|
6
|
-
const [dropdownWidth, setDropdownWidth] = useState();
|
|
7
|
-
const [mobileAnchor, setMobileAnchor] = useState();
|
|
8
|
-
const resize = () => {
|
|
9
|
-
var _a, _b, _c, _d;
|
|
10
|
-
if (typeof window !== "undefined") {
|
|
11
|
-
const newMaxHeight = Math.max(
|
|
12
|
-
window.innerHeight - ((_b = (_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.getBoundingClientRect().bottom) != null ? _b : 0) - 20,
|
|
13
|
-
window.innerHeight * 0.25
|
|
14
|
-
);
|
|
15
|
-
setDropdownMaxHeight(newMaxHeight);
|
|
16
|
-
setDropdownWidth((_c = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _c.getBoundingClientRect().width);
|
|
17
|
-
setMobileAnchor((_d = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _d.getBoundingClientRect().height);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
if (inputRef.current && !dropdownMaxHeight) {
|
|
21
|
-
resize();
|
|
22
|
-
}
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
typeof window !== "undefined" && window.addEventListener("resize", resize);
|
|
25
|
-
return () => {
|
|
26
|
-
typeof window !== "undefined" && window.removeEventListener("resize", resize);
|
|
27
|
-
};
|
|
28
|
-
}, []);
|
|
29
|
-
return { dropdownMaxHeight, dropdownWidth, mobileAnchor, resize };
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
useDropdownPosition
|
|
33
|
-
};
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
export declare const defaultPhoneMask = "#################";
|
|
2
|
-
export declare const phoneMasks: {
|
|
3
|
-
AF: string;
|
|
4
|
-
AX: string;
|
|
5
|
-
AL: string;
|
|
6
|
-
DZ: string;
|
|
7
|
-
AS: string;
|
|
8
|
-
AD: string;
|
|
9
|
-
AO: string;
|
|
10
|
-
AI: string;
|
|
11
|
-
AG: string;
|
|
12
|
-
AR: string;
|
|
13
|
-
AM: string;
|
|
14
|
-
AW: string;
|
|
15
|
-
AU: string;
|
|
16
|
-
AT: string;
|
|
17
|
-
AZ: string;
|
|
18
|
-
BS: string;
|
|
19
|
-
BH: string;
|
|
20
|
-
BD: string;
|
|
21
|
-
BB: string;
|
|
22
|
-
BY: string;
|
|
23
|
-
BE: string;
|
|
24
|
-
BZ: string;
|
|
25
|
-
BJ: string;
|
|
26
|
-
BM: string;
|
|
27
|
-
BT: string;
|
|
28
|
-
BO: string;
|
|
29
|
-
BA: string;
|
|
30
|
-
BW: string;
|
|
31
|
-
BR: string;
|
|
32
|
-
IO: string;
|
|
33
|
-
BN: string;
|
|
34
|
-
BG: string;
|
|
35
|
-
BF: string;
|
|
36
|
-
BI: string;
|
|
37
|
-
KH: string;
|
|
38
|
-
CM: string;
|
|
39
|
-
CA: string;
|
|
40
|
-
CV: string;
|
|
41
|
-
KY: string;
|
|
42
|
-
CF: string;
|
|
43
|
-
TD: string;
|
|
44
|
-
CL: string;
|
|
45
|
-
CN: string;
|
|
46
|
-
CX: string;
|
|
47
|
-
CC: string;
|
|
48
|
-
CO: string;
|
|
49
|
-
KM: string;
|
|
50
|
-
CG: string;
|
|
51
|
-
CK: string;
|
|
52
|
-
CR: string;
|
|
53
|
-
HR: string;
|
|
54
|
-
CU: string;
|
|
55
|
-
CY: string;
|
|
56
|
-
CZ: string;
|
|
57
|
-
CD: string;
|
|
58
|
-
DK: string;
|
|
59
|
-
DJ: string;
|
|
60
|
-
DM: string;
|
|
61
|
-
DO: string;
|
|
62
|
-
EC: string;
|
|
63
|
-
EG: string;
|
|
64
|
-
SV: string;
|
|
65
|
-
GQ: string;
|
|
66
|
-
ER: string;
|
|
67
|
-
EE: string;
|
|
68
|
-
SZ: string;
|
|
69
|
-
ET: string;
|
|
70
|
-
FK: string;
|
|
71
|
-
FO: string;
|
|
72
|
-
FJ: string;
|
|
73
|
-
FI: string;
|
|
74
|
-
FR: string;
|
|
75
|
-
GF: string;
|
|
76
|
-
PF: string;
|
|
77
|
-
GA: string;
|
|
78
|
-
GM: string;
|
|
79
|
-
GE: string;
|
|
80
|
-
DE: string;
|
|
81
|
-
GH: string;
|
|
82
|
-
GI: string;
|
|
83
|
-
GR: string;
|
|
84
|
-
GL: string;
|
|
85
|
-
GD: string;
|
|
86
|
-
GP: string;
|
|
87
|
-
GU: string;
|
|
88
|
-
GT: string;
|
|
89
|
-
GG: string;
|
|
90
|
-
GN: string;
|
|
91
|
-
GW: string;
|
|
92
|
-
GY: string;
|
|
93
|
-
HT: string;
|
|
94
|
-
VA: string;
|
|
95
|
-
HN: string;
|
|
96
|
-
HK: string;
|
|
97
|
-
HU: string;
|
|
98
|
-
IS: string;
|
|
99
|
-
IN: string;
|
|
100
|
-
ID: string;
|
|
101
|
-
IR: string;
|
|
102
|
-
IQ: string;
|
|
103
|
-
IE: string;
|
|
104
|
-
IM: string;
|
|
105
|
-
IL: string;
|
|
106
|
-
IT: string;
|
|
107
|
-
CI: string;
|
|
108
|
-
JM: string;
|
|
109
|
-
JP: string;
|
|
110
|
-
JE: string;
|
|
111
|
-
JO: string;
|
|
112
|
-
KZ: string;
|
|
113
|
-
KE: string;
|
|
114
|
-
KI: string;
|
|
115
|
-
KP: string;
|
|
116
|
-
KR: string;
|
|
117
|
-
XK: string;
|
|
118
|
-
KW: string;
|
|
119
|
-
KG: string;
|
|
120
|
-
LA: string;
|
|
121
|
-
LV: string;
|
|
122
|
-
LB: string;
|
|
123
|
-
LS: string;
|
|
124
|
-
LR: string;
|
|
125
|
-
LY: string;
|
|
126
|
-
LI: string;
|
|
127
|
-
LT: string;
|
|
128
|
-
LU: string;
|
|
129
|
-
MO: string;
|
|
130
|
-
MG: string;
|
|
131
|
-
MW: string;
|
|
132
|
-
MY: string;
|
|
133
|
-
MV: string;
|
|
134
|
-
ML: string;
|
|
135
|
-
MT: string;
|
|
136
|
-
MH: string;
|
|
137
|
-
MQ: string;
|
|
138
|
-
MR: string;
|
|
139
|
-
MU: string;
|
|
140
|
-
YT: string;
|
|
141
|
-
MX: string;
|
|
142
|
-
FM: string;
|
|
143
|
-
MD: string;
|
|
144
|
-
MC: string;
|
|
145
|
-
MN: string;
|
|
146
|
-
ME: string;
|
|
147
|
-
MS: string;
|
|
148
|
-
MA: string;
|
|
149
|
-
MZ: string;
|
|
150
|
-
MM: string;
|
|
151
|
-
NA: string;
|
|
152
|
-
NR: string;
|
|
153
|
-
NP: string;
|
|
154
|
-
NL: string;
|
|
155
|
-
NC: string;
|
|
156
|
-
NZ: string;
|
|
157
|
-
NI: string;
|
|
158
|
-
NE: string;
|
|
159
|
-
NG: string;
|
|
160
|
-
NU: string;
|
|
161
|
-
NF: string;
|
|
162
|
-
MK: string;
|
|
163
|
-
MP: string;
|
|
164
|
-
NO: string;
|
|
165
|
-
OM: string;
|
|
166
|
-
PK: string;
|
|
167
|
-
PW: string;
|
|
168
|
-
PS: string;
|
|
169
|
-
PA: string;
|
|
170
|
-
PG: string;
|
|
171
|
-
PY: string;
|
|
172
|
-
PE: string;
|
|
173
|
-
PH: string;
|
|
174
|
-
PN: string;
|
|
175
|
-
PL: string;
|
|
176
|
-
PT: string;
|
|
177
|
-
PR: string;
|
|
178
|
-
QA: string;
|
|
179
|
-
RE: string;
|
|
180
|
-
RO: string;
|
|
181
|
-
RU: string;
|
|
182
|
-
RW: string;
|
|
183
|
-
BL: string;
|
|
184
|
-
SH: string;
|
|
185
|
-
KN: string;
|
|
186
|
-
LC: string;
|
|
187
|
-
MF: string;
|
|
188
|
-
PM: string;
|
|
189
|
-
VC: string;
|
|
190
|
-
WS: string;
|
|
191
|
-
SM: string;
|
|
192
|
-
ST: string;
|
|
193
|
-
SA: string;
|
|
194
|
-
SN: string;
|
|
195
|
-
RS: string;
|
|
196
|
-
SC: string;
|
|
197
|
-
SL: string;
|
|
198
|
-
SG: string;
|
|
199
|
-
SX: string;
|
|
200
|
-
SK: string;
|
|
201
|
-
SI: string;
|
|
202
|
-
SB: string;
|
|
203
|
-
SO: string;
|
|
204
|
-
ZA: string;
|
|
205
|
-
GS: string;
|
|
206
|
-
SS: string;
|
|
207
|
-
ES: string;
|
|
208
|
-
LK: string;
|
|
209
|
-
SD: string;
|
|
210
|
-
SR: string;
|
|
211
|
-
SJ: string;
|
|
212
|
-
SE: string;
|
|
213
|
-
CH: string;
|
|
214
|
-
SY: string;
|
|
215
|
-
TW: string;
|
|
216
|
-
TJ: string;
|
|
217
|
-
TZ: string;
|
|
218
|
-
TH: string;
|
|
219
|
-
TL: string;
|
|
220
|
-
TG: string;
|
|
221
|
-
TK: string;
|
|
222
|
-
TO: string;
|
|
223
|
-
TT: string;
|
|
224
|
-
TN: string;
|
|
225
|
-
TR: string;
|
|
226
|
-
TM: string;
|
|
227
|
-
TC: string;
|
|
228
|
-
TV: string;
|
|
229
|
-
UG: string;
|
|
230
|
-
UA: string;
|
|
231
|
-
AE: string;
|
|
232
|
-
GB: string;
|
|
233
|
-
US: string;
|
|
234
|
-
UM: string;
|
|
235
|
-
UY: string;
|
|
236
|
-
UZ: string;
|
|
237
|
-
VU: string;
|
|
238
|
-
VE: string;
|
|
239
|
-
VN: string;
|
|
240
|
-
VG: string;
|
|
241
|
-
VI: string;
|
|
242
|
-
WF: string;
|
|
243
|
-
EH: string;
|
|
244
|
-
YE: string;
|
|
245
|
-
ZM: string;
|
|
246
|
-
ZW: string;
|
|
247
|
-
};
|