@tap-payments/auth-jsconnect 2.3.0 → 2.3.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.
Files changed (37) hide show
  1. package/build/app/settings.d.ts +3 -1
  2. package/build/app/settings.js +10 -5
  3. package/build/assets/locales/ar.json +3 -1
  4. package/build/assets/locales/en.json +3 -1
  5. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +5 -2
  6. package/build/components/ArabicDatePicker/ArabicDatePicker.js +36 -19
  7. package/build/components/ArabicDatePicker/style.css +44 -5
  8. package/build/components/DatePicker/DatePicker.d.ts +2 -1
  9. package/build/components/DatePicker/DatePicker.js +12 -7
  10. package/build/constants/assets.d.ts +2 -0
  11. package/build/constants/assets.js +2 -0
  12. package/build/features/app/connect/connectStore.d.ts +13 -0
  13. package/build/features/app/connect/connectStore.js +114 -39
  14. package/build/features/app/connectExpress/connectExpressStore.js +1 -2
  15. package/build/features/app/entity/entityStore.js +1 -1
  16. package/build/features/brand/screens/BrandActivities/validation.d.ts +30 -30
  17. package/build/features/brand/screens/BrandActivities/validation.js +2 -2
  18. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  19. package/build/features/business/screens/Activities/validation.d.ts +90 -90
  20. package/build/features/business/screens/Activities/validation.js +2 -2
  21. package/build/features/business/screens/IDBOD/DOB.js +2 -2
  22. package/build/features/connect/Connect.js +55 -4
  23. package/build/features/connect/screens/NID/DOB.js +3 -3
  24. package/build/features/connectExpress/ConnectExpress.js +2 -5
  25. package/build/features/connectExpress/screens/NID/DOB.js +2 -2
  26. package/build/features/connectExpress/screens/NIDMissed/DOB.js +2 -2
  27. package/build/features/entity/screens/EntityCapital/validation.d.ts +90 -90
  28. package/build/features/entity/screens/EntityCapital/validation.js +2 -2
  29. package/build/features/entity/screens/EntityName/ExpiryDate.js +2 -2
  30. package/build/features/entity/screens/EntityName/IssuingDate.js +2 -2
  31. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +2 -2
  32. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +2 -2
  33. package/build/features/shared/Calender/Calender.d.ts +13 -0
  34. package/build/features/shared/Calender/Calender.js +56 -0
  35. package/build/features/shared/Calender/index.d.ts +2 -0
  36. package/build/features/shared/Calender/index.js +2 -0
  37. package/package.json +1 -1
@@ -3,62 +3,62 @@ export declare const ActivitiesValidationSchema: yup.ObjectSchema<import("yup/li
3
3
  activities: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
4
4
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
5
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
6
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
7
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
6
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
7
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
8
8
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
9
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
10
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
9
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
10
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
11
11
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
12
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
13
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
12
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
13
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
14
14
  }>>>;
15
15
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
16
16
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
17
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
18
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
19
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
18
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
19
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
20
20
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
21
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
22
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
21
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
22
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
23
23
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
24
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
25
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
24
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
25
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
26
26
  }>>>;
27
27
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
28
28
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
29
29
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
30
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
31
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
30
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
31
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
32
32
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
33
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
34
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
33
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
34
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
35
35
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
36
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
37
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
36
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
37
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
38
38
  }>>>;
39
39
  }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
40
40
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
41
41
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
42
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
43
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
42
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
43
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
44
44
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
45
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
46
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
45
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
46
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
47
47
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
48
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
49
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
48
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
49
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
50
50
  }>>>;
51
51
  }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
52
52
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
53
53
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
54
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
55
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
54
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
55
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
56
56
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
57
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
58
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
57
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
58
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
59
59
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
60
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
61
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
60
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
61
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
62
62
  }>>>;
63
63
  }>>[] | undefined>;
64
64
  operationStartDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
@@ -66,62 +66,62 @@ export declare const ActivitiesValidationSchema: yup.ObjectSchema<import("yup/li
66
66
  activities: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
67
67
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
68
68
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
69
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
70
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
69
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
70
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
71
71
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
72
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
73
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
72
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
73
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
74
74
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
75
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
76
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
75
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
76
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
77
77
  }>>>;
78
78
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
79
79
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
80
80
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
81
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
82
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
81
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
82
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
83
83
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
84
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
85
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
84
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
85
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
86
86
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
87
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
88
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
87
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
88
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
89
89
  }>>>;
90
90
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
91
91
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
92
92
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
93
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
94
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
93
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
94
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
95
95
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
96
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
97
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
96
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
97
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
98
98
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
99
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
100
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
99
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
100
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
101
101
  }>>>;
102
102
  }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
103
103
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
104
104
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
105
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
106
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
105
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
106
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
107
107
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
108
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
109
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
108
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
109
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
110
110
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
111
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
112
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
111
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
112
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
113
113
  }>>>;
114
114
  }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
115
115
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
116
116
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
117
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
118
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
117
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
118
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
119
119
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
120
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
121
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
120
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
121
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
122
122
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
123
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
124
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
123
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
124
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
125
125
  }>>>;
126
126
  }>>[] | undefined>;
127
127
  operationStartDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
@@ -129,62 +129,62 @@ export declare const ActivitiesValidationSchema: yup.ObjectSchema<import("yup/li
129
129
  activities: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
130
130
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
131
131
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
132
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
133
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
132
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
133
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
134
134
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
135
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
136
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
135
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
136
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
137
137
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
138
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
139
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
138
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
139
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
140
140
  }>>>;
141
141
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
142
142
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
143
143
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
144
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
145
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
144
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
145
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
146
146
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
147
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
148
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
147
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
148
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
149
149
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
150
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
151
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
150
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
151
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
152
152
  }>>>;
153
153
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
154
154
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
155
155
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
156
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
157
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
156
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
157
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
158
158
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
159
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
160
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
159
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
160
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
161
161
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
162
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
163
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
162
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
163
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
164
164
  }>>>;
165
165
  }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
166
166
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
167
167
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
168
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
169
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
168
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
169
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
170
170
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
171
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
172
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
171
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
172
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
173
173
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
174
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
175
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
174
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
175
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
176
176
  }>>>;
177
177
  }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
178
178
  id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
179
179
  name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
180
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
181
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
180
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
181
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
182
182
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
183
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
184
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
183
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
184
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
185
185
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
186
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
187
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
186
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
187
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
188
188
  }>>>;
189
189
  }>>[] | undefined>;
190
190
  operationStartDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
@@ -6,8 +6,8 @@ export var ActivitiesValidationSchema = yup.object().shape({
6
6
  .of(yup.object().shape({
7
7
  id: yup.string(),
8
8
  name: yup.object().shape({
9
- ar: yup.string(),
10
- en: yup.string()
9
+ ar: yup.string().nullable(),
10
+ en: yup.string().nullable()
11
11
  })
12
12
  })),
13
13
  operationStartDate: yup.string().required('choose_any_business_date')
@@ -16,8 +16,8 @@ import { useController, useFormContext } from 'react-hook-form';
16
16
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
17
17
  import { styled, alpha } from '@mui/material/styles';
18
18
  import Text from '../../../../components/Text';
19
- import DatePicker from '../../../../components/DatePicker';
20
19
  import { ScreenContainer } from '../../../shared/Containers';
20
+ import Calender from '../../../shared/Calender';
21
21
  import { businessSelector, clearError } from '../../../app/business/businessStore';
22
22
  var InputLabelStyled = styled(Text)(function (_a) {
23
23
  var theme = _a.theme;
@@ -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) : 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 })] }));
43
+ } } }, { children: t('enter_birth_date') })), _jsx(Calender, { isDob: true, defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }));
44
44
  };
45
45
  export default React.memo(BOD);
@@ -9,6 +9,42 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
12
48
  import { jsx as _jsx } from "react/jsx-runtime";
13
49
  import React, { memo } from 'react';
14
50
  import { createRoot } from 'react-dom/client';
@@ -17,7 +53,7 @@ import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepSta
17
53
  import { handleCurrentActiveScreen, settingsSelector, handleOpen } from '../../app/settings';
18
54
  import AnimationFlow from '../../components/AnimationFlow';
19
55
  import { store } from '../../app/store';
20
- import { connectSelector, setDefaultCountryCode } from '../app/connect/connectStore';
56
+ import { connectSelector, retrieveLead, setDefaultCountryCode } from '../app/connect/connectStore';
21
57
  import { ReduxProvider, ThemeProvider } from '../../components/Providers';
22
58
  import Collapse from '../../components/Collapse';
23
59
  import { isKW, findOrCreateElementAndInject, initializeGTM, sendCustomEventToGTM, sendCustomDimension, sendPageView } from '../../utils';
@@ -28,8 +64,23 @@ var Connect = memo(function (props) {
28
64
  var theme = useAppTheme().theme;
29
65
  var dispatch = useAppDispatch();
30
66
  var _a = useAppSelector(settingsSelector), data = _a.data, error = _a.error, settingLoading = _a.loading;
31
- var _b = useAppSelector(connectSelector), connectError = _b.error, loading = _b.loading;
32
- useAppConfig(__assign({ navigation: CONNECT_SCREENS_NAVIGATION, maturity: 'full' }, props));
67
+ var _b = useAppSelector(connectSelector), connectError = _b.error, loading = _b.loading, customLoading = _b.customLoading;
68
+ var onVerifyConfigTokenSuccess = function (data) { return __awaiter(void 0, void 0, void 0, function () {
69
+ var lead_id;
70
+ return __generator(this, function (_a) {
71
+ switch (_a.label) {
72
+ case 0:
73
+ lead_id = (data || {}).lead_id;
74
+ if (!lead_id) return [3, 2];
75
+ return [4, dispatch(retrieveLead(lead_id))];
76
+ case 1:
77
+ _a.sent();
78
+ _a.label = 2;
79
+ case 2: return [2];
80
+ }
81
+ });
82
+ }); };
83
+ useAppConfig(__assign(__assign(__assign({ navigation: CONNECT_SCREENS_NAVIGATION, maturity: 'full' }, props), { configToken: props.configToken }), (props.configToken && { onVerifyConfigTokenSuccess: onVerifyConfigTokenSuccess })));
33
84
  useErrorListener(connectError || error, {
34
85
  event: 'Send Event',
35
86
  event_category: 'User Registration Flow',
@@ -69,7 +120,7 @@ var Connect = memo(function (props) {
69
120
  var handleDialogClose = function () {
70
121
  dispatch(handleOpen(false));
71
122
  };
72
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: settingLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', onConfirm: handleDialogClose, isTapOrigin: isTapOrigin, loading: settingLoading, error: error, open: open, screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: false }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: false }, { children: connectFeatureScreens.map(function (_a, index) {
123
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', onConfirm: handleDialogClose, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: false }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: false }, { children: connectFeatureScreens.map(function (_a, index) {
73
124
  var Element = _a.element, name = _a.name;
74
125
  var isActive = activeScreen.name === name;
75
126
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
@@ -14,10 +14,10 @@ import { useTranslation } from 'react-i18next';
14
14
  import { useController, useFormContext } from 'react-hook-form';
15
15
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
16
16
  import { ScreenContainer } from '../../../shared/Containers';
17
- import DatePicker from '../../../../components/DatePicker';
18
17
  import { alpha, styled } from '@mui/material/styles';
19
- import { clearError, connectSelector } from '../../../app/connect/connectStore';
20
18
  import Text from '../../../../components/Text';
19
+ import Calender from '../../../shared/Calender';
20
+ import { clearError, connectSelector } from '../../../app/connect/connectStore';
21
21
  var InputLabelStyled = styled(Text)(function (_a) {
22
22
  var theme = _a.theme;
23
23
  return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
@@ -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) : 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); } })] }));
45
+ } } }, { children: t('enter_birth_date') })), _jsx(Calender, { isDob: true, defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }));
46
46
  };
47
47
  export default DOB;
@@ -61,13 +61,13 @@ import React, { memo } from 'react';
61
61
  import { createRoot } from 'react-dom/client';
62
62
  import { FeatureContainer } from '../shared/Containers';
63
63
  import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '../../hooks';
64
- import { handleCurrentActiveScreen, handleLanguage, settingsSelector } from '../../app/settings';
64
+ import { handleCurrentActiveScreen, settingsSelector } from '../../app/settings';
65
65
  import AnimationFlow from '../../components/AnimationFlow';
66
66
  import { store } from '../../app/store';
67
67
  import { connectExpressSelector, setIsLeadIdPassed, setPostUrl, setLeadId, retrieveLeadIdentityByIdAsync, setShowBoard } from '../app/connectExpress/connectExpressStore';
68
68
  import { ReduxProvider, ThemeProvider } from '../../components/Providers';
69
69
  import Collapse from '../../components/Collapse';
70
- import { isKW, findOrCreateElementAndInject, getParameterByName, sendPageView } from '../../utils';
70
+ import { isKW, findOrCreateElementAndInject, sendPageView } from '../../utils';
71
71
  import { CONNECT_EXPRESS_SCREENS_NAVIGATION } from '../../constants';
72
72
  import { connectExpressFeatureScreens } from '../featuresScreens';
73
73
  import Background from '../shared/Background';
@@ -109,9 +109,6 @@ var ConnectExpress = memo(function (_a) {
109
109
  React.useEffect(function () {
110
110
  if (data.isValidOperator && props.open && !settingLoading) {
111
111
  if (configToken) {
112
- var lang = getParameterByName('lang');
113
- if (lang)
114
- dispatch(handleLanguage(lang));
115
112
  if (connectData.leadId)
116
113
  dispatch(retrieveLeadIdentityByIdAsync(connectData.leadId));
117
114
  return;
@@ -14,10 +14,10 @@ import { useTranslation } from 'react-i18next';
14
14
  import { useController, useFormContext } from 'react-hook-form';
15
15
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
16
16
  import { ScreenContainer } from '../../../shared/Containers';
17
- import DatePicker from '../../../../components/DatePicker';
18
17
  import { alpha, styled } from '@mui/material/styles';
19
18
  import { clearError, connectExpressSelector } from '../../../app/connectExpress/connectExpressStore';
20
19
  import Text from '../../../../components/Text';
20
+ import Calender from '../../../shared/Calender';
21
21
  var InputLabelStyled = styled(Text)(function (_a) {
22
22
  var theme = _a.theme;
23
23
  return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
@@ -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) : 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); } })] }));
45
+ } } }, { children: t('enter_birth_date') })), _jsx(Calender, { isDob: true, disabled: readOnly, defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }));
46
46
  };
47
47
  export default DOB;
@@ -14,10 +14,10 @@ import { useTranslation } from 'react-i18next';
14
14
  import { useController, useFormContext } from 'react-hook-form';
15
15
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
16
16
  import { ScreenContainer } from '../../../shared/Containers';
17
- import DatePicker from '../../../../components/DatePicker';
18
17
  import { alpha, styled } from '@mui/material/styles';
19
18
  import { clearError, connectExpressSelector } from '../../../app/connectExpress/connectExpressStore';
20
19
  import Text from '../../../../components/Text';
20
+ import Calender from '../../../shared/Calender';
21
21
  var InputLabelStyled = styled(Text)(function (_a) {
22
22
  var theme = _a.theme;
23
23
  return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
@@ -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) : 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); } })] }));
45
+ } } }, { children: t('enter_birth_date') })), _jsx(Calender, { isDob: true, defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleBirthDateChange })] }));
46
46
  };
47
47
  export default DOB;