@mseva/digit-ui-module-obps 1.0.48 → 1.0.49

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.
@@ -13247,7 +13247,8 @@ const Timeline = ({
13247
13247
  const BasicDetails = ({
13248
13248
  formData,
13249
13249
  onSelect,
13250
- config
13250
+ config,
13251
+ currentStepData
13251
13252
  }) => {
13252
13253
  var _formData$data, _formData$data2, _formData$data3, _mdmsData$BPA, _basicData$planDetail, _basicData$planDetail2, _basicData$planDetail3, _mdmsData$BPA2, _basicData$planDetail4, _basicData$planDetail5, _basicData$planDetail6, _basicData$planDetail12, _basicData$planDetail13, _basicData$planDetail14, _basicData$planDetail15, _scrutinyNumber$edcrN;
13253
13254
  const [showToast, setShowToast] = useState(null);
@@ -13285,6 +13286,16 @@ const BasicDetails = ({
13285
13286
  }
13286
13287
  }
13287
13288
  };
13289
+ useEffect(() => {
13290
+ var _currentStepData$crea;
13291
+ if (!scrutinyNumber && currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea = currentStepData.createdResponse) !== null && _currentStepData$crea !== void 0 && _currentStepData$crea.edcrNumber) {
13292
+ var _currentStepData$crea2;
13293
+ setScrutinyNumber({
13294
+ edcrNumber: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea2 = currentStepData.createdResponse) === null || _currentStepData$crea2 === void 0 ? void 0 : _currentStepData$crea2.edcrNumber
13295
+ });
13296
+ }
13297
+ }, [currentStepData]);
13298
+ console.log("basicData", currentStepData, formData, scrutinyNumber, basicData);
13288
13299
  const closeToast = () => {
13289
13300
  setShowToast(null);
13290
13301
  };
@@ -13372,7 +13383,7 @@ const BasicDetails = ({
13372
13383
  style: {
13373
13384
  marginBottom: "10px"
13374
13385
  }
13375
- })), !riskType ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", null, basicData && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`BPA_BASIC_DETAILS_TITLE`)), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
13386
+ })), scrutinyNumber && basicData && (!riskType ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", null, basicData && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`BPA_BASIC_DETAILS_TITLE`)), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
13376
13387
  className: "border-none",
13377
13388
  label: t(`BPA_BASIC_DETAILS_APP_DATE_LABEL`),
13378
13389
  text: basicData !== null && basicData !== void 0 && basicData.applicationDate ? format(new Date(basicData === null || basicData === void 0 ? void 0 : basicData.applicationDate), "dd/MM/yyyy") : basicData === null || basicData === void 0 ? void 0 : basicData.applicationDate
@@ -13396,7 +13407,7 @@ const BasicDetails = ({
13396
13407
  className: "border-none",
13397
13408
  label: t(`BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL`),
13398
13409
  text: basicData === null || basicData === void 0 ? void 0 : (_basicData$planDetail14 = basicData.planDetail) === null || _basicData$planDetail14 === void 0 ? void 0 : (_basicData$planDetail15 = _basicData$planDetail14.planInformation) === null || _basicData$planDetail15 === void 0 ? void 0 : _basicData$planDetail15.applicantName
13399
- })))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
13410
+ }))))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
13400
13411
  label: t(`CS_COMMON_NEXT`),
13401
13412
  onSubmit: handleSubmit,
13402
13413
  disabled: !(scrutinyNumber !== null && scrutinyNumber !== void 0 && (_scrutinyNumber$edcrN = scrutinyNumber.edcrNumber) !== null && _scrutinyNumber$edcrN !== void 0 && _scrutinyNumber$edcrN.length) || isLoading || isMdmsLoading || !riskType
@@ -13651,7 +13662,7 @@ const PlotDetails = ({
13651
13662
  const {
13652
13663
  data: LicenseData,
13653
13664
  isLoading: LicenseDataLoading
13654
- } = Digit.Hooks.obps.useBPAREGSearch(tenantId, queryObject);
13665
+ } = Digit.Hooks.obps.useBPAREGSearch(null, queryObject);
13655
13666
  const [approvedLicense, setApprovedLicense] = useState(null);
13656
13667
  const data = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi = currentStepData.BasicDetails) === null || _currentStepData$Basi === void 0 ? void 0 : _currentStepData$Basi.edcrDetails;
13657
13668
  console.log("sessionStorageData", approvedLicense);
@@ -13993,9 +14004,7 @@ const PlotDetails = ({
13993
14004
  if (apiLoading || LicenseDataLoading) {
13994
14005
  return /*#__PURE__*/React.createElement(Loader, null);
13995
14006
  }
13996
- return /*#__PURE__*/React.createElement("div", null, isMobile && /*#__PURE__*/React.createElement(Timeline, {
13997
- flow: checkingFlow === "OCBPA" ? "OCBPA" : ""
13998
- }), /*#__PURE__*/React.createElement("div", {
14007
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
13999
14008
  style: {
14000
14009
  paddingBottom: isMobile ? "0px" : "8px"
14001
14010
  }
@@ -14356,10 +14365,7 @@ const ScrutinyDetails = ({
14356
14365
  }
14357
14366
  return /*#__PURE__*/React.createElement(React.Fragment, {
14358
14367
  style: pageStyle
14359
- }, isMobile && /*#__PURE__*/React.createElement(Timeline, {
14360
- currentStep: checkingFlow === "OCBPA" ? 2 : 1,
14361
- flow: checkingFlow === "OCBPA" ? "OCBPA" : ""
14362
- }), /*#__PURE__*/React.createElement("div", {
14368
+ }, /*#__PURE__*/React.createElement("div", {
14363
14369
  style: {
14364
14370
  paddingBottom: isMobile ? "0px" : "8px"
14365
14371
  }
@@ -15307,9 +15313,7 @@ const BPANewBuildingdetails = ({
15307
15313
  marginBottom: "1rem"
15308
15314
  };
15309
15315
  if (apiLoading) return /*#__PURE__*/React.createElement(Loader, null);
15310
- return /*#__PURE__*/React.createElement("div", null, !Webview && /*#__PURE__*/React.createElement(Timeline, {
15311
- currentStep: 2
15312
- }), /*#__PURE__*/React.createElement(FormStep, {
15316
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(FormStep, {
15313
15317
  config: {
15314
15318
  ...config,
15315
15319
  texts: {
@@ -16082,9 +16086,11 @@ const OwnerDetails = ({
16082
16086
  setShowToast(null);
16083
16087
  };
16084
16088
  const getOwnerDetails = async (indexValue, eData) => {
16085
- var _ownersCopy$indexValu, _ownersCopy$indexValu2;
16089
+ var _ownersCopy$indexValu, _ownersCopy$indexValu2, _ownersCopy$indexValu3;
16086
16090
  const ownersCopy = cloneDeep_1(fields);
16087
16091
  const ownerNo = (ownersCopy === null || ownersCopy === void 0 ? void 0 : (_ownersCopy$indexValu = ownersCopy[indexValue]) === null || _ownersCopy$indexValu === void 0 ? void 0 : _ownersCopy$indexValu.mobileNumber) || "";
16092
+ const ownerId = (ownersCopy === null || ownersCopy === void 0 ? void 0 : (_ownersCopy$indexValu2 = ownersCopy[indexValue]) === null || _ownersCopy$indexValu2 === void 0 ? void 0 : _ownersCopy$indexValu2.ownerId) || null;
16093
+ console.log("ownerNo", ownerNo, indexValue, ownersCopy, eData);
16088
16094
  setShowToast(null);
16089
16095
  if (!ownerNo.match(getPattern("MobileNo"))) {
16090
16096
  setShowToast({
@@ -16094,7 +16100,7 @@ const OwnerDetails = ({
16094
16100
  });
16095
16101
  return;
16096
16102
  }
16097
- if (ownerNo === (ownersCopy === null || ownersCopy === void 0 ? void 0 : (_ownersCopy$indexValu2 = ownersCopy[indexValue]) === null || _ownersCopy$indexValu2 === void 0 ? void 0 : _ownersCopy$indexValu2.userName) && (ownerRoleCheck === null || ownerRoleCheck === void 0 ? void 0 : ownerRoleCheck.code) !== "BPA_ARCHITECT" && (ownerRoleCheck === null || ownerRoleCheck === void 0 ? void 0 : ownerRoleCheck.code) !== "BPA_SUPERVISOR") {
16103
+ if (ownerNo === (ownersCopy === null || ownersCopy === void 0 ? void 0 : (_ownersCopy$indexValu3 = ownersCopy[indexValue]) === null || _ownersCopy$indexValu3 === void 0 ? void 0 : _ownersCopy$indexValu3.userName) && (ownerRoleCheck === null || ownerRoleCheck === void 0 ? void 0 : ownerRoleCheck.code) !== "BPA_ARCHITECT" && (ownerRoleCheck === null || ownerRoleCheck === void 0 ? void 0 : ownerRoleCheck.code) !== "BPA_SUPERVISOR") {
16098
16104
  setShowToast({
16099
16105
  key: "true",
16100
16106
  error: true,
@@ -16143,7 +16149,14 @@ const OwnerDetails = ({
16143
16149
  values[indexValue] = userData;
16144
16150
  values[indexValue].isPrimaryOwner = ((_fields$indexValue2 = fields[indexValue]) === null || _fields$indexValue2 === void 0 ? void 0 : _fields$indexValue2.isPrimaryOwner) || false;
16145
16151
  }
16146
- const updatedValues = values === null || values === void 0 ? void 0 : values.map(item => {
16152
+ const updatedValues = values === null || values === void 0 ? void 0 : values.map((item, index) => {
16153
+ if (index === indexValue && ownerId) {
16154
+ return {
16155
+ ...item,
16156
+ ownerId,
16157
+ dob: Digit.Utils.date.getDate(item === null || item === void 0 ? void 0 : item.dob)
16158
+ };
16159
+ }
16147
16160
  return {
16148
16161
  ...item,
16149
16162
  dob: Digit.Utils.date.getDate(item === null || item === void 0 ? void 0 : item.dob)
@@ -16341,9 +16354,7 @@ const OwnerDetails = ({
16341
16354
  if (flag == 0) return false;else return true;
16342
16355
  }
16343
16356
  if (apiLoading) return /*#__PURE__*/React.createElement(Loader, null);
16344
- return /*#__PURE__*/React.createElement("div", null, !Webview && /*#__PURE__*/React.createElement(Timeline, {
16345
- currentStep: 3
16346
- }), /*#__PURE__*/React.createElement(FormStep, {
16357
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(FormStep, {
16347
16358
  config: {
16348
16359
  ...config,
16349
16360
  texts: {
@@ -16441,7 +16452,7 @@ const OwnerDetails = ({
16441
16452
  marginTop: "-24px",
16442
16453
  marginRight: Webview ? "-20px" : "-20px"
16443
16454
  },
16444
- onClick: e => getOwnerDetails(index)
16455
+ onClick: e => getOwnerDetails(index, e)
16445
16456
  }, " ", /*#__PURE__*/React.createElement(SearchIcon, null), " "), /*#__PURE__*/React.createElement(ErrorMessage, {
16446
16457
  message: errors[`mobileNumber_${index}`]
16447
16458
  }))), /*#__PURE__*/React.createElement(CardLabel, null, `${t("CORE_COMMON_NAME")} *`), /*#__PURE__*/React.createElement(TextInput, Object.assign({
@@ -16846,13 +16857,12 @@ const DocumentDetails = ({
16846
16857
  currentStepData,
16847
16858
  onGoBack
16848
16859
  }) => {
16849
- var _currentStepData$crea, _formData$uiFlow;
16860
+ var _currentStepData$crea;
16850
16861
  const stateId = Digit.ULBService.getStateId();
16851
16862
  const [documents, setDocuments] = useState((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea = currentStepData.createdResponse) === null || _currentStepData$crea === void 0 ? void 0 : _currentStepData$crea.documents) ?? []);
16852
16863
  const [error, setError] = useState(null);
16853
16864
  const [enableSubmit, setEnableSubmit] = useState(true);
16854
16865
  const [checkRequiredFields, setCheckRequiredFields] = useState(false);
16855
- const checkingFlow = formData === null || formData === void 0 ? void 0 : (_formData$uiFlow = formData.uiFlow) === null || _formData$uiFlow === void 0 ? void 0 : _formData$uiFlow.flow;
16856
16866
  const [showToast, setShowToast] = useState(null);
16857
16867
  const [isNextButtonDisabled, setIsNextButtonDisabled] = useState(false);
16858
16868
  const isMobile = Digit.Utils.browser.isMobile();
@@ -16943,10 +16953,7 @@ const DocumentDetails = ({
16943
16953
  info: t("CS_FILE_APPLICATION_INFO_LABEL"),
16944
16954
  text: `${t("BPA_APPLICATION_NUMBER_LABEL")} ${formData === null || formData === void 0 ? void 0 : formData.applicationNo} ${t("BPA_DOCS_INFORMATION")}`,
16945
16955
  className: "info-banner-wrap-citizen-override"
16946
- }) : "", isMobile && /*#__PURE__*/React.createElement(Timeline, {
16947
- currentStep: checkingFlow === "OCBPA" ? 3 : 3,
16948
- flow: checkingFlow === "OCBPA" ? "OCBPA" : ""
16949
- }), !isLoading ? /*#__PURE__*/React.createElement(FormStep, {
16956
+ }) : "", !isLoading ? /*#__PURE__*/React.createElement(FormStep, {
16950
16957
  t: t,
16951
16958
  config: {
16952
16959
  ...config,
@@ -21212,7 +21219,7 @@ const CitizenConsent = ({
21212
21219
  setShowTermsPopupOwner,
21213
21220
  otpVerifiedTimestamp
21214
21221
  }) => {
21215
- var _user$info, _user$info2, _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _data$applicationData8, _data$applicationData9, _data$applicationData0, _params$additionalDet3, _params$additionalDet4, _data$applicationData1, _data$applicationData10, _data$applicationData11, _data$applicationData12, _data$applicationData13, _data$applicationData14, _data$applicationData15, _data$applicationData16;
21222
+ var _user$info, _user$info2, _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _data$applicationData8, _data$applicationData9, _data$applicationData0, _params$additionalDet3, _params$additionalDet4, _params$additionalDet5, _data$applicationData1, _data$applicationData10, _data$applicationData11, _data$applicationData12, _data$applicationData13, _data$applicationData14, _data$applicationData15, _data$applicationData16, _data$applicationData17;
21216
21223
  const [isModalOpen, setIsModalOpen] = useState(false);
21217
21224
  const {
21218
21225
  state
@@ -21261,6 +21268,14 @@ const CitizenConsent = ({
21261
21268
  const ulbselection = (params === null || params === void 0 ? void 0 : (_params$additionalDet3 = params.additionalDetails) === null || _params$additionalDet3 === void 0 ? void 0 : _params$additionalDet3.Ulblisttype) === "Municipal Corporation" ? "Commissioner" : "Executive Officer";
21262
21269
  const TimeStamp = otpVerifiedTimestamp || (params === null || params === void 0 ? void 0 : (_params$additionalDet4 = params.additionalDetails) === null || _params$additionalDet4 === void 0 ? void 0 : _params$additionalDet4.TimeStamp) || "";
21263
21270
  const isCitizenDeclared = sessionStorage.getItem("CitizenConsentdocFilestoreid");
21271
+ const DateOnly = TimeStamp ? (() => {
21272
+ const date = new Date(TimeStamp);
21273
+ const day = String(date.getDate()).padStart(2, "0");
21274
+ const month = String(date.getMonth() + 1).padStart(2, "0");
21275
+ const year = date.getFullYear();
21276
+ return `${day}-${month}-${year}`;
21277
+ })() : "";
21278
+ console.log("TimeStamp", otpVerifiedTimestamp, params === null || params === void 0 ? void 0 : (_params$additionalDet5 = params.additionalDetails) === null || _params$additionalDet5 === void 0 ? void 0 : _params$additionalDet5.TimeStamp, TimeStamp);
21264
21279
  const updatedAdditionalDetails = {
21265
21280
  ...(data === null || data === void 0 ? void 0 : (_data$applicationData1 = data.applicationData) === null || _data$applicationData1 === void 0 ? void 0 : _data$applicationData1.additionalDetails),
21266
21281
  TimeStamp: otpVerifiedTimestamp
@@ -21286,15 +21301,15 @@ const CitizenConsent = ({
21286
21301
  <div style="margin-top:-52px;">
21287
21302
  <p style="margin-bottom:-32px;"><strong>To:</strong></p>
21288
21303
  <p style="margin-bottom:-32px;"><strong>${ulbselection || "<ULB Type>"}</strong></p>
21289
- <p style="margin-bottom:-32px;"><b>${(data === null || data === void 0 ? void 0 : (_data$applicationData10 = data.applicationData) === null || _data$applicationData10 === void 0 ? void 0 : _data$applicationData10.tenantId) || "<ULB Name>"}</b></p>
21304
+ <p style="margin-bottom:-32px;"><b>${(data === null || data === void 0 ? void 0 : (_data$applicationData10 = data.applicationData) === null || _data$applicationData10 === void 0 ? void 0 : (_data$applicationData11 = _data$applicationData10.additionalDetails) === null || _data$applicationData11 === void 0 ? void 0 : _data$applicationData11.UlbName) || "<ULB Name>"}</b></p>
21290
21305
  </div>
21291
21306
 
21292
21307
  <p style="margin-top:-50px;"><strong>Dear Sir or Madam,</strong></p>
21293
21308
 
21294
21309
  <p style="margin-top:-52px;margin-bottom:-32px; text-align:justify;">
21295
- I/We, Shri/Smt/Kum <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData11 = data.applicationData) === null || _data$applicationData11 === void 0 ? void 0 : (_data$applicationData12 = _data$applicationData11.landInfo) === null || _data$applicationData12 === void 0 ? void 0 : _data$applicationData12.owners.map(item => item === null || item === void 0 ? void 0 : item.name).join(", ")) || "<Owner Name>"}</b>,
21296
- undersigned owner(s) of land bearing Kh. No. <b>${khasranumber}</b> of ULB <b>${data === null || data === void 0 ? void 0 : (_data$applicationData13 = data.applicationData) === null || _data$applicationData13 === void 0 ? void 0 : _data$applicationData13.tenantId}</b>, Area <b>${area}</b> (Sq.mts.),
21297
- Ward Number <b>${ward}</b>, City <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData14 = data.applicationData) === null || _data$applicationData14 === void 0 ? void 0 : (_data$applicationData15 = _data$applicationData14.landInfo) === null || _data$applicationData15 === void 0 ? void 0 : (_data$applicationData16 = _data$applicationData15.address) === null || _data$applicationData16 === void 0 ? void 0 : _data$applicationData16.city) || "<City>"}</b>.
21310
+ I/We, Shri/Smt/Kum <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData12 = data.applicationData) === null || _data$applicationData12 === void 0 ? void 0 : (_data$applicationData13 = _data$applicationData12.landInfo) === null || _data$applicationData13 === void 0 ? void 0 : _data$applicationData13.owners.map(item => item === null || item === void 0 ? void 0 : item.name).join(", ")) || "<Owner Name>"}</b>,
21311
+ undersigned owner(s) of land bearing Kh. No. <b>${khasranumber}</b> of ULB <b>${data === null || data === void 0 ? void 0 : (_data$applicationData14 = data.applicationData) === null || _data$applicationData14 === void 0 ? void 0 : (_data$applicationData15 = _data$applicationData14.additionalDetails) === null || _data$applicationData15 === void 0 ? void 0 : _data$applicationData15.UlbName}</b>, Area <b>${area}</b> (Sq.mts.),
21312
+ Ward Number <b>${ward}</b>, City <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData16 = data.applicationData) === null || _data$applicationData16 === void 0 ? void 0 : (_data$applicationData17 = _data$applicationData16.additionalDetails) === null || _data$applicationData17 === void 0 ? void 0 : _data$applicationData17.District) || "<City>"}</b>.
21298
21313
  </p>
21299
21314
 
21300
21315
  <p style="margin-top:-52px;margin-bottom:-32px; text-align:justify;">
@@ -21324,7 +21339,7 @@ const CitizenConsent = ({
21324
21339
  <tr>
21325
21340
  <td style="width:48%; vertical-align:top; padding:6px; border:1px dotted #000;">
21326
21341
  <div style="font-weight:700; margin-bottom:4px;">Date:</div>
21327
- <div style="min-height:60px;">${TimeStamp ? TimeStamp.split && TimeStamp.split(" ")[0] : "<Date of Sign>"}</div>
21342
+ <div style="min-height:60px;">${DateOnly || "<Date of Sign>"}</div>
21328
21343
  </td>
21329
21344
 
21330
21345
  <td style="width:52%; vertical-align:top; border:1px dotted #000;">
@@ -21553,7 +21568,7 @@ const FeeEstimation = ({
21553
21568
  ...BPA,
21554
21569
  additionalDetails: {
21555
21570
  ...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea8 = currentStepData.createdResponse) === null || _currentStepData$crea8 === void 0 ? void 0 : _currentStepData$crea8.additionalDetails),
21556
- adjustedAmounts: [...(sanctionFeeData.length > 0 ? sanctionFeeData : currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea9 = currentStepData.createdResponse) === null || _currentStepData$crea9 === void 0 ? void 0 : (_currentStepData$crea0 = _currentStepData$crea9.additionalDetails) === null || _currentStepData$crea0 === void 0 ? void 0 : _currentStepData$crea0.adjustedAmounts)],
21571
+ adjustedAmounts: [...(Array.isArray(sanctionFeeData) && sanctionFeeData.length > 0 ? sanctionFeeData : Array.isArray(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea9 = currentStepData.createdResponse) === null || _currentStepData$crea9 === void 0 ? void 0 : (_currentStepData$crea0 = _currentStepData$crea9.additionalDetails) === null || _currentStepData$crea0 === void 0 ? void 0 : _currentStepData$crea0.adjustedAmounts) ? currentStepData.createdResponse.additionalDetails.adjustedAmounts : [])],
21557
21572
  selfCertificationCharges: {
21558
21573
  BPA_MALBA_CHARGES: (malbafees === null || malbafees === void 0 ? void 0 : malbafees.length) > 0 ? malbafees : "0",
21559
21574
  BPA_LABOUR_CESS: (labourCess === null || labourCess === void 0 ? void 0 : labourCess.length) > 0 ? labourCess : "0",
@@ -21777,30 +21792,98 @@ const FeeEstimation = ({
21777
21792
  marginTop: "24px"
21778
21793
  }
21779
21794
  }, t("BPA_SANCTION_FEE")), /*#__PURE__*/React.createElement("style", null, `
21780
- .sanction-fee-table {
21781
- width: 100%;
21782
- border-collapse: collapse;
21783
- }
21795
+ .sanction-fee-wrapper {
21796
+ width: 100%;
21797
+ overflow-x: auto;
21798
+ -webkit-overflow-scrolling: touch;
21799
+ }
21784
21800
 
21785
- .sanction-fee-table th,
21786
- .sanction-fee-table td {
21787
- padding: 8px 12px;
21788
- border: 1px solid #ddd;
21789
- color: rgba(13, 67, 167, 1); /* Blue text */
21790
- }
21801
+ .sanction-fee-table {
21802
+ width: 100%;
21803
+ border-collapse: collapse;
21804
+ }
21791
21805
 
21792
- .sanction-fee-table th {
21793
- background-color: #ffffff; /* light header background */
21794
- }
21806
+ .sanction-fee-table th,
21807
+ .sanction-fee-table td {
21808
+ padding: 8px 12px;
21809
+ border: 1px solid #ddd;
21810
+ color: rgba(13, 67, 167, 1);
21811
+ text-align: left;
21812
+ white-space: nowrap;
21813
+ }
21795
21814
 
21796
- .sanction-fee-table tr:nth-child(odd) {
21797
- background-color: rgb(244, 244, 244);
21798
- }
21815
+ .sanction-fee-table th {
21816
+ background-color: #ffffff;
21817
+ font-weight: 600;
21818
+ }
21799
21819
 
21800
- .sanction-fee-table tr:nth-child(even) {
21801
- background-color: #ffffff; /* white background */
21802
- }
21803
- `), /*#__PURE__*/React.createElement("table", {
21820
+ .sanction-fee-table tr:nth-child(odd) {
21821
+ background-color: rgb(244, 244, 244);
21822
+ }
21823
+
21824
+ .sanction-fee-table tr:nth-child(even) {
21825
+ background-color: #ffffff;
21826
+ }
21827
+
21828
+ /* ✅ Mobile View (No overflow) */
21829
+ @media (max-width: 768px) {
21830
+ .sanction-fee-wrapper {
21831
+ overflow-x: hidden;
21832
+ padding: 0 8px;
21833
+ }
21834
+
21835
+ .sanction-fee-table,
21836
+ .sanction-fee-table thead,
21837
+ .sanction-fee-table tbody,
21838
+ .sanction-fee-table th,
21839
+ .sanction-fee-table td,
21840
+ .sanction-fee-table tr {
21841
+ display: block;
21842
+ width: 100%;
21843
+ }
21844
+
21845
+ .sanction-fee-table thead {
21846
+ display: none;
21847
+ }
21848
+
21849
+ .sanction-fee-table tr {
21850
+ margin-bottom: 12px;
21851
+ border: 1px solid #ddd;
21852
+ border-radius: 8px;
21853
+ background: #fff;
21854
+ padding: 8px 12px;
21855
+ box-sizing: border-box;
21856
+ width: 100%;
21857
+ }
21858
+
21859
+ .sanction-fee-table td {
21860
+ border: none;
21861
+ display: flex;
21862
+ justify-content: space-between;
21863
+ align-items: center;
21864
+ text-align: left;
21865
+ white-space: normal;
21866
+ width: 100%;
21867
+ padding: 6px 0;
21868
+ box-sizing: border-box;
21869
+ }
21870
+
21871
+ .sanction-fee-table td::before {
21872
+ content: attr(data-label);
21873
+ font-weight: 600;
21874
+ color: #3f4351;
21875
+ flex-basis: 50%;
21876
+ text-align: left;
21877
+ padding-right: 8px;
21878
+ }
21879
+
21880
+ .sanction-fee-table td > * {
21881
+ flex-basis: 50%;
21882
+ word-break: break-word;
21883
+ text-align: right;
21884
+ }
21885
+ }
21886
+ `), /*#__PURE__*/React.createElement("table", {
21804
21887
  className: "sanction-fee-table",
21805
21888
  style: {
21806
21889
  borderCollapse: "collapse",
@@ -21867,7 +21950,12 @@ const FeeEstimation = ({
21867
21950
  },
21868
21951
  label: t("BPA_VIEW_DOCUMENT")
21869
21952
  }) : t("CS_NA")))));
21870
- })))), _disable ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SubmitBar, {
21953
+ })))), _disable ? null : /*#__PURE__*/React.createElement("div", {
21954
+ style: {
21955
+ paddingTop: "16px",
21956
+ textAlign: isMobile ? "center" : "right"
21957
+ }
21958
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
21871
21959
  onSubmit: () => {
21872
21960
  setRecalculate(true);
21873
21961
  },
@@ -22149,7 +22237,7 @@ const BpaApplicationDetail = () => {
22149
22237
  enabled: !!data
22150
22238
  }
22151
22239
  });
22152
- console.log("datata", adjustedAmounts);
22240
+ console.log("datata=====", workflowDetails);
22153
22241
  const [agree, setAgree] = useState(false);
22154
22242
  const setdeclarationhandler = () => {
22155
22243
  setAgree(!agree);
@@ -23355,7 +23443,7 @@ const BpaApplicationDetail = () => {
23355
23443
  width: "100%"
23356
23444
  }
23357
23445
  }, displayMenu && (_workflowDetails23 = workflowDetails) !== null && _workflowDetails23 !== void 0 && (_workflowDetails23$da = _workflowDetails23.data) !== null && _workflowDetails23$da !== void 0 && _workflowDetails23$da.nextActions ? /*#__PURE__*/React.createElement(Menu, {
23358
- localeKeyPrefix: "WF_BPA",
23446
+ localeKeyPrefix: "WF_BPA_ACTION",
23359
23447
  options: (_workflowDetails24 = workflowDetails) === null || _workflowDetails24 === void 0 ? void 0 : (_workflowDetails24$da = _workflowDetails24.data) === null || _workflowDetails24$da === void 0 ? void 0 : _workflowDetails24$da.nextActions.map(action => action.action),
23360
23448
  t: t,
23361
23449
  onSelect: onActionSelect
@@ -35279,8 +35367,6 @@ const BpaApplicationDetail$1 = () => {
35279
35367
  closeModal();
35280
35368
  }
35281
35369
  };
35282
- let isSingleButton = false;
35283
- let isMenuBotton = false;
35284
35370
  let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data34 = workflowDetails.data) === null || _workflowDetails$data34 === void 0 ? void 0 : (_workflowDetails$data35 = _workflowDetails$data34.actionState) === null || _workflowDetails$data35 === void 0 ? void 0 : (_workflowDetails$data36 = _workflowDetails$data35.nextActions) === null || _workflowDetails$data36 === void 0 ? void 0 : _workflowDetails$data36.filter(e => {
35285
35371
  return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
35286
35372
  var _e$roles;
@@ -35292,13 +35378,8 @@ const BpaApplicationDetail$1 = () => {
35292
35378
  return (_e$roles2 = e.roles) === null || _e$roles2 === void 0 ? void 0 : _e$roles2.includes(role);
35293
35379
  })) || !e.roles;
35294
35380
  }));
35295
- if ((window.location.href.includes("/obps") || window.location.href.includes("/noc")) && (actions === null || actions === void 0 ? void 0 : actions.length) == 1 || actions !== null && actions !== void 0 && (_actions$ = actions[0]) !== null && _actions$ !== void 0 && (_actions$$redirection = _actions$.redirectionUrl) !== null && _actions$$redirection !== void 0 && _actions$$redirection.pathname.includes("/pt/property-details/") && (actions === null || actions === void 0 ? void 0 : actions.length) == 1) {
35296
- isMenuBotton = false;
35297
- isSingleButton = true;
35298
- } else if ((actions === null || actions === void 0 ? void 0 : actions.length) > 0) {
35299
- isMenuBotton = true;
35300
- isSingleButton = false;
35301
- }
35381
+ if ((window.location.href.includes("/obps") || window.location.href.includes("/noc")) && (actions === null || actions === void 0 ? void 0 : actions.length) == 1 || actions !== null && actions !== void 0 && (_actions$ = actions[0]) !== null && _actions$ !== void 0 && (_actions$$redirection = _actions$.redirectionUrl) !== null && _actions$$redirection !== void 0 && _actions$$redirection.pathname.includes("/pt/property-details/") && (actions === null || actions === void 0 ? void 0 : actions.length) == 1) ;
35382
+ console.log("applicationDetailsData", actions, workflowDetails);
35302
35383
  if (isLoading || bpaDocsLoading || isEnableLoader) return /*#__PURE__*/React.createElement(Loader, null);
35303
35384
  const timelineStatusPrefix = workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data39 = workflowDetails.data) === null || _workflowDetails$data39 === void 0 ? void 0 : _workflowDetails$data39.applicationBusinessService;
35304
35385
  const statusAttribute = "status";
@@ -35322,16 +35403,7 @@ const BpaApplicationDetail$1 = () => {
35322
35403
  alignItems: "center",
35323
35404
  flexWrap: "nowrap"
35324
35405
  }
35325
- }, /*#__PURE__*/React.createElement("div", {
35326
- style: {}
35327
- }, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
35328
- className: "multilinkWrapper",
35329
- onHeadClick: () => setShowOptions(!showOptions),
35330
- displayOptions: showOptions,
35331
- options: dowloadOptions,
35332
- downloadBtnClassName: "employee-download-btn-className",
35333
- optionsClassName: "employee-options-btn-className"
35334
- })), /*#__PURE__*/React.createElement(LinkButton, {
35406
+ }, /*#__PURE__*/React.createElement(LinkButton, {
35335
35407
  label: t("VIEW_TIMELINE"),
35336
35408
  style: {
35337
35409
  color: "#A52A2A"
@@ -35631,7 +35703,7 @@ const BpaApplicationDetail$1 = () => {
35631
35703
  workflowDetails: workflowDetails,
35632
35704
  moduleCode: "BPA",
35633
35705
  blockReason: blockReason === null || blockReason === void 0 ? void 0 : (_blockReason$BPA = blockReason.BPA) === null || _blockReason$BPA === void 0 ? void 0 : _blockReason$BPA.BlockReason
35634
- }) : null, !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && isMenuBotton && !isSingleButton && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data63 = workflowDetails.data) !== null && _workflowDetails$data63 !== void 0 && (_workflowDetails$data64 = _workflowDetails$data63.actionState) !== null && _workflowDetails$data64 !== void 0 && _workflowDetails$data64.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data65 = workflowDetails.data) !== null && _workflowDetails$data65 !== void 0 && _workflowDetails$data65.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
35706
+ }) : null, !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data63 = workflowDetails.data) !== null && _workflowDetails$data63 !== void 0 && (_workflowDetails$data64 = _workflowDetails$data63.actionState) !== null && _workflowDetails$data64 !== void 0 && _workflowDetails$data64.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data65 = workflowDetails.data) !== null && _workflowDetails$data65 !== void 0 && _workflowDetails$data65.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
35635
35707
  localeKeyPrefix: `WF_EMPLOYEE_${(_ref = workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data66 = workflowDetails.data) !== null && _workflowDetails$data66 !== void 0 && _workflowDetails$data66.applicationBusinessService ? workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data67 = workflowDetails.data) === null || _workflowDetails$data67 === void 0 ? void 0 : _workflowDetails$data67.applicationBusinessService : data === null || data === void 0 ? void 0 : (_data$applicationData79 = data.applicationData) === null || _data$applicationData79 === void 0 ? void 0 : _data$applicationData79.businessService) === null || _ref === void 0 ? void 0 : _ref.toUpperCase()}`,
35636
35708
  options: actions,
35637
35709
  optionKey: "action",
@@ -47305,6 +47377,7 @@ const NewSelfCertificationStepForm = () => {
47305
47377
  console.log("FORMSTATE-Inital-OBPS", formState);
47306
47378
  const step = formState.step;
47307
47379
  const tenantId = Digit.ULBService.getCurrentTenantId();
47380
+ const isMobile = window.Digit.Utils.browser.isMobile();
47308
47381
  const setStep = updatedStepNumber => {
47309
47382
  dispatch(SET_OBPS_STEP(updatedStepNumber));
47310
47383
  };
@@ -47316,7 +47389,7 @@ const NewSelfCertificationStepForm = () => {
47316
47389
  return () => unlisten();
47317
47390
  }, [history, dispatch]);
47318
47391
  return /*#__PURE__*/React.createElement("div", {
47319
- className: "pageCard"
47392
+ className: isMobile ? "" : "pageCard"
47320
47393
  }, /*#__PURE__*/React.createElement(CardHeader, {
47321
47394
  styles: {
47322
47395
  fontSize: "28px",
@@ -47354,6 +47427,7 @@ const NewSelfCertificationStepFormOne = ({
47354
47427
  const scrutinyDetails = ((_JSON$parse = JSON.parse(sessionStorage.getItem("Digit.BUILDING_PERMIT"))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.value) || {};
47355
47428
  const [applicationNo, setApplicationNo] = useState((scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$data = scrutinyDetails.data) === null || _scrutinyDetails$data === void 0 ? void 0 : _scrutinyDetails$data.applicationNo) || "");
47356
47429
  const tenantId = localStorage.getItem("CITIZEN.CITY");
47430
+ const [isLoading, setIsLoading] = useState(false);
47357
47431
  useEffect(() => {
47358
47432
  var _scrutinyDetails$data2;
47359
47433
  if (scrutinyDetails !== null && scrutinyDetails !== void 0 && (_scrutinyDetails$data2 = scrutinyDetails.data) !== null && _scrutinyDetails$data2 !== void 0 && _scrutinyDetails$data2.applicationNo) {
@@ -47363,10 +47437,26 @@ const NewSelfCertificationStepFormOne = ({
47363
47437
  }, [scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$data4 = scrutinyDetails.data) === null || _scrutinyDetails$data4 === void 0 ? void 0 : _scrutinyDetails$data4.applicationNo]);
47364
47438
  useEffect(async () => {
47365
47439
  if (applicationNo) {
47366
- const response = await Digit.OBPSService.BPASearch(tenantId, {
47367
- applicationNo
47368
- });
47369
- console.log("responseOfSearch", response);
47440
+ try {
47441
+ var _response$ResponseInf;
47442
+ setIsLoading(true);
47443
+ const response = await Digit.OBPSService.BPASearch(tenantId, {
47444
+ applicationNo
47445
+ });
47446
+ if ((response === null || response === void 0 ? void 0 : (_response$ResponseInf = response.ResponseInfo) === null || _response$ResponseInf === void 0 ? void 0 : _response$ResponseInf.status) === "successful") {
47447
+ var _response$BPA;
47448
+ dispatch(UPDATE_OBPS_FORM("createdResponse", response === null || response === void 0 ? void 0 : (_response$BPA = response.BPA) === null || _response$BPA === void 0 ? void 0 : _response$BPA[0]));
47449
+ setIsLoading(false);
47450
+ } else {
47451
+ setError(t("Some_Unknown_Error"));
47452
+ setShowToast(true);
47453
+ setIsLoading(false);
47454
+ }
47455
+ } catch (e) {
47456
+ setError(t(e.message));
47457
+ setShowToast(true);
47458
+ setIsLoading(false);
47459
+ }
47370
47460
  }
47371
47461
  }, [applicationNo]);
47372
47462
  const currentStepData = useSelector(function (state) {
@@ -47384,6 +47474,7 @@ const NewSelfCertificationStepFormOne = ({
47384
47474
  setError("");
47385
47475
  };
47386
47476
  console.log("me rendering instead", JSON.parse(sessionStorage.getItem("Digit.BUILDING_PERMIT")));
47477
+ if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
47387
47478
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BasicDetails, {
47388
47479
  onGoBack: onGoBack,
47389
47480
  onSelect: goNext,