@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.
Files changed (383) hide show
  1. package/README.md +261 -262
  2. package/dist/analytics/index.js +180 -0
  3. package/dist/api/auth.js +15 -0
  4. package/dist/api/fetchData.js +27 -0
  5. package/dist/api/fetchDataPublic.js +19 -0
  6. package/dist/auth/index.js +32 -0
  7. package/dist/components/2FA/Connect2FA.js +55 -0
  8. package/dist/components/2FA/EnterCode.js +63 -0
  9. package/dist/components/2FA/InstallAuthApp.js +64 -0
  10. package/dist/components/2FA/ResetCode.js +33 -0
  11. package/dist/components/2FA/Sucess2FA.js +51 -0
  12. package/dist/components/2FA/disable-2fa-flow.js +91 -0
  13. package/dist/components/2FA/enable-2fa-flow.js +137 -0
  14. package/dist/components/2FA/login-with-otp-flow.js +206 -0
  15. package/dist/components/2FA/main-flow.js +217 -0
  16. package/dist/components/AccountBalance/AccountBalance.js +35 -0
  17. package/dist/components/AccountBalance/AccountBalance.styles.js +48 -0
  18. package/dist/components/AdminDashboard/Table/ReactTable.js +266 -0
  19. package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +65 -0
  20. package/dist/components/AdminDashboard/Table/Table.js +123 -0
  21. package/dist/components/AdminDashboard/Table/Table.styles.js +263 -0
  22. package/dist/components/AgreementItem/AgreementItem.js +39 -0
  23. package/dist/components/AgreementItem/AgreementItem.styles.js +32 -0
  24. package/dist/components/BackButton/BackButton.js +34 -0
  25. package/dist/components/BackButton/BackButton.styles.js +123 -0
  26. package/dist/components/Background/Background.js +45 -0
  27. package/dist/components/Background/Background.styles.js +119 -0
  28. package/dist/components/BasicTable/BasicTable.js +25 -0
  29. package/dist/components/BasicTable/BasicTable.styles.js +76 -0
  30. package/dist/components/BlogPost/BlogPost.js +98 -0
  31. package/dist/components/BlogPost/BlogPost.styles.js +230 -0
  32. package/dist/components/Button/Button.styles.js +207 -0
  33. package/dist/components/ButtonContainer/ButtonContainer.styles.js +51 -0
  34. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +18 -0
  35. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +41 -0
  36. package/dist/components/Card/Card.styles.js +97 -0
  37. package/dist/components/ChartLegend/ChartLegend.js +62 -0
  38. package/dist/components/ChartLegend/ChartLegend.styles.js +133 -0
  39. package/dist/components/Checkbox/Checkbox.js +80 -0
  40. package/dist/components/Checkbox/Checkbox.styles.js +133 -0
  41. package/dist/components/Checklist/ChecklistCard.js +71 -0
  42. package/dist/components/Checklist/ChecklistCard.styles.js +82 -0
  43. package/dist/components/Chips/Chip.js +23 -0
  44. package/dist/components/Chips/Chip.styles.js +72 -0
  45. package/dist/components/Chips/ChipWrapper.js +50 -0
  46. package/dist/components/ComponentScroll/ComponentScroll.js +70 -0
  47. package/dist/components/ComponentScroll/ComponentScroll.styles.js +127 -0
  48. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +165 -0
  49. package/dist/components/ConfirmModal/ConfirmModal.js +199 -0
  50. package/dist/components/ConfirmModal/ConfirmModal.styles.js +44 -0
  51. package/dist/components/CryptoAddress/ComponentWrap.js +16 -0
  52. package/dist/components/CryptoAddress/CryptoAddress.js +151 -0
  53. package/dist/components/CryptoAddress/CryptoAddress.styles.js +443 -0
  54. package/dist/components/CryptoAddress/RadioWrap.js +47 -0
  55. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +34 -0
  56. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +125 -0
  57. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +25 -0
  58. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +111 -0
  59. package/dist/components/DoubleButton/DoubleButton.styles.js +27 -0
  60. package/dist/components/ErrorMessage/ErrorMessage.styles.js +9 -0
  61. package/dist/components/FAQ/FAQ.js +73 -0
  62. package/dist/components/FAQ/FAQ.styles.js +128 -0
  63. package/dist/components/Footer/Footer.js +55 -0
  64. package/dist/components/Footer/Footer.styles.js +256 -0
  65. package/dist/components/Footer/FooterLayout.js +145 -0
  66. package/dist/components/Footer/FooterMenu.js +100 -0
  67. package/dist/components/Footer/FooterMenu.styles.js +321 -0
  68. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +100 -0
  69. package/dist/components/Form/Form.js +21 -0
  70. package/dist/components/Form/Form.styles.js +72 -0
  71. package/dist/components/Grid/Grid.styles.js +212 -0
  72. package/dist/components/Header/Header.js +425 -0
  73. package/dist/components/Header/Header.styles.js +567 -0
  74. package/dist/components/HeroBlock/HeroVideoBlock.js +105 -0
  75. package/dist/components/Icon/Icon.style.js +92 -0
  76. package/dist/components/Icon/Icon2.js +12 -0
  77. package/dist/components/InfoBox/InfoBox.js +93 -0
  78. package/dist/components/InfoIcon/InfoIcon.js +62 -0
  79. package/dist/components/InfoIcon/InfoIcon.styles.js +64 -0
  80. package/dist/components/Input/DatePickerInput.js +139 -0
  81. package/dist/components/Input/DatePickerInput.styles.js +165 -0
  82. package/dist/components/Input/Input.js +108 -0
  83. package/dist/components/Input/Input.styles.js +154 -0
  84. package/dist/components/Input/InputPassword.js +122 -0
  85. package/dist/components/Input/InputPassword.styles.js +166 -0
  86. package/dist/components/Input/InputUsername.js +92 -0
  87. package/dist/components/Input/InputWithButton.js +53 -0
  88. package/dist/components/Input/InputWithButton.styles.js +57 -0
  89. package/dist/components/Input/MultiSelect.js +306 -0
  90. package/dist/components/Input/OtpInput.js +70 -0
  91. package/dist/components/Input/RangeInput.js +80 -0
  92. package/dist/components/Input/RangeInput.styles.js +129 -0
  93. package/dist/components/Input/SearchInput.js +68 -0
  94. package/dist/components/Input/SearchInput.styles.js +92 -0
  95. package/dist/components/Input/Select.js +151 -0
  96. package/dist/components/Input/Select.styles.js +148 -0
  97. package/dist/components/Input/TableFilterDropdown.js +247 -0
  98. package/dist/components/Input/Textarea.js +51 -0
  99. package/dist/components/Input/Textarea.styles.js +62 -0
  100. package/dist/components/InvestCalculator/InvestCalculator.js +283 -0
  101. package/dist/components/InvestCalculator/InvestCalculator.styles.js +94 -0
  102. package/dist/components/InvestmentStat/InvestmentStat.js +24 -0
  103. package/dist/components/InvestmentStat/InvestmentStat.styles.js +62 -0
  104. package/dist/components/LatestUpdate/LatestUpdate.js +24 -0
  105. package/dist/components/LatestUpdate/LatestUpdate.styles.js +90 -0
  106. package/dist/components/Layout/Layout.js +69 -0
  107. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +32 -0
  108. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +208 -0
  109. package/dist/components/LearnMorePage/LearnMore.js +190 -0
  110. package/dist/components/LearnMorePage/LearnMore.propTypes.js +20 -0
  111. package/dist/components/LearnMorePage/LearnMore.shared.styles.js +56 -0
  112. package/dist/components/LearnMorePage/LearnMore.styles.js +276 -0
  113. package/dist/components/LearnMorePage/LearnMoreExampleObject.js +120 -0
  114. package/dist/components/LearnMorePage/LearnMoreItem.js +57 -0
  115. package/dist/components/LearnMorePage/LearnMoreItem.styles.js +234 -0
  116. package/dist/components/LearnMoreSection/LearnMore.js +138 -0
  117. package/dist/components/LearnMoreSection/LearnMore.styles.js +147 -0
  118. package/dist/components/LearnMoreSection/LearnMoreItem.js +33 -0
  119. package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +60 -0
  120. package/dist/components/LoginModal/LoginModal.js +142 -0
  121. package/dist/components/MainMenu/DynamicMainMenu.js +38 -0
  122. package/dist/components/MainMenu/MainMenu.js +210 -0
  123. package/dist/components/MainMenu/MainMenu.styles.js +362 -0
  124. package/dist/components/MenuNav/MenuNav.styles.js +66 -0
  125. package/dist/components/Modal/Modal.js +119 -0
  126. package/dist/components/Modal/Modal.styles.js +450 -0
  127. package/dist/components/Modal/NewVentureModal/NewVentureModal.js +262 -0
  128. package/dist/components/Modal/PaymentModal.js +149 -0
  129. package/dist/components/Modal/SideModal.js +134 -0
  130. package/dist/components/Modal/SideModal.styles.js +55 -0
  131. package/dist/components/Modal/SuccessModal/SuccessModal.js +170 -0
  132. package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +53 -0
  133. package/dist/components/MultiProgressBar/MultiProgressBar.js +30 -0
  134. package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +105 -0
  135. package/dist/components/Newsletter/Newsletter.js +122 -0
  136. package/dist/components/Newsletter/Newsletter.styles.js +186 -0
  137. package/dist/components/NotificationCounter/NotificationCounter.styles.js +38 -0
  138. package/dist/components/Number/Number.js +50 -0
  139. package/dist/components/Number/Number.styles.js +23 -0
  140. package/dist/components/PageTransition/PageTransition.js +51 -0
  141. package/dist/components/Pagination/Pagination.js +58 -0
  142. package/dist/components/Pagination/Pagination.styles.js +59 -0
  143. package/dist/components/Pagination/PaginationControls.js +113 -0
  144. package/dist/components/Pagination/usePagination.js +40 -0
  145. package/dist/components/Payment/PaymentDetailsCard.js +359 -0
  146. package/dist/components/Payment/PaymentDisplay.js +199 -0
  147. package/dist/components/Payment/TimerComponent.js +92 -0
  148. package/dist/components/Process/Process.styles.js +84 -0
  149. package/dist/components/ProfileBadge/ProfileBadge.js +35 -0
  150. package/dist/components/ProfileBadge/ProfileBadge.styles.js +53 -0
  151. package/dist/components/ProfileBox/ProfileBox.js +27 -0
  152. package/dist/components/ProfileBox/ProfileBox.styles.js +67 -0
  153. package/dist/components/ProfileStat/ProfileStat.js +29 -0
  154. package/dist/components/ProfileStat/ProfileStat.styles.js +90 -0
  155. package/dist/components/QRCode/QRCode.js +51 -0
  156. package/dist/components/Radio/Radio.js +51 -0
  157. package/dist/components/Radio/Radio.styles.js +100 -0
  158. package/dist/components/RefreshButton/RefreshButton.js +21 -0
  159. package/dist/components/RefreshButton/RefreshButton.styles.js +64 -0
  160. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +65 -0
  161. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +20 -0
  162. package/dist/components/RegisterModal/RegisterModal.js +248 -0
  163. package/dist/components/RequestDataBox/RequestDataBox.js +21 -0
  164. package/dist/components/RequestDataBox/RequestDataBox.styles.js +43 -0
  165. package/dist/components/ResetConfirmModal/ResetConfirmModal.js +44 -0
  166. package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +41 -0
  167. package/dist/components/ResetPasswordModal/ResetPasswordModal.js +134 -0
  168. package/dist/components/SEO/SEO.js +66 -0
  169. package/dist/components/SectionTitle/SectionTitle.styles.js +26 -0
  170. package/dist/components/SideLine/SideLine.js +7 -0
  171. package/dist/components/SideLine/SideLine.styles.js +33 -0
  172. package/dist/components/Slider/Slider.js +31 -0
  173. package/dist/components/Slider/Slider.styles.js +120 -0
  174. package/dist/components/Snackbar/Snackbar.js +111 -0
  175. package/dist/components/Snackbar/Snackbar.styles.js +230 -0
  176. package/dist/components/Snackbar/SnackbarProvider.js +66 -0
  177. package/dist/components/Snackbar/useSnackbar.js +12 -0
  178. package/dist/components/SpanButton/SpanButton.styles.js +19 -0
  179. package/dist/components/StatusBadge/StatusBadge.styles.js +18 -0
  180. package/dist/components/StatusTag/StatusTag.js +105 -0
  181. package/dist/components/StatusTag/StatusTag.styles.js +88 -0
  182. package/dist/components/StepController/StepController.js +86 -0
  183. package/dist/components/StepController/StepController.styles.js +33 -0
  184. package/dist/components/StepController/StepControllerContext.js +65 -0
  185. package/dist/components/StepController/StepControllerProgress.js +37 -0
  186. package/dist/components/StepsProgress/StepIndicator.js +40 -0
  187. package/dist/components/StepsProgress/StepIndicator.styles.js +69 -0
  188. package/dist/components/StepsProgress/StepsProgress.js +67 -0
  189. package/dist/components/StepsProgress/StepsProgress.styles.js +105 -0
  190. package/dist/components/StokrLoader/StokrLoader.js +111 -0
  191. package/dist/components/StokrLoader/media.js +23 -0
  192. package/dist/components/SvgIcons/AdminBadgeSvg.js +27 -0
  193. package/dist/components/SvgIcons/CameraSvg.js +31 -0
  194. package/dist/components/SvgIcons/CapsLockSvg.js +36 -0
  195. package/dist/components/SvgIcons/DocumentBackSvg.js +20 -0
  196. package/dist/components/SvgIcons/DocumentSmallSvg.js +41 -0
  197. package/dist/components/SvgIcons/DocumentSvg.js +39 -0
  198. package/dist/components/SvgIcons/EthSvg.js +28 -0
  199. package/dist/components/SvgIcons/EurSvg.js +27 -0
  200. package/dist/components/SvgIcons/FaceScanIconSvg.js +17 -0
  201. package/dist/components/SvgIcons/FourSvg.js +7 -0
  202. package/dist/components/SvgIcons/Glassess.js +26 -0
  203. package/dist/components/SvgIcons/LogoSvg.js +17 -0
  204. package/dist/components/SvgIcons/OneSvg.js +10 -0
  205. package/dist/components/SvgIcons/PassportSvg.js +37 -0
  206. package/dist/components/SvgIcons/RefreshSvg.js +28 -0
  207. package/dist/components/SvgIcons/SocialFacebook.js +22 -0
  208. package/dist/components/SvgIcons/SocialInstagram.js +13 -0
  209. package/dist/components/SvgIcons/SocialLinkedIn.js +31 -0
  210. package/dist/components/SvgIcons/SocialMedium.js +21 -0
  211. package/dist/components/SvgIcons/SocialReddit.js +21 -0
  212. package/dist/components/SvgIcons/SocialTelegram.js +60 -0
  213. package/dist/components/SvgIcons/SocialTwitter.js +62 -0
  214. package/dist/components/SvgIcons/SocialYoutube.js +22 -0
  215. package/dist/components/SvgIcons/ThreeSvg.js +7 -0
  216. package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +48 -0
  217. package/dist/components/SvgIcons/TwoSvg.js +10 -0
  218. package/dist/components/SvgIcons/UpdateDefaultSvg.js +12 -0
  219. package/dist/components/SvgIcons/UpdateHardSvg.js +10 -0
  220. package/dist/components/SvgIcons/UpdateSoftSvg.js +11 -0
  221. package/dist/components/SvgIcons/UploadSvg.js +12 -0
  222. package/dist/components/SvgIcons/VerifiedBadge.js +16 -0
  223. package/dist/components/Switch/Switch.js +63 -0
  224. package/dist/components/Switch/Switch.styles.js +126 -0
  225. package/dist/components/Tabs/Tabs.js +54 -0
  226. package/dist/components/Tabs/Tabs.styles.js +15 -0
  227. package/dist/components/TabsNav/TabNav.js +16 -0
  228. package/dist/components/TabsNav/TabsNav.js +30 -0
  229. package/dist/components/TabsNav/TabsNav.styles.js +103 -0
  230. package/dist/components/TeamOverview/TeamOverview.js +80 -0
  231. package/dist/components/TeamOverview/TeamOverview.styles.js +167 -0
  232. package/dist/components/TermsModal/TermsModal.js +145 -0
  233. package/dist/components/TermsModal/_styles.js +313 -0
  234. package/dist/components/Text/Text.styles.js +220 -0
  235. package/dist/components/TextLink/TextLink.styles.js +67 -0
  236. package/dist/components/Timeline/Timeline.js +44 -0
  237. package/dist/components/Timeline/Timeline.styles.js +147 -0
  238. package/dist/components/Timeline/TimelineStep.js +58 -0
  239. package/dist/components/ToDoList/ToDoList.js +172 -0
  240. package/dist/components/ToDoList/ToDoList.styles.js +122 -0
  241. package/dist/components/ToDoList/ToDoListTask.js +95 -0
  242. package/dist/components/ToDoList/ToDoListTask.styles.js +119 -0
  243. package/dist/components/TransactionDetails/TransactionDetails.js +27 -0
  244. package/dist/components/TransactionDetails/TransactionDetails.styles.js +38 -0
  245. package/dist/components/TransactionInfo/TransactionInfo.js +41 -0
  246. package/dist/components/TransactionInfo/TransactionInfo.styles.js +75 -0
  247. package/dist/components/VerifyEmailModal/VerifyEmailModal.js +122 -0
  248. package/dist/components/breakdown/Breakdown.js +126 -0
  249. package/dist/components/headerHo/HeaderHo.js +709 -0
  250. package/dist/components/icons/Arrow.js +38 -0
  251. package/dist/components/icons/ArrowSimple.js +34 -0
  252. package/dist/components/icons/Check.js +16 -0
  253. package/dist/components/icons/Facebook.js +10 -0
  254. package/dist/components/icons/Info.js +27 -0
  255. package/dist/components/icons/Instagram.js +10 -0
  256. package/dist/components/icons/LinkIcon.js +49 -0
  257. package/dist/components/icons/LinkedIn.js +13 -0
  258. package/dist/components/icons/Medium.js +13 -0
  259. package/dist/components/icons/Reddit.js +16 -0
  260. package/dist/components/icons/Share.js +31 -0
  261. package/dist/components/icons/Telegram.js +13 -0
  262. package/dist/components/icons/Twitter.js +10 -0
  263. package/dist/components/icons/X.js +10 -0
  264. package/dist/components/icons/Youtube.js +10 -0
  265. package/dist/components/icons/index.js +32 -0
  266. package/dist/components/landing-page/List.js +51 -0
  267. package/dist/components/landing-page/PageContent.js +65 -0
  268. package/dist/components/landing-page/PageText.js +171 -0
  269. package/dist/components/landing-page/PageTitle.js +259 -0
  270. package/dist/components/logo/Logo.js +57 -0
  271. package/dist/components/taxId/complete.js +24 -0
  272. package/dist/components/taxId/flow.js +53 -0
  273. package/dist/components/taxId/register-taxid.js +166 -0
  274. package/dist/config.js +44 -0
  275. package/dist/constants/globalVariables.js +87 -0
  276. package/dist/constants/style.js +48 -0
  277. package/dist/context/Auth.js +396 -0
  278. package/dist/context/AuthContext.js +781 -0
  279. package/dist/context/Checkbox/CheckboxContext.js +151 -0
  280. package/dist/firebase-config.js +73 -0
  281. package/dist/hooks/useNewVentureForm.js +262 -0
  282. package/dist/hooks/useTimer.js +89 -0
  283. package/dist/hooks/useTransactionPolling.js +100 -0
  284. package/dist/index.js +632 -25463
  285. package/dist/model/axios.js +10 -0
  286. package/dist/model/axiosPublic.js +9 -0
  287. package/dist/services/TimerService.js +80 -0
  288. package/dist/static/animations/checked.lottie.js +4 -0
  289. package/dist/static/animations/progress.lottie.js +4 -0
  290. package/dist/static/fonts/Ionicons/Ionicons.ttf.js +4 -0
  291. package/dist/static/fonts/Ionicons/Ionicons.woff.js +4 -0
  292. package/dist/static/fonts/Ionicons/Ionicons.woff2.js +4 -0
  293. package/dist/static/fonts/Ionicons/ionicons.min.css.js +4 -0
  294. package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf.js +4 -0
  295. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff.js +4 -0
  296. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2.js +4 -0
  297. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf.js +4 -0
  298. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff.js +4 -0
  299. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2.js +4 -0
  300. package/dist/static/fonts/OpenSans/OpenSans-Light.ttf.js +4 -0
  301. package/dist/static/fonts/OpenSans/OpenSans-Light.woff.js +4 -0
  302. package/dist/static/fonts/OpenSans/OpenSans-Light.woff2.js +4 -0
  303. package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf.js +4 -0
  304. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff.js +4 -0
  305. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2.js +4 -0
  306. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf.js +4 -0
  307. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff.js +4 -0
  308. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2.js +4 -0
  309. package/dist/static/fonts/icomoon/icomoon.eot.js +4 -0
  310. package/dist/static/fonts/icomoon/icomoon.svg.js +4 -0
  311. package/dist/static/fonts/icomoon/icomoon.ttf.js +4 -0
  312. package/dist/static/fonts/icomoon/icomoon.woff.js +4 -0
  313. package/dist/static/images/add-folder-icon.svg.js +5 -0
  314. package/dist/static/images/address-refreshing.gif.js +4 -0
  315. package/dist/static/images/arrow-down-black.svg.js +4 -0
  316. package/dist/static/images/avatar-placeholder.png.js +4 -0
  317. package/dist/static/images/background3.png.js +4 -0
  318. package/dist/static/images/bitcoin-logo.svg.js +4 -0
  319. package/dist/static/images/bmn2-logo.svg.js +4 -0
  320. package/dist/static/images/check-icon.svg.js +5 -0
  321. package/dist/static/images/checkmark-circle-icon.svg.js +5 -0
  322. package/dist/static/images/close-circle-icon.svg.js +5 -0
  323. package/dist/static/images/copy_icon.svg.js +5 -0
  324. package/dist/static/images/cross-icon.svg.js +5 -0
  325. package/dist/static/images/early-adopter.png.js +4 -0
  326. package/dist/static/images/eth_logo.svg.js +4 -0
  327. package/dist/static/images/external-link-icon.svg +3 -0
  328. package/dist/static/images/external-link-icon.svg.js +4 -0
  329. package/dist/static/images/filter-icon.svg.js +5 -0
  330. package/dist/static/images/google_auth.png.js +4 -0
  331. package/dist/static/images/graduation.png.js +4 -0
  332. package/dist/static/images/mangopay.svg.js +4 -0
  333. package/dist/static/images/numbers/number_eight.svg.js +5 -0
  334. package/dist/static/images/numbers/number_five.svg.js +5 -0
  335. package/dist/static/images/numbers/number_four.svg.js +5 -0
  336. package/dist/static/images/numbers/number_nine.svg.js +5 -0
  337. package/dist/static/images/numbers/number_one.svg.js +5 -0
  338. package/dist/static/images/numbers/number_seven.svg.js +5 -0
  339. package/dist/static/images/numbers/number_six.svg.js +5 -0
  340. package/dist/static/images/numbers/number_three.svg.js +5 -0
  341. package/dist/static/images/numbers/number_two.svg.js +5 -0
  342. package/dist/static/images/numbers/number_zero.svg.js +5 -0
  343. package/dist/static/images/process-waiting.gif.js +4 -0
  344. package/dist/static/images/search-icon.svg.js +5 -0
  345. package/dist/static/images/social/Facebook_Logo.png.js +4 -0
  346. package/dist/static/images/social/LI-In-Bug.png.js +4 -0
  347. package/dist/static/images/social/Telegram-Logo.png.js +4 -0
  348. package/dist/static/images/social/X-logo-black.png.js +4 -0
  349. package/dist/static/images/social/youtube_social_circle_red.png.js +4 -0
  350. package/dist/static/images/transfer-icon.svg.js +5 -0
  351. package/dist/static/images/usdc-logo.svg.js +4 -0
  352. package/dist/static/images/usdq-logo.png.js +4 -0
  353. package/dist/static/images/warning-filled.svg.js +5 -0
  354. package/dist/styles/colors.js +57 -0
  355. package/dist/styles/fonts.js +100 -0
  356. package/dist/styles/global.js +74 -0
  357. package/dist/styles/grid.js +11 -0
  358. package/dist/styles/ioniconsStyles.js +31 -0
  359. package/dist/styles/reactTippy.js +40 -0
  360. package/dist/styles/rwd.js +56 -0
  361. package/dist/styles/semanticUi.js +84 -0
  362. package/dist/styles/spacing.js +8 -0
  363. package/dist/styles/theme.js +34 -0
  364. package/dist/utils/check-sale-time-left.js +85 -0
  365. package/dist/utils/check-todo-status.js +11 -0
  366. package/dist/utils/checklistGenerator.js +195 -0
  367. package/dist/utils/copyToClipboard.js +92 -0
  368. package/dist/utils/customHooks.js +126 -0
  369. package/dist/utils/delete-redirect-cookie-and-navigate.js +12 -0
  370. package/dist/utils/fix-decimals.js +5 -0
  371. package/dist/utils/formatCurrencyValue.js +95 -0
  372. package/dist/utils/get-cookie-domain.js +10 -0
  373. package/dist/utils/get-short-address.js +4 -0
  374. package/dist/utils/isUSInvestor.js +6 -0
  375. package/dist/utils/km_ify.js +33 -0
  376. package/dist/utils/moment.js +26 -0
  377. package/dist/utils/redirect-url.js +5 -0
  378. package/dist/utils/saveAs.js +17 -0
  379. package/dist/utils/scrollUtils.js +63 -0
  380. package/dist/utils/set-redirect-cookie.js +16 -0
  381. package/dist/utils/transition.js +101 -0
  382. package/dist/utils/withRouter.js +24 -0
  383. package/package.json +11 -11
@@ -0,0 +1,74 @@
1
+ import { createGlobalStyle } from "styled-components";
2
+ import "react-tippy/dist/tippy.css";
3
+ import "react-day-picker/style.css";
4
+ import { colors } from "./colors.js";
5
+ import fontFaces from "./fonts.js";
6
+ import semanticUiStyle from "./semanticUi.js";
7
+ import reactTippyStyle from "./reactTippy.js";
8
+ import ioniconsCss from "../static/fonts/Ionicons/ionicons.min.css.js";
9
+ const GlobalStyle = createGlobalStyle`
10
+ ${fontFaces}
11
+ ${ioniconsCss}
12
+
13
+ * ,
14
+ *:before ,
15
+ *:after {
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ html ,
20
+ body {
21
+ margin: 0;
22
+ font-family: 'Open Sans';
23
+ font-size: 16px;
24
+ line-height: 1.5;
25
+ letter-spacing: 0.6px;
26
+ color: ${colors.black};
27
+ background-color: ${colors.white};
28
+ /* -webkit-font-smoothing: antialiased; */
29
+ }
30
+
31
+ input ,
32
+ select ,
33
+ textarea ,
34
+ button {
35
+ font-family: 'Open Sans';
36
+ }
37
+
38
+ button {
39
+ background-color: transparent;
40
+ border: 0;
41
+ padding: 0;
42
+ cursor: pointer;
43
+ }
44
+
45
+ select {
46
+ appearance: none;
47
+ }
48
+
49
+ select::-ms-expand {
50
+ display: none;
51
+ }
52
+
53
+ a {
54
+ font-weight: normal;
55
+ color: inherit;
56
+
57
+ &:hover {
58
+ text-decoration: none;
59
+ color: inherit;
60
+ }
61
+ }
62
+
63
+ ::selection {
64
+ color: ${colors.white};
65
+ background-color: ${colors.blue};
66
+ }
67
+
68
+ ${semanticUiStyle}
69
+ ${reactTippyStyle}
70
+ `;
71
+ export {
72
+ GlobalStyle,
73
+ GlobalStyle as default
74
+ };
@@ -0,0 +1,11 @@
1
+ const grid = (itemUnits, gridUnits = 16) => {
2
+ let tmp = Math.floor(itemUnits / gridUnits * 1e4);
3
+ if (tmp % 2 !== 0) {
4
+ tmp -= 1;
5
+ }
6
+ return `${tmp / 100}%`;
7
+ };
8
+ export {
9
+ grid as default,
10
+ grid
11
+ };
@@ -0,0 +1,31 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useState, useEffect } from "react";
3
+ import { createGlobalStyle } from "styled-components";
4
+ import IoniconsWOFF2 from "../static/fonts/Ionicons/Ionicons.woff2.js";
5
+ import IoniconsWOFF from "../static/fonts/Ionicons/Ionicons.woff.js";
6
+ import IoniconsTTF from "../static/fonts/Ionicons/Ionicons.ttf.js";
7
+ import ioniconsCss from "../static/fonts/Ionicons/ionicons.min.css.js";
8
+ const IoniconsGlobalStyle = createGlobalStyle`
9
+ @font-face {
10
+ font-family: 'Ionicons';
11
+ src:
12
+ url(${IoniconsWOFF2}) format('woff2'),
13
+ url(${IoniconsWOFF}) format('woff'),
14
+ url(${IoniconsTTF}) format('truetype');
15
+ font-weight: normal;
16
+ font-style: normal;
17
+ }
18
+
19
+ ${ioniconsCss}
20
+ `;
21
+ let injected = false;
22
+ function IoniconsStyles() {
23
+ const [shouldRender] = useState(() => !injected);
24
+ useEffect(() => {
25
+ if (shouldRender) injected = true;
26
+ }, [shouldRender]);
27
+ return shouldRender ? /* @__PURE__ */ jsx(IoniconsGlobalStyle, {}) : null;
28
+ }
29
+ export {
30
+ IoniconsStyles
31
+ };
@@ -0,0 +1,40 @@
1
+ import { css } from "styled-components";
2
+ import { colors } from "./colors.js";
3
+ const reactTippyStyle = css`
4
+ .tippy-popper {
5
+ .tippy-tooltip {
6
+ border-radius: 10px;
7
+ font-size: 11px;
8
+ line-height: 14px;
9
+ letter-spacing: 0.4px;
10
+ padding: 12px;
11
+ word-break: break-word;
12
+ }
13
+
14
+ .tippy-tooltip.light-theme {
15
+ box-shadow:
16
+ 0 0 12px 8px rgba(0, 0, 0, 0.03),
17
+ 0 0 6px 3px rgba(0, 0, 0, 0.02);
18
+ }
19
+
20
+ &[x-placement^='top'] [x-arrow] {
21
+ border-top-color: ${colors.blue}!important;
22
+ }
23
+
24
+ &[x-placement^='bottom'] [x-arrow] {
25
+ border-bottom-color: ${colors.blue}!important;
26
+ }
27
+
28
+ &[x-placement^='left'] [x-arrow] {
29
+ border-left-color: ${colors.blue}!important;
30
+ }
31
+
32
+ &[x-placement^='right'] [x-arrow] {
33
+ border-right-color: ${colors.blue}!important;
34
+ }
35
+ }
36
+ `;
37
+ export {
38
+ reactTippyStyle as default,
39
+ reactTippyStyle
40
+ };
@@ -0,0 +1,56 @@
1
+ import styled, { css } from "styled-components";
2
+ const sizes = {
3
+ Small: "320px",
4
+ Mobile: "450px",
5
+ Medium: "768px",
6
+ MLarge: "992px",
7
+ Large: "1024px",
8
+ XLarge: "1440px",
9
+ XXLarge: "2560px"
10
+ };
11
+ const rwd = Object.keys(sizes).reduce((acc, label) => {
12
+ acc[label] = (...args) => css`
13
+ @media (min-width: ${sizes[label]}) {
14
+ ${css(...args)}
15
+ }
16
+ `;
17
+ return acc;
18
+ }, {});
19
+ const rwdMax = Object.keys(sizes).reduce((acc, label) => {
20
+ acc[label] = (...args) => css`
21
+ @media (max-width: ${sizes[label]}) {
22
+ ${css(...args)}
23
+ }
24
+ `;
25
+ return acc;
26
+ }, {});
27
+ const getMedia = (breakpoint) => `(min-width: ${sizes[breakpoint]})`;
28
+ const DisplayOnBreakpoint = styled.div`
29
+ ${(props) => props.fullscreen && css`
30
+ height: 100%;
31
+ `}
32
+
33
+ ${(props) => props.down && css`
34
+ display: block;
35
+
36
+ ${rwd[props.breakpoint]`
37
+ display: none;
38
+ `}
39
+ `}
40
+
41
+ ${(props) => props.up && css`
42
+ display: none;
43
+
44
+ ${rwd[props.breakpoint]`
45
+ display: block;
46
+ `}
47
+ `}
48
+ `;
49
+ export {
50
+ DisplayOnBreakpoint,
51
+ rwd as default,
52
+ getMedia,
53
+ rwd,
54
+ rwdMax,
55
+ sizes
56
+ };
@@ -0,0 +1,84 @@
1
+ import { css } from "styled-components";
2
+ import { colors } from "./colors.js";
3
+ const semanticUiStyle = css`
4
+ .ui.dimmer {
5
+ background-color: rgba(0, 0, 0, 0.7);
6
+ }
7
+
8
+ .ui.modals.dimmer {
9
+ align-items: center;
10
+ padding: 0;
11
+ }
12
+
13
+ .ui.modal {
14
+ .ui.grid {
15
+ margin: 0;
16
+
17
+ & > .row {
18
+ padding: 0;
19
+ }
20
+
21
+ & > .row > .column {
22
+ padding: 0 !important;
23
+ }
24
+ }
25
+ }
26
+
27
+ .ui.popup {
28
+ border-radius: 10px;
29
+ font-size: 11px;
30
+ line-height: 14px;
31
+ letter-spacing: 0.4px;
32
+ padding: 12px;
33
+ box-shadow:
34
+ 0 0 12px 8px rgba(0, 0, 0, 0.03),
35
+ 0 0 6px 3px rgba(0, 0, 0, 0.02);
36
+ border: none;
37
+
38
+ &::before {
39
+ background: none !important;
40
+ border: 7px solid transparent !important;
41
+ box-shadow: none !important;
42
+ margin: 0 !important;
43
+ }
44
+
45
+ &.top::before {
46
+ border-top-color: ${colors.blue}!important;
47
+ transform: rotate(0) translateY(100%) translateX(-50%) !important;
48
+ left: 50% !important;
49
+ bottom: 0 !important;
50
+ }
51
+
52
+ &.bottom::before {
53
+ border-bottom-color: ${colors.blue}!important;
54
+ transform: rotate(0) translateY(-100%) translateX(-50%) !important;
55
+ left: 50% !important;
56
+ top: 0 !important;
57
+ }
58
+
59
+ &.left::before {
60
+ border-left-color: ${colors.blue}!important;
61
+ transform: rotate(0) translateX(100%) !important;
62
+ right: 0 !important;
63
+ top: auto !important;
64
+ }
65
+
66
+ &.right::before {
67
+ border-right-color: ${colors.blue}!important;
68
+ transform: rotate(0) translateX(-100%) !important;
69
+ left: 0 !important;
70
+ top: auto !important;
71
+ }
72
+
73
+ &.top.left::before {
74
+ border: 7px solid transparent !important;
75
+ border-top-color: ${colors.blue}!important;
76
+ left: 0 !important;
77
+ transform: rotate(0) translateY(100%) translateX(0) !important;
78
+ }
79
+ }
80
+ `;
81
+ export {
82
+ semanticUiStyle as default,
83
+ semanticUiStyle
84
+ };
@@ -0,0 +1,8 @@
1
+ const spacing = {
2
+ headerHeight: 96,
3
+ footerHeight: 56
4
+ };
5
+ export {
6
+ spacing as default,
7
+ spacing
8
+ };
@@ -0,0 +1,34 @@
1
+ import { colors } from "./colors.js";
2
+ const theme = {
3
+ cText: colors.black,
4
+ cWhite: colors.white,
5
+ cBlack: colors.black,
6
+ cPrimary: colors.blue,
7
+ cPrimaryDark: colors.blueDark,
8
+ cPrimaryLight: colors.carolinaBlue,
9
+ cWarning: colors.orangishRed,
10
+ cWarningMid: colors.midRed,
11
+ cWarningDark: colors.rustyRed,
12
+ cGrey: colors.grey,
13
+ cLightGrey: colors.lightGrey,
14
+ cGrey2: colors.grey2,
15
+ cGrey3: colors.grey3,
16
+ cProgressDone: colors.progressGreen,
17
+ cYellow: colors.yellow,
18
+ cYellowLight: colors.yellowLight,
19
+ cYellowWarning: colors.warningYellow,
20
+ cLighterGreen: colors.lighterGreen,
21
+ cSuccess: colors.freshGreen,
22
+ cDarkGreen: colors.pine,
23
+ cProgressAccentStart: colors.progressAccentStart,
24
+ cProgressAccentStop: colors.progressAccentStop,
25
+ cProgressRedStart: colors.progressRedStart,
26
+ cProgressRedStop: colors.progressRedStop,
27
+ cProgressBlueStart: colors.progressBlueStart,
28
+ cProgressBlueStop: colors.progressBlueStop,
29
+ ...colors
30
+ };
31
+ export {
32
+ theme as default,
33
+ theme
34
+ };
@@ -0,0 +1,85 @@
1
+ import { ProjectTypes } from "../constants/globalVariables.js";
2
+ const getTimeLeft = (endTime) => {
3
+ const now = /* @__PURE__ */ new Date();
4
+ const oneDay = 1e3 * 60 * 60 * 24;
5
+ const timeLeft = (endTime - now) / oneDay;
6
+ if (timeLeft >= 1) {
7
+ return {
8
+ time: Math.round(timeLeft),
9
+ text: "DAYS"
10
+ };
11
+ } else if (timeLeft * 24 >= 1) {
12
+ return {
13
+ time: Math.round(timeLeft * 24),
14
+ text: "HOURS"
15
+ };
16
+ } else if (timeLeft * 24 * 60 >= 1) {
17
+ return {
18
+ time: Math.round(timeLeft * 24 * 60),
19
+ text: "MINS"
20
+ };
21
+ } else {
22
+ return {
23
+ text: "DAYS"
24
+ };
25
+ }
26
+ };
27
+ const calculateTimeLeft = (timeLeftData) => {
28
+ const { openingTime = "", closingTime = "", isOpen, hasClosed } = timeLeftData;
29
+ if (!timeLeftData || !isOpen && !hasClosed) {
30
+ const startingDate = new Date(openingTime);
31
+ const timeLeft = getTimeLeft(startingDate);
32
+ return {
33
+ daysLeft: timeLeft.time,
34
+ daysLeftText: `${timeLeft.text} UNTIL START`
35
+ };
36
+ } else if (isOpen) {
37
+ const endingDate = new Date(closingTime);
38
+ const timeLeft = getTimeLeft(endingDate);
39
+ return {
40
+ daysLeft: timeLeft.time,
41
+ daysLeftText: `${timeLeft.text} LEFT`
42
+ };
43
+ } else {
44
+ return {
45
+ daysLeftText: "FUNDING CLOSED"
46
+ };
47
+ }
48
+ };
49
+ const checkSaleTimeLeft = (project) => {
50
+ const { openingTime, closingTime, isOpen, hasClosed, type, sales } = project;
51
+ let timeLeftData = {
52
+ openingTime,
53
+ closingTime,
54
+ isOpen,
55
+ hasClosed
56
+ };
57
+ if (type === ProjectTypes.TRANCHES) {
58
+ const currentTranche = sales?.find((x) => x.isVariable);
59
+ const today = Date.now();
60
+ if (currentTranche) {
61
+ timeLeftData.openingTime = currentTranche.startDate;
62
+ timeLeftData.closingTime = currentTranche.endDate;
63
+ if (today >= new Date(currentTranche.startDate) && today < new Date(currentTranche.endDate)) {
64
+ timeLeftData.isOpen = true;
65
+ timeLeftData.hasClosed = false;
66
+ } else if (today > new Date(currentTranche.endDate)) {
67
+ timeLeftData.hasClosed = true;
68
+ timeLeftData.isOpen = false;
69
+ } else {
70
+ timeLeftData.isOpen = false;
71
+ timeLeftData.hasClosed = false;
72
+ }
73
+ } else {
74
+ timeLeftData = {
75
+ ...timeLeftData,
76
+ isOpen: false,
77
+ hasClosed: false
78
+ };
79
+ }
80
+ }
81
+ return calculateTimeLeft(timeLeftData);
82
+ };
83
+ export {
84
+ checkSaleTimeLeft
85
+ };
@@ -0,0 +1,11 @@
1
+ import { generateCoreChecklistTasks } from "./checklistGenerator.js";
2
+ const checkTodoStatus = (user) => {
3
+ if (user?.user_type === "investor" || user?.user_type === "investor-entity") {
4
+ const coreTasks = generateCoreChecklistTasks(user);
5
+ return coreTasks.remainingCount;
6
+ } else return 0;
7
+ };
8
+ export {
9
+ checkTodoStatus,
10
+ checkTodoStatus as default
11
+ };
@@ -0,0 +1,195 @@
1
+ import { walletTypes, UserTypes } from "../constants/globalVariables.js";
2
+ const websiteUrl = "stokr.info";
3
+ const TASK_COPY = {
4
+ country: {
5
+ title: {
6
+ entity: "Country of Entity Registration",
7
+ individual: "Country of Residence"
8
+ },
9
+ description: {
10
+ missing: {
11
+ entity: "Please select your jurisdiction of incorporation.",
12
+ individual: "Please select your country of residence."
13
+ },
14
+ not_available: "STOKR is not yet available in your country of residence.",
15
+ done: {
16
+ entity: "Your jurisdiction of incorporation has been registered.",
17
+ individual: "Your country of residence has been registered."
18
+ }
19
+ },
20
+ iconCopy: {
21
+ missing: "Missing step",
22
+ not_available: "Not available",
23
+ done: "Registered"
24
+ }
25
+ },
26
+ identity: {
27
+ title: {
28
+ entity: "Verify Entity",
29
+ individual: "Verify Identity"
30
+ },
31
+ description: {
32
+ not_available: "Sorry, you are living in a country where this is not available.",
33
+ missing: {
34
+ entity: "Submit your entity documents for verification.",
35
+ individual: "Submit identity verification for compliance clearance."
36
+ },
37
+ in_progress: "Identity verification is in progress.",
38
+ done: {
39
+ entity: "Entity verification complete.",
40
+ individual: "Identity verification complete."
41
+ },
42
+ reapply: {
43
+ entity: "Please re-verify your entity documentation.",
44
+ individual: "Please re-verify your identity."
45
+ }
46
+ },
47
+ iconCopy: {
48
+ not_available: "Not available",
49
+ missing: "Missing step",
50
+ in_progress: "Under review",
51
+ done: "Verified"
52
+ }
53
+ },
54
+ wallet: {
55
+ title: "Liquid Address",
56
+ description: {
57
+ missing: "Register a Liquid address where you will receive the securities.",
58
+ not_available: "Sorry, you are living in a country where this is not available.",
59
+ done: "Your address is registered."
60
+ },
61
+ iconCopy: {
62
+ missing: "Missing step",
63
+ not_available: "Not available",
64
+ done: "Registered"
65
+ }
66
+ },
67
+ taxId: {
68
+ title: "Tax ID",
69
+ description: {
70
+ missing: "Certain investment products require tax identification before participation.",
71
+ done: "Tax identification confirmed. You may now access products requiring tax compliance verification."
72
+ },
73
+ iconCopy: {
74
+ missing: "Missing step",
75
+ done: "Submitted",
76
+ not_available: "Not available"
77
+ },
78
+ tooltip: `Some offers require you to provide your Tax ID before being able to invest.
79
+ Your tax information will be disclosed to the Luxembourg tax authorities annually for tax compliance purposes required by the Common Reporting Standard implementation.`
80
+ }
81
+ };
82
+ const getVerifyIdentityChecklist = (isFromAllowedCountry, user, isEntity) => {
83
+ const { kyc_status } = user;
84
+ let state;
85
+ let hasLink = false;
86
+ let message;
87
+ if (!isFromAllowedCountry) {
88
+ state = "not_available";
89
+ message = TASK_COPY.identity.description.not_available;
90
+ } else if (!kyc_status || kyc_status.toUpperCase() === "DRAFT") {
91
+ state = "missing";
92
+ hasLink = true;
93
+ message = isEntity ? TASK_COPY.identity.description.missing.entity : TASK_COPY.identity.description.missing.individual;
94
+ } 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() === "DENIED") {
95
+ state = "in_progress";
96
+ message = TASK_COPY.identity.description.in_progress;
97
+ } else if (kyc_status.toUpperCase() === "ACCEPTED") {
98
+ state = "done";
99
+ message = isEntity ? TASK_COPY.identity.description.done.entity : TASK_COPY.identity.description.done.individual;
100
+ } else if (kyc_status.toUpperCase() === "REAPPLY" || kyc_status.toUpperCase() === "CANCELLED") {
101
+ state = "missing";
102
+ hasLink = true;
103
+ message = isEntity ? TASK_COPY.identity.description.reapply.entity : TASK_COPY.identity.description.reapply.individual;
104
+ }
105
+ return { state, hasLink, message };
106
+ };
107
+ function getCountryDescription(user, isFromAllowedCountry) {
108
+ const { country, user_type } = user;
109
+ const isEntity = user_type === UserTypes.investor_entity;
110
+ if (!country) {
111
+ return isEntity ? TASK_COPY.country.description.missing.entity : TASK_COPY.country.description.missing.individual;
112
+ }
113
+ if (!isFromAllowedCountry) {
114
+ return TASK_COPY.country.description.not_available;
115
+ }
116
+ return isEntity ? TASK_COPY.country.description.done.entity : TASK_COPY.country.description.done.individual;
117
+ }
118
+ function generateCoreChecklistTasks(user) {
119
+ if (!user) {
120
+ return {
121
+ country: null,
122
+ identity: null,
123
+ wallet: null,
124
+ taxId: null,
125
+ isFromAllowedCountry: false,
126
+ allTasks: [],
127
+ remainingCount: 0
128
+ };
129
+ }
130
+ const { country, user_type, wallets = [], taxId, countryObj } = user;
131
+ const isFromAllowedCountry = countryObj?.isAllowed;
132
+ const liquidWallets = wallets.filter((wallet2) => wallet2.type === walletTypes.LIQUID) || [];
133
+ const hasWallet = liquidWallets.length > 0;
134
+ const isEntity = user_type === UserTypes.investor_entity;
135
+ const platformURL = `https://signup.${websiteUrl}`;
136
+ const countryStatus = !country ? "missing" : !isFromAllowedCountry ? "not_available" : "done";
137
+ const countryTask = {
138
+ key: "country",
139
+ title: isEntity ? TASK_COPY.country.title.entity : TASK_COPY.country.title.individual,
140
+ description: getCountryDescription(user, isFromAllowedCountry),
141
+ iconState: countryStatus,
142
+ iconCopy: TASK_COPY.country.iconCopy[countryStatus],
143
+ link: `${platformURL}/country-of-residence`,
144
+ isClickable: countryStatus !== "done"
145
+ };
146
+ const verifyIdentityChecklist = getVerifyIdentityChecklist(isFromAllowedCountry, user, isEntity);
147
+ const identity = {
148
+ key: "kyc",
149
+ title: isEntity ? TASK_COPY.identity.title.entity : TASK_COPY.identity.title.individual,
150
+ description: verifyIdentityChecklist.message,
151
+ iconState: verifyIdentityChecklist.state,
152
+ iconCopy: TASK_COPY.identity.iconCopy[verifyIdentityChecklist.state],
153
+ link: `${platformURL}/verify-identity`,
154
+ isClickable: verifyIdentityChecklist.hasLink
155
+ };
156
+ const walletStatus = hasWallet ? "done" : "missing";
157
+ const walletDescription = !isFromAllowedCountry ? TASK_COPY.wallet.description.not_available : hasWallet ? TASK_COPY.wallet.description.done : TASK_COPY.wallet.description.missing;
158
+ const wallet = {
159
+ key: "wallet",
160
+ title: TASK_COPY.wallet.title,
161
+ description: walletDescription,
162
+ iconState: walletStatus,
163
+ iconCopy: TASK_COPY.wallet.iconCopy[walletStatus],
164
+ link: `${platformURL}/register-liquid-securities`,
165
+ isClickable: isFromAllowedCountry && walletStatus !== "done"
166
+ };
167
+ const taxStatus = taxId ? "done" : "missing";
168
+ const taxIdTask = {
169
+ key: "taxId",
170
+ title: TASK_COPY.taxId.title,
171
+ description: TASK_COPY.taxId.description[taxStatus],
172
+ iconState: taxStatus,
173
+ iconCopy: TASK_COPY.taxId.iconCopy[taxStatus],
174
+ openModal: "taxId",
175
+ tooltip: TASK_COPY.taxId.tooltip,
176
+ isClickable: taxStatus !== "done"
177
+ };
178
+ const allTasks = [countryTask, identity, wallet, taxIdTask].filter(Boolean);
179
+ const remainingCount = allTasks.filter(
180
+ (task) => task.iconState === "missing" || task.iconState === "not_available"
181
+ ).length;
182
+ return {
183
+ country: countryTask,
184
+ identity,
185
+ wallet,
186
+ taxId: taxIdTask,
187
+ isFromAllowedCountry,
188
+ allTasks,
189
+ remainingCount
190
+ };
191
+ }
192
+ export {
193
+ generateCoreChecklistTasks,
194
+ getVerifyIdentityChecklist
195
+ };