@stokr/components-library 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +89 -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 +110 -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 +36 -0
- package/dist/components/BackButton/BackButton.styles.js +76 -0
- package/dist/components/Background/Background.js +45 -0
- package/dist/components/Background/Background.stories.js +79 -0
- package/dist/components/Background/Background.styles.js +76 -0
- package/dist/components/BarChart/BarChart.js +306 -0
- package/dist/components/BarChart/BarChart.stories.js +71 -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 +64 -0
- package/dist/components/BasicTable/BasicTable.styles.js +52 -0
- package/dist/components/Button/Button.stories.js +80 -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 +46 -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 +88 -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 +93 -0
- package/dist/components/Checkbox/Checkbox.styles.js +45 -0
- package/dist/components/Checklist/UserChecklist.js +298 -0
- package/dist/components/Checklist/UserChecklist.stories.js +352 -0
- package/dist/components/ComponentScroll/ComponentScroll.js +100 -0
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +102 -0
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +66 -0
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +68 -0
- package/dist/components/CryptoAddress/ComponentWrap.js +37 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +187 -0
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +211 -0
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +191 -0
- package/dist/components/CryptoAddress/RadioWrap.js +56 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +54 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +75 -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 +58 -0
- package/dist/components/DonutChart/DonutChart.styles.js +50 -0
- package/dist/components/DoubleButton/DoubleButton.styles.js +22 -0
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +15 -0
- package/dist/components/FAQ/FAQ.js +75 -0
- package/dist/components/FAQ/FAQ.stories.js +75 -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 +55 -0
- package/dist/components/Footer/Footer.styles.js +74 -0
- package/dist/components/Footer/FooterLayout.js +119 -0
- package/dist/components/Footer/FooterLayout.stories.js +32 -0
- package/dist/components/Footer/FooterMenu.js +117 -0
- package/dist/components/Footer/FooterMenu.stories.js +122 -0
- package/dist/components/Footer/FooterMenu.styles.js +80 -0
- package/dist/components/Footer/index.js +27 -0
- package/dist/components/Footer/sicos-logo.svg +1 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +127 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +43 -0
- package/dist/components/Form/Form.js +68 -0
- package/dist/components/Form/Form.stories.js +36 -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 +461 -0
- package/dist/components/Header/Header.stories.js +223 -0
- package/dist/components/Header/Header.styles.js +182 -0
- package/dist/components/Icon/Icon.style.js +71 -0
- package/dist/components/InfoIcon/InfoIcon.js +50 -0
- package/dist/components/InfoIcon/InfoIcon.stories.js +53 -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 +92 -0
- package/dist/components/Input/DatePickerInput.styles.js +29 -0
- package/dist/components/Input/Input.js +125 -0
- package/dist/components/Input/Input.stories.js +149 -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 +86 -0
- package/dist/components/Input/InputPassword.styles.js +80 -0
- package/dist/components/Input/RangeInput.js +97 -0
- package/dist/components/Input/RangeInput.stories.js +62 -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 +143 -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 +138 -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 +57 -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 +63 -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 +71 -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 +52 -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 +66 -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 +34 -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 +63 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +50 -0
- package/dist/components/LoginModal/LoginModal.js +182 -0
- package/dist/components/LoginModal/LoginModal.stories.js +70 -0
- package/dist/components/MainMenu/DynamicMainMenu.js +51 -0
- package/dist/components/MainMenu/MainMenu.js +261 -0
- package/dist/components/MainMenu/MainMenu.styles.js +125 -0
- package/dist/components/MatomoConnect/Matomo.js +490 -0
- package/dist/components/MatomoConnect/Matomo_fuckup.js +387 -0
- package/dist/components/MenuNav/MenuNav.styles.js +42 -0
- package/dist/components/Modal/Modal.js +139 -0
- package/dist/components/Modal/Modal.stories.js +83 -0
- package/dist/components/Modal/Modal.styles.js +142 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.js +48 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +73 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +41 -0
- package/dist/components/Newsletter/Newsletter.js +162 -0
- package/dist/components/Newsletter/Newsletter.stories.js +20 -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 +26 -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 +48 -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 +49 -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 +39 -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 +313 -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 +72 -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 +77 -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 +43 -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 +80 -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 +34 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +16 -0
- package/dist/components/RegisterEthereum/EthAddressLedger.js +226 -0
- package/dist/components/RegisterEthereum/EthAddressMetamask.js +204 -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 +47 -0
- package/dist/components/RequestDataBox/RequestDataBox.js +31 -0
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +41 -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 +73 -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 +64 -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 +53 -0
- package/dist/components/StepsProgress/StepsProgress.js +146 -0
- package/dist/components/StepsProgress/StepsProgress.stories.js +51 -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 +28 -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 +87 -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 +40 -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 +45 -0
- package/dist/components/TabsNav/TabsNav.js +43 -0
- package/dist/components/TabsNav/TabsNav.stories.js +41 -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 +81 -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 +52 -0
- package/dist/components/Text/StyledText.js +19 -0
- package/dist/components/Text/Text.stories.js +75 -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 +189 -0
- package/dist/components/ToDoList/ToDoList.stories.js +138 -0
- package/dist/components/ToDoList/ToDoList.styles.js +83 -0
- package/dist/components/ToDoList/ToDoListTask.js +120 -0
- package/dist/components/ToDoList/ToDoListTask.stories.js +73 -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 +60 -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 +65 -0
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +54 -0
- package/dist/components/TwoFactorModal/TwoFactorModal.js +122 -0
- package/dist/components/breakdown/Breakdown.js +57 -0
- package/dist/components/breakdown/index.js +27 -0
- package/dist/components/context/Auth.js +207 -0
- package/dist/components/context/AuthContext.js +334 -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 +56 -0
- package/dist/components/taxId/complete.js +32 -0
- package/dist/components/taxId/flow.js +71 -0
- package/dist/components/taxId/index.js +27 -0
- package/dist/components/taxId/register-taxid.js +203 -0
- package/dist/components/video/Video.js +174 -0
- package/dist/components/video/Video.stories.js +56 -0
- package/dist/components/video/index.js +27 -0
- package/dist/constants/globalVariables.js +16 -0
- package/dist/constants/style.js +52 -0
- package/dist/index.js +1050 -2
- package/dist/model/axios.js +18 -0
- package/dist/model/axiosPublic.js +18 -0
- package/dist/static/fonts/Ionicons/ionicons.min.css +13 -0
- package/dist/static/fonts/icomoon/selection.json +1 -0
- package/dist/static/fonts/icomoon/style.css +137 -0
- package/dist/static/images/1.svg +4 -0
- package/dist/static/images/2.svg +4 -0
- package/dist/static/images/3.svg +3 -0
- package/dist/static/images/4.svg +3 -0
- package/dist/static/images/Glassess.svg +5 -0
- package/dist/static/images/VerifiedBadge.svg +1 -0
- package/dist/static/images/admin-badge.svg +3 -0
- package/dist/static/images/amazon-logo.png +0 -0
- package/dist/static/images/arrow-down-black.svg +21 -0
- package/dist/static/images/avatar-cog.png +0 -0
- package/dist/static/images/avatar.png +0 -0
- package/dist/static/images/background.png +0 -0
- package/dist/static/images/camera.svg +1 -0
- package/dist/static/images/caps-lock.svg +6 -0
- package/dist/static/images/covers/blockchain.png +0 -0
- package/dist/static/images/covers/country.jpg +0 -0
- package/dist/static/images/covers/ethereum.jpg +0 -0
- package/dist/static/images/covers/index.png +0 -0
- package/dist/static/images/covers/liquid.png +0 -0
- package/dist/static/images/covers/money.png +0 -0
- package/dist/static/images/covers/overview.jpg +0 -0
- package/dist/static/images/covers/risk-questionnaire.jpg +0 -0
- package/dist/static/images/covers/rocket.png +0 -0
- package/dist/static/images/covers/verify-identity.jpg +0 -0
- package/dist/static/images/covers/virtual-iban.jpg +0 -0
- package/dist/static/images/document-back.svg +1 -0
- package/dist/static/images/document-small.svg +1 -0
- package/dist/static/images/document.svg +1 -0
- package/dist/static/images/early-adopter.png +0 -0
- package/dist/static/images/early-adopter.svg +1 -0
- package/dist/static/images/eth.svg +10 -0
- package/dist/static/images/eur.svg +3 -0
- package/dist/static/images/face-scan-icon.svg +1 -0
- package/dist/static/images/favicon.png +0 -0
- package/dist/static/images/favicon.svg +57 -0
- package/dist/static/images/google-logo.png +0 -0
- package/dist/static/images/graduation.png +0 -0
- package/dist/static/images/hdd.png +0 -0
- package/dist/static/images/lemonway.png +0 -0
- package/dist/static/images/logo.svg +1 -0
- package/dist/static/images/member-item-picture.png +0 -0
- package/dist/static/images/one.jpg +0 -0
- package/dist/static/images/passport.svg +1 -0
- package/dist/static/images/process-waiting.gif +0 -0
- package/dist/static/images/profile-picture-placeholder.png +0 -0
- package/dist/static/images/profile-picture-placeholder.svg +1 -0
- package/dist/static/images/profile-picture.png +0 -0
- package/dist/static/images/refresh.svg +9 -0
- package/dist/static/images/shark.jpg +0 -0
- package/dist/static/images/sicos.png +0 -0
- package/dist/static/images/slider/1.jpg +0 -0
- package/dist/static/images/slider/2.jpg +0 -0
- package/dist/static/images/slider/3.jpg +0 -0
- package/dist/static/images/social/facebook.svg +3 -0
- package/dist/static/images/social/linkedin.svg +3 -0
- package/dist/static/images/social/medium.svg +3 -0
- package/dist/static/images/social/reddit.svg +3 -0
- package/dist/static/images/social/telegram.svg +3 -0
- package/dist/static/images/social/twitter.svg +3 -0
- package/dist/static/images/social/youtube.svg +3 -0
- package/dist/static/images/three.jpg +0 -0
- package/dist/static/images/two-sided-document.svg +26 -0
- package/dist/static/images/two.jpg +0 -0
- package/dist/static/images/upload.svg +1 -0
- package/dist/static/images/user-profile.png +0 -0
- package/dist/static/videos/Capybara-with-mandarin orange-on-head.mp4 +0 -0
- package/dist/styles/colors.js +55 -0
- package/dist/styles/fonts.js +34 -0
- package/dist/styles/global.js +18 -0
- package/dist/styles/grid.js +16 -0
- package/dist/styles/reactTippy.js +12 -0
- package/dist/styles/rwd.js +52 -0
- package/dist/styles/semanticUi.js +12 -0
- package/dist/styles/spacing.js +12 -0
- package/dist/styles/theme.js +43 -0
- package/dist/utils/allowed-countries-list.js +1375 -0
- package/dist/utils/breakpoint.js +19 -0
- package/dist/utils/countries-list.js +1008 -0
- package/dist/utils/customHooks.js +54 -0
- package/dist/utils/delete-redirect-cookie-and-navigate.js +20 -0
- package/dist/utils/fix-decimals.js +11 -0
- package/dist/utils/get-cookie-domain.js +16 -0
- package/dist/utils/get-short-address.js +10 -0
- package/dist/utils/km_ify.js +38 -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/dist/utils/withRouter.js +20 -0
- package/package.json +84 -89
- package/.vscode/settings.json +0 -3
- package/CHANGELOG.md +0 -7
- package/Dockerfile +0 -20
- package/buildpushndeploy.sh +0 -9
- package/devops/Dockerfile +0 -20
- package/devops/Jenkinsfile +0 -56
- package/devops/ansible/docker-stack-deploy.yml +0 -32
- package/devops/ansible/hosts.ini +0 -7
- package/devops/docker-compose.yml +0 -25
- package/dist/08418fc6c324f51f7e56.svg +0 -1
- package/dist/76dd0ed9c3f137513fd4.svg +0 -1
- package/dist/index.js.LICENSE.txt +0 -1
- package/docker-compose.yml +0 -25
- package/storybook-static/favicon.ico +0 -0
- /package/dist/{03f9f978feb2b015b6812ba10f689967.png → components/Footer/lemonway.png} +0 -0
- /package/dist/{98b7d3182f652f021bc3.ttf → static/fonts/Ionicons/Ionicons.ttf} +0 -0
- /package/dist/{4e528d6445ca1974c313.woff → static/fonts/Ionicons/Ionicons.woff} +0 -0
- /package/dist/{643c37f102b41f7f90c3.woff2 → static/fonts/Ionicons/Ionicons.woff2} +0 -0
- /package/dist/{9bea22b57dc165ed4382.ttf → static/fonts/OpenSans/OpenSans-Bold.ttf} +0 -0
- /package/dist/{a750292d6a0b5a760679.woff → static/fonts/OpenSans/OpenSans-Bold.woff} +0 -0
- /package/dist/{cbfc24090ef8bacab132.woff2 → static/fonts/OpenSans/OpenSans-Bold.woff2} +0 -0
- /package/dist/{bcb6531cf820152b7538.ttf → static/fonts/OpenSans/OpenSans-ExtraBold.ttf} +0 -0
- /package/dist/{81f3ef07b7952e249da1.woff → static/fonts/OpenSans/OpenSans-ExtraBold.woff} +0 -0
- /package/dist/{21e493d43617de76dbc7.woff2 → static/fonts/OpenSans/OpenSans-ExtraBold.woff2} +0 -0
- /package/dist/{55053cc0a8e6482eca64.ttf → static/fonts/OpenSans/OpenSans-Light.ttf} +0 -0
- /package/dist/{c6a4bc1bd034d6303053.woff → static/fonts/OpenSans/OpenSans-Light.woff} +0 -0
- /package/dist/{179ef2df02cb0b68c9fd.woff2 → static/fonts/OpenSans/OpenSans-Light.woff2} +0 -0
- /package/dist/{d97d7385fe8771611848.ttf → static/fonts/OpenSans/OpenSans-Regular.ttf} +0 -0
- /package/dist/{9ec738fbb66068dc1ca7.woff → static/fonts/OpenSans/OpenSans-Regular.woff} +0 -0
- /package/dist/{3caa0d4f9b7d58668066.woff2 → static/fonts/OpenSans/OpenSans-Regular.woff2} +0 -0
- /package/dist/{d2b1865643b98c0e8b54.ttf → static/fonts/OpenSans/OpenSans-SemiBold.ttf} +0 -0
- /package/dist/{39f5961b2d3eb4aa5bf5.woff → static/fonts/OpenSans/OpenSans-SemiBold.woff} +0 -0
- /package/dist/{311956ded96d3fd2813d.woff2 → static/fonts/OpenSans/OpenSans-SemiBold.woff2} +0 -0
- /package/dist/{2640959b1f9381cde047.eot → static/fonts/icomoon/icomoon.eot} +0 -0
- /package/dist/{07233f511246c9825a0d58e5ab2641f3.svg → static/fonts/icomoon/icomoon.svg} +0 -0
- /package/dist/{a1d7666a48f976227722.ttf → static/fonts/icomoon/icomoon.ttf} +0 -0
- /package/dist/{4c3c428d0ce82f840710.woff → static/fonts/icomoon/icomoon.woff} +0 -0
- /package/dist/{14aa35d4e84aebef77cf00b421fc393a.gif → static/images/address-refreshing.gif} +0 -0
- /package/dist/{2ba2db4ff86a2663686a100e75b50ba9.png → static/images/avatar-placeholder.png} +0 -0
- /package/dist/{b85a961d44cc55c58050cbf7c53dd505.png → static/images/whales.png} +0 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.UserChecklist = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _ToDoList = _interopRequireWildcard(require("../ToDoList/ToDoList"));
|
|
11
|
+
var _globalVariables = require("../../constants/globalVariables");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
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); }
|
|
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(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
var UserChecklist = function UserChecklist(props) {
|
|
23
|
+
var _user$countryObj;
|
|
24
|
+
var _props$user = props.user,
|
|
25
|
+
user = _props$user === void 0 ? {} : _props$user,
|
|
26
|
+
additionalTasks = props.additionalTasks,
|
|
27
|
+
redirectCookie = props.redirectCookie,
|
|
28
|
+
getTasksCount = props.getTasksCount,
|
|
29
|
+
useRelativePath = props.useRelativePath,
|
|
30
|
+
onTaxIdComplete = props.onTaxIdComplete;
|
|
31
|
+
var isFromAllowedCountry = (_user$countryObj = user.countryObj) === null || _user$countryObj === void 0 ? void 0 : _user$countryObj.isAllowed;
|
|
32
|
+
//const isFromAllowedCountry = isFromAllowedCountryFunction(user.country)
|
|
33
|
+
|
|
34
|
+
var _useState = (0, _react.useState)([]),
|
|
35
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
36
|
+
mandatoryTasks = _useState2[0],
|
|
37
|
+
setmandatoryTasks = _useState2[1];
|
|
38
|
+
var _useState3 = (0, _react.useState)(0),
|
|
39
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
40
|
+
mandatoryTasksCount = _useState4[0],
|
|
41
|
+
setmandatoryTasksCount = _useState4[1];
|
|
42
|
+
var _useState5 = (0, _react.useState)([]),
|
|
43
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
44
|
+
walletTasks = _useState6[0],
|
|
45
|
+
setwalletTasks = _useState6[1];
|
|
46
|
+
var _useState7 = (0, _react.useState)(0),
|
|
47
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
48
|
+
walletTasksCount = _useState8[0],
|
|
49
|
+
setwalletTasksCount = _useState8[1];
|
|
50
|
+
var _useState9 = (0, _react.useState)([]),
|
|
51
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
52
|
+
optionalTasks = _useState10[0],
|
|
53
|
+
setoptionalTasks = _useState10[1];
|
|
54
|
+
(0, _react.useEffect)(function () {
|
|
55
|
+
generateTodos(user);
|
|
56
|
+
}, [user]);
|
|
57
|
+
(0, _react.useEffect)(function () {
|
|
58
|
+
//calculate mandatory count from tasks
|
|
59
|
+
if (mandatoryTasks.length > 0) {
|
|
60
|
+
if (isFromAllowedCountry) {
|
|
61
|
+
var _mandatoryTasksCount = mandatoryTasks.reduce(function (count, task) {
|
|
62
|
+
if (task.state === _ToDoList.ToDoTaskState.APPROVED || task.state === _ToDoList.ToDoTaskState.IN_PROGRESS) {
|
|
63
|
+
return count;
|
|
64
|
+
}
|
|
65
|
+
return count + 1;
|
|
66
|
+
}, 0);
|
|
67
|
+
setmandatoryTasksCount(_mandatoryTasksCount);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, [mandatoryTasks, isFromAllowedCountry]);
|
|
71
|
+
(0, _react.useEffect)(function () {
|
|
72
|
+
//calculate wallet count from tasks
|
|
73
|
+
if (walletTasks.length > 0) {
|
|
74
|
+
if (isFromAllowedCountry) {
|
|
75
|
+
var _walletTasksCount = walletTasks.reduce(function (count, task) {
|
|
76
|
+
if (task.title === 'Liquid Address') {
|
|
77
|
+
if (task.state === _ToDoList.ToDoTaskState.APPROVED || task.state === _ToDoList.ToDoTaskState.IN_PROGRESS) {
|
|
78
|
+
return count;
|
|
79
|
+
}
|
|
80
|
+
return count + 1;
|
|
81
|
+
}
|
|
82
|
+
return count;
|
|
83
|
+
}, 0);
|
|
84
|
+
setwalletTasksCount(_walletTasksCount);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, [walletTasks, isFromAllowedCountry]);
|
|
88
|
+
(0, _react.useEffect)(function () {
|
|
89
|
+
//if you provide function to get tasks count, pass the counter into the function
|
|
90
|
+
if (getTasksCount) {
|
|
91
|
+
getTasksCount({
|
|
92
|
+
mandatoryTasksCount: mandatoryTasksCount,
|
|
93
|
+
walletTasksCount: walletTasksCount
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}, [mandatoryTasksCount, walletTasksCount, getTasksCount]);
|
|
97
|
+
var generateTodos = function generateTodos(userData) {
|
|
98
|
+
var country = user.country,
|
|
99
|
+
entity_name = user.entity_name,
|
|
100
|
+
countryObj = user.countryObj,
|
|
101
|
+
is_risk_questionnaire_finished = user.is_risk_questionnaire_finished,
|
|
102
|
+
kyc_status = user.kyc_status,
|
|
103
|
+
_user$wallets = user.wallets,
|
|
104
|
+
wallets = _user$wallets === void 0 ? [] : _user$wallets;
|
|
105
|
+
var liquidWallets = wallets.filter(function (wallet) {
|
|
106
|
+
return wallet.type === _globalVariables.walletTypes.LIQUID;
|
|
107
|
+
}) || [];
|
|
108
|
+
var algoWallets = wallets.filter(function (wallet) {
|
|
109
|
+
return wallet.type === _globalVariables.walletTypes.ALGORAND;
|
|
110
|
+
}) || [];
|
|
111
|
+
var ethWallets = wallets.filter(function (wallet) {
|
|
112
|
+
return wallet.type === _globalVariables.walletTypes.ETHEREUM;
|
|
113
|
+
}) || [];
|
|
114
|
+
var platformURL = useRelativePath === true ? '' : "https://signup.".concat(_globalVariables.platformDomain);
|
|
115
|
+
if (entity_name) {
|
|
116
|
+
setmandatoryTasks([{
|
|
117
|
+
title: 'Verify Identity',
|
|
118
|
+
message: 'You will be contacted by our compliance team dedicated to legal entities.',
|
|
119
|
+
state: _ToDoList.ToDoTaskState.APPROVED
|
|
120
|
+
// link: '',
|
|
121
|
+
}, {
|
|
122
|
+
title: 'Risk Questionnaire',
|
|
123
|
+
message: is_risk_questionnaire_finished ? 'You have read and understood the risks' : 'Read the risks, tick the boxes, ta-da!',
|
|
124
|
+
state: is_risk_questionnaire_finished ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
125
|
+
link: "".concat(platformURL, "/risk-questionnaire")
|
|
126
|
+
}]);
|
|
127
|
+
setwalletTasks([{
|
|
128
|
+
title: 'Liquid Address',
|
|
129
|
+
message: liquidWallets.length > 0 ? 'Your address is registered' : 'Register a Liquid address where you will receive the securities',
|
|
130
|
+
state: liquidWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
131
|
+
link: "".concat(platformURL, "/register-liquid-securities")
|
|
132
|
+
}, {
|
|
133
|
+
title: 'Algorand Address',
|
|
134
|
+
message: algoWallets.length > 0 ? 'Opt-in into more assets' : 'Register an Algorand address and opt-in into a project you want to invest in ',
|
|
135
|
+
state: algoWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
136
|
+
disabled: true,
|
|
137
|
+
tooltip: 'Registering your Algorand address is currently disabled until we have a new offer using the Algorand network.'
|
|
138
|
+
//openModal: ToDoModal.ALGO,
|
|
139
|
+
}, {
|
|
140
|
+
title: 'Ethereum Address',
|
|
141
|
+
message: ethWallets.length > 0 ? 'Your address is registered' : 'Register an Ethereum address where you will receive the securities',
|
|
142
|
+
state: ethWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
143
|
+
//link: '', //`${platformURL}/register-ethereum`,
|
|
144
|
+
disabled: true,
|
|
145
|
+
tooltip: 'Registering your Ethereum address is currently disabled until we have a new offer using the Ethereum network.'
|
|
146
|
+
}]);
|
|
147
|
+
setoptionalTasks([{
|
|
148
|
+
title: 'Tax ID',
|
|
149
|
+
message: !userData.taxId ? 'To invest in certain offerings, you need to provide your tax ID' : userData.taxId && 'You tax ID is submitted',
|
|
150
|
+
state: !userData.taxId ? _ToDoList.ToDoTaskState.SKIPPED : userData.taxId && _ToDoList.ToDoTaskState.APPROVED,
|
|
151
|
+
openModal: _ToDoList.ToDoModal.TAX_ID,
|
|
152
|
+
tooltip: "Some offers require you to provide your Tax ID before being able to invest.\n\nYour tax information will be disclosed to the Luxembourg tax authorities annually for tax compliance purposes required by the Common Reporting Standard implementation."
|
|
153
|
+
}]);
|
|
154
|
+
} else {
|
|
155
|
+
setmandatoryTasks([{
|
|
156
|
+
title: 'Country of Residence',
|
|
157
|
+
message: !country ? 'Please select your country of residence' : !isFromAllowedCountry ? 'STOKR is not yet available where you live' : 'Your country of residence has been registered',
|
|
158
|
+
state: !country ? _ToDoList.ToDoTaskState.SKIPPED : !isFromAllowedCountry ? _ToDoList.ToDoTaskState.DENIED : _ToDoList.ToDoTaskState.APPROVED,
|
|
159
|
+
link: "".concat(platformURL, "/country-of-residence")
|
|
160
|
+
}, {
|
|
161
|
+
title: 'Verify Identity',
|
|
162
|
+
message: getVerifyIdentityChecklist(isFromAllowedCountry, user).message,
|
|
163
|
+
state: getVerifyIdentityChecklist(isFromAllowedCountry, user).state,
|
|
164
|
+
link: getVerifyIdentityChecklist(isFromAllowedCountry, user).hasLink && "".concat(platformURL, "/verify-identity")
|
|
165
|
+
}, {
|
|
166
|
+
title: 'Risk Questionnaire',
|
|
167
|
+
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : is_risk_questionnaire_finished ? 'You have read and understood the risks' : 'Read the risks, tick the boxes, ta-da!',
|
|
168
|
+
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : is_risk_questionnaire_finished ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
169
|
+
link: isFromAllowedCountry && "".concat(platformURL, "/risk-questionnaire")
|
|
170
|
+
}]);
|
|
171
|
+
setwalletTasks([{
|
|
172
|
+
title: 'Liquid Address',
|
|
173
|
+
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : liquidWallets.length > 0 ? 'Your address is registered' : 'Register a Liquid address where you will receive the securities',
|
|
174
|
+
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : liquidWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
175
|
+
link: isFromAllowedCountry && "".concat(platformURL, "/register-liquid-securities")
|
|
176
|
+
}, {
|
|
177
|
+
title: 'Algorand Address',
|
|
178
|
+
message: algoWallets.length > 0 ? 'Opt-in into more assets' : 'Register an Algorand address and opt-in into a project you want to invest in ',
|
|
179
|
+
state: algoWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
180
|
+
// openModal: ToDoModal.ALGO,
|
|
181
|
+
disabled: true,
|
|
182
|
+
tooltip: 'Registering your Algorand address is currently disabled until we have a new offer using the Algorand network.'
|
|
183
|
+
//link: '',
|
|
184
|
+
}, {
|
|
185
|
+
title: 'Ethereum Address',
|
|
186
|
+
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : ethWallets.length > 0 ? 'Your address is registered' : 'Register an Ethereum address where you will receive the securities',
|
|
187
|
+
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : ethWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
188
|
+
disabled: true,
|
|
189
|
+
tooltip: 'Registering your Ethereum address is currently disabled until we have a new offer using the Ethereum network.'
|
|
190
|
+
}]);
|
|
191
|
+
var optionalTasks = [{
|
|
192
|
+
title: 'Tax ID',
|
|
193
|
+
message: !userData.taxId ? 'To invest in certain offerings, you need to provide your tax ID' : userData.taxId && 'You tax ID is submitted',
|
|
194
|
+
state: !userData.taxId ? _ToDoList.ToDoTaskState.SKIPPED : userData.taxId && _ToDoList.ToDoTaskState.APPROVED,
|
|
195
|
+
openModal: _ToDoList.ToDoModal.TAX_ID,
|
|
196
|
+
tooltip: "Some offers require you to provide your Tax ID before being able to invest.\n\nYour tax information will be disclosed to the Luxembourg tax authorities annually for tax compliance purposes required by the Common Reporting Standard implementation."
|
|
197
|
+
}];
|
|
198
|
+
if (countryObj !== null && countryObj !== void 0 && countryObj.SEPA) {
|
|
199
|
+
//add an item at first place
|
|
200
|
+
//only if the user is from a SEPA country
|
|
201
|
+
optionalTasks.splice(0, 0, {
|
|
202
|
+
title: 'Invest in Euro',
|
|
203
|
+
message: getInvestInEuroChecklist(isFromAllowedCountry, user).message,
|
|
204
|
+
state: getInvestInEuroChecklist(isFromAllowedCountry, user).state,
|
|
205
|
+
link: isFromAllowedCountry && kyc_status && kyc_status !== 'Draft' && "".concat(platformURL, "/verify-identity")
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
setoptionalTasks(optionalTasks);
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
return /*#__PURE__*/_react.default.createElement(_ToDoList.default, _extends({}, props, {
|
|
212
|
+
mandatoryTasks: mandatoryTasks,
|
|
213
|
+
walletsTasks: walletTasks,
|
|
214
|
+
optionalTasks: optionalTasks,
|
|
215
|
+
additionalTasks: additionalTasks,
|
|
216
|
+
redirectCookie: redirectCookie,
|
|
217
|
+
mandatoryTasksCount: mandatoryTasksCount,
|
|
218
|
+
walletsTasksCount: walletTasksCount,
|
|
219
|
+
pendingTasksCount: mandatoryTasksCount + walletTasksCount
|
|
220
|
+
}));
|
|
221
|
+
};
|
|
222
|
+
exports.UserChecklist = UserChecklist;
|
|
223
|
+
var getVerifyIdentityChecklist = function getVerifyIdentityChecklist(isFromAllowedCountry, user) {
|
|
224
|
+
var kyc_status = user.kyc_status;
|
|
225
|
+
var message;
|
|
226
|
+
var state;
|
|
227
|
+
var hasLink = false;
|
|
228
|
+
if (!isFromAllowedCountry) {
|
|
229
|
+
message = 'Sorry, you are living in a country where this is not available';
|
|
230
|
+
state = _ToDoList.ToDoTaskState.NOT_AVAILABLE;
|
|
231
|
+
} else if (!kyc_status || kyc_status.toUpperCase() === 'DRAFT') {
|
|
232
|
+
message = 'Scan your ID to get the green light from the anti-fraud squad';
|
|
233
|
+
state = _ToDoList.ToDoTaskState.SKIPPED;
|
|
234
|
+
hasLink = true;
|
|
235
|
+
} else if (kyc_status.toUpperCase() === 'REJECTED' || kyc_status.toUpperCase() === 'ESCALATED' || kyc_status.toUpperCase() === 'IN PROGRESS' || kyc_status.toUpperCase() === 'INCONCLUSIVE' || kyc_status.toUpperCase() === 'APPROVED' || kyc_status.toUpperCase() === 'PENDING') {
|
|
236
|
+
message = 'Our anti-fraud squad is still working';
|
|
237
|
+
state = _ToDoList.ToDoTaskState.IN_PROGRESS;
|
|
238
|
+
} else if (kyc_status.toUpperCase() === 'ACCEPTED') {
|
|
239
|
+
message = 'Your ID is verified';
|
|
240
|
+
state = _ToDoList.ToDoTaskState.APPROVED;
|
|
241
|
+
} else if (kyc_status.toUpperCase() === 'REAPPLY') {
|
|
242
|
+
message = 'Document unreadable. Reapply with new ID';
|
|
243
|
+
state = _ToDoList.ToDoTaskState.DENIED;
|
|
244
|
+
hasLink = true;
|
|
245
|
+
} else if (kyc_status.toUpperCase() === 'DENIED') {
|
|
246
|
+
message = 'There seems to be a problem. The compliance team will contact you.';
|
|
247
|
+
state = _ToDoList.ToDoTaskState.DENIED;
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
message: message,
|
|
251
|
+
state: state,
|
|
252
|
+
hasLink: hasLink
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
var getInvestInEuroChecklist = function getInvestInEuroChecklist(isFromAllowedCountry, user) {
|
|
256
|
+
var _KYCDocuments$status, _KYCDocuments$status2, _KYCDocuments$status3;
|
|
257
|
+
var kyc_status = user.kyc_status,
|
|
258
|
+
KYCDocuments = user.KYCDocuments,
|
|
259
|
+
lemonwayWallet = user.lemonwayWallet;
|
|
260
|
+
var message;
|
|
261
|
+
var state;
|
|
262
|
+
if (!isFromAllowedCountry) {
|
|
263
|
+
message = 'Sorry, you are living in a country where this is not available';
|
|
264
|
+
state = _ToDoList.ToDoTaskState.NOT_AVAILABLE;
|
|
265
|
+
} else if ((lemonwayWallet === null || lemonwayWallet === void 0 ? void 0 : lemonwayWallet.STATUS) === '6') {
|
|
266
|
+
message = 'Your document is verified';
|
|
267
|
+
state = _ToDoList.ToDoTaskState.APPROVED;
|
|
268
|
+
} else if ((lemonwayWallet === null || lemonwayWallet === void 0 ? void 0 : lemonwayWallet.STATUS) === '3') {
|
|
269
|
+
message = 'There seems to be a problem. The compliance team will contact you';
|
|
270
|
+
state = _ToDoList.ToDoTaskState.DENIED;
|
|
271
|
+
} else if (!kyc_status || kyc_status.toUpperCase() === 'DRAFT') {
|
|
272
|
+
message = 'In order to pay in EURO you need to verify your identity and provide a second identity document';
|
|
273
|
+
state = _ToDoList.ToDoTaskState.NOT_AVAILABLE;
|
|
274
|
+
} else if (!KYCDocuments || (kyc_status === null || kyc_status === void 0 ? void 0 : kyc_status.toUpperCase()) === 'ACCEPTED') {
|
|
275
|
+
message = 'In order to pay in EURO you need to provide a second identity document';
|
|
276
|
+
state = _ToDoList.ToDoTaskState.SKIPPED;
|
|
277
|
+
} else if (((_KYCDocuments$status = KYCDocuments.status) === null || _KYCDocuments$status === void 0 ? void 0 : _KYCDocuments$status.toUpperCase()) === 'PENDING' || ((_KYCDocuments$status2 = KYCDocuments.status) === null || _KYCDocuments$status2 === void 0 ? void 0 : _KYCDocuments$status2.toUpperCase()) === 'APPROVED' && !lemonwayWallet || (lemonwayWallet === null || lemonwayWallet === void 0 ? void 0 : lemonwayWallet.STATUS) === '5') {
|
|
278
|
+
message = 'The Lemonway team is having a look. This usually takes up to 24 hours';
|
|
279
|
+
state = _ToDoList.ToDoTaskState.IN_PROGRESS;
|
|
280
|
+
} else if (((_KYCDocuments$status3 = KYCDocuments.status) === null || _KYCDocuments$status3 === void 0 ? void 0 : _KYCDocuments$status3.toUpperCase()) === 'REJECTED') {
|
|
281
|
+
message = 'It seems there was a problem with your second identity document. Please try again or contact the compliance team at compliance@stokr.io';
|
|
282
|
+
state = _ToDoList.ToDoTaskState.DENIED;
|
|
283
|
+
}
|
|
284
|
+
return {
|
|
285
|
+
message: message,
|
|
286
|
+
state: state
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
UserChecklist.propTypes = {
|
|
290
|
+
user: _propTypes.default.object.isRequired,
|
|
291
|
+
additionalTasks: _propTypes.default.any,
|
|
292
|
+
redirectCookie: _propTypes.default.bool,
|
|
293
|
+
getTasksCount: _propTypes.default.func,
|
|
294
|
+
useRelativePath: _propTypes.default.bool,
|
|
295
|
+
onTaxIdComplete: _propTypes.default.func
|
|
296
|
+
};
|
|
297
|
+
var _default = UserChecklist;
|
|
298
|
+
exports.default = _default;
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.UserChecklist_user_dev_entity = exports.UserChecklist_user_dev = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactRouterDom = require("react-router-dom");
|
|
9
|
+
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
+
var _UserChecklist = _interopRequireDefault(require("./UserChecklist"));
|
|
11
|
+
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
+
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; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
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); }
|
|
19
|
+
var _default = {
|
|
20
|
+
title: 'Components Library/Checklist',
|
|
21
|
+
component: _UserChecklist.default,
|
|
22
|
+
argTypes: {
|
|
23
|
+
user: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
defaultValue: {},
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
28
|
+
additionalTasks: {
|
|
29
|
+
type: 'node',
|
|
30
|
+
defaultValue: null
|
|
31
|
+
},
|
|
32
|
+
redirectCookie: {
|
|
33
|
+
type: 'bool',
|
|
34
|
+
defaultValue: false
|
|
35
|
+
},
|
|
36
|
+
useRelativePath: {
|
|
37
|
+
type: 'bool',
|
|
38
|
+
defaultValue: false
|
|
39
|
+
},
|
|
40
|
+
onTaxIdComplete: {
|
|
41
|
+
type: 'function',
|
|
42
|
+
action: 'onTaxIdComplete'
|
|
43
|
+
},
|
|
44
|
+
getTasksCount: {
|
|
45
|
+
type: 'function',
|
|
46
|
+
action: 'getTasksCount'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.default = _default;
|
|
51
|
+
var Template = function Template(args) {
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_UserChecklist.default, args)));
|
|
53
|
+
};
|
|
54
|
+
var userDev = {
|
|
55
|
+
_id: '61851acd5b9a890013297b12',
|
|
56
|
+
email: 'user-dev@email.com',
|
|
57
|
+
user_type: 'investor',
|
|
58
|
+
name: 'bilal',
|
|
59
|
+
lastname: 'dev',
|
|
60
|
+
username: 'user-dev',
|
|
61
|
+
entity_name: '',
|
|
62
|
+
active: true,
|
|
63
|
+
country: 'Germany',
|
|
64
|
+
//is_risk_questionnaire_finished: true,
|
|
65
|
+
kyc_status: 'Accepted',
|
|
66
|
+
investor_algo_addresses: [{
|
|
67
|
+
name: 'another test',
|
|
68
|
+
address: 'TVNC3QHY5LXKBMX7RGJG3B25EJPW73V5WMMEMUB33V2HEPEA2H77UPOYTQ',
|
|
69
|
+
whitelistedAssets: ['20918100']
|
|
70
|
+
}, {
|
|
71
|
+
name: 'my algo test',
|
|
72
|
+
address: 'YFQD2RZIIZQSO67F6MG3DJVXLMF2QU4EKGBPVXVIF3XTLKGWUZ36WMG56A',
|
|
73
|
+
whitelistedAssets: ['20918100', '20013569', '92363258']
|
|
74
|
+
}, {
|
|
75
|
+
name: 'test algosigner',
|
|
76
|
+
address: 'Y4UGMCSV3B43Y7QAM2VUVPETDDO5JVHDRB3ZC5MBF2VTUTCP4X437A65JU',
|
|
77
|
+
whitelistedAssets: ['20918100', '20013569', '92363258']
|
|
78
|
+
}, {
|
|
79
|
+
name: 'test new address',
|
|
80
|
+
address: 'B36KBEDYKBUSEMNRITZFFE7VINEPMP5MJTNUCRM5S5AP6GNWMWW4B5PEQI',
|
|
81
|
+
whitelistedAssets: ['20918100', '92363258']
|
|
82
|
+
}, {
|
|
83
|
+
address: 'E3Q6B5Q7JHFCEWBGGXJGEMXVAL6MSJBUHCGURZRMASRTJFDD6RQTJHPF4A',
|
|
84
|
+
whitelistedAssets: ['20918100', '20013569']
|
|
85
|
+
}, {
|
|
86
|
+
name: 'test 30/05',
|
|
87
|
+
address: 'RTQWXHRWZCBT5FF474T4DTL3VRVHERY3Q6LWLMPP24IXNOYIXBDQXJ2Z6M',
|
|
88
|
+
whitelistedAssets: ['20918100']
|
|
89
|
+
}, {
|
|
90
|
+
name: 'test info 01/06',
|
|
91
|
+
address: 'U4EIZEMPRGC77P6HJSFCLWYE4NUMNILU5DBZCKV44QMJ3TQOADRETVVAZU',
|
|
92
|
+
whitelistedAssets: ['20918100', '92363258']
|
|
93
|
+
}],
|
|
94
|
+
wallets: [{
|
|
95
|
+
_id: '641dd681b08b7543f433af1e',
|
|
96
|
+
userId: '61851acd5b9a890013297b12',
|
|
97
|
+
type: 'liquid',
|
|
98
|
+
address: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
99
|
+
name: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
100
|
+
createdAt: '2021-11-19T16:19:33.390Z',
|
|
101
|
+
isPrimary: true
|
|
102
|
+
}, {
|
|
103
|
+
_id: '641dd681b08b7543f433af1f',
|
|
104
|
+
userId: '61851acd5b9a890013297b12',
|
|
105
|
+
type: 'liquid',
|
|
106
|
+
address: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
107
|
+
assetIds: ['2812e39a-ad94-4368-9db4-9d98c1c00f38'],
|
|
108
|
+
liquidAccount: 'infinite-fleet',
|
|
109
|
+
registered_user: 6020,
|
|
110
|
+
name: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
111
|
+
createdAt: '2021-11-19T16:19:33.390Z',
|
|
112
|
+
isPrimary: true
|
|
113
|
+
}, {
|
|
114
|
+
_id: '641dd681b08b7543f433af20',
|
|
115
|
+
userId: '61851acd5b9a890013297b12',
|
|
116
|
+
type: 'liquid',
|
|
117
|
+
address: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
118
|
+
assetIds: ['35c3c8ed-59a3-4a87-9612-b48236aeab3b'],
|
|
119
|
+
liquidAccount: 'blockstream',
|
|
120
|
+
registered_user: 273,
|
|
121
|
+
name: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
122
|
+
createdAt: '2021-11-19T16:19:33.390Z',
|
|
123
|
+
isPrimary: true
|
|
124
|
+
}],
|
|
125
|
+
liquid_network: {
|
|
126
|
+
GAID: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
127
|
+
dt: '2021-11-19T16:19:33.390Z',
|
|
128
|
+
'2812e39a-ad94-4368-9db4-9d98c1c00f38': {
|
|
129
|
+
id: 6020,
|
|
130
|
+
GAID: 'GA2wpGUWe8uDz9VEdNXJ5v17UwD25f',
|
|
131
|
+
is_company: false,
|
|
132
|
+
name: '61851acd5b9a890013297b12',
|
|
133
|
+
categories: [3],
|
|
134
|
+
creator: 22,
|
|
135
|
+
whitelisted_gaids: ['GA2wpGUWe8uDz9VEdNXJ5v17UwD25f']
|
|
136
|
+
},
|
|
137
|
+
whitelisted_gaids: ['GA2wpGUWe8uDz9VEdNXJ5v17UwD25f', 'GA2skwb5v5nKaaAKNd61knuRJC47Jr', 'GA2skwb5v5nKaaAKNd61knuRJC47Jr'],
|
|
138
|
+
'35c3c8ed-59a3-4a87-9612-b48236aeab3b': {
|
|
139
|
+
id: 273,
|
|
140
|
+
GAID: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
141
|
+
is_company: false,
|
|
142
|
+
name: '61851acd5b9a890013297b12',
|
|
143
|
+
categories: [24],
|
|
144
|
+
creator: 62,
|
|
145
|
+
whitelisted_gaids: ['GA2skwb5v5nKaaAKNd61knuRJC47Jr']
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
pass_reset: '',
|
|
149
|
+
//taxId: '4355',
|
|
150
|
+
countryObj: {
|
|
151
|
+
_id: '630e0361b8d1fb0007929bc4',
|
|
152
|
+
name: 'Germany',
|
|
153
|
+
ISO2: 'DE',
|
|
154
|
+
ISO3: 'DEU',
|
|
155
|
+
isAllowed: true,
|
|
156
|
+
SEPA: true,
|
|
157
|
+
'infinite-fleet': true,
|
|
158
|
+
'la-boulangerie': true
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
var userStaging = {
|
|
162
|
+
_id: '5e3571e222143e0016516946',
|
|
163
|
+
name: '',
|
|
164
|
+
lastname: ' ',
|
|
165
|
+
user_type: 'investor',
|
|
166
|
+
email: 'lukas@stokr.io',
|
|
167
|
+
hashedPassword: '98701a2450ab7d365ba1b39a437db25ac8b658d1',
|
|
168
|
+
activate_token: '',
|
|
169
|
+
active: true,
|
|
170
|
+
company: null,
|
|
171
|
+
fa2: false,
|
|
172
|
+
entity_name: '',
|
|
173
|
+
username: 'lukas3567478hkg',
|
|
174
|
+
country: 'Canada',
|
|
175
|
+
kyc_status: 'Accepted',
|
|
176
|
+
KYCDocuments: {
|
|
177
|
+
libId: 'bec16caf-2967-4199-a160-fd3874ba5a6d',
|
|
178
|
+
fileId: 'a20cb676-6a29-4d19-8406-6db276218f64',
|
|
179
|
+
id: 'a20cb676-6a29-4d19-8406-6db276218f64',
|
|
180
|
+
contentType: 'application/pdf',
|
|
181
|
+
name: '2',
|
|
182
|
+
filename: '8f77bda4bb318ad2532853a5b22d43f31637148577350.pdf',
|
|
183
|
+
links: [{
|
|
184
|
+
type: 'Library',
|
|
185
|
+
id: 'bec16caf-2967-4199-a160-fd3874ba5a6d'
|
|
186
|
+
}],
|
|
187
|
+
docType: '1',
|
|
188
|
+
fileid: 'a20cb676-6a29-4d19-8406-6db276218f64',
|
|
189
|
+
status: 'Pending',
|
|
190
|
+
dt: '2023-01-06T10:45:54.142Z'
|
|
191
|
+
},
|
|
192
|
+
investor_eth_addresses: [{
|
|
193
|
+
name: 'Test',
|
|
194
|
+
address: '0x6d78f66d27f6979be13347f5c1c95facc395dfea'
|
|
195
|
+
}, {
|
|
196
|
+
name: '6aa',
|
|
197
|
+
address: '0x6aa5a27132f2a828350e06fb20e04e7e5e205e9a'
|
|
198
|
+
}, {
|
|
199
|
+
name: '8908',
|
|
200
|
+
address: '0x3b5101257201b4a31a90c025eb57a41ea0ce46f4'
|
|
201
|
+
}, {
|
|
202
|
+
name: 'f7',
|
|
203
|
+
address: '0xf711a3529eb53a6375f10c0bbb4646081ffcdc48'
|
|
204
|
+
}, {
|
|
205
|
+
name: 'kghf',
|
|
206
|
+
address: '0x8f02dde046cdfecccf068a39a7c3844e49f5e33d'
|
|
207
|
+
}],
|
|
208
|
+
is_risk_questionnaire_finished: true,
|
|
209
|
+
lemonwayWallet: {
|
|
210
|
+
ID: '5e3571e222143e0016516946',
|
|
211
|
+
STATUS: '6',
|
|
212
|
+
poa_fileid: '42',
|
|
213
|
+
passport_fileid: '24',
|
|
214
|
+
dt: '2020-02-05T13:33:04.705Z'
|
|
215
|
+
},
|
|
216
|
+
liquid_network: {
|
|
217
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
218
|
+
dt: '2021-10-12T07:59:24.256Z',
|
|
219
|
+
id: null,
|
|
220
|
+
is_company: null,
|
|
221
|
+
name: null,
|
|
222
|
+
categories: null,
|
|
223
|
+
creator: null,
|
|
224
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ', 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ', 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ'],
|
|
225
|
+
'73491f31-80c0-4f81-90cf-45a0beb8a458': {
|
|
226
|
+
id: 510,
|
|
227
|
+
categories: [25],
|
|
228
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
229
|
+
is_company: false,
|
|
230
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ']
|
|
231
|
+
},
|
|
232
|
+
'f5197b40-2220-4d31-8752-16dc79cec9f2': {
|
|
233
|
+
id: 178,
|
|
234
|
+
categories: [null],
|
|
235
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ'],
|
|
236
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
237
|
+
creator: 33
|
|
238
|
+
},
|
|
239
|
+
'2812e39a-ad94-4368-9db4-9d98c1c00f38': {
|
|
240
|
+
id: 121,
|
|
241
|
+
categories: [3],
|
|
242
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
243
|
+
is_company: false,
|
|
244
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ']
|
|
245
|
+
},
|
|
246
|
+
'3fc1284a-e2fa-41a7-8a88-d6932e436120': {
|
|
247
|
+
id: 510,
|
|
248
|
+
categories: [44],
|
|
249
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
250
|
+
is_company: false,
|
|
251
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ']
|
|
252
|
+
},
|
|
253
|
+
'35c3c8ed-59a3-4a87-9612-b48236aeab3b': {
|
|
254
|
+
id: 1305,
|
|
255
|
+
categories: [24],
|
|
256
|
+
GAID: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
257
|
+
is_company: false,
|
|
258
|
+
whitelisted_gaids: ['GAvqQSMd9PpUqkPzKN2CvRzMihBYJ']
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
notificationSent: false,
|
|
262
|
+
investor_algo_addresses: [{
|
|
263
|
+
name: '1234',
|
|
264
|
+
address: 'FNM3FMLCFU3YSX7RINUCJD6LU6XSCBARUS47RFZ47MFDLN7VTOJEMZF3AE',
|
|
265
|
+
whitelistedAssets: ['20918100', '97457378']
|
|
266
|
+
}, {
|
|
267
|
+
name: '12341234',
|
|
268
|
+
address: 'ZKPNVQ4B3LZ2H4YXJXHNCVALCOOQP6DFLBU5HW65S3M7RGV757P63K72K4'
|
|
269
|
+
}, {
|
|
270
|
+
name: 'Lukas Test',
|
|
271
|
+
address: '7K7WKUEUCE2AWDGQG45JVHUDKNHYKWMHII6C2ULV4PO4OR5WZP74J2NHJA',
|
|
272
|
+
whitelistedAssets: ['97457378']
|
|
273
|
+
}, {
|
|
274
|
+
name: 'Test Lukas',
|
|
275
|
+
address: 'WMQDAPWWVPZVCGOXCMUV6TZMOWYR24AY5FD6BUP6KXUOXHZ5JCK4ZWN2LM',
|
|
276
|
+
whitelistedAssets: ['92363258', '97457378']
|
|
277
|
+
}],
|
|
278
|
+
// countryObj: {
|
|
279
|
+
// _id: '63c6817057bd250006b111ab',
|
|
280
|
+
// name: 'Canada',
|
|
281
|
+
// ISO2: 'CA',
|
|
282
|
+
// ISO3: 'CAN',
|
|
283
|
+
// isAllowed: true,
|
|
284
|
+
// signUpWarning: true,
|
|
285
|
+
// 'blockstream-mining': true,
|
|
286
|
+
// },
|
|
287
|
+
wallets: [{
|
|
288
|
+
_id: '6446a691d4a3e282ab0986ea',
|
|
289
|
+
userId: '5e3571e222143e0016516946',
|
|
290
|
+
type: 'liquid',
|
|
291
|
+
address: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
292
|
+
name: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
293
|
+
createdAt: '2021-10-12T07:59:24.256Z',
|
|
294
|
+
isPrimary: true
|
|
295
|
+
}, {
|
|
296
|
+
_id: '6446a691d4a3e282ab0986eb',
|
|
297
|
+
userId: '5e3571e222143e0016516946',
|
|
298
|
+
type: 'liquid',
|
|
299
|
+
address: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
300
|
+
assetIds: ['2812e39a-ad94-4368-9db4-9d98c1c00f38'],
|
|
301
|
+
liquidAccount: 'infinite-fleet',
|
|
302
|
+
registered_user: 121,
|
|
303
|
+
name: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
304
|
+
createdAt: '2021-10-12T07:59:24.256Z',
|
|
305
|
+
isPrimary: true
|
|
306
|
+
}, {
|
|
307
|
+
_id: '6446a691d4a3e282ab0986ec',
|
|
308
|
+
userId: '5e3571e222143e0016516946',
|
|
309
|
+
type: 'liquid',
|
|
310
|
+
address: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
311
|
+
assetIds: ['73491f31-80c0-4f81-90cf-45a0beb8a458', 'f5197b40-2220-4d31-8752-16dc79cec9f2'],
|
|
312
|
+
liquidAccount: 'stokr',
|
|
313
|
+
registered_user: 510,
|
|
314
|
+
name: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
315
|
+
createdAt: '2021-10-12T07:59:24.256Z',
|
|
316
|
+
isPrimary: true
|
|
317
|
+
}, {
|
|
318
|
+
_id: '6446a691d4a3e282ab0986ed',
|
|
319
|
+
userId: '5e3571e222143e0016516946',
|
|
320
|
+
type: 'liquid',
|
|
321
|
+
address: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
322
|
+
assetIds: ['35c3c8ed-59a3-4a87-9612-b48236aeab3b'],
|
|
323
|
+
liquidAccount: 'blockstream',
|
|
324
|
+
registered_user: 1305,
|
|
325
|
+
name: 'GAvqQSMd9PpUqkPzKN2CvRzMihBYJ',
|
|
326
|
+
createdAt: '2021-10-12T07:59:24.256Z',
|
|
327
|
+
isPrimary: true
|
|
328
|
+
}]
|
|
329
|
+
};
|
|
330
|
+
var UserChecklist_user_dev = Template.bind({});
|
|
331
|
+
exports.UserChecklist_user_dev = UserChecklist_user_dev;
|
|
332
|
+
UserChecklist_user_dev.args = {
|
|
333
|
+
user: userDev,
|
|
334
|
+
useRelativePath: true,
|
|
335
|
+
getTasksCount: function getTasksCount(data) {
|
|
336
|
+
// console.log(data)
|
|
337
|
+
},
|
|
338
|
+
onTaxIdComplete: function onTaxIdComplete(data) {
|
|
339
|
+
console.log('complete tax ID');
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
var UserChecklist_user_dev_entity = Template.bind({});
|
|
343
|
+
exports.UserChecklist_user_dev_entity = UserChecklist_user_dev_entity;
|
|
344
|
+
UserChecklist_user_dev_entity.args = {
|
|
345
|
+
user: _objectSpread(_objectSpread({}, userDev), {}, {
|
|
346
|
+
entity_name: 'test'
|
|
347
|
+
}),
|
|
348
|
+
useRelativePath: true,
|
|
349
|
+
getTasksCount: function getTasksCount(data) {
|
|
350
|
+
console.log(data);
|
|
351
|
+
}
|
|
352
|
+
};
|