@mseva/digit-ui-module-core 1.0.63 → 1.0.65
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 +1 -22940
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +79 -639
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -221,7 +221,7 @@ const quickServiceModules = {
|
|
|
221
221
|
roles: []
|
|
222
222
|
}, {
|
|
223
223
|
moduleCode: "CHB",
|
|
224
|
-
moduleName: "
|
|
224
|
+
moduleName: "Venue Booking",
|
|
225
225
|
bgColor: "#3e4b5b",
|
|
226
226
|
labelKey: "",
|
|
227
227
|
icon: "",
|
|
@@ -11339,7 +11339,13 @@ TextInput.defaultProps = {
|
|
|
11339
11339
|
};
|
|
11340
11340
|
function getDDMMYYYY(date) {
|
|
11341
11341
|
if (!date) return "";
|
|
11342
|
-
|
|
11342
|
+
const safeDate = date.includes("T") ? date : date + "T00:00:00";
|
|
11343
|
+
const d = new Date(safeDate);
|
|
11344
|
+
if (isNaN(d)) return "";
|
|
11345
|
+
const day = String(d.getDate()).padStart(2, "0");
|
|
11346
|
+
const month = String(d.getMonth() + 1).padStart(2, "0");
|
|
11347
|
+
const year = d.getFullYear();
|
|
11348
|
+
return `${day}/${month}/${year}`;
|
|
11343
11349
|
}
|
|
11344
11350
|
|
|
11345
11351
|
const ActionBar = props => {
|
|
@@ -12586,6 +12592,7 @@ const LanguageSelection = () => {
|
|
|
12586
12592
|
onSubmit: handleSubmit
|
|
12587
12593
|
})), /*#__PURE__*/React.createElement("div", {
|
|
12588
12594
|
style: {
|
|
12595
|
+
display: "none",
|
|
12589
12596
|
width: '100%',
|
|
12590
12597
|
position: 'fixed',
|
|
12591
12598
|
bottom: 0,
|
|
@@ -13209,10 +13216,7 @@ const SideBarMenu = (t, closeSidebar, redirectToLoginPage, redirectToScrutinyPag
|
|
|
13209
13216
|
}, {
|
|
13210
13217
|
id: "help-line",
|
|
13211
13218
|
text: /*#__PURE__*/React.createElement(React.Fragment, null, t("CS_COMMON_HELPLINE"), /*#__PURE__*/React.createElement("div", {
|
|
13212
|
-
className: "telephone"
|
|
13213
|
-
style: {
|
|
13214
|
-
marginTop: "-10%"
|
|
13215
|
-
}
|
|
13219
|
+
className: "telephone"
|
|
13216
13220
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13217
13221
|
className: "link"
|
|
13218
13222
|
}, /*#__PURE__*/React.createElement("a", {
|
|
@@ -13582,7 +13586,9 @@ const StaticCitizenSideBar = ({
|
|
|
13582
13586
|
cursor: "pointer",
|
|
13583
13587
|
textDecoration: "none",
|
|
13584
13588
|
fontSize: "0.9375rem",
|
|
13585
|
-
fontWeight: isActive ? "500" : "400"
|
|
13589
|
+
fontWeight: isActive ? "500" : "400",
|
|
13590
|
+
marginLeft: "10px",
|
|
13591
|
+
marginRight: "10px"
|
|
13586
13592
|
}
|
|
13587
13593
|
}), /*#__PURE__*/React.createElement("span", {
|
|
13588
13594
|
style: {
|
|
@@ -13635,10 +13641,7 @@ const StaticCitizenSideBar = ({
|
|
|
13635
13641
|
}
|
|
13636
13642
|
}, {
|
|
13637
13643
|
text: /*#__PURE__*/React.createElement(React.Fragment, null, t("CS_COMMON_HELPLINE"), /*#__PURE__*/React.createElement("div", {
|
|
13638
|
-
className: "telephone"
|
|
13639
|
-
style: {
|
|
13640
|
-
marginTop: "-10%"
|
|
13641
|
-
}
|
|
13644
|
+
className: "telephone"
|
|
13642
13645
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13643
13646
|
className: "link"
|
|
13644
13647
|
}, /*#__PURE__*/React.createElement("a", {
|
|
@@ -13823,10 +13826,7 @@ const CitizenSideBar = ({
|
|
|
13823
13826
|
}
|
|
13824
13827
|
}, {
|
|
13825
13828
|
text: /*#__PURE__*/React.createElement(React.Fragment, null, t("CS_COMMON_HELPLINE"), /*#__PURE__*/React.createElement("div", {
|
|
13826
|
-
className: "telephone"
|
|
13827
|
-
style: {
|
|
13828
|
-
marginTop: "-10%"
|
|
13829
|
-
}
|
|
13829
|
+
className: "telephone"
|
|
13830
13830
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13831
13831
|
className: "link"
|
|
13832
13832
|
}, /*#__PURE__*/React.createElement("a", {
|
|
@@ -13947,7 +13947,8 @@ const CitizenSideBar = ({
|
|
|
13947
13947
|
};
|
|
13948
13948
|
|
|
13949
13949
|
const SubMenu = ({
|
|
13950
|
-
item
|
|
13950
|
+
item,
|
|
13951
|
+
onLinkClick
|
|
13951
13952
|
}) => {
|
|
13952
13953
|
var _item$icon, _item$icon$leftIcon, _item$icon$leftIcon$s, _item$icon$leftIcon$s2, _item$leftIcon, _item$leftIcon$split, _item$moduleName;
|
|
13953
13954
|
const [subnav, setSubnav] = useState(false);
|
|
@@ -13992,7 +13993,8 @@ const SubMenu = ({
|
|
|
13992
13993
|
"data-tip": "React-tooltip",
|
|
13993
13994
|
"data-for": `jk-side-${getModuleName}`,
|
|
13994
13995
|
className: "custom-link",
|
|
13995
|
-
href: getOrigin + "/employee/" + item.navigationURL
|
|
13996
|
+
href: getOrigin + "/employee/" + item.navigationURL,
|
|
13997
|
+
onClick: onLinkClick
|
|
13996
13998
|
}, /*#__PURE__*/React.createElement("span", null, " ", trimModuleName, " "), (trimModuleName === null || trimModuleName === void 0 ? void 0 : trimModuleName.includes("...")) && /*#__PURE__*/React.createElement(ReactTooltip, {
|
|
13997
13999
|
textColor: "white",
|
|
13998
14000
|
backgroundColor: "grey",
|
|
@@ -14004,7 +14006,8 @@ const SubMenu = ({
|
|
|
14004
14006
|
/*#__PURE__*/
|
|
14005
14007
|
React.createElement(Link, {
|
|
14006
14008
|
className: "custom-link",
|
|
14007
|
-
to: item.navigationURL
|
|
14009
|
+
to: item.navigationURL,
|
|
14010
|
+
onClick: onLinkClick
|
|
14008
14011
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14009
14012
|
"data-tip": "React-tooltip",
|
|
14010
14013
|
"data-for": `jk-side-${getModuleName}`
|
|
@@ -14044,7 +14047,8 @@ const SubMenu = ({
|
|
|
14044
14047
|
return /*#__PURE__*/React.createElement("a", {
|
|
14045
14048
|
key: index,
|
|
14046
14049
|
className: `dropdown-link ${pathname === item.link ? "active" : ""}`,
|
|
14047
|
-
href: getOrigin + "/employee/" + item.navigationURL
|
|
14050
|
+
href: getOrigin + "/employee/" + item.navigationURL,
|
|
14051
|
+
onClick: onLinkClick
|
|
14048
14052
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14049
14053
|
className: "actions",
|
|
14050
14054
|
"data-tip": "React-tooltip",
|
|
@@ -14061,7 +14065,8 @@ const SubMenu = ({
|
|
|
14061
14065
|
return /*#__PURE__*/React.createElement(Link, {
|
|
14062
14066
|
to: (item === null || item === void 0 ? void 0 : item.link) || item.navigationURL,
|
|
14063
14067
|
key: index,
|
|
14064
|
-
className: `dropdown-link ${pathname === (item === null || item === void 0 ? void 0 : item.link) || pathname === (item === null || item === void 0 ? void 0 : item.navigationURL) ? "active" : ""}
|
|
14068
|
+
className: `dropdown-link ${pathname === (item === null || item === void 0 ? void 0 : item.link) || pathname === (item === null || item === void 0 ? void 0 : item.navigationURL) ? "active" : ""}`,
|
|
14069
|
+
onClick: onLinkClick
|
|
14065
14070
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14066
14071
|
className: "actions",
|
|
14067
14072
|
"data-tip": "React-tooltip",
|
|
@@ -14149,7 +14154,7 @@ const EmployeeSideBar = ({
|
|
|
14149
14154
|
}
|
|
14150
14155
|
});
|
|
14151
14156
|
let res = [];
|
|
14152
|
-
const splitKeyValue =
|
|
14157
|
+
const splitKeyValue = onLinkClick => {
|
|
14153
14158
|
var _res3;
|
|
14154
14159
|
const keys = Object.keys(configEmployeeSideBar);
|
|
14155
14160
|
keys.sort((a, b) => a.orderNumber - b.orderNumber);
|
|
@@ -14194,7 +14199,8 @@ const EmployeeSideBar = ({
|
|
|
14194
14199
|
return (_res3 = res) === null || _res3 === void 0 ? void 0 : _res3.map((item, index) => {
|
|
14195
14200
|
return /*#__PURE__*/React.createElement(SubMenu, {
|
|
14196
14201
|
item: item,
|
|
14197
|
-
key: index + 1
|
|
14202
|
+
key: index + 1,
|
|
14203
|
+
onLinkClick: onLinkClick
|
|
14198
14204
|
});
|
|
14199
14205
|
});
|
|
14200
14206
|
};
|
|
@@ -14356,7 +14362,7 @@ const EmployeeSideBar = ({
|
|
|
14356
14362
|
style: {
|
|
14357
14363
|
padding: "8px 0"
|
|
14358
14364
|
}
|
|
14359
|
-
}, renderSearch(), splitKeyValue()), handleLogout && /*#__PURE__*/React.createElement("div", {
|
|
14365
|
+
}, renderSearch(), splitKeyValue(closeSidebar)), handleLogout && /*#__PURE__*/React.createElement("div", {
|
|
14360
14366
|
style: {
|
|
14361
14367
|
borderTop: "1px solid #e5e7eb",
|
|
14362
14368
|
padding: "16px"
|
|
@@ -14370,7 +14376,8 @@ const EmployeeSideBar = ({
|
|
|
14370
14376
|
border: "none",
|
|
14371
14377
|
borderRadius: "6px",
|
|
14372
14378
|
cursor: "pointer",
|
|
14373
|
-
fontWeight: 500
|
|
14379
|
+
fontWeight: 500,
|
|
14380
|
+
marginTop: "-1rem"
|
|
14374
14381
|
}
|
|
14375
14382
|
}, t("CORE_COMMON_LOGOUT")))));
|
|
14376
14383
|
}
|
|
@@ -15397,7 +15404,6 @@ const UserProfile = ({
|
|
|
15397
15404
|
className: "selector-button-primary",
|
|
15398
15405
|
style: {
|
|
15399
15406
|
width: "100%",
|
|
15400
|
-
maxWidth: "200px",
|
|
15401
15407
|
height: "46px",
|
|
15402
15408
|
marginTop: "24px"
|
|
15403
15409
|
}
|
|
@@ -15986,21 +15992,21 @@ const Footer = () => {
|
|
|
15986
15992
|
}];
|
|
15987
15993
|
const getSocialIcon = type => {
|
|
15988
15994
|
switch (type) {
|
|
15989
|
-
case
|
|
15995
|
+
case "facebook":
|
|
15990
15996
|
return /*#__PURE__*/React.createElement("svg", {
|
|
15991
15997
|
viewBox: "0 0 24 24",
|
|
15992
15998
|
fill: "currentColor"
|
|
15993
15999
|
}, /*#__PURE__*/React.createElement("path", {
|
|
15994
16000
|
d: "M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"
|
|
15995
16001
|
}));
|
|
15996
|
-
case
|
|
16002
|
+
case "twitter":
|
|
15997
16003
|
return /*#__PURE__*/React.createElement("svg", {
|
|
15998
16004
|
viewBox: "0 0 24 24",
|
|
15999
16005
|
fill: "currentColor"
|
|
16000
16006
|
}, /*#__PURE__*/React.createElement("path", {
|
|
16001
16007
|
d: "M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"
|
|
16002
16008
|
}));
|
|
16003
|
-
case
|
|
16009
|
+
case "linkedin":
|
|
16004
16010
|
return /*#__PURE__*/React.createElement("svg", {
|
|
16005
16011
|
viewBox: "0 0 24 24",
|
|
16006
16012
|
fill: "currentColor"
|
|
@@ -16011,7 +16017,7 @@ const Footer = () => {
|
|
|
16011
16017
|
cy: "4",
|
|
16012
16018
|
r: "2"
|
|
16013
16019
|
}));
|
|
16014
|
-
case
|
|
16020
|
+
case "youtube":
|
|
16015
16021
|
return /*#__PURE__*/React.createElement("svg", {
|
|
16016
16022
|
viewBox: "0 0 24 24",
|
|
16017
16023
|
fill: "currentColor"
|
|
@@ -16107,20 +16113,10 @@ const Footer = () => {
|
|
|
16107
16113
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16108
16114
|
className: "landing-footer-container"
|
|
16109
16115
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16110
|
-
className: "
|
|
16111
|
-
}, /*#__PURE__*/React.createElement("
|
|
16112
|
-
className: "
|
|
16113
|
-
|
|
16114
|
-
}, "Powered by DIGIT"), /*#__PURE__*/React.createElement("span", {
|
|
16115
|
-
className: "landing-footer-divider"
|
|
16116
|
-
}, "|"), /*#__PURE__*/React.createElement("a", {
|
|
16117
|
-
href: "#",
|
|
16118
|
-
className: "landing-footer-license"
|
|
16119
|
-
}, "UPYOG License"), /*#__PURE__*/React.createElement("span", {
|
|
16120
|
-
className: "landing-footer-divider"
|
|
16121
|
-
}, "|"), /*#__PURE__*/React.createElement("span", {
|
|
16122
|
-
className: "landing-footer-copyright"
|
|
16123
|
-
}, "Copyright \xA9 ", new Date().getFullYear(), " - All Rights Reserved")))));
|
|
16116
|
+
className: "new-df-bottom"
|
|
16117
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
16118
|
+
className: "new-df-copyright"
|
|
16119
|
+
}, "Powered by DIGIT | UPYOG License | Copyright \xA9 2026")))));
|
|
16124
16120
|
};
|
|
16125
16121
|
|
|
16126
16122
|
const EmployeeServices = () => {
|
|
@@ -16387,7 +16383,7 @@ const DashboardFooter = () => {
|
|
|
16387
16383
|
className: "new-df-bottom"
|
|
16388
16384
|
}, /*#__PURE__*/React.createElement("p", {
|
|
16389
16385
|
className: "new-df-copyright"
|
|
16390
|
-
}, "
|
|
16386
|
+
}, "Powered by DIGIT | UPYOG License | Copyright \xA9 2026"))));
|
|
16391
16387
|
};
|
|
16392
16388
|
|
|
16393
16389
|
const cardColors = [{
|
|
@@ -16493,13 +16489,7 @@ const CardBasedOptions = ({
|
|
|
16493
16489
|
className: "new-card-header-section"
|
|
16494
16490
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
16495
16491
|
className: "new-card-header-title"
|
|
16496
|
-
}, header), /*#__PURE__*/React.createElement("
|
|
16497
|
-
type: "button",
|
|
16498
|
-
className: "new-card-view-button",
|
|
16499
|
-
onClick: sideOption.onClick,
|
|
16500
|
-
onMouseEnter: () => setIsHovered(true),
|
|
16501
|
-
onMouseLeave: () => setIsHovered(false)
|
|
16502
|
-
}, sideOption.name, /*#__PURE__*/React.createElement("span", null, "\u2192"))), /*#__PURE__*/React.createElement("div", {
|
|
16492
|
+
}, header)), /*#__PURE__*/React.createElement("div", {
|
|
16503
16493
|
className: "new-card-cards-grid"
|
|
16504
16494
|
}, options.map((props, index) => /*#__PURE__*/React.createElement(Option, Object.assign({
|
|
16505
16495
|
key: index
|
|
@@ -16650,7 +16640,25 @@ const Home = () => {
|
|
|
16650
16640
|
setShowSurveyModal(true);
|
|
16651
16641
|
sessionStorage.setItem("survey_modal_shown", "true");
|
|
16652
16642
|
}
|
|
16643
|
+
sessionStorage.removeItem("type");
|
|
16644
|
+
sessionStorage.removeItem("pincode");
|
|
16645
|
+
sessionStorage.removeItem("tenantId");
|
|
16646
|
+
sessionStorage.removeItem("localityCode");
|
|
16647
|
+
sessionStorage.removeItem("landmark");
|
|
16648
|
+
sessionStorage.removeItem("propertyid");
|
|
16653
16649
|
}, [UserType]);
|
|
16650
|
+
const toDigitUrl = url => {
|
|
16651
|
+
if (!url) return url;
|
|
16652
|
+
if (url.startsWith("/digit-ui")) {
|
|
16653
|
+
history.push(url);
|
|
16654
|
+
return;
|
|
16655
|
+
}
|
|
16656
|
+
if (url.startsWith("/citizen")) {
|
|
16657
|
+
window.location.assign(url);
|
|
16658
|
+
return;
|
|
16659
|
+
}
|
|
16660
|
+
window.location.assign(url);
|
|
16661
|
+
};
|
|
16654
16662
|
const allCitizenServicesProps = {
|
|
16655
16663
|
header: t(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : citizenServicesObj.headerLabel),
|
|
16656
16664
|
sideOption: {
|
|
@@ -16670,7 +16678,7 @@ const Home = () => {
|
|
|
16670
16678
|
}] : citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p1 = citizenServicesObj.props) === null || _citizenServicesObj$p1 === void 0 ? void 0 : (_citizenServicesObj$p10 = _citizenServicesObj$p1.filter(item => (item === null || item === void 0 ? void 0 : item.enabled) && (item === null || item === void 0 ? void 0 : item.code) !== "CITIZEN_SERVICE_SWACH")) === null || _citizenServicesObj$p10 === void 0 ? void 0 : _citizenServicesObj$p10.map(item => ({
|
|
16671
16679
|
name: t(item.label),
|
|
16672
16680
|
Icon: getIconForService(item.code),
|
|
16673
|
-
onClick: () =>
|
|
16681
|
+
onClick: () => toDigitUrl(item.navigationUrl)
|
|
16674
16682
|
})),
|
|
16675
16683
|
styles: {
|
|
16676
16684
|
display: "flex",
|
|
@@ -16724,12 +16732,6 @@ const Home = () => {
|
|
|
16724
16732
|
width: "100%"
|
|
16725
16733
|
}
|
|
16726
16734
|
};
|
|
16727
|
-
sessionStorage.removeItem("type");
|
|
16728
|
-
sessionStorage.removeItem("pincode");
|
|
16729
|
-
sessionStorage.removeItem("tenantId");
|
|
16730
|
-
sessionStorage.removeItem("localityCode");
|
|
16731
|
-
sessionStorage.removeItem("landmark");
|
|
16732
|
-
sessionStorage.removeItem("propertyid");
|
|
16733
16735
|
return isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SurveyModal, {
|
|
16734
16736
|
isOpen: showSurveyModal,
|
|
16735
16737
|
onClose: () => setShowSurveyModal(false)
|
|
@@ -16833,6 +16835,7 @@ const Home = () => {
|
|
|
16833
16835
|
}, showAllCards ? "Show Less" : "Show More"))), /*#__PURE__*/React.createElement("div", {
|
|
16834
16836
|
className: "UpdatesSection",
|
|
16835
16837
|
style: {
|
|
16838
|
+
display: "none",
|
|
16836
16839
|
marginTop: "40px"
|
|
16837
16840
|
}
|
|
16838
16841
|
}, /*#__PURE__*/React.createElement(CardBasedOptions, allInfoAndUpdatesProps)))));
|
|
@@ -17996,372 +17999,6 @@ const HowItWorks = ({
|
|
|
17996
17999
|
})))));
|
|
17997
18000
|
};
|
|
17998
18001
|
|
|
17999
|
-
const StaticDynamicCard = ({
|
|
18000
|
-
moduleCode
|
|
18001
|
-
}) => {
|
|
18002
|
-
var _mdmsData$MdmsRes$com, _mdmsData$MdmsRes$com2, _staticContent, _staticContent2, _staticContent3, _mdmsConfigResult$hel, _mdmsConfigResult$hel2, _mdmsConfigResult$hel3, _mdmsConfigResult$hel4, _mdmsConfigResult$hel5, _mdmsConfigResult$hel6;
|
|
18003
|
-
const {
|
|
18004
|
-
t
|
|
18005
|
-
} = useTranslation();
|
|
18006
|
-
const tenantId = Digit.ULBService.getCitizenCurrentTenant();
|
|
18007
|
-
const {
|
|
18008
|
-
isLoading: isMdmsLoading,
|
|
18009
|
-
data: mdmsData
|
|
18010
|
-
} = Digit.Hooks.useStaticData(Digit.ULBService.getStateId());
|
|
18011
|
-
const {
|
|
18012
|
-
isLoading: isSearchLoading,
|
|
18013
|
-
error,
|
|
18014
|
-
data: dynamicData,
|
|
18015
|
-
isSuccess
|
|
18016
|
-
} = Digit.Hooks.useDynamicData({
|
|
18017
|
-
moduleCode,
|
|
18018
|
-
tenantId: tenantId,
|
|
18019
|
-
filters: {},
|
|
18020
|
-
t
|
|
18021
|
-
});
|
|
18022
|
-
if (window.location.href.includes("tl") && window.Digit.SessionStorage.get("TL_CREATE_TRADE")) window.Digit.SessionStorage.set("TL_CREATE_TRADE", {});
|
|
18023
|
-
const sectionTitleStyle = {
|
|
18024
|
-
fontSize: "18px",
|
|
18025
|
-
fontWeight: "600",
|
|
18026
|
-
marginBottom: "20px",
|
|
18027
|
-
marginTop: "32px",
|
|
18028
|
-
color: "#1F1F1F"
|
|
18029
|
-
};
|
|
18030
|
-
const cardContainerStyle = {
|
|
18031
|
-
display: "grid",
|
|
18032
|
-
gridTemplateColumns: "repeat(auto-fit, minmax(280px, 1fr))",
|
|
18033
|
-
gap: "20px",
|
|
18034
|
-
marginBottom: "24px"
|
|
18035
|
-
};
|
|
18036
|
-
const statCardStyle = {
|
|
18037
|
-
backgroundColor: "#FFFFFF",
|
|
18038
|
-
padding: "24px",
|
|
18039
|
-
borderRadius: "12px",
|
|
18040
|
-
border: "1px solid #E5E7EB",
|
|
18041
|
-
boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)",
|
|
18042
|
-
display: "flex",
|
|
18043
|
-
flexDirection: "column",
|
|
18044
|
-
gap: "12px"
|
|
18045
|
-
};
|
|
18046
|
-
const statCardIconStyle = bgColor => ({
|
|
18047
|
-
width: "48px",
|
|
18048
|
-
height: "48px",
|
|
18049
|
-
borderRadius: "12px",
|
|
18050
|
-
backgroundColor: bgColor,
|
|
18051
|
-
display: "flex",
|
|
18052
|
-
alignItems: "center",
|
|
18053
|
-
justifyContent: "center",
|
|
18054
|
-
marginBottom: "12px",
|
|
18055
|
-
flexShrink: 0
|
|
18056
|
-
});
|
|
18057
|
-
const statCardTextStyle = {
|
|
18058
|
-
fontSize: "14px !important",
|
|
18059
|
-
fontWeight: "400",
|
|
18060
|
-
color: "#6B7280",
|
|
18061
|
-
marginBottom: "8px",
|
|
18062
|
-
lineHeight: "1.5"
|
|
18063
|
-
};
|
|
18064
|
-
const statCardValueStyle = {
|
|
18065
|
-
fontSize: "20px",
|
|
18066
|
-
fontWeight: "600",
|
|
18067
|
-
color: "#1F1F1F"
|
|
18068
|
-
};
|
|
18069
|
-
const infoCardStyle = bgColor => ({
|
|
18070
|
-
backgroundColor: bgColor,
|
|
18071
|
-
padding: "24px",
|
|
18072
|
-
borderRadius: "12px",
|
|
18073
|
-
display: "flex",
|
|
18074
|
-
gap: "16px",
|
|
18075
|
-
alignItems: "flex-start",
|
|
18076
|
-
marginBottom: "16px"
|
|
18077
|
-
});
|
|
18078
|
-
const infoIconStyle = iconBg => ({
|
|
18079
|
-
width: "48px",
|
|
18080
|
-
height: "48px",
|
|
18081
|
-
borderRadius: "12px",
|
|
18082
|
-
backgroundColor: iconBg,
|
|
18083
|
-
display: "flex",
|
|
18084
|
-
alignItems: "center",
|
|
18085
|
-
justifyContent: "center",
|
|
18086
|
-
flexShrink: 0
|
|
18087
|
-
});
|
|
18088
|
-
const infoContentStyle = {
|
|
18089
|
-
flex: 1
|
|
18090
|
-
};
|
|
18091
|
-
const infoTitleStyle = {
|
|
18092
|
-
fontSize: "16px",
|
|
18093
|
-
fontWeight: "600",
|
|
18094
|
-
marginBottom: "8px",
|
|
18095
|
-
color: "#1F1F1F"
|
|
18096
|
-
};
|
|
18097
|
-
const infoTextStyle = {
|
|
18098
|
-
fontSize: "14px",
|
|
18099
|
-
fontWeight: "400",
|
|
18100
|
-
color: "#4B5563",
|
|
18101
|
-
marginBottom: "4px",
|
|
18102
|
-
lineHeight: "1.6"
|
|
18103
|
-
};
|
|
18104
|
-
const linkStyle = {
|
|
18105
|
-
color: "#2563EB",
|
|
18106
|
-
textDecoration: "none",
|
|
18107
|
-
fontSize: "14px",
|
|
18108
|
-
fontWeight: "500",
|
|
18109
|
-
marginTop: "8px",
|
|
18110
|
-
display: "inline-flex",
|
|
18111
|
-
alignItems: "center",
|
|
18112
|
-
gap: "4px"
|
|
18113
|
-
};
|
|
18114
|
-
const quickProcessingCardStyle = {
|
|
18115
|
-
backgroundColor: "#F3EBFF",
|
|
18116
|
-
padding: "20px 24px",
|
|
18117
|
-
borderRadius: "12px",
|
|
18118
|
-
display: "flex",
|
|
18119
|
-
gap: "16px",
|
|
18120
|
-
alignItems: "flex-start",
|
|
18121
|
-
marginBottom: "24px"
|
|
18122
|
-
};
|
|
18123
|
-
const BriefcaseIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
18124
|
-
width: "24",
|
|
18125
|
-
height: "24",
|
|
18126
|
-
viewBox: "0 0 24 24",
|
|
18127
|
-
fill: "none"
|
|
18128
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
18129
|
-
d: "M20 7H4C2.89543 7 2 7.89543 2 9V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V9C22 7.89543 21.1046 7 20 7Z",
|
|
18130
|
-
stroke: "white",
|
|
18131
|
-
strokeWidth: "2",
|
|
18132
|
-
strokeLinecap: "round",
|
|
18133
|
-
strokeLinejoin: "round"
|
|
18134
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
18135
|
-
d: "M16 7V5C16 3.89543 15.1046 3 14 3H10C8.89543 3 8 3.89543 8 5V7",
|
|
18136
|
-
stroke: "white",
|
|
18137
|
-
strokeWidth: "2",
|
|
18138
|
-
strokeLinecap: "round",
|
|
18139
|
-
strokeLinejoin: "round"
|
|
18140
|
-
}));
|
|
18141
|
-
const RefreshIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
18142
|
-
width: "24",
|
|
18143
|
-
height: "24",
|
|
18144
|
-
viewBox: "0 0 24 24",
|
|
18145
|
-
fill: "none"
|
|
18146
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
18147
|
-
d: "M21.5 2V8M21.5 8H15.5M21.5 8L18 4.5C16.5 3 14.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C16.8 22 20.9 18.5 21.8 14",
|
|
18148
|
-
stroke: "white",
|
|
18149
|
-
strokeWidth: "2",
|
|
18150
|
-
strokeLinecap: "round",
|
|
18151
|
-
strokeLinejoin: "round"
|
|
18152
|
-
}));
|
|
18153
|
-
const ClockIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
18154
|
-
width: "24",
|
|
18155
|
-
height: "24",
|
|
18156
|
-
viewBox: "0 0 24 24",
|
|
18157
|
-
fill: "none"
|
|
18158
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
18159
|
-
cx: "12",
|
|
18160
|
-
cy: "12",
|
|
18161
|
-
r: "10",
|
|
18162
|
-
stroke: "white",
|
|
18163
|
-
strokeWidth: "2",
|
|
18164
|
-
strokeLinecap: "round",
|
|
18165
|
-
strokeLinejoin: "round"
|
|
18166
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
18167
|
-
d: "M12 6V12L16 14",
|
|
18168
|
-
stroke: "white",
|
|
18169
|
-
strokeWidth: "2",
|
|
18170
|
-
strokeLinecap: "round",
|
|
18171
|
-
strokeLinejoin: "round"
|
|
18172
|
-
}));
|
|
18173
|
-
const PhoneIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
18174
|
-
width: "24",
|
|
18175
|
-
height: "24",
|
|
18176
|
-
viewBox: "0 0 24 24",
|
|
18177
|
-
fill: "none"
|
|
18178
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
18179
|
-
d: "M22 16.92V19.92C22 20.4696 21.5523 20.9167 21.0033 20.9206C18.3195 20.9564 15.6684 20.2599 13.3201 18.9029C11.1081 17.6353 9.25998 15.7871 7.99223 13.5751C6.63353 11.2224 5.93686 8.56534 5.97321 5.87558C5.97708 5.32732 6.42317 4.88016 6.97221 4.88016H9.97221C10.5245 4.88016 10.9766 5.32538 10.9844 5.87703C11.0003 6.91799 11.1614 7.94936 11.4631 8.94154C11.6038 9.39824 11.4563 9.89739 11.0924 10.2028L9.63923 11.4196C10.9374 13.7015 12.8156 15.5797 15.0975 16.8779L16.3143 15.4248C16.6197 15.0608 17.1189 14.9133 17.5756 15.054C18.5678 15.3558 19.5991 15.5168 20.6401 15.5328C21.1922 15.5405 21.6377 15.9933 21.6377 16.5459C21.6377 16.5459 22 16.92 22 16.92Z",
|
|
18180
|
-
stroke: "white",
|
|
18181
|
-
strokeWidth: "2",
|
|
18182
|
-
strokeLinecap: "round",
|
|
18183
|
-
strokeLinejoin: "round"
|
|
18184
|
-
}));
|
|
18185
|
-
const MapPinIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
18186
|
-
width: "24",
|
|
18187
|
-
height: "24",
|
|
18188
|
-
viewBox: "0 0 24 24",
|
|
18189
|
-
fill: "none"
|
|
18190
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
18191
|
-
d: "M21 10C21 17 12 23 12 23C12 23 3 17 3 10C3 7.61305 3.94821 5.32387 5.63604 3.63604C7.32387 1.94821 9.61305 1 12 1C14.3869 1 16.6761 1.94821 18.364 3.63604C20.0518 5.32387 21 7.61305 21 10Z",
|
|
18192
|
-
stroke: "white",
|
|
18193
|
-
strokeWidth: "2",
|
|
18194
|
-
strokeLinecap: "round",
|
|
18195
|
-
strokeLinejoin: "round"
|
|
18196
|
-
}), /*#__PURE__*/React.createElement("circle", {
|
|
18197
|
-
cx: "12",
|
|
18198
|
-
cy: "10",
|
|
18199
|
-
r: "3",
|
|
18200
|
-
stroke: "white",
|
|
18201
|
-
strokeWidth: "2",
|
|
18202
|
-
strokeLinecap: "round",
|
|
18203
|
-
strokeLinejoin: "round"
|
|
18204
|
-
}));
|
|
18205
|
-
const CheckCircleIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
18206
|
-
width: "24",
|
|
18207
|
-
height: "24",
|
|
18208
|
-
viewBox: "0 0 24 24",
|
|
18209
|
-
fill: "none"
|
|
18210
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
18211
|
-
cx: "12",
|
|
18212
|
-
cy: "12",
|
|
18213
|
-
r: "10",
|
|
18214
|
-
stroke: "white",
|
|
18215
|
-
strokeWidth: "2",
|
|
18216
|
-
strokeLinecap: "round",
|
|
18217
|
-
strokeLinejoin: "round"
|
|
18218
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
18219
|
-
d: "M8 12L11 15L16 9",
|
|
18220
|
-
stroke: "white",
|
|
18221
|
-
strokeWidth: "2",
|
|
18222
|
-
strokeLinecap: "round",
|
|
18223
|
-
strokeLinejoin: "round"
|
|
18224
|
-
}));
|
|
18225
|
-
const ArrowRightIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
18226
|
-
width: "16",
|
|
18227
|
-
height: "16",
|
|
18228
|
-
viewBox: "0 0 16 16",
|
|
18229
|
-
fill: "none"
|
|
18230
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
18231
|
-
d: "M6 12L10 8L6 4",
|
|
18232
|
-
stroke: "currentColor",
|
|
18233
|
-
strokeWidth: "2",
|
|
18234
|
-
strokeLinecap: "round",
|
|
18235
|
-
strokeLinejoin: "round"
|
|
18236
|
-
}));
|
|
18237
|
-
const staticContent = module => {
|
|
18238
|
-
switch (module) {
|
|
18239
|
-
case "TL":
|
|
18240
|
-
return {
|
|
18241
|
-
staticCommonContent: t("TL_VALIDITY")
|
|
18242
|
-
};
|
|
18243
|
-
case "MCOLLECT":
|
|
18244
|
-
return {
|
|
18245
|
-
staticCommonContent: t("CHALLAN_VALIDITY")
|
|
18246
|
-
};
|
|
18247
|
-
case "PGR":
|
|
18248
|
-
return {
|
|
18249
|
-
staticCommonContent: t("CATEGORIES_OF_COMPLAINT_TYPES_CAN_BE_SUBMITTED_ON_GRIEVANCE_PORTAL")
|
|
18250
|
-
};
|
|
18251
|
-
case "OBPS":
|
|
18252
|
-
return {
|
|
18253
|
-
staticCommonContent: t("BUILDING_PLAN_PERMIT_VALIDITY"),
|
|
18254
|
-
validity: (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.validity) + " " + ((mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.validity) === "1" ? t("COMMON_DAY") : t("COMMON_DAYS"))
|
|
18255
|
-
};
|
|
18256
|
-
default:
|
|
18257
|
-
return {
|
|
18258
|
-
staticCommonContent: ""
|
|
18259
|
-
};
|
|
18260
|
-
}
|
|
18261
|
-
};
|
|
18262
|
-
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}`];
|
|
18263
|
-
if (isMdmsLoading || isSearchLoading) {
|
|
18264
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
18265
|
-
style: {
|
|
18266
|
-
padding: "40px",
|
|
18267
|
-
textAlign: "center"
|
|
18268
|
-
}
|
|
18269
|
-
}, "Loading...");
|
|
18270
|
-
}
|
|
18271
|
-
return mdmsConfigResult ? /*#__PURE__*/React.createElement("div", {
|
|
18272
|
-
style: {
|
|
18273
|
-
width: "100%",
|
|
18274
|
-
margin: "0 auto",
|
|
18275
|
-
padding: "0 20px"
|
|
18276
|
-
}
|
|
18277
|
-
}, ((dynamicData === null || dynamicData === void 0 ? void 0 : dynamicData.dynamicDataOne) !== null || (dynamicData === null || dynamicData === void 0 ? void 0 : dynamicData.dynamicDataTwo) !== null || (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.staticDataOne) || (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.staticDataTwo) || (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.validity) || (dynamicData === null || dynamicData === void 0 ? void 0 : dynamicData.staticData) !== null) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h2", {
|
|
18278
|
-
style: sectionTitleStyle
|
|
18279
|
-
}, t("Statistics & Informations")), /*#__PURE__*/React.createElement("div", {
|
|
18280
|
-
style: cardContainerStyle
|
|
18281
|
-
}, (dynamicData === null || dynamicData === void 0 ? void 0 : dynamicData.dynamicDataOne) !== null && !error && /*#__PURE__*/React.createElement("div", {
|
|
18282
|
-
style: statCardStyle
|
|
18283
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18284
|
-
style: statCardIconStyle("#4F7FFF")
|
|
18285
|
-
}, /*#__PURE__*/React.createElement(BriefcaseIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
18286
|
-
style: statCardTextStyle
|
|
18287
|
-
}, t("Trade Licenses issued in last 12 months")), /*#__PURE__*/React.createElement("div", {
|
|
18288
|
-
style: statCardValueStyle
|
|
18289
|
-
}, dynamicData === null || dynamicData === void 0 ? void 0 : dynamicData.dynamicDataOne)), (dynamicData === null || dynamicData === void 0 ? void 0 : dynamicData.dynamicDataTwo) !== null && !error && /*#__PURE__*/React.createElement("div", {
|
|
18290
|
-
style: statCardStyle
|
|
18291
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18292
|
-
style: statCardIconStyle("#10B981")
|
|
18293
|
-
}, /*#__PURE__*/React.createElement(RefreshIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
18294
|
-
style: statCardTextStyle
|
|
18295
|
-
}, t("Trade Licenses renewed in last 12 months")), /*#__PURE__*/React.createElement("div", {
|
|
18296
|
-
style: statCardValueStyle
|
|
18297
|
-
}, dynamicData === null || dynamicData === void 0 ? void 0 : dynamicData.dynamicDataTwo)), (dynamicData === null || dynamicData === void 0 ? void 0 : dynamicData.staticData) !== null && !error && /*#__PURE__*/React.createElement("div", {
|
|
18298
|
-
style: statCardStyle
|
|
18299
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18300
|
-
style: statCardIconStyle("#8B5CF6")
|
|
18301
|
-
}, /*#__PURE__*/React.createElement(ClockIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
18302
|
-
style: statCardTextStyle
|
|
18303
|
-
}, (_staticContent = staticContent(moduleCode)) === null || _staticContent === void 0 ? void 0 : _staticContent.staticCommonContent), /*#__PURE__*/React.createElement("div", {
|
|
18304
|
-
style: statCardValueStyle
|
|
18305
|
-
}, dynamicData === null || dynamicData === void 0 ? void 0 : dynamicData.staticData)), (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.validity) && /*#__PURE__*/React.createElement("div", {
|
|
18306
|
-
style: statCardStyle
|
|
18307
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18308
|
-
style: statCardIconStyle("#8B5CF6")
|
|
18309
|
-
}, /*#__PURE__*/React.createElement(ClockIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
18310
|
-
style: statCardTextStyle
|
|
18311
|
-
}, (_staticContent2 = staticContent(moduleCode)) === null || _staticContent2 === void 0 ? void 0 : _staticContent2.staticCommonContent), /*#__PURE__*/React.createElement("div", {
|
|
18312
|
-
style: statCardValueStyle
|
|
18313
|
-
}, (_staticContent3 = staticContent(moduleCode)) === null || _staticContent3 === void 0 ? void 0 : _staticContent3.validity)))), (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.helpline) && /*#__PURE__*/React.createElement("div", {
|
|
18314
|
-
style: infoCardStyle("#EBF3FE")
|
|
18315
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18316
|
-
style: infoIconStyle("#4F7FFF")
|
|
18317
|
-
}, /*#__PURE__*/React.createElement(PhoneIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
18318
|
-
style: infoContentStyle
|
|
18319
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18320
|
-
style: infoTitleStyle
|
|
18321
|
-
}, t("CALL_CENTER_HELPLINE")), (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel === void 0 ? void 0 : _mdmsConfigResult$hel.contactOne) && /*#__PURE__*/React.createElement("div", {
|
|
18322
|
-
style: infoTextStyle
|
|
18323
|
-
}, /*#__PURE__*/React.createElement("a", {
|
|
18324
|
-
href: `tel:${mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel2 = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel2 === void 0 ? void 0 : _mdmsConfigResult$hel2.contactOne}`,
|
|
18325
|
-
style: {
|
|
18326
|
-
color: "#1F1F1F",
|
|
18327
|
-
textDecoration: "none"
|
|
18328
|
-
}
|
|
18329
|
-
}, mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel3 = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel3 === void 0 ? void 0 : _mdmsConfigResult$hel3.contactOne)), (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel4 = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel4 === void 0 ? void 0 : _mdmsConfigResult$hel4.contactTwo) && /*#__PURE__*/React.createElement("div", {
|
|
18330
|
-
style: infoTextStyle
|
|
18331
|
-
}, /*#__PURE__*/React.createElement("a", {
|
|
18332
|
-
href: `tel:${mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel5 = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel5 === void 0 ? void 0 : _mdmsConfigResult$hel5.contactTwo}`,
|
|
18333
|
-
style: {
|
|
18334
|
-
color: "#1F1F1F",
|
|
18335
|
-
textDecoration: "none"
|
|
18336
|
-
}
|
|
18337
|
-
}, mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : (_mdmsConfigResult$hel6 = mdmsConfigResult.helpline) === null || _mdmsConfigResult$hel6 === void 0 ? void 0 : _mdmsConfigResult$hel6.contactTwo)))), (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.serviceCenter) && /*#__PURE__*/React.createElement("div", {
|
|
18338
|
-
style: infoCardStyle("#E8F8F5")
|
|
18339
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18340
|
-
style: infoIconStyle("#10B981")
|
|
18341
|
-
}, /*#__PURE__*/React.createElement(MapPinIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
18342
|
-
style: infoContentStyle
|
|
18343
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18344
|
-
style: infoTitleStyle
|
|
18345
|
-
}, t("CITIZEN_SERVICE_CENTER")), /*#__PURE__*/React.createElement("div", {
|
|
18346
|
-
style: infoTextStyle
|
|
18347
|
-
}, mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.serviceCenter), (mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.viewMapLocation) && /*#__PURE__*/React.createElement("a", {
|
|
18348
|
-
href: mdmsConfigResult === null || mdmsConfigResult === void 0 ? void 0 : mdmsConfigResult.viewMapLocation,
|
|
18349
|
-
style: linkStyle,
|
|
18350
|
-
target: "_blank",
|
|
18351
|
-
rel: "noopener noreferrer"
|
|
18352
|
-
}, t("VIEW_ON_MAP"), /*#__PURE__*/React.createElement(ArrowRightIcon, null)))), moduleCode === "TL" && /*#__PURE__*/React.createElement("div", {
|
|
18353
|
-
style: quickProcessingCardStyle
|
|
18354
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18355
|
-
style: infoIconStyle("#8B5CF6")
|
|
18356
|
-
}, /*#__PURE__*/React.createElement(CheckCircleIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
18357
|
-
style: infoContentStyle
|
|
18358
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18359
|
-
style: infoTitleStyle
|
|
18360
|
-
}, t("QUICK_PROCESSING")), /*#__PURE__*/React.createElement("div", {
|
|
18361
|
-
style: infoTextStyle
|
|
18362
|
-
}, t("Most trade license applications are processed within 7-10 working days. Track your application status in real-time through the My Applications section."))))) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
18363
|
-
};
|
|
18364
|
-
|
|
18365
18002
|
const GetActionMessage = props => {
|
|
18366
18003
|
const {
|
|
18367
18004
|
t
|
|
@@ -21539,7 +21176,7 @@ const Home$1 = ({
|
|
|
21539
21176
|
width: "100%",
|
|
21540
21177
|
minHeight: "100vh",
|
|
21541
21178
|
backgroundColor: "#F9FAFB",
|
|
21542
|
-
paddingTop: isMobile ? "20px" : "
|
|
21179
|
+
paddingTop: isMobile ? "20px" : "",
|
|
21543
21180
|
paddingBottom: "80px",
|
|
21544
21181
|
marginTop: "3rem"
|
|
21545
21182
|
}
|
|
@@ -21548,9 +21185,7 @@ const Home$1 = ({
|
|
|
21548
21185
|
margin: "0 auto",
|
|
21549
21186
|
padding: isMobile ? "0 20px" : "0 40px"
|
|
21550
21187
|
}
|
|
21551
|
-
}, /*#__PURE__*/React.createElement(
|
|
21552
|
-
className: "back-btn2"
|
|
21553
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
21188
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21554
21189
|
style: {
|
|
21555
21190
|
fontSize: isMobile ? "13px" : "14px",
|
|
21556
21191
|
color: "#6B7280",
|
|
@@ -21560,7 +21195,12 @@ const Home$1 = ({
|
|
|
21560
21195
|
gap: "8px",
|
|
21561
21196
|
fontWeight: "400"
|
|
21562
21197
|
}
|
|
21563
|
-
}, /*#__PURE__*/React.createElement("span",
|
|
21198
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21199
|
+
style: {
|
|
21200
|
+
cursor: "pointer"
|
|
21201
|
+
},
|
|
21202
|
+
onClick: () => history.push("/digit-ui/citizen")
|
|
21203
|
+
}, t("HOME")), /*#__PURE__*/React.createElement("span", null, "\u203A"), /*#__PURE__*/React.createElement("span", null, t("MODULE_" + code.toUpperCase()))), /*#__PURE__*/React.createElement("div", {
|
|
21564
21204
|
style: {
|
|
21565
21205
|
background: "linear-gradient(135deg, #4F65D8 0%, #00157A 100%)",
|
|
21566
21206
|
borderRadius: "16px",
|
|
@@ -21614,9 +21254,7 @@ const Home$1 = ({
|
|
|
21614
21254
|
text: t(`BPA_CITIZEN_HOME_STAKEHOLDER_INCLUDES_INFO_LABEL`)
|
|
21615
21255
|
}) : null,
|
|
21616
21256
|
isInfo: code === "OBPS" ? true : false
|
|
21617
|
-
})), /*#__PURE__*/React.createElement(
|
|
21618
|
-
moduleCode: code === null || code === void 0 ? void 0 : code.toUpperCase()
|
|
21619
|
-
})))), /*#__PURE__*/React.createElement(Route, {
|
|
21257
|
+
}))))), /*#__PURE__*/React.createElement(Route, {
|
|
21620
21258
|
key: "faq" + index,
|
|
21621
21259
|
path: `${path}/${code.toLowerCase()}-faq`
|
|
21622
21260
|
}, /*#__PURE__*/React.createElement(FAQsSection, {
|
|
@@ -21774,212 +21412,6 @@ const AboutSection = () => {
|
|
|
21774
21412
|
}, item.text)))))));
|
|
21775
21413
|
};
|
|
21776
21414
|
|
|
21777
|
-
const HelpSection = () => {
|
|
21778
|
-
const contactOptions = [{
|
|
21779
|
-
icon: "https://raw.githubusercontent.com/anujkit/msevaImages/refs/heads/main/Telegram.png",
|
|
21780
|
-
label: "Toll Free",
|
|
21781
|
-
value: "1800 1800 0712",
|
|
21782
|
-
color: "#3b82f6",
|
|
21783
|
-
bgColor: "#dbeafe"
|
|
21784
|
-
}, {
|
|
21785
|
-
icon: "https://raw.githubusercontent.com/anujkit/msevaImages/refs/heads/main/WhatsApp%20Icon.png",
|
|
21786
|
-
label: "WhatsApp",
|
|
21787
|
-
value: "897654509",
|
|
21788
|
-
color: "#22c55e",
|
|
21789
|
-
bgColor: "#dcfce7"
|
|
21790
|
-
}, {
|
|
21791
|
-
icon: "https://raw.githubusercontent.com/anujkit/msevaImages/refs/heads/main/Message%20Icon.png",
|
|
21792
|
-
label: "Online Payment Issues",
|
|
21793
|
-
value: "egov123@gmail.com",
|
|
21794
|
-
color: "#8b5cf6",
|
|
21795
|
-
bgColor: "#ede9fe"
|
|
21796
|
-
}];
|
|
21797
|
-
return /*#__PURE__*/React.createElement("section", {
|
|
21798
|
-
className: "landing-help-section"
|
|
21799
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21800
|
-
className: "landing-help-container"
|
|
21801
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21802
|
-
className: "landing-help-content"
|
|
21803
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21804
|
-
className: "landing-help-text"
|
|
21805
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
21806
|
-
className: "landing-help-badge"
|
|
21807
|
-
}, "24/7 Support"), /*#__PURE__*/React.createElement("h2", {
|
|
21808
|
-
className: "landing-help-title"
|
|
21809
|
-
}, "Need Help? We're Just a Click Away"), /*#__PURE__*/React.createElement("p", {
|
|
21810
|
-
className: "landing-help-subtitle"
|
|
21811
|
-
}, "Our dedicated support team is available round the clock to assist you with any queries or issues.")), /*#__PURE__*/React.createElement("div", {
|
|
21812
|
-
className: "landing-help-cards"
|
|
21813
|
-
}, contactOptions.map((option, index) => /*#__PURE__*/React.createElement("div", {
|
|
21814
|
-
key: index,
|
|
21815
|
-
className: "landing-help-card",
|
|
21816
|
-
style: {
|
|
21817
|
-
'--card-color': option.color,
|
|
21818
|
-
'--card-bg': option.bgColor
|
|
21819
|
-
}
|
|
21820
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21821
|
-
className: "landing-help-card-icon"
|
|
21822
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
21823
|
-
src: option.icon,
|
|
21824
|
-
alt: option.label
|
|
21825
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
21826
|
-
className: "landing-help-card-content"
|
|
21827
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
21828
|
-
className: "landing-help-card-label"
|
|
21829
|
-
}, option.label), /*#__PURE__*/React.createElement("span", {
|
|
21830
|
-
className: "landing-help-card-value"
|
|
21831
|
-
}, option.value)), /*#__PURE__*/React.createElement("div", {
|
|
21832
|
-
className: "landing-help-card-arrow"
|
|
21833
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
21834
|
-
viewBox: "0 0 24 24",
|
|
21835
|
-
fill: "none"
|
|
21836
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
21837
|
-
d: "M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z",
|
|
21838
|
-
fill: "currentColor"
|
|
21839
|
-
})))))))));
|
|
21840
|
-
};
|
|
21841
|
-
|
|
21842
|
-
const MiddleSection = () => {
|
|
21843
|
-
const images = ["https://via.placeholder.com/400x200/3b82f6/ffffff?text=Smart+City", "https://via.placeholder.com/400x200/10b981/ffffff?text=AMRUT", "https://via.placeholder.com/400x200/8b5cf6/ffffff?text=Swachh+Bharat", "https://via.placeholder.com/400x200/f59e0b/ffffff?text=Urban+Development"];
|
|
21844
|
-
const [currentIndex, setCurrentIndex] = useState(0);
|
|
21845
|
-
const handleNext = () => {
|
|
21846
|
-
setCurrentIndex(prevIndex => prevIndex === images.length - 1 ? 0 : prevIndex + 1);
|
|
21847
|
-
};
|
|
21848
|
-
const handlePrev = () => {
|
|
21849
|
-
setCurrentIndex(prevIndex => prevIndex === 0 ? images.length - 1 : prevIndex - 1);
|
|
21850
|
-
};
|
|
21851
|
-
const projects = [{
|
|
21852
|
-
name: "SMART CITY MISSION",
|
|
21853
|
-
icon: "🏙️"
|
|
21854
|
-
}, {
|
|
21855
|
-
name: "AMRUT",
|
|
21856
|
-
icon: "💧"
|
|
21857
|
-
}, {
|
|
21858
|
-
name: "SWACHH BHARAT MISSION",
|
|
21859
|
-
icon: "🌿"
|
|
21860
|
-
}, {
|
|
21861
|
-
name: "SWM",
|
|
21862
|
-
icon: "♻️"
|
|
21863
|
-
}];
|
|
21864
|
-
const newsItems = ["PMIDC is a non-profit organization to uplift urban living standards.", "Chief Secretary is the Chairman and Principal Secretary.", "Government initiatives for better urban development.", "New digital services launched for citizen convenience."];
|
|
21865
|
-
return /*#__PURE__*/React.createElement("section", {
|
|
21866
|
-
className: "landing-middle-section"
|
|
21867
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21868
|
-
className: "landing-middle-container"
|
|
21869
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21870
|
-
className: "landing-section-header"
|
|
21871
|
-
}, /*#__PURE__*/React.createElement("h2", {
|
|
21872
|
-
className: "landing-section-title"
|
|
21873
|
-
}, "Explore Our Initiatives"), /*#__PURE__*/React.createElement("p", {
|
|
21874
|
-
className: "landing-section-subtitle"
|
|
21875
|
-
}, "Discover the latest government projects and news updates")), /*#__PURE__*/React.createElement("div", {
|
|
21876
|
-
className: "landing-middle-grid"
|
|
21877
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21878
|
-
className: "landing-info-card landing-projects-card"
|
|
21879
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21880
|
-
className: "landing-card-header"
|
|
21881
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21882
|
-
className: "landing-card-icon"
|
|
21883
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
21884
|
-
viewBox: "0 0 24 24",
|
|
21885
|
-
fill: "none",
|
|
21886
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
21887
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
21888
|
-
d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM7 10H9V17H7V10ZM11 7H13V17H11V7ZM15 13H17V17H15V13Z",
|
|
21889
|
-
fill: "currentColor"
|
|
21890
|
-
}))), /*#__PURE__*/React.createElement("h3", {
|
|
21891
|
-
className: "landing-card-title"
|
|
21892
|
-
}, "Latest Projects")), /*#__PURE__*/React.createElement("div", {
|
|
21893
|
-
className: "landing-projects-list"
|
|
21894
|
-
}, projects.map((project, index) => /*#__PURE__*/React.createElement("a", {
|
|
21895
|
-
href: "#",
|
|
21896
|
-
key: index,
|
|
21897
|
-
className: "landing-project-item"
|
|
21898
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
21899
|
-
className: "landing-project-icon"
|
|
21900
|
-
}, project.icon), /*#__PURE__*/React.createElement("span", {
|
|
21901
|
-
className: "landing-project-name"
|
|
21902
|
-
}, project.name), /*#__PURE__*/React.createElement("svg", {
|
|
21903
|
-
className: "landing-project-arrow",
|
|
21904
|
-
viewBox: "0 0 24 24",
|
|
21905
|
-
fill: "none"
|
|
21906
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
21907
|
-
d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
|
|
21908
|
-
fill: "currentColor"
|
|
21909
|
-
})))))), /*#__PURE__*/React.createElement("div", {
|
|
21910
|
-
className: "landing-info-card landing-gallery-card"
|
|
21911
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21912
|
-
className: "landing-card-header"
|
|
21913
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21914
|
-
className: "landing-card-icon landing-card-icon-purple"
|
|
21915
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
21916
|
-
viewBox: "0 0 24 24",
|
|
21917
|
-
fill: "none",
|
|
21918
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
21919
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
21920
|
-
d: "M21 19V5C21 3.9 20.1 3 19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19ZM8.5 13.5L11 16.51L14.5 12L19 18H5L8.5 13.5Z",
|
|
21921
|
-
fill: "currentColor"
|
|
21922
|
-
}))), /*#__PURE__*/React.createElement("h3", {
|
|
21923
|
-
className: "landing-card-title"
|
|
21924
|
-
}, "Photo Gallery")), /*#__PURE__*/React.createElement("div", {
|
|
21925
|
-
className: "landing-gallery-container"
|
|
21926
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
21927
|
-
src: images[currentIndex],
|
|
21928
|
-
alt: `Slide ${currentIndex}`,
|
|
21929
|
-
className: "landing-gallery-image"
|
|
21930
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
21931
|
-
className: "landing-gallery-controls"
|
|
21932
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
21933
|
-
className: "landing-gallery-btn",
|
|
21934
|
-
onClick: handlePrev
|
|
21935
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
21936
|
-
viewBox: "0 0 24 24",
|
|
21937
|
-
fill: "none"
|
|
21938
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
21939
|
-
d: "M15.41 16.59L10.83 12L15.41 7.41L14 6L8 12L14 18L15.41 16.59Z",
|
|
21940
|
-
fill: "currentColor"
|
|
21941
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
21942
|
-
className: "landing-gallery-dots"
|
|
21943
|
-
}, images.map((_, index) => /*#__PURE__*/React.createElement("span", {
|
|
21944
|
-
key: index,
|
|
21945
|
-
className: `landing-gallery-dot ${index === currentIndex ? 'active' : ''}`,
|
|
21946
|
-
onClick: () => setCurrentIndex(index)
|
|
21947
|
-
}))), /*#__PURE__*/React.createElement("button", {
|
|
21948
|
-
className: "landing-gallery-btn",
|
|
21949
|
-
onClick: handleNext
|
|
21950
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
21951
|
-
viewBox: "0 0 24 24",
|
|
21952
|
-
fill: "none"
|
|
21953
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
21954
|
-
d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
|
|
21955
|
-
fill: "currentColor"
|
|
21956
|
-
})))))), /*#__PURE__*/React.createElement("div", {
|
|
21957
|
-
className: "landing-info-card landing-news-card"
|
|
21958
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21959
|
-
className: "landing-card-header"
|
|
21960
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21961
|
-
className: "landing-card-icon landing-card-icon-amber"
|
|
21962
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
21963
|
-
viewBox: "0 0 24 24",
|
|
21964
|
-
fill: "none",
|
|
21965
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
21966
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
21967
|
-
d: "M20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4ZM20 18H4V8L12 13L20 8V18ZM12 11L4 6H20L12 11Z",
|
|
21968
|
-
fill: "currentColor"
|
|
21969
|
-
}))), /*#__PURE__*/React.createElement("h3", {
|
|
21970
|
-
className: "landing-card-title"
|
|
21971
|
-
}, "News Highlights")), /*#__PURE__*/React.createElement("div", {
|
|
21972
|
-
className: "landing-news-list"
|
|
21973
|
-
}, newsItems.map((news, index) => /*#__PURE__*/React.createElement("div", {
|
|
21974
|
-
key: index,
|
|
21975
|
-
className: "landing-news-item"
|
|
21976
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
21977
|
-
className: "landing-news-bullet"
|
|
21978
|
-
}), /*#__PURE__*/React.createElement("p", {
|
|
21979
|
-
className: "landing-news-text"
|
|
21980
|
-
}, news))))))));
|
|
21981
|
-
};
|
|
21982
|
-
|
|
21983
21415
|
const TopSection = () => {
|
|
21984
21416
|
const [currentIndex, setCurrentIndex] = useState(0);
|
|
21985
21417
|
const [isAnimating, setIsAnimating] = useState(false);
|
|
@@ -22201,7 +21633,7 @@ const LandingPage = () => {
|
|
|
22201
21633
|
}, /*#__PURE__*/React.createElement("path", {
|
|
22202
21634
|
d: "M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z",
|
|
22203
21635
|
fill: "currentColor"
|
|
22204
|
-
}))))))), /*#__PURE__*/React.createElement(TopSection, null), /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(
|
|
21636
|
+
}))))))), /*#__PURE__*/React.createElement(TopSection, null), /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(AboutSection, null), /*#__PURE__*/React.createElement(Footer, null));
|
|
22205
21637
|
};
|
|
22206
21638
|
|
|
22207
21639
|
const DigitApp = ({
|
|
@@ -22277,6 +21709,14 @@ const DigitApp = ({
|
|
|
22277
21709
|
pathname,
|
|
22278
21710
|
initData
|
|
22279
21711
|
};
|
|
21712
|
+
useEffect(() => {
|
|
21713
|
+
const unblock = history.block((location, action) => {
|
|
21714
|
+
if (action === "POP") {
|
|
21715
|
+
return false;
|
|
21716
|
+
}
|
|
21717
|
+
});
|
|
21718
|
+
return () => unblock();
|
|
21719
|
+
}, [history]);
|
|
22280
21720
|
return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
|
|
22281
21721
|
path: "/digit-ui/employee"
|
|
22282
21722
|
}, /*#__PURE__*/React.createElement(EmployeeApp, commonProps)), /*#__PURE__*/React.createElement(Route, {
|