be-components 0.1.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/LICENSE +20 -0
- package/README.md +31 -0
- package/lib/commonjs/AuthenticateWizard/Components/StrategyForm.js +398 -0
- package/lib/commonjs/AuthenticateWizard/Components/StrategyForm.js.map +1 -0
- package/lib/commonjs/AuthenticateWizard/api/index.js +246 -0
- package/lib/commonjs/AuthenticateWizard/api/index.js.map +1 -0
- package/lib/commonjs/AuthenticateWizard/api/types.d.js +2 -0
- package/lib/commonjs/AuthenticateWizard/api/types.d.js.map +1 -0
- package/lib/commonjs/AuthenticateWizard/index.js +85 -0
- package/lib/commonjs/AuthenticateWizard/index.js.map +1 -0
- package/lib/commonjs/Components/Button.js +84 -0
- package/lib/commonjs/Components/Button.js.map +1 -0
- package/lib/commonjs/Components/Checkbox.js +41 -0
- package/lib/commonjs/Components/Checkbox.js.map +1 -0
- package/lib/commonjs/Components/Icons.js +1492 -0
- package/lib/commonjs/Components/Icons.js.map +1 -0
- package/lib/commonjs/Components/Spring.js +44 -0
- package/lib/commonjs/Components/Spring.js.map +1 -0
- package/lib/commonjs/Components/Text.js +44 -0
- package/lib/commonjs/Components/Text.js.map +1 -0
- package/lib/commonjs/Components/TextInput.js +45 -0
- package/lib/commonjs/Components/TextInput.js.map +1 -0
- package/lib/commonjs/Components/index.js +49 -0
- package/lib/commonjs/Components/index.js.map +1 -0
- package/lib/commonjs/Font.css +23 -0
- package/lib/commonjs/constants/colors.js +66 -0
- package/lib/commonjs/constants/colors.js.map +1 -0
- package/lib/commonjs/constants/styles.js +43 -0
- package/lib/commonjs/constants/styles.js.map +1 -0
- package/lib/commonjs/fonts/Barlow-Bold.ttf +0 -0
- package/lib/commonjs/fonts/Barlow-Light.ttf +0 -0
- package/lib/commonjs/fonts/Barlow-Regular.ttf +0 -0
- package/lib/commonjs/fonts/Barlow-SemiBold.ttf +0 -0
- package/lib/commonjs/index.js +33 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/AuthenticateWizard/Components/StrategyForm.js +389 -0
- package/lib/module/AuthenticateWizard/Components/StrategyForm.js.map +1 -0
- package/lib/module/AuthenticateWizard/api/index.js +240 -0
- package/lib/module/AuthenticateWizard/api/index.js.map +1 -0
- package/lib/module/AuthenticateWizard/api/types.d.js +2 -0
- package/lib/module/AuthenticateWizard/api/types.d.js.map +1 -0
- package/lib/module/AuthenticateWizard/index.js +77 -0
- package/lib/module/AuthenticateWizard/index.js.map +1 -0
- package/lib/module/Components/Button.js +77 -0
- package/lib/module/Components/Button.js.map +1 -0
- package/lib/module/Components/Checkbox.js +34 -0
- package/lib/module/Components/Checkbox.js.map +1 -0
- package/lib/module/Components/Icons.js +1485 -0
- package/lib/module/Components/Icons.js.map +1 -0
- package/lib/module/Components/Spring.js +37 -0
- package/lib/module/Components/Spring.js.map +1 -0
- package/lib/module/Components/Text.js +37 -0
- package/lib/module/Components/Text.js.map +1 -0
- package/lib/module/Components/TextInput.js +38 -0
- package/lib/module/Components/TextInput.js.map +1 -0
- package/lib/module/Components/index.js +8 -0
- package/lib/module/Components/index.js.map +1 -0
- package/lib/module/Font.css +23 -0
- package/lib/module/constants/colors.js +60 -0
- package/lib/module/constants/colors.js.map +1 -0
- package/lib/module/constants/styles.js +36 -0
- package/lib/module/constants/styles.js.map +1 -0
- package/lib/module/fonts/Barlow-Bold.ttf +0 -0
- package/lib/module/fonts/Barlow-Light.ttf +0 -0
- package/lib/module/fonts/Barlow-Regular.ttf +0 -0
- package/lib/module/fonts/Barlow-SemiBold.ttf +0 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/src/AuthenticateWizard/Components/StrategyForm.d.ts +15 -0
- package/lib/typescript/src/AuthenticateWizard/Components/StrategyForm.d.ts.map +1 -0
- package/lib/typescript/src/AuthenticateWizard/api/index.d.ts +80 -0
- package/lib/typescript/src/AuthenticateWizard/api/index.d.ts.map +1 -0
- package/lib/typescript/src/AuthenticateWizard/index.d.ts +15 -0
- package/lib/typescript/src/AuthenticateWizard/index.d.ts.map +1 -0
- package/lib/typescript/src/Components/Button.d.ts +30 -0
- package/lib/typescript/src/Components/Button.d.ts.map +1 -0
- package/lib/typescript/src/Components/Checkbox.d.ts +11 -0
- package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/Components/Icons.d.ts +44 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -0
- package/lib/typescript/src/Components/Spring.d.ts +11 -0
- package/lib/typescript/src/Components/Spring.d.ts.map +1 -0
- package/lib/typescript/src/Components/Text.d.ts +13 -0
- package/lib/typescript/src/Components/Text.d.ts.map +1 -0
- package/lib/typescript/src/Components/TextInput.d.ts +15 -0
- package/lib/typescript/src/Components/TextInput.d.ts.map +1 -0
- package/lib/typescript/src/Components/index.d.ts +8 -0
- package/lib/typescript/src/Components/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/colors.d.ts +60 -0
- package/lib/typescript/src/constants/colors.d.ts.map +1 -0
- package/lib/typescript/src/constants/styles.d.ts +34 -0
- package/lib/typescript/src/constants/styles.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +4 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +167 -0
- package/src/AuthenticateWizard/Components/StrategyForm.tsx +292 -0
- package/src/AuthenticateWizard/api/index.ts +164 -0
- package/src/AuthenticateWizard/api/types.d.ts +134 -0
- package/src/AuthenticateWizard/index.tsx +84 -0
- package/src/Components/Button.tsx +63 -0
- package/src/Components/Checkbox.tsx +28 -0
- package/src/Components/Icons.tsx +698 -0
- package/src/Components/Spring.tsx +38 -0
- package/src/Components/Text.tsx +35 -0
- package/src/Components/TextInput.tsx +45 -0
- package/src/Components/index.tsx +15 -0
- package/src/Font.css +23 -0
- package/src/constants/colors.ts +61 -0
- package/src/constants/styles.ts +40 -0
- package/src/fonts/Barlow-Bold.ttf +0 -0
- package/src/fonts/Barlow-Light.ttf +0 -0
- package/src/fonts/Barlow-Regular.ttf +0 -0
- package/src/fonts/Barlow-SemiBold.ttf +0 -0
- package/src/index.tsx +9 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 BettorEdge
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# be-components
|
|
2
|
+
|
|
3
|
+
Components for BettorEdge Apps
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install be-components
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { multiply } from 'be-components';
|
|
15
|
+
|
|
16
|
+
// ...
|
|
17
|
+
|
|
18
|
+
const result = await multiply(3, 7);
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Contributing
|
|
22
|
+
|
|
23
|
+
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
|
|
24
|
+
|
|
25
|
+
## License
|
|
26
|
+
|
|
27
|
+
MIT
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _Components = require("../../Components");
|
|
9
|
+
var _colors = _interopRequireDefault(require("../../constants/colors"));
|
|
10
|
+
var _api = require("../api");
|
|
11
|
+
var _reactNative = require("react-native");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
const StrategyForm = ({
|
|
16
|
+
visible,
|
|
17
|
+
auth_strategy_id,
|
|
18
|
+
company_id,
|
|
19
|
+
device_id,
|
|
20
|
+
source,
|
|
21
|
+
referral_code,
|
|
22
|
+
width,
|
|
23
|
+
opt_in_url,
|
|
24
|
+
onAuthenticated
|
|
25
|
+
}) => {
|
|
26
|
+
const [action_loading, setActionLoading] = (0, _react.useState)(false);
|
|
27
|
+
const [active_view, setActiveView] = (0, _react.useState)('authenticate');
|
|
28
|
+
const [opted_in, setOptedIn] = (0, _react.useState)(true);
|
|
29
|
+
const [token, setToken] = (0, _react.useState)('');
|
|
30
|
+
const [verify_error, setVerifyError] = (0, _react.useState)();
|
|
31
|
+
const [verify_attempt_allowed, setVeryAttemptAllowed] = (0, _react.useState)(true);
|
|
32
|
+
const [authenticated, setAuthenticated] = (0, _react.useState)(false);
|
|
33
|
+
console.log(authenticated);
|
|
34
|
+
const [auth_execution_request, setAuthExecutionRequest] = (0, _react.useState)({
|
|
35
|
+
auth_strategy_id: auth_strategy_id,
|
|
36
|
+
device_id,
|
|
37
|
+
source,
|
|
38
|
+
referral_code,
|
|
39
|
+
attributes: []
|
|
40
|
+
});
|
|
41
|
+
const [verify_state, setVerifyState] = (0, _react.useState)(undefined);
|
|
42
|
+
const [strategy, setStrategy] = (0, _react.useState)({
|
|
43
|
+
loading: false,
|
|
44
|
+
company: undefined,
|
|
45
|
+
auth_strategy: undefined,
|
|
46
|
+
auth_strategy_identifiers: []
|
|
47
|
+
});
|
|
48
|
+
const {
|
|
49
|
+
company,
|
|
50
|
+
auth_strategy_identifiers
|
|
51
|
+
} = strategy;
|
|
52
|
+
const verify_strategy_identifier = auth_strategy_identifiers.find(asi => asi.auth_strategy_identifier_id == verify_state?.auth_strategy_identifier_id);
|
|
53
|
+
(0, _react.useEffect)(() => {
|
|
54
|
+
if (!auth_strategy_id || !visible) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
setUpWizard(auth_strategy_id);
|
|
58
|
+
}, [auth_strategy_id, visible]);
|
|
59
|
+
const setUpWizard = async auth_strategy_id => {
|
|
60
|
+
setStrategy({
|
|
61
|
+
...strategy,
|
|
62
|
+
loading: true
|
|
63
|
+
});
|
|
64
|
+
//Get auth strategy from server
|
|
65
|
+
const {
|
|
66
|
+
auth_strategy,
|
|
67
|
+
auth_strategy_identifiers
|
|
68
|
+
} = await _api.AuthenticateApi.getAuthStrategyById(auth_strategy_id);
|
|
69
|
+
let company = undefined;
|
|
70
|
+
if (company_id) {
|
|
71
|
+
const company_resp = await _api.AuthenticateApi.getCompanyById(company_id);
|
|
72
|
+
company = company_resp.company;
|
|
73
|
+
}
|
|
74
|
+
let unique_attributes = auth_strategy_identifiers.map(asi => {
|
|
75
|
+
//if(!asi.auth_identifier){ return }
|
|
76
|
+
return {
|
|
77
|
+
attribute: asi.auth_identifier?.attribute ?? '',
|
|
78
|
+
value: ''
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
setAuthExecutionRequest({
|
|
82
|
+
auth_strategy_id,
|
|
83
|
+
device_id,
|
|
84
|
+
source,
|
|
85
|
+
referral_code,
|
|
86
|
+
attributes: unique_attributes
|
|
87
|
+
});
|
|
88
|
+
setStrategy({
|
|
89
|
+
...strategy,
|
|
90
|
+
auth_strategy,
|
|
91
|
+
company,
|
|
92
|
+
auth_strategy_identifiers,
|
|
93
|
+
loading: false
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
const verifyAuthStrategyIdentifier = async () => {
|
|
97
|
+
if (!verify_state) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (action_loading) {
|
|
101
|
+
return;
|
|
102
|
+
} //No mashy mashy
|
|
103
|
+
if (!verify_attempt_allowed) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
setVeryAttemptAllowed(false);
|
|
107
|
+
setActionLoading(true);
|
|
108
|
+
const {
|
|
109
|
+
result,
|
|
110
|
+
access_token,
|
|
111
|
+
refresh_token,
|
|
112
|
+
expire_datetime
|
|
113
|
+
} = await _api.AuthenticateApi.verifyAuthStrategyIdentifier(verify_state.auth_strategy_identifier_id, verify_state.verification_session_id, token, device_id);
|
|
114
|
+
if (result == 'fail' || !access_token || !refresh_token) {
|
|
115
|
+
setVerifyError(`Invalid code / password. Please try again after 10 seconds`);
|
|
116
|
+
setTimeout(() => {
|
|
117
|
+
setVeryAttemptAllowed(true);
|
|
118
|
+
setVerifyError(undefined);
|
|
119
|
+
}, 10000);
|
|
120
|
+
} else {
|
|
121
|
+
setAuthenticated(true);
|
|
122
|
+
setTimeout(() => {
|
|
123
|
+
onAuthenticated(access_token, refresh_token, expire_datetime);
|
|
124
|
+
}, 1500);
|
|
125
|
+
}
|
|
126
|
+
setActionLoading(false);
|
|
127
|
+
};
|
|
128
|
+
const executeAuthStrategy = async () => {
|
|
129
|
+
setActionLoading(true);
|
|
130
|
+
const {
|
|
131
|
+
result,
|
|
132
|
+
verification_session_id,
|
|
133
|
+
session_expire_datetime,
|
|
134
|
+
auth_strategy_identifier_id
|
|
135
|
+
} = await _api.AuthenticateApi.executeAuthStrategy(auth_execution_request);
|
|
136
|
+
if (result == 'fail') {
|
|
137
|
+
setActionLoading(false);
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
setVerifyState({
|
|
141
|
+
verification_session_id,
|
|
142
|
+
session_expire_datetime,
|
|
143
|
+
auth_strategy_identifier_id
|
|
144
|
+
});
|
|
145
|
+
setActiveView('verify');
|
|
146
|
+
setActionLoading(false);
|
|
147
|
+
};
|
|
148
|
+
const renderAuthStrategyIdentifiers = data => {
|
|
149
|
+
if (!data.item.auth_identifier) {
|
|
150
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
151
|
+
}
|
|
152
|
+
const auth_request = auth_execution_request.attributes.find(a => a.attribute == data.item.auth_identifier?.attribute);
|
|
153
|
+
if (!auth_request) {
|
|
154
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
155
|
+
}
|
|
156
|
+
const is_valid = _api.AuthenticateHelpers.isAttributeValid(auth_request.attribute, auth_request.value);
|
|
157
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
158
|
+
style: {
|
|
159
|
+
margin: 10
|
|
160
|
+
}
|
|
161
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
162
|
+
size: 16,
|
|
163
|
+
color: _colors.default.brand.midnight,
|
|
164
|
+
weight: "bold"
|
|
165
|
+
}, data.item.label), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
166
|
+
style: {
|
|
167
|
+
marginTop: 4
|
|
168
|
+
},
|
|
169
|
+
size: 14,
|
|
170
|
+
color: _colors.default.brand.midnight,
|
|
171
|
+
weight: "regular"
|
|
172
|
+
}, data.item.description), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
173
|
+
style: {
|
|
174
|
+
marginTop: 5,
|
|
175
|
+
flexDirection: 'row',
|
|
176
|
+
alignItems: 'center',
|
|
177
|
+
borderRadius: 22,
|
|
178
|
+
borderWidth: 1,
|
|
179
|
+
borderColor: _colors.default.shades.shade600
|
|
180
|
+
}
|
|
181
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.TextInput, {
|
|
182
|
+
style: {
|
|
183
|
+
flex: 1
|
|
184
|
+
},
|
|
185
|
+
value: auth_request.pretty_value ?? auth_request.value,
|
|
186
|
+
placeholder: `${data.item.label}`,
|
|
187
|
+
autoFocus: data.item.priority == 1 ? true : false,
|
|
188
|
+
placeholderTextColor: _colors.default.brand.slate,
|
|
189
|
+
onChangeText: text => {
|
|
190
|
+
let pretty_value = undefined;
|
|
191
|
+
if (auth_request.attribute == 'phone') {
|
|
192
|
+
text = _api.AuthenticateHelpers.unformatPhone(text);
|
|
193
|
+
pretty_value = _api.AuthenticateHelpers.formatPhone(text);
|
|
194
|
+
}
|
|
195
|
+
setAuthExecutionRequest({
|
|
196
|
+
...auth_execution_request,
|
|
197
|
+
attributes: auth_execution_request.attributes.filter(a => a.attribute != auth_request.attribute).concat({
|
|
198
|
+
attribute: auth_request.attribute,
|
|
199
|
+
value: text,
|
|
200
|
+
pretty_value
|
|
201
|
+
})
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}), auth_request.value ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
205
|
+
style: {
|
|
206
|
+
padding: 10
|
|
207
|
+
}
|
|
208
|
+
}, is_valid.valid ? /*#__PURE__*/_react.default.createElement(_Components.Icons.CheckCirlceIcon, {
|
|
209
|
+
color: _colors.default.utility.success,
|
|
210
|
+
size: 14
|
|
211
|
+
}) : /*#__PURE__*/_react.default.createElement(_Components.Icons.AlertIcon, {
|
|
212
|
+
color: _colors.default.utility.warning,
|
|
213
|
+
size: 14
|
|
214
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)), auth_request.value && !is_valid.valid ? /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
215
|
+
style: {
|
|
216
|
+
marginTop: 2
|
|
217
|
+
},
|
|
218
|
+
size: 12,
|
|
219
|
+
color: _colors.default.utility.warning,
|
|
220
|
+
weight: "semibold",
|
|
221
|
+
textAlign: "right"
|
|
222
|
+
}, is_valid.error) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)));
|
|
223
|
+
};
|
|
224
|
+
const strategy_valid = _api.AuthenticateHelpers.isStrategyValid(auth_execution_request);
|
|
225
|
+
if (!visible) {
|
|
226
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
227
|
+
}
|
|
228
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, company ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
229
|
+
style: {
|
|
230
|
+
padding: 20,
|
|
231
|
+
flexDirection: 'row',
|
|
232
|
+
alignItems: 'center',
|
|
233
|
+
borderTopRightRadius: 22,
|
|
234
|
+
borderTopLeftRadius: 22,
|
|
235
|
+
borderBottomWidth: 1,
|
|
236
|
+
borderColor: _colors.default.accents.accent200
|
|
237
|
+
}
|
|
238
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
239
|
+
style: {
|
|
240
|
+
flex: 1,
|
|
241
|
+
marginRight: 10
|
|
242
|
+
}
|
|
243
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
244
|
+
size: 28,
|
|
245
|
+
weight: "bold",
|
|
246
|
+
color: _colors.default.brand.midnight
|
|
247
|
+
}, "Welcome!"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
248
|
+
style: {
|
|
249
|
+
marginTop: 5
|
|
250
|
+
},
|
|
251
|
+
color: _colors.default.brand.midnight,
|
|
252
|
+
size: 14,
|
|
253
|
+
weight: "semibold",
|
|
254
|
+
textAlign: "left"
|
|
255
|
+
}, "Continue to sign up with BettorEdge")), /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
256
|
+
source: {
|
|
257
|
+
uri: company?.company_image?.url
|
|
258
|
+
},
|
|
259
|
+
style: {
|
|
260
|
+
width: width * 0.15,
|
|
261
|
+
height: width * 0.15,
|
|
262
|
+
borderRadius: 8
|
|
263
|
+
},
|
|
264
|
+
resizeMode: "cover"
|
|
265
|
+
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), active_view == 'authenticate' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
266
|
+
nativeID: "sign_up",
|
|
267
|
+
style: {
|
|
268
|
+
flex: 1
|
|
269
|
+
}
|
|
270
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
271
|
+
style: {
|
|
272
|
+
flex: 1,
|
|
273
|
+
padding: 10
|
|
274
|
+
}
|
|
275
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
276
|
+
style: {
|
|
277
|
+
padding: 10
|
|
278
|
+
}
|
|
279
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
280
|
+
data: auth_strategy_identifiers.sort((a, b) => a.priority - b.priority),
|
|
281
|
+
renderItem: renderAuthStrategyIdentifiers,
|
|
282
|
+
keyExtractor: item => item.auth_strategy_identifier_id.toString()
|
|
283
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
284
|
+
nativeID: "action_row",
|
|
285
|
+
style: {
|
|
286
|
+
padding: 10,
|
|
287
|
+
paddingLeft: 20,
|
|
288
|
+
paddingRight: 20
|
|
289
|
+
}
|
|
290
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Button, {
|
|
291
|
+
title: `Let's Go!`,
|
|
292
|
+
loading: action_loading,
|
|
293
|
+
style: {
|
|
294
|
+
opacity: strategy_valid && opted_in ? 1 : 0.5
|
|
295
|
+
},
|
|
296
|
+
disabled: action_loading || !strategy_valid || !opted_in,
|
|
297
|
+
title_color: _colors.default.shades.white,
|
|
298
|
+
backgroundColor: _colors.default.brand.electric,
|
|
299
|
+
borderRadius: 8,
|
|
300
|
+
padding: 15,
|
|
301
|
+
onPress: () => {
|
|
302
|
+
executeAuthStrategy();
|
|
303
|
+
}
|
|
304
|
+
})), active_view == 'authenticate' && opt_in_url ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
305
|
+
style: {
|
|
306
|
+
flexDirection: 'row',
|
|
307
|
+
alignItems: 'center',
|
|
308
|
+
padding: 20
|
|
309
|
+
}
|
|
310
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Checkbox, {
|
|
311
|
+
size: 25,
|
|
312
|
+
checked: opted_in,
|
|
313
|
+
onSelect: checked => setOptedIn(checked)
|
|
314
|
+
}), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
315
|
+
style: {
|
|
316
|
+
marginLeft: 15
|
|
317
|
+
},
|
|
318
|
+
size: 14,
|
|
319
|
+
color: _colors.default.brand.midnight
|
|
320
|
+
}, "By continuing, you agree to the terms and conditions outlined", /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
321
|
+
onPress: () => _reactNative.Linking.openURL(opt_in_url)
|
|
322
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
323
|
+
size: 14,
|
|
324
|
+
color: _colors.default.brand.electric,
|
|
325
|
+
weight: "bold"
|
|
326
|
+
}, " here.")))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)) : active_view == 'verify' && verify_strategy_identifier ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
327
|
+
nativeID: "sign_up",
|
|
328
|
+
style: {
|
|
329
|
+
flex: 1
|
|
330
|
+
}
|
|
331
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
332
|
+
style: {
|
|
333
|
+
flex: 1,
|
|
334
|
+
justifyContent: 'center',
|
|
335
|
+
alignItems: 'center',
|
|
336
|
+
padding: 20
|
|
337
|
+
}
|
|
338
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
339
|
+
size: 18,
|
|
340
|
+
color: _colors.default.brand.midnight,
|
|
341
|
+
weight: "semibold",
|
|
342
|
+
textAlign: "center"
|
|
343
|
+
}, verify_strategy_identifier.verify_label ?? 'Enter Verification Code'), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
344
|
+
style: {
|
|
345
|
+
padding: 10
|
|
346
|
+
}
|
|
347
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.TextInput, {
|
|
348
|
+
style: {
|
|
349
|
+
textAlign: 'center',
|
|
350
|
+
fontFamily: 'barlow-bold',
|
|
351
|
+
fontSize: 14,
|
|
352
|
+
padding: 12,
|
|
353
|
+
borderRadius: 8,
|
|
354
|
+
borderWidth: 1,
|
|
355
|
+
borderColor: _colors.default.shades.shade600
|
|
356
|
+
},
|
|
357
|
+
value: token,
|
|
358
|
+
keyboardType: "default",
|
|
359
|
+
autoFocus: true,
|
|
360
|
+
textContentType: verify_strategy_identifier.secure_text_entry ? undefined : 'oneTimeCode',
|
|
361
|
+
secureTextEntry: verify_strategy_identifier.secure_text_entry,
|
|
362
|
+
placeholderTextColor: _colors.default.brand.slate,
|
|
363
|
+
onChangeText: text => {
|
|
364
|
+
setToken(text);
|
|
365
|
+
}
|
|
366
|
+
})), verify_error ? /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
367
|
+
style: {
|
|
368
|
+
marginTop: 10
|
|
369
|
+
},
|
|
370
|
+
size: 14,
|
|
371
|
+
color: _colors.default.utility.warning
|
|
372
|
+
}, verify_error) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
373
|
+
nativeID: "action_row",
|
|
374
|
+
style: {
|
|
375
|
+
flexDirection: 'row',
|
|
376
|
+
padding: 10,
|
|
377
|
+
paddingLeft: 20,
|
|
378
|
+
paddingRight: 20
|
|
379
|
+
}
|
|
380
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Button, {
|
|
381
|
+
title: verify_attempt_allowed ? 'Verify' : 'Retry in 10 seconds',
|
|
382
|
+
loading: action_loading,
|
|
383
|
+
style: {
|
|
384
|
+
flex: 3,
|
|
385
|
+
opacity: token && verify_attempt_allowed ? 1 : 0.5
|
|
386
|
+
},
|
|
387
|
+
disabled: !token || action_loading || !verify_attempt_allowed,
|
|
388
|
+
title_color: _colors.default.shades.white,
|
|
389
|
+
backgroundColor: _colors.default.utility.success,
|
|
390
|
+
borderRadius: 8,
|
|
391
|
+
padding: 15,
|
|
392
|
+
onPress: () => {
|
|
393
|
+
verifyAuthStrategyIdentifier();
|
|
394
|
+
}
|
|
395
|
+
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
|
|
396
|
+
};
|
|
397
|
+
var _default = exports.default = StrategyForm;
|
|
398
|
+
//# sourceMappingURL=StrategyForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_Components","_colors","_interopRequireDefault","_api","_reactNative","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StrategyForm","visible","auth_strategy_id","company_id","device_id","source","referral_code","width","opt_in_url","onAuthenticated","action_loading","setActionLoading","useState","active_view","setActiveView","opted_in","setOptedIn","token","setToken","verify_error","setVerifyError","verify_attempt_allowed","setVeryAttemptAllowed","authenticated","setAuthenticated","console","log","auth_execution_request","setAuthExecutionRequest","attributes","verify_state","setVerifyState","undefined","strategy","setStrategy","loading","company","auth_strategy","auth_strategy_identifiers","verify_strategy_identifier","find","asi","auth_strategy_identifier_id","useEffect","setUpWizard","AuthenticateApi","getAuthStrategyById","company_resp","getCompanyById","unique_attributes","map","attribute","auth_identifier","value","verifyAuthStrategyIdentifier","result","access_token","refresh_token","expire_datetime","verification_session_id","setTimeout","executeAuthStrategy","session_expire_datetime","renderAuthStrategyIdentifiers","data","item","createElement","Fragment","auth_request","is_valid","AuthenticateHelpers","isAttributeValid","View","style","margin","Text","size","color","Colors","brand","midnight","weight","label","marginTop","description","flexDirection","alignItems","borderRadius","borderWidth","borderColor","shades","shade600","TextInput","flex","pretty_value","placeholder","autoFocus","priority","placeholderTextColor","slate","onChangeText","text","unformatPhone","formatPhone","filter","concat","padding","valid","Icons","CheckCirlceIcon","utility","success","AlertIcon","warning","textAlign","error","strategy_valid","isStrategyValid","borderTopRightRadius","borderTopLeftRadius","borderBottomWidth","accents","accent200","marginRight","Image","uri","company_image","url","height","resizeMode","nativeID","FlatList","sort","b","renderItem","keyExtractor","toString","paddingLeft","paddingRight","Button","title","opacity","disabled","title_color","white","backgroundColor","electric","onPress","Checkbox","checked","onSelect","marginLeft","TouchableOpacity","Linking","openURL","justifyContent","verify_label","fontFamily","fontSize","keyboardType","textContentType","secure_text_entry","secureTextEntry","_default","exports"],"sourceRoot":"../../../../src","sources":["AuthenticateWizard/Components/StrategyForm.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAA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