@stokr/components-library 0.5.6 → 0.5.7
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/build/asset-manifest.json +39 -3
- package/build/index.html +1 -1
- package/build/static/css/main.e30a9d15.css +15 -0
- package/build/static/css/main.e30a9d15.css.map +1 -0
- package/build/static/js/main.8c250652.js +3 -0
- package/build/static/js/main.8c250652.js.LICENSE.txt +158 -0
- package/build/static/js/main.8c250652.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/{dist/Footer/lemonway.png → build/static/media/lemonway.33e88c3a49e7ac73e3a9.png} +0 -0
- package/{dist/Footer/sicos-logo.svg → build/static/media/sicos-logo.7fa3ac9d583b52c3987da529da67cb15.svg} +0 -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/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 +41 -0
- package/dist/components/Background/Background.stories.js +62 -0
- package/dist/components/Background/Background.styles.js +69 -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 +274 -0
- package/dist/components/Checklist/UserChecklist.stories.js +126 -0
- package/dist/components/ComponentScroll/ComponentScroll.js +138 -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 +65 -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 +129 -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/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 +452 -0
- package/dist/components/Header/Header.stories.js +188 -0
- package/dist/components/Header/Header.styles.js +180 -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 +123 -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 +41 -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 +215 -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 +127 -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 +42 -0
- package/dist/components/taxId/complete.js +32 -0
- package/dist/components/taxId/flow.js +52 -0
- package/dist/components/taxId/index.js +27 -0
- package/dist/components/taxId/register-taxid.js +186 -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/style.js +52 -0
- package/dist/index.js +1 -177
- package/dist/model/axios.js +18 -0
- package/dist/model/axiosPublic.js +18 -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 +52 -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/package.json +133 -128
- package/build/static/js/main.31d6cfe0.js +0 -0
- package/dist/AccountBalance/AccountBalance.js +0 -43
- package/dist/AccountBalance/AccountBalance.stories.js +0 -75
- package/dist/AccountBalance/AccountBalance.styles.js +0 -38
- package/dist/AdminDashboard/Table/Table.js +0 -120
- package/dist/AdminDashboard/Table/Table.styles.js +0 -111
- package/dist/AgreementItem/AgreementItem.js +0 -38
- package/dist/AgreementItem/AgreementItem.stories.js +0 -98
- package/dist/AgreementItem/AgreementItem.styles.js +0 -31
- package/dist/AnalyticGraphs/Analytic.js +0 -528
- package/dist/AnalyticGraphs/Analytic.styles.js +0 -49
- package/dist/BackButton/BackButton.js +0 -22
- package/dist/BackButton/BackButton.stories.js +0 -24
- package/dist/BackButton/BackButton.styles.js +0 -110
- package/dist/Background/Background.js +0 -34
- package/dist/Background/Background.stories.js +0 -50
- package/dist/Background/Background.styles.js +0 -113
- package/dist/BarChart/BarChart.js +0 -258
- package/dist/BarChart/BarChart.stories.js +0 -46
- package/dist/BarChart/BarChart.styles.js +0 -93
- package/dist/BarChartLegend/BarChartLegend.js +0 -74
- package/dist/BarChartLegend/BarChartLegend.styles.js +0 -26
- package/dist/BasicTable/BasicTable.js +0 -20
- package/dist/BasicTable/BasicTable.stories.js +0 -51
- package/dist/BasicTable/BasicTable.styles.js +0 -64
- package/dist/Button/Button.stories.js +0 -63
- package/dist/Button/Button.styles.js +0 -180
- package/dist/ButtonContainer/ButtonContainer.styles.js +0 -25
- package/dist/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +0 -35
- package/dist/CapitalRaisedSummary/CaptialRaisedSummary.js +0 -23
- package/dist/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +0 -36
- package/dist/ChartBox/ChartBox.js +0 -34
- package/dist/ChartBox/ChartBox.stories.js +0 -9
- package/dist/ChartBox/ChartBox.styles.js +0 -50
- package/dist/ChartBox/ChartBoxDistribution.js +0 -20
- package/dist/ChartBox/ChartBoxDistribution.stories.js +0 -10
- package/dist/ChartLegend/ChartLegend.js +0 -37
- package/dist/ChartLegend/ChartLegend.stories.js +0 -74
- package/dist/ChartLegend/ChartLegend.styles.js +0 -67
- package/dist/Checkbox/Checkbox.js +0 -108
- package/dist/Checkbox/Checkbox.stories.js +0 -82
- package/dist/Checkbox/Checkbox.styles.js +0 -123
- package/dist/Checklist/UserChecklist.js +0 -247
- package/dist/Checklist/UserChecklist.stories.js +0 -115
- package/dist/ComponentScroll/ComponentScroll.js +0 -99
- package/dist/ComponentScroll/ComponentScroll.stories.js +0 -92
- package/dist/ComponentScroll/ComponentScroll.styles.js +0 -104
- package/dist/ComponentWrapper/ComponentWrapper.styles.js +0 -128
- package/dist/CryptoAddress/ComponentWrap.js +0 -24
- package/dist/CryptoAddress/CryptoAddress.js +0 -124
- package/dist/CryptoAddress/CryptoAddress.stories.js +0 -163
- package/dist/CryptoAddress/CryptoAddress.styles.js +0 -399
- package/dist/CryptoAddress/RadioWrap.js +0 -36
- package/dist/CryptoAddressDetails/CryptoAddressDetails.js +0 -42
- package/dist/CryptoAddressDetails/CryptoAddressDetails.stories.js +0 -65
- package/dist/CryptoAddressDetails/CryptoAddressDetails.styles.js +0 -114
- package/dist/CryptoAddressWrapper/CryptoAddressWrapper.js +0 -30
- package/dist/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +0 -98
- package/dist/DonutChart/DonutChart.js +0 -137
- package/dist/DonutChart/DonutChart.stories.js +0 -39
- package/dist/DonutChart/DonutChart.styles.js +0 -101
- package/dist/DoubleButton/DoubleButton.styles.js +0 -25
- package/dist/ErrorMessage/ErrorMessage.styles.js +0 -9
- package/dist/FAQ/FAQ.js +0 -40
- package/dist/FAQ/FAQ.stories.js +0 -63
- package/dist/FAQ/FAQ.styles.js +0 -69
- package/dist/Footer/Footer.js +0 -54
- package/dist/Footer/Footer.stories.js +0 -41
- package/dist/Footer/Footer.styles.js +0 -230
- package/dist/Footer/FooterLayout.js +0 -114
- package/dist/Footer/FooterLayout.stories.js +0 -20
- package/dist/Footer/FooterMenu.js +0 -83
- package/dist/Footer/FooterMenu.stories.js +0 -110
- package/dist/Footer/FooterMenu.styles.js +0 -274
- package/dist/Footer/index.js +0 -4
- package/dist/ForgotPasswordModal/ForgotPasswordModal.js +0 -89
- package/dist/ForgotPasswordModal/ForgotPasswordModal.stories.js +0 -31
- package/dist/Form/Form.js +0 -38
- package/dist/Form/Form.stories.js +0 -23
- package/dist/Form/Form.styles.js +0 -66
- package/dist/FullscreenCard/FullscreenCard.styles.js +0 -36
- package/dist/Grid/Grid.styles.js +0 -109
- package/dist/Header/Header.js +0 -369
- package/dist/Header/Header.stories.js +0 -172
- package/dist/Header/Header.styles.js +0 -493
- package/dist/Icon/Icon.style.js +0 -75
- package/dist/InfoIcon/InfoIcon.js +0 -40
- package/dist/InfoIcon/InfoIcon.stories.js +0 -40
- package/dist/InfoIcon/InfoIcon.styles.js +0 -42
- package/dist/InfoPanel/InfoPanel.js +0 -115
- package/dist/Input/DatePickerInput.js +0 -64
- package/dist/Input/DatePickerInput.stories.js +0 -80
- package/dist/Input/DatePickerInput.styles.js +0 -67
- package/dist/Input/Input.js +0 -86
- package/dist/Input/Input.stories.js +0 -134
- package/dist/Input/Input.styles.js +0 -126
- package/dist/Input/InputPassword.js +0 -122
- package/dist/Input/InputPassword.stories.js +0 -72
- package/dist/Input/InputPassword.styles.js +0 -139
- package/dist/Input/RangeInput.js +0 -46
- package/dist/Input/RangeInput.stories.js +0 -48
- package/dist/Input/RangeInput.styles.js +0 -125
- package/dist/Input/Select.js +0 -130
- package/dist/Input/Select.stories.js +0 -129
- package/dist/Input/Select.styles.js +0 -143
- package/dist/InvestCalculator/InvestCalculator.js +0 -353
- package/dist/InvestCalculator/InvestCalculator.stories.js +0 -129
- package/dist/InvestCalculator/InvestCalculator.styles.js +0 -78
- package/dist/InvestmentStat/InvestmentStat.js +0 -33
- package/dist/InvestmentStat/InvestmentStat.stories.js +0 -44
- package/dist/InvestmentStat/InvestmentStat.styles.js +0 -53
- package/dist/KYCFlow/BasicInfo.js +0 -396
- package/dist/KYCFlow/Confirmation.js +0 -37
- package/dist/KYCFlow/DocumentFileUpload.js +0 -240
- package/dist/KYCFlow/DocumentScan.js +0 -66
- package/dist/KYCFlow/DocumentScanUpload.js +0 -228
- package/dist/KYCFlow/DocumentSelect.js +0 -101
- package/dist/KYCFlow/DocumentSuccess.js +0 -54
- package/dist/KYCFlow/DocumentUpload.js +0 -44
- package/dist/KYCFlow/DocumentVerificationType.js +0 -114
- package/dist/KYCFlow/FaceScan.js +0 -45
- package/dist/KYCFlow/FaceScanRecognition.js +0 -52
- package/dist/KYCFlow/FaceScanSuccess.js +0 -47
- package/dist/KYCFlow/Terms.js +0 -99
- package/dist/KYCFlow/_styles.js +0 -284
- package/dist/KYCFlow/index.js +0 -14
- package/dist/KYCSelectBox/KYCSelectBox.styles.js +0 -62
- package/dist/LatestUpdate/LatestUpdate.js +0 -35
- package/dist/LatestUpdate/LatestUpdate.stories.js +0 -51
- package/dist/LatestUpdate/LatestUpdate.styles.js +0 -77
- package/dist/Layout/Layout-func-no-work.js +0 -67
- package/dist/Layout/Layout.js +0 -68
- package/dist/Layout/Layout.stories.js +0 -55
- package/dist/LearnMoreCarousel/LearnMoreCarousel.js +0 -39
- package/dist/LearnMoreCarousel/LearnMoreCarousel.stories.js +0 -58
- package/dist/LearnMoreCarousel/LearnMoreCarousel.styles.js +0 -205
- package/dist/LearnMorePage/LearnMore.js +0 -199
- package/dist/LearnMorePage/LearnMore.shared.styles.js +0 -49
- package/dist/LearnMorePage/LearnMore.stories.js +0 -41
- package/dist/LearnMorePage/LearnMore.styles.js +0 -250
- package/dist/LearnMorePage/LearnMoreExampleObject.js +0 -102
- package/dist/LearnMorePage/LearnMoreItem.js +0 -73
- package/dist/LearnMorePage/LearnMoreItem.stories.js +0 -54
- package/dist/LearnMorePage/LearnMoreItem.styles.js +0 -218
- package/dist/LearnMoreSection/LearnMore.js +0 -158
- package/dist/LearnMoreSection/LearnMore.stories.js +0 -23
- package/dist/LearnMoreSection/LearnMore.styles.js +0 -134
- package/dist/LearnMoreSection/LearnMoreItem.js +0 -39
- package/dist/LearnMoreSection/LearnMoreItem.stories.js +0 -52
- package/dist/LearnMoreSection/LearnMoreItem.styles.js +0 -54
- package/dist/LoginModal/LoginModal.js +0 -125
- package/dist/MainMenu/DynamicMainMenu.js +0 -41
- package/dist/MainMenu/MainMenu.js +0 -207
- package/dist/MainMenu/MainMenu.styles.js +0 -361
- package/dist/MatomoConnect/Matomo.js +0 -221
- package/dist/MatomoConnect/Matomo_fuckup.js +0 -185
- package/dist/MenuNav/MenuNav.styles.js +0 -88
- package/dist/Modal/Modal.js +0 -71
- package/dist/Modal/Modal.stories.js +0 -67
- package/dist/Modal/Modal.styles.js +0 -407
- package/dist/MultiProgressBar/MultiProgressBar.js +0 -33
- package/dist/MultiProgressBar/MultiProgressBar.stories.js +0 -61
- package/dist/MultiProgressBar/MultiProgressBar.styles.js +0 -92
- package/dist/Newsletter/Newsletter.js +0 -106
- package/dist/Newsletter/Newsletter.stories.js +0 -8
- package/dist/Newsletter/Newsletter.styles.js +0 -173
- package/dist/NotificationContext/NotificationContext.js +0 -126
- package/dist/NotificationContext/NotificationContext.stories.js +0 -32
- package/dist/NotificationCounter/NotificationCounter.styles.js +0 -23
- package/dist/Number/Number.js +0 -25
- package/dist/Number/Number.stories.js +0 -18
- package/dist/Number/Number.styles.js +0 -21
- package/dist/PageTransition/PageTransition.js +0 -42
- package/dist/Process/Process.stories.js +0 -34
- package/dist/Process/Process.styles.js +0 -87
- package/dist/ProfileBadge/ProfileBadge.js +0 -46
- package/dist/ProfileBadge/ProfileBadge.stories.js +0 -37
- package/dist/ProfileBadge/ProfileBadge.styles.js +0 -47
- package/dist/ProfileBox/ProfileBox.js +0 -29
- package/dist/ProfileBox/ProfileBox.stories.js +0 -27
- package/dist/ProfileBox/ProfileBox.styles.js +0 -60
- package/dist/ProfileHeader/ProfileHeader-CLb4.js +0 -401
- package/dist/ProfileHeader/ProfileHeader.js +0 -268
- package/dist/ProfileHeader/ProfileHeader.styles.js +0 -114
- package/dist/ProfileStat/ProfileStat.js +0 -32
- package/dist/ProfileStat/ProfileStat.stories.js +0 -58
- package/dist/ProfileStat/ProfileStat.styles.js +0 -80
- package/dist/ProofOfAddress/ProofOfAddress.styles.js +0 -76
- package/dist/ROI/ROI.js +0 -261
- package/dist/ROI/ROI.styles.js +0 -71
- package/dist/ROI/ROIChart.js +0 -348
- package/dist/ROI/ROIChart.styles.js +0 -98
- package/dist/ROI/ROIModal.js +0 -74
- package/dist/ROI/ROIScenarioBox.js +0 -46
- package/dist/ROI/ROIScenarioBox.styles.js +0 -131
- package/dist/Radio/Radio.js +0 -58
- package/dist/Radio/Radio.stories.js +0 -65
- package/dist/Radio/Radio.styles.js +0 -93
- package/dist/RefreshButton/RefreshButton.js +0 -14
- package/dist/RefreshButton/RefreshButton.stories.js +0 -29
- package/dist/RefreshButton/RefreshButton.styles.js +0 -57
- package/dist/RegisterAlgorand/AlgoAddressName.js +0 -103
- package/dist/RegisterAlgorand/AlgoAdressSelect.js +0 -274
- package/dist/RegisterAlgorand/AlgoConnectWallet.js +0 -37
- package/dist/RegisterAlgorand/AlgoSuccess.js +0 -28
- package/dist/RegisterAlgorand/Algorand.stories.js +0 -61
- package/dist/RegisterAlgorand/ChooseWallet.js +0 -77
- package/dist/RegisterAlgorand/SelectProject.js +0 -77
- package/dist/RegisterAlgorand/_styles.js +0 -30
- package/dist/RegisterAlgorand/flow.js +0 -243
- package/dist/RegisterAlgorand/flowWithMemo.js +0 -244
- package/dist/RegisterAlgorand/index.js +0 -7
- package/dist/RegisterConfirmModal/RegisterConfirmModal.js +0 -30
- package/dist/RegisterConfirmModal/RegisterConfirmModal.stories.js +0 -22
- package/dist/RegisterConfirmModal/RegisterConfirmModal.styles.js +0 -19
- package/dist/RegisterEthereum/EthAddressLedger.js +0 -151
- package/dist/RegisterEthereum/EthAddressMetamask.js +0 -165
- package/dist/RegisterEthereum/EthAddressName.js +0 -101
- package/dist/RegisterEthereum/EthConnectLedger.js +0 -117
- package/dist/RegisterEthereum/EthConnectMetamask.js +0 -25
- package/dist/RegisterEthereum/EthFinish.js +0 -32
- package/dist/RegisterEthereum/EthIntro.js +0 -77
- package/dist/RegisterEthereum/_styles.js +0 -30
- package/dist/RegisterEthereum/index.js +0 -9
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.js +0 -75
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +0 -65
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +0 -69
- package/dist/RegisterLiquidSteps/assets/nav_green.svg +0 -31
- package/dist/RegisterLiquidSteps/assets/video.mp4 +0 -0
- package/dist/RegisterLiquidSteps/assets/videothumbnail.jpg +0 -0
- package/dist/RegisterLiquidSteps/complete.js +0 -29
- package/dist/RegisterLiquidSteps/flow.js +0 -141
- package/dist/RegisterLiquidSteps/index.js +0 -29
- package/dist/RegisterLiquidSteps/register-liquid.js +0 -197
- package/dist/RegisterModal/RegisterModal.js +0 -143
- package/dist/RegisterModal/RegisterModal.stories.js +0 -35
- package/dist/RequestDataBox/RequestDataBox.js +0 -21
- package/dist/RequestDataBox/RequestDataBox.stories.js +0 -29
- package/dist/RequestDataBox/RequestDataBox.styles.js +0 -40
- package/dist/RiskQuestionnaire/RiskQuestionnaireContext.js +0 -111
- package/dist/RiskQuestionnaire/_styles.js +0 -6
- package/dist/SEO/SEO.js +0 -63
- package/dist/SEO/SEO.stories.js +0 -53
- package/dist/SectionTitle/SectionTitle.styles.js +0 -23
- package/dist/SideLine/SideLine.js +0 -4
- package/dist/SideLine/SideLine.stories.js +0 -20
- package/dist/SideLine/SideLine.styles.js +0 -29
- package/dist/SigningSubflow/SignSubAddressMetamask.js +0 -105
- package/dist/SigningSubflow/SignSubConnectLedger.js +0 -114
- package/dist/SigningSubflow/SignSubConnectMetamask.js +0 -101
- package/dist/SigningSubflow/SignSubIntro.js +0 -45
- package/dist/SigningSubflow/SignSubSendLedger.js +0 -114
- package/dist/SigningSubflow/SignSubSendMetamask.js +0 -53
- package/dist/SigningSubflow/SignSubTransactionLedger.js +0 -125
- package/dist/SigningSubflow/SignSubTransactionMetamask.js +0 -130
- package/dist/SigningSubflow/_styles.js +0 -59
- package/dist/SigningSubflow/index.js +0 -9
- package/dist/Slider/Slider.js +0 -43
- package/dist/Slider/Slider.stories.js +0 -63
- package/dist/Slider/Slider.styles.js +0 -115
- package/dist/SpanButton/SpanButton.styles.js +0 -14
- package/dist/StatusBadge/StatusBadge.styles.js +0 -16
- package/dist/StepController/StepController.js +0 -73
- package/dist/StepController/StepController.stories.js +0 -52
- package/dist/StepController/StepController.styles.js +0 -27
- package/dist/StepController/StepControllerContext.js +0 -61
- package/dist/StepController/StepControllerProgress.js +0 -28
- package/dist/StepController/StepControllerProgress.stories.js +0 -41
- package/dist/StepsProgress/StepsProgress.js +0 -95
- package/dist/StepsProgress/StepsProgress.stories.js +0 -23
- package/dist/StepsProgress/StepsProgress.styles.js +0 -97
- package/dist/StokrLoader/StokrLoader.js +0 -60
- package/dist/StokrLoader/media.js +0 -22
- package/dist/StokrLoader/stokr_loader_white_400x400.gif +0 -0
- package/dist/SvgIcons/AdminBadgeSvg.js +0 -16
- package/dist/SvgIcons/CameraSvg.js +0 -26
- package/dist/SvgIcons/CapsLockSvg.js +0 -21
- package/dist/SvgIcons/DocumentBackSvg.js +0 -25
- package/dist/SvgIcons/DocumentSmallSvg.js +0 -51
- package/dist/SvgIcons/DocumentSvg.js +0 -28
- package/dist/SvgIcons/Early.js +0 -14
- package/dist/SvgIcons/EthSvg.js +0 -30
- package/dist/SvgIcons/EurSvg.js +0 -16
- package/dist/SvgIcons/FaceScanIconSvg.js +0 -21
- package/dist/SvgIcons/FourSvg.js +0 -11
- package/dist/SvgIcons/Glassess.js +0 -19
- package/dist/SvgIcons/Icons_Badge.png +0 -0
- package/dist/SvgIcons/LogoSvg.js +0 -14
- package/dist/SvgIcons/OneSvg.js +0 -13
- package/dist/SvgIcons/PassportSvg.js +0 -46
- package/dist/SvgIcons/RefreshSvg.js +0 -17
- package/dist/SvgIcons/SocialFacebook.js +0 -15
- package/dist/SvgIcons/SocialInstagram.js +0 -15
- package/dist/SvgIcons/SocialLinkedIn.js +0 -15
- package/dist/SvgIcons/SocialMedium.js +0 -15
- package/dist/SvgIcons/SocialReddit.js +0 -15
- package/dist/SvgIcons/SocialTelegram.js +0 -15
- package/dist/SvgIcons/SocialTwitter.js +0 -15
- package/dist/SvgIcons/SocialYoutube.js +0 -15
- package/dist/SvgIcons/ThreeSvg.js +0 -10
- package/dist/SvgIcons/TwoSidedDocumentSvg.js +0 -72
- package/dist/SvgIcons/TwoSvg.js +0 -13
- package/dist/SvgIcons/UpdateDefaultSvg.js +0 -19
- package/dist/SvgIcons/UpdateHardSvg.js +0 -15
- package/dist/SvgIcons/UpdateSoftSvg.js +0 -17
- package/dist/SvgIcons/UploadSvg.js +0 -24
- package/dist/SvgIcons/VerifiedBadge.js +0 -13
- package/dist/SvgIcons/index.js +0 -32
- package/dist/Switch/Switch.js +0 -45
- package/dist/Switch/Switch.stories.js +0 -73
- package/dist/Switch/Switch.styles.js +0 -105
- package/dist/Tabs/Tabs.js +0 -48
- package/dist/Tabs/Tabs.stories.js +0 -28
- package/dist/Tabs/Tabs.styles.js +0 -11
- package/dist/TabsNav/TabNav.js +0 -21
- package/dist/TabsNav/TabNav.stories.js +0 -32
- package/dist/TabsNav/TabsNav.js +0 -23
- package/dist/TabsNav/TabsNav.stories.js +0 -25
- package/dist/TabsNav/TabsNav.styles.js +0 -80
- package/dist/TeamOverview/TeamOverview.js +0 -69
- package/dist/TeamOverview/TeamOverview.stories.js +0 -68
- package/dist/TeamOverview/TeamOverview.styles.js +0 -152
- package/dist/Text/Headline.js +0 -34
- package/dist/Text/Headline.stories.js +0 -40
- package/dist/Text/StyledText.js +0 -30
- package/dist/Text/Text.stories.js +0 -59
- package/dist/Text/Text.styles.js +0 -166
- package/dist/TextLink/TextLink.styles.js +0 -50
- package/dist/ToDoList/ToDoList.js +0 -172
- package/dist/ToDoList/ToDoList.stories.js +0 -123
- package/dist/ToDoList/ToDoList.styles.js +0 -115
- package/dist/ToDoList/ToDoListTask.js +0 -96
- package/dist/ToDoList/ToDoListTask.stories.js +0 -60
- package/dist/ToDoList/ToDoListTask.styles.js +0 -104
- package/dist/TransactionDetails/TransactionDetails.js +0 -27
- package/dist/TransactionDetails/TransactionDetails.stories.js +0 -47
- package/dist/TransactionDetails/TransactionDetails.styles.js +0 -31
- package/dist/TransactionInfo/TransactionInfo.js +0 -48
- package/dist/TransactionInfo/TransactionInfo.stories.js +0 -53
- package/dist/TransactionInfo/TransactionInfo.styles.js +0 -64
- package/dist/TwoFactorModal/TwoFactorModal.js +0 -84
- package/dist/breakdown/Breakdown.js +0 -124
- package/dist/breakdown/index.js +0 -2
- package/dist/context/Auth.js +0 -133
- package/dist/context/AuthContext.js +0 -154
- package/dist/icons/Arrow.js +0 -62
- package/dist/icons/Arrow.stories.js +0 -37
- package/dist/icons/ArrowSimple.js +0 -51
- package/dist/icons/ArrowSimple.stories.js +0 -41
- package/dist/icons/Check.js +0 -29
- package/dist/icons/Check.stories.js +0 -14
- package/dist/icons/Facebook.js +0 -15
- package/dist/icons/Facebook.stories.js +0 -15
- package/dist/icons/Info.js +0 -41
- package/dist/icons/Info.stories.js +0 -8
- package/dist/icons/Instagram.js +0 -15
- package/dist/icons/Instagram.stories.js +0 -15
- package/dist/icons/LinkIcon.js +0 -23
- package/dist/icons/LinkIcon.stories.js +0 -15
- package/dist/icons/LinkedIn.js +0 -29
- package/dist/icons/LinkedIn.stories.js +0 -8
- package/dist/icons/Medium.js +0 -28
- package/dist/icons/Medium.stories.js +0 -8
- package/dist/icons/Reddit.js +0 -18
- package/dist/icons/Reddit.stories.js +0 -15
- package/dist/icons/Share.js +0 -48
- package/dist/icons/Share.stories.js +0 -8
- package/dist/icons/Telegram.js +0 -28
- package/dist/icons/Telegram.stories.js +0 -8
- package/dist/icons/Twitter.js +0 -15
- package/dist/icons/Twitter.stories.js +0 -15
- package/dist/icons/X.js +0 -15
- package/dist/icons/X.stories.js +0 -8
- package/dist/icons/Youtube.js +0 -15
- package/dist/icons/Youtube.stories.js +0 -15
- package/dist/icons/index.js +0 -15
- package/dist/renderToBody/index.js +0 -2
- package/dist/renderToBody/renderToBody.js +0 -26
- package/dist/taxId/TaxId.stories.js +0 -29
- package/dist/taxId/complete.js +0 -21
- package/dist/taxId/flow.js +0 -31
- package/dist/taxId/index.js +0 -4
- package/dist/taxId/register-taxid.js +0 -156
- package/dist/video/Video.js +0 -274
- package/dist/video/Video.stories.js +0 -45
- package/dist/video/img/play-btn.svg +0 -1
- package/dist/video/index.js +0 -2
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/react-scripts +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.RenderToBody = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
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); }
|
|
11
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
13
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
14
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
15
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
16
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
17
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
18
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
19
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
20
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
21
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
23
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
|
+
var RenderToBody = /*#__PURE__*/function (_PureComponent) {
|
|
25
|
+
_inherits(RenderToBody, _PureComponent);
|
|
26
|
+
var _super = _createSuper(RenderToBody);
|
|
27
|
+
function RenderToBody() {
|
|
28
|
+
var _this;
|
|
29
|
+
_classCallCheck(this, RenderToBody);
|
|
30
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
31
|
+
args[_key] = arguments[_key];
|
|
32
|
+
}
|
|
33
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
34
|
+
_defineProperty(_assertThisInitialized(_this), "renderOutsideBody", function () {
|
|
35
|
+
var children = _this.props.children;
|
|
36
|
+
_reactDom.default.render(children, _this.outsideWrapper);
|
|
37
|
+
});
|
|
38
|
+
return _this;
|
|
39
|
+
}
|
|
40
|
+
_createClass(RenderToBody, [{
|
|
41
|
+
key: "componentDidMount",
|
|
42
|
+
value: function componentDidMount() {
|
|
43
|
+
this.outsideWrapper = document.createElement('div');
|
|
44
|
+
document.body.appendChild(this.outsideWrapper);
|
|
45
|
+
this.renderOutsideBody();
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
key: "componentDidUpdate",
|
|
49
|
+
value: function componentDidUpdate() {
|
|
50
|
+
this.renderOutsideBody();
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
key: "componentWillUnmount",
|
|
54
|
+
value: function componentWillUnmount() {
|
|
55
|
+
_reactDom.default.unmountComponentAtNode(this.outsideWrapper);
|
|
56
|
+
document.body.removeChild(this.outsideWrapper);
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
key: "render",
|
|
60
|
+
value: function render() {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
}]);
|
|
64
|
+
return RenderToBody;
|
|
65
|
+
}(_react.PureComponent);
|
|
66
|
+
exports.RenderToBody = RenderToBody;
|
|
67
|
+
var _default = RenderToBody;
|
|
68
|
+
exports.default = _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.TaxIdModalFlow = exports.TaxIdFlowWithBackButton = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _flow = _interopRequireDefault(require("./flow"));
|
|
9
|
+
var _AuthContext = require("components/context/AuthContext");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
// import { AlgoAdressSelect } from 'index'
|
|
12
|
+
var _default = {
|
|
13
|
+
title: 'Components Library/Tax Id',
|
|
14
|
+
component: _flow.default,
|
|
15
|
+
argTypes: {
|
|
16
|
+
showFlow: {
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
defaultValue: true
|
|
19
|
+
},
|
|
20
|
+
setShowFlow: {},
|
|
21
|
+
showBackButton: {
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
defaultValue: false
|
|
24
|
+
},
|
|
25
|
+
showSkipButton: {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
defaultValue: false
|
|
28
|
+
}
|
|
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 TaxIdModalFlow = Template.bind({});
|
|
36
|
+
exports.TaxIdModalFlow = TaxIdModalFlow;
|
|
37
|
+
var TaxIdFlowWithBackButton = Template.bind({});
|
|
38
|
+
exports.TaxIdFlowWithBackButton = TaxIdFlowWithBackButton;
|
|
39
|
+
TaxIdFlowWithBackButton.args = {
|
|
40
|
+
showBackButton: true,
|
|
41
|
+
showSkipButton: true
|
|
42
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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 _Text = _interopRequireDefault(require("components/Text/Text.styles"));
|
|
9
|
+
var _reactRouterDom = require("react-router-dom");
|
|
10
|
+
var _ComponentWrapper = _interopRequireDefault(require("components/ComponentWrapper/ComponentWrapper.styles"));
|
|
11
|
+
var _TextLink = require("components/TextLink/TextLink.styles");
|
|
12
|
+
var _Button = _interopRequireDefault(require("components/Button/Button.styles"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
var RegisterTaxIdComplete = function RegisterTaxIdComplete(_ref) {
|
|
15
|
+
var showBackButton = _ref.showBackButton,
|
|
16
|
+
_ref$onClick = _ref.onClick,
|
|
17
|
+
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick;
|
|
18
|
+
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showBackButton && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
20
|
+
noPaddingVertical: true
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement(_TextLink.TextButton, {
|
|
22
|
+
onClick: function onClick() {
|
|
23
|
+
return navigate('/verify-identity');
|
|
24
|
+
}
|
|
25
|
+
}, "Back to verify identity")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h1", null, "Your Tax Id has been submitted"), /*#__PURE__*/_react.default.createElement("p", null, "You have successfully submitted your Tax ID information on STOKR. You will be ready to invest once you have completed all required steps on your checklist. Please continue!"))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
26
|
+
noPaddingTop: true
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
28
|
+
onClick: onClick
|
|
29
|
+
}, "Continue")));
|
|
30
|
+
};
|
|
31
|
+
var _default = RegisterTaxIdComplete;
|
|
32
|
+
exports.default = _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 _Modal = require("components/Modal/Modal");
|
|
10
|
+
var _registerTaxid = _interopRequireDefault(require("./register-taxid"));
|
|
11
|
+
var _ComponentScroll = _interopRequireDefault(require("components/ComponentScroll/ComponentScroll"));
|
|
12
|
+
var _complete = _interopRequireDefault(require("./complete"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
+
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."); }
|
|
18
|
+
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); }
|
|
19
|
+
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; }
|
|
20
|
+
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; } }
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
var RegisterTaxIdFlow = function RegisterTaxIdFlow(_ref) {
|
|
23
|
+
var showFlow = _ref.showFlow,
|
|
24
|
+
setShowFlow = _ref.setShowFlow,
|
|
25
|
+
showBackButton = _ref.showBackButton,
|
|
26
|
+
showSkipButton = _ref.showSkipButton;
|
|
27
|
+
var _useState = (0, _react.useState)(false),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
+
showComplete = _useState2[0],
|
|
30
|
+
setShowComplete = _useState2[1];
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
32
|
+
fullscreen: true,
|
|
33
|
+
isOpen: showFlow,
|
|
34
|
+
onClose: function onClose() {
|
|
35
|
+
return setShowFlow(false);
|
|
36
|
+
}
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, {
|
|
38
|
+
noPaddingHorizontal: true
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_ComponentScroll.default, null, showComplete ? /*#__PURE__*/_react.default.createElement(_complete.default, {
|
|
40
|
+
showBackButton: showBackButton,
|
|
41
|
+
onClick: function onClick() {
|
|
42
|
+
setShowComplete(false);
|
|
43
|
+
setShowFlow(false);
|
|
44
|
+
}
|
|
45
|
+
}) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_registerTaxid.default, {
|
|
46
|
+
setShowComplete: setShowComplete,
|
|
47
|
+
showBackButton: showBackButton,
|
|
48
|
+
showSkipButton: showSkipButton
|
|
49
|
+
})))));
|
|
50
|
+
};
|
|
51
|
+
var _default = RegisterTaxIdFlow;
|
|
52
|
+
exports.default = _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "RegisterTaxId", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _registerTaxid.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "RegisterTaxIdComplete", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _complete.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "RegisterTaxIdFlow", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _flow.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _registerTaxid = _interopRequireDefault(require("./register-taxid"));
|
|
25
|
+
var _flow = _interopRequireDefault(require("./flow"));
|
|
26
|
+
var _complete = _interopRequireDefault(require("./complete"));
|
|
27
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,186 @@
|
|
|
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 _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactRouterDom = require("react-router-dom");
|
|
11
|
+
var _Text = _interopRequireDefault(require("components/Text/Text.styles"));
|
|
12
|
+
var Yup = _interopRequireWildcard(require("yup"));
|
|
13
|
+
var _formik = require("formik");
|
|
14
|
+
var _Input = _interopRequireDefault(require("components/Input/Input"));
|
|
15
|
+
var _Form = _interopRequireWildcard(require("components/Form/Form"));
|
|
16
|
+
var _ToDoListTask = _interopRequireDefault(require("components/ToDoList/ToDoListTask"));
|
|
17
|
+
var _ToDoList = require("components/ToDoList/ToDoList");
|
|
18
|
+
var _Icon = require("components/Icon/Icon.style");
|
|
19
|
+
var _ComponentWrapper = _interopRequireDefault(require("components/ComponentWrapper/ComponentWrapper.styles"));
|
|
20
|
+
var _TextLink = require("components/TextLink/TextLink.styles");
|
|
21
|
+
var _Button = _interopRequireDefault(require("components/Button/Button.styles"));
|
|
22
|
+
var _CryptoAddressWrapper = _interopRequireDefault(require("components/CryptoAddressWrapper/CryptoAddressWrapper"));
|
|
23
|
+
var _RefreshButton = _interopRequireDefault(require("components/RefreshButton/RefreshButton"));
|
|
24
|
+
var _SectionTitle = _interopRequireDefault(require("components/SectionTitle/SectionTitle.styles"));
|
|
25
|
+
var _FAQ = _interopRequireDefault(require("components/FAQ/FAQ"));
|
|
26
|
+
var _AuthContext = require("components/context/AuthContext");
|
|
27
|
+
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); }
|
|
28
|
+
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; }
|
|
29
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
+
var LiquidDescription = _styledComponents.default.div.withConfig({
|
|
40
|
+
displayName: "register-taxid__LiquidDescription",
|
|
41
|
+
componentId: "sc-104ll31-0"
|
|
42
|
+
})(["li{font-size:20px !important;line-height:1.5em;img{vertical-align:middle;padding-bottom:2px;}}"]);
|
|
43
|
+
var RegisterTaxId = function RegisterTaxId(_ref) {
|
|
44
|
+
var _ref$setShowComplete = _ref.setShowComplete,
|
|
45
|
+
setShowComplete = _ref$setShowComplete === void 0 ? function () {} : _ref$setShowComplete,
|
|
46
|
+
showBackButton = _ref.showBackButton,
|
|
47
|
+
showSkipButton = _ref.showSkipButton;
|
|
48
|
+
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
49
|
+
var _useContext = (0, _react.useContext)(_AuthContext.AuthContext),
|
|
50
|
+
_useContext$user = _useContext.user,
|
|
51
|
+
user = _useContext$user === void 0 ? {} : _useContext$user;
|
|
52
|
+
var taxId = user.taxId;
|
|
53
|
+
var _useContext2 = (0, _react.useContext)(_AuthContext.AuthContext),
|
|
54
|
+
updateUser = _useContext2.updateUser;
|
|
55
|
+
var _useState = (0, _react.useState)(false),
|
|
56
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
57
|
+
isUpdatingUser = _useState2[0],
|
|
58
|
+
setIsUpdatingUser = _useState2[1];
|
|
59
|
+
var _useState3 = (0, _react.useState)(''),
|
|
60
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
61
|
+
error = _useState4[0],
|
|
62
|
+
setError = _useState4[1];
|
|
63
|
+
var initialValues = {
|
|
64
|
+
taxId: ''
|
|
65
|
+
};
|
|
66
|
+
var validationSchema = Yup.object().shape({
|
|
67
|
+
taxId: Yup.string().required('Oops, this can‘t be blank')
|
|
68
|
+
});
|
|
69
|
+
var handleOnSubmit = /*#__PURE__*/function () {
|
|
70
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
71
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
72
|
+
while (1) switch (_context.prev = _context.next) {
|
|
73
|
+
case 0:
|
|
74
|
+
setIsUpdatingUser(true);
|
|
75
|
+
_context.prev = 1;
|
|
76
|
+
_context.next = 4;
|
|
77
|
+
return updateUser({
|
|
78
|
+
taxId: e.taxId
|
|
79
|
+
});
|
|
80
|
+
case 4:
|
|
81
|
+
setShowComplete(true);
|
|
82
|
+
_context.next = 11;
|
|
83
|
+
break;
|
|
84
|
+
case 7:
|
|
85
|
+
_context.prev = 7;
|
|
86
|
+
_context.t0 = _context["catch"](1);
|
|
87
|
+
setError('Something went wrong. Try again.');
|
|
88
|
+
setIsUpdatingUser(false);
|
|
89
|
+
case 11:
|
|
90
|
+
case "end":
|
|
91
|
+
return _context.stop();
|
|
92
|
+
}
|
|
93
|
+
}, _callee, null, [[1, 7]]);
|
|
94
|
+
}));
|
|
95
|
+
return function handleOnSubmit(_x2) {
|
|
96
|
+
return _ref2.apply(this, arguments);
|
|
97
|
+
};
|
|
98
|
+
}();
|
|
99
|
+
var onRefreshClick = function onRefreshClick() {
|
|
100
|
+
setError(false);
|
|
101
|
+
};
|
|
102
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showBackButton && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
103
|
+
noPaddingVertical: true
|
|
104
|
+
}, /*#__PURE__*/_react.default.createElement(_TextLink.TextButton, {
|
|
105
|
+
onClick: function onClick() {
|
|
106
|
+
return navigate('/verify-identity');
|
|
107
|
+
}
|
|
108
|
+
}, "Back to verify identity")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement(LiquidDescription, null, /*#__PURE__*/_react.default.createElement("h1", null, "Provide your tax id"), /*#__PURE__*/_react.default.createElement("p", null, "Depending on the offering you want to invest in, you may need to provide your tax ID. This step is optional and you will have to add it later on from your investor dashboard. Please keep in mind that you won't be allowed to invest in some offerings without providing your tax ID.")))), taxId && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("p", null, "You have successfully submitted your Tax ID information."))), !isUpdatingUser && !error && !taxId && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_formik.Formik, {
|
|
109
|
+
initialValues: initialValues,
|
|
110
|
+
validationSchema: validationSchema,
|
|
111
|
+
onSubmit: handleOnSubmit
|
|
112
|
+
}, function (_ref3) {
|
|
113
|
+
var values = _ref3.values,
|
|
114
|
+
errors = _ref3.errors,
|
|
115
|
+
touched = _ref3.touched,
|
|
116
|
+
handleChange = _ref3.handleChange,
|
|
117
|
+
handleBlur = _ref3.handleBlur;
|
|
118
|
+
var submitDisabled = !values.taxId;
|
|
119
|
+
return /*#__PURE__*/_react.default.createElement(_Form.default, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
120
|
+
noPadding: true
|
|
121
|
+
}, /*#__PURE__*/_react.default.createElement(_Form.FormField, null, /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
122
|
+
id: "tax-id",
|
|
123
|
+
name: "taxId",
|
|
124
|
+
type: "input",
|
|
125
|
+
label: "enter your tax id",
|
|
126
|
+
value: values.taxId,
|
|
127
|
+
onChange: handleChange,
|
|
128
|
+
onBlur: handleBlur,
|
|
129
|
+
error: !!errors.taxId,
|
|
130
|
+
touched: !!touched.taxId
|
|
131
|
+
}), /*#__PURE__*/_react.default.createElement(_Form.FormError, {
|
|
132
|
+
show: errors.taxId && touched.taxId
|
|
133
|
+
}, errors.taxId))), /*#__PURE__*/_react.default.createElement("br", null), !taxId && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
134
|
+
noPaddingTop: true
|
|
135
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
136
|
+
minWidth: "230px",
|
|
137
|
+
type: "submit",
|
|
138
|
+
disabled: submitDisabled || isUpdatingUser || taxId
|
|
139
|
+
}, "Submit")));
|
|
140
|
+
})), (isUpdatingUser || error) && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
141
|
+
borderTop: true,
|
|
142
|
+
borderBottom: true,
|
|
143
|
+
center: true
|
|
144
|
+
}, /*#__PURE__*/_react.default.createElement(_CryptoAddressWrapper.default, {
|
|
145
|
+
noFailedIcon: true,
|
|
146
|
+
relative: true,
|
|
147
|
+
refresh: isUpdatingUser && 'Please wait while we submit your Tax ID.',
|
|
148
|
+
failed: error
|
|
149
|
+
})), error && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
150
|
+
center: true
|
|
151
|
+
}, /*#__PURE__*/_react.default.createElement(_RefreshButton.default, {
|
|
152
|
+
onClick: onRefreshClick
|
|
153
|
+
}, "TRY AGAIN")), taxId && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
154
|
+
noPaddingTop: true
|
|
155
|
+
}, /*#__PURE__*/_react.default.createElement(_ToDoListTask.default, {
|
|
156
|
+
title: "Tax ID",
|
|
157
|
+
message: "You tax ID is submitted",
|
|
158
|
+
state: _ToDoList.ToDoTaskState.APPROVED,
|
|
159
|
+
icon: _Icon.iconsMap.check
|
|
160
|
+
})), showSkipButton && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
161
|
+
noPaddingTop: true
|
|
162
|
+
}, /*#__PURE__*/_react.default.createElement(_TextLink.TextButton, {
|
|
163
|
+
onClick: function onClick() {
|
|
164
|
+
navigate('/risk-questionnaire');
|
|
165
|
+
}
|
|
166
|
+
}, taxId ? 'Continue' : "I'll do this later")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
167
|
+
noPaddingBottom: true
|
|
168
|
+
}, /*#__PURE__*/_react.default.createElement(_SectionTitle.default, null, "Frequently Asked Questions")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_FAQ.default, {
|
|
169
|
+
items: [{
|
|
170
|
+
title: 'Why do I need to provide my Tax ID?',
|
|
171
|
+
content: "Luxembourg has implemented the Common Reporting Standard (the \u201CCRS\u201D) through the law of 18 December 2015 ( the \u201CCRS Act\u201D) and some Luxembourg based entities are likely to be treated as a Luxembourg Reporting Financial Institution. \nAs a result, some of the Issuers on STOKR will be required to report information on their Noteholders to comply with the CRS due diligence and reporting requirements, as adopted by the CRS Act. The Issuer is required to annually report to the Luxembourg tax authorities personal and financial information related, \ninter alia, to the identification of, holdings by and payments made to certain Noteholders qualifying as Reportable Persons (each, a Reportable Person) being (i) Individuals resident of a reportable jurisdiction, i.e. an EU Member State or a third country listed in a Grand-Ducal Regulation, (ii) Certain entities resident of a reportable jurisdiction (unless exempt from reporting), and (iii) Controlling Persons of passive non-financial entities (NFEs) which are themselves Reportable Persons. \nThis information, as exhaustively set out in Annex I of the CRS Act, will include personal data related to the Reportable Persons. \nIn this respect, Noteholders may be required to provide additional information to the Issuer to enable it to satisfy its obligations under the CRS. Failure to provide requested information may subject a Noteholder to liability for any resulting penalties or other charges and/or mandatory termination of its holding of Notes. \n"
|
|
172
|
+
}]
|
|
173
|
+
})), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_FAQ.default, {
|
|
174
|
+
items: [{
|
|
175
|
+
title: 'How will my information be used?',
|
|
176
|
+
content: "The Issuer, or the Management Company of the Issuer if applicable, acting on behalf of the Issuer, is responsible for the processing of personal data and each Noteholder has among others the right to access the data communicated to the Luxembourg tax authorities and to correct such data (if necessary). Any data obtained by the Issuer are to be processed in accordance with the applicable data protection legislation. \nThe Noteholders are further informed that the Information related to Reportable Persons will be disclosed to the Luxembourg tax authorities annually for the purposes set out in the CRS Act. "
|
|
177
|
+
}]
|
|
178
|
+
})), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, null, /*#__PURE__*/_react.default.createElement(_FAQ.default, {
|
|
179
|
+
items: [{
|
|
180
|
+
title: "What if I'd like to do this later?",
|
|
181
|
+
content: 'You can always skip this step and complete it from the Checklist in your Investor Dashboard at a later point in time. However, you will not be able to invest before doing so and being verified.'
|
|
182
|
+
}]
|
|
183
|
+
})));
|
|
184
|
+
};
|
|
185
|
+
var _default = RegisterTaxId;
|
|
186
|
+
exports.default = _default;
|
|
@@ -0,0 +1,174 @@
|
|
|
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.Video = exports.StyledSlideImage = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
+
var sc = _interopRequireWildcard(require("constants/style"));
|
|
12
|
+
var _reactTransitionGroup = require("react-transition-group");
|
|
13
|
+
var _renderToBody = require("components/renderToBody");
|
|
14
|
+
var _icons = require("components/icons");
|
|
15
|
+
var _rwd = require("styles/rwd");
|
|
16
|
+
var _excluded = ["src", "poster", "videoStyle", "isCenter", "isSmallCard", "isInvestingExpanded", "noPlayButton", "play", "prevProps", "onOpen", "onClose", "lightboxAnimationLen", "videoAnimationLen", "animationLen"];
|
|
17
|
+
var _templateObject,
|
|
18
|
+
_this = void 0;
|
|
19
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
+
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); }
|
|
21
|
+
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; }
|
|
22
|
+
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); }
|
|
23
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
24
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
26
|
+
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."); }
|
|
27
|
+
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); }
|
|
28
|
+
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; }
|
|
29
|
+
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; } }
|
|
30
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
32
|
+
var Wrapper = _styledComponents.default.div.withConfig({
|
|
33
|
+
displayName: "Video__Wrapper",
|
|
34
|
+
componentId: "sc-13aeehw-0"
|
|
35
|
+
})(["position:relative;cursor:pointer;", " ", ""], function (_ref) {
|
|
36
|
+
var videoStyle = _ref.videoStyle;
|
|
37
|
+
return videoStyle;
|
|
38
|
+
}, function (_ref2) {
|
|
39
|
+
var isInvestingExpanded = _ref2.isInvestingExpanded;
|
|
40
|
+
return isInvestingExpanded && (0, _styledComponents.css)(["align-items:center;display:flex;"]);
|
|
41
|
+
});
|
|
42
|
+
var zIndex = 9999;
|
|
43
|
+
var LightboxVideo = _styledComponents.default.div.withConfig({
|
|
44
|
+
displayName: "Video__LightboxVideo",
|
|
45
|
+
componentId: "sc-13aeehw-1"
|
|
46
|
+
})(["display:flex;justify-content:center;align-items:center;position:fixed;left:0;right:0;top:0;bottom:0;z-index:", ";&::before{display:block;content:'';position:fixed;top:0;left:0;bottom:0;right:0;background-color:white;opacity:0.8;z-index:", ";transform-origin:left center;}&.lightbox-enter::before{transform:scaleX(0.01);transition:all ", "ms cubic-bezier(0.785,0.135,0.15,0.86);}&.lightbox-enter-active::before{transform:scaleX(1);}&.lightbox-exit::before{transform:scaleX(1);transform-origin:right center;}&.lightbox-exit-active::before{transform:scaleX(0);transition:all ", "ms cubic-bezier(0.785,0.135,0.15,0.86);transition-delay:", "ms;}video{max-width:80vw;max-height:90vh;position:relative;z-index:", ";box-shadow:0 0 20px 1px black;transition:all 0.4s;", " @media screen and (max-width:768px){max-width:95vw;}}&.lightbox-enter video{transform:scale(0.8) translate3d(-12%,0,0);opacity:0.01;transition:all ", "ms cubic-bezier(0.785,0.135,0.15,0.86);transition-delay:", "ms;}&.lightbox-enter-active video{transform:scale(1) translate3d(0,0,0);opacity:1;}&.lightbox-exit video{transform:scale(1) translate3d(0,0,0);opacity:1;}&.lightbox-exit-active video{transform:scale(0.8) translate3d(13%,0,0);opacity:0;transition:all ", "ms cubic-bezier(0.785,0.135,0.15,0.86);}"], zIndex, zIndex - 1, function (props) {
|
|
47
|
+
return props.lightboxAnimationLen;
|
|
48
|
+
}, function (props) {
|
|
49
|
+
return props.lightboxAnimationLen / 2;
|
|
50
|
+
}, function (props) {
|
|
51
|
+
return props.videoAnimationLen / 2;
|
|
52
|
+
}, zIndex + 1, _rwd.rwdMax.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 88vw;\n "]))), function (props) {
|
|
53
|
+
return props.videoAnimationLen;
|
|
54
|
+
}, function (props) {
|
|
55
|
+
return props.lightboxAnimationLen * 0.75;
|
|
56
|
+
}, function (props) {
|
|
57
|
+
return props.videoAnimationLen * 0.75;
|
|
58
|
+
});
|
|
59
|
+
var PlayButton = _styledComponents.default.div.withConfig({
|
|
60
|
+
displayName: "Video__PlayButton",
|
|
61
|
+
componentId: "sc-13aeehw-2"
|
|
62
|
+
})(["position:absolute;height:100%;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:", ";z-index:10;", " ", " img{transition:transform 0.3s;position:relative;top:", ";@media screen and (min-width:769px){top:", ";}}&:hover,&:focus,&:active{img{transform:scale(1.25);}}"], function (_ref3) {
|
|
63
|
+
var isSmallCard = _ref3.isSmallCard;
|
|
64
|
+
return isSmallCard ? 'flex-start' : 'center';
|
|
65
|
+
}, function (_ref4) {
|
|
66
|
+
var isCenter = _ref4.isCenter;
|
|
67
|
+
return isCenter && (0, _styledComponents.css)(["height:calc(100% - 48px);"]);
|
|
68
|
+
}, function (_ref5) {
|
|
69
|
+
var isInvestingExpanded = _ref5.isInvestingExpanded;
|
|
70
|
+
return isInvestingExpanded && (0, _styledComponents.css)(["bottom:unset;"]);
|
|
71
|
+
}, function (_ref6) {
|
|
72
|
+
var isSmallCard = _ref6.isSmallCard;
|
|
73
|
+
return isSmallCard ? '100px' : '0px';
|
|
74
|
+
}, function (_ref7) {
|
|
75
|
+
var isSmallCard = _ref7.isSmallCard;
|
|
76
|
+
return isSmallCard ? '132px' : '0px';
|
|
77
|
+
});
|
|
78
|
+
var CloseButtonContainer = _styledComponents.default.div.withConfig({
|
|
79
|
+
displayName: "Video__CloseButtonContainer",
|
|
80
|
+
componentId: "sc-13aeehw-3"
|
|
81
|
+
})(["align-items:center;background:", ";cursor:pointer;display:flex;height:48px;justify-content:center;position:absolute;right:0;top:0;width:48px;transition:all 0.2s;z-index:99999;&:hover{background:transparent;svg{transform:rotate(-180deg);fill:#000;}}svg{fill:#fff;transition:all 0.2s;}"], sc.BLUE_BASE_HEX);
|
|
82
|
+
var StyledSlideImage = _styledComponents.default.div.withConfig({
|
|
83
|
+
displayName: "Video__StyledSlideImage",
|
|
84
|
+
componentId: "sc-13aeehw-4"
|
|
85
|
+
})(["background-size:cover;background-position:center;height:400px;width:100%;@media screen and (max-width:480px){height:250px;}"]);
|
|
86
|
+
exports.StyledSlideImage = StyledSlideImage;
|
|
87
|
+
var Video = function Video(props) {
|
|
88
|
+
var _useState = (0, _react.useState)(props.autoplay),
|
|
89
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
90
|
+
isPlaying = _useState2[0],
|
|
91
|
+
setIsPlaying = _useState2[1];
|
|
92
|
+
var src = props.src,
|
|
93
|
+
poster = props.poster,
|
|
94
|
+
videoStyle = props.videoStyle,
|
|
95
|
+
isCenter = props.isCenter,
|
|
96
|
+
isSmallCard = props.isSmallCard,
|
|
97
|
+
isInvestingExpanded = props.isInvestingExpanded,
|
|
98
|
+
noPlayButton = props.noPlayButton,
|
|
99
|
+
play = props.play,
|
|
100
|
+
prevProps = props.prevProps,
|
|
101
|
+
onOpen = props.onOpen,
|
|
102
|
+
onClose = props.onClose,
|
|
103
|
+
lightboxAnimationLen = props.lightboxAnimationLen,
|
|
104
|
+
videoAnimationLen = props.videoAnimationLen,
|
|
105
|
+
animationLen = props.animationLen,
|
|
106
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
107
|
+
props.lightboxAnimationLen = 550;
|
|
108
|
+
props.videoAnimationLen = 440;
|
|
109
|
+
props.animationLen = props.lightboxAnimationLen + props.videoAnimationLen;
|
|
110
|
+
var mounted = (0, _react.useRef)(); //initializing .current for componentDidUpdate
|
|
111
|
+
|
|
112
|
+
(0, _react.useEffect)(function () {
|
|
113
|
+
if (!mounted.current) {
|
|
114
|
+
// do componentDidMount logic
|
|
115
|
+
mounted.current = true;
|
|
116
|
+
} else {
|
|
117
|
+
// do componentDidUpdate logic
|
|
118
|
+
if (prevProps.play !== play) {
|
|
119
|
+
play ? togglePlay() : toggleStop();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
var togglePlay = function togglePlay() {
|
|
124
|
+
setIsPlaying(true);
|
|
125
|
+
onOpen && onOpen();
|
|
126
|
+
document.body.style.overflow = 'hidden';
|
|
127
|
+
};
|
|
128
|
+
var toggleStop = function toggleStop() {
|
|
129
|
+
setIsPlaying(false);
|
|
130
|
+
onClose && onClose();
|
|
131
|
+
document.body.style.overflow = 'unset';
|
|
132
|
+
};
|
|
133
|
+
delete otherProps.onOpen;
|
|
134
|
+
delete otherProps.onClose;
|
|
135
|
+
return /*#__PURE__*/_react.default.createElement(Wrapper, {
|
|
136
|
+
onClick: !noPlayButton ? _this.togglePlay : function () {},
|
|
137
|
+
videoStyle: videoStyle,
|
|
138
|
+
isInvestingExpanded: isInvestingExpanded
|
|
139
|
+
}, poster && poster, !noPlayButton && /*#__PURE__*/_react.default.createElement(PlayButton, {
|
|
140
|
+
isCenter: isCenter,
|
|
141
|
+
isSmallCard: isSmallCard,
|
|
142
|
+
isInvestingExpanded: isInvestingExpanded
|
|
143
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
144
|
+
alt: "Play video",
|
|
145
|
+
src: require('./img/play-btn.svg')
|
|
146
|
+
})), /*#__PURE__*/_react.default.createElement(_renderToBody.RenderToBody, null, /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.CSSTransition, {
|
|
147
|
+
in: isPlaying,
|
|
148
|
+
timeout: animationLen,
|
|
149
|
+
classNames: "lightbox",
|
|
150
|
+
unmountOnExit: true
|
|
151
|
+
}, /*#__PURE__*/_react.default.createElement(LightboxVideo, {
|
|
152
|
+
isPlaying: isPlaying,
|
|
153
|
+
onClick: toggleStop,
|
|
154
|
+
lightboxAnimationLen: lightboxAnimationLen,
|
|
155
|
+
videoAnimationLen: videoAnimationLen
|
|
156
|
+
}, /*#__PURE__*/_react.default.createElement(CloseButtonContainer, null, /*#__PURE__*/_react.default.createElement(_icons.X, null)), /*#__PURE__*/_react.default.createElement("video", _extends({
|
|
157
|
+
ref: function ref(video) {
|
|
158
|
+
return video && video.play();
|
|
159
|
+
},
|
|
160
|
+
controls: true,
|
|
161
|
+
src: src
|
|
162
|
+
}, otherProps))))));
|
|
163
|
+
};
|
|
164
|
+
exports.Video = Video;
|
|
165
|
+
Video.propTypes = {
|
|
166
|
+
src: _propTypes.default.string.isRequired,
|
|
167
|
+
autoplay: _propTypes.default.bool,
|
|
168
|
+
// Hack to let the component know the default attribute
|
|
169
|
+
poster: _propTypes.default.any,
|
|
170
|
+
onOpen: _propTypes.default.func,
|
|
171
|
+
onClose: _propTypes.default.func
|
|
172
|
+
};
|
|
173
|
+
var _default = Video; //doublecheck: do not know whether this is working, no working storybook to check.
|
|
174
|
+
exports.default = _default;
|