@egovernments/digit-ui-module-core 1.3.3 → 1.4.0-beta1

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.
@@ -1,9 +1,9 @@
1
- import React, { useContext, useRef, useEffect, useState, useMemo } from 'react';
1
+ import React, { useContext, useRef, useEffect, useState, Fragment as Fragment$1, useMemo } from 'react';
2
2
  import { QueryClient, QueryClientProvider } from 'react-query';
3
3
  import { Provider } from 'react-redux';
4
- import { useLocation, useRouteMatch, useHistory, Switch, Route, Link, Redirect, BrowserRouter } from 'react-router-dom';
4
+ import { useLocation, useRouteMatch, useHistory, Switch, Route, Redirect, Link, BrowserRouter } from 'react-router-dom';
5
5
  import { useTranslation, getI18n } from 'react-i18next';
6
- import { FormStep, OTPInput, CardText, CardLabelError, AppContainer, BackButton, Toast, Dropdown, Loader, FormComposer, CardSubHeader, CardLabel, CardLabelDesc, TextInput, CustomButton, TopBar as TopBar$1, Hamburger, HomeIcon, LanguageIcon, LogoutIcon, NavBar, Body } from '@egovernments/digit-ui-react-components';
6
+ import { FormStep, OTPInput, CardText, CardLabelError, AppContainer, BackButton, Toast, Loader, Dropdown, FormComposer, CardSubHeader, Card, CustomButton, SubmitBar, TopBar as TopBar$1, Hamburger, HomeIcon, LanguageIcon, LogoutIcon, NavBar, ComplaintIcon, PTIcon, CaseIcon, OBPSIcon, Calender, DocumentIcon, StandaloneSearchBar, CardBasedOptions, WhatsNewCard, PageBasedInput, CardHeader, RadioButtons, SearchOnRadioButtons, Body } from '@egovernments/digit-ui-react-components';
7
7
  import { compose, applyMiddleware, createStore, combineReducers } from 'redux';
8
8
  import thunk from 'redux-thunk';
9
9
 
@@ -23,7 +23,9 @@ var CitizenHome = function CitizenHome(_ref) {
23
23
  var showQuickPay = moduleArr.some(function (module) {
24
24
  return module.code === "QuickPayLinks";
25
25
  });
26
- return /*#__PURE__*/React.createElement(React.Fragment, null, moduleArray.map(function (_ref4, index) {
26
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
27
+ className: "citizenAllServiceGrid"
28
+ }, moduleArray.map(function (_ref4, index) {
27
29
  var code = _ref4.code;
28
30
 
29
31
  var Links = Digit.ComponentRegistryService.getComponent(code + "Links") || function () {
@@ -41,7 +43,7 @@ var CitizenHome = function CitizenHome(_ref) {
41
43
  matchPath: "/digit-ui/citizen/" + code.toLowerCase(),
42
44
  userType: "citizen"
43
45
  });
44
- }));
46
+ })));
45
47
  };
46
48
 
47
49
  var EmployeeHome = function EmployeeHome(_ref5) {
@@ -49,7 +51,7 @@ var EmployeeHome = function EmployeeHome(_ref5) {
49
51
  return /*#__PURE__*/React.createElement("div", {
50
52
  className: "employee-app-container"
51
53
  }, /*#__PURE__*/React.createElement("div", {
52
- className: "ground-container moduleCardWrapper"
54
+ className: "ground-container moduleCardWrapper gridModuleWrapper"
53
55
  }, modules.map(function (_ref6, index) {
54
56
  var code = _ref6.code;
55
57
 
@@ -163,8 +165,11 @@ var loginSteps = [{
163
165
  label: "CORE_COMMON_NAME",
164
166
  type: "text",
165
167
  name: "name",
168
+ error: "CORE_COMMON_NAME_VALIDMSG",
166
169
  validation: {
167
- required: true
170
+ required: true,
171
+ minLength: 1,
172
+ pattern: /^[^{0-9}^\$\"<>?\\\\~!@#$%^()+={}\[\]*,/_:;“”‘’]{1,50}$/i
168
173
  }
169
174
  }]
170
175
  }];
@@ -212,7 +217,9 @@ var SelectOtp = function SelectOtp(_ref) {
212
217
  onResend = _ref.onResend,
213
218
  onSelect = _ref.onSelect,
214
219
  t = _ref.t,
215
- error = _ref.error;
220
+ error = _ref.error,
221
+ _ref$userType = _ref.userType,
222
+ userType = _ref$userType === void 0 ? "citizen" : _ref$userType;
216
223
 
217
224
  var _useState = useState(30),
218
225
  timeLeft = _useState[0],
@@ -227,6 +234,17 @@ var SelectOtp = function SelectOtp(_ref) {
227
234
  setTimeLeft(2);
228
235
  };
229
236
 
237
+ if (userType === "employee") {
238
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(OTPInput, {
239
+ length: 6,
240
+ onChange: onOtpChange,
241
+ value: otp
242
+ }), timeLeft > 0 ? /*#__PURE__*/React.createElement(CardText, null, t("CS_RESEND_ANOTHER_OTP") + " " + timeLeft + " " + t("CS_RESEND_SECONDS")) : /*#__PURE__*/React.createElement("p", {
243
+ className: "card-text-button",
244
+ onClick: handleResendOtp
245
+ }, t("CS_RESEND_OTP")), !error && /*#__PURE__*/React.createElement(CardLabelError, null, t("CS_INVALID_OTP")));
246
+ }
247
+
230
248
  return /*#__PURE__*/React.createElement(FormStep, {
231
249
  onSelect: onSelect,
232
250
  config: config,
@@ -263,12 +281,27 @@ var TYPE_LOGIN = {
263
281
  };
264
282
  var DEFAULT_REDIRECT_URL = "/digit-ui/citizen";
265
283
 
284
+ var setCitizenDetail = function setCitizenDetail(userObject, token, tenantId) {
285
+ var _JSON$parse, _JSON$parse$value;
286
+
287
+ var locale = (_JSON$parse = JSON.parse(sessionStorage.getItem("Digit.initData"))) === null || _JSON$parse === void 0 ? void 0 : (_JSON$parse$value = _JSON$parse.value) === null || _JSON$parse$value === void 0 ? void 0 : _JSON$parse$value.selectedLanguage;
288
+ localStorage.setItem("Citizen.tenant-id", tenantId);
289
+ localStorage.setItem("tenant-id", tenantId);
290
+ localStorage.setItem("citizen.userRequestObject", JSON.stringify(userObject));
291
+ localStorage.setItem("locale", locale);
292
+ localStorage.setItem("Citizen.locale", locale);
293
+ localStorage.setItem("token", token);
294
+ localStorage.setItem("Citizen.token", token);
295
+ localStorage.setItem("user-info", JSON.stringify(userObject));
296
+ localStorage.setItem("Citizen.user-info", JSON.stringify(userObject));
297
+ };
298
+
266
299
  var getFromLocation = function getFromLocation(state, searchParams) {
267
300
  return (state === null || state === void 0 ? void 0 : state.from) || (searchParams === null || searchParams === void 0 ? void 0 : searchParams.from) || DEFAULT_REDIRECT_URL;
268
301
  };
269
302
 
270
303
  var Login = function Login(_ref) {
271
- var _location$state5;
304
+ var _location$state, _location$state6;
272
305
 
273
306
  var stateCode = _ref.stateCode,
274
307
  _ref$isUserRegistered = _ref.isUserRegistered,
@@ -298,7 +331,7 @@ var Login = function Login(_ref) {
298
331
 
299
332
  var _useState4 = useState(null);
300
333
 
301
- var _useState5 = useState({}),
334
+ var _useState5 = useState(isUserRegistered ? {} : location === null || location === void 0 ? void 0 : (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.data),
302
335
  params = _useState5[0],
303
336
  setParmas = _useState5[1];
304
337
 
@@ -317,6 +350,7 @@ var Login = function Login(_ref) {
317
350
  }
318
351
 
319
352
  errorTimeout = setTimeout(function () {
353
+ console.error("clearing err");
320
354
  setError("");
321
355
  }, 5000);
322
356
  setErrorTO(errorTimeout);
@@ -327,14 +361,15 @@ var Login = function Login(_ref) {
327
361
  };
328
362
  }, [error]);
329
363
  useEffect(function () {
330
- var _location$state;
364
+ var _location$state2;
331
365
 
332
366
  if (!user) {
333
367
  return;
334
368
  }
335
369
 
336
370
  Digit.UserService.setUser(user);
337
- var redirectPath = ((_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.from) || DEFAULT_REDIRECT_URL;
371
+ setCitizenDetail(user === null || user === void 0 ? void 0 : user.info, user === null || user === void 0 ? void 0 : user.access_token, stateCode);
372
+ var redirectPath = ((_location$state2 = location.state) === null || _location$state2 === void 0 ? void 0 : _location$state2.from) || DEFAULT_REDIRECT_URL;
338
373
  history.replace(redirectPath);
339
374
  }, [user]);
340
375
  var stepItems = useMemo(function () {
@@ -382,26 +417,27 @@ var Login = function Login(_ref) {
382
417
  return Promise.resolve(sendOtp({
383
418
  otp: _extends({}, data, TYPE_LOGIN)
384
419
  })).then(function (_ref2) {
385
- var _location$state3;
420
+ var _location$state4;
386
421
 
387
422
  var res = _ref2[0],
388
423
  err = _ref2[1];
389
424
 
390
425
  if (!err) {
391
- var _location$state2;
426
+ var _location$state3;
392
427
 
393
428
  history.replace(path + "/otp", {
394
429
  from: getFromLocation(location.state, searchParams),
395
- role: (_location$state2 = location.state) === null || _location$state2 === void 0 ? void 0 : _location$state2.role
430
+ role: (_location$state3 = location.state) === null || _location$state3 === void 0 ? void 0 : _location$state3.role
396
431
  });
397
432
  return;
398
433
  } else {
399
- history.replace("/digit-ui/citizen/register/name", {
400
- from: getFromLocation(location.state, searchParams)
434
+ history.push("/digit-ui/citizen/register/name", {
435
+ from: getFromLocation(location.state, searchParams),
436
+ data: data
401
437
  });
402
438
  }
403
439
 
404
- if ((_location$state3 = location.state) !== null && _location$state3 !== void 0 && _location$state3.role) {
440
+ if ((_location$state4 = location.state) !== null && _location$state4 !== void 0 && _location$state4.role) {
405
441
  setError("User not registered.");
406
442
  }
407
443
  });
@@ -430,13 +466,21 @@ var Login = function Login(_ref) {
430
466
  var data = _extends({}, params, {
431
467
  tenantId: stateCode,
432
468
  userType: getUserType()
433
- });
469
+ }, name);
434
470
 
435
471
  setParmas(_extends({}, params, name));
436
- history.replace(path + "/otp", {
437
- from: getFromLocation(location.state, searchParams)
472
+ return Promise.resolve(sendOtp({
473
+ otp: _extends({}, data, TYPE_REGISTER)
474
+ })).then(function (_ref4) {
475
+ var res = _ref4[0],
476
+ err = _ref4[1];
477
+
478
+ if (res) {
479
+ history.replace(path + "/otp", {
480
+ from: getFromLocation(location.state, searchParams)
481
+ });
482
+ }
438
483
  });
439
- return Promise.resolve();
440
484
  } catch (e) {
441
485
  return Promise.reject(e);
442
486
  }
@@ -457,14 +501,14 @@ var Login = function Login(_ref) {
457
501
  tenantId: stateCode,
458
502
  userType: getUserType()
459
503
  };
460
- return Promise.resolve(Digit.UserService.authenticate(requestData)).then(function (_ref4) {
461
- var _location$state4;
504
+ return Promise.resolve(Digit.UserService.authenticate(requestData)).then(function (_ref5) {
505
+ var _location$state5, _window, _window$globalConfigs;
462
506
 
463
- var ResponseInfo = _ref4.ResponseInfo,
464
- info = _ref4.UserRequest,
465
- tokens = _objectWithoutPropertiesLoose(_ref4, _excluded);
507
+ var ResponseInfo = _ref5.ResponseInfo,
508
+ info = _ref5.UserRequest,
509
+ tokens = _objectWithoutPropertiesLoose(_ref5, _excluded);
466
510
 
467
- if ((_location$state4 = location.state) !== null && _location$state4 !== void 0 && _location$state4.role) {
511
+ if ((_location$state5 = location.state) !== null && _location$state5 !== void 0 && _location$state5.role) {
468
512
  var roleInfo = info.roles.find(function (userRole) {
469
513
  return userRole.code === location.state.role;
470
514
  });
@@ -478,6 +522,10 @@ var Login = function Login(_ref) {
478
522
  }
479
523
  }
480
524
 
525
+ if ((_window = window) !== null && _window !== void 0 && (_window$globalConfigs = _window.globalConfigs) !== null && _window$globalConfigs !== void 0 && _window$globalConfigs.getConfig("ENABLE_SINGLEINSTANCE")) {
526
+ info.tenantId = Digit.ULBService.getStateId();
527
+ }
528
+
481
529
  setUser(_extends({
482
530
  info: info
483
531
  }, tokens));
@@ -491,10 +539,16 @@ var Login = function Login(_ref) {
491
539
  otpReference: otp,
492
540
  tenantId: stateCode
493
541
  };
494
- return Promise.resolve(Digit.UserService.registerUser(_requestData, stateCode)).then(function (_ref5) {
495
- var ResponseInfo = _ref5.ResponseInfo,
496
- info = _ref5.UserRequest,
497
- tokens = _objectWithoutPropertiesLoose(_ref5, _excluded2);
542
+ return Promise.resolve(Digit.UserService.registerUser(_requestData, stateCode)).then(function (_ref6) {
543
+ var _window2, _window2$globalConfig;
544
+
545
+ var ResponseInfo = _ref6.ResponseInfo,
546
+ info = _ref6.UserRequest,
547
+ tokens = _objectWithoutPropertiesLoose(_ref6, _excluded2);
548
+
549
+ if ((_window2 = window) !== null && _window2 !== void 0 && (_window2$globalConfig = _window2.globalConfigs) !== null && _window2$globalConfig !== void 0 && _window2$globalConfig.getConfig("ENABLE_SINGLEINSTANCE")) {
550
+ info.tenantId = Digit.ULBService.getStateId();
551
+ }
498
552
 
499
553
  setUser(_extends({
500
554
  info: info
@@ -506,8 +560,9 @@ var Login = function Login(_ref) {
506
560
  if (_temp2 && _temp2.then) return _temp2.then(function () {});
507
561
  }
508
562
  }();
509
- }, function () {
563
+ }, function (err) {
510
564
  setIsOtpValid(false);
565
+ console.error(err);
511
566
  }));
512
567
  } catch (e) {
513
568
  return Promise.reject(e);
@@ -565,7 +620,7 @@ var Login = function Login(_ref) {
565
620
  config: stepItems[0],
566
621
  mobileNumber: params.mobileNumber || "",
567
622
  onMobileChange: handleMobileChange,
568
- showRegisterLink: isUserRegistered && !((_location$state5 = location.state) !== null && _location$state5 !== void 0 && _location$state5.role),
623
+ showRegisterLink: isUserRegistered && !((_location$state6 = location.state) !== null && _location$state6 !== void 0 && _location$state6.role),
569
624
  t: t
570
625
  })), /*#__PURE__*/React.createElement(Route, {
571
626
  path: path + "/otp"
@@ -598,17 +653,17 @@ var Login = function Login(_ref) {
598
653
 
599
654
  var loginConfig = [{
600
655
  texts: {
601
- header: "CS_LOGIN",
602
- submitButtonLabel: "CS_LOGIN",
603
- secondaryButtonLabel: "CS_FORGOT_PASSWORD"
656
+ header: "CORE_COMMON_LOGIN",
657
+ submitButtonLabel: "CORE_COMMON_CONTINUE",
658
+ secondaryButtonLabel: "CORE_COMMON_FORGOT_PASSWORD"
604
659
  },
605
660
  inputs: [{
606
- label: "CORE_COMMON_USER_ID",
661
+ label: "CORE_LOGIN_USERNAME",
607
662
  type: "text",
608
663
  name: "username",
609
664
  error: "ERR_HRMS_INVALID_USER_ID"
610
665
  }, {
611
- label: "CORE_COMMON_PASSWORD",
666
+ label: "CORE_LOGIN_PASSWORD",
612
667
  type: "password",
613
668
  name: "password",
614
669
  error: "ERR_HRMS_WRONG_PASSWORD"
@@ -1418,7 +1473,7 @@ var factoryWithTypeCheckers = function factoryWithTypeCheckers(isValidElement, t
1418
1473
  return null;
1419
1474
  }
1420
1475
 
1421
- if (checkerResult.data.hasOwnProperty('expectedType')) {
1476
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1422
1477
  expectedTypes.push(checkerResult.data.expectedType);
1423
1478
  }
1424
1479
  }
@@ -1709,9 +1764,38 @@ var propTypes = createCommonjsModule(function (module) {
1709
1764
  }
1710
1765
  });
1711
1766
 
1767
+ var Background = function Background(_ref) {
1768
+ var children = _ref.children;
1769
+ return /*#__PURE__*/React.createElement("div", {
1770
+ className: "banner"
1771
+ }, children);
1772
+ };
1773
+
1774
+ var Header = function Header() {
1775
+ var _Digit$Hooks$useStore = Digit.Hooks.useStore.getInitData(),
1776
+ storeData = _Digit$Hooks$useStore.data,
1777
+ isLoading = _Digit$Hooks$useStore.isLoading;
1778
+
1779
+ var _ref = storeData || {},
1780
+ stateInfo = _ref.stateInfo;
1781
+
1782
+ var _useTranslation = useTranslation(),
1783
+ t = _useTranslation.t;
1784
+
1785
+ if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
1786
+ return /*#__PURE__*/React.createElement("div", {
1787
+ className: "bannerHeader"
1788
+ }, /*#__PURE__*/React.createElement("img", {
1789
+ className: "bannerLogo",
1790
+ src: stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.logoUrl
1791
+ }), /*#__PURE__*/React.createElement("p", null, t("TENANT_TENANTS_" + (stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.code.toUpperCase()))));
1792
+ };
1793
+
1712
1794
  var _excluded$1 = ["UserRequest"];
1713
1795
 
1714
1796
  var Login$1 = function Login(_ref) {
1797
+ var _window, _window$globalConfigs, _window$globalConfigs2;
1798
+
1715
1799
  var propsConfig = _ref.config,
1716
1800
  t = _ref.t;
1717
1801
 
@@ -1719,16 +1803,18 @@ var Login$1 = function Login(_ref) {
1719
1803
  cities = _Digit$Hooks$useTenan.data,
1720
1804
  isLoading = _Digit$Hooks$useTenan.isLoading;
1721
1805
 
1806
+ var _Digit$Hooks$useStore = Digit.Hooks.useStore.getInitData(),
1807
+ isStoreLoading = _Digit$Hooks$useStore.isLoading;
1808
+
1722
1809
  var _useState = useState(null),
1723
1810
  user = _useState[0],
1724
1811
  setUser = _useState[1];
1725
1812
 
1726
- var history = useHistory();
1727
-
1728
- var getUserType = function getUserType() {
1729
- return Digit.UserService.getType();
1730
- };
1813
+ var _useState2 = useState(null),
1814
+ showToast = _useState2[0],
1815
+ setShowToast = _useState2[1];
1731
1816
 
1817
+ var history = useHistory();
1732
1818
  useEffect(function () {
1733
1819
  var _location$state;
1734
1820
 
@@ -1749,17 +1835,18 @@ var Login$1 = function Login(_ref) {
1749
1835
  }
1750
1836
 
1751
1837
  var requestData = _extends({}, data, {
1752
- userType: getUserType()
1838
+ userType: "EMPLOYEE"
1753
1839
  });
1754
1840
 
1755
1841
  requestData.tenantId = data.city.code;
1756
1842
  delete requestData.city;
1757
1843
 
1758
1844
  var _temp2 = _catch(function () {
1759
- return Promise.resolve(Digit.UserService.authenticate(requestData)).then(function (_ref2) {
1760
- var info = _ref2.UserRequest,
1761
- tokens = _objectWithoutPropertiesLoose(_ref2, _excluded$1);
1845
+ return Promise.resolve(Digit.UserService.authenticate(requestData)).then(function (_ref3) {
1846
+ var info = _ref3.UserRequest,
1847
+ tokens = _objectWithoutPropertiesLoose(_ref3, _excluded$1);
1762
1848
 
1849
+ Digit.SessionStorage.set("Employee.tenantId", info === null || info === void 0 ? void 0 : info.tenantId);
1763
1850
  setUser(_extends({
1764
1851
  info: info
1765
1852
  }, tokens));
@@ -1767,7 +1854,8 @@ var Login$1 = function Login(_ref) {
1767
1854
  }, function (err) {
1768
1855
  var _err$response, _err$response$data;
1769
1856
 
1770
- alert((err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.error_description) || "Invalid login credentials!");
1857
+ setShowToast((err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.error_description) || "Invalid login credentials!");
1858
+ setTimeout(closeToast, 5000);
1771
1859
  });
1772
1860
 
1773
1861
  return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
@@ -1776,8 +1864,12 @@ var Login$1 = function Login(_ref) {
1776
1864
  }
1777
1865
  };
1778
1866
 
1867
+ var closeToast = function closeToast() {
1868
+ setShowToast(null);
1869
+ };
1870
+
1779
1871
  var onForgotPassword = function onForgotPassword() {
1780
- history.push("/digit-ui/employee/forgot-password");
1872
+ history.push("/digit-ui/employee/user/forgot-password");
1781
1873
  };
1782
1874
 
1783
1875
  var _propsConfig$inputs = propsConfig.inputs,
@@ -1808,17 +1900,26 @@ var Login$1 = function Login(_ref) {
1808
1900
  component: function component(props, customProps) {
1809
1901
  return /*#__PURE__*/React.createElement(Dropdown, _extends({
1810
1902
  option: cities,
1903
+ className: "login-city-dd",
1811
1904
  optionKey: "i18nKey",
1812
1905
  select: function select(d) {
1813
1906
  props.onChange(d);
1814
- }
1907
+ },
1908
+ t: t
1815
1909
  }, customProps));
1816
1910
  }
1817
1911
  },
1818
1912
  isMandatory: true
1819
1913
  }]
1820
1914
  }];
1821
- return isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
1915
+ return isLoading || isStoreLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Background, null, /*#__PURE__*/React.createElement("div", {
1916
+ className: "employeeBackbuttonAlign"
1917
+ }, /*#__PURE__*/React.createElement(BackButton, {
1918
+ variant: "white",
1919
+ style: {
1920
+ borderBottom: "none"
1921
+ }
1922
+ })), /*#__PURE__*/React.createElement(FormComposer, {
1822
1923
  onSubmit: onLogin,
1823
1924
  noBoxShadow: true,
1824
1925
  inline: true,
@@ -1832,10 +1933,31 @@ var Login$1 = function Login(_ref) {
1832
1933
  textAlign: "center"
1833
1934
  },
1834
1935
  cardStyle: {
1835
- maxWidth: "400px",
1836
- margin: "auto"
1936
+ margin: "auto",
1937
+ minWidth: "408px"
1938
+ },
1939
+ className: "loginFormStyleEmployee"
1940
+ }, /*#__PURE__*/React.createElement(Header, null)), showToast && /*#__PURE__*/React.createElement(Toast, {
1941
+ error: true,
1942
+ label: t(showToast),
1943
+ onClose: closeToast
1944
+ }), /*#__PURE__*/React.createElement("div", {
1945
+ className: "employee-home-footer",
1946
+ style: {
1947
+ backgroundColor: "unset"
1837
1948
  }
1838
- });
1949
+ }, /*#__PURE__*/React.createElement("img", {
1950
+ alt: "Powered by DIGIT",
1951
+ src: (_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : (_window$globalConfigs2 = _window$globalConfigs.getConfig) === null || _window$globalConfigs2 === void 0 ? void 0 : _window$globalConfigs2.call(_window$globalConfigs, "DIGIT_FOOTER_BW"),
1952
+ style: {
1953
+ cursor: "pointer"
1954
+ },
1955
+ onClick: function onClick() {
1956
+ var _window2, _window2$globalConfig, _window2$globalConfig2;
1957
+
1958
+ window.open((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$globalConfig = _window2.globalConfigs) === null || _window2$globalConfig === void 0 ? void 0 : (_window2$globalConfig2 = _window2$globalConfig.getConfig) === null || _window2$globalConfig2 === void 0 ? void 0 : _window2$globalConfig2.call(_window2$globalConfig, "DIGIT_HOME_URL"), "_blank").focus();
1959
+ }
1960
+ }), " "));
1839
1961
  };
1840
1962
 
1841
1963
  Login$1.propTypes = {
@@ -1865,18 +1987,18 @@ var EmployeeLogin = function EmployeeLogin() {
1865
1987
  });
1866
1988
  }, [loginConfig]);
1867
1989
  });
1868
- return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(Route, {
1990
+ return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
1869
1991
  path: "" + path,
1870
1992
  exact: true
1871
1993
  }, /*#__PURE__*/React.createElement(Login$1, {
1872
1994
  config: loginParams[0],
1873
1995
  t: t
1874
- }))));
1996
+ })));
1875
1997
  };
1876
1998
 
1877
1999
  var config = [{
1878
2000
  texts: {
1879
- header: "CORE_COMMON_FORGOT_PASSWORD_LABEL",
2001
+ header: "CORE_COMMON_RESET_PASSWORD_LABEL",
1880
2002
  submitButtonLabel: "CORE_COMMON_CHANGE_PASSWORD"
1881
2003
  },
1882
2004
  inputs: [{
@@ -1898,6 +2020,8 @@ var config = [{
1898
2020
  }];
1899
2021
 
1900
2022
  var ChangePasswordComponent = function ChangePasswordComponent(_ref) {
2023
+ var _window, _window$globalConfigs, _window$globalConfigs2;
2024
+
1901
2025
  var propsConfig = _ref.config,
1902
2026
  t = _ref.t;
1903
2027
 
@@ -1910,15 +2034,26 @@ var ChangePasswordComponent = function ChangePasswordComponent(_ref) {
1910
2034
 
1911
2035
  var history = useHistory();
1912
2036
 
2037
+ var _useState2 = useState(""),
2038
+ otp = _useState2[0],
2039
+ setOtp = _useState2[1];
2040
+
2041
+ var _useState3 = useState(true),
2042
+ isOtpValid = _useState3[0];
2043
+
2044
+ var _useState4 = useState(null),
2045
+ showToast = _useState4[0],
2046
+ setShowToast = _useState4[1];
2047
+
1913
2048
  var getUserType = function getUserType() {
1914
2049
  return Digit.UserService.getType();
1915
2050
  };
1916
2051
 
1917
- var otpReference = "";
1918
2052
  useEffect(function () {
1919
2053
  var _location$state;
1920
2054
 
1921
2055
  if (!user) {
2056
+ Digit.UserService.setType("employee");
1922
2057
  return;
1923
2058
  }
1924
2059
 
@@ -1927,8 +2062,16 @@ var ChangePasswordComponent = function ChangePasswordComponent(_ref) {
1927
2062
  history.replace(redirectPath);
1928
2063
  }, [user]);
1929
2064
 
2065
+ var closeToast = function closeToast() {
2066
+ setShowToast(null);
2067
+ };
2068
+
1930
2069
  var onResendOTP = function onResendOTP() {
1931
2070
  try {
2071
+ var _temp3 = function _temp3() {
2072
+ setTimeout(closeToast, 5000);
2073
+ };
2074
+
1932
2075
  var requestData = {
1933
2076
  otp: {
1934
2077
  mobileNumber: mobileNumber,
@@ -1938,17 +2081,17 @@ var ChangePasswordComponent = function ChangePasswordComponent(_ref) {
1938
2081
  }
1939
2082
  };
1940
2083
 
1941
- var _temp2 = _catch(function () {
2084
+ var _temp4 = _catch(function () {
1942
2085
  return Promise.resolve(Digit.UserService.sendOtp(requestData, tenantId)).then(function () {
1943
- alert("OTP resend successfull");
2086
+ setShowToast(t("ES_OTP_RESEND"));
1944
2087
  });
1945
2088
  }, function (err) {
1946
2089
  var _err$response, _err$response$data;
1947
2090
 
1948
- alert((err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.error_description) || "Invalid login credentials!");
2091
+ setShowToast((err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.error_description) || t("ES_INVALID_LOGIN_CREDENTIALS"));
1949
2092
  });
1950
2093
 
1951
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
2094
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
1952
2095
  } catch (e) {
1953
2096
  return Promise.reject(e);
1954
2097
  }
@@ -1958,11 +2101,11 @@ var ChangePasswordComponent = function ChangePasswordComponent(_ref) {
1958
2101
  try {
1959
2102
  return Promise.resolve(_catch(function () {
1960
2103
  if (data.newPassword !== data.confirmPassword) {
1961
- return alert(t("ERR_PASSWORD_DO_NOT_MATCH"));
2104
+ return setShowToast(t("ERR_PASSWORD_DO_NOT_MATCH"));
1962
2105
  }
1963
2106
 
1964
2107
  var requestData = _extends({}, data, {
1965
- otpReference: otpReference,
2108
+ otpReference: otp,
1966
2109
  tenantId: tenantId,
1967
2110
  type: getUserType().toUpperCase()
1968
2111
  });
@@ -1971,21 +2114,18 @@ var ChangePasswordComponent = function ChangePasswordComponent(_ref) {
1971
2114
  navigateToLogin();
1972
2115
  });
1973
2116
  }, function (err) {
1974
- var _err$response2, _err$response2$data, _err$response2$data$E;
2117
+ var _err$response2, _err$response2$data, _err$response2$data$e, _err$response2$data$e2, _err$response2$data$e3;
1975
2118
 
1976
- alert((err === null || err === void 0 ? void 0 : (_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : (_err$response2$data$E = _err$response2$data.Errors[0]) === null || _err$response2$data$E === void 0 ? void 0 : _err$response2$data$E.message) || "Something went wrong!");
2119
+ setShowToast((err === null || err === void 0 ? void 0 : (_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : (_err$response2$data$e = _err$response2$data.error) === null || _err$response2$data$e === void 0 ? void 0 : (_err$response2$data$e2 = _err$response2$data$e.fields) === null || _err$response2$data$e2 === void 0 ? void 0 : (_err$response2$data$e3 = _err$response2$data$e2[0]) === null || _err$response2$data$e3 === void 0 ? void 0 : _err$response2$data$e3.message) || t("ES_SOMETHING_WRONG"));
2120
+ setTimeout(closeToast, 5000);
1977
2121
  }));
1978
2122
  } catch (e) {
1979
2123
  return Promise.reject(e);
1980
2124
  }
1981
2125
  };
1982
2126
 
1983
- var updateOtp = function updateOtp(data) {
1984
- otpReference = data.target.value || "";
1985
- };
1986
-
1987
2127
  var navigateToLogin = function navigateToLogin() {
1988
- history.replace("/digit-ui/employee/login");
2128
+ history.replace("/digit-ui/employee/user/login");
1989
2129
  };
1990
2130
 
1991
2131
  var _propsConfig$inputs = propsConfig.inputs,
@@ -2016,7 +2156,14 @@ var ChangePasswordComponent = function ChangePasswordComponent(_ref) {
2016
2156
  isMandatory: true
2017
2157
  }]
2018
2158
  }];
2019
- return /*#__PURE__*/React.createElement(FormComposer, {
2159
+ return /*#__PURE__*/React.createElement(Background, null, /*#__PURE__*/React.createElement("div", {
2160
+ className: "employeeBackbuttonAlign"
2161
+ }, /*#__PURE__*/React.createElement(BackButton, {
2162
+ variant: "white",
2163
+ style: {
2164
+ borderBottom: "none"
2165
+ }
2166
+ })), /*#__PURE__*/React.createElement(FormComposer, {
2020
2167
  onSubmit: onChangePassword,
2021
2168
  noBoxShadow: true,
2022
2169
  inline: true,
@@ -2024,44 +2171,39 @@ var ChangePasswordComponent = function ChangePasswordComponent(_ref) {
2024
2171
  config: config,
2025
2172
  label: propsConfig.texts.submitButtonLabel,
2026
2173
  cardStyle: {
2027
- maxWidth: "400px",
2174
+ maxWidth: "408px",
2028
2175
  margin: "auto"
2029
- }
2030
- }, /*#__PURE__*/React.createElement(CardSubHeader, {
2176
+ },
2177
+ className: "employeeChangePassword"
2178
+ }, /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(CardSubHeader, {
2031
2179
  style: {
2032
2180
  textAlign: "center"
2033
2181
  }
2034
- }, " ", propsConfig.texts.header, " "), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, {
2035
- style: {
2036
- marginBottom: "8px"
2037
- }
2038
- }, t("CORE_OTP_SENT_MESSAGE")), /*#__PURE__*/React.createElement(CardLabelDesc, {
2039
- style: {
2040
- marginBottom: "0px"
2041
- }
2042
- }, " ", mobileNumber, " "), /*#__PURE__*/React.createElement(CardLabelDesc, {
2043
- style: {
2044
- marginBottom: "8px"
2045
- }
2046
- }, " ", t("CORE_EMPLOYEE_OTP_CHECK_MESSAGE"))), /*#__PURE__*/React.createElement(CardLabel, {
2047
- style: {
2048
- marginBottom: "8px"
2049
- }
2050
- }, t("CORE_OTP_OTP"), " *"), /*#__PURE__*/React.createElement(TextInput, {
2051
- className: "field",
2052
- name: otpReference,
2053
- isRequired: true,
2054
- onChange: updateOtp,
2055
- type: "text",
2182
+ }, " ", propsConfig.texts.header, " "), /*#__PURE__*/React.createElement(CardText, null, t("CS_LOGIN_OTP_TEXT") + " ", /*#__PURE__*/React.createElement("b", null, " ", "" + t("+ 91 - "), " ", mobileNumber)), /*#__PURE__*/React.createElement(SelectOtp, {
2183
+ t: t,
2184
+ userType: "employee",
2185
+ otp: otp,
2186
+ onOtpChange: setOtp,
2187
+ error: isOtpValid,
2188
+ onResend: onResendOTP
2189
+ })), showToast && /*#__PURE__*/React.createElement(Toast, {
2190
+ error: true,
2191
+ label: t(showToast),
2192
+ onClose: closeToast
2193
+ }), /*#__PURE__*/React.createElement("div", {
2194
+ className: "EmployeeLoginFooter"
2195
+ }, /*#__PURE__*/React.createElement("img", {
2196
+ alt: "Powered by DIGIT",
2197
+ src: (_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : (_window$globalConfigs2 = _window$globalConfigs.getConfig) === null || _window$globalConfigs2 === void 0 ? void 0 : _window$globalConfigs2.call(_window$globalConfigs, "DIGIT_FOOTER_BW"),
2056
2198
  style: {
2057
- marginBottom: "10px"
2199
+ cursor: "pointer"
2200
+ },
2201
+ onClick: function onClick() {
2202
+ var _window2, _window2$globalConfig, _window2$globalConfig2;
2203
+
2204
+ window.open((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$globalConfig = _window2.globalConfigs) === null || _window2$globalConfig === void 0 ? void 0 : (_window2$globalConfig2 = _window2$globalConfig.getConfig) === null || _window2$globalConfig2 === void 0 ? void 0 : _window2$globalConfig2.call(_window2$globalConfig, "DIGIT_HOME_URL"), "_blank").focus();
2058
2205
  }
2059
- }), /*#__PURE__*/React.createElement("div", {
2060
- className: "flex-right"
2061
- }, /*#__PURE__*/React.createElement("div", {
2062
- className: "primary-label-btn",
2063
- onClick: onResendOTP
2064
- }, t("CORE_OTP_RESEND"))));
2206
+ }), " "));
2065
2207
  };
2066
2208
 
2067
2209
  ChangePasswordComponent.propTypes = {
@@ -2091,20 +2233,20 @@ var EmployeeChangePassword = function EmployeeChangePassword() {
2091
2233
  });
2092
2234
  }, [config]);
2093
2235
  });
2094
- return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(Route, {
2236
+ return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
2095
2237
  path: "" + path,
2096
2238
  exact: true
2097
2239
  }, /*#__PURE__*/React.createElement(ChangePasswordComponent, {
2098
2240
  config: params[0],
2099
2241
  t: t
2100
- }))));
2242
+ })));
2101
2243
  };
2102
2244
 
2103
2245
  var loginConfig$1 = [{
2104
2246
  texts: {
2105
- header: "CS_FORGOT_PASSWORD",
2106
- submitButtonLabel: "CS_CONTINUE",
2107
- secondaryButtonLabel: "CS_BACK_TO_LOGIN"
2247
+ header: "CORE_COMMON_FORGOT_PASSWORD_LABEL",
2248
+ description: "ES_FORGOT_PASSWORD_DESC",
2249
+ submitButtonLabel: "CORE_COMMON_CONTINUE"
2108
2250
  },
2109
2251
  inputs: [{
2110
2252
  label: "CORE_COMMON_MOBILE_NUMBER",
@@ -2120,15 +2262,24 @@ var loginConfig$1 = [{
2120
2262
  }];
2121
2263
 
2122
2264
  var ForgotPassword = function ForgotPassword(_ref) {
2265
+ var _window, _window$globalConfigs, _window$globalConfigs2;
2266
+
2123
2267
  var propsConfig = _ref.config,
2124
2268
  t = _ref.t;
2125
- var cities = Digit.Hooks.fsm.useTenants();
2269
+
2270
+ var _Digit$Hooks$useTenan = Digit.Hooks.useTenants(),
2271
+ cities = _Digit$Hooks$useTenan.data,
2272
+ isLoading = _Digit$Hooks$useTenan.isLoading;
2126
2273
 
2127
2274
  var _useState = useState(null),
2128
2275
  user = _useState[0];
2129
2276
 
2130
2277
  var history = useHistory();
2131
2278
 
2279
+ var _useState2 = useState(null),
2280
+ showToast = _useState2[0],
2281
+ setShowToast = _useState2[1];
2282
+
2132
2283
  var getUserType = function getUserType() {
2133
2284
  return Digit.UserService.getType();
2134
2285
  };
@@ -2137,6 +2288,7 @@ var ForgotPassword = function ForgotPassword(_ref) {
2137
2288
  var _location$state;
2138
2289
 
2139
2290
  if (!user) {
2291
+ Digit.UserService.setType("employee");
2140
2292
  return;
2141
2293
  }
2142
2294
 
@@ -2145,6 +2297,10 @@ var ForgotPassword = function ForgotPassword(_ref) {
2145
2297
  history.replace(redirectPath);
2146
2298
  }, [user]);
2147
2299
 
2300
+ var closeToast = function closeToast() {
2301
+ setShowToast(null);
2302
+ };
2303
+
2148
2304
  var onForgotPassword = function onForgotPassword(data) {
2149
2305
  try {
2150
2306
  if (!data.city) {
@@ -2153,21 +2309,23 @@ var ForgotPassword = function ForgotPassword(_ref) {
2153
2309
  }
2154
2310
 
2155
2311
  var requestData = {
2156
- otp: _extends({}, data, {
2312
+ otp: {
2313
+ mobileNumber: data.mobileNumber,
2157
2314
  userType: getUserType().toUpperCase(),
2158
2315
  type: "passwordreset",
2159
2316
  tenantId: data.city.code
2160
- })
2317
+ }
2161
2318
  };
2162
2319
 
2163
2320
  var _temp2 = _catch(function () {
2164
2321
  return Promise.resolve(Digit.UserService.sendOtp(requestData, data.city.code)).then(function () {
2165
- history.push("/digit-ui/employee/change-password?mobile_number=" + data.mobileNumber + "&tenantId=" + data.city.code);
2322
+ history.push("/digit-ui/employee/user/change-password?mobile_number=" + data.mobileNumber + "&tenantId=" + data.city.code);
2166
2323
  });
2167
2324
  }, function (err) {
2168
- var _err$response, _err$response$data;
2325
+ var _err$response, _err$response$data, _err$response$data$er, _err$response$data$er2, _err$response$data$er3;
2169
2326
 
2170
- alert((err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.error_description) || "Invalid login credentials!");
2327
+ setShowToast((err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$er = _err$response$data.error) === null || _err$response$data$er === void 0 ? void 0 : (_err$response$data$er2 = _err$response$data$er.fields) === null || _err$response$data$er2 === void 0 ? void 0 : (_err$response$data$er3 = _err$response$data$er2[0]) === null || _err$response$data$er3 === void 0 ? void 0 : _err$response$data$er3.message) || "Invalid login credentials!");
2328
+ setTimeout(closeToast, 5000);
2171
2329
  });
2172
2330
 
2173
2331
  return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
@@ -2188,7 +2346,8 @@ var ForgotPassword = function ForgotPassword(_ref) {
2188
2346
  label: t(userId.label),
2189
2347
  type: userId.type,
2190
2348
  populators: {
2191
- name: userId.name
2349
+ name: userId.name,
2350
+ componentInFront: "+91"
2192
2351
  },
2193
2352
  isMandatory: true
2194
2353
  }, {
@@ -2202,6 +2361,7 @@ var ForgotPassword = function ForgotPassword(_ref) {
2202
2361
  option: cities,
2203
2362
  optionKey: "name",
2204
2363
  id: city.name,
2364
+ className: "login-city-dd",
2205
2365
  select: function select(d) {
2206
2366
  props.onChange(d);
2207
2367
  }
@@ -2211,7 +2371,19 @@ var ForgotPassword = function ForgotPassword(_ref) {
2211
2371
  isMandatory: true
2212
2372
  }]
2213
2373
  }];
2214
- return /*#__PURE__*/React.createElement(FormComposer, {
2374
+
2375
+ if (isLoading) {
2376
+ return /*#__PURE__*/React.createElement(Loader, null);
2377
+ }
2378
+
2379
+ return /*#__PURE__*/React.createElement(Background, null, /*#__PURE__*/React.createElement("div", {
2380
+ className: "employeeBackbuttonAlign"
2381
+ }, /*#__PURE__*/React.createElement(BackButton, {
2382
+ variant: "white",
2383
+ style: {
2384
+ borderBottom: "none"
2385
+ }
2386
+ })), /*#__PURE__*/React.createElement(FormComposer, {
2215
2387
  onSubmit: onForgotPassword,
2216
2388
  noBoxShadow: true,
2217
2389
  inline: true,
@@ -2221,14 +2393,33 @@ var ForgotPassword = function ForgotPassword(_ref) {
2221
2393
  secondaryActionLabel: propsConfig.texts.secondaryButtonLabel,
2222
2394
  onSecondayActionClick: navigateToLogin,
2223
2395
  heading: propsConfig.texts.header,
2396
+ description: propsConfig.texts.description,
2224
2397
  headingStyle: {
2225
2398
  textAlign: "center"
2226
2399
  },
2227
2400
  cardStyle: {
2228
- maxWidth: "400px",
2401
+ maxWidth: "408px",
2229
2402
  margin: "auto"
2403
+ },
2404
+ className: "employeeForgotPassword"
2405
+ }, /*#__PURE__*/React.createElement(Header, null)), showToast && /*#__PURE__*/React.createElement(Toast, {
2406
+ error: true,
2407
+ label: t(showToast),
2408
+ onClose: closeToast
2409
+ }), /*#__PURE__*/React.createElement("div", {
2410
+ className: "EmployeeLoginFooter"
2411
+ }, /*#__PURE__*/React.createElement("img", {
2412
+ alt: "Powered by DIGIT",
2413
+ src: (_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : (_window$globalConfigs2 = _window$globalConfigs.getConfig) === null || _window$globalConfigs2 === void 0 ? void 0 : _window$globalConfigs2.call(_window$globalConfigs, "DIGIT_FOOTER_BW"),
2414
+ style: {
2415
+ cursor: "pointer"
2416
+ },
2417
+ onClick: function onClick() {
2418
+ var _window2, _window2$globalConfig, _window2$globalConfig2;
2419
+
2420
+ window.open((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$globalConfig = _window2.globalConfigs) === null || _window2$globalConfig === void 0 ? void 0 : (_window2$globalConfig2 = _window2$globalConfig.getConfig) === null || _window2$globalConfig2 === void 0 ? void 0 : _window2$globalConfig2.call(_window2$globalConfig, "DIGIT_HOME_URL"), "_blank").focus();
2230
2421
  }
2231
- });
2422
+ }), " "));
2232
2423
  };
2233
2424
 
2234
2425
  ForgotPassword.propTypes = {
@@ -2258,18 +2449,99 @@ var EmployeeForgotPassword = function EmployeeForgotPassword() {
2258
2449
  });
2259
2450
  }, [loginConfig$1]);
2260
2451
  });
2261
- return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(Route, {
2452
+ return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
2262
2453
  path: "" + path,
2263
2454
  exact: true
2264
2455
  }, /*#__PURE__*/React.createElement(ForgotPassword, {
2265
2456
  config: params[0],
2266
2457
  t: t
2267
- }))));
2458
+ })));
2459
+ };
2460
+
2461
+ var LanguageSelection = function LanguageSelection() {
2462
+ var _window, _window$globalConfigs, _window$globalConfigs2;
2463
+
2464
+ var _Digit$Hooks$useStore = Digit.Hooks.useStore.getInitData(),
2465
+ storeData = _Digit$Hooks$useStore.data,
2466
+ isLoading = _Digit$Hooks$useStore.isLoading;
2467
+
2468
+ var _useTranslation = useTranslation(),
2469
+ t = _useTranslation.t;
2470
+
2471
+ var history = useHistory();
2472
+
2473
+ var _ref = storeData || {},
2474
+ languages = _ref.languages,
2475
+ stateInfo = _ref.stateInfo;
2476
+
2477
+ var selectedLanguage = Digit.StoreData.getCurrentLanguage();
2478
+
2479
+ var _useState = useState(selectedLanguage),
2480
+ selected = _useState[0],
2481
+ setselected = _useState[1];
2482
+
2483
+ var handleChangeLanguage = function handleChangeLanguage(language) {
2484
+ setselected(language.value);
2485
+ Digit.LocalizationService.changeLanguage(language.value, stateInfo.code);
2486
+ };
2487
+
2488
+ var handleSubmit = function handleSubmit(event) {
2489
+ history.push("/digit-ui/employee/user/login");
2490
+ };
2491
+
2492
+ if (isLoading) return null;
2493
+ return /*#__PURE__*/React.createElement(Background, null, /*#__PURE__*/React.createElement(Card, {
2494
+ className: "bannerCard removeBottomMargin"
2495
+ }, /*#__PURE__*/React.createElement("div", {
2496
+ className: "bannerHeader"
2497
+ }, /*#__PURE__*/React.createElement("img", {
2498
+ className: "bannerLogo",
2499
+ src: stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.logoUrl,
2500
+ alt: "Digit"
2501
+ }), /*#__PURE__*/React.createElement("p", null, t("TENANT_TENANTS_" + (stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.code.toUpperCase())))), /*#__PURE__*/React.createElement("div", {
2502
+ className: "language-selector",
2503
+ style: {
2504
+ justifyContent: "space-between",
2505
+ marginBottom: "24px"
2506
+ }
2507
+ }, languages.map(function (language, index) {
2508
+ return /*#__PURE__*/React.createElement("div", {
2509
+ className: "language-button-container",
2510
+ key: index
2511
+ }, /*#__PURE__*/React.createElement(CustomButton, {
2512
+ selected: language.value === selected,
2513
+ text: language.label,
2514
+ onClick: function onClick() {
2515
+ return handleChangeLanguage(language);
2516
+ }
2517
+ }));
2518
+ })), /*#__PURE__*/React.createElement(SubmitBar, {
2519
+ style: {
2520
+ width: "100%"
2521
+ },
2522
+ label: t("CORE_COMMON_CONTINUE"),
2523
+ onSubmit: handleSubmit
2524
+ })), /*#__PURE__*/React.createElement("div", {
2525
+ className: "EmployeeLoginFooter"
2526
+ }, /*#__PURE__*/React.createElement("img", {
2527
+ alt: "Powered by DIGIT",
2528
+ src: (_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : (_window$globalConfigs2 = _window$globalConfigs.getConfig) === null || _window$globalConfigs2 === void 0 ? void 0 : _window$globalConfigs2.call(_window$globalConfigs, "DIGIT_FOOTER_BW"),
2529
+ style: {
2530
+ cursor: "pointer"
2531
+ },
2532
+ onClick: function onClick() {
2533
+ var _window2, _window2$globalConfig, _window2$globalConfig2;
2534
+
2535
+ window.open((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$globalConfig = _window2.globalConfigs) === null || _window2$globalConfig === void 0 ? void 0 : (_window2$globalConfig2 = _window2$globalConfig.getConfig) === null || _window2$globalConfig2 === void 0 ? void 0 : _window2$globalConfig2.call(_window2$globalConfig, "DIGIT_HOME_URL"), "_blank").focus();
2536
+ }
2537
+ }), " "));
2268
2538
  };
2269
2539
 
2270
2540
  var getTenants = function getTenants(codes, tenants) {
2271
2541
  return tenants.filter(function (tenant) {
2272
- return codes.map(function (item) {
2542
+ var _codes$map;
2543
+
2544
+ return codes === null || codes === void 0 ? void 0 : (_codes$map = codes.map) === null || _codes$map === void 0 ? void 0 : _codes$map.call(codes, function (item) {
2273
2545
  return item.code;
2274
2546
  }).includes(tenant.code);
2275
2547
  });
@@ -2285,11 +2557,25 @@ var AppModules = function AppModules(_ref) {
2285
2557
  var _useRouteMatch = useRouteMatch(),
2286
2558
  path = _useRouteMatch.path;
2287
2559
 
2560
+ var location = useLocation();
2561
+ var user = Digit.UserService.getUser();
2562
+
2563
+ if (!user) {
2564
+ return /*#__PURE__*/React.createElement(Redirect, {
2565
+ to: {
2566
+ pathname: "/digit-ui/employee/user/login",
2567
+ state: {
2568
+ from: location.pathname + location.search
2569
+ }
2570
+ }
2571
+ });
2572
+ }
2573
+
2288
2574
  var appRoutes = modules.map(function (_ref2, index) {
2289
2575
  var code = _ref2.code,
2290
2576
  tenants = _ref2.tenants;
2291
2577
  var Module = Digit.ComponentRegistryService.getComponent(code + "Module");
2292
- return /*#__PURE__*/React.createElement(Route, {
2578
+ return Module ? /*#__PURE__*/React.createElement(Route, {
2293
2579
  key: index,
2294
2580
  path: path + "/" + code.toLowerCase()
2295
2581
  }, /*#__PURE__*/React.createElement(Module, {
@@ -2297,25 +2583,27 @@ var AppModules = function AppModules(_ref) {
2297
2583
  moduleCode: code,
2298
2584
  userType: userType,
2299
2585
  tenants: getTenants(tenants, appTenants)
2300
- }));
2586
+ })) : null;
2301
2587
  });
2302
- return /*#__PURE__*/React.createElement(Switch, null, appRoutes, /*#__PURE__*/React.createElement(Route, {
2588
+ return /*#__PURE__*/React.createElement("div", {
2589
+ className: "ground-container"
2590
+ }, /*#__PURE__*/React.createElement(Switch, null, appRoutes, /*#__PURE__*/React.createElement(Route, {
2303
2591
  path: path + "/login"
2304
- }, userType === "citizen" ? /*#__PURE__*/React.createElement(Login, {
2305
- stateCode: stateCode
2306
- }) : /*#__PURE__*/React.createElement(EmployeeLogin, null)), /*#__PURE__*/React.createElement(Route, {
2592
+ }, " ", /*#__PURE__*/React.createElement(Redirect, {
2593
+ to: {
2594
+ pathname: "/digit-ui/employee/user/login",
2595
+ state: {
2596
+ from: location.pathname + location.search
2597
+ }
2598
+ }
2599
+ })), /*#__PURE__*/React.createElement(Route, {
2307
2600
  path: path + "/forgot-password"
2308
- }, userType === "citizen" ? null : /*#__PURE__*/React.createElement(EmployeeForgotPassword, null)), /*#__PURE__*/React.createElement(Route, {
2601
+ }, /*#__PURE__*/React.createElement(EmployeeForgotPassword, null)), /*#__PURE__*/React.createElement(Route, {
2309
2602
  path: path + "/change-password"
2310
- }, userType === "citizen" ? null : /*#__PURE__*/React.createElement(EmployeeChangePassword, null)), userType === "citizen" && /*#__PURE__*/React.createElement(Route, {
2311
- path: path + "/register"
2312
- }, /*#__PURE__*/React.createElement(Login, {
2313
- stateCode: stateCode,
2314
- isUserRegistered: false
2315
- })), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(AppHome, {
2603
+ }, " ", /*#__PURE__*/React.createElement(EmployeeChangePassword, null)), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(AppHome, {
2316
2604
  userType: userType,
2317
2605
  modules: modules
2318
- })));
2606
+ }))));
2319
2607
  };
2320
2608
 
2321
2609
  var ChangeLanguage = function ChangeLanguage(prop) {
@@ -2388,7 +2676,7 @@ var TextToImg = function TextToImg(props) {
2388
2676
  };
2389
2677
 
2390
2678
  var TopBar = function TopBar(_ref) {
2391
- var _cityDetails$city, _userDetails$info, _userDetails$info2, _userDetails$info2$us;
2679
+ var _Digit$SessionStorage, _cityDetails$city, _cityDetails$city2, _stateInfo$code, _userDetails$info, _userDetails$info2, _userDetails$info2$us;
2392
2680
 
2393
2681
  var t = _ref.t,
2394
2682
  stateInfo = _ref.stateInfo,
@@ -2400,7 +2688,38 @@ var TopBar = function TopBar(_ref) {
2400
2688
  mobileView = _ref.mobileView,
2401
2689
  userOptions = _ref.userOptions,
2402
2690
  handleUserDropdownSelection = _ref.handleUserDropdownSelection,
2403
- logoUrl = _ref.logoUrl;
2691
+ logoUrl = _ref.logoUrl,
2692
+ _ref$showLanguageChan = _ref.showLanguageChange,
2693
+ showLanguageChange = _ref$showLanguageChan === void 0 ? true : _ref$showLanguageChan;
2694
+ var CitizenHomePageTenantId = (_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code;
2695
+ var history = useHistory();
2696
+
2697
+ var _useLocation = useLocation(),
2698
+ pathname = _useLocation.pathname;
2699
+
2700
+ var conditionsToDisableNotificationCountTrigger = function conditionsToDisableNotificationCountTrigger() {
2701
+ var _Digit$UserService, _Digit$UserService$ge, _Digit$UserService$ge2, _Digit$UserService2, _Digit$UserService2$g, _Digit$UserService2$g2;
2702
+
2703
+ if (((_Digit$UserService = Digit.UserService) === null || _Digit$UserService === void 0 ? void 0 : (_Digit$UserService$ge = _Digit$UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.type) === "EMPLOYEE") return false;
2704
+
2705
+ 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) === "CITIZEN") {
2706
+ if (!CitizenHomePageTenantId) return false;else return true;
2707
+ }
2708
+
2709
+ return false;
2710
+ };
2711
+
2712
+ var _Digit$Hooks$useNotif = Digit.Hooks.useNotificationCount({
2713
+ tenantId: CitizenHomePageTenantId,
2714
+ config: {
2715
+ enabled: conditionsToDisableNotificationCountTrigger()
2716
+ }
2717
+ }),
2718
+ _Digit$Hooks$useNotif2 = _Digit$Hooks$useNotif.data;
2719
+
2720
+ _Digit$Hooks$useNotif2 = _Digit$Hooks$useNotif2 === void 0 ? {} : _Digit$Hooks$useNotif2;
2721
+ var unreadNotificationCount = _Digit$Hooks$useNotif2.unreadCount,
2722
+ notificationCountLoaded = _Digit$Hooks$useNotif.isSuccess;
2404
2723
 
2405
2724
  var updateSidebar = function updateSidebar() {
2406
2725
  if (!Digit.clikOusideFired) {
@@ -2410,6 +2729,16 @@ var TopBar = function TopBar(_ref) {
2410
2729
  }
2411
2730
  };
2412
2731
 
2732
+ function onNotificationIconClick() {
2733
+ history.push("/digit-ui/citizen/engagement/notifications");
2734
+ }
2735
+
2736
+ var urlsToDisableNotificationIcon = function urlsToDisableNotificationIcon(pathname) {
2737
+ var _Digit$UserService3, _Digit$UserService3$g;
2738
+
2739
+ return !!((_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) ? false : ["/digit-ui/citizen/select-language", "/digit-ui/citizen/select-location"].includes(pathname);
2740
+ };
2741
+
2413
2742
  if (CITIZEN) {
2414
2743
  return /*#__PURE__*/React.createElement(TopBar$1, {
2415
2744
  img: stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.logoUrlWhite,
@@ -2417,10 +2746,16 @@ var TopBar = function TopBar(_ref) {
2417
2746
  toggleSidebar: updateSidebar,
2418
2747
  logoUrl: stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.logoUrlWhite,
2419
2748
  onLogout: handleLogout,
2420
- userDetails: userDetails
2749
+ userDetails: userDetails,
2750
+ notificationCount: unreadNotificationCount < 99 ? unreadNotificationCount : 99,
2751
+ notificationCountLoaded: notificationCountLoaded,
2752
+ cityOfCitizenShownBesideLogo: t(CitizenHomePageTenantId),
2753
+ onNotificationIconClick: onNotificationIconClick,
2754
+ hideNotificationIconOnSomeUrlsWhenNotLoggedIn: urlsToDisableNotificationIcon(pathname)
2421
2755
  });
2422
2756
  }
2423
2757
 
2758
+ var loggedin = userDetails !== null && userDetails !== void 0 && userDetails.access_token ? true : false;
2424
2759
  return /*#__PURE__*/React.createElement("div", {
2425
2760
  className: "topbar"
2426
2761
  }, mobileView ? /*#__PURE__*/React.createElement(Hamburger, {
@@ -2428,18 +2763,30 @@ var TopBar = function TopBar(_ref) {
2428
2763
  color: "#9E9E9E"
2429
2764
  }) : null, /*#__PURE__*/React.createElement("img", {
2430
2765
  className: "city",
2431
- src: cityDetails === null || cityDetails === void 0 ? void 0 : cityDetails.logoId
2432
- }), /*#__PURE__*/React.createElement("p", {
2766
+ src: loggedin ? cityDetails === null || cityDetails === void 0 ? void 0 : cityDetails.logoId : stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.statelogo
2767
+ }), loggedin && (cityDetails !== null && cityDetails !== void 0 && (_cityDetails$city = cityDetails.city) !== null && _cityDetails$city !== void 0 && _cityDetails$city.ulbGrade ? /*#__PURE__*/React.createElement("p", {
2768
+ className: "ulb",
2769
+ style: mobileView ? {
2770
+ fontSize: "14px",
2771
+ display: "inline-block"
2772
+ } : {}
2773
+ }, 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.createElement("img", {
2774
+ className: "state",
2775
+ src: logoUrl
2776
+ })), !loggedin && /*#__PURE__*/React.createElement("p", {
2433
2777
  className: "ulb",
2434
2778
  style: mobileView ? {
2435
2779
  fontSize: "14px",
2436
2780
  display: "inline-block"
2437
2781
  } : {}
2438
- }, t(cityDetails === null || cityDetails === void 0 ? void 0 : cityDetails.i18nKey).toUpperCase(), " ", t("ULBGRADE_" + (cityDetails === null || cityDetails === void 0 ? void 0 : (_cityDetails$city = cityDetails.city) === null || _cityDetails$city === void 0 ? void 0 : _cityDetails$city.ulbGrade.toUpperCase().replace(" ", "_").replace(".", "_"))).toUpperCase()), !mobileView && /*#__PURE__*/React.createElement("div", {
2439
- className: mobileView ? "right" : "flex-right right w-80 column-gap-15"
2782
+ }, 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.createElement("div", {
2783
+ className: mobileView ? "right" : "flex-right right w-80 column-gap-15",
2784
+ style: !loggedin ? {
2785
+ width: '80%'
2786
+ } : {}
2440
2787
  }, /*#__PURE__*/React.createElement("div", {
2441
2788
  className: "left"
2442
- }, /*#__PURE__*/React.createElement(ChangeLanguage, {
2789
+ }, showLanguageChange && /*#__PURE__*/React.createElement(ChangeLanguage, {
2443
2790
  dropdown: true
2444
2791
  })), (userDetails === null || userDetails === void 0 ? void 0 : userDetails.access_token) && /*#__PURE__*/React.createElement("div", {
2445
2792
  className: "left"
@@ -2464,9 +2811,10 @@ var TopBar = function TopBar(_ref) {
2464
2811
  })));
2465
2812
  };
2466
2813
 
2467
- var SideBarMenu = function SideBarMenu(t, closeSidebar, isEmployee) {
2814
+ var SideBarMenu = function SideBarMenu(t, closeSidebar, redirectToLoginPage, isEmployee) {
2468
2815
  return [{
2469
2816
  type: "link",
2817
+ element: "HOME",
2470
2818
  text: t("COMMON_BOTTOM_NAVIGATION_HOME"),
2471
2819
  link: isEmployee ? "/digit-ui/employee/" : "/digit-ui/citizen/",
2472
2820
  icon: /*#__PURE__*/React.createElement(HomeIcon, {
@@ -2477,17 +2825,24 @@ var SideBarMenu = function SideBarMenu(t, closeSidebar, isEmployee) {
2477
2825
  }
2478
2826
  }, {
2479
2827
  type: "component",
2828
+ element: "LANGUAGE",
2480
2829
  action: /*#__PURE__*/React.createElement(ChangeLanguage, null),
2481
2830
  icon: /*#__PURE__*/React.createElement(LanguageIcon, {
2482
2831
  className: "icon"
2483
2832
  })
2833
+ }, {
2834
+ id: 'login-btn',
2835
+ element: "LOGIN",
2836
+ text: t("CORE_COMMON_LOGIN"),
2837
+ icon: /*#__PURE__*/React.createElement(LogoutIcon, {
2838
+ className: "icon"
2839
+ }),
2840
+ populators: {
2841
+ onClick: redirectToLoginPage
2842
+ }
2484
2843
  }];
2485
2844
  };
2486
2845
 
2487
- var digitImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAREAAABACAYAAAA9MUNoAAAACXBIWX" + "MAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAB+qSURBVHgB7Z0JfF" + "TV1cDPfe/NZLLMZCMLhJAAsiWIskoAEeoSCCGTiGBF6lLlo59WK2rVWvqJSytVq63aX639Way2oK" + "Q2JIRFpAq4ogYQZUkgLNlIgEC2yWzvvfudO5lBIAl5b+bNos7/95vMZObOm/vuu/fcc8859zyAMG" + "HChAkTJkyYMGHChAkTJkyYMGHChAkTJkyYMGHChAnzHYEoLXj64fhYfXz0IEp4McYaXU2W73OAl7" + "Q+PzCBSPwIIkoRfZWVOWoTO637Eh8/3QYBZP78+TFOp/MaSYI48AKO4zqwedslSW4TBHq8tra2vq" + "KiwgkhBDtHu12cRilNxX+brNaOT7Zs2dIKYRQzZ07heJ4nowkhbRxHD5SUlOwHDZg9e7aJ4yKGEQ" + "JGCAKESCcbGhqqlPTZPoWIZUXGHODhV0BpDhbnut6lVkJJqSTRJ42P1uwDhbQ/k3kVD/QxCvSqb4" + "+lAEI7sKIbJScsV/N7XkLM5qLfYR0fxJcCaIcd262KEO4oBficUOkzm82289133z0NAQaFB293So" + "/iNX0I/40556NO7D3P19ceeyLUBF6okV9YeB1H4RXsI4PPeVukQMp5Ii9du3btUfCCGTNmCKa4hD" + "/jtbkT/1U+RvwATi6nOEIeKi0tWXmxcr0KkTXzgZ8zcdDLWORn0Dt2ytHFMQ/WvAl9YPn9oOXYQf" + "8PVGg/3aHNssz93PjI0bfATxSYi9bg03wIAJSCDUXpDlmGt0SObtrkZcdTCcFzXIXPP+6tAM6sZS" + "+/885NaYR0QoDJycmJ7NcvNYfjYKIMNJsAN5RpSjgjJ5xTjLK+gKfShML+MMiwE0DaZTAYKoqLiz" + "vAz+SbzQs54P7V2+fYwY+OHDk8f8WKF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VyWuTOvvfZaVSC25/fGPffMjhDF+CieN0TabFwEjgGB4yI5WbbxlO" + "pkFBIy1o9pM0527wzW5qjBdL7++ut+yPR2Prm5uf1RQJlxiTiWxVPrdPw3RmPk2UhqQeDtNpu0Px" + "B1YbBbZtjt4mxcShWgAdjA3sNJq92gFz7G63rAU47j9A04SWk2MYSMEMHOoGtoaJiDHWDSUUttzK" + "62fSkN9hOxVJLpYDKwMYtkNlosVifHOd+YNcsckPyqeFH02EnYDbri0MLuUxYXnqcyxzHbgt7Gbp" + "UZFRVlMxqNbS+88EJQN1eg0BKqqqrSIiIiEtk5slmKEBG9CtC0evVqdkuQkLy5faiA7cdVVlYmYb" + "sl4yMKJwSC2ocTn0/abLZ693ItoDz44IPRTU1Ng9n+rnPfx4nMjo+6lStX+pSq40JCKG9bFyhIRq" + "E6fyVOKoNE0cHURrQk2xydnbadeFE+yMvLC0pyIqbCgpcEoyN5AxsQ7ufQu2HKd4BQaz82QezYsc" + "PVb9mdFVH78EuEXcgJEQ9oJzFYLJaojo4OcfLkyaGU1SxMmDBhwoQJEyZMmDBhwoQJEyZMmDA/cP" + "4ffyGJt9D+/HMAAAAASUVORK5CYII=";
2488
-
2489
- var powered = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAR4AAAA2CAYAAAARQfY5AAAACXBIWX" + "MAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABFBSURBVHgB7Z1hct" + "s2FoAfICdNnR+rnqDMCeqcoMoJKu/MzthOG8mzB0hygtonSHqAndDdjpPZzuwqJ4hygnhPEPUG2h" + "+bet2IWLwHWhaJBxKgRUlO8M2kriiRBEHg4b2HhweASCQSiUQikU8dAZFIJIj+/qMUhBgUj2aHo9" + "O/p7Bk+geD9/pPUryVeDB6lY7hBiMhEolEVsxWf//7PojOM2iCgsnCpzOQ2W9wMRuPfj09g0gkEn" + "GwpVXGLpRVOV9E4bweKK1A3ZKoHk60PnjchuoZiURuPm2ZWom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lblm7j5NcYpjdoonF+mT1bh16kiFwQPck3Ep1" + "NMLzct9Nnihb3nfLsabTbU1Rm2KxrITnaprnDN2fqge+Mz62e/5ym0pzQ4Yb+4ptC5gtX6x+DJjc" + "pSQlv2Um6V7MqvoeSU/D1Z2NTgpwxbT4ScAKrDS2t87WBiZbS5wJU/053sXD/DkoUlxUGZe3YL9/" + "sAo3ULZh+cfUOR+TOGJaN9Sm8K8TvoNtCDgO/5N0rwRCKR9ZOHrbwvHMwoxXHqeYnNNrUikcgGwu" + "+LPoaQS0AkEokEUYqCVuFujih4IpGIN/xOtuER0NHHE4lEvGCXJFHCLz27FkjUeCKRSC20LINb8y" + "Wa7QK7cUsmIpHIeukfHOgp+a0+fVCUInYnj4gugvFDv0Oj5UhR8EQikSKZ7ILMt7OpcsbMxNOmMU" + "7R1IpEIg0Qx6N/pM0WOGv+D0SMWAJo82FCAAAAAElFTkSuQmCC";
2490
-
2491
2846
  var defaultImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO4AAADUCAMAAACs0e/bAAAAM1BMVEXK0eL" + "/" + "/" + "/" + "/Dy97GzuD4+fvL0uPg5O7T2efb4OvR1+Xr7vTk5/Df4+37/P3v8fbO1eTt8PUsnq5FAAAGqElEQVR4nO2d25ajIBBFCajgvf/" + "/a0eMyZgEjcI5xgt7Hmatme507UaxuJXidiDqjmSgeVIMlB1ZR1WZAf2gbdu0QwixSYzjOJPmHurfEGEfY9XzjNGG9whQCeVAuv5xQEySLtR9hPuIcwj0EeroN5m3D1IbsbgHK0esiQ9MKs" + "qXVr8Hm/a/Pulk6wihpCIXBw3dh7bTvRBt9+dC5NfS1VH3xETdM3MxXRN1T0zUPTNR98xcS1dlV9NNfx3DhkTdM6PKqHteVBF1z0vU5f0sKdpc2zWLKutXrjJjdLvpesRmukqYonauPhXpds" + "Lb6CppmpnltsYIuY2yavi6Mi2/rzAWm1zUfF0limVLqkZyA+mDYevKBS37aGC+L1lX5e7uyU1Cv565uiua9k5LFq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"2wBfyE9I4tlm7w5hvOPDNJN3yNiLMipji6gE3chKhouoCtN5x3QlF0EZt8OW/8ougitqJQlk1aii7iFC9l0MvRReyao7xNjKML2Z/PuHlzhi5mFxljiZeiC9rPTEisNEMX9KYAwo5Xhi7qaA" + "3hamboYm7dG+NVrXhdaYDv5zFaQZsYrCtbbAGnjkQDX2+J1FXCwOsqWOpKoIQNTFdqYBWydxqNqUoG0pVpCS+H8kaJaGKErlIaXj7CRRE+gRWuKwW9YZ80oVOUgbpdT0zpnSZJTIiwCtJVelv" + "Xntr4P5j6BWfPb5Wcx84C4cq3hb11lco2u2Mdwp6XdJ/Ne3wb8DWdfiRenZaXrhLwOj4e+GQeHroy3YOspS7TlU28Wle2m2QUS0mqdcbrdNW+ZHsSsyK7tBfm0q/dWcv+Z3mytVx3t7KWulq" + "Ue6ilunu8jF8pFwgv1FXp3mUt35OtRbr7eM4u4Gs6vUBXgeuHc5kfE/cbvWZtkROLm1DMtLCy80tzsu2PRj0hTI8fvrQuvsjlJkyutszq+m423wHaLTyniy/XuiGZ84LuT+m5ZfNfRxyGs7L" + "XZOvia7VujatUwVTrIt+Q/Csc7Tuhe+BOakT10b4TuoiiJjvgU9emTO42PwEfBa+cuodKkuf42DXr1D3JpXz73Hnn0j10evHKe+nufgfUm+7B84sX9FfdEzXux2DBpWuKokkCqN/5pa/8pmvn" + "L+RGKCddCGmatiPyPB/+ekO/M/q/7uvbt22kTt3zEnXPzCV13T3Gel4/6NduDu66xRvlPNkM1RjjxUdv+4WhGx6TftD19Q/dfzpwcHO+rE3fAAAAAElFTkSuQmCC";
2492
2847
 
2493
2848
  var Profile = function Profile(_ref) {
@@ -2518,15 +2873,22 @@ var Profile = function Profile(_ref) {
2518
2873
  };
2519
2874
 
2520
2875
  var PoweredBy = function PoweredBy() {
2876
+ var _window, _window$globalConfigs, _window$globalConfigs2;
2877
+
2521
2878
  return /*#__PURE__*/React.createElement("div", {
2522
2879
  className: "digit-footer"
2523
2880
  }, /*#__PURE__*/React.createElement("img", {
2524
- src: powered,
2525
- alt: "Powered by"
2526
- }), /*#__PURE__*/React.createElement("img", {
2527
- src: digitImg,
2528
- alt: "DIGIT"
2529
- }));
2881
+ alt: "Powered by DIGIT",
2882
+ src: (_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : (_window$globalConfigs2 = _window$globalConfigs.getConfig) === null || _window$globalConfigs2 === void 0 ? void 0 : _window$globalConfigs2.call(_window$globalConfigs, "DIGIT_FOOTER"),
2883
+ style: {
2884
+ cursor: "pointer"
2885
+ },
2886
+ onClick: function onClick() {
2887
+ var _window2, _window2$globalConfig, _window2$globalConfig2;
2888
+
2889
+ window.open((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$globalConfig = _window2.globalConfigs) === null || _window2$globalConfig === void 0 ? void 0 : (_window2$globalConfig2 = _window2$globalConfig.getConfig) === null || _window2$globalConfig2 === void 0 ? void 0 : _window2$globalConfig2.call(_window2$globalConfig, "DIGIT_HOME_URL"), "_blank").focus();
2890
+ }
2891
+ }), " ");
2530
2892
  };
2531
2893
 
2532
2894
  var CitizenSideBar = function CitizenSideBar(_ref2) {
@@ -2548,12 +2910,19 @@ var CitizenSideBar = function CitizenSideBar(_ref2) {
2548
2910
  var _useTranslation = useTranslation(),
2549
2911
  t = _useTranslation.t;
2550
2912
 
2913
+ var history = useHistory();
2914
+
2551
2915
  var closeSidebar = function closeSidebar() {
2552
2916
  Digit.clikOusideFired = true;
2553
2917
  toggleSidebar(false);
2554
2918
  };
2555
2919
 
2556
- var menuItems = [].concat(SideBarMenu(t, closeSidebar, isEmployee));
2920
+ var redirectToLoginPage = function redirectToLoginPage() {
2921
+ history.push("/digit-ui/citizen/login");
2922
+ closeSidebar();
2923
+ };
2924
+
2925
+ var menuItems = [].concat(SideBarMenu(t, closeSidebar, redirectToLoginPage, isEmployee));
2557
2926
  var profileItem;
2558
2927
 
2559
2928
  if (isFetched && user && user.access_token) {
@@ -2561,8 +2930,12 @@ var CitizenSideBar = function CitizenSideBar(_ref2) {
2561
2930
  info: user.info,
2562
2931
  stateName: stateInfo.name
2563
2932
  });
2933
+ menuItems = menuItems.filter(function (item) {
2934
+ return (item === null || item === void 0 ? void 0 : item.id) !== "login-btn";
2935
+ });
2564
2936
  menuItems = [].concat(menuItems, [{
2565
2937
  text: t("CORE_COMMON_LOGOUT"),
2938
+ element: "LOGOUT",
2566
2939
  icon: /*#__PURE__*/React.createElement(LogoutIcon, {
2567
2940
  className: "icon"
2568
2941
  }),
@@ -2572,6 +2945,13 @@ var CitizenSideBar = function CitizenSideBar(_ref2) {
2572
2945
  }]);
2573
2946
  }
2574
2947
 
2948
+ if (history.location.pathname.includes("/openlink")) {
2949
+ profileItem = /*#__PURE__*/React.createElement("span", null);
2950
+ menuItems = menuItems.filter(function (ele) {
2951
+ return ele.element === "LANGUAGE";
2952
+ });
2953
+ }
2954
+
2575
2955
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(NavBar, {
2576
2956
  open: isOpen,
2577
2957
  profileItem: profileItem,
@@ -2687,7 +3067,10 @@ var TopBarSideBar = function TopBarSideBar(_ref) {
2687
3067
  cityDetails = _ref.cityDetails,
2688
3068
  mobileView = _ref.mobileView,
2689
3069
  handleUserDropdownSelection = _ref.handleUserDropdownSelection,
2690
- logoUrl = _ref.logoUrl;
3070
+ logoUrl = _ref.logoUrl,
3071
+ _ref$showSidebar = _ref.showSidebar,
3072
+ showSidebar = _ref$showSidebar === void 0 ? true : _ref$showSidebar,
3073
+ showLanguageChange = _ref.showLanguageChange;
2691
3074
 
2692
3075
  var _useState = useState(false),
2693
3076
  isSidebarOpen = _useState[0],
@@ -2717,8 +3100,9 @@ var TopBarSideBar = function TopBarSideBar(_ref) {
2717
3100
  mobileView: mobileView,
2718
3101
  userOptions: userOptions,
2719
3102
  handleUserDropdownSelection: handleUserDropdownSelection,
2720
- logoUrl: logoUrl
2721
- }), /*#__PURE__*/React.createElement(SideBar, {
3103
+ logoUrl: logoUrl,
3104
+ showLanguageChange: showLanguageChange
3105
+ }), showSidebar && /*#__PURE__*/React.createElement(SideBar, {
2722
3106
  t: t,
2723
3107
  CITIZEN: CITIZEN,
2724
3108
  isSidebarOpen: isSidebarOpen,
@@ -2730,6 +3114,8 @@ var TopBarSideBar = function TopBarSideBar(_ref) {
2730
3114
  };
2731
3115
 
2732
3116
  var EmployeeApp = function EmployeeApp(_ref) {
3117
+ var _location$pathname, _window, _window$globalConfigs, _window$globalConfigs2;
3118
+
2733
3119
  var stateInfo = _ref.stateInfo,
2734
3120
  userDetails = _ref.userDetails,
2735
3121
  CITIZEN = _ref.CITIZEN,
@@ -2740,15 +3126,50 @@ var EmployeeApp = function EmployeeApp(_ref) {
2740
3126
  DSO = _ref.DSO,
2741
3127
  stateCode = _ref.stateCode,
2742
3128
  modules = _ref.modules,
2743
- appTenants = _ref.appTenants,
2744
- sourceUrl = _ref.sourceUrl;
3129
+ appTenants = _ref.appTenants;
2745
3130
 
2746
3131
  var _useTranslation = useTranslation(),
2747
3132
  t = _useTranslation.t;
2748
3133
 
3134
+ var _useRouteMatch = useRouteMatch(),
3135
+ path = _useRouteMatch.path;
3136
+
3137
+ var location = useLocation();
3138
+ var showLanguageChange = location === null || location === void 0 ? void 0 : (_location$pathname = location.pathname) === null || _location$pathname === void 0 ? void 0 : _location$pathname.includes("language-selection");
3139
+ useEffect(function () {
3140
+ Digit.UserService.setType("employee");
3141
+ }, []);
2749
3142
  return /*#__PURE__*/React.createElement("div", {
2750
3143
  className: "employee"
3144
+ }, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
3145
+ path: path + "/user"
2751
3146
  }, /*#__PURE__*/React.createElement(TopBarSideBar, {
3147
+ t: t,
3148
+ stateInfo: stateInfo,
3149
+ userDetails: userDetails,
3150
+ CITIZEN: CITIZEN,
3151
+ cityDetails: cityDetails,
3152
+ mobileView: mobileView,
3153
+ handleUserDropdownSelection: handleUserDropdownSelection,
3154
+ logoUrl: logoUrl,
3155
+ showSidebar: false,
3156
+ showLanguageChange: !showLanguageChange
3157
+ }), /*#__PURE__*/React.createElement("div", {
3158
+ className: "loginContainer",
3159
+ style: {
3160
+ "--banner-url": "url(" + (stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.bannerUrl) + ")"
3161
+ }
3162
+ }, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
3163
+ path: path + "/user/login"
3164
+ }, /*#__PURE__*/React.createElement(EmployeeLogin, null)), /*#__PURE__*/React.createElement(Route, {
3165
+ path: path + "/user/forgot-password"
3166
+ }, /*#__PURE__*/React.createElement(EmployeeForgotPassword, null)), /*#__PURE__*/React.createElement(Route, {
3167
+ path: path + "/user/change-password"
3168
+ }, " ", /*#__PURE__*/React.createElement(EmployeeChangePassword, null)), /*#__PURE__*/React.createElement(Route, {
3169
+ path: path + "/user/language-selection"
3170
+ }, /*#__PURE__*/React.createElement(LanguageSelection, null)), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(Redirect, {
3171
+ to: path + "/user/language-selection"
3172
+ }))))), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(TopBarSideBar, {
2752
3173
  t: t,
2753
3174
  stateInfo: stateInfo,
2754
3175
  userDetails: userDetails,
@@ -2767,18 +3188,278 @@ var EmployeeApp = function EmployeeApp(_ref) {
2767
3188
  })), /*#__PURE__*/React.createElement("div", {
2768
3189
  className: "employee-home-footer"
2769
3190
  }, /*#__PURE__*/React.createElement("img", {
2770
- src: sourceUrl + "/digit-footer.png",
3191
+ alt: "Powered by DIGIT",
3192
+ src: (_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : (_window$globalConfigs2 = _window$globalConfigs.getConfig) === null || _window$globalConfigs2 === void 0 ? void 0 : _window$globalConfigs2.call(_window$globalConfigs, "DIGIT_FOOTER"),
2771
3193
  style: {
2772
3194
  height: "1.1em",
2773
3195
  cursor: "pointer"
2774
3196
  },
2775
3197
  onClick: function onClick() {
2776
- window.open("https://www.digit.org/", "_blank").focus();
3198
+ var _window2, _window2$globalConfig, _window2$globalConfig2;
3199
+
3200
+ window.open((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$globalConfig = _window2.globalConfigs) === null || _window2$globalConfig === void 0 ? void 0 : (_window2$globalConfig2 = _window2$globalConfig.getConfig) === null || _window2$globalConfig2 === void 0 ? void 0 : _window2$globalConfig2.call(_window2$globalConfig, "DIGIT_HOME_URL"), "_blank").focus();
2777
3201
  }
3202
+ })))), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(Redirect, {
3203
+ to: path + "/user/language-selection"
2778
3204
  }))));
2779
3205
  };
2780
3206
 
2781
- var CitizenApp = function CitizenApp(_ref) {
3207
+ var Home = function Home() {
3208
+ var _Digit$SessionStorage;
3209
+
3210
+ var _useTranslation = useTranslation(),
3211
+ t = _useTranslation.t;
3212
+
3213
+ var history = useHistory();
3214
+ var tenantId = (_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code;
3215
+
3216
+ var _Digit$Hooks$useStore = Digit.Hooks.useStore.getInitData(),
3217
+ _Digit$Hooks$useStore2 = _Digit$Hooks$useStore.data;
3218
+
3219
+ _Digit$Hooks$useStore2 = _Digit$Hooks$useStore2 === void 0 ? {} : _Digit$Hooks$useStore2;
3220
+ var stateInfo = _Digit$Hooks$useStore2.stateInfo,
3221
+ isLoading = _Digit$Hooks$useStore.isLoading;
3222
+
3223
+ var conditionsToDisableNotificationCountTrigger = function conditionsToDisableNotificationCountTrigger() {
3224
+ var _Digit$UserService, _Digit$UserService$ge, _Digit$UserService$ge2, _Digit$UserService2, _Digit$UserService2$g;
3225
+
3226
+ if (((_Digit$UserService = Digit.UserService) === null || _Digit$UserService === void 0 ? void 0 : (_Digit$UserService$ge = _Digit$UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.type) === "EMPLOYEE") return false;
3227
+ if (!((_Digit$UserService2 = Digit.UserService) !== null && _Digit$UserService2 !== void 0 && (_Digit$UserService2$g = _Digit$UserService2.getUser()) !== null && _Digit$UserService2$g !== void 0 && _Digit$UserService2$g.access_token)) return false;
3228
+ return true;
3229
+ };
3230
+
3231
+ var _Digit$Hooks$useEvent = Digit.Hooks.useEvents({
3232
+ tenantId: tenantId,
3233
+ variant: "whats-new",
3234
+ config: {
3235
+ enabled: conditionsToDisableNotificationCountTrigger()
3236
+ }
3237
+ }),
3238
+ EventsData = _Digit$Hooks$useEvent.data,
3239
+ EventsDataLoading = _Digit$Hooks$useEvent.isLoading;
3240
+
3241
+ if (!tenantId) {
3242
+ history.push("/digit-ui/citizen/select-language");
3243
+ }
3244
+
3245
+ var allCitizenServicesProps = {
3246
+ header: t("DASHBOARD_CITIZEN_SERVICES_LABEL"),
3247
+ sideOption: {
3248
+ name: t("DASHBOARD_VIEW_ALL_LABEL"),
3249
+ onClick: function onClick() {
3250
+ return history.push("/digit-ui/citizen/all-services");
3251
+ }
3252
+ },
3253
+ options: [{
3254
+ name: t("ES_PGR_HEADER_COMPLAINT"),
3255
+ Icon: /*#__PURE__*/React.createElement(ComplaintIcon, null),
3256
+ onClick: function onClick() {
3257
+ return history.push("/digit-ui/citizen/pgr-home");
3258
+ }
3259
+ }, {
3260
+ name: t("MODULE_PT"),
3261
+ Icon: /*#__PURE__*/React.createElement(PTIcon, {
3262
+ className: "fill-path-primary-main"
3263
+ }),
3264
+ onClick: function onClick() {
3265
+ return history.push("/digit-ui/citizen/pt-home");
3266
+ }
3267
+ }, {
3268
+ name: t("MODULE_TL"),
3269
+ Icon: /*#__PURE__*/React.createElement(CaseIcon, {
3270
+ className: "fill-path-primary-main"
3271
+ }),
3272
+ onClick: function onClick() {
3273
+ return history.push("/digit-ui/citizen/tl-home");
3274
+ }
3275
+ }, {
3276
+ name: t("CS_COMMON_INBOX_BPA"),
3277
+ Icon: /*#__PURE__*/React.createElement(OBPSIcon, null),
3278
+ onClick: function onClick() {
3279
+ return history.push("/digit-ui/citizen/obps-home");
3280
+ }
3281
+ }],
3282
+ styles: {
3283
+ display: "flex",
3284
+ flexWrap: "wrap",
3285
+ justifyContent: "flex-start",
3286
+ width: "100%"
3287
+ }
3288
+ };
3289
+ var allInfoAndUpdatesProps = {
3290
+ header: t("CS_COMMON_DASHBOARD_INFO_UPDATES"),
3291
+ sideOption: {
3292
+ name: t("DASHBOARD_VIEW_ALL_LABEL"),
3293
+ onClick: function onClick() {
3294
+ return console.debug("view all");
3295
+ }
3296
+ },
3297
+ options: [{
3298
+ name: t("CS_HEADER_MYCITY"),
3299
+ Icon: /*#__PURE__*/React.createElement(HomeIcon, null)
3300
+ }, {
3301
+ name: t("EVENTS_EVENTS_HEADER"),
3302
+ Icon: /*#__PURE__*/React.createElement(Calender, null),
3303
+ onClick: function onClick() {
3304
+ return history.push("/digit-ui/citizen/engagement/events");
3305
+ }
3306
+ }, {
3307
+ name: t("CS_COMMON_DOCUMENTS"),
3308
+ Icon: /*#__PURE__*/React.createElement(DocumentIcon, null),
3309
+ onClick: function onClick() {
3310
+ return history.push("/digit-ui/citizen/engagement/docs");
3311
+ }
3312
+ }, {
3313
+ name: t("CS_COMMON_SURVEYS"),
3314
+ Icon: /*#__PURE__*/React.createElement(DocumentIcon, null),
3315
+ onClick: function onClick() {
3316
+ return history.push("/digit-ui/citizen/engagement/SurveyList");
3317
+ }
3318
+ }],
3319
+ styles: {
3320
+ display: "flex",
3321
+ flexWrap: "wrap",
3322
+ justifyContent: "flex-start",
3323
+ width: "100%"
3324
+ }
3325
+ };
3326
+ return isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
3327
+ className: "HomePageWrapper"
3328
+ }, /*#__PURE__*/React.createElement("div", {
3329
+ className: "BannerWithSearch"
3330
+ }, /*#__PURE__*/React.createElement("img", {
3331
+ src: stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.bannerUrl
3332
+ }), /*#__PURE__*/React.createElement("div", {
3333
+ className: "Search"
3334
+ }, /*#__PURE__*/React.createElement(StandaloneSearchBar, {
3335
+ placeholder: t("CS_COMMON_SEARCH_PLACEHOLDER")
3336
+ }))), /*#__PURE__*/React.createElement("div", {
3337
+ className: "ServicesSection"
3338
+ }, /*#__PURE__*/React.createElement(CardBasedOptions, allCitizenServicesProps), /*#__PURE__*/React.createElement(CardBasedOptions, allInfoAndUpdatesProps)), conditionsToDisableNotificationCountTrigger() ? EventsDataLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
3339
+ className: "WhatsNewSection"
3340
+ }, /*#__PURE__*/React.createElement("div", {
3341
+ className: "headSection"
3342
+ }, /*#__PURE__*/React.createElement("h2", null, t("DASHBOARD_WHATS_NEW_LABEL")), /*#__PURE__*/React.createElement("p", {
3343
+ onClick: function onClick() {
3344
+ return history.push("/digit-ui/citizen/engagement/whats-new");
3345
+ }
3346
+ }, t("DASHBOARD_VIEW_ALL_LABEL"))), /*#__PURE__*/React.createElement(WhatsNewCard, EventsData === null || EventsData === void 0 ? void 0 : EventsData[0])) : null);
3347
+ };
3348
+
3349
+ var LanguageSelection$1 = function LanguageSelection() {
3350
+ var _useTranslation = useTranslation(),
3351
+ t = _useTranslation.t;
3352
+
3353
+ var history = useHistory();
3354
+
3355
+ var _Digit$Hooks$useStore = Digit.Hooks.useStore.getInitData(),
3356
+ _Digit$Hooks$useStore2 = _Digit$Hooks$useStore.data;
3357
+
3358
+ _Digit$Hooks$useStore2 = _Digit$Hooks$useStore2 === void 0 ? {} : _Digit$Hooks$useStore2;
3359
+ var languages = _Digit$Hooks$useStore2.languages,
3360
+ stateInfo = _Digit$Hooks$useStore2.stateInfo,
3361
+ isLoading = _Digit$Hooks$useStore.isLoading;
3362
+ var selectedLanguage = Digit.StoreData.getCurrentLanguage();
3363
+ var texts = useMemo(function () {
3364
+ return {
3365
+ header: t("CS_COMMON_CHOOSE_LANGUAGE"),
3366
+ submitBarLabel: t("CORE_COMMON_CONTINUE")
3367
+ };
3368
+ }, [t]);
3369
+ var RadioButtonProps = useMemo(function () {
3370
+ return {
3371
+ options: languages,
3372
+ optionsKey: "label",
3373
+ additionalWrapperClass: "reverse-radio-selection-wrapper",
3374
+ onSelect: function onSelect(language) {
3375
+ return Digit.LocalizationService.changeLanguage(language.value, stateInfo.code);
3376
+ },
3377
+ selectedOption: languages === null || languages === void 0 ? void 0 : languages.filter(function (i) {
3378
+ return i.value === selectedLanguage;
3379
+ })[0]
3380
+ };
3381
+ }, [selectedLanguage, languages]);
3382
+
3383
+ function onSubmit() {
3384
+ history.push("/digit-ui/citizen/select-location");
3385
+ }
3386
+
3387
+ return isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(PageBasedInput, {
3388
+ texts: texts,
3389
+ onSubmit: onSubmit
3390
+ }, /*#__PURE__*/React.createElement(CardHeader, null, t("CS_COMMON_CHOOSE_LANGUAGE")), /*#__PURE__*/React.createElement(RadioButtons, RadioButtonProps));
3391
+ };
3392
+
3393
+ var LocationSelection = function LocationSelection() {
3394
+ var _useTranslation = useTranslation(),
3395
+ t = _useTranslation.t;
3396
+
3397
+ var history = useHistory();
3398
+
3399
+ var _Digit$Hooks$useTenan = Digit.Hooks.useTenants(),
3400
+ cities = _Digit$Hooks$useTenan.data,
3401
+ isLoading = _Digit$Hooks$useTenan.isLoading;
3402
+
3403
+ var _useState = useState(function () {
3404
+ return Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY");
3405
+ }),
3406
+ selectedCity = _useState[0],
3407
+ setSelectedCity = _useState[1];
3408
+
3409
+ var _useState2 = useState(false),
3410
+ showError = _useState2[0],
3411
+ setShowError = _useState2[1];
3412
+
3413
+ var texts = useMemo(function () {
3414
+ return {
3415
+ header: t("CS_COMMON_CHOOSE_LOCATION"),
3416
+ submitBarLabel: t("CORE_COMMON_CONTINUE")
3417
+ };
3418
+ }, [t]);
3419
+
3420
+ function selectCity(city) {
3421
+ setSelectedCity(city);
3422
+ setShowError(false);
3423
+ }
3424
+
3425
+ var RadioButtonProps = useMemo(function () {
3426
+ return {
3427
+ options: cities,
3428
+ optionsKey: "i18nKey",
3429
+ additionalWrapperClass: "reverse-radio-selection-wrapper",
3430
+ onSelect: selectCity,
3431
+ selectedOption: selectedCity
3432
+ };
3433
+ }, [cities, t, selectedCity]);
3434
+
3435
+ function onSubmit() {
3436
+ if (selectedCity) {
3437
+ Digit.SessionStorage.set("CITIZEN.COMMON.HOME.CITY", selectedCity);
3438
+ history.push("/digit-ui/citizen");
3439
+ } else {
3440
+ setShowError(true);
3441
+ }
3442
+ }
3443
+
3444
+ return isLoading ? /*#__PURE__*/React.createElement("loader", null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(BackButton, null), /*#__PURE__*/React.createElement(PageBasedInput, {
3445
+ texts: texts,
3446
+ onSubmit: onSubmit
3447
+ }, /*#__PURE__*/React.createElement(CardHeader, null, t("CS_COMMON_CHOOSE_LOCATION")), /*#__PURE__*/React.createElement(SearchOnRadioButtons, _extends({}, RadioButtonProps, {
3448
+ placeholder: t("COMMON_TABLE_SEARCH")
3449
+ })), showError ? /*#__PURE__*/React.createElement(CardLabelError, null, t("CS_COMMON_LOCATION_SELECTION_ERROR")) : null));
3450
+ };
3451
+
3452
+ var getTenants$1 = function getTenants(codes, tenants) {
3453
+ return tenants.filter(function (tenant) {
3454
+ return codes.map(function (item) {
3455
+ return item.code;
3456
+ }).includes(tenant.code);
3457
+ });
3458
+ };
3459
+
3460
+ var Home$1 = function Home$1(_ref) {
3461
+ var _window, _window$globalConfigs, _window$globalConfigs2;
3462
+
2782
3463
  var stateInfo = _ref.stateInfo,
2783
3464
  userDetails = _ref.userDetails,
2784
3465
  CITIZEN = _ref.CITIZEN,
@@ -2789,13 +3470,54 @@ var CitizenApp = function CitizenApp(_ref) {
2789
3470
  stateCode = _ref.stateCode,
2790
3471
  modules = _ref.modules,
2791
3472
  appTenants = _ref.appTenants,
2792
- sourceUrl = _ref.sourceUrl,
2793
3473
  pathname = _ref.pathname;
3474
+ var classname = Digit.Hooks.fsm.useRouteSubscription(pathname);
2794
3475
 
2795
3476
  var _useTranslation = useTranslation(),
2796
3477
  t = _useTranslation.t;
2797
3478
 
2798
- var classname = Digit.Hooks.fsm.useRouteSubscription(pathname);
3479
+ var _useRouteMatch = useRouteMatch(),
3480
+ path = _useRouteMatch.path;
3481
+
3482
+ var appRoutes = modules.map(function (_ref2, index) {
3483
+ var code = _ref2.code,
3484
+ tenants = _ref2.tenants;
3485
+ var Module = Digit.ComponentRegistryService.getComponent(code + "Module");
3486
+ return /*#__PURE__*/React.createElement(Route, {
3487
+ key: index,
3488
+ path: path + "/" + code.toLowerCase()
3489
+ }, /*#__PURE__*/React.createElement(Module, {
3490
+ stateCode: stateCode,
3491
+ moduleCode: code,
3492
+ userType: "citizen",
3493
+ tenants: getTenants$1(tenants, appTenants)
3494
+ }));
3495
+ });
3496
+ var ModuleLevelLinkHomePages = modules.map(function (_ref3, index) {
3497
+ var code = _ref3.code,
3498
+ bannerImage = _ref3.bannerImage;
3499
+
3500
+ var Links = Digit.ComponentRegistryService.getComponent(code + "Links") || function () {
3501
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
3502
+ };
3503
+
3504
+ return /*#__PURE__*/React.createElement(Route, {
3505
+ key: index,
3506
+ path: path + "/" + code.toLowerCase() + "-home"
3507
+ }, /*#__PURE__*/React.createElement("div", {
3508
+ className: "moduleLinkHomePage"
3509
+ }, /*#__PURE__*/React.createElement("img", {
3510
+ src: bannerImage || (stateInfo === null || stateInfo === void 0 ? void 0 : stateInfo.bannerUrl)
3511
+ }), /*#__PURE__*/React.createElement(BackButton, {
3512
+ className: "moduleLinkHomePageBackButton"
3513
+ }), /*#__PURE__*/React.createElement("h1", null, t("MODULE_" + code.toUpperCase()))), /*#__PURE__*/React.createElement("div", {
3514
+ className: "moduleLinkHomePageModuleLinks"
3515
+ }, /*#__PURE__*/React.createElement(Links, {
3516
+ key: index,
3517
+ matchPath: "/digit-ui/citizen/" + code.toLowerCase(),
3518
+ userType: "citizen"
3519
+ })));
3520
+ });
2799
3521
  return /*#__PURE__*/React.createElement("div", {
2800
3522
  className: classname
2801
3523
  }, /*#__PURE__*/React.createElement(TopBarSideBar, {
@@ -2808,24 +3530,48 @@ var CitizenApp = function CitizenApp(_ref) {
2808
3530
  handleUserDropdownSelection: handleUserDropdownSelection,
2809
3531
  logoUrl: logoUrl
2810
3532
  }), /*#__PURE__*/React.createElement("div", {
2811
- className: "main center-container mb-50"
2812
- }, /*#__PURE__*/React.createElement(AppModules, {
2813
- stateCode: stateCode,
3533
+ className: "main center-container mb-25"
3534
+ }, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
3535
+ exact: true,
3536
+ path: path
3537
+ }, /*#__PURE__*/React.createElement(Home, null)), /*#__PURE__*/React.createElement(Route, {
3538
+ exact: true,
3539
+ path: path + "/select-language"
3540
+ }, /*#__PURE__*/React.createElement(LanguageSelection$1, null)), /*#__PURE__*/React.createElement(Route, {
3541
+ exact: true,
3542
+ path: path + "/select-location"
3543
+ }, /*#__PURE__*/React.createElement(LocationSelection, null)), /*#__PURE__*/React.createElement(Route, {
3544
+ path: path + "/all-services"
3545
+ }, /*#__PURE__*/React.createElement(AppHome, {
2814
3546
  userType: "citizen",
2815
- modules: modules,
2816
- appTenants: appTenants
2817
- }), /*#__PURE__*/React.createElement("div", {
2818
- className: "citizen-home-footer"
3547
+ modules: modules
3548
+ })), /*#__PURE__*/React.createElement(Route, {
3549
+ path: path + "/login"
3550
+ }, " ", /*#__PURE__*/React.createElement(Login, {
3551
+ stateCode: stateCode
3552
+ })), /*#__PURE__*/React.createElement(Route, {
3553
+ path: path + "/register"
3554
+ }, /*#__PURE__*/React.createElement(Login, {
3555
+ stateCode: stateCode,
3556
+ isUserRegistered: false
3557
+ })), appRoutes, ModuleLevelLinkHomePages)), /*#__PURE__*/React.createElement("div", {
3558
+ className: "citizen-home-footer",
3559
+ style: window.location.href.includes("citizen/obps") ? {
3560
+ zIndex: "-1"
3561
+ } : {}
2819
3562
  }, /*#__PURE__*/React.createElement("img", {
2820
- src: sourceUrl + "/digit-footer.png",
3563
+ alt: "Powered by DIGIT",
3564
+ src: (_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : (_window$globalConfigs2 = _window$globalConfigs.getConfig) === null || _window$globalConfigs2 === void 0 ? void 0 : _window$globalConfigs2.call(_window$globalConfigs, "DIGIT_FOOTER"),
2821
3565
  style: {
2822
3566
  height: "1.2em",
2823
3567
  cursor: "pointer"
2824
3568
  },
2825
3569
  onClick: function onClick() {
2826
- window.open("https://www.digit.org/", "_blank").focus();
3570
+ var _window2, _window2$globalConfig, _window2$globalConfig2;
3571
+
3572
+ window.open((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$globalConfig = _window2.globalConfigs) === null || _window2$globalConfig === void 0 ? void 0 : (_window2$globalConfig2 = _window2$globalConfig.getConfig) === null || _window2$globalConfig2 === void 0 ? void 0 : _window2$globalConfig2.call(_window2$globalConfig, "DIGIT_HOME_URL"), "_blank").focus();
2827
3573
  }
2828
- }))));
3574
+ })));
2829
3575
  };
2830
3576
 
2831
3577
  var DigitApp = function DigitApp(_ref) {
@@ -2902,7 +3648,7 @@ var DigitApp = function DigitApp(_ref) {
2902
3648
  path: "/digit-ui/employee"
2903
3649
  }, /*#__PURE__*/React.createElement(EmployeeApp, commonProps)), /*#__PURE__*/React.createElement(Route, {
2904
3650
  path: "/digit-ui/citizen"
2905
- }, /*#__PURE__*/React.createElement(CitizenApp, commonProps)), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(Redirect, {
3651
+ }, /*#__PURE__*/React.createElement(Home$1, commonProps)), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(Redirect, {
2906
3652
  to: "/digit-ui/citizen"
2907
3653
  })));
2908
3654
  };
@@ -2998,6 +3744,14 @@ var DigitUI = function DigitUI(_ref2) {
2998
3744
  moduleReducers: moduleReducers
2999
3745
  }))));
3000
3746
  };
3747
+ var componentsToRegister = {};
3748
+ var initCoreComponents = function initCoreComponents() {
3749
+ Object.entries(componentsToRegister).forEach(function (_ref3) {
3750
+ var key = _ref3[0],
3751
+ value = _ref3[1];
3752
+ Digit.ComponentRegistryService.setComponent(key, value);
3753
+ });
3754
+ };
3001
3755
 
3002
- export { DigitUI };
3756
+ export { DigitUI, initCoreComponents };
3003
3757
  //# sourceMappingURL=index.modern.js.map