@djb25/digit-ui-module-ws 1.0.64 → 1.0.66
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 +1038 -82
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1085 -129
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$
|
|
1
|
+
import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$2, 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
4
|
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, LayoutWrapper, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, DatePicker, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, WrapUnMaskComponent, MobileNumber, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, 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, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$f, BreakLine, AddIcon, CheckPoint, ConnectingCheckPoints, Menu, ButtonSelector as ButtonSelector$1, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
@@ -6,6 +6,31 @@ import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
|
|
|
6
6
|
import { read, utils as utils$1 } from 'xlsx';
|
|
7
7
|
import { useQueryClient } from 'react-query';
|
|
8
8
|
|
|
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";
|
|
11
|
+
function _catch(body, recover) {
|
|
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;
|
|
21
|
+
}
|
|
22
|
+
function _finallyRethrows(body, finalizer) {
|
|
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);
|
|
32
|
+
}
|
|
33
|
+
|
|
9
34
|
const TestAcknowledgment = () => {
|
|
10
35
|
const getPDFData = (application, t) => {
|
|
11
36
|
var _tenantInfo$city;
|
|
@@ -8895,6 +8920,47 @@ const App = _ref => {
|
|
|
8895
8920
|
let wsCount = (wsData === null || wsData === void 0 ? void 0 : (_wsData$WaterConnecti = wsData.WaterConnection) === null || _wsData$WaterConnecti === void 0 ? void 0 : (_wsData$WaterConnecti2 = _wsData$WaterConnecti.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.applicationType) !== "MODIFY_WATER_CONNECTION")) === null || _wsData$WaterConnecti2 === void 0 ? void 0 : _wsData$WaterConnecti2.length) || 0;
|
|
8896
8921
|
let swCount = (swData === null || swData === void 0 ? void 0 : (_swData$SewerageConne = swData.SewerageConnections) === null || _swData$SewerageConne === void 0 ? void 0 : (_swData$SewerageConne2 = _swData$SewerageConne.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.applicationType) !== "MODIFY_SEWERAGE_CONNECTION")) === null || _swData$SewerageConne2 === void 0 ? void 0 : _swData$SewerageConne2.length) || 0;
|
|
8897
8922
|
let totalAppsCount = wsCount + swCount;
|
|
8923
|
+
useEffect(() => {
|
|
8924
|
+
const fetchToken = function () {
|
|
8925
|
+
try {
|
|
8926
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
8927
|
+
const code = urlParams.get("code");
|
|
8928
|
+
const _temp2 = function () {
|
|
8929
|
+
if (code) {
|
|
8930
|
+
const _temp = _catch(function () {
|
|
8931
|
+
const TokenReq = {
|
|
8932
|
+
module: "WS",
|
|
8933
|
+
code: code,
|
|
8934
|
+
dlReqRef: sessionStorage.getItem("code_verfier_register")
|
|
8935
|
+
};
|
|
8936
|
+
const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
|
|
8937
|
+
return Promise.resolve(Digit.DigiLockerService.token({
|
|
8938
|
+
TokenReq
|
|
8939
|
+
}, tenantId)).then(function (res) {
|
|
8940
|
+
var _res$TokenRes;
|
|
8941
|
+
const accessToken = (res === null || res === void 0 ? void 0 : (_res$TokenRes = res.TokenRes) === null || _res$TokenRes === void 0 ? void 0 : _res$TokenRes.access_token) || (res === null || res === void 0 ? void 0 : res.access_token);
|
|
8942
|
+
if (accessToken) {
|
|
8943
|
+
sessionStorage.setItem("DigiLocker.token1", accessToken);
|
|
8944
|
+
}
|
|
8945
|
+
urlParams.delete("code");
|
|
8946
|
+
urlParams.delete("state");
|
|
8947
|
+
const search = urlParams.toString();
|
|
8948
|
+
const newUrl = window.location.pathname + (search ? "?" + search : "");
|
|
8949
|
+
window.history.replaceState({}, document.title, newUrl);
|
|
8950
|
+
});
|
|
8951
|
+
}, function (error) {
|
|
8952
|
+
console.error("Error fetching DigiLocker token", error);
|
|
8953
|
+
});
|
|
8954
|
+
if (_temp && _temp.then) return _temp.then(function () {});
|
|
8955
|
+
}
|
|
8956
|
+
}();
|
|
8957
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
8958
|
+
} catch (e) {
|
|
8959
|
+
return Promise.reject(e);
|
|
8960
|
+
}
|
|
8961
|
+
};
|
|
8962
|
+
fetchToken();
|
|
8963
|
+
}, []);
|
|
8898
8964
|
const crumbs = [{
|
|
8899
8965
|
path: "/digit-ui/employee",
|
|
8900
8966
|
show: true,
|
|
@@ -10902,6 +10968,47 @@ const App$1 = _ref2 => {
|
|
|
10902
10968
|
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg, _Digit17, _Digit17$ComponentReg, _Digit18, _Digit18$ComponentReg, _Digit19, _Digit19$ComponentReg, _Digit20, _Digit20$ComponentReg, _Digit21, _Digit21$ComponentReg, _Digit22, _Digit22$ComponentReg, _Digit23, _Digit23$ComponentReg, _Digit24, _Digit24$ComponentReg, _Digit25, _Digit25$ComponentReg, _Digit26, _Digit26$ComponentReg, _Digit27, _Digit27$ComponentReg, _Digit28, _Digit28$ComponentReg, _Digit29, _Digit29$ComponentReg, _Digit30, _Digit30$ComponentReg;
|
|
10903
10969
|
let path = _ref2.path;
|
|
10904
10970
|
const location = useLocation();
|
|
10971
|
+
useEffect(() => {
|
|
10972
|
+
const fetchToken = function () {
|
|
10973
|
+
try {
|
|
10974
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
10975
|
+
const code = urlParams.get("code");
|
|
10976
|
+
const _temp5 = function () {
|
|
10977
|
+
if (code) {
|
|
10978
|
+
const _temp4 = _catch(function () {
|
|
10979
|
+
const TokenReq = {
|
|
10980
|
+
module: "WS",
|
|
10981
|
+
code: code,
|
|
10982
|
+
dlReqRef: sessionStorage.getItem("code_verfier_register")
|
|
10983
|
+
};
|
|
10984
|
+
const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
|
|
10985
|
+
return Promise.resolve(Digit.DigiLockerService.token({
|
|
10986
|
+
TokenReq
|
|
10987
|
+
}, tenantId)).then(function (res) {
|
|
10988
|
+
var _res$TokenRes;
|
|
10989
|
+
const accessToken = (res === null || res === void 0 ? void 0 : (_res$TokenRes = res.TokenRes) === null || _res$TokenRes === void 0 ? void 0 : _res$TokenRes.access_token) || (res === null || res === void 0 ? void 0 : res.access_token);
|
|
10990
|
+
if (accessToken) {
|
|
10991
|
+
sessionStorage.setItem("DigiLocker.token1", accessToken);
|
|
10992
|
+
}
|
|
10993
|
+
urlParams.delete("code");
|
|
10994
|
+
urlParams.delete("state");
|
|
10995
|
+
const search = urlParams.toString();
|
|
10996
|
+
const newUrl = window.location.pathname + (search ? "?" + search : "");
|
|
10997
|
+
window.history.replaceState({}, document.title, newUrl);
|
|
10998
|
+
});
|
|
10999
|
+
}, function (error) {
|
|
11000
|
+
console.error("Error fetching DigiLocker token", error);
|
|
11001
|
+
});
|
|
11002
|
+
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
11003
|
+
}
|
|
11004
|
+
}();
|
|
11005
|
+
return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(function () {}) : void 0);
|
|
11006
|
+
} catch (e) {
|
|
11007
|
+
return Promise.reject(e);
|
|
11008
|
+
}
|
|
11009
|
+
};
|
|
11010
|
+
fetchToken();
|
|
11011
|
+
}, []);
|
|
10905
11012
|
const WSDocsRequired = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSDocsRequired");
|
|
10906
11013
|
const WSInbox = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WSInbox");
|
|
10907
11014
|
const WSDisconnectionDocsRequired = (_Digit3 = Digit) === null || _Digit3 === void 0 ? void 0 : (_Digit3$ComponentRegi = _Digit3.ComponentRegistryService) === null || _Digit3$ComponentRegi === void 0 ? void 0 : _Digit3$ComponentRegi.getComponent("WSDisconnectionDocsRequired");
|
|
@@ -11905,31 +12012,6 @@ const WSActivationDetails = _ref => {
|
|
|
11905
12012
|
}))));
|
|
11906
12013
|
};
|
|
11907
12014
|
|
|
11908
|
-
const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
11909
|
-
const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
11910
|
-
function _catch(body, recover) {
|
|
11911
|
-
try {
|
|
11912
|
-
var result = body();
|
|
11913
|
-
} catch (e) {
|
|
11914
|
-
return recover(e);
|
|
11915
|
-
}
|
|
11916
|
-
if (result && result.then) {
|
|
11917
|
-
return result.then(void 0, recover);
|
|
11918
|
-
}
|
|
11919
|
-
return result;
|
|
11920
|
-
}
|
|
11921
|
-
function _finallyRethrows(body, finalizer) {
|
|
11922
|
-
try {
|
|
11923
|
-
var result = body();
|
|
11924
|
-
} catch (e) {
|
|
11925
|
-
return finalizer(true, e);
|
|
11926
|
-
}
|
|
11927
|
-
if (result && result.then) {
|
|
11928
|
-
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
11929
|
-
}
|
|
11930
|
-
return finalizer(false, result);
|
|
11931
|
-
}
|
|
11932
|
-
|
|
11933
12015
|
const createConnectionDetails = () => ({
|
|
11934
12016
|
water: true,
|
|
11935
12017
|
sewerage: false,
|
|
@@ -16214,6 +16296,20 @@ const WSActivationSupportingDocuments = _ref => {
|
|
|
16214
16296
|
}))));
|
|
16215
16297
|
};
|
|
16216
16298
|
|
|
16299
|
+
const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
16300
|
+
const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
16301
|
+
function _catch$1(body, recover) {
|
|
16302
|
+
try {
|
|
16303
|
+
var result = body();
|
|
16304
|
+
} catch (e) {
|
|
16305
|
+
return recover(e);
|
|
16306
|
+
}
|
|
16307
|
+
if (result && result.then) {
|
|
16308
|
+
return result.then(void 0, recover);
|
|
16309
|
+
}
|
|
16310
|
+
return result;
|
|
16311
|
+
}
|
|
16312
|
+
|
|
16217
16313
|
var b = "function" === typeof Symbol && Symbol.for,
|
|
16218
16314
|
c = b ? Symbol.for("react.element") : 60103,
|
|
16219
16315
|
d = b ? Symbol.for("react.portal") : 60106,
|
|
@@ -17346,14 +17442,22 @@ const UploadFileDigiLocker = props => {
|
|
|
17346
17442
|
const fetchDigiLockerDocuments = function (e) {
|
|
17347
17443
|
try {
|
|
17348
17444
|
e.preventDefault();
|
|
17349
|
-
return Promise.resolve(_catch(function () {
|
|
17350
|
-
const digiLockerToken = sessionStorage.getItem("DigiLocker.token1")
|
|
17445
|
+
return Promise.resolve(_catch$1(function () {
|
|
17446
|
+
const digiLockerToken = sessionStorage.getItem("DigiLocker.token1");
|
|
17447
|
+
if (!digiLockerToken) {
|
|
17448
|
+
setShowToast({
|
|
17449
|
+
error: true,
|
|
17450
|
+
label: "Please login to DigiLocker first to fetch documents."
|
|
17451
|
+
});
|
|
17452
|
+
return;
|
|
17453
|
+
}
|
|
17351
17454
|
let TokenReq = {
|
|
17352
17455
|
authToken: digiLockerToken
|
|
17353
17456
|
};
|
|
17457
|
+
const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
|
|
17354
17458
|
return Promise.resolve(Digit.DigiLockerService.issueDoc({
|
|
17355
17459
|
TokenReq
|
|
17356
|
-
})).then(function (res1) {
|
|
17460
|
+
}, tenantId)).then(function (res1) {
|
|
17357
17461
|
if (!res1 || !res1.IssuedDoc) {
|
|
17358
17462
|
setShowToast({
|
|
17359
17463
|
error: true,
|
|
@@ -17373,9 +17477,10 @@ const UploadFileDigiLocker = props => {
|
|
|
17373
17477
|
authToken: digiLockerToken,
|
|
17374
17478
|
id: uri[0].uri
|
|
17375
17479
|
};
|
|
17480
|
+
const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
|
|
17376
17481
|
return Promise.resolve(Digit.DigiLockerService.uri({
|
|
17377
17482
|
TokenReq: TokenReqNew
|
|
17378
|
-
})).then(function (res2) {
|
|
17483
|
+
}, tenantId)).then(function (res2) {
|
|
17379
17484
|
let c = new Blob([res2]);
|
|
17380
17485
|
let filename = doctype + "_" + (uri[0].name || "document") + ".pdf";
|
|
17381
17486
|
convertToFile(e, c, filename);
|
|
@@ -17426,7 +17531,7 @@ const UploadFileDigiLocker = props => {
|
|
|
17426
17531
|
fill: "#0B0C0C"
|
|
17427
17532
|
}));
|
|
17428
17533
|
const showHint = (props === null || props === void 0 ? void 0 : props.showHint) || false;
|
|
17429
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
17534
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, showHint && /*#__PURE__*/React.createElement("p", {
|
|
17430
17535
|
className: "cell-text"
|
|
17431
17536
|
}, t(props === null || props === void 0 ? void 0 : props.hintText)), /*#__PURE__*/React.createElement("div", {
|
|
17432
17537
|
className: "upload-file " + (user_type === "employee" ? "" : "upload-file-max-width") + " " + (props.disabled ? " disabled" : ""),
|
|
@@ -18691,7 +18796,7 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
18691
18796
|
wsDocs = _Digit$Hooks$ws$WSSea.data;
|
|
18692
18797
|
if (userType === "citizen") {
|
|
18693
18798
|
var _wsDocs$Disconnection;
|
|
18694
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
18799
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t("WS_COMMON_APPLICATION_DISCONNECTION")), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
|
|
18695
18800
|
style: {
|
|
18696
18801
|
margin: "0px"
|
|
18697
18802
|
},
|
|
@@ -18717,7 +18822,7 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
18717
18822
|
color: "#0B0C0C",
|
|
18718
18823
|
marginTop: "12px"
|
|
18719
18824
|
}
|
|
18720
|
-
}, t("WS_NEW_CONNECTION_TEST_3")), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
18825
|
+
}, t("WS_NEW_CONNECTION_TEST_3")), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((doc, index) => {
|
|
18721
18826
|
var _doc$dropdownData;
|
|
18722
18827
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
18723
18828
|
style: {
|
|
@@ -23281,7 +23386,7 @@ const FilterFormFieldsComponent = _ref => {
|
|
|
23281
23386
|
});
|
|
23282
23387
|
return props.onChange(res);
|
|
23283
23388
|
};
|
|
23284
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
23389
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
23285
23390
|
name: "assignee",
|
|
23286
23391
|
control: controlFilterForm,
|
|
23287
23392
|
render: props => {
|
|
@@ -23312,7 +23417,7 @@ const FilterFormFieldsComponent = _ref => {
|
|
|
23312
23417
|
});
|
|
23313
23418
|
});
|
|
23314
23419
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
23315
|
-
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
23420
|
+
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
23316
23421
|
className: "filter-label sub-filter-label"
|
|
23317
23422
|
}, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
|
|
23318
23423
|
options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
|
|
@@ -23347,9 +23452,9 @@ const FilterFormFieldsComponent = _ref => {
|
|
|
23347
23452
|
key: index + 1
|
|
23348
23453
|
});
|
|
23349
23454
|
}), [props.value, statuses]);
|
|
23350
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
23455
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
23351
23456
|
className: "filter-label sub-filter-label"
|
|
23352
|
-
}, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
23457
|
+
}, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, " ", renderStatusCheckBoxess));
|
|
23353
23458
|
}
|
|
23354
23459
|
})), (selectedApplicationType === null || selectedApplicationType === void 0 ? void 0 : selectedApplicationType.length) > 0 ? /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
23355
23460
|
name: "applicationStatus",
|
|
@@ -23376,9 +23481,9 @@ const FilterFormFieldsComponent = _ref => {
|
|
|
23376
23481
|
});
|
|
23377
23482
|
});
|
|
23378
23483
|
}, [props.value, statuses, selectedApplicationType]);
|
|
23379
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
23484
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
23380
23485
|
className: "filter-label sub-filter-label"
|
|
23381
|
-
}, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
23486
|
+
}, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, renderStatusCheckBoxes));
|
|
23382
23487
|
}
|
|
23383
23488
|
})) : null);
|
|
23384
23489
|
};
|
|
@@ -24557,7 +24662,7 @@ const SearchFields$1 = _ref => {
|
|
|
24557
24662
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
24558
24663
|
};
|
|
24559
24664
|
let validation = {};
|
|
24560
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
24665
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, _extends({
|
|
24561
24666
|
name: "connectionNumber",
|
|
24562
24667
|
inputRef: register({})
|
|
24563
24668
|
}, validation = {
|
|
@@ -25183,7 +25288,7 @@ const BulkBillSearchFields = _ref => {
|
|
|
25183
25288
|
setValue('tenantId', tenant);
|
|
25184
25289
|
setLocality(value);
|
|
25185
25290
|
}
|
|
25186
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
25291
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_CITY")), /*#__PURE__*/React.createElement(TextInput, {
|
|
25187
25292
|
name: "city",
|
|
25188
25293
|
disable: true,
|
|
25189
25294
|
value: t(tenant),
|
|
@@ -25604,7 +25709,7 @@ const BulkBillSearch = _ref => {
|
|
|
25604
25709
|
return GetCell((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["status"]);
|
|
25605
25710
|
}
|
|
25606
25711
|
}]);
|
|
25607
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
25712
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, {
|
|
25608
25713
|
styles: {
|
|
25609
25714
|
fontSize: "32px"
|
|
25610
25715
|
}
|
|
@@ -25975,7 +26080,7 @@ const SearchFormFieldsComponents$1 = _ref => {
|
|
|
25975
26080
|
componentInFront: "+91"
|
|
25976
26081
|
};
|
|
25977
26082
|
let validation = {};
|
|
25978
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
26083
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, {
|
|
25979
26084
|
className: "wns-search-field"
|
|
25980
26085
|
}, /*#__PURE__*/React.createElement("label", null, t("BILLAMEND_APPLICATIONNO")), /*#__PURE__*/React.createElement(TextInput, _extends({
|
|
25981
26086
|
name: "applicationNumber",
|
|
@@ -26040,7 +26145,7 @@ const FilterFormFieldsComponent$1 = _ref => {
|
|
|
26040
26145
|
});
|
|
26041
26146
|
return props.onChange(res);
|
|
26042
26147
|
};
|
|
26043
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
26148
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
26044
26149
|
name: "assignee",
|
|
26045
26150
|
control: controlFilterForm,
|
|
26046
26151
|
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
@@ -26069,7 +26174,7 @@ const FilterFormFieldsComponent$1 = _ref => {
|
|
|
26069
26174
|
});
|
|
26070
26175
|
});
|
|
26071
26176
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
26072
|
-
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
26177
|
+
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
26073
26178
|
className: "filter-label sub-filter-label"
|
|
26074
26179
|
}, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
|
|
26075
26180
|
options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
|
|
@@ -26108,9 +26213,9 @@ const FilterFormFieldsComponent$1 = _ref => {
|
|
|
26108
26213
|
key: index + 1
|
|
26109
26214
|
});
|
|
26110
26215
|
}), [props.value, statuses]);
|
|
26111
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
26216
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
26112
26217
|
className: "filter-label sub-filter-label"
|
|
26113
|
-
}, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
26218
|
+
}, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, " ", renderStatusCheckBoxess));
|
|
26114
26219
|
}
|
|
26115
26220
|
})));
|
|
26116
26221
|
};
|
|
@@ -26582,7 +26687,7 @@ const Inbox = _ref => {
|
|
|
26582
26687
|
sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
|
|
26583
26688
|
onSortFormReset
|
|
26584
26689
|
};
|
|
26585
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
26690
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, null, t("ES_COMMON_INBOX"), totalCount ? /*#__PURE__*/React.createElement("p", {
|
|
26586
26691
|
className: "inbox-count"
|
|
26587
26692
|
}, totalCount) : null), /*#__PURE__*/React.createElement(InboxComposer, _extends({
|
|
26588
26693
|
isInboxLoading,
|
|
@@ -27655,6 +27760,889 @@ const config = [{
|
|
|
27655
27760
|
}]
|
|
27656
27761
|
}];
|
|
27657
27762
|
|
|
27763
|
+
var b$1 = "function" === typeof Symbol && Symbol.for,
|
|
27764
|
+
c$1 = b$1 ? Symbol.for("react.element") : 60103,
|
|
27765
|
+
d$1 = b$1 ? Symbol.for("react.portal") : 60106,
|
|
27766
|
+
e$1 = b$1 ? Symbol.for("react.fragment") : 60107,
|
|
27767
|
+
f$1 = b$1 ? Symbol.for("react.strict_mode") : 60108,
|
|
27768
|
+
g$1 = b$1 ? Symbol.for("react.profiler") : 60114,
|
|
27769
|
+
h$1 = b$1 ? Symbol.for("react.provider") : 60109,
|
|
27770
|
+
k$1 = b$1 ? Symbol.for("react.context") : 60110,
|
|
27771
|
+
l$1 = b$1 ? Symbol.for("react.async_mode") : 60111,
|
|
27772
|
+
m$1 = b$1 ? Symbol.for("react.concurrent_mode") : 60111,
|
|
27773
|
+
n$1 = b$1 ? Symbol.for("react.forward_ref") : 60112,
|
|
27774
|
+
p$1 = b$1 ? Symbol.for("react.suspense") : 60113,
|
|
27775
|
+
q$1 = b$1 ? Symbol.for("react.suspense_list") : 60120,
|
|
27776
|
+
r$1 = b$1 ? Symbol.for("react.memo") : 60115,
|
|
27777
|
+
t$1 = b$1 ? Symbol.for("react.lazy") : 60116,
|
|
27778
|
+
v$1 = b$1 ? Symbol.for("react.block") : 60121,
|
|
27779
|
+
w$1 = b$1 ? Symbol.for("react.fundamental") : 60117,
|
|
27780
|
+
x$1 = b$1 ? Symbol.for("react.responder") : 60118,
|
|
27781
|
+
y$1 = b$1 ? Symbol.for("react.scope") : 60119;
|
|
27782
|
+
function z$1(a) {
|
|
27783
|
+
if ("object" === typeof a && null !== a) {
|
|
27784
|
+
var u = a.$$typeof;
|
|
27785
|
+
switch (u) {
|
|
27786
|
+
case c$1:
|
|
27787
|
+
switch (a = a.type, a) {
|
|
27788
|
+
case l$1:
|
|
27789
|
+
case m$1:
|
|
27790
|
+
case e$1:
|
|
27791
|
+
case g$1:
|
|
27792
|
+
case f$1:
|
|
27793
|
+
case p$1:
|
|
27794
|
+
return a;
|
|
27795
|
+
default:
|
|
27796
|
+
switch (a = a && a.$$typeof, a) {
|
|
27797
|
+
case k$1:
|
|
27798
|
+
case n$1:
|
|
27799
|
+
case t$1:
|
|
27800
|
+
case r$1:
|
|
27801
|
+
case h$1:
|
|
27802
|
+
return a;
|
|
27803
|
+
default:
|
|
27804
|
+
return u;
|
|
27805
|
+
}
|
|
27806
|
+
}
|
|
27807
|
+
case d$1:
|
|
27808
|
+
return u;
|
|
27809
|
+
}
|
|
27810
|
+
}
|
|
27811
|
+
}
|
|
27812
|
+
function A$1(a) {
|
|
27813
|
+
return z$1(a) === m$1;
|
|
27814
|
+
}
|
|
27815
|
+
var AsyncMode$1 = l$1;
|
|
27816
|
+
var ConcurrentMode$1 = m$1;
|
|
27817
|
+
var ContextConsumer$1 = k$1;
|
|
27818
|
+
var ContextProvider$1 = h$1;
|
|
27819
|
+
var Element$1 = c$1;
|
|
27820
|
+
var ForwardRef$1 = n$1;
|
|
27821
|
+
var Fragment$1 = e$1;
|
|
27822
|
+
var Lazy$1 = t$1;
|
|
27823
|
+
var Memo$1 = r$1;
|
|
27824
|
+
var Portal$1 = d$1;
|
|
27825
|
+
var Profiler$1 = g$1;
|
|
27826
|
+
var StrictMode$1 = f$1;
|
|
27827
|
+
var Suspense$1 = p$1;
|
|
27828
|
+
var isAsyncMode$1 = function (a) {
|
|
27829
|
+
return A$1(a) || z$1(a) === l$1;
|
|
27830
|
+
};
|
|
27831
|
+
var isConcurrentMode$1 = A$1;
|
|
27832
|
+
var isContextConsumer$1 = function (a) {
|
|
27833
|
+
return z$1(a) === k$1;
|
|
27834
|
+
};
|
|
27835
|
+
var isContextProvider$1 = function (a) {
|
|
27836
|
+
return z$1(a) === h$1;
|
|
27837
|
+
};
|
|
27838
|
+
var isElement$1 = function (a) {
|
|
27839
|
+
return "object" === typeof a && null !== a && a.$$typeof === c$1;
|
|
27840
|
+
};
|
|
27841
|
+
var isForwardRef$1 = function (a) {
|
|
27842
|
+
return z$1(a) === n$1;
|
|
27843
|
+
};
|
|
27844
|
+
var isFragment$1 = function (a) {
|
|
27845
|
+
return z$1(a) === e$1;
|
|
27846
|
+
};
|
|
27847
|
+
var isLazy$1 = function (a) {
|
|
27848
|
+
return z$1(a) === t$1;
|
|
27849
|
+
};
|
|
27850
|
+
var isMemo$1 = function (a) {
|
|
27851
|
+
return z$1(a) === r$1;
|
|
27852
|
+
};
|
|
27853
|
+
var isPortal$1 = function (a) {
|
|
27854
|
+
return z$1(a) === d$1;
|
|
27855
|
+
};
|
|
27856
|
+
var isProfiler$1 = function (a) {
|
|
27857
|
+
return z$1(a) === g$1;
|
|
27858
|
+
};
|
|
27859
|
+
var isStrictMode$1 = function (a) {
|
|
27860
|
+
return z$1(a) === f$1;
|
|
27861
|
+
};
|
|
27862
|
+
var isSuspense$1 = function (a) {
|
|
27863
|
+
return z$1(a) === p$1;
|
|
27864
|
+
};
|
|
27865
|
+
var isValidElementType$1 = function (a) {
|
|
27866
|
+
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);
|
|
27867
|
+
};
|
|
27868
|
+
var typeOf$1 = z$1;
|
|
27869
|
+
var reactIs_production_min$1 = {
|
|
27870
|
+
AsyncMode: AsyncMode$1,
|
|
27871
|
+
ConcurrentMode: ConcurrentMode$1,
|
|
27872
|
+
ContextConsumer: ContextConsumer$1,
|
|
27873
|
+
ContextProvider: ContextProvider$1,
|
|
27874
|
+
Element: Element$1,
|
|
27875
|
+
ForwardRef: ForwardRef$1,
|
|
27876
|
+
Fragment: Fragment$1,
|
|
27877
|
+
Lazy: Lazy$1,
|
|
27878
|
+
Memo: Memo$1,
|
|
27879
|
+
Portal: Portal$1,
|
|
27880
|
+
Profiler: Profiler$1,
|
|
27881
|
+
StrictMode: StrictMode$1,
|
|
27882
|
+
Suspense: Suspense$1,
|
|
27883
|
+
isAsyncMode: isAsyncMode$1,
|
|
27884
|
+
isConcurrentMode: isConcurrentMode$1,
|
|
27885
|
+
isContextConsumer: isContextConsumer$1,
|
|
27886
|
+
isContextProvider: isContextProvider$1,
|
|
27887
|
+
isElement: isElement$1,
|
|
27888
|
+
isForwardRef: isForwardRef$1,
|
|
27889
|
+
isFragment: isFragment$1,
|
|
27890
|
+
isLazy: isLazy$1,
|
|
27891
|
+
isMemo: isMemo$1,
|
|
27892
|
+
isPortal: isPortal$1,
|
|
27893
|
+
isProfiler: isProfiler$1,
|
|
27894
|
+
isStrictMode: isStrictMode$1,
|
|
27895
|
+
isSuspense: isSuspense$1,
|
|
27896
|
+
isValidElementType: isValidElementType$1,
|
|
27897
|
+
typeOf: typeOf$1
|
|
27898
|
+
};
|
|
27899
|
+
|
|
27900
|
+
var reactIs_development$1 = createCommonjsModule(function (module, exports) {
|
|
27901
|
+
|
|
27902
|
+
if (process.env.NODE_ENV !== "production") {
|
|
27903
|
+
(function () {
|
|
27904
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
27905
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
27906
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
27907
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
27908
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
27909
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
27910
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
27911
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
27912
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
27913
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
27914
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
27915
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
27916
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
27917
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
27918
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
27919
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
27920
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
27921
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
27922
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
27923
|
+
function isValidElementType(type) {
|
|
27924
|
+
return typeof type === 'string' || typeof type === 'function' || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
27925
|
+
}
|
|
27926
|
+
function typeOf(object) {
|
|
27927
|
+
if (typeof object === 'object' && object !== null) {
|
|
27928
|
+
var $$typeof = object.$$typeof;
|
|
27929
|
+
switch ($$typeof) {
|
|
27930
|
+
case REACT_ELEMENT_TYPE:
|
|
27931
|
+
var type = object.type;
|
|
27932
|
+
switch (type) {
|
|
27933
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
27934
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
27935
|
+
case REACT_FRAGMENT_TYPE:
|
|
27936
|
+
case REACT_PROFILER_TYPE:
|
|
27937
|
+
case REACT_STRICT_MODE_TYPE:
|
|
27938
|
+
case REACT_SUSPENSE_TYPE:
|
|
27939
|
+
return type;
|
|
27940
|
+
default:
|
|
27941
|
+
var $$typeofType = type && type.$$typeof;
|
|
27942
|
+
switch ($$typeofType) {
|
|
27943
|
+
case REACT_CONTEXT_TYPE:
|
|
27944
|
+
case REACT_FORWARD_REF_TYPE:
|
|
27945
|
+
case REACT_LAZY_TYPE:
|
|
27946
|
+
case REACT_MEMO_TYPE:
|
|
27947
|
+
case REACT_PROVIDER_TYPE:
|
|
27948
|
+
return $$typeofType;
|
|
27949
|
+
default:
|
|
27950
|
+
return $$typeof;
|
|
27951
|
+
}
|
|
27952
|
+
}
|
|
27953
|
+
case REACT_PORTAL_TYPE:
|
|
27954
|
+
return $$typeof;
|
|
27955
|
+
}
|
|
27956
|
+
}
|
|
27957
|
+
return undefined;
|
|
27958
|
+
}
|
|
27959
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
27960
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
27961
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
27962
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
27963
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
27964
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
27965
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
27966
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
27967
|
+
var Memo = REACT_MEMO_TYPE;
|
|
27968
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
27969
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
27970
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
27971
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
27972
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
27973
|
+
function isAsyncMode(object) {
|
|
27974
|
+
{
|
|
27975
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
27976
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
27977
|
+
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.');
|
|
27978
|
+
}
|
|
27979
|
+
}
|
|
27980
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
27981
|
+
}
|
|
27982
|
+
function isConcurrentMode(object) {
|
|
27983
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
27984
|
+
}
|
|
27985
|
+
function isContextConsumer(object) {
|
|
27986
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
27987
|
+
}
|
|
27988
|
+
function isContextProvider(object) {
|
|
27989
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
27990
|
+
}
|
|
27991
|
+
function isElement(object) {
|
|
27992
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
27993
|
+
}
|
|
27994
|
+
function isForwardRef(object) {
|
|
27995
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
27996
|
+
}
|
|
27997
|
+
function isFragment(object) {
|
|
27998
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
27999
|
+
}
|
|
28000
|
+
function isLazy(object) {
|
|
28001
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
28002
|
+
}
|
|
28003
|
+
function isMemo(object) {
|
|
28004
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
28005
|
+
}
|
|
28006
|
+
function isPortal(object) {
|
|
28007
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
28008
|
+
}
|
|
28009
|
+
function isProfiler(object) {
|
|
28010
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
28011
|
+
}
|
|
28012
|
+
function isStrictMode(object) {
|
|
28013
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
28014
|
+
}
|
|
28015
|
+
function isSuspense(object) {
|
|
28016
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
28017
|
+
}
|
|
28018
|
+
exports.AsyncMode = AsyncMode;
|
|
28019
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
28020
|
+
exports.ContextConsumer = ContextConsumer;
|
|
28021
|
+
exports.ContextProvider = ContextProvider;
|
|
28022
|
+
exports.Element = Element;
|
|
28023
|
+
exports.ForwardRef = ForwardRef;
|
|
28024
|
+
exports.Fragment = Fragment;
|
|
28025
|
+
exports.Lazy = Lazy;
|
|
28026
|
+
exports.Memo = Memo;
|
|
28027
|
+
exports.Portal = Portal;
|
|
28028
|
+
exports.Profiler = Profiler;
|
|
28029
|
+
exports.StrictMode = StrictMode;
|
|
28030
|
+
exports.Suspense = Suspense;
|
|
28031
|
+
exports.isAsyncMode = isAsyncMode;
|
|
28032
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
28033
|
+
exports.isContextConsumer = isContextConsumer;
|
|
28034
|
+
exports.isContextProvider = isContextProvider;
|
|
28035
|
+
exports.isElement = isElement;
|
|
28036
|
+
exports.isForwardRef = isForwardRef;
|
|
28037
|
+
exports.isFragment = isFragment;
|
|
28038
|
+
exports.isLazy = isLazy;
|
|
28039
|
+
exports.isMemo = isMemo;
|
|
28040
|
+
exports.isPortal = isPortal;
|
|
28041
|
+
exports.isProfiler = isProfiler;
|
|
28042
|
+
exports.isStrictMode = isStrictMode;
|
|
28043
|
+
exports.isSuspense = isSuspense;
|
|
28044
|
+
exports.isValidElementType = isValidElementType;
|
|
28045
|
+
exports.typeOf = typeOf;
|
|
28046
|
+
})();
|
|
28047
|
+
}
|
|
28048
|
+
});
|
|
28049
|
+
|
|
28050
|
+
var reactIs$1 = createCommonjsModule(function (module) {
|
|
28051
|
+
|
|
28052
|
+
if (process.env.NODE_ENV === 'production') {
|
|
28053
|
+
module.exports = reactIs_production_min$1;
|
|
28054
|
+
} else {
|
|
28055
|
+
module.exports = reactIs_development$1;
|
|
28056
|
+
}
|
|
28057
|
+
});
|
|
28058
|
+
|
|
28059
|
+
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
28060
|
+
var hasOwnProperty$b = Object.prototype.hasOwnProperty;
|
|
28061
|
+
var propIsEnumerable$1 = Object.prototype.propertyIsEnumerable;
|
|
28062
|
+
function toObject$1(val) {
|
|
28063
|
+
if (val === null || val === undefined) {
|
|
28064
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
28065
|
+
}
|
|
28066
|
+
return Object(val);
|
|
28067
|
+
}
|
|
28068
|
+
function shouldUseNative$1() {
|
|
28069
|
+
try {
|
|
28070
|
+
if (!Object.assign) {
|
|
28071
|
+
return false;
|
|
28072
|
+
}
|
|
28073
|
+
var test1 = new String('abc');
|
|
28074
|
+
test1[5] = 'de';
|
|
28075
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
28076
|
+
return false;
|
|
28077
|
+
}
|
|
28078
|
+
var test2 = {};
|
|
28079
|
+
for (var i = 0; i < 10; i++) {
|
|
28080
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
28081
|
+
}
|
|
28082
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
28083
|
+
return test2[n];
|
|
28084
|
+
});
|
|
28085
|
+
if (order2.join('') !== '0123456789') {
|
|
28086
|
+
return false;
|
|
28087
|
+
}
|
|
28088
|
+
var test3 = {};
|
|
28089
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
28090
|
+
test3[letter] = letter;
|
|
28091
|
+
});
|
|
28092
|
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
|
28093
|
+
return false;
|
|
28094
|
+
}
|
|
28095
|
+
return true;
|
|
28096
|
+
} catch (err) {
|
|
28097
|
+
return false;
|
|
28098
|
+
}
|
|
28099
|
+
}
|
|
28100
|
+
var objectAssign$1 = shouldUseNative$1() ? Object.assign : function (target, source) {
|
|
28101
|
+
var from;
|
|
28102
|
+
var to = toObject$1(target);
|
|
28103
|
+
var symbols;
|
|
28104
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
28105
|
+
from = Object(arguments[s]);
|
|
28106
|
+
for (var key in from) {
|
|
28107
|
+
if (hasOwnProperty$b.call(from, key)) {
|
|
28108
|
+
to[key] = from[key];
|
|
28109
|
+
}
|
|
28110
|
+
}
|
|
28111
|
+
if (getOwnPropertySymbols$1) {
|
|
28112
|
+
symbols = getOwnPropertySymbols$1(from);
|
|
28113
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
28114
|
+
if (propIsEnumerable$1.call(from, symbols[i])) {
|
|
28115
|
+
to[symbols[i]] = from[symbols[i]];
|
|
28116
|
+
}
|
|
28117
|
+
}
|
|
28118
|
+
}
|
|
28119
|
+
}
|
|
28120
|
+
return to;
|
|
28121
|
+
};
|
|
28122
|
+
|
|
28123
|
+
var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
28124
|
+
var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$2;
|
|
28125
|
+
|
|
28126
|
+
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
28127
|
+
|
|
28128
|
+
var printWarning$2 = function () {};
|
|
28129
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
28130
|
+
var ReactPropTypesSecret$3 = ReactPropTypesSecret_1$1;
|
|
28131
|
+
var loggedTypeFailures$1 = {};
|
|
28132
|
+
var has$3 = has$2;
|
|
28133
|
+
printWarning$2 = function (text) {
|
|
28134
|
+
var message = 'Warning: ' + text;
|
|
28135
|
+
if (typeof console !== 'undefined') {
|
|
28136
|
+
console.error(message);
|
|
28137
|
+
}
|
|
28138
|
+
try {
|
|
28139
|
+
throw new Error(message);
|
|
28140
|
+
} catch (x) {}
|
|
28141
|
+
};
|
|
28142
|
+
}
|
|
28143
|
+
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
28144
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
28145
|
+
for (var typeSpecName in typeSpecs) {
|
|
28146
|
+
if (has$3(typeSpecs, typeSpecName)) {
|
|
28147
|
+
var error;
|
|
28148
|
+
try {
|
|
28149
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
28150
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
28151
|
+
err.name = 'Invariant Violation';
|
|
28152
|
+
throw err;
|
|
28153
|
+
}
|
|
28154
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$3);
|
|
28155
|
+
} catch (ex) {
|
|
28156
|
+
error = ex;
|
|
28157
|
+
}
|
|
28158
|
+
if (error && !(error instanceof Error)) {
|
|
28159
|
+
printWarning$2((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
28160
|
+
}
|
|
28161
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
|
|
28162
|
+
loggedTypeFailures$1[error.message] = true;
|
|
28163
|
+
var stack = getStack ? getStack() : '';
|
|
28164
|
+
printWarning$2('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
28165
|
+
}
|
|
28166
|
+
}
|
|
28167
|
+
}
|
|
28168
|
+
}
|
|
28169
|
+
}
|
|
28170
|
+
checkPropTypes$1.resetWarningCache = function () {
|
|
28171
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
28172
|
+
loggedTypeFailures$1 = {};
|
|
28173
|
+
}
|
|
28174
|
+
};
|
|
28175
|
+
var checkPropTypes_1$1 = checkPropTypes$1;
|
|
28176
|
+
|
|
28177
|
+
var printWarning$3 = function () {};
|
|
28178
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
28179
|
+
printWarning$3 = function (text) {
|
|
28180
|
+
var message = 'Warning: ' + text;
|
|
28181
|
+
if (typeof console !== 'undefined') {
|
|
28182
|
+
console.error(message);
|
|
28183
|
+
}
|
|
28184
|
+
try {
|
|
28185
|
+
throw new Error(message);
|
|
28186
|
+
} catch (x) {}
|
|
28187
|
+
};
|
|
28188
|
+
}
|
|
28189
|
+
function emptyFunctionThatReturnsNull$1() {
|
|
28190
|
+
return null;
|
|
28191
|
+
}
|
|
28192
|
+
var factoryWithTypeCheckers$1 = function (isValidElement, throwOnDirectAccess) {
|
|
28193
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
28194
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
28195
|
+
function getIteratorFn(maybeIterable) {
|
|
28196
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
28197
|
+
if (typeof iteratorFn === 'function') {
|
|
28198
|
+
return iteratorFn;
|
|
28199
|
+
}
|
|
28200
|
+
}
|
|
28201
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
28202
|
+
var ReactPropTypes = {
|
|
28203
|
+
array: createPrimitiveTypeChecker('array'),
|
|
28204
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
28205
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
28206
|
+
func: createPrimitiveTypeChecker('function'),
|
|
28207
|
+
number: createPrimitiveTypeChecker('number'),
|
|
28208
|
+
object: createPrimitiveTypeChecker('object'),
|
|
28209
|
+
string: createPrimitiveTypeChecker('string'),
|
|
28210
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
28211
|
+
any: createAnyTypeChecker(),
|
|
28212
|
+
arrayOf: createArrayOfTypeChecker,
|
|
28213
|
+
element: createElementTypeChecker(),
|
|
28214
|
+
elementType: createElementTypeTypeChecker(),
|
|
28215
|
+
instanceOf: createInstanceTypeChecker,
|
|
28216
|
+
node: createNodeChecker(),
|
|
28217
|
+
objectOf: createObjectOfTypeChecker,
|
|
28218
|
+
oneOf: createEnumTypeChecker,
|
|
28219
|
+
oneOfType: createUnionTypeChecker,
|
|
28220
|
+
shape: createShapeTypeChecker,
|
|
28221
|
+
exact: createStrictShapeTypeChecker
|
|
28222
|
+
};
|
|
28223
|
+
function is(x, y) {
|
|
28224
|
+
if (x === y) {
|
|
28225
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
28226
|
+
} else {
|
|
28227
|
+
return x !== x && y !== y;
|
|
28228
|
+
}
|
|
28229
|
+
}
|
|
28230
|
+
function PropTypeError(message, data) {
|
|
28231
|
+
this.message = message;
|
|
28232
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
28233
|
+
this.stack = '';
|
|
28234
|
+
}
|
|
28235
|
+
PropTypeError.prototype = Error.prototype;
|
|
28236
|
+
function createChainableTypeChecker(validate) {
|
|
28237
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
28238
|
+
var manualPropTypeCallCache = {};
|
|
28239
|
+
var manualPropTypeWarningCount = 0;
|
|
28240
|
+
}
|
|
28241
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
28242
|
+
componentName = componentName || ANONYMOUS;
|
|
28243
|
+
propFullName = propFullName || propName;
|
|
28244
|
+
if (secret !== ReactPropTypesSecret_1$1) {
|
|
28245
|
+
if (throwOnDirectAccess) {
|
|
28246
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
28247
|
+
err.name = 'Invariant Violation';
|
|
28248
|
+
throw err;
|
|
28249
|
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
28250
|
+
var cacheKey = componentName + ':' + propName;
|
|
28251
|
+
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
|
|
28252
|
+
printWarning$3('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
|
28253
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
28254
|
+
manualPropTypeWarningCount++;
|
|
28255
|
+
}
|
|
28256
|
+
}
|
|
28257
|
+
}
|
|
28258
|
+
if (props[propName] == null) {
|
|
28259
|
+
if (isRequired) {
|
|
28260
|
+
if (props[propName] === null) {
|
|
28261
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
28262
|
+
}
|
|
28263
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
28264
|
+
}
|
|
28265
|
+
return null;
|
|
28266
|
+
} else {
|
|
28267
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
28268
|
+
}
|
|
28269
|
+
}
|
|
28270
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
28271
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
28272
|
+
return chainedCheckType;
|
|
28273
|
+
}
|
|
28274
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
28275
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
28276
|
+
var propValue = props[propName];
|
|
28277
|
+
var propType = getPropType(propValue);
|
|
28278
|
+
if (propType !== expectedType) {
|
|
28279
|
+
var preciseType = getPreciseType(propValue);
|
|
28280
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
28281
|
+
expectedType: expectedType
|
|
28282
|
+
});
|
|
28283
|
+
}
|
|
28284
|
+
return null;
|
|
28285
|
+
}
|
|
28286
|
+
return createChainableTypeChecker(validate);
|
|
28287
|
+
}
|
|
28288
|
+
function createAnyTypeChecker() {
|
|
28289
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
|
|
28290
|
+
}
|
|
28291
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
28292
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28293
|
+
if (typeof typeChecker !== 'function') {
|
|
28294
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
28295
|
+
}
|
|
28296
|
+
var propValue = props[propName];
|
|
28297
|
+
if (!Array.isArray(propValue)) {
|
|
28298
|
+
var propType = getPropType(propValue);
|
|
28299
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
28300
|
+
}
|
|
28301
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
28302
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1$1);
|
|
28303
|
+
if (error instanceof Error) {
|
|
28304
|
+
return error;
|
|
28305
|
+
}
|
|
28306
|
+
}
|
|
28307
|
+
return null;
|
|
28308
|
+
}
|
|
28309
|
+
return createChainableTypeChecker(validate);
|
|
28310
|
+
}
|
|
28311
|
+
function createElementTypeChecker() {
|
|
28312
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28313
|
+
var propValue = props[propName];
|
|
28314
|
+
if (!isValidElement(propValue)) {
|
|
28315
|
+
var propType = getPropType(propValue);
|
|
28316
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
28317
|
+
}
|
|
28318
|
+
return null;
|
|
28319
|
+
}
|
|
28320
|
+
return createChainableTypeChecker(validate);
|
|
28321
|
+
}
|
|
28322
|
+
function createElementTypeTypeChecker() {
|
|
28323
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28324
|
+
var propValue = props[propName];
|
|
28325
|
+
if (!reactIs$1.isValidElementType(propValue)) {
|
|
28326
|
+
var propType = getPropType(propValue);
|
|
28327
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
28328
|
+
}
|
|
28329
|
+
return null;
|
|
28330
|
+
}
|
|
28331
|
+
return createChainableTypeChecker(validate);
|
|
28332
|
+
}
|
|
28333
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
28334
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28335
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
28336
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
28337
|
+
var actualClassName = getClassName(props[propName]);
|
|
28338
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
28339
|
+
}
|
|
28340
|
+
return null;
|
|
28341
|
+
}
|
|
28342
|
+
return createChainableTypeChecker(validate);
|
|
28343
|
+
}
|
|
28344
|
+
function createEnumTypeChecker(expectedValues) {
|
|
28345
|
+
if (!Array.isArray(expectedValues)) {
|
|
28346
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
28347
|
+
if (arguments.length > 1) {
|
|
28348
|
+
printWarning$3('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
|
28349
|
+
} else {
|
|
28350
|
+
printWarning$3('Invalid argument supplied to oneOf, expected an array.');
|
|
28351
|
+
}
|
|
28352
|
+
}
|
|
28353
|
+
return emptyFunctionThatReturnsNull$1;
|
|
28354
|
+
}
|
|
28355
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28356
|
+
var propValue = props[propName];
|
|
28357
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
28358
|
+
if (is(propValue, expectedValues[i])) {
|
|
28359
|
+
return null;
|
|
28360
|
+
}
|
|
28361
|
+
}
|
|
28362
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
28363
|
+
var type = getPreciseType(value);
|
|
28364
|
+
if (type === 'symbol') {
|
|
28365
|
+
return String(value);
|
|
28366
|
+
}
|
|
28367
|
+
return value;
|
|
28368
|
+
});
|
|
28369
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
28370
|
+
}
|
|
28371
|
+
return createChainableTypeChecker(validate);
|
|
28372
|
+
}
|
|
28373
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
28374
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28375
|
+
if (typeof typeChecker !== 'function') {
|
|
28376
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
28377
|
+
}
|
|
28378
|
+
var propValue = props[propName];
|
|
28379
|
+
var propType = getPropType(propValue);
|
|
28380
|
+
if (propType !== 'object') {
|
|
28381
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
28382
|
+
}
|
|
28383
|
+
for (var key in propValue) {
|
|
28384
|
+
if (has$2(propValue, key)) {
|
|
28385
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
28386
|
+
if (error instanceof Error) {
|
|
28387
|
+
return error;
|
|
28388
|
+
}
|
|
28389
|
+
}
|
|
28390
|
+
}
|
|
28391
|
+
return null;
|
|
28392
|
+
}
|
|
28393
|
+
return createChainableTypeChecker(validate);
|
|
28394
|
+
}
|
|
28395
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
28396
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
28397
|
+
process.env.NODE_ENV !== 'production' ? printWarning$3('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
28398
|
+
return emptyFunctionThatReturnsNull$1;
|
|
28399
|
+
}
|
|
28400
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
28401
|
+
var checker = arrayOfTypeCheckers[i];
|
|
28402
|
+
if (typeof checker !== 'function') {
|
|
28403
|
+
printWarning$3('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
28404
|
+
return emptyFunctionThatReturnsNull$1;
|
|
28405
|
+
}
|
|
28406
|
+
}
|
|
28407
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28408
|
+
var expectedTypes = [];
|
|
28409
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
28410
|
+
var checker = arrayOfTypeCheckers[i];
|
|
28411
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1$1);
|
|
28412
|
+
if (checkerResult == null) {
|
|
28413
|
+
return null;
|
|
28414
|
+
}
|
|
28415
|
+
if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
|
|
28416
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
28417
|
+
}
|
|
28418
|
+
}
|
|
28419
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
28420
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
28421
|
+
}
|
|
28422
|
+
return createChainableTypeChecker(validate);
|
|
28423
|
+
}
|
|
28424
|
+
function createNodeChecker() {
|
|
28425
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28426
|
+
if (!isNode(props[propName])) {
|
|
28427
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
28428
|
+
}
|
|
28429
|
+
return null;
|
|
28430
|
+
}
|
|
28431
|
+
return createChainableTypeChecker(validate);
|
|
28432
|
+
}
|
|
28433
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
28434
|
+
return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
|
|
28435
|
+
}
|
|
28436
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
28437
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28438
|
+
var propValue = props[propName];
|
|
28439
|
+
var propType = getPropType(propValue);
|
|
28440
|
+
if (propType !== 'object') {
|
|
28441
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
28442
|
+
}
|
|
28443
|
+
for (var key in shapeTypes) {
|
|
28444
|
+
var checker = shapeTypes[key];
|
|
28445
|
+
if (typeof checker !== 'function') {
|
|
28446
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
28447
|
+
}
|
|
28448
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
28449
|
+
if (error) {
|
|
28450
|
+
return error;
|
|
28451
|
+
}
|
|
28452
|
+
}
|
|
28453
|
+
return null;
|
|
28454
|
+
}
|
|
28455
|
+
return createChainableTypeChecker(validate);
|
|
28456
|
+
}
|
|
28457
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
28458
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
28459
|
+
var propValue = props[propName];
|
|
28460
|
+
var propType = getPropType(propValue);
|
|
28461
|
+
if (propType !== 'object') {
|
|
28462
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
28463
|
+
}
|
|
28464
|
+
var allKeys = objectAssign$1({}, props[propName], shapeTypes);
|
|
28465
|
+
for (var key in allKeys) {
|
|
28466
|
+
var checker = shapeTypes[key];
|
|
28467
|
+
if (has$2(shapeTypes, key) && typeof checker !== 'function') {
|
|
28468
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
28469
|
+
}
|
|
28470
|
+
if (!checker) {
|
|
28471
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
28472
|
+
}
|
|
28473
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
|
|
28474
|
+
if (error) {
|
|
28475
|
+
return error;
|
|
28476
|
+
}
|
|
28477
|
+
}
|
|
28478
|
+
return null;
|
|
28479
|
+
}
|
|
28480
|
+
return createChainableTypeChecker(validate);
|
|
28481
|
+
}
|
|
28482
|
+
function isNode(propValue) {
|
|
28483
|
+
switch (typeof propValue) {
|
|
28484
|
+
case 'number':
|
|
28485
|
+
case 'string':
|
|
28486
|
+
case 'undefined':
|
|
28487
|
+
return true;
|
|
28488
|
+
case 'boolean':
|
|
28489
|
+
return !propValue;
|
|
28490
|
+
case 'object':
|
|
28491
|
+
if (Array.isArray(propValue)) {
|
|
28492
|
+
return propValue.every(isNode);
|
|
28493
|
+
}
|
|
28494
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
28495
|
+
return true;
|
|
28496
|
+
}
|
|
28497
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
28498
|
+
if (iteratorFn) {
|
|
28499
|
+
var iterator = iteratorFn.call(propValue);
|
|
28500
|
+
var step;
|
|
28501
|
+
if (iteratorFn !== propValue.entries) {
|
|
28502
|
+
while (!(step = iterator.next()).done) {
|
|
28503
|
+
if (!isNode(step.value)) {
|
|
28504
|
+
return false;
|
|
28505
|
+
}
|
|
28506
|
+
}
|
|
28507
|
+
} else {
|
|
28508
|
+
while (!(step = iterator.next()).done) {
|
|
28509
|
+
var entry = step.value;
|
|
28510
|
+
if (entry) {
|
|
28511
|
+
if (!isNode(entry[1])) {
|
|
28512
|
+
return false;
|
|
28513
|
+
}
|
|
28514
|
+
}
|
|
28515
|
+
}
|
|
28516
|
+
}
|
|
28517
|
+
} else {
|
|
28518
|
+
return false;
|
|
28519
|
+
}
|
|
28520
|
+
return true;
|
|
28521
|
+
default:
|
|
28522
|
+
return false;
|
|
28523
|
+
}
|
|
28524
|
+
}
|
|
28525
|
+
function isSymbol(propType, propValue) {
|
|
28526
|
+
if (propType === 'symbol') {
|
|
28527
|
+
return true;
|
|
28528
|
+
}
|
|
28529
|
+
if (!propValue) {
|
|
28530
|
+
return false;
|
|
28531
|
+
}
|
|
28532
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
28533
|
+
return true;
|
|
28534
|
+
}
|
|
28535
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
28536
|
+
return true;
|
|
28537
|
+
}
|
|
28538
|
+
return false;
|
|
28539
|
+
}
|
|
28540
|
+
function getPropType(propValue) {
|
|
28541
|
+
var propType = typeof propValue;
|
|
28542
|
+
if (Array.isArray(propValue)) {
|
|
28543
|
+
return 'array';
|
|
28544
|
+
}
|
|
28545
|
+
if (propValue instanceof RegExp) {
|
|
28546
|
+
return 'object';
|
|
28547
|
+
}
|
|
28548
|
+
if (isSymbol(propType, propValue)) {
|
|
28549
|
+
return 'symbol';
|
|
28550
|
+
}
|
|
28551
|
+
return propType;
|
|
28552
|
+
}
|
|
28553
|
+
function getPreciseType(propValue) {
|
|
28554
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
|
28555
|
+
return '' + propValue;
|
|
28556
|
+
}
|
|
28557
|
+
var propType = getPropType(propValue);
|
|
28558
|
+
if (propType === 'object') {
|
|
28559
|
+
if (propValue instanceof Date) {
|
|
28560
|
+
return 'date';
|
|
28561
|
+
} else if (propValue instanceof RegExp) {
|
|
28562
|
+
return 'regexp';
|
|
28563
|
+
}
|
|
28564
|
+
}
|
|
28565
|
+
return propType;
|
|
28566
|
+
}
|
|
28567
|
+
function getPostfixForTypeWarning(value) {
|
|
28568
|
+
var type = getPreciseType(value);
|
|
28569
|
+
switch (type) {
|
|
28570
|
+
case 'array':
|
|
28571
|
+
case 'object':
|
|
28572
|
+
return 'an ' + type;
|
|
28573
|
+
case 'boolean':
|
|
28574
|
+
case 'date':
|
|
28575
|
+
case 'regexp':
|
|
28576
|
+
return 'a ' + type;
|
|
28577
|
+
default:
|
|
28578
|
+
return type;
|
|
28579
|
+
}
|
|
28580
|
+
}
|
|
28581
|
+
function getClassName(propValue) {
|
|
28582
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
28583
|
+
return ANONYMOUS;
|
|
28584
|
+
}
|
|
28585
|
+
return propValue.constructor.name;
|
|
28586
|
+
}
|
|
28587
|
+
ReactPropTypes.checkPropTypes = checkPropTypes_1$1;
|
|
28588
|
+
ReactPropTypes.resetWarningCache = checkPropTypes_1$1.resetWarningCache;
|
|
28589
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
28590
|
+
return ReactPropTypes;
|
|
28591
|
+
};
|
|
28592
|
+
|
|
28593
|
+
function emptyFunction$1() {}
|
|
28594
|
+
function emptyFunctionWithReset$1() {}
|
|
28595
|
+
emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
|
|
28596
|
+
var factoryWithThrowingShims$1 = function () {
|
|
28597
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
28598
|
+
if (secret === ReactPropTypesSecret_1$1) {
|
|
28599
|
+
return;
|
|
28600
|
+
}
|
|
28601
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
28602
|
+
err.name = 'Invariant Violation';
|
|
28603
|
+
throw err;
|
|
28604
|
+
}
|
|
28605
|
+
shim.isRequired = shim;
|
|
28606
|
+
function getShim() {
|
|
28607
|
+
return shim;
|
|
28608
|
+
}
|
|
28609
|
+
var ReactPropTypes = {
|
|
28610
|
+
array: shim,
|
|
28611
|
+
bigint: shim,
|
|
28612
|
+
bool: shim,
|
|
28613
|
+
func: shim,
|
|
28614
|
+
number: shim,
|
|
28615
|
+
object: shim,
|
|
28616
|
+
string: shim,
|
|
28617
|
+
symbol: shim,
|
|
28618
|
+
any: shim,
|
|
28619
|
+
arrayOf: getShim,
|
|
28620
|
+
element: shim,
|
|
28621
|
+
elementType: shim,
|
|
28622
|
+
instanceOf: getShim,
|
|
28623
|
+
node: shim,
|
|
28624
|
+
objectOf: getShim,
|
|
28625
|
+
oneOf: getShim,
|
|
28626
|
+
oneOfType: getShim,
|
|
28627
|
+
shape: getShim,
|
|
28628
|
+
exact: getShim,
|
|
28629
|
+
checkPropTypes: emptyFunctionWithReset$1,
|
|
28630
|
+
resetWarningCache: emptyFunction$1
|
|
28631
|
+
};
|
|
28632
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
28633
|
+
return ReactPropTypes;
|
|
28634
|
+
};
|
|
28635
|
+
|
|
28636
|
+
var propTypes$1 = createCommonjsModule(function (module) {
|
|
28637
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
28638
|
+
var ReactIs = reactIs$1;
|
|
28639
|
+
var throwOnDirectAccess = true;
|
|
28640
|
+
module.exports = factoryWithTypeCheckers$1(ReactIs.isElement, throwOnDirectAccess);
|
|
28641
|
+
} else {
|
|
28642
|
+
module.exports = factoryWithThrowingShims$1();
|
|
28643
|
+
}
|
|
28644
|
+
});
|
|
28645
|
+
|
|
27658
28646
|
const SearchConnection = _ref => {
|
|
27659
28647
|
var _Digit$Hooks$ws$usews;
|
|
27660
28648
|
let propsConfig = _ref.config,
|
|
@@ -28066,7 +29054,7 @@ const SearchConnection = _ref => {
|
|
|
28066
29054
|
}));
|
|
28067
29055
|
};
|
|
28068
29056
|
SearchConnection.propTypes = {
|
|
28069
|
-
loginParams: propTypes.any
|
|
29057
|
+
loginParams: propTypes$1.any
|
|
28070
29058
|
};
|
|
28071
29059
|
SearchConnection.defaultProps = {
|
|
28072
29060
|
loginParams: null
|
|
@@ -29028,9 +30016,9 @@ const ChallanSearchResults = _ref => {
|
|
|
29028
30016
|
}, t("WS_CLICK_HERE_TO_APPLY"))))));
|
|
29029
30017
|
};
|
|
29030
30018
|
ChallanSearchResults.propTypes = {
|
|
29031
|
-
template: propTypes.any,
|
|
29032
|
-
header: propTypes.string,
|
|
29033
|
-
actionButtonLabel: propTypes.string
|
|
30019
|
+
template: propTypes$1.any,
|
|
30020
|
+
header: propTypes$1.string,
|
|
30021
|
+
actionButtonLabel: propTypes$1.string
|
|
29034
30022
|
};
|
|
29035
30023
|
ChallanSearchResults.defaultProps = {
|
|
29036
30024
|
template: [],
|
|
@@ -29539,7 +30527,7 @@ const WSWFApplicationTimeline = props => {
|
|
|
29539
30527
|
};
|
|
29540
30528
|
if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
29541
30529
|
const visibleTimeline = data !== null && data !== void 0 && data.timeline ? data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2) : [];
|
|
29542
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
30530
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, !isLoading && /*#__PURE__*/React.createElement("div", {
|
|
29543
30531
|
style: {
|
|
29544
30532
|
fontFamily: "'Inter', system-ui, sans-serif"
|
|
29545
30533
|
}
|
|
@@ -30017,7 +31005,7 @@ const WSFeeEstimation = _ref => {
|
|
|
30017
31005
|
}
|
|
30018
31006
|
setFields(values);
|
|
30019
31007
|
};
|
|
30020
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
31008
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
30021
31009
|
style: {
|
|
30022
31010
|
lineHeight: "19px",
|
|
30023
31011
|
maxWidth: "100%",
|
|
@@ -30542,7 +31530,7 @@ const ViewBreakup = _ref => {
|
|
|
30542
31530
|
value: infrastructureChargeDetail.netIFC,
|
|
30543
31531
|
currency: true
|
|
30544
31532
|
}] : [];
|
|
30545
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
31533
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
30546
31534
|
style: {
|
|
30547
31535
|
lineHeight: "19px",
|
|
30548
31536
|
maxWidth: "950px",
|
|
@@ -30646,19 +31634,19 @@ const ViewBreakup = _ref => {
|
|
|
30646
31634
|
textAlign: "right"
|
|
30647
31635
|
}
|
|
30648
31636
|
});
|
|
30649
|
-
}), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$
|
|
31637
|
+
}), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
30650
31638
|
style: {
|
|
30651
31639
|
margin: "10px 0px"
|
|
30652
31640
|
}
|
|
30653
31641
|
}, "Property details"), /*#__PURE__*/React.createElement(DetailRows, {
|
|
30654
31642
|
rows: propertyRows
|
|
30655
|
-
})), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$
|
|
31643
|
+
})), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
30656
31644
|
style: {
|
|
30657
31645
|
margin: "10px 0px"
|
|
30658
31646
|
}
|
|
30659
31647
|
}, "Water demand details"), /*#__PURE__*/React.createElement(DetailRows, {
|
|
30660
31648
|
rows: waterDemandRows
|
|
30661
|
-
})), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$
|
|
31649
|
+
})), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
30662
31650
|
style: {
|
|
30663
31651
|
margin: "10px 0px"
|
|
30664
31652
|
}
|
|
@@ -35097,9 +36085,9 @@ const WNSMyBills = _ref => {
|
|
|
35097
36085
|
}, t("CS_BILLS_TEXT_NO_BILLS_FOUND")));
|
|
35098
36086
|
};
|
|
35099
36087
|
WNSMyBills.propTypes = {
|
|
35100
|
-
template: propTypes.any,
|
|
35101
|
-
header: propTypes.string,
|
|
35102
|
-
actionButtonLabel: propTypes.string
|
|
36088
|
+
template: propTypes$1.any,
|
|
36089
|
+
header: propTypes$1.string,
|
|
36090
|
+
actionButtonLabel: propTypes$1.string
|
|
35103
36091
|
};
|
|
35104
36092
|
WNSMyBills.defaultProps = {
|
|
35105
36093
|
template: [],
|
|
@@ -35169,44 +36157,6 @@ const WSInfoPage = () => {
|
|
|
35169
36157
|
}),
|
|
35170
36158
|
isLoading = _Digit$Hooks$pt$usePr.isLoading,
|
|
35171
36159
|
propertyDetails = _Digit$Hooks$pt$usePr.data;
|
|
35172
|
-
useEffect(() => {
|
|
35173
|
-
const fetchToken = function () {
|
|
35174
|
-
try {
|
|
35175
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
35176
|
-
const code = urlParams.get("code");
|
|
35177
|
-
const state = urlParams.get("state");
|
|
35178
|
-
const _temp2 = function () {
|
|
35179
|
-
if (code && state === "oidc_flow") {
|
|
35180
|
-
const _temp = _catch(function () {
|
|
35181
|
-
const TokenReq = {
|
|
35182
|
-
module: "WS",
|
|
35183
|
-
code: code
|
|
35184
|
-
};
|
|
35185
|
-
return Promise.resolve(Digit.DigiLockerService.token({
|
|
35186
|
-
TokenReq
|
|
35187
|
-
})).then(function (res) {
|
|
35188
|
-
var _res$TokenRes;
|
|
35189
|
-
if (res !== null && res !== void 0 && (_res$TokenRes = res.TokenRes) !== null && _res$TokenRes !== void 0 && _res$TokenRes.access_token) {
|
|
35190
|
-
sessionStorage.setItem("DigiLocker.token1", res.TokenRes.access_token);
|
|
35191
|
-
} else {
|
|
35192
|
-
sessionStorage.setItem("DigiLocker.token1", "dummy_token");
|
|
35193
|
-
}
|
|
35194
|
-
const newUrl = window.location.pathname;
|
|
35195
|
-
window.history.replaceState({}, document.title, newUrl);
|
|
35196
|
-
});
|
|
35197
|
-
}, function (error) {
|
|
35198
|
-
console.error("Error fetching DigiLocker token", error);
|
|
35199
|
-
});
|
|
35200
|
-
if (_temp && _temp.then) return _temp.then(function () {});
|
|
35201
|
-
}
|
|
35202
|
-
}();
|
|
35203
|
-
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
35204
|
-
} catch (e) {
|
|
35205
|
-
return Promise.reject(e);
|
|
35206
|
-
}
|
|
35207
|
-
};
|
|
35208
|
-
fetchToken();
|
|
35209
|
-
}, []);
|
|
35210
36160
|
const radioOptions = [{
|
|
35211
36161
|
code: "YES",
|
|
35212
36162
|
i18nKey: "TL_COMMON_YES"
|
|
@@ -35453,14 +36403,15 @@ const WSInfoPage = () => {
|
|
|
35453
36403
|
onSubmit: function (e) {
|
|
35454
36404
|
try {
|
|
35455
36405
|
e.preventDefault();
|
|
35456
|
-
const
|
|
36406
|
+
const _temp = _catch(function () {
|
|
35457
36407
|
return Promise.resolve(Digit.DigiLockerService.authorization({
|
|
35458
36408
|
module: "WS",
|
|
35459
36409
|
tenantId
|
|
35460
36410
|
})).then(function (data) {
|
|
35461
36411
|
const redirectUrl = (data === null || data === void 0 ? void 0 : data.redirectURL) || (data === null || data === void 0 ? void 0 : data.redirectUrl);
|
|
35462
|
-
|
|
35463
|
-
|
|
36412
|
+
const verifier = (data === null || data === void 0 ? void 0 : data.dlReqRef) || (data === null || data === void 0 ? void 0 : data.codeverifier) || (data === null || data === void 0 ? void 0 : data.codeVerifier) || (data === null || data === void 0 ? void 0 : data.code_verifier);
|
|
36413
|
+
if (verifier) {
|
|
36414
|
+
sessionStorage.setItem("code_verfier_register", verifier);
|
|
35464
36415
|
}
|
|
35465
36416
|
if (redirectUrl) {
|
|
35466
36417
|
window.location.href = redirectUrl;
|
|
@@ -35471,7 +36422,7 @@ const WSInfoPage = () => {
|
|
|
35471
36422
|
}, function (error) {
|
|
35472
36423
|
console.error("Error fetching DigiLocker authorization URL", error);
|
|
35473
36424
|
});
|
|
35474
|
-
return Promise.resolve(
|
|
36425
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
35475
36426
|
} catch (e) {
|
|
35476
36427
|
return Promise.reject(e);
|
|
35477
36428
|
}
|
|
@@ -35888,7 +36839,7 @@ const ApplicationBillAmendment = () => {
|
|
|
35888
36839
|
style: {
|
|
35889
36840
|
paddingLeft: "150px"
|
|
35890
36841
|
}
|
|
35891
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
36842
|
+
}, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Controller, {
|
|
35892
36843
|
name: servicev1 + "_REDUCED_AMOUNT.VALUE",
|
|
35893
36844
|
key: servicev1 + "_REDUCED_AMOUNT.VALUE",
|
|
35894
36845
|
control: control,
|
|
@@ -35923,7 +36874,7 @@ const ApplicationBillAmendment = () => {
|
|
|
35923
36874
|
checked: props === null || props === void 0 ? void 0 : props.value
|
|
35924
36875
|
}));
|
|
35925
36876
|
}
|
|
35926
|
-
}), 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$
|
|
36877
|
+
}), 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$2, null, /*#__PURE__*/React.createElement(Controller, {
|
|
35927
36878
|
name: servicev1 + "_ADDITIONAL_AMOUNT.VALUE",
|
|
35928
36879
|
key: servicev1 + "_ADDITIONAL_AMOUNT.VALUE",
|
|
35929
36880
|
control: control,
|
|
@@ -35974,7 +36925,7 @@ const ApplicationBillAmendment = () => {
|
|
|
35974
36925
|
paddingRight: "60px",
|
|
35975
36926
|
paddingLeft: "150px"
|
|
35976
36927
|
}
|
|
35977
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
36928
|
+
}, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
35978
36929
|
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),
|
|
35979
36930
|
type: "number",
|
|
35980
36931
|
name: servicev1 + "_REDUCED_AMOUNT." + node.taxHeadCode,
|
|
@@ -36004,7 +36955,7 @@ const ApplicationBillAmendment = () => {
|
|
|
36004
36955
|
style: {
|
|
36005
36956
|
paddingRight: "60px"
|
|
36006
36957
|
}
|
|
36007
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
36958
|
+
}, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
36008
36959
|
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),
|
|
36009
36960
|
type: "number",
|
|
36010
36961
|
name: servicev1 + "_ADDITIONAL_AMOUNT." + node.taxHeadCode,
|
|
@@ -36052,7 +37003,7 @@ const ApplicationBillAmendment = () => {
|
|
|
36052
37003
|
paddingRight: "60px",
|
|
36053
37004
|
paddingLeft: "150px"
|
|
36054
37005
|
}
|
|
36055
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
37006
|
+
}, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
36056
37007
|
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),
|
|
36057
37008
|
name: servicev1 + "_REBATE",
|
|
36058
37009
|
inputRef: register()
|
|
@@ -36060,11 +37011,11 @@ const ApplicationBillAmendment = () => {
|
|
|
36060
37011
|
style: {
|
|
36061
37012
|
paddingRight: "60px"
|
|
36062
37013
|
}
|
|
36063
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
37014
|
+
}, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
36064
37015
|
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),
|
|
36065
37016
|
name: servicev1 + "_PENALTY",
|
|
36066
37017
|
inputRef: register()
|
|
36067
|
-
}))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$
|
|
37018
|
+
}))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
36068
37019
|
style: {
|
|
36069
37020
|
marginBottom: "16px"
|
|
36070
37021
|
}
|
|
@@ -44296,7 +45247,7 @@ const ScruntinyDetails = _ref => {
|
|
|
44296
45247
|
}
|
|
44297
45248
|
}, 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");
|
|
44298
45249
|
};
|
|
44299
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
45250
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, !(scrutinyDetails !== null && scrutinyDetails !== void 0 && scrutinyDetails.isChecklist) && /*#__PURE__*/React.createElement("div", {
|
|
44300
45251
|
style: {
|
|
44301
45252
|
background: "#FAFAFA",
|
|
44302
45253
|
border: "1px solid #D6D5D4",
|
|
@@ -44354,7 +45305,7 @@ const ScruntinyDetails = _ref => {
|
|
|
44354
45305
|
}
|
|
44355
45306
|
}, value === null || value === void 0 ? void 0 : value.title);
|
|
44356
45307
|
})), /*#__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) => {
|
|
44357
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
45308
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Row, {
|
|
44358
45309
|
className: "border-none",
|
|
44359
45310
|
label: "" + t(report === null || report === void 0 ? void 0 : report.title),
|
|
44360
45311
|
labelStyle: {
|
|
@@ -44460,7 +45411,7 @@ const SubOccupancyTable = _ref => {
|
|
|
44460
45411
|
}
|
|
44461
45412
|
return returnValue ? returnValue : "NA";
|
|
44462
45413
|
}
|
|
44463
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
45414
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
44464
45415
|
style: {
|
|
44465
45416
|
background: "#FAFAFA",
|
|
44466
45417
|
border: "1px solid #D6D5D4",
|
|
@@ -45930,7 +46881,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
45930
46881
|
wsAdditionalDetails: detail,
|
|
45931
46882
|
workflowDetails: workflowDetails
|
|
45932
46883
|
}));
|
|
45933
|
-
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.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$
|
|
46884
|
+
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.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$2, null, /*#__PURE__*/React.createElement("div", {
|
|
45934
46885
|
id: "timeline"
|
|
45935
46886
|
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
45936
46887
|
style: {
|
|
@@ -47340,7 +48291,7 @@ const GetConnectionDetails = () => {
|
|
|
47340
48291
|
onClick: props.onClick
|
|
47341
48292
|
}, /*#__PURE__*/React.createElement(Close, null));
|
|
47342
48293
|
};
|
|
47343
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
48294
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
47344
48295
|
style: {
|
|
47345
48296
|
position: "relative"
|
|
47346
48297
|
}
|
|
@@ -47795,7 +48746,7 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
47795
48746
|
label: t("WS_ACK_PDF"),
|
|
47796
48747
|
onClick: () => getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails, applicationDetails)
|
|
47797
48748
|
}];
|
|
47798
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
48749
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
47799
48750
|
className: "employee-main-application-details"
|
|
47800
48751
|
}, /*#__PURE__*/React.createElement("div", {
|
|
47801
48752
|
className: "employee-application-details",
|
|
@@ -47905,7 +48856,7 @@ const Search = _ref => {
|
|
|
47905
48856
|
var _result$data3;
|
|
47906
48857
|
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;
|
|
47907
48858
|
};
|
|
47908
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
48859
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Search, {
|
|
47909
48860
|
t: t,
|
|
47910
48861
|
tenantId: tenantId,
|
|
47911
48862
|
onSubmit: onSubmit,
|
|
@@ -48004,7 +48955,7 @@ const SearchWater = _ref => {
|
|
|
48004
48955
|
}
|
|
48005
48956
|
return item;
|
|
48006
48957
|
});
|
|
48007
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
48958
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SWater, {
|
|
48008
48959
|
t: t,
|
|
48009
48960
|
tenantId: tenantId,
|
|
48010
48961
|
onSubmit: onSubmit,
|
|
@@ -48590,11 +49541,16 @@ const ConsumptionDetails = _ref => {
|
|
|
48590
49541
|
}
|
|
48591
49542
|
let _ref2 = response || {},
|
|
48592
49543
|
meterReadings = _ref2.meterReadings;
|
|
48593
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div",
|
|
48594
|
-
|
|
48595
|
-
|
|
49544
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
49545
|
+
className: "employee-form-section-wrapper"
|
|
49546
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
49547
|
+
style: {
|
|
49548
|
+
flex: 1,
|
|
49549
|
+
display: "flex",
|
|
49550
|
+
flexDirection: "column",
|
|
49551
|
+
gap: "16px"
|
|
48596
49552
|
}
|
|
48597
|
-
},
|
|
49553
|
+
}, (meterReadings === null || meterReadings === void 0 ? void 0 : meterReadings.length) > 0 && meterReadings.map((application, index) => /*#__PURE__*/React.createElement("div", {
|
|
48598
49554
|
key: index
|
|
48599
49555
|
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
48600
49556
|
key: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
@@ -50467,7 +51423,7 @@ const GetDisconnectionDetails = () => {
|
|
|
50467
51423
|
dowloadOptions.sort(function (a, b) {
|
|
50468
51424
|
return a.order - b.order;
|
|
50469
51425
|
});
|
|
50470
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
51426
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
50471
51427
|
className: "employee-main-application-details",
|
|
50472
51428
|
style: {
|
|
50473
51429
|
display: "flex",
|
|
@@ -50712,7 +51668,7 @@ const ModifyApplicationDetails = () => {
|
|
|
50712
51668
|
dowloadOptions.sort(function (a, b) {
|
|
50713
51669
|
return a.order - b.order;
|
|
50714
51670
|
});
|
|
50715
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
51671
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
50716
51672
|
className: "employee-main-application-details"
|
|
50717
51673
|
}, /*#__PURE__*/React.createElement("div", {
|
|
50718
51674
|
className: "employee-application-details",
|
|
@@ -51210,7 +52166,7 @@ const SearchFields$2 = _ref => {
|
|
|
51210
52166
|
},
|
|
51211
52167
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
51212
52168
|
};
|
|
51213
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
52169
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, {
|
|
51214
52170
|
style: {
|
|
51215
52171
|
width: "100%"
|
|
51216
52172
|
}
|
|
@@ -51414,7 +52370,7 @@ const SearchWaterConnectionIntegrated = _ref => {
|
|
|
51414
52370
|
return GetCell(status === "INACTIVE" ? t("WS_NA") : t("" + dueDate));
|
|
51415
52371
|
}
|
|
51416
52372
|
}], []);
|
|
51417
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
52373
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, {
|
|
51418
52374
|
styles: {
|
|
51419
52375
|
fontSize: "32px"
|
|
51420
52376
|
}
|
|
@@ -51551,7 +52507,7 @@ const SearchIntegrated = _ref => {
|
|
|
51551
52507
|
var _result12$data5, _result$data5;
|
|
51552
52508
|
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;
|
|
51553
52509
|
};
|
|
51554
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
52510
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SWater, {
|
|
51555
52511
|
t: t,
|
|
51556
52512
|
tenantId: tenantId,
|
|
51557
52513
|
onSubmit: onSubmit,
|
|
@@ -51574,7 +52530,7 @@ const SearchWaterConnectionViewIntegrated = _ref => {
|
|
|
51574
52530
|
onSubmit = _ref.onSubmit,
|
|
51575
52531
|
count = _ref.count,
|
|
51576
52532
|
resultOk = _ref.resultOk;
|
|
51577
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
52533
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchWaterConnectionIntegrated, {
|
|
51578
52534
|
onSubmit: onSubmit,
|
|
51579
52535
|
data: data,
|
|
51580
52536
|
count: count,
|
|
@@ -51643,7 +52599,7 @@ const BulkBillGeneration = _ref => {
|
|
|
51643
52599
|
var _result$meterReadings;
|
|
51644
52600
|
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;
|
|
51645
52601
|
};
|
|
51646
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
52602
|
+
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(WSBulkBillSearch, {
|
|
51647
52603
|
t: t,
|
|
51648
52604
|
tenantId: tenantId,
|
|
51649
52605
|
onSubmit: onSubmit,
|