@stokr/components-library 2.3.65-beta.10 → 2.3.65-beta.12

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 (208) hide show
  1. package/dist/components/Chips/Chip.styles.js +3 -2
  2. package/dist/components/Input/MultiSelect.js +10 -8
  3. package/dist/components/Input/TableFilterDropdown.js +210 -0
  4. package/dist/components/Payment/PaymentDetailsCard.js +5 -2
  5. package/dist/components/Snackbar/Snackbar.js +3 -0
  6. package/dist/components/Snackbar/Snackbar.styles.js +18 -9
  7. package/dist/components/StatusTag/StatusTag.js +19 -9
  8. package/dist/components/StatusTag/StatusTag.styles.js +4 -4
  9. package/dist/components/Timeline/Timeline.styles.js +1 -1
  10. package/dist/components/Timeline/TimelineStep.js +0 -1
  11. package/dist/static/images/filter-icon.svg +6 -0
  12. package/package.json +3 -2
  13. package/dist/components/2FA/EnterCode.stories.js +0 -35
  14. package/dist/components/2FA/disable-2fa-flow.stories.js +0 -31
  15. package/dist/components/2FA/enable-2fa-flow.stories.js +0 -31
  16. package/dist/components/2FA/login-with-otp-flow.stories.js +0 -31
  17. package/dist/components/2FA/main-flow.stories.js +0 -162
  18. package/dist/components/AccountBalance/AccountBalance.stories.js +0 -83
  19. package/dist/components/AdminDashboard/Table/ReactTable.stories.js +0 -913
  20. package/dist/components/AgreementItem/AgreementItem.stories.js +0 -105
  21. package/dist/components/AnalyticGraphs/Analytic.js +0 -541
  22. package/dist/components/AnalyticGraphs/Analytic.styles.js +0 -25
  23. package/dist/components/BackButton/BackButton.stories.js +0 -32
  24. package/dist/components/Background/Background.stories.js +0 -75
  25. package/dist/components/BarChart/BarChart.js +0 -263
  26. package/dist/components/BarChart/BarChart.stories.js +0 -66
  27. package/dist/components/BarChart/BarChart.styles.js +0 -26
  28. package/dist/components/BarChartLegend/BarChartLegend.js +0 -79
  29. package/dist/components/BarChartLegend/BarChartLegend.styles.js +0 -21
  30. package/dist/components/BasicTable/BasicTable.stories.js +0 -59
  31. package/dist/components/BlogPost/BlogPost.stories.js +0 -160
  32. package/dist/components/Button/Button.stories.js +0 -146
  33. package/dist/components/Button/GlareButton.stories.js +0 -132
  34. package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +0 -42
  35. package/dist/components/ChartBox/ChartBox.js +0 -41
  36. package/dist/components/ChartBox/ChartBox.stories.js +0 -17
  37. package/dist/components/ChartBox/ChartBox.styles.js +0 -27
  38. package/dist/components/ChartBox/ChartBoxDistribution.js +0 -27
  39. package/dist/components/ChartBox/ChartBoxDistribution.stories.js +0 -18
  40. package/dist/components/ChartLegend/ChartLegend.stories.js +0 -90
  41. package/dist/components/Checkbox/Checkbox.stories.js +0 -88
  42. package/dist/components/Checklist/ChecklistCard.stories.js +0 -102
  43. package/dist/components/Checklist/UserChecklist.js +0 -184
  44. package/dist/components/Checklist/UserChecklist.stories.js +0 -317
  45. package/dist/components/Chips/Chip.stories.js +0 -36
  46. package/dist/components/Chips/ChipsWrapper.stories.js +0 -47
  47. package/dist/components/ComponentScroll/ComponentScroll.stories.js +0 -111
  48. package/dist/components/CryptoAddress/CryptoAddress.stories.js +0 -205
  49. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +0 -70
  50. package/dist/components/DonutChart/DonutChart.stories.js +0 -54
  51. package/dist/components/FAQ/FAQ.stories.js +0 -76
  52. package/dist/components/Footer/Footer.stories.js +0 -49
  53. package/dist/components/Footer/FooterLayout.stories.js +0 -26
  54. package/dist/components/Footer/FooterMenu.stories.js +0 -113
  55. package/dist/components/Footer/mangopay.png +0 -0
  56. package/dist/components/Footer/mangopay.svg +0 -20
  57. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +0 -69
  58. package/dist/components/Form/Form.stories.js +0 -32
  59. package/dist/components/FullscreenCard/FullscreenCard.styles.js +0 -27
  60. package/dist/components/Header/Header.stories.js +0 -192
  61. package/dist/components/Icon/Icon.stories.js +0 -108
  62. package/dist/components/InfoIcon/InfoIcon.stories.js +0 -299
  63. package/dist/components/InfoPanel/InfoPanel.js +0 -124
  64. package/dist/components/Input/DatePickerInput.stories.js +0 -87
  65. package/dist/components/Input/Input.stories.js +0 -217
  66. package/dist/components/Input/InputPassword.stories.js +0 -80
  67. package/dist/components/Input/InputWithButton.stories.js +0 -75
  68. package/dist/components/Input/MultiSelect.stories.js +0 -264
  69. package/dist/components/Input/OtpInput.stories.js +0 -57
  70. package/dist/components/Input/RangeInput.stories.js +0 -58
  71. package/dist/components/Input/SearchInput.stories.js +0 -366
  72. package/dist/components/Input/Select.stories.js +0 -478
  73. package/dist/components/InvestCalculator/InvestCalculator.stories.js +0 -135
  74. package/dist/components/InvestmentStat/InvestmentStat.stories.js +0 -52
  75. package/dist/components/KYCFlow/BasicInfo.js +0 -448
  76. package/dist/components/KYCFlow/Confirmation.js +0 -46
  77. package/dist/components/KYCFlow/DocumentFileUpload.js +0 -263
  78. package/dist/components/KYCFlow/DocumentScan.js +0 -75
  79. package/dist/components/KYCFlow/DocumentScanUpload.js +0 -251
  80. package/dist/components/KYCFlow/DocumentSelect.js +0 -118
  81. package/dist/components/KYCFlow/DocumentSuccess.js +0 -63
  82. package/dist/components/KYCFlow/DocumentUpload.js +0 -53
  83. package/dist/components/KYCFlow/DocumentVerificationType.js +0 -131
  84. package/dist/components/KYCFlow/FaceScan.js +0 -54
  85. package/dist/components/KYCFlow/FaceScanRecognition.js +0 -61
  86. package/dist/components/KYCFlow/FaceScanSuccess.js +0 -56
  87. package/dist/components/KYCFlow/Terms.js +0 -119
  88. package/dist/components/KYCFlow/_styles.js +0 -111
  89. package/dist/components/KYCFlow/index.js +0 -97
  90. package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +0 -29
  91. package/dist/components/LatestUpdate/LatestUpdate.stories.js +0 -58
  92. package/dist/components/Layout/Layout.stories.js +0 -60
  93. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +0 -66
  94. package/dist/components/LearnMorePage/LearnMore.stories.js +0 -48
  95. package/dist/components/LearnMorePage/LearnMoreItem.stories.js +0 -62
  96. package/dist/components/LearnMoreSection/LearnMore.stories.js +0 -30
  97. package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +0 -59
  98. package/dist/components/LoginModal/LoginModal.stories.js +0 -74
  99. package/dist/components/MatomoConnect/Matomo.js +0 -228
  100. package/dist/components/MatomoConnect/Matomo_fuckup.js +0 -387
  101. package/dist/components/Modal/Modal.stories.js +0 -75
  102. package/dist/components/Modal/NewVentureModal/NewVentureModal.stories.js +0 -150
  103. package/dist/components/Modal/PaymentModal.stories.js +0 -57
  104. package/dist/components/Modal/SideModal.stories.js +0 -342
  105. package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +0 -67
  106. package/dist/components/Newsletter/Newsletter.stories.js +0 -16
  107. package/dist/components/NotificationContext/NotificationContext.js +0 -141
  108. package/dist/components/Number/Number.stories.js +0 -92
  109. package/dist/components/Pagination/Pagination.stories.js +0 -83
  110. package/dist/components/Pagination/PaginationControls.stories.js +0 -112
  111. package/dist/components/Payment/PaymentDetailsCard.stories.js +0 -198
  112. package/dist/components/Payment/PaymentDisplay.stories.js +0 -302
  113. package/dist/components/Payment/TimerComponent.stories.js +0 -236
  114. package/dist/components/Process/Process.stories.js +0 -42
  115. package/dist/components/ProfileBadge/ProfileBadge.stories.js +0 -45
  116. package/dist/components/ProfileBox/ProfileBox.stories.js +0 -35
  117. package/dist/components/ProfileHeader/ProfileHeader.js +0 -252
  118. package/dist/components/ProfileHeader/ProfileHeader.styles.js +0 -65
  119. package/dist/components/ProfileStat/ProfileStat.stories.js +0 -66
  120. package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +0 -53
  121. package/dist/components/QRCode/QRCode.stories.js +0 -104
  122. package/dist/components/Radio/Radio.stories.js +0 -73
  123. package/dist/components/RefreshButton/RefreshButton.stories.js +0 -38
  124. package/dist/components/RegisterAlgorand/AlgoAddressName.js +0 -138
  125. package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +0 -443
  126. package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +0 -47
  127. package/dist/components/RegisterAlgorand/AlgoSuccess.js +0 -38
  128. package/dist/components/RegisterAlgorand/Algorand.stories.js +0 -80
  129. package/dist/components/RegisterAlgorand/ChooseWallet.js +0 -97
  130. package/dist/components/RegisterAlgorand/SelectProject.js +0 -89
  131. package/dist/components/RegisterAlgorand/_styles.js +0 -28
  132. package/dist/components/RegisterAlgorand/flow.js +0 -409
  133. package/dist/components/RegisterAlgorand/flowWithMemo.js +0 -410
  134. package/dist/components/RegisterAlgorand/index.js +0 -48
  135. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +0 -41
  136. package/dist/components/RegisterEthereum/EthAddressLedger.js +0 -226
  137. package/dist/components/RegisterEthereum/EthAddressMetamask.js +0 -204
  138. package/dist/components/RegisterEthereum/EthAddressName.js +0 -135
  139. package/dist/components/RegisterEthereum/EthConnectLedger.js +0 -194
  140. package/dist/components/RegisterEthereum/EthConnectMetamask.js +0 -35
  141. package/dist/components/RegisterEthereum/EthFinish.js +0 -41
  142. package/dist/components/RegisterEthereum/EthIntro.js +0 -95
  143. package/dist/components/RegisterEthereum/_styles.js +0 -28
  144. package/dist/components/RegisterEthereum/index.js +0 -68
  145. package/dist/components/RegisterModal/RegisterModal.stories.js +0 -49
  146. package/dist/components/RequestDataBox/RequestDataBox.stories.js +0 -37
  147. package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +0 -185
  148. package/dist/components/RiskQuestionnaire/_styles.js +0 -15
  149. package/dist/components/SEO/SEO.stories.js +0 -60
  150. package/dist/components/SideLine/SideLine.stories.js +0 -28
  151. package/dist/components/SigningSubflow/SignSubAddressMetamask.js +0 -137
  152. package/dist/components/SigningSubflow/SignSubConnectLedger.js +0 -150
  153. package/dist/components/SigningSubflow/SignSubConnectMetamask.js +0 -137
  154. package/dist/components/SigningSubflow/SignSubIntro.js +0 -55
  155. package/dist/components/SigningSubflow/SignSubSendLedger.js +0 -150
  156. package/dist/components/SigningSubflow/SignSubSendMetamask.js +0 -62
  157. package/dist/components/SigningSubflow/SignSubTransactionLedger.js +0 -161
  158. package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +0 -166
  159. package/dist/components/SigningSubflow/_styles.js +0 -34
  160. package/dist/components/SigningSubflow/index.js +0 -32
  161. package/dist/components/Slider/Slider.stories.js +0 -68
  162. package/dist/components/Snackbar/Snackbar.stories.js +0 -292
  163. package/dist/components/StatusTag/StatusTag.stories.js +0 -262
  164. package/dist/components/StepController/StepController.stories.js +0 -60
  165. package/dist/components/StepController/StepControllerProgress.stories.js +0 -49
  166. package/dist/components/StepsProgress/StepIndicator.stories.js +0 -153
  167. package/dist/components/StepsProgress/StepsProgress.stories.js +0 -49
  168. package/dist/components/Switch/Switch.stories.js +0 -81
  169. package/dist/components/Tabs/Tabs.stories.js +0 -36
  170. package/dist/components/TabsNav/TabNav.stories.js +0 -40
  171. package/dist/components/TabsNav/TabsNav.stories.js +0 -37
  172. package/dist/components/TeamOverview/TeamOverview.stories.js +0 -76
  173. package/dist/components/TermsModal/TermsModal.stories.js +0 -31
  174. package/dist/components/Text/Headline.stories.js +0 -48
  175. package/dist/components/Text/Text.stories.js +0 -70
  176. package/dist/components/TextLink/TextLink.stories.js +0 -35
  177. package/dist/components/Timeline/Timeline.stories.js +0 -393
  178. package/dist/components/ToDoList/ToDoList.stories.js +0 -133
  179. package/dist/components/ToDoList/ToDoListTask.stories.js +0 -70
  180. package/dist/components/TransactionDetails/TransactionDetails.stories.js +0 -55
  181. package/dist/components/TransactionDetails/TransactionDetailsTable.stories.js +0 -305
  182. package/dist/components/TransactionInfo/TransactionInfo.stories.js +0 -61
  183. package/dist/components/TwoFactorModal/TwoFactorModal.js +0 -100
  184. package/dist/components/VerifyEmailModal/VerifyEmailModal.stories.js +0 -59
  185. package/dist/components/headerHo/HeaderHo.stories.js +0 -35
  186. package/dist/components/icons/Arrow.stories.js +0 -42
  187. package/dist/components/icons/ArrowSimple.stories.js +0 -48
  188. package/dist/components/icons/Check.stories.js +0 -22
  189. package/dist/components/icons/Facebook.stories.js +0 -21
  190. package/dist/components/icons/Facebook_Logo.png +0 -0
  191. package/dist/components/icons/Info.stories.js +0 -16
  192. package/dist/components/icons/Instagram.stories.js +0 -21
  193. package/dist/components/icons/LI-In-Bug.png +0 -0
  194. package/dist/components/icons/LinkIcon.stories.js +0 -21
  195. package/dist/components/icons/LinkedIn.stories.js +0 -16
  196. package/dist/components/icons/Medium.stories.js +0 -16
  197. package/dist/components/icons/Reddit.stories.js +0 -21
  198. package/dist/components/icons/Share.stories.js +0 -16
  199. package/dist/components/icons/Telegram-Logo.png +0 -0
  200. package/dist/components/icons/Telegram.stories.js +0 -16
  201. package/dist/components/icons/Twitter.stories.js +0 -21
  202. package/dist/components/icons/X-logo-black.png +0 -0
  203. package/dist/components/icons/X.stories.js +0 -16
  204. package/dist/components/icons/Youtube.stories.js +0 -21
  205. package/dist/components/icons/youtube_social_circle_red.png +0 -0
  206. package/dist/components/logo/Logo.stories.js +0 -260
  207. package/dist/components/taxId/TaxId.stories.js +0 -50
  208. package/dist/components/video/Video.stories.js +0 -52
@@ -1,387 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _axiosMatomo = _interopRequireDefault(require("../../model/axios-matomo"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- 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 e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
11
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
- 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); } }
14
- 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); }); }; }
15
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- 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); } }
17
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
- 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; }
19
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
- 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); }
21
- var Matomo = /*#__PURE__*/function () {
22
- function Matomo() {
23
- _classCallCheck(this, Matomo);
24
- // MATOMO_API_URL = 'https://crafton.matomo.cloud'
25
- // MATOMO_API_URL = 'https://stokr-analytics.matomo.cloud';
26
- _defineProperty(this, "MATOMO_API_URL", process.env.NODE_ENV === 'production' ? '/matomoapi' : 'http://stokr.matomo.cloud');
27
- _defineProperty(this, "MATOMO_SITE_ID", 2);
28
- // MATOMO_AUTH_TOKEN = '8061ac4647615be41dcfa087cfdc157b'
29
- // MATOMO_AUTH_TOKEN = 'b3746314f2556a3ea5110113d310c11f';
30
- _defineProperty(this, "MATOMO_AUTH_TOKEN", 'c3989ca407e65354764eb16bfc0def79');
31
- _defineProperty(this, "MATOMO_DEFAULT_PARAMS", {
32
- module: 'API',
33
- format: 'json',
34
- token_auth: this.MATOMO_AUTH_TOKEN,
35
- idSite: this.MATOMO_SITE_ID
36
- });
37
- }
38
- _createClass(Matomo, [{
39
- key: "LiveGetCounters",
40
- value:
41
- /**
42
- * Get real time counters
43
- * @param lastMinutes
44
- */
45
- function () {
46
- var _LiveGetCounters = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(lastMinutes, column) {
47
- var _this = this;
48
- var response;
49
- return _regeneratorRuntime().wrap(function _callee$(_context) {
50
- while (1) switch (_context.prev = _context.next) {
51
- case 0:
52
- _context.next = 2;
53
- return new Promise(function (resolve) {
54
- _axiosMatomo.default.get(_this.MATOMO_API_URL, {
55
- params: _objectSpread(_objectSpread({}, _this.MATOMO_DEFAULT_PARAMS), {}, {
56
- method: 'Live.getCounters',
57
- lastMinutes: lastMinutes,
58
- showColumns: column
59
- })
60
- }).then(function (response) {
61
- resolve(parseInt(response.data[0][column]));
62
- });
63
- });
64
- case 2:
65
- response = _context.sent;
66
- axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
67
- _context.next = 6;
68
- return response;
69
- case 6:
70
- return _context.abrupt("return", _context.sent);
71
- case 7:
72
- case "end":
73
- return _context.stop();
74
- }
75
- }, _callee);
76
- }));
77
- function LiveGetCounters(_x, _x2) {
78
- return _LiveGetCounters.apply(this, arguments);
79
- }
80
- return LiveGetCounters;
81
- }()
82
- /**
83
- * Get visits summary for date range
84
- * @param range
85
- */
86
- }, {
87
- key: "GetVisitsSummary",
88
- value: function () {
89
- var _GetVisitsSummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(period, date) {
90
- var _this2 = this;
91
- var response;
92
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
93
- while (1) switch (_context2.prev = _context2.next) {
94
- case 0:
95
- _context2.next = 2;
96
- return new Promise(function (resolve) {
97
- _axiosMatomo.default.get(_this2.MATOMO_API_URL, {
98
- params: _objectSpread(_objectSpread({}, _this2.MATOMO_DEFAULT_PARAMS), {}, {
99
- method: 'VisitsSummary.get',
100
- period: period,
101
- date: date
102
- })
103
- }).then(function (response) {
104
- resolve(response.data);
105
- });
106
- });
107
- case 2:
108
- response = _context2.sent;
109
- axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
110
- _context2.next = 6;
111
- return response;
112
- case 6:
113
- return _context2.abrupt("return", _context2.sent);
114
- case 7:
115
- case "end":
116
- return _context2.stop();
117
- }
118
- }, _callee2);
119
- }));
120
- function GetVisitsSummary(_x3, _x4) {
121
- return _GetVisitsSummary.apply(this, arguments);
122
- }
123
- return GetVisitsSummary;
124
- }()
125
- /**
126
- * Get summary per country
127
- * @param range
128
- */
129
- }, {
130
- key: "GetCountrySummary",
131
- value: function () {
132
- var _GetCountrySummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(period, date) {
133
- var _this3 = this;
134
- var response;
135
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
136
- while (1) switch (_context3.prev = _context3.next) {
137
- case 0:
138
- _context3.next = 2;
139
- return new Promise(function (resolve) {
140
- _axiosMatomo.default.get(_this3.MATOMO_API_URL, {
141
- params: _objectSpread(_objectSpread({}, _this3.MATOMO_DEFAULT_PARAMS), {}, {
142
- method: 'UserCountry.getCountry',
143
- period: period,
144
- date: date
145
- })
146
- }).then(function (response) {
147
- resolve(response.data);
148
- });
149
- });
150
- case 2:
151
- response = _context3.sent;
152
- axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
153
- _context3.next = 6;
154
- return response;
155
- case 6:
156
- return _context3.abrupt("return", _context3.sent);
157
- case 7:
158
- case "end":
159
- return _context3.stop();
160
- }
161
- }, _callee3);
162
- }));
163
- function GetCountrySummary(_x5, _x6) {
164
- return _GetCountrySummary.apply(this, arguments);
165
- }
166
- return GetCountrySummary;
167
- }()
168
- /**
169
- * Get summary for social networks
170
- * @param range
171
- */
172
- }, {
173
- key: "GetSocialSummary",
174
- value: function () {
175
- var _GetSocialSummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(period, date) {
176
- var _this4 = this;
177
- var response;
178
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
179
- while (1) switch (_context4.prev = _context4.next) {
180
- case 0:
181
- _context4.next = 2;
182
- return new Promise(function (resolve) {
183
- _axiosMatomo.default.get(_this4.MATOMO_API_URL, {
184
- params: _objectSpread(_objectSpread({}, _this4.MATOMO_DEFAULT_PARAMS), {}, {
185
- method: 'Referrers.getSocials',
186
- period: period,
187
- date: date
188
- })
189
- }).then(function (response) {
190
- resolve(response.data);
191
- });
192
- });
193
- case 2:
194
- response = _context4.sent;
195
- axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
196
- _context4.next = 6;
197
- return response;
198
- case 6:
199
- return _context4.abrupt("return", _context4.sent);
200
- case 7:
201
- case "end":
202
- return _context4.stop();
203
- }
204
- }, _callee4);
205
- }));
206
- function GetSocialSummary(_x7, _x8) {
207
- return _GetSocialSummary.apply(this, arguments);
208
- }
209
- return GetSocialSummary;
210
- }()
211
- /**
212
- * Get summary for os families
213
- * @param range
214
- */
215
- }, {
216
- key: "GetDeviceOsFamilies",
217
- value: function () {
218
- var _GetDeviceOsFamilies = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(period, date) {
219
- var _this5 = this;
220
- var response;
221
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
222
- while (1) switch (_context5.prev = _context5.next) {
223
- case 0:
224
- _context5.next = 2;
225
- return new Promise(function (resolve) {
226
- _axiosMatomo.default.get(_this5.MATOMO_API_URL, {
227
- params: _objectSpread(_objectSpread({}, _this5.MATOMO_DEFAULT_PARAMS), {}, {
228
- method: 'DevicesDetection.getOsFamilies',
229
- period: period,
230
- date: date
231
- })
232
- }).then(function (response) {
233
- resolve(response.data);
234
- });
235
- });
236
- case 2:
237
- response = _context5.sent;
238
- axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
239
- _context5.next = 6;
240
- return response;
241
- case 6:
242
- return _context5.abrupt("return", _context5.sent);
243
- case 7:
244
- case "end":
245
- return _context5.stop();
246
- }
247
- }, _callee5);
248
- }));
249
- function GetDeviceOsFamilies(_x9, _x10) {
250
- return _GetDeviceOsFamilies.apply(this, arguments);
251
- }
252
- return GetDeviceOsFamilies;
253
- }()
254
- /**
255
- * Get summary for browsers
256
- * @param range
257
- */
258
- }, {
259
- key: "GetDeviceBrowsers",
260
- value: function () {
261
- var _GetDeviceBrowsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(period, date) {
262
- var _this6 = this;
263
- var response;
264
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
265
- while (1) switch (_context6.prev = _context6.next) {
266
- case 0:
267
- _context6.next = 2;
268
- return new Promise(function (resolve) {
269
- _axiosMatomo.default.get(_this6.MATOMO_API_URL, {
270
- params: _objectSpread(_objectSpread({}, _this6.MATOMO_DEFAULT_PARAMS), {}, {
271
- method: 'DevicesDetection.getBrowsers',
272
- period: period,
273
- date: date
274
- })
275
- }).then(function (response) {
276
- resolve(response.data);
277
- });
278
- });
279
- case 2:
280
- response = _context6.sent;
281
- axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
282
- _context6.next = 6;
283
- return response;
284
- case 6:
285
- return _context6.abrupt("return", _context6.sent);
286
- case 7:
287
- case "end":
288
- return _context6.stop();
289
- }
290
- }, _callee6);
291
- }));
292
- function GetDeviceBrowsers(_x11, _x12) {
293
- return _GetDeviceBrowsers.apply(this, arguments);
294
- }
295
- return GetDeviceBrowsers;
296
- }()
297
- /**
298
- * Get summary for browsers
299
- * @param range
300
- */
301
- }, {
302
- key: "GetDeviceModels",
303
- value: function () {
304
- var _GetDeviceModels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(period, date) {
305
- var _this7 = this;
306
- var response;
307
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
308
- while (1) switch (_context7.prev = _context7.next) {
309
- case 0:
310
- _context7.next = 2;
311
- return new Promise(function (resolve) {
312
- _axiosMatomo.default.get(_this7.MATOMO_API_URL, {
313
- params: _objectSpread(_objectSpread({}, _this7.MATOMO_DEFAULT_PARAMS), {}, {
314
- method: 'DevicesDetection.getModel',
315
- period: period,
316
- date: date
317
- })
318
- }).then(function (response) {
319
- resolve(response.data);
320
- });
321
- });
322
- case 2:
323
- response = _context7.sent;
324
- axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
325
- _context7.next = 6;
326
- return response;
327
- case 6:
328
- return _context7.abrupt("return", _context7.sent);
329
- case 7:
330
- case "end":
331
- return _context7.stop();
332
- }
333
- }, _callee7);
334
- }));
335
- function GetDeviceModels(_x13, _x14) {
336
- return _GetDeviceModels.apply(this, arguments);
337
- }
338
- return GetDeviceModels;
339
- }()
340
- /**
341
- * Get visit times per local time
342
- * @param range
343
- */
344
- }, {
345
- key: "GetVisitTimePerLocalTime",
346
- value: function () {
347
- var _GetVisitTimePerLocalTime = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(period, date) {
348
- var _this8 = this;
349
- var response;
350
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
351
- while (1) switch (_context8.prev = _context8.next) {
352
- case 0:
353
- _context8.next = 2;
354
- return new Promise(function (resolve) {
355
- _axiosMatomo.default.get(_this8.MATOMO_API_URL, {
356
- params: _objectSpread(_objectSpread({}, _this8.MATOMO_DEFAULT_PARAMS), {}, {
357
- method: 'VisitTime.getVisitInformationPerLocalTime ',
358
- period: period,
359
- date: date
360
- })
361
- }).then(function (response) {
362
- resolve(response.data);
363
- });
364
- });
365
- case 2:
366
- response = _context8.sent;
367
- axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
368
- _context8.next = 6;
369
- return response;
370
- case 6:
371
- return _context8.abrupt("return", _context8.sent);
372
- case 7:
373
- case "end":
374
- return _context8.stop();
375
- }
376
- }, _callee8);
377
- }));
378
- function GetVisitTimePerLocalTime(_x15, _x16) {
379
- return _GetVisitTimePerLocalTime.apply(this, arguments);
380
- }
381
- return GetVisitTimePerLocalTime;
382
- }()
383
- }]);
384
- return Matomo;
385
- }();
386
- var _default = Matomo;
387
- exports.default = _default;
@@ -1,75 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.ModalWithImgThin = exports.ModalWithImgKYC = exports.ModalWithImg = exports.ModalOpen = exports.ModalFullscreen = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _Modal = require("./Modal");
9
- var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
10
- var _SvgIcons = require("../SvgIcons");
11
- var _global = _interopRequireDefault(require("../../styles/global"));
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- var _default = exports.default = {
14
- title: 'Components Library/Modal',
15
- component: _Modal.Modal,
16
- argTypes: {
17
- children: {
18
- type: 'node / array of node',
19
- required: true
20
- },
21
- className: {
22
- type: 'string',
23
- defaultValue: ''
24
- },
25
- fullscreen: {
26
- type: 'boolean',
27
- defaultValue: false
28
- },
29
- kyc: {
30
- type: 'boolean',
31
- defaultValue: false
32
- },
33
- thin: {
34
- type: 'boolean',
35
- defaultValue: false
36
- },
37
- isOpen: {
38
- type: 'boolean',
39
- defaultValue: false
40
- },
41
- onClose: {
42
- type: 'function',
43
- action: 'onClose'
44
- }
45
- }
46
- };
47
- const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_Modal.Modal, args)));
48
- const ModalOpen = exports.ModalOpen = Template.bind({});
49
- ModalOpen.args = {
50
- children: 'I am the Child Element',
51
- isOpen: true
52
- };
53
- const ModalFullscreen = exports.ModalFullscreen = Template.bind({});
54
- ModalFullscreen.args = {
55
- children: 'I am the Child Element and I am Fullscreen',
56
- isOpen: true,
57
- fullscreen: true
58
- };
59
- const ModalWithImg = exports.ModalWithImg = Template.bind({});
60
- ModalWithImg.args = {
61
- children: /*#__PURE__*/_react.default.createElement(_SvgIcons.TwoSvg, null),
62
- isOpen: true
63
- };
64
- const ModalWithImgThin = exports.ModalWithImgThin = Template.bind({});
65
- ModalWithImgThin.args = {
66
- children: /*#__PURE__*/_react.default.createElement(_SvgIcons.TwoSvg, null),
67
- isOpen: true,
68
- thin: true
69
- };
70
- const ModalWithImgKYC = exports.ModalWithImgKYC = Template.bind({});
71
- ModalWithImgKYC.args = {
72
- children: /*#__PURE__*/_react.default.createElement(_SvgIcons.TwoSvg, null),
73
- isOpen: true,
74
- kyc: true
75
- };
@@ -1,150 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.WithTokenProject = exports.WithLongDescription = exports.WithError = exports.WithCustomTitle = exports.Interactive = exports.EquityProject = exports.Default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _NewVentureModal = require("./NewVentureModal");
9
- var _global = _interopRequireDefault(require("../../../styles/global"));
10
- var _AuthContext = require("../../../context/AuthContext");
11
- var _reactRouterDom = require("react-router-dom");
12
- var _CheckboxContext = require("../../../context/Checkbox/CheckboxContext");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
19
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
21
- var _default = exports.default = {
22
- title: 'Components Library/Modal/NewVentureModal',
23
- component: _NewVentureModal.NewVentureModal,
24
- parameters: {
25
- docs: {
26
- description: {
27
- component: 'A modal component for new venture registration with form validation, checkbox management, and user authentication integration.'
28
- }
29
- }
30
- },
31
- argTypes: {
32
- isModalOpen: {
33
- control: 'boolean'
34
- },
35
- title: {
36
- control: 'text'
37
- },
38
- description: {
39
- control: 'text'
40
- },
41
- popupError: {
42
- control: 'text'
43
- },
44
- project: {
45
- control: 'object'
46
- },
47
- successMsg: {
48
- control: 'text'
49
- },
50
- errorMsg: {
51
- control: 'text'
52
- },
53
- modalBotContent: {
54
- control: 'text'
55
- },
56
- onModalClose: {
57
- action: 'modal closed'
58
- },
59
- onFormSend: {
60
- action: 'form submitted'
61
- }
62
- }
63
- }; // Sample project data
64
- const sampleProject = {
65
- _id: 'project-123',
66
- name: 'aquarius',
67
- type: 'fund',
68
- title: 'Aquarius Fund',
69
- description: 'A revolutionary investment opportunity in sustainable technology.'
70
- };
71
- const sampleTokenProject = {
72
- _id: 'project-456',
73
- name: 'tech-token',
74
- type: 'token',
75
- title: 'Tech Token',
76
- description: 'Invest in the future of technology with our innovative token offering.'
77
- };
78
- const Template = args => {
79
- const [isOpen, setIsOpen] = (0, _react.useState)(args.isModalOpen || false);
80
- const handleModalClose = () => {
81
- var _args$onModalClose;
82
- setIsOpen(false);
83
- (_args$onModalClose = args.onModalClose) === null || _args$onModalClose === void 0 || _args$onModalClose.call(args);
84
- };
85
- const handleFormSend = values => {
86
- var _args$onFormSend;
87
- console.log('Form submitted with values:', values);
88
- (_args$onFormSend = args.onFormSend) === null || _args$onFormSend === void 0 || _args$onFormSend.call(args, values);
89
- };
90
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement("button", {
91
- onClick: () => setIsOpen(true),
92
- style: {
93
- padding: '10px 20px'
94
- }
95
- }, "Open New Venture Modal"), /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_AuthContext.AuthProvider, null, /*#__PURE__*/_react.default.createElement(_CheckboxContext.CheckboxProvider, null, /*#__PURE__*/_react.default.createElement(_NewVentureModal.NewVentureModal, _extends({}, args, {
96
- isModalOpen: isOpen,
97
- onModalClose: handleModalClose,
98
- onFormSend: handleFormSend
99
- }))))));
100
- };
101
- const Default = exports.Default = Template.bind({});
102
- Default.args = {
103
- title: 'Register Your Interest',
104
- description: 'Join us in this exciting investment opportunity. Fill out the form below to get started.',
105
- project: sampleProject,
106
- popupError: null
107
- };
108
- const WithTokenProject = exports.WithTokenProject = Template.bind({});
109
- WithTokenProject.args = _objectSpread(_objectSpread({}, Default.args), {}, {
110
- project: sampleTokenProject,
111
- title: 'Token Investment Opportunity',
112
- description: 'Get early access to our innovative token offering.'
113
- });
114
- const WithError = exports.WithError = Template.bind({});
115
- WithError.args = _objectSpread(_objectSpread({}, Default.args), {}, {
116
- popupError: 'This email is already registered. Please try a different email address.'
117
- });
118
- const WithCustomTitle = exports.WithCustomTitle = Template.bind({});
119
- WithCustomTitle.args = _objectSpread(_objectSpread({}, Default.args), {}, {
120
- title: 'Join the Innovation Revolution',
121
- description: 'Be part of the next big thing in sustainable technology investments.'
122
- });
123
- const WithLongDescription = exports.WithLongDescription = Template.bind({});
124
- WithLongDescription.args = _objectSpread(_objectSpread({}, Default.args), {}, {
125
- title: 'Comprehensive Investment Opportunity',
126
- description: 'This is a detailed description of the investment opportunity that provides comprehensive information about the project, its goals, potential returns, and the team behind it. Investors can learn about the technology, market potential, and strategic vision.'
127
- });
128
-
129
- // Interactive example with form submission handling
130
- const Interactive = exports.Interactive = Template.bind({});
131
- Interactive.args = _objectSpread(_objectSpread({}, Default.args), {}, {
132
- onFormSend: values => {
133
- console.log('Interactive form submitted:', values);
134
- alert("Form submitted successfully!\nEmail: ".concat(values.email, "\nName: ").concat(values.name, "\nPrivate Investor: ").concat(values.privateInvestorList, "\nMailing List: ").concat(values.mailingList));
135
- }
136
- });
137
-
138
- // Example with different project types
139
- const EquityProject = exports.EquityProject = Template.bind({});
140
- EquityProject.args = _objectSpread(_objectSpread({}, Default.args), {}, {
141
- project: {
142
- _id: 'project-789',
143
- name: 'startup-equity',
144
- type: 'equity',
145
- title: 'Startup Equity Investment',
146
- description: 'Invest in early-stage startup with high growth potential.'
147
- },
148
- title: 'Equity Investment Opportunity',
149
- description: 'Get equity in a promising startup and be part of their growth journey.'
150
- });