@egovernments/digit-ui-libraries 1.5.0-beta.9 → 1.5.3
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 +1990 -630
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1990 -630
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ require('date-fns/esm');
|
|
|
16
16
|
var reactRouterDom = require('react-router-dom');
|
|
17
17
|
|
|
18
18
|
function _extends() {
|
|
19
|
-
_extends = Object.assign
|
|
19
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
20
20
|
for (var i = 1; i < arguments.length; i++) {
|
|
21
21
|
var source = arguments[i];
|
|
22
22
|
|
|
@@ -29,7 +29,6 @@ function _extends() {
|
|
|
29
29
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
|
|
33
32
|
return _extends.apply(this, arguments);
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -35904,23 +35903,50 @@ function cloneDeep(value) {
|
|
|
35904
35903
|
|
|
35905
35904
|
var cloneDeep_1 = cloneDeep;
|
|
35906
35905
|
|
|
35907
|
-
var getThumbnails = function getThumbnails(ids, tenantId) {
|
|
35906
|
+
var getThumbnails = function getThumbnails(ids, tenantId, documents) {
|
|
35907
|
+
if (documents === void 0) {
|
|
35908
|
+
documents = [];
|
|
35909
|
+
}
|
|
35910
|
+
|
|
35908
35911
|
try {
|
|
35909
35912
|
tenantId = window.location.href.includes("/obps/") ? Digit.ULBService.getStateId() : tenantId;
|
|
35910
|
-
|
|
35911
|
-
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
|
|
35915
|
-
|
|
35916
|
-
|
|
35917
|
-
|
|
35918
|
-
|
|
35919
|
-
|
|
35913
|
+
|
|
35914
|
+
if (window.location.href.includes("/obps/")) {
|
|
35915
|
+
var _documents;
|
|
35916
|
+
|
|
35917
|
+
if (((_documents = documents) === null || _documents === void 0 ? void 0 : _documents.length) > 0) {
|
|
35918
|
+
var _documents2;
|
|
35919
|
+
|
|
35920
|
+
var workflowsDocs = [];
|
|
35921
|
+
(_documents2 = documents) === null || _documents2 === void 0 ? void 0 : _documents2.map(function (doc) {
|
|
35922
|
+
if (doc !== null && doc !== void 0 && doc.url) {
|
|
35923
|
+
var thumbs = doc.url.split(",")[3] || doc.url.split(",")[0];
|
|
35924
|
+
workflowsDocs.push({
|
|
35925
|
+
thumbs: [thumbs],
|
|
35926
|
+
images: [Digit.Utils.getFileUrl(doc.url)]
|
|
35927
|
+
});
|
|
35928
|
+
}
|
|
35929
|
+
});
|
|
35930
|
+
return Promise.resolve(workflowsDocs === null || workflowsDocs === void 0 ? void 0 : workflowsDocs[0]);
|
|
35920
35931
|
} else {
|
|
35921
|
-
return null;
|
|
35932
|
+
return Promise.resolve(null);
|
|
35922
35933
|
}
|
|
35923
|
-
}
|
|
35934
|
+
} else {
|
|
35935
|
+
return Promise.resolve(Digit.UploadServices.Filefetch(ids, tenantId)).then(function (res) {
|
|
35936
|
+
if (res.data.fileStoreIds && res.data.fileStoreIds.length !== 0) {
|
|
35937
|
+
return {
|
|
35938
|
+
thumbs: res.data.fileStoreIds.map(function (o) {
|
|
35939
|
+
return o.url.split(",")[3] || o.url.split(",")[0];
|
|
35940
|
+
}),
|
|
35941
|
+
images: res.data.fileStoreIds.map(function (o) {
|
|
35942
|
+
return Digit.Utils.getFileUrl(o.url);
|
|
35943
|
+
})
|
|
35944
|
+
};
|
|
35945
|
+
} else {
|
|
35946
|
+
return null;
|
|
35947
|
+
}
|
|
35948
|
+
});
|
|
35949
|
+
}
|
|
35924
35950
|
} catch (e) {
|
|
35925
35951
|
return Promise.reject(e);
|
|
35926
35952
|
}
|
|
@@ -35928,45 +35954,86 @@ var getThumbnails = function getThumbnails(ids, tenantId) {
|
|
|
35928
35954
|
|
|
35929
35955
|
var makeCommentsSubsidariesOfPreviousActions = function makeCommentsSubsidariesOfPreviousActions(wf) {
|
|
35930
35956
|
try {
|
|
35931
|
-
var
|
|
35932
|
-
var response = TimelineMap.get("tlActions");
|
|
35933
|
-
return response;
|
|
35934
|
-
};
|
|
35957
|
+
var _wf$;
|
|
35935
35958
|
|
|
35936
|
-
var
|
|
35959
|
+
var _temp9 = function _temp9() {
|
|
35960
|
+
function _temp6() {
|
|
35961
|
+
var response = TimelineMap.get("tlActions");
|
|
35962
|
+
return response;
|
|
35963
|
+
}
|
|
35937
35964
|
|
|
35938
|
-
|
|
35939
|
-
|
|
35940
|
-
|
|
35941
|
-
|
|
35942
|
-
|
|
35943
|
-
|
|
35944
|
-
|
|
35965
|
+
var _temp5 = _forOf(wf, function (eventHappened) {
|
|
35966
|
+
function _temp4() {
|
|
35967
|
+
if (eventHappened.action === "COMMENT") {
|
|
35968
|
+
var commentAccumulator = TimelineMap.get("tlCommentStack") || [];
|
|
35969
|
+
TimelineMap.set("tlCommentStack", [].concat(commentAccumulator, [eventHappened]));
|
|
35970
|
+
} else {
|
|
35971
|
+
var eventAccumulator = TimelineMap.get("tlActions") || [];
|
|
35945
35972
|
|
|
35946
|
-
|
|
35973
|
+
var _commentAccumulator = TimelineMap.get("tlCommentStack") || [];
|
|
35947
35974
|
|
|
35948
|
-
|
|
35949
|
-
|
|
35950
|
-
|
|
35975
|
+
eventHappened.wfComments = [].concat(_commentAccumulator, eventHappened.comment ? [eventHappened] : []);
|
|
35976
|
+
TimelineMap.set("tlActions", [].concat(eventAccumulator, [eventHappened]));
|
|
35977
|
+
TimelineMap.delete("tlCommentStack");
|
|
35978
|
+
}
|
|
35951
35979
|
}
|
|
35952
|
-
}
|
|
35953
35980
|
|
|
35954
|
-
|
|
35955
|
-
|
|
35956
|
-
|
|
35981
|
+
var _temp3 = function () {
|
|
35982
|
+
if (eventHappened !== null && eventHappened !== void 0 && eventHappened.documents) {
|
|
35983
|
+
var _eventHappened$docume;
|
|
35984
|
+
|
|
35985
|
+
return Promise.resolve(getThumbnails(eventHappened === null || eventHappened === void 0 ? void 0 : (_eventHappened$docume = eventHappened.documents) === null || _eventHappened$docume === void 0 ? void 0 : _eventHappened$docume.map(function (e) {
|
|
35986
|
+
return e === null || e === void 0 ? void 0 : e.fileStoreId;
|
|
35987
|
+
}), eventHappened === null || eventHappened === void 0 ? void 0 : eventHappened.tenantId, eventHappened === null || eventHappened === void 0 ? void 0 : eventHappened.documents)).then(function (_getThumbnails) {
|
|
35988
|
+
eventHappened.thumbnailsToShow = _getThumbnails;
|
|
35989
|
+
});
|
|
35990
|
+
}
|
|
35991
|
+
}();
|
|
35992
|
+
|
|
35993
|
+
return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
|
|
35994
|
+
});
|
|
35995
|
+
|
|
35996
|
+
return _temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5);
|
|
35997
|
+
};
|
|
35998
|
+
|
|
35999
|
+
var TimelineMap = new Map();
|
|
36000
|
+
var tenantId = window.location.href.includes("/obps/") ? Digit.ULBService.getStateId() : wf === null || wf === void 0 ? void 0 : (_wf$ = wf[0]) === null || _wf$ === void 0 ? void 0 : _wf$.tenantId;
|
|
36001
|
+
var fileStoreIdsList = [];
|
|
36002
|
+
var res = {};
|
|
36003
|
+
|
|
36004
|
+
var _temp10 = function () {
|
|
36005
|
+
if (window.location.href.includes("/obps/")) {
|
|
36006
|
+
var _temp11 = function _temp11() {
|
|
36007
|
+
wf === null || wf === void 0 ? void 0 : wf.forEach(function (wfData) {
|
|
36008
|
+
var _wfData$documents;
|
|
36009
|
+
|
|
36010
|
+
wfData === null || wfData === void 0 ? void 0 : (_wfData$documents = wfData.documents) === null || _wfData$documents === void 0 ? void 0 : _wfData$documents.forEach(function (wfDoc) {
|
|
36011
|
+
if (wfDoc !== null && wfDoc !== void 0 && wfDoc.fileStoreId) wfDoc.url = res.data[wfDoc === null || wfDoc === void 0 ? void 0 : wfDoc.fileStoreId];
|
|
36012
|
+
});
|
|
36013
|
+
});
|
|
36014
|
+
};
|
|
35957
36015
|
|
|
35958
|
-
|
|
35959
|
-
|
|
35960
|
-
|
|
35961
|
-
|
|
36016
|
+
wf === null || wf === void 0 ? void 0 : wf.map(function (wfData) {
|
|
36017
|
+
var _wfData$documents2;
|
|
36018
|
+
|
|
36019
|
+
wfData === null || wfData === void 0 ? void 0 : (_wfData$documents2 = wfData.documents) === null || _wfData$documents2 === void 0 ? void 0 : _wfData$documents2.map(function (wfDoc) {
|
|
36020
|
+
if (wfDoc !== null && wfDoc !== void 0 && wfDoc.fileStoreId) fileStoreIdsList.push(wfDoc === null || wfDoc === void 0 ? void 0 : wfDoc.fileStoreId);
|
|
35962
36021
|
});
|
|
35963
|
-
}
|
|
35964
|
-
}();
|
|
36022
|
+
});
|
|
35965
36023
|
|
|
35966
|
-
|
|
35967
|
-
|
|
36024
|
+
var _temp12 = function () {
|
|
36025
|
+
if ((fileStoreIdsList === null || fileStoreIdsList === void 0 ? void 0 : fileStoreIdsList.length) > 0) {
|
|
36026
|
+
return Promise.resolve(Digit.UploadServices.Filefetch(fileStoreIdsList, tenantId)).then(function (_Digit$UploadServices) {
|
|
36027
|
+
res = _Digit$UploadServices;
|
|
36028
|
+
});
|
|
36029
|
+
}
|
|
36030
|
+
}();
|
|
35968
36031
|
|
|
35969
|
-
|
|
36032
|
+
return _temp12 && _temp12.then ? _temp12.then(_temp11) : _temp11(_temp12);
|
|
36033
|
+
}
|
|
36034
|
+
}();
|
|
36035
|
+
|
|
36036
|
+
return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(_temp9) : _temp9(_temp10));
|
|
35970
36037
|
} catch (e) {
|
|
35971
36038
|
return Promise.reject(e);
|
|
35972
36039
|
}
|
|
@@ -36026,13 +36093,13 @@ var WorkflowService = {
|
|
|
36026
36093
|
|
|
36027
36094
|
var _exit = false;
|
|
36028
36095
|
|
|
36029
|
-
function
|
|
36096
|
+
function _temp20(_result2) {
|
|
36030
36097
|
return _exit ? _result2 : {};
|
|
36031
36098
|
}
|
|
36032
36099
|
|
|
36033
36100
|
var businessServiceResponse = _Digit$WorkflowServic === null || _Digit$WorkflowServic === void 0 ? void 0 : (_Digit$WorkflowServic2 = _Digit$WorkflowServic.BusinessServices[0]) === null || _Digit$WorkflowServic2 === void 0 ? void 0 : _Digit$WorkflowServic2.states;
|
|
36034
36101
|
|
|
36035
|
-
var
|
|
36102
|
+
var _temp19 = function () {
|
|
36036
36103
|
if (workflow && workflow.ProcessInstances) {
|
|
36037
36104
|
var _processInstances$, _businessServiceRespo;
|
|
36038
36105
|
|
|
@@ -36113,7 +36180,7 @@ var WorkflowService = {
|
|
|
36113
36180
|
return function () {
|
|
36114
36181
|
if (processInstances.length > 0) {
|
|
36115
36182
|
return Promise.resolve(makeCommentsSubsidariesOfPreviousActions(processInstances)).then(function (TLEnrichedWithWorflowData) {
|
|
36116
|
-
function
|
|
36183
|
+
function _temp18() {
|
|
36117
36184
|
var _workflow$ProcessInst, _workflow$ProcessInst2;
|
|
36118
36185
|
|
|
36119
36186
|
var nextActions = actionRolePair;
|
|
@@ -36181,17 +36248,17 @@ var WorkflowService = {
|
|
|
36181
36248
|
return checkPoint;
|
|
36182
36249
|
});
|
|
36183
36250
|
|
|
36184
|
-
var
|
|
36251
|
+
var _temp17 = function () {
|
|
36185
36252
|
if (getTripData) {
|
|
36186
|
-
var
|
|
36253
|
+
var _temp21 = _catch(function () {
|
|
36187
36254
|
var filters = {
|
|
36188
36255
|
businessService: 'FSM_VEHICLE_TRIP',
|
|
36189
36256
|
refernceNos: id
|
|
36190
36257
|
};
|
|
36191
36258
|
return Promise.resolve(Digit.FSMService.vehicleSearch(tenantId, filters)).then(function (tripSearchResp) {
|
|
36192
|
-
var
|
|
36259
|
+
var _temp15 = function () {
|
|
36193
36260
|
if (tripSearchResp && tripSearchResp.vehicleTrip && tripSearchResp.vehicleTrip.length) {
|
|
36194
|
-
var
|
|
36261
|
+
var _temp22 = function _temp22() {
|
|
36195
36262
|
var tripTimeline = [];
|
|
36196
36263
|
var disposalInProgressPosition = timeline.findIndex(function (data) {
|
|
36197
36264
|
return data.status === "DISPOSAL_IN_PROGRESS";
|
|
@@ -36230,7 +36297,7 @@ var WorkflowService = {
|
|
|
36230
36297
|
var _waitingForDisposedAction = [];
|
|
36231
36298
|
var _disposedAction = [];
|
|
36232
36299
|
|
|
36233
|
-
var
|
|
36300
|
+
var _temp23 = _forOf(tripSearchResp.vehicleTrip, function (data) {
|
|
36234
36301
|
return Promise.resolve(Digit.WorkflowService.getByBusinessId(tenantId, data.applicationNo)).then(function (resp) {
|
|
36235
36302
|
var _resp$ProcessInstance;
|
|
36236
36303
|
|
|
@@ -36300,19 +36367,19 @@ var WorkflowService = {
|
|
|
36300
36367
|
});
|
|
36301
36368
|
});
|
|
36302
36369
|
|
|
36303
|
-
return
|
|
36370
|
+
return _temp23 && _temp23.then ? _temp23.then(_temp22) : _temp22(_temp23);
|
|
36304
36371
|
}
|
|
36305
36372
|
}();
|
|
36306
36373
|
|
|
36307
|
-
if (
|
|
36374
|
+
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
|
36308
36375
|
});
|
|
36309
36376
|
}, function () {});
|
|
36310
36377
|
|
|
36311
|
-
if (
|
|
36378
|
+
if (_temp21 && _temp21.then) return _temp21.then(function () {});
|
|
36312
36379
|
}
|
|
36313
36380
|
}();
|
|
36314
36381
|
|
|
36315
|
-
return
|
|
36382
|
+
return _temp17 && _temp17.then ? _temp17.then(_temp18) : _temp18(_temp17);
|
|
36316
36383
|
});
|
|
36317
36384
|
}
|
|
36318
36385
|
}();
|
|
@@ -36321,7 +36388,7 @@ var WorkflowService = {
|
|
|
36321
36388
|
}
|
|
36322
36389
|
}();
|
|
36323
36390
|
|
|
36324
|
-
return
|
|
36391
|
+
return _temp19 && _temp19.then ? _temp19.then(_temp20) : _temp20(_temp19);
|
|
36325
36392
|
});
|
|
36326
36393
|
});
|
|
36327
36394
|
} catch (e) {
|
|
@@ -37574,6 +37641,1066 @@ var useQueryParams = function useQueryParams() {
|
|
|
37574
37641
|
return params;
|
|
37575
37642
|
};
|
|
37576
37643
|
|
|
37644
|
+
var b$1 = "function" === typeof Symbol && Symbol.for,
|
|
37645
|
+
c = b$1 ? Symbol.for("react.element") : 60103,
|
|
37646
|
+
d = b$1 ? Symbol.for("react.portal") : 60106,
|
|
37647
|
+
e = b$1 ? Symbol.for("react.fragment") : 60107,
|
|
37648
|
+
f = b$1 ? Symbol.for("react.strict_mode") : 60108,
|
|
37649
|
+
g = b$1 ? Symbol.for("react.profiler") : 60114,
|
|
37650
|
+
h = b$1 ? Symbol.for("react.provider") : 60109,
|
|
37651
|
+
k$1 = b$1 ? Symbol.for("react.context") : 60110,
|
|
37652
|
+
l = b$1 ? Symbol.for("react.async_mode") : 60111,
|
|
37653
|
+
m = b$1 ? Symbol.for("react.concurrent_mode") : 60111,
|
|
37654
|
+
n = b$1 ? Symbol.for("react.forward_ref") : 60112,
|
|
37655
|
+
p = b$1 ? Symbol.for("react.suspense") : 60113,
|
|
37656
|
+
q = b$1 ? Symbol.for("react.suspense_list") : 60120,
|
|
37657
|
+
r = b$1 ? Symbol.for("react.memo") : 60115,
|
|
37658
|
+
t = b$1 ? Symbol.for("react.lazy") : 60116,
|
|
37659
|
+
v = b$1 ? Symbol.for("react.block") : 60121,
|
|
37660
|
+
w = b$1 ? Symbol.for("react.fundamental") : 60117,
|
|
37661
|
+
x = b$1 ? Symbol.for("react.responder") : 60118,
|
|
37662
|
+
y$1 = b$1 ? Symbol.for("react.scope") : 60119;
|
|
37663
|
+
|
|
37664
|
+
function z(a) {
|
|
37665
|
+
if ("object" === typeof a && null !== a) {
|
|
37666
|
+
var u = a.$$typeof;
|
|
37667
|
+
|
|
37668
|
+
switch (u) {
|
|
37669
|
+
case c:
|
|
37670
|
+
switch (a = a.type, a) {
|
|
37671
|
+
case l:
|
|
37672
|
+
case m:
|
|
37673
|
+
case e:
|
|
37674
|
+
case g:
|
|
37675
|
+
case f:
|
|
37676
|
+
case p:
|
|
37677
|
+
return a;
|
|
37678
|
+
|
|
37679
|
+
default:
|
|
37680
|
+
switch (a = a && a.$$typeof, a) {
|
|
37681
|
+
case k$1:
|
|
37682
|
+
case n:
|
|
37683
|
+
case t:
|
|
37684
|
+
case r:
|
|
37685
|
+
case h:
|
|
37686
|
+
return a;
|
|
37687
|
+
|
|
37688
|
+
default:
|
|
37689
|
+
return u;
|
|
37690
|
+
}
|
|
37691
|
+
|
|
37692
|
+
}
|
|
37693
|
+
|
|
37694
|
+
case d:
|
|
37695
|
+
return u;
|
|
37696
|
+
}
|
|
37697
|
+
}
|
|
37698
|
+
}
|
|
37699
|
+
|
|
37700
|
+
function A(a) {
|
|
37701
|
+
return z(a) === m;
|
|
37702
|
+
}
|
|
37703
|
+
|
|
37704
|
+
var AsyncMode = l;
|
|
37705
|
+
var ConcurrentMode = m;
|
|
37706
|
+
var ContextConsumer = k$1;
|
|
37707
|
+
var ContextProvider = h;
|
|
37708
|
+
var Element = c;
|
|
37709
|
+
var ForwardRef = n;
|
|
37710
|
+
var Fragment = e;
|
|
37711
|
+
var Lazy = t;
|
|
37712
|
+
var Memo = r;
|
|
37713
|
+
var Portal = d;
|
|
37714
|
+
var Profiler = g;
|
|
37715
|
+
var StrictMode = f;
|
|
37716
|
+
var Suspense = p;
|
|
37717
|
+
|
|
37718
|
+
var isAsyncMode = function isAsyncMode(a) {
|
|
37719
|
+
return A(a) || z(a) === l;
|
|
37720
|
+
};
|
|
37721
|
+
|
|
37722
|
+
var isConcurrentMode = A;
|
|
37723
|
+
|
|
37724
|
+
var isContextConsumer = function isContextConsumer(a) {
|
|
37725
|
+
return z(a) === k$1;
|
|
37726
|
+
};
|
|
37727
|
+
|
|
37728
|
+
var isContextProvider = function isContextProvider(a) {
|
|
37729
|
+
return z(a) === h;
|
|
37730
|
+
};
|
|
37731
|
+
|
|
37732
|
+
var isElement = function isElement(a) {
|
|
37733
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
37734
|
+
};
|
|
37735
|
+
|
|
37736
|
+
var isForwardRef = function isForwardRef(a) {
|
|
37737
|
+
return z(a) === n;
|
|
37738
|
+
};
|
|
37739
|
+
|
|
37740
|
+
var isFragment = function isFragment(a) {
|
|
37741
|
+
return z(a) === e;
|
|
37742
|
+
};
|
|
37743
|
+
|
|
37744
|
+
var isLazy = function isLazy(a) {
|
|
37745
|
+
return z(a) === t;
|
|
37746
|
+
};
|
|
37747
|
+
|
|
37748
|
+
var isMemo = function isMemo(a) {
|
|
37749
|
+
return z(a) === r;
|
|
37750
|
+
};
|
|
37751
|
+
|
|
37752
|
+
var isPortal = function isPortal(a) {
|
|
37753
|
+
return z(a) === d;
|
|
37754
|
+
};
|
|
37755
|
+
|
|
37756
|
+
var isProfiler = function isProfiler(a) {
|
|
37757
|
+
return z(a) === g;
|
|
37758
|
+
};
|
|
37759
|
+
|
|
37760
|
+
var isStrictMode = function isStrictMode(a) {
|
|
37761
|
+
return z(a) === f;
|
|
37762
|
+
};
|
|
37763
|
+
|
|
37764
|
+
var isSuspense = function isSuspense(a) {
|
|
37765
|
+
return z(a) === p;
|
|
37766
|
+
};
|
|
37767
|
+
|
|
37768
|
+
var isValidElementType = function isValidElementType(a) {
|
|
37769
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k$1 || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y$1 || a.$$typeof === v);
|
|
37770
|
+
};
|
|
37771
|
+
|
|
37772
|
+
var typeOf = z;
|
|
37773
|
+
var reactIs_production_min = {
|
|
37774
|
+
AsyncMode: AsyncMode,
|
|
37775
|
+
ConcurrentMode: ConcurrentMode,
|
|
37776
|
+
ContextConsumer: ContextConsumer,
|
|
37777
|
+
ContextProvider: ContextProvider,
|
|
37778
|
+
Element: Element,
|
|
37779
|
+
ForwardRef: ForwardRef,
|
|
37780
|
+
Fragment: Fragment,
|
|
37781
|
+
Lazy: Lazy,
|
|
37782
|
+
Memo: Memo,
|
|
37783
|
+
Portal: Portal,
|
|
37784
|
+
Profiler: Profiler,
|
|
37785
|
+
StrictMode: StrictMode,
|
|
37786
|
+
Suspense: Suspense,
|
|
37787
|
+
isAsyncMode: isAsyncMode,
|
|
37788
|
+
isConcurrentMode: isConcurrentMode,
|
|
37789
|
+
isContextConsumer: isContextConsumer,
|
|
37790
|
+
isContextProvider: isContextProvider,
|
|
37791
|
+
isElement: isElement,
|
|
37792
|
+
isForwardRef: isForwardRef,
|
|
37793
|
+
isFragment: isFragment,
|
|
37794
|
+
isLazy: isLazy,
|
|
37795
|
+
isMemo: isMemo,
|
|
37796
|
+
isPortal: isPortal,
|
|
37797
|
+
isProfiler: isProfiler,
|
|
37798
|
+
isStrictMode: isStrictMode,
|
|
37799
|
+
isSuspense: isSuspense,
|
|
37800
|
+
isValidElementType: isValidElementType,
|
|
37801
|
+
typeOf: typeOf
|
|
37802
|
+
};
|
|
37803
|
+
|
|
37804
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
37805
|
+
|
|
37806
|
+
if (process.env.NODE_ENV !== "production") {
|
|
37807
|
+
(function () {
|
|
37808
|
+
|
|
37809
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
37810
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
37811
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
37812
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
37813
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
37814
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
37815
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
37816
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
37817
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
37818
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
37819
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
37820
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
37821
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
37822
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
37823
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
37824
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
37825
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
37826
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
37827
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
37828
|
+
|
|
37829
|
+
function isValidElementType(type) {
|
|
37830
|
+
return typeof type === 'string' || typeof type === 'function' || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
37831
|
+
}
|
|
37832
|
+
|
|
37833
|
+
function typeOf(object) {
|
|
37834
|
+
if (typeof object === 'object' && object !== null) {
|
|
37835
|
+
var $$typeof = object.$$typeof;
|
|
37836
|
+
|
|
37837
|
+
switch ($$typeof) {
|
|
37838
|
+
case REACT_ELEMENT_TYPE:
|
|
37839
|
+
var type = object.type;
|
|
37840
|
+
|
|
37841
|
+
switch (type) {
|
|
37842
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
37843
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
37844
|
+
case REACT_FRAGMENT_TYPE:
|
|
37845
|
+
case REACT_PROFILER_TYPE:
|
|
37846
|
+
case REACT_STRICT_MODE_TYPE:
|
|
37847
|
+
case REACT_SUSPENSE_TYPE:
|
|
37848
|
+
return type;
|
|
37849
|
+
|
|
37850
|
+
default:
|
|
37851
|
+
var $$typeofType = type && type.$$typeof;
|
|
37852
|
+
|
|
37853
|
+
switch ($$typeofType) {
|
|
37854
|
+
case REACT_CONTEXT_TYPE:
|
|
37855
|
+
case REACT_FORWARD_REF_TYPE:
|
|
37856
|
+
case REACT_LAZY_TYPE:
|
|
37857
|
+
case REACT_MEMO_TYPE:
|
|
37858
|
+
case REACT_PROVIDER_TYPE:
|
|
37859
|
+
return $$typeofType;
|
|
37860
|
+
|
|
37861
|
+
default:
|
|
37862
|
+
return $$typeof;
|
|
37863
|
+
}
|
|
37864
|
+
|
|
37865
|
+
}
|
|
37866
|
+
|
|
37867
|
+
case REACT_PORTAL_TYPE:
|
|
37868
|
+
return $$typeof;
|
|
37869
|
+
}
|
|
37870
|
+
}
|
|
37871
|
+
|
|
37872
|
+
return undefined;
|
|
37873
|
+
}
|
|
37874
|
+
|
|
37875
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
37876
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
37877
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
37878
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
37879
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
37880
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
37881
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
37882
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
37883
|
+
var Memo = REACT_MEMO_TYPE;
|
|
37884
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
37885
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
37886
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
37887
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
37888
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
37889
|
+
|
|
37890
|
+
function isAsyncMode(object) {
|
|
37891
|
+
{
|
|
37892
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
37893
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
37894
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
37895
|
+
}
|
|
37896
|
+
}
|
|
37897
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
37898
|
+
}
|
|
37899
|
+
|
|
37900
|
+
function isConcurrentMode(object) {
|
|
37901
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
37902
|
+
}
|
|
37903
|
+
|
|
37904
|
+
function isContextConsumer(object) {
|
|
37905
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
37906
|
+
}
|
|
37907
|
+
|
|
37908
|
+
function isContextProvider(object) {
|
|
37909
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
37910
|
+
}
|
|
37911
|
+
|
|
37912
|
+
function isElement(object) {
|
|
37913
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
37914
|
+
}
|
|
37915
|
+
|
|
37916
|
+
function isForwardRef(object) {
|
|
37917
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
37918
|
+
}
|
|
37919
|
+
|
|
37920
|
+
function isFragment(object) {
|
|
37921
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
37922
|
+
}
|
|
37923
|
+
|
|
37924
|
+
function isLazy(object) {
|
|
37925
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
37926
|
+
}
|
|
37927
|
+
|
|
37928
|
+
function isMemo(object) {
|
|
37929
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
37930
|
+
}
|
|
37931
|
+
|
|
37932
|
+
function isPortal(object) {
|
|
37933
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
37934
|
+
}
|
|
37935
|
+
|
|
37936
|
+
function isProfiler(object) {
|
|
37937
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
37938
|
+
}
|
|
37939
|
+
|
|
37940
|
+
function isStrictMode(object) {
|
|
37941
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
37942
|
+
}
|
|
37943
|
+
|
|
37944
|
+
function isSuspense(object) {
|
|
37945
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
37946
|
+
}
|
|
37947
|
+
|
|
37948
|
+
exports.AsyncMode = AsyncMode;
|
|
37949
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
37950
|
+
exports.ContextConsumer = ContextConsumer;
|
|
37951
|
+
exports.ContextProvider = ContextProvider;
|
|
37952
|
+
exports.Element = Element;
|
|
37953
|
+
exports.ForwardRef = ForwardRef;
|
|
37954
|
+
exports.Fragment = Fragment;
|
|
37955
|
+
exports.Lazy = Lazy;
|
|
37956
|
+
exports.Memo = Memo;
|
|
37957
|
+
exports.Portal = Portal;
|
|
37958
|
+
exports.Profiler = Profiler;
|
|
37959
|
+
exports.StrictMode = StrictMode;
|
|
37960
|
+
exports.Suspense = Suspense;
|
|
37961
|
+
exports.isAsyncMode = isAsyncMode;
|
|
37962
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
37963
|
+
exports.isContextConsumer = isContextConsumer;
|
|
37964
|
+
exports.isContextProvider = isContextProvider;
|
|
37965
|
+
exports.isElement = isElement;
|
|
37966
|
+
exports.isForwardRef = isForwardRef;
|
|
37967
|
+
exports.isFragment = isFragment;
|
|
37968
|
+
exports.isLazy = isLazy;
|
|
37969
|
+
exports.isMemo = isMemo;
|
|
37970
|
+
exports.isPortal = isPortal;
|
|
37971
|
+
exports.isProfiler = isProfiler;
|
|
37972
|
+
exports.isStrictMode = isStrictMode;
|
|
37973
|
+
exports.isSuspense = isSuspense;
|
|
37974
|
+
exports.isValidElementType = isValidElementType;
|
|
37975
|
+
exports.typeOf = typeOf;
|
|
37976
|
+
})();
|
|
37977
|
+
}
|
|
37978
|
+
});
|
|
37979
|
+
|
|
37980
|
+
var reactIs = createCommonjsModule(function (module) {
|
|
37981
|
+
|
|
37982
|
+
if (process.env.NODE_ENV === 'production') {
|
|
37983
|
+
module.exports = reactIs_production_min;
|
|
37984
|
+
} else {
|
|
37985
|
+
module.exports = reactIs_development;
|
|
37986
|
+
}
|
|
37987
|
+
});
|
|
37988
|
+
|
|
37989
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
37990
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
37991
|
+
|
|
37992
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
37993
|
+
|
|
37994
|
+
var printWarning = function printWarning() {};
|
|
37995
|
+
|
|
37996
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
37997
|
+
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
37998
|
+
var loggedTypeFailures = {};
|
|
37999
|
+
var has$1 = has;
|
|
38000
|
+
|
|
38001
|
+
printWarning = function printWarning(text) {
|
|
38002
|
+
var message = 'Warning: ' + text;
|
|
38003
|
+
|
|
38004
|
+
if (typeof console !== 'undefined') {
|
|
38005
|
+
console.error(message);
|
|
38006
|
+
}
|
|
38007
|
+
|
|
38008
|
+
try {
|
|
38009
|
+
throw new Error(message);
|
|
38010
|
+
} catch (x) {}
|
|
38011
|
+
};
|
|
38012
|
+
}
|
|
38013
|
+
|
|
38014
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
38015
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38016
|
+
for (var typeSpecName in typeSpecs) {
|
|
38017
|
+
if (has$1(typeSpecs, typeSpecName)) {
|
|
38018
|
+
var error;
|
|
38019
|
+
|
|
38020
|
+
try {
|
|
38021
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
38022
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
38023
|
+
err.name = 'Invariant Violation';
|
|
38024
|
+
throw err;
|
|
38025
|
+
}
|
|
38026
|
+
|
|
38027
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
|
|
38028
|
+
} catch (ex) {
|
|
38029
|
+
error = ex;
|
|
38030
|
+
}
|
|
38031
|
+
|
|
38032
|
+
if (error && !(error instanceof Error)) {
|
|
38033
|
+
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
38034
|
+
}
|
|
38035
|
+
|
|
38036
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
38037
|
+
loggedTypeFailures[error.message] = true;
|
|
38038
|
+
var stack = getStack ? getStack() : '';
|
|
38039
|
+
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
38040
|
+
}
|
|
38041
|
+
}
|
|
38042
|
+
}
|
|
38043
|
+
}
|
|
38044
|
+
}
|
|
38045
|
+
|
|
38046
|
+
checkPropTypes.resetWarningCache = function () {
|
|
38047
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38048
|
+
loggedTypeFailures = {};
|
|
38049
|
+
}
|
|
38050
|
+
};
|
|
38051
|
+
|
|
38052
|
+
var checkPropTypes_1 = checkPropTypes;
|
|
38053
|
+
|
|
38054
|
+
var printWarning$1 = function printWarning() {};
|
|
38055
|
+
|
|
38056
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38057
|
+
printWarning$1 = function printWarning(text) {
|
|
38058
|
+
var message = 'Warning: ' + text;
|
|
38059
|
+
|
|
38060
|
+
if (typeof console !== 'undefined') {
|
|
38061
|
+
console.error(message);
|
|
38062
|
+
}
|
|
38063
|
+
|
|
38064
|
+
try {
|
|
38065
|
+
throw new Error(message);
|
|
38066
|
+
} catch (x) {}
|
|
38067
|
+
};
|
|
38068
|
+
}
|
|
38069
|
+
|
|
38070
|
+
function emptyFunctionThatReturnsNull() {
|
|
38071
|
+
return null;
|
|
38072
|
+
}
|
|
38073
|
+
|
|
38074
|
+
var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, throwOnDirectAccess) {
|
|
38075
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
38076
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
38077
|
+
|
|
38078
|
+
function getIteratorFn(maybeIterable) {
|
|
38079
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
38080
|
+
|
|
38081
|
+
if (typeof iteratorFn === 'function') {
|
|
38082
|
+
return iteratorFn;
|
|
38083
|
+
}
|
|
38084
|
+
}
|
|
38085
|
+
|
|
38086
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
38087
|
+
var ReactPropTypes = {
|
|
38088
|
+
array: createPrimitiveTypeChecker('array'),
|
|
38089
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
38090
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
38091
|
+
func: createPrimitiveTypeChecker('function'),
|
|
38092
|
+
number: createPrimitiveTypeChecker('number'),
|
|
38093
|
+
object: createPrimitiveTypeChecker('object'),
|
|
38094
|
+
string: createPrimitiveTypeChecker('string'),
|
|
38095
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
38096
|
+
any: createAnyTypeChecker(),
|
|
38097
|
+
arrayOf: createArrayOfTypeChecker,
|
|
38098
|
+
element: createElementTypeChecker(),
|
|
38099
|
+
elementType: createElementTypeTypeChecker(),
|
|
38100
|
+
instanceOf: createInstanceTypeChecker,
|
|
38101
|
+
node: createNodeChecker(),
|
|
38102
|
+
objectOf: createObjectOfTypeChecker,
|
|
38103
|
+
oneOf: createEnumTypeChecker,
|
|
38104
|
+
oneOfType: createUnionTypeChecker,
|
|
38105
|
+
shape: createShapeTypeChecker,
|
|
38106
|
+
exact: createStrictShapeTypeChecker
|
|
38107
|
+
};
|
|
38108
|
+
|
|
38109
|
+
function is(x, y) {
|
|
38110
|
+
if (x === y) {
|
|
38111
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
38112
|
+
} else {
|
|
38113
|
+
return x !== x && y !== y;
|
|
38114
|
+
}
|
|
38115
|
+
}
|
|
38116
|
+
|
|
38117
|
+
function PropTypeError(message, data) {
|
|
38118
|
+
this.message = message;
|
|
38119
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
38120
|
+
this.stack = '';
|
|
38121
|
+
}
|
|
38122
|
+
|
|
38123
|
+
PropTypeError.prototype = Error.prototype;
|
|
38124
|
+
|
|
38125
|
+
function createChainableTypeChecker(validate) {
|
|
38126
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38127
|
+
var manualPropTypeCallCache = {};
|
|
38128
|
+
var manualPropTypeWarningCount = 0;
|
|
38129
|
+
}
|
|
38130
|
+
|
|
38131
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
38132
|
+
componentName = componentName || ANONYMOUS;
|
|
38133
|
+
propFullName = propFullName || propName;
|
|
38134
|
+
|
|
38135
|
+
if (secret !== ReactPropTypesSecret_1) {
|
|
38136
|
+
if (throwOnDirectAccess) {
|
|
38137
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
38138
|
+
err.name = 'Invariant Violation';
|
|
38139
|
+
throw err;
|
|
38140
|
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
38141
|
+
var cacheKey = componentName + ':' + propName;
|
|
38142
|
+
|
|
38143
|
+
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
|
|
38144
|
+
printWarning$1('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
|
38145
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
38146
|
+
manualPropTypeWarningCount++;
|
|
38147
|
+
}
|
|
38148
|
+
}
|
|
38149
|
+
}
|
|
38150
|
+
|
|
38151
|
+
if (props[propName] == null) {
|
|
38152
|
+
if (isRequired) {
|
|
38153
|
+
if (props[propName] === null) {
|
|
38154
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
38155
|
+
}
|
|
38156
|
+
|
|
38157
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
38158
|
+
}
|
|
38159
|
+
|
|
38160
|
+
return null;
|
|
38161
|
+
} else {
|
|
38162
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
38163
|
+
}
|
|
38164
|
+
}
|
|
38165
|
+
|
|
38166
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
38167
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
38168
|
+
return chainedCheckType;
|
|
38169
|
+
}
|
|
38170
|
+
|
|
38171
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
38172
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
38173
|
+
var propValue = props[propName];
|
|
38174
|
+
var propType = getPropType(propValue);
|
|
38175
|
+
|
|
38176
|
+
if (propType !== expectedType) {
|
|
38177
|
+
var preciseType = getPreciseType(propValue);
|
|
38178
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
38179
|
+
expectedType: expectedType
|
|
38180
|
+
});
|
|
38181
|
+
}
|
|
38182
|
+
|
|
38183
|
+
return null;
|
|
38184
|
+
}
|
|
38185
|
+
|
|
38186
|
+
return createChainableTypeChecker(validate);
|
|
38187
|
+
}
|
|
38188
|
+
|
|
38189
|
+
function createAnyTypeChecker() {
|
|
38190
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
38191
|
+
}
|
|
38192
|
+
|
|
38193
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
38194
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38195
|
+
if (typeof typeChecker !== 'function') {
|
|
38196
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
38197
|
+
}
|
|
38198
|
+
|
|
38199
|
+
var propValue = props[propName];
|
|
38200
|
+
|
|
38201
|
+
if (!Array.isArray(propValue)) {
|
|
38202
|
+
var propType = getPropType(propValue);
|
|
38203
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
38204
|
+
}
|
|
38205
|
+
|
|
38206
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
38207
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
|
|
38208
|
+
|
|
38209
|
+
if (error instanceof Error) {
|
|
38210
|
+
return error;
|
|
38211
|
+
}
|
|
38212
|
+
}
|
|
38213
|
+
|
|
38214
|
+
return null;
|
|
38215
|
+
}
|
|
38216
|
+
|
|
38217
|
+
return createChainableTypeChecker(validate);
|
|
38218
|
+
}
|
|
38219
|
+
|
|
38220
|
+
function createElementTypeChecker() {
|
|
38221
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38222
|
+
var propValue = props[propName];
|
|
38223
|
+
|
|
38224
|
+
if (!isValidElement(propValue)) {
|
|
38225
|
+
var propType = getPropType(propValue);
|
|
38226
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
38227
|
+
}
|
|
38228
|
+
|
|
38229
|
+
return null;
|
|
38230
|
+
}
|
|
38231
|
+
|
|
38232
|
+
return createChainableTypeChecker(validate);
|
|
38233
|
+
}
|
|
38234
|
+
|
|
38235
|
+
function createElementTypeTypeChecker() {
|
|
38236
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38237
|
+
var propValue = props[propName];
|
|
38238
|
+
|
|
38239
|
+
if (!reactIs.isValidElementType(propValue)) {
|
|
38240
|
+
var propType = getPropType(propValue);
|
|
38241
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
38242
|
+
}
|
|
38243
|
+
|
|
38244
|
+
return null;
|
|
38245
|
+
}
|
|
38246
|
+
|
|
38247
|
+
return createChainableTypeChecker(validate);
|
|
38248
|
+
}
|
|
38249
|
+
|
|
38250
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
38251
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38252
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
38253
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
38254
|
+
var actualClassName = getClassName(props[propName]);
|
|
38255
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
38256
|
+
}
|
|
38257
|
+
|
|
38258
|
+
return null;
|
|
38259
|
+
}
|
|
38260
|
+
|
|
38261
|
+
return createChainableTypeChecker(validate);
|
|
38262
|
+
}
|
|
38263
|
+
|
|
38264
|
+
function createEnumTypeChecker(expectedValues) {
|
|
38265
|
+
if (!Array.isArray(expectedValues)) {
|
|
38266
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38267
|
+
if (arguments.length > 1) {
|
|
38268
|
+
printWarning$1('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
|
38269
|
+
} else {
|
|
38270
|
+
printWarning$1('Invalid argument supplied to oneOf, expected an array.');
|
|
38271
|
+
}
|
|
38272
|
+
}
|
|
38273
|
+
|
|
38274
|
+
return emptyFunctionThatReturnsNull;
|
|
38275
|
+
}
|
|
38276
|
+
|
|
38277
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38278
|
+
var propValue = props[propName];
|
|
38279
|
+
|
|
38280
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
38281
|
+
if (is(propValue, expectedValues[i])) {
|
|
38282
|
+
return null;
|
|
38283
|
+
}
|
|
38284
|
+
}
|
|
38285
|
+
|
|
38286
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
38287
|
+
var type = getPreciseType(value);
|
|
38288
|
+
|
|
38289
|
+
if (type === 'symbol') {
|
|
38290
|
+
return String(value);
|
|
38291
|
+
}
|
|
38292
|
+
|
|
38293
|
+
return value;
|
|
38294
|
+
});
|
|
38295
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
38296
|
+
}
|
|
38297
|
+
|
|
38298
|
+
return createChainableTypeChecker(validate);
|
|
38299
|
+
}
|
|
38300
|
+
|
|
38301
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
38302
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38303
|
+
if (typeof typeChecker !== 'function') {
|
|
38304
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
38305
|
+
}
|
|
38306
|
+
|
|
38307
|
+
var propValue = props[propName];
|
|
38308
|
+
var propType = getPropType(propValue);
|
|
38309
|
+
|
|
38310
|
+
if (propType !== 'object') {
|
|
38311
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
38312
|
+
}
|
|
38313
|
+
|
|
38314
|
+
for (var key in propValue) {
|
|
38315
|
+
if (has(propValue, key)) {
|
|
38316
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
38317
|
+
|
|
38318
|
+
if (error instanceof Error) {
|
|
38319
|
+
return error;
|
|
38320
|
+
}
|
|
38321
|
+
}
|
|
38322
|
+
}
|
|
38323
|
+
|
|
38324
|
+
return null;
|
|
38325
|
+
}
|
|
38326
|
+
|
|
38327
|
+
return createChainableTypeChecker(validate);
|
|
38328
|
+
}
|
|
38329
|
+
|
|
38330
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
38331
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
38332
|
+
process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
38333
|
+
return emptyFunctionThatReturnsNull;
|
|
38334
|
+
}
|
|
38335
|
+
|
|
38336
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
38337
|
+
var checker = arrayOfTypeCheckers[i];
|
|
38338
|
+
|
|
38339
|
+
if (typeof checker !== 'function') {
|
|
38340
|
+
printWarning$1('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
38341
|
+
return emptyFunctionThatReturnsNull;
|
|
38342
|
+
}
|
|
38343
|
+
}
|
|
38344
|
+
|
|
38345
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38346
|
+
var expectedTypes = [];
|
|
38347
|
+
|
|
38348
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
38349
|
+
var checker = arrayOfTypeCheckers[i];
|
|
38350
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
|
|
38351
|
+
|
|
38352
|
+
if (checkerResult == null) {
|
|
38353
|
+
return null;
|
|
38354
|
+
}
|
|
38355
|
+
|
|
38356
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
38357
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
38358
|
+
}
|
|
38359
|
+
}
|
|
38360
|
+
|
|
38361
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
38362
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
38363
|
+
}
|
|
38364
|
+
|
|
38365
|
+
return createChainableTypeChecker(validate);
|
|
38366
|
+
}
|
|
38367
|
+
|
|
38368
|
+
function createNodeChecker() {
|
|
38369
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38370
|
+
if (!isNode(props[propName])) {
|
|
38371
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
38372
|
+
}
|
|
38373
|
+
|
|
38374
|
+
return null;
|
|
38375
|
+
}
|
|
38376
|
+
|
|
38377
|
+
return createChainableTypeChecker(validate);
|
|
38378
|
+
}
|
|
38379
|
+
|
|
38380
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
38381
|
+
return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
|
|
38382
|
+
}
|
|
38383
|
+
|
|
38384
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
38385
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38386
|
+
var propValue = props[propName];
|
|
38387
|
+
var propType = getPropType(propValue);
|
|
38388
|
+
|
|
38389
|
+
if (propType !== 'object') {
|
|
38390
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
38391
|
+
}
|
|
38392
|
+
|
|
38393
|
+
for (var key in shapeTypes) {
|
|
38394
|
+
var checker = shapeTypes[key];
|
|
38395
|
+
|
|
38396
|
+
if (typeof checker !== 'function') {
|
|
38397
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
38398
|
+
}
|
|
38399
|
+
|
|
38400
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
38401
|
+
|
|
38402
|
+
if (error) {
|
|
38403
|
+
return error;
|
|
38404
|
+
}
|
|
38405
|
+
}
|
|
38406
|
+
|
|
38407
|
+
return null;
|
|
38408
|
+
}
|
|
38409
|
+
|
|
38410
|
+
return createChainableTypeChecker(validate);
|
|
38411
|
+
}
|
|
38412
|
+
|
|
38413
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
38414
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38415
|
+
var propValue = props[propName];
|
|
38416
|
+
var propType = getPropType(propValue);
|
|
38417
|
+
|
|
38418
|
+
if (propType !== 'object') {
|
|
38419
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
38420
|
+
}
|
|
38421
|
+
|
|
38422
|
+
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
38423
|
+
|
|
38424
|
+
for (var key in allKeys) {
|
|
38425
|
+
var checker = shapeTypes[key];
|
|
38426
|
+
|
|
38427
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
38428
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
38429
|
+
}
|
|
38430
|
+
|
|
38431
|
+
if (!checker) {
|
|
38432
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
38433
|
+
}
|
|
38434
|
+
|
|
38435
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
38436
|
+
|
|
38437
|
+
if (error) {
|
|
38438
|
+
return error;
|
|
38439
|
+
}
|
|
38440
|
+
}
|
|
38441
|
+
|
|
38442
|
+
return null;
|
|
38443
|
+
}
|
|
38444
|
+
|
|
38445
|
+
return createChainableTypeChecker(validate);
|
|
38446
|
+
}
|
|
38447
|
+
|
|
38448
|
+
function isNode(propValue) {
|
|
38449
|
+
switch (typeof propValue) {
|
|
38450
|
+
case 'number':
|
|
38451
|
+
case 'string':
|
|
38452
|
+
case 'undefined':
|
|
38453
|
+
return true;
|
|
38454
|
+
|
|
38455
|
+
case 'boolean':
|
|
38456
|
+
return !propValue;
|
|
38457
|
+
|
|
38458
|
+
case 'object':
|
|
38459
|
+
if (Array.isArray(propValue)) {
|
|
38460
|
+
return propValue.every(isNode);
|
|
38461
|
+
}
|
|
38462
|
+
|
|
38463
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
38464
|
+
return true;
|
|
38465
|
+
}
|
|
38466
|
+
|
|
38467
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
38468
|
+
|
|
38469
|
+
if (iteratorFn) {
|
|
38470
|
+
var iterator = iteratorFn.call(propValue);
|
|
38471
|
+
var step;
|
|
38472
|
+
|
|
38473
|
+
if (iteratorFn !== propValue.entries) {
|
|
38474
|
+
while (!(step = iterator.next()).done) {
|
|
38475
|
+
if (!isNode(step.value)) {
|
|
38476
|
+
return false;
|
|
38477
|
+
}
|
|
38478
|
+
}
|
|
38479
|
+
} else {
|
|
38480
|
+
while (!(step = iterator.next()).done) {
|
|
38481
|
+
var entry = step.value;
|
|
38482
|
+
|
|
38483
|
+
if (entry) {
|
|
38484
|
+
if (!isNode(entry[1])) {
|
|
38485
|
+
return false;
|
|
38486
|
+
}
|
|
38487
|
+
}
|
|
38488
|
+
}
|
|
38489
|
+
}
|
|
38490
|
+
} else {
|
|
38491
|
+
return false;
|
|
38492
|
+
}
|
|
38493
|
+
|
|
38494
|
+
return true;
|
|
38495
|
+
|
|
38496
|
+
default:
|
|
38497
|
+
return false;
|
|
38498
|
+
}
|
|
38499
|
+
}
|
|
38500
|
+
|
|
38501
|
+
function isSymbol(propType, propValue) {
|
|
38502
|
+
if (propType === 'symbol') {
|
|
38503
|
+
return true;
|
|
38504
|
+
}
|
|
38505
|
+
|
|
38506
|
+
if (!propValue) {
|
|
38507
|
+
return false;
|
|
38508
|
+
}
|
|
38509
|
+
|
|
38510
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
38511
|
+
return true;
|
|
38512
|
+
}
|
|
38513
|
+
|
|
38514
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
38515
|
+
return true;
|
|
38516
|
+
}
|
|
38517
|
+
|
|
38518
|
+
return false;
|
|
38519
|
+
}
|
|
38520
|
+
|
|
38521
|
+
function getPropType(propValue) {
|
|
38522
|
+
var propType = typeof propValue;
|
|
38523
|
+
|
|
38524
|
+
if (Array.isArray(propValue)) {
|
|
38525
|
+
return 'array';
|
|
38526
|
+
}
|
|
38527
|
+
|
|
38528
|
+
if (propValue instanceof RegExp) {
|
|
38529
|
+
return 'object';
|
|
38530
|
+
}
|
|
38531
|
+
|
|
38532
|
+
if (isSymbol(propType, propValue)) {
|
|
38533
|
+
return 'symbol';
|
|
38534
|
+
}
|
|
38535
|
+
|
|
38536
|
+
return propType;
|
|
38537
|
+
}
|
|
38538
|
+
|
|
38539
|
+
function getPreciseType(propValue) {
|
|
38540
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
|
38541
|
+
return '' + propValue;
|
|
38542
|
+
}
|
|
38543
|
+
|
|
38544
|
+
var propType = getPropType(propValue);
|
|
38545
|
+
|
|
38546
|
+
if (propType === 'object') {
|
|
38547
|
+
if (propValue instanceof Date) {
|
|
38548
|
+
return 'date';
|
|
38549
|
+
} else if (propValue instanceof RegExp) {
|
|
38550
|
+
return 'regexp';
|
|
38551
|
+
}
|
|
38552
|
+
}
|
|
38553
|
+
|
|
38554
|
+
return propType;
|
|
38555
|
+
}
|
|
38556
|
+
|
|
38557
|
+
function getPostfixForTypeWarning(value) {
|
|
38558
|
+
var type = getPreciseType(value);
|
|
38559
|
+
|
|
38560
|
+
switch (type) {
|
|
38561
|
+
case 'array':
|
|
38562
|
+
case 'object':
|
|
38563
|
+
return 'an ' + type;
|
|
38564
|
+
|
|
38565
|
+
case 'boolean':
|
|
38566
|
+
case 'date':
|
|
38567
|
+
case 'regexp':
|
|
38568
|
+
return 'a ' + type;
|
|
38569
|
+
|
|
38570
|
+
default:
|
|
38571
|
+
return type;
|
|
38572
|
+
}
|
|
38573
|
+
}
|
|
38574
|
+
|
|
38575
|
+
function getClassName(propValue) {
|
|
38576
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
38577
|
+
return ANONYMOUS;
|
|
38578
|
+
}
|
|
38579
|
+
|
|
38580
|
+
return propValue.constructor.name;
|
|
38581
|
+
}
|
|
38582
|
+
|
|
38583
|
+
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
38584
|
+
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
38585
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
38586
|
+
return ReactPropTypes;
|
|
38587
|
+
};
|
|
38588
|
+
|
|
38589
|
+
function emptyFunction() {}
|
|
38590
|
+
|
|
38591
|
+
function emptyFunctionWithReset() {}
|
|
38592
|
+
|
|
38593
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
38594
|
+
|
|
38595
|
+
var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
38596
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
38597
|
+
if (secret === ReactPropTypesSecret_1) {
|
|
38598
|
+
return;
|
|
38599
|
+
}
|
|
38600
|
+
|
|
38601
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
38602
|
+
err.name = 'Invariant Violation';
|
|
38603
|
+
throw err;
|
|
38604
|
+
}
|
|
38605
|
+
shim.isRequired = shim;
|
|
38606
|
+
|
|
38607
|
+
function getShim() {
|
|
38608
|
+
return shim;
|
|
38609
|
+
}
|
|
38610
|
+
var ReactPropTypes = {
|
|
38611
|
+
array: shim,
|
|
38612
|
+
bigint: shim,
|
|
38613
|
+
bool: shim,
|
|
38614
|
+
func: shim,
|
|
38615
|
+
number: shim,
|
|
38616
|
+
object: shim,
|
|
38617
|
+
string: shim,
|
|
38618
|
+
symbol: shim,
|
|
38619
|
+
any: shim,
|
|
38620
|
+
arrayOf: getShim,
|
|
38621
|
+
element: shim,
|
|
38622
|
+
elementType: shim,
|
|
38623
|
+
instanceOf: getShim,
|
|
38624
|
+
node: shim,
|
|
38625
|
+
objectOf: getShim,
|
|
38626
|
+
oneOf: getShim,
|
|
38627
|
+
oneOfType: getShim,
|
|
38628
|
+
shape: getShim,
|
|
38629
|
+
exact: getShim,
|
|
38630
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
38631
|
+
resetWarningCache: emptyFunction
|
|
38632
|
+
};
|
|
38633
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
38634
|
+
return ReactPropTypes;
|
|
38635
|
+
};
|
|
38636
|
+
|
|
38637
|
+
var propTypes = createCommonjsModule(function (module) {
|
|
38638
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38639
|
+
var ReactIs = reactIs;
|
|
38640
|
+
var throwOnDirectAccess = true;
|
|
38641
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
38642
|
+
} else {
|
|
38643
|
+
module.exports = factoryWithThrowingShims();
|
|
38644
|
+
}
|
|
38645
|
+
});
|
|
38646
|
+
|
|
38647
|
+
var useDocumentSearch = function useDocumentSearch(documents, config) {
|
|
38648
|
+
var _documents;
|
|
38649
|
+
|
|
38650
|
+
if (documents === void 0) {
|
|
38651
|
+
documents = [];
|
|
38652
|
+
}
|
|
38653
|
+
|
|
38654
|
+
if (config === void 0) {
|
|
38655
|
+
config = {};
|
|
38656
|
+
}
|
|
38657
|
+
|
|
38658
|
+
var client = reactQuery.useQueryClient();
|
|
38659
|
+
var tenant = Digit.ULBService.getStateId();
|
|
38660
|
+
var filesArray = (_documents = documents) === null || _documents === void 0 ? void 0 : _documents.map(function (value) {
|
|
38661
|
+
return value === null || value === void 0 ? void 0 : value.fileStoreId;
|
|
38662
|
+
});
|
|
38663
|
+
|
|
38664
|
+
var _useQuery = reactQuery.useQuery([filesArray.join('')], function () {
|
|
38665
|
+
return Digit.UploadServices.Filefetch(filesArray, tenant);
|
|
38666
|
+
}, _extends({
|
|
38667
|
+
enabled: filesArray && filesArray.length > 0,
|
|
38668
|
+
select: function select(data) {
|
|
38669
|
+
return documents.map(function (document) {
|
|
38670
|
+
var _data$data, _data$data2, _data$data3;
|
|
38671
|
+
|
|
38672
|
+
return _extends({}, document, {
|
|
38673
|
+
fileURL: (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data[document === null || document === void 0 ? void 0 : document.fileStoreId]) && Digit.Utils.getFileUrl(data.data[document === null || document === void 0 ? void 0 : document.fileStoreId]),
|
|
38674
|
+
url: (data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2[document === null || document === void 0 ? void 0 : document.fileStoreId]) && Digit.Utils.getFileUrl(data.data[document === null || document === void 0 ? void 0 : document.fileStoreId]),
|
|
38675
|
+
fileResponse: (data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3[document === null || document === void 0 ? void 0 : document.fileStoreId]) || ""
|
|
38676
|
+
});
|
|
38677
|
+
});
|
|
38678
|
+
}
|
|
38679
|
+
}, config)),
|
|
38680
|
+
isLoading = _useQuery.isLoading,
|
|
38681
|
+
error = _useQuery.error,
|
|
38682
|
+
data = _useQuery.data;
|
|
38683
|
+
|
|
38684
|
+
return {
|
|
38685
|
+
isLoading: isLoading,
|
|
38686
|
+
error: error,
|
|
38687
|
+
data: {
|
|
38688
|
+
pdfFiles: data
|
|
38689
|
+
},
|
|
38690
|
+
revalidate: function revalidate() {
|
|
38691
|
+
return client.invalidateQueries([filesArray.join('')]);
|
|
38692
|
+
}
|
|
38693
|
+
};
|
|
38694
|
+
};
|
|
38695
|
+
useDocumentSearch.propTypes = {
|
|
38696
|
+
documents: propTypes.array,
|
|
38697
|
+
config: propTypes.object
|
|
38698
|
+
};
|
|
38699
|
+
useDocumentSearch.defaultProps = {
|
|
38700
|
+
documents: [],
|
|
38701
|
+
config: {}
|
|
38702
|
+
};
|
|
38703
|
+
|
|
37577
38704
|
var useOnClickOutside = function useOnClickOutside(ref, handler, isActive, eventParam) {
|
|
37578
38705
|
if (eventParam === void 0) {
|
|
37579
38706
|
eventParam = false;
|
|
@@ -42267,7 +43394,7 @@ var useTradeLicenseMDMS = function useTradeLicenseMDMS(tenantId, moduleCode, typ
|
|
|
42267
43394
|
};
|
|
42268
43395
|
|
|
42269
43396
|
var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
|
|
42270
|
-
var _data, _data$value, _data$value$tradeLice, _data2, _data2$value,
|
|
43397
|
+
var _data, _data$value, _data$value$tradeLice, _data2, _data2$value, _data3, _data3$value, _data3$value$workflow, _data4, _data4$value, _data4$value$owners, _data4$value$owners$d, _data5, _data5$value, _data5$value$owners, _data5$value$owners$d, _data6, _data6$value, _data6$value$owners, _data6$value$owners$d;
|
|
42271
43398
|
|
|
42272
43399
|
if (data1 === void 0) {
|
|
42273
43400
|
data1 = {};
|
|
@@ -42279,9 +43406,12 @@ var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
|
|
|
42279
43406
|
var filesArray = window.location.href.includes("/tl/tradelicence/application/") ? (_data = data1) === null || _data === void 0 ? void 0 : (_data$value = _data.value) === null || _data$value === void 0 ? void 0 : (_data$value$tradeLice = _data$value.tradeLicenseDetail) === null || _data$value$tradeLice === void 0 ? void 0 : _data$value$tradeLice.applicationDocuments.map(function (ob) {
|
|
42280
43407
|
return ob === null || ob === void 0 ? void 0 : ob.fileStoreId;
|
|
42281
43408
|
}) : [];
|
|
42282
|
-
if ((_data2 = data1) !== null && _data2 !== void 0 && (_data2$value = _data2.value) !== null && _data2$value !== void 0 &&
|
|
42283
|
-
|
|
42284
|
-
|
|
43409
|
+
if ((_data2 = data1) !== null && _data2 !== void 0 && (_data2$value = _data2.value) !== null && _data2$value !== void 0 && _data2$value.workflowDocs) filesArray = (_data3 = data1) === null || _data3 === void 0 ? void 0 : (_data3$value = _data3.value) === null || _data3$value === void 0 ? void 0 : (_data3$value$workflow = _data3$value.workflowDocs) === null || _data3$value$workflow === void 0 ? void 0 : _data3$value$workflow.map(function (ob) {
|
|
43410
|
+
return ob === null || ob === void 0 ? void 0 : ob.fileStoreId;
|
|
43411
|
+
});
|
|
43412
|
+
if ((_data4 = data1) !== null && _data4 !== void 0 && (_data4$value = _data4.value) !== null && _data4$value !== void 0 && (_data4$value$owners = _data4$value.owners) !== null && _data4$value$owners !== void 0 && (_data4$value$owners$d = _data4$value$owners.documents["OwnerPhotoProof"]) !== null && _data4$value$owners$d !== void 0 && _data4$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["OwnerPhotoProof"].fileStoreId);
|
|
43413
|
+
if ((_data5 = data1) !== null && _data5 !== void 0 && (_data5$value = _data5.value) !== null && _data5$value !== void 0 && (_data5$value$owners = _data5$value.owners) !== null && _data5$value$owners !== void 0 && (_data5$value$owners$d = _data5$value$owners.documents["ProofOfIdentity"]) !== null && _data5$value$owners$d !== void 0 && _data5$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfIdentity"].fileStoreId);
|
|
43414
|
+
if ((_data6 = data1) !== null && _data6 !== void 0 && (_data6$value = _data6.value) !== null && _data6$value !== void 0 && (_data6$value$owners = _data6$value.owners) !== null && _data6$value$owners !== void 0 && (_data6$value$owners$d = _data6$value$owners.documents["ProofOfOwnership"]) !== null && _data6$value$owners$d !== void 0 && _data6$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfOwnership"].fileStoreId);
|
|
42285
43415
|
|
|
42286
43416
|
var _useQuery = reactQuery.useQuery(["tlDocuments-" + 1, filesArray], function () {
|
|
42287
43417
|
return Digit.UploadServices.Filefetch(filesArray, tenant);
|
|
@@ -42591,7 +43721,7 @@ var TLSearch = {
|
|
|
42591
43721
|
value: response !== null && response !== void 0 && (_response$tradeLicens2 = response.tradeLicenseDetail) !== null && _response$tradeLicens2 !== void 0 && _response$tradeLicens2.structureType ? "COMMON_MASTERS_STRUCTURETYPE_" + (response === null || response === void 0 ? void 0 : (_response$tradeLicens3 = response.tradeLicenseDetail) === null || _response$tradeLicens3 === void 0 ? void 0 : (_response$tradeLicens4 = _response$tradeLicens3.structureType) === null || _response$tradeLicens4 === void 0 ? void 0 : _response$tradeLicens4.split(".")[0]) : "NA"
|
|
42592
43722
|
}, {
|
|
42593
43723
|
title: "TL_NEW_TRADE_DETAILS_STRUCT_SUB_TYPE_LABEL",
|
|
42594
|
-
value: response !== null && response !== void 0 && (_response$tradeLicens5 = response.tradeLicenseDetail) !== null && _response$tradeLicens5 !== void 0 && _response$tradeLicens5.structureType ? "
|
|
43724
|
+
value: response !== null && response !== void 0 && (_response$tradeLicens5 = response.tradeLicenseDetail) !== null && _response$tradeLicens5 !== void 0 && _response$tradeLicens5.structureType ? "TL_" + (response === null || response === void 0 ? void 0 : (_response$tradeLicens6 = response.tradeLicenseDetail) === null || _response$tradeLicens6 === void 0 ? void 0 : _response$tradeLicens6.tradeType) : "NA"
|
|
42595
43725
|
}, {
|
|
42596
43726
|
title: "TL_NEW_TRADE_DETAILS_TRADE_COMM_DATE_LABEL",
|
|
42597
43727
|
value: response !== null && response !== void 0 && response.commencementDate ? convertEpochToDate(response === null || response === void 0 ? void 0 : response.commencementDate) : "NA"
|
|
@@ -43536,13 +44666,14 @@ var SearchMdmsTypes = {
|
|
|
43536
44666
|
var _data$BPA3, _data$BPA3$BPAAppicat;
|
|
43537
44667
|
|
|
43538
44668
|
return [].concat(data === null || data === void 0 ? void 0 : (_data$BPA3 = data.BPA) === null || _data$BPA3 === void 0 ? void 0 : (_data$BPA3$BPAAppicat = _data$BPA3.BPAAppicationMapping) === null || _data$BPA3$BPAAppicat === void 0 ? void 0 : _data$BPA3$BPAAppicat.filter(function (currentObject) {
|
|
43539
|
-
var _currentObject$roles;
|
|
44669
|
+
var _userInfo$value, _currentObject$roles;
|
|
43540
44670
|
|
|
44671
|
+
var userInfos = sessionStorage.getItem("Digit.citizen.userRequestObject");
|
|
44672
|
+
var userInfo = userInfos ? JSON.parse(userInfos) : {};
|
|
44673
|
+
var userInformation = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$value = userInfo.value) === null || _userInfo$value === void 0 ? void 0 : _userInfo$value.info;
|
|
43541
44674
|
var flag = 0;
|
|
43542
44675
|
currentObject === null || currentObject === void 0 ? void 0 : (_currentObject$roles = currentObject.roles) === null || _currentObject$roles === void 0 ? void 0 : _currentObject$roles.map(function (bpaRole) {
|
|
43543
|
-
var
|
|
43544
|
-
|
|
43545
|
-
var found = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.roles.some(function (role) {
|
|
44676
|
+
var found = userInformation === null || userInformation === void 0 ? void 0 : userInformation.roles.some(function (role) {
|
|
43546
44677
|
return (role === null || role === void 0 ? void 0 : role.code) === bpaRole;
|
|
43547
44678
|
});
|
|
43548
44679
|
if (found == true) flag = 1;
|
|
@@ -43860,21 +44991,124 @@ var OBPSService = {
|
|
|
43860
44991
|
isEmployee: true
|
|
43861
44992
|
})).then(function (paymentRes) {
|
|
43862
44993
|
return Promise.resolve(MdmsService.getMultipleTypes(License === null || License === void 0 ? void 0 : License.tenantId, "StakeholderRegistraition", ["TradeTypetoRoleMapping"])).then(function (mdmsRes) {
|
|
43863
|
-
var _License$
|
|
44994
|
+
var _License$tradeLicense37, _License$tradeLicense38, _mdmsRes$StakeholderR, _mdmsRes$StakeholderR2, _License$tradeLicense44, _License$tradeLicense45;
|
|
43864
44995
|
|
|
43865
|
-
|
|
44996
|
+
function _temp2() {
|
|
44997
|
+
var _License$tradeLicense, _License$tradeLicense2, _License$tradeLicense3, _License$tradeLicense4, _License$tradeLicense5, _License$tradeLicense6, _License$tradeLicense7, _License$tradeLicense8, _License$tradeLicense9, _License$tradeLicense10, _License$tradeLicense11, _License$tradeLicense12, _License$tradeLicense13, _License$tradeLicense14, _License$tradeLicense15, _License$tradeLicense16, _License$tradeLicense17, _License$tradeLicense18, _License$tradeLicense19, _License$tradeLicense20, _License$tradeLicense21, _License$tradeLicense22, _License$tradeLicense23, _License$tradeLicense24, _License$tradeLicense25, _License$tradeLicense26, _License$tradeLicense27, _License$tradeLicense28, _License$tradeLicense29, _License$tradeLicense30, _License$tradeLicense31, _License$tradeLicense32, _License$tradeLicense33, _License$tradeLicense34, _License$tradeLicense35, _License$tradeLicense36, _paymentRes$Payments, _paymentRes$Payments2, _paymentRes$Payments3, _paymentRes$Payments4, _paymentRes$Payments5, _ref;
|
|
44998
|
+
|
|
44999
|
+
var details = [{
|
|
45000
|
+
title: " ",
|
|
45001
|
+
values: [{
|
|
45002
|
+
title: "BPA_APPLICATION_NUMBER_LABEL",
|
|
45003
|
+
value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
|
|
45004
|
+
}]
|
|
45005
|
+
}, License !== null && License !== void 0 && (_License$tradeLicense = License.tradeLicenseDetail) !== null && _License$tradeLicense !== void 0 && (_License$tradeLicense2 = _License$tradeLicense.tradeUnits) !== null && _License$tradeLicense2 !== void 0 && (_License$tradeLicense3 = _License$tradeLicense2[0]) !== null && _License$tradeLicense3 !== void 0 && _License$tradeLicense3.tradeType.includes("ARCHITECT") ? {
|
|
45006
|
+
title: "BPA_LICENSE_DETAILS_LABEL",
|
|
45007
|
+
asSectionHeader: true,
|
|
45008
|
+
values: [{
|
|
45009
|
+
title: "BPA_LICENSE_TYPE",
|
|
45010
|
+
value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense4 = License.tradeLicenseDetail) === null || _License$tradeLicense4 === void 0 ? void 0 : (_License$tradeLicense5 = _License$tradeLicense4.tradeUnits) === null || _License$tradeLicense5 === void 0 ? void 0 : (_License$tradeLicense6 = _License$tradeLicense5[0]) === null || _License$tradeLicense6 === void 0 ? void 0 : (_License$tradeLicense7 = _License$tradeLicense6.tradeType) === null || _License$tradeLicense7 === void 0 ? void 0 : _License$tradeLicense7.split(".")[0]) || "NA"
|
|
45011
|
+
}, {
|
|
45012
|
+
title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
|
|
45013
|
+
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense8 = License.tradeLicenseDetail) === null || _License$tradeLicense8 === void 0 ? void 0 : (_License$tradeLicense9 = _License$tradeLicense8.additionalDetail) === null || _License$tradeLicense9 === void 0 ? void 0 : _License$tradeLicense9.counsilForArchNo) || "NA"
|
|
45014
|
+
}]
|
|
45015
|
+
} : {
|
|
45016
|
+
title: "BPA_LICENSE_DETAILS_LABEL",
|
|
45017
|
+
asSectionHeader: true,
|
|
45018
|
+
values: [{
|
|
45019
|
+
title: "BPA_LICENSE_TYPE",
|
|
45020
|
+
value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense10 = License.tradeLicenseDetail) === null || _License$tradeLicense10 === void 0 ? void 0 : (_License$tradeLicense11 = _License$tradeLicense10.tradeUnits) === null || _License$tradeLicense11 === void 0 ? void 0 : (_License$tradeLicense12 = _License$tradeLicense11[0]) === null || _License$tradeLicense12 === void 0 ? void 0 : (_License$tradeLicense13 = _License$tradeLicense12.tradeType) === null || _License$tradeLicense13 === void 0 ? void 0 : _License$tradeLicense13.split(".")[0]) || "NA"
|
|
45021
|
+
}]
|
|
45022
|
+
}, {
|
|
45023
|
+
title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
|
|
45024
|
+
asSectionHeader: true,
|
|
45025
|
+
values: [{
|
|
45026
|
+
title: "BPA_APPLICANT_NAME_LABEL",
|
|
45027
|
+
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense14 = License.tradeLicenseDetail) === null || _License$tradeLicense14 === void 0 ? void 0 : (_License$tradeLicense15 = _License$tradeLicense14.owners) === null || _License$tradeLicense15 === void 0 ? void 0 : (_License$tradeLicense16 = _License$tradeLicense15[0]) === null || _License$tradeLicense16 === void 0 ? void 0 : _License$tradeLicense16.name) || "NA"
|
|
45028
|
+
}, {
|
|
45029
|
+
title: "BPA_APPLICANT_GENDER_LABEL",
|
|
45030
|
+
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense17 = License.tradeLicenseDetail) === null || _License$tradeLicense17 === void 0 ? void 0 : (_License$tradeLicense18 = _License$tradeLicense17.owners) === null || _License$tradeLicense18 === void 0 ? void 0 : (_License$tradeLicense19 = _License$tradeLicense18[0]) === null || _License$tradeLicense19 === void 0 ? void 0 : _License$tradeLicense19.gender) || "NA"
|
|
45031
|
+
}, {
|
|
45032
|
+
title: "BPA_OWNER_MOBILE_NO_LABEL",
|
|
45033
|
+
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense20 = License.tradeLicenseDetail) === null || _License$tradeLicense20 === void 0 ? void 0 : (_License$tradeLicense21 = _License$tradeLicense20.owners) === null || _License$tradeLicense21 === void 0 ? void 0 : (_License$tradeLicense22 = _License$tradeLicense21[0]) === null || _License$tradeLicense22 === void 0 ? void 0 : _License$tradeLicense22.mobileNumber) || "NA"
|
|
45034
|
+
}, {
|
|
45035
|
+
title: "BPA_APPLICANT_EMAIL_LABEL",
|
|
45036
|
+
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense23 = License.tradeLicenseDetail) === null || _License$tradeLicense23 === void 0 ? void 0 : (_License$tradeLicense24 = _License$tradeLicense23.owners) === null || _License$tradeLicense24 === void 0 ? void 0 : (_License$tradeLicense25 = _License$tradeLicense24[0]) === null || _License$tradeLicense25 === void 0 ? void 0 : _License$tradeLicense25.emailId) || "NA"
|
|
45037
|
+
}, {
|
|
45038
|
+
title: "BPA_APPLICANT_PAN_NO",
|
|
45039
|
+
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense26 = License.tradeLicenseDetail) === null || _License$tradeLicense26 === void 0 ? void 0 : (_License$tradeLicense27 = _License$tradeLicense26.owners) === null || _License$tradeLicense27 === void 0 ? void 0 : (_License$tradeLicense28 = _License$tradeLicense27[0]) === null || _License$tradeLicense28 === void 0 ? void 0 : _License$tradeLicense28.pan) || "NA"
|
|
45040
|
+
}]
|
|
45041
|
+
}, {
|
|
45042
|
+
title: "BPA_PERMANANT_ADDRESS_LABEL",
|
|
45043
|
+
asSectionHeader: true,
|
|
45044
|
+
values: [{
|
|
45045
|
+
title: "BPA_PERMANANT_ADDRESS_LABEL",
|
|
45046
|
+
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense29 = License.tradeLicenseDetail) === null || _License$tradeLicense29 === void 0 ? void 0 : (_License$tradeLicense30 = _License$tradeLicense29.owners) === null || _License$tradeLicense30 === void 0 ? void 0 : (_License$tradeLicense31 = _License$tradeLicense30[0]) === null || _License$tradeLicense31 === void 0 ? void 0 : _License$tradeLicense31.permanentAddress) || "NA"
|
|
45047
|
+
}]
|
|
45048
|
+
}, {
|
|
45049
|
+
title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
|
|
45050
|
+
asSectionHeader: true,
|
|
45051
|
+
values: [{
|
|
45052
|
+
title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
|
|
45053
|
+
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense32 = License.tradeLicenseDetail) === null || _License$tradeLicense32 === void 0 ? void 0 : (_License$tradeLicense33 = _License$tradeLicense32.owners) === null || _License$tradeLicense33 === void 0 ? void 0 : (_License$tradeLicense34 = _License$tradeLicense33[0]) === null || _License$tradeLicense34 === void 0 ? void 0 : _License$tradeLicense34.correspondenceAddress) || "NA"
|
|
45054
|
+
}]
|
|
45055
|
+
}, {
|
|
45056
|
+
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
45057
|
+
asSectionHeader: true,
|
|
45058
|
+
additionalDetails: {
|
|
45059
|
+
documentsWithUrl: [{
|
|
45060
|
+
title: "",
|
|
45061
|
+
values: License === null || License === void 0 ? void 0 : (_License$tradeLicense35 = License.tradeLicenseDetail) === null || _License$tradeLicense35 === void 0 ? void 0 : (_License$tradeLicense36 = _License$tradeLicense35.applicationDocuments) === null || _License$tradeLicense36 === void 0 ? void 0 : _License$tradeLicense36.map(function (doc) {
|
|
45062
|
+
var _doc$documentType, _fileDetails, _fileDetails2, _fileDetails2$data$do;
|
|
45063
|
+
|
|
45064
|
+
return {
|
|
45065
|
+
title: "BPAREG_HEADER_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll('.', '_')),
|
|
45066
|
+
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
45067
|
+
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
45068
|
+
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
45069
|
+
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
45070
|
+
docInfo: doc === null || doc === void 0 ? void 0 : doc.info,
|
|
45071
|
+
url: (_fileDetails = fileDetails) !== null && _fileDetails !== void 0 && _fileDetails.data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails2 = fileDetails) === null || _fileDetails2 === void 0 ? void 0 : (_fileDetails2$data$do = _fileDetails2.data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails2$data$do === void 0 ? void 0 : _fileDetails2$data$do.split(',')[0] : ""
|
|
45072
|
+
};
|
|
45073
|
+
})
|
|
45074
|
+
}]
|
|
45075
|
+
}
|
|
45076
|
+
}, (paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments = paymentRes.Payments) === null || _paymentRes$Payments === void 0 ? void 0 : _paymentRes$Payments.length) > 0 && {
|
|
45077
|
+
title: "BPA_FEE_DETAILS_LABEL",
|
|
45078
|
+
additionalDetails: {
|
|
45079
|
+
inspectionReport: [],
|
|
45080
|
+
values: [{
|
|
45081
|
+
title: "BPAREG_FEES",
|
|
45082
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments2 = paymentRes.Payments) === null || _paymentRes$Payments2 === void 0 ? void 0 : (_paymentRes$Payments3 = _paymentRes$Payments2[0]) === null || _paymentRes$Payments3 === void 0 ? void 0 : _paymentRes$Payments3.totalAmountPaid)
|
|
45083
|
+
}, (_ref = {
|
|
45084
|
+
title: "BPA_STATUS_LABEL",
|
|
45085
|
+
isTransLate: true,
|
|
45086
|
+
isStatus: true,
|
|
45087
|
+
value: paymentRes !== null && paymentRes !== void 0 && (_paymentRes$Payments4 = paymentRes.Payments) !== null && _paymentRes$Payments4 !== void 0 && (_paymentRes$Payments5 = _paymentRes$Payments4[0]) !== null && _paymentRes$Payments5 !== void 0 && _paymentRes$Payments5.totalAmountPaid ? "WF_BPA_PAID" : "NA"
|
|
45088
|
+
}, _ref["isTransLate"] = true, _ref)]
|
|
45089
|
+
}
|
|
45090
|
+
}];
|
|
45091
|
+
return {
|
|
45092
|
+
applicationData: License,
|
|
45093
|
+
applicationDetails: details,
|
|
45094
|
+
tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
|
|
45095
|
+
payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
|
|
45096
|
+
};
|
|
45097
|
+
}
|
|
45098
|
+
|
|
45099
|
+
if (License !== null && License !== void 0 && (_License$tradeLicense37 = License.tradeLicenseDetail) !== null && _License$tradeLicense37 !== void 0 && (_License$tradeLicense38 = _License$tradeLicense37.applicationDocuments) !== null && _License$tradeLicense38 !== void 0 && _License$tradeLicense38.length && (mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$StakeholderR = mdmsRes.StakeholderRegistraition) === null || _mdmsRes$StakeholderR === void 0 ? void 0 : (_mdmsRes$StakeholderR2 = _mdmsRes$StakeholderR.TradeTypetoRoleMapping) === null || _mdmsRes$StakeholderR2 === void 0 ? void 0 : _mdmsRes$StakeholderR2.length) > 0) {
|
|
43866
45100
|
var _mdmsRes$StakeholderR3, _mdmsRes$StakeholderR4;
|
|
43867
45101
|
|
|
43868
45102
|
mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$StakeholderR3 = mdmsRes.StakeholderRegistraition) === null || _mdmsRes$StakeholderR3 === void 0 ? void 0 : (_mdmsRes$StakeholderR4 = _mdmsRes$StakeholderR3.TradeTypetoRoleMapping) === null || _mdmsRes$StakeholderR4 === void 0 ? void 0 : _mdmsRes$StakeholderR4.map(function (doc) {
|
|
43869
|
-
var _doc$docTypes, _License$
|
|
45103
|
+
var _doc$docTypes, _License$tradeLicense39, _License$tradeLicense40, _License$tradeLicense41;
|
|
43870
45104
|
|
|
43871
|
-
if ((doc === null || doc === void 0 ? void 0 : (_doc$docTypes = doc.docTypes) === null || _doc$docTypes === void 0 ? void 0 : _doc$docTypes.length) > 0 && (doc === null || doc === void 0 ? void 0 : doc.tradeType) == (License === null || License === void 0 ? void 0 : (_License$
|
|
45105
|
+
if ((doc === null || doc === void 0 ? void 0 : (_doc$docTypes = doc.docTypes) === null || _doc$docTypes === void 0 ? void 0 : _doc$docTypes.length) > 0 && (doc === null || doc === void 0 ? void 0 : doc.tradeType) == (License === null || License === void 0 ? void 0 : (_License$tradeLicense39 = License.tradeLicenseDetail) === null || _License$tradeLicense39 === void 0 ? void 0 : (_License$tradeLicense40 = _License$tradeLicense39.tradeUnits) === null || _License$tradeLicense40 === void 0 ? void 0 : (_License$tradeLicense41 = _License$tradeLicense40[0]) === null || _License$tradeLicense41 === void 0 ? void 0 : _License$tradeLicense41.tradeType)) {
|
|
43872
45106
|
var _doc$docTypes2;
|
|
43873
45107
|
|
|
43874
45108
|
doc === null || doc === void 0 ? void 0 : (_doc$docTypes2 = doc.docTypes) === null || _doc$docTypes2 === void 0 ? void 0 : _doc$docTypes2.map(function (docType) {
|
|
43875
|
-
var _License$
|
|
45109
|
+
var _License$tradeLicense42, _License$tradeLicense43;
|
|
43876
45110
|
|
|
43877
|
-
License === null || License === void 0 ? void 0 : (_License$
|
|
45111
|
+
License === null || License === void 0 ? void 0 : (_License$tradeLicense42 = License.tradeLicenseDetail) === null || _License$tradeLicense42 === void 0 ? void 0 : (_License$tradeLicense43 = _License$tradeLicense42.applicationDocuments) === null || _License$tradeLicense43 === void 0 ? void 0 : _License$tradeLicense43.forEach(function (document) {
|
|
43878
45112
|
if ((docType === null || docType === void 0 ? void 0 : docType.code) == (document === null || document === void 0 ? void 0 : document.documentType) && docType !== null && docType !== void 0 && docType.info) document.info = docType === null || docType === void 0 ? void 0 : docType.info;
|
|
43879
45113
|
});
|
|
43880
45114
|
});
|
|
@@ -43882,103 +45116,20 @@ var OBPSService = {
|
|
|
43882
45116
|
});
|
|
43883
45117
|
}
|
|
43884
45118
|
|
|
43885
|
-
var
|
|
43886
|
-
|
|
43887
|
-
|
|
43888
|
-
|
|
43889
|
-
value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
|
|
43890
|
-
}]
|
|
43891
|
-
}, License !== null && License !== void 0 && (_License$tradeLicense8 = License.tradeLicenseDetail) !== null && _License$tradeLicense8 !== void 0 && (_License$tradeLicense9 = _License$tradeLicense8.tradeUnits) !== null && _License$tradeLicense9 !== void 0 && (_License$tradeLicense10 = _License$tradeLicense9[0]) !== null && _License$tradeLicense10 !== void 0 && _License$tradeLicense10.tradeType.includes("ARCHITECT") ? {
|
|
43892
|
-
title: "BPA_LICENSE_DETAILS_LABEL",
|
|
43893
|
-
asSectionHeader: true,
|
|
43894
|
-
values: [{
|
|
43895
|
-
title: "BPA_LICENSE_TYPE",
|
|
43896
|
-
value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense11 = License.tradeLicenseDetail) === null || _License$tradeLicense11 === void 0 ? void 0 : (_License$tradeLicense12 = _License$tradeLicense11.tradeUnits) === null || _License$tradeLicense12 === void 0 ? void 0 : (_License$tradeLicense13 = _License$tradeLicense12[0]) === null || _License$tradeLicense13 === void 0 ? void 0 : (_License$tradeLicense14 = _License$tradeLicense13.tradeType) === null || _License$tradeLicense14 === void 0 ? void 0 : _License$tradeLicense14.split(".")[0]) || "NA"
|
|
43897
|
-
}, {
|
|
43898
|
-
title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
|
|
43899
|
-
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense15 = License.tradeLicenseDetail) === null || _License$tradeLicense15 === void 0 ? void 0 : (_License$tradeLicense16 = _License$tradeLicense15.additionalDetail) === null || _License$tradeLicense16 === void 0 ? void 0 : _License$tradeLicense16.counsilForArchNo) || "NA"
|
|
43900
|
-
}]
|
|
43901
|
-
} : {
|
|
43902
|
-
title: "BPA_LICENSE_DETAILS_LABEL",
|
|
43903
|
-
asSectionHeader: true,
|
|
43904
|
-
values: [{
|
|
43905
|
-
title: "BPA_LICENSE_TYPE",
|
|
43906
|
-
value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense17 = License.tradeLicenseDetail) === null || _License$tradeLicense17 === void 0 ? void 0 : (_License$tradeLicense18 = _License$tradeLicense17.tradeUnits) === null || _License$tradeLicense18 === void 0 ? void 0 : (_License$tradeLicense19 = _License$tradeLicense18[0]) === null || _License$tradeLicense19 === void 0 ? void 0 : (_License$tradeLicense20 = _License$tradeLicense19.tradeType) === null || _License$tradeLicense20 === void 0 ? void 0 : _License$tradeLicense20.split(".")[0]) || "NA"
|
|
43907
|
-
}]
|
|
43908
|
-
}, {
|
|
43909
|
-
title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
|
|
43910
|
-
asSectionHeader: true,
|
|
43911
|
-
values: [{
|
|
43912
|
-
title: "BPA_APPLICANT_NAME_LABEL",
|
|
43913
|
-
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense21 = License.tradeLicenseDetail) === null || _License$tradeLicense21 === void 0 ? void 0 : (_License$tradeLicense22 = _License$tradeLicense21.owners) === null || _License$tradeLicense22 === void 0 ? void 0 : (_License$tradeLicense23 = _License$tradeLicense22[0]) === null || _License$tradeLicense23 === void 0 ? void 0 : _License$tradeLicense23.name) || "NA"
|
|
43914
|
-
}, {
|
|
43915
|
-
title: "BPA_APPLICANT_GENDER_LABEL",
|
|
43916
|
-
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense24 = License.tradeLicenseDetail) === null || _License$tradeLicense24 === void 0 ? void 0 : (_License$tradeLicense25 = _License$tradeLicense24.owners) === null || _License$tradeLicense25 === void 0 ? void 0 : (_License$tradeLicense26 = _License$tradeLicense25[0]) === null || _License$tradeLicense26 === void 0 ? void 0 : _License$tradeLicense26.gender) || "NA"
|
|
43917
|
-
}, {
|
|
43918
|
-
title: "BPA_OWNER_MOBILE_NO_LABEL",
|
|
43919
|
-
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense27 = License.tradeLicenseDetail) === null || _License$tradeLicense27 === void 0 ? void 0 : (_License$tradeLicense28 = _License$tradeLicense27.owners) === null || _License$tradeLicense28 === void 0 ? void 0 : (_License$tradeLicense29 = _License$tradeLicense28[0]) === null || _License$tradeLicense29 === void 0 ? void 0 : _License$tradeLicense29.mobileNumber) || "NA"
|
|
43920
|
-
}, {
|
|
43921
|
-
title: "BPA_APPLICANT_EMAIL_LABEL",
|
|
43922
|
-
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense30 = License.tradeLicenseDetail) === null || _License$tradeLicense30 === void 0 ? void 0 : (_License$tradeLicense31 = _License$tradeLicense30.owners) === null || _License$tradeLicense31 === void 0 ? void 0 : (_License$tradeLicense32 = _License$tradeLicense31[0]) === null || _License$tradeLicense32 === void 0 ? void 0 : _License$tradeLicense32.emailId) || "NA"
|
|
43923
|
-
}, {
|
|
43924
|
-
title: "BPA_APPLICANT_PAN_NO",
|
|
43925
|
-
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense33 = License.tradeLicenseDetail) === null || _License$tradeLicense33 === void 0 ? void 0 : (_License$tradeLicense34 = _License$tradeLicense33.owners) === null || _License$tradeLicense34 === void 0 ? void 0 : (_License$tradeLicense35 = _License$tradeLicense34[0]) === null || _License$tradeLicense35 === void 0 ? void 0 : _License$tradeLicense35.pan) || "NA"
|
|
43926
|
-
}]
|
|
43927
|
-
}, {
|
|
43928
|
-
title: "BPA_PERMANANT_ADDRESS_LABEL",
|
|
43929
|
-
asSectionHeader: true,
|
|
43930
|
-
values: [{
|
|
43931
|
-
title: "BPA_PERMANANT_ADDRESS_LABEL",
|
|
43932
|
-
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense36 = License.tradeLicenseDetail) === null || _License$tradeLicense36 === void 0 ? void 0 : (_License$tradeLicense37 = _License$tradeLicense36.owners) === null || _License$tradeLicense37 === void 0 ? void 0 : (_License$tradeLicense38 = _License$tradeLicense37[0]) === null || _License$tradeLicense38 === void 0 ? void 0 : _License$tradeLicense38.permanentAddress) || "NA"
|
|
43933
|
-
}]
|
|
43934
|
-
}, {
|
|
43935
|
-
title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
|
|
43936
|
-
asSectionHeader: true,
|
|
43937
|
-
values: [{
|
|
43938
|
-
title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
|
|
43939
|
-
value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense39 = License.tradeLicenseDetail) === null || _License$tradeLicense39 === void 0 ? void 0 : (_License$tradeLicense40 = _License$tradeLicense39.owners) === null || _License$tradeLicense40 === void 0 ? void 0 : (_License$tradeLicense41 = _License$tradeLicense40[0]) === null || _License$tradeLicense41 === void 0 ? void 0 : _License$tradeLicense41.correspondenceAddress) || "NA"
|
|
43940
|
-
}]
|
|
43941
|
-
}, {
|
|
43942
|
-
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
43943
|
-
asSectionHeader: true,
|
|
43944
|
-
additionalDetails: {
|
|
43945
|
-
documents: [{
|
|
43946
|
-
title: "",
|
|
43947
|
-
values: License === null || License === void 0 ? void 0 : (_License$tradeLicense42 = License.tradeLicenseDetail) === null || _License$tradeLicense42 === void 0 ? void 0 : (_License$tradeLicense43 = _License$tradeLicense42.applicationDocuments) === null || _License$tradeLicense43 === void 0 ? void 0 : _License$tradeLicense43.map(function (doc) {
|
|
43948
|
-
var _doc$documentType;
|
|
45119
|
+
var appDocumentFileStoreIds = License === null || License === void 0 ? void 0 : (_License$tradeLicense44 = License.tradeLicenseDetail) === null || _License$tradeLicense44 === void 0 ? void 0 : (_License$tradeLicense45 = _License$tradeLicense44.applicationDocuments) === null || _License$tradeLicense45 === void 0 ? void 0 : _License$tradeLicense45.map(function (appDoc) {
|
|
45120
|
+
return appDoc === null || appDoc === void 0 ? void 0 : appDoc.fileStoreId;
|
|
45121
|
+
});
|
|
45122
|
+
var fileDetails = {};
|
|
43949
45123
|
|
|
43950
|
-
|
|
43951
|
-
|
|
43952
|
-
|
|
43953
|
-
|
|
43954
|
-
|
|
43955
|
-
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
43956
|
-
docInfo: doc === null || doc === void 0 ? void 0 : doc.info
|
|
43957
|
-
};
|
|
43958
|
-
})
|
|
43959
|
-
}]
|
|
45124
|
+
var _temp = function () {
|
|
45125
|
+
if ((appDocumentFileStoreIds === null || appDocumentFileStoreIds === void 0 ? void 0 : appDocumentFileStoreIds.length) > 0) {
|
|
45126
|
+
return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (_UploadServices$Filef) {
|
|
45127
|
+
fileDetails = _UploadServices$Filef;
|
|
45128
|
+
});
|
|
43960
45129
|
}
|
|
43961
|
-
}
|
|
43962
|
-
|
|
43963
|
-
|
|
43964
|
-
inspectionReport: [],
|
|
43965
|
-
values: [{
|
|
43966
|
-
title: "BPAREG_FEES",
|
|
43967
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments2 = paymentRes.Payments) === null || _paymentRes$Payments2 === void 0 ? void 0 : (_paymentRes$Payments3 = _paymentRes$Payments2[0]) === null || _paymentRes$Payments3 === void 0 ? void 0 : _paymentRes$Payments3.totalAmountPaid)
|
|
43968
|
-
}, (_ref = {
|
|
43969
|
-
title: "BPA_STATUS_LABEL",
|
|
43970
|
-
isTransLate: true,
|
|
43971
|
-
isStatus: true,
|
|
43972
|
-
value: paymentRes !== null && paymentRes !== void 0 && (_paymentRes$Payments4 = paymentRes.Payments) !== null && _paymentRes$Payments4 !== void 0 && (_paymentRes$Payments5 = _paymentRes$Payments4[0]) !== null && _paymentRes$Payments5 !== void 0 && _paymentRes$Payments5.totalAmountPaid ? "WF_BPA_PAID" : "NA"
|
|
43973
|
-
}, _ref["isTransLate"] = true, _ref)]
|
|
43974
|
-
}
|
|
43975
|
-
}];
|
|
43976
|
-
return {
|
|
43977
|
-
applicationData: License,
|
|
43978
|
-
applicationDetails: details,
|
|
43979
|
-
tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
|
|
43980
|
-
payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
|
|
43981
|
-
};
|
|
45130
|
+
}();
|
|
45131
|
+
|
|
45132
|
+
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
43982
45133
|
});
|
|
43983
45134
|
});
|
|
43984
45135
|
});
|
|
@@ -43989,16 +45140,28 @@ var OBPSService = {
|
|
|
43989
45140
|
BPADetailsPage: function (tenantId, filters) {
|
|
43990
45141
|
try {
|
|
43991
45142
|
return Promise.resolve(OBPSService.BPASearch(tenantId, filters)).then(function (response) {
|
|
43992
|
-
var _response$BPA, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA3, _response$
|
|
45143
|
+
var _response$BPA, _response$BPA$, _response$BPA$$docume, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA2$$addit2, _response$BPA3, _response$BPA4, _response$BPA4$, _response$BPA4$$addit, _response$BPA5, _response$BPA5$, _response$BPA5$$addit;
|
|
45144
|
+
|
|
45145
|
+
var appDocumentFileStoreIds = response === null || response === void 0 ? void 0 : (_response$BPA = response.BPA) === null || _response$BPA === void 0 ? void 0 : (_response$BPA$ = _response$BPA[0]) === null || _response$BPA$ === void 0 ? void 0 : (_response$BPA$$docume = _response$BPA$.documents) === null || _response$BPA$$docume === void 0 ? void 0 : _response$BPA$$docume.map(function (docId) {
|
|
45146
|
+
return docId.fileStoreId;
|
|
45147
|
+
});
|
|
45148
|
+
if (!appDocumentFileStoreIds) appDocumentFileStoreIds = [];
|
|
45149
|
+
response === null || response === void 0 ? void 0 : (_response$BPA2 = response.BPA) === null || _response$BPA2 === void 0 ? void 0 : (_response$BPA2$ = _response$BPA2[0]) === null || _response$BPA2$ === void 0 ? void 0 : (_response$BPA2$$addit = _response$BPA2$.additionalDetails) === null || _response$BPA2$$addit === void 0 ? void 0 : (_response$BPA2$$addit2 = _response$BPA2$$addit.fieldinspection_pending) === null || _response$BPA2$$addit2 === void 0 ? void 0 : _response$BPA2$$addit2.map(function (fiData) {
|
|
45150
|
+
var _fiData$docs;
|
|
43993
45151
|
|
|
43994
|
-
|
|
45152
|
+
fiData === null || fiData === void 0 ? void 0 : (_fiData$docs = fiData.docs) === null || _fiData$docs === void 0 ? void 0 : _fiData$docs.map(function (fiDoc) {
|
|
45153
|
+
if (fiDoc !== null && fiDoc !== void 0 && fiDoc.fileStoreId) appDocumentFileStoreIds.push(fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId);
|
|
45154
|
+
});
|
|
45155
|
+
});
|
|
45156
|
+
|
|
45157
|
+
if (!(response !== null && response !== void 0 && (_response$BPA3 = response.BPA) !== null && _response$BPA3 !== void 0 && _response$BPA3.length)) {
|
|
43995
45158
|
return;
|
|
43996
45159
|
}
|
|
43997
45160
|
|
|
43998
|
-
sessionStorage.setItem("BPA_ARCHITECT_NAME", JSON.stringify(response !== null && response !== void 0 && (_response$
|
|
45161
|
+
sessionStorage.setItem("BPA_ARCHITECT_NAME", JSON.stringify(response !== null && response !== void 0 && (_response$BPA4 = response.BPA) !== null && _response$BPA4 !== void 0 && (_response$BPA4$ = _response$BPA4[0]) !== null && _response$BPA4$ !== void 0 && (_response$BPA4$$addit = _response$BPA4$.additionalDetails) !== null && _response$BPA4$$addit !== void 0 && _response$BPA4$$addit.typeOfArchitect ? response === null || response === void 0 ? void 0 : (_response$BPA5 = response.BPA) === null || _response$BPA5 === void 0 ? void 0 : (_response$BPA5$ = _response$BPA5[0]) === null || _response$BPA5$ === void 0 ? void 0 : (_response$BPA5$$addit = _response$BPA5$.additionalDetails) === null || _response$BPA5$$addit === void 0 ? void 0 : _response$BPA5$$addit.typeOfArchitect : "ARCHITECT"));
|
|
43999
45162
|
|
|
44000
|
-
var _response$
|
|
44001
|
-
BPA = _response$
|
|
45163
|
+
var _response$BPA6 = response === null || response === void 0 ? void 0 : response.BPA,
|
|
45164
|
+
BPA = _response$BPA6[0];
|
|
44002
45165
|
|
|
44003
45166
|
return Promise.resolve(OBPSService.scrutinyDetails(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, {
|
|
44004
45167
|
edcrNumber: BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber
|
|
@@ -44025,491 +45188,642 @@ var OBPSService = {
|
|
|
44025
45188
|
ocdcrNumber: BPA !== null && BPA !== void 0 && BPA.edcrNumber.includes("OCDCR") ? BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber : bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA = bpaResponse.BPA) === null || _bpaResponse$BPA === void 0 ? void 0 : (_bpaResponse$BPA$ = _bpaResponse$BPA[0]) === null || _bpaResponse$BPA$ === void 0 ? void 0 : _bpaResponse$BPA$.edcrNumber,
|
|
44026
45189
|
edcrNumber: bpaResponse !== null && bpaResponse !== void 0 && (_bpaResponse$BPA2 = bpaResponse.BPA) !== null && _bpaResponse$BPA2 !== void 0 && (_bpaResponse$BPA2$ = _bpaResponse$BPA2[0]) !== null && _bpaResponse$BPA2$ !== void 0 && _bpaResponse$BPA2$.edcrNumber.includes("OCDCR") ? BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber : bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA3 = bpaResponse.BPA) === null || _bpaResponse$BPA3 === void 0 ? void 0 : (_bpaResponse$BPA3$ = _bpaResponse$BPA3[0]) === null || _bpaResponse$BPA3$ === void 0 ? void 0 : _bpaResponse$BPA3$.edcrNumber
|
|
44027
45190
|
};
|
|
45191
|
+
return Promise.resolve(OBPSService.comparisionReport(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, _extends({}, comparisionRep))).then(function (comparisionReport) {
|
|
45192
|
+
function _temp8() {
|
|
45193
|
+
function _temp6() {
|
|
45194
|
+
function _temp4() {
|
|
45195
|
+
var _fetchBillRes, _fetchBillRes$Bill, _BPA$additionalDetail, _BPA$additionalDetail2, _BPA$additionalDetail3, _BPA$additionalDetail4, _BPA$additionalDetail5, _BPA$additionalDetail6, _BPA$additionalDetail7, _permitcondn, _permitcondn2, _BPA$auditDetails, _BPA$auditDetails2, _edcr$planDetail3, _edcr$planDetail3$pla, _edcr$planDetail4, _edcr$planDetail4$pla, _edcr$planDetail5, _edcr$planDetail5$pla, _edcr$planDetail6, _edcr$planDetail6$pla, _edcr$planDetail7, _edcr$planDetail7$pla, _BPA$additionalDetail11, _BPA$additionalDetail12, _edcr$planDetail8, _edcr$planDetail8$blo, _edcr$planDetail8$blo2, _edcr$planDetail8$blo3, _edcr$planDetail9, _edcr$planDetail9$blo, _edcr$planDetail9$blo2, _edcr$planDetail9$blo3, _edcr$planDetail10, _edcr$planDetail10$bl, _edcr$planDetail10$bl2, _edcr$planDetail10$bl3, _edcr$planDetail11, _edcr$planDetail11$pl, _BPA$landInfo, _BPA$landInfo$address, _BPA$landInfo2, _BPA$landInfo2$addres, _BPA$landInfo3, _BPA$landInfo3$addres, _BPA$landInfo3$addres2, _BPA$landInfo4, _BPA$landInfo4$addres, _BPA$landInfo5, _BPA$landInfo5$addres, _BPA$landInfo6, _BPA$landInfo6$owners, _BPA$landInfo7, _BPA$landInfo7$owners, _BPA$landInfo9, _BPA$landInfo9$owners, _BPA$documents, _BPA$additionalDetail13, _BPA$additionalDetail14, _BPA$additionalDetail15, _BPA$additionalDetail16, _BPA$additionalDetail17, _BPA$additionalDetail18, _BPA$additionalDetail19, _billDetails$addition, _billDetails$addition2, _details;
|
|
45196
|
+
|
|
45197
|
+
if ((collectionBillRes === null || collectionBillRes === void 0 ? void 0 : collectionBillRes.length) > 0) {
|
|
45198
|
+
collectionBillRes === null || collectionBillRes === void 0 ? void 0 : collectionBillRes.map(function (ob) {
|
|
45199
|
+
var _ob$paymentDetails, _ob$paymentDetails$, _ob$paymentDetails$$b, _ob$paymentDetails$$b2, _ob$paymentDetails$$b3;
|
|
45200
|
+
|
|
45201
|
+
ob === null || ob === void 0 ? void 0 : (_ob$paymentDetails = ob.paymentDetails) === null || _ob$paymentDetails === void 0 ? void 0 : (_ob$paymentDetails$ = _ob$paymentDetails[0]) === null || _ob$paymentDetails$ === void 0 ? void 0 : (_ob$paymentDetails$$b = _ob$paymentDetails$.bill) === null || _ob$paymentDetails$$b === void 0 ? void 0 : (_ob$paymentDetails$$b2 = _ob$paymentDetails$$b.billDetails) === null || _ob$paymentDetails$$b2 === void 0 ? void 0 : (_ob$paymentDetails$$b3 = _ob$paymentDetails$$b2[0]) === null || _ob$paymentDetails$$b3 === void 0 ? void 0 : _ob$paymentDetails$$b3.billAccountDetails.map(function (bill, index) {
|
|
45202
|
+
collectionBillArray.push({
|
|
45203
|
+
title: (bill === null || bill === void 0 ? void 0 : bill.taxHeadCode) + "_DETAILS",
|
|
45204
|
+
value: "",
|
|
45205
|
+
isSubTitle: true
|
|
45206
|
+
}, {
|
|
45207
|
+
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
45208
|
+
value: "\u20B9" + (bill === null || bill === void 0 ? void 0 : bill.amount)
|
|
45209
|
+
}, {
|
|
45210
|
+
title: "BPA_STATUS_LABEL",
|
|
45211
|
+
value: "Paid"
|
|
45212
|
+
});
|
|
45213
|
+
totalAmount = totalAmount + parseInt(bill === null || bill === void 0 ? void 0 : bill.amount);
|
|
45214
|
+
});
|
|
45215
|
+
});
|
|
45216
|
+
}
|
|
44028
45217
|
|
|
44029
|
-
|
|
44030
|
-
|
|
44031
|
-
return "NA";
|
|
44032
|
-
}
|
|
45218
|
+
if (((_fetchBillRes = fetchBillRes) === null || _fetchBillRes === void 0 ? void 0 : (_fetchBillRes$Bill = _fetchBillRes.Bill) === null || _fetchBillRes$Bill === void 0 ? void 0 : _fetchBillRes$Bill.length) > 0) {
|
|
45219
|
+
var _fetchBillRes2, _fetchBillRes2$Bill, _fetchBillRes2$Bill$, _fetchBillRes2$Bill$$, _fetchBillRes2$Bill$$2, _fetchBillRes2$Bill$$3, _fetchBillRes2$Bill$$4, _fetchBillRes3, _fetchBillRes3$Bill, _fetchBillRes3$Bill$;
|
|
44033
45220
|
|
|
44034
|
-
|
|
44035
|
-
|
|
44036
|
-
|
|
44037
|
-
|
|
44038
|
-
|
|
44039
|
-
|
|
44040
|
-
|
|
44041
|
-
|
|
45221
|
+
collectionBillArray.push({
|
|
45222
|
+
title: ((_fetchBillRes2 = fetchBillRes) === null || _fetchBillRes2 === void 0 ? void 0 : (_fetchBillRes2$Bill = _fetchBillRes2.Bill) === null || _fetchBillRes2$Bill === void 0 ? void 0 : (_fetchBillRes2$Bill$ = _fetchBillRes2$Bill[0]) === null || _fetchBillRes2$Bill$ === void 0 ? void 0 : (_fetchBillRes2$Bill$$ = _fetchBillRes2$Bill$.billDetails) === null || _fetchBillRes2$Bill$$ === void 0 ? void 0 : (_fetchBillRes2$Bill$$2 = _fetchBillRes2$Bill$$[0]) === null || _fetchBillRes2$Bill$$2 === void 0 ? void 0 : (_fetchBillRes2$Bill$$3 = _fetchBillRes2$Bill$$2.billAccountDetails) === null || _fetchBillRes2$Bill$$3 === void 0 ? void 0 : (_fetchBillRes2$Bill$$4 = _fetchBillRes2$Bill$$3[0]) === null || _fetchBillRes2$Bill$$4 === void 0 ? void 0 : _fetchBillRes2$Bill$$4.taxHeadCode) + "_DETAILS" || "BPA_SANC_FEE_DETAILS",
|
|
45223
|
+
value: "",
|
|
45224
|
+
isSubTitle: true
|
|
45225
|
+
}, {
|
|
45226
|
+
title: "BPA_SANC_FEE_LABEL",
|
|
45227
|
+
value: "\u20B9" + ((_fetchBillRes3 = fetchBillRes) === null || _fetchBillRes3 === void 0 ? void 0 : (_fetchBillRes3$Bill = _fetchBillRes3.Bill) === null || _fetchBillRes3$Bill === void 0 ? void 0 : (_fetchBillRes3$Bill$ = _fetchBillRes3$Bill[0]) === null || _fetchBillRes3$Bill$ === void 0 ? void 0 : _fetchBillRes3$Bill$.totalAmount)
|
|
45228
|
+
}, {
|
|
45229
|
+
title: "BPA_STATUS_LABEL",
|
|
45230
|
+
value: "Unpaid"
|
|
45231
|
+
});
|
|
45232
|
+
}
|
|
44042
45233
|
|
|
44043
|
-
|
|
44044
|
-
|
|
45234
|
+
totalAmount > 0 && collectionBillArray.push({
|
|
45235
|
+
title: "BPA_TOT_AMT_PAID",
|
|
45236
|
+
value: "\u20B9" + totalAmount
|
|
45237
|
+
});
|
|
45238
|
+
var billDetails = {
|
|
45239
|
+
title: "BPA_FEE_DETAILS_LABEL",
|
|
45240
|
+
isFeeDetails: true,
|
|
45241
|
+
additionalDetails: {
|
|
45242
|
+
inspectionReport: [],
|
|
45243
|
+
values: [].concat(collectionBillArray)
|
|
45244
|
+
}
|
|
45245
|
+
};
|
|
44045
45246
|
|
|
44046
|
-
|
|
44047
|
-
|
|
45247
|
+
function ConvertEpochToValidityDate(dateEpoch) {
|
|
45248
|
+
if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
|
|
45249
|
+
return "NA";
|
|
45250
|
+
}
|
|
45251
|
+
|
|
45252
|
+
var dateFromApi = new Date(dateEpoch);
|
|
45253
|
+
var month = dateFromApi.getMonth() + 1;
|
|
45254
|
+
var day = dateFromApi.getDate();
|
|
45255
|
+
var year = dateFromApi.getFullYear() - 3;
|
|
45256
|
+
month = (month > 9 ? "" : "0") + month;
|
|
45257
|
+
day = (day > 9 ? "" : "0") + day;
|
|
45258
|
+
return day + "/" + month + "/" + year;
|
|
45259
|
+
}
|
|
44048
45260
|
|
|
44049
|
-
|
|
44050
|
-
|
|
44051
|
-
values: [{
|
|
44052
|
-
title: "BPA_" + (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocType) + "_LABEL",
|
|
44053
|
-
value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationNo,
|
|
44054
|
-
isNotTranslated: true
|
|
44055
|
-
}, {
|
|
44056
|
-
title: "BPA_NOC_STATUS",
|
|
44057
|
-
value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus,
|
|
44058
|
-
field: "STATUS"
|
|
44059
|
-
}, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
|
|
44060
|
-
title: "BPA_SUDMITTED_ON_LABEL",
|
|
44061
|
-
value: nocDetails !== null && nocDetails !== void 0 && (_nocDetails$additiona2 = nocDetails.additionalDetails) !== null && _nocDetails$additiona2 !== void 0 && _nocDetails$additiona2.SubmittedOn ? dateFns.format(new Date(Number(nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona3 = nocDetails.additionalDetails) === null || _nocDetails$additiona3 === void 0 ? void 0 : _nocDetails$additiona3.SubmittedOn)), 'dd/MM/yyyy') : "NA",
|
|
44062
|
-
isNotTranslated: true
|
|
44063
|
-
}, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
|
|
44064
|
-
title: "BPA_APPROVAL_NUMBER_LABEL",
|
|
44065
|
-
value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) || "NA",
|
|
44066
|
-
isNotTranslated: true
|
|
44067
|
-
}, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
|
|
44068
|
-
title: "BPA_APPROVED_REJECTED_ON_LABEL",
|
|
44069
|
-
value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "APPROVED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "REJECTED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "AUTO_APPROVED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "AUTO_REJECTED" ? dateFns.format(new Date(Number(nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$auditDeta = nocDetails.auditDetails) === null || _nocDetails$auditDeta === void 0 ? void 0 : _nocDetails$auditDeta.lastModifiedTime)), 'dd/MM/yyyy') : "NA",
|
|
44070
|
-
isNotTranslated: true
|
|
44071
|
-
}],
|
|
44072
|
-
additionalDetails: {
|
|
44073
|
-
data: nocDetails,
|
|
44074
|
-
noc: [{
|
|
44075
|
-
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
44076
|
-
values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (doc) {
|
|
44077
|
-
var _doc$documentType2;
|
|
44078
|
-
|
|
44079
|
-
return {
|
|
44080
|
-
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
|
|
44081
|
-
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
44082
|
-
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
44083
|
-
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
44084
|
-
id: doc === null || doc === void 0 ? void 0 : doc.id
|
|
44085
|
-
};
|
|
44086
|
-
})
|
|
44087
|
-
}]
|
|
44088
|
-
}
|
|
44089
|
-
};
|
|
44090
|
-
});
|
|
44091
|
-
var inspectionReport = [];
|
|
44092
|
-
var checklist = [];
|
|
44093
|
-
BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail = BPA.additionalDetails) === null || _BPA$additionalDetail === void 0 ? void 0 : (_BPA$additionalDetail2 = _BPA$additionalDetail.fieldinspection_pending) === null || _BPA$additionalDetail2 === void 0 ? void 0 : _BPA$additionalDetail2.filter(function (ob) {
|
|
44094
|
-
return ob.docs && ob.docs.length > 0;
|
|
44095
|
-
}).map(function (ob, ind) {
|
|
44096
|
-
var _ob$date, _ob$date2, _ob$date3, _ob$questions, _ob$docs;
|
|
44097
|
-
|
|
44098
|
-
checklist = [];
|
|
44099
|
-
inspectionReport.push({
|
|
44100
|
-
title: "BPA_FI_REPORT",
|
|
44101
|
-
asSectionHeader: true,
|
|
44102
|
-
values: [{
|
|
44103
|
-
title: "BPA_FI_DATE_LABEL",
|
|
44104
|
-
value: ob.date.includes("-") ? ((_ob$date = ob.date) === null || _ob$date === void 0 ? void 0 : _ob$date.split("-")[2]) + "/" + ((_ob$date2 = ob.date) === null || _ob$date2 === void 0 ? void 0 : _ob$date2.split("-")[1]) + "/" + ((_ob$date3 = ob.date) === null || _ob$date3 === void 0 ? void 0 : _ob$date3.split("-")[0]) : ob.date
|
|
44105
|
-
}, {
|
|
44106
|
-
title: "BPA_FI_TIME_LABEL",
|
|
44107
|
-
value: ob.time
|
|
44108
|
-
}]
|
|
44109
|
-
});
|
|
44110
|
-
ob === null || ob === void 0 ? void 0 : (_ob$questions = ob.questions) === null || _ob$questions === void 0 ? void 0 : _ob$questions.map(function (q, index) {
|
|
44111
|
-
checklist.push({
|
|
44112
|
-
title: q.question,
|
|
44113
|
-
value: q.value
|
|
44114
|
-
});
|
|
44115
|
-
checklist.push({
|
|
44116
|
-
title: "BPA_ENTER_REMARKS",
|
|
44117
|
-
value: q.remarks
|
|
44118
|
-
});
|
|
44119
|
-
});
|
|
44120
|
-
inspectionReport.push({
|
|
44121
|
-
title: "BPA_CHECK_LIST_DETAILS",
|
|
44122
|
-
asSectionHeader: true,
|
|
44123
|
-
values: checklist
|
|
44124
|
-
});
|
|
44125
|
-
inspectionReport.push({
|
|
44126
|
-
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
44127
|
-
asSectionHeader: true,
|
|
44128
|
-
additionalDetails: {
|
|
44129
|
-
obpsDocuments: [{
|
|
44130
|
-
title: "",
|
|
44131
|
-
values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
|
|
44132
|
-
var _doc$documentType3;
|
|
44133
|
-
|
|
44134
|
-
return {
|
|
44135
|
-
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
|
|
44136
|
-
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
44137
|
-
documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
|
|
44138
|
-
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
44139
|
-
id: doc === null || doc === void 0 ? void 0 : doc.id
|
|
44140
|
-
};
|
|
44141
|
-
})
|
|
44142
|
-
}]
|
|
44143
|
-
}
|
|
44144
|
-
});
|
|
44145
|
-
});
|
|
44146
|
-
var details = [];
|
|
44147
|
-
var applicationDetailsInfo = {
|
|
44148
|
-
title: " ",
|
|
44149
|
-
isCommon: true,
|
|
44150
|
-
values: [{
|
|
44151
|
-
title: "BPA_APPLICATION_NUMBER_LABEL",
|
|
44152
|
-
value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
|
|
44153
|
-
}]
|
|
44154
|
-
};
|
|
45261
|
+
BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail = BPA.additionalDetails) === null || _BPA$additionalDetail === void 0 ? void 0 : (_BPA$additionalDetail2 = _BPA$additionalDetail.fieldinspection_pending) === null || _BPA$additionalDetail2 === void 0 ? void 0 : _BPA$additionalDetail2.forEach(function (fiData) {
|
|
45262
|
+
var _fiData$docs2;
|
|
44155
45263
|
|
|
44156
|
-
|
|
44157
|
-
|
|
45264
|
+
fiData === null || fiData === void 0 ? void 0 : (_fiData$docs2 = fiData.docs) === null || _fiData$docs2 === void 0 ? void 0 : _fiData$docs2.forEach(function (fiDoc) {
|
|
45265
|
+
var _fileDetails3, _fileDetails4, _fileDetails4$data$fi;
|
|
44158
45266
|
|
|
44159
|
-
|
|
44160
|
-
|
|
44161
|
-
|
|
44162
|
-
|
|
44163
|
-
|
|
44164
|
-
}]);
|
|
44165
|
-
}
|
|
45267
|
+
if ((_fileDetails3 = fileDetails) !== null && _fileDetails3 !== void 0 && _fileDetails3.data[fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId]) fiDoc.url = (_fileDetails4 = fileDetails) === null || _fileDetails4 === void 0 ? void 0 : (_fileDetails4$data$fi = _fileDetails4.data[fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId]) === null || _fileDetails4$data$fi === void 0 ? void 0 : _fileDetails4$data$fi.split(',')[0];
|
|
45268
|
+
});
|
|
45269
|
+
});
|
|
45270
|
+
var nocDetails = noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails, index) {
|
|
45271
|
+
var _nocDetails$additiona, _nocDetails$additiona2, _nocDetails$additiona3, _nocDetails$auditDeta, _nocDetails$documents;
|
|
44166
45272
|
|
|
44167
|
-
|
|
44168
|
-
|
|
44169
|
-
|
|
44170
|
-
|
|
44171
|
-
|
|
44172
|
-
|
|
44173
|
-
|
|
44174
|
-
|
|
44175
|
-
|
|
44176
|
-
|
|
44177
|
-
|
|
44178
|
-
|
|
44179
|
-
|
|
44180
|
-
|
|
44181
|
-
|
|
44182
|
-
|
|
44183
|
-
|
|
45273
|
+
return {
|
|
45274
|
+
title: index === 0 ? "BPA_NOC_DETAILS_SUMMARY" : "",
|
|
45275
|
+
values: [{
|
|
45276
|
+
title: "BPA_" + (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocType) + "_LABEL",
|
|
45277
|
+
value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationNo,
|
|
45278
|
+
isNotTranslated: true
|
|
45279
|
+
}, {
|
|
45280
|
+
title: "BPA_NOC_STATUS",
|
|
45281
|
+
value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus,
|
|
45282
|
+
field: "STATUS"
|
|
45283
|
+
}, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
|
|
45284
|
+
title: "BPA_SUDMITTED_ON_LABEL",
|
|
45285
|
+
value: nocDetails !== null && nocDetails !== void 0 && (_nocDetails$additiona2 = nocDetails.additionalDetails) !== null && _nocDetails$additiona2 !== void 0 && _nocDetails$additiona2.SubmittedOn ? dateFns.format(new Date(Number(nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona3 = nocDetails.additionalDetails) === null || _nocDetails$additiona3 === void 0 ? void 0 : _nocDetails$additiona3.SubmittedOn)), 'dd/MM/yyyy') : "NA",
|
|
45286
|
+
isNotTranslated: true
|
|
45287
|
+
}, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
|
|
45288
|
+
title: "BPA_APPROVAL_NUMBER_LABEL",
|
|
45289
|
+
value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) || "NA",
|
|
45290
|
+
isNotTranslated: true
|
|
45291
|
+
}, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
|
|
45292
|
+
title: "BPA_APPROVED_REJECTED_ON_LABEL",
|
|
45293
|
+
value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "APPROVED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "REJECTED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "AUTO_APPROVED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "AUTO_REJECTED" ? dateFns.format(new Date(Number(nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$auditDeta = nocDetails.auditDetails) === null || _nocDetails$auditDeta === void 0 ? void 0 : _nocDetails$auditDeta.lastModifiedTime)), 'dd/MM/yyyy') : "NA",
|
|
45294
|
+
isNotTranslated: true
|
|
45295
|
+
}],
|
|
45296
|
+
additionalDetails: {
|
|
45297
|
+
data: nocDetails,
|
|
45298
|
+
noc: [{
|
|
45299
|
+
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
45300
|
+
values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (doc) {
|
|
45301
|
+
var _doc$documentType2, _fileDetails5, _fileDetails5$data, _fileDetails6, _fileDetails6$data, _fileDetails6$data$do;
|
|
45302
|
+
|
|
45303
|
+
return {
|
|
45304
|
+
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
|
|
45305
|
+
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
45306
|
+
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
45307
|
+
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
45308
|
+
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
45309
|
+
url: (_fileDetails5 = fileDetails) !== null && _fileDetails5 !== void 0 && (_fileDetails5$data = _fileDetails5.data) !== null && _fileDetails5$data !== void 0 && _fileDetails5$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails6 = fileDetails) === null || _fileDetails6 === void 0 ? void 0 : (_fileDetails6$data = _fileDetails6.data) === null || _fileDetails6$data === void 0 ? void 0 : (_fileDetails6$data$do = _fileDetails6$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails6$data$do === void 0 ? void 0 : _fileDetails6$data$do.split(',')[0] : ""
|
|
45310
|
+
};
|
|
45311
|
+
})
|
|
45312
|
+
}]
|
|
45313
|
+
}
|
|
45314
|
+
};
|
|
45315
|
+
});
|
|
45316
|
+
var inspectionReport = [];
|
|
45317
|
+
var checklist = [];
|
|
45318
|
+
BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail3 = BPA.additionalDetails) === null || _BPA$additionalDetail3 === void 0 ? void 0 : (_BPA$additionalDetail4 = _BPA$additionalDetail3.fieldinspection_pending) === null || _BPA$additionalDetail4 === void 0 ? void 0 : _BPA$additionalDetail4.filter(function (ob) {
|
|
45319
|
+
return ob.docs && ob.docs.length > 0;
|
|
45320
|
+
}).map(function (ob, ind) {
|
|
45321
|
+
var _ob$date, _ob$date2, _ob$date3, _ob$questions, _ob$docs;
|
|
45322
|
+
|
|
45323
|
+
checklist = [];
|
|
45324
|
+
inspectionReport.push({
|
|
45325
|
+
title: "BPA_FI_REPORT",
|
|
45326
|
+
asSectionHeader: true,
|
|
45327
|
+
values: [{
|
|
45328
|
+
title: "BPA_FI_DATE_LABEL",
|
|
45329
|
+
value: ob.date.includes("-") ? ((_ob$date = ob.date) === null || _ob$date === void 0 ? void 0 : _ob$date.split("-")[2]) + "/" + ((_ob$date2 = ob.date) === null || _ob$date2 === void 0 ? void 0 : _ob$date2.split("-")[1]) + "/" + ((_ob$date3 = ob.date) === null || _ob$date3 === void 0 ? void 0 : _ob$date3.split("-")[0]) : ob.date
|
|
45330
|
+
}, {
|
|
45331
|
+
title: "BPA_FI_TIME_LABEL",
|
|
45332
|
+
value: ob.time
|
|
45333
|
+
}]
|
|
45334
|
+
});
|
|
45335
|
+
ob === null || ob === void 0 ? void 0 : (_ob$questions = ob.questions) === null || _ob$questions === void 0 ? void 0 : _ob$questions.map(function (q, index) {
|
|
45336
|
+
checklist.push({
|
|
45337
|
+
title: q.question,
|
|
45338
|
+
value: q.value
|
|
45339
|
+
});
|
|
45340
|
+
checklist.push({
|
|
45341
|
+
title: "BPA_ENTER_REMARKS",
|
|
45342
|
+
value: q.remarks
|
|
45343
|
+
});
|
|
45344
|
+
});
|
|
45345
|
+
inspectionReport.push({
|
|
45346
|
+
title: "BPA_CHECK_LIST_DETAILS",
|
|
45347
|
+
asSectionHeader: true,
|
|
45348
|
+
values: checklist
|
|
45349
|
+
});
|
|
45350
|
+
inspectionReport.push({
|
|
45351
|
+
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
45352
|
+
asSectionHeader: true,
|
|
45353
|
+
additionalDetails: {
|
|
45354
|
+
obpsDocuments: [{
|
|
45355
|
+
title: "",
|
|
45356
|
+
values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
|
|
45357
|
+
var _doc$documentType3, _fileDetails7, _fileDetails7$data, _fileDetails8, _fileDetails8$data, _fileDetails8$data$do;
|
|
45358
|
+
|
|
45359
|
+
return {
|
|
45360
|
+
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
|
|
45361
|
+
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
45362
|
+
documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
|
|
45363
|
+
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
45364
|
+
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
45365
|
+
url: (_fileDetails7 = fileDetails) !== null && _fileDetails7 !== void 0 && (_fileDetails7$data = _fileDetails7.data) !== null && _fileDetails7$data !== void 0 && _fileDetails7$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails8 = fileDetails) === null || _fileDetails8 === void 0 ? void 0 : (_fileDetails8$data = _fileDetails8.data) === null || _fileDetails8$data === void 0 ? void 0 : (_fileDetails8$data$do = _fileDetails8$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails8$data$do === void 0 ? void 0 : _fileDetails8$data$do.split(',')[0] : ""
|
|
45366
|
+
};
|
|
45367
|
+
})
|
|
45368
|
+
}]
|
|
45369
|
+
}
|
|
45370
|
+
});
|
|
45371
|
+
});
|
|
45372
|
+
var details = [];
|
|
45373
|
+
var applicationDetailsInfo = {
|
|
45374
|
+
title: " ",
|
|
45375
|
+
isCommon: true,
|
|
45376
|
+
values: [{
|
|
45377
|
+
title: "BPA_APPLICATION_NUMBER_LABEL",
|
|
45378
|
+
value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
|
|
45379
|
+
}]
|
|
45380
|
+
};
|
|
44184
45381
|
|
|
44185
|
-
|
|
44186
|
-
|
|
44187
|
-
PermitConditions = {};
|
|
44188
|
-
}
|
|
45382
|
+
if (BPA !== null && BPA !== void 0 && BPA.businessService.includes("BPA_OC")) {
|
|
45383
|
+
var _bpaResponse$BPA4, _bpaResponse$BPA4$, _bpaResponse$BPA5, _bpaResponse$BPA5$;
|
|
44189
45384
|
|
|
44190
|
-
|
|
44191
|
-
|
|
45385
|
+
applicationDetailsInfo["values"] = [].concat(applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : applicationDetailsInfo.values, [{
|
|
45386
|
+
title: "BPA_PERMIT_APP_NUMBER",
|
|
45387
|
+
to: "/digit-ui/employee/obps/bpa/" + (bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA4 = bpaResponse.BPA) === null || _bpaResponse$BPA4 === void 0 ? void 0 : (_bpaResponse$BPA4$ = _bpaResponse$BPA4[0]) === null || _bpaResponse$BPA4$ === void 0 ? void 0 : _bpaResponse$BPA4$.applicationNo),
|
|
45388
|
+
value: bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA5 = bpaResponse.BPA) === null || _bpaResponse$BPA5 === void 0 ? void 0 : (_bpaResponse$BPA5$ = _bpaResponse$BPA5[0]) === null || _bpaResponse$BPA5$ === void 0 ? void 0 : _bpaResponse$BPA5$.applicationNo,
|
|
45389
|
+
isLink: true
|
|
45390
|
+
}]);
|
|
45391
|
+
}
|
|
44192
45392
|
|
|
44193
|
-
|
|
44194
|
-
|
|
44195
|
-
|
|
44196
|
-
|
|
44197
|
-
|
|
44198
|
-
|
|
44199
|
-
|
|
44200
|
-
|
|
44201
|
-
|
|
45393
|
+
var permitcondn = [];
|
|
45394
|
+
(BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail5 = BPA.additionalDetails) === null || _BPA$additionalDetail5 === void 0 ? void 0 : _BPA$additionalDetail5.pendingapproval) && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail6 = BPA.additionalDetails) === null || _BPA$additionalDetail6 === void 0 ? void 0 : _BPA$additionalDetail6.pendingapproval.length) > 0 && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail7 = BPA.additionalDetails) === null || _BPA$additionalDetail7 === void 0 ? void 0 : _BPA$additionalDetail7.pendingapproval.map(function (ob, index) {
|
|
45395
|
+
permitcondn.push({
|
|
45396
|
+
title: index + 1 + ". " + ob,
|
|
45397
|
+
value: ""
|
|
45398
|
+
});
|
|
45399
|
+
}));
|
|
45400
|
+
var PermitConditions = {
|
|
45401
|
+
title: "BPA_PERMIT_CONDITIONS",
|
|
45402
|
+
isTitleVisible: ((_permitcondn = permitcondn) === null || _permitcondn === void 0 ? void 0 : _permitcondn.length) > 0 ? false : true,
|
|
45403
|
+
isNotAllowed: ((_permitcondn2 = permitcondn) === null || _permitcondn2 === void 0 ? void 0 : _permitcondn2.length) > 0 ? false : true,
|
|
45404
|
+
additionalDetails: {
|
|
45405
|
+
inspectionReport: [],
|
|
45406
|
+
permit: [].concat(permitcondn)
|
|
45407
|
+
}
|
|
45408
|
+
};
|
|
45409
|
+
if (permitcondn.length == 0) PermitConditions = {};
|
|
44202
45410
|
|
|
44203
|
-
|
|
44204
|
-
|
|
44205
|
-
|
|
44206
|
-
|
|
44207
|
-
isCommon: true,
|
|
44208
|
-
values: [{
|
|
44209
|
-
title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
|
|
44210
|
-
value: BPA !== null && BPA !== void 0 && (_BPA$auditDetails = BPA.auditDetails) !== null && _BPA$auditDetails !== void 0 && _BPA$auditDetails.createdTime ? dateFns.format(new Date(BPA === null || BPA === void 0 ? void 0 : (_BPA$auditDetails2 = BPA.auditDetails) === null || _BPA$auditDetails2 === void 0 ? void 0 : _BPA$auditDetails2.createdTime), 'dd/MM/yyyy') : ''
|
|
44211
|
-
}, {
|
|
44212
|
-
title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
|
|
44213
|
-
value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
|
|
44214
|
-
}, {
|
|
44215
|
-
title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
|
|
44216
|
-
value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
|
|
44217
|
-
}, {
|
|
44218
|
-
title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
|
|
44219
|
-
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail3 = edcr.planDetail) === null || _edcr$planDetail3 === void 0 ? void 0 : (_edcr$planDetail3$pla = _edcr$planDetail3.planInformation) === null || _edcr$planDetail3$pla === void 0 ? void 0 : _edcr$planDetail3$pla.occupancy
|
|
44220
|
-
}, {
|
|
44221
|
-
title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
|
|
44222
|
-
value: "WF_BPA_" + riskType,
|
|
44223
|
-
isInsert: true
|
|
44224
|
-
}, {
|
|
44225
|
-
title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
|
|
44226
|
-
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail4 = edcr.planDetail) === null || _edcr$planDetail4 === void 0 ? void 0 : (_edcr$planDetail4$pla = _edcr$planDetail4.planInformation) === null || _edcr$planDetail4$pla === void 0 ? void 0 : _edcr$planDetail4$pla.applicantName
|
|
44227
|
-
}]
|
|
44228
|
-
};
|
|
44229
|
-
var plotDetails = {
|
|
44230
|
-
title: "BPA_PLOT_DETAILS_TITLE",
|
|
44231
|
-
asSectionHeader: true,
|
|
44232
|
-
isCommon: true,
|
|
44233
|
-
values: [{
|
|
44234
|
-
title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
|
|
44235
|
-
value: "" + (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail5 = edcr.planDetail) === null || _edcr$planDetail5 === void 0 ? void 0 : (_edcr$planDetail5$pla = _edcr$planDetail5.planInformation) === null || _edcr$planDetail5$pla === void 0 ? void 0 : _edcr$planDetail5$pla.plotArea),
|
|
44236
|
-
isNotTranslated: true,
|
|
44237
|
-
isUnit: "BPA_SQ_FT_LABEL"
|
|
44238
|
-
}, {
|
|
44239
|
-
title: "BPA_PLOT_NUMBER_LABEL",
|
|
44240
|
-
value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail6 = edcr.planDetail) === null || _edcr$planDetail6 === void 0 ? void 0 : (_edcr$planDetail6$pla = _edcr$planDetail6.planInformation) === null || _edcr$planDetail6$pla === void 0 ? void 0 : _edcr$planDetail6$pla.plotNo) || "NA",
|
|
44241
|
-
isNotTranslated: true
|
|
44242
|
-
}, {
|
|
44243
|
-
title: "BPA_KHATHA_NUMBER_LABEL",
|
|
44244
|
-
value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail7 = edcr.planDetail) === null || _edcr$planDetail7 === void 0 ? void 0 : (_edcr$planDetail7$pla = _edcr$planDetail7.planInformation) === null || _edcr$planDetail7$pla === void 0 ? void 0 : _edcr$planDetail7$pla.khataNo) || "NA",
|
|
44245
|
-
isNotTranslated: true
|
|
44246
|
-
}, {
|
|
44247
|
-
title: "BPA_HOLDING_NUMBER_LABEL",
|
|
44248
|
-
value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail9 = BPA.additionalDetails) === null || _BPA$additionalDetail9 === void 0 ? void 0 : _BPA$additionalDetail9.holdingNo) || "NA",
|
|
44249
|
-
isNotTranslated: true
|
|
44250
|
-
}, {
|
|
44251
|
-
title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
|
|
44252
|
-
value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail10 = BPA.additionalDetails) === null || _BPA$additionalDetail10 === void 0 ? void 0 : _BPA$additionalDetail10.registrationDetails) || "NA",
|
|
44253
|
-
isNotTranslated: true
|
|
44254
|
-
}]
|
|
44255
|
-
};
|
|
44256
|
-
var scrutinyDetails = {
|
|
44257
|
-
title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
|
|
44258
|
-
isScrutinyDetails: true,
|
|
44259
|
-
isBackGroundColor: true,
|
|
44260
|
-
additionalDetails: {
|
|
44261
|
-
values: [{
|
|
44262
|
-
title: "BPA_EDCR_DETAILS",
|
|
44263
|
-
value: " ",
|
|
44264
|
-
isHeader: true
|
|
44265
|
-
}, {
|
|
44266
|
-
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
|
|
44267
|
-
value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
|
|
44268
|
-
}],
|
|
44269
|
-
scruntinyDetails: [{
|
|
44270
|
-
title: "BPA_UPLOADED_PLAN_DIAGRAM",
|
|
44271
|
-
value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
|
|
44272
|
-
text: "BPA_UPLOADED_PLAN_DXF"
|
|
44273
|
-
}, {
|
|
44274
|
-
title: "BPA_SCRUNTINY_REPORT_OUTPUT",
|
|
44275
|
-
value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
|
|
44276
|
-
text: "BPA_SCRUTINY_REPORT_PDF"
|
|
44277
|
-
}]
|
|
44278
|
-
}
|
|
44279
|
-
};
|
|
44280
|
-
var buildingExtractionDetails = {
|
|
44281
|
-
title: "",
|
|
44282
|
-
isScrutinyDetails: true,
|
|
44283
|
-
isBackGroundColor: true,
|
|
44284
|
-
additionalDetails: {
|
|
44285
|
-
values: [{
|
|
44286
|
-
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
|
|
44287
|
-
value: " ",
|
|
44288
|
-
isHeader: true
|
|
44289
|
-
}, {
|
|
44290
|
-
title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
|
|
44291
|
-
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail8 = edcr.planDetail) === null || _edcr$planDetail8 === void 0 ? void 0 : (_edcr$planDetail8$blo = _edcr$planDetail8.blocks) === null || _edcr$planDetail8$blo === void 0 ? void 0 : (_edcr$planDetail8$blo2 = _edcr$planDetail8$blo[0]) === null || _edcr$planDetail8$blo2 === void 0 ? void 0 : (_edcr$planDetail8$blo3 = _edcr$planDetail8$blo2.building) === null || _edcr$planDetail8$blo3 === void 0 ? void 0 : _edcr$planDetail8$blo3.totalBuitUpArea,
|
|
44292
|
-
isUnit: "BPA_SQ_MTRS_LABEL"
|
|
44293
|
-
}, {
|
|
44294
|
-
title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
|
|
44295
|
-
value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail9 = edcr.planDetail) === null || _edcr$planDetail9 === void 0 ? void 0 : (_edcr$planDetail9$blo = _edcr$planDetail9.blocks) === null || _edcr$planDetail9$blo === void 0 ? void 0 : (_edcr$planDetail9$blo2 = _edcr$planDetail9$blo[0]) === null || _edcr$planDetail9$blo2 === void 0 ? void 0 : (_edcr$planDetail9$blo3 = _edcr$planDetail9$blo2.building) === null || _edcr$planDetail9$blo3 === void 0 ? void 0 : _edcr$planDetail9$blo3.totalFloors) || "NA"
|
|
44296
|
-
}, {
|
|
44297
|
-
title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
|
|
44298
|
-
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail10 = edcr.planDetail) === null || _edcr$planDetail10 === void 0 ? void 0 : (_edcr$planDetail10$bl = _edcr$planDetail10.blocks) === null || _edcr$planDetail10$bl === void 0 ? void 0 : (_edcr$planDetail10$bl2 = _edcr$planDetail10$bl[0]) === null || _edcr$planDetail10$bl2 === void 0 ? void 0 : (_edcr$planDetail10$bl3 = _edcr$planDetail10$bl2.building) === null || _edcr$planDetail10$bl3 === void 0 ? void 0 : _edcr$planDetail10$bl3.declaredBuildingHeigh,
|
|
44299
|
-
isUnit: "BPA_MTRS_LABEL"
|
|
44300
|
-
}],
|
|
44301
|
-
scruntinyDetails: []
|
|
44302
|
-
}
|
|
44303
|
-
};
|
|
44304
|
-
var demolitionAreaDetails = {
|
|
44305
|
-
title: "",
|
|
44306
|
-
isScrutinyDetails: true,
|
|
44307
|
-
isBackGroundColor: true,
|
|
44308
|
-
additionalDetails: {
|
|
44309
|
-
values: [{
|
|
44310
|
-
title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
|
|
44311
|
-
value: " ",
|
|
44312
|
-
isHeader: true
|
|
44313
|
-
}, {
|
|
44314
|
-
title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
|
|
44315
|
-
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail11 = edcr.planDetail) === null || _edcr$planDetail11 === void 0 ? void 0 : (_edcr$planDetail11$pl = _edcr$planDetail11.planInformation) === null || _edcr$planDetail11$pl === void 0 ? void 0 : _edcr$planDetail11$pl.demolitionArea,
|
|
44316
|
-
isUnit: "BPA_SQ_MTRS_LABEL"
|
|
44317
|
-
}],
|
|
44318
|
-
scruntinyDetails: []
|
|
44319
|
-
}
|
|
44320
|
-
};
|
|
44321
|
-
var subOccupancyTableDetails = {
|
|
44322
|
-
title: "",
|
|
44323
|
-
isSubOccupancyTable: true,
|
|
44324
|
-
isTitleRepeat: true,
|
|
44325
|
-
additionalDetails: {
|
|
44326
|
-
values: [{
|
|
44327
|
-
title: "BPA_OCC_SUBOCC_HEADER",
|
|
44328
|
-
value: " ",
|
|
44329
|
-
isHeader: true
|
|
44330
|
-
}],
|
|
44331
|
-
subOccupancyTableDetails: [{
|
|
44332
|
-
title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
|
|
44333
|
-
value: edcr
|
|
44334
|
-
}, {
|
|
44335
|
-
title: "NO_REPEAT",
|
|
44336
|
-
value: ""
|
|
44337
|
-
}]
|
|
44338
|
-
}
|
|
44339
|
-
};
|
|
44340
|
-
var addressDetails = {
|
|
44341
|
-
title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
|
|
44342
|
-
asSectionHeader: true,
|
|
44343
|
-
isCommon: true,
|
|
44344
|
-
values: [{
|
|
44345
|
-
title: "BPA_DETAILS_PIN_LABEL",
|
|
44346
|
-
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo = BPA.landInfo) === null || _BPA$landInfo === void 0 ? void 0 : (_BPA$landInfo$address = _BPA$landInfo.address) === null || _BPA$landInfo$address === void 0 ? void 0 : _BPA$landInfo$address.pincode
|
|
44347
|
-
}, {
|
|
44348
|
-
title: "BPA_CITY_LABEL",
|
|
44349
|
-
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo2 = BPA.landInfo) === null || _BPA$landInfo2 === void 0 ? void 0 : (_BPA$landInfo2$addres = _BPA$landInfo2.address) === null || _BPA$landInfo2$addres === void 0 ? void 0 : _BPA$landInfo2$addres.city
|
|
44350
|
-
}, {
|
|
44351
|
-
title: "BPA_LOC_MOHALLA_LABEL",
|
|
44352
|
-
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo3 = BPA.landInfo) === null || _BPA$landInfo3 === void 0 ? void 0 : (_BPA$landInfo3$addres = _BPA$landInfo3.address) === null || _BPA$landInfo3$addres === void 0 ? void 0 : (_BPA$landInfo3$addres2 = _BPA$landInfo3$addres.locality) === null || _BPA$landInfo3$addres2 === void 0 ? void 0 : _BPA$landInfo3$addres2.name
|
|
44353
|
-
}, {
|
|
44354
|
-
title: "BPA_DETAILS_SRT_NAME_LABEL",
|
|
44355
|
-
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo4 = BPA.landInfo) === null || _BPA$landInfo4 === void 0 ? void 0 : (_BPA$landInfo4$addres = _BPA$landInfo4.address) === null || _BPA$landInfo4$addres === void 0 ? void 0 : _BPA$landInfo4$addres.street
|
|
44356
|
-
}, {
|
|
44357
|
-
title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
|
|
44358
|
-
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo5 = BPA.landInfo) === null || _BPA$landInfo5 === void 0 ? void 0 : (_BPA$landInfo5$addres = _BPA$landInfo5.address) === null || _BPA$landInfo5$addres === void 0 ? void 0 : _BPA$landInfo5$addres.landmark
|
|
44359
|
-
}]
|
|
44360
|
-
};
|
|
44361
|
-
var checkOwnerLength = (BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo6 = BPA.landInfo) === null || _BPA$landInfo6 === void 0 ? void 0 : (_BPA$landInfo6$owners = _BPA$landInfo6.owners) === null || _BPA$landInfo6$owners === void 0 ? void 0 : _BPA$landInfo6$owners.length) || 1;
|
|
45411
|
+
if (riskType == "LOW" && permitcondn.length > 0) {
|
|
45412
|
+
permitcondn = [];
|
|
45413
|
+
PermitConditions = {};
|
|
45414
|
+
}
|
|
44362
45415
|
|
|
44363
|
-
|
|
44364
|
-
|
|
45416
|
+
if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
|
|
45417
|
+
var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail8, _BPA$additionalDetail9, _BPA$additionalDetail10;
|
|
44365
45418
|
|
|
44366
|
-
|
|
44367
|
-
|
|
44368
|
-
|
|
44369
|
-
|
|
45419
|
+
applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn = applicationDetailsInfo.values) === null || _applicationDetailsIn === void 0 ? void 0 : _applicationDetailsIn.push({
|
|
45420
|
+
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_NUMBER_LABEL" : "BPA_OC_PERMIT_NUMBER_LABEL",
|
|
45421
|
+
value: (BPA === null || BPA === void 0 ? void 0 : BPA.approvalNo) || "NA"
|
|
45422
|
+
});
|
|
45423
|
+
applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn2 = applicationDetailsInfo.values) === null || _applicationDetailsIn2 === void 0 ? void 0 : _applicationDetailsIn2.push({
|
|
45424
|
+
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_VALIDITY" : "BPA_OC_PERMIT_VALIDITY",
|
|
45425
|
+
value: BPA !== null && BPA !== void 0 && (_BPA$additionalDetail8 = BPA.additionalDetails) !== null && _BPA$additionalDetail8 !== void 0 && _BPA$additionalDetail8.validityDate ? ConvertEpochToValidityDate(BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail9 = BPA.additionalDetails) === null || _BPA$additionalDetail9 === void 0 ? void 0 : _BPA$additionalDetail9.validityDate) + " - " + dateFns.format(new Date(BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail10 = BPA.additionalDetails) === null || _BPA$additionalDetail10 === void 0 ? void 0 : _BPA$additionalDetail10.validityDate), 'dd/MM/yyyy') : "NA"
|
|
45426
|
+
});
|
|
45427
|
+
}
|
|
44370
45428
|
|
|
44371
|
-
|
|
44372
|
-
|
|
44373
|
-
|
|
44374
|
-
|
|
44375
|
-
|
|
44376
|
-
return {
|
|
44377
|
-
title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
|
|
45429
|
+
var basicDetails = {
|
|
45430
|
+
title: "BPA_BASIC_DETAILS_TITLE",
|
|
45431
|
+
asSectionHeader: true,
|
|
45432
|
+
isInsert: true,
|
|
45433
|
+
isCommon: true,
|
|
44378
45434
|
values: [{
|
|
44379
|
-
title: "
|
|
44380
|
-
value:
|
|
45435
|
+
title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
|
|
45436
|
+
value: BPA !== null && BPA !== void 0 && (_BPA$auditDetails = BPA.auditDetails) !== null && _BPA$auditDetails !== void 0 && _BPA$auditDetails.createdTime ? dateFns.format(new Date(BPA === null || BPA === void 0 ? void 0 : (_BPA$auditDetails2 = BPA.auditDetails) === null || _BPA$auditDetails2 === void 0 ? void 0 : _BPA$auditDetails2.createdTime), 'dd/MM/yyyy') : ''
|
|
45437
|
+
}, {
|
|
45438
|
+
title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
|
|
45439
|
+
value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
|
|
45440
|
+
}, {
|
|
45441
|
+
title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
|
|
45442
|
+
value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
|
|
44381
45443
|
}, {
|
|
44382
|
-
title: "
|
|
44383
|
-
value:
|
|
45444
|
+
title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
|
|
45445
|
+
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail3 = edcr.planDetail) === null || _edcr$planDetail3 === void 0 ? void 0 : (_edcr$planDetail3$pla = _edcr$planDetail3.planInformation) === null || _edcr$planDetail3$pla === void 0 ? void 0 : _edcr$planDetail3$pla.occupancy
|
|
44384
45446
|
}, {
|
|
44385
|
-
title: "
|
|
44386
|
-
value:
|
|
45447
|
+
title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
|
|
45448
|
+
value: "WF_BPA_" + riskType,
|
|
45449
|
+
isInsert: true
|
|
44387
45450
|
}, {
|
|
44388
|
-
title: "
|
|
44389
|
-
value:
|
|
44390
|
-
isNotTranslated: false
|
|
45451
|
+
title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
|
|
45452
|
+
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail4 = edcr.planDetail) === null || _edcr$planDetail4 === void 0 ? void 0 : (_edcr$planDetail4$pla = _edcr$planDetail4.planInformation) === null || _edcr$planDetail4$pla === void 0 ? void 0 : _edcr$planDetail4$pla.applicantName
|
|
44391
45453
|
}]
|
|
44392
45454
|
};
|
|
44393
|
-
|
|
44394
|
-
|
|
44395
|
-
|
|
44396
|
-
|
|
44397
|
-
|
|
44398
|
-
|
|
44399
|
-
|
|
44400
|
-
|
|
44401
|
-
|
|
44402
|
-
|
|
44403
|
-
|
|
44404
|
-
|
|
45455
|
+
var plotDetails = {
|
|
45456
|
+
title: "BPA_PLOT_DETAILS_TITLE",
|
|
45457
|
+
asSectionHeader: true,
|
|
45458
|
+
isCommon: true,
|
|
45459
|
+
values: [{
|
|
45460
|
+
title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
|
|
45461
|
+
value: "" + (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail5 = edcr.planDetail) === null || _edcr$planDetail5 === void 0 ? void 0 : (_edcr$planDetail5$pla = _edcr$planDetail5.planInformation) === null || _edcr$planDetail5$pla === void 0 ? void 0 : _edcr$planDetail5$pla.plotArea),
|
|
45462
|
+
isNotTranslated: true,
|
|
45463
|
+
isUnit: "BPA_SQ_FT_LABEL"
|
|
45464
|
+
}, {
|
|
45465
|
+
title: "BPA_PLOT_NUMBER_LABEL",
|
|
45466
|
+
value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail6 = edcr.planDetail) === null || _edcr$planDetail6 === void 0 ? void 0 : (_edcr$planDetail6$pla = _edcr$planDetail6.planInformation) === null || _edcr$planDetail6$pla === void 0 ? void 0 : _edcr$planDetail6$pla.plotNo) || "NA",
|
|
45467
|
+
isNotTranslated: true
|
|
45468
|
+
}, {
|
|
45469
|
+
title: "BPA_KHATHA_NUMBER_LABEL",
|
|
45470
|
+
value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail7 = edcr.planDetail) === null || _edcr$planDetail7 === void 0 ? void 0 : (_edcr$planDetail7$pla = _edcr$planDetail7.planInformation) === null || _edcr$planDetail7$pla === void 0 ? void 0 : _edcr$planDetail7$pla.khataNo) || "NA",
|
|
45471
|
+
isNotTranslated: true
|
|
45472
|
+
}, {
|
|
45473
|
+
title: "BPA_HOLDING_NUMBER_LABEL",
|
|
45474
|
+
value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail11 = BPA.additionalDetails) === null || _BPA$additionalDetail11 === void 0 ? void 0 : _BPA$additionalDetail11.holdingNo) || "NA",
|
|
45475
|
+
isNotTranslated: true
|
|
45476
|
+
}, {
|
|
45477
|
+
title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
|
|
45478
|
+
value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail12 = BPA.additionalDetails) === null || _BPA$additionalDetail12 === void 0 ? void 0 : _BPA$additionalDetail12.registrationDetails) || "NA",
|
|
45479
|
+
isNotTranslated: true
|
|
45480
|
+
}]
|
|
45481
|
+
};
|
|
45482
|
+
var scrutinyDetails = {
|
|
45483
|
+
title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
|
|
45484
|
+
isScrutinyDetails: true,
|
|
45485
|
+
isBackGroundColor: true,
|
|
45486
|
+
additionalDetails: {
|
|
45487
|
+
values: [{
|
|
45488
|
+
title: "BPA_EDCR_DETAILS",
|
|
45489
|
+
value: " ",
|
|
45490
|
+
isHeader: true
|
|
45491
|
+
}, {
|
|
45492
|
+
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
|
|
45493
|
+
value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
|
|
45494
|
+
}],
|
|
45495
|
+
scruntinyDetails: [{
|
|
45496
|
+
title: "BPA_UPLOADED_PLAN_DIAGRAM",
|
|
45497
|
+
value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
|
|
45498
|
+
text: "BPA_UPLOADED_PLAN_DXF"
|
|
45499
|
+
}, {
|
|
45500
|
+
title: "BPA_SCRUNTINY_REPORT_OUTPUT",
|
|
45501
|
+
value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
|
|
45502
|
+
text: "BPA_SCRUTINY_REPORT_PDF"
|
|
45503
|
+
}]
|
|
45504
|
+
}
|
|
45505
|
+
};
|
|
45506
|
+
var buildingExtractionDetails = {
|
|
45507
|
+
title: "",
|
|
45508
|
+
isScrutinyDetails: true,
|
|
45509
|
+
isBackGroundColor: true,
|
|
45510
|
+
additionalDetails: {
|
|
45511
|
+
values: [{
|
|
45512
|
+
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
|
|
45513
|
+
value: " ",
|
|
45514
|
+
isHeader: true
|
|
45515
|
+
}, {
|
|
45516
|
+
title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
|
|
45517
|
+
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail8 = edcr.planDetail) === null || _edcr$planDetail8 === void 0 ? void 0 : (_edcr$planDetail8$blo = _edcr$planDetail8.blocks) === null || _edcr$planDetail8$blo === void 0 ? void 0 : (_edcr$planDetail8$blo2 = _edcr$planDetail8$blo[0]) === null || _edcr$planDetail8$blo2 === void 0 ? void 0 : (_edcr$planDetail8$blo3 = _edcr$planDetail8$blo2.building) === null || _edcr$planDetail8$blo3 === void 0 ? void 0 : _edcr$planDetail8$blo3.totalBuitUpArea,
|
|
45518
|
+
isUnit: "BPA_SQ_MTRS_LABEL"
|
|
45519
|
+
}, {
|
|
45520
|
+
title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
|
|
45521
|
+
value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail9 = edcr.planDetail) === null || _edcr$planDetail9 === void 0 ? void 0 : (_edcr$planDetail9$blo = _edcr$planDetail9.blocks) === null || _edcr$planDetail9$blo === void 0 ? void 0 : (_edcr$planDetail9$blo2 = _edcr$planDetail9$blo[0]) === null || _edcr$planDetail9$blo2 === void 0 ? void 0 : (_edcr$planDetail9$blo3 = _edcr$planDetail9$blo2.building) === null || _edcr$planDetail9$blo3 === void 0 ? void 0 : _edcr$planDetail9$blo3.totalFloors) || "NA"
|
|
45522
|
+
}, {
|
|
45523
|
+
title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
|
|
45524
|
+
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail10 = edcr.planDetail) === null || _edcr$planDetail10 === void 0 ? void 0 : (_edcr$planDetail10$bl = _edcr$planDetail10.blocks) === null || _edcr$planDetail10$bl === void 0 ? void 0 : (_edcr$planDetail10$bl2 = _edcr$planDetail10$bl[0]) === null || _edcr$planDetail10$bl2 === void 0 ? void 0 : (_edcr$planDetail10$bl3 = _edcr$planDetail10$bl2.building) === null || _edcr$planDetail10$bl3 === void 0 ? void 0 : _edcr$planDetail10$bl3.declaredBuildingHeigh,
|
|
45525
|
+
isUnit: "BPA_MTRS_LABEL"
|
|
45526
|
+
}],
|
|
45527
|
+
scruntinyDetails: []
|
|
45528
|
+
}
|
|
45529
|
+
};
|
|
45530
|
+
var demolitionAreaDetails = {
|
|
45531
|
+
title: "",
|
|
45532
|
+
isScrutinyDetails: true,
|
|
45533
|
+
isBackGroundColor: true,
|
|
45534
|
+
additionalDetails: {
|
|
45535
|
+
values: [{
|
|
45536
|
+
title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
|
|
45537
|
+
value: " ",
|
|
45538
|
+
isHeader: true
|
|
45539
|
+
}, {
|
|
45540
|
+
title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
|
|
45541
|
+
value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail11 = edcr.planDetail) === null || _edcr$planDetail11 === void 0 ? void 0 : (_edcr$planDetail11$pl = _edcr$planDetail11.planInformation) === null || _edcr$planDetail11$pl === void 0 ? void 0 : _edcr$planDetail11$pl.demolitionArea,
|
|
45542
|
+
isUnit: "BPA_SQ_MTRS_LABEL"
|
|
45543
|
+
}],
|
|
45544
|
+
scruntinyDetails: []
|
|
45545
|
+
}
|
|
45546
|
+
};
|
|
45547
|
+
var subOccupancyTableDetails = {
|
|
45548
|
+
title: "",
|
|
45549
|
+
isSubOccupancyTable: true,
|
|
45550
|
+
isTitleRepeat: true,
|
|
45551
|
+
additionalDetails: {
|
|
45552
|
+
values: [{
|
|
45553
|
+
title: "BPA_OCC_SUBOCC_HEADER",
|
|
45554
|
+
value: " ",
|
|
45555
|
+
isHeader: true
|
|
45556
|
+
}],
|
|
45557
|
+
subOccupancyTableDetails: [{
|
|
45558
|
+
title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
|
|
45559
|
+
value: edcr
|
|
45560
|
+
}, {
|
|
45561
|
+
title: "NO_REPEAT",
|
|
45562
|
+
value: ""
|
|
45563
|
+
}]
|
|
45564
|
+
}
|
|
45565
|
+
};
|
|
45566
|
+
var addressDetails = {
|
|
45567
|
+
title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
|
|
45568
|
+
asSectionHeader: true,
|
|
45569
|
+
isCommon: true,
|
|
45570
|
+
values: [{
|
|
45571
|
+
title: "BPA_DETAILS_PIN_LABEL",
|
|
45572
|
+
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo = BPA.landInfo) === null || _BPA$landInfo === void 0 ? void 0 : (_BPA$landInfo$address = _BPA$landInfo.address) === null || _BPA$landInfo$address === void 0 ? void 0 : _BPA$landInfo$address.pincode
|
|
45573
|
+
}, {
|
|
45574
|
+
title: "BPA_CITY_LABEL",
|
|
45575
|
+
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo2 = BPA.landInfo) === null || _BPA$landInfo2 === void 0 ? void 0 : (_BPA$landInfo2$addres = _BPA$landInfo2.address) === null || _BPA$landInfo2$addres === void 0 ? void 0 : _BPA$landInfo2$addres.city
|
|
45576
|
+
}, {
|
|
45577
|
+
title: "BPA_LOC_MOHALLA_LABEL",
|
|
45578
|
+
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo3 = BPA.landInfo) === null || _BPA$landInfo3 === void 0 ? void 0 : (_BPA$landInfo3$addres = _BPA$landInfo3.address) === null || _BPA$landInfo3$addres === void 0 ? void 0 : (_BPA$landInfo3$addres2 = _BPA$landInfo3$addres.locality) === null || _BPA$landInfo3$addres2 === void 0 ? void 0 : _BPA$landInfo3$addres2.name
|
|
45579
|
+
}, {
|
|
45580
|
+
title: "BPA_DETAILS_SRT_NAME_LABEL",
|
|
45581
|
+
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo4 = BPA.landInfo) === null || _BPA$landInfo4 === void 0 ? void 0 : (_BPA$landInfo4$addres = _BPA$landInfo4.address) === null || _BPA$landInfo4$addres === void 0 ? void 0 : _BPA$landInfo4$addres.street
|
|
45582
|
+
}, {
|
|
45583
|
+
title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
|
|
45584
|
+
value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo5 = BPA.landInfo) === null || _BPA$landInfo5 === void 0 ? void 0 : (_BPA$landInfo5$addres = _BPA$landInfo5.address) === null || _BPA$landInfo5$addres === void 0 ? void 0 : _BPA$landInfo5$addres.landmark
|
|
45585
|
+
}]
|
|
45586
|
+
};
|
|
45587
|
+
var checkOwnerLength = (BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo6 = BPA.landInfo) === null || _BPA$landInfo6 === void 0 ? void 0 : (_BPA$landInfo6$owners = _BPA$landInfo6.owners) === null || _BPA$landInfo6$owners === void 0 ? void 0 : _BPA$landInfo6$owners.length) || 1;
|
|
44405
45588
|
|
|
44406
|
-
|
|
44407
|
-
|
|
44408
|
-
|
|
44409
|
-
|
|
44410
|
-
|
|
44411
|
-
|
|
45589
|
+
if ((BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo7 = BPA.landInfo) === null || _BPA$landInfo7 === void 0 ? void 0 : (_BPA$landInfo7$owners = _BPA$landInfo7.owners) === null || _BPA$landInfo7$owners === void 0 ? void 0 : _BPA$landInfo7$owners.length) > 0) {
|
|
45590
|
+
var _BPA$landInfo8, _BPA$landInfo8$owners;
|
|
45591
|
+
|
|
45592
|
+
BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo8 = BPA.landInfo) === null || _BPA$landInfo8 === void 0 ? void 0 : (_BPA$landInfo8$owners = _BPA$landInfo8.owners) === null || _BPA$landInfo8$owners === void 0 ? void 0 : _BPA$landInfo8$owners.forEach(function (ownerD) {
|
|
45593
|
+
if (!ownerD.isPrimaryOwner) ownerD.isPrimaryOwner = "false";
|
|
45594
|
+
});
|
|
45595
|
+
}
|
|
45596
|
+
|
|
45597
|
+
var ownerDetails = {
|
|
45598
|
+
title: "BPA_APPLICANT_DETAILS_HEADER",
|
|
45599
|
+
isOwnerDetails: true,
|
|
45600
|
+
additionalDetails: {
|
|
45601
|
+
owners: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo9 = BPA.landInfo) === null || _BPA$landInfo9 === void 0 ? void 0 : (_BPA$landInfo9$owners = _BPA$landInfo9.owners) === null || _BPA$landInfo9$owners === void 0 ? void 0 : _BPA$landInfo9$owners.map(function (owner, index) {
|
|
45602
|
+
return {
|
|
45603
|
+
title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
|
|
45604
|
+
values: [{
|
|
45605
|
+
title: "CORE_COMMON_NAME",
|
|
45606
|
+
value: owner === null || owner === void 0 ? void 0 : owner.name
|
|
45607
|
+
}, {
|
|
45608
|
+
title: "BPA_APPLICANT_GENDER_LABEL",
|
|
45609
|
+
value: owner === null || owner === void 0 ? void 0 : owner.gender
|
|
45610
|
+
}, {
|
|
45611
|
+
title: "CORE_COMMON_MOBILE_NUMBER",
|
|
45612
|
+
value: owner === null || owner === void 0 ? void 0 : owner.mobileNumber
|
|
45613
|
+
}, {
|
|
45614
|
+
title: "BPA_IS_PRIMARY_OWNER_LABEL",
|
|
45615
|
+
value: owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner,
|
|
45616
|
+
isNotTranslated: false
|
|
45617
|
+
}]
|
|
45618
|
+
};
|
|
45619
|
+
})
|
|
45620
|
+
}
|
|
45621
|
+
};
|
|
45622
|
+
var documentDetails = {
|
|
45623
|
+
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
45624
|
+
asSectionHeader: true,
|
|
45625
|
+
isDocumentDetails: true,
|
|
45626
|
+
additionalDetails: {
|
|
45627
|
+
obpsDocuments: [{
|
|
45628
|
+
title: "",
|
|
45629
|
+
values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
|
|
45630
|
+
var _doc$documentType4, _fileDetails9, _fileDetails9$data, _fileDetails10, _fileDetails10$data, _fileDetails10$data$d;
|
|
45631
|
+
|
|
45632
|
+
return {
|
|
45633
|
+
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
|
|
45634
|
+
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
45635
|
+
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
45636
|
+
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
45637
|
+
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
45638
|
+
url: (_fileDetails9 = fileDetails) !== null && _fileDetails9 !== void 0 && (_fileDetails9$data = _fileDetails9.data) !== null && _fileDetails9$data !== void 0 && _fileDetails9$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails10 = fileDetails) === null || _fileDetails10 === void 0 ? void 0 : (_fileDetails10$data = _fileDetails10.data) === null || _fileDetails10$data === void 0 ? void 0 : (_fileDetails10$data$d = _fileDetails10$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails10$data$d === void 0 ? void 0 : _fileDetails10$data$d.split(',')[0] : ""
|
|
45639
|
+
};
|
|
45640
|
+
})
|
|
45641
|
+
}]
|
|
45642
|
+
}
|
|
45643
|
+
};
|
|
45644
|
+
var approvalChecks = [];
|
|
45645
|
+
var approvalChecksDetails = {};
|
|
45646
|
+
|
|
45647
|
+
if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
|
|
45648
|
+
var _mdmsRes$BPA2;
|
|
45649
|
+
|
|
45650
|
+
mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA2 = mdmsRes.BPA) === null || _mdmsRes$BPA2 === void 0 ? void 0 : _mdmsRes$BPA2.CheckList.forEach(function (checklist) {
|
|
45651
|
+
var _checklist$conditions;
|
|
45652
|
+
|
|
45653
|
+
if ((checklist === null || checklist === void 0 ? void 0 : checklist.RiskType) === riskType && (checklist === null || checklist === void 0 ? void 0 : checklist.applicationType) === (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType) && (checklist === null || checklist === void 0 ? void 0 : checklist.ServiceType) === (edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType) && (checklist === null || checklist === void 0 ? void 0 : checklist.WFState) === "PENDINGAPPROVAL" && (checklist === null || checklist === void 0 ? void 0 : (_checklist$conditions = checklist.conditions) === null || _checklist$conditions === void 0 ? void 0 : _checklist$conditions.length) > 0) {
|
|
45654
|
+
approvalChecks.push.apply(approvalChecks, checklist === null || checklist === void 0 ? void 0 : checklist.conditions);
|
|
45655
|
+
}
|
|
45656
|
+
});
|
|
45657
|
+
approvalChecksDetails = {
|
|
45658
|
+
title: "",
|
|
45659
|
+
isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
|
|
45660
|
+
asSectionHeader: true,
|
|
45661
|
+
isPermissions: true,
|
|
45662
|
+
additionalDetails: {
|
|
45663
|
+
permissions: approvalChecks
|
|
45664
|
+
}
|
|
44412
45665
|
};
|
|
44413
|
-
}
|
|
44414
|
-
|
|
44415
|
-
|
|
44416
|
-
|
|
44417
|
-
|
|
44418
|
-
|
|
45666
|
+
}
|
|
45667
|
+
|
|
45668
|
+
if (riskType == "LOW" && approvalChecks.length > 0) approvalChecksDetails = {};
|
|
45669
|
+
var val;
|
|
45670
|
+
var i;
|
|
45671
|
+
var FieldInspectionData = [];
|
|
45672
|
+
inspectionReport && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail13 = BPA.additionalDetails) === null || _BPA$additionalDetail13 === void 0 ? void 0 : (_BPA$additionalDetail14 = _BPA$additionalDetail13.fieldinspection_pending) === null || _BPA$additionalDetail14 === void 0 ? void 0 : (_BPA$additionalDetail15 = _BPA$additionalDetail14[0]) === null || _BPA$additionalDetail15 === void 0 ? void 0 : _BPA$additionalDetail15.questions.length) > 0 && inspectionReport.map(function (ob, index) {
|
|
45673
|
+
if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
45674
|
+
title: ob.title,
|
|
45675
|
+
additionalDetails: {
|
|
45676
|
+
inspectionReport: [],
|
|
45677
|
+
values: ob.values
|
|
45678
|
+
}
|
|
45679
|
+
}]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
45680
|
+
title: ob.title,
|
|
45681
|
+
additionalDetails: {
|
|
45682
|
+
isChecklist: true,
|
|
45683
|
+
inspectionReport: [],
|
|
45684
|
+
values: ob.values
|
|
45685
|
+
}
|
|
45686
|
+
}]);else {
|
|
45687
|
+
var _ob$additionalDetails, _ob$additionalDetails2;
|
|
45688
|
+
|
|
45689
|
+
var improvedDoc = [].concat((_ob$additionalDetails = ob.additionalDetails.obpsDocuments) === null || _ob$additionalDetails === void 0 ? void 0 : (_ob$additionalDetails2 = _ob$additionalDetails[0]) === null || _ob$additionalDetails2 === void 0 ? void 0 : _ob$additionalDetails2.values);
|
|
45690
|
+
improvedDoc.map(function (ob) {
|
|
45691
|
+
ob["isNotDuplicate"] = true;
|
|
45692
|
+
});
|
|
45693
|
+
improvedDoc.map(function (ob, index) {
|
|
45694
|
+
val = ob.documentType;
|
|
45695
|
+
if (ob.isNotDuplicate == true) for (i = index + 1; i < improvedDoc.length; i++) {
|
|
45696
|
+
if (val === improvedDoc[i].documentType) improvedDoc[i].isNotDuplicate = false;
|
|
45697
|
+
}
|
|
45698
|
+
});
|
|
45699
|
+
FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
45700
|
+
title: ob.title,
|
|
45701
|
+
additionalDetails: {
|
|
45702
|
+
FIdocuments: [],
|
|
45703
|
+
"documents": [{
|
|
45704
|
+
values: improvedDoc
|
|
45705
|
+
}]
|
|
45706
|
+
}
|
|
45707
|
+
}]);
|
|
45708
|
+
}
|
|
45709
|
+
});
|
|
45710
|
+
var fiReports = {
|
|
45711
|
+
title: "",
|
|
45712
|
+
isFieldInspection: true,
|
|
45713
|
+
isNotAllowed: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail16 = BPA.additionalDetails) === null || _BPA$additionalDetail16 === void 0 ? void 0 : (_BPA$additionalDetail17 = _BPA$additionalDetail16.fieldinspection_pending) === null || _BPA$additionalDetail17 === void 0 ? void 0 : _BPA$additionalDetail17.length) > 0 ? false : true,
|
|
45714
|
+
additionalDetails: {
|
|
45715
|
+
values: [],
|
|
45716
|
+
fiReport: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail18 = BPA.additionalDetails) === null || _BPA$additionalDetail18 === void 0 ? void 0 : (_BPA$additionalDetail19 = _BPA$additionalDetail18.fieldinspection_pending) === null || _BPA$additionalDetail19 === void 0 ? void 0 : _BPA$additionalDetail19.length) > 0 ? true : false
|
|
45717
|
+
}
|
|
45718
|
+
};
|
|
44419
45719
|
|
|
44420
|
-
|
|
44421
|
-
|
|
45720
|
+
if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
|
|
45721
|
+
details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, addressDetails, ownerDetails, documentDetails, fiReports], nocDetails, [approvalChecksDetails, PermitConditions]);
|
|
45722
|
+
} else {
|
|
45723
|
+
details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports], nocDetails, [PermitConditions]);
|
|
45724
|
+
}
|
|
44422
45725
|
|
|
44423
|
-
|
|
44424
|
-
|
|
45726
|
+
if (billDetails !== null && billDetails !== void 0 && (_billDetails$addition = billDetails.additionalDetails) !== null && _billDetails$addition !== void 0 && (_billDetails$addition2 = _billDetails$addition.values) !== null && _billDetails$addition2 !== void 0 && _billDetails$addition2.length) {
|
|
45727
|
+
details.push(billDetails);
|
|
45728
|
+
}
|
|
44425
45729
|
|
|
44426
|
-
|
|
44427
|
-
|
|
44428
|
-
|
|
44429
|
-
|
|
44430
|
-
|
|
44431
|
-
|
|
44432
|
-
|
|
44433
|
-
|
|
44434
|
-
|
|
44435
|
-
|
|
44436
|
-
|
|
45730
|
+
var bpaFilterDetails = (_details = details) === null || _details === void 0 ? void 0 : _details.filter(function (data) {
|
|
45731
|
+
return data;
|
|
45732
|
+
});
|
|
45733
|
+
return {
|
|
45734
|
+
applicationData: BPA,
|
|
45735
|
+
applicationDetails: bpaFilterDetails,
|
|
45736
|
+
tenantId: BPA === null || BPA === void 0 ? void 0 : BPA.tenantId,
|
|
45737
|
+
edcrDetails: edcr,
|
|
45738
|
+
nocData: noc,
|
|
45739
|
+
comparisionReport: comparisionReport === null || comparisionReport === void 0 ? void 0 : comparisionReport.comparisonDetail,
|
|
45740
|
+
businessService: BPA === null || BPA === void 0 ? void 0 : BPA.businessService,
|
|
45741
|
+
applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
|
|
45742
|
+
applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status,
|
|
45743
|
+
collectionBillDetails: collectionBillDetails
|
|
45744
|
+
};
|
|
44437
45745
|
}
|
|
44438
|
-
};
|
|
44439
|
-
}
|
|
44440
45746
|
|
|
44441
|
-
|
|
44442
|
-
var val;
|
|
44443
|
-
var i;
|
|
44444
|
-
var FieldInspectionData = [];
|
|
44445
|
-
inspectionReport && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail11 = BPA.additionalDetails) === null || _BPA$additionalDetail11 === void 0 ? void 0 : (_BPA$additionalDetail12 = _BPA$additionalDetail11.fieldinspection_pending) === null || _BPA$additionalDetail12 === void 0 ? void 0 : (_BPA$additionalDetail13 = _BPA$additionalDetail12[0]) === null || _BPA$additionalDetail13 === void 0 ? void 0 : _BPA$additionalDetail13.questions.length) > 0 && inspectionReport.map(function (ob, index) {
|
|
44446
|
-
if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
44447
|
-
title: ob.title,
|
|
44448
|
-
additionalDetails: {
|
|
44449
|
-
inspectionReport: [],
|
|
44450
|
-
values: ob.values
|
|
44451
|
-
}
|
|
44452
|
-
}]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
44453
|
-
title: ob.title,
|
|
44454
|
-
additionalDetails: {
|
|
44455
|
-
isChecklist: true,
|
|
44456
|
-
inspectionReport: [],
|
|
44457
|
-
values: ob.values
|
|
44458
|
-
}
|
|
44459
|
-
}]);else {
|
|
44460
|
-
var _ob$additionalDetails, _ob$additionalDetails2;
|
|
45747
|
+
var i = 0;
|
|
44461
45748
|
|
|
44462
|
-
var
|
|
44463
|
-
|
|
44464
|
-
|
|
44465
|
-
|
|
44466
|
-
|
|
44467
|
-
|
|
44468
|
-
|
|
44469
|
-
|
|
44470
|
-
|
|
45749
|
+
var _temp3 = _for(function () {
|
|
45750
|
+
var _appBusinessService;
|
|
45751
|
+
|
|
45752
|
+
return i < ((_appBusinessService = appBusinessService) === null || _appBusinessService === void 0 ? void 0 : _appBusinessService.length);
|
|
45753
|
+
}, function () {
|
|
45754
|
+
return i++;
|
|
45755
|
+
}, function () {
|
|
45756
|
+
return Promise.resolve(Digit.PaymentService.recieptSearch(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, appBusinessService[i], {
|
|
45757
|
+
consumerCodes: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
|
|
45758
|
+
isEmployee: true
|
|
45759
|
+
})).then(function (collectionres) {
|
|
45760
|
+
var _collectionres$Paymen, _collectionres$Paymen3;
|
|
45761
|
+
|
|
45762
|
+
if ((collectionres === null || collectionres === void 0 ? void 0 : (_collectionres$Paymen = collectionres.Payments) === null || _collectionres$Paymen === void 0 ? void 0 : _collectionres$Paymen.length) > 0) {
|
|
45763
|
+
var _collectionres$Paymen2;
|
|
45764
|
+
|
|
45765
|
+
collectionres === null || collectionres === void 0 ? void 0 : (_collectionres$Paymen2 = collectionres.Payments) === null || _collectionres$Paymen2 === void 0 ? void 0 : _collectionres$Paymen2.map(function (res) {
|
|
45766
|
+
var _res$paymentDetails;
|
|
45767
|
+
|
|
45768
|
+
res === null || res === void 0 ? void 0 : (_res$paymentDetails = res.paymentDetails) === null || _res$paymentDetails === void 0 ? void 0 : _res$paymentDetails.map(function (resData) {
|
|
45769
|
+
if ((resData === null || resData === void 0 ? void 0 : resData.businessService) == appBusinessService[i]) {
|
|
45770
|
+
collectionBillRes.push(res);
|
|
45771
|
+
}
|
|
45772
|
+
});
|
|
45773
|
+
});
|
|
45774
|
+
}
|
|
45775
|
+
|
|
45776
|
+
if ((collectionres === null || collectionres === void 0 ? void 0 : (_collectionres$Paymen3 = collectionres.Payments) === null || _collectionres$Paymen3 === void 0 ? void 0 : _collectionres$Paymen3.length) > 0) collectionBillDetails.push.apply(collectionBillDetails, collectionres === null || collectionres === void 0 ? void 0 : collectionres.Payments);
|
|
45777
|
+
});
|
|
44471
45778
|
});
|
|
44472
|
-
|
|
44473
|
-
|
|
44474
|
-
additionalDetails: {
|
|
44475
|
-
FIdocuments: [],
|
|
44476
|
-
"documents": [{
|
|
44477
|
-
values: improvedDoc
|
|
44478
|
-
}]
|
|
44479
|
-
}
|
|
44480
|
-
}]);
|
|
44481
|
-
}
|
|
44482
|
-
});
|
|
44483
|
-
var fiReports = {
|
|
44484
|
-
title: "",
|
|
44485
|
-
isFieldInspection: true,
|
|
44486
|
-
isNotAllowed: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail14 = BPA.additionalDetails) === null || _BPA$additionalDetail14 === void 0 ? void 0 : (_BPA$additionalDetail15 = _BPA$additionalDetail14.fieldinspection_pending) === null || _BPA$additionalDetail15 === void 0 ? void 0 : _BPA$additionalDetail15.length) > 0 ? false : true,
|
|
44487
|
-
additionalDetails: {
|
|
44488
|
-
values: [],
|
|
44489
|
-
fiReport: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail16 = BPA.additionalDetails) === null || _BPA$additionalDetail16 === void 0 ? void 0 : (_BPA$additionalDetail17 = _BPA$additionalDetail16.fieldinspection_pending) === null || _BPA$additionalDetail17 === void 0 ? void 0 : _BPA$additionalDetail17.length) > 0 ? true : false
|
|
45779
|
+
|
|
45780
|
+
return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
|
|
44490
45781
|
}
|
|
44491
|
-
};
|
|
44492
45782
|
|
|
44493
|
-
|
|
44494
|
-
|
|
44495
|
-
|
|
44496
|
-
|
|
45783
|
+
var appBusinessService = [],
|
|
45784
|
+
collectionBillDetails = [],
|
|
45785
|
+
collectionBillArray = [],
|
|
45786
|
+
totalAmount = 0,
|
|
45787
|
+
collectionBillRes = [];
|
|
45788
|
+
if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) === "BPA_LOW") appBusinessService = ["BPA.LOW_RISK_PERMIT_FEE"];else if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) === "BPA") appBusinessService = ["BPA.NC_APP_FEE", "BPA.NC_SAN_FEE"];else if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) === "BPA_OC") appBusinessService = ["BPA.NC_OC_APP_FEE", "BPA.NC_OC_SAN_FEE"];
|
|
45789
|
+
var fetchBillRes = {};
|
|
45790
|
+
|
|
45791
|
+
var _temp5 = function () {
|
|
45792
|
+
var _appBusinessService2;
|
|
45793
|
+
|
|
45794
|
+
if ((_appBusinessService2 = appBusinessService) !== null && _appBusinessService2 !== void 0 && _appBusinessService2[1]) {
|
|
45795
|
+
return Promise.resolve(Digit.PaymentService.fetchBill(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, {
|
|
45796
|
+
consumerCode: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
|
|
45797
|
+
businessService: appBusinessService[1]
|
|
45798
|
+
})).then(function (_Digit$PaymentService) {
|
|
45799
|
+
fetchBillRes = _Digit$PaymentService;
|
|
45800
|
+
});
|
|
45801
|
+
}
|
|
45802
|
+
}();
|
|
45803
|
+
|
|
45804
|
+
return _temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5);
|
|
44497
45805
|
}
|
|
44498
45806
|
|
|
44499
|
-
|
|
44500
|
-
|
|
45807
|
+
noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails) {
|
|
45808
|
+
var _nocDetails$documents2;
|
|
45809
|
+
|
|
45810
|
+
nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents2 = nocDetails.documents) === null || _nocDetails$documents2 === void 0 ? void 0 : _nocDetails$documents2.map(function (nocDoc) {
|
|
45811
|
+
if (nocDoc !== null && nocDoc !== void 0 && nocDoc.fileStoreId) appDocumentFileStoreIds.push(nocDoc === null || nocDoc === void 0 ? void 0 : nocDoc.fileStoreId);
|
|
45812
|
+
});
|
|
44501
45813
|
});
|
|
44502
|
-
|
|
44503
|
-
|
|
44504
|
-
|
|
44505
|
-
|
|
44506
|
-
|
|
44507
|
-
|
|
44508
|
-
|
|
44509
|
-
|
|
44510
|
-
|
|
44511
|
-
|
|
44512
|
-
};
|
|
45814
|
+
var fileDetails = {};
|
|
45815
|
+
|
|
45816
|
+
var _temp7 = function () {
|
|
45817
|
+
var _appDocumentFileStore;
|
|
45818
|
+
|
|
45819
|
+
if (((_appDocumentFileStore = appDocumentFileStoreIds) === null || _appDocumentFileStore === void 0 ? void 0 : _appDocumentFileStore.length) > 0) {
|
|
45820
|
+
return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (_UploadServices$Filef2) {
|
|
45821
|
+
fileDetails = _UploadServices$Filef2;
|
|
45822
|
+
});
|
|
45823
|
+
}
|
|
45824
|
+
}();
|
|
45825
|
+
|
|
45826
|
+
return _temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7);
|
|
44513
45827
|
});
|
|
44514
45828
|
});
|
|
44515
45829
|
});
|
|
@@ -44794,6 +46108,34 @@ var useOBPSDocumentSearch = function useOBPSDocumentSearch(_ref, config, Code, i
|
|
|
44794
46108
|
};
|
|
44795
46109
|
};
|
|
44796
46110
|
|
|
46111
|
+
var updateNOCAPI = function updateNOCAPI(data, tenantId) {
|
|
46112
|
+
try {
|
|
46113
|
+
return Promise.resolve(_catch(function () {
|
|
46114
|
+
return Promise.resolve(OBPSService.updateNOC(data, tenantId));
|
|
46115
|
+
}, function (error) {
|
|
46116
|
+
var _error$response, _error$response$data;
|
|
46117
|
+
|
|
46118
|
+
throw new Error(error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.Errors[0].code);
|
|
46119
|
+
}));
|
|
46120
|
+
} catch (e) {
|
|
46121
|
+
return Promise.reject(e);
|
|
46122
|
+
}
|
|
46123
|
+
};
|
|
46124
|
+
|
|
46125
|
+
var updateAPI = function updateAPI(data, tenantId) {
|
|
46126
|
+
try {
|
|
46127
|
+
return Promise.resolve(_catch(function () {
|
|
46128
|
+
return Promise.resolve(OBPSService.update(data, tenantId));
|
|
46129
|
+
}, function (error) {
|
|
46130
|
+
var _error$response2, _error$response2$data;
|
|
46131
|
+
|
|
46132
|
+
throw new Error(error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.Errors[0].code);
|
|
46133
|
+
}));
|
|
46134
|
+
} catch (e) {
|
|
46135
|
+
return Promise.reject(e);
|
|
46136
|
+
}
|
|
46137
|
+
};
|
|
46138
|
+
|
|
44797
46139
|
var useObpsAPI = function useObpsAPI(tenantId, type) {
|
|
44798
46140
|
if (type === void 0) {
|
|
44799
46141
|
type = false;
|
|
@@ -44801,11 +46143,11 @@ var useObpsAPI = function useObpsAPI(tenantId, type) {
|
|
|
44801
46143
|
|
|
44802
46144
|
if (type) {
|
|
44803
46145
|
return reactQuery.useMutation(function (data) {
|
|
44804
|
-
return
|
|
46146
|
+
return updateNOCAPI(data, tenantId);
|
|
44805
46147
|
});
|
|
44806
46148
|
} else {
|
|
44807
46149
|
return reactQuery.useMutation(function (data) {
|
|
44808
|
-
return
|
|
46150
|
+
return updateAPI(data, tenantId);
|
|
44809
46151
|
});
|
|
44810
46152
|
}
|
|
44811
46153
|
};
|
|
@@ -44989,7 +46331,7 @@ var useBPAInbox = function useBPAInbox(_ref) {
|
|
|
44989
46331
|
processSearchCriteria: _extends({
|
|
44990
46332
|
assignee: assignee === "ASSIGNED_TO_ME" ? user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.uuid : "",
|
|
44991
46333
|
moduleName: moduleName !== "BPAREG" ? "bpa-services" : "BPAREG",
|
|
44992
|
-
businessService: moduleName !== "BPAREG" ? businessService ? [businessService] : ["BPA_LOW", "BPA", "BPA_OC"] : businessService ? [businessService.identifier] : ["ARCHITECT", "BUILDER", "ENGINEER", "STRUCTURALENGINEER"]
|
|
46334
|
+
businessService: moduleName !== "BPAREG" ? businessService ? [businessService] : ["BPA_LOW", "BPA", "BPA_OC"] : businessService ? [businessService.identifier] : ["ARCHITECT", "BUILDER", "ENGINEER", "STRUCTURALENGINEER", "TOWNPLANNER", "SUPERVISOR"]
|
|
44993
46335
|
}, (applicationStatus === null || applicationStatus === void 0 ? void 0 : applicationStatus.length) > 0 ? {
|
|
44994
46336
|
status: applicationStatus
|
|
44995
46337
|
} : {}),
|
|
@@ -45012,9 +46354,15 @@ var useBPAInbox = function useBPAInbox(_ref) {
|
|
|
45012
46354
|
return item.code.split("_").pop();
|
|
45013
46355
|
}).join(",")
|
|
45014
46356
|
} : {}),
|
|
45015
|
-
limit: limit
|
|
45016
|
-
offset: offset
|
|
46357
|
+
limit: limit
|
|
45017
46358
|
};
|
|
46359
|
+
|
|
46360
|
+
if (!applicationNo) {
|
|
46361
|
+
_filters = _extends({}, _filters, {
|
|
46362
|
+
offset: offset
|
|
46363
|
+
});
|
|
46364
|
+
}
|
|
46365
|
+
|
|
45018
46366
|
return useInbox({
|
|
45019
46367
|
tenantId: tenantId,
|
|
45020
46368
|
filters: _filters,
|
|
@@ -45411,8 +46759,8 @@ var useBusinessServiceData = function useBusinessServiceData(tenantId, businessS
|
|
|
45411
46759
|
}, config);
|
|
45412
46760
|
};
|
|
45413
46761
|
|
|
45414
|
-
var useBPATaxDocuments = function useBPATaxDocuments(stateId, formData,
|
|
45415
|
-
var _bpaDocs$BPA, _filtredBpaDocs, _filtredBpaDocs$, _filtredBpaDocs$$docT;
|
|
46762
|
+
var useBPATaxDocuments = function useBPATaxDocuments(stateId, formData, beforeUploadDocuments) {
|
|
46763
|
+
var _beforeUploadDocument, _data$pdfFiles, _bpaDocs$BPA, _filtredBpaDocs, _filtredBpaDocs$, _filtredBpaDocs$$docT;
|
|
45416
46764
|
|
|
45417
46765
|
var _Digit$Hooks$obps$use = Digit.Hooks.obps.useMDMS(stateId, "BPA", ["DocTypeMapping"]),
|
|
45418
46766
|
bpaDocsLoading = _Digit$Hooks$obps$use.isLoading,
|
|
@@ -45422,6 +46770,17 @@ var useBPATaxDocuments = function useBPATaxDocuments(stateId, formData, PrevStat
|
|
|
45422
46770
|
commonDocsLoading = _Digit$Hooks$obps$use2.isLoading,
|
|
45423
46771
|
commonDocs = _Digit$Hooks$obps$use2.data;
|
|
45424
46772
|
|
|
46773
|
+
var documents = beforeUploadDocuments;
|
|
46774
|
+
|
|
46775
|
+
var _Digit$Hooks$useDocum = Digit.Hooks.useDocumentSearch(documents, {
|
|
46776
|
+
enabled: ((_beforeUploadDocument = beforeUploadDocuments) === null || _beforeUploadDocument === void 0 ? void 0 : _beforeUploadDocument.length) > 0 ? true : false
|
|
46777
|
+
}),
|
|
46778
|
+
data = _Digit$Hooks$useDocum.data;
|
|
46779
|
+
|
|
46780
|
+
if ((data === null || data === void 0 ? void 0 : (_data$pdfFiles = data.pdfFiles) === null || _data$pdfFiles === void 0 ? void 0 : _data$pdfFiles.length) > 0) {
|
|
46781
|
+
beforeUploadDocuments = data === null || data === void 0 ? void 0 : data.pdfFiles;
|
|
46782
|
+
}
|
|
46783
|
+
|
|
45425
46784
|
var filtredBpaDocs = [];
|
|
45426
46785
|
|
|
45427
46786
|
if (bpaDocs !== null && bpaDocs !== void 0 && (_bpaDocs$BPA = bpaDocs.BPA) !== null && _bpaDocs$BPA !== void 0 && _bpaDocs$BPA.DocTypeMapping) {
|
|
@@ -45452,7 +46811,7 @@ var useBPATaxDocuments = function useBPATaxDocuments(stateId, formData, PrevStat
|
|
|
45452
46811
|
});
|
|
45453
46812
|
doc.uploadedDocuments[0] = {};
|
|
45454
46813
|
doc.uploadedDocuments[0].values = [];
|
|
45455
|
-
|
|
46814
|
+
beforeUploadDocuments.map(function (upDocs) {
|
|
45456
46815
|
var _upDocs$documentType, _upDocs$documentType2;
|
|
45457
46816
|
|
|
45458
46817
|
if (code === (upDocs === null || upDocs === void 0 ? void 0 : (_upDocs$documentType = upDocs.documentType) === null || _upDocs$documentType === void 0 ? void 0 : _upDocs$documentType.split('.')[0]) + "." + (upDocs === null || upDocs === void 0 ? void 0 : (_upDocs$documentType2 = upDocs.documentType) === null || _upDocs$documentType2 === void 0 ? void 0 : _upDocs$documentType2.split('.')[1])) {
|
|
@@ -46533,6 +47892,7 @@ var Hooks = {
|
|
|
46533
47892
|
useClearNotifications: useClearNotifications,
|
|
46534
47893
|
useNotificationCount: useNotificationCount,
|
|
46535
47894
|
useStore: useStore$1,
|
|
47895
|
+
useDocumentSearch: useDocumentSearch,
|
|
46536
47896
|
useTenants: useTenants,
|
|
46537
47897
|
useInbox: useTLInbox,
|
|
46538
47898
|
pgr: pgr,
|