@stokr/components-library 3.0.16 → 3.0.18
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/README.md +261 -262
- package/dist/analytics/index.js +180 -0
- package/dist/api/auth.js +15 -0
- package/dist/api/fetchData.js +27 -0
- package/dist/api/fetchDataPublic.js +19 -0
- package/dist/auth/index.js +32 -0
- package/dist/components/2FA/Connect2FA.js +55 -0
- package/dist/components/2FA/EnterCode.js +63 -0
- package/dist/components/2FA/InstallAuthApp.js +64 -0
- package/dist/components/2FA/ResetCode.js +33 -0
- package/dist/components/2FA/Sucess2FA.js +51 -0
- package/dist/components/2FA/disable-2fa-flow.js +91 -0
- package/dist/components/2FA/enable-2fa-flow.js +137 -0
- package/dist/components/2FA/login-with-otp-flow.js +206 -0
- package/dist/components/2FA/main-flow.js +217 -0
- package/dist/components/AccountBalance/AccountBalance.js +35 -0
- package/dist/components/AccountBalance/AccountBalance.styles.js +48 -0
- package/dist/components/AdminDashboard/Table/ReactTable.js +266 -0
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +65 -0
- package/dist/components/AdminDashboard/Table/Table.js +123 -0
- package/dist/components/AdminDashboard/Table/Table.styles.js +263 -0
- package/dist/components/AgreementItem/AgreementItem.js +39 -0
- package/dist/components/AgreementItem/AgreementItem.styles.js +32 -0
- package/dist/components/BackButton/BackButton.js +34 -0
- package/dist/components/BackButton/BackButton.styles.js +123 -0
- package/dist/components/Background/Background.js +45 -0
- package/dist/components/Background/Background.styles.js +119 -0
- package/dist/components/BasicTable/BasicTable.js +25 -0
- package/dist/components/BasicTable/BasicTable.styles.js +76 -0
- package/dist/components/BlogPost/BlogPost.js +98 -0
- package/dist/components/BlogPost/BlogPost.styles.js +230 -0
- package/dist/components/Button/Button.styles.js +207 -0
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +51 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +18 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +41 -0
- package/dist/components/Card/Card.styles.js +97 -0
- package/dist/components/ChartLegend/ChartLegend.js +62 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +133 -0
- package/dist/components/Checkbox/Checkbox.js +80 -0
- package/dist/components/Checkbox/Checkbox.styles.js +133 -0
- package/dist/components/Checklist/ChecklistCard.js +71 -0
- package/dist/components/Checklist/ChecklistCard.styles.js +82 -0
- package/dist/components/Chips/Chip.js +23 -0
- package/dist/components/Chips/Chip.styles.js +72 -0
- package/dist/components/Chips/ChipWrapper.js +50 -0
- package/dist/components/ComponentScroll/ComponentScroll.js +70 -0
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +127 -0
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +165 -0
- package/dist/components/ConfirmModal/ConfirmModal.js +199 -0
- package/dist/components/ConfirmModal/ConfirmModal.styles.js +44 -0
- package/dist/components/CryptoAddress/ComponentWrap.js +16 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +151 -0
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +443 -0
- package/dist/components/CryptoAddress/RadioWrap.js +47 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +34 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +125 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +25 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +111 -0
- package/dist/components/DoubleButton/DoubleButton.styles.js +27 -0
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +9 -0
- package/dist/components/FAQ/FAQ.js +73 -0
- package/dist/components/FAQ/FAQ.styles.js +128 -0
- package/dist/components/Footer/Footer.js +55 -0
- package/dist/components/Footer/Footer.styles.js +256 -0
- package/dist/components/Footer/FooterLayout.js +145 -0
- package/dist/components/Footer/FooterMenu.js +100 -0
- package/dist/components/Footer/FooterMenu.styles.js +321 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +100 -0
- package/dist/components/Form/Form.js +21 -0
- package/dist/components/Form/Form.styles.js +72 -0
- package/dist/components/Grid/Grid.styles.js +212 -0
- package/dist/components/Header/Header.js +425 -0
- package/dist/components/Header/Header.styles.js +567 -0
- package/dist/components/HeroBlock/HeroVideoBlock.js +105 -0
- package/dist/components/Icon/Icon.style.js +92 -0
- package/dist/components/Icon/Icon2.js +12 -0
- package/dist/components/InfoBox/InfoBox.js +93 -0
- package/dist/components/InfoIcon/InfoIcon.js +62 -0
- package/dist/components/InfoIcon/InfoIcon.styles.js +64 -0
- package/dist/components/Input/DatePickerInput.js +139 -0
- package/dist/components/Input/DatePickerInput.styles.js +165 -0
- package/dist/components/Input/Input.js +108 -0
- package/dist/components/Input/Input.styles.js +154 -0
- package/dist/components/Input/InputPassword.js +122 -0
- package/dist/components/Input/InputPassword.styles.js +166 -0
- package/dist/components/Input/InputUsername.js +92 -0
- package/dist/components/Input/InputWithButton.js +53 -0
- package/dist/components/Input/InputWithButton.styles.js +57 -0
- package/dist/components/Input/MultiSelect.js +306 -0
- package/dist/components/Input/OtpInput.js +70 -0
- package/dist/components/Input/RangeInput.js +80 -0
- package/dist/components/Input/RangeInput.styles.js +129 -0
- package/dist/components/Input/SearchInput.js +68 -0
- package/dist/components/Input/SearchInput.styles.js +92 -0
- package/dist/components/Input/Select.js +151 -0
- package/dist/components/Input/Select.styles.js +148 -0
- package/dist/components/Input/TableFilterDropdown.js +247 -0
- package/dist/components/Input/Textarea.js +51 -0
- package/dist/components/Input/Textarea.styles.js +62 -0
- package/dist/components/InvestCalculator/InvestCalculator.js +283 -0
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +94 -0
- package/dist/components/InvestmentStat/InvestmentStat.js +24 -0
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +62 -0
- package/dist/components/LatestUpdate/LatestUpdate.js +24 -0
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +90 -0
- package/dist/components/Layout/Layout.js +69 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +32 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +208 -0
- package/dist/components/LearnMorePage/LearnMore.js +190 -0
- package/dist/components/LearnMorePage/LearnMore.propTypes.js +20 -0
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +56 -0
- package/dist/components/LearnMorePage/LearnMore.styles.js +276 -0
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +120 -0
- package/dist/components/LearnMorePage/LearnMoreItem.js +57 -0
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +234 -0
- package/dist/components/LearnMoreSection/LearnMore.js +138 -0
- package/dist/components/LearnMoreSection/LearnMore.styles.js +147 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.js +33 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +60 -0
- package/dist/components/LoginModal/LoginModal.js +142 -0
- package/dist/components/MainMenu/DynamicMainMenu.js +38 -0
- package/dist/components/MainMenu/MainMenu.js +210 -0
- package/dist/components/MainMenu/MainMenu.styles.js +362 -0
- package/dist/components/MenuNav/MenuNav.styles.js +66 -0
- package/dist/components/Modal/Modal.js +119 -0
- package/dist/components/Modal/Modal.styles.js +450 -0
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +262 -0
- package/dist/components/Modal/PaymentModal.js +149 -0
- package/dist/components/Modal/SideModal.js +134 -0
- package/dist/components/Modal/SideModal.styles.js +55 -0
- package/dist/components/Modal/SuccessModal/SuccessModal.js +170 -0
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +53 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.js +30 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +105 -0
- package/dist/components/Newsletter/Newsletter.js +122 -0
- package/dist/components/Newsletter/Newsletter.styles.js +186 -0
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +38 -0
- package/dist/components/Number/Number.js +50 -0
- package/dist/components/Number/Number.styles.js +23 -0
- package/dist/components/PageTransition/PageTransition.js +51 -0
- package/dist/components/Pagination/Pagination.js +58 -0
- package/dist/components/Pagination/Pagination.styles.js +59 -0
- package/dist/components/Pagination/PaginationControls.js +113 -0
- package/dist/components/Pagination/usePagination.js +40 -0
- package/dist/components/Payment/PaymentDetailsCard.js +359 -0
- package/dist/components/Payment/PaymentDisplay.js +199 -0
- package/dist/components/Payment/TimerComponent.js +92 -0
- package/dist/components/Process/Process.styles.js +84 -0
- package/dist/components/ProfileBadge/ProfileBadge.js +35 -0
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +53 -0
- package/dist/components/ProfileBox/ProfileBox.js +27 -0
- package/dist/components/ProfileBox/ProfileBox.styles.js +67 -0
- package/dist/components/ProfileStat/ProfileStat.js +29 -0
- package/dist/components/ProfileStat/ProfileStat.styles.js +90 -0
- package/dist/components/QRCode/QRCode.js +51 -0
- package/dist/components/Radio/Radio.js +51 -0
- package/dist/components/Radio/Radio.styles.js +100 -0
- package/dist/components/RefreshButton/RefreshButton.js +21 -0
- package/dist/components/RefreshButton/RefreshButton.styles.js +64 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +65 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +20 -0
- package/dist/components/RegisterModal/RegisterModal.js +248 -0
- package/dist/components/RequestDataBox/RequestDataBox.js +21 -0
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +43 -0
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +44 -0
- package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +41 -0
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +134 -0
- package/dist/components/SEO/SEO.js +66 -0
- package/dist/components/SectionTitle/SectionTitle.styles.js +26 -0
- package/dist/components/SideLine/SideLine.js +7 -0
- package/dist/components/SideLine/SideLine.styles.js +33 -0
- package/dist/components/Slider/Slider.js +31 -0
- package/dist/components/Slider/Slider.styles.js +120 -0
- package/dist/components/Snackbar/Snackbar.js +111 -0
- package/dist/components/Snackbar/Snackbar.styles.js +230 -0
- package/dist/components/Snackbar/SnackbarProvider.js +66 -0
- package/dist/components/Snackbar/useSnackbar.js +12 -0
- package/dist/components/SpanButton/SpanButton.styles.js +19 -0
- package/dist/components/StatusBadge/StatusBadge.styles.js +18 -0
- package/dist/components/StatusTag/StatusTag.js +105 -0
- package/dist/components/StatusTag/StatusTag.styles.js +88 -0
- package/dist/components/StepController/StepController.js +86 -0
- package/dist/components/StepController/StepController.styles.js +33 -0
- package/dist/components/StepController/StepControllerContext.js +65 -0
- package/dist/components/StepController/StepControllerProgress.js +37 -0
- package/dist/components/StepsProgress/StepIndicator.js +40 -0
- package/dist/components/StepsProgress/StepIndicator.styles.js +69 -0
- package/dist/components/StepsProgress/StepsProgress.js +67 -0
- package/dist/components/StepsProgress/StepsProgress.styles.js +105 -0
- package/dist/components/StokrLoader/StokrLoader.js +111 -0
- package/dist/components/StokrLoader/media.js +23 -0
- package/dist/components/SvgIcons/AdminBadgeSvg.js +27 -0
- package/dist/components/SvgIcons/CameraSvg.js +31 -0
- package/dist/components/SvgIcons/CapsLockSvg.js +36 -0
- package/dist/components/SvgIcons/DocumentBackSvg.js +20 -0
- package/dist/components/SvgIcons/DocumentSmallSvg.js +41 -0
- package/dist/components/SvgIcons/DocumentSvg.js +39 -0
- package/dist/components/SvgIcons/EthSvg.js +28 -0
- package/dist/components/SvgIcons/EurSvg.js +27 -0
- package/dist/components/SvgIcons/FaceScanIconSvg.js +17 -0
- package/dist/components/SvgIcons/FourSvg.js +7 -0
- package/dist/components/SvgIcons/Glassess.js +26 -0
- package/dist/components/SvgIcons/LogoSvg.js +17 -0
- package/dist/components/SvgIcons/OneSvg.js +10 -0
- package/dist/components/SvgIcons/PassportSvg.js +37 -0
- package/dist/components/SvgIcons/RefreshSvg.js +28 -0
- package/dist/components/SvgIcons/SocialFacebook.js +22 -0
- package/dist/components/SvgIcons/SocialInstagram.js +13 -0
- package/dist/components/SvgIcons/SocialLinkedIn.js +31 -0
- package/dist/components/SvgIcons/SocialMedium.js +21 -0
- package/dist/components/SvgIcons/SocialReddit.js +21 -0
- package/dist/components/SvgIcons/SocialTelegram.js +60 -0
- package/dist/components/SvgIcons/SocialTwitter.js +62 -0
- package/dist/components/SvgIcons/SocialYoutube.js +22 -0
- package/dist/components/SvgIcons/ThreeSvg.js +7 -0
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +48 -0
- package/dist/components/SvgIcons/TwoSvg.js +10 -0
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +12 -0
- package/dist/components/SvgIcons/UpdateHardSvg.js +10 -0
- package/dist/components/SvgIcons/UpdateSoftSvg.js +11 -0
- package/dist/components/SvgIcons/UploadSvg.js +12 -0
- package/dist/components/SvgIcons/VerifiedBadge.js +16 -0
- package/dist/components/Switch/Switch.js +63 -0
- package/dist/components/Switch/Switch.styles.js +126 -0
- package/dist/components/Tabs/Tabs.js +54 -0
- package/dist/components/Tabs/Tabs.styles.js +15 -0
- package/dist/components/TabsNav/TabNav.js +16 -0
- package/dist/components/TabsNav/TabsNav.js +30 -0
- package/dist/components/TabsNav/TabsNav.styles.js +103 -0
- package/dist/components/TeamOverview/TeamOverview.js +80 -0
- package/dist/components/TeamOverview/TeamOverview.styles.js +167 -0
- package/dist/components/TermsModal/TermsModal.js +145 -0
- package/dist/components/TermsModal/_styles.js +313 -0
- package/dist/components/Text/Text.styles.js +220 -0
- package/dist/components/TextLink/TextLink.styles.js +67 -0
- package/dist/components/Timeline/Timeline.js +44 -0
- package/dist/components/Timeline/Timeline.styles.js +147 -0
- package/dist/components/Timeline/TimelineStep.js +58 -0
- package/dist/components/ToDoList/ToDoList.js +172 -0
- package/dist/components/ToDoList/ToDoList.styles.js +122 -0
- package/dist/components/ToDoList/ToDoListTask.js +95 -0
- package/dist/components/ToDoList/ToDoListTask.styles.js +119 -0
- package/dist/components/TransactionDetails/TransactionDetails.js +27 -0
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +38 -0
- package/dist/components/TransactionInfo/TransactionInfo.js +41 -0
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +75 -0
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +122 -0
- package/dist/components/breakdown/Breakdown.js +126 -0
- package/dist/components/headerHo/HeaderHo.js +709 -0
- package/dist/components/icons/Arrow.js +38 -0
- package/dist/components/icons/ArrowSimple.js +34 -0
- package/dist/components/icons/Check.js +16 -0
- package/dist/components/icons/Facebook.js +10 -0
- package/dist/components/icons/Info.js +27 -0
- package/dist/components/icons/Instagram.js +10 -0
- package/dist/components/icons/LinkIcon.js +49 -0
- package/dist/components/icons/LinkedIn.js +13 -0
- package/dist/components/icons/Medium.js +13 -0
- package/dist/components/icons/Reddit.js +16 -0
- package/dist/components/icons/Share.js +31 -0
- package/dist/components/icons/Telegram.js +13 -0
- package/dist/components/icons/Twitter.js +10 -0
- package/dist/components/icons/X.js +10 -0
- package/dist/components/icons/Youtube.js +10 -0
- package/dist/components/icons/index.js +32 -0
- package/dist/components/landing-page/List.js +51 -0
- package/dist/components/landing-page/PageContent.js +65 -0
- package/dist/components/landing-page/PageText.js +171 -0
- package/dist/components/landing-page/PageTitle.js +259 -0
- package/dist/components/logo/Logo.js +57 -0
- package/dist/components/taxId/complete.js +24 -0
- package/dist/components/taxId/flow.js +53 -0
- package/dist/components/taxId/register-taxid.js +166 -0
- package/dist/config.js +44 -0
- package/dist/constants/globalVariables.js +87 -0
- package/dist/constants/style.js +48 -0
- package/dist/context/Auth.js +396 -0
- package/dist/context/AuthContext.js +781 -0
- package/dist/context/Checkbox/CheckboxContext.js +151 -0
- package/dist/firebase-config.js +73 -0
- package/dist/hooks/useNewVentureForm.js +262 -0
- package/dist/hooks/useTimer.js +89 -0
- package/dist/hooks/useTransactionPolling.js +100 -0
- package/dist/index.js +632 -25463
- package/dist/model/axios.js +10 -0
- package/dist/model/axiosPublic.js +9 -0
- package/dist/services/TimerService.js +80 -0
- package/dist/static/animations/checked.lottie.js +4 -0
- package/dist/static/animations/progress.lottie.js +4 -0
- package/dist/static/fonts/Ionicons/Ionicons.ttf.js +4 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff.js +4 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff2.js +4 -0
- package/dist/static/fonts/Ionicons/ionicons.min.css.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.eot.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.svg.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.ttf.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.woff.js +4 -0
- package/dist/static/images/add-folder-icon.svg.js +5 -0
- package/dist/static/images/address-refreshing.gif.js +4 -0
- package/dist/static/images/arrow-down-black.svg.js +4 -0
- package/dist/static/images/avatar-placeholder.png.js +4 -0
- package/dist/static/images/background3.png.js +4 -0
- package/dist/static/images/bitcoin-logo.svg.js +4 -0
- package/dist/static/images/bmn2-logo.svg.js +4 -0
- package/dist/static/images/check-icon.svg.js +5 -0
- package/dist/static/images/checkmark-circle-icon.svg.js +5 -0
- package/dist/static/images/close-circle-icon.svg.js +5 -0
- package/dist/static/images/copy_icon.svg.js +5 -0
- package/dist/static/images/cross-icon.svg.js +5 -0
- package/dist/static/images/early-adopter.png.js +4 -0
- package/dist/static/images/eth_logo.svg.js +4 -0
- package/dist/static/images/external-link-icon.svg +3 -0
- package/dist/static/images/external-link-icon.svg.js +4 -0
- package/dist/static/images/filter-icon.svg.js +5 -0
- package/dist/static/images/google_auth.png.js +4 -0
- package/dist/static/images/graduation.png.js +4 -0
- package/dist/static/images/mangopay.svg.js +4 -0
- package/dist/static/images/numbers/number_eight.svg.js +5 -0
- package/dist/static/images/numbers/number_five.svg.js +5 -0
- package/dist/static/images/numbers/number_four.svg.js +5 -0
- package/dist/static/images/numbers/number_nine.svg.js +5 -0
- package/dist/static/images/numbers/number_one.svg.js +5 -0
- package/dist/static/images/numbers/number_seven.svg.js +5 -0
- package/dist/static/images/numbers/number_six.svg.js +5 -0
- package/dist/static/images/numbers/number_three.svg.js +5 -0
- package/dist/static/images/numbers/number_two.svg.js +5 -0
- package/dist/static/images/numbers/number_zero.svg.js +5 -0
- package/dist/static/images/process-waiting.gif.js +4 -0
- package/dist/static/images/search-icon.svg.js +5 -0
- package/dist/static/images/social/Facebook_Logo.png.js +4 -0
- package/dist/static/images/social/LI-In-Bug.png.js +4 -0
- package/dist/static/images/social/Telegram-Logo.png.js +4 -0
- package/dist/static/images/social/X-logo-black.png.js +4 -0
- package/dist/static/images/social/youtube_social_circle_red.png.js +4 -0
- package/dist/static/images/transfer-icon.svg.js +5 -0
- package/dist/static/images/usdc-logo.svg.js +4 -0
- package/dist/static/images/usdq-logo.png.js +4 -0
- package/dist/static/images/warning-filled.svg.js +5 -0
- package/dist/styles/colors.js +57 -0
- package/dist/styles/fonts.js +100 -0
- package/dist/styles/global.js +74 -0
- package/dist/styles/grid.js +11 -0
- package/dist/styles/ioniconsStyles.js +31 -0
- package/dist/styles/reactTippy.js +40 -0
- package/dist/styles/rwd.js +56 -0
- package/dist/styles/semanticUi.js +84 -0
- package/dist/styles/spacing.js +8 -0
- package/dist/styles/theme.js +34 -0
- package/dist/utils/check-sale-time-left.js +85 -0
- package/dist/utils/check-todo-status.js +11 -0
- package/dist/utils/checklistGenerator.js +195 -0
- package/dist/utils/copyToClipboard.js +92 -0
- package/dist/utils/customHooks.js +126 -0
- package/dist/utils/delete-redirect-cookie-and-navigate.js +12 -0
- package/dist/utils/fix-decimals.js +5 -0
- package/dist/utils/formatCurrencyValue.js +95 -0
- package/dist/utils/get-cookie-domain.js +10 -0
- package/dist/utils/get-short-address.js +4 -0
- package/dist/utils/isUSInvestor.js +6 -0
- package/dist/utils/km_ify.js +33 -0
- package/dist/utils/moment.js +26 -0
- package/dist/utils/redirect-url.js +5 -0
- package/dist/utils/saveAs.js +17 -0
- package/dist/utils/scrollUtils.js +63 -0
- package/dist/utils/set-redirect-cookie.js +16 -0
- package/dist/utils/transition.js +101 -0
- package/dist/utils/withRouter.js +24 -0
- package/package.json +11 -11
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import grid from "../../styles/grid.js";
|
|
3
|
+
import rwd from "../../styles/rwd.js";
|
|
4
|
+
import theme from "../../styles/theme.js";
|
|
5
|
+
import spacing from "../../styles/spacing.js";
|
|
6
|
+
const Wrapper = styled.div.withConfig({
|
|
7
|
+
shouldForwardProp: (props) => !["flex"].includes(props)
|
|
8
|
+
})`
|
|
9
|
+
height: 100%;
|
|
10
|
+
|
|
11
|
+
${(props) => props.flex && `
|
|
12
|
+
display:flex;
|
|
13
|
+
`}
|
|
14
|
+
`;
|
|
15
|
+
const Row = styled.div.withConfig({
|
|
16
|
+
shouldForwardProp: (props) => ![
|
|
17
|
+
"center",
|
|
18
|
+
"right",
|
|
19
|
+
"spaceBetween",
|
|
20
|
+
"stretch",
|
|
21
|
+
"dashboard",
|
|
22
|
+
"nowrap",
|
|
23
|
+
"fullWidth",
|
|
24
|
+
"main",
|
|
25
|
+
"isConfirmModal"
|
|
26
|
+
].includes(props)
|
|
27
|
+
})`
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-wrap: wrap;
|
|
30
|
+
text-align: left;
|
|
31
|
+
|
|
32
|
+
${(props) => props.center && `
|
|
33
|
+
justify-content: center;
|
|
34
|
+
`}
|
|
35
|
+
|
|
36
|
+
${(props) => props.right && `
|
|
37
|
+
justify-content: right;
|
|
38
|
+
`}
|
|
39
|
+
|
|
40
|
+
${(props) => props.spaceBetween && `
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
`}
|
|
43
|
+
|
|
44
|
+
${(props) => props.stretch && `
|
|
45
|
+
height: 100%;
|
|
46
|
+
align-items: stretch;
|
|
47
|
+
`}
|
|
48
|
+
|
|
49
|
+
${(props) => props.dashboard && `
|
|
50
|
+
margin: -16px;
|
|
51
|
+
`}
|
|
52
|
+
|
|
53
|
+
${(props) => props.nowrap && `
|
|
54
|
+
flex-wrap: nowrap;
|
|
55
|
+
`}
|
|
56
|
+
|
|
57
|
+
${(props) => props.fullWidth && `
|
|
58
|
+
width: 100%;
|
|
59
|
+
`}
|
|
60
|
+
|
|
61
|
+
${rwd.MLarge`
|
|
62
|
+
${(props) => props.main && `
|
|
63
|
+
z-index: 0;
|
|
64
|
+
min-height: calc(100vh - ${spacing.footerHeight}px);
|
|
65
|
+
padding-top: ${spacing.headerHeight}px;
|
|
66
|
+
`}
|
|
67
|
+
`}
|
|
68
|
+
|
|
69
|
+
height: ${({ isConfirmModal }) => isConfirmModal && "400px"};
|
|
70
|
+
`;
|
|
71
|
+
const Column = styled.div.withConfig({
|
|
72
|
+
shouldForwardProp: (props) => ![
|
|
73
|
+
"halfWidth",
|
|
74
|
+
"textAlignHopper",
|
|
75
|
+
"center",
|
|
76
|
+
"alignCenter",
|
|
77
|
+
"alignRight",
|
|
78
|
+
"spaceBetween",
|
|
79
|
+
"flexEnd",
|
|
80
|
+
"mainRelative",
|
|
81
|
+
"isConfirmModal",
|
|
82
|
+
"part",
|
|
83
|
+
"full",
|
|
84
|
+
"mainFixed",
|
|
85
|
+
"withBorder"
|
|
86
|
+
].includes(props)
|
|
87
|
+
})`
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
width: 100%;
|
|
91
|
+
|
|
92
|
+
${(props) => props.halfWidth && `
|
|
93
|
+
width: 50%;
|
|
94
|
+
|
|
95
|
+
@media screen and (max-width: 500px) {
|
|
96
|
+
width: 100%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
`}
|
|
100
|
+
|
|
101
|
+
${(props) => props.textAlignHopper && `
|
|
102
|
+
> div:last-child {
|
|
103
|
+
text-align:right;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media screen and (max-width: 767px) {
|
|
107
|
+
> div:last-child {
|
|
108
|
+
text-align:left;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@media screen and (max-width: 500px) {
|
|
113
|
+
> div > div {
|
|
114
|
+
justify-content: left;
|
|
115
|
+
margin-top: 1rem;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
`}
|
|
120
|
+
|
|
121
|
+
${(props) => props.center && `
|
|
122
|
+
justify-content: center;
|
|
123
|
+
`}
|
|
124
|
+
|
|
125
|
+
${(props) => props.alignCenter && `
|
|
126
|
+
align-items: center;
|
|
127
|
+
`}
|
|
128
|
+
|
|
129
|
+
${(props) => props.alignRight && `
|
|
130
|
+
text-align: right;
|
|
131
|
+
align-items: center;
|
|
132
|
+
`}
|
|
133
|
+
|
|
134
|
+
${(props) => props.spaceBetween && `
|
|
135
|
+
justify-content: space-between;
|
|
136
|
+
`}
|
|
137
|
+
|
|
138
|
+
${(props) => props.flexEnd && `
|
|
139
|
+
justify-content: flex-end;
|
|
140
|
+
`}
|
|
141
|
+
|
|
142
|
+
${(props) => props.mainRelative && `
|
|
143
|
+
padding: 18px 0 28px;
|
|
144
|
+
`}
|
|
145
|
+
|
|
146
|
+
${(props) => props.isConfirmModal && `
|
|
147
|
+
justify-content: center;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
|
|
150
|
+
@media screen and (max-width: 767px) {
|
|
151
|
+
height: 100vh;
|
|
152
|
+
}
|
|
153
|
+
`}
|
|
154
|
+
|
|
155
|
+
${rwd.Medium`
|
|
156
|
+
${(props) => props.part && `
|
|
157
|
+
width: ${grid(props.part, props.full || 16)};
|
|
158
|
+
`}
|
|
159
|
+
|
|
160
|
+
${(props) => props.mainFixed && `
|
|
161
|
+
position: fixed;
|
|
162
|
+
top: ${spacing.headerHeight}px;
|
|
163
|
+
left: 0;
|
|
164
|
+
height: calc(100% - ${spacing.headerHeight}px);
|
|
165
|
+
`}
|
|
166
|
+
|
|
167
|
+
${(props) => props.mainRelative && `
|
|
168
|
+
position: relative;
|
|
169
|
+
margin-left: ${grid((props.full || 16) - props.part, props.full || 16)};
|
|
170
|
+
border-left: 1px solid ${theme.cLightGrey};
|
|
171
|
+
//padding: 54px 0 42px;
|
|
172
|
+
`}
|
|
173
|
+
|
|
174
|
+
${(props) => props.withBorder && `
|
|
175
|
+
border-left: 1px solid ${theme.cLightGrey};
|
|
176
|
+
`}
|
|
177
|
+
`}
|
|
178
|
+
`;
|
|
179
|
+
const PageWrapper = styled.div`
|
|
180
|
+
min-height: 100vh;
|
|
181
|
+
display: flex;
|
|
182
|
+
flex-direction: column;
|
|
183
|
+
|
|
184
|
+
${Row} {
|
|
185
|
+
flex-grow: 1;
|
|
186
|
+
}
|
|
187
|
+
`;
|
|
188
|
+
const FlexContainer = styled.div.withConfig({
|
|
189
|
+
shouldForwardProp: (props) => !["itemsCenter"].includes(props)
|
|
190
|
+
})`
|
|
191
|
+
display: flex;
|
|
192
|
+
|
|
193
|
+
${(props) => props.itemsCenter && `align-items:center;`}
|
|
194
|
+
`;
|
|
195
|
+
const FlexGrid = styled.div.withConfig({
|
|
196
|
+
shouldForwardProp: (props) => !["borderBottom"].includes(props)
|
|
197
|
+
})`
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-wrap: wrap;
|
|
200
|
+
|
|
201
|
+
${(props) => props.borderBottom && `
|
|
202
|
+
border-bottom: 1px solid #e1e1e1;
|
|
203
|
+
`}
|
|
204
|
+
`;
|
|
205
|
+
export {
|
|
206
|
+
Column,
|
|
207
|
+
FlexContainer,
|
|
208
|
+
FlexGrid,
|
|
209
|
+
PageWrapper,
|
|
210
|
+
Row,
|
|
211
|
+
Wrapper
|
|
212
|
+
};
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Button } from "../Button/Button.styles.js";
|
|
5
|
+
import stdin_default$1 from "../SvgIcons/LogoSvg.js";
|
|
6
|
+
import "../SvgIcons/SocialInstagram.js";
|
|
7
|
+
import { MenuNav } from "../MenuNav/MenuNav.styles.js";
|
|
8
|
+
import stdin_default$3 from "../MainMenu/MainMenu.js";
|
|
9
|
+
import { StepsProgressSignup, StepsProgressHeader } from "../StepsProgress/StepsProgress.js";
|
|
10
|
+
import { NotificationCounter } from "../NotificationCounter/NotificationCounter.styles.js";
|
|
11
|
+
import avatarPlaceholder from "../../static/images/avatar-placeholder.png.js";
|
|
12
|
+
import { StyledHeader, SidebarToggle, HamburgerIcon, HeaderInner, MainNavWrap, Logo, HeaderMainNav, ProgressWrap, QuickNavWrap, MobileMenuToggler, HeaderQuickNav, LoginButton, UserAccount, UserButton, SignupButton, MobileMenu, MobileMenuPart, MobileMenuItem, MobileMenuLink, CTAContainer, SocialLinksContainer, UserAvatar, MobileMenuWrapper, StyledSubMenu } from "./Header.styles.js";
|
|
13
|
+
import stdin_default$2 from "../MainMenu/DynamicMainMenu.js";
|
|
14
|
+
import { SocialLink, ArrowDown } from "../Footer/FooterMenu.styles.js";
|
|
15
|
+
import { Collapse } from "react-collapse";
|
|
16
|
+
import { usePrevious, useMobileView } from "../../utils/customHooks.js";
|
|
17
|
+
import { checkTodoStatus } from "../../utils/check-todo-status.js";
|
|
18
|
+
import { Breakdown } from "../breakdown/Breakdown.js";
|
|
19
|
+
import { socialSvg } from "../Footer/FooterMenu.js";
|
|
20
|
+
import { Wrapper, FlexContainer } from "../Grid/Grid.styles.js";
|
|
21
|
+
import { footerGroups } from "../Footer/FooterLayout.js";
|
|
22
|
+
import { platformURL, platformDomain } from "../../constants/globalVariables.js";
|
|
23
|
+
import { sizes } from "../../styles/rwd.js";
|
|
24
|
+
import { track } from "../../analytics/index.js";
|
|
25
|
+
const productMenuItems = [
|
|
26
|
+
{
|
|
27
|
+
name: "End-to-End Tokenization",
|
|
28
|
+
onClick: () => {
|
|
29
|
+
track("header_link_clicked", { link: "end-to-end tokenization" });
|
|
30
|
+
window.location.href = `${platformURL}/solutions/asset-tokenization`;
|
|
31
|
+
},
|
|
32
|
+
link: "/solutions/asset-tokenization"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "Tokenization-as-a-Service",
|
|
36
|
+
onClick: () => {
|
|
37
|
+
track("header_link_clicked", { link: "tokenization-as-a-service" });
|
|
38
|
+
window.location.href = `${platformURL}/solutions/tokenization-as-service`;
|
|
39
|
+
},
|
|
40
|
+
link: "/solutions/tokenization-as-service"
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
const mediaMenuItems = [
|
|
44
|
+
{
|
|
45
|
+
name: "Press Releases",
|
|
46
|
+
onClick: () => {
|
|
47
|
+
track("header_link_clicked", { link: "press releases" });
|
|
48
|
+
window.location.href = `${platformURL}/press-releases`;
|
|
49
|
+
},
|
|
50
|
+
link: "/press-releases"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "Stoke Post",
|
|
54
|
+
onClick: () => {
|
|
55
|
+
track("header_link_clicked", { link: "stoke post" });
|
|
56
|
+
window.location.href = `${platformURL}/stoke-post`;
|
|
57
|
+
},
|
|
58
|
+
link: "/stoke-post"
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
const UserAvatarComponent = ({ avatar }) => {
|
|
62
|
+
const [photo, setphoto] = useState(avatarPlaceholder);
|
|
63
|
+
const prevAvatar = usePrevious(avatar);
|
|
64
|
+
const checkUserPhoto = (_avatar) => {
|
|
65
|
+
try {
|
|
66
|
+
const http = new XMLHttpRequest();
|
|
67
|
+
http.open("HEAD", _avatar, true);
|
|
68
|
+
http.send();
|
|
69
|
+
if (http.status !== 404) {
|
|
70
|
+
setphoto(_avatar);
|
|
71
|
+
}
|
|
72
|
+
} catch (error) {
|
|
73
|
+
console.log("error: ", error);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
checkUserPhoto(avatar);
|
|
78
|
+
}, [avatar]);
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
if (avatar != prevAvatar) {
|
|
81
|
+
checkUserPhoto(avatar);
|
|
82
|
+
}
|
|
83
|
+
}, [avatar]);
|
|
84
|
+
return /* @__PURE__ */ jsx(UserAvatar, { src: photo });
|
|
85
|
+
};
|
|
86
|
+
const RenderSubMenu = ({ title, isActive, subMenuItems = [], onClick = () => {
|
|
87
|
+
}, _platformURL = "" }) => {
|
|
88
|
+
return /* @__PURE__ */ jsxs(MobileMenuWrapper, { onClick, children: [
|
|
89
|
+
/* @__PURE__ */ jsx(MobileMenuItem, { children: /* @__PURE__ */ jsxs(StyledSubMenu, { children: [
|
|
90
|
+
/* @__PURE__ */ jsx("a", { children: title }),
|
|
91
|
+
/* @__PURE__ */ jsx(ArrowDown, { displayAlways: true, isOpened: isActive, style: { right: "-2em", position: "absolute" } })
|
|
92
|
+
] }) }),
|
|
93
|
+
/* @__PURE__ */ jsx(Collapse, { isOpened: isActive, children: subMenuItems.map((item) => /* @__PURE__ */ jsx(MobileMenuItem, { red: true, children: /* @__PURE__ */ jsx(MobileMenuLink, { href: _platformURL + item.link, children: item.name }) }, item.name)) })
|
|
94
|
+
] });
|
|
95
|
+
};
|
|
96
|
+
const socialLinks = footerGroups?.filter((group) => group.social)[0].items || [];
|
|
97
|
+
const Header = ({
|
|
98
|
+
activeMenu = null,
|
|
99
|
+
activateMenu = () => {
|
|
100
|
+
},
|
|
101
|
+
user = {},
|
|
102
|
+
userPhoto = avatarPlaceholder,
|
|
103
|
+
logoutUser = () => {
|
|
104
|
+
},
|
|
105
|
+
onLoginClick = () => {
|
|
106
|
+
},
|
|
107
|
+
onSignUpClick = () => {
|
|
108
|
+
},
|
|
109
|
+
useRelativePathForMenu = false,
|
|
110
|
+
useRelativePathForUserMenu = false,
|
|
111
|
+
progress = null,
|
|
112
|
+
withSidebar = false,
|
|
113
|
+
isSidebarExpanded = false,
|
|
114
|
+
sidebarHandler = () => {
|
|
115
|
+
},
|
|
116
|
+
signupFlow = false,
|
|
117
|
+
noFixedPosition = false,
|
|
118
|
+
withoutLoginSignupButton = false
|
|
119
|
+
}) => {
|
|
120
|
+
const [currentActiveMenu, setcurrentActiveMenu] = useState(null);
|
|
121
|
+
const [currentActiveSubMenu, setcurrentActiveSubMenu] = useState(null);
|
|
122
|
+
const prevActiveMenu = usePrevious(activeMenu);
|
|
123
|
+
const isMobile = useMobileView(sizes.MLarge);
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
return () => {
|
|
126
|
+
document.body.style.overflow = "unset";
|
|
127
|
+
document.body.style.position = "relative";
|
|
128
|
+
document.body.style.width = "auto";
|
|
129
|
+
document.documentElement.style.overflowY = "unset";
|
|
130
|
+
};
|
|
131
|
+
}, []);
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
if (prevActiveMenu !== activeMenu) {
|
|
134
|
+
if (activeMenu !== null) {
|
|
135
|
+
setcurrentActiveMenu(null);
|
|
136
|
+
activateMenu();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}, [activeMenu, activateMenu]);
|
|
140
|
+
const toggleMenu = (type, mobile = false) => {
|
|
141
|
+
if (activeMenu === false) {
|
|
142
|
+
setcurrentActiveMenu(null);
|
|
143
|
+
}
|
|
144
|
+
const newActiveMenu = currentActiveMenu === type ? null : type;
|
|
145
|
+
if (isMobile) {
|
|
146
|
+
if (newActiveMenu) {
|
|
147
|
+
document.body.style.overflowY = "hidden";
|
|
148
|
+
document.documentElement.style.overflowY = "hidden";
|
|
149
|
+
document.body.style.position = "fixed";
|
|
150
|
+
document.body.style.width = "100%";
|
|
151
|
+
} else {
|
|
152
|
+
document.body.style.overflowY = "unset";
|
|
153
|
+
document.documentElement.style.overflowY = "unset";
|
|
154
|
+
document.body.style.position = "relative";
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (mobile && type !== "main") {
|
|
158
|
+
setcurrentActiveSubMenu(currentActiveSubMenu === type ? null : type);
|
|
159
|
+
} else {
|
|
160
|
+
setcurrentActiveMenu(newActiveMenu);
|
|
161
|
+
}
|
|
162
|
+
activateMenu();
|
|
163
|
+
};
|
|
164
|
+
const userType = user && user.user_type;
|
|
165
|
+
const isAdmin = userType === "company_pa" || userType === "company_sa" || userType === "sa";
|
|
166
|
+
const isVentureDashboard = withSidebar;
|
|
167
|
+
const newPlatformUrl = useRelativePathForMenu ? "" : platformURL;
|
|
168
|
+
const newPlatformUrlForUserMenu = useRelativePathForUserMenu ? "" : `https://dashboard.${platformDomain}`;
|
|
169
|
+
return /* @__PURE__ */ jsx(StyledHeader, { noFixedPosition, children: /* @__PURE__ */ jsxs(Wrapper, { flex: withSidebar, children: [
|
|
170
|
+
withSidebar && /* @__PURE__ */ jsx(SidebarToggle, { isSidebarExpanded, onClick: sidebarHandler, children: /* @__PURE__ */ jsx(HamburgerIcon, {}) }),
|
|
171
|
+
/* @__PURE__ */ jsxs(HeaderInner, { withSidebar, children: [
|
|
172
|
+
/* @__PURE__ */ jsxs(MainNavWrap, { hasProgress: progress, children: [
|
|
173
|
+
/* @__PURE__ */ jsx(Logo, { isHighlight: currentActiveMenu === "main", children: /* @__PURE__ */ jsx("a", { href: platformURL, "data-cy": "logo-nav-link", children: /* @__PURE__ */ jsx(stdin_default$1, {}) }) }),
|
|
174
|
+
!progress && /* @__PURE__ */ jsx(HeaderMainNav, { children: /* @__PURE__ */ jsx(MenuNav, { children: /* @__PURE__ */ jsxs("ul", { children: [
|
|
175
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
176
|
+
"a",
|
|
177
|
+
{
|
|
178
|
+
href: newPlatformUrl + "/featured-assets",
|
|
179
|
+
"data-cy": "invest-nav-link",
|
|
180
|
+
onClick: () => track("header_link_clicked", { link: "invest" }),
|
|
181
|
+
children: "Invest"
|
|
182
|
+
}
|
|
183
|
+
) }),
|
|
184
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
185
|
+
"a",
|
|
186
|
+
{
|
|
187
|
+
onClick: () => {
|
|
188
|
+
track("header_link_clicked", { link: "solutions" });
|
|
189
|
+
toggleMenu("products");
|
|
190
|
+
},
|
|
191
|
+
"data-cy": "products-nav-link",
|
|
192
|
+
children: "Solutions"
|
|
193
|
+
}
|
|
194
|
+
) }),
|
|
195
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
196
|
+
"a",
|
|
197
|
+
{
|
|
198
|
+
onClick: () => {
|
|
199
|
+
track("header_link_clicked", { link: "media" });
|
|
200
|
+
toggleMenu("media");
|
|
201
|
+
},
|
|
202
|
+
"data-cy": "media-nav-link",
|
|
203
|
+
children: "Media"
|
|
204
|
+
}
|
|
205
|
+
) }),
|
|
206
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
207
|
+
"a",
|
|
208
|
+
{
|
|
209
|
+
href: newPlatformUrl + "/team",
|
|
210
|
+
"data-cy": "team-nav-link",
|
|
211
|
+
onClick: () => track("header_link_clicked", { link: "team" }),
|
|
212
|
+
children: "Team"
|
|
213
|
+
}
|
|
214
|
+
) })
|
|
215
|
+
] }) }) })
|
|
216
|
+
] }),
|
|
217
|
+
progress && /* @__PURE__ */ jsx(Fragment, { children: signupFlow ? /* @__PURE__ */ jsx(StepsProgressSignup, { user }) : /* @__PURE__ */ jsx(ProgressWrap, { children: /* @__PURE__ */ jsx(
|
|
218
|
+
StepsProgressHeader,
|
|
219
|
+
{
|
|
220
|
+
items: progress.items,
|
|
221
|
+
doneIndex: progress.doneIndex,
|
|
222
|
+
activeIndex: progress.activeIndex
|
|
223
|
+
}
|
|
224
|
+
) }) }),
|
|
225
|
+
/* @__PURE__ */ jsxs(QuickNavWrap, { hasProgress: progress, children: [
|
|
226
|
+
/* @__PURE__ */ jsxs(
|
|
227
|
+
MobileMenuToggler,
|
|
228
|
+
{
|
|
229
|
+
isActive: currentActiveMenu === "main",
|
|
230
|
+
onClick: () => toggleMenu("main"),
|
|
231
|
+
withSidebar,
|
|
232
|
+
children: [
|
|
233
|
+
/* @__PURE__ */ jsx("span", {}),
|
|
234
|
+
/* @__PURE__ */ jsx("span", {}),
|
|
235
|
+
/* @__PURE__ */ jsx("span", {})
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
isMobile && checkTodoStatus(user) > 0 && !signupFlow && /* @__PURE__ */ jsx(NotificationCounter, { mobile: true, isActive: currentActiveMenu === "main", children: checkTodoStatus(user) }),
|
|
240
|
+
/* @__PURE__ */ jsx(HeaderQuickNav, { isUserLogged: user?._id || user?.uid, children: /* @__PURE__ */ jsx(Fragment, { children: user?._id || user?.uid ? /* @__PURE__ */ jsx(Fragment, { children: signupFlow ? /* @__PURE__ */ jsx(Button, { onClick: logoutUser, children: "Log Out" }) : /* @__PURE__ */ jsxs(FlexContainer, { itemsCenter: true, children: [
|
|
241
|
+
/* @__PURE__ */ jsx(Breakdown, { children: /* @__PURE__ */ jsx(
|
|
242
|
+
LoginButton,
|
|
243
|
+
{
|
|
244
|
+
onClick: () => {
|
|
245
|
+
isAdmin ? window.location.href = "https://admin." + platformDomain : window.location.href = `${newPlatformUrlForUserMenu}/overview`;
|
|
246
|
+
},
|
|
247
|
+
"data-cy": "dashboard-nav-link",
|
|
248
|
+
children: "Dashboard"
|
|
249
|
+
}
|
|
250
|
+
) }),
|
|
251
|
+
/* @__PURE__ */ jsxs(UserAccount, { children: [
|
|
252
|
+
/* @__PURE__ */ jsx(UserButton, { onClick: () => toggleMenu("main"), children: /* @__PURE__ */ jsx(UserAvatarComponent, { avatar: userPhoto }) }),
|
|
253
|
+
checkTodoStatus(user) > 0 && /* @__PURE__ */ jsx(NotificationCounter, { avatar: true, children: checkTodoStatus(user) })
|
|
254
|
+
] })
|
|
255
|
+
] }) }) : /* @__PURE__ */ jsx(Fragment, { children: withoutLoginSignupButton ? /* @__PURE__ */ jsx(Fragment, {}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
256
|
+
/* @__PURE__ */ jsx(Breakdown, { children: /* @__PURE__ */ jsx(
|
|
257
|
+
LoginButton,
|
|
258
|
+
{
|
|
259
|
+
onClick: () => {
|
|
260
|
+
track("header_link_clicked", { link: "login" });
|
|
261
|
+
onLoginClick();
|
|
262
|
+
},
|
|
263
|
+
"data-cy": "login-nav-button",
|
|
264
|
+
children: "Log in"
|
|
265
|
+
}
|
|
266
|
+
) }),
|
|
267
|
+
/* @__PURE__ */ jsx(
|
|
268
|
+
SignupButton,
|
|
269
|
+
{
|
|
270
|
+
onClick: () => {
|
|
271
|
+
track("signup_cta_clicked");
|
|
272
|
+
onSignUpClick();
|
|
273
|
+
},
|
|
274
|
+
"data-cy": "signup-nav-button",
|
|
275
|
+
children: "Sign Up"
|
|
276
|
+
}
|
|
277
|
+
)
|
|
278
|
+
] }) }) }) })
|
|
279
|
+
] }),
|
|
280
|
+
/* @__PURE__ */ jsxs(MobileMenu, { isActive: currentActiveMenu === "main", withSidebar, children: [
|
|
281
|
+
/* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(MobileMenuPart, { withPadding: true, children: /* @__PURE__ */ jsx(MenuNav, { mobile: true, children: /* @__PURE__ */ jsxs("ul", { children: [
|
|
282
|
+
/* @__PURE__ */ jsx(MobileMenuItem, { children: /* @__PURE__ */ jsx(MobileMenuLink, { href: newPlatformUrl + "/featured-assets", "data-cy": "invest-nav-link", children: "Invest" }) }),
|
|
283
|
+
/* @__PURE__ */ jsx(
|
|
284
|
+
RenderSubMenu,
|
|
285
|
+
{
|
|
286
|
+
title: "solutions",
|
|
287
|
+
isActive: currentActiveSubMenu === "products",
|
|
288
|
+
subMenuItems: productMenuItems,
|
|
289
|
+
platformURL: newPlatformUrl,
|
|
290
|
+
onClick: () => {
|
|
291
|
+
toggleMenu("products", true);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
),
|
|
295
|
+
/* @__PURE__ */ jsx(
|
|
296
|
+
RenderSubMenu,
|
|
297
|
+
{
|
|
298
|
+
title: "media",
|
|
299
|
+
isActive: currentActiveSubMenu === "media",
|
|
300
|
+
subMenuItems: mediaMenuItems,
|
|
301
|
+
platformURL: newPlatformUrl,
|
|
302
|
+
onClick: () => {
|
|
303
|
+
toggleMenu("media", true);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
),
|
|
307
|
+
/* @__PURE__ */ jsx(MobileMenuItem, { children: /* @__PURE__ */ jsx(MobileMenuLink, { href: newPlatformUrl + "/team", children: "Team" }) })
|
|
308
|
+
] }) }) }) }),
|
|
309
|
+
user?._id || user?.uid ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
310
|
+
!signupFlow && /* @__PURE__ */ jsx(MobileMenuPart, { withPadding: true, flexColumn: true, borderTop: true, children: /* @__PURE__ */ jsx(MenuNav, { mobile: true, children: /* @__PURE__ */ jsx("ul", { children: isAdmin ? /* @__PURE__ */ jsx(Fragment, { children: isVentureDashboard ? /* @__PURE__ */ jsx(MobileMenuItem, { children: /* @__PURE__ */ jsx("a", { href: "/settings", children: "Settings" }) }) : /* @__PURE__ */ jsx(MobileMenuItem, { children: /* @__PURE__ */ jsx("a", { href: "https://admin." + platformDomain, onClick: () => toggleMenu("main"), children: "Dashboard" }) }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
311
|
+
/* @__PURE__ */ jsxs(MobileMenuItem, { children: [
|
|
312
|
+
/* @__PURE__ */ jsx("a", { href: `${newPlatformUrlForUserMenu}/overview`, onClick: () => toggleMenu("main"), children: "Dashboard" }),
|
|
313
|
+
checkTodoStatus(user) > 0 && /* @__PURE__ */ jsx(NotificationCounter, { mobileMenu: true, children: checkTodoStatus(user) })
|
|
314
|
+
] }),
|
|
315
|
+
/* @__PURE__ */ jsx(MobileMenuItem, { children: /* @__PURE__ */ jsx(
|
|
316
|
+
"a",
|
|
317
|
+
{
|
|
318
|
+
href: `${newPlatformUrlForUserMenu}/settings/profile-and-privacy`,
|
|
319
|
+
onClick: () => toggleMenu("main"),
|
|
320
|
+
children: "Profile and Privacy"
|
|
321
|
+
}
|
|
322
|
+
) }),
|
|
323
|
+
/* @__PURE__ */ jsx(MobileMenuItem, { children: /* @__PURE__ */ jsx(
|
|
324
|
+
"a",
|
|
325
|
+
{
|
|
326
|
+
href: `${newPlatformUrlForUserMenu}/settings/liquid-address`,
|
|
327
|
+
onClick: () => toggleMenu("main"),
|
|
328
|
+
children: "Liquid Addresses"
|
|
329
|
+
}
|
|
330
|
+
) }),
|
|
331
|
+
/* @__PURE__ */ jsx(MobileMenuItem, { children: /* @__PURE__ */ jsx(
|
|
332
|
+
"a",
|
|
333
|
+
{
|
|
334
|
+
href: `${newPlatformUrlForUserMenu}/settings/investment-eligibility`,
|
|
335
|
+
onClick: () => toggleMenu("main"),
|
|
336
|
+
children: "Investment eligibility"
|
|
337
|
+
}
|
|
338
|
+
) })
|
|
339
|
+
] }) }) }) }),
|
|
340
|
+
/* @__PURE__ */ jsx(MobileMenuPart, { withPadding: true, flexColumn: true, noPaddingTop: !signupFlow, borderTop: signupFlow, isLast: true, children: /* @__PURE__ */ jsx(Button, { minWidth: "160px", secondary: true, onClick: () => logoutUser(), children: "log out" }) })
|
|
341
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
342
|
+
withoutLoginSignupButton ? /* @__PURE__ */ jsx(Fragment, {}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
343
|
+
/* @__PURE__ */ jsx(Breakdown, { alignCenter: true, children: /* @__PURE__ */ jsx(
|
|
344
|
+
Button,
|
|
345
|
+
{
|
|
346
|
+
onClick: () => {
|
|
347
|
+
track("header_link_clicked", { link: "login" });
|
|
348
|
+
onLoginClick();
|
|
349
|
+
},
|
|
350
|
+
secondary: true,
|
|
351
|
+
isLoginMobile: true,
|
|
352
|
+
children: "Log in"
|
|
353
|
+
}
|
|
354
|
+
) }),
|
|
355
|
+
/* @__PURE__ */ jsx(
|
|
356
|
+
"div",
|
|
357
|
+
{
|
|
358
|
+
style: {
|
|
359
|
+
display: "flex",
|
|
360
|
+
justifyContent: "center",
|
|
361
|
+
paddingBottom: 30
|
|
362
|
+
},
|
|
363
|
+
children: /* @__PURE__ */ jsx(
|
|
364
|
+
SignupButton,
|
|
365
|
+
{
|
|
366
|
+
onClick: () => {
|
|
367
|
+
track("signup_cta_clicked");
|
|
368
|
+
onSignUpClick();
|
|
369
|
+
},
|
|
370
|
+
isMobile: true,
|
|
371
|
+
children: "Sign Up"
|
|
372
|
+
}
|
|
373
|
+
)
|
|
374
|
+
}
|
|
375
|
+
)
|
|
376
|
+
] }),
|
|
377
|
+
socialLinks.length > 0 && /* @__PURE__ */ jsxs(CTAContainer, { children: [
|
|
378
|
+
/* @__PURE__ */ jsx("span", { children: "FOLLOW US" }),
|
|
379
|
+
/* @__PURE__ */ jsx(SocialLinksContainer, { isHeader: true, children: socialLinks.map((item) => /* @__PURE__ */ jsx(SocialLink, { href: item.url, target: "_blank", rel: "noopener noreferrer", children: socialSvg[item.name] }, item.name)) })
|
|
380
|
+
] })
|
|
381
|
+
] })
|
|
382
|
+
] }),
|
|
383
|
+
/* @__PURE__ */ jsx(stdin_default$2, { isMenuActive: currentActiveMenu === "products", options: productMenuItems }),
|
|
384
|
+
/* @__PURE__ */ jsx(stdin_default$2, { isMenuActive: currentActiveMenu === "media", options: mediaMenuItems }),
|
|
385
|
+
/* @__PURE__ */ jsx(
|
|
386
|
+
stdin_default$3,
|
|
387
|
+
{
|
|
388
|
+
isMenuActive: currentActiveMenu === "main",
|
|
389
|
+
logoutUser,
|
|
390
|
+
user,
|
|
391
|
+
isAdmin,
|
|
392
|
+
notifications: checkTodoStatus(user),
|
|
393
|
+
isVentureDashboard,
|
|
394
|
+
platformUrlForUserMenu: newPlatformUrlForUserMenu
|
|
395
|
+
}
|
|
396
|
+
)
|
|
397
|
+
] })
|
|
398
|
+
] }) });
|
|
399
|
+
};
|
|
400
|
+
Header.propTypes = {
|
|
401
|
+
progress: PropTypes.shape({
|
|
402
|
+
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
403
|
+
doneIndex: PropTypes.number,
|
|
404
|
+
activeIndex: PropTypes.number
|
|
405
|
+
}),
|
|
406
|
+
signupFlow: PropTypes.bool,
|
|
407
|
+
activeMenu: PropTypes.any,
|
|
408
|
+
activateMenu: PropTypes.func,
|
|
409
|
+
user: PropTypes.object,
|
|
410
|
+
userPhoto: PropTypes.string,
|
|
411
|
+
logoutUser: PropTypes.func,
|
|
412
|
+
onLoginClick: PropTypes.func,
|
|
413
|
+
onSignUpClick: PropTypes.func,
|
|
414
|
+
useRelativePathForMenu: PropTypes.bool,
|
|
415
|
+
useRelativePathForUserMenu: PropTypes.bool,
|
|
416
|
+
withSidebar: PropTypes.bool,
|
|
417
|
+
isSidebarExpanded: PropTypes.bool,
|
|
418
|
+
sidebarHandler: PropTypes.func,
|
|
419
|
+
noFixedPosition: PropTypes.bool
|
|
420
|
+
};
|
|
421
|
+
var stdin_default = Header;
|
|
422
|
+
export {
|
|
423
|
+
Header,
|
|
424
|
+
stdin_default as default
|
|
425
|
+
};
|