@egovernments/digit-ui-libraries 1.5.0-beta.7 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2031 -785
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2031 -785
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -35901,23 +35901,50 @@ function cloneDeep(value) {
|
|
|
35901
35901
|
|
|
35902
35902
|
var cloneDeep_1 = cloneDeep;
|
|
35903
35903
|
|
|
35904
|
-
var getThumbnails = function getThumbnails(ids, tenantId) {
|
|
35904
|
+
var getThumbnails = function getThumbnails(ids, tenantId, documents) {
|
|
35905
|
+
if (documents === void 0) {
|
|
35906
|
+
documents = [];
|
|
35907
|
+
}
|
|
35908
|
+
|
|
35905
35909
|
try {
|
|
35906
35910
|
tenantId = window.location.href.includes("/obps/") ? Digit.ULBService.getStateId() : tenantId;
|
|
35907
|
-
|
|
35908
|
-
|
|
35909
|
-
|
|
35910
|
-
|
|
35911
|
-
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
|
|
35915
|
-
|
|
35916
|
-
|
|
35911
|
+
|
|
35912
|
+
if (window.location.href.includes("/obps/")) {
|
|
35913
|
+
var _documents;
|
|
35914
|
+
|
|
35915
|
+
if (((_documents = documents) === null || _documents === void 0 ? void 0 : _documents.length) > 0) {
|
|
35916
|
+
var _documents2;
|
|
35917
|
+
|
|
35918
|
+
var workflowsDocs = [];
|
|
35919
|
+
(_documents2 = documents) === null || _documents2 === void 0 ? void 0 : _documents2.map(function (doc) {
|
|
35920
|
+
if (doc !== null && doc !== void 0 && doc.url) {
|
|
35921
|
+
var thumbs = doc.url.split(",")[3] || doc.url.split(",")[0];
|
|
35922
|
+
workflowsDocs.push({
|
|
35923
|
+
thumbs: [thumbs],
|
|
35924
|
+
images: [Digit.Utils.getFileUrl(doc.url)]
|
|
35925
|
+
});
|
|
35926
|
+
}
|
|
35927
|
+
});
|
|
35928
|
+
return Promise.resolve(workflowsDocs === null || workflowsDocs === void 0 ? void 0 : workflowsDocs[0]);
|
|
35917
35929
|
} else {
|
|
35918
|
-
return null;
|
|
35930
|
+
return Promise.resolve(null);
|
|
35919
35931
|
}
|
|
35920
|
-
}
|
|
35932
|
+
} else {
|
|
35933
|
+
return Promise.resolve(Digit.UploadServices.Filefetch(ids, tenantId)).then(function (res) {
|
|
35934
|
+
if (res.data.fileStoreIds && res.data.fileStoreIds.length !== 0) {
|
|
35935
|
+
return {
|
|
35936
|
+
thumbs: res.data.fileStoreIds.map(function (o) {
|
|
35937
|
+
return o.url.split(",")[3] || o.url.split(",")[0];
|
|
35938
|
+
}),
|
|
35939
|
+
images: res.data.fileStoreIds.map(function (o) {
|
|
35940
|
+
return Digit.Utils.getFileUrl(o.url);
|
|
35941
|
+
})
|
|
35942
|
+
};
|
|
35943
|
+
} else {
|
|
35944
|
+
return null;
|
|
35945
|
+
}
|
|
35946
|
+
});
|
|
35947
|
+
}
|
|
35921
35948
|
} catch (e) {
|
|
35922
35949
|
return Promise.reject(e);
|
|
35923
35950
|
}
|
|
@@ -35925,45 +35952,86 @@ var getThumbnails = function getThumbnails(ids, tenantId) {
|
|
|
35925
35952
|
|
|
35926
35953
|
var makeCommentsSubsidariesOfPreviousActions = function makeCommentsSubsidariesOfPreviousActions(wf) {
|
|
35927
35954
|
try {
|
|
35928
|
-
var
|
|
35929
|
-
var response = TimelineMap.get("tlActions");
|
|
35930
|
-
return response;
|
|
35931
|
-
};
|
|
35955
|
+
var _wf$;
|
|
35932
35956
|
|
|
35933
|
-
var
|
|
35957
|
+
var _temp9 = function _temp9() {
|
|
35958
|
+
function _temp6() {
|
|
35959
|
+
var response = TimelineMap.get("tlActions");
|
|
35960
|
+
return response;
|
|
35961
|
+
}
|
|
35934
35962
|
|
|
35935
|
-
|
|
35936
|
-
|
|
35937
|
-
|
|
35938
|
-
|
|
35939
|
-
|
|
35940
|
-
|
|
35941
|
-
|
|
35963
|
+
var _temp5 = _forOf(wf, function (eventHappened) {
|
|
35964
|
+
function _temp4() {
|
|
35965
|
+
if (eventHappened.action === "COMMENT") {
|
|
35966
|
+
var commentAccumulator = TimelineMap.get("tlCommentStack") || [];
|
|
35967
|
+
TimelineMap.set("tlCommentStack", [].concat(commentAccumulator, [eventHappened]));
|
|
35968
|
+
} else {
|
|
35969
|
+
var eventAccumulator = TimelineMap.get("tlActions") || [];
|
|
35942
35970
|
|
|
35943
|
-
|
|
35971
|
+
var _commentAccumulator = TimelineMap.get("tlCommentStack") || [];
|
|
35944
35972
|
|
|
35945
|
-
|
|
35946
|
-
|
|
35947
|
-
|
|
35973
|
+
eventHappened.wfComments = [].concat(_commentAccumulator, eventHappened.comment ? [eventHappened] : []);
|
|
35974
|
+
TimelineMap.set("tlActions", [].concat(eventAccumulator, [eventHappened]));
|
|
35975
|
+
TimelineMap.delete("tlCommentStack");
|
|
35976
|
+
}
|
|
35948
35977
|
}
|
|
35949
|
-
}
|
|
35950
35978
|
|
|
35951
|
-
|
|
35952
|
-
|
|
35953
|
-
|
|
35979
|
+
var _temp3 = function () {
|
|
35980
|
+
if (eventHappened !== null && eventHappened !== void 0 && eventHappened.documents) {
|
|
35981
|
+
var _eventHappened$docume;
|
|
35982
|
+
|
|
35983
|
+
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) {
|
|
35984
|
+
return e === null || e === void 0 ? void 0 : e.fileStoreId;
|
|
35985
|
+
}), eventHappened === null || eventHappened === void 0 ? void 0 : eventHappened.tenantId, eventHappened === null || eventHappened === void 0 ? void 0 : eventHappened.documents)).then(function (_getThumbnails) {
|
|
35986
|
+
eventHappened.thumbnailsToShow = _getThumbnails;
|
|
35987
|
+
});
|
|
35988
|
+
}
|
|
35989
|
+
}();
|
|
35990
|
+
|
|
35991
|
+
return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
|
|
35992
|
+
});
|
|
35993
|
+
|
|
35994
|
+
return _temp5 && _temp5.then ? _temp5.then(_temp6) : _temp6(_temp5);
|
|
35995
|
+
};
|
|
35996
|
+
|
|
35997
|
+
var TimelineMap = new Map();
|
|
35998
|
+
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;
|
|
35999
|
+
var fileStoreIdsList = [];
|
|
36000
|
+
var res = {};
|
|
36001
|
+
|
|
36002
|
+
var _temp10 = function () {
|
|
36003
|
+
if (window.location.href.includes("/obps/")) {
|
|
36004
|
+
var _temp11 = function _temp11() {
|
|
36005
|
+
wf === null || wf === void 0 ? void 0 : wf.forEach(function (wfData) {
|
|
36006
|
+
var _wfData$documents;
|
|
36007
|
+
|
|
36008
|
+
wfData === null || wfData === void 0 ? void 0 : (_wfData$documents = wfData.documents) === null || _wfData$documents === void 0 ? void 0 : _wfData$documents.forEach(function (wfDoc) {
|
|
36009
|
+
if (wfDoc !== null && wfDoc !== void 0 && wfDoc.fileStoreId) wfDoc.url = res.data[wfDoc === null || wfDoc === void 0 ? void 0 : wfDoc.fileStoreId];
|
|
36010
|
+
});
|
|
36011
|
+
});
|
|
36012
|
+
};
|
|
36013
|
+
|
|
36014
|
+
wf === null || wf === void 0 ? void 0 : wf.map(function (wfData) {
|
|
36015
|
+
var _wfData$documents2;
|
|
35954
36016
|
|
|
35955
|
-
|
|
35956
|
-
|
|
35957
|
-
}), eventHappened === null || eventHappened === void 0 ? void 0 : eventHappened.tenantId)).then(function (_getThumbnails) {
|
|
35958
|
-
eventHappened.thumbnailsToShow = _getThumbnails;
|
|
36017
|
+
wfData === null || wfData === void 0 ? void 0 : (_wfData$documents2 = wfData.documents) === null || _wfData$documents2 === void 0 ? void 0 : _wfData$documents2.map(function (wfDoc) {
|
|
36018
|
+
if (wfDoc !== null && wfDoc !== void 0 && wfDoc.fileStoreId) fileStoreIdsList.push(wfDoc === null || wfDoc === void 0 ? void 0 : wfDoc.fileStoreId);
|
|
35959
36019
|
});
|
|
35960
|
-
}
|
|
35961
|
-
}();
|
|
36020
|
+
});
|
|
35962
36021
|
|
|
35963
|
-
|
|
35964
|
-
|
|
36022
|
+
var _temp12 = function () {
|
|
36023
|
+
if ((fileStoreIdsList === null || fileStoreIdsList === void 0 ? void 0 : fileStoreIdsList.length) > 0) {
|
|
36024
|
+
return Promise.resolve(Digit.UploadServices.Filefetch(fileStoreIdsList, tenantId)).then(function (_Digit$UploadServices) {
|
|
36025
|
+
res = _Digit$UploadServices;
|
|
36026
|
+
});
|
|
36027
|
+
}
|
|
36028
|
+
}();
|
|
36029
|
+
|
|
36030
|
+
return _temp12 && _temp12.then ? _temp12.then(_temp11) : _temp11(_temp12);
|
|
36031
|
+
}
|
|
36032
|
+
}();
|
|
35965
36033
|
|
|
35966
|
-
return Promise.resolve(
|
|
36034
|
+
return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(_temp9) : _temp9(_temp10));
|
|
35967
36035
|
} catch (e) {
|
|
35968
36036
|
return Promise.reject(e);
|
|
35969
36037
|
}
|
|
@@ -36023,13 +36091,13 @@ var WorkflowService = {
|
|
|
36023
36091
|
|
|
36024
36092
|
var _exit = false;
|
|
36025
36093
|
|
|
36026
|
-
function
|
|
36094
|
+
function _temp20(_result2) {
|
|
36027
36095
|
return _exit ? _result2 : {};
|
|
36028
36096
|
}
|
|
36029
36097
|
|
|
36030
36098
|
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;
|
|
36031
36099
|
|
|
36032
|
-
var
|
|
36100
|
+
var _temp19 = function () {
|
|
36033
36101
|
if (workflow && workflow.ProcessInstances) {
|
|
36034
36102
|
var _processInstances$, _businessServiceRespo;
|
|
36035
36103
|
|
|
@@ -36110,7 +36178,7 @@ var WorkflowService = {
|
|
|
36110
36178
|
return function () {
|
|
36111
36179
|
if (processInstances.length > 0) {
|
|
36112
36180
|
return Promise.resolve(makeCommentsSubsidariesOfPreviousActions(processInstances)).then(function (TLEnrichedWithWorflowData) {
|
|
36113
|
-
function
|
|
36181
|
+
function _temp18() {
|
|
36114
36182
|
var _workflow$ProcessInst, _workflow$ProcessInst2;
|
|
36115
36183
|
|
|
36116
36184
|
var nextActions = actionRolePair;
|
|
@@ -36178,17 +36246,17 @@ var WorkflowService = {
|
|
|
36178
36246
|
return checkPoint;
|
|
36179
36247
|
});
|
|
36180
36248
|
|
|
36181
|
-
var
|
|
36249
|
+
var _temp17 = function () {
|
|
36182
36250
|
if (getTripData) {
|
|
36183
|
-
var
|
|
36251
|
+
var _temp21 = _catch(function () {
|
|
36184
36252
|
var filters = {
|
|
36185
36253
|
businessService: 'FSM_VEHICLE_TRIP',
|
|
36186
36254
|
refernceNos: id
|
|
36187
36255
|
};
|
|
36188
36256
|
return Promise.resolve(Digit.FSMService.vehicleSearch(tenantId, filters)).then(function (tripSearchResp) {
|
|
36189
|
-
var
|
|
36257
|
+
var _temp15 = function () {
|
|
36190
36258
|
if (tripSearchResp && tripSearchResp.vehicleTrip && tripSearchResp.vehicleTrip.length) {
|
|
36191
|
-
var
|
|
36259
|
+
var _temp22 = function _temp22() {
|
|
36192
36260
|
var tripTimeline = [];
|
|
36193
36261
|
var disposalInProgressPosition = timeline.findIndex(function (data) {
|
|
36194
36262
|
return data.status === "DISPOSAL_IN_PROGRESS";
|
|
@@ -36227,7 +36295,7 @@ var WorkflowService = {
|
|
|
36227
36295
|
var _waitingForDisposedAction = [];
|
|
36228
36296
|
var _disposedAction = [];
|
|
36229
36297
|
|
|
36230
|
-
var
|
|
36298
|
+
var _temp23 = _forOf(tripSearchResp.vehicleTrip, function (data) {
|
|
36231
36299
|
return Promise.resolve(Digit.WorkflowService.getByBusinessId(tenantId, data.applicationNo)).then(function (resp) {
|
|
36232
36300
|
var _resp$ProcessInstance;
|
|
36233
36301
|
|
|
@@ -36297,19 +36365,19 @@ var WorkflowService = {
|
|
|
36297
36365
|
});
|
|
36298
36366
|
});
|
|
36299
36367
|
|
|
36300
|
-
return
|
|
36368
|
+
return _temp23 && _temp23.then ? _temp23.then(_temp22) : _temp22(_temp23);
|
|
36301
36369
|
}
|
|
36302
36370
|
}();
|
|
36303
36371
|
|
|
36304
|
-
if (
|
|
36372
|
+
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
|
36305
36373
|
});
|
|
36306
36374
|
}, function () {});
|
|
36307
36375
|
|
|
36308
|
-
if (
|
|
36376
|
+
if (_temp21 && _temp21.then) return _temp21.then(function () {});
|
|
36309
36377
|
}
|
|
36310
36378
|
}();
|
|
36311
36379
|
|
|
36312
|
-
return
|
|
36380
|
+
return _temp17 && _temp17.then ? _temp17.then(_temp18) : _temp18(_temp17);
|
|
36313
36381
|
});
|
|
36314
36382
|
}
|
|
36315
36383
|
}();
|
|
@@ -36318,7 +36386,7 @@ var WorkflowService = {
|
|
|
36318
36386
|
}
|
|
36319
36387
|
}();
|
|
36320
36388
|
|
|
36321
|
-
return
|
|
36389
|
+
return _temp19 && _temp19.then ? _temp19.then(_temp20) : _temp20(_temp19);
|
|
36322
36390
|
});
|
|
36323
36391
|
});
|
|
36324
36392
|
} catch (e) {
|
|
@@ -37571,200 +37639,1260 @@ var useQueryParams = function useQueryParams() {
|
|
|
37571
37639
|
return params;
|
|
37572
37640
|
};
|
|
37573
37641
|
|
|
37574
|
-
var
|
|
37575
|
-
|
|
37576
|
-
|
|
37577
|
-
|
|
37642
|
+
var b$1 = "function" === typeof Symbol && Symbol.for,
|
|
37643
|
+
c = b$1 ? Symbol.for("react.element") : 60103,
|
|
37644
|
+
d = b$1 ? Symbol.for("react.portal") : 60106,
|
|
37645
|
+
e = b$1 ? Symbol.for("react.fragment") : 60107,
|
|
37646
|
+
f = b$1 ? Symbol.for("react.strict_mode") : 60108,
|
|
37647
|
+
g = b$1 ? Symbol.for("react.profiler") : 60114,
|
|
37648
|
+
h = b$1 ? Symbol.for("react.provider") : 60109,
|
|
37649
|
+
k$1 = b$1 ? Symbol.for("react.context") : 60110,
|
|
37650
|
+
l = b$1 ? Symbol.for("react.async_mode") : 60111,
|
|
37651
|
+
m = b$1 ? Symbol.for("react.concurrent_mode") : 60111,
|
|
37652
|
+
n = b$1 ? Symbol.for("react.forward_ref") : 60112,
|
|
37653
|
+
p = b$1 ? Symbol.for("react.suspense") : 60113,
|
|
37654
|
+
q = b$1 ? Symbol.for("react.suspense_list") : 60120,
|
|
37655
|
+
r = b$1 ? Symbol.for("react.memo") : 60115,
|
|
37656
|
+
t = b$1 ? Symbol.for("react.lazy") : 60116,
|
|
37657
|
+
v = b$1 ? Symbol.for("react.block") : 60121,
|
|
37658
|
+
w = b$1 ? Symbol.for("react.fundamental") : 60117,
|
|
37659
|
+
x = b$1 ? Symbol.for("react.responder") : 60118,
|
|
37660
|
+
y$1 = b$1 ? Symbol.for("react.scope") : 60119;
|
|
37661
|
+
|
|
37662
|
+
function z(a) {
|
|
37663
|
+
if ("object" === typeof a && null !== a) {
|
|
37664
|
+
var u = a.$$typeof;
|
|
37665
|
+
|
|
37666
|
+
switch (u) {
|
|
37667
|
+
case c:
|
|
37668
|
+
switch (a = a.type, a) {
|
|
37669
|
+
case l:
|
|
37670
|
+
case m:
|
|
37671
|
+
case e:
|
|
37672
|
+
case g:
|
|
37673
|
+
case f:
|
|
37674
|
+
case p:
|
|
37675
|
+
return a;
|
|
37578
37676
|
|
|
37579
|
-
|
|
37580
|
-
|
|
37581
|
-
|
|
37582
|
-
|
|
37583
|
-
|
|
37584
|
-
|
|
37677
|
+
default:
|
|
37678
|
+
switch (a = a && a.$$typeof, a) {
|
|
37679
|
+
case k$1:
|
|
37680
|
+
case n:
|
|
37681
|
+
case t:
|
|
37682
|
+
case r:
|
|
37683
|
+
case h:
|
|
37684
|
+
return a;
|
|
37585
37685
|
|
|
37586
|
-
|
|
37587
|
-
|
|
37588
|
-
|
|
37589
|
-
}, [isActive]);
|
|
37686
|
+
default:
|
|
37687
|
+
return u;
|
|
37688
|
+
}
|
|
37590
37689
|
|
|
37591
|
-
|
|
37592
|
-
|
|
37593
|
-
|
|
37690
|
+
}
|
|
37691
|
+
|
|
37692
|
+
case d:
|
|
37693
|
+
return u;
|
|
37594
37694
|
}
|
|
37695
|
+
}
|
|
37696
|
+
}
|
|
37595
37697
|
|
|
37596
|
-
|
|
37597
|
-
|
|
37598
|
-
}
|
|
37698
|
+
function A(a) {
|
|
37699
|
+
return z(a) === m;
|
|
37700
|
+
}
|
|
37599
37701
|
|
|
37600
|
-
var
|
|
37601
|
-
|
|
37602
|
-
|
|
37603
|
-
var
|
|
37604
|
-
|
|
37702
|
+
var AsyncMode = l;
|
|
37703
|
+
var ConcurrentMode = m;
|
|
37704
|
+
var ContextConsumer = k$1;
|
|
37705
|
+
var ContextProvider = h;
|
|
37706
|
+
var Element = c;
|
|
37707
|
+
var ForwardRef = n;
|
|
37708
|
+
var Fragment = e;
|
|
37709
|
+
var Lazy = t;
|
|
37710
|
+
var Memo = r;
|
|
37711
|
+
var Portal = d;
|
|
37712
|
+
var Profiler = g;
|
|
37713
|
+
var StrictMode = f;
|
|
37714
|
+
var Suspense = p;
|
|
37605
37715
|
|
|
37606
|
-
|
|
37607
|
-
|
|
37716
|
+
var isAsyncMode = function isAsyncMode(a) {
|
|
37717
|
+
return A(a) || z(a) === l;
|
|
37718
|
+
};
|
|
37608
37719
|
|
|
37609
|
-
|
|
37610
|
-
config = {};
|
|
37611
|
-
}
|
|
37720
|
+
var isConcurrentMode = A;
|
|
37612
37721
|
|
|
37613
|
-
|
|
37722
|
+
var isContextConsumer = function isContextConsumer(a) {
|
|
37723
|
+
return z(a) === k$1;
|
|
37724
|
+
};
|
|
37614
37725
|
|
|
37615
|
-
|
|
37616
|
-
|
|
37617
|
-
|
|
37726
|
+
var isContextProvider = function isContextProvider(a) {
|
|
37727
|
+
return z(a) === h;
|
|
37728
|
+
};
|
|
37618
37729
|
|
|
37619
|
-
|
|
37620
|
-
|
|
37621
|
-
|
|
37622
|
-
}, filters);
|
|
37730
|
+
var isElement = function isElement(a) {
|
|
37731
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
37732
|
+
};
|
|
37623
37733
|
|
|
37624
|
-
|
|
37734
|
+
var isForwardRef = function isForwardRef(a) {
|
|
37735
|
+
return z(a) === n;
|
|
37736
|
+
};
|
|
37625
37737
|
|
|
37626
|
-
|
|
37627
|
-
|
|
37628
|
-
|
|
37629
|
-
refetchOnMount: true,
|
|
37630
|
-
retry: false
|
|
37631
|
-
}, config)),
|
|
37632
|
-
isLoading = _useQuery.isLoading,
|
|
37633
|
-
error = _useQuery.error,
|
|
37634
|
-
isError = _useQuery.isError,
|
|
37635
|
-
data = _useQuery.data,
|
|
37636
|
-
status = _useQuery.status;
|
|
37738
|
+
var isFragment = function isFragment(a) {
|
|
37739
|
+
return z(a) === e;
|
|
37740
|
+
};
|
|
37637
37741
|
|
|
37638
|
-
|
|
37639
|
-
|
|
37640
|
-
error: error,
|
|
37641
|
-
isError: isError,
|
|
37642
|
-
data: data,
|
|
37643
|
-
status: status,
|
|
37644
|
-
revalidate: function revalidate() {
|
|
37645
|
-
return queryClient.invalidateQueries(["citizenBillsForBuisnessService", businessService]);
|
|
37646
|
-
}
|
|
37647
|
-
};
|
|
37742
|
+
var isLazy = function isLazy(a) {
|
|
37743
|
+
return z(a) === t;
|
|
37648
37744
|
};
|
|
37649
|
-
var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService(_ref3, config) {
|
|
37650
|
-
var _Digit$UserService$ge2, _Digit$UserService$ge3;
|
|
37651
37745
|
|
|
37652
|
-
|
|
37653
|
-
|
|
37654
|
-
|
|
37746
|
+
var isMemo = function isMemo(a) {
|
|
37747
|
+
return z(a) === r;
|
|
37748
|
+
};
|
|
37655
37749
|
|
|
37656
|
-
|
|
37657
|
-
|
|
37658
|
-
|
|
37750
|
+
var isPortal = function isPortal(a) {
|
|
37751
|
+
return z(a) === d;
|
|
37752
|
+
};
|
|
37659
37753
|
|
|
37660
|
-
|
|
37661
|
-
|
|
37754
|
+
var isProfiler = function isProfiler(a) {
|
|
37755
|
+
return z(a) === g;
|
|
37756
|
+
};
|
|
37662
37757
|
|
|
37663
|
-
|
|
37664
|
-
|
|
37665
|
-
|
|
37758
|
+
var isStrictMode = function isStrictMode(a) {
|
|
37759
|
+
return z(a) === f;
|
|
37760
|
+
};
|
|
37666
37761
|
|
|
37667
|
-
|
|
37762
|
+
var isSuspense = function isSuspense(a) {
|
|
37763
|
+
return z(a) === p;
|
|
37764
|
+
};
|
|
37668
37765
|
|
|
37669
|
-
|
|
37670
|
-
|
|
37671
|
-
|
|
37672
|
-
retry: function retry(count, err) {
|
|
37673
|
-
return false;
|
|
37674
|
-
}
|
|
37675
|
-
}, config)),
|
|
37676
|
-
isLoading = _useQuery2.isLoading,
|
|
37677
|
-
error = _useQuery2.error,
|
|
37678
|
-
isError = _useQuery2.isError,
|
|
37679
|
-
data = _useQuery2.data,
|
|
37680
|
-
status = _useQuery2.status;
|
|
37766
|
+
var isValidElementType = function isValidElementType(a) {
|
|
37767
|
+
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);
|
|
37768
|
+
};
|
|
37681
37769
|
|
|
37682
|
-
|
|
37683
|
-
|
|
37684
|
-
|
|
37685
|
-
|
|
37686
|
-
|
|
37687
|
-
|
|
37688
|
-
|
|
37689
|
-
|
|
37690
|
-
|
|
37691
|
-
|
|
37770
|
+
var typeOf = z;
|
|
37771
|
+
var reactIs_production_min = {
|
|
37772
|
+
AsyncMode: AsyncMode,
|
|
37773
|
+
ConcurrentMode: ConcurrentMode,
|
|
37774
|
+
ContextConsumer: ContextConsumer,
|
|
37775
|
+
ContextProvider: ContextProvider,
|
|
37776
|
+
Element: Element,
|
|
37777
|
+
ForwardRef: ForwardRef,
|
|
37778
|
+
Fragment: Fragment,
|
|
37779
|
+
Lazy: Lazy,
|
|
37780
|
+
Memo: Memo,
|
|
37781
|
+
Portal: Portal,
|
|
37782
|
+
Profiler: Profiler,
|
|
37783
|
+
StrictMode: StrictMode,
|
|
37784
|
+
Suspense: Suspense,
|
|
37785
|
+
isAsyncMode: isAsyncMode,
|
|
37786
|
+
isConcurrentMode: isConcurrentMode,
|
|
37787
|
+
isContextConsumer: isContextConsumer,
|
|
37788
|
+
isContextProvider: isContextProvider,
|
|
37789
|
+
isElement: isElement,
|
|
37790
|
+
isForwardRef: isForwardRef,
|
|
37791
|
+
isFragment: isFragment,
|
|
37792
|
+
isLazy: isLazy,
|
|
37793
|
+
isMemo: isMemo,
|
|
37794
|
+
isPortal: isPortal,
|
|
37795
|
+
isProfiler: isProfiler,
|
|
37796
|
+
isStrictMode: isStrictMode,
|
|
37797
|
+
isSuspense: isSuspense,
|
|
37798
|
+
isValidElementType: isValidElementType,
|
|
37799
|
+
typeOf: typeOf
|
|
37692
37800
|
};
|
|
37693
|
-
var useFetchPayment = function useFetchPayment(_ref4, config) {
|
|
37694
|
-
var tenantId = _ref4.tenantId,
|
|
37695
|
-
consumerCode = _ref4.consumerCode,
|
|
37696
|
-
businessService = _ref4.businessService;
|
|
37697
|
-
var queryClient = useQueryClient();
|
|
37698
37801
|
|
|
37699
|
-
|
|
37700
|
-
try {
|
|
37701
|
-
if (businessService !== null && businessService !== void 0 && businessService.includes("PT")) {
|
|
37702
|
-
return Promise.resolve(Digit.PaymentService.fetchBill(tenantId, {
|
|
37703
|
-
consumerCode: consumerCode,
|
|
37704
|
-
businessService: businessService
|
|
37705
|
-
})).then(function (fetchedBill) {
|
|
37706
|
-
var _fetchedBill$Bill, _fetchedBill$Bill$, _fetchedBill$Bill$$bi, _fetchedBill$Bill$$bi2, _fetchedBill$Bill3, _fetchedBill$Bill3$, _fetchedBill$Bill3$$b;
|
|
37802
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
37707
37803
|
|
|
37708
|
-
|
|
37709
|
-
|
|
37710
|
-
})) === null || _fetchedBill$Bill$$bi2 === void 0 ? void 0 : _fetchedBill$Bill$$bi2[0]) || {};
|
|
37711
|
-
fetchedBill.Bill[0].billDetails = fetchedBill.Bill[0].billDetails.map(function (ele) {
|
|
37712
|
-
var _fetchedBill$Bill2, _fetchedBill$Bill2$;
|
|
37804
|
+
if (process.env.NODE_ENV !== "production") {
|
|
37805
|
+
(function () {
|
|
37713
37806
|
|
|
37714
|
-
|
|
37715
|
-
|
|
37716
|
-
|
|
37717
|
-
|
|
37718
|
-
|
|
37807
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
37808
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
37809
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
37810
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
37811
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
37812
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
37813
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
37814
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
37815
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
37816
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
37817
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
37818
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
37819
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
37820
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
37821
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
37822
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
37823
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
37824
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
37825
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
37826
|
+
|
|
37827
|
+
function isValidElementType(type) {
|
|
37828
|
+
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);
|
|
37829
|
+
}
|
|
37830
|
+
|
|
37831
|
+
function typeOf(object) {
|
|
37832
|
+
if (typeof object === 'object' && object !== null) {
|
|
37833
|
+
var $$typeof = object.$$typeof;
|
|
37834
|
+
|
|
37835
|
+
switch ($$typeof) {
|
|
37836
|
+
case REACT_ELEMENT_TYPE:
|
|
37837
|
+
var type = object.type;
|
|
37838
|
+
|
|
37839
|
+
switch (type) {
|
|
37840
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
37841
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
37842
|
+
case REACT_FRAGMENT_TYPE:
|
|
37843
|
+
case REACT_PROFILER_TYPE:
|
|
37844
|
+
case REACT_STRICT_MODE_TYPE:
|
|
37845
|
+
case REACT_SUSPENSE_TYPE:
|
|
37846
|
+
return type;
|
|
37719
37847
|
|
|
37720
|
-
|
|
37721
|
-
|
|
37848
|
+
default:
|
|
37849
|
+
var $$typeofType = type && type.$$typeof;
|
|
37722
37850
|
|
|
37723
|
-
|
|
37724
|
-
|
|
37725
|
-
|
|
37726
|
-
|
|
37727
|
-
|
|
37728
|
-
|
|
37729
|
-
|
|
37730
|
-
|
|
37731
|
-
|
|
37732
|
-
|
|
37851
|
+
switch ($$typeofType) {
|
|
37852
|
+
case REACT_CONTEXT_TYPE:
|
|
37853
|
+
case REACT_FORWARD_REF_TYPE:
|
|
37854
|
+
case REACT_LAZY_TYPE:
|
|
37855
|
+
case REACT_MEMO_TYPE:
|
|
37856
|
+
case REACT_PROVIDER_TYPE:
|
|
37857
|
+
return $$typeofType;
|
|
37858
|
+
|
|
37859
|
+
default:
|
|
37860
|
+
return $$typeof;
|
|
37861
|
+
}
|
|
37733
37862
|
|
|
37734
|
-
billdet.expiryDate = searchBill === null || searchBill === void 0 ? void 0 : (_searchBill$Bill = searchBill.Bill) === null || _searchBill$Bill === void 0 ? void 0 : (_searchBill$Bill$ = _searchBill$Bill[0]) === null || _searchBill$Bill$ === void 0 ? void 0 : (_searchBill$Bill$$bil = _searchBill$Bill$.billDetails) === null || _searchBill$Bill$$bil === void 0 ? void 0 : (_searchBill$Bill$$bil2 = _searchBill$Bill$$bil[0]) === null || _searchBill$Bill$$bil2 === void 0 ? void 0 : _searchBill$Bill$$bil2.expiryDate;
|
|
37735
|
-
billdet.billNumber = searchBill === null || searchBill === void 0 ? void 0 : (_searchBill$Bill2 = searchBill.Bill) === null || _searchBill$Bill2 === void 0 ? void 0 : (_searchBill$Bill2$ = _searchBill$Bill2[0]) === null || _searchBill$Bill2$ === void 0 ? void 0 : _searchBill$Bill2$.billNumber;
|
|
37736
|
-
});
|
|
37737
|
-
} catch (e) {
|
|
37738
|
-
return Promise.reject(e);
|
|
37739
37863
|
}
|
|
37740
|
-
|
|
37864
|
+
|
|
37865
|
+
case REACT_PORTAL_TYPE:
|
|
37866
|
+
return $$typeof;
|
|
37741
37867
|
}
|
|
37868
|
+
}
|
|
37742
37869
|
|
|
37743
|
-
|
|
37744
|
-
});
|
|
37745
|
-
} else {
|
|
37746
|
-
return Promise.resolve(Digit.PaymentService.fetchBill(tenantId, {
|
|
37747
|
-
consumerCode: consumerCode,
|
|
37748
|
-
businessService: businessService
|
|
37749
|
-
}));
|
|
37870
|
+
return undefined;
|
|
37750
37871
|
}
|
|
37751
|
-
} catch (e) {
|
|
37752
|
-
return Promise.reject(e);
|
|
37753
|
-
}
|
|
37754
|
-
};
|
|
37755
37872
|
|
|
37756
|
-
|
|
37757
|
-
|
|
37873
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
37874
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
37875
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
37876
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
37877
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
37878
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
37879
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
37880
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
37881
|
+
var Memo = REACT_MEMO_TYPE;
|
|
37882
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
37883
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
37884
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
37885
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
37886
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
37758
37887
|
|
|
37759
|
-
|
|
37760
|
-
|
|
37888
|
+
function isAsyncMode(object) {
|
|
37889
|
+
{
|
|
37890
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
37891
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
37892
|
+
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.');
|
|
37893
|
+
}
|
|
37894
|
+
}
|
|
37895
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
37896
|
+
}
|
|
37761
37897
|
|
|
37762
|
-
|
|
37763
|
-
|
|
37764
|
-
|
|
37765
|
-
|
|
37766
|
-
|
|
37767
|
-
|
|
37898
|
+
function isConcurrentMode(object) {
|
|
37899
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
37900
|
+
}
|
|
37901
|
+
|
|
37902
|
+
function isContextConsumer(object) {
|
|
37903
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
37904
|
+
}
|
|
37905
|
+
|
|
37906
|
+
function isContextProvider(object) {
|
|
37907
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
37908
|
+
}
|
|
37909
|
+
|
|
37910
|
+
function isElement(object) {
|
|
37911
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
37912
|
+
}
|
|
37913
|
+
|
|
37914
|
+
function isForwardRef(object) {
|
|
37915
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
37916
|
+
}
|
|
37917
|
+
|
|
37918
|
+
function isFragment(object) {
|
|
37919
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
37920
|
+
}
|
|
37921
|
+
|
|
37922
|
+
function isLazy(object) {
|
|
37923
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
37924
|
+
}
|
|
37925
|
+
|
|
37926
|
+
function isMemo(object) {
|
|
37927
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
37928
|
+
}
|
|
37929
|
+
|
|
37930
|
+
function isPortal(object) {
|
|
37931
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
37932
|
+
}
|
|
37933
|
+
|
|
37934
|
+
function isProfiler(object) {
|
|
37935
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
37936
|
+
}
|
|
37937
|
+
|
|
37938
|
+
function isStrictMode(object) {
|
|
37939
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
37940
|
+
}
|
|
37941
|
+
|
|
37942
|
+
function isSuspense(object) {
|
|
37943
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
37944
|
+
}
|
|
37945
|
+
|
|
37946
|
+
exports.AsyncMode = AsyncMode;
|
|
37947
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
37948
|
+
exports.ContextConsumer = ContextConsumer;
|
|
37949
|
+
exports.ContextProvider = ContextProvider;
|
|
37950
|
+
exports.Element = Element;
|
|
37951
|
+
exports.ForwardRef = ForwardRef;
|
|
37952
|
+
exports.Fragment = Fragment;
|
|
37953
|
+
exports.Lazy = Lazy;
|
|
37954
|
+
exports.Memo = Memo;
|
|
37955
|
+
exports.Portal = Portal;
|
|
37956
|
+
exports.Profiler = Profiler;
|
|
37957
|
+
exports.StrictMode = StrictMode;
|
|
37958
|
+
exports.Suspense = Suspense;
|
|
37959
|
+
exports.isAsyncMode = isAsyncMode;
|
|
37960
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
37961
|
+
exports.isContextConsumer = isContextConsumer;
|
|
37962
|
+
exports.isContextProvider = isContextProvider;
|
|
37963
|
+
exports.isElement = isElement;
|
|
37964
|
+
exports.isForwardRef = isForwardRef;
|
|
37965
|
+
exports.isFragment = isFragment;
|
|
37966
|
+
exports.isLazy = isLazy;
|
|
37967
|
+
exports.isMemo = isMemo;
|
|
37968
|
+
exports.isPortal = isPortal;
|
|
37969
|
+
exports.isProfiler = isProfiler;
|
|
37970
|
+
exports.isStrictMode = isStrictMode;
|
|
37971
|
+
exports.isSuspense = isSuspense;
|
|
37972
|
+
exports.isValidElementType = isValidElementType;
|
|
37973
|
+
exports.typeOf = typeOf;
|
|
37974
|
+
})();
|
|
37975
|
+
}
|
|
37976
|
+
});
|
|
37977
|
+
|
|
37978
|
+
var reactIs = createCommonjsModule(function (module) {
|
|
37979
|
+
|
|
37980
|
+
if (process.env.NODE_ENV === 'production') {
|
|
37981
|
+
module.exports = reactIs_production_min;
|
|
37982
|
+
} else {
|
|
37983
|
+
module.exports = reactIs_development;
|
|
37984
|
+
}
|
|
37985
|
+
});
|
|
37986
|
+
|
|
37987
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
37988
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
37989
|
+
|
|
37990
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
37991
|
+
|
|
37992
|
+
var printWarning = function printWarning() {};
|
|
37993
|
+
|
|
37994
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
37995
|
+
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
37996
|
+
var loggedTypeFailures = {};
|
|
37997
|
+
var has$1 = has;
|
|
37998
|
+
|
|
37999
|
+
printWarning = function printWarning(text) {
|
|
38000
|
+
var message = 'Warning: ' + text;
|
|
38001
|
+
|
|
38002
|
+
if (typeof console !== 'undefined') {
|
|
38003
|
+
console.error(message);
|
|
38004
|
+
}
|
|
38005
|
+
|
|
38006
|
+
try {
|
|
38007
|
+
throw new Error(message);
|
|
38008
|
+
} catch (x) {}
|
|
38009
|
+
};
|
|
38010
|
+
}
|
|
38011
|
+
|
|
38012
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
38013
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38014
|
+
for (var typeSpecName in typeSpecs) {
|
|
38015
|
+
if (has$1(typeSpecs, typeSpecName)) {
|
|
38016
|
+
var error;
|
|
38017
|
+
|
|
38018
|
+
try {
|
|
38019
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
38020
|
+
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`.');
|
|
38021
|
+
err.name = 'Invariant Violation';
|
|
38022
|
+
throw err;
|
|
38023
|
+
}
|
|
38024
|
+
|
|
38025
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
|
|
38026
|
+
} catch (ex) {
|
|
38027
|
+
error = ex;
|
|
38028
|
+
}
|
|
38029
|
+
|
|
38030
|
+
if (error && !(error instanceof Error)) {
|
|
38031
|
+
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).');
|
|
38032
|
+
}
|
|
38033
|
+
|
|
38034
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
38035
|
+
loggedTypeFailures[error.message] = true;
|
|
38036
|
+
var stack = getStack ? getStack() : '';
|
|
38037
|
+
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
38038
|
+
}
|
|
38039
|
+
}
|
|
38040
|
+
}
|
|
38041
|
+
}
|
|
38042
|
+
}
|
|
38043
|
+
|
|
38044
|
+
checkPropTypes.resetWarningCache = function () {
|
|
38045
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38046
|
+
loggedTypeFailures = {};
|
|
38047
|
+
}
|
|
38048
|
+
};
|
|
38049
|
+
|
|
38050
|
+
var checkPropTypes_1 = checkPropTypes;
|
|
38051
|
+
|
|
38052
|
+
var printWarning$1 = function printWarning() {};
|
|
38053
|
+
|
|
38054
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38055
|
+
printWarning$1 = function printWarning(text) {
|
|
38056
|
+
var message = 'Warning: ' + text;
|
|
38057
|
+
|
|
38058
|
+
if (typeof console !== 'undefined') {
|
|
38059
|
+
console.error(message);
|
|
38060
|
+
}
|
|
38061
|
+
|
|
38062
|
+
try {
|
|
38063
|
+
throw new Error(message);
|
|
38064
|
+
} catch (x) {}
|
|
38065
|
+
};
|
|
38066
|
+
}
|
|
38067
|
+
|
|
38068
|
+
function emptyFunctionThatReturnsNull() {
|
|
38069
|
+
return null;
|
|
38070
|
+
}
|
|
38071
|
+
|
|
38072
|
+
var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, throwOnDirectAccess) {
|
|
38073
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
38074
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
38075
|
+
|
|
38076
|
+
function getIteratorFn(maybeIterable) {
|
|
38077
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
38078
|
+
|
|
38079
|
+
if (typeof iteratorFn === 'function') {
|
|
38080
|
+
return iteratorFn;
|
|
38081
|
+
}
|
|
38082
|
+
}
|
|
38083
|
+
|
|
38084
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
38085
|
+
var ReactPropTypes = {
|
|
38086
|
+
array: createPrimitiveTypeChecker('array'),
|
|
38087
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
38088
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
38089
|
+
func: createPrimitiveTypeChecker('function'),
|
|
38090
|
+
number: createPrimitiveTypeChecker('number'),
|
|
38091
|
+
object: createPrimitiveTypeChecker('object'),
|
|
38092
|
+
string: createPrimitiveTypeChecker('string'),
|
|
38093
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
38094
|
+
any: createAnyTypeChecker(),
|
|
38095
|
+
arrayOf: createArrayOfTypeChecker,
|
|
38096
|
+
element: createElementTypeChecker(),
|
|
38097
|
+
elementType: createElementTypeTypeChecker(),
|
|
38098
|
+
instanceOf: createInstanceTypeChecker,
|
|
38099
|
+
node: createNodeChecker(),
|
|
38100
|
+
objectOf: createObjectOfTypeChecker,
|
|
38101
|
+
oneOf: createEnumTypeChecker,
|
|
38102
|
+
oneOfType: createUnionTypeChecker,
|
|
38103
|
+
shape: createShapeTypeChecker,
|
|
38104
|
+
exact: createStrictShapeTypeChecker
|
|
38105
|
+
};
|
|
38106
|
+
|
|
38107
|
+
function is(x, y) {
|
|
38108
|
+
if (x === y) {
|
|
38109
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
38110
|
+
} else {
|
|
38111
|
+
return x !== x && y !== y;
|
|
38112
|
+
}
|
|
38113
|
+
}
|
|
38114
|
+
|
|
38115
|
+
function PropTypeError(message, data) {
|
|
38116
|
+
this.message = message;
|
|
38117
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
38118
|
+
this.stack = '';
|
|
38119
|
+
}
|
|
38120
|
+
|
|
38121
|
+
PropTypeError.prototype = Error.prototype;
|
|
38122
|
+
|
|
38123
|
+
function createChainableTypeChecker(validate) {
|
|
38124
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38125
|
+
var manualPropTypeCallCache = {};
|
|
38126
|
+
var manualPropTypeWarningCount = 0;
|
|
38127
|
+
}
|
|
38128
|
+
|
|
38129
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
38130
|
+
componentName = componentName || ANONYMOUS;
|
|
38131
|
+
propFullName = propFullName || propName;
|
|
38132
|
+
|
|
38133
|
+
if (secret !== ReactPropTypesSecret_1) {
|
|
38134
|
+
if (throwOnDirectAccess) {
|
|
38135
|
+
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');
|
|
38136
|
+
err.name = 'Invariant Violation';
|
|
38137
|
+
throw err;
|
|
38138
|
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
38139
|
+
var cacheKey = componentName + ':' + propName;
|
|
38140
|
+
|
|
38141
|
+
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
|
|
38142
|
+
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.');
|
|
38143
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
38144
|
+
manualPropTypeWarningCount++;
|
|
38145
|
+
}
|
|
38146
|
+
}
|
|
38147
|
+
}
|
|
38148
|
+
|
|
38149
|
+
if (props[propName] == null) {
|
|
38150
|
+
if (isRequired) {
|
|
38151
|
+
if (props[propName] === null) {
|
|
38152
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
38153
|
+
}
|
|
38154
|
+
|
|
38155
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
38156
|
+
}
|
|
38157
|
+
|
|
38158
|
+
return null;
|
|
38159
|
+
} else {
|
|
38160
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
38161
|
+
}
|
|
38162
|
+
}
|
|
38163
|
+
|
|
38164
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
38165
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
38166
|
+
return chainedCheckType;
|
|
38167
|
+
}
|
|
38168
|
+
|
|
38169
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
38170
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
38171
|
+
var propValue = props[propName];
|
|
38172
|
+
var propType = getPropType(propValue);
|
|
38173
|
+
|
|
38174
|
+
if (propType !== expectedType) {
|
|
38175
|
+
var preciseType = getPreciseType(propValue);
|
|
38176
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
38177
|
+
expectedType: expectedType
|
|
38178
|
+
});
|
|
38179
|
+
}
|
|
38180
|
+
|
|
38181
|
+
return null;
|
|
38182
|
+
}
|
|
38183
|
+
|
|
38184
|
+
return createChainableTypeChecker(validate);
|
|
38185
|
+
}
|
|
38186
|
+
|
|
38187
|
+
function createAnyTypeChecker() {
|
|
38188
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
38189
|
+
}
|
|
38190
|
+
|
|
38191
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
38192
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38193
|
+
if (typeof typeChecker !== 'function') {
|
|
38194
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
38195
|
+
}
|
|
38196
|
+
|
|
38197
|
+
var propValue = props[propName];
|
|
38198
|
+
|
|
38199
|
+
if (!Array.isArray(propValue)) {
|
|
38200
|
+
var propType = getPropType(propValue);
|
|
38201
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
38202
|
+
}
|
|
38203
|
+
|
|
38204
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
38205
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
|
|
38206
|
+
|
|
38207
|
+
if (error instanceof Error) {
|
|
38208
|
+
return error;
|
|
38209
|
+
}
|
|
38210
|
+
}
|
|
38211
|
+
|
|
38212
|
+
return null;
|
|
38213
|
+
}
|
|
38214
|
+
|
|
38215
|
+
return createChainableTypeChecker(validate);
|
|
38216
|
+
}
|
|
38217
|
+
|
|
38218
|
+
function createElementTypeChecker() {
|
|
38219
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38220
|
+
var propValue = props[propName];
|
|
38221
|
+
|
|
38222
|
+
if (!isValidElement(propValue)) {
|
|
38223
|
+
var propType = getPropType(propValue);
|
|
38224
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
38225
|
+
}
|
|
38226
|
+
|
|
38227
|
+
return null;
|
|
38228
|
+
}
|
|
38229
|
+
|
|
38230
|
+
return createChainableTypeChecker(validate);
|
|
38231
|
+
}
|
|
38232
|
+
|
|
38233
|
+
function createElementTypeTypeChecker() {
|
|
38234
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38235
|
+
var propValue = props[propName];
|
|
38236
|
+
|
|
38237
|
+
if (!reactIs.isValidElementType(propValue)) {
|
|
38238
|
+
var propType = getPropType(propValue);
|
|
38239
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
38240
|
+
}
|
|
38241
|
+
|
|
38242
|
+
return null;
|
|
38243
|
+
}
|
|
38244
|
+
|
|
38245
|
+
return createChainableTypeChecker(validate);
|
|
38246
|
+
}
|
|
38247
|
+
|
|
38248
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
38249
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38250
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
38251
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
38252
|
+
var actualClassName = getClassName(props[propName]);
|
|
38253
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
38254
|
+
}
|
|
38255
|
+
|
|
38256
|
+
return null;
|
|
38257
|
+
}
|
|
38258
|
+
|
|
38259
|
+
return createChainableTypeChecker(validate);
|
|
38260
|
+
}
|
|
38261
|
+
|
|
38262
|
+
function createEnumTypeChecker(expectedValues) {
|
|
38263
|
+
if (!Array.isArray(expectedValues)) {
|
|
38264
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38265
|
+
if (arguments.length > 1) {
|
|
38266
|
+
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]).');
|
|
38267
|
+
} else {
|
|
38268
|
+
printWarning$1('Invalid argument supplied to oneOf, expected an array.');
|
|
38269
|
+
}
|
|
38270
|
+
}
|
|
38271
|
+
|
|
38272
|
+
return emptyFunctionThatReturnsNull;
|
|
38273
|
+
}
|
|
38274
|
+
|
|
38275
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38276
|
+
var propValue = props[propName];
|
|
38277
|
+
|
|
38278
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
38279
|
+
if (is(propValue, expectedValues[i])) {
|
|
38280
|
+
return null;
|
|
38281
|
+
}
|
|
38282
|
+
}
|
|
38283
|
+
|
|
38284
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
38285
|
+
var type = getPreciseType(value);
|
|
38286
|
+
|
|
38287
|
+
if (type === 'symbol') {
|
|
38288
|
+
return String(value);
|
|
38289
|
+
}
|
|
38290
|
+
|
|
38291
|
+
return value;
|
|
38292
|
+
});
|
|
38293
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
38294
|
+
}
|
|
38295
|
+
|
|
38296
|
+
return createChainableTypeChecker(validate);
|
|
38297
|
+
}
|
|
38298
|
+
|
|
38299
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
38300
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38301
|
+
if (typeof typeChecker !== 'function') {
|
|
38302
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
38303
|
+
}
|
|
38304
|
+
|
|
38305
|
+
var propValue = props[propName];
|
|
38306
|
+
var propType = getPropType(propValue);
|
|
38307
|
+
|
|
38308
|
+
if (propType !== 'object') {
|
|
38309
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
38310
|
+
}
|
|
38311
|
+
|
|
38312
|
+
for (var key in propValue) {
|
|
38313
|
+
if (has(propValue, key)) {
|
|
38314
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
38315
|
+
|
|
38316
|
+
if (error instanceof Error) {
|
|
38317
|
+
return error;
|
|
38318
|
+
}
|
|
38319
|
+
}
|
|
38320
|
+
}
|
|
38321
|
+
|
|
38322
|
+
return null;
|
|
38323
|
+
}
|
|
38324
|
+
|
|
38325
|
+
return createChainableTypeChecker(validate);
|
|
38326
|
+
}
|
|
38327
|
+
|
|
38328
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
38329
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
38330
|
+
process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
38331
|
+
return emptyFunctionThatReturnsNull;
|
|
38332
|
+
}
|
|
38333
|
+
|
|
38334
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
38335
|
+
var checker = arrayOfTypeCheckers[i];
|
|
38336
|
+
|
|
38337
|
+
if (typeof checker !== 'function') {
|
|
38338
|
+
printWarning$1('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
38339
|
+
return emptyFunctionThatReturnsNull;
|
|
38340
|
+
}
|
|
38341
|
+
}
|
|
38342
|
+
|
|
38343
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38344
|
+
var expectedTypes = [];
|
|
38345
|
+
|
|
38346
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
38347
|
+
var checker = arrayOfTypeCheckers[i];
|
|
38348
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
|
|
38349
|
+
|
|
38350
|
+
if (checkerResult == null) {
|
|
38351
|
+
return null;
|
|
38352
|
+
}
|
|
38353
|
+
|
|
38354
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
38355
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
38356
|
+
}
|
|
38357
|
+
}
|
|
38358
|
+
|
|
38359
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
38360
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
38361
|
+
}
|
|
38362
|
+
|
|
38363
|
+
return createChainableTypeChecker(validate);
|
|
38364
|
+
}
|
|
38365
|
+
|
|
38366
|
+
function createNodeChecker() {
|
|
38367
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38368
|
+
if (!isNode(props[propName])) {
|
|
38369
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
38370
|
+
}
|
|
38371
|
+
|
|
38372
|
+
return null;
|
|
38373
|
+
}
|
|
38374
|
+
|
|
38375
|
+
return createChainableTypeChecker(validate);
|
|
38376
|
+
}
|
|
38377
|
+
|
|
38378
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
38379
|
+
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 + '`.');
|
|
38380
|
+
}
|
|
38381
|
+
|
|
38382
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
38383
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38384
|
+
var propValue = props[propName];
|
|
38385
|
+
var propType = getPropType(propValue);
|
|
38386
|
+
|
|
38387
|
+
if (propType !== 'object') {
|
|
38388
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
38389
|
+
}
|
|
38390
|
+
|
|
38391
|
+
for (var key in shapeTypes) {
|
|
38392
|
+
var checker = shapeTypes[key];
|
|
38393
|
+
|
|
38394
|
+
if (typeof checker !== 'function') {
|
|
38395
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
38396
|
+
}
|
|
38397
|
+
|
|
38398
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
38399
|
+
|
|
38400
|
+
if (error) {
|
|
38401
|
+
return error;
|
|
38402
|
+
}
|
|
38403
|
+
}
|
|
38404
|
+
|
|
38405
|
+
return null;
|
|
38406
|
+
}
|
|
38407
|
+
|
|
38408
|
+
return createChainableTypeChecker(validate);
|
|
38409
|
+
}
|
|
38410
|
+
|
|
38411
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
38412
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
38413
|
+
var propValue = props[propName];
|
|
38414
|
+
var propType = getPropType(propValue);
|
|
38415
|
+
|
|
38416
|
+
if (propType !== 'object') {
|
|
38417
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
38418
|
+
}
|
|
38419
|
+
|
|
38420
|
+
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
38421
|
+
|
|
38422
|
+
for (var key in allKeys) {
|
|
38423
|
+
var checker = shapeTypes[key];
|
|
38424
|
+
|
|
38425
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
38426
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
38427
|
+
}
|
|
38428
|
+
|
|
38429
|
+
if (!checker) {
|
|
38430
|
+
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, ' '));
|
|
38431
|
+
}
|
|
38432
|
+
|
|
38433
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
38434
|
+
|
|
38435
|
+
if (error) {
|
|
38436
|
+
return error;
|
|
38437
|
+
}
|
|
38438
|
+
}
|
|
38439
|
+
|
|
38440
|
+
return null;
|
|
38441
|
+
}
|
|
38442
|
+
|
|
38443
|
+
return createChainableTypeChecker(validate);
|
|
38444
|
+
}
|
|
38445
|
+
|
|
38446
|
+
function isNode(propValue) {
|
|
38447
|
+
switch (typeof propValue) {
|
|
38448
|
+
case 'number':
|
|
38449
|
+
case 'string':
|
|
38450
|
+
case 'undefined':
|
|
38451
|
+
return true;
|
|
38452
|
+
|
|
38453
|
+
case 'boolean':
|
|
38454
|
+
return !propValue;
|
|
38455
|
+
|
|
38456
|
+
case 'object':
|
|
38457
|
+
if (Array.isArray(propValue)) {
|
|
38458
|
+
return propValue.every(isNode);
|
|
38459
|
+
}
|
|
38460
|
+
|
|
38461
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
38462
|
+
return true;
|
|
38463
|
+
}
|
|
38464
|
+
|
|
38465
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
38466
|
+
|
|
38467
|
+
if (iteratorFn) {
|
|
38468
|
+
var iterator = iteratorFn.call(propValue);
|
|
38469
|
+
var step;
|
|
38470
|
+
|
|
38471
|
+
if (iteratorFn !== propValue.entries) {
|
|
38472
|
+
while (!(step = iterator.next()).done) {
|
|
38473
|
+
if (!isNode(step.value)) {
|
|
38474
|
+
return false;
|
|
38475
|
+
}
|
|
38476
|
+
}
|
|
38477
|
+
} else {
|
|
38478
|
+
while (!(step = iterator.next()).done) {
|
|
38479
|
+
var entry = step.value;
|
|
38480
|
+
|
|
38481
|
+
if (entry) {
|
|
38482
|
+
if (!isNode(entry[1])) {
|
|
38483
|
+
return false;
|
|
38484
|
+
}
|
|
38485
|
+
}
|
|
38486
|
+
}
|
|
38487
|
+
}
|
|
38488
|
+
} else {
|
|
38489
|
+
return false;
|
|
38490
|
+
}
|
|
38491
|
+
|
|
38492
|
+
return true;
|
|
38493
|
+
|
|
38494
|
+
default:
|
|
38495
|
+
return false;
|
|
38496
|
+
}
|
|
38497
|
+
}
|
|
38498
|
+
|
|
38499
|
+
function isSymbol(propType, propValue) {
|
|
38500
|
+
if (propType === 'symbol') {
|
|
38501
|
+
return true;
|
|
38502
|
+
}
|
|
38503
|
+
|
|
38504
|
+
if (!propValue) {
|
|
38505
|
+
return false;
|
|
38506
|
+
}
|
|
38507
|
+
|
|
38508
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
38509
|
+
return true;
|
|
38510
|
+
}
|
|
38511
|
+
|
|
38512
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
38513
|
+
return true;
|
|
38514
|
+
}
|
|
38515
|
+
|
|
38516
|
+
return false;
|
|
38517
|
+
}
|
|
38518
|
+
|
|
38519
|
+
function getPropType(propValue) {
|
|
38520
|
+
var propType = typeof propValue;
|
|
38521
|
+
|
|
38522
|
+
if (Array.isArray(propValue)) {
|
|
38523
|
+
return 'array';
|
|
38524
|
+
}
|
|
38525
|
+
|
|
38526
|
+
if (propValue instanceof RegExp) {
|
|
38527
|
+
return 'object';
|
|
38528
|
+
}
|
|
38529
|
+
|
|
38530
|
+
if (isSymbol(propType, propValue)) {
|
|
38531
|
+
return 'symbol';
|
|
38532
|
+
}
|
|
38533
|
+
|
|
38534
|
+
return propType;
|
|
38535
|
+
}
|
|
38536
|
+
|
|
38537
|
+
function getPreciseType(propValue) {
|
|
38538
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
|
38539
|
+
return '' + propValue;
|
|
38540
|
+
}
|
|
38541
|
+
|
|
38542
|
+
var propType = getPropType(propValue);
|
|
38543
|
+
|
|
38544
|
+
if (propType === 'object') {
|
|
38545
|
+
if (propValue instanceof Date) {
|
|
38546
|
+
return 'date';
|
|
38547
|
+
} else if (propValue instanceof RegExp) {
|
|
38548
|
+
return 'regexp';
|
|
38549
|
+
}
|
|
38550
|
+
}
|
|
38551
|
+
|
|
38552
|
+
return propType;
|
|
38553
|
+
}
|
|
38554
|
+
|
|
38555
|
+
function getPostfixForTypeWarning(value) {
|
|
38556
|
+
var type = getPreciseType(value);
|
|
38557
|
+
|
|
38558
|
+
switch (type) {
|
|
38559
|
+
case 'array':
|
|
38560
|
+
case 'object':
|
|
38561
|
+
return 'an ' + type;
|
|
38562
|
+
|
|
38563
|
+
case 'boolean':
|
|
38564
|
+
case 'date':
|
|
38565
|
+
case 'regexp':
|
|
38566
|
+
return 'a ' + type;
|
|
38567
|
+
|
|
38568
|
+
default:
|
|
38569
|
+
return type;
|
|
38570
|
+
}
|
|
38571
|
+
}
|
|
38572
|
+
|
|
38573
|
+
function getClassName(propValue) {
|
|
38574
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
38575
|
+
return ANONYMOUS;
|
|
38576
|
+
}
|
|
38577
|
+
|
|
38578
|
+
return propValue.constructor.name;
|
|
38579
|
+
}
|
|
38580
|
+
|
|
38581
|
+
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
38582
|
+
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
38583
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
38584
|
+
return ReactPropTypes;
|
|
38585
|
+
};
|
|
38586
|
+
|
|
38587
|
+
function emptyFunction() {}
|
|
38588
|
+
|
|
38589
|
+
function emptyFunctionWithReset() {}
|
|
38590
|
+
|
|
38591
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
38592
|
+
|
|
38593
|
+
var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
38594
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
38595
|
+
if (secret === ReactPropTypesSecret_1) {
|
|
38596
|
+
return;
|
|
38597
|
+
}
|
|
38598
|
+
|
|
38599
|
+
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');
|
|
38600
|
+
err.name = 'Invariant Violation';
|
|
38601
|
+
throw err;
|
|
38602
|
+
}
|
|
38603
|
+
shim.isRequired = shim;
|
|
38604
|
+
|
|
38605
|
+
function getShim() {
|
|
38606
|
+
return shim;
|
|
38607
|
+
}
|
|
38608
|
+
var ReactPropTypes = {
|
|
38609
|
+
array: shim,
|
|
38610
|
+
bigint: shim,
|
|
38611
|
+
bool: shim,
|
|
38612
|
+
func: shim,
|
|
38613
|
+
number: shim,
|
|
38614
|
+
object: shim,
|
|
38615
|
+
string: shim,
|
|
38616
|
+
symbol: shim,
|
|
38617
|
+
any: shim,
|
|
38618
|
+
arrayOf: getShim,
|
|
38619
|
+
element: shim,
|
|
38620
|
+
elementType: shim,
|
|
38621
|
+
instanceOf: getShim,
|
|
38622
|
+
node: shim,
|
|
38623
|
+
objectOf: getShim,
|
|
38624
|
+
oneOf: getShim,
|
|
38625
|
+
oneOfType: getShim,
|
|
38626
|
+
shape: getShim,
|
|
38627
|
+
exact: getShim,
|
|
38628
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
38629
|
+
resetWarningCache: emptyFunction
|
|
38630
|
+
};
|
|
38631
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
38632
|
+
return ReactPropTypes;
|
|
38633
|
+
};
|
|
38634
|
+
|
|
38635
|
+
var propTypes = createCommonjsModule(function (module) {
|
|
38636
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
38637
|
+
var ReactIs = reactIs;
|
|
38638
|
+
var throwOnDirectAccess = true;
|
|
38639
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
38640
|
+
} else {
|
|
38641
|
+
module.exports = factoryWithThrowingShims();
|
|
38642
|
+
}
|
|
38643
|
+
});
|
|
38644
|
+
|
|
38645
|
+
var useDocumentSearch = function useDocumentSearch(documents, config) {
|
|
38646
|
+
var _documents;
|
|
38647
|
+
|
|
38648
|
+
if (documents === void 0) {
|
|
38649
|
+
documents = [];
|
|
38650
|
+
}
|
|
38651
|
+
|
|
38652
|
+
if (config === void 0) {
|
|
38653
|
+
config = {};
|
|
38654
|
+
}
|
|
38655
|
+
|
|
38656
|
+
var client = useQueryClient();
|
|
38657
|
+
var tenant = Digit.ULBService.getStateId();
|
|
38658
|
+
var filesArray = (_documents = documents) === null || _documents === void 0 ? void 0 : _documents.map(function (value) {
|
|
38659
|
+
return value === null || value === void 0 ? void 0 : value.fileStoreId;
|
|
38660
|
+
});
|
|
38661
|
+
|
|
38662
|
+
var _useQuery = useQuery([filesArray.join('')], function () {
|
|
38663
|
+
return Digit.UploadServices.Filefetch(filesArray, tenant);
|
|
38664
|
+
}, _extends({
|
|
38665
|
+
enabled: filesArray && filesArray.length > 0,
|
|
38666
|
+
select: function select(data) {
|
|
38667
|
+
return documents.map(function (document) {
|
|
38668
|
+
var _data$data, _data$data2, _data$data3;
|
|
38669
|
+
|
|
38670
|
+
return _extends({}, document, {
|
|
38671
|
+
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]),
|
|
38672
|
+
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]),
|
|
38673
|
+
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]) || ""
|
|
38674
|
+
});
|
|
38675
|
+
});
|
|
38676
|
+
}
|
|
38677
|
+
}, config)),
|
|
38678
|
+
isLoading = _useQuery.isLoading,
|
|
38679
|
+
error = _useQuery.error,
|
|
38680
|
+
data = _useQuery.data;
|
|
38681
|
+
|
|
38682
|
+
return {
|
|
38683
|
+
isLoading: isLoading,
|
|
38684
|
+
error: error,
|
|
38685
|
+
data: {
|
|
38686
|
+
pdfFiles: data
|
|
38687
|
+
},
|
|
38688
|
+
revalidate: function revalidate() {
|
|
38689
|
+
return client.invalidateQueries([filesArray.join('')]);
|
|
38690
|
+
}
|
|
38691
|
+
};
|
|
38692
|
+
};
|
|
38693
|
+
useDocumentSearch.propTypes = {
|
|
38694
|
+
documents: propTypes.array,
|
|
38695
|
+
config: propTypes.object
|
|
38696
|
+
};
|
|
38697
|
+
useDocumentSearch.defaultProps = {
|
|
38698
|
+
documents: [],
|
|
38699
|
+
config: {}
|
|
38700
|
+
};
|
|
38701
|
+
|
|
38702
|
+
var useOnClickOutside = function useOnClickOutside(ref, handler, isActive, eventParam) {
|
|
38703
|
+
if (eventParam === void 0) {
|
|
38704
|
+
eventParam = false;
|
|
38705
|
+
}
|
|
38706
|
+
|
|
38707
|
+
useEffect$1(function () {
|
|
38708
|
+
if (isActive) {
|
|
38709
|
+
document.addEventListener("click", handleClickOutSide, eventParam);
|
|
38710
|
+
} else {
|
|
38711
|
+
document.removeEventListener("click", handleClickOutSide, eventParam);
|
|
38712
|
+
}
|
|
38713
|
+
|
|
38714
|
+
return function () {
|
|
38715
|
+
document.removeEventListener("click", handleClickOutSide, eventParam);
|
|
38716
|
+
};
|
|
38717
|
+
}, [isActive]);
|
|
38718
|
+
|
|
38719
|
+
var handleClickOutSide = function handleClickOutSide(event) {
|
|
38720
|
+
if (ref.current && ref.current.contains(event.target)) {
|
|
38721
|
+
return;
|
|
38722
|
+
}
|
|
38723
|
+
|
|
38724
|
+
handler(event);
|
|
38725
|
+
};
|
|
38726
|
+
};
|
|
38727
|
+
|
|
38728
|
+
var _excluded = ["businessService"],
|
|
38729
|
+
_excluded2 = ["tenantId", "businessService"],
|
|
38730
|
+
_excluded3 = ["tenantId", "businessService"];
|
|
38731
|
+
var useFetchCitizenBillsForBuissnessService = function useFetchCitizenBillsForBuissnessService(_ref, config) {
|
|
38732
|
+
var _Digit$UserService$ge;
|
|
38733
|
+
|
|
38734
|
+
var businessService = _ref.businessService,
|
|
38735
|
+
filters = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
38736
|
+
|
|
38737
|
+
if (config === void 0) {
|
|
38738
|
+
config = {};
|
|
38739
|
+
}
|
|
38740
|
+
|
|
38741
|
+
var queryClient = useQueryClient();
|
|
38742
|
+
|
|
38743
|
+
var _ref2 = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {},
|
|
38744
|
+
mobileNumber = _ref2.mobileNumber,
|
|
38745
|
+
tenantId = _ref2.tenantId;
|
|
38746
|
+
|
|
38747
|
+
var params = _extends({
|
|
38748
|
+
mobileNumber: mobileNumber,
|
|
38749
|
+
businessService: businessService
|
|
38750
|
+
}, filters);
|
|
38751
|
+
|
|
38752
|
+
if (!params["mobileNumber"]) delete params["mobileNumber"];
|
|
38753
|
+
|
|
38754
|
+
var _useQuery = useQuery(["citizenBillsForBuisnessService", businessService, _extends({}, params)], function () {
|
|
38755
|
+
return Digit.PaymentService.fetchBill(tenantId, _extends({}, params));
|
|
38756
|
+
}, _extends({
|
|
38757
|
+
refetchOnMount: true,
|
|
38758
|
+
retry: false
|
|
38759
|
+
}, config)),
|
|
38760
|
+
isLoading = _useQuery.isLoading,
|
|
38761
|
+
error = _useQuery.error,
|
|
38762
|
+
isError = _useQuery.isError,
|
|
38763
|
+
data = _useQuery.data,
|
|
38764
|
+
status = _useQuery.status;
|
|
38765
|
+
|
|
38766
|
+
return {
|
|
38767
|
+
isLoading: isLoading,
|
|
38768
|
+
error: error,
|
|
38769
|
+
isError: isError,
|
|
38770
|
+
data: data,
|
|
38771
|
+
status: status,
|
|
38772
|
+
revalidate: function revalidate() {
|
|
38773
|
+
return queryClient.invalidateQueries(["citizenBillsForBuisnessService", businessService]);
|
|
38774
|
+
}
|
|
38775
|
+
};
|
|
38776
|
+
};
|
|
38777
|
+
var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService(_ref3, config) {
|
|
38778
|
+
var _Digit$UserService$ge2, _Digit$UserService$ge3;
|
|
38779
|
+
|
|
38780
|
+
var tenantId = _ref3.tenantId,
|
|
38781
|
+
businessService = _ref3.businessService,
|
|
38782
|
+
filters = _objectWithoutPropertiesLoose(_ref3, _excluded2);
|
|
38783
|
+
|
|
38784
|
+
if (config === void 0) {
|
|
38785
|
+
config = {};
|
|
38786
|
+
}
|
|
38787
|
+
|
|
38788
|
+
var queryClient = useQueryClient();
|
|
38789
|
+
var isPTAccessDone = sessionStorage.getItem("IsPTAccessDone");
|
|
38790
|
+
|
|
38791
|
+
var params = _extends({
|
|
38792
|
+
businessService: businessService
|
|
38793
|
+
}, filters);
|
|
38794
|
+
|
|
38795
|
+
var _tenantId = tenantId || ((_Digit$UserService$ge2 = Digit.UserService.getUser()) === null || _Digit$UserService$ge2 === void 0 ? void 0 : (_Digit$UserService$ge3 = _Digit$UserService$ge2.info) === null || _Digit$UserService$ge3 === void 0 ? void 0 : _Digit$UserService$ge3.tenantId);
|
|
38796
|
+
|
|
38797
|
+
var _useQuery2 = useQuery(["billsForBuisnessService", businessService, _extends({}, filters), config, isPTAccessDone], function () {
|
|
38798
|
+
return Digit.PaymentService.fetchBill(_tenantId, params);
|
|
38799
|
+
}, _extends({
|
|
38800
|
+
retry: function retry(count, err) {
|
|
38801
|
+
return false;
|
|
38802
|
+
}
|
|
38803
|
+
}, config)),
|
|
38804
|
+
isLoading = _useQuery2.isLoading,
|
|
38805
|
+
error = _useQuery2.error,
|
|
38806
|
+
isError = _useQuery2.isError,
|
|
38807
|
+
data = _useQuery2.data,
|
|
38808
|
+
status = _useQuery2.status;
|
|
38809
|
+
|
|
38810
|
+
return {
|
|
38811
|
+
isLoading: isLoading,
|
|
38812
|
+
error: error,
|
|
38813
|
+
isError: isError,
|
|
38814
|
+
data: data,
|
|
38815
|
+
status: status,
|
|
38816
|
+
revalidate: function revalidate() {
|
|
38817
|
+
return queryClient.invalidateQueries(["billsForBuisnessService", businessService]);
|
|
38818
|
+
}
|
|
38819
|
+
};
|
|
38820
|
+
};
|
|
38821
|
+
var useFetchPayment = function useFetchPayment(_ref4, config) {
|
|
38822
|
+
var tenantId = _ref4.tenantId,
|
|
38823
|
+
consumerCode = _ref4.consumerCode,
|
|
38824
|
+
businessService = _ref4.businessService;
|
|
38825
|
+
var queryClient = useQueryClient();
|
|
38826
|
+
|
|
38827
|
+
var fetchBill = function fetchBill() {
|
|
38828
|
+
try {
|
|
38829
|
+
if (businessService !== null && businessService !== void 0 && businessService.includes("PT")) {
|
|
38830
|
+
return Promise.resolve(Digit.PaymentService.fetchBill(tenantId, {
|
|
38831
|
+
consumerCode: consumerCode,
|
|
38832
|
+
businessService: businessService
|
|
38833
|
+
})).then(function (fetchedBill) {
|
|
38834
|
+
var _fetchedBill$Bill, _fetchedBill$Bill$, _fetchedBill$Bill$$bi, _fetchedBill$Bill$$bi2, _fetchedBill$Bill3, _fetchedBill$Bill3$, _fetchedBill$Bill3$$b;
|
|
38835
|
+
|
|
38836
|
+
var billdetail = (fetchedBill === null || fetchedBill === void 0 ? void 0 : (_fetchedBill$Bill = fetchedBill.Bill) === null || _fetchedBill$Bill === void 0 ? void 0 : (_fetchedBill$Bill$ = _fetchedBill$Bill[0]) === null || _fetchedBill$Bill$ === void 0 ? void 0 : (_fetchedBill$Bill$$bi = _fetchedBill$Bill$.billDetails) === null || _fetchedBill$Bill$$bi === void 0 ? void 0 : (_fetchedBill$Bill$$bi2 = _fetchedBill$Bill$$bi.sort(function (a, b) {
|
|
38837
|
+
return b.fromPeriod - a.fromPeriod;
|
|
38838
|
+
})) === null || _fetchedBill$Bill$$bi2 === void 0 ? void 0 : _fetchedBill$Bill$$bi2[0]) || {};
|
|
38839
|
+
fetchedBill.Bill[0].billDetails = fetchedBill.Bill[0].billDetails.map(function (ele) {
|
|
38840
|
+
var _fetchedBill$Bill2, _fetchedBill$Bill2$;
|
|
38841
|
+
|
|
38842
|
+
return _extends({}, ele, {
|
|
38843
|
+
currentBillNo: fetchedBill === null || fetchedBill === void 0 ? void 0 : (_fetchedBill$Bill2 = fetchedBill.Bill) === null || _fetchedBill$Bill2 === void 0 ? void 0 : (_fetchedBill$Bill2$ = _fetchedBill$Bill2[0]) === null || _fetchedBill$Bill2$ === void 0 ? void 0 : _fetchedBill$Bill2$.billNumber,
|
|
38844
|
+
currentExpiryDate: billdetail === null || billdetail === void 0 ? void 0 : billdetail.expiryDate
|
|
38845
|
+
});
|
|
38846
|
+
});
|
|
38847
|
+
|
|
38848
|
+
if (fetchedBill && (fetchedBill === null || fetchedBill === void 0 ? void 0 : (_fetchedBill$Bill3 = fetchedBill.Bill) === null || _fetchedBill$Bill3 === void 0 ? void 0 : (_fetchedBill$Bill3$ = _fetchedBill$Bill3[0]) === null || _fetchedBill$Bill3$ === void 0 ? void 0 : (_fetchedBill$Bill3$$b = _fetchedBill$Bill3$.billDetails) === null || _fetchedBill$Bill3$$b === void 0 ? void 0 : _fetchedBill$Bill3$$b.length) > 1) {
|
|
38849
|
+
var _fetchedBill$Bill4, _fetchedBill$Bill4$, _fetchedBill$Bill4$$b;
|
|
38850
|
+
|
|
38851
|
+
fetchedBill === null || fetchedBill === void 0 ? void 0 : (_fetchedBill$Bill4 = fetchedBill.Bill) === null || _fetchedBill$Bill4 === void 0 ? void 0 : (_fetchedBill$Bill4$ = _fetchedBill$Bill4[0]) === null || _fetchedBill$Bill4$ === void 0 ? void 0 : (_fetchedBill$Bill4$$b = _fetchedBill$Bill4$.billDetails) === null || _fetchedBill$Bill4$$b === void 0 ? void 0 : _fetchedBill$Bill4$$b.map(function (billdet) {
|
|
38852
|
+
try {
|
|
38853
|
+
return Promise.resolve(Digit.PaymentService.searchBill(tenantId, {
|
|
38854
|
+
consumerCode: consumerCode,
|
|
38855
|
+
fromPeriod: billdet === null || billdet === void 0 ? void 0 : billdet.fromPeriod,
|
|
38856
|
+
toPeriod: billdet === null || billdet === void 0 ? void 0 : billdet.toPeriod,
|
|
38857
|
+
service: businessService,
|
|
38858
|
+
retrieveOldest: true
|
|
38859
|
+
})).then(function (searchBill) {
|
|
38860
|
+
var _searchBill$Bill, _searchBill$Bill$, _searchBill$Bill$$bil, _searchBill$Bill$$bil2, _searchBill$Bill2, _searchBill$Bill2$;
|
|
38861
|
+
|
|
38862
|
+
billdet.expiryDate = searchBill === null || searchBill === void 0 ? void 0 : (_searchBill$Bill = searchBill.Bill) === null || _searchBill$Bill === void 0 ? void 0 : (_searchBill$Bill$ = _searchBill$Bill[0]) === null || _searchBill$Bill$ === void 0 ? void 0 : (_searchBill$Bill$$bil = _searchBill$Bill$.billDetails) === null || _searchBill$Bill$$bil === void 0 ? void 0 : (_searchBill$Bill$$bil2 = _searchBill$Bill$$bil[0]) === null || _searchBill$Bill$$bil2 === void 0 ? void 0 : _searchBill$Bill$$bil2.expiryDate;
|
|
38863
|
+
billdet.billNumber = searchBill === null || searchBill === void 0 ? void 0 : (_searchBill$Bill2 = searchBill.Bill) === null || _searchBill$Bill2 === void 0 ? void 0 : (_searchBill$Bill2$ = _searchBill$Bill2[0]) === null || _searchBill$Bill2$ === void 0 ? void 0 : _searchBill$Bill2$.billNumber;
|
|
38864
|
+
});
|
|
38865
|
+
} catch (e) {
|
|
38866
|
+
return Promise.reject(e);
|
|
38867
|
+
}
|
|
38868
|
+
});
|
|
38869
|
+
}
|
|
38870
|
+
|
|
38871
|
+
return fetchedBill;
|
|
38872
|
+
});
|
|
38873
|
+
} else {
|
|
38874
|
+
return Promise.resolve(Digit.PaymentService.fetchBill(tenantId, {
|
|
38875
|
+
consumerCode: consumerCode,
|
|
38876
|
+
businessService: businessService
|
|
38877
|
+
}));
|
|
38878
|
+
}
|
|
38879
|
+
} catch (e) {
|
|
38880
|
+
return Promise.reject(e);
|
|
38881
|
+
}
|
|
38882
|
+
};
|
|
38883
|
+
|
|
38884
|
+
var retry = function retry(failureCount, error) {
|
|
38885
|
+
var _error$response, _error$response$data, _error$response$data$, _error$response$data$2;
|
|
38886
|
+
|
|
38887
|
+
if ((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$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : (_error$response$data$2 = _error$response$data$[0]) === null || _error$response$data$2 === void 0 ? void 0 : _error$response$data$2.code) === "EG_BS_BILL_NO_DEMANDS_FOUND") return false;else return failureCount < 3;
|
|
38888
|
+
};
|
|
38889
|
+
|
|
38890
|
+
var queryData = useQuery(["paymentFetchDetails", tenantId, consumerCode, businessService], function () {
|
|
38891
|
+
return fetchBill();
|
|
38892
|
+
}, _extends({
|
|
38893
|
+
retry: retry
|
|
38894
|
+
}, config));
|
|
38895
|
+
return _extends({}, queryData, {
|
|
37768
38896
|
revalidate: function revalidate() {
|
|
37769
38897
|
return queryClient.invalidateQueries(["paymentFetchDetails", tenantId, consumerCode, businessService]);
|
|
37770
38898
|
}
|
|
@@ -41347,7 +42475,7 @@ var PTSearch = {
|
|
|
41347
42475
|
value: owner === null || owner === void 0 ? void 0 : owner.emailId
|
|
41348
42476
|
}, {
|
|
41349
42477
|
title: "PT_OWNERSHIP_INFO_CORR_ADDR",
|
|
41350
|
-
value: owner === null || owner === void 0 ? void 0 : owner.
|
|
42478
|
+
value: owner === null || owner === void 0 ? void 0 : owner.permanentAddress
|
|
41351
42479
|
}]
|
|
41352
42480
|
};
|
|
41353
42481
|
})
|
|
@@ -42264,7 +43392,7 @@ var useTradeLicenseMDMS = function useTradeLicenseMDMS(tenantId, moduleCode, typ
|
|
|
42264
43392
|
};
|
|
42265
43393
|
|
|
42266
43394
|
var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
|
|
42267
|
-
var _data, _data$value, _data$value$owners,
|
|
43395
|
+
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;
|
|
42268
43396
|
|
|
42269
43397
|
if (data1 === void 0) {
|
|
42270
43398
|
data1 = {};
|
|
@@ -42273,10 +43401,15 @@ var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
|
|
|
42273
43401
|
var client = useQueryClient();
|
|
42274
43402
|
var tenantId = Digit.ULBService.getCurrentTenantId();
|
|
42275
43403
|
var tenant = Digit.ULBService.getStateId();
|
|
42276
|
-
var filesArray =
|
|
42277
|
-
|
|
42278
|
-
|
|
42279
|
-
if ((
|
|
43404
|
+
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) {
|
|
43405
|
+
return ob === null || ob === void 0 ? void 0 : ob.fileStoreId;
|
|
43406
|
+
}) : [];
|
|
43407
|
+
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) {
|
|
43408
|
+
return ob === null || ob === void 0 ? void 0 : ob.fileStoreId;
|
|
43409
|
+
});
|
|
43410
|
+
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);
|
|
43411
|
+
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);
|
|
43412
|
+
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);
|
|
42280
43413
|
|
|
42281
43414
|
var _useQuery = useQuery(["tlDocuments-" + 1, filesArray], function () {
|
|
42282
43415
|
return Digit.UploadServices.Filefetch(filesArray, tenant);
|
|
@@ -42586,7 +43719,7 @@ var TLSearch = {
|
|
|
42586
43719
|
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"
|
|
42587
43720
|
}, {
|
|
42588
43721
|
title: "TL_NEW_TRADE_DETAILS_STRUCT_SUB_TYPE_LABEL",
|
|
42589
|
-
value: response !== null && response !== void 0 && (_response$tradeLicens5 = response.tradeLicenseDetail) !== null && _response$tradeLicens5 !== void 0 && _response$tradeLicens5.structureType ? "
|
|
43722
|
+
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"
|
|
42590
43723
|
}, {
|
|
42591
43724
|
title: "TL_NEW_TRADE_DETAILS_TRADE_COMM_DATE_LABEL",
|
|
42592
43725
|
value: response !== null && response !== void 0 && response.commencementDate ? convertEpochToDate(response === null || response === void 0 ? void 0 : response.commencementDate) : "NA"
|
|
@@ -43531,13 +44664,14 @@ var SearchMdmsTypes = {
|
|
|
43531
44664
|
var _data$BPA3, _data$BPA3$BPAAppicat;
|
|
43532
44665
|
|
|
43533
44666
|
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) {
|
|
43534
|
-
var _currentObject$roles;
|
|
44667
|
+
var _userInfo$value, _currentObject$roles;
|
|
43535
44668
|
|
|
44669
|
+
var userInfos = sessionStorage.getItem("Digit.citizen.userRequestObject");
|
|
44670
|
+
var userInfo = userInfos ? JSON.parse(userInfos) : {};
|
|
44671
|
+
var userInformation = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$value = userInfo.value) === null || _userInfo$value === void 0 ? void 0 : _userInfo$value.info;
|
|
43536
44672
|
var flag = 0;
|
|
43537
44673
|
currentObject === null || currentObject === void 0 ? void 0 : (_currentObject$roles = currentObject.roles) === null || _currentObject$roles === void 0 ? void 0 : _currentObject$roles.map(function (bpaRole) {
|
|
43538
|
-
var
|
|
43539
|
-
|
|
43540
|
-
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) {
|
|
44674
|
+
var found = userInformation === null || userInformation === void 0 ? void 0 : userInformation.roles.some(function (role) {
|
|
43541
44675
|
return (role === null || role === void 0 ? void 0 : role.code) === bpaRole;
|
|
43542
44676
|
});
|
|
43543
44677
|
if (found == true) flag = 1;
|
|
@@ -43855,21 +44989,124 @@ var OBPSService = {
|
|
|
43855
44989
|
isEmployee: true
|
|
43856
44990
|
})).then(function (paymentRes) {
|
|
43857
44991
|
return Promise.resolve(MdmsService.getMultipleTypes(License === null || License === void 0 ? void 0 : License.tenantId, "StakeholderRegistraition", ["TradeTypetoRoleMapping"])).then(function (mdmsRes) {
|
|
43858
|
-
var _License$
|
|
44992
|
+
var _License$tradeLicense37, _License$tradeLicense38, _mdmsRes$StakeholderR, _mdmsRes$StakeholderR2, _License$tradeLicense44, _License$tradeLicense45;
|
|
44993
|
+
|
|
44994
|
+
function _temp2() {
|
|
44995
|
+
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;
|
|
44996
|
+
|
|
44997
|
+
var details = [{
|
|
44998
|
+
title: " ",
|
|
44999
|
+
values: [{
|
|
45000
|
+
title: "BPA_APPLICATION_NUMBER_LABEL",
|
|
45001
|
+
value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
|
|
45002
|
+
}]
|
|
45003
|
+
}, 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") ? {
|
|
45004
|
+
title: "BPA_LICENSE_DETAILS_LABEL",
|
|
45005
|
+
asSectionHeader: true,
|
|
45006
|
+
values: [{
|
|
45007
|
+
title: "BPA_LICENSE_TYPE",
|
|
45008
|
+
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"
|
|
45009
|
+
}, {
|
|
45010
|
+
title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
|
|
45011
|
+
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"
|
|
45012
|
+
}]
|
|
45013
|
+
} : {
|
|
45014
|
+
title: "BPA_LICENSE_DETAILS_LABEL",
|
|
45015
|
+
asSectionHeader: true,
|
|
45016
|
+
values: [{
|
|
45017
|
+
title: "BPA_LICENSE_TYPE",
|
|
45018
|
+
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"
|
|
45019
|
+
}]
|
|
45020
|
+
}, {
|
|
45021
|
+
title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
|
|
45022
|
+
asSectionHeader: true,
|
|
45023
|
+
values: [{
|
|
45024
|
+
title: "BPA_APPLICANT_NAME_LABEL",
|
|
45025
|
+
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"
|
|
45026
|
+
}, {
|
|
45027
|
+
title: "BPA_APPLICANT_GENDER_LABEL",
|
|
45028
|
+
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"
|
|
45029
|
+
}, {
|
|
45030
|
+
title: "BPA_OWNER_MOBILE_NO_LABEL",
|
|
45031
|
+
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"
|
|
45032
|
+
}, {
|
|
45033
|
+
title: "BPA_APPLICANT_EMAIL_LABEL",
|
|
45034
|
+
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"
|
|
45035
|
+
}, {
|
|
45036
|
+
title: "BPA_APPLICANT_PAN_NO",
|
|
45037
|
+
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"
|
|
45038
|
+
}]
|
|
45039
|
+
}, {
|
|
45040
|
+
title: "BPA_PERMANANT_ADDRESS_LABEL",
|
|
45041
|
+
asSectionHeader: true,
|
|
45042
|
+
values: [{
|
|
45043
|
+
title: "BPA_PERMANANT_ADDRESS_LABEL",
|
|
45044
|
+
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"
|
|
45045
|
+
}]
|
|
45046
|
+
}, {
|
|
45047
|
+
title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
|
|
45048
|
+
asSectionHeader: true,
|
|
45049
|
+
values: [{
|
|
45050
|
+
title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
|
|
45051
|
+
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"
|
|
45052
|
+
}]
|
|
45053
|
+
}, {
|
|
45054
|
+
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
45055
|
+
asSectionHeader: true,
|
|
45056
|
+
additionalDetails: {
|
|
45057
|
+
documentsWithUrl: [{
|
|
45058
|
+
title: "",
|
|
45059
|
+
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) {
|
|
45060
|
+
var _doc$documentType, _fileDetails, _fileDetails2, _fileDetails2$data$do;
|
|
45061
|
+
|
|
45062
|
+
return {
|
|
45063
|
+
title: "BPAREG_HEADER_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll('.', '_')),
|
|
45064
|
+
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
45065
|
+
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
45066
|
+
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
45067
|
+
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
45068
|
+
docInfo: doc === null || doc === void 0 ? void 0 : doc.info,
|
|
45069
|
+
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] : ""
|
|
45070
|
+
};
|
|
45071
|
+
})
|
|
45072
|
+
}]
|
|
45073
|
+
}
|
|
45074
|
+
}, (paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments = paymentRes.Payments) === null || _paymentRes$Payments === void 0 ? void 0 : _paymentRes$Payments.length) > 0 && {
|
|
45075
|
+
title: "BPA_FEE_DETAILS_LABEL",
|
|
45076
|
+
additionalDetails: {
|
|
45077
|
+
inspectionReport: [],
|
|
45078
|
+
values: [{
|
|
45079
|
+
title: "BPAREG_FEES",
|
|
45080
|
+
value: /*#__PURE__*/React.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)
|
|
45081
|
+
}, (_ref = {
|
|
45082
|
+
title: "BPA_STATUS_LABEL",
|
|
45083
|
+
isTransLate: true,
|
|
45084
|
+
isStatus: true,
|
|
45085
|
+
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"
|
|
45086
|
+
}, _ref["isTransLate"] = true, _ref)]
|
|
45087
|
+
}
|
|
45088
|
+
}];
|
|
45089
|
+
return {
|
|
45090
|
+
applicationData: License,
|
|
45091
|
+
applicationDetails: details,
|
|
45092
|
+
tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
|
|
45093
|
+
payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
|
|
45094
|
+
};
|
|
45095
|
+
}
|
|
43859
45096
|
|
|
43860
|
-
if (License !== null && License !== void 0 && (_License$
|
|
45097
|
+
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) {
|
|
43861
45098
|
var _mdmsRes$StakeholderR3, _mdmsRes$StakeholderR4;
|
|
43862
45099
|
|
|
43863
45100
|
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) {
|
|
43864
|
-
var _doc$docTypes, _License$
|
|
45101
|
+
var _doc$docTypes, _License$tradeLicense39, _License$tradeLicense40, _License$tradeLicense41;
|
|
43865
45102
|
|
|
43866
|
-
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$
|
|
45103
|
+
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)) {
|
|
43867
45104
|
var _doc$docTypes2;
|
|
43868
45105
|
|
|
43869
45106
|
doc === null || doc === void 0 ? void 0 : (_doc$docTypes2 = doc.docTypes) === null || _doc$docTypes2 === void 0 ? void 0 : _doc$docTypes2.map(function (docType) {
|
|
43870
|
-
var _License$
|
|
45107
|
+
var _License$tradeLicense42, _License$tradeLicense43;
|
|
43871
45108
|
|
|
43872
|
-
License === null || License === void 0 ? void 0 : (_License$
|
|
45109
|
+
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) {
|
|
43873
45110
|
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;
|
|
43874
45111
|
});
|
|
43875
45112
|
});
|
|
@@ -43877,103 +45114,20 @@ var OBPSService = {
|
|
|
43877
45114
|
});
|
|
43878
45115
|
}
|
|
43879
45116
|
|
|
43880
|
-
var
|
|
43881
|
-
|
|
43882
|
-
|
|
43883
|
-
|
|
43884
|
-
value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
|
|
43885
|
-
}]
|
|
43886
|
-
}, 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") ? {
|
|
43887
|
-
title: "BPA_LICENSE_DETAILS_LABEL",
|
|
43888
|
-
asSectionHeader: true,
|
|
43889
|
-
values: [{
|
|
43890
|
-
title: "BPA_LICENSE_TYPE",
|
|
43891
|
-
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"
|
|
43892
|
-
}, {
|
|
43893
|
-
title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
|
|
43894
|
-
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"
|
|
43895
|
-
}]
|
|
43896
|
-
} : {
|
|
43897
|
-
title: "BPA_LICENSE_DETAILS_LABEL",
|
|
43898
|
-
asSectionHeader: true,
|
|
43899
|
-
values: [{
|
|
43900
|
-
title: "BPA_LICENSE_TYPE",
|
|
43901
|
-
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"
|
|
43902
|
-
}]
|
|
43903
|
-
}, {
|
|
43904
|
-
title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
|
|
43905
|
-
asSectionHeader: true,
|
|
43906
|
-
values: [{
|
|
43907
|
-
title: "BPA_APPLICANT_NAME_LABEL",
|
|
43908
|
-
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"
|
|
43909
|
-
}, {
|
|
43910
|
-
title: "BPA_APPLICANT_GENDER_LABEL",
|
|
43911
|
-
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"
|
|
43912
|
-
}, {
|
|
43913
|
-
title: "BPA_OWNER_MOBILE_NO_LABEL",
|
|
43914
|
-
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"
|
|
43915
|
-
}, {
|
|
43916
|
-
title: "BPA_APPLICANT_EMAIL_LABEL",
|
|
43917
|
-
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"
|
|
43918
|
-
}, {
|
|
43919
|
-
title: "BPA_APPLICANT_PAN_NO",
|
|
43920
|
-
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"
|
|
43921
|
-
}]
|
|
43922
|
-
}, {
|
|
43923
|
-
title: "BPA_PERMANANT_ADDRESS_LABEL",
|
|
43924
|
-
asSectionHeader: true,
|
|
43925
|
-
values: [{
|
|
43926
|
-
title: "BPA_PERMANANT_ADDRESS_LABEL",
|
|
43927
|
-
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"
|
|
43928
|
-
}]
|
|
43929
|
-
}, {
|
|
43930
|
-
title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
|
|
43931
|
-
asSectionHeader: true,
|
|
43932
|
-
values: [{
|
|
43933
|
-
title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
|
|
43934
|
-
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"
|
|
43935
|
-
}]
|
|
43936
|
-
}, {
|
|
43937
|
-
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
43938
|
-
asSectionHeader: true,
|
|
43939
|
-
additionalDetails: {
|
|
43940
|
-
documents: [{
|
|
43941
|
-
title: "",
|
|
43942
|
-
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) {
|
|
43943
|
-
var _doc$documentType;
|
|
45117
|
+
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) {
|
|
45118
|
+
return appDoc === null || appDoc === void 0 ? void 0 : appDoc.fileStoreId;
|
|
45119
|
+
});
|
|
45120
|
+
var fileDetails = {};
|
|
43944
45121
|
|
|
43945
|
-
|
|
43946
|
-
|
|
43947
|
-
|
|
43948
|
-
|
|
43949
|
-
|
|
43950
|
-
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
43951
|
-
docInfo: doc === null || doc === void 0 ? void 0 : doc.info
|
|
43952
|
-
};
|
|
43953
|
-
})
|
|
43954
|
-
}]
|
|
45122
|
+
var _temp = function () {
|
|
45123
|
+
if ((appDocumentFileStoreIds === null || appDocumentFileStoreIds === void 0 ? void 0 : appDocumentFileStoreIds.length) > 0) {
|
|
45124
|
+
return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (_UploadServices$Filef) {
|
|
45125
|
+
fileDetails = _UploadServices$Filef;
|
|
45126
|
+
});
|
|
43955
45127
|
}
|
|
43956
|
-
}
|
|
43957
|
-
|
|
43958
|
-
|
|
43959
|
-
inspectionReport: [],
|
|
43960
|
-
values: [{
|
|
43961
|
-
title: "BPAREG_FEES",
|
|
43962
|
-
value: /*#__PURE__*/React.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)
|
|
43963
|
-
}, (_ref = {
|
|
43964
|
-
title: "BPA_STATUS_LABEL",
|
|
43965
|
-
isTransLate: true,
|
|
43966
|
-
isStatus: true,
|
|
43967
|
-
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"
|
|
43968
|
-
}, _ref["isTransLate"] = true, _ref)]
|
|
43969
|
-
}
|
|
43970
|
-
}];
|
|
43971
|
-
return {
|
|
43972
|
-
applicationData: License,
|
|
43973
|
-
applicationDetails: details,
|
|
43974
|
-
tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
|
|
43975
|
-
payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
|
|
43976
|
-
};
|
|
45128
|
+
}();
|
|
45129
|
+
|
|
45130
|
+
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
43977
45131
|
});
|
|
43978
45132
|
});
|
|
43979
45133
|
});
|
|
@@ -43984,16 +45138,28 @@ var OBPSService = {
|
|
|
43984
45138
|
BPADetailsPage: function (tenantId, filters) {
|
|
43985
45139
|
try {
|
|
43986
45140
|
return Promise.resolve(OBPSService.BPASearch(tenantId, filters)).then(function (response) {
|
|
43987
|
-
var _response$BPA, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA3, _response$
|
|
45141
|
+
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;
|
|
43988
45142
|
|
|
43989
|
-
|
|
45143
|
+
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) {
|
|
45144
|
+
return docId.fileStoreId;
|
|
45145
|
+
});
|
|
45146
|
+
if (!appDocumentFileStoreIds) appDocumentFileStoreIds = [];
|
|
45147
|
+
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) {
|
|
45148
|
+
var _fiData$docs;
|
|
45149
|
+
|
|
45150
|
+
fiData === null || fiData === void 0 ? void 0 : (_fiData$docs = fiData.docs) === null || _fiData$docs === void 0 ? void 0 : _fiData$docs.map(function (fiDoc) {
|
|
45151
|
+
if (fiDoc !== null && fiDoc !== void 0 && fiDoc.fileStoreId) appDocumentFileStoreIds.push(fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId);
|
|
45152
|
+
});
|
|
45153
|
+
});
|
|
45154
|
+
|
|
45155
|
+
if (!(response !== null && response !== void 0 && (_response$BPA3 = response.BPA) !== null && _response$BPA3 !== void 0 && _response$BPA3.length)) {
|
|
43990
45156
|
return;
|
|
43991
45157
|
}
|
|
43992
45158
|
|
|
43993
|
-
sessionStorage.setItem("BPA_ARCHITECT_NAME", JSON.stringify(response !== null && response !== void 0 && (_response$
|
|
45159
|
+
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"));
|
|
43994
45160
|
|
|
43995
|
-
var _response$
|
|
43996
|
-
BPA = _response$
|
|
45161
|
+
var _response$BPA6 = response === null || response === void 0 ? void 0 : response.BPA,
|
|
45162
|
+
BPA = _response$BPA6[0];
|
|
43997
45163
|
|
|
43998
45164
|
return Promise.resolve(OBPSService.scrutinyDetails(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, {
|
|
43999
45165
|
edcrNumber: BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber
|
|
@@ -44004,507 +45170,541 @@ var OBPSService = {
|
|
|
44004
45170
|
return Promise.resolve(MdmsService.getMultipleTypes(tenantId, "BPA", ["RiskTypeComputation", "CheckList"])).then(function (mdmsRes) {
|
|
44005
45171
|
var _mdmsRes$BPA, _edcr$planDetail, _edcr$planDetail$plot, _edcr$planDetail2;
|
|
44006
45172
|
|
|
44007
|
-
var riskType = Digit.Utils.obps.calculateRiskType(mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA = mdmsRes.BPA) === null || _mdmsRes$BPA === void 0 ? void 0 : _mdmsRes$BPA.RiskTypeComputation, edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail = edcr.planDetail) === null || _edcr$planDetail === void 0 ? void 0 : (_edcr$planDetail$plot = _edcr$planDetail.plot) === null || _edcr$planDetail$plot === void 0 ? void 0 : _edcr$planDetail$plot.area, edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail2 = edcr.planDetail) === null || _edcr$planDetail2 === void 0 ? void 0 : _edcr$planDetail2.blocks);
|
|
44008
|
-
BPA.riskType = riskType;
|
|
44009
|
-
return Promise.resolve(OBPSService.NOCSearch(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, {
|
|
44010
|
-
sourceRefId: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo
|
|
44011
|
-
})).then(function (nocResponse) {
|
|
44012
|
-
var noc = nocResponse === null || nocResponse === void 0 ? void 0 : nocResponse.Noc;
|
|
44013
|
-
var filter = {
|
|
44014
|
-
approvalNo: edcr === null || edcr === void 0 ? void 0 : edcr.permitNumber
|
|
44015
|
-
};
|
|
44016
|
-
return Promise.resolve(OBPSService.BPASearch(tenantId, _extends({}, filter))).then(function (bpaResponse) {
|
|
44017
|
-
var _bpaResponse$BPA, _bpaResponse$BPA$, _bpaResponse$BPA2, _bpaResponse$BPA2$, _bpaResponse$BPA3, _bpaResponse$BPA3$;
|
|
45173
|
+
var riskType = Digit.Utils.obps.calculateRiskType(mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA = mdmsRes.BPA) === null || _mdmsRes$BPA === void 0 ? void 0 : _mdmsRes$BPA.RiskTypeComputation, edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail = edcr.planDetail) === null || _edcr$planDetail === void 0 ? void 0 : (_edcr$planDetail$plot = _edcr$planDetail.plot) === null || _edcr$planDetail$plot === void 0 ? void 0 : _edcr$planDetail$plot.area, edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail2 = edcr.planDetail) === null || _edcr$planDetail2 === void 0 ? void 0 : _edcr$planDetail2.blocks);
|
|
45174
|
+
BPA.riskType = riskType;
|
|
45175
|
+
return Promise.resolve(OBPSService.NOCSearch(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, {
|
|
45176
|
+
sourceRefId: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo
|
|
45177
|
+
})).then(function (nocResponse) {
|
|
45178
|
+
var noc = nocResponse === null || nocResponse === void 0 ? void 0 : nocResponse.Noc;
|
|
45179
|
+
var filter = {
|
|
45180
|
+
approvalNo: edcr === null || edcr === void 0 ? void 0 : edcr.permitNumber
|
|
45181
|
+
};
|
|
45182
|
+
return Promise.resolve(OBPSService.BPASearch(tenantId, _extends({}, filter))).then(function (bpaResponse) {
|
|
45183
|
+
var _bpaResponse$BPA, _bpaResponse$BPA$, _bpaResponse$BPA2, _bpaResponse$BPA2$, _bpaResponse$BPA3, _bpaResponse$BPA3$;
|
|
45184
|
+
|
|
45185
|
+
var comparisionRep = {
|
|
45186
|
+
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,
|
|
45187
|
+
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
|
|
45188
|
+
};
|
|
45189
|
+
return Promise.resolve(OBPSService.comparisionReport(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, _extends({}, comparisionRep))).then(function (comparisionReport) {
|
|
45190
|
+
function _temp4() {
|
|
45191
|
+
var _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, _details;
|
|
45192
|
+
|
|
45193
|
+
function ConvertEpochToValidityDate(dateEpoch) {
|
|
45194
|
+
if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
|
|
45195
|
+
return "NA";
|
|
45196
|
+
}
|
|
45197
|
+
|
|
45198
|
+
var dateFromApi = new Date(dateEpoch);
|
|
45199
|
+
var month = dateFromApi.getMonth() + 1;
|
|
45200
|
+
var day = dateFromApi.getDate();
|
|
45201
|
+
var year = dateFromApi.getFullYear() - 3;
|
|
45202
|
+
month = (month > 9 ? "" : "0") + month;
|
|
45203
|
+
day = (day > 9 ? "" : "0") + day;
|
|
45204
|
+
return day + "/" + month + "/" + year;
|
|
45205
|
+
}
|
|
45206
|
+
|
|
45207
|
+
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) {
|
|
45208
|
+
var _fiData$docs2;
|
|
45209
|
+
|
|
45210
|
+
fiData === null || fiData === void 0 ? void 0 : (_fiData$docs2 = fiData.docs) === null || _fiData$docs2 === void 0 ? void 0 : _fiData$docs2.forEach(function (fiDoc) {
|
|
45211
|
+
var _fileDetails3, _fileDetails4, _fileDetails4$data$fi;
|
|
45212
|
+
|
|
45213
|
+
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];
|
|
45214
|
+
});
|
|
45215
|
+
});
|
|
45216
|
+
var nocDetails = noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails, index) {
|
|
45217
|
+
var _nocDetails$additiona, _nocDetails$additiona2, _nocDetails$additiona3, _nocDetails$auditDeta, _nocDetails$documents;
|
|
45218
|
+
|
|
45219
|
+
return {
|
|
45220
|
+
title: index === 0 ? "BPA_NOC_DETAILS_SUMMARY" : "",
|
|
45221
|
+
values: [{
|
|
45222
|
+
title: "BPA_" + (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocType) + "_LABEL",
|
|
45223
|
+
value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationNo,
|
|
45224
|
+
isNotTranslated: true
|
|
45225
|
+
}, {
|
|
45226
|
+
title: "BPA_NOC_STATUS",
|
|
45227
|
+
value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus,
|
|
45228
|
+
field: "STATUS"
|
|
45229
|
+
}, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
|
|
45230
|
+
title: "BPA_SUDMITTED_ON_LABEL",
|
|
45231
|
+
value: nocDetails !== null && nocDetails !== void 0 && (_nocDetails$additiona2 = nocDetails.additionalDetails) !== null && _nocDetails$additiona2 !== void 0 && _nocDetails$additiona2.SubmittedOn ? 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",
|
|
45232
|
+
isNotTranslated: true
|
|
45233
|
+
}, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
|
|
45234
|
+
title: "BPA_APPROVAL_NUMBER_LABEL",
|
|
45235
|
+
value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) || "NA",
|
|
45236
|
+
isNotTranslated: true
|
|
45237
|
+
}, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
|
|
45238
|
+
title: "BPA_APPROVED_REJECTED_ON_LABEL",
|
|
45239
|
+
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" ? 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",
|
|
45240
|
+
isNotTranslated: true
|
|
45241
|
+
}],
|
|
45242
|
+
additionalDetails: {
|
|
45243
|
+
data: nocDetails,
|
|
45244
|
+
noc: [{
|
|
45245
|
+
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
45246
|
+
values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (doc) {
|
|
45247
|
+
var _doc$documentType2, _fileDetails5, _fileDetails5$data, _fileDetails6, _fileDetails6$data, _fileDetails6$data$do;
|
|
45248
|
+
|
|
45249
|
+
return {
|
|
45250
|
+
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
|
|
45251
|
+
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
45252
|
+
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
45253
|
+
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
45254
|
+
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
45255
|
+
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] : ""
|
|
45256
|
+
};
|
|
45257
|
+
})
|
|
45258
|
+
}]
|
|
45259
|
+
}
|
|
45260
|
+
};
|
|
45261
|
+
});
|
|
45262
|
+
var inspectionReport = [];
|
|
45263
|
+
var checklist = [];
|
|
45264
|
+
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) {
|
|
45265
|
+
return ob.docs && ob.docs.length > 0;
|
|
45266
|
+
}).map(function (ob, ind) {
|
|
45267
|
+
var _ob$date, _ob$date2, _ob$date3, _ob$questions, _ob$docs;
|
|
45268
|
+
|
|
45269
|
+
checklist = [];
|
|
45270
|
+
inspectionReport.push({
|
|
45271
|
+
title: "BPA_FI_REPORT",
|
|
45272
|
+
asSectionHeader: true,
|
|
45273
|
+
values: [{
|
|
45274
|
+
title: "BPA_FI_DATE_LABEL",
|
|
45275
|
+
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
|
|
45276
|
+
}, {
|
|
45277
|
+
title: "BPA_FI_TIME_LABEL",
|
|
45278
|
+
value: ob.time
|
|
45279
|
+
}]
|
|
45280
|
+
});
|
|
45281
|
+
ob === null || ob === void 0 ? void 0 : (_ob$questions = ob.questions) === null || _ob$questions === void 0 ? void 0 : _ob$questions.map(function (q, index) {
|
|
45282
|
+
checklist.push({
|
|
45283
|
+
title: q.question,
|
|
45284
|
+
value: q.value
|
|
45285
|
+
});
|
|
45286
|
+
checklist.push({
|
|
45287
|
+
title: "BPA_ENTER_REMARKS",
|
|
45288
|
+
value: q.remarks
|
|
45289
|
+
});
|
|
45290
|
+
});
|
|
45291
|
+
inspectionReport.push({
|
|
45292
|
+
title: "BPA_CHECK_LIST_DETAILS",
|
|
45293
|
+
asSectionHeader: true,
|
|
45294
|
+
values: checklist
|
|
45295
|
+
});
|
|
45296
|
+
inspectionReport.push({
|
|
45297
|
+
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
45298
|
+
asSectionHeader: true,
|
|
45299
|
+
additionalDetails: {
|
|
45300
|
+
obpsDocuments: [{
|
|
45301
|
+
title: "",
|
|
45302
|
+
values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
|
|
45303
|
+
var _doc$documentType3, _fileDetails7, _fileDetails7$data, _fileDetails8, _fileDetails8$data, _fileDetails8$data$do;
|
|
45304
|
+
|
|
45305
|
+
return {
|
|
45306
|
+
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
|
|
45307
|
+
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
45308
|
+
documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
|
|
45309
|
+
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
45310
|
+
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
45311
|
+
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] : ""
|
|
45312
|
+
};
|
|
45313
|
+
})
|
|
45314
|
+
}]
|
|
45315
|
+
}
|
|
45316
|
+
});
|
|
45317
|
+
});
|
|
45318
|
+
var details = [];
|
|
45319
|
+
var applicationDetailsInfo = {
|
|
45320
|
+
title: " ",
|
|
45321
|
+
isCommon: true,
|
|
45322
|
+
values: [{
|
|
45323
|
+
title: "BPA_APPLICATION_NUMBER_LABEL",
|
|
45324
|
+
value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
|
|
45325
|
+
}]
|
|
45326
|
+
};
|
|
45327
|
+
|
|
45328
|
+
if (BPA !== null && BPA !== void 0 && BPA.businessService.includes("BPA_OC")) {
|
|
45329
|
+
var _bpaResponse$BPA4, _bpaResponse$BPA4$, _bpaResponse$BPA5, _bpaResponse$BPA5$;
|
|
44018
45330
|
|
|
44019
|
-
|
|
44020
|
-
|
|
44021
|
-
|
|
44022
|
-
|
|
45331
|
+
applicationDetailsInfo["values"] = [].concat(applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : applicationDetailsInfo.values, [{
|
|
45332
|
+
title: "BPA_PERMIT_APP_NUMBER",
|
|
45333
|
+
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),
|
|
45334
|
+
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,
|
|
45335
|
+
isLink: true
|
|
45336
|
+
}]);
|
|
45337
|
+
}
|
|
44023
45338
|
|
|
44024
|
-
|
|
44025
|
-
|
|
44026
|
-
|
|
44027
|
-
|
|
45339
|
+
var permitcondn = [];
|
|
45340
|
+
(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) {
|
|
45341
|
+
permitcondn.push({
|
|
45342
|
+
title: index + 1 + ". " + ob,
|
|
45343
|
+
value: ""
|
|
45344
|
+
});
|
|
45345
|
+
}));
|
|
45346
|
+
var PermitConditions = {
|
|
45347
|
+
title: "BPA_PERMIT_CONDITIONS",
|
|
45348
|
+
isTitleVisible: ((_permitcondn = permitcondn) === null || _permitcondn === void 0 ? void 0 : _permitcondn.length) > 0 ? false : true,
|
|
45349
|
+
isNotAllowed: ((_permitcondn2 = permitcondn) === null || _permitcondn2 === void 0 ? void 0 : _permitcondn2.length) > 0 ? false : true,
|
|
45350
|
+
additionalDetails: {
|
|
45351
|
+
inspectionReport: [],
|
|
45352
|
+
permit: [].concat(permitcondn)
|
|
45353
|
+
}
|
|
45354
|
+
};
|
|
45355
|
+
if (permitcondn.length == 0) PermitConditions = {};
|
|
44028
45356
|
|
|
44029
|
-
|
|
44030
|
-
|
|
44031
|
-
|
|
44032
|
-
|
|
44033
|
-
month = (month > 9 ? "" : "0") + month;
|
|
44034
|
-
day = (day > 9 ? "" : "0") + day;
|
|
44035
|
-
return day + "/" + month + "/" + year;
|
|
44036
|
-
}
|
|
45357
|
+
if (riskType == "LOW" && permitcondn.length > 0) {
|
|
45358
|
+
permitcondn = [];
|
|
45359
|
+
PermitConditions = {};
|
|
45360
|
+
}
|
|
44037
45361
|
|
|
44038
|
-
|
|
44039
|
-
|
|
45362
|
+
if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
|
|
45363
|
+
var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail8, _BPA$additionalDetail9, _BPA$additionalDetail10;
|
|
44040
45364
|
|
|
44041
|
-
|
|
44042
|
-
|
|
45365
|
+
applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn = applicationDetailsInfo.values) === null || _applicationDetailsIn === void 0 ? void 0 : _applicationDetailsIn.push({
|
|
45366
|
+
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_NUMBER_LABEL" : "BPA_OC_PERMIT_NUMBER_LABEL",
|
|
45367
|
+
value: (BPA === null || BPA === void 0 ? void 0 : BPA.approvalNo) || "NA"
|
|
45368
|
+
});
|
|
45369
|
+
applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn2 = applicationDetailsInfo.values) === null || _applicationDetailsIn2 === void 0 ? void 0 : _applicationDetailsIn2.push({
|
|
45370
|
+
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_VALIDITY" : "BPA_OC_PERMIT_VALIDITY",
|
|
45371
|
+
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) + " - " + 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"
|
|
45372
|
+
});
|
|
45373
|
+
}
|
|
44043
45374
|
|
|
44044
|
-
|
|
44045
|
-
title:
|
|
45375
|
+
var basicDetails = {
|
|
45376
|
+
title: "BPA_BASIC_DETAILS_TITLE",
|
|
45377
|
+
asSectionHeader: true,
|
|
45378
|
+
isInsert: true,
|
|
45379
|
+
isCommon: true,
|
|
45380
|
+
values: [{
|
|
45381
|
+
title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
|
|
45382
|
+
value: BPA !== null && BPA !== void 0 && (_BPA$auditDetails = BPA.auditDetails) !== null && _BPA$auditDetails !== void 0 && _BPA$auditDetails.createdTime ? 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') : ''
|
|
45383
|
+
}, {
|
|
45384
|
+
title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
|
|
45385
|
+
value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
|
|
45386
|
+
}, {
|
|
45387
|
+
title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
|
|
45388
|
+
value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
|
|
45389
|
+
}, {
|
|
45390
|
+
title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
|
|
45391
|
+
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
|
|
45392
|
+
}, {
|
|
45393
|
+
title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
|
|
45394
|
+
value: "WF_BPA_" + riskType,
|
|
45395
|
+
isInsert: true
|
|
45396
|
+
}, {
|
|
45397
|
+
title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
|
|
45398
|
+
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
|
|
45399
|
+
}]
|
|
45400
|
+
};
|
|
45401
|
+
var plotDetails = {
|
|
45402
|
+
title: "BPA_PLOT_DETAILS_TITLE",
|
|
45403
|
+
asSectionHeader: true,
|
|
45404
|
+
isCommon: true,
|
|
44046
45405
|
values: [{
|
|
44047
|
-
title: "
|
|
44048
|
-
value:
|
|
45406
|
+
title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
|
|
45407
|
+
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),
|
|
45408
|
+
isNotTranslated: true,
|
|
45409
|
+
isUnit: "BPA_SQ_FT_LABEL"
|
|
45410
|
+
}, {
|
|
45411
|
+
title: "BPA_PLOT_NUMBER_LABEL",
|
|
45412
|
+
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",
|
|
44049
45413
|
isNotTranslated: true
|
|
44050
45414
|
}, {
|
|
44051
|
-
title: "
|
|
44052
|
-
value:
|
|
44053
|
-
field: "STATUS"
|
|
44054
|
-
}, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
|
|
44055
|
-
title: "BPA_SUDMITTED_ON_LABEL",
|
|
44056
|
-
value: nocDetails !== null && nocDetails !== void 0 && (_nocDetails$additiona2 = nocDetails.additionalDetails) !== null && _nocDetails$additiona2 !== void 0 && _nocDetails$additiona2.SubmittedOn ? 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",
|
|
45415
|
+
title: "BPA_KHATHA_NUMBER_LABEL",
|
|
45416
|
+
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",
|
|
44057
45417
|
isNotTranslated: true
|
|
44058
|
-
},
|
|
44059
|
-
title: "
|
|
44060
|
-
value: (
|
|
45418
|
+
}, {
|
|
45419
|
+
title: "BPA_HOLDING_NUMBER_LABEL",
|
|
45420
|
+
value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail11 = BPA.additionalDetails) === null || _BPA$additionalDetail11 === void 0 ? void 0 : _BPA$additionalDetail11.holdingNo) || "NA",
|
|
44061
45421
|
isNotTranslated: true
|
|
44062
|
-
},
|
|
44063
|
-
title: "
|
|
44064
|
-
value: (
|
|
45422
|
+
}, {
|
|
45423
|
+
title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
|
|
45424
|
+
value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail12 = BPA.additionalDetails) === null || _BPA$additionalDetail12 === void 0 ? void 0 : _BPA$additionalDetail12.registrationDetails) || "NA",
|
|
44065
45425
|
isNotTranslated: true
|
|
44066
|
-
}]
|
|
45426
|
+
}]
|
|
45427
|
+
};
|
|
45428
|
+
var scrutinyDetails = {
|
|
45429
|
+
title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
|
|
45430
|
+
isScrutinyDetails: true,
|
|
45431
|
+
isBackGroundColor: true,
|
|
44067
45432
|
additionalDetails: {
|
|
44068
|
-
|
|
44069
|
-
|
|
44070
|
-
|
|
44071
|
-
|
|
44072
|
-
|
|
44073
|
-
|
|
44074
|
-
|
|
44075
|
-
|
|
44076
|
-
|
|
44077
|
-
|
|
44078
|
-
|
|
44079
|
-
|
|
44080
|
-
|
|
44081
|
-
|
|
45433
|
+
values: [{
|
|
45434
|
+
title: "BPA_EDCR_DETAILS",
|
|
45435
|
+
value: " ",
|
|
45436
|
+
isHeader: true
|
|
45437
|
+
}, {
|
|
45438
|
+
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
|
|
45439
|
+
value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
|
|
45440
|
+
}],
|
|
45441
|
+
scruntinyDetails: [{
|
|
45442
|
+
title: "BPA_UPLOADED_PLAN_DIAGRAM",
|
|
45443
|
+
value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
|
|
45444
|
+
text: "BPA_UPLOADED_PLAN_DXF"
|
|
45445
|
+
}, {
|
|
45446
|
+
title: "BPA_SCRUNTINY_REPORT_OUTPUT",
|
|
45447
|
+
value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
|
|
45448
|
+
text: "BPA_SCRUTINY_REPORT_PDF"
|
|
44082
45449
|
}]
|
|
44083
45450
|
}
|
|
44084
45451
|
};
|
|
44085
|
-
|
|
44086
|
-
|
|
44087
|
-
|
|
44088
|
-
|
|
44089
|
-
|
|
44090
|
-
|
|
44091
|
-
|
|
44092
|
-
|
|
44093
|
-
|
|
44094
|
-
|
|
44095
|
-
|
|
45452
|
+
var buildingExtractionDetails = {
|
|
45453
|
+
title: "",
|
|
45454
|
+
isScrutinyDetails: true,
|
|
45455
|
+
isBackGroundColor: true,
|
|
45456
|
+
additionalDetails: {
|
|
45457
|
+
values: [{
|
|
45458
|
+
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
|
|
45459
|
+
value: " ",
|
|
45460
|
+
isHeader: true
|
|
45461
|
+
}, {
|
|
45462
|
+
title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
|
|
45463
|
+
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,
|
|
45464
|
+
isUnit: "BPA_SQ_MTRS_LABEL"
|
|
45465
|
+
}, {
|
|
45466
|
+
title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
|
|
45467
|
+
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"
|
|
45468
|
+
}, {
|
|
45469
|
+
title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
|
|
45470
|
+
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,
|
|
45471
|
+
isUnit: "BPA_MTRS_LABEL"
|
|
45472
|
+
}],
|
|
45473
|
+
scruntinyDetails: []
|
|
45474
|
+
}
|
|
45475
|
+
};
|
|
45476
|
+
var demolitionAreaDetails = {
|
|
45477
|
+
title: "",
|
|
45478
|
+
isScrutinyDetails: true,
|
|
45479
|
+
isBackGroundColor: true,
|
|
45480
|
+
additionalDetails: {
|
|
45481
|
+
values: [{
|
|
45482
|
+
title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
|
|
45483
|
+
value: " ",
|
|
45484
|
+
isHeader: true
|
|
45485
|
+
}, {
|
|
45486
|
+
title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
|
|
45487
|
+
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,
|
|
45488
|
+
isUnit: "BPA_SQ_MTRS_LABEL"
|
|
45489
|
+
}],
|
|
45490
|
+
scruntinyDetails: []
|
|
45491
|
+
}
|
|
45492
|
+
};
|
|
45493
|
+
var subOccupancyTableDetails = {
|
|
45494
|
+
title: "",
|
|
45495
|
+
isSubOccupancyTable: true,
|
|
45496
|
+
isTitleRepeat: true,
|
|
45497
|
+
additionalDetails: {
|
|
45498
|
+
values: [{
|
|
45499
|
+
title: "BPA_OCC_SUBOCC_HEADER",
|
|
45500
|
+
value: " ",
|
|
45501
|
+
isHeader: true
|
|
45502
|
+
}],
|
|
45503
|
+
subOccupancyTableDetails: [{
|
|
45504
|
+
title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
|
|
45505
|
+
value: edcr
|
|
45506
|
+
}, {
|
|
45507
|
+
title: "NO_REPEAT",
|
|
45508
|
+
value: ""
|
|
45509
|
+
}]
|
|
45510
|
+
}
|
|
45511
|
+
};
|
|
45512
|
+
var addressDetails = {
|
|
45513
|
+
title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
|
|
44096
45514
|
asSectionHeader: true,
|
|
45515
|
+
isCommon: true,
|
|
44097
45516
|
values: [{
|
|
44098
|
-
title: "
|
|
44099
|
-
value:
|
|
45517
|
+
title: "BPA_DETAILS_PIN_LABEL",
|
|
45518
|
+
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
|
|
45519
|
+
}, {
|
|
45520
|
+
title: "BPA_CITY_LABEL",
|
|
45521
|
+
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
|
|
45522
|
+
}, {
|
|
45523
|
+
title: "BPA_LOC_MOHALLA_LABEL",
|
|
45524
|
+
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
|
|
44100
45525
|
}, {
|
|
44101
|
-
title: "
|
|
44102
|
-
value:
|
|
45526
|
+
title: "BPA_DETAILS_SRT_NAME_LABEL",
|
|
45527
|
+
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
|
|
45528
|
+
}, {
|
|
45529
|
+
title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
|
|
45530
|
+
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
|
|
44103
45531
|
}]
|
|
44104
|
-
}
|
|
44105
|
-
|
|
44106
|
-
|
|
44107
|
-
|
|
44108
|
-
|
|
44109
|
-
|
|
44110
|
-
|
|
44111
|
-
|
|
44112
|
-
value: q.remarks
|
|
45532
|
+
};
|
|
45533
|
+
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;
|
|
45534
|
+
|
|
45535
|
+
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) {
|
|
45536
|
+
var _BPA$landInfo8, _BPA$landInfo8$owners;
|
|
45537
|
+
|
|
45538
|
+
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) {
|
|
45539
|
+
if (!ownerD.isPrimaryOwner) ownerD.isPrimaryOwner = "false";
|
|
44113
45540
|
});
|
|
44114
|
-
}
|
|
44115
|
-
|
|
44116
|
-
|
|
44117
|
-
|
|
44118
|
-
|
|
44119
|
-
|
|
44120
|
-
|
|
45541
|
+
}
|
|
45542
|
+
|
|
45543
|
+
var ownerDetails = {
|
|
45544
|
+
title: "BPA_APPLICANT_DETAILS_HEADER",
|
|
45545
|
+
isOwnerDetails: true,
|
|
45546
|
+
additionalDetails: {
|
|
45547
|
+
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) {
|
|
45548
|
+
return {
|
|
45549
|
+
title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
|
|
45550
|
+
values: [{
|
|
45551
|
+
title: "CORE_COMMON_NAME",
|
|
45552
|
+
value: owner === null || owner === void 0 ? void 0 : owner.name
|
|
45553
|
+
}, {
|
|
45554
|
+
title: "BPA_APPLICANT_GENDER_LABEL",
|
|
45555
|
+
value: owner === null || owner === void 0 ? void 0 : owner.gender
|
|
45556
|
+
}, {
|
|
45557
|
+
title: "CORE_COMMON_MOBILE_NUMBER",
|
|
45558
|
+
value: owner === null || owner === void 0 ? void 0 : owner.mobileNumber
|
|
45559
|
+
}, {
|
|
45560
|
+
title: "BPA_IS_PRIMARY_OWNER_LABEL",
|
|
45561
|
+
value: owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner,
|
|
45562
|
+
isNotTranslated: false
|
|
45563
|
+
}]
|
|
45564
|
+
};
|
|
45565
|
+
})
|
|
45566
|
+
}
|
|
45567
|
+
};
|
|
45568
|
+
var documentDetails = {
|
|
44121
45569
|
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
44122
45570
|
asSectionHeader: true,
|
|
45571
|
+
isDocumentDetails: true,
|
|
44123
45572
|
additionalDetails: {
|
|
44124
45573
|
obpsDocuments: [{
|
|
44125
45574
|
title: "",
|
|
44126
|
-
values:
|
|
44127
|
-
var _doc$
|
|
45575
|
+
values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
|
|
45576
|
+
var _doc$documentType4, _fileDetails9, _fileDetails9$data, _fileDetails10, _fileDetails10$data, _fileDetails10$data$d;
|
|
44128
45577
|
|
|
44129
45578
|
return {
|
|
44130
|
-
title: doc === null || doc === void 0 ? void 0 : (_doc$
|
|
45579
|
+
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
|
|
44131
45580
|
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
44132
|
-
documentUid: doc === null || doc === void 0 ? void 0 : doc.
|
|
45581
|
+
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
44133
45582
|
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
44134
|
-
id: doc === null || doc === void 0 ? void 0 : doc.id
|
|
45583
|
+
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
45584
|
+
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] : ""
|
|
44135
45585
|
};
|
|
44136
45586
|
})
|
|
44137
45587
|
}]
|
|
44138
45588
|
}
|
|
44139
|
-
}
|
|
44140
|
-
|
|
44141
|
-
|
|
44142
|
-
var applicationDetailsInfo = {
|
|
44143
|
-
title: " ",
|
|
44144
|
-
isCommon: true,
|
|
44145
|
-
values: [{
|
|
44146
|
-
title: "BPA_APPLICATION_NUMBER_LABEL",
|
|
44147
|
-
value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
|
|
44148
|
-
}]
|
|
44149
|
-
};
|
|
45589
|
+
};
|
|
45590
|
+
var approvalChecks = [];
|
|
45591
|
+
var approvalChecksDetails = {};
|
|
44150
45592
|
|
|
44151
|
-
|
|
44152
|
-
|
|
45593
|
+
if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
|
|
45594
|
+
var _mdmsRes$BPA2;
|
|
44153
45595
|
|
|
44154
|
-
|
|
44155
|
-
|
|
44156
|
-
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),
|
|
44157
|
-
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,
|
|
44158
|
-
isLink: true
|
|
44159
|
-
}]);
|
|
44160
|
-
}
|
|
45596
|
+
mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA2 = mdmsRes.BPA) === null || _mdmsRes$BPA2 === void 0 ? void 0 : _mdmsRes$BPA2.CheckList.forEach(function (checklist) {
|
|
45597
|
+
var _checklist$conditions;
|
|
44161
45598
|
|
|
44162
|
-
|
|
44163
|
-
|
|
44164
|
-
|
|
44165
|
-
|
|
44166
|
-
|
|
44167
|
-
|
|
44168
|
-
|
|
44169
|
-
|
|
44170
|
-
|
|
44171
|
-
|
|
44172
|
-
|
|
44173
|
-
|
|
44174
|
-
|
|
44175
|
-
permit: [].concat(permitcondn)
|
|
45599
|
+
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) {
|
|
45600
|
+
approvalChecks.push.apply(approvalChecks, checklist === null || checklist === void 0 ? void 0 : checklist.conditions);
|
|
45601
|
+
}
|
|
45602
|
+
});
|
|
45603
|
+
approvalChecksDetails = {
|
|
45604
|
+
title: "",
|
|
45605
|
+
isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
|
|
45606
|
+
asSectionHeader: true,
|
|
45607
|
+
isPermissions: true,
|
|
45608
|
+
additionalDetails: {
|
|
45609
|
+
permissions: approvalChecks
|
|
45610
|
+
}
|
|
45611
|
+
};
|
|
44176
45612
|
}
|
|
44177
|
-
};
|
|
44178
|
-
if (permitcondn.length == 0) PermitConditions = {};
|
|
44179
|
-
|
|
44180
|
-
if (riskType == "LOW" && permitcondn.length > 0) {
|
|
44181
|
-
permitcondn = [];
|
|
44182
|
-
PermitConditions = {};
|
|
44183
|
-
}
|
|
44184
45613
|
|
|
44185
|
-
|
|
44186
|
-
var
|
|
45614
|
+
if (riskType == "LOW" && approvalChecks.length > 0) approvalChecksDetails = {};
|
|
45615
|
+
var val;
|
|
45616
|
+
var i;
|
|
45617
|
+
var FieldInspectionData = [];
|
|
45618
|
+
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) {
|
|
45619
|
+
if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
45620
|
+
title: ob.title,
|
|
45621
|
+
additionalDetails: {
|
|
45622
|
+
inspectionReport: [],
|
|
45623
|
+
values: ob.values
|
|
45624
|
+
}
|
|
45625
|
+
}]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
45626
|
+
title: ob.title,
|
|
45627
|
+
additionalDetails: {
|
|
45628
|
+
isChecklist: true,
|
|
45629
|
+
inspectionReport: [],
|
|
45630
|
+
values: ob.values
|
|
45631
|
+
}
|
|
45632
|
+
}]);else {
|
|
45633
|
+
var _ob$additionalDetails, _ob$additionalDetails2;
|
|
44187
45634
|
|
|
44188
|
-
|
|
44189
|
-
|
|
44190
|
-
|
|
44191
|
-
|
|
44192
|
-
|
|
44193
|
-
|
|
44194
|
-
|
|
45635
|
+
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);
|
|
45636
|
+
improvedDoc.map(function (ob) {
|
|
45637
|
+
ob["isNotDuplicate"] = true;
|
|
45638
|
+
});
|
|
45639
|
+
improvedDoc.map(function (ob, index) {
|
|
45640
|
+
val = ob.documentType;
|
|
45641
|
+
if (ob.isNotDuplicate == true) for (i = index + 1; i < improvedDoc.length; i++) {
|
|
45642
|
+
if (val === improvedDoc[i].documentType) improvedDoc[i].isNotDuplicate = false;
|
|
45643
|
+
}
|
|
45644
|
+
});
|
|
45645
|
+
FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
45646
|
+
title: ob.title,
|
|
45647
|
+
additionalDetails: {
|
|
45648
|
+
FIdocuments: [],
|
|
45649
|
+
"documents": [{
|
|
45650
|
+
values: improvedDoc
|
|
45651
|
+
}]
|
|
45652
|
+
}
|
|
45653
|
+
}]);
|
|
45654
|
+
}
|
|
44195
45655
|
});
|
|
44196
|
-
|
|
45656
|
+
var fiReports = {
|
|
45657
|
+
title: "",
|
|
45658
|
+
isFieldInspection: true,
|
|
45659
|
+
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,
|
|
45660
|
+
additionalDetails: {
|
|
45661
|
+
values: [],
|
|
45662
|
+
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
|
|
45663
|
+
}
|
|
45664
|
+
};
|
|
44197
45665
|
|
|
44198
|
-
|
|
44199
|
-
|
|
44200
|
-
|
|
44201
|
-
|
|
44202
|
-
isCommon: true,
|
|
44203
|
-
values: [{
|
|
44204
|
-
title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
|
|
44205
|
-
value: BPA !== null && BPA !== void 0 && (_BPA$auditDetails = BPA.auditDetails) !== null && _BPA$auditDetails !== void 0 && _BPA$auditDetails.createdTime ? 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') : ''
|
|
44206
|
-
}, {
|
|
44207
|
-
title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
|
|
44208
|
-
value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
|
|
44209
|
-
}, {
|
|
44210
|
-
title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
|
|
44211
|
-
value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
|
|
44212
|
-
}, {
|
|
44213
|
-
title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
|
|
44214
|
-
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
|
|
44215
|
-
}, {
|
|
44216
|
-
title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
|
|
44217
|
-
value: "WF_BPA_" + riskType,
|
|
44218
|
-
isInsert: true
|
|
44219
|
-
}, {
|
|
44220
|
-
title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
|
|
44221
|
-
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
|
|
44222
|
-
}]
|
|
44223
|
-
};
|
|
44224
|
-
var plotDetails = {
|
|
44225
|
-
title: "BPA_PLOT_DETAILS_TITLE",
|
|
44226
|
-
asSectionHeader: true,
|
|
44227
|
-
isCommon: true,
|
|
44228
|
-
values: [{
|
|
44229
|
-
title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
|
|
44230
|
-
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),
|
|
44231
|
-
isNotTranslated: true,
|
|
44232
|
-
isUnit: "BPA_SQ_FT_LABEL"
|
|
44233
|
-
}, {
|
|
44234
|
-
title: "BPA_PLOT_NUMBER_LABEL",
|
|
44235
|
-
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",
|
|
44236
|
-
isNotTranslated: true
|
|
44237
|
-
}, {
|
|
44238
|
-
title: "BPA_KHATHA_NUMBER_LABEL",
|
|
44239
|
-
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",
|
|
44240
|
-
isNotTranslated: true
|
|
44241
|
-
}, {
|
|
44242
|
-
title: "BPA_HOLDING_NUMBER_LABEL",
|
|
44243
|
-
value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail9 = BPA.additionalDetails) === null || _BPA$additionalDetail9 === void 0 ? void 0 : _BPA$additionalDetail9.holdingNo) || "NA",
|
|
44244
|
-
isNotTranslated: true
|
|
44245
|
-
}, {
|
|
44246
|
-
title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
|
|
44247
|
-
value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail10 = BPA.additionalDetails) === null || _BPA$additionalDetail10 === void 0 ? void 0 : _BPA$additionalDetail10.registrationDetails) || "NA",
|
|
44248
|
-
isNotTranslated: true
|
|
44249
|
-
}]
|
|
44250
|
-
};
|
|
44251
|
-
var scrutinyDetails = {
|
|
44252
|
-
title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
|
|
44253
|
-
isScrutinyDetails: true,
|
|
44254
|
-
isBackGroundColor: true,
|
|
44255
|
-
additionalDetails: {
|
|
44256
|
-
values: [{
|
|
44257
|
-
title: "BPA_EDCR_DETAILS",
|
|
44258
|
-
value: " ",
|
|
44259
|
-
isHeader: true
|
|
44260
|
-
}, {
|
|
44261
|
-
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
|
|
44262
|
-
value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
|
|
44263
|
-
}],
|
|
44264
|
-
scruntinyDetails: [{
|
|
44265
|
-
title: "BPA_UPLOADED_PLAN_DIAGRAM",
|
|
44266
|
-
value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
|
|
44267
|
-
text: "BPA_UPLOADED_PLAN_DXF"
|
|
44268
|
-
}, {
|
|
44269
|
-
title: "BPA_SCRUNTINY_REPORT_OUTPUT",
|
|
44270
|
-
value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
|
|
44271
|
-
text: "BPA_SCRUTINY_REPORT_PDF"
|
|
44272
|
-
}]
|
|
44273
|
-
}
|
|
44274
|
-
};
|
|
44275
|
-
var buildingExtractionDetails = {
|
|
44276
|
-
title: "",
|
|
44277
|
-
isScrutinyDetails: true,
|
|
44278
|
-
isBackGroundColor: true,
|
|
44279
|
-
additionalDetails: {
|
|
44280
|
-
values: [{
|
|
44281
|
-
title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
|
|
44282
|
-
value: " ",
|
|
44283
|
-
isHeader: true
|
|
44284
|
-
}, {
|
|
44285
|
-
title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
|
|
44286
|
-
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,
|
|
44287
|
-
isUnit: "BPA_SQ_MTRS_LABEL"
|
|
44288
|
-
}, {
|
|
44289
|
-
title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
|
|
44290
|
-
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"
|
|
44291
|
-
}, {
|
|
44292
|
-
title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
|
|
44293
|
-
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,
|
|
44294
|
-
isUnit: "BPA_MTRS_LABEL"
|
|
44295
|
-
}],
|
|
44296
|
-
scruntinyDetails: []
|
|
44297
|
-
}
|
|
44298
|
-
};
|
|
44299
|
-
var demolitionAreaDetails = {
|
|
44300
|
-
title: "",
|
|
44301
|
-
isScrutinyDetails: true,
|
|
44302
|
-
isBackGroundColor: true,
|
|
44303
|
-
additionalDetails: {
|
|
44304
|
-
values: [{
|
|
44305
|
-
title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
|
|
44306
|
-
value: " ",
|
|
44307
|
-
isHeader: true
|
|
44308
|
-
}, {
|
|
44309
|
-
title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
|
|
44310
|
-
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,
|
|
44311
|
-
isUnit: "BPA_SQ_MTRS_LABEL"
|
|
44312
|
-
}],
|
|
44313
|
-
scruntinyDetails: []
|
|
44314
|
-
}
|
|
44315
|
-
};
|
|
44316
|
-
var subOccupancyTableDetails = {
|
|
44317
|
-
title: "",
|
|
44318
|
-
isSubOccupancyTable: true,
|
|
44319
|
-
isTitleRepeat: true,
|
|
44320
|
-
additionalDetails: {
|
|
44321
|
-
values: [{
|
|
44322
|
-
title: "BPA_OCC_SUBOCC_HEADER",
|
|
44323
|
-
value: " ",
|
|
44324
|
-
isHeader: true
|
|
44325
|
-
}],
|
|
44326
|
-
subOccupancyTableDetails: [{
|
|
44327
|
-
title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
|
|
44328
|
-
value: edcr
|
|
44329
|
-
}, {
|
|
44330
|
-
title: "NO_REPEAT",
|
|
44331
|
-
value: ""
|
|
44332
|
-
}]
|
|
45666
|
+
if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
|
|
45667
|
+
details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, addressDetails, ownerDetails, documentDetails, fiReports], nocDetails, [approvalChecksDetails, PermitConditions]);
|
|
45668
|
+
} else {
|
|
45669
|
+
details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports], nocDetails, [PermitConditions]);
|
|
44333
45670
|
}
|
|
44334
|
-
};
|
|
44335
|
-
var addressDetails = {
|
|
44336
|
-
title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
|
|
44337
|
-
asSectionHeader: true,
|
|
44338
|
-
isCommon: true,
|
|
44339
|
-
values: [{
|
|
44340
|
-
title: "BPA_DETAILS_PIN_LABEL",
|
|
44341
|
-
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
|
|
44342
|
-
}, {
|
|
44343
|
-
title: "BPA_CITY_LABEL",
|
|
44344
|
-
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
|
|
44345
|
-
}, {
|
|
44346
|
-
title: "BPA_LOC_MOHALLA_LABEL",
|
|
44347
|
-
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
|
|
44348
|
-
}, {
|
|
44349
|
-
title: "BPA_DETAILS_SRT_NAME_LABEL",
|
|
44350
|
-
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
|
|
44351
|
-
}, {
|
|
44352
|
-
title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
|
|
44353
|
-
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
|
|
44354
|
-
}]
|
|
44355
|
-
};
|
|
44356
|
-
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;
|
|
44357
|
-
|
|
44358
|
-
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) {
|
|
44359
|
-
var _BPA$landInfo8, _BPA$landInfo8$owners;
|
|
44360
45671
|
|
|
44361
|
-
|
|
44362
|
-
|
|
45672
|
+
var bpaFilterDetails = (_details = details) === null || _details === void 0 ? void 0 : _details.filter(function (data) {
|
|
45673
|
+
return data;
|
|
44363
45674
|
});
|
|
45675
|
+
return {
|
|
45676
|
+
applicationData: BPA,
|
|
45677
|
+
applicationDetails: bpaFilterDetails,
|
|
45678
|
+
tenantId: BPA === null || BPA === void 0 ? void 0 : BPA.tenantId,
|
|
45679
|
+
edcrDetails: edcr,
|
|
45680
|
+
nocData: noc,
|
|
45681
|
+
comparisionReport: comparisionReport === null || comparisionReport === void 0 ? void 0 : comparisionReport.comparisonDetail,
|
|
45682
|
+
businessService: BPA === null || BPA === void 0 ? void 0 : BPA.businessService,
|
|
45683
|
+
applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
|
|
45684
|
+
applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status
|
|
45685
|
+
};
|
|
44364
45686
|
}
|
|
44365
45687
|
|
|
44366
|
-
|
|
44367
|
-
|
|
44368
|
-
isOwnerDetails: true,
|
|
44369
|
-
additionalDetails: {
|
|
44370
|
-
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) {
|
|
44371
|
-
return {
|
|
44372
|
-
title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
|
|
44373
|
-
values: [{
|
|
44374
|
-
title: "CORE_COMMON_NAME",
|
|
44375
|
-
value: owner === null || owner === void 0 ? void 0 : owner.name
|
|
44376
|
-
}, {
|
|
44377
|
-
title: "BPA_APPLICANT_GENDER_LABEL",
|
|
44378
|
-
value: owner === null || owner === void 0 ? void 0 : owner.gender
|
|
44379
|
-
}, {
|
|
44380
|
-
title: "CORE_COMMON_MOBILE_NUMBER",
|
|
44381
|
-
value: owner === null || owner === void 0 ? void 0 : owner.mobileNumber
|
|
44382
|
-
}, {
|
|
44383
|
-
title: "BPA_IS_PRIMARY_OWNER_LABEL",
|
|
44384
|
-
value: owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner,
|
|
44385
|
-
isNotTranslated: false
|
|
44386
|
-
}]
|
|
44387
|
-
};
|
|
44388
|
-
})
|
|
44389
|
-
}
|
|
44390
|
-
};
|
|
44391
|
-
var documentDetails = {
|
|
44392
|
-
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
44393
|
-
asSectionHeader: true,
|
|
44394
|
-
isDocumentDetails: true,
|
|
44395
|
-
additionalDetails: {
|
|
44396
|
-
obpsDocuments: [{
|
|
44397
|
-
title: "",
|
|
44398
|
-
values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
|
|
44399
|
-
var _doc$documentType4;
|
|
44400
|
-
|
|
44401
|
-
return {
|
|
44402
|
-
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
|
|
44403
|
-
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
44404
|
-
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
44405
|
-
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
44406
|
-
id: doc === null || doc === void 0 ? void 0 : doc.id
|
|
44407
|
-
};
|
|
44408
|
-
})
|
|
44409
|
-
}]
|
|
44410
|
-
}
|
|
44411
|
-
};
|
|
44412
|
-
var approvalChecks = [];
|
|
44413
|
-
var approvalChecksDetails = {};
|
|
44414
|
-
|
|
44415
|
-
if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
|
|
44416
|
-
var _mdmsRes$BPA2;
|
|
45688
|
+
noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails) {
|
|
45689
|
+
var _nocDetails$documents2;
|
|
44417
45690
|
|
|
44418
|
-
|
|
44419
|
-
|
|
44420
|
-
|
|
44421
|
-
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) {
|
|
44422
|
-
approvalChecks.push.apply(approvalChecks, checklist === null || checklist === void 0 ? void 0 : checklist.conditions);
|
|
44423
|
-
}
|
|
45691
|
+
nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents2 = nocDetails.documents) === null || _nocDetails$documents2 === void 0 ? void 0 : _nocDetails$documents2.map(function (nocDoc) {
|
|
45692
|
+
if (nocDoc !== null && nocDoc !== void 0 && nocDoc.fileStoreId) appDocumentFileStoreIds.push(nocDoc === null || nocDoc === void 0 ? void 0 : nocDoc.fileStoreId);
|
|
44424
45693
|
});
|
|
44425
|
-
|
|
44426
|
-
|
|
44427
|
-
isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
|
|
44428
|
-
asSectionHeader: true,
|
|
44429
|
-
isPermissions: true,
|
|
44430
|
-
additionalDetails: {
|
|
44431
|
-
permissions: approvalChecks
|
|
44432
|
-
}
|
|
44433
|
-
};
|
|
44434
|
-
}
|
|
45694
|
+
});
|
|
45695
|
+
var fileDetails = {};
|
|
44435
45696
|
|
|
44436
|
-
|
|
44437
|
-
|
|
44438
|
-
var i;
|
|
44439
|
-
var FieldInspectionData = [];
|
|
44440
|
-
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) {
|
|
44441
|
-
if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
44442
|
-
title: ob.title,
|
|
44443
|
-
additionalDetails: {
|
|
44444
|
-
inspectionReport: [],
|
|
44445
|
-
values: ob.values
|
|
44446
|
-
}
|
|
44447
|
-
}]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
44448
|
-
title: ob.title,
|
|
44449
|
-
additionalDetails: {
|
|
44450
|
-
isChecklist: true,
|
|
44451
|
-
inspectionReport: [],
|
|
44452
|
-
values: ob.values
|
|
44453
|
-
}
|
|
44454
|
-
}]);else {
|
|
44455
|
-
var _ob$additionalDetails, _ob$additionalDetails2;
|
|
45697
|
+
var _temp3 = function () {
|
|
45698
|
+
var _appDocumentFileStore;
|
|
44456
45699
|
|
|
44457
|
-
|
|
44458
|
-
|
|
44459
|
-
|
|
44460
|
-
});
|
|
44461
|
-
improvedDoc.map(function (ob, index) {
|
|
44462
|
-
val = ob.documentType;
|
|
44463
|
-
if (ob.isNotDuplicate == true) for (i = index + 1; i < improvedDoc.length; i++) {
|
|
44464
|
-
if (val === improvedDoc[i].documentType) improvedDoc[i].isNotDuplicate = false;
|
|
44465
|
-
}
|
|
45700
|
+
if (((_appDocumentFileStore = appDocumentFileStoreIds) === null || _appDocumentFileStore === void 0 ? void 0 : _appDocumentFileStore.length) > 0) {
|
|
45701
|
+
return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (_UploadServices$Filef2) {
|
|
45702
|
+
fileDetails = _UploadServices$Filef2;
|
|
44466
45703
|
});
|
|
44467
|
-
FieldInspectionData = [].concat(FieldInspectionData, [{
|
|
44468
|
-
title: ob.title,
|
|
44469
|
-
additionalDetails: {
|
|
44470
|
-
FIdocuments: [],
|
|
44471
|
-
"documents": [{
|
|
44472
|
-
values: improvedDoc
|
|
44473
|
-
}]
|
|
44474
|
-
}
|
|
44475
|
-
}]);
|
|
44476
|
-
}
|
|
44477
|
-
});
|
|
44478
|
-
var fiReports = {
|
|
44479
|
-
title: "",
|
|
44480
|
-
isFieldInspection: true,
|
|
44481
|
-
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,
|
|
44482
|
-
additionalDetails: {
|
|
44483
|
-
values: [],
|
|
44484
|
-
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
|
|
44485
45704
|
}
|
|
44486
|
-
};
|
|
44487
|
-
|
|
44488
|
-
if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
|
|
44489
|
-
details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, addressDetails, ownerDetails, documentDetails, fiReports], nocDetails, [approvalChecksDetails, PermitConditions]);
|
|
44490
|
-
} else {
|
|
44491
|
-
details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports], nocDetails, [PermitConditions]);
|
|
44492
|
-
}
|
|
45705
|
+
}();
|
|
44493
45706
|
|
|
44494
|
-
|
|
44495
|
-
return data;
|
|
44496
|
-
});
|
|
44497
|
-
return {
|
|
44498
|
-
applicationData: BPA,
|
|
44499
|
-
applicationDetails: bpaFilterDetails,
|
|
44500
|
-
tenantId: BPA === null || BPA === void 0 ? void 0 : BPA.tenantId,
|
|
44501
|
-
edcrDetails: edcr,
|
|
44502
|
-
nocData: noc,
|
|
44503
|
-
comparisionReport: comparisionReport === null || comparisionReport === void 0 ? void 0 : comparisionReport.comparisonDetail,
|
|
44504
|
-
businessService: BPA === null || BPA === void 0 ? void 0 : BPA.businessService,
|
|
44505
|
-
applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
|
|
44506
|
-
applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status
|
|
44507
|
-
};
|
|
45707
|
+
return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
|
|
44508
45708
|
});
|
|
44509
45709
|
});
|
|
44510
45710
|
});
|
|
@@ -44789,6 +45989,34 @@ var useOBPSDocumentSearch = function useOBPSDocumentSearch(_ref, config, Code, i
|
|
|
44789
45989
|
};
|
|
44790
45990
|
};
|
|
44791
45991
|
|
|
45992
|
+
var updateNOCAPI = function updateNOCAPI(data, tenantId) {
|
|
45993
|
+
try {
|
|
45994
|
+
return Promise.resolve(_catch(function () {
|
|
45995
|
+
return Promise.resolve(OBPSService.updateNOC(data, tenantId));
|
|
45996
|
+
}, function (error) {
|
|
45997
|
+
var _error$response, _error$response$data;
|
|
45998
|
+
|
|
45999
|
+
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);
|
|
46000
|
+
}));
|
|
46001
|
+
} catch (e) {
|
|
46002
|
+
return Promise.reject(e);
|
|
46003
|
+
}
|
|
46004
|
+
};
|
|
46005
|
+
|
|
46006
|
+
var updateAPI = function updateAPI(data, tenantId) {
|
|
46007
|
+
try {
|
|
46008
|
+
return Promise.resolve(_catch(function () {
|
|
46009
|
+
return Promise.resolve(OBPSService.update(data, tenantId));
|
|
46010
|
+
}, function (error) {
|
|
46011
|
+
var _error$response2, _error$response2$data;
|
|
46012
|
+
|
|
46013
|
+
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);
|
|
46014
|
+
}));
|
|
46015
|
+
} catch (e) {
|
|
46016
|
+
return Promise.reject(e);
|
|
46017
|
+
}
|
|
46018
|
+
};
|
|
46019
|
+
|
|
44792
46020
|
var useObpsAPI = function useObpsAPI(tenantId, type) {
|
|
44793
46021
|
if (type === void 0) {
|
|
44794
46022
|
type = false;
|
|
@@ -44796,11 +46024,11 @@ var useObpsAPI = function useObpsAPI(tenantId, type) {
|
|
|
44796
46024
|
|
|
44797
46025
|
if (type) {
|
|
44798
46026
|
return useMutation(function (data) {
|
|
44799
|
-
return
|
|
46027
|
+
return updateNOCAPI(data, tenantId);
|
|
44800
46028
|
});
|
|
44801
46029
|
} else {
|
|
44802
46030
|
return useMutation(function (data) {
|
|
44803
|
-
return
|
|
46031
|
+
return updateAPI(data, tenantId);
|
|
44804
46032
|
});
|
|
44805
46033
|
}
|
|
44806
46034
|
};
|
|
@@ -44984,7 +46212,7 @@ var useBPAInbox = function useBPAInbox(_ref) {
|
|
|
44984
46212
|
processSearchCriteria: _extends({
|
|
44985
46213
|
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 : "",
|
|
44986
46214
|
moduleName: moduleName !== "BPAREG" ? "bpa-services" : "BPAREG",
|
|
44987
|
-
businessService: moduleName !== "BPAREG" ? businessService ? [businessService] : ["BPA_LOW", "BPA", "BPA_OC"] : businessService ? [businessService.identifier] : ["ARCHITECT", "BUILDER", "ENGINEER", "STRUCTURALENGINEER"]
|
|
46215
|
+
businessService: moduleName !== "BPAREG" ? businessService ? [businessService] : ["BPA_LOW", "BPA", "BPA_OC"] : businessService ? [businessService.identifier] : ["ARCHITECT", "BUILDER", "ENGINEER", "STRUCTURALENGINEER", "TOWNPLANNER", "SUPERVISOR"]
|
|
44988
46216
|
}, (applicationStatus === null || applicationStatus === void 0 ? void 0 : applicationStatus.length) > 0 ? {
|
|
44989
46217
|
status: applicationStatus
|
|
44990
46218
|
} : {}),
|
|
@@ -45007,9 +46235,15 @@ var useBPAInbox = function useBPAInbox(_ref) {
|
|
|
45007
46235
|
return item.code.split("_").pop();
|
|
45008
46236
|
}).join(",")
|
|
45009
46237
|
} : {}),
|
|
45010
|
-
limit: limit
|
|
45011
|
-
offset: offset
|
|
46238
|
+
limit: limit
|
|
45012
46239
|
};
|
|
46240
|
+
|
|
46241
|
+
if (!applicationNo) {
|
|
46242
|
+
_filters = _extends({}, _filters, {
|
|
46243
|
+
offset: offset
|
|
46244
|
+
});
|
|
46245
|
+
}
|
|
46246
|
+
|
|
45013
46247
|
return useInbox({
|
|
45014
46248
|
tenantId: tenantId,
|
|
45015
46249
|
filters: _filters,
|
|
@@ -45406,8 +46640,8 @@ var useBusinessServiceData = function useBusinessServiceData(tenantId, businessS
|
|
|
45406
46640
|
}, config);
|
|
45407
46641
|
};
|
|
45408
46642
|
|
|
45409
|
-
var useBPATaxDocuments = function useBPATaxDocuments(stateId, formData,
|
|
45410
|
-
var _bpaDocs$BPA, _filtredBpaDocs, _filtredBpaDocs$, _filtredBpaDocs$$docT;
|
|
46643
|
+
var useBPATaxDocuments = function useBPATaxDocuments(stateId, formData, beforeUploadDocuments) {
|
|
46644
|
+
var _beforeUploadDocument, _data$pdfFiles, _bpaDocs$BPA, _filtredBpaDocs, _filtredBpaDocs$, _filtredBpaDocs$$docT;
|
|
45411
46645
|
|
|
45412
46646
|
var _Digit$Hooks$obps$use = Digit.Hooks.obps.useMDMS(stateId, "BPA", ["DocTypeMapping"]),
|
|
45413
46647
|
bpaDocsLoading = _Digit$Hooks$obps$use.isLoading,
|
|
@@ -45417,6 +46651,17 @@ var useBPATaxDocuments = function useBPATaxDocuments(stateId, formData, PrevStat
|
|
|
45417
46651
|
commonDocsLoading = _Digit$Hooks$obps$use2.isLoading,
|
|
45418
46652
|
commonDocs = _Digit$Hooks$obps$use2.data;
|
|
45419
46653
|
|
|
46654
|
+
var documents = beforeUploadDocuments;
|
|
46655
|
+
|
|
46656
|
+
var _Digit$Hooks$useDocum = Digit.Hooks.useDocumentSearch(documents, {
|
|
46657
|
+
enabled: ((_beforeUploadDocument = beforeUploadDocuments) === null || _beforeUploadDocument === void 0 ? void 0 : _beforeUploadDocument.length) > 0 ? true : false
|
|
46658
|
+
}),
|
|
46659
|
+
data = _Digit$Hooks$useDocum.data;
|
|
46660
|
+
|
|
46661
|
+
if ((data === null || data === void 0 ? void 0 : (_data$pdfFiles = data.pdfFiles) === null || _data$pdfFiles === void 0 ? void 0 : _data$pdfFiles.length) > 0) {
|
|
46662
|
+
beforeUploadDocuments = data === null || data === void 0 ? void 0 : data.pdfFiles;
|
|
46663
|
+
}
|
|
46664
|
+
|
|
45420
46665
|
var filtredBpaDocs = [];
|
|
45421
46666
|
|
|
45422
46667
|
if (bpaDocs !== null && bpaDocs !== void 0 && (_bpaDocs$BPA = bpaDocs.BPA) !== null && _bpaDocs$BPA !== void 0 && _bpaDocs$BPA.DocTypeMapping) {
|
|
@@ -45447,7 +46692,7 @@ var useBPATaxDocuments = function useBPATaxDocuments(stateId, formData, PrevStat
|
|
|
45447
46692
|
});
|
|
45448
46693
|
doc.uploadedDocuments[0] = {};
|
|
45449
46694
|
doc.uploadedDocuments[0].values = [];
|
|
45450
|
-
|
|
46695
|
+
beforeUploadDocuments.map(function (upDocs) {
|
|
45451
46696
|
var _upDocs$documentType, _upDocs$documentType2;
|
|
45452
46697
|
|
|
45453
46698
|
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])) {
|
|
@@ -46528,6 +47773,7 @@ var Hooks = {
|
|
|
46528
47773
|
useClearNotifications: useClearNotifications,
|
|
46529
47774
|
useNotificationCount: useNotificationCount,
|
|
46530
47775
|
useStore: useStore$1,
|
|
47776
|
+
useDocumentSearch: useDocumentSearch,
|
|
46531
47777
|
useTenants: useTenants,
|
|
46532
47778
|
useInbox: useTLInbox,
|
|
46533
47779
|
pgr: pgr,
|