@tap-payments/auth-jsconnect 2.1.20-test → 2.1.21-test
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/build/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.js +11 -2
- package/build/features/app/business/businessStore.js +3 -3
- package/build/features/app/password/passwordStore.js +1 -1
- package/build/features/app/tax/taxStore.js +2 -2
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -2
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -2
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -2
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -2
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +2 -2
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { TooltipProps } from '@mui/material/Tooltip';
|
|
3
3
|
export type { TooltipProps };
|
|
4
4
|
declare const _default: React.MemoExoticComponent<{
|
|
5
|
-
({ children, ...rest }: TooltipProps): JSX.Element;
|
|
5
|
+
({ children, title, ...rest }: TooltipProps): JSX.Element;
|
|
6
6
|
defaultProps: {
|
|
7
7
|
placement: string;
|
|
8
8
|
};
|
|
@@ -24,6 +24,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import { styled, alpha } from '@mui/material/styles';
|
|
26
26
|
import Tooltip, { tooltipClasses } from '@mui/material/Tooltip';
|
|
27
|
+
import Text from '../Text';
|
|
28
|
+
import { useLanguage } from '../../hooks';
|
|
27
29
|
var StyledTooltip = styled(function (_a) {
|
|
28
30
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
29
31
|
return (_jsx(Tooltip, __assign({}, props, { classes: { popper: className } })));
|
|
@@ -34,9 +36,16 @@ var StyledTooltip = styled(function (_a) {
|
|
|
34
36
|
_b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
|
|
35
37
|
_b);
|
|
36
38
|
});
|
|
39
|
+
var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
|
|
40
|
+
var theme = _a.theme, isAr = _a.isAr;
|
|
41
|
+
return ({
|
|
42
|
+
textAlign: isAr ? 'right' : 'left'
|
|
43
|
+
});
|
|
44
|
+
});
|
|
37
45
|
var TooltipComponent = function (_a) {
|
|
38
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
39
|
-
|
|
46
|
+
var children = _a.children, title = _a.title, rest = __rest(_a, ["children", "title"]);
|
|
47
|
+
var isAr = useLanguage().isAr;
|
|
48
|
+
return (_jsx(StyledTooltip, __assign({ title: _jsx(TextStyled, __assign({ isAr: isAr }, { children: title })) }, rest, { children: children })));
|
|
40
49
|
};
|
|
41
50
|
export default React.memo(TooltipComponent);
|
|
42
51
|
TooltipComponent.defaultProps = {
|
|
@@ -104,7 +104,7 @@ export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', functio
|
|
|
104
104
|
hasBusinessCRInfoCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_CR_INFO) && hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_INFO_CONFIRM);
|
|
105
105
|
hasBusinessCRActivitiesCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_CR_ACTIVITIES);
|
|
106
106
|
hasBusinessCustomersCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_CUSTOMERS);
|
|
107
|
-
if (!(!entity_activities && hasBusinessCRInfoCompleted)) return [3, 4];
|
|
107
|
+
if (!(!entity_activities && hasBusinessCRInfoCompleted && !hasBusinessCompleted)) return [3, 4];
|
|
108
108
|
return [4, API.dataService.getActivities()];
|
|
109
109
|
case 3:
|
|
110
110
|
activityList = (_b.sent()).list;
|
|
@@ -230,7 +230,7 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
230
230
|
_j.label = 4;
|
|
231
231
|
case 4:
|
|
232
232
|
entity_activities = leadData.entity_activities;
|
|
233
|
-
if (!(!entity_activities && hasBusinessCRInfoCompleted)) return [3, 6];
|
|
233
|
+
if (!(!entity_activities && hasBusinessCRInfoCompleted && !hasBusinessCompleted)) return [3, 6];
|
|
234
234
|
return [4, API.dataService.getActivities()];
|
|
235
235
|
case 5:
|
|
236
236
|
activityList = (_j.sent()).list;
|
|
@@ -882,7 +882,7 @@ export var businessSlice = createSlice({
|
|
|
882
882
|
state.data.activitiesData.operationStartDate = convertNumbers2English(dateFormat(issuingDate));
|
|
883
883
|
var activities = entity_activities || [];
|
|
884
884
|
var selectedActivity = activities === null || activities === void 0 ? void 0 : activities.filter(function (activity) {
|
|
885
|
-
var activities = brand.activities;
|
|
885
|
+
var activities = (brand || {}).activities;
|
|
886
886
|
return activities === null || activities === void 0 ? void 0 : activities.find(function (value) { return value.id === activity.id; });
|
|
887
887
|
});
|
|
888
888
|
state.data.activitiesData.activities = (selectedActivity === null || selectedActivity === void 0 ? void 0 : selectedActivity.length) > 0 ? selectedActivity : [];
|
|
@@ -93,7 +93,7 @@ export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', functio
|
|
|
93
93
|
_e.label = 5;
|
|
94
94
|
case 5: return [2, {
|
|
95
95
|
data: data,
|
|
96
|
-
boardResponse: __assign(__assign({}, boardData === null || boardData === void 0 ? void 0 : boardData.business), { flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []), user: boardData === null || boardData === void 0 ? void 0 : boardData.user, brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names, contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact }),
|
|
96
|
+
boardResponse: __assign(__assign({}, boardData === null || boardData === void 0 ? void 0 : boardData.business), { flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []), user: boardData === null || boardData === void 0 ? void 0 : boardData.user, brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names, contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact, business: boardData === null || boardData === void 0 ? void 0 : boardData.business }),
|
|
97
97
|
token: token
|
|
98
98
|
}];
|
|
99
99
|
}
|
|
@@ -93,7 +93,7 @@ export var verifyLeadToken = createAsyncThunk('taxVerifyLeadToken', function (to
|
|
|
93
93
|
_d.label = 5;
|
|
94
94
|
case 5: return [2, {
|
|
95
95
|
data: data,
|
|
96
|
-
boardResponse: __assign(__assign({}, boardData === null || boardData === void 0 ? void 0 : boardData.business), { flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []), entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, user: boardData === null || boardData === void 0 ? void 0 : boardData.user, bank: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, vatID: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _c === void 0 ? void 0 : _c.vat_id, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant }),
|
|
96
|
+
boardResponse: __assign(__assign({}, boardData === null || boardData === void 0 ? void 0 : boardData.business), { flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []), entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, user: boardData === null || boardData === void 0 ? void 0 : boardData.user, bank: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, vatID: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _c === void 0 ? void 0 : _c.vat_id, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, business: boardData === null || boardData === void 0 ? void 0 : boardData.business }),
|
|
97
97
|
token: token
|
|
98
98
|
}];
|
|
99
99
|
}
|
|
@@ -213,7 +213,7 @@ export var updateLeadSuccess = createAsyncThunk('taxUpdateLeadSuccess', function
|
|
|
213
213
|
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
|
|
214
214
|
thunkApi.dispatch(handleNextScreenStep());
|
|
215
215
|
return [2, {
|
|
216
|
-
response: __assign(__assign({}, data), { flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []), user: boardData === null || boardData === void 0 ? void 0 : boardData.user, bank: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, vatID: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _g === void 0 ? void 0 : _g.vat_id, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant }),
|
|
216
|
+
response: __assign(__assign({}, data), { flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []), user: boardData === null || boardData === void 0 ? void 0 : boardData.user, bank: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, vatID: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _g === void 0 ? void 0 : _g.vat_id, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, business: boardData === null || boardData === void 0 ? void 0 : boardData.business }),
|
|
217
217
|
formData: params
|
|
218
218
|
}];
|
|
219
219
|
}
|
|
@@ -48,7 +48,7 @@ var SuccessWithFlowButtons = function () {
|
|
|
48
48
|
var t = useTranslation().t;
|
|
49
49
|
var isAr = useLanguage().isAr;
|
|
50
50
|
var data = useAppSelector(bankSelector).data;
|
|
51
|
-
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank_account, merchant = _g.merchant, user = _g.user;
|
|
51
|
+
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank_account, merchant = _g.merchant, user = _g.user, business = _g.business;
|
|
52
52
|
var _h = useState([]), buttons = _h[0], setButtons = _h[1];
|
|
53
53
|
var _j = nameObj || {}, en = _j.en, ar = _j.ar;
|
|
54
54
|
var username = isAr
|
|
@@ -65,7 +65,8 @@ var SuccessWithFlowButtons = function () {
|
|
|
65
65
|
var identification = user.identification;
|
|
66
66
|
var maskedId = (identification === null || identification === void 0 ? void 0 : identification.id) ? " ".concat(t('masking_symbols')).concat((_f = identification === null || identification === void 0 ? void 0 : identification.id) === null || _f === void 0 ? void 0 : _f.slice(-2)) : '';
|
|
67
67
|
var settings = useAppSelector(settingsSelector);
|
|
68
|
-
var _k = data.verify.responseBody || { contact: {}, board_id: '' },
|
|
68
|
+
var _k = data.verify.responseBody || { contact: {}, board_id: '' }, board_id = _k.board_id, board_info_id = _k.board_info_id;
|
|
69
|
+
var contact = business === null || business === void 0 ? void 0 : business.primary_contact;
|
|
69
70
|
var email = (contact || { email: '' }).email;
|
|
70
71
|
var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, board_id, board_info_id);
|
|
71
72
|
var reMapFlowData = function (flows) {
|
|
@@ -48,7 +48,7 @@ var SuccessWithFlowButtons = function () {
|
|
|
48
48
|
var t = useTranslation().t;
|
|
49
49
|
var isAr = useLanguage().isAr;
|
|
50
50
|
var data = useAppSelector(businessSelector).data;
|
|
51
|
-
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank_account, merchant = _g.merchant, identification = _g.identification;
|
|
51
|
+
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank_account, merchant = _g.merchant, identification = _g.identification, business = _g.business;
|
|
52
52
|
var _h = useState([]), buttons = _h[0], setButtons = _h[1];
|
|
53
53
|
var _j = nameObj || {}, en = _j.en, ar = _j.ar;
|
|
54
54
|
var username = isAr
|
|
@@ -64,7 +64,8 @@ var SuccessWithFlowButtons = function () {
|
|
|
64
64
|
var isPayout = merchant === null || merchant === void 0 ? void 0 : merchant.is_payout_allowed;
|
|
65
65
|
var maskedId = (identification === null || identification === void 0 ? void 0 : identification.id) ? " ".concat(t('masking_symbols')).concat((_f = identification === null || identification === void 0 ? void 0 : identification.id) === null || _f === void 0 ? void 0 : _f.slice(-2)) : '';
|
|
66
66
|
var settings = useAppSelector(settingsSelector);
|
|
67
|
-
var _k = data.verify.responseBody || { contact: {}, board_id: '' },
|
|
67
|
+
var _k = data.verify.responseBody || { contact: {}, board_id: '' }, board_id = _k.board_id, board_info_id = _k.board_info_id;
|
|
68
|
+
var contact = business === null || business === void 0 ? void 0 : business.primary_contact;
|
|
68
69
|
var email = (contact || { email: '' }).email;
|
|
69
70
|
var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, board_id, board_info_id);
|
|
70
71
|
var reMapFlowData = function (flows) {
|
|
@@ -48,7 +48,7 @@ var SuccessWithFlowButtons = function () {
|
|
|
48
48
|
var t = useTranslation().t;
|
|
49
49
|
var isAr = useLanguage().isAr;
|
|
50
50
|
var data = useAppSelector(entitySelector).data;
|
|
51
|
-
var _g = data.verify.responseBody || {}, flows = _g.flows, entity = _g.entity, brand = _g.brand, bank = _g.bank, merchant = _g.merchant, vatID = _g.vatID, user = _g.user;
|
|
51
|
+
var _g = data.verify.responseBody || {}, flows = _g.flows, entity = _g.entity, brand = _g.brand, bank = _g.bank, merchant = _g.merchant, vatID = _g.vatID, user = _g.user, business = _g.business;
|
|
52
52
|
var _h = useState([]), buttons = _h[0], setButtons = _h[1];
|
|
53
53
|
var _j = (user === null || user === void 0 ? void 0 : user.names) || {}, en = _j.en, ar = _j.ar;
|
|
54
54
|
var username = isAr
|
|
@@ -65,7 +65,8 @@ var SuccessWithFlowButtons = function () {
|
|
|
65
65
|
var identification = (user || {}).identification;
|
|
66
66
|
var maskedId = (identification === null || identification === void 0 ? void 0 : identification.id) ? " ".concat(t('masking_symbols')).concat((_f = identification === null || identification === void 0 ? void 0 : identification.id) === null || _f === void 0 ? void 0 : _f.slice(-2)) : '';
|
|
67
67
|
var settings = useAppSelector(settingsSelector);
|
|
68
|
-
var _k = data.verify.responseBody || { contact: {}, board_id: '' },
|
|
68
|
+
var _k = data.verify.responseBody || { contact: {}, board_id: '' }, board_id = _k.board_id, board_info_id = _k.board_info_id;
|
|
69
|
+
var contact = business === null || business === void 0 ? void 0 : business.primary_contact;
|
|
69
70
|
var email = (contact || { email: '' }).email;
|
|
70
71
|
var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, board_id, board_info_id);
|
|
71
72
|
var reMapFlowData = function (flows) {
|
|
@@ -48,7 +48,7 @@ var SuccessWithFlowButtons = function () {
|
|
|
48
48
|
var t = useTranslation().t;
|
|
49
49
|
var isAr = useLanguage().isAr;
|
|
50
50
|
var data = useAppSelector(individualSelector).data;
|
|
51
|
-
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank_account, merchant = _g.merchant, user = _g.user;
|
|
51
|
+
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank_account, merchant = _g.merchant, user = _g.user, business = _g.business;
|
|
52
52
|
var _h = useState([]), buttons = _h[0], setButtons = _h[1];
|
|
53
53
|
var _j = nameObj || {}, en = _j.en, ar = _j.ar;
|
|
54
54
|
var username = isAr
|
|
@@ -65,7 +65,8 @@ var SuccessWithFlowButtons = function () {
|
|
|
65
65
|
var identification = (user || {}).identification;
|
|
66
66
|
var maskedId = (identification === null || identification === void 0 ? void 0 : identification.id) ? " ".concat(t('masking_symbols')).concat((_f = identification === null || identification === void 0 ? void 0 : identification.id) === null || _f === void 0 ? void 0 : _f.slice(-2)) : '';
|
|
67
67
|
var settings = useAppSelector(settingsSelector);
|
|
68
|
-
var _k = data.verify.responseBody || { contact: {}, board_id: '' },
|
|
68
|
+
var _k = data.verify.responseBody || { contact: {}, board_id: '' }, board_id = _k.board_id, board_info_id = _k.board_info_id;
|
|
69
|
+
var contact = business === null || business === void 0 ? void 0 : business.primary_contact;
|
|
69
70
|
var email = (contact || { email: '' }).email;
|
|
70
71
|
var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, board_id, board_info_id);
|
|
71
72
|
var reMapFlowData = function (flows) {
|
|
@@ -48,7 +48,7 @@ var SuccessWithFlowButtons = function () {
|
|
|
48
48
|
var t = useTranslation().t;
|
|
49
49
|
var isAr = useLanguage().isAr;
|
|
50
50
|
var data = useAppSelector(passwordSelector).data;
|
|
51
|
-
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank_account, merchant = _g.merchant, user = _g.user;
|
|
51
|
+
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank_account, merchant = _g.merchant, user = _g.user, business = _g.business;
|
|
52
52
|
var _h = useState([]), buttons = _h[0], setButtons = _h[1];
|
|
53
53
|
var _j = nameObj || {}, en = _j.en, ar = _j.ar;
|
|
54
54
|
var username = isAr
|
|
@@ -65,7 +65,8 @@ var SuccessWithFlowButtons = function () {
|
|
|
65
65
|
var identification = user.identification;
|
|
66
66
|
var maskedId = (identification === null || identification === void 0 ? void 0 : identification.id) ? " ".concat(t('masking_symbols')).concat((_f = identification === null || identification === void 0 ? void 0 : identification.id) === null || _f === void 0 ? void 0 : _f.slice(-2)) : '';
|
|
67
67
|
var settings = useAppSelector(settingsSelector);
|
|
68
|
-
var _k = data.verify.responseBody || { contact: {}, board_id: '' },
|
|
68
|
+
var _k = data.verify.responseBody || { contact: {}, board_id: '' }, board_id = _k.board_id, board_info_id = _k.board_info_id;
|
|
69
|
+
var contact = business === null || business === void 0 ? void 0 : business.primary_contact;
|
|
69
70
|
var email = (contact || { email: '' }).email;
|
|
70
71
|
var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, board_id, board_info_id);
|
|
71
72
|
var reMapFlowData = function (flows) {
|
|
@@ -92,9 +92,9 @@ export default function SaleChannelIconsInput(_a) {
|
|
|
92
92
|
var isSubActive = selectedIconId === sub.id;
|
|
93
93
|
return (_jsx(Collapse, __assign({ in: isSubActive, timeout: 300 }, { children: _jsx(InputStyled, { onChange: function (e) {
|
|
94
94
|
onChangeValue(e.target.value, sub.id);
|
|
95
|
-
}, value: sub.address || '', startAdornment: _jsx(TextStyled, __assign({ sx: __assign({}, (isTwitter(sub.code) && { fontSize: '20px' })) }, { children: isWebsite(sub.code) ? "https://" : isTwitter(sub.code) ? "@" : '' })), placeholder: t(getPlaceHolder(sub)) }) }), "sub_".concat(subIndex)));
|
|
95
|
+
}, value: sub.address || '', startAdornment: _jsx(TextStyled, __assign({ sx: __assign({}, (isTwitter(sub.code) && { fontSize: '20px' })) }, { children: isWebsite(sub.code) ? "https://www." : isTwitter(sub.code) ? "@" : '' })), placeholder: t(getPlaceHolder(sub)) }) }), "sub_".concat(subIndex)));
|
|
96
96
|
})) : (_jsx(Collapse, __assign({ in: isActive, timeout: 300 }, { children: _jsx(InputStyled, { onChange: function (e) {
|
|
97
97
|
onChangeValue(e.target.value, channel.id);
|
|
98
|
-
}, value: channel.address || '', startAdornment: _jsx(TextStyled, __assign({ sx: __assign({}, (isTwitter(channel.code) && { fontSize: '20px' })) }, { children: isWebsite(channel.code) ? "https://" : isTwitter(channel.code) ? "@" : '' })), placeholder: t(getPlaceHolder(channel)) }) }), index));
|
|
98
|
+
}, value: channel.address || '', startAdornment: _jsx(TextStyled, __assign({ sx: __assign({}, (isTwitter(channel.code) && { fontSize: '20px' })) }, { children: isWebsite(channel.code) ? "https://www." : isTwitter(channel.code) ? "@" : '' })), placeholder: t(getPlaceHolder(channel)) }) }), index));
|
|
99
99
|
}), _jsx(Collapse, __assign({ in: !!(error && error !== 'choose_atleast_one_channel') }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: t(error) })) }))] })) })));
|
|
100
100
|
}
|
|
@@ -48,7 +48,7 @@ var SuccessWithFlowButtons = function () {
|
|
|
48
48
|
var t = useTranslation().t;
|
|
49
49
|
var isAr = useLanguage().isAr;
|
|
50
50
|
var data = useAppSelector(taxSelector).data;
|
|
51
|
-
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank, merchant = _g.merchant, vatID = _g.vatID, user = _g.user;
|
|
51
|
+
var _g = data.verify.responseBody || {}, flows = _g.flows, nameObj = _g.name, entity = _g.entity, brand = _g.brand, bank = _g.bank, merchant = _g.merchant, vatID = _g.vatID, user = _g.user, business = _g.business;
|
|
52
52
|
var _h = useState([]), buttons = _h[0], setButtons = _h[1];
|
|
53
53
|
var _j = nameObj || {}, en = _j.en, ar = _j.ar;
|
|
54
54
|
var username = isAr
|
|
@@ -65,7 +65,8 @@ var SuccessWithFlowButtons = function () {
|
|
|
65
65
|
var identification = user.identification;
|
|
66
66
|
var maskedId = (identification === null || identification === void 0 ? void 0 : identification.id) ? " ".concat(t('masking_symbols')).concat((_f = identification === null || identification === void 0 ? void 0 : identification.id) === null || _f === void 0 ? void 0 : _f.slice(-2)) : '';
|
|
67
67
|
var settings = useAppSelector(settingsSelector);
|
|
68
|
-
var _k = data.verify.responseBody || { contact: {}, board_id: '' },
|
|
68
|
+
var _k = data.verify.responseBody || { contact: {}, board_id: '' }, board_id = _k.board_id, board_info_id = _k.board_info_id;
|
|
69
|
+
var contact = business === null || business === void 0 ? void 0 : business.primary_contact;
|
|
69
70
|
var email = (contact || { email: '' }).email;
|
|
70
71
|
var url = getResetFlowUrl('/password', settings.data.language, PASSWORD_OPERATION_TYPE.RESET_PASSWORD, board_id, board_info_id);
|
|
71
72
|
var reMapFlowData = function (flows) {
|