@stokr/components-library 2.3.0 → 2.3.1-2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/StokrWeb3.js +3 -170
- package/dist/components/2FA/InstallAuthApp.js +0 -1
- package/dist/components/Button/Button-stoDetails.js +230 -0
- package/dist/components/ChartLegend/ChartLegend.js +7 -1
- package/dist/components/ChartLegend/ChartLegend.stories.js +5 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +3 -1
- package/dist/components/Checklist/UserChecklist.js +0 -34
- package/dist/components/Checklist/UserChecklist.stories.js +0 -28
- package/dist/components/FAQ/FAQ.js +14 -3
- package/dist/components/FAQ/FAQ.styles.js +22 -3
- package/dist/components/Footer/FooterMenu.js +31 -5
- package/dist/components/Footer/FooterMenu.styles.js +1 -1
- package/dist/components/Grid/Grid.styles.js +25 -5
- package/dist/components/Header/Header.js +1 -11
- package/dist/components/Header/Header.stories.js +0 -28
- package/dist/components/Input/Input.js +13 -4
- package/dist/components/Input/Input.styles.js +7 -3
- package/dist/components/Input/InputPassword.js +1 -1
- package/dist/components/Input/Select.js +23 -9
- package/dist/components/Input/Select.stories.js +1 -0
- package/dist/components/Input/Select.styles.js +6 -10
- package/dist/components/InvestCalculator/InvestCalculator.js +2 -4
- package/dist/components/MainMenu/MainMenu.js +1 -31
- package/dist/components/Modal/Modal.styles.js +5 -5
- package/dist/components/Modal/PaymentModal.js +15 -3
- package/dist/components/Modal/PaymentModal.stories.js +4 -2
- package/dist/components/ROI/ROIParkingo.js +356 -0
- package/dist/components/ROI/ROIPixelmatic.js +356 -0
- package/dist/components/SigningSubflow/index.js +0 -42
- package/dist/components/StepsProgress/StepsProgress.styles.js +1 -1
- package/dist/components/StokrLoader/StokrLoader.js +20 -3
- package/dist/components/SvgIcons/SocialFacebook.js +18 -13
- package/dist/components/SvgIcons/SocialLinkedIn.js +23 -13
- package/dist/components/SvgIcons/SocialTelegram.js +47 -13
- package/dist/components/SvgIcons/SocialTwitter.js +40 -14
- package/dist/components/SvgIcons/SocialYoutube.js +13 -13
- package/dist/components/Text/Text.styles.js +12 -2
- package/dist/components/ToDoList/ToDoList.js +1 -2
- package/dist/components/ToDoList/ToDoList.styles.js +1 -1
- package/dist/components/ToDoList/ToDoListTask.js +1 -8
- package/dist/components/ToDoList/ToDoListTask.stories.js +3 -1
- package/dist/components/TransactionDetails/TransactionDetails.js +1 -1
- package/dist/components/TransactionInfo/TransactionInfo.js +4 -1
- package/dist/components/icons/Facebook_Logo.png +0 -0
- package/dist/components/icons/LI-In-Bug.png +0 -0
- package/dist/components/icons/Telegram-Logo.png +0 -0
- package/dist/components/icons/X-logo-black.png +0 -0
- package/dist/components/icons/youtube_social_circle_red.png +0 -0
- package/dist/components/logo/Logo.js +89 -0
- package/dist/components/logo/index.js +27 -0
- package/dist/components/taxId/TaxId.stories.js +0 -1
- package/dist/components/taxId/register-taxid.js +6 -1
- package/dist/constants/globalVariables.js +1 -3
- package/dist/context/Auth.js +3 -2
- package/dist/index.js +55 -11
- package/dist/static/country-list.json +251 -0
- package/dist/styles/colors.js +2 -1
- package/dist/styles/global.js +1 -1
- package/dist/styles/theme.js +2 -1
- package/dist/utils/formatCurrencyValue.js +12 -6
- package/dist/utils/isUSInvestor.js +11 -0
- package/dist/utils/km_ify.js +4 -2
- package/package.json +1 -4
package/dist/api/StokrWeb3.js
CHANGED
|
@@ -1,184 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.supportsU2F =
|
|
6
|
+
exports.supportsU2F = void 0;
|
|
8
7
|
var _reactDeviceDetect = require("react-device-detect");
|
|
9
8
|
var _mobileDetect = _interopRequireDefault(require("mobile-detect"));
|
|
10
|
-
var _algosdk = _interopRequireDefault(require("algosdk"));
|
|
11
|
-
var _myalgoConnect = _interopRequireDefault(require("@randlabs/myalgo-connect"));
|
|
12
|
-
var _fetchData = _interopRequireDefault(require("./fetchData"));
|
|
13
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
15
|
-
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); } }
|
|
16
|
-
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); }); }; } //import 'babel-polyfill'
|
|
10
|
+
//import 'babel-polyfill'
|
|
17
11
|
//import axios from 'axios'
|
|
18
|
-
// Standard Algod credentials in the Sandbox
|
|
19
12
|
|
|
20
|
-
// const algodToken =
|
|
21
|
-
// process.env.REACT_APP_ALGORAND_NETWORK === 'MAINNET'
|
|
22
|
-
// ? 'SrQSzKKohyprkKfnZPc19z0qOhhLndB4JFTc7Nh8'
|
|
23
|
-
// : 'SrQSzKKohyprkKfnZPc19z0qOhhLndB4JFTc7Nh8'
|
|
24
|
-
var algodToken = {
|
|
25
|
-
'X-API-Key': 'SrQSzKKohyprkKfnZPc19z0qOhhLndB4JFTc7Nh8'
|
|
26
|
-
};
|
|
27
|
-
var algodServer = process.env.REACT_APP_ALGORAND_NETWORK === 'MAINNET' ? 'https://mainnet-algorand.api.purestake.io/ps2' : 'https://testnet-algorand.api.purestake.io/ps2';
|
|
28
|
-
var algodPort = '443';
|
|
29
|
-
var algodClient = new _algosdk.default.Algodv2(algodToken, algodServer, algodPort);
|
|
30
|
-
var myAlgoWallet = new _myalgoConnect.default();
|
|
31
13
|
var supportsU2F = function supportsU2F() {
|
|
32
14
|
var md = new _mobileDetect.default(window.navigator.userAgent);
|
|
33
15
|
return _reactDeviceDetect.isChrome; //&& md.mobile() === null
|
|
34
16
|
};
|
|
35
|
-
|
|
36
|
-
//AlgoSigner Section
|
|
37
|
-
exports.supportsU2F = supportsU2F;
|
|
38
|
-
var isAlgoSignerInstalled = function isAlgoSignerInstalled() {
|
|
39
|
-
if (typeof window.AlgoSigner !== 'undefined') return true;
|
|
40
|
-
return false;
|
|
41
|
-
};
|
|
42
|
-
exports.isAlgoSignerInstalled = isAlgoSignerInstalled;
|
|
43
|
-
var getAlgoSignerAddress = /*#__PURE__*/function () {
|
|
44
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(ledger) {
|
|
45
|
-
var acc, address;
|
|
46
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
47
|
-
while (1) switch (_context.prev = _context.next) {
|
|
48
|
-
case 0:
|
|
49
|
-
_context.prev = 0;
|
|
50
|
-
_context.next = 3;
|
|
51
|
-
return window.AlgoSigner.connect({
|
|
52
|
-
ledger: ledger
|
|
53
|
-
});
|
|
54
|
-
case 3:
|
|
55
|
-
_context.next = 5;
|
|
56
|
-
return window.AlgoSigner.accounts({
|
|
57
|
-
ledger: ledger
|
|
58
|
-
});
|
|
59
|
-
case 5:
|
|
60
|
-
acc = _context.sent;
|
|
61
|
-
address = acc; //JSON.stringify(acc, null, 2)
|
|
62
|
-
return _context.abrupt("return", address);
|
|
63
|
-
case 10:
|
|
64
|
-
_context.prev = 10;
|
|
65
|
-
_context.t0 = _context["catch"](0);
|
|
66
|
-
return _context.abrupt("return", _context.t0);
|
|
67
|
-
case 13:
|
|
68
|
-
case "end":
|
|
69
|
-
return _context.stop();
|
|
70
|
-
}
|
|
71
|
-
}, _callee, null, [[0, 10]]);
|
|
72
|
-
}));
|
|
73
|
-
return function getAlgoSignerAddress(_x) {
|
|
74
|
-
return _ref.apply(this, arguments);
|
|
75
|
-
};
|
|
76
|
-
}();
|
|
77
|
-
exports.getAlgoSignerAddress = getAlgoSignerAddress;
|
|
78
|
-
var getMyAlgoWalletAddress = /*#__PURE__*/function () {
|
|
79
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
80
|
-
var accounts, addresses;
|
|
81
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
82
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
83
|
-
case 0:
|
|
84
|
-
_context2.prev = 0;
|
|
85
|
-
_context2.next = 3;
|
|
86
|
-
return myAlgoWallet.connect();
|
|
87
|
-
case 3:
|
|
88
|
-
accounts = _context2.sent;
|
|
89
|
-
addresses = accounts.map(function (account) {
|
|
90
|
-
return account.address;
|
|
91
|
-
});
|
|
92
|
-
return _context2.abrupt("return", addresses);
|
|
93
|
-
case 8:
|
|
94
|
-
_context2.prev = 8;
|
|
95
|
-
_context2.t0 = _context2["catch"](0);
|
|
96
|
-
return _context2.abrupt("return", _context2.t0);
|
|
97
|
-
case 11:
|
|
98
|
-
case "end":
|
|
99
|
-
return _context2.stop();
|
|
100
|
-
}
|
|
101
|
-
}, _callee2, null, [[0, 8]]);
|
|
102
|
-
}));
|
|
103
|
-
return function getMyAlgoWalletAddress() {
|
|
104
|
-
return _ref2.apply(this, arguments);
|
|
105
|
-
};
|
|
106
|
-
}();
|
|
107
|
-
exports.getMyAlgoWalletAddress = getMyAlgoWalletAddress;
|
|
108
|
-
var makeOptInTx = /*#__PURE__*/function () {
|
|
109
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(assetId, address, wallet, ledger) {
|
|
110
|
-
var transactions, convertedTx, OptinTx_base64, FaucetTx_base64, signedOptin, decoded_1, decoded_2, combined_decoded_txns, grouped_txns, _signedOptin, groupedTx;
|
|
111
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
112
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
113
|
-
case 0:
|
|
114
|
-
_context3.next = 2;
|
|
115
|
-
return (0, _fetchData.default)('wallet/createOptinTx', {
|
|
116
|
-
account: address,
|
|
117
|
-
assetId: Number(assetId)
|
|
118
|
-
});
|
|
119
|
-
case 2:
|
|
120
|
-
transactions = _context3.sent;
|
|
121
|
-
//make Uint8Array from fetched tx
|
|
122
|
-
convertedTx = transactions.map(function (x) {
|
|
123
|
-
return new Uint8Array(Object.values(x));
|
|
124
|
-
}); //sign the opt-in transaction with wallet
|
|
125
|
-
if (!(wallet === 'algosigner')) {
|
|
126
|
-
_context3.next = 20;
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
// Use the AlgoSigner encoding library to make the transactions base64
|
|
130
|
-
OptinTx_base64 = window.AlgoSigner.encoding.msgpackToBase64(convertedTx[2]);
|
|
131
|
-
FaucetTx_base64 = window.AlgoSigner.encoding.msgpackToBase64(convertedTx[0]); //sign tx
|
|
132
|
-
_context3.next = 9;
|
|
133
|
-
return window.AlgoSigner.signTxn([{
|
|
134
|
-
txn: FaucetTx_base64,
|
|
135
|
-
signers: []
|
|
136
|
-
}, {
|
|
137
|
-
txn: OptinTx_base64
|
|
138
|
-
}]);
|
|
139
|
-
case 9:
|
|
140
|
-
signedOptin = _context3.sent;
|
|
141
|
-
// Get the decoded binary Uint8Array values from the blobs
|
|
142
|
-
decoded_1 = convertedTx[1]; // already signed and encoded
|
|
143
|
-
decoded_2 = new Uint8Array(atob(signedOptin[1].blob).split('').map(function (x) {
|
|
144
|
-
return x.charCodeAt(0);
|
|
145
|
-
})); // Use their combined length to create a 3rd array
|
|
146
|
-
combined_decoded_txns = new Uint8Array(decoded_1.byteLength + decoded_2.byteLength); // Starting at the 0 position, fill in the binary for the first object
|
|
147
|
-
combined_decoded_txns.set(new Uint8Array(decoded_1), 0);
|
|
148
|
-
|
|
149
|
-
// Starting at the first object byte length, fill in the 2nd binary value
|
|
150
|
-
combined_decoded_txns.set(new Uint8Array(decoded_2), decoded_1.byteLength);
|
|
151
|
-
|
|
152
|
-
// Modify our combined array values back to an encoded 64bit string
|
|
153
|
-
grouped_txns = btoa(String.fromCharCode.apply(null, combined_decoded_txns)); //send tx using algosigner
|
|
154
|
-
_context3.next = 18;
|
|
155
|
-
return window.AlgoSigner.send({
|
|
156
|
-
ledger: ledger,
|
|
157
|
-
tx: grouped_txns
|
|
158
|
-
});
|
|
159
|
-
case 18:
|
|
160
|
-
_context3.next = 27;
|
|
161
|
-
break;
|
|
162
|
-
case 20:
|
|
163
|
-
_context3.next = 22;
|
|
164
|
-
return myAlgoWallet.signTransaction(convertedTx[2]);
|
|
165
|
-
case 22:
|
|
166
|
-
_signedOptin = _context3.sent;
|
|
167
|
-
//put only byte array to grouped tx
|
|
168
|
-
groupedTx = [convertedTx[1]];
|
|
169
|
-
groupedTx.push(_signedOptin.blob);
|
|
170
|
-
_context3.next = 27;
|
|
171
|
-
return algodClient.sendRawTransaction(groupedTx).do();
|
|
172
|
-
case 27:
|
|
173
|
-
return _context3.abrupt("return", true);
|
|
174
|
-
case 28:
|
|
175
|
-
case "end":
|
|
176
|
-
return _context3.stop();
|
|
177
|
-
}
|
|
178
|
-
}, _callee3);
|
|
179
|
-
}));
|
|
180
|
-
return function makeOptInTx(_x2, _x3, _x4, _x5) {
|
|
181
|
-
return _ref3.apply(this, arguments);
|
|
182
|
-
};
|
|
183
|
-
}();
|
|
184
|
-
exports.makeOptInTx = makeOptInTx;
|
|
17
|
+
exports.supportsU2F = supportsU2F;
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _RegisterEthereum = require("../RegisterEthereum");
|
|
11
10
|
var _Text = _interopRequireDefault(require("../Text/Text.styles"));
|
|
12
11
|
var _Button = _interopRequireDefault(require("../Button/Button.styles"));
|
|
13
12
|
var _FAQ = _interopRequireDefault(require("../FAQ/FAQ"));
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Button = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
10
|
+
var _ui = require("components/ui");
|
|
11
|
+
var sc = _interopRequireWildcard(require("constants/style"));
|
|
12
|
+
var _utils = require("utils");
|
|
13
|
+
var _excluded = ["children", "text", "onClick", "size", "isShare"];
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
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); }
|
|
18
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
20
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
|
+
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); } }
|
|
23
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
27
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
28
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
30
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
|
+
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; }
|
|
32
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
33
|
+
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); } /* */
|
|
34
|
+
var buttonTextLoadingCss = (0, _styledComponents.css)(["visibility:hidden;"]);
|
|
35
|
+
var buttonTextHelper = function buttonTextHelper(_ref) {
|
|
36
|
+
var loading = _ref.loading;
|
|
37
|
+
return loading && buttonTextLoadingCss;
|
|
38
|
+
};
|
|
39
|
+
var ButtonText = _styledComponents.default.span.withConfig({
|
|
40
|
+
displayName: "Button-stoDetails__ButtonText",
|
|
41
|
+
componentId: "sc-1pstwqz-0"
|
|
42
|
+
})(["line-height:", ";margin:0 auto;", ";svg,path{fill:", ";&:hover{fill:", ";}}"], function (_ref2) {
|
|
43
|
+
var isShare = _ref2.isShare;
|
|
44
|
+
return isShare ? '0px' : '1em';
|
|
45
|
+
}, buttonTextHelper, function (_ref3) {
|
|
46
|
+
var isShare = _ref3.isShare;
|
|
47
|
+
return isShare && '#cacaca';
|
|
48
|
+
}, function (_ref4) {
|
|
49
|
+
var isShare = _ref4.isShare;
|
|
50
|
+
return isShare && sc.RED_BASE_HEX;
|
|
51
|
+
});
|
|
52
|
+
var StyledLoading = _styledComponents.default.div.withConfig({
|
|
53
|
+
displayName: "Button-stoDetails__StyledLoading",
|
|
54
|
+
componentId: "sc-1pstwqz-1"
|
|
55
|
+
})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);"]);
|
|
56
|
+
|
|
57
|
+
// const ButtonComponent = ({ as, ...rest }) =>
|
|
58
|
+
// React.createElement(as, { ...rest })
|
|
59
|
+
|
|
60
|
+
var ButtonComponent = _styledComponents.default.button.withConfig({
|
|
61
|
+
displayName: "Button-stoDetails__ButtonComponent",
|
|
62
|
+
componentId: "sc-1pstwqz-2"
|
|
63
|
+
})([""]);
|
|
64
|
+
var ButtonClass = /*#__PURE__*/function (_PureComponent) {
|
|
65
|
+
_inherits(ButtonClass, _PureComponent);
|
|
66
|
+
var _super = _createSuper(ButtonClass);
|
|
67
|
+
function ButtonClass() {
|
|
68
|
+
var _this;
|
|
69
|
+
_classCallCheck(this, ButtonClass);
|
|
70
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
71
|
+
args[_key] = arguments[_key];
|
|
72
|
+
}
|
|
73
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
74
|
+
_defineProperty(_assertThisInitialized(_this), "handleClick", function (e) {
|
|
75
|
+
var _this$props = _this.props,
|
|
76
|
+
disabled = _this$props.disabled,
|
|
77
|
+
onClick = _this$props.onClick;
|
|
78
|
+
return !disabled && onClick && onClick(e);
|
|
79
|
+
});
|
|
80
|
+
return _this;
|
|
81
|
+
}
|
|
82
|
+
_createClass(ButtonClass, [{
|
|
83
|
+
key: "render",
|
|
84
|
+
value: function render() {
|
|
85
|
+
var _this$props2 = this.props,
|
|
86
|
+
children = _this$props2.children,
|
|
87
|
+
text = _this$props2.text,
|
|
88
|
+
onClick = _this$props2.onClick,
|
|
89
|
+
size = _this$props2.size,
|
|
90
|
+
isShare = _this$props2.isShare,
|
|
91
|
+
rest = _objectWithoutProperties(_this$props2, _excluded);
|
|
92
|
+
var loading = this.props.loading;
|
|
93
|
+
return /*#__PURE__*/_react.default.createElement(ButtonComponent, _extends({}, rest, {
|
|
94
|
+
onClick: this.handleClick
|
|
95
|
+
}), /*#__PURE__*/_react.default.createElement(ButtonText, {
|
|
96
|
+
isShare: isShare,
|
|
97
|
+
loading: loading
|
|
98
|
+
}, children || text), loading && /*#__PURE__*/_react.default.createElement(StyledLoading, null, /*#__PURE__*/_react.default.createElement(_ui.Loading, {
|
|
99
|
+
size: size === 'xl' && 40
|
|
100
|
+
})));
|
|
101
|
+
}
|
|
102
|
+
}]);
|
|
103
|
+
return ButtonClass;
|
|
104
|
+
}(_react.PureComponent);
|
|
105
|
+
_defineProperty(ButtonClass, "propTypes", {
|
|
106
|
+
children: _propTypes.default.node,
|
|
107
|
+
as: _propTypes.default.node,
|
|
108
|
+
transparent: _propTypes.default.bool,
|
|
109
|
+
noborder: _propTypes.default.bool,
|
|
110
|
+
icononly: _propTypes.default.bool,
|
|
111
|
+
inverted: _propTypes.default.bool,
|
|
112
|
+
isShare: _propTypes.default.bool,
|
|
113
|
+
inactive: _propTypes.default.bool
|
|
114
|
+
});
|
|
115
|
+
_defineProperty(ButtonClass, "defaultProps", {
|
|
116
|
+
as: 'button',
|
|
117
|
+
transparent: false
|
|
118
|
+
});
|
|
119
|
+
var baseButtonCss = (0, _styledComponents.css)(["transition:all 0.3s;display:inline-flex;align-items:center;justify-content:center;position:relative;border-radius:25px;font-size:11px;font-weight:bold;letter-spacing:2px;text-transform:uppercase;outline:none;cursor:pointer;white-space:nowrap;border:0;&:hover,&:active{opacity:1;}"]);
|
|
120
|
+
var blockButtonCss = (0, _styledComponents.css)([""]);
|
|
121
|
+
var importantButtonCss = (0, _styledComponents.css)([""]);
|
|
122
|
+
var beautyButtonCss = (0, _styledComponents.css)(["&&,&&:hover{width:auto !important;height:40px !important;padding-left:", "px;padding-right:", "px;box-shadow:0 6px 15px 2px #00000027,0px -5px 30px 2px rgba(255,255,255,0.2);background-color:", ";color:", ";margin:5px;z-index:100;transition:all 0.4s ease-out;", "{padding-left:", "px;padding-right:", "px;}}"], sc.BASE_MARGIN * 4, sc.BASE_MARGIN * 4, sc.WHITE_HEX, sc.BASE_COLOR_HEX, _utils.breakpoint.below('mobile'), sc.BASE_MARGIN * 2, sc.BASE_MARGIN * 2);
|
|
123
|
+
var disabledBeautyButtonCss = (0, _styledComponents.css)(["&&,&&:hover{padding-left:", "px;padding-right:", "px;background-color:", ";color:#4a90e2;margin:5px;z-index:100;border:none;cursor:not-allowed;transition:all 0.4s ease-out;&&:before{content:'';position:absolute;height:calc(100% + 10px);width:calc(100% + 10px);left:-5px;top:-5px;z-index:-2;border-radius:25px;border:1px solid #4a90e2;}", "{padding-left:", "px;padding-right:", "px;}}"], sc.BASE_MARGIN * 4, sc.BASE_MARGIN * 4, sc.BLUE_BASE_HEX, _utils.breakpoint.below('mobile'), sc.BASE_MARGIN * 2, sc.BASE_MARGIN * 2);
|
|
124
|
+
var disabledButtonCss = (0, _styledComponents.css)(["&&&&{background:transparent;color:#e1e1e1;border:1px solid #e1e1e1;cursor:not-allowed;}"]);
|
|
125
|
+
var transparentButtonCss = (0, _styledComponents.css)(["&&&&{background:transparent;border:1px solid ", ";color:", ";&:hover{background:", ";color:#fff;}}"], sc.BLUE_BASE_HEX, sc.BLUE_BASE_HEX, sc.BLUE_BASE_HEX);
|
|
126
|
+
var textOnlyButtonCss = (0, _styledComponents.css)(["&&&&{background:transparent;border:none;color:", ";}"], sc.BASE_COLOR_HEX);
|
|
127
|
+
var invertedButtonCss = (0, _styledComponents.css)([""]);
|
|
128
|
+
var xlSize = (0, _styledComponents.css)(["height:40px;padding-left:", "px;padding-right:", "px;width:100%;font-size:11px;"], sc.BASE_MARGIN * 2, sc.BASE_MARGIN * 2);
|
|
129
|
+
var mdSize = (0, _styledComponents.css)(["height:40px;padding-left:", "px;padding-right:", "px;width:192px;font-size:11px;"], sc.BASE_MARGIN * 2, sc.BASE_MARGIN * 2);
|
|
130
|
+
var smSize = (0, _styledComponents.css)(["height:32px;width:32px;"]);
|
|
131
|
+
var noborderCss = (0, _styledComponents.css)(["&&&&{border:0;}"]);
|
|
132
|
+
var inactiveCss = (0, _styledComponents.css)(["opacity:0.3;cursor:initial;&:hover{opacity:0.3;}"]);
|
|
133
|
+
var isHeroCss = (0, _styledComponents.css)(["width:222px;"]);
|
|
134
|
+
var isLoginMobileCss = (0, _styledComponents.css)(["margin-bottom:20px;width:163.94px;"]);
|
|
135
|
+
var isInvisibleCss = (0, _styledComponents.css)(["opacity:0;cursor:unset;&:hover{opacity:0;}"]);
|
|
136
|
+
var activeTransparentCss = (0, _styledComponents.css)(["background:", ";color:white;"], sc.RED_BASE_HEX);
|
|
137
|
+
var activeHelper = function activeHelper(_ref5) {
|
|
138
|
+
var active = _ref5.active;
|
|
139
|
+
return active && activeTransparentCss;
|
|
140
|
+
};
|
|
141
|
+
var buttonColor = function buttonColor(_ref6) {
|
|
142
|
+
var color = _ref6.color,
|
|
143
|
+
inverted = _ref6.inverted;
|
|
144
|
+
switch (color) {
|
|
145
|
+
case 'transparent':
|
|
146
|
+
return (0, _styledComponents.css)(["background:transparent;border:1px solid ", ";", ";&:hover{", ";}", ";"], sc.GRAY_BASE_HEX, activeHelper, activeTransparentCss, inverted && (0, _styledComponents.css)(["border:1px solid ", ";"], sc.WHITE_HEX));
|
|
147
|
+
case 'white':
|
|
148
|
+
return (0, _styledComponents.css)(["background:white;color:", ";"], sc.BLUE_BASE_HEX);
|
|
149
|
+
case 'blue':
|
|
150
|
+
default:
|
|
151
|
+
return (0, _styledComponents.css)(["background:", ";color:white;&:hover{background:", ";}"], sc.BLUE_BASE_HEX, sc.BLUE_BASE_RELEASED_HEX);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
var nobordersButtonHelper = function nobordersButtonHelper(_ref7) {
|
|
155
|
+
var noborder = _ref7.noborder;
|
|
156
|
+
return noborder && noborderCss;
|
|
157
|
+
};
|
|
158
|
+
var buttonSize = function buttonSize(_ref8) {
|
|
159
|
+
var size = _ref8.size,
|
|
160
|
+
icononly = _ref8.icononly;
|
|
161
|
+
switch (size) {
|
|
162
|
+
case 'xl':
|
|
163
|
+
return xlSize;
|
|
164
|
+
case 'sm':
|
|
165
|
+
return smSize;
|
|
166
|
+
case 'md':
|
|
167
|
+
return mdSize;
|
|
168
|
+
default:
|
|
169
|
+
return (0, _styledComponents.css)(["height:40px;padding-left:", "px;padding-right:", "px;", ";"], sc.BASE_MARGIN * 2, sc.BASE_MARGIN * 2, icononly && (0, _styledComponents.css)(["margin:0 auto;width:40px;line-height:0;text-align:center;padding:0;"]));
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
var buttonBlock = function buttonBlock(_ref9) {
|
|
173
|
+
var block = _ref9.block;
|
|
174
|
+
return block && blockButtonCss;
|
|
175
|
+
};
|
|
176
|
+
var importantButton = function importantButton(_ref10) {
|
|
177
|
+
var important = _ref10.important;
|
|
178
|
+
return important && importantButtonCss;
|
|
179
|
+
};
|
|
180
|
+
var beautyButton = function beautyButton(_ref11) {
|
|
181
|
+
var beauty = _ref11.beauty;
|
|
182
|
+
return beauty && beautyButtonCss;
|
|
183
|
+
};
|
|
184
|
+
var disabledBeautyButton = function disabledBeautyButton(_ref12) {
|
|
185
|
+
var disabledBeauty = _ref12.disabledBeauty;
|
|
186
|
+
return disabledBeauty && disabledBeautyButtonCss;
|
|
187
|
+
};
|
|
188
|
+
var disabledButton = function disabledButton(_ref13) {
|
|
189
|
+
var disabled = _ref13.disabled;
|
|
190
|
+
return disabled && disabledButtonCss;
|
|
191
|
+
};
|
|
192
|
+
var transparentButton = function transparentButton(_ref14) {
|
|
193
|
+
var transparent = _ref14.transparent;
|
|
194
|
+
return transparent && transparentButtonCss;
|
|
195
|
+
};
|
|
196
|
+
var textOnlyButton = function textOnlyButton(_ref15) {
|
|
197
|
+
var textOnly = _ref15.textOnly;
|
|
198
|
+
return textOnly && textOnlyButtonCss;
|
|
199
|
+
};
|
|
200
|
+
var invertedButton = function invertedButton(_ref16) {
|
|
201
|
+
var inverted = _ref16.inverted;
|
|
202
|
+
return inverted && invertedButtonCss;
|
|
203
|
+
};
|
|
204
|
+
var inativeButton = function inativeButton(_ref17) {
|
|
205
|
+
var inactive = _ref17.inactive;
|
|
206
|
+
return inactive && inactiveCss;
|
|
207
|
+
};
|
|
208
|
+
var isHeroButton = function isHeroButton(_ref18) {
|
|
209
|
+
var isHero = _ref18.isHero;
|
|
210
|
+
return isHero && isHeroCss;
|
|
211
|
+
};
|
|
212
|
+
var isLoginMobileButton = function isLoginMobileButton(_ref19) {
|
|
213
|
+
var isLoginMobile = _ref19.isLoginMobile;
|
|
214
|
+
return isLoginMobile && isLoginMobileCss;
|
|
215
|
+
};
|
|
216
|
+
var isInvisibleButton = function isInvisibleButton(_ref20) {
|
|
217
|
+
var isInvisible = _ref20.isInvisible;
|
|
218
|
+
return isInvisible && isInvisibleCss;
|
|
219
|
+
};
|
|
220
|
+
var Button = (0, _styledComponents.default)(ButtonClass).withConfig({
|
|
221
|
+
displayName: "Button-stoDetails__Button",
|
|
222
|
+
componentId: "sc-1pstwqz-3"
|
|
223
|
+
})(["", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], baseButtonCss, buttonColor, buttonSize, buttonBlock, importantButton, disabledButton, transparentButton, textOnlyButton, invertedButton, nobordersButtonHelper, inativeButton, isHeroButton, isLoginMobileButton, isInvisibleButton, beautyButton, disabledBeautyButton, function (_ref21) {
|
|
224
|
+
var fillRed = _ref21.fillRed;
|
|
225
|
+
return fillRed && (0, _styledComponents.css)(["svg{fill:", ";}&:hover{svg{fill:", ";}}"], sc.RED_BASE_HEX, sc.WHITE_HEX);
|
|
226
|
+
});
|
|
227
|
+
exports.Button = Button;
|
|
228
|
+
Button.propTypes = {};
|
|
229
|
+
var _default = Button;
|
|
230
|
+
exports.default = _default;
|
|
@@ -41,7 +41,12 @@ var ChartLegend = function ChartLegend(props) {
|
|
|
41
41
|
}
|
|
42
42
|
}, /*#__PURE__*/_react.default.createElement(_ChartLegend.ColorLabel, {
|
|
43
43
|
itemColor: item.color
|
|
44
|
-
}), /*#__PURE__*/_react.default.createElement(_ChartLegend.NameCol, null, /*#__PURE__*/_react.default.createElement(_ChartLegend.LargeText,
|
|
44
|
+
}), /*#__PURE__*/_react.default.createElement(_ChartLegend.NameCol, null, /*#__PURE__*/_react.default.createElement(_ChartLegend.LargeText, {
|
|
45
|
+
onClick: function onClick(e) {
|
|
46
|
+
item.onNameClick && item.onNameClick(e, item);
|
|
47
|
+
},
|
|
48
|
+
isLink: !!item.onNameClick
|
|
49
|
+
}, item.name), /*#__PURE__*/_react.default.createElement(_ChartLegend.SmallText, null, item.subname)), /*#__PURE__*/_react.default.createElement(_ChartLegend.NameCol, null, /*#__PURE__*/_react.default.createElement(_ChartLegend.LargeText, null, item.value), /*#__PURE__*/_react.default.createElement(_ChartLegend.SmallText, null, item.info)), /*#__PURE__*/_react.default.createElement(_ChartLegend.MarketDataCol, {
|
|
45
50
|
isPositive: item.isPositive
|
|
46
51
|
}, /*#__PURE__*/_react.default.createElement(_ChartLegend.LargeText, {
|
|
47
52
|
isPositive: item.isPositive
|
|
@@ -57,6 +62,7 @@ ChartLegend.propTypes = {
|
|
|
57
62
|
data: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
58
63
|
value: _propTypes.default.number.isRequired,
|
|
59
64
|
name: _propTypes.default.string,
|
|
65
|
+
onNameClick: _propTypes.default.func,
|
|
60
66
|
color: _propTypes.default.string,
|
|
61
67
|
subname: _propTypes.default.string,
|
|
62
68
|
info: _propTypes.default.string,
|
|
@@ -82,6 +82,11 @@ ChartLegendFull.args = {
|
|
|
82
82
|
color: 'red',
|
|
83
83
|
subname: 'Sub Name',
|
|
84
84
|
info: 'information',
|
|
85
|
+
onNameClick: function onNameClick(e, data) {
|
|
86
|
+
e.preventDefault();
|
|
87
|
+
e.stopPropagation();
|
|
88
|
+
alert('name is clicked');
|
|
89
|
+
},
|
|
85
90
|
price: 10000,
|
|
86
91
|
isPositive: false,
|
|
87
92
|
marketValue: '20 %',
|
|
@@ -47,10 +47,12 @@ exports.ValueCol = ValueCol;
|
|
|
47
47
|
var LargeText = _styledComponents.default.div.withConfig({
|
|
48
48
|
displayName: "ChartLegendstyles__LargeText",
|
|
49
49
|
componentId: "sc-gh1vwu-7"
|
|
50
|
-
})(["font-weight:300;font-size:22px;line-height:28px;", " ", ""], function (props) {
|
|
50
|
+
})(["font-weight:300;font-size:22px;line-height:28px;", " ", " ", ""], function (props) {
|
|
51
51
|
return props.isPositive && "\n color: ".concat(_theme.default.cProgressDone, ";\n ");
|
|
52
52
|
}, function (props) {
|
|
53
53
|
return props.isPositive === false && "\n color: ".concat(_theme.default.cWarning, ";\n ");
|
|
54
|
+
}, function (props) {
|
|
55
|
+
return props.isLink && "\n text-decoration:underline;\n text-decoration-thickness: from-font;\n ";
|
|
54
56
|
});
|
|
55
57
|
exports.LargeText = LargeText;
|
|
56
58
|
var SmallText = _styledComponents.default.div.withConfig({
|
|
@@ -105,12 +105,6 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
105
105
|
var liquidWallets = wallets.filter(function (wallet) {
|
|
106
106
|
return wallet.type === _globalVariables.walletTypes.LIQUID;
|
|
107
107
|
}) || [];
|
|
108
|
-
var algoWallets = wallets.filter(function (wallet) {
|
|
109
|
-
return wallet.type === _globalVariables.walletTypes.ALGORAND;
|
|
110
|
-
}) || [];
|
|
111
|
-
var ethWallets = wallets.filter(function (wallet) {
|
|
112
|
-
return wallet.type === _globalVariables.walletTypes.ETHEREUM;
|
|
113
|
-
}) || [];
|
|
114
108
|
var platformURL = useRelativePath === true ? '' : "https://signup.".concat(_globalVariables.platformDomain);
|
|
115
109
|
if (entity_name) {
|
|
116
110
|
setmandatoryTasks([{
|
|
@@ -129,20 +123,6 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
129
123
|
message: liquidWallets.length > 0 ? 'Your address is registered' : 'Register a Liquid address where you will receive the securities',
|
|
130
124
|
state: liquidWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
131
125
|
link: "".concat(platformURL, "/register-liquid-securities")
|
|
132
|
-
}, {
|
|
133
|
-
title: 'Algorand Address',
|
|
134
|
-
message: algoWallets.length > 0 ? 'Opt-in into more assets' : 'Register an Algorand address and opt-in into a project you want to invest in ',
|
|
135
|
-
state: algoWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
136
|
-
disabled: true,
|
|
137
|
-
tooltip: 'Registering your Algorand address is currently disabled until we have a new offer using the Algorand network.'
|
|
138
|
-
//openModal: ToDoModal.ALGO,
|
|
139
|
-
}, {
|
|
140
|
-
title: 'Ethereum Address',
|
|
141
|
-
message: ethWallets.length > 0 ? 'Your address is registered' : 'Register an Ethereum address where you will receive the securities',
|
|
142
|
-
state: ethWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
143
|
-
//link: '', //`${platformURL}/register-ethereum`,
|
|
144
|
-
disabled: true,
|
|
145
|
-
tooltip: 'Registering your Ethereum address is currently disabled until we have a new offer using the Ethereum network.'
|
|
146
126
|
}]);
|
|
147
127
|
setoptionalTasks([{
|
|
148
128
|
title: 'Tax ID',
|
|
@@ -173,20 +153,6 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
173
153
|
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : liquidWallets.length > 0 ? 'Your address is registered' : 'Register a Liquid address where you will receive the securities',
|
|
174
154
|
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : liquidWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
175
155
|
link: isFromAllowedCountry && "".concat(platformURL, "/register-liquid-securities")
|
|
176
|
-
}, {
|
|
177
|
-
title: 'Algorand Address',
|
|
178
|
-
message: algoWallets.length > 0 ? 'Opt-in into more assets' : 'Register an Algorand address and opt-in into a project you want to invest in ',
|
|
179
|
-
state: algoWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
180
|
-
// openModal: ToDoModal.ALGO,
|
|
181
|
-
disabled: true,
|
|
182
|
-
tooltip: 'Registering your Algorand address is currently disabled until we have a new offer using the Algorand network.'
|
|
183
|
-
//link: '',
|
|
184
|
-
}, {
|
|
185
|
-
title: 'Ethereum Address',
|
|
186
|
-
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : ethWallets.length > 0 ? 'Your address is registered' : 'Register an Ethereum address where you will receive the securities',
|
|
187
|
-
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : ethWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
188
|
-
disabled: true,
|
|
189
|
-
tooltip: 'Registering your Ethereum address is currently disabled until we have a new offer using the Ethereum network.'
|
|
190
156
|
}]);
|
|
191
157
|
var optionalTasks = [{
|
|
192
158
|
title: 'Tax ID',
|
|
@@ -64,34 +64,6 @@ var userDev = {
|
|
|
64
64
|
country: 'Germany',
|
|
65
65
|
//is_risk_questionnaire_finished: true,
|
|
66
66
|
kyc_status: 'Accepted',
|
|
67
|
-
investor_algo_addresses: [{
|
|
68
|
-
name: 'another test',
|
|
69
|
-
address: 'TVNC3QHY5LXKBMX7RGJG3B25EJPW73V5WMMEMUB33V2HEPEA2H77UPOYTQ',
|
|
70
|
-
whitelistedAssets: ['20918100']
|
|
71
|
-
}, {
|
|
72
|
-
name: 'my algo test',
|
|
73
|
-
address: 'YFQD2RZIIZQSO67F6MG3DJVXLMF2QU4EKGBPVXVIF3XTLKGWUZ36WMG56A',
|
|
74
|
-
whitelistedAssets: ['20918100', '20013569', '92363258']
|
|
75
|
-
}, {
|
|
76
|
-
name: 'test algosigner',
|
|
77
|
-
address: 'Y4UGMCSV3B43Y7QAM2VUVPETDDO5JVHDRB3ZC5MBF2VTUTCP4X437A65JU',
|
|
78
|
-
whitelistedAssets: ['20918100', '20013569', '92363258']
|
|
79
|
-
}, {
|
|
80
|
-
name: 'test new address',
|
|
81
|
-
address: 'B36KBEDYKBUSEMNRITZFFE7VINEPMP5MJTNUCRM5S5AP6GNWMWW4B5PEQI',
|
|
82
|
-
whitelistedAssets: ['20918100', '92363258']
|
|
83
|
-
}, {
|
|
84
|
-
address: 'E3Q6B5Q7JHFCEWBGGXJGEMXVAL6MSJBUHCGURZRMASRTJFDD6RQTJHPF4A',
|
|
85
|
-
whitelistedAssets: ['20918100', '20013569']
|
|
86
|
-
}, {
|
|
87
|
-
name: 'test 30/05',
|
|
88
|
-
address: 'RTQWXHRWZCBT5FF474T4DTL3VRVHERY3Q6LWLMPP24IXNOYIXBDQXJ2Z6M',
|
|
89
|
-
whitelistedAssets: ['20918100']
|
|
90
|
-
}, {
|
|
91
|
-
name: 'test info 01/06',
|
|
92
|
-
address: 'U4EIZEMPRGC77P6HJSFCLWYE4NUMNILU5DBZCKV44QMJ3TQOADRETVVAZU',
|
|
93
|
-
whitelistedAssets: ['20918100', '92363258']
|
|
94
|
-
}],
|
|
95
67
|
wallets: [{
|
|
96
68
|
_id: '641dd681b08b7543f433af1e',
|
|
97
69
|
userId: '61851acd5b9a890013297b12',
|
|
@@ -22,7 +22,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
22
22
|
var FAQ = function FAQ(props) {
|
|
23
23
|
var items = props.items,
|
|
24
24
|
noScroll = props.noScroll,
|
|
25
|
-
scrollRef = props.scrollRef
|
|
25
|
+
scrollRef = props.scrollRef,
|
|
26
|
+
modalViewMore = props.modalViewMore,
|
|
27
|
+
withTextStyling = props.withTextStyling;
|
|
26
28
|
var _useState = (0, _react.useState)(null),
|
|
27
29
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28
30
|
activeIndex = _useState2[0],
|
|
@@ -47,6 +49,12 @@ var FAQ = function FAQ(props) {
|
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
};
|
|
52
|
+
var textStyling = {
|
|
53
|
+
paddingLeft: '28px',
|
|
54
|
+
fontSize: '12px',
|
|
55
|
+
fontWeight: '300',
|
|
56
|
+
lineHeight: '16px'
|
|
57
|
+
};
|
|
50
58
|
return /*#__PURE__*/_react.default.createElement(_FAQ.FaqItems, null, items.map(function (item, index) {
|
|
51
59
|
return /*#__PURE__*/_react.default.createElement(_FAQ.FaqItem, {
|
|
52
60
|
key: item.title
|
|
@@ -54,10 +62,13 @@ var FAQ = function FAQ(props) {
|
|
|
54
62
|
isActive: activeIndex === index,
|
|
55
63
|
onClick: function onClick(e) {
|
|
56
64
|
return onTitleClick(e, index);
|
|
57
|
-
}
|
|
65
|
+
},
|
|
66
|
+
modalViewMore: modalViewMore
|
|
58
67
|
}, item.title, /*#__PURE__*/_react.default.createElement(_FAQ.FaqDropdownIcon, null)), /*#__PURE__*/_react.default.createElement(_FAQ.FaqContent, {
|
|
59
68
|
isOpened: activeIndex === index
|
|
60
|
-
}, !Array.isArray(item.content) ? /*#__PURE__*/_react.default.createElement(_FAQ.FaqText, null, item.content) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_Text.default,
|
|
69
|
+
}, !Array.isArray(item.content) ? /*#__PURE__*/_react.default.createElement(_FAQ.FaqText, null, item.content) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
70
|
+
style: withTextStyling ? textStyling : {}
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement("ul", null, item.content.map(function (answer) {
|
|
61
72
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
62
73
|
key: answer
|
|
63
74
|
}, answer);
|