@mseva/upyog-ui-module-chb 1.1.43 → 1.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +207 -84
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -542,6 +542,10 @@ function createCommonjsModule(fn, module) {
|
|
|
542
542
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
+
function getCjsExportFromNamespace (n) {
|
|
546
|
+
return n && n['default'] || n;
|
|
547
|
+
}
|
|
548
|
+
|
|
545
549
|
var jquery = createCommonjsModule(function (module) {
|
|
546
550
|
(function (global, factory) {
|
|
547
551
|
|
|
@@ -14387,6 +14391,8 @@ var accessibility = createCommonjsModule(function (module, exports) {
|
|
|
14387
14391
|
});
|
|
14388
14392
|
unwrapExports(accessibility);
|
|
14389
14393
|
|
|
14394
|
+
var _shallowEqual = getCjsExportFromNamespace(index_esm);
|
|
14395
|
+
|
|
14390
14396
|
var Calendar_1 = createCommonjsModule(function (module, exports) {
|
|
14391
14397
|
|
|
14392
14398
|
function _typeof(obj) {
|
|
@@ -15041,7 +15047,7 @@ var Calendar_1 = createCommonjsModule(function (module, exports) {
|
|
|
15041
15047
|
monthNames: this.getMonthNames()
|
|
15042
15048
|
});
|
|
15043
15049
|
}
|
|
15044
|
-
if (!(0,
|
|
15050
|
+
if (!(0, _shallowEqual.shallowEqualObjects)(prevProps.scroll, this.props.scroll)) {
|
|
15045
15051
|
this.setState({
|
|
15046
15052
|
scrollArea: this.calcScrollArea(this.props)
|
|
15047
15053
|
});
|
|
@@ -47074,6 +47080,8 @@ var reactLifecyclesCompat_es = {
|
|
|
47074
47080
|
polyfill: polyfill
|
|
47075
47081
|
};
|
|
47076
47082
|
|
|
47083
|
+
var _reactLifecyclesCompat = getCjsExportFromNamespace(reactLifecyclesCompat_es);
|
|
47084
|
+
|
|
47077
47085
|
var Modal_1 = createCommonjsModule(function (module, exports) {
|
|
47078
47086
|
|
|
47079
47087
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -47362,7 +47370,7 @@ var Modal_1 = createCommonjsModule(function (module, exports) {
|
|
|
47362
47370
|
padding: "20px"
|
|
47363
47371
|
}
|
|
47364
47372
|
};
|
|
47365
|
-
(0,
|
|
47373
|
+
(0, _reactLifecyclesCompat.polyfill)(Modal);
|
|
47366
47374
|
if (process.env.NODE_ENV !== "production") {
|
|
47367
47375
|
Modal.setCreateHTMLElement = function (fn) {
|
|
47368
47376
|
return createHTMLElement = fn;
|
|
@@ -47400,11 +47408,23 @@ const CitizenConsent = ({
|
|
|
47400
47408
|
} = useTranslation();
|
|
47401
47409
|
const user = Digit.UserService.getUser();
|
|
47402
47410
|
const ownername = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.name;
|
|
47411
|
+
const ownermobileNumber = user === null || user === void 0 ? void 0 : user.info.mobileNumber;
|
|
47403
47412
|
const {
|
|
47404
47413
|
id
|
|
47405
47414
|
} = useParams();
|
|
47406
47415
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
47407
47416
|
const [loader, setLoader] = useState(false);
|
|
47417
|
+
const [showOTPInput, setShowOTPInput] = useState(false);
|
|
47418
|
+
const [otp, setOTP] = useState("");
|
|
47419
|
+
const [otpError, setOTPError] = useState("");
|
|
47420
|
+
const [otpSuccess, setOTPSuccess] = useState("");
|
|
47421
|
+
const [isOTPVerified, setIsOTPVerified] = useState(false);
|
|
47422
|
+
const [TimeStamp, setOTPVerifiedTimestamp] = useState(() => {
|
|
47423
|
+
return sessionStorage.getItem("otpVerifiedTimestampcitizen") || "";
|
|
47424
|
+
});
|
|
47425
|
+
const [userSelected, setUser] = useState(null);
|
|
47426
|
+
const [setOtpLoading, setSetOtpLoading] = useState(false);
|
|
47427
|
+
const stateCode = Digit.ULBService.getStateId();
|
|
47408
47428
|
console.log("getModalData", getModalData);
|
|
47409
47429
|
const {
|
|
47410
47430
|
data,
|
|
@@ -47422,97 +47442,193 @@ const CitizenConsent = ({
|
|
|
47422
47442
|
};
|
|
47423
47443
|
const formattedUlbName = formatUlbName(getModalData === null || getModalData === void 0 ? void 0 : getModalData.ulbName);
|
|
47424
47444
|
const selfdeclarationform = `
|
|
47425
|
-
<div style="font-family:'Times New Roman', Times, serif; color:#000; font-size:16px; line-height:1.
|
|
47445
|
+
<div style="font-family:'Times New Roman', Times, serif; color:#000; font-size:16px; line-height:1.8; padding:24px 30px;">
|
|
47426
47446
|
|
|
47427
|
-
|
|
47428
|
-
<h1 style="text-align:center; font-weight:bold; font-size:20px; margin-bottom:30px; text-decoration:underline;">
|
|
47447
|
+
<h1 style="text-align:center; font-weight:bold; font-size:22px; margin-bottom:40px; letter-spacing:0.5px; color:#1a1a1a;">
|
|
47429
47448
|
SELF-DECLARATION FOR COMMUNITY HALL BOOKING
|
|
47430
47449
|
</h1>
|
|
47431
47450
|
|
|
47432
|
-
|
|
47433
|
-
|
|
47434
|
-
|
|
47435
|
-
|
|
47436
|
-
s/d of <span style="border-bottom:1px solid #000; display:inline-block; min-width:200px; text-align:center; font-weight:bold;">${(getModalData === null || getModalData === void 0 ? void 0 : getModalData.sonOf) || "____________________"}</span>, resident of
|
|
47437
|
-
</p>
|
|
47438
|
-
<p style="margin:0;">
|
|
47439
|
-
<span style="border-bottom:1px solid #000; display:inline-block; min-width:300px; text-align:center; font-weight:bold;">${(getModalData === null || getModalData === void 0 ? void 0 : getModalData.residentOf) || (getModalData === null || getModalData === void 0 ? void 0 : getModalData.address) || "____________________"}</span>, do hereby self-declare that:
|
|
47451
|
+
<div style="margin-bottom:32px; line-height:1.8;">
|
|
47452
|
+
<p style="margin:0 0 16px 0; text-align:justify;">
|
|
47453
|
+
I, <strong>${(getModalData === null || getModalData === void 0 ? void 0 : getModalData.name) || ownername}</strong>, resident of
|
|
47454
|
+
<strong> ${(getModalData === null || getModalData === void 0 ? void 0 : getModalData.residentOf) || (getModalData === null || getModalData === void 0 ? void 0 : getModalData.address)}</strong>, do hereby self-declare that:
|
|
47440
47455
|
</p>
|
|
47441
47456
|
</div>
|
|
47442
47457
|
|
|
47443
|
-
|
|
47444
|
-
|
|
47445
|
-
|
|
47446
|
-
<span
|
|
47447
|
-
|
|
47448
|
-
</li>
|
|
47458
|
+
<div style="margin-left:10px; line-height:1.9;">
|
|
47459
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47460
|
+
<span style="min-width:35px; font-weight:600; color:#333;">1.</span>
|
|
47461
|
+
<span>I want to book the community hall <strong>${getModalData === null || getModalData === void 0 ? void 0 : getModalData.communityHallName}</strong> for the purpose of <strong>${getModalData === null || getModalData === void 0 ? void 0 : (_getModalData$purpose = getModalData.purpose) === null || _getModalData$purpose === void 0 ? void 0 : _getModalData$purpose.name}</strong>.</span>
|
|
47462
|
+
</div>
|
|
47449
47463
|
|
|
47450
|
-
<
|
|
47451
|
-
<span style="min-width:
|
|
47452
|
-
<span>I will obey all government directions issued from time to time regarding
|
|
47453
|
-
</
|
|
47464
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47465
|
+
<span style="min-width:35px; font-weight:600; color:#333;">2.</span>
|
|
47466
|
+
<span>I will obey all government directions issued from time to time regarding Coronavirus or any other epidemic.</span>
|
|
47467
|
+
</div>
|
|
47454
47468
|
|
|
47455
|
-
<
|
|
47456
|
-
<span style="min-width:
|
|
47469
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47470
|
+
<span style="min-width:35px; font-weight:600; color:#333;">3.</span>
|
|
47457
47471
|
<span>The Municipal Corporation / Council will have the right to deduct charges for cleanliness, electricity, or any maintenance of the community hall.</span>
|
|
47458
|
-
</
|
|
47472
|
+
</div>
|
|
47459
47473
|
|
|
47460
|
-
<
|
|
47461
|
-
<span style="min-width:
|
|
47474
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47475
|
+
<span style="min-width:35px; font-weight:600; color:#333;">4.</span>
|
|
47462
47476
|
<span>I will not serve alcohol without valid government permission from the concerned department. If I do serve alcohol without permission, I will be liable for punishment as per law.</span>
|
|
47463
|
-
</
|
|
47477
|
+
</div>
|
|
47464
47478
|
|
|
47465
|
-
<
|
|
47466
|
-
<span style="min-width:
|
|
47467
|
-
<span>I will not use Single Use Plastic or
|
|
47468
|
-
</
|
|
47479
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47480
|
+
<span style="min-width:35px; font-weight:600; color:#333;">5.</span>
|
|
47481
|
+
<span>I will not use Single Use Plastic or thermocol as per Solid Waste Management (SWM) guidelines.</span>
|
|
47482
|
+
</div>
|
|
47469
47483
|
|
|
47470
|
-
<
|
|
47471
|
-
<span style="min-width:
|
|
47484
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47485
|
+
<span style="min-width:35px; font-weight:600; color:#333;">6.</span>
|
|
47472
47486
|
<span>I will ensure proper cleanliness of the community hall.</span>
|
|
47473
|
-
</
|
|
47487
|
+
</div>
|
|
47474
47488
|
|
|
47475
|
-
<
|
|
47476
|
-
<span style="min-width:
|
|
47489
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47490
|
+
<span style="min-width:35px; font-weight:600; color:#333;">7.</span>
|
|
47477
47491
|
<span>I will be responsible for any fight or damage to government property and will be liable for any penalty.</span>
|
|
47478
|
-
</
|
|
47492
|
+
</div>
|
|
47479
47493
|
|
|
47480
|
-
<
|
|
47481
|
-
<span style="min-width:
|
|
47494
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47495
|
+
<span style="min-width:35px; font-weight:600; color:#333;">8.</span>
|
|
47482
47496
|
<span>The Municipal Corporation / Council reserves the right to cancel my booking for any emergency government program.</span>
|
|
47483
|
-
</
|
|
47497
|
+
</div>
|
|
47484
47498
|
|
|
47485
|
-
<
|
|
47486
|
-
<span style="min-width:
|
|
47499
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47500
|
+
<span style="min-width:35px; font-weight:600; color:#333;">9.</span>
|
|
47487
47501
|
<span>I will play DJ music at low volume only up to 10 PM in the community hall, as per government guidelines.</span>
|
|
47488
|
-
</
|
|
47502
|
+
</div>
|
|
47489
47503
|
|
|
47490
|
-
<
|
|
47491
|
-
<span style="min-width:
|
|
47504
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47505
|
+
<span style="min-width:35px; font-weight:600; color:#333;">10.</span>
|
|
47492
47506
|
<span>I will be responsible if any illegal electricity connection is used in the community hall.</span>
|
|
47493
|
-
</
|
|
47507
|
+
</div>
|
|
47494
47508
|
|
|
47495
|
-
<
|
|
47496
|
-
<span style="min-width:
|
|
47509
|
+
<div style="margin-bottom:18px; text-align:justify; display:flex; align-items:flex-start; gap:8px;">
|
|
47510
|
+
<span style="min-width:35px; font-weight:600; color:#333;">11.</span>
|
|
47497
47511
|
<span>I have checked the current status of the community hall and I am ready to proceed with the booking.</span>
|
|
47498
|
-
</li>
|
|
47499
|
-
</ol>
|
|
47500
|
-
|
|
47501
|
-
<!-- Signature Section -->
|
|
47502
|
-
<div style="margin-top:50px; display:flex; justify-content:flex-end;">
|
|
47503
|
-
<div style="min-width:300px;">
|
|
47504
|
-
<p style="margin:10px 0; text-align:right; font-weight:bold;">Applicant Name</p>
|
|
47505
|
-
<p style="margin:10px 0; text-align:right; font-weight:bold;">${(getModalData === null || getModalData === void 0 ? void 0 : getModalData.name) || ownername || "____________________"}</p>
|
|
47506
|
-
|
|
47507
|
-
<p style="margin:20px 0 10px 0; text-align:right; font-weight:bold;">Address</p>
|
|
47508
|
-
<p style="margin:10px 0; text-align:right; font-weight:bold;">${(getModalData === null || getModalData === void 0 ? void 0 : getModalData.address) || "____________________"}</p>
|
|
47509
47512
|
</div>
|
|
47510
47513
|
</div>
|
|
47514
|
+
|
|
47515
|
+
<div style="margin-top:60px;">
|
|
47516
|
+
<table style="width:100%; border-collapse:collapse;">
|
|
47517
|
+
<tr>
|
|
47518
|
+
<td style="width:50%; vertical-align:top;"></td>
|
|
47519
|
+
<td style="width:50%; vertical-align:top; padding-left:40px; float:right;">
|
|
47520
|
+
<div style="line-height:2.2;">
|
|
47521
|
+
|
|
47522
|
+
<p style="margin:0 0 28px 0; font-weight:bold; font-size:17px; color:#000;">${(getModalData === null || getModalData === void 0 ? void 0 : getModalData.name) || ownername}</p>
|
|
47523
|
+
|
|
47524
|
+
|
|
47525
|
+
|
|
47526
|
+
</div>
|
|
47527
|
+
</td>
|
|
47528
|
+
</tr>
|
|
47529
|
+
</table>
|
|
47530
|
+
</div>
|
|
47511
47531
|
</div>
|
|
47512
47532
|
`;
|
|
47513
47533
|
const closeModal = () => {
|
|
47514
47534
|
setShowTermsPopupOwner(false);
|
|
47515
47535
|
};
|
|
47536
|
+
const handleVerifyOTPClick = async () => {
|
|
47537
|
+
var _user$info3, _user$info4;
|
|
47538
|
+
const requestData = {
|
|
47539
|
+
username: ownermobileNumber,
|
|
47540
|
+
password: otp,
|
|
47541
|
+
tenantId: user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.tenantId,
|
|
47542
|
+
userType: user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.type
|
|
47543
|
+
};
|
|
47544
|
+
try {
|
|
47545
|
+
setSetOtpLoading(true);
|
|
47546
|
+
const {
|
|
47547
|
+
ResponseInfo,
|
|
47548
|
+
UserRequest: info,
|
|
47549
|
+
...tokens
|
|
47550
|
+
} = await Digit.UserService.authenticate(requestData);
|
|
47551
|
+
if (ResponseInfo.status === "Access Token generated successfully") {
|
|
47552
|
+
setOTPSuccess(t("VERIFIED"));
|
|
47553
|
+
const currentTimestamp = new Date();
|
|
47554
|
+
const opts = {
|
|
47555
|
+
timeZone: "Asia/Kolkata",
|
|
47556
|
+
weekday: "long",
|
|
47557
|
+
year: "numeric",
|
|
47558
|
+
month: "long",
|
|
47559
|
+
day: "2-digit",
|
|
47560
|
+
hour: "2-digit",
|
|
47561
|
+
minute: "2-digit",
|
|
47562
|
+
second: "2-digit",
|
|
47563
|
+
hour12: true,
|
|
47564
|
+
timeZoneName: "short"
|
|
47565
|
+
};
|
|
47566
|
+
const parts = new Intl.DateTimeFormat("en-IN", opts).formatToParts(currentTimestamp);
|
|
47567
|
+
const map = Object.fromEntries(parts.map(p => [p.type, p.value]));
|
|
47568
|
+
const formatted = `${map.day} ${map.month} ${map.year} ${map.weekday} ${map.hour}:${map.minute}:${map.second} ${map.dayPeriod} ${map.timeZoneName}`;
|
|
47569
|
+
setOTPVerifiedTimestamp(formatted);
|
|
47570
|
+
sessionStorage.setItem("otpVerifiedTimestampcitizen", formatted);
|
|
47571
|
+
setUser({
|
|
47572
|
+
info,
|
|
47573
|
+
...tokens
|
|
47574
|
+
});
|
|
47575
|
+
setSetOtpLoading(false);
|
|
47576
|
+
setShowOTPInput(false);
|
|
47577
|
+
setIsOTPVerified(true);
|
|
47578
|
+
return currentTimestamp;
|
|
47579
|
+
} else {
|
|
47580
|
+
setOTPError(t("WRONG OTP"));
|
|
47581
|
+
setSetOtpLoading(false);
|
|
47582
|
+
return "";
|
|
47583
|
+
}
|
|
47584
|
+
} catch (error) {
|
|
47585
|
+
console.error("Error verifying OTP:", error);
|
|
47586
|
+
setOTPError(t("Error verifying OTP"));
|
|
47587
|
+
setSetOtpLoading(false);
|
|
47588
|
+
return "";
|
|
47589
|
+
}
|
|
47590
|
+
};
|
|
47591
|
+
const handleGetOTPClick = async () => {
|
|
47592
|
+
try {
|
|
47593
|
+
var _user$info5, _user$info6;
|
|
47594
|
+
const response = await Digit.UserService.sendOtp({
|
|
47595
|
+
otp: {
|
|
47596
|
+
mobileNumber: ownermobileNumber,
|
|
47597
|
+
tenantId: user === null || user === void 0 ? void 0 : (_user$info5 = user.info) === null || _user$info5 === void 0 ? void 0 : _user$info5.tenantId,
|
|
47598
|
+
userType: user === null || user === void 0 ? void 0 : (_user$info6 = user.info) === null || _user$info6 === void 0 ? void 0 : _user$info6.type,
|
|
47599
|
+
type: "login"
|
|
47600
|
+
}
|
|
47601
|
+
});
|
|
47602
|
+
if (response.isSuccessful) {
|
|
47603
|
+
setShowOTPInput(true);
|
|
47604
|
+
} else {
|
|
47605
|
+
console.error("Error sending OTP Response is false:", response.error);
|
|
47606
|
+
}
|
|
47607
|
+
} catch (error) {
|
|
47608
|
+
console.error("Error sending OTP:", error);
|
|
47609
|
+
}
|
|
47610
|
+
};
|
|
47611
|
+
useEffect(() => {
|
|
47612
|
+
if (!userSelected) {
|
|
47613
|
+
return;
|
|
47614
|
+
}
|
|
47615
|
+
Digit.SessionStorage.set("citizen.userRequestObject", userSelected);
|
|
47616
|
+
Digit.UserService.setUser(userSelected);
|
|
47617
|
+
setCitizenDetail(userSelected === null || userSelected === void 0 ? void 0 : userSelected.info, userSelected === null || userSelected === void 0 ? void 0 : userSelected.access_token, stateCode);
|
|
47618
|
+
}, [userSelected]);
|
|
47619
|
+
const setCitizenDetail = (userObject, token, tenantId) => {
|
|
47620
|
+
var _JSON$parse, _JSON$parse$value;
|
|
47621
|
+
const 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;
|
|
47622
|
+
localStorage.setItem("Citizen.tenant-id", tenantId);
|
|
47623
|
+
localStorage.setItem("tenant-id", tenantId);
|
|
47624
|
+
localStorage.setItem("citizen.userRequestObject", JSON.stringify(userObject));
|
|
47625
|
+
localStorage.setItem("locale", locale);
|
|
47626
|
+
localStorage.setItem("Citizen.locale", locale);
|
|
47627
|
+
localStorage.setItem("token", token);
|
|
47628
|
+
localStorage.setItem("Citizen.token", token);
|
|
47629
|
+
localStorage.setItem("user-info", JSON.stringify(userObject));
|
|
47630
|
+
localStorage.setItem("Citizen.user-info", JSON.stringify(userObject));
|
|
47631
|
+
};
|
|
47516
47632
|
const uploadSelfDeclaration = async () => {
|
|
47517
47633
|
var _getModalData$purpose2;
|
|
47518
47634
|
setLoader(true);
|
|
@@ -47525,7 +47641,7 @@ const CitizenConsent = ({
|
|
|
47525
47641
|
try {
|
|
47526
47642
|
var _result$filestoreIds$;
|
|
47527
47643
|
setIsUploading(true);
|
|
47528
|
-
|
|
47644
|
+
const result = await Digit.PaymentService.generatePdf(Digit.ULBService.getStateId(), {
|
|
47529
47645
|
Chb: Chb
|
|
47530
47646
|
}, "communityhallowner");
|
|
47531
47647
|
console.log(result, "RESULT");
|
|
@@ -47577,25 +47693,9 @@ const CitizenConsent = ({
|
|
|
47577
47693
|
maxHeight: "80vh",
|
|
47578
47694
|
overflowY: "auto",
|
|
47579
47695
|
lineHeight: "2"
|
|
47580
|
-
},
|
|
47581
|
-
heading: {
|
|
47582
|
-
textAlign: "center",
|
|
47583
|
-
fontWeight: "bold",
|
|
47584
|
-
marginBottom: "10px"
|
|
47585
|
-
},
|
|
47586
|
-
subheading: {
|
|
47587
|
-
textAlign: "center",
|
|
47588
|
-
fontWeight: "bold",
|
|
47589
|
-
marginBottom: "20px"
|
|
47590
|
-
},
|
|
47591
|
-
rightAlignedText: {
|
|
47592
|
-
textAlign: "right",
|
|
47593
|
-
whiteSpace: "pre-wrap",
|
|
47594
|
-
wordWrap: "break-word",
|
|
47595
|
-
fontFamily: "Roboto, serif",
|
|
47596
|
-
lineHeight: "2"
|
|
47597
47696
|
}
|
|
47598
47697
|
};
|
|
47698
|
+
const isValidMobileNumber = ownermobileNumber && ownermobileNumber.length === 10;
|
|
47599
47699
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal, {
|
|
47600
47700
|
isOpen: showTermsPopupOwner,
|
|
47601
47701
|
onRequestClose: closeModal,
|
|
@@ -47615,7 +47715,7 @@ const CitizenConsent = ({
|
|
|
47615
47715
|
dangerouslySetInnerHTML: {
|
|
47616
47716
|
__html: selfdeclarationform
|
|
47617
47717
|
}
|
|
47618
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
47718
|
+
})), isUploading || setOtpLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
47619
47719
|
style: {
|
|
47620
47720
|
display: "flex",
|
|
47621
47721
|
justifyContent: "flex-end"
|
|
@@ -47623,16 +47723,39 @@ const CitizenConsent = ({
|
|
|
47623
47723
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
47624
47724
|
label: t("BPA_CLOSE"),
|
|
47625
47725
|
onSubmit: closeModal
|
|
47626
|
-
})), /*#__PURE__*/React.createElement("br", null), !isCitizenDeclared && /*#__PURE__*/React.createElement("div", {
|
|
47726
|
+
})), /*#__PURE__*/React.createElement("br", null), !isCitizenDeclared && !isOTPVerified && /*#__PURE__*/React.createElement("div", {
|
|
47727
|
+
style: {
|
|
47728
|
+
display: "flex",
|
|
47729
|
+
justifyContent: "flex-end"
|
|
47730
|
+
}
|
|
47731
|
+
}, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
47732
|
+
label: t("BPA_UPLOAD"),
|
|
47733
|
+
onSubmit: handleGetOTPClick,
|
|
47734
|
+
disabled: !isValidMobileNumber
|
|
47735
|
+
})), showOTPInput && !isCitizenDeclared && !isOTPVerified && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_OTP")), /*#__PURE__*/React.createElement(OTPInput, {
|
|
47736
|
+
length: 6,
|
|
47737
|
+
onChange: value => setOTP(value),
|
|
47738
|
+
value: otp
|
|
47739
|
+
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
47740
|
+
label: t("VERIFY_OTP"),
|
|
47741
|
+
onSubmit: handleVerifyOTPClick
|
|
47742
|
+
}), otpError && /*#__PURE__*/React.createElement(CardLabel, {
|
|
47743
|
+
style: {
|
|
47744
|
+
color: "red"
|
|
47745
|
+
}
|
|
47746
|
+
}, t(otpError)), otpSuccess && /*#__PURE__*/React.createElement(CardLabel, {
|
|
47747
|
+
style: {
|
|
47748
|
+
color: "green"
|
|
47749
|
+
}
|
|
47750
|
+
}, t(otpSuccess))), isOTPVerified && !isCitizenDeclared && /*#__PURE__*/React.createElement("div", {
|
|
47627
47751
|
style: {
|
|
47628
47752
|
display: "flex",
|
|
47629
47753
|
justifyContent: "flex-end"
|
|
47630
47754
|
}
|
|
47631
47755
|
}, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
47632
47756
|
label: t("CHB_UPLOAD"),
|
|
47633
|
-
onSubmit: uploadSelfDeclaration
|
|
47634
|
-
|
|
47635
|
-
})))), loader && /*#__PURE__*/React.createElement(Loader, {
|
|
47757
|
+
onSubmit: uploadSelfDeclaration
|
|
47758
|
+
}))))), loader && /*#__PURE__*/React.createElement(Loader, {
|
|
47636
47759
|
page: true
|
|
47637
47760
|
}));
|
|
47638
47761
|
};
|