@djb25/digit-ui-module-ws 1.0.40 → 1.0.42
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 +557 -841
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +558 -842
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7925,7 +7925,7 @@ const WSMyApplications = () => {
|
|
|
7925
7925
|
property: PTdata === null || PTdata === void 0 ? void 0 : (_PTdata$Properties = PTdata.Properties) === null || _PTdata$Properties === void 0 ? void 0 : _PTdata$Properties.filter(pt => (pt === null || pt === void 0 ? void 0 : pt.propertyId) === (ob === null || ob === void 0 ? void 0 : ob.propertyId))[0]
|
|
7926
7926
|
});
|
|
7927
7927
|
});
|
|
7928
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
7928
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
7929
7929
|
t: t
|
|
7930
7930
|
}), /*#__PURE__*/React__default.createElement("div", null, ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 && applicationsList.sort((a, b) => {
|
|
7931
7931
|
var _b$auditDetails, _a$auditDetails;
|
|
@@ -8512,7 +8512,7 @@ const WSResponse = props => {
|
|
|
8512
8512
|
};
|
|
8513
8513
|
|
|
8514
8514
|
const App = _ref => {
|
|
8515
|
-
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;
|
|
8515
|
+
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _user$info, _user$info$userName, _user$info2, _user$info3, _wsData$WaterConnecti, _wsData$WaterConnecti2, _swData$SewerageConne, _swData$SewerageConne2, _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;
|
|
8516
8516
|
let path = _ref.path;
|
|
8517
8517
|
const location = reactRouterDom.useLocation();
|
|
8518
8518
|
const _useTranslation = reactI18next.useTranslation(),
|
|
@@ -8522,6 +8522,40 @@ const App = _ref => {
|
|
|
8522
8522
|
let isAcknowledgement = window.location.href.includes("/acknowledgement") || window.location.href.includes("/disconnect-acknowledge");
|
|
8523
8523
|
const WSDisconnectAcknowledgement = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSDisconnectAcknowledgement");
|
|
8524
8524
|
const WSRestorationAcknowledgement = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WSRestorationAcknowledgement");
|
|
8525
|
+
const user = window.Digit.UserService.getUser();
|
|
8526
|
+
const tenantId = "dl.djb";
|
|
8527
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.userName : user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.mobileNumber;
|
|
8528
|
+
const isMyApps = location.pathname.includes("/my-applications");
|
|
8529
|
+
const _window$Digit$Hooks$w = window.Digit.Hooks.ws.useMyApplicationSearch({
|
|
8530
|
+
filters: {
|
|
8531
|
+
tenantId,
|
|
8532
|
+
mobileNumber: userMobileNumber
|
|
8533
|
+
}
|
|
8534
|
+
}, {
|
|
8535
|
+
filters: {
|
|
8536
|
+
tenantId,
|
|
8537
|
+
mobileNumber: userMobileNumber
|
|
8538
|
+
},
|
|
8539
|
+
enabled: isMyApps
|
|
8540
|
+
}),
|
|
8541
|
+
wsData = _window$Digit$Hooks$w.data;
|
|
8542
|
+
const _window$Digit$Hooks$w2 = window.Digit.Hooks.ws.useMyApplicationSearch({
|
|
8543
|
+
filters: {
|
|
8544
|
+
tenantId,
|
|
8545
|
+
mobileNumber: userMobileNumber
|
|
8546
|
+
},
|
|
8547
|
+
BusinessService: "SW"
|
|
8548
|
+
}, {
|
|
8549
|
+
filters: {
|
|
8550
|
+
tenantId,
|
|
8551
|
+
mobileNumber: userMobileNumber
|
|
8552
|
+
},
|
|
8553
|
+
enabled: isMyApps
|
|
8554
|
+
}),
|
|
8555
|
+
swData = _window$Digit$Hooks$w2.data;
|
|
8556
|
+
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;
|
|
8557
|
+
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;
|
|
8558
|
+
let totalAppsCount = wsCount + swCount;
|
|
8525
8559
|
const crumbs = [{
|
|
8526
8560
|
path: "/digit-ui/employee",
|
|
8527
8561
|
show: true,
|
|
@@ -8539,7 +8573,7 @@ const App = _ref => {
|
|
|
8539
8573
|
show: location.pathname.includes("/search")
|
|
8540
8574
|
}, {
|
|
8541
8575
|
path: "/digit-ui/citizen/ws/my-applications",
|
|
8542
|
-
label: t("CS_HOME_MY_APPLICATIONS"),
|
|
8576
|
+
label: t("CS_HOME_MY_APPLICATIONS") + " " + (totalAppsCount ? "(" + totalAppsCount + ")" : ""),
|
|
8543
8577
|
show: location.pathname.includes("/my-applications")
|
|
8544
8578
|
}, {
|
|
8545
8579
|
path: "/digit-ui/citizen/ws/my-connections",
|
|
@@ -8557,6 +8591,10 @@ const App = _ref => {
|
|
|
8557
8591
|
path: "/digit-ui/citizen/ws/old-application",
|
|
8558
8592
|
label: t("WS_COMMON_APPL_NEW_CONNECTION"),
|
|
8559
8593
|
show: location.pathname.includes("/old-application")
|
|
8594
|
+
}, {
|
|
8595
|
+
path: location.pathname,
|
|
8596
|
+
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
8597
|
+
show: location.pathname.includes("/connection/application")
|
|
8560
8598
|
}];
|
|
8561
8599
|
const getDynamicBreadcrumbs = () => {
|
|
8562
8600
|
return crumbs.filter(crumb => crumb.show);
|
|
@@ -10256,36 +10294,29 @@ const WSDocsRequired = _ref => {
|
|
|
10256
10294
|
}))));
|
|
10257
10295
|
};
|
|
10258
10296
|
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
10262
|
-
|
|
10263
|
-
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
10264
|
-
|
|
10265
|
-
// Asynchronously call a function and send errors to recovery continuation
|
|
10297
|
+
const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
10298
|
+
const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
10266
10299
|
function _catch(body, recover) {
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10300
|
+
try {
|
|
10301
|
+
var result = body();
|
|
10302
|
+
} catch (e) {
|
|
10303
|
+
return recover(e);
|
|
10304
|
+
}
|
|
10305
|
+
if (result && result.then) {
|
|
10306
|
+
return result.then(void 0, recover);
|
|
10307
|
+
}
|
|
10308
|
+
return result;
|
|
10276
10309
|
}
|
|
10277
|
-
|
|
10278
|
-
// Asynchronously await a promise and pass the result to a finally continuation
|
|
10279
10310
|
function _finallyRethrows(body, finalizer) {
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10311
|
+
try {
|
|
10312
|
+
var result = body();
|
|
10313
|
+
} catch (e) {
|
|
10314
|
+
return finalizer(true, e);
|
|
10315
|
+
}
|
|
10316
|
+
if (result && result.then) {
|
|
10317
|
+
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
10318
|
+
}
|
|
10319
|
+
return finalizer(false, result);
|
|
10289
10320
|
}
|
|
10290
10321
|
|
|
10291
10322
|
const WSSewerageConnectionDetails = _ref => {
|
|
@@ -20727,16 +20758,6 @@ const SearchFormFieldsComponents = _ref => {
|
|
|
20727
20758
|
title: t("ERR_INVALID_APPLICATION_NO")
|
|
20728
20759
|
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, {
|
|
20729
20760
|
className: "wns-search-field"
|
|
20730
|
-
}, /*#__PURE__*/React__default.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
20731
|
-
name: "consumerNo",
|
|
20732
|
-
inputRef: registerRef({})
|
|
20733
|
-
}, validation = {
|
|
20734
|
-
isRequired: false,
|
|
20735
|
-
pattern: "^[a-zA-Z0-9/-]*$",
|
|
20736
|
-
type: "text",
|
|
20737
|
-
title: t("ERR_INVALID_CONSUMER_NO")
|
|
20738
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, {
|
|
20739
|
-
className: "wns-search-field"
|
|
20740
20761
|
}, /*#__PURE__*/React__default.createElement("label", null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, _extends({
|
|
20741
20762
|
name: "mobileNumber",
|
|
20742
20763
|
type: "number",
|
|
@@ -20952,10 +20973,6 @@ const useInboxTableConfig = _ref => {
|
|
|
20952
20973
|
className: "link"
|
|
20953
20974
|
}, row.original["applicationNo"])));
|
|
20954
20975
|
}
|
|
20955
|
-
}, {
|
|
20956
|
-
Header: t("WS_COMMON_TABLE_COL_CONSUMER_NO_LABEL"),
|
|
20957
|
-
accessor: "connectionNo",
|
|
20958
|
-
disableSortBy: true
|
|
20959
20976
|
}, {
|
|
20960
20977
|
Header: t("WS_COMMON_TABLE_COL_OWN_NAME_LABEL"),
|
|
20961
20978
|
accessor: "owner",
|
|
@@ -21140,7 +21157,7 @@ const WSInbox = _ref => {
|
|
|
21140
21157
|
sortOrder: "DESC"
|
|
21141
21158
|
};
|
|
21142
21159
|
sessionStorage.removeItem("Digit.BILL.INBOX");
|
|
21143
|
-
sessionStorage.removeItem("Digit.SW.INBOX");
|
|
21160
|
+
sessionStorage.removeItem("Digit.BILL.SW.INBOX");
|
|
21144
21161
|
function formReducer(state, payload) {
|
|
21145
21162
|
if (checkPathName) {
|
|
21146
21163
|
switch (payload.action) {
|
|
@@ -21192,7 +21209,7 @@ const WSInbox = _ref => {
|
|
|
21192
21209
|
}
|
|
21193
21210
|
}
|
|
21194
21211
|
}
|
|
21195
|
-
const InboxObjectInSessionStorage = Digit.SessionStorage.get("BILL.INBOX");
|
|
21212
|
+
const InboxObjectInSessionStorage = checkPathName ? Digit.SessionStorage.get("BILL.INBOX") : Digit.SessionStorage.get("BILL.SW.INBOX");
|
|
21196
21213
|
const onSearchFormReset = setSearchFormValue => {
|
|
21197
21214
|
setSearchFormValue("mobileNumber", null);
|
|
21198
21215
|
setSearchFormValue("applicationNumber", null);
|
|
@@ -23402,9 +23419,14 @@ const WSCard = () => {
|
|
|
23402
23419
|
}],
|
|
23403
23420
|
links: [{
|
|
23404
23421
|
count: isWSInboxLoading ? "-" : wsData === null || wsData === void 0 ? void 0 : wsData.totalCount,
|
|
23405
|
-
label: t("
|
|
23422
|
+
label: t("WATER_INBOX"),
|
|
23406
23423
|
link: "/digit-ui/employee/ws/water/inbox",
|
|
23407
23424
|
roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK"]
|
|
23425
|
+
}, {
|
|
23426
|
+
count: isWSInboxLoading ? "-" : wsData === null || wsData === void 0 ? void 0 : wsData.totalCount,
|
|
23427
|
+
label: t("SEWERAGE_INBOX"),
|
|
23428
|
+
link: "/digit-ui/employee/ws/sewerage/inbox",
|
|
23429
|
+
roles: ["SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
23408
23430
|
}, ...links, {
|
|
23409
23431
|
label: t("WS_WATER_CONNECTION_SEARCH_LABEL"),
|
|
23410
23432
|
link: "/digit-ui/employee/ws/water/search-connection",
|
|
@@ -25188,385 +25210,394 @@ const config = [{
|
|
|
25188
25210
|
}]
|
|
25189
25211
|
}];
|
|
25190
25212
|
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
|
|
25206
|
-
|
|
25207
|
-
|
|
25208
|
-
|
|
25209
|
-
|
|
25210
|
-
|
|
25211
|
-
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
|
|
25215
|
-
|
|
25216
|
-
|
|
25217
|
-
|
|
25218
|
-
|
|
25219
|
-
|
|
25220
|
-
|
|
25221
|
-
|
|
25222
|
-
|
|
25223
|
-
isContextProvider: isContextProvider,
|
|
25224
|
-
isElement: isElement,
|
|
25225
|
-
isForwardRef: isForwardRef,
|
|
25226
|
-
isFragment: isFragment,
|
|
25227
|
-
isLazy: isLazy,
|
|
25228
|
-
isMemo: isMemo,
|
|
25229
|
-
isPortal: isPortal,
|
|
25230
|
-
isProfiler: isProfiler,
|
|
25231
|
-
isStrictMode: isStrictMode,
|
|
25232
|
-
isSuspense: isSuspense,
|
|
25233
|
-
isValidElementType: isValidElementType,
|
|
25234
|
-
typeOf: typeOf
|
|
25235
|
-
};
|
|
25236
|
-
|
|
25237
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
25238
|
-
|
|
25239
|
-
|
|
25240
|
-
|
|
25241
|
-
if (process.env.NODE_ENV !== "production") {
|
|
25242
|
-
(function() {
|
|
25243
|
-
|
|
25244
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
25245
|
-
// nor polyfill, then a plain number is used for performance.
|
|
25246
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
25247
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25248
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
25249
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
25250
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
25251
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
25252
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
25253
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
25254
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
25255
|
-
|
|
25256
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
25257
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
25258
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
25259
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
25260
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
25261
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
25262
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
25263
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
25264
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
25265
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
25266
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
25267
|
-
|
|
25268
|
-
function isValidElementType(type) {
|
|
25269
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
25270
|
-
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);
|
|
25271
|
-
}
|
|
25272
|
-
|
|
25273
|
-
function typeOf(object) {
|
|
25274
|
-
if (typeof object === 'object' && object !== null) {
|
|
25275
|
-
var $$typeof = object.$$typeof;
|
|
25276
|
-
|
|
25277
|
-
switch ($$typeof) {
|
|
25278
|
-
case REACT_ELEMENT_TYPE:
|
|
25279
|
-
var type = object.type;
|
|
25280
|
-
|
|
25281
|
-
switch (type) {
|
|
25282
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
25283
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
25284
|
-
case REACT_FRAGMENT_TYPE:
|
|
25285
|
-
case REACT_PROFILER_TYPE:
|
|
25286
|
-
case REACT_STRICT_MODE_TYPE:
|
|
25287
|
-
case REACT_SUSPENSE_TYPE:
|
|
25288
|
-
return type;
|
|
25289
|
-
|
|
25213
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
|
25214
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
25215
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
|
25216
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
|
25217
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
25218
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
|
25219
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
|
25220
|
+
k = b ? Symbol.for("react.context") : 60110,
|
|
25221
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
25222
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
25223
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
25224
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
|
25225
|
+
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
25226
|
+
r = b ? Symbol.for("react.memo") : 60115,
|
|
25227
|
+
t = b ? Symbol.for("react.lazy") : 60116,
|
|
25228
|
+
v = b ? Symbol.for("react.block") : 60121,
|
|
25229
|
+
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
25230
|
+
x = b ? Symbol.for("react.responder") : 60118,
|
|
25231
|
+
y = b ? Symbol.for("react.scope") : 60119;
|
|
25232
|
+
function z(a) {
|
|
25233
|
+
if ("object" === typeof a && null !== a) {
|
|
25234
|
+
var u = a.$$typeof;
|
|
25235
|
+
switch (u) {
|
|
25236
|
+
case c:
|
|
25237
|
+
switch (a = a.type, a) {
|
|
25238
|
+
case l:
|
|
25239
|
+
case m:
|
|
25240
|
+
case e:
|
|
25241
|
+
case g:
|
|
25242
|
+
case f:
|
|
25243
|
+
case p:
|
|
25244
|
+
return a;
|
|
25290
25245
|
default:
|
|
25291
|
-
|
|
25292
|
-
|
|
25293
|
-
|
|
25294
|
-
case
|
|
25295
|
-
case
|
|
25296
|
-
case
|
|
25297
|
-
|
|
25298
|
-
case REACT_PROVIDER_TYPE:
|
|
25299
|
-
return $$typeofType;
|
|
25300
|
-
|
|
25246
|
+
switch (a = a && a.$$typeof, a) {
|
|
25247
|
+
case k:
|
|
25248
|
+
case n:
|
|
25249
|
+
case t:
|
|
25250
|
+
case r:
|
|
25251
|
+
case h:
|
|
25252
|
+
return a;
|
|
25301
25253
|
default:
|
|
25302
|
-
return
|
|
25254
|
+
return u;
|
|
25303
25255
|
}
|
|
25304
|
-
|
|
25305
25256
|
}
|
|
25306
|
-
|
|
25307
|
-
|
|
25308
|
-
return $$typeof;
|
|
25257
|
+
case d:
|
|
25258
|
+
return u;
|
|
25309
25259
|
}
|
|
25310
25260
|
}
|
|
25311
|
-
|
|
25312
|
-
return undefined;
|
|
25313
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
25314
|
-
|
|
25315
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
25316
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
25317
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
25318
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
25319
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
25320
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
25321
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
25322
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
25323
|
-
var Memo = REACT_MEMO_TYPE;
|
|
25324
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
25325
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
25326
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
25327
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
25328
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
25329
|
-
|
|
25330
|
-
function isAsyncMode(object) {
|
|
25331
|
-
{
|
|
25332
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
25333
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
25334
|
-
|
|
25335
|
-
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.');
|
|
25336
|
-
}
|
|
25337
|
-
}
|
|
25338
|
-
|
|
25339
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
25340
|
-
}
|
|
25341
|
-
function isConcurrentMode(object) {
|
|
25342
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
25343
|
-
}
|
|
25344
|
-
function isContextConsumer(object) {
|
|
25345
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
25346
|
-
}
|
|
25347
|
-
function isContextProvider(object) {
|
|
25348
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
25349
|
-
}
|
|
25350
|
-
function isElement(object) {
|
|
25351
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
25352
25261
|
}
|
|
25353
|
-
function
|
|
25354
|
-
return
|
|
25355
|
-
}
|
|
25356
|
-
function isFragment(object) {
|
|
25357
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
25358
|
-
}
|
|
25359
|
-
function isLazy(object) {
|
|
25360
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
25361
|
-
}
|
|
25362
|
-
function isMemo(object) {
|
|
25363
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
25364
|
-
}
|
|
25365
|
-
function isPortal(object) {
|
|
25366
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
25367
|
-
}
|
|
25368
|
-
function isProfiler(object) {
|
|
25369
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
25370
|
-
}
|
|
25371
|
-
function isStrictMode(object) {
|
|
25372
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
25373
|
-
}
|
|
25374
|
-
function isSuspense(object) {
|
|
25375
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
25262
|
+
function A(a) {
|
|
25263
|
+
return z(a) === m;
|
|
25376
25264
|
}
|
|
25265
|
+
var AsyncMode = l;
|
|
25266
|
+
var ConcurrentMode = m;
|
|
25267
|
+
var ContextConsumer = k;
|
|
25268
|
+
var ContextProvider = h;
|
|
25269
|
+
var Element = c;
|
|
25270
|
+
var ForwardRef = n;
|
|
25271
|
+
var Fragment = e;
|
|
25272
|
+
var Lazy = t;
|
|
25273
|
+
var Memo = r;
|
|
25274
|
+
var Portal = d;
|
|
25275
|
+
var Profiler = g;
|
|
25276
|
+
var StrictMode = f;
|
|
25277
|
+
var Suspense = p;
|
|
25278
|
+
var isAsyncMode = function (a) {
|
|
25279
|
+
return A(a) || z(a) === l;
|
|
25280
|
+
};
|
|
25281
|
+
var isConcurrentMode = A;
|
|
25282
|
+
var isContextConsumer = function (a) {
|
|
25283
|
+
return z(a) === k;
|
|
25284
|
+
};
|
|
25285
|
+
var isContextProvider = function (a) {
|
|
25286
|
+
return z(a) === h;
|
|
25287
|
+
};
|
|
25288
|
+
var isElement = function (a) {
|
|
25289
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
25290
|
+
};
|
|
25291
|
+
var isForwardRef = function (a) {
|
|
25292
|
+
return z(a) === n;
|
|
25293
|
+
};
|
|
25294
|
+
var isFragment = function (a) {
|
|
25295
|
+
return z(a) === e;
|
|
25296
|
+
};
|
|
25297
|
+
var isLazy = function (a) {
|
|
25298
|
+
return z(a) === t;
|
|
25299
|
+
};
|
|
25300
|
+
var isMemo = function (a) {
|
|
25301
|
+
return z(a) === r;
|
|
25302
|
+
};
|
|
25303
|
+
var isPortal = function (a) {
|
|
25304
|
+
return z(a) === d;
|
|
25305
|
+
};
|
|
25306
|
+
var isProfiler = function (a) {
|
|
25307
|
+
return z(a) === g;
|
|
25308
|
+
};
|
|
25309
|
+
var isStrictMode = function (a) {
|
|
25310
|
+
return z(a) === f;
|
|
25311
|
+
};
|
|
25312
|
+
var isSuspense = function (a) {
|
|
25313
|
+
return z(a) === p;
|
|
25314
|
+
};
|
|
25315
|
+
var isValidElementType = function (a) {
|
|
25316
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
25317
|
+
};
|
|
25318
|
+
var typeOf = z;
|
|
25319
|
+
var reactIs_production_min = {
|
|
25320
|
+
AsyncMode: AsyncMode,
|
|
25321
|
+
ConcurrentMode: ConcurrentMode,
|
|
25322
|
+
ContextConsumer: ContextConsumer,
|
|
25323
|
+
ContextProvider: ContextProvider,
|
|
25324
|
+
Element: Element,
|
|
25325
|
+
ForwardRef: ForwardRef,
|
|
25326
|
+
Fragment: Fragment,
|
|
25327
|
+
Lazy: Lazy,
|
|
25328
|
+
Memo: Memo,
|
|
25329
|
+
Portal: Portal,
|
|
25330
|
+
Profiler: Profiler,
|
|
25331
|
+
StrictMode: StrictMode,
|
|
25332
|
+
Suspense: Suspense,
|
|
25333
|
+
isAsyncMode: isAsyncMode,
|
|
25334
|
+
isConcurrentMode: isConcurrentMode,
|
|
25335
|
+
isContextConsumer: isContextConsumer,
|
|
25336
|
+
isContextProvider: isContextProvider,
|
|
25337
|
+
isElement: isElement,
|
|
25338
|
+
isForwardRef: isForwardRef,
|
|
25339
|
+
isFragment: isFragment,
|
|
25340
|
+
isLazy: isLazy,
|
|
25341
|
+
isMemo: isMemo,
|
|
25342
|
+
isPortal: isPortal,
|
|
25343
|
+
isProfiler: isProfiler,
|
|
25344
|
+
isStrictMode: isStrictMode,
|
|
25345
|
+
isSuspense: isSuspense,
|
|
25346
|
+
isValidElementType: isValidElementType,
|
|
25347
|
+
typeOf: typeOf
|
|
25348
|
+
};
|
|
25377
25349
|
|
|
25378
|
-
|
|
25379
|
-
|
|
25380
|
-
|
|
25381
|
-
|
|
25382
|
-
|
|
25383
|
-
|
|
25384
|
-
|
|
25385
|
-
|
|
25386
|
-
|
|
25387
|
-
|
|
25388
|
-
|
|
25389
|
-
|
|
25390
|
-
|
|
25391
|
-
|
|
25392
|
-
|
|
25393
|
-
|
|
25394
|
-
|
|
25395
|
-
|
|
25396
|
-
|
|
25397
|
-
|
|
25398
|
-
|
|
25399
|
-
|
|
25400
|
-
|
|
25401
|
-
|
|
25402
|
-
|
|
25403
|
-
|
|
25404
|
-
|
|
25405
|
-
|
|
25406
|
-
|
|
25407
|
-
|
|
25350
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
25351
|
+
|
|
25352
|
+
if (process.env.NODE_ENV !== "production") {
|
|
25353
|
+
(function () {
|
|
25354
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
25355
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25356
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
25357
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
25358
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
25359
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
25360
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
25361
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
25362
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
25363
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
25364
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
25365
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
25366
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
25367
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
25368
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
25369
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
25370
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
25371
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
25372
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
25373
|
+
function isValidElementType(type) {
|
|
25374
|
+
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);
|
|
25375
|
+
}
|
|
25376
|
+
function typeOf(object) {
|
|
25377
|
+
if (typeof object === 'object' && object !== null) {
|
|
25378
|
+
var $$typeof = object.$$typeof;
|
|
25379
|
+
switch ($$typeof) {
|
|
25380
|
+
case REACT_ELEMENT_TYPE:
|
|
25381
|
+
var type = object.type;
|
|
25382
|
+
switch (type) {
|
|
25383
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
25384
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
25385
|
+
case REACT_FRAGMENT_TYPE:
|
|
25386
|
+
case REACT_PROFILER_TYPE:
|
|
25387
|
+
case REACT_STRICT_MODE_TYPE:
|
|
25388
|
+
case REACT_SUSPENSE_TYPE:
|
|
25389
|
+
return type;
|
|
25390
|
+
default:
|
|
25391
|
+
var $$typeofType = type && type.$$typeof;
|
|
25392
|
+
switch ($$typeofType) {
|
|
25393
|
+
case REACT_CONTEXT_TYPE:
|
|
25394
|
+
case REACT_FORWARD_REF_TYPE:
|
|
25395
|
+
case REACT_LAZY_TYPE:
|
|
25396
|
+
case REACT_MEMO_TYPE:
|
|
25397
|
+
case REACT_PROVIDER_TYPE:
|
|
25398
|
+
return $$typeofType;
|
|
25399
|
+
default:
|
|
25400
|
+
return $$typeof;
|
|
25401
|
+
}
|
|
25402
|
+
}
|
|
25403
|
+
case REACT_PORTAL_TYPE:
|
|
25404
|
+
return $$typeof;
|
|
25405
|
+
}
|
|
25406
|
+
}
|
|
25407
|
+
return undefined;
|
|
25408
|
+
}
|
|
25409
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
25410
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
25411
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
25412
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
25413
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
25414
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
25415
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
25416
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
25417
|
+
var Memo = REACT_MEMO_TYPE;
|
|
25418
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
25419
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
25420
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
25421
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
25422
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
25423
|
+
function isAsyncMode(object) {
|
|
25424
|
+
{
|
|
25425
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
25426
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
25427
|
+
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.');
|
|
25428
|
+
}
|
|
25429
|
+
}
|
|
25430
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
25431
|
+
}
|
|
25432
|
+
function isConcurrentMode(object) {
|
|
25433
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
25434
|
+
}
|
|
25435
|
+
function isContextConsumer(object) {
|
|
25436
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
25437
|
+
}
|
|
25438
|
+
function isContextProvider(object) {
|
|
25439
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
25440
|
+
}
|
|
25441
|
+
function isElement(object) {
|
|
25442
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
25443
|
+
}
|
|
25444
|
+
function isForwardRef(object) {
|
|
25445
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
25446
|
+
}
|
|
25447
|
+
function isFragment(object) {
|
|
25448
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
25449
|
+
}
|
|
25450
|
+
function isLazy(object) {
|
|
25451
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
25452
|
+
}
|
|
25453
|
+
function isMemo(object) {
|
|
25454
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
25455
|
+
}
|
|
25456
|
+
function isPortal(object) {
|
|
25457
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
25458
|
+
}
|
|
25459
|
+
function isProfiler(object) {
|
|
25460
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
25461
|
+
}
|
|
25462
|
+
function isStrictMode(object) {
|
|
25463
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
25464
|
+
}
|
|
25465
|
+
function isSuspense(object) {
|
|
25466
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
25467
|
+
}
|
|
25468
|
+
exports.AsyncMode = AsyncMode;
|
|
25469
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
25470
|
+
exports.ContextConsumer = ContextConsumer;
|
|
25471
|
+
exports.ContextProvider = ContextProvider;
|
|
25472
|
+
exports.Element = Element;
|
|
25473
|
+
exports.ForwardRef = ForwardRef;
|
|
25474
|
+
exports.Fragment = Fragment;
|
|
25475
|
+
exports.Lazy = Lazy;
|
|
25476
|
+
exports.Memo = Memo;
|
|
25477
|
+
exports.Portal = Portal;
|
|
25478
|
+
exports.Profiler = Profiler;
|
|
25479
|
+
exports.StrictMode = StrictMode;
|
|
25480
|
+
exports.Suspense = Suspense;
|
|
25481
|
+
exports.isAsyncMode = isAsyncMode;
|
|
25482
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
25483
|
+
exports.isContextConsumer = isContextConsumer;
|
|
25484
|
+
exports.isContextProvider = isContextProvider;
|
|
25485
|
+
exports.isElement = isElement;
|
|
25486
|
+
exports.isForwardRef = isForwardRef;
|
|
25487
|
+
exports.isFragment = isFragment;
|
|
25488
|
+
exports.isLazy = isLazy;
|
|
25489
|
+
exports.isMemo = isMemo;
|
|
25490
|
+
exports.isPortal = isPortal;
|
|
25491
|
+
exports.isProfiler = isProfiler;
|
|
25492
|
+
exports.isStrictMode = isStrictMode;
|
|
25493
|
+
exports.isSuspense = isSuspense;
|
|
25494
|
+
exports.isValidElementType = isValidElementType;
|
|
25495
|
+
exports.typeOf = typeOf;
|
|
25496
|
+
})();
|
|
25497
|
+
}
|
|
25408
25498
|
});
|
|
25409
25499
|
|
|
25410
25500
|
var reactIs = createCommonjsModule(function (module) {
|
|
25411
25501
|
|
|
25412
|
-
if (process.env.NODE_ENV === 'production') {
|
|
25413
|
-
|
|
25414
|
-
} else {
|
|
25415
|
-
|
|
25416
|
-
}
|
|
25502
|
+
if (process.env.NODE_ENV === 'production') {
|
|
25503
|
+
module.exports = reactIs_production_min;
|
|
25504
|
+
} else {
|
|
25505
|
+
module.exports = reactIs_development;
|
|
25506
|
+
}
|
|
25417
25507
|
});
|
|
25418
25508
|
|
|
25419
|
-
/*
|
|
25420
|
-
object-assign
|
|
25421
|
-
(c) Sindre Sorhus
|
|
25422
|
-
@license MIT
|
|
25423
|
-
*/
|
|
25424
|
-
/* eslint-disable no-unused-vars */
|
|
25425
25509
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
25426
25510
|
var hasOwnProperty$a = Object.prototype.hasOwnProperty;
|
|
25427
25511
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
25428
|
-
|
|
25429
25512
|
function toObject(val) {
|
|
25430
|
-
|
|
25431
|
-
|
|
25432
|
-
|
|
25433
|
-
|
|
25434
|
-
return Object(val);
|
|
25513
|
+
if (val === null || val === undefined) {
|
|
25514
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
25515
|
+
}
|
|
25516
|
+
return Object(val);
|
|
25435
25517
|
}
|
|
25436
|
-
|
|
25437
25518
|
function shouldUseNative() {
|
|
25438
|
-
|
|
25439
|
-
|
|
25440
|
-
|
|
25441
|
-
|
|
25442
|
-
|
|
25443
|
-
|
|
25444
|
-
|
|
25445
|
-
|
|
25446
|
-
|
|
25447
|
-
|
|
25448
|
-
|
|
25449
|
-
|
|
25450
|
-
|
|
25451
|
-
|
|
25452
|
-
|
|
25453
|
-
|
|
25454
|
-
|
|
25455
|
-
|
|
25456
|
-
|
|
25457
|
-
|
|
25458
|
-
|
|
25459
|
-
|
|
25460
|
-
|
|
25461
|
-
|
|
25462
|
-
|
|
25463
|
-
|
|
25464
|
-
|
|
25465
|
-
|
|
25466
|
-
|
|
25467
|
-
|
|
25468
|
-
});
|
|
25469
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
25470
|
-
'abcdefghijklmnopqrst') {
|
|
25471
|
-
return false;
|
|
25472
|
-
}
|
|
25473
|
-
|
|
25474
|
-
return true;
|
|
25475
|
-
} catch (err) {
|
|
25476
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
25477
|
-
return false;
|
|
25478
|
-
}
|
|
25519
|
+
try {
|
|
25520
|
+
if (!Object.assign) {
|
|
25521
|
+
return false;
|
|
25522
|
+
}
|
|
25523
|
+
var test1 = new String('abc');
|
|
25524
|
+
test1[5] = 'de';
|
|
25525
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
25526
|
+
return false;
|
|
25527
|
+
}
|
|
25528
|
+
var test2 = {};
|
|
25529
|
+
for (var i = 0; i < 10; i++) {
|
|
25530
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
25531
|
+
}
|
|
25532
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
25533
|
+
return test2[n];
|
|
25534
|
+
});
|
|
25535
|
+
if (order2.join('') !== '0123456789') {
|
|
25536
|
+
return false;
|
|
25537
|
+
}
|
|
25538
|
+
var test3 = {};
|
|
25539
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
25540
|
+
test3[letter] = letter;
|
|
25541
|
+
});
|
|
25542
|
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
|
25543
|
+
return false;
|
|
25544
|
+
}
|
|
25545
|
+
return true;
|
|
25546
|
+
} catch (err) {
|
|
25547
|
+
return false;
|
|
25548
|
+
}
|
|
25479
25549
|
}
|
|
25480
|
-
|
|
25481
25550
|
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
25482
|
-
|
|
25483
|
-
|
|
25484
|
-
|
|
25485
|
-
|
|
25486
|
-
|
|
25487
|
-
|
|
25488
|
-
|
|
25489
|
-
|
|
25490
|
-
|
|
25491
|
-
|
|
25492
|
-
|
|
25493
|
-
|
|
25494
|
-
|
|
25495
|
-
|
|
25496
|
-
|
|
25497
|
-
|
|
25498
|
-
|
|
25499
|
-
|
|
25500
|
-
|
|
25501
|
-
|
|
25502
|
-
}
|
|
25503
|
-
}
|
|
25504
|
-
|
|
25505
|
-
return to;
|
|
25551
|
+
var from;
|
|
25552
|
+
var to = toObject(target);
|
|
25553
|
+
var symbols;
|
|
25554
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
25555
|
+
from = Object(arguments[s]);
|
|
25556
|
+
for (var key in from) {
|
|
25557
|
+
if (hasOwnProperty$a.call(from, key)) {
|
|
25558
|
+
to[key] = from[key];
|
|
25559
|
+
}
|
|
25560
|
+
}
|
|
25561
|
+
if (getOwnPropertySymbols) {
|
|
25562
|
+
symbols = getOwnPropertySymbols(from);
|
|
25563
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
25564
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
25565
|
+
to[symbols[i]] = from[symbols[i]];
|
|
25566
|
+
}
|
|
25567
|
+
}
|
|
25568
|
+
}
|
|
25569
|
+
}
|
|
25570
|
+
return to;
|
|
25506
25571
|
};
|
|
25507
25572
|
|
|
25508
|
-
/**
|
|
25509
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
25510
|
-
*
|
|
25511
|
-
* This source code is licensed under the MIT license found in the
|
|
25512
|
-
* LICENSE file in the root directory of this source tree.
|
|
25513
|
-
*/
|
|
25514
|
-
|
|
25515
25573
|
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
25516
|
-
|
|
25517
25574
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
25518
25575
|
|
|
25519
25576
|
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
25520
25577
|
|
|
25521
|
-
var printWarning = function() {};
|
|
25522
|
-
|
|
25578
|
+
var printWarning = function () {};
|
|
25523
25579
|
if (process.env.NODE_ENV !== 'production') {
|
|
25524
25580
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
25525
25581
|
var loggedTypeFailures = {};
|
|
25526
25582
|
var has$1 = has;
|
|
25527
|
-
|
|
25528
|
-
printWarning = function(text) {
|
|
25583
|
+
printWarning = function (text) {
|
|
25529
25584
|
var message = 'Warning: ' + text;
|
|
25530
25585
|
if (typeof console !== 'undefined') {
|
|
25531
25586
|
console.error(message);
|
|
25532
25587
|
}
|
|
25533
25588
|
try {
|
|
25534
|
-
// --- Welcome to debugging React ---
|
|
25535
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
25536
|
-
// to find the callsite that caused this warning to fire.
|
|
25537
25589
|
throw new Error(message);
|
|
25538
|
-
} catch (x) {
|
|
25590
|
+
} catch (x) {}
|
|
25539
25591
|
};
|
|
25540
25592
|
}
|
|
25541
|
-
|
|
25542
|
-
/**
|
|
25543
|
-
* Assert that the values match with the type specs.
|
|
25544
|
-
* Error messages are memorized and will only be shown once.
|
|
25545
|
-
*
|
|
25546
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
25547
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
25548
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
25549
|
-
* @param {string} componentName Name of the component for error messages.
|
|
25550
|
-
* @param {?Function} getStack Returns the component stack.
|
|
25551
|
-
* @private
|
|
25552
|
-
*/
|
|
25553
25593
|
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
25554
25594
|
if (process.env.NODE_ENV !== 'production') {
|
|
25555
25595
|
for (var typeSpecName in typeSpecs) {
|
|
25556
25596
|
if (has$1(typeSpecs, typeSpecName)) {
|
|
25557
25597
|
var error;
|
|
25558
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
25559
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
25560
|
-
// After these have been cleaned up, we'll let them throw.
|
|
25561
25598
|
try {
|
|
25562
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
25563
|
-
// behavior as without this statement except with a better message.
|
|
25564
25599
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
25565
|
-
var err = Error(
|
|
25566
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
25567
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
25568
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
25569
|
-
);
|
|
25600
|
+
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`.');
|
|
25570
25601
|
err.name = 'Invariant Violation';
|
|
25571
25602
|
throw err;
|
|
25572
25603
|
}
|
|
@@ -25575,142 +25606,49 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
25575
25606
|
error = ex;
|
|
25576
25607
|
}
|
|
25577
25608
|
if (error && !(error instanceof Error)) {
|
|
25578
|
-
printWarning(
|
|
25579
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
25580
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
25581
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
25582
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
25583
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
25584
|
-
'shape all require an argument).'
|
|
25585
|
-
);
|
|
25609
|
+
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
25586
25610
|
}
|
|
25587
25611
|
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
25588
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
25589
|
-
// same error.
|
|
25590
25612
|
loggedTypeFailures[error.message] = true;
|
|
25591
|
-
|
|
25592
25613
|
var stack = getStack ? getStack() : '';
|
|
25593
|
-
|
|
25594
|
-
printWarning(
|
|
25595
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
25596
|
-
);
|
|
25614
|
+
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
25597
25615
|
}
|
|
25598
25616
|
}
|
|
25599
25617
|
}
|
|
25600
25618
|
}
|
|
25601
25619
|
}
|
|
25602
|
-
|
|
25603
|
-
/**
|
|
25604
|
-
* Resets warning cache when testing.
|
|
25605
|
-
*
|
|
25606
|
-
* @private
|
|
25607
|
-
*/
|
|
25608
|
-
checkPropTypes.resetWarningCache = function() {
|
|
25620
|
+
checkPropTypes.resetWarningCache = function () {
|
|
25609
25621
|
if (process.env.NODE_ENV !== 'production') {
|
|
25610
25622
|
loggedTypeFailures = {};
|
|
25611
25623
|
}
|
|
25612
25624
|
};
|
|
25613
|
-
|
|
25614
25625
|
var checkPropTypes_1 = checkPropTypes;
|
|
25615
25626
|
|
|
25616
|
-
var printWarning$1 = function() {};
|
|
25617
|
-
|
|
25627
|
+
var printWarning$1 = function () {};
|
|
25618
25628
|
if (process.env.NODE_ENV !== 'production') {
|
|
25619
|
-
printWarning$1 = function(text) {
|
|
25629
|
+
printWarning$1 = function (text) {
|
|
25620
25630
|
var message = 'Warning: ' + text;
|
|
25621
25631
|
if (typeof console !== 'undefined') {
|
|
25622
25632
|
console.error(message);
|
|
25623
25633
|
}
|
|
25624
25634
|
try {
|
|
25625
|
-
// --- Welcome to debugging React ---
|
|
25626
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
25627
|
-
// to find the callsite that caused this warning to fire.
|
|
25628
25635
|
throw new Error(message);
|
|
25629
25636
|
} catch (x) {}
|
|
25630
25637
|
};
|
|
25631
25638
|
}
|
|
25632
|
-
|
|
25633
25639
|
function emptyFunctionThatReturnsNull() {
|
|
25634
25640
|
return null;
|
|
25635
25641
|
}
|
|
25636
|
-
|
|
25637
|
-
var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
25638
|
-
/* global Symbol */
|
|
25642
|
+
var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
25639
25643
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
25640
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
25641
|
-
|
|
25642
|
-
/**
|
|
25643
|
-
* Returns the iterator method function contained on the iterable object.
|
|
25644
|
-
*
|
|
25645
|
-
* Be sure to invoke the function with the iterable as context:
|
|
25646
|
-
*
|
|
25647
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
25648
|
-
* if (iteratorFn) {
|
|
25649
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
25650
|
-
* ...
|
|
25651
|
-
* }
|
|
25652
|
-
*
|
|
25653
|
-
* @param {?object} maybeIterable
|
|
25654
|
-
* @return {?function}
|
|
25655
|
-
*/
|
|
25644
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
25656
25645
|
function getIteratorFn(maybeIterable) {
|
|
25657
25646
|
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
25658
25647
|
if (typeof iteratorFn === 'function') {
|
|
25659
25648
|
return iteratorFn;
|
|
25660
25649
|
}
|
|
25661
25650
|
}
|
|
25662
|
-
|
|
25663
|
-
/**
|
|
25664
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
25665
|
-
* supplied to React components. Example usage:
|
|
25666
|
-
*
|
|
25667
|
-
* var Props = require('ReactPropTypes');
|
|
25668
|
-
* var MyArticle = React.createClass({
|
|
25669
|
-
* propTypes: {
|
|
25670
|
-
* // An optional string prop named "description".
|
|
25671
|
-
* description: Props.string,
|
|
25672
|
-
*
|
|
25673
|
-
* // A required enum prop named "category".
|
|
25674
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
25675
|
-
*
|
|
25676
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
25677
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
25678
|
-
* },
|
|
25679
|
-
* render: function() { ... }
|
|
25680
|
-
* });
|
|
25681
|
-
*
|
|
25682
|
-
* A more formal specification of how these methods are used:
|
|
25683
|
-
*
|
|
25684
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
25685
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
25686
|
-
*
|
|
25687
|
-
* Each and every declaration produces a function with the same signature. This
|
|
25688
|
-
* allows the creation of custom validation functions. For example:
|
|
25689
|
-
*
|
|
25690
|
-
* var MyLink = React.createClass({
|
|
25691
|
-
* propTypes: {
|
|
25692
|
-
* // An optional string or URI prop named "href".
|
|
25693
|
-
* href: function(props, propName, componentName) {
|
|
25694
|
-
* var propValue = props[propName];
|
|
25695
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
25696
|
-
* !(propValue instanceof URI)) {
|
|
25697
|
-
* return new Error(
|
|
25698
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
25699
|
-
* componentName
|
|
25700
|
-
* );
|
|
25701
|
-
* }
|
|
25702
|
-
* }
|
|
25703
|
-
* },
|
|
25704
|
-
* render: function() {...}
|
|
25705
|
-
* });
|
|
25706
|
-
*
|
|
25707
|
-
* @internal
|
|
25708
|
-
*/
|
|
25709
|
-
|
|
25710
25651
|
var ANONYMOUS = '<<anonymous>>';
|
|
25711
|
-
|
|
25712
|
-
// Important!
|
|
25713
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
25714
25652
|
var ReactPropTypes = {
|
|
25715
25653
|
array: createPrimitiveTypeChecker('array'),
|
|
25716
25654
|
bigint: createPrimitiveTypeChecker('bigint'),
|
|
@@ -25720,7 +25658,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25720
25658
|
object: createPrimitiveTypeChecker('object'),
|
|
25721
25659
|
string: createPrimitiveTypeChecker('string'),
|
|
25722
25660
|
symbol: createPrimitiveTypeChecker('symbol'),
|
|
25723
|
-
|
|
25724
25661
|
any: createAnyTypeChecker(),
|
|
25725
25662
|
arrayOf: createArrayOfTypeChecker,
|
|
25726
25663
|
element: createElementTypeChecker(),
|
|
@@ -25731,42 +25668,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25731
25668
|
oneOf: createEnumTypeChecker,
|
|
25732
25669
|
oneOfType: createUnionTypeChecker,
|
|
25733
25670
|
shape: createShapeTypeChecker,
|
|
25734
|
-
exact: createStrictShapeTypeChecker
|
|
25671
|
+
exact: createStrictShapeTypeChecker
|
|
25735
25672
|
};
|
|
25736
|
-
|
|
25737
|
-
/**
|
|
25738
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
25739
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
25740
|
-
*/
|
|
25741
|
-
/*eslint-disable no-self-compare*/
|
|
25742
25673
|
function is(x, y) {
|
|
25743
|
-
// SameValue algorithm
|
|
25744
25674
|
if (x === y) {
|
|
25745
|
-
// Steps 1-5, 7-10
|
|
25746
|
-
// Steps 6.b-6.e: +0 != -0
|
|
25747
25675
|
return x !== 0 || 1 / x === 1 / y;
|
|
25748
25676
|
} else {
|
|
25749
|
-
// Step 6.a: NaN == NaN
|
|
25750
25677
|
return x !== x && y !== y;
|
|
25751
25678
|
}
|
|
25752
25679
|
}
|
|
25753
|
-
/*eslint-enable no-self-compare*/
|
|
25754
|
-
|
|
25755
|
-
/**
|
|
25756
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
25757
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
25758
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
25759
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
25760
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
25761
|
-
*/
|
|
25762
25680
|
function PropTypeError(message, data) {
|
|
25763
25681
|
this.message = message;
|
|
25764
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
25682
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
25765
25683
|
this.stack = '';
|
|
25766
25684
|
}
|
|
25767
|
-
// Make `instanceof Error` still work for returned errors.
|
|
25768
25685
|
PropTypeError.prototype = Error.prototype;
|
|
25769
|
-
|
|
25770
25686
|
function createChainableTypeChecker(validate) {
|
|
25771
25687
|
if (process.env.NODE_ENV !== 'production') {
|
|
25772
25688
|
var manualPropTypeCallCache = {};
|
|
@@ -25775,32 +25691,15 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25775
25691
|
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
25776
25692
|
componentName = componentName || ANONYMOUS;
|
|
25777
25693
|
propFullName = propFullName || propName;
|
|
25778
|
-
|
|
25779
25694
|
if (secret !== ReactPropTypesSecret_1) {
|
|
25780
25695
|
if (throwOnDirectAccess) {
|
|
25781
|
-
|
|
25782
|
-
var err = new Error(
|
|
25783
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
25784
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
25785
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
25786
|
-
);
|
|
25696
|
+
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');
|
|
25787
25697
|
err.name = 'Invariant Violation';
|
|
25788
25698
|
throw err;
|
|
25789
25699
|
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
25790
|
-
// Old behavior for people using React.PropTypes
|
|
25791
25700
|
var cacheKey = componentName + ':' + propName;
|
|
25792
|
-
if (
|
|
25793
|
-
|
|
25794
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
25795
|
-
manualPropTypeWarningCount < 3
|
|
25796
|
-
) {
|
|
25797
|
-
printWarning$1(
|
|
25798
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
25799
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
25800
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
25801
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
25802
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
25803
|
-
);
|
|
25701
|
+
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
|
|
25702
|
+
printWarning$1('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
|
25804
25703
|
manualPropTypeCallCache[cacheKey] = true;
|
|
25805
25704
|
manualPropTypeWarningCount++;
|
|
25806
25705
|
}
|
|
@@ -25818,37 +25717,27 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25818
25717
|
return validate(props, propName, componentName, location, propFullName);
|
|
25819
25718
|
}
|
|
25820
25719
|
}
|
|
25821
|
-
|
|
25822
25720
|
var chainedCheckType = checkType.bind(null, false);
|
|
25823
25721
|
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
25824
|
-
|
|
25825
25722
|
return chainedCheckType;
|
|
25826
25723
|
}
|
|
25827
|
-
|
|
25828
25724
|
function createPrimitiveTypeChecker(expectedType) {
|
|
25829
25725
|
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
25830
25726
|
var propValue = props[propName];
|
|
25831
25727
|
var propType = getPropType(propValue);
|
|
25832
25728
|
if (propType !== expectedType) {
|
|
25833
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
25834
|
-
// check, but we can offer a more precise error message here rather than
|
|
25835
|
-
// 'of type `object`'.
|
|
25836
25729
|
var preciseType = getPreciseType(propValue);
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
{expectedType: expectedType}
|
|
25841
|
-
);
|
|
25730
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
25731
|
+
expectedType: expectedType
|
|
25732
|
+
});
|
|
25842
25733
|
}
|
|
25843
25734
|
return null;
|
|
25844
25735
|
}
|
|
25845
25736
|
return createChainableTypeChecker(validate);
|
|
25846
25737
|
}
|
|
25847
|
-
|
|
25848
25738
|
function createAnyTypeChecker() {
|
|
25849
25739
|
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
25850
25740
|
}
|
|
25851
|
-
|
|
25852
25741
|
function createArrayOfTypeChecker(typeChecker) {
|
|
25853
25742
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25854
25743
|
if (typeof typeChecker !== 'function') {
|
|
@@ -25869,7 +25758,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25869
25758
|
}
|
|
25870
25759
|
return createChainableTypeChecker(validate);
|
|
25871
25760
|
}
|
|
25872
|
-
|
|
25873
25761
|
function createElementTypeChecker() {
|
|
25874
25762
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25875
25763
|
var propValue = props[propName];
|
|
@@ -25881,7 +25769,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25881
25769
|
}
|
|
25882
25770
|
return createChainableTypeChecker(validate);
|
|
25883
25771
|
}
|
|
25884
|
-
|
|
25885
25772
|
function createElementTypeTypeChecker() {
|
|
25886
25773
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25887
25774
|
var propValue = props[propName];
|
|
@@ -25893,7 +25780,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25893
25780
|
}
|
|
25894
25781
|
return createChainableTypeChecker(validate);
|
|
25895
25782
|
}
|
|
25896
|
-
|
|
25897
25783
|
function createInstanceTypeChecker(expectedClass) {
|
|
25898
25784
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25899
25785
|
if (!(props[propName] instanceof expectedClass)) {
|
|
@@ -25905,22 +25791,17 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25905
25791
|
}
|
|
25906
25792
|
return createChainableTypeChecker(validate);
|
|
25907
25793
|
}
|
|
25908
|
-
|
|
25909
25794
|
function createEnumTypeChecker(expectedValues) {
|
|
25910
25795
|
if (!Array.isArray(expectedValues)) {
|
|
25911
25796
|
if (process.env.NODE_ENV !== 'production') {
|
|
25912
25797
|
if (arguments.length > 1) {
|
|
25913
|
-
printWarning$1(
|
|
25914
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
25915
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
25916
|
-
);
|
|
25798
|
+
printWarning$1('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
|
25917
25799
|
} else {
|
|
25918
25800
|
printWarning$1('Invalid argument supplied to oneOf, expected an array.');
|
|
25919
25801
|
}
|
|
25920
25802
|
}
|
|
25921
25803
|
return emptyFunctionThatReturnsNull;
|
|
25922
25804
|
}
|
|
25923
|
-
|
|
25924
25805
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25925
25806
|
var propValue = props[propName];
|
|
25926
25807
|
for (var i = 0; i < expectedValues.length; i++) {
|
|
@@ -25928,7 +25809,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25928
25809
|
return null;
|
|
25929
25810
|
}
|
|
25930
25811
|
}
|
|
25931
|
-
|
|
25932
25812
|
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
25933
25813
|
var type = getPreciseType(value);
|
|
25934
25814
|
if (type === 'symbol') {
|
|
@@ -25940,7 +25820,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25940
25820
|
}
|
|
25941
25821
|
return createChainableTypeChecker(validate);
|
|
25942
25822
|
}
|
|
25943
|
-
|
|
25944
25823
|
function createObjectOfTypeChecker(typeChecker) {
|
|
25945
25824
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25946
25825
|
if (typeof typeChecker !== 'function') {
|
|
@@ -25963,24 +25842,18 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25963
25842
|
}
|
|
25964
25843
|
return createChainableTypeChecker(validate);
|
|
25965
25844
|
}
|
|
25966
|
-
|
|
25967
25845
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
25968
25846
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
25969
25847
|
process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
25970
25848
|
return emptyFunctionThatReturnsNull;
|
|
25971
25849
|
}
|
|
25972
|
-
|
|
25973
25850
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
25974
25851
|
var checker = arrayOfTypeCheckers[i];
|
|
25975
25852
|
if (typeof checker !== 'function') {
|
|
25976
|
-
printWarning$1(
|
|
25977
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
25978
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
25979
|
-
);
|
|
25853
|
+
printWarning$1('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
25980
25854
|
return emptyFunctionThatReturnsNull;
|
|
25981
25855
|
}
|
|
25982
25856
|
}
|
|
25983
|
-
|
|
25984
25857
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25985
25858
|
var expectedTypes = [];
|
|
25986
25859
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
@@ -25993,12 +25866,11 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25993
25866
|
expectedTypes.push(checkerResult.data.expectedType);
|
|
25994
25867
|
}
|
|
25995
25868
|
}
|
|
25996
|
-
var expectedTypesMessage =
|
|
25869
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
25997
25870
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
25998
25871
|
}
|
|
25999
25872
|
return createChainableTypeChecker(validate);
|
|
26000
25873
|
}
|
|
26001
|
-
|
|
26002
25874
|
function createNodeChecker() {
|
|
26003
25875
|
function validate(props, propName, componentName, location, propFullName) {
|
|
26004
25876
|
if (!isNode(props[propName])) {
|
|
@@ -26008,14 +25880,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26008
25880
|
}
|
|
26009
25881
|
return createChainableTypeChecker(validate);
|
|
26010
25882
|
}
|
|
26011
|
-
|
|
26012
25883
|
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
26013
|
-
return new PropTypeError(
|
|
26014
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
26015
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
26016
|
-
);
|
|
25884
|
+
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 + '`.');
|
|
26017
25885
|
}
|
|
26018
|
-
|
|
26019
25886
|
function createShapeTypeChecker(shapeTypes) {
|
|
26020
25887
|
function validate(props, propName, componentName, location, propFullName) {
|
|
26021
25888
|
var propValue = props[propName];
|
|
@@ -26037,7 +25904,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26037
25904
|
}
|
|
26038
25905
|
return createChainableTypeChecker(validate);
|
|
26039
25906
|
}
|
|
26040
|
-
|
|
26041
25907
|
function createStrictShapeTypeChecker(shapeTypes) {
|
|
26042
25908
|
function validate(props, propName, componentName, location, propFullName) {
|
|
26043
25909
|
var propValue = props[propName];
|
|
@@ -26045,7 +25911,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26045
25911
|
if (propType !== 'object') {
|
|
26046
25912
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
26047
25913
|
}
|
|
26048
|
-
// We need to check all keys in case some are required but missing from props.
|
|
26049
25914
|
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
26050
25915
|
for (var key in allKeys) {
|
|
26051
25916
|
var checker = shapeTypes[key];
|
|
@@ -26053,11 +25918,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26053
25918
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
26054
25919
|
}
|
|
26055
25920
|
if (!checker) {
|
|
26056
|
-
return new PropTypeError(
|
|
26057
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
26058
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
26059
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
26060
|
-
);
|
|
25921
|
+
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, ' '));
|
|
26061
25922
|
}
|
|
26062
25923
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
26063
25924
|
if (error) {
|
|
@@ -26066,10 +25927,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26066
25927
|
}
|
|
26067
25928
|
return null;
|
|
26068
25929
|
}
|
|
26069
|
-
|
|
26070
25930
|
return createChainableTypeChecker(validate);
|
|
26071
25931
|
}
|
|
26072
|
-
|
|
26073
25932
|
function isNode(propValue) {
|
|
26074
25933
|
switch (typeof propValue) {
|
|
26075
25934
|
case 'number':
|
|
@@ -26085,7 +25944,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26085
25944
|
if (propValue === null || isValidElement(propValue)) {
|
|
26086
25945
|
return true;
|
|
26087
25946
|
}
|
|
26088
|
-
|
|
26089
25947
|
var iteratorFn = getIteratorFn(propValue);
|
|
26090
25948
|
if (iteratorFn) {
|
|
26091
25949
|
var iterator = iteratorFn.call(propValue);
|
|
@@ -26097,7 +25955,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26097
25955
|
}
|
|
26098
25956
|
}
|
|
26099
25957
|
} else {
|
|
26100
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
26101
25958
|
while (!(step = iterator.next()).done) {
|
|
26102
25959
|
var entry = step.value;
|
|
26103
25960
|
if (entry) {
|
|
@@ -26110,47 +25967,32 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26110
25967
|
} else {
|
|
26111
25968
|
return false;
|
|
26112
25969
|
}
|
|
26113
|
-
|
|
26114
25970
|
return true;
|
|
26115
25971
|
default:
|
|
26116
25972
|
return false;
|
|
26117
25973
|
}
|
|
26118
25974
|
}
|
|
26119
|
-
|
|
26120
25975
|
function isSymbol(propType, propValue) {
|
|
26121
|
-
// Native Symbol.
|
|
26122
25976
|
if (propType === 'symbol') {
|
|
26123
25977
|
return true;
|
|
26124
25978
|
}
|
|
26125
|
-
|
|
26126
|
-
// falsy value can't be a Symbol
|
|
26127
25979
|
if (!propValue) {
|
|
26128
25980
|
return false;
|
|
26129
25981
|
}
|
|
26130
|
-
|
|
26131
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
26132
25982
|
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
26133
25983
|
return true;
|
|
26134
25984
|
}
|
|
26135
|
-
|
|
26136
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
26137
25985
|
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
26138
25986
|
return true;
|
|
26139
25987
|
}
|
|
26140
|
-
|
|
26141
25988
|
return false;
|
|
26142
25989
|
}
|
|
26143
|
-
|
|
26144
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
26145
25990
|
function getPropType(propValue) {
|
|
26146
25991
|
var propType = typeof propValue;
|
|
26147
25992
|
if (Array.isArray(propValue)) {
|
|
26148
25993
|
return 'array';
|
|
26149
25994
|
}
|
|
26150
25995
|
if (propValue instanceof RegExp) {
|
|
26151
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
26152
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
26153
|
-
// passes PropTypes.object.
|
|
26154
25996
|
return 'object';
|
|
26155
25997
|
}
|
|
26156
25998
|
if (isSymbol(propType, propValue)) {
|
|
@@ -26158,9 +26000,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26158
26000
|
}
|
|
26159
26001
|
return propType;
|
|
26160
26002
|
}
|
|
26161
|
-
|
|
26162
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
26163
|
-
// See `createPrimitiveTypeChecker`.
|
|
26164
26003
|
function getPreciseType(propValue) {
|
|
26165
26004
|
if (typeof propValue === 'undefined' || propValue === null) {
|
|
26166
26005
|
return '' + propValue;
|
|
@@ -26175,9 +26014,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26175
26014
|
}
|
|
26176
26015
|
return propType;
|
|
26177
26016
|
}
|
|
26178
|
-
|
|
26179
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
26180
|
-
// For example, "undefined" or "of type array"
|
|
26181
26017
|
function getPostfixForTypeWarning(value) {
|
|
26182
26018
|
var type = getPreciseType(value);
|
|
26183
26019
|
switch (type) {
|
|
@@ -26192,44 +26028,34 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26192
26028
|
return type;
|
|
26193
26029
|
}
|
|
26194
26030
|
}
|
|
26195
|
-
|
|
26196
|
-
// Returns class name of the object, if any.
|
|
26197
26031
|
function getClassName(propValue) {
|
|
26198
26032
|
if (!propValue.constructor || !propValue.constructor.name) {
|
|
26199
26033
|
return ANONYMOUS;
|
|
26200
26034
|
}
|
|
26201
26035
|
return propValue.constructor.name;
|
|
26202
26036
|
}
|
|
26203
|
-
|
|
26204
26037
|
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
26205
26038
|
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
26206
26039
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
26207
|
-
|
|
26208
26040
|
return ReactPropTypes;
|
|
26209
26041
|
};
|
|
26210
26042
|
|
|
26211
26043
|
function emptyFunction() {}
|
|
26212
26044
|
function emptyFunctionWithReset() {}
|
|
26213
26045
|
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
26214
|
-
|
|
26215
|
-
var factoryWithThrowingShims = function() {
|
|
26046
|
+
var factoryWithThrowingShims = function () {
|
|
26216
26047
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
26217
26048
|
if (secret === ReactPropTypesSecret_1) {
|
|
26218
|
-
// It is still safe when called from React.
|
|
26219
26049
|
return;
|
|
26220
26050
|
}
|
|
26221
|
-
var err = new Error(
|
|
26222
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
26223
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
26224
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
26225
|
-
);
|
|
26051
|
+
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');
|
|
26226
26052
|
err.name = 'Invariant Violation';
|
|
26227
26053
|
throw err;
|
|
26228
|
-
}
|
|
26054
|
+
}
|
|
26055
|
+
shim.isRequired = shim;
|
|
26229
26056
|
function getShim() {
|
|
26230
26057
|
return shim;
|
|
26231
|
-
}
|
|
26232
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
26058
|
+
}
|
|
26233
26059
|
var ReactPropTypes = {
|
|
26234
26060
|
array: shim,
|
|
26235
26061
|
bigint: shim,
|
|
@@ -26239,7 +26065,6 @@ var factoryWithThrowingShims = function() {
|
|
|
26239
26065
|
object: shim,
|
|
26240
26066
|
string: shim,
|
|
26241
26067
|
symbol: shim,
|
|
26242
|
-
|
|
26243
26068
|
any: shim,
|
|
26244
26069
|
arrayOf: getShim,
|
|
26245
26070
|
element: shim,
|
|
@@ -26251,36 +26076,21 @@ var factoryWithThrowingShims = function() {
|
|
|
26251
26076
|
oneOfType: getShim,
|
|
26252
26077
|
shape: getShim,
|
|
26253
26078
|
exact: getShim,
|
|
26254
|
-
|
|
26255
26079
|
checkPropTypes: emptyFunctionWithReset,
|
|
26256
26080
|
resetWarningCache: emptyFunction
|
|
26257
26081
|
};
|
|
26258
|
-
|
|
26259
26082
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
26260
|
-
|
|
26261
26083
|
return ReactPropTypes;
|
|
26262
26084
|
};
|
|
26263
26085
|
|
|
26264
26086
|
var propTypes = createCommonjsModule(function (module) {
|
|
26265
|
-
|
|
26266
|
-
|
|
26267
|
-
|
|
26268
|
-
|
|
26269
|
-
|
|
26270
|
-
|
|
26271
|
-
|
|
26272
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
26273
|
-
var ReactIs = reactIs;
|
|
26274
|
-
|
|
26275
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
26276
|
-
// http://fb.me/prop-types-in-prod
|
|
26277
|
-
var throwOnDirectAccess = true;
|
|
26278
|
-
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
26279
|
-
} else {
|
|
26280
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
26281
|
-
// http://fb.me/prop-types-in-prod
|
|
26282
|
-
module.exports = factoryWithThrowingShims();
|
|
26283
|
-
}
|
|
26087
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26088
|
+
var ReactIs = reactIs;
|
|
26089
|
+
var throwOnDirectAccess = true;
|
|
26090
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
26091
|
+
} else {
|
|
26092
|
+
module.exports = factoryWithThrowingShims();
|
|
26093
|
+
}
|
|
26284
26094
|
});
|
|
26285
26095
|
|
|
26286
26096
|
const SearchConnection = _ref => {
|
|
@@ -28055,31 +27865,31 @@ const checkForNA$1 = value => {
|
|
|
28055
27865
|
return value ? value : "CS_NA";
|
|
28056
27866
|
};
|
|
28057
27867
|
const WSApplicationDetails = () => {
|
|
28058
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect58, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data$3, _paymentDetails$data$4, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _paymentDetails$data8, _paymentDetails$data9, _paymentDetails$data0, _paymentDetails$data1, _paymentDetails$data10, _paymentDetails$data11, _paymentDetails$data12, _paymentDetails$data13, _paymentDetails$data14, _paymentDetails$data15, _paymentDetails$data16, _paymentDetails$data17, _paymentDetails$data18, _paymentDetails$data19, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$WaterConnection135, _data$WaterConnection136, _data$WaterConnection137, _data$WaterConnection138, _data$SewerageConnect130, _data$SewerageConnect131, _data$SewerageConnect132, _data$SewerageConnect133, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection145, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$WaterConnection153, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect151, _data$SewerageConnect152, _paymentDetails$data20, _paymentDetails$data21, _paymentDetails$data22, _data$WaterConnection158, _data$WaterConnection159, _data$SewerageConnect153, _data$SewerageConnect154, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect155, _data$SewerageConnect156, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect157, _data$SewerageConnect158, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection171, _data$WaterConnection172, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection173, _data$WaterConnection174, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$WaterConnection179, _data$WaterConnection180, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$SewerageConnect181, _data$SewerageConnect182, _data$SewerageConnect183, _data$SewerageConnect184, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186, _data$WaterConnection187, _data$WaterConnection188, _data$WaterConnection189;
|
|
27868
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect40, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect41, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$SewerageConnect47, _data$SewerageConnect48, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect49, _data$SewerageConnect50, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$SewerageConnect59, _data$SewerageConnect60, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data$3, _paymentDetails$data$4, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _paymentDetails$data8, _paymentDetails$data9, _paymentDetails$data0, _paymentDetails$data1, _paymentDetails$data10, _paymentDetails$data11, _paymentDetails$data12, _paymentDetails$data13, _paymentDetails$data14, _paymentDetails$data15, _paymentDetails$data16, _paymentDetails$data17, _paymentDetails$data18, _paymentDetails$data19, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _data$WaterConnection129, _data$WaterConnection130, _data$SewerageConnect124, _data$SewerageConnect125, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _paymentDetails$data20, _paymentDetails$data21, _paymentDetails$data22, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection150, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172;
|
|
28059
27869
|
const getDisconnectionNoticeSearch = function () {
|
|
28060
27870
|
try {
|
|
28061
|
-
var _data$
|
|
27871
|
+
var _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect169, _data$SewerageConnect170;
|
|
28062
27872
|
let key = "ws-waterdisconnectionnotice";
|
|
28063
27873
|
let details = {};
|
|
28064
27874
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
28065
|
-
var _data$
|
|
27875
|
+
var _data$WaterConnection173, _PTData$Properties9;
|
|
28066
27876
|
details = {
|
|
28067
|
-
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
27877
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection173 = data.WaterConnection) === null || _data$WaterConnection173 === void 0 ? void 0 : _data$WaterConnection173[0], {
|
|
28068
27878
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : _PTData$Properties9[0]
|
|
28069
27879
|
})]
|
|
28070
27880
|
};
|
|
28071
27881
|
} else {
|
|
28072
|
-
var _data$
|
|
27882
|
+
var _data$SewerageConnect168, _PTData$Properties0;
|
|
28073
27883
|
key = "ws-seweragedisconnectionnotice";
|
|
28074
27884
|
details = {
|
|
28075
|
-
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
27885
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect168 = data.SewerageConnections) === null || _data$SewerageConnect168 === void 0 ? void 0 : _data$SewerageConnect168[0], {
|
|
28076
27886
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : _PTData$Properties0[0]
|
|
28077
27887
|
})]
|
|
28078
27888
|
};
|
|
28079
27889
|
}
|
|
28080
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
28081
|
-
var _data$
|
|
28082
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
27890
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection174 = data.WaterConnection) === null || _data$WaterConnection174 === void 0 ? void 0 : (_data$WaterConnection175 = _data$WaterConnection174[0]) === null || _data$WaterConnection175 === void 0 ? void 0 : _data$WaterConnection175.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect169 = data.SewerageConnections) === null || _data$SewerageConnect169 === void 0 ? void 0 : (_data$SewerageConnect170 = _data$SewerageConnect169[0]) === null || _data$SewerageConnect170 === void 0 ? void 0 : _data$SewerageConnect170.tenantId), details, key)).then(function (response) {
|
|
27891
|
+
var _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect171, _data$SewerageConnect172;
|
|
27892
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection176 = data.WaterConnection) === null || _data$WaterConnection176 === void 0 ? void 0 : (_data$WaterConnection177 = _data$WaterConnection176[0]) === null || _data$WaterConnection177 === void 0 ? void 0 : _data$WaterConnection177.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect171 = data.SewerageConnections) === null || _data$SewerageConnect171 === void 0 ? void 0 : (_data$SewerageConnect172 = _data$SewerageConnect171[0]) === null || _data$SewerageConnect172 === void 0 ? void 0 : _data$SewerageConnect172.tenantId), {
|
|
28083
27893
|
fileStoreIds: response.filestoreIds[0]
|
|
28084
27894
|
})).then(function (fileStore) {
|
|
28085
27895
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -28098,8 +27908,7 @@ const WSApplicationDetails = () => {
|
|
|
28098
27908
|
const _useState = React.useState(false),
|
|
28099
27909
|
showOptions = _useState[0],
|
|
28100
27910
|
setShowOptions = _useState[1];
|
|
28101
|
-
const _useState2 = React.useState(false)
|
|
28102
|
-
setViewTimeline = _useState2[1];
|
|
27911
|
+
const _useState2 = React.useState(false);
|
|
28103
27912
|
const applicationNobyData = window.location.href.includes("SW_") ? window.location.href.substring(window.location.href.indexOf("SW_")) : window.location.href.substring(window.location.href.indexOf("WS_"));
|
|
28104
27913
|
let filter1 = {
|
|
28105
27914
|
tenantId: tenantId,
|
|
@@ -28200,15 +28009,6 @@ const WSApplicationDetails = () => {
|
|
|
28200
28009
|
return Promise.reject(e);
|
|
28201
28010
|
}
|
|
28202
28011
|
};
|
|
28203
|
-
const handleViewTimeline = () => {
|
|
28204
|
-
const timelineSection = document.getElementById("timeline");
|
|
28205
|
-
if (timelineSection) {
|
|
28206
|
-
timelineSection.scrollIntoView({
|
|
28207
|
-
behavior: "smooth"
|
|
28208
|
-
});
|
|
28209
|
-
}
|
|
28210
|
-
setViewTimeline(true);
|
|
28211
|
-
};
|
|
28212
28012
|
const printApplicationReceipts = function () {
|
|
28213
28013
|
try {
|
|
28214
28014
|
var _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect24, _data$SewerageConnect25;
|
|
@@ -28324,12 +28124,34 @@ const WSApplicationDetails = () => {
|
|
|
28324
28124
|
let serviceType = data && data !== null && data !== void 0 && (_data$WaterConnection44 = data.WaterConnection) !== null && _data$WaterConnection44 !== void 0 && _data$WaterConnection44[0] ? "WATER" : "SEWERAGE";
|
|
28325
28125
|
sessionStorage.setItem("ApplicationNoState", applicationNobyData);
|
|
28326
28126
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28127
|
+
className: "employee-main-application-details",
|
|
28128
|
+
style: {
|
|
28129
|
+
display: "flex",
|
|
28130
|
+
gap: "20px"
|
|
28131
|
+
}
|
|
28132
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28133
|
+
className: "workflow-timeline-wrapper no-scrollbar",
|
|
28134
|
+
style: {
|
|
28135
|
+
flex: "1 1 300px",
|
|
28136
|
+
maxWidth: "400px"
|
|
28137
|
+
}
|
|
28138
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28139
|
+
id: "timeline"
|
|
28140
|
+
}, /*#__PURE__*/React__default.createElement(WSWFApplicationTimeline, {
|
|
28141
|
+
application: (data === null || data === void 0 ? void 0 : (_data$WaterConnection45 = data.WaterConnection) === null || _data$WaterConnection45 === void 0 ? void 0 : _data$WaterConnection45[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect40 = data.SewerageConnections) === null || _data$SewerageConnect40 === void 0 ? void 0 : _data$SewerageConnect40[0]),
|
|
28142
|
+
id: (data === null || data === void 0 ? void 0 : (_data$WaterConnection46 = data.WaterConnection) === null || _data$WaterConnection46 === void 0 ? void 0 : (_data$WaterConnection47 = _data$WaterConnection46[0]) === null || _data$WaterConnection47 === void 0 ? void 0 : _data$WaterConnection47.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect41 = data.SewerageConnections) === null || _data$SewerageConnect41 === void 0 ? void 0 : (_data$SewerageConnect42 = _data$SewerageConnect41[0]) === null || _data$SewerageConnect42 === void 0 ? void 0 : _data$SewerageConnect42.applicationNo),
|
|
28143
|
+
paymentbuttonenabled: false
|
|
28144
|
+
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
28145
|
+
style: {
|
|
28146
|
+
flex: "2 1 500px"
|
|
28147
|
+
}
|
|
28148
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28327
28149
|
className: "cardHeaderWithOptions",
|
|
28328
28150
|
style: {
|
|
28329
28151
|
marginRight: "auto",
|
|
28330
28152
|
maxWidth: "960px"
|
|
28331
28153
|
}
|
|
28332
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
28154
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28333
28155
|
style: {
|
|
28334
28156
|
zIndex: "10",
|
|
28335
28157
|
display: "flex",
|
|
@@ -28344,69 +28166,55 @@ const WSApplicationDetails = () => {
|
|
|
28344
28166
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
28345
28167
|
displayOptions: showOptions,
|
|
28346
28168
|
options: downloadOptions
|
|
28347
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
28348
|
-
label: t("VIEW_TIMELINE"),
|
|
28349
|
-
style: {
|
|
28350
|
-
color: "#A52A2A"
|
|
28351
|
-
},
|
|
28352
|
-
onClick: handleViewTimeline
|
|
28353
|
-
}))), checkifPrivacyenabled && /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
28169
|
+
})))), checkifPrivacyenabled && /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
28354
28170
|
t: t
|
|
28355
28171
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
28356
28172
|
className: "hide-seperator"
|
|
28357
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
28358
|
-
className: "border-none",
|
|
28173
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28359
28174
|
label: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
28360
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28175
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection48 = data.WaterConnection) === null || _data$WaterConnection48 === void 0 ? void 0 : (_data$WaterConnection49 = _data$WaterConnection48[0]) === null || _data$WaterConnection49 === void 0 ? void 0 : _data$WaterConnection49.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect43 = data.SewerageConnections) === null || _data$SewerageConnect43 === void 0 ? void 0 : (_data$SewerageConnect44 = _data$SewerageConnect43[0]) === null || _data$SewerageConnect44 === void 0 ? void 0 : _data$SewerageConnect44.applicationNo),
|
|
28361
28176
|
textStyle: {}
|
|
28362
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28363
|
-
className: "border-none",
|
|
28177
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection50 = data.WaterConnection) === null || _data$WaterConnection50 === void 0 ? void 0 : (_data$WaterConnection51 = _data$WaterConnection50[0].applicationType) === null || _data$WaterConnection51 === void 0 ? void 0 : _data$WaterConnection51.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect45 = data.SewerageConnections) === null || _data$SewerageConnect45 === void 0 ? void 0 : (_data$SewerageConnect46 = _data$SewerageConnect45[0].applicationType) === null || _data$SewerageConnect46 === void 0 ? void 0 : _data$SewerageConnect46.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28364
28178
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
28365
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28179
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection52 = data.WaterConnection) === null || _data$WaterConnection52 === void 0 ? void 0 : (_data$WaterConnection53 = _data$WaterConnection52[0]) === null || _data$WaterConnection53 === void 0 ? void 0 : _data$WaterConnection53.connectionNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect47 = data.SewerageConnections) === null || _data$SewerageConnect47 === void 0 ? void 0 : (_data$SewerageConnect48 = _data$SewerageConnect47[0]) === null || _data$SewerageConnect48 === void 0 ? void 0 : _data$SewerageConnect48.connectionNo),
|
|
28366
28180
|
textStyle: {
|
|
28367
28181
|
wordBreak: "break-word"
|
|
28368
28182
|
}
|
|
28369
28183
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28370
|
-
className: "border-none",
|
|
28371
28184
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
28372
|
-
text: t("WS_APPLICATION_TYPE_" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28185
|
+
text: t("WS_APPLICATION_TYPE_" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection54 = data.WaterConnection) === null || _data$WaterConnection54 === void 0 ? void 0 : (_data$WaterConnection55 = _data$WaterConnection54[0]) === null || _data$WaterConnection55 === void 0 ? void 0 : _data$WaterConnection55.applicationType) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect49 = data.SewerageConnections) === null || _data$SewerageConnect49 === void 0 ? void 0 : (_data$SewerageConnect50 = _data$SewerageConnect49[0]) === null || _data$SewerageConnect50 === void 0 ? void 0 : _data$SewerageConnect50.applicationType))),
|
|
28373
28186
|
textStyle: {
|
|
28374
28187
|
wordBreak: "break-word"
|
|
28375
28188
|
}
|
|
28376
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28377
|
-
className: "border-none",
|
|
28189
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection56 = data.WaterConnection) === null || _data$WaterConnection56 === void 0 ? void 0 : (_data$WaterConnection57 = _data$WaterConnection56[0].applicationType) === null || _data$WaterConnection57 === void 0 ? void 0 : _data$WaterConnection57.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect51 = data.SewerageConnections) === null || _data$SewerageConnect51 === void 0 ? void 0 : (_data$SewerageConnect52 = _data$SewerageConnect51[0].applicationType) === null || _data$SewerageConnect52 === void 0 ? void 0 : _data$SewerageConnect52.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28378
28190
|
label: t("WS_DISCONNECTION_PROPOSED_DATE"),
|
|
28379
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
28191
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection58 = data.WaterConnection) === null || _data$WaterConnection58 === void 0 ? void 0 : (_data$WaterConnection59 = _data$WaterConnection58[0]) === null || _data$WaterConnection59 === void 0 ? void 0 : _data$WaterConnection59.dateEffectiveFrom) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect53 = data.SewerageConnections) === null || _data$SewerageConnect53 === void 0 ? void 0 : (_data$SewerageConnect54 = _data$SewerageConnect53[0]) === null || _data$SewerageConnect54 === void 0 ? void 0 : _data$SewerageConnect54.dateEffectiveFrom),
|
|
28380
28192
|
textStyle: {
|
|
28381
28193
|
wordBreak: "break-word"
|
|
28382
28194
|
}
|
|
28383
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28384
|
-
className: "border-none",
|
|
28195
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection60 = data.WaterConnection) === null || _data$WaterConnection60 === void 0 ? void 0 : (_data$WaterConnection61 = _data$WaterConnection60[0].applicationType) === null || _data$WaterConnection61 === void 0 ? void 0 : _data$WaterConnection61.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect55 = data.SewerageConnections) === null || _data$SewerageConnect55 === void 0 ? void 0 : (_data$SewerageConnect56 = _data$SewerageConnect55[0].applicationType) === null || _data$SewerageConnect56 === void 0 ? void 0 : _data$SewerageConnect56.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28385
28196
|
label: t("WS_DISCONNECTION_EXECUTED_DATE"),
|
|
28386
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
28197
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection62 = data.WaterConnection) === null || _data$WaterConnection62 === void 0 ? void 0 : (_data$WaterConnection63 = _data$WaterConnection62[0]) === null || _data$WaterConnection63 === void 0 ? void 0 : _data$WaterConnection63.disconnectionExecutionDate) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect57 = data.SewerageConnections) === null || _data$SewerageConnect57 === void 0 ? void 0 : (_data$SewerageConnect58 = _data$SewerageConnect57[0]) === null || _data$SewerageConnect58 === void 0 ? void 0 : _data$SewerageConnect58.disconnectionExecutionDate),
|
|
28387
28198
|
textStyle: {
|
|
28388
28199
|
wordBreak: "break-word"
|
|
28389
28200
|
}
|
|
28390
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28391
|
-
className: "border-none",
|
|
28201
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection64 = data.WaterConnection) === null || _data$WaterConnection64 === void 0 ? void 0 : (_data$WaterConnection65 = _data$WaterConnection64[0].applicationType) === null || _data$WaterConnection65 === void 0 ? void 0 : _data$WaterConnection65.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect59 = data.SewerageConnections) === null || _data$SewerageConnect59 === void 0 ? void 0 : (_data$SewerageConnect60 = _data$SewerageConnect59[0].applicationType) === null || _data$SewerageConnect60 === void 0 ? void 0 : _data$SewerageConnect60.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28392
28202
|
label: t("WS_DISCONNECTION_REASON"),
|
|
28393
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28203
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection66 = data.WaterConnection) === null || _data$WaterConnection66 === void 0 ? void 0 : (_data$WaterConnection67 = _data$WaterConnection66[0]) === null || _data$WaterConnection67 === void 0 ? void 0 : _data$WaterConnection67.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$WaterConnection68 = data.WaterConnection) === null || _data$WaterConnection68 === void 0 ? void 0 : (_data$WaterConnection69 = _data$WaterConnection68[0]) === null || _data$WaterConnection69 === void 0 ? void 0 : _data$WaterConnection69.disconnectionReason : (data === null || data === void 0 ? void 0 : (_data$SewerageConnect61 = data.SewerageConnections) === null || _data$SewerageConnect61 === void 0 ? void 0 : (_data$SewerageConnect62 = _data$SewerageConnect61[0]) === null || _data$SewerageConnect62 === void 0 ? void 0 : _data$SewerageConnect62.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$SewerageConnect63 = data.SewerageConnections) === null || _data$SewerageConnect63 === void 0 ? void 0 : (_data$SewerageConnect64 = _data$SewerageConnect63[0]) === null || _data$SewerageConnect64 === void 0 ? void 0 : _data$SewerageConnect64.disconnectionReason : t("NA"),
|
|
28394
28204
|
textStyle: {
|
|
28395
28205
|
wordBreak: "break-word"
|
|
28396
28206
|
}
|
|
28397
|
-
}))
|
|
28207
|
+
})), (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : (_paymentDetails$data$3 = _paymentDetails$data$2.billDetails) === null || _paymentDetails$data$3 === void 0 ? void 0 : (_paymentDetails$data$4 = _paymentDetails$data$3[0]) === null || _paymentDetails$data$4 === void 0 ? void 0 : _paymentDetails$data$4.billAccountDetails.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28398
28208
|
styles: {
|
|
28399
28209
|
fontSize: "28px"
|
|
28400
28210
|
}
|
|
28401
28211
|
}, t("WS_FEE_DEATAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : (_paymentDetails$data5 = _paymentDetails$data4.billDetails) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5[0]) === null || _paymentDetails$data6 === void 0 ? void 0 : _paymentDetails$data6.billAccountDetails.map(bill => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28402
|
-
className: "border-none",
|
|
28403
28212
|
label: t(bill === null || bill === void 0 ? void 0 : bill.taxHeadCode),
|
|
28404
28213
|
text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2),
|
|
28405
28214
|
textStyle: {
|
|
28406
28215
|
textAlign: "right"
|
|
28407
28216
|
}
|
|
28408
28217
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28409
|
-
className: "border-none",
|
|
28410
28218
|
label: t("WS_TOTAL_AMOUNT_DUE"),
|
|
28411
28219
|
text: "\u20B9" + Number(isPaid ? 0 : paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data7 = paymentDetails.data) === null || _paymentDetails$data7 === void 0 ? void 0 : (_paymentDetails$data8 = _paymentDetails$data7.Bill) === null || _paymentDetails$data8 === void 0 ? void 0 : (_paymentDetails$data9 = _paymentDetails$data8[0]) === null || _paymentDetails$data9 === void 0 ? void 0 : (_paymentDetails$data0 = _paymentDetails$data9.billDetails) === null || _paymentDetails$data0 === void 0 ? void 0 : (_paymentDetails$data1 = _paymentDetails$data0[0]) === null || _paymentDetails$data1 === void 0 ? void 0 : _paymentDetails$data1.amount).toFixed(2),
|
|
28412
28220
|
textStyle: {
|
|
@@ -28415,7 +28223,6 @@ const WSApplicationDetails = () => {
|
|
|
28415
28223
|
fontWeight: "700"
|
|
28416
28224
|
}
|
|
28417
28225
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28418
|
-
className: "border-none",
|
|
28419
28226
|
label: t("WS_COMMON_TABLE_COL_APPLICATION_STATUS"),
|
|
28420
28227
|
text: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data10 = paymentDetails.data) === null || _paymentDetails$data10 === void 0 ? void 0 : (_paymentDetails$data11 = _paymentDetails$data10.Bill) === null || _paymentDetails$data11 === void 0 ? void 0 : (_paymentDetails$data12 = _paymentDetails$data11[0]) === null || _paymentDetails$data12 === void 0 ? void 0 : (_paymentDetails$data13 = _paymentDetails$data12.billDetails) === null || _paymentDetails$data13 === void 0 ? void 0 : (_paymentDetails$data14 = _paymentDetails$data13[0]) === null || _paymentDetails$data14 === void 0 ? void 0 : _paymentDetails$data14.amount).toFixed(2) == 0 ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
28421
28228
|
textStyle: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data15 = paymentDetails.data) === null || _paymentDetails$data15 === void 0 ? void 0 : (_paymentDetails$data16 = _paymentDetails$data15.Bill) === null || _paymentDetails$data16 === void 0 ? void 0 : (_paymentDetails$data17 = _paymentDetails$data16[0]) === null || _paymentDetails$data17 === void 0 ? void 0 : (_paymentDetails$data18 = _paymentDetails$data17.billDetails) === null || _paymentDetails$data18 === void 0 ? void 0 : (_paymentDetails$data19 = _paymentDetails$data18[0]) === null || _paymentDetails$data19 === void 0 ? void 0 : _paymentDetails$data19.amount).toFixed(2) == 0 ? {
|
|
@@ -28425,7 +28232,7 @@ const WSApplicationDetails = () => {
|
|
|
28425
28232
|
textAlign: "right",
|
|
28426
28233
|
color: "red"
|
|
28427
28234
|
}
|
|
28428
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
28235
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28429
28236
|
styles: {
|
|
28430
28237
|
fontSize: "28px"
|
|
28431
28238
|
}
|
|
@@ -28458,19 +28265,18 @@ const WSApplicationDetails = () => {
|
|
|
28458
28265
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28459
28266
|
label: t("WS_NATURE_OF_WORK"),
|
|
28460
28267
|
text: "" + t(checkForNA$1(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.natureOfWork))
|
|
28461
|
-
})))
|
|
28268
|
+
}))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection70 = data.WaterConnection) === null || _data$WaterConnection70 === void 0 ? void 0 : (_data$WaterConnection71 = _data$WaterConnection70[0]) === null || _data$WaterConnection71 === void 0 ? void 0 : (_data$WaterConnection72 = _data$WaterConnection71.connectionHolders) === null || _data$WaterConnection72 === void 0 ? void 0 : _data$WaterConnection72.length) > 0 || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect65 = data.SewerageConnections) === null || _data$SewerageConnect65 === void 0 ? void 0 : (_data$SewerageConnect66 = _data$SewerageConnect65[0]) === null || _data$SewerageConnect66 === void 0 ? void 0 : (_data$SewerageConnect67 = _data$SewerageConnect66.connectionHolders) === null || _data$SewerageConnect67 === void 0 ? void 0 : _data$SewerageConnect67.length) > 0 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28462
28269
|
styles: {
|
|
28463
28270
|
fontSize: "28px"
|
|
28464
28271
|
}
|
|
28465
28272
|
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28466
|
-
className: "border-none",
|
|
28467
28273
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
28468
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28274
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection73 = data.WaterConnection) === null || _data$WaterConnection73 === void 0 ? void 0 : (_data$WaterConnection74 = _data$WaterConnection73[0]) === null || _data$WaterConnection74 === void 0 ? void 0 : (_data$WaterConnection75 = _data$WaterConnection74.connectionHolders) === null || _data$WaterConnection75 === void 0 ? void 0 : (_data$WaterConnection76 = _data$WaterConnection75[0]) === null || _data$WaterConnection76 === void 0 ? void 0 : _data$WaterConnection76.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect68 = data.SewerageConnections) === null || _data$SewerageConnect68 === void 0 ? void 0 : (_data$SewerageConnect69 = _data$SewerageConnect68[0]) === null || _data$SewerageConnect69 === void 0 ? void 0 : (_data$SewerageConnect70 = _data$SewerageConnect69.connectionHolders) === null || _data$SewerageConnect70 === void 0 ? void 0 : (_data$SewerageConnect71 = _data$SewerageConnect70[0]) === null || _data$SewerageConnect71 === void 0 ? void 0 : _data$SewerageConnect71.mobileNumber),
|
|
28469
28275
|
textStyle: {
|
|
28470
28276
|
whiteSpace: "pre"
|
|
28471
28277
|
},
|
|
28472
28278
|
privacy: {
|
|
28473
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28279
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection77 = data.WaterConnection) === null || _data$WaterConnection77 === void 0 ? void 0 : (_data$WaterConnection78 = _data$WaterConnection77[0]) === null || _data$WaterConnection78 === void 0 ? void 0 : (_data$WaterConnection79 = _data$WaterConnection78.connectionHolders) === null || _data$WaterConnection79 === void 0 ? void 0 : (_data$WaterConnection80 = _data$WaterConnection79[0]) === null || _data$WaterConnection80 === void 0 ? void 0 : _data$WaterConnection80.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect72 = data.SewerageConnections) === null || _data$SewerageConnect72 === void 0 ? void 0 : (_data$SewerageConnect73 = _data$SewerageConnect72[0]) === null || _data$SewerageConnect73 === void 0 ? void 0 : (_data$SewerageConnect74 = _data$SewerageConnect73.connectionHolders) === null || _data$SewerageConnect74 === void 0 ? void 0 : (_data$SewerageConnect75 = _data$SewerageConnect74[0]) === null || _data$SewerageConnect75 === void 0 ? void 0 : _data$SewerageConnect75.uuid,
|
|
28474
28280
|
fieldName: "connectionHoldersMobileNumber",
|
|
28475
28281
|
model: "WnSConnectionOwner",
|
|
28476
28282
|
showValue: false,
|
|
@@ -28486,21 +28292,19 @@ const WSApplicationDetails = () => {
|
|
|
28486
28292
|
}
|
|
28487
28293
|
}
|
|
28488
28294
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28489
|
-
className: "border-none",
|
|
28490
28295
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
28491
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28296
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection81 = data.WaterConnection) === null || _data$WaterConnection81 === void 0 ? void 0 : (_data$WaterConnection82 = _data$WaterConnection81[0]) === null || _data$WaterConnection82 === void 0 ? void 0 : (_data$WaterConnection83 = _data$WaterConnection82.connectionHolders) === null || _data$WaterConnection83 === void 0 ? void 0 : (_data$WaterConnection84 = _data$WaterConnection83[0]) === null || _data$WaterConnection84 === void 0 ? void 0 : _data$WaterConnection84.name) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect76 = data.SewerageConnections) === null || _data$SewerageConnect76 === void 0 ? void 0 : (_data$SewerageConnect77 = _data$SewerageConnect76[0]) === null || _data$SewerageConnect77 === void 0 ? void 0 : (_data$SewerageConnect78 = _data$SewerageConnect77.connectionHolders) === null || _data$SewerageConnect78 === void 0 ? void 0 : (_data$SewerageConnect79 = _data$SewerageConnect78[0]) === null || _data$SewerageConnect79 === void 0 ? void 0 : _data$SewerageConnect79.name),
|
|
28492
28297
|
textStyle: {
|
|
28493
28298
|
whiteSpace: "pre"
|
|
28494
28299
|
}
|
|
28495
28300
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28496
|
-
className: "border-none",
|
|
28497
28301
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
28498
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
28302
|
+
text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection85 = data.WaterConnection) === null || _data$WaterConnection85 === void 0 ? void 0 : (_data$WaterConnection86 = _data$WaterConnection85[0]) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86.connectionHolders) === null || _data$WaterConnection87 === void 0 ? void 0 : (_data$WaterConnection88 = _data$WaterConnection87[0]) === null || _data$WaterConnection88 === void 0 ? void 0 : _data$WaterConnection88.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect80 = data.SewerageConnections) === null || _data$SewerageConnect80 === void 0 ? void 0 : (_data$SewerageConnect81 = _data$SewerageConnect80[0]) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81.connectionHolders) === null || _data$SewerageConnect82 === void 0 ? void 0 : (_data$SewerageConnect83 = _data$SewerageConnect82[0]) === null || _data$SewerageConnect83 === void 0 ? void 0 : _data$SewerageConnect83.gender)),
|
|
28499
28303
|
textStyle: {
|
|
28500
28304
|
whiteSpace: "pre"
|
|
28501
28305
|
},
|
|
28502
28306
|
privacy: {
|
|
28503
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28307
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection89 = data.WaterConnection) === null || _data$WaterConnection89 === void 0 ? void 0 : (_data$WaterConnection90 = _data$WaterConnection89[0]) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90.connectionHolders) === null || _data$WaterConnection91 === void 0 ? void 0 : (_data$WaterConnection92 = _data$WaterConnection91[0]) === null || _data$WaterConnection92 === void 0 ? void 0 : _data$WaterConnection92.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect84 = data.SewerageConnections) === null || _data$SewerageConnect84 === void 0 ? void 0 : (_data$SewerageConnect85 = _data$SewerageConnect84[0]) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85.connectionHolders) === null || _data$SewerageConnect86 === void 0 ? void 0 : (_data$SewerageConnect87 = _data$SewerageConnect86[0]) === null || _data$SewerageConnect87 === void 0 ? void 0 : _data$SewerageConnect87.uuid,
|
|
28504
28308
|
fieldName: "gender",
|
|
28505
28309
|
model: "WnSConnectionOwner",
|
|
28506
28310
|
showValue: false,
|
|
@@ -28516,14 +28320,13 @@ const WSApplicationDetails = () => {
|
|
|
28516
28320
|
}
|
|
28517
28321
|
}
|
|
28518
28322
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28519
|
-
className: "border-none",
|
|
28520
28323
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
28521
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28324
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection93 = data.WaterConnection) === null || _data$WaterConnection93 === void 0 ? void 0 : (_data$WaterConnection94 = _data$WaterConnection93[0]) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94.connectionHolders) === null || _data$WaterConnection95 === void 0 ? void 0 : (_data$WaterConnection96 = _data$WaterConnection95[0]) === null || _data$WaterConnection96 === void 0 ? void 0 : _data$WaterConnection96.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect88 = data.SewerageConnections) === null || _data$SewerageConnect88 === void 0 ? void 0 : (_data$SewerageConnect89 = _data$SewerageConnect88[0]) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89.connectionHolders) === null || _data$SewerageConnect90 === void 0 ? void 0 : (_data$SewerageConnect91 = _data$SewerageConnect90[0]) === null || _data$SewerageConnect91 === void 0 ? void 0 : _data$SewerageConnect91.fatherOrHusbandName) || t("CS_NA"),
|
|
28522
28325
|
textStyle: {
|
|
28523
28326
|
whiteSpace: "pre"
|
|
28524
28327
|
},
|
|
28525
28328
|
privacy: {
|
|
28526
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28329
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection97 = data.WaterConnection) === null || _data$WaterConnection97 === void 0 ? void 0 : (_data$WaterConnection98 = _data$WaterConnection97[0]) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98.connectionHolders) === null || _data$WaterConnection99 === void 0 ? void 0 : (_data$WaterConnection100 = _data$WaterConnection99[0]) === null || _data$WaterConnection100 === void 0 ? void 0 : _data$WaterConnection100.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect92 = data.SewerageConnections) === null || _data$SewerageConnect92 === void 0 ? void 0 : (_data$SewerageConnect93 = _data$SewerageConnect92[0]) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93.connectionHolders) === null || _data$SewerageConnect94 === void 0 ? void 0 : (_data$SewerageConnect95 = _data$SewerageConnect94[0]) === null || _data$SewerageConnect95 === void 0 ? void 0 : _data$SewerageConnect95.uuid,
|
|
28527
28330
|
fieldName: "fatherOrHusbandName",
|
|
28528
28331
|
model: "WnSConnectionOwner",
|
|
28529
28332
|
showValue: false,
|
|
@@ -28539,14 +28342,13 @@ const WSApplicationDetails = () => {
|
|
|
28539
28342
|
}
|
|
28540
28343
|
}
|
|
28541
28344
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28542
|
-
className: "border-none",
|
|
28543
28345
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
28544
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28346
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection101 = data.WaterConnection) === null || _data$WaterConnection101 === void 0 ? void 0 : (_data$WaterConnection102 = _data$WaterConnection101[0]) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102.connectionHolders) === null || _data$WaterConnection103 === void 0 ? void 0 : (_data$WaterConnection104 = _data$WaterConnection103[0]) === null || _data$WaterConnection104 === void 0 ? void 0 : _data$WaterConnection104.relationship) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect96 = data.SewerageConnections) === null || _data$SewerageConnect96 === void 0 ? void 0 : (_data$SewerageConnect97 = _data$SewerageConnect96[0]) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97.connectionHolders) === null || _data$SewerageConnect98 === void 0 ? void 0 : (_data$SewerageConnect99 = _data$SewerageConnect98[0]) === null || _data$SewerageConnect99 === void 0 ? void 0 : _data$SewerageConnect99.relationship) || t("CS_NA"),
|
|
28545
28347
|
textStyle: {
|
|
28546
28348
|
whiteSpace: "pre"
|
|
28547
28349
|
},
|
|
28548
28350
|
privacy: {
|
|
28549
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28351
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection105 = data.WaterConnection) === null || _data$WaterConnection105 === void 0 ? void 0 : (_data$WaterConnection106 = _data$WaterConnection105[0]) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106.connectionHolders) === null || _data$WaterConnection107 === void 0 ? void 0 : (_data$WaterConnection108 = _data$WaterConnection107[0]) === null || _data$WaterConnection108 === void 0 ? void 0 : _data$WaterConnection108.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect100 = data.SewerageConnections) === null || _data$SewerageConnect100 === void 0 ? void 0 : (_data$SewerageConnect101 = _data$SewerageConnect100[0]) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101.connectionHolders) === null || _data$SewerageConnect102 === void 0 ? void 0 : (_data$SewerageConnect103 = _data$SewerageConnect102[0]) === null || _data$SewerageConnect103 === void 0 ? void 0 : _data$SewerageConnect103.uuid,
|
|
28550
28352
|
fieldName: "relationship",
|
|
28551
28353
|
model: "WnSConnection",
|
|
28552
28354
|
showValue: false,
|
|
@@ -28562,11 +28364,10 @@ const WSApplicationDetails = () => {
|
|
|
28562
28364
|
}
|
|
28563
28365
|
}
|
|
28564
28366
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28565
|
-
className: "border-none",
|
|
28566
28367
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
28567
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28368
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection109 = data.WaterConnection) === null || _data$WaterConnection109 === void 0 ? void 0 : (_data$WaterConnection110 = _data$WaterConnection109[0]) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110.connectionHolders) === null || _data$WaterConnection111 === void 0 ? void 0 : (_data$WaterConnection112 = _data$WaterConnection111[0]) === null || _data$WaterConnection112 === void 0 ? void 0 : _data$WaterConnection112.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect104 = data.SewerageConnections) === null || _data$SewerageConnect104 === void 0 ? void 0 : (_data$SewerageConnect105 = _data$SewerageConnect104[0]) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105.connectionHolders) === null || _data$SewerageConnect106 === void 0 ? void 0 : (_data$SewerageConnect107 = _data$SewerageConnect106[0]) === null || _data$SewerageConnect107 === void 0 ? void 0 : _data$SewerageConnect107.correspondenceAddress) || t("CS_NA"),
|
|
28568
28369
|
privacy: {
|
|
28569
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28370
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection113 = data.WaterConnection) === null || _data$WaterConnection113 === void 0 ? void 0 : (_data$WaterConnection114 = _data$WaterConnection113[0]) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114.connectionHolders) === null || _data$WaterConnection115 === void 0 ? void 0 : (_data$WaterConnection116 = _data$WaterConnection115[0]) === null || _data$WaterConnection116 === void 0 ? void 0 : _data$WaterConnection116.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect108 = data.SewerageConnections) === null || _data$SewerageConnect108 === void 0 ? void 0 : (_data$SewerageConnect109 = _data$SewerageConnect108[0]) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109.connectionHolders) === null || _data$SewerageConnect110 === void 0 ? void 0 : (_data$SewerageConnect111 = _data$SewerageConnect110[0]) === null || _data$SewerageConnect111 === void 0 ? void 0 : _data$SewerageConnect111.uuid,
|
|
28570
28371
|
fieldName: "correspondenceAddress",
|
|
28571
28372
|
model: "WnSConnectionOwner",
|
|
28572
28373
|
showValue: false,
|
|
@@ -28582,42 +28383,13 @@ const WSApplicationDetails = () => {
|
|
|
28582
28383
|
}
|
|
28583
28384
|
}
|
|
28584
28385
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28585
|
-
className: "border-none",
|
|
28586
|
-
label: t("WS_OWN_DETAIL_SPECIAL_APPLICANT_LABEL"),
|
|
28587
|
-
text: (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? !(data !== null && data !== void 0 && (_data$WaterConnection114 = data.WaterConnection) !== null && _data$WaterConnection114 !== void 0 && (_data$WaterConnection115 = _data$WaterConnection114[0]) !== null && _data$WaterConnection115 !== void 0 && (_data$WaterConnection116 = _data$WaterConnection115.connectionHolders) !== null && _data$WaterConnection116 !== void 0 && (_data$WaterConnection117 = _data$WaterConnection116[0]) !== null && _data$WaterConnection117 !== void 0 && (_data$WaterConnection118 = _data$WaterConnection117.ownerType) !== null && _data$WaterConnection118 !== void 0 && _data$WaterConnection118.includes("*")) : !(data !== null && data !== void 0 && (_data$SewerageConnect109 = data.SewerageConnections) !== null && _data$SewerageConnect109 !== void 0 && (_data$SewerageConnect110 = _data$SewerageConnect109[0]) !== null && _data$SewerageConnect110 !== void 0 && (_data$SewerageConnect111 = _data$SewerageConnect110.connectionHolders) !== null && _data$SewerageConnect111 !== void 0 && (_data$SewerageConnect112 = _data$SewerageConnect111[0]) !== null && _data$SewerageConnect112 !== void 0 && (_data$SewerageConnect113 = _data$SewerageConnect112.ownerType) !== null && _data$SewerageConnect113 !== void 0 && _data$SewerageConnect113.includes("*"))) ? t("COMMON_MASTERS_OWNERTYPE_" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection119 = data.WaterConnection) === null || _data$WaterConnection119 === void 0 ? void 0 : (_data$WaterConnection120 = _data$WaterConnection119[0]) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120.connectionHolders) === null || _data$WaterConnection121 === void 0 ? void 0 : (_data$WaterConnection122 = _data$WaterConnection121[0]) === null || _data$WaterConnection122 === void 0 ? void 0 : _data$WaterConnection122.ownerType : data === null || data === void 0 ? void 0 : (_data$SewerageConnect114 = data.SewerageConnections) === null || _data$SewerageConnect114 === void 0 ? void 0 : (_data$SewerageConnect115 = _data$SewerageConnect114[0]) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115.connectionHolders) === null || _data$SewerageConnect116 === void 0 ? void 0 : (_data$SewerageConnect117 = _data$SewerageConnect116[0]) === null || _data$SewerageConnect117 === void 0 ? void 0 : _data$SewerageConnect117.ownerType)) : applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection123 = data.WaterConnection) === null || _data$WaterConnection123 === void 0 ? void 0 : (_data$WaterConnection124 = _data$WaterConnection123[0]) === null || _data$WaterConnection124 === void 0 ? void 0 : (_data$WaterConnection125 = _data$WaterConnection124.connectionHolders) === null || _data$WaterConnection125 === void 0 ? void 0 : (_data$WaterConnection126 = _data$WaterConnection125[0]) === null || _data$WaterConnection126 === void 0 ? void 0 : _data$WaterConnection126.ownerType : data === null || data === void 0 ? void 0 : (_data$SewerageConnect118 = data.SewerageConnections) === null || _data$SewerageConnect118 === void 0 ? void 0 : (_data$SewerageConnect119 = _data$SewerageConnect118[0]) === null || _data$SewerageConnect119 === void 0 ? void 0 : (_data$SewerageConnect120 = _data$SewerageConnect119.connectionHolders) === null || _data$SewerageConnect120 === void 0 ? void 0 : (_data$SewerageConnect121 = _data$SewerageConnect120[0]) === null || _data$SewerageConnect121 === void 0 ? void 0 : _data$SewerageConnect121.ownerType,
|
|
28588
|
-
textStyle: {
|
|
28589
|
-
whiteSpace: "pre"
|
|
28590
|
-
},
|
|
28591
|
-
privacy: {
|
|
28592
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection127 = data.WaterConnection) === null || _data$WaterConnection127 === void 0 ? void 0 : (_data$WaterConnection128 = _data$WaterConnection127[0]) === null || _data$WaterConnection128 === void 0 ? void 0 : (_data$WaterConnection129 = _data$WaterConnection128.connectionHolders) === null || _data$WaterConnection129 === void 0 ? void 0 : (_data$WaterConnection130 = _data$WaterConnection129[0]) === null || _data$WaterConnection130 === void 0 ? void 0 : _data$WaterConnection130.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect122 = data.SewerageConnections) === null || _data$SewerageConnect122 === void 0 ? void 0 : (_data$SewerageConnect123 = _data$SewerageConnect122[0]) === null || _data$SewerageConnect123 === void 0 ? void 0 : (_data$SewerageConnect124 = _data$SewerageConnect123.connectionHolders) === null || _data$SewerageConnect124 === void 0 ? void 0 : (_data$SewerageConnect125 = _data$SewerageConnect124[0]) === null || _data$SewerageConnect125 === void 0 ? void 0 : _data$SewerageConnect125.uuid,
|
|
28593
|
-
fieldName: "ownerType",
|
|
28594
|
-
model: "WnSConnection",
|
|
28595
|
-
showValue: false,
|
|
28596
|
-
loadData: {
|
|
28597
|
-
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
28598
|
-
requestBody: {},
|
|
28599
|
-
requestParam: {
|
|
28600
|
-
tenantId,
|
|
28601
|
-
applicationNumber: applicationNobyData
|
|
28602
|
-
},
|
|
28603
|
-
jsonPath: serviceType === "WATER" ? "WaterConnection[0].connectionHolders[0].ownerType" : "SewerageConnections[0].connectionHolders[0].ownerType",
|
|
28604
|
-
isArray: false,
|
|
28605
|
-
d: res => {
|
|
28606
|
-
var _res$WaterConnection, _res$WaterConnection2, _res$WaterConnection3, _res$WaterConnection4, _res$WaterConnection5, _res$WaterConnection6, _res$SewerageConnecti, _res$SewerageConnecti2, _res$SewerageConnecti3, _res$SewerageConnecti4, _res$SewerageConnecti5;
|
|
28607
|
-
let resultString = res !== null && res !== void 0 && (_res$WaterConnection = res.WaterConnection) !== null && _res$WaterConnection !== void 0 && _res$WaterConnection[0] ? t("PROPERTYTAX_OWNERTYPE_" + (res === null || res === void 0 ? void 0 : (_res$WaterConnection2 = res.WaterConnection) === null || _res$WaterConnection2 === void 0 ? void 0 : (_res$WaterConnection3 = _res$WaterConnection2[0]) === null || _res$WaterConnection3 === void 0 ? void 0 : (_res$WaterConnection4 = _res$WaterConnection3.connectionHolders) === null || _res$WaterConnection4 === void 0 ? void 0 : (_res$WaterConnection5 = _res$WaterConnection4[0]) === null || _res$WaterConnection5 === void 0 ? void 0 : (_res$WaterConnection6 = _res$WaterConnection5.ownerType) === null || _res$WaterConnection6 === void 0 ? void 0 : _res$WaterConnection6.toUpperCase())) : t("PROPERTYTAX_OWNERTYPE_" + (res === null || res === void 0 ? void 0 : (_res$SewerageConnecti = res.SewerageConnections) === null || _res$SewerageConnecti === void 0 ? void 0 : (_res$SewerageConnecti2 = _res$SewerageConnecti[0]) === null || _res$SewerageConnecti2 === void 0 ? void 0 : (_res$SewerageConnecti3 = _res$SewerageConnecti2.connectionHolders) === null || _res$SewerageConnecti3 === void 0 ? void 0 : (_res$SewerageConnecti4 = _res$SewerageConnecti3[0]) === null || _res$SewerageConnecti4 === void 0 ? void 0 : (_res$SewerageConnecti5 = _res$SewerageConnecti4.ownerType) === null || _res$SewerageConnecti5 === void 0 ? void 0 : _res$SewerageConnecti5.toUpperCase()));
|
|
28608
|
-
return resultString;
|
|
28609
|
-
}
|
|
28610
|
-
}
|
|
28611
|
-
}
|
|
28612
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28613
|
-
className: "border-none",
|
|
28614
28386
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
28615
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28387
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection117 = data.WaterConnection) === null || _data$WaterConnection117 === void 0 ? void 0 : (_data$WaterConnection118 = _data$WaterConnection117[0]) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118.connectionHolders) === null || _data$WaterConnection119 === void 0 ? void 0 : (_data$WaterConnection120 = _data$WaterConnection119[0]) === null || _data$WaterConnection120 === void 0 ? void 0 : _data$WaterConnection120.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect112 = data.SewerageConnections) === null || _data$SewerageConnect112 === void 0 ? void 0 : (_data$SewerageConnect113 = _data$SewerageConnect112[0]) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113.connectionHolders) === null || _data$SewerageConnect114 === void 0 ? void 0 : (_data$SewerageConnect115 = _data$SewerageConnect114[0]) === null || _data$SewerageConnect115 === void 0 ? void 0 : _data$SewerageConnect115.emailId) || "NA",
|
|
28616
28388
|
textStyle: {
|
|
28617
28389
|
whiteSpace: "pre"
|
|
28618
28390
|
},
|
|
28619
28391
|
privacy: {
|
|
28620
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28392
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection121 = data.WaterConnection) === null || _data$WaterConnection121 === void 0 ? void 0 : (_data$WaterConnection122 = _data$WaterConnection121[0]) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122.connectionHolders) === null || _data$WaterConnection123 === void 0 ? void 0 : (_data$WaterConnection124 = _data$WaterConnection123[0]) === null || _data$WaterConnection124 === void 0 ? void 0 : _data$WaterConnection124.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect116 = data.SewerageConnections) === null || _data$SewerageConnect116 === void 0 ? void 0 : (_data$SewerageConnect117 = _data$SewerageConnect116[0]) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117.connectionHolders) === null || _data$SewerageConnect118 === void 0 ? void 0 : (_data$SewerageConnect119 = _data$SewerageConnect118[0]) === null || _data$SewerageConnect119 === void 0 ? void 0 : _data$SewerageConnect119.uuid,
|
|
28621
28393
|
fieldName: "connectionHoldersEmailId",
|
|
28622
28394
|
model: "WnSConnectionOwner",
|
|
28623
28395
|
showValue: false,
|
|
@@ -28632,19 +28404,17 @@ const WSApplicationDetails = () => {
|
|
|
28632
28404
|
isArray: false
|
|
28633
28405
|
}
|
|
28634
28406
|
}
|
|
28635
|
-
}))) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
28407
|
+
}))) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("WS_SAME_AS_PROPERTY_OWNERS"))), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28636
28408
|
styles: {
|
|
28637
28409
|
fontSize: "28px"
|
|
28638
28410
|
}
|
|
28639
28411
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28640
|
-
className: "border-none",
|
|
28641
28412
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
28642
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28413
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection125 = data.WaterConnection) === null || _data$WaterConnection125 === void 0 ? void 0 : (_data$WaterConnection126 = _data$WaterConnection125[0]) === null || _data$WaterConnection126 === void 0 ? void 0 : _data$WaterConnection126.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect120 = data.SewerageConnections) === null || _data$SewerageConnect120 === void 0 ? void 0 : (_data$SewerageConnect121 = _data$SewerageConnect120[0]) === null || _data$SewerageConnect121 === void 0 ? void 0 : _data$SewerageConnect121.propertyId),
|
|
28643
28414
|
textStyle: {
|
|
28644
28415
|
wordBreak: "break-word"
|
|
28645
28416
|
}
|
|
28646
28417
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28647
|
-
className: "border-none",
|
|
28648
28418
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
28649
28419
|
text: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties4 = PTData.Properties) === null || _PTData$Properties4 === void 0 ? void 0 : (_PTData$Properties4$ = _PTData$Properties4[0]) === null || _PTData$Properties4$ === void 0 ? void 0 : (_PTData$Properties4$$ = _PTData$Properties4$.owners.sort((a, b) => {
|
|
28650
28420
|
var _a$additionalDetails, _b$additionalDetails;
|
|
@@ -28654,7 +28424,6 @@ const WSApplicationDetails = () => {
|
|
|
28654
28424
|
whiteSpace: "pre"
|
|
28655
28425
|
}
|
|
28656
28426
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28657
|
-
className: "border-none",
|
|
28658
28427
|
label: t("WS_PROPERTY_ADDRESS"),
|
|
28659
28428
|
text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties5 = PTData.Properties) === null || _PTData$Properties5 === void 0 ? void 0 : (_PTData$Properties5$ = _PTData$Properties5[0]) === null || _PTData$Properties5$ === void 0 ? void 0 : _PTData$Properties5$.address, t) || t("CS_NA"),
|
|
28660
28429
|
textStyle: {
|
|
@@ -28682,13 +28451,13 @@ const WSApplicationDetails = () => {
|
|
|
28682
28451
|
}
|
|
28683
28452
|
}
|
|
28684
28453
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28685
|
-
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28454
|
+
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection127 = data.WaterConnection) === null || _data$WaterConnection127 === void 0 ? void 0 : (_data$WaterConnection128 = _data$WaterConnection127[0]) === null || _data$WaterConnection128 === void 0 ? void 0 : _data$WaterConnection128.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect122 = data.SewerageConnections) === null || _data$SewerageConnect122 === void 0 ? void 0 : (_data$SewerageConnect123 = _data$SewerageConnect122[0]) === null || _data$SewerageConnect123 === void 0 ? void 0 : _data$SewerageConnect123.propertyId)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection129 = data.WaterConnection) === null || _data$WaterConnection129 === void 0 ? void 0 : (_data$WaterConnection130 = _data$WaterConnection129[0]) === null || _data$WaterConnection130 === void 0 ? void 0 : _data$WaterConnection130.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect124 = data.SewerageConnections) === null || _data$SewerageConnect124 === void 0 ? void 0 : (_data$SewerageConnect125 = _data$SewerageConnect124[0]) === null || _data$SewerageConnect125 === void 0 ? void 0 : _data$SewerageConnect125.tenantId))
|
|
28686
28455
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
28687
28456
|
style: {
|
|
28688
28457
|
textAlign: "left"
|
|
28689
28458
|
},
|
|
28690
28459
|
label: t("WS_VIEW_PROPERTY")
|
|
28691
|
-
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
28460
|
+
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28692
28461
|
styles: {
|
|
28693
28462
|
fontSize: "28px"
|
|
28694
28463
|
}
|
|
@@ -28754,7 +28523,7 @@ const WSApplicationDetails = () => {
|
|
|
28754
28523
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28755
28524
|
label: t("LANDMARK"),
|
|
28756
28525
|
text: "" + t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
|
|
28757
|
-
}))
|
|
28526
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28758
28527
|
styles: {
|
|
28759
28528
|
fontSize: "28px"
|
|
28760
28529
|
}
|
|
@@ -28790,7 +28559,7 @@ const WSApplicationDetails = () => {
|
|
|
28790
28559
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28791
28560
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
28792
28561
|
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))
|
|
28793
|
-
}))
|
|
28562
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28794
28563
|
styles: {
|
|
28795
28564
|
fontSize: "28px"
|
|
28796
28565
|
}
|
|
@@ -28811,7 +28580,7 @@ const WSApplicationDetails = () => {
|
|
|
28811
28580
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28812
28581
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
28813
28582
|
text: "" + t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))
|
|
28814
|
-
})))
|
|
28583
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28815
28584
|
styles: {
|
|
28816
28585
|
fontSize: "28px"
|
|
28817
28586
|
}
|
|
@@ -28832,19 +28601,19 @@ const WSApplicationDetails = () => {
|
|
|
28832
28601
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28833
28602
|
label: t("WS_BANK_ACCOUNT_NO"),
|
|
28834
28603
|
text: "" + t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))
|
|
28835
|
-
}))
|
|
28604
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28836
28605
|
styles: {
|
|
28837
28606
|
fontSize: "28px"
|
|
28838
28607
|
}
|
|
28839
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
28840
|
-
var _doc$documentType, _data$
|
|
28608
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection131 = data.WaterConnection) === null || _data$WaterConnection131 === void 0 ? void 0 : (_data$WaterConnection132 = _data$WaterConnection131[0]) === null || _data$WaterConnection132 === void 0 ? void 0 : _data$WaterConnection132.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection133 = data.WaterConnection) === null || _data$WaterConnection133 === void 0 ? void 0 : (_data$WaterConnection134 = _data$WaterConnection133[0]) === null || _data$WaterConnection134 === void 0 ? void 0 : _data$WaterConnection134.documents.map((doc, index) => {
|
|
28609
|
+
var _doc$documentType, _data$WaterConnection135, _data$WaterConnection136, _data$WaterConnection137, _data$WaterConnection138;
|
|
28841
28610
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
28842
28611
|
key: "doc-" + index
|
|
28843
28612
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
28844
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28613
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection135 = data.WaterConnection) === null || _data$WaterConnection135 === void 0 ? void 0 : (_data$WaterConnection136 = _data$WaterConnection135[0]) === null || _data$WaterConnection136 === void 0 ? void 0 : _data$WaterConnection136.documents,
|
|
28845
28614
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28846
28615
|
index: index
|
|
28847
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28616
|
+
}), (data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : (_data$WaterConnection138 = _data$WaterConnection137[0]) === null || _data$WaterConnection138 === void 0 ? void 0 : _data$WaterConnection138.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
28848
28617
|
style: {
|
|
28849
28618
|
color: "#cccccc",
|
|
28850
28619
|
backgroundColor: "#cccccc",
|
|
@@ -28853,15 +28622,15 @@ const WSApplicationDetails = () => {
|
|
|
28853
28622
|
marginBottom: "20px"
|
|
28854
28623
|
}
|
|
28855
28624
|
}) : null)));
|
|
28856
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
28857
|
-
var _doc$documentType2, _data$
|
|
28625
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect126 = data.SewerageConnections) === null || _data$SewerageConnect126 === void 0 ? void 0 : (_data$SewerageConnect127 = _data$SewerageConnect126[0]) === null || _data$SewerageConnect127 === void 0 ? void 0 : _data$SewerageConnect127.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect128 = data.SewerageConnections) === null || _data$SewerageConnect128 === void 0 ? void 0 : (_data$SewerageConnect129 = _data$SewerageConnect128[0]) === null || _data$SewerageConnect129 === void 0 ? void 0 : _data$SewerageConnect129.documents.map((doc, index) => {
|
|
28626
|
+
var _doc$documentType2, _data$SewerageConnect130, _data$SewerageConnect131, _data$SewerageConnect132, _data$SewerageConnect133;
|
|
28858
28627
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
28859
28628
|
key: "doc-" + index
|
|
28860
28629
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
28861
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28630
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect130 = data.SewerageConnections) === null || _data$SewerageConnect130 === void 0 ? void 0 : (_data$SewerageConnect131 = _data$SewerageConnect130[0]) === null || _data$SewerageConnect131 === void 0 ? void 0 : _data$SewerageConnect131.documents,
|
|
28862
28631
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28863
28632
|
index: index
|
|
28864
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28633
|
+
}), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : (_data$SewerageConnect133 = _data$SewerageConnect132[0]) === null || _data$SewerageConnect133 === void 0 ? void 0 : _data$SewerageConnect133.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
28865
28634
|
style: {
|
|
28866
28635
|
color: "white",
|
|
28867
28636
|
backgroundColor: "white",
|
|
@@ -28870,42 +28639,36 @@ const WSApplicationDetails = () => {
|
|
|
28870
28639
|
marginBottom: "20px"
|
|
28871
28640
|
}
|
|
28872
28641
|
}) : null)));
|
|
28873
|
-
}))
|
|
28874
|
-
id: "timeline"
|
|
28875
|
-
}, /*#__PURE__*/React__default.createElement(WSWFApplicationTimeline, {
|
|
28876
|
-
application: (data === null || data === void 0 ? void 0 : (_data$WaterConnection153 = data.WaterConnection) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect148 = data.SewerageConnections) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148[0]),
|
|
28877
|
-
id: (data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : _data$WaterConnection155.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : _data$SewerageConnect150.applicationNo),
|
|
28878
|
-
paymentbuttonenabled: false
|
|
28879
|
-
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection156 = data.WaterConnection) === null || _data$WaterConnection156 === void 0 ? void 0 : (_data$WaterConnection157 = _data$WaterConnection156[0]) === null || _data$WaterConnection157 === void 0 ? void 0 : _data$WaterConnection157.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect151 = data.SewerageConnections) === null || _data$SewerageConnect151 === void 0 ? void 0 : (_data$SewerageConnect152 = _data$SewerageConnect151[0]) === null || _data$SewerageConnect152 === void 0 ? void 0 : _data$SewerageConnect152.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28642
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139[0]) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect134 = data.SewerageConnections) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134[0]) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28880
28643
|
to: {
|
|
28881
|
-
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data20 = paymentDetails.data) === null || _paymentDetails$data20 === void 0 ? void 0 : (_paymentDetails$data21 = _paymentDetails$data20.Bill) === null || _paymentDetails$data21 === void 0 ? void 0 : (_paymentDetails$data22 = _paymentDetails$data21[0]) === null || _paymentDetails$data22 === void 0 ? void 0 : _paymentDetails$data22.businessService) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$
|
|
28644
|
+
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data20 = paymentDetails.data) === null || _paymentDetails$data20 === void 0 ? void 0 : (_paymentDetails$data21 = _paymentDetails$data20.Bill) === null || _paymentDetails$data21 === void 0 ? void 0 : (_paymentDetails$data22 = _paymentDetails$data21[0]) === null || _paymentDetails$data22 === void 0 ? void 0 : _paymentDetails$data22.businessService) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection141 = data.WaterConnection) === null || _data$WaterConnection141 === void 0 ? void 0 : (_data$WaterConnection142 = _data$WaterConnection141[0]) === null || _data$WaterConnection142 === void 0 ? void 0 : _data$WaterConnection142.connectionNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : (_data$SewerageConnect137 = _data$SewerageConnect136[0]) === null || _data$SewerageConnect137 === void 0 ? void 0 : _data$SewerageConnect137.connectionNo, "/", "+") : stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : (_data$WaterConnection144 = _data$WaterConnection143[0]) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144.applicationNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : (_data$SewerageConnect139 = _data$SewerageConnect138[0]) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection145 = data.WaterConnection) === null || _data$WaterConnection145 === void 0 ? void 0 : (_data$WaterConnection146 = _data$WaterConnection145[0]) === null || _data$WaterConnection146 === void 0 ? void 0 : _data$WaterConnection146.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : (_data$SewerageConnect141 = _data$SewerageConnect140[0]) === null || _data$SewerageConnect141 === void 0 ? void 0 : _data$SewerageConnect141.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection147 = data.WaterConnection) === null || _data$WaterConnection147 === void 0 ? void 0 : (_data$WaterConnection148 = _data$WaterConnection147[0]) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148.connectionHolders) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect142 = data.SewerageConnections) === null || _data$SewerageConnect142 === void 0 ? void 0 : (_data$SewerageConnect143 = _data$SewerageConnect142[0]) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143.connectionHolders) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : (_PTData$Properties8$$ = _PTData$Properties8$.owners) === null || _PTData$Properties8$$ === void 0 ? void 0 : _PTData$Properties8$$.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false),
|
|
28882
28645
|
state: {}
|
|
28883
28646
|
}
|
|
28884
28647
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
28885
28648
|
label: t("MAKE_PAYMENT")
|
|
28886
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
28649
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection150 = data.WaterConnection) !== null && _data$WaterConnection150 !== void 0 && (_data$WaterConnection151 = _data$WaterConnection150[0]) !== null && _data$WaterConnection151 !== void 0 && _data$WaterConnection151.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection152 = data.WaterConnection) !== null && _data$WaterConnection152 !== void 0 && (_data$WaterConnection153 = _data$WaterConnection152[0]) !== null && _data$WaterConnection153 !== void 0 && _data$WaterConnection153.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect145 = data.SewerageConnections) !== null && _data$SewerageConnect145 !== void 0 && (_data$SewerageConnect146 = _data$SewerageConnect145[0]) !== null && _data$SewerageConnect146 !== void 0 && _data$SewerageConnect146.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect147 = data.SewerageConnections) !== null && _data$SewerageConnect147 !== void 0 && (_data$SewerageConnect148 = _data$SewerageConnect147[0]) !== null && _data$SewerageConnect148 !== void 0 && _data$SewerageConnect148.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28887
28650
|
to: {
|
|
28888
|
-
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28651
|
+
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : _data$WaterConnection155.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : _data$SewerageConnect150.tenantId)),
|
|
28889
28652
|
state: {
|
|
28890
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28653
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection156 = data.WaterConnection) === null || _data$WaterConnection156 === void 0 ? void 0 : (_data$WaterConnection157 = _data$WaterConnection156[0]) === null || _data$WaterConnection157 === void 0 ? void 0 : _data$WaterConnection157.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect151 = data.SewerageConnections) === null || _data$SewerageConnect151 === void 0 ? void 0 : (_data$SewerageConnect152 = _data$SewerageConnect151[0]) === null || _data$SewerageConnect152 === void 0 ? void 0 : _data$SewerageConnect152.applicationNo))
|
|
28891
28654
|
}
|
|
28892
28655
|
}
|
|
28893
28656
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
28894
28657
|
label: t("COMMON_EDIT")
|
|
28895
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
28658
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection158 = data.WaterConnection) !== null && _data$WaterConnection158 !== void 0 && (_data$WaterConnection159 = _data$WaterConnection158[0]) !== null && _data$WaterConnection159 !== void 0 && _data$WaterConnection159.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection160 = data.WaterConnection) !== null && _data$WaterConnection160 !== void 0 && (_data$WaterConnection161 = _data$WaterConnection160[0]) !== null && _data$WaterConnection161 !== void 0 && _data$WaterConnection161.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect153 = data.SewerageConnections) !== null && _data$SewerageConnect153 !== void 0 && (_data$SewerageConnect154 = _data$SewerageConnect153[0]) !== null && _data$SewerageConnect154 !== void 0 && _data$SewerageConnect154.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect155 = data.SewerageConnections) !== null && _data$SewerageConnect155 !== void 0 && (_data$SewerageConnect156 = _data$SewerageConnect155[0]) !== null && _data$SewerageConnect156 !== void 0 && _data$SewerageConnect156.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28896
28659
|
to: {
|
|
28897
28660
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
28898
28661
|
state: {
|
|
28899
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28662
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection162 = data.WaterConnection) === null || _data$WaterConnection162 === void 0 ? void 0 : (_data$WaterConnection163 = _data$WaterConnection162[0]) === null || _data$WaterConnection163 === void 0 ? void 0 : _data$WaterConnection163.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect157 = data.SewerageConnections) === null || _data$SewerageConnect157 === void 0 ? void 0 : (_data$SewerageConnect158 = _data$SewerageConnect157[0]) === null || _data$SewerageConnect158 === void 0 ? void 0 : _data$SewerageConnect158.applicationNo))
|
|
28900
28663
|
}
|
|
28901
28664
|
}
|
|
28902
28665
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
28903
28666
|
label: t("RESUBMIT_APPLICATION"),
|
|
28904
28667
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
28905
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28668
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect159 = data.SewerageConnections) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159[0],
|
|
28906
28669
|
serviceType: "SEWERAGE",
|
|
28907
28670
|
WSDisconnectionForm: {
|
|
28908
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28671
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect160 = data.SewerageConnections) !== null && _data$SewerageConnect160 !== void 0 && (_data$SewerageConnect161 = _data$SewerageConnect160[0]) !== null && _data$SewerageConnect161 !== void 0 && _data$SewerageConnect161.isDisconnectionTemporary ? {
|
|
28909
28672
|
code: "type",
|
|
28910
28673
|
value: {
|
|
28911
28674
|
name: "Temporary",
|
|
@@ -28922,18 +28685,18 @@ const WSApplicationDetails = () => {
|
|
|
28922
28685
|
code: "Permanent"
|
|
28923
28686
|
}
|
|
28924
28687
|
},
|
|
28925
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28688
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect162 = data.SewerageConnections) === null || _data$SewerageConnect162 === void 0 ? void 0 : (_data$SewerageConnect163 = _data$SewerageConnect162[0]) === null || _data$SewerageConnect163 === void 0 ? void 0 : _data$SewerageConnect163.dateEffectiveFrom, true),
|
|
28926
28689
|
reason: {
|
|
28927
28690
|
code: "reason",
|
|
28928
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28691
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.disconnectionReason
|
|
28929
28692
|
},
|
|
28930
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28693
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect166 = data.SewerageConnections) === null || _data$SewerageConnect166 === void 0 ? void 0 : (_data$SewerageConnect167 = _data$SewerageConnect166[0]) === null || _data$SewerageConnect167 === void 0 ? void 0 : _data$SewerageConnect167.documents
|
|
28931
28694
|
}
|
|
28932
28695
|
} : {
|
|
28933
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28696
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection164 = data.WaterConnection) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164[0],
|
|
28934
28697
|
serviceType: "WATER",
|
|
28935
28698
|
WSDisconnectionForm: {
|
|
28936
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28699
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection165 = data.WaterConnection) !== null && _data$WaterConnection165 !== void 0 && (_data$WaterConnection166 = _data$WaterConnection165[0]) !== null && _data$WaterConnection166 !== void 0 && _data$WaterConnection166.isDisconnectionTemporary ? {
|
|
28937
28700
|
code: "type",
|
|
28938
28701
|
value: {
|
|
28939
28702
|
name: "Temporary",
|
|
@@ -28950,15 +28713,15 @@ const WSApplicationDetails = () => {
|
|
|
28950
28713
|
code: "Permanent"
|
|
28951
28714
|
}
|
|
28952
28715
|
},
|
|
28953
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28716
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection167 = data.WaterConnection) === null || _data$WaterConnection167 === void 0 ? void 0 : (_data$WaterConnection168 = _data$WaterConnection167[0]) === null || _data$WaterConnection168 === void 0 ? void 0 : _data$WaterConnection168.dateEffectiveFrom, true),
|
|
28954
28717
|
reason: {
|
|
28955
28718
|
code: "reason",
|
|
28956
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28719
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection169 = data.WaterConnection) === null || _data$WaterConnection169 === void 0 ? void 0 : (_data$WaterConnection170 = _data$WaterConnection169[0]) === null || _data$WaterConnection170 === void 0 ? void 0 : _data$WaterConnection170.disconnectionReason
|
|
28957
28720
|
},
|
|
28958
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28721
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection171 = data.WaterConnection) === null || _data$WaterConnection171 === void 0 ? void 0 : (_data$WaterConnection172 = _data$WaterConnection171[0]) === null || _data$WaterConnection172 === void 0 ? void 0 : _data$WaterConnection172.documents
|
|
28959
28722
|
}
|
|
28960
28723
|
})
|
|
28961
|
-
})) : null)));
|
|
28724
|
+
})) : null)))));
|
|
28962
28725
|
};
|
|
28963
28726
|
|
|
28964
28727
|
const WSAdditionalDetails = () => {
|
|
@@ -32462,7 +32225,7 @@ const WSInfoPage = () => {
|
|
|
32462
32225
|
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
32463
32226
|
label: t("CS_COMMON_NEXT"),
|
|
32464
32227
|
onSubmit: handleNext,
|
|
32465
|
-
disabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO"
|
|
32228
|
+
disabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO"
|
|
32466
32229
|
})));
|
|
32467
32230
|
};
|
|
32468
32231
|
|
|
@@ -32478,10 +32241,7 @@ const PropertyLocationDetails = _ref => {
|
|
|
32478
32241
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
32479
32242
|
const _useTranslation = reactI18next.useTranslation(),
|
|
32480
32243
|
t = _useTranslation.t;
|
|
32481
|
-
const _useState = React.useState(
|
|
32482
|
-
showToast = _useState[0],
|
|
32483
|
-
setShowToast = _useState[1];
|
|
32484
|
-
const _useState2 = React.useState({
|
|
32244
|
+
const _useState = React.useState({
|
|
32485
32245
|
addressType: (address === null || address === void 0 ? void 0 : address.addressType) || "",
|
|
32486
32246
|
pincode: (address === null || address === void 0 ? void 0 : address.pinCode) || "",
|
|
32487
32247
|
city: (address === null || address === void 0 ? void 0 : address.city) || "",
|
|
@@ -32503,8 +32263,8 @@ const PropertyLocationDetails = _ref => {
|
|
|
32503
32263
|
actualWard: (address === null || address === void 0 ? void 0 : address.actualWard) || "",
|
|
32504
32264
|
actualZone: (address === null || address === void 0 ? void 0 : address.actualZone) || ""
|
|
32505
32265
|
}),
|
|
32506
|
-
formData =
|
|
32507
|
-
setFormData =
|
|
32266
|
+
formData = _useState[0],
|
|
32267
|
+
setFormData = _useState[1];
|
|
32508
32268
|
const isPropertyFound = window.location.href.includes("ws/old-application");
|
|
32509
32269
|
React.useEffect(() => {
|
|
32510
32270
|
if (props.register) {
|
|
@@ -32599,26 +32359,7 @@ const PropertyLocationDetails = _ref => {
|
|
|
32599
32359
|
onSelect((config === null || config === void 0 ? void 0 : config.key) || "address", clearedData);
|
|
32600
32360
|
}
|
|
32601
32361
|
}, [formDataProp === null || formDataProp === void 0 ? void 0 : (_formDataProp$cpt2 = formDataProp.cpt) === null || _formDataProp$cpt2 === void 0 ? void 0 : _formDataProp$cpt2.details, formDataProp === null || formDataProp === void 0 ? void 0 : formDataProp.cpt]);
|
|
32602
|
-
|
|
32603
|
-
if (showToast) {
|
|
32604
|
-
const timer = setTimeout(() => {
|
|
32605
|
-
setShowToast(null);
|
|
32606
|
-
}, 1000);
|
|
32607
|
-
return () => clearTimeout(timer);
|
|
32608
|
-
}
|
|
32609
|
-
}, [showToast]);
|
|
32610
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
32611
|
-
title: t("PT_LOCATION_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property )" : ""),
|
|
32612
|
-
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true
|
|
32613
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
32614
|
-
style: _extends({
|
|
32615
|
-
boxShadow: "none"
|
|
32616
|
-
}, props.style)
|
|
32617
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
32618
|
-
style: {
|
|
32619
|
-
marginTop: "20px"
|
|
32620
|
-
}
|
|
32621
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.AddressDetails, {
|
|
32362
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.AddressDetails, {
|
|
32622
32363
|
t: t,
|
|
32623
32364
|
formData: formData,
|
|
32624
32365
|
onSelect: (key, data) => {
|
|
@@ -32633,7 +32374,7 @@ const PropertyLocationDetails = _ref => {
|
|
|
32633
32374
|
showMapActualLocation: true,
|
|
32634
32375
|
disable: isPropertyFound,
|
|
32635
32376
|
hideNextButton: true
|
|
32636
|
-
})
|
|
32377
|
+
});
|
|
32637
32378
|
};
|
|
32638
32379
|
|
|
32639
32380
|
const WSPropertyLocationDetails = props => {
|
|
@@ -36722,31 +36463,6 @@ const WorkflowTimeline = _ref => {
|
|
|
36722
36463
|
})));
|
|
36723
36464
|
};
|
|
36724
36465
|
|
|
36725
|
-
const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
36726
|
-
const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
36727
|
-
function _catch$1(body, recover) {
|
|
36728
|
-
try {
|
|
36729
|
-
var result = body();
|
|
36730
|
-
} catch (e) {
|
|
36731
|
-
return recover(e);
|
|
36732
|
-
}
|
|
36733
|
-
if (result && result.then) {
|
|
36734
|
-
return result.then(void 0, recover);
|
|
36735
|
-
}
|
|
36736
|
-
return result;
|
|
36737
|
-
}
|
|
36738
|
-
function _finallyRethrows$1(body, finalizer) {
|
|
36739
|
-
try {
|
|
36740
|
-
var result = body();
|
|
36741
|
-
} catch (e) {
|
|
36742
|
-
return finalizer(true, e);
|
|
36743
|
-
}
|
|
36744
|
-
if (result && result.then) {
|
|
36745
|
-
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
36746
|
-
}
|
|
36747
|
-
return finalizer(false, result);
|
|
36748
|
-
}
|
|
36749
|
-
|
|
36750
36466
|
const configPTApproverApplication = _ref => {
|
|
36751
36467
|
var _action$assigneeRoles;
|
|
36752
36468
|
let t = _ref.t,
|
|
@@ -37495,7 +37211,7 @@ const ActionModal = _ref => {
|
|
|
37495
37211
|
if (file.size >= 5242880) {
|
|
37496
37212
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
37497
37213
|
} else {
|
|
37498
|
-
const _temp = _catch
|
|
37214
|
+
const _temp = _catch(function () {
|
|
37499
37215
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
37500
37216
|
var _response$data, _response$data$files;
|
|
37501
37217
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -37722,7 +37438,7 @@ const ActionModal$1 = _ref => {
|
|
|
37722
37438
|
if (file.size >= 5242880) {
|
|
37723
37439
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
37724
37440
|
} else {
|
|
37725
|
-
const _temp = _catch
|
|
37441
|
+
const _temp = _catch(function () {
|
|
37726
37442
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
37727
37443
|
var _response$data, _response$data$files;
|
|
37728
37444
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -37892,7 +37608,7 @@ const ActionModal$2 = _ref => {
|
|
|
37892
37608
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
37893
37609
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
37894
37610
|
} else {
|
|
37895
|
-
const _temp = _catch
|
|
37611
|
+
const _temp = _catch(function () {
|
|
37896
37612
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
37897
37613
|
var _response$data, _response$data$files;
|
|
37898
37614
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -38175,7 +37891,7 @@ const ActionModal$3 = _ref => {
|
|
|
38175
37891
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
38176
37892
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
38177
37893
|
} else {
|
|
38178
|
-
const _temp = _catch
|
|
37894
|
+
const _temp = _catch(function () {
|
|
38179
37895
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
38180
37896
|
var _response$data, _response$data$files;
|
|
38181
37897
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -38433,7 +38149,7 @@ const ActionModal$4 = _ref => {
|
|
|
38433
38149
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
38434
38150
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
38435
38151
|
} else {
|
|
38436
|
-
const _temp = _catch
|
|
38152
|
+
const _temp = _catch(function () {
|
|
38437
38153
|
return Promise.resolve(Digit.UploadServices.Filestorage("NOC", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
38438
38154
|
var _response$data, _response$data$files;
|
|
38439
38155
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -38660,7 +38376,7 @@ const ActionModal$5 = _ref => {
|
|
|
38660
38376
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
38661
38377
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
38662
38378
|
} else {
|
|
38663
|
-
const _temp = _catch
|
|
38379
|
+
const _temp = _catch(function () {
|
|
38664
38380
|
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getCurrentTenantId())).then(function (response) {
|
|
38665
38381
|
var _response$data, _response$data$files;
|
|
38666
38382
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -38970,7 +38686,7 @@ const ActionModal$6 = _ref => {
|
|
|
38970
38686
|
if (file.size >= 5242880) {
|
|
38971
38687
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
38972
38688
|
} else {
|
|
38973
|
-
const _temp = _catch
|
|
38689
|
+
const _temp = _catch(function () {
|
|
38974
38690
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
38975
38691
|
var _response$data, _response$data$files;
|
|
38976
38692
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -39260,7 +38976,7 @@ const ActionModal$8 = _ref => {
|
|
|
39260
38976
|
if (file.size >= 5242880) {
|
|
39261
38977
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39262
38978
|
} else {
|
|
39263
|
-
const _temp = _catch
|
|
38979
|
+
const _temp = _catch(function () {
|
|
39264
38980
|
return Promise.resolve(Digit.UploadServices.Filestorage("CHB", file, tenantId)).then(function (response) {
|
|
39265
38981
|
var _response$data, _response$data$files;
|
|
39266
38982
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -39426,7 +39142,7 @@ const ActionModal$9 = _ref => {
|
|
|
39426
39142
|
if (file.size >= 5242880) {
|
|
39427
39143
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39428
39144
|
} else {
|
|
39429
|
-
const _temp = _catch
|
|
39145
|
+
const _temp = _catch(function () {
|
|
39430
39146
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
39431
39147
|
var _response$data, _response$data$files;
|
|
39432
39148
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -39598,8 +39314,8 @@ const ActionModal$a = _ref => {
|
|
|
39598
39314
|
if (file.size >= 5242880) {
|
|
39599
39315
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39600
39316
|
} else {
|
|
39601
|
-
const _temp = _finallyRethrows
|
|
39602
|
-
return _catch
|
|
39317
|
+
const _temp = _finallyRethrows(function () {
|
|
39318
|
+
return _catch(function () {
|
|
39603
39319
|
return Promise.resolve(Digit.UploadServices.Filestorage("StreetVending", file, tenantId)).then(function (response) {
|
|
39604
39320
|
var _response$data, _response$data$files;
|
|
39605
39321
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -39885,7 +39601,7 @@ const ActionModal$b = _ref => {
|
|
|
39885
39601
|
if (file.size >= 5242880) {
|
|
39886
39602
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39887
39603
|
} else {
|
|
39888
|
-
const _temp = _catch
|
|
39604
|
+
const _temp = _catch(function () {
|
|
39889
39605
|
return Promise.resolve(Digit.UploadServices.Filestorage("WT", file, tenantId)).then(function (response) {
|
|
39890
39606
|
var _response$data, _response$data$files;
|
|
39891
39607
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -40573,7 +40289,7 @@ function SelectDocument$4(_ref) {
|
|
|
40573
40289
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
40574
40290
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
40575
40291
|
} else {
|
|
40576
|
-
const _temp = _catch
|
|
40292
|
+
const _temp = _catch(function () {
|
|
40577
40293
|
setUploadedFile(null);
|
|
40578
40294
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
40579
40295
|
var _response$data, _response$data$files;
|
|
@@ -40963,7 +40679,7 @@ function PropertyDocuments(_ref) {
|
|
|
40963
40679
|
};
|
|
40964
40680
|
const forceDownload = function (url, fileName) {
|
|
40965
40681
|
try {
|
|
40966
|
-
return Promise.resolve(_catch
|
|
40682
|
+
return Promise.resolve(_catch(function () {
|
|
40967
40683
|
return Promise.resolve(fetch(url)).then(function (response) {
|
|
40968
40684
|
if (!response.ok) {
|
|
40969
40685
|
throw new Error("HTTP error! status: " + response.status);
|
|
@@ -41226,7 +40942,7 @@ function PropertyDocuments(_ref) {
|
|
|
41226
40942
|
}));
|
|
41227
40943
|
}
|
|
41228
40944
|
}
|
|
41229
|
-
}), "Check Verified"));
|
|
40945
|
+
}), t("Check Verified")));
|
|
41230
40946
|
})())
|
|
41231
40947
|
})));
|
|
41232
40948
|
};
|
|
@@ -44173,7 +43889,7 @@ const ApplicationDetails = props => {
|
|
|
44173
43889
|
const nocPrmomises = (_nocData = nocData) === null || _nocData === void 0 ? void 0 : _nocData.map(noc => {
|
|
44174
43890
|
return nocMutation === null || nocMutation === void 0 ? void 0 : nocMutation.mutateAsync(noc);
|
|
44175
43891
|
});
|
|
44176
|
-
const _temp = _catch
|
|
43892
|
+
const _temp = _catch(function () {
|
|
44177
43893
|
setIsEnableLoader(true);
|
|
44178
43894
|
return Promise.resolve(Promise.all(nocPrmomises)).then(function (values) {
|
|
44179
43895
|
values && values.map(ob => {
|