@djb25/digit-ui-module-wt 1.0.10 → 1.0.11
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +161 -144
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6,120 +6,120 @@ import { useQueryClient } from 'react-query';
|
|
|
6
6
|
import { useForm, Controller } from 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
const commonConfig = [{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
head: "ES_TITILE_OWNER_DETAILS",
|
|
10
|
+
body: [{
|
|
11
|
+
route: "service-type",
|
|
12
|
+
component: "ServiceTypes",
|
|
13
|
+
withoutLabel: true,
|
|
14
|
+
key: "serviceType",
|
|
15
|
+
type: "component",
|
|
16
|
+
nextStep: "info",
|
|
17
|
+
hideInEmployee: true,
|
|
18
|
+
isMandatory: true,
|
|
19
|
+
texts: {
|
|
20
|
+
submitBarLabel: "COMMON_SAVE_NEXT"
|
|
21
21
|
}
|
|
22
22
|
}, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
route: "info",
|
|
24
|
+
component: "InfoPage",
|
|
25
|
+
nextStep: "applicant-details",
|
|
26
|
+
key: "infodetails"
|
|
27
27
|
}, {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
route: "applicant-details",
|
|
29
|
+
component: "ApplicantDetails",
|
|
30
|
+
withoutLabel: true,
|
|
31
|
+
key: "owner",
|
|
32
|
+
type: "component",
|
|
33
|
+
nextStep: "address-details",
|
|
34
|
+
hideInEmployee: true,
|
|
35
|
+
isMandatory: true,
|
|
36
|
+
texts: {
|
|
37
|
+
submitBarLabel: "COMMON_SAVE_NEXT",
|
|
38
|
+
header: "ES_APPLICANT_DETAILS"
|
|
39
39
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
timeLine: [{
|
|
41
|
+
currentStep: 1,
|
|
42
|
+
actions: "ES_APPLICANT_DETAILS"
|
|
43
43
|
}]
|
|
44
44
|
}]
|
|
45
45
|
}, {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
head: "ES_TITLE_ADDRESS_DETAILS",
|
|
47
|
+
body: [{
|
|
48
|
+
route: "address-details",
|
|
49
|
+
component: "AddressDetails",
|
|
50
|
+
withoutLabel: true,
|
|
51
|
+
key: "address",
|
|
52
|
+
type: "component",
|
|
53
|
+
isMandatory: true,
|
|
54
|
+
hideInEmployee: true,
|
|
55
|
+
nextStep: "request-details",
|
|
56
|
+
texts: {
|
|
57
|
+
submitBarLabel: "COMMON_SAVE_NEXT",
|
|
58
|
+
header: "ES_ADDRESS_DETAILS"
|
|
59
59
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
timeLine: [{
|
|
61
|
+
currentStep: 2,
|
|
62
|
+
actions: "ES_ADDRESS_DETAILS"
|
|
63
63
|
}]
|
|
64
64
|
}]
|
|
65
65
|
}, {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
head: "ES_REQUEST_DETAILS",
|
|
67
|
+
body: [{
|
|
68
|
+
route: "request-details",
|
|
69
|
+
component: "RequestDetails",
|
|
70
|
+
withoutLabel: true,
|
|
71
|
+
key: "requestDetails",
|
|
72
|
+
type: "component",
|
|
73
|
+
isMandatory: true,
|
|
74
|
+
hideInEmployee: true,
|
|
75
|
+
nextStep: null,
|
|
76
|
+
texts: {
|
|
77
|
+
submitBarLabel: "COMMON_SAVE_NEXT",
|
|
78
|
+
header: "WT_REQUEST_DETAILS"
|
|
79
79
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
timeLine: [{
|
|
81
|
+
currentStep: 3,
|
|
82
|
+
actions: "ES_REQUEST_DETAILS"
|
|
83
83
|
}]
|
|
84
84
|
}]
|
|
85
85
|
}, {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
86
|
+
head: "ES_TOILET_REQUEST_DETAILS",
|
|
87
|
+
body: [{
|
|
88
|
+
route: "toiletRequest-details",
|
|
89
|
+
component: "ToiletRequestDetails",
|
|
90
|
+
withoutLabel: true,
|
|
91
|
+
key: "toiletRequestDetails",
|
|
92
|
+
type: "component",
|
|
93
|
+
isMandatory: true,
|
|
94
|
+
hideInEmployee: true,
|
|
95
|
+
nextStep: null,
|
|
96
|
+
texts: {
|
|
97
|
+
submitBarLabel: "COMMON_SAVE_NEXT",
|
|
98
|
+
header: "MT_REQUEST_DETAILS"
|
|
99
99
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
timeLine: [{
|
|
101
|
+
currentStep: 3,
|
|
102
|
+
actions: "ES_TOILET_REQUEST_DETAILS"
|
|
103
103
|
}]
|
|
104
104
|
}]
|
|
105
105
|
}, {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
106
|
+
head: "ES_TREE_PRUNING_REQUEST_DETAILS",
|
|
107
|
+
body: [{
|
|
108
|
+
route: "treePruningRequest-details",
|
|
109
|
+
component: "TreePruningRequestDetails",
|
|
110
|
+
withoutLabel: true,
|
|
111
|
+
key: "treePruningRequestDetails",
|
|
112
|
+
type: "component",
|
|
113
|
+
isMandatory: true,
|
|
114
|
+
hideInEmployee: true,
|
|
115
|
+
nextStep: null,
|
|
116
|
+
texts: {
|
|
117
|
+
submitBarLabel: "COMMON_SAVE_NEXT",
|
|
118
|
+
header: "TP_REQUEST_DETAILS"
|
|
119
119
|
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
timeLine: [{
|
|
121
|
+
currentStep: 3,
|
|
122
|
+
actions: "ES_TREE_PRUNING_REQUEST_DETAILS"
|
|
123
123
|
}]
|
|
124
124
|
}]
|
|
125
125
|
}];
|
|
@@ -182,7 +182,7 @@ const VerticalTimeline = ({
|
|
|
182
182
|
};
|
|
183
183
|
|
|
184
184
|
const WTCreate = () => {
|
|
185
|
-
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi;
|
|
185
|
+
var _userInfo$info, _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi;
|
|
186
186
|
const queryClient = useQueryClient();
|
|
187
187
|
const match = useRouteMatch();
|
|
188
188
|
const {
|
|
@@ -194,9 +194,19 @@ const WTCreate = () => {
|
|
|
194
194
|
const history = useHistory();
|
|
195
195
|
let config = [];
|
|
196
196
|
const [params, setParams, clearParams] = Digit.Hooks.useSessionStorage("WT_Create", {});
|
|
197
|
+
const userInfo = Digit.UserService.getUser();
|
|
198
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
199
|
+
const uuid = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info = userInfo.info) === null || _userInfo$info === void 0 ? void 0 : _userInfo$info.uuid;
|
|
200
|
+
const {
|
|
201
|
+
data: userDetails,
|
|
202
|
+
isLoading: isUserLoading
|
|
203
|
+
} = Digit.Hooks.useUserSearch(tenantId, {
|
|
204
|
+
uuid: [uuid]
|
|
205
|
+
}, {}, {
|
|
206
|
+
enabled: uuid ? true : false
|
|
207
|
+
});
|
|
197
208
|
if ((!params.serviceType || Object.keys(params.serviceType).length === 0) && pathname.includes("employee")) {
|
|
198
209
|
if (pathname.includes("mt")) {
|
|
199
|
-
console.log("MT Create");
|
|
200
210
|
setParams({
|
|
201
211
|
serviceType: {
|
|
202
212
|
serviceType: {
|
|
@@ -359,6 +369,7 @@ const WTCreate = () => {
|
|
|
359
369
|
overflowY: "auto"
|
|
360
370
|
}
|
|
361
371
|
}, /*#__PURE__*/React.createElement(Switch, null, config.map((routeObj, index) => {
|
|
372
|
+
var _userDetails$user;
|
|
362
373
|
const {
|
|
363
374
|
component,
|
|
364
375
|
texts,
|
|
@@ -379,7 +390,8 @@ const WTCreate = () => {
|
|
|
379
390
|
},
|
|
380
391
|
onSelect: handleSelect,
|
|
381
392
|
t: t,
|
|
382
|
-
formData: params
|
|
393
|
+
formData: params,
|
|
394
|
+
userDetails: userDetails === null || userDetails === void 0 ? void 0 : (_userDetails$user = userDetails.user) === null || _userDetails$user === void 0 ? void 0 : _userDetails$user[0]
|
|
383
395
|
}));
|
|
384
396
|
}), /*#__PURE__*/React.createElement(Route, {
|
|
385
397
|
path: `${match.path}/check`
|
|
@@ -426,7 +438,7 @@ const formatDate = dateString => {
|
|
|
426
438
|
};
|
|
427
439
|
const APPLICATION_PATH = "/digit-ui";
|
|
428
440
|
const waterTankerPayload = data => {
|
|
429
|
-
var _data$requestDetails, _data$requestDetails$, _data$requestDetails2, _data$requestDetails3, _data$requestDetails4, _data$requestDetails5, _data$requestDetails6, _data$requestDetails7, _data$requestDetails8, _data$requestDetails9, _data$requestDetails0, _data$requestDetails1, _data$address, _data$owner, _data$owner2, _data$owner3, _data$owner4, _data$address2, _data$address2$addres, _data$address3, _data$address4, _data$address4$city, _data$address4$city$c, _data$address5, _data$address5$city, _data$address5$city$c, _data$address6, _data$address7, _data$address8, _data$address8$locali, _data$address9, _data$address9$locali, _data$address0, _data$address1, _data$address10, _data$requestDetails10;
|
|
441
|
+
var _data$requestDetails, _data$requestDetails$, _data$requestDetails2, _data$requestDetails3, _data$requestDetails4, _data$requestDetails5, _data$requestDetails6, _data$requestDetails7, _data$requestDetails8, _data$requestDetails9, _data$requestDetails0, _data$requestDetails1, _data$address, _data$owner, _data$owner2, _data$owner3, _data$owner4, _data$address2, _data$address2$addres, _data$address3, _data$address4, _data$address4$city, _data$address4$city$c, _data$address5, _data$address5$city, _data$address5$city$c, _data$address6, _data$address7, _data$address8, _data$address8$locali, _data$address9, _data$address9$locali, _data$address0, _data$address1, _data$address10, _data$address11, _data$address12, _data$requestDetails10;
|
|
430
442
|
const formdata = {
|
|
431
443
|
waterTankerBookingDetail: {
|
|
432
444
|
tenantId: data === null || data === void 0 ? void 0 : data.tenantId,
|
|
@@ -456,7 +468,9 @@ const waterTankerPayload = data => {
|
|
|
456
468
|
localityCode: data === null || data === void 0 ? void 0 : (_data$address9 = data.address) === null || _data$address9 === void 0 ? void 0 : (_data$address9$locali = _data$address9.locality) === null || _data$address9$locali === void 0 ? void 0 : _data$address9$locali.code,
|
|
457
469
|
streetName: data === null || data === void 0 ? void 0 : (_data$address0 = data.address) === null || _data$address0 === void 0 ? void 0 : _data$address0.streetName,
|
|
458
470
|
houseNo: data === null || data === void 0 ? void 0 : (_data$address1 = data.address) === null || _data$address1 === void 0 ? void 0 : _data$address1.houseNo,
|
|
459
|
-
landmark: data === null || data === void 0 ? void 0 : (_data$address10 = data.address) === null || _data$address10 === void 0 ? void 0 : _data$address10.landmark
|
|
471
|
+
landmark: data === null || data === void 0 ? void 0 : (_data$address10 = data.address) === null || _data$address10 === void 0 ? void 0 : _data$address10.landmark,
|
|
472
|
+
latitude: data === null || data === void 0 ? void 0 : (_data$address11 = data.address) === null || _data$address11 === void 0 ? void 0 : _data$address11.latitude,
|
|
473
|
+
longitude: data === null || data === void 0 ? void 0 : (_data$address12 = data.address) === null || _data$address12 === void 0 ? void 0 : _data$address12.longitude
|
|
460
474
|
},
|
|
461
475
|
WTfileStoreId: data === null || data === void 0 ? void 0 : (_data$requestDetails10 = data.requestDetails) === null || _data$requestDetails10 === void 0 ? void 0 : _data$requestDetails10.fileStoreId,
|
|
462
476
|
bookingStatus: "BOOKING_CREATED",
|
|
@@ -471,7 +485,7 @@ const waterTankerPayload = data => {
|
|
|
471
485
|
return formdata;
|
|
472
486
|
};
|
|
473
487
|
const mobileToiletPayload = data => {
|
|
474
|
-
var _data$toiletRequestDe, _data$toiletRequestDe2, _data$toiletRequestDe3, _data$toiletRequestDe4, _data$toiletRequestDe5, _data$toiletRequestDe6, _data$toiletRequestDe7, _data$
|
|
488
|
+
var _data$toiletRequestDe, _data$toiletRequestDe2, _data$toiletRequestDe3, _data$toiletRequestDe4, _data$toiletRequestDe5, _data$toiletRequestDe6, _data$toiletRequestDe7, _data$address13, _data$owner5, _data$owner6, _data$owner7, _data$owner8, _data$address14, _data$address14$addre, _data$address15, _data$address16, _data$address16$city, _data$address16$city$, _data$address17, _data$address17$city, _data$address17$city$, _data$address18, _data$address19, _data$address20, _data$address20$local, _data$address21, _data$address21$local, _data$address22, _data$address23, _data$address24;
|
|
475
489
|
const formdata = {
|
|
476
490
|
mobileToiletBookingDetail: {
|
|
477
491
|
tenantId: data === null || data === void 0 ? void 0 : data.tenantId,
|
|
@@ -481,7 +495,7 @@ const mobileToiletPayload = data => {
|
|
|
481
495
|
deliveryToDate: data === null || data === void 0 ? void 0 : (_data$toiletRequestDe5 = data.toiletRequestDetails) === null || _data$toiletRequestDe5 === void 0 ? void 0 : _data$toiletRequestDe5.deliverytoDate,
|
|
482
496
|
deliveryFromTime: data === null || data === void 0 ? void 0 : (_data$toiletRequestDe6 = data.toiletRequestDetails) === null || _data$toiletRequestDe6 === void 0 ? void 0 : _data$toiletRequestDe6.deliveryfromTime,
|
|
483
497
|
deliveryToTime: data === null || data === void 0 ? void 0 : (_data$toiletRequestDe7 = data.toiletRequestDetails) === null || _data$toiletRequestDe7 === void 0 ? void 0 : _data$toiletRequestDe7.deliverytoTime,
|
|
484
|
-
addressDetailId: (data === null || data === void 0 ? void 0 : (_data$
|
|
498
|
+
addressDetailId: (data === null || data === void 0 ? void 0 : (_data$address13 = data.address) === null || _data$address13 === void 0 ? void 0 : _data$address13.addressDetailId) || "",
|
|
485
499
|
applicantDetail: {
|
|
486
500
|
name: data === null || data === void 0 ? void 0 : (_data$owner5 = data.owner) === null || _data$owner5 === void 0 ? void 0 : _data$owner5.applicantName,
|
|
487
501
|
mobileNumber: data === null || data === void 0 ? void 0 : (_data$owner6 = data.owner) === null || _data$owner6 === void 0 ? void 0 : _data$owner6.mobileNumber,
|
|
@@ -489,17 +503,17 @@ const mobileToiletPayload = data => {
|
|
|
489
503
|
emailId: data === null || data === void 0 ? void 0 : (_data$owner8 = data.owner) === null || _data$owner8 === void 0 ? void 0 : _data$owner8.emailId
|
|
490
504
|
},
|
|
491
505
|
address: {
|
|
492
|
-
addressType: data === null || data === void 0 ? void 0 : (_data$
|
|
493
|
-
pincode: data === null || data === void 0 ? void 0 : (_data$
|
|
494
|
-
city: data === null || data === void 0 ? void 0 : (_data$
|
|
495
|
-
cityCode: data === null || data === void 0 ? void 0 : (_data$
|
|
496
|
-
addressLine1: data === null || data === void 0 ? void 0 : (_data$
|
|
497
|
-
addressLine2: data === null || data === void 0 ? void 0 : (_data$
|
|
498
|
-
locality: data === null || data === void 0 ? void 0 : (_data$
|
|
499
|
-
localityCode: data === null || data === void 0 ? void 0 : (_data$
|
|
500
|
-
streetName: data === null || data === void 0 ? void 0 : (_data$
|
|
501
|
-
houseNo: data === null || data === void 0 ? void 0 : (_data$
|
|
502
|
-
landmark: data === null || data === void 0 ? void 0 : (_data$
|
|
506
|
+
addressType: data === null || data === void 0 ? void 0 : (_data$address14 = data.address) === null || _data$address14 === void 0 ? void 0 : (_data$address14$addre = _data$address14.addressType) === null || _data$address14$addre === void 0 ? void 0 : _data$address14$addre.code,
|
|
507
|
+
pincode: data === null || data === void 0 ? void 0 : (_data$address15 = data.address) === null || _data$address15 === void 0 ? void 0 : _data$address15.pincode,
|
|
508
|
+
city: data === null || data === void 0 ? void 0 : (_data$address16 = data.address) === null || _data$address16 === void 0 ? void 0 : (_data$address16$city = _data$address16.city) === null || _data$address16$city === void 0 ? void 0 : (_data$address16$city$ = _data$address16$city.city) === null || _data$address16$city$ === void 0 ? void 0 : _data$address16$city$.name,
|
|
509
|
+
cityCode: data === null || data === void 0 ? void 0 : (_data$address17 = data.address) === null || _data$address17 === void 0 ? void 0 : (_data$address17$city = _data$address17.city) === null || _data$address17$city === void 0 ? void 0 : (_data$address17$city$ = _data$address17$city.city) === null || _data$address17$city$ === void 0 ? void 0 : _data$address17$city$.code,
|
|
510
|
+
addressLine1: data === null || data === void 0 ? void 0 : (_data$address18 = data.address) === null || _data$address18 === void 0 ? void 0 : _data$address18.addressLine1,
|
|
511
|
+
addressLine2: data === null || data === void 0 ? void 0 : (_data$address19 = data.address) === null || _data$address19 === void 0 ? void 0 : _data$address19.addressLine2,
|
|
512
|
+
locality: data === null || data === void 0 ? void 0 : (_data$address20 = data.address) === null || _data$address20 === void 0 ? void 0 : (_data$address20$local = _data$address20.locality) === null || _data$address20$local === void 0 ? void 0 : _data$address20$local.i18nKey,
|
|
513
|
+
localityCode: data === null || data === void 0 ? void 0 : (_data$address21 = data.address) === null || _data$address21 === void 0 ? void 0 : (_data$address21$local = _data$address21.locality) === null || _data$address21$local === void 0 ? void 0 : _data$address21$local.code,
|
|
514
|
+
streetName: data === null || data === void 0 ? void 0 : (_data$address22 = data.address) === null || _data$address22 === void 0 ? void 0 : _data$address22.streetName,
|
|
515
|
+
houseNo: data === null || data === void 0 ? void 0 : (_data$address23 = data.address) === null || _data$address23 === void 0 ? void 0 : _data$address23.houseNo,
|
|
516
|
+
landmark: data === null || data === void 0 ? void 0 : (_data$address24 = data.address) === null || _data$address24 === void 0 ? void 0 : _data$address24.landmark
|
|
503
517
|
},
|
|
504
518
|
bookingStatus: "BOOKING_CREATED",
|
|
505
519
|
workflow: {
|
|
@@ -513,7 +527,7 @@ const mobileToiletPayload = data => {
|
|
|
513
527
|
return formdata;
|
|
514
528
|
};
|
|
515
529
|
const treePruningPayload = data => {
|
|
516
|
-
var _data$treePruningRequ, _data$treePruningRequ2, _data$treePruningRequ3, _data$treePruningRequ4, _data$owner9, _data$owner0, _data$owner1, _data$owner10, _data$treePruningRequ5, _data$
|
|
530
|
+
var _data$treePruningRequ, _data$treePruningRequ2, _data$treePruningRequ3, _data$treePruningRequ4, _data$owner9, _data$owner0, _data$owner1, _data$owner10, _data$treePruningRequ5, _data$address25, _data$address25$addre, _data$address26, _data$address27, _data$address27$city, _data$address27$city$, _data$address28, _data$address28$city, _data$address28$city$, _data$address29, _data$address30, _data$address31, _data$address31$local, _data$address32, _data$address32$local, _data$address33, _data$address34, _data$address35;
|
|
517
531
|
const formdata = {
|
|
518
532
|
treePruningBookingDetail: {
|
|
519
533
|
tenantId: data === null || data === void 0 ? void 0 : data.tenantId,
|
|
@@ -531,17 +545,17 @@ const treePruningPayload = data => {
|
|
|
531
545
|
fileStoreId: data === null || data === void 0 ? void 0 : (_data$treePruningRequ5 = data.treePruningRequestDetails) === null || _data$treePruningRequ5 === void 0 ? void 0 : _data$treePruningRequ5.supportingDocumentFile
|
|
532
546
|
}],
|
|
533
547
|
address: {
|
|
534
|
-
addressType: data === null || data === void 0 ? void 0 : (_data$
|
|
535
|
-
pincode: data === null || data === void 0 ? void 0 : (_data$
|
|
536
|
-
city: data === null || data === void 0 ? void 0 : (_data$
|
|
537
|
-
cityCode: data === null || data === void 0 ? void 0 : (_data$
|
|
538
|
-
addressLine1: data === null || data === void 0 ? void 0 : (_data$
|
|
539
|
-
addressLine2: data === null || data === void 0 ? void 0 : (_data$
|
|
540
|
-
locality: data === null || data === void 0 ? void 0 : (_data$
|
|
541
|
-
localityCode: data === null || data === void 0 ? void 0 : (_data$
|
|
542
|
-
streetName: data === null || data === void 0 ? void 0 : (_data$
|
|
543
|
-
houseNo: data === null || data === void 0 ? void 0 : (_data$
|
|
544
|
-
landmark: data === null || data === void 0 ? void 0 : (_data$
|
|
548
|
+
addressType: data === null || data === void 0 ? void 0 : (_data$address25 = data.address) === null || _data$address25 === void 0 ? void 0 : (_data$address25$addre = _data$address25.addressType) === null || _data$address25$addre === void 0 ? void 0 : _data$address25$addre.code,
|
|
549
|
+
pincode: data === null || data === void 0 ? void 0 : (_data$address26 = data.address) === null || _data$address26 === void 0 ? void 0 : _data$address26.pincode,
|
|
550
|
+
city: data === null || data === void 0 ? void 0 : (_data$address27 = data.address) === null || _data$address27 === void 0 ? void 0 : (_data$address27$city = _data$address27.city) === null || _data$address27$city === void 0 ? void 0 : (_data$address27$city$ = _data$address27$city.city) === null || _data$address27$city$ === void 0 ? void 0 : _data$address27$city$.name,
|
|
551
|
+
cityCode: data === null || data === void 0 ? void 0 : (_data$address28 = data.address) === null || _data$address28 === void 0 ? void 0 : (_data$address28$city = _data$address28.city) === null || _data$address28$city === void 0 ? void 0 : (_data$address28$city$ = _data$address28$city.city) === null || _data$address28$city$ === void 0 ? void 0 : _data$address28$city$.code,
|
|
552
|
+
addressLine1: data === null || data === void 0 ? void 0 : (_data$address29 = data.address) === null || _data$address29 === void 0 ? void 0 : _data$address29.addressLine1,
|
|
553
|
+
addressLine2: data === null || data === void 0 ? void 0 : (_data$address30 = data.address) === null || _data$address30 === void 0 ? void 0 : _data$address30.addressLine2,
|
|
554
|
+
locality: data === null || data === void 0 ? void 0 : (_data$address31 = data.address) === null || _data$address31 === void 0 ? void 0 : (_data$address31$local = _data$address31.locality) === null || _data$address31$local === void 0 ? void 0 : _data$address31$local.i18nKey,
|
|
555
|
+
localityCode: data === null || data === void 0 ? void 0 : (_data$address32 = data.address) === null || _data$address32 === void 0 ? void 0 : (_data$address32$local = _data$address32.locality) === null || _data$address32$local === void 0 ? void 0 : _data$address32$local.code,
|
|
556
|
+
streetName: data === null || data === void 0 ? void 0 : (_data$address33 = data.address) === null || _data$address33 === void 0 ? void 0 : _data$address33.streetName,
|
|
557
|
+
houseNo: data === null || data === void 0 ? void 0 : (_data$address34 = data.address) === null || _data$address34 === void 0 ? void 0 : _data$address34.houseNo,
|
|
558
|
+
landmark: data === null || data === void 0 ? void 0 : (_data$address35 = data.address) === null || _data$address35 === void 0 ? void 0 : _data$address35.landmark
|
|
545
559
|
},
|
|
546
560
|
bookingStatus: "BOOKING_CREATED",
|
|
547
561
|
workflow: {
|
|
@@ -1762,18 +1776,18 @@ const openFilePDF = fileId => {
|
|
|
1762
1776
|
var _res$data, _res$data$fileStoreId, _res$data$fileStoreId2;
|
|
1763
1777
|
const concatenatedUrls = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$fileStoreId = _res$data.fileStoreIds) === null || _res$data$fileStoreId === void 0 ? void 0 : (_res$data$fileStoreId2 = _res$data$fileStoreId[0]) === null || _res$data$fileStoreId2 === void 0 ? void 0 : _res$data$fileStoreId2.url;
|
|
1764
1778
|
if (concatenatedUrls) {
|
|
1765
|
-
const urlArray = concatenatedUrls.split(
|
|
1779
|
+
const urlArray = concatenatedUrls.split(",");
|
|
1766
1780
|
const fileUrl = urlArray[0];
|
|
1767
1781
|
if (fileUrl) {
|
|
1768
|
-
window.open(fileUrl,
|
|
1782
|
+
window.open(fileUrl, "_blank");
|
|
1769
1783
|
} else {
|
|
1770
|
-
console.error(
|
|
1784
|
+
console.error("No valid URL found to open!");
|
|
1771
1785
|
}
|
|
1772
1786
|
} else {
|
|
1773
|
-
console.error(
|
|
1787
|
+
console.error("URL is missing in the response!");
|
|
1774
1788
|
}
|
|
1775
1789
|
}).catch(error => {
|
|
1776
|
-
console.error(
|
|
1790
|
+
console.error("Error fetching file:", error);
|
|
1777
1791
|
});
|
|
1778
1792
|
};
|
|
1779
1793
|
const WTCheckPage = ({
|
|
@@ -2107,7 +2121,7 @@ const WTAcknowledgement = ({
|
|
|
2107
2121
|
} catch (err) {}
|
|
2108
2122
|
}, []);
|
|
2109
2123
|
Digit.Hooks.useCustomBackNavigation({
|
|
2110
|
-
redirectPath:
|
|
2124
|
+
redirectPath: "${APPLICATION_PATH}/citizen"
|
|
2111
2125
|
});
|
|
2112
2126
|
const handleDownloadPdf = async () => {
|
|
2113
2127
|
var _mutation$data;
|
|
@@ -2264,12 +2278,9 @@ const InboxLinks = ({
|
|
|
2264
2278
|
return (
|
|
2265
2279
|
/*#__PURE__*/
|
|
2266
2280
|
React.createElement(Card, {
|
|
2267
|
-
className: "
|
|
2281
|
+
className: "filter inboxLinks"
|
|
2268
2282
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2269
|
-
className: "complaint-links-container"
|
|
2270
|
-
style: {
|
|
2271
|
-
padding: "10px"
|
|
2272
|
-
}
|
|
2283
|
+
className: "complaint-links-container"
|
|
2273
2284
|
}, GetLogo(), /*#__PURE__*/React.createElement("div", {
|
|
2274
2285
|
className: "body"
|
|
2275
2286
|
}, links.map(({
|
|
@@ -2387,7 +2398,7 @@ const SearchApplication = ({
|
|
|
2387
2398
|
style: {
|
|
2388
2399
|
width: "auto",
|
|
2389
2400
|
marginBottom: "16px",
|
|
2390
|
-
marginLeft: isInboxPage ? "
|
|
2401
|
+
marginLeft: isInboxPage ? "" : "revert"
|
|
2391
2402
|
}
|
|
2392
2403
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2393
2404
|
className: "search-complaint-container",
|
|
@@ -2549,11 +2560,13 @@ const WTDesktopInbox = ({
|
|
|
2549
2560
|
return /*#__PURE__*/React.createElement("div", {
|
|
2550
2561
|
className: "inbox-container"
|
|
2551
2562
|
}, !props.isSearch && /*#__PURE__*/React.createElement("div", {
|
|
2552
|
-
className: "
|
|
2563
|
+
className: "side-panel-item"
|
|
2553
2564
|
}, /*#__PURE__*/React.createElement(InboxLinks, {
|
|
2554
2565
|
parentRoute: props.parentRoute,
|
|
2555
2566
|
businessService: props.moduleCode
|
|
2556
|
-
}), /*#__PURE__*/React.createElement("div",
|
|
2567
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
2568
|
+
className: "filter-form "
|
|
2569
|
+
}, /*#__PURE__*/React.createElement(FilterComponent, {
|
|
2557
2570
|
defaultSearchParams: props.defaultSearchParams,
|
|
2558
2571
|
onFilterChange: props.onFilterChange,
|
|
2559
2572
|
searchParams: props.searchParams,
|
|
@@ -2562,6 +2575,7 @@ const WTDesktopInbox = ({
|
|
|
2562
2575
|
statusMap: useNewInboxAPI ? data === null || data === void 0 ? void 0 : data[0].statusMap : null,
|
|
2563
2576
|
moduleCode: props.moduleCode
|
|
2564
2577
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2578
|
+
className: "employee-form-content",
|
|
2565
2579
|
style: {
|
|
2566
2580
|
flex: 1
|
|
2567
2581
|
}
|
|
@@ -2579,7 +2593,6 @@ const WTDesktopInbox = ({
|
|
|
2579
2593
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2580
2594
|
className: "result",
|
|
2581
2595
|
style: {
|
|
2582
|
-
marginLeft: !(props !== null && props !== void 0 && props.isSearch) ? "16px" : "",
|
|
2583
2596
|
flex: 1
|
|
2584
2597
|
}
|
|
2585
2598
|
}, result)));
|
|
@@ -2987,6 +3000,7 @@ const Inbox = ({
|
|
|
2987
3000
|
} else {
|
|
2988
3001
|
var _data$;
|
|
2989
3002
|
return /*#__PURE__*/React.createElement("div", {
|
|
3003
|
+
className: "app-container",
|
|
2990
3004
|
style: {
|
|
2991
3005
|
padding: (user === null || user === void 0 ? void 0 : user.type) === "CITIZEN" ? "0 24px" : ""
|
|
2992
3006
|
}
|
|
@@ -10428,8 +10442,6 @@ const Filter = ({
|
|
|
10428
10442
|
});
|
|
10429
10443
|
};
|
|
10430
10444
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
10431
|
-
className: "filter"
|
|
10432
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
10433
10445
|
className: "filter-card"
|
|
10434
10446
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10435
10447
|
className: "heading",
|
|
@@ -10477,7 +10489,11 @@ const Filter = ({
|
|
|
10477
10489
|
fill: "#505A5F"
|
|
10478
10490
|
}))), props.type === "mobile" && /*#__PURE__*/React.createElement("span", {
|
|
10479
10491
|
onClick: props.onClose
|
|
10480
|
-
}, /*#__PURE__*/React.createElement(CloseSvg, null))), /*#__PURE__*/React.createElement("
|
|
10492
|
+
}, /*#__PURE__*/React.createElement(CloseSvg, null))), /*#__PURE__*/React.createElement("form", {
|
|
10493
|
+
id: "filter-form"
|
|
10494
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10495
|
+
className: "filter-form-field"
|
|
10496
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10481
10497
|
className: "filter-label",
|
|
10482
10498
|
style: {
|
|
10483
10499
|
fontWeight: "normal"
|
|
@@ -10487,7 +10503,7 @@ const Filter = ({
|
|
|
10487
10503
|
tenantId: tenantId,
|
|
10488
10504
|
boundaryType: "revenue"
|
|
10489
10505
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10490
|
-
className: "tag-container"
|
|
10506
|
+
className: "tag-container hide-x-scrollbar"
|
|
10491
10507
|
}, _searchParams === null || _searchParams === void 0 ? void 0 : (_searchParams$localit = _searchParams.locality) === null || _searchParams$localit === void 0 ? void 0 : _searchParams$localit.map((locality, index) => {
|
|
10492
10508
|
return /*#__PURE__*/React.createElement(RemoveableTag, {
|
|
10493
10509
|
key: index,
|
|
@@ -10499,9 +10515,10 @@ const Filter = ({
|
|
|
10499
10515
|
}
|
|
10500
10516
|
});
|
|
10501
10517
|
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
10518
|
+
className: "w-fullwidth",
|
|
10502
10519
|
onSubmit: () => applyLocalFilters(),
|
|
10503
10520
|
label: t("ES_COMMON_APPLY")
|
|
10504
|
-
})))))
|
|
10521
|
+
})))));
|
|
10505
10522
|
};
|
|
10506
10523
|
|
|
10507
10524
|
const configPTApproverApplication = ({
|