@stokr/components-library 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (841) hide show
  1. package/build/asset-manifest.json +39 -3
  2. package/build/index.html +1 -1
  3. package/build/static/css/main.e30a9d15.css +15 -0
  4. package/build/static/css/main.e30a9d15.css.map +1 -0
  5. package/build/static/js/main.8c250652.js +3 -0
  6. package/build/static/js/main.8c250652.js.LICENSE.txt +158 -0
  7. package/build/static/js/main.8c250652.js.map +1 -0
  8. package/build/static/media/Ionicons.4e528d6445ca1974c313.woff +0 -0
  9. package/build/static/media/Ionicons.643c37f102b41f7f90c3.woff2 +0 -0
  10. package/build/static/media/Ionicons.98b7d3182f652f021bc3.ttf +0 -0
  11. package/build/static/media/OpenSans-Bold.9bea22b57dc165ed4382.ttf +0 -0
  12. package/build/static/media/OpenSans-Bold.a750292d6a0b5a760679.woff +0 -0
  13. package/build/static/media/OpenSans-Bold.cbfc24090ef8bacab132.woff2 +0 -0
  14. package/build/static/media/OpenSans-ExtraBold.21e493d43617de76dbc7.woff2 +0 -0
  15. package/build/static/media/OpenSans-ExtraBold.81f3ef07b7952e249da1.woff +0 -0
  16. package/build/static/media/OpenSans-ExtraBold.bcb6531cf820152b7538.ttf +0 -0
  17. package/build/static/media/OpenSans-Light.179ef2df02cb0b68c9fd.woff2 +0 -0
  18. package/build/static/media/OpenSans-Light.55053cc0a8e6482eca64.ttf +0 -0
  19. package/build/static/media/OpenSans-Light.c6a4bc1bd034d6303053.woff +0 -0
  20. package/build/static/media/OpenSans-Regular.3caa0d4f9b7d58668066.woff2 +0 -0
  21. package/build/static/media/OpenSans-Regular.9ec738fbb66068dc1ca7.woff +0 -0
  22. package/build/static/media/OpenSans-Regular.d97d7385fe8771611848.ttf +0 -0
  23. package/build/static/media/OpenSans-SemiBold.311956ded96d3fd2813d.woff2 +0 -0
  24. package/build/static/media/OpenSans-SemiBold.39f5961b2d3eb4aa5bf5.woff +0 -0
  25. package/build/static/media/OpenSans-SemiBold.d2b1865643b98c0e8b54.ttf +0 -0
  26. package/build/static/media/address-refreshing.5fbb0cc56c384480118a.gif +0 -0
  27. package/build/static/media/arrow-down-black.fe92da3ac6ed16b45bf57713df82cea2.svg +21 -0
  28. package/build/static/media/avatar-placeholder.488a33b3f080a43e0d43.png +0 -0
  29. package/build/static/media/icomoon.2640959b1f9381cde047.eot +0 -0
  30. package/build/static/media/icomoon.35bce49b15feeae93572c36a08feecd9.svg +47 -0
  31. package/build/static/media/icomoon.4c3c428d0ce82f840710.woff +0 -0
  32. package/build/static/media/icomoon.a1d7666a48f976227722.ttf +0 -0
  33. package/{dist/Footer/lemonway.png → build/static/media/lemonway.33e88c3a49e7ac73e3a9.png} +0 -0
  34. package/{dist/Footer/sicos-logo.svg → build/static/media/sicos-logo.7fa3ac9d583b52c3987da529da67cb15.svg} +0 -0
  35. package/build/static/media/slick.2630a3e3eab21c607e21.svg +14 -0
  36. package/build/static/media/slick.295183786cd8a1389865.woff +0 -0
  37. package/build/static/media/slick.a4e97f5a2a64f0ab1323.eot +0 -0
  38. package/build/static/media/slick.c94f7671dcc99dce43e2.ttf +0 -0
  39. package/build/static/media/whales.7a1e9453670d08b8b76a.png +0 -0
  40. package/dist/api/StokrWeb3.js +184 -0
  41. package/dist/api/fetchData.js +76 -0
  42. package/dist/api/fetchDataPublic.js +65 -0
  43. package/dist/components/AccountBalance/AccountBalance.js +53 -0
  44. package/dist/components/AccountBalance/AccountBalance.stories.js +88 -0
  45. package/dist/components/AccountBalance/AccountBalance.styles.js +40 -0
  46. package/dist/components/AdminDashboard/Table/Table.js +170 -0
  47. package/dist/components/AdminDashboard/Table/Table.styles.js +79 -0
  48. package/dist/components/AgreementItem/AgreementItem.js +51 -0
  49. package/dist/components/AgreementItem/AgreementItem.stories.js +109 -0
  50. package/dist/components/AgreementItem/AgreementItem.styles.js +35 -0
  51. package/dist/components/AnalyticGraphs/Analytic.js +781 -0
  52. package/dist/components/AnalyticGraphs/Analytic.styles.js +37 -0
  53. package/dist/components/BackButton/BackButton.js +32 -0
  54. package/dist/components/BackButton/BackButton.stories.js +35 -0
  55. package/dist/components/BackButton/BackButton.styles.js +76 -0
  56. package/dist/components/Background/Background.js +41 -0
  57. package/dist/components/Background/Background.stories.js +62 -0
  58. package/dist/components/Background/Background.styles.js +69 -0
  59. package/dist/components/BarChart/BarChart.js +304 -0
  60. package/dist/components/BarChart/BarChart.stories.js +47 -0
  61. package/dist/components/BarChart/BarChart.styles.js +33 -0
  62. package/dist/components/BarChartLegend/BarChartLegend.js +106 -0
  63. package/dist/components/BarChartLegend/BarChartLegend.styles.js +26 -0
  64. package/dist/components/BasicTable/BasicTable.js +32 -0
  65. package/dist/components/BasicTable/BasicTable.stories.js +63 -0
  66. package/dist/components/BasicTable/BasicTable.styles.js +52 -0
  67. package/dist/components/Button/Button.stories.js +79 -0
  68. package/dist/components/Button/Button.styles.js +83 -0
  69. package/dist/components/ButtonContainer/ButtonContainer.styles.js +18 -0
  70. package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +45 -0
  71. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +34 -0
  72. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +34 -0
  73. package/dist/components/ChartBox/ChartBox.js +44 -0
  74. package/dist/components/ChartBox/ChartBox.stories.js +20 -0
  75. package/dist/components/ChartBox/ChartBox.styles.js +33 -0
  76. package/dist/components/ChartBox/ChartBoxDistribution.js +30 -0
  77. package/dist/components/ChartBox/ChartBoxDistribution.stories.js +21 -0
  78. package/dist/components/ChartLegend/ChartLegend.js +62 -0
  79. package/dist/components/ChartLegend/ChartLegend.stories.js +87 -0
  80. package/dist/components/ChartLegend/ChartLegend.styles.js +64 -0
  81. package/dist/components/Checkbox/Checkbox.js +116 -0
  82. package/dist/components/Checkbox/Checkbox.stories.js +92 -0
  83. package/dist/components/Checkbox/Checkbox.styles.js +45 -0
  84. package/dist/components/Checklist/UserChecklist.js +274 -0
  85. package/dist/components/Checklist/UserChecklist.stories.js +126 -0
  86. package/dist/components/ComponentScroll/ComponentScroll.js +138 -0
  87. package/dist/components/ComponentScroll/ComponentScroll.stories.js +102 -0
  88. package/dist/components/ComponentScroll/ComponentScroll.styles.js +66 -0
  89. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +68 -0
  90. package/dist/components/CryptoAddress/ComponentWrap.js +37 -0
  91. package/dist/components/CryptoAddress/CryptoAddress.js +145 -0
  92. package/dist/components/CryptoAddress/CryptoAddress.stories.js +173 -0
  93. package/dist/components/CryptoAddress/CryptoAddress.styles.js +186 -0
  94. package/dist/components/CryptoAddress/RadioWrap.js +49 -0
  95. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +54 -0
  96. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +74 -0
  97. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +67 -0
  98. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +40 -0
  99. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +59 -0
  100. package/dist/components/DonutChart/DonutChart.js +182 -0
  101. package/dist/components/DonutChart/DonutChart.stories.js +40 -0
  102. package/dist/components/DonutChart/DonutChart.styles.js +50 -0
  103. package/dist/components/DoubleButton/DoubleButton.styles.js +22 -0
  104. package/dist/components/ErrorMessage/ErrorMessage.styles.js +15 -0
  105. package/dist/components/FAQ/FAQ.js +65 -0
  106. package/dist/components/FAQ/FAQ.stories.js +74 -0
  107. package/dist/components/FAQ/FAQ.styles.js +48 -0
  108. package/dist/components/Footer/Footer.js +66 -0
  109. package/dist/components/Footer/Footer.stories.js +54 -0
  110. package/dist/components/Footer/Footer.styles.js +74 -0
  111. package/dist/components/Footer/FooterLayout.js +129 -0
  112. package/dist/components/Footer/FooterLayout.stories.js +31 -0
  113. package/dist/components/Footer/FooterMenu.js +117 -0
  114. package/dist/components/Footer/FooterMenu.stories.js +121 -0
  115. package/dist/components/Footer/FooterMenu.styles.js +80 -0
  116. package/dist/components/Footer/index.js +27 -0
  117. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +127 -0
  118. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +42 -0
  119. package/dist/components/Form/Form.js +68 -0
  120. package/dist/components/Form/Form.stories.js +35 -0
  121. package/dist/components/Form/Form.styles.js +59 -0
  122. package/dist/components/FullscreenCard/FullscreenCard.styles.js +32 -0
  123. package/dist/components/Grid/Grid.styles.js +68 -0
  124. package/dist/components/Header/Header.js +452 -0
  125. package/dist/components/Header/Header.stories.js +188 -0
  126. package/dist/components/Header/Header.styles.js +180 -0
  127. package/dist/components/Icon/Icon.style.js +71 -0
  128. package/dist/components/InfoIcon/InfoIcon.js +50 -0
  129. package/dist/components/InfoIcon/InfoIcon.stories.js +52 -0
  130. package/dist/components/InfoIcon/InfoIcon.styles.js +31 -0
  131. package/dist/components/InfoPanel/InfoPanel.js +146 -0
  132. package/dist/components/Input/DatePickerInput.js +85 -0
  133. package/dist/components/Input/DatePickerInput.stories.js +91 -0
  134. package/dist/components/Input/DatePickerInput.styles.js +29 -0
  135. package/dist/components/Input/Input.js +108 -0
  136. package/dist/components/Input/Input.stories.js +148 -0
  137. package/dist/components/Input/Input.styles.js +53 -0
  138. package/dist/components/Input/InputPassword.js +151 -0
  139. package/dist/components/Input/InputPassword.stories.js +85 -0
  140. package/dist/components/Input/InputPassword.styles.js +80 -0
  141. package/dist/components/Input/RangeInput.js +60 -0
  142. package/dist/components/Input/RangeInput.stories.js +59 -0
  143. package/dist/components/Input/RangeInput.styles.js +53 -0
  144. package/dist/components/Input/Select.js +148 -0
  145. package/dist/components/Input/Select.stories.js +142 -0
  146. package/dist/components/Input/Select.styles.js +65 -0
  147. package/dist/components/InvestCalculator/InvestCalculator.js +367 -0
  148. package/dist/components/InvestCalculator/InvestCalculator.stories.js +137 -0
  149. package/dist/components/InvestCalculator/InvestCalculator.styles.js +66 -0
  150. package/dist/components/InvestmentStat/InvestmentStat.js +40 -0
  151. package/dist/components/InvestmentStat/InvestmentStat.stories.js +56 -0
  152. package/dist/components/InvestmentStat/InvestmentStat.styles.js +43 -0
  153. package/dist/components/KYCFlow/BasicInfo.js +489 -0
  154. package/dist/components/KYCFlow/Confirmation.js +51 -0
  155. package/dist/components/KYCFlow/DocumentFileUpload.js +276 -0
  156. package/dist/components/KYCFlow/DocumentScan.js +74 -0
  157. package/dist/components/KYCFlow/DocumentScanUpload.js +258 -0
  158. package/dist/components/KYCFlow/DocumentSelect.js +148 -0
  159. package/dist/components/KYCFlow/DocumentSuccess.js +64 -0
  160. package/dist/components/KYCFlow/DocumentUpload.js +54 -0
  161. package/dist/components/KYCFlow/DocumentVerificationType.js +161 -0
  162. package/dist/components/KYCFlow/FaceScan.js +55 -0
  163. package/dist/components/KYCFlow/FaceScanRecognition.js +60 -0
  164. package/dist/components/KYCFlow/FaceScanSuccess.js +59 -0
  165. package/dist/components/KYCFlow/Terms.js +142 -0
  166. package/dist/components/KYCFlow/_styles.js +160 -0
  167. package/dist/components/KYCFlow/index.js +97 -0
  168. package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +41 -0
  169. package/dist/components/LatestUpdate/LatestUpdate.js +51 -0
  170. package/dist/components/LatestUpdate/LatestUpdate.stories.js +62 -0
  171. package/dist/components/LatestUpdate/LatestUpdate.styles.js +71 -0
  172. package/dist/components/Layout/Layout-func-no-work.js +78 -0
  173. package/dist/components/Layout/Layout.js +103 -0
  174. package/dist/components/Layout/Layout.stories.js +67 -0
  175. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +47 -0
  176. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +70 -0
  177. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +43 -0
  178. package/dist/components/LearnMorePage/LearnMore.js +255 -0
  179. package/dist/components/LearnMorePage/LearnMore.shared.styles.js +40 -0
  180. package/dist/components/LearnMorePage/LearnMore.stories.js +51 -0
  181. package/dist/components/LearnMorePage/LearnMore.styles.js +120 -0
  182. package/dist/components/LearnMorePage/LearnMoreExampleObject.js +87 -0
  183. package/dist/components/LearnMorePage/LearnMoreItem.js +75 -0
  184. package/dist/components/LearnMorePage/LearnMoreItem.stories.js +65 -0
  185. package/dist/components/LearnMorePage/LearnMoreItem.styles.js +87 -0
  186. package/dist/components/LearnMoreSection/LearnMore.js +199 -0
  187. package/dist/components/LearnMoreSection/LearnMore.stories.js +33 -0
  188. package/dist/components/LearnMoreSection/LearnMore.styles.js +73 -0
  189. package/dist/components/LearnMoreSection/LearnMoreItem.js +52 -0
  190. package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +62 -0
  191. package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +50 -0
  192. package/dist/components/LoginModal/LoginModal.js +163 -0
  193. package/dist/components/MainMenu/DynamicMainMenu.js +50 -0
  194. package/dist/components/MainMenu/MainMenu.js +262 -0
  195. package/dist/components/MainMenu/MainMenu.styles.js +124 -0
  196. package/dist/components/MatomoConnect/Matomo.js +485 -0
  197. package/dist/components/MatomoConnect/Matomo_fuckup.js +383 -0
  198. package/dist/components/MenuNav/MenuNav.styles.js +42 -0
  199. package/dist/components/Modal/Modal.js +123 -0
  200. package/dist/components/Modal/Modal.stories.js +82 -0
  201. package/dist/components/Modal/Modal.styles.js +140 -0
  202. package/dist/components/MultiProgressBar/MultiProgressBar.js +48 -0
  203. package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +72 -0
  204. package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +41 -0
  205. package/dist/components/Newsletter/Newsletter.js +139 -0
  206. package/dist/components/Newsletter/Newsletter.stories.js +19 -0
  207. package/dist/components/Newsletter/Newsletter.styles.js +83 -0
  208. package/dist/components/NotificationContext/NotificationContext.js +173 -0
  209. package/dist/components/NotificationContext/NotificationContext.stories.js +33 -0
  210. package/dist/components/NotificationCounter/NotificationCounter.styles.js +22 -0
  211. package/dist/components/Number/Number.js +35 -0
  212. package/dist/components/Number/Number.stories.js +41 -0
  213. package/dist/components/Number/Number.styles.js +20 -0
  214. package/dist/components/PageTransition/PageTransition.js +57 -0
  215. package/dist/components/Process/Process.stories.js +47 -0
  216. package/dist/components/Process/Process.styles.js +33 -0
  217. package/dist/components/ProfileBadge/ProfileBadge.js +53 -0
  218. package/dist/components/ProfileBadge/ProfileBadge.stories.js +48 -0
  219. package/dist/components/ProfileBadge/ProfileBadge.styles.js +32 -0
  220. package/dist/components/ProfileBox/ProfileBox.js +39 -0
  221. package/dist/components/ProfileBox/ProfileBox.stories.js +38 -0
  222. package/dist/components/ProfileBox/ProfileBox.styles.js +49 -0
  223. package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +477 -0
  224. package/dist/components/ProfileHeader/ProfileHeader.js +330 -0
  225. package/dist/components/ProfileHeader/ProfileHeader.styles.js +87 -0
  226. package/dist/components/ProfileStat/ProfileStat.js +42 -0
  227. package/dist/components/ProfileStat/ProfileStat.stories.js +71 -0
  228. package/dist/components/ProfileStat/ProfileStat.styles.js +42 -0
  229. package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +69 -0
  230. package/dist/components/ROI/ROI.js +312 -0
  231. package/dist/components/ROI/ROI.styles.js +63 -0
  232. package/dist/components/ROI/ROIChart.js +469 -0
  233. package/dist/components/ROI/ROIChart.styles.js +33 -0
  234. package/dist/components/ROI/ROIModal.js +91 -0
  235. package/dist/components/ROI/ROIScenarioBox.js +55 -0
  236. package/dist/components/ROI/ROIScenarioBox.styles.js +52 -0
  237. package/dist/components/Radio/Radio.js +68 -0
  238. package/dist/components/Radio/Radio.stories.js +76 -0
  239. package/dist/components/Radio/Radio.styles.js +31 -0
  240. package/dist/components/RefreshButton/RefreshButton.js +21 -0
  241. package/dist/components/RefreshButton/RefreshButton.stories.js +41 -0
  242. package/dist/components/RefreshButton/RefreshButton.styles.js +39 -0
  243. package/dist/components/RegisterAlgorand/AlgoAddressName.js +138 -0
  244. package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +444 -0
  245. package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +47 -0
  246. package/dist/components/RegisterAlgorand/AlgoSuccess.js +38 -0
  247. package/dist/components/RegisterAlgorand/Algorand.stories.js +78 -0
  248. package/dist/components/RegisterAlgorand/ChooseWallet.js +97 -0
  249. package/dist/components/RegisterAlgorand/SelectProject.js +90 -0
  250. package/dist/components/RegisterAlgorand/_styles.js +28 -0
  251. package/dist/components/RegisterAlgorand/flow.js +409 -0
  252. package/dist/components/RegisterAlgorand/flowWithMemo.js +410 -0
  253. package/dist/components/RegisterAlgorand/index.js +48 -0
  254. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +40 -0
  255. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +33 -0
  256. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +16 -0
  257. package/dist/components/RegisterEthereum/EthAddressLedger.js +215 -0
  258. package/dist/components/RegisterEthereum/EthAddressMetamask.js +205 -0
  259. package/dist/components/RegisterEthereum/EthAddressName.js +135 -0
  260. package/dist/components/RegisterEthereum/EthConnectLedger.js +194 -0
  261. package/dist/components/RegisterEthereum/EthConnectMetamask.js +35 -0
  262. package/dist/components/RegisterEthereum/EthFinish.js +41 -0
  263. package/dist/components/RegisterEthereum/EthIntro.js +95 -0
  264. package/dist/components/RegisterEthereum/_styles.js +28 -0
  265. package/dist/components/RegisterEthereum/index.js +68 -0
  266. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +106 -0
  267. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +66 -0
  268. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +48 -0
  269. package/dist/components/RegisterLiquidSteps/complete.js +37 -0
  270. package/dist/components/RegisterLiquidSteps/flow.js +197 -0
  271. package/dist/components/RegisterLiquidSteps/index.js +52 -0
  272. package/dist/components/RegisterLiquidSteps/register-liquid.js +240 -0
  273. package/dist/components/RegisterModal/RegisterModal.js +180 -0
  274. package/dist/components/RegisterModal/RegisterModal.stories.js +46 -0
  275. package/dist/components/RequestDataBox/RequestDataBox.js +31 -0
  276. package/dist/components/RequestDataBox/RequestDataBox.stories.js +40 -0
  277. package/dist/components/RequestDataBox/RequestDataBox.styles.js +31 -0
  278. package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +185 -0
  279. package/dist/components/RiskQuestionnaire/_styles.js +15 -0
  280. package/dist/components/SEO/SEO.js +71 -0
  281. package/dist/components/SEO/SEO.stories.js +64 -0
  282. package/dist/components/SectionTitle/SectionTitle.styles.js +15 -0
  283. package/dist/components/SideLine/SideLine.js +15 -0
  284. package/dist/components/SideLine/SideLine.stories.js +31 -0
  285. package/dist/components/SideLine/SideLine.styles.js +26 -0
  286. package/dist/components/SigningSubflow/SignSubAddressMetamask.js +137 -0
  287. package/dist/components/SigningSubflow/SignSubConnectLedger.js +150 -0
  288. package/dist/components/SigningSubflow/SignSubConnectMetamask.js +137 -0
  289. package/dist/components/SigningSubflow/SignSubIntro.js +54 -0
  290. package/dist/components/SigningSubflow/SignSubSendLedger.js +150 -0
  291. package/dist/components/SigningSubflow/SignSubSendMetamask.js +62 -0
  292. package/dist/components/SigningSubflow/SignSubTransactionLedger.js +161 -0
  293. package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +166 -0
  294. package/dist/components/SigningSubflow/_styles.js +45 -0
  295. package/dist/components/SigningSubflow/index.js +74 -0
  296. package/dist/components/Slider/Slider.js +50 -0
  297. package/dist/components/Slider/Slider.stories.js +72 -0
  298. package/dist/components/Slider/Slider.styles.js +23 -0
  299. package/dist/components/SpanButton/SpanButton.styles.js +15 -0
  300. package/dist/components/StatusBadge/StatusBadge.styles.js +20 -0
  301. package/dist/components/StepController/StepController.js +111 -0
  302. package/dist/components/StepController/StepController.stories.js +63 -0
  303. package/dist/components/StepController/StepController.styles.js +26 -0
  304. package/dist/components/StepController/StepControllerContext.js +104 -0
  305. package/dist/components/StepController/StepControllerProgress.js +40 -0
  306. package/dist/components/StepController/StepControllerProgress.stories.js +52 -0
  307. package/dist/components/StepsProgress/StepsProgress.js +127 -0
  308. package/dist/components/StepsProgress/StepsProgress.stories.js +50 -0
  309. package/dist/components/StepsProgress/StepsProgress.styles.js +36 -0
  310. package/dist/components/StokrLoader/StokrLoader.js +32 -0
  311. package/dist/components/StokrLoader/media.js +27 -0
  312. package/dist/components/SvgIcons/AdminBadgeSvg.js +26 -0
  313. package/dist/components/SvgIcons/CameraSvg.js +36 -0
  314. package/dist/components/SvgIcons/CapsLockSvg.js +31 -0
  315. package/dist/components/SvgIcons/DocumentBackSvg.js +35 -0
  316. package/dist/components/SvgIcons/DocumentSmallSvg.js +61 -0
  317. package/dist/components/SvgIcons/DocumentSvg.js +38 -0
  318. package/dist/components/SvgIcons/Early.js +24 -0
  319. package/dist/components/SvgIcons/EthSvg.js +40 -0
  320. package/dist/components/SvgIcons/EurSvg.js +26 -0
  321. package/dist/components/SvgIcons/FaceScanIconSvg.js +31 -0
  322. package/dist/components/SvgIcons/FourSvg.js +21 -0
  323. package/dist/components/SvgIcons/Glassess.js +29 -0
  324. package/dist/components/SvgIcons/LogoSvg.js +24 -0
  325. package/dist/components/SvgIcons/OneSvg.js +23 -0
  326. package/dist/components/SvgIcons/PassportSvg.js +56 -0
  327. package/dist/components/SvgIcons/RefreshSvg.js +27 -0
  328. package/dist/components/SvgIcons/SocialFacebook.js +25 -0
  329. package/dist/components/SvgIcons/SocialInstagram.js +26 -0
  330. package/dist/components/SvgIcons/SocialLinkedIn.js +25 -0
  331. package/dist/components/SvgIcons/SocialMedium.js +25 -0
  332. package/dist/components/SvgIcons/SocialReddit.js +25 -0
  333. package/dist/components/SvgIcons/SocialTelegram.js +25 -0
  334. package/dist/components/SvgIcons/SocialTwitter.js +25 -0
  335. package/dist/components/SvgIcons/SocialYoutube.js +25 -0
  336. package/dist/components/SvgIcons/ThreeSvg.js +20 -0
  337. package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +82 -0
  338. package/dist/components/SvgIcons/TwoSvg.js +23 -0
  339. package/dist/components/SvgIcons/UpdateDefaultSvg.js +29 -0
  340. package/dist/components/SvgIcons/UpdateHardSvg.js +25 -0
  341. package/dist/components/SvgIcons/UpdateSoftSvg.js +27 -0
  342. package/dist/components/SvgIcons/UploadSvg.js +34 -0
  343. package/dist/components/SvgIcons/VerifiedBadge.js +23 -0
  344. package/dist/components/SvgIcons/index.js +223 -0
  345. package/dist/components/Switch/Switch.js +70 -0
  346. package/dist/components/Switch/Switch.stories.js +86 -0
  347. package/dist/components/Switch/Switch.styles.js +47 -0
  348. package/dist/components/Tabs/Tabs.js +70 -0
  349. package/dist/components/Tabs/Tabs.stories.js +29 -0
  350. package/dist/components/Tabs/Tabs.styles.js +18 -0
  351. package/dist/components/TabsNav/TabNav.js +31 -0
  352. package/dist/components/TabsNav/TabNav.stories.js +44 -0
  353. package/dist/components/TabsNav/TabsNav.js +43 -0
  354. package/dist/components/TabsNav/TabsNav.stories.js +26 -0
  355. package/dist/components/TabsNav/TabsNav.styles.js +43 -0
  356. package/dist/components/TeamOverview/TeamOverview.js +125 -0
  357. package/dist/components/TeamOverview/TeamOverview.stories.js +80 -0
  358. package/dist/components/TeamOverview/TeamOverview.styles.js +81 -0
  359. package/dist/components/Text/Headline.js +29 -0
  360. package/dist/components/Text/Headline.stories.js +51 -0
  361. package/dist/components/Text/StyledText.js +19 -0
  362. package/dist/components/Text/Text.stories.js +71 -0
  363. package/dist/components/Text/Text.styles.js +40 -0
  364. package/dist/components/TextLink/TextLink.styles.js +30 -0
  365. package/dist/components/ToDoList/ToDoList.js +184 -0
  366. package/dist/components/ToDoList/ToDoList.stories.js +137 -0
  367. package/dist/components/ToDoList/ToDoList.styles.js +83 -0
  368. package/dist/components/ToDoList/ToDoListTask.js +118 -0
  369. package/dist/components/ToDoList/ToDoListTask.stories.js +72 -0
  370. package/dist/components/ToDoList/ToDoListTask.styles.js +74 -0
  371. package/dist/components/TransactionDetails/TransactionDetails.js +46 -0
  372. package/dist/components/TransactionDetails/TransactionDetails.stories.js +59 -0
  373. package/dist/components/TransactionDetails/TransactionDetails.styles.js +31 -0
  374. package/dist/components/TransactionInfo/TransactionInfo.js +58 -0
  375. package/dist/components/TransactionInfo/TransactionInfo.stories.js +64 -0
  376. package/dist/components/TransactionInfo/TransactionInfo.styles.js +54 -0
  377. package/dist/components/TwoFactorModal/TwoFactorModal.js +122 -0
  378. package/dist/components/breakdown/Breakdown.js +56 -0
  379. package/dist/components/breakdown/index.js +27 -0
  380. package/dist/components/context/Auth.js +207 -0
  381. package/dist/components/context/AuthContext.js +335 -0
  382. package/dist/components/icons/Arrow.js +70 -0
  383. package/dist/components/icons/Arrow.stories.js +49 -0
  384. package/dist/components/icons/ArrowSimple.js +59 -0
  385. package/dist/components/icons/ArrowSimple.stories.js +55 -0
  386. package/dist/components/icons/Check.js +43 -0
  387. package/dist/components/icons/Check.stories.js +25 -0
  388. package/dist/components/icons/Facebook.js +26 -0
  389. package/dist/components/icons/Facebook.stories.js +24 -0
  390. package/dist/components/icons/Info.js +55 -0
  391. package/dist/components/icons/Info.stories.js +19 -0
  392. package/dist/components/icons/Instagram.js +26 -0
  393. package/dist/components/icons/Instagram.stories.js +24 -0
  394. package/dist/components/icons/LinkIcon.js +34 -0
  395. package/dist/components/icons/LinkIcon.stories.js +24 -0
  396. package/dist/components/icons/LinkedIn.js +43 -0
  397. package/dist/components/icons/LinkedIn.stories.js +19 -0
  398. package/dist/components/icons/Medium.js +42 -0
  399. package/dist/components/icons/Medium.stories.js +19 -0
  400. package/dist/components/icons/Reddit.js +32 -0
  401. package/dist/components/icons/Reddit.stories.js +24 -0
  402. package/dist/components/icons/Share.js +62 -0
  403. package/dist/components/icons/Share.stories.js +19 -0
  404. package/dist/components/icons/Telegram.js +42 -0
  405. package/dist/components/icons/Telegram.stories.js +19 -0
  406. package/dist/components/icons/Twitter.js +26 -0
  407. package/dist/components/icons/Twitter.stories.js +24 -0
  408. package/dist/components/icons/X.js +26 -0
  409. package/dist/components/icons/X.stories.js +19 -0
  410. package/dist/components/icons/Youtube.js +26 -0
  411. package/dist/components/icons/Youtube.stories.js +24 -0
  412. package/dist/components/icons/index.js +170 -0
  413. package/dist/components/renderToBody/index.js +27 -0
  414. package/dist/components/renderToBody/renderToBody.js +68 -0
  415. package/dist/components/taxId/TaxId.stories.js +42 -0
  416. package/dist/components/taxId/complete.js +32 -0
  417. package/dist/components/taxId/flow.js +52 -0
  418. package/dist/components/taxId/index.js +27 -0
  419. package/dist/components/taxId/register-taxid.js +186 -0
  420. package/dist/components/video/Video.js +174 -0
  421. package/dist/components/video/Video.stories.js +56 -0
  422. package/dist/components/video/index.js +27 -0
  423. package/dist/constants/style.js +52 -0
  424. package/dist/index.js +1 -177
  425. package/dist/model/axios.js +18 -0
  426. package/dist/model/axiosPublic.js +18 -0
  427. package/dist/styles/colors.js +55 -0
  428. package/dist/styles/fonts.js +34 -0
  429. package/dist/styles/global.js +19 -0
  430. package/dist/styles/grid.js +16 -0
  431. package/dist/styles/reactTippy.js +12 -0
  432. package/dist/styles/rwd.js +52 -0
  433. package/dist/styles/semanticUi.js +12 -0
  434. package/dist/styles/spacing.js +12 -0
  435. package/dist/styles/theme.js +43 -0
  436. package/dist/utils/allowed-countries-list.js +1375 -0
  437. package/dist/utils/breakpoint.js +19 -0
  438. package/dist/utils/countries-list.js +1008 -0
  439. package/dist/utils/customHooks.js +52 -0
  440. package/dist/utils/delete-redirect-cookie-and-navigate.js +20 -0
  441. package/dist/utils/fix-decimals.js +11 -0
  442. package/dist/utils/get-cookie-domain.js +16 -0
  443. package/dist/utils/get-short-address.js +10 -0
  444. package/dist/utils/lock-body.js +20 -0
  445. package/dist/utils/redirect-url.js +10 -0
  446. package/dist/utils/set-redirect-cookie.js +20 -0
  447. package/package.json +133 -128
  448. package/build/static/js/main.31d6cfe0.js +0 -0
  449. package/dist/AccountBalance/AccountBalance.js +0 -43
  450. package/dist/AccountBalance/AccountBalance.stories.js +0 -75
  451. package/dist/AccountBalance/AccountBalance.styles.js +0 -38
  452. package/dist/AdminDashboard/Table/Table.js +0 -120
  453. package/dist/AdminDashboard/Table/Table.styles.js +0 -111
  454. package/dist/AgreementItem/AgreementItem.js +0 -38
  455. package/dist/AgreementItem/AgreementItem.stories.js +0 -98
  456. package/dist/AgreementItem/AgreementItem.styles.js +0 -31
  457. package/dist/AnalyticGraphs/Analytic.js +0 -528
  458. package/dist/AnalyticGraphs/Analytic.styles.js +0 -49
  459. package/dist/BackButton/BackButton.js +0 -22
  460. package/dist/BackButton/BackButton.stories.js +0 -24
  461. package/dist/BackButton/BackButton.styles.js +0 -110
  462. package/dist/Background/Background.js +0 -34
  463. package/dist/Background/Background.stories.js +0 -50
  464. package/dist/Background/Background.styles.js +0 -113
  465. package/dist/BarChart/BarChart.js +0 -258
  466. package/dist/BarChart/BarChart.stories.js +0 -46
  467. package/dist/BarChart/BarChart.styles.js +0 -93
  468. package/dist/BarChartLegend/BarChartLegend.js +0 -74
  469. package/dist/BarChartLegend/BarChartLegend.styles.js +0 -26
  470. package/dist/BasicTable/BasicTable.js +0 -20
  471. package/dist/BasicTable/BasicTable.stories.js +0 -51
  472. package/dist/BasicTable/BasicTable.styles.js +0 -64
  473. package/dist/Button/Button.stories.js +0 -63
  474. package/dist/Button/Button.styles.js +0 -180
  475. package/dist/ButtonContainer/ButtonContainer.styles.js +0 -25
  476. package/dist/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +0 -35
  477. package/dist/CapitalRaisedSummary/CaptialRaisedSummary.js +0 -23
  478. package/dist/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +0 -36
  479. package/dist/ChartBox/ChartBox.js +0 -34
  480. package/dist/ChartBox/ChartBox.stories.js +0 -9
  481. package/dist/ChartBox/ChartBox.styles.js +0 -50
  482. package/dist/ChartBox/ChartBoxDistribution.js +0 -20
  483. package/dist/ChartBox/ChartBoxDistribution.stories.js +0 -10
  484. package/dist/ChartLegend/ChartLegend.js +0 -37
  485. package/dist/ChartLegend/ChartLegend.stories.js +0 -74
  486. package/dist/ChartLegend/ChartLegend.styles.js +0 -67
  487. package/dist/Checkbox/Checkbox.js +0 -108
  488. package/dist/Checkbox/Checkbox.stories.js +0 -82
  489. package/dist/Checkbox/Checkbox.styles.js +0 -123
  490. package/dist/Checklist/UserChecklist.js +0 -247
  491. package/dist/Checklist/UserChecklist.stories.js +0 -115
  492. package/dist/ComponentScroll/ComponentScroll.js +0 -99
  493. package/dist/ComponentScroll/ComponentScroll.stories.js +0 -92
  494. package/dist/ComponentScroll/ComponentScroll.styles.js +0 -104
  495. package/dist/ComponentWrapper/ComponentWrapper.styles.js +0 -128
  496. package/dist/CryptoAddress/ComponentWrap.js +0 -24
  497. package/dist/CryptoAddress/CryptoAddress.js +0 -124
  498. package/dist/CryptoAddress/CryptoAddress.stories.js +0 -163
  499. package/dist/CryptoAddress/CryptoAddress.styles.js +0 -399
  500. package/dist/CryptoAddress/RadioWrap.js +0 -36
  501. package/dist/CryptoAddressDetails/CryptoAddressDetails.js +0 -42
  502. package/dist/CryptoAddressDetails/CryptoAddressDetails.stories.js +0 -65
  503. package/dist/CryptoAddressDetails/CryptoAddressDetails.styles.js +0 -114
  504. package/dist/CryptoAddressWrapper/CryptoAddressWrapper.js +0 -30
  505. package/dist/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +0 -98
  506. package/dist/DonutChart/DonutChart.js +0 -137
  507. package/dist/DonutChart/DonutChart.stories.js +0 -39
  508. package/dist/DonutChart/DonutChart.styles.js +0 -101
  509. package/dist/DoubleButton/DoubleButton.styles.js +0 -25
  510. package/dist/ErrorMessage/ErrorMessage.styles.js +0 -9
  511. package/dist/FAQ/FAQ.js +0 -40
  512. package/dist/FAQ/FAQ.stories.js +0 -63
  513. package/dist/FAQ/FAQ.styles.js +0 -69
  514. package/dist/Footer/Footer.js +0 -54
  515. package/dist/Footer/Footer.stories.js +0 -41
  516. package/dist/Footer/Footer.styles.js +0 -230
  517. package/dist/Footer/FooterLayout.js +0 -114
  518. package/dist/Footer/FooterLayout.stories.js +0 -20
  519. package/dist/Footer/FooterMenu.js +0 -83
  520. package/dist/Footer/FooterMenu.stories.js +0 -110
  521. package/dist/Footer/FooterMenu.styles.js +0 -274
  522. package/dist/Footer/index.js +0 -4
  523. package/dist/ForgotPasswordModal/ForgotPasswordModal.js +0 -89
  524. package/dist/ForgotPasswordModal/ForgotPasswordModal.stories.js +0 -31
  525. package/dist/Form/Form.js +0 -38
  526. package/dist/Form/Form.stories.js +0 -23
  527. package/dist/Form/Form.styles.js +0 -66
  528. package/dist/FullscreenCard/FullscreenCard.styles.js +0 -36
  529. package/dist/Grid/Grid.styles.js +0 -109
  530. package/dist/Header/Header.js +0 -369
  531. package/dist/Header/Header.stories.js +0 -172
  532. package/dist/Header/Header.styles.js +0 -493
  533. package/dist/Icon/Icon.style.js +0 -75
  534. package/dist/InfoIcon/InfoIcon.js +0 -40
  535. package/dist/InfoIcon/InfoIcon.stories.js +0 -40
  536. package/dist/InfoIcon/InfoIcon.styles.js +0 -42
  537. package/dist/InfoPanel/InfoPanel.js +0 -115
  538. package/dist/Input/DatePickerInput.js +0 -64
  539. package/dist/Input/DatePickerInput.stories.js +0 -80
  540. package/dist/Input/DatePickerInput.styles.js +0 -67
  541. package/dist/Input/Input.js +0 -86
  542. package/dist/Input/Input.stories.js +0 -134
  543. package/dist/Input/Input.styles.js +0 -126
  544. package/dist/Input/InputPassword.js +0 -122
  545. package/dist/Input/InputPassword.stories.js +0 -72
  546. package/dist/Input/InputPassword.styles.js +0 -139
  547. package/dist/Input/RangeInput.js +0 -46
  548. package/dist/Input/RangeInput.stories.js +0 -48
  549. package/dist/Input/RangeInput.styles.js +0 -125
  550. package/dist/Input/Select.js +0 -130
  551. package/dist/Input/Select.stories.js +0 -129
  552. package/dist/Input/Select.styles.js +0 -143
  553. package/dist/InvestCalculator/InvestCalculator.js +0 -353
  554. package/dist/InvestCalculator/InvestCalculator.stories.js +0 -129
  555. package/dist/InvestCalculator/InvestCalculator.styles.js +0 -78
  556. package/dist/InvestmentStat/InvestmentStat.js +0 -33
  557. package/dist/InvestmentStat/InvestmentStat.stories.js +0 -44
  558. package/dist/InvestmentStat/InvestmentStat.styles.js +0 -53
  559. package/dist/KYCFlow/BasicInfo.js +0 -396
  560. package/dist/KYCFlow/Confirmation.js +0 -37
  561. package/dist/KYCFlow/DocumentFileUpload.js +0 -240
  562. package/dist/KYCFlow/DocumentScan.js +0 -66
  563. package/dist/KYCFlow/DocumentScanUpload.js +0 -228
  564. package/dist/KYCFlow/DocumentSelect.js +0 -101
  565. package/dist/KYCFlow/DocumentSuccess.js +0 -54
  566. package/dist/KYCFlow/DocumentUpload.js +0 -44
  567. package/dist/KYCFlow/DocumentVerificationType.js +0 -114
  568. package/dist/KYCFlow/FaceScan.js +0 -45
  569. package/dist/KYCFlow/FaceScanRecognition.js +0 -52
  570. package/dist/KYCFlow/FaceScanSuccess.js +0 -47
  571. package/dist/KYCFlow/Terms.js +0 -99
  572. package/dist/KYCFlow/_styles.js +0 -284
  573. package/dist/KYCFlow/index.js +0 -14
  574. package/dist/KYCSelectBox/KYCSelectBox.styles.js +0 -62
  575. package/dist/LatestUpdate/LatestUpdate.js +0 -35
  576. package/dist/LatestUpdate/LatestUpdate.stories.js +0 -51
  577. package/dist/LatestUpdate/LatestUpdate.styles.js +0 -77
  578. package/dist/Layout/Layout-func-no-work.js +0 -67
  579. package/dist/Layout/Layout.js +0 -68
  580. package/dist/Layout/Layout.stories.js +0 -55
  581. package/dist/LearnMoreCarousel/LearnMoreCarousel.js +0 -39
  582. package/dist/LearnMoreCarousel/LearnMoreCarousel.stories.js +0 -58
  583. package/dist/LearnMoreCarousel/LearnMoreCarousel.styles.js +0 -205
  584. package/dist/LearnMorePage/LearnMore.js +0 -199
  585. package/dist/LearnMorePage/LearnMore.shared.styles.js +0 -49
  586. package/dist/LearnMorePage/LearnMore.stories.js +0 -41
  587. package/dist/LearnMorePage/LearnMore.styles.js +0 -250
  588. package/dist/LearnMorePage/LearnMoreExampleObject.js +0 -102
  589. package/dist/LearnMorePage/LearnMoreItem.js +0 -73
  590. package/dist/LearnMorePage/LearnMoreItem.stories.js +0 -54
  591. package/dist/LearnMorePage/LearnMoreItem.styles.js +0 -218
  592. package/dist/LearnMoreSection/LearnMore.js +0 -158
  593. package/dist/LearnMoreSection/LearnMore.stories.js +0 -23
  594. package/dist/LearnMoreSection/LearnMore.styles.js +0 -134
  595. package/dist/LearnMoreSection/LearnMoreItem.js +0 -39
  596. package/dist/LearnMoreSection/LearnMoreItem.stories.js +0 -52
  597. package/dist/LearnMoreSection/LearnMoreItem.styles.js +0 -54
  598. package/dist/LoginModal/LoginModal.js +0 -125
  599. package/dist/MainMenu/DynamicMainMenu.js +0 -41
  600. package/dist/MainMenu/MainMenu.js +0 -207
  601. package/dist/MainMenu/MainMenu.styles.js +0 -361
  602. package/dist/MatomoConnect/Matomo.js +0 -221
  603. package/dist/MatomoConnect/Matomo_fuckup.js +0 -185
  604. package/dist/MenuNav/MenuNav.styles.js +0 -88
  605. package/dist/Modal/Modal.js +0 -71
  606. package/dist/Modal/Modal.stories.js +0 -67
  607. package/dist/Modal/Modal.styles.js +0 -407
  608. package/dist/MultiProgressBar/MultiProgressBar.js +0 -33
  609. package/dist/MultiProgressBar/MultiProgressBar.stories.js +0 -61
  610. package/dist/MultiProgressBar/MultiProgressBar.styles.js +0 -92
  611. package/dist/Newsletter/Newsletter.js +0 -106
  612. package/dist/Newsletter/Newsletter.stories.js +0 -8
  613. package/dist/Newsletter/Newsletter.styles.js +0 -173
  614. package/dist/NotificationContext/NotificationContext.js +0 -126
  615. package/dist/NotificationContext/NotificationContext.stories.js +0 -32
  616. package/dist/NotificationCounter/NotificationCounter.styles.js +0 -23
  617. package/dist/Number/Number.js +0 -25
  618. package/dist/Number/Number.stories.js +0 -18
  619. package/dist/Number/Number.styles.js +0 -21
  620. package/dist/PageTransition/PageTransition.js +0 -42
  621. package/dist/Process/Process.stories.js +0 -34
  622. package/dist/Process/Process.styles.js +0 -87
  623. package/dist/ProfileBadge/ProfileBadge.js +0 -46
  624. package/dist/ProfileBadge/ProfileBadge.stories.js +0 -37
  625. package/dist/ProfileBadge/ProfileBadge.styles.js +0 -47
  626. package/dist/ProfileBox/ProfileBox.js +0 -29
  627. package/dist/ProfileBox/ProfileBox.stories.js +0 -27
  628. package/dist/ProfileBox/ProfileBox.styles.js +0 -60
  629. package/dist/ProfileHeader/ProfileHeader-CLb4.js +0 -401
  630. package/dist/ProfileHeader/ProfileHeader.js +0 -268
  631. package/dist/ProfileHeader/ProfileHeader.styles.js +0 -114
  632. package/dist/ProfileStat/ProfileStat.js +0 -32
  633. package/dist/ProfileStat/ProfileStat.stories.js +0 -58
  634. package/dist/ProfileStat/ProfileStat.styles.js +0 -80
  635. package/dist/ProofOfAddress/ProofOfAddress.styles.js +0 -76
  636. package/dist/ROI/ROI.js +0 -261
  637. package/dist/ROI/ROI.styles.js +0 -71
  638. package/dist/ROI/ROIChart.js +0 -348
  639. package/dist/ROI/ROIChart.styles.js +0 -98
  640. package/dist/ROI/ROIModal.js +0 -74
  641. package/dist/ROI/ROIScenarioBox.js +0 -46
  642. package/dist/ROI/ROIScenarioBox.styles.js +0 -131
  643. package/dist/Radio/Radio.js +0 -58
  644. package/dist/Radio/Radio.stories.js +0 -65
  645. package/dist/Radio/Radio.styles.js +0 -93
  646. package/dist/RefreshButton/RefreshButton.js +0 -14
  647. package/dist/RefreshButton/RefreshButton.stories.js +0 -29
  648. package/dist/RefreshButton/RefreshButton.styles.js +0 -57
  649. package/dist/RegisterAlgorand/AlgoAddressName.js +0 -103
  650. package/dist/RegisterAlgorand/AlgoAdressSelect.js +0 -274
  651. package/dist/RegisterAlgorand/AlgoConnectWallet.js +0 -37
  652. package/dist/RegisterAlgorand/AlgoSuccess.js +0 -28
  653. package/dist/RegisterAlgorand/Algorand.stories.js +0 -61
  654. package/dist/RegisterAlgorand/ChooseWallet.js +0 -77
  655. package/dist/RegisterAlgorand/SelectProject.js +0 -77
  656. package/dist/RegisterAlgorand/_styles.js +0 -30
  657. package/dist/RegisterAlgorand/flow.js +0 -243
  658. package/dist/RegisterAlgorand/flowWithMemo.js +0 -244
  659. package/dist/RegisterAlgorand/index.js +0 -7
  660. package/dist/RegisterConfirmModal/RegisterConfirmModal.js +0 -30
  661. package/dist/RegisterConfirmModal/RegisterConfirmModal.stories.js +0 -22
  662. package/dist/RegisterConfirmModal/RegisterConfirmModal.styles.js +0 -19
  663. package/dist/RegisterEthereum/EthAddressLedger.js +0 -151
  664. package/dist/RegisterEthereum/EthAddressMetamask.js +0 -165
  665. package/dist/RegisterEthereum/EthAddressName.js +0 -101
  666. package/dist/RegisterEthereum/EthConnectLedger.js +0 -117
  667. package/dist/RegisterEthereum/EthConnectMetamask.js +0 -25
  668. package/dist/RegisterEthereum/EthFinish.js +0 -32
  669. package/dist/RegisterEthereum/EthIntro.js +0 -77
  670. package/dist/RegisterEthereum/_styles.js +0 -30
  671. package/dist/RegisterEthereum/index.js +0 -9
  672. package/dist/RegisterLiquidSteps/RegisterLiquidSteps.js +0 -75
  673. package/dist/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +0 -65
  674. package/dist/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +0 -69
  675. package/dist/RegisterLiquidSteps/assets/nav_green.svg +0 -31
  676. package/dist/RegisterLiquidSteps/assets/video.mp4 +0 -0
  677. package/dist/RegisterLiquidSteps/assets/videothumbnail.jpg +0 -0
  678. package/dist/RegisterLiquidSteps/complete.js +0 -29
  679. package/dist/RegisterLiquidSteps/flow.js +0 -141
  680. package/dist/RegisterLiquidSteps/index.js +0 -29
  681. package/dist/RegisterLiquidSteps/register-liquid.js +0 -197
  682. package/dist/RegisterModal/RegisterModal.js +0 -143
  683. package/dist/RegisterModal/RegisterModal.stories.js +0 -35
  684. package/dist/RequestDataBox/RequestDataBox.js +0 -21
  685. package/dist/RequestDataBox/RequestDataBox.stories.js +0 -29
  686. package/dist/RequestDataBox/RequestDataBox.styles.js +0 -40
  687. package/dist/RiskQuestionnaire/RiskQuestionnaireContext.js +0 -111
  688. package/dist/RiskQuestionnaire/_styles.js +0 -6
  689. package/dist/SEO/SEO.js +0 -63
  690. package/dist/SEO/SEO.stories.js +0 -53
  691. package/dist/SectionTitle/SectionTitle.styles.js +0 -23
  692. package/dist/SideLine/SideLine.js +0 -4
  693. package/dist/SideLine/SideLine.stories.js +0 -20
  694. package/dist/SideLine/SideLine.styles.js +0 -29
  695. package/dist/SigningSubflow/SignSubAddressMetamask.js +0 -105
  696. package/dist/SigningSubflow/SignSubConnectLedger.js +0 -114
  697. package/dist/SigningSubflow/SignSubConnectMetamask.js +0 -101
  698. package/dist/SigningSubflow/SignSubIntro.js +0 -45
  699. package/dist/SigningSubflow/SignSubSendLedger.js +0 -114
  700. package/dist/SigningSubflow/SignSubSendMetamask.js +0 -53
  701. package/dist/SigningSubflow/SignSubTransactionLedger.js +0 -125
  702. package/dist/SigningSubflow/SignSubTransactionMetamask.js +0 -130
  703. package/dist/SigningSubflow/_styles.js +0 -59
  704. package/dist/SigningSubflow/index.js +0 -9
  705. package/dist/Slider/Slider.js +0 -43
  706. package/dist/Slider/Slider.stories.js +0 -63
  707. package/dist/Slider/Slider.styles.js +0 -115
  708. package/dist/SpanButton/SpanButton.styles.js +0 -14
  709. package/dist/StatusBadge/StatusBadge.styles.js +0 -16
  710. package/dist/StepController/StepController.js +0 -73
  711. package/dist/StepController/StepController.stories.js +0 -52
  712. package/dist/StepController/StepController.styles.js +0 -27
  713. package/dist/StepController/StepControllerContext.js +0 -61
  714. package/dist/StepController/StepControllerProgress.js +0 -28
  715. package/dist/StepController/StepControllerProgress.stories.js +0 -41
  716. package/dist/StepsProgress/StepsProgress.js +0 -95
  717. package/dist/StepsProgress/StepsProgress.stories.js +0 -23
  718. package/dist/StepsProgress/StepsProgress.styles.js +0 -97
  719. package/dist/StokrLoader/StokrLoader.js +0 -60
  720. package/dist/StokrLoader/media.js +0 -22
  721. package/dist/StokrLoader/stokr_loader_white_400x400.gif +0 -0
  722. package/dist/SvgIcons/AdminBadgeSvg.js +0 -16
  723. package/dist/SvgIcons/CameraSvg.js +0 -26
  724. package/dist/SvgIcons/CapsLockSvg.js +0 -21
  725. package/dist/SvgIcons/DocumentBackSvg.js +0 -25
  726. package/dist/SvgIcons/DocumentSmallSvg.js +0 -51
  727. package/dist/SvgIcons/DocumentSvg.js +0 -28
  728. package/dist/SvgIcons/Early.js +0 -14
  729. package/dist/SvgIcons/EthSvg.js +0 -30
  730. package/dist/SvgIcons/EurSvg.js +0 -16
  731. package/dist/SvgIcons/FaceScanIconSvg.js +0 -21
  732. package/dist/SvgIcons/FourSvg.js +0 -11
  733. package/dist/SvgIcons/Glassess.js +0 -19
  734. package/dist/SvgIcons/Icons_Badge.png +0 -0
  735. package/dist/SvgIcons/LogoSvg.js +0 -14
  736. package/dist/SvgIcons/OneSvg.js +0 -13
  737. package/dist/SvgIcons/PassportSvg.js +0 -46
  738. package/dist/SvgIcons/RefreshSvg.js +0 -17
  739. package/dist/SvgIcons/SocialFacebook.js +0 -15
  740. package/dist/SvgIcons/SocialInstagram.js +0 -15
  741. package/dist/SvgIcons/SocialLinkedIn.js +0 -15
  742. package/dist/SvgIcons/SocialMedium.js +0 -15
  743. package/dist/SvgIcons/SocialReddit.js +0 -15
  744. package/dist/SvgIcons/SocialTelegram.js +0 -15
  745. package/dist/SvgIcons/SocialTwitter.js +0 -15
  746. package/dist/SvgIcons/SocialYoutube.js +0 -15
  747. package/dist/SvgIcons/ThreeSvg.js +0 -10
  748. package/dist/SvgIcons/TwoSidedDocumentSvg.js +0 -72
  749. package/dist/SvgIcons/TwoSvg.js +0 -13
  750. package/dist/SvgIcons/UpdateDefaultSvg.js +0 -19
  751. package/dist/SvgIcons/UpdateHardSvg.js +0 -15
  752. package/dist/SvgIcons/UpdateSoftSvg.js +0 -17
  753. package/dist/SvgIcons/UploadSvg.js +0 -24
  754. package/dist/SvgIcons/VerifiedBadge.js +0 -13
  755. package/dist/SvgIcons/index.js +0 -32
  756. package/dist/Switch/Switch.js +0 -45
  757. package/dist/Switch/Switch.stories.js +0 -73
  758. package/dist/Switch/Switch.styles.js +0 -105
  759. package/dist/Tabs/Tabs.js +0 -48
  760. package/dist/Tabs/Tabs.stories.js +0 -28
  761. package/dist/Tabs/Tabs.styles.js +0 -11
  762. package/dist/TabsNav/TabNav.js +0 -21
  763. package/dist/TabsNav/TabNav.stories.js +0 -32
  764. package/dist/TabsNav/TabsNav.js +0 -23
  765. package/dist/TabsNav/TabsNav.stories.js +0 -25
  766. package/dist/TabsNav/TabsNav.styles.js +0 -80
  767. package/dist/TeamOverview/TeamOverview.js +0 -69
  768. package/dist/TeamOverview/TeamOverview.stories.js +0 -68
  769. package/dist/TeamOverview/TeamOverview.styles.js +0 -152
  770. package/dist/Text/Headline.js +0 -34
  771. package/dist/Text/Headline.stories.js +0 -40
  772. package/dist/Text/StyledText.js +0 -30
  773. package/dist/Text/Text.stories.js +0 -59
  774. package/dist/Text/Text.styles.js +0 -166
  775. package/dist/TextLink/TextLink.styles.js +0 -50
  776. package/dist/ToDoList/ToDoList.js +0 -172
  777. package/dist/ToDoList/ToDoList.stories.js +0 -123
  778. package/dist/ToDoList/ToDoList.styles.js +0 -115
  779. package/dist/ToDoList/ToDoListTask.js +0 -96
  780. package/dist/ToDoList/ToDoListTask.stories.js +0 -60
  781. package/dist/ToDoList/ToDoListTask.styles.js +0 -104
  782. package/dist/TransactionDetails/TransactionDetails.js +0 -27
  783. package/dist/TransactionDetails/TransactionDetails.stories.js +0 -47
  784. package/dist/TransactionDetails/TransactionDetails.styles.js +0 -31
  785. package/dist/TransactionInfo/TransactionInfo.js +0 -48
  786. package/dist/TransactionInfo/TransactionInfo.stories.js +0 -53
  787. package/dist/TransactionInfo/TransactionInfo.styles.js +0 -64
  788. package/dist/TwoFactorModal/TwoFactorModal.js +0 -84
  789. package/dist/breakdown/Breakdown.js +0 -124
  790. package/dist/breakdown/index.js +0 -2
  791. package/dist/context/Auth.js +0 -133
  792. package/dist/context/AuthContext.js +0 -154
  793. package/dist/icons/Arrow.js +0 -62
  794. package/dist/icons/Arrow.stories.js +0 -37
  795. package/dist/icons/ArrowSimple.js +0 -51
  796. package/dist/icons/ArrowSimple.stories.js +0 -41
  797. package/dist/icons/Check.js +0 -29
  798. package/dist/icons/Check.stories.js +0 -14
  799. package/dist/icons/Facebook.js +0 -15
  800. package/dist/icons/Facebook.stories.js +0 -15
  801. package/dist/icons/Info.js +0 -41
  802. package/dist/icons/Info.stories.js +0 -8
  803. package/dist/icons/Instagram.js +0 -15
  804. package/dist/icons/Instagram.stories.js +0 -15
  805. package/dist/icons/LinkIcon.js +0 -23
  806. package/dist/icons/LinkIcon.stories.js +0 -15
  807. package/dist/icons/LinkedIn.js +0 -29
  808. package/dist/icons/LinkedIn.stories.js +0 -8
  809. package/dist/icons/Medium.js +0 -28
  810. package/dist/icons/Medium.stories.js +0 -8
  811. package/dist/icons/Reddit.js +0 -18
  812. package/dist/icons/Reddit.stories.js +0 -15
  813. package/dist/icons/Share.js +0 -48
  814. package/dist/icons/Share.stories.js +0 -8
  815. package/dist/icons/Telegram.js +0 -28
  816. package/dist/icons/Telegram.stories.js +0 -8
  817. package/dist/icons/Twitter.js +0 -15
  818. package/dist/icons/Twitter.stories.js +0 -15
  819. package/dist/icons/X.js +0 -15
  820. package/dist/icons/X.stories.js +0 -8
  821. package/dist/icons/Youtube.js +0 -15
  822. package/dist/icons/Youtube.stories.js +0 -15
  823. package/dist/icons/index.js +0 -15
  824. package/dist/renderToBody/index.js +0 -2
  825. package/dist/renderToBody/renderToBody.js +0 -26
  826. package/dist/taxId/TaxId.stories.js +0 -29
  827. package/dist/taxId/complete.js +0 -21
  828. package/dist/taxId/flow.js +0 -31
  829. package/dist/taxId/index.js +0 -4
  830. package/dist/taxId/register-taxid.js +0 -156
  831. package/dist/video/Video.js +0 -274
  832. package/dist/video/Video.stories.js +0 -45
  833. package/dist/video/img/play-btn.svg +0 -1
  834. package/dist/video/index.js +0 -2
  835. package/public/favicon.ico +0 -0
  836. package/public/index.html +0 -43
  837. package/public/logo192.png +0 -0
  838. package/public/logo512.png +0 -0
  839. package/public/manifest.json +0 -25
  840. package/public/robots.txt +0 -3
  841. package/react-scripts +0 -0
@@ -0,0 +1,781 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Analytic = void 0;
7
+ var _Matomo = _interopRequireDefault(require("components/MatomoConnect/Matomo"));
8
+ var Moment = _interopRequireWildcard(require("moment"));
9
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
14
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
15
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
22
+ var matomoConnect = new _Matomo.default();
23
+ var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
24
+ var monthsShort = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
25
+ var Analytic = /*#__PURE__*/function () {
26
+ function Analytic() {
27
+ _classCallCheck(this, Analytic);
28
+ _defineProperty(this, "CURRENT_DATE", void 0);
29
+ _defineProperty(this, "START_DATE", void 0);
30
+ _defineProperty(this, "VISITS_SUMMARY", {});
31
+ _defineProperty(this, "TOTAL_SUMMARY", {});
32
+ this.CURRENT_DATE = new Moment();
33
+ this.START_DATE = this.CURRENT_DATE.clone().subtract(2, 'months');
34
+ this.getSummary();
35
+ }
36
+ _createClass(Analytic, [{
37
+ key: "getSummary",
38
+ value: function () {
39
+ var _getSummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
40
+ var _this = this;
41
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
42
+ while (1) switch (_context.prev = _context.next) {
43
+ case 0:
44
+ this.TOTAL_SUMMARY = {
45
+ visits: 0,
46
+ bounce_count: 0,
47
+ visit_length: 0,
48
+ unique_visitors: 0,
49
+ avg_time_on_site: 0
50
+ };
51
+ _context.next = 3;
52
+ return matomoConnect.init(matomoConnect.GetVisitsSummary, 'month', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
53
+ case 3:
54
+ this.VISITS_SUMMARY = _context.sent;
55
+ console.log('visits summary: ', this.VISITS_SUMMARY);
56
+ Object.keys(this.VISITS_SUMMARY).forEach(function (key) {
57
+ _this.TOTAL_SUMMARY.visits += _this.VISITS_SUMMARY[key].nb_visits || 0;
58
+ _this.TOTAL_SUMMARY.bounce_count += _this.VISITS_SUMMARY[key].bounce_count || 0;
59
+ _this.TOTAL_SUMMARY.visit_length += _this.VISITS_SUMMARY[key].sum_visit_length || 0;
60
+ _this.TOTAL_SUMMARY.unique_visitors += _this.VISITS_SUMMARY[key].nb_uniq_visitors || 0;
61
+ _this.TOTAL_SUMMARY.avg_time_on_site += _this.VISITS_SUMMARY[key].avg_time_on_site || 0;
62
+ });
63
+ case 6:
64
+ case "end":
65
+ return _context.stop();
66
+ }
67
+ }, _callee, this);
68
+ }));
69
+ function getSummary() {
70
+ return _getSummary.apply(this, arguments);
71
+ }
72
+ return getSummary;
73
+ }()
74
+ }, {
75
+ key: "getBasicGraphs",
76
+ value: function () {
77
+ var _getBasicGraphs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
78
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
79
+ while (1) switch (_context2.prev = _context2.next) {
80
+ case 0:
81
+ return _context2.abrupt("return", [this.getTotalVisitsBasicGraph(), this.getBounceRateBasicGraph(), this.getVisitDurationBasicGraph()]);
82
+ case 1:
83
+ case "end":
84
+ return _context2.stop();
85
+ }
86
+ }, _callee2, this);
87
+ }));
88
+ function getBasicGraphs() {
89
+ return _getBasicGraphs.apply(this, arguments);
90
+ }
91
+ return getBasicGraphs;
92
+ }()
93
+ }, {
94
+ key: "getTotalVisitsBasicGraph",
95
+ value: function getTotalVisitsBasicGraph() {
96
+ var _this2 = this;
97
+ var totalVisitsChartData = [];
98
+ Object.keys(this.VISITS_SUMMARY).forEach(function (key) {
99
+ totalVisitsChartData.push({
100
+ date: totalVisitsChartData.length + 1,
101
+ value: _this2.VISITS_SUMMARY[key].nb_visits ? _this2.VISITS_SUMMARY[key].nb_visits : 0
102
+ });
103
+ });
104
+ var visitsSummaryKeys = Object.keys(this.VISITS_SUMMARY);
105
+ var previousMonth = this.VISITS_SUMMARY[visitsSummaryKeys[visitsSummaryKeys.length - 2]];
106
+ var lastMonth = this.VISITS_SUMMARY[visitsSummaryKeys[visitsSummaryKeys.length - 1]];
107
+ var totalVisitsIncrease = Analytic.getIncrease(previousMonth && previousMonth.nb_visits ? previousMonth.nb_visits : 0, lastMonth && lastMonth.nb_visits ? lastMonth.nb_visits : 0);
108
+ return {
109
+ id: 'totalVisitsStat',
110
+ title: 'total visits',
111
+ value: this.TOTAL_SUMMARY.visits.toString(),
112
+ percent: isNaN(totalVisitsIncrease) ? 0 : parseFloat(parseFloat(totalVisitsIncrease).toFixed(1)),
113
+ chart: {
114
+ id: 'totalVisitsGraph',
115
+ fill: '#fee8e8',
116
+ stroke: '#ee220d',
117
+ data: totalVisitsChartData
118
+ }
119
+ };
120
+ }
121
+ }, {
122
+ key: "getBounceRateBasicGraph",
123
+ value: function getBounceRateBasicGraph() {
124
+ var _this3 = this;
125
+ var bounceRateData = [];
126
+ Object.keys(this.VISITS_SUMMARY).forEach(function (key) {
127
+ bounceRateData.push({
128
+ date: bounceRateData.length + 1,
129
+ value: _this3.VISITS_SUMMARY[key].bounce_count ? _this3.VISITS_SUMMARY[key].bounce_count : 0
130
+ });
131
+ });
132
+ var visitsSummaryKeys = Object.keys(this.VISITS_SUMMARY);
133
+ var firstMonth = this.VISITS_SUMMARY[visitsSummaryKeys.shift()];
134
+ var lastMonth = this.VISITS_SUMMARY[visitsSummaryKeys[visitsSummaryKeys.length - 1]];
135
+ var bounceRateIncrease = Analytic.getIncrease(firstMonth && firstMonth.bounce_count ? firstMonth.bounce_count : 0, lastMonth && lastMonth.bounce_count ? lastMonth.bounce_count : 0);
136
+ var bounceRate = Analytic.getPercent(this.TOTAL_SUMMARY.bounce_count, this.TOTAL_SUMMARY.visits);
137
+ return {
138
+ id: 'bounceRateStat',
139
+ title: 'bounce rate',
140
+ value: "".concat(bounceRate, "%"),
141
+ percent: isNaN(bounceRateIncrease) ? 0 : parseFloat(parseFloat(bounceRateIncrease).toFixed(1)),
142
+ chart: {
143
+ id: 'bounceRateGraph',
144
+ fill: '#eff8ec',
145
+ stroke: '#69bd53',
146
+ data: bounceRateData
147
+ }
148
+ };
149
+ }
150
+ }, {
151
+ key: "getVisitDurationBasicGraph",
152
+ value: function getVisitDurationBasicGraph() {
153
+ var _this4 = this;
154
+ var visitDurationData = [];
155
+ Object.keys(this.VISITS_SUMMARY).forEach(function (key) {
156
+ visitDurationData.push({
157
+ date: visitDurationData.length + 1,
158
+ value: _this4.VISITS_SUMMARY[key].avg_time_on_site ? _this4.VISITS_SUMMARY[key].avg_time_on_site : 0
159
+ });
160
+ });
161
+ var visitsSummaryKeys = Object.keys(this.VISITS_SUMMARY);
162
+ var firstMonth = this.VISITS_SUMMARY[visitsSummaryKeys.shift()];
163
+ var lastMonth = this.VISITS_SUMMARY[visitsSummaryKeys[visitsSummaryKeys.length - 1]];
164
+ var visitDurationIncrease = Analytic.getIncrease(firstMonth && firstMonth.avg_time_on_site ? firstMonth.avg_time_on_site : 0, lastMonth && lastMonth.avg_time_on_site ? lastMonth.avg_time_on_site : 0);
165
+ var value = new Moment().startOf('day').seconds(this.TOTAL_SUMMARY.avg_time_on_site);
166
+ return {
167
+ id: 'visitDurationStat',
168
+ title: 'avg. visit duration',
169
+ value: Analytic.getTimeSpent(value),
170
+ percent: isNaN(visitDurationIncrease) ? 0 : parseFloat(parseFloat(visitDurationIncrease).toFixed(1)),
171
+ chart: {
172
+ id: 'visitDurationGraph',
173
+ fill: '#f0f0f0',
174
+ stroke: '#2f2f2f',
175
+ data: visitDurationData
176
+ }
177
+ };
178
+ }
179
+ }, {
180
+ key: "getCountryGraph",
181
+ value: function () {
182
+ var _getCountryGraph = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
183
+ var graphData, countries, countriesByMonth;
184
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
185
+ while (1) switch (_context3.prev = _context3.next) {
186
+ case 0:
187
+ graphData = [];
188
+ _context3.next = 3;
189
+ return matomoConnect.init(matomoConnect.GetCountrySummary, 'range', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
190
+ case 3:
191
+ countries = _context3.sent;
192
+ _context3.next = 6;
193
+ return matomoConnect.init(matomoConnect.GetCountrySummary, 'month', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
194
+ case 6:
195
+ countriesByMonth = _context3.sent;
196
+ countries.forEach(function (value, key) {
197
+ var bounceRateData = [];
198
+ var bounceRate = value.bounce_count * 100 / value.nb_visits;
199
+ bounceRate = parseFloat(bounceRate).toFixed(2);
200
+ Object.keys(countriesByMonth).forEach(function (byMonthKey) {
201
+ var object = {
202
+ date: bounceRateData.length + 1
203
+ };
204
+ countriesByMonth[byMonthKey].forEach(function (cv) {
205
+ if (cv.code === value.code) {
206
+ object.value = cv && cv.bounce_count ? cv.bounce_count : 0;
207
+ }
208
+ });
209
+ if (!object.value) {
210
+ object.value = 0;
211
+ }
212
+ bounceRateData.push(object);
213
+ });
214
+ graphData.push({
215
+ id: key,
216
+ country: value.code,
217
+ country_name: value.label,
218
+ visits: value.nb_visits,
219
+ unique_visitors: value.sum_daily_nb_uniq_visitors,
220
+ flag_url: "".concat(matomoConnect.MATOMO_API_URL, "/").concat(value.logo),
221
+ bounce_rate: "".concat(bounceRate, "%"),
222
+ chart: {
223
+ id: "countryChart".concat(key),
224
+ fill: '#E4ECF9',
225
+ stroke: '#0050CA',
226
+ data: bounceRateData
227
+ }
228
+ });
229
+ });
230
+ return _context3.abrupt("return", graphData);
231
+ case 9:
232
+ case "end":
233
+ return _context3.stop();
234
+ }
235
+ }, _callee3, this);
236
+ }));
237
+ function getCountryGraph() {
238
+ return _getCountryGraph.apply(this, arguments);
239
+ }
240
+ return getCountryGraph;
241
+ }()
242
+ }, {
243
+ key: "getSocialGraph",
244
+ value: function () {
245
+ var _getSocialGraph = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
246
+ var _this5 = this;
247
+ var graphData, socials;
248
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
249
+ while (1) switch (_context4.prev = _context4.next) {
250
+ case 0:
251
+ graphData = [];
252
+ _context4.next = 3;
253
+ return matomoConnect.init(matomoConnect.GetSocialSummary, 'range', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
254
+ case 3:
255
+ socials = _context4.sent;
256
+ socials.forEach(function (value, key) {
257
+ var progress = value.sum_daily_nb_uniq_visitors * 100 / _this5.TOTAL_SUMMARY.unique_visitors;
258
+ progress = parseFloat(progress).toFixed(2);
259
+ graphData.push({
260
+ id: key,
261
+ network: "".concat(value.label.charAt(0).toUpperCase()).concat(value.label.slice(1)),
262
+ visitors: value.sum_daily_nb_uniq_visitors,
263
+ progress: parseFloat(progress)
264
+ });
265
+ });
266
+ return _context4.abrupt("return", graphData);
267
+ case 6:
268
+ case "end":
269
+ return _context4.stop();
270
+ }
271
+ }, _callee4, this);
272
+ }));
273
+ function getSocialGraph() {
274
+ return _getSocialGraph.apply(this, arguments);
275
+ }
276
+ return getSocialGraph;
277
+ }()
278
+ }, {
279
+ key: "getDeviceGraph",
280
+ value: function () {
281
+ var _getDeviceGraph = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
282
+ var devices, browsers, models, desktop, android, ios, other, total, donutChart, deviceData, desktopBrowsers, desktopBrowsersTotal, iosModels, iosTotal, androidModels, androidTotal;
283
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
284
+ while (1) switch (_context5.prev = _context5.next) {
285
+ case 0:
286
+ _context5.next = 2;
287
+ return matomoConnect.init(matomoConnect.GetDeviceOsFamilies, 'range', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
288
+ case 2:
289
+ devices = _context5.sent;
290
+ _context5.next = 5;
291
+ return matomoConnect.init(matomoConnect.GetDeviceBrowsers, 'range', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
292
+ case 5:
293
+ browsers = _context5.sent;
294
+ _context5.next = 8;
295
+ return matomoConnect.init(matomoConnect.GetDeviceModels, 'range', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
296
+ case 8:
297
+ models = _context5.sent;
298
+ desktop = 0;
299
+ android = 0;
300
+ ios = 0;
301
+ other = 0;
302
+ total = 0;
303
+ devices.forEach(function (value, key) {
304
+ if (value.label === 'Android') {
305
+ android += value.nb_visits;
306
+ }
307
+ if (value.label === 'iOS') {
308
+ ios += value.nb_visits;
309
+ }
310
+ if (value.label === 'Windows' || value.label === 'Mac' || value.label === 'GNU/Linux') {
311
+ desktop += value.nb_visits;
312
+ }
313
+ if (!['Windows', 'Mac', 'GNU/Linux', 'Android', 'iOS'].includes(value.label)) {
314
+ other += value.nb_visits;
315
+ }
316
+ });
317
+ total = android + ios + desktop + other;
318
+ donutChart = [{
319
+ name: 'Android',
320
+ value: android,
321
+ color: '#0050CA'
322
+ }, {
323
+ name: 'Other',
324
+ value: other,
325
+ color: '#69BD53'
326
+ }, {
327
+ name: 'IOS',
328
+ value: ios,
329
+ color: '#CEDDF5'
330
+ }, {
331
+ name: 'Desktop',
332
+ value: desktop,
333
+ color: '#EE220D'
334
+ }];
335
+ deviceData = {
336
+ Android: {
337
+ percent: Analytic.getPercent(android, total),
338
+ value: android
339
+ },
340
+ iOS: {
341
+ percent: Analytic.getPercent(ios, total),
342
+ value: ios
343
+ },
344
+ Desktop: {
345
+ percent: Analytic.getPercent(desktop, total),
346
+ value: desktop
347
+ },
348
+ Other: {
349
+ percent: Analytic.getPercent(other, total),
350
+ value: other
351
+ }
352
+ };
353
+ desktopBrowsers = [];
354
+ desktopBrowsersTotal = 0;
355
+ browsers.forEach(function (value, key) {
356
+ if (['Chrome', 'Firefox', 'Safari', 'Opera', 'Internet Explorer', 'Microsoft Edge', 'Vivaldi'].includes(value.label)) {
357
+ desktopBrowsersTotal += value.nb_visits;
358
+ }
359
+ });
360
+ browsers.forEach(function (value, key) {
361
+ if (['Chrome', 'Firefox', 'Safari', 'Opera', 'Internet Explorer', 'Microsoft Edge', 'Vivaldi'].includes(value.label)) {
362
+ desktopBrowsers.push({
363
+ label: value.label,
364
+ value: "".concat(value.nb_visits, " (").concat(Analytic.getPercent(value.nb_visits, desktopBrowsersTotal), "%)")
365
+ });
366
+ }
367
+ });
368
+ iosModels = [];
369
+ iosTotal = 0;
370
+ androidModels = [];
371
+ androidTotal = 0;
372
+ models.forEach(function (value, key) {
373
+ if (!value.label.includes('Generic') && value.label.includes('Apple')) {
374
+ iosTotal += value.nb_visits;
375
+ }
376
+ if (!value.label.includes('Generic') && !value.label.includes('Apple')) {
377
+ androidTotal += value.nb_visits;
378
+ }
379
+ });
380
+ models.forEach(function (value, key) {
381
+ if (!value.label.includes('Generic') && value.label.includes('Apple')) {
382
+ iosModels.push({
383
+ label: value.label,
384
+ value: "".concat(value.nb_visits, " (").concat(Analytic.getPercent(value.nb_visits, iosTotal), "%)")
385
+ });
386
+ }
387
+ if (!value.label.includes('Generic') && !value.label.includes('Apple')) {
388
+ androidModels.push({
389
+ label: value.label,
390
+ value: "".concat(value.nb_visits, " (").concat(Analytic.getPercent(value.nb_visits, androidTotal), "%)")
391
+ });
392
+ }
393
+ });
394
+ return _context5.abrupt("return", {
395
+ donutChart: donutChart,
396
+ deviceData: deviceData,
397
+ desktopBrowsers: desktopBrowsers,
398
+ iosModels: iosModels,
399
+ androidModels: androidModels
400
+ });
401
+ case 29:
402
+ case "end":
403
+ return _context5.stop();
404
+ }
405
+ }, _callee5, this);
406
+ }));
407
+ function getDeviceGraph() {
408
+ return _getDeviceGraph.apply(this, arguments);
409
+ }
410
+ return getDeviceGraph;
411
+ }()
412
+ }, {
413
+ key: "getMonthSlider",
414
+ value: function () {
415
+ var _getMonthSlider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
416
+ var response, data;
417
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
418
+ while (1) switch (_context6.prev = _context6.next) {
419
+ case 0:
420
+ _context6.next = 2;
421
+ return matomoConnect.init(matomoConnect.GetVisitsSummary, 'day', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
422
+ case 2:
423
+ response = _context6.sent;
424
+ data = [];
425
+ Object.keys(response).forEach(function (key) {
426
+ var month = key.split('-');
427
+ var check = false;
428
+ data.forEach(function (value, k) {
429
+ if (value.title === "".concat(months[parseInt(month[1], 10) - 1], " ").concat(month[0])) {
430
+ check = true;
431
+ }
432
+ });
433
+ if (!check) {
434
+ data.push({
435
+ title: "".concat(months[parseInt(month[1], 10) - 1], " ").concat(month[0]),
436
+ values: [],
437
+ total: 0
438
+ });
439
+ }
440
+ data.forEach(function (value, k) {
441
+ if (value.title === "".concat(months[parseInt(month[1], 10) - 1], " ").concat(month[0])) {
442
+ value.values.push({
443
+ name: key.split('-')[2],
444
+ value: response[key].nb_uniq_visitors ? response[key].nb_uniq_visitors : 0
445
+ });
446
+ value.total += response[key].nb_uniq_visitors ? response[key].nb_uniq_visitors : 0;
447
+ }
448
+ });
449
+ });
450
+ return _context6.abrupt("return", data.reverse());
451
+ case 6:
452
+ case "end":
453
+ return _context6.stop();
454
+ }
455
+ }, _callee6, this);
456
+ }));
457
+ function getMonthSlider() {
458
+ return _getMonthSlider.apply(this, arguments);
459
+ }
460
+ return getMonthSlider;
461
+ }()
462
+ }, {
463
+ key: "getYearSlider",
464
+ value: function () {
465
+ var _getYearSlider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
466
+ var data, response;
467
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
468
+ while (1) switch (_context7.prev = _context7.next) {
469
+ case 0:
470
+ data = [];
471
+ _context7.next = 3;
472
+ return this.getMonthSlider();
473
+ case 3:
474
+ response = _context7.sent;
475
+ response && response.reverse().forEach(function (month) {
476
+ var year = month.title.split(' ');
477
+ var check = false;
478
+ data.forEach(function (value, k) {
479
+ if (value.title === "".concat(year[1])) {
480
+ check = true;
481
+ }
482
+ });
483
+ if (!check) {
484
+ data.push({
485
+ title: "".concat(year[1]),
486
+ values: []
487
+ });
488
+ }
489
+ data.forEach(function (value, k) {
490
+ if (value.title === "".concat(year[1])) {
491
+ value.values.push({
492
+ name: "".concat(year[0]),
493
+ value: month.total || 0
494
+ });
495
+ }
496
+ });
497
+ });
498
+ return _context7.abrupt("return", data.reverse());
499
+ case 6:
500
+ case "end":
501
+ return _context7.stop();
502
+ }
503
+ }, _callee7, this);
504
+ }));
505
+ function getYearSlider() {
506
+ return _getYearSlider.apply(this, arguments);
507
+ }
508
+ return getYearSlider;
509
+ }()
510
+ }, {
511
+ key: "getWeekSlider",
512
+ value: function () {
513
+ var _getWeekSlider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
514
+ var response, data;
515
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
516
+ while (1) switch (_context8.prev = _context8.next) {
517
+ case 0:
518
+ _context8.next = 2;
519
+ return matomoConnect.init(matomoConnect.GetVisitsSummary, 'day', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
520
+ case 2:
521
+ response = _context8.sent;
522
+ data = [];
523
+ Object.keys(response).forEach(function (key) {
524
+ var startOfWeek = Moment(key).startOf('isoWeek');
525
+ var endOfWeek = Moment(key).endOf('isoWeek');
526
+ var slicedStartOfWeek = startOfWeek.toString().slice(4, 10); //15)
527
+ var slicedEndOfWeek = endOfWeek.toString().slice(4, 10); //15)
528
+
529
+ var day = Moment(key).format('ddd');
530
+ var check = false;
531
+ data.forEach(function (value, k) {
532
+ if (value.title === "".concat(slicedStartOfWeek, " - ").concat(slicedEndOfWeek)) {
533
+ check = true;
534
+ }
535
+ });
536
+ if (!check) {
537
+ data.push({
538
+ title: "".concat(slicedStartOfWeek, " - ").concat(slicedEndOfWeek),
539
+ values: []
540
+ });
541
+ }
542
+ data.forEach(function (value, k) {
543
+ if (value.title === "".concat(slicedStartOfWeek, " - ").concat(slicedEndOfWeek)) {
544
+ value.values.push({
545
+ name: day,
546
+ value: response[key].nb_uniq_visitors ? response[key].nb_uniq_visitors : 0
547
+ });
548
+ }
549
+ });
550
+ });
551
+ return _context8.abrupt("return", data.reverse());
552
+ case 6:
553
+ case "end":
554
+ return _context8.stop();
555
+ }
556
+ }, _callee8, this);
557
+ }));
558
+ function getWeekSlider() {
559
+ return _getWeekSlider.apply(this, arguments);
560
+ }
561
+ return getWeekSlider;
562
+ }()
563
+ }, {
564
+ key: "getHeatmap",
565
+ value: function () {
566
+ var _getHeatmap = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
567
+ var periods, uniqueData, response, data;
568
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
569
+ while (1) switch (_context9.prev = _context9.next) {
570
+ case 0:
571
+ periods = {
572
+ '00': {
573
+ value: '12AM'
574
+ },
575
+ '01': {
576
+ value: '1AM'
577
+ },
578
+ '02': {
579
+ value: '2AM'
580
+ },
581
+ '03': {
582
+ value: '3AM'
583
+ },
584
+ '04': {
585
+ value: '4AM'
586
+ },
587
+ '05': {
588
+ value: '5AM'
589
+ },
590
+ '06': {
591
+ value: '6AM'
592
+ },
593
+ '07': {
594
+ value: '7AM'
595
+ },
596
+ '08': {
597
+ value: '8AM'
598
+ },
599
+ '09': {
600
+ value: '9AM'
601
+ },
602
+ 10: {
603
+ value: '10AM'
604
+ },
605
+ 11: {
606
+ value: '11AM'
607
+ },
608
+ 12: {
609
+ value: '12PM'
610
+ },
611
+ 13: {
612
+ value: '1PM'
613
+ },
614
+ 14: {
615
+ value: '2PM'
616
+ },
617
+ 15: {
618
+ value: '3PM'
619
+ },
620
+ 16: {
621
+ value: '4PM'
622
+ },
623
+ 17: {
624
+ value: '5PM'
625
+ },
626
+ 18: {
627
+ value: '6PM'
628
+ },
629
+ 19: {
630
+ value: '7PM'
631
+ },
632
+ 20: {
633
+ value: '8PM'
634
+ },
635
+ 21: {
636
+ value: '9PM'
637
+ },
638
+ 22: {
639
+ value: '10PM'
640
+ },
641
+ 23: {
642
+ value: '11PM'
643
+ },
644
+ 24: {
645
+ value: '12PM'
646
+ }
647
+ };
648
+ uniqueData = {};
649
+ _context9.next = 4;
650
+ return matomoConnect.init(matomoConnect.GetVisitTimePerLocalTime, 'day', "".concat(this.START_DATE.format('YYYY-MM-DD'), ",").concat(this.CURRENT_DATE.format('YYYY-MM-DD')));
651
+ case 4:
652
+ response = _context9.sent;
653
+ Object.keys(response).forEach(function (key) {
654
+ var time = new Moment(key);
655
+ response[key].forEach(function (hour, k) {
656
+ var day = time.format('ddd').toUpperCase();
657
+ var uniqueId = "".concat(day, "-").concat(hour.label);
658
+ if (uniqueData[uniqueId] !== undefined) {
659
+ var datum = uniqueData[uniqueId];
660
+ // calculate an average value for all redundant data
661
+ datum.value = (datum.dataCount * datum.value + hour.nb_uniq_visitors) / (datum.dataCount + 1);
662
+ datum.dataCount += 1;
663
+ } else {
664
+ uniqueData[uniqueId] = {
665
+ group: day,
666
+ variable: periods[hour.label].value,
667
+ value: hour.nb_uniq_visitors,
668
+ dataCount: 1
669
+ };
670
+ }
671
+ });
672
+ });
673
+ data = Object.keys(uniqueData).map(function (uniqueId) {
674
+ var datum = uniqueData[uniqueId];
675
+ return {
676
+ group: datum.group,
677
+ variable: datum.variable,
678
+ value: datum.value
679
+ };
680
+ });
681
+ return _context9.abrupt("return", data);
682
+ case 8:
683
+ case "end":
684
+ return _context9.stop();
685
+ }
686
+ }, _callee9, this);
687
+ }));
688
+ function getHeatmap() {
689
+ return _getHeatmap.apply(this, arguments);
690
+ }
691
+ return getHeatmap;
692
+ }()
693
+ }], [{
694
+ key: "getRealTimeUsersBasicGraph",
695
+ value: function () {
696
+ var _getRealTimeUsersBasicGraph = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
697
+ var lastMinute, lastHour, last2Hours, increase, object;
698
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
699
+ while (1) switch (_context10.prev = _context10.next) {
700
+ case 0:
701
+ _context10.next = 2;
702
+ return matomoConnect.init(matomoConnect.LiveGetCounters, 10, 'visitors');
703
+ case 2:
704
+ lastMinute = _context10.sent;
705
+ _context10.next = 5;
706
+ return matomoConnect.init(matomoConnect.LiveGetCounters, 60, 'visitors');
707
+ case 5:
708
+ lastHour = _context10.sent;
709
+ _context10.next = 8;
710
+ return matomoConnect.init(matomoConnect.LiveGetCounters, 120, 'visitors');
711
+ case 8:
712
+ last2Hours = _context10.sent;
713
+ increase = Analytic.getIncrease(last2Hours, lastMinute);
714
+ object = {
715
+ id: 'realTimeUsersStat',
716
+ title: 'realtime users',
717
+ value: lastMinute.toString(),
718
+ percent: isNaN(increase) ? 0 : parseFloat(parseFloat(increase).toFixed(1)),
719
+ chart: {
720
+ id: 'realTimeUsersChart',
721
+ fill: '#e4ecf9',
722
+ stroke: '#0050ca',
723
+ data: [{
724
+ date: 1,
725
+ value: last2Hours
726
+ }, {
727
+ date: 2,
728
+ value: lastHour
729
+ }, {
730
+ date: 3,
731
+ value: lastMinute
732
+ }]
733
+ }
734
+ };
735
+ return _context10.abrupt("return", object);
736
+ case 12:
737
+ case "end":
738
+ return _context10.stop();
739
+ }
740
+ }, _callee10);
741
+ }));
742
+ function getRealTimeUsersBasicGraph() {
743
+ return _getRealTimeUsersBasicGraph.apply(this, arguments);
744
+ }
745
+ return getRealTimeUsersBasicGraph;
746
+ }()
747
+ }, {
748
+ key: "getPercent",
749
+ value: function getPercent(number, total) {
750
+ var percent = number * 100 / total;
751
+ percent = parseFloat(percent).toFixed(2);
752
+ return isNaN(parseFloat(percent)) ? 0 : parseFloat(percent);
753
+ }
754
+ }, {
755
+ key: "getIncrease",
756
+ value: function getIncrease() {
757
+ var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
758
+ var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
759
+ var increase = max - min;
760
+ increase = increase / min * 100;
761
+ return increase === Infinity && increase > 100 ? 100 : increase;
762
+ }
763
+ }, {
764
+ key: "getTimeSpent",
765
+ value: function getTimeSpent(value) {
766
+ var hours = '';
767
+ var minutes = '';
768
+ if (value.format('H') !== 0) {
769
+ hours = "".concat(value.format('H'), "h ");
770
+ }
771
+ if (value.format('m') !== 0) {
772
+ minutes = "".concat(value.format('m'), "m ");
773
+ }
774
+ return "".concat(hours).concat(minutes).concat(value.format('s'), "s");
775
+ }
776
+ }]);
777
+ return Analytic;
778
+ }();
779
+ exports.Analytic = Analytic;
780
+ var _default = Analytic;
781
+ exports.default = _default;