@djb25/digit-ui-module-ws 1.0.89 → 1.0.90
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 +858 -1601
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +908 -1651
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$
|
|
1
|
+
import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$1, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useHistory, useLocation, Switch, Route, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, PrintBtnCommon, MultiLink, LinkButton,
|
|
4
|
+
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, CardSubHeader, StatusTable, Row, Menu, Modal, TextArea, Toast, PrintBtnCommon, MultiLink, LinkButton, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, DatePicker, RadioButtons, UploadFile, ViewsIcon, DeleteIcon, WrapUnMaskComponent, MobileNumber, RemoveIcon, CardSectionHeader, InfoIcon, Header, FilterFormField, RemoveableTag as RemoveableTag$1, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, PDFSvg, GenericFileIcon, EditIcon, Label, OTPInput, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$g, BreakLine, CheckPoint, ConnectingCheckPoints, ButtonSelector as ButtonSelector$1, 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, useQuery } from 'react-query';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
12
|
-
|
|
13
|
-
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
14
|
-
|
|
15
|
-
// Asynchronously call a function and send errors to recovery continuation
|
|
9
|
+
const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
10
|
+
const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
16
11
|
function _catch(body, recover) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
try {
|
|
13
|
+
var result = body();
|
|
14
|
+
} catch (e) {
|
|
15
|
+
return recover(e);
|
|
16
|
+
}
|
|
17
|
+
if (result && result.then) {
|
|
18
|
+
return result.then(void 0, recover);
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
26
21
|
}
|
|
27
|
-
|
|
28
|
-
// Asynchronously await a promise and pass the result to a finally continuation
|
|
29
22
|
function _finallyRethrows(body, finalizer) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
try {
|
|
24
|
+
var result = body();
|
|
25
|
+
} catch (e) {
|
|
26
|
+
return finalizer(true, e);
|
|
27
|
+
}
|
|
28
|
+
if (result && result.then) {
|
|
29
|
+
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
30
|
+
}
|
|
31
|
+
return finalizer(false, result);
|
|
39
32
|
}
|
|
40
33
|
|
|
41
34
|
const TestAcknowledgment = () => {
|
|
@@ -8279,8 +8272,8 @@ const WSMyApplications = () => {
|
|
|
8279
8272
|
};
|
|
8280
8273
|
});
|
|
8281
8274
|
const sortedApplications = ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 ? applicationsList.sort((a, b) => {
|
|
8282
|
-
var _b$auditDetails, _a$auditDetails;
|
|
8283
|
-
return ((_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.lastModifiedTime) - ((_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.lastModifiedTime);
|
|
8275
|
+
var _b$auditDetails, _b$auditDetails2, _a$auditDetails, _a$auditDetails2;
|
|
8276
|
+
return (((_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.createdTime) || ((_b$auditDetails2 = b.auditDetails) === null || _b$auditDetails2 === void 0 ? void 0 : _b$auditDetails2.lastModifiedTime) || 0) - (((_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.createdTime) || ((_a$auditDetails2 = a.auditDetails) === null || _a$auditDetails2 === void 0 ? void 0 : _a$auditDetails2.lastModifiedTime) || 0);
|
|
8284
8277
|
}) : [];
|
|
8285
8278
|
let filteredApplications = sortedApplications;
|
|
8286
8279
|
if (searchParams) {
|
|
@@ -10796,6 +10789,353 @@ const WSCalculation = _ref => {
|
|
|
10796
10789
|
})));
|
|
10797
10790
|
};
|
|
10798
10791
|
|
|
10792
|
+
const WSZROVerification = () => {
|
|
10793
|
+
const {
|
|
10794
|
+
t
|
|
10795
|
+
} = useTranslation();
|
|
10796
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
10797
|
+
const {
|
|
10798
|
+
isLoading,
|
|
10799
|
+
data
|
|
10800
|
+
} = Digit.Hooks.ws.useWSZROVerification({
|
|
10801
|
+
tenantId,
|
|
10802
|
+
filters: {
|
|
10803
|
+
status: "PENDING",
|
|
10804
|
+
offset: 0,
|
|
10805
|
+
limit: 20
|
|
10806
|
+
},
|
|
10807
|
+
config: {
|
|
10808
|
+
select: res => (res === null || res === void 0 ? void 0 : res.cases) || []
|
|
10809
|
+
}
|
|
10810
|
+
});
|
|
10811
|
+
const columns = React.useMemo(() => [{
|
|
10812
|
+
Header: t("WS_CONNECTION_NO_LABEL"),
|
|
10813
|
+
accessor: "connectionNo",
|
|
10814
|
+
Cell: _ref => {
|
|
10815
|
+
var _row$original, _row$original2;
|
|
10816
|
+
let {
|
|
10817
|
+
row
|
|
10818
|
+
} = _ref;
|
|
10819
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
10820
|
+
to: {
|
|
10821
|
+
pathname: `/digit-ui/employee/ws/zro-verification-details`,
|
|
10822
|
+
search: `?connectionNumber=${(_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.connectionNo}&tenantId=${tenantId}`,
|
|
10823
|
+
state: {
|
|
10824
|
+
caseData: row.original
|
|
10825
|
+
}
|
|
10826
|
+
},
|
|
10827
|
+
style: {
|
|
10828
|
+
color: "#f47738",
|
|
10829
|
+
textDecoration: "none"
|
|
10830
|
+
}
|
|
10831
|
+
}, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.connectionNo) || "NA");
|
|
10832
|
+
}
|
|
10833
|
+
}, {
|
|
10834
|
+
Header: t("WS_BILLING_PERIOD_LABEL"),
|
|
10835
|
+
Cell: _ref2 => {
|
|
10836
|
+
var _row$original3, _row$original4;
|
|
10837
|
+
let {
|
|
10838
|
+
row
|
|
10839
|
+
} = _ref2;
|
|
10840
|
+
const from = (_row$original3 = row.original) !== null && _row$original3 !== void 0 && _row$original3.billingPeriodFrom ? Digit.DateUtils.ConvertTimestampToDate(row.original.billingPeriodFrom) : "NA";
|
|
10841
|
+
const to = (_row$original4 = row.original) !== null && _row$original4 !== void 0 && _row$original4.billingPeriodTo ? Digit.DateUtils.ConvertTimestampToDate(row.original.billingPeriodTo) : "NA";
|
|
10842
|
+
return /*#__PURE__*/React.createElement("span", null, `${from} - ${to}`);
|
|
10843
|
+
}
|
|
10844
|
+
}, {
|
|
10845
|
+
Header: t("WS_PREVIOUS_READING_LABEL"),
|
|
10846
|
+
accessor: "previousReading",
|
|
10847
|
+
Cell: _ref3 => {
|
|
10848
|
+
var _row$original5;
|
|
10849
|
+
let {
|
|
10850
|
+
row
|
|
10851
|
+
} = _ref3;
|
|
10852
|
+
return ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.previousReading) ?? "NA";
|
|
10853
|
+
}
|
|
10854
|
+
}, {
|
|
10855
|
+
Header: t("WS_CURRENT_READING_LABEL"),
|
|
10856
|
+
accessor: "currentReading",
|
|
10857
|
+
Cell: _ref4 => {
|
|
10858
|
+
var _row$original6;
|
|
10859
|
+
let {
|
|
10860
|
+
row
|
|
10861
|
+
} = _ref4;
|
|
10862
|
+
return ((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.currentReading) ?? "NA";
|
|
10863
|
+
}
|
|
10864
|
+
}, {
|
|
10865
|
+
Header: t("WS_CONSUMPTION_LABEL"),
|
|
10866
|
+
accessor: "actualConsumption",
|
|
10867
|
+
Cell: _ref5 => {
|
|
10868
|
+
var _row$original7;
|
|
10869
|
+
let {
|
|
10870
|
+
row
|
|
10871
|
+
} = _ref5;
|
|
10872
|
+
return ((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.actualConsumption) ?? "NA";
|
|
10873
|
+
}
|
|
10874
|
+
}, {
|
|
10875
|
+
Header: t("WS_COMMON_TABLE_COL_APP_STATUS_LABEL"),
|
|
10876
|
+
accessor: "verification.status",
|
|
10877
|
+
Cell: _ref6 => {
|
|
10878
|
+
var _row$original8, _row$original8$verifi;
|
|
10879
|
+
let {
|
|
10880
|
+
row
|
|
10881
|
+
} = _ref6;
|
|
10882
|
+
return (_row$original8 = row.original) !== null && _row$original8 !== void 0 && (_row$original8$verifi = _row$original8.verification) !== null && _row$original8$verifi !== void 0 && _row$original8$verifi.status ? t(`WS_ZRO_STATUS_${row.original.verification.status}`) : "NA";
|
|
10883
|
+
}
|
|
10884
|
+
}], [t]);
|
|
10885
|
+
if (isLoading) {
|
|
10886
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
10887
|
+
}
|
|
10888
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Table, {
|
|
10889
|
+
t: t,
|
|
10890
|
+
data: data || [],
|
|
10891
|
+
totalRecords: (data === null || data === void 0 ? void 0 : data.length) || 0,
|
|
10892
|
+
isLoading: isLoading,
|
|
10893
|
+
isPaginationRequired: true,
|
|
10894
|
+
csvExportData: data,
|
|
10895
|
+
columns: columns
|
|
10896
|
+
}));
|
|
10897
|
+
};
|
|
10898
|
+
|
|
10899
|
+
const Heading = props => {
|
|
10900
|
+
return /*#__PURE__*/React.createElement("h1", {
|
|
10901
|
+
className: "heading-m"
|
|
10902
|
+
}, props.label);
|
|
10903
|
+
};
|
|
10904
|
+
const Close = () => /*#__PURE__*/React.createElement("svg", {
|
|
10905
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10906
|
+
viewBox: "0 0 24 24",
|
|
10907
|
+
fill: "#FFFFFF"
|
|
10908
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
10909
|
+
d: "M0 0h24v24H0V0z",
|
|
10910
|
+
fill: "none"
|
|
10911
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
10912
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
10913
|
+
}));
|
|
10914
|
+
const CloseBtn = props => {
|
|
10915
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10916
|
+
className: "icon-bg-secondary",
|
|
10917
|
+
onClick: props.onClick
|
|
10918
|
+
}, /*#__PURE__*/React.createElement(Close, null));
|
|
10919
|
+
};
|
|
10920
|
+
const WSZROVerificationDetails = () => {
|
|
10921
|
+
var _location$state;
|
|
10922
|
+
const {
|
|
10923
|
+
t
|
|
10924
|
+
} = useTranslation();
|
|
10925
|
+
const location = useLocation();
|
|
10926
|
+
const history = useHistory();
|
|
10927
|
+
const [displayMenu, setDisplayMenu] = useState(false);
|
|
10928
|
+
const [showModal, setShowModal] = useState(false);
|
|
10929
|
+
const [selectedAction, setSelectedAction] = useState(null);
|
|
10930
|
+
const [comments, setComments] = useState("");
|
|
10931
|
+
const [toast, setToast] = useState(null);
|
|
10932
|
+
const [isSuccess, setIsSuccess] = useState(false);
|
|
10933
|
+
const [apiResponse, setApiResponse] = useState(null);
|
|
10934
|
+
useEffect(() => {
|
|
10935
|
+
let timer;
|
|
10936
|
+
if (isSuccess) {
|
|
10937
|
+
timer = setTimeout(() => {
|
|
10938
|
+
history.push("/digit-ui/employee/ws/zro-application");
|
|
10939
|
+
}, 10000);
|
|
10940
|
+
}
|
|
10941
|
+
return () => {
|
|
10942
|
+
if (timer) clearTimeout(timer);
|
|
10943
|
+
};
|
|
10944
|
+
}, [isSuccess, history]);
|
|
10945
|
+
const caseDataFromState = (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.caseData;
|
|
10946
|
+
const searchParams = new URLSearchParams(location.search);
|
|
10947
|
+
const connectionNumber = searchParams.get("connectionNumber");
|
|
10948
|
+
const tenantId = searchParams.get("tenantId") || Digit.ULBService.getCurrentTenantId();
|
|
10949
|
+
const {
|
|
10950
|
+
isLoading,
|
|
10951
|
+
data
|
|
10952
|
+
} = Digit.Hooks.ws.useWSZROVerification({
|
|
10953
|
+
tenantId,
|
|
10954
|
+
filters: {
|
|
10955
|
+
connectionNo: connectionNumber,
|
|
10956
|
+
status: "PENDING",
|
|
10957
|
+
offset: 0,
|
|
10958
|
+
limit: 20
|
|
10959
|
+
},
|
|
10960
|
+
config: {
|
|
10961
|
+
enabled: !caseDataFromState && !!connectionNumber,
|
|
10962
|
+
select: res => {
|
|
10963
|
+
var _res$cases;
|
|
10964
|
+
return res === null || res === void 0 ? void 0 : (_res$cases = res.cases) === null || _res$cases === void 0 ? void 0 : _res$cases[0];
|
|
10965
|
+
}
|
|
10966
|
+
}
|
|
10967
|
+
});
|
|
10968
|
+
const caseDetails = caseDataFromState || data;
|
|
10969
|
+
if (isLoading) {
|
|
10970
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
10971
|
+
}
|
|
10972
|
+
if (!caseDetails) {
|
|
10973
|
+
return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
10974
|
+
style: {
|
|
10975
|
+
textAlign: "center"
|
|
10976
|
+
}
|
|
10977
|
+
}, t("CS_COMMON_NO_DATA")));
|
|
10978
|
+
}
|
|
10979
|
+
const {
|
|
10980
|
+
verification,
|
|
10981
|
+
...billingData
|
|
10982
|
+
} = caseDetails;
|
|
10983
|
+
const formatDate = timestamp => {
|
|
10984
|
+
if (!timestamp) return "NA";
|
|
10985
|
+
return Digit.DateUtils.ConvertTimestampToDate(timestamp);
|
|
10986
|
+
};
|
|
10987
|
+
const onActionSelect = action => {
|
|
10988
|
+
setSelectedAction(action);
|
|
10989
|
+
setDisplayMenu(false);
|
|
10990
|
+
setShowModal(true);
|
|
10991
|
+
};
|
|
10992
|
+
const closeModal = () => {
|
|
10993
|
+
setShowModal(false);
|
|
10994
|
+
setComments("");
|
|
10995
|
+
setSelectedAction(null);
|
|
10996
|
+
};
|
|
10997
|
+
const submitAction = function () {
|
|
10998
|
+
try {
|
|
10999
|
+
const _temp = _catch(function () {
|
|
11000
|
+
const payload = {
|
|
11001
|
+
billingCycleId: billingData === null || billingData === void 0 ? void 0 : billingData.billingCycleId,
|
|
11002
|
+
action: selectedAction === "VERIFY" ? "APPROVE" : "REJECT",
|
|
11003
|
+
remarks: comments
|
|
11004
|
+
};
|
|
11005
|
+
return Promise.resolve(Digit.WSService.updateZROVerification(payload, tenantId)).then(function (res) {
|
|
11006
|
+
setApiResponse(res);
|
|
11007
|
+
setToast({
|
|
11008
|
+
key: "success",
|
|
11009
|
+
error: false,
|
|
11010
|
+
message: t("WF_ZRO_ACTION_SUCCESS")
|
|
11011
|
+
});
|
|
11012
|
+
setShowModal(false);
|
|
11013
|
+
setIsSuccess(true);
|
|
11014
|
+
});
|
|
11015
|
+
}, function (err) {
|
|
11016
|
+
var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
|
|
11017
|
+
console.error(err);
|
|
11018
|
+
setToast({
|
|
11019
|
+
key: "error",
|
|
11020
|
+
error: true,
|
|
11021
|
+
message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || t("CS_ACTION_ERROR")
|
|
11022
|
+
});
|
|
11023
|
+
closeModal();
|
|
11024
|
+
});
|
|
11025
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
11026
|
+
} catch (e) {
|
|
11027
|
+
return Promise.reject(e);
|
|
11028
|
+
}
|
|
11029
|
+
};
|
|
11030
|
+
if (isSuccess) {
|
|
11031
|
+
return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
|
|
11032
|
+
message: t(selectedAction === "VERIFY" ? "WF_ZRO_VERIFY_SUCCESS" : "WF_ZRO_REJECT_SUCCESS"),
|
|
11033
|
+
applicationNumber: apiResponse !== null && apiResponse !== void 0 && apiResponse.connectionno ? apiResponse.connectionno : connectionNumber,
|
|
11034
|
+
info: apiResponse !== null && apiResponse !== void 0 && apiResponse.connectionno ? t("WS_CONNECTION_NO_LABEL") : t("WS_CONNECTION_NO_LABEL"),
|
|
11035
|
+
successful: selectedAction === "VERIFY"
|
|
11036
|
+
}), /*#__PURE__*/React.createElement(CardText, null, apiResponse !== null && apiResponse !== void 0 && apiResponse.message ? apiResponse.message : t("WF_ZRO_SUCCESS_MESSAGE_MAIN")), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
11037
|
+
label: t("CORE_COMMON_GO_TO_HOME"),
|
|
11038
|
+
onSubmit: () => history.push("/digit-ui/employee/ws/zro-application")
|
|
11039
|
+
})));
|
|
11040
|
+
}
|
|
11041
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_VERIFICATION_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
11042
|
+
label: t("WS_CONNECTION_NO_LABEL"),
|
|
11043
|
+
text: (verification === null || verification === void 0 ? void 0 : verification.connectionno) || "NA"
|
|
11044
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11045
|
+
label: t("WS_VERIFICATION_STATUS"),
|
|
11046
|
+
text: (verification === null || verification === void 0 ? void 0 : verification.status) || "NA"
|
|
11047
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11048
|
+
label: t("WS_CONSUMPTION_LABEL"),
|
|
11049
|
+
text: (verification === null || verification === void 0 ? void 0 : verification.consumption) ?? "NA"
|
|
11050
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11051
|
+
label: t("WS_PREVIOUS_CONSUMPTION"),
|
|
11052
|
+
text: (verification === null || verification === void 0 ? void 0 : verification.previousconsumption) ?? "NA"
|
|
11053
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11054
|
+
label: t("WS_DEVIATION_FACTOR"),
|
|
11055
|
+
text: verification !== null && verification !== void 0 && verification.deviationfactor ? Number(verification.deviationfactor).toFixed(2) : "NA"
|
|
11056
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11057
|
+
label: t("WS_REMARKS"),
|
|
11058
|
+
text: (verification === null || verification === void 0 ? void 0 : verification.remarks) || "NA"
|
|
11059
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
11060
|
+
style: {
|
|
11061
|
+
marginTop: "32px"
|
|
11062
|
+
}
|
|
11063
|
+
}, t("WS_BILLING_AND_CONSUMPTION_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
11064
|
+
label: t("WS_BILLING_CYCLE_ID"),
|
|
11065
|
+
text: billingData.billingCycleId || "NA"
|
|
11066
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11067
|
+
label: t("WS_BILLING_PERIOD"),
|
|
11068
|
+
text: `${formatDate(billingData.billingPeriodFrom)} - ${formatDate(billingData.billingPeriodTo)}`
|
|
11069
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11070
|
+
label: t("WS_BILLING_DAYS"),
|
|
11071
|
+
text: billingData.billingDays ?? "NA"
|
|
11072
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11073
|
+
label: t("WS_PREVIOUS_READING_LABEL"),
|
|
11074
|
+
text: billingData.previousReading ?? "NA"
|
|
11075
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11076
|
+
label: t("WS_PREVIOUS_OK_READING_DATE"),
|
|
11077
|
+
text: formatDate(billingData.previousOkReadingDate)
|
|
11078
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11079
|
+
label: t("WS_CURRENT_READING_LABEL"),
|
|
11080
|
+
text: billingData.currentReading ?? "NA"
|
|
11081
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11082
|
+
label: t("WS_READING_QUALITY_CODE"),
|
|
11083
|
+
text: billingData.readingQualityCode || "NA"
|
|
11084
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11085
|
+
label: t("WS_BILLING_BASIS"),
|
|
11086
|
+
text: billingData.billingBasis || "NA"
|
|
11087
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11088
|
+
label: t("WS_ACTUAL_CONSUMPTION"),
|
|
11089
|
+
text: billingData.actualConsumption ?? "NA"
|
|
11090
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11091
|
+
label: t("WS_MONTHLY_CONSUMPTION"),
|
|
11092
|
+
text: billingData.monthlyConsumption ? Number(billingData.monthlyConsumption).toFixed(2) : "NA"
|
|
11093
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11094
|
+
label: t("WS_THRESHOLD_CONSUMPTION"),
|
|
11095
|
+
text: billingData.thresholdConsumption ? Number(billingData.thresholdConsumption).toFixed(2) : "NA"
|
|
11096
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11097
|
+
label: t("WS_1_5X_FLAG"),
|
|
11098
|
+
text: billingData.onePointFiveXFlag ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
|
|
11099
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11100
|
+
label: t("WS_BILLING_CYCLE_STATUS"),
|
|
11101
|
+
text: billingData.billingCycleStatus || "NA"
|
|
11102
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
11103
|
+
label: t("WS_CORRECTION_STATUS"),
|
|
11104
|
+
text: billingData.correctionStatus || "NA"
|
|
11105
|
+
}))), /*#__PURE__*/React.createElement(ActionBar, null, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
|
|
11106
|
+
localeKeyPrefix: "WF_ZRO",
|
|
11107
|
+
options: ["VERIFY", "REJECT"],
|
|
11108
|
+
t: t,
|
|
11109
|
+
onSelect: onActionSelect
|
|
11110
|
+
}) : null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
11111
|
+
label: t("WF_TAKE_ACTION"),
|
|
11112
|
+
onSubmit: () => setDisplayMenu(!displayMenu)
|
|
11113
|
+
})), showModal && /*#__PURE__*/React.createElement(Modal, {
|
|
11114
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
11115
|
+
label: selectedAction === "VERIFY" ? t("WF_ZRO_VERIFY") : t("WF_ZRO_REJECT")
|
|
11116
|
+
}),
|
|
11117
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
|
|
11118
|
+
onClick: closeModal
|
|
11119
|
+
}),
|
|
11120
|
+
actionCancelLabel: t("CS_COMMON_CANCEL"),
|
|
11121
|
+
actionCancelOnSubmit: closeModal,
|
|
11122
|
+
actionSaveLabel: selectedAction === "VERIFY" ? t("WF_ZRO_VERIFY") : t("WF_ZRO_REJECT"),
|
|
11123
|
+
actionSaveOnSubmit: submitAction
|
|
11124
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
11125
|
+
style: {
|
|
11126
|
+
marginBottom: "16px"
|
|
11127
|
+
}
|
|
11128
|
+
}, /*#__PURE__*/React.createElement(CardLabel, null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement(TextArea, {
|
|
11129
|
+
name: "comments",
|
|
11130
|
+
value: comments,
|
|
11131
|
+
onChange: e => setComments(e.target.value)
|
|
11132
|
+
}))), toast && /*#__PURE__*/React.createElement(Toast, {
|
|
11133
|
+
error: toast.error,
|
|
11134
|
+
label: toast.message,
|
|
11135
|
+
onClose: () => setToast(null)
|
|
11136
|
+
}));
|
|
11137
|
+
};
|
|
11138
|
+
|
|
10799
11139
|
const BILLSBreadCrumbs = _ref => {
|
|
10800
11140
|
var _applicationDetails$a, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a13, _applicationDetails$a14, _reciept_data$Payment2;
|
|
10801
11141
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
@@ -11245,6 +11585,10 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
11245
11585
|
path: "/digit-ui/employee/ws/water/calculation",
|
|
11246
11586
|
label: t("WS_CALCULATION"),
|
|
11247
11587
|
show: location.pathname.includes("/ws/water/calculation") ? true : false
|
|
11588
|
+
}, {
|
|
11589
|
+
path: "/digit-ui/employee/ws/zro-application",
|
|
11590
|
+
label: t("WS_ZRO_VERIFICATION"),
|
|
11591
|
+
show: location.pathname.includes("/ws/zro-application") ? true : false
|
|
11248
11592
|
}];
|
|
11249
11593
|
let lastCrumbIndex = findLastIndex(crumbs, "show", true);
|
|
11250
11594
|
crumbs[lastCrumbIndex] = {
|
|
@@ -11584,6 +11928,12 @@ const App$1 = _ref2 => {
|
|
|
11584
11928
|
component: props => /*#__PURE__*/React.createElement(WSCalculation, _extends({}, props, {
|
|
11585
11929
|
parentRoute: path
|
|
11586
11930
|
}))
|
|
11931
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
11932
|
+
path: `${path}/zro-application`,
|
|
11933
|
+
component: () => /*#__PURE__*/React.createElement(WSZROVerification, null)
|
|
11934
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
11935
|
+
path: `${path}/zro-verification-details`,
|
|
11936
|
+
component: () => /*#__PURE__*/React.createElement(WSZROVerificationDetails, null)
|
|
11587
11937
|
}))))));
|
|
11588
11938
|
};
|
|
11589
11939
|
|
|
@@ -16756,31 +17106,6 @@ const WSActivationSupportingDocuments = _ref => {
|
|
|
16756
17106
|
}))));
|
|
16757
17107
|
};
|
|
16758
17108
|
|
|
16759
|
-
const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
16760
|
-
const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
16761
|
-
function _catch$1(body, recover) {
|
|
16762
|
-
try {
|
|
16763
|
-
var result = body();
|
|
16764
|
-
} catch (e) {
|
|
16765
|
-
return recover(e);
|
|
16766
|
-
}
|
|
16767
|
-
if (result && result.then) {
|
|
16768
|
-
return result.then(void 0, recover);
|
|
16769
|
-
}
|
|
16770
|
-
return result;
|
|
16771
|
-
}
|
|
16772
|
-
function _finallyRethrows$1(body, finalizer) {
|
|
16773
|
-
try {
|
|
16774
|
-
var result = body();
|
|
16775
|
-
} catch (e) {
|
|
16776
|
-
return finalizer(true, e);
|
|
16777
|
-
}
|
|
16778
|
-
if (result && result.then) {
|
|
16779
|
-
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
16780
|
-
}
|
|
16781
|
-
return finalizer(false, result);
|
|
16782
|
-
}
|
|
16783
|
-
|
|
16784
17109
|
var b = "function" === typeof Symbol && Symbol.for,
|
|
16785
17110
|
c = b ? Symbol.for("react.element") : 60103,
|
|
16786
17111
|
d = b ? Symbol.for("react.portal") : 60106,
|
|
@@ -17701,7 +18026,7 @@ ButtonSelector.defaultProps = {
|
|
|
17701
18026
|
onSubmit: undefined
|
|
17702
18027
|
};
|
|
17703
18028
|
|
|
17704
|
-
const Close = _ref23 => {
|
|
18029
|
+
const Close$1 = _ref23 => {
|
|
17705
18030
|
let {
|
|
17706
18031
|
className,
|
|
17707
18032
|
style
|
|
@@ -17737,7 +18062,7 @@ const RemoveableTag = _ref => {
|
|
|
17737
18062
|
style: extraStyles ? extraStyles === null || extraStyles === void 0 ? void 0 : extraStyles.textStyles : {}
|
|
17738
18063
|
}, text), /*#__PURE__*/React.createElement("span", {
|
|
17739
18064
|
onClick: disabled ? null : onClick
|
|
17740
|
-
}, /*#__PURE__*/React.createElement(Close, {
|
|
18065
|
+
}, /*#__PURE__*/React.createElement(Close$1, {
|
|
17741
18066
|
className: "close",
|
|
17742
18067
|
style: extraStyles ? extraStyles === null || extraStyles === void 0 ? void 0 : extraStyles.closeIconStyles : {}
|
|
17743
18068
|
})));
|
|
@@ -17933,7 +18258,7 @@ const UploadFileDigiLocker = props => {
|
|
|
17933
18258
|
try {
|
|
17934
18259
|
let _exit = false;
|
|
17935
18260
|
e.preventDefault();
|
|
17936
|
-
return Promise.resolve(_catch
|
|
18261
|
+
return Promise.resolve(_catch(function () {
|
|
17937
18262
|
function _temp13(_result) {
|
|
17938
18263
|
if (_exit) return _result;
|
|
17939
18264
|
let TokenReq = {
|
|
@@ -18144,7 +18469,7 @@ const UploadFileDigiLocker = props => {
|
|
|
18144
18469
|
function _temp2() {
|
|
18145
18470
|
_exit = true;
|
|
18146
18471
|
}
|
|
18147
|
-
const _temp = _catch
|
|
18472
|
+
const _temp = _catch(function () {
|
|
18148
18473
|
const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
|
|
18149
18474
|
return Promise.resolve(Digit.DigiLockerService.authorization({
|
|
18150
18475
|
module: "WS",
|
|
@@ -18213,7 +18538,7 @@ const UploadFileDigiLocker = props => {
|
|
|
18213
18538
|
fill: "#0B0C0C"
|
|
18214
18539
|
}));
|
|
18215
18540
|
const showHint = (props === null || props === void 0 ? void 0 : props.showHint) || false;
|
|
18216
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
18541
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, showHint && /*#__PURE__*/React.createElement("p", {
|
|
18217
18542
|
className: "cell-text"
|
|
18218
18543
|
}, t(props === null || props === void 0 ? void 0 : props.hintText)), /*#__PURE__*/React.createElement("div", {
|
|
18219
18544
|
className: `upload-file ${user_type === "employee" ? "" : "upload-file-max-width"} ${props.disabled ? " disabled" : ""}`,
|
|
@@ -19792,7 +20117,7 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
19792
20117
|
} = Digit.Hooks.ws.WSSearchMdmsTypes.useWSServicesMasters(tenantId, "DisconnectionDocuments");
|
|
19793
20118
|
if (userType === "citizen") {
|
|
19794
20119
|
var _wsDocs$Disconnection;
|
|
19795
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
20120
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`WS_COMMON_APPLICATION_DISCONNECTION`)), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
|
|
19796
20121
|
style: {
|
|
19797
20122
|
margin: "0px"
|
|
19798
20123
|
},
|
|
@@ -19818,7 +20143,7 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
19818
20143
|
color: "#0B0C0C",
|
|
19819
20144
|
marginTop: "12px"
|
|
19820
20145
|
}
|
|
19821
|
-
}, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
20146
|
+
}, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((doc, index) => {
|
|
19822
20147
|
var _doc$dropdownData;
|
|
19823
20148
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
19824
20149
|
style: {
|
|
@@ -24765,7 +25090,7 @@ const FilterFormFieldsComponent = _ref => {
|
|
|
24765
25090
|
});
|
|
24766
25091
|
return props.onChange(res);
|
|
24767
25092
|
};
|
|
24768
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
25093
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
24769
25094
|
name: "assignee",
|
|
24770
25095
|
control: controlFilterForm,
|
|
24771
25096
|
render: props => {
|
|
@@ -24796,7 +25121,7 @@ const FilterFormFieldsComponent = _ref => {
|
|
|
24796
25121
|
});
|
|
24797
25122
|
});
|
|
24798
25123
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
24799
|
-
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
25124
|
+
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
24800
25125
|
className: "filter-label sub-filter-label"
|
|
24801
25126
|
}, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
|
|
24802
25127
|
options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
|
|
@@ -24831,9 +25156,9 @@ const FilterFormFieldsComponent = _ref => {
|
|
|
24831
25156
|
key: index + 1
|
|
24832
25157
|
});
|
|
24833
25158
|
}), [props.value, statuses]);
|
|
24834
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
25159
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
24835
25160
|
className: "filter-label sub-filter-label"
|
|
24836
|
-
}, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
25161
|
+
}, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
|
|
24837
25162
|
}
|
|
24838
25163
|
})), (selectedApplicationType === null || selectedApplicationType === void 0 ? void 0 : selectedApplicationType.length) > 0 ? /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
24839
25164
|
name: "applicationStatus",
|
|
@@ -24860,9 +25185,9 @@ const FilterFormFieldsComponent = _ref => {
|
|
|
24860
25185
|
});
|
|
24861
25186
|
});
|
|
24862
25187
|
}, [props.value, statuses, selectedApplicationType]);
|
|
24863
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
25188
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
24864
25189
|
className: "filter-label sub-filter-label"
|
|
24865
|
-
}, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
25190
|
+
}, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, renderStatusCheckBoxes));
|
|
24866
25191
|
}
|
|
24867
25192
|
})) : null);
|
|
24868
25193
|
};
|
|
@@ -26126,7 +26451,7 @@ const SearchFields$1 = _ref => {
|
|
|
26126
26451
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
26127
26452
|
};
|
|
26128
26453
|
let validation = {};
|
|
26129
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
26454
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, _extends({
|
|
26130
26455
|
name: "connectionNumber",
|
|
26131
26456
|
inputRef: register({})
|
|
26132
26457
|
}, validation = {
|
|
@@ -26794,7 +27119,7 @@ const BulkBillSearchFields = _ref => {
|
|
|
26794
27119
|
setValue('tenantId', tenant);
|
|
26795
27120
|
setLocality(value);
|
|
26796
27121
|
}
|
|
26797
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
27122
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_CITY")), /*#__PURE__*/React.createElement(TextInput, {
|
|
26798
27123
|
name: "city",
|
|
26799
27124
|
disable: true,
|
|
26800
27125
|
value: t(tenant),
|
|
@@ -27237,7 +27562,7 @@ const BulkBillSearch = _ref => {
|
|
|
27237
27562
|
return GetCell((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["status"]);
|
|
27238
27563
|
}
|
|
27239
27564
|
}]);
|
|
27240
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
27565
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
|
|
27241
27566
|
styles: {
|
|
27242
27567
|
fontSize: "32px"
|
|
27243
27568
|
}
|
|
@@ -27519,7 +27844,11 @@ const WSCard = () => {
|
|
|
27519
27844
|
label: t("WS_APPLY_MUTATION"),
|
|
27520
27845
|
link: `/digit-ui/employee/ws/mutation-application`,
|
|
27521
27846
|
roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
27522
|
-
}
|
|
27847
|
+
}, {
|
|
27848
|
+
label: t("WS_ZRO_VERIFICATION"),
|
|
27849
|
+
link: `/digit-ui/employee/ws/zro-application`,
|
|
27850
|
+
roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
27851
|
+
}].filter(link => link.roles ? checkForEmployee(link.roles) : true)
|
|
27523
27852
|
};
|
|
27524
27853
|
return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
|
|
27525
27854
|
};
|
|
@@ -27619,7 +27948,7 @@ const SearchFormFieldsComponents$1 = _ref => {
|
|
|
27619
27948
|
componentInFront: "+91"
|
|
27620
27949
|
};
|
|
27621
27950
|
let validation = {};
|
|
27622
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
27951
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
|
|
27623
27952
|
className: "wns-search-field"
|
|
27624
27953
|
}, /*#__PURE__*/React.createElement("label", null, t("BILLAMEND_APPLICATIONNO")), /*#__PURE__*/React.createElement(TextInput, _extends({
|
|
27625
27954
|
name: "applicationNumber",
|
|
@@ -27687,7 +28016,7 @@ const FilterFormFieldsComponent$1 = _ref => {
|
|
|
27687
28016
|
});
|
|
27688
28017
|
return props.onChange(res);
|
|
27689
28018
|
};
|
|
27690
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
28019
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
27691
28020
|
name: "assignee",
|
|
27692
28021
|
control: controlFilterForm,
|
|
27693
28022
|
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
@@ -27716,7 +28045,7 @@ const FilterFormFieldsComponent$1 = _ref => {
|
|
|
27716
28045
|
});
|
|
27717
28046
|
});
|
|
27718
28047
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
27719
|
-
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
28048
|
+
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
27720
28049
|
className: "filter-label sub-filter-label"
|
|
27721
28050
|
}, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
|
|
27722
28051
|
options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
|
|
@@ -27755,9 +28084,9 @@ const FilterFormFieldsComponent$1 = _ref => {
|
|
|
27755
28084
|
key: index + 1
|
|
27756
28085
|
});
|
|
27757
28086
|
}), [props.value, statuses]);
|
|
27758
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
28087
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
27759
28088
|
className: "filter-label sub-filter-label"
|
|
27760
|
-
}, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
28089
|
+
}, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
|
|
27761
28090
|
}
|
|
27762
28091
|
})));
|
|
27763
28092
|
};
|
|
@@ -28281,7 +28610,7 @@ const Inbox = _ref => {
|
|
|
28281
28610
|
sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
|
|
28282
28611
|
onSortFormReset
|
|
28283
28612
|
};
|
|
28284
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
28613
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, null, t("ES_COMMON_INBOX"), totalCount ? /*#__PURE__*/React.createElement("p", {
|
|
28285
28614
|
className: "inbox-count"
|
|
28286
28615
|
}, totalCount) : null), /*#__PURE__*/React.createElement(InboxComposer, _extends({
|
|
28287
28616
|
isInboxLoading,
|
|
@@ -29389,1101 +29718,6 @@ const config = [{
|
|
|
29389
29718
|
}]
|
|
29390
29719
|
}];
|
|
29391
29720
|
|
|
29392
|
-
/** @license React v16.13.1
|
|
29393
|
-
* react-is.production.min.js
|
|
29394
|
-
*
|
|
29395
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29396
|
-
*
|
|
29397
|
-
* This source code is licensed under the MIT license found in the
|
|
29398
|
-
* LICENSE file in the root directory of this source tree.
|
|
29399
|
-
*/
|
|
29400
|
-
var b$1="function"===typeof Symbol&&Symbol.for,c$1=b$1?Symbol.for("react.element"):60103,d$1=b$1?Symbol.for("react.portal"):60106,e$1=b$1?Symbol.for("react.fragment"):60107,f$1=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h$1=b$1?Symbol.for("react.provider"):60109,k$1=b$1?Symbol.for("react.context"):60110,l$1=b$1?Symbol.for("react.async_mode"):60111,m$1=b$1?Symbol.for("react.concurrent_mode"):60111,n$1=b$1?Symbol.for("react.forward_ref"):60112,p$1=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?
|
|
29401
|
-
Symbol.for("react.suspense_list"):60120,r$1=b$1?Symbol.for("react.memo"):60115,t$1=b$1?Symbol.for("react.lazy"):60116,v$1=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$1=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;
|
|
29402
|
-
function z$1(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$1:switch(a=a.type,a){case l$1:case m$1:case e$1:case g$1:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n$1:case t$1:case r$1:case h$1:return a;default:return u}}case d$1:return u}}}function A$1(a){return z$1(a)===m$1}var AsyncMode$1=l$1;var ConcurrentMode$1=m$1;var ContextConsumer$1=k$1;var ContextProvider$1=h$1;var Element$1=c$1;var ForwardRef$1=n$1;var Fragment$1=e$1;var Lazy$1=t$1;var Memo$1=r$1;var Portal$1=d$1;
|
|
29403
|
-
var Profiler$1=g$1;var StrictMode$1=f$1;var Suspense$1=p$1;var isAsyncMode$1=function(a){return A$1(a)||z$1(a)===l$1};var isConcurrentMode$1=A$1;var isContextConsumer$1=function(a){return z$1(a)===k$1};var isContextProvider$1=function(a){return z$1(a)===h$1};var isElement$1=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$1};var isForwardRef$1=function(a){return z$1(a)===n$1};var isFragment$1=function(a){return z$1(a)===e$1};var isLazy$1=function(a){return z$1(a)===t$1};
|
|
29404
|
-
var isMemo$1=function(a){return z$1(a)===r$1};var isPortal$1=function(a){return z$1(a)===d$1};var isProfiler$1=function(a){return z$1(a)===g$1};var isStrictMode$1=function(a){return z$1(a)===f$1};var isSuspense$1=function(a){return z$1(a)===p$1};
|
|
29405
|
-
var isValidElementType$1=function(a){return "string"===typeof a||"function"===typeof a||a===e$1||a===m$1||a===g$1||a===f$1||a===p$1||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r$1||a.$$typeof===h$1||a.$$typeof===k$1||a.$$typeof===n$1||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$1)};var typeOf$1=z$1;
|
|
29406
|
-
|
|
29407
|
-
var reactIs_production_min$1 = {
|
|
29408
|
-
AsyncMode: AsyncMode$1,
|
|
29409
|
-
ConcurrentMode: ConcurrentMode$1,
|
|
29410
|
-
ContextConsumer: ContextConsumer$1,
|
|
29411
|
-
ContextProvider: ContextProvider$1,
|
|
29412
|
-
Element: Element$1,
|
|
29413
|
-
ForwardRef: ForwardRef$1,
|
|
29414
|
-
Fragment: Fragment$1,
|
|
29415
|
-
Lazy: Lazy$1,
|
|
29416
|
-
Memo: Memo$1,
|
|
29417
|
-
Portal: Portal$1,
|
|
29418
|
-
Profiler: Profiler$1,
|
|
29419
|
-
StrictMode: StrictMode$1,
|
|
29420
|
-
Suspense: Suspense$1,
|
|
29421
|
-
isAsyncMode: isAsyncMode$1,
|
|
29422
|
-
isConcurrentMode: isConcurrentMode$1,
|
|
29423
|
-
isContextConsumer: isContextConsumer$1,
|
|
29424
|
-
isContextProvider: isContextProvider$1,
|
|
29425
|
-
isElement: isElement$1,
|
|
29426
|
-
isForwardRef: isForwardRef$1,
|
|
29427
|
-
isFragment: isFragment$1,
|
|
29428
|
-
isLazy: isLazy$1,
|
|
29429
|
-
isMemo: isMemo$1,
|
|
29430
|
-
isPortal: isPortal$1,
|
|
29431
|
-
isProfiler: isProfiler$1,
|
|
29432
|
-
isStrictMode: isStrictMode$1,
|
|
29433
|
-
isSuspense: isSuspense$1,
|
|
29434
|
-
isValidElementType: isValidElementType$1,
|
|
29435
|
-
typeOf: typeOf$1
|
|
29436
|
-
};
|
|
29437
|
-
|
|
29438
|
-
var reactIs_development$1 = createCommonjsModule(function (module, exports) {
|
|
29439
|
-
|
|
29440
|
-
|
|
29441
|
-
|
|
29442
|
-
if (process.env.NODE_ENV !== "production") {
|
|
29443
|
-
(function() {
|
|
29444
|
-
|
|
29445
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
29446
|
-
// nor polyfill, then a plain number is used for performance.
|
|
29447
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
29448
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
29449
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
29450
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
29451
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
29452
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
29453
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
29454
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
29455
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
29456
|
-
|
|
29457
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
29458
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
29459
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
29460
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
29461
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
29462
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
29463
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
29464
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
29465
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
29466
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
29467
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
29468
|
-
|
|
29469
|
-
function isValidElementType(type) {
|
|
29470
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
29471
|
-
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);
|
|
29472
|
-
}
|
|
29473
|
-
|
|
29474
|
-
function typeOf(object) {
|
|
29475
|
-
if (typeof object === 'object' && object !== null) {
|
|
29476
|
-
var $$typeof = object.$$typeof;
|
|
29477
|
-
|
|
29478
|
-
switch ($$typeof) {
|
|
29479
|
-
case REACT_ELEMENT_TYPE:
|
|
29480
|
-
var type = object.type;
|
|
29481
|
-
|
|
29482
|
-
switch (type) {
|
|
29483
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
29484
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
29485
|
-
case REACT_FRAGMENT_TYPE:
|
|
29486
|
-
case REACT_PROFILER_TYPE:
|
|
29487
|
-
case REACT_STRICT_MODE_TYPE:
|
|
29488
|
-
case REACT_SUSPENSE_TYPE:
|
|
29489
|
-
return type;
|
|
29490
|
-
|
|
29491
|
-
default:
|
|
29492
|
-
var $$typeofType = type && type.$$typeof;
|
|
29493
|
-
|
|
29494
|
-
switch ($$typeofType) {
|
|
29495
|
-
case REACT_CONTEXT_TYPE:
|
|
29496
|
-
case REACT_FORWARD_REF_TYPE:
|
|
29497
|
-
case REACT_LAZY_TYPE:
|
|
29498
|
-
case REACT_MEMO_TYPE:
|
|
29499
|
-
case REACT_PROVIDER_TYPE:
|
|
29500
|
-
return $$typeofType;
|
|
29501
|
-
|
|
29502
|
-
default:
|
|
29503
|
-
return $$typeof;
|
|
29504
|
-
}
|
|
29505
|
-
|
|
29506
|
-
}
|
|
29507
|
-
|
|
29508
|
-
case REACT_PORTAL_TYPE:
|
|
29509
|
-
return $$typeof;
|
|
29510
|
-
}
|
|
29511
|
-
}
|
|
29512
|
-
|
|
29513
|
-
return undefined;
|
|
29514
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
29515
|
-
|
|
29516
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
29517
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
29518
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
29519
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
29520
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
29521
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
29522
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
29523
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
29524
|
-
var Memo = REACT_MEMO_TYPE;
|
|
29525
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
29526
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
29527
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
29528
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
29529
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
29530
|
-
|
|
29531
|
-
function isAsyncMode(object) {
|
|
29532
|
-
{
|
|
29533
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
29534
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
29535
|
-
|
|
29536
|
-
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.');
|
|
29537
|
-
}
|
|
29538
|
-
}
|
|
29539
|
-
|
|
29540
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
29541
|
-
}
|
|
29542
|
-
function isConcurrentMode(object) {
|
|
29543
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
29544
|
-
}
|
|
29545
|
-
function isContextConsumer(object) {
|
|
29546
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
29547
|
-
}
|
|
29548
|
-
function isContextProvider(object) {
|
|
29549
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
29550
|
-
}
|
|
29551
|
-
function isElement(object) {
|
|
29552
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
29553
|
-
}
|
|
29554
|
-
function isForwardRef(object) {
|
|
29555
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
29556
|
-
}
|
|
29557
|
-
function isFragment(object) {
|
|
29558
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
29559
|
-
}
|
|
29560
|
-
function isLazy(object) {
|
|
29561
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
29562
|
-
}
|
|
29563
|
-
function isMemo(object) {
|
|
29564
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
29565
|
-
}
|
|
29566
|
-
function isPortal(object) {
|
|
29567
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
29568
|
-
}
|
|
29569
|
-
function isProfiler(object) {
|
|
29570
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
29571
|
-
}
|
|
29572
|
-
function isStrictMode(object) {
|
|
29573
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
29574
|
-
}
|
|
29575
|
-
function isSuspense(object) {
|
|
29576
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
29577
|
-
}
|
|
29578
|
-
|
|
29579
|
-
exports.AsyncMode = AsyncMode;
|
|
29580
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
29581
|
-
exports.ContextConsumer = ContextConsumer;
|
|
29582
|
-
exports.ContextProvider = ContextProvider;
|
|
29583
|
-
exports.Element = Element;
|
|
29584
|
-
exports.ForwardRef = ForwardRef;
|
|
29585
|
-
exports.Fragment = Fragment;
|
|
29586
|
-
exports.Lazy = Lazy;
|
|
29587
|
-
exports.Memo = Memo;
|
|
29588
|
-
exports.Portal = Portal;
|
|
29589
|
-
exports.Profiler = Profiler;
|
|
29590
|
-
exports.StrictMode = StrictMode;
|
|
29591
|
-
exports.Suspense = Suspense;
|
|
29592
|
-
exports.isAsyncMode = isAsyncMode;
|
|
29593
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
29594
|
-
exports.isContextConsumer = isContextConsumer;
|
|
29595
|
-
exports.isContextProvider = isContextProvider;
|
|
29596
|
-
exports.isElement = isElement;
|
|
29597
|
-
exports.isForwardRef = isForwardRef;
|
|
29598
|
-
exports.isFragment = isFragment;
|
|
29599
|
-
exports.isLazy = isLazy;
|
|
29600
|
-
exports.isMemo = isMemo;
|
|
29601
|
-
exports.isPortal = isPortal;
|
|
29602
|
-
exports.isProfiler = isProfiler;
|
|
29603
|
-
exports.isStrictMode = isStrictMode;
|
|
29604
|
-
exports.isSuspense = isSuspense;
|
|
29605
|
-
exports.isValidElementType = isValidElementType;
|
|
29606
|
-
exports.typeOf = typeOf;
|
|
29607
|
-
})();
|
|
29608
|
-
}
|
|
29609
|
-
});
|
|
29610
|
-
|
|
29611
|
-
var reactIs$1 = createCommonjsModule(function (module) {
|
|
29612
|
-
|
|
29613
|
-
if (process.env.NODE_ENV === 'production') {
|
|
29614
|
-
module.exports = reactIs_production_min$1;
|
|
29615
|
-
} else {
|
|
29616
|
-
module.exports = reactIs_development$1;
|
|
29617
|
-
}
|
|
29618
|
-
});
|
|
29619
|
-
|
|
29620
|
-
/*
|
|
29621
|
-
object-assign
|
|
29622
|
-
(c) Sindre Sorhus
|
|
29623
|
-
@license MIT
|
|
29624
|
-
*/
|
|
29625
|
-
/* eslint-disable no-unused-vars */
|
|
29626
|
-
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
29627
|
-
var hasOwnProperty$b = Object.prototype.hasOwnProperty;
|
|
29628
|
-
var propIsEnumerable$1 = Object.prototype.propertyIsEnumerable;
|
|
29629
|
-
|
|
29630
|
-
function toObject$1(val) {
|
|
29631
|
-
if (val === null || val === undefined) {
|
|
29632
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
29633
|
-
}
|
|
29634
|
-
|
|
29635
|
-
return Object(val);
|
|
29636
|
-
}
|
|
29637
|
-
|
|
29638
|
-
function shouldUseNative$1() {
|
|
29639
|
-
try {
|
|
29640
|
-
if (!Object.assign) {
|
|
29641
|
-
return false;
|
|
29642
|
-
}
|
|
29643
|
-
|
|
29644
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
29645
|
-
|
|
29646
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
29647
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
29648
|
-
test1[5] = 'de';
|
|
29649
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
29650
|
-
return false;
|
|
29651
|
-
}
|
|
29652
|
-
|
|
29653
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
29654
|
-
var test2 = {};
|
|
29655
|
-
for (var i = 0; i < 10; i++) {
|
|
29656
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
29657
|
-
}
|
|
29658
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
29659
|
-
return test2[n];
|
|
29660
|
-
});
|
|
29661
|
-
if (order2.join('') !== '0123456789') {
|
|
29662
|
-
return false;
|
|
29663
|
-
}
|
|
29664
|
-
|
|
29665
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
29666
|
-
var test3 = {};
|
|
29667
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
29668
|
-
test3[letter] = letter;
|
|
29669
|
-
});
|
|
29670
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
29671
|
-
'abcdefghijklmnopqrst') {
|
|
29672
|
-
return false;
|
|
29673
|
-
}
|
|
29674
|
-
|
|
29675
|
-
return true;
|
|
29676
|
-
} catch (err) {
|
|
29677
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
29678
|
-
return false;
|
|
29679
|
-
}
|
|
29680
|
-
}
|
|
29681
|
-
|
|
29682
|
-
var objectAssign$1 = shouldUseNative$1() ? Object.assign : function (target, source) {
|
|
29683
|
-
var from;
|
|
29684
|
-
var to = toObject$1(target);
|
|
29685
|
-
var symbols;
|
|
29686
|
-
|
|
29687
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
29688
|
-
from = Object(arguments[s]);
|
|
29689
|
-
|
|
29690
|
-
for (var key in from) {
|
|
29691
|
-
if (hasOwnProperty$b.call(from, key)) {
|
|
29692
|
-
to[key] = from[key];
|
|
29693
|
-
}
|
|
29694
|
-
}
|
|
29695
|
-
|
|
29696
|
-
if (getOwnPropertySymbols$1) {
|
|
29697
|
-
symbols = getOwnPropertySymbols$1(from);
|
|
29698
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
29699
|
-
if (propIsEnumerable$1.call(from, symbols[i])) {
|
|
29700
|
-
to[symbols[i]] = from[symbols[i]];
|
|
29701
|
-
}
|
|
29702
|
-
}
|
|
29703
|
-
}
|
|
29704
|
-
}
|
|
29705
|
-
|
|
29706
|
-
return to;
|
|
29707
|
-
};
|
|
29708
|
-
|
|
29709
|
-
/**
|
|
29710
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
29711
|
-
*
|
|
29712
|
-
* This source code is licensed under the MIT license found in the
|
|
29713
|
-
* LICENSE file in the root directory of this source tree.
|
|
29714
|
-
*/
|
|
29715
|
-
|
|
29716
|
-
var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
29717
|
-
|
|
29718
|
-
var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$2;
|
|
29719
|
-
|
|
29720
|
-
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
29721
|
-
|
|
29722
|
-
var printWarning$2 = function() {};
|
|
29723
|
-
|
|
29724
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
29725
|
-
var ReactPropTypesSecret$3 = ReactPropTypesSecret_1$1;
|
|
29726
|
-
var loggedTypeFailures$1 = {};
|
|
29727
|
-
var has$3 = has$2;
|
|
29728
|
-
|
|
29729
|
-
printWarning$2 = function(text) {
|
|
29730
|
-
var message = 'Warning: ' + text;
|
|
29731
|
-
if (typeof console !== 'undefined') {
|
|
29732
|
-
console.error(message);
|
|
29733
|
-
}
|
|
29734
|
-
try {
|
|
29735
|
-
// --- Welcome to debugging React ---
|
|
29736
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
29737
|
-
// to find the callsite that caused this warning to fire.
|
|
29738
|
-
throw new Error(message);
|
|
29739
|
-
} catch (x) { /**/ }
|
|
29740
|
-
};
|
|
29741
|
-
}
|
|
29742
|
-
|
|
29743
|
-
/**
|
|
29744
|
-
* Assert that the values match with the type specs.
|
|
29745
|
-
* Error messages are memorized and will only be shown once.
|
|
29746
|
-
*
|
|
29747
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
29748
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
29749
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
29750
|
-
* @param {string} componentName Name of the component for error messages.
|
|
29751
|
-
* @param {?Function} getStack Returns the component stack.
|
|
29752
|
-
* @private
|
|
29753
|
-
*/
|
|
29754
|
-
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
29755
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
29756
|
-
for (var typeSpecName in typeSpecs) {
|
|
29757
|
-
if (has$3(typeSpecs, typeSpecName)) {
|
|
29758
|
-
var error;
|
|
29759
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
29760
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
29761
|
-
// After these have been cleaned up, we'll let them throw.
|
|
29762
|
-
try {
|
|
29763
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
29764
|
-
// behavior as without this statement except with a better message.
|
|
29765
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
29766
|
-
var err = Error(
|
|
29767
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
29768
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
29769
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
29770
|
-
);
|
|
29771
|
-
err.name = 'Invariant Violation';
|
|
29772
|
-
throw err;
|
|
29773
|
-
}
|
|
29774
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$3);
|
|
29775
|
-
} catch (ex) {
|
|
29776
|
-
error = ex;
|
|
29777
|
-
}
|
|
29778
|
-
if (error && !(error instanceof Error)) {
|
|
29779
|
-
printWarning$2(
|
|
29780
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
29781
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
29782
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
29783
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
29784
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
29785
|
-
'shape all require an argument).'
|
|
29786
|
-
);
|
|
29787
|
-
}
|
|
29788
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
|
|
29789
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
29790
|
-
// same error.
|
|
29791
|
-
loggedTypeFailures$1[error.message] = true;
|
|
29792
|
-
|
|
29793
|
-
var stack = getStack ? getStack() : '';
|
|
29794
|
-
|
|
29795
|
-
printWarning$2(
|
|
29796
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
29797
|
-
);
|
|
29798
|
-
}
|
|
29799
|
-
}
|
|
29800
|
-
}
|
|
29801
|
-
}
|
|
29802
|
-
}
|
|
29803
|
-
|
|
29804
|
-
/**
|
|
29805
|
-
* Resets warning cache when testing.
|
|
29806
|
-
*
|
|
29807
|
-
* @private
|
|
29808
|
-
*/
|
|
29809
|
-
checkPropTypes$1.resetWarningCache = function() {
|
|
29810
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
29811
|
-
loggedTypeFailures$1 = {};
|
|
29812
|
-
}
|
|
29813
|
-
};
|
|
29814
|
-
|
|
29815
|
-
var checkPropTypes_1$1 = checkPropTypes$1;
|
|
29816
|
-
|
|
29817
|
-
var printWarning$3 = function() {};
|
|
29818
|
-
|
|
29819
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
29820
|
-
printWarning$3 = function(text) {
|
|
29821
|
-
var message = 'Warning: ' + text;
|
|
29822
|
-
if (typeof console !== 'undefined') {
|
|
29823
|
-
console.error(message);
|
|
29824
|
-
}
|
|
29825
|
-
try {
|
|
29826
|
-
// --- Welcome to debugging React ---
|
|
29827
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
29828
|
-
// to find the callsite that caused this warning to fire.
|
|
29829
|
-
throw new Error(message);
|
|
29830
|
-
} catch (x) {}
|
|
29831
|
-
};
|
|
29832
|
-
}
|
|
29833
|
-
|
|
29834
|
-
function emptyFunctionThatReturnsNull$1() {
|
|
29835
|
-
return null;
|
|
29836
|
-
}
|
|
29837
|
-
|
|
29838
|
-
var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
|
|
29839
|
-
/* global Symbol */
|
|
29840
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
29841
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
29842
|
-
|
|
29843
|
-
/**
|
|
29844
|
-
* Returns the iterator method function contained on the iterable object.
|
|
29845
|
-
*
|
|
29846
|
-
* Be sure to invoke the function with the iterable as context:
|
|
29847
|
-
*
|
|
29848
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
29849
|
-
* if (iteratorFn) {
|
|
29850
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
29851
|
-
* ...
|
|
29852
|
-
* }
|
|
29853
|
-
*
|
|
29854
|
-
* @param {?object} maybeIterable
|
|
29855
|
-
* @return {?function}
|
|
29856
|
-
*/
|
|
29857
|
-
function getIteratorFn(maybeIterable) {
|
|
29858
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
29859
|
-
if (typeof iteratorFn === 'function') {
|
|
29860
|
-
return iteratorFn;
|
|
29861
|
-
}
|
|
29862
|
-
}
|
|
29863
|
-
|
|
29864
|
-
/**
|
|
29865
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
29866
|
-
* supplied to React components. Example usage:
|
|
29867
|
-
*
|
|
29868
|
-
* var Props = require('ReactPropTypes');
|
|
29869
|
-
* var MyArticle = React.createClass({
|
|
29870
|
-
* propTypes: {
|
|
29871
|
-
* // An optional string prop named "description".
|
|
29872
|
-
* description: Props.string,
|
|
29873
|
-
*
|
|
29874
|
-
* // A required enum prop named "category".
|
|
29875
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
29876
|
-
*
|
|
29877
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
29878
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
29879
|
-
* },
|
|
29880
|
-
* render: function() { ... }
|
|
29881
|
-
* });
|
|
29882
|
-
*
|
|
29883
|
-
* A more formal specification of how these methods are used:
|
|
29884
|
-
*
|
|
29885
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
29886
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
29887
|
-
*
|
|
29888
|
-
* Each and every declaration produces a function with the same signature. This
|
|
29889
|
-
* allows the creation of custom validation functions. For example:
|
|
29890
|
-
*
|
|
29891
|
-
* var MyLink = React.createClass({
|
|
29892
|
-
* propTypes: {
|
|
29893
|
-
* // An optional string or URI prop named "href".
|
|
29894
|
-
* href: function(props, propName, componentName) {
|
|
29895
|
-
* var propValue = props[propName];
|
|
29896
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
29897
|
-
* !(propValue instanceof URI)) {
|
|
29898
|
-
* return new Error(
|
|
29899
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
29900
|
-
* componentName
|
|
29901
|
-
* );
|
|
29902
|
-
* }
|
|
29903
|
-
* }
|
|
29904
|
-
* },
|
|
29905
|
-
* render: function() {...}
|
|
29906
|
-
* });
|
|
29907
|
-
*
|
|
29908
|
-
* @internal
|
|
29909
|
-
*/
|
|
29910
|
-
|
|
29911
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
29912
|
-
|
|
29913
|
-
// Important!
|
|
29914
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
29915
|
-
var ReactPropTypes = {
|
|
29916
|
-
array: createPrimitiveTypeChecker('array'),
|
|
29917
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
29918
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
29919
|
-
func: createPrimitiveTypeChecker('function'),
|
|
29920
|
-
number: createPrimitiveTypeChecker('number'),
|
|
29921
|
-
object: createPrimitiveTypeChecker('object'),
|
|
29922
|
-
string: createPrimitiveTypeChecker('string'),
|
|
29923
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
29924
|
-
|
|
29925
|
-
any: createAnyTypeChecker(),
|
|
29926
|
-
arrayOf: createArrayOfTypeChecker,
|
|
29927
|
-
element: createElementTypeChecker(),
|
|
29928
|
-
elementType: createElementTypeTypeChecker(),
|
|
29929
|
-
instanceOf: createInstanceTypeChecker,
|
|
29930
|
-
node: createNodeChecker(),
|
|
29931
|
-
objectOf: createObjectOfTypeChecker,
|
|
29932
|
-
oneOf: createEnumTypeChecker,
|
|
29933
|
-
oneOfType: createUnionTypeChecker,
|
|
29934
|
-
shape: createShapeTypeChecker,
|
|
29935
|
-
exact: createStrictShapeTypeChecker,
|
|
29936
|
-
};
|
|
29937
|
-
|
|
29938
|
-
/**
|
|
29939
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
29940
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
29941
|
-
*/
|
|
29942
|
-
/*eslint-disable no-self-compare*/
|
|
29943
|
-
function is(x, y) {
|
|
29944
|
-
// SameValue algorithm
|
|
29945
|
-
if (x === y) {
|
|
29946
|
-
// Steps 1-5, 7-10
|
|
29947
|
-
// Steps 6.b-6.e: +0 != -0
|
|
29948
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
29949
|
-
} else {
|
|
29950
|
-
// Step 6.a: NaN == NaN
|
|
29951
|
-
return x !== x && y !== y;
|
|
29952
|
-
}
|
|
29953
|
-
}
|
|
29954
|
-
/*eslint-enable no-self-compare*/
|
|
29955
|
-
|
|
29956
|
-
/**
|
|
29957
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
29958
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
29959
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
29960
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
29961
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
29962
|
-
*/
|
|
29963
|
-
function PropTypeError(message, data) {
|
|
29964
|
-
this.message = message;
|
|
29965
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
29966
|
-
this.stack = '';
|
|
29967
|
-
}
|
|
29968
|
-
// Make `instanceof Error` still work for returned errors.
|
|
29969
|
-
PropTypeError.prototype = Error.prototype;
|
|
29970
|
-
|
|
29971
|
-
function createChainableTypeChecker(validate) {
|
|
29972
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
29973
|
-
var manualPropTypeCallCache = {};
|
|
29974
|
-
var manualPropTypeWarningCount = 0;
|
|
29975
|
-
}
|
|
29976
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
29977
|
-
componentName = componentName || ANONYMOUS;
|
|
29978
|
-
propFullName = propFullName || propName;
|
|
29979
|
-
|
|
29980
|
-
if (secret !== ReactPropTypesSecret_1$1) {
|
|
29981
|
-
if (throwOnDirectAccess) {
|
|
29982
|
-
// New behavior only for users of `prop-types` package
|
|
29983
|
-
var err = new Error(
|
|
29984
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
29985
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
29986
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
29987
|
-
);
|
|
29988
|
-
err.name = 'Invariant Violation';
|
|
29989
|
-
throw err;
|
|
29990
|
-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
29991
|
-
// Old behavior for people using React.PropTypes
|
|
29992
|
-
var cacheKey = componentName + ':' + propName;
|
|
29993
|
-
if (
|
|
29994
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
29995
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
29996
|
-
manualPropTypeWarningCount < 3
|
|
29997
|
-
) {
|
|
29998
|
-
printWarning$3(
|
|
29999
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
30000
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
30001
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
30002
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
30003
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
30004
|
-
);
|
|
30005
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
30006
|
-
manualPropTypeWarningCount++;
|
|
30007
|
-
}
|
|
30008
|
-
}
|
|
30009
|
-
}
|
|
30010
|
-
if (props[propName] == null) {
|
|
30011
|
-
if (isRequired) {
|
|
30012
|
-
if (props[propName] === null) {
|
|
30013
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
30014
|
-
}
|
|
30015
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
30016
|
-
}
|
|
30017
|
-
return null;
|
|
30018
|
-
} else {
|
|
30019
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
30020
|
-
}
|
|
30021
|
-
}
|
|
30022
|
-
|
|
30023
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
30024
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
30025
|
-
|
|
30026
|
-
return chainedCheckType;
|
|
30027
|
-
}
|
|
30028
|
-
|
|
30029
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
30030
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
30031
|
-
var propValue = props[propName];
|
|
30032
|
-
var propType = getPropType(propValue);
|
|
30033
|
-
if (propType !== expectedType) {
|
|
30034
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
30035
|
-
// check, but we can offer a more precise error message here rather than
|
|
30036
|
-
// 'of type `object`'.
|
|
30037
|
-
var preciseType = getPreciseType(propValue);
|
|
30038
|
-
|
|
30039
|
-
return new PropTypeError(
|
|
30040
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
30041
|
-
{expectedType: expectedType}
|
|
30042
|
-
);
|
|
30043
|
-
}
|
|
30044
|
-
return null;
|
|
30045
|
-
}
|
|
30046
|
-
return createChainableTypeChecker(validate);
|
|
30047
|
-
}
|
|
30048
|
-
|
|
30049
|
-
function createAnyTypeChecker() {
|
|
30050
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
|
|
30051
|
-
}
|
|
30052
|
-
|
|
30053
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
30054
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30055
|
-
if (typeof typeChecker !== 'function') {
|
|
30056
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
30057
|
-
}
|
|
30058
|
-
var propValue = props[propName];
|
|
30059
|
-
if (!Array.isArray(propValue)) {
|
|
30060
|
-
var propType = getPropType(propValue);
|
|
30061
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
30062
|
-
}
|
|
30063
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
30064
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1$1);
|
|
30065
|
-
if (error instanceof Error) {
|
|
30066
|
-
return error;
|
|
30067
|
-
}
|
|
30068
|
-
}
|
|
30069
|
-
return null;
|
|
30070
|
-
}
|
|
30071
|
-
return createChainableTypeChecker(validate);
|
|
30072
|
-
}
|
|
30073
|
-
|
|
30074
|
-
function createElementTypeChecker() {
|
|
30075
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30076
|
-
var propValue = props[propName];
|
|
30077
|
-
if (!isValidElement(propValue)) {
|
|
30078
|
-
var propType = getPropType(propValue);
|
|
30079
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
30080
|
-
}
|
|
30081
|
-
return null;
|
|
30082
|
-
}
|
|
30083
|
-
return createChainableTypeChecker(validate);
|
|
30084
|
-
}
|
|
30085
|
-
|
|
30086
|
-
function createElementTypeTypeChecker() {
|
|
30087
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30088
|
-
var propValue = props[propName];
|
|
30089
|
-
if (!reactIs$1.isValidElementType(propValue)) {
|
|
30090
|
-
var propType = getPropType(propValue);
|
|
30091
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
30092
|
-
}
|
|
30093
|
-
return null;
|
|
30094
|
-
}
|
|
30095
|
-
return createChainableTypeChecker(validate);
|
|
30096
|
-
}
|
|
30097
|
-
|
|
30098
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
30099
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30100
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
30101
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
30102
|
-
var actualClassName = getClassName(props[propName]);
|
|
30103
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
30104
|
-
}
|
|
30105
|
-
return null;
|
|
30106
|
-
}
|
|
30107
|
-
return createChainableTypeChecker(validate);
|
|
30108
|
-
}
|
|
30109
|
-
|
|
30110
|
-
function createEnumTypeChecker(expectedValues) {
|
|
30111
|
-
if (!Array.isArray(expectedValues)) {
|
|
30112
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
30113
|
-
if (arguments.length > 1) {
|
|
30114
|
-
printWarning$3(
|
|
30115
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
30116
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
30117
|
-
);
|
|
30118
|
-
} else {
|
|
30119
|
-
printWarning$3('Invalid argument supplied to oneOf, expected an array.');
|
|
30120
|
-
}
|
|
30121
|
-
}
|
|
30122
|
-
return emptyFunctionThatReturnsNull$1;
|
|
30123
|
-
}
|
|
30124
|
-
|
|
30125
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30126
|
-
var propValue = props[propName];
|
|
30127
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
30128
|
-
if (is(propValue, expectedValues[i])) {
|
|
30129
|
-
return null;
|
|
30130
|
-
}
|
|
30131
|
-
}
|
|
30132
|
-
|
|
30133
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
30134
|
-
var type = getPreciseType(value);
|
|
30135
|
-
if (type === 'symbol') {
|
|
30136
|
-
return String(value);
|
|
30137
|
-
}
|
|
30138
|
-
return value;
|
|
30139
|
-
});
|
|
30140
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
30141
|
-
}
|
|
30142
|
-
return createChainableTypeChecker(validate);
|
|
30143
|
-
}
|
|
30144
|
-
|
|
30145
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
30146
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30147
|
-
if (typeof typeChecker !== 'function') {
|
|
30148
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
30149
|
-
}
|
|
30150
|
-
var propValue = props[propName];
|
|
30151
|
-
var propType = getPropType(propValue);
|
|
30152
|
-
if (propType !== 'object') {
|
|
30153
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
30154
|
-
}
|
|
30155
|
-
for (var key in propValue) {
|
|
30156
|
-
if (has$2(propValue, key)) {
|
|
30157
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
30158
|
-
if (error instanceof Error) {
|
|
30159
|
-
return error;
|
|
30160
|
-
}
|
|
30161
|
-
}
|
|
30162
|
-
}
|
|
30163
|
-
return null;
|
|
30164
|
-
}
|
|
30165
|
-
return createChainableTypeChecker(validate);
|
|
30166
|
-
}
|
|
30167
|
-
|
|
30168
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
30169
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
30170
|
-
process.env.NODE_ENV !== 'production' ? printWarning$3('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
30171
|
-
return emptyFunctionThatReturnsNull$1;
|
|
30172
|
-
}
|
|
30173
|
-
|
|
30174
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
30175
|
-
var checker = arrayOfTypeCheckers[i];
|
|
30176
|
-
if (typeof checker !== 'function') {
|
|
30177
|
-
printWarning$3(
|
|
30178
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
30179
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
30180
|
-
);
|
|
30181
|
-
return emptyFunctionThatReturnsNull$1;
|
|
30182
|
-
}
|
|
30183
|
-
}
|
|
30184
|
-
|
|
30185
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30186
|
-
var expectedTypes = [];
|
|
30187
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
30188
|
-
var checker = arrayOfTypeCheckers[i];
|
|
30189
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1$1);
|
|
30190
|
-
if (checkerResult == null) {
|
|
30191
|
-
return null;
|
|
30192
|
-
}
|
|
30193
|
-
if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
|
|
30194
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
30195
|
-
}
|
|
30196
|
-
}
|
|
30197
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
30198
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
30199
|
-
}
|
|
30200
|
-
return createChainableTypeChecker(validate);
|
|
30201
|
-
}
|
|
30202
|
-
|
|
30203
|
-
function createNodeChecker() {
|
|
30204
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30205
|
-
if (!isNode(props[propName])) {
|
|
30206
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
30207
|
-
}
|
|
30208
|
-
return null;
|
|
30209
|
-
}
|
|
30210
|
-
return createChainableTypeChecker(validate);
|
|
30211
|
-
}
|
|
30212
|
-
|
|
30213
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
30214
|
-
return new PropTypeError(
|
|
30215
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
30216
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
30217
|
-
);
|
|
30218
|
-
}
|
|
30219
|
-
|
|
30220
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
30221
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30222
|
-
var propValue = props[propName];
|
|
30223
|
-
var propType = getPropType(propValue);
|
|
30224
|
-
if (propType !== 'object') {
|
|
30225
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
30226
|
-
}
|
|
30227
|
-
for (var key in shapeTypes) {
|
|
30228
|
-
var checker = shapeTypes[key];
|
|
30229
|
-
if (typeof checker !== 'function') {
|
|
30230
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
30231
|
-
}
|
|
30232
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
30233
|
-
if (error) {
|
|
30234
|
-
return error;
|
|
30235
|
-
}
|
|
30236
|
-
}
|
|
30237
|
-
return null;
|
|
30238
|
-
}
|
|
30239
|
-
return createChainableTypeChecker(validate);
|
|
30240
|
-
}
|
|
30241
|
-
|
|
30242
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
30243
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
30244
|
-
var propValue = props[propName];
|
|
30245
|
-
var propType = getPropType(propValue);
|
|
30246
|
-
if (propType !== 'object') {
|
|
30247
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
30248
|
-
}
|
|
30249
|
-
// We need to check all keys in case some are required but missing from props.
|
|
30250
|
-
var allKeys = objectAssign$1({}, props[propName], shapeTypes);
|
|
30251
|
-
for (var key in allKeys) {
|
|
30252
|
-
var checker = shapeTypes[key];
|
|
30253
|
-
if (has$2(shapeTypes, key) && typeof checker !== 'function') {
|
|
30254
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
30255
|
-
}
|
|
30256
|
-
if (!checker) {
|
|
30257
|
-
return new PropTypeError(
|
|
30258
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
30259
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
30260
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
30261
|
-
);
|
|
30262
|
-
}
|
|
30263
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
30264
|
-
if (error) {
|
|
30265
|
-
return error;
|
|
30266
|
-
}
|
|
30267
|
-
}
|
|
30268
|
-
return null;
|
|
30269
|
-
}
|
|
30270
|
-
|
|
30271
|
-
return createChainableTypeChecker(validate);
|
|
30272
|
-
}
|
|
30273
|
-
|
|
30274
|
-
function isNode(propValue) {
|
|
30275
|
-
switch (typeof propValue) {
|
|
30276
|
-
case 'number':
|
|
30277
|
-
case 'string':
|
|
30278
|
-
case 'undefined':
|
|
30279
|
-
return true;
|
|
30280
|
-
case 'boolean':
|
|
30281
|
-
return !propValue;
|
|
30282
|
-
case 'object':
|
|
30283
|
-
if (Array.isArray(propValue)) {
|
|
30284
|
-
return propValue.every(isNode);
|
|
30285
|
-
}
|
|
30286
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
30287
|
-
return true;
|
|
30288
|
-
}
|
|
30289
|
-
|
|
30290
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
30291
|
-
if (iteratorFn) {
|
|
30292
|
-
var iterator = iteratorFn.call(propValue);
|
|
30293
|
-
var step;
|
|
30294
|
-
if (iteratorFn !== propValue.entries) {
|
|
30295
|
-
while (!(step = iterator.next()).done) {
|
|
30296
|
-
if (!isNode(step.value)) {
|
|
30297
|
-
return false;
|
|
30298
|
-
}
|
|
30299
|
-
}
|
|
30300
|
-
} else {
|
|
30301
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
30302
|
-
while (!(step = iterator.next()).done) {
|
|
30303
|
-
var entry = step.value;
|
|
30304
|
-
if (entry) {
|
|
30305
|
-
if (!isNode(entry[1])) {
|
|
30306
|
-
return false;
|
|
30307
|
-
}
|
|
30308
|
-
}
|
|
30309
|
-
}
|
|
30310
|
-
}
|
|
30311
|
-
} else {
|
|
30312
|
-
return false;
|
|
30313
|
-
}
|
|
30314
|
-
|
|
30315
|
-
return true;
|
|
30316
|
-
default:
|
|
30317
|
-
return false;
|
|
30318
|
-
}
|
|
30319
|
-
}
|
|
30320
|
-
|
|
30321
|
-
function isSymbol(propType, propValue) {
|
|
30322
|
-
// Native Symbol.
|
|
30323
|
-
if (propType === 'symbol') {
|
|
30324
|
-
return true;
|
|
30325
|
-
}
|
|
30326
|
-
|
|
30327
|
-
// falsy value can't be a Symbol
|
|
30328
|
-
if (!propValue) {
|
|
30329
|
-
return false;
|
|
30330
|
-
}
|
|
30331
|
-
|
|
30332
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
30333
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
30334
|
-
return true;
|
|
30335
|
-
}
|
|
30336
|
-
|
|
30337
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
30338
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
30339
|
-
return true;
|
|
30340
|
-
}
|
|
30341
|
-
|
|
30342
|
-
return false;
|
|
30343
|
-
}
|
|
30344
|
-
|
|
30345
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
30346
|
-
function getPropType(propValue) {
|
|
30347
|
-
var propType = typeof propValue;
|
|
30348
|
-
if (Array.isArray(propValue)) {
|
|
30349
|
-
return 'array';
|
|
30350
|
-
}
|
|
30351
|
-
if (propValue instanceof RegExp) {
|
|
30352
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
30353
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
30354
|
-
// passes PropTypes.object.
|
|
30355
|
-
return 'object';
|
|
30356
|
-
}
|
|
30357
|
-
if (isSymbol(propType, propValue)) {
|
|
30358
|
-
return 'symbol';
|
|
30359
|
-
}
|
|
30360
|
-
return propType;
|
|
30361
|
-
}
|
|
30362
|
-
|
|
30363
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
30364
|
-
// See `createPrimitiveTypeChecker`.
|
|
30365
|
-
function getPreciseType(propValue) {
|
|
30366
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
30367
|
-
return '' + propValue;
|
|
30368
|
-
}
|
|
30369
|
-
var propType = getPropType(propValue);
|
|
30370
|
-
if (propType === 'object') {
|
|
30371
|
-
if (propValue instanceof Date) {
|
|
30372
|
-
return 'date';
|
|
30373
|
-
} else if (propValue instanceof RegExp) {
|
|
30374
|
-
return 'regexp';
|
|
30375
|
-
}
|
|
30376
|
-
}
|
|
30377
|
-
return propType;
|
|
30378
|
-
}
|
|
30379
|
-
|
|
30380
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
30381
|
-
// For example, "undefined" or "of type array"
|
|
30382
|
-
function getPostfixForTypeWarning(value) {
|
|
30383
|
-
var type = getPreciseType(value);
|
|
30384
|
-
switch (type) {
|
|
30385
|
-
case 'array':
|
|
30386
|
-
case 'object':
|
|
30387
|
-
return 'an ' + type;
|
|
30388
|
-
case 'boolean':
|
|
30389
|
-
case 'date':
|
|
30390
|
-
case 'regexp':
|
|
30391
|
-
return 'a ' + type;
|
|
30392
|
-
default:
|
|
30393
|
-
return type;
|
|
30394
|
-
}
|
|
30395
|
-
}
|
|
30396
|
-
|
|
30397
|
-
// Returns class name of the object, if any.
|
|
30398
|
-
function getClassName(propValue) {
|
|
30399
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
30400
|
-
return ANONYMOUS;
|
|
30401
|
-
}
|
|
30402
|
-
return propValue.constructor.name;
|
|
30403
|
-
}
|
|
30404
|
-
|
|
30405
|
-
ReactPropTypes.checkPropTypes = checkPropTypes_1$1;
|
|
30406
|
-
ReactPropTypes.resetWarningCache = checkPropTypes_1$1.resetWarningCache;
|
|
30407
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
30408
|
-
|
|
30409
|
-
return ReactPropTypes;
|
|
30410
|
-
};
|
|
30411
|
-
|
|
30412
|
-
function emptyFunction$1() {}
|
|
30413
|
-
function emptyFunctionWithReset$1() {}
|
|
30414
|
-
emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
|
|
30415
|
-
|
|
30416
|
-
var factoryWithThrowingShims$1 = function() {
|
|
30417
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
30418
|
-
if (secret === ReactPropTypesSecret_1$1) {
|
|
30419
|
-
// It is still safe when called from React.
|
|
30420
|
-
return;
|
|
30421
|
-
}
|
|
30422
|
-
var err = new Error(
|
|
30423
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
30424
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
30425
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
30426
|
-
);
|
|
30427
|
-
err.name = 'Invariant Violation';
|
|
30428
|
-
throw err;
|
|
30429
|
-
} shim.isRequired = shim;
|
|
30430
|
-
function getShim() {
|
|
30431
|
-
return shim;
|
|
30432
|
-
} // Important!
|
|
30433
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
30434
|
-
var ReactPropTypes = {
|
|
30435
|
-
array: shim,
|
|
30436
|
-
bigint: shim,
|
|
30437
|
-
bool: shim,
|
|
30438
|
-
func: shim,
|
|
30439
|
-
number: shim,
|
|
30440
|
-
object: shim,
|
|
30441
|
-
string: shim,
|
|
30442
|
-
symbol: shim,
|
|
30443
|
-
|
|
30444
|
-
any: shim,
|
|
30445
|
-
arrayOf: getShim,
|
|
30446
|
-
element: shim,
|
|
30447
|
-
elementType: shim,
|
|
30448
|
-
instanceOf: getShim,
|
|
30449
|
-
node: shim,
|
|
30450
|
-
objectOf: getShim,
|
|
30451
|
-
oneOf: getShim,
|
|
30452
|
-
oneOfType: getShim,
|
|
30453
|
-
shape: getShim,
|
|
30454
|
-
exact: getShim,
|
|
30455
|
-
|
|
30456
|
-
checkPropTypes: emptyFunctionWithReset$1,
|
|
30457
|
-
resetWarningCache: emptyFunction$1
|
|
30458
|
-
};
|
|
30459
|
-
|
|
30460
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
30461
|
-
|
|
30462
|
-
return ReactPropTypes;
|
|
30463
|
-
};
|
|
30464
|
-
|
|
30465
|
-
var propTypes$1 = createCommonjsModule(function (module) {
|
|
30466
|
-
/**
|
|
30467
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
30468
|
-
*
|
|
30469
|
-
* This source code is licensed under the MIT license found in the
|
|
30470
|
-
* LICENSE file in the root directory of this source tree.
|
|
30471
|
-
*/
|
|
30472
|
-
|
|
30473
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
30474
|
-
var ReactIs = reactIs$1;
|
|
30475
|
-
|
|
30476
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
30477
|
-
// http://fb.me/prop-types-in-prod
|
|
30478
|
-
var throwOnDirectAccess = true;
|
|
30479
|
-
module.exports = factoryWithTypeCheckers$1(ReactIs.isElement, throwOnDirectAccess);
|
|
30480
|
-
} else {
|
|
30481
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
30482
|
-
// http://fb.me/prop-types-in-prod
|
|
30483
|
-
module.exports = factoryWithThrowingShims$1();
|
|
30484
|
-
}
|
|
30485
|
-
});
|
|
30486
|
-
|
|
30487
29721
|
const SearchConnection = _ref => {
|
|
30488
29722
|
var _Digit$Hooks$ws$usews;
|
|
30489
29723
|
let {
|
|
@@ -30885,7 +30119,7 @@ const SearchConnection = _ref => {
|
|
|
30885
30119
|
}));
|
|
30886
30120
|
};
|
|
30887
30121
|
SearchConnection.propTypes = {
|
|
30888
|
-
loginParams: propTypes
|
|
30122
|
+
loginParams: propTypes.any
|
|
30889
30123
|
};
|
|
30890
30124
|
SearchConnection.defaultProps = {
|
|
30891
30125
|
loginParams: null
|
|
@@ -31861,9 +31095,9 @@ const ChallanSearchResults = _ref => {
|
|
|
31861
31095
|
}, t("WS_CLICK_HERE_TO_APPLY"))))));
|
|
31862
31096
|
};
|
|
31863
31097
|
ChallanSearchResults.propTypes = {
|
|
31864
|
-
template: propTypes
|
|
31865
|
-
header: propTypes
|
|
31866
|
-
actionButtonLabel: propTypes
|
|
31098
|
+
template: propTypes.any,
|
|
31099
|
+
header: propTypes.string,
|
|
31100
|
+
actionButtonLabel: propTypes.string
|
|
31867
31101
|
};
|
|
31868
31102
|
ChallanSearchResults.defaultProps = {
|
|
31869
31103
|
template: [],
|
|
@@ -32385,7 +31619,7 @@ const WSWFApplicationTimeline = props => {
|
|
|
32385
31619
|
};
|
|
32386
31620
|
if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
32387
31621
|
const visibleTimeline = data !== null && data !== void 0 && data.timeline ? data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2) : [];
|
|
32388
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
31622
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, !isLoading && /*#__PURE__*/React.createElement("div", {
|
|
32389
31623
|
style: {
|
|
32390
31624
|
fontFamily: "'Inter', system-ui, sans-serif"
|
|
32391
31625
|
}
|
|
@@ -32875,7 +32109,7 @@ const WSFeeEstimation = _ref => {
|
|
|
32875
32109
|
}
|
|
32876
32110
|
setFields(values);
|
|
32877
32111
|
};
|
|
32878
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
32112
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
32879
32113
|
style: {
|
|
32880
32114
|
lineHeight: "19px",
|
|
32881
32115
|
maxWidth: "100%",
|
|
@@ -33391,7 +32625,7 @@ const ViewBreakup = _ref => {
|
|
|
33391
32625
|
value: infrastructureChargeDetail.netIFC,
|
|
33392
32626
|
currency: true
|
|
33393
32627
|
}] : [];
|
|
33394
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
32628
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
33395
32629
|
style: {
|
|
33396
32630
|
lineHeight: "19px",
|
|
33397
32631
|
maxWidth: "950px",
|
|
@@ -33474,19 +32708,19 @@ const ViewBreakup = _ref => {
|
|
|
33474
32708
|
textStyle: {
|
|
33475
32709
|
textAlign: "right"
|
|
33476
32710
|
}
|
|
33477
|
-
})), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$
|
|
32711
|
+
})), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
33478
32712
|
style: {
|
|
33479
32713
|
margin: "10px 0px"
|
|
33480
32714
|
}
|
|
33481
32715
|
}, t("WS_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(DetailRows, {
|
|
33482
32716
|
rows: propertyRows
|
|
33483
|
-
})), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$
|
|
32717
|
+
})), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
33484
32718
|
style: {
|
|
33485
32719
|
margin: "10px 0px"
|
|
33486
32720
|
}
|
|
33487
32721
|
}, t("WS_WATER_DEMAND_DETAILS")), /*#__PURE__*/React.createElement(DetailRows, {
|
|
33488
32722
|
rows: waterDemandRows
|
|
33489
|
-
})), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$
|
|
32723
|
+
})), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
33490
32724
|
style: {
|
|
33491
32725
|
margin: "10px 0px"
|
|
33492
32726
|
}
|
|
@@ -38802,9 +38036,9 @@ const WNSMyBills = _ref => {
|
|
|
38802
38036
|
}, t("CS_BILLS_TEXT_NO_BILLS_FOUND")));
|
|
38803
38037
|
};
|
|
38804
38038
|
WNSMyBills.propTypes = {
|
|
38805
|
-
template: propTypes
|
|
38806
|
-
header: propTypes
|
|
38807
|
-
actionButtonLabel: propTypes
|
|
38039
|
+
template: propTypes.any,
|
|
38040
|
+
header: propTypes.string,
|
|
38041
|
+
actionButtonLabel: propTypes.string
|
|
38808
38042
|
};
|
|
38809
38043
|
WNSMyBills.defaultProps = {
|
|
38810
38044
|
template: [],
|
|
@@ -38866,6 +38100,15 @@ const WSInfoPage = () => {
|
|
|
38866
38100
|
const [isOtpSending, setIsOtpSending] = useState(false);
|
|
38867
38101
|
const [isOtpVerifying, setIsOtpVerifying] = useState(false);
|
|
38868
38102
|
const [showToast, setShowToast] = useState(null);
|
|
38103
|
+
const [isMobileVerified, setIsMobileVerified] = useState(false);
|
|
38104
|
+
const [timeLeft, setTimeLeft] = useState(0);
|
|
38105
|
+
useEffect(() => {
|
|
38106
|
+
let timer;
|
|
38107
|
+
if (timeLeft > 0) {
|
|
38108
|
+
timer = setTimeout(() => setTimeLeft(timeLeft - 1), 1000);
|
|
38109
|
+
}
|
|
38110
|
+
return () => clearTimeout(timer);
|
|
38111
|
+
}, [timeLeft]);
|
|
38869
38112
|
useEffect(() => {
|
|
38870
38113
|
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
38871
38114
|
}, []);
|
|
@@ -38884,7 +38127,7 @@ const WSInfoPage = () => {
|
|
|
38884
38127
|
mobileNumber: mobileNumberToSearch
|
|
38885
38128
|
},
|
|
38886
38129
|
tenantId: tenantId,
|
|
38887
|
-
enabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && (mobileNumberToSearch === null || mobileNumberToSearch === void 0 ? void 0 : mobileNumberToSearch.length) === 10 ? true : false
|
|
38130
|
+
enabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && (mobileNumberToSearch === null || mobileNumberToSearch === void 0 ? void 0 : mobileNumberToSearch.length) === 10 && isMobileVerified ? true : false
|
|
38888
38131
|
});
|
|
38889
38132
|
const radioOptions = [{
|
|
38890
38133
|
code: "YES",
|
|
@@ -38935,7 +38178,7 @@ const WSInfoPage = () => {
|
|
|
38935
38178
|
setIsOtpSending(false);
|
|
38936
38179
|
setShowToast({
|
|
38937
38180
|
key: "error",
|
|
38938
|
-
message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$fields = errObj.fields) === null || _errObj$fields === void 0 ? void 0 : (_errObj$fields$ = _errObj$fields[0]) === null || _errObj$fields$ === void 0 ? void 0 : _errObj$fields$.message) || (errObj === null || errObj === void 0 ? void 0 : errObj.message) || "Failed to send OTP"
|
|
38181
|
+
message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$fields = errObj.fields) === null || _errObj$fields === void 0 ? void 0 : (_errObj$fields$ = _errObj$fields[0]) === null || _errObj$fields$ === void 0 ? void 0 : _errObj$fields$.message) || (errObj === null || errObj === void 0 ? void 0 : errObj.message) || t("WS_FAILED_TO_SEND_OTP") || "Failed to send OTP"
|
|
38939
38182
|
});
|
|
38940
38183
|
return;
|
|
38941
38184
|
}
|
|
@@ -38945,21 +38188,22 @@ const WSInfoPage = () => {
|
|
|
38945
38188
|
setIsOtpSending(false);
|
|
38946
38189
|
setShowToast({
|
|
38947
38190
|
key: "error",
|
|
38948
|
-
message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$ = errObj[0]) === null || _errObj$ === void 0 ? void 0 : _errObj$.message) || "Failed to send OTP"
|
|
38191
|
+
message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$ = errObj[0]) === null || _errObj$ === void 0 ? void 0 : _errObj$.message) || t("WS_FAILED_TO_SEND_OTP") || "Failed to send OTP"
|
|
38949
38192
|
});
|
|
38950
38193
|
return;
|
|
38951
38194
|
}
|
|
38952
38195
|
setIsOtpSending(false);
|
|
38953
38196
|
setShowOtpVerification(true);
|
|
38197
|
+
setTimeLeft(30);
|
|
38954
38198
|
setShowToast({
|
|
38955
38199
|
key: "success",
|
|
38956
|
-
message: "OTP sent successfully!"
|
|
38200
|
+
message: t("PT_SEC_OTP_SENT_SUCEESS") || "OTP sent successfully!"
|
|
38957
38201
|
});
|
|
38958
38202
|
});
|
|
38959
38203
|
}, function (err) {
|
|
38960
38204
|
var _err$response, _err$response$data, _err$response2, _err$response2$data;
|
|
38961
38205
|
setIsOtpSending(false);
|
|
38962
|
-
let errMsg = "Failed to send OTP";
|
|
38206
|
+
let errMsg = t("WS_FAILED_TO_SEND_OTP") || "Failed to send OTP";
|
|
38963
38207
|
if (err !== null && err !== void 0 && (_err$response = err.response) !== null && _err$response !== void 0 && (_err$response$data = _err$response.data) !== null && _err$response$data !== void 0 && _err$response$data.error) {
|
|
38964
38208
|
var _err$response$data$er, _err$response$data$er2, _err$response$data$er3, _err$response$data$er4;
|
|
38965
38209
|
errMsg = ((_err$response$data$er = err.response.data.error) === null || _err$response$data$er === void 0 ? void 0 : (_err$response$data$er2 = _err$response$data$er.fields) === null || _err$response$data$er2 === void 0 ? void 0 : (_err$response$data$er3 = _err$response$data$er2[0]) === null || _err$response$data$er3 === void 0 ? void 0 : _err$response$data$er3.message) || ((_err$response$data$er4 = err.response.data.error) === null || _err$response$data$er4 === void 0 ? void 0 : _err$response$data$er4.message) || errMsg;
|
|
@@ -38987,7 +38231,7 @@ const WSInfoPage = () => {
|
|
|
38987
38231
|
if (!otp || otp.length < 6) {
|
|
38988
38232
|
setShowToast({
|
|
38989
38233
|
key: "warning",
|
|
38990
|
-
message: "Please enter a valid 6-digit OTP"
|
|
38234
|
+
message: t("WS_PLEASE_ENTER_VALID_OTP") || "Please enter a valid 6-digit OTP"
|
|
38991
38235
|
});
|
|
38992
38236
|
return Promise.resolve();
|
|
38993
38237
|
}
|
|
@@ -39018,14 +38262,15 @@ const WSInfoPage = () => {
|
|
|
39018
38262
|
setIsOtpVerifying(false);
|
|
39019
38263
|
setShowToast({
|
|
39020
38264
|
key: "success",
|
|
39021
|
-
message: "OTP verified successfully!"
|
|
38265
|
+
message: t("WS_OTP_VERIFIED_SUCCESSFULLY") || "OTP verified successfully!"
|
|
39022
38266
|
});
|
|
39023
|
-
|
|
38267
|
+
setShowOtpVerification(false);
|
|
38268
|
+
setIsMobileVerified(true);
|
|
39024
38269
|
});
|
|
39025
38270
|
}, function (err) {
|
|
39026
38271
|
var _err$response3, _err$response3$data, _err$response4, _err$response4$data;
|
|
39027
38272
|
setIsOtpVerifying(false);
|
|
39028
|
-
let errMsg = err.message || "Failed to verify OTP";
|
|
38273
|
+
let errMsg = err.message || t("WS_FAILED_TO_VERIFY_OTP") || "Failed to verify OTP";
|
|
39029
38274
|
if (err !== null && err !== void 0 && (_err$response3 = err.response) !== null && _err$response3 !== void 0 && (_err$response3$data = _err$response3.data) !== null && _err$response3$data !== void 0 && _err$response3$data.error) {
|
|
39030
38275
|
var _err$response$data$er5, _err$response$data$er6, _err$response$data$er7, _err$response$data$er8;
|
|
39031
38276
|
errMsg = ((_err$response$data$er5 = err.response.data.error) === null || _err$response$data$er5 === void 0 ? void 0 : (_err$response$data$er6 = _err$response$data$er5.fields) === null || _err$response$data$er6 === void 0 ? void 0 : (_err$response$data$er7 = _err$response$data$er6[0]) === null || _err$response$data$er7 === void 0 ? void 0 : _err$response$data$er7.message) || ((_err$response$data$er8 = err.response.data.error) === null || _err$response$data$er8 === void 0 ? void 0 : _err$response$data$er8.message) || errMsg;
|
|
@@ -39050,7 +38295,14 @@ const WSInfoPage = () => {
|
|
|
39050
38295
|
if (e.stopPropagation) e.stopPropagation();
|
|
39051
38296
|
}
|
|
39052
38297
|
if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
|
|
39053
|
-
|
|
38298
|
+
if (!isMobileVerified) {
|
|
38299
|
+
setShowToast({
|
|
38300
|
+
key: "warning",
|
|
38301
|
+
message: t("WS_PLEASE_VERIFY_MOBILE_NUMBER") || "Please verify mobile number first"
|
|
38302
|
+
});
|
|
38303
|
+
return;
|
|
38304
|
+
}
|
|
38305
|
+
proceedToNext();
|
|
39054
38306
|
} else if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty) {
|
|
39055
38307
|
return;
|
|
39056
38308
|
} else {
|
|
@@ -39065,72 +38317,6 @@ const WSInfoPage = () => {
|
|
|
39065
38317
|
...prop,
|
|
39066
38318
|
displayName: `${prop.propertyId} - ${getAddress$1(prop.address, t)}`
|
|
39067
38319
|
}))) || [];
|
|
39068
|
-
if (showOtpVerification) {
|
|
39069
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("form", {
|
|
39070
|
-
onSubmit: handleVerifyOtp
|
|
39071
|
-
}, /*#__PURE__*/React.createElement(CardHeader, null, t("WS_VERIFY_OTP_HEADER") || "Verify OTP"), /*#__PURE__*/React.createElement("div", {
|
|
39072
|
-
style: {
|
|
39073
|
-
marginBottom: "24px"
|
|
39074
|
-
}
|
|
39075
|
-
}, /*#__PURE__*/React.createElement(Label, null, t("WS_ENTER_OTP_SENT_TO") || "Enter OTP sent to", " +91 ", getMaskedPhone(mobileNumberToSearch), " *"), /*#__PURE__*/React.createElement(TextInput, {
|
|
39076
|
-
t: t,
|
|
39077
|
-
type: "text",
|
|
39078
|
-
inputMode: "numeric",
|
|
39079
|
-
pattern: "[0-9]*",
|
|
39080
|
-
isMandatory: false,
|
|
39081
|
-
value: otp,
|
|
39082
|
-
maxLength: 6,
|
|
39083
|
-
onChange: e => setOtp(e.target.value.replace(/\D/g, "").slice(0, 6)),
|
|
39084
|
-
onKeyDown: e => {
|
|
39085
|
-
if (["-", "+", "e", "E", "."].includes(e.key)) e.preventDefault();
|
|
39086
|
-
},
|
|
39087
|
-
placeholder: t("WS_ENTER_6_DIGIT_OTP") || "Enter 6-digit OTP",
|
|
39088
|
-
style: {
|
|
39089
|
-
width: "100%",
|
|
39090
|
-
maxWidth: "300px"
|
|
39091
|
-
}
|
|
39092
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
39093
|
-
style: {
|
|
39094
|
-
display: "flex",
|
|
39095
|
-
gap: "16px",
|
|
39096
|
-
marginBottom: "24px"
|
|
39097
|
-
}
|
|
39098
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
39099
|
-
type: "button",
|
|
39100
|
-
onClick: handleSendOtp,
|
|
39101
|
-
disabled: isOtpSending,
|
|
39102
|
-
style: {
|
|
39103
|
-
color: "#f47738",
|
|
39104
|
-
background: "none",
|
|
39105
|
-
border: "none",
|
|
39106
|
-
cursor: "pointer",
|
|
39107
|
-
fontWeight: "bold",
|
|
39108
|
-
textDecoration: "underline"
|
|
39109
|
-
}
|
|
39110
|
-
}, isOtpSending ? t("WS_SENDING_OTP") || "Sending..." : t("WS_RESEND_OTP") || "Resend OTP"), /*#__PURE__*/React.createElement("button", {
|
|
39111
|
-
type: "button",
|
|
39112
|
-
onClick: () => setShowOtpVerification(false),
|
|
39113
|
-
style: {
|
|
39114
|
-
color: "#f47738",
|
|
39115
|
-
background: "none",
|
|
39116
|
-
border: "none",
|
|
39117
|
-
cursor: "pointer",
|
|
39118
|
-
fontWeight: "bold",
|
|
39119
|
-
textDecoration: "underline"
|
|
39120
|
-
}
|
|
39121
|
-
}, t("CS_COMMON_CANCEL") || "Cancel")), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
39122
|
-
label: t("WS_VERIFY_OTP_AND_PROCEED") || "Verify & Proceed",
|
|
39123
|
-
onSubmit: handleVerifyOtp,
|
|
39124
|
-
disabled: otp.length < 6 || isOtpVerifying,
|
|
39125
|
-
submit: true
|
|
39126
|
-
}))), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
39127
|
-
error: showToast.key === "error",
|
|
39128
|
-
warning: showToast.key === "warning",
|
|
39129
|
-
label: t(showToast.message),
|
|
39130
|
-
onClose: () => setShowToast(null),
|
|
39131
|
-
isDleteBtn: true
|
|
39132
|
-
}));
|
|
39133
|
-
}
|
|
39134
38320
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t("WS_COMMON_APPL_NEW_CONNECTION")), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
|
|
39135
38321
|
style: {
|
|
39136
38322
|
margin: "0px",
|
|
@@ -39162,30 +38348,7 @@ const WSInfoPage = () => {
|
|
|
39162
38348
|
display: "flex",
|
|
39163
38349
|
gap: "24px"
|
|
39164
38350
|
}
|
|
39165
|
-
})), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && /*#__PURE__*/React.createElement("div", {
|
|
39166
|
-
style: {
|
|
39167
|
-
marginBottom: "24px"
|
|
39168
|
-
}
|
|
39169
|
-
}, !isEmployee && /*#__PURE__*/React.createElement("div", {
|
|
39170
|
-
style: {
|
|
39171
|
-
marginBottom: "16px"
|
|
39172
|
-
}
|
|
39173
|
-
}, /*#__PURE__*/React.createElement(Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, {
|
|
39174
|
-
t: t,
|
|
39175
|
-
type: "number",
|
|
39176
|
-
isMandatory: false,
|
|
39177
|
-
name: "mobileNumber",
|
|
39178
|
-
value: searchMobileNumber,
|
|
39179
|
-
onChange: e => {
|
|
39180
|
-
const val = e.target.value.replace(/\D/g, "").slice(0, 10);
|
|
39181
|
-
setSearchMobileNumber(val);
|
|
39182
|
-
setSelectedProperty(null);
|
|
39183
|
-
setShowOtpVerification(false);
|
|
39184
|
-
setOtp("");
|
|
39185
|
-
},
|
|
39186
|
-
placeholder: t("Enter mobile number"),
|
|
39187
|
-
maxLength: 10
|
|
39188
|
-
})), isEmployee && /*#__PURE__*/React.createElement("div", {
|
|
38351
|
+
})), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
39189
38352
|
style: {
|
|
39190
38353
|
display: "flex",
|
|
39191
38354
|
flexDirection: "column",
|
|
@@ -39194,39 +38357,59 @@ const WSInfoPage = () => {
|
|
|
39194
38357
|
}
|
|
39195
38358
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39196
38359
|
style: {
|
|
39197
|
-
display: "
|
|
38360
|
+
display: "grid",
|
|
38361
|
+
gridTemplateColumns: "1fr 1fr",
|
|
39198
38362
|
gap: "24px",
|
|
39199
|
-
alignItems: "
|
|
38363
|
+
alignItems: "start"
|
|
38364
|
+
}
|
|
38365
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React.createElement("div", {
|
|
38366
|
+
style: {
|
|
38367
|
+
display: "flex",
|
|
38368
|
+
gap: "16px",
|
|
38369
|
+
alignItems: "center"
|
|
39200
38370
|
}
|
|
39201
38371
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39202
38372
|
style: {
|
|
39203
38373
|
flex: 1
|
|
39204
38374
|
}
|
|
39205
|
-
}, /*#__PURE__*/React.createElement(
|
|
38375
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
39206
38376
|
t: t,
|
|
39207
38377
|
type: "number",
|
|
39208
38378
|
isMandatory: false,
|
|
39209
38379
|
name: "mobileNumber",
|
|
39210
38380
|
value: searchMobileNumber,
|
|
39211
38381
|
onChange: e => {
|
|
39212
|
-
const val = e.target.value;
|
|
39213
|
-
|
|
39214
|
-
|
|
39215
|
-
|
|
39216
|
-
|
|
39217
|
-
|
|
39218
|
-
}
|
|
38382
|
+
const val = e.target.value.replace(/\D/g, "").slice(0, 10);
|
|
38383
|
+
setSearchMobileNumber(val);
|
|
38384
|
+
setSelectedProperty(null);
|
|
38385
|
+
setShowOtpVerification(false);
|
|
38386
|
+
setOtp("");
|
|
38387
|
+
setIsMobileVerified(false);
|
|
39219
38388
|
},
|
|
39220
|
-
placeholder: t("Enter mobile number"
|
|
39221
|
-
maxLength: 10
|
|
39222
|
-
|
|
38389
|
+
placeholder: t("WS_ENTER_MOBILE_NUMBER") || "Enter mobile number",
|
|
38390
|
+
maxLength: 10,
|
|
38391
|
+
disabled: isMobileVerified
|
|
38392
|
+
})), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && !isMobileVerified && !showOtpVerification && /*#__PURE__*/React.createElement("button", {
|
|
38393
|
+
type: "button",
|
|
38394
|
+
onClick: handleSendOtp,
|
|
38395
|
+
disabled: isOtpSending,
|
|
39223
38396
|
style: {
|
|
39224
|
-
|
|
38397
|
+
padding: "8px 16px",
|
|
38398
|
+
border: "1px solid #1a67a3",
|
|
38399
|
+
background: "white",
|
|
38400
|
+
color: "#1a67a3",
|
|
38401
|
+
borderRadius: "4px",
|
|
38402
|
+
cursor: "pointer",
|
|
38403
|
+
fontWeight: "bold",
|
|
38404
|
+
whiteSpace: "nowrap"
|
|
38405
|
+
}
|
|
38406
|
+
}, isOtpSending ? t("WS_SENDING_OTP") || "Sending..." : t("PTUPNO_SENDOTP") || "Send OTP"))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Label, null, t("WS_SELECT_EXISTING_PROPERTY")), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
|
|
38407
|
+
style: {
|
|
38408
|
+
display: "flex",
|
|
38409
|
+
flexDirection: "column",
|
|
38410
|
+
gap: "8px"
|
|
39225
38411
|
}
|
|
39226
|
-
}, /*#__PURE__*/React.createElement(Label, null, t("WS_SELECT_EXISTING_PROPERTY")), /*#__PURE__*/React.createElement("div", {
|
|
39227
|
-
className: "field"
|
|
39228
38412
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
39229
|
-
className: "form-field",
|
|
39230
38413
|
option: propertyOptions,
|
|
39231
38414
|
optionKey: "displayName",
|
|
39232
38415
|
id: "propertyId",
|
|
@@ -39238,51 +38421,125 @@ const WSInfoPage = () => {
|
|
|
39238
38421
|
},
|
|
39239
38422
|
t: t,
|
|
39240
38423
|
placeholder: t("PT_SELECT_PROPERTY"),
|
|
39241
|
-
disable:
|
|
39242
|
-
})
|
|
38424
|
+
disable: !isMobileVerified || propertyOptions.length === 0
|
|
38425
|
+
}), propertyOptions.length > 0 && /*#__PURE__*/React.createElement("span", {
|
|
38426
|
+
style: {
|
|
38427
|
+
fontSize: "14px",
|
|
38428
|
+
color: "#505A5F"
|
|
38429
|
+
}
|
|
38430
|
+
}, t("WS_PROPERTY_AUTOFILL_MSG"))))), showOtpVerification && !isMobileVerified && /*#__PURE__*/React.createElement("div", {
|
|
38431
|
+
style: {
|
|
38432
|
+
border: "1px solid #d6d5d4",
|
|
38433
|
+
borderRadius: "4px",
|
|
38434
|
+
background: "#f8f9fa",
|
|
38435
|
+
padding: "12px"
|
|
38436
|
+
}
|
|
38437
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
38438
|
+
style: {
|
|
38439
|
+
fontWeight: "bold",
|
|
38440
|
+
fontSize: "18px",
|
|
38441
|
+
marginBottom: "8px"
|
|
38442
|
+
}
|
|
38443
|
+
}, t("WS_VERIFY_OTP_HEADER") || "OTP Verification"), /*#__PURE__*/React.createElement("div", {
|
|
38444
|
+
style: {
|
|
38445
|
+
color: "#505A5F",
|
|
38446
|
+
marginBottom: "16px"
|
|
38447
|
+
}
|
|
38448
|
+
}, t("WS_ENTER_OTP_SENT_TO") || "Enter the 6-digit OTP sent to", " ", getMaskedPhone(searchMobileNumber)), /*#__PURE__*/React.createElement("div", {
|
|
39243
38449
|
style: {
|
|
39244
38450
|
display: "flex",
|
|
39245
|
-
|
|
39246
|
-
gap: "
|
|
38451
|
+
flexWrap: "wrap",
|
|
38452
|
+
gap: "15px",
|
|
38453
|
+
alignItems: "center"
|
|
39247
38454
|
}
|
|
39248
|
-
}, /*#__PURE__*/React.createElement(
|
|
38455
|
+
}, /*#__PURE__*/React.createElement(OTPInput, {
|
|
39249
38456
|
style: {
|
|
39250
|
-
|
|
38457
|
+
marginBottom: "0px"
|
|
38458
|
+
},
|
|
38459
|
+
length: 6,
|
|
38460
|
+
onChange: setOtp,
|
|
38461
|
+
value: otp
|
|
38462
|
+
}), /*#__PURE__*/React.createElement("button", {
|
|
38463
|
+
type: "button",
|
|
38464
|
+
onClick: handleVerifyOtp,
|
|
38465
|
+
disabled: otp.length < 6 || isOtpVerifying,
|
|
38466
|
+
style: {
|
|
38467
|
+
padding: "6px 20px",
|
|
38468
|
+
background: otp.length < 6 || isOtpVerifying ? "#ccc" : "#1a67a3",
|
|
38469
|
+
color: "white",
|
|
38470
|
+
border: "none",
|
|
38471
|
+
borderRadius: "4px",
|
|
38472
|
+
cursor: otp.length < 6 || isOtpVerifying ? "not-allowed" : "pointer",
|
|
39251
38473
|
fontWeight: "bold"
|
|
39252
38474
|
}
|
|
39253
|
-
}, t("
|
|
39254
|
-
onClick: handleCreateProperty
|
|
39255
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
39256
|
-
className: "submit-bar",
|
|
38475
|
+
}, isOtpVerifying ? t("WS_VERIFYING_OTP") || "Verifying..." : t("WS_VERIFY_OTP_AND_PROCEED") || "Verify OTP"), /*#__PURE__*/React.createElement("button", {
|
|
39257
38476
|
type: "button",
|
|
38477
|
+
onClick: handleSendOtp,
|
|
38478
|
+
disabled: timeLeft > 0 || isOtpSending,
|
|
39258
38479
|
style: {
|
|
39259
|
-
|
|
39260
|
-
|
|
38480
|
+
padding: "6px 20px",
|
|
38481
|
+
background: "white",
|
|
38482
|
+
color: timeLeft > 0 || isOtpSending ? "#ccc" : "#1a67a3",
|
|
38483
|
+
border: `1px solid ${timeLeft > 0 || isOtpSending ? "#ccc" : "#1a67a3"}`,
|
|
38484
|
+
borderRadius: "4px",
|
|
38485
|
+
cursor: timeLeft > 0 || isOtpSending ? "not-allowed" : "pointer",
|
|
38486
|
+
fontWeight: "bold"
|
|
39261
38487
|
}
|
|
39262
|
-
}, t("
|
|
38488
|
+
}, timeLeft > 0 ? `${t("WS_RESEND_OTP") || "Resend OTP"} (00:${timeLeft < 10 ? `0${timeLeft}` : timeLeft})` : t("WS_RESEND_OTP") || "Resend OTP")), timeLeft > 0 && /*#__PURE__*/React.createElement("div", {
|
|
38489
|
+
style: {
|
|
38490
|
+
marginTop: "12px",
|
|
38491
|
+
color: "#505A5F",
|
|
38492
|
+
fontSize: "14px"
|
|
38493
|
+
}
|
|
38494
|
+
}, t("WS_DIDNT_RECEIVE_OTP_RESEND") || "Didn't receive OTP? You can resend after", " ", timeLeft, " ", t("WS_SECONDS") || "seconds", ".")), isMobileVerified && /*#__PURE__*/React.createElement("div", {
|
|
39263
38495
|
style: {
|
|
39264
38496
|
display: "flex",
|
|
39265
|
-
|
|
38497
|
+
justifyContent: "space-between",
|
|
38498
|
+
alignItems: "center",
|
|
38499
|
+
background: "#d4edda",
|
|
38500
|
+
border: "1px solid #c3e6cb",
|
|
38501
|
+
color: "#155724",
|
|
38502
|
+
padding: "12px 16px",
|
|
38503
|
+
borderRadius: "4px"
|
|
38504
|
+
}
|
|
38505
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
38506
|
+
style: {
|
|
38507
|
+
display: "flex",
|
|
38508
|
+
alignItems: "center",
|
|
39266
38509
|
gap: "8px"
|
|
39267
38510
|
}
|
|
39268
|
-
}, /*#__PURE__*/React.createElement(
|
|
39269
|
-
|
|
39270
|
-
|
|
39271
|
-
|
|
39272
|
-
|
|
39273
|
-
|
|
39274
|
-
|
|
39275
|
-
|
|
38511
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
38512
|
+
style: {
|
|
38513
|
+
background: "#28a745",
|
|
38514
|
+
color: "white",
|
|
38515
|
+
borderRadius: "50%",
|
|
38516
|
+
width: "24px",
|
|
38517
|
+
height: "24px",
|
|
38518
|
+
display: "inline-flex",
|
|
38519
|
+
justifyContent: "center",
|
|
38520
|
+
alignItems: "center",
|
|
38521
|
+
fontWeight: "bold"
|
|
38522
|
+
}
|
|
38523
|
+
}, "\u2713"), /*#__PURE__*/React.createElement("span", {
|
|
38524
|
+
style: {
|
|
38525
|
+
fontWeight: "bold"
|
|
38526
|
+
}
|
|
38527
|
+
}, t("WS_MOBILE_VERIFIED_SUCCESSFULLY") || "Mobile number verified successfully!")), /*#__PURE__*/React.createElement("button", {
|
|
38528
|
+
type: "button",
|
|
38529
|
+
onClick: () => {
|
|
38530
|
+
setIsMobileVerified(false);
|
|
39276
38531
|
setOtp("");
|
|
38532
|
+
setShowOtpVerification(false);
|
|
39277
38533
|
},
|
|
39278
|
-
t: t,
|
|
39279
|
-
placeholder: t("PT_SELECT_PROPERTY")
|
|
39280
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
39281
38534
|
style: {
|
|
39282
|
-
|
|
39283
|
-
|
|
38535
|
+
color: "#1a67a3",
|
|
38536
|
+
background: "none",
|
|
38537
|
+
border: "none",
|
|
38538
|
+
cursor: "pointer",
|
|
38539
|
+
fontWeight: "bold",
|
|
38540
|
+
textDecoration: "underline"
|
|
39284
38541
|
}
|
|
39285
|
-
}, t("
|
|
38542
|
+
}, t("WS_CHANGE_NUMBER") || "Change Number")), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && isMobileVerified && !isLoading && propertyOptions.length === 0 && /*#__PURE__*/React.createElement("div", {
|
|
39286
38543
|
style: {
|
|
39287
38544
|
display: "flex",
|
|
39288
38545
|
flexDirection: "column",
|
|
@@ -39303,7 +38560,7 @@ const WSInfoPage = () => {
|
|
|
39303
38560
|
color: "white",
|
|
39304
38561
|
margin: 0
|
|
39305
38562
|
}
|
|
39306
|
-
}, t("CPT_CREATE_PROPERTY"))))
|
|
38563
|
+
}, t("CPT_CREATE_PROPERTY")))))), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" && /*#__PURE__*/React.createElement("div", {
|
|
39307
38564
|
style: {
|
|
39308
38565
|
marginBottom: "24px",
|
|
39309
38566
|
display: "flex",
|
|
@@ -39319,7 +38576,7 @@ const WSInfoPage = () => {
|
|
|
39319
38576
|
color: "white",
|
|
39320
38577
|
margin: 0
|
|
39321
38578
|
}
|
|
39322
|
-
}, t("CPT_CREATE_PROPERTY")))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
38579
|
+
}, t("CPT_CREATE_PROPERTY")))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
39323
38580
|
style: {
|
|
39324
38581
|
marginTop: "0",
|
|
39325
38582
|
marginBottom: "0"
|
|
@@ -39411,7 +38668,7 @@ const WSInfoPage = () => {
|
|
|
39411
38668
|
marginBottom: "24px",
|
|
39412
38669
|
lineHeight: "2"
|
|
39413
38670
|
}
|
|
39414
|
-
}, /*#__PURE__*/React.createElement("li", null, t("WS_DOC_IDENTITY_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ADDRESS_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ELECTRICITY_BILL")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PLUMBER_REPORT")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_BUILDING_PLAN")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PROPERTY_TAX_RECEIPT")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_APPLICANT_PHOTOGRAPH"))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement(SubmitBar, {
|
|
38671
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_DOC_IDENTITY_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ADDRESS_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ELECTRICITY_BILL")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PLUMBER_REPORT")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_BUILDING_PLAN")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PROPERTY_TAX_RECEIPT")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_APPLICANT_PHOTOGRAPH")))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement(SubmitBar, {
|
|
39415
38672
|
label: t("CS_COMMON_NEXT"),
|
|
39416
38673
|
onSubmit: () => {},
|
|
39417
38674
|
disabled: true
|
|
@@ -39888,7 +39145,7 @@ const ApplicationBillAmendment = () => {
|
|
|
39888
39145
|
style: {
|
|
39889
39146
|
paddingLeft: "150px"
|
|
39890
39147
|
}
|
|
39891
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
39148
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
|
|
39892
39149
|
name: `${servicev1}_REDUCED_AMOUNT.VALUE`,
|
|
39893
39150
|
key: `${servicev1}_REDUCED_AMOUNT.VALUE`,
|
|
39894
39151
|
control: control,
|
|
@@ -39923,7 +39180,7 @@ const ApplicationBillAmendment = () => {
|
|
|
39923
39180
|
checked: props === null || props === void 0 ? void 0 : props.value
|
|
39924
39181
|
}));
|
|
39925
39182
|
}
|
|
39926
|
-
}), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$
|
|
39183
|
+
}), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
|
|
39927
39184
|
name: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
|
|
39928
39185
|
key: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
|
|
39929
39186
|
control: control,
|
|
@@ -39974,7 +39231,7 @@ const ApplicationBillAmendment = () => {
|
|
|
39974
39231
|
paddingRight: "60px",
|
|
39975
39232
|
paddingLeft: "150px"
|
|
39976
39233
|
}
|
|
39977
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
39234
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
39978
39235
|
disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
|
|
39979
39236
|
type: "number",
|
|
39980
39237
|
name: `${servicev1}_REDUCED_AMOUNT.${node.taxHeadCode}`,
|
|
@@ -40004,7 +39261,7 @@ const ApplicationBillAmendment = () => {
|
|
|
40004
39261
|
style: {
|
|
40005
39262
|
paddingRight: "60px"
|
|
40006
39263
|
}
|
|
40007
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
39264
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
40008
39265
|
disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
|
|
40009
39266
|
type: "number",
|
|
40010
39267
|
name: `${servicev1}_ADDITIONAL_AMOUNT.${node.taxHeadCode}`,
|
|
@@ -40052,7 +39309,7 @@ const ApplicationBillAmendment = () => {
|
|
|
40052
39309
|
paddingRight: "60px",
|
|
40053
39310
|
paddingLeft: "150px"
|
|
40054
39311
|
}
|
|
40055
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
39312
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
40056
39313
|
disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
|
|
40057
39314
|
name: `${servicev1}_REBATE`,
|
|
40058
39315
|
inputRef: register()
|
|
@@ -40060,11 +39317,11 @@ const ApplicationBillAmendment = () => {
|
|
|
40060
39317
|
style: {
|
|
40061
39318
|
paddingRight: "60px"
|
|
40062
39319
|
}
|
|
40063
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
39320
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
40064
39321
|
disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
|
|
40065
39322
|
name: `${servicev1}_PENALTY`,
|
|
40066
39323
|
inputRef: register()
|
|
40067
|
-
}))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
39324
|
+
}))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
40068
39325
|
style: {
|
|
40069
39326
|
marginBottom: "16px"
|
|
40070
39327
|
}
|
|
@@ -44462,12 +43719,12 @@ const configSVApproverApplication = _ref => {
|
|
|
44462
43719
|
};
|
|
44463
43720
|
};
|
|
44464
43721
|
|
|
44465
|
-
const Heading = props => {
|
|
43722
|
+
const Heading$1 = props => {
|
|
44466
43723
|
return /*#__PURE__*/React.createElement("h1", {
|
|
44467
43724
|
className: "heading-m"
|
|
44468
43725
|
}, props.label);
|
|
44469
43726
|
};
|
|
44470
|
-
const Close$
|
|
43727
|
+
const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
|
|
44471
43728
|
xmlns: "http://www.w3.org/2000/svg",
|
|
44472
43729
|
viewBox: "0 0 24 24",
|
|
44473
43730
|
fill: "#FFFFFF"
|
|
@@ -44477,11 +43734,11 @@ const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
44477
43734
|
}), /*#__PURE__*/React.createElement("path", {
|
|
44478
43735
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
44479
43736
|
}));
|
|
44480
|
-
const CloseBtn = props => {
|
|
43737
|
+
const CloseBtn$1 = props => {
|
|
44481
43738
|
return /*#__PURE__*/React.createElement("div", {
|
|
44482
43739
|
className: "icon-bg-secondary",
|
|
44483
43740
|
onClick: props.onClick
|
|
44484
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
43741
|
+
}, /*#__PURE__*/React.createElement(Close$2, null));
|
|
44485
43742
|
};
|
|
44486
43743
|
const ActionModal = _ref => {
|
|
44487
43744
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
@@ -44563,7 +43820,7 @@ const ActionModal = _ref => {
|
|
|
44563
43820
|
if (file.size >= 5242880) {
|
|
44564
43821
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
44565
43822
|
} else {
|
|
44566
|
-
const _temp = _catch
|
|
43823
|
+
const _temp = _catch(function () {
|
|
44567
43824
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
44568
43825
|
var _response$data, _response$data$files;
|
|
44569
43826
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -44663,10 +43920,10 @@ const ActionModal = _ref => {
|
|
|
44663
43920
|
}
|
|
44664
43921
|
}, [action, approvers, financialYears, selectedFinancialYear, uploadedFile]);
|
|
44665
43922
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
44666
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
43923
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
|
|
44667
43924
|
label: t(config.label.heading)
|
|
44668
43925
|
}),
|
|
44669
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
|
|
43926
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$1, {
|
|
44670
43927
|
onClick: closeModal
|
|
44671
43928
|
}),
|
|
44672
43929
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -44686,12 +43943,12 @@ const ActionModal = _ref => {
|
|
|
44686
43943
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
44687
43944
|
};
|
|
44688
43945
|
|
|
44689
|
-
const Heading$
|
|
43946
|
+
const Heading$2 = props => {
|
|
44690
43947
|
return /*#__PURE__*/React.createElement("h1", {
|
|
44691
43948
|
className: "heading-m"
|
|
44692
43949
|
}, props.label);
|
|
44693
43950
|
};
|
|
44694
|
-
const Close$
|
|
43951
|
+
const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
|
|
44695
43952
|
xmlns: "http://www.w3.org/2000/svg",
|
|
44696
43953
|
viewBox: "0 0 24 24",
|
|
44697
43954
|
fill: "#FFFFFF"
|
|
@@ -44701,11 +43958,11 @@ const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
44701
43958
|
}), /*#__PURE__*/React.createElement("path", {
|
|
44702
43959
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
44703
43960
|
}));
|
|
44704
|
-
const CloseBtn$
|
|
43961
|
+
const CloseBtn$2 = props => {
|
|
44705
43962
|
return /*#__PURE__*/React.createElement("div", {
|
|
44706
43963
|
className: "icon-bg-secondary",
|
|
44707
43964
|
onClick: props.onClick
|
|
44708
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
43965
|
+
}, /*#__PURE__*/React.createElement(Close$3, null));
|
|
44709
43966
|
};
|
|
44710
43967
|
const ActionModal$1 = _ref => {
|
|
44711
43968
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
@@ -44786,7 +44043,7 @@ const ActionModal$1 = _ref => {
|
|
|
44786
44043
|
if (file.size >= 5242880) {
|
|
44787
44044
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
44788
44045
|
} else {
|
|
44789
|
-
const _temp = _catch
|
|
44046
|
+
const _temp = _catch(function () {
|
|
44790
44047
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
44791
44048
|
var _response$data, _response$data$files;
|
|
44792
44049
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -44843,10 +44100,10 @@ const ActionModal$1 = _ref => {
|
|
|
44843
44100
|
}
|
|
44844
44101
|
}, [action, approvers, financialYears, selectedFinancialYear, uploadedFile]);
|
|
44845
44102
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
44846
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
44103
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$2, {
|
|
44847
44104
|
label: t(config.label.heading)
|
|
44848
44105
|
}),
|
|
44849
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
44106
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$2, {
|
|
44850
44107
|
onClick: closeModal
|
|
44851
44108
|
}),
|
|
44852
44109
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -44865,7 +44122,7 @@ const ActionModal$1 = _ref => {
|
|
|
44865
44122
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
44866
44123
|
};
|
|
44867
44124
|
|
|
44868
|
-
const Heading$
|
|
44125
|
+
const Heading$3 = props => {
|
|
44869
44126
|
return /*#__PURE__*/React.createElement("h1", {
|
|
44870
44127
|
style: {
|
|
44871
44128
|
marginLeft: "22px"
|
|
@@ -44873,7 +44130,7 @@ const Heading$2 = props => {
|
|
|
44873
44130
|
className: "heading-m BPAheading-m"
|
|
44874
44131
|
}, props.label);
|
|
44875
44132
|
};
|
|
44876
|
-
const Close$
|
|
44133
|
+
const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
|
|
44877
44134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
44878
44135
|
viewBox: "0 0 24 24",
|
|
44879
44136
|
fill: "#FFFFFF"
|
|
@@ -44883,11 +44140,11 @@ const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
44883
44140
|
}), /*#__PURE__*/React.createElement("path", {
|
|
44884
44141
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
44885
44142
|
}));
|
|
44886
|
-
const CloseBtn$
|
|
44143
|
+
const CloseBtn$3 = props => {
|
|
44887
44144
|
return /*#__PURE__*/React.createElement("div", {
|
|
44888
44145
|
className: "icon-bg-secondary",
|
|
44889
44146
|
onClick: props.onClick
|
|
44890
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
44147
|
+
}, /*#__PURE__*/React.createElement(Close$4, null));
|
|
44891
44148
|
};
|
|
44892
44149
|
const ActionModal$2 = _ref => {
|
|
44893
44150
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
@@ -44951,7 +44208,7 @@ const ActionModal$2 = _ref => {
|
|
|
44951
44208
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
44952
44209
|
setError(t(`NOT_SUPPORTED_FILE_TYPE`));
|
|
44953
44210
|
} else {
|
|
44954
|
-
const _temp = _catch
|
|
44211
|
+
const _temp = _catch(function () {
|
|
44955
44212
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
44956
44213
|
var _response$data, _response$data$files;
|
|
44957
44214
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -45015,10 +44272,10 @@ const ActionModal$2 = _ref => {
|
|
|
45015
44272
|
}
|
|
45016
44273
|
}, [action, approvers, uploadedFile, error]);
|
|
45017
44274
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
45018
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
44275
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$3, {
|
|
45019
44276
|
label: t(config.label.heading)
|
|
45020
44277
|
}),
|
|
45021
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
44278
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$3, {
|
|
45022
44279
|
onClick: closeModal
|
|
45023
44280
|
}),
|
|
45024
44281
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -45059,7 +44316,7 @@ const ActionModal$2 = _ref => {
|
|
|
45059
44316
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
45060
44317
|
};
|
|
45061
44318
|
|
|
45062
|
-
const Heading$
|
|
44319
|
+
const Heading$4 = props => {
|
|
45063
44320
|
return /*#__PURE__*/React.createElement("h1", {
|
|
45064
44321
|
style: {
|
|
45065
44322
|
marginLeft: "22px"
|
|
@@ -45067,7 +44324,7 @@ const Heading$3 = props => {
|
|
|
45067
44324
|
className: "heading-m BPAheading-m"
|
|
45068
44325
|
}, props.label);
|
|
45069
44326
|
};
|
|
45070
|
-
const Close$
|
|
44327
|
+
const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
|
|
45071
44328
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45072
44329
|
viewBox: "0 0 24 24",
|
|
45073
44330
|
fill: "#FFFFFF"
|
|
@@ -45077,11 +44334,11 @@ const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
45077
44334
|
}), /*#__PURE__*/React.createElement("path", {
|
|
45078
44335
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
45079
44336
|
}));
|
|
45080
|
-
const CloseBtn$
|
|
44337
|
+
const CloseBtn$4 = props => {
|
|
45081
44338
|
return /*#__PURE__*/React.createElement("div", {
|
|
45082
44339
|
className: "icon-bg-secondary",
|
|
45083
44340
|
onClick: props.onClick
|
|
45084
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
44341
|
+
}, /*#__PURE__*/React.createElement(Close$5, null));
|
|
45085
44342
|
};
|
|
45086
44343
|
const ActionModal$3 = _ref => {
|
|
45087
44344
|
var _applicationData, _applicationData$land, _applicationData$land2, _applicationData2, _applicationData2$lan, _applicationData2$lan2, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6;
|
|
@@ -45230,7 +44487,7 @@ const ActionModal$3 = _ref => {
|
|
|
45230
44487
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
45231
44488
|
setError(t(`NOT_SUPPORTED_FILE_TYPE`));
|
|
45232
44489
|
} else {
|
|
45233
|
-
const _temp = _catch
|
|
44490
|
+
const _temp = _catch(function () {
|
|
45234
44491
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
45235
44492
|
var _response$data, _response$data$files;
|
|
45236
44493
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -45348,10 +44605,10 @@ const ActionModal$3 = _ref => {
|
|
|
45348
44605
|
}
|
|
45349
44606
|
}, [action, approvers, selectedFinancialYear, uploadedFile, error]);
|
|
45350
44607
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
45351
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
44608
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$4, {
|
|
45352
44609
|
label: t(config.label.heading)
|
|
45353
44610
|
}),
|
|
45354
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
44611
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
|
|
45355
44612
|
onClick: closeModal
|
|
45356
44613
|
}),
|
|
45357
44614
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -45394,214 +44651,12 @@ const ActionModal$3 = _ref => {
|
|
|
45394
44651
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
45395
44652
|
};
|
|
45396
44653
|
|
|
45397
|
-
const Heading$4 = props => {
|
|
45398
|
-
return /*#__PURE__*/React.createElement("h1", {
|
|
45399
|
-
style: {
|
|
45400
|
-
marginLeft: "22px"
|
|
45401
|
-
},
|
|
45402
|
-
className: "heading-m BPAheading-m"
|
|
45403
|
-
}, props.label);
|
|
45404
|
-
};
|
|
45405
|
-
const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
|
|
45406
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
45407
|
-
viewBox: "0 0 24 24",
|
|
45408
|
-
fill: "#FFFFFF"
|
|
45409
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
45410
|
-
d: "M0 0h24v24H0V0z",
|
|
45411
|
-
fill: "none"
|
|
45412
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
45413
|
-
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
45414
|
-
}));
|
|
45415
|
-
const CloseBtn$4 = props => {
|
|
45416
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
45417
|
-
className: "icon-bg-secondary",
|
|
45418
|
-
onClick: props.onClick
|
|
45419
|
-
}, /*#__PURE__*/React.createElement(Close$5, null));
|
|
45420
|
-
};
|
|
45421
|
-
const ActionModal$4 = _ref => {
|
|
45422
|
-
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
45423
|
-
let {
|
|
45424
|
-
t,
|
|
45425
|
-
action,
|
|
45426
|
-
tenantId,
|
|
45427
|
-
state,
|
|
45428
|
-
id,
|
|
45429
|
-
closeModal,
|
|
45430
|
-
submitAction,
|
|
45431
|
-
actionData,
|
|
45432
|
-
applicationData,
|
|
45433
|
-
businessService,
|
|
45434
|
-
moduleCode
|
|
45435
|
-
} = _ref;
|
|
45436
|
-
const {
|
|
45437
|
-
data: approverData,
|
|
45438
|
-
isLoading: PTALoading
|
|
45439
|
-
} = Digit.Hooks.useEmployeeSearch(tenantId, {
|
|
45440
|
-
roles: action === null || action === void 0 ? void 0 : (_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : (_action$assigneeRoles2 = _action$assigneeRoles.map) === null || _action$assigneeRoles2 === void 0 ? void 0 : _action$assigneeRoles2.call(_action$assigneeRoles, e => ({
|
|
45441
|
-
code: e
|
|
45442
|
-
})),
|
|
45443
|
-
isActive: true
|
|
45444
|
-
}, {
|
|
45445
|
-
enabled: !(action !== null && action !== void 0 && action.isTerminateState)
|
|
45446
|
-
});
|
|
45447
|
-
const queryClient = useQueryClient();
|
|
45448
|
-
const [config, setConfig] = useState({});
|
|
45449
|
-
const [defaultValues, setDefaultValues] = useState({});
|
|
45450
|
-
const [approvers, setApprovers] = useState([]);
|
|
45451
|
-
const [selectedApprover, setSelectedApprover] = useState({});
|
|
45452
|
-
const [file, setFile] = useState(null);
|
|
45453
|
-
const [uploadedFile, setUploadedFile] = useState(null);
|
|
45454
|
-
const [error, setError] = useState(null);
|
|
45455
|
-
const mobileView = Digit.Utils.browser.isMobile() ? true : false;
|
|
45456
|
-
const history = useHistory();
|
|
45457
|
-
useEffect(() => {
|
|
45458
|
-
var _approverData$Employe;
|
|
45459
|
-
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
45460
|
-
var _employee$user;
|
|
45461
|
-
return {
|
|
45462
|
-
uuid: employee === null || employee === void 0 ? void 0 : employee.uuid,
|
|
45463
|
-
name: employee === null || employee === void 0 ? void 0 : (_employee$user = employee.user) === null || _employee$user === void 0 ? void 0 : _employee$user.name
|
|
45464
|
-
};
|
|
45465
|
-
}));
|
|
45466
|
-
}, [approverData]);
|
|
45467
|
-
function selectFile(e) {
|
|
45468
|
-
setFile(e.target.files[0]);
|
|
45469
|
-
}
|
|
45470
|
-
useEffect(() => {
|
|
45471
|
-
(function () {
|
|
45472
|
-
try {
|
|
45473
|
-
setError(null);
|
|
45474
|
-
const _temp4 = function () {
|
|
45475
|
-
if (file) {
|
|
45476
|
-
const allowedFileTypesRegex = /(.*?)(jpg|jpeg|png|image|pdf)$/i;
|
|
45477
|
-
const _temp3 = function () {
|
|
45478
|
-
if (file.size >= 5242880) {
|
|
45479
|
-
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
45480
|
-
} else {
|
|
45481
|
-
const _temp2 = function () {
|
|
45482
|
-
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
45483
|
-
setError(t(`NOT_SUPPORTED_FILE_TYPE`));
|
|
45484
|
-
} else {
|
|
45485
|
-
const _temp = _catch$1(function () {
|
|
45486
|
-
return Promise.resolve(Digit.UploadServices.Filestorage("NOC", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
45487
|
-
var _response$data, _response$data$files;
|
|
45488
|
-
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
45489
|
-
var _response$data2, _response$data2$files;
|
|
45490
|
-
setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId);
|
|
45491
|
-
} else {
|
|
45492
|
-
setError(t("CS_FILE_UPLOAD_ERROR"));
|
|
45493
|
-
}
|
|
45494
|
-
});
|
|
45495
|
-
}, function () {
|
|
45496
|
-
setError(t("CS_FILE_UPLOAD_ERROR"));
|
|
45497
|
-
});
|
|
45498
|
-
if (_temp && _temp.then) return _temp.then(function () {});
|
|
45499
|
-
}
|
|
45500
|
-
}();
|
|
45501
|
-
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
45502
|
-
}
|
|
45503
|
-
}();
|
|
45504
|
-
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
45505
|
-
}
|
|
45506
|
-
}();
|
|
45507
|
-
return _temp4 && _temp4.then ? _temp4.then(function () {}) : void 0;
|
|
45508
|
-
} catch (e) {
|
|
45509
|
-
Promise.reject(e);
|
|
45510
|
-
}
|
|
45511
|
-
})();
|
|
45512
|
-
}, [file]);
|
|
45513
|
-
function submit(data) {
|
|
45514
|
-
var _applicationData, _applicationData$docu, _applicationData2;
|
|
45515
|
-
let enteredDocs = JSON.parse(sessionStorage.getItem("NewNOCDocs"));
|
|
45516
|
-
let newDocs = ((_applicationData = applicationData) === null || _applicationData === void 0 ? void 0 : (_applicationData$docu = _applicationData.documents) === null || _applicationData$docu === void 0 ? void 0 : _applicationData$docu.length) > 0 ? [...((_applicationData2 = applicationData) === null || _applicationData2 === void 0 ? void 0 : _applicationData2.documents)] : [];
|
|
45517
|
-
enteredDocs.map((d, index) => {
|
|
45518
|
-
newDocs.push(d);
|
|
45519
|
-
});
|
|
45520
|
-
applicationData = {
|
|
45521
|
-
...applicationData,
|
|
45522
|
-
workflow: {
|
|
45523
|
-
action: action === null || action === void 0 ? void 0 : action.action,
|
|
45524
|
-
comment: data !== null && data !== void 0 && data.comments ? data === null || data === void 0 ? void 0 : data.comments : null,
|
|
45525
|
-
assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
45526
|
-
documents: uploadedFile ? [{
|
|
45527
|
-
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
45528
|
-
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
45529
|
-
fileStoreId: uploadedFile
|
|
45530
|
-
}] : null
|
|
45531
|
-
},
|
|
45532
|
-
documents: newDocs
|
|
45533
|
-
};
|
|
45534
|
-
submitAction({
|
|
45535
|
-
Noc: applicationData
|
|
45536
|
-
}, false, {
|
|
45537
|
-
isNoc: true
|
|
45538
|
-
});
|
|
45539
|
-
}
|
|
45540
|
-
useEffect(() => {
|
|
45541
|
-
if (action) {
|
|
45542
|
-
setConfig(configNOCApproverApplication({
|
|
45543
|
-
t,
|
|
45544
|
-
action,
|
|
45545
|
-
approvers,
|
|
45546
|
-
selectedApprover,
|
|
45547
|
-
setSelectedApprover,
|
|
45548
|
-
selectFile,
|
|
45549
|
-
uploadedFile,
|
|
45550
|
-
setUploadedFile,
|
|
45551
|
-
businessService,
|
|
45552
|
-
assigneeLabel: "WF_ASSIGNEE_NAME_LABEL",
|
|
45553
|
-
error
|
|
45554
|
-
}));
|
|
45555
|
-
}
|
|
45556
|
-
}, [action, approvers, uploadedFile, error]);
|
|
45557
|
-
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
45558
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$4, {
|
|
45559
|
-
label: t(config.label.heading)
|
|
45560
|
-
}),
|
|
45561
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
|
|
45562
|
-
onClick: closeModal
|
|
45563
|
-
}),
|
|
45564
|
-
actionCancelLabel: t(config.label.cancel),
|
|
45565
|
-
actionCancelOnSubmit: closeModal,
|
|
45566
|
-
actionSaveLabel: t(config.label.submit),
|
|
45567
|
-
actionSaveOnSubmit: () => {},
|
|
45568
|
-
formId: "modal-action",
|
|
45569
|
-
isOBPSFlow: true,
|
|
45570
|
-
popupStyles: mobileView ? {
|
|
45571
|
-
width: "720px"
|
|
45572
|
-
} : {},
|
|
45573
|
-
style: !mobileView ? {
|
|
45574
|
-
height: "45px",
|
|
45575
|
-
width: "107px",
|
|
45576
|
-
paddingLeft: "0px",
|
|
45577
|
-
paddingRight: "0px"
|
|
45578
|
-
} : {
|
|
45579
|
-
height: "45px",
|
|
45580
|
-
width: "44%"
|
|
45581
|
-
},
|
|
45582
|
-
popupModuleMianStyles: mobileView ? {
|
|
45583
|
-
paddingLeft: "5px"
|
|
45584
|
-
} : {}
|
|
45585
|
-
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
|
|
45586
|
-
config: config.form,
|
|
45587
|
-
cardStyle: {
|
|
45588
|
-
marginLeft: "0px",
|
|
45589
|
-
marginRight: "0px",
|
|
45590
|
-
marginTop: "-25px"
|
|
45591
|
-
},
|
|
45592
|
-
className: "BPAemployeeCard",
|
|
45593
|
-
noBoxShadow: true,
|
|
45594
|
-
inline: true,
|
|
45595
|
-
childrenAtTheBottom: true,
|
|
45596
|
-
onSubmit: submit,
|
|
45597
|
-
defaultValues: defaultValues,
|
|
45598
|
-
formId: "modal-action"
|
|
45599
|
-
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
45600
|
-
};
|
|
45601
|
-
|
|
45602
44654
|
const Heading$5 = props => {
|
|
45603
44655
|
return /*#__PURE__*/React.createElement("h1", {
|
|
45604
|
-
|
|
44656
|
+
style: {
|
|
44657
|
+
marginLeft: "22px"
|
|
44658
|
+
},
|
|
44659
|
+
className: "heading-m BPAheading-m"
|
|
45605
44660
|
}, props.label);
|
|
45606
44661
|
};
|
|
45607
44662
|
const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
|
|
@@ -45620,6 +44675,208 @@ const CloseBtn$5 = props => {
|
|
|
45620
44675
|
onClick: props.onClick
|
|
45621
44676
|
}, /*#__PURE__*/React.createElement(Close$6, null));
|
|
45622
44677
|
};
|
|
44678
|
+
const ActionModal$4 = _ref => {
|
|
44679
|
+
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
44680
|
+
let {
|
|
44681
|
+
t,
|
|
44682
|
+
action,
|
|
44683
|
+
tenantId,
|
|
44684
|
+
state,
|
|
44685
|
+
id,
|
|
44686
|
+
closeModal,
|
|
44687
|
+
submitAction,
|
|
44688
|
+
actionData,
|
|
44689
|
+
applicationData,
|
|
44690
|
+
businessService,
|
|
44691
|
+
moduleCode
|
|
44692
|
+
} = _ref;
|
|
44693
|
+
const {
|
|
44694
|
+
data: approverData,
|
|
44695
|
+
isLoading: PTALoading
|
|
44696
|
+
} = Digit.Hooks.useEmployeeSearch(tenantId, {
|
|
44697
|
+
roles: action === null || action === void 0 ? void 0 : (_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : (_action$assigneeRoles2 = _action$assigneeRoles.map) === null || _action$assigneeRoles2 === void 0 ? void 0 : _action$assigneeRoles2.call(_action$assigneeRoles, e => ({
|
|
44698
|
+
code: e
|
|
44699
|
+
})),
|
|
44700
|
+
isActive: true
|
|
44701
|
+
}, {
|
|
44702
|
+
enabled: !(action !== null && action !== void 0 && action.isTerminateState)
|
|
44703
|
+
});
|
|
44704
|
+
const queryClient = useQueryClient();
|
|
44705
|
+
const [config, setConfig] = useState({});
|
|
44706
|
+
const [defaultValues, setDefaultValues] = useState({});
|
|
44707
|
+
const [approvers, setApprovers] = useState([]);
|
|
44708
|
+
const [selectedApprover, setSelectedApprover] = useState({});
|
|
44709
|
+
const [file, setFile] = useState(null);
|
|
44710
|
+
const [uploadedFile, setUploadedFile] = useState(null);
|
|
44711
|
+
const [error, setError] = useState(null);
|
|
44712
|
+
const mobileView = Digit.Utils.browser.isMobile() ? true : false;
|
|
44713
|
+
const history = useHistory();
|
|
44714
|
+
useEffect(() => {
|
|
44715
|
+
var _approverData$Employe;
|
|
44716
|
+
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
44717
|
+
var _employee$user;
|
|
44718
|
+
return {
|
|
44719
|
+
uuid: employee === null || employee === void 0 ? void 0 : employee.uuid,
|
|
44720
|
+
name: employee === null || employee === void 0 ? void 0 : (_employee$user = employee.user) === null || _employee$user === void 0 ? void 0 : _employee$user.name
|
|
44721
|
+
};
|
|
44722
|
+
}));
|
|
44723
|
+
}, [approverData]);
|
|
44724
|
+
function selectFile(e) {
|
|
44725
|
+
setFile(e.target.files[0]);
|
|
44726
|
+
}
|
|
44727
|
+
useEffect(() => {
|
|
44728
|
+
(function () {
|
|
44729
|
+
try {
|
|
44730
|
+
setError(null);
|
|
44731
|
+
const _temp4 = function () {
|
|
44732
|
+
if (file) {
|
|
44733
|
+
const allowedFileTypesRegex = /(.*?)(jpg|jpeg|png|image|pdf)$/i;
|
|
44734
|
+
const _temp3 = function () {
|
|
44735
|
+
if (file.size >= 5242880) {
|
|
44736
|
+
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
44737
|
+
} else {
|
|
44738
|
+
const _temp2 = function () {
|
|
44739
|
+
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
44740
|
+
setError(t(`NOT_SUPPORTED_FILE_TYPE`));
|
|
44741
|
+
} else {
|
|
44742
|
+
const _temp = _catch(function () {
|
|
44743
|
+
return Promise.resolve(Digit.UploadServices.Filestorage("NOC", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
44744
|
+
var _response$data, _response$data$files;
|
|
44745
|
+
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
44746
|
+
var _response$data2, _response$data2$files;
|
|
44747
|
+
setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId);
|
|
44748
|
+
} else {
|
|
44749
|
+
setError(t("CS_FILE_UPLOAD_ERROR"));
|
|
44750
|
+
}
|
|
44751
|
+
});
|
|
44752
|
+
}, function () {
|
|
44753
|
+
setError(t("CS_FILE_UPLOAD_ERROR"));
|
|
44754
|
+
});
|
|
44755
|
+
if (_temp && _temp.then) return _temp.then(function () {});
|
|
44756
|
+
}
|
|
44757
|
+
}();
|
|
44758
|
+
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
44759
|
+
}
|
|
44760
|
+
}();
|
|
44761
|
+
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
44762
|
+
}
|
|
44763
|
+
}();
|
|
44764
|
+
return _temp4 && _temp4.then ? _temp4.then(function () {}) : void 0;
|
|
44765
|
+
} catch (e) {
|
|
44766
|
+
Promise.reject(e);
|
|
44767
|
+
}
|
|
44768
|
+
})();
|
|
44769
|
+
}, [file]);
|
|
44770
|
+
function submit(data) {
|
|
44771
|
+
var _applicationData, _applicationData$docu, _applicationData2;
|
|
44772
|
+
let enteredDocs = JSON.parse(sessionStorage.getItem("NewNOCDocs"));
|
|
44773
|
+
let newDocs = ((_applicationData = applicationData) === null || _applicationData === void 0 ? void 0 : (_applicationData$docu = _applicationData.documents) === null || _applicationData$docu === void 0 ? void 0 : _applicationData$docu.length) > 0 ? [...((_applicationData2 = applicationData) === null || _applicationData2 === void 0 ? void 0 : _applicationData2.documents)] : [];
|
|
44774
|
+
enteredDocs.map((d, index) => {
|
|
44775
|
+
newDocs.push(d);
|
|
44776
|
+
});
|
|
44777
|
+
applicationData = {
|
|
44778
|
+
...applicationData,
|
|
44779
|
+
workflow: {
|
|
44780
|
+
action: action === null || action === void 0 ? void 0 : action.action,
|
|
44781
|
+
comment: data !== null && data !== void 0 && data.comments ? data === null || data === void 0 ? void 0 : data.comments : null,
|
|
44782
|
+
assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
44783
|
+
documents: uploadedFile ? [{
|
|
44784
|
+
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
44785
|
+
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
44786
|
+
fileStoreId: uploadedFile
|
|
44787
|
+
}] : null
|
|
44788
|
+
},
|
|
44789
|
+
documents: newDocs
|
|
44790
|
+
};
|
|
44791
|
+
submitAction({
|
|
44792
|
+
Noc: applicationData
|
|
44793
|
+
}, false, {
|
|
44794
|
+
isNoc: true
|
|
44795
|
+
});
|
|
44796
|
+
}
|
|
44797
|
+
useEffect(() => {
|
|
44798
|
+
if (action) {
|
|
44799
|
+
setConfig(configNOCApproverApplication({
|
|
44800
|
+
t,
|
|
44801
|
+
action,
|
|
44802
|
+
approvers,
|
|
44803
|
+
selectedApprover,
|
|
44804
|
+
setSelectedApprover,
|
|
44805
|
+
selectFile,
|
|
44806
|
+
uploadedFile,
|
|
44807
|
+
setUploadedFile,
|
|
44808
|
+
businessService,
|
|
44809
|
+
assigneeLabel: "WF_ASSIGNEE_NAME_LABEL",
|
|
44810
|
+
error
|
|
44811
|
+
}));
|
|
44812
|
+
}
|
|
44813
|
+
}, [action, approvers, uploadedFile, error]);
|
|
44814
|
+
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
44815
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$5, {
|
|
44816
|
+
label: t(config.label.heading)
|
|
44817
|
+
}),
|
|
44818
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$5, {
|
|
44819
|
+
onClick: closeModal
|
|
44820
|
+
}),
|
|
44821
|
+
actionCancelLabel: t(config.label.cancel),
|
|
44822
|
+
actionCancelOnSubmit: closeModal,
|
|
44823
|
+
actionSaveLabel: t(config.label.submit),
|
|
44824
|
+
actionSaveOnSubmit: () => {},
|
|
44825
|
+
formId: "modal-action",
|
|
44826
|
+
isOBPSFlow: true,
|
|
44827
|
+
popupStyles: mobileView ? {
|
|
44828
|
+
width: "720px"
|
|
44829
|
+
} : {},
|
|
44830
|
+
style: !mobileView ? {
|
|
44831
|
+
height: "45px",
|
|
44832
|
+
width: "107px",
|
|
44833
|
+
paddingLeft: "0px",
|
|
44834
|
+
paddingRight: "0px"
|
|
44835
|
+
} : {
|
|
44836
|
+
height: "45px",
|
|
44837
|
+
width: "44%"
|
|
44838
|
+
},
|
|
44839
|
+
popupModuleMianStyles: mobileView ? {
|
|
44840
|
+
paddingLeft: "5px"
|
|
44841
|
+
} : {}
|
|
44842
|
+
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
|
|
44843
|
+
config: config.form,
|
|
44844
|
+
cardStyle: {
|
|
44845
|
+
marginLeft: "0px",
|
|
44846
|
+
marginRight: "0px",
|
|
44847
|
+
marginTop: "-25px"
|
|
44848
|
+
},
|
|
44849
|
+
className: "BPAemployeeCard",
|
|
44850
|
+
noBoxShadow: true,
|
|
44851
|
+
inline: true,
|
|
44852
|
+
childrenAtTheBottom: true,
|
|
44853
|
+
onSubmit: submit,
|
|
44854
|
+
defaultValues: defaultValues,
|
|
44855
|
+
formId: "modal-action"
|
|
44856
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
44857
|
+
};
|
|
44858
|
+
|
|
44859
|
+
const Heading$6 = props => {
|
|
44860
|
+
return /*#__PURE__*/React.createElement("h1", {
|
|
44861
|
+
className: "heading-m"
|
|
44862
|
+
}, props.label);
|
|
44863
|
+
};
|
|
44864
|
+
const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
|
|
44865
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
44866
|
+
viewBox: "0 0 24 24",
|
|
44867
|
+
fill: "#FFFFFF"
|
|
44868
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
44869
|
+
d: "M0 0h24v24H0V0z",
|
|
44870
|
+
fill: "none"
|
|
44871
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
44872
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
44873
|
+
}));
|
|
44874
|
+
const CloseBtn$6 = props => {
|
|
44875
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
44876
|
+
className: "icon-bg-secondary",
|
|
44877
|
+
onClick: props.onClick
|
|
44878
|
+
}, /*#__PURE__*/React.createElement(Close$7, null));
|
|
44879
|
+
};
|
|
45623
44880
|
const convertDateToEpochNew$1 = function (dateString, dayStartOrEnd) {
|
|
45624
44881
|
if (dayStartOrEnd === void 0) {
|
|
45625
44882
|
dayStartOrEnd = "dayend";
|
|
@@ -45710,7 +44967,7 @@ const ActionModal$5 = _ref => {
|
|
|
45710
44967
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
45711
44968
|
setError(t(`NOT_SUPPORTED_FILE_TYPE`));
|
|
45712
44969
|
} else {
|
|
45713
|
-
const _temp = _catch
|
|
44970
|
+
const _temp = _catch(function () {
|
|
45714
44971
|
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getCurrentTenantId())).then(function (response) {
|
|
45715
44972
|
var _response$data, _response$data$files;
|
|
45716
44973
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -45931,10 +45188,10 @@ const ActionModal$5 = _ref => {
|
|
|
45931
45188
|
}
|
|
45932
45189
|
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText, showApprovalChecklist, approvalChecklist, applicationData]);
|
|
45933
45190
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
45934
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
45191
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$6, {
|
|
45935
45192
|
label: t(config.label.heading)
|
|
45936
45193
|
}),
|
|
45937
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
45194
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$6, {
|
|
45938
45195
|
onClick: closeModal
|
|
45939
45196
|
}),
|
|
45940
45197
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -45967,12 +45224,12 @@ const ActionModal$5 = _ref => {
|
|
|
45967
45224
|
}))) : /*#__PURE__*/React.createElement(Loader, null);
|
|
45968
45225
|
};
|
|
45969
45226
|
|
|
45970
|
-
const Heading$
|
|
45227
|
+
const Heading$7 = props => {
|
|
45971
45228
|
return /*#__PURE__*/React.createElement("h1", {
|
|
45972
45229
|
className: "heading-m"
|
|
45973
45230
|
}, props.label);
|
|
45974
45231
|
};
|
|
45975
|
-
const Close$
|
|
45232
|
+
const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
|
|
45976
45233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45977
45234
|
viewBox: "0 0 24 24",
|
|
45978
45235
|
fill: "#FFFFFF"
|
|
@@ -45982,11 +45239,11 @@ const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
45982
45239
|
}), /*#__PURE__*/React.createElement("path", {
|
|
45983
45240
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
45984
45241
|
}));
|
|
45985
|
-
const CloseBtn$
|
|
45242
|
+
const CloseBtn$7 = props => {
|
|
45986
45243
|
return /*#__PURE__*/React.createElement("div", {
|
|
45987
45244
|
className: "icon-bg-secondary",
|
|
45988
45245
|
onClick: props.onClick
|
|
45989
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
45246
|
+
}, /*#__PURE__*/React.createElement(Close$8, null));
|
|
45990
45247
|
};
|
|
45991
45248
|
const ActionModal$6 = _ref => {
|
|
45992
45249
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
@@ -46046,7 +45303,7 @@ const ActionModal$6 = _ref => {
|
|
|
46046
45303
|
if (file.size >= 5242880) {
|
|
46047
45304
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
46048
45305
|
} else {
|
|
46049
|
-
const _temp = _catch
|
|
45306
|
+
const _temp = _catch(function () {
|
|
46050
45307
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
46051
45308
|
var _response$data, _response$data$files;
|
|
46052
45309
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -46106,10 +45363,10 @@ const ActionModal$6 = _ref => {
|
|
|
46106
45363
|
}
|
|
46107
45364
|
}, [action, approvers, uploadedFile]);
|
|
46108
45365
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
46109
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
45366
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$7, {
|
|
46110
45367
|
label: t(config.label.heading)
|
|
46111
45368
|
}),
|
|
46112
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
45369
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$7, {
|
|
46113
45370
|
onClick: closeModal
|
|
46114
45371
|
}),
|
|
46115
45372
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -46128,12 +45385,12 @@ const ActionModal$6 = _ref => {
|
|
|
46128
45385
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
46129
45386
|
};
|
|
46130
45387
|
|
|
46131
|
-
const Heading$
|
|
45388
|
+
const Heading$8 = props => {
|
|
46132
45389
|
return /*#__PURE__*/React.createElement("h1", {
|
|
46133
45390
|
className: "heading-m"
|
|
46134
45391
|
}, props.label);
|
|
46135
45392
|
};
|
|
46136
|
-
const Close$
|
|
45393
|
+
const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
|
|
46137
45394
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46138
45395
|
viewBox: "0 0 24 24",
|
|
46139
45396
|
fill: "#FFFFFF"
|
|
@@ -46143,11 +45400,11 @@ const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
46143
45400
|
}), /*#__PURE__*/React.createElement("path", {
|
|
46144
45401
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
46145
45402
|
}));
|
|
46146
|
-
const CloseBtn$
|
|
45403
|
+
const CloseBtn$8 = props => {
|
|
46147
45404
|
return /*#__PURE__*/React.createElement("div", {
|
|
46148
45405
|
className: "icon-bg-secondary",
|
|
46149
45406
|
onClick: props.onClick
|
|
46150
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
45407
|
+
}, /*#__PURE__*/React.createElement(Close$9, null));
|
|
46151
45408
|
};
|
|
46152
45409
|
const ActionModal$7 = _ref => {
|
|
46153
45410
|
var _action$roles, _action$roles$, _action$roles$$map;
|
|
@@ -46227,10 +45484,10 @@ const ActionModal$7 = _ref => {
|
|
|
46227
45484
|
}
|
|
46228
45485
|
}, [action, approvers, uploadedFile]);
|
|
46229
45486
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
46230
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
45487
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$8, {
|
|
46231
45488
|
label: t(config.label.heading)
|
|
46232
45489
|
}),
|
|
46233
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
45490
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$8, {
|
|
46234
45491
|
onClick: closeModal
|
|
46235
45492
|
}),
|
|
46236
45493
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -46253,12 +45510,12 @@ const ActionModal$7 = _ref => {
|
|
|
46253
45510
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
46254
45511
|
};
|
|
46255
45512
|
|
|
46256
|
-
const Heading$
|
|
45513
|
+
const Heading$9 = props => {
|
|
46257
45514
|
return /*#__PURE__*/React.createElement("h1", {
|
|
46258
45515
|
className: "heading-m"
|
|
46259
45516
|
}, props.label);
|
|
46260
45517
|
};
|
|
46261
|
-
const Close$
|
|
45518
|
+
const Close$a = () => /*#__PURE__*/React.createElement("svg", {
|
|
46262
45519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46263
45520
|
viewBox: "0 0 24 24",
|
|
46264
45521
|
fill: "#FFFFFF"
|
|
@@ -46268,11 +45525,11 @@ const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
46268
45525
|
}), /*#__PURE__*/React.createElement("path", {
|
|
46269
45526
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
46270
45527
|
}));
|
|
46271
|
-
const CloseBtn$
|
|
45528
|
+
const CloseBtn$9 = props => {
|
|
46272
45529
|
return /*#__PURE__*/React.createElement("div", {
|
|
46273
45530
|
className: "icon-bg-secondary",
|
|
46274
45531
|
onClick: props.onClick
|
|
46275
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
45532
|
+
}, /*#__PURE__*/React.createElement(Close$a, null));
|
|
46276
45533
|
};
|
|
46277
45534
|
const ActionModal$8 = _ref => {
|
|
46278
45535
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
@@ -46331,7 +45588,7 @@ const ActionModal$8 = _ref => {
|
|
|
46331
45588
|
if (file.size >= 5242880) {
|
|
46332
45589
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
46333
45590
|
} else {
|
|
46334
|
-
const _temp = _catch
|
|
45591
|
+
const _temp = _catch(function () {
|
|
46335
45592
|
return Promise.resolve(Digit.UploadServices.Filestorage("CHB", file, tenantId)).then(function (response) {
|
|
46336
45593
|
var _response$data, _response$data$files;
|
|
46337
45594
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -46391,10 +45648,10 @@ const ActionModal$8 = _ref => {
|
|
|
46391
45648
|
}
|
|
46392
45649
|
}, [action, approvers, uploadedFile]);
|
|
46393
45650
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
46394
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
45651
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$9, {
|
|
46395
45652
|
label: t(config.label.heading)
|
|
46396
45653
|
}),
|
|
46397
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
45654
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$9, {
|
|
46398
45655
|
onClick: closeModal
|
|
46399
45656
|
}),
|
|
46400
45657
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -46413,12 +45670,12 @@ const ActionModal$8 = _ref => {
|
|
|
46413
45670
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
46414
45671
|
};
|
|
46415
45672
|
|
|
46416
|
-
const Heading$
|
|
45673
|
+
const Heading$a = props => {
|
|
46417
45674
|
return /*#__PURE__*/React.createElement("h1", {
|
|
46418
45675
|
className: "heading-m"
|
|
46419
45676
|
}, props.label);
|
|
46420
45677
|
};
|
|
46421
|
-
const Close$
|
|
45678
|
+
const Close$b = () => /*#__PURE__*/React.createElement("svg", {
|
|
46422
45679
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46423
45680
|
viewBox: "0 0 24 24",
|
|
46424
45681
|
fill: "#FFFFFF"
|
|
@@ -46428,11 +45685,11 @@ const Close$a = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
46428
45685
|
}), /*#__PURE__*/React.createElement("path", {
|
|
46429
45686
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
46430
45687
|
}));
|
|
46431
|
-
const CloseBtn$
|
|
45688
|
+
const CloseBtn$a = props => {
|
|
46432
45689
|
return /*#__PURE__*/React.createElement("div", {
|
|
46433
45690
|
className: "icon-bg-secondary",
|
|
46434
45691
|
onClick: props.onClick
|
|
46435
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
45692
|
+
}, /*#__PURE__*/React.createElement(Close$b, null));
|
|
46436
45693
|
};
|
|
46437
45694
|
const ActionModal$9 = _ref => {
|
|
46438
45695
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
@@ -46493,7 +45750,7 @@ const ActionModal$9 = _ref => {
|
|
|
46493
45750
|
if (file.size >= 5242880) {
|
|
46494
45751
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
46495
45752
|
} else {
|
|
46496
|
-
const _temp = _catch
|
|
45753
|
+
const _temp = _catch(function () {
|
|
46497
45754
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
46498
45755
|
var _response$data, _response$data$files;
|
|
46499
45756
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -46558,10 +45815,10 @@ const ActionModal$9 = _ref => {
|
|
|
46558
45815
|
}, [action, approvers, uploadedFile]);
|
|
46559
45816
|
console.log("conggg", config);
|
|
46560
45817
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
46561
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
45818
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$a, {
|
|
46562
45819
|
label: t(config.label.heading)
|
|
46563
45820
|
}),
|
|
46564
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
45821
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$a, {
|
|
46565
45822
|
onClick: closeModal
|
|
46566
45823
|
}),
|
|
46567
45824
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -46580,12 +45837,12 @@ const ActionModal$9 = _ref => {
|
|
|
46580
45837
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
46581
45838
|
};
|
|
46582
45839
|
|
|
46583
|
-
const Heading$
|
|
45840
|
+
const Heading$b = props => {
|
|
46584
45841
|
return /*#__PURE__*/React.createElement("h1", {
|
|
46585
45842
|
className: "heading-m"
|
|
46586
45843
|
}, props.label);
|
|
46587
45844
|
};
|
|
46588
|
-
const Close$
|
|
45845
|
+
const Close$c = () => /*#__PURE__*/React.createElement("svg", {
|
|
46589
45846
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46590
45847
|
viewBox: "0 0 24 24",
|
|
46591
45848
|
fill: "#FFFFFF"
|
|
@@ -46595,11 +45852,11 @@ const Close$b = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
46595
45852
|
}), /*#__PURE__*/React.createElement("path", {
|
|
46596
45853
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
46597
45854
|
}));
|
|
46598
|
-
const CloseBtn$
|
|
45855
|
+
const CloseBtn$b = props => {
|
|
46599
45856
|
return /*#__PURE__*/React.createElement("div", {
|
|
46600
45857
|
className: "icon-bg-secondary",
|
|
46601
45858
|
onClick: props.onClick
|
|
46602
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
45859
|
+
}, /*#__PURE__*/React.createElement(Close$c, null));
|
|
46603
45860
|
};
|
|
46604
45861
|
const ActionModal$a = _ref => {
|
|
46605
45862
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
@@ -46659,8 +45916,8 @@ const ActionModal$a = _ref => {
|
|
|
46659
45916
|
if (file.size >= 5242880) {
|
|
46660
45917
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
46661
45918
|
} else {
|
|
46662
|
-
const _temp = _finallyRethrows
|
|
46663
|
-
return _catch
|
|
45919
|
+
const _temp = _finallyRethrows(function () {
|
|
45920
|
+
return _catch(function () {
|
|
46664
45921
|
return Promise.resolve(Digit.UploadServices.Filestorage("StreetVending", file, tenantId)).then(function (response) {
|
|
46665
45922
|
var _response$data, _response$data$files;
|
|
46666
45923
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -46727,10 +45984,10 @@ const ActionModal$a = _ref => {
|
|
|
46727
45984
|
}));
|
|
46728
45985
|
}, [action, approvers, uploadedFile]);
|
|
46729
45986
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
46730
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
45987
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$b, {
|
|
46731
45988
|
label: t(config.label.heading)
|
|
46732
45989
|
}),
|
|
46733
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
45990
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$b, {
|
|
46734
45991
|
onClick: closeModal
|
|
46735
45992
|
}),
|
|
46736
45993
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -46814,12 +46071,12 @@ const configWTApproverApplication = _ref => {
|
|
|
46814
46071
|
};
|
|
46815
46072
|
};
|
|
46816
46073
|
|
|
46817
|
-
const Heading$
|
|
46074
|
+
const Heading$c = props => {
|
|
46818
46075
|
return /*#__PURE__*/React.createElement("h1", {
|
|
46819
46076
|
className: "heading-m"
|
|
46820
46077
|
}, props.label);
|
|
46821
46078
|
};
|
|
46822
|
-
const Close$
|
|
46079
|
+
const Close$d = () => /*#__PURE__*/React.createElement("svg", {
|
|
46823
46080
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46824
46081
|
viewBox: "0 0 24 24",
|
|
46825
46082
|
fill: "#FFFFFF"
|
|
@@ -46829,11 +46086,11 @@ const Close$c = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
46829
46086
|
}), /*#__PURE__*/React.createElement("path", {
|
|
46830
46087
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
46831
46088
|
}));
|
|
46832
|
-
const CloseBtn$
|
|
46089
|
+
const CloseBtn$c = props => {
|
|
46833
46090
|
return /*#__PURE__*/React.createElement("div", {
|
|
46834
46091
|
className: "icon-bg-secondary",
|
|
46835
46092
|
onClick: props.onClick
|
|
46836
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
46093
|
+
}, /*#__PURE__*/React.createElement(Close$d, null));
|
|
46837
46094
|
};
|
|
46838
46095
|
const ActionModal$b = _ref => {
|
|
46839
46096
|
var _action$assigneeRoles, _action$assigneeRoles2, _dsoData$vendor, _vehicleData$vehicle, _vehicleData$vehicle$;
|
|
@@ -46949,7 +46206,7 @@ const ActionModal$b = _ref => {
|
|
|
46949
46206
|
if (file.size >= 5242880) {
|
|
46950
46207
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
46951
46208
|
} else {
|
|
46952
|
-
const _temp = _catch
|
|
46209
|
+
const _temp = _catch(function () {
|
|
46953
46210
|
return Promise.resolve(Digit.UploadServices.Filestorage("WT", file, tenantId)).then(function (response) {
|
|
46954
46211
|
var _response$data, _response$data$files;
|
|
46955
46212
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -47031,10 +46288,10 @@ const ActionModal$b = _ref => {
|
|
|
47031
46288
|
}
|
|
47032
46289
|
}, [action, approvers, uploadedFile, dsoData, selectVehicle, vehicleData]);
|
|
47033
46290
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
47034
|
-
headerBarMain: /*#__PURE__*/React.createElement(Heading$
|
|
46291
|
+
headerBarMain: /*#__PURE__*/React.createElement(Heading$c, {
|
|
47035
46292
|
label: t(config.label.heading)
|
|
47036
46293
|
}),
|
|
47037
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
46294
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$c, {
|
|
47038
46295
|
onClick: closeModal
|
|
47039
46296
|
}),
|
|
47040
46297
|
actionCancelLabel: t(config.label.cancel),
|
|
@@ -47633,7 +46890,7 @@ function SelectDocument$4(_ref) {
|
|
|
47633
46890
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
47634
46891
|
setError(t(`NOT_SUPPORTED_FILE_TYPE`));
|
|
47635
46892
|
} else {
|
|
47636
|
-
const _temp = _catch
|
|
46893
|
+
const _temp = _catch(function () {
|
|
47637
46894
|
setUploadedFile(null);
|
|
47638
46895
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
47639
46896
|
var _response$data, _response$data$files;
|
|
@@ -47921,7 +47178,7 @@ const PermissionCheck = _ref => {
|
|
|
47921
47178
|
} : {},
|
|
47922
47179
|
placeholder: t("BPA_ENTER_PERMIT_CONDITIONS_LABEL")
|
|
47923
47180
|
}), /*#__PURE__*/React.createElement(LinkButton, {
|
|
47924
|
-
label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$
|
|
47181
|
+
label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$g, {
|
|
47925
47182
|
style: {
|
|
47926
47183
|
float: "right",
|
|
47927
47184
|
position: "relative",
|
|
@@ -48014,7 +47271,7 @@ function PropertyDocuments(_ref) {
|
|
|
48014
47271
|
};
|
|
48015
47272
|
const forceDownload = function (url, fileName) {
|
|
48016
47273
|
try {
|
|
48017
|
-
return Promise.resolve(_catch
|
|
47274
|
+
return Promise.resolve(_catch(function () {
|
|
48018
47275
|
return Promise.resolve(fetch(url)).then(function (response) {
|
|
48019
47276
|
if (!response.ok) {
|
|
48020
47277
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
@@ -48550,7 +47807,7 @@ const ScruntinyDetails = _ref => {
|
|
|
48550
47807
|
}
|
|
48551
47808
|
}, t(data === null || data === void 0 ? void 0 : data.value));else if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return t(data === null || data === void 0 ? void 0 : data.value);else if (data !== null && data !== void 0 && data.value) return data === null || data === void 0 ? void 0 : data.value;else t("NA");
|
|
48552
47809
|
};
|
|
48553
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
47810
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, !(scrutinyDetails !== null && scrutinyDetails !== void 0 && scrutinyDetails.isChecklist) && /*#__PURE__*/React.createElement("div", {
|
|
48554
47811
|
style: {
|
|
48555
47812
|
background: "#FAFAFA",
|
|
48556
47813
|
border: "1px solid #D6D5D4",
|
|
@@ -48608,7 +47865,7 @@ const ScruntinyDetails = _ref => {
|
|
|
48608
47865
|
}
|
|
48609
47866
|
}, value === null || value === void 0 ? void 0 : value.title);
|
|
48610
47867
|
})), /*#__PURE__*/React.createElement("div", null, scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$scru = scrutinyDetails.scruntinyDetails) === null || _scrutinyDetails$scru === void 0 ? void 0 : _scrutinyDetails$scru.map((report, index) => {
|
|
48611
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
47868
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Row, {
|
|
48612
47869
|
className: "border-none",
|
|
48613
47870
|
label: `${t(report === null || report === void 0 ? void 0 : report.title)}`,
|
|
48614
47871
|
labelStyle: {
|
|
@@ -48717,7 +47974,7 @@ const SubOccupancyTable = _ref => {
|
|
|
48717
47974
|
}
|
|
48718
47975
|
return returnValue ? returnValue : "NA";
|
|
48719
47976
|
}
|
|
48720
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
47977
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
48721
47978
|
style: {
|
|
48722
47979
|
background: "#FAFAFA",
|
|
48723
47980
|
border: "1px solid #D6D5D4",
|
|
@@ -49325,7 +48582,7 @@ const ArrearSummary = _ref => {
|
|
|
49325
48582
|
}, t("CS_HIDE_CARD"))));
|
|
49326
48583
|
};
|
|
49327
48584
|
|
|
49328
|
-
const Close$
|
|
48585
|
+
const Close$e = () => /*#__PURE__*/React.createElement("svg", {
|
|
49329
48586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49330
48587
|
viewBox: "0 0 24 24",
|
|
49331
48588
|
fill: "#FFFFFF"
|
|
@@ -49335,11 +48592,11 @@ const Close$d = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
49335
48592
|
}), /*#__PURE__*/React.createElement("path", {
|
|
49336
48593
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
49337
48594
|
}));
|
|
49338
|
-
const CloseBtn$
|
|
48595
|
+
const CloseBtn$d = props => {
|
|
49339
48596
|
return /*#__PURE__*/React.createElement("div", {
|
|
49340
48597
|
className: "icon-bg-secondary",
|
|
49341
48598
|
onClick: props.onClick
|
|
49342
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
48599
|
+
}, /*#__PURE__*/React.createElement(Close$e, null));
|
|
49343
48600
|
};
|
|
49344
48601
|
const RenewPopup = _ref => {
|
|
49345
48602
|
let {
|
|
@@ -49367,7 +48624,7 @@ const RenewPopup = _ref => {
|
|
|
49367
48624
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
49368
48625
|
label: "SV_WANT_TO_EDIT"
|
|
49369
48626
|
}),
|
|
49370
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
48627
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$d, {
|
|
49371
48628
|
onClick: closeModal
|
|
49372
48629
|
}),
|
|
49373
48630
|
actionCancelLabel: t("CS_COMMON_BACK"),
|
|
@@ -49512,7 +48769,7 @@ const DueVerification = _ref => {
|
|
|
49512
48769
|
try {
|
|
49513
48770
|
return Promise.resolve(function () {
|
|
49514
48771
|
if (isZROApproval && applicationData !== null && applicationData !== void 0 && applicationData.applicationNo) {
|
|
49515
|
-
return _catch
|
|
48772
|
+
return _catch(function () {
|
|
49516
48773
|
return Promise.resolve(checkDueVerification({
|
|
49517
48774
|
DueVerification: {
|
|
49518
48775
|
applicationNo: applicationData.applicationNo
|
|
@@ -49556,7 +48813,7 @@ const DueVerification = _ref => {
|
|
|
49556
48813
|
});
|
|
49557
48814
|
return;
|
|
49558
48815
|
}
|
|
49559
|
-
return _catch
|
|
48816
|
+
return _catch(function () {
|
|
49560
48817
|
return Promise.resolve(checkDueVerification({
|
|
49561
48818
|
DueVerification: {
|
|
49562
48819
|
kno: kno
|
|
@@ -50349,7 +49606,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
50349
49606
|
showApprovalChecklist: showApprovalChecklist,
|
|
50350
49607
|
values: approvalChecklist,
|
|
50351
49608
|
onChange: onApprovalChecklistChange
|
|
50352
|
-
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.timeline) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$
|
|
49609
|
+
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.timeline) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
50353
49610
|
id: "timeline"
|
|
50354
49611
|
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
50355
49612
|
style: {
|
|
@@ -50601,7 +49858,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
50601
49858
|
}, t(`${forcedActionPrefix || `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}`}_${actions === null || actions === void 0 ? void 0 : (_actions$4 = actions[0]) === null || _actions$4 === void 0 ? void 0 : _actions$4.action}`))));
|
|
50602
49859
|
}
|
|
50603
49860
|
|
|
50604
|
-
const Close$
|
|
49861
|
+
const Close$f = () => /*#__PURE__*/React.createElement("svg", {
|
|
50605
49862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50606
49863
|
viewBox: "0 0 24 24",
|
|
50607
49864
|
fill: "#FFFFFF"
|
|
@@ -50611,11 +49868,11 @@ const Close$e = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
50611
49868
|
}), /*#__PURE__*/React.createElement("path", {
|
|
50612
49869
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
50613
49870
|
}));
|
|
50614
|
-
const CloseBtn$
|
|
49871
|
+
const CloseBtn$e = props => {
|
|
50615
49872
|
return /*#__PURE__*/React.createElement("div", {
|
|
50616
49873
|
className: "icon-bg-secondary",
|
|
50617
49874
|
onClick: props.onClick
|
|
50618
|
-
}, /*#__PURE__*/React.createElement(Close$
|
|
49875
|
+
}, /*#__PURE__*/React.createElement(Close$f, null));
|
|
50619
49876
|
};
|
|
50620
49877
|
function ApplicationDetailsWarningPopup(_ref) {
|
|
50621
49878
|
let {
|
|
@@ -50633,7 +49890,7 @@ function ApplicationDetailsWarningPopup(_ref) {
|
|
|
50633
49890
|
headerBarMain: /*#__PURE__*/React.createElement("h1", {
|
|
50634
49891
|
className: "heading-m"
|
|
50635
49892
|
}, t("PT_DUES_ARE_PENDING")),
|
|
50636
|
-
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$
|
|
49893
|
+
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
|
|
50637
49894
|
onClick: () => {
|
|
50638
49895
|
closeWarningPopup();
|
|
50639
49896
|
}
|
|
@@ -50918,7 +50175,7 @@ const ApplicationDetails = props => {
|
|
|
50918
50175
|
const nocPrmomises = (_nocData = nocData) === null || _nocData === void 0 ? void 0 : _nocData.map(noc => {
|
|
50919
50176
|
return nocMutation === null || nocMutation === void 0 ? void 0 : nocMutation.mutateAsync(noc);
|
|
50920
50177
|
});
|
|
50921
|
-
const _temp = _catch
|
|
50178
|
+
const _temp = _catch(function () {
|
|
50922
50179
|
setIsEnableLoader(true);
|
|
50923
50180
|
return Promise.resolve(Promise.all(nocPrmomises)).then(function (values) {
|
|
50924
50181
|
values && values.map(ob => {
|
|
@@ -51786,7 +51043,7 @@ const GetConnectionDetails = () => {
|
|
|
51786
51043
|
onClick: props.onClick
|
|
51787
51044
|
}, /*#__PURE__*/React.createElement(Close, null));
|
|
51788
51045
|
};
|
|
51789
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
51046
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
51790
51047
|
style: {
|
|
51791
51048
|
position: "relative",
|
|
51792
51049
|
width: "100%",
|
|
@@ -52255,7 +51512,7 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
52255
51512
|
label: t("WS_ACK_PDF"),
|
|
52256
51513
|
onClick: () => getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails, applicationDetails)
|
|
52257
51514
|
}];
|
|
52258
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
51515
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
52259
51516
|
className: "employee-main-application-details"
|
|
52260
51517
|
}, /*#__PURE__*/React.createElement("div", {
|
|
52261
51518
|
className: "employee-application-details",
|
|
@@ -52367,7 +51624,7 @@ const Search = _ref => {
|
|
|
52367
51624
|
var _result$data3;
|
|
52368
51625
|
return (result === null || result === void 0 ? void 0 : (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : _result$data3.length) > 0 ? true : false;
|
|
52369
51626
|
};
|
|
52370
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
51627
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Search, {
|
|
52371
51628
|
t: t,
|
|
52372
51629
|
tenantId: tenantId,
|
|
52373
51630
|
onSubmit: onSubmit,
|
|
@@ -52466,7 +51723,7 @@ const SearchWater = _ref => {
|
|
|
52466
51723
|
}
|
|
52467
51724
|
return item;
|
|
52468
51725
|
});
|
|
52469
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
51726
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
|
|
52470
51727
|
t: t,
|
|
52471
51728
|
tenantId: tenantId,
|
|
52472
51729
|
onSubmit: onSubmit,
|
|
@@ -57068,7 +56325,7 @@ const MutationApplication = () => {
|
|
|
57068
56325
|
search: location.search,
|
|
57069
56326
|
state: location.state
|
|
57070
56327
|
}
|
|
57071
|
-
}) : /*#__PURE__*/React.createElement(Fragment$
|
|
56328
|
+
}) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Step1_ExistingConnection, {
|
|
57072
56329
|
t: t,
|
|
57073
56330
|
applicationDetails: authActiveConnection ? {
|
|
57074
56331
|
applicationData: authActiveConnection
|
|
@@ -57722,7 +56979,7 @@ const GetDisconnectionDetails = () => {
|
|
|
57722
56979
|
dowloadOptions.sort(function (a, b) {
|
|
57723
56980
|
return a.order - b.order;
|
|
57724
56981
|
});
|
|
57725
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
56982
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
57726
56983
|
className: "employee-main-application-details",
|
|
57727
56984
|
style: {
|
|
57728
56985
|
display: "flex",
|
|
@@ -57977,7 +57234,7 @@ const ModifyApplicationDetails = () => {
|
|
|
57977
57234
|
dowloadOptions.sort(function (a, b) {
|
|
57978
57235
|
return a.order - b.order;
|
|
57979
57236
|
});
|
|
57980
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
57237
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
57981
57238
|
className: "employee-main-application-details"
|
|
57982
57239
|
}, /*#__PURE__*/React.createElement("div", {
|
|
57983
57240
|
className: "employee-application-details",
|
|
@@ -58494,7 +57751,7 @@ const SearchFields$2 = _ref => {
|
|
|
58494
57751
|
},
|
|
58495
57752
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
58496
57753
|
};
|
|
58497
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
57754
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
|
|
58498
57755
|
style: {
|
|
58499
57756
|
width: "100%"
|
|
58500
57757
|
}
|
|
@@ -58717,7 +57974,7 @@ const SearchWaterConnectionIntegrated = _ref => {
|
|
|
58717
57974
|
return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
|
|
58718
57975
|
}
|
|
58719
57976
|
}], []);
|
|
58720
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
57977
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
|
|
58721
57978
|
styles: {
|
|
58722
57979
|
fontSize: "32px"
|
|
58723
57980
|
}
|
|
@@ -58854,7 +58111,7 @@ const SearchIntegrated = _ref => {
|
|
|
58854
58111
|
var _result12$data5, _result$data5;
|
|
58855
58112
|
return (result12 === null || result12 === void 0 ? void 0 : (_result12$data5 = result12.data) === null || _result12$data5 === void 0 ? void 0 : _result12$data5.length) > 0 || (result === null || result === void 0 ? void 0 : (_result$data5 = result.data) === null || _result$data5 === void 0 ? void 0 : _result$data5.length) > 0 ? true : false;
|
|
58856
58113
|
};
|
|
58857
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
58114
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
|
|
58858
58115
|
t: t,
|
|
58859
58116
|
tenantId: tenantId,
|
|
58860
58117
|
onSubmit: onSubmit,
|
|
@@ -58879,7 +58136,7 @@ const SearchWaterConnectionViewIntegrated = _ref => {
|
|
|
58879
58136
|
count,
|
|
58880
58137
|
resultOk
|
|
58881
58138
|
} = _ref;
|
|
58882
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
58139
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchWaterConnectionIntegrated, {
|
|
58883
58140
|
onSubmit: onSubmit,
|
|
58884
58141
|
data: data,
|
|
58885
58142
|
count: count,
|
|
@@ -58945,7 +58202,7 @@ const BulkBillGeneration = _ref => {
|
|
|
58945
58202
|
var _result$meterReadings;
|
|
58946
58203
|
return (result === null || result === void 0 ? void 0 : (_result$meterReadings = result.meterReadings) === null || _result$meterReadings === void 0 ? void 0 : _result$meterReadings.length) > 0 ? true : false;
|
|
58947
58204
|
};
|
|
58948
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
58205
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(WSBulkBillSearch, {
|
|
58949
58206
|
t: t,
|
|
58950
58207
|
tenantId: tenantId,
|
|
58951
58208
|
onSubmit: onSubmit,
|