@tap-payments/auth-jsconnect 2.4.22 → 2.4.23
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/features/app/bank/bankStore.js +4 -1
- package/build/features/app/brand/brandStore.js +4 -1
- package/build/features/app/entity/entityStore.js +4 -1
- package/build/features/app/individual/individualStore.js +4 -1
- package/build/features/app/tax/taxStore.js +4 -1
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.js +1 -1
- package/package.json +1 -1
|
@@ -107,7 +107,10 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
|
|
|
107
107
|
thunkApi.dispatch(handleCurrentActiveScreen('BANK_VERIFY_STEP'));
|
|
108
108
|
}
|
|
109
109
|
else if (data.step_name === BANK_STEP_NAMES.BANK_INFO) {
|
|
110
|
-
|
|
110
|
+
if (isInternally)
|
|
111
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
112
|
+
else
|
|
113
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
111
114
|
}
|
|
112
115
|
return [2, {
|
|
113
116
|
data: data,
|
|
@@ -119,7 +119,10 @@ export var verifyLeadToken = createAsyncThunk('brandVerifyLeadToken', function (
|
|
|
119
119
|
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
120
120
|
case 6:
|
|
121
121
|
salesChannels = _j.sent();
|
|
122
|
-
|
|
122
|
+
if (isInternally)
|
|
123
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP')); });
|
|
124
|
+
else
|
|
125
|
+
thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP'));
|
|
123
126
|
_j.label = 7;
|
|
124
127
|
case 7: return [2, {
|
|
125
128
|
data: data,
|
|
@@ -128,7 +128,10 @@ export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function
|
|
|
128
128
|
return [4, API.entityService.retrieveEntityType()];
|
|
129
129
|
case 9:
|
|
130
130
|
entityTypes = _m.sent();
|
|
131
|
-
|
|
131
|
+
if (isInternally)
|
|
132
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP')); });
|
|
133
|
+
else
|
|
134
|
+
thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP'));
|
|
132
135
|
_m.label = 10;
|
|
133
136
|
case 10: return [2, {
|
|
134
137
|
data: data,
|
|
@@ -152,7 +152,10 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
|
|
|
152
152
|
_m.sent();
|
|
153
153
|
_m.label = 13;
|
|
154
154
|
case 13:
|
|
155
|
-
|
|
155
|
+
if (isInternally)
|
|
156
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
|
|
157
|
+
else
|
|
158
|
+
thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP'));
|
|
156
159
|
_m.label = 14;
|
|
157
160
|
case 14: return [3, 16];
|
|
158
161
|
case 15:
|
|
@@ -106,7 +106,10 @@ export var verifyLeadToken = createAsyncThunk('taxVerifyLeadToken', function (_a
|
|
|
106
106
|
thunkApi.dispatch(handleCurrentActiveScreen('TAX_VERIFY_STEP'));
|
|
107
107
|
}
|
|
108
108
|
else if (data.step_name === TAX_STEP_NAMES.TAX_INFO) {
|
|
109
|
-
|
|
109
|
+
if (isInternally)
|
|
110
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('TAX_TAX_DETAILS_STEP')); });
|
|
111
|
+
else
|
|
112
|
+
thunkApi.dispatch(handleNextScreenStep('TAX_TAX_DETAILS_STEP'));
|
|
110
113
|
}
|
|
111
114
|
return [2, {
|
|
112
115
|
data: data,
|
|
@@ -128,7 +128,7 @@ var CustomerBase = function (_a) {
|
|
|
128
128
|
};
|
|
129
129
|
var customerLocationsValue = customerLocationsControl.field.value;
|
|
130
130
|
var customerLocationSelected = customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue[0];
|
|
131
|
-
return (_jsx(Collapse, __assign({ in: props.show }, { children: _jsxs(ScreenContainer, { children: [_jsxs(LabelContainerStyled, { children: [_jsxs(BaseLabelStyled, { children: [t('select_customer_base'), " ", _jsx(MandatoryStyled, { children: "*" })] }), _jsx(Tooltip, __assign({ title: t('customer_base_name_hint'), onMouseOver: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onTouchStartCapture: function () { return setIsHovered(true); } }, { children: isHovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] }), _jsx(InputStyled, { readOnly: readOnly, placeholder: t('
|
|
131
|
+
return (_jsx(Collapse, __assign({ in: props.show }, { children: _jsxs(ScreenContainer, { children: [_jsxs(LabelContainerStyled, { children: [_jsxs(BaseLabelStyled, { children: [t('select_customer_base'), " ", _jsx(MandatoryStyled, { children: "*" })] }), _jsx(Tooltip, __assign({ title: t('customer_base_name_hint'), onMouseOver: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onTouchStartCapture: function () { return setIsHovered(true); } }, { children: isHovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] }), _jsx(InputStyled, { readOnly: readOnly, placeholder: t('choose_customer_base'), value: isAr ? (_b = customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name.ar) !== null && _b !== void 0 ? _b : '' : (_c = customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name.en) !== null && _c !== void 0 ? _c : '', onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified }) }), _jsxs(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { searchKeyPath: 'name.en', list: customerLocationsList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
132
132
|
return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue.id) }, { children: isAr ? item.name.ar : item.name.en })) })), item.id === (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(CheckIcon, { isVerified: isVerified }), checkRemainingCondition(item) && item.id != (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(CheckIcon, { isVerified: isVerified })] }));
|
|
133
133
|
} })] }))] }) })));
|
|
134
134
|
};
|
|
@@ -152,7 +152,7 @@ var customerLocations = function (_a) {
|
|
|
152
152
|
};
|
|
153
153
|
var customerLocationsValue = customerLocationsControl.field.value;
|
|
154
154
|
var customerLocationSelected = customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue[0];
|
|
155
|
-
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsxs(LabelContainerStyled, { children: [_jsx(BaseLabelStyled, { children: t('select_customer_base') }), _jsx(Tooltip, __assign({ title: t('customer_base_name_hint'), onMouseOver: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onTouchStartCapture: function () { return setIsHovered(true); } }, { children: isHovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] }), _jsx(InputStyled, { placeholder: t('
|
|
155
|
+
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsxs(LabelContainerStyled, { children: [_jsx(BaseLabelStyled, { children: t('select_customer_base') }), _jsx(Tooltip, __assign({ title: t('customer_base_name_hint'), onMouseOver: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onTouchStartCapture: function () { return setIsHovered(true); } }, { children: isHovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] }), _jsx(InputStyled, { placeholder: t('choose_customer_base'), value: (isAr ? customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name.ar : customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name.en) || '', onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { searchKeyPath: 'name.en', list: customerLocationsList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
156
156
|
return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue.id) }, { children: isAr ? item.name.ar : item.name.en })) })), item.id === (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(CheckIcon, {}), checkRemainingCondition(item) && item.id != (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(CheckIcon, {})] }));
|
|
157
157
|
} })] }))] }) })));
|
|
158
158
|
};
|