@stokr/components-library 0.6.7 → 0.6.8
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/.vscode/settings.json +3 -0
- package/CHANGELOG.md +7 -0
- package/Dockerfile +20 -0
- package/build/asset-manifest.json +45 -0
- package/build/favicon.ico +0 -0
- package/build/index.html +1 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/build/static/css/main.e30a9d15.css +15 -0
- package/build/static/css/main.e30a9d15.css.map +1 -0
- package/build/static/js/main.3e5959c7.js +3 -0
- package/build/static/js/main.3e5959c7.js.LICENSE.txt +164 -0
- package/build/static/js/main.3e5959c7.js.map +1 -0
- package/build/static/media/Ionicons.4e528d6445ca1974c313.woff +0 -0
- package/build/static/media/Ionicons.643c37f102b41f7f90c3.woff2 +0 -0
- package/build/static/media/Ionicons.98b7d3182f652f021bc3.ttf +0 -0
- package/build/static/media/OpenSans-Bold.9bea22b57dc165ed4382.ttf +0 -0
- package/build/static/media/OpenSans-Bold.a750292d6a0b5a760679.woff +0 -0
- package/build/static/media/OpenSans-Bold.cbfc24090ef8bacab132.woff2 +0 -0
- package/build/static/media/OpenSans-ExtraBold.21e493d43617de76dbc7.woff2 +0 -0
- package/build/static/media/OpenSans-ExtraBold.81f3ef07b7952e249da1.woff +0 -0
- package/build/static/media/OpenSans-ExtraBold.bcb6531cf820152b7538.ttf +0 -0
- package/build/static/media/OpenSans-Light.179ef2df02cb0b68c9fd.woff2 +0 -0
- package/build/static/media/OpenSans-Light.55053cc0a8e6482eca64.ttf +0 -0
- package/build/static/media/OpenSans-Light.c6a4bc1bd034d6303053.woff +0 -0
- package/build/static/media/OpenSans-Regular.3caa0d4f9b7d58668066.woff2 +0 -0
- package/build/static/media/OpenSans-Regular.9ec738fbb66068dc1ca7.woff +0 -0
- package/build/static/media/OpenSans-Regular.d97d7385fe8771611848.ttf +0 -0
- package/build/static/media/OpenSans-SemiBold.311956ded96d3fd2813d.woff2 +0 -0
- package/build/static/media/OpenSans-SemiBold.39f5961b2d3eb4aa5bf5.woff +0 -0
- package/build/static/media/OpenSans-SemiBold.d2b1865643b98c0e8b54.ttf +0 -0
- package/build/static/media/address-refreshing.5fbb0cc56c384480118a.gif +0 -0
- package/build/static/media/arrow-down-black.fe92da3ac6ed16b45bf57713df82cea2.svg +21 -0
- package/build/static/media/avatar-placeholder.488a33b3f080a43e0d43.png +0 -0
- package/build/static/media/icomoon.2640959b1f9381cde047.eot +0 -0
- package/build/static/media/icomoon.35bce49b15feeae93572c36a08feecd9.svg +47 -0
- package/build/static/media/icomoon.4c3c428d0ce82f840710.woff +0 -0
- package/build/static/media/icomoon.a1d7666a48f976227722.ttf +0 -0
- package/build/static/media/lemonway.33e88c3a49e7ac73e3a9.png +0 -0
- package/build/static/media/sicos-logo.7fa3ac9d583b52c3987da529da67cb15.svg +1 -0
- package/build/static/media/slick.2630a3e3eab21c607e21.svg +14 -0
- package/build/static/media/slick.295183786cd8a1389865.woff +0 -0
- package/build/static/media/slick.a4e97f5a2a64f0ab1323.eot +0 -0
- package/build/static/media/slick.c94f7671dcc99dce43e2.ttf +0 -0
- package/build/static/media/whales.7a1e9453670d08b8b76a.png +0 -0
- package/buildpushndeploy.sh +9 -0
- package/devops/Dockerfile +20 -0
- package/devops/Jenkinsfile +56 -0
- package/devops/ansible/docker-stack-deploy.yml +32 -0
- package/devops/ansible/hosts.ini +7 -0
- package/devops/docker-compose.yml +25 -0
- package/dist/api/StokrWeb3.js +184 -0
- package/dist/api/fetchData.js +76 -0
- package/dist/api/fetchDataPublic.js +65 -0
- package/dist/components/AccountBalance/AccountBalance.js +53 -0
- package/dist/components/AccountBalance/AccountBalance.stories.js +88 -0
- package/dist/components/AccountBalance/AccountBalance.styles.js +40 -0
- package/dist/components/AdminDashboard/Table/Table.js +170 -0
- package/dist/components/AdminDashboard/Table/Table.styles.js +79 -0
- package/dist/components/AgreementItem/AgreementItem.js +51 -0
- package/dist/components/AgreementItem/AgreementItem.stories.js +109 -0
- package/dist/components/AgreementItem/AgreementItem.styles.js +35 -0
- package/dist/components/AnalyticGraphs/Analytic.js +781 -0
- package/dist/components/AnalyticGraphs/Analytic.styles.js +37 -0
- package/dist/components/BackButton/BackButton.js +32 -0
- package/dist/components/BackButton/BackButton.stories.js +35 -0
- package/dist/components/BackButton/BackButton.styles.js +76 -0
- package/dist/components/Background/Background.js +45 -0
- package/dist/components/Background/Background.stories.js +78 -0
- package/dist/components/Background/Background.styles.js +76 -0
- package/dist/components/BarChart/BarChart.js +304 -0
- package/dist/components/BarChart/BarChart.stories.js +47 -0
- package/dist/components/BarChart/BarChart.styles.js +33 -0
- package/dist/components/BarChartLegend/BarChartLegend.js +106 -0
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +26 -0
- package/dist/components/BasicTable/BasicTable.js +32 -0
- package/dist/components/BasicTable/BasicTable.stories.js +63 -0
- package/dist/components/BasicTable/BasicTable.styles.js +52 -0
- package/dist/components/Button/Button.stories.js +79 -0
- package/dist/components/Button/Button.styles.js +83 -0
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +18 -0
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +45 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +34 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +34 -0
- package/dist/components/ChartBox/ChartBox.js +44 -0
- package/dist/components/ChartBox/ChartBox.stories.js +20 -0
- package/dist/components/ChartBox/ChartBox.styles.js +33 -0
- package/dist/components/ChartBox/ChartBoxDistribution.js +30 -0
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +21 -0
- package/dist/components/ChartLegend/ChartLegend.js +62 -0
- package/dist/components/ChartLegend/ChartLegend.stories.js +87 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +64 -0
- package/dist/components/Checkbox/Checkbox.js +116 -0
- package/dist/components/Checkbox/Checkbox.stories.js +92 -0
- package/dist/components/Checkbox/Checkbox.styles.js +45 -0
- package/dist/components/Checklist/UserChecklist.js +284 -0
- package/dist/components/Checklist/UserChecklist.stories.js +143 -0
- package/dist/components/ComponentScroll/ComponentScroll.js +100 -0
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +102 -0
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +66 -0
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +68 -0
- package/dist/components/CryptoAddress/ComponentWrap.js +37 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +145 -0
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +173 -0
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +186 -0
- package/dist/components/CryptoAddress/RadioWrap.js +49 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +54 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +74 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +67 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +40 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +59 -0
- package/dist/components/DonutChart/DonutChart.js +182 -0
- package/dist/components/DonutChart/DonutChart.stories.js +40 -0
- package/dist/components/DonutChart/DonutChart.styles.js +50 -0
- package/dist/components/DoubleButton/DoubleButton.styles.js +22 -0
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +15 -0
- package/dist/components/FAQ/FAQ.js +75 -0
- package/dist/components/FAQ/FAQ.stories.js +74 -0
- package/dist/components/FAQ/FAQ.styles.js +48 -0
- package/dist/components/Footer/Footer.js +66 -0
- package/dist/components/Footer/Footer.stories.js +54 -0
- package/dist/components/Footer/Footer.styles.js +74 -0
- package/dist/components/Footer/FooterLayout.js +125 -0
- package/dist/components/Footer/FooterLayout.stories.js +31 -0
- package/dist/components/Footer/FooterMenu.js +117 -0
- package/dist/components/Footer/FooterMenu.stories.js +121 -0
- package/dist/components/Footer/FooterMenu.styles.js +80 -0
- package/dist/components/Footer/index.js +27 -0
- package/dist/components/Footer/lemonway.png +0 -0
- package/dist/components/Footer/sicos-logo.svg +1 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +127 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +42 -0
- package/dist/components/Form/Form.js +68 -0
- package/dist/components/Form/Form.stories.js +35 -0
- package/dist/components/Form/Form.styles.js +59 -0
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +32 -0
- package/dist/components/Grid/Grid.styles.js +68 -0
- package/dist/components/Header/Header.js +457 -0
- package/dist/components/Header/Header.stories.js +190 -0
- package/dist/components/Header/Header.styles.js +182 -0
- package/dist/components/Icon/Icon.style.js +71 -0
- package/dist/components/InfoIcon/InfoIcon.js +50 -0
- package/dist/components/InfoIcon/InfoIcon.stories.js +52 -0
- package/dist/components/InfoIcon/InfoIcon.styles.js +31 -0
- package/dist/components/InfoPanel/InfoPanel.js +146 -0
- package/dist/components/Input/DatePickerInput.js +85 -0
- package/dist/components/Input/DatePickerInput.stories.js +91 -0
- package/dist/components/Input/DatePickerInput.styles.js +29 -0
- package/dist/components/Input/Input.js +108 -0
- package/dist/components/Input/Input.stories.js +148 -0
- package/dist/components/Input/Input.styles.js +53 -0
- package/dist/components/Input/InputPassword.js +151 -0
- package/dist/components/Input/InputPassword.stories.js +85 -0
- package/dist/components/Input/InputPassword.styles.js +80 -0
- package/dist/components/Input/RangeInput.js +60 -0
- package/dist/components/Input/RangeInput.stories.js +59 -0
- package/dist/components/Input/RangeInput.styles.js +53 -0
- package/dist/components/Input/Select.js +148 -0
- package/dist/components/Input/Select.stories.js +142 -0
- package/dist/components/Input/Select.styles.js +65 -0
- package/dist/components/InvestCalculator/InvestCalculator.js +367 -0
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +137 -0
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +66 -0
- package/dist/components/InvestmentStat/InvestmentStat.js +40 -0
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +56 -0
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +43 -0
- package/dist/components/KYCFlow/BasicInfo.js +489 -0
- package/dist/components/KYCFlow/Confirmation.js +51 -0
- package/dist/components/KYCFlow/DocumentFileUpload.js +276 -0
- package/dist/components/KYCFlow/DocumentScan.js +74 -0
- package/dist/components/KYCFlow/DocumentScanUpload.js +258 -0
- package/dist/components/KYCFlow/DocumentSelect.js +148 -0
- package/dist/components/KYCFlow/DocumentSuccess.js +64 -0
- package/dist/components/KYCFlow/DocumentUpload.js +54 -0
- package/dist/components/KYCFlow/DocumentVerificationType.js +161 -0
- package/dist/components/KYCFlow/FaceScan.js +55 -0
- package/dist/components/KYCFlow/FaceScanRecognition.js +60 -0
- package/dist/components/KYCFlow/FaceScanSuccess.js +59 -0
- package/dist/components/KYCFlow/Terms.js +142 -0
- package/dist/components/KYCFlow/_styles.js +160 -0
- package/dist/components/KYCFlow/index.js +97 -0
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +41 -0
- package/dist/components/LatestUpdate/LatestUpdate.js +51 -0
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +62 -0
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +71 -0
- package/dist/components/Layout/Layout-func-no-work.js +78 -0
- package/dist/components/Layout/Layout.js +103 -0
- package/dist/components/Layout/Layout.stories.js +67 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +47 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +70 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +43 -0
- package/dist/components/LearnMorePage/LearnMore.js +255 -0
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +40 -0
- package/dist/components/LearnMorePage/LearnMore.stories.js +51 -0
- package/dist/components/LearnMorePage/LearnMore.styles.js +120 -0
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +87 -0
- package/dist/components/LearnMorePage/LearnMoreItem.js +75 -0
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +65 -0
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +87 -0
- package/dist/components/LearnMoreSection/LearnMore.js +199 -0
- package/dist/components/LearnMoreSection/LearnMore.stories.js +33 -0
- package/dist/components/LearnMoreSection/LearnMore.styles.js +73 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.js +52 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +62 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +50 -0
- package/dist/components/LoginModal/LoginModal.js +163 -0
- package/dist/components/MainMenu/DynamicMainMenu.js +50 -0
- package/dist/components/MainMenu/MainMenu.js +262 -0
- package/dist/components/MainMenu/MainMenu.styles.js +124 -0
- package/dist/components/MatomoConnect/Matomo.js +485 -0
- package/dist/components/MatomoConnect/Matomo_fuckup.js +383 -0
- package/dist/components/MenuNav/MenuNav.styles.js +42 -0
- package/dist/components/Modal/Modal.js +135 -0
- package/dist/components/Modal/Modal.stories.js +82 -0
- package/dist/components/Modal/Modal.styles.js +140 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.js +48 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +72 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +41 -0
- package/dist/components/Newsletter/Newsletter.js +139 -0
- package/dist/components/Newsletter/Newsletter.stories.js +19 -0
- package/dist/components/Newsletter/Newsletter.styles.js +83 -0
- package/dist/components/NotificationContext/NotificationContext.js +173 -0
- package/dist/components/NotificationContext/NotificationContext.stories.js +33 -0
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +22 -0
- package/dist/components/Number/Number.js +35 -0
- package/dist/components/Number/Number.stories.js +41 -0
- package/dist/components/Number/Number.styles.js +20 -0
- package/dist/components/PageTransition/PageTransition.js +57 -0
- package/dist/components/Process/Process.stories.js +47 -0
- package/dist/components/Process/Process.styles.js +33 -0
- package/dist/components/ProfileBadge/ProfileBadge.js +53 -0
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +48 -0
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +32 -0
- package/dist/components/ProfileBox/ProfileBox.js +39 -0
- package/dist/components/ProfileBox/ProfileBox.stories.js +38 -0
- package/dist/components/ProfileBox/ProfileBox.styles.js +49 -0
- package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +477 -0
- package/dist/components/ProfileHeader/ProfileHeader.js +330 -0
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +87 -0
- package/dist/components/ProfileStat/ProfileStat.js +42 -0
- package/dist/components/ProfileStat/ProfileStat.stories.js +71 -0
- package/dist/components/ProfileStat/ProfileStat.styles.js +42 -0
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +69 -0
- package/dist/components/ROI/ROI.js +312 -0
- package/dist/components/ROI/ROI.styles.js +63 -0
- package/dist/components/ROI/ROIChart.js +469 -0
- package/dist/components/ROI/ROIChart.styles.js +33 -0
- package/dist/components/ROI/ROIModal.js +91 -0
- package/dist/components/ROI/ROIScenarioBox.js +55 -0
- package/dist/components/ROI/ROIScenarioBox.styles.js +52 -0
- package/dist/components/Radio/Radio.js +68 -0
- package/dist/components/Radio/Radio.stories.js +76 -0
- package/dist/components/Radio/Radio.styles.js +31 -0
- package/dist/components/RefreshButton/RefreshButton.js +21 -0
- package/dist/components/RefreshButton/RefreshButton.stories.js +42 -0
- package/dist/components/RefreshButton/RefreshButton.styles.js +39 -0
- package/dist/components/RegisterAlgorand/AlgoAddressName.js +138 -0
- package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +444 -0
- package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +47 -0
- package/dist/components/RegisterAlgorand/AlgoSuccess.js +38 -0
- package/dist/components/RegisterAlgorand/Algorand.stories.js +78 -0
- package/dist/components/RegisterAlgorand/ChooseWallet.js +97 -0
- package/dist/components/RegisterAlgorand/SelectProject.js +90 -0
- package/dist/components/RegisterAlgorand/_styles.js +28 -0
- package/dist/components/RegisterAlgorand/flow.js +409 -0
- package/dist/components/RegisterAlgorand/flowWithMemo.js +410 -0
- package/dist/components/RegisterAlgorand/index.js +48 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +40 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +33 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +16 -0
- package/dist/components/RegisterEthereum/EthAddressLedger.js +226 -0
- package/dist/components/RegisterEthereum/EthAddressMetamask.js +205 -0
- package/dist/components/RegisterEthereum/EthAddressName.js +135 -0
- package/dist/components/RegisterEthereum/EthConnectLedger.js +194 -0
- package/dist/components/RegisterEthereum/EthConnectMetamask.js +35 -0
- package/dist/components/RegisterEthereum/EthFinish.js +41 -0
- package/dist/components/RegisterEthereum/EthIntro.js +95 -0
- package/dist/components/RegisterEthereum/_styles.js +28 -0
- package/dist/components/RegisterEthereum/index.js +68 -0
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +106 -0
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +66 -0
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +48 -0
- package/dist/components/RegisterLiquidSteps/complete.js +37 -0
- package/dist/components/RegisterLiquidSteps/flow.js +197 -0
- package/dist/components/RegisterLiquidSteps/index.js +52 -0
- package/dist/components/RegisterLiquidSteps/register-liquid.js +240 -0
- package/dist/components/RegisterModal/RegisterModal.js +180 -0
- package/dist/components/RegisterModal/RegisterModal.stories.js +46 -0
- package/dist/components/RequestDataBox/RequestDataBox.js +31 -0
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +40 -0
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +31 -0
- package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +185 -0
- package/dist/components/RiskQuestionnaire/_styles.js +15 -0
- package/dist/components/SEO/SEO.js +71 -0
- package/dist/components/SEO/SEO.stories.js +64 -0
- package/dist/components/SectionTitle/SectionTitle.styles.js +15 -0
- package/dist/components/SideLine/SideLine.js +15 -0
- package/dist/components/SideLine/SideLine.stories.js +31 -0
- package/dist/components/SideLine/SideLine.styles.js +26 -0
- package/dist/components/SigningSubflow/SignSubAddressMetamask.js +137 -0
- package/dist/components/SigningSubflow/SignSubConnectLedger.js +150 -0
- package/dist/components/SigningSubflow/SignSubConnectMetamask.js +137 -0
- package/dist/components/SigningSubflow/SignSubIntro.js +54 -0
- package/dist/components/SigningSubflow/SignSubSendLedger.js +150 -0
- package/dist/components/SigningSubflow/SignSubSendMetamask.js +62 -0
- package/dist/components/SigningSubflow/SignSubTransactionLedger.js +161 -0
- package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +166 -0
- package/dist/components/SigningSubflow/_styles.js +45 -0
- package/dist/components/SigningSubflow/index.js +74 -0
- package/dist/components/Slider/Slider.js +50 -0
- package/dist/components/Slider/Slider.stories.js +72 -0
- package/dist/components/Slider/Slider.styles.js +23 -0
- package/dist/components/SpanButton/SpanButton.styles.js +15 -0
- package/dist/components/StatusBadge/StatusBadge.styles.js +20 -0
- package/dist/components/StepController/StepController.js +111 -0
- package/dist/components/StepController/StepController.stories.js +63 -0
- package/dist/components/StepController/StepController.styles.js +26 -0
- package/dist/components/StepController/StepControllerContext.js +104 -0
- package/dist/components/StepController/StepControllerProgress.js +40 -0
- package/dist/components/StepController/StepControllerProgress.stories.js +52 -0
- package/dist/components/StepsProgress/StepsProgress.js +128 -0
- package/dist/components/StepsProgress/StepsProgress.stories.js +50 -0
- package/dist/components/StepsProgress/StepsProgress.styles.js +36 -0
- package/dist/components/StokrLoader/StokrLoader.js +32 -0
- package/dist/components/StokrLoader/media.js +27 -0
- package/dist/components/SvgIcons/AdminBadgeSvg.js +26 -0
- package/dist/components/SvgIcons/CameraSvg.js +36 -0
- package/dist/components/SvgIcons/CapsLockSvg.js +31 -0
- package/dist/components/SvgIcons/DocumentBackSvg.js +35 -0
- package/dist/components/SvgIcons/DocumentSmallSvg.js +61 -0
- package/dist/components/SvgIcons/DocumentSvg.js +38 -0
- package/dist/components/SvgIcons/Early.js +24 -0
- package/dist/components/SvgIcons/EthSvg.js +40 -0
- package/dist/components/SvgIcons/EurSvg.js +26 -0
- package/dist/components/SvgIcons/FaceScanIconSvg.js +31 -0
- package/dist/components/SvgIcons/FourSvg.js +21 -0
- package/dist/components/SvgIcons/Glassess.js +29 -0
- package/dist/components/SvgIcons/LogoSvg.js +24 -0
- package/dist/components/SvgIcons/OneSvg.js +23 -0
- package/dist/components/SvgIcons/PassportSvg.js +56 -0
- package/dist/components/SvgIcons/RefreshSvg.js +27 -0
- package/dist/components/SvgIcons/SocialFacebook.js +25 -0
- package/dist/components/SvgIcons/SocialInstagram.js +26 -0
- package/dist/components/SvgIcons/SocialLinkedIn.js +25 -0
- package/dist/components/SvgIcons/SocialMedium.js +25 -0
- package/dist/components/SvgIcons/SocialReddit.js +25 -0
- package/dist/components/SvgIcons/SocialTelegram.js +25 -0
- package/dist/components/SvgIcons/SocialTwitter.js +25 -0
- package/dist/components/SvgIcons/SocialYoutube.js +25 -0
- package/dist/components/SvgIcons/ThreeSvg.js +20 -0
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +82 -0
- package/dist/components/SvgIcons/TwoSvg.js +23 -0
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +29 -0
- package/dist/components/SvgIcons/UpdateHardSvg.js +25 -0
- package/dist/components/SvgIcons/UpdateSoftSvg.js +27 -0
- package/dist/components/SvgIcons/UploadSvg.js +34 -0
- package/dist/components/SvgIcons/VerifiedBadge.js +23 -0
- package/dist/components/SvgIcons/index.js +223 -0
- package/dist/components/Switch/Switch.js +70 -0
- package/dist/components/Switch/Switch.stories.js +86 -0
- package/dist/components/Switch/Switch.styles.js +47 -0
- package/dist/components/Tabs/Tabs.js +70 -0
- package/dist/components/Tabs/Tabs.stories.js +29 -0
- package/dist/components/Tabs/Tabs.styles.js +18 -0
- package/dist/components/TabsNav/TabNav.js +31 -0
- package/dist/components/TabsNav/TabNav.stories.js +44 -0
- package/dist/components/TabsNav/TabsNav.js +43 -0
- package/dist/components/TabsNav/TabsNav.stories.js +26 -0
- package/dist/components/TabsNav/TabsNav.styles.js +43 -0
- package/dist/components/TeamOverview/TeamOverview.js +125 -0
- package/dist/components/TeamOverview/TeamOverview.stories.js +80 -0
- package/dist/components/TeamOverview/TeamOverview.styles.js +81 -0
- package/dist/components/Text/Headline.js +29 -0
- package/dist/components/Text/Headline.stories.js +51 -0
- package/dist/components/Text/StyledText.js +19 -0
- package/dist/components/Text/Text.stories.js +71 -0
- package/dist/components/Text/Text.styles.js +40 -0
- package/dist/components/TextLink/TextLink.styles.js +30 -0
- package/dist/components/ToDoList/ToDoList.js +184 -0
- package/dist/components/ToDoList/ToDoList.stories.js +137 -0
- package/dist/components/ToDoList/ToDoList.styles.js +83 -0
- package/dist/components/ToDoList/ToDoListTask.js +118 -0
- package/dist/components/ToDoList/ToDoListTask.stories.js +72 -0
- package/dist/components/ToDoList/ToDoListTask.styles.js +74 -0
- package/dist/components/TransactionDetails/TransactionDetails.js +46 -0
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +59 -0
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +31 -0
- package/dist/components/TransactionInfo/TransactionInfo.js +58 -0
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +64 -0
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +54 -0
- package/dist/components/TwoFactorModal/TwoFactorModal.js +122 -0
- package/dist/components/breakdown/Breakdown.js +56 -0
- package/dist/components/breakdown/index.js +27 -0
- package/dist/components/context/Auth.js +207 -0
- package/dist/components/context/AuthContext.js +335 -0
- package/dist/components/icons/Arrow.js +70 -0
- package/dist/components/icons/Arrow.stories.js +49 -0
- package/dist/components/icons/ArrowSimple.js +59 -0
- package/dist/components/icons/ArrowSimple.stories.js +55 -0
- package/dist/components/icons/Check.js +43 -0
- package/dist/components/icons/Check.stories.js +25 -0
- package/dist/components/icons/Facebook.js +26 -0
- package/dist/components/icons/Facebook.stories.js +24 -0
- package/dist/components/icons/Info.js +55 -0
- package/dist/components/icons/Info.stories.js +19 -0
- package/dist/components/icons/Instagram.js +26 -0
- package/dist/components/icons/Instagram.stories.js +24 -0
- package/dist/components/icons/LinkIcon.js +34 -0
- package/dist/components/icons/LinkIcon.stories.js +24 -0
- package/dist/components/icons/LinkedIn.js +43 -0
- package/dist/components/icons/LinkedIn.stories.js +19 -0
- package/dist/components/icons/Medium.js +42 -0
- package/dist/components/icons/Medium.stories.js +19 -0
- package/dist/components/icons/Reddit.js +32 -0
- package/dist/components/icons/Reddit.stories.js +24 -0
- package/dist/components/icons/Share.js +62 -0
- package/dist/components/icons/Share.stories.js +19 -0
- package/dist/components/icons/Telegram.js +42 -0
- package/dist/components/icons/Telegram.stories.js +19 -0
- package/dist/components/icons/Twitter.js +26 -0
- package/dist/components/icons/Twitter.stories.js +24 -0
- package/dist/components/icons/X.js +26 -0
- package/dist/components/icons/X.stories.js +19 -0
- package/dist/components/icons/Youtube.js +26 -0
- package/dist/components/icons/Youtube.stories.js +24 -0
- package/dist/components/icons/index.js +170 -0
- package/dist/components/renderToBody/index.js +27 -0
- package/dist/components/renderToBody/renderToBody.js +68 -0
- package/dist/components/taxId/TaxId.stories.js +54 -0
- package/dist/components/taxId/complete.js +32 -0
- package/dist/components/taxId/flow.js +65 -0
- package/dist/components/taxId/index.js +27 -0
- package/dist/components/taxId/register-taxid.js +195 -0
- package/dist/components/video/Video.js +174 -0
- package/dist/components/video/Video.stories.js +56 -0
- package/dist/components/video/index.js +27 -0
- package/dist/constants/globalVariables.js +10 -0
- package/dist/constants/style.js +52 -0
- package/dist/index.js +1 -0
- package/dist/model/axios.js +18 -0
- package/dist/model/axiosPublic.js +18 -0
- package/dist/static/fonts/Ionicons/Ionicons.ttf +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff2 +0 -0
- package/dist/static/fonts/Ionicons/ionicons.min.css +13 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2 +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2 +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff2 +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2 +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2 +0 -0
- package/dist/static/fonts/icomoon/icomoon.eot +0 -0
- package/dist/static/fonts/icomoon/icomoon.svg +47 -0
- package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
- package/dist/static/fonts/icomoon/icomoon.woff +0 -0
- package/dist/static/fonts/icomoon/selection.json +1 -0
- package/dist/static/fonts/icomoon/style.css +137 -0
- package/dist/static/images/1.svg +4 -0
- package/dist/static/images/2.svg +4 -0
- package/dist/static/images/3.svg +3 -0
- package/dist/static/images/4.svg +3 -0
- package/dist/static/images/Glassess.svg +5 -0
- package/dist/static/images/VerifiedBadge.svg +1 -0
- package/dist/static/images/address-refreshing.gif +0 -0
- package/dist/static/images/admin-badge.svg +3 -0
- package/dist/static/images/amazon-logo.png +0 -0
- package/dist/static/images/arrow-down-black.svg +21 -0
- package/dist/static/images/avatar-cog.png +0 -0
- package/dist/static/images/avatar-placeholder.png +0 -0
- package/dist/static/images/avatar.png +0 -0
- package/dist/static/images/background.png +0 -0
- package/dist/static/images/camera.svg +1 -0
- package/dist/static/images/caps-lock.svg +6 -0
- package/dist/static/images/covers/blockchain.png +0 -0
- package/dist/static/images/covers/country.jpg +0 -0
- package/dist/static/images/covers/ethereum.jpg +0 -0
- package/dist/static/images/covers/index.png +0 -0
- package/dist/static/images/covers/liquid.png +0 -0
- package/dist/static/images/covers/money.png +0 -0
- package/dist/static/images/covers/overview.jpg +0 -0
- package/dist/static/images/covers/risk-questionnaire.jpg +0 -0
- package/dist/static/images/covers/rocket.png +0 -0
- package/dist/static/images/covers/verify-identity.jpg +0 -0
- package/dist/static/images/covers/virtual-iban.jpg +0 -0
- package/dist/static/images/document-back.svg +1 -0
- package/dist/static/images/document-small.svg +1 -0
- package/dist/static/images/document.svg +1 -0
- package/dist/static/images/early-adopter.png +0 -0
- package/dist/static/images/early-adopter.svg +1 -0
- package/dist/static/images/eth.svg +10 -0
- package/dist/static/images/eur.svg +3 -0
- package/dist/static/images/face-scan-icon.svg +1 -0
- package/dist/static/images/favicon.png +0 -0
- package/dist/static/images/favicon.svg +57 -0
- package/dist/static/images/google-logo.png +0 -0
- package/dist/static/images/graduation.png +0 -0
- package/dist/static/images/hdd.png +0 -0
- package/dist/static/images/lemonway.png +0 -0
- package/dist/static/images/logo.svg +1 -0
- package/dist/static/images/member-item-picture.png +0 -0
- package/dist/static/images/one.jpg +0 -0
- package/dist/static/images/passport.svg +1 -0
- package/dist/static/images/process-waiting.gif +0 -0
- package/dist/static/images/profile-picture-placeholder.png +0 -0
- package/dist/static/images/profile-picture-placeholder.svg +1 -0
- package/dist/static/images/profile-picture.png +0 -0
- package/dist/static/images/refresh.svg +9 -0
- package/dist/static/images/shark.jpg +0 -0
- package/dist/static/images/sicos.png +0 -0
- package/dist/static/images/slider/1.jpg +0 -0
- package/dist/static/images/slider/2.jpg +0 -0
- package/dist/static/images/slider/3.jpg +0 -0
- package/dist/static/images/social/facebook.svg +3 -0
- package/dist/static/images/social/linkedin.svg +3 -0
- package/dist/static/images/social/medium.svg +3 -0
- package/dist/static/images/social/reddit.svg +3 -0
- package/dist/static/images/social/telegram.svg +3 -0
- package/dist/static/images/social/twitter.svg +3 -0
- package/dist/static/images/social/youtube.svg +3 -0
- package/dist/static/images/three.jpg +0 -0
- package/dist/static/images/two-sided-document.svg +26 -0
- package/dist/static/images/two.jpg +0 -0
- package/dist/static/images/upload.svg +1 -0
- package/dist/static/images/user-profile.png +0 -0
- package/dist/static/images/whales.png +0 -0
- package/dist/static/videos/Capybara-with-mandarin orange-on-head.mp4 +0 -0
- package/dist/styles/colors.js +55 -0
- package/dist/styles/fonts.js +34 -0
- package/dist/styles/global.js +19 -0
- package/dist/styles/grid.js +16 -0
- package/dist/styles/reactTippy.js +12 -0
- package/dist/styles/rwd.js +52 -0
- package/dist/styles/semanticUi.js +12 -0
- package/dist/styles/spacing.js +12 -0
- package/dist/styles/theme.js +43 -0
- package/dist/utils/allowed-countries-list.js +1375 -0
- package/dist/utils/breakpoint.js +19 -0
- package/dist/utils/countries-list.js +1008 -0
- package/dist/utils/customHooks.js +54 -0
- package/dist/utils/delete-redirect-cookie-and-navigate.js +20 -0
- package/dist/utils/fix-decimals.js +11 -0
- package/dist/utils/get-cookie-domain.js +16 -0
- package/dist/utils/get-short-address.js +10 -0
- package/dist/utils/lock-body.js +20 -0
- package/dist/utils/redirect-url.js +10 -0
- package/dist/utils/set-redirect-cookie.js +20 -0
- package/docker-compose.yml +25 -0
- package/package.json +77 -84
- package/storybook-static/favicon.ico +0 -0
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.MemoAlgoAddressSelect = exports.Dots = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _RegisterEthereum = require("../RegisterEthereum");
|
|
11
|
+
var _Text = _interopRequireDefault(require("../Text/Text.styles"));
|
|
12
|
+
var _Button = _interopRequireDefault(require("../Button/Button.styles"));
|
|
13
|
+
var _RefreshButton = _interopRequireDefault(require("../RefreshButton/RefreshButton"));
|
|
14
|
+
var _CryptoAddress = _interopRequireWildcard(require("../CryptoAddress/CryptoAddress"));
|
|
15
|
+
var _CryptoAddressWrapper = _interopRequireDefault(require("../CryptoAddressWrapper/CryptoAddressWrapper"));
|
|
16
|
+
var _FAQ = _interopRequireDefault(require("../FAQ/FAQ"));
|
|
17
|
+
var _SectionTitle = _interopRequireDefault(require("../SectionTitle/SectionTitle.styles"));
|
|
18
|
+
var _ComponentWrapper = _interopRequireDefault(require("../ComponentWrapper/ComponentWrapper.styles"));
|
|
19
|
+
var _ComponentScroll = _interopRequireDefault(require("../ComponentScroll/ComponentScroll"));
|
|
20
|
+
var _Modal = require("../Modal/Modal.styles");
|
|
21
|
+
var _StokrWeb = require("../../api/StokrWeb3");
|
|
22
|
+
var _fetchData = _interopRequireDefault(require("../../api/fetchData"));
|
|
23
|
+
var _StyledText = _interopRequireDefault(require("../Text/StyledText"));
|
|
24
|
+
var _CryptoAddressWrapper2 = require("../CryptoAddressWrapper/CryptoAddressWrapper.styles");
|
|
25
|
+
var _ToDoList = require("../ToDoList/ToDoList.styles");
|
|
26
|
+
var _fetchDataPublic = _interopRequireDefault(require("../../api/fetchDataPublic"));
|
|
27
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
30
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
31
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
32
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
33
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
34
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
35
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
36
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
37
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
38
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
40
|
+
var Dots = function Dots(props) {
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_StyledText.default, _extends({
|
|
42
|
+
style: {
|
|
43
|
+
fontSize: 40
|
|
44
|
+
}
|
|
45
|
+
}, props), /*#__PURE__*/_react.default.createElement("span", {
|
|
46
|
+
"data-order": "0"
|
|
47
|
+
}, "."), /*#__PURE__*/_react.default.createElement("span", {
|
|
48
|
+
"data-order": "1"
|
|
49
|
+
}, "."), /*#__PURE__*/_react.default.createElement("span", {
|
|
50
|
+
"data-order": "2"
|
|
51
|
+
}, "."));
|
|
52
|
+
};
|
|
53
|
+
exports.Dots = Dots;
|
|
54
|
+
var AlgoAdressSelect = function AlgoAdressSelect(props) {
|
|
55
|
+
var _useState = (0, _react.useState)(false),
|
|
56
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
57
|
+
correct = _useState2[0],
|
|
58
|
+
setcorrect = _useState2[1];
|
|
59
|
+
var _useState3 = (0, _react.useState)(false),
|
|
60
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
61
|
+
refresh = _useState4[0],
|
|
62
|
+
setrefresh = _useState4[1];
|
|
63
|
+
var _useState5 = (0, _react.useState)(false),
|
|
64
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
65
|
+
failed = _useState6[0],
|
|
66
|
+
setfailed = _useState6[1];
|
|
67
|
+
var _useState7 = (0, _react.useState)({}),
|
|
68
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
69
|
+
selectedAdress = _useState8[0],
|
|
70
|
+
setselectedAdress = _useState8[1];
|
|
71
|
+
var _useState9 = (0, _react.useState)([{
|
|
72
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
73
|
+
balance: 0
|
|
74
|
+
}]),
|
|
75
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
76
|
+
address = _useState10[0],
|
|
77
|
+
setaddress = _useState10[1];
|
|
78
|
+
(0, _react.useEffect)(function () {
|
|
79
|
+
function initWallet() {
|
|
80
|
+
return _initWallet.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
function _initWallet() {
|
|
83
|
+
_initWallet = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
84
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
85
|
+
while (1) switch (_context.prev = _context.next) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (!(props.wallet === 'algosigner')) {
|
|
88
|
+
_context.next = 3;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
_context.next = 3;
|
|
92
|
+
return initAlgoSigner();
|
|
93
|
+
case 3:
|
|
94
|
+
if (!(props.wallet === 'myalgo')) {
|
|
95
|
+
_context.next = 6;
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
_context.next = 6;
|
|
99
|
+
return initMyAlgoWallet();
|
|
100
|
+
case 6:
|
|
101
|
+
case "end":
|
|
102
|
+
return _context.stop();
|
|
103
|
+
}
|
|
104
|
+
}, _callee);
|
|
105
|
+
}));
|
|
106
|
+
return _initWallet.apply(this, arguments);
|
|
107
|
+
}
|
|
108
|
+
initWallet();
|
|
109
|
+
}, []);
|
|
110
|
+
(0, _react.useEffect)(function () {
|
|
111
|
+
if (refresh) {
|
|
112
|
+
setStateDelayed(false, 2000);
|
|
113
|
+
}
|
|
114
|
+
}, [refresh]);
|
|
115
|
+
(0, _react.useEffect)(function () {
|
|
116
|
+
if (props.verifiedAddress) {
|
|
117
|
+
props.changeStep();
|
|
118
|
+
}
|
|
119
|
+
}, [props.verifiedAddress]);
|
|
120
|
+
|
|
121
|
+
//get balance for each user address
|
|
122
|
+
var getBalanceData = /*#__PURE__*/function () {
|
|
123
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(addresses) {
|
|
124
|
+
var addressArr, data, optInStatus, algoPrice;
|
|
125
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
126
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
127
|
+
case 0:
|
|
128
|
+
addressArr = [];
|
|
129
|
+
addresses.forEach(function (address) {
|
|
130
|
+
addressArr.push(address.address);
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
//if algo balances fail
|
|
134
|
+
data = null;
|
|
135
|
+
_context2.prev = 3;
|
|
136
|
+
_context2.next = 6;
|
|
137
|
+
return (0, _fetchData.default)('user/algoBalances', {
|
|
138
|
+
accounts: addressArr
|
|
139
|
+
});
|
|
140
|
+
case 6:
|
|
141
|
+
data = _context2.sent;
|
|
142
|
+
_context2.next = 12;
|
|
143
|
+
break;
|
|
144
|
+
case 9:
|
|
145
|
+
_context2.prev = 9;
|
|
146
|
+
_context2.t0 = _context2["catch"](3);
|
|
147
|
+
console.log('🚀 ~ error in algoBalances', _context2.t0);
|
|
148
|
+
case 12:
|
|
149
|
+
_context2.next = 14;
|
|
150
|
+
return (0, _fetchData.default)('user/algoOptinStatus', {
|
|
151
|
+
accounts: addressArr,
|
|
152
|
+
assetId: props.projectAssetId
|
|
153
|
+
});
|
|
154
|
+
case 14:
|
|
155
|
+
optInStatus = _context2.sent;
|
|
156
|
+
_context2.prev = 15;
|
|
157
|
+
_context2.next = 18;
|
|
158
|
+
return (0, _fetchData.default)('investment/algoprice');
|
|
159
|
+
case 18:
|
|
160
|
+
algoPrice = _context2.sent;
|
|
161
|
+
_context2.next = 24;
|
|
162
|
+
break;
|
|
163
|
+
case 21:
|
|
164
|
+
_context2.prev = 21;
|
|
165
|
+
_context2.t1 = _context2["catch"](15);
|
|
166
|
+
console.log('🚀 ~ error in algoPrice', _context2.t1);
|
|
167
|
+
case 24:
|
|
168
|
+
if (data && algoPrice) {
|
|
169
|
+
data.forEach(function (account, index) {
|
|
170
|
+
addresses[index].balance = account.balance;
|
|
171
|
+
addresses[index].currentAlgoPrice = algoPrice.EUR; //-- in euros
|
|
172
|
+
addresses[index].eqUnit = '€';
|
|
173
|
+
addresses[index].optedIn = optInStatus[account.account];
|
|
174
|
+
});
|
|
175
|
+
} else {
|
|
176
|
+
addressArr && addressArr.forEach(function (account, index) {
|
|
177
|
+
addresses[index].optedIn = optInStatus[account];
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
checkforExistingAddress(addresses);
|
|
181
|
+
case 26:
|
|
182
|
+
case "end":
|
|
183
|
+
return _context2.stop();
|
|
184
|
+
}
|
|
185
|
+
}, _callee2, null, [[3, 9], [15, 21]]);
|
|
186
|
+
}));
|
|
187
|
+
return function getBalanceData(_x2) {
|
|
188
|
+
return _ref.apply(this, arguments);
|
|
189
|
+
};
|
|
190
|
+
}();
|
|
191
|
+
|
|
192
|
+
//check if user has already registered some address
|
|
193
|
+
//add the address title if exist
|
|
194
|
+
var checkforExistingAddress = function checkforExistingAddress(addresses) {
|
|
195
|
+
addresses.forEach(function (address) {
|
|
196
|
+
props.userAddresses && props.userAddresses.forEach(function (userAdd) {
|
|
197
|
+
if (address.address === userAdd.address) {
|
|
198
|
+
address.title = userAdd.name;
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
var onAddressChange = function onAddressChange(account) {
|
|
204
|
+
setselectedAdress(account);
|
|
205
|
+
props.setRegisteredAddress(account.title ? true : false);
|
|
206
|
+
};
|
|
207
|
+
var initAlgoSigner = /*#__PURE__*/function () {
|
|
208
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
209
|
+
var _address;
|
|
210
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
211
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
212
|
+
case 0:
|
|
213
|
+
if (!(0, _StokrWeb.isAlgoSignerInstalled)()) {
|
|
214
|
+
_context3.next = 19;
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
_context3.prev = 1;
|
|
218
|
+
_context3.next = 4;
|
|
219
|
+
return (0, _StokrWeb.getAlgoSignerAddress)(props.network);
|
|
220
|
+
case 4:
|
|
221
|
+
_address = _context3.sent;
|
|
222
|
+
console.log('address: ', _address);
|
|
223
|
+
if (!_address) {
|
|
224
|
+
_context3.next = 12;
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
_context3.next = 9;
|
|
228
|
+
return getBalanceData(_address);
|
|
229
|
+
case 9:
|
|
230
|
+
setfailed(false);
|
|
231
|
+
setcorrect(true);
|
|
232
|
+
setaddress(_address);
|
|
233
|
+
case 12:
|
|
234
|
+
_context3.next = 19;
|
|
235
|
+
break;
|
|
236
|
+
case 14:
|
|
237
|
+
_context3.prev = 14;
|
|
238
|
+
_context3.t0 = _context3["catch"](1);
|
|
239
|
+
console.log('eroor: ', _context3.t0);
|
|
240
|
+
setfailed(true);
|
|
241
|
+
setcorrect(false);
|
|
242
|
+
case 19:
|
|
243
|
+
case "end":
|
|
244
|
+
return _context3.stop();
|
|
245
|
+
}
|
|
246
|
+
}, _callee3, null, [[1, 14]]);
|
|
247
|
+
}));
|
|
248
|
+
return function initAlgoSigner() {
|
|
249
|
+
return _ref2.apply(this, arguments);
|
|
250
|
+
};
|
|
251
|
+
}();
|
|
252
|
+
var getAdressArr = function getAdressArr(addressArr) {
|
|
253
|
+
var newArr = [];
|
|
254
|
+
addressArr && addressArr.forEach(function (element) {
|
|
255
|
+
newArr.push({
|
|
256
|
+
address: element
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
return newArr;
|
|
260
|
+
};
|
|
261
|
+
var initMyAlgoWallet = /*#__PURE__*/function () {
|
|
262
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
263
|
+
var _address2, addressArr;
|
|
264
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
265
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
266
|
+
case 0:
|
|
267
|
+
_context4.prev = 0;
|
|
268
|
+
_context4.next = 3;
|
|
269
|
+
return (0, _StokrWeb.getMyAlgoWalletAddress)();
|
|
270
|
+
case 3:
|
|
271
|
+
_address2 = _context4.sent;
|
|
272
|
+
if (!(_address2 && !_address2.includes('Error'))) {
|
|
273
|
+
_context4.next = 11;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
addressArr = getAdressArr(_address2);
|
|
277
|
+
_context4.next = 8;
|
|
278
|
+
return getBalanceData(addressArr);
|
|
279
|
+
case 8:
|
|
280
|
+
setaddress(addressArr);
|
|
281
|
+
setfailed(false);
|
|
282
|
+
setcorrect(true);
|
|
283
|
+
case 11:
|
|
284
|
+
_context4.next = 18;
|
|
285
|
+
break;
|
|
286
|
+
case 13:
|
|
287
|
+
_context4.prev = 13;
|
|
288
|
+
_context4.t0 = _context4["catch"](0);
|
|
289
|
+
console.log('eroor: ', _context4.t0);
|
|
290
|
+
setfailed(true);
|
|
291
|
+
setcorrect(false);
|
|
292
|
+
case 18:
|
|
293
|
+
case "end":
|
|
294
|
+
return _context4.stop();
|
|
295
|
+
}
|
|
296
|
+
}, _callee4, null, [[0, 13]]);
|
|
297
|
+
}));
|
|
298
|
+
return function initMyAlgoWallet() {
|
|
299
|
+
return _ref3.apply(this, arguments);
|
|
300
|
+
};
|
|
301
|
+
}();
|
|
302
|
+
var setStateDelayed = function setStateDelayed(newState, time) {
|
|
303
|
+
setTimeout(function () {
|
|
304
|
+
setrefresh(newState);
|
|
305
|
+
}, time);
|
|
306
|
+
};
|
|
307
|
+
var onRefreshClick = /*#__PURE__*/function () {
|
|
308
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
309
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
310
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
311
|
+
case 0:
|
|
312
|
+
setrefresh(true);
|
|
313
|
+
if (!(props.wallet === 'algosigner')) {
|
|
314
|
+
_context5.next = 6;
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
_context5.next = 4;
|
|
318
|
+
return initAlgoSigner();
|
|
319
|
+
case 4:
|
|
320
|
+
_context5.next = 8;
|
|
321
|
+
break;
|
|
322
|
+
case 6:
|
|
323
|
+
_context5.next = 8;
|
|
324
|
+
return initMyAlgoWallet();
|
|
325
|
+
case 8:
|
|
326
|
+
case "end":
|
|
327
|
+
return _context5.stop();
|
|
328
|
+
}
|
|
329
|
+
}, _callee5);
|
|
330
|
+
}));
|
|
331
|
+
return function onRefreshClick() {
|
|
332
|
+
return _ref4.apply(this, arguments);
|
|
333
|
+
};
|
|
334
|
+
}();
|
|
335
|
+
return /*#__PURE__*/_react.default.createElement(_Modal.ModalWrapper, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_SectionTitle.default, null, "Register Algorand address")), /*#__PURE__*/_react.default.createElement(_ComponentScroll.default, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
336
|
+
noPaddingVertical: true
|
|
337
|
+
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h3", null, "Select an Algorand address"), /*#__PURE__*/_react.default.createElement("p", null, "In order for the tokens to go to the right address, you need to choose the opted-in address for the tokens to be properly assigned to you."))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_SectionTitle.default, null, "YOUR CURRENT ADDRESS")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, correct ? /*#__PURE__*/_react.default.createElement(_CryptoAddressWrapper.default, {
|
|
338
|
+
refresh: refresh ? 'Refreshing' : '',
|
|
339
|
+
failed: failed ? "NO DICE. PLEASE CHECK ".concat(props.wallet === 'algosigner' ? 'Algosigner' : 'My Algo Wallet', " IS CONNECTED, THEN HIT REFRESH.") : ''
|
|
340
|
+
}, address.map(function (account, i) {
|
|
341
|
+
var _account$balance;
|
|
342
|
+
return /*#__PURE__*/_react.default.createElement(_CryptoAddress.MemoCryptoAddress, {
|
|
343
|
+
key: account + i,
|
|
344
|
+
title: account.title || 'Not yet registered',
|
|
345
|
+
address: account.address,
|
|
346
|
+
data: {
|
|
347
|
+
value: (_account$balance = account.balance) === null || _account$balance === void 0 ? void 0 : _account$balance.toFixed(4),
|
|
348
|
+
unit: 'ALGO',
|
|
349
|
+
eqValue: account.balance ? (account.balance * account.currentAlgoPrice).toFixed(2) : null,
|
|
350
|
+
eqUnit: '€'
|
|
351
|
+
},
|
|
352
|
+
wrapped: true,
|
|
353
|
+
borderTop: true,
|
|
354
|
+
borderBottom: true,
|
|
355
|
+
sideOptions: props.isUpdatingUser && !props.error && selectedAdress.address === account.address ? /*#__PURE__*/_react.default.createElement(Dots, null) : props.error && selectedAdress.address === account.address ? /*#__PURE__*/_react.default.createElement(_CryptoAddressWrapper2.FailedIcon, {
|
|
356
|
+
red: true,
|
|
357
|
+
flex: true
|
|
358
|
+
}) : account.title && (props.verifiedAddress && !props.error && selectedAdress.address === account.address || account.optedIn) ? /*#__PURE__*/_react.default.createElement(_ToDoList.AllDoneIcon, {
|
|
359
|
+
green: true
|
|
360
|
+
}) : /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
361
|
+
secondary: selectedAdress.address === account.address ? false : true,
|
|
362
|
+
disabled: account.optedIn && account.title,
|
|
363
|
+
style: {
|
|
364
|
+
minWidth: 'max-content'
|
|
365
|
+
},
|
|
366
|
+
onClick: function onClick() {
|
|
367
|
+
//continue to naming step if already opted in address
|
|
368
|
+
props.setAddressToRegister(account.address);
|
|
369
|
+
if (!account.optedIn) {
|
|
370
|
+
props.handleOptIn(account.address, account.title);
|
|
371
|
+
}
|
|
372
|
+
onAddressChange(account);
|
|
373
|
+
if (account.optedIn && !account.title) {
|
|
374
|
+
props.setverifiedAddress(true);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}, "Select")
|
|
378
|
+
});
|
|
379
|
+
})) : /*#__PURE__*/_react.default.createElement(_CryptoAddressWrapper.default, {
|
|
380
|
+
refresh: !correct && !failed ? "We're fetching your registered address from your ".concat(props.wallet === 'algosigner' ? 'Algosigner' : 'My Algo Wallet', ".") : '',
|
|
381
|
+
failed: failed ? "Our interface couldn't connect to ".concat(props.wallet === 'algosigner' ? 'Algosigner' : 'My Algo Wallet', " because you need to give permission to do so. Try again?") : ''
|
|
382
|
+
}, address.map(function (account, i) {
|
|
383
|
+
var _account$balance2;
|
|
384
|
+
return /*#__PURE__*/_react.default.createElement(_CryptoAddress.MemoCryptoAddress, {
|
|
385
|
+
key: account + i,
|
|
386
|
+
title: account.title || 'Not yet registered',
|
|
387
|
+
address: account.address,
|
|
388
|
+
data: {
|
|
389
|
+
value: (_account$balance2 = account.balance) === null || _account$balance2 === void 0 ? void 0 : _account$balance2.toFixed(4),
|
|
390
|
+
unit: 'ALGO',
|
|
391
|
+
eqValue: account.balance ? (account.balance * account.currentAlgoPrice).toFixed(2) : null,
|
|
392
|
+
eqUnit: '€'
|
|
393
|
+
},
|
|
394
|
+
wrapped: true,
|
|
395
|
+
borderTop: true,
|
|
396
|
+
borderBottom: true,
|
|
397
|
+
sideOptions: props.isUpdatingUser && !props.error && selectedAdress.address === account.address ? /*#__PURE__*/_react.default.createElement(Dots, null) : props.error && selectedAdress.address === account.address ? /*#__PURE__*/_react.default.createElement(_CryptoAddressWrapper2.FailedIcon, {
|
|
398
|
+
red: true,
|
|
399
|
+
flex: true
|
|
400
|
+
}) : account.title && (props.verifiedAddress && !props.error && selectedAdress.address === account.address || account.optedIn) ? /*#__PURE__*/_react.default.createElement(_ToDoList.AllDoneIcon, {
|
|
401
|
+
green: true
|
|
402
|
+
}) : /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
403
|
+
secondary: selectedAdress.address === account.address ? false : true,
|
|
404
|
+
disabled: account.optedIn && account.title,
|
|
405
|
+
style: {
|
|
406
|
+
minWidth: 'max-content'
|
|
407
|
+
},
|
|
408
|
+
onClick: function onClick() {
|
|
409
|
+
//continue to naming step if already opted in address
|
|
410
|
+
props.setAddressToRegister(account.address);
|
|
411
|
+
if (!account.optedIn) {
|
|
412
|
+
props.handleOptIn(account.address, account.title);
|
|
413
|
+
}
|
|
414
|
+
onAddressChange(account);
|
|
415
|
+
if (account.optedIn && !account.title) {
|
|
416
|
+
props.setverifiedAddress(true);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}, "Select")
|
|
420
|
+
});
|
|
421
|
+
}))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
422
|
+
noPaddingBottom: true
|
|
423
|
+
}, /*#__PURE__*/_react.default.createElement(_RegisterEthereum.EthInfo, {
|
|
424
|
+
center: true
|
|
425
|
+
}, "To use a different ".concat(props.wallet === 'algosigner' ? 'Algosigner' : 'My Algo Wallet', " address, select one from the ").concat(props.wallet === 'algosigner' ? 'Algosigner' : 'My Algo Wallet', " extension on your browser and press the \"TRY AGAIN\" button below."))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
426
|
+
center: true
|
|
427
|
+
}, /*#__PURE__*/_react.default.createElement(_RefreshButton.default, {
|
|
428
|
+
onClick: onRefreshClick
|
|
429
|
+
}, "TRY AGAIN")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
430
|
+
noPaddingBottom: true
|
|
431
|
+
}, /*#__PURE__*/_react.default.createElement(_SectionTitle.default, null, "Frequently Asked Questions")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_FAQ.default, {
|
|
432
|
+
items: [{
|
|
433
|
+
title: 'Which address should I choose?',
|
|
434
|
+
content: "If you're planning to use the address to purchase tokens, choose one with sufficient funds or that you plan to top up. For your security and privacy, it's considered best practice to use more than one address for your crypto investments."
|
|
435
|
+
}]
|
|
436
|
+
}))));
|
|
437
|
+
};
|
|
438
|
+
AlgoAdressSelect.propTypes = {
|
|
439
|
+
changeStep: _propTypes.default.func.isRequired
|
|
440
|
+
};
|
|
441
|
+
var MemoAlgoAddressSelect = /*#__PURE__*/_react.default.memo(AlgoAdressSelect);
|
|
442
|
+
exports.MemoAlgoAddressSelect = MemoAlgoAddressSelect;
|
|
443
|
+
var _default = AlgoAdressSelect;
|
|
444
|
+
exports.default = _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _Text = _interopRequireDefault(require("../Text/Text.styles"));
|
|
10
|
+
var _Button = _interopRequireDefault(require("../Button/Button.styles"));
|
|
11
|
+
var _SectionTitle = _interopRequireDefault(require("../SectionTitle/SectionTitle.styles"));
|
|
12
|
+
var _ComponentWrapper = _interopRequireDefault(require("../ComponentWrapper/ComponentWrapper.styles"));
|
|
13
|
+
var _ComponentScroll = _interopRequireDefault(require("../ComponentScroll/ComponentScroll"));
|
|
14
|
+
var _Modal = require("../Modal/Modal.styles");
|
|
15
|
+
var _StokrWeb = require("../../api/StokrWeb3");
|
|
16
|
+
var _FAQ = _interopRequireDefault(require("../FAQ/FAQ"));
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
+
// import FAQ from "components/FAQ/FAQ";
|
|
19
|
+
|
|
20
|
+
var AlgoConnectWallet = function AlgoConnectWallet(_ref) {
|
|
21
|
+
var changeStep = _ref.changeStep,
|
|
22
|
+
wallet = _ref.wallet,
|
|
23
|
+
setWallet = _ref.setWallet;
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_Modal.ModalWrapper, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_SectionTitle.default, null, "Register Algorand address")), /*#__PURE__*/_react.default.createElement(_ComponentScroll.default, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
25
|
+
noPaddingVertical: true
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, wallet === 'algosigner' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h3", null, "CONNECT AN ALGOSIGNER WALLET"), /*#__PURE__*/_react.default.createElement("p", null, "Please click on the 'CONNECT' button below. If you don't already have an Algosigner wallet, the link will take you through the registration process. Just follow the prompts when you are taken to the page. Once you finish creating the wallet, you can come back to this page and connect it."), /*#__PURE__*/_react.default.createElement("p", null, "If you already have an Algosigner wallet, please make sure the extension is enabled on your browser. There will be a pop-up that is presented asking for STOKR's permission to view your current wallet address.")), wallet === 'myalgo' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h3", null, "CONNECT A MY ALGO WALLET"), /*#__PURE__*/_react.default.createElement("p", null, "Please click on the 'CONNECT' button below. If you don't already have an My Algo wallet, the link will take you to a pop-up to create a wallet. Just follow the prompts. Once you finish creating the wallet, you can come back to this page and connect it."), /*#__PURE__*/_react.default.createElement("p", null, 'If you already have a My Algo wallet, you may need to log into it. If so, there will be a prompt for this.')))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
27
|
+
center: true
|
|
28
|
+
}, wallet === 'algosigner' && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
29
|
+
minWidth: "240px",
|
|
30
|
+
onClick: function onClick() {
|
|
31
|
+
setWallet('algosigner');
|
|
32
|
+
changeStep();
|
|
33
|
+
},
|
|
34
|
+
disabled: !(0, _StokrWeb.isAlgoSignerInstalled)()
|
|
35
|
+
}, "Connect"), wallet === 'myalgo' && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
36
|
+
minWidth: "240px",
|
|
37
|
+
onClick: function onClick() {
|
|
38
|
+
setWallet('myalgo');
|
|
39
|
+
changeStep();
|
|
40
|
+
}
|
|
41
|
+
}, "Connect"))));
|
|
42
|
+
};
|
|
43
|
+
AlgoConnectWallet.propTypes = {
|
|
44
|
+
changeStep: _propTypes.default.func.isRequired
|
|
45
|
+
};
|
|
46
|
+
var _default = AlgoConnectWallet;
|
|
47
|
+
exports.default = _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _Text = _interopRequireDefault(require("../Text/Text.styles"));
|
|
11
|
+
var _Button = _interopRequireDefault(require("../Button/Button.styles"));
|
|
12
|
+
var _SectionTitle = _interopRequireDefault(require("../SectionTitle/SectionTitle.styles"));
|
|
13
|
+
var _ComponentWrapper = _interopRequireDefault(require("../ComponentWrapper/ComponentWrapper.styles"));
|
|
14
|
+
var _ComponentScroll = _interopRequireDefault(require("../ComponentScroll/ComponentScroll"));
|
|
15
|
+
var _Modal = require("../Modal/Modal.styles");
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
var AlgoSuccess = function AlgoSuccess(_ref) {
|
|
20
|
+
var _onClick = _ref.onClick;
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_Modal.ModalWrapper, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_SectionTitle.default, null, "Register Algorand address")), /*#__PURE__*/_react.default.createElement(_ComponentScroll.default, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
22
|
+
noPaddingVertical: true
|
|
23
|
+
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h3", null, "YOU successfully opted in your address"), /*#__PURE__*/_react.default.createElement("p", null, "All Algorand addresses are checked to prevent money laundering on STOKR. We'll let you know as soon as yours is on the whitelist."))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
24
|
+
noPaddingHorizontal: true,
|
|
25
|
+
center: true
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
27
|
+
minWidth: "240px",
|
|
28
|
+
onClick: function onClick() {
|
|
29
|
+
// deleteRedirectCookieAndNavigate()
|
|
30
|
+
_onClick();
|
|
31
|
+
}
|
|
32
|
+
}, "Continue"))));
|
|
33
|
+
};
|
|
34
|
+
AlgoSuccess.propTypes = {
|
|
35
|
+
changeStep: _propTypes.default.func.isRequired
|
|
36
|
+
};
|
|
37
|
+
var _default = AlgoSuccess;
|
|
38
|
+
exports.default = _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.algoFlowWithoutProject = exports.AlgoFlowWithMemo = exports.AlgoFlowWallet = exports.AlgoFlowProject = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _flow = _interopRequireDefault(require("./flow"));
|
|
9
|
+
var _flowWithMemo = _interopRequireDefault(require("./flowWithMemo"));
|
|
10
|
+
var _AuthContext = require("../context/AuthContext");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
// import { AlgoAdressSelect } from 'index'
|
|
13
|
+
var _default = {
|
|
14
|
+
title: 'Components Library/Algorand',
|
|
15
|
+
component: _flow.default,
|
|
16
|
+
argTypes: {
|
|
17
|
+
showFlow: {
|
|
18
|
+
type: 'boolean',
|
|
19
|
+
defaultValue: true
|
|
20
|
+
},
|
|
21
|
+
setShowFlow: {},
|
|
22
|
+
setShowPending: {},
|
|
23
|
+
withSuccessPage: {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
defaultValue: false
|
|
26
|
+
},
|
|
27
|
+
project: {},
|
|
28
|
+
wallet: {}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.default = _default;
|
|
32
|
+
var Template = function Template(args) {
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_AuthContext.AuthProvider, null, /*#__PURE__*/_react.default.createElement(_flow.default, args));
|
|
34
|
+
};
|
|
35
|
+
var algoFlowWithoutProject = function algoFlowWithoutProject() {
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_AuthContext.AuthProvider, null, /*#__PURE__*/_react.default.createElement(_flow.default, {
|
|
37
|
+
showFlow: {
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
defaultValue: true
|
|
40
|
+
},
|
|
41
|
+
setShowFlow: function setShowFlow() {},
|
|
42
|
+
withSuccessPage: true
|
|
43
|
+
// project={{ title: 'Algorand Test', primaryAssetId: '20918100' }}
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
exports.algoFlowWithoutProject = algoFlowWithoutProject;
|
|
47
|
+
var AlgoFlowWithMemo = function AlgoFlowWithMemo() {
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement(_AuthContext.AuthProvider, null, /*#__PURE__*/_react.default.createElement(_flowWithMemo.default, {
|
|
49
|
+
showFlow: true,
|
|
50
|
+
setShowFlow: {}
|
|
51
|
+
}));
|
|
52
|
+
};
|
|
53
|
+
// export const headerUserWithoutAvatar = () => <Header user={{}} />
|
|
54
|
+
exports.AlgoFlowWithMemo = AlgoFlowWithMemo;
|
|
55
|
+
var AlgoFlowProject = Template.bind({});
|
|
56
|
+
exports.AlgoFlowProject = AlgoFlowProject;
|
|
57
|
+
AlgoFlowProject.args = {
|
|
58
|
+
project: {
|
|
59
|
+
title: 'Algorand Test',
|
|
60
|
+
name: 'Algorand',
|
|
61
|
+
primaryAssetId: '20918100'
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var AlgoFlowWallet = Template.bind({});
|
|
65
|
+
exports.AlgoFlowWallet = AlgoFlowWallet;
|
|
66
|
+
AlgoFlowWallet.args = {
|
|
67
|
+
project: {
|
|
68
|
+
title: 'Algorand Test',
|
|
69
|
+
name: 'Algorand',
|
|
70
|
+
primaryAssetId: '20918100'
|
|
71
|
+
},
|
|
72
|
+
wallet: {
|
|
73
|
+
setverifiedAddress: true
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
algoFlowWithoutProject.story = {
|
|
77
|
+
//decorators: [withKnobs],
|
|
78
|
+
};
|