@tap-payments/auth-jsconnect 2.3.51-test → 2.3.57-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.
@@ -9,6 +9,7 @@ export interface DatePickerProps extends CalendarProps {
9
9
  disabled?: boolean;
10
10
  readOnly?: boolean;
11
11
  dir?: string;
12
+ isDob?: boolean;
12
13
  }
13
- declare const _default: React.MemoExoticComponent<({ onDateChange, disabled, readOnly, onClick, onDatePicked, dir, defaultValue, ...rest }: DatePickerProps) => JSX.Element>;
14
+ declare const _default: React.MemoExoticComponent<({ onDateChange, disabled, readOnly, onClick, onDatePicked, dir, defaultValue, isDob, ...rest }: DatePickerProps) => JSX.Element>;
14
15
  export default _default;
@@ -30,13 +30,13 @@ import Divider from '@mui/material/Divider';
30
30
  import Collapse from '../Collapse';
31
31
  import ExpandIcon from '../ExpandIcon';
32
32
  import CalendarTodayOutlined from '@mui/icons-material/CalendarTodayOutlined';
33
- import { convertNumbers2English, dateFormat, scrollDown, scrollUp } from '../../utils';
33
+ import { convertNumbers2English, dateFormat, getEighteenYearsAgo, scrollDown, scrollUp } from '../../utils';
34
34
  import Input from '../Input';
35
35
  import Text from '../Text';
36
36
  import './customStyle.css';
37
- var ContainerIcon = styled(CalendarTodayOutlined)(function (_a) {
38
- var theme = _a.theme;
39
- return (__assign(__assign({ marginInlineStart: theme.spacing(2.5) }, theme.typography.h6), { cursor: 'pointer', width: theme.spacing(2.5), height: theme.spacing(2.5) }));
37
+ var ContainerIcon = styled(CalendarTodayOutlined, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
38
+ var theme = _a.theme, disabled = _a.disabled;
39
+ return (__assign(__assign({ marginInlineStart: theme.spacing(2.5) }, theme.typography.h6), { cursor: disabled ? 'auto' : 'pointer', width: theme.spacing(2.5), height: theme.spacing(2.5) }));
40
40
  });
41
41
  var Container = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
42
42
  var theme = _a.theme, disabled = _a.disabled;
@@ -52,7 +52,8 @@ var InputFieldStyled = styled(Input)(function (_a) {
52
52
  cursor: disabled ? 'auto' : 'pointer',
53
53
  '&::placeholder': __assign(__assign({ opacity: 1, color: theme.palette.text.primary, lineHeight: theme.spacing(2.125) }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight }),
54
54
  '& .MuiInputBase-input': {
55
- WebkitTextFillColor: 'inherit'
55
+ WebkitTextFillColor: 'inherit',
56
+ cursor: disabled ? 'auto' : 'pointer'
56
57
  }
57
58
  });
58
59
  });
@@ -64,14 +65,14 @@ var ArrowIcon = styled(Text, { shouldForwardProp: function (prop) { return prop
64
65
  });
65
66
  });
66
67
  var DatePicker = function (_a) {
67
- var onDateChange = _a.onDateChange, disabled = _a.disabled, readOnly = _a.readOnly, onClick = _a.onClick, onDatePicked = _a.onDatePicked, dir = _a.dir, defaultValue = _a.defaultValue, rest = __rest(_a, ["onDateChange", "disabled", "readOnly", "onClick", "onDatePicked", "dir", "defaultValue"]);
68
+ var onDateChange = _a.onDateChange, disabled = _a.disabled, readOnly = _a.readOnly, onClick = _a.onClick, onDatePicked = _a.onDatePicked, dir = _a.dir, defaultValue = _a.defaultValue, isDob = _a.isDob, rest = __rest(_a, ["onDateChange", "disabled", "readOnly", "onClick", "onDatePicked", "dir", "defaultValue", "isDob"]);
68
69
  var _b = useState(), date = _b[0], setDate = _b[1];
69
70
  var _c = React.useState(null), anchor = _c[0], setAnchor = _c[1];
70
71
  useEffect(function () {
71
72
  if (defaultValue)
72
73
  setDate(defaultValue);
73
74
  }, [defaultValue]);
74
- var calenderIcon = _jsx(ContainerIcon, {});
75
+ var calenderIcon = _jsx(ContainerIcon, { disabled: disabled });
75
76
  var defaultMax = new Date();
76
77
  var defaultMin = new Date('1900-01-01');
77
78
  var toggleCalender = function (event) {
@@ -99,6 +100,6 @@ var DatePicker = function (_a) {
99
100
  return (_jsxs(Container, __assign({ disabled: disabled, id: 'container-calendar' }, { children: [_jsx(InputFieldStyled, { endAdornment: _jsx(ArrowIcon, __assign({ disabled: disabled }, { children: disabled ? '' : _jsx(ExpandIcon, { anchorEl: !!anchor }) })), value: date ? formattedDate(date) : '', placeholder: 'YYYY-MM-DD', onClick: function (e) {
100
101
  if (!disabled)
101
102
  toggleCalender(e);
102
- }, startAdornment: calenderIcon, disabled: !disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: !!anchor }, { children: [_jsx(Calendar, __assign({}, rest, { value: date, calendarType: 'Hebrew', onChange: handleOnDateChange, locale: rest.locale, maxDate: rest.maxDate || defaultMax, minDate: rest.minDate || defaultMin })), _jsx(Divider, {})] }))] })));
103
+ }, startAdornment: calenderIcon, disabled: disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: !!anchor }, { children: [_jsx(Calendar, __assign({}, rest, { value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), calendarType: 'Hebrew', onChange: handleOnDateChange, locale: rest.locale, maxDate: rest.maxDate || defaultMax, minDate: rest.minDate || defaultMin })), _jsx(Divider, {})] }))] })));
103
104
  };
104
105
  export default memo(DatePicker);
@@ -59,7 +59,7 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
59
  import API from '../../../api';
60
60
  import { BusinessType, FlowsTypes, DocumentPurpose } from '../../../@types';
61
61
  import { BUSINESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
62
- import { convertNumbers2English, getEighteenYearsAgo, hasKey, sleep, isKW, isSA, dateFormat } from '../../../utils';
62
+ import { convertNumbers2English, hasKey, sleep, isKW, isSA, dateFormat } from '../../../utils';
63
63
  import { handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
64
64
  export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
65
65
  var payload, data, countryIso2, boardData, brandData, leadData, entity_activities, steps, brand, board_id, brandID, hasBusinessCompleted, hasBusinessCRInfoCompleted, hasBusinessCRActivitiesCompleted, hasBusinessCustomersCompleted, activityList;
@@ -693,7 +693,7 @@ var initialState = {
693
693
  },
694
694
  nidData: {
695
695
  nid: '',
696
- dob: getEighteenYearsAgo(),
696
+ dob: '',
697
697
  type: ''
698
698
  },
699
699
  businessTypeData: {
@@ -71,7 +71,7 @@ import { handleNextScreenStep } from '../../../app/settings';
71
71
  import { CONNECT_STEP_NAMES, defaultCountry, IDENTIFICATION_TYPE, OTHER_BRAND } from '../../../constants';
72
72
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
73
73
  import { AuthForType, FlowsTypes } from '../../../@types';
74
- import { capitalizeTheFirstLetterOfEachWord, concatenateObjectValues, findCountryByIddPrefix, fixBrandList, getEighteenYearsAgo, getIndividualName, isTwitter, isWebsite, sleep } from '../../../utils';
74
+ import { capitalizeTheFirstLetterOfEachWord, concatenateObjectValues, findCountryByIddPrefix, fixBrandList, isTwitter, getIndividualName, isWebsite, sleep } from '../../../utils';
75
75
  export var createMobileAuth = createAsyncThunk('createMobileAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
76
76
  var settings, requestBody, data;
77
77
  var _a, _b;
@@ -586,7 +586,7 @@ var initialState = {
586
586
  },
587
587
  nidData: {
588
588
  nid: '',
589
- dob: getEighteenYearsAgo(),
589
+ dob: '',
590
590
  type: ''
591
591
  },
592
592
  civilIdData: {
@@ -61,7 +61,7 @@ import { FlowsTypes, AuthForType, BusinessType } from '../../../@types';
61
61
  import API from '../../../api';
62
62
  import { CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
63
63
  import { defaultCountry } from '../../../constants';
64
- import { getIndividualName, capitalizeTheFirstLetterOfEachWord, getEighteenYearsAgo, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA } from '../../../utils';
64
+ import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA } from '../../../utils';
65
65
  export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
66
66
  var _a, settings, connectExpress, countryCode, showBoard, data, phone, status, board_id, board_info_id, isRegistered, _b, boardInfo, boardData, error_1;
67
67
  var _c, _d;
@@ -733,7 +733,7 @@ var initialState = {
733
733
  },
734
734
  nidData: {
735
735
  nid: '',
736
- dob: getEighteenYearsAgo(),
736
+ dob: '',
737
737
  termAndConditionChecked: false
738
738
  },
739
739
  civilIdData: {
@@ -21,6 +21,7 @@ export declare const verifyToken: import("@reduxjs/toolkit").AsyncThunk<{
21
21
  countryCode: any;
22
22
  notification: any;
23
23
  business: any;
24
+ flows: any;
24
25
  };
25
26
  token: string;
26
27
  }, VerifyLeadTokenProps, {}>;
@@ -78,6 +79,7 @@ export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
78
79
  countryCode: any;
79
80
  notification: any;
80
81
  business: any;
82
+ flows: any;
81
83
  };
82
84
  formData: {
83
85
  otp: string;
@@ -75,7 +75,7 @@ import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountry
75
75
  export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a, thunkApi) {
76
76
  var token = _a.token, isInternally = _a.isInternally, isUpdatePhoneInfo = _a.isUpdatePhoneInfo;
77
77
  return __awaiter(void 0, void 0, void 0, function () {
78
- var payload, settings, data, boardData, individualData, countryCode, boardInfoData, countries, board_id, board_info_id, notification, _b, id, type, data_1, birthCountry;
78
+ var payload, settings, data, boardData, individualData, countryCode, boardInfoData, boardInfoStatus, countries, board_id, board_info_id, notification, _b, id, type, data_1, birthCountry;
79
79
  var _c, _d, _e, _f, _g, _h, _j;
80
80
  return __generator(this, function (_k) {
81
81
  switch (_k.label) {
@@ -88,7 +88,7 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
88
88
  return [4, API.leadService.verifyLeadToken(payload)];
89
89
  case 1:
90
90
  data = (_k.sent()).data;
91
- boardInfoData = undefined;
91
+ boardInfoStatus = undefined;
92
92
  countries = settings.data.countries;
93
93
  if (((_c = data.errors) === null || _c === void 0 ? void 0 : _c.length) || (data === null || data === void 0 ? void 0 : data.mw_error))
94
94
  throw new Error(data.errors[0].description || (data === null || data === void 0 ? void 0 : data.mw_error));
@@ -100,9 +100,9 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
100
100
  }
101
101
  if (!(data.step_name === INDIVIDUAl_STEP_NAMES.PHONE_INFO)) return [3, 2];
102
102
  thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PHONE_INFO_STEP'));
103
- return [3, 15];
103
+ return [3, 16];
104
104
  case 2:
105
- if (!(data.step_name !== INDIVIDUAl_STEP_NAMES.PHONE_AUTH)) return [3, 14];
105
+ if (!(data.step_name !== INDIVIDUAl_STEP_NAMES.PHONE_AUTH)) return [3, 15];
106
106
  board_id = data === null || data === void 0 ? void 0 : data.id;
107
107
  board_info_id = data === null || data === void 0 ? void 0 : data.board_info_id;
108
108
  if (!(board_id && board_info_id)) return [3, 5];
@@ -129,32 +129,34 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
129
129
  if (countryCode)
130
130
  thunkApi.dispatch(handleSetCountryByIso2(countryCode));
131
131
  }
132
- if (!(individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized)) return [3, 10];
132
+ if (!(individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized)) return [3, 11];
133
133
  if (!((_e = boardData === null || boardData === void 0 ? void 0 : boardData.business) === null || _e === void 0 ? void 0 : _e.id)) return [3, 9];
134
134
  return [4, thunkApi.dispatch(getIndividualList((_f = boardData === null || boardData === void 0 ? void 0 : boardData.business) === null || _f === void 0 ? void 0 : _f.id))];
135
135
  case 8:
136
136
  _k.sent();
137
137
  _k.label = 9;
138
- case 9:
139
- thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
140
- return [3, 13];
138
+ case 9: return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
141
139
  case 10:
140
+ boardInfoStatus = _k.sent();
141
+ thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
142
+ return [3, 14];
143
+ case 11:
142
144
  birthCountry = ((_g = individualData === null || individualData === void 0 ? void 0 : individualData.birth) === null || _g === void 0 ? void 0 : _g.country) || countryCode;
143
- if (!birthCountry) return [3, 12];
145
+ if (!birthCountry) return [3, 13];
144
146
  return [4, thunkApi.dispatch(getCityList(birthCountry))];
145
- case 11:
146
- _k.sent();
147
- _k.label = 12;
148
147
  case 12:
149
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
148
+ _k.sent();
150
149
  _k.label = 13;
151
- case 13: return [3, 15];
152
- case 14:
150
+ case 13:
151
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
152
+ _k.label = 14;
153
+ case 14: return [3, 16];
154
+ case 15:
153
155
  if (isUpdatePhoneInfo) {
154
156
  thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_VERIFY_STEP'));
155
157
  }
156
- _k.label = 15;
157
- case 15: return [2, {
158
+ _k.label = 16;
159
+ case 16: return [2, {
158
160
  data: data,
159
161
  boardResponse: {
160
162
  brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
@@ -168,7 +170,8 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
168
170
  countries: countries,
169
171
  countryCode: countryCode,
170
172
  notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification,
171
- business: boardData === null || boardData === void 0 ? void 0 : boardData.business
173
+ business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
174
+ flows: (boardInfoStatus === null || boardInfoStatus === void 0 ? void 0 : boardInfoStatus.info) || []
172
175
  },
173
176
  token: token
174
177
  }];
@@ -401,7 +404,7 @@ export var retrieveBoardDetails = createAsyncThunk('retrieveIndividualBoardDetai
401
404
  });
402
405
  }); });
403
406
  export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
404
- var _a, individual, settings, responseBody, _b, board_id, board_info_id, countries, payload, data, boardInfoData, individualData, boardData, countryCode, notification, _c, id, type, data_3, birthCountry;
407
+ var _a, individual, settings, responseBody, _b, board_id, board_info_id, countries, payload, data, boardInfoData, individualData, boardData, boardInfoStatus, countryCode, notification, _c, id, type, data_3, birthCountry;
405
408
  var _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
406
409
  return __generator(this, function (_p) {
407
410
  switch (_p.label) {
@@ -420,7 +423,7 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
420
423
  return [4, API.leadService.verifyLeadOTP(payload)];
421
424
  case 1:
422
425
  data = (_p.sent()).data;
423
- boardData = undefined;
426
+ boardInfoStatus = undefined;
424
427
  if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
425
428
  throw new Error(data.errors[0].description);
426
429
  if (!board_id) return [3, 3];
@@ -445,26 +448,28 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
445
448
  case 6:
446
449
  if (countryCode)
447
450
  thunkApi.dispatch(handleSetCountryByIso2(countryCode));
448
- if (!(individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized)) return [3, 9];
451
+ if (!(individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized)) return [3, 10];
449
452
  if (!((_g = boardData === null || boardData === void 0 ? void 0 : boardData.business) === null || _g === void 0 ? void 0 : _g.id)) return [3, 8];
450
453
  return [4, thunkApi.dispatch(getIndividualList((_h = boardData === null || boardData === void 0 ? void 0 : boardData.business) === null || _h === void 0 ? void 0 : _h.id))];
451
454
  case 7:
452
455
  _p.sent();
453
456
  _p.label = 8;
454
- case 8:
455
- thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
456
- return [3, 12];
457
+ case 8: return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
457
458
  case 9:
459
+ boardInfoStatus = _p.sent();
460
+ thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
461
+ return [3, 13];
462
+ case 10:
458
463
  birthCountry = ((_j = individualData === null || individualData === void 0 ? void 0 : individualData.birth) === null || _j === void 0 ? void 0 : _j.country) || countryCode;
459
- if (!birthCountry) return [3, 11];
464
+ if (!birthCountry) return [3, 12];
460
465
  return [4, thunkApi.dispatch(getCityList(birthCountry))];
461
- case 10:
462
- _p.sent();
463
- _p.label = 11;
464
466
  case 11:
465
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
467
+ _p.sent();
466
468
  _p.label = 12;
467
469
  case 12:
470
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
471
+ _p.label = 13;
472
+ case 13:
468
473
  (_l = (_k = settings.data.appConfig).onStepCompleted) === null || _l === void 0 ? void 0 : _l.call(_k, settings.data.activeScreen.name, { otp: params.otp });
469
474
  return [2, {
470
475
  data: data,
@@ -480,7 +485,8 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
480
485
  countries: countries,
481
486
  countryCode: countryCode,
482
487
  notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification,
483
- business: boardData === null || boardData === void 0 ? void 0 : boardData.business
488
+ business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
489
+ flows: (boardInfoStatus === null || boardInfoStatus === void 0 ? void 0 : boardInfoStatus.info) || []
484
490
  },
485
491
  formData: __assign({}, params)
486
492
  }];
@@ -40,6 +40,6 @@ var BOD = function (_a) {
40
40
  return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
41
41
  var spacing = _a.spacing;
42
42
  return spacing(2.5, 2.5, 1.5, 2.5);
43
- } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { readOnly: true, defaultValue: dateValue ? new Date(dateValue) : new Date(), dir: 'ltr', locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleBirthDateChange })] }));
43
+ } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { readOnly: true, defaultValue: dateValue ? new Date(dateValue) : undefined, dir: 'ltr', locale: 'en', isDob: true, onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleBirthDateChange })] }));
44
44
  };
45
45
  export default React.memo(BOD);
@@ -42,6 +42,6 @@ var DOB = function (_a) {
42
42
  return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
43
43
  var spacing = _a.spacing;
44
44
  return spacing(2.5, 2.5, 1.5, 2.5);
45
- } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { defaultValue: dateValue ? new Date(dateValue) : new Date(), readOnly: true, dir: 'ltr', locale: 'en', onDateChange: handleBirthDateChange, onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); } })] }));
45
+ } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { defaultValue: dateValue ? new Date(dateValue) : undefined, readOnly: true, dir: 'ltr', locale: 'en', isDob: true, onDateChange: handleBirthDateChange, onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); } })] }));
46
46
  };
47
47
  export default DOB;
@@ -42,6 +42,6 @@ var DOB = function (_a) {
42
42
  return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
43
43
  var spacing = _a.spacing;
44
44
  return spacing(2.5, 2.5, 1.5, 2.5);
45
- } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { disabled: readOnly, defaultValue: dateValue ? new Date(dateValue) : new Date(), readOnly: true, dir: 'ltr', locale: 'en', onDateChange: handleBirthDateChange, onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); } })] }));
45
+ } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { disabled: readOnly, defaultValue: dateValue ? new Date(dateValue) : undefined, readOnly: true, dir: 'ltr', locale: 'en', isDob: true, onDateChange: handleBirthDateChange, onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); } })] }));
46
46
  };
47
47
  export default DOB;
@@ -42,6 +42,6 @@ var DOB = function (_a) {
42
42
  return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
43
43
  var spacing = _a.spacing;
44
44
  return spacing(2.5, 2.5, 1.5, 2.5);
45
- } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { defaultValue: dateValue ? new Date(dateValue) : new Date(), readOnly: true, dir: 'ltr', locale: 'en', onDateChange: handleBirthDateChange, onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); } })] }));
45
+ } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { defaultValue: dateValue ? new Date(dateValue) : undefined, readOnly: true, dir: 'ltr', locale: 'en', isDob: true, onDateChange: handleBirthDateChange, onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); } })] }));
46
46
  };
47
47
  export default DOB;
@@ -41,6 +41,6 @@ var BOD = function (_a) {
41
41
  return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
42
42
  var spacing = _a.spacing;
43
43
  return spacing(2.5, 2.5, 2.5, 2.5);
44
- } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { readOnly: true, disabled: readOnly, defaultValue: dateValue ? new Date(dateValue) : new Date(), dir: 'ltr', locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleBirthDateChange })] }) })));
44
+ } } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { readOnly: true, disabled: readOnly, defaultValue: dateValue ? new Date(dateValue) : undefined, dir: 'ltr', isDob: true, locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleBirthDateChange })] }) })));
45
45
  };
46
46
  export default React.memo(BOD);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.3.51-test",
3
+ "version": "2.3.57-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",