@mseva/digit-ui-module-obps 1.0.52 → 1.0.53

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.
@@ -21195,7 +21195,7 @@ const CitizenConsent = ({
21195
21195
  setShowTermsPopupOwner,
21196
21196
  otpVerifiedTimestamp
21197
21197
  }) => {
21198
- 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, _data$applicationData1, _data$applicationData10, _data$applicationData11, _data$applicationData12, _data$applicationData13, _data$applicationData14, _data$applicationData15, _data$applicationData16, _data$applicationData17, _data$applicationData18, _data$applicationData19, _params$additionalDet3, _data$applicationData20, _data$applicationData21, _data$applicationData22, _data$applicationData23, _data$applicationData24, _data$applicationData25, _data$applicationData26, _data$applicationData27, _data$applicationData28, _data$applicationData29, _data$applicationData30;
21198
+ 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, _data$applicationData1, _data$applicationData10, _data$applicationData11, _data$applicationData12, _data$applicationData13, _data$applicationData14, _data$applicationData15, _data$applicationData16, _data$applicationData17, _data$applicationData18, _data$applicationData19, _params$additionalDet3, _data$applicationData20, _data$applicationData21, _data$applicationData22, _data$applicationData23, _data$applicationData24, _data$applicationData25, _data$applicationData26, _data$applicationData27, _data$applicationData28, _data$applicationData29, _data$applicationData30, _data$applicationData31, _data$applicationData32, _data$applicationData33, _data$applicationData34, _data$applicationData35, _data$applicationData36, _data$applicationData37, _data$applicationData38;
21199
21199
  const [isModalOpen, setIsModalOpen] = useState(false);
21200
21200
  const {
21201
21201
  state
@@ -21256,7 +21256,7 @@ const CitizenConsent = ({
21256
21256
  })() : "";
21257
21257
  console.log("TimeStamp", otpVerifiedTimestamp, params === null || params === void 0 ? void 0 : (_params$additionalDet3 = params.additionalDetails) === null || _params$additionalDet3 === void 0 ? void 0 : _params$additionalDet3.TimeStamp, TimeStamp);
21258
21258
  const updatedAdditionalDetails = {
21259
- ...(data === null || data === void 0 ? void 0 : (_data$applicationData20 = data.applicationData) === null || _data$applicationData20 === void 0 ? void 0 : _data$applicationData20.additionalDetails),
21259
+ ...(data === null || data === void 0 ? void 0 : data.applicationData),
21260
21260
  TimeStamp: otpVerifiedTimestamp
21261
21261
  };
21262
21262
  const updatedData = {
@@ -21280,39 +21280,30 @@ const CitizenConsent = ({
21280
21280
  <div style="margin-top:-52px;">
21281
21281
  <p style="margin-bottom:-32px;"><strong>To,</strong></p>
21282
21282
  <p style="margin-bottom:-32px;"><strong>${ulbselection || "<ULB Type>"}</strong></p>
21283
- <p style="margin-bottom:-32px;"><b>${(data === null || data === void 0 ? void 0 : (_data$applicationData21 = data.applicationData) === null || _data$applicationData21 === void 0 ? void 0 : (_data$applicationData22 = _data$applicationData21.additionalDetails) === null || _data$applicationData22 === void 0 ? void 0 : _data$applicationData22.UlbName) || "<ULB Name>"}</b></p>
21283
+ <p style="margin-bottom:-32px;"><b>${(data === null || data === void 0 ? void 0 : (_data$applicationData20 = data.applicationData) === null || _data$applicationData20 === void 0 ? void 0 : (_data$applicationData21 = _data$applicationData20.additionalDetails) === null || _data$applicationData21 === void 0 ? void 0 : _data$applicationData21.UlbName) || "<ULB Name>"}</b></p>
21284
21284
  </div>
21285
21285
 
21286
21286
  <p style="margin-top:-50px;"><strong>Dear Sir/Madam,</strong></p>
21287
21287
 
21288
- <p style="margin-top:-52px;margin-bottom:-32px; text-align:justify;">
21289
- I/We, Shri/Smt/Kum <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData23 = data.applicationData) === null || _data$applicationData23 === void 0 ? void 0 : (_data$applicationData24 = _data$applicationData23.landInfo) === null || _data$applicationData24 === void 0 ? void 0 : _data$applicationData24.owners.map(item => item === null || item === void 0 ? void 0 : item.name).join(", ")) || "<Owner Name>"}</b>,
21290
- undersigned owner(s) of land bearing Kh. No. <b>${khasranumber}</b> of ${data === null || data === void 0 ? void 0 : (_data$applicationData25 = data.applicationData) === null || _data$applicationData25 === void 0 ? void 0 : (_data$applicationData26 = _data$applicationData25.additionalDetails) === null || _data$applicationData26 === void 0 ? void 0 : _data$applicationData26.Ulblisttype} - <b>${data === null || data === void 0 ? void 0 : (_data$applicationData27 = data.applicationData) === null || _data$applicationData27 === void 0 ? void 0 : (_data$applicationData28 = _data$applicationData27.additionalDetails) === null || _data$applicationData28 === void 0 ? void 0 : _data$applicationData28.UlbName}</b>, Area <b>${area}</b> (Sq.mts.),
21291
- Ward Number <b>${ward}</b>, City <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData29 = data.applicationData) === null || _data$applicationData29 === void 0 ? void 0 : (_data$applicationData30 = _data$applicationData29.additionalDetails) === null || _data$applicationData30 === void 0 ? void 0 : _data$applicationData30.District) || "<City>"}</b>.
21288
+ <p style="margin-top:-52px;margin-bottom:-32px;margin-left-5px; text-align:justify;">
21289
+ I/We, Shri/Smt/Kum <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData22 = data.applicationData) === null || _data$applicationData22 === void 0 ? void 0 : (_data$applicationData23 = _data$applicationData22.landInfo) === null || _data$applicationData23 === void 0 ? void 0 : _data$applicationData23.owners.map(item => item === null || item === void 0 ? void 0 : item.name).join(", ")) || "<Owner Name>"}</b>, undersigned owner(s) of land bearing Kh. No. <b>${khasranumber}</b> of ${data === null || data === void 0 ? void 0 : (_data$applicationData24 = data.applicationData) === null || _data$applicationData24 === void 0 ? void 0 : (_data$applicationData25 = _data$applicationData24.additionalDetails) === null || _data$applicationData25 === void 0 ? void 0 : _data$applicationData25.Ulblisttype} - <b>${data === null || data === void 0 ? void 0 : (_data$applicationData26 = data.applicationData) === null || _data$applicationData26 === void 0 ? void 0 : (_data$applicationData27 = _data$applicationData26.additionalDetails) === null || _data$applicationData27 === void 0 ? void 0 : _data$applicationData27.UlbName}</b>, Area <b>${area}</b> (Sq.mts.), address <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData28 = data.applicationData) === null || _data$applicationData28 === void 0 ? void 0 : (_data$applicationData29 = _data$applicationData28.landInfo) === null || _data$applicationData29 === void 0 ? void 0 : (_data$applicationData30 = _data$applicationData29.address) === null || _data$applicationData30 === void 0 ? void 0 : (_data$applicationData31 = _data$applicationData30.locality) === null || _data$applicationData31 === void 0 ? void 0 : (_data$applicationData32 = _data$applicationData31.name) === null || _data$applicationData32 === void 0 ? void 0 : (_data$applicationData33 = _data$applicationData32.split("-")) === null || _data$applicationData33 === void 0 ? void 0 : (_data$applicationData34 = _data$applicationData33[0]) === null || _data$applicationData34 === void 0 ? void 0 : _data$applicationData34.trim()) || "NA"}</b>, Ward Number <b>${ward}</b>, Zone Number <b>${data === null || data === void 0 ? void 0 : (_data$applicationData35 = data.applicationData) === null || _data$applicationData35 === void 0 ? void 0 : (_data$applicationData36 = _data$applicationData35.additionalDetails) === null || _data$applicationData36 === void 0 ? void 0 : _data$applicationData36.zonenumber}</b>, City <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData37 = data.applicationData) === null || _data$applicationData37 === void 0 ? void 0 : (_data$applicationData38 = _data$applicationData37.additionalDetails) === null || _data$applicationData38 === void 0 ? void 0 : _data$applicationData38.District) || "<City>"}</b>.
21292
21290
  </p>
21293
21291
 
21294
21292
  <p style="margin-top:-52px;margin-bottom:-32px; text-align:justify;">
21295
- I/We hereby declare that the Professional's Name <b>${stakeholderName}</b> <b>${architecttype}</b> having Registration No <b>${architectid}</b>
21296
- is appointed by me/us and is authorized to make representation/application with regard to aforesaid construction to any of the authorities.
21293
+ I/We hereby declare that the Professional's Name <b>${stakeholderName}</b> <b>${architecttype}</b> having Registration No <b>${architectid}</b> is appointed by me/us and is authorized to make representation/application with regard to aforesaid construction to any of the authorities.
21297
21294
  </p>
21298
21295
 
21299
21296
  <p style="margin-top:-52px;margin-bottom:-32px; text-align:justify;">
21300
- I/We further declare that I am/We are aware of all the actions taken or representations made by the <b>${architecttype}</b>
21301
- authorized by me/us.
21297
+ I/We further declare that I am/We are aware of all the actions taken or representations made by the <b>${architecttype}</b> authorized by me/us.
21302
21298
  </p>
21303
21299
 
21304
- <ol style="margin-top:-52px;margin-bottom:-32px;padding:0; text-align:justify;">
21305
- <li style="margin-top:-5px;margin-bottom:-5px;">That I am/We are sole owner(s) of the site.</li>
21306
- <li style="margin-top:-5px;margin-bottom:-5px;">That there is no dispute regarding the site and if any dispute arises, then I/We shall be solely responsible for the same.</li>
21307
- <li style="margin-top:-5px;margin-bottom:-5px;">That construction of the building will be undertaken as per the approved building plans and structural design given by the Structural Engineer.</li>
21300
+ <ol style="margin-top:-52px;margin-bottom:-32px; padding:0;">
21301
+ <li style="margin-top:-5px;margin-bottom:-25px;">1. That I am/We are sole owner(s) of the site.</li>
21302
+ <li style="margin-top:-5px;margin-bottom:-25px;">2. That there is no dispute regarding the site and if any dispute arises, then I/We shall be solely responsible for the same.</li>
21303
+ <li style="margin-top:-5px;margin-bottom:-25px;">3. That construction of the building will be undertaken as per the approved building plans and structural design given by the Structural Engineer.</li>
21304
+ <li style="margin-top:-5px;margin-bottom:-25px;">4. That above stated facts are true and the requisite documents have been uploaded with this building plan and nothing has been concealed thereof.</li>
21308
21305
  </ol>
21309
21306
 
21310
- <p style="margin-top:-30px; text-align:justify;">
21311
- That above stated facts are true and the requisite documents have been uploaded with this building plan and nothing has been concealed thereof.
21312
- </p>
21313
-
21314
- <p style="margin:10px 0; font-style:italic;">This Document is Verified By OTP at <b>${TimeStamp || "<date time>"}</b></p>
21315
-
21316
21307
  <!-- Signature / details table -->
21317
21308
  <table style="width:100%; border-collapse:collapse; margin-top:6px; font-size:14px;">
21318
21309
  <tr>
@@ -21778,99 +21769,7 @@ const FeeEstimation = ({
21778
21769
  color: "#3f4351",
21779
21770
  marginTop: "24px"
21780
21771
  }
21781
- }, t("BPA_SANCTION_FEE")), /*#__PURE__*/React.createElement("style", null, `
21782
- .sanction-fee-wrapper {
21783
- width: 100%;
21784
- overflow-x: auto;
21785
- -webkit-overflow-scrolling: touch;
21786
- }
21787
-
21788
- .sanction-fee-table {
21789
- width: 100%;
21790
- border-collapse: collapse;
21791
- }
21792
-
21793
- .sanction-fee-table th,
21794
- .sanction-fee-table td {
21795
- padding: 8px 12px;
21796
- border: 1px solid #ddd;
21797
- color: rgba(13, 67, 167, 1);
21798
- text-align: left;
21799
- white-space: nowrap;
21800
- }
21801
-
21802
- .sanction-fee-table th {
21803
- background-color: #ffffff;
21804
- font-weight: 600;
21805
- }
21806
-
21807
- .sanction-fee-table tr:nth-child(odd) {
21808
- background-color: rgb(244, 244, 244);
21809
- }
21810
-
21811
- .sanction-fee-table tr:nth-child(even) {
21812
- background-color: #ffffff;
21813
- }
21814
-
21815
- /* ✅ Mobile View (No overflow) */
21816
- @media (max-width: 768px) {
21817
- .sanction-fee-wrapper {
21818
- overflow-x: hidden;
21819
- padding: 0 8px;
21820
- }
21821
-
21822
- .sanction-fee-table,
21823
- .sanction-fee-table thead,
21824
- .sanction-fee-table tbody,
21825
- .sanction-fee-table th,
21826
- .sanction-fee-table td,
21827
- .sanction-fee-table tr {
21828
- display: block;
21829
- width: 100%;
21830
- }
21831
-
21832
- .sanction-fee-table thead {
21833
- display: none;
21834
- }
21835
-
21836
- .sanction-fee-table tr {
21837
- margin-bottom: 12px;
21838
- border: 1px solid #ddd;
21839
- border-radius: 8px;
21840
- background: #fff;
21841
- padding: 8px 12px;
21842
- box-sizing: border-box;
21843
- width: 100%;
21844
- }
21845
-
21846
- .sanction-fee-table td {
21847
- border: none;
21848
- display: flex;
21849
- justify-content: space-between;
21850
- align-items: center;
21851
- text-align: left;
21852
- white-space: normal;
21853
- width: 100%;
21854
- padding: 6px 0;
21855
- box-sizing: border-box;
21856
- }
21857
-
21858
- .sanction-fee-table td::before {
21859
- content: attr(data-label);
21860
- font-weight: 600;
21861
- color: #3f4351;
21862
- flex-basis: 50%;
21863
- text-align: left;
21864
- padding-right: 8px;
21865
- }
21866
-
21867
- .sanction-fee-table td > * {
21868
- flex-basis: 50%;
21869
- word-break: break-word;
21870
- text-align: right;
21871
- }
21872
- }
21873
- `), /*#__PURE__*/React.createElement("table", {
21772
+ }, t("BPA_SANCTION_FEE")), /*#__PURE__*/React.createElement("table", {
21874
21773
  className: "sanction-fee-table",
21875
21774
  style: {
21876
21775
  borderCollapse: "collapse",
@@ -22073,6 +21972,7 @@ const BpaApplicationDetail = () => {
22073
21972
  const [ownerFileUrls, setOwnerFileUrls] = useState({});
22074
21973
  const [isOwnerFileLoading, setIsOwnerFileLoading] = useState(false);
22075
21974
  const [apiLoading, setApiLoading] = useState(false);
21975
+ const [userSelected, setUser] = useState(null);
22076
21976
  const user = Digit.UserService.getUser();
22077
21977
  const citizenmobilenumber = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.mobileNumber;
22078
21978
  const history = useHistory();
@@ -22242,6 +22142,27 @@ const BpaApplicationDetail = () => {
22242
22142
  const isCitizenDeclared = sessionStorage.getItem("CitizenConsentdocFilestoreid");
22243
22143
  const [errorFile, setError] = useState(null);
22244
22144
  const [isFileLoading, setIsFileLoading] = useState(false);
22145
+ useEffect(() => {
22146
+ if (!userSelected) {
22147
+ return;
22148
+ }
22149
+ Digit.SessionStorage.set("citizen.userRequestObject", user);
22150
+ Digit.UserService.setUser(userSelected);
22151
+ setCitizenDetail(userSelected === null || userSelected === void 0 ? void 0 : userSelected.info, userSelected === null || userSelected === void 0 ? void 0 : userSelected.access_token, stateCode);
22152
+ }, [userSelected]);
22153
+ const setCitizenDetail = (userObject, token, tenantId) => {
22154
+ var _JSON$parse, _JSON$parse$value;
22155
+ let locale = (_JSON$parse = JSON.parse(sessionStorage.getItem("Digit.initData"))) === null || _JSON$parse === void 0 ? void 0 : (_JSON$parse$value = _JSON$parse.value) === null || _JSON$parse$value === void 0 ? void 0 : _JSON$parse$value.selectedLanguage;
22156
+ localStorage.setItem("Citizen.tenant-id", tenantId);
22157
+ localStorage.setItem("tenant-id", tenantId);
22158
+ localStorage.setItem("citizen.userRequestObject", JSON.stringify(userObject));
22159
+ localStorage.setItem("locale", locale);
22160
+ localStorage.setItem("Citizen.locale", locale);
22161
+ localStorage.setItem("token", token);
22162
+ localStorage.setItem("Citizen.token", token);
22163
+ localStorage.setItem("user-info", JSON.stringify(userObject));
22164
+ localStorage.setItem("Citizen.user-info", JSON.stringify(userObject));
22165
+ };
22245
22166
  const handleTermsLinkClick = e => {
22246
22167
  e.preventDefault();
22247
22168
  e.stopPropagation();
@@ -22297,13 +22218,21 @@ const BpaApplicationDetail = () => {
22297
22218
  };
22298
22219
  const handleVerifyOTPClick = async () => {
22299
22220
  try {
22300
- const response = await Digit.UserService.authenticate(requestData);
22301
- if (response.ResponseInfo.status === "Access Token generated successfully") {
22221
+ const {
22222
+ ResponseInfo,
22223
+ UserRequest: info,
22224
+ ...tokens
22225
+ } = await Digit.UserService.authenticate(requestData);
22226
+ if (ResponseInfo.status === "Access Token generated successfully") {
22302
22227
  setIsOTPVerified(true);
22303
22228
  setOTPSuccess(t("VERIFIED"));
22304
22229
  const currentTimestamp = new Date();
22305
22230
  setOTPVerifiedTimestamp(currentTimestamp);
22306
22231
  sessionStorage.setItem("otpVerifiedTimestampcitizen", currentTimestamp.toISOString());
22232
+ setUser({
22233
+ info,
22234
+ ...tokens
22235
+ });
22307
22236
  } else {
22308
22237
  setIsOTPVerified(false);
22309
22238
  setOTPError(t("WRONG OTP"));
@@ -36093,7 +36022,7 @@ const Architectconcent = ({
36093
36022
  currentStepData,
36094
36023
  formData
36095
36024
  }) => {
36096
- var _user$info, _user$info2, _currentStepData$crea, _currentStepData$crea2, _currentStepData$crea3, _currentStepData$crea4, _currentStepData$crea5, _currentStepData$crea6, _currentStepData$crea7, _currentStepData$crea8, _currentStepData$crea9, _currentStepData$crea0, _currentStepData$crea1, _currentStepData$crea10, _user$info3, _user$info3$roles, _user$info3$roles$fin, _currentStepData$crea11, _currentStepData$crea12, _currentStepData$crea13, _currentStepData$crea14, _currentStepData$crea15, _currentStepData$crea16, _currentStepData$crea17, _currentStepData$crea18, _currentStepData$crea19, _currentStepData$crea20, _currentStepData$crea21, _currentStepData$crea22, _params$additionalDet, _currentStepData$crea25, _currentStepData$crea26, _currentStepData$crea27, _currentStepData$crea28, _currentStepData$Loca, _currentStepData$Loca2, _currentStepData$Loca3, _currentStepData$Loca4, _currentStepData$Loca5, _currentStepData$Loca6, _currentStepData$Loca7, _currentStepData$Loca8, _currentStepData$Loca9, _currentStepData$Plot, _currentStepData$Plot2, _currentStepData$Plot3, _currentStepData$Plot4, _currentStepData$crea29, _currentStepData$crea30, _currentStepData$Plot5, _currentStepData$Plot6, _currentStepData$Plot7, _currentStepData$Plot8, _user$info4;
36025
+ var _user$info, _user$info2, _currentStepData$crea, _currentStepData$crea2, _currentStepData$crea3, _currentStepData$crea4, _currentStepData$crea5, _currentStepData$crea6, _currentStepData$crea7, _currentStepData$crea8, _currentStepData$crea9, _currentStepData$crea0, _currentStepData$crea1, _currentStepData$crea10, _user$info3, _user$info3$roles, _user$info3$roles$fin, _currentStepData$crea11, _currentStepData$crea12, _currentStepData$crea13, _currentStepData$crea14, _currentStepData$crea15, _currentStepData$crea16, _currentStepData$crea17, _currentStepData$crea18, _currentStepData$crea19, _currentStepData$crea20, _currentStepData$crea21, _currentStepData$crea22, _params$additionalDet, _currentStepData$crea25, _currentStepData$crea26, _currentStepData$crea27, _currentStepData$crea28, _currentStepData$Loca, _currentStepData$Loca2, _currentStepData$Loca3, _currentStepData$Loca4, _currentStepData$Loca5, _currentStepData$Loca6, _currentStepData$Loca7, _currentStepData$Loca8, _currentStepData$Loca9, _currentStepData$crea29, _currentStepData$crea30, _currentStepData$crea31, _currentStepData$crea32, _currentStepData$crea33, _currentStepData$crea34, _currentStepData$crea35, _currentStepData$crea36, _currentStepData$crea37, _currentStepData$Plot, _currentStepData$Plot2, _currentStepData$Plot3, _currentStepData$Plot4, _user$info4;
36097
36026
  const {
36098
36027
  state
36099
36028
  } = useLocation();
@@ -36162,11 +36091,11 @@ const Architectconcent = ({
36162
36091
  <p style="margin-top:-52px;margin-bottom:-32px;"><strong>Dear Sir/Madam,</strong></p>
36163
36092
 
36164
36093
  <p style="margin-top:-30px;margin-bottom:-32px;">
36165
- I, the undersigned Shri/Smt/Kum <b>${architecname}</b> <b>${architecttype}</b> having Registration No. ${architectid} is appointed by the owner <b>${ownername}</b> Mobile: <b>${mobile}</b> for the development on land bearing Kh. No <b>${khasranumber}</b> of <b>${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Loca7 = currentStepData.LocationDetails) === null || _currentStepData$Loca7 === void 0 ? void 0 : (_currentStepData$Loca8 = _currentStepData$Loca7.selectedCity) === null || _currentStepData$Loca8 === void 0 ? void 0 : (_currentStepData$Loca9 = _currentStepData$Loca8.city) === null || _currentStepData$Loca9 === void 0 ? void 0 : _currentStepData$Loca9.ulbType}</b> <b>${ulbname}</b> Area <b>${area}</b> (Sq.mts), address <b>${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Plot = currentStepData.PlotDetails) === null || _currentStepData$Plot === void 0 ? void 0 : (_currentStepData$Plot2 = _currentStepData$Plot.tradeLicenseDetail) === null || _currentStepData$Plot2 === void 0 ? void 0 : (_currentStepData$Plot3 = _currentStepData$Plot2.owners) === null || _currentStepData$Plot3 === void 0 ? void 0 : (_currentStepData$Plot4 = _currentStepData$Plot3[0]) === null || _currentStepData$Plot4 === void 0 ? void 0 : _currentStepData$Plot4.permanentAddress) || "NA"}</b>.
36094
+ I, the undersigned Shri/Smt/Kum <b>${architecname}</b> <b>${architecttype}</b> having Registration No. ${architectid} is appointed by the owner <b>${ownername}</b> Mobile: <b>${mobile}</b> for the development on land bearing Kh. No <b>${khasranumber}</b> of <b>${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Loca7 = currentStepData.LocationDetails) === null || _currentStepData$Loca7 === void 0 ? void 0 : (_currentStepData$Loca8 = _currentStepData$Loca7.selectedCity) === null || _currentStepData$Loca8 === void 0 ? void 0 : (_currentStepData$Loca9 = _currentStepData$Loca8.city) === null || _currentStepData$Loca9 === void 0 ? void 0 : _currentStepData$Loca9.ulbType}</b> <b>${ulbname}</b> Area <b>${area}</b> (Sq.mts), address <b>${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea29 = currentStepData.createdResponse) === null || _currentStepData$crea29 === void 0 ? void 0 : (_currentStepData$crea30 = _currentStepData$crea29.landInfo) === null || _currentStepData$crea30 === void 0 ? void 0 : (_currentStepData$crea31 = _currentStepData$crea30.address) === null || _currentStepData$crea31 === void 0 ? void 0 : (_currentStepData$crea32 = _currentStepData$crea31.locality) === null || _currentStepData$crea32 === void 0 ? void 0 : (_currentStepData$crea33 = _currentStepData$crea32.name) === null || _currentStepData$crea33 === void 0 ? void 0 : (_currentStepData$crea34 = _currentStepData$crea33.split("-")) === null || _currentStepData$crea34 === void 0 ? void 0 : (_currentStepData$crea35 = _currentStepData$crea34[0]) === null || _currentStepData$crea35 === void 0 ? void 0 : _currentStepData$crea35.trim()) || "NA"}</b>.
36166
36095
  </p>
36167
36096
 
36168
36097
  <p style="margin-top:-52px;margin-bottom:-32px;">
36169
- This site falls in Ward Number <b>${ward}</b>, zone number <b>${zone}</b> in the Master plan of <b>${district}</b> and the proposed ${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea29 = currentStepData.createdResponse) === null || _currentStepData$crea29 === void 0 ? void 0 : (_currentStepData$crea30 = _currentStepData$crea29.additionalDetails) === null || _currentStepData$crea30 === void 0 ? void 0 : _currentStepData$crea30.usage) || '<Type of Construction>'} construction is permissible in this area.
36098
+ This site falls in Ward Number <b>${ward}</b>, Zone Number <b>${zone}</b> in the Master plan of <b>${district}</b> and the proposed ${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea36 = currentStepData.createdResponse) === null || _currentStepData$crea36 === void 0 ? void 0 : (_currentStepData$crea37 = _currentStepData$crea36.additionalDetails) === null || _currentStepData$crea37 === void 0 ? void 0 : _currentStepData$crea37.usage) || '<Type of Construction>'} construction is permissible in this area.
36170
36099
  </p>
36171
36100
 
36172
36101
  <p style="margin-top:-52px;margin-bottom:-32px;">
@@ -36214,7 +36143,7 @@ const Architectconcent = ({
36214
36143
  </tr>
36215
36144
  <tr>
36216
36145
  <td style="padding:6px; border-bottom:1px dotted #000; font-weight:700;">Address:</td>
36217
- <td style="padding:6px; border-bottom:1px dotted #000;">${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Plot5 = currentStepData.PlotDetails) === null || _currentStepData$Plot5 === void 0 ? void 0 : (_currentStepData$Plot6 = _currentStepData$Plot5.tradeLicenseDetail) === null || _currentStepData$Plot6 === void 0 ? void 0 : (_currentStepData$Plot7 = _currentStepData$Plot6.owners) === null || _currentStepData$Plot7 === void 0 ? void 0 : (_currentStepData$Plot8 = _currentStepData$Plot7[0]) === null || _currentStepData$Plot8 === void 0 ? void 0 : _currentStepData$Plot8.permanentAddress) || "NA"}</td>
36146
+ <td style="padding:6px; border-bottom:1px dotted #000;">${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Plot = currentStepData.PlotDetails) === null || _currentStepData$Plot === void 0 ? void 0 : (_currentStepData$Plot2 = _currentStepData$Plot.tradeLicenseDetail) === null || _currentStepData$Plot2 === void 0 ? void 0 : (_currentStepData$Plot3 = _currentStepData$Plot2.owners) === null || _currentStepData$Plot3 === void 0 ? void 0 : (_currentStepData$Plot4 = _currentStepData$Plot3[0]) === null || _currentStepData$Plot4 === void 0 ? void 0 : _currentStepData$Plot4.permanentAddress) || "NA"}</td>
36218
36147
  </tr>
36219
36148
  <tr>
36220
36149
  <td style="padding:6px; border-bottom:1px dotted #000; font-weight:700;">Mobile:</td>
@@ -36237,12 +36166,12 @@ const Architectconcent = ({
36237
36166
  const closeModal = () => setShowTermsPopup(false);
36238
36167
  const uploadSelfDeclaration = async () => {
36239
36168
  try {
36240
- var _currentStepData$crea31, _currentStepData$Basi, _result$filestoreIds;
36169
+ var _currentStepData$crea38, _currentStepData$Basi, _result$filestoreIds;
36241
36170
  setIsUploading(true);
36242
36171
  const paramsWithTimestamp = {
36243
36172
  ...(currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.createdResponse),
36244
36173
  additionalDetails: {
36245
- ...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea31 = currentStepData.createdResponse) === null || _currentStepData$crea31 === void 0 ? void 0 : _currentStepData$crea31.additionalDetails),
36174
+ ...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea38 = currentStepData.createdResponse) === null || _currentStepData$crea38 === void 0 ? void 0 : _currentStepData$crea38.additionalDetails),
36246
36175
  TimeStamp
36247
36176
  },
36248
36177
  edcrDetail: {
@@ -48324,6 +48253,7 @@ const SummaryDetails = ({
48324
48253
  var _currentStepData$crea, _currentStepData$crea2, _currentStepData$crea3;
48325
48254
  return (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea = currentStepData.createdResponse) === null || _currentStepData$crea === void 0 ? void 0 : (_currentStepData$crea2 = _currentStepData$crea.additionalDetails) === null || _currentStepData$crea2 === void 0 ? void 0 : (_currentStepData$crea3 = _currentStepData$crea2.selfCertificationCharges) === null || _currentStepData$crea3 === void 0 ? void 0 : _currentStepData$crea3.BPA_DEVELOPMENT_CHARGES) || "0";
48326
48255
  });
48256
+ const [userSelected, setUser] = useState(null);
48327
48257
  const [otherCharges, setOtherCharges] = useState(() => {
48328
48258
  var _currentStepData$crea4, _currentStepData$crea5, _currentStepData$crea6;
48329
48259
  return (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea4 = currentStepData.createdResponse) === null || _currentStepData$crea4 === void 0 ? void 0 : (_currentStepData$crea5 = _currentStepData$crea4.additionalDetails) === null || _currentStepData$crea5 === void 0 ? void 0 : (_currentStepData$crea6 = _currentStepData$crea5.selfCertificationCharges) === null || _currentStepData$crea6 === void 0 ? void 0 : _currentStepData$crea6.BPA_OTHER_CHARGES) || "0";
@@ -48379,6 +48309,27 @@ const SummaryDetails = ({
48379
48309
  };
48380
48310
  Digit.Hooks.useClickOutside(menuRef, closeMenu, displayMenu);
48381
48311
  let acceptFormat = ".pdf";
48312
+ useEffect(() => {
48313
+ if (!userSelected) {
48314
+ return;
48315
+ }
48316
+ Digit.SessionStorage.set("citizen.userRequestObject", user);
48317
+ Digit.UserService.setUser(userSelected);
48318
+ setCitizenDetail(userSelected === null || userSelected === void 0 ? void 0 : userSelected.info, userSelected === null || userSelected === void 0 ? void 0 : userSelected.access_token, state);
48319
+ }, [userSelected]);
48320
+ const setCitizenDetail = (userObject, token, tenantId) => {
48321
+ var _JSON$parse, _JSON$parse$value;
48322
+ let locale = (_JSON$parse = JSON.parse(sessionStorage.getItem("Digit.initData"))) === null || _JSON$parse === void 0 ? void 0 : (_JSON$parse$value = _JSON$parse.value) === null || _JSON$parse$value === void 0 ? void 0 : _JSON$parse$value.selectedLanguage;
48323
+ localStorage.setItem("Citizen.tenant-id", tenantId);
48324
+ localStorage.setItem("tenant-id", tenantId);
48325
+ localStorage.setItem("citizen.userRequestObject", JSON.stringify(userObject));
48326
+ localStorage.setItem("locale", locale);
48327
+ localStorage.setItem("Citizen.locale", locale);
48328
+ localStorage.setItem("token", token);
48329
+ localStorage.setItem("Citizen.token", token);
48330
+ localStorage.setItem("user-info", JSON.stringify(userObject));
48331
+ localStorage.setItem("Citizen.user-info", JSON.stringify(userObject));
48332
+ };
48382
48333
  useEffect(() => {
48383
48334
  var _currentStepData$crea27;
48384
48335
  if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea27 = currentStepData.createdResponse) !== null && _currentStepData$crea27 !== void 0 && _currentStepData$crea27.additionalDetails) {
@@ -48720,8 +48671,12 @@ const SummaryDetails = ({
48720
48671
  console.log("OTP++++++++>");
48721
48672
  try {
48722
48673
  setSetOtpLoading(true);
48723
- const response = await Digit.UserService.authenticate(requestData);
48724
- if (response.ResponseInfo.status === "Access Token generated successfully") {
48674
+ const {
48675
+ ResponseInfo,
48676
+ UserRequest: info,
48677
+ ...tokens
48678
+ } = await Digit.UserService.authenticate(requestData);
48679
+ if (ResponseInfo.status === "Access Token generated successfully") {
48725
48680
  setIsOTPVerified(true);
48726
48681
  setOTPSuccess(t("VERIFIED"));
48727
48682
  setOTPError(false);
@@ -48729,6 +48684,10 @@ const SummaryDetails = ({
48729
48684
  setOTPVerifiedTimestamp(currentTimestamp);
48730
48685
  sessionStorage.setItem("otpVerifiedTimestamp", currentTimestamp.toISOString());
48731
48686
  setSetOtpLoading(false);
48687
+ setUser({
48688
+ info,
48689
+ ...tokens
48690
+ });
48732
48691
  } else {
48733
48692
  setIsOTPVerified(false);
48734
48693
  setOTPError(t("WRONG OTP"));
@@ -49755,292 +49714,6 @@ const SelfCertificationResponse = props => {
49755
49714
  }))));
49756
49715
  };
49757
49716
 
49758
- const CustomLandingPage = () => {
49759
- useEffect(() => {
49760
- const sidebar = document.querySelector('.SideBarStatic');
49761
- const mainContainer = document.querySelector('.main.center-container');
49762
- const citizenContainer = document.querySelector('.citizen-home-container');
49763
- if (sidebar) sidebar.style.display = 'none';
49764
- if (mainContainer) {
49765
- mainContainer.style.padding = '0';
49766
- mainContainer.style.width = '100%';
49767
- }
49768
- if (citizenContainer) {
49769
- citizenContainer.style.padding = '0';
49770
- citizenContainer.style.width = '100%';
49771
- }
49772
- return () => {
49773
- if (sidebar) sidebar.style.display = '';
49774
- if (mainContainer) {
49775
- mainContainer.style.padding = '';
49776
- mainContainer.style.width = '';
49777
- }
49778
- if (citizenContainer) {
49779
- citizenContainer.style.padding = '';
49780
- citizenContainer.style.width = '';
49781
- }
49782
- };
49783
- }, []);
49784
- const links = [{
49785
- title: "Professional Login",
49786
- url: "/digit-ui/citizen/obps/edcrscrutiny/apply/home",
49787
- external: false
49788
- }, {
49789
- title: "User Manual",
49790
- url: "https://sdc-uat.lgpunjab.gov.in/filestore/v1/files/viewfile/?name=pb%2Fproperty-upload%2FOctober%2F8%2F1759931687672rlOgUaoaId.pdf",
49791
- external: true
49792
- }, {
49793
- title: "Assistance",
49794
- url: "/digit-ui/citizen",
49795
- external: true
49796
- }, {
49797
- title: "Feedback",
49798
- url: "https://docs.google.com/forms/d/e/1FAIpQLScfZlGldfyIs_3KZAX9lRpx43OjCrKnw33SbzvN6I3Gi2Uj_A/viewform?usp=header",
49799
- external: true
49800
- }, {
49801
- title: "View applications by Citizen",
49802
- url: "/digit-ui/citizen/obps/my-applications",
49803
- external: false
49804
- }, {
49805
- title: "FAQs",
49806
- url: "/digit-ui/citizen/obps-faq",
49807
- external: false
49808
- }];
49809
- const cardStyle = {
49810
- padding: '24px 20px',
49811
- cursor: 'pointer',
49812
- transition: 'all 0.3s ease',
49813
- background: 'rgba(255, 255, 255, 0.25)',
49814
- backdropFilter: 'blur(10px)',
49815
- border: '2px solid rgba(255, 255, 255, 0.4)',
49816
- borderRadius: '8px',
49817
- boxShadow: '0 4px 16px rgba(0,0,0,0.3)'
49818
- };
49819
- const cardTextStyle = {
49820
- fontSize: '20px',
49821
- fontWeight: '700',
49822
- textAlign: 'center',
49823
- color: '#ffffff',
49824
- textShadow: '1px 1px 3px rgba(0,0,0,0.8)',
49825
- letterSpacing: '0.3px'
49826
- };
49827
- const handleMouseEnter = e => {
49828
- e.currentTarget.style.transform = 'translateY(-4px)';
49829
- e.currentTarget.style.background = 'rgba(255, 255, 255, 0.4)';
49830
- e.currentTarget.style.boxShadow = '0 8px 24px rgba(0,0,0,0.4)';
49831
- };
49832
- const handleMouseLeave = e => {
49833
- e.currentTarget.style.transform = 'translateY(0)';
49834
- e.currentTarget.style.background = 'rgba(255, 255, 255, 0.25)';
49835
- e.currentTarget.style.boxShadow = '0 4px 16px rgba(0,0,0,0.3)';
49836
- };
49837
- const renderInstructions = index => {
49838
- if (index === 0) {
49839
- return /*#__PURE__*/React.createElement("div", {
49840
- style: {
49841
- marginTop: '20px',
49842
- paddingTop: '20px',
49843
- borderTop: '2px solid rgba(255, 255, 255, 0.5)',
49844
- background: 'rgba(0, 0, 0, 0.2)',
49845
- padding: '16px',
49846
- borderRadius: '6px'
49847
- }
49848
- }, /*#__PURE__*/React.createElement("div", {
49849
- style: {
49850
- fontSize: '15px',
49851
- fontWeight: 'bold',
49852
- marginBottom: '12px',
49853
- color: '#ffffff',
49854
- textShadow: '1px 1px 3px rgba(0,0,0,0.9)'
49855
- }
49856
- }, "Test Login Details:"), /*#__PURE__*/React.createElement("div", {
49857
- style: {
49858
- marginBottom: '10px'
49859
- }
49860
- }, /*#__PURE__*/React.createElement("div", {
49861
- style: {
49862
- fontSize: '13px',
49863
- fontWeight: '600',
49864
- color: '#ffeb3b',
49865
- marginBottom: '4px',
49866
- textShadow: '1px 1px 2px rgba(0,0,0,0.8)'
49867
- }
49868
- }, "Use any mobile number below:"), /*#__PURE__*/React.createElement("div", {
49869
- style: {
49870
- fontSize: '12px',
49871
- color: '#ffffff',
49872
- fontFamily: 'monospace',
49873
- backgroundColor: 'rgba(0, 0, 0, 0.3)',
49874
- padding: '6px 8px',
49875
- borderRadius: '4px',
49876
- lineHeight: '1.5'
49877
- }
49878
- }, "9988112233, 9988112234, 9988112235", /*#__PURE__*/React.createElement("br", null), "9988112236, 8888888889, 9988112237", /*#__PURE__*/React.createElement("br", null), "9988112238, 8196991952")), /*#__PURE__*/React.createElement("div", {
49879
- style: {
49880
- marginBottom: '8px'
49881
- }
49882
- }, /*#__PURE__*/React.createElement("span", {
49883
- style: {
49884
- fontSize: '13px',
49885
- fontWeight: '600',
49886
- color: '#ffeb3b',
49887
- textShadow: '1px 1px 2px rgba(0,0,0,0.8)'
49888
- }
49889
- }, "OTP:"), /*#__PURE__*/React.createElement("span", {
49890
- style: {
49891
- fontSize: '13px',
49892
- color: '#ffffff',
49893
- marginLeft: '8px',
49894
- fontFamily: 'monospace',
49895
- backgroundColor: 'rgba(0, 0, 0, 0.3)',
49896
- padding: '4px 10px',
49897
- borderRadius: '4px',
49898
- fontWeight: 'bold'
49899
- }
49900
- }, "123456")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
49901
- style: {
49902
- fontSize: '13px',
49903
- fontWeight: '600',
49904
- color: '#ffeb3b',
49905
- textShadow: '1px 1px 2px rgba(0,0,0,0.8)'
49906
- }
49907
- }, "Location:"), /*#__PURE__*/React.createElement("span", {
49908
- style: {
49909
- fontSize: '13px',
49910
- color: '#ffffff',
49911
- marginLeft: '8px',
49912
- textShadow: '1px 1px 2px rgba(0,0,0,0.8)'
49913
- }
49914
- }, "Amritsar")));
49915
- } else if (index === 2) {
49916
- return /*#__PURE__*/React.createElement("div", {
49917
- style: {
49918
- marginTop: '20px',
49919
- paddingTop: '20px',
49920
- borderTop: '2px solid rgba(255, 255, 255, 0.5)',
49921
- background: 'rgba(0, 0, 0, 0.2)',
49922
- padding: '16px',
49923
- borderRadius: '6px'
49924
- }
49925
- }, /*#__PURE__*/React.createElement("div", {
49926
- style: {
49927
- fontSize: '15px',
49928
- fontWeight: 'bold',
49929
- marginBottom: '12px',
49930
- color: '#ffffff',
49931
- textShadow: '1px 1px 3px rgba(0,0,0,0.9)'
49932
- }
49933
- }, "For Any Assistance:"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
49934
- style: {
49935
- fontSize: '13px',
49936
- fontWeight: '600',
49937
- color: '#ffeb3b',
49938
- marginBottom: '4px',
49939
- textShadow: '1px 1px 2px rgba(0,0,0,0.8)'
49940
- }
49941
- }, "Contact us at:"), /*#__PURE__*/React.createElement("div", {
49942
- style: {
49943
- fontSize: '14px',
49944
- color: '#ffffff',
49945
- fontFamily: 'monospace',
49946
- backgroundColor: 'rgba(0, 0, 0, 0.3)',
49947
- padding: '8px 12px',
49948
- borderRadius: '4px',
49949
- fontWeight: 'bold',
49950
- letterSpacing: '1px'
49951
- }
49952
- }, "+91 98155 98785")));
49953
- }
49954
- return null;
49955
- };
49956
- return /*#__PURE__*/React.createElement("div", {
49957
- style: {
49958
- width: '100%',
49959
- marginTop: '-25px',
49960
- position: 'relative',
49961
- minHeight: '100vh',
49962
- overflow: 'hidden'
49963
- }
49964
- }, /*#__PURE__*/React.createElement("img", {
49965
- src: "https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=80",
49966
- alt: "Building Plan Approval",
49967
- style: {
49968
- position: 'absolute',
49969
- top: 0,
49970
- left: 0,
49971
- width: '100%',
49972
- height: '100%',
49973
- objectFit: 'cover',
49974
- zIndex: 1
49975
- }
49976
- }), /*#__PURE__*/React.createElement("div", {
49977
- style: {
49978
- position: 'absolute',
49979
- top: 0,
49980
- left: 0,
49981
- width: '100%',
49982
- height: '100%',
49983
- background: 'rgba(0, 0, 0, 0.4)',
49984
- zIndex: 2
49985
- }
49986
- }), /*#__PURE__*/React.createElement("div", {
49987
- style: {
49988
- position: 'relative',
49989
- zIndex: 3,
49990
- width: '100%',
49991
- minHeight: '100vh',
49992
- padding: '0'
49993
- }
49994
- }, /*#__PURE__*/React.createElement("h1", {
49995
- style: {
49996
- color: 'white',
49997
- fontSize: '3rem',
49998
- fontWeight: 'bold',
49999
- textShadow: '2px 2px 8px rgba(0,0,0,0.8)',
50000
- margin: '0',
50001
- padding: '80px 20px 0 20px',
50002
- textAlign: 'center'
50003
- }
50004
- }, "Building Plan Approval"), /*#__PURE__*/React.createElement("div", {
50005
- style: {
50006
- display: 'flex',
50007
- flexDirection: 'column',
50008
- gap: '20px',
50009
- maxWidth: '600px',
50010
- width: '100%',
50011
- marginTop: '50px',
50012
- paddingLeft: '80px',
50013
- paddingRight: '20px'
50014
- }
50015
- }, links.map((link, index) => {
50016
- const CardComponent = /*#__PURE__*/React.createElement(Card, {
50017
- style: cardStyle,
50018
- onMouseEnter: handleMouseEnter,
50019
- onMouseLeave: handleMouseLeave
50020
- }, /*#__PURE__*/React.createElement(CardText, {
50021
- style: {
50022
- ...cardTextStyle,
50023
- marginBottom: index === 0 || index === 2 ? '16px' : '0'
50024
- }
50025
- }, link.title), renderInstructions(index));
50026
- return /*#__PURE__*/React.createElement(React.Fragment, {
50027
- key: index
50028
- }, link.external ? /*#__PURE__*/React.createElement("a", {
50029
- href: link.url,
50030
- target: "_blank",
50031
- rel: "noopener noreferrer",
50032
- style: {
50033
- textDecoration: 'none'
50034
- }
50035
- }, CardComponent) : /*#__PURE__*/React.createElement(Link$1, {
50036
- to: link.url,
50037
- style: {
50038
- textDecoration: 'none'
50039
- }
50040
- }, CardComponent));
50041
- }))));
50042
- };
50043
-
50044
49717
  const OBPSModule = ({
50045
49718
  stateCode,
50046
49719
  userType,
@@ -50189,7 +49862,6 @@ const componentsToRegister = {
50189
49862
  NewSelfCertificationStepFormSeven,
50190
49863
  NewSelfCertificationStepFormEight,
50191
49864
  SelfCertificationResponse,
50192
- CustomLandingPage,
50193
49865
  dummy
50194
49866
  };
50195
49867
  const initOBPSComponents = () => {