@mseva/digit-ui-module-core 1.0.16 → 1.0.18
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 +657 -511
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +135 -79
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,25 +11,6 @@ var ReactTooltip = _interopDefault(require('react-tooltip'));
|
|
|
11
11
|
var redux = require('redux');
|
|
12
12
|
var thunk = _interopDefault(require('redux-thunk'));
|
|
13
13
|
|
|
14
|
-
function _extends() {
|
|
15
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
16
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
17
|
-
var t = arguments[e];
|
|
18
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
19
|
-
}
|
|
20
|
-
return n;
|
|
21
|
-
}, _extends.apply(null, arguments);
|
|
22
|
-
}
|
|
23
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
24
|
-
if (null == r) return {};
|
|
25
|
-
var t = {};
|
|
26
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
27
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
28
|
-
t[n] = r[n];
|
|
29
|
-
}
|
|
30
|
-
return t;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
14
|
const quickServiceModules = {
|
|
34
15
|
modules: [{
|
|
35
16
|
moduleCode: "PGR",
|
|
@@ -6108,7 +6089,7 @@ const EmployeeQuickServicesCard = _ref => {
|
|
|
6108
6089
|
borderRadius: "8px"
|
|
6109
6090
|
}
|
|
6110
6091
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
6111
|
-
to:
|
|
6092
|
+
to: `${(_updatedModuleData$ = updatedModuleData[0]) === null || _updatedModuleData$ === void 0 ? void 0 : _updatedModuleData$.routes}`
|
|
6112
6093
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6113
6094
|
className: "employee-dashboard-quick-service-card-module-icon",
|
|
6114
6095
|
style: {
|
|
@@ -6122,7 +6103,7 @@ const EmployeeQuickServicesCard = _ref => {
|
|
|
6122
6103
|
backgroundColor: (_updatedModuleData$2 = updatedModuleData[0]) === null || _updatedModuleData$2 === void 0 ? void 0 : _updatedModuleData$2.bgColor
|
|
6123
6104
|
}
|
|
6124
6105
|
}, iconSelector(moduleData.code))), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
6125
|
-
to:
|
|
6106
|
+
to: `${(_updatedModuleData$3 = updatedModuleData[0]) === null || _updatedModuleData$3 === void 0 ? void 0 : _updatedModuleData$3.routes}`,
|
|
6126
6107
|
style: {
|
|
6127
6108
|
width: "100%"
|
|
6128
6109
|
}
|
|
@@ -6140,7 +6121,7 @@ const EmployeeQuickServicesCard = _ref => {
|
|
|
6140
6121
|
};
|
|
6141
6122
|
|
|
6142
6123
|
const processLinkData = (newData, code, t) => {
|
|
6143
|
-
const obj = newData === null || newData === void 0 ? void 0 : newData[
|
|
6124
|
+
const obj = newData === null || newData === void 0 ? void 0 : newData[`${code}`];
|
|
6144
6125
|
if (obj) {
|
|
6145
6126
|
obj.map(link => {
|
|
6146
6127
|
link.link = link["navigationURL"], link.i18nKey = t(link["name"]);
|
|
@@ -6148,8 +6129,8 @@ const processLinkData = (newData, code, t) => {
|
|
|
6148
6129
|
}
|
|
6149
6130
|
const newObj = {
|
|
6150
6131
|
links: obj === null || obj === void 0 ? void 0 : obj.reverse(),
|
|
6151
|
-
header: Digit.Utils.locale.getTransformedLocale(
|
|
6152
|
-
iconName:
|
|
6132
|
+
header: Digit.Utils.locale.getTransformedLocale(`ACTION_TEST_${code}`),
|
|
6133
|
+
iconName: `CITIZEN_${code}_ICON`
|
|
6153
6134
|
};
|
|
6154
6135
|
if (code === "FSM") {
|
|
6155
6136
|
const roleBasedLoginRoutes = [{
|
|
@@ -6170,7 +6151,7 @@ const processLinkData = (newData, code, t) => {
|
|
|
6170
6151
|
link: from,
|
|
6171
6152
|
i18nKey: t(dashoardLink)
|
|
6172
6153
|
});else newObj === null || newObj === void 0 ? void 0 : (_newObj$links2 = newObj.links) === null || _newObj$links2 === void 0 ? void 0 : _newObj$links2.push({
|
|
6173
|
-
link:
|
|
6154
|
+
link: `/digit-ui/citizen/login`,
|
|
6174
6155
|
state: {
|
|
6175
6156
|
role: "FSM_DSO",
|
|
6176
6157
|
from
|
|
@@ -6287,7 +6268,7 @@ const CitizenHome = _ref3 => {
|
|
|
6287
6268
|
padding: "10px"
|
|
6288
6269
|
},
|
|
6289
6270
|
info: t("CS_FILE_APPLICATION_INFO_LABEL"),
|
|
6290
|
-
text: t(
|
|
6271
|
+
text: t(`BPA_CITIZEN_HOME_STAKEHOLDER_INCLUDES_INFO_LABEL`)
|
|
6291
6272
|
}) : null,
|
|
6292
6273
|
isInfo: code === "OBPS" ? true : false
|
|
6293
6274
|
});
|
|
@@ -6673,7 +6654,7 @@ const SelectMobileNumber = _ref => {
|
|
|
6673
6654
|
var _isCCFEnabled$checkBo;
|
|
6674
6655
|
return /*#__PURE__*/React__default.createElement("span", null, isCCFEnabled === null || isCCFEnabled === void 0 ? void 0 : (_isCCFEnabled$checkBo = isCCFEnabled.checkBoxLabels) === null || _isCCFEnabled$checkBo === void 0 ? void 0 : _isCCFEnabled$checkBo.map((data, index) => {
|
|
6675
6656
|
var _isCCFEnabled$checkBo2;
|
|
6676
|
-
return /*#__PURE__*/React__default.createElement("span", null, (data === null || data === void 0 ? void 0 : data.linkPrefix) && /*#__PURE__*/React__default.createElement("span", null, t(
|
|
6657
|
+
return /*#__PURE__*/React__default.createElement("span", null, (data === null || data === void 0 ? void 0 : data.linkPrefix) && /*#__PURE__*/React__default.createElement("span", null, t(`${data === null || data === void 0 ? void 0 : data.linkPrefix}_`)), (data === null || data === void 0 ? void 0 : data.link) && /*#__PURE__*/React__default.createElement("span", {
|
|
6677
6658
|
id: data === null || data === void 0 ? void 0 : data.linkId,
|
|
6678
6659
|
onClick: e => {
|
|
6679
6660
|
onLinkClick(e);
|
|
@@ -6682,7 +6663,7 @@ const SelectMobileNumber = _ref => {
|
|
|
6682
6663
|
color: "#a82227",
|
|
6683
6664
|
cursor: "pointer"
|
|
6684
6665
|
}
|
|
6685
|
-
}, t(
|
|
6666
|
+
}, t(`${data === null || data === void 0 ? void 0 : data.link}_`)), (data === null || data === void 0 ? void 0 : data.linkPostfix) && /*#__PURE__*/React__default.createElement("span", null, t(`${data === null || data === void 0 ? void 0 : data.linkPostfix}_`)), index == (isCCFEnabled === null || isCCFEnabled === void 0 ? void 0 : (_isCCFEnabled$checkBo2 = isCCFEnabled.checkBoxLabels) === null || _isCCFEnabled$checkBo2 === void 0 ? void 0 : _isCCFEnabled$checkBo2.length) - 1 && t("LABEL"));
|
|
6686
6667
|
}));
|
|
6687
6668
|
};
|
|
6688
6669
|
const validateMobileNumber = () => {
|
|
@@ -6818,7 +6799,10 @@ const SelectOtp = _ref => {
|
|
|
6818
6799
|
userType: getUserType()
|
|
6819
6800
|
};
|
|
6820
6801
|
return Promise.resolve(sendOtp({
|
|
6821
|
-
otp:
|
|
6802
|
+
otp: {
|
|
6803
|
+
...data,
|
|
6804
|
+
...TYPE_REGISTER
|
|
6805
|
+
}
|
|
6822
6806
|
})).then(function (res) {
|
|
6823
6807
|
if (res !== null && res !== void 0 && res[1]) {
|
|
6824
6808
|
console.log("gggg", res === null || res === void 0 ? void 0 : res[1], typeof (res === null || res === void 0 ? void 0 : res[1]));
|
|
@@ -6851,7 +6835,7 @@ const SelectOtp = _ref => {
|
|
|
6851
6835
|
length: 6,
|
|
6852
6836
|
onChange: onOtpChange,
|
|
6853
6837
|
value: otp
|
|
6854
|
-
}), timeLeft > 0 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("CS_RESEND_ANOTHER_OTP")
|
|
6838
|
+
}), timeLeft > 0 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, `${t("CS_RESEND_ANOTHER_OTP")} ${timeLeft} ${t("CS_RESEND_SECONDS")}`) : /*#__PURE__*/React__default.createElement("p", {
|
|
6855
6839
|
className: "card-text-button",
|
|
6856
6840
|
onClick: handleResendOtp
|
|
6857
6841
|
}, t("CS_RESEND_OTP")), !error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, null, t("CS_INVALID_OTP")));
|
|
@@ -6865,7 +6849,7 @@ const SelectOtp = _ref => {
|
|
|
6865
6849
|
length: 6,
|
|
6866
6850
|
onChange: onOtpChange,
|
|
6867
6851
|
value: otp
|
|
6868
|
-
}), timeLeft > 0 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("CS_RESEND_ANOTHER_OTP")
|
|
6852
|
+
}), timeLeft > 0 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, `${t("CS_RESEND_ANOTHER_OTP")} ${timeLeft} ${t("CS_RESEND_SECONDS")}`) : /*#__PURE__*/React__default.createElement("p", {
|
|
6869
6853
|
className: "card-text-button",
|
|
6870
6854
|
onClick: handleResendOtp
|
|
6871
6855
|
}, t("CS_RESEND_OTP")), !error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, null, t("CS_INVALID_OTP")), !errorRegister && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, null, t("CS_ALREADY_REGISTERED")));
|
|
@@ -8401,8 +8385,6 @@ function subYears(dirtyDate, dirtyAmount) {
|
|
|
8401
8385
|
return addYears(dirtyDate, -amount);
|
|
8402
8386
|
}
|
|
8403
8387
|
|
|
8404
|
-
const _excluded = ["ResponseInfo", "UserRequest"],
|
|
8405
|
-
_excluded2 = ["ResponseInfo", "UserRequest"];
|
|
8406
8388
|
const TYPE_REGISTER = {
|
|
8407
8389
|
type: "register"
|
|
8408
8390
|
};
|
|
@@ -8489,43 +8471,53 @@ const Login = _ref => {
|
|
|
8489
8471
|
for (const key in step.texts) {
|
|
8490
8472
|
texts[key] = t(step.texts[key]);
|
|
8491
8473
|
}
|
|
8492
|
-
return
|
|
8474
|
+
return {
|
|
8475
|
+
...step,
|
|
8493
8476
|
texts
|
|
8494
|
-
}
|
|
8477
|
+
};
|
|
8495
8478
|
}, [loginSteps]));
|
|
8496
8479
|
const getUserType = () => Digit.UserService.getType();
|
|
8497
8480
|
const handleOtpChange = otp => {
|
|
8498
|
-
setParmas(
|
|
8481
|
+
setParmas({
|
|
8482
|
+
...params,
|
|
8499
8483
|
otp
|
|
8500
|
-
})
|
|
8484
|
+
});
|
|
8501
8485
|
};
|
|
8502
8486
|
const handleMobileChange = event => {
|
|
8503
8487
|
const {
|
|
8504
8488
|
value
|
|
8505
8489
|
} = event.target;
|
|
8506
|
-
setParmas(
|
|
8490
|
+
setParmas({
|
|
8491
|
+
...params,
|
|
8507
8492
|
mobileNumber: value
|
|
8508
|
-
})
|
|
8493
|
+
});
|
|
8509
8494
|
};
|
|
8510
8495
|
const selectMobileNumber = function (mobileNumber) {
|
|
8511
8496
|
try {
|
|
8512
8497
|
setCanSubmitNo(false);
|
|
8513
|
-
setParmas(
|
|
8514
|
-
|
|
8498
|
+
setParmas({
|
|
8499
|
+
...params,
|
|
8500
|
+
...mobileNumber
|
|
8501
|
+
});
|
|
8502
|
+
const data = {
|
|
8503
|
+
...mobileNumber,
|
|
8515
8504
|
tenantId: stateCode,
|
|
8516
8505
|
userType: getUserType()
|
|
8517
|
-
}
|
|
8506
|
+
};
|
|
8518
8507
|
return Promise.resolve(function () {
|
|
8519
8508
|
if (isUserRegistered) {
|
|
8520
8509
|
return Promise.resolve(sendOtp({
|
|
8521
|
-
otp:
|
|
8510
|
+
otp: {
|
|
8511
|
+
...data,
|
|
8512
|
+
...TYPE_LOGIN
|
|
8513
|
+
}
|
|
8522
8514
|
})).then(function (_ref2) {
|
|
8523
8515
|
var _location$state4;
|
|
8524
8516
|
let [res, err] = _ref2;
|
|
8525
8517
|
if (!err) {
|
|
8526
8518
|
var _location$state3;
|
|
8527
8519
|
setCanSubmitNo(true);
|
|
8528
|
-
history.replace(path
|
|
8520
|
+
history.replace(`${path}/otp`, {
|
|
8529
8521
|
from: getFromLocation(location.state, searchParams),
|
|
8530
8522
|
role: (_location$state3 = location.state) === null || _location$state3 === void 0 ? void 0 : _location$state3.role
|
|
8531
8523
|
});
|
|
@@ -8533,7 +8525,7 @@ const Login = _ref => {
|
|
|
8533
8525
|
} else {
|
|
8534
8526
|
setCanSubmitNo(true);
|
|
8535
8527
|
if (!(location.state && location.state.role === "FSM_DSO")) {
|
|
8536
|
-
history.push(
|
|
8528
|
+
history.push(`/digit-ui/citizen/register/name`, {
|
|
8537
8529
|
from: getFromLocation(location.state, searchParams),
|
|
8538
8530
|
data: data
|
|
8539
8531
|
});
|
|
@@ -8547,12 +8539,15 @@ const Login = _ref => {
|
|
|
8547
8539
|
});
|
|
8548
8540
|
} else {
|
|
8549
8541
|
return Promise.resolve(sendOtp({
|
|
8550
|
-
otp:
|
|
8542
|
+
otp: {
|
|
8543
|
+
...data,
|
|
8544
|
+
...TYPE_REGISTER
|
|
8545
|
+
}
|
|
8551
8546
|
})).then(function (_ref3) {
|
|
8552
8547
|
let [res, err] = _ref3;
|
|
8553
8548
|
if (!err) {
|
|
8554
8549
|
setCanSubmitNo(true);
|
|
8555
|
-
history.replace(path
|
|
8550
|
+
history.replace(`${path}/otp`, {
|
|
8556
8551
|
from: getFromLocation(location.state, searchParams)
|
|
8557
8552
|
});
|
|
8558
8553
|
return;
|
|
@@ -8576,10 +8571,12 @@ const Login = _ref => {
|
|
|
8576
8571
|
}
|
|
8577
8572
|
const selectName = function (name) {
|
|
8578
8573
|
try {
|
|
8579
|
-
const data =
|
|
8574
|
+
const data = {
|
|
8575
|
+
...params,
|
|
8580
8576
|
tenantId: stateCode,
|
|
8581
|
-
userType: getUserType()
|
|
8582
|
-
|
|
8577
|
+
userType: getUserType(),
|
|
8578
|
+
...name
|
|
8579
|
+
};
|
|
8583
8580
|
console.log("name", name);
|
|
8584
8581
|
const _temp = function () {
|
|
8585
8582
|
if (selectCommencementDate(name.dob)) {
|
|
@@ -8588,15 +8585,21 @@ const Login = _ref => {
|
|
|
8588
8585
|
setError(false);
|
|
8589
8586
|
}, 3000);
|
|
8590
8587
|
} else {
|
|
8591
|
-
setParmas(
|
|
8588
|
+
setParmas({
|
|
8589
|
+
...params,
|
|
8590
|
+
...name
|
|
8591
|
+
});
|
|
8592
8592
|
setCanSubmitName(true);
|
|
8593
8593
|
return Promise.resolve(sendOtp({
|
|
8594
|
-
otp:
|
|
8594
|
+
otp: {
|
|
8595
|
+
...data,
|
|
8596
|
+
...TYPE_REGISTER
|
|
8597
|
+
}
|
|
8595
8598
|
})).then(function (_ref4) {
|
|
8596
8599
|
let [res, err] = _ref4;
|
|
8597
8600
|
if (res) {
|
|
8598
8601
|
setCanSubmitName(false);
|
|
8599
|
-
history.replace(path
|
|
8602
|
+
history.replace(`${path}/otp`, {
|
|
8600
8603
|
from: getFromLocation(location.state, searchParams)
|
|
8601
8604
|
});
|
|
8602
8605
|
} else {
|
|
@@ -8631,9 +8634,10 @@ const Login = _ref => {
|
|
|
8631
8634
|
return Promise.resolve(Digit.UserService.authenticate(requestData)).then(function (_ref5) {
|
|
8632
8635
|
var _location$state6, _window, _window$globalConfigs;
|
|
8633
8636
|
let {
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
tokens
|
|
8637
|
+
ResponseInfo,
|
|
8638
|
+
UserRequest: info,
|
|
8639
|
+
...tokens
|
|
8640
|
+
} = _ref5;
|
|
8637
8641
|
if ((_location$state6 = location.state) !== null && _location$state6 !== void 0 && _location$state6.role) {
|
|
8638
8642
|
const roleInfo = info.roles.find(userRole => userRole.code === location.state.role);
|
|
8639
8643
|
if (!roleInfo || !roleInfo.code) {
|
|
@@ -8645,9 +8649,10 @@ const Login = _ref => {
|
|
|
8645
8649
|
if ((_window = window) !== null && _window !== void 0 && (_window$globalConfigs = _window.globalConfigs) !== null && _window$globalConfigs !== void 0 && _window$globalConfigs.getConfig("ENABLE_SINGLEINSTANCE")) {
|
|
8646
8650
|
info.tenantId = Digit.ULBService.getStateId();
|
|
8647
8651
|
}
|
|
8648
|
-
setUser(
|
|
8649
|
-
info
|
|
8650
|
-
|
|
8652
|
+
setUser({
|
|
8653
|
+
info,
|
|
8654
|
+
...tokens
|
|
8655
|
+
});
|
|
8651
8656
|
});
|
|
8652
8657
|
} else {
|
|
8653
8658
|
const _temp2 = function () {
|
|
@@ -8661,15 +8666,17 @@ const Login = _ref => {
|
|
|
8661
8666
|
return Promise.resolve(Digit.UserService.registerUser(requestData, stateCode)).then(function (_ref6) {
|
|
8662
8667
|
var _window2, _window2$globalConfig;
|
|
8663
8668
|
let {
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
tokens
|
|
8669
|
+
ResponseInfo,
|
|
8670
|
+
UserRequest: info,
|
|
8671
|
+
...tokens
|
|
8672
|
+
} = _ref6;
|
|
8667
8673
|
if ((_window2 = window) !== null && _window2 !== void 0 && (_window2$globalConfig = _window2.globalConfigs) !== null && _window2$globalConfig !== void 0 && _window2$globalConfig.getConfig("ENABLE_SINGLEINSTANCE")) {
|
|
8668
8674
|
info.tenantId = Digit.ULBService.getStateId();
|
|
8669
8675
|
}
|
|
8670
|
-
setUser(
|
|
8671
|
-
info
|
|
8672
|
-
|
|
8676
|
+
setUser({
|
|
8677
|
+
info,
|
|
8678
|
+
...tokens
|
|
8679
|
+
});
|
|
8673
8680
|
});
|
|
8674
8681
|
}
|
|
8675
8682
|
}();
|
|
@@ -8697,13 +8704,19 @@ const Login = _ref => {
|
|
|
8697
8704
|
const _temp4 = function () {
|
|
8698
8705
|
if (!isUserRegistered) {
|
|
8699
8706
|
return Promise.resolve(sendOtp({
|
|
8700
|
-
otp:
|
|
8707
|
+
otp: {
|
|
8708
|
+
...data,
|
|
8709
|
+
...TYPE_REGISTER
|
|
8710
|
+
}
|
|
8701
8711
|
})).then(function () {});
|
|
8702
8712
|
} else {
|
|
8703
8713
|
const _temp3 = function () {
|
|
8704
8714
|
if (isUserRegistered) {
|
|
8705
8715
|
return Promise.resolve(sendOtp({
|
|
8706
|
-
otp:
|
|
8716
|
+
otp: {
|
|
8717
|
+
...data,
|
|
8718
|
+
...TYPE_LOGIN
|
|
8719
|
+
}
|
|
8707
8720
|
})).then(function () {});
|
|
8708
8721
|
}
|
|
8709
8722
|
}();
|
|
@@ -8727,7 +8740,7 @@ const Login = _ref => {
|
|
|
8727
8740
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
8728
8741
|
className: "citizen-form-wrapper"
|
|
8729
8742
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.AppContainer, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.BackButton, null), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
8730
|
-
path:
|
|
8743
|
+
path: `${path}`,
|
|
8731
8744
|
exact: true
|
|
8732
8745
|
}, /*#__PURE__*/React__default.createElement(SelectMobileNumber, {
|
|
8733
8746
|
onSelect: selectMobileNumber,
|
|
@@ -8738,13 +8751,15 @@ const Login = _ref => {
|
|
|
8738
8751
|
showRegisterLink: isUserRegistered && !((_location$state7 = location.state) !== null && _location$state7 !== void 0 && _location$state7.role),
|
|
8739
8752
|
t: t
|
|
8740
8753
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
8741
|
-
path: path
|
|
8754
|
+
path: `${path}/otp`
|
|
8742
8755
|
}, /*#__PURE__*/React__default.createElement(SelectOtp, {
|
|
8743
|
-
config:
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8756
|
+
config: {
|
|
8757
|
+
...stepItems[1],
|
|
8758
|
+
texts: {
|
|
8759
|
+
...stepItems[1].texts,
|
|
8760
|
+
cardText: `${stepItems[1].texts.cardText} ${params.mobileNumber || ""}`
|
|
8761
|
+
}
|
|
8762
|
+
},
|
|
8748
8763
|
onOtpChange: handleOtpChange,
|
|
8749
8764
|
onResend: resendOtp,
|
|
8750
8765
|
onSelect: selectOtp,
|
|
@@ -8753,7 +8768,7 @@ const Login = _ref => {
|
|
|
8753
8768
|
canSubmit: canSubmitOtp,
|
|
8754
8769
|
t: t
|
|
8755
8770
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
8756
|
-
path: path
|
|
8771
|
+
path: `${path}/name`
|
|
8757
8772
|
}, /*#__PURE__*/React__default.createElement(SelectName, {
|
|
8758
8773
|
config: stepItems[2],
|
|
8759
8774
|
onSelect: selectName,
|
|
@@ -8807,6 +8822,16 @@ const loginConfig = [{
|
|
|
8807
8822
|
}]
|
|
8808
8823
|
}];
|
|
8809
8824
|
|
|
8825
|
+
function _extends() {
|
|
8826
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
8827
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
8828
|
+
var t = arguments[e];
|
|
8829
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
8830
|
+
}
|
|
8831
|
+
return n;
|
|
8832
|
+
}, _extends.apply(null, arguments);
|
|
8833
|
+
}
|
|
8834
|
+
|
|
8810
8835
|
var isHTMLElement = value => value instanceof HTMLElement;
|
|
8811
8836
|
const EVENTS = {
|
|
8812
8837
|
BLUR: 'blur',
|
|
@@ -8924,7 +8949,7 @@ var getMultipleSelectValue = options => [...options].filter(_ref2 => {
|
|
|
8924
8949
|
var isRadioInput = element => element.type === 'radio';
|
|
8925
8950
|
var isFileInput = element => element.type === 'file';
|
|
8926
8951
|
var isCheckBoxInput = element => element.type === 'checkbox';
|
|
8927
|
-
var isMultipleSelect = element => element.type === SELECT
|
|
8952
|
+
var isMultipleSelect = element => element.type === `${SELECT}-multiple`;
|
|
8928
8953
|
const defaultResult = {
|
|
8929
8954
|
value: false,
|
|
8930
8955
|
isValid: false
|
|
@@ -9066,7 +9091,7 @@ function findRemovedFieldAndRemoveListener(fieldsRef, handleChange, field, shall
|
|
|
9066
9091
|
}
|
|
9067
9092
|
if (isDetached(option.ref) && isSameRef(option, option.ref) || forceDelete) {
|
|
9068
9093
|
removeAllEventListeners(option.ref, handleChange);
|
|
9069
|
-
unset(fieldRef.options,
|
|
9094
|
+
unset(fieldRef.options, `[${index}]`);
|
|
9070
9095
|
}
|
|
9071
9096
|
});
|
|
9072
9097
|
if (fieldRef.options && !compact(fieldRef.options).length) {
|
|
@@ -9362,7 +9387,7 @@ const getPath = function (rootPath, values, paths) {
|
|
|
9362
9387
|
paths = [];
|
|
9363
9388
|
}
|
|
9364
9389
|
for (const property in values) {
|
|
9365
|
-
const rootName = rootPath + (isObject(values) ?
|
|
9390
|
+
const rootName = rootPath + (isObject(values) ? `.${property}` : `[${property}]`);
|
|
9366
9391
|
isPrimitive(values[property]) ? paths.push(rootName) : getPath(rootName, values[property], paths);
|
|
9367
9392
|
}
|
|
9368
9393
|
return paths;
|
|
@@ -9402,9 +9427,9 @@ var skipValidation = _ref8 => {
|
|
|
9402
9427
|
return true;
|
|
9403
9428
|
};
|
|
9404
9429
|
var getFieldArrayParentName = name => name.substring(0, name.indexOf('['));
|
|
9405
|
-
const isMatchFieldArrayName = (name, searchName) => RegExp(
|
|
9430
|
+
const isMatchFieldArrayName = (name, searchName) => RegExp(`^${searchName}([|.)\\d+`.replace(/\[/g, '\\[').replace(/\]/g, '\\]')).test(name);
|
|
9406
9431
|
var isNameInFieldArray = (names, name) => [...names].some(current => isMatchFieldArrayName(name, current));
|
|
9407
|
-
var isSelectInput = element => element.type === SELECT
|
|
9432
|
+
var isSelectInput = element => element.type === `${SELECT}-one`;
|
|
9408
9433
|
function onDomRemove(fieldsRef, removeFieldEventListenerAndRef) {
|
|
9409
9434
|
const observer = new MutationObserver(() => {
|
|
9410
9435
|
for (const field of Object.values(fieldsRef.current)) {
|
|
@@ -9597,10 +9622,10 @@ function useForm(_temp4) {
|
|
|
9597
9622
|
} else if (isMultipleSelect(ref)) {
|
|
9598
9623
|
[...ref.options].forEach(selectRef => selectRef.selected = value.includes(selectRef.value));
|
|
9599
9624
|
} else if (isCheckBoxInput(ref) && options) {
|
|
9600
|
-
options.length > 1 ? options.forEach(
|
|
9625
|
+
options.length > 1 ? options.forEach(_ref10 => {
|
|
9601
9626
|
let {
|
|
9602
9627
|
ref: checkboxRef
|
|
9603
|
-
} =
|
|
9628
|
+
} = _ref10;
|
|
9604
9629
|
return checkboxRef.checked = Array.isArray(value) ? !!value.find(data => data === checkboxRef.value) : value === checkboxRef.value;
|
|
9605
9630
|
}) : options[0].ref.checked = !!value;
|
|
9606
9631
|
} else {
|
|
@@ -9653,10 +9678,10 @@ function useForm(_temp4) {
|
|
|
9653
9678
|
}, [shouldRenderBaseOnError, isValidateAllFieldCriteria]);
|
|
9654
9679
|
const executeSchemaOrResolverValidation = React.useCallback(function (names) {
|
|
9655
9680
|
try {
|
|
9656
|
-
return Promise.resolve(resolverRef.current(getValues(), contextRef.current, isValidateAllFieldCriteria)).then(function (
|
|
9681
|
+
return Promise.resolve(resolverRef.current(getValues(), contextRef.current, isValidateAllFieldCriteria)).then(function (_ref11) {
|
|
9657
9682
|
let {
|
|
9658
9683
|
errors
|
|
9659
|
-
} =
|
|
9684
|
+
} = _ref11;
|
|
9660
9685
|
const previousFormIsValid = formStateRef.current.isValid;
|
|
9661
9686
|
if (Array.isArray(names)) {
|
|
9662
9687
|
const isInputsValid = names.map(name => {
|
|
@@ -9714,11 +9739,11 @@ function useForm(_temp4) {
|
|
|
9714
9739
|
return Promise.reject(e);
|
|
9715
9740
|
}
|
|
9716
9741
|
}, [executeSchemaOrResolverValidation, executeValidation]);
|
|
9717
|
-
const setInternalValues = React.useCallback((name, value,
|
|
9742
|
+
const setInternalValues = React.useCallback((name, value, _ref12) => {
|
|
9718
9743
|
let {
|
|
9719
9744
|
shouldDirty,
|
|
9720
9745
|
shouldValidate
|
|
9721
|
-
} =
|
|
9746
|
+
} = _ref12;
|
|
9722
9747
|
const data = {};
|
|
9723
9748
|
set(data, name, value);
|
|
9724
9749
|
for (const fieldName of getPath(name, value)) {
|
|
@@ -9773,11 +9798,11 @@ function useForm(_temp4) {
|
|
|
9773
9798
|
isFieldWatched(name) && updateFormState();
|
|
9774
9799
|
renderWatchedInputs(name);
|
|
9775
9800
|
}
|
|
9776
|
-
handleChangeRef.current = handleChangeRef.current ? handleChangeRef.current : function (
|
|
9801
|
+
handleChangeRef.current = handleChangeRef.current ? handleChangeRef.current : function (_ref13) {
|
|
9777
9802
|
let {
|
|
9778
9803
|
type,
|
|
9779
9804
|
target
|
|
9780
|
-
} =
|
|
9805
|
+
} = _ref13;
|
|
9781
9806
|
try {
|
|
9782
9807
|
let name = target.name;
|
|
9783
9808
|
const field = fieldsRef.current[name];
|
|
@@ -9815,10 +9840,10 @@ function useForm(_temp4) {
|
|
|
9815
9840
|
updateIsValidating();
|
|
9816
9841
|
const _temp7 = function () {
|
|
9817
9842
|
if (resolverRef.current) {
|
|
9818
|
-
return Promise.resolve(resolverRef.current(getValues(), contextRef.current, isValidateAllFieldCriteria)).then(function (
|
|
9843
|
+
return Promise.resolve(resolverRef.current(getValues(), contextRef.current, isValidateAllFieldCriteria)).then(function (_ref14) {
|
|
9819
9844
|
let {
|
|
9820
9845
|
errors
|
|
9821
|
-
} =
|
|
9846
|
+
} = _ref14;
|
|
9822
9847
|
const previousFormIsValid = formStateRef.current.isValid;
|
|
9823
9848
|
error = get(errors, name);
|
|
9824
9849
|
if (isCheckBoxInput(target) && !error && resolverRef.current) {
|
|
@@ -9878,10 +9903,10 @@ function useForm(_temp4) {
|
|
|
9878
9903
|
}
|
|
9879
9904
|
try {
|
|
9880
9905
|
const newDefaultValues = isEmptyObject(fieldsRef.current) ? defaultValuesRef.current : {};
|
|
9881
|
-
return Promise.resolve(resolverRef.current(Object.assign(Object.assign(Object.assign({}, newDefaultValues), getValues()), values), contextRef.current, isValidateAllFieldCriteria)).then(function (
|
|
9906
|
+
return Promise.resolve(resolverRef.current(Object.assign(Object.assign(Object.assign({}, newDefaultValues), getValues()), values), contextRef.current, isValidateAllFieldCriteria)).then(function (_ref15) {
|
|
9882
9907
|
let {
|
|
9883
9908
|
errors
|
|
9884
|
-
} =
|
|
9909
|
+
} = _ref15;
|
|
9885
9910
|
const isValid = isEmptyObject(errors);
|
|
9886
9911
|
formStateRef.current.isValid !== isValid && updateFormState({
|
|
9887
9912
|
isValid
|
|
@@ -9974,9 +9999,9 @@ function useForm(_temp4) {
|
|
|
9974
9999
|
}
|
|
9975
10000
|
if (process.env.NODE_ENV !== 'production') {
|
|
9976
10001
|
if (!ref.name) {
|
|
9977
|
-
return console.warn('📋 Field is missing `name` attribute', ref,
|
|
10002
|
+
return console.warn('📋 Field is missing `name` attribute', ref, `https://react-hook-form.com/api#useForm`);
|
|
9978
10003
|
}
|
|
9979
|
-
if (fieldArrayNamesRef.current.has(ref.name.split(/\[\d+\]$/)[0]) && !RegExp(
|
|
10004
|
+
if (fieldArrayNamesRef.current.has(ref.name.split(/\[\d+\]$/)[0]) && !RegExp(`^${ref.name.split(/\[\d+\]$/)[0]}[\\d+].\\w+`.replace(/\[/g, '\\[').replace(/\]/g, '\\]')).test(ref.name)) {
|
|
9980
10005
|
return console.warn('📋 `name` prop should be in object shape: name="test[index].name"', ref, 'https://react-hook-form.com/api#useFieldArray');
|
|
9981
10006
|
}
|
|
9982
10007
|
}
|
|
@@ -10065,8 +10090,8 @@ function useForm(_temp4) {
|
|
|
10065
10090
|
isSubmitting: true
|
|
10066
10091
|
});
|
|
10067
10092
|
return Promise.resolve(_finallyRethrows(function () {
|
|
10068
|
-
function
|
|
10069
|
-
const
|
|
10093
|
+
function _temp13() {
|
|
10094
|
+
const _temp11 = function () {
|
|
10070
10095
|
if (isEmptyObject(fieldErrors) && Object.keys(formStateRef.current.errors).every(name => name in fieldsRef.current)) {
|
|
10071
10096
|
updateFormState({
|
|
10072
10097
|
errors: {},
|
|
@@ -10074,23 +10099,23 @@ function useForm(_temp4) {
|
|
|
10074
10099
|
});
|
|
10075
10100
|
return Promise.resolve(onValid(fieldValues, e)).then(function () {});
|
|
10076
10101
|
} else {
|
|
10077
|
-
function
|
|
10102
|
+
function _temp10(_onInvalid) {
|
|
10078
10103
|
_onInvalid;
|
|
10079
10104
|
shouldFocusError && focusOnErrorField(fieldsRef.current, formStateRef.current.errors);
|
|
10080
10105
|
}
|
|
10081
10106
|
formStateRef.current.errors = Object.assign(Object.assign({}, formStateRef.current.errors), fieldErrors);
|
|
10082
|
-
return onInvalid ? Promise.resolve(onInvalid(formStateRef.current.errors, e)).then(
|
|
10107
|
+
return onInvalid ? Promise.resolve(onInvalid(formStateRef.current.errors, e)).then(_temp10) : _temp10(onInvalid);
|
|
10083
10108
|
}
|
|
10084
10109
|
}();
|
|
10085
|
-
if (
|
|
10110
|
+
if (_temp11 && _temp11.then) return _temp11.then(function () {});
|
|
10086
10111
|
}
|
|
10087
|
-
const
|
|
10112
|
+
const _temp12 = function () {
|
|
10088
10113
|
if (resolverRef.current) {
|
|
10089
|
-
return Promise.resolve(resolverRef.current(fieldValues, contextRef.current, isValidateAllFieldCriteria)).then(function (
|
|
10114
|
+
return Promise.resolve(resolverRef.current(fieldValues, contextRef.current, isValidateAllFieldCriteria)).then(function (_ref16) {
|
|
10090
10115
|
let {
|
|
10091
10116
|
errors,
|
|
10092
10117
|
values
|
|
10093
|
-
} =
|
|
10118
|
+
} = _ref16;
|
|
10094
10119
|
formStateRef.current.errors = fieldErrors = errors;
|
|
10095
10120
|
fieldValues = values;
|
|
10096
10121
|
});
|
|
@@ -10116,7 +10141,7 @@ function useForm(_temp4) {
|
|
|
10116
10141
|
});
|
|
10117
10142
|
}
|
|
10118
10143
|
}();
|
|
10119
|
-
return
|
|
10144
|
+
return _temp12 && _temp12.then ? _temp12.then(_temp13) : _temp13(_temp12);
|
|
10120
10145
|
}, function (_wasThrown, _result6) {
|
|
10121
10146
|
formStateRef.current.isSubmitting = false;
|
|
10122
10147
|
updateFormState({
|
|
@@ -10132,7 +10157,7 @@ function useForm(_temp4) {
|
|
|
10132
10157
|
return Promise.reject(e);
|
|
10133
10158
|
}
|
|
10134
10159
|
}, [shouldFocusError, isValidateAllFieldCriteria]);
|
|
10135
|
-
const resetRefs =
|
|
10160
|
+
const resetRefs = _ref17 => {
|
|
10136
10161
|
let {
|
|
10137
10162
|
errors,
|
|
10138
10163
|
isDirty,
|
|
@@ -10141,7 +10166,7 @@ function useForm(_temp4) {
|
|
|
10141
10166
|
isValid,
|
|
10142
10167
|
submitCount,
|
|
10143
10168
|
dirtyFields
|
|
10144
|
-
} =
|
|
10169
|
+
} = _ref17;
|
|
10145
10170
|
if (!isValid) {
|
|
10146
10171
|
validFieldsRef.current = {};
|
|
10147
10172
|
fieldsWithValidationRef.current = {};
|
|
@@ -10274,14 +10299,14 @@ const FormContext = React.createContext(null);
|
|
|
10274
10299
|
FormContext.displayName = 'RHFContext';
|
|
10275
10300
|
const useFormContext = () => React.useContext(FormContext);
|
|
10276
10301
|
var getInputValue = event => isPrimitive(event) || !isObject(event.target) || isObject(event.target) && !event.type ? event : isUndefined(event.target.value) ? event.target.checked : event.target.value;
|
|
10277
|
-
function useController(
|
|
10302
|
+
function useController(_ref19) {
|
|
10278
10303
|
let {
|
|
10279
10304
|
name,
|
|
10280
10305
|
rules,
|
|
10281
10306
|
defaultValue,
|
|
10282
10307
|
control,
|
|
10283
10308
|
onFocus
|
|
10284
|
-
} =
|
|
10309
|
+
} = _ref19;
|
|
10285
10310
|
const methods = useFormContext();
|
|
10286
10311
|
if (process.env.NODE_ENV !== 'production') {
|
|
10287
10312
|
if (!control && !methods) {
|
|
@@ -10326,7 +10351,7 @@ function useController(_ref17) {
|
|
|
10326
10351
|
}
|
|
10327
10352
|
if (process.env.NODE_ENV !== 'production') {
|
|
10328
10353
|
if (!isFunction(ref.current.focus)) {
|
|
10329
|
-
console.warn(
|
|
10354
|
+
console.warn(`📋 'ref' from Controller render prop must be attached to a React component or a DOM Element whose ref provides a 'focus()' method`);
|
|
10330
10355
|
}
|
|
10331
10356
|
}
|
|
10332
10357
|
}));
|
|
@@ -10337,8 +10362,8 @@ function useController(_ref17) {
|
|
|
10337
10362
|
isSubmitted,
|
|
10338
10363
|
isTouched: !!get(touched, name)
|
|
10339
10364
|
}, mode)), [isReValidateOnBlur, isReValidateOnChange, isSubmitted, touched, name, mode]);
|
|
10340
|
-
const commonTask = React.useCallback(
|
|
10341
|
-
let [event] =
|
|
10365
|
+
const commonTask = React.useCallback(_ref20 => {
|
|
10366
|
+
let [event] = _ref20;
|
|
10342
10367
|
const data = getInputValue(event);
|
|
10343
10368
|
setInputStateValue(data);
|
|
10344
10369
|
valueRef.current = data;
|
|
@@ -10377,7 +10402,7 @@ function useController(_ref17) {
|
|
|
10377
10402
|
React.useEffect(() => {
|
|
10378
10403
|
if (process.env.NODE_ENV !== 'production') {
|
|
10379
10404
|
if (isUndefined(value)) {
|
|
10380
|
-
console.warn(
|
|
10405
|
+
console.warn(`📋 ${name} is missing in the 'defaultValue' prop of either its Controller (https://react-hook-form.com/api#Controller) or useForm (https://react-hook-form.com/api#useForm)`);
|
|
10381
10406
|
}
|
|
10382
10407
|
if (!isNotFieldArray && isUndefined(defaultValue)) {
|
|
10383
10408
|
console.warn('📋 Controller is missing `defaultValue` prop when using `useFieldArray`. https://react-hook-form.com/api#Controller');
|
|
@@ -10459,17 +10484,16 @@ const BreakLine = _ref => {
|
|
|
10459
10484
|
});
|
|
10460
10485
|
};
|
|
10461
10486
|
|
|
10462
|
-
const _excluded$1 = ["onClick", "style", "children", "className", "ReactRef"];
|
|
10463
10487
|
const Card = _ref => {
|
|
10464
10488
|
var _Digit$UserService$ge;
|
|
10465
10489
|
let {
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10490
|
+
onClick,
|
|
10491
|
+
style,
|
|
10492
|
+
children,
|
|
10493
|
+
className,
|
|
10494
|
+
ReactRef,
|
|
10495
|
+
...props
|
|
10496
|
+
} = _ref;
|
|
10473
10497
|
const {
|
|
10474
10498
|
pathname
|
|
10475
10499
|
} = reactRouterDom.useLocation();
|
|
@@ -10478,7 +10502,7 @@ const Card = _ref => {
|
|
|
10478
10502
|
const userType = info === null || info === void 0 ? void 0 : info.type;
|
|
10479
10503
|
const isEmployee = classname === "employee" || userType === "EMPLOYEE";
|
|
10480
10504
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
10481
|
-
className:
|
|
10505
|
+
className: `${isEmployee ? "employeeCard" : "card"} ${className ? className : ""}`,
|
|
10482
10506
|
onClick: onClick,
|
|
10483
10507
|
style: style
|
|
10484
10508
|
}, props, {
|
|
@@ -10488,14 +10512,14 @@ const Card = _ref => {
|
|
|
10488
10512
|
|
|
10489
10513
|
const CardLabel = props => {
|
|
10490
10514
|
return /*#__PURE__*/React__default.createElement("h2", {
|
|
10491
|
-
className:
|
|
10515
|
+
className: `card-label ${props.className}`,
|
|
10492
10516
|
style: props.style
|
|
10493
10517
|
}, props.children);
|
|
10494
10518
|
};
|
|
10495
10519
|
|
|
10496
10520
|
const CardText = props => {
|
|
10497
10521
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
10498
|
-
className:
|
|
10522
|
+
className: `card-text ${props.disable && "disabled"} ${props !== null && props !== void 0 && props.className ? props === null || props === void 0 ? void 0 : props.className : ""}`,
|
|
10499
10523
|
style: props.style
|
|
10500
10524
|
}, props.children);
|
|
10501
10525
|
};
|
|
@@ -10503,7 +10527,7 @@ const CardText = props => {
|
|
|
10503
10527
|
const CardSubHeader = props => {
|
|
10504
10528
|
const user_type = Digit.SessionStorage.get("user_type") === "employee" ? true : false;
|
|
10505
10529
|
return /*#__PURE__*/React__default.createElement("header", {
|
|
10506
|
-
className:
|
|
10530
|
+
className: `${user_type ? "employee-card-sub-header" : "card-sub-header"} ${props !== null && props !== void 0 && props.className ? props === null || props === void 0 ? void 0 : props.className : ""}`,
|
|
10507
10531
|
style: props.style
|
|
10508
10532
|
}, props.children);
|
|
10509
10533
|
};
|
|
@@ -10523,14 +10547,14 @@ const CardLabelDesc = _ref => {
|
|
|
10523
10547
|
className
|
|
10524
10548
|
} = _ref;
|
|
10525
10549
|
return /*#__PURE__*/React__default.createElement("h2", {
|
|
10526
|
-
className:
|
|
10550
|
+
className: `card-label-desc ${className ? className : ""}`,
|
|
10527
10551
|
style: style
|
|
10528
10552
|
}, children);
|
|
10529
10553
|
};
|
|
10530
10554
|
|
|
10531
10555
|
const CardLabelError = props => {
|
|
10532
10556
|
return /*#__PURE__*/React__default.createElement("h2", {
|
|
10533
|
-
className:
|
|
10557
|
+
className: `card-label-error ${props !== null && props !== void 0 && props.className ? props === null || props === void 0 ? void 0 : props.className : ""}`,
|
|
10534
10558
|
style: props.style
|
|
10535
10559
|
}, props.children);
|
|
10536
10560
|
};
|
|
@@ -11428,7 +11452,7 @@ const TextArea = props => {
|
|
|
11428
11452
|
id: props.id,
|
|
11429
11453
|
value: props.value,
|
|
11430
11454
|
onChange: props.onChange,
|
|
11431
|
-
className:
|
|
11455
|
+
className: `${user_type !== "citizen" ? "employee-card-textarea" : "card-textarea"} ${props.disable && "disabled"} ${props !== null && props !== void 0 && props.className ? props === null || props === void 0 ? void 0 : props.className : ""}`,
|
|
11432
11456
|
minLength: props.minLength,
|
|
11433
11457
|
maxLength: props.maxLength,
|
|
11434
11458
|
autoComplete: "off",
|
|
@@ -11465,13 +11489,15 @@ const TextInput = props => {
|
|
|
11465
11489
|
setDate(getDDMMYYYY(value));
|
|
11466
11490
|
};
|
|
11467
11491
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
11468
|
-
className:
|
|
11469
|
-
style: props !== null && props !== void 0 && props.textInputStyle ?
|
|
11492
|
+
className: `text-input ${user_type === "employee" ? "" : "text-input-width"} ${props.className}`,
|
|
11493
|
+
style: props !== null && props !== void 0 && props.textInputStyle ? {
|
|
11494
|
+
...props.textInputStyle
|
|
11495
|
+
} : {}
|
|
11470
11496
|
}, props.isMandatory ? /*#__PURE__*/React__default.createElement("input", {
|
|
11471
11497
|
type: props !== null && props !== void 0 && props.validation && props.ValidationRequired ? props === null || props === void 0 ? void 0 : (_props$validation = props.validation) === null || _props$validation === void 0 ? void 0 : _props$validation.type : props.type || "text",
|
|
11472
11498
|
name: props.name,
|
|
11473
11499
|
id: props.id,
|
|
11474
|
-
className:
|
|
11500
|
+
className: `${user_type ? "employee-card-input-error" : "card-input-error"} ${props.disable && "disabled"}`,
|
|
11475
11501
|
placeholder: props.placeholder,
|
|
11476
11502
|
onChange: event => {
|
|
11477
11503
|
if (props !== null && props !== void 0 && props.onChange) {
|
|
@@ -11483,7 +11509,9 @@ const TextInput = props => {
|
|
|
11483
11509
|
},
|
|
11484
11510
|
ref: props.inputRef,
|
|
11485
11511
|
value: props.value,
|
|
11486
|
-
style:
|
|
11512
|
+
style: {
|
|
11513
|
+
...props.style
|
|
11514
|
+
},
|
|
11487
11515
|
defaultValue: props.defaultValue,
|
|
11488
11516
|
minLength: props.minlength,
|
|
11489
11517
|
maxLength: props.maxlength,
|
|
@@ -11501,7 +11529,7 @@ const TextInput = props => {
|
|
|
11501
11529
|
type: props !== null && props !== void 0 && props.validation && props.ValidationRequired ? props === null || props === void 0 ? void 0 : (_props$validation4 = props.validation) === null || _props$validation4 === void 0 ? void 0 : _props$validation4.type : props.type || "text",
|
|
11502
11530
|
name: props.name,
|
|
11503
11531
|
id: props.id,
|
|
11504
|
-
className:
|
|
11532
|
+
className: `${user_type ? "employee-card-input" : "citizen-card-input"} ${props.disable && "disabled"} focus-visible ${props.errorStyle && "employee-card-input-error"}`,
|
|
11505
11533
|
placeholder: props.placeholder,
|
|
11506
11534
|
onChange: event => {
|
|
11507
11535
|
if (props !== null && props !== void 0 && props.onChange) {
|
|
@@ -11513,7 +11541,9 @@ const TextInput = props => {
|
|
|
11513
11541
|
},
|
|
11514
11542
|
ref: props.inputRef,
|
|
11515
11543
|
value: props.value,
|
|
11516
|
-
style:
|
|
11544
|
+
style: {
|
|
11545
|
+
...props.style
|
|
11546
|
+
},
|
|
11517
11547
|
defaultValue: props.defaultValue,
|
|
11518
11548
|
minLength: props.minlength,
|
|
11519
11549
|
maxLength: props.maxlength,
|
|
@@ -11550,7 +11580,7 @@ function getDDMMYYYY(date) {
|
|
|
11550
11580
|
|
|
11551
11581
|
const ActionBar = props => {
|
|
11552
11582
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11553
|
-
className:
|
|
11583
|
+
className: `action-bar-wrap ${props.className}`,
|
|
11554
11584
|
style: props.style
|
|
11555
11585
|
}, props.children);
|
|
11556
11586
|
};
|
|
@@ -11559,9 +11589,11 @@ const SubmitBar = React.forwardRef((props, ref) => {
|
|
|
11559
11589
|
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
11560
11590
|
ref: ref,
|
|
11561
11591
|
disabled: props.disabled ? true : false,
|
|
11562
|
-
className:
|
|
11592
|
+
className: `${props.disabled ? "submit-bar-disabled" : "submit-bar"} ${props.className ? props.className : ""}`,
|
|
11563
11593
|
type: props.submit ? "submit" : "button",
|
|
11564
|
-
style:
|
|
11594
|
+
style: {
|
|
11595
|
+
...props.style
|
|
11596
|
+
},
|
|
11565
11597
|
onClick: props.onSubmit
|
|
11566
11598
|
}, props.form ? {
|
|
11567
11599
|
form: props.form
|
|
@@ -11577,16 +11609,21 @@ SubmitBar.defaultProps = {};
|
|
|
11577
11609
|
|
|
11578
11610
|
const LabelFieldPair = props => {
|
|
11579
11611
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11580
|
-
style:
|
|
11612
|
+
style: {
|
|
11613
|
+
...props.style
|
|
11614
|
+
},
|
|
11581
11615
|
className: "label-field-pair"
|
|
11582
11616
|
}, props.children);
|
|
11583
11617
|
};
|
|
11584
11618
|
|
|
11585
11619
|
const LinkButton = props => {
|
|
11586
11620
|
return /*#__PURE__*/React__default.createElement("button", {
|
|
11587
|
-
className:
|
|
11621
|
+
className: `card-link cp ${props.className}`,
|
|
11588
11622
|
onClick: props.onClick,
|
|
11589
|
-
style:
|
|
11623
|
+
style: {
|
|
11624
|
+
...props.style,
|
|
11625
|
+
...LinkButton.defaultProps.style
|
|
11626
|
+
}
|
|
11590
11627
|
}, props.label);
|
|
11591
11628
|
};
|
|
11592
11629
|
LinkButton.propTypes = {
|
|
@@ -11621,23 +11658,26 @@ const MobileNumber = props => {
|
|
|
11621
11658
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
11622
11659
|
className: "field-container"
|
|
11623
11660
|
}, !props.hideSpan ? /*#__PURE__*/React__default.createElement("span", {
|
|
11624
|
-
style:
|
|
11661
|
+
style: {
|
|
11625
11662
|
maxWidth: "50px",
|
|
11626
|
-
marginTop: "unset"
|
|
11627
|
-
|
|
11663
|
+
marginTop: "unset",
|
|
11664
|
+
...props.labelStyle
|
|
11665
|
+
},
|
|
11628
11666
|
className: "citizen-card-input citizen-card-input--front"
|
|
11629
11667
|
}, "+91") : null, /*#__PURE__*/React__default.createElement("div", {
|
|
11630
|
-
className:
|
|
11668
|
+
className: `text-input ${user_type === "employee" ? "" : "text-mobile-input-width"} ${props.className}`
|
|
11631
11669
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
11632
11670
|
type: "text",
|
|
11633
11671
|
name: props.name,
|
|
11634
11672
|
id: props.id,
|
|
11635
|
-
className:
|
|
11673
|
+
className: `${user_type ? "employee-card-input" : "citizen-card-input"} ${props.disable && "disabled"} focus-visible ${props.errorStyle && "employee-card-input-error"}`,
|
|
11636
11674
|
placeholder: props.placeholder,
|
|
11637
11675
|
onChange: onChange,
|
|
11638
11676
|
ref: props.inputRef,
|
|
11639
11677
|
value: props.value,
|
|
11640
|
-
style:
|
|
11678
|
+
style: {
|
|
11679
|
+
...props.style
|
|
11680
|
+
},
|
|
11641
11681
|
minLength: props.minlength,
|
|
11642
11682
|
maxLength: props.maxlength,
|
|
11643
11683
|
max: props.max,
|
|
@@ -11692,7 +11732,9 @@ const FormComposer = props => {
|
|
|
11692
11732
|
var _props$appData, _props$appData$Connec, _props$appData$Connec2, _Object$keys, _props$appData2, _props$appData2$Conne, _formData$ConnectionH;
|
|
11693
11733
|
const iseyeIconClicked = sessionStorage.getItem("eyeIconClicked");
|
|
11694
11734
|
if (props !== null && props !== void 0 && props.appData && !(props !== null && props !== void 0 && (_props$appData = props.appData) !== null && _props$appData !== void 0 && (_props$appData$Connec = _props$appData.ConnectionHolderDetails) !== null && _props$appData$Connec !== void 0 && (_props$appData$Connec2 = _props$appData$Connec[0]) !== null && _props$appData$Connec2 !== void 0 && _props$appData$Connec2.sameAsOwnerDetails) && iseyeIconClicked && ((_Object$keys = Object.keys(props === null || props === void 0 ? void 0 : props.appData)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) > 0 && !lodash.isEqual(props === null || props === void 0 ? void 0 : (_props$appData2 = props.appData) === null || _props$appData2 === void 0 ? void 0 : (_props$appData2$Conne = _props$appData2.ConnectionHolderDetails) === null || _props$appData2$Conne === void 0 ? void 0 : _props$appData2$Conne[0], formData === null || formData === void 0 ? void 0 : (_formData$ConnectionH = formData.ConnectionHolderDetails) === null || _formData$ConnectionH === void 0 ? void 0 : _formData$ConnectionH[0])) {
|
|
11695
|
-
reset(
|
|
11735
|
+
reset({
|
|
11736
|
+
...(props === null || props === void 0 ? void 0 : props.appData)
|
|
11737
|
+
});
|
|
11696
11738
|
}
|
|
11697
11739
|
}, [props === null || props === void 0 ? void 0 : props.appData, formData, props === null || props === void 0 ? void 0 : (_props$appData3 = props.appData) === null || _props$appData3 === void 0 ? void 0 : _props$appData3.ConnectionHolderDetails]);
|
|
11698
11740
|
React.useEffect(() => {
|
|
@@ -11724,7 +11766,7 @@ const FormComposer = props => {
|
|
|
11724
11766
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11725
11767
|
className: "field-container"
|
|
11726
11768
|
}, populators !== null && populators !== void 0 && populators.componentInFront ? /*#__PURE__*/React__default.createElement("span", {
|
|
11727
|
-
className:
|
|
11769
|
+
className: `component-in-front ${disable && "disabled"}`
|
|
11728
11770
|
}, populators.componentInFront) : null, /*#__PURE__*/React__default.createElement(TextInput, _extends({
|
|
11729
11771
|
className: "fieldNew"
|
|
11730
11772
|
}, populators, {
|
|
@@ -11756,9 +11798,10 @@ const FormComposer = props => {
|
|
|
11756
11798
|
});
|
|
11757
11799
|
case "custom":
|
|
11758
11800
|
return /*#__PURE__*/React__default.createElement(Controller, {
|
|
11759
|
-
render: props => populators.component(
|
|
11801
|
+
render: props => populators.component({
|
|
11802
|
+
...props,
|
|
11760
11803
|
setValue
|
|
11761
|
-
}
|
|
11804
|
+
}, populators.customProps),
|
|
11762
11805
|
defaultValue: populators.defaultValue,
|
|
11763
11806
|
name: populators === null || populators === void 0 ? void 0 : populators.name,
|
|
11764
11807
|
control: control
|
|
@@ -11858,7 +11901,7 @@ const FormComposer = props => {
|
|
|
11858
11901
|
id: section.headId
|
|
11859
11902
|
}, t(section.head)), /*#__PURE__*/React__default.createElement(CardSectionHeader, {
|
|
11860
11903
|
style: titleStyle,
|
|
11861
|
-
id: section.headId
|
|
11904
|
+
id: `${section.headId}_DES`
|
|
11862
11905
|
}, t(section.subHead)));
|
|
11863
11906
|
} else if (section.head) {
|
|
11864
11907
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(CardSectionHeader, {
|
|
@@ -11894,12 +11937,13 @@ const FormComposer = props => {
|
|
|
11894
11937
|
} : {},
|
|
11895
11938
|
className: "field"
|
|
11896
11939
|
}, fieldSelector(field.type, field.populators, field.isMandatory, field === null || field === void 0 ? void 0 : field.disable, field === null || field === void 0 ? void 0 : field.component, field), (field === null || field === void 0 ? void 0 : field.description) && /*#__PURE__*/React__default.createElement(CardLabel, {
|
|
11897
|
-
style:
|
|
11940
|
+
style: {
|
|
11898
11941
|
marginTop: "-24px",
|
|
11899
11942
|
fontSize: "16px",
|
|
11900
11943
|
fontWeight: "bold",
|
|
11901
|
-
color: "#505A5F"
|
|
11902
|
-
|
|
11944
|
+
color: "#505A5F",
|
|
11945
|
+
...(field === null || field === void 0 ? void 0 : field.descriptionStyles)
|
|
11946
|
+
}
|
|
11903
11947
|
}, t(field.description)))));
|
|
11904
11948
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(LabelFieldPair, {
|
|
11905
11949
|
key: index
|
|
@@ -11909,9 +11953,10 @@ const FormComposer = props => {
|
|
|
11909
11953
|
marginBottom: props.inline ? "8px" : "revert"
|
|
11910
11954
|
}
|
|
11911
11955
|
}, t(field.label), field.isMandatory ? " * " : null, field.labelChildren && field.labelChildren), /*#__PURE__*/React__default.createElement("div", {
|
|
11912
|
-
style: field.withoutLabel ?
|
|
11913
|
-
width: "100%"
|
|
11914
|
-
|
|
11956
|
+
style: field.withoutLabel ? {
|
|
11957
|
+
width: "100%",
|
|
11958
|
+
...(props === null || props === void 0 ? void 0 : props.fieldStyle)
|
|
11959
|
+
} : {},
|
|
11915
11960
|
className: "field"
|
|
11916
11961
|
}, fieldSelector(field.type, field.populators, field.isMandatory, field === null || field === void 0 ? void 0 : field.disable, field === null || field === void 0 ? void 0 : field.component, field), (field === null || field === void 0 ? void 0 : field.description) && /*#__PURE__*/React__default.createElement(CardText, {
|
|
11917
11962
|
style: {
|
|
@@ -11985,7 +12030,9 @@ const FormComposer = props => {
|
|
|
11985
12030
|
onClick: onSecondayActionClick
|
|
11986
12031
|
}, props.secondaryActionLabel), props.submitInForm && /*#__PURE__*/React__default.createElement(SubmitBar, {
|
|
11987
12032
|
label: t(props.label),
|
|
11988
|
-
style:
|
|
12033
|
+
style: {
|
|
12034
|
+
...(props === null || props === void 0 ? void 0 : props.buttonStyle)
|
|
12035
|
+
},
|
|
11989
12036
|
submit: "submit",
|
|
11990
12037
|
disabled: isDisabled,
|
|
11991
12038
|
className: "submitButtonNew"
|
|
@@ -11999,7 +12046,7 @@ const FormComposer = props => {
|
|
|
11999
12046
|
disabled: isDisabled
|
|
12000
12047
|
}), props.onSkip && props.showSkip && /*#__PURE__*/React__default.createElement(LinkButton, {
|
|
12001
12048
|
style: props === null || props === void 0 ? void 0 : props.skipStyle,
|
|
12002
|
-
label: t(
|
|
12049
|
+
label: t(`CS_SKIP_CONTINUE`),
|
|
12003
12050
|
onClick: props.onSkip
|
|
12004
12051
|
}))));
|
|
12005
12052
|
};
|
|
@@ -12071,7 +12118,6 @@ const Header = () => {
|
|
|
12071
12118
|
})));
|
|
12072
12119
|
};
|
|
12073
12120
|
|
|
12074
|
-
const _excluded$2 = ["UserRequest"];
|
|
12075
12121
|
const setEmployeeDetail = (userObject, token) => {
|
|
12076
12122
|
var _JSON$parse;
|
|
12077
12123
|
let locale = ((_JSON$parse = JSON.parse(sessionStorage.getItem("Digit.locale"))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.value) || "en_IN";
|
|
@@ -12136,21 +12182,23 @@ const Login$1 = _ref => {
|
|
|
12136
12182
|
return Promise.resolve();
|
|
12137
12183
|
}
|
|
12138
12184
|
setDisable(true);
|
|
12139
|
-
const requestData =
|
|
12185
|
+
const requestData = {
|
|
12186
|
+
...data,
|
|
12140
12187
|
userType: "EMPLOYEE"
|
|
12141
|
-
}
|
|
12188
|
+
};
|
|
12142
12189
|
requestData.tenantId = data.city.code;
|
|
12143
12190
|
delete requestData.city;
|
|
12144
12191
|
const _temp = _catch(function () {
|
|
12145
12192
|
return Promise.resolve(Digit.UserService.authenticate(requestData)).then(function (_ref2) {
|
|
12146
12193
|
let {
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12194
|
+
UserRequest: info,
|
|
12195
|
+
...tokens
|
|
12196
|
+
} = _ref2;
|
|
12150
12197
|
Digit.SessionStorage.set("Employee.tenantId", info === null || info === void 0 ? void 0 : info.tenantId);
|
|
12151
|
-
setUser(
|
|
12152
|
-
info
|
|
12153
|
-
|
|
12198
|
+
setUser({
|
|
12199
|
+
info,
|
|
12200
|
+
...tokens
|
|
12201
|
+
});
|
|
12154
12202
|
});
|
|
12155
12203
|
}, function (err) {
|
|
12156
12204
|
var _err$response, _err$response$data;
|
|
@@ -12250,12 +12298,13 @@ const EmployeeLogin = () => {
|
|
|
12250
12298
|
for (const key in step.texts) {
|
|
12251
12299
|
texts[key] = t(step.texts[key]);
|
|
12252
12300
|
}
|
|
12253
|
-
return
|
|
12301
|
+
return {
|
|
12302
|
+
...step,
|
|
12254
12303
|
texts
|
|
12255
|
-
}
|
|
12304
|
+
};
|
|
12256
12305
|
}, [loginConfig]));
|
|
12257
12306
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
12258
|
-
path:
|
|
12307
|
+
path: `${path}`,
|
|
12259
12308
|
exact: true
|
|
12260
12309
|
}, /*#__PURE__*/React__default.createElement(Login$1, {
|
|
12261
12310
|
config: loginParams[0],
|
|
@@ -12346,11 +12395,12 @@ const ChangePasswordComponent = _ref => {
|
|
|
12346
12395
|
if (data.newPassword !== data.confirmPassword) {
|
|
12347
12396
|
return setShowToast(t("ERR_PASSWORD_DO_NOT_MATCH"));
|
|
12348
12397
|
}
|
|
12349
|
-
const requestData =
|
|
12398
|
+
const requestData = {
|
|
12399
|
+
...data,
|
|
12350
12400
|
otpReference: otp,
|
|
12351
12401
|
tenantId,
|
|
12352
12402
|
type: getUserType().toUpperCase()
|
|
12353
|
-
}
|
|
12403
|
+
};
|
|
12354
12404
|
return Promise.resolve(Digit.UserService.changePassword(requestData, tenantId)).then(function (response) {
|
|
12355
12405
|
navigateToLogin();
|
|
12356
12406
|
});
|
|
@@ -12414,7 +12464,7 @@ const ChangePasswordComponent = _ref => {
|
|
|
12414
12464
|
style: {
|
|
12415
12465
|
textAlign: "center"
|
|
12416
12466
|
}
|
|
12417
|
-
}, " ", propsConfig.texts.header, " "), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t(
|
|
12467
|
+
}, " ", propsConfig.texts.header, " "), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, `${t(`CS_LOGIN_OTP_TEXT`)} `, /*#__PURE__*/React__default.createElement("b", null, " ", `${t(`+ 91 - `)}`, " ", mobileNumber)), /*#__PURE__*/React__default.createElement(SelectOtp, {
|
|
12418
12468
|
t: t,
|
|
12419
12469
|
userType: "employee",
|
|
12420
12470
|
otp: otp,
|
|
@@ -12510,12 +12560,13 @@ const EmployeeChangePassword = () => {
|
|
|
12510
12560
|
for (const key in step.texts) {
|
|
12511
12561
|
texts[key] = t(step.texts[key]);
|
|
12512
12562
|
}
|
|
12513
|
-
return
|
|
12563
|
+
return {
|
|
12564
|
+
...step,
|
|
12514
12565
|
texts
|
|
12515
|
-
}
|
|
12566
|
+
};
|
|
12516
12567
|
}, [config]));
|
|
12517
12568
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
12518
|
-
path:
|
|
12569
|
+
path: `${path}`,
|
|
12519
12570
|
exact: true
|
|
12520
12571
|
}, /*#__PURE__*/React__default.createElement(ChangePasswordComponent, {
|
|
12521
12572
|
config: params[0],
|
|
@@ -12584,7 +12635,7 @@ const ForgotPassword = _ref => {
|
|
|
12584
12635
|
};
|
|
12585
12636
|
const _temp = _catch(function () {
|
|
12586
12637
|
return Promise.resolve(Digit.UserService.sendOtp(requestData, data.city.code)).then(function () {
|
|
12587
|
-
history.push(
|
|
12638
|
+
history.push(`/digit-ui/employee/user/change-password?mobile_number=${data.mobileNumber}&tenantId=${data.city.code}`);
|
|
12588
12639
|
});
|
|
12589
12640
|
}, function (err) {
|
|
12590
12641
|
var _err$response, _err$response$data, _err$response$data$er, _err$response$data$er2, _err$response$data$er3;
|
|
@@ -12746,12 +12797,13 @@ const EmployeeForgotPassword = () => {
|
|
|
12746
12797
|
for (const key in step.texts) {
|
|
12747
12798
|
texts[key] = t(step.texts[key]);
|
|
12748
12799
|
}
|
|
12749
|
-
return
|
|
12800
|
+
return {
|
|
12801
|
+
...step,
|
|
12750
12802
|
texts
|
|
12751
|
-
}
|
|
12803
|
+
};
|
|
12752
12804
|
}, [loginConfig$1]));
|
|
12753
12805
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
12754
|
-
path:
|
|
12806
|
+
path: `${path}`,
|
|
12755
12807
|
exact: true
|
|
12756
12808
|
}, /*#__PURE__*/React__default.createElement(ForgotPassword, {
|
|
12757
12809
|
config: params[0],
|
|
@@ -12802,7 +12854,7 @@ const LanguageSelection = () => {
|
|
|
12802
12854
|
style: {
|
|
12803
12855
|
width: "100%"
|
|
12804
12856
|
},
|
|
12805
|
-
label: t(
|
|
12857
|
+
label: t(`CORE_COMMON_CONTINUE`),
|
|
12806
12858
|
onSubmit: handleSubmit
|
|
12807
12859
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
12808
12860
|
style: {
|
|
@@ -12901,6 +12953,26 @@ const AppModules = _ref => {
|
|
|
12901
12953
|
path
|
|
12902
12954
|
} = reactRouterDom.useRouteMatch();
|
|
12903
12955
|
const location = reactRouterDom.useLocation();
|
|
12956
|
+
const parseValue = value => {
|
|
12957
|
+
try {
|
|
12958
|
+
return JSON.parse(value);
|
|
12959
|
+
} catch (e) {
|
|
12960
|
+
return value;
|
|
12961
|
+
}
|
|
12962
|
+
};
|
|
12963
|
+
const getFromStorage = key => {
|
|
12964
|
+
const value = window.localStorage.getItem(key);
|
|
12965
|
+
return value && value !== "undefined" ? parseValue(value) : null;
|
|
12966
|
+
};
|
|
12967
|
+
const employeeToken = getFromStorage("Employee.token");
|
|
12968
|
+
const employeeInfo = getFromStorage("Employee.user-info");
|
|
12969
|
+
const getUserDetails = (access_token, info) => ({
|
|
12970
|
+
token: access_token,
|
|
12971
|
+
access_token,
|
|
12972
|
+
info
|
|
12973
|
+
});
|
|
12974
|
+
const userDetails = getUserDetails(employeeToken, employeeInfo);
|
|
12975
|
+
window.Digit.SessionStorage.set("User", userDetails);
|
|
12904
12976
|
const user = Digit.UserService.getUser();
|
|
12905
12977
|
if (!user || !(user !== null && user !== void 0 && user.access_token) || !(user !== null && user !== void 0 && user.info)) {
|
|
12906
12978
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Redirect, {
|
|
@@ -12917,10 +12989,10 @@ const AppModules = _ref => {
|
|
|
12917
12989
|
code,
|
|
12918
12990
|
tenants
|
|
12919
12991
|
} = _ref2;
|
|
12920
|
-
const Module = Digit.ComponentRegistryService.getComponent(code
|
|
12992
|
+
const Module = Digit.ComponentRegistryService.getComponent(`${code}Module`);
|
|
12921
12993
|
return Module ? /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
12922
12994
|
key: index,
|
|
12923
|
-
path: path
|
|
12995
|
+
path: `${path}/${code.toLowerCase()}`
|
|
12924
12996
|
}, /*#__PURE__*/React__default.createElement(Module, {
|
|
12925
12997
|
stateCode: stateCode,
|
|
12926
12998
|
moduleCode: code,
|
|
@@ -12928,7 +13000,7 @@ const AppModules = _ref => {
|
|
|
12928
13000
|
tenants: getTenants(tenants, appTenants)
|
|
12929
13001
|
})) : /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
12930
13002
|
key: index,
|
|
12931
|
-
path: path
|
|
13003
|
+
path: `${path}/${code.toLowerCase()}`
|
|
12932
13004
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Redirect, {
|
|
12933
13005
|
to: {
|
|
12934
13006
|
pathname: "/digit-ui/employee/user/error?type=notfound",
|
|
@@ -12941,7 +13013,7 @@ const AppModules = _ref => {
|
|
|
12941
13013
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12942
13014
|
className: "ground-container"
|
|
12943
13015
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, appRoutes, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
12944
|
-
path: path
|
|
13016
|
+
path: `${path}/login`
|
|
12945
13017
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Redirect, {
|
|
12946
13018
|
to: {
|
|
12947
13019
|
pathname: "/digit-ui/employee/user/login",
|
|
@@ -12950,9 +13022,9 @@ const AppModules = _ref => {
|
|
|
12950
13022
|
}
|
|
12951
13023
|
}
|
|
12952
13024
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
12953
|
-
path: path
|
|
13025
|
+
path: `${path}/forgot-password`
|
|
12954
13026
|
}, /*#__PURE__*/React__default.createElement(EmployeeForgotPassword, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
12955
|
-
path: path
|
|
13027
|
+
path: `${path}/change-password`
|
|
12956
13028
|
}, /*#__PURE__*/React__default.createElement(EmployeeChangePassword, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, null, /*#__PURE__*/React__default.createElement(AppHome, {
|
|
12957
13029
|
userType: userType,
|
|
12958
13030
|
modules: modules
|
|
@@ -12961,17 +13033,17 @@ const AppModules = _ref => {
|
|
|
12961
13033
|
|
|
12962
13034
|
const ErrorConfig = {
|
|
12963
13035
|
error: {
|
|
12964
|
-
imgUrl:
|
|
13036
|
+
imgUrl: `https://s3.ap-south-1.amazonaws.com/egov-qa-assets/error-image.png`,
|
|
12965
13037
|
infoMessage: "CORE_SOMETHING_WENT_WRONG",
|
|
12966
13038
|
buttonInfo: "ACTION_TEST_HOME"
|
|
12967
13039
|
},
|
|
12968
13040
|
maintenance: {
|
|
12969
|
-
imgUrl:
|
|
13041
|
+
imgUrl: `https://s3.ap-south-1.amazonaws.com/egov-qa-assets/maintainence-image.png`,
|
|
12970
13042
|
infoMessage: "CORE_UNDER_MAINTENANCE",
|
|
12971
13043
|
buttonInfo: "ACTION_TEST_HOME"
|
|
12972
13044
|
},
|
|
12973
13045
|
notfound: {
|
|
12974
|
-
imgUrl:
|
|
13046
|
+
imgUrl: `https://s3.ap-south-1.amazonaws.com/egov-qa-assets/PageNotFound.png`,
|
|
12975
13047
|
infoMessage: "CORE_NOT_FOUND",
|
|
12976
13048
|
buttonInfo: "ACTION_TEST_HOME"
|
|
12977
13049
|
}
|
|
@@ -13092,7 +13164,7 @@ const ChangeCity = prop => {
|
|
|
13092
13164
|
unique === null || unique === void 0 ? void 0 : unique.forEach(uniCode => {
|
|
13093
13165
|
var _stringReplaceAll;
|
|
13094
13166
|
filteredArray.push({
|
|
13095
|
-
label: prop === null || prop === void 0 ? void 0 : prop.t(
|
|
13167
|
+
label: prop === null || prop === void 0 ? void 0 : prop.t(`TENANT_TENANTS_${(_stringReplaceAll = stringReplaceAll$1(uniCode, ".", "_")) === null || _stringReplaceAll === void 0 ? void 0 : _stringReplaceAll.toUpperCase()}`),
|
|
13096
13168
|
value: uniCode
|
|
13097
13169
|
});
|
|
13098
13170
|
});
|
|
@@ -13111,7 +13183,7 @@ const ChangeCity = prop => {
|
|
|
13111
13183
|
freeze: true,
|
|
13112
13184
|
customSelector: /*#__PURE__*/React__default.createElement("label", {
|
|
13113
13185
|
className: "cp"
|
|
13114
|
-
}, prop === null || prop === void 0 ? void 0 : prop.t(
|
|
13186
|
+
}, prop === null || prop === void 0 ? void 0 : prop.t(`TENANT_TENANTS_${(_stringReplaceAll2 = stringReplaceAll$1(Digit.SessionStorage.get("Employee.tenantId"), ".", "_")) === null || _stringReplaceAll2 === void 0 ? void 0 : _stringReplaceAll2.toUpperCase()}`))
|
|
13115
13187
|
}));
|
|
13116
13188
|
};
|
|
13117
13189
|
|
|
@@ -13291,7 +13363,7 @@ const TopBar = _ref => {
|
|
|
13291
13363
|
fontSize: "14px",
|
|
13292
13364
|
display: "inline-block"
|
|
13293
13365
|
} : {}
|
|
13294
|
-
}, t(cityDetails === null || cityDetails === void 0 ? void 0 : cityDetails.i18nKey).toUpperCase(), " ", t(
|
|
13366
|
+
}, t(cityDetails === null || cityDetails === void 0 ? void 0 : cityDetails.i18nKey).toUpperCase(), " ", t(`ULBGRADE_${cityDetails === null || cityDetails === void 0 ? void 0 : (_cityDetails$city2 = cityDetails.city) === null || _cityDetails$city2 === void 0 ? void 0 : _cityDetails$city2.ulbGrade.toUpperCase().replace(" ", "_").replace(".", "_")}`).toUpperCase()) : /*#__PURE__*/React__default.createElement("img", {
|
|
13295
13367
|
className: "state",
|
|
13296
13368
|
src: logoUrl
|
|
13297
13369
|
})), !loggedin && /*#__PURE__*/React__default.createElement("p", {
|
|
@@ -13300,7 +13372,7 @@ const TopBar = _ref => {
|
|
|
13300
13372
|
fontSize: "14px",
|
|
13301
13373
|
display: "inline-block"
|
|
13302
13374
|
} : {}
|
|
13303
|
-
}, t(
|
|
13375
|
+
}, t(`MYCITY_${stateInfo === null || stateInfo === void 0 ? void 0 : (_stateInfo$code = stateInfo.code) === null || _stateInfo$code === void 0 ? void 0 : _stateInfo$code.toUpperCase()}_LABEL`), " ", t(`MYCITY_STATECODE_LABEL`)), !mobileView && /*#__PURE__*/React__default.createElement("div", {
|
|
13304
13376
|
className: mobileView ? "right" : "flex-right right w-80 column-gap-15",
|
|
13305
13377
|
style: !loggedin ? {
|
|
13306
13378
|
width: "80%"
|
|
@@ -13387,7 +13459,7 @@ const SideBarMenu = (t, closeSidebar, redirectToLoginPage, redirectToScrutinyPag
|
|
|
13387
13459
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13388
13460
|
className: "link"
|
|
13389
13461
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
13390
|
-
href:
|
|
13462
|
+
href: `tel:${filteredTenantData}`
|
|
13391
13463
|
}, filteredTenantData)))),
|
|
13392
13464
|
element: "Helpline",
|
|
13393
13465
|
icon: "Phone"
|
|
@@ -13724,7 +13796,7 @@ const StaticCitizenSideBar = _ref2 => {
|
|
|
13724
13796
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13725
13797
|
className: "link"
|
|
13726
13798
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
13727
|
-
href:
|
|
13799
|
+
href: `tel:${filteredTenantContact}`
|
|
13728
13800
|
}, filteredTenantContact)))),
|
|
13729
13801
|
element: "Helpline",
|
|
13730
13802
|
icon: "Phone"
|
|
@@ -13736,7 +13808,7 @@ const StaticCitizenSideBar = _ref2 => {
|
|
|
13736
13808
|
var _linkData$key$2, _linkData$key$2$sideb, _linkData$key$3, _linkData$key$4;
|
|
13737
13809
|
menuItems.splice(1, 0, {
|
|
13738
13810
|
type: (_linkData$key$2 = linkData[key][0]) !== null && _linkData$key$2 !== void 0 && (_linkData$key$2$sideb = _linkData$key$2.sidebarURL) !== null && _linkData$key$2$sideb !== void 0 && _linkData$key$2$sideb.includes("digit-ui") ? "link" : "external-link",
|
|
13739
|
-
text: t(
|
|
13811
|
+
text: t(`ACTION_TEST_${Digit.Utils.locale.getTransformedLocale(key)}`),
|
|
13740
13812
|
links: linkData[key],
|
|
13741
13813
|
icon: (_linkData$key$3 = linkData[key][0]) === null || _linkData$key$3 === void 0 ? void 0 : _linkData$key$3.leftIcon,
|
|
13742
13814
|
link: (_linkData$key$4 = linkData[key][0]) === null || _linkData$key$4 === void 0 ? void 0 : _linkData$key$4.sidebarURL
|
|
@@ -13764,7 +13836,7 @@ const StaticCitizenSideBar = _ref2 => {
|
|
|
13764
13836
|
"backgroundColor": "white"
|
|
13765
13837
|
}
|
|
13766
13838
|
}, (_menuItems = menuItems) === null || _menuItems === void 0 ? void 0 : _menuItems.map((item, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
13767
|
-
className:
|
|
13839
|
+
className: `sidebar-list ${pathname === (item === null || item === void 0 ? void 0 : item.link) || pathname === (item === null || item === void 0 ? void 0 : item.sidebarURL) ? "active" : ""}`,
|
|
13768
13840
|
key: index
|
|
13769
13841
|
}, /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
13770
13842
|
item: item
|
|
@@ -13927,7 +13999,7 @@ const CitizenSideBar = _ref2 => {
|
|
|
13927
13999
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
13928
14000
|
className: "link"
|
|
13929
14001
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
13930
|
-
href:
|
|
14002
|
+
href: `tel:${filteredTenantContact}`
|
|
13931
14003
|
}, filteredTenantContact)))),
|
|
13932
14004
|
element: "Helpline",
|
|
13933
14005
|
icon: "Phone"
|
|
@@ -13947,7 +14019,7 @@ const CitizenSideBar = _ref2 => {
|
|
|
13947
14019
|
var _linkData$key$, _linkData$key$2, _linkData$key$2$sideb, _linkData$key$3, _linkData$key$4;
|
|
13948
14020
|
if (((_linkData$key$ = linkData[key][0]) === null || _linkData$key$ === void 0 ? void 0 : _linkData$key$.sidebar) === "digit-ui-links") menuItems.splice(1, 0, {
|
|
13949
14021
|
type: (_linkData$key$2 = linkData[key][0]) !== null && _linkData$key$2 !== void 0 && (_linkData$key$2$sideb = _linkData$key$2.sidebarURL) !== null && _linkData$key$2$sideb !== void 0 && _linkData$key$2$sideb.includes("digit-ui") ? "link" : "external-link",
|
|
13950
|
-
text: t(
|
|
14022
|
+
text: t(`ACTION_TEST_${Digit.Utils.locale.getTransformedLocale(key)}`),
|
|
13951
14023
|
links: linkData[key],
|
|
13952
14024
|
icon: (_linkData$key$3 = linkData[key][0]) === null || _linkData$key$3 === void 0 ? void 0 : _linkData$key$3.leftIcon,
|
|
13953
14025
|
link: (_linkData$key$4 = linkData[key][0]) === null || _linkData$key$4 === void 0 ? void 0 : _linkData$key$4.sidebarURL
|
|
@@ -13984,7 +14056,7 @@ const CitizenSideBar = _ref2 => {
|
|
|
13984
14056
|
var _configEmployeeSideBa4, _configEmployeeSideBa5, _configEmployeeSideBa6, _configEmployeeSideBa7;
|
|
13985
14057
|
menuItems.splice(1, 0, {
|
|
13986
14058
|
type: "link",
|
|
13987
|
-
text: t(
|
|
14059
|
+
text: t(`ACTION_TEST_${getSingleDisplayName}`),
|
|
13988
14060
|
link: (_configEmployeeSideBa4 = configEmployeeSideBar[keys[i]][0]) === null || _configEmployeeSideBa4 === void 0 ? void 0 : _configEmployeeSideBa4.navigationURL,
|
|
13989
14061
|
icon: (_configEmployeeSideBa5 = configEmployeeSideBar[keys[i]][0]) === null || _configEmployeeSideBa5 === void 0 ? void 0 : (_configEmployeeSideBa6 = _configEmployeeSideBa5.leftIcon) === null || _configEmployeeSideBa6 === void 0 ? void 0 : (_configEmployeeSideBa7 = _configEmployeeSideBa6.split) === null || _configEmployeeSideBa7 === void 0 ? void 0 : _configEmployeeSideBa7.call(_configEmployeeSideBa6, ":")[1],
|
|
13990
14062
|
populators: {
|
|
@@ -13996,17 +14068,18 @@ const CitizenSideBar = _ref2 => {
|
|
|
13996
14068
|
}
|
|
13997
14069
|
});
|
|
13998
14070
|
} else {
|
|
13999
|
-
var _configEmployeeSideBa9,
|
|
14071
|
+
var _configEmployeeSideBa9, _configEmployeeSideBa10;
|
|
14000
14072
|
menuItems.splice(1, 0, {
|
|
14001
14073
|
type: "dynamic",
|
|
14002
|
-
moduleName: t(
|
|
14074
|
+
moduleName: t(`ACTION_TEST_${getParentDisplayName}`),
|
|
14003
14075
|
links: (_configEmployeeSideBa9 = configEmployeeSideBar[keys[i]]) === null || _configEmployeeSideBa9 === void 0 ? void 0 : _configEmployeeSideBa9.map(ob => {
|
|
14004
14076
|
var _ob$displayName, _ob$displayName$toUpp;
|
|
14005
|
-
return
|
|
14006
|
-
|
|
14007
|
-
|
|
14077
|
+
return {
|
|
14078
|
+
...ob,
|
|
14079
|
+
displayName: t(`ACTION_TEST_${ob === null || ob === void 0 ? void 0 : (_ob$displayName = ob.displayName) === null || _ob$displayName === void 0 ? void 0 : (_ob$displayName$toUpp = _ob$displayName.toUpperCase()) === null || _ob$displayName$toUpp === void 0 ? void 0 : _ob$displayName$toUpp.replace(/[ -]/g, "_")}`)
|
|
14080
|
+
};
|
|
14008
14081
|
}),
|
|
14009
|
-
icon: (
|
|
14082
|
+
icon: (_configEmployeeSideBa10 = configEmployeeSideBar[keys[i]][1]) === null || _configEmployeeSideBa10 === void 0 ? void 0 : _configEmployeeSideBa10.leftIcon
|
|
14010
14083
|
});
|
|
14011
14084
|
}
|
|
14012
14085
|
}
|
|
@@ -14074,7 +14147,7 @@ const SubMenu = _ref => {
|
|
|
14074
14147
|
const leftIconArray = (item === null || item === void 0 ? void 0 : (_item$icon = item.icon) === null || _item$icon === void 0 ? void 0 : (_item$icon$leftIcon = _item$icon.leftIcon) === null || _item$icon$leftIcon === void 0 ? void 0 : (_item$icon$leftIcon$s = _item$icon$leftIcon.split) === null || _item$icon$leftIcon$s === void 0 ? void 0 : (_item$icon$leftIcon$s2 = _item$icon$leftIcon$s.call(_item$icon$leftIcon, ":")) === null || _item$icon$leftIcon$s2 === void 0 ? void 0 : _item$icon$leftIcon$s2[1]) || (item === null || item === void 0 ? void 0 : (_item$leftIcon = item.leftIcon) === null || _item$leftIcon === void 0 ? void 0 : (_item$leftIcon$split = _item$leftIcon.split) === null || _item$leftIcon$split === void 0 ? void 0 : _item$leftIcon$split.call(_item$leftIcon, ":")[1]);
|
|
14075
14148
|
const leftIcon = IconsObject[leftIconArray] || IconsObject.collections;
|
|
14076
14149
|
const getModuleName = item === null || item === void 0 ? void 0 : (_item$moduleName = item.moduleName) === null || _item$moduleName === void 0 ? void 0 : _item$moduleName.replace(/[ -]/g, "_");
|
|
14077
|
-
const appendTranslate = t(
|
|
14150
|
+
const appendTranslate = t(`ACTION_TEST_${getModuleName}`);
|
|
14078
14151
|
const trimModuleName = t((appendTranslate === null || appendTranslate === void 0 ? void 0 : appendTranslate.length) > 20 ? appendTranslate.substring(0, 20) + "..." : appendTranslate);
|
|
14079
14152
|
if (item.type === "single") {
|
|
14080
14153
|
var _item$navigationURL;
|
|
@@ -14082,12 +14155,12 @@ const SubMenu = _ref => {
|
|
|
14082
14155
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14083
14156
|
className: "submenu-container"
|
|
14084
14157
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14085
|
-
className:
|
|
14158
|
+
className: `sidebar-link ${pathname === (item === null || item === void 0 ? void 0 : item.navigationURL) ? "active" : ""}`
|
|
14086
14159
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14087
14160
|
className: "actions"
|
|
14088
14161
|
}, leftIcon, ((_item$navigationURL = item.navigationURL) === null || _item$navigationURL === void 0 ? void 0 : _item$navigationURL.indexOf("/digit-ui")) === -1 ? /*#__PURE__*/React__default.createElement("a", {
|
|
14089
14162
|
"data-tip": "React-tooltip",
|
|
14090
|
-
"data-for":
|
|
14163
|
+
"data-for": `jk-side-${getModuleName}`,
|
|
14091
14164
|
className: "custom-link",
|
|
14092
14165
|
href: getOrigin + "/employee/" + item.navigationURL
|
|
14093
14166
|
}, /*#__PURE__*/React__default.createElement("span", null, " ", trimModuleName, " "), (trimModuleName === null || trimModuleName === void 0 ? void 0 : trimModuleName.includes("...")) && /*#__PURE__*/React__default.createElement(ReactTooltip, {
|
|
@@ -14096,81 +14169,81 @@ const SubMenu = _ref => {
|
|
|
14096
14169
|
place: "right",
|
|
14097
14170
|
type: "info",
|
|
14098
14171
|
effect: "solid",
|
|
14099
|
-
id:
|
|
14100
|
-
}, t(
|
|
14172
|
+
id: `jk-side-${getModuleName}`
|
|
14173
|
+
}, t(`ACTION_TEST_${getModuleName}`))) :
|
|
14101
14174
|
/*#__PURE__*/
|
|
14102
14175
|
React__default.createElement(reactRouterDom.Link, {
|
|
14103
14176
|
className: "custom-link",
|
|
14104
14177
|
to: item.navigationURL
|
|
14105
14178
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14106
14179
|
"data-tip": "React-tooltip",
|
|
14107
|
-
"data-for":
|
|
14180
|
+
"data-for": `jk-side-${getModuleName}`
|
|
14108
14181
|
}, /*#__PURE__*/React__default.createElement("span", null, " ", trimModuleName, " "), (trimModuleName === null || trimModuleName === void 0 ? void 0 : trimModuleName.includes("...")) && /*#__PURE__*/React__default.createElement(ReactTooltip, {
|
|
14109
14182
|
textColor: "white",
|
|
14110
14183
|
backgroundColor: "grey",
|
|
14111
14184
|
place: "right",
|
|
14112
14185
|
type: "info",
|
|
14113
14186
|
effect: "solid",
|
|
14114
|
-
id:
|
|
14115
|
-
}, t(
|
|
14187
|
+
id: `jk-side-${getModuleName}`
|
|
14188
|
+
}, t(`ACTION_TEST_${getModuleName}`)))))));
|
|
14116
14189
|
} else {
|
|
14117
14190
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
14118
14191
|
className: "submenu-container"
|
|
14119
14192
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14120
14193
|
onClick: item.links && showSubnav,
|
|
14121
|
-
className:
|
|
14194
|
+
className: `sidebar-link`
|
|
14122
14195
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14123
14196
|
className: "actions"
|
|
14124
14197
|
}, leftIcon, /*#__PURE__*/React__default.createElement("div", {
|
|
14125
14198
|
"data-tip": "React-tooltip",
|
|
14126
|
-
"data-for":
|
|
14199
|
+
"data-for": `jk-side-${getModuleName}`
|
|
14127
14200
|
}, /*#__PURE__*/React__default.createElement("span", null, " ", trimModuleName, " "), (trimModuleName === null || trimModuleName === void 0 ? void 0 : trimModuleName.includes("...")) && /*#__PURE__*/React__default.createElement(ReactTooltip, {
|
|
14128
14201
|
textColor: "white",
|
|
14129
14202
|
backgroundColor: "grey",
|
|
14130
14203
|
place: "right",
|
|
14131
14204
|
type: "info",
|
|
14132
14205
|
effect: "solid",
|
|
14133
|
-
id:
|
|
14134
|
-
}, t(
|
|
14206
|
+
id: `jk-side-${getModuleName}`
|
|
14207
|
+
}, t(`ACTION_TEST_${getModuleName}`)))), /*#__PURE__*/React__default.createElement("div", null, " ", item.links && subnav ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ArrowVectorDown, null) : item.links ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ArrowForward, null) : null, " "))), subnav && item.links.sort((a, b) => a.orderNumber - b.orderNumber).filter(item => item.url === "url" || item.url !== "").map((item, index) => {
|
|
14135
14208
|
var _item$displayName, _item$displayName$toU;
|
|
14136
14209
|
const getChildName = item === null || item === void 0 ? void 0 : (_item$displayName = item.displayName) === null || _item$displayName === void 0 ? void 0 : (_item$displayName$toU = _item$displayName.toUpperCase()) === null || _item$displayName$toU === void 0 ? void 0 : _item$displayName$toU.replace(/[ -]/g, "_");
|
|
14137
|
-
const appendTranslate = t(
|
|
14210
|
+
const appendTranslate = t(`ACTION_TEST_${getChildName}`);
|
|
14138
14211
|
const trimModuleName = t((appendTranslate === null || appendTranslate === void 0 ? void 0 : appendTranslate.length) > 20 ? appendTranslate.substring(0, 20) + "..." : appendTranslate);
|
|
14139
14212
|
if (item.navigationURL.indexOf("/digit-ui") === -1) {
|
|
14140
14213
|
const getOrigin = window.location.origin;
|
|
14141
14214
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
14142
14215
|
key: index,
|
|
14143
|
-
className:
|
|
14216
|
+
className: `dropdown-link ${pathname === item.link ? "active" : ""}`,
|
|
14144
14217
|
href: getOrigin + "/employee/" + item.navigationURL
|
|
14145
14218
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14146
14219
|
className: "actions",
|
|
14147
14220
|
"data-tip": "React-tooltip",
|
|
14148
|
-
"data-for":
|
|
14221
|
+
"data-for": `jk-side-${index}`
|
|
14149
14222
|
}, /*#__PURE__*/React__default.createElement("span", null, " ", trimModuleName, " "), (trimModuleName === null || trimModuleName === void 0 ? void 0 : trimModuleName.includes("...")) && /*#__PURE__*/React__default.createElement(ReactTooltip, {
|
|
14150
14223
|
textColor: "white",
|
|
14151
14224
|
backgroundColor: "grey",
|
|
14152
14225
|
place: "right",
|
|
14153
14226
|
type: "info",
|
|
14154
14227
|
effect: "solid",
|
|
14155
|
-
id:
|
|
14156
|
-
}, t(
|
|
14228
|
+
id: `jk-side-${index}`
|
|
14229
|
+
}, t(`ACTION_TEST_${getChildName}`))));
|
|
14157
14230
|
}
|
|
14158
14231
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
14159
14232
|
to: (item === null || item === void 0 ? void 0 : item.link) || item.navigationURL,
|
|
14160
14233
|
key: index,
|
|
14161
|
-
className:
|
|
14234
|
+
className: `dropdown-link ${pathname === (item === null || item === void 0 ? void 0 : item.link) || pathname === (item === null || item === void 0 ? void 0 : item.navigationURL) ? "active" : ""}`
|
|
14162
14235
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
14163
14236
|
className: "actions",
|
|
14164
14237
|
"data-tip": "React-tooltip",
|
|
14165
|
-
"data-for":
|
|
14238
|
+
"data-for": `jk-side-${index}`
|
|
14166
14239
|
}, /*#__PURE__*/React__default.createElement("span", null, " ", trimModuleName, " "), (trimModuleName === null || trimModuleName === void 0 ? void 0 : trimModuleName.includes("...")) && /*#__PURE__*/React__default.createElement(ReactTooltip, {
|
|
14167
14240
|
textColor: "white",
|
|
14168
14241
|
backgroundColor: "grey",
|
|
14169
14242
|
place: "right",
|
|
14170
14243
|
type: "info",
|
|
14171
14244
|
effect: "solid",
|
|
14172
|
-
id:
|
|
14173
|
-
}, t(
|
|
14245
|
+
id: `jk-side-${index}`
|
|
14246
|
+
}, t(`ACTION_TEST_${getChildName}`))));
|
|
14174
14247
|
}));
|
|
14175
14248
|
}
|
|
14176
14249
|
};
|
|
@@ -14214,7 +14287,9 @@ const EmployeeSideBar = () => {
|
|
|
14214
14287
|
const configEmployeeSideBar = {};
|
|
14215
14288
|
let configEmployeeSideBar1 = {};
|
|
14216
14289
|
data === null || data === void 0 ? void 0 : (_data$actions = data.actions) === null || _data$actions === void 0 ? void 0 : (_data$actions$filter = _data$actions.filter(e => e.url === "url")) === null || _data$actions$filter === void 0 ? void 0 : _data$actions$filter.forEach(item => {
|
|
14217
|
-
lodash.set(configEmployeeSideBar1, item.path,
|
|
14290
|
+
lodash.set(configEmployeeSideBar1, item.path, {
|
|
14291
|
+
...item
|
|
14292
|
+
});
|
|
14218
14293
|
});
|
|
14219
14294
|
data === null || data === void 0 ? void 0 : data.actions.filter(e => e.url === "url").forEach(item => {
|
|
14220
14295
|
var _t, _index, _index$toUpperCase;
|
|
@@ -14227,7 +14302,7 @@ const EmployeeSideBar = () => {
|
|
|
14227
14302
|
} else {
|
|
14228
14303
|
configEmployeeSideBar[index].push(item);
|
|
14229
14304
|
}
|
|
14230
|
-
} else if (item.path !== "" && (_t = t(
|
|
14305
|
+
} else if (item.path !== "" && (_t = t(`ACTION_TEST_${(_index = index) === null || _index === void 0 ? void 0 : (_index$toUpperCase = _index.toUpperCase()) === null || _index$toUpperCase === void 0 ? void 0 : _index$toUpperCase.replace(/[ -]/g, "_")}`)) !== null && _t !== void 0 && _t.toLowerCase().includes(search.toLowerCase())) {
|
|
14231
14306
|
index = item.path.split(".")[0];
|
|
14232
14307
|
if (index === "TradeLicense") index = "Trade License";
|
|
14233
14308
|
if (!configEmployeeSideBar[index]) {
|
|
@@ -14305,7 +14380,7 @@ const EmployeeSideBar = () => {
|
|
|
14305
14380
|
}), /*#__PURE__*/React__default.createElement("input", {
|
|
14306
14381
|
className: "employee-search-input",
|
|
14307
14382
|
type: "text",
|
|
14308
|
-
placeholder: t(
|
|
14383
|
+
placeholder: t(`ACTION_TEST_SEARCH`),
|
|
14309
14384
|
name: "search",
|
|
14310
14385
|
value: search,
|
|
14311
14386
|
onChange: e => setSearch(e.target.value)
|
|
@@ -14474,7 +14549,7 @@ function UploadDrawer(_ref) {
|
|
|
14474
14549
|
setError(t("CORE_COMMON_PROFILE_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
14475
14550
|
} else {
|
|
14476
14551
|
const _temp = _catch(function () {
|
|
14477
|
-
return Promise.resolve(Digit.UploadServices.Filestorage(userType
|
|
14552
|
+
return Promise.resolve(Digit.UploadServices.Filestorage(`${userType}-profile`, file, Digit.ULBService.getStateId())).then(function (response) {
|
|
14478
14553
|
var _response$data, _response$data$files;
|
|
14479
14554
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
14480
14555
|
var _response$data2, _response$data2$files;
|
|
@@ -14659,91 +14734,103 @@ const UserProfile = _ref => {
|
|
|
14659
14734
|
const setUserName = value => {
|
|
14660
14735
|
setName(value);
|
|
14661
14736
|
if (!new RegExp(/^[a-zA-Z ]+$/i).test(value) || value.length === 0 || value.length > 50) {
|
|
14662
|
-
setErrors(
|
|
14737
|
+
setErrors({
|
|
14738
|
+
...errors,
|
|
14663
14739
|
userName: {
|
|
14664
14740
|
type: "pattern",
|
|
14665
14741
|
message: t("CORE_COMMON_PROFILE_NAME_INVALID")
|
|
14666
14742
|
}
|
|
14667
|
-
})
|
|
14743
|
+
});
|
|
14668
14744
|
} else {
|
|
14669
|
-
setErrors(
|
|
14745
|
+
setErrors({
|
|
14746
|
+
...errors,
|
|
14670
14747
|
userName: null
|
|
14671
|
-
})
|
|
14748
|
+
});
|
|
14672
14749
|
}
|
|
14673
14750
|
};
|
|
14674
14751
|
const setUserEmailAddress = value => {
|
|
14675
14752
|
setEmail(value);
|
|
14676
14753
|
if (value.length && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(value)) {
|
|
14677
|
-
setErrors(
|
|
14754
|
+
setErrors({
|
|
14755
|
+
...errors,
|
|
14678
14756
|
emailAddress: {
|
|
14679
14757
|
type: "pattern",
|
|
14680
14758
|
message: t("CORE_COMMON_PROFILE_EMAIL_INVALID")
|
|
14681
14759
|
}
|
|
14682
|
-
})
|
|
14760
|
+
});
|
|
14683
14761
|
} else {
|
|
14684
|
-
setErrors(
|
|
14762
|
+
setErrors({
|
|
14763
|
+
...errors,
|
|
14685
14764
|
emailAddress: null
|
|
14686
|
-
})
|
|
14765
|
+
});
|
|
14687
14766
|
}
|
|
14688
14767
|
};
|
|
14689
14768
|
const setUserMobileNumber = value => {
|
|
14690
14769
|
setMobileNo(value);
|
|
14691
14770
|
if (userType === "employee" && !new RegExp(/^[6-9]{1}[0-9]{9}$/).test(value)) {
|
|
14692
|
-
setErrors(
|
|
14771
|
+
setErrors({
|
|
14772
|
+
...errors,
|
|
14693
14773
|
mobileNumber: {
|
|
14694
14774
|
type: 'pattern',
|
|
14695
14775
|
message: t("CORE_COMMON_PROFILE_MOBILE_NUMBER_INVALID")
|
|
14696
14776
|
}
|
|
14697
|
-
})
|
|
14777
|
+
});
|
|
14698
14778
|
} else {
|
|
14699
|
-
setErrors(
|
|
14779
|
+
setErrors({
|
|
14780
|
+
...errors,
|
|
14700
14781
|
mobileNumber: null
|
|
14701
|
-
})
|
|
14782
|
+
});
|
|
14702
14783
|
}
|
|
14703
14784
|
};
|
|
14704
14785
|
const setUserCurrentPassword = value => {
|
|
14705
14786
|
setCurrentPassword(value);
|
|
14706
14787
|
if (!new RegExp(/^([a-zA-Z0-9@#$%]{8,15})$/i).test(value)) {
|
|
14707
|
-
setErrors(
|
|
14788
|
+
setErrors({
|
|
14789
|
+
...errors,
|
|
14708
14790
|
currentPassword: {
|
|
14709
14791
|
type: "pattern",
|
|
14710
14792
|
message: t("CORE_COMMON_PROFILE_PASSWORD_INVALID")
|
|
14711
14793
|
}
|
|
14712
|
-
})
|
|
14794
|
+
});
|
|
14713
14795
|
} else {
|
|
14714
|
-
setErrors(
|
|
14796
|
+
setErrors({
|
|
14797
|
+
...errors,
|
|
14715
14798
|
currentPassword: null
|
|
14716
|
-
})
|
|
14799
|
+
});
|
|
14717
14800
|
}
|
|
14718
14801
|
};
|
|
14719
14802
|
const setUserNewPassword = value => {
|
|
14720
14803
|
setNewPassword(value);
|
|
14721
14804
|
if (!new RegExp(/^([a-zA-Z0-9@#$%]{8,15})$/i).test(value)) {
|
|
14722
|
-
setErrors(
|
|
14805
|
+
setErrors({
|
|
14806
|
+
...errors,
|
|
14723
14807
|
newPassword: {
|
|
14724
14808
|
type: "pattern",
|
|
14725
14809
|
message: t("CORE_COMMON_PROFILE_PASSWORD_INVALID")
|
|
14726
14810
|
}
|
|
14727
|
-
})
|
|
14811
|
+
});
|
|
14728
14812
|
} else {
|
|
14729
|
-
setErrors(
|
|
14813
|
+
setErrors({
|
|
14814
|
+
...errors,
|
|
14730
14815
|
newPassword: null
|
|
14731
|
-
})
|
|
14816
|
+
});
|
|
14732
14817
|
}
|
|
14733
14818
|
};
|
|
14734
14819
|
const setUserConfirmPassword = value => {
|
|
14735
14820
|
setConfirmPassword(value);
|
|
14736
14821
|
if (!new RegExp(/^([a-zA-Z0-9@#$%]{8,15})$/i).test(value)) {
|
|
14737
|
-
setErrors(
|
|
14822
|
+
setErrors({
|
|
14823
|
+
...errors,
|
|
14738
14824
|
confirmPassword: {
|
|
14739
14825
|
type: "pattern",
|
|
14740
14826
|
message: t("CORE_COMMON_PROFILE_PASSWORD_INVALID")
|
|
14741
14827
|
}
|
|
14742
|
-
})
|
|
14828
|
+
});
|
|
14743
14829
|
} else {
|
|
14744
|
-
setErrors(
|
|
14830
|
+
setErrors({
|
|
14831
|
+
...errors,
|
|
14745
14832
|
confirmPassword: null
|
|
14746
|
-
})
|
|
14833
|
+
});
|
|
14747
14834
|
}
|
|
14748
14835
|
};
|
|
14749
14836
|
const removeProfilePic = () => {
|
|
@@ -14771,13 +14858,14 @@ const UserProfile = _ref => {
|
|
|
14771
14858
|
}
|
|
14772
14859
|
setLoading(true);
|
|
14773
14860
|
const _temp2 = _catch(function () {
|
|
14774
|
-
const requestData =
|
|
14861
|
+
const requestData = {
|
|
14862
|
+
...userInfo,
|
|
14775
14863
|
name,
|
|
14776
14864
|
dob: dob !== undefined ? dob.split("-").reverse().join("/") : "",
|
|
14777
14865
|
gender: gender === null || gender === void 0 ? void 0 : gender.value,
|
|
14778
14866
|
emailId: email,
|
|
14779
14867
|
photo: profilePic
|
|
14780
|
-
}
|
|
14868
|
+
};
|
|
14781
14869
|
if (!new RegExp(/^([a-zA-Z ])*$/).test(name) || name === "" || name.length > 50 || name.length < 1) {
|
|
14782
14870
|
throw JSON.stringify({
|
|
14783
14871
|
type: "error",
|
|
@@ -14825,15 +14913,17 @@ const UserProfile = _ref => {
|
|
|
14825
14913
|
if (responseInfo && responseInfo.status === "200") {
|
|
14826
14914
|
const user = Digit.UserService.getUser();
|
|
14827
14915
|
if (user) {
|
|
14828
|
-
Digit.UserService.setUser(
|
|
14829
|
-
|
|
14916
|
+
Digit.UserService.setUser({
|
|
14917
|
+
...user,
|
|
14918
|
+
info: {
|
|
14919
|
+
...user.info,
|
|
14830
14920
|
name,
|
|
14831
14921
|
mobileNumber,
|
|
14832
14922
|
emailId: email,
|
|
14833
14923
|
permanentCity: city,
|
|
14834
14924
|
photo: profileImg
|
|
14835
|
-
}
|
|
14836
|
-
})
|
|
14925
|
+
}
|
|
14926
|
+
});
|
|
14837
14927
|
}
|
|
14838
14928
|
}
|
|
14839
14929
|
return function () {
|
|
@@ -14893,9 +14983,9 @@ const UserProfile = _ref => {
|
|
|
14893
14983
|
} = Digit.Hooks.pt.useGenderMDMS(stateId, "common-masters", "GenderType");
|
|
14894
14984
|
Menu && Menu.map(genderDetails => {
|
|
14895
14985
|
menu.push({
|
|
14896
|
-
i18nKey:
|
|
14897
|
-
code:
|
|
14898
|
-
value:
|
|
14986
|
+
i18nKey: `PT_COMMON_GENDER_${genderDetails.code}`,
|
|
14987
|
+
code: `${genderDetails.code}`,
|
|
14988
|
+
value: `${genderDetails.code}`
|
|
14899
14989
|
});
|
|
14900
14990
|
});
|
|
14901
14991
|
const setFileStoreId = function (fileStoreId) {
|
|
@@ -14967,7 +15057,7 @@ const UserProfile = _ref => {
|
|
|
14967
15057
|
height: "320px",
|
|
14968
15058
|
borderRadius: "4px",
|
|
14969
15059
|
boxShadow: userType === "citizen" ? "" : "1px 1px 4px 0px rgba(0,0,0,0.2)",
|
|
14970
|
-
border:
|
|
15060
|
+
border: `${userType === "citizen" ? "8px" : "24px"} solid #fff`,
|
|
14971
15061
|
background: "#EEEEEE",
|
|
14972
15062
|
padding: userType === "citizen" ? "8px" : "16px"
|
|
14973
15063
|
}
|
|
@@ -15010,7 +15100,7 @@ const UserProfile = _ref => {
|
|
|
15010
15100
|
}
|
|
15011
15101
|
}, userType === "citizen" ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
15012
15102
|
style: {}
|
|
15013
|
-
},
|
|
15103
|
+
}, `${t("CORE_COMMON_PROFILE_NAME")}`, "*"), /*#__PURE__*/React__default.createElement("div", {
|
|
15014
15104
|
style: {
|
|
15015
15105
|
width: "100%",
|
|
15016
15106
|
maxWidth: "960px"
|
|
@@ -15034,7 +15124,7 @@ const UserProfile = _ref => {
|
|
|
15034
15124
|
disable: editScreen
|
|
15035
15125
|
})), (errors === null || errors === void 0 ? void 0 : errors.userName) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, null, " ", errors === null || errors === void 0 ? void 0 : (_errors$userName = errors.userName) === null || _errors$userName === void 0 ? void 0 : _errors$userName.message, " "))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
15036
15126
|
style: {}
|
|
15037
|
-
},
|
|
15127
|
+
}, `${t("CORE_COMMON_PROFILE_GENDER")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
15038
15128
|
style: {
|
|
15039
15129
|
width: "100%"
|
|
15040
15130
|
},
|
|
@@ -15049,7 +15139,7 @@ const UserProfile = _ref => {
|
|
|
15049
15139
|
name: "gender"
|
|
15050
15140
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
15051
15141
|
style: {}
|
|
15052
|
-
},
|
|
15142
|
+
}, `${t("CORE_COMMON_PROFILE_DOB")}`, "*"), /*#__PURE__*/React__default.createElement("div", {
|
|
15053
15143
|
style: {
|
|
15054
15144
|
width: "100%",
|
|
15055
15145
|
maxWidth: "960px"
|
|
@@ -15060,7 +15150,7 @@ const UserProfile = _ref => {
|
|
|
15060
15150
|
disable: true
|
|
15061
15151
|
}), (errors === null || errors === void 0 ? void 0 : errors.userName) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, null, " ", errors === null || errors === void 0 ? void 0 : (_errors$userName2 = errors.userName) === null || _errors$userName2 === void 0 ? void 0 : _errors$userName2.message, " "))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
15062
15152
|
style: {}
|
|
15063
|
-
},
|
|
15153
|
+
}, `${t("CORE_COMMON_PROFILE_EMAIL")}`), /*#__PURE__*/React__default.createElement("div", {
|
|
15064
15154
|
style: {
|
|
15065
15155
|
width: "100%"
|
|
15066
15156
|
}
|
|
@@ -15096,7 +15186,7 @@ const UserProfile = _ref => {
|
|
|
15096
15186
|
style: {
|
|
15097
15187
|
width: "300px"
|
|
15098
15188
|
}
|
|
15099
|
-
},
|
|
15189
|
+
}, `${t("CORE_COMMON_PROFILE_NAME")}`, "*"), /*#__PURE__*/React__default.createElement("div", {
|
|
15100
15190
|
style: {
|
|
15101
15191
|
width: "100%"
|
|
15102
15192
|
}
|
|
@@ -15129,7 +15219,7 @@ const UserProfile = _ref => {
|
|
|
15129
15219
|
style: {
|
|
15130
15220
|
width: "300px"
|
|
15131
15221
|
}
|
|
15132
|
-
},
|
|
15222
|
+
}, `${t("CORE_COMMON_PROFILE_GENDER")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
15133
15223
|
style: {
|
|
15134
15224
|
width: "100%"
|
|
15135
15225
|
},
|
|
@@ -15150,7 +15240,7 @@ const UserProfile = _ref => {
|
|
|
15150
15240
|
style: {
|
|
15151
15241
|
width: "300px"
|
|
15152
15242
|
}
|
|
15153
|
-
},
|
|
15243
|
+
}, `${t("CORE_COMMON_PROFILE_CITY")}`), /*#__PURE__*/React__default.createElement("div", {
|
|
15154
15244
|
style: {
|
|
15155
15245
|
width: "100%"
|
|
15156
15246
|
}
|
|
@@ -15177,7 +15267,7 @@ const UserProfile = _ref => {
|
|
|
15177
15267
|
style: {
|
|
15178
15268
|
width: "300px"
|
|
15179
15269
|
}
|
|
15180
|
-
}, t("CORE_COMMON_PROFILE_MOBILE_NUMBER")
|
|
15270
|
+
}, `${t("CORE_COMMON_PROFILE_MOBILE_NUMBER")}*`), /*#__PURE__*/React__default.createElement("div", {
|
|
15181
15271
|
style: {
|
|
15182
15272
|
width: "100%"
|
|
15183
15273
|
}
|
|
@@ -15208,7 +15298,7 @@ const UserProfile = _ref => {
|
|
|
15208
15298
|
style: {
|
|
15209
15299
|
width: "300px"
|
|
15210
15300
|
}
|
|
15211
|
-
},
|
|
15301
|
+
}, `${t("CORE_COMMON_PROFILE_EMAIL")}`), /*#__PURE__*/React__default.createElement("div", {
|
|
15212
15302
|
style: {
|
|
15213
15303
|
width: "100%"
|
|
15214
15304
|
}
|
|
@@ -15231,7 +15321,7 @@ const UserProfile = _ref => {
|
|
|
15231
15321
|
style: {
|
|
15232
15322
|
width: "300px"
|
|
15233
15323
|
}
|
|
15234
|
-
},
|
|
15324
|
+
}, `${t("CORE_COMMON_PROFILE_DOB")}`), /*#__PURE__*/React__default.createElement("div", {
|
|
15235
15325
|
style: {
|
|
15236
15326
|
width: "100%"
|
|
15237
15327
|
}
|
|
@@ -15261,7 +15351,7 @@ const UserProfile = _ref => {
|
|
|
15261
15351
|
style: {
|
|
15262
15352
|
width: "300px"
|
|
15263
15353
|
}
|
|
15264
|
-
},
|
|
15354
|
+
}, `${t("CORE_COMMON_PROFILE_CURRENT_PASSWORD")}`), /*#__PURE__*/React__default.createElement("div", {
|
|
15265
15355
|
style: {
|
|
15266
15356
|
width: "100%"
|
|
15267
15357
|
}
|
|
@@ -15282,7 +15372,7 @@ const UserProfile = _ref => {
|
|
|
15282
15372
|
style: {
|
|
15283
15373
|
width: "300px"
|
|
15284
15374
|
}
|
|
15285
|
-
},
|
|
15375
|
+
}, `${t("CORE_COMMON_PROFILE_NEW_PASSWORD")}`), /*#__PURE__*/React__default.createElement("div", {
|
|
15286
15376
|
style: {
|
|
15287
15377
|
width: "100%"
|
|
15288
15378
|
}
|
|
@@ -15303,7 +15393,7 @@ const UserProfile = _ref => {
|
|
|
15303
15393
|
style: {
|
|
15304
15394
|
width: "300px"
|
|
15305
15395
|
}
|
|
15306
|
-
},
|
|
15396
|
+
}, `${t("CORE_COMMON_PROFILE_CONFIRM_PASSWORD")}`), /*#__PURE__*/React__default.createElement("div", {
|
|
15307
15397
|
style: {
|
|
15308
15398
|
width: "100%"
|
|
15309
15399
|
}
|
|
@@ -15341,7 +15431,7 @@ const UserProfile = _ref => {
|
|
|
15341
15431
|
}
|
|
15342
15432
|
}, t("CORE_COMMON_SAVE"))) : "", toast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
15343
15433
|
error: toast.key === "error",
|
|
15344
|
-
label: t(toast.key === "success" ?
|
|
15434
|
+
label: t(toast.key === "success" ? `CORE_COMMON_PROFILE_UPDATE_SUCCESS` : toast.action),
|
|
15345
15435
|
onClose: () => setToast(null),
|
|
15346
15436
|
style: {
|
|
15347
15437
|
maxWidth: "670px"
|
|
@@ -15385,7 +15475,6 @@ const citizenServiceMappings = [{
|
|
|
15385
15475
|
path: "fire-noc/home"
|
|
15386
15476
|
}];
|
|
15387
15477
|
|
|
15388
|
-
const _excluded$3 = ["UserRequest"];
|
|
15389
15478
|
const setEmployeeDetail$1 = (userObject, token) => {
|
|
15390
15479
|
var _JSON$parse;
|
|
15391
15480
|
let locale = ((_JSON$parse = JSON.parse(sessionStorage.getItem("Digit.locale"))) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.value) || "en_IN";
|
|
@@ -15483,13 +15572,14 @@ const NavigationApp = () => {
|
|
|
15483
15572
|
const _temp = _catch(function () {
|
|
15484
15573
|
return Promise.resolve(Digit.UserService.authenticate(payload)).then(function (_ref) {
|
|
15485
15574
|
let {
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15575
|
+
UserRequest: info,
|
|
15576
|
+
...tokens
|
|
15577
|
+
} = _ref;
|
|
15489
15578
|
Digit.SessionStorage.set("Employee.tenantId", info === null || info === void 0 ? void 0 : info.tenantId);
|
|
15490
|
-
setUser(
|
|
15491
|
-
info
|
|
15492
|
-
|
|
15579
|
+
setUser({
|
|
15580
|
+
info,
|
|
15581
|
+
...tokens
|
|
15582
|
+
});
|
|
15493
15583
|
});
|
|
15494
15584
|
}, function (err) {
|
|
15495
15585
|
var _err$response2, _err$response2$data;
|
|
@@ -15888,7 +15978,7 @@ const EmployeeServices = () => {
|
|
|
15888
15978
|
let {
|
|
15889
15979
|
code
|
|
15890
15980
|
} = _ref;
|
|
15891
|
-
const Card = Digit.ComponentRegistryService.getComponent(code
|
|
15981
|
+
const Card = Digit.ComponentRegistryService.getComponent(`${code}Card`) || (() => /*#__PURE__*/React__default.createElement(React__default.Fragment, null));
|
|
15892
15982
|
return /*#__PURE__*/React__default.createElement(Card, {
|
|
15893
15983
|
key: index
|
|
15894
15984
|
});
|
|
@@ -15936,7 +16026,7 @@ const EmployeeApp = _ref => {
|
|
|
15936
16026
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15937
16027
|
className: "employee"
|
|
15938
16028
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
15939
|
-
path: path
|
|
16029
|
+
path: `${path}/user`
|
|
15940
16030
|
}, isUserProfile ? /*#__PURE__*/React__default.createElement(TopBarSideBar, {
|
|
15941
16031
|
t: t,
|
|
15942
16032
|
stateInfo: stateInfo,
|
|
@@ -15955,42 +16045,42 @@ const EmployeeApp = _ref => {
|
|
|
15955
16045
|
paddingTop: "80px",
|
|
15956
16046
|
marginLeft: mobileView ? "" : "64px"
|
|
15957
16047
|
} : {
|
|
15958
|
-
"--banner-url":
|
|
16048
|
+
"--banner-url": `url(${stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.bannerUrl})`,
|
|
15959
16049
|
padding: "0px"
|
|
15960
16050
|
}
|
|
15961
16051
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15962
16052
|
className: "loginnn"
|
|
15963
16053
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
15964
|
-
path: path
|
|
16054
|
+
path: `${path}/user/login`
|
|
15965
16055
|
}, /*#__PURE__*/React__default.createElement(EmployeeLogin, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
15966
|
-
path: path
|
|
16056
|
+
path: `${path}/user/forgot-password`
|
|
15967
16057
|
}, /*#__PURE__*/React__default.createElement(EmployeeForgotPassword, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
15968
|
-
path: path
|
|
16058
|
+
path: `${path}/user/change-password`
|
|
15969
16059
|
}, /*#__PURE__*/React__default.createElement(EmployeeChangePassword, null)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
15970
|
-
path: path
|
|
16060
|
+
path: `${path}/user/profile`
|
|
15971
16061
|
}, /*#__PURE__*/React__default.createElement(UserProfile, {
|
|
15972
16062
|
stateCode: stateCode,
|
|
15973
16063
|
userType: "employee",
|
|
15974
16064
|
cityDetails: cityDetails
|
|
15975
16065
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
15976
|
-
path: path
|
|
16066
|
+
path: `${path}/user/error`
|
|
15977
16067
|
}, /*#__PURE__*/React__default.createElement(ErrorComponent, {
|
|
15978
16068
|
initData: initData,
|
|
15979
16069
|
goToHome: () => {
|
|
15980
16070
|
history.push("/digit-ui/employee");
|
|
15981
16071
|
}
|
|
15982
16072
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
15983
|
-
path: path
|
|
16073
|
+
path: `${path}/user/language-selection`
|
|
15984
16074
|
}, /*#__PURE__*/React__default.createElement(LanguageSelection, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Redirect, {
|
|
15985
|
-
to: path
|
|
16075
|
+
to: `${path}/user/language-selection`
|
|
15986
16076
|
}))))), /*#__PURE__*/React__default.createElement("div", {
|
|
15987
16077
|
className: "footer"
|
|
15988
16078
|
}, " ", /*#__PURE__*/React__default.createElement(Footer, null))), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
15989
|
-
path: path
|
|
16079
|
+
path: `${path}/sso/login`
|
|
15990
16080
|
}, /*#__PURE__*/React__default.createElement(NavigationApp, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
15991
|
-
path:
|
|
16081
|
+
path: `/digit-ui/faqss`
|
|
15992
16082
|
}, /*#__PURE__*/React__default.createElement(FAQ, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
15993
|
-
path: path
|
|
16083
|
+
path: `${path}/services`
|
|
15994
16084
|
}, /*#__PURE__*/React__default.createElement(TopBarSideBar, {
|
|
15995
16085
|
t: t,
|
|
15996
16086
|
stateInfo: stateInfo,
|
|
@@ -16012,7 +16102,7 @@ const EmployeeApp = _ref => {
|
|
|
16012
16102
|
logoUrl: logoUrl,
|
|
16013
16103
|
modules: modules
|
|
16014
16104
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
16015
|
-
className:
|
|
16105
|
+
className: `main ${DSO ? "m-auto" : ""}`
|
|
16016
16106
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
16017
16107
|
className: "employee-app-wrapper"
|
|
16018
16108
|
}, /*#__PURE__*/React__default.createElement(ErrorBoundary, {
|
|
@@ -16087,19 +16177,22 @@ const EmployeeApp = _ref => {
|
|
|
16087
16177
|
window.open('', '_blank').focus();
|
|
16088
16178
|
}
|
|
16089
16179
|
}, "Copyright \xA9 ", new Date().getFullYear(), " -"))))), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Redirect, {
|
|
16090
|
-
to: path
|
|
16180
|
+
to: `${path}/user/language-selection`
|
|
16091
16181
|
}))));
|
|
16092
16182
|
};
|
|
16093
16183
|
|
|
16094
16184
|
const Home = () => {
|
|
16095
|
-
var _citizenServicesObj$s, _citizenServicesObj$p, _citizenServicesObj$p2, _citizenServicesObj$p5, _citizenServicesObj$p6, _citizenServicesObj$p9, _citizenServicesObj$
|
|
16185
|
+
var _Digit$UserService, _citizenServicesObj$s, _citizenServicesObj$p, _citizenServicesObj$p2, _citizenServicesObj$p5, _citizenServicesObj$p6, _citizenServicesObj$p9, _citizenServicesObj$p10, _citizenServicesObj$p13, _citizenServicesObj$p14, _citizenServicesObj$p17, _citizenServicesObj$p18, _infoAndUpdatesObj$si, _infoAndUpdatesObj$pr, _infoAndUpdatesObj$pr2, _infoAndUpdatesObj$pr5, _infoAndUpdatesObj$pr6, _infoAndUpdatesObj$pr9, _infoAndUpdatesObj$pr10, _infoAndUpdatesObj$pr13, _infoAndUpdatesObj$pr14, _whatsNewSectionObj$s2;
|
|
16096
16186
|
const {
|
|
16097
16187
|
t
|
|
16098
16188
|
} = reactI18next.useTranslation();
|
|
16099
16189
|
const history = reactRouterDom.useHistory();
|
|
16100
16190
|
const citizenInfoString = window.localStorage.getItem("user-info");
|
|
16191
|
+
const localCheck = window.localStorage.getItem("Employee.locale");
|
|
16192
|
+
const tIDCheck = window.localStorage.getItem("Employee.tenant-id");
|
|
16101
16193
|
const citizenInfo = citizenInfoString ? JSON.parse(citizenInfoString) : null;
|
|
16102
16194
|
const UserType = (citizenInfo === null || citizenInfo === void 0 ? void 0 : citizenInfo.type) === "CITIZEN";
|
|
16195
|
+
const userInfoObj = (_Digit$UserService = Digit.UserService) === null || _Digit$UserService === void 0 ? void 0 : _Digit$UserService.getUser();
|
|
16103
16196
|
const UserRole = Array.isArray(citizenInfo === null || citizenInfo === void 0 ? void 0 : citizenInfo.roles) && (citizenInfo === null || citizenInfo === void 0 ? void 0 : citizenInfo.roles.some(item => item.code === "PESCO"));
|
|
16104
16197
|
const tenantId = Digit.ULBService.getCitizenCurrentTenant(true);
|
|
16105
16198
|
const {
|
|
@@ -16111,12 +16204,38 @@ const Home = () => {
|
|
|
16111
16204
|
} = Digit.Hooks.useStore.getInitData();
|
|
16112
16205
|
let isMobile = window.Digit.Utils.browser.isMobile();
|
|
16113
16206
|
if (window.Digit.SessionStorage.get("TL_CREATE_TRADE")) window.Digit.SessionStorage.set("TL_CREATE_TRADE", {});
|
|
16207
|
+
const parseValue = value => {
|
|
16208
|
+
try {
|
|
16209
|
+
return JSON.parse(value);
|
|
16210
|
+
} catch (e) {
|
|
16211
|
+
return value;
|
|
16212
|
+
}
|
|
16213
|
+
};
|
|
16114
16214
|
const conditionsToDisableNotificationCountTrigger = () => {
|
|
16115
|
-
var _Digit$
|
|
16116
|
-
if (((_Digit$
|
|
16117
|
-
if (!((_Digit$
|
|
16215
|
+
var _Digit$UserService2, _Digit$UserService2$g, _Digit$UserService2$g2, _Digit$UserService3, _Digit$UserService3$g;
|
|
16216
|
+
if (((_Digit$UserService2 = Digit.UserService) === null || _Digit$UserService2 === void 0 ? void 0 : (_Digit$UserService2$g = _Digit$UserService2.getUser()) === null || _Digit$UserService2$g === void 0 ? void 0 : (_Digit$UserService2$g2 = _Digit$UserService2$g.info) === null || _Digit$UserService2$g2 === void 0 ? void 0 : _Digit$UserService2$g2.type) === "EMPLOYEE") return false;
|
|
16217
|
+
if (!((_Digit$UserService3 = Digit.UserService) !== null && _Digit$UserService3 !== void 0 && (_Digit$UserService3$g = _Digit$UserService3.getUser()) !== null && _Digit$UserService3$g !== void 0 && _Digit$UserService3$g.access_token)) return false;
|
|
16118
16218
|
return true;
|
|
16119
16219
|
};
|
|
16220
|
+
const getFromStorage = key => {
|
|
16221
|
+
const value = window.localStorage.getItem(key);
|
|
16222
|
+
return value && value !== "undefined" ? parseValue(value) : null;
|
|
16223
|
+
};
|
|
16224
|
+
const token = getFromStorage("token");
|
|
16225
|
+
const citizenToken = getFromStorage("Citizen.token");
|
|
16226
|
+
const userType = token === citizenToken ? "citizen" : "employee";
|
|
16227
|
+
const citizenInfoMain = getFromStorage("Citizen.user-info");
|
|
16228
|
+
const employeeToken = getFromStorage("Employee.token");
|
|
16229
|
+
const employeeInfo = getFromStorage("Employee.user-info");
|
|
16230
|
+
const getUserDetails = (access_token, info) => ({
|
|
16231
|
+
token: access_token,
|
|
16232
|
+
access_token,
|
|
16233
|
+
info
|
|
16234
|
+
});
|
|
16235
|
+
const userDetails = userType === "citizen" ? getUserDetails(citizenToken, citizenInfoMain) : getUserDetails(employeeToken, employeeInfo);
|
|
16236
|
+
window.Digit.SessionStorage.set("User", userDetails);
|
|
16237
|
+
console.log("citizenInfo", citizenInfo);
|
|
16238
|
+
console.log("localCheck", localCheck, tIDCheck);
|
|
16120
16239
|
const {
|
|
16121
16240
|
data: EventsData,
|
|
16122
16241
|
isLoading: EventsDataLoading
|
|
@@ -16127,8 +16246,8 @@ const Home = () => {
|
|
|
16127
16246
|
enabled: conditionsToDisableNotificationCountTrigger()
|
|
16128
16247
|
}
|
|
16129
16248
|
});
|
|
16130
|
-
if (!
|
|
16131
|
-
|
|
16249
|
+
if (!tIDCheck) {
|
|
16250
|
+
localCheck ? history.push(`/digit-ui/citizen/select-language`) : history.push(`/digit-ui/citizen/select-location`);
|
|
16132
16251
|
}
|
|
16133
16252
|
const citizenServicesObj = uiHomePage === null || uiHomePage === void 0 ? void 0 : uiHomePage.citizenServicesCard;
|
|
16134
16253
|
const infoAndUpdatesObj = uiHomePage === null || uiHomePage === void 0 ? void 0 : uiHomePage.informationAndUpdatesCard;
|
|
@@ -16162,29 +16281,29 @@ const Home = () => {
|
|
|
16162
16281
|
return history.push(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p7 = citizenServicesObj.props) === null || _citizenServicesObj$p7 === void 0 ? void 0 : (_citizenServicesObj$p8 = _citizenServicesObj$p7[0]) === null || _citizenServicesObj$p8 === void 0 ? void 0 : _citizenServicesObj$p8.navigationUrl);
|
|
16163
16282
|
}
|
|
16164
16283
|
}, {
|
|
16165
|
-
name: t(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p9 = citizenServicesObj.props) === null || _citizenServicesObj$p9 === void 0 ? void 0 : (_citizenServicesObj$
|
|
16284
|
+
name: t(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p9 = citizenServicesObj.props) === null || _citizenServicesObj$p9 === void 0 ? void 0 : (_citizenServicesObj$p10 = _citizenServicesObj$p9[1]) === null || _citizenServicesObj$p10 === void 0 ? void 0 : _citizenServicesObj$p10.label),
|
|
16166
16285
|
Icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.PTIcon, {
|
|
16167
16286
|
className: "fill-path-primary-main"
|
|
16168
16287
|
}),
|
|
16169
16288
|
onClick: () => {
|
|
16170
|
-
var _citizenServicesObj$
|
|
16171
|
-
return history.push(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$
|
|
16289
|
+
var _citizenServicesObj$p11, _citizenServicesObj$p12;
|
|
16290
|
+
return history.push(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p11 = citizenServicesObj.props) === null || _citizenServicesObj$p11 === void 0 ? void 0 : (_citizenServicesObj$p12 = _citizenServicesObj$p11[1]) === null || _citizenServicesObj$p12 === void 0 ? void 0 : _citizenServicesObj$p12.navigationUrl);
|
|
16172
16291
|
}
|
|
16173
16292
|
}, {
|
|
16174
|
-
name: t(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$
|
|
16293
|
+
name: t(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p13 = citizenServicesObj.props) === null || _citizenServicesObj$p13 === void 0 ? void 0 : (_citizenServicesObj$p14 = _citizenServicesObj$p13[2]) === null || _citizenServicesObj$p14 === void 0 ? void 0 : _citizenServicesObj$p14.label),
|
|
16175
16294
|
Icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.CaseIcon, {
|
|
16176
16295
|
className: "fill-path-primary-main"
|
|
16177
16296
|
}),
|
|
16178
16297
|
onClick: () => {
|
|
16179
|
-
var _citizenServicesObj$
|
|
16180
|
-
return history.push(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$
|
|
16298
|
+
var _citizenServicesObj$p15, _citizenServicesObj$p16;
|
|
16299
|
+
return history.push(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p15 = citizenServicesObj.props) === null || _citizenServicesObj$p15 === void 0 ? void 0 : (_citizenServicesObj$p16 = _citizenServicesObj$p15[2]) === null || _citizenServicesObj$p16 === void 0 ? void 0 : _citizenServicesObj$p16.navigationUrl);
|
|
16181
16300
|
}
|
|
16182
16301
|
}, {
|
|
16183
|
-
name: t(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$
|
|
16302
|
+
name: t(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p17 = citizenServicesObj.props) === null || _citizenServicesObj$p17 === void 0 ? void 0 : (_citizenServicesObj$p18 = _citizenServicesObj$p17[3]) === null || _citizenServicesObj$p18 === void 0 ? void 0 : _citizenServicesObj$p18.label),
|
|
16184
16303
|
Icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.WSICon, null),
|
|
16185
16304
|
onClick: () => {
|
|
16186
|
-
var _citizenServicesObj$
|
|
16187
|
-
return history.push(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$
|
|
16305
|
+
var _citizenServicesObj$p19, _citizenServicesObj$p20;
|
|
16306
|
+
return history.push(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p19 = citizenServicesObj.props) === null || _citizenServicesObj$p19 === void 0 ? void 0 : (_citizenServicesObj$p20 = _citizenServicesObj$p19[3]) === null || _citizenServicesObj$p20 === void 0 ? void 0 : _citizenServicesObj$p20.navigationUrl);
|
|
16188
16307
|
}
|
|
16189
16308
|
}],
|
|
16190
16309
|
styles: {
|
|
@@ -16218,18 +16337,18 @@ const Home = () => {
|
|
|
16218
16337
|
return history.push(infoAndUpdatesObj === null || infoAndUpdatesObj === void 0 ? void 0 : (_infoAndUpdatesObj$pr7 = infoAndUpdatesObj.props) === null || _infoAndUpdatesObj$pr7 === void 0 ? void 0 : (_infoAndUpdatesObj$pr8 = _infoAndUpdatesObj$pr7[1]) === null || _infoAndUpdatesObj$pr8 === void 0 ? void 0 : _infoAndUpdatesObj$pr8.navigationUrl);
|
|
16219
16338
|
}
|
|
16220
16339
|
}, {
|
|
16221
|
-
name: t(infoAndUpdatesObj === null || infoAndUpdatesObj === void 0 ? void 0 : (_infoAndUpdatesObj$pr9 = infoAndUpdatesObj.props) === null || _infoAndUpdatesObj$pr9 === void 0 ? void 0 : (_infoAndUpdatesObj$
|
|
16340
|
+
name: t(infoAndUpdatesObj === null || infoAndUpdatesObj === void 0 ? void 0 : (_infoAndUpdatesObj$pr9 = infoAndUpdatesObj.props) === null || _infoAndUpdatesObj$pr9 === void 0 ? void 0 : (_infoAndUpdatesObj$pr10 = _infoAndUpdatesObj$pr9[2]) === null || _infoAndUpdatesObj$pr10 === void 0 ? void 0 : _infoAndUpdatesObj$pr10.label),
|
|
16222
16341
|
Icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.DocumentIcon, null),
|
|
16223
16342
|
onClick: () => {
|
|
16224
|
-
var _infoAndUpdatesObj$
|
|
16225
|
-
return history.push(infoAndUpdatesObj === null || infoAndUpdatesObj === void 0 ? void 0 : (_infoAndUpdatesObj$
|
|
16343
|
+
var _infoAndUpdatesObj$pr11, _infoAndUpdatesObj$pr12;
|
|
16344
|
+
return history.push(infoAndUpdatesObj === null || infoAndUpdatesObj === void 0 ? void 0 : (_infoAndUpdatesObj$pr11 = infoAndUpdatesObj.props) === null || _infoAndUpdatesObj$pr11 === void 0 ? void 0 : (_infoAndUpdatesObj$pr12 = _infoAndUpdatesObj$pr11[2]) === null || _infoAndUpdatesObj$pr12 === void 0 ? void 0 : _infoAndUpdatesObj$pr12.navigationUrl);
|
|
16226
16345
|
}
|
|
16227
16346
|
}, {
|
|
16228
|
-
name: t(infoAndUpdatesObj === null || infoAndUpdatesObj === void 0 ? void 0 : (_infoAndUpdatesObj$
|
|
16347
|
+
name: t(infoAndUpdatesObj === null || infoAndUpdatesObj === void 0 ? void 0 : (_infoAndUpdatesObj$pr13 = infoAndUpdatesObj.props) === null || _infoAndUpdatesObj$pr13 === void 0 ? void 0 : (_infoAndUpdatesObj$pr14 = _infoAndUpdatesObj$pr13[3]) === null || _infoAndUpdatesObj$pr14 === void 0 ? void 0 : _infoAndUpdatesObj$pr14.label),
|
|
16229
16348
|
Icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.DocumentIcon, null),
|
|
16230
16349
|
onClick: () => {
|
|
16231
|
-
var _infoAndUpdatesObj$
|
|
16232
|
-
return history.push(infoAndUpdatesObj === null || infoAndUpdatesObj === void 0 ? void 0 : (_infoAndUpdatesObj$
|
|
16350
|
+
var _infoAndUpdatesObj$pr15, _infoAndUpdatesObj$pr16;
|
|
16351
|
+
return history.push(infoAndUpdatesObj === null || infoAndUpdatesObj === void 0 ? void 0 : (_infoAndUpdatesObj$pr15 = infoAndUpdatesObj.props) === null || _infoAndUpdatesObj$pr15 === void 0 ? void 0 : (_infoAndUpdatesObj$pr16 = _infoAndUpdatesObj$pr15[3]) === null || _infoAndUpdatesObj$pr16 === void 0 ? void 0 : _infoAndUpdatesObj$pr16.navigationUrl);
|
|
16233
16352
|
}
|
|
16234
16353
|
}],
|
|
16235
16354
|
styles: {
|
|
@@ -16276,13 +16395,13 @@ const Home = () => {
|
|
|
16276
16395
|
src: "https://nugp-assets.s3.ap-south-1.amazonaws.com/nugp+asset/Banner+UPYOG+%281920x500%29B+%282%29.jpg",
|
|
16277
16396
|
onClick: () => handleClickOnWhatsAppBanner(whatsAppBannerMobObj),
|
|
16278
16397
|
style: {
|
|
16279
|
-
|
|
16398
|
+
width: "100%"
|
|
16280
16399
|
}
|
|
16281
16400
|
}) : /*#__PURE__*/React__default.createElement("img", {
|
|
16282
16401
|
src: "https://nugp-assets.s3.ap-south-1.amazonaws.com/nugp+asset/Banner+UPYOG+%281920x500%29B+%282%29.jpg",
|
|
16283
16402
|
onClick: () => handleClickOnWhatsAppBanner(whatsAppBannerWebObj),
|
|
16284
16403
|
style: {
|
|
16285
|
-
|
|
16404
|
+
width: "100%"
|
|
16286
16405
|
}
|
|
16287
16406
|
})), conditionsToDisableNotificationCountTrigger() ? EventsDataLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement("div", {
|
|
16288
16407
|
className: "WhatsNewSection"
|
|
@@ -16322,7 +16441,7 @@ const LanguageSelection$1 = () => {
|
|
|
16322
16441
|
selectedOption: languages === null || languages === void 0 ? void 0 : languages.filter(i => i.value === selectedLanguage)[0]
|
|
16323
16442
|
}), [selectedLanguage, languages]);
|
|
16324
16443
|
function onSubmit() {
|
|
16325
|
-
history.push(
|
|
16444
|
+
history.push(`/digit-ui/citizen/select-location`);
|
|
16326
16445
|
}
|
|
16327
16446
|
return isLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement("div", {
|
|
16328
16447
|
className: "selection-card-wrapper"
|
|
@@ -16352,10 +16471,8 @@ const LocationSelection = () => {
|
|
|
16352
16471
|
}), [t]);
|
|
16353
16472
|
function selectCity(city) {
|
|
16354
16473
|
setSelectedCity(city);
|
|
16355
|
-
console.log("selected city", city);
|
|
16356
16474
|
setShowError(false);
|
|
16357
16475
|
}
|
|
16358
|
-
console.log("selected city", selectCity);
|
|
16359
16476
|
const RadioButtonProps = React.useMemo(() => {
|
|
16360
16477
|
return {
|
|
16361
16478
|
options: cities,
|
|
@@ -16378,15 +16495,24 @@ const LocationSelection = () => {
|
|
|
16378
16495
|
setShowError(true);
|
|
16379
16496
|
}
|
|
16380
16497
|
}
|
|
16498
|
+
const cityOptions = cities === null || cities === void 0 ? void 0 : cities.map(city => ({
|
|
16499
|
+
...city,
|
|
16500
|
+
displayName: t(city.i18nKey)
|
|
16501
|
+
}));
|
|
16381
16502
|
return isLoading ? /*#__PURE__*/React__default.createElement("loader", null) : /*#__PURE__*/React__default.createElement("div", {
|
|
16382
16503
|
className: "selection-card-wrapper"
|
|
16383
16504
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.BackButton, null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PageBasedInput, {
|
|
16384
16505
|
texts: texts,
|
|
16385
16506
|
onSubmit: onSubmit,
|
|
16386
16507
|
className: "location-selection-container"
|
|
16387
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t("CS_COMMON_CHOOSE_LOCATION")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
16508
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t("CS_COMMON_CHOOSE_LOCATION")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
16509
|
+
option: cityOptions,
|
|
16510
|
+
optionKey: "displayName",
|
|
16511
|
+
id: "city",
|
|
16512
|
+
selected: selectedCity,
|
|
16513
|
+
select: selectCity,
|
|
16388
16514
|
placeholder: t("COMMON_TABLE_SEARCH")
|
|
16389
|
-
})
|
|
16515
|
+
}), showError ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, null, t("CS_COMMON_LOCATION_SELECTION_ERROR")) : null));
|
|
16390
16516
|
};
|
|
16391
16517
|
|
|
16392
16518
|
const FaqComponent = props => {
|
|
@@ -16443,7 +16569,7 @@ const FAQsSection = _ref => {
|
|
|
16443
16569
|
isLoading,
|
|
16444
16570
|
data
|
|
16445
16571
|
} = Digit.Hooks.useGetFAQsJSON(Digit.ULBService.getStateId());
|
|
16446
|
-
const moduleFaqs = data === null || data === void 0 ? void 0 : (_data$MdmsRes$common = data.MdmsRes["common-masters"]) === null || _data$MdmsRes$common === void 0 ? void 0 : (_data$MdmsRes$common$ = _data$MdmsRes$common.faqs[0]) === null || _data$MdmsRes$common$ === void 0 ? void 0 : _data$MdmsRes$common$[
|
|
16572
|
+
const moduleFaqs = data === null || data === void 0 ? void 0 : (_data$MdmsRes$common = data.MdmsRes["common-masters"]) === null || _data$MdmsRes$common === void 0 ? void 0 : (_data$MdmsRes$common$ = _data$MdmsRes$common.faqs[0]) === null || _data$MdmsRes$common$ === void 0 ? void 0 : _data$MdmsRes$common$[`${module}`].faqs;
|
|
16447
16573
|
if (isLoading) {
|
|
16448
16574
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
16449
16575
|
}
|
|
@@ -16536,7 +16662,7 @@ const HowItWorks = _ref => {
|
|
|
16536
16662
|
isLoading,
|
|
16537
16663
|
data
|
|
16538
16664
|
} = Digit.Hooks.useGetHowItWorksJSON(Digit.ULBService.getStateId());
|
|
16539
|
-
const mdmsConfigResult = data === null || data === void 0 ? void 0 : (_data$MdmsRes$common = data.MdmsRes["common-masters"]) === null || _data$MdmsRes$common === void 0 ? void 0 : (_data$MdmsRes$common$ = _data$MdmsRes$common.howItWorks[0]) === null || _data$MdmsRes$common$ === void 0 ? void 0 : _data$MdmsRes$common$[
|
|
16665
|
+
const mdmsConfigResult = data === null || data === void 0 ? void 0 : (_data$MdmsRes$common = data.MdmsRes["common-masters"]) === null || _data$MdmsRes$common === void 0 ? void 0 : (_data$MdmsRes$common$ = _data$MdmsRes$common.howItWorks[0]) === null || _data$MdmsRes$common$ === void 0 ? void 0 : _data$MdmsRes$common$[`${module}`];
|
|
16540
16666
|
const languages = [{
|
|
16541
16667
|
label: "ENGLISH",
|
|
16542
16668
|
value: "en_IN"
|
|
@@ -16705,7 +16831,7 @@ const StaticDynamicCard = _ref => {
|
|
|
16705
16831
|
});
|
|
16706
16832
|
}
|
|
16707
16833
|
};
|
|
16708
|
-
const mdmsConfigResult = mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$MdmsRes$com = mdmsData.MdmsRes["common-masters"]) === null || _mdmsData$MdmsRes$com === void 0 ? void 0 : (_mdmsData$MdmsRes$com2 = _mdmsData$MdmsRes$com.StaticData[0]) === null || _mdmsData$MdmsRes$com2 === void 0 ? void 0 : _mdmsData$MdmsRes$com2[
|
|
16834
|
+
const mdmsConfigResult = mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$MdmsRes$com = mdmsData.MdmsRes["common-masters"]) === null || _mdmsData$MdmsRes$com === void 0 ? void 0 : (_mdmsData$MdmsRes$com2 = _mdmsData$MdmsRes$com.StaticData[0]) === null || _mdmsData$MdmsRes$com2 === void 0 ? void 0 : _mdmsData$MdmsRes$com2[`${moduleCode}`];
|
|
16709
16835
|
const StaticDataIconComponentOne = _ref3 => {
|
|
16710
16836
|
let {
|
|
16711
16837
|
module
|
|
@@ -16802,11 +16928,11 @@ const StaticDynamicCard = _ref => {
|
|
|
16802
16928
|
}, mdmsConfigResult !== null && mdmsConfigResult !== void 0 && (_mdmsConfigResult$hel = mdmsConfigResult.helpline) !== null && _mdmsConfigResult$hel !== void 0 && _mdmsConfigResult$hel.contactOne ? /*#__PURE__*/React__default.createElement("div", {
|
|
16803
16929
|
className: "call-center-card-content"
|
|
16804
16930
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
16805
|
-
href:
|
|
16931
|
+
href: `tel:${mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel2 = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel2 === void 0 ? void 0 : _mdmsConfigResult$hel2.contactOne}`
|
|
16806
16932
|
}, mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel3 = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel3 === void 0 ? void 0 : _mdmsConfigResult$hel3.contactOne)) : null, mdmsConfigResult !== null && mdmsConfigResult !== void 0 && (_mdmsConfigResult$hel4 = mdmsConfigResult.helpline) !== null && _mdmsConfigResult$hel4 !== void 0 && _mdmsConfigResult$hel4.contactTwo ? /*#__PURE__*/React__default.createElement("div", {
|
|
16807
16933
|
className: "call-center-card-content"
|
|
16808
16934
|
}, /*#__PURE__*/React__default.createElement("a", {
|
|
16809
|
-
href:
|
|
16935
|
+
href: `tel:${mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel5 = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel5 === void 0 ? void 0 : _mdmsConfigResult$hel5.contactTwo}`
|
|
16810
16936
|
}, mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel6 = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel6 === void 0 ? void 0 : _mdmsConfigResult$hel6.contactTwo)) : null)) : null, mdmsConfigResult && mdmsConfigResult !== null && mdmsConfigResult !== void 0 && mdmsConfigResult.serviceCenter ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
16811
16937
|
style: {
|
|
16812
16938
|
margin: "16px",
|
|
@@ -16886,7 +17012,7 @@ const StaticDynamicCard = _ref => {
|
|
|
16886
17012
|
}
|
|
16887
17013
|
}, (_staticData2 = staticData(moduleCode)) === null || _staticData2 === void 0 ? void 0 : _staticData2.staticDataOneHeader), /*#__PURE__*/React__default.createElement("span", {
|
|
16888
17014
|
className: "static-data-content-second"
|
|
16889
|
-
},
|
|
17015
|
+
}, `${(_staticData3 = staticData(moduleCode)) === null || _staticData3 === void 0 ? void 0 : _staticData3.staticDataOne}`)))) : /*#__PURE__*/React__default.createElement("div", null), mdmsConfigResult && mdmsConfigResult !== null && mdmsConfigResult !== void 0 && mdmsConfigResult.staticDataTwo ? /*#__PURE__*/React__default.createElement("div", {
|
|
16890
17016
|
className: "staticDataCard"
|
|
16891
17017
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
16892
17018
|
className: "staticData"
|
|
@@ -16988,7 +17114,7 @@ const AcknowledgementCF = _ref => {
|
|
|
16988
17114
|
padding: "0px 10px 20px 10px"
|
|
16989
17115
|
}
|
|
16990
17116
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
16991
|
-
to:
|
|
17117
|
+
to: `/digit-ui/citizen`
|
|
16992
17118
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
16993
17119
|
label: t("CS_COMMON_GO_BACK_TO_HOME")
|
|
16994
17120
|
})))));
|
|
@@ -17038,7 +17164,7 @@ const CitizenFeedback = _ref => {
|
|
|
17038
17164
|
let formData = {};
|
|
17039
17165
|
let ServiceDefinitionCriteria = {
|
|
17040
17166
|
"tenantId": (data === null || data === void 0 ? void 0 : (_data$Properties = data.Properties) === null || _data$Properties === void 0 ? void 0 : (_data$Properties$ = _data$Properties[0]) === null || _data$Properties$ === void 0 ? void 0 : _data$Properties$.tenantId) || tenantId,
|
|
17041
|
-
"code": [
|
|
17167
|
+
"code": [`PT_${redirectedFrom !== null && redirectedFrom !== void 0 && redirectedFrom.includes("payment") ? "PAYMENT" : creationReason || (data === null || data === void 0 ? void 0 : (_data$Properties2 = data.Properties) === null || _data$Properties2 === void 0 ? void 0 : (_data$Properties2$ = _data$Properties2[0]) === null || _data$Properties2$ === void 0 ? void 0 : _data$Properties2$.creationReason)}`],
|
|
17042
17168
|
"module": ["PT"]
|
|
17043
17169
|
};
|
|
17044
17170
|
Digit.PTService.cfdefinitionsearch({
|
|
@@ -17075,11 +17201,14 @@ const CitizenFeedback = _ref => {
|
|
|
17075
17201
|
},
|
|
17076
17202
|
"accountId": user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.uuid
|
|
17077
17203
|
};
|
|
17078
|
-
formData =
|
|
17204
|
+
formData = {
|
|
17205
|
+
...formData,
|
|
17079
17206
|
referenceId: acknowldgementNumber || (data === null || data === void 0 ? void 0 : (_data$Properties6 = data.Properties) === null || _data$Properties6 === void 0 ? void 0 : (_data$Properties6$ = _data$Properties6[0]) === null || _data$Properties6$ === void 0 ? void 0 : _data$Properties6$.acknowldgementNumber)
|
|
17080
|
-
}
|
|
17207
|
+
};
|
|
17081
17208
|
Digit.PTService.cfcreate({
|
|
17082
|
-
Service:
|
|
17209
|
+
Service: {
|
|
17210
|
+
...formData
|
|
17211
|
+
}
|
|
17083
17212
|
}, tenantId).then((result, err) => {
|
|
17084
17213
|
var _result$Service;
|
|
17085
17214
|
if ((result === null || result === void 0 ? void 0 : (_result$Service = result.Service) === null || _result$Service === void 0 ? void 0 : _result$Service.length) > 0) {
|
|
@@ -17102,7 +17231,7 @@ const CitizenFeedback = _ref => {
|
|
|
17102
17231
|
var _e$response, _e$response$data, _e$response$data$Erro;
|
|
17103
17232
|
setShowToast({
|
|
17104
17233
|
key: "error",
|
|
17105
|
-
label:
|
|
17234
|
+
label: `${e === null || e === void 0 ? void 0 : (_e$response = e.response) === null || _e$response === void 0 ? void 0 : (_e$response$data = _e$response.data) === null || _e$response$data === void 0 ? void 0 : (_e$response$data$Erro = _e$response$data.Errors[0]) === null || _e$response$data$Erro === void 0 ? void 0 : _e$response$data$Erro.message}`
|
|
17106
17235
|
});
|
|
17107
17236
|
});
|
|
17108
17237
|
}
|
|
@@ -17130,7 +17259,7 @@ const CitizenFeedback = _ref => {
|
|
|
17130
17259
|
display: "flex",
|
|
17131
17260
|
justifyContent: "space-between"
|
|
17132
17261
|
} : {}
|
|
17133
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t(getCardHeaderAndText("Header")) || t(
|
|
17262
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t(getCardHeaderAndText("Header")) || t(`PT_RATE_HELP_TEXT`)), popup && /*#__PURE__*/React__default.createElement("span", {
|
|
17134
17263
|
style: {
|
|
17135
17264
|
marginTop: "8px"
|
|
17136
17265
|
},
|
|
@@ -17138,7 +17267,7 @@ const CitizenFeedback = _ref => {
|
|
|
17138
17267
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CloseSvg, null))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t(getCardHeaderAndText("Text"), {
|
|
17139
17268
|
acknowldgementNumber: acknowldgementNumber || (data === null || data === void 0 ? void 0 : (_data$Properties8 = data.Properties) === null || _data$Properties8 === void 0 ? void 0 : (_data$Properties8$ = _data$Properties8[0]) === null || _data$Properties8$ === void 0 ? void 0 : _data$Properties8$.acknowldgementNumber),
|
|
17140
17269
|
propertyId: propertyId || (data === null || data === void 0 ? void 0 : (_data$Properties9 = data.Properties) === null || _data$Properties9 === void 0 ? void 0 : (_data$Properties9$ = _data$Properties9[0]) === null || _data$Properties9$ === void 0 ? void 0 : _data$Properties9$.propertyId)
|
|
17141
|
-
}) || t(
|
|
17270
|
+
}) || t(`PT_RATE_TEXT`)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Rating, {
|
|
17142
17271
|
styles: {
|
|
17143
17272
|
justifyContent: "center"
|
|
17144
17273
|
},
|
|
@@ -17155,7 +17284,7 @@ const CitizenFeedback = _ref => {
|
|
|
17155
17284
|
marginBottom: "25px"
|
|
17156
17285
|
}
|
|
17157
17286
|
}, t("CS_MIN_LENGTH_64"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
17158
|
-
label: t("PT"
|
|
17287
|
+
label: t(`${"PT"}_SUBMIT`),
|
|
17159
17288
|
onSubmit: onSubmit,
|
|
17160
17289
|
disabled: getCommentCheck()
|
|
17161
17290
|
}), !popup && /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -17168,7 +17297,7 @@ const CitizenFeedback = _ref => {
|
|
|
17168
17297
|
marginTop: "8px"
|
|
17169
17298
|
}
|
|
17170
17299
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
17171
|
-
to:
|
|
17300
|
+
to: `/digit-ui/citizen`
|
|
17172
17301
|
}, t("CS_GO_BACK_HOME"))))));
|
|
17173
17302
|
};
|
|
17174
17303
|
|
|
@@ -17215,8 +17344,6 @@ const SearchFields = _ref => {
|
|
|
17215
17344
|
})));
|
|
17216
17345
|
};
|
|
17217
17346
|
|
|
17218
|
-
const _excluded$4 = ["currentlyActiveMobileModal", "searchFormFieldsComponentProps", "tenantId"],
|
|
17219
|
-
_excluded2$1 = ["currentlyActiveMobileModal", "searchFormFieldsComponentProps", "tenantId"];
|
|
17220
17347
|
const MobileSearchApplication = _ref => {
|
|
17221
17348
|
var _data$roles;
|
|
17222
17349
|
let {
|
|
@@ -17261,7 +17388,9 @@ const MobileSearchApplication = _ref => {
|
|
|
17261
17388
|
returnObject[t("AUDIT_DATAVIEWED_LABEL")] = (obj === null || obj === void 0 ? void 0 : (_obj$dataView = obj.dataView) === null || _obj$dataView === void 0 ? void 0 : _obj$dataView.join(", ")) || "-";
|
|
17262
17389
|
returnObject[t("AUDIT_DATAVIEWED_BY_LABEL")] = (obj === null || obj === void 0 ? void 0 : obj.dataViewedBy) || "-";
|
|
17263
17390
|
returnObject[t("AUDIT_ROLE_LABEL")] = (obj === null || obj === void 0 ? void 0 : (_obj$roles = obj.roles) === null || _obj$roles === void 0 ? void 0 : _obj$roles.map(obj => obj.name).join(", ")) || "-";
|
|
17264
|
-
return
|
|
17391
|
+
return {
|
|
17392
|
+
...returnObject
|
|
17393
|
+
};
|
|
17265
17394
|
})]);
|
|
17266
17395
|
}
|
|
17267
17396
|
}, [data]);
|
|
@@ -17275,7 +17404,7 @@ const MobileSearchApplication = _ref => {
|
|
|
17275
17404
|
let year = dateFromApi.getFullYear();
|
|
17276
17405
|
month = (month > 9 ? "" : "0") + month;
|
|
17277
17406
|
day = (day > 9 ? "" : "0") + day;
|
|
17278
|
-
return day
|
|
17407
|
+
return `${day}/${month}/${year}`;
|
|
17279
17408
|
};
|
|
17280
17409
|
const convertEpochToTimeInHours = dateEpoch => {
|
|
17281
17410
|
if (dateEpoch == null || dateEpoch == undefined || dateEpoch == "") {
|
|
@@ -17288,7 +17417,7 @@ const MobileSearchApplication = _ref => {
|
|
|
17288
17417
|
hour = hour > 12 ? hour - 12 : hour;
|
|
17289
17418
|
hour = (hour > 9 ? "" : "0") + hour;
|
|
17290
17419
|
min = (min > 9 ? "" : "0") + min;
|
|
17291
|
-
return hour
|
|
17420
|
+
return `${hour}:${min} ${period}`;
|
|
17292
17421
|
};
|
|
17293
17422
|
const [currentlyActiveMobileModal, setActiveMobileModal] = React.useReducer(activateModal, false);
|
|
17294
17423
|
const closeMobilePopupModal = () => {
|
|
@@ -17310,11 +17439,11 @@ const MobileSearchApplication = _ref => {
|
|
|
17310
17439
|
};
|
|
17311
17440
|
const MobileComponentDirectory = _ref2 => {
|
|
17312
17441
|
let {
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17442
|
+
currentlyActiveMobileModal,
|
|
17443
|
+
searchFormFieldsComponentProps,
|
|
17444
|
+
tenantId,
|
|
17445
|
+
...props
|
|
17446
|
+
} = _ref2;
|
|
17318
17447
|
const {
|
|
17319
17448
|
closeMobilePopupModal
|
|
17320
17449
|
} = props;
|
|
@@ -17333,16 +17462,17 @@ const MobileSearchApplication = _ref => {
|
|
|
17333
17462
|
};
|
|
17334
17463
|
const CurrentMobileModalComponent = React.useCallback(_ref3 => {
|
|
17335
17464
|
let {
|
|
17336
|
-
currentlyActiveMobileModal,
|
|
17337
|
-
searchFormFieldsComponentProps,
|
|
17338
|
-
tenantId
|
|
17339
|
-
} = _ref3,
|
|
17340
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
|
|
17341
|
-
return MobileComponentDirectory(_extends({
|
|
17342
17465
|
currentlyActiveMobileModal,
|
|
17343
17466
|
searchFormFieldsComponentProps,
|
|
17344
|
-
tenantId
|
|
17345
|
-
|
|
17467
|
+
tenantId,
|
|
17468
|
+
...props
|
|
17469
|
+
} = _ref3;
|
|
17470
|
+
return MobileComponentDirectory({
|
|
17471
|
+
currentlyActiveMobileModal,
|
|
17472
|
+
searchFormFieldsComponentProps,
|
|
17473
|
+
tenantId,
|
|
17474
|
+
...props
|
|
17475
|
+
});
|
|
17346
17476
|
}, [currentlyActiveMobileModal]);
|
|
17347
17477
|
data === null || data === void 0 ? void 0 : (_data$roles = data.roles) === null || _data$roles === void 0 ? void 0 : _data$roles.forEach(item => {
|
|
17348
17478
|
});
|
|
@@ -17437,7 +17567,7 @@ const SearchApplication = _ref => {
|
|
|
17437
17567
|
let year = dateFromApi.getFullYear();
|
|
17438
17568
|
month = (month > 9 ? "" : "0") + month;
|
|
17439
17569
|
day = (day > 9 ? "" : "0") + day;
|
|
17440
|
-
return day
|
|
17570
|
+
return `${day}/${month}/${year}`;
|
|
17441
17571
|
};
|
|
17442
17572
|
const convertEpochToTimeInHours = dateEpoch => {
|
|
17443
17573
|
if (dateEpoch == null || dateEpoch == undefined || dateEpoch == "") {
|
|
@@ -17450,7 +17580,7 @@ const SearchApplication = _ref => {
|
|
|
17450
17580
|
hour = hour > 12 ? hour - 12 : hour;
|
|
17451
17581
|
hour = (hour > 9 ? "" : "0") + hour;
|
|
17452
17582
|
min = (min > 9 ? "" : "0") + min;
|
|
17453
|
-
return hour
|
|
17583
|
+
return `${hour}:${min} ${period}`;
|
|
17454
17584
|
};
|
|
17455
17585
|
const [tabledata, settabledata] = React.useState([]);
|
|
17456
17586
|
const DownloadBtn = props => {
|
|
@@ -17477,7 +17607,9 @@ const SearchApplication = _ref => {
|
|
|
17477
17607
|
returnObject[t("AUDIT_DATAVIEWED_LABEL")] = (obj === null || obj === void 0 ? void 0 : (_obj$dataView = obj.dataView) === null || _obj$dataView === void 0 ? void 0 : _obj$dataView.join(", ")) || "-";
|
|
17478
17608
|
returnObject[t("AUDIT_DATAVIEWED_BY_LABEL")] = obj === null || obj === void 0 ? void 0 : obj.dataViewedBy;
|
|
17479
17609
|
returnObject[t("AUDIT_ROLE_LABEL")] = (obj === null || obj === void 0 ? void 0 : (_obj$roles = obj.roles) === null || _obj$roles === void 0 ? void 0 : _obj$roles.map(obj => obj.name).join(", ")) || "-";
|
|
17480
|
-
return
|
|
17610
|
+
return {
|
|
17611
|
+
...returnObject
|
|
17612
|
+
};
|
|
17481
17613
|
})]);
|
|
17482
17614
|
}
|
|
17483
17615
|
}, [data]);
|
|
@@ -17523,34 +17655,34 @@ const SearchApplication = _ref => {
|
|
|
17523
17655
|
disableSortBy: true,
|
|
17524
17656
|
accessor: row => {
|
|
17525
17657
|
const timestamp = row.timestamp === "NA" ? t("WS_NA") : convertEpochToDate(row.timestamp);
|
|
17526
|
-
return GetCell(
|
|
17658
|
+
return GetCell(`${timestamp || "-"}`);
|
|
17527
17659
|
}
|
|
17528
17660
|
}, {
|
|
17529
17661
|
Header: t("AUDIT_TIME_LABEL"),
|
|
17530
17662
|
disableSortBy: true,
|
|
17531
17663
|
accessor: row => {
|
|
17532
17664
|
const timestamp = row.timestamp === "NA" ? t("WS_NA") : convertEpochToTimeInHours(row.timestamp);
|
|
17533
|
-
return GetCell(
|
|
17665
|
+
return GetCell(`${timestamp || "-"}`);
|
|
17534
17666
|
}
|
|
17535
17667
|
}, {
|
|
17536
17668
|
Header: isMobile ? t("AUDIT_DATAVIEWED_LABEL") : t("AUDIT_DATAVIEWED_PRIVACY"),
|
|
17537
17669
|
disableSortBy: true,
|
|
17538
17670
|
accessor: row => {
|
|
17539
17671
|
var _row$dataView;
|
|
17540
|
-
return GetCell(
|
|
17672
|
+
return GetCell(`${(row === null || row === void 0 ? void 0 : (_row$dataView = row.dataView) === null || _row$dataView === void 0 ? void 0 : _row$dataView.join(", ")) || "-"}`);
|
|
17541
17673
|
}
|
|
17542
17674
|
}, {
|
|
17543
17675
|
Header: isMobile ? t("AUDIT_DATAVIEWED_BY_LABEL") : t("AUDIT_DATAVIEWED_BY_PRIVACY"),
|
|
17544
17676
|
disableSortBy: true,
|
|
17545
17677
|
accessor: row => {
|
|
17546
|
-
return GetCell(
|
|
17678
|
+
return GetCell(`${(row === null || row === void 0 ? void 0 : row.dataViewedBy) || "-"}`);
|
|
17547
17679
|
}
|
|
17548
17680
|
}, {
|
|
17549
17681
|
Header: t("AUDIT_ROLE_LABEL"),
|
|
17550
17682
|
disableSortBy: true,
|
|
17551
17683
|
accessor: row => {
|
|
17552
17684
|
var _row$roles, _row$roles$slice, _row$roles$slice$map;
|
|
17553
|
-
return GetCell(
|
|
17685
|
+
return GetCell(`${(row === null || row === void 0 ? void 0 : (_row$roles = row.roles) === null || _row$roles === void 0 ? void 0 : (_row$roles$slice = _row$roles.slice(0, 3)) === null || _row$roles$slice === void 0 ? void 0 : (_row$roles$slice$map = _row$roles$slice.map(e => e.name)) === null || _row$roles$slice$map === void 0 ? void 0 : _row$roles$slice$map.join(", ")) || "-"}`);
|
|
17554
17686
|
}
|
|
17555
17687
|
}], []);
|
|
17556
17688
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -17638,7 +17770,7 @@ const SearchApplication = _ref => {
|
|
|
17638
17770
|
};
|
|
17639
17771
|
|
|
17640
17772
|
const Search = _ref => {
|
|
17641
|
-
var _data$ElasticSearchDa, _data$ElasticSearchDa2, _data$ElasticSearchDa3, _data$ElasticSearchDa4, _data$ElasticSearchDa5, _data$ElasticSearchDa6, _data$ElasticSearchDa7, _data$ElasticSearchDa8, _data$ElasticSearchDa9, _data$
|
|
17773
|
+
var _data$ElasticSearchDa, _data$ElasticSearchDa2, _data$ElasticSearchDa3, _data$ElasticSearchDa4, _data$ElasticSearchDa5, _data$ElasticSearchDa6, _data$ElasticSearchDa7, _data$ElasticSearchDa8, _data$ElasticSearchDa9, _data$ElasticSearchDa10;
|
|
17642
17774
|
const {
|
|
17643
17775
|
t
|
|
17644
17776
|
} = reactI18next.useTranslation();
|
|
@@ -17671,19 +17803,24 @@ const Search = _ref => {
|
|
|
17671
17803
|
offset: 0,
|
|
17672
17804
|
limit: 10
|
|
17673
17805
|
});
|
|
17674
|
-
let data =
|
|
17806
|
+
let data = {
|
|
17807
|
+
..._data,
|
|
17675
17808
|
fromDate: convertDateToEpoch(_data === null || _data === void 0 ? void 0 : _data.fromDate, (_data === null || _data === void 0 ? void 0 : _data.fromDate) == (_data === null || _data === void 0 ? void 0 : _data.toDate) ? "daystart" : ""),
|
|
17676
17809
|
toDate: convertDateToEpoch(_data === null || _data === void 0 ? void 0 : _data.toDate, (_data === null || _data === void 0 ? void 0 : _data.fromDate) == (_data === null || _data === void 0 ? void 0 : _data.toDate) ? "dayend" : "")
|
|
17677
|
-
}
|
|
17678
|
-
setPayload(Object.keys(data).filter(k => data[k]).reduce((acc, key) =>
|
|
17810
|
+
};
|
|
17811
|
+
setPayload(Object.keys(data).filter(k => data[k]).reduce((acc, key) => ({
|
|
17812
|
+
...acc,
|
|
17679
17813
|
[key]: typeof data[key] === "object" ? data[key] : data[key]
|
|
17680
17814
|
}), {}));
|
|
17681
17815
|
}
|
|
17682
17816
|
React.useEffect(() => {
|
|
17683
17817
|
const storedPayload = Digit.SessionStorage.get("AUDIT_APPLICATION_DETAIL") || {};
|
|
17684
17818
|
if (storedPayload) {
|
|
17685
|
-
const data =
|
|
17686
|
-
|
|
17819
|
+
const data = {
|
|
17820
|
+
...storedPayload
|
|
17821
|
+
};
|
|
17822
|
+
setPayload(Object.keys(data).filter(k => data[k]).reduce((acc, key) => ({
|
|
17823
|
+
...acc,
|
|
17687
17824
|
[key]: typeof data[key] === "object" ? data[key].code : data[key]
|
|
17688
17825
|
}), {}));
|
|
17689
17826
|
}
|
|
@@ -17700,15 +17837,20 @@ const Search = _ref => {
|
|
|
17700
17837
|
} else {
|
|
17701
17838
|
previousoffset = 10;
|
|
17702
17839
|
}
|
|
17703
|
-
const newObj = isMobile ?
|
|
17840
|
+
const newObj = isMobile ? {
|
|
17841
|
+
...payload,
|
|
17704
17842
|
offset: !isNaN(parseInt(curoffset)) ? parseInt(currentoffset) : 0
|
|
17705
|
-
}
|
|
17843
|
+
} : {
|
|
17844
|
+
...payload
|
|
17845
|
+
};
|
|
17706
17846
|
const {
|
|
17707
17847
|
isLoading,
|
|
17708
17848
|
data
|
|
17709
17849
|
} = Digit.Hooks.useAudit({
|
|
17710
17850
|
tenantId,
|
|
17711
|
-
filters:
|
|
17851
|
+
filters: {
|
|
17852
|
+
...newObj
|
|
17853
|
+
},
|
|
17712
17854
|
config
|
|
17713
17855
|
});
|
|
17714
17856
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(SearchApplication, {
|
|
@@ -17720,7 +17862,7 @@ const Search = _ref => {
|
|
|
17720
17862
|
} : "",
|
|
17721
17863
|
count: data === null || data === void 0 ? void 0 : (_data$ElasticSearchDa4 = data.ElasticSearchData) === null || _data$ElasticSearchDa4 === void 0 ? void 0 : (_data$ElasticSearchDa5 = _data$ElasticSearchDa4.filter(e => e.total)) === null || _data$ElasticSearchDa5 === void 0 ? void 0 : (_data$ElasticSearchDa6 = _data$ElasticSearchDa5[0]) === null || _data$ElasticSearchDa6 === void 0 ? void 0 : _data$ElasticSearchDa6.total,
|
|
17722
17864
|
isLoading: isLoading
|
|
17723
|
-
}), isMobile && (data === null || data === void 0 ? void 0 : (_data$ElasticSearchDa7 = data.ElasticSearchData) === null || _data$ElasticSearchDa7 === void 0 ? void 0 : (_data$ElasticSearchDa8 = _data$ElasticSearchDa7.filter(e => !e.total)) === null || _data$ElasticSearchDa8 === void 0 ? void 0 : _data$ElasticSearchDa8.length) && (data === null || data === void 0 ? void 0 : (_data$ElasticSearchDa9 = data.ElasticSearchData) === null || _data$ElasticSearchDa9 === void 0 ? void 0 : (_data$
|
|
17865
|
+
}), isMobile && (data === null || data === void 0 ? void 0 : (_data$ElasticSearchDa7 = data.ElasticSearchData) === null || _data$ElasticSearchDa7 === void 0 ? void 0 : (_data$ElasticSearchDa8 = _data$ElasticSearchDa7.filter(e => !e.total)) === null || _data$ElasticSearchDa8 === void 0 ? void 0 : _data$ElasticSearchDa8.length) && (data === null || data === void 0 ? void 0 : (_data$ElasticSearchDa9 = data.ElasticSearchData) === null || _data$ElasticSearchDa9 === void 0 ? void 0 : (_data$ElasticSearchDa10 = _data$ElasticSearchDa9.filter(e => !e.total)) === null || _data$ElasticSearchDa10 === void 0 ? void 0 : _data$ElasticSearchDa10.length) !== 0 && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", {
|
|
17724
17866
|
style: {
|
|
17725
17867
|
marginLeft: "16px",
|
|
17726
17868
|
marginBottom: "40px"
|
|
@@ -17728,12 +17870,12 @@ const Search = _ref => {
|
|
|
17728
17870
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
17729
17871
|
className: "link"
|
|
17730
17872
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
17731
|
-
to:
|
|
17873
|
+
to: `/digit-ui/citizen/Audit/${previousoffset}`
|
|
17732
17874
|
}, t("PT_LOAD_MORE_MSG"))))));
|
|
17733
17875
|
};
|
|
17734
17876
|
|
|
17735
17877
|
const QRCode = _ref => {
|
|
17736
|
-
var _window$location$href, _window$location$href2, _window$location$href3, _window$location$href4, _PaymentReceipt$Payme, _PaymentReceipt$Payme2, _PaymentReceipt$Payme3, _PaymentReceipt$Payme4, _PaymentReceipt$Payme5, _PaymentReceipt$Payme6, _PaymentReceipt$Payme7, _PaymentReceipt$Payme8, _PaymentReceipt$Payme9, _PaymentReceipt$
|
|
17878
|
+
var _window$location$href, _window$location$href2, _window$location$href3, _window$location$href4, _PaymentReceipt$Payme, _PaymentReceipt$Payme2, _PaymentReceipt$Payme3, _PaymentReceipt$Payme4, _PaymentReceipt$Payme5, _PaymentReceipt$Payme6, _PaymentReceipt$Payme7, _PaymentReceipt$Payme8, _PaymentReceipt$Payme9, _PaymentReceipt$Payme10, _PaymentReceipt$Payme11;
|
|
17737
17879
|
const {
|
|
17738
17880
|
t
|
|
17739
17881
|
} = reactI18next.useTranslation();
|
|
@@ -17745,7 +17887,7 @@ const QRCode = _ref => {
|
|
|
17745
17887
|
let year = dateFromApi.getFullYear();
|
|
17746
17888
|
month = (month > 9 ? "" : "0") + month;
|
|
17747
17889
|
day = (day > 9 ? "" : "0") + day;
|
|
17748
|
-
return day
|
|
17890
|
+
return `${day}/${month}/${year}`;
|
|
17749
17891
|
} else {
|
|
17750
17892
|
return "NA";
|
|
17751
17893
|
}
|
|
@@ -17761,7 +17903,7 @@ const QRCode = _ref => {
|
|
|
17761
17903
|
if (convertedValue == "NA") {
|
|
17762
17904
|
return "PT_NA";
|
|
17763
17905
|
}
|
|
17764
|
-
return key
|
|
17906
|
+
return `${key}_${convertedValue}`;
|
|
17765
17907
|
};
|
|
17766
17908
|
const convertDotValues = function (value) {
|
|
17767
17909
|
if (value === void 0) {
|
|
@@ -17779,9 +17921,9 @@ const QRCode = _ref => {
|
|
|
17779
17921
|
const fromDate = new Date(from);
|
|
17780
17922
|
const toDate = new Date(to);
|
|
17781
17923
|
if (toDate.getYear() - fromDate.getYear() != 0) {
|
|
17782
|
-
return
|
|
17924
|
+
return `FY${fromDate.getYear() + 1900}-${toDate.getYear() - 100}`;
|
|
17783
17925
|
}
|
|
17784
|
-
return fromDate.toLocaleDateString()
|
|
17926
|
+
return `${fromDate.toLocaleDateString()}-${toDate.toLocaleDateString()}`;
|
|
17785
17927
|
};
|
|
17786
17928
|
const city = (_window$location$href = window.location.href.split("/payment/verification?")) === null || _window$location$href === void 0 ? void 0 : (_window$location$href2 = _window$location$href[1].split("&")) === null || _window$location$href2 === void 0 ? void 0 : _window$location$href2[0].split("=")[1];
|
|
17787
17929
|
const reciept = (_window$location$href3 = window.location.href.split("/payment/verification?")) === null || _window$location$href3 === void 0 ? void 0 : (_window$location$href4 = _window$location$href3[1].split("&")) === null || _window$location$href4 === void 0 ? void 0 : _window$location$href4[1].split("=")[1];
|
|
@@ -17825,20 +17967,19 @@ const QRCode = _ref => {
|
|
|
17825
17967
|
text: "₹" + (PaymentReceipt === null || PaymentReceipt === void 0 ? void 0 : PaymentReceipt.Payments[0].totalDue) || "₹0"
|
|
17826
17968
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
17827
17969
|
label: t("CR_RECEIPT_PAYMENT_MODE"),
|
|
17828
|
-
text: PaymentReceipt !== null && PaymentReceipt !== void 0 && PaymentReceipt.Payments[0].paymentMode ? t(
|
|
17970
|
+
text: PaymentReceipt !== null && PaymentReceipt !== void 0 && PaymentReceipt.Payments[0].paymentMode ? t(`COMMON_MASTERS_PAYMENTMODE_${PaymentReceipt === null || PaymentReceipt === void 0 ? void 0 : PaymentReceipt.Payments[0].paymentMode}`) || "NA" : "NA"
|
|
17829
17971
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
17830
17972
|
label: t("CR_RECEIPT_TXN_ID"),
|
|
17831
17973
|
text: (PaymentReceipt === null || PaymentReceipt === void 0 ? void 0 : PaymentReceipt.Payments[0].transactionNumber) || "NA"
|
|
17832
17974
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
17833
17975
|
label: t("CR_RECEIPT_G8_RECEIPT_NO"),
|
|
17834
|
-
text: (PaymentReceipt === null || PaymentReceipt === void 0 ? void 0 : (_PaymentReceipt$
|
|
17976
|
+
text: (PaymentReceipt === null || PaymentReceipt === void 0 ? void 0 : (_PaymentReceipt$Payme10 = PaymentReceipt.Payments[0]) === null || _PaymentReceipt$Payme10 === void 0 ? void 0 : _PaymentReceipt$Payme10.manualReceiptNumber) || "NA"
|
|
17835
17977
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
17836
17978
|
label: t("CR_RECEIPT_G8_RECEIPT_DATE"),
|
|
17837
|
-
text: convertEpochToDate(PaymentReceipt === null || PaymentReceipt === void 0 ? void 0 : (_PaymentReceipt$
|
|
17979
|
+
text: convertEpochToDate(PaymentReceipt === null || PaymentReceipt === void 0 ? void 0 : (_PaymentReceipt$Payme11 = PaymentReceipt.Payments[0]) === null || _PaymentReceipt$Payme11 === void 0 ? void 0 : _PaymentReceipt$Payme11.manualReceiptDate) || "NA"
|
|
17838
17980
|
})) : "")));
|
|
17839
17981
|
};
|
|
17840
17982
|
|
|
17841
|
-
const _excluded$5 = ["isLoading", "data"];
|
|
17842
17983
|
const ChallanQRCode = _ref => {
|
|
17843
17984
|
var _window$location$href, _window$location$href2, _window$location$href3, _window$location$href4, _data$challans, _data$challans$, _data$challans2, _data$challans2$, _data$challans3, _data$challans3$, _data$challans4, _data$challans4$, _data$challans5, _data$challans5$, _data$challans5$$citi, _data$challans6, _data$challans6$, _data$challans6$$citi, _data$challans7, _data$challans7$, _data$challans7$$addr, _data$challans7$$addr2;
|
|
17844
17985
|
const {
|
|
@@ -17855,7 +17996,7 @@ const ChallanQRCode = _ref => {
|
|
|
17855
17996
|
if (convertedValue == "NA") {
|
|
17856
17997
|
return "PT_NA";
|
|
17857
17998
|
}
|
|
17858
|
-
return key
|
|
17999
|
+
return `${key}_${convertedValue}`;
|
|
17859
18000
|
};
|
|
17860
18001
|
const convertDotValues = function (value) {
|
|
17861
18002
|
if (value === void 0) {
|
|
@@ -17873,23 +18014,22 @@ const ChallanQRCode = _ref => {
|
|
|
17873
18014
|
const fromDate = new Date(from);
|
|
17874
18015
|
const toDate = new Date(to);
|
|
17875
18016
|
if (toDate.getYear() - fromDate.getYear() != 0) {
|
|
17876
|
-
return
|
|
18017
|
+
return `FY${fromDate.getYear() + 1900}-${toDate.getYear() - 100}`;
|
|
17877
18018
|
}
|
|
17878
|
-
return fromDate.toLocaleDateString()
|
|
18019
|
+
return `${fromDate.toLocaleDateString()}-${toDate.toLocaleDateString()}`;
|
|
17879
18020
|
};
|
|
17880
18021
|
const city = (_window$location$href = window.location.href.split("/challan/details?")) === null || _window$location$href === void 0 ? void 0 : (_window$location$href2 = _window$location$href[1].split("&")) === null || _window$location$href2 === void 0 ? void 0 : _window$location$href2[0].split("=")[1];
|
|
17881
18022
|
const challan = (_window$location$href3 = window.location.href.split("challan/details?")) === null || _window$location$href3 === void 0 ? void 0 : (_window$location$href4 = _window$location$href3[1].split("&")) === null || _window$location$href4 === void 0 ? void 0 : _window$location$href4[1].split("=")[1];
|
|
17882
|
-
const
|
|
17883
|
-
|
|
17884
|
-
|
|
17885
|
-
|
|
17886
|
-
|
|
17887
|
-
|
|
17888
|
-
{
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
|
|
17892
|
-
rest = _objectWithoutPropertiesLoose(_Digit$Hooks$mcollect, _excluded$5);
|
|
18023
|
+
const {
|
|
18024
|
+
isLoading,
|
|
18025
|
+
data,
|
|
18026
|
+
...rest
|
|
18027
|
+
} = Digit.Hooks.mcollect.useMCollectSearch({
|
|
18028
|
+
tenantId: city,
|
|
18029
|
+
filters: {
|
|
18030
|
+
challanNo: challan
|
|
18031
|
+
}
|
|
18032
|
+
});
|
|
17893
18033
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
17894
18034
|
style: {
|
|
17895
18035
|
width: "100%"
|
|
@@ -18377,58 +18517,58 @@ const AcknowledgementQRCode = _ref => {
|
|
|
18377
18517
|
console.log("wands", WandS);
|
|
18378
18518
|
let details = [];
|
|
18379
18519
|
if (module === "PT") {
|
|
18380
|
-
var _window$location$href5, _window$location$href6, _window$location$href7, _window$location$href8, _window$location$href9, _window$location$
|
|
18520
|
+
var _window$location$href5, _window$location$href6, _window$location$href7, _window$location$href8, _window$location$href9, _window$location$href10, _window$location$href11, _window$location$href12, _window$location$href13, _window$location$href14, _window$location$href15, _window$location$href16, _window$location$href17, _window$location$href18;
|
|
18381
18521
|
setPTPropertyId((_window$location$href5 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href5 === void 0 ? void 0 : (_window$location$href6 = _window$location$href5[1].split("&")) === null || _window$location$href6 === void 0 ? void 0 : _window$location$href6[2].split("=")[1]);
|
|
18382
18522
|
setPTOwnername((_window$location$href7 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href7 === void 0 ? void 0 : (_window$location$href8 = _window$location$href7[1].split("&")) === null || _window$location$href8 === void 0 ? void 0 : _window$location$href8[3].split("=")[1]);
|
|
18383
|
-
setPTMblNumber((_window$location$href9 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href9 === void 0 ? void 0 : (_window$location$
|
|
18384
|
-
setPTPropertyTYpe((_window$location$
|
|
18385
|
-
setPTArea((_window$location$
|
|
18386
|
-
setPTBuildupArea((_window$location$
|
|
18387
|
-
setPTAddress((_window$location$
|
|
18523
|
+
setPTMblNumber((_window$location$href9 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href9 === void 0 ? void 0 : (_window$location$href10 = _window$location$href9[1].split("&")) === null || _window$location$href10 === void 0 ? void 0 : _window$location$href10[4].split("=")[1]);
|
|
18524
|
+
setPTPropertyTYpe((_window$location$href11 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href11 === void 0 ? void 0 : (_window$location$href12 = _window$location$href11[1].split("&")) === null || _window$location$href12 === void 0 ? void 0 : _window$location$href12[5].split("=")[1]);
|
|
18525
|
+
setPTArea((_window$location$href13 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href13 === void 0 ? void 0 : (_window$location$href14 = _window$location$href13[1].split("&")) === null || _window$location$href14 === void 0 ? void 0 : _window$location$href14[6].split("=")[1]);
|
|
18526
|
+
setPTBuildupArea((_window$location$href15 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href15 === void 0 ? void 0 : (_window$location$href16 = _window$location$href15[1].split("&")) === null || _window$location$href16 === void 0 ? void 0 : _window$location$href16[7].split("=")[1]);
|
|
18527
|
+
setPTAddress((_window$location$href17 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href17 === void 0 ? void 0 : (_window$location$href18 = _window$location$href17[1].split("&")) === null || _window$location$href18 === void 0 ? void 0 : _window$location$href18[8].split("=")[1]);
|
|
18388
18528
|
} else if (module === "PGR") {
|
|
18389
|
-
var _window$location$
|
|
18390
|
-
setGrievanceType((_window$location$
|
|
18391
|
-
setGrievanceSubType((_window$location$
|
|
18392
|
-
setPriorityLevel((_window$location$
|
|
18393
|
-
setPGRAddress((_window$location$
|
|
18529
|
+
var _window$location$href19, _window$location$href20, _window$location$href21, _window$location$href22, _window$location$href23, _window$location$href24, _window$location$href25, _window$location$href26;
|
|
18530
|
+
setGrievanceType((_window$location$href19 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href19 === void 0 ? void 0 : (_window$location$href20 = _window$location$href19[1].split("&")) === null || _window$location$href20 === void 0 ? void 0 : _window$location$href20[2].split("=")[1]);
|
|
18531
|
+
setGrievanceSubType((_window$location$href21 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href21 === void 0 ? void 0 : (_window$location$href22 = _window$location$href21[1].split("&")) === null || _window$location$href22 === void 0 ? void 0 : _window$location$href22[3].split("=")[1]);
|
|
18532
|
+
setPriorityLevel((_window$location$href23 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href23 === void 0 ? void 0 : (_window$location$href24 = _window$location$href23[1].split("&")) === null || _window$location$href24 === void 0 ? void 0 : _window$location$href24[4].split("=")[1]);
|
|
18533
|
+
setPGRAddress((_window$location$href25 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href25 === void 0 ? void 0 : (_window$location$href26 = _window$location$href25[1].split("&")) === null || _window$location$href26 === void 0 ? void 0 : _window$location$href26[5].split("=")[1]);
|
|
18394
18534
|
} else if (module === "FSM") {
|
|
18395
|
-
var _window$location$
|
|
18396
|
-
setFSMName((_window$location$
|
|
18397
|
-
setMblNumber((_window$location$
|
|
18398
|
-
setFSMPropertyId((_window$location$
|
|
18399
|
-
setFSMPropertyType((_window$location$
|
|
18400
|
-
setfsmPropertySubType((_window$location$
|
|
18401
|
-
setNoOfTrips((_window$location$
|
|
18402
|
-
setfsmTotalAmount((_window$location$
|
|
18403
|
-
setFSMAdvAmountDue((_window$location$
|
|
18535
|
+
var _window$location$href27, _window$location$href28, _window$location$href29, _window$location$href30, _window$location$href31, _window$location$href32, _window$location$href33, _window$location$href34, _window$location$href35, _window$location$href36, _window$location$href37, _window$location$href38, _window$location$href39, _window$location$href40, _window$location$href41, _window$location$href42;
|
|
18536
|
+
setFSMName((_window$location$href27 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href27 === void 0 ? void 0 : (_window$location$href28 = _window$location$href27[1].split("&")) === null || _window$location$href28 === void 0 ? void 0 : _window$location$href28[2].split("=")[1]);
|
|
18537
|
+
setMblNumber((_window$location$href29 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href29 === void 0 ? void 0 : (_window$location$href30 = _window$location$href29[1].split("&")) === null || _window$location$href30 === void 0 ? void 0 : _window$location$href30[3].split("=")[1]);
|
|
18538
|
+
setFSMPropertyId((_window$location$href31 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href31 === void 0 ? void 0 : (_window$location$href32 = _window$location$href31[1].split("&")) === null || _window$location$href32 === void 0 ? void 0 : _window$location$href32[4].split("=")[1]);
|
|
18539
|
+
setFSMPropertyType((_window$location$href33 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href33 === void 0 ? void 0 : (_window$location$href34 = _window$location$href33[1].split("&")) === null || _window$location$href34 === void 0 ? void 0 : _window$location$href34[5].split("=")[1]);
|
|
18540
|
+
setfsmPropertySubType((_window$location$href35 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href35 === void 0 ? void 0 : (_window$location$href36 = _window$location$href35[1].split("&")) === null || _window$location$href36 === void 0 ? void 0 : _window$location$href36[6].split("=")[1]);
|
|
18541
|
+
setNoOfTrips((_window$location$href37 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href37 === void 0 ? void 0 : (_window$location$href38 = _window$location$href37[1].split("&")) === null || _window$location$href38 === void 0 ? void 0 : _window$location$href38[7].split("=")[1]);
|
|
18542
|
+
setfsmTotalAmount((_window$location$href39 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href39 === void 0 ? void 0 : (_window$location$href40 = _window$location$href39[1].split("&")) === null || _window$location$href40 === void 0 ? void 0 : _window$location$href40[8].split("=")[1]);
|
|
18543
|
+
setFSMAdvAmountDue((_window$location$href41 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href41 === void 0 ? void 0 : (_window$location$href42 = _window$location$href41[1].split("&")) === null || _window$location$href42 === void 0 ? void 0 : _window$location$href42[9].split("=")[1]);
|
|
18404
18544
|
} else if (module === "BP") {
|
|
18405
|
-
var _window$location$
|
|
18406
|
-
setEdcrNumber((_window$location$
|
|
18407
|
-
setApplbType((_window$location$
|
|
18408
|
-
setServiceType((_window$location$
|
|
18409
|
-
setApplicantEdcr((_window$location$
|
|
18410
|
-
setBPAOwner((_window$location$
|
|
18411
|
-
setBPAMblNumber((_window$location$
|
|
18412
|
-
setBPAAdress((_window$location$
|
|
18545
|
+
var _window$location$href43, _window$location$href44, _window$location$href45, _window$location$href46, _window$location$href47, _window$location$href48, _window$location$href49, _window$location$href50, _window$location$href51, _window$location$href52, _window$location$href53, _window$location$href54, _window$location$href55, _window$location$href56;
|
|
18546
|
+
setEdcrNumber((_window$location$href43 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href43 === void 0 ? void 0 : (_window$location$href44 = _window$location$href43[1].split("&")) === null || _window$location$href44 === void 0 ? void 0 : _window$location$href44[2].split("=")[1]);
|
|
18547
|
+
setApplbType((_window$location$href45 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href45 === void 0 ? void 0 : (_window$location$href46 = _window$location$href45[1].split("&")) === null || _window$location$href46 === void 0 ? void 0 : _window$location$href46[3].split("=")[1]);
|
|
18548
|
+
setServiceType((_window$location$href47 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href47 === void 0 ? void 0 : (_window$location$href48 = _window$location$href47[1].split("&")) === null || _window$location$href48 === void 0 ? void 0 : _window$location$href48[4].split("=")[1]);
|
|
18549
|
+
setApplicantEdcr((_window$location$href49 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href49 === void 0 ? void 0 : (_window$location$href50 = _window$location$href49[1].split("&")) === null || _window$location$href50 === void 0 ? void 0 : _window$location$href50[5].split("=")[1]);
|
|
18550
|
+
setBPAOwner((_window$location$href51 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href51 === void 0 ? void 0 : (_window$location$href52 = _window$location$href51[1].split("&")) === null || _window$location$href52 === void 0 ? void 0 : _window$location$href52[6].split("=")[1]);
|
|
18551
|
+
setBPAMblNumber((_window$location$href53 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href53 === void 0 ? void 0 : (_window$location$href54 = _window$location$href53[1].split("&")) === null || _window$location$href54 === void 0 ? void 0 : _window$location$href54[7].split("=")[1]);
|
|
18552
|
+
setBPAAdress((_window$location$href55 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href55 === void 0 ? void 0 : (_window$location$href56 = _window$location$href55[1].split("&")) === null || _window$location$href56 === void 0 ? void 0 : _window$location$href56[8].split("=")[1]);
|
|
18413
18553
|
} else if (module === "TL") {
|
|
18414
|
-
var _window$location$
|
|
18415
|
-
setStructureType((_window$location$
|
|
18416
|
-
setTLOwnerName((_window$location$
|
|
18417
|
-
setTLMblNumber((_window$location$
|
|
18418
|
-
setTLPropertyID((_window$location$
|
|
18419
|
-
setTLPropertyAddress((_window$location$
|
|
18554
|
+
var _window$location$href57, _window$location$href58, _window$location$href59, _window$location$href60, _window$location$href61, _window$location$href62, _window$location$href63, _window$location$href64, _window$location$href65, _window$location$href66;
|
|
18555
|
+
setStructureType((_window$location$href57 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href57 === void 0 ? void 0 : (_window$location$href58 = _window$location$href57[1].split("&")) === null || _window$location$href58 === void 0 ? void 0 : _window$location$href58[2].split("=")[1]);
|
|
18556
|
+
setTLOwnerName((_window$location$href59 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href59 === void 0 ? void 0 : (_window$location$href60 = _window$location$href59[1].split("&")) === null || _window$location$href60 === void 0 ? void 0 : _window$location$href60[3].split("=")[1]);
|
|
18557
|
+
setTLMblNumber((_window$location$href61 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href61 === void 0 ? void 0 : (_window$location$href62 = _window$location$href61[1].split("&")) === null || _window$location$href62 === void 0 ? void 0 : _window$location$href62[4].split("=")[1]);
|
|
18558
|
+
setTLPropertyID((_window$location$href63 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href63 === void 0 ? void 0 : (_window$location$href64 = _window$location$href63[1].split("&")) === null || _window$location$href64 === void 0 ? void 0 : _window$location$href64[5].split("=")[1]);
|
|
18559
|
+
setTLPropertyAddress((_window$location$href65 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href65 === void 0 ? void 0 : (_window$location$href66 = _window$location$href65[1].split("&")) === null || _window$location$href66 === void 0 ? void 0 : _window$location$href66[6].split("=")[1]);
|
|
18420
18560
|
} else if (WandS === "WS") {
|
|
18421
|
-
var _window$location$
|
|
18422
|
-
setWSOwnerName((_window$location$
|
|
18423
|
-
setWSAddress((_window$location$
|
|
18424
|
-
setNOOfTaps((_window$location$
|
|
18425
|
-
setConnectSize((_window$location$
|
|
18561
|
+
var _window$location$href67, _window$location$href68, _window$location$href69, _window$location$href70, _window$location$href71, _window$location$href72, _window$location$href73, _window$location$href74;
|
|
18562
|
+
setWSOwnerName((_window$location$href67 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href67 === void 0 ? void 0 : (_window$location$href68 = _window$location$href67[1].split("&")) === null || _window$location$href68 === void 0 ? void 0 : _window$location$href68[2].split("=")[1]);
|
|
18563
|
+
setWSAddress((_window$location$href69 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href69 === void 0 ? void 0 : (_window$location$href70 = _window$location$href69[1].split("&")) === null || _window$location$href70 === void 0 ? void 0 : _window$location$href70[3].split("=")[1]);
|
|
18564
|
+
setNOOfTaps((_window$location$href71 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href71 === void 0 ? void 0 : (_window$location$href72 = _window$location$href71[1].split("&")) === null || _window$location$href72 === void 0 ? void 0 : _window$location$href72[4].split("=")[1]);
|
|
18565
|
+
setConnectSize((_window$location$href73 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href73 === void 0 ? void 0 : (_window$location$href74 = _window$location$href73[1].split("&")) === null || _window$location$href74 === void 0 ? void 0 : _window$location$href74[5].split("=")[1]);
|
|
18426
18566
|
} else if (WandS === "SW") {
|
|
18427
|
-
var _window$location$
|
|
18428
|
-
setSWOwnerName((_window$location$
|
|
18429
|
-
setSWAdrress((_window$location$
|
|
18430
|
-
setNOOFClosets((_window$location$
|
|
18431
|
-
setNOOFSeats((_window$location$
|
|
18567
|
+
var _window$location$href75, _window$location$href76, _window$location$href77, _window$location$href78, _window$location$href79, _window$location$href80, _window$location$href81, _window$location$href82;
|
|
18568
|
+
setSWOwnerName((_window$location$href75 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href75 === void 0 ? void 0 : (_window$location$href76 = _window$location$href75[1].split("&")) === null || _window$location$href76 === void 0 ? void 0 : _window$location$href76[2].split("=")[1]);
|
|
18569
|
+
setSWAdrress((_window$location$href77 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href77 === void 0 ? void 0 : (_window$location$href78 = _window$location$href77[1].split("&")) === null || _window$location$href78 === void 0 ? void 0 : _window$location$href78[3].split("=")[1]);
|
|
18570
|
+
setNOOFClosets((_window$location$href79 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href79 === void 0 ? void 0 : (_window$location$href80 = _window$location$href79[1].split("&")) === null || _window$location$href80 === void 0 ? void 0 : _window$location$href80[4].split("=")[1]);
|
|
18571
|
+
setNOOFSeats((_window$location$href81 = window.location.href.split("/acknowledgement/details?")) === null || _window$location$href81 === void 0 ? void 0 : (_window$location$href82 = _window$location$href81[1].split("&")) === null || _window$location$href82 === void 0 ? void 0 : _window$location$href82[5].split("=")[1]);
|
|
18432
18572
|
}
|
|
18433
18573
|
setDetails(details);
|
|
18434
18574
|
return Promise.resolve();
|
|
@@ -18617,13 +18757,13 @@ const AcknowledgementQRCode = _ref => {
|
|
|
18617
18757
|
}
|
|
18618
18758
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
18619
18759
|
label: t("CS_APPLICATION_DETAILS_PROPERTY_TYPE"),
|
|
18620
|
-
text:
|
|
18760
|
+
text: `${decodeURIComponent(fsmPropertyType)}`,
|
|
18621
18761
|
textStyle: {
|
|
18622
18762
|
whiteSpace: "pre"
|
|
18623
18763
|
}
|
|
18624
18764
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
18625
18765
|
label: t("CS_APPLICATION_DETAILS_PROPERTY_SUB_TYPE"),
|
|
18626
|
-
text:
|
|
18766
|
+
text: `${decodeURIComponent(fsmPropertySubType)}`,
|
|
18627
18767
|
textStyle: {
|
|
18628
18768
|
whiteSpace: "pre"
|
|
18629
18769
|
}
|
|
@@ -19058,7 +19198,7 @@ const EDCRAcknowledgement1 = props => {
|
|
|
19058
19198
|
paddingBottom: "10px"
|
|
19059
19199
|
}
|
|
19060
19200
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
19061
|
-
to:
|
|
19201
|
+
to: `/digit-ui/citizen`
|
|
19062
19202
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
19063
19203
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
19064
19204
|
}))), showToast ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
@@ -19138,7 +19278,7 @@ const EDCRAcknowledgement1 = props => {
|
|
|
19138
19278
|
padding: "0px 8px",
|
|
19139
19279
|
marginBottom: "10px"
|
|
19140
19280
|
}
|
|
19141
|
-
}, t("PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_ID_TL")
|
|
19281
|
+
}, `${t("PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_ID_TL")} - ${edcrData === null || edcrData === void 0 ? void 0 : edcrData.applicationNumber}`), /*#__PURE__*/React__default.createElement("div", {
|
|
19142
19282
|
className: "primary-label-btn d-grid",
|
|
19143
19283
|
style: {
|
|
19144
19284
|
marginLeft: "unset",
|
|
@@ -19161,7 +19301,7 @@ const EDCRAcknowledgement1 = props => {
|
|
|
19161
19301
|
}
|
|
19162
19302
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
19163
19303
|
to: {
|
|
19164
|
-
pathname:
|
|
19304
|
+
pathname: `/digit-ui/citizen/obps/${bpaLinks === null || bpaLinks === void 0 ? void 0 : (_bpaLinks$linkData = bpaLinks.linkData) === null || _bpaLinks$linkData === void 0 ? void 0 : (_bpaLinks$linkData$fl = _bpaLinks$linkData.flow) === null || _bpaLinks$linkData$fl === void 0 ? void 0 : _bpaLinks$linkData$fl.toLowerCase()}/${edcrData === null || edcrData === void 0 ? void 0 : (_edcrData$appliaction2 = edcrData.appliactionType) === null || _edcrData$appliaction2 === void 0 ? void 0 : _edcrData$appliaction2.toLowerCase()}/${edcrData === null || edcrData === void 0 ? void 0 : (_edcrData$application2 = edcrData.applicationSubType) === null || _edcrData$application2 === void 0 ? void 0 : _edcrData$application2.toLowerCase()}/docs-required`,
|
|
19165
19305
|
state: bpaLinks
|
|
19166
19306
|
},
|
|
19167
19307
|
replace: true
|
|
@@ -19185,7 +19325,7 @@ const EDCRAcknowledgement1 = props => {
|
|
|
19185
19325
|
paddingBottom: "10px"
|
|
19186
19326
|
}
|
|
19187
19327
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
19188
|
-
to:
|
|
19328
|
+
to: `/digit-ui/citizen`
|
|
19189
19329
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
19190
19330
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
19191
19331
|
}))))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
@@ -19224,7 +19364,7 @@ const EDCRAcknowledgement1 = props => {
|
|
|
19224
19364
|
padding: "0px 8px",
|
|
19225
19365
|
marginBottom: "10px"
|
|
19226
19366
|
}
|
|
19227
|
-
}, t("PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_ID_TL")
|
|
19367
|
+
}, `${t("PDF_STATIC_LABEL_CONSOLIDATED_BILL_CONSUMER_ID_TL")} - ${edcrData === null || edcrData === void 0 ? void 0 : edcrData.applicationNumber}`), /*#__PURE__*/React__default.createElement("div", {
|
|
19228
19368
|
className: "primary-label-btn d-grid",
|
|
19229
19369
|
style: {
|
|
19230
19370
|
marginLeft: "unset",
|
|
@@ -19247,7 +19387,7 @@ const EDCRAcknowledgement1 = props => {
|
|
|
19247
19387
|
paddingBottom: "10px"
|
|
19248
19388
|
}
|
|
19249
19389
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
19250
|
-
to:
|
|
19390
|
+
to: `/digit-ui/citizen`
|
|
19251
19391
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
19252
19392
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
19253
19393
|
})))));
|
|
@@ -19329,7 +19469,7 @@ const CreateEDCR1 = _ref => {
|
|
|
19329
19469
|
if (result !== null && result !== void 0 && (_result$data = result.data) !== null && _result$data !== void 0 && _result$data.edcrDetail) {
|
|
19330
19470
|
var _result$data2, _result$data3;
|
|
19331
19471
|
setParams(result === null || result === void 0 ? void 0 : (_result$data2 = result.data) === null || _result$data2 === void 0 ? void 0 : _result$data2.edcrDetail);
|
|
19332
|
-
history.replace(
|
|
19472
|
+
history.replace(`/digit-ui/citizen/core/edcr/scrutiny/acknowledgement`, {
|
|
19333
19473
|
data: result === null || result === void 0 ? void 0 : (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : _result$data3.edcrDetail
|
|
19334
19474
|
});
|
|
19335
19475
|
}
|
|
@@ -19340,7 +19480,7 @@ const CreateEDCR1 = _ref => {
|
|
|
19340
19480
|
type: "ERROR"
|
|
19341
19481
|
});
|
|
19342
19482
|
setIsSubmitBtnDisable(false);
|
|
19343
|
-
history.replace(
|
|
19483
|
+
history.replace(`/digit-ui/citizen/core/edcr/scrutiny/acknowledgement`);
|
|
19344
19484
|
setIsShowToast({
|
|
19345
19485
|
key: true,
|
|
19346
19486
|
label: e !== null && e !== void 0 && (_e$response3 = e.response) !== null && _e$response3 !== void 0 && (_e$response3$data = _e$response3.data) !== null && _e$response3$data !== void 0 && _e$response3$data.errorCode ? e === null || e === void 0 ? void 0 : (_e$response4 = e.response) === null || _e$response4 === void 0 ? void 0 : (_e$response4$data = _e$response4.data) === null || _e$response4$data === void 0 ? void 0 : _e$response4$data.errorCode : "BPA_INTERNAL_SERVER_ERROR"
|
|
@@ -19368,7 +19508,7 @@ const CreateEDCR1 = _ref => {
|
|
|
19368
19508
|
} = routeObj;
|
|
19369
19509
|
const Component = typeof component === "string" ? Digit.ComponentRegistryService.getComponent(component) : component;
|
|
19370
19510
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19371
|
-
path: match.path
|
|
19511
|
+
path: `${match.path}/${routeObj.route}`,
|
|
19372
19512
|
key: index
|
|
19373
19513
|
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
19374
19514
|
config: {
|
|
@@ -19386,16 +19526,15 @@ const CreateEDCR1 = _ref => {
|
|
|
19386
19526
|
setIsShowToast: setIsShowToast
|
|
19387
19527
|
}));
|
|
19388
19528
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19389
|
-
path: match.path
|
|
19529
|
+
path: `${match.path}/acknowledgement`
|
|
19390
19530
|
}, /*#__PURE__*/React__default.createElement(EDCRAcknowledgement1, {
|
|
19391
19531
|
data: params,
|
|
19392
19532
|
onSuccess: onSuccess
|
|
19393
19533
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Redirect, {
|
|
19394
|
-
to: match.path
|
|
19534
|
+
to: `${match.path}/${config.indexRoute}`
|
|
19395
19535
|
})));
|
|
19396
19536
|
};
|
|
19397
19537
|
|
|
19398
|
-
const _excluded$6 = ["UserRequest"];
|
|
19399
19538
|
const USER_TYPE = "CITIZEN";
|
|
19400
19539
|
const TYPE_REGISTER$1 = "register";
|
|
19401
19540
|
const CITIZEN_ROLE_CODE = "CITIZEN";
|
|
@@ -19471,11 +19610,12 @@ const NavigationApp$1 = _ref => {
|
|
|
19471
19610
|
return;
|
|
19472
19611
|
}
|
|
19473
19612
|
const [token, fullName, serviceName, dataString, returnUrl] = params;
|
|
19474
|
-
const dataFromURL =
|
|
19613
|
+
const dataFromURL = {
|
|
19614
|
+
...JSON.parse(dataString),
|
|
19475
19615
|
fullName: fullName,
|
|
19476
19616
|
serviceName: serviceName,
|
|
19477
19617
|
returnUrl: returnUrl
|
|
19478
|
-
}
|
|
19618
|
+
};
|
|
19479
19619
|
const isMobileNoValid = validateMobileNumber(dataFromURL === null || dataFromURL === void 0 ? void 0 : (_dataFromURL$MobileNo = dataFromURL.MobileNo) === null || _dataFromURL$MobileNo === void 0 ? void 0 : _dataFromURL$MobileNo.trim());
|
|
19480
19620
|
const isFullNameValid = validateFullName(dataFromURL === null || dataFromURL === void 0 ? void 0 : (_dataFromURL$fullName = dataFromURL.fullName) === null || _dataFromURL$fullName === void 0 ? void 0 : _dataFromURL$fullName.trim());
|
|
19481
19621
|
const city = getCity(dataFromURL === null || dataFromURL === void 0 ? void 0 : (_dataFromURL$ULBName = dataFromURL.ULBName) === null || _dataFromURL$ULBName === void 0 ? void 0 : _dataFromURL$ULBName.trim());
|
|
@@ -19559,7 +19699,7 @@ const NavigationApp$1 = _ref => {
|
|
|
19559
19699
|
const payload = {
|
|
19560
19700
|
otp: {
|
|
19561
19701
|
name: userName,
|
|
19562
|
-
permanentCity: stateCode
|
|
19702
|
+
permanentCity: `${stateCode}.${ULBName}`,
|
|
19563
19703
|
tenantId: stateCode,
|
|
19564
19704
|
mobileNumber: mobileNumber,
|
|
19565
19705
|
type: TYPE_REGISTER$1,
|
|
@@ -19591,8 +19731,8 @@ const NavigationApp$1 = _ref => {
|
|
|
19591
19731
|
name: userName,
|
|
19592
19732
|
username: mobileNumber,
|
|
19593
19733
|
otpReference: iPin,
|
|
19594
|
-
tenantId: stateCode
|
|
19595
|
-
permanentCity: stateCode
|
|
19734
|
+
tenantId: `${stateCode}.${ULBName}`,
|
|
19735
|
+
permanentCity: `${stateCode}.${ULBName}`,
|
|
19596
19736
|
clientId: thirdPartyCode
|
|
19597
19737
|
};
|
|
19598
19738
|
return Promise.resolve(_catch(function () {
|
|
@@ -19634,9 +19774,9 @@ const NavigationApp$1 = _ref => {
|
|
|
19634
19774
|
const processUser = userResponse => {
|
|
19635
19775
|
var _window, _window$globalConfigs;
|
|
19636
19776
|
const {
|
|
19637
|
-
|
|
19638
|
-
|
|
19639
|
-
|
|
19777
|
+
UserRequest: info,
|
|
19778
|
+
...tokens
|
|
19779
|
+
} = userResponse;
|
|
19640
19780
|
const isAuthorized = info.roles.some(userRole => userRole.code === CITIZEN_ROLE_CODE);
|
|
19641
19781
|
if (!isAuthorized) {
|
|
19642
19782
|
showToast(ES_ERROR_USER_NOT_PERMITTED, true);
|
|
@@ -19645,9 +19785,10 @@ const NavigationApp$1 = _ref => {
|
|
|
19645
19785
|
if ((_window = window) !== null && _window !== void 0 && (_window$globalConfigs = _window.globalConfigs) !== null && _window$globalConfigs !== void 0 && _window$globalConfigs.getConfig("ENABLE_SINGLEINSTANCE")) {
|
|
19646
19786
|
info.tenantId = Digit.ULBService.getStateId();
|
|
19647
19787
|
}
|
|
19648
|
-
setUser(
|
|
19649
|
-
info
|
|
19650
|
-
|
|
19788
|
+
setUser({
|
|
19789
|
+
info,
|
|
19790
|
+
...tokens
|
|
19791
|
+
});
|
|
19651
19792
|
};
|
|
19652
19793
|
React.useEffect(() => {
|
|
19653
19794
|
if (user) {
|
|
@@ -19675,10 +19816,10 @@ const NavigationApp$1 = _ref => {
|
|
|
19675
19816
|
}
|
|
19676
19817
|
}, [user]);
|
|
19677
19818
|
const handleServiceRedirection = (servicePath, serviceName) => {
|
|
19678
|
-
const domain = window.location.protocol
|
|
19679
|
-
const newURL = domain
|
|
19819
|
+
const domain = `${window.location.protocol}//${window.location.hostname}:${window.location.port}`;
|
|
19820
|
+
const newURL = `${domain}/citizen/${servicePath}?&servicename=${serviceName}`;
|
|
19680
19821
|
window.location.href = newURL;
|
|
19681
|
-
showToast(REDIRECTING_TO
|
|
19822
|
+
showToast(`${REDIRECTING_TO} ${servicePath}`, false);
|
|
19682
19823
|
};
|
|
19683
19824
|
const fetchServicePath = serviceName => {
|
|
19684
19825
|
var _citizenServiceMappin;
|
|
@@ -19768,10 +19909,10 @@ const Home$1 = _ref => {
|
|
|
19768
19909
|
code,
|
|
19769
19910
|
tenants
|
|
19770
19911
|
} = _ref2;
|
|
19771
|
-
const Module = Digit.ComponentRegistryService.getComponent(code
|
|
19912
|
+
const Module = Digit.ComponentRegistryService.getComponent(`${code}Module`);
|
|
19772
19913
|
return Module ? /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19773
19914
|
key: index,
|
|
19774
|
-
path: path
|
|
19915
|
+
path: `${path}/${code.toLowerCase()}`
|
|
19775
19916
|
}, /*#__PURE__*/React__default.createElement(Module, {
|
|
19776
19917
|
stateCode: stateCode,
|
|
19777
19918
|
moduleCode: code,
|
|
@@ -19784,14 +19925,14 @@ const Home$1 = _ref => {
|
|
|
19784
19925
|
code,
|
|
19785
19926
|
bannerImage
|
|
19786
19927
|
} = _ref3;
|
|
19787
|
-
let Links = Digit.ComponentRegistryService.getComponent(code
|
|
19928
|
+
let Links = Digit.ComponentRegistryService.getComponent(`${code}Links`) || (() => /*#__PURE__*/React__default.createElement(React__default.Fragment, null));
|
|
19788
19929
|
let mdmsDataObj = isLinkDataFetched ? processLinkData(linkData, code, t) : undefined;
|
|
19789
19930
|
(mdmsDataObj === null || mdmsDataObj === void 0 ? void 0 : mdmsDataObj.links) && (mdmsDataObj === null || mdmsDataObj === void 0 ? void 0 : mdmsDataObj.links.sort((a, b) => {
|
|
19790
19931
|
return a.orderNumber - b.orderNumber;
|
|
19791
19932
|
}));
|
|
19792
19933
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19793
19934
|
key: index,
|
|
19794
|
-
path: path
|
|
19935
|
+
path: `${path}/${code.toLowerCase()}-home`
|
|
19795
19936
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
19796
19937
|
className: "moduleLinkHomePage"
|
|
19797
19938
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
@@ -19818,19 +19959,19 @@ const Home$1 = _ref => {
|
|
|
19818
19959
|
padding: "10px"
|
|
19819
19960
|
},
|
|
19820
19961
|
info: t("CS_FILE_APPLICATION_INFO_LABEL"),
|
|
19821
|
-
text: t(
|
|
19962
|
+
text: t(`BPA_CITIZEN_HOME_STAKEHOLDER_INCLUDES_INFO_LABEL`)
|
|
19822
19963
|
}) : null,
|
|
19823
19964
|
isInfo: code === "OBPS" ? true : false
|
|
19824
19965
|
})), /*#__PURE__*/React__default.createElement(StaticDynamicCard, {
|
|
19825
19966
|
moduleCode: code === null || code === void 0 ? void 0 : code.toUpperCase()
|
|
19826
19967
|
}))), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19827
19968
|
key: "faq" + index,
|
|
19828
|
-
path: path
|
|
19969
|
+
path: `${path}/${code.toLowerCase()}-faq`
|
|
19829
19970
|
}, /*#__PURE__*/React__default.createElement(FAQsSection, {
|
|
19830
19971
|
module: code === null || code === void 0 ? void 0 : code.toUpperCase()
|
|
19831
19972
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19832
19973
|
key: "hiw" + index,
|
|
19833
|
-
path: path
|
|
19974
|
+
path: `${path}/${code.toLowerCase()}-how-it-works`
|
|
19834
19975
|
}, /*#__PURE__*/React__default.createElement(HowItWorks, {
|
|
19835
19976
|
module: code === null || code === void 0 ? void 0 : code.toUpperCase()
|
|
19836
19977
|
})));
|
|
@@ -19850,7 +19991,7 @@ const Home$1 = _ref => {
|
|
|
19850
19991
|
linkData: linkData,
|
|
19851
19992
|
islinkDataLoading: islinkDataLoading
|
|
19852
19993
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
19853
|
-
className:
|
|
19994
|
+
className: `main center-container citizen-home-container mb-25`
|
|
19854
19995
|
}, hideSidebar ? null : /*#__PURE__*/React__default.createElement("div", {
|
|
19855
19996
|
className: "SideBarStatic"
|
|
19856
19997
|
}, /*#__PURE__*/React__default.createElement(StaticCitizenSideBar, {
|
|
@@ -19860,26 +20001,26 @@ const Home$1 = _ref => {
|
|
|
19860
20001
|
exact: true,
|
|
19861
20002
|
path: path
|
|
19862
20003
|
}, /*#__PURE__*/React__default.createElement(Home, null)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
19863
|
-
path: path
|
|
20004
|
+
path: `${path}/feedback`,
|
|
19864
20005
|
component: CitizenFeedback
|
|
19865
20006
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
19866
|
-
path: path
|
|
20007
|
+
path: `${path}/feedback-acknowledgement`,
|
|
19867
20008
|
component: AcknowledgementCF
|
|
19868
20009
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19869
20010
|
exact: true,
|
|
19870
|
-
path: path
|
|
20011
|
+
path: `${path}/select-language`
|
|
19871
20012
|
}, /*#__PURE__*/React__default.createElement(LanguageSelection$1, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19872
20013
|
exact: true,
|
|
19873
|
-
path: path
|
|
20014
|
+
path: `${path}/select-location`
|
|
19874
20015
|
}, /*#__PURE__*/React__default.createElement(LocationSelection, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19875
|
-
path: path
|
|
20016
|
+
path: `${path}/error`
|
|
19876
20017
|
}, /*#__PURE__*/React__default.createElement(ErrorComponent, {
|
|
19877
20018
|
initData: initData,
|
|
19878
20019
|
goToHome: () => {
|
|
19879
20020
|
history.push("/digit-ui/citizen");
|
|
19880
20021
|
}
|
|
19881
20022
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19882
|
-
path: path
|
|
20023
|
+
path: `${path}/all-services`
|
|
19883
20024
|
}, /*#__PURE__*/React__default.createElement(AppHome, {
|
|
19884
20025
|
userType: "citizen",
|
|
19885
20026
|
modules: modules,
|
|
@@ -19887,38 +20028,38 @@ const Home$1 = _ref => {
|
|
|
19887
20028
|
fetchedCitizen: isLinkDataFetched,
|
|
19888
20029
|
isLoading: islinkDataLoading
|
|
19889
20030
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19890
|
-
path: path
|
|
20031
|
+
path: `${path}/login`
|
|
19891
20032
|
}, /*#__PURE__*/React__default.createElement(Login, {
|
|
19892
20033
|
stateCode: stateCode
|
|
19893
20034
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19894
|
-
path: path
|
|
20035
|
+
path: `${path}/register`
|
|
19895
20036
|
}, /*#__PURE__*/React__default.createElement(Login, {
|
|
19896
20037
|
stateCode: stateCode,
|
|
19897
20038
|
isUserRegistered: false
|
|
19898
20039
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
19899
|
-
path: path
|
|
20040
|
+
path: `${path}/user/profile`
|
|
19900
20041
|
}, /*#__PURE__*/React__default.createElement(UserProfile, {
|
|
19901
20042
|
stateCode: stateCode,
|
|
19902
20043
|
userType: "citizen",
|
|
19903
20044
|
cityDetails: cityDetails
|
|
19904
20045
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19905
|
-
path: path
|
|
20046
|
+
path: `${path}/Audit`
|
|
19906
20047
|
}, /*#__PURE__*/React__default.createElement(Search, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19907
|
-
path: path
|
|
20048
|
+
path: `${path}/payment/verification`
|
|
19908
20049
|
}, /*#__PURE__*/React__default.createElement(QRCode, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19909
|
-
path: path
|
|
20050
|
+
path: `${path}/challan/details`
|
|
19910
20051
|
}, /*#__PURE__*/React__default.createElement(ChallanQRCode, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19911
|
-
path: path
|
|
20052
|
+
path: `${path}/acknowledgement/details`
|
|
19912
20053
|
}, /*#__PURE__*/React__default.createElement(AcknowledgementQRCode, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19913
|
-
path:
|
|
20054
|
+
path: `/digit-ui/citizen/core/edcr/scrutiny`
|
|
19914
20055
|
}, /*#__PURE__*/React__default.createElement(CreateEDCR1, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19915
|
-
path:
|
|
20056
|
+
path: `/digit-ui/citizen/core/edcr/scrutiny/acknowledgement`
|
|
19916
20057
|
}, /*#__PURE__*/React__default.createElement(EDCRAcknowledgement1, null)), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19917
|
-
path: path
|
|
20058
|
+
path: `${path}/sso/login`
|
|
19918
20059
|
}, /*#__PURE__*/React__default.createElement(NavigationApp$1, {
|
|
19919
20060
|
stateCode: stateCode
|
|
19920
20061
|
})), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
|
|
19921
|
-
path: path
|
|
20062
|
+
path: `${path}/faqss`
|
|
19922
20063
|
}, /*#__PURE__*/React__default.createElement(FAQ, null)), /*#__PURE__*/React__default.createElement(ErrorBoundary, {
|
|
19923
20064
|
initData: initData
|
|
19924
20065
|
}, appRoutes, ModuleLevelLinkHomePages))), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -20088,7 +20229,7 @@ const MiddleSection = () => {
|
|
|
20088
20229
|
className: "photo-gallery"
|
|
20089
20230
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
20090
20231
|
src: images[currentIndex],
|
|
20091
|
-
alt:
|
|
20232
|
+
alt: `Slide ${currentIndex}`,
|
|
20092
20233
|
className: "gallery-image"
|
|
20093
20234
|
}), /*#__PURE__*/React__default.createElement("button", {
|
|
20094
20235
|
className: "gallery-btn left",
|
|
@@ -20241,7 +20382,7 @@ const DigitApp = _ref => {
|
|
|
20241
20382
|
option.func();
|
|
20242
20383
|
};
|
|
20243
20384
|
const mobileView = innerWidth <= 640;
|
|
20244
|
-
let sourceUrl = window.location.origin
|
|
20385
|
+
let sourceUrl = `${window.location.origin}/citizen`;
|
|
20245
20386
|
const commonProps = {
|
|
20246
20387
|
stateInfo,
|
|
20247
20388
|
userDetails,
|
|
@@ -20275,17 +20416,19 @@ const commonReducer = defaultData => function (state, action) {
|
|
|
20275
20416
|
}
|
|
20276
20417
|
switch (action.type) {
|
|
20277
20418
|
case "LANGUAGE_SELECT":
|
|
20278
|
-
return
|
|
20419
|
+
return {
|
|
20420
|
+
...state,
|
|
20279
20421
|
selectedLanguage: action.payload
|
|
20280
|
-
}
|
|
20422
|
+
};
|
|
20281
20423
|
default:
|
|
20282
20424
|
return state;
|
|
20283
20425
|
}
|
|
20284
20426
|
};
|
|
20285
20427
|
|
|
20286
|
-
const getRootReducer = (defaultStore, moduleReducers) => redux.combineReducers(
|
|
20287
|
-
common: commonReducer(defaultStore)
|
|
20288
|
-
|
|
20428
|
+
const getRootReducer = (defaultStore, moduleReducers) => redux.combineReducers({
|
|
20429
|
+
common: commonReducer(defaultStore),
|
|
20430
|
+
...moduleReducers
|
|
20431
|
+
});
|
|
20289
20432
|
const middleware = [thunk];
|
|
20290
20433
|
const composeEnhancers = typeof window === "object" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}) : redux.compose;
|
|
20291
20434
|
const enhancer = composeEnhancers(redux.applyMiddleware(...middleware));
|
|
@@ -20363,10 +20506,13 @@ const DigitUI = _ref2 => {
|
|
|
20363
20506
|
},
|
|
20364
20507
|
updatePrivacyDescoped: _data => {
|
|
20365
20508
|
const privacyObj = Digit.Utils.getAllPrivacyObject();
|
|
20366
|
-
const newObj =
|
|
20509
|
+
const newObj = {
|
|
20510
|
+
...privacyObj,
|
|
20367
20511
|
[window.location.pathname]: _data
|
|
20512
|
+
};
|
|
20513
|
+
Digit.Utils.setPrivacyObject({
|
|
20514
|
+
...newObj
|
|
20368
20515
|
});
|
|
20369
|
-
Digit.Utils.setPrivacyObject(_extends({}, newObj));
|
|
20370
20516
|
setPrivacy((privacyObj === null || privacyObj === void 0 ? void 0 : privacyObj[window.location.pathname]) || {});
|
|
20371
20517
|
},
|
|
20372
20518
|
updatePrivacy: (uuid, fieldName) => {
|