@djb25/digit-ui-module-ws 1.0.108 → 1.0.109

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.
@@ -40257,7 +40257,7 @@ const config$2 = [{
40257
40257
  }];
40258
40258
 
40259
40259
  const WNSMyBills = _ref => {
40260
- var _Digit$UserService$ge, _Digit$SessionStorage, _Digit$UserService$ge2, _Digit$UserService$ge3, _location$state, _Digit$UserService$ge4, _userInfo$userName, _searchResults, _searchResults2, _searchResults3;
40260
+ var _location$state, _Digit$SessionStorage, _Digit$UserService$ge, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _location$state2, _Digit$UserService$ge5, _userInfo$userName, _searchResults, _searchResults2, _searchResults3;
40261
40261
  let {
40262
40262
  template,
40263
40263
  header,
@@ -40271,25 +40271,26 @@ const WNSMyBills = _ref => {
40271
40271
  const {
40272
40272
  tenantId: _tenantId
40273
40273
  } = Digit.Hooks.useQueryParams();
40274
- let {
40275
- tenantId
40276
- } = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || (location === null || location === void 0 ? void 0 : location.state) || {
40277
- tenantId: _tenantId
40278
- } || {};
40279
- tenantId = ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || ((_Digit$UserService$ge2 = Digit.UserService.getUser()) === null || _Digit$UserService$ge2 === void 0 ? void 0 : (_Digit$UserService$ge3 = _Digit$UserService$ge2.info) === null || _Digit$UserService$ge3 === void 0 ? void 0 : _Digit$UserService$ge3.permanentCity) || tenantId;
40280
- if (!tenantId && !(location !== null && location !== void 0 && (_location$state = location.state) !== null && _location$state !== void 0 && _location$state.fromSearchResults)) {
40274
+ const queryTenantId = _tenantId || (location === null || location === void 0 ? void 0 : (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.tenantId);
40275
+ let tenantId = queryTenantId || ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.permanentCity) || ((_Digit$UserService$ge3 = Digit.UserService.getUser()) === null || _Digit$UserService$ge3 === void 0 ? void 0 : (_Digit$UserService$ge4 = _Digit$UserService$ge3.info) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.tenantId) || Digit.ULBService.getCurrentTenantId();
40276
+ if (!tenantId || tenantId === "dl") {
40277
+ tenantId = "dl.djb";
40278
+ }
40279
+ if (!tenantId && !(location !== null && location !== void 0 && (_location$state2 = location.state) !== null && _location$state2 !== void 0 && _location$state2.fromSearchResults)) {
40281
40280
  history.replace(`/digit-ui/citizen/login`, {
40282
- from: url
40281
+ from: location.pathname
40283
40282
  });
40284
40283
  }
40285
40284
  let filters = {};
40286
- const userInfo = ((_Digit$UserService$ge4 = Digit.UserService.getUser()) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.info) || {};
40285
+ const userInfo = ((_Digit$UserService$ge5 = Digit.UserService.getUser()) === null || _Digit$UserService$ge5 === void 0 ? void 0 : _Digit$UserService$ge5.info) || {};
40287
40286
  const mobileNumber = userInfo !== null && userInfo !== void 0 && (_userInfo$userName = userInfo.userName) !== null && _userInfo$userName !== void 0 && _userInfo$userName.match(/^[0-9]{10}$/) ? userInfo === null || userInfo === void 0 ? void 0 : userInfo.userName : userInfo === null || userInfo === void 0 ? void 0 : userInfo.mobileNumber;
40288
40287
  filters = {
40289
40288
  ...filters,
40290
- searchType: "CONNECTION"
40289
+ searchType: "CONNECTION",
40290
+ tenantId
40291
40291
  };
40292
40292
  const params = {
40293
+ tenantId,
40293
40294
  mobileNumber,
40294
40295
  ...filters
40295
40296
  };
@@ -40319,8 +40320,8 @@ const WNSMyBills = _ref => {
40319
40320
  const onSubmit = data => {
40320
40321
  history.push(`/digit-ui/citizen/payment/my-bills/${data === null || data === void 0 ? void 0 : data.ConsumerNumber.split("/")[0]}/${stringReplaceAll(data === null || data === void 0 ? void 0 : data.ConsumerNumber, "/", "+")}?workflow=WNS&tenantId=${tenantId}&ConsumerName=${data === null || data === void 0 ? void 0 : data.ConsumerName}`);
40321
40322
  };
40322
- let searchResults = Waterresult && Sewarageresult ? Waterresult.concat(Sewarageresult) : [];
40323
- searchResults = (_searchResults = searchResults) === null || _searchResults === void 0 ? void 0 : _searchResults.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.AmountDue) && (ob === null || ob === void 0 ? void 0 : ob.AmountDue) !== "0");
40323
+ let searchResults = (Waterresult || []).concat(Sewarageresult || []);
40324
+ searchResults = (_searchResults = searchResults) === null || _searchResults === void 0 ? void 0 : _searchResults.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.ConsumerNumber) && (ob === null || ob === void 0 ? void 0 : ob.hasBill) !== false);
40324
40325
  return /*#__PURE__*/React.createElement("div", {
40325
40326
  style: {
40326
40327
  marginTop: "16px"
@@ -40659,7 +40660,6 @@ const WSInfoPage = () => {
40659
40660
  className: "ws-info-container"
40660
40661
  }, /*#__PURE__*/React.createElement("style", null, `
40661
40662
  .ws-info-container {
40662
- margin: 0 auto;
40663
40663
  padding: 8px 4px 32px 4px;
40664
40664
  color: #0b0c0c;
40665
40665
  box-sizing: border-box;
@@ -40680,27 +40680,27 @@ const WSInfoPage = () => {
40680
40680
  flex-wrap: wrap;
40681
40681
  gap: 10px;
40682
40682
  align-items: center;
40683
- margin-bottom: 12px;
40683
+ margin-bottom: 20px;
40684
40684
  }
40685
40685
  .ws-service-tag {
40686
- background: #e8f3fa;
40687
- color: #0b4d82;
40688
- font-size: 12px;
40686
+ background: #e0f2fe;
40687
+ color: #0369a1;
40688
+ font-size: 11.5px;
40689
40689
  font-weight: 700;
40690
40690
  text-transform: uppercase;
40691
40691
  letter-spacing: 0.5px;
40692
- padding: 4px 12px;
40693
- border-radius: 14px;
40694
- border: 1px solid #c9e0f5;
40692
+ padding: 5px 14px;
40693
+ border-radius: 20px;
40694
+ border: 1px solid #bae6fd;
40695
40695
  }
40696
40696
  .ws-portal-tag {
40697
- background: #f4f5f7;
40698
- color: #505a5f;
40699
- font-size: 12px;
40697
+ background: #f1f5f9;
40698
+ color: #475569;
40699
+ font-size: 11.5px;
40700
40700
  font-weight: 600;
40701
- padding: 4px 12px;
40702
- border-radius: 14px;
40703
- border: 1px solid #e1e4e8;
40701
+ padding: 5px 14px;
40702
+ border-radius: 20px;
40703
+ border: 1px solid #e2e8f0;
40704
40704
  }
40705
40705
  .ws-page-title {
40706
40706
  font-size: 26px;
@@ -40763,57 +40763,61 @@ const WSInfoPage = () => {
40763
40763
  }
40764
40764
  .ws-card {
40765
40765
  background: #ffffff;
40766
- border: 1px solid #dce4ec;
40766
+ border: 1px solid #e2e8f0;
40767
40767
  border-radius: 12px;
40768
- padding: 24px;
40769
- margin-bottom: 24px;
40770
- box-shadow: 0 2px 10px rgba(11, 77, 130, 0.04);
40768
+ padding: 24px 28px;
40769
+ margin-bottom: 20px;
40770
+ box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
40771
40771
  }
40772
40772
  .ws-step-header {
40773
40773
  display: flex;
40774
40774
  align-items: flex-start;
40775
- gap: 14px;
40776
- margin-bottom: 18px;
40777
- padding-bottom: 16px;
40778
- border-bottom: 1px solid #eef2f5;
40775
+ gap: 16px;
40776
+ margin-bottom: 20px;
40777
+ padding-bottom: 18px;
40778
+ border-bottom: 1px solid #f1f5f9;
40779
40779
  }
40780
40780
  .ws-step-num-badge {
40781
- background: #1a67a3;
40781
+ background: linear-gradient(135deg, #1a67a3 0%, #0c4a79 100%);
40782
40782
  color: #ffffff;
40783
- font-size: 16px;
40783
+ font-size: 15px;
40784
40784
  font-weight: 700;
40785
- width: 32px;
40786
- height: 32px;
40785
+ width: 34px;
40786
+ height: 34px;
40787
40787
  border-radius: 50%;
40788
40788
  display: flex;
40789
40789
  align-items: center;
40790
40790
  justify-content: center;
40791
40791
  flex-shrink: 0;
40792
- box-shadow: 0 2px 4px rgba(26, 103, 163, 0.25);
40792
+ box-shadow: 0 2px 6px rgba(26, 103, 163, 0.25);
40793
40793
  }
40794
40794
  .ws-step-title {
40795
- font-size: 19px;
40795
+ font-size: 18px;
40796
40796
  font-weight: 700;
40797
- color: #0b0c0c;
40797
+ color: #0f172a;
40798
40798
  margin: 0 0 4px 0;
40799
40799
  }
40800
40800
  .ws-step-subtitle {
40801
- font-size: 14px;
40802
- color: #505a5f;
40801
+ font-size: 13.5px;
40802
+ color: #475569;
40803
40803
  margin: 0;
40804
40804
  line-height: 1.5;
40805
40805
  }
40806
40806
  .ws-question-container {
40807
40807
  background: #f8fafc;
40808
40808
  border: 1px solid #e2e8f0;
40809
- border-radius: 8px;
40810
- padding: 18px 20px;
40809
+ border-radius: 10px;
40810
+ padding: 18px 22px;
40811
40811
  margin-bottom: 20px;
40812
+ transition: border-color 0.2s ease;
40813
+ }
40814
+ .ws-question-container:hover {
40815
+ border-color: #cbd5e1;
40812
40816
  }
40813
40817
  .ws-question-label {
40814
- font-size: 15.5px;
40818
+ font-size: 15px;
40815
40819
  font-weight: 700;
40816
- color: #0b0c0c;
40820
+ color: #0f172a;
40817
40821
  display: block;
40818
40822
  margin-bottom: 12px;
40819
40823
  }
@@ -41191,39 +41195,67 @@ const WSInfoPage = () => {
41191
41195
  white-space: nowrap;
41192
41196
  }
41193
41197
  .ws-digilocker-box {
41198
+ display: flex;
41199
+ align-items: center;
41200
+ justify-content: space-between;
41201
+ gap: 20px;
41202
+ flex-wrap: wrap;
41194
41203
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
41195
41204
  border: 1px solid #bae6fd;
41196
- border-radius: 10px;
41197
- padding: 18px;
41198
- margin-top: 16px;
41205
+ border-radius: 12px;
41206
+ padding: 18px 24px;
41207
+ margin-bottom: 20px;
41208
+ box-shadow: 0 2px 8px rgba(3, 105, 161, 0.06);
41199
41209
  }
41200
- .ws-digilocker-header {
41210
+ .ws-digilocker-content {
41201
41211
  display: flex;
41202
- gap: 12px;
41203
- align-items: flex-start;
41204
- margin-bottom: 14px;
41212
+ align-items: center;
41213
+ gap: 14px;
41214
+ flex: 1;
41215
+ min-width: 280px;
41205
41216
  }
41206
41217
  .ws-dl-icon-circle {
41207
- width: 36px;
41208
- height: 36px;
41218
+ width: 44px;
41219
+ height: 44px;
41209
41220
  background: #ffffff;
41221
+ border: 1px solid #bae6fd;
41210
41222
  border-radius: 50%;
41211
41223
  display: flex;
41212
41224
  align-items: center;
41213
41225
  justify-content: center;
41214
41226
  flex-shrink: 0;
41215
- box-shadow: 0 1px 3px rgba(0,0,0,0.06);
41227
+ box-shadow: 0 2px 4px rgba(3, 105, 161, 0.1);
41228
+ }
41229
+ .ws-dl-info {
41230
+ display: flex;
41231
+ flex-direction: column;
41232
+ gap: 3px;
41233
+ }
41234
+ .ws-dl-title-wrap {
41235
+ display: flex;
41236
+ align-items: center;
41237
+ gap: 10px;
41216
41238
  }
41217
41239
  .ws-dl-title {
41218
- font-size: 15px;
41240
+ font-size: 15.5px;
41219
41241
  font-weight: 700;
41220
41242
  color: #0369a1;
41221
- margin-bottom: 2px;
41243
+ margin: 0;
41244
+ }
41245
+ .ws-dl-pill {
41246
+ background: #0284c7;
41247
+ color: #ffffff;
41248
+ font-size: 10px;
41249
+ font-weight: 700;
41250
+ letter-spacing: 0.5px;
41251
+ padding: 2px 8px;
41252
+ border-radius: 10px;
41222
41253
  }
41223
41254
  .ws-dl-sub {
41224
- font-size: 12.5px;
41255
+ font-size: 13px;
41225
41256
  color: #334155;
41226
41257
  line-height: 1.45;
41258
+ margin: 0;
41227
41259
  }
41228
41260
  .ws-btn {
41229
41261
  display: inline-flex;
@@ -41265,10 +41297,26 @@ const WSInfoPage = () => {
41265
41297
  .ws-btn-digilocker {
41266
41298
  background: #003366;
41267
41299
  color: #ffffff;
41268
- width: 100%;
41300
+ width: auto;
41301
+ padding: 11px 22px;
41302
+ border-radius: 8px;
41303
+ font-size: 14px;
41304
+ font-weight: 600;
41305
+ display: inline-flex;
41306
+ align-items: center;
41307
+ justify-content: center;
41308
+ gap: 8px;
41309
+ cursor: pointer;
41310
+ white-space: nowrap;
41311
+ box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
41312
+ transition: all 0.2s ease;
41313
+ flex-shrink: 0;
41314
+ border: none;
41269
41315
  }
41270
41316
  .ws-btn-digilocker:hover {
41271
41317
  background: #002244;
41318
+ transform: translateY(-1px);
41319
+ box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
41272
41320
  }
41273
41321
  .ws-btn:disabled {
41274
41322
  opacity: 0.55;
@@ -41276,11 +41324,11 @@ const WSInfoPage = () => {
41276
41324
  }
41277
41325
  .ws-action-card {
41278
41326
  background: #ffffff;
41279
- border: 1px solid #dce4ec;
41327
+ border: 1px solid #e2e8f0;
41280
41328
  border-radius: 12px;
41281
41329
  padding: 18px 24px;
41282
41330
  margin-top: 10px;
41283
- box-shadow: 0 4px 12px rgba(11, 77, 130, 0.08);
41331
+ box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
41284
41332
  }
41285
41333
  .ws-action-content {
41286
41334
  display: flex;
@@ -41291,34 +41339,75 @@ const WSInfoPage = () => {
41291
41339
  }
41292
41340
  .ws-action-hint {
41293
41341
  flex: 1;
41294
- min-width: 250px;
41342
+ min-width: 280px;
41295
41343
  }
41296
- .ws-hint-text {
41297
- font-size: 14px;
41298
- font-weight: 600;
41344
+ .ws-hint-badge {
41345
+ display: inline-flex;
41346
+ align-items: center;
41347
+ gap: 10px;
41348
+ font-size: 13.5px;
41349
+ font-weight: 500;
41350
+ padding: 9px 16px;
41351
+ border-radius: 8px;
41352
+ line-height: 1.4;
41299
41353
  }
41300
41354
  .ws-hint-warning {
41301
- color: #b45309;
41355
+ background: #fffbeb;
41356
+ color: #92400e;
41357
+ border: 1px solid #fde68a;
41358
+ }
41359
+ .ws-hint-warning svg {
41360
+ color: #d97706;
41361
+ flex-shrink: 0;
41362
+ }
41363
+ .ws-hint-info {
41364
+ background: #eff6ff;
41365
+ color: #1e40af;
41366
+ border: 1px solid #bfdbfe;
41367
+ }
41368
+ .ws-hint-info svg {
41369
+ color: #2563eb;
41370
+ flex-shrink: 0;
41302
41371
  }
41303
41372
  .ws-hint-success {
41304
- color: #047857;
41373
+ background: #f0fdf4;
41374
+ color: #166534;
41375
+ border: 1px solid #bbf7d0;
41376
+ }
41377
+ .ws-hint-success svg {
41378
+ color: #16a34a;
41379
+ flex-shrink: 0;
41305
41380
  }
41306
41381
  .ws-btn-next {
41307
- background: #00703c;
41382
+ display: inline-flex;
41383
+ align-items: center;
41384
+ gap: 8px;
41385
+ padding: 12px 26px;
41386
+ font-size: 14.5px;
41387
+ font-weight: 600;
41388
+ border-radius: 8px;
41389
+ border: none;
41390
+ cursor: pointer;
41391
+ white-space: nowrap;
41392
+ transition: all 0.2s ease;
41393
+ }
41394
+ .ws-btn-next:not(:disabled) {
41395
+ background: linear-gradient(135deg, #1a67a3 0%, #0d4a75 100%);
41308
41396
  color: #ffffff;
41309
- font-size: 15px;
41310
- padding: 12px 28px;
41311
- border-radius: 6px;
41312
- box-shadow: 0 2px 4px rgba(0, 112, 60, 0.2);
41397
+ box-shadow: 0 4px 12px rgba(26, 103, 163, 0.25);
41313
41398
  }
41314
- .ws-btn-next:hover:not(:disabled) {
41315
- background: #005a30;
41399
+ .ws-btn-next:not(:disabled):hover {
41400
+ background: linear-gradient(135deg, #155587 0%, #09375a 100%);
41401
+ box-shadow: 0 6px 16px rgba(26, 103, 163, 0.35);
41402
+ transform: translateY(-1px);
41316
41403
  }
41317
41404
  .ws-btn-disabled {
41318
- background: #94a3b8 !important;
41319
- color: #f1f5f9 !important;
41405
+ background: #e2e8f0 !important;
41406
+ color: #94a3b8 !important;
41320
41407
  cursor: not-allowed !important;
41321
41408
  box-shadow: none !important;
41409
+ border: 1px solid #cbd5e1 !important;
41410
+ transform: none !important;
41322
41411
  }
41323
41412
  @media (max-width: 900px) {
41324
41413
  .ws-checklist-grid {
@@ -41588,314 +41677,121 @@ const WSInfoPage = () => {
41588
41677
  type: "button",
41589
41678
  onClick: handleCreateProperty
41590
41679
  }, t("Register New Property")))), /*#__PURE__*/React.createElement("div", {
41591
- className: "ws-card"
41592
- }, /*#__PURE__*/React.createElement("div", {
41593
- className: "ws-checklist-header"
41680
+ className: "ws-digilocker-box"
41594
41681
  }, /*#__PURE__*/React.createElement("div", {
41595
- className: "ws-checklist-title-row"
41596
- }, /*#__PURE__*/React.createElement("span", {
41597
- className: "ws-section-badge"
41598
- }, t("Application Checklist")), /*#__PURE__*/React.createElement("h2", {
41599
- className: "ws-checklist-title"
41600
- }, t("What You Will Need During The Application"))), /*#__PURE__*/React.createElement("div", {
41601
- className: "ws-confused-user-explainer"
41682
+ className: "ws-digilocker-content"
41602
41683
  }, /*#__PURE__*/React.createElement("div", {
41603
- className: "ws-explainer-icon"
41684
+ className: "ws-dl-icon-circle"
41604
41685
  }, /*#__PURE__*/React.createElement("svg", {
41605
41686
  width: "22",
41606
41687
  height: "22",
41607
41688
  viewBox: "0 0 24 24",
41608
41689
  fill: "none",
41609
- stroke: "#16a34a",
41610
- strokeWidth: "2",
41611
- strokeLinecap: "round",
41612
- strokeLinejoin: "round"
41613
- }, /*#__PURE__*/React.createElement("circle", {
41614
- cx: "12",
41615
- cy: "12",
41616
- r: "10"
41617
- }), /*#__PURE__*/React.createElement("path", {
41618
- d: "M12 16v-4"
41619
- }), /*#__PURE__*/React.createElement("path", {
41620
- d: "M12 8h.01"
41621
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
41622
- className: "ws-explainer-desc"
41623
- }, t("The items below outline the exact information you will enter and the supporting documents you will upload in the upcoming application screens. You do NOT need to fill them in on this screen—this checklist helps you gather all details and keep scanned copies ready in advance for a fast, hassle-free submission."))))), /*#__PURE__*/React.createElement("div", {
41624
- className: "ws-checklist-grid"
41690
+ stroke: "#003366",
41691
+ strokeWidth: "2"
41692
+ }, /*#__PURE__*/React.createElement("path", {
41693
+ d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"
41694
+ }))), /*#__PURE__*/React.createElement("div", {
41695
+ className: "ws-dl-info"
41625
41696
  }, /*#__PURE__*/React.createElement("div", {
41626
- className: "ws-checklist-column"
41697
+ className: "ws-dl-title-wrap"
41698
+ }, /*#__PURE__*/React.createElement("span", {
41699
+ className: "ws-dl-title"
41700
+ }, t("Fast-Track with DigiLocker")), /*#__PURE__*/React.createElement("span", {
41701
+ className: "ws-dl-pill"
41702
+ }, t("RECOMMENDED"))), /*#__PURE__*/React.createElement("p", {
41703
+ className: "ws-dl-sub"
41704
+ }, t("Fetch your verified Aadhaar, Electricity Bill, and Identity documents directly without manual upload.")))), /*#__PURE__*/React.createElement("button", {
41705
+ type: "button",
41706
+ className: "ws-btn ws-btn-digilocker",
41707
+ onClick: handleDigiLockerLogin
41708
+ }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDD10"), /*#__PURE__*/React.createElement("span", null, t("DigiLocker Consent")))), /*#__PURE__*/React.createElement("div", {
41709
+ className: "ws-action-card"
41627
41710
  }, /*#__PURE__*/React.createElement("div", {
41628
- className: "ws-col-header"
41711
+ className: "ws-action-content"
41629
41712
  }, /*#__PURE__*/React.createElement("div", {
41630
- className: "ws-col-icon-wrap",
41631
- style: {
41632
- background: "#e0f2fe",
41633
- color: "#0369a1"
41634
- }
41713
+ className: "ws-action-hint"
41714
+ }, !hasProperty ? /*#__PURE__*/React.createElement("div", {
41715
+ className: "ws-hint-badge ws-hint-warning"
41635
41716
  }, /*#__PURE__*/React.createElement("svg", {
41636
- width: "20",
41637
- height: "20",
41717
+ width: "18",
41718
+ height: "18",
41638
41719
  viewBox: "0 0 24 24",
41639
41720
  fill: "none",
41640
41721
  stroke: "currentColor",
41641
41722
  strokeWidth: "2"
41642
- }, /*#__PURE__*/React.createElement("path", {
41643
- d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
41644
- }), /*#__PURE__*/React.createElement("path", {
41645
- d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"
41646
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", {
41647
- className: "ws-col-title"
41648
- }, t("1. Information You Will Fill In")), /*#__PURE__*/React.createElement("p", {
41649
- className: "ws-col-subtitle"
41650
- }, t("Fields asked across the application stages")))), /*#__PURE__*/React.createElement("div", {
41651
- className: "ws-group-cards-list"
41652
- }, /*#__PURE__*/React.createElement("div", {
41653
- className: "ws-group-card"
41654
- }, /*#__PURE__*/React.createElement("div", {
41655
- className: "ws-group-title"
41656
- }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDCA7"), /*#__PURE__*/React.createElement("span", null, t("Connection Details"))), /*#__PURE__*/React.createElement("div", {
41657
- className: "ws-tag-grid"
41658
- }, /*#__PURE__*/React.createElement("span", {
41659
- className: "ws-tag-item"
41660
- }, t("Request Type")), /*#__PURE__*/React.createElement("span", {
41661
- className: "ws-tag-item"
41662
- }, t("Applicant Type")), /*#__PURE__*/React.createElement("span", {
41663
- className: "ws-tag-item"
41664
- }, t("Is Divyangjan / Person with Disability?")))), /*#__PURE__*/React.createElement("div", {
41665
- className: "ws-group-card"
41666
- }, /*#__PURE__*/React.createElement("div", {
41667
- className: "ws-group-title"
41668
- }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDC64"), /*#__PURE__*/React.createElement("span", null, t("Connection Holder Details"))), /*#__PURE__*/React.createElement("div", {
41669
- className: "ws-tag-grid"
41670
- }, /*#__PURE__*/React.createElement("span", {
41671
- className: "ws-tag-item"
41672
- }, t("Name")), /*#__PURE__*/React.createElement("span", {
41673
- className: "ws-tag-item"
41674
- }, t("Middle Name")), /*#__PURE__*/React.createElement("span", {
41675
- className: "ws-tag-item"
41676
- }, t("Last Name")), /*#__PURE__*/React.createElement("span", {
41677
- className: "ws-tag-item"
41678
- }, t("Gender")), /*#__PURE__*/React.createElement("span", {
41679
- className: "ws-tag-item"
41680
- }, t("Mobile Number")), /*#__PURE__*/React.createElement("span", {
41681
- className: "ws-tag-item"
41682
- }, t("Email ID")))), /*#__PURE__*/React.createElement("div", {
41683
- className: "ws-group-card"
41684
- }, /*#__PURE__*/React.createElement("div", {
41685
- className: "ws-group-title"
41686
- }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDCCD"), /*#__PURE__*/React.createElement("span", null, t("Property Address & Location"))), /*#__PURE__*/React.createElement("div", {
41687
- className: "ws-tag-grid"
41688
- }, /*#__PURE__*/React.createElement("span", {
41689
- className: "ws-tag-item"
41690
- }, t("Address Type")), /*#__PURE__*/React.createElement("span", {
41691
- className: "ws-tag-item"
41692
- }, t("City")), /*#__PURE__*/React.createElement("span", {
41693
- className: "ws-tag-item"
41694
- }, t("Pincode")), /*#__PURE__*/React.createElement("span", {
41695
- className: "ws-tag-item"
41696
- }, t("Locality")), /*#__PURE__*/React.createElement("span", {
41697
- className: "ws-tag-item"
41698
- }, t("Sub-Locality")), /*#__PURE__*/React.createElement("span", {
41699
- className: "ws-tag-item"
41700
- }, t("Street Name / Gali")), /*#__PURE__*/React.createElement("span", {
41701
- className: "ws-tag-item"
41702
- }, t("Address Line 1")), /*#__PURE__*/React.createElement("span", {
41703
- className: "ws-tag-item"
41704
- }, t("Address Line 2")), /*#__PURE__*/React.createElement("span", {
41705
- className: "ws-tag-item"
41706
- }, t("House No.")), /*#__PURE__*/React.createElement("span", {
41707
- className: "ws-tag-item"
41708
- }, t("Latitude")), /*#__PURE__*/React.createElement("span", {
41709
- className: "ws-tag-item"
41710
- }, t("Longitude")), /*#__PURE__*/React.createElement("span", {
41711
- className: "ws-tag-item"
41712
- }, t("Assembly")), /*#__PURE__*/React.createElement("span", {
41713
- className: "ws-tag-item"
41714
- }, t("Ward")), /*#__PURE__*/React.createElement("span", {
41715
- className: "ws-tag-item"
41716
- }, t("Zone")), /*#__PURE__*/React.createElement("span", {
41717
- className: "ws-tag-item"
41718
- }, t("Landmark")))), /*#__PURE__*/React.createElement("div", {
41719
- className: "ws-group-card"
41720
- }, /*#__PURE__*/React.createElement("div", {
41721
- className: "ws-group-title"
41722
- }, /*#__PURE__*/React.createElement("span", null, "\uD83C\uDFE2"), /*#__PURE__*/React.createElement("span", null, t("Property & Connection Usage"))), /*#__PURE__*/React.createElement("div", {
41723
- className: "ws-tag-grid"
41724
- }, /*#__PURE__*/React.createElement("span", {
41725
- className: "ws-tag-item"
41726
- }, t("Category Type")), /*#__PURE__*/React.createElement("span", {
41727
- className: "ws-tag-item"
41728
- }, t("Property Category")), /*#__PURE__*/React.createElement("span", {
41729
- className: "ws-tag-item"
41730
- }, t("Property Type")), /*#__PURE__*/React.createElement("span", {
41731
- className: "ws-tag-item"
41732
- }, t("Water Usage Type")), /*#__PURE__*/React.createElement("span", {
41733
- className: "ws-tag-item"
41734
- }, t("Number of Floors")), /*#__PURE__*/React.createElement("span", {
41735
- className: "ws-tag-item"
41736
- }, t("Plot Area")), /*#__PURE__*/React.createElement("span", {
41737
- className: "ws-tag-item"
41738
- }, t("Built-up Area")), /*#__PURE__*/React.createElement("span", {
41739
- className: "ws-tag-item"
41740
- }, t("Year of Construction")), /*#__PURE__*/React.createElement("span", {
41741
- className: "ws-tag-item"
41742
- }, t("Dwelling Units")))), /*#__PURE__*/React.createElement("div", {
41743
- className: "ws-group-card"
41744
- }, /*#__PURE__*/React.createElement("div", {
41745
- className: "ws-group-title"
41746
- }, /*#__PURE__*/React.createElement("span", null, "\uD83C\uDFDB\uFE0F"), /*#__PURE__*/React.createElement("span", null, t("DJB Employee Details (if applicable)"))), /*#__PURE__*/React.createElement("div", {
41747
- className: "ws-tag-grid"
41748
- }, /*#__PURE__*/React.createElement("span", {
41749
- className: "ws-tag-item"
41750
- }, t("Employee ID")), /*#__PURE__*/React.createElement("span", {
41751
- className: "ws-tag-item"
41752
- }, t("Employee Designation")))))), /*#__PURE__*/React.createElement("div", {
41753
- className: "ws-checklist-column"
41754
- }, /*#__PURE__*/React.createElement("div", {
41755
- className: "ws-col-header"
41756
- }, /*#__PURE__*/React.createElement("div", {
41757
- className: "ws-col-icon-wrap",
41758
- style: {
41759
- background: "#fef3c7",
41760
- color: "#b45309"
41761
- }
41723
+ }, /*#__PURE__*/React.createElement("circle", {
41724
+ cx: "12",
41725
+ cy: "12",
41726
+ r: "10"
41727
+ }), /*#__PURE__*/React.createElement("line", {
41728
+ x1: "12",
41729
+ y1: "8",
41730
+ x2: "12",
41731
+ y2: "12"
41732
+ }), /*#__PURE__*/React.createElement("line", {
41733
+ x1: "12",
41734
+ y1: "16",
41735
+ x2: "12.01",
41736
+ y2: "16"
41737
+ })), /*#__PURE__*/React.createElement("span", null, t("Please select whether you have an existing property in Step 1 to continue."))) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement("div", {
41738
+ className: "ws-hint-badge ws-hint-warning"
41762
41739
  }, /*#__PURE__*/React.createElement("svg", {
41763
- width: "20",
41764
- height: "20",
41740
+ width: "18",
41741
+ height: "18",
41765
41742
  viewBox: "0 0 24 24",
41766
41743
  fill: "none",
41767
41744
  stroke: "currentColor",
41768
41745
  strokeWidth: "2"
41769
- }, /*#__PURE__*/React.createElement("path", {
41770
- d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
41771
- }), /*#__PURE__*/React.createElement("polyline", {
41772
- points: "14 2 14 8 20 8"
41746
+ }, /*#__PURE__*/React.createElement("circle", {
41747
+ cx: "12",
41748
+ cy: "12",
41749
+ r: "10"
41773
41750
  }), /*#__PURE__*/React.createElement("line", {
41774
- x1: "16",
41775
- y1: "13",
41776
- x2: "8",
41777
- y2: "13"
41751
+ x1: "12",
41752
+ y1: "8",
41753
+ x2: "12",
41754
+ y2: "12"
41778
41755
  }), /*#__PURE__*/React.createElement("line", {
41779
- x1: "16",
41780
- y1: "17",
41781
- x2: "8",
41782
- y2: "17"
41783
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", {
41784
- className: "ws-col-title"
41785
- }, t("2. Documents to Upload")), /*#__PURE__*/React.createElement("p", {
41786
- className: "ws-col-subtitle"
41787
- }, t("Keep clear scanned files ready (PDF/JPG/PNG, ≤ 5MB)")))), /*#__PURE__*/React.createElement("div", {
41788
- className: "ws-docs-cards-list"
41789
- }, /*#__PURE__*/React.createElement("div", {
41790
- className: "ws-doc-item-card"
41791
- }, /*#__PURE__*/React.createElement("div", {
41792
- className: "ws-doc-badge"
41793
- }, "\uD83E\uDEAA"), /*#__PURE__*/React.createElement("div", {
41794
- className: "ws-doc-info"
41795
- }, /*#__PURE__*/React.createElement("div", {
41796
- className: "ws-doc-name"
41797
- }, t("Proof of Identity")), /*#__PURE__*/React.createElement("div", {
41798
- className: "ws-doc-desc"
41799
- }, t("Aadhaar Card, Voter ID, PAN Card, or Passport"))), /*#__PURE__*/React.createElement("span", {
41800
- className: "ws-req-pill"
41801
- }, t("Mandatory"))), /*#__PURE__*/React.createElement("div", {
41802
- className: "ws-doc-item-card"
41803
- }, /*#__PURE__*/React.createElement("div", {
41804
- className: "ws-doc-badge"
41805
- }, "\uD83C\uDFE0"), /*#__PURE__*/React.createElement("div", {
41806
- className: "ws-doc-info"
41807
- }, /*#__PURE__*/React.createElement("div", {
41808
- className: "ws-doc-name"
41809
- }, t("Proof of Address / Ownership")), /*#__PURE__*/React.createElement("div", {
41810
- className: "ws-doc-desc"
41811
- }, t("Registered Sale Deed, Conveyance Deed, or Allotment Letter"))), /*#__PURE__*/React.createElement("span", {
41812
- className: "ws-req-pill"
41813
- }, t("Mandatory"))), /*#__PURE__*/React.createElement("div", {
41814
- className: "ws-doc-item-card"
41815
- }, /*#__PURE__*/React.createElement("div", {
41816
- className: "ws-doc-badge"
41817
- }, "\u26A1"), /*#__PURE__*/React.createElement("div", {
41818
- className: "ws-doc-info"
41819
- }, /*#__PURE__*/React.createElement("div", {
41820
- className: "ws-doc-name"
41821
- }, t("Electricity Bill")), /*#__PURE__*/React.createElement("div", {
41822
- className: "ws-doc-desc"
41823
- }, t("Latest paid electricity bill of the premises"))), /*#__PURE__*/React.createElement("span", {
41824
- className: "ws-req-pill"
41825
- }, t("Mandatory"))), /*#__PURE__*/React.createElement("div", {
41826
- className: "ws-doc-item-card"
41827
- }, /*#__PURE__*/React.createElement("div", {
41828
- className: "ws-doc-badge"
41829
- }, "\uD83D\uDD27"), /*#__PURE__*/React.createElement("div", {
41830
- className: "ws-doc-info"
41831
- }, /*#__PURE__*/React.createElement("div", {
41832
- className: "ws-doc-name"
41833
- }, t("Plumber Report")), /*#__PURE__*/React.createElement("div", {
41834
- className: "ws-doc-desc"
41835
- }, t("Completion certificate from a licensed plumber"))), /*#__PURE__*/React.createElement("span", {
41836
- className: "ws-opt-pill"
41837
- }, t("As Applicable"))), /*#__PURE__*/React.createElement("div", {
41838
- className: "ws-doc-item-card"
41839
- }, /*#__PURE__*/React.createElement("div", {
41840
- className: "ws-doc-badge"
41841
- }, "\uD83D\uDCD0"), /*#__PURE__*/React.createElement("div", {
41842
- className: "ws-doc-info"
41843
- }, /*#__PURE__*/React.createElement("div", {
41844
- className: "ws-doc-name"
41845
- }, t("Building Plan")), /*#__PURE__*/React.createElement("div", {
41846
- className: "ws-doc-desc"
41847
- }, t("Sanctioned / approved layout plan of the structure"))), /*#__PURE__*/React.createElement("span", {
41848
- className: "ws-opt-pill"
41849
- }, t("As Applicable"))), /*#__PURE__*/React.createElement("div", {
41850
- className: "ws-doc-item-card"
41851
- }, /*#__PURE__*/React.createElement("div", {
41852
- className: "ws-doc-badge"
41853
- }, "\uD83E\uDDFE"), /*#__PURE__*/React.createElement("div", {
41854
- className: "ws-doc-info"
41855
- }, /*#__PURE__*/React.createElement("div", {
41856
- className: "ws-doc-name"
41857
- }, t("Property Tax Receipt")), /*#__PURE__*/React.createElement("div", {
41858
- className: "ws-doc-desc"
41859
- }, t("Latest property tax receipt / assessment notice"))), /*#__PURE__*/React.createElement("span", {
41860
- className: "ws-opt-pill"
41861
- }, t("As Applicable")))), /*#__PURE__*/React.createElement("div", {
41862
- className: "ws-digilocker-box"
41863
- }, /*#__PURE__*/React.createElement("div", {
41864
- className: "ws-digilocker-header"
41865
- }, /*#__PURE__*/React.createElement("div", {
41866
- className: "ws-dl-icon-circle"
41756
+ x1: "12",
41757
+ y1: "16",
41758
+ x2: "12.01",
41759
+ y2: "16"
41760
+ })), /*#__PURE__*/React.createElement("span", null, t("Please verify your mobile number and select a property from the dropdown to proceed."))) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" ? /*#__PURE__*/React.createElement("div", {
41761
+ className: "ws-hint-badge ws-hint-info"
41867
41762
  }, /*#__PURE__*/React.createElement("svg", {
41868
- width: "22",
41869
- height: "22",
41763
+ width: "18",
41764
+ height: "18",
41870
41765
  viewBox: "0 0 24 24",
41871
41766
  fill: "none",
41872
- stroke: "#003366",
41767
+ stroke: "currentColor",
41873
41768
  strokeWidth: "2"
41874
- }, /*#__PURE__*/React.createElement("path", {
41875
- d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"
41876
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
41877
- className: "ws-dl-title"
41878
- }, t("Fast-Track with DigiLocker")), /*#__PURE__*/React.createElement("div", {
41879
- className: "ws-dl-sub"
41880
- }, t("Fetch your verified Aadhaar, Electricity Bill, and Identity documents directly without manual upload.")))), /*#__PURE__*/React.createElement("button", {
41881
- type: "button",
41882
- className: "ws-btn ws-btn-digilocker",
41883
- onClick: handleDigiLockerLogin
41884
- }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDD10"), /*#__PURE__*/React.createElement("span", null, t("DigiLocker Consent"))))))), /*#__PURE__*/React.createElement("div", {
41885
- className: "ws-action-card"
41886
- }, /*#__PURE__*/React.createElement("div", {
41887
- className: "ws-action-content"
41888
- }, /*#__PURE__*/React.createElement("div", {
41889
- className: "ws-action-hint"
41890
- }, !hasProperty ? /*#__PURE__*/React.createElement("span", {
41891
- className: "ws-hint-text ws-hint-warning"
41892
- }, "\u26A0\uFE0F ", t("Please select whether you have an existing property in Step 1 to continue.")) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement("span", {
41893
- className: "ws-hint-text ws-hint-warning"
41894
- }, "\u26A0\uFE0F ", t("Please verify your mobile number and select a property from the dropdown to proceed.")) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" ? /*#__PURE__*/React.createElement("span", {
41895
- className: "ws-hint-text ws-hint-warning"
41896
- }, "\u2139\uFE0F ", t("Please register your property using the button in Step 1 before applying.")) : /*#__PURE__*/React.createElement("span", {
41897
- className: "ws-hint-text ws-hint-success"
41898
- }, "\u2713 ", t("All prerequisites verified! You are ready to start the application form."))), /*#__PURE__*/React.createElement("div", {
41769
+ }, /*#__PURE__*/React.createElement("circle", {
41770
+ cx: "12",
41771
+ cy: "12",
41772
+ r: "10"
41773
+ }), /*#__PURE__*/React.createElement("line", {
41774
+ x1: "12",
41775
+ y1: "16",
41776
+ x2: "12",
41777
+ y2: "12"
41778
+ }), /*#__PURE__*/React.createElement("line", {
41779
+ x1: "12",
41780
+ y1: "8",
41781
+ x2: "12.01",
41782
+ y2: "8"
41783
+ })), /*#__PURE__*/React.createElement("span", null, t("Please register your property using the button in Step 1 before applying."))) : /*#__PURE__*/React.createElement("div", {
41784
+ className: "ws-hint-badge ws-hint-success"
41785
+ }, /*#__PURE__*/React.createElement("svg", {
41786
+ width: "18",
41787
+ height: "18",
41788
+ viewBox: "0 0 24 24",
41789
+ fill: "none",
41790
+ stroke: "currentColor",
41791
+ strokeWidth: "2.5"
41792
+ }, /*#__PURE__*/React.createElement("polyline", {
41793
+ points: "20 6 9 17 4 12"
41794
+ })), /*#__PURE__*/React.createElement("span", null, t("All prerequisites verified! You are ready to start the application form.")))), /*#__PURE__*/React.createElement("div", {
41899
41795
  className: "ws-action-buttons"
41900
41796
  }, /*#__PURE__*/React.createElement("button", {
41901
41797
  type: "button",
@@ -55619,7 +55515,7 @@ const EditApplication$1 = () => {
55619
55515
  };
55620
55516
 
55621
55517
  const ConsumptionDetails$1 = _ref => {
55622
- var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _mdmsMeterStatus$Mdms4, _DJBReadingQualityCod, _DJBReadingQualityCod2, _DJBReadingQualityCod3, _DJBReadingQualityCod4, _details$4, _details$5, _meterReadingDetailsD, _meterReadingDetailsD2, _meterReadingDetailsD3, _meterReadingDetailsD4, _meterReadingDetailsD5, _meterReadingDetailsD6, _meterReadingDetailsD7, _meterReadingDetailsD8, _meterReadingDetailsD9, _meterReadingDetailsD0, _meterReadingDetailsD1, _meterReadingDetailsD10, _meterReadingDetailsD11, _meterReadingDetailsD12, _meterReadingDetailsD13, _meterReadingDetailsD14, _meterReadingDetailsD15, _meterReadingDetailsD16, _meterReadingDetailsD17, _meterReadingDetailsD18, _meterReadingDetailsD19, _meterReadingDetailsD20, _meterReadingDetailsD21, _meterReadingDetailsD22, _meterReadingDetailsD23, _meterReadingDetailsD24, _meterReadingDetailsD25, _meterReadingDetailsD26, _meterReadingDetailsD27, _meterReadingDetailsD28, _meterReadingDetailsD29, _meterReadingDetailsD30, _meterReadingDetailsD31, _meterReadingDetailsD32, _meterReadingDetailsD33, _meterReadingDetailsD34, _meterReadingDetailsD35, _meterReadingDetailsD36, _meterReadingDetailsD37, _meterReadingDetailsD38, _meterReadingDetailsD39, _meterReadingDetailsD40, _meterReadingDetailsD41, _meterReadingDetailsD42, _meterReadingDetailsD43, _meterReadingDetailsD44, _meterReadingDetailsD45, _meterReadingDetailsD46, _meterReadingDetailsD47, _meterReadingDetailsD48, _meterReadingDetailsD49, _meterReadingDetailsD50, _meterReadingDetailsD51, _meterReadingDetailsD52, _meterReadingDetailsD53, _meterReadingDetailsD54, _meterReadingDetailsD55, _meterReadingDetailsD56, _meterReadingDetailsD57, _meterReadingDetailsD58, _meterReadingDetailsD59, _meterReadingDetailsD60, _meterReadingDetailsD61, _meterReadingDetailsD62, _meterReadingDetailsD63, _meterReadingDetailsD64, _meterReadingDetailsD65, _meterReadingDetailsD66, _meterReadingDetailsD67, _meterReadingDetailsD68, _meterReadingDetailsD69, _meterReadingDetailsD70, _meterReadingDetailsD71, _meterReadingDetailsD72, _meterReadingDetailsD73, _meterReadingDetailsD74, _meterReadingDetailsD75, _meterReadingDetailsD76, _meterReadingDetailsD77, _meterReadingDetailsD78, _meterReadingDetailsD79, _meterReadingDetailsD80, _meterReadingDetailsD81, _meterReadingDetailsD82;
55518
+ var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _details$4, _details$5, _meterReadingDetailsD, _meterReadingDetailsD2, _meterReadingDetailsD3, _meterReadingDetailsD4, _meterReadingDetailsD5, _meterReadingDetailsD6, _meterReadingDetailsD7, _meterReadingDetailsD8, _meterReadingDetailsD9, _meterReadingDetailsD0, _meterReadingDetailsD1, _meterReadingDetailsD10, _meterReadingDetailsD11, _meterReadingDetailsD12, _meterReadingDetailsD13, _meterReadingDetailsD14, _meterReadingDetailsD15, _meterReadingDetailsD16, _meterReadingDetailsD17, _meterReadingDetailsD18, _meterReadingDetailsD19, _meterReadingDetailsD20, _meterReadingDetailsD21, _meterReadingDetailsD22, _meterReadingDetailsD23, _meterReadingDetailsD24, _meterReadingDetailsD25, _meterReadingDetailsD26, _meterReadingDetailsD27, _meterReadingDetailsD28, _meterReadingDetailsD29, _meterReadingDetailsD30, _meterReadingDetailsD31, _meterReadingDetailsD32, _meterReadingDetailsD33, _meterReadingDetailsD34, _meterReadingDetailsD35, _meterReadingDetailsD36, _meterReadingDetailsD37, _meterReadingDetailsD38, _meterReadingDetailsD39, _meterReadingDetailsD40, _meterReadingDetailsD41, _meterReadingDetailsD42, _meterReadingDetailsD43, _meterReadingDetailsD44, _meterReadingDetailsD45, _meterReadingDetailsD46, _meterReadingDetailsD47, _meterReadingDetailsD48, _meterReadingDetailsD49, _meterReadingDetailsD50, _meterReadingDetailsD51, _meterReadingDetailsD52, _meterReadingDetailsD53, _meterReadingDetailsD54, _meterReadingDetailsD55, _meterReadingDetailsD56, _meterReadingDetailsD57, _meterReadingDetailsD58, _meterReadingDetailsD59, _meterReadingDetailsD60, _meterReadingDetailsD61, _meterReadingDetailsD62, _meterReadingDetailsD63, _meterReadingDetailsD64, _meterReadingDetailsD65, _meterReadingDetailsD66, _meterReadingDetailsD67, _meterReadingDetailsD68, _meterReadingDetailsD69, _meterReadingDetailsD70, _meterReadingDetailsD71, _meterReadingDetailsD72, _meterReadingDetailsD73, _meterReadingDetailsD74, _meterReadingDetailsD75, _meterReadingDetailsD76, _meterReadingDetailsD77, _meterReadingDetailsD78, _meterReadingDetailsD79, _meterReadingDetailsD80, _meterReadingDetailsD81, _meterReadingDetailsD82;
55623
55519
  const {
55624
55520
  t
55625
55521
  } = useTranslation();
@@ -55756,17 +55652,30 @@ const ConsumptionDetails$1 = _ref => {
55756
55652
  };
55757
55653
  const getBillingPeriodFromMdms = mdmsBillingPeriod === null || mdmsBillingPeriod === void 0 ? void 0 : (_mdmsBillingPeriod$Md = mdmsBillingPeriod.MdmsRes) === null || _mdmsBillingPeriod$Md === void 0 ? void 0 : (_mdmsBillingPeriod$Md2 = _mdmsBillingPeriod$Md["ws-services-masters"]) === null || _mdmsBillingPeriod$Md2 === void 0 ? void 0 : (_mdmsBillingPeriod$Md3 = _mdmsBillingPeriod$Md2.billingPeriod) === null || _mdmsBillingPeriod$Md3 === void 0 ? void 0 : _mdmsBillingPeriod$Md3.filter(e => e.connectionType === "Metered");
55758
55654
  const popUp = () => {
55759
- var _response$meterReadin, _response$meterReadin2;
55655
+ var _response$meterReadin;
55760
55656
  setOpenModal(true);
55761
- setMeterDetails(response === null || response === void 0 ? void 0 : response.meterReadings[0]);
55762
- setSelectMeterStatus({
55763
- code: response === null || response === void 0 ? void 0 : (_response$meterReadin = response.meterReadings[0]) === null || _response$meterReadin === void 0 ? void 0 : _response$meterReadin.meterStatus,
55764
- i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(response === null || response === void 0 ? void 0 : (_response$meterReadin2 = response.meterReadings[0]) === null || _response$meterReadin2 === void 0 ? void 0 : _response$meterReadin2.meterStatus)}`
55765
- });
55766
- setBillingPeriod(`${getDate(meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate)} - ${getDate(convertDateToEpoch(Digit.Utils.date.getDate()))}`);
55657
+ const firstReading = response === null || response === void 0 ? void 0 : (_response$meterReadin = response.meterReadings) === null || _response$meterReadin === void 0 ? void 0 : _response$meterReadin[0];
55658
+ setMeterDetails(firstReading);
55659
+ const initialStatus = firstReading !== null && firstReading !== void 0 && firstReading.meterStatus ? {
55660
+ code: firstReading === null || firstReading === void 0 ? void 0 : firstReading.meterStatus,
55661
+ i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(firstReading === null || firstReading === void 0 ? void 0 : firstReading.meterStatus)}`
55662
+ } : "";
55663
+ setSelectMeterStatus(initialStatus);
55664
+ setBillingPeriod(`${getDate(firstReading === null || firstReading === void 0 ? void 0 : firstReading.currentReadingDate)} - ${getDate(convertDateToEpoch(Digit.Utils.date.getDate()))}`);
55665
+ if (((initialStatus === null || initialStatus === void 0 ? void 0 : initialStatus.code) || "").toLowerCase() === "working") {
55666
+ const okOption = ReadingQualityCodeList === null || ReadingQualityCodeList === void 0 ? void 0 : ReadingQualityCodeList.find(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
55667
+ setSelectReadingQualityCode(okOption || {
55668
+ code: "OK",
55669
+ i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale("OK")}`
55670
+ });
55671
+ } else {
55672
+ setSelectReadingQualityCode("");
55673
+ }
55767
55674
  };
55768
55675
  const closeModal = () => {
55769
55676
  setOpenModal(false);
55677
+ setSelectMeterStatus("");
55678
+ setSelectReadingQualityCode("");
55770
55679
  };
55771
55680
  const closeToast = () => {
55772
55681
  setShowToast(false);
@@ -55777,7 +55686,16 @@ const ConsumptionDetails$1 = _ref => {
55777
55686
  let fromDate = parseInt(meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate);
55778
55687
  let selectedDate = parseInt(convertDateToEpoch(data === null || data === void 0 ? void 0 : data.currentReadingDate));
55779
55688
  let toDate = parseInt(convertDateToEpoch(Digit.Utils.date.getDate()));
55780
- if ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) === "Working") {
55689
+ if (!(selectReadingQualityCode !== null && selectReadingQualityCode !== void 0 && selectReadingQualityCode.code)) {
55690
+ setShowToast({
55691
+ key: "error",
55692
+ message: t("ERR_READING_QUALITY_CODE_REQUIRED")
55693
+ });
55694
+ setError(t("ERR_READING_QUALITY_CODE_REQUIRED"));
55695
+ setTimeout(closeToast, 5000);
55696
+ return Promise.resolve();
55697
+ }
55698
+ if (isWorkingMeter) {
55781
55699
  var _details$;
55782
55700
  if (!(data !== null && data !== void 0 && data.currentReading) || (data === null || data === void 0 ? void 0 : data.currentReading) == null || (data === null || data === void 0 ? void 0 : data.currentReading) === "") {
55783
55701
  setShowToast({
@@ -55861,22 +55779,52 @@ const ConsumptionDetails$1 = _ref => {
55861
55779
  return Promise.reject(e);
55862
55780
  }
55863
55781
  };
55864
- let optionsList = mdmsMeterStatus === null || mdmsMeterStatus === void 0 ? void 0 : (_mdmsMeterStatus$Mdms = mdmsMeterStatus.MdmsRes) === null || _mdmsMeterStatus$Mdms === void 0 ? void 0 : (_mdmsMeterStatus$Mdms2 = _mdmsMeterStatus$Mdms["ws-services-calculation"]) === null || _mdmsMeterStatus$Mdms2 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms3 = _mdmsMeterStatus$Mdms2.MeterStatus) === null || _mdmsMeterStatus$Mdms3 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms4 = _mdmsMeterStatus$Mdms3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _mdmsMeterStatus$Mdms4 === void 0 ? void 0 : _mdmsMeterStatus$Mdms4.map(status => {
55865
- const statusCode = typeof status === "object" ? status.name || status.code : status;
55866
- return {
55867
- code: statusCode,
55868
- i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
55869
- };
55870
- });
55871
- const ReadingQualityCodeList = DJBReadingQualityCode === null || DJBReadingQualityCode === void 0 ? void 0 : (_DJBReadingQualityCod = DJBReadingQualityCode.MdmsRes) === null || _DJBReadingQualityCod === void 0 ? void 0 : (_DJBReadingQualityCod2 = _DJBReadingQualityCod["ws-services-calculation"]) === null || _DJBReadingQualityCod2 === void 0 ? void 0 : (_DJBReadingQualityCod3 = _DJBReadingQualityCod2.DJBReadingQualityCode) === null || _DJBReadingQualityCod3 === void 0 ? void 0 : (_DJBReadingQualityCod4 = _DJBReadingQualityCod3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _DJBReadingQualityCod4 === void 0 ? void 0 : _DJBReadingQualityCod4.map(status => {
55872
- const statusCode = typeof status === "object" ? status.code : status;
55873
- return {
55874
- code: statusCode,
55875
- i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
55876
- };
55877
- });
55782
+ const isWorkingMeter = ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) || "").toLowerCase() === "working";
55783
+ const optionsList = useMemo(() => {
55784
+ var _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _mdmsMeterStatus$Mdms4;
55785
+ return (mdmsMeterStatus === null || mdmsMeterStatus === void 0 ? void 0 : (_mdmsMeterStatus$Mdms = mdmsMeterStatus.MdmsRes) === null || _mdmsMeterStatus$Mdms === void 0 ? void 0 : (_mdmsMeterStatus$Mdms2 = _mdmsMeterStatus$Mdms["ws-services-calculation"]) === null || _mdmsMeterStatus$Mdms2 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms3 = _mdmsMeterStatus$Mdms2.MeterStatus) === null || _mdmsMeterStatus$Mdms3 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms4 = _mdmsMeterStatus$Mdms3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _mdmsMeterStatus$Mdms4 === void 0 ? void 0 : _mdmsMeterStatus$Mdms4.map(status => {
55786
+ const statusCode = typeof status === "object" ? status.name || status.code : status;
55787
+ return {
55788
+ code: statusCode,
55789
+ i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
55790
+ };
55791
+ })) || [];
55792
+ }, [mdmsMeterStatus]);
55793
+ const ReadingQualityCodeList = useMemo(() => {
55794
+ var _DJBReadingQualityCod, _DJBReadingQualityCod2, _DJBReadingQualityCod3, _DJBReadingQualityCod4;
55795
+ return (DJBReadingQualityCode === null || DJBReadingQualityCode === void 0 ? void 0 : (_DJBReadingQualityCod = DJBReadingQualityCode.MdmsRes) === null || _DJBReadingQualityCod === void 0 ? void 0 : (_DJBReadingQualityCod2 = _DJBReadingQualityCod["ws-services-calculation"]) === null || _DJBReadingQualityCod2 === void 0 ? void 0 : (_DJBReadingQualityCod3 = _DJBReadingQualityCod2.DJBReadingQualityCode) === null || _DJBReadingQualityCod3 === void 0 ? void 0 : (_DJBReadingQualityCod4 = _DJBReadingQualityCod3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _DJBReadingQualityCod4 === void 0 ? void 0 : _DJBReadingQualityCod4.map(status => {
55796
+ const statusCode = typeof status === "object" ? status.code || status.name : status;
55797
+ return {
55798
+ code: statusCode,
55799
+ i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
55800
+ };
55801
+ })) || [];
55802
+ }, [DJBReadingQualityCode]);
55803
+ const filteredReadingQualityCodeList = useMemo(() => {
55804
+ if (!ReadingQualityCodeList || ReadingQualityCodeList.length === 0) return [];
55805
+ if (isWorkingMeter) {
55806
+ return ReadingQualityCodeList.filter(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
55807
+ }
55808
+ if (selectMeterStatus !== null && selectMeterStatus !== void 0 && selectMeterStatus.code) {
55809
+ return ReadingQualityCodeList.filter(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() !== "ok");
55810
+ }
55811
+ return ReadingQualityCodeList;
55812
+ }, [ReadingQualityCodeList, isWorkingMeter, selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code]);
55813
+ useEffect(() => {
55814
+ if (!openModal) return;
55815
+ if (isWorkingMeter) {
55816
+ const okOption = ReadingQualityCodeList === null || ReadingQualityCodeList === void 0 ? void 0 : ReadingQualityCodeList.find(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
55817
+ if (okOption && ((selectReadingQualityCode === null || selectReadingQualityCode === void 0 ? void 0 : selectReadingQualityCode.code) || "").toLowerCase() !== "ok") {
55818
+ setSelectReadingQualityCode(okOption);
55819
+ }
55820
+ } else if (selectMeterStatus !== null && selectMeterStatus !== void 0 && selectMeterStatus.code) {
55821
+ if (((selectReadingQualityCode === null || selectReadingQualityCode === void 0 ? void 0 : selectReadingQualityCode.code) || "").toLowerCase() === "ok") {
55822
+ setSelectReadingQualityCode("");
55823
+ }
55824
+ }
55825
+ }, [openModal, isWorkingMeter, selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code, ReadingQualityCodeList]);
55878
55826
  const onFormValueChange = (setValue, formData, formState) => {
55879
- if ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) === "Working") {
55827
+ if (isWorkingMeter) {
55880
55828
  var _details$2;
55881
55829
  setCurrentReading(formData === null || formData === void 0 ? void 0 : formData.currentReading);
55882
55830
  setBillingPeriod(`${getDate(meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate)} - ${getDate(formData === null || formData === void 0 ? void 0 : formData.currentReadingDate)}`);
@@ -55924,6 +55872,15 @@ const ConsumptionDetails$1 = _ref => {
55924
55872
  select: e => {
55925
55873
  setSelectMeterStatus(e);
55926
55874
  setConsumption("");
55875
+ if (((e === null || e === void 0 ? void 0 : e.code) || "").toLowerCase() === "working") {
55876
+ const okOption = ReadingQualityCodeList === null || ReadingQualityCodeList === void 0 ? void 0 : ReadingQualityCodeList.find(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
55877
+ setSelectReadingQualityCode(okOption || {
55878
+ code: "OK",
55879
+ i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale("OK")}`
55880
+ });
55881
+ } else {
55882
+ setSelectReadingQualityCode("");
55883
+ }
55927
55884
  },
55928
55885
  selected: selectMeterStatus,
55929
55886
  t: t
@@ -55944,24 +55901,24 @@ const ConsumptionDetails$1 = _ref => {
55944
55901
  }))
55945
55902
  }, {
55946
55903
  label: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_LABEL"),
55947
- isMandatory: selectMeterStatus.code === "Working" ? true : false,
55948
- disable: selectMeterStatus.code === "Working" ? false : true,
55904
+ isMandatory: isWorkingMeter ? true : false,
55905
+ disable: isWorkingMeter ? false : true,
55949
55906
  type: "number",
55950
55907
  populators: {
55951
55908
  name: "currentReading",
55952
- ...(tempObj = selectMeterStatus.code === "Working" ? {} : {
55909
+ ...(tempObj = isWorkingMeter ? {} : {
55953
55910
  value: ""
55954
55911
  })
55955
55912
  }
55956
55913
  }, {
55957
55914
  label: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_DATE_LABEL"),
55958
- isMandatory: selectMeterStatus.code === "Working" ? true : false,
55959
- disable: selectMeterStatus.code === "Working" ? false : true,
55915
+ isMandatory: isWorkingMeter ? true : false,
55916
+ disable: isWorkingMeter ? false : true,
55960
55917
  type: "custom",
55961
55918
  populators: {
55962
55919
  name: "currentReadingDate",
55963
55920
  validation: {
55964
- required: selectMeterStatus.code === "Working" ? true : false
55921
+ required: isWorkingMeter ? true : false
55965
55922
  },
55966
55923
  customProps: {},
55967
55924
  defaultValue: Digit.Utils.date.getDate(),
@@ -55969,7 +55926,7 @@ const ConsumptionDetails$1 = _ref => {
55969
55926
  onChange: props.onChange,
55970
55927
  date: props.value
55971
55928
  }, customProps, {
55972
- disabled: selectMeterStatus.code === "Working" ? false : true
55929
+ disabled: isWorkingMeter ? false : true
55973
55930
  }))
55974
55931
  }
55975
55932
  }, {
@@ -55977,7 +55934,7 @@ const ConsumptionDetails$1 = _ref => {
55977
55934
  isMandatory: true,
55978
55935
  type: "dropdown",
55979
55936
  populators: /*#__PURE__*/React.createElement(Dropdown, {
55980
- option: ReadingQualityCodeList,
55937
+ option: filteredReadingQualityCodeList,
55981
55938
  autoComplete: "off",
55982
55939
  optionKey: "i18nKey",
55983
55940
  id: "readingQualityCode",
@@ -55991,9 +55948,9 @@ const ConsumptionDetails$1 = _ref => {
55991
55948
  label: t("WS_SERV_DETAIL_CONSUMP"),
55992
55949
  isMandatory: false,
55993
55950
  type: "number",
55994
- disable: selectMeterStatus.code === "Working" ? true : false,
55951
+ disable: isWorkingMeter ? true : false,
55995
55952
  populators: {
55996
- ...(tempObj1 = selectMeterStatus.code === "Working" ? {
55953
+ ...(tempObj1 = isWorkingMeter ? {
55997
55954
  name: "consumption",
55998
55955
  value: selectedConsumtion
55999
55956
  } : {