@djb25/digit-ui-module-ws 1.0.8 → 1.0.10
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 +222 -80
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$2, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useLocation, Switch, Route, useHistory, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader as Loader$1, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, BackButton, PrivateRoute, Banner, CardText, ActionBar, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, BreadcrumbHeader, ArrowLeft, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CardLabelError, DeleteIcon, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, Localities, Modal, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, ViewsIcon, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
4
|
+
import { Loader as Loader$1, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, BackButton, PrivateRoute, Banner, CardText, ActionBar, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, BreadcrumbHeader, ArrowLeft, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CardLabelError, DeleteIcon, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, CollapsibleCardPage, Table, Localities, Modal, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, ViewsIcon, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
5
5
|
import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
|
|
6
6
|
import { read, utils as utils$1 } from 'xlsx';
|
|
7
7
|
import { useQueryClient } from 'react-query';
|
|
@@ -7602,7 +7602,6 @@ const WSInfoLabel = ({
|
|
|
7602
7602
|
userType = userType || Digit.SessionStorage.get("userType");
|
|
7603
7603
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
7604
7604
|
let isPrivacyEnabled = sessionStorage.getItem("isPrivacyEnabled");
|
|
7605
|
-
console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>", isPrivacyEnabled);
|
|
7606
7605
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isPrivacyEnabled === "true" && /*#__PURE__*/React.createElement("div", {
|
|
7607
7606
|
style: userType === "citizen" ? {
|
|
7608
7607
|
maxWidth: "970px"
|
|
@@ -10997,7 +10996,7 @@ const WSConnectionDetails = ({
|
|
|
10997
10996
|
}, commonProps))));
|
|
10998
10997
|
};
|
|
10999
10998
|
const ConnectionDetails = _props => {
|
|
11000
|
-
var _formData$DocumentsRe, _errors$proposedTaps2, _errors$proposedPipeS2, _errors$proposedWater2, _errors$proposedToile2;
|
|
10999
|
+
var _formData$DocumentsRe, _errors$proposedTaps2, _errors$proposedTaps3, _errors$proposedPipeS2, _errors$proposedPipeS3, _errors$proposedWater2, _errors$proposedToile2;
|
|
11001
11000
|
const {
|
|
11002
11001
|
connectionDetail,
|
|
11003
11002
|
focusIndex,
|
|
@@ -11101,11 +11100,12 @@ const ConnectionDetails = _props => {
|
|
|
11101
11100
|
};
|
|
11102
11101
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
11103
11102
|
const isEmployee = window.location.href.includes("/employee");
|
|
11104
|
-
return /*#__PURE__*/React.createElement("div",
|
|
11103
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11105
11104
|
style: {
|
|
11106
11105
|
marginBottom: "16px"
|
|
11107
|
-
}
|
|
11108
|
-
|
|
11106
|
+
},
|
|
11107
|
+
className: "formcomposer-section-grid"
|
|
11108
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
11109
11109
|
style: {
|
|
11110
11110
|
fontWeight: "700"
|
|
11111
11111
|
}
|
|
@@ -11173,12 +11173,11 @@ const ConnectionDetails = _props => {
|
|
|
11173
11173
|
onBlur: props.onBlur
|
|
11174
11174
|
});
|
|
11175
11175
|
}
|
|
11176
|
-
})), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.water) && /*#__PURE__*/React.createElement(
|
|
11176
|
+
}))), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.water) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
11177
11177
|
style: isMobile && isEmployee ? {
|
|
11178
11178
|
fontWeight: "700",
|
|
11179
11179
|
width: "100%"
|
|
11180
11180
|
} : {
|
|
11181
|
-
marginTop: "-5px",
|
|
11182
11181
|
fontWeight: "700"
|
|
11183
11182
|
},
|
|
11184
11183
|
className: "card-label-smaller"
|
|
@@ -11214,15 +11213,14 @@ const ConnectionDetails = _props => {
|
|
|
11214
11213
|
onBlur: props.onBlur
|
|
11215
11214
|
});
|
|
11216
11215
|
}
|
|
11217
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11216
|
+
}))), localFormState.touched.proposedTaps && errors !== null && errors !== void 0 && (_errors$proposedTaps2 = errors.proposedTaps) !== null && _errors$proposedTaps2 !== void 0 && _errors$proposedTaps2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11218
11217
|
style: errorStyle
|
|
11219
|
-
}, localFormState.touched.proposedTaps ? errors === null || errors === void 0 ? void 0 : (_errors$
|
|
11218
|
+
}, localFormState.touched.proposedTaps ? errors === null || errors === void 0 ? void 0 : (_errors$proposedTaps3 = errors.proposedTaps) === null || _errors$proposedTaps3 === void 0 ? void 0 : _errors$proposedTaps3.message : "") : null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
11220
11219
|
style: isMobile && isEmployee ? {
|
|
11221
11220
|
fontWeight: "700",
|
|
11222
11221
|
width: "100%",
|
|
11223
11222
|
paddingTop: "10px"
|
|
11224
11223
|
} : {
|
|
11225
|
-
marginTop: "-5px",
|
|
11226
11224
|
fontWeight: "700"
|
|
11227
11225
|
},
|
|
11228
11226
|
className: "card-label-smaller"
|
|
@@ -11250,14 +11248,13 @@ const ConnectionDetails = _props => {
|
|
|
11250
11248
|
t: t
|
|
11251
11249
|
});
|
|
11252
11250
|
}
|
|
11253
|
-
})), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11251
|
+
})), localFormState.touched.proposedPipeSize && errors !== null && errors !== void 0 && (_errors$proposedPipeS2 = errors.proposedPipeSize) !== null && _errors$proposedPipeS2 !== void 0 && _errors$proposedPipeS2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11254
11252
|
style: errorStyle
|
|
11255
|
-
}, localFormState.touched.proposedPipeSize ? errors === null || errors === void 0 ? void 0 : (_errors$
|
|
11253
|
+
}, localFormState.touched.proposedPipeSize ? errors === null || errors === void 0 ? void 0 : (_errors$proposedPipeS3 = errors.proposedPipeSize) === null || _errors$proposedPipeS3 === void 0 ? void 0 : _errors$proposedPipeS3.message : "") : null), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.sewerage) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
11256
11254
|
style: isMobile && isEmployee ? {
|
|
11257
11255
|
fontWeight: "700",
|
|
11258
11256
|
width: "100%"
|
|
11259
11257
|
} : {
|
|
11260
|
-
marginTop: "-5px",
|
|
11261
11258
|
fontWeight: "700"
|
|
11262
11259
|
},
|
|
11263
11260
|
className: "card-label-smaller"
|
|
@@ -11300,7 +11297,6 @@ const ConnectionDetails = _props => {
|
|
|
11300
11297
|
fontWeight: "700",
|
|
11301
11298
|
width: "100%"
|
|
11302
11299
|
} : {
|
|
11303
|
-
marginTop: "-5px",
|
|
11304
11300
|
fontWeight: "700"
|
|
11305
11301
|
},
|
|
11306
11302
|
className: "card-label-smaller"
|
|
@@ -11338,7 +11334,7 @@ const ConnectionDetails = _props => {
|
|
|
11338
11334
|
}
|
|
11339
11335
|
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
11340
11336
|
style: errorStyle
|
|
11341
|
-
}, localFormState.touched.proposedToilets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedToile2 = errors.proposedToilets) === null || _errors$proposedToile2 === void 0 ? void 0 : _errors$proposedToile2.message : "")))
|
|
11337
|
+
}, localFormState.touched.proposedToilets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedToile2 = errors.proposedToilets) === null || _errors$proposedToile2 === void 0 ? void 0 : _errors$proposedToile2.message : "")));
|
|
11342
11338
|
};
|
|
11343
11339
|
|
|
11344
11340
|
const WSDocumentsRequired = () => {
|
|
@@ -15295,7 +15291,6 @@ const WSDocumentsEmployee = ({
|
|
|
15295
15291
|
formState
|
|
15296
15292
|
}) => {
|
|
15297
15293
|
var _formData$DocumentsRe, _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData2;
|
|
15298
|
-
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
15299
15294
|
const stateId = Digit.ULBService.getStateId();
|
|
15300
15295
|
const [documents, setDocuments] = useState((formData === null || formData === void 0 ? void 0 : (_formData$DocumentsRe = formData.DocumentsRequired) === null || _formData$DocumentsRe === void 0 ? void 0 : _formData$DocumentsRe.documents) || []);
|
|
15301
15296
|
const [error, setError] = useState(null);
|
|
@@ -15343,7 +15338,9 @@ const WSDocumentsEmployee = ({
|
|
|
15343
15338
|
});
|
|
15344
15339
|
});
|
|
15345
15340
|
}
|
|
15346
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
15341
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
15342
|
+
className: "formcomposer-section-grid ws-doc-upload"
|
|
15343
|
+
}, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData2 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData2 === void 0 ? void 0 : _wsDocs$wsDocsData2.map((document, index) => {
|
|
15347
15344
|
return /*#__PURE__*/React.createElement(SelectDocument$1, {
|
|
15348
15345
|
key: index,
|
|
15349
15346
|
document: document,
|
|
@@ -15360,7 +15357,7 @@ const WSDocumentsEmployee = ({
|
|
|
15360
15357
|
config: config,
|
|
15361
15358
|
formState: formState
|
|
15362
15359
|
});
|
|
15363
|
-
}), error && /*#__PURE__*/React.createElement(Toast, {
|
|
15360
|
+
})), error && /*#__PURE__*/React.createElement(Toast, {
|
|
15364
15361
|
label: error,
|
|
15365
15362
|
onClose: () => setError(null),
|
|
15366
15363
|
error: true
|
|
@@ -15383,11 +15380,11 @@ function SelectDocument$1({
|
|
|
15383
15380
|
id
|
|
15384
15381
|
}) {
|
|
15385
15382
|
var _doc$dropdownData, _formData$ConnectionD;
|
|
15383
|
+
const fileRef = useRef();
|
|
15386
15384
|
const filteredDocument = documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
15387
15385
|
var _item$documentType;
|
|
15388
15386
|
return item === null || item === void 0 ? void 0 : (_item$documentType = item.documentType) === null || _item$documentType === void 0 ? void 0 : _item$documentType.includes(doc === null || doc === void 0 ? void 0 : doc.code);
|
|
15389
15387
|
})[0];
|
|
15390
|
-
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
15391
15388
|
const [selectedDocument, setSelectedDocument] = useState(filteredDocument ? {
|
|
15392
15389
|
...filteredDocument,
|
|
15393
15390
|
code: filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentType
|
|
@@ -15494,11 +15491,7 @@ function SelectDocument$1({
|
|
|
15494
15491
|
useEffect(() => {
|
|
15495
15492
|
if (isHidden) setUploadedFile(null);
|
|
15496
15493
|
}, [isHidden]);
|
|
15497
|
-
return /*#__PURE__*/React.createElement(
|
|
15498
|
-
style: {
|
|
15499
|
-
marginBottom: "24px"
|
|
15500
|
-
}
|
|
15501
|
-
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15494
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15502
15495
|
style: {
|
|
15503
15496
|
fontWeight: "700"
|
|
15504
15497
|
}
|
|
@@ -15517,9 +15510,7 @@ function SelectDocument$1({
|
|
|
15517
15510
|
select: handleSelectDocument,
|
|
15518
15511
|
optionKey: "i18nKey",
|
|
15519
15512
|
t: t
|
|
15520
|
-
})) : null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(
|
|
15521
|
-
className: "card-label-smaller"
|
|
15522
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
15513
|
+
})) : null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
|
|
15523
15514
|
className: "field"
|
|
15524
15515
|
}, /*#__PURE__*/React.createElement(UploadFile, {
|
|
15525
15516
|
onUpload: selectfile,
|
|
@@ -15531,9 +15522,6 @@ function SelectDocument$1({
|
|
|
15531
15522
|
textStyles: {
|
|
15532
15523
|
width: "100%"
|
|
15533
15524
|
},
|
|
15534
|
-
inputStyles: {
|
|
15535
|
-
width: "280px"
|
|
15536
|
-
},
|
|
15537
15525
|
buttonType: "button",
|
|
15538
15526
|
error: !uploadedFile,
|
|
15539
15527
|
accept: "image/*, .pdf, .png, .jpeg, .jpg"
|
|
@@ -15759,6 +15747,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15759
15747
|
label: `${t(`WS_SERVICE_NAME_LABEL`)}`,
|
|
15760
15748
|
text: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName
|
|
15761
15749
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
15750
|
+
className: "formcomposer-section-grid",
|
|
15762
15751
|
style: {
|
|
15763
15752
|
marginBottom: "16px"
|
|
15764
15753
|
}
|
|
@@ -15836,7 +15825,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15836
15825
|
disable: true
|
|
15837
15826
|
});
|
|
15838
15827
|
}
|
|
15839
|
-
}))), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName) == "WATER" && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15828
|
+
}))), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName) == "WATER" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15840
15829
|
style: isMobile && isEmployee ? {
|
|
15841
15830
|
fontWeight: "700",
|
|
15842
15831
|
width: "100%"
|
|
@@ -15879,7 +15868,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15879
15868
|
}
|
|
15880
15869
|
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
15881
15870
|
style: errorStyle
|
|
15882
|
-
}, localFormState.touched.proposedTaps ? errors === null || errors === void 0 ? void 0 : (_errors$proposedTaps2 = errors.proposedTaps) === null || _errors$proposedTaps2 === void 0 ? void 0 : _errors$proposedTaps2.message : ""), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15871
|
+
}, localFormState.touched.proposedTaps ? errors === null || errors === void 0 ? void 0 : (_errors$proposedTaps2 = errors.proposedTaps) === null || _errors$proposedTaps2 === void 0 ? void 0 : _errors$proposedTaps2.message : "")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15883
15872
|
style: isMobile && isEmployee ? {
|
|
15884
15873
|
fontWeight: "700",
|
|
15885
15874
|
width: "100%"
|
|
@@ -15914,7 +15903,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15914
15903
|
}
|
|
15915
15904
|
})), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
15916
15905
|
style: errorStyle
|
|
15917
|
-
}, localFormState.touched.proposedPipeSize ? errors === null || errors === void 0 ? void 0 : (_errors$proposedPipeS2 = errors.proposedPipeSize) === null || _errors$proposedPipeS2 === void 0 ? void 0 : _errors$proposedPipeS2.message : "")), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName) !== "WATER" && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15906
|
+
}, localFormState.touched.proposedPipeSize ? errors === null || errors === void 0 ? void 0 : (_errors$proposedPipeS2 = errors.proposedPipeSize) === null || _errors$proposedPipeS2 === void 0 ? void 0 : _errors$proposedPipeS2.message : ""))), (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceName) !== "WATER" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15918
15907
|
style: isMobile && isEmployee ? {
|
|
15919
15908
|
fontWeight: "700",
|
|
15920
15909
|
width: "100%"
|
|
@@ -15957,7 +15946,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
15957
15946
|
}
|
|
15958
15947
|
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
15959
15948
|
style: errorStyle
|
|
15960
|
-
}, localFormState.touched.proposedWaterClosets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedWater2 = errors.proposedWaterClosets) === null || _errors$proposedWater2 === void 0 ? void 0 : _errors$proposedWater2.message : ""), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15949
|
+
}, localFormState.touched.proposedWaterClosets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedWater2 = errors.proposedWaterClosets) === null || _errors$proposedWater2 === void 0 ? void 0 : _errors$proposedWater2.message : "")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15961
15950
|
style: isMobile && isEmployee ? {
|
|
15962
15951
|
fontWeight: "700",
|
|
15963
15952
|
width: "100%"
|
|
@@ -16000,7 +15989,7 @@ const ConnectionDetails$4 = _props => {
|
|
|
16000
15989
|
}
|
|
16001
15990
|
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
16002
15991
|
style: errorStyle
|
|
16003
|
-
}, localFormState.touched.proposedToilets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedToile2 = errors.proposedToilets) === null || _errors$proposedToile2 === void 0 ? void 0 : _errors$proposedToile2.message : ""))));
|
|
15992
|
+
}, localFormState.touched.proposedToilets ? errors === null || errors === void 0 ? void 0 : (_errors$proposedToile2 = errors.proposedToilets) === null || _errors$proposedToile2 === void 0 ? void 0 : _errors$proposedToile2.message : "")))));
|
|
16004
15993
|
};
|
|
16005
15994
|
|
|
16006
15995
|
const WSDisconnectionDocsRequired = ({
|
|
@@ -19522,7 +19511,7 @@ const FilterFormFieldsComponent = ({
|
|
|
19522
19511
|
defaultLabel: t("ES_WS_ALL_SELECTED"),
|
|
19523
19512
|
defaultUnit: t("WS_SELECTED_TEXT")
|
|
19524
19513
|
}), /*#__PURE__*/React.createElement("div", {
|
|
19525
|
-
className: "tag-container"
|
|
19514
|
+
className: "tag-container hide-x-scrollbar"
|
|
19526
19515
|
}, renderRemovableTokens));
|
|
19527
19516
|
}
|
|
19528
19517
|
})), /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -20199,7 +20188,8 @@ const SearchFields = ({
|
|
|
20199
20188
|
reset,
|
|
20200
20189
|
tenantId,
|
|
20201
20190
|
t,
|
|
20202
|
-
businessService
|
|
20191
|
+
businessService,
|
|
20192
|
+
hideSubmitButton: _hideSubmitButton = false
|
|
20203
20193
|
}) => {
|
|
20204
20194
|
var _statusData$otherRole, _statusData$userRoleS;
|
|
20205
20195
|
const {
|
|
@@ -20263,12 +20253,12 @@ const SearchFields = ({
|
|
|
20263
20253
|
componentInFront: "+91"
|
|
20264
20254
|
};
|
|
20265
20255
|
let validation = {};
|
|
20266
|
-
return /*#__PURE__*/React.createElement(Fragment
|
|
20256
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_ACK_COMMON_APP_NO_LABEL")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
20267
20257
|
name: "applicationNumber",
|
|
20268
20258
|
inputRef: register()
|
|
20269
20259
|
}, validation = {
|
|
20270
20260
|
isRequired: false,
|
|
20271
|
-
pattern: "^[a-zA-Z0-9-_
|
|
20261
|
+
pattern: "^[a-zA-Z0-9-_/]*$",
|
|
20272
20262
|
type: "text",
|
|
20273
20263
|
title: t("ERR_INVALID_APPLICATION_NO")
|
|
20274
20264
|
}))), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
@@ -20276,7 +20266,7 @@ const SearchFields = ({
|
|
|
20276
20266
|
inputRef: register()
|
|
20277
20267
|
}, validation = {
|
|
20278
20268
|
isRequired: false,
|
|
20279
|
-
pattern: "^[a-zA-Z0-9
|
|
20269
|
+
pattern: "^[a-zA-Z0-9/-]*$",
|
|
20280
20270
|
type: "text",
|
|
20281
20271
|
title: t("ERR_INVALID_CONSUMER_NO")
|
|
20282
20272
|
}))), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("CONSUMER_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(MobileNumber, Object.assign({
|
|
@@ -20319,7 +20309,7 @@ const SearchFields = ({
|
|
|
20319
20309
|
}),
|
|
20320
20310
|
name: "toDate",
|
|
20321
20311
|
control: control
|
|
20322
|
-
})), /*#__PURE__*/React.createElement(SearchField, {
|
|
20312
|
+
})), !_hideSubmitButton && /*#__PURE__*/React.createElement(SearchField, {
|
|
20323
20313
|
className: "submit"
|
|
20324
20314
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20325
20315
|
label: t("ES_COMMON_SEARCH"),
|
|
@@ -20663,17 +20653,80 @@ const SearchApplication = ({
|
|
|
20663
20653
|
disableSortBy: true,
|
|
20664
20654
|
accessor: row => GetCell((row === null || row === void 0 ? void 0 : row.address) || "-")
|
|
20665
20655
|
}], []);
|
|
20666
|
-
return /*#__PURE__*/React.createElement(
|
|
20656
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20657
|
+
className: "employee-wrapper"
|
|
20658
|
+
}, /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
20659
|
+
title: t("WS_SEARCH_FILTERS_LABEL") || "Search Filters",
|
|
20660
|
+
defaultOpen: true,
|
|
20661
|
+
tabs: [t("WT_SMART_SEARCH"), t("WT_ADVANCED_SEARCH")],
|
|
20662
|
+
defaultTab: t("WT_SMART_SEARCH")
|
|
20663
|
+
}, activeTab => /*#__PURE__*/React.createElement("form", {
|
|
20664
|
+
className: "ws-search-form",
|
|
20665
|
+
onSubmit: handleSubmit(onSubmit)
|
|
20666
|
+
}, activeTab === t("WT_SMART_SEARCH") && /*#__PURE__*/React.createElement("div", {
|
|
20667
|
+
className: "wt-search-grid",
|
|
20668
|
+
style: {
|
|
20669
|
+
display: "grid",
|
|
20670
|
+
gridTemplateColumns: "1fr 1fr",
|
|
20671
|
+
gap: "24px"
|
|
20672
|
+
}
|
|
20673
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20674
|
+
className: "search-field-wrapper"
|
|
20675
|
+
}, /*#__PURE__*/React.createElement("label", null, t("WT_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(MobileNumber, {
|
|
20676
|
+
name: "mobileNumber",
|
|
20677
|
+
inputRef: register({
|
|
20678
|
+
minLength: {
|
|
20679
|
+
value: 10,
|
|
20680
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
20681
|
+
},
|
|
20682
|
+
maxLength: {
|
|
20683
|
+
value: 10,
|
|
20684
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
20685
|
+
},
|
|
20686
|
+
pattern: {
|
|
20687
|
+
value: /[6789][0-9]{9}/,
|
|
20688
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
20689
|
+
}
|
|
20690
|
+
}),
|
|
20691
|
+
type: "number",
|
|
20692
|
+
maxlength: 10
|
|
20693
|
+
}))), activeTab === t("WT_ADVANCED_SEARCH") && /*#__PURE__*/React.createElement(SearchForm, {
|
|
20694
|
+
className: "ws-search-form-wrapper formcomposer-section-grid",
|
|
20667
20695
|
onSubmit: onSubmit,
|
|
20668
20696
|
handleSubmit: handleSubmit
|
|
20669
|
-
}, /*#__PURE__*/React.createElement(SearchFields, {
|
|
20697
|
+
}, /*#__PURE__*/React.createElement(SearchFields, Object.assign({}, {
|
|
20670
20698
|
register,
|
|
20671
20699
|
control,
|
|
20672
20700
|
reset,
|
|
20673
20701
|
tenantId,
|
|
20674
20702
|
t,
|
|
20675
20703
|
businessService
|
|
20676
|
-
}
|
|
20704
|
+
}, {
|
|
20705
|
+
hideSubmitButton: true
|
|
20706
|
+
}))), /*#__PURE__*/React.createElement(SearchField, {
|
|
20707
|
+
className: "ws-submit"
|
|
20708
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20709
|
+
label: t("ES_COMMON_SEARCH"),
|
|
20710
|
+
className: "submit-bar generic-button",
|
|
20711
|
+
submit: true
|
|
20712
|
+
}), /*#__PURE__*/React.createElement("button", {
|
|
20713
|
+
className: "clear-search generic-button",
|
|
20714
|
+
onClick: () => {
|
|
20715
|
+
reset({
|
|
20716
|
+
applicationType: "",
|
|
20717
|
+
fromDate: "",
|
|
20718
|
+
toDate: "",
|
|
20719
|
+
connectionNumber: "",
|
|
20720
|
+
applicationStatus: "",
|
|
20721
|
+
applicationNumber: "",
|
|
20722
|
+
tradeName: "",
|
|
20723
|
+
offset: 0,
|
|
20724
|
+
limit: 10,
|
|
20725
|
+
sortBy: "commencementDate",
|
|
20726
|
+
sortOrder: "DESC"
|
|
20727
|
+
});
|
|
20728
|
+
}
|
|
20729
|
+
}, t(`CS_COMMON_CLEAR_SEARCH`))))), isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
|
|
20677
20730
|
style: {
|
|
20678
20731
|
marginTop: 20
|
|
20679
20732
|
}
|
|
@@ -20715,7 +20768,8 @@ const SearchFields$1 = ({
|
|
|
20715
20768
|
control,
|
|
20716
20769
|
reset,
|
|
20717
20770
|
tenantId,
|
|
20718
|
-
t
|
|
20771
|
+
t,
|
|
20772
|
+
hideSubmitButton: _hideSubmitButton = false
|
|
20719
20773
|
}) => {
|
|
20720
20774
|
const propsForMobileNumber = {
|
|
20721
20775
|
maxlength: 10,
|
|
@@ -20724,7 +20778,7 @@ const SearchFields$1 = ({
|
|
|
20724
20778
|
componentInFront: "+91"
|
|
20725
20779
|
};
|
|
20726
20780
|
const propsForOldConnectionNumberNpropertyId = {
|
|
20727
|
-
pattern: "[A-Za-z]{2}
|
|
20781
|
+
pattern: "[A-Za-z]{2}-[A-Za-z]{2}-[0-9]{4}-[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{6}|[A-Za-z]{2}-[A-Za-z]{2}-[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{6}",
|
|
20728
20782
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
20729
20783
|
};
|
|
20730
20784
|
let validation = {};
|
|
@@ -20733,7 +20787,7 @@ const SearchFields$1 = ({
|
|
|
20733
20787
|
inputRef: register({})
|
|
20734
20788
|
}, validation = {
|
|
20735
20789
|
isRequired: false,
|
|
20736
|
-
pattern: "^[a-zA-Z0-9
|
|
20790
|
+
pattern: "^[a-zA-Z0-9/-]*$",
|
|
20737
20791
|
type: "text",
|
|
20738
20792
|
title: t("ERR_INVALID_CONSUMER_NO")
|
|
20739
20793
|
}))), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_OLD_CONSUMER_LABEL")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
@@ -20745,7 +20799,7 @@ const SearchFields$1 = ({
|
|
|
20745
20799
|
}, propsForOldConnectionNumberNpropertyId))), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_HOME_SEARCH_RESULTS_OWN_MOB_LABEL")), /*#__PURE__*/React.createElement(MobileNumber, Object.assign({
|
|
20746
20800
|
name: "mobileNumber",
|
|
20747
20801
|
inputRef: register({})
|
|
20748
|
-
}, propsForMobileNumber))), /*#__PURE__*/React.createElement(SearchField, {
|
|
20802
|
+
}, propsForMobileNumber))), !_hideSubmitButton && /*#__PURE__*/React.createElement(SearchField, {
|
|
20749
20803
|
className: "submit"
|
|
20750
20804
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20751
20805
|
label: t("WS_SEARCH_CONNECTION_SEARCH_BUTTON"),
|
|
@@ -20941,7 +20995,7 @@ const SearchWaterConnection = ({
|
|
|
20941
20995
|
const [result, setResult] = useState([]);
|
|
20942
20996
|
const [showToast, setShowToast] = useState(null);
|
|
20943
20997
|
const convertEpochToDate = dateEpoch => {
|
|
20944
|
-
if (dateEpoch == null || dateEpoch
|
|
20998
|
+
if (dateEpoch == null || dateEpoch === undefined || dateEpoch === "") {
|
|
20945
20999
|
return "NA";
|
|
20946
21000
|
}
|
|
20947
21001
|
const dateFromApi = new Date(dateEpoch);
|
|
@@ -20952,14 +21006,16 @@ const SearchWaterConnection = ({
|
|
|
20952
21006
|
day = (day > 9 ? "" : "0") + day;
|
|
20953
21007
|
return `${day}/${month}/${year}`;
|
|
20954
21008
|
};
|
|
20955
|
-
useEffect(
|
|
20956
|
-
|
|
20957
|
-
|
|
20958
|
-
|
|
20959
|
-
|
|
20960
|
-
|
|
20961
|
-
|
|
20962
|
-
|
|
21009
|
+
useEffect(() => {
|
|
21010
|
+
(async () => {
|
|
21011
|
+
const payload = {
|
|
21012
|
+
BulkBillCriteria: {
|
|
21013
|
+
tenantId: Digit.ULBService.getCurrentTenantId()
|
|
21014
|
+
}
|
|
21015
|
+
};
|
|
21016
|
+
let data = await Digit.WSService.WSSewsearchDemand(payload, window.location.href.includes("ws/sewerage/search-demand") ? "sw" : "ws");
|
|
21017
|
+
setResult(data.connection);
|
|
21018
|
+
})();
|
|
20963
21019
|
}, []);
|
|
20964
21020
|
const {
|
|
20965
21021
|
t
|
|
@@ -21107,7 +21163,7 @@ const SearchWaterConnection = ({
|
|
|
21107
21163
|
}) => {
|
|
21108
21164
|
var _row$original14;
|
|
21109
21165
|
const amount = (_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.due;
|
|
21110
|
-
if (amount || amount
|
|
21166
|
+
if (amount || amount === 0) {
|
|
21111
21167
|
var _row$original15;
|
|
21112
21168
|
return GetCell(getActionItem((_row$original15 = row.original) === null || _row$original15 === void 0 ? void 0 : _row$original15.status, row));
|
|
21113
21169
|
} else {
|
|
@@ -21199,17 +21255,77 @@ const SearchWaterConnection = ({
|
|
|
21199
21255
|
}, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ")));
|
|
21200
21256
|
}
|
|
21201
21257
|
};
|
|
21202
|
-
return /*#__PURE__*/React.createElement(Fragment
|
|
21203
|
-
className: "
|
|
21258
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
21259
|
+
className: "employee-wrapper"
|
|
21260
|
+
}, window.location.href.includes("search-demand") ? "" : /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
21261
|
+
title: t("WS_SEARCH_FILTERS_LABEL") || "Search Filters",
|
|
21262
|
+
defaultOpen: true,
|
|
21263
|
+
tabs: [t("WT_SMART_SEARCH"), t("WT_ADVANCED_SEARCH")],
|
|
21264
|
+
defaultTab: t("WT_SMART_SEARCH")
|
|
21265
|
+
}, activeTab => /*#__PURE__*/React.createElement("form", {
|
|
21266
|
+
className: "ws-search-form",
|
|
21267
|
+
onSubmit: handleSubmit(onSubmit)
|
|
21268
|
+
}, activeTab === t("WT_SMART_SEARCH") && /*#__PURE__*/React.createElement("div", {
|
|
21269
|
+
className: "wt-search-grid",
|
|
21270
|
+
style: {
|
|
21271
|
+
display: "grid",
|
|
21272
|
+
gridTemplateColumns: "1fr 1fr",
|
|
21273
|
+
gap: "24px"
|
|
21274
|
+
}
|
|
21275
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21276
|
+
className: "search-field-wrapper"
|
|
21277
|
+
}, /*#__PURE__*/React.createElement("label", null, t("WS_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(MobileNumber, {
|
|
21278
|
+
name: "mobileNumber",
|
|
21279
|
+
inputRef: register({
|
|
21280
|
+
minLength: {
|
|
21281
|
+
value: 10,
|
|
21282
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
21283
|
+
},
|
|
21284
|
+
maxLength: {
|
|
21285
|
+
value: 10,
|
|
21286
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
21287
|
+
},
|
|
21288
|
+
pattern: {
|
|
21289
|
+
value: /[6789][0-9]{9}/,
|
|
21290
|
+
message: t("CORE_COMMON_MOBILE_ERROR")
|
|
21291
|
+
}
|
|
21292
|
+
}),
|
|
21293
|
+
type: "number",
|
|
21294
|
+
maxlength: 10
|
|
21295
|
+
}))), activeTab === t("WT_ADVANCED_SEARCH") && /*#__PURE__*/React.createElement(SearchForm, {
|
|
21296
|
+
className: "ws-search-form-wrapper formcomposer-section-grid",
|
|
21204
21297
|
onSubmit: onSubmit,
|
|
21205
21298
|
handleSubmit: handleSubmit
|
|
21206
|
-
}, /*#__PURE__*/React.createElement(SearchFields$1, {
|
|
21299
|
+
}, /*#__PURE__*/React.createElement(SearchFields$1, Object.assign({}, {
|
|
21207
21300
|
register,
|
|
21208
21301
|
control,
|
|
21209
21302
|
reset,
|
|
21210
21303
|
tenantId,
|
|
21211
21304
|
t
|
|
21212
|
-
}
|
|
21305
|
+
}, {
|
|
21306
|
+
hideSubmitButton: true
|
|
21307
|
+
}))), /*#__PURE__*/React.createElement(SearchField, {
|
|
21308
|
+
className: "ws-submit"
|
|
21309
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
21310
|
+
label: t("WS_SEARCH_CONNECTION_SEARCH_BUTTON"),
|
|
21311
|
+
className: "submit-bar generic-button",
|
|
21312
|
+
submit: true
|
|
21313
|
+
}), /*#__PURE__*/React.createElement("button", {
|
|
21314
|
+
className: "clear-search generic-button",
|
|
21315
|
+
onClick: () => {
|
|
21316
|
+
reset({
|
|
21317
|
+
searchType: "CONNECTION",
|
|
21318
|
+
mobileNumber: "",
|
|
21319
|
+
offset: 0,
|
|
21320
|
+
limit: 10,
|
|
21321
|
+
sortBy: "commencementDate",
|
|
21322
|
+
sortOrder: "DESC",
|
|
21323
|
+
propertyId: "",
|
|
21324
|
+
connectionNumber: "",
|
|
21325
|
+
oldConnectionNumber: ""
|
|
21326
|
+
});
|
|
21327
|
+
}
|
|
21328
|
+
}, t("WS_SEARCH_CONNECTION_RESET_BUTTON"))))), isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
|
|
21213
21329
|
style: {
|
|
21214
21330
|
marginTop: 20
|
|
21215
21331
|
}
|
|
@@ -21281,7 +21397,7 @@ const SearchWaterConnection = ({
|
|
|
21281
21397
|
onClose: w => {
|
|
21282
21398
|
setShowToast(x => null);
|
|
21283
21399
|
}
|
|
21284
|
-
}));
|
|
21400
|
+
})));
|
|
21285
21401
|
};
|
|
21286
21402
|
|
|
21287
21403
|
const BulkBillSearchFields = ({
|
|
@@ -31369,7 +31485,8 @@ const NewApplication = () => {
|
|
|
31369
31485
|
onFormValueChange: onFormValueChange,
|
|
31370
31486
|
label: t("CS_COMMON_SUBMIT"),
|
|
31371
31487
|
onSubmit: onSubmit,
|
|
31372
|
-
defaultValues: sessionFormData
|
|
31488
|
+
defaultValues: sessionFormData,
|
|
31489
|
+
cardFormWrapperClassName: "new-application-card"
|
|
31373
31490
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
31374
31491
|
isDleteBtn: true,
|
|
31375
31492
|
error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? true : false,
|
|
@@ -33169,7 +33286,11 @@ const ActionModal$5 = ({
|
|
|
33169
33286
|
actionData,
|
|
33170
33287
|
applicationData,
|
|
33171
33288
|
businessService,
|
|
33172
|
-
moduleCode
|
|
33289
|
+
moduleCode,
|
|
33290
|
+
cardClassName,
|
|
33291
|
+
cardFormWrapperClassName,
|
|
33292
|
+
cardFormClassName,
|
|
33293
|
+
formClassName
|
|
33173
33294
|
}) => {
|
|
33174
33295
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
33175
33296
|
const {
|
|
@@ -33417,7 +33538,11 @@ const ActionModal$5 = ({
|
|
|
33417
33538
|
childrenAtTheBottom: true,
|
|
33418
33539
|
onSubmit: submit,
|
|
33419
33540
|
defaultValues: defaultValues,
|
|
33420
|
-
formId: "modal-action"
|
|
33541
|
+
formId: "modal-action",
|
|
33542
|
+
cardFormClassName: cardFormClassName,
|
|
33543
|
+
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
33544
|
+
cardClassName: cardClassName,
|
|
33545
|
+
formClassName: formClassName
|
|
33421
33546
|
})) : /*#__PURE__*/React.createElement(Loader$1, null);
|
|
33422
33547
|
};
|
|
33423
33548
|
|
|
@@ -33601,7 +33726,11 @@ const ActionModal$7 = ({
|
|
|
33601
33726
|
actionData,
|
|
33602
33727
|
applicationData,
|
|
33603
33728
|
businessService,
|
|
33604
|
-
moduleCode
|
|
33729
|
+
moduleCode,
|
|
33730
|
+
cardClassName,
|
|
33731
|
+
cardFormWrapperClassName,
|
|
33732
|
+
cardFormClassName,
|
|
33733
|
+
formClassName
|
|
33605
33734
|
}) => {
|
|
33606
33735
|
var _action$roles, _action$roles$, _action$roles$$map;
|
|
33607
33736
|
const {
|
|
@@ -33681,7 +33810,11 @@ const ActionModal$7 = ({
|
|
|
33681
33810
|
childrenAtTheBottom: true,
|
|
33682
33811
|
onSubmit: submit,
|
|
33683
33812
|
defaultValues: defaultValues,
|
|
33684
|
-
formId: "modal-action"
|
|
33813
|
+
formId: "modal-action",
|
|
33814
|
+
cardFormClassName: cardFormClassName,
|
|
33815
|
+
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
33816
|
+
cardClassName: cardClassName,
|
|
33817
|
+
formClassName: formClassName
|
|
33685
33818
|
})) : /*#__PURE__*/React.createElement(Loader$1, null);
|
|
33686
33819
|
};
|
|
33687
33820
|
|
|
@@ -34234,7 +34367,11 @@ const ActionModal$b = ({
|
|
|
34234
34367
|
actionData,
|
|
34235
34368
|
applicationData,
|
|
34236
34369
|
businessService,
|
|
34237
|
-
moduleCode
|
|
34370
|
+
moduleCode,
|
|
34371
|
+
cardClassName,
|
|
34372
|
+
cardFormWrapperClassName,
|
|
34373
|
+
cardFormClassName,
|
|
34374
|
+
formClassName
|
|
34238
34375
|
}) => {
|
|
34239
34376
|
var _action$assigneeRoles, _action$assigneeRoles2, _dsoData$vendor, _vehicleData$vehicle;
|
|
34240
34377
|
const {
|
|
@@ -34404,7 +34541,11 @@ const ActionModal$b = ({
|
|
|
34404
34541
|
childrenAtTheBottom: true,
|
|
34405
34542
|
onSubmit: submit,
|
|
34406
34543
|
defaultValues: defaultValues,
|
|
34407
|
-
formId: "modal-action"
|
|
34544
|
+
formId: "modal-action",
|
|
34545
|
+
cardFormClassName: cardFormClassName,
|
|
34546
|
+
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
34547
|
+
cardClassName: cardClassName,
|
|
34548
|
+
formClassName: formClassName
|
|
34408
34549
|
})) : /*#__PURE__*/React.createElement(Loader$1, null);
|
|
34409
34550
|
};
|
|
34410
34551
|
|
|
@@ -37376,7 +37517,6 @@ function ApplicationDetailsContent({
|
|
|
37376
37517
|
const openFilePDF = fileId => {
|
|
37377
37518
|
Digit.UploadServices.Filefetch([fileId], Digit.ULBService.getStateId()).then(res => {
|
|
37378
37519
|
var _res$data, _res$data$fileStoreId, _res$data$fileStoreId2;
|
|
37379
|
-
console.log("Response of file:", res);
|
|
37380
37520
|
const concatenatedUrls = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$fileStoreId = _res$data.fileStoreIds) === null || _res$data$fileStoreId === void 0 ? void 0 : (_res$data$fileStoreId2 = _res$data$fileStoreId[0]) === null || _res$data$fileStoreId2 === void 0 ? void 0 : _res$data$fileStoreId2.url;
|
|
37381
37521
|
if (concatenatedUrls) {
|
|
37382
37522
|
const urlArray = concatenatedUrls.split(",");
|
|
@@ -37397,7 +37537,6 @@ function ApplicationDetailsContent({
|
|
|
37397
37537
|
setSelectedData(data);
|
|
37398
37538
|
setShowPopup(true);
|
|
37399
37539
|
};
|
|
37400
|
-
console.log("===========================");
|
|
37401
37540
|
return /*#__PURE__*/React.createElement(Card, {
|
|
37402
37541
|
style: {
|
|
37403
37542
|
position: "relative"
|
|
@@ -37435,7 +37574,6 @@ function ApplicationDetailsContent({
|
|
|
37435
37574
|
tableLayout: "fixed",
|
|
37436
37575
|
width: "100%",
|
|
37437
37576
|
borderCollapse: "collapse",
|
|
37438
|
-
borderCollapse: "collapse",
|
|
37439
37577
|
border: "1px solid black"
|
|
37440
37578
|
}
|
|
37441
37579
|
}, /*#__PURE__*/React.createElement("tr", {
|
|
@@ -37466,7 +37604,9 @@ function ApplicationDetailsContent({
|
|
|
37466
37604
|
flexWrap: "nowrap",
|
|
37467
37605
|
gap: "5px"
|
|
37468
37606
|
}
|
|
37469
|
-
}, element.map((file, fileIndex) =>
|
|
37607
|
+
}, element.map((file, fileIndex) =>
|
|
37608
|
+
/*#__PURE__*/
|
|
37609
|
+
React.createElement("a", {
|
|
37470
37610
|
key: fileIndex,
|
|
37471
37611
|
onClick: () => openFilePDF(file.fileStoreId),
|
|
37472
37612
|
rel: "noopener noreferrer",
|
|
@@ -37488,7 +37628,7 @@ function ApplicationDetailsContent({
|
|
|
37488
37628
|
border: "1px solid black",
|
|
37489
37629
|
verticalAlign: "middle"
|
|
37490
37630
|
}
|
|
37491
|
-
},
|
|
37631
|
+
}, element && element.editButton === true ? /*#__PURE__*/React.createElement("span", {
|
|
37492
37632
|
style: {
|
|
37493
37633
|
display: "inline-flex",
|
|
37494
37634
|
gap: "10px",
|
|
@@ -37529,7 +37669,7 @@ function ApplicationDetailsContent({
|
|
|
37529
37669
|
})
|
|
37530
37670
|
});
|
|
37531
37671
|
}
|
|
37532
|
-
if ((value === null || value === void 0 ? void 0 : value.isLink)
|
|
37672
|
+
if ((value === null || value === void 0 ? void 0 : value.isLink) === true) {
|
|
37533
37673
|
var _detail$values2;
|
|
37534
37674
|
return /*#__PURE__*/React.createElement(Row, {
|
|
37535
37675
|
key: t(value.title),
|
|
@@ -37684,7 +37824,7 @@ function ApplicationDetailsContent({
|
|
|
37684
37824
|
let timelineStatusPostfix = "";
|
|
37685
37825
|
if (window.location.href.includes("/obps/")) {
|
|
37686
37826
|
var _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17;
|
|
37687
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.timeline[index - 1]) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.state) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.timeline[index - 1]) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.state) !== null && _workflowDetails$data17 !== void 0 && _workflowDetails$data17.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index
|
|
37827
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.timeline[index - 1]) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.state) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.timeline[index - 1]) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.state) !== null && _workflowDetails$data17 !== void 0 && _workflowDetails$data17.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index === 0 ? "" : `_DONE`;
|
|
37688
37828
|
}
|
|
37689
37829
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
37690
37830
|
key: index
|
|
@@ -38214,7 +38354,8 @@ const ApplicationDetails = props => {
|
|
|
38214
38354
|
actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline,
|
|
38215
38355
|
businessService: businessService,
|
|
38216
38356
|
workflowDetails: workflowDetails,
|
|
38217
|
-
moduleCode: moduleCode
|
|
38357
|
+
moduleCode: moduleCode,
|
|
38358
|
+
cardFormWrapperClassName: "modal-form"
|
|
38218
38359
|
}) : null, isWarningPop ? /*#__PURE__*/React.createElement(ApplicationDetailsWarningPopup, {
|
|
38219
38360
|
action: selectedAction,
|
|
38220
38361
|
workflowDetails: workflowDetails,
|
|
@@ -39799,7 +39940,8 @@ const EditApplication$1 = () => {
|
|
|
39799
39940
|
label: t("CS_COMMON_SUBMIT"),
|
|
39800
39941
|
onSubmit: onSubmit,
|
|
39801
39942
|
defaultValues: sessionFormData,
|
|
39802
|
-
appData: appData
|
|
39943
|
+
appData: appData,
|
|
39944
|
+
cardFormWrapperClassName: "new-application-card"
|
|
39803
39945
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
39804
39946
|
error: showToast.key,
|
|
39805
39947
|
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|