@mseva/digit-ui-module-ndc 1.0.72-dev.1.10 → 1.0.72-dev.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -21
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -14673,13 +14673,14 @@ const NDCNewFormSummaryStepThreeCitizen = ({
|
|
|
14673
14673
|
}
|
|
14674
14674
|
};
|
|
14675
14675
|
function mapToNDCPayload(inputData, actionStatus) {
|
|
14676
|
-
var _Digit$UserService$ge,
|
|
14676
|
+
var _Digit$UserService$ge, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
|
|
14677
14677
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
14678
14678
|
console.log("inputData", inputData);
|
|
14679
|
-
const owners = (
|
|
14680
|
-
|
|
14681
|
-
|
|
14682
|
-
|
|
14679
|
+
const owners = ((inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []).map(item => {
|
|
14680
|
+
const obj = JSON.parse(JSON.stringify(item));
|
|
14681
|
+
delete obj.status;
|
|
14682
|
+
return obj;
|
|
14683
|
+
});
|
|
14683
14684
|
const baseApplication = (formData === null || formData === void 0 ? void 0 : (_formData$responseDat = formData.responseData) === null || _formData$responseDat === void 0 ? void 0 : _formData$responseDat[0]) || (formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$App = _formData$apiData.Applications) === null || _formData$apiData$App === void 0 ? void 0 : _formData$apiData$App[0]) || {};
|
|
14684
14685
|
console.log("baseApplication", baseApplication);
|
|
14685
14686
|
const updatedApplication = {
|
|
@@ -15103,20 +15104,16 @@ const NewNDCStepFormOne$1 = ({
|
|
|
15103
15104
|
setLoader(true);
|
|
15104
15105
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
15105
15106
|
const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
|
|
15106
|
-
const owners = ((data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.owners) || []).map(
|
|
15107
|
-
|
|
15108
|
-
|
|
15109
|
-
|
|
15110
|
-
|
|
15111
|
-
if ((rest === null || rest === void 0 ? void 0 : (_rest$name = rest.name) === null || _rest$name === void 0 ? void 0 : (_rest$name$trim = _rest$name.trim()) === null || _rest$name$trim === void 0 ? void 0 : _rest$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
|
|
15107
|
+
const owners = ((data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.owners) || []).map(owner => {
|
|
15108
|
+
var _newOwner$name, _newOwner$name$trim, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3;
|
|
15109
|
+
const newOwner = JSON.parse(JSON.stringify(owner));
|
|
15110
|
+
delete newOwner.status;
|
|
15111
|
+
if ((newOwner === null || newOwner === void 0 ? void 0 : (_newOwner$name = newOwner.name) === null || _newOwner$name === void 0 ? void 0 : (_newOwner$name$trim = _newOwner$name.trim()) === null || _newOwner$name$trim === void 0 ? void 0 : _newOwner$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
|
|
15112
15112
|
var _data$PropertyDetails4;
|
|
15113
|
-
|
|
15114
|
-
|
|
15115
|
-
emailId: data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email,
|
|
15116
|
-
isPrimaryOwner: true
|
|
15117
|
-
};
|
|
15113
|
+
newOwner.emailId = data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email;
|
|
15114
|
+
newOwner.isPrimaryOwner = true;
|
|
15118
15115
|
}
|
|
15119
|
-
return
|
|
15116
|
+
return newOwner;
|
|
15120
15117
|
});
|
|
15121
15118
|
const ndcDetails = [];
|
|
15122
15119
|
((data === null || data === void 0 ? void 0 : (_data$PropertyDetails5 = data.PropertyDetails) === null || _data$PropertyDetails5 === void 0 ? void 0 : _data$PropertyDetails5.waterConnection) || []).forEach(wc => {
|
|
@@ -15393,10 +15390,11 @@ const NDCNewFormSummaryStepThreeEmployee = ({
|
|
|
15393
15390
|
var _Digit$UserService$ge, _ref, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App, _baseApplication$NdcD, _formData$NDCDetails4, _formData$NDCDetails5, _inputData$DocummentD, _inputData$DocummentD2;
|
|
15394
15391
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
15395
15392
|
console.log("checkFormData", formData);
|
|
15396
|
-
const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15393
|
+
const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(item => {
|
|
15394
|
+
const obj = JSON.parse(JSON.stringify(item));
|
|
15395
|
+
delete obj.status;
|
|
15396
|
+
return obj;
|
|
15397
|
+
});
|
|
15400
15398
|
const baseApplication = (formData === null || formData === void 0 ? void 0 : (_formData$responseDat = formData.responseData) === null || _formData$responseDat === void 0 ? void 0 : _formData$responseDat[0]) || (formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$App = _formData$apiData.Applications) === null || _formData$apiData$App === void 0 ? void 0 : _formData$apiData$App[0]) || {};
|
|
15401
15399
|
const updatedApplication = {
|
|
15402
15400
|
...baseApplication,
|